UNPKG

neos-script

Version:

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

23 lines (22 loc) 12.4 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.ClassroomController = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function ClassroomController(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _canvas = props._canvas, _panel = props._panel, _currentPanel = props._currentPanel, _container = props._container, CurrentScreen = props.CurrentScreen, QuizType = props.QuizType, TargetMode = props.TargetMode, ShowLabels = props.ShowLabels, StudentsCanGrab = props.StudentsCanGrab, _loggedInUsersLabel = props._loggedInUsersLabel, _raiseHandButton = props._raiseHandButton, _joinedLeaveButton = props._joinedLeaveButton, _joinedStatusLabel = props._joinedStatusLabel, _toggleQuizButton = props._toggleQuizButton, _labelingQuiz = props._labelingQuiz, _assemblyQuiz = props._assemblyQuiz, _practiceQuiz = props._practiceQuiz, _databaseDownloadButton = props._databaseDownloadButton; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "BusinessX.ClassroomController", 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.UIX.Canvas]", name: "_canvas", id: typeof _canvas === "object" && "id" in _canvas ? _canvas === null || _canvas === void 0 ? void 0 : _canvas.id : undefined, value: typeof _canvas === "object" && "value" in _canvas ? _canvas === null || _canvas === void 0 ? void 0 : _canvas.value : _canvas, isRaw: typeof _canvas === "object" && "isRaw" in _canvas && _canvas.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosPanel]", name: "_panel", id: typeof _panel === "object" && "id" in _panel ? _panel === null || _panel === void 0 ? void 0 : _panel.id : undefined, value: typeof _panel === "object" && "value" in _panel ? _panel === null || _panel === void 0 ? void 0 : _panel.value : _panel, isRaw: typeof _panel === "object" && "isRaw" in _panel && _panel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.RectTransform]", name: "_currentPanel", id: typeof _currentPanel === "object" && "id" in _currentPanel ? _currentPanel === null || _currentPanel === void 0 ? void 0 : _currentPanel.id : undefined, value: typeof _currentPanel === "object" && "value" in _currentPanel ? _currentPanel === null || _currentPanel === void 0 ? void 0 : _currentPanel.value : _currentPanel, isRaw: typeof _currentPanel === "object" && "isRaw" in _currentPanel && _currentPanel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_container", id: typeof _container === "object" && "id" in _container ? _container === null || _container === void 0 ? void 0 : _container.id : undefined, value: typeof _container === "object" && "value" in _container ? _container === null || _container === void 0 ? void 0 : _container.value : _container, isRaw: typeof _container === "object" && "isRaw" in _container && _container.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BusinessX.ClassroomController+Screen]", 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.Sync`1[BusinessX.QuizType]", name: "QuizType", id: typeof QuizType === "object" && "id" in QuizType ? QuizType === null || QuizType === void 0 ? void 0 : QuizType.id : undefined, value: typeof QuizType === "object" && "value" in QuizType ? QuizType === null || QuizType === void 0 ? void 0 : QuizType.value : QuizType, isRaw: typeof QuizType === "object" && "isRaw" in QuizType && QuizType.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BusinessX.ClassroomController+Mode]", name: "TargetMode", id: typeof TargetMode === "object" && "id" in TargetMode ? TargetMode === null || TargetMode === void 0 ? void 0 : TargetMode.id : undefined, value: typeof TargetMode === "object" && "value" in TargetMode ? TargetMode === null || TargetMode === void 0 ? void 0 : TargetMode.value : TargetMode, isRaw: typeof TargetMode === "object" && "isRaw" in TargetMode && TargetMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Checkbox]", name: "ShowLabels", id: typeof ShowLabels === "object" && "id" in ShowLabels ? ShowLabels === null || ShowLabels === void 0 ? void 0 : ShowLabels.id : undefined, value: typeof ShowLabels === "object" && "value" in ShowLabels ? ShowLabels === null || ShowLabels === void 0 ? void 0 : ShowLabels.value : ShowLabels, isRaw: typeof ShowLabels === "object" && "isRaw" in ShowLabels && ShowLabels.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Checkbox]", name: "StudentsCanGrab", id: typeof StudentsCanGrab === "object" && "id" in StudentsCanGrab ? StudentsCanGrab === null || StudentsCanGrab === void 0 ? void 0 : StudentsCanGrab.id : undefined, value: typeof StudentsCanGrab === "object" && "value" in StudentsCanGrab ? StudentsCanGrab === null || StudentsCanGrab === void 0 ? void 0 : StudentsCanGrab.value : StudentsCanGrab, isRaw: typeof StudentsCanGrab === "object" && "isRaw" in StudentsCanGrab && StudentsCanGrab.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_loggedInUsersLabel", id: typeof _loggedInUsersLabel === "object" && "id" in _loggedInUsersLabel ? _loggedInUsersLabel === null || _loggedInUsersLabel === void 0 ? void 0 : _loggedInUsersLabel.id : undefined, value: typeof _loggedInUsersLabel === "object" && "value" in _loggedInUsersLabel ? _loggedInUsersLabel === null || _loggedInUsersLabel === void 0 ? void 0 : _loggedInUsersLabel.value : _loggedInUsersLabel, isRaw: typeof _loggedInUsersLabel === "object" && "isRaw" in _loggedInUsersLabel && _loggedInUsersLabel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_raiseHandButton", id: typeof _raiseHandButton === "object" && "id" in _raiseHandButton ? _raiseHandButton === null || _raiseHandButton === void 0 ? void 0 : _raiseHandButton.id : undefined, value: typeof _raiseHandButton === "object" && "value" in _raiseHandButton ? _raiseHandButton === null || _raiseHandButton === void 0 ? void 0 : _raiseHandButton.value : _raiseHandButton, isRaw: typeof _raiseHandButton === "object" && "isRaw" in _raiseHandButton && _raiseHandButton.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_joinedLeaveButton", id: typeof _joinedLeaveButton === "object" && "id" in _joinedLeaveButton ? _joinedLeaveButton === null || _joinedLeaveButton === void 0 ? void 0 : _joinedLeaveButton.id : undefined, value: typeof _joinedLeaveButton === "object" && "value" in _joinedLeaveButton ? _joinedLeaveButton === null || _joinedLeaveButton === void 0 ? void 0 : _joinedLeaveButton.value : _joinedLeaveButton, isRaw: typeof _joinedLeaveButton === "object" && "isRaw" in _joinedLeaveButton && _joinedLeaveButton.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_joinedStatusLabel", id: typeof _joinedStatusLabel === "object" && "id" in _joinedStatusLabel ? _joinedStatusLabel === null || _joinedStatusLabel === void 0 ? void 0 : _joinedStatusLabel.id : undefined, value: typeof _joinedStatusLabel === "object" && "value" in _joinedStatusLabel ? _joinedStatusLabel === null || _joinedStatusLabel === void 0 ? void 0 : _joinedStatusLabel.value : _joinedStatusLabel, isRaw: typeof _joinedStatusLabel === "object" && "isRaw" in _joinedStatusLabel && _joinedStatusLabel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_toggleQuizButton", id: typeof _toggleQuizButton === "object" && "id" in _toggleQuizButton ? _toggleQuizButton === null || _toggleQuizButton === void 0 ? void 0 : _toggleQuizButton.id : undefined, value: typeof _toggleQuizButton === "object" && "value" in _toggleQuizButton ? _toggleQuizButton === null || _toggleQuizButton === void 0 ? void 0 : _toggleQuizButton.value : _toggleQuizButton, isRaw: typeof _toggleQuizButton === "object" && "isRaw" in _toggleQuizButton && _toggleQuizButton.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_labelingQuiz", id: typeof _labelingQuiz === "object" && "id" in _labelingQuiz ? _labelingQuiz === null || _labelingQuiz === void 0 ? void 0 : _labelingQuiz.id : undefined, value: typeof _labelingQuiz === "object" && "value" in _labelingQuiz ? _labelingQuiz === null || _labelingQuiz === void 0 ? void 0 : _labelingQuiz.value : _labelingQuiz, isRaw: typeof _labelingQuiz === "object" && "isRaw" in _labelingQuiz && _labelingQuiz.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_assemblyQuiz", id: typeof _assemblyQuiz === "object" && "id" in _assemblyQuiz ? _assemblyQuiz === null || _assemblyQuiz === void 0 ? void 0 : _assemblyQuiz.id : undefined, value: typeof _assemblyQuiz === "object" && "value" in _assemblyQuiz ? _assemblyQuiz === null || _assemblyQuiz === void 0 ? void 0 : _assemblyQuiz.value : _assemblyQuiz, isRaw: typeof _assemblyQuiz === "object" && "isRaw" in _assemblyQuiz && _assemblyQuiz.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_practiceQuiz", id: typeof _practiceQuiz === "object" && "id" in _practiceQuiz ? _practiceQuiz === null || _practiceQuiz === void 0 ? void 0 : _practiceQuiz.id : undefined, value: typeof _practiceQuiz === "object" && "value" in _practiceQuiz ? _practiceQuiz === null || _practiceQuiz === void 0 ? void 0 : _practiceQuiz.value : _practiceQuiz, isRaw: typeof _practiceQuiz === "object" && "isRaw" in _practiceQuiz && _practiceQuiz.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_databaseDownloadButton", id: typeof _databaseDownloadButton === "object" && "id" in _databaseDownloadButton ? _databaseDownloadButton === null || _databaseDownloadButton === void 0 ? void 0 : _databaseDownloadButton.id : undefined, value: typeof _databaseDownloadButton === "object" && "value" in _databaseDownloadButton ? _databaseDownloadButton === null || _databaseDownloadButton === void 0 ? void 0 : _databaseDownloadButton.value : _databaseDownloadButton, isRaw: typeof _databaseDownloadButton === "object" && "isRaw" in _databaseDownloadButton && _databaseDownloadButton.isRaw ? true : undefined })] }))); } exports.ClassroomController = ClassroomController; ;