UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 5.12 kB
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GridContainer = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function GridContainer(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, EditMode = props.EditMode, FacetsRoot = props.FacetsRoot, _background = props._background, _content = props._content, _overlay = props._overlay, CellSize = props.CellSize, Padding = props.Padding; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.GridContainer", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "EditMode", id: typeof EditMode === "object" && "id" in EditMode ? EditMode === null || EditMode === void 0 ? void 0 : EditMode.id : undefined, value: typeof EditMode === "object" && "value" in EditMode ? EditMode === null || EditMode === void 0 ? void 0 : EditMode.value : EditMode, isRaw: typeof EditMode === "object" && "isRaw" in EditMode && EditMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "FacetsRoot", id: typeof FacetsRoot === "object" && "id" in FacetsRoot ? FacetsRoot === null || FacetsRoot === void 0 ? void 0 : FacetsRoot.id : undefined, value: typeof FacetsRoot === "object" && "value" in FacetsRoot ? FacetsRoot === null || FacetsRoot === void 0 ? void 0 : FacetsRoot.value : FacetsRoot, isRaw: typeof FacetsRoot === "object" && "isRaw" in FacetsRoot && FacetsRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.RectTransform]", name: "_background", id: typeof _background === "object" && "id" in _background ? _background === null || _background === void 0 ? void 0 : _background.id : undefined, value: typeof _background === "object" && "value" in _background ? _background === null || _background === void 0 ? void 0 : _background.value : _background, isRaw: typeof _background === "object" && "isRaw" in _background && _background.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.RectTransform]", name: "_content", id: typeof _content === "object" && "id" in _content ? _content === null || _content === void 0 ? void 0 : _content.id : undefined, value: typeof _content === "object" && "value" in _content ? _content === null || _content === void 0 ? void 0 : _content.value : _content, isRaw: typeof _content === "object" && "isRaw" in _content && _content.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.RectTransform]", name: "_overlay", id: typeof _overlay === "object" && "id" in _overlay ? _overlay === null || _overlay === void 0 ? void 0 : _overlay.id : undefined, value: typeof _overlay === "object" && "value" in _overlay ? _overlay === null || _overlay === void 0 ? void 0 : _overlay.value : _overlay, isRaw: typeof _overlay === "object" && "isRaw" in _overlay && _overlay.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "CellSize", id: typeof CellSize === "object" && "id" in CellSize ? CellSize === null || CellSize === void 0 ? void 0 : CellSize.id : undefined, value: typeof CellSize === "object" && "value" in CellSize ? CellSize === null || CellSize === void 0 ? void 0 : CellSize.value : CellSize, isRaw: typeof CellSize === "object" && "isRaw" in CellSize && CellSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "Padding", id: typeof Padding === "object" && "id" in Padding ? Padding === null || Padding === void 0 ? void 0 : Padding.id : undefined, value: typeof Padding === "object" && "value" in Padding ? Padding === null || Padding === void 0 ? void 0 : Padding.value : Padding, isRaw: typeof Padding === "object" && "isRaw" in Padding && Padding.isRaw ? true : undefined })] }))); } exports.GridContainer = GridContainer; ;