@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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Relationship } from '../../../internal-types';
|
|
2
|
+
import { ActionMap, ActionType, ReducerType } from './actions';
|
|
2
3
|
export declare const addRelationshipAction: {
|
|
3
4
|
(payload: {
|
|
4
5
|
id: string;
|
|
@@ -72,12 +73,41 @@ export declare const changeRelationshipOnUpdateAction: {
|
|
|
72
73
|
toString(): string;
|
|
73
74
|
type: string;
|
|
74
75
|
};
|
|
76
|
+
export declare const changeRelationshipColumnsAction: {
|
|
77
|
+
(payload: {
|
|
78
|
+
id: string;
|
|
79
|
+
start: {
|
|
80
|
+
tableId: string;
|
|
81
|
+
columnIds: string[];
|
|
82
|
+
};
|
|
83
|
+
end: {
|
|
84
|
+
tableId: string;
|
|
85
|
+
columnIds: string[];
|
|
86
|
+
};
|
|
87
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
88
|
+
id: string;
|
|
89
|
+
start: {
|
|
90
|
+
tableId: string;
|
|
91
|
+
columnIds: string[];
|
|
92
|
+
};
|
|
93
|
+
end: {
|
|
94
|
+
tableId: string;
|
|
95
|
+
columnIds: string[];
|
|
96
|
+
};
|
|
97
|
+
}>;
|
|
98
|
+
toString(): string;
|
|
99
|
+
type: string;
|
|
100
|
+
};
|
|
101
|
+
type ColumnsPayload = ActionMap[typeof ActionType.changeRelationshipColumns];
|
|
102
|
+
/** Whether the payload names other tables than the relationship's, which the reducer ignores. */
|
|
103
|
+
export declare const namesOtherTables: (relationship: Relationship, { start, end }: Pick<ColumnsPayload, "start" | "end">) => boolean;
|
|
75
104
|
export declare const relationshipReducers: {
|
|
76
105
|
"relationship.add": ReducerType<"relationship.add">;
|
|
77
106
|
"relationship.remove": ReducerType<"relationship.remove">;
|
|
78
107
|
"relationship.changeType": ReducerType<"relationship.changeType">;
|
|
79
108
|
"relationship.changeOnDelete": ReducerType<"relationship.changeOnDelete">;
|
|
80
109
|
"relationship.changeOnUpdate": ReducerType<"relationship.changeOnUpdate">;
|
|
110
|
+
"relationship.changeColumns": ReducerType<"relationship.changeColumns">;
|
|
81
111
|
};
|
|
82
112
|
export declare const actions: {
|
|
83
113
|
addRelationshipAction: {
|
|
@@ -153,5 +183,31 @@ export declare const actions: {
|
|
|
153
183
|
toString(): string;
|
|
154
184
|
type: string;
|
|
155
185
|
};
|
|
186
|
+
changeRelationshipColumnsAction: {
|
|
187
|
+
(payload: {
|
|
188
|
+
id: string;
|
|
189
|
+
start: {
|
|
190
|
+
tableId: string;
|
|
191
|
+
columnIds: string[];
|
|
192
|
+
};
|
|
193
|
+
end: {
|
|
194
|
+
tableId: string;
|
|
195
|
+
columnIds: string[];
|
|
196
|
+
};
|
|
197
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
198
|
+
id: string;
|
|
199
|
+
start: {
|
|
200
|
+
tableId: string;
|
|
201
|
+
columnIds: string[];
|
|
202
|
+
};
|
|
203
|
+
end: {
|
|
204
|
+
tableId: string;
|
|
205
|
+
columnIds: string[];
|
|
206
|
+
};
|
|
207
|
+
}>;
|
|
208
|
+
toString(): string;
|
|
209
|
+
type: string;
|
|
210
|
+
};
|
|
156
211
|
};
|
|
212
|
+
export {};
|
|
157
213
|
//# sourceMappingURL=atom.actions.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RootState } from '../../state';
|
|
2
|
+
/**
|
|
3
|
+
* Marks each relationship identifying when every column it ends on is a primary
|
|
4
|
+
* key, and not identifying, as a new one starts, once none of them is left or
|
|
5
|
+
* it is removed, so the value follows the document whatever order actions arrive in.
|
|
6
|
+
*/
|
|
7
|
+
export declare function recalculateIdentification(state: RootState): void;
|
|
8
|
+
/**
|
|
9
|
+
* Starts each relationship dashed when every column it ends on is not null and
|
|
10
|
+
* ringed otherwise, read off the columns as the identification is; one with no
|
|
11
|
+
* end column left is dashed, as a new one starts.
|
|
12
|
+
*/
|
|
13
|
+
export declare function recalculateStartRelationshipType(state: RootState): void;
|
|
14
|
+
//# sourceMappingURL=endFlags.d.ts.map
|
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
import { AnyAction } from '@dineug/r-html';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { RootState } from '../../state';
|
|
3
|
+
import { Column, Table } from '../../../internal-types';
|
|
4
|
+
/**
|
|
5
|
+
* The start table's name and the names the end table's columns hold, which
|
|
6
|
+
* name the copies, and the document's database, which types a serial key's copy.
|
|
7
|
+
*/
|
|
8
|
+
export type ForeignKeyContext = {
|
|
5
9
|
startTableName: string;
|
|
6
10
|
endColumnNames: string[];
|
|
11
|
+
database: number;
|
|
7
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* The columns a relationship drawn from a table copies into the table it ends
|
|
15
|
+
* on, the start table's primary key in column order, which a press on a table
|
|
16
|
+
* and the + button beside it both read.
|
|
17
|
+
*/
|
|
18
|
+
export declare const getStartKeyColumns: (collections: RootState["collections"], startTable: Table) => Column[];
|
|
19
|
+
/** A name as two names compare: trimmed, without case. */
|
|
20
|
+
export declare const toNameKey: (name: string) => string;
|
|
8
21
|
/**
|
|
9
22
|
* Tells a name of one word, id, ID, Id, UUID, id2 or 회원번호, from one of
|
|
10
23
|
* several, user_id, userId, UserID, IDCard or 회원ID: one word is letters and
|
|
11
24
|
* digits with none of the breaks CASE_BOUNDARY finds, read past marks and digits.
|
|
12
25
|
*/
|
|
13
26
|
export declare const isSingleWord: (name: string) => boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Joins the table name and the key name with an underscore when the key name
|
|
29
|
+
* is a single word other than the table name, compared without case; a blank
|
|
30
|
+
* table name, or a key name of several words, leaves the key name alone.
|
|
31
|
+
*/
|
|
32
|
+
export declare function prefixKeyName(tableName: string, keyName: string): string;
|
|
14
33
|
/**
|
|
15
34
|
* Names the foreign key column of each single word key after the start table,
|
|
16
35
|
* user_id for the key id of user, keeps other key names, and numbers a name
|
|
@@ -19,8 +38,8 @@ export declare const isSingleWord: (name: string) => boolean;
|
|
|
19
38
|
export declare function toForeignKeyNames(startTableName: string, keyNames: string[], endColumnNames: string[]): string[];
|
|
20
39
|
/**
|
|
21
40
|
* Adds a NOT NULL copy of each start column to the end table under the id at
|
|
22
|
-
* the same index of endColumnIds, named by toForeignKeyNames,
|
|
23
|
-
*
|
|
41
|
+
* the same index of endColumnIds, named by toForeignKeyNames, typed by
|
|
42
|
+
* toReferenceDataType, with its default and comment. The caller owns the ids.
|
|
24
43
|
*/
|
|
25
|
-
export declare const toForeignKeyActions: (startColumns: Column[], endTableId: string, endColumnIds: string[], { startTableName, endColumnNames }:
|
|
44
|
+
export declare const toForeignKeyActions: (startColumns: Column[], endTableId: string, endColumnIds: string[], { startTableName, endColumnNames, database }: ForeignKeyContext) => AnyAction[];
|
|
26
45
|
//# sourceMappingURL=fkColumns.d.ts.map
|
|
@@ -5,5 +5,6 @@ export declare const relationshipPushUndoHistoryMap: {
|
|
|
5
5
|
"relationship.changeType": PushUndoHistory;
|
|
6
6
|
"relationship.changeOnDelete": PushUndoHistory;
|
|
7
7
|
"relationship.changeOnUpdate": PushUndoHistory;
|
|
8
|
+
"relationship.changeColumns": PushUndoHistory;
|
|
8
9
|
};
|
|
9
10
|
//# sourceMappingURL=history.d.ts.map
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
import { Hook } from '../../hooks';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
/**
|
|
4
|
-
* Marks each relationship identifying when every column it ends on is a primary
|
|
5
|
-
* key. A load reads it off the columns again, as a key edit or a removal does.
|
|
6
|
-
*/
|
|
7
|
-
export declare function recalculateIdentification({ doc, collections }: RootState): void;
|
|
8
|
-
/**
|
|
9
|
-
* Starts each relationship dashed when every column it ends on is not null and
|
|
10
|
-
* ringed otherwise, read off the columns as the identification is.
|
|
11
|
-
*/
|
|
12
|
-
export declare function recalculateStartRelationshipType({ doc, collections, }: RootState): void;
|
|
13
2
|
export declare const hooks: Hook[];
|
|
14
3
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tells a serial type, serial or one of PostgreSQL's own, by its whole name
|
|
3
|
+
* without case once trimmed, whatever the database; serial(4) is none.
|
|
4
|
+
*/
|
|
5
|
+
export declare function isSerialType(dataType: string): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The data type a foreign key takes from its key: the integer a serial key
|
|
8
|
+
* stores, in capitals when the key's type is written in capitals, and any other
|
|
9
|
+
* type as it is, a bare serial kept where the database has none.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toReferenceDataType(dataType: string, database: number): string;
|
|
12
|
+
//# sourceMappingURL=referenceType.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Reducer } from '@dineug/r-html';
|
|
2
|
+
import { DDLScriptPosition } from '../../../constants/schema';
|
|
2
3
|
import { EngineContext } from '../../context';
|
|
3
4
|
import { RootState } from '../../state';
|
|
4
5
|
import { ValuesType } from '../../../internal-types';
|
|
@@ -16,10 +17,11 @@ export declare const ActionType: {
|
|
|
16
17
|
readonly changeColumnNameCase: "settings.changeColumnNameCase";
|
|
17
18
|
readonly changeBracketType: "settings.changeBracketType";
|
|
18
19
|
readonly changeRelationshipDataTypeSync: "settings.changeRelationshipDataTypeSync";
|
|
19
|
-
readonly changeRelationshipOptimization: "settings.changeRelationshipOptimization";
|
|
20
20
|
readonly changeColumnOrder: "settings.changeColumnOrder";
|
|
21
21
|
readonly changeMaxWidthComment: "settings.changeMaxWidthComment";
|
|
22
|
+
readonly changeLockSettings: "settings.changeLockSettings";
|
|
22
23
|
readonly changeIgnoreSaveSettings: "settings.changeIgnoreSaveSettings";
|
|
24
|
+
readonly changeDDLScript: "settings.changeDDLScript";
|
|
23
25
|
};
|
|
24
26
|
export type ActionType = ValuesType<typeof ActionType>;
|
|
25
27
|
export type ActionMap = {
|
|
@@ -65,9 +67,6 @@ export type ActionMap = {
|
|
|
65
67
|
[ActionType.changeRelationshipDataTypeSync]: {
|
|
66
68
|
value: boolean;
|
|
67
69
|
};
|
|
68
|
-
[ActionType.changeRelationshipOptimization]: {
|
|
69
|
-
value: boolean;
|
|
70
|
-
};
|
|
71
70
|
[ActionType.changeColumnOrder]: {
|
|
72
71
|
value: number;
|
|
73
72
|
target: number;
|
|
@@ -75,10 +74,24 @@ export type ActionMap = {
|
|
|
75
74
|
[ActionType.changeMaxWidthComment]: {
|
|
76
75
|
value: number;
|
|
77
76
|
};
|
|
77
|
+
[ActionType.changeLockSettings]: {
|
|
78
|
+
lockSettingType: number;
|
|
79
|
+
value: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The settings named as the sending store shows them: a lock holds them,
|
|
82
|
+
* and an unlock shows the code settings among them on every peer, so each
|
|
83
|
+
* saves one value. The viewport and the tab carry none to unlock.
|
|
84
|
+
*/
|
|
85
|
+
values: Partial<RootState['settings']['lockedValues']>;
|
|
86
|
+
};
|
|
78
87
|
[ActionType.changeIgnoreSaveSettings]: {
|
|
79
88
|
saveSettingType: number;
|
|
80
89
|
value: boolean;
|
|
81
90
|
};
|
|
91
|
+
[ActionType.changeDDLScript]: {
|
|
92
|
+
position: ValuesType<typeof DDLScriptPosition>;
|
|
93
|
+
value: string;
|
|
94
|
+
};
|
|
82
95
|
};
|
|
83
96
|
export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
|
|
84
97
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -118,6 +118,8 @@ export declare const changeDatabaseAction: {
|
|
|
118
118
|
toString(): string;
|
|
119
119
|
type: string;
|
|
120
120
|
};
|
|
121
|
+
/** The tab the reader stands on, which a canvas type lock taken on Settings holds. */
|
|
122
|
+
export declare function rememberCanvasType({ settings, editor }: RootState): void;
|
|
121
123
|
export declare const changeCanvasTypeAction: {
|
|
122
124
|
(payload: {
|
|
123
125
|
value: string;
|
|
@@ -172,15 +174,6 @@ export declare const changeRelationshipDataTypeSyncAction: {
|
|
|
172
174
|
toString(): string;
|
|
173
175
|
type: string;
|
|
174
176
|
};
|
|
175
|
-
export declare const changeRelationshipOptimizationAction: {
|
|
176
|
-
(payload: {
|
|
177
|
-
value: boolean;
|
|
178
|
-
}): import('@dineug/r-html').AnyAction<{
|
|
179
|
-
value: boolean;
|
|
180
|
-
}>;
|
|
181
|
-
toString(): string;
|
|
182
|
-
type: string;
|
|
183
|
-
};
|
|
184
177
|
export declare const changeColumnOrderAction: {
|
|
185
178
|
(payload: {
|
|
186
179
|
value: number;
|
|
@@ -201,6 +194,24 @@ export declare const changeMaxWidthCommentAction: {
|
|
|
201
194
|
toString(): string;
|
|
202
195
|
type: string;
|
|
203
196
|
};
|
|
197
|
+
export declare const changeLockSettingsAction: {
|
|
198
|
+
(payload: {
|
|
199
|
+
lockSettingType: number;
|
|
200
|
+
value: boolean;
|
|
201
|
+
values: Partial<RootState["settings"]["lockedValues"]>;
|
|
202
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
203
|
+
lockSettingType: number;
|
|
204
|
+
value: boolean;
|
|
205
|
+
values: Partial<RootState["settings"]["lockedValues"]>;
|
|
206
|
+
}>;
|
|
207
|
+
toString(): string;
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* The locks of the settings every peer shows one screen of, their setters
|
|
212
|
+
* never following-tagged, so an unlock of one carries the unlocker's value.
|
|
213
|
+
*/
|
|
214
|
+
export declare const CodeLockSettings: number;
|
|
204
215
|
export declare const changeIgnoreSaveSettingsAction: {
|
|
205
216
|
(payload: {
|
|
206
217
|
saveSettingType: number;
|
|
@@ -212,6 +223,23 @@ export declare const changeIgnoreSaveSettingsAction: {
|
|
|
212
223
|
toString(): string;
|
|
213
224
|
type: string;
|
|
214
225
|
};
|
|
226
|
+
export declare const changeDDLScriptAction: {
|
|
227
|
+
(payload: {
|
|
228
|
+
position: import('../../../internal-types').ValuesType<typeof import('../../../constants/schema').DDLScriptPosition>;
|
|
229
|
+
value: string;
|
|
230
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
231
|
+
position: import('../../../internal-types').ValuesType<typeof import('../../../constants/schema').DDLScriptPosition>;
|
|
232
|
+
value: string;
|
|
233
|
+
}>;
|
|
234
|
+
toString(): string;
|
|
235
|
+
type: string;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Lands the settings of a load that replaces the document: each lock through
|
|
239
|
+
* its register, a bit no lock owns taken from the load as show is, and each
|
|
240
|
+
* setting locked once it lands but the view keeping the screen.
|
|
241
|
+
*/
|
|
242
|
+
export declare function landLoadedSettings({ settings, lww }: RootState, loaded: RootState['settings'], version: number): void;
|
|
215
243
|
export declare const settingsReducers: {
|
|
216
244
|
"settings.changeDatabaseName": ReducerType<"settings.changeDatabaseName">;
|
|
217
245
|
"settings.changeZoomLevel": ReducerType<"settings.changeZoomLevel">;
|
|
@@ -226,10 +254,11 @@ export declare const settingsReducers: {
|
|
|
226
254
|
"settings.changeColumnNameCase": ReducerType<"settings.changeColumnNameCase">;
|
|
227
255
|
"settings.changeBracketType": ReducerType<"settings.changeBracketType">;
|
|
228
256
|
"settings.changeRelationshipDataTypeSync": ReducerType<"settings.changeRelationshipDataTypeSync">;
|
|
229
|
-
"settings.changeRelationshipOptimization": ReducerType<"settings.changeRelationshipOptimization">;
|
|
230
257
|
"settings.changeColumnOrder": ReducerType<"settings.changeColumnOrder">;
|
|
231
258
|
"settings.changeMaxWidthComment": ReducerType<"settings.changeMaxWidthComment">;
|
|
259
|
+
"settings.changeLockSettings": ReducerType<"settings.changeLockSettings">;
|
|
232
260
|
"settings.changeIgnoreSaveSettings": ReducerType<"settings.changeIgnoreSaveSettings">;
|
|
261
|
+
"settings.changeDDLScript": ReducerType<"settings.changeDDLScript">;
|
|
233
262
|
};
|
|
234
263
|
export declare const actions: {
|
|
235
264
|
changeDatabaseNameAction: {
|
|
@@ -355,15 +384,6 @@ export declare const actions: {
|
|
|
355
384
|
toString(): string;
|
|
356
385
|
type: string;
|
|
357
386
|
};
|
|
358
|
-
changeRelationshipOptimizationAction: {
|
|
359
|
-
(payload: {
|
|
360
|
-
value: boolean;
|
|
361
|
-
}): import('@dineug/r-html').AnyAction<{
|
|
362
|
-
value: boolean;
|
|
363
|
-
}>;
|
|
364
|
-
toString(): string;
|
|
365
|
-
type: string;
|
|
366
|
-
};
|
|
367
387
|
changeColumnOrderAction: {
|
|
368
388
|
(payload: {
|
|
369
389
|
value: number;
|
|
@@ -384,6 +404,19 @@ export declare const actions: {
|
|
|
384
404
|
toString(): string;
|
|
385
405
|
type: string;
|
|
386
406
|
};
|
|
407
|
+
changeLockSettingsAction: {
|
|
408
|
+
(payload: {
|
|
409
|
+
lockSettingType: number;
|
|
410
|
+
value: boolean;
|
|
411
|
+
values: Partial<RootState["settings"]["lockedValues"]>;
|
|
412
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
413
|
+
lockSettingType: number;
|
|
414
|
+
value: boolean;
|
|
415
|
+
values: Partial<RootState["settings"]["lockedValues"]>;
|
|
416
|
+
}>;
|
|
417
|
+
toString(): string;
|
|
418
|
+
type: string;
|
|
419
|
+
};
|
|
387
420
|
changeIgnoreSaveSettingsAction: {
|
|
388
421
|
(payload: {
|
|
389
422
|
saveSettingType: number;
|
|
@@ -395,5 +428,16 @@ export declare const actions: {
|
|
|
395
428
|
toString(): string;
|
|
396
429
|
type: string;
|
|
397
430
|
};
|
|
431
|
+
changeDDLScriptAction: {
|
|
432
|
+
(payload: {
|
|
433
|
+
position: import('../../../internal-types').ValuesType<typeof import('../../../constants/schema').DDLScriptPosition>;
|
|
434
|
+
value: string;
|
|
435
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
436
|
+
position: import('../../../internal-types').ValuesType<typeof import('../../../constants/schema').DDLScriptPosition>;
|
|
437
|
+
value: string;
|
|
438
|
+
}>;
|
|
439
|
+
toString(): string;
|
|
440
|
+
type: string;
|
|
441
|
+
};
|
|
398
442
|
};
|
|
399
443
|
//# sourceMappingURL=atom.actions.d.ts.map
|
|
@@ -18,8 +18,15 @@ export type PinchZoom = {
|
|
|
18
18
|
* pan as it travels. Streamed, so a whole pinch is one undo entry as a wheel is.
|
|
19
19
|
*/
|
|
20
20
|
export declare const pinchZoomAction$: ({ zoomLevel, screen, scene }: PinchZoom, source?: GeometrySource) => GeneratorAction;
|
|
21
|
+
/**
|
|
22
|
+
* Locks the settings named at what they hold now, or unlocks them carrying the
|
|
23
|
+
* code settings among them as they show here. A canvas type locked on the
|
|
24
|
+
* Settings tab holds the tab the reader came from.
|
|
25
|
+
*/
|
|
26
|
+
export declare const changeLockSettingsAction$: (lockSettingType: number, value: boolean) => GeneratorAction;
|
|
21
27
|
export declare const actions$: {
|
|
22
28
|
changeZoomLevelAction$: (value: number, source?: GeometrySource) => GeneratorAction;
|
|
23
29
|
streamZoomLevelAction$: (value: number, source?: GeometrySource) => GeneratorAction;
|
|
30
|
+
changeLockSettingsAction$: (lockSettingType: number, value: boolean) => GeneratorAction;
|
|
24
31
|
};
|
|
25
32
|
//# sourceMappingURL=generator.actions.d.ts.map
|
|
@@ -3,6 +3,7 @@ export declare const settingsPushUndoHistoryMap: {
|
|
|
3
3
|
"settings.scrollTo": PushUndoHistory;
|
|
4
4
|
"settings.changeShow": PushUndoHistory;
|
|
5
5
|
"settings.changeZoomLevel": PushUndoHistory;
|
|
6
|
+
"settings.changeDDLScript": PushUndoHistory;
|
|
6
7
|
};
|
|
7
8
|
export declare const settingsPushStreamHistoryMap: {
|
|
8
9
|
"settings.streamScrollTo": PushStreamHistory;
|
|
@@ -10,6 +10,7 @@ export declare const ActionType: {
|
|
|
10
10
|
readonly changeTableName: "table.changeName";
|
|
11
11
|
readonly changeTableComment: "table.changeComment";
|
|
12
12
|
readonly changeTableColor: "table.changeColor";
|
|
13
|
+
readonly changeTableGroup: "table.changeGroup";
|
|
13
14
|
readonly changeZIndex: "table.changeZIndex";
|
|
14
15
|
readonly sortTable: "table.sort";
|
|
15
16
|
};
|
|
@@ -44,6 +45,13 @@ export type ActionMap = {
|
|
|
44
45
|
color: string;
|
|
45
46
|
prevColor: string;
|
|
46
47
|
};
|
|
48
|
+
[ActionType.changeTableGroup]: ChangeTableValuePayload & {
|
|
49
|
+
/**
|
|
50
|
+
* The groupId the table held, sent by a drop alone: its undo is written as
|
|
51
|
+
* the drag it ends closes, after the reducer has run, so it cannot read it.
|
|
52
|
+
*/
|
|
53
|
+
prevValue?: string;
|
|
54
|
+
};
|
|
47
55
|
[ActionType.changeZIndex]: {
|
|
48
56
|
id: string;
|
|
49
57
|
zIndex: number;
|
|
@@ -90,6 +90,21 @@ export declare const changeTableColorAction: {
|
|
|
90
90
|
toString(): string;
|
|
91
91
|
type: string;
|
|
92
92
|
};
|
|
93
|
+
export declare const changeTableGroupAction: {
|
|
94
|
+
(payload: {
|
|
95
|
+
id: string;
|
|
96
|
+
value: string;
|
|
97
|
+
} & {
|
|
98
|
+
prevValue?: string;
|
|
99
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
100
|
+
id: string;
|
|
101
|
+
value: string;
|
|
102
|
+
} & {
|
|
103
|
+
prevValue?: string;
|
|
104
|
+
}>;
|
|
105
|
+
toString(): string;
|
|
106
|
+
type: string;
|
|
107
|
+
};
|
|
93
108
|
export declare const changeZIndexAction: {
|
|
94
109
|
(payload: {
|
|
95
110
|
id: string;
|
|
@@ -114,6 +129,7 @@ export declare const tableReducers: {
|
|
|
114
129
|
"table.changeName": ReducerType<"table.changeName">;
|
|
115
130
|
"table.changeComment": ReducerType<"table.changeComment">;
|
|
116
131
|
"table.changeColor": ReducerType<"table.changeColor">;
|
|
132
|
+
"table.changeGroup": ReducerType<"table.changeGroup">;
|
|
117
133
|
"table.changeZIndex": ReducerType<"table.changeZIndex">;
|
|
118
134
|
"table.sort": ReducerType<"table.sort">;
|
|
119
135
|
};
|
|
@@ -209,6 +225,21 @@ export declare const actions: {
|
|
|
209
225
|
toString(): string;
|
|
210
226
|
type: string;
|
|
211
227
|
};
|
|
228
|
+
changeTableGroupAction: {
|
|
229
|
+
(payload: {
|
|
230
|
+
id: string;
|
|
231
|
+
value: string;
|
|
232
|
+
} & {
|
|
233
|
+
prevValue?: string;
|
|
234
|
+
}): import('@dineug/r-html').AnyAction<{
|
|
235
|
+
id: string;
|
|
236
|
+
value: string;
|
|
237
|
+
} & {
|
|
238
|
+
prevValue?: string;
|
|
239
|
+
}>;
|
|
240
|
+
toString(): string;
|
|
241
|
+
type: string;
|
|
242
|
+
};
|
|
212
243
|
changeZIndexAction: {
|
|
213
244
|
(payload: {
|
|
214
245
|
id: string;
|
|
@@ -5,9 +5,9 @@ export declare const removeTableAction$: (id?: string) => GeneratorAction;
|
|
|
5
5
|
export declare const selectTableAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
6
6
|
export declare const pasteTableAction$: (columns: Column[]) => GeneratorAction;
|
|
7
7
|
/**
|
|
8
|
-
* Runs the engine's sort
|
|
9
|
-
* table
|
|
10
|
-
*
|
|
8
|
+
* Runs the engine's sort on copies of the live tables and groups, then places
|
|
9
|
+
* each table and each group with members where it found them. A replayed
|
|
10
|
+
* table.sort measures each replica's own text; placed points agree everywhere.
|
|
11
11
|
*/
|
|
12
12
|
export declare const sortTablesToMoveAction$: () => GeneratorAction;
|
|
13
13
|
export declare const actions$: {
|
|
@@ -4,6 +4,7 @@ export declare const tablePushUndoHistoryMap: {
|
|
|
4
4
|
"table.remove": PushUndoHistory;
|
|
5
5
|
"table.changeName": PushUndoHistory;
|
|
6
6
|
"table.changeComment": PushUndoHistory;
|
|
7
|
+
"table.changeGroup": PushUndoHistory;
|
|
7
8
|
"table.moveTo": PushUndoHistory;
|
|
8
9
|
"table.sort": PushUndoHistory;
|
|
9
10
|
};
|
|
@@ -8,6 +8,13 @@ export declare const removeColumnAction$: (tableId: string, columnIds: string[])
|
|
|
8
8
|
export declare const toggleColumnValueAction$: (focusType: FocusType, tableId: string, columnId: string) => GeneratorAction;
|
|
9
9
|
export declare const changeColumnDataTypeAction$: (payload: ChangeColumnValuePayload) => GeneratorAction;
|
|
10
10
|
export declare const changeColumnValueAction$: (focusType: FocusType, tableId: string, columnId: string, value: string) => GeneratorAction;
|
|
11
|
+
/**
|
|
12
|
+
* Makes every named column still in the table a primary key, or none once all
|
|
13
|
+
* are, and no other; it sends no relationship action, and none for a column
|
|
14
|
+
* already there, as its undo records the negation.
|
|
15
|
+
*/
|
|
16
|
+
export declare const changeColumnsPrimaryKeyAction$: (tableId: string, columnIds: string[]) => GeneratorAction;
|
|
17
|
+
/** Toggles one column's primary key, the rule above over a single column. */
|
|
11
18
|
export declare const changeColumnPrimaryKeyAction$: (tableId: string, columnId: string) => GeneratorAction;
|
|
12
19
|
export declare const actions$: {
|
|
13
20
|
addColumnAction$: (tableId?: string) => GeneratorAction;
|
|
@@ -16,5 +23,6 @@ export declare const actions$: {
|
|
|
16
23
|
changeColumnDataTypeAction$: (payload: ChangeColumnValuePayload) => GeneratorAction;
|
|
17
24
|
changeColumnValueAction$: (focusType: FocusType, tableId: string, columnId: string, value: string) => GeneratorAction;
|
|
18
25
|
changeColumnPrimaryKeyAction$: (tableId: string, columnId: string) => GeneratorAction;
|
|
26
|
+
changeColumnsPrimaryKeyAction$: (tableId: string, columnIds: string[]) => GeneratorAction;
|
|
19
27
|
};
|
|
20
28
|
//# sourceMappingURL=generator.actions.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import { Hook } from '../../hooks';
|
|
2
|
-
import { RootState } from '../../state';
|
|
3
|
-
/**
|
|
4
|
-
* Marks as a foreign key every column a relationship ends on, and only those,
|
|
5
|
-
* as a load leaves the marks to be read off the relationships again.
|
|
6
|
-
*/
|
|
7
|
-
export declare function validateForeignKeys({ doc, collections }: RootState): void;
|
|
8
2
|
export declare const hooks: Hook[];
|
|
9
3
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RootState } from '../../state';
|
|
2
|
+
/**
|
|
3
|
+
* Sets every column's primary key mark from its primary key option, the one
|
|
4
|
+
* place the editor changes both, so a file that saves no mark shows the key.
|
|
5
|
+
* The foreign key mark is left to validateForeignKeys.
|
|
6
|
+
*/
|
|
7
|
+
export declare function syncPrimaryKeys({ collections }: RootState): void;
|
|
8
|
+
/**
|
|
9
|
+
* Marks as a foreign key every column of a table in the document that a
|
|
10
|
+
* relationship in the document ends on in that table, and clears every other
|
|
11
|
+
* one, a removed column's too, so a file's bits never hang on arrival order.
|
|
12
|
+
*/
|
|
13
|
+
export declare function validateForeignKeys({ doc, collections }: RootState): void;
|
|
14
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import { ChangeColumnValuePayload } from '../actions';
|
|
2
2
|
import { RootState } from '../../../state';
|
|
3
|
-
|
|
3
|
+
type DataTypeSyncEnd = {
|
|
4
|
+
tableId: string;
|
|
5
|
+
columnIds: string[];
|
|
6
|
+
};
|
|
7
|
+
/** The two ends of a relationship, all the data type sync reads of one. */
|
|
8
|
+
export type DataTypeSyncRelationship = {
|
|
9
|
+
start: DataTypeSyncEnd;
|
|
10
|
+
end: DataTypeSyncEnd;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Drains the stack, listing each column its relationships reach once: a key
|
|
14
|
+
* sends its foreign keys toReferenceDataType of its value, a foreign key sends
|
|
15
|
+
* its key its value, unless the key is serial, which keeps it and stops there.
|
|
16
|
+
*
|
|
17
|
+
* @param relationships The relationships to follow, the document's by default;
|
|
18
|
+
* a caller about to change one hands the list as it will stand.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getDataTypeSyncColumns(stack: ChangeColumnValuePayload[], state: RootState, payloads?: ChangeColumnValuePayload[], relationships?: DataTypeSyncRelationship[]): ChangeColumnValuePayload[];
|
|
21
|
+
export {};
|
|
4
22
|
//# sourceMappingURL=dataType.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Reducer } from '@dineug/r-html';
|
|
2
|
+
import { EngineContext } from '../../context';
|
|
3
|
+
import { RootState } from '../../state';
|
|
4
|
+
import { ValuesType } from '../../../internal-types';
|
|
5
|
+
export declare const ActionType: {
|
|
6
|
+
readonly addTableGroup: "tableGroup.add";
|
|
7
|
+
readonly moveTableGroup: "tableGroup.move";
|
|
8
|
+
readonly moveToTableGroup: "tableGroup.moveTo";
|
|
9
|
+
readonly removeTableGroup: "tableGroup.remove";
|
|
10
|
+
readonly resizeTableGroup: "tableGroup.resize";
|
|
11
|
+
readonly changeTableGroupName: "tableGroup.changeName";
|
|
12
|
+
readonly changeTableGroupColor: "tableGroup.changeColor";
|
|
13
|
+
readonly changeTableGroupZIndex: "tableGroup.changeZIndex";
|
|
14
|
+
};
|
|
15
|
+
export type ActionType = ValuesType<typeof ActionType>;
|
|
16
|
+
export type ActionMap = {
|
|
17
|
+
[ActionType.addTableGroup]: {
|
|
18
|
+
id: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
ui: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
zIndex: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
[ActionType.moveTableGroup]: {
|
|
29
|
+
movementX: number;
|
|
30
|
+
movementY: number;
|
|
31
|
+
ids: string[];
|
|
32
|
+
};
|
|
33
|
+
[ActionType.moveToTableGroup]: {
|
|
34
|
+
id: string;
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
};
|
|
38
|
+
[ActionType.removeTableGroup]: {
|
|
39
|
+
id: string;
|
|
40
|
+
};
|
|
41
|
+
[ActionType.resizeTableGroup]: {
|
|
42
|
+
id: string;
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
};
|
|
48
|
+
[ActionType.changeTableGroupName]: {
|
|
49
|
+
id: string;
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
[ActionType.changeTableGroupColor]: {
|
|
53
|
+
id: string;
|
|
54
|
+
color: string;
|
|
55
|
+
prevColor: string;
|
|
56
|
+
};
|
|
57
|
+
[ActionType.changeTableGroupZIndex]: {
|
|
58
|
+
id: string;
|
|
59
|
+
zIndex: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
|
|
63
|
+
//# sourceMappingURL=actions.d.ts.map
|