@code0-tech/pictor 0.0.0-mvp.45 → 0.0.0-mvp.47
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/components/avatar/Avatar.js +6 -7
- package/dist/components/data-table/DataTableFilterInput.js +5 -3
- package/dist/components/editor/Editor.js +29 -30
- package/dist/components/form/InputSuggestion.js +29 -29
- package/dist/components/form/useForm.d.ts +3 -3
- package/dist/components/form/useForm.js +16 -16
- package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
- package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
- package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
- package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
- package/dist/components/menu/Menu.js +8 -8
- package/dist/components/resizable/Resizable.d.ts +12 -0
- package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
- package/dist/components/tab/Tab.js +4 -4
- package/dist/components/toast/Toast.js +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +152 -273
- package/dist/node_modules/prettier/plugins/babel.js +6674 -6685
- package/dist/node_modules/prettier/plugins/estree.js +2830 -2628
- package/dist/node_modules/prettier/standalone.js +1657 -1440
- package/package.json +29 -29
- package/dist/assets/components/d-flow/DFlow.style.css +0 -1
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
- package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
- package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
- package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
- package/dist/components/d-application/DApplication.service.d.ts +0 -9
- package/dist/components/d-application/DApplication.service.js +0 -10
- package/dist/components/d-flow/DFlow.d.ts +0 -9
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
- package/dist/components/d-flow/DFlow.js +0 -484
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
- package/dist/components/d-flow/DFlow.service.d.ts +0 -21
- package/dist/components/d-flow/DFlow.service.js +0 -148
- package/dist/components/d-flow/DFlow.util.d.ts +0 -4
- package/dist/components/d-flow/DFlow.util.js +0 -63
- package/dist/components/d-flow/DFlow.view.d.ts +0 -4
- package/dist/components/d-flow/DFlow.view.js +0 -1
- package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
- package/dist/components/d-flow/DFlowEdge.js +0 -69
- package/dist/components/d-flow/index.d.ts +0 -4
- package/dist/components/d-flow/index.js +0 -10
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
- package/dist/components/d-flow-data-type/index.d.ts +0 -2
- package/dist/components/d-flow-data-type/index.js +0 -6
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -222
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -229
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
- package/dist/components/d-flow-file/DFlowTabDefault.js +0 -105
- package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
- package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
- package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
- package/dist/components/d-flow-file/DFlowTabs.js +0 -84
- package/dist/components/d-flow-file/index.d.ts +0 -1
- package/dist/components/d-flow-file/index.js +0 -4
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
- package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
- package/dist/components/d-flow-folder/index.d.ts +0 -4
- package/dist/components/d-flow-folder/index.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
- package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
- package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
- package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
- package/dist/components/d-flow-function/index.d.ts +0 -2
- package/dist/components/d-flow-function/index.js +0 -7
- package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
- package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -10
- package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
- package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
- package/dist/components/d-flow-node/DFlowNode.js +0 -1
- package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
- package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
- package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowExport.js +0 -33
- package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
- package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
- package/dist/components/d-flow-panel/index.d.ts +0 -5
- package/dist/components/d-flow-panel/index.js +0 -12
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -132
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -73
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
- package/dist/components/d-flow-suggestion/index.d.ts +0 -1
- package/dist/components/d-flow-suggestion/index.js +0 -4
- package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
- package/dist/components/d-flow-type/DFlowType.service.js +0 -13
- package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
- package/dist/components/d-flow-type/DFlowType.view.js +0 -93
- package/dist/components/d-flow-type/index.d.ts +0 -2
- package/dist/components/d-flow-type/index.js +0 -6
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
- package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
- package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -58
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
- package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
- package/dist/components/d-flow-validation/index.d.ts +0 -2
- package/dist/components/d-flow-validation/index.js +0 -6
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
- package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
- package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
- package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
- package/dist/components/d-license/index.d.ts +0 -2
- package/dist/components/d-license/index.js +0 -6
- package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
- package/dist/components/d-member/DNamespaceMember.service.js +0 -18
- package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
- package/dist/components/d-member/DNamespaceMember.view.js +0 -62
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
- package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
- package/dist/components/d-member/DNamespaceMemberList.js +0 -24
- package/dist/components/d-member/index.d.ts +0 -4
- package/dist/components/d-member/index.js +0 -10
- package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
- package/dist/components/d-namespace/DNamespace.service.js +0 -13
- package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
- package/dist/components/d-namespace/DNamespace.view.js +0 -65
- package/dist/components/d-namespace/index.d.ts +0 -2
- package/dist/components/d-namespace/index.js +0 -6
- package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
- package/dist/components/d-organization/DOrganization.service.js +0 -13
- package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
- package/dist/components/d-organization/DOrganization.view.js +0 -55
- package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
- package/dist/components/d-organization/DOrganizationCard.js +0 -16
- package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
- package/dist/components/d-organization/DOrganizationList.js +0 -24
- package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
- package/dist/components/d-organization/DOrganizationMenu.js +0 -18
- package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
- package/dist/components/d-organization/DOrganizatonContent.js +0 -102
- package/dist/components/d-organization/index.d.ts +0 -5
- package/dist/components/d-organization/index.js +0 -40
- package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProject.service.js +0 -13
- package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
- package/dist/components/d-project/DNamespaceProject.view.js +0 -78
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
- package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
- package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
- package/dist/components/d-project/DNamespaceProjectList.js +0 -26
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
- package/dist/components/d-project/index.d.ts +0 -5
- package/dist/components/d-project/index.js +0 -27
- package/dist/components/d-resizable/DResizable.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
- package/dist/components/d-role/DNamespaceRole.service.js +0 -13
- package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
- package/dist/components/d-role/DNamespaceRole.view.js +0 -61
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
- package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
- package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
- package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRoleList.js +0 -25
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
- package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
- package/dist/components/d-role/index.d.ts +0 -4
- package/dist/components/d-role/index.js +0 -10
- package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
- package/dist/components/d-runtime/DRuntime.service.js +0 -9
- package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
- package/dist/components/d-runtime/DRuntime.view.js +0 -76
- package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeCard.js +0 -18
- package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeContent.js +0 -46
- package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
- package/dist/components/d-runtime/DRuntimeList.js +0 -29
- package/dist/components/d-runtime/index.d.ts +0 -4
- package/dist/components/d-runtime/index.js +0 -10
- package/dist/components/d-user/DUser.service.d.ts +0 -20
- package/dist/components/d-user/DUser.service.js +0 -18
- package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
- package/dist/components/d-user/DUser.session.hook.js +0 -16
- package/dist/components/d-user/DUser.view.d.ts +0 -55
- package/dist/components/d-user/DUser.view.js +0 -103
- package/dist/components/d-user/DUserCard.d.ts +0 -8
- package/dist/components/d-user/DUserCard.js +0 -15
- package/dist/components/d-user/DUserContent.d.ts +0 -8
- package/dist/components/d-user/DUserContent.js +0 -52
- package/dist/components/d-user/DUserInput.d.ts +0 -7
- package/dist/components/d-user/DUserInput.js +0 -101
- package/dist/components/d-user/DUserList.d.ts +0 -9
- package/dist/components/d-user/DUserList.js +0 -23
- package/dist/components/d-user/DUserMenu.d.ts +0 -8
- package/dist/components/d-user/DUserMenu.js +0 -30
- package/dist/components/d-user/index.d.ts +0 -7
- package/dist/components/d-user/index.js +0 -27
- package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
- package/dist/utils/generics.d.ts +0 -21
- package/dist/utils/generics.js +0 -385
- /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
- /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
- /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { c as v } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import '../../assets/components/avatar/Avatar.style.css';/* empty css */
|
|
4
|
-
import { mergeCode0Props as y } from "../../utils/utils.js";
|
|
5
|
-
import
|
|
6
|
-
import { hashToColor as A } from "../d-flow/DFlow.util.js";
|
|
4
|
+
import { mergeCode0Props as y, hashToColor as z } from "../../utils/utils.js";
|
|
5
|
+
import A from "avvvatars-react";
|
|
7
6
|
const $ = (m) => {
|
|
8
7
|
const t = v.c(3), {
|
|
9
8
|
src: e,
|
|
@@ -19,17 +18,17 @@ const $ = (m) => {
|
|
|
19
18
|
type: s
|
|
20
19
|
} = m;
|
|
21
20
|
let o;
|
|
22
|
-
t[0] !== r || t[1] !== e ? (o = r ??
|
|
21
|
+
t[0] !== r || t[1] !== e ? (o = r ?? z(e), t[0] = r, t[1] = e, t[2] = o) : o = t[2];
|
|
23
22
|
let l;
|
|
24
23
|
t[3] !== o ? (l = {
|
|
25
24
|
"--color": o
|
|
26
25
|
}, t[3] = o, t[4] = l) : l = t[4];
|
|
27
26
|
const c = l, n = s ?? "shape";
|
|
28
27
|
let a;
|
|
29
|
-
t[5] !== e || t[6] !== i || t[7] !== n ? (a = /* @__PURE__ */ d(
|
|
28
|
+
t[5] !== e || t[6] !== i || t[7] !== n ? (a = /* @__PURE__ */ d(A, { style: n, value: e, size: i }), t[5] = e, t[6] = i, t[7] = n, t[8] = a) : a = t[8];
|
|
30
29
|
let f;
|
|
31
30
|
return t[9] !== c || t[10] !== a ? (f = /* @__PURE__ */ d("div", { style: c, children: a }), t[9] = c, t[10] = a, t[11] = f) : f = t[11], f;
|
|
32
|
-
},
|
|
31
|
+
}, P = (m) => {
|
|
33
32
|
const t = v.c(16);
|
|
34
33
|
let e, i, r, s, o, l;
|
|
35
34
|
if (t[0] !== m) {
|
|
@@ -50,5 +49,5 @@ const $ = (m) => {
|
|
|
50
49
|
return t[13] !== o || t[14] !== c ? (n = /* @__PURE__ */ d("div", { ...o, children: c }), t[13] = o, t[14] = c, t[15] = n) : n = t[15], n;
|
|
51
50
|
};
|
|
52
51
|
export {
|
|
53
|
-
|
|
52
|
+
P as Avatar
|
|
54
53
|
};
|
|
@@ -4,9 +4,11 @@ import { Editor as z } from "../editor/Editor.js";
|
|
|
4
4
|
import { StreamLanguage as U, syntaxTree as J } from "@codemirror/language";
|
|
5
5
|
import { EditorState as K } from "@uiw/react-codemirror";
|
|
6
6
|
import { Badge as b } from "../badge/Badge.js";
|
|
7
|
-
import { hashToColor as X } from "../d-flow/DFlow.util.js";
|
|
8
7
|
import { DataTableFilterSuggestionMenu as j } from "./DataTableFilterSuggestionMenu.js";
|
|
9
8
|
import { MenuItem as G } from "../menu/Menu.js";
|
|
9
|
+
import "../../utils/contextStore.js";
|
|
10
|
+
import "react";
|
|
11
|
+
import { hashToColor as X } from "../../utils/utils.js";
|
|
10
12
|
const $ = {
|
|
11
13
|
"=": "isOneOf",
|
|
12
14
|
"!=": "isNotOneOf"
|
|
@@ -40,7 +42,7 @@ const $ = {
|
|
|
40
42
|
}
|
|
41
43
|
return e.next(), null;
|
|
42
44
|
}
|
|
43
|
-
}),
|
|
45
|
+
}), ye = (r) => {
|
|
44
46
|
const e = Q.c(17), {
|
|
45
47
|
filterTokens: n,
|
|
46
48
|
onChange: k
|
|
@@ -205,6 +207,6 @@ function ne(r) {
|
|
|
205
207
|
return r.docChanged && r.newDoc.lines > 1 ? [] : r;
|
|
206
208
|
}
|
|
207
209
|
export {
|
|
208
|
-
|
|
210
|
+
ye as DataTableFilterInput,
|
|
209
211
|
Z as createFilterQueryLanguage
|
|
210
212
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import m, { isValidElement as ce } from "react";
|
|
3
|
-
import { createPortal as
|
|
3
|
+
import { createPortal as K } from "react-dom";
|
|
4
4
|
import "../../utils/contextStore.js";
|
|
5
|
-
import { mergeCode0Props as ue } from "../../utils/utils.js";
|
|
6
|
-
import de, { Prec as
|
|
5
|
+
import { hashToColor as b, mergeCode0Props as ue } from "../../utils/utils.js";
|
|
6
|
+
import de, { Prec as _, keymap as J, ViewPlugin as me, RangeSetBuilder as he, Decoration as F, EditorView as fe, WidgetType as ge } from "@uiw/react-codemirror";
|
|
7
7
|
import { json as pe, jsonParseLinter as ye } from "@codemirror/lang-json";
|
|
8
8
|
import { syntaxTree as L } from "@codemirror/language";
|
|
9
9
|
import { linter as be } from "@codemirror/lint";
|
|
@@ -11,11 +11,10 @@ import ve from "../../node_modules/prettier/standalone.js";
|
|
|
11
11
|
import we from "../../node_modules/prettier/plugins/babel.js";
|
|
12
12
|
import Se from "../../node_modules/prettier/plugins/estree.js";
|
|
13
13
|
import { createTheme as Ce } from "@uiw/codemirror-themes";
|
|
14
|
-
import { tags as
|
|
15
|
-
import { hashToColor as v } from "../d-flow/DFlow.util.js";
|
|
14
|
+
import { tags as v, getStyleTags as Te } from "../../node_modules/@lezer/highlight/dist/index.js";
|
|
16
15
|
import '../../assets/components/editor/Editor.styles.css';/* empty css */
|
|
17
16
|
import { Badge as y } from "../badge/Badge.js";
|
|
18
|
-
import { IconExclamationCircle as
|
|
17
|
+
import { IconExclamationCircle as Ae, IconAlertTriangle as xe, IconAlertSquareRounded as ke, IconInfoCircle as Ee, IconSpace as ze, IconArrowBarToRight as Pe, IconCornerDownLeft as je } from "@tabler/icons-react";
|
|
19
18
|
import { Text as a } from "../text/Text.js";
|
|
20
19
|
import { Flex as k } from "../flex/Flex.js";
|
|
21
20
|
import { Tooltip as E, TooltipTrigger as z, TooltipPortal as P, TooltipContent as j, TooltipArrow as V } from "../tooltip/Tooltip.js";
|
|
@@ -70,22 +69,22 @@ const Fe = Ce({
|
|
|
70
69
|
lineHighlight: "rgba(255,255,255, 0.1)"
|
|
71
70
|
},
|
|
72
71
|
styles: [{
|
|
73
|
-
tag:
|
|
74
|
-
color:
|
|
72
|
+
tag: v.squareBracket,
|
|
73
|
+
color: b("squareBracket")
|
|
75
74
|
}, {
|
|
76
|
-
tag:
|
|
77
|
-
color:
|
|
75
|
+
tag: v.bracket,
|
|
76
|
+
color: b("bracket")
|
|
78
77
|
}, {
|
|
79
|
-
tag:
|
|
80
|
-
color:
|
|
78
|
+
tag: v.string,
|
|
79
|
+
color: b("Text")
|
|
81
80
|
}, {
|
|
82
|
-
tag:
|
|
83
|
-
color:
|
|
81
|
+
tag: v.bool,
|
|
82
|
+
color: b("Boolean")
|
|
84
83
|
}, {
|
|
85
|
-
tag:
|
|
86
|
-
color:
|
|
84
|
+
tag: v.number,
|
|
85
|
+
color: b("Number")
|
|
87
86
|
}]
|
|
88
|
-
}), Oe = (i) => ce(i) || typeof i == "string" || typeof i == "number" || Array.isArray(i),
|
|
87
|
+
}), Oe = (i) => ce(i) || typeof i == "string" || typeof i == "number" || Array.isArray(i), at = (i) => {
|
|
89
88
|
const {
|
|
90
89
|
language: r,
|
|
91
90
|
tokenizer: h,
|
|
@@ -140,10 +139,10 @@ const Fe = Ce({
|
|
|
140
139
|
} : {
|
|
141
140
|
override: [w]
|
|
142
141
|
}
|
|
143
|
-
})), e.push(
|
|
142
|
+
})), e.push(_.highest(J.of([{
|
|
144
143
|
key: "Tab",
|
|
145
144
|
run: Re
|
|
146
|
-
}]))), D && e.push(
|
|
145
|
+
}]))), D && e.push(_.highest(J.of([{
|
|
147
146
|
key: "ArrowUp",
|
|
148
147
|
run: (l) => (f || N(l), !0)
|
|
149
148
|
}, {
|
|
@@ -165,15 +164,15 @@ const Fe = Ce({
|
|
|
165
164
|
const l = new he(), u = Object.keys(g || {});
|
|
166
165
|
return L(o.state).iterate({
|
|
167
166
|
enter: (d) => {
|
|
168
|
-
const
|
|
169
|
-
if (
|
|
167
|
+
const A = o.state.doc.sliceString(d.from, d.to);
|
|
168
|
+
if (A.includes(`
|
|
170
169
|
`)) return;
|
|
171
|
-
const q = h?.(
|
|
172
|
-
|
|
173
|
-
widget: new X(
|
|
170
|
+
const q = h?.(A), ae = Te(d)?.tags.map((x) => "name" in x ? x.name : void 0), H = u.find((x) => ae?.includes(x));
|
|
171
|
+
H && !q ? l.add(d.from, d.to, F.replace({
|
|
172
|
+
widget: new X(H, A),
|
|
174
173
|
point: !0
|
|
175
174
|
})) : q && l.add(d.from, d.to, F.replace({
|
|
176
|
-
widget: new X(q,
|
|
175
|
+
widget: new X(q, A),
|
|
177
176
|
point: !0
|
|
178
177
|
}));
|
|
179
178
|
}
|
|
@@ -237,7 +236,7 @@ const Fe = Ce({
|
|
|
237
236
|
}, align: "center", children: [
|
|
238
237
|
c.filter((e) => e.severity == "error").length > 0 ? /* @__PURE__ */ s(E, { children: [
|
|
239
238
|
/* @__PURE__ */ t(z, { asChild: !0, children: /* @__PURE__ */ s(y, { color: "red", children: [
|
|
240
|
-
/* @__PURE__ */ t(
|
|
239
|
+
/* @__PURE__ */ t(Ae, { size: 13 }),
|
|
241
240
|
/* @__PURE__ */ t(a, { children: c.filter((e) => e.severity == "error").length })
|
|
242
241
|
] }) }),
|
|
243
242
|
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ s(j, { side: "bottom", children: [
|
|
@@ -247,7 +246,7 @@ const Fe = Ce({
|
|
|
247
246
|
] }) : null,
|
|
248
247
|
c.filter((e) => e.severity == "warning").length > 0 ? /* @__PURE__ */ s(E, { children: [
|
|
249
248
|
/* @__PURE__ */ t(z, { asChild: !0, children: /* @__PURE__ */ s(y, { color: "orange", children: [
|
|
250
|
-
/* @__PURE__ */ t(
|
|
249
|
+
/* @__PURE__ */ t(xe, { size: 13 }),
|
|
251
250
|
/* @__PURE__ */ t(a, { children: c.filter((e) => e.severity == "warning").length })
|
|
252
251
|
] }) }),
|
|
253
252
|
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ s(j, { side: "bottom", children: [
|
|
@@ -316,13 +315,13 @@ const Fe = Ce({
|
|
|
316
315
|
}, onUpdate: M, basicSetup: ee }),
|
|
317
316
|
g && Array.from(oe.entries()).map(([e, n]) => {
|
|
318
317
|
const o = g[n.type];
|
|
319
|
-
return o ?
|
|
318
|
+
return o ? K(/* @__PURE__ */ t("div", { style: {
|
|
320
319
|
display: "contents"
|
|
321
320
|
}, children: o({
|
|
322
321
|
content: n.value
|
|
323
322
|
}) }, e.outerHTML + n.value), e) : null;
|
|
324
323
|
}),
|
|
325
|
-
f &&
|
|
324
|
+
f && K(/* @__PURE__ */ t("div", { ref: B, style: {
|
|
326
325
|
position: "fixed",
|
|
327
326
|
top: f.position.top,
|
|
328
327
|
left: f.position.left,
|
|
@@ -334,5 +333,5 @@ const Fe = Ce({
|
|
|
334
333
|
] });
|
|
335
334
|
};
|
|
336
335
|
export {
|
|
337
|
-
|
|
336
|
+
at as Editor
|
|
338
337
|
};
|
|
@@ -4,50 +4,50 @@ import { MenuItem as L, MenuContent as F, MenuLabel as k } from "../menu/Menu.js
|
|
|
4
4
|
import i from "react";
|
|
5
5
|
import { ScrollArea as N, ScrollAreaViewport as O, ScrollAreaScrollbar as T, ScrollAreaThumb as j } from "../scroll-area/ScrollArea.js";
|
|
6
6
|
import { IconChevronDown as $, IconChevronUp as z } from "@tabler/icons-react";
|
|
7
|
-
const D = i.memo((
|
|
7
|
+
const D = i.memo((l) => {
|
|
8
8
|
const e = x.c(17), {
|
|
9
9
|
suggestion: n,
|
|
10
|
-
visibleIndex:
|
|
10
|
+
visibleIndex: u,
|
|
11
11
|
isActive: p,
|
|
12
12
|
inputRef: d,
|
|
13
13
|
onSelect: v,
|
|
14
14
|
onActivate: c,
|
|
15
15
|
itemRef: f
|
|
16
|
-
} =
|
|
17
|
-
if (
|
|
16
|
+
} = l;
|
|
17
|
+
if (u === null)
|
|
18
18
|
return null;
|
|
19
19
|
let m;
|
|
20
|
-
if (e[0] !== d || e[1] !== c || e[2] !==
|
|
20
|
+
if (e[0] !== d || e[1] !== c || e[2] !== u) {
|
|
21
21
|
const b = () => {
|
|
22
|
-
c(
|
|
22
|
+
c(u), d?.current?.focus({
|
|
23
23
|
preventScroll: !0
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
m = (M) => {
|
|
27
27
|
M.preventDefault(), b();
|
|
28
|
-
}, e[0] = d, e[1] = c, e[2] =
|
|
28
|
+
}, e[0] = d, e[1] = c, e[2] = u, e[3] = m;
|
|
29
29
|
} else
|
|
30
30
|
m = e[3];
|
|
31
31
|
const g = m;
|
|
32
32
|
let a;
|
|
33
|
-
e[4] !== c || e[5] !==
|
|
34
|
-
b.preventDefault(), b.stopPropagation(), c(
|
|
35
|
-
}, e[4] = c, e[5] =
|
|
33
|
+
e[4] !== c || e[5] !== u ? (a = (b) => {
|
|
34
|
+
b.preventDefault(), b.stopPropagation(), c(u);
|
|
35
|
+
}, e[4] = c, e[5] = u, e[6] = a) : a = e[6];
|
|
36
36
|
const y = a;
|
|
37
37
|
let C;
|
|
38
38
|
e[7] !== v || e[8] !== n ? (C = () => setTimeout(() => v(n), 0), e[7] = v, e[8] = n, e[9] = C) : C = e[9];
|
|
39
39
|
let o;
|
|
40
40
|
return e[10] !== g || e[11] !== y || e[12] !== p || e[13] !== f || e[14] !== n.children || e[15] !== C ? (o = /* @__PURE__ */ I(L, { textValue: "", onPointerDown: g, onPointerMove: y, onSelect: C, "data-focus": p, ref: f, children: n.children }), e[10] = g, e[11] = y, e[12] = p, e[13] = f, e[14] = n.children, e[15] = C, e[16] = o) : o = e[16], o;
|
|
41
|
-
}, (
|
|
41
|
+
}, (l, e) => l.suggestion === e.suggestion && l.visibleIndex === e.visibleIndex && l.isActive === e.isActive && l.inputRef === e.inputRef && l.onSelect === e.onSelect && l.onActivate === e.onActivate && l.itemRef === e.itemRef);
|
|
42
42
|
D.displayName = "SuggestionMenuItem";
|
|
43
|
-
const P = i.forwardRef((
|
|
43
|
+
const P = i.forwardRef((l, e) => {
|
|
44
44
|
const n = x.c(12);
|
|
45
|
-
let
|
|
46
|
-
n[0] !==
|
|
47
|
-
children:
|
|
45
|
+
let u, p, d;
|
|
46
|
+
n[0] !== l ? ({
|
|
47
|
+
children: u,
|
|
48
48
|
inputRef: p,
|
|
49
49
|
...d
|
|
50
|
-
} =
|
|
50
|
+
} = l, n[0] = l, n[1] = u, n[2] = p, n[3] = d) : (u = n[1], p = n[2], d = n[3]);
|
|
51
51
|
const v = i.useRef(null);
|
|
52
52
|
let c, f;
|
|
53
53
|
n[4] !== p ? (c = (g) => {
|
|
@@ -58,17 +58,17 @@ const P = i.forwardRef((u, e) => {
|
|
|
58
58
|
preventScroll: !0
|
|
59
59
|
}), n[4] = p, n[5] = c, n[6] = f) : (c = n[5], f = n[6]);
|
|
60
60
|
let m;
|
|
61
|
-
return n[7] !==
|
|
61
|
+
return n[7] !== u || n[8] !== d || n[9] !== c || n[10] !== f ? (m = /* @__PURE__ */ I(F, { ref: v, onContextMenuCapture: H, onInteractOutside: U, onCloseAutoFocus: q, onOpenAutoFocus: c, onFocusCapture: f, align: "start", sideOffset: 8, ...d, children: u }), n[7] = u, n[8] = d, n[9] = c, n[10] = f, n[11] = m) : m = n[11], m;
|
|
62
62
|
});
|
|
63
63
|
P.displayName = "InputSuggestionMenuContent";
|
|
64
|
-
const Z = i.memo(P), V = i.forwardRef((
|
|
64
|
+
const Z = i.memo(P), V = i.forwardRef((l, e) => {
|
|
65
65
|
const {
|
|
66
66
|
suggestions: n,
|
|
67
|
-
onSuggestionSelect:
|
|
67
|
+
onSuggestionSelect: u = () => {
|
|
68
68
|
},
|
|
69
69
|
inputRef: p,
|
|
70
70
|
...d
|
|
71
|
-
} =
|
|
71
|
+
} = l, v = i.useRef([]), c = i.useRef(/* @__PURE__ */ new Map()), [f, m] = i.useState({}), g = i.useRef(null), a = i.useCallback((t, r) => {
|
|
72
72
|
const s = g.current;
|
|
73
73
|
if (!(!r?.force && s === t) && (s !== null && v.current[s]?.removeAttribute("data-focus"), g.current = t, t !== null)) {
|
|
74
74
|
const h = v.current[t];
|
|
@@ -155,10 +155,10 @@ const Z = i.memo(P), V = i.forwardRef((u, e) => {
|
|
|
155
155
|
const t = g.current;
|
|
156
156
|
if (t === null || !o[t]) return;
|
|
157
157
|
const r = o[t];
|
|
158
|
-
return setTimeout(() =>
|
|
158
|
+
return setTimeout(() => u(r), 0), r;
|
|
159
159
|
},
|
|
160
160
|
clearActiveItem: () => a(null)
|
|
161
|
-
}), [
|
|
161
|
+
}), [u, a, o]);
|
|
162
162
|
const b = (t) => {
|
|
163
163
|
m((r) => ({
|
|
164
164
|
...r,
|
|
@@ -191,7 +191,7 @@ const Z = i.memo(P), V = i.forwardRef((u, e) => {
|
|
|
191
191
|
visibleIndex: S,
|
|
192
192
|
isActive: w,
|
|
193
193
|
inputRef: p,
|
|
194
|
-
onSelect:
|
|
194
|
+
onSelect: u,
|
|
195
195
|
onActivate: a,
|
|
196
196
|
itemRef: S !== null ? M(S) : void 0
|
|
197
197
|
}
|
|
@@ -203,14 +203,14 @@ const Z = i.memo(P), V = i.forwardRef((u, e) => {
|
|
|
203
203
|
});
|
|
204
204
|
V.displayName = "InputSuggestionMenuContentItems";
|
|
205
205
|
const _ = i.memo(V);
|
|
206
|
-
function H(
|
|
207
|
-
return
|
|
206
|
+
function H(l) {
|
|
207
|
+
return l.stopPropagation();
|
|
208
208
|
}
|
|
209
|
-
function U(
|
|
210
|
-
return
|
|
209
|
+
function U(l) {
|
|
210
|
+
return l.target instanceof HTMLInputElement && l.preventDefault();
|
|
211
211
|
}
|
|
212
|
-
function q(
|
|
213
|
-
return
|
|
212
|
+
function q(l) {
|
|
213
|
+
return l.preventDefault();
|
|
214
214
|
}
|
|
215
215
|
export {
|
|
216
216
|
Z as InputSuggestionMenuContent,
|
|
@@ -8,9 +8,9 @@ export interface FormValidationProps<Values> {
|
|
|
8
8
|
onSubmit?: (values: Values) => void;
|
|
9
9
|
}
|
|
10
10
|
export interface ValidationProps<Value> {
|
|
11
|
-
initialValue?: Value |
|
|
12
|
-
defaultValue?: Value |
|
|
13
|
-
value?: Value |
|
|
11
|
+
initialValue?: Value | undefined;
|
|
12
|
+
defaultValue?: Value | undefined;
|
|
13
|
+
value?: Value | undefined;
|
|
14
14
|
required?: boolean;
|
|
15
15
|
formValidation?: {
|
|
16
16
|
setValue: (value: any) => void;
|
|
@@ -10,15 +10,15 @@ function S(r, t) {
|
|
|
10
10
|
if (typeof r != "object" || !r) return r;
|
|
11
11
|
var e = r[Symbol.toPrimitive];
|
|
12
12
|
if (e !== void 0) {
|
|
13
|
-
var
|
|
14
|
-
if (typeof
|
|
13
|
+
var i = e.call(r, t);
|
|
14
|
+
if (typeof i != "object") return i;
|
|
15
15
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
16
16
|
}
|
|
17
17
|
return (t === "string" ? String : Number)(r);
|
|
18
18
|
}
|
|
19
19
|
class f {
|
|
20
|
-
constructor(t, e,
|
|
21
|
-
c(this, "changeValue", void 0), c(this, "currentValues", void 0), c(this, "currentValidations", void 0), this.changeValue = t, this.currentValues = e, this.currentValidations =
|
|
20
|
+
constructor(t, e, i) {
|
|
21
|
+
c(this, "changeValue", void 0), c(this, "currentValues", void 0), c(this, "currentValidations", void 0), this.changeValue = t, this.currentValues = e, this.currentValidations = i;
|
|
22
22
|
}
|
|
23
23
|
isValid() {
|
|
24
24
|
if (!this.currentValidations) return !0;
|
|
@@ -30,14 +30,14 @@ class f {
|
|
|
30
30
|
return !0;
|
|
31
31
|
}
|
|
32
32
|
getInputProps(t) {
|
|
33
|
-
const e = this.currentValues[t],
|
|
33
|
+
const e = this.currentValues[t], i = e ?? null, u = t, a = (this.currentValidations && this.currentValidations[t] ? this.currentValidations[t] : (n) => null)(e, this.currentValues);
|
|
34
34
|
return {
|
|
35
35
|
// @ts-ignore – z.B. wenn dein Input `defaultValue` kennt
|
|
36
|
-
defaultValue:
|
|
37
|
-
initialValue:
|
|
36
|
+
defaultValue: i,
|
|
37
|
+
initialValue: i || void 0,
|
|
38
38
|
formValidation: {
|
|
39
|
-
setValue: (
|
|
40
|
-
this.changeValue(u,
|
|
39
|
+
setValue: (n) => {
|
|
40
|
+
this.changeValue(u, n);
|
|
41
41
|
},
|
|
42
42
|
notValidMessage: a,
|
|
43
43
|
valid: a === null
|
|
@@ -52,11 +52,11 @@ const _ = (r) => {
|
|
|
52
52
|
const {
|
|
53
53
|
initialValues: t,
|
|
54
54
|
validate: e = {},
|
|
55
|
-
truthyValidationBeforeSubmit:
|
|
55
|
+
truthyValidationBeforeSubmit: i = !0,
|
|
56
56
|
onSubmit: u
|
|
57
|
-
} = r, [o, a] = b(t),
|
|
57
|
+
} = r, [o, a] = b(t), n = p(t);
|
|
58
58
|
y(() => {
|
|
59
|
-
a(t),
|
|
59
|
+
a(t), n.current = t;
|
|
60
60
|
}, [t]);
|
|
61
61
|
const s = d((l, m) => {
|
|
62
62
|
a((g) => {
|
|
@@ -64,12 +64,12 @@ const _ = (r) => {
|
|
|
64
64
|
...g,
|
|
65
65
|
[l]: m
|
|
66
66
|
};
|
|
67
|
-
return
|
|
67
|
+
return n.current = V, V;
|
|
68
68
|
});
|
|
69
69
|
}, []), h = P(() => new f(s, o, e), [s, o, e]), v = d(() => {
|
|
70
|
-
const l = new f(s,
|
|
71
|
-
u && (!
|
|
72
|
-
}, [s, e, u,
|
|
70
|
+
const l = new f(s, n.current, e);
|
|
71
|
+
u && (!i || l.isValid()) && u(n.current);
|
|
72
|
+
}, [s, e, u, i]);
|
|
73
73
|
return [h, v];
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Code0Component } from '../../utils/types';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
export interface
|
|
3
|
+
export interface FullScreenProps extends Code0Component<HTMLDivElement> {
|
|
4
4
|
children: React.ReactNode | React.ReactNode[];
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const FullScreen: React.FC<FullScreenProps>;
|
|
@@ -2,7 +2,7 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as f } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import l from "react";
|
|
4
4
|
import { mergeCode0Props as m } from "../../utils/utils.js";
|
|
5
|
-
import '../../assets/components/
|
|
5
|
+
import '../../assets/components/fullscreen/FullScreen.style.css';/* empty css */
|
|
6
6
|
const y = (i) => {
|
|
7
7
|
const e = f.c(7), t = l.useRef(null);
|
|
8
8
|
let r, o;
|
|
@@ -22,5 +22,5 @@ const y = (i) => {
|
|
|
22
22
|
return e[4] !== i.children || e[5] !== n ? (d = /* @__PURE__ */ u("div", { ...n, ref: t, children: i.children }), e[4] = i.children, e[5] = n, e[6] = d) : d = e[6], d;
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
y as
|
|
25
|
+
y as FullScreen
|
|
26
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, CSSProperties } from 'react';
|
|
2
2
|
import { Code0Component, Code0Sizes } from '../../utils/types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface LayoutProps extends Code0Component<HTMLDivElement> {
|
|
4
4
|
children: React.ReactElement;
|
|
5
5
|
topContent?: React.ReactElement;
|
|
6
6
|
bottomContent?: React.ReactElement;
|
|
@@ -9,4 +9,4 @@ export interface DLayoutProps extends Code0Component<HTMLDivElement> {
|
|
|
9
9
|
layoutGap?: Code0Sizes | CSSProperties['gap'];
|
|
10
10
|
showLayoutSplitter?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const Layout: React.FC<LayoutProps>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as D } from "react/jsx-runtime";
|
|
2
2
|
import { c as $ } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { mergeCode0Props as k, getDOMSizeFromCodeZeroSize as F } from "../../utils/utils.js";
|
|
4
4
|
import { Flex as G } from "../flex/Flex.js";
|
|
5
|
-
import '../../assets/components/
|
|
6
|
-
const J = (
|
|
5
|
+
import '../../assets/components/layout/Layout.style.css';/* empty css */
|
|
6
|
+
const J = (L) => {
|
|
7
7
|
const t = $.c(56);
|
|
8
8
|
let l, n, r, i, o, e, d, a;
|
|
9
|
-
if (t[0] !==
|
|
9
|
+
if (t[0] !== L) {
|
|
10
10
|
const {
|
|
11
11
|
children: E,
|
|
12
12
|
topContent: M,
|
|
13
13
|
bottomContent: O,
|
|
14
14
|
leftContent: P,
|
|
15
15
|
rightContent: R,
|
|
16
|
-
showLayoutSplitter:
|
|
17
|
-
layoutGap:
|
|
16
|
+
showLayoutSplitter: j,
|
|
17
|
+
layoutGap: w,
|
|
18
18
|
...Z
|
|
19
|
-
} =
|
|
20
|
-
n = E, a = M, l = O, i = P, o = R, e =
|
|
19
|
+
} = L;
|
|
20
|
+
n = E, a = M, l = O, i = P, o = R, e = j === void 0 ? !0 : j, r = w === void 0 ? "xl" : w, d = k("d-layout", Z), t[0] = L, t[1] = l, t[2] = n, t[3] = r, t[4] = i, t[5] = o, t[6] = e, t[7] = d, t[8] = a;
|
|
21
21
|
} else
|
|
22
22
|
l = t[1], n = t[2], r = t[3], i = t[4], o = t[5], e = t[6], d = t[7], a = t[8];
|
|
23
23
|
let c;
|
|
@@ -48,7 +48,7 @@ const J = (D) => {
|
|
|
48
48
|
let C;
|
|
49
49
|
t[32] !== o ? (C = o && /* @__PURE__ */ s("div", { className: "d-layout__right", children: o }), t[32] = o, t[33] = C) : C = t[33];
|
|
50
50
|
let g;
|
|
51
|
-
t[34] !== N || t[35] !== C || t[36] !== y || t[37] !== p || t[38] !== h || t[39] !== v ? (g = /* @__PURE__ */
|
|
51
|
+
t[34] !== N || t[35] !== C || t[36] !== y || t[37] !== p || t[38] !== h || t[39] !== v ? (g = /* @__PURE__ */ D(G, { className: "d-layout__middle", style: y, children: [
|
|
52
52
|
p,
|
|
53
53
|
h,
|
|
54
54
|
v,
|
|
@@ -60,7 +60,7 @@ const J = (D) => {
|
|
|
60
60
|
let z;
|
|
61
61
|
t[44] !== l ? (z = l && /* @__PURE__ */ s("div", { className: "d-layout__bottom", children: l }), t[44] = l, t[45] = z) : z = t[45];
|
|
62
62
|
let S;
|
|
63
|
-
t[46] !== g || t[47] !== x || t[48] !== z || t[49] !== m || t[50] !== f || t[51] !== _ ? (S = /* @__PURE__ */
|
|
63
|
+
t[46] !== g || t[47] !== x || t[48] !== z || t[49] !== m || t[50] !== f || t[51] !== _ ? (S = /* @__PURE__ */ D(G, { className: "d-layout__inner", style: m, children: [
|
|
64
64
|
f,
|
|
65
65
|
_,
|
|
66
66
|
g,
|
|
@@ -71,5 +71,5 @@ const J = (D) => {
|
|
|
71
71
|
return t[53] !== d || t[54] !== S ? (b = /* @__PURE__ */ s("div", { ...d, children: S }), t[53] = d, t[54] = S, t[55] = b) : b = t[55], b;
|
|
72
72
|
};
|
|
73
73
|
export {
|
|
74
|
-
J as
|
|
74
|
+
J as Layout
|
|
75
75
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as l } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
4
4
|
import { mergeCode0Props as r } from "../../utils/utils.js";
|
|
5
|
-
import { DropdownMenuItem as m, DropdownMenuContent as f, DropdownMenuLabel as _, DropdownMenu as M, DropdownMenuTrigger as a, DropdownMenuPortal as d,
|
|
5
|
+
import { DropdownMenuItem as m, DropdownMenuContent as f, DropdownMenuLabel as _, DropdownMenu as M, DropdownMenuTrigger as a, DropdownMenuPortal as d, DropdownMenuArrow as g, DropdownMenuCheckboxItem as w, DropdownMenuGroup as b, DropdownMenuItemIndicator as $, DropdownMenuSeparator as D, DropdownMenuSub as I, DropdownMenuSubContent as S, DropdownMenuSubTrigger as C } from "@radix-ui/react-dropdown-menu";
|
|
6
6
|
const y = (o) => {
|
|
7
7
|
const e = l.c(4);
|
|
8
8
|
let n;
|
|
@@ -51,28 +51,28 @@ const y = (o) => {
|
|
|
51
51
|
e[0] !== o ? (n = r("menu__group", o), e[0] = o, e[1] = n) : n = e[1];
|
|
52
52
|
const c = n;
|
|
53
53
|
let t;
|
|
54
|
-
return e[2] !== c ? (t = /* @__PURE__ */ u(
|
|
54
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(b, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
55
55
|
}, q = (o) => {
|
|
56
56
|
const e = l.c(4);
|
|
57
57
|
let n;
|
|
58
58
|
e[0] !== o ? (n = r("menu__sub", o), e[0] = o, e[1] = n) : n = e[1];
|
|
59
59
|
const c = n;
|
|
60
60
|
let t;
|
|
61
|
-
return e[2] !== c ? (t = /* @__PURE__ */ u(
|
|
61
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(I, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
62
62
|
}, v = (o) => {
|
|
63
63
|
const e = l.c(4);
|
|
64
64
|
let n;
|
|
65
65
|
e[0] !== o ? (n = r("menu__sub-trigger", o), e[0] = o, e[1] = n) : n = e[1];
|
|
66
66
|
const c = n;
|
|
67
67
|
let t;
|
|
68
|
-
return e[2] !== c ? (t = /* @__PURE__ */ u(
|
|
68
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(C, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
69
69
|
}, z = (o) => {
|
|
70
70
|
const e = l.c(5), n = `menu__sub-content menu__sub-content--${o.color ?? "primary"}`;
|
|
71
71
|
let c;
|
|
72
72
|
e[0] !== o || e[1] !== n ? (c = r(n, o), e[0] = o, e[1] = n, e[2] = c) : c = e[2];
|
|
73
73
|
const t = c;
|
|
74
74
|
let i;
|
|
75
|
-
return e[3] !== t ? (i = /* @__PURE__ */ u(
|
|
75
|
+
return e[3] !== t ? (i = /* @__PURE__ */ u(S, { ...t }), e[3] = t, e[4] = i) : i = e[4], i;
|
|
76
76
|
}, B = (o) => {
|
|
77
77
|
const e = l.c(4);
|
|
78
78
|
let n;
|
|
@@ -86,21 +86,21 @@ const y = (o) => {
|
|
|
86
86
|
e[0] !== o ? (n = r("menu__checkbox-item", o), e[0] = o, e[1] = n) : n = e[1];
|
|
87
87
|
const c = n;
|
|
88
88
|
let t;
|
|
89
|
-
return e[2] !== c ? (t = /* @__PURE__ */ u(
|
|
89
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(w, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
90
90
|
}, H = (o) => {
|
|
91
91
|
const e = l.c(4);
|
|
92
92
|
let n;
|
|
93
93
|
e[0] !== o ? (n = r("menu__item-indicator", o), e[0] = o, e[1] = n) : n = e[1];
|
|
94
94
|
const c = n;
|
|
95
95
|
let t;
|
|
96
|
-
return e[2] !== c ? (t = /* @__PURE__ */ u(
|
|
96
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u($, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
97
97
|
}, J = (o) => {
|
|
98
98
|
const e = l.c(4);
|
|
99
99
|
let n;
|
|
100
100
|
e[0] !== o ? (n = r("menu__arrow", o), e[0] = o, e[1] = n) : n = e[1];
|
|
101
101
|
const c = n;
|
|
102
102
|
let t;
|
|
103
|
-
return e[2] !== c ? (t = /* @__PURE__ */ u(
|
|
103
|
+
return e[2] !== c ? (t = /* @__PURE__ */ u(g, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
|
|
104
104
|
};
|
|
105
105
|
export {
|
|
106
106
|
y as Menu,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Code0ComponentProps, Color } from '../../utils';
|
|
2
|
+
import { GroupProps, PanelProps, SeparatorProps } from 'react-resizable-panels';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type ResizablePanelGroupProps = Code0ComponentProps & GroupProps;
|
|
5
|
+
type ResizablePanelProps = Code0ComponentProps & PanelProps & {
|
|
6
|
+
color?: Color;
|
|
7
|
+
};
|
|
8
|
+
type ResizableHandleProps = Code0ComponentProps & SeparatorProps;
|
|
9
|
+
export declare const ResizablePanelGroup: React.FC<ResizablePanelGroupProps>;
|
|
10
|
+
export declare const ResizablePanel: React.FC<ResizablePanelProps>;
|
|
11
|
+
export declare const ResizableHandle: React.FC<ResizableHandleProps>;
|
|
12
|
+
export {};
|
|
@@ -3,15 +3,15 @@ import { c as o } from "../../_virtual/compiler-runtime.js";
|
|
|
3
3
|
import "../../utils/contextStore.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { mergeCode0Props as s } from "../../utils/utils.js";
|
|
6
|
-
import {
|
|
7
|
-
import '../../assets/components/
|
|
6
|
+
import { Separator as n, Panel as c, Group as m } from "react-resizable-panels";
|
|
7
|
+
import '../../assets/components/resizable/Resizable.style.css';/* empty css */
|
|
8
8
|
const $ = (r) => {
|
|
9
9
|
const e = o.c(4);
|
|
10
10
|
let l;
|
|
11
11
|
e[0] !== r ? (l = s("d-resizable", r), e[0] = r, e[1] = l) : l = e[1];
|
|
12
12
|
const t = l;
|
|
13
13
|
let a;
|
|
14
|
-
return e[2] !== t ? (a = /* @__PURE__ */ i(
|
|
14
|
+
return e[2] !== t ? (a = /* @__PURE__ */ i(m, { "data-slot": "resizable-panel-group", ...t }), e[2] = t, e[3] = a) : a = e[3], a;
|
|
15
15
|
}, p = (r) => {
|
|
16
16
|
const e = o.c(5), l = `d-resizable__panel ${r.color ? `d-resizable__panel--${r.color ?? "primary"}` : ""}`;
|
|
17
17
|
let t;
|
|
@@ -25,10 +25,10 @@ const $ = (r) => {
|
|
|
25
25
|
let t;
|
|
26
26
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ i("div", { className: "d-resizable__handle-bar" }), e[2] = t) : t = e[2];
|
|
27
27
|
let a;
|
|
28
|
-
return e[3] !== l ? (a = /* @__PURE__ */ i(
|
|
28
|
+
return e[3] !== l ? (a = /* @__PURE__ */ i(n, { "data-slot": "resizable-handle", ...l, children: t }), e[3] = l, e[4] = a) : a = e[4], a;
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
P as
|
|
32
|
-
p as
|
|
33
|
-
$ as
|
|
31
|
+
P as ResizableHandle,
|
|
32
|
+
p as ResizablePanel,
|
|
33
|
+
$ as ResizablePanelGroup
|
|
34
34
|
};
|