UNPKG

neos-script

Version:

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

23 lines (22 loc) 6.42 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.ContextMenuItem = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function ContextMenuItem(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Highlight = props.Highlight, Icon = props.Icon, Sprite = props.Sprite, Label = props.Label, Color = props.Color, _menu = props._menu, _highlighted = props._highlighted, _arc = props._arc, _outerRadius = props._outerRadius, _button = props._button; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ContextMenuItem", 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: "Highlight", id: typeof Highlight === "object" && "id" in Highlight ? Highlight === null || Highlight === void 0 ? void 0 : Highlight.id : undefined, value: typeof Highlight === "object" && "value" in Highlight ? Highlight === null || Highlight === void 0 ? void 0 : Highlight.value : Highlight, isRaw: typeof Highlight === "object" && "isRaw" in Highlight && Highlight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Image]", name: "Icon", id: typeof Icon === "object" && "id" in Icon ? Icon === null || Icon === void 0 ? void 0 : Icon.id : undefined, value: typeof Icon === "object" && "value" in Icon ? Icon === null || Icon === void 0 ? void 0 : Icon.value : Icon, isRaw: typeof Icon === "object" && "isRaw" in Icon && Icon.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IAssetProvider`1[FrooxEngine.Sprite]]", name: "Sprite", id: typeof Sprite === "object" && "id" in Sprite ? Sprite === null || Sprite === void 0 ? void 0 : Sprite.id : undefined, value: typeof Sprite === "object" && "value" in Sprite ? Sprite === null || Sprite === void 0 ? void 0 : Sprite.value : Sprite, isRaw: typeof Sprite === "object" && "isRaw" in Sprite && Sprite.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.IField`1[System.String]]", name: "Label", id: typeof Label === "object" && "id" in Label ? Label === null || Label === void 0 ? void 0 : Label.id : undefined, value: typeof Label === "object" && "value" in Label ? Label === null || Label === void 0 ? void 0 : Label.value : Label, isRaw: typeof Label === "object" && "isRaw" in Label && Label.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "Color", id: typeof Color === "object" && "id" in Color ? Color === null || Color === void 0 ? void 0 : Color.id : undefined, value: typeof Color === "object" && "value" in Color ? Color === null || Color === void 0 ? void 0 : Color.value : Color, isRaw: typeof Color === "object" && "isRaw" in Color && Color.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ContextMenu]", name: "_menu", id: typeof _menu === "object" && "id" in _menu ? _menu === null || _menu === void 0 ? void 0 : _menu.id : undefined, value: typeof _menu === "object" && "value" in _menu ? _menu === null || _menu === void 0 ? void 0 : _menu.value : _menu, isRaw: typeof _menu === "object" && "isRaw" in _menu && _menu.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_highlighted", id: typeof _highlighted === "object" && "id" in _highlighted ? _highlighted === null || _highlighted === void 0 ? void 0 : _highlighted.id : undefined, value: typeof _highlighted === "object" && "value" in _highlighted ? _highlighted === null || _highlighted === void 0 ? void 0 : _highlighted.value : _highlighted, isRaw: typeof _highlighted === "object" && "isRaw" in _highlighted && _highlighted.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_arc", id: typeof _arc === "object" && "id" in _arc ? _arc === null || _arc === void 0 ? void 0 : _arc.id : undefined, value: typeof _arc === "object" && "value" in _arc ? _arc === null || _arc === void 0 ? void 0 : _arc.value : _arc, isRaw: typeof _arc === "object" && "isRaw" in _arc && _arc.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_outerRadius", id: typeof _outerRadius === "object" && "id" in _outerRadius ? _outerRadius === null || _outerRadius === void 0 ? void 0 : _outerRadius.id : undefined, value: typeof _outerRadius === "object" && "value" in _outerRadius ? _outerRadius === null || _outerRadius === void 0 ? void 0 : _outerRadius.value : _outerRadius, isRaw: typeof _outerRadius === "object" && "isRaw" in _outerRadius && _outerRadius.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 })] }))); } exports.ContextMenuItem = ContextMenuItem; ;