neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 6.25 kB
JavaScript
;
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.RadiantDashButton = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function RadiantDashButton(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Dash = props.Dash, Screen = props.Screen, _switchingEnabled = props._switchingEnabled, _currentScreen = props._currentScreen, _button = props._button, _text = props._text, _icon = props._icon, _rootRect = props._rootRect, _iconRect = props._iconRect;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.RadiantDashButton", 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.SyncRef`1[FrooxEngine.RadiantDash]", name: "Dash", id: typeof Dash === "object" && "id" in Dash ? Dash === null || Dash === void 0 ? void 0 : Dash.id : undefined, value: typeof Dash === "object" && "value" in Dash ? Dash === null || Dash === void 0 ? void 0 : Dash.value : Dash, isRaw: typeof Dash === "object" && "isRaw" in Dash && Dash.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.RadiantDashScreen]", name: "Screen", id: typeof Screen === "object" && "id" in Screen ? Screen === null || Screen === void 0 ? void 0 : Screen.id : undefined, value: typeof Screen === "object" && "value" in Screen ? Screen === null || Screen === void 0 ? void 0 : Screen.value : Screen, isRaw: typeof Screen === "object" && "isRaw" in Screen && Screen.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.IField`1[System.Boolean]]", name: "_switchingEnabled", id: typeof _switchingEnabled === "object" && "id" in _switchingEnabled ? _switchingEnabled === null || _switchingEnabled === void 0 ? void 0 : _switchingEnabled.id : undefined, value: typeof _switchingEnabled === "object" && "value" in _switchingEnabled ? _switchingEnabled === null || _switchingEnabled === void 0 ? void 0 : _switchingEnabled.value : _switchingEnabled, isRaw: typeof _switchingEnabled === "object" && "isRaw" in _switchingEnabled && _switchingEnabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.SyncRef`1[FrooxEngine.RadiantDashScreen]]", name: "_currentScreen", id: typeof _currentScreen === "object" && "id" in _currentScreen ? _currentScreen === null || _currentScreen === void 0 ? void 0 : _currentScreen.id : undefined, value: typeof _currentScreen === "object" && "value" in _currentScreen ? _currentScreen === null || _currentScreen === void 0 ? void 0 : _currentScreen.value : _currentScreen, isRaw: typeof _currentScreen === "object" && "isRaw" in _currentScreen && _currentScreen.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.Text]", name: "_text", id: typeof _text === "object" && "id" in _text ? _text === null || _text === void 0 ? void 0 : _text.id : undefined, value: typeof _text === "object" && "value" in _text ? _text === null || _text === void 0 ? void 0 : _text.value : _text, isRaw: typeof _text === "object" && "isRaw" in _text && _text.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.SyncRef`1[FrooxEngine.UIX.RectTransform]", name: "_rootRect", id: typeof _rootRect === "object" && "id" in _rootRect ? _rootRect === null || _rootRect === void 0 ? void 0 : _rootRect.id : undefined, value: typeof _rootRect === "object" && "value" in _rootRect ? _rootRect === null || _rootRect === void 0 ? void 0 : _rootRect.value : _rootRect, isRaw: typeof _rootRect === "object" && "isRaw" in _rootRect && _rootRect.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.RectTransform]", name: "_iconRect", id: typeof _iconRect === "object" && "id" in _iconRect ? _iconRect === null || _iconRect === void 0 ? void 0 : _iconRect.id : undefined, value: typeof _iconRect === "object" && "value" in _iconRect ? _iconRect === null || _iconRect === void 0 ? void 0 : _iconRect.value : _iconRect, isRaw: typeof _iconRect === "object" && "isRaw" in _iconRect && _iconRect.isRaw ? true : undefined })] })));
}
exports.RadiantDashButton = RadiantDashButton;
;