@dineug/erd-editor 3.10.0 → 4.0.0
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/README.md +316 -147
- package/dist/components/appContext.d.ts +4 -0
- package/dist/components/erd/Erd.d.ts +3 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +2 -1
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +38 -2
- package/dist/components/erd/automatic-table-placement/elkPlacement.d.ts +42 -0
- package/dist/components/erd/automatic-table-placement/flowPlacement.d.ts +21 -0
- package/dist/components/erd/automatic-table-placement/placementActions.d.ts +14 -0
- package/dist/components/erd/automatic-table-placement/runElkPlacement.d.ts +0 -11
- package/dist/components/erd/canvas/SceneIcon.template.d.ts +2 -2
- package/dist/components/erd/canvas/entityDrag.d.ts +17 -1
- package/dist/components/erd/canvas/middleButtonPan.d.ts +11 -0
- package/dist/components/erd/canvas/sceneTokens.d.ts +38 -0
- package/dist/components/erd/canvas/table/Table.d.ts +9 -1
- package/dist/components/erd/canvas/table/doubleClick.d.ts +3 -4
- package/dist/components/erd/canvas/table-group/TableGroup.d.ts +17 -0
- package/dist/components/erd/canvas/table-group/TableGroupBody.d.ts +17 -0
- package/dist/components/erd/canvas/table-group/TableGroupDropTarget.d.ts +10 -0
- package/dist/components/erd/canvas/table-group/TableGroupSash.d.ts +35 -0
- package/dist/components/erd/canvas/table-group/TableGroups.d.ts +10 -0
- package/dist/components/erd/canvas/table-group/tableGroupBox.d.ts +40 -0
- package/dist/components/erd/canvas/table-group/titleLayout.d.ts +45 -0
- package/dist/components/erd/canvas/useMoveEntity.d.ts +2 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.d.ts +16 -0
- package/dist/components/erd/draw-target/DrawTargetButtons.styles.d.ts +14 -0
- package/dist/components/erd/draw-target/drawTargetState.d.ts +26 -0
- package/dist/components/erd/draw-target/findDrawTarget.d.ts +29 -0
- package/dist/components/erd/draw-target/placePill.d.ts +49 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +6 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +3 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +7 -2
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +5 -1
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +6 -2
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +3 -1
- package/dist/components/erd/erd-context-menu/menus/tablePlacementMenus.d.ts +3 -0
- package/dist/components/erd/floating-toolbar/ToolbarCompass.template.d.ts +3 -1
- package/dist/components/erd/hitTest.d.ts +16 -1
- package/dist/components/erd/minimap/MinimapScene.d.ts +1 -1
- package/dist/components/erd/minimap/table/Table.d.ts +3 -3
- package/dist/components/erd/minimap/table-group/TableGroup.d.ts +17 -0
- package/dist/components/erd/table-group/TableGroupDraft.d.ts +15 -0
- package/dist/components/erd/table-group/TableGroupDraft.styles.d.ts +6 -0
- package/dist/components/erd/table-group/tableGroupName.d.ts +21 -0
- package/dist/components/erd/table-group/useTableGroupDraw.d.ts +25 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +2 -2
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-key/IndexesKey.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +3 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.d.ts +17 -0
- package/dist/components/erd/welcome-screen/WelcomeScreen.styles.d.ts +17 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.d.ts +21 -0
- package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.d.ts +14 -0
- package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.d.ts +10 -0
- package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +87 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +66 -6
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +14 -1
- package/dist/components/export-image/ExportImage.d.ts +23 -0
- package/dist/components/export-image/ExportImage.styles.d.ts +34 -0
- package/dist/components/export-image/exportImageActions.d.ts +48 -0
- package/dist/components/find-replace/panelLayout.d.ts +4 -1
- package/dist/components/generator-code/GeneratorCode.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +3 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +3 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +8 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +3 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.d.ts +17 -0
- package/dist/components/generator-code/generator-code-options/GeneratorCodeOptions.styles.d.ts +5 -0
- package/dist/components/generator-code/generatorCodeView.d.ts +12 -0
- package/dist/components/generator-code/languageSettings.d.ts +14 -0
- package/dist/components/locale-picker/LocalePicker.d.ts +13 -0
- package/dist/components/locale-picker/LocalePicker.styles.d.ts +19 -0
- package/dist/components/localeContext.d.ts +10 -0
- package/dist/components/localized/Localized.d.ts +18 -0
- package/dist/components/map-columns/MapColumnsBody.d.ts +24 -0
- package/dist/components/map-columns/MapColumnsDialog.d.ts +13 -0
- package/dist/components/map-columns/MapColumnsDialog.styles.d.ts +38 -0
- package/dist/components/map-columns/mapColumnsAction.d.ts +13 -0
- package/dist/components/map-columns/nameOf.d.ts +6 -0
- package/dist/components/map-columns/openMapColumns.d.ts +9 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +6 -1
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +2 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +10 -1
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +25 -0
- package/dist/components/primitives/color-picker/colorModel.d.ts +36 -0
- package/dist/components/primitives/color-picker/presetColors.d.ts +13 -0
- package/dist/components/primitives/color-picker/resolveColor.d.ts +7 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-content/fitMenu.d.ts +4 -4
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.d.ts +8 -0
- package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.styles.d.ts +2 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +2 -0
- package/dist/components/primitives/context-menu/submenu-chevron/SubmenuChevron.d.ts +5 -0
- package/dist/components/primitives/dialog/Dialog.d.ts +21 -0
- package/dist/components/primitives/dialog/Dialog.styles.d.ts +12 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +2 -5
- package/dist/components/primitives/icon/icons.d.ts +17 -0
- package/dist/components/primitives/select/Select.d.ts +18 -0
- package/dist/components/primitives/select/Select.styles.d.ts +13 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +2 -0
- package/dist/components/primitives/toast/Toast.d.ts +5 -1
- package/dist/components/primitives/toast/Toast.styles.d.ts +2 -2
- package/dist/components/quick-search/QuickSearch.d.ts +2 -1
- package/dist/components/quick-search/actions.d.ts +40 -5
- package/dist/components/quick-search/hangul.d.ts +16 -10
- package/dist/components/quick-search/paletteQuery.d.ts +5 -4
- package/dist/components/quick-search/scopedActions.d.ts +6 -5
- package/dist/components/schema-sql/SchemaSQL.d.ts +2 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +7 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +3 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +3 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/headerMenus.d.ts +29 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/statementsMenus.d.ts +27 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.d.ts +24 -0
- package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.d.ts +45 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.d.ts +20 -0
- package/dist/components/schema-sql/schema-sql-options/ScriptEditor.styles.d.ts +13 -0
- package/dist/components/schema-sql/schema-sql-options/dropWarning.d.ts +8 -0
- package/dist/components/schema-sql/schemaSQLView.d.ts +71 -0
- package/dist/components/settings/Settings.styles.d.ts +7 -0
- package/dist/components/settings/columnTypeLabels.d.ts +8 -0
- package/dist/components/settings/lockSettingRows.d.ts +16 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +3 -0
- package/dist/components/settings/settingsPage.d.ts +10 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +9 -1
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -5
- package/dist/components/toast-container/openStatusToast.d.ts +29 -0
- package/dist/components/toast-container/openToastWhileRunning.d.ts +1 -1
- package/dist/components/toolbar/Toolbar.d.ts +1 -0
- package/dist/components/visualization/graph-node/GraphNode.d.ts +2 -2
- package/dist/components/visualization/graphPan.d.ts +12 -0
- package/dist/components/visualization/visualizationView.d.ts +2 -2
- package/dist/constants/language.d.ts +1 -1
- package/dist/constants/layout.d.ts +34 -0
- package/dist/constants/open.d.ts +3 -0
- package/dist/constants/schema.d.ts +25 -4
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +2 -1
- package/dist/constants/sql/dataType/SQLite.d.ts +3 -1
- package/dist/engine/actions.d.ts +20 -2
- package/dist/engine/context.d.ts +6 -0
- package/dist/engine/index.js +26 -21
- package/dist/engine/modules/editor/actions.d.ts +10 -2
- package/dist/engine/modules/editor/atom.actions.d.ts +49 -11
- package/dist/engine/modules/editor/generator.actions.d.ts +107 -8
- package/dist/engine/modules/editor/state.d.ts +16 -3
- package/dist/engine/modules/editor/utils/color.d.ts +21 -0
- package/dist/engine/modules/editor/utils/duplicate.d.ts +28 -1
- package/dist/engine/modules/editor/utils/focus.d.ts +16 -0
- package/dist/engine/modules/editor/utils/releaseHidden.d.ts +16 -0
- package/dist/engine/modules/editor/utils/selection.d.ts +12 -0
- package/dist/engine/modules/relationship/actions.d.ts +6 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +57 -1
- package/dist/engine/modules/relationship/endFlags.d.ts +14 -0
- package/dist/engine/modules/relationship/fkColumns.d.ts +25 -6
- package/dist/engine/modules/relationship/history.d.ts +1 -0
- package/dist/engine/modules/relationship/hooks.d.ts +0 -11
- package/dist/engine/modules/relationship/referenceType.d.ts +12 -0
- package/dist/engine/modules/settings/actions.d.ts +17 -4
- package/dist/engine/modules/settings/atom.actions.d.ts +63 -19
- package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
- package/dist/engine/modules/settings/history.d.ts +1 -0
- package/dist/engine/modules/table/actions.d.ts +8 -0
- package/dist/engine/modules/table/atom.actions.d.ts +31 -0
- package/dist/engine/modules/table/generator.actions.d.ts +3 -3
- package/dist/engine/modules/table/history.d.ts +1 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +8 -0
- package/dist/engine/modules/table-column/hooks.d.ts +0 -6
- package/dist/engine/modules/table-column/keys.d.ts +14 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +19 -1
- package/dist/engine/modules/table-group/actions.d.ts +63 -0
- package/dist/engine/modules/table-group/atom.actions.d.ts +238 -0
- package/dist/engine/modules/table-group/generator.actions.d.ts +111 -0
- package/dist/engine/modules/table-group/history.d.ts +13 -0
- package/dist/engine/peer-store.d.ts +9 -3
- package/dist/engine/replication-store.d.ts +6 -3
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -1
- package/dist/engine/rx-operators/lockIgnoreFilter.d.ts +8 -0
- package/dist/engine/rx-store.d.ts +2 -0
- package/dist/engine/settle.d.ts +9 -0
- package/dist/engine/store-hooks.d.ts +0 -8
- package/dist/erd-editor.umd.js +2100 -4194
- package/dist/hooks/useNavigatorLanguages.d.ts +7 -0
- package/dist/i18n/locales.d.ts +126 -0
- package/dist/i18n/menuLabel.d.ts +12 -0
- package/dist/i18n/messages/ar-SA.d.ts +399 -0
- package/dist/i18n/messages/de-DE.d.ts +375 -0
- package/dist/i18n/messages/en/code.d.ts +17 -0
- package/dist/i18n/messages/en/colorPicker.d.ts +35 -0
- package/dist/i18n/messages/en/common.d.ts +65 -0
- package/dist/i18n/messages/en/contextMenu.d.ts +29 -0
- package/dist/i18n/messages/en/exportImage.d.ts +25 -0
- package/dist/i18n/messages/en/feedback.d.ts +11 -0
- package/dist/i18n/messages/en/findReplace.d.ts +36 -0
- package/dist/i18n/messages/en/floatingToolbar.d.ts +12 -0
- package/dist/i18n/messages/en/index.d.ts +378 -0
- package/dist/i18n/messages/en/mapColumns.d.ts +39 -0
- package/dist/i18n/messages/en/palette.d.ts +40 -0
- package/dist/i18n/messages/en/schemaSql.d.ts +28 -0
- package/dist/i18n/messages/en/settings.d.ts +22 -0
- package/dist/i18n/messages/en/shortcuts.d.ts +32 -0
- package/dist/i18n/messages/en/tableProperties.d.ts +34 -0
- package/dist/i18n/messages/en/themeBuilder.d.ts +7 -0
- package/dist/i18n/messages/en/toolbar.d.ts +9 -0
- package/dist/i18n/messages/en/visualization.d.ts +12 -0
- package/dist/i18n/messages/en/welcome.d.ts +13 -0
- package/dist/i18n/messages/es-ES.d.ts +381 -0
- package/dist/i18n/messages/eu-ES.d.ts +375 -0
- package/dist/i18n/messages/fa-IR.d.ts +375 -0
- package/dist/i18n/messages/fr-FR.d.ts +381 -0
- package/dist/i18n/messages/he-IL.d.ts +381 -0
- package/dist/i18n/messages/id-ID.d.ts +369 -0
- package/dist/i18n/messages/index.d.ts +11 -0
- package/dist/i18n/messages/it-IT.d.ts +381 -0
- package/dist/i18n/messages/ja-JP.d.ts +369 -0
- package/dist/i18n/messages/ko-KR.d.ts +369 -0
- package/dist/i18n/messages/nl-NL.d.ts +375 -0
- package/dist/i18n/messages/pl-PL.d.ts +387 -0
- package/dist/i18n/messages/pt-BR.d.ts +381 -0
- package/dist/i18n/messages/pt-PT.d.ts +381 -0
- package/dist/i18n/messages/ro-RO.d.ts +381 -0
- package/dist/i18n/messages/ru-RU.d.ts +387 -0
- package/dist/i18n/messages/sk-SK.d.ts +387 -0
- package/dist/i18n/messages/sl-SI.d.ts +387 -0
- package/dist/i18n/messages/sv-SE.d.ts +375 -0
- package/dist/i18n/messages/tr-TR.d.ts +375 -0
- package/dist/i18n/messages/uk-UA.d.ts +387 -0
- package/dist/i18n/messages/zh-CN.d.ts +369 -0
- package/dist/i18n/messages/zh-TW.d.ts +369 -0
- package/dist/i18n/resolveLocale.d.ts +11 -0
- package/dist/i18n/source.d.ts +7 -0
- package/dist/i18n/translate.d.ts +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29797 -13894
- package/dist/internal-types/index.d.ts +2 -4
- package/dist/konva/scene/contentBounds.d.ts +18 -12
- package/dist/konva/scene/metrics.d.ts +2 -0
- package/dist/konva/scene/renderScene.d.ts +10 -4
- package/dist/konva/scene/stacking.d.ts +21 -0
- package/dist/konva/scene/viewLayout.d.ts +2 -1
- package/dist/loadValue-B3EFSe9k.js +12925 -0
- package/dist/peer/index.d.ts +6 -3
- package/dist/peer/index.js +83 -76
- package/dist/services/elk-layout/elkGraph.d.ts +6 -4
- package/dist/services/elk-layout/elkLayoutOptions.d.ts +20 -0
- package/dist/services/elk-layout/elkLayoutService.d.ts +3 -3
- package/dist/services/export-png/ExportScene.d.ts +3 -3
- package/dist/services/export-png/documentScene.d.ts +14 -9
- package/dist/services/export-png/exportBox.d.ts +40 -5
- package/dist/services/export-png/exportPngService.d.ts +15 -0
- package/dist/services/export-png/exportTheme.d.ts +26 -0
- package/dist/services/export-png/index.d.ts +44 -11
- package/dist/services/export-png/renderPng.d.ts +18 -10
- package/dist/services/export-png/renderSvg.d.ts +22 -0
- package/dist/services/export-png/sceneSvg.d.ts +54 -0
- package/dist/services/shiki/graphqlGrammar.d.ts +8 -0
- package/dist/shared-store-fUggY7sI.js +1341 -0
- package/dist/themes/radix-ui-theme.d.ts +11 -3
- package/dist/themes/tokens.d.ts +9 -0
- package/dist/utils/calcTable.d.ts +9 -0
- package/dist/utils/clipboard.d.ts +9 -0
- package/dist/utils/collection/tableGroup.entity.d.ts +3 -0
- package/dist/utils/contrastText.d.ts +21 -0
- package/dist/utils/deepMerge.d.ts +8 -0
- package/dist/utils/device-detect/index.d.ts +2 -6
- package/dist/utils/domEvent.d.ts +18 -0
- package/dist/utils/dragSelect.d.ts +2 -0
- package/dist/utils/draw-relationship/bezier.d.ts +2 -0
- package/dist/utils/draw-relationship/corner.d.ts +9 -0
- package/dist/utils/draw-relationship/index.d.ts +18 -18
- package/dist/utils/draw-relationship/loop.d.ts +29 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +1 -1
- package/dist/utils/draw-relationship/sort.d.ts +8 -1
- package/dist/utils/draw-relationship/stub.d.ts +4 -3
- package/dist/utils/emitter.d.ts +53 -6
- package/dist/utils/file/exportFile.d.ts +15 -5
- package/dist/utils/file/importFile.d.ts +9 -5
- package/dist/utils/file/importSchema.d.ts +45 -0
- package/dist/utils/find-replace/findMatches.d.ts +1 -1
- package/dist/utils/find-replace/present.d.ts +5 -3
- package/dist/utils/generator-code/columnTypes.d.ts +99 -0
- package/dist/utils/generator-code/doctrine.d.ts +6 -0
- package/dist/utils/generator-code/doctrineReservedWords.d.ts +7 -0
- package/dist/utils/generator-code/graphql.d.ts +6 -0
- package/dist/utils/generator-code/heck.d.ts +5 -0
- package/dist/utils/generator-code/java.d.ts +28 -0
- package/dist/utils/generator-code/jsonSchema.d.ts +50 -0
- package/dist/utils/generator-code/jsonShape.d.ts +37 -0
- package/dist/utils/generator-code/kotlin.d.ts +1 -0
- package/dist/utils/generator-code/mermaid.d.ts +5 -0
- package/dist/utils/generator-code/php.d.ts +28 -0
- package/dist/utils/generator-code/rust.d.ts +13 -0
- package/dist/utils/generator-code/rustTypes.d.ts +44 -0
- package/dist/utils/generator-code/scala.d.ts +1 -0
- package/dist/utils/generator-code/seaorm.d.ts +22 -0
- package/dist/utils/generator-code/swift.d.ts +44 -0
- package/dist/utils/generator-code/utils.d.ts +19 -0
- package/dist/utils/generator-code/zod.d.ts +25 -0
- package/dist/utils/globalEventObservable.d.ts +10 -1
- package/dist/utils/highlightWords.d.ts +29 -0
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/keyboard-shortcut/bindKeys.d.ts +9 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +11 -4
- package/dist/utils/keyboard-shortcut/utils.d.ts +21 -0
- package/dist/utils/map-columns/alignTypes.d.ts +37 -0
- package/dist/utils/map-columns/buildRows.d.ts +102 -0
- package/dist/utils/map-columns/candidateKeys.d.ts +24 -0
- package/dist/utils/map-columns/index.d.ts +8 -0
- package/dist/utils/map-columns/mapping.d.ts +67 -0
- package/dist/utils/map-columns/prefill.d.ts +26 -0
- package/dist/utils/map-columns/toMapColumnsActions.d.ts +10 -0
- package/dist/utils/map-columns/validate.d.ts +45 -0
- package/dist/utils/memo.d.ts +4 -0
- package/dist/utils/schema-aml-parser/types.d.ts +2 -0
- package/dist/utils/schema-dbml-parser/tokenizer.d.ts +2 -0
- package/dist/utils/schema-dbml-parser/types.d.ts +11 -0
- package/dist/utils/schema-sql/Databricks.d.ts +8 -3
- package/dist/utils/schema-sql/MSSQL.d.ts +14 -2
- package/dist/utils/schema-sql/MariaDB.d.ts +6 -5
- package/dist/utils/schema-sql/MySQL.d.ts +13 -4
- package/dist/utils/schema-sql/Oracle.d.ts +19 -5
- package/dist/utils/schema-sql/PostgreSQL.d.ts +16 -4
- package/dist/utils/schema-sql/SQLite.d.ts +16 -4
- package/dist/utils/schema-sql/Snowflake.d.ts +8 -3
- package/dist/utils/schema-sql/index.d.ts +16 -1
- package/dist/utils/schema-sql/options.d.ts +57 -0
- package/dist/utils/schema-sql/utils.d.ts +101 -2
- package/dist/utils/stageCursor.d.ts +20 -0
- package/dist/utils/table-clipboard/placement.d.ts +2 -0
- package/dist/utils/tableColor.d.ts +29 -0
- package/dist/utils/tableGroup.d.ts +142 -0
- package/dist/utils/tableKeys.d.ts +11 -3
- package/dist/workers/elkLayout.shared-worker.js +1 -1
- package/dist/workers/exportPng.shared-worker.js +30 -30
- package/dist/workers/shiki.shared-worker.js +1 -1
- package/dist/workers/spawn.d.ts +1 -2
- package/dist/workers/spawn.inline.d.ts +0 -1
- package/package.json +6 -13
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +0 -2
- package/dist/loadValue-Mdc5K4qO.js +0 -10858
- package/dist/schemaGCService-CZtGFh2z.js +0 -42
- package/dist/services/schema-gc/index.d.ts +0 -18
- package/dist/services/schema-gc/procGC.d.ts +0 -4
- package/dist/services/schema-gc/schemaGC.shared-worker.d.ts +0 -2
- package/dist/services/schema-gc/schemaGCService.d.ts +0 -10
- package/dist/shared-store-D82WVL5a.js +0 -1129
- package/dist/styles/colorPicker.style.d.ts +0 -7
- package/dist/utils/draw-relationship/chamfer.d.ts +0 -3
- package/dist/workers/schemaGC.shared-worker.js +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
/** The panel's id, which the button folding it away controls. */
|
|
3
|
+
export declare const SCHEMA_SQL_OPTIONS_ID = "schema-sql-options";
|
|
4
|
+
/** Space is the hand tool's key, whose binding cancels the keydown and with it a native button's press. */
|
|
5
|
+
export declare const keepSpace: (event: KeyboardEvent) => void;
|
|
6
|
+
export type SchemaSQLOptionsProps = {
|
|
7
|
+
isDarkMode: boolean;
|
|
8
|
+
readonly: boolean;
|
|
9
|
+
/** The tables a drop and re-create names, in the order the DDL writes them. */
|
|
10
|
+
tables: ReadonlyArray<string>;
|
|
11
|
+
/** The Oracle names over 30 bytes, which 12.2 was the first to take. */
|
|
12
|
+
longNames: ReadonlyArray<string>;
|
|
13
|
+
onHide: () => void;
|
|
14
|
+
onSave: () => void;
|
|
15
|
+
onCopy: () => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The options beside the Schema SQL: the database and the bracket, then this
|
|
19
|
+
* window's statements, header and tables, then the scripts the document
|
|
20
|
+
* saves, and the buttons that save and copy the text.
|
|
21
|
+
*/
|
|
22
|
+
declare const SchemaSQLOptions: FC<SchemaSQLOptionsProps>;
|
|
23
|
+
export default SchemaSQLOptions;
|
|
24
|
+
//# sourceMappingURL=SchemaSQLOptions.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The options beside the code, a fixed width whatever the editor's, its rule
|
|
3
|
+
* on the left, where the code stands in every language.
|
|
4
|
+
*/
|
|
5
|
+
export declare const panel: import('@dineug/r-html').CSSTemplateLiterals;
|
|
6
|
+
export declare const head: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
export declare const title: import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
|
+
/** The part that scrolls, between the title and the buttons. */
|
|
9
|
+
export declare const body: import('@dineug/r-html').CSSTemplateLiterals;
|
|
10
|
+
export declare const group: import('@dineug/r-html').CSSTemplateLiterals;
|
|
11
|
+
/** A group under a rule, drawn halfway into the gap above it. */
|
|
12
|
+
export declare const separated: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
|
+
export declare const row: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
|
+
export declare const column: import('@dineug/r-html').CSSTemplateLiterals;
|
|
15
|
+
export declare const caption: import('@dineug/r-html').CSSTemplateLiterals;
|
|
16
|
+
export declare const note: import('@dineug/r-html').CSSTemplateLiterals;
|
|
17
|
+
/** A list beside its name, as wide whatever the database or the bracket. */
|
|
18
|
+
export declare const select: import('@dineug/r-html').CSSTemplateLiterals;
|
|
19
|
+
export declare const segments: import('@dineug/r-html').CSSTemplateLiterals;
|
|
20
|
+
export declare const segment: import('@dineug/r-html').CSSTemplateLiterals;
|
|
21
|
+
/** The Tables list: All, each table group, then No group. */
|
|
22
|
+
export declare const choices: import('@dineug/r-html').CSSTemplateLiterals;
|
|
23
|
+
/**
|
|
24
|
+
* A box and its name on one line, the whole line taking the press; the box
|
|
25
|
+
* in the accent colour once checked, a dash while All is mixed.
|
|
26
|
+
*/
|
|
27
|
+
export declare const choice: import('@dineug/r-html').CSSTemplateLiterals;
|
|
28
|
+
/** A table group's color, ringed so a pale one shows on the panel. */
|
|
29
|
+
export declare const dot: import('@dineug/r-html').CSSTemplateLiterals;
|
|
30
|
+
/** A name cut to one line; a group without one reads unnamed, dimmed. */
|
|
31
|
+
export declare const choiceName: import('@dineug/r-html').CSSTemplateLiterals;
|
|
32
|
+
/**
|
|
33
|
+
* What a drop and re-create takes with it, in the panel's own warning colours,
|
|
34
|
+
* a long table name broken to stay inside the box.
|
|
35
|
+
*/
|
|
36
|
+
export declare const warning: import('@dineug/r-html').CSSTemplateLiterals;
|
|
37
|
+
/** One line of the text tall, so the icon stands beside the first. */
|
|
38
|
+
export declare const warningIcon: import('@dineug/r-html').CSSTemplateLiterals;
|
|
39
|
+
/** The buttons under the scrolling part, always in sight. */
|
|
40
|
+
export declare const foot: import('@dineug/r-html').CSSTemplateLiterals;
|
|
41
|
+
export declare const actions: import('@dineug/r-html').CSSTemplateLiterals;
|
|
42
|
+
export declare const action: import('@dineug/r-html').CSSTemplateLiterals;
|
|
43
|
+
/** A square icon button: the panel's Hide and the code's Show. */
|
|
44
|
+
export declare const icon: import('@dineug/r-html').CSSTemplateLiterals;
|
|
45
|
+
//# sourceMappingURL=SchemaSQLOptions.styles.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
export type ScriptEditorProps = {
|
|
3
|
+
/** What the label beside it points its for at. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** The script the document holds. */
|
|
6
|
+
value: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
theme: 'dark' | 'light';
|
|
9
|
+
readonly: boolean;
|
|
10
|
+
/** Called once per edit, as the field loses the focus, with the text it holds. */
|
|
11
|
+
onCommit: (value: string) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A text field over its own highlighted text, left to right in any language as
|
|
15
|
+
* the code block is, which commits what was typed as it loses the focus: one
|
|
16
|
+
* action per edit. A change of the script while focused shows once it is left untyped.
|
|
17
|
+
*/
|
|
18
|
+
declare const ScriptEditor: FC<ScriptEditorProps>;
|
|
19
|
+
export default ScriptEditor;
|
|
20
|
+
//# sourceMappingURL=ScriptEditor.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The box both layers fill, its background the highlight's, set inline, and a
|
|
3
|
+
* stacking context of its own, so the raised field stays under the overlays.
|
|
4
|
+
*/
|
|
5
|
+
export declare const editor: import('@dineug/r-html').CSSTemplateLiterals;
|
|
6
|
+
/**
|
|
7
|
+
* The field a reader types into, in flow and as tall as its text, raised over
|
|
8
|
+
* the preview, which an absolute box would otherwise paint above it.
|
|
9
|
+
*/
|
|
10
|
+
export declare const input: import('@dineug/r-html').CSSTemplateLiterals;
|
|
11
|
+
/** The highlighted text under the field, stretched onto it. */
|
|
12
|
+
export declare const preview: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
|
+
//# sourceMappingURL=ScriptEditor.styles.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { I18n } from '../../../i18n/translate';
|
|
2
|
+
/**
|
|
3
|
+
* What a drop and re-create takes with it, the tables named in the reader's
|
|
4
|
+
* language, the first four and a count past five; Snowflake replaces them in
|
|
5
|
+
* place. Null with no table to drop.
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatDropWarning(i18n: Pick<I18n, 'locale' | 'dir' | 't'>, database: number, tables: ReadonlyArray<string>): string | null;
|
|
8
|
+
//# sourceMappingURL=dropWarning.d.ts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { AppContext } from '../appContext';
|
|
2
|
+
import { RootState } from '../../engine/state';
|
|
3
|
+
import { SchemaSQLHeader, SchemaSQLStatements } from '../../utils/schema-sql';
|
|
4
|
+
/** Whether an options panel shows: unset until the editor is first measured. */
|
|
5
|
+
export type OptionsPanelState = 'unset' | 'open' | 'closed';
|
|
6
|
+
/** Where a tab keeps its options panel's place, the Code Generator's as this one's. */
|
|
7
|
+
export type PanelView = {
|
|
8
|
+
panel: OptionsPanelState;
|
|
9
|
+
};
|
|
10
|
+
/** Which tables the DDL writes, by the table group they are in. */
|
|
11
|
+
export type SchemaSQLTableChoice = {
|
|
12
|
+
/** Each table group checked or not, by id. */
|
|
13
|
+
groups: Readonly<Record<string, boolean>>;
|
|
14
|
+
/** Whether the tables in no group are checked. */
|
|
15
|
+
noGroup: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type SchemaSQLView = {
|
|
18
|
+
/** The statements asked for, which each database resolves to what it has. */
|
|
19
|
+
statements: SchemaSQLStatements;
|
|
20
|
+
/** The header asked for, resolved the same way. */
|
|
21
|
+
header: SchemaSQLHeader;
|
|
22
|
+
/** Replaced whole, never changed in place, so a watcher hears one change. */
|
|
23
|
+
tables: SchemaSQLTableChoice;
|
|
24
|
+
panel: OptionsPanelState;
|
|
25
|
+
/** Set by the export path, spent by the panel on the Save file button. */
|
|
26
|
+
focusSave: boolean;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The window's own Schema SQL choices: never in the store, the file or a
|
|
30
|
+
* change event, kept until the element goes, one set per editor.
|
|
31
|
+
*/
|
|
32
|
+
export declare function schemaSQLViewOf({ store, }: Pick<AppContext, 'store'>): SchemaSQLView;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the panel shows: an unset panel opens on an editor 640px wide or
|
|
35
|
+
* more, once it is measured, and keeps that whatever the width does next.
|
|
36
|
+
*/
|
|
37
|
+
export declare function resolvePanel(view: PanelView, editorWidth: number): 'open' | 'closed' | 'unknown';
|
|
38
|
+
/** Folds a panel away or opens it; one not measured yet opens. */
|
|
39
|
+
export declare function togglePanel(view: PanelView, editorWidth: number): void;
|
|
40
|
+
/** Folds the Schema SQL panel away or opens it. */
|
|
41
|
+
export declare function toggleSchemaSQLPanel(app: Pick<AppContext, 'store'>): void;
|
|
42
|
+
/** The Schema SQL tab with its panel open and Save file focused, which saves nothing yet. */
|
|
43
|
+
export declare function showSchemaSQLExport(app: Pick<AppContext, 'store'>): void;
|
|
44
|
+
/** Whether every group the choice holds and the tables in none are checked. */
|
|
45
|
+
export declare function isEveryTableChosen({ groups, noGroup }: SchemaSQLTableChoice): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The choice over the groups the document lists, in its order: a group it has
|
|
48
|
+
* not met starts checked only while every box was, and one no longer listed
|
|
49
|
+
* is dropped; with no group listed, every box is checked again.
|
|
50
|
+
*/
|
|
51
|
+
export declare function resolveTableChoice(choice: SchemaSQLTableChoice, groupIds: ReadonlyArray<string>): SchemaSQLTableChoice;
|
|
52
|
+
/**
|
|
53
|
+
* Matches the choice to the document's groups as they change, so a group added
|
|
54
|
+
* later starts as every box was then; it writes only a choice that moved.
|
|
55
|
+
*/
|
|
56
|
+
export declare function syncTableChoice(view: SchemaSQLView, groupIds: ReadonlyArray<string>): void;
|
|
57
|
+
/** Checks or unchecks every box. */
|
|
58
|
+
export declare function chooseAllTables(view: SchemaSQLView, groupIds: ReadonlyArray<string>, checked: boolean): void;
|
|
59
|
+
/** Checks or unchecks one group, every other box as it reads. */
|
|
60
|
+
export declare function chooseTableGroup(view: SchemaSQLView, groupIds: ReadonlyArray<string>, groupId: string, checked: boolean): void;
|
|
61
|
+
/** Checks or unchecks the tables in no group, every other box as it reads. */
|
|
62
|
+
export declare function chooseNoGroup(view: SchemaSQLView, groupIds: ReadonlyArray<string>, checked: boolean): void;
|
|
63
|
+
/** Whether no box is checked while the document has a group, which writes nothing. */
|
|
64
|
+
export declare function isNoTableChosen(choice: SchemaSQLTableChoice, groupIds: ReadonlyArray<string>): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The ids of the tables the checked boxes hold, in document order, or
|
|
67
|
+
* undefined for the whole document, while every box is checked or the
|
|
68
|
+
* document has no group; a table's group reads as getTableGroupId reads it.
|
|
69
|
+
*/
|
|
70
|
+
export declare function chosenTableIds(state: RootState, choice: SchemaSQLTableChoice): string[] | undefined;
|
|
71
|
+
//# sourceMappingURL=schemaSQLView.d.ts.map
|
|
@@ -5,6 +5,13 @@ export declare const content: import('@dineug/r-html').CSSTemplateLiterals;
|
|
|
5
5
|
export declare const section: import('@dineug/r-html').CSSTemplateLiterals;
|
|
6
6
|
export declare const row: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
7
|
export declare const vertical: (size: number) => import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
|
+
export declare const lockSection: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
|
+
export declare const lockList: import('@dineug/r-html').CSSTemplateLiterals;
|
|
10
|
+
export declare const lockRow: import('@dineug/r-html').CSSTemplateLiterals;
|
|
11
|
+
export declare const lockName: import('@dineug/r-html').CSSTemplateLiterals;
|
|
12
|
+
export declare const lockControl: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
|
+
export declare const lockValue: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
|
+
export declare const lockButton: import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
15
|
export declare const columnOrderSection: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
16
|
export declare const columnOrderList: import('@dineug/r-html').CSSTemplateLiterals;
|
|
10
17
|
export declare const columnOrderItem: import('@dineug/r-html').CSSTemplateLiterals;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PlainMessageKey } from '../../i18n/translate';
|
|
2
|
+
/**
|
|
3
|
+
* The name the column order list gives each column type, as the key of its
|
|
4
|
+
* message: kept beside the list, out of the schema constants the peer entry
|
|
5
|
+
* reaches, so no editor text travels with the peer.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ColumnTypeToMessageKey: Readonly<Record<number, PlainMessageKey>>;
|
|
8
|
+
//# sourceMappingURL=columnTypeLabels.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RootState } from '../../engine/state';
|
|
2
|
+
import { I18n, PlainMessageKey } from '../../i18n/translate';
|
|
3
|
+
type LockedValues = RootState['settings']['lockedValues'];
|
|
4
|
+
type Translator = Pick<I18n, 't'>;
|
|
5
|
+
export type LockSettingRow = {
|
|
6
|
+
nameKey: PlainMessageKey;
|
|
7
|
+
lockSettingType: number;
|
|
8
|
+
toText: (values: LockedValues, i18n: Translator) => string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The Settings tab's lock rows, one per lock, each naming the value it holds
|
|
12
|
+
* by the name the menu that sets it gives, in the reader's language.
|
|
13
|
+
*/
|
|
14
|
+
export declare const lockSettingRows: ReadonlyArray<LockSettingRow>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=lockSettingRows.d.ts.map
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
+
import { PlainMessageKey } from '../../../i18n/translate';
|
|
2
3
|
import { ValuesType } from '../../../internal-types';
|
|
3
4
|
export declare const Lnb: {
|
|
4
5
|
readonly preferences: "Preferences";
|
|
5
6
|
readonly shortcuts: "Shortcuts";
|
|
6
7
|
};
|
|
7
8
|
export type Lnb = ValuesType<typeof Lnb>;
|
|
9
|
+
/** Each page's name as the key of its message; the page ids stay English. */
|
|
10
|
+
export declare const LnbLabelKey: Readonly<Record<Lnb, PlainMessageKey>>;
|
|
8
11
|
export type SettingsLnbProps = {
|
|
9
12
|
value: Lnb;
|
|
10
13
|
onChange: (value: Lnb) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Lnb } from './settings-lnb/SettingsLnb';
|
|
2
|
+
import { RxStore } from '../../engine/rx-store';
|
|
3
|
+
/**
|
|
4
|
+
* Takes the reader to a page of the Settings tab from outside it, the welcome
|
|
5
|
+
* screen's Shortcuts row say: the tab opens, and reads the page as it mounts.
|
|
6
|
+
*/
|
|
7
|
+
export declare function requestSettingsPage(store: RxStore, page: Lnb): void;
|
|
8
|
+
/** The page asked for since the Settings tab last mounted, handed out once. */
|
|
9
|
+
export declare function takeSettingsPage(store: RxStore): Lnb | undefined;
|
|
10
|
+
//# sourceMappingURL=settingsPage.d.ts.map
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
-
import {
|
|
2
|
+
import { IconName } from '../primitives/icon/icons';
|
|
3
|
+
import { PlainMessageKey } from '../../i18n/translate';
|
|
4
|
+
import { AppearanceOption, ThemeOptions } from '../../themes/radix-ui-theme';
|
|
3
5
|
export type ThemeBuilderProps = {
|
|
4
6
|
theme: ThemeOptions;
|
|
5
7
|
};
|
|
8
|
+
/** The three appearances in the order the builder's buttons and the palette's Theme rows list them. */
|
|
9
|
+
export declare const APPEARANCE_BUTTONS: ReadonlyArray<{
|
|
10
|
+
appearance: AppearanceOption;
|
|
11
|
+
icon: IconName;
|
|
12
|
+
labelKey: PlainMessageKey;
|
|
13
|
+
}>;
|
|
6
14
|
declare const ThemeBuilder: FC<ThemeBuilderProps>;
|
|
7
15
|
export default ThemeBuilder;
|
|
8
16
|
//# sourceMappingURL=ThemeBuilder.d.ts.map
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A panel placed over whichever tab is up
|
|
3
|
-
*
|
|
4
|
-
* unraised sibling; the same step
|
|
2
|
+
* A panel placed over whichever tab is up, padded as Find and Replace is. The
|
|
3
|
+
* tab wrapper raises no stacking context, so a raised descendant would paint
|
|
4
|
+
* over an unraised sibling; the same step later in the root keeps this on top.
|
|
5
5
|
*/
|
|
6
6
|
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
8
|
export declare const title: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
|
+
/** A 26px square tool tinted under the pointer, as the editor's other panels close. */
|
|
10
|
+
export declare const close: import('@dineug/r-html').CSSTemplateLiterals;
|
|
8
11
|
export declare const subTitle: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
12
|
export declare const palette: import('@dineug/r-html').CSSTemplateLiterals;
|
|
10
13
|
export declare const color: import('@dineug/r-html').CSSTemplateLiterals;
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
14
|
+
export declare const appearanceButtonGroup: import('@dineug/r-html').CSSTemplateLiterals;
|
|
15
|
+
export declare const appearanceButton: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
16
|
export declare const vertical: import('@dineug/r-html').CSSTemplateLiterals;
|
|
14
17
|
//# sourceMappingURL=ThemeBuilder.styles.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DOMTemplateLiterals } from '@dineug/r-html';
|
|
2
|
+
import { ToastTone } from '../primitives/toast/Toast';
|
|
3
|
+
import { Emitter } from '../../utils/emitter';
|
|
4
|
+
export type StatusToast = {
|
|
5
|
+
/** Names the report and the values it shows, so only the same one replaces it. */
|
|
6
|
+
key: string;
|
|
7
|
+
title: DOMTemplateLiterals;
|
|
8
|
+
description?: DOMTemplateLiterals;
|
|
9
|
+
tone?: ToastTone;
|
|
10
|
+
close?: Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Reports how something ended: its one line as the title, a second line as the
|
|
14
|
+
* description, and a tone's mark when it was done or not done. Opened again
|
|
15
|
+
* under its key, it takes the place of the one still up rather than piling on.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* openStatusToast(emitter, { key: 'common.toast.noTablesToPlace', title: localized('common.toast.noTablesToPlace') });
|
|
19
|
+
*/
|
|
20
|
+
export declare function openStatusToast(emitter: Emitter, { key, title, description, tone, close }: StatusToast): void;
|
|
21
|
+
/**
|
|
22
|
+
* Says whether text reached the clipboard, a refusal as plainly as a copy, under
|
|
23
|
+
* one key so a press repeated shows one toast.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* reportCopy(emitter, copyToClipboard(state.sql));
|
|
27
|
+
*/
|
|
28
|
+
export declare function reportCopy(emitter: Emitter, copying: Promise<unknown>): Promise<void>;
|
|
29
|
+
//# sourceMappingURL=openStatusToast.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { Emitter } from '../../utils/emitter';
|
|
|
6
6
|
* a caller report the outcome after this toast rather than on top of it.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* await openToastWhileRunning(emitter, running, html`<${Toast}
|
|
9
|
+
* await openToastWhileRunning(emitter, running, html`<${Toast} busy=${true} title=${localized('exportImage.copying')} />`);
|
|
10
10
|
*/
|
|
11
11
|
export declare function openToastWhileRunning(emitter: Emitter, running: Promise<unknown>, message: DOMTemplateLiterals): Promise<void>;
|
|
12
12
|
//# sourceMappingURL=openToastWhileRunning.d.ts.map
|
|
@@ -16,8 +16,8 @@ export type GraphNodeProps = {
|
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* One dot, owning its own hover and drag. A hovered table opens its preview
|
|
19
|
-
* and lights its neighbourhood, a hovered column only wears a ring,
|
|
20
|
-
* press pins the node
|
|
19
|
+
* and lights its neighbourhood, a hovered column only wears a ring, a main
|
|
20
|
+
* press pins the node and reheats the layout, and a middle one pans the view.
|
|
21
21
|
*/
|
|
22
22
|
declare const GraphNode: FC<GraphNodeProps>;
|
|
23
23
|
export default GraphNode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { KonvaEventObject } from 'konva/lib/Node';
|
|
2
|
+
import { VisualizationState } from './visualizationView';
|
|
3
|
+
/**
|
|
4
|
+
* Pans the graph view with the pointer, in stage px, from a press on the
|
|
5
|
+
* background or a middle press anywhere. A pan is a drag too: a dot the pointer
|
|
6
|
+
* crosses on the way would otherwise open its preview under a busy hand.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* on:mousedown={(event) => captureGraphPan(event, state)}
|
|
10
|
+
*/
|
|
11
|
+
export declare function captureGraphPan(event: KonvaEventObject<Event>, state: VisualizationState): void;
|
|
12
|
+
//# sourceMappingURL=graphPan.d.ts.map
|
|
@@ -13,8 +13,8 @@ export declare const NAME_MAX_LENGTH = 15;
|
|
|
13
13
|
* truncateName('a_very_long_table_name'); // 'a_very_long_tab…'
|
|
14
14
|
*/
|
|
15
15
|
export declare function truncateName(name: string): string;
|
|
16
|
-
/** The text a table's label draws: its name cut to length, or
|
|
17
|
-
export declare function labelOf(node: Pick<VisualizationNode, 'name'
|
|
16
|
+
/** The text a table's label draws: its name cut to length, or the placeholder its input shows. */
|
|
17
|
+
export declare function labelOf(node: Pick<VisualizationNode, 'name'>, placeholder: string): string;
|
|
18
18
|
/** Whether a table has a name of its own, which is what its label is painted by. */
|
|
19
19
|
export declare const hasName: (node: Pick<VisualizationNode, "name">) => boolean;
|
|
20
20
|
export declare const TABLE_RADIUS = 8;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* the annotation used to widen them to — CodeBlock's lang is a union, and
|
|
4
4
|
* widening here meant nothing checked that these were members of it.
|
|
5
5
|
*/
|
|
6
|
-
export type Lang = 'csharp' | 'go' | 'graphql' | 'java' | 'kotlin' | 'python' | 'scala' | 'sql' | 'typescript';
|
|
6
|
+
export type Lang = 'csharp' | 'go' | 'graphql' | 'java' | 'json' | 'kotlin' | 'mermaid' | 'php' | 'python' | 'rust' | 'scala' | 'sql' | 'swift' | 'typescript';
|
|
7
7
|
export declare const LanguageToLangMap: Record<number, Lang>;
|
|
8
8
|
//# sourceMappingURL=language.d.ts.map
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export declare const START_X = 200;
|
|
2
2
|
export declare const START_Y = 100;
|
|
3
3
|
export declare const START_ADD = 50;
|
|
4
|
+
/** The corner the grid an import lands in starts at, on both axes. */
|
|
5
|
+
export declare const TABLE_SORT_START = 50;
|
|
6
|
+
/** The room the grid an import lands in keeps right of and below each table. */
|
|
7
|
+
export declare const TABLE_SORT_MARGIN = 80;
|
|
8
|
+
/**
|
|
9
|
+
* How far below the diagram the block an append brings starts, the gap the
|
|
10
|
+
* grid an import lands in keeps between its rows.
|
|
11
|
+
*/
|
|
12
|
+
export declare const APPEND_GAP = 80;
|
|
4
13
|
export declare const DUPLICATE_MIN_MOVE = 4;
|
|
5
14
|
/**
|
|
6
15
|
* How far, in screen px, a press on a cell that also takes a click travels
|
|
@@ -101,9 +110,30 @@ export declare const MEMO_PADDING = 8;
|
|
|
101
110
|
export declare const MEMO_HEADER_HEIGHT: number;
|
|
102
111
|
export declare const MEMO_MIN_WIDTH: number;
|
|
103
112
|
export declare const MEMO_MIN_HEIGHT = 100;
|
|
113
|
+
/**
|
|
114
|
+
* The room a table group's box keeps around each member table on every side,
|
|
115
|
+
* and around the tables a group is made from.
|
|
116
|
+
*/
|
|
117
|
+
export declare const TABLE_GROUP_PADDING = 24;
|
|
118
|
+
/**
|
|
119
|
+
* The bar a table group's name is drawn on along the top of its box, as tall
|
|
120
|
+
* as a table's header band, which the box's top padding clears as well.
|
|
121
|
+
*/
|
|
122
|
+
export declare const TABLE_GROUP_TITLE_HEIGHT = 28;
|
|
123
|
+
/**
|
|
124
|
+
* The least a sash resizes a group to, which its members' padded box raises
|
|
125
|
+
* further: wide enough for a short name, tall enough for a body under the bar.
|
|
126
|
+
*/
|
|
127
|
+
export declare const TABLE_GROUP_MIN_WIDTH = 160;
|
|
128
|
+
export declare const TABLE_GROUP_MIN_HEIGHT: number;
|
|
129
|
+
/** The group a click of the draw mode makes, without a drag: room for two tables side by side. */
|
|
130
|
+
export declare const TABLE_GROUP_DEFAULT_WIDTH = 480;
|
|
131
|
+
export declare const TABLE_GROUP_DEFAULT_HEIGHT = 320;
|
|
104
132
|
export declare const MINIMAP_SIZE = 150;
|
|
105
133
|
export declare const MINIMAP_MARGIN = 20;
|
|
106
134
|
export declare const TOOLBAR_HEIGHT = 30;
|
|
135
|
+
/** The width of the toolbar's database name, which every language's placeholder fits. */
|
|
136
|
+
export declare const TOOLBAR_DATABASE_NAME_WIDTH = 150;
|
|
107
137
|
/**
|
|
108
138
|
* The padding around the Table Properties body. A band stuck to an edge of the
|
|
109
139
|
* body reaches back over it, so no row scrolls into sight behind the band.
|
|
@@ -112,6 +142,10 @@ export declare const TABLE_PROPERTIES_BODY_PADDING = 12;
|
|
|
112
142
|
/** How many rows the Table Properties index order shows before it scrolls the rest. */
|
|
113
143
|
export declare const INDEX_ORDER_MAX_ROWS = 3;
|
|
114
144
|
export declare const DIFF_TREE_WIDTH = 200;
|
|
145
|
+
/** The width of the options panel beside the code, on the Schema SQL and Code Generator tabs. */
|
|
146
|
+
export declare const SCHEMA_SQL_PANEL_WIDTH = 300;
|
|
147
|
+
/** An editor narrower than this opens the Schema SQL and Code Generator tabs with their panels folded away. */
|
|
148
|
+
export declare const SCHEMA_SQL_PANEL_COLLAPSE_BELOW = 640;
|
|
115
149
|
/**
|
|
116
150
|
* How thick a relationship connector is drawn. A whole number rather than a
|
|
117
151
|
* fraction, so the stroke lands on pixel boundaries instead of spreading across
|
package/dist/constants/open.d.ts
CHANGED
|
@@ -4,9 +4,12 @@ export declare const Open: {
|
|
|
4
4
|
readonly tableProperties: "tableProperties";
|
|
5
5
|
readonly search: "search";
|
|
6
6
|
readonly themeBuilder: "themeBuilder";
|
|
7
|
+
readonly localePicker: "localePicker";
|
|
7
8
|
readonly diffViewer: "diffViewer";
|
|
8
9
|
readonly timeTravel: "timeTravel";
|
|
9
10
|
readonly findReplace: "findReplace";
|
|
11
|
+
readonly exportImage: "exportImage";
|
|
12
|
+
readonly mapColumns: "mapColumns";
|
|
10
13
|
};
|
|
11
14
|
export type Open = ValuesType<typeof Open>;
|
|
12
15
|
//# sourceMappingURL=open.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValuesType } from '../internal-types';
|
|
1
2
|
export declare const CanvasType: {
|
|
2
3
|
readonly ERD: "ERD";
|
|
3
4
|
readonly visualization: "@dineug/erd-editor/builtin-visualization";
|
|
@@ -18,6 +19,8 @@ export declare const Show: {
|
|
|
18
19
|
readonly relationship: 256;
|
|
19
20
|
readonly columnAlternateKey: 512;
|
|
20
21
|
readonly hideReferentialAction: 1024;
|
|
22
|
+
readonly hideTableGroup: 2048;
|
|
23
|
+
readonly hideMemo: 4096;
|
|
21
24
|
};
|
|
22
25
|
export declare const ColumnType: {
|
|
23
26
|
readonly columnName: 1;
|
|
@@ -55,6 +58,14 @@ export declare const Language: {
|
|
|
55
58
|
readonly Drizzle: 2048;
|
|
56
59
|
readonly DBML: 4096;
|
|
57
60
|
readonly AML: 8192;
|
|
61
|
+
readonly Mermaid: 16384;
|
|
62
|
+
readonly PHP: 32768;
|
|
63
|
+
readonly Doctrine: 65536;
|
|
64
|
+
readonly Rust: 131072;
|
|
65
|
+
readonly SeaORM: 262144;
|
|
66
|
+
readonly Swift: 524288;
|
|
67
|
+
readonly Zod: 1048576;
|
|
68
|
+
readonly JSONSchema: 2097152;
|
|
58
69
|
};
|
|
59
70
|
export declare const LanguageList: readonly number[];
|
|
60
71
|
export declare const NameCase: {
|
|
@@ -114,16 +125,26 @@ export declare const OrderType: {
|
|
|
114
125
|
readonly DESC: 2;
|
|
115
126
|
};
|
|
116
127
|
export declare const OrderTypeList: readonly number[];
|
|
117
|
-
export declare const
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
128
|
+
export declare const LockSettingType: {
|
|
129
|
+
readonly viewport: 1;
|
|
130
|
+
readonly canvasType: 2;
|
|
131
|
+
readonly language: 4;
|
|
132
|
+
readonly tableNameCase: 8;
|
|
133
|
+
readonly columnNameCase: 16;
|
|
134
|
+
readonly bracketType: 32;
|
|
120
135
|
};
|
|
136
|
+
export declare const LockSettingTypeList: readonly number[];
|
|
137
|
+
export declare const LockSettingFields: Readonly<Record<number, readonly ("zoomLevel" | "canvasType" | "language" | "bracketType" | "originX" | "originY" | "tableNameCase" | "columnNameCase")[]>>;
|
|
121
138
|
export declare const CANVAS_SIZE_MAX: 20000;
|
|
122
139
|
export declare const CANVAS_SIZE_MIN: 2000;
|
|
123
140
|
export declare const CANVAS_ZOOM_MAX: 1.5;
|
|
124
141
|
export declare const CANVAS_ZOOM_MIN: 0.1;
|
|
142
|
+
export declare const DDLScriptPosition: {
|
|
143
|
+
readonly before: "before";
|
|
144
|
+
readonly after: "after";
|
|
145
|
+
};
|
|
146
|
+
export declare const DDLScriptPositionList: ReadonlyArray<ValuesType<typeof DDLScriptPosition>>;
|
|
125
147
|
export declare const BracketTypeMap: Record<number, string>;
|
|
126
148
|
/** The clause each action writes after ON DELETE / ON UPDATE; none writes none. */
|
|
127
149
|
export declare const ReferentialActionToSQL: Record<number, string>;
|
|
128
|
-
export declare const ColumnTypeToName: Record<number, string>;
|
|
129
150
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataTypeHint } from '.';
|
|
2
2
|
/**
|
|
3
|
-
* https://www.postgresql.org/docs/current/datatype.html
|
|
3
|
+
* https://www.postgresql.org/docs/current/datatype.html, and dec, which the
|
|
4
|
+
* grammar reads as numeric, as it reads decimal.
|
|
4
5
|
*/
|
|
5
6
|
export declare const PostgreSQLTypes: DataTypeHint[];
|
|
6
7
|
//# sourceMappingURL=PostgreSQL.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { DataTypeHint } from '.';
|
|
2
2
|
/**
|
|
3
|
-
* https://www.sqlite.org/datatype3.html
|
|
3
|
+
* https://www.sqlite.org/datatype3.html, and BOOL, DEC, TIME and TIMESTAMP,
|
|
4
|
+
* which SQLite schemas use too: Django declares a boolean as bool and a time
|
|
5
|
+
* as time, and DEC, standard SQL's DECIMAL, takes the same NUMERIC affinity.
|
|
4
6
|
*/
|
|
5
7
|
export declare const SQLiteTypes: DataTypeHint[];
|
|
6
8
|
//# sourceMappingURL=SQLite.d.ts.map
|
package/dist/engine/actions.d.ts
CHANGED
|
@@ -22,11 +22,24 @@ import { actions$ as tableActions$ } from './modules/table/generator.actions';
|
|
|
22
22
|
import { ActionMap as TableColumnActionMap } from './modules/table-column/actions';
|
|
23
23
|
import { actions as tableColumnActions } from './modules/table-column/atom.actions';
|
|
24
24
|
import { actions$ as tableColumnActions$ } from './modules/table-column/generator.actions';
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
import { ActionMap as TableGroupActionMap } from './modules/table-group/actions';
|
|
26
|
+
import { actions as tableGroupActions } from './modules/table-group/atom.actions';
|
|
27
|
+
import { actions$ as tableGroupActions$ } from './modules/table-group/generator.actions';
|
|
28
|
+
export type Actions = typeof editorActions & typeof editorActions$ & typeof indexActions & typeof indexActions$ & typeof indexColumnActions & typeof indexColumnActions$ & typeof memoActions & typeof memoActions$ & typeof relationshipActions & typeof relationshipActions$ & typeof settingsActions & typeof settingsActions$ & typeof tableActions & typeof tableActions$ & typeof tableColumnActions & typeof tableColumnActions$ & typeof tableGroupActions & typeof tableGroupActions$;
|
|
29
|
+
export type RootActionMap = EditorActionMap & TableActionMap & TableColumnActionMap & MemoActionMap & RelationshipActionMap & SettingsActionMap & IndexActionMap & IndexColumnActionMap & TableGroupActionMap;
|
|
27
30
|
export type ActionType = keyof RootActionMap;
|
|
28
31
|
export declare const actions: Actions;
|
|
29
32
|
export declare const ChangeActionTypes: ReadonlyArray<ActionType>;
|
|
33
|
+
/**
|
|
34
|
+
* What a replica reports as a change: every change, and the save switch the
|
|
35
|
+
* locks replaced, which changes nothing yet owes the hub that relayed it a save.
|
|
36
|
+
*/
|
|
37
|
+
export declare const ReplicaChangeActionTypes: ReadonlyArray<ActionType>;
|
|
38
|
+
/**
|
|
39
|
+
* What a replica applies: what it reports, and the registers a window answers
|
|
40
|
+
* a join with, which change no saved byte and so owe no hub a save.
|
|
41
|
+
*/
|
|
42
|
+
export declare const ReplicaActionTypes: ReadonlyArray<ActionType>;
|
|
30
43
|
export declare const ReadonlyIgnoreActionTypes: ReadonlyArray<ActionType>;
|
|
31
44
|
/**
|
|
32
45
|
* What a view keeps from the document while it is active: every edit a
|
|
@@ -34,6 +47,11 @@ export declare const ReadonlyIgnoreActionTypes: ReadonlyArray<ActionType>;
|
|
|
34
47
|
* a view cannot stand in the way of and answers by closing.
|
|
35
48
|
*/
|
|
36
49
|
export declare const ViewIgnoreActionTypes: ReadonlyArray<ActionType>;
|
|
50
|
+
/**
|
|
51
|
+
* The lock that holds each setting action out of the element's change event:
|
|
52
|
+
* while it is on, the action changes the screen and never the file.
|
|
53
|
+
*/
|
|
54
|
+
export declare const LockSettingActionTypes: Readonly<Partial<Record<ActionType, number>>>;
|
|
37
55
|
export declare const SharedStreamActionTypes: ReadonlyArray<ActionType>;
|
|
38
56
|
export declare const SharedActionTypes: ReadonlyArray<ActionType>;
|
|
39
57
|
export declare const SharedFollowingActionTypes: ReadonlyArray<ActionType>;
|
package/dist/engine/context.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { Clock } from './clock';
|
|
2
2
|
export type EngineContext = {
|
|
3
3
|
toWidth: (text: string) => number;
|
|
4
|
+
/**
|
|
5
|
+
* False in a store that draws nothing, a peer's or a replica's: its load
|
|
6
|
+
* places each relationship's anchors and routes no connector, which only a
|
|
7
|
+
* drawing reads. Any other store routes them.
|
|
8
|
+
*/
|
|
9
|
+
routes?: boolean;
|
|
4
10
|
clock: Clock;
|
|
5
11
|
};
|
|
6
12
|
export type InjectEngineContext = Omit<EngineContext, 'clock'>;
|