@code0-tech/pictor 0.0.0-mvp.26 → 0.0.0-mvp.27

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 (282) hide show
  1. package/dist/assets/components/badge/Badge.style.css +1 -1
  2. package/dist/assets/components/button/Button.style.css +1 -1
  3. package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
  4. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
  5. package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
  6. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
  7. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
  8. package/dist/assets/components/d-layout/DLayout.style.css +1 -1
  9. package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
  10. package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
  11. package/dist/assets/components/form/Input.style.css +1 -1
  12. package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
  13. package/dist/components/avatar/Avatar.js +7 -7
  14. package/dist/components/badge/Badge.d.ts +1 -1
  15. package/dist/components/badge/Badge.js +57 -17
  16. package/dist/components/breadcrumb/Breadcrumb.js +5 -5
  17. package/dist/components/button/Button.js +8 -8
  18. package/dist/components/context-menu/ContextMenu.d.ts +31 -0
  19. package/dist/components/context-menu/ContextMenu.js +191 -0
  20. package/dist/components/d-application/DApplication.service.d.ts +5 -0
  21. package/dist/components/d-application/DApplication.service.js +9 -0
  22. package/dist/components/d-flow/DFlow.d.ts +5 -3
  23. package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
  24. package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
  25. package/dist/components/d-flow/DFlow.js +214 -199
  26. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
  27. package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
  28. package/dist/components/d-flow/DFlow.service.d.ts +12 -7
  29. package/dist/components/d-flow/DFlow.service.js +117 -7
  30. package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
  31. package/dist/components/d-flow/DFlowEdge.js +69 -0
  32. package/dist/components/d-flow/index.d.ts +1 -10
  33. package/dist/components/d-flow/index.js +9 -44
  34. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
  35. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
  36. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
  37. package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
  38. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
  39. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
  40. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
  41. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
  42. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
  43. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
  44. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
  45. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
  46. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
  47. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
  48. package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
  49. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
  50. package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
  51. package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
  52. package/dist/components/d-flow-file/DFlowTabs.js +128 -0
  53. package/dist/components/d-flow-file/index.d.ts +1 -0
  54. package/dist/components/d-flow-file/index.js +4 -0
  55. package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
  56. package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
  57. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
  58. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
  59. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
  60. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
  61. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
  62. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
  63. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
  64. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
  65. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
  66. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
  67. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
  68. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
  69. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
  70. package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
  71. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
  72. package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
  73. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
  74. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
  75. package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
  76. package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
  77. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
  78. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
  79. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
  80. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
  81. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
  82. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
  83. package/dist/components/d-flow-panel/DFlowExport.js +32 -0
  84. package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
  85. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
  86. package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
  87. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
  88. package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
  89. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
  90. package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
  91. package/dist/components/d-flow-panel/index.d.ts +5 -0
  92. package/dist/components/d-flow-panel/index.js +12 -0
  93. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
  94. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
  95. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
  96. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
  97. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
  98. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
  99. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
  100. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
  101. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
  102. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
  103. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
  104. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
  105. package/dist/components/d-flow-suggestion/index.d.ts +1 -0
  106. package/dist/components/d-flow-suggestion/index.js +4 -0
  107. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
  108. package/dist/components/d-flow-type/DFlowType.service.js +12 -0
  109. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
  110. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
  111. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
  112. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
  113. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
  114. package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
  115. package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
  116. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
  117. package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
  118. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
  119. package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
  120. package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
  121. package/dist/components/d-fullscreen/DFullScreen.js +2 -2
  122. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  123. package/dist/components/d-organization/DOrganizationList.js +7 -7
  124. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  125. package/dist/components/d-organization/DOrganizatonContent.js +22 -22
  126. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  127. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  128. package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
  129. package/dist/components/d-resizable/DResizable.js +18 -17
  130. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  131. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  132. package/dist/components/d-user/DUser.session.hook.js +2 -2
  133. package/dist/components/d-user/DUserContent.js +13 -13
  134. package/dist/components/d-user/DUserInput.js +9 -9
  135. package/dist/components/d-user/DUserList.js +9 -9
  136. package/dist/components/file-tabs/FileTabs.js +2 -2
  137. package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
  138. package/dist/components/file-tabs/FileTabs.service.js +68 -16
  139. package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
  140. package/dist/components/form/CheckboxInput.js +4 -4
  141. package/dist/components/form/EmailInput.js +12 -12
  142. package/dist/components/form/Input.js +220 -206
  143. package/dist/components/form/Input.selection.hook.js +9 -9
  144. package/dist/components/form/Input.syntax.hook.js +7 -7
  145. package/dist/components/form/NumberInput.js +9 -9
  146. package/dist/components/form/PasswordInput.js +6 -6
  147. package/dist/components/form/SwitchInput.js +7 -7
  148. package/dist/components/form/TextInput.js +10 -10
  149. package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
  150. package/dist/components/segmented-control/SegmentedControl.js +14 -12
  151. package/dist/index.d.ts +8 -0
  152. package/dist/index.js +117 -117
  153. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  154. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  155. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  157. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  158. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  159. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  160. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
  161. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  162. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  163. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
  164. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  165. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  166. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  167. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  168. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  169. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
  170. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  171. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  172. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  173. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  174. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
  175. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  176. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  177. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  178. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  179. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  180. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  181. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  182. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  183. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  184. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  185. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  186. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  187. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  188. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  189. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  190. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  191. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  192. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  193. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  194. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  195. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  196. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  197. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  198. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  199. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  200. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  201. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  202. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  203. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  204. package/dist/utils/generics.d.ts +5 -6
  205. package/dist/utils/generics.js +2 -2
  206. package/dist/utils/objectStore.js +15 -15
  207. package/dist/utils/reactiveArrayService.js +5 -5
  208. package/package.json +7 -4
  209. package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
  210. package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
  211. package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  212. package/dist/components/d-flow/DFlow.view.d.ts +0 -113
  213. package/dist/components/d-flow/DFlow.view.js +0 -248
  214. package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
  215. package/dist/components/d-flow/control/DFlowControl.js +0 -81
  216. package/dist/components/d-flow/control/index.d.ts +0 -1
  217. package/dist/components/d-flow/control/index.js +0 -4
  218. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
  219. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
  220. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
  221. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
  222. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
  223. package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
  224. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
  225. package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
  226. package/dist/components/d-flow/export/DFlowExport.js +0 -24
  227. package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
  228. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
  229. package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
  230. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
  231. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
  232. package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
  233. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
  234. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
  235. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
  236. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
  237. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
  238. package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
  239. package/dist/components/d-flow/minimap/index.d.ts +0 -1
  240. package/dist/components/d-flow/minimap/index.js +0 -4
  241. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
  242. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
  243. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
  244. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
  245. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
  246. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
  247. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
  248. package/dist/components/d-flow/suggestion/index.d.ts +0 -2
  249. package/dist/components/d-flow/suggestion/index.js +0 -7
  250. package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
  251. package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
  252. package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
  253. package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
  254. package/dist/components/d-flow/type/DFlowType.service.js +0 -9
  255. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
  256. package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
  257. package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
  258. /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
  259. /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
  260. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
  261. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
  262. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
  263. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
  264. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
  265. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
  266. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
  267. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
  268. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
  269. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
  270. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
  271. /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
  272. /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
  273. /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
  274. /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
  275. /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
  276. /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
  277. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
  278. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
  279. /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
  280. /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
  281. /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
  282. /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
@@ -1,25 +1,25 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import f from "react";
3
3
  import { Card as u } from "../card/Card.js";
4
- import { useService as S, useStore as l } from "../../utils/contextStore.js";
4
+ import { useService as l, useStore as S } from "../../utils/contextStore.js";
5
5
  import "merge-props";
6
6
  import { DNamespaceProjectReactiveService as i } from "./DNamespaceProject.service.js";
7
7
  import v from "../card/CardSection.js";
8
8
  import { DNamespaceProjectContent as j } from "./DNamespaceProjectContent.js";
9
- const b = (c) => {
9
+ const _ = (c) => {
10
10
  const {
11
11
  namespaceId: t,
12
12
  filter: m = () => !0,
13
13
  onSetting: s,
14
14
  onSelect: o,
15
15
  ...n
16
- } = c, p = S(i), a = l(i), d = f.useMemo(() => p.values({
16
+ } = c, a = l(i), p = S(i), d = f.useMemo(() => a.values({
17
17
  namespaceId: t
18
- }), [a, t]);
18
+ }), [p, t]);
19
19
  return /* @__PURE__ */ r(u, { ...n, children: d.filter(m).map((e) => e.id && /* @__PURE__ */ r(v, { border: !0, hover: !0, onClick: () => {
20
20
  o && o(e);
21
21
  }, children: /* @__PURE__ */ r(j, { onSetting: s, projectId: e?.id }) }, e.id)) });
22
22
  };
23
23
  export {
24
- b as DNamespaceProjectList
24
+ _ as DNamespaceProjectList
25
25
  };
@@ -10,7 +10,7 @@ import { Flex as t } from "../flex/Flex.js";
10
10
  import { Badge as n } from "../badge/Badge.js";
11
11
  import { IconArrowUp as B, IconArrowDown as N, IconCornerDownLeft as A } from "@tabler/icons-react";
12
12
  import { Spacing as F } from "../spacing/Spacing.js";
13
- const K = (i) => {
13
+ const J = (i) => {
14
14
  const {
15
15
  onProjectSelect: h,
16
16
  namespaceId: c,
@@ -53,5 +53,5 @@ const K = (i) => {
53
53
  ] }), [a]);
54
54
  };
55
55
  export {
56
- K as default
56
+ J as default
57
57
  };
@@ -1,32 +1,33 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { c as r } from "../../_virtual/compiler-runtime.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as s } from "../../_virtual/compiler-runtime.js";
3
3
  import { mergeCode0Props as n } from "../../utils/utils.js";
4
4
  import { PanelGroup as o, Panel as c, PanelResizeHandle as m } from "react-resizable-panels";
5
5
  import '../../assets/components/d-resizable/DResizable.style.css';/* empty css */
6
- const u = (a) => {
7
- const e = r.c(4);
6
+ import { IconGripVertical as d } from "@tabler/icons-react";
7
+ const P = (a) => {
8
+ const e = s.c(4);
8
9
  let l;
9
10
  e[0] !== a ? (l = n("d-resizable", a), e[0] = a, e[1] = l) : l = e[1];
10
11
  const t = l;
11
- let s;
12
- return e[2] !== t ? (s = /* @__PURE__ */ i(o, { "data-slot": "resizable-panel-group", ...t }), e[2] = t, e[3] = s) : s = e[3], s;
13
- }, P = (a) => {
14
- const e = r.c(4);
12
+ let i;
13
+ return e[2] !== t ? (i = /* @__PURE__ */ r(o, { "data-slot": "resizable-panel-group", ...t }), e[2] = t, e[3] = i) : i = e[3], i;
14
+ }, p = (a) => {
15
+ const e = s.c(4);
15
16
  let l;
16
17
  e[0] !== a ? (l = n("d-resizable__panel", a), e[0] = a, e[1] = l) : l = e[1];
17
18
  let t;
18
- return e[2] !== l ? (t = /* @__PURE__ */ i(c, { "data-slot": "resizable-panel", ...l }), e[2] = l, e[3] = t) : t = e[3], t;
19
- }, h = (a) => {
20
- const e = r.c(5);
19
+ return e[2] !== l ? (t = /* @__PURE__ */ r(c, { "data-slot": "resizable-panel", ...l }), e[2] = l, e[3] = t) : t = e[3], t;
20
+ }, R = (a) => {
21
+ const e = s.c(5);
21
22
  let l;
22
23
  e[0] !== a ? (l = n("d-resizable__handle", a), e[0] = a, e[1] = l) : l = e[1];
23
24
  let t;
24
- e[2] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ i("div", { className: "d-resizable__handle-bar" }), e[2] = t) : t = e[2];
25
- let s;
26
- return e[3] !== l ? (s = /* @__PURE__ */ i(m, { "data-slot": "resizable-handle", ...l, children: t }), e[3] = l, e[4] = s) : s = e[4], s;
25
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ r("div", { className: "d-resizable__handle-bar", children: /* @__PURE__ */ r(d, { size: 16 }) }), e[2] = t) : t = e[2];
26
+ let i;
27
+ return e[3] !== l ? (i = /* @__PURE__ */ r(m, { "data-slot": "resizable-handle", ...l, children: t }), e[3] = l, e[4] = i) : i = e[4], i;
27
28
  };
28
29
  export {
29
- h as DResizableHandle,
30
- P as DResizablePanel,
31
- u as DResizablePanelGroup
30
+ R as DResizableHandle,
31
+ p as DResizablePanel,
32
+ P as DResizablePanelGroup
32
33
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as i, jsxs as s, Fragment as l } from "react/jsx-runtime";
2
- import m from "react";
2
+ import a from "react";
3
3
  import { Flex as A } from "../flex/Flex.js";
4
4
  import { Text as c } from "../text/Text.js";
5
- import { Badge as a } from "../badge/Badge.js";
5
+ import { Badge as m } from "../badge/Badge.js";
6
6
  import { IconCheck as T } from "@tabler/icons-react";
7
7
  import { Tooltip as _, TooltipTrigger as u, TooltipPortal as C, TooltipContent as R, TooltipArrow as f } from "../tooltip/Tooltip.js";
8
8
  const h = {
@@ -73,7 +73,7 @@ function g(e) {
73
73
  t.action,
74
74
  " ",
75
75
  /* @__PURE__ */ s(_, { children: [
76
- /* @__PURE__ */ i(u, { asChild: !0, children: /* @__PURE__ */ i(a, { color: "info", style: {
76
+ /* @__PURE__ */ i(u, { asChild: !0, children: /* @__PURE__ */ i(m, { color: "info", style: {
77
77
  verticalAlign: "middle"
78
78
  }, children: /* @__PURE__ */ i(c, { style: {
79
79
  color: "inherit"
@@ -103,7 +103,7 @@ function g(e) {
103
103
  return /* @__PURE__ */ s(l, { children: [
104
104
  "Can",
105
105
  " ",
106
- n.map((t, E) => /* @__PURE__ */ s(m.Fragment, { children: [
106
+ n.map((t, E) => /* @__PURE__ */ s(a.Fragment, { children: [
107
107
  E > 0 && ", ",
108
108
  r(t)
109
109
  ] }, t.category)),
@@ -115,7 +115,7 @@ function g(e) {
115
115
  const b = (e) => {
116
116
  const {
117
117
  abilities: r
118
- } = e, n = m.useMemo(() => S(r), [r]);
118
+ } = e, n = a.useMemo(() => S(r), [r]);
119
119
  return /* @__PURE__ */ i(c, { size: "sm", hierarchy: "secondary", children: g(n) });
120
120
  };
121
121
  export {
@@ -1,12 +1,12 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { Card as a } from "../card/Card.js";
3
- import S from "react";
4
- import { useService as l, useStore as v } from "../../utils/contextStore.js";
3
+ import l from "react";
4
+ import { useService as S, useStore as v } from "../../utils/contextStore.js";
5
5
  import "merge-props";
6
6
  import { DRuntimeReactiveService as m } from "./DRuntime.service.js";
7
7
  import R from "../card/CardSection.js";
8
8
  import { DRuntimeContent as C } from "./DRuntimeContent.js";
9
- const k = (n) => {
9
+ const j = (n) => {
10
10
  const {
11
11
  namespaceId: t,
12
12
  minimized: i = !1,
@@ -14,15 +14,15 @@ const k = (n) => {
14
14
  onSetting: s,
15
15
  onSelect: o,
16
16
  ...d
17
- } = n, p = l(m), u = v(m), f = S.useMemo(() => p.values({
17
+ } = n, u = S(m), f = v(m), p = l.useMemo(() => u.values({
18
18
  namespaceId: t
19
- }), [u, t]);
19
+ }), [f, t]);
20
20
  return /* @__PURE__ */ r(a, { ...d, ...i ? {
21
21
  paddingSize: "sm"
22
- } : {}, children: f.filter(c).map((e) => e.id && /* @__PURE__ */ r(R, { border: !0, hover: !0, onClick: () => {
22
+ } : {}, children: p.filter(c).map((e) => e.id && /* @__PURE__ */ r(R, { border: !0, hover: !0, onClick: () => {
23
23
  o && o(e);
24
24
  }, children: /* @__PURE__ */ r(C, { minimized: i, onSetting: s, runtimeId: e?.id }) }, e.id)) });
25
25
  };
26
26
  export {
27
- k as DRuntimeList
27
+ j as DRuntimeList
28
28
  };
@@ -1,6 +1,6 @@
1
1
  import { c } from "../../_virtual/compiler-runtime.js";
2
2
  import i from "react";
3
- const a = () => {
3
+ const m = () => {
4
4
  const e = c.c(2), [n, r] = i.useState(void 0);
5
5
  let s, o;
6
6
  return e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = () => {
@@ -12,5 +12,5 @@ const a = () => {
12
12
  };
13
13
  export {
14
14
  S as setUserSession,
15
- a as useUserSession
15
+ m as useUserSession
16
16
  };
@@ -1,7 +1,7 @@
1
- import { jsx as d, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as d, jsxs as u } from "react/jsx-runtime";
2
2
  import { c as V } from "../../_virtual/compiler-runtime.js";
3
3
  import w from "react";
4
- import { Flex as u } from "../flex/Flex.js";
4
+ import { Flex as p } from "../flex/Flex.js";
5
5
  import { Avatar as B } from "../avatar/Avatar.js";
6
6
  import { useUserSession as E } from "./DUser.session.hook.js";
7
7
  import { useService as k } from "../../utils/contextStore.js";
@@ -39,43 +39,43 @@ const Z = (D) => {
39
39
  let l;
40
40
  e[10] !== r.admin ? (l = r.admin ? /* @__PURE__ */ d(C, { color: "secondary", children: "Owner" }) : null, e[10] = r.admin, e[11] = l) : l = e[11];
41
41
  let s;
42
- e[12] !== i || e[13] !== l ? (s = /* @__PURE__ */ p(u, { align: "center", style: v, children: [
42
+ e[12] !== i || e[13] !== l ? (s = /* @__PURE__ */ u(p, { align: "center", style: v, children: [
43
43
  i,
44
44
  l
45
45
  ] }), e[12] = i, e[13] = l, e[14] = s) : s = e[14];
46
46
  let n;
47
47
  e[15] !== r.email ? (n = /* @__PURE__ */ d(R, { size: "sm", hierarchy: "tertiary", children: r.email }), e[15] = r.email, e[16] = n) : n = e[16];
48
48
  let m;
49
- e[17] !== s || e[18] !== n ? (m = /* @__PURE__ */ p(u, { style: g, children: [
49
+ e[17] !== s || e[18] !== n ? (m = /* @__PURE__ */ u(p, { style: g, children: [
50
50
  s,
51
51
  n
52
52
  ] }), e[17] = s, e[18] = n, e[19] = m) : m = e[19];
53
53
  let o;
54
- e[20] !== m || e[21] !== t ? (o = /* @__PURE__ */ p(u, { style: y, align: "center", children: [
54
+ e[20] !== m || e[21] !== t ? (o = /* @__PURE__ */ u(p, { style: y, align: "center", children: [
55
55
  t,
56
56
  m
57
57
  ] }), e[20] = m, e[21] = t, e[22] = o) : o = e[22];
58
- let S;
59
- e[23] === Symbol.for("react.memo_cache_sentinel") ? (S = {
58
+ let _;
59
+ e[23] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
60
60
  gap: "1.3rem"
61
- }, e[23] = S) : S = e[23];
61
+ }, e[23] = _) : _ = e[23];
62
62
  let c;
63
- e[24] !== r.emailVerifiedAt ? (c = r?.emailVerifiedAt ? /* @__PURE__ */ p(C, { border: !0, children: [
63
+ e[24] !== r.emailVerifiedAt ? (c = r?.emailVerifiedAt ? /* @__PURE__ */ u(C, { border: !0, children: [
64
64
  /* @__PURE__ */ d(M, { size: 16 }),
65
65
  /* @__PURE__ */ d(R, { size: "xs", hierarchy: "tertiary", children: "Email verified" })
66
66
  ] }) : null, e[24] = r.emailVerifiedAt, e[25] = c) : c = e[25];
67
67
  let a;
68
68
  e[26] !== j || e[27] !== A || e[28] !== U || e[29] !== r ? (a = null, e[26] = j, e[27] = A, e[28] = U, e[29] = r, e[30] = a) : a = e[30];
69
69
  let f;
70
- e[31] !== c || e[32] !== a ? (f = /* @__PURE__ */ p(u, { style: S, align: "center", children: [
70
+ e[31] !== c || e[32] !== a ? (f = /* @__PURE__ */ u(p, { style: _, align: "center", children: [
71
71
  c,
72
72
  a
73
73
  ] }), e[31] = c, e[32] = a, e[33] = f) : f = e[33];
74
- let _;
75
- return e[34] !== o || e[35] !== f ? (_ = /* @__PURE__ */ p(u, { justify: "space-between", align: "center", children: [
74
+ let S;
75
+ return e[34] !== o || e[35] !== f ? (S = /* @__PURE__ */ u(p, { justify: "space-between", align: "center", children: [
76
76
  o,
77
77
  f
78
- ] }), e[34] = o, e[35] = f, e[36] = _) : _ = e[36], _;
78
+ ] }), e[34] = o, e[35] = f, e[36] = S) : S = e[36], S;
79
79
  };
80
80
  function O() {
81
81
  }
@@ -14,8 +14,8 @@ import "@radix-ui/react-one-time-password-field";
14
14
  import "@radix-ui/react-radio-group";
15
15
  import "../form/SwitchInput.js";
16
16
  import { TextInput as L } from "../form/TextInput.js";
17
- import { Badge as m } from "../badge/Badge.js";
18
- import { Text as l } from "../text/Text.js";
17
+ import { Badge as l } from "../badge/Badge.js";
18
+ import { Text as m } from "../text/Text.js";
19
19
  import { useService as U, useStore as D } from "../../utils/contextStore.js";
20
20
  import { DUserReactiveService as g } from "./DUser.service.js";
21
21
  import { MenuLabel as w, MenuItem as z } from "../menu/Menu.js";
@@ -30,14 +30,14 @@ const P = (p) => {
30
30
  children: /* @__PURE__ */ o(s, { align: "end", style: {
31
31
  gap: "0.35rem"
32
32
  }, children: [
33
- /* @__PURE__ */ e(l, { children: r.username }),
34
- /* @__PURE__ */ e(l, { size: "xs", hierarchy: "tertiary", children: r.email })
33
+ /* @__PURE__ */ e(m, { children: r.username }),
34
+ /* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: r.email })
35
35
  ] }),
36
36
  insertMode: "insert",
37
37
  valueData: r,
38
38
  groupBy: "Users"
39
39
  })), [f]);
40
- return /* @__PURE__ */ e(L, { placeholder: "Enter users", suggestionsEmptyState: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(l, { children: "No user found" }) }), onLastTokenChange: (r) => {
40
+ return /* @__PURE__ */ e(L, { placeholder: "Enter users", suggestionsEmptyState: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(m, { children: "No user found" }) }), onLastTokenChange: (r) => {
41
41
  u.getByUsername(r);
42
42
  }, suggestionsFooter: /* @__PURE__ */ e(w, { children: /* @__PURE__ */ o(s, { style: {
43
43
  gap: ".35rem"
@@ -46,8 +46,8 @@ const P = (p) => {
46
46
  gap: "0.35rem"
47
47
  }, children: [
48
48
  /* @__PURE__ */ o(s, { children: [
49
- /* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(S, { size: 12 }) }),
50
- /* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(b, { size: 12 }) })
49
+ /* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(S, { size: 12 }) }),
50
+ /* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(b, { size: 12 }) })
51
51
  ] }),
52
52
  "move"
53
53
  ] }),
@@ -55,7 +55,7 @@ const P = (p) => {
55
55
  /* @__PURE__ */ o(s, { align: "center", style: {
56
56
  gap: ".35rem"
57
57
  }, children: [
58
- /* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(I, { size: 12 }) }),
58
+ /* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(I, { size: 12 }) }),
59
59
  "insert"
60
60
  ] })
61
61
  ] }) }), filterSuggestionsByLastToken: !0, enforceUniqueSuggestions: !0, transformSyntax: (r, a = []) => {
@@ -67,7 +67,7 @@ const P = (p) => {
67
67
  start: t,
68
68
  end: t + i.value.length,
69
69
  visualLength: 1,
70
- content: /* @__PURE__ */ e(m, { color: "info", border: !0, children: /* @__PURE__ */ o(l, { style: {
70
+ content: /* @__PURE__ */ e(l, { color: "info", border: !0, children: /* @__PURE__ */ o(m, { style: {
71
71
  color: "inherit"
72
72
  }, children: [
73
73
  "@",
@@ -1,22 +1,22 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import d from "react";
2
+ import p from "react";
3
3
  import { useService as u, useStore as l } from "../../utils/contextStore.js";
4
4
  import "merge-props";
5
5
  import { DUserReactiveService as t } from "./DUser.service.js";
6
- import { Card as v } from "../card/Card.js";
7
- import S from "../card/CardSection.js";
8
- import { DUserContent as a } from "./DUserContent.js";
9
- const k = (i) => {
6
+ import { Card as a } from "../card/Card.js";
7
+ import v from "../card/CardSection.js";
8
+ import { DUserContent as S } from "./DUserContent.js";
9
+ const j = (i) => {
10
10
  const {
11
11
  filter: m = () => !0,
12
12
  onRemove: s,
13
13
  onSelect: o,
14
14
  ...c
15
- } = i, n = u(t), f = l(t), p = d.useMemo(() => n.values(), [f]);
16
- return /* @__PURE__ */ e(v, { ...c, children: p.filter(m).map((r) => r && r.id && /* @__PURE__ */ e(S, { border: !0, hover: !0, onClick: () => {
15
+ } = i, n = u(t), f = l(t), d = p.useMemo(() => n.values(), [f]);
16
+ return /* @__PURE__ */ e(a, { ...c, children: d.filter(m).map((r) => r && r.id && /* @__PURE__ */ e(v, { border: !0, hover: !0, onClick: () => {
17
17
  o && o(r);
18
- }, children: /* @__PURE__ */ e(a, { onRemove: s, userId: r?.id }) }, r.id)) });
18
+ }, children: /* @__PURE__ */ e(S, { onRemove: s, userId: r?.id }) }, r.id)) });
19
19
  };
20
20
  export {
21
- k as DUserList
21
+ j as DUserList
22
22
  };
@@ -33,7 +33,7 @@ const E = (t) => {
33
33
  e[0] !== t ? (l = h("file-tabs__trigger", t), e[0] = t, e[1] = l) : l = e[1];
34
34
  const n = l;
35
35
  let c;
36
- e[2] !== t.closable || e[3] !== t.onClose ? (c = t.closable ? /* @__PURE__ */ a("div", { className: "file-tabs__trigger-icon", onClick: t.onClose, children: /* @__PURE__ */ a(S, { size: 16 }) }) : null, e[2] = t.closable, e[3] = t.onClose, e[4] = c) : c = e[4];
36
+ e[2] !== t.closable || e[3] !== t.onClose ? (c = t.closable ? /* @__PURE__ */ a("div", { className: "file-tabs__trigger-icon", onClick: t.onClose, children: /* @__PURE__ */ a(S, { size: 12 }) }) : null, e[2] = t.closable, e[3] = t.onClose, e[4] = c) : c = e[4];
37
37
  let s;
38
38
  return e[5] !== t.children || e[6] !== t.value || e[7] !== n || e[8] !== c ? (s = /* @__PURE__ */ m(v, { "data-slot": "tabs", "data-value": i, ...n, children: [
39
39
  t.children,
@@ -56,7 +56,7 @@ const E = (t) => {
56
56
  let f;
57
57
  e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(A, { orientation: "vertical", children: /* @__PURE__ */ a(F, {}) }), e[7] = f) : f = e[7];
58
58
  let r;
59
- e[8] !== o ? (r = /* @__PURE__ */ m($, { h: "700px", children: [
59
+ e[8] !== o ? (r = /* @__PURE__ */ m($, { h: "100%", children: [
60
60
  o,
61
61
  f
62
62
  ] }), e[8] = o, e[9] = r) : r = e[9];
@@ -2,11 +2,16 @@ import { FileTabsView } from './FileTabs.view';
2
2
  import { ReactiveArrayService, ReactiveArrayStore } from '../../utils/reactiveArrayService';
3
3
  export declare class FileTabsService extends ReactiveArrayService<FileTabsView> {
4
4
  constructor(store: ReactiveArrayStore<FileTabsView>);
5
+ getById(id: string): FileTabsView | undefined;
5
6
  clearLeft(): void;
6
7
  clearRight(): void;
7
8
  clearWithoutActive(): void;
9
+ clearAll(): void;
8
10
  activateTab(id: string): void;
11
+ removeTabById(id: string): void;
9
12
  delete(index: number): void;
13
+ deleteById(id: string): void;
14
+ registerTab(value: FileTabsView): void;
10
15
  add(value: FileTabsView): void;
11
16
  getActiveTab(): FileTabsView | undefined;
12
17
  getActiveIndex(): number;
@@ -1,42 +1,94 @@
1
- import { ReactiveArrayService as a } from "../../utils/reactiveArrayService.js";
2
- class v extends a {
1
+ import { ReactiveArrayService as n } from "../../utils/reactiveArrayService.js";
2
+ import { startTransition as h } from "react";
3
+ class v extends n {
3
4
  constructor(t) {
4
5
  super(t);
5
6
  }
7
+ getById(t) {
8
+ return this.values().find((e) => e.id === t);
9
+ }
6
10
  clearLeft() {
7
11
  const t = this.getActiveIndex();
8
- this.access.setState((e) => [...e.filter((i, s) => s >= t)]);
12
+ this.access.getState().forEach((e, i) => {
13
+ i >= t || this.removeTabById(e.id);
14
+ });
9
15
  }
10
16
  clearRight() {
11
17
  const t = this.getActiveIndex();
12
- this.access.setState((e) => [...e.filter((i, s) => s <= t)]);
18
+ this.access.getState().forEach((e, i) => {
19
+ i <= t || this.removeTabById(e.id);
20
+ });
13
21
  }
14
22
  clearWithoutActive() {
15
- const t = this.getActiveTab();
16
- t && this.access.setState((e) => [t]);
23
+ const t = this.getActiveIndex();
24
+ this.access.getState().forEach((e, i) => {
25
+ i != t && this.removeTabById(e.id);
26
+ });
27
+ }
28
+ clearAll() {
29
+ this.access.getState().forEach((t) => {
30
+ this.removeTabById(t.id);
31
+ });
17
32
  }
18
33
  activateTab(t) {
19
34
  this.values().forEach((i) => {
20
35
  i.active = !1;
21
36
  });
22
37
  const e = this.values().find((i) => i.id === t);
23
- e && (e.active = !0), this.update();
38
+ e && (e.active = !0, e.show = !0), this.update();
39
+ }
40
+ removeTabById(t) {
41
+ const e = this.getById(t), i = this.values().findIndex((s) => s.id === t);
42
+ if (e) {
43
+ if (e.active && this.has(i - 1)) {
44
+ const s = this.get(i - 1);
45
+ s.show && this.activateTab(s.id);
46
+ } else if (e.active && this.has(i + 1)) {
47
+ const s = this.get(i + 1);
48
+ s.show && this.activateTab(s.id);
49
+ }
50
+ e.show = !1, e.active = !1, this.update();
51
+ }
24
52
  }
25
53
  delete(t) {
26
54
  const e = this.get(t);
27
- e.active && this.has(t - 1) ? this.activateTab(this.get(t - 1).id) : e.active && this.has(t + 1) && this.activateTab(this.get(t + 1).id), super.delete(t);
55
+ e.active && this.has(t - 1) ? this.activateTab(this.get(t - 1).id) : e.active && this.has(t + 1) && this.activateTab(this.get(t + 1).id), super.delete(t), this.update();
56
+ }
57
+ deleteById(t) {
58
+ const e = this.values().findIndex((i) => i.id === t);
59
+ e !== -1 && this.delete(e), this.update();
60
+ }
61
+ registerTab(t) {
62
+ const e = {
63
+ ...t,
64
+ show: t.show ?? !1
65
+ };
66
+ h(() => {
67
+ this.access.setState((i) => i.findIndex((a) => a.id === e.id) !== -1 ? i : [...i, e]);
68
+ });
28
69
  }
29
70
  add(t) {
30
- if (this.values().some((e) => e.id == t.id)) {
31
- this.activateTab(t.id);
32
- return;
33
- }
34
- t.active && this.values().forEach((e) => {
35
- e.active = !1;
36
- }), super.add(t);
71
+ const e = {
72
+ ...t,
73
+ show: t.show ?? !0
74
+ };
75
+ h(() => {
76
+ this.access.setState((i) => {
77
+ const s = i.findIndex((c) => c.id === e.id), a = i.map((c) => ({
78
+ ...c,
79
+ active: e.active ? !1 : c.active
80
+ }));
81
+ return s !== -1 ? (a[s] = {
82
+ ...a[s],
83
+ ...e,
84
+ active: e.active ?? a[s].active,
85
+ show: e.show ?? a[s].show
86
+ }, a) : [...a, e];
87
+ });
88
+ });
37
89
  }
38
90
  getActiveTab() {
39
- return [...this.values()].reverse().find((e) => e.active);
91
+ return this.values().find((t) => t.active);
40
92
  }
41
93
  getActiveIndex() {
42
94
  return this.values().findIndex((t) => t.active);
@@ -6,4 +6,5 @@ export interface FileTabsView {
6
6
  content: React.ReactNode;
7
7
  active: boolean;
8
8
  lastActive?: Date;
9
+ show?: boolean;
9
10
  }
@@ -10,8 +10,8 @@ import '../../assets/components/form/Input.style.css';/* empty css
10
10
  import { IconMinus as T, IconCheck as q } from "@tabler/icons-react";
11
11
  const Y = (l) => {
12
12
  const e = $.c(40), {
13
- title: b,
14
- description: _,
13
+ title: _,
14
+ description: b,
15
15
  formValidation: k,
16
16
  ...N
17
17
  } = l;
@@ -29,9 +29,9 @@ const Y = (l) => {
29
29
  let v;
30
30
  e[5] !== t ? (v = [t], e[5] = t, e[6] = v) : v = e[6], z.useEffect(g, v);
31
31
  let o;
32
- e[7] !== b ? (o = b ? /* @__PURE__ */ n(F, { children: b }) : null, e[7] = b, e[8] = o) : o = e[8];
32
+ e[7] !== _ ? (o = _ ? /* @__PURE__ */ n(F, { children: _ }) : null, e[7] = _, e[8] = o) : o = e[8];
33
33
  let c;
34
- e[9] !== _ ? (c = _ ? /* @__PURE__ */ n(L, { children: _ }) : null, e[9] = _, e[10] = c) : c = e[10];
34
+ e[9] !== b ? (c = b ? /* @__PURE__ */ n(L, { children: b }) : null, e[9] = b, e[10] = c) : c = e[10];
35
35
  const V = `input ${i?.valid ? "" : "input--not-valid"} checkbox-input`;
36
36
  let s;
37
37
  e[11] !== V ? (s = E(V, {}), e[11] = V, e[12] = s) : s = e[12];
@@ -1,21 +1,21 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import a from "react";
3
- import { Input as m } from "./Input.js";
4
- import { IconX as l } from "@tabler/icons-react";
5
- import { Button as s } from "../button/Button.js";
6
- import { setElementKey as f } from "./Input.utils.js";
7
- const p = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/, g = (t) => p.test(t), I = a.forwardRef((t, x) => {
8
- x = x || a.useRef(null);
2
+ import o from "react";
3
+ import { Input as l } from "./Input.js";
4
+ import { IconX as m } from "@tabler/icons-react";
5
+ import { Button as f } from "../button/Button.js";
6
+ import { setElementKey as s } from "./Input.utils.js";
7
+ const p = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/, _ = (t) => p.test(t), g = o.forwardRef((t, x) => {
8
+ x = x || o.useRef(null);
9
9
  const {
10
10
  clearable: r = !1,
11
11
  right: n,
12
12
  ...c
13
13
  } = t, i = () => {
14
- x.current && f(x.current, "value", "", "change");
15
- }, o = [n];
16
- return r && o.push(/* @__PURE__ */ e(s, { onClick: i, children: /* @__PURE__ */ e(l, { size: 13 }) })), /* @__PURE__ */ e(m, { right: o, type: "email", ref: x, ...c });
14
+ x.current && s(x.current, "value", "", "change");
15
+ }, a = [n];
16
+ return r && a.push(/* @__PURE__ */ e(f, { onClick: i, children: /* @__PURE__ */ e(m, { size: 13 }) })), /* @__PURE__ */ e(l, { right: a, type: "email", ref: x, ...c });
17
17
  });
18
18
  export {
19
- I as EmailInput,
20
- g as emailValidation
19
+ g as EmailInput,
20
+ _ as emailValidation
21
21
  };