@dineug/erd-editor 3.2.0 → 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 (167) hide show
  1. package/README.md +2 -2
  2. package/dist/components/appContext.d.ts +7 -7
  3. package/dist/components/customElementRegistry.d.ts +0 -1
  4. package/dist/components/erd/automatic-table-placement/AutomaticTablePlacement.d.ts +1 -1
  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 +1 -1
  19. package/dist/components/erd/diff-viewer/diff.d.ts +2 -2
  20. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +2 -2
  21. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +2 -2
  22. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -1
  23. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +1 -1
  24. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +2 -2
  25. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +1 -1
  26. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +1 -1
  27. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +1 -1
  28. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +1 -1
  29. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -1
  30. package/dist/components/erd/minimap/memo/Memo.d.ts +1 -1
  31. package/dist/components/erd/minimap/table/Table.d.ts +1 -1
  32. package/dist/components/erd/minimap/useMinimapScroll.d.ts +1 -1
  33. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -1
  34. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -1
  35. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -1
  36. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -1
  37. package/dist/components/erd/time-travel/TimeTravel.d.ts +9 -0
  38. package/dist/components/erd/time-travel/TimeTravel.styles.d.ts +4 -0
  39. package/dist/components/erd/useErdShortcut.d.ts +1 -1
  40. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +1 -1
  41. package/dist/components/erd-editor/ErdEditor.d.ts +5 -5
  42. package/dist/components/erd-editor/ErdEditor.stories.d.ts +0 -1
  43. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +4 -4
  44. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +1 -1
  45. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +1 -1
  46. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +1 -1
  47. package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -1
  48. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -1
  49. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -1
  50. package/dist/components/primitives/icon/icons.d.ts +1 -1
  51. package/dist/components/primitives/sash/Sash.d.ts +2 -2
  52. package/dist/components/primitives/slider/Slider.d.ts +9 -0
  53. package/dist/components/primitives/slider/Slider.stories.d.ts +23 -0
  54. package/dist/components/primitives/slider/Slider.styles.d.ts +4 -0
  55. package/dist/components/quick-search/actions.d.ts +1 -1
  56. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +1 -1
  57. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -1
  58. package/dist/components/theme/Theme.d.ts +1 -1
  59. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -1
  60. package/dist/components/visualization/createVisualization.d.ts +1 -1
  61. package/dist/components/visualization/table/Table.d.ts +1 -1
  62. package/dist/components/visualization/table/column/Column.d.ts +1 -1
  63. package/dist/constants/open.d.ts +2 -1
  64. package/dist/constants/sql/dataType/MSSQL.d.ts +1 -1
  65. package/dist/constants/sql/dataType/MariaDB.d.ts +1 -1
  66. package/dist/constants/sql/dataType/MySQL.d.ts +1 -1
  67. package/dist/constants/sql/dataType/Oracle.d.ts +1 -1
  68. package/dist/constants/sql/dataType/PostgreSQL.d.ts +1 -1
  69. package/dist/constants/sql/dataType/SQLite.d.ts +1 -1
  70. package/dist/constants/sql/dataType/index.d.ts +1 -1
  71. package/dist/constants/sql/database.d.ts +1 -1
  72. package/dist/engine/actions.d.ts +24 -24
  73. package/dist/engine/generator.actions.d.ts +2 -2
  74. package/dist/engine/history.actions.d.ts +3 -3
  75. package/dist/engine/history.d.ts +24 -10
  76. package/dist/engine/hooks.d.ts +2 -2
  77. package/dist/engine/modules/editor/actions.d.ts +3 -3
  78. package/dist/engine/modules/editor/generator.actions.d.ts +2 -2
  79. package/dist/engine/modules/editor/history.d.ts +1 -1
  80. package/dist/engine/modules/editor/state.d.ts +1 -1
  81. package/dist/engine/modules/editor/utils/focus.d.ts +3 -3
  82. package/dist/engine/modules/index/actions.d.ts +3 -3
  83. package/dist/engine/modules/index/generator.actions.d.ts +1 -1
  84. package/dist/engine/modules/index/history.d.ts +1 -1
  85. package/dist/engine/modules/index-column/actions.d.ts +3 -3
  86. package/dist/engine/modules/index-column/generator.actions.d.ts +1 -1
  87. package/dist/engine/modules/index-column/history.d.ts +1 -1
  88. package/dist/engine/modules/memo/actions.d.ts +3 -3
  89. package/dist/engine/modules/memo/generator.actions.d.ts +1 -1
  90. package/dist/engine/modules/memo/history.d.ts +1 -1
  91. package/dist/engine/modules/relationship/actions.d.ts +3 -3
  92. package/dist/engine/modules/relationship/history.d.ts +1 -1
  93. package/dist/engine/modules/relationship/hooks.d.ts +1 -1
  94. package/dist/engine/modules/settings/actions.d.ts +3 -3
  95. package/dist/engine/modules/settings/generator.actions.d.ts +1 -1
  96. package/dist/engine/modules/settings/history.d.ts +1 -1
  97. package/dist/engine/modules/table/actions.d.ts +3 -3
  98. package/dist/engine/modules/table/generator.actions.d.ts +2 -2
  99. package/dist/engine/modules/table/history.d.ts +1 -1
  100. package/dist/engine/modules/table/hooks.d.ts +1 -1
  101. package/dist/engine/modules/table-column/actions.d.ts +3 -3
  102. package/dist/engine/modules/table-column/generator.actions.d.ts +2 -2
  103. package/dist/engine/modules/table-column/history.d.ts +1 -1
  104. package/dist/engine/modules/table-column/hooks.d.ts +1 -1
  105. package/dist/engine/modules/table-column/utils/dataType.d.ts +2 -2
  106. package/dist/engine/replication-store.d.ts +2 -2
  107. package/dist/engine/rx-store.d.ts +10 -3
  108. package/dist/engine/shared-store.d.ts +2 -2
  109. package/dist/engine/state.d.ts +1 -1
  110. package/dist/engine/store-hooks.d.ts +1 -1
  111. package/dist/engine/store.d.ts +2 -2
  112. package/dist/engine/tag.d.ts +1 -1
  113. package/dist/engine.js +8 -8
  114. package/dist/erd-editor.js +6950 -6738
  115. package/dist/hooks/useKeyBindingMap.d.ts +1 -1
  116. package/dist/hooks/useUnmounted.d.ts +1 -1
  117. package/dist/index.d.ts +4 -5
  118. package/dist/{schemaGCService-8ppNbFYF.js → schemaGCService-tEI4URA5.js} +21 -21
  119. package/dist/services/schema-gc/procGC.d.ts +1 -1
  120. package/dist/services/schema-gc/schemaGCService.d.ts +1 -1
  121. package/dist/themes/radix-ui-theme.config.d.ts +1 -1
  122. package/dist/themes/radix-ui-theme.d.ts +2 -2
  123. package/dist/utils/calcMemo.d.ts +1 -1
  124. package/dist/utils/calcTable.d.ts +3 -3
  125. package/dist/utils/collection/index.entity.d.ts +1 -1
  126. package/dist/utils/collection/indexColumn.entity.d.ts +1 -1
  127. package/dist/utils/collection/memo.entity.d.ts +1 -1
  128. package/dist/utils/collection/relationship.entity.d.ts +1 -1
  129. package/dist/utils/collection/table.entity.d.ts +1 -1
  130. package/dist/utils/collection/tableColumn.entity.d.ts +1 -1
  131. package/dist/utils/dragSelect.d.ts +1 -1
  132. package/dist/utils/draw-relationship/calc.d.ts +3 -3
  133. package/dist/utils/draw-relationship/draw.d.ts +3 -3
  134. package/dist/utils/draw-relationship/index.d.ts +1 -1
  135. package/dist/utils/draw-relationship/pathFinding.d.ts +2 -2
  136. package/dist/utils/draw-relationship/sort.d.ts +1 -1
  137. package/dist/utils/emitter.d.ts +2 -2
  138. package/dist/utils/file/importFile.d.ts +1 -1
  139. package/dist/utils/focus.d.ts +1 -1
  140. package/dist/utils/generator-code/csharp.d.ts +1 -1
  141. package/dist/utils/generator-code/graphql.d.ts +1 -1
  142. package/dist/utils/generator-code/index.d.ts +2 -2
  143. package/dist/utils/generator-code/java.d.ts +1 -1
  144. package/dist/utils/generator-code/jpa.d.ts +1 -1
  145. package/dist/utils/generator-code/kotlin.d.ts +1 -1
  146. package/dist/utils/generator-code/scala.d.ts +1 -1
  147. package/dist/utils/generator-code/typescript.d.ts +1 -1
  148. package/dist/utils/generator-code/utils.d.ts +2 -2
  149. package/dist/utils/globalEmitter.d.ts +1 -1
  150. package/dist/utils/index.d.ts +1 -1
  151. package/dist/utils/internalEvents.d.ts +1 -1
  152. package/dist/utils/keyboard-shortcut/index.d.ts +1 -1
  153. package/dist/utils/rx-operators/fromCopy.d.ts +1 -1
  154. package/dist/utils/rx-operators/fromPaste.d.ts +1 -1
  155. package/dist/utils/schema-sql/MSSQL.d.ts +1 -1
  156. package/dist/utils/schema-sql/MariaDB.d.ts +1 -1
  157. package/dist/utils/schema-sql/MySQL.d.ts +1 -1
  158. package/dist/utils/schema-sql/Oracle.d.ts +1 -1
  159. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -1
  160. package/dist/utils/schema-sql/SQLite.d.ts +1 -1
  161. package/dist/utils/schema-sql/index.d.ts +2 -2
  162. package/dist/utils/schema-sql/utils.d.ts +1 -1
  163. package/dist/utils/schema-sql-parser/index.d.ts +1 -1
  164. package/dist/utils/table-clipboard/copy.d.ts +1 -1
  165. package/dist/utils/table-clipboard/index.d.ts +1 -1
  166. package/dist/utils/table-clipboard/paste.d.ts +2 -2
  167. package/package.json +14 -13
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ![erd-editor](https://github.com/dineug/erd-editor/blob/main/img/erd-editor-vscode.png?raw=true)
6
6
 
7
- # Install
7
+ ## Install
8
8
 
9
9
  ```sh
10
10
  npm install @dineug/erd-editor
@@ -43,7 +43,7 @@ document.body.appendChild(editor);
43
43
  </script>
44
44
  ```
45
45
 
46
- # Document
46
+ ## [Document](https://docs.erd-editor.io)
47
47
 
48
48
  - [Web App](https://erd-editor.io)
49
49
  - [VSCode Extension](https://marketplace.visualstudio.com/items?itemName=dineug.vuerd-vscode)
@@ -1,10 +1,10 @@
1
1
  import { Subject } from 'rxjs';
2
- import { Actions } from "../engine/actions";
3
- import { EngineContext, InjectEngineContext } from "../engine/context";
4
- import { RxStore } from "../engine/rx-store";
5
- import { Ctx } from "../internal-types";
6
- import { Emitter } from "../utils/emitter";
7
- import { KeyBindingMap, KeyBindingName } from "../utils/keyboard-shortcut";
2
+ import { Actions } from '../engine/actions';
3
+ import { EngineContext, InjectEngineContext } from '../engine/context';
4
+ import { RxStore, RxStoreOptions } from '../engine/rx-store';
5
+ import { Ctx } from '../internal-types';
6
+ import { Emitter } from '../utils/emitter';
7
+ import { KeyBindingMap, KeyBindingName } from '../utils/keyboard-shortcut';
8
8
  export type AppContext = EngineContext & {
9
9
  actions: Actions;
10
10
  store: RxStore;
@@ -17,7 +17,7 @@ export type AppContext = EngineContext & {
17
17
  emitter: Emitter;
18
18
  };
19
19
  export type InjectAppContext = InjectEngineContext;
20
- export declare function createAppContext(ctx: InjectAppContext, getReadonly?: () => boolean): AppContext;
20
+ export declare function createAppContext(ctx: InjectAppContext, options?: RxStoreOptions): AppContext;
21
21
  export declare const appContext: import("@dineug/r-html").Context<AppContext>;
22
22
  export declare const useAppContext: (ctx: Ctx, fallback?: AppContext) => import("@dineug/r-html").Ref<AppContext>;
23
23
  export declare function appDestroy(app: AppContext): void;
@@ -1 +0,0 @@
1
- import "./erd-editor/ErdEditor";
@@ -1,5 +1,5 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
- import { AppContext } from "../../appContext";
2
+ import { AppContext } from '../../appContext';
3
3
  export type AutomaticTablePlacementProps = {
4
4
  app: Ref<AppContext>;
5
5
  onChange: (tables: TablePoint[]) => void;
@@ -1,5 +1,5 @@
1
- import { RootState } from "../../../engine/state";
2
- import { Table } from "../../../internal-types";
1
+ import { RootState } from '../../../engine/state';
2
+ import { Table } from '../../../internal-types';
3
3
  type Node = {
4
4
  id: string;
5
5
  r: number;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { Relationship as RelationshipType } from "../../../../../internal-types";
2
+ import { Relationship as RelationshipType } from '../../../../../internal-types';
3
3
  export type RelationshipProps = {
4
4
  relationship: RelationshipType;
5
5
  strokeWidth: number;
@@ -1,3 +1,3 @@
1
1
  import { DOMTemplateLiterals } from '@dineug/r-html';
2
- import { RelationshipPath } from "../../../../../utils/draw-relationship";
2
+ import { RelationshipPath } from '../../../../../utils/draw-relationship';
3
3
  export declare function relationshipShape(relationshipType: number, relationshipPath: RelationshipPath): DOMTemplateLiterals | null;
@@ -1,5 +1,5 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
- import { DrawRelationship as DrawRelationshipType } from "../../../../engine/modules/editor/state";
2
+ import { DrawRelationship as DrawRelationshipType } from '../../../../engine/modules/editor/state';
3
3
  export type DrawRelationshipProps = {
4
4
  root: Ref<HTMLDivElement>;
5
5
  draw: DrawRelationshipType;
@@ -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 HighLevelTableProps = {
4
4
  table: Table;
5
5
  };
@@ -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 { Memo } from "../../../../../internal-types";
2
+ import { Memo } from '../../../../../internal-types';
3
3
  export type MemoSashProps = {
4
4
  memo: Memo;
5
5
  top: number;
@@ -1,5 +1,5 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { SharedMouseTracker } from "../../../../../engine/modules/editor/state";
2
+ import { SharedMouseTracker } from '../../../../../engine/modules/editor/state';
3
3
  export type SharedMouseCursorProps = {
4
4
  tracker: SharedMouseTracker;
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,6 +1,6 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
- import { AppContext } from "../../../../appContext";
3
- import { Column } from "../../../../../internal-types";
2
+ import { AppContext } from '../../../../appContext';
3
+ import { Column } from '../../../../../internal-types';
4
4
  export type ColumnProps = {
5
5
  app: Ref<AppContext>;
6
6
  column: Column;
@@ -1,5 +1,5 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
- import { AppContext } from "../../../../../appContext";
2
+ import { AppContext } from '../../../../../appContext';
3
3
  export type ColumnDataTypeProps = {
4
4
  app: Ref<AppContext>;
5
5
  tableId: string;
@@ -1,5 +1,5 @@
1
- import { FocusType } from "../../../../engine/modules/editor/state";
2
- import { Ctx } from "../../../../internal-types";
1
+ import { FocusType } from '../../../../engine/modules/editor/state';
2
+ import { Ctx } from '../../../../internal-types';
3
3
  export declare function useFocusTable(ctx: Ctx, tableId: string): {
4
4
  hasFocus: (focusType: FocusType, columnId?: string) => boolean;
5
5
  hasEdit: (focusType: FocusType, columnId?: string) => boolean;
@@ -1,4 +1,4 @@
1
- import { Ctx, Table } from "../../../../internal-types";
1
+ import { Ctx, Table } from '../../../../internal-types';
2
2
  export declare function useMoveTable(ctx: Ctx, props: {
3
3
  table: Table;
4
4
  }): {
@@ -1,5 +1,5 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
- import { AppContext } from "../../appContext";
2
+ import { AppContext } from '../../appContext';
3
3
  export type DiffViewerProps = {
4
4
  app: Ref<AppContext>;
5
5
  initialValue: string;
@@ -1,5 +1,5 @@
1
- import { RootState } from "../../../engine/state";
2
- import { Column, Table } from "../../../internal-types";
1
+ import { RootState } from '../../../engine/state';
2
+ import { Column, Table } from '../../../internal-types';
3
3
  /**
4
4
  * Map<uuid, [tag, Map<path, diff>]>
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { AppContext } from "../../../appContext";
3
- import { DiffMap } from "../diff";
2
+ import { AppContext } from '../../../appContext';
3
+ import { DiffMap } from '../diff';
4
4
  export type ErdViewerProps = {
5
5
  app: AppContext;
6
6
  diff: number;
@@ -1,6 +1,6 @@
1
1
  import { FC } from '@dineug/r-html';
2
- import { AppContext } from "../../../appContext";
3
- import { DiffMap } from "../diff";
2
+ import { AppContext } from '../../../appContext';
3
+ import { DiffMap } from '../diff';
4
4
  export type TreeViewerProps = {
5
5
  prevApp: AppContext;
6
6
  prevDiffMap: DiffMap;
@@ -1,5 +1,5 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
- import { ValuesType } from "../../../internal-types";
2
+ import { ValuesType } from '../../../internal-types';
3
3
  export declare const ErdContextMenuType: {
4
4
  readonly ERD: "ERD";
5
5
  readonly table: "table";
@@ -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
- 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;
@@ -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;
@@ -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;
@@ -1,9 +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
7
  readonly diffViewer: "diffViewer";
8
+ readonly timeTravel: "timeTravel";
8
9
  };
9
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
  */