@dineug/erd-editor 3.10.0 → 4.1.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 +140 -158
- 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/DiffOutline.template.d.ts +14 -0
- 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 +40 -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/diff-viewer/diff-tree/DiffTree.d.ts +19 -0
- package/dist/components/erd/diff-viewer/diff-tree/DiffTree.styles.d.ts +12 -0
- package/dist/components/erd/diff-viewer/diff-tree/diffTreeModel.d.ts +49 -0
- package/dist/components/erd/diff-viewer/diff.d.ts +21 -19
- 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 +47 -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/FloatingToolbar.d.ts +7 -4
- package/dist/components/erd/floating-toolbar/ToolbarCompass.template.d.ts +3 -1
- package/dist/components/erd/goToErdTarget.d.ts +40 -16
- 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/relationshipHighlight.d.ts +18 -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 +19 -0
- package/dist/components/erd/welcome-screen/welcome-hints/hintArrows.d.ts +10 -0
- package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +91 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +66 -6
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +4 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +14 -1
- package/dist/components/erd-editor/viewportLayout.d.ts +52 -0
- package/dist/components/explorer/Explorer.d.ts +12 -0
- package/dist/components/explorer/explorer-controller/ExplorerController.d.ts +11 -0
- package/dist/components/explorer/explorer-panel/ExplorerPanel.d.ts +14 -0
- package/dist/components/explorer/explorer-panel/ExplorerPanel.styles.d.ts +13 -0
- package/dist/components/explorer/explorer-search/ExplorerSearch.d.ts +12 -0
- package/dist/components/explorer/explorer-search/ExplorerSearch.styles.d.ts +13 -0
- package/dist/components/explorer/explorerCommands.d.ts +28 -0
- package/dist/components/explorer/explorerNavigation.d.ts +14 -0
- package/dist/components/explorer/explorerSearch.d.ts +71 -0
- package/dist/components/explorer/explorerTree.d.ts +90 -0
- package/dist/components/explorer/explorerView.d.ts +54 -0
- package/dist/components/{find-replace → explorer}/matchTarget.d.ts +5 -7
- 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/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 +24 -3
- package/dist/components/primitives/sash/Sash.d.ts +1 -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/primitives/tree/Tree.d.ts +30 -0
- package/dist/components/primitives/tree/Tree.styles.d.ts +5 -0
- package/dist/components/primitives/tree/treeModel.d.ts +42 -0
- package/dist/components/quick-search/QuickSearch.d.ts +2 -1
- package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
- package/dist/components/quick-search/actions.d.ts +39 -7
- package/dist/components/quick-search/hangul.d.ts +16 -10
- package/dist/components/quick-search/paletteList.d.ts +7 -0
- package/dist/components/quick-search/paletteQuery.d.ts +5 -4
- package/dist/components/quick-search/scopedActions.d.ts +10 -15
- 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 +7 -4
- 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/toolbar/Toolbar.styles.d.ts +0 -1
- 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 +41 -1
- package/dist/constants/open.d.ts +3 -1
- 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 +2350 -4222
- 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 +425 -0
- package/dist/i18n/messages/de-DE.d.ts +405 -0
- package/dist/i18n/messages/en/code.d.ts +16 -0
- package/dist/i18n/messages/en/colorPicker.d.ts +35 -0
- package/dist/i18n/messages/en/common.d.ts +64 -0
- package/dist/i18n/messages/en/contextMenu.d.ts +29 -0
- package/dist/i18n/messages/en/explorer.d.ts +37 -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 +40 -0
- package/dist/i18n/messages/en/floatingToolbar.d.ts +12 -0
- package/dist/i18n/messages/en/index.d.ts +408 -0
- package/dist/i18n/messages/en/mapColumns.d.ts +39 -0
- package/dist/i18n/messages/en/palette.d.ts +34 -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 +34 -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 +8 -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 +410 -0
- package/dist/i18n/messages/eu-ES.d.ts +405 -0
- package/dist/i18n/messages/fa-IR.d.ts +405 -0
- package/dist/i18n/messages/fr-FR.d.ts +410 -0
- package/dist/i18n/messages/he-IL.d.ts +410 -0
- package/dist/i18n/messages/id-ID.d.ts +400 -0
- package/dist/i18n/messages/index.d.ts +11 -0
- package/dist/i18n/messages/it-IT.d.ts +410 -0
- package/dist/i18n/messages/ja-JP.d.ts +400 -0
- package/dist/i18n/messages/ko-KR.d.ts +400 -0
- package/dist/i18n/messages/nl-NL.d.ts +405 -0
- package/dist/i18n/messages/pl-PL.d.ts +415 -0
- package/dist/i18n/messages/pt-BR.d.ts +410 -0
- package/dist/i18n/messages/pt-PT.d.ts +410 -0
- package/dist/i18n/messages/ro-RO.d.ts +410 -0
- package/dist/i18n/messages/ru-RU.d.ts +415 -0
- package/dist/i18n/messages/sk-SK.d.ts +415 -0
- package/dist/i18n/messages/sl-SI.d.ts +415 -0
- package/dist/i18n/messages/sv-SE.d.ts +405 -0
- package/dist/i18n/messages/tr-TR.d.ts +405 -0
- package/dist/i18n/messages/uk-UA.d.ts +415 -0
- package/dist/i18n/messages/zh-CN.d.ts +400 -0
- package/dist/i18n/messages/zh-TW.d.ts +400 -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 +31169 -12611
- 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-BKvXDYoC.js +12925 -0
- package/dist/peer/index.d.ts +6 -3
- package/dist/peer/index.js +82 -75
- 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-2IUOt99m.js +1341 -0
- package/dist/styles/scrollbar.styles.d.ts +1 -1
- package/dist/themes/radix-ui-theme.d.ts +11 -3
- package/dist/themes/tokens.d.ts +18 -4
- 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/diff/compareEntities.d.ts +39 -0
- package/dist/utils/diff/diffDocuments.d.ts +12 -0
- package/dist/utils/diff/index.d.ts +5 -0
- package/dist/utils/diff/pairEntities.d.ts +41 -0
- package/dist/utils/diff/types.d.ts +77 -0
- 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 -12
- 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 +25 -12
- package/dist/utils/find-replace/matcher.d.ts +2 -0
- package/dist/utils/find-replace/present.d.ts +8 -5
- package/dist/utils/find-replace/preserveCase.d.ts +10 -0
- 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 +19 -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/utils/takeover.d.ts +6 -0
- package/dist/utils/virtualRange.d.ts +15 -0
- 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 +4 -11
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +0 -12
- package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +0 -6
- package/dist/components/find-replace/FindReplace.d.ts +0 -13
- package/dist/components/find-replace/FindReplace.styles.d.ts +0 -27
- package/dist/components/find-replace/panelLayout.d.ts +0 -17
- 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
- /package/dist/components/{find-replace → explorer}/fieldIcon.d.ts +0 -0
package/dist/components/primitives/context-menu/context-menu-separator/ContextMenuSeparator.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from '@dineug/r-html';
|
|
2
|
+
/**
|
|
3
|
+
* A rule between groups of rows, which opens and runs nothing. A sibling of the
|
|
4
|
+
* rows, never their wrapper, since a row finds its menu by its parent's data-id.
|
|
5
|
+
*/
|
|
6
|
+
declare const ContextMenuSeparator: FC;
|
|
7
|
+
export default ContextMenuSeparator;
|
|
8
|
+
//# sourceMappingURL=ContextMenuSeparator.d.ts.map
|
|
@@ -2,6 +2,8 @@ import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
|
2
2
|
export type MenuProps = {
|
|
3
3
|
icon?: DOMTemplateLiterals | string | null;
|
|
4
4
|
name: DOMTemplateLiterals | string;
|
|
5
|
+
/** A name kept as written, a vendor or a code language such as C#, which reads left to right in any language. */
|
|
6
|
+
literal?: boolean;
|
|
5
7
|
right?: DOMTemplateLiterals | string | null;
|
|
6
8
|
};
|
|
7
9
|
declare const Menu: FC<MenuProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
export type DialogProps = {
|
|
3
|
+
/** The name the dialog is announced by. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** The widest the box grows, in pixels; it narrows with the editor. */
|
|
6
|
+
maxWidth: number;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
children: DOMTemplateLiterals;
|
|
9
|
+
};
|
|
10
|
+
/** Marks the control a dialog focuses when it opens; without one the box takes the focus. */
|
|
11
|
+
export declare const AUTOFOCUS_ATTRIBUTE = "data-autofocus";
|
|
12
|
+
/** The editor width under which a dialog stacks what stands side by side in it. */
|
|
13
|
+
export declare const DIALOG_STACK_BELOW = 640;
|
|
14
|
+
/**
|
|
15
|
+
* A modal box over the editor. Escape and a press on the dim around it close
|
|
16
|
+
* it, and once it is gone the editor takes the keyboard back, or the keyboard
|
|
17
|
+
* falls to the page and every shortcut stops.
|
|
18
|
+
*/
|
|
19
|
+
declare const Dialog: FC<DialogProps>;
|
|
20
|
+
export default Dialog;
|
|
21
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dims the whole editor and centres the box in it. It stacks one under the
|
|
3
|
+
* toasts, which report what its buttons did, and the palette, drawn after it
|
|
4
|
+
* at the toasts' height, still opens over it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
/**
|
|
8
|
+
* The box over the dim, as tall as its content and never past the editor; a
|
|
9
|
+
* short editor scrolls it, so the controls at its foot stay in reach.
|
|
10
|
+
*/
|
|
11
|
+
export declare const content: import('@dineug/r-html').CSSTemplateLiterals;
|
|
12
|
+
//# sourceMappingURL=Dialog.styles.d.ts.map
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
-
import {
|
|
3
|
-
export type HighlightedTextProps =
|
|
4
|
-
searchWords: string[];
|
|
5
|
-
textToHighlight: string;
|
|
6
|
-
};
|
|
2
|
+
import { FindAllArgs } from '../../../utils/highlightWords';
|
|
3
|
+
export type HighlightedTextProps = FindAllArgs;
|
|
7
4
|
declare const HighlightedText: FC<HighlightedTextProps>;
|
|
8
5
|
export default HighlightedText;
|
|
9
6
|
//# sourceMappingURL=HighlightedText.d.ts.map
|
|
@@ -5,40 +5,60 @@ export declare const ICON_STROKE_WIDTH = 2;
|
|
|
5
5
|
export type IconNodeChild = IconNode[number];
|
|
6
6
|
declare const LUCIDE_ICON: {
|
|
7
7
|
'arrow-down': IconNode;
|
|
8
|
+
'arrow-left': IconNode;
|
|
8
9
|
'arrow-right': IconNode;
|
|
9
10
|
'arrow-up': IconNode;
|
|
10
11
|
atom: IconNode;
|
|
11
12
|
braces: IconNode;
|
|
12
13
|
brackets: IconNode;
|
|
13
14
|
'case-sensitive': IconNode;
|
|
15
|
+
'case-upper': IconNode;
|
|
14
16
|
check: IconNode;
|
|
15
17
|
'chevron-down': IconNode;
|
|
16
18
|
'chevron-right': IconNode;
|
|
19
|
+
'chevrons-down-up': IconNode;
|
|
17
20
|
code: IconNode;
|
|
18
|
-
'columns-2': IconNode;
|
|
19
21
|
contrast: IconNode;
|
|
20
22
|
copy: IconNode;
|
|
21
23
|
database: IconNode;
|
|
22
|
-
|
|
24
|
+
download: IconNode;
|
|
25
|
+
ellipsis: IconNode;
|
|
23
26
|
'external-link': IconNode;
|
|
24
27
|
eye: IconNode;
|
|
25
28
|
'file-diff': IconNode;
|
|
26
29
|
'file-image': IconNode;
|
|
27
30
|
'file-input': IconNode;
|
|
28
31
|
'file-output': IconNode;
|
|
32
|
+
folder: IconNode;
|
|
33
|
+
'folder-open': IconNode;
|
|
29
34
|
fullscreen: IconNode;
|
|
30
35
|
'grip-vertical': IconNode;
|
|
36
|
+
group: IconNode;
|
|
31
37
|
hand: IconNode;
|
|
38
|
+
keyboard: IconNode;
|
|
32
39
|
'key-round': IconNode;
|
|
40
|
+
languages: IconNode;
|
|
41
|
+
link: IconNode;
|
|
42
|
+
list: IconNode;
|
|
43
|
+
'list-tree': IconNode;
|
|
44
|
+
'loader-circle': IconNode;
|
|
33
45
|
lock: IconNode;
|
|
46
|
+
'lock-open': IconNode;
|
|
47
|
+
logs: IconNode;
|
|
34
48
|
maximize: IconNode;
|
|
35
49
|
'message-square': IconNode;
|
|
36
50
|
minimize: IconNode;
|
|
37
51
|
minus: IconNode;
|
|
52
|
+
monitor: IconNode;
|
|
38
53
|
'moon-star': IconNode;
|
|
39
54
|
'mouse-pointer-2': IconNode;
|
|
40
55
|
network: IconNode;
|
|
41
56
|
palette: IconNode;
|
|
57
|
+
'panel-right': IconNode;
|
|
58
|
+
'panel-right-close': IconNode;
|
|
59
|
+
'panel-right-open': IconNode;
|
|
60
|
+
pencil: IconNode;
|
|
61
|
+
pipette: IconNode;
|
|
42
62
|
plus: IconNode;
|
|
43
63
|
'redo-2': IconNode;
|
|
44
64
|
'refresh-cw': IconNode;
|
|
@@ -54,8 +74,9 @@ declare const LUCIDE_ICON: {
|
|
|
54
74
|
sun: IconNode;
|
|
55
75
|
'table-2': IconNode;
|
|
56
76
|
'table-properties': IconNode;
|
|
57
|
-
'
|
|
77
|
+
'triangle-alert': IconNode;
|
|
58
78
|
'undo-2': IconNode;
|
|
79
|
+
ungroup: IconNode;
|
|
59
80
|
'wand-sparkles': IconNode;
|
|
60
81
|
waypoints: IconNode;
|
|
61
82
|
'whole-word': IconNode;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
/** The chevron's box; its ink is 5/24 inside it on each side, as lucide draws it. */
|
|
3
|
+
export declare const SELECT_CHEVRON_SIZE = 14;
|
|
4
|
+
export type SelectProps = {
|
|
5
|
+
/** The box's width and place, which the list fills. */
|
|
6
|
+
class?: any;
|
|
7
|
+
/** A setting nothing reads now, its value and chevron dimmed, still to be changed. */
|
|
8
|
+
dimmed?: boolean;
|
|
9
|
+
/** The native select, its options, name and change its own. */
|
|
10
|
+
children: DOMTemplateLiterals;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A native list drawn in the editor's look: the select a caller writes, with
|
|
14
|
+
* the editor's chevron at its end, on the left for a right-to-left reader.
|
|
15
|
+
*/
|
|
16
|
+
declare const Select: FC<SelectProps>;
|
|
17
|
+
export default Select;
|
|
18
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The chevron over the list's end, the clicks passing through it to the list.
|
|
3
|
+
* Its ink starts 5/24 into its 14 px box, so 7 px off the edge puts it 8.9 px
|
|
4
|
+
* past the border, where a value's first letter stands past its 8 px padding.
|
|
5
|
+
*/
|
|
6
|
+
export declare const chevron: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
/**
|
|
8
|
+
* A native list in the editor's colours, the browser's arrow off and the
|
|
9
|
+
* editor's chevron in its place, a value never running under it; its popup
|
|
10
|
+
* takes the appearance from color-scheme.
|
|
11
|
+
*/
|
|
12
|
+
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
|
+
//# sourceMappingURL=Select.styles.d.ts.map
|
|
@@ -3,6 +3,8 @@ export type TextInputProps = {
|
|
|
3
3
|
class?: any;
|
|
4
4
|
title?: string;
|
|
5
5
|
placeholder?: string;
|
|
6
|
+
/** auto for what a reader types, which runs in its own direction whatever the page's, once there is some. */
|
|
7
|
+
dir?: 'auto';
|
|
6
8
|
readonly?: boolean;
|
|
7
9
|
disabled?: boolean;
|
|
8
10
|
width?: number;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
/** What became of the thing a toast reports: done, or not done. */
|
|
3
|
+
export type ToastTone = 'success' | 'error';
|
|
2
4
|
export type ToastProps = {
|
|
3
5
|
title?: DOMTemplateLiterals | string;
|
|
4
6
|
description?: DOMTemplateLiterals | string;
|
|
5
7
|
action?: DOMTemplateLiterals | string;
|
|
6
|
-
/** The thing reported is still running, which
|
|
8
|
+
/** The thing reported is still running, which lucide's turning loader says. */
|
|
7
9
|
busy?: boolean;
|
|
8
10
|
/** How far along it is, from 0 to 1, which the ring fills up by. */
|
|
9
11
|
progress?: number;
|
|
12
|
+
/** How it ended, which a check or a warning sign in the tone's color says. */
|
|
13
|
+
tone?: ToastTone;
|
|
10
14
|
};
|
|
11
15
|
declare const Toast: FC<ToastProps>;
|
|
12
16
|
export default Toast;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* What stands beside the text: lucide's turning loader while busy, a ring that
|
|
4
|
+
* fills from the top with a progress, or the mark of a tone in its own color.
|
|
5
5
|
*/
|
|
6
6
|
export declare const indicator: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
7
|
export declare const textWrap: import('@dineug/r-html').CSSTemplateLiterals;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DOMTemplateLiterals, FC } from '@dineug/r-html';
|
|
2
|
+
import { TreeRow } from './treeModel';
|
|
3
|
+
export declare const TREE_ROW_HEIGHT = 22;
|
|
4
|
+
export declare const TREE_OVERSCAN = 8;
|
|
5
|
+
export type TreeProps<T = any> = {
|
|
6
|
+
rows: ReadonlyArray<TreeRow<T>>;
|
|
7
|
+
/** The row the keyboard is on, named to a reader by aria-activedescendant. */
|
|
8
|
+
activeId: string | null;
|
|
9
|
+
/** The row a host marks as the current one, such as the match it jumped to. */
|
|
10
|
+
currentId?: string | null;
|
|
11
|
+
/** Scrolls this row into view each time a different id arrives; a null between two arrivals of one id scrolls it again. */
|
|
12
|
+
revealId?: string | null;
|
|
13
|
+
label: string;
|
|
14
|
+
dir?: 'ltr' | 'rtl';
|
|
15
|
+
/** Read once as the tree mounts, so a scroll position kept outside comes back. */
|
|
16
|
+
getScrollTop: () => number;
|
|
17
|
+
onScroll?: (top: number) => void;
|
|
18
|
+
onToggle?: (id: string, expanded: boolean) => void;
|
|
19
|
+
onActivate?: (row: TreeRow<T>) => void;
|
|
20
|
+
onActiveChange?: (id: string) => void;
|
|
21
|
+
renderRow: (row: TreeRow<T>) => DOMTemplateLiterals;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A virtualized tree with fixed-height rows. It renders the rows in view, the
|
|
25
|
+
* overscan and the active row, answers the tree keys and leaves every policy to
|
|
26
|
+
* its host: what a row shows, what activating one does, Escape and the chords.
|
|
27
|
+
*/
|
|
28
|
+
declare const Tree: FC<TreeProps>;
|
|
29
|
+
export default Tree;
|
|
30
|
+
//# sourceMappingURL=Tree.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
|
+
export declare const space: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
|
+
export declare const row: import('@dineug/r-html').CSSTemplateLiterals;
|
|
4
|
+
export declare const twisty: import('@dineug/r-html').CSSTemplateLiterals;
|
|
5
|
+
//# sourceMappingURL=Tree.styles.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One node of a tree a host builds. Its children are asked for only while it
|
|
3
|
+
* is expanded, so a host can hand over a large document without building rows
|
|
4
|
+
* for what stays folded.
|
|
5
|
+
*/
|
|
6
|
+
export type TreeNode<T = unknown> = {
|
|
7
|
+
id: string;
|
|
8
|
+
hasChildren: boolean;
|
|
9
|
+
children: () => ReadonlyArray<TreeNode<T>>;
|
|
10
|
+
data: T;
|
|
11
|
+
};
|
|
12
|
+
/** A node as the tree lays it out: its depth and its place among its siblings. */
|
|
13
|
+
export type TreeRow<T = unknown> = {
|
|
14
|
+
node: TreeNode<T>;
|
|
15
|
+
/** One for a root. */
|
|
16
|
+
level: number;
|
|
17
|
+
setSize: number;
|
|
18
|
+
/** One for the first sibling. */
|
|
19
|
+
posInSet: number;
|
|
20
|
+
expanded: boolean;
|
|
21
|
+
parentId: string | null;
|
|
22
|
+
};
|
|
23
|
+
export type ExpandedIds = Readonly<Record<string, true>>;
|
|
24
|
+
/** The rows a tree shows: every root, and the children of each expanded node, depth first. */
|
|
25
|
+
export declare function flattenTree<T>(roots: ReadonlyArray<TreeNode<T>>, expanded: ExpandedIds): TreeRow<T>[];
|
|
26
|
+
/** What a key asks of the tree: move the active row, or fold or unfold one. */
|
|
27
|
+
export type TreeMove = {
|
|
28
|
+
type: 'focus';
|
|
29
|
+
id: string;
|
|
30
|
+
index: number;
|
|
31
|
+
} | {
|
|
32
|
+
type: 'toggle';
|
|
33
|
+
id: string;
|
|
34
|
+
expanded: boolean;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Reads a tree key the way the WAI-ARIA tree pattern does. Up and Down step,
|
|
38
|
+
* Home and End go to either end, the inline end unfolds or steps into the
|
|
39
|
+
* first child and the inline start folds or steps out, mirrored right to left.
|
|
40
|
+
*/
|
|
41
|
+
export declare function moveFocus<T>(rows: ReadonlyArray<TreeRow<T>>, activeId: string | null, key: string, dir?: 'ltr' | 'rtl'): TreeMove | null;
|
|
42
|
+
//# sourceMappingURL=treeModel.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
|
-
|
|
2
|
+
import { PalettePreferences } from './actions';
|
|
3
|
+
export type QuickSearchProps = PalettePreferences;
|
|
3
4
|
declare const QuickSearch: FC<QuickSearchProps>;
|
|
4
5
|
export default QuickSearch;
|
|
5
6
|
//# sourceMappingURL=QuickSearch.d.ts.map
|
|
@@ -8,6 +8,7 @@ export declare const hintItem: import('@dineug/r-html').CSSTemplateLiterals;
|
|
|
8
8
|
export declare const empty: import('@dineug/r-html').CSSTemplateLiterals;
|
|
9
9
|
export declare const prefix: import('@dineug/r-html').CSSTemplateLiterals;
|
|
10
10
|
export declare const list: import('@dineug/r-html').CSSTemplateLiterals;
|
|
11
|
+
export declare const space: import('@dineug/r-html').CSSTemplateLiterals;
|
|
11
12
|
export declare const action: import('@dineug/r-html').CSSTemplateLiterals;
|
|
12
13
|
export declare const icon: import('@dineug/r-html').CSSTemplateLiterals;
|
|
13
14
|
export declare const name: import('@dineug/r-html').CSSTemplateLiterals;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { DOMTemplateLiterals } from '@dineug/r-html';
|
|
2
2
|
import { AppContext } from '../appContext';
|
|
3
3
|
import { RootState } from '../../engine/state';
|
|
4
|
-
import {
|
|
4
|
+
import { LocaleOption } from '../../i18n/locales';
|
|
5
|
+
import { LabeledMenu } from '../../i18n/menuLabel';
|
|
6
|
+
import { I18n, PlainMessageKey } from '../../i18n/translate';
|
|
7
|
+
import { AppearanceOption } from '../../themes/radix-ui-theme';
|
|
5
8
|
import { FindMatch } from '../../utils/find-replace';
|
|
6
9
|
export type Action = {
|
|
7
10
|
icon?: DOMTemplateLiterals | null;
|
|
@@ -12,10 +15,24 @@ export type Action = {
|
|
|
12
15
|
tableId?: string;
|
|
13
16
|
/** What choosing the row types into the input, which stays open, instead of running a command. */
|
|
14
17
|
insert?: string;
|
|
18
|
+
/** The English of a translated name and keywords, each its own text, which a search also reads and the list never shows. */
|
|
19
|
+
alias?: string[];
|
|
20
|
+
/** The option in force among a submenu's rows, which the submenu opens on. */
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
/** The message key of a row opening a submenu, by which an open palette finds that submenu again in a rebuilt level. */
|
|
23
|
+
id?: PlainMessageKey;
|
|
15
24
|
filter?: (app: AppContext) => boolean;
|
|
16
25
|
perform?: (app: AppContext) => void;
|
|
17
26
|
next?: Action[];
|
|
18
27
|
};
|
|
28
|
+
/** What names a row: a message key, or a shared menu whose name stays as written where it has no key. */
|
|
29
|
+
type RowLabel = PlainMessageKey | LabeledMenu;
|
|
30
|
+
/**
|
|
31
|
+
* A row's name and keywords in the reader's language. The English of each one
|
|
32
|
+
* a translation changes goes into its alias apart, so a search scores it as in
|
|
33
|
+
* English and a command is found by its English words too; English has none.
|
|
34
|
+
*/
|
|
35
|
+
export declare function named(i18n: Pick<I18n, 't'>, label: RowLabel, keywordsKey?: PlainMessageKey): Pick<Action, 'name' | 'keywords' | 'alias'>;
|
|
19
36
|
/**
|
|
20
37
|
* Whether a row holds the keyword: as typed, or by its Hangul letters, which
|
|
21
38
|
* an IME spells out one jamo at a time and a choseong search abbreviates.
|
|
@@ -28,11 +45,26 @@ export declare function keywordHolder(keyword: string): (action: Action) => bool
|
|
|
28
45
|
*/
|
|
29
46
|
export declare const SEARCH_THRESHOLD = 0.4;
|
|
30
47
|
export declare function searchActions(actions: Action[], keyword: string): Action[];
|
|
31
|
-
/** The
|
|
32
|
-
export
|
|
48
|
+
/** The theme and the display language the element holds, each given only while it offers that picker. */
|
|
49
|
+
export type PalettePreferences = {
|
|
50
|
+
appearance?: AppearanceOption;
|
|
51
|
+
locale?: LocaleOption;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The palette's top level: the commands of every tab, then a jump to each
|
|
55
|
+
* table, which only the # prefix lists, each in the reader's language. Theme
|
|
56
|
+
* and Display Language show on every tab, each only while its picker is given.
|
|
57
|
+
*/
|
|
58
|
+
export declare function createScopeActions(app: AppContext, i18n?: I18n, preferences?: PalettePreferences): Action[];
|
|
59
|
+
/**
|
|
60
|
+
* Theme and Display Language, each only while the element offers its picker,
|
|
61
|
+
* with a check on the option in force. A pick goes through the emitter as the
|
|
62
|
+
* pickers' own do, so the host hears it; a language is named in itself.
|
|
63
|
+
*/
|
|
64
|
+
export declare function createPreferenceActions(i18n: I18n, { appearance, locale }: PalettePreferences): Action[];
|
|
33
65
|
/** The row for one field a search found, saying where it is, which stands the reader on it when chosen. */
|
|
34
|
-
export declare function createMatchAction(state: RootState, match: FindMatch): Action;
|
|
35
|
-
/** The
|
|
36
|
-
export declare function
|
|
37
|
-
export
|
|
66
|
+
export declare function createMatchAction(state: RootState, match: FindMatch, i18n?: I18n): Action;
|
|
67
|
+
/** The five tabs the Tab row opens, each but the one shown. */
|
|
68
|
+
export declare function createTabActions(i18n?: I18n): Action[];
|
|
69
|
+
export {};
|
|
38
70
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Chunk, FindChunksArgs } from 'highlight-words-core';
|
|
2
1
|
import { Matcher, TextRange } from '../../utils/find-replace';
|
|
2
|
+
import { FindChunksArgs } from '../../utils/highlightWords';
|
|
3
3
|
export type HangulForms = {
|
|
4
4
|
/** The text spelled in jamo letter by letter and lower-cased, as disassemble spells it. */
|
|
5
5
|
jamo: string;
|
|
@@ -44,18 +44,24 @@ export declare function hangulTier(text: string, query: HangulQuery): HangulTier
|
|
|
44
44
|
* it spells: 상 in 사용자 covers 사용.
|
|
45
45
|
*/
|
|
46
46
|
export declare function hangulRanges(text: string, query: HangulQuery): TextRange[];
|
|
47
|
-
/**
|
|
48
|
-
export type TextHit = TextRange &
|
|
47
|
+
/** How a text holds the keyword: as typed, which Find and Replace finds too, and where; or by its Hangul letters alone, and how closely. */
|
|
48
|
+
export type TextHit = (TextRange & {
|
|
49
49
|
literal: true;
|
|
50
|
-
} | {
|
|
50
|
+
}) | {
|
|
51
51
|
literal: false;
|
|
52
52
|
tier: HangulTier;
|
|
53
|
-
}
|
|
53
|
+
};
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
55
|
+
* Whether a text holds the keyword: as typed, or failing that by its Hangul
|
|
56
|
+
* letters, which only the palette reads. Where those letters lie waits for
|
|
57
|
+
* hitRange, which spells the text again.
|
|
57
58
|
*/
|
|
58
59
|
export declare function matchText(text: string, matcher: Matcher, hangul: HangulQuery | null): TextHit | null;
|
|
60
|
+
/**
|
|
61
|
+
* The first place a text holds a hit, which for one its Hangul letters hold
|
|
62
|
+
* spells the text again, so a list reads it only for the rows it shows.
|
|
63
|
+
*/
|
|
64
|
+
export declare function hitRange(text: string, hit: TextHit, hangul: HangulQuery | null): TextRange;
|
|
59
65
|
/**
|
|
60
66
|
* Hits in a Hangul search's order: those holding the keyword as typed first,
|
|
61
67
|
* as they came, the way a search without Hangul lists them, then those only its
|
|
@@ -65,9 +71,9 @@ export declare function rankHits<T extends {
|
|
|
65
71
|
hit: TextHit;
|
|
66
72
|
}>(hits: T[]): T[];
|
|
67
73
|
/**
|
|
68
|
-
* The
|
|
74
|
+
* The ranges a palette row lights up: each word where the text holds it as
|
|
69
75
|
* typed, and a Hangul word where the text holds it by its letters, widened to
|
|
70
|
-
* whole syllables. HighlightedText merges the ones that overlap.
|
|
76
|
+
* whole syllables. HighlightedText merges the ones that overlap or touch.
|
|
71
77
|
*/
|
|
72
|
-
export declare function findPaletteChunks(args: FindChunksArgs):
|
|
78
|
+
export declare function findPaletteChunks(args: FindChunksArgs): TextRange[];
|
|
73
79
|
//# sourceMappingURL=hangul.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The height of one palette row, which the list lays out every row at. */
|
|
2
|
+
export declare const PALETTE_ROW_HEIGHT = 45;
|
|
3
|
+
/** The tallest the list stands before it scrolls. */
|
|
4
|
+
export declare const PALETTE_LIST_MAX_HEIGHT = 400;
|
|
5
|
+
/** How tall the list stands for so many rows: all of them, up to its tallest. */
|
|
6
|
+
export declare const paletteListHeight: (count: number) => number;
|
|
7
|
+
//# sourceMappingURL=paletteList.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { I18n, PlainMessageKey } from '../../i18n/translate';
|
|
1
2
|
import { ValuesType } from '../../internal-types';
|
|
2
3
|
export declare const PaletteScope: {
|
|
3
4
|
readonly tables: "tables";
|
|
@@ -9,8 +10,8 @@ export type PaletteScope = ValuesType<typeof PaletteScope>;
|
|
|
9
10
|
export type PalettePrefix = {
|
|
10
11
|
prefix: string;
|
|
11
12
|
scope: PaletteScope;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
labelKey: PlainMessageKey;
|
|
14
|
+
descriptionKey: PlainMessageKey;
|
|
14
15
|
};
|
|
15
16
|
/** The characters that, typed first, narrow the palette to one kind of row, in the order its hint lists them. */
|
|
16
17
|
export declare const PALETTE_PREFIXES: ReadonlyArray<PalettePrefix>;
|
|
@@ -22,8 +23,8 @@ export type PaletteQuery = {
|
|
|
22
23
|
/** The table part of a column search, the text before its first dot; null when it has no dot. */
|
|
23
24
|
table: string | null;
|
|
24
25
|
};
|
|
25
|
-
/** The label the palette shows beside its input while a prefix narrows the list. */
|
|
26
|
-
export declare
|
|
26
|
+
/** The label the palette shows beside its input while a prefix narrows the list, in the reader's language. */
|
|
27
|
+
export declare function scopeLabel(scope: PaletteScope, i18n?: Pick<I18n, 't'>): string;
|
|
27
28
|
/**
|
|
28
29
|
* Reads what is typed into the palette: a prefix counts only as the first
|
|
29
30
|
* character past any space, in its full-width form too, a space may follow it,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AppContext } from '../appContext';
|
|
2
|
+
import { I18n } from '../../i18n/translate';
|
|
2
3
|
import { FindField } from '../../utils/find-replace';
|
|
3
4
|
import { Action } from './actions';
|
|
4
5
|
import { PaletteQuery, PaletteScope } from './paletteQuery';
|
|
5
|
-
/** How many rows a prefixed list shows, few enough to draw at once. */
|
|
6
|
-
export declare const SCOPED_ACTION_LIMIT = 100;
|
|
7
6
|
/** What the colon searches: the free text, never a name. */
|
|
8
7
|
export declare const TEXT_FIELDS: FindField[];
|
|
9
8
|
/**
|
|
@@ -17,25 +16,21 @@ export declare function scopeBase(actions: Action[], scope: PaletteScope | null)
|
|
|
17
16
|
* commands, then the prefixes when none holds the keyword; the tables; or rows
|
|
18
17
|
* read from the document for the columns, the free text and the help.
|
|
19
18
|
*/
|
|
20
|
-
export declare function paletteRows(app: AppContext, found: Action[], { scope, keyword, table }: PaletteQuery): Action[];
|
|
19
|
+
export declare function paletteRows(app: AppContext, found: Action[], { scope, keyword, table }: PaletteQuery, i18n?: I18n): Action[];
|
|
20
|
+
/** The table rows the keyword fuzzes to, every one, those holding it as typed or by its Hangul letters first. */
|
|
21
|
+
export declare function rankTableActions(found: Action[], keyword: string): Action[];
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* One row for each field of the kinds given holding the keyword, Hangul letters
|
|
24
|
+
* too, or for every column or text that is not empty while there is none, the
|
|
25
|
+
* table part narrowing a column search; the list draws only the rows in view.
|
|
25
26
|
*/
|
|
26
|
-
export declare function
|
|
27
|
-
/**
|
|
28
|
-
* One row a field of the kinds given holding the keyword, Hangul letters too,
|
|
29
|
-
* or every column or text, up to the scoped limit, past which one holding it as
|
|
30
|
-
* typed hands it to Find and Replace over those kinds, without the table part.
|
|
31
|
-
*/
|
|
32
|
-
export declare function createFieldActions(app: AppContext, fields: FindField[], keyword: string, table?: string | null): Action[];
|
|
27
|
+
export declare function createFieldActions(app: AppContext, fields: FindField[], keyword: string, table?: string | null, i18n?: I18n): Action[];
|
|
33
28
|
/** The prefixes as rows, each typing its character into the input when chosen; a keyword fuzzes them. */
|
|
34
|
-
export declare function createHelpActions(keyword?: string): Action[];
|
|
29
|
+
export declare function createHelpActions(keyword?: string, i18n?: I18n): Action[];
|
|
35
30
|
/**
|
|
36
31
|
* The prefixes that search the document as rows offering the keyword to one,
|
|
37
32
|
* what a search with no prefix lists below its commands once none holds it:
|
|
38
33
|
* choosing one types its prefix before the keyword, so users becomes #users.
|
|
39
34
|
*/
|
|
40
|
-
export declare function createPrefixActions(keyword: string): Action[];
|
|
35
|
+
export declare function createPrefixActions(keyword: string, i18n?: I18n): Action[];
|
|
41
36
|
//# sourceMappingURL=scopedActions.d.ts.map
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
2
|
export type SchemaSQLProps = {
|
|
3
3
|
isDarkMode: boolean;
|
|
4
|
+
/** One table's DDL, as Table Properties shows it: always created, no options. */
|
|
4
5
|
tableId?: string;
|
|
6
|
+
readonly?: boolean;
|
|
5
7
|
};
|
|
6
8
|
declare const SchemaSQL: FC<SchemaSQLProps>;
|
|
7
9
|
export default SchemaSQL;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/** The code and, beside it, the options panel. */
|
|
1
2
|
export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
|
|
3
|
+
/** The code takes what the panel leaves, and no more. */
|
|
4
|
+
export declare const code: import('@dineug/r-html').CSSTemplateLiterals;
|
|
5
|
+
/** Why the code is empty while no table is chosen, centred over it in any language. */
|
|
6
|
+
export declare const empty: import('@dineug/r-html').CSSTemplateLiterals;
|
|
7
|
+
/** Show options, over the code's own colour so it reads above the text. */
|
|
8
|
+
export declare const show: import('@dineug/r-html').CSSTemplateLiterals;
|
|
2
9
|
//# sourceMappingURL=SchemaSQL.styles.d.ts.map
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { FC } from '@dineug/r-html';
|
|
2
2
|
export type SchemaSQLContextMenuProps = {
|
|
3
|
+
/** The whole document's tab, which adds the statements, the header, the panel and Save file to the menu. */
|
|
4
|
+
full?: boolean;
|
|
5
|
+
onSave?: () => void;
|
|
3
6
|
onClose: () => void;
|
|
4
7
|
};
|
|
5
8
|
declare const SchemaSQLContextMenu: FC<SchemaSQLContextMenuProps>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { AppContext } from '../../../appContext';
|
|
2
|
+
import { PlainMessageKey } from '../../../../i18n/translate';
|
|
2
3
|
type Menu = {
|
|
3
4
|
name: string;
|
|
5
|
+
labelKey?: PlainMessageKey;
|
|
4
6
|
value: number;
|
|
5
7
|
};
|
|
6
8
|
export declare const menus: Menu[];
|
|
7
9
|
export declare function createBracketMenus({ store }: AppContext): {
|
|
8
10
|
checked: boolean;
|
|
9
11
|
name: string;
|
|
12
|
+
labelKey: PlainMessageKey | undefined;
|
|
10
13
|
onClick: () => void;
|
|
11
14
|
}[];
|
|
12
15
|
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AppContext } from '../../../appContext';
|
|
2
|
+
import { I18n, PlainMessageKey } from '../../../../i18n/translate';
|
|
3
|
+
import { SchemaSQLHeader } from '../../../../utils/schema-sql';
|
|
4
|
+
import { SchemaSQLSupport } from '../../../../utils/schema-sql/options';
|
|
5
|
+
type Menu = {
|
|
6
|
+
id: SchemaSQLHeader;
|
|
7
|
+
name: string;
|
|
8
|
+
labelKey?: PlainMessageKey;
|
|
9
|
+
};
|
|
10
|
+
/** No header, then the two as the SQL they write names them, which no language translates. */
|
|
11
|
+
export declare const menus: ReadonlyArray<Menu>;
|
|
12
|
+
/** Whether a database writes the header; every one can write none. */
|
|
13
|
+
export declare const isHeaderSupported: ({ headers }: SchemaSQLSupport, id: SchemaSQLHeader) => boolean;
|
|
14
|
+
/** What a header writes in a database, or nothing for none or one it lacks. */
|
|
15
|
+
export declare const headerHint: (database: number, id: SchemaSQLHeader) => string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The Header rows of the Schema SQL menu, ruled as the Statements rows are:
|
|
18
|
+
* None in the reader's language, the two headers as SQL.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createHeaderMenus(app: Pick<AppContext, 'store'>, i18n: Pick<I18n, 't'>): {
|
|
21
|
+
id: SchemaSQLHeader;
|
|
22
|
+
name: string;
|
|
23
|
+
literal: boolean;
|
|
24
|
+
checked: boolean;
|
|
25
|
+
note: string | null;
|
|
26
|
+
onClick: (() => void) | undefined;
|
|
27
|
+
}[];
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=headerMenus.d.ts.map
|