@medyll/idae-machine 0.135.2 → 0.136.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +555 -360
- package/cli.cjs +22 -0
- package/dist/__fixtures__/demoModel.d.ts +79 -0
- package/dist/__fixtures__/demoModel.js +146 -0
- package/dist/ai/frame/AiChatSession.svelte +152 -0
- package/dist/ai/frame/AiChatSession.svelte.d.ts +7 -0
- package/dist/ai/frame/index.d.ts +1 -0
- package/dist/ai/frame/index.js +2 -0
- package/dist/ai/index.d.ts +9 -0
- package/dist/ai/index.js +12 -0
- package/dist/ai/schema/ai-catalogs.d.ts +2 -0
- package/dist/ai/schema/ai-catalogs.js +86 -0
- package/dist/ai/schema/ai-chat-session.d.ts +2 -0
- package/dist/ai/schema/ai-chat-session.js +35 -0
- package/dist/ai/schema/ai-companion.d.ts +2 -0
- package/dist/ai/schema/ai-companion.js +25 -0
- package/dist/ai/schema/ai-message.d.ts +2 -0
- package/dist/ai/schema/ai-message.js +20 -0
- package/dist/ai/schema/ai-tool-call.d.ts +2 -0
- package/dist/ai/schema/ai-tool-call.js +18 -0
- package/dist/ai/schema/ai-user-prompt.d.ts +2 -0
- package/dist/ai/schema/ai-user-prompt.js +17 -0
- package/dist/ai/schema/tag.d.ts +2 -0
- package/dist/ai/schema/tag.js +14 -0
- package/dist/ai/streamIntoRecord.d.ts +31 -0
- package/dist/ai/streamIntoRecord.js +79 -0
- package/dist/config.d.ts +17 -0
- package/dist/config.js +19 -0
- package/dist/data-ui/controls/AlphabetFilter.svelte +114 -0
- package/dist/data-ui/controls/AlphabetFilter.svelte.d.ts +10 -0
- package/dist/data-ui/controls/ButtonAction.svelte +151 -0
- package/dist/data-ui/controls/ButtonAction.svelte.d.ts +18 -0
- package/dist/data-ui/controls/DataFind.svelte +174 -0
- package/dist/data-ui/controls/DataFind.svelte.d.ts +10 -0
- package/dist/data-ui/controls/DataGroup.svelte +150 -0
- package/dist/data-ui/controls/DataGroup.svelte.d.ts +7 -0
- package/dist/data-ui/controls/DataSort.svelte +78 -0
- package/dist/data-ui/controls/DataSort.svelte.d.ts +9 -0
- package/dist/data-ui/controls/DataToolbar.svelte +67 -0
- package/dist/data-ui/controls/DataToolbar.svelte.d.ts +11 -0
- package/dist/data-ui/controls/Find.svelte +38 -0
- package/dist/data-ui/controls/Find.svelte.d.ts +9 -0
- package/dist/data-ui/controls/FkFilter.svelte +94 -0
- package/dist/data-ui/controls/FkFilter.svelte.d.ts +11 -0
- package/dist/data-ui/controls/Group.svelte +36 -0
- package/dist/data-ui/controls/Group.svelte.d.ts +8 -0
- package/dist/data-ui/controls/ListMode.svelte +79 -0
- package/dist/data-ui/controls/ListMode.svelte.d.ts +10 -0
- package/dist/data-ui/controls/Sort.svelte +100 -0
- package/dist/data-ui/controls/Sort.svelte.d.ts +8 -0
- package/dist/data-ui/data/DataCount.svelte +67 -0
- package/dist/data-ui/data/DataCount.svelte.d.ts +36 -0
- package/dist/data-ui/data/DataFk.svelte +54 -0
- package/dist/data-ui/data/DataFk.svelte.d.ts +11 -0
- package/dist/data-ui/data/DataForm.svelte +191 -0
- package/dist/data-ui/data/DataForm.svelte.d.ts +15 -0
- package/dist/data-ui/data/DataList.svelte +645 -0
- package/dist/data-ui/data/DataList.svelte.d.ts +75 -0
- package/dist/data-ui/data/DataListFk.svelte +111 -0
- package/dist/data-ui/data/DataListFk.svelte.d.ts +13 -0
- package/dist/data-ui/data/DataListRfk.svelte +111 -0
- package/dist/data-ui/data/DataListRfk.svelte.d.ts +13 -0
- package/dist/data-ui/data/DataRecord.svelte +167 -0
- package/dist/data-ui/data/DataRecord.svelte.d.ts +22 -0
- package/dist/data-ui/data/DataRfk.svelte +73 -0
- package/dist/data-ui/data/DataRfk.svelte.d.ts +15 -0
- package/dist/data-ui/data/index.d.ts +7 -0
- package/dist/data-ui/data/index.js +8 -0
- package/dist/data-ui/field/DataField.svelte +343 -0
- package/dist/data-ui/field/DataField.svelte.d.ts +33 -0
- package/dist/{form/FieldInPlace.svelte → data-ui/field/DataFieldEdit.svelte} +103 -98
- package/dist/{form/FieldInPlace.svelte.d.ts → data-ui/field/DataFieldEdit.svelte.d.ts} +5 -5
- package/dist/data-ui/field/index.d.ts +2 -0
- package/dist/data-ui/field/index.js +3 -0
- package/dist/data-ui/field/snippets/FieldAiPrompt.svelte +145 -0
- package/dist/data-ui/field/snippets/FieldAiPrompt.svelte.d.ts +14 -0
- package/dist/data-ui/field/snippets/FieldBoolean.svelte +43 -0
- package/dist/data-ui/field/snippets/FieldBoolean.svelte.d.ts +12 -0
- package/dist/data-ui/field/snippets/FieldColor.svelte +48 -0
- package/dist/data-ui/field/snippets/FieldColor.svelte.d.ts +10 -0
- package/dist/data-ui/field/snippets/FieldCurrency.svelte +105 -0
- package/dist/data-ui/field/snippets/FieldCurrency.svelte.d.ts +15 -0
- package/dist/data-ui/field/snippets/FieldEmail.svelte +77 -0
- package/dist/data-ui/field/snippets/FieldEmail.svelte.d.ts +14 -0
- package/dist/data-ui/field/snippets/FieldIcon.svelte +73 -0
- package/dist/data-ui/field/snippets/FieldIcon.svelte.d.ts +11 -0
- package/dist/data-ui/field/snippets/FieldSelect.svelte +71 -0
- package/dist/data-ui/field/snippets/FieldSelect.svelte.d.ts +15 -0
- package/dist/data-ui/field/snippets/FieldText.svelte +52 -0
- package/dist/data-ui/field/snippets/FieldText.svelte.d.ts +13 -0
- package/dist/data-ui/field/snippets/FieldTextarea.svelte +50 -0
- package/dist/data-ui/field/snippets/FieldTextarea.svelte.d.ts +13 -0
- package/dist/data-ui/field/snippets/index.d.ts +9 -0
- package/dist/data-ui/field/snippets/index.js +10 -0
- package/dist/data-ui/fragments/ContextMenu.svelte +109 -0
- package/dist/data-ui/fragments/ContextMenu.svelte.d.ts +4 -0
- package/dist/data-ui/fragments/ContextMenuContent.svelte +275 -0
- package/dist/data-ui/fragments/ContextMenuContent.svelte.d.ts +8 -0
- package/dist/data-ui/fragments/Frame.svelte +43 -0
- package/dist/data-ui/fragments/Frame.svelte.d.ts +10 -0
- package/dist/data-ui/fragments/InfoLine.svelte +123 -0
- package/dist/data-ui/fragments/InfoLine.svelte.d.ts +12 -0
- package/dist/data-ui/fragments/Selector.svelte +56 -0
- package/dist/data-ui/fragments/Selector.svelte.d.ts +10 -0
- package/dist/{fragments → data-ui/fragments}/Skeleton.svelte +21 -21
- package/dist/data-ui/fragments/Tile.svelte +126 -0
- package/dist/data-ui/fragments/Tile.svelte.d.ts +14 -0
- package/dist/data-ui/fragments/contextMenu.svelte.d.ts +22 -0
- package/dist/data-ui/fragments/contextMenu.svelte.js +31 -0
- package/dist/data-ui/fragments/dialog/Dialog.svelte +185 -0
- package/dist/data-ui/fragments/dialog/Dialog.svelte.d.ts +29 -0
- package/dist/data-ui/fragments/dialog/dialog.svelte.d.ts +27 -0
- package/dist/data-ui/fragments/dialog/dialog.svelte.js +41 -0
- package/dist/data-ui/fragments/index.d.ts +11 -0
- package/dist/data-ui/fragments/index.js +11 -0
- package/dist/data-ui/utils/__tests__/HostProbe.svelte +18 -0
- package/dist/data-ui/utils/__tests__/HostProbe.svelte.d.ts +8 -0
- package/dist/data-ui/utils/data-utils.d.ts +29 -0
- package/dist/data-ui/utils/data-utils.js +83 -0
- package/dist/data-ui/utils/dataRelationUtils.d.ts +37 -0
- package/dist/data-ui/utils/dataRelationUtils.js +125 -0
- package/dist/data-ui/utils/diagramUtils.d.ts +6 -0
- package/dist/data-ui/utils/diagramUtils.js +131 -0
- package/dist/data-ui/utils/draggable.d.ts +15 -0
- package/dist/data-ui/utils/draggable.js +61 -0
- package/dist/data-ui/utils/menuPrefs.d.ts +80 -0
- package/dist/data-ui/utils/menuPrefs.js +119 -0
- package/dist/data-ui/utils/useMachinePrefs.svelte.d.ts +38 -0
- package/dist/data-ui/utils/useMachinePrefs.svelte.js +117 -0
- package/dist/data-ui/utils/useMenuTree.svelte.d.ts +26 -0
- package/dist/data-ui/utils/useMenuTree.svelte.js +68 -0
- package/dist/data-ui/utils/useRecordData.svelte.d.ts +22 -0
- package/dist/data-ui/utils/useRecordData.svelte.js +50 -0
- package/dist/data-ui/utils/useViewFields.svelte.d.ts +22 -0
- package/dist/data-ui/utils/useViewFields.svelte.js +59 -0
- package/dist/demo/.gitkeep +0 -0
- package/dist/demo/demo-status.json +9 -0
- package/dist/idae/boot.d.ts +28 -0
- package/dist/idae/boot.js +43 -0
- package/dist/idae/bridge/register.d.ts +4 -0
- package/dist/idae/bridge/register.js +15 -0
- package/dist/idae/capabilities/Capabilities.d.ts +10 -0
- package/dist/idae/capabilities/Capabilities.js +34 -0
- package/dist/idae/codefield/CodeFieldConvention.d.ts +3 -0
- package/dist/idae/codefield/CodeFieldConvention.js +25 -0
- package/dist/idae/fieldcatalog/defaultFieldTypesDef.d.ts +2 -0
- package/dist/idae/fieldcatalog/defaultFieldTypesDef.js +104 -0
- package/dist/idae/frames/FrameCatalog.d.ts +31 -0
- package/dist/idae/frames/FrameCatalog.js +31 -0
- package/dist/idae/index.d.ts +14 -0
- package/dist/idae/index.js +13 -0
- package/dist/idae/menu/IdaeMenuManager.d.ts +79 -0
- package/dist/idae/menu/IdaeMenuManager.js +108 -0
- package/dist/idae/menu/IdaeMenuStore.d.ts +77 -0
- package/dist/idae/menu/IdaeMenuStore.js +68 -0
- package/dist/idae/menu/menuSnapshot.d.ts +30 -0
- package/dist/idae/menu/menuSnapshot.js +30 -0
- package/dist/idae/meta/MetaModelProvider.d.ts +11 -0
- package/dist/idae/meta/MetaModelProvider.js +43 -0
- package/dist/idae/relations/RelationPolicy.d.ts +19 -0
- package/dist/idae/relations/RelationPolicy.js +125 -0
- package/dist/idae/rights/RightsPolicy.d.ts +16 -0
- package/dist/idae/rights/RightsPolicy.js +80 -0
- package/dist/idae/userscope/UserScopePolicy.d.ts +9 -0
- package/dist/idae/userscope/UserScopePolicy.js +42 -0
- package/dist/idae/userscope/navTracking.d.ts +11 -0
- package/dist/idae/userscope/navTracking.js +15 -0
- package/dist/index.d.ts +68 -35
- package/dist/index.js +82 -36
- package/dist/main/__tests__/_relationTestUtils.d.ts +12 -0
- package/dist/main/__tests__/_relationTestUtils.js +53 -0
- package/dist/main/__tests__/helpers/mockCollection.d.ts +21 -0
- package/dist/main/__tests__/helpers/mockCollection.js +27 -0
- package/dist/main/api/types.d.ts +29 -0
- package/dist/main/ext/hooks.d.ts +32 -0
- package/dist/main/ext/hooks.js +31 -0
- package/dist/main/ext/interfaces.d.ts +69 -0
- package/dist/main/ext/interfaces.js +3 -0
- package/dist/main/ext/registry.d.ts +29 -0
- package/dist/main/ext/registry.js +30 -0
- package/dist/main/frame/MachineFrameManager.d.ts +187 -0
- package/dist/main/frame/MachineFrameManager.js +403 -0
- package/dist/main/frame/contextMenuSetup.d.ts +9 -0
- package/dist/main/frame/contextMenuSetup.js +42 -0
- package/dist/main/frame/frameUrl.d.ts +1 -0
- package/dist/main/frame/frameUrl.js +8 -0
- package/dist/main/frame/frameUtils.d.ts +16 -0
- package/dist/main/frame/frameUtils.js +26 -0
- package/dist/main/frame/linkParser.d.ts +9 -0
- package/dist/main/frame/linkParser.js +15 -0
- package/dist/main/index.d.ts +15 -0
- package/dist/main/index.js +19 -0
- package/dist/main/machine/MachineAction.d.ts +62 -0
- package/dist/main/machine/MachineAction.js +96 -0
- package/dist/main/machine/MachineError.js +2 -2
- package/dist/main/machine/MachineFieldType.d.ts +25 -6
- package/dist/main/machine/MachineFieldType.js +118 -27
- package/dist/main/machine/MachineFkFold.d.ts +34 -0
- package/dist/main/machine/MachineFkFold.js +57 -0
- package/dist/main/machine/MachineRecordIdentity.d.ts +26 -0
- package/dist/main/machine/MachineRecordIdentity.js +44 -0
- package/dist/main/machine/MachineRights.d.ts +50 -0
- package/dist/main/machine/MachineRights.js +133 -0
- package/dist/main/machine/MachineRouter.d.ts +56 -0
- package/dist/main/machine/MachineRouter.js +250 -0
- package/dist/main/machine/MachineScheme.d.ts +40 -70
- package/dist/main/machine/MachineScheme.js +107 -94
- package/dist/main/machine/MachineSchemeField.js +32 -16
- package/dist/main/machine/MachineSchemeFieldForge.d.ts +11 -11
- package/dist/main/machine/MachineSchemeFieldForge.js +33 -21
- package/dist/main/machine/MachineSchemeFieldValues.d.ts +8 -9
- package/dist/main/machine/MachineSchemeFieldValues.js +12 -9
- package/dist/main/machine/MachineSchemeValidate.d.ts +69 -13
- package/dist/main/machine/MachineSchemeValidate.js +173 -46
- package/dist/main/machine/MachineSchemeValues.d.ts +32 -21
- package/dist/main/machine/MachineSchemeValues.js +132 -104
- package/dist/main/machine/SchemeFieldDefaultValues.d.ts +4 -2
- package/dist/main/machine/SchemeFieldDefaultValues.js +8 -2
- package/dist/main/machine/authState.svelte.d.ts +11 -0
- package/dist/main/machine/authState.svelte.js +17 -0
- package/dist/main/machine/fieldBuilder.d.ts +23 -0
- package/dist/main/machine/fieldBuilder.d.ts.map +1 -0
- package/dist/main/machine/fieldBuilder.js +10 -0
- package/dist/main/machine/fieldBuilder.js.map +1 -0
- package/dist/main/machine/machineLabel.d.ts +11 -0
- package/dist/main/machine/machineLabel.js +23 -0
- package/dist/main/machine/validateRules.d.ts +38 -0
- package/dist/main/machine/validateRules.js +109 -0
- package/dist/main/machine.d.ts +207 -68
- package/dist/main/machine.js +482 -96
- package/dist/main/machineDb.d.ts +21 -8
- package/dist/main/machineDb.js +33 -4
- package/dist/main/machineIdbAdapter.d.ts +83 -0
- package/dist/main/machineIdbAdapter.js +347 -0
- package/dist/main/machineModelBuilder.d.ts +31 -0
- package/dist/main/machineModelBuilder.js +58 -0
- package/dist/main/machineParserForge.d.ts +9 -18
- package/dist/main/machineParserForge.js +92 -35
- package/dist/main/machineSchemaCache.d.ts +8 -0
- package/dist/main/machineSchemaCache.js +58 -0
- package/dist/main/machineSchemaDoctor.d.ts +17 -0
- package/dist/main/machineSchemaDoctor.js +73 -0
- package/dist/main/machineSchemaLoader.d.ts +18 -0
- package/dist/main/machineSchemaLoader.js +43 -0
- package/dist/main/machineSeed.d.ts +21 -0
- package/dist/main/machineSeed.js +44 -0
- package/dist/main/router/componentRegistry.d.ts +35 -0
- package/dist/main/router/componentRegistry.js +35 -0
- package/dist/main/router/urlParser.d.ts +17 -0
- package/dist/main/router/urlParser.js +41 -0
- package/dist/main/warmupUtils.d.ts +40 -0
- package/dist/main/warmupUtils.js +73 -0
- package/dist/mcp/MachineMcpClient.d.ts +43 -0
- package/dist/mcp/MachineMcpClient.js +175 -0
- package/dist/shell/Frame.svelte +67 -0
- package/dist/shell/Frame.svelte.d.ts +11 -0
- package/dist/shell/auth/Login.svelte +244 -0
- package/dist/shell/auth/Login.svelte.d.ts +3 -0
- package/dist/shell/frame/dashboard/Dashboard.svelte +0 -0
- package/dist/shell/frame/dashboard/Dashboard.svelte.d.ts +26 -0
- package/dist/shell/frame/diagram/Diagram.svelte +244 -0
- package/dist/shell/frame/diagram/Diagram.svelte.d.ts +9 -0
- package/dist/shell/frame/explorer/Explorer.svelte +86 -0
- package/dist/shell/frame/explorer/Explorer.svelte.d.ts +29 -0
- package/dist/shell/frame/explorer/ExplorerContent.svelte +126 -0
- package/dist/shell/frame/explorer/ExplorerContent.svelte.d.ts +32 -0
- package/dist/shell/frame/index.d.ts +8 -0
- package/dist/shell/frame/index.js +9 -0
- package/dist/shell/frame/main-menu-content/MainMenuContent.svelte +100 -0
- package/dist/shell/frame/main-menu-content/MainMenuContent.svelte.d.ts +6 -0
- package/dist/shell/frame/planning/Planning.svelte +426 -0
- package/dist/shell/frame/planning/Planning.svelte.d.ts +12 -0
- package/dist/shell/frame/rbac/RbacMatrix.svelte +197 -0
- package/dist/shell/frame/rbac/RbacMatrix.svelte.d.ts +7 -0
- package/dist/shell/frame/space/Space.svelte +554 -0
- package/dist/shell/frame/space/Space.svelte.d.ts +8 -0
- package/dist/shell/frame/synthesis/Synthesis.svelte +383 -0
- package/dist/shell/frame/synthesis/Synthesis.svelte.d.ts +8 -0
- package/dist/shell/frame/today/Today.svelte +174 -0
- package/dist/shell/frame/today/Today.svelte.d.ts +3 -0
- package/dist/shell/layout/App.svelte +30 -0
- package/dist/shell/layout/App.svelte.d.ts +3 -0
- package/dist/shell/layout/Breadcrumb.svelte +67 -0
- package/dist/shell/layout/Breadcrumb.svelte.d.ts +12 -0
- package/dist/shell/layout/Columner.svelte +214 -0
- package/dist/shell/layout/Columner.svelte.d.ts +16 -0
- package/dist/shell/layout/DevResetPanel.svelte +194 -0
- package/dist/shell/layout/DevResetPanel.svelte.d.ts +7 -0
- package/dist/shell/layout/Fiche.svelte +111 -0
- package/dist/shell/layout/Fiche.svelte.d.ts +7 -0
- package/dist/shell/layout/FicheUpdate.svelte +53 -0
- package/dist/shell/layout/FicheUpdate.svelte.d.ts +7 -0
- package/dist/shell/layout/MainMenu.svelte +256 -0
- package/dist/shell/layout/MainMenu.svelte.d.ts +6 -0
- package/dist/shell/layout/MenuSettings.svelte +182 -0
- package/dist/shell/layout/MenuSettings.svelte.d.ts +6 -0
- package/dist/shell/layout/RecordTimeline.svelte +199 -0
- package/dist/shell/layout/RecordTimeline.svelte.d.ts +8 -0
- package/dist/shell/layout/RecordToolbar.svelte +39 -0
- package/dist/shell/layout/RecordToolbar.svelte.d.ts +7 -0
- package/dist/shell/layout/TaskBar.svelte +118 -0
- package/dist/shell/layout/TaskBar.svelte.d.ts +7 -0
- package/dist/shell/layout/TemplateShell.svelte +48 -0
- package/dist/shell/layout/TemplateShell.svelte.d.ts +15 -0
- package/dist/shell/layout/ThemeToggle.svelte +46 -0
- package/dist/shell/layout/ThemeToggle.svelte.d.ts +3 -0
- package/dist/shell/layout/index.d.ts +8 -0
- package/dist/shell/layout/index.js +9 -0
- package/dist/storage/ApiStorageAdapter.d.ts +41 -0
- package/dist/storage/ApiStorageAdapter.js +111 -0
- package/dist/storage/IdbStorageAdapter.d.ts +31 -0
- package/dist/storage/IdbStorageAdapter.js +72 -0
- package/dist/storage/MemoryStorageAdapter.d.ts +33 -0
- package/dist/storage/MemoryStorageAdapter.js +132 -0
- package/dist/storage/README.md +222 -0
- package/dist/storage/StorageAdapter.d.ts +75 -0
- package/dist/storage/StorageAdapter.js +7 -0
- package/dist/storage/demo/storage-demo.d.ts +22 -0
- package/dist/storage/demo/storage-demo.js +107 -0
- package/dist/storage/index.d.ts +9 -0
- package/dist/storage/index.js +9 -0
- package/dist/types/entity-types.d.ts +444 -0
- package/dist/types/entity-types.js +16 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.js +6 -0
- package/dist/types/machine-model.d.ts +198 -0
- package/dist/types/machine-model.js +5 -0
- package/dist/types/qoolie-svelte.d.ts +11 -0
- package/dist/types/schema-utils.d.ts +32 -0
- package/dist/types/schema-utils.js +103 -0
- package/dist/utils/generateCode.d.ts +5 -0
- package/dist/utils/generateCode.js +9 -0
- package/dist/utils/logger.d.ts +10 -0
- package/dist/utils/logger.js +20 -0
- package/package.json +59 -33
- package/cli.js +0 -46
- package/dist/db/CrudService.d.ts +0 -9
- package/dist/db/CrudService.js +0 -45
- package/dist/demo/dbSchema.d.ts +0 -446
- package/dist/demo/dbSchema.js +0 -449
- package/dist/demo/testScheme.d.ts +0 -56
- package/dist/demo/testScheme.js +0 -42
- package/dist/form/CreateUpdate.svelte +0 -219
- package/dist/form/CreateUpdate.svelte.d.ts +0 -27
- package/dist/form/DataProvider.svelte +0 -23
- package/dist/form/DataProvider.svelte.d.ts +0 -7
- package/dist/form/FieldValue.svelte +0 -148
- package/dist/form/FieldValue.svelte.d.ts +0 -34
- package/dist/form/types.d.ts +0 -17
- package/dist/fragments/Confirm.svelte +0 -73
- package/dist/fragments/Confirm.svelte.d.ts +0 -7
- package/dist/fragments/Frame.svelte +0 -19
- package/dist/fragments/Frame.svelte.d.ts +0 -32
- package/dist/fragments/InfoLine.svelte +0 -21
- package/dist/fragments/InfoLine.svelte.d.ts +0 -35
- package/dist/fragments/Selector.svelte +0 -26
- package/dist/fragments/Selector.svelte.d.ts +0 -38
- package/dist/main/machine/MachineSchemeField.d.ts +0 -19
- package/dist/types/appschemeTypes.d.ts +0 -71
- package/dist/types/appschemeTypes.js +0 -83
- package/dist/ui/CollectionButton.svelte +0 -29
- package/dist/ui/CollectionButton.svelte.d.ts +0 -29
- package/dist/ui/CollectionFks.svelte +0 -24
- package/dist/ui/CollectionFks.svelte.d.ts +0 -9
- package/dist/ui/CollectionList.svelte +0 -100
- package/dist/ui/CollectionList.svelte.d.ts +0 -36
- package/dist/ui/CollectionListFieldValues.svelte +0 -59
- package/dist/ui/CollectionListFieldValues.svelte.d.ts +0 -9
- package/dist/ui/CollectionListMenu.svelte +0 -39
- package/dist/ui/CollectionListMenu.svelte.d.ts +0 -34
- package/dist/ui/CollectionReverseFks.svelte +0 -37
- package/dist/ui/CollectionReverseFks.svelte.d.ts +0 -14
- /package/dist/{fragments → data-ui/fragments}/Skeleton.svelte.d.ts +0 -0
- /package/dist/{form → main/api}/types.js +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a URL containing one or more +targetId segments into LoadInSegment[].
|
|
3
|
+
*
|
|
4
|
+
* URL format: /+targetId/modulePath/collection[/collectionId][?vars]
|
|
5
|
+
* Multi-segment: /+t1/mod1/col1/42/+t2/mod2/col2?x=1
|
|
6
|
+
*
|
|
7
|
+
* Decision: URL without any + prefix returns [] (not an error).
|
|
8
|
+
* This allows the parser to be used safely on any URL.
|
|
9
|
+
*/
|
|
10
|
+
export function parseLoadInUrl(url) {
|
|
11
|
+
if (!url.includes('+'))
|
|
12
|
+
return [];
|
|
13
|
+
const withoutQuery = url.split('?')[0];
|
|
14
|
+
const queryString = url.includes('?') ? url.split('?')[1] : '';
|
|
15
|
+
const segments = withoutQuery.split('/+').filter(Boolean);
|
|
16
|
+
const result = [];
|
|
17
|
+
for (let i = 0; i < segments.length; i++) {
|
|
18
|
+
const seg = segments[i];
|
|
19
|
+
const parts = seg.split('/');
|
|
20
|
+
const targetId = parts[0] ?? '';
|
|
21
|
+
const modulePath = parts[1] ?? '';
|
|
22
|
+
const collection = parts[2] ?? '';
|
|
23
|
+
const collectionId = parts[3] ?? undefined;
|
|
24
|
+
let vars;
|
|
25
|
+
if (i === segments.length - 1 && queryString) {
|
|
26
|
+
vars = parseQueryString(queryString);
|
|
27
|
+
}
|
|
28
|
+
result.push({ targetId, modulePath, collection, collectionId, vars });
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
function parseQueryString(query) {
|
|
33
|
+
const params = {};
|
|
34
|
+
for (const pair of query.split('&')) {
|
|
35
|
+
const [key, ...rest] = pair.split('=');
|
|
36
|
+
if (key) {
|
|
37
|
+
params[decodeURIComponent(key)] = rest.length > 0 ? decodeURIComponent(rest.join('=')) : '';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return params;
|
|
41
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities for deriving warmup collection lists from the machine model
|
|
3
|
+
* Replaces hardcoded warmup arrays with model-driven collection selection
|
|
4
|
+
*/
|
|
5
|
+
import type { MachineModel } from '../types/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Get collections that are critical for schema hydration (warmup candidates).
|
|
8
|
+
* These are collections with base='machine_app' that feed the shell UI.
|
|
9
|
+
* Delegates to the domain bridge if registered; falls back to inline implementation.
|
|
10
|
+
*
|
|
11
|
+
* @param model - The machine model to analyze
|
|
12
|
+
* @param bases - Array of bases to include (default: ['machine_app'])
|
|
13
|
+
* @returns Array of collection names that should be warmed up
|
|
14
|
+
*/
|
|
15
|
+
export declare function getSchemaCriticalCollections(model: MachineModel, bases?: string[]): string[];
|
|
16
|
+
/**
|
|
17
|
+
* Get all collections that should be warmed up for optimal UI performance.
|
|
18
|
+
* Includes schema-critical collections plus other high-priority collections.
|
|
19
|
+
*
|
|
20
|
+
* @param model - The machine model to analyze
|
|
21
|
+
* @returns Array of collection names for comprehensive warmup
|
|
22
|
+
*/
|
|
23
|
+
export declare function getComprehensiveWarmupCollections(model: MachineModel): string[];
|
|
24
|
+
/** Minimal interface — hydrateAll is a qoolie extension, not in the public type. */
|
|
25
|
+
type HydratableQoolie = {
|
|
26
|
+
hydrateAll?: (collections: string[]) => Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Pre-fetch collections into IDB. Derives the list from the model when not provided.
|
|
30
|
+
* Swallows errors so a warmup failure never blocks the app.
|
|
31
|
+
*/
|
|
32
|
+
export declare function warmup(qoolie: HydratableQoolie, model: MachineModel, collections?: string[]): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Get all base names used in the model
|
|
35
|
+
*
|
|
36
|
+
* @param model - The machine model to analyze
|
|
37
|
+
* @returns Array of unique base names
|
|
38
|
+
*/
|
|
39
|
+
export declare function getModelBases(model: MachineModel): string[];
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { getMetaCollectionResolver } from './ext/hooks.js';
|
|
2
|
+
/**
|
|
3
|
+
* Get collections that are critical for schema hydration (warmup candidates).
|
|
4
|
+
* These are collections with base='machine_app' that feed the shell UI.
|
|
5
|
+
* Delegates to the domain bridge if registered; falls back to inline implementation.
|
|
6
|
+
*
|
|
7
|
+
* @param model - The machine model to analyze
|
|
8
|
+
* @param bases - Array of bases to include (default: ['machine_app'])
|
|
9
|
+
* @returns Array of collection names that should be warmed up
|
|
10
|
+
*/
|
|
11
|
+
export function getSchemaCriticalCollections(model, bases = ['machine_app']) {
|
|
12
|
+
const resolver = getMetaCollectionResolver();
|
|
13
|
+
if (resolver)
|
|
14
|
+
return resolver.getSchemaCriticalCollections(bases);
|
|
15
|
+
const criticalCollections = [];
|
|
16
|
+
for (const [collectionName, collectionDef] of Object.entries(model)) {
|
|
17
|
+
if (collectionDef.base && bases.includes(collectionDef.base)) {
|
|
18
|
+
criticalCollections.push(collectionName);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return Array.from(new Set(criticalCollections)).sort();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get all collections that should be warmed up for optimal UI performance.
|
|
25
|
+
* Includes schema-critical collections plus other high-priority collections.
|
|
26
|
+
*
|
|
27
|
+
* @param model - The machine model to analyze
|
|
28
|
+
* @returns Array of collection names for comprehensive warmup
|
|
29
|
+
*/
|
|
30
|
+
export function getComprehensiveWarmupCollections(model) {
|
|
31
|
+
const collections = getSchemaCriticalCollections(model, ['machine_app', 'machine_user', 'machine_ai']);
|
|
32
|
+
const additionalCollections = [];
|
|
33
|
+
for (const collection of additionalCollections) {
|
|
34
|
+
if (model[collection] && !collections.includes(collection)) {
|
|
35
|
+
collections.push(collection);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return collections;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Pre-fetch collections into IDB. Derives the list from the model when not provided.
|
|
42
|
+
* Swallows errors so a warmup failure never blocks the app.
|
|
43
|
+
*/
|
|
44
|
+
export async function warmup(qoolie, model, collections) {
|
|
45
|
+
const collectionsToWarm = (collections && collections.length > 0)
|
|
46
|
+
? collections
|
|
47
|
+
: getSchemaCriticalCollections(model);
|
|
48
|
+
const hydratePromise = qoolie.hydrateAll?.(collectionsToWarm);
|
|
49
|
+
if (!hydratePromise)
|
|
50
|
+
return;
|
|
51
|
+
const timeout = new Promise((_, reject) => setTimeout(() => reject(new Error('[idae-machine] warmup timed out after 30s')), 30000));
|
|
52
|
+
try {
|
|
53
|
+
await Promise.race([hydratePromise, timeout]);
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
console.warn('[idae-machine] warmup failed (non-blocking):', err);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get all base names used in the model
|
|
61
|
+
*
|
|
62
|
+
* @param model - The machine model to analyze
|
|
63
|
+
* @returns Array of unique base names
|
|
64
|
+
*/
|
|
65
|
+
export function getModelBases(model) {
|
|
66
|
+
const bases = new Set();
|
|
67
|
+
for (const collectionDef of Object.values(model)) {
|
|
68
|
+
if (collectionDef.base) {
|
|
69
|
+
bases.add(collectionDef.base);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return Array.from(bases).sort();
|
|
73
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MachineMcpClient — browser-side WebMCP tool registration.
|
|
3
|
+
*
|
|
4
|
+
* Exposes machine state and actions to an in-browser AI agent via
|
|
5
|
+
* `navigator.modelContext` (WebMCP protocol). Call `registerMachineMcpTools(machine)`
|
|
6
|
+
* once, after `await machine.boot()`, in the app shell.
|
|
7
|
+
*
|
|
8
|
+
* Uses `machine.collection(name)` (imperative) — NOT machine.store() — because
|
|
9
|
+
* tools run outside a Svelte reactive frame and store() requires one.
|
|
10
|
+
*
|
|
11
|
+
* MCP.md phase 5 candidates:
|
|
12
|
+
* machine.collection → read/write IDB
|
|
13
|
+
* machine.framer → navigation
|
|
14
|
+
* machine.rights → user context
|
|
15
|
+
*/
|
|
16
|
+
import type { Machine } from '../main/machine.js';
|
|
17
|
+
interface McpToolInput {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
inputSchema: Record<string, unknown>;
|
|
21
|
+
handler(args: Record<string, unknown>): Promise<{
|
|
22
|
+
content: Array<{
|
|
23
|
+
type: 'text';
|
|
24
|
+
text: string;
|
|
25
|
+
}>;
|
|
26
|
+
isError?: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
interface ModelContext {
|
|
30
|
+
addTool(tool: McpToolInput): void;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface Navigator {
|
|
34
|
+
modelContext?: ModelContext;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Register all machine WebMCP tools on `navigator.modelContext`.
|
|
39
|
+
* Call once, after `await machine.boot()`.
|
|
40
|
+
* No-op in non-browser environments or when modelContext is absent.
|
|
41
|
+
*/
|
|
42
|
+
export declare function registerMachineMcpTools(machine: Machine): void;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MachineMcpClient — browser-side WebMCP tool registration.
|
|
3
|
+
*
|
|
4
|
+
* Exposes machine state and actions to an in-browser AI agent via
|
|
5
|
+
* `navigator.modelContext` (WebMCP protocol). Call `registerMachineMcpTools(machine)`
|
|
6
|
+
* once, after `await machine.boot()`, in the app shell.
|
|
7
|
+
*
|
|
8
|
+
* Uses `machine.collection(name)` (imperative) — NOT machine.store() — because
|
|
9
|
+
* tools run outside a Svelte reactive frame and store() requires one.
|
|
10
|
+
*
|
|
11
|
+
* MCP.md phase 5 candidates:
|
|
12
|
+
* machine.collection → read/write IDB
|
|
13
|
+
* machine.framer → navigation
|
|
14
|
+
* machine.rights → user context
|
|
15
|
+
*/
|
|
16
|
+
// ── Helpers ──────────────────────────────────────────────────────────────────
|
|
17
|
+
function text(value) {
|
|
18
|
+
return { content: [{ type: 'text', text: typeof value === 'string' ? value : JSON.stringify(value, null, 2) }] };
|
|
19
|
+
}
|
|
20
|
+
function err(msg) {
|
|
21
|
+
return { content: [{ type: 'text', text: `Error: ${msg}` }], isError: true };
|
|
22
|
+
}
|
|
23
|
+
// ── Tool definitions ─────────────────────────────────────────────────────────
|
|
24
|
+
function buildTools(machine) {
|
|
25
|
+
return [
|
|
26
|
+
// ── Schema / model ──────────────────────────────────────────────────
|
|
27
|
+
{
|
|
28
|
+
name: 'machine_list_collections',
|
|
29
|
+
description: 'List all collection names in the active machine model (IDB schema).',
|
|
30
|
+
inputSchema: { type: 'object', properties: {} },
|
|
31
|
+
async handler() {
|
|
32
|
+
const names = Object.keys(machine['_effectiveModel'] ?? {});
|
|
33
|
+
return text(names);
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
// ── Read ────────────────────────────────────────────────────────────
|
|
37
|
+
{
|
|
38
|
+
name: 'machine_find',
|
|
39
|
+
description: 'Read all records from an IDB collection, with optional filter (equality checks only).',
|
|
40
|
+
inputSchema: {
|
|
41
|
+
type: 'object',
|
|
42
|
+
properties: {
|
|
43
|
+
collection: { type: 'string', description: 'Collection name' },
|
|
44
|
+
filter: { type: 'object', description: 'Key-value equality filter (optional)' },
|
|
45
|
+
limit: { type: 'number', description: 'Max records (default 100)' },
|
|
46
|
+
},
|
|
47
|
+
required: ['collection'],
|
|
48
|
+
},
|
|
49
|
+
async handler({ collection, filter, limit }) {
|
|
50
|
+
const col = machine.collection(collection);
|
|
51
|
+
const all = await col.getAll();
|
|
52
|
+
let result = filter && typeof filter === 'object'
|
|
53
|
+
? all.filter((r) => {
|
|
54
|
+
for (const [k, v] of Object.entries(filter)) {
|
|
55
|
+
if (r[k] !== v)
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return true;
|
|
59
|
+
})
|
|
60
|
+
: all;
|
|
61
|
+
const cap = typeof limit === 'number' ? limit : 100;
|
|
62
|
+
result = result.slice(0, cap);
|
|
63
|
+
return text(result);
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'machine_get',
|
|
68
|
+
description: 'Read one record from an IDB collection by id.',
|
|
69
|
+
inputSchema: {
|
|
70
|
+
type: 'object',
|
|
71
|
+
properties: {
|
|
72
|
+
collection: { type: 'string', description: 'Collection name' },
|
|
73
|
+
id: { type: ['string', 'number'], description: 'Record id' },
|
|
74
|
+
},
|
|
75
|
+
required: ['collection', 'id'],
|
|
76
|
+
},
|
|
77
|
+
async handler({ collection, id }) {
|
|
78
|
+
const col = machine.collection(collection);
|
|
79
|
+
const record = await col.get(id);
|
|
80
|
+
return record ? text(record) : err(`Record not found: ${String(id)}`);
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
// ── Write ───────────────────────────────────────────────────────────
|
|
84
|
+
{
|
|
85
|
+
name: 'machine_create',
|
|
86
|
+
description: 'Insert a record into an IDB collection.',
|
|
87
|
+
inputSchema: {
|
|
88
|
+
type: 'object',
|
|
89
|
+
properties: {
|
|
90
|
+
collection: { type: 'string', description: 'Collection name' },
|
|
91
|
+
data: { type: 'object', description: 'Record to insert' },
|
|
92
|
+
},
|
|
93
|
+
required: ['collection', 'data'],
|
|
94
|
+
},
|
|
95
|
+
async handler({ collection, data }) {
|
|
96
|
+
const col = machine.collection(collection);
|
|
97
|
+
const result = await col.create(data);
|
|
98
|
+
return text(result);
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'machine_update',
|
|
103
|
+
description: 'Update an existing record in an IDB collection by id.',
|
|
104
|
+
inputSchema: {
|
|
105
|
+
type: 'object',
|
|
106
|
+
properties: {
|
|
107
|
+
collection: { type: 'string', description: 'Collection name' },
|
|
108
|
+
id: { type: ['string', 'number'], description: 'Record id' },
|
|
109
|
+
data: { type: 'object', description: 'Partial fields to update' },
|
|
110
|
+
},
|
|
111
|
+
required: ['collection', 'id', 'data'],
|
|
112
|
+
},
|
|
113
|
+
async handler({ collection, id, data }) {
|
|
114
|
+
const col = machine.collection(collection);
|
|
115
|
+
const result = await col.update(id, data);
|
|
116
|
+
return text(result);
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
// ── Navigation ──────────────────────────────────────────────────────
|
|
120
|
+
{
|
|
121
|
+
name: 'machine_navigate',
|
|
122
|
+
description: 'Load a frame in a zone. modulePath = registered component key (e.g. "explorer", "form"). zone defaults to "main".',
|
|
123
|
+
inputSchema: {
|
|
124
|
+
type: 'object',
|
|
125
|
+
properties: {
|
|
126
|
+
modulePath: { type: 'string', description: 'Component registry key' },
|
|
127
|
+
collection: { type: 'string', description: 'Target collection' },
|
|
128
|
+
collectionId: { type: 'string', description: 'Optional record id' },
|
|
129
|
+
zone: { type: 'string', description: 'Target zone (default: main)' },
|
|
130
|
+
vars: { type: 'object', description: 'Extra string vars' },
|
|
131
|
+
},
|
|
132
|
+
required: ['modulePath', 'collection'],
|
|
133
|
+
},
|
|
134
|
+
async handler({ modulePath, collection, collectionId, zone, vars }) {
|
|
135
|
+
machine.framer.loadFrame(modulePath, collection, collectionId, {
|
|
136
|
+
vars: vars,
|
|
137
|
+
zone: zone ?? 'main'
|
|
138
|
+
});
|
|
139
|
+
return text({ navigated: true, modulePath, collection, collectionId, zone });
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
// ── User / rights ───────────────────────────────────────────────────
|
|
143
|
+
{
|
|
144
|
+
name: 'machine_user_context',
|
|
145
|
+
description: 'Return the current authenticated user and a permission check result.',
|
|
146
|
+
inputSchema: {
|
|
147
|
+
type: 'object',
|
|
148
|
+
properties: {
|
|
149
|
+
collection: { type: 'string', description: 'Collection to check access for (optional)' },
|
|
150
|
+
operation: { type: 'string', description: 'Permission code: C R U D L X (optional)' },
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
async handler({ collection, operation }) {
|
|
154
|
+
const user = machine.rights.currentUser;
|
|
155
|
+
const access = collection
|
|
156
|
+
? machine.rights.checkAccess(collection, operation ?? 'R')
|
|
157
|
+
: null;
|
|
158
|
+
return text({ user, access });
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
];
|
|
162
|
+
}
|
|
163
|
+
// ── Public API ────────────────────────────────────────────────────────────────
|
|
164
|
+
/**
|
|
165
|
+
* Register all machine WebMCP tools on `navigator.modelContext`.
|
|
166
|
+
* Call once, after `await machine.boot()`.
|
|
167
|
+
* No-op in non-browser environments or when modelContext is absent.
|
|
168
|
+
*/
|
|
169
|
+
export function registerMachineMcpTools(machine) {
|
|
170
|
+
if (typeof navigator === 'undefined' || !navigator.modelContext)
|
|
171
|
+
return;
|
|
172
|
+
for (const tool of buildTools(machine)) {
|
|
173
|
+
navigator.modelContext.addTool(tool);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { untrack } from 'svelte';
|
|
3
|
+
import { machine } from '../main/machine.js';
|
|
4
|
+
import type { FrameControls } from '../main/frame/MachineFrameManager.js';
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
id,
|
|
8
|
+
modulePath,
|
|
9
|
+
collection,
|
|
10
|
+
collectionId,
|
|
11
|
+
vars,
|
|
12
|
+
taskbar = true,
|
|
13
|
+
}: {
|
|
14
|
+
id: string;
|
|
15
|
+
modulePath?: string;
|
|
16
|
+
collection?: string;
|
|
17
|
+
collectionId?: string | number;
|
|
18
|
+
vars?: Record<string, string>;
|
|
19
|
+
taskbar?: boolean;
|
|
20
|
+
} = $props();
|
|
21
|
+
|
|
22
|
+
let bodyEl: HTMLDivElement;
|
|
23
|
+
let visible = $state(true);
|
|
24
|
+
const host = machine.framer.createHost(() => bodyEl);
|
|
25
|
+
|
|
26
|
+
const controls: FrameControls = {
|
|
27
|
+
load: (mp, col, colId, v) => host.load(mp, col, colId, v),
|
|
28
|
+
show: () => { visible = true; },
|
|
29
|
+
hide: () => { visible = false; },
|
|
30
|
+
toggle: () => { visible = !visible; },
|
|
31
|
+
close: () => {
|
|
32
|
+
host.destroy();
|
|
33
|
+
untrack(() => machine.framer.unregister(id));
|
|
34
|
+
},
|
|
35
|
+
taskbar: untrack(() => taskbar),
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
$effect(() => {
|
|
39
|
+
// untrack: register/unregister write to SvelteMap — must not create read-dependency
|
|
40
|
+
untrack(() => machine.framer.register(id, controls, { replace: true }));
|
|
41
|
+
if (modulePath && collection) {
|
|
42
|
+
host.load(modulePath, collection, collectionId, vars);
|
|
43
|
+
}
|
|
44
|
+
return () => {
|
|
45
|
+
untrack(() => machine.framer.unregister(id));
|
|
46
|
+
host.destroy();
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<div class="frame" id="frame-{id}" data-frame-id={id} style="display: {visible ? 'block' : 'none'};">
|
|
52
|
+
<div class="frame-body" id="frame-body-{id}" bind:this={bodyEl}></div>
|
|
53
|
+
</div>
|
|
54
|
+
<style>
|
|
55
|
+
.frame {
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset: 0;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
60
|
+
.frame-body {
|
|
61
|
+
position: absolute;
|
|
62
|
+
inset: 0;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
}
|
|
67
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type $$ComponentProps = {
|
|
2
|
+
id: string;
|
|
3
|
+
modulePath?: string;
|
|
4
|
+
collection?: string;
|
|
5
|
+
collectionId?: string | number;
|
|
6
|
+
vars?: Record<string, string>;
|
|
7
|
+
taskbar?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const Frame: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
10
|
+
type Frame = ReturnType<typeof Frame>;
|
|
11
|
+
export default Frame;
|