@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,214 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import type { Component } from 'svelte';
|
|
3
|
+
import type { TplCollectionName } from '../../types/machine-model.js';
|
|
4
|
+
|
|
5
|
+
export type ColumnId = string;
|
|
6
|
+
|
|
7
|
+
export interface ColumnerProps {
|
|
8
|
+
collection: TplCollectionName;
|
|
9
|
+
collectionId?: string | number;
|
|
10
|
+
/** Override rendered component — must accept collection + collectionId? + linkTarget? props. */
|
|
11
|
+
component?: Component<any, any, any>;
|
|
12
|
+
componentProps?: Record<string, unknown>;
|
|
13
|
+
/** frameId of the parent Columner dock — passed by framer on programmatic mount. */
|
|
14
|
+
parentFrameId?: string;
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script lang="ts">
|
|
19
|
+
import { mount, unmount, untrack } from 'svelte';
|
|
20
|
+
import { machine } from '../../main/machine.js';
|
|
21
|
+
import { componentRegistry } from '../../main/router/componentRegistry.js';
|
|
22
|
+
import type { FrameControls } from '../../main/frame/MachineFrameManager.js';
|
|
23
|
+
import DataList from '../../data-ui/data/DataList.svelte';
|
|
24
|
+
import { generateFrameId } from '../../main/frame/frameUtils.js';
|
|
25
|
+
import Columner from './Columner.svelte';
|
|
26
|
+
|
|
27
|
+
let { collection, collectionId, component = DataList, componentProps = {}, parentFrameId }: ColumnerProps = $props();
|
|
28
|
+
|
|
29
|
+
const id: ColumnId = generateFrameId('col');
|
|
30
|
+
const frameId = `columner:${id}`;
|
|
31
|
+
let dock: HTMLElement;
|
|
32
|
+
let sticky = $state(false);
|
|
33
|
+
|
|
34
|
+
const Comp = $derived(component);
|
|
35
|
+
|
|
36
|
+
$effect(() => {
|
|
37
|
+
// hide/show instances — state preserved across toggles (mirrors createHost semantics)
|
|
38
|
+
const instances = new Map<string, { app: Record<string, unknown>; el: HTMLElement }>();
|
|
39
|
+
let activeKey: string | null = null;
|
|
40
|
+
|
|
41
|
+
function hideAll() {
|
|
42
|
+
for (const { el } of instances.values()) el.style.display = 'none';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const controls: FrameControls = {
|
|
46
|
+
load: (modulePath, col, colId, vars) => {
|
|
47
|
+
const key = `${modulePath}::${col}:${colId ?? ''}`;
|
|
48
|
+
|
|
49
|
+
// Toggle off: same content already showing
|
|
50
|
+
if (key === activeKey) {
|
|
51
|
+
hideAll();
|
|
52
|
+
activeKey = null;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
hideAll();
|
|
57
|
+
|
|
58
|
+
// Already mounted but hidden — show it
|
|
59
|
+
const existing = instances.get(key);
|
|
60
|
+
if (existing) {
|
|
61
|
+
existing.el.style.display = '';
|
|
62
|
+
activeKey = key;
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// New content — resolve + mount a child Columner in the dock
|
|
67
|
+
activeKey = key;
|
|
68
|
+
componentRegistry.resolve(modulePath).then((Comp) => {
|
|
69
|
+
if (activeKey !== key) return; // superseded
|
|
70
|
+
const el = document.createElement('div');
|
|
71
|
+
el.style.cssText = 'width:100%;height:100%;';
|
|
72
|
+
dock.appendChild(el);
|
|
73
|
+
const app = mount(Columner, {
|
|
74
|
+
target: el,
|
|
75
|
+
props: {
|
|
76
|
+
collection: col,
|
|
77
|
+
collectionId: colId,
|
|
78
|
+
component: Comp,
|
|
79
|
+
parentFrameId: frameId,
|
|
80
|
+
} satisfies ColumnerProps
|
|
81
|
+
}) as Record<string, unknown>;
|
|
82
|
+
instances.set(key, { app, el });
|
|
83
|
+
}).catch((err) => {
|
|
84
|
+
console.error(`[Columner] failed to resolve "${modulePath}":`, err);
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
show: () => {
|
|
88
|
+
const inst = activeKey ? instances.get(activeKey) : null;
|
|
89
|
+
if (inst) inst.el.style.display = '';
|
|
90
|
+
},
|
|
91
|
+
hide: () => hideAll(),
|
|
92
|
+
toggle: () => {
|
|
93
|
+
const inst = activeKey ? instances.get(activeKey) : null;
|
|
94
|
+
if (inst) inst.el.style.display = inst.el.style.display === 'none' ? '' : 'none';
|
|
95
|
+
},
|
|
96
|
+
close: () => {
|
|
97
|
+
for (const { app } of instances.values()) unmount(app);
|
|
98
|
+
instances.clear();
|
|
99
|
+
activeKey = null;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
untrack(() => machine.framer.register(frameId, controls, { replace: true }));
|
|
104
|
+
|
|
105
|
+
return () => {
|
|
106
|
+
controls.close();
|
|
107
|
+
untrack(() => machine.framer.unregister(frameId));
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
</script>
|
|
111
|
+
|
|
112
|
+
<columner-componet>
|
|
113
|
+
<columner-column>
|
|
114
|
+
<columner-header class:sticky>
|
|
115
|
+
<columner-controls>
|
|
116
|
+
<button class="ctrl-pin" onclick={() => (sticky = !sticky)} title={sticky ? 'Unpin' : 'Pin'}>
|
|
117
|
+
{sticky ? '📌' : '📍'}
|
|
118
|
+
</button>
|
|
119
|
+
{#if parentFrameId}
|
|
120
|
+
<button
|
|
121
|
+
class="ctrl-close"
|
|
122
|
+
onclick={() => machine.framer.close(parentFrameId)}
|
|
123
|
+
title="Close"
|
|
124
|
+
>✕</button>
|
|
125
|
+
{/if}
|
|
126
|
+
</columner-controls>
|
|
127
|
+
</columner-header>
|
|
128
|
+
<columner-body>
|
|
129
|
+
<Comp
|
|
130
|
+
{collection}
|
|
131
|
+
{collectionId}
|
|
132
|
+
{...componentProps}
|
|
133
|
+
linkTarget={frameId}
|
|
134
|
+
/>
|
|
135
|
+
</columner-body>
|
|
136
|
+
</columner-column>
|
|
137
|
+
<columner-dock bind:this={dock}></columner-dock>
|
|
138
|
+
</columner-componet>
|
|
139
|
+
|
|
140
|
+
<style>
|
|
141
|
+
@layer components {
|
|
142
|
+
columner-componet {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: row;
|
|
145
|
+
height: 100%;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
columner-column {
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
min-width: calc(var(--gutter-3xl) * 4.5);
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
height: 100%;
|
|
154
|
+
border-right: var(--border-width) solid var(--color-border-strong);
|
|
155
|
+
background: var(--color-surface-raised);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
columner-dock {
|
|
159
|
+
display: contents;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
columner-header {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
padding: var(--pad-xs) var(--pad-sm);
|
|
166
|
+
min-height: var(--header-height);
|
|
167
|
+
border-bottom: var(--border-width) solid var(--color-border-strong);
|
|
168
|
+
background: var(--color-surface-alt);
|
|
169
|
+
flex-shrink: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
columner-header.sticky {
|
|
173
|
+
position: sticky;
|
|
174
|
+
top: 0;
|
|
175
|
+
z-index: var(--z-dropdown);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
columner-controls {
|
|
179
|
+
display: flex;
|
|
180
|
+
gap: var(--gutter-xs);
|
|
181
|
+
margin-left: auto;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
columner-body {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
flex: 1;
|
|
188
|
+
overflow-y: auto;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
button {
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
width: var(--control-height);
|
|
196
|
+
height: var(--control-height);
|
|
197
|
+
border: none;
|
|
198
|
+
border-radius: var(--radius-xs);
|
|
199
|
+
background: transparent;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
font-size: var(--text-base);
|
|
202
|
+
transition: background-color var(--transition-normal);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
button:hover {
|
|
206
|
+
background: var(--color-surface-hover);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ctrl-close:hover {
|
|
210
|
+
background: var(--color-critical);
|
|
211
|
+
color: var(--default-color-surface-light);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Component } from 'svelte';
|
|
2
|
+
import type { TplCollectionName } from '../../types/machine-model.js';
|
|
3
|
+
export type ColumnId = string;
|
|
4
|
+
export interface ColumnerProps {
|
|
5
|
+
collection: TplCollectionName;
|
|
6
|
+
collectionId?: string | number;
|
|
7
|
+
/** Override rendered component — must accept collection + collectionId? + linkTarget? props. */
|
|
8
|
+
component?: Component<any, any, any>;
|
|
9
|
+
componentProps?: Record<string, unknown>;
|
|
10
|
+
/** frameId of the parent Columner dock — passed by framer on programmatic mount. */
|
|
11
|
+
parentFrameId?: string;
|
|
12
|
+
}
|
|
13
|
+
import Columner from './Columner.svelte';
|
|
14
|
+
declare const Columner: Component<ColumnerProps, {}, "">;
|
|
15
|
+
type Columner = ReturnType<typeof Columner>;
|
|
16
|
+
export default Columner;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
DevResetPanel.svelte
|
|
3
|
+
Dev-only panel to reset server data and/or client IDB.
|
|
4
|
+
@role dev-tool
|
|
5
|
+
@prop {string} [serverUrl] - Base server URL (default: API_URL from $lib/config)
|
|
6
|
+
@prop {string} [org] - Org name for server reset (default: 'demo')
|
|
7
|
+
-->
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { machine } from '../../main/machine.js';
|
|
10
|
+
import { API_URL } from '../../config.js';
|
|
11
|
+
|
|
12
|
+
let {
|
|
13
|
+
serverUrl = API_URL,
|
|
14
|
+
org = 'demo'
|
|
15
|
+
}: {
|
|
16
|
+
serverUrl?: string;
|
|
17
|
+
org?: string;
|
|
18
|
+
} = $props();
|
|
19
|
+
|
|
20
|
+
type StepKey = 'clear' | 'deploy' | 'seed' | 'idb';
|
|
21
|
+
type StepState = 'idle' | 'running' | 'ok' | 'error';
|
|
22
|
+
|
|
23
|
+
let steps = $state<Record<StepKey, StepState>>({
|
|
24
|
+
clear: 'idle',
|
|
25
|
+
deploy: 'idle',
|
|
26
|
+
seed: 'idle',
|
|
27
|
+
idb: 'idle',
|
|
28
|
+
});
|
|
29
|
+
let errorMsg = $state<string | null>(null);
|
|
30
|
+
|
|
31
|
+
function icon(s: StepState) {
|
|
32
|
+
return s === 'running' ? '⏳' : s === 'ok' ? '✅' : s === 'error' ? '❌' : '○';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async function serverReset(selectedSteps: StepKey[]): Promise<boolean> {
|
|
36
|
+
errorMsg = null;
|
|
37
|
+
for (const s of selectedSteps) steps[s] = 'running';
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
const res = await fetch(`${serverUrl}/api/admin/reset`, {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
headers: { 'Content-Type': 'application/json' },
|
|
43
|
+
body: JSON.stringify({ org, steps: selectedSteps.filter(s => s !== 'idb') }),
|
|
44
|
+
});
|
|
45
|
+
const json = await res.json();
|
|
46
|
+
|
|
47
|
+
if (!res.ok || !json.ok) {
|
|
48
|
+
for (const s of selectedSteps) steps[s] = 'error';
|
|
49
|
+
errorMsg = json.error ?? `HTTP ${res.status}`;
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
for (const [s, result] of Object.entries(json.results ?? {})) {
|
|
54
|
+
steps[s as StepKey] = result === 'ok' ? 'ok' : 'idle';
|
|
55
|
+
}
|
|
56
|
+
return true;
|
|
57
|
+
} catch (err) {
|
|
58
|
+
for (const s of selectedSteps) steps[s] = 'error';
|
|
59
|
+
errorMsg = String(err);
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async function clearIdb() {
|
|
65
|
+
steps.idb = 'running';
|
|
66
|
+
errorMsg = null;
|
|
67
|
+
try {
|
|
68
|
+
await machine.resetClientData(); // reloads page
|
|
69
|
+
} catch (err) {
|
|
70
|
+
steps.idb = 'error';
|
|
71
|
+
errorMsg = String(err);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function doClear() { await serverReset(['clear']); }
|
|
76
|
+
async function doDeploy() { await serverReset(['deploy']); }
|
|
77
|
+
async function doSeed() { await serverReset(['seed']); }
|
|
78
|
+
async function doFullReset() {
|
|
79
|
+
const ok = await serverReset(['clear', 'deploy', 'seed']);
|
|
80
|
+
if (ok) await clearIdb();
|
|
81
|
+
}
|
|
82
|
+
</script>
|
|
83
|
+
|
|
84
|
+
<div class="dev-reset-panel">
|
|
85
|
+
<header class="dev-reset-header">
|
|
86
|
+
<span class="dev-badge">DEV</span>
|
|
87
|
+
<strong>Reset</strong>
|
|
88
|
+
</header>
|
|
89
|
+
|
|
90
|
+
<div class="dev-reset-steps">
|
|
91
|
+
<div class="step">
|
|
92
|
+
<span class="step-icon">{icon(steps.clear)}</span>
|
|
93
|
+
<span class="step-label">Clear MongoDB</span>
|
|
94
|
+
<button class="btn-dev" onclick={doClear} disabled={steps.clear === 'running'}>
|
|
95
|
+
Clear
|
|
96
|
+
</button>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="step">
|
|
99
|
+
<span class="step-icon">{icon(steps.deploy)}</span>
|
|
100
|
+
<span class="step-label">Deploy schema</span>
|
|
101
|
+
<button class="btn-dev" onclick={doDeploy} disabled={steps.deploy === 'running'}>
|
|
102
|
+
Deploy
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="step">
|
|
106
|
+
<span class="step-icon">{icon(steps.seed)}</span>
|
|
107
|
+
<span class="step-label">Seed data</span>
|
|
108
|
+
<button class="btn-dev" onclick={doSeed} disabled={steps.seed === 'running'}>
|
|
109
|
+
Seed
|
|
110
|
+
</button>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="step">
|
|
113
|
+
<span class="step-icon">{icon(steps.idb)}</span>
|
|
114
|
+
<span class="step-label">Clear IDB (reload)</span>
|
|
115
|
+
<button class="btn-dev btn-danger" onclick={clearIdb} disabled={steps.idb === 'running'}>
|
|
116
|
+
Clear IDB
|
|
117
|
+
</button>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<div class="dev-reset-actions">
|
|
122
|
+
<button
|
|
123
|
+
class="btn-dev btn-danger btn-full"
|
|
124
|
+
onclick={doFullReset}
|
|
125
|
+
disabled={Object.values(steps).some(s => s === 'running')}
|
|
126
|
+
>
|
|
127
|
+
⚠ Full reset (clear + deploy + seed + IDB)
|
|
128
|
+
</button>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
{#if errorMsg}
|
|
132
|
+
<div class="dev-reset-error">{errorMsg}</div>
|
|
133
|
+
{/if}
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
<style>
|
|
137
|
+
@layer components {
|
|
138
|
+
.dev-reset-panel {
|
|
139
|
+
border: var(--focus-ring-width) solid var(--color-warning);
|
|
140
|
+
border-radius: var(--radius-xs);
|
|
141
|
+
background: color-mix(in oklch, var(--color-warning) 12%, var(--color-surface-raised));
|
|
142
|
+
padding: var(--pad-sm);
|
|
143
|
+
font-size: var(--text-xs);
|
|
144
|
+
}
|
|
145
|
+
.dev-reset-header {
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
gap: var(--gutter-sm);
|
|
149
|
+
margin-bottom: var(--marg-sm);
|
|
150
|
+
}
|
|
151
|
+
.dev-badge {
|
|
152
|
+
background: var(--color-warning);
|
|
153
|
+
color: var(--default-color-surface-light);
|
|
154
|
+
font-size: var(--text-xs);
|
|
155
|
+
font-weight: var(--font-bold);
|
|
156
|
+
padding: 0 var(--pad-xs);
|
|
157
|
+
border-radius: var(--radius-xs);
|
|
158
|
+
letter-spacing: var(--tracking-wider);
|
|
159
|
+
}
|
|
160
|
+
.dev-reset-steps {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: var(--gutter-xs);
|
|
164
|
+
margin-bottom: var(--marg-sm);
|
|
165
|
+
}
|
|
166
|
+
.step {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: var(--gutter-sm);
|
|
170
|
+
}
|
|
171
|
+
.step-icon { width: 1.2em; text-align: center; }
|
|
172
|
+
.step-label { flex: 1; }
|
|
173
|
+
.dev-reset-actions { margin-top: var(--marg-sm); }
|
|
174
|
+
.btn-dev {
|
|
175
|
+
padding: var(--pad-xs) var(--pad-sm);
|
|
176
|
+
font-size: var(--text-xs);
|
|
177
|
+
border: var(--border-width) solid var(--color-warning);
|
|
178
|
+
background: var(--color-surface-raised);
|
|
179
|
+
border-radius: var(--radius-xs);
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
}
|
|
182
|
+
.btn-dev:hover:not(:disabled) { background: color-mix(in oklch, var(--color-warning) 16%, var(--color-surface-raised)); }
|
|
183
|
+
.btn-dev:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
184
|
+
.btn-danger { border-color: var(--color-critical); color: var(--color-critical); }
|
|
185
|
+
.btn-danger:hover:not(:disabled) { background: color-mix(in oklch, var(--color-critical) 12%, var(--color-surface-raised)); }
|
|
186
|
+
.btn-full { width: 100%; padding: var(--pad-xs) var(--pad-sm); }
|
|
187
|
+
.dev-reset-error {
|
|
188
|
+
margin-top: var(--marg-xs);
|
|
189
|
+
color: var(--color-critical);
|
|
190
|
+
font-size: var(--text-xs);
|
|
191
|
+
word-break: break-all;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
</style>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import DataRecord from '../../data-ui/data/DataRecord.svelte';
|
|
3
|
+
import RecordToolbar from './RecordToolbar.svelte';
|
|
4
|
+
import RecordTimeline from './RecordTimeline.svelte';
|
|
5
|
+
let {
|
|
6
|
+
collection,
|
|
7
|
+
collectionId
|
|
8
|
+
}: {
|
|
9
|
+
collection: string;
|
|
10
|
+
collectionId: string | number;
|
|
11
|
+
} = $props();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<fiche-component>
|
|
15
|
+
<fiche-header>
|
|
16
|
+
<RecordToolbar {collection} {collectionId} />
|
|
17
|
+
</fiche-header>
|
|
18
|
+
<fiche-zone>
|
|
19
|
+
<sidebar-info>
|
|
20
|
+
<DataRecord {collection} {collectionId} showFields={['icon']} showLabel={false} />
|
|
21
|
+
</sidebar-info>
|
|
22
|
+
<zone-main-half>
|
|
23
|
+
<zone-main-content>
|
|
24
|
+
<zone-main-fields><DataRecord {collection} {collectionId} groupFieldBy="appscheme_field_group" /></zone-main-fields>
|
|
25
|
+
<fiche-timeline><RecordTimeline {collection} {collectionId} /></fiche-timeline>
|
|
26
|
+
</zone-main-content>
|
|
27
|
+
<info-bar-right>
|
|
28
|
+
<DataRecord {collection} {collectionId} view="fk" />
|
|
29
|
+
</info-bar-right>
|
|
30
|
+
</zone-main-half>
|
|
31
|
+
</fiche-zone>
|
|
32
|
+
</fiche-component>
|
|
33
|
+
|
|
34
|
+
<style>
|
|
35
|
+
/* Custom tags default to display:inline — without explicit block/flex the
|
|
36
|
+
fiche collapses and its content is clipped by the host (dialog) body.
|
|
37
|
+
:global required: Svelte scopes element selectors, but these tags are
|
|
38
|
+
mounted dynamically by the framer host. */
|
|
39
|
+
@layer components {
|
|
40
|
+
:global(fiche-component) {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
min-height: 0;
|
|
44
|
+
gap: 0;
|
|
45
|
+
padding: 0;
|
|
46
|
+
width: 100%;
|
|
47
|
+
max-inline-size: calc(var(--gutter-3xl) * 12);
|
|
48
|
+
background: var(--color-surface-raised);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:global(fiche-header) {
|
|
52
|
+
display: block;
|
|
53
|
+
background: var(--color-surface-alt);
|
|
54
|
+
border-bottom: var(--border-width) solid var(--color-border-strong);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:global(fiche-zone) {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex: 1;
|
|
60
|
+
min-height: 0;
|
|
61
|
+
gap: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:global(sidebar-info) {
|
|
65
|
+
display: block;
|
|
66
|
+
flex: 0 0 calc(var(--gutter-3xl) * 2);
|
|
67
|
+
padding: var(--pad-sm);
|
|
68
|
+
background: var(--color-surface-alt);
|
|
69
|
+
border-right: var(--border-width) solid var(--color-border);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:global(zone-main-half) {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: row;
|
|
75
|
+
flex: 1;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
gap: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* was a bare <div> with no flex-grow — zone-main-half's flex children
|
|
81
|
+
default to shrink-to-fit, so the grouped fields never stretched,
|
|
82
|
+
leaving a dead gap before info-bar-right. */
|
|
83
|
+
:global(zone-main-fields) {
|
|
84
|
+
display: block;
|
|
85
|
+
flex: 1;
|
|
86
|
+
min-width: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:global(zone-main-content) {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
flex: 1;
|
|
93
|
+
min-width: 0;
|
|
94
|
+
gap: var(--gutter-sm);
|
|
95
|
+
padding: var(--pad-sm);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:global(fiche-timeline) {
|
|
99
|
+
display: block;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:global(info-bar-right) {
|
|
103
|
+
display: block;
|
|
104
|
+
flex: 0 0 calc(var(--gutter-3xl) * 3);
|
|
105
|
+
max-width: calc(var(--gutter-3xl) * 3);
|
|
106
|
+
padding: var(--pad-sm);
|
|
107
|
+
background: var(--color-surface-alt);
|
|
108
|
+
border-left: var(--border-width) solid var(--color-border);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { DataForm, machine } from "../../index.js";
|
|
3
|
+
let {
|
|
4
|
+
collection,
|
|
5
|
+
collectionId
|
|
6
|
+
}: {
|
|
7
|
+
collection: string;
|
|
8
|
+
collectionId: string;
|
|
9
|
+
} = $props();
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<fiche-component>
|
|
13
|
+
<fiche-header>
|
|
14
|
+
<toolbar-component>
|
|
15
|
+
<button onclick={() => machine.framer.loadFrame('synthesis', collection, collectionId)}>synthese</button>
|
|
16
|
+
</toolbar-component>
|
|
17
|
+
</fiche-header>
|
|
18
|
+
<fiche-zone>
|
|
19
|
+
<zone-main>
|
|
20
|
+
<DataForm {collection} dataId={collectionId} mode="update" groupFieldBy="appscheme_field_group" />
|
|
21
|
+
</zone-main>
|
|
22
|
+
</fiche-zone>
|
|
23
|
+
</fiche-component>
|
|
24
|
+
|
|
25
|
+
<style>
|
|
26
|
+
@layer components {
|
|
27
|
+
:global(fiche-component) {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
min-height: 0;
|
|
31
|
+
gap: var(--gutter-sm);
|
|
32
|
+
padding: var(--pad-md);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:global(fiche-header) {
|
|
36
|
+
display: block;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:global(fiche-zone) {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex: 1;
|
|
42
|
+
min-height: 0;
|
|
43
|
+
gap: var(--gutter-md);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:global(zone-main) {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
flex: 1;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
</style>
|