@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,30 @@
|
|
|
1
|
+
import { IdaeMenuManager } from './IdaeMenuManager.js';
|
|
2
|
+
import { readMenuPrefsFromRecords } from '../../data-ui/utils/menuPrefs.js';
|
|
3
|
+
/**
|
|
4
|
+
* Build the lazy snapshot reader closure for IdaeMenuManager.
|
|
5
|
+
* Reads live store data at call-time so menu reacts to prefs/scheme changes.
|
|
6
|
+
*
|
|
7
|
+
* Extracted from machine.ts `get menu()` snapshot closure.
|
|
8
|
+
*/
|
|
9
|
+
export function createMenuSnapshotReader(host) {
|
|
10
|
+
return () => {
|
|
11
|
+
const userId = host.rights.currentUser?.id;
|
|
12
|
+
const prefsRecords = host.store('appuser_prefs').records;
|
|
13
|
+
return {
|
|
14
|
+
prefs: userId != null ? readMenuPrefsFromRecords(prefsRecords, userId) : {},
|
|
15
|
+
baseline: host.rights.menuBaseline,
|
|
16
|
+
appscheme: host.store('appscheme').records,
|
|
17
|
+
appscheme_base: host.store('appscheme_base').records,
|
|
18
|
+
isDev: import.meta.env.DEV,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create and wire an IdaeMenuManager for the given machine surface.
|
|
24
|
+
* Single call-site: machine.ts `get menu()`.
|
|
25
|
+
*/
|
|
26
|
+
export function createMenuManager(framer, rights, host) {
|
|
27
|
+
const manager = new IdaeMenuManager(framer, rights);
|
|
28
|
+
manager.setSnapshotReader(createMenuSnapshotReader(host));
|
|
29
|
+
return manager;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MetaModelProvider, CollectionSchema } from '../../main/ext/interfaces.js';
|
|
2
|
+
import type { MetaCollectionResolver } from '../../main/ext/hooks.js';
|
|
3
|
+
import type { MachineModel } from '../../types/index.js';
|
|
4
|
+
export declare class IdaeMetaModelProvider implements MetaModelProvider, MetaCollectionResolver {
|
|
5
|
+
private model;
|
|
6
|
+
initialize(model: MachineModel): void;
|
|
7
|
+
collectionSchema(collection: string): CollectionSchema | undefined;
|
|
8
|
+
listCollections(): string[];
|
|
9
|
+
isMetaCollection(name: string): boolean;
|
|
10
|
+
getSchemaCriticalCollections(bases?: string[]): string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// idae/meta/MetaModelProvider.ts
|
|
2
|
+
// Domain implementation of MetaModelProvider + MetaCollectionResolver bridge.
|
|
3
|
+
// appscheme = data, not in-memory model.
|
|
4
|
+
const META_BASES = {
|
|
5
|
+
machine_app: ['appscheme'],
|
|
6
|
+
machine_user: ['appuser'],
|
|
7
|
+
};
|
|
8
|
+
export class IdaeMetaModelProvider {
|
|
9
|
+
model = null;
|
|
10
|
+
initialize(model) {
|
|
11
|
+
this.model = model;
|
|
12
|
+
}
|
|
13
|
+
collectionSchema(collection) {
|
|
14
|
+
if (!this.model)
|
|
15
|
+
throw new Error('IdaeMetaModelProvider not initialized');
|
|
16
|
+
return this.model[collection];
|
|
17
|
+
}
|
|
18
|
+
listCollections() {
|
|
19
|
+
if (!this.model)
|
|
20
|
+
throw new Error('IdaeMetaModelProvider not initialized');
|
|
21
|
+
return Object.keys(this.model);
|
|
22
|
+
}
|
|
23
|
+
isMetaCollection(name) {
|
|
24
|
+
if (name === 'appscheme')
|
|
25
|
+
return true;
|
|
26
|
+
if (name.startsWith('appuser_'))
|
|
27
|
+
return true;
|
|
28
|
+
if (name.startsWith('appscheme_'))
|
|
29
|
+
return true;
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
getSchemaCriticalCollections(bases = ['machine_app']) {
|
|
33
|
+
if (!this.model)
|
|
34
|
+
return [];
|
|
35
|
+
const critical = [];
|
|
36
|
+
for (const [collectionName, collectionDef] of Object.entries(this.model)) {
|
|
37
|
+
if (collectionDef.base && bases.includes(collectionDef.base)) {
|
|
38
|
+
critical.push(collectionName);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return Array.from(new Set(critical)).sort();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RelationPolicy, MachineFkDef } from '../../main/ext/interfaces.js';
|
|
2
|
+
import type { RelationResolver } from '../../main/ext/hooks.js';
|
|
3
|
+
import type { FkRelations } from '../../types/index.js';
|
|
4
|
+
export declare class IdaeRelationPolicy implements RelationPolicy, RelationResolver {
|
|
5
|
+
#private;
|
|
6
|
+
private qoolie;
|
|
7
|
+
initialize(machine: any): void;
|
|
8
|
+
getRelations(collection: string): FkRelations | undefined;
|
|
9
|
+
getAllCollections(): string[];
|
|
10
|
+
relations(collection: string): Record<string, MachineFkDef>;
|
|
11
|
+
reverseRelations(collection: string): Record<string, Record<string, MachineFkDef>>;
|
|
12
|
+
findRelationField(collection: string, target: string): {
|
|
13
|
+
fieldName: string;
|
|
14
|
+
targetIndex: string;
|
|
15
|
+
} | null;
|
|
16
|
+
hasRelationValue(collection: string, record: Record<string, unknown>, relationKey: string): boolean;
|
|
17
|
+
resolvePresentationToken(data: Record<string, unknown>, segments: string[]): unknown;
|
|
18
|
+
foldRelations(collection: string, record: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// idae/relations/RelationPolicy.ts
|
|
2
|
+
// Domain implementation of RelationPolicy + RelationResolver bridge.
|
|
3
|
+
// All FK relation logic lives here — engine delegates via the bridge.
|
|
4
|
+
import { foldFk } from '@medyll/qoolie';
|
|
5
|
+
const FK_INDEX_FIELD = 'code';
|
|
6
|
+
export class IdaeRelationPolicy {
|
|
7
|
+
qoolie = null;
|
|
8
|
+
initialize(machine) {
|
|
9
|
+
this.qoolie = machine._qoolie;
|
|
10
|
+
}
|
|
11
|
+
getRelations(collection) {
|
|
12
|
+
if (!this.qoolie)
|
|
13
|
+
return undefined;
|
|
14
|
+
let col;
|
|
15
|
+
try {
|
|
16
|
+
col = this.qoolie.collection?.['appscheme'];
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (!col)
|
|
22
|
+
return undefined;
|
|
23
|
+
const rows = col.where({ code: collection });
|
|
24
|
+
return rows?.[0]?.fkRelations;
|
|
25
|
+
}
|
|
26
|
+
getAllCollections() {
|
|
27
|
+
if (!this.qoolie)
|
|
28
|
+
return [];
|
|
29
|
+
try {
|
|
30
|
+
const col = this.qoolie.collection?.['appscheme'];
|
|
31
|
+
if (!col)
|
|
32
|
+
return [];
|
|
33
|
+
const rows = col.getAll();
|
|
34
|
+
return (rows ?? []).map(r => String(r.code)).filter(Boolean);
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
relations(collection) {
|
|
41
|
+
return this.getRelations(collection) ?? {};
|
|
42
|
+
}
|
|
43
|
+
reverseRelations(collection) {
|
|
44
|
+
const result = {};
|
|
45
|
+
const allCollections = this.getAllCollections();
|
|
46
|
+
for (const col of allCollections) {
|
|
47
|
+
const relations = this.relations(col);
|
|
48
|
+
for (const [fkName, fkConfig] of Object.entries(relations)) {
|
|
49
|
+
if (fkConfig?.code === collection) {
|
|
50
|
+
if (!result[col])
|
|
51
|
+
result[col] = {};
|
|
52
|
+
result[col][fkName] = fkConfig;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
findRelationField(collection, target) {
|
|
59
|
+
for (const [fkKey, fkDef] of Object.entries(this.relations(collection))) {
|
|
60
|
+
if (fkDef?.code === target) {
|
|
61
|
+
return { fieldName: fkKey, targetIndex: FK_INDEX_FIELD };
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
hasRelationValue(collection, record, relationKey) {
|
|
67
|
+
const fkDef = this.relations(collection)[relationKey];
|
|
68
|
+
if (!fkDef)
|
|
69
|
+
return false;
|
|
70
|
+
const bag = record.fks;
|
|
71
|
+
if (bag && typeof bag === 'object') {
|
|
72
|
+
const nested = bag[relationKey];
|
|
73
|
+
if (nested && typeof nested === 'object' && !Array.isArray(nested)) {
|
|
74
|
+
const obj = nested;
|
|
75
|
+
if (obj['id'] != null || obj['code'] != null)
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const fieldInfo = this.findRelationField(collection, fkDef.code);
|
|
80
|
+
if (fieldInfo) {
|
|
81
|
+
const value = record[fieldInfo.fieldName];
|
|
82
|
+
if (value != null && !(Array.isArray(value) && value.length === 0))
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
resolvePresentationToken(data, segments) {
|
|
88
|
+
// FK bag paths start with 'fks'; plain paths like 'address.city' are not ours.
|
|
89
|
+
if (segments[0] !== 'fks' || segments.length < 2)
|
|
90
|
+
return undefined;
|
|
91
|
+
const bag = data.fks;
|
|
92
|
+
if (!bag || typeof bag !== 'object')
|
|
93
|
+
return undefined;
|
|
94
|
+
const base = segments[1];
|
|
95
|
+
const rest = segments.slice(2);
|
|
96
|
+
const bagObj = bag;
|
|
97
|
+
if (bagObj[base] == null)
|
|
98
|
+
return undefined;
|
|
99
|
+
return this.#walkPath(bagObj[base], rest);
|
|
100
|
+
}
|
|
101
|
+
#walkPath(root, segments) {
|
|
102
|
+
return segments.reduce((acc, key) => (acc != null && typeof acc === 'object') ? acc[key] : undefined, root);
|
|
103
|
+
}
|
|
104
|
+
async foldRelations(collection, record) {
|
|
105
|
+
const relations = this.relations(collection);
|
|
106
|
+
if (!Object.keys(relations).length)
|
|
107
|
+
return record;
|
|
108
|
+
const { data } = await foldFk(relations, record, (fkCollection, indexField, value) => this.#resolveTarget(fkCollection, indexField, value));
|
|
109
|
+
return data;
|
|
110
|
+
}
|
|
111
|
+
async #resolveTarget(fkCollection, indexField, value) {
|
|
112
|
+
if (!this.qoolie)
|
|
113
|
+
return undefined;
|
|
114
|
+
try {
|
|
115
|
+
const col = this.qoolie.collection?.[fkCollection];
|
|
116
|
+
if (!col)
|
|
117
|
+
return undefined;
|
|
118
|
+
const docs = await Promise.resolve(col.where({ [indexField]: value }));
|
|
119
|
+
return docs?.[0];
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RightsPolicy, NormalizedGrant, AppUser, PermissionCode } from '../../main/ext/interfaces.js';
|
|
2
|
+
import type { GrantDecoder } from '../../main/ext/hooks.js';
|
|
3
|
+
import type { MachineModel, MachineRightsPolicy } from '../../types/index.js';
|
|
4
|
+
export declare class IdaeRightsPolicy implements RightsPolicy, GrantDecoder {
|
|
5
|
+
#private;
|
|
6
|
+
private model;
|
|
7
|
+
private policies;
|
|
8
|
+
initialize(model: MachineModel): void;
|
|
9
|
+
private loadPoliciesFromModel;
|
|
10
|
+
decodeSchemeCode(grant: Record<string, unknown>): string | undefined;
|
|
11
|
+
grantsFor(user: AppUser): NormalizedGrant[];
|
|
12
|
+
publicOps(collection: string): PermissionCode[];
|
|
13
|
+
getPolicy(collection: string): MachineRightsPolicy | undefined;
|
|
14
|
+
getAllowedOps(collection: string): PermissionCode[];
|
|
15
|
+
getDefaultOps(collection: string): PermissionCode[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// idae/rights/RightsPolicy.ts
|
|
2
|
+
// Domain implementation of RightsPolicy + GrantDecoder bridge.
|
|
3
|
+
// Decodes grant.fks/appscheme/code → neutral NormalizedGrant form.
|
|
4
|
+
const ALL_OPS = ['C', 'R', 'U', 'D', 'L', 'X'];
|
|
5
|
+
export class IdaeRightsPolicy {
|
|
6
|
+
model = null;
|
|
7
|
+
policies = {};
|
|
8
|
+
initialize(model) {
|
|
9
|
+
this.model = model;
|
|
10
|
+
this.loadPoliciesFromModel(model);
|
|
11
|
+
}
|
|
12
|
+
loadPoliciesFromModel(model) {
|
|
13
|
+
const policies = {};
|
|
14
|
+
for (const [name, col] of Object.entries(model)) {
|
|
15
|
+
if ('rights' in col && col.rights)
|
|
16
|
+
policies[name] = col.rights;
|
|
17
|
+
}
|
|
18
|
+
this.policies = policies;
|
|
19
|
+
}
|
|
20
|
+
decodeSchemeCode(grant) {
|
|
21
|
+
return grant.schemeCode
|
|
22
|
+
?? grant.fks?.appscheme?.code
|
|
23
|
+
?? grant.gridFks?.appscheme?.code;
|
|
24
|
+
}
|
|
25
|
+
grantsFor(user) {
|
|
26
|
+
if (!user)
|
|
27
|
+
return [];
|
|
28
|
+
const grants = user.grants ?? [];
|
|
29
|
+
const normalized = [];
|
|
30
|
+
for (const grant of grants) {
|
|
31
|
+
const n = this.#normalizeGrant(grant);
|
|
32
|
+
if (n)
|
|
33
|
+
normalized.push(n);
|
|
34
|
+
}
|
|
35
|
+
return normalized;
|
|
36
|
+
}
|
|
37
|
+
#normalizeGrant(grant) {
|
|
38
|
+
if (grant.revokedAt)
|
|
39
|
+
return null;
|
|
40
|
+
const now = new Date();
|
|
41
|
+
if (grant.validFrom && new Date(grant.validFrom) > now)
|
|
42
|
+
return null;
|
|
43
|
+
if (grant.validUntil && new Date(grant.validUntil) < now)
|
|
44
|
+
return null;
|
|
45
|
+
const permissions = [];
|
|
46
|
+
const permFields = [
|
|
47
|
+
['C', 'c'], ['R', 'r'], ['U', 'u'], ['D', 'd'], ['L', 'l'], ['X', 'x']
|
|
48
|
+
];
|
|
49
|
+
for (const [permCode, permField] of permFields) {
|
|
50
|
+
if (grant[permField] === true)
|
|
51
|
+
permissions.push(permCode);
|
|
52
|
+
}
|
|
53
|
+
if (permissions.length === 0)
|
|
54
|
+
return null;
|
|
55
|
+
const schemeCode = this.decodeSchemeCode(grant);
|
|
56
|
+
const normalized = {
|
|
57
|
+
collection: schemeCode ?? '*',
|
|
58
|
+
permissions
|
|
59
|
+
};
|
|
60
|
+
if (grant.userId !== undefined)
|
|
61
|
+
normalized.userId = String(grant.userId);
|
|
62
|
+
if (grant.userType !== undefined)
|
|
63
|
+
normalized.userType = String(grant.userType);
|
|
64
|
+
if (grant.userGroup !== undefined)
|
|
65
|
+
normalized.userGroup = String(grant.userGroup);
|
|
66
|
+
return normalized;
|
|
67
|
+
}
|
|
68
|
+
publicOps(collection) {
|
|
69
|
+
return this.policies[collection]?.public ?? [];
|
|
70
|
+
}
|
|
71
|
+
getPolicy(collection) {
|
|
72
|
+
return this.policies[collection];
|
|
73
|
+
}
|
|
74
|
+
getAllowedOps(collection) {
|
|
75
|
+
return this.policies[collection]?.ops ?? ALL_OPS;
|
|
76
|
+
}
|
|
77
|
+
getDefaultOps(collection) {
|
|
78
|
+
return this.policies[collection]?.default ?? [];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UserScopePolicy } from '../../main/ext/interfaces.js';
|
|
2
|
+
export declare class IdaeUserScopePolicy implements UserScopePolicy {
|
|
3
|
+
private machine;
|
|
4
|
+
constructor();
|
|
5
|
+
initialize(machine: any): void;
|
|
6
|
+
currentUserId(): string | null;
|
|
7
|
+
scopedCollections(): string[];
|
|
8
|
+
naturalKey(collection: string): string[] | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// idae/userscope/UserScopePolicy.ts — domain implementation of UserScopePolicy
|
|
2
|
+
// This file contains the concrete implementation of user-scoped collections and their natural keys
|
|
3
|
+
export class IdaeUserScopePolicy {
|
|
4
|
+
machine = null;
|
|
5
|
+
constructor() {
|
|
6
|
+
console.log('IdaeUserScopePolicy initialized');
|
|
7
|
+
}
|
|
8
|
+
initialize(machine) {
|
|
9
|
+
this.machine = machine;
|
|
10
|
+
console.log('IdaeUserScopePolicy initialized with machine instance');
|
|
11
|
+
}
|
|
12
|
+
// Current user ID from machine rights
|
|
13
|
+
currentUserId() {
|
|
14
|
+
if (!this.machine) {
|
|
15
|
+
throw new Error('IdaeUserScopePolicy not initialized - call initialize(machine) first');
|
|
16
|
+
}
|
|
17
|
+
// Access current user through machine.rights
|
|
18
|
+
return this.machine?.rights?.currentUser?.id ?? null;
|
|
19
|
+
}
|
|
20
|
+
// Domain-specific scoped collections (appuser_*)
|
|
21
|
+
scopedCollections() {
|
|
22
|
+
return [
|
|
23
|
+
'appuser_history',
|
|
24
|
+
'appuser_prefs',
|
|
25
|
+
'appuser_activity',
|
|
26
|
+
'appuser_session',
|
|
27
|
+
'appuser_audit'
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
// Natural keys for each scoped collection
|
|
31
|
+
naturalKey(collection) {
|
|
32
|
+
const naturalKeys = {
|
|
33
|
+
appuser_history: ['code', 'userId'],
|
|
34
|
+
appuser_prefs: ['collection', 'collection_value', 'userId'],
|
|
35
|
+
appuser_activity: ['code', 'userId'],
|
|
36
|
+
appuser_session: ['token'],
|
|
37
|
+
appuser_audit: ['id'] // audit entries are unique
|
|
38
|
+
};
|
|
39
|
+
return naturalKeys[collection] ?? null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
console.log('IdaeUserScopePolicy created, ready for initialization');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NavigationEvent } from '../../main/frame/MachineFrameManager.js';
|
|
2
|
+
type NavHookHost = {
|
|
3
|
+
setNavigationHook(fn: (e: NavigationEvent) => void): void;
|
|
4
|
+
};
|
|
5
|
+
type RenderLabelFn = (collection: string, collectionId: string | number) => Promise<string | undefined>;
|
|
6
|
+
/**
|
|
7
|
+
* Wire appuser_activity + appuser_history writes onto framer navigation events.
|
|
8
|
+
* Domain concern (appuser_* literals) — lives in idae/userscope, not machine/.
|
|
9
|
+
*/
|
|
10
|
+
export declare function setupNavigationTracking(framer: NavHookHost, renderLabel: RenderLabelFn): void;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { machineActionCallable } from '../../main/machine/MachineAction.js';
|
|
2
|
+
/**
|
|
3
|
+
* Wire appuser_activity + appuser_history writes onto framer navigation events.
|
|
4
|
+
* Domain concern (appuser_* literals) — lives in idae/userscope, not machine/.
|
|
5
|
+
*/
|
|
6
|
+
export function setupNavigationTracking(framer, renderLabel) {
|
|
7
|
+
framer.setNavigationHook(({ collection, collectionId, vars }) => {
|
|
8
|
+
void machineActionCallable('appuser_activity', { code: 'VIEW', collection, collection_value: collectionId ?? '', collection_vars: vars }, { touch: 'timestamp' });
|
|
9
|
+
if (collectionId !== undefined && collectionId !== '') {
|
|
10
|
+
void renderLabel(collection, collectionId).then((label) => {
|
|
11
|
+
void machineActionCallable('appuser_history', { collection, collection_value: collectionId, label }, { upsertOn: ['collection', 'collection_value'], bump: 'count', touch: 'lastSeen' });
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,68 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
1
|
+
export * from './main/index.js';
|
|
2
|
+
export { default as Explorer } from './shell/frame/explorer/Explorer.svelte';
|
|
3
|
+
export { default as Diagram } from './shell/frame/diagram/Diagram.svelte';
|
|
4
|
+
export { default as Today } from './shell/frame/today/Today.svelte';
|
|
5
|
+
export { default as Space } from './shell/frame/space/Space.svelte';
|
|
6
|
+
export { buildGraph } from './data-ui/utils/diagramUtils.js';
|
|
7
|
+
export type { DiagramOptions } from './data-ui/utils/diagramUtils.js';
|
|
8
|
+
export { default as DataList } from './data-ui/data/DataList.svelte';
|
|
9
|
+
export { default as DataListFk } from './data-ui/data/DataListFk.svelte';
|
|
10
|
+
export { default as DataListRfk } from './data-ui/data/DataListRfk.svelte';
|
|
11
|
+
export { default as DataForm } from './data-ui/data/DataForm.svelte';
|
|
12
|
+
export { default as DataRecord } from './data-ui/data/DataRecord.svelte';
|
|
13
|
+
export { default as DataFk } from './data-ui/data/DataFk.svelte';
|
|
14
|
+
export { default as DataRfk } from './data-ui/data/DataRfk.svelte';
|
|
15
|
+
export { default as DataCount } from './data-ui/data/DataCount.svelte';
|
|
16
|
+
export { default as DataField } from './data-ui/field/DataField.svelte';
|
|
17
|
+
export { default as DataFieldEdit } from './data-ui/field/DataFieldEdit.svelte';
|
|
18
|
+
export { default as DataToolbar } from './data-ui/controls/DataToolbar.svelte';
|
|
19
|
+
export { default as ButtonAction } from './data-ui/controls/ButtonAction.svelte';
|
|
20
|
+
export { default as Sort } from './data-ui/controls/Sort.svelte';
|
|
21
|
+
export { default as Group } from './data-ui/controls/Group.svelte';
|
|
22
|
+
export { default as Find } from './data-ui/controls/Find.svelte';
|
|
23
|
+
export { default as ListMode } from './data-ui/controls/ListMode.svelte';
|
|
24
|
+
export { default as AlphabetFilter } from './data-ui/controls/AlphabetFilter.svelte';
|
|
25
|
+
export { default as FkFilter } from './data-ui/controls/FkFilter.svelte';
|
|
26
|
+
export { MENU_ZONES, menuPrefsScope, menuPrefsPrefix, isMenuCollectionVisible, filterMenuCollections, readMenuPrefsFromRecords } from './data-ui/utils/menuPrefs.js';
|
|
27
|
+
export type { MenuZone, MenuZonePrefix } from './data-ui/utils/menuPrefs.js';
|
|
28
|
+
export { IdaeMenuManager, createDefaultLaunchVerbs } from './idae/menu/IdaeMenuManager.js';
|
|
29
|
+
export { buildMenuTree } from './idae/menu/IdaeMenuStore.js';
|
|
30
|
+
export { useMenuTree, useMenuCodes } from './data-ui/utils/useMenuTree.svelte.js';
|
|
31
|
+
export type { MenuTree as MenuTreeShape, MenuItem, MenuLaunchVerb, MenuLaunchVerbs } from './idae/menu/IdaeMenuManager.js';
|
|
32
|
+
export type { IdaeMenuTreeSnapshot, AppschemeMenuEntry, AppschemeBaseMenuEntry, AppschemeTypeMenuEntry } from './idae/menu/IdaeMenuStore.js';
|
|
33
|
+
export { default as FieldText } from './data-ui/field/snippets/FieldText.svelte';
|
|
34
|
+
export { default as FieldBoolean } from './data-ui/field/snippets/FieldBoolean.svelte';
|
|
35
|
+
export { default as FieldEmail } from './data-ui/field/snippets/FieldEmail.svelte';
|
|
36
|
+
export { default as FieldCurrency } from './data-ui/field/snippets/FieldCurrency.svelte';
|
|
37
|
+
export { default as FieldTextarea } from './data-ui/field/snippets/FieldTextarea.svelte';
|
|
38
|
+
export { default as FieldColor } from './data-ui/field/snippets/FieldColor.svelte';
|
|
39
|
+
export { default as FieldIcon } from './data-ui/field/snippets/FieldIcon.svelte';
|
|
40
|
+
export { default as FieldSelect } from './data-ui/field/snippets/FieldSelect.svelte';
|
|
41
|
+
export { default as FieldAiPrompt } from './data-ui/field/snippets/FieldAiPrompt.svelte';
|
|
42
|
+
export { default as Columner } from './shell/layout/Columner.svelte';
|
|
43
|
+
export type { ColumnId, ColumnerProps } from './shell/layout/Columner.svelte';
|
|
44
|
+
export { default as TemplateShell } from './shell/layout/TemplateShell.svelte';
|
|
45
|
+
export { default as App } from './shell/layout/App.svelte';
|
|
46
|
+
export { default as Login } from './shell/auth/Login.svelte';
|
|
47
|
+
export { default as TaskBar } from './shell/layout/TaskBar.svelte';
|
|
48
|
+
export { default as Breadcrumb } from './shell/layout/Breadcrumb.svelte';
|
|
49
|
+
export { default as DevResetPanel } from './shell/layout/DevResetPanel.svelte';
|
|
50
|
+
export { default as MenuSettings } from './shell/layout/MenuSettings.svelte';
|
|
51
|
+
export { default as MainMenu } from './shell/layout/MainMenu.svelte';
|
|
52
|
+
export { default as RecordToolbar } from './shell/layout/RecordToolbar.svelte';
|
|
53
|
+
export { useRecordData } from './data-ui/utils/useRecordData.svelte.js';
|
|
54
|
+
export { default as FrameFragment } from './data-ui/fragments/Frame.svelte';
|
|
55
|
+
export { default as Frame } from './shell/Frame.svelte';
|
|
56
|
+
export { default as Selector } from './data-ui/fragments/Selector.svelte';
|
|
57
|
+
export { default as Skeleton } from './data-ui/fragments/Skeleton.svelte';
|
|
58
|
+
export { default as Tile } from './data-ui/fragments/Tile.svelte';
|
|
59
|
+
export { default as InfoLine } from './data-ui/fragments/InfoLine.svelte';
|
|
60
|
+
export { default as ContextMenu } from './data-ui/fragments/ContextMenu.svelte';
|
|
61
|
+
export { default as ContextMenuContent } from './data-ui/fragments/ContextMenuContent.svelte';
|
|
62
|
+
export { openContextMenu, closeContextMenu } from './data-ui/fragments/contextMenu.svelte.js';
|
|
63
|
+
export { registerMachineMcpTools } from './mcp/MachineMcpClient.js';
|
|
64
|
+
export { authState } from './main/machine/authState.svelte.js';
|
|
65
|
+
export * from './utils/logger.js';
|
|
66
|
+
export { streamIntoRecord } from './ai/streamIntoRecord.js';
|
|
67
|
+
export * from './ai/index.js';
|
|
68
|
+
export * from './storage/index.js';
|