UNPKG

neos-script

Version:

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

23 lines (22 loc) 6.83 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.VirtualKey = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function VirtualKey(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TargetKey = props.TargetKey, AppendString = props.AppendString, ShiftTargetKey = props.ShiftTargetKey, ShiftAppendString = props.ShiftAppendString, IgnoreShift = props.IgnoreShift, ModifierKey = props.ModifierKey, ModifiedTargetKey = props.ModifiedTargetKey, ModifiedAppendString = props.ModifiedAppendString, Keyboard = props.Keyboard; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.VirtualKey", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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[FrooxEngine.Key]", name: "TargetKey", id: typeof TargetKey === "object" && "id" in TargetKey ? TargetKey === null || TargetKey === void 0 ? void 0 : TargetKey.id : undefined, value: typeof TargetKey === "object" && "value" in TargetKey ? TargetKey === null || TargetKey === void 0 ? void 0 : TargetKey.value : TargetKey, isRaw: typeof TargetKey === "object" && "isRaw" in TargetKey && TargetKey.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "AppendString", id: typeof AppendString === "object" && "id" in AppendString ? AppendString === null || AppendString === void 0 ? void 0 : AppendString.id : undefined, value: typeof AppendString === "object" && "value" in AppendString ? AppendString === null || AppendString === void 0 ? void 0 : AppendString.value : AppendString, isRaw: typeof AppendString === "object" && "isRaw" in AppendString && AppendString.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.Key]", name: "ShiftTargetKey", id: typeof ShiftTargetKey === "object" && "id" in ShiftTargetKey ? ShiftTargetKey === null || ShiftTargetKey === void 0 ? void 0 : ShiftTargetKey.id : undefined, value: typeof ShiftTargetKey === "object" && "value" in ShiftTargetKey ? ShiftTargetKey === null || ShiftTargetKey === void 0 ? void 0 : ShiftTargetKey.value : ShiftTargetKey, isRaw: typeof ShiftTargetKey === "object" && "isRaw" in ShiftTargetKey && ShiftTargetKey.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "ShiftAppendString", id: typeof ShiftAppendString === "object" && "id" in ShiftAppendString ? ShiftAppendString === null || ShiftAppendString === void 0 ? void 0 : ShiftAppendString.id : undefined, value: typeof ShiftAppendString === "object" && "value" in ShiftAppendString ? ShiftAppendString === null || ShiftAppendString === void 0 ? void 0 : ShiftAppendString.value : ShiftAppendString, isRaw: typeof ShiftAppendString === "object" && "isRaw" in ShiftAppendString && ShiftAppendString.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IgnoreShift", id: typeof IgnoreShift === "object" && "id" in IgnoreShift ? IgnoreShift === null || IgnoreShift === void 0 ? void 0 : IgnoreShift.id : undefined, value: typeof IgnoreShift === "object" && "value" in IgnoreShift ? IgnoreShift === null || IgnoreShift === void 0 ? void 0 : IgnoreShift.value : IgnoreShift, isRaw: typeof IgnoreShift === "object" && "isRaw" in IgnoreShift && IgnoreShift.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.VirtualModifierKey]", name: "ModifierKey", id: typeof ModifierKey === "object" && "id" in ModifierKey ? ModifierKey === null || ModifierKey === void 0 ? void 0 : ModifierKey.id : undefined, value: typeof ModifierKey === "object" && "value" in ModifierKey ? ModifierKey === null || ModifierKey === void 0 ? void 0 : ModifierKey.value : ModifierKey, isRaw: typeof ModifierKey === "object" && "isRaw" in ModifierKey && ModifierKey.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.Key]", name: "ModifiedTargetKey", id: typeof ModifiedTargetKey === "object" && "id" in ModifiedTargetKey ? ModifiedTargetKey === null || ModifiedTargetKey === void 0 ? void 0 : ModifiedTargetKey.id : undefined, value: typeof ModifiedTargetKey === "object" && "value" in ModifiedTargetKey ? ModifiedTargetKey === null || ModifiedTargetKey === void 0 ? void 0 : ModifiedTargetKey.value : ModifiedTargetKey, isRaw: typeof ModifiedTargetKey === "object" && "isRaw" in ModifiedTargetKey && ModifiedTargetKey.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "ModifiedAppendString", id: typeof ModifiedAppendString === "object" && "id" in ModifiedAppendString ? ModifiedAppendString === null || ModifiedAppendString === void 0 ? void 0 : ModifiedAppendString.id : undefined, value: typeof ModifiedAppendString === "object" && "value" in ModifiedAppendString ? ModifiedAppendString === null || ModifiedAppendString === void 0 ? void 0 : ModifiedAppendString.value : ModifiedAppendString, isRaw: typeof ModifiedAppendString === "object" && "isRaw" in ModifiedAppendString && ModifiedAppendString.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.VirtualKeyboard]", name: "Keyboard", id: typeof Keyboard === "object" && "id" in Keyboard ? Keyboard === null || Keyboard === void 0 ? void 0 : Keyboard.id : undefined, value: typeof Keyboard === "object" && "value" in Keyboard ? Keyboard === null || Keyboard === void 0 ? void 0 : Keyboard.value : Keyboard, isRaw: typeof Keyboard === "object" && "isRaw" in Keyboard && Keyboard.isRaw ? true : undefined })] }))); } exports.VirtualKey = VirtualKey; ;