@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.
- package/dist/assets/components/badge/Badge.style.css +1 -1
- package/dist/assets/components/button/Button.style.css +1 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -1
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/badge/Badge.js +57 -17
- package/dist/components/breadcrumb/Breadcrumb.js +5 -5
- package/dist/components/button/Button.js +8 -8
- package/dist/components/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +191 -0
- package/dist/components/d-application/DApplication.service.d.ts +5 -0
- package/dist/components/d-application/DApplication.service.js +9 -0
- package/dist/components/d-flow/DFlow.d.ts +5 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
- package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
- package/dist/components/d-flow/DFlow.js +214 -199
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
- package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
- package/dist/components/d-flow/DFlow.service.d.ts +12 -7
- package/dist/components/d-flow/DFlow.service.js +117 -7
- package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
- package/dist/components/d-flow/DFlowEdge.js +69 -0
- package/dist/components/d-flow/index.d.ts +1 -10
- package/dist/components/d-flow/index.js +9 -44
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
- package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
- package/dist/components/d-flow-file/DFlowTabs.js +128 -0
- package/dist/components/d-flow-file/index.d.ts +1 -0
- package/dist/components/d-flow-file/index.js +4 -0
- package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
- package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
- package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
- package/dist/components/d-flow-panel/DFlowExport.js +32 -0
- package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
- package/dist/components/d-flow-panel/index.d.ts +5 -0
- package/dist/components/d-flow-panel/index.js +12 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
- package/dist/components/d-flow-suggestion/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
- package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
- package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
- package/dist/components/d-fullscreen/DFullScreen.js +2 -2
- package/dist/components/d-member/DNamespaceMemberList.js +5 -5
- package/dist/components/d-organization/DOrganizationList.js +7 -7
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +22 -22
- package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
- package/dist/components/d-project/DNamespaceProjectList.js +5 -5
- package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
- package/dist/components/d-resizable/DResizable.js +18 -17
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeList.js +7 -7
- package/dist/components/d-user/DUser.session.hook.js +2 -2
- package/dist/components/d-user/DUserContent.js +13 -13
- package/dist/components/d-user/DUserInput.js +9 -9
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/file-tabs/FileTabs.js +2 -2
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
- package/dist/components/file-tabs/FileTabs.service.js +68 -16
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +12 -12
- package/dist/components/form/Input.js +220 -206
- package/dist/components/form/Input.selection.hook.js +9 -9
- package/dist/components/form/Input.syntax.hook.js +7 -7
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +6 -6
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +10 -10
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +14 -12
- package/dist/index.d.ts +8 -0
- package/dist/index.js +117 -117
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/generics.d.ts +5 -6
- package/dist/utils/generics.js +2 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +5 -5
- package/package.json +7 -4
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/components/d-flow/DFlow.view.d.ts +0 -113
- package/dist/components/d-flow/DFlow.view.js +0 -248
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -81
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/export/DFlowExport.js +0 -24
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
- /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
- /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /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
|
|
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
|
|
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,
|
|
16
|
+
} = c, a = l(i), p = S(i), d = f.useMemo(() => a.values({
|
|
17
17
|
namespaceId: t
|
|
18
|
-
}), [
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
56
|
+
J as default
|
|
57
57
|
};
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
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
|
-
|
|
7
|
-
|
|
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
|
|
12
|
-
return e[2] !== t ? (
|
|
13
|
-
},
|
|
14
|
-
const e =
|
|
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__ */
|
|
19
|
-
},
|
|
20
|
-
const e =
|
|
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__ */
|
|
25
|
-
let
|
|
26
|
-
return e[3] !== l ? (
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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 =
|
|
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
|
|
4
|
-
import { useService as
|
|
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
|
|
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,
|
|
17
|
+
} = n, u = S(m), f = v(m), p = l.useMemo(() => u.values({
|
|
18
18
|
namespaceId: t
|
|
19
|
-
}), [
|
|
19
|
+
}), [f, t]);
|
|
20
20
|
return /* @__PURE__ */ r(a, { ...d, ...i ? {
|
|
21
21
|
paddingSize: "sm"
|
|
22
|
-
} : {}, children:
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
15
|
+
m as useUserSession
|
|
16
16
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as d, jsxs as
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
59
|
-
e[23] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
58
|
+
let _;
|
|
59
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
60
60
|
gap: "1.3rem"
|
|
61
|
-
}, e[23] =
|
|
61
|
+
}, e[23] = _) : _ = e[23];
|
|
62
62
|
let c;
|
|
63
|
-
e[24] !== r.emailVerifiedAt ? (c = r?.emailVerifiedAt ? /* @__PURE__ */
|
|
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
|
|
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 ? (
|
|
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] =
|
|
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
|
|
18
|
-
import { Text as
|
|
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(
|
|
34
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
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(
|
|
50
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
7
|
-
import
|
|
8
|
-
import { DUserContent as
|
|
9
|
-
const
|
|
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),
|
|
16
|
-
return /* @__PURE__ */ e(
|
|
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(
|
|
18
|
+
}, children: /* @__PURE__ */ e(S, { onRemove: s, userId: r?.id }) }, r.id)) });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
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:
|
|
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: "
|
|
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
|
|
2
|
-
|
|
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.
|
|
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.
|
|
18
|
+
this.access.getState().forEach((e, i) => {
|
|
19
|
+
i <= t || this.removeTabById(e.id);
|
|
20
|
+
});
|
|
13
21
|
}
|
|
14
22
|
clearWithoutActive() {
|
|
15
|
-
const t = this.
|
|
16
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
91
|
+
return this.values().find((t) => t.active);
|
|
40
92
|
}
|
|
41
93
|
getActiveIndex() {
|
|
42
94
|
return this.values().findIndex((t) => t.active);
|
|
@@ -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:
|
|
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] !==
|
|
32
|
+
e[7] !== _ ? (o = _ ? /* @__PURE__ */ n(F, { children: _ }) : null, e[7] = _, e[8] = o) : o = e[8];
|
|
33
33
|
let c;
|
|
34
|
-
e[9] !==
|
|
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
|
|
3
|
-
import { Input as
|
|
4
|
-
import { IconX as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { setElementKey as
|
|
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])+)\])/,
|
|
8
|
-
x = x ||
|
|
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 &&
|
|
15
|
-
},
|
|
16
|
-
return r &&
|
|
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
|
-
|
|
20
|
-
|
|
19
|
+
g as EmailInput,
|
|
20
|
+
_ as emailValidation
|
|
21
21
|
};
|