neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 5.15 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.HideShowControl = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function HideShowControl(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Root = props.Root, ShownPosition = props.ShownPosition, HiddenPosition = props.HiddenPosition, _button = props._button, _shown = props._shown, _downArrow = props._downArrow, _upArrow = props._upArrow;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "BusinessX.HideShowControl", 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.Slot]", name: "Root", id: typeof Root === "object" && "id" in Root ? Root === null || Root === void 0 ? void 0 : Root.id : undefined, value: typeof Root === "object" && "value" in Root ? Root === null || Root === void 0 ? void 0 : Root.value : Root, isRaw: typeof Root === "object" && "isRaw" in Root && Root.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ShownPosition", id: typeof ShownPosition === "object" && "id" in ShownPosition ? ShownPosition === null || ShownPosition === void 0 ? void 0 : ShownPosition.id : undefined, value: typeof ShownPosition === "object" && "value" in ShownPosition ? ShownPosition === null || ShownPosition === void 0 ? void 0 : ShownPosition.value : ShownPosition, isRaw: typeof ShownPosition === "object" && "isRaw" in ShownPosition && ShownPosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HiddenPosition", id: typeof HiddenPosition === "object" && "id" in HiddenPosition ? HiddenPosition === null || HiddenPosition === void 0 ? void 0 : HiddenPosition.id : undefined, value: typeof HiddenPosition === "object" && "value" in HiddenPosition ? HiddenPosition === null || HiddenPosition === void 0 ? void 0 : HiddenPosition.value : HiddenPosition, isRaw: typeof HiddenPosition === "object" && "isRaw" in HiddenPosition && HiddenPosition.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.Sync`1[System.Boolean]", name: "_shown", id: typeof _shown === "object" && "id" in _shown ? _shown === null || _shown === void 0 ? void 0 : _shown.id : undefined, value: typeof _shown === "object" && "value" in _shown ? _shown === null || _shown === void 0 ? void 0 : _shown.value : _shown, isRaw: typeof _shown === "object" && "isRaw" in _shown && _shown.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.StaticTexture2D]", name: "_downArrow", id: typeof _downArrow === "object" && "id" in _downArrow ? _downArrow === null || _downArrow === void 0 ? void 0 : _downArrow.id : undefined, value: typeof _downArrow === "object" && "value" in _downArrow ? _downArrow === null || _downArrow === void 0 ? void 0 : _downArrow.value : _downArrow, isRaw: typeof _downArrow === "object" && "isRaw" in _downArrow && _downArrow.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.StaticTexture2D]", name: "_upArrow", id: typeof _upArrow === "object" && "id" in _upArrow ? _upArrow === null || _upArrow === void 0 ? void 0 : _upArrow.id : undefined, value: typeof _upArrow === "object" && "value" in _upArrow ? _upArrow === null || _upArrow === void 0 ? void 0 : _upArrow.value : _upArrow, isRaw: typeof _upArrow === "object" && "isRaw" in _upArrow && _upArrow.isRaw ? true : undefined })] })));
}
exports.HideShowControl = HideShowControl;
;