neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 5.3 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.ComponentAttacher = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function ComponentAttacher(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TargetSlot = props.TargetSlot, _uiRoot = props._uiRoot, _customGenericType = props._customGenericType, _genericType = props._genericType, _customGenericTypeLabel = props._customGenericTypeLabel, _customGenericTypeColor = props._customGenericTypeColor;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ComponentAttacher", 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: "TargetSlot", id: typeof TargetSlot === "object" && "id" in TargetSlot ? TargetSlot === null || TargetSlot === void 0 ? void 0 : TargetSlot.id : undefined, value: typeof TargetSlot === "object" && "value" in TargetSlot ? TargetSlot === null || TargetSlot === void 0 ? void 0 : TargetSlot.value : TargetSlot, isRaw: typeof TargetSlot === "object" && "isRaw" in TargetSlot && TargetSlot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_uiRoot", id: typeof _uiRoot === "object" && "id" in _uiRoot ? _uiRoot === null || _uiRoot === void 0 ? void 0 : _uiRoot.id : undefined, value: typeof _uiRoot === "object" && "value" in _uiRoot ? _uiRoot === null || _uiRoot === void 0 ? void 0 : _uiRoot.value : _uiRoot, isRaw: typeof _uiRoot === "object" && "isRaw" in _uiRoot && _uiRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.TextField]", name: "_customGenericType", id: typeof _customGenericType === "object" && "id" in _customGenericType ? _customGenericType === null || _customGenericType === void 0 ? void 0 : _customGenericType.id : undefined, value: typeof _customGenericType === "object" && "value" in _customGenericType ? _customGenericType === null || _customGenericType === void 0 ? void 0 : _customGenericType.value : _customGenericType, isRaw: typeof _customGenericType === "object" && "isRaw" in _customGenericType && _customGenericType.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncType", name: "_genericType", id: typeof _genericType === "object" && "id" in _genericType ? _genericType === null || _genericType === void 0 ? void 0 : _genericType.id : undefined, value: typeof _genericType === "object" && "value" in _genericType ? _genericType === null || _genericType === void 0 ? void 0 : _genericType.value : _genericType, isRaw: typeof _genericType === "object" && "isRaw" in _genericType && _genericType.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.String]", name: "_customGenericTypeLabel", id: typeof _customGenericTypeLabel === "object" && "id" in _customGenericTypeLabel ? _customGenericTypeLabel === null || _customGenericTypeLabel === void 0 ? void 0 : _customGenericTypeLabel.id : undefined, value: typeof _customGenericTypeLabel === "object" && "value" in _customGenericTypeLabel ? _customGenericTypeLabel === null || _customGenericTypeLabel === void 0 ? void 0 : _customGenericTypeLabel.value : _customGenericTypeLabel, isRaw: typeof _customGenericTypeLabel === "object" && "isRaw" in _customGenericTypeLabel && _customGenericTypeLabel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "_customGenericTypeColor", id: typeof _customGenericTypeColor === "object" && "id" in _customGenericTypeColor ? _customGenericTypeColor === null || _customGenericTypeColor === void 0 ? void 0 : _customGenericTypeColor.id : undefined, value: typeof _customGenericTypeColor === "object" && "value" in _customGenericTypeColor ? _customGenericTypeColor === null || _customGenericTypeColor === void 0 ? void 0 : _customGenericTypeColor.value : _customGenericTypeColor, isRaw: typeof _customGenericTypeColor === "object" && "isRaw" in _customGenericTypeColor && _customGenericTypeColor.isRaw ? true : undefined })] })));
}
exports.ComponentAttacher = ComponentAttacher;
;