@dineug/erd-editor 3.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/LICENSE +21 -0
- package/README.md +337 -0
- package/dist/components/appContext.d.ts +22 -0
- package/dist/components/customElementRegistry.d.ts +1 -0
- package/dist/components/erd/Erd.d.ts +6 -0
- package/dist/components/erd/Erd.styles.d.ts +1 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +14 -0
- package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.styles.d.ts +2 -0
- package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +11 -0
- package/dist/components/erd/canvas/Canvas.d.ts +7 -0
- package/dist/components/erd/canvas/Canvas.styles.d.ts +1 -0
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +7 -0
- package/dist/components/erd/canvas/canvas-svg/CanvasSvg.styles.d.ts +1 -0
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +8 -0
- package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +3 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +8 -0
- package/dist/components/erd/canvas/draw-relationship/DrawRelationship.styles.d.ts +1 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +7 -0
- package/dist/components/erd/canvas/high-level-table/HighLevelTable.styles.d.ts +1 -0
- package/dist/components/erd/canvas/memo/Memo.d.ts +7 -0
- package/dist/components/erd/canvas/memo/Memo.styles.d.ts +6 -0
- package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +9 -0
- package/dist/components/erd/canvas/table/Table.d.ts +7 -0
- package/dist/components/erd/canvas/table/Table.styles.d.ts +5 -0
- package/dist/components/erd/canvas/table/column/Column.d.ts +29 -0
- package/dist/components/erd/canvas/table/column/Column.styles.d.ts +2 -0
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +16 -0
- package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.styles.d.ts +3 -0
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.d.ts +6 -0
- package/dist/components/erd/canvas/table/column/column-key/ColumnKey.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.d.ts +7 -0
- package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.d.ts +11 -0
- package/dist/components/erd/canvas/table/column/column-option/ColumnOption.styles.d.ts +1 -0
- package/dist/components/erd/canvas/table/useFocusTable.d.ts +7 -0
- package/dist/components/erd/canvas/table/useMoveTable.d.ts +6 -0
- package/dist/components/erd/drag-select/DragSelect.d.ts +9 -0
- package/dist/components/erd/drag-select/DragSelect.styles.d.ts +1 -0
- package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +17 -0
- package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +12 -0
- package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +16 -0
- package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +9 -0
- package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +9 -0
- package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +7 -0
- package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +6 -0
- package/dist/components/erd/erdShortcutPerformCheck.d.ts +3 -0
- package/dist/components/erd/hide-sign/HideSign.d.ts +6 -0
- package/dist/components/erd/hide-sign/HideSign.styles.d.ts +1 -0
- package/dist/components/erd/minimap/Minimap.d.ts +4 -0
- package/dist/components/erd/minimap/Minimap.styles.d.ts +3 -0
- package/dist/components/erd/minimap/memo/Memo.d.ts +7 -0
- package/dist/components/erd/minimap/table/Table.d.ts +7 -0
- package/dist/components/erd/minimap/useMinimapScroll.d.ts +7 -0
- package/dist/components/erd/minimap/viewport/Viewport.d.ts +6 -0
- package/dist/components/erd/minimap/viewport/Viewport.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/TableProperties.d.ts +9 -0
- package/dist/components/erd/table-properties/TableProperties.styles.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +6 -0
- package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +8 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.styles.d.ts +1 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +7 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.styles.d.ts +3 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +9 -0
- package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.styles.d.ts +4 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +14 -0
- package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.styles.d.ts +2 -0
- package/dist/components/erd/useErdShortcut.d.ts +2 -0
- package/dist/components/erd-editor/ErdEditor.d.ts +26 -0
- package/dist/components/erd-editor/ErdEditor.stories.d.ts +18 -0
- package/dist/components/erd-editor/ErdEditor.styles.d.ts +2 -0
- package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +21 -0
- package/dist/components/generator-code/GeneratorCode.d.ts +7 -0
- package/dist/components/generator-code/GeneratorCode.styles.d.ts +1 -0
- package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +6 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +12 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +12 -0
- package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +12 -0
- package/dist/components/global-styles/GlobalStyles.d.ts +4 -0
- package/dist/components/primitives/button/Button.d.ts +9 -0
- package/dist/components/primitives/button/Button.stories.d.ts +26 -0
- package/dist/components/primitives/button/Button.styles.d.ts +6 -0
- package/dist/components/primitives/code-block/CodeBlock.d.ts +10 -0
- package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +25 -0
- package/dist/components/primitives/code-block/CodeBlock.styles.d.ts +3 -0
- package/dist/components/primitives/color-picker/ColorPicker.d.ts +12 -0
- package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +26 -0
- package/dist/components/primitives/color-picker/ColorPicker.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/ContextMenu.d.ts +10 -0
- package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +16 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +9 -0
- package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +8 -0
- package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.styles.d.ts +1 -0
- package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +6 -0
- package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +22 -0
- package/dist/components/primitives/context-menu/menu/Menu.d.ts +8 -0
- package/dist/components/primitives/context-menu/menu/Menu.styles.d.ts +3 -0
- package/dist/components/primitives/edit-input/EditInput.d.ts +16 -0
- package/dist/components/primitives/edit-input/EditInput.stories.d.ts +36 -0
- package/dist/components/primitives/edit-input/EditInput.styles.d.ts +4 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +8 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +23 -0
- package/dist/components/primitives/highlighted-text/HighlightedText.styles.d.ts +1 -0
- package/dist/components/primitives/icon/Icon.d.ts +14 -0
- package/dist/components/primitives/icon/Icon.stories.d.ts +8 -0
- package/dist/components/primitives/icon/Icon.styles.d.ts +2 -0
- package/dist/components/primitives/icon/icons.d.ts +29 -0
- package/dist/components/primitives/kbd/Kbd.d.ts +7 -0
- package/dist/components/primitives/kbd/Kbd.stories.d.ts +17 -0
- package/dist/components/primitives/kbd/Kbd.styles.d.ts +3 -0
- package/dist/components/primitives/sash/Sash.d.ts +27 -0
- package/dist/components/primitives/sash/Sash.stories.d.ts +30 -0
- package/dist/components/primitives/sash/Sash.styles.d.ts +2 -0
- package/dist/components/primitives/separator/Separator.d.ts +7 -0
- package/dist/components/primitives/separator/Separator.stories.d.ts +25 -0
- package/dist/components/primitives/separator/Separator.styles.d.ts +2 -0
- package/dist/components/primitives/switch/Switch.d.ts +8 -0
- package/dist/components/primitives/switch/Switch.stories.d.ts +21 -0
- package/dist/components/primitives/switch/Switch.styles.d.ts +5 -0
- package/dist/components/primitives/text-input/TextInput.d.ts +19 -0
- package/dist/components/primitives/text-input/TextInput.stories.d.ts +41 -0
- package/dist/components/primitives/toast/Toast.d.ts +8 -0
- package/dist/components/primitives/toast/Toast.stories.d.ts +20 -0
- package/dist/components/primitives/toast/Toast.styles.d.ts +5 -0
- package/dist/components/quick-search/QuickSearch.d.ts +4 -0
- package/dist/components/quick-search/QuickSearch.styles.d.ts +10 -0
- package/dist/components/quick-search/actions.d.ts +14 -0
- package/dist/components/schema-sql/SchemaSQL.d.ts +7 -0
- package/dist/components/schema-sql/SchemaSQL.styles.d.ts +1 -0
- package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +6 -0
- package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +12 -0
- package/dist/components/settings/Settings.d.ts +4 -0
- package/dist/components/settings/Settings.styles.d.ts +10 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +13 -0
- package/dist/components/settings/settings-lnb/SettingsLnb.styles.d.ts +3 -0
- package/dist/components/settings/shortcuts/Shortcuts.d.ts +4 -0
- package/dist/components/settings/shortcuts/Shortcuts.styles.d.ts +2 -0
- package/dist/components/theme/Theme.d.ts +7 -0
- package/dist/components/theme-builder/ThemeBuilder.d.ts +7 -0
- package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +8 -0
- package/dist/components/toast-container/ToastContainer.d.ts +4 -0
- package/dist/components/toast-container/ToastContainer.styles.d.ts +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +6 -0
- package/dist/components/toolbar/Toolbar.styles.d.ts +3 -0
- package/dist/components/visualization/Visualization.d.ts +4 -0
- package/dist/components/visualization/Visualization.styles.d.ts +1 -0
- package/dist/components/visualization/createVisualization.d.ts +9 -0
- package/dist/components/visualization/table/Table.d.ts +10 -0
- package/dist/components/visualization/table/Table.styles.d.ts +1 -0
- package/dist/components/visualization/table/column/Column.d.ts +12 -0
- package/dist/components/visualization/table/column/Column.styles.d.ts +1 -0
- package/dist/constants/language.d.ts +1 -0
- package/dist/constants/layout.d.ts +32 -0
- package/dist/constants/open.d.ts +8 -0
- package/dist/constants/schema.d.ts +102 -0
- package/dist/constants/sql/dataType/MSSQL.d.ts +5 -0
- package/dist/constants/sql/dataType/MariaDB.d.ts +5 -0
- package/dist/constants/sql/dataType/MySQL.d.ts +5 -0
- package/dist/constants/sql/dataType/Oracle.d.ts +5 -0
- package/dist/constants/sql/dataType/PostgreSQL.d.ts +5 -0
- package/dist/constants/sql/dataType/SQLite.d.ts +5 -0
- package/dist/constants/sql/dataType/index.d.ts +25 -0
- package/dist/constants/sql/database.d.ts +12 -0
- package/dist/engine/actions.d.ts +35 -0
- package/dist/engine/context.d.ts +5 -0
- package/dist/engine/generator.actions.d.ts +4 -0
- package/dist/engine/history.actions.d.ts +9 -0
- package/dist/engine/history.d.ts +20 -0
- package/dist/engine/hooks.d.ts +8 -0
- package/dist/engine/modules/editor/actions.d.ts +93 -0
- package/dist/engine/modules/editor/atom.actions.d.ts +406 -0
- package/dist/engine/modules/editor/generator.actions.d.ts +31 -0
- package/dist/engine/modules/editor/history.d.ts +5 -0
- package/dist/engine/modules/editor/state.d.ts +63 -0
- package/dist/engine/modules/editor/utils/focus.d.ts +15 -0
- package/dist/engine/modules/editor/utils/selectRangeColumn.d.ts +3 -0
- package/dist/engine/modules/index/actions.d.ts +31 -0
- package/dist/engine/modules/index/atom.actions.d.ts +101 -0
- package/dist/engine/modules/index/generator.actions.d.ts +7 -0
- package/dist/engine/modules/index/history.d.ts +7 -0
- package/dist/engine/modules/index-column/actions.d.ts +37 -0
- package/dist/engine/modules/index-column/atom.actions.d.ts +125 -0
- package/dist/engine/modules/index-column/generator.actions.d.ts +11 -0
- package/dist/engine/modules/index-column/history.d.ts +7 -0
- package/dist/engine/modules/memo/actions.d.ts +59 -0
- package/dist/engine/modules/memo/atom.actions.d.ts +225 -0
- package/dist/engine/modules/memo/generator.actions.d.ts +9 -0
- package/dist/engine/modules/memo/history.d.ts +12 -0
- package/dist/engine/modules/relationship/actions.d.ts +31 -0
- package/dist/engine/modules/relationship/atom.actions.d.ts +102 -0
- package/dist/engine/modules/relationship/generator.actions.d.ts +1 -0
- package/dist/engine/modules/relationship/history.d.ts +6 -0
- package/dist/engine/modules/relationship/hooks.d.ts +2 -0
- package/dist/engine/modules/settings/actions.d.ts +83 -0
- package/dist/engine/modules/settings/atom.actions.d.ts +348 -0
- package/dist/engine/modules/settings/generator.actions.d.ts +7 -0
- package/dist/engine/modules/settings/history.d.ts +11 -0
- package/dist/engine/modules/table/actions.d.ts +57 -0
- package/dist/engine/modules/table/atom.actions.d.ts +224 -0
- package/dist/engine/modules/table/generator.actions.d.ts +12 -0
- package/dist/engine/modules/table/history.d.ts +13 -0
- package/dist/engine/modules/table/hooks.d.ts +2 -0
- package/dist/engine/modules/table-column/actions.d.ts +53 -0
- package/dist/engine/modules/table-column/atom.actions.d.ts +230 -0
- package/dist/engine/modules/table-column/generator.actions.d.ts +19 -0
- package/dist/engine/modules/table-column/history.d.ts +14 -0
- package/dist/engine/modules/table-column/hooks.d.ts +2 -0
- package/dist/engine/modules/table-column/utils/dataType.d.ts +3 -0
- package/dist/engine/rx-operators/actionsFilter.d.ts +3 -0
- package/dist/engine/rx-operators/groupByStreamActions.d.ts +5 -0
- package/dist/engine/rx-operators/ignoreTagFilter.d.ts +3 -0
- package/dist/engine/rx-operators/index.d.ts +4 -0
- package/dist/engine/rx-operators/notEmptyActions.d.ts +2 -0
- package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +3 -0
- package/dist/engine/rx-store.d.ts +10 -0
- package/dist/engine/state.d.ts +5 -0
- package/dist/engine/store.d.ts +5 -0
- package/dist/engine/store.hooks.d.ts +4 -0
- package/dist/engine/tag.d.ts +7 -0
- package/dist/erd-editor.js +42402 -0
- package/dist/hooks/useDarkMode.d.ts +5 -0
- package/dist/hooks/useFlipAnimation.d.ts +2 -0
- package/dist/hooks/useKeyBindingMap.d.ts +3 -0
- package/dist/hooks/useUnmounted.d.ts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.dev.d.ts +1 -0
- package/dist/internal-types/index.d.ts +40 -0
- package/dist/services/schema-gc/index.d.ts +10 -0
- package/dist/services/schema-gc/procGC.d.ts +3 -0
- package/dist/services/schema-gc/schemaGCService.d.ts +4 -0
- package/dist/services/shikiService.d.ts +8 -0
- package/dist/styles/colorPicker.style.d.ts +1 -0
- package/dist/styles/fonts.styles.d.ts +3 -0
- package/dist/styles/reset.styles.d.ts +1 -0
- package/dist/styles/scrollbar.styles.d.ts +1 -0
- package/dist/styles/typography.styles.d.ts +14 -0
- package/dist/themes/radix-ui-theme.config.d.ts +2 -0
- package/dist/themes/radix-ui-theme.d.ts +1792 -0
- package/dist/themes/textColor.d.ts +2 -0
- package/dist/themes/tokens.d.ts +63 -0
- package/dist/utils/attribute.d.ts +1 -0
- package/dist/utils/bit.d.ts +1 -0
- package/dist/utils/calcMemo.d.ts +3 -0
- package/dist/utils/calcTable.d.ts +16 -0
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/collection/index.entity.d.ts +2 -0
- package/dist/utils/collection/indexColumn.entity.d.ts +2 -0
- package/dist/utils/collection/memo.entity.d.ts +2 -0
- package/dist/utils/collection/relationship.entity.d.ts +2 -0
- package/dist/utils/collection/sequence.d.ts +1 -0
- package/dist/utils/collection/table.entity.d.ts +2 -0
- package/dist/utils/collection/tableColumn.entity.d.ts +2 -0
- package/dist/utils/device-detect/index.d.ts +7 -0
- package/dist/utils/domEvent.d.ts +6 -0
- package/dist/utils/dragSelect.d.ts +23 -0
- package/dist/utils/draw-relationship/calc.d.ts +6 -0
- package/dist/utils/draw-relationship/draw.d.ts +4 -0
- package/dist/utils/draw-relationship/index.d.ts +108 -0
- package/dist/utils/draw-relationship/pathFinding.d.ts +3 -0
- package/dist/utils/draw-relationship/sort.d.ts +2 -0
- package/dist/utils/emitter.d.ts +141 -0
- package/dist/utils/file/exportFile.d.ts +9 -0
- package/dist/utils/file/importFile.d.ts +10 -0
- package/dist/utils/flipAnimation.d.ts +10 -0
- package/dist/utils/focus.d.ts +5 -0
- package/dist/utils/generator-code/csharp.d.ts +4 -0
- package/dist/utils/generator-code/graphql.d.ts +4 -0
- package/dist/utils/generator-code/index.d.ts +4 -0
- package/dist/utils/generator-code/java.d.ts +4 -0
- package/dist/utils/generator-code/jpa.d.ts +4 -0
- package/dist/utils/generator-code/kotlin.d.ts +4 -0
- package/dist/utils/generator-code/scala.d.ts +4 -0
- package/dist/utils/generator-code/typescript.d.ts +4 -0
- package/dist/utils/generator-code/utils.d.ts +19 -0
- package/dist/utils/globalEmitter.d.ts +28 -0
- package/dist/utils/globalEventObservable.d.ts +41 -0
- package/dist/utils/icon.d.ts +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/internalEvents.d.ts +38 -0
- package/dist/utils/keyboard-shortcut/index.d.ts +36 -0
- package/dist/utils/keyboard-shortcut/utils.d.ts +2 -0
- package/dist/utils/promise.d.ts +1 -0
- package/dist/utils/rx-operators/fromCopy.d.ts +3 -0
- package/dist/utils/rx-operators/fromDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/fromPaste.d.ts +3 -0
- package/dist/utils/rx-operators/fromShadowDraggable.d.ts +1 -0
- package/dist/utils/rx-operators/takeUnsubscribe.d.ts +2 -0
- package/dist/utils/schema-sql/MSSQL.d.ts +5 -0
- package/dist/utils/schema-sql/MariaDB.d.ts +5 -0
- package/dist/utils/schema-sql/MySQL.d.ts +5 -0
- package/dist/utils/schema-sql/Oracle.d.ts +5 -0
- package/dist/utils/schema-sql/PostgreSQL.d.ts +5 -0
- package/dist/utils/schema-sql/SQLite.d.ts +5 -0
- package/dist/utils/schema-sql/index.d.ts +4 -0
- package/dist/utils/schema-sql/utils.d.ts +53 -0
- package/dist/utils/schema-sql-parser/index.d.ts +3 -0
- package/dist/utils/schema-sql-parser/utils.d.ts +3 -0
- package/dist/utils/table-clipboard/copy.d.ts +3 -0
- package/dist/utils/table-clipboard/index.d.ts +15 -0
- package/dist/utils/table-clipboard/paste.d.ts +4 -0
- package/dist/utils/text.d.ts +4 -0
- package/dist/utils/validation.d.ts +16 -0
- package/dist/workers/schemaGC.shared-worker.d.ts +1 -0
- package/dist/workers/schemaGC.worker.d.ts +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { ReducerType } from './actions';
|
|
2
|
+
import { FocusType, SelectType } from './state';
|
|
3
|
+
export declare const changeHasHistoryAction: {
|
|
4
|
+
(payload: {
|
|
5
|
+
hasUndo: boolean;
|
|
6
|
+
hasRedo: boolean;
|
|
7
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
8
|
+
hasUndo: boolean;
|
|
9
|
+
hasRedo: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
toString(): string;
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const selectAllAction: {
|
|
15
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
16
|
+
toString(): string;
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const unselectAllAction: {
|
|
20
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
21
|
+
toString(): string;
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const selectAction: {
|
|
25
|
+
(payload: Record<string, SelectType>): import("@dineug/r-html").AnyAction<Record<string, SelectType>>;
|
|
26
|
+
toString(): string;
|
|
27
|
+
type: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const changeViewportAction: {
|
|
30
|
+
(payload: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
}>;
|
|
37
|
+
toString(): string;
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const clearAction: {
|
|
41
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
42
|
+
toString(): string;
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const loadJsonAction: {
|
|
46
|
+
(payload: {
|
|
47
|
+
value: string;
|
|
48
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
49
|
+
value: string;
|
|
50
|
+
}>;
|
|
51
|
+
toString(): string;
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const initialClearAction: {
|
|
55
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
56
|
+
toString(): string;
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
export declare const initialLoadJsonAction: {
|
|
60
|
+
(payload: {
|
|
61
|
+
value: string;
|
|
62
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
63
|
+
value: string;
|
|
64
|
+
}>;
|
|
65
|
+
toString(): string;
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
export declare const focusTableAction: {
|
|
69
|
+
(payload: {
|
|
70
|
+
tableId: string;
|
|
71
|
+
focusType?: FocusType | undefined;
|
|
72
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
73
|
+
tableId: string;
|
|
74
|
+
focusType?: FocusType | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
toString(): string;
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const focusColumnAction: {
|
|
80
|
+
(payload: {
|
|
81
|
+
tableId: string;
|
|
82
|
+
columnId: string;
|
|
83
|
+
focusType: FocusType;
|
|
84
|
+
$mod: boolean;
|
|
85
|
+
shiftKey: boolean;
|
|
86
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
87
|
+
tableId: string;
|
|
88
|
+
columnId: string;
|
|
89
|
+
focusType: FocusType;
|
|
90
|
+
$mod: boolean;
|
|
91
|
+
shiftKey: boolean;
|
|
92
|
+
}>;
|
|
93
|
+
toString(): string;
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
export declare const focusTableEndAction: {
|
|
97
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
98
|
+
toString(): string;
|
|
99
|
+
type: string;
|
|
100
|
+
};
|
|
101
|
+
export declare const focusMoveTableAction: {
|
|
102
|
+
(payload: {
|
|
103
|
+
moveKey: string;
|
|
104
|
+
shiftKey: boolean;
|
|
105
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
106
|
+
moveKey: string;
|
|
107
|
+
shiftKey: boolean;
|
|
108
|
+
}>;
|
|
109
|
+
toString(): string;
|
|
110
|
+
type: string;
|
|
111
|
+
};
|
|
112
|
+
export declare const editTableAction: {
|
|
113
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
114
|
+
toString(): string;
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
export declare const editTableEndAction: {
|
|
118
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
119
|
+
toString(): string;
|
|
120
|
+
type: string;
|
|
121
|
+
};
|
|
122
|
+
export declare const selectAllColumnAction: {
|
|
123
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
124
|
+
toString(): string;
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
export declare const drawStartRelationshipAction: {
|
|
128
|
+
(payload: {
|
|
129
|
+
relationshipType: number;
|
|
130
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
131
|
+
relationshipType: number;
|
|
132
|
+
}>;
|
|
133
|
+
toString(): string;
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
export declare const drawStartAddRelationshipAction: {
|
|
137
|
+
(payload: {
|
|
138
|
+
tableId: string;
|
|
139
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
140
|
+
tableId: string;
|
|
141
|
+
}>;
|
|
142
|
+
toString(): string;
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
export declare const drawEndRelationshipAction: {
|
|
146
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
147
|
+
toString(): string;
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
export declare const drawRelationshipAction: {
|
|
151
|
+
(payload: {
|
|
152
|
+
x: number;
|
|
153
|
+
y: number;
|
|
154
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
155
|
+
x: number;
|
|
156
|
+
y: number;
|
|
157
|
+
}>;
|
|
158
|
+
toString(): string;
|
|
159
|
+
type: string;
|
|
160
|
+
};
|
|
161
|
+
export declare const hoverColumnMapAction: {
|
|
162
|
+
(payload: {
|
|
163
|
+
columnIds: string[];
|
|
164
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
165
|
+
columnIds: string[];
|
|
166
|
+
}>;
|
|
167
|
+
toString(): string;
|
|
168
|
+
type: string;
|
|
169
|
+
};
|
|
170
|
+
export declare const changeOpenMapAction: {
|
|
171
|
+
(payload: Record<string, boolean>): import("@dineug/r-html").AnyAction<Record<string, boolean>>;
|
|
172
|
+
toString(): string;
|
|
173
|
+
type: string;
|
|
174
|
+
};
|
|
175
|
+
export declare const dragstartColumnAction: {
|
|
176
|
+
(payload: {
|
|
177
|
+
tableId: string;
|
|
178
|
+
columnIds: string[];
|
|
179
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
180
|
+
tableId: string;
|
|
181
|
+
columnIds: string[];
|
|
182
|
+
}>;
|
|
183
|
+
toString(): string;
|
|
184
|
+
type: string;
|
|
185
|
+
};
|
|
186
|
+
export declare const dragendColumnAction: {
|
|
187
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
188
|
+
toString(): string;
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
export declare const editorReducers: {
|
|
192
|
+
"editor.changeHasHistory": ReducerType<"editor.changeHasHistory">;
|
|
193
|
+
"editor.selectAll": ReducerType<"editor.selectAll">;
|
|
194
|
+
"editor.unselectAll": ReducerType<"editor.unselectAll">;
|
|
195
|
+
"editor.select": ReducerType<"editor.select">;
|
|
196
|
+
"editor.changeViewport": ReducerType<"editor.changeViewport">;
|
|
197
|
+
"editor.clear": ReducerType<"editor.clear">;
|
|
198
|
+
"editor.loadJson": ReducerType<"editor.loadJson">;
|
|
199
|
+
"editor.initialClear": ReducerType<"editor.initialClear">;
|
|
200
|
+
"editor.initialLoadJson": ReducerType<"editor.initialLoadJson">;
|
|
201
|
+
"editor.focusTable": ReducerType<"editor.focusTable">;
|
|
202
|
+
"editor.focusColumn": ReducerType<"editor.focusColumn">;
|
|
203
|
+
"editor.focusTableEnd": ReducerType<"editor.focusTableEnd">;
|
|
204
|
+
"editor.focusMoveTable": ReducerType<"editor.focusMoveTable">;
|
|
205
|
+
"editor.editTable": ReducerType<"editor.editTable">;
|
|
206
|
+
"editor.editTableEnd": ReducerType<"editor.editTableEnd">;
|
|
207
|
+
"editor.selectAllColumn": ReducerType<"editor.selectAllColumn">;
|
|
208
|
+
"editor.drawStartRelationship": ReducerType<"editor.drawStartRelationship">;
|
|
209
|
+
"editor.drawStartAddRelationship": ReducerType<"editor.drawStartAddRelationship">;
|
|
210
|
+
"editor.drawEndRelationship": ReducerType<"editor.drawEndRelationship">;
|
|
211
|
+
"editor.drawRelationship": ReducerType<"editor.drawRelationship">;
|
|
212
|
+
"editor.hoverColumnMap": ReducerType<"editor.hoverColumnMap">;
|
|
213
|
+
"editor.changeOpenMap": ReducerType<"editor.changeOpenMap">;
|
|
214
|
+
"editor.dragstartColumn": ReducerType<"editor.dragstartColumn">;
|
|
215
|
+
"editor.dragendColumn": ReducerType<"editor.dragendColumn">;
|
|
216
|
+
};
|
|
217
|
+
export declare const actions: {
|
|
218
|
+
changeHasHistoryAction: {
|
|
219
|
+
(payload: {
|
|
220
|
+
hasUndo: boolean;
|
|
221
|
+
hasRedo: boolean;
|
|
222
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
223
|
+
hasUndo: boolean;
|
|
224
|
+
hasRedo: boolean;
|
|
225
|
+
}>;
|
|
226
|
+
toString(): string;
|
|
227
|
+
type: string;
|
|
228
|
+
};
|
|
229
|
+
selectAllAction: {
|
|
230
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
231
|
+
toString(): string;
|
|
232
|
+
type: string;
|
|
233
|
+
};
|
|
234
|
+
unselectAllAction: {
|
|
235
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
236
|
+
toString(): string;
|
|
237
|
+
type: string;
|
|
238
|
+
};
|
|
239
|
+
selectAction: {
|
|
240
|
+
(payload: Record<string, SelectType>): import("@dineug/r-html").AnyAction<Record<string, SelectType>>;
|
|
241
|
+
toString(): string;
|
|
242
|
+
type: string;
|
|
243
|
+
};
|
|
244
|
+
changeViewportAction: {
|
|
245
|
+
(payload: {
|
|
246
|
+
width: number;
|
|
247
|
+
height: number;
|
|
248
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
249
|
+
width: number;
|
|
250
|
+
height: number;
|
|
251
|
+
}>;
|
|
252
|
+
toString(): string;
|
|
253
|
+
type: string;
|
|
254
|
+
};
|
|
255
|
+
clearAction: {
|
|
256
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
257
|
+
toString(): string;
|
|
258
|
+
type: string;
|
|
259
|
+
};
|
|
260
|
+
loadJsonAction: {
|
|
261
|
+
(payload: {
|
|
262
|
+
value: string;
|
|
263
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
264
|
+
value: string;
|
|
265
|
+
}>;
|
|
266
|
+
toString(): string;
|
|
267
|
+
type: string;
|
|
268
|
+
};
|
|
269
|
+
initialClearAction: {
|
|
270
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
271
|
+
toString(): string;
|
|
272
|
+
type: string;
|
|
273
|
+
};
|
|
274
|
+
initialLoadJsonAction: {
|
|
275
|
+
(payload: {
|
|
276
|
+
value: string;
|
|
277
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
278
|
+
value: string;
|
|
279
|
+
}>;
|
|
280
|
+
toString(): string;
|
|
281
|
+
type: string;
|
|
282
|
+
};
|
|
283
|
+
focusTableAction: {
|
|
284
|
+
(payload: {
|
|
285
|
+
tableId: string;
|
|
286
|
+
focusType?: FocusType | undefined;
|
|
287
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
288
|
+
tableId: string;
|
|
289
|
+
focusType?: FocusType | undefined;
|
|
290
|
+
}>;
|
|
291
|
+
toString(): string;
|
|
292
|
+
type: string;
|
|
293
|
+
};
|
|
294
|
+
focusColumnAction: {
|
|
295
|
+
(payload: {
|
|
296
|
+
tableId: string;
|
|
297
|
+
columnId: string;
|
|
298
|
+
focusType: FocusType;
|
|
299
|
+
$mod: boolean;
|
|
300
|
+
shiftKey: boolean;
|
|
301
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
302
|
+
tableId: string;
|
|
303
|
+
columnId: string;
|
|
304
|
+
focusType: FocusType;
|
|
305
|
+
$mod: boolean;
|
|
306
|
+
shiftKey: boolean;
|
|
307
|
+
}>;
|
|
308
|
+
toString(): string;
|
|
309
|
+
type: string;
|
|
310
|
+
};
|
|
311
|
+
focusTableEndAction: {
|
|
312
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
313
|
+
toString(): string;
|
|
314
|
+
type: string;
|
|
315
|
+
};
|
|
316
|
+
focusMoveTableAction: {
|
|
317
|
+
(payload: {
|
|
318
|
+
moveKey: string;
|
|
319
|
+
shiftKey: boolean;
|
|
320
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
321
|
+
moveKey: string;
|
|
322
|
+
shiftKey: boolean;
|
|
323
|
+
}>;
|
|
324
|
+
toString(): string;
|
|
325
|
+
type: string;
|
|
326
|
+
};
|
|
327
|
+
editTableAction: {
|
|
328
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
329
|
+
toString(): string;
|
|
330
|
+
type: string;
|
|
331
|
+
};
|
|
332
|
+
editTableEndAction: {
|
|
333
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
334
|
+
toString(): string;
|
|
335
|
+
type: string;
|
|
336
|
+
};
|
|
337
|
+
selectAllColumnAction: {
|
|
338
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
339
|
+
toString(): string;
|
|
340
|
+
type: string;
|
|
341
|
+
};
|
|
342
|
+
drawStartRelationshipAction: {
|
|
343
|
+
(payload: {
|
|
344
|
+
relationshipType: number;
|
|
345
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
346
|
+
relationshipType: number;
|
|
347
|
+
}>;
|
|
348
|
+
toString(): string;
|
|
349
|
+
type: string;
|
|
350
|
+
};
|
|
351
|
+
drawStartAddRelationshipAction: {
|
|
352
|
+
(payload: {
|
|
353
|
+
tableId: string;
|
|
354
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
355
|
+
tableId: string;
|
|
356
|
+
}>;
|
|
357
|
+
toString(): string;
|
|
358
|
+
type: string;
|
|
359
|
+
};
|
|
360
|
+
drawEndRelationshipAction: {
|
|
361
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
362
|
+
toString(): string;
|
|
363
|
+
type: string;
|
|
364
|
+
};
|
|
365
|
+
drawRelationshipAction: {
|
|
366
|
+
(payload: {
|
|
367
|
+
x: number;
|
|
368
|
+
y: number;
|
|
369
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
370
|
+
x: number;
|
|
371
|
+
y: number;
|
|
372
|
+
}>;
|
|
373
|
+
toString(): string;
|
|
374
|
+
type: string;
|
|
375
|
+
};
|
|
376
|
+
hoverColumnMapAction: {
|
|
377
|
+
(payload: {
|
|
378
|
+
columnIds: string[];
|
|
379
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
380
|
+
columnIds: string[];
|
|
381
|
+
}>;
|
|
382
|
+
toString(): string;
|
|
383
|
+
type: string;
|
|
384
|
+
};
|
|
385
|
+
changeOpenMapAction: {
|
|
386
|
+
(payload: Record<string, boolean>): import("@dineug/r-html").AnyAction<Record<string, boolean>>;
|
|
387
|
+
toString(): string;
|
|
388
|
+
type: string;
|
|
389
|
+
};
|
|
390
|
+
dragstartColumnAction: {
|
|
391
|
+
(payload: {
|
|
392
|
+
tableId: string;
|
|
393
|
+
columnIds: string[];
|
|
394
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
395
|
+
tableId: string;
|
|
396
|
+
columnIds: string[];
|
|
397
|
+
}>;
|
|
398
|
+
toString(): string;
|
|
399
|
+
type: string;
|
|
400
|
+
};
|
|
401
|
+
dragendColumnAction: {
|
|
402
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
403
|
+
toString(): string;
|
|
404
|
+
type: string;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { GeneratorAction } from "../../generator.actions";
|
|
2
|
+
import { Rect } from "../../../utils/dragSelect";
|
|
3
|
+
import { MoveKey } from './state';
|
|
4
|
+
export declare const loadJsonAction$: (value: string) => GeneratorAction;
|
|
5
|
+
export declare const initialLoadJsonAction$: (value: string) => GeneratorAction;
|
|
6
|
+
export declare const moveAllAction$: (movementX: number, movementY: number) => GeneratorAction;
|
|
7
|
+
export declare const removeSelectedAction$: () => GeneratorAction;
|
|
8
|
+
export declare const dragSelectAction$: (dragRect: Rect) => GeneratorAction;
|
|
9
|
+
export declare const unselectAllAction$: () => GeneratorAction;
|
|
10
|
+
export declare const focusMoveTableAction$: (moveKey: MoveKey, shiftKey: boolean) => GeneratorAction;
|
|
11
|
+
export declare const drawStartRelationshipAction$: (relationshipType: number) => GeneratorAction;
|
|
12
|
+
export declare const drawStartAddRelationshipAction$: (tableId: string) => GeneratorAction;
|
|
13
|
+
export declare const changeColorAllAction$: (color: string) => GeneratorAction;
|
|
14
|
+
export declare const loadSchemaSQLAction$: (value: string) => GeneratorAction;
|
|
15
|
+
export declare const dragstartColumnAction$: ($mod: boolean) => GeneratorAction;
|
|
16
|
+
export declare const dragoverColumnAction$: (targetId: string, targetTableId: string) => GeneratorAction;
|
|
17
|
+
export declare const actions$: {
|
|
18
|
+
loadJsonAction$: (value: string) => GeneratorAction;
|
|
19
|
+
initialLoadJsonAction$: (value: string) => GeneratorAction;
|
|
20
|
+
moveAllAction$: (movementX: number, movementY: number) => GeneratorAction;
|
|
21
|
+
removeSelectedAction$: () => GeneratorAction;
|
|
22
|
+
dragSelectAction$: (dragRect: Rect) => GeneratorAction;
|
|
23
|
+
unselectAllAction$: () => GeneratorAction;
|
|
24
|
+
focusMoveTableAction$: (moveKey: MoveKey, shiftKey: boolean) => GeneratorAction;
|
|
25
|
+
drawStartRelationshipAction$: (relationshipType: number) => GeneratorAction;
|
|
26
|
+
drawStartAddRelationshipAction$: (tableId: string) => GeneratorAction;
|
|
27
|
+
changeColorAllAction$: (color: string) => GeneratorAction;
|
|
28
|
+
loadSchemaSQLAction$: (value: string) => GeneratorAction;
|
|
29
|
+
dragstartColumnAction$: ($mod: boolean) => GeneratorAction;
|
|
30
|
+
dragoverColumnAction$: (targetId: string, targetTableId: string) => GeneratorAction;
|
|
31
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Point, ValuesType } from "../../../internal-types";
|
|
2
|
+
export type Editor = {
|
|
3
|
+
selectedMap: Record<string, SelectType>;
|
|
4
|
+
hasUndo: boolean;
|
|
5
|
+
hasRedo: boolean;
|
|
6
|
+
viewport: Viewport;
|
|
7
|
+
focusTable: FocusTable | null;
|
|
8
|
+
drawRelationship: DrawRelationship | null;
|
|
9
|
+
hoverColumnMap: Record<string, boolean>;
|
|
10
|
+
openMap: Record<string, boolean>;
|
|
11
|
+
draggableColumn: DraggableColumn | null;
|
|
12
|
+
draggingColumnMap: Record<string, boolean>;
|
|
13
|
+
};
|
|
14
|
+
export type Viewport = {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
};
|
|
18
|
+
export type FocusTable = {
|
|
19
|
+
tableId: string;
|
|
20
|
+
columnId: string | null;
|
|
21
|
+
focusType: FocusType;
|
|
22
|
+
selectColumnIds: string[];
|
|
23
|
+
prevSelectColumnId: string | null;
|
|
24
|
+
edit: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type DrawRelationship = {
|
|
27
|
+
relationshipType: number;
|
|
28
|
+
start: (Point & {
|
|
29
|
+
tableId: string;
|
|
30
|
+
}) | null;
|
|
31
|
+
end: Point;
|
|
32
|
+
};
|
|
33
|
+
export type DraggableColumn = {
|
|
34
|
+
tableId: string;
|
|
35
|
+
columnIds: string[];
|
|
36
|
+
};
|
|
37
|
+
export declare const SelectType: {
|
|
38
|
+
readonly table: "table";
|
|
39
|
+
readonly memo: "memo";
|
|
40
|
+
};
|
|
41
|
+
export type SelectType = ValuesType<typeof SelectType>;
|
|
42
|
+
export declare const FocusType: {
|
|
43
|
+
readonly tableName: "tableName";
|
|
44
|
+
readonly tableComment: "tableComment";
|
|
45
|
+
readonly columnName: "columnName";
|
|
46
|
+
readonly columnDataType: "columnDataType";
|
|
47
|
+
readonly columnNotNull: "columnNotNull";
|
|
48
|
+
readonly columnUnique: "columnUnique";
|
|
49
|
+
readonly columnAutoIncrement: "columnAutoIncrement";
|
|
50
|
+
readonly columnDefault: "columnDefault";
|
|
51
|
+
readonly columnComment: "columnComment";
|
|
52
|
+
};
|
|
53
|
+
export type FocusType = ValuesType<typeof FocusType>;
|
|
54
|
+
export declare const MoveKey: {
|
|
55
|
+
ArrowUp: string;
|
|
56
|
+
ArrowRight: string;
|
|
57
|
+
ArrowDown: string;
|
|
58
|
+
ArrowLeft: string;
|
|
59
|
+
Tab: string;
|
|
60
|
+
};
|
|
61
|
+
export type MoveKey = ValuesType<typeof MoveKey>;
|
|
62
|
+
export declare const hasMoveKeys: (value: string) => boolean;
|
|
63
|
+
export declare const createEditor: () => Editor;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ActionMap, ActionType } from "../actions";
|
|
2
|
+
import { FocusType } from "../state";
|
|
3
|
+
import { RootState } from "../../../state";
|
|
4
|
+
type Payload = ActionMap[typeof ActionType.focusMoveTable];
|
|
5
|
+
export declare function isColumns({ collections, editor: { focusTable } }: RootState): boolean;
|
|
6
|
+
export declare function isLastColumn(state: RootState): boolean;
|
|
7
|
+
export declare function isLastRowColumn({ collections, editor: { focusTable }, }: RootState): boolean;
|
|
8
|
+
export declare function getRemoveFirstColumnId(state: RootState, columnIds: string[]): string | null;
|
|
9
|
+
export declare function isLastTable(state: RootState): boolean;
|
|
10
|
+
export declare const isTableFocusType: (value: FocusType) => boolean;
|
|
11
|
+
export declare function arrowUp(state: RootState, payload: Payload): void;
|
|
12
|
+
export declare function arrowDown(state: RootState, payload: Payload): void;
|
|
13
|
+
export declare function arrowLeft(state: RootState, payload: Payload): void;
|
|
14
|
+
export declare function arrowRight(state: RootState, payload: Payload): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function appendSelectColumns(columnIds: string[], columnId: string): string[];
|
|
2
|
+
export declare function selectRangeColumns(columnIds: string[], fromColumnId: string | null, toColumnId: string): string[];
|
|
3
|
+
export declare function appendSelectRangeColumns(columnIds: string[], selectColumnIds: string[], fromColumnId: string | null, toColumnId: string): string[];
|
|
@@ -0,0 +1,31 @@
|
|
|
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 addIndex: "index.add";
|
|
7
|
+
readonly removeIndex: "index.remove";
|
|
8
|
+
readonly changeIndexName: "index.changeName";
|
|
9
|
+
readonly changeIndexUnique: "index.changeUnique";
|
|
10
|
+
};
|
|
11
|
+
export type ActionType = ValuesType<typeof ActionType>;
|
|
12
|
+
export type ActionMap = {
|
|
13
|
+
[ActionType.addIndex]: {
|
|
14
|
+
id: string;
|
|
15
|
+
tableId: string;
|
|
16
|
+
};
|
|
17
|
+
[ActionType.removeIndex]: {
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
[ActionType.changeIndexName]: {
|
|
21
|
+
id: string;
|
|
22
|
+
tableId: string;
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
[ActionType.changeIndexUnique]: {
|
|
26
|
+
id: string;
|
|
27
|
+
tableId: string;
|
|
28
|
+
value: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ReducerType } from './actions';
|
|
2
|
+
export declare const addIndexAction: {
|
|
3
|
+
(payload: {
|
|
4
|
+
id: string;
|
|
5
|
+
tableId: string;
|
|
6
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
7
|
+
id: string;
|
|
8
|
+
tableId: string;
|
|
9
|
+
}>;
|
|
10
|
+
toString(): string;
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const removeIndexAction: {
|
|
14
|
+
(payload: {
|
|
15
|
+
id: string;
|
|
16
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
17
|
+
id: string;
|
|
18
|
+
}>;
|
|
19
|
+
toString(): string;
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const changeIndexNameAction: {
|
|
23
|
+
(payload: {
|
|
24
|
+
id: string;
|
|
25
|
+
tableId: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
28
|
+
id: string;
|
|
29
|
+
tableId: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}>;
|
|
32
|
+
toString(): string;
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const changeIndexUniqueAction: {
|
|
36
|
+
(payload: {
|
|
37
|
+
id: string;
|
|
38
|
+
tableId: string;
|
|
39
|
+
value: boolean;
|
|
40
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
41
|
+
id: string;
|
|
42
|
+
tableId: string;
|
|
43
|
+
value: boolean;
|
|
44
|
+
}>;
|
|
45
|
+
toString(): string;
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const indexReducers: {
|
|
49
|
+
"index.add": ReducerType<"index.add">;
|
|
50
|
+
"index.remove": ReducerType<"index.remove">;
|
|
51
|
+
"index.changeName": ReducerType<"index.changeName">;
|
|
52
|
+
"index.changeUnique": ReducerType<"index.changeUnique">;
|
|
53
|
+
};
|
|
54
|
+
export declare const actions: {
|
|
55
|
+
addIndexAction: {
|
|
56
|
+
(payload: {
|
|
57
|
+
id: string;
|
|
58
|
+
tableId: string;
|
|
59
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
60
|
+
id: string;
|
|
61
|
+
tableId: string;
|
|
62
|
+
}>;
|
|
63
|
+
toString(): string;
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
removeIndexAction: {
|
|
67
|
+
(payload: {
|
|
68
|
+
id: string;
|
|
69
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
70
|
+
id: string;
|
|
71
|
+
}>;
|
|
72
|
+
toString(): string;
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
changeIndexNameAction: {
|
|
76
|
+
(payload: {
|
|
77
|
+
id: string;
|
|
78
|
+
tableId: string;
|
|
79
|
+
value: string;
|
|
80
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
81
|
+
id: string;
|
|
82
|
+
tableId: string;
|
|
83
|
+
value: string;
|
|
84
|
+
}>;
|
|
85
|
+
toString(): string;
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
changeIndexUniqueAction: {
|
|
89
|
+
(payload: {
|
|
90
|
+
id: string;
|
|
91
|
+
tableId: string;
|
|
92
|
+
value: boolean;
|
|
93
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
94
|
+
id: string;
|
|
95
|
+
tableId: string;
|
|
96
|
+
value: boolean;
|
|
97
|
+
}>;
|
|
98
|
+
toString(): string;
|
|
99
|
+
type: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GeneratorAction } from "../../generator.actions";
|
|
2
|
+
export declare const addIndexAction$: (tableId: string) => GeneratorAction;
|
|
3
|
+
export declare const changeIndexUniqueAction$: (indexId: string) => GeneratorAction;
|
|
4
|
+
export declare const actions$: {
|
|
5
|
+
addIndexAction$: (tableId: string) => GeneratorAction;
|
|
6
|
+
changeIndexUniqueAction$: (indexId: string) => GeneratorAction;
|
|
7
|
+
};
|