UNPKG

neos-script

Version:

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

23 lines (22 loc) 5.65 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.PrimitiveMemberEditor = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function PrimitiveMemberEditor(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Continuous = props.Continuous, _path = props._path, _target = props._target, Format = props.Format, _textEditor = props._textEditor, _textDrive = props._textDrive, _button = props._button, _resetButton = props._resetButton; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.PrimitiveMemberEditor", 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: "Continuous", id: typeof Continuous === "object" && "id" in Continuous ? Continuous === null || Continuous === void 0 ? void 0 : Continuous.id : undefined, value: typeof Continuous === "object" && "value" in Continuous ? Continuous === null || Continuous === void 0 ? void 0 : Continuous.value : Continuous, isRaw: typeof Continuous === "object" && "isRaw" in Continuous && Continuous.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "_path", id: typeof _path === "object" && "id" in _path ? _path === null || _path === void 0 ? void 0 : _path.id : undefined, value: typeof _path === "object" && "value" in _path ? _path === null || _path === void 0 ? void 0 : _path.value : _path, isRaw: typeof _path === "object" && "isRaw" in _path && _path.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField]", name: "_target", id: typeof _target === "object" && "id" in _target ? _target === null || _target === void 0 ? void 0 : _target.id : undefined, value: typeof _target === "object" && "value" in _target ? _target === null || _target === void 0 ? void 0 : _target.value : _target, isRaw: typeof _target === "object" && "isRaw" in _target && _target.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "Format", id: typeof Format === "object" && "id" in Format ? Format === null || Format === void 0 ? void 0 : Format.id : undefined, value: typeof Format === "object" && "value" in Format ? Format === null || Format === void 0 ? void 0 : Format.value : Format, isRaw: typeof Format === "object" && "isRaw" in Format && Format.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.TextEditor]", name: "_textEditor", id: typeof _textEditor === "object" && "id" in _textEditor ? _textEditor === null || _textEditor === void 0 ? void 0 : _textEditor.id : undefined, value: typeof _textEditor === "object" && "value" in _textEditor ? _textEditor === null || _textEditor === void 0 ? void 0 : _textEditor.value : _textEditor, isRaw: typeof _textEditor === "object" && "isRaw" in _textEditor && _textEditor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.String]", name: "_textDrive", id: typeof _textDrive === "object" && "id" in _textDrive ? _textDrive === null || _textDrive === void 0 ? void 0 : _textDrive.id : undefined, value: typeof _textDrive === "object" && "value" in _textDrive ? _textDrive === null || _textDrive === void 0 ? void 0 : _textDrive.value : _textDrive, isRaw: typeof _textDrive === "object" && "isRaw" in _textDrive && _textDrive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_button", id: typeof _button === "object" && "id" in _button ? _button === null || _button === void 0 ? void 0 : _button.id : undefined, value: typeof _button === "object" && "value" in _button ? _button === null || _button === void 0 ? void 0 : _button.value : _button, isRaw: typeof _button === "object" && "isRaw" in _button && _button.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_resetButton", id: typeof _resetButton === "object" && "id" in _resetButton ? _resetButton === null || _resetButton === void 0 ? void 0 : _resetButton.id : undefined, value: typeof _resetButton === "object" && "value" in _resetButton ? _resetButton === null || _resetButton === void 0 ? void 0 : _resetButton.value : _resetButton, isRaw: typeof _resetButton === "object" && "isRaw" in _resetButton && _resetButton.isRaw ? true : undefined })] }))); } exports.PrimitiveMemberEditor = PrimitiveMemberEditor; ;