@lobb-js/studio 0.1.31 → 0.1.32
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/{src/lib/components → dist}/LlmButton.svelte +2 -2
- package/dist/LlmButton.svelte.d.ts +17 -0
- package/{src → dist}/Studio.svelte +15 -15
- package/dist/Studio.svelte.d.ts +6 -0
- package/{src/lib/components → dist}/alertView.svelte +1 -1
- package/dist/alertView.svelte.d.ts +8 -0
- package/{src/lib/components → dist}/breadCrumbs.svelte +2 -2
- package/dist/breadCrumbs.svelte.d.ts +3 -0
- package/{src/lib/components → dist}/combobox.svelte +4 -4
- package/dist/combobox.svelte.d.ts +15 -0
- package/{src/lib/components → dist}/confirmationDialog/confirmationDialog.svelte +1 -1
- package/dist/confirmationDialog/confirmationDialog.svelte.d.ts +8 -0
- package/dist/confirmationDialog/store.svelte.d.ts +1 -0
- package/dist/confirmationDialog/store.svelte.js +69 -0
- package/{src/lib/components → dist}/createManyButton.svelte +2 -2
- package/dist/createManyButton.svelte.d.ts +8 -0
- package/{src/lib/components → dist}/dataTable/childRecords.svelte +2 -2
- package/dist/dataTable/childRecords.svelte.d.ts +9 -0
- package/{src/lib/components → dist}/dataTable/dataTable.svelte +3 -3
- package/dist/dataTable/dataTable.svelte.d.ts +15 -0
- package/{src/lib/components → dist}/dataTable/fieldCell.svelte +1 -1
- package/dist/dataTable/fieldCell.svelte.d.ts +10 -0
- package/{src/lib/components → dist}/dataTable/filter.svelte +2 -2
- package/dist/dataTable/filter.svelte.d.ts +10 -0
- package/{src/lib/components → dist}/dataTable/filterButton.svelte +1 -1
- package/dist/dataTable/filterButton.svelte.d.ts +8 -0
- package/dist/dataTable/footer.svelte.d.ts +8 -0
- package/{src/lib/components → dist}/dataTable/header.svelte +2 -2
- package/dist/dataTable/header.svelte.d.ts +10 -0
- package/{src/lib/components → dist}/dataTable/sort.svelte +2 -2
- package/dist/dataTable/sort.svelte.d.ts +8 -0
- package/{src/lib/components → dist}/dataTable/sortButton.svelte +2 -2
- package/dist/dataTable/sortButton.svelte.d.ts +8 -0
- package/dist/dataTable/table.svelte.d.ts +32 -0
- package/dist/dataTable/utils.d.ts +7 -0
- package/dist/dataTable/utils.js +111 -0
- package/{src/lib/components → dist}/detailView/create/children.svelte +3 -3
- package/dist/detailView/create/children.svelte.d.ts +8 -0
- package/{src/lib/components → dist}/detailView/create/createDetailView.svelte +6 -6
- package/dist/detailView/create/createDetailView.svelte.d.ts +18 -0
- package/{src/lib/components → dist}/detailView/create/createDetailViewButton.svelte +2 -2
- package/dist/detailView/create/createDetailViewButton.svelte.d.ts +11 -0
- package/{src/lib/components → dist}/detailView/create/createManyView.svelte +5 -5
- package/dist/detailView/create/createManyView.svelte.d.ts +16 -0
- package/{src/lib/components → dist}/detailView/create/subRecords.svelte +1 -1
- package/dist/detailView/create/subRecords.svelte.d.ts +8 -0
- package/dist/detailView/detailViewForm.svelte.d.ts +48 -0
- package/dist/detailView/fieldCustomInput.svelte.d.ts +10 -0
- package/{src/lib/components → dist}/detailView/fieldInput.svelte +4 -4
- package/dist/detailView/fieldInput.svelte.d.ts +10 -0
- package/{src/lib/components → dist}/detailView/fieldInputReplacement.svelte +1 -1
- package/dist/detailView/fieldInputReplacement.svelte.d.ts +11 -0
- package/dist/detailView/store.svelte.d.ts +4 -0
- package/dist/detailView/store.svelte.js +125 -0
- package/{src/lib/components → dist}/detailView/update/children.svelte +4 -4
- package/dist/detailView/update/children.svelte.d.ts +7 -0
- package/{src/lib/components → dist}/detailView/update/updateDetailView.svelte +6 -6
- package/dist/detailView/update/updateDetailView.svelte.d.ts +19 -0
- package/{src/lib/components → dist}/detailView/update/updateDetailViewButton.svelte +2 -2
- package/dist/detailView/update/updateDetailViewButton.svelte.d.ts +11 -0
- package/dist/detailView/utils.d.ts +8 -0
- package/dist/detailView/utils.js +165 -0
- package/{src/lib/components → dist}/diffViewer.svelte +1 -1
- package/dist/diffViewer.svelte.d.ts +9 -0
- package/{src/lib/components → dist}/drawer.svelte +1 -1
- package/dist/drawer.svelte.d.ts +8 -0
- package/{src/lib/components → dist}/extensionsComponents.svelte +1 -2
- package/dist/extensionsComponents.svelte.d.ts +11 -0
- package/dist/foreingKeyInput.svelte.d.ts +11 -0
- package/{src/lib/components → dist}/header.svelte +1 -1
- package/dist/header.svelte.d.ts +6 -0
- package/dist/loadingTypesForMonacoEditor.d.ts +7 -0
- package/dist/loadingTypesForMonacoEditor.js +72 -0
- package/{src/lib/components → dist}/miniSidebar.svelte +7 -7
- package/dist/miniSidebar.svelte.d.ts +20 -0
- package/{src/lib/components → dist}/monacoEditor.svelte +1 -1
- package/dist/monacoEditor.svelte.d.ts +13 -0
- package/{src/lib/components → dist}/rangeCalendarButton.svelte +4 -4
- package/dist/rangeCalendarButton.svelte.d.ts +7 -0
- package/{src/lib/components → dist}/selectRecord.svelte +1 -1
- package/dist/selectRecord.svelte.d.ts +15 -0
- package/{src/lib/components → dist}/setServerPage.svelte +2 -2
- package/dist/setServerPage.svelte.d.ts +18 -0
- package/{src/lib/components/sidebar/index.ts → dist/sidebar/index.d.ts} +1 -2
- package/dist/sidebar/index.js +3 -0
- package/{src/lib/components → dist}/sidebar/sidebar.svelte +1 -1
- package/dist/sidebar/sidebar.svelte.d.ts +17 -0
- package/dist/sidebar/sidebarElements.svelte.d.ts +19 -0
- package/dist/sidebar/sidebarTrigger.svelte.d.ts +7 -0
- package/{src/lib/components → dist}/singletone.svelte +1 -1
- package/dist/singletone.svelte.d.ts +6 -0
- package/{src/lib/components → dist}/ui/accordion/accordion-content.svelte +1 -1
- package/dist/ui/accordion/accordion-content.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/accordion/accordion-item.svelte +1 -1
- package/dist/ui/accordion/accordion-item.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/accordion/accordion-trigger.svelte +1 -1
- package/dist/ui/accordion/accordion-trigger.svelte.d.ts +7 -0
- package/dist/ui/accordion/index.d.ts +6 -0
- package/{src/lib/components/ui/accordion/index.ts → dist/ui/accordion/index.js} +4 -13
- package/{src/lib/components → dist}/ui/alert/alert-description.svelte +1 -1
- package/dist/ui/alert/alert-description.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/alert/alert-title.svelte +1 -1
- package/dist/ui/alert/alert-title.svelte.d.ts +8 -0
- package/{src/lib/components → dist}/ui/alert/alert.svelte +1 -1
- package/dist/ui/alert/alert.svelte.d.ts +26 -0
- package/{src/lib/components/ui/alert/index.ts → dist/ui/alert/index.d.ts} +1 -10
- package/dist/ui/alert/index.js +7 -0
- package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-action.svelte +2 -2
- package/dist/ui/alert-dialog/alert-dialog-action.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-cancel.svelte +2 -2
- package/dist/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-content.svelte +1 -1
- package/dist/ui/alert-dialog/alert-dialog-content.svelte.d.ts +7 -0
- package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-description.svelte +1 -1
- package/dist/ui/alert-dialog/alert-dialog-description.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-footer.svelte +1 -1
- package/dist/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-header.svelte +1 -1
- package/dist/ui/alert-dialog/alert-dialog-header.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-overlay.svelte +1 -1
- package/dist/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/alert-dialog/alert-dialog-title.svelte +1 -1
- package/dist/ui/alert-dialog/alert-dialog-title.svelte.d.ts +4 -0
- package/dist/ui/alert-dialog/index.d.ts +13 -0
- package/dist/ui/alert-dialog/index.js +15 -0
- package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-ellipsis.svelte +1 -1
- package/dist/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-item.svelte +1 -1
- package/dist/ui/breadcrumb/breadcrumb-item.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-link.svelte +1 -1
- package/dist/ui/breadcrumb/breadcrumb-link.svelte.d.ts +11 -0
- package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-list.svelte +1 -1
- package/dist/ui/breadcrumb/breadcrumb-list.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-page.svelte +1 -1
- package/dist/ui/breadcrumb/breadcrumb-page.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb-separator.svelte +1 -1
- package/dist/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +5 -0
- package/dist/ui/breadcrumb/breadcrumb.svelte.d.ts +5 -0
- package/{src/lib/components/ui/breadcrumb/index.ts → dist/ui/breadcrumb/index.d.ts} +1 -18
- package/dist/ui/breadcrumb/index.js +10 -0
- package/{src/lib/components → dist}/ui/button/button.svelte +1 -1
- package/dist/ui/button/button.svelte.d.ts +60 -0
- package/dist/ui/button/index.d.ts +2 -0
- package/dist/ui/button/index.js +4 -0
- package/{src/lib/components → dist}/ui/checkbox/checkbox.svelte +1 -1
- package/dist/ui/checkbox/checkbox.svelte.d.ts +4 -0
- package/dist/ui/checkbox/index.d.ts +2 -0
- package/dist/ui/checkbox/index.js +4 -0
- package/{src/lib/components → dist}/ui/command/command-dialog.svelte +1 -1
- package/dist/ui/command/command-dialog.svelte.d.ts +9 -0
- package/{src/lib/components → dist}/ui/command/command-empty.svelte +1 -1
- package/dist/ui/command/command-empty.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/command/command-group.svelte +1 -1
- package/dist/ui/command/command-group.svelte.d.ts +7 -0
- package/{src/lib/components → dist}/ui/command/command-input.svelte +1 -1
- package/dist/ui/command/command-input.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/command/command-item.svelte +1 -1
- package/dist/ui/command/command-item.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/command/command-link-item.svelte +1 -1
- package/dist/ui/command/command-link-item.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/command/command-list.svelte +1 -1
- package/dist/ui/command/command-list.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/command/command-separator.svelte +1 -1
- package/dist/ui/command/command-separator.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/command/command-shortcut.svelte +1 -1
- package/dist/ui/command/command-shortcut.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/command/command.svelte +1 -1
- package/dist/ui/command/command.svelte.d.ts +4 -0
- package/{src/lib/components/ui/command/index.ts → dist/ui/command/index.d.ts} +2 -29
- package/dist/ui/command/index.js +15 -0
- package/{src/lib/components → dist}/ui/dialog/dialog-content.svelte +1 -1
- package/dist/ui/dialog/dialog-content.svelte.d.ts +9 -0
- package/{src/lib/components → dist}/ui/dialog/dialog-description.svelte +1 -1
- package/dist/ui/dialog/dialog-description.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/dialog/dialog-footer.svelte +1 -1
- package/dist/ui/dialog/dialog-footer.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/dialog/dialog-header.svelte +1 -1
- package/dist/ui/dialog/dialog-header.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/dialog/dialog-overlay.svelte +1 -1
- package/dist/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/dialog/dialog-title.svelte +1 -1
- package/dist/ui/dialog/dialog-title.svelte.d.ts +4 -0
- package/dist/ui/dialog/index.d.ts +12 -0
- package/dist/ui/dialog/index.js +14 -0
- package/dist/ui/input/index.d.ts +2 -0
- package/dist/ui/input/index.js +4 -0
- package/{src/lib/components → dist}/ui/input/input.svelte +1 -1
- package/dist/ui/input/input.svelte.d.ts +13 -0
- package/dist/ui/label/index.d.ts +2 -0
- package/dist/ui/label/index.js +4 -0
- package/{src/lib/components → dist}/ui/label/label.svelte +1 -1
- package/dist/ui/label/label.svelte.d.ts +4 -0
- package/dist/ui/popover/index.d.ts +6 -0
- package/dist/ui/popover/index.js +8 -0
- package/{src/lib/components → dist}/ui/popover/popover-content.svelte +1 -1
- package/dist/ui/popover/popover-content.svelte.d.ts +7 -0
- package/{src/lib/components/ui/range-calendar/index.ts → dist/ui/range-calendar/index.d.ts} +1 -17
- package/dist/ui/range-calendar/index.js +16 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-cell.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-cell.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-day.svelte +2 -2
- package/dist/ui/range-calendar/range-calendar-day.svelte.d.ts +6 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-grid-body.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-grid-body.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-grid-head.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-grid-head.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-grid-row.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-grid.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-grid.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-head-cell.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-header.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-header.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-heading.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-heading.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-months.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar-months.svelte.d.ts +5 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-next-button.svelte +2 -2
- package/dist/ui/range-calendar/range-calendar-next-button.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar-prev-button.svelte +2 -2
- package/dist/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/range-calendar/range-calendar.svelte +1 -1
- package/dist/ui/range-calendar/range-calendar.svelte.d.ts +5 -0
- package/dist/ui/select/index.d.ts +11 -0
- package/dist/ui/select/index.js +13 -0
- package/{src/lib/components → dist}/ui/select/select-content.svelte +1 -1
- package/dist/ui/select/select-content.svelte.d.ts +7 -0
- package/{src/lib/components → dist}/ui/select/select-group-heading.svelte +1 -1
- package/dist/ui/select/select-group-heading.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/select/select-item.svelte +1 -1
- package/dist/ui/select/select-item.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/select/select-scroll-down-button.svelte +1 -1
- package/dist/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/select/select-scroll-up-button.svelte +1 -1
- package/dist/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/select/select-separator.svelte +2 -2
- package/dist/ui/select/select-separator.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/ui/select/select-trigger.svelte +1 -1
- package/dist/ui/select/select-trigger.svelte.d.ts +4 -0
- package/dist/ui/separator/index.d.ts +2 -0
- package/dist/ui/separator/index.js +4 -0
- package/{src/lib/components → dist}/ui/separator/separator.svelte +1 -1
- package/dist/ui/separator/separator.svelte.d.ts +4 -0
- package/dist/ui/skeleton/index.d.ts +2 -0
- package/dist/ui/skeleton/index.js +4 -0
- package/{src/lib/components → dist}/ui/skeleton/skeleton.svelte +1 -1
- package/dist/ui/skeleton/skeleton.svelte.d.ts +5 -0
- package/dist/ui/sonner/index.js +1 -0
- package/dist/ui/sonner/sonner.svelte.d.ts +4 -0
- package/dist/ui/switch/index.d.ts +2 -0
- package/dist/ui/switch/index.js +4 -0
- package/{src/lib/components → dist}/ui/switch/switch.svelte +1 -1
- package/dist/ui/switch/switch.svelte.d.ts +4 -0
- package/dist/ui/textarea/index.d.ts +2 -0
- package/dist/ui/textarea/index.js +4 -0
- package/{src/lib/components → dist}/ui/textarea/textarea.svelte +1 -1
- package/dist/ui/textarea/textarea.svelte.d.ts +5 -0
- package/dist/ui/tooltip/index.d.ts +6 -0
- package/dist/ui/tooltip/index.js +8 -0
- package/{src/lib/components → dist}/ui/tooltip/tooltip-content.svelte +1 -1
- package/dist/ui/tooltip/tooltip-content.svelte.d.ts +4 -0
- package/{src/lib/components → dist}/workflowEditor.svelte +5 -5
- package/dist/workflowEditor.svelte.d.ts +16 -0
- package/package.json +24 -14
- package/{vite-plugin-contextual-lib.js → vite-plugins/contextual-lib-alias.js} +2 -7
- package/vite-plugins/index.js +21 -0
- package/vite-plugins/studio-source-resolver.js +41 -0
- package/.env.example +0 -1
- package/.storybook/main.ts +0 -31
- package/.storybook/preview.ts +0 -21
- package/.storybook/vitest.setup.ts +0 -7
- package/components.json +0 -16
- package/docker-entrypoint.sh +0 -7
- package/dockerfile +0 -27
- package/index.html +0 -13
- package/public/lobb.svg +0 -15
- package/src/app.css +0 -121
- package/src/components-export.ts +0 -21
- package/src/extensions/extension.types.ts +0 -93
- package/src/extensions/extensionUtils.ts +0 -192
- package/src/lib/Lobb.ts +0 -241
- package/src/lib/components/confirmationDialog/store.svelte.ts +0 -28
- package/src/lib/components/dataTable/utils.ts +0 -127
- package/src/lib/components/detailView/store.svelte.ts +0 -61
- package/src/lib/components/detailView/utils.ts +0 -177
- package/src/lib/components/loadingTypesForMonacoEditor.ts +0 -36
- package/src/lib/components/ui/alert-dialog/index.ts +0 -40
- package/src/lib/components/ui/button/index.ts +0 -17
- package/src/lib/components/ui/checkbox/index.ts +0 -6
- package/src/lib/components/ui/dialog/index.ts +0 -37
- package/src/lib/components/ui/input/index.ts +0 -7
- package/src/lib/components/ui/label/index.ts +0 -7
- package/src/lib/components/ui/popover/index.ts +0 -17
- package/src/lib/components/ui/select/index.ts +0 -34
- package/src/lib/components/ui/separator/index.ts +0 -7
- package/src/lib/components/ui/skeleton/index.ts +0 -7
- package/src/lib/components/ui/switch/index.ts +0 -7
- package/src/lib/components/ui/textarea/index.ts +0 -7
- package/src/lib/components/ui/tooltip/index.ts +0 -18
- package/src/lib/eventSystem.ts +0 -38
- package/src/lib/index.ts +0 -40
- package/src/lib/store.svelte.ts +0 -21
- package/src/lib/store.types.ts +0 -28
- package/src/lib/utils.ts +0 -84
- package/src/main.ts +0 -18
- package/src/routes/collections/collection.svelte +0 -46
- package/src/routes/collections/collections.svelte +0 -43
- package/src/routes/data_model/dataModel.svelte +0 -40
- package/src/routes/data_model/flow.css +0 -22
- package/src/routes/data_model/flow.svelte +0 -82
- package/src/routes/data_model/syncManager.svelte +0 -93
- package/src/routes/data_model/utils.ts +0 -35
- package/src/routes/extensions/extension.svelte +0 -16
- package/src/routes/home.svelte +0 -36
- package/src/routes/workflows/workflows.svelte +0 -135
- package/src/stories/Configure.mdx +0 -364
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +0 -1
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +0 -1
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +0 -1
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +0 -1
- package/src/stories/assets/youtube.svg +0 -1
- package/src/stories/detailView/detailViewForm.stories.svelte +0 -79
- package/src/stories/examples/Button.stories.svelte +0 -31
- package/src/stories/examples/Button.svelte +0 -30
- package/src/stories/examples/Header.stories.svelte +0 -26
- package/src/stories/examples/Header.svelte +0 -45
- package/src/stories/examples/Page.stories.svelte +0 -29
- package/src/stories/examples/Page.svelte +0 -70
- package/src/stories/examples/button.css +0 -30
- package/src/stories/examples/header.css +0 -32
- package/src/stories/examples/page.css +0 -68
- package/src/vite-env.d.ts +0 -2
- package/svelte.config.js +0 -7
- package/todo.md +0 -24
- package/tsconfig.app.json +0 -25
- package/tsconfig.json +0 -14
- package/tsconfig.node.json +0 -24
- package/vite.build.svelte.config.ts +0 -18
- package/vite.config.ts +0 -84
- package/vite.extension.config.ts +0 -81
- package/vite_utils.ts +0 -28
- package/vitest.shims.d.ts +0 -1
- /package/{src/lib/components → dist}/dataTable/footer.svelte +0 -0
- /package/{src/lib/components → dist}/dataTable/table.svelte +0 -0
- /package/{src/lib/components → dist}/detailView/detailViewForm.svelte +0 -0
- /package/{src/lib/components → dist}/detailView/fieldCustomInput.svelte +0 -0
- /package/{src/lib/components → dist}/foreingKeyInput.svelte +0 -0
- /package/{src/lib/components → dist}/sidebar/sidebarElements.svelte +0 -0
- /package/{src/lib/components → dist}/sidebar/sidebarTrigger.svelte +0 -0
- /package/{src/lib/components → dist}/ui/breadcrumb/breadcrumb.svelte +0 -0
- /package/{src/lib/components/ui/sonner/index.ts → dist/ui/sonner/index.d.ts} +0 -0
- /package/{src/lib/components → dist}/ui/sonner/sonner.svelte +0 -0
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import "@xyflow/svelte/dist/style.css";
|
|
3
|
-
import "./flow.css";
|
|
4
|
-
|
|
5
|
-
import type { Node, Edge } from "@xyflow/svelte";
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
SvelteFlow,
|
|
9
|
-
Background,
|
|
10
|
-
MiniMap,
|
|
11
|
-
Controls,
|
|
12
|
-
useSvelteFlow,
|
|
13
|
-
} from "@xyflow/svelte";
|
|
14
|
-
import { getLayoutedElements } from "./utils";
|
|
15
|
-
import { onMount } from "svelte";
|
|
16
|
-
import { ctx } from "$lib/store.svelte";
|
|
17
|
-
|
|
18
|
-
const { fitView } = useSvelteFlow();
|
|
19
|
-
|
|
20
|
-
let nodes = $state.raw<Node[]>(generateNodes());
|
|
21
|
-
let edges = $state.raw<Edge[]>(generateEdges());
|
|
22
|
-
|
|
23
|
-
onMount(() => {
|
|
24
|
-
setTimeout(() => {
|
|
25
|
-
onLayout();
|
|
26
|
-
}, 0);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
function generateNodes() {
|
|
30
|
-
const localNodes: Node[] = [];
|
|
31
|
-
|
|
32
|
-
for (const [collectionName, collectionValue] of Object.entries(
|
|
33
|
-
ctx.meta.collections,
|
|
34
|
-
)) {
|
|
35
|
-
if (collectionValue.owner !== "__project") {
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
localNodes.push({
|
|
40
|
-
id: collectionName,
|
|
41
|
-
data: { label: collectionName },
|
|
42
|
-
position: { x: 0, y: 0 },
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return localNodes;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function generateEdges() {
|
|
50
|
-
const localEdges: Edge[] = [];
|
|
51
|
-
|
|
52
|
-
const relations = ctx.meta.relations;
|
|
53
|
-
for (let index = 0; index < relations.length; index++) {
|
|
54
|
-
const relation = relations[index];
|
|
55
|
-
localEdges.push({
|
|
56
|
-
id: `${relation.from.collection}_${relation.to.collection}`,
|
|
57
|
-
source: relation.from.collection,
|
|
58
|
-
target: relation.to.collection,
|
|
59
|
-
animated: true,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return localEdges;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function onLayout() {
|
|
67
|
-
const layouted = getLayoutedElements(nodes, edges);
|
|
68
|
-
|
|
69
|
-
nodes = [...layouted.nodes];
|
|
70
|
-
edges = [...layouted.edges];
|
|
71
|
-
|
|
72
|
-
fitView({
|
|
73
|
-
padding: 0.5,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
</script>
|
|
77
|
-
|
|
78
|
-
<SvelteFlow bind:nodes bind:edges>
|
|
79
|
-
<Background />
|
|
80
|
-
<MiniMap />
|
|
81
|
-
<Controls />
|
|
82
|
-
</SvelteFlow>
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import DiffViewer from "$lib/components/diffViewer.svelte";
|
|
3
|
-
import { ctx } from "$lib/store.svelte";
|
|
4
|
-
import { onMount } from "svelte";
|
|
5
|
-
import stringify from "json-stable-stringify";
|
|
6
|
-
import MonacoEditor from "$lib/components/monacoEditor.svelte";
|
|
7
|
-
import Table from "$lib/components/dataTable/table.svelte";
|
|
8
|
-
import Button from "$lib/components/ui/button/button.svelte";
|
|
9
|
-
import { LoaderCircle, SendHorizontal } from "lucide-svelte";
|
|
10
|
-
import { lobb } from "$lib";
|
|
11
|
-
|
|
12
|
-
let configSchema: string = $state("");
|
|
13
|
-
let dbSchema: string = $state("");
|
|
14
|
-
let sqlPrompt = $state("");
|
|
15
|
-
let sqlResult = $state([]);
|
|
16
|
-
|
|
17
|
-
onMount(() => {
|
|
18
|
-
loadSchemas();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
async function loadSchemas() {
|
|
22
|
-
configSchema = "";
|
|
23
|
-
dbSchema = "";
|
|
24
|
-
const response = await fetch(`${ctx.lobbUrl}/api/schema/diff`);
|
|
25
|
-
const result = await response.json();
|
|
26
|
-
configSchema = stringify(result.dbSchema, {
|
|
27
|
-
space: 2,
|
|
28
|
-
}) as string;
|
|
29
|
-
dbSchema = stringify(result.configSchema, {
|
|
30
|
-
space: 2,
|
|
31
|
-
}) as string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
async function handleExecute() {
|
|
35
|
-
const response = await lobb.createOne("core_query", {
|
|
36
|
-
query: sqlPrompt,
|
|
37
|
-
});
|
|
38
|
-
const result = await response.json();
|
|
39
|
-
sqlResult = result.data;
|
|
40
|
-
loadSchemas();
|
|
41
|
-
}
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<div class="h-[50%] border-b">
|
|
45
|
-
{#if configSchema && dbSchema}
|
|
46
|
-
<DiffViewer
|
|
47
|
-
type="json"
|
|
48
|
-
original={configSchema}
|
|
49
|
-
modified={dbSchema}
|
|
50
|
-
class="h-full rounded-none border-0"
|
|
51
|
-
/>
|
|
52
|
-
{:else}
|
|
53
|
-
<div class="flex justify-center items-center h-full gap-2">
|
|
54
|
-
<LoaderCircle class="animate-spin" />
|
|
55
|
-
<div>loading...</div>
|
|
56
|
-
</div>
|
|
57
|
-
{/if}
|
|
58
|
-
</div>
|
|
59
|
-
<div class="flex h-[50%] w-full">
|
|
60
|
-
<div class="h-full flex-1 flex flex-col border-r">
|
|
61
|
-
<div
|
|
62
|
-
class="h-10 flex items-center px-2 bg-background border-b justify-between"
|
|
63
|
-
>
|
|
64
|
-
<div>Query Editor</div>
|
|
65
|
-
<Button
|
|
66
|
-
class="h-7 px-3 text-xs font-normal"
|
|
67
|
-
Icon={SendHorizontal}
|
|
68
|
-
onclick={handleExecute}
|
|
69
|
-
>
|
|
70
|
-
Execute
|
|
71
|
-
</Button>
|
|
72
|
-
</div>
|
|
73
|
-
<MonacoEditor
|
|
74
|
-
type="sql"
|
|
75
|
-
name="prompt"
|
|
76
|
-
bind:value={sqlPrompt}
|
|
77
|
-
class="flex-1 rounded-none border-0"
|
|
78
|
-
/>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="flex-1">
|
|
81
|
-
{#if Array.isArray(sqlResult) && sqlResult.length}
|
|
82
|
-
<Table
|
|
83
|
-
data={sqlResult}
|
|
84
|
-
showLastRowBorder={true}
|
|
85
|
-
showLastColumnBorder={true}
|
|
86
|
-
/>
|
|
87
|
-
{:else}
|
|
88
|
-
<div class="flex flex-1 h-full items-center justify-center">
|
|
89
|
-
No results
|
|
90
|
-
</div>
|
|
91
|
-
{/if}
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import Dagre from '@dagrejs/dagre';
|
|
2
|
-
|
|
3
|
-
export function getLayoutedElements(nodes: any[], edges: any[]) {
|
|
4
|
-
const g = new Dagre.graphlib.Graph().setDefaultEdgeLabel(() => ({}));
|
|
5
|
-
g.setGraph({ rankdir: "LR" });
|
|
6
|
-
|
|
7
|
-
edges.forEach((edge) => g.setEdge(edge.source, edge.target));
|
|
8
|
-
nodes.forEach((node) => {
|
|
9
|
-
return g.setNode(node.id, {
|
|
10
|
-
...node,
|
|
11
|
-
width: node.measured?.width ?? 0,
|
|
12
|
-
height: node.measured?.height ?? 0,
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
Dagre.layout(g);
|
|
17
|
-
|
|
18
|
-
return {
|
|
19
|
-
nodes: nodes.map((node) => {
|
|
20
|
-
const position = g.node(node.id);
|
|
21
|
-
// We are shifting the dagre node position (anchor=center center) to the top left
|
|
22
|
-
// so it matches the Svelte Flow node anchor point (top left).
|
|
23
|
-
const x = position.x - (node.measured?.width ?? 0) / 2;
|
|
24
|
-
const y = position.y - (node.measured?.height ?? 0) / 2;
|
|
25
|
-
|
|
26
|
-
return {
|
|
27
|
-
...node,
|
|
28
|
-
position: { x, y },
|
|
29
|
-
targetPosition: "left",
|
|
30
|
-
sourcePosition: "right",
|
|
31
|
-
};
|
|
32
|
-
}),
|
|
33
|
-
edges,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import ExtensionsComponents from "$lib/components/extensionsComponents.svelte";
|
|
3
|
-
import { getExtensionUtils } from "../../extensions/extensionUtils";
|
|
4
|
-
|
|
5
|
-
let { extension, page } = $props();
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<div class="grid overflow-auto bg-background">
|
|
9
|
-
{#key extension && page}
|
|
10
|
-
<ExtensionsComponents
|
|
11
|
-
name="pages.{page}"
|
|
12
|
-
utils={getExtensionUtils()}
|
|
13
|
-
filterByExtensions={[extension]}
|
|
14
|
-
/>
|
|
15
|
-
{/key}
|
|
16
|
-
</div>
|
package/src/routes/home.svelte
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import Button from "$lib/components/ui/button/button.svelte";
|
|
3
|
-
import { ctx } from "$lib/store.svelte";
|
|
4
|
-
import { location } from "@wjfe/n-savant";
|
|
5
|
-
import { ArrowRight } from "lucide-svelte";
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<div class="flex flex-col">
|
|
9
|
-
<div
|
|
10
|
-
class="flex flex-1 w-full flex-col items-center justify-center gap-4 text-muted-foreground"
|
|
11
|
-
>
|
|
12
|
-
<div class="flex flex-col items-center justify-center p-4">
|
|
13
|
-
<div class="text-3xl">Welcome to Lobb!</div>
|
|
14
|
-
<div class="text-xs text-center">
|
|
15
|
-
Your journey starts here. Explore and make the most of your
|
|
16
|
-
experience.
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="flex flex-col items-center justify-center">
|
|
20
|
-
<Button
|
|
21
|
-
Icon={ArrowRight}
|
|
22
|
-
variant="outline"
|
|
23
|
-
class="h-7 px-3 text-xs font-normal"
|
|
24
|
-
onclick={() => location.navigate("/collections")}
|
|
25
|
-
>
|
|
26
|
-
Go to collections
|
|
27
|
-
</Button>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="flex justify-end p-2 text-xs text-muted-foreground/50">
|
|
31
|
-
<div class="flex flex-col text-end">
|
|
32
|
-
<div>studio: v{ctx.studioVersion}</div>
|
|
33
|
-
<div>core: v{ctx.meta.version}</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { SideBarData } from "$lib/components/sidebar/sidebarElements.svelte";
|
|
3
|
-
import WorkflowEditor, {
|
|
4
|
-
type WorkflowEntry,
|
|
5
|
-
} from "$lib/components/workflowEditor.svelte";
|
|
6
|
-
import { lobb } from "$lib";
|
|
7
|
-
import Sidebar from "$lib/components/sidebar/sidebar.svelte";
|
|
8
|
-
import Button from "$lib/components/ui/button/button.svelte";
|
|
9
|
-
import { ctx } from "$lib/store.svelte";
|
|
10
|
-
import { location } from "@wjfe/n-savant";
|
|
11
|
-
import { CircleSlash2, Plus, Trash2 } from "lucide-svelte";
|
|
12
|
-
import { onMount } from "svelte";
|
|
13
|
-
import { showDialog } from "$lib/components/confirmationDialog/store.svelte";
|
|
14
|
-
import SidebarTrigger from "$lib/components/sidebar/sidebarTrigger.svelte";
|
|
15
|
-
|
|
16
|
-
let { workflowName } = $props();
|
|
17
|
-
|
|
18
|
-
let sidebarData: SideBarData | null = $state(null);
|
|
19
|
-
let workflowEntry: WorkflowEntry | null = $state(null);
|
|
20
|
-
|
|
21
|
-
onMount(async () => {
|
|
22
|
-
getSidebarData();
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
$effect(() => {
|
|
26
|
-
fetchWorkflowData(workflowName);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
async function getSidebarData() {
|
|
30
|
-
const response = await lobb.findAll("core_workflows", {});
|
|
31
|
-
const result = await response.json();
|
|
32
|
-
const workflows: any[] = result.data;
|
|
33
|
-
sidebarData = workflows.map((workflow) => {
|
|
34
|
-
return {
|
|
35
|
-
name: workflow.name,
|
|
36
|
-
path: workflow.directory,
|
|
37
|
-
onclick: () => {
|
|
38
|
-
location.navigate(`/workflows/${workflow.name}`);
|
|
39
|
-
},
|
|
40
|
-
meta: {
|
|
41
|
-
id: workflow.id,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
async function fetchWorkflowData(workflowName: string) {
|
|
48
|
-
if (workflowName && workflowName !== "new") {
|
|
49
|
-
const response = await lobb.findAll("core_workflows", {
|
|
50
|
-
filter: {
|
|
51
|
-
name: workflowName,
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
const result = await response.json();
|
|
55
|
-
const workflow = result.data[0];
|
|
56
|
-
workflowEntry = workflow;
|
|
57
|
-
} else {
|
|
58
|
-
const workflowHandlerDefaultValue =
|
|
59
|
-
ctx.meta.collections.core_workflows.fields.handler
|
|
60
|
-
.pre_processors.default;
|
|
61
|
-
workflowEntry = {
|
|
62
|
-
name: "",
|
|
63
|
-
event_name: "",
|
|
64
|
-
handler: workflowHandlerDefaultValue,
|
|
65
|
-
directory: "",
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
async function handleWorkflowDelete(
|
|
71
|
-
workflowName: string,
|
|
72
|
-
workflowId: string,
|
|
73
|
-
) {
|
|
74
|
-
const result = await showDialog(
|
|
75
|
-
"Are you sure?",
|
|
76
|
-
"This will delete the Workflow you selected.",
|
|
77
|
-
);
|
|
78
|
-
if (result) {
|
|
79
|
-
await lobb.deleteOne("core_workflows", workflowId);
|
|
80
|
-
getSidebarData();
|
|
81
|
-
if (workflowEntry && workflowName === workflowEntry.name) {
|
|
82
|
-
location.navigate("/workflows");
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
</script>
|
|
87
|
-
|
|
88
|
-
<Sidebar title="Workflows" data={sidebarData}>
|
|
89
|
-
{#snippet belowSearch()}
|
|
90
|
-
<div class="pb-4 px-2">
|
|
91
|
-
<Button
|
|
92
|
-
class="h-7 px-3 text-xs font-normal w-full"
|
|
93
|
-
variant="outline"
|
|
94
|
-
onclick={() => location.navigate("/workflows/new")}
|
|
95
|
-
Icon={Plus}
|
|
96
|
-
>
|
|
97
|
-
Create a Workflow
|
|
98
|
-
</Button>
|
|
99
|
-
</div>
|
|
100
|
-
{/snippet}
|
|
101
|
-
{#snippet elementRightSide(element)}
|
|
102
|
-
<Button
|
|
103
|
-
class="h-6 w-6 text-muted-foreground hover:bg-transparent"
|
|
104
|
-
variant="ghost"
|
|
105
|
-
size="icon"
|
|
106
|
-
onclick={() => handleWorkflowDelete(element.name, element.meta?.id)}
|
|
107
|
-
Icon={Trash2}
|
|
108
|
-
></Button>
|
|
109
|
-
{/snippet}
|
|
110
|
-
<div class="relative h-full w-full">
|
|
111
|
-
{#if workflowName === undefined}
|
|
112
|
-
<div
|
|
113
|
-
class="flex h-full w-full flex-col items-center justify-center gap-4 text-muted-foreground"
|
|
114
|
-
>
|
|
115
|
-
<CircleSlash2 class="opacity-50" size="50" />
|
|
116
|
-
<div class="flex flex-col items-center justify-center">
|
|
117
|
-
<div>No workflow selected</div>
|
|
118
|
-
<div class="text-xs">
|
|
119
|
-
Select a workflow to edit it or create new ones
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
{:else if workflowEntry}
|
|
124
|
-
{#key workflowEntry}
|
|
125
|
-
<WorkflowEditor
|
|
126
|
-
bind:workflow={workflowEntry}
|
|
127
|
-
refreshSidebar={getSidebarData}
|
|
128
|
-
/>
|
|
129
|
-
{/key}
|
|
130
|
-
{/if}
|
|
131
|
-
<div class="absolute top-0 left-0 p-2.5">
|
|
132
|
-
<SidebarTrigger />
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
</Sidebar>
|