@dineug/erd-editor 3.1.8 → 3.2.1

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.
Files changed (172) hide show
  1. package/README.md +2 -429
  2. package/dist/components/appContext.d.ts +8 -7
  3. package/dist/components/customElementRegistry.d.ts +0 -1
  4. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +1 -2
  5. package/dist/components/erd/automatic-table-placement/createAutomaticTablePlacement.d.ts +2 -2
  6. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +1 -1
  7. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +1 -1
  8. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -1
  9. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -1
  10. package/dist/components/erd/canvas/memo/Memo.d.ts +1 -1
  11. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -1
  12. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -1
  13. package/dist/components/erd/canvas/table/Table.d.ts +1 -1
  14. package/dist/components/erd/canvas/table/column/Column.d.ts +2 -2
  15. package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +1 -1
  16. package/dist/components/erd/canvas/table/useFocusTable.d.ts +2 -2
  17. package/dist/components/erd/canvas/table/useMoveTable.d.ts +1 -1
  18. package/dist/components/erd/diff-viewer/DiffViewer.d.ts +9 -0
  19. package/dist/components/erd/diff-viewer/DiffViewer.styles.d.ts +3 -0
  20. package/dist/components/erd/diff-viewer/diff.d.ts +19 -0
  21. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +10 -0
  22. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.styles.d.ts +1 -0
  23. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +11 -0
  24. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +5 -0
  25. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -1
  26. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -1
  27. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +2 -2
  28. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +1 -1
  29. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -1
  30. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -1
  31. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -1
  32. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -1
  33. package/dist/components/erd/minimap/memo/Memo.d.ts +1 -1
  34. package/dist/components/erd/minimap/table/Table.d.ts +1 -1
  35. package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -1
  36. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -1
  37. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -1
  38. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -1
  39. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -1
  40. package/dist/components/erd/time-travel/TimeTravel.d.ts +9 -0
  41. package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +4 -0
  42. package/dist/components/erd/useErdShortcut.d.ts +1 -1
  43. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +1 -1
  44. package/dist/components/erd-editor/ErdEditor.d.ts +6 -5
  45. package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -1
  46. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +5 -5
  47. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -1
  48. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -1
  49. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -1
  50. package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -1
  51. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -1
  52. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -1
  53. package/dist/components/primitives/icon/icons.d.ts +1 -1
  54. package/dist/components/primitives/sash/Sash.d.ts +2 -2
  55. package/dist/components/primitives/slider/Slider.d.ts +9 -0
  56. package/dist/components/primitives/slider/Slider.stories.d.ts +23 -0
  57. package/dist/components/primitives/slider/Slider.styles.d.ts +4 -0
  58. package/dist/components/quick-search/actions.d.ts +1 -1
  59. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -1
  60. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -1
  61. package/dist/components/theme/Theme.d.ts +1 -1
  62. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -1
  63. package/dist/components/visualization/createVisualization.d.ts +1 -1
  64. package/dist/components/visualization/table/Table.d.ts +1 -1
  65. package/dist/components/visualization/table/column/Column.d.ts +1 -1
  66. package/dist/constants/layout.d.ts +1 -0
  67. package/dist/constants/open.d.ts +3 -1
  68. package/dist/constants/sql/dataType/MSSQL.d.ts +1 -1
  69. package/dist/constants/sql/dataType/MariaDB.d.ts +1 -1
  70. package/dist/constants/sql/dataType/MySQL.d.ts +1 -1
  71. package/dist/constants/sql/dataType/Oracle.d.ts +1 -1
  72. package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -1
  73. package/dist/constants/sql/dataType/SQLite.d.ts +1 -1
  74. package/dist/constants/sql/dataType/index.d.ts +1 -1
  75. package/dist/constants/sql/database.d.ts +1 -1
  76. package/dist/engine/actions.d.ts +24 -24
  77. package/dist/engine/generator.actions.d.ts +2 -2
  78. package/dist/engine/history.actions.d.ts +3 -3
  79. package/dist/engine/history.d.ts +24 -10
  80. package/dist/engine/hooks.d.ts +2 -2
  81. package/dist/engine/modules/editor/actions.d.ts +3 -3
  82. package/dist/engine/modules/editor/generator.actions.d.ts +2 -2
  83. package/dist/engine/modules/editor/history.d.ts +1 -1
  84. package/dist/engine/modules/editor/state.d.ts +1 -1
  85. package/dist/engine/modules/editor/utils/focus.d.ts +3 -3
  86. package/dist/engine/modules/index/actions.d.ts +3 -3
  87. package/dist/engine/modules/index/generator.actions.d.ts +1 -1
  88. package/dist/engine/modules/index/history.d.ts +1 -1
  89. package/dist/engine/modules/index-column/actions.d.ts +3 -3
  90. package/dist/engine/modules/index-column/generator.actions.d.ts +1 -1
  91. package/dist/engine/modules/index-column/history.d.ts +1 -1
  92. package/dist/engine/modules/memo/actions.d.ts +3 -3
  93. package/dist/engine/modules/memo/generator.actions.d.ts +1 -1
  94. package/dist/engine/modules/memo/history.d.ts +1 -1
  95. package/dist/engine/modules/relationship/actions.d.ts +3 -3
  96. package/dist/engine/modules/relationship/history.d.ts +1 -1
  97. package/dist/engine/modules/relationship/hooks.d.ts +1 -1
  98. package/dist/engine/modules/settings/actions.d.ts +3 -3
  99. package/dist/engine/modules/settings/generator.actions.d.ts +1 -1
  100. package/dist/engine/modules/settings/history.d.ts +1 -1
  101. package/dist/engine/modules/table/actions.d.ts +3 -3
  102. package/dist/engine/modules/table/generator.actions.d.ts +2 -2
  103. package/dist/engine/modules/table/history.d.ts +1 -1
  104. package/dist/engine/modules/table/hooks.d.ts +1 -1
  105. package/dist/engine/modules/table-column/actions.d.ts +3 -3
  106. package/dist/engine/modules/table-column/generator.actions.d.ts +2 -2
  107. package/dist/engine/modules/table-column/history.d.ts +1 -1
  108. package/dist/engine/modules/table-column/hooks.d.ts +1 -1
  109. package/dist/engine/modules/table-column/utils/dataType.d.ts +2 -2
  110. package/dist/engine/replication-store.d.ts +2 -2
  111. package/dist/engine/rx-store.d.ts +10 -3
  112. package/dist/engine/shared-store.d.ts +2 -2
  113. package/dist/engine/state.d.ts +1 -1
  114. package/dist/engine/store-hooks.d.ts +1 -1
  115. package/dist/engine/store.d.ts +2 -2
  116. package/dist/engine/tag.d.ts +1 -1
  117. package/dist/engine.js +8 -8
  118. package/dist/erd-editor.js +8876 -8205
  119. package/dist/hooks/useKeyBindingMap.d.ts +1 -1
  120. package/dist/hooks/useUnmounted.d.ts +1 -1
  121. package/dist/index.d.ts +4 -5
  122. package/dist/{schemaGCService-Cyip5lJB.js → schemaGCService-tEI4URA5.js} +500 -499
  123. package/dist/services/schema-gc/procGC.d.ts +1 -1
  124. package/dist/services/schema-gc/schemaGCService.d.ts +1 -1
  125. package/dist/themes/radix-ui-theme.config.d.ts +1 -1
  126. package/dist/themes/radix-ui-theme.d.ts +2 -2
  127. package/dist/themes/tokens.d.ts +6 -0
  128. package/dist/utils/calcMemo.d.ts +1 -1
  129. package/dist/utils/calcTable.d.ts +3 -3
  130. package/dist/utils/collection/index.entity.d.ts +1 -1
  131. package/dist/utils/collection/indexColumn.entity.d.ts +1 -1
  132. package/dist/utils/collection/memo.entity.d.ts +1 -1
  133. package/dist/utils/collection/relationship.entity.d.ts +1 -1
  134. package/dist/utils/collection/table.entity.d.ts +1 -1
  135. package/dist/utils/collection/tableColumn.entity.d.ts +1 -1
  136. package/dist/utils/dragSelect.d.ts +1 -1
  137. package/dist/utils/draw-relationship/calc.d.ts +3 -3
  138. package/dist/utils/draw-relationship/draw.d.ts +3 -3
  139. package/dist/utils/draw-relationship/index.d.ts +1 -1
  140. package/dist/utils/draw-relationship/pathFinding.d.ts +2 -2
  141. package/dist/utils/draw-relationship/sort.d.ts +1 -1
  142. package/dist/utils/emitter.d.ts +15 -2
  143. package/dist/utils/file/importFile.d.ts +3 -1
  144. package/dist/utils/focus.d.ts +1 -1
  145. package/dist/utils/generator-code/csharp.d.ts +1 -1
  146. package/dist/utils/generator-code/graphql.d.ts +1 -1
  147. package/dist/utils/generator-code/index.d.ts +2 -2
  148. package/dist/utils/generator-code/java.d.ts +1 -1
  149. package/dist/utils/generator-code/jpa.d.ts +1 -1
  150. package/dist/utils/generator-code/kotlin.d.ts +1 -1
  151. package/dist/utils/generator-code/scala.d.ts +1 -1
  152. package/dist/utils/generator-code/typescript.d.ts +1 -1
  153. package/dist/utils/generator-code/utils.d.ts +2 -2
  154. package/dist/utils/globalEmitter.d.ts +4 -1
  155. package/dist/utils/index.d.ts +1 -1
  156. package/dist/utils/internalEvents.d.ts +1 -1
  157. package/dist/utils/keyboard-shortcut/index.d.ts +1 -1
  158. package/dist/utils/rx-operators/fromCopy.d.ts +1 -1
  159. package/dist/utils/rx-operators/fromPaste.d.ts +1 -1
  160. package/dist/utils/schema-sql/MSSQL.d.ts +1 -1
  161. package/dist/utils/schema-sql/MariaDB.d.ts +1 -1
  162. package/dist/utils/schema-sql/MySQL.d.ts +1 -1
  163. package/dist/utils/schema-sql/Oracle.d.ts +1 -1
  164. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -1
  165. package/dist/utils/schema-sql/SQLite.d.ts +1 -1
  166. package/dist/utils/schema-sql/index.d.ts +2 -2
  167. package/dist/utils/schema-sql/utils.d.ts +4 -2
  168. package/dist/utils/schema-sql-parser/index.d.ts +1 -1
  169. package/dist/utils/table-clipboard/copy.d.ts +1 -1
  170. package/dist/utils/table-clipboard/index.d.ts +1 -1
  171. package/dist/utils/table-clipboard/paste.d.ts +2 -2
  172. package/package.json +14 -13
@@ -1,5 +1,5 @@
1
- import { AppContext } from "../../../appContext";
2
- import { KeyBindingName } from "../../../../utils/keyboard-shortcut";
1
+ import { AppContext } from '../../../appContext';
2
+ import { KeyBindingName } from '../../../../utils/keyboard-shortcut';
3
3
  type Menu = {
4
4
  iconName: string;
5
5
  name: string;
@@ -1,4 +1,4 @@
1
- import { AppContext } from "../../../appContext";
1
+ import { AppContext } from '../../../appContext';
2
2
  export declare function createExportMenus(app: AppContext, onClose: () => void, root: HTMLElement): {
3
3
  icon: {
4
4
  prefix: string;
@@ -1,4 +1,4 @@
1
- import { AppContext } from "../../../appContext";
1
+ import { AppContext } from '../../../appContext';
2
2
  export declare function createImportMenus(app: AppContext, onClose: () => void): {
3
3
  icon: {
4
4
  prefix: string;
@@ -1,4 +1,4 @@
1
- import { AppContext } from "../../../appContext";
1
+ import { AppContext } from '../../../appContext';
2
2
  export declare function createRelationshipMenus({ store }: AppContext, relationshipId?: string): {
3
3
  checked: boolean;
4
4
  iconName: string;
@@ -1,4 +1,4 @@
1
- import { AppContext } from "../../../appContext";
1
+ import { AppContext } from '../../../appContext';
2
2
  export declare function createShowMenus({ store }: AppContext): {
3
3
  checked: boolean;
4
4
  name: string;
@@ -1,3 +1,3 @@
1
1
  import { Observable } from 'rxjs';
2
- import { RootState } from "../../engine/state";
2
+ import { RootState } from '../../engine/state';
3
3
  export declare const erdShortcutPerformCheck: ({ editor, settings }: RootState) => <T>(source$: Observable<T>) => Observable<T>;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Memo } from "../../../../internal-types";
2
+ import { Memo } from '../../../../internal-types';
3
3
  export type MemoProps = {
4
4
  memo: Memo;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Table } from "../../../../internal-types";
2
+ import { Table } from '../../../../internal-types';
3
3
  export type TableProps = {
4
4
  table: Table;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { Ctx } from "../../../internal-types";
1
+ import { Ctx } from '../../../internal-types';
2
2
  export declare function useMinimapScroll(ctx: Ctx): {
3
3
  state: {
4
4
  selected: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Index } from "../../../../../internal-types";
2
+ import { Index } from '../../../../../internal-types';
3
3
  export type IndexesCheckboxColumnProps = {
4
4
  tableId: string;
5
5
  index: Index;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Index } from "../../../../../internal-types";
2
+ import { Index } from '../../../../../internal-types';
3
3
  export type IndexesColumnProps = {
4
4
  index: Index;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Index } from "../../../../../internal-types";
2
+ import { Index } from '../../../../../internal-types';
3
3
  export type IndexesIndexProps = {
4
4
  index: Index;
5
5
  selected: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { ValuesType } from "../../../../internal-types";
2
+ import { ValuesType } from '../../../../internal-types';
3
3
  export declare const Tab: {
4
4
  readonly Indexes: "Indexes";
5
5
  readonly SchemaSQL: "Schema SQL";
@@ -0,0 +1,9 @@
1
+ import { FC, Ref } from '@dineug/r-html';
2
+ import { AppContext } from '../../appContext';
3
+ export type TimeTravelProps = {
4
+ app: Ref<AppContext>;
5
+ onChange: (cursor: number) => void;
6
+ onClose: () => void;
7
+ };
8
+ declare const TimeTravel: FC<TimeTravelProps>;
9
+ export default TimeTravel;
@@ -0,0 +1,4 @@
1
+ export declare const root: import("@dineug/r-html").CSSTemplateLiterals;
2
+ export declare const container: import("@dineug/r-html").CSSTemplateLiterals;
3
+ export declare const slider: import("@dineug/r-html").CSSTemplateLiterals;
4
+ export declare const vertical: import("@dineug/r-html").CSSTemplateLiterals;
@@ -1,2 +1,2 @@
1
- import { Ctx } from "../../internal-types";
1
+ import { Ctx } from '../../internal-types';
2
2
  export declare function useErdShortcut(ctx: Ctx): void;
@@ -1,4 +1,4 @@
1
- import { Ctx } from "../../../internal-types";
1
+ import { Ctx } from '../../../internal-types';
2
2
  export declare function useVirtualScroll(ctx: Ctx): {
3
3
  state: {
4
4
  selected: "vertical" | "horizontal" | null;
@@ -1,8 +1,8 @@
1
- import { DatabaseVendor } from "../../constants/sql/database";
2
- import { SharedStore, SharedStoreConfig } from "../../engine/shared-store";
3
- import { ThemeOptions } from "../../themes/radix-ui-theme";
4
- import { Theme as ThemeType } from "../../themes/tokens";
5
- import { KeyBindingMap, KeyBindingName } from "../../utils/keyboard-shortcut";
1
+ import { DatabaseVendor } from '../../constants/sql/database';
2
+ import { SharedStore, SharedStoreConfig } from '../../engine/shared-store';
3
+ import { ThemeOptions } from '../../themes/radix-ui-theme';
4
+ import { Theme as ThemeType } from '../../themes/tokens';
5
+ import { KeyBindingMap, KeyBindingName } from '../../utils/keyboard-shortcut';
6
6
  declare global {
7
7
  interface HTMLElementTagNameMap {
8
8
  'erd-editor': ErdEditorElement;
@@ -28,4 +28,5 @@ export interface ErdEditorElement extends ErdEditorProps, HTMLElement {
28
28
  getSharedStore: (config?: SharedStoreConfig & {
29
29
  mouseTracker?: boolean;
30
30
  }) => SharedStore;
31
+ setDiffValue: (value: string) => void;
31
32
  }
@@ -1,4 +1,3 @@
1
- import './ErdEditor';
2
1
  import type { StoryObj } from '@storybook/html';
3
2
  import type { ErdEditorProps } from './ErdEditor';
4
3
  declare const meta: {
@@ -1,8 +1,8 @@
1
1
  import { Ref } from '@dineug/r-html';
2
- import { AppContext } from "../appContext";
3
- import { Unsubscribe } from "../../internal-types";
4
- import { ThemeOptions } from "../../themes/radix-ui-theme";
5
- import { Theme } from "../../themes/tokens";
2
+ import { AppContext } from '../appContext';
3
+ import { Unsubscribe } from '../../internal-types';
4
+ import { ThemeOptions } from '../../themes/radix-ui-theme';
5
+ import { Theme } from '../../themes/tokens';
6
6
  import { ErdEditorElement, ErdEditorProps } from './ErdEditor';
7
7
  type Props = {
8
8
  props: ErdEditorProps;
@@ -10,7 +10,7 @@ type Props = {
10
10
  app: AppContext;
11
11
  root: Ref<HTMLDivElement>;
12
12
  };
13
- export declare function useErdEditorAttachElement({ props, ctx, app: { store, keyBindingMap, emitter, shortcut$, keydown$ }, root, }: Props): {
13
+ export declare function useErdEditorAttachElement({ props, ctx, app, root }: Props): {
14
14
  theme: Theme;
15
15
  themeState: {
16
16
  options: ThemeOptions;
@@ -1,4 +1,4 @@
1
- import { AppContext } from "../../../appContext";
1
+ import { AppContext } from '../../../appContext';
2
2
  type Menu = {
3
3
  name: string;
4
4
  value: number;
@@ -1,4 +1,4 @@
1
- import { AppContext } from "../../../appContext";
1
+ import { AppContext } from '../../../appContext';
2
2
  type Menu = {
3
3
  name: string;
4
4
  value: number;
@@ -1,4 +1,4 @@
1
- import { AppContext } from "../../../appContext";
1
+ import { AppContext } from '../../../appContext';
2
2
  type Menu = {
3
3
  name: string;
4
4
  value: number;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { ShikiService } from "../../../services/shikiService";
2
+ import { ShikiService } from '../../../services/shikiService';
3
3
  export type CodeBlockProps = {
4
4
  value: string;
5
5
  lang: Parameters<ShikiService['codeToHtml']>[1]['lang'];
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Viewport } from "../../../engine/modules/editor/state";
2
+ import { Viewport } from '../../../engine/modules/editor/state';
3
3
  export type ColorPickerProps = {
4
4
  x: number;
5
5
  y: number;
@@ -1,5 +1,5 @@
1
1
  import { Subject } from 'rxjs';
2
- import { Ctx } from "../../../../internal-types";
2
+ import { Ctx } from '../../../../internal-types';
3
3
  export type ContextMenuRootContext = {
4
4
  show: boolean;
5
5
  x: number;
@@ -1,4 +1,4 @@
1
- import { ValuesType } from "../../../internal-types";
1
+ import { ValuesType } from '../../../internal-types';
2
2
  export declare const BASE_64_ICON: {
3
3
  /** @deprecated */
4
4
  readonly ZeroOneN: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0RFRDI1RjI0ODY0MTFFN0JEQTA4NTA5QjY4NEI4MzAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0RFRDI1RjM0ODY0MTFFN0JEQTA4NTA5QjY4NEI4MzAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCQTE2QzQzRDQ4NjQxMUU3QkRBMDg1MDlCNjg0QjgzMCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCQTE2QzQzRTQ4NjQxMUU3QkRBMDg1MDlCNjg0QjgzMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnTT5ywAAAJMSURBVHja7Fc9T2JBFB3MZq1IqLSgsRM6G6TcAmK7VNoRK4yBxE6XP/CsNxBohc6G5w+AoCU0aEWpBfAD4AeM55AZMjvvg2dClsRwkxOeb+7ce+6dmTPPmJRSbNP2xJZtR2DrBH6k0+ndEkSxBHAD9AGpMAJc4Lfh1zDGn4GLgHglNb8kqANhSKVSTiaTkY7jyMFgILWNx2PZ7XZluVyW8BkBJWA1PhwO+f7ZinUO9DmH8xl3XfIGnefzuQwzBsvlcjKIAH4PWAh9zCLq9Xp48mq16knGwASTmkaShULBQ0B1ZlSr1TyFtFqtwOS3xWLxH2eyZctUUOKVFTGRtslk4iHAODZZ/k2yLDKIwLsZjJ2gM3Bo+V0wieu6vsvCCu0ucS+RPHC1vId8kp+YrWRwvHsIWaosO7Nun3DDqn1yD+zr+RQiz3WYz+dXz6iCP82g84lKB4jxF0Rv0G7P+Gw2E6ha9Ho9/eoPsRJAucbUzl53Wi79NmwU25QSJuLx+ObugkqlInD+l8+oTsAny1aHxDlKJpOBgzhBot1ui8Vi4R3cwCY8jbIJeap4JOHvAmd6flDQj+l06ncMD/yktdPp+AoW59nEeBqUnjjAzyACd7YQUcnUxL7CyJZWk7QWIs6xdcLQg6cvSzETEl+Q4iyXkAWZBHU3/stlpLvKpaWkm0sb5Tq+19exqfvWdbyU1gjX8SGLIlnKNJ9jPGYRP0gugQLwS717Az6AB+DJ+CC5Vs8vSkEffeIdK79mVALf95swtvvXbEdg2wQ+BRgAvLABcxKvek4AAAAASUVORK5CYII=";
@@ -1,6 +1,6 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { ValuesType } from "../../../internal-types";
3
- import { DragMove } from "../../../utils/globalEventObservable";
2
+ import { ValuesType } from '../../../internal-types';
3
+ import { DragMove } from '../../../utils/globalEventObservable';
4
4
  export declare const Cursor: {
5
5
  readonly default: "default";
6
6
  readonly ewResize: "ew-resize";
@@ -0,0 +1,9 @@
1
+ import { FC } from '@dineug/r-html';
2
+ export type SliderProps = {
3
+ min: number;
4
+ max: number;
5
+ value: number;
6
+ onChange: (value: number) => void;
7
+ };
8
+ declare const Slider: FC<SliderProps>;
9
+ export default Slider;
@@ -0,0 +1,23 @@
1
+ import type { StoryObj } from '@storybook/html';
2
+ import { SliderProps } from './Slider';
3
+ declare const meta: {
4
+ title: string;
5
+ render: (args: SliderProps) => DocumentFragment;
6
+ argTypes: {
7
+ min: {
8
+ control: string;
9
+ };
10
+ max: {
11
+ control: string;
12
+ };
13
+ value: {
14
+ control: string;
15
+ };
16
+ onChange: {
17
+ action: string;
18
+ };
19
+ };
20
+ };
21
+ export default meta;
22
+ type Story = StoryObj<SliderProps>;
23
+ export declare const Normal: Story;
@@ -0,0 +1,4 @@
1
+ export declare const root: import("@dineug/r-html").CSSTemplateLiterals;
2
+ export declare const track: import("@dineug/r-html").CSSTemplateLiterals;
3
+ export declare const range: import("@dineug/r-html").CSSTemplateLiterals;
4
+ export declare const thumb: import("@dineug/r-html").CSSTemplateLiterals;
@@ -1,5 +1,5 @@
1
1
  import { DOMTemplateLiterals } from '@dineug/r-html';
2
- import { AppContext } from "../appContext";
2
+ import { AppContext } from '../appContext';
3
3
  export type Action = {
4
4
  icon?: DOMTemplateLiterals | null;
5
5
  name: string;
@@ -1,4 +1,4 @@
1
- import { AppContext } from "../../../appContext";
1
+ import { AppContext } from '../../../appContext';
2
2
  type Menu = {
3
3
  name: string;
4
4
  value: number;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { ValuesType } from "../../../internal-types";
2
+ import { ValuesType } from '../../../internal-types';
3
3
  export declare const Lnb: {
4
4
  readonly preferences: "Preferences";
5
5
  readonly shortcuts: "Shortcuts";
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Theme } from "../../themes/tokens";
2
+ import { Theme } from '../../themes/tokens';
3
3
  export type ThemeProps = {
4
4
  theme: Theme;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { ThemeOptions } from "../../themes/radix-ui-theme";
2
+ import { ThemeOptions } from '../../themes/radix-ui-theme';
3
3
  export type ThemeBuilderProps = {
4
4
  theme: ThemeOptions;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { RootState } from "../../engine/state";
1
+ import { RootState } from '../../engine/state';
2
2
  type Props = {
3
3
  onDragStart: () => void;
4
4
  onDragEnd: () => void;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Table } from "../../../internal-types";
2
+ import { Table } from '../../../internal-types';
3
3
  export type TableProps = {
4
4
  table: Table;
5
5
  columnId: string | null;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Column } from "../../../../internal-types";
2
+ import { Column } from '../../../../internal-types';
3
3
  export type ColumnProps = {
4
4
  column: Column;
5
5
  selected: boolean;
@@ -30,3 +30,4 @@ export declare const MEMO_MIN_HEIGHT = 100;
30
30
  export declare const MINIMAP_SIZE = 150;
31
31
  export declare const MINIMAP_MARGIN = 20;
32
32
  export declare const TOOLBAR_HEIGHT = 30;
33
+ export declare const DIFF_TREE_WIDTH = 200;
@@ -1,8 +1,10 @@
1
- import { ValuesType } from "../internal-types";
1
+ import { ValuesType } from '../internal-types';
2
2
  export declare const Open: {
3
3
  readonly automaticTablePlacement: "automaticTablePlacement";
4
4
  readonly tableProperties: "tableProperties";
5
5
  readonly search: "search";
6
6
  readonly themeBuilder: "themeBuilder";
7
+ readonly diffViewer: "diffViewer";
8
+ readonly timeTravel: "timeTravel";
7
9
  };
8
10
  export type Open = ValuesType<typeof Open>;
@@ -1,4 +1,4 @@
1
- import { DataTypeHint } from "./";
1
+ import { DataTypeHint } from '.';
2
2
  /**
3
3
  * https://docs.microsoft.com/ko-kr/sql/t-sql/data-types/data-types-transact-sql?view=sql-server-ver15
4
4
  */
@@ -1,4 +1,4 @@
1
- import { DataTypeHint } from "./";
1
+ import { DataTypeHint } from '.';
2
2
  /**
3
3
  * https://mariadb.com/kb/en/data-types/
4
4
  */
@@ -1,4 +1,4 @@
1
- import { DataTypeHint } from "./";
1
+ import { DataTypeHint } from '.';
2
2
  /**
3
3
  * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
4
4
  */
@@ -1,4 +1,4 @@
1
- import { DataTypeHint } from "./";
1
+ import { DataTypeHint } from '.';
2
2
  /**
3
3
  * https://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#CNCPT012
4
4
  */
@@ -1,4 +1,4 @@
1
- import { DataTypeHint } from "./";
1
+ import { DataTypeHint } from '.';
2
2
  /**
3
3
  * https://www.postgresql.org/docs/current/datatype.html
4
4
  */
@@ -1,4 +1,4 @@
1
- import { DataTypeHint } from "./";
1
+ import { DataTypeHint } from '.';
2
2
  /**
3
3
  * https://www.sqlite.org/datatype3.html
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ValuesType } from "../../../internal-types";
1
+ import { ValuesType } from '../../../internal-types';
2
2
  export declare const PrimitiveType: {
3
3
  readonly int: "int";
4
4
  readonly long: "long";
@@ -1,4 +1,4 @@
1
- import { ValuesType } from "../../internal-types";
1
+ import { ValuesType } from '../../internal-types';
2
2
  export declare const DatabaseVendor: {
3
3
  readonly MariaDB: "MariaDB";
4
4
  readonly MSSQL: "MSSQL";
@@ -1,27 +1,27 @@
1
- import { ActionMap as EditorActionMap } from "./modules/editor/actions";
2
- import { actions as editorActions } from "./modules/editor/atom.actions";
3
- import { actions$ as editorActions$ } from "./modules/editor/generator.actions";
4
- import { ActionMap as IndexActionMap } from "./modules/index/actions";
5
- import { actions as indexActions } from "./modules/index/atom.actions";
6
- import { actions$ as indexActions$ } from "./modules/index/generator.actions";
7
- import { ActionMap as IndexColumnActionMap } from "./modules/index-column/actions";
8
- import { actions as indexColumnActions } from "./modules/index-column/atom.actions";
9
- import { actions$ as indexColumnActions$ } from "./modules/index-column/generator.actions";
10
- import { ActionMap as MemoActionMap } from "./modules/memo/actions";
11
- import { actions as memoActions } from "./modules/memo/atom.actions";
12
- import { actions$ as memoActions$ } from "./modules/memo/generator.actions";
13
- import { ActionMap as RelationshipActionMap } from "./modules/relationship/actions";
14
- import { actions as relationshipActions } from "./modules/relationship/atom.actions";
15
- import { actions$ as relationshipActions$ } from "./modules/relationship/generator.actions";
16
- import { ActionMap as SettingsActionMap } from "./modules/settings/actions";
17
- import { actions as settingsActions } from "./modules/settings/atom.actions";
18
- import { actions$ as settingsActions$ } from "./modules/settings/generator.actions";
19
- import { ActionMap as TableActionMap } from "./modules/table/actions";
20
- import { actions as tableActions } from "./modules/table/atom.actions";
21
- import { actions$ as tableActions$ } from "./modules/table/generator.actions";
22
- import { ActionMap as TableColumnActionMap } from "./modules/table-column/actions";
23
- import { actions as tableColumnActions } from "./modules/table-column/atom.actions";
24
- import { actions$ as tableColumnActions$ } from "./modules/table-column/generator.actions";
1
+ import { ActionMap as EditorActionMap } from './modules/editor/actions';
2
+ import { actions as editorActions } from './modules/editor/atom.actions';
3
+ import { actions$ as editorActions$ } from './modules/editor/generator.actions';
4
+ import { ActionMap as IndexActionMap } from './modules/index/actions';
5
+ import { actions as indexActions } from './modules/index/atom.actions';
6
+ import { actions$ as indexActions$ } from './modules/index/generator.actions';
7
+ import { ActionMap as IndexColumnActionMap } from './modules/index-column/actions';
8
+ import { actions as indexColumnActions } from './modules/index-column/atom.actions';
9
+ import { actions$ as indexColumnActions$ } from './modules/index-column/generator.actions';
10
+ import { ActionMap as MemoActionMap } from './modules/memo/actions';
11
+ import { actions as memoActions } from './modules/memo/atom.actions';
12
+ import { actions$ as memoActions$ } from './modules/memo/generator.actions';
13
+ import { ActionMap as RelationshipActionMap } from './modules/relationship/actions';
14
+ import { actions as relationshipActions } from './modules/relationship/atom.actions';
15
+ import { actions$ as relationshipActions$ } from './modules/relationship/generator.actions';
16
+ import { ActionMap as SettingsActionMap } from './modules/settings/actions';
17
+ import { actions as settingsActions } from './modules/settings/atom.actions';
18
+ import { actions$ as settingsActions$ } from './modules/settings/generator.actions';
19
+ import { ActionMap as TableActionMap } from './modules/table/actions';
20
+ import { actions as tableActions } from './modules/table/atom.actions';
21
+ import { actions$ as tableActions$ } from './modules/table/generator.actions';
22
+ import { ActionMap as TableColumnActionMap } from './modules/table-column/actions';
23
+ import { actions as tableColumnActions } from './modules/table-column/atom.actions';
24
+ import { actions$ as tableColumnActions$ } from './modules/table-column/generator.actions';
25
25
  export type Actions = typeof editorActions & typeof editorActions$ & typeof indexActions & typeof indexActions$ & typeof indexColumnActions & typeof indexColumnActions$ & typeof memoActions & typeof memoActions$ & typeof relationshipActions & typeof relationshipActions$ & typeof settingsActions & typeof settingsActions$ & typeof tableActions & typeof tableActions$ & typeof tableColumnActions & typeof tableColumnActions$;
26
26
  export type RootActionMap = EditorActionMap & TableActionMap & TableColumnActionMap & MemoActionMap & RelationshipActionMap & SettingsActionMap & IndexActionMap & IndexColumnActionMap;
27
27
  export type ActionType = keyof RootActionMap;
@@ -1,4 +1,4 @@
1
1
  import { AnyAction, GeneratorActionCreator } from '@dineug/r-html';
2
- import { EngineContext } from "./context";
3
- import { RootState } from "./state";
2
+ import { EngineContext } from './context';
3
+ import { RootState } from './state';
4
4
  export type GeneratorAction = GeneratorActionCreator<AnyAction, RootState, EngineContext>;
@@ -1,7 +1,7 @@
1
1
  import { AnyAction } from '@dineug/r-html';
2
- import { History } from "./history";
3
- import { RootState } from "./state";
4
- import { Store } from "./store";
2
+ import { History } from './history';
3
+ import { RootState } from './state';
4
+ import { Store } from './store';
5
5
  export type PushUndoHistory = (undoActions: AnyAction[], action: AnyAction, state: RootState) => void;
6
6
  export type PushStreamHistory = (undoActions: AnyAction[], redoActions: AnyAction[], actions: AnyAction[]) => void;
7
7
  export declare const pushUndoHistoryMap: Record<string, PushUndoHistory>;
@@ -1,20 +1,34 @@
1
+ import { AnyAction } from '@dineug/r-html';
2
+ type Dispatch = (actions: AnyAction[]) => void;
1
3
  export type Command = {
2
- undo(): void;
3
- redo(): void;
4
+ undo: (dispatch: Dispatch) => void;
5
+ redo: (dispatch: Dispatch) => void;
4
6
  };
5
7
  export type CommandKey = keyof Command;
6
8
  export type History = {
7
- hasUndo(): boolean;
8
- hasRedo(): boolean;
9
- undo(): void;
10
- redo(): void;
11
- push(command: Command): void;
12
- clear(): void;
13
- setLimit(limit: number): void;
9
+ readonly cursor: number;
10
+ readonly size: number;
11
+ hasUndo: () => boolean;
12
+ hasRedo: () => boolean;
13
+ undo: () => void;
14
+ redo: () => void;
15
+ push: (command: Command) => void;
16
+ clear: () => void;
17
+ setLimit: (limit: number) => void;
18
+ clone: (options: HistoryOptions) => History;
14
19
  };
15
20
  type HasHistory = {
16
21
  hasRedo: boolean;
17
22
  hasUndo: boolean;
18
23
  };
19
- export declare function createHistory(notify: (has: HasHistory) => void): History;
24
+ export type HistoryOptions = {
25
+ notify: (has: HasHistory) => void;
26
+ dispatch: Dispatch;
27
+ };
28
+ type HistoryState = {
29
+ commands: Command[];
30
+ cursor: number;
31
+ limit: number;
32
+ };
33
+ export declare function createHistory({ notify, dispatch }: HistoryOptions, initialState?: HistoryState): History;
20
34
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Channel, CoroutineCreator } from '@dineug/go';
2
2
  import { type AnyAction, createAction } from '@dineug/r-html';
3
- import type { EngineContext } from "./context";
4
- import type { RootState } from "./state";
3
+ import type { EngineContext } from './context';
4
+ import type { RootState } from './state';
5
5
  type ActionCreator = ReturnType<typeof createAction<any>>;
6
6
  export type CO = (channel: Channel<AnyAction>, state: RootState, ctx: EngineContext) => ReturnType<CoroutineCreator>;
7
7
  export type Hook = [Array<ActionCreator | string>, CO];
@@ -1,7 +1,7 @@
1
1
  import { Reducer } from '@dineug/r-html';
2
- import { EngineContext } from "../../context";
3
- import { RootState } from "../../state";
4
- import { ValuesType } from "../../../internal-types";
2
+ import { EngineContext } from '../../context';
3
+ import { RootState } from '../../state';
4
+ import { ValuesType } from '../../../internal-types';
5
5
  import { FocusType, MoveKey, SelectType } from './state';
6
6
  export declare const ActionType: {
7
7
  readonly changeHasHistory: "editor.changeHasHistory";
@@ -1,5 +1,5 @@
1
- import { GeneratorAction } from "../../generator.actions";
2
- import { Rect } from "../../../utils/dragSelect";
1
+ import { GeneratorAction } from '../../generator.actions';
2
+ import { Rect } from '../../../utils/dragSelect';
3
3
  import { MoveKey } from './state';
4
4
  export declare const loadJsonAction$: (value: string) => GeneratorAction;
5
5
  export declare const initialLoadJsonAction$: (value: string) => GeneratorAction;
@@ -1,4 +1,4 @@
1
- import { PushUndoHistory } from "../../history.actions";
1
+ import { PushUndoHistory } from '../../history.actions';
2
2
  export declare const editorPushUndoHistoryMap: {
3
3
  "editor.loadJson": PushUndoHistory;
4
4
  "editor.clear": PushUndoHistory;
@@ -1,4 +1,4 @@
1
- import { Point, ValuesType } from "../../../internal-types";
1
+ import { Point, ValuesType } from '../../../internal-types';
2
2
  export type Editor = {
3
3
  id: string;
4
4
  selectedMap: Record<string, SelectType>;