@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,224 @@
|
|
|
1
|
+
import { ReducerType } from './actions';
|
|
2
|
+
export declare const addTableAction: {
|
|
3
|
+
(payload: {
|
|
4
|
+
id: string;
|
|
5
|
+
ui: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
zIndex: number;
|
|
9
|
+
};
|
|
10
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
11
|
+
id: string;
|
|
12
|
+
ui: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
zIndex: number;
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
toString(): string;
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const moveTableAction: {
|
|
22
|
+
(payload: {
|
|
23
|
+
movementX: number;
|
|
24
|
+
movementY: number;
|
|
25
|
+
ids: string[];
|
|
26
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
27
|
+
movementX: number;
|
|
28
|
+
movementY: number;
|
|
29
|
+
ids: string[];
|
|
30
|
+
}>;
|
|
31
|
+
toString(): string;
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const moveToTableAction: {
|
|
35
|
+
(payload: {
|
|
36
|
+
id: string;
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
40
|
+
id: string;
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
}>;
|
|
44
|
+
toString(): string;
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const removeTableAction: {
|
|
48
|
+
(payload: {
|
|
49
|
+
id: string;
|
|
50
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
51
|
+
id: string;
|
|
52
|
+
}>;
|
|
53
|
+
toString(): string;
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
export declare const changeTableNameAction: {
|
|
57
|
+
(payload: {
|
|
58
|
+
id: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
61
|
+
id: string;
|
|
62
|
+
value: string;
|
|
63
|
+
}>;
|
|
64
|
+
toString(): string;
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
export declare const changeTableCommentAction: {
|
|
68
|
+
(payload: {
|
|
69
|
+
id: string;
|
|
70
|
+
value: string;
|
|
71
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
72
|
+
id: string;
|
|
73
|
+
value: string;
|
|
74
|
+
}>;
|
|
75
|
+
toString(): string;
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
export declare const changeTableColorAction: {
|
|
79
|
+
(payload: {
|
|
80
|
+
id: string;
|
|
81
|
+
color: string;
|
|
82
|
+
prevColor: string;
|
|
83
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
84
|
+
id: string;
|
|
85
|
+
color: string;
|
|
86
|
+
prevColor: string;
|
|
87
|
+
}>;
|
|
88
|
+
toString(): string;
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
export declare const changeZIndexAction: {
|
|
92
|
+
(payload: {
|
|
93
|
+
id: string;
|
|
94
|
+
zIndex: number;
|
|
95
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
96
|
+
id: string;
|
|
97
|
+
zIndex: number;
|
|
98
|
+
}>;
|
|
99
|
+
toString(): string;
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
export declare const sortTableAction: {
|
|
103
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
104
|
+
toString(): string;
|
|
105
|
+
type: string;
|
|
106
|
+
};
|
|
107
|
+
export declare const tableReducers: {
|
|
108
|
+
"table.add": ReducerType<"table.add">;
|
|
109
|
+
"table.move": ReducerType<"table.move">;
|
|
110
|
+
"table.moveTo": ReducerType<"table.moveTo">;
|
|
111
|
+
"table.remove": ReducerType<"table.remove">;
|
|
112
|
+
"table.changeName": ReducerType<"table.changeName">;
|
|
113
|
+
"table.changeComment": ReducerType<"table.changeComment">;
|
|
114
|
+
"table.changeColor": ReducerType<"table.changeColor">;
|
|
115
|
+
"table.changeZIndex": ReducerType<"table.changeZIndex">;
|
|
116
|
+
"table.sort": ReducerType<"table.sort">;
|
|
117
|
+
};
|
|
118
|
+
export declare const actions: {
|
|
119
|
+
addTableAction: {
|
|
120
|
+
(payload: {
|
|
121
|
+
id: string;
|
|
122
|
+
ui: {
|
|
123
|
+
x: number;
|
|
124
|
+
y: number;
|
|
125
|
+
zIndex: number;
|
|
126
|
+
};
|
|
127
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
128
|
+
id: string;
|
|
129
|
+
ui: {
|
|
130
|
+
x: number;
|
|
131
|
+
y: number;
|
|
132
|
+
zIndex: number;
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
toString(): string;
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
moveTableAction: {
|
|
139
|
+
(payload: {
|
|
140
|
+
movementX: number;
|
|
141
|
+
movementY: number;
|
|
142
|
+
ids: string[];
|
|
143
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
144
|
+
movementX: number;
|
|
145
|
+
movementY: number;
|
|
146
|
+
ids: string[];
|
|
147
|
+
}>;
|
|
148
|
+
toString(): string;
|
|
149
|
+
type: string;
|
|
150
|
+
};
|
|
151
|
+
moveToTableAction: {
|
|
152
|
+
(payload: {
|
|
153
|
+
id: string;
|
|
154
|
+
x: number;
|
|
155
|
+
y: number;
|
|
156
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
157
|
+
id: string;
|
|
158
|
+
x: number;
|
|
159
|
+
y: number;
|
|
160
|
+
}>;
|
|
161
|
+
toString(): string;
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
removeTableAction: {
|
|
165
|
+
(payload: {
|
|
166
|
+
id: string;
|
|
167
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
168
|
+
id: string;
|
|
169
|
+
}>;
|
|
170
|
+
toString(): string;
|
|
171
|
+
type: string;
|
|
172
|
+
};
|
|
173
|
+
changeTableNameAction: {
|
|
174
|
+
(payload: {
|
|
175
|
+
id: string;
|
|
176
|
+
value: string;
|
|
177
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
178
|
+
id: string;
|
|
179
|
+
value: string;
|
|
180
|
+
}>;
|
|
181
|
+
toString(): string;
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
184
|
+
changeTableCommentAction: {
|
|
185
|
+
(payload: {
|
|
186
|
+
id: string;
|
|
187
|
+
value: string;
|
|
188
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
189
|
+
id: string;
|
|
190
|
+
value: string;
|
|
191
|
+
}>;
|
|
192
|
+
toString(): string;
|
|
193
|
+
type: string;
|
|
194
|
+
};
|
|
195
|
+
changeTableColorAction: {
|
|
196
|
+
(payload: {
|
|
197
|
+
id: string;
|
|
198
|
+
color: string;
|
|
199
|
+
prevColor: string;
|
|
200
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
201
|
+
id: string;
|
|
202
|
+
color: string;
|
|
203
|
+
prevColor: string;
|
|
204
|
+
}>;
|
|
205
|
+
toString(): string;
|
|
206
|
+
type: string;
|
|
207
|
+
};
|
|
208
|
+
changeZIndexAction: {
|
|
209
|
+
(payload: {
|
|
210
|
+
id: string;
|
|
211
|
+
zIndex: number;
|
|
212
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
213
|
+
id: string;
|
|
214
|
+
zIndex: number;
|
|
215
|
+
}>;
|
|
216
|
+
toString(): string;
|
|
217
|
+
type: string;
|
|
218
|
+
};
|
|
219
|
+
sortTableAction: {
|
|
220
|
+
(payload: void): import("@dineug/r-html").AnyAction<void>;
|
|
221
|
+
toString(): string;
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GeneratorAction } from "../../generator.actions";
|
|
2
|
+
import { Column } from "../../../internal-types";
|
|
3
|
+
export declare const addTableAction$: () => GeneratorAction;
|
|
4
|
+
export declare const removeTableAction$: (id?: string) => GeneratorAction;
|
|
5
|
+
export declare const selectTableAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
6
|
+
export declare const pasteTableAction$: (columns: Column[]) => GeneratorAction;
|
|
7
|
+
export declare const actions$: {
|
|
8
|
+
addTableAction$: () => GeneratorAction;
|
|
9
|
+
removeTableAction$: (id?: string) => GeneratorAction;
|
|
10
|
+
selectTableAction$: (id: string, $mod: boolean) => GeneratorAction;
|
|
11
|
+
pasteTableAction$: (columns: Column[]) => GeneratorAction;
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PushStreamHistory, PushUndoHistory } from "../../history.actions";
|
|
2
|
+
export declare const tablePushUndoHistoryMap: {
|
|
3
|
+
"table.add": PushUndoHistory;
|
|
4
|
+
"table.remove": PushUndoHistory;
|
|
5
|
+
"table.changeName": PushUndoHistory;
|
|
6
|
+
"table.changeComment": PushUndoHistory;
|
|
7
|
+
"table.moveTo": PushUndoHistory;
|
|
8
|
+
"table.sort": PushUndoHistory;
|
|
9
|
+
};
|
|
10
|
+
export declare const tablePushStreamHistoryMap: {
|
|
11
|
+
"table.move": PushStreamHistory;
|
|
12
|
+
"table.changeColor": PushStreamHistory;
|
|
13
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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 addColumn: "column.add";
|
|
7
|
+
readonly removeColumn: "column.remove";
|
|
8
|
+
readonly changeColumnName: "column.changeName";
|
|
9
|
+
readonly changeColumnComment: "column.changeComment";
|
|
10
|
+
readonly changeColumnDataType: "column.changeDataType";
|
|
11
|
+
readonly changeColumnDefault: "column.changeDefault";
|
|
12
|
+
readonly changeColumnAutoIncrement: "column.changeAutoIncrement";
|
|
13
|
+
readonly changeColumnPrimaryKey: "column.changePrimaryKey";
|
|
14
|
+
readonly changeColumnUnique: "column.changeUnique";
|
|
15
|
+
readonly changeColumnNotNull: "column.changeNotNull";
|
|
16
|
+
readonly moveColumn: "column.move";
|
|
17
|
+
};
|
|
18
|
+
export type ActionType = ValuesType<typeof ActionType>;
|
|
19
|
+
export type ActionMap = {
|
|
20
|
+
[ActionType.addColumn]: {
|
|
21
|
+
id: string;
|
|
22
|
+
tableId: string;
|
|
23
|
+
};
|
|
24
|
+
[ActionType.removeColumn]: {
|
|
25
|
+
id: string;
|
|
26
|
+
tableId: string;
|
|
27
|
+
};
|
|
28
|
+
[ActionType.changeColumnName]: ChangeColumnValuePayload;
|
|
29
|
+
[ActionType.changeColumnComment]: ChangeColumnValuePayload;
|
|
30
|
+
[ActionType.changeColumnDataType]: ChangeColumnValuePayload;
|
|
31
|
+
[ActionType.changeColumnDefault]: ChangeColumnValuePayload;
|
|
32
|
+
[ActionType.changeColumnAutoIncrement]: ChangeColumnOptionPayload;
|
|
33
|
+
[ActionType.changeColumnPrimaryKey]: ChangeColumnOptionPayload;
|
|
34
|
+
[ActionType.changeColumnUnique]: ChangeColumnOptionPayload;
|
|
35
|
+
[ActionType.changeColumnNotNull]: ChangeColumnOptionPayload;
|
|
36
|
+
[ActionType.moveColumn]: {
|
|
37
|
+
id: string;
|
|
38
|
+
tableId: string;
|
|
39
|
+
targetId: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type ReducerType<T extends keyof ActionMap> = Reducer<RootState, T, ActionMap, EngineContext>;
|
|
43
|
+
export type ChangeColumnValuePayload = {
|
|
44
|
+
tableId: string;
|
|
45
|
+
id: string;
|
|
46
|
+
value: string;
|
|
47
|
+
};
|
|
48
|
+
type ChangeColumnOptionPayload = {
|
|
49
|
+
tableId: string;
|
|
50
|
+
id: string;
|
|
51
|
+
value: boolean;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { ReducerType } from './actions';
|
|
2
|
+
export declare const addColumnAction: {
|
|
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 removeColumnAction: {
|
|
14
|
+
(payload: {
|
|
15
|
+
id: string;
|
|
16
|
+
tableId: string;
|
|
17
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
18
|
+
id: string;
|
|
19
|
+
tableId: string;
|
|
20
|
+
}>;
|
|
21
|
+
toString(): string;
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const changeColumnNameAction: {
|
|
25
|
+
(payload: import("./actions").ChangeColumnValuePayload): import("@dineug/r-html").AnyAction<import("./actions").ChangeColumnValuePayload>;
|
|
26
|
+
toString(): string;
|
|
27
|
+
type: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const changeColumnCommentAction: {
|
|
30
|
+
(payload: import("./actions").ChangeColumnValuePayload): import("@dineug/r-html").AnyAction<import("./actions").ChangeColumnValuePayload>;
|
|
31
|
+
toString(): string;
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const changeColumnDataTypeAction: {
|
|
35
|
+
(payload: import("./actions").ChangeColumnValuePayload): import("@dineug/r-html").AnyAction<import("./actions").ChangeColumnValuePayload>;
|
|
36
|
+
toString(): string;
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const changeColumnDefaultAction: {
|
|
40
|
+
(payload: import("./actions").ChangeColumnValuePayload): import("@dineug/r-html").AnyAction<import("./actions").ChangeColumnValuePayload>;
|
|
41
|
+
toString(): string;
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const changeColumnAutoIncrementAction: {
|
|
45
|
+
(payload: {
|
|
46
|
+
tableId: string;
|
|
47
|
+
id: string;
|
|
48
|
+
value: boolean;
|
|
49
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
50
|
+
tableId: string;
|
|
51
|
+
id: string;
|
|
52
|
+
value: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
toString(): string;
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const changeColumnPrimaryKeyAction: {
|
|
58
|
+
(payload: {
|
|
59
|
+
tableId: string;
|
|
60
|
+
id: string;
|
|
61
|
+
value: boolean;
|
|
62
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
63
|
+
tableId: string;
|
|
64
|
+
id: string;
|
|
65
|
+
value: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
toString(): string;
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const changeColumnUniqueAction: {
|
|
71
|
+
(payload: {
|
|
72
|
+
tableId: string;
|
|
73
|
+
id: string;
|
|
74
|
+
value: boolean;
|
|
75
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
76
|
+
tableId: string;
|
|
77
|
+
id: string;
|
|
78
|
+
value: boolean;
|
|
79
|
+
}>;
|
|
80
|
+
toString(): string;
|
|
81
|
+
type: string;
|
|
82
|
+
};
|
|
83
|
+
export declare const changeColumnNotNullAction: {
|
|
84
|
+
(payload: {
|
|
85
|
+
tableId: string;
|
|
86
|
+
id: string;
|
|
87
|
+
value: boolean;
|
|
88
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
89
|
+
tableId: string;
|
|
90
|
+
id: string;
|
|
91
|
+
value: boolean;
|
|
92
|
+
}>;
|
|
93
|
+
toString(): string;
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
export declare const moveColumnAction: {
|
|
97
|
+
(payload: {
|
|
98
|
+
id: string;
|
|
99
|
+
tableId: string;
|
|
100
|
+
targetId: string;
|
|
101
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
102
|
+
id: string;
|
|
103
|
+
tableId: string;
|
|
104
|
+
targetId: string;
|
|
105
|
+
}>;
|
|
106
|
+
toString(): string;
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
export declare const tableColumnReducers: {
|
|
110
|
+
"column.add": ReducerType<"column.add">;
|
|
111
|
+
"column.remove": ReducerType<"column.remove">;
|
|
112
|
+
"column.changeName": ReducerType<"column.changeName">;
|
|
113
|
+
"column.changeComment": ReducerType<"column.changeComment">;
|
|
114
|
+
"column.changeDataType": ReducerType<"column.changeDataType">;
|
|
115
|
+
"column.changeDefault": ReducerType<"column.changeDefault">;
|
|
116
|
+
"column.changeAutoIncrement": ReducerType<"column.changeAutoIncrement">;
|
|
117
|
+
"column.changePrimaryKey": ReducerType<"column.changePrimaryKey">;
|
|
118
|
+
"column.changeUnique": ReducerType<"column.changeUnique">;
|
|
119
|
+
"column.changeNotNull": ReducerType<"column.changeNotNull">;
|
|
120
|
+
"column.move": ReducerType<"column.move">;
|
|
121
|
+
};
|
|
122
|
+
export declare const actions: {
|
|
123
|
+
addColumnAction: {
|
|
124
|
+
(payload: {
|
|
125
|
+
id: string;
|
|
126
|
+
tableId: string;
|
|
127
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
128
|
+
id: string;
|
|
129
|
+
tableId: string;
|
|
130
|
+
}>;
|
|
131
|
+
toString(): string;
|
|
132
|
+
type: string;
|
|
133
|
+
};
|
|
134
|
+
removeColumnAction: {
|
|
135
|
+
(payload: {
|
|
136
|
+
id: string;
|
|
137
|
+
tableId: string;
|
|
138
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
139
|
+
id: string;
|
|
140
|
+
tableId: string;
|
|
141
|
+
}>;
|
|
142
|
+
toString(): string;
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
changeColumnNameAction: {
|
|
146
|
+
(payload: import("./actions").ChangeColumnValuePayload): import("@dineug/r-html").AnyAction<import("./actions").ChangeColumnValuePayload>;
|
|
147
|
+
toString(): string;
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
changeColumnCommentAction: {
|
|
151
|
+
(payload: import("./actions").ChangeColumnValuePayload): import("@dineug/r-html").AnyAction<import("./actions").ChangeColumnValuePayload>;
|
|
152
|
+
toString(): string;
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
changeColumnDataTypeAction: {
|
|
156
|
+
(payload: import("./actions").ChangeColumnValuePayload): import("@dineug/r-html").AnyAction<import("./actions").ChangeColumnValuePayload>;
|
|
157
|
+
toString(): string;
|
|
158
|
+
type: string;
|
|
159
|
+
};
|
|
160
|
+
changeColumnDefaultAction: {
|
|
161
|
+
(payload: import("./actions").ChangeColumnValuePayload): import("@dineug/r-html").AnyAction<import("./actions").ChangeColumnValuePayload>;
|
|
162
|
+
toString(): string;
|
|
163
|
+
type: string;
|
|
164
|
+
};
|
|
165
|
+
changeColumnAutoIncrementAction: {
|
|
166
|
+
(payload: {
|
|
167
|
+
tableId: string;
|
|
168
|
+
id: string;
|
|
169
|
+
value: boolean;
|
|
170
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
171
|
+
tableId: string;
|
|
172
|
+
id: string;
|
|
173
|
+
value: boolean;
|
|
174
|
+
}>;
|
|
175
|
+
toString(): string;
|
|
176
|
+
type: string;
|
|
177
|
+
};
|
|
178
|
+
changeColumnPrimaryKeyAction: {
|
|
179
|
+
(payload: {
|
|
180
|
+
tableId: string;
|
|
181
|
+
id: string;
|
|
182
|
+
value: boolean;
|
|
183
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
184
|
+
tableId: string;
|
|
185
|
+
id: string;
|
|
186
|
+
value: boolean;
|
|
187
|
+
}>;
|
|
188
|
+
toString(): string;
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
changeColumnUniqueAction: {
|
|
192
|
+
(payload: {
|
|
193
|
+
tableId: string;
|
|
194
|
+
id: string;
|
|
195
|
+
value: boolean;
|
|
196
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
197
|
+
tableId: string;
|
|
198
|
+
id: string;
|
|
199
|
+
value: boolean;
|
|
200
|
+
}>;
|
|
201
|
+
toString(): string;
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
changeColumnNotNullAction: {
|
|
205
|
+
(payload: {
|
|
206
|
+
tableId: string;
|
|
207
|
+
id: string;
|
|
208
|
+
value: boolean;
|
|
209
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
210
|
+
tableId: string;
|
|
211
|
+
id: string;
|
|
212
|
+
value: boolean;
|
|
213
|
+
}>;
|
|
214
|
+
toString(): string;
|
|
215
|
+
type: string;
|
|
216
|
+
};
|
|
217
|
+
moveColumnAction: {
|
|
218
|
+
(payload: {
|
|
219
|
+
id: string;
|
|
220
|
+
tableId: string;
|
|
221
|
+
targetId: string;
|
|
222
|
+
}): import("@dineug/r-html").AnyAction<{
|
|
223
|
+
id: string;
|
|
224
|
+
tableId: string;
|
|
225
|
+
targetId: string;
|
|
226
|
+
}>;
|
|
227
|
+
toString(): string;
|
|
228
|
+
type: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GeneratorAction } from "../../generator.actions";
|
|
2
|
+
import { FocusType } from "../editor/state";
|
|
3
|
+
import { ChangeColumnValuePayload } from './actions';
|
|
4
|
+
export declare const isToggleColumnTypes: (value: FocusType) => boolean;
|
|
5
|
+
export declare const isChangeColumnTypes: (value: FocusType) => boolean;
|
|
6
|
+
export declare const addColumnAction$: (tableId?: string) => GeneratorAction;
|
|
7
|
+
export declare const removeColumnAction$: (tableId: string, columnIds: string[]) => GeneratorAction;
|
|
8
|
+
export declare const toggleColumnValueAction$: (focusType: FocusType, tableId: string, columnId: string) => GeneratorAction;
|
|
9
|
+
export declare const changeColumnDataTypeAction$: (payload: ChangeColumnValuePayload) => GeneratorAction;
|
|
10
|
+
export declare const changeColumnValueAction$: (focusType: FocusType, tableId: string, columnId: string, value: string) => GeneratorAction;
|
|
11
|
+
export declare const changeColumnPrimaryKeyAction$: (tableId: string, columnId: string) => GeneratorAction;
|
|
12
|
+
export declare const actions$: {
|
|
13
|
+
addColumnAction$: (tableId?: string) => GeneratorAction;
|
|
14
|
+
removeColumnAction$: (tableId: string, columnIds: string[]) => GeneratorAction;
|
|
15
|
+
toggleColumnValueAction$: (focusType: FocusType, tableId: string, columnId: string) => GeneratorAction;
|
|
16
|
+
changeColumnDataTypeAction$: (payload: ChangeColumnValuePayload) => GeneratorAction;
|
|
17
|
+
changeColumnValueAction$: (focusType: FocusType, tableId: string, columnId: string, value: string) => GeneratorAction;
|
|
18
|
+
changeColumnPrimaryKeyAction$: (tableId: string, columnId: string) => GeneratorAction;
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PushUndoHistory } from "../../history.actions";
|
|
2
|
+
export declare const tableColumnPushUndoHistoryMap: {
|
|
3
|
+
"column.add": PushUndoHistory;
|
|
4
|
+
"column.remove": PushUndoHistory;
|
|
5
|
+
"column.changeName": PushUndoHistory;
|
|
6
|
+
"column.changeDataType": PushUndoHistory;
|
|
7
|
+
"column.changeDefault": PushUndoHistory;
|
|
8
|
+
"column.changeComment": PushUndoHistory;
|
|
9
|
+
"column.changeAutoIncrement": PushUndoHistory;
|
|
10
|
+
"column.changeNotNull": PushUndoHistory;
|
|
11
|
+
"column.changePrimaryKey": PushUndoHistory;
|
|
12
|
+
"column.changeUnique": PushUndoHistory;
|
|
13
|
+
"column.move": PushUndoHistory;
|
|
14
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ChangeColumnValuePayload } from "../actions";
|
|
2
|
+
import { RootState } from "../../../state";
|
|
3
|
+
export declare function getDataTypeSyncColumns(stack: ChangeColumnValuePayload[], state: RootState, payload: ChangeColumnValuePayload, payloads?: ChangeColumnValuePayload[]): ChangeColumnValuePayload[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnyAction } from '@dineug/r-html';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
type Regroup = [string, Array<string> | ReadonlyArray<string>];
|
|
4
|
+
export declare const groupByStreamActions: (streamActionTypes: Array<string> | ReadonlyArray<string>, regroups?: Regroup[]) => (source$: Observable<Array<AnyAction>>) => Observable<AnyAction[]>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AnyAction } from '@dineug/r-html';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { EngineContext } from "./context";
|
|
4
|
+
import { Store } from "./store";
|
|
5
|
+
export type RxStore = Store & {
|
|
6
|
+
undo: () => void;
|
|
7
|
+
redo: () => void;
|
|
8
|
+
change$: Observable<Array<AnyAction>>;
|
|
9
|
+
};
|
|
10
|
+
export declare function createRxStore(context: EngineContext, getReadonly?: () => boolean): RxStore;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AnyAction, CompositionActions } from '@dineug/r-html';
|
|
2
|
+
import { GeneratorAction } from "./generator.actions";
|
|
3
|
+
export declare const Tag: {
|
|
4
|
+
readonly shared: 1;
|
|
5
|
+
};
|
|
6
|
+
export declare function attachActionTag(tag: number, actions: AnyAction[]): AnyAction[];
|
|
7
|
+
export declare const attachSharedTag$: (...compositionActions: CompositionActions) => GeneratorAction;
|