@dineug/erd-editor 3.2.6 → 3.3.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.
Files changed (240) hide show
  1. package/dist/components/appContext.d.ts +6 -7
  2. package/dist/components/customElementRegistry.d.ts +0 -1
  3. package/dist/components/erd/Erd.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 +1 -2
  6. package/dist/components/erd/canvas/Canvas.d.ts +0 -1
  7. package/dist/components/erd/canvas/canvas-svg/CanvasSvg.d.ts +0 -1
  8. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.d.ts +1 -2
  9. package/dist/components/erd/canvas/canvas-svg/relationship/Relationship.template.d.ts +1 -2
  10. package/dist/components/erd/canvas/draw-relationship/DrawRelationship.d.ts +1 -2
  11. package/dist/components/erd/canvas/high-level-table/HighLevelTable.d.ts +1 -2
  12. package/dist/components/erd/canvas/memo/Memo.d.ts +1 -2
  13. package/dist/components/erd/canvas/memo/memo-sash/MemoSash.d.ts +1 -2
  14. package/dist/components/erd/canvas/shared-mouse-tracker/SharedMouseTracker.d.ts +0 -1
  15. package/dist/components/erd/canvas/shared-mouse-tracker/shared-mouse-cursor/SharedMouseCursor.d.ts +1 -2
  16. package/dist/components/erd/canvas/table/Table.d.ts +1 -2
  17. package/dist/components/erd/canvas/table/column/Column.d.ts +2 -3
  18. package/dist/components/erd/canvas/table/column/column-data-type/ColumnDataType.d.ts +1 -2
  19. package/dist/components/erd/canvas/table/column/column-key/ColumnKey.d.ts +0 -1
  20. package/dist/components/erd/canvas/table/column/column-not-null/ColumnNotNull.d.ts +0 -1
  21. package/dist/components/erd/canvas/table/column/column-option/ColumnOption.d.ts +0 -1
  22. package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -2
  23. package/dist/components/erd/canvas/table/useMoveTable.d.ts +0 -1
  24. package/dist/components/erd/diff-viewer/DiffViewer.d.ts +1 -2
  25. package/dist/components/erd/diff-viewer/diff.d.ts +1 -2
  26. package/dist/components/erd/diff-viewer/erd-viewer/ErdViewer.d.ts +2 -3
  27. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +2 -3
  28. package/dist/components/erd/drag-select/DragSelect.d.ts +0 -1
  29. package/dist/components/erd/erd-context-menu/ErdContextMenu.d.ts +1 -2
  30. package/dist/components/erd/erd-context-menu/menus/databaseMenus.d.ts +0 -1
  31. package/dist/components/erd/erd-context-menu/menus/drawRelationshipMenus.d.ts +1 -2
  32. package/dist/components/erd/erd-context-menu/menus/exportMenus.d.ts +0 -1
  33. package/dist/components/erd/erd-context-menu/menus/importMenus.d.ts +0 -1
  34. package/dist/components/erd/erd-context-menu/menus/relationshipMenus.d.ts +0 -1
  35. package/dist/components/erd/erd-context-menu/menus/showMenus.d.ts +0 -1
  36. package/dist/components/erd/erdShortcutPerformCheck.d.ts +1 -2
  37. package/dist/components/erd/hide-sign/HideSign.d.ts +0 -1
  38. package/dist/components/erd/minimap/Minimap.d.ts +0 -1
  39. package/dist/components/erd/minimap/memo/Memo.d.ts +1 -2
  40. package/dist/components/erd/minimap/table/Table.d.ts +1 -2
  41. package/dist/components/erd/minimap/useMinimapScroll.d.ts +0 -1
  42. package/dist/components/erd/minimap/viewport/Viewport.d.ts +0 -1
  43. package/dist/components/erd/table-properties/TableProperties.d.ts +0 -1
  44. package/dist/components/erd/table-properties/table-properties-indexes/TablePropertiesIndexes.d.ts +0 -1
  45. package/dist/components/erd/table-properties/table-properties-indexes/indexes-checkbox-column/IndexesCheckboxColumn.d.ts +1 -2
  46. package/dist/components/erd/table-properties/table-properties-indexes/indexes-column/IndexesColumn.d.ts +1 -2
  47. package/dist/components/erd/table-properties/table-properties-indexes/indexes-index/IndexesIndex.d.ts +1 -2
  48. package/dist/components/erd/table-properties/table-properties-tabs/TablePropertiesTabs.d.ts +1 -2
  49. package/dist/components/erd/time-travel/TimeTravel.d.ts +1 -2
  50. package/dist/components/erd/useErdShortcut.d.ts +0 -1
  51. package/dist/components/erd/virtual-scroll/VirtualScroll.d.ts +0 -1
  52. package/dist/components/erd/virtual-scroll/useVirtualScroll.d.ts +1 -2
  53. package/dist/components/erd-editor/ErdEditor.d.ts +4 -5
  54. package/dist/components/erd-editor/ErdEditor.stories.d.ts +1 -2
  55. package/dist/components/erd-editor/useErdEditorAttachElement.d.ts +5 -6
  56. package/dist/components/generator-code/GeneratorCode.d.ts +0 -1
  57. package/dist/components/generator-code/generator-code-context-menu/GeneratorCodeContextMenu.d.ts +0 -1
  58. package/dist/components/generator-code/generator-code-context-menu/menus/columnNameCaseMenus.d.ts +0 -1
  59. package/dist/components/generator-code/generator-code-context-menu/menus/languageMenus.d.ts +0 -1
  60. package/dist/components/generator-code/generator-code-context-menu/menus/tableNameCaseMenus.d.ts +0 -1
  61. package/dist/components/global-styles/GlobalStyles.d.ts +0 -1
  62. package/dist/components/primitives/button/Button.d.ts +0 -1
  63. package/dist/components/primitives/button/Button.stories.d.ts +1 -2
  64. package/dist/components/primitives/code-block/CodeBlock.d.ts +1 -2
  65. package/dist/components/primitives/code-block/CodeBlock.stories.d.ts +1 -2
  66. package/dist/components/primitives/color-picker/ColorPicker.d.ts +1 -2
  67. package/dist/components/primitives/color-picker/ColorPicker.stories.d.ts +1 -2
  68. package/dist/components/primitives/context-menu/ContextMenu.d.ts +2 -3
  69. package/dist/components/primitives/context-menu/ContextMenu.stories.d.ts +0 -1
  70. package/dist/components/primitives/context-menu/context-menu-content/ContextMenuContent.d.ts +0 -1
  71. package/dist/components/primitives/context-menu/context-menu-item/ContextMenuItem.d.ts +0 -1
  72. package/dist/components/primitives/context-menu/context-menu-root/ContextMenuRoot.d.ts +0 -1
  73. package/dist/components/primitives/context-menu/context-menu-root/contextMenuRootContext.d.ts +1 -2
  74. package/dist/components/primitives/context-menu/menu/Menu.d.ts +0 -1
  75. package/dist/components/primitives/edit-input/EditInput.d.ts +0 -1
  76. package/dist/components/primitives/edit-input/EditInput.stories.d.ts +1 -2
  77. package/dist/components/primitives/highlighted-text/HighlightedText.d.ts +1 -2
  78. package/dist/components/primitives/highlighted-text/HighlightedText.stories.d.ts +1 -2
  79. package/dist/components/primitives/icon/Icon.d.ts +0 -1
  80. package/dist/components/primitives/icon/Icon.stories.d.ts +1 -2
  81. package/dist/components/primitives/icon/icons.d.ts +0 -1
  82. package/dist/components/primitives/kbd/Kbd.d.ts +0 -1
  83. package/dist/components/primitives/kbd/Kbd.stories.d.ts +1 -2
  84. package/dist/components/primitives/sash/Sash.d.ts +2 -3
  85. package/dist/components/primitives/sash/Sash.stories.d.ts +1 -2
  86. package/dist/components/primitives/separator/Separator.d.ts +0 -1
  87. package/dist/components/primitives/separator/Separator.stories.d.ts +1 -2
  88. package/dist/components/primitives/slider/Slider.d.ts +0 -1
  89. package/dist/components/primitives/slider/Slider.stories.d.ts +1 -2
  90. package/dist/components/primitives/switch/Switch.d.ts +0 -1
  91. package/dist/components/primitives/switch/Switch.stories.d.ts +1 -2
  92. package/dist/components/primitives/text-input/TextInput.d.ts +0 -1
  93. package/dist/components/primitives/text-input/TextInput.stories.d.ts +1 -2
  94. package/dist/components/primitives/toast/Toast.d.ts +0 -1
  95. package/dist/components/primitives/toast/Toast.stories.d.ts +1 -2
  96. package/dist/components/quick-search/QuickSearch.d.ts +0 -1
  97. package/dist/components/quick-search/actions.d.ts +1 -2
  98. package/dist/components/schema-sql/SchemaSQL.d.ts +0 -1
  99. package/dist/components/schema-sql/schema-sql-context-menu/SchemaSQLContextMenu.d.ts +0 -1
  100. package/dist/components/schema-sql/schema-sql-context-menu/menus/bracketMenus.d.ts +0 -1
  101. package/dist/components/settings/Settings.d.ts +0 -1
  102. package/dist/components/settings/settings-lnb/SettingsLnb.d.ts +1 -2
  103. package/dist/components/settings/shortcuts/Shortcuts.d.ts +0 -1
  104. package/dist/components/theme/Theme.d.ts +1 -2
  105. package/dist/components/theme-builder/ThemeBuilder.d.ts +1 -2
  106. package/dist/components/toast-container/ToastContainer.d.ts +0 -1
  107. package/dist/components/toolbar/Toolbar.d.ts +0 -1
  108. package/dist/components/visualization/Visualization.d.ts +0 -1
  109. package/dist/components/visualization/createVisualization.d.ts +0 -1
  110. package/dist/components/visualization/table/Table.d.ts +1 -2
  111. package/dist/components/visualization/table/column/Column.d.ts +1 -2
  112. package/dist/constants/open.d.ts +0 -1
  113. package/dist/constants/sql/dataType/MSSQL.d.ts +0 -1
  114. package/dist/constants/sql/dataType/MariaDB.d.ts +0 -1
  115. package/dist/constants/sql/dataType/MySQL.d.ts +0 -1
  116. package/dist/constants/sql/dataType/Oracle.d.ts +0 -1
  117. package/dist/constants/sql/dataType/PostgreSQL.d.ts +0 -1
  118. package/dist/constants/sql/dataType/SQLite.d.ts +0 -1
  119. package/dist/constants/sql/dataType/index.d.ts +0 -1
  120. package/dist/constants/sql/database.d.ts +0 -1
  121. package/dist/engine/actions.d.ts +23 -24
  122. package/dist/engine/clock.d.ts +6 -0
  123. package/dist/engine/context.d.ts +3 -1
  124. package/dist/engine/generator.actions.d.ts +2 -3
  125. package/dist/engine/history.actions.d.ts +3 -4
  126. package/dist/engine/history.d.ts +0 -1
  127. package/dist/engine/hooks.d.ts +4 -5
  128. package/dist/engine/modules/editor/actions.d.ts +10 -5
  129. package/dist/engine/modules/editor/atom.actions.d.ts +39 -10
  130. package/dist/engine/modules/editor/generator.actions.d.ts +2 -3
  131. package/dist/engine/modules/editor/history.d.ts +0 -1
  132. package/dist/engine/modules/editor/state.d.ts +0 -1
  133. package/dist/engine/modules/editor/utils/findRelationshipColumn.d.ts +0 -1
  134. package/dist/engine/modules/editor/utils/focus.d.ts +2 -3
  135. package/dist/engine/modules/index/actions.d.ts +3 -4
  136. package/dist/engine/modules/index/atom.actions.d.ts +0 -1
  137. package/dist/engine/modules/index/generator.actions.d.ts +0 -1
  138. package/dist/engine/modules/index/history.d.ts +0 -1
  139. package/dist/engine/modules/index-column/actions.d.ts +3 -4
  140. package/dist/engine/modules/index-column/atom.actions.d.ts +0 -1
  141. package/dist/engine/modules/index-column/generator.actions.d.ts +0 -1
  142. package/dist/engine/modules/index-column/history.d.ts +0 -1
  143. package/dist/engine/modules/memo/actions.d.ts +3 -4
  144. package/dist/engine/modules/memo/atom.actions.d.ts +0 -1
  145. package/dist/engine/modules/memo/generator.actions.d.ts +0 -1
  146. package/dist/engine/modules/memo/history.d.ts +0 -1
  147. package/dist/engine/modules/relationship/actions.d.ts +3 -4
  148. package/dist/engine/modules/relationship/atom.actions.d.ts +0 -1
  149. package/dist/engine/modules/relationship/history.d.ts +0 -1
  150. package/dist/engine/modules/relationship/hooks.d.ts +0 -1
  151. package/dist/engine/modules/settings/actions.d.ts +3 -4
  152. package/dist/engine/modules/settings/atom.actions.d.ts +0 -1
  153. package/dist/engine/modules/settings/generator.actions.d.ts +0 -1
  154. package/dist/engine/modules/settings/history.d.ts +0 -1
  155. package/dist/engine/modules/table/actions.d.ts +3 -4
  156. package/dist/engine/modules/table/atom.actions.d.ts +0 -1
  157. package/dist/engine/modules/table/generator.actions.d.ts +1 -2
  158. package/dist/engine/modules/table/history.d.ts +0 -1
  159. package/dist/engine/modules/table/hooks.d.ts +0 -1
  160. package/dist/engine/modules/table-column/actions.d.ts +3 -4
  161. package/dist/engine/modules/table-column/atom.actions.d.ts +0 -1
  162. package/dist/engine/modules/table-column/generator.actions.d.ts +2 -3
  163. package/dist/engine/modules/table-column/history.d.ts +0 -1
  164. package/dist/engine/modules/table-column/hooks.d.ts +0 -1
  165. package/dist/engine/modules/table-column/utils/dataType.d.ts +1 -2
  166. package/dist/engine/replication-store.d.ts +3 -4
  167. package/dist/engine/rx-operators/actionsFilter.d.ts +1 -2
  168. package/dist/engine/rx-operators/bufferCircuitBreaker.d.ts +1 -2
  169. package/dist/engine/rx-operators/groupByStreamActions.d.ts +1 -2
  170. package/dist/engine/rx-operators/ignoreTagFilter.d.ts +1 -2
  171. package/dist/engine/rx-operators/notEmptyActions.d.ts +0 -1
  172. package/dist/engine/rx-operators/readonlyIgnoreFilter.d.ts +1 -2
  173. package/dist/engine/rx-operators/sharedStreamActionsCompressor.d.ts +1 -2
  174. package/dist/engine/rx-store.d.ts +4 -5
  175. package/dist/engine/shared-store.d.ts +2 -3
  176. package/dist/engine/state.d.ts +2 -2
  177. package/dist/engine/store-hooks.d.ts +0 -1
  178. package/dist/engine/store.d.ts +2 -3
  179. package/dist/engine/tag.d.ts +1 -2
  180. package/dist/engine.js +30 -21
  181. package/dist/erd-editor.js +15610 -14610
  182. package/dist/hooks/useFlipAnimation.d.ts +0 -1
  183. package/dist/hooks/useKeyBindingMap.d.ts +1 -2
  184. package/dist/hooks/useUnmounted.d.ts +1 -2
  185. package/dist/index.d.ts +0 -1
  186. package/dist/internal-types/index.d.ts +2 -4
  187. package/dist/{schemaGCService-0Skkcmc5.js → schemaGCService-CLe8cLsy.js} +6254 -5884
  188. package/dist/services/schema-gc/index.d.ts +0 -1
  189. package/dist/services/schema-gc/procGC.d.ts +2 -3
  190. package/dist/services/schema-gc/schemaGCService.d.ts +0 -1
  191. package/dist/themes/radix-ui-theme.config.d.ts +0 -1
  192. package/dist/themes/radix-ui-theme.d.ts +1 -2
  193. package/dist/themes/textColor.d.ts +0 -1
  194. package/dist/utils/calcMemo.d.ts +0 -1
  195. package/dist/utils/calcTable.d.ts +2 -3
  196. package/dist/utils/collection/index.entity.d.ts +0 -1
  197. package/dist/utils/collection/indexColumn.entity.d.ts +0 -1
  198. package/dist/utils/collection/memo.entity.d.ts +0 -1
  199. package/dist/utils/collection/relationship.entity.d.ts +0 -1
  200. package/dist/utils/collection/table.entity.d.ts +0 -1
  201. package/dist/utils/collection/tableColumn.entity.d.ts +0 -1
  202. package/dist/utils/dragSelect.d.ts +0 -1
  203. package/dist/utils/draw-relationship/calc.d.ts +2 -3
  204. package/dist/utils/draw-relationship/draw.d.ts +2 -3
  205. package/dist/utils/draw-relationship/index.d.ts +0 -1
  206. package/dist/utils/draw-relationship/pathFinding.d.ts +1 -2
  207. package/dist/utils/draw-relationship/sort.d.ts +0 -1
  208. package/dist/utils/emitter.d.ts +4 -5
  209. package/dist/utils/file/importFile.d.ts +0 -1
  210. package/dist/utils/flipAnimation.d.ts +0 -1
  211. package/dist/utils/focus.d.ts +0 -1
  212. package/dist/utils/generator-code/csharp.d.ts +1 -2
  213. package/dist/utils/generator-code/graphql.d.ts +1 -2
  214. package/dist/utils/generator-code/index.d.ts +1 -2
  215. package/dist/utils/generator-code/java.d.ts +1 -2
  216. package/dist/utils/generator-code/jpa.d.ts +1 -2
  217. package/dist/utils/generator-code/kotlin.d.ts +1 -2
  218. package/dist/utils/generator-code/scala.d.ts +1 -2
  219. package/dist/utils/generator-code/typescript.d.ts +1 -2
  220. package/dist/utils/generator-code/utils.d.ts +1 -2
  221. package/dist/utils/globalEmitter.d.ts +0 -1
  222. package/dist/utils/index.d.ts +0 -1
  223. package/dist/utils/internalEvents.d.ts +0 -1
  224. package/dist/utils/keyboard-shortcut/index.d.ts +1 -2
  225. package/dist/utils/rx-operators/fromCopy.d.ts +1 -2
  226. package/dist/utils/rx-operators/fromPaste.d.ts +1 -2
  227. package/dist/utils/rx-operators/takeUnsubscribe.d.ts +0 -1
  228. package/dist/utils/schema-sql/MSSQL.d.ts +1 -2
  229. package/dist/utils/schema-sql/MariaDB.d.ts +1 -2
  230. package/dist/utils/schema-sql/MySQL.d.ts +1 -2
  231. package/dist/utils/schema-sql/Oracle.d.ts +1 -2
  232. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -2
  233. package/dist/utils/schema-sql/SQLite.d.ts +1 -2
  234. package/dist/utils/schema-sql/index.d.ts +1 -2
  235. package/dist/utils/schema-sql/utils.d.ts +0 -1
  236. package/dist/utils/schema-sql-parser/index.d.ts +1 -2
  237. package/dist/utils/table-clipboard/copy.d.ts +0 -1
  238. package/dist/utils/table-clipboard/index.d.ts +0 -1
  239. package/dist/utils/table-clipboard/paste.d.ts +1 -2
  240. package/package.json +6 -6
@@ -1,11 +1,10 @@
1
- import { KeyBindingMap, KeyBindingName } from '../utils/keyboard-shortcut';
2
- import { Emitter } from '../utils/emitter';
3
- import { Ctx } from '../internal-types';
4
- import { RxStore, RxStoreOptions } from '../engine/rx-store';
5
- import { EngineContext, InjectEngineContext } from '../engine/context';
6
- import { Actions } from '../engine/actions';
7
1
  import { Subject } from 'rxjs';
8
-
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';
9
8
  export type AppContext = EngineContext & {
10
9
  actions: Actions;
11
10
  store: RxStore;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type ErdProps = {
4
3
  isDarkMode: boolean;
5
4
  mouseTracking: boolean;
@@ -1,6 +1,5 @@
1
- import { AppContext } from '../../appContext';
2
1
  import { FC, Ref } from '@dineug/r-html';
3
-
2
+ import { AppContext } from '../../appContext';
4
3
  export type AutomaticTablePlacementProps = {
5
4
  app: Ref<AppContext>;
6
5
  onChange: (tables: TablePoint[]) => void;
@@ -1,6 +1,5 @@
1
- import { Table } from '../../../internal-types';
2
1
  import { RootState } from '../../../engine/state';
3
-
2
+ import { Table } from '../../../internal-types';
4
3
  type Node = {
5
4
  id: string;
6
5
  r: number;
@@ -1,5 +1,4 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
-
3
2
  export type CanvasProps = {
4
3
  root: Ref<HTMLDivElement>;
5
4
  canvas: Ref<HTMLDivElement>;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type CanvasSvgProps = {
4
3
  strokeWidth?: number;
5
4
  class?: any;
@@ -1,6 +1,5 @@
1
- import { Relationship as RelationshipType } from '../../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Relationship as RelationshipType } from '../../../../../internal-types';
4
3
  export type RelationshipProps = {
5
4
  relationship: RelationshipType;
6
5
  strokeWidth: number;
@@ -1,4 +1,3 @@
1
- import { RelationshipPath } from '../../../../../utils/draw-relationship';
2
1
  import { DOMTemplateLiterals } from '@dineug/r-html';
3
-
2
+ import { RelationshipPath } from '../../../../../utils/draw-relationship';
4
3
  export declare function relationshipShape(relationshipType: number, relationshipPath: RelationshipPath): DOMTemplateLiterals | null;
@@ -1,6 +1,5 @@
1
- import { DrawRelationship as DrawRelationshipType } from '../../../../engine/modules/editor/state';
2
1
  import { FC, Ref } from '@dineug/r-html';
3
-
2
+ import { DrawRelationship as DrawRelationshipType } from '../../../../engine/modules/editor/state';
4
3
  export type DrawRelationshipProps = {
5
4
  root: Ref<HTMLDivElement>;
6
5
  draw: DrawRelationshipType;
@@ -1,6 +1,5 @@
1
- import { Table } from '../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Table } from '../../../../internal-types';
4
3
  export type HighLevelTableProps = {
5
4
  table: Table;
6
5
  };
@@ -1,6 +1,5 @@
1
- import { Memo } from '../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Memo } from '../../../../internal-types';
4
3
  export type MemoProps = {
5
4
  memo: Memo;
6
5
  };
@@ -1,6 +1,5 @@
1
- import { Memo } from '../../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Memo } from '../../../../../internal-types';
4
3
  export type MemoSashProps = {
5
4
  memo: Memo;
6
5
  top: number;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type SharedMouseTrackerProps = {};
4
3
  declare const SharedMouseTracker: FC<SharedMouseTrackerProps>;
5
4
  export default SharedMouseTracker;
@@ -1,6 +1,5 @@
1
- import { SharedMouseTracker } from '../../../../../engine/modules/editor/state';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { SharedMouseTracker } from '../../../../../engine/modules/editor/state';
4
3
  export type SharedMouseCursorProps = {
5
4
  tracker: SharedMouseTracker;
6
5
  };
@@ -1,6 +1,5 @@
1
- import { Table } from '../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Table } from '../../../../internal-types';
4
3
  export type TableProps = {
5
4
  table: Table;
6
5
  };
@@ -1,7 +1,6 @@
1
- import { Column } from '../../../../../internal-types';
2
- import { AppContext } from '../../../../appContext';
3
1
  import { FC, Ref } from '@dineug/r-html';
4
-
2
+ import { AppContext } from '../../../../appContext';
3
+ import { Column } from '../../../../../internal-types';
5
4
  export type ColumnProps = {
6
5
  app: Ref<AppContext>;
7
6
  column: Column;
@@ -1,6 +1,5 @@
1
- import { AppContext } from '../../../../../appContext';
2
1
  import { FC, Ref } from '@dineug/r-html';
3
-
2
+ import { AppContext } from '../../../../../appContext';
4
3
  export type ColumnDataTypeProps = {
5
4
  app: Ref<AppContext>;
6
5
  tableId: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type ColumnKeyProps = {
4
3
  keys: number;
5
4
  onMouseenter?: (event: MouseEvent) => void;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type ColumnNotNullProps = {
4
3
  focus: boolean;
5
4
  options: number;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type ColumnOptionProps = {
4
3
  class?: any;
5
4
  focus: boolean;
@@ -1,6 +1,5 @@
1
- import { Ctx } from '../../../../internal-types';
2
1
  import { FocusType } from '../../../../engine/modules/editor/state';
3
-
2
+ import { Ctx } from '../../../../internal-types';
4
3
  export declare function useFocusTable(ctx: Ctx, tableId: string): {
5
4
  hasFocus: (focusType: FocusType, columnId?: string) => boolean;
6
5
  hasEdit: (focusType: FocusType, columnId?: string) => boolean;
@@ -1,5 +1,4 @@
1
1
  import { Ctx, Table } from '../../../../internal-types';
2
-
3
2
  export declare function useMoveTable(ctx: Ctx, props: {
4
3
  table: Table;
5
4
  }): {
@@ -1,6 +1,5 @@
1
- import { AppContext } from '../../appContext';
2
1
  import { FC, Ref } from '@dineug/r-html';
3
-
2
+ import { AppContext } from '../../appContext';
4
3
  export type DiffViewerProps = {
5
4
  app: Ref<AppContext>;
6
5
  initialValue: string;
@@ -1,6 +1,5 @@
1
- import { Column, Table } from '../../../internal-types';
2
1
  import { RootState } from '../../../engine/state';
3
-
2
+ import { Column, Table } from '../../../internal-types';
4
3
  /**
5
4
  * Map<uuid, [tag, Map<path, diff>]>
6
5
  */
@@ -1,7 +1,6 @@
1
- import { DiffMap } from '../diff';
2
- import { AppContext } from '../../../appContext';
3
1
  import { FC } from '@dineug/r-html';
4
-
2
+ import { AppContext } from '../../../appContext';
3
+ import { DiffMap } from '../diff';
5
4
  export type ErdViewerProps = {
6
5
  app: AppContext;
7
6
  diff: number;
@@ -1,7 +1,6 @@
1
- import { DiffMap } from '../diff';
2
- import { AppContext } from '../../../appContext';
3
1
  import { FC } from '@dineug/r-html';
4
-
2
+ import { AppContext } from '../../../appContext';
3
+ import { DiffMap } from '../diff';
5
4
  export type TreeViewerProps = {
6
5
  prevApp: AppContext;
7
6
  prevDiffMap: DiffMap;
@@ -1,5 +1,4 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
-
3
2
  export type DragSelectProps = {
4
3
  x: number;
5
4
  y: number;
@@ -1,6 +1,5 @@
1
- import { ValuesType } from '../../../internal-types';
2
1
  import { FC, Ref } from '@dineug/r-html';
3
-
2
+ import { ValuesType } from '../../../internal-types';
4
3
  export declare const ErdContextMenuType: {
5
4
  readonly ERD: "ERD";
6
5
  readonly table: "table";
@@ -1,5 +1,4 @@
1
1
  import { AppContext } from '../../../appContext';
2
-
3
2
  type Menu = {
4
3
  name: string;
5
4
  value: number;
@@ -1,6 +1,5 @@
1
- import { KeyBindingName } from '../../../../utils/keyboard-shortcut';
2
1
  import { AppContext } from '../../../appContext';
3
-
2
+ import { KeyBindingName } from '../../../../utils/keyboard-shortcut';
4
3
  type Menu = {
5
4
  iconName: string;
6
5
  name: string;
@@ -1,5 +1,4 @@
1
1
  import { AppContext } from '../../../appContext';
2
-
3
2
  export declare function createExportMenus(app: AppContext, onClose: () => void, root: HTMLElement): {
4
3
  icon: {
5
4
  prefix: string;
@@ -1,5 +1,4 @@
1
1
  import { AppContext } from '../../../appContext';
2
-
3
2
  export declare function createImportMenus(app: AppContext, onClose: () => void): {
4
3
  icon: {
5
4
  prefix: string;
@@ -1,5 +1,4 @@
1
1
  import { AppContext } from '../../../appContext';
2
-
3
2
  export declare function createRelationshipMenus({ store }: AppContext, relationshipId?: string): {
4
3
  checked: boolean;
5
4
  iconName: string;
@@ -1,5 +1,4 @@
1
1
  import { AppContext } from '../../../appContext';
2
-
3
2
  export declare function createShowMenus({ store }: AppContext): {
4
3
  checked: boolean;
5
4
  name: string;
@@ -1,4 +1,3 @@
1
- import { RootState } from '../../engine/state';
2
1
  import { Observable } from 'rxjs';
3
-
2
+ import { RootState } from '../../engine/state';
4
3
  export declare const erdShortcutPerformCheck: ({ editor, settings }: RootState) => <T>(source$: Observable<T>) => Observable<T>;
@@ -1,5 +1,4 @@
1
1
  import { FC, Ref } from '@dineug/r-html';
2
-
3
2
  export type HideSignProps = {
4
3
  root: Ref<HTMLDivElement>;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type MinimapProps = {};
4
3
  declare const Minimap: FC<MinimapProps>;
5
4
  export default Minimap;
@@ -1,6 +1,5 @@
1
- import { Memo } from '../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Memo } from '../../../../internal-types';
4
3
  export type MemoProps = {
5
4
  memo: Memo;
6
5
  };
@@ -1,6 +1,5 @@
1
- import { Table } from '../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Table } from '../../../../internal-types';
4
3
  export type TableProps = {
5
4
  table: Table;
6
5
  };
@@ -1,5 +1,4 @@
1
1
  import { Ctx } from '../../../internal-types';
2
-
3
2
  export declare function useMinimapScroll(ctx: Ctx): {
4
3
  state: {
5
4
  selected: boolean;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type ViewportProps = {
4
3
  selected: boolean;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type TablePropertiesProps = {
4
3
  isDarkMode: boolean;
5
4
  tableId: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type TablePropertiesIndexesProps = {
4
3
  tableId: string;
5
4
  };
@@ -1,6 +1,5 @@
1
- import { Index } from '../../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Index } from '../../../../../internal-types';
4
3
  export type IndexesCheckboxColumnProps = {
5
4
  tableId: string;
6
5
  index: Index;
@@ -1,6 +1,5 @@
1
- import { Index } from '../../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Index } from '../../../../../internal-types';
4
3
  export type IndexesColumnProps = {
5
4
  index: Index;
6
5
  };
@@ -1,6 +1,5 @@
1
- import { Index } from '../../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Index } from '../../../../../internal-types';
4
3
  export type IndexesIndexProps = {
5
4
  index: Index;
6
5
  selected: boolean;
@@ -1,6 +1,5 @@
1
- import { ValuesType } from '../../../../internal-types';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { ValuesType } from '../../../../internal-types';
4
3
  export declare const Tab: {
5
4
  readonly Indexes: "Indexes";
6
5
  readonly SchemaSQL: "Schema SQL";
@@ -1,6 +1,5 @@
1
- import { AppContext } from '../../appContext';
2
1
  import { FC, Ref } from '@dineug/r-html';
3
-
2
+ import { AppContext } from '../../appContext';
4
3
  export type TimeTravelProps = {
5
4
  app: Ref<AppContext>;
6
5
  onChange: (cursor: number) => void;
@@ -1,3 +1,2 @@
1
1
  import { Ctx } from '../../internal-types';
2
-
3
2
  export declare function useErdShortcut(ctx: Ctx): void;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type VirtualScrollProps = {};
4
3
  declare const VirtualScroll: FC<VirtualScrollProps>;
5
4
  export default VirtualScroll;
@@ -1,8 +1,7 @@
1
1
  import { Ctx } from '../../../internal-types';
2
-
3
2
  export declare function useVirtualScroll(ctx: Ctx): {
4
3
  state: {
5
- selected: "vertical" | "horizontal" | null;
4
+ selected: null | "horizontal" | "vertical";
6
5
  };
7
6
  onScrollLeftStart: (event: MouseEvent) => void;
8
7
  onScrollTopStart: (event: MouseEvent) => void;
@@ -1,9 +1,8 @@
1
- import { KeyBindingMap, KeyBindingName } from '../../utils/keyboard-shortcut';
2
- import { Theme as ThemeType } from '../../themes/tokens';
3
- import { ThemeOptions } from '../../themes/radix-ui-theme';
4
- import { SharedStore, SharedStoreConfig } from '../../engine/shared-store';
5
1
  import { DatabaseVendor } from '../../constants/sql/database';
6
-
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';
7
6
  declare global {
8
7
  interface HTMLElementTagNameMap {
9
8
  'erd-editor': ErdEditorElement;
@@ -1,6 +1,5 @@
1
- import { ErdEditorProps } from './ErdEditor';
2
1
  import { StoryObj } from '@storybook/html';
3
-
2
+ import { ErdEditorProps } from './ErdEditor';
4
3
  declare const meta: {
5
4
  title: string;
6
5
  render: (args: ErdEditorProps) => DocumentFragment;
@@ -1,10 +1,9 @@
1
- import { ErdEditorElement, ErdEditorProps } from './ErdEditor';
2
- import { Theme } from '../../themes/tokens';
3
- import { ThemeOptions } from '../../themes/radix-ui-theme';
4
- import { Unsubscribe } from '../../internal-types';
5
- import { AppContext } from '../appContext';
6
1
  import { Ref } from '@dineug/r-html';
7
-
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
+ import { ErdEditorElement, ErdEditorProps } from './ErdEditor';
8
7
  type Props = {
9
8
  props: ErdEditorProps;
10
9
  ctx: ErdEditorElement;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type GeneratorCodeProps = {
4
3
  isDarkMode: boolean;
5
4
  tableId?: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type GeneratorCodeContextMenuProps = {
4
3
  onClose: () => void;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { AppContext } from '../../../appContext';
2
-
3
2
  type Menu = {
4
3
  name: string;
5
4
  value: number;
@@ -1,5 +1,4 @@
1
1
  import { AppContext } from '../../../appContext';
2
-
3
2
  type Menu = {
4
3
  name: string;
5
4
  value: number;
@@ -1,5 +1,4 @@
1
1
  import { AppContext } from '../../../appContext';
2
-
3
2
  type Menu = {
4
3
  name: string;
5
4
  value: number;
@@ -1,5 +1,4 @@
1
1
  import { FC } from '@dineug/r-html';
2
-
3
2
  export type GlobalStylesProps = {};
4
3
  declare const GlobalStyles: FC<GlobalStylesProps>;
5
4
  export default GlobalStyles;
@@ -1,5 +1,4 @@
1
1
  import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
-
3
2
  export type ButtonProps = {
4
3
  size?: '1' | '2' | '3';
5
4
  variant?: 'solid' | 'soft';
@@ -1,6 +1,5 @@
1
- import { ButtonProps } from './Button';
2
1
  import { StoryObj } from '@storybook/html';
3
-
2
+ import { ButtonProps } from './Button';
4
3
  declare const meta: {
5
4
  title: string;
6
5
  render: (args: ButtonProps) => DocumentFragment;
@@ -1,6 +1,5 @@
1
- import { ShikiService } from '../../../services/shikiService';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { ShikiService } from '../../../services/shikiService';
4
3
  export type CodeBlockProps = {
5
4
  value: string;
6
5
  lang: Parameters<ShikiService['codeToHtml']>[1]['lang'];
@@ -1,6 +1,5 @@
1
- import { CodeBlockProps } from './CodeBlock';
2
1
  import { StoryObj } from '@storybook/html';
3
-
2
+ import { CodeBlockProps } from './CodeBlock';
4
3
  declare const meta: {
5
4
  title: string;
6
5
  render: (args: CodeBlockProps) => DocumentFragment;
@@ -1,6 +1,5 @@
1
- import { Viewport } from '../../../engine/modules/editor/state';
2
1
  import { FC } from '@dineug/r-html';
3
-
2
+ import { Viewport } from '../../../engine/modules/editor/state';
4
3
  export type ColorPickerProps = {
5
4
  x: number;
6
5
  y: number;
@@ -1,6 +1,5 @@
1
- import { ColorPickerProps } from './ColorPicker';
2
1
  import { StoryObj } from '@storybook/html';
3
-
2
+ import { ColorPickerProps } from './ColorPicker';
4
3
  declare const meta: {
5
4
  title: string;
6
5
  render: (args: ColorPickerProps) => DocumentFragment;
@@ -1,7 +1,6 @@
1
- import { default as Menu } from './menu/Menu';
2
- import { default as ContextMenuRoot } from './context-menu-root/ContextMenuRoot';
3
1
  import { default as ContextMenuItem } from './context-menu-item/ContextMenuItem';
4
-
2
+ import { default as ContextMenuRoot } from './context-menu-root/ContextMenuRoot';
3
+ import { default as Menu } from './menu/Menu';
5
4
  type CompositionContextMenu = {
6
5
  Root: typeof ContextMenuRoot;
7
6
  Item: typeof ContextMenuItem;
@@ -1,5 +1,4 @@
1
1
  import { StoryObj } from '@storybook/html';
2
-
3
2
  type ContextMenuTemplateProps = {
4
3
  onClick?: (event: MouseEvent) => void;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
-
3
2
  export type ContextMenuContentProps = {
4
3
  id: string;
5
4
  x: number;
@@ -1,5 +1,4 @@
1
1
  import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
-
3
2
  export type ContextMenuItemProps = {
4
3
  children?: DOMTemplateLiterals;
5
4
  subChildren?: DOMTemplateLiterals;
@@ -1,5 +1,4 @@
1
1
  import { DOMTemplateLiterals, FC } from '@dineug/r-html';
2
-
3
2
  export type ContextMenuRootProps = {
4
3
  children?: DOMTemplateLiterals;
5
4
  };