@qwik.dev/devtools 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugin/index.js +8 -5
- package/dist/ui/_virtual/index.qwik.cjs +5 -4
- package/dist/ui/_virtual/index.qwik.mjs +5 -3
- package/dist/ui/components/Tree/Tree.qwik.cjs +36 -16
- package/dist/ui/components/Tree/Tree.qwik.mjs +36 -16
- package/dist/ui/devtools.qwik.cjs +0 -20
- package/dist/ui/devtools.qwik.mjs +1 -21
- package/dist/ui/features/RenderTree/RenderTree.qwik.cjs +125 -62
- package/dist/ui/features/RenderTree/RenderTree.qwik.mjs +125 -62
- package/dist/ui/features/RenderTree/formatTreeData.qwik.cjs +3 -0
- package/dist/ui/features/RenderTree/formatTreeData.qwik.mjs +3 -0
- package/dist/ui/global.css.qwik.cjs +101 -28
- package/dist/ui/global.css.qwik.mjs +101 -28
- package/dist/ui/node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@7.1.3_@types_node@20.14.11_jiti@2.4.2_tsx@4.19.2_yaml@2.7.0__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@7.1.3_@types_node@20.14.11_jiti@2.4.2_tsx@4.19.2_yaml@2.7.0__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.qwik.cjs +1 -1
- package/dist/ui/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.qwik.mjs +1 -1
- package/package.json +4 -1
- package/dist/ui/_virtual/client.qwik.cjs +0 -5
- package/dist/ui/_virtual/client.qwik.mjs +0 -5
- package/dist/ui/_virtual/client.qwik2.cjs +0 -4
- package/dist/ui/_virtual/client.qwik2.mjs +0 -4
- package/dist/ui/_virtual/index.qwik2.cjs +0 -8
- package/dist/ui/_virtual/index.qwik2.mjs +0 -8
- package/dist/ui/_virtual/index.qwik3.cjs +0 -4
- package/dist/ui/_virtual/index.qwik3.mjs +0 -4
- package/dist/ui/_virtual/index.qwik4.cjs +0 -4
- package/dist/ui/_virtual/index.qwik4.mjs +0 -4
- package/dist/ui/_virtual/index.qwik5.cjs +0 -6
- package/dist/ui/_virtual/index.qwik5.mjs +0 -7
- package/dist/ui/_virtual/index.qwik6.cjs +0 -4
- package/dist/ui/_virtual/index.qwik6.mjs +0 -4
- package/dist/ui/_virtual/jsx-runtime.qwik.cjs +0 -5
- package/dist/ui/_virtual/jsx-runtime.qwik.mjs +0 -5
- package/dist/ui/_virtual/jsx-runtime.qwik2.cjs +0 -4
- package/dist/ui/_virtual/jsx-runtime.qwik2.mjs +0 -4
- package/dist/ui/_virtual/react-dom-server-legacy.node.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom-server-legacy.node.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom-server-legacy.node.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom-server-legacy.node.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom-server.node.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom-server.node.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom-server.node.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom-server.node.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-jsx-runtime.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-jsx-runtime.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-jsx-runtime.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-jsx-runtime.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/react.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/scheduler.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/scheduler.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/scheduler.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/scheduler.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/server.node.qwik.cjs +0 -5
- package/dist/ui/_virtual/server.node.qwik.mjs +0 -5
- package/dist/ui/_virtual/server.node.qwik2.cjs +0 -4
- package/dist/ui/_virtual/server.node.qwik2.mjs +0 -4
- package/dist/ui/features/Components/Components.qwik.cjs +0 -108
- package/dist/ui/features/Components/Components.qwik.mjs +0 -108
- package/dist/ui/features/Components/components/Tree.qwik.cjs +0 -60
- package/dist/ui/features/Components/components/Tree.qwik.mjs +0 -60
- package/dist/ui/features/Components/styles.css.qwik.cjs +0 -3
- package/dist/ui/features/Components/styles.css.qwik.mjs +0 -4
- package/dist/ui/lib-types/ui/src/features/Components/Components.d.ts +0 -19
- package/dist/ui/lib-types/ui/src/features/Components/components/Tree.d.ts +0 -1
- package/dist/ui/node_modules/.pnpm/@qwik.dev_react@2.0.0-beta.9_@qwik.dev_core@2.0.0-beta.9_prettier@3.3.3_vite@7.1.3_@typ_acdb3a1fab641cc17ee740fd3c684547/node_modules/@qwik.dev/react/lib/index.qwik.qwik.cjs +0 -269
- package/dist/ui/node_modules/.pnpm/@qwik.dev_react@2.0.0-beta.9_@qwik.dev_core@2.0.0-beta.9_prettier@3.3.3_vite@7.1.3_@typ_acdb3a1fab641cc17ee740fd3c684547/node_modules/@qwik.dev/react/lib/index.qwik.qwik.mjs +0 -269
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/EventEmitter.qwik.cjs +0 -162
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/EventEmitter.qwik.mjs +0 -162
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/ControlledTreeEnvironment.qwik.cjs +0 -48
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/ControlledTreeEnvironment.qwik.mjs +0 -48
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/InteractionManagerProvider.qwik.cjs +0 -29
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/InteractionManagerProvider.qwik.mjs +0 -29
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/buildInteractionMode.qwik.cjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/buildInteractionMode.qwik.mjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/layoutUtils.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/layoutUtils.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/mergeInteractionManagers.qwik.cjs +0 -22
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/mergeInteractionManagers.qwik.mjs +0 -22
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/useControlledTreeEnvironmentProps.qwik.cjs +0 -127
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/useControlledTreeEnvironmentProps.qwik.mjs +0 -127
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/useLinearItems.qwik.cjs +0 -7
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/useLinearItems.qwik.mjs +0 -7
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/DragAndDropProvider.qwik.cjs +0 -231
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/DragAndDropProvider.qwik.mjs +0 -231
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/DraggingPositionEvaluation.qwik.cjs +0 -179
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/DraggingPositionEvaluation.qwik.mjs +0 -179
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useCanDropAt.qwik.cjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useCanDropAt.qwik.mjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useDraggingPosition.qwik.cjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useDraggingPosition.qwik.mjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useGetParentOfLinearItem.qwik.cjs +0 -21
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useGetParentOfLinearItem.qwik.mjs +0 -21
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useGetViableDragPositions.qwik.cjs +0 -90
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useGetViableDragPositions.qwik.mjs +0 -90
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/environmentActions/EnvironmentActionsProvider.qwik.cjs +0 -321
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/environmentActions/EnvironmentActionsProvider.qwik.mjs +0 -321
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/environmentActions/useCreatedEnvironmentRef.qwik.cjs +0 -24
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/environmentActions/useCreatedEnvironmentRef.qwik.mjs +0 -24
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/defaultKeyboardBindings.qwik.cjs +0 -18
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/defaultKeyboardBindings.qwik.mjs +0 -18
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useHotkey.qwik.cjs +0 -76
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useHotkey.qwik.mjs +0 -76
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useKey.qwik.cjs +0 -15
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useKey.qwik.mjs +0 -15
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useKeyboardBindings.qwik.cjs +0 -26
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useKeyboardBindings.qwik.mjs +0 -26
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/ClickArrowToExpandInteractionManager.qwik.cjs +0 -49
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/ClickArrowToExpandInteractionManager.qwik.mjs +0 -49
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/ClickItemToExpandInteractionManager.qwik.cjs +0 -52
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/ClickItemToExpandInteractionManager.qwik.mjs +0 -52
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/DoubleClickItemToExpandInteractionManager.qwik.cjs +0 -56
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/DoubleClickItemToExpandInteractionManager.qwik.mjs +0 -56
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/isControlKey.qwik.cjs +0 -6
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/isControlKey.qwik.mjs +0 -6
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/renderers/createDefaultRenderers.qwik.cjs +0 -136
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/renderers/createDefaultRenderers.qwik.mjs +0 -136
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/renderers/useRenderers.qwik.cjs +0 -42
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/renderers/useRenderers.qwik.mjs +0 -42
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/SearchInput.qwik.cjs +0 -69
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/SearchInput.qwik.mjs +0 -69
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/defaultMatcher.qwik.cjs +0 -6
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/defaultMatcher.qwik.mjs +0 -6
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/useSearchMatchFocus.qwik.cjs +0 -37
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/useSearchMatchFocus.qwik.mjs +0 -37
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/DragBetweenLine.qwik.cjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/DragBetweenLine.qwik.mjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/LiveDescription.qwik.cjs +0 -52
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/LiveDescription.qwik.mjs +0 -52
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/MaybeLiveDescription.qwik.cjs +0 -14
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/MaybeLiveDescription.qwik.mjs +0 -14
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/Tree.qwik.cjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/Tree.qwik.mjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/TreeManager.qwik.cjs +0 -62
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/TreeManager.qwik.mjs +0 -62
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/defaultLiveDescriptors.qwik.cjs +0 -10
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/defaultLiveDescriptors.qwik.mjs +0 -10
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/getItemsLinearly.qwik.cjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/getItemsLinearly.qwik.mjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/resolveLiveDescriptor.qwik.cjs +0 -41
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/resolveLiveDescriptor.qwik.mjs +0 -41
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/scrollIntoView.qwik.cjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/scrollIntoView.qwik.mjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useCreatedTreeInformation.qwik.cjs +0 -37
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useCreatedTreeInformation.qwik.mjs +0 -37
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useFocusWithin.qwik.cjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useFocusWithin.qwik.mjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useMoveFocusToIndex.qwik.cjs +0 -25
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useMoveFocusToIndex.qwik.mjs +0 -25
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useSelectUpTo.qwik.cjs +0 -82
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useSelectUpTo.qwik.mjs +0 -82
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useTreeKeyboardBindings.qwik.cjs +0 -164
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useTreeKeyboardBindings.qwik.mjs +0 -164
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useViewState.qwik.cjs +0 -11
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useViewState.qwik.mjs +0 -11
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeActions/TreeActionsProvider.qwik.cjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeActions/TreeActionsProvider.qwik.mjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeActions/useCreatedTreeRef.qwik.cjs +0 -26
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeActions/useCreatedTreeRef.qwik.mjs +0 -26
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemChildren.qwik.cjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemChildren.qwik.mjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemElement.qwik.cjs +0 -53
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemElement.qwik.mjs +0 -53
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemRenamingInput.qwik.cjs +0 -78
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemRenamingInput.qwik.mjs +0 -78
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/useTreeItemRenderContext.qwik.cjs +0 -200
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/useTreeItemRenderContext.qwik.mjs +0 -200
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/types.qwik.cjs +0 -8
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/types.qwik.mjs +0 -9
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/CompleteTreeDataProvider.qwik.cjs +0 -145
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/CompleteTreeDataProvider.qwik.mjs +0 -145
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/StaticTreeDataProvider.qwik.cjs +0 -152
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/StaticTreeDataProvider.qwik.mjs +0 -152
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/UncontrolledTreeEnvironment.qwik.cjs +0 -320
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/UncontrolledTreeEnvironment.qwik.mjs +0 -320
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useCallSoon.qwik.cjs +0 -29
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useCallSoon.qwik.mjs +0 -29
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useGetOriginalItemOrder.qwik.cjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useGetOriginalItemOrder.qwik.mjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useHtmlElementEventListener.qwik.cjs +0 -18
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useHtmlElementEventListener.qwik.mjs +0 -18
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useIsMounted.qwik.cjs +0 -14
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useIsMounted.qwik.mjs +0 -14
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useRefCopy.qwik.cjs +0 -9
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useRefCopy.qwik.mjs +0 -9
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useSideEffect.qwik.cjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useSideEffect.qwik.mjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useStableHandler.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useStableHandler.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/utils.qwik.cjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/utils.qwik.mjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/waitFor.qwik.cjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/waitFor.qwik.mjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/style-modern.css.qwik.cjs +0 -3
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/style-modern.css.qwik.mjs +0 -4
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.qwik.cjs +0 -5418
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.qwik.mjs +0 -5418
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.qwik.cjs +0 -1531
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.qwik.mjs +0 -1531
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.node.development.qwik.cjs +0 -5432
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.node.development.qwik.mjs +0 -5432
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.node.production.min.qwik.cjs +0 -1595
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.node.production.min.qwik.mjs +0 -1595
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.qwik.cjs +0 -21128
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.qwik.mjs +0 -21128
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.qwik.cjs +0 -6420
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.qwik.mjs +0 -6420
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/client.qwik.cjs +0 -34
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/client.qwik.mjs +0 -34
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.qwik.cjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.qwik.mjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/server.node.qwik.cjs +0 -28
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/server.node.qwik.mjs +0 -28
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.qwik.cjs +0 -875
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.qwik.mjs +0 -875
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.qwik.cjs +0 -33
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.qwik.mjs +0 -33
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.qwik.cjs +0 -1887
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.qwik.mjs +0 -1887
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.qwik.cjs +0 -265
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.qwik.mjs +0 -265
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/index.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/index.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.development.qwik.cjs +0 -453
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.development.qwik.mjs +0 -453
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.production.min.qwik.cjs +0 -248
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.production.min.qwik.mjs +0 -248
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.qwik.mjs +0 -17
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../../../../_virtual/index.qwik2.cjs");
|
|
4
|
-
const DragAndDropProvider = require("../drag/DragAndDropProvider.qwik.cjs");
|
|
5
|
-
const ControlledTreeEnvironment = require("../controlledEnvironment/ControlledTreeEnvironment.qwik.cjs");
|
|
6
|
-
const useCreatedEnvironmentRef = require("./useCreatedEnvironmentRef.qwik.cjs");
|
|
7
|
-
const useRefCopy = require("../useRefCopy.qwik.cjs");
|
|
8
|
-
const waitFor = require("../waitFor.qwik.cjs");
|
|
9
|
-
var __awaiter = function(thisArg, _arguments, P, generator) {
|
|
10
|
-
function adopt(value) {
|
|
11
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
12
|
-
resolve(value);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
16
|
-
function fulfilled(value) {
|
|
17
|
-
try {
|
|
18
|
-
step(generator.next(value));
|
|
19
|
-
} catch (e) {
|
|
20
|
-
reject(e);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function rejected(value) {
|
|
24
|
-
try {
|
|
25
|
-
step(generator["throw"](value));
|
|
26
|
-
} catch (e) {
|
|
27
|
-
reject(e);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function step(result) {
|
|
31
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
32
|
-
}
|
|
33
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
var __generator = function(thisArg, body) {
|
|
37
|
-
var _ = { label: 0, sent: function() {
|
|
38
|
-
if (t[0] & 1) throw t[1];
|
|
39
|
-
return t[1];
|
|
40
|
-
}, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
42
|
-
return this;
|
|
43
|
-
}), g;
|
|
44
|
-
function verb(n) {
|
|
45
|
-
return function(v) {
|
|
46
|
-
return step([n, v]);
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function step(op) {
|
|
50
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
53
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
-
switch (op[0]) {
|
|
55
|
-
case 0:
|
|
56
|
-
case 1:
|
|
57
|
-
t = op;
|
|
58
|
-
break;
|
|
59
|
-
case 4:
|
|
60
|
-
_.label++;
|
|
61
|
-
return { value: op[1], done: false };
|
|
62
|
-
case 5:
|
|
63
|
-
_.label++;
|
|
64
|
-
y = op[1];
|
|
65
|
-
op = [0];
|
|
66
|
-
continue;
|
|
67
|
-
case 7:
|
|
68
|
-
op = _.ops.pop();
|
|
69
|
-
_.trys.pop();
|
|
70
|
-
continue;
|
|
71
|
-
default:
|
|
72
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
73
|
-
_ = 0;
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
77
|
-
_.label = op[1];
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
81
|
-
_.label = t[1];
|
|
82
|
-
t = op;
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
if (t && _.label < t[2]) {
|
|
86
|
-
_.label = t[2];
|
|
87
|
-
_.ops.push(op);
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
if (t[2]) _.ops.pop();
|
|
91
|
-
_.trys.pop();
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
op = body.call(thisArg, _);
|
|
95
|
-
} catch (e) {
|
|
96
|
-
op = [6, e];
|
|
97
|
-
y = 0;
|
|
98
|
-
} finally {
|
|
99
|
-
f = t = 0;
|
|
100
|
-
}
|
|
101
|
-
if (op[0] & 5) throw op[1];
|
|
102
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
var __spreadArray = function(to, from, pack) {
|
|
106
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
107
|
-
if (ar || !(i in from)) {
|
|
108
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
109
|
-
ar[i] = from[i];
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
113
|
-
};
|
|
114
|
-
var EnvironmentActionsContext = index.reactExports.createContext(null);
|
|
115
|
-
var useEnvironmentActions = function() {
|
|
116
|
-
return index.reactExports.useContext(EnvironmentActionsContext);
|
|
117
|
-
};
|
|
118
|
-
var recursiveExpand = function(itemId, items, onExpand) {
|
|
119
|
-
return __awaiter(void 0, void 0, void 0, function() {
|
|
120
|
-
var _loop_1, _i, _a, childId;
|
|
121
|
-
var _b, _c, _d;
|
|
122
|
-
return __generator(this, function(_e) {
|
|
123
|
-
_loop_1 = function(childId2) {
|
|
124
|
-
waitFor.waitFor(function() {
|
|
125
|
-
var _a2;
|
|
126
|
-
return !!((_a2 = items.current) === null || _a2 === void 0 ? void 0 : _a2[childId2]);
|
|
127
|
-
}).then(function() {
|
|
128
|
-
var _a2;
|
|
129
|
-
var item = (_a2 = items.current) === null || _a2 === void 0 ? void 0 : _a2[childId2];
|
|
130
|
-
if (item === null || item === void 0 ? void 0 : item.isFolder) {
|
|
131
|
-
onExpand(item);
|
|
132
|
-
recursiveExpand(childId2, items, onExpand);
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
for (_i = 0, _a = (_d = (_c = (_b = items.current) === null || _b === void 0 ? void 0 : _b[itemId]) === null || _c === void 0 ? void 0 : _c.children) !== null && _d !== void 0 ? _d : []; _i < _a.length; _i++) {
|
|
137
|
-
childId = _a[_i];
|
|
138
|
-
_loop_1(childId);
|
|
139
|
-
}
|
|
140
|
-
return [
|
|
141
|
-
2
|
|
142
|
-
/*return*/
|
|
143
|
-
];
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
var EnvironmentActionsProvider = index.reactExports.forwardRef(function(props, ref) {
|
|
148
|
-
var _a = ControlledTreeEnvironment.useTreeEnvironment(), onCollapseItem = _a.onCollapseItem, items = _a.items, trees = _a.trees, viewState = _a.viewState, onExpandItem = _a.onExpandItem, onFocusItem = _a.onFocusItem, setActiveTree = _a.setActiveTree, onRenameItem = _a.onRenameItem, onSelectItems = _a.onSelectItems, onPrimaryAction = _a.onPrimaryAction, linearItems = _a.linearItems;
|
|
149
|
-
var _b = DragAndDropProvider.useDragAndDrop(), abortProgrammaticDrag = _b.abortProgrammaticDrag, completeProgrammaticDrag = _b.completeProgrammaticDrag, programmaticDragDown = _b.programmaticDragDown, programmaticDragUp = _b.programmaticDragUp, startProgrammaticDrag = _b.startProgrammaticDrag;
|
|
150
|
-
var itemsRef = useRefCopy.useRefCopy(items);
|
|
151
|
-
var collapseItem = index.reactExports.useCallback(function(itemId, treeId) {
|
|
152
|
-
onCollapseItem === null || onCollapseItem === void 0 ? void 0 : onCollapseItem(items[itemId], treeId);
|
|
153
|
-
}, [items, onCollapseItem]);
|
|
154
|
-
var expandItem = index.reactExports.useCallback(function(itemId, treeId) {
|
|
155
|
-
onExpandItem === null || onExpandItem === void 0 ? void 0 : onExpandItem(items[itemId], treeId);
|
|
156
|
-
}, [items, onExpandItem]);
|
|
157
|
-
var focusItem = index.reactExports.useCallback(function(itemId, treeId, setDomFocus) {
|
|
158
|
-
if (setDomFocus === void 0) {
|
|
159
|
-
setDomFocus = true;
|
|
160
|
-
}
|
|
161
|
-
onFocusItem === null || onFocusItem === void 0 ? void 0 : onFocusItem(items[itemId], treeId, setDomFocus);
|
|
162
|
-
}, [items, onFocusItem]);
|
|
163
|
-
var focusTree = index.reactExports.useCallback(function(treeId, autoFocus) {
|
|
164
|
-
if (autoFocus === void 0) {
|
|
165
|
-
autoFocus = true;
|
|
166
|
-
}
|
|
167
|
-
setActiveTree(treeId, autoFocus);
|
|
168
|
-
}, [setActiveTree]);
|
|
169
|
-
var moveFocusDown = index.reactExports.useCallback(function(treeId) {
|
|
170
|
-
var treeLinearItems = linearItems[treeId];
|
|
171
|
-
var currentFocusIndex = treeLinearItems.findIndex(function(_a2) {
|
|
172
|
-
var _b2;
|
|
173
|
-
var item = _a2.item;
|
|
174
|
-
return item === ((_b2 = viewState[treeId]) === null || _b2 === void 0 ? void 0 : _b2.focusedItem);
|
|
175
|
-
});
|
|
176
|
-
var newIndex = currentFocusIndex !== void 0 ? Math.min(treeLinearItems.length - 1, currentFocusIndex + 1) : 0;
|
|
177
|
-
var newItem = items[treeLinearItems[newIndex].item];
|
|
178
|
-
onFocusItem === null || onFocusItem === void 0 ? void 0 : onFocusItem(newItem, treeId);
|
|
179
|
-
}, [items, linearItems, onFocusItem, viewState]);
|
|
180
|
-
var moveFocusUp = index.reactExports.useCallback(function(treeId) {
|
|
181
|
-
var treeLinearItems = linearItems[treeId];
|
|
182
|
-
var currentFocusIndex = treeLinearItems.findIndex(function(_a2) {
|
|
183
|
-
var _b2;
|
|
184
|
-
var item = _a2.item;
|
|
185
|
-
return item === ((_b2 = viewState[treeId]) === null || _b2 === void 0 ? void 0 : _b2.focusedItem);
|
|
186
|
-
});
|
|
187
|
-
var newIndex = currentFocusIndex !== void 0 ? Math.max(0, currentFocusIndex - 1) : 0;
|
|
188
|
-
var newItem = items[treeLinearItems[newIndex].item];
|
|
189
|
-
onFocusItem === null || onFocusItem === void 0 ? void 0 : onFocusItem(newItem, treeId);
|
|
190
|
-
}, [items, linearItems, onFocusItem, viewState]);
|
|
191
|
-
var renameItem = index.reactExports.useCallback(function(itemId, name, treeId) {
|
|
192
|
-
onRenameItem === null || onRenameItem === void 0 ? void 0 : onRenameItem(items[itemId], name, treeId);
|
|
193
|
-
}, [items, onRenameItem]);
|
|
194
|
-
var selectItems = index.reactExports.useCallback(function(itemsIds, treeId) {
|
|
195
|
-
onSelectItems === null || onSelectItems === void 0 ? void 0 : onSelectItems(itemsIds, treeId);
|
|
196
|
-
}, [onSelectItems]);
|
|
197
|
-
var toggleItemExpandedState = index.reactExports.useCallback(function(itemId, treeId) {
|
|
198
|
-
var _a2, _b2;
|
|
199
|
-
if ((_b2 = (_a2 = viewState[treeId]) === null || _a2 === void 0 ? void 0 : _a2.expandedItems) === null || _b2 === void 0 ? void 0 : _b2.includes(itemId)) {
|
|
200
|
-
onCollapseItem === null || onCollapseItem === void 0 ? void 0 : onCollapseItem(items[itemId], treeId);
|
|
201
|
-
} else {
|
|
202
|
-
onExpandItem === null || onExpandItem === void 0 ? void 0 : onExpandItem(items[itemId], treeId);
|
|
203
|
-
}
|
|
204
|
-
}, [items, onCollapseItem, onExpandItem, viewState]);
|
|
205
|
-
var toggleItemSelectStatus = index.reactExports.useCallback(function(itemId, treeId) {
|
|
206
|
-
var _a2, _b2, _c, _d, _e;
|
|
207
|
-
if ((_b2 = (_a2 = viewState[treeId]) === null || _a2 === void 0 ? void 0 : _a2.selectedItems) === null || _b2 === void 0 ? void 0 : _b2.includes(itemId)) {
|
|
208
|
-
onSelectItems === null || onSelectItems === void 0 ? void 0 : onSelectItems((_d = (_c = viewState[treeId].selectedItems) === null || _c === void 0 ? void 0 : _c.filter(function(item) {
|
|
209
|
-
return item !== itemId;
|
|
210
|
-
})) !== null && _d !== void 0 ? _d : [], treeId);
|
|
211
|
-
} else {
|
|
212
|
-
onSelectItems === null || onSelectItems === void 0 ? void 0 : onSelectItems(__spreadArray(__spreadArray([], (_e = viewState[treeId].selectedItems) !== null && _e !== void 0 ? _e : [], true), [itemId], false), treeId);
|
|
213
|
-
}
|
|
214
|
-
}, [onSelectItems, viewState]);
|
|
215
|
-
var invokePrimaryAction = index.reactExports.useCallback(function(itemId, treeId) {
|
|
216
|
-
onPrimaryAction === null || onPrimaryAction === void 0 ? void 0 : onPrimaryAction(items[itemId], treeId);
|
|
217
|
-
}, [items, onPrimaryAction]);
|
|
218
|
-
var expandSubsequently = index.reactExports.useCallback(function(treeId, itemIds) {
|
|
219
|
-
return __awaiter(void 0, void 0, void 0, function() {
|
|
220
|
-
var current, rest;
|
|
221
|
-
return __generator(this, function(_a2) {
|
|
222
|
-
switch (_a2.label) {
|
|
223
|
-
case 0:
|
|
224
|
-
current = itemIds[0], rest = itemIds.slice(1);
|
|
225
|
-
return [4, waitFor.waitFor(function() {
|
|
226
|
-
var _a3;
|
|
227
|
-
return !!((_a3 = itemsRef.current) === null || _a3 === void 0 ? void 0 : _a3[current]);
|
|
228
|
-
}).then(function() {
|
|
229
|
-
var item = itemsRef.current[current];
|
|
230
|
-
if (!item) {
|
|
231
|
-
return Promise.resolve();
|
|
232
|
-
}
|
|
233
|
-
onExpandItem === null || onExpandItem === void 0 ? void 0 : onExpandItem(item, treeId);
|
|
234
|
-
if (rest.length > 0) {
|
|
235
|
-
return expandSubsequently(treeId, rest);
|
|
236
|
-
}
|
|
237
|
-
return Promise.resolve();
|
|
238
|
-
})];
|
|
239
|
-
case 1:
|
|
240
|
-
_a2.sent();
|
|
241
|
-
return [
|
|
242
|
-
2
|
|
243
|
-
/*return*/
|
|
244
|
-
];
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
}, [itemsRef, onExpandItem]);
|
|
249
|
-
var expandAll = index.reactExports.useCallback(function(treeId) {
|
|
250
|
-
return __awaiter(void 0, void 0, void 0, function() {
|
|
251
|
-
return __generator(this, function(_a2) {
|
|
252
|
-
switch (_a2.label) {
|
|
253
|
-
case 0:
|
|
254
|
-
return [4, recursiveExpand(trees[treeId].rootItem, itemsRef, function(item) {
|
|
255
|
-
return onExpandItem === null || onExpandItem === void 0 ? void 0 : onExpandItem(item, treeId);
|
|
256
|
-
})];
|
|
257
|
-
case 1:
|
|
258
|
-
_a2.sent();
|
|
259
|
-
return [
|
|
260
|
-
2
|
|
261
|
-
/*return*/
|
|
262
|
-
];
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
});
|
|
266
|
-
}, [itemsRef, onExpandItem, trees]);
|
|
267
|
-
var collapseAll = index.reactExports.useCallback(function(treeId) {
|
|
268
|
-
var _a2, _b2;
|
|
269
|
-
for (var _i = 0, _c = (_b2 = (_a2 = viewState[treeId]) === null || _a2 === void 0 ? void 0 : _a2.expandedItems) !== null && _b2 !== void 0 ? _b2 : []; _i < _c.length; _i++) {
|
|
270
|
-
var itemId = _c[_i];
|
|
271
|
-
onCollapseItem === null || onCollapseItem === void 0 ? void 0 : onCollapseItem(items[itemId], treeId);
|
|
272
|
-
}
|
|
273
|
-
}, [items, onCollapseItem, viewState]);
|
|
274
|
-
var actions = index.reactExports.useMemo(function() {
|
|
275
|
-
return {
|
|
276
|
-
collapseItem,
|
|
277
|
-
expandItem,
|
|
278
|
-
focusItem,
|
|
279
|
-
focusTree,
|
|
280
|
-
moveFocusDown,
|
|
281
|
-
moveFocusUp,
|
|
282
|
-
renameItem,
|
|
283
|
-
selectItems,
|
|
284
|
-
toggleItemExpandedState,
|
|
285
|
-
toggleItemSelectStatus,
|
|
286
|
-
invokePrimaryAction,
|
|
287
|
-
expandAll,
|
|
288
|
-
expandSubsequently,
|
|
289
|
-
collapseAll,
|
|
290
|
-
abortProgrammaticDrag,
|
|
291
|
-
completeProgrammaticDrag,
|
|
292
|
-
moveProgrammaticDragPositionDown: programmaticDragDown,
|
|
293
|
-
moveProgrammaticDragPositionUp: programmaticDragUp,
|
|
294
|
-
startProgrammaticDrag
|
|
295
|
-
};
|
|
296
|
-
}, [
|
|
297
|
-
collapseItem,
|
|
298
|
-
expandItem,
|
|
299
|
-
focusItem,
|
|
300
|
-
focusTree,
|
|
301
|
-
moveFocusDown,
|
|
302
|
-
moveFocusUp,
|
|
303
|
-
renameItem,
|
|
304
|
-
selectItems,
|
|
305
|
-
toggleItemExpandedState,
|
|
306
|
-
toggleItemSelectStatus,
|
|
307
|
-
invokePrimaryAction,
|
|
308
|
-
expandAll,
|
|
309
|
-
expandSubsequently,
|
|
310
|
-
collapseAll,
|
|
311
|
-
abortProgrammaticDrag,
|
|
312
|
-
completeProgrammaticDrag,
|
|
313
|
-
programmaticDragDown,
|
|
314
|
-
programmaticDragUp,
|
|
315
|
-
startProgrammaticDrag
|
|
316
|
-
]);
|
|
317
|
-
useCreatedEnvironmentRef.useCreatedEnvironmentRef(ref, actions);
|
|
318
|
-
return index.reactExports.createElement(EnvironmentActionsContext.Provider, { value: actions }, props.children);
|
|
319
|
-
});
|
|
320
|
-
exports.EnvironmentActionsProvider = EnvironmentActionsProvider;
|
|
321
|
-
exports.useEnvironmentActions = useEnvironmentActions;
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
import { r as reactExports } from "../../../../../../../../_virtual/index.qwik2.mjs";
|
|
2
|
-
import { useDragAndDrop } from "../drag/DragAndDropProvider.qwik.mjs";
|
|
3
|
-
import { useTreeEnvironment } from "../controlledEnvironment/ControlledTreeEnvironment.qwik.mjs";
|
|
4
|
-
import { useCreatedEnvironmentRef } from "./useCreatedEnvironmentRef.qwik.mjs";
|
|
5
|
-
import { useRefCopy } from "../useRefCopy.qwik.mjs";
|
|
6
|
-
import { waitFor } from "../waitFor.qwik.mjs";
|
|
7
|
-
var __awaiter = function(thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) {
|
|
9
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
10
|
-
resolve(value);
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
14
|
-
function fulfilled(value) {
|
|
15
|
-
try {
|
|
16
|
-
step(generator.next(value));
|
|
17
|
-
} catch (e) {
|
|
18
|
-
reject(e);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function rejected(value) {
|
|
22
|
-
try {
|
|
23
|
-
step(generator["throw"](value));
|
|
24
|
-
} catch (e) {
|
|
25
|
-
reject(e);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function step(result) {
|
|
29
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
30
|
-
}
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var __generator = function(thisArg, body) {
|
|
35
|
-
var _ = { label: 0, sent: function() {
|
|
36
|
-
if (t[0] & 1) throw t[1];
|
|
37
|
-
return t[1];
|
|
38
|
-
}, trys: [], ops: [] }, f, y, t, g;
|
|
39
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
40
|
-
return this;
|
|
41
|
-
}), g;
|
|
42
|
-
function verb(n) {
|
|
43
|
-
return function(v) {
|
|
44
|
-
return step([n, v]);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function step(op) {
|
|
48
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
49
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
50
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
51
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
52
|
-
switch (op[0]) {
|
|
53
|
-
case 0:
|
|
54
|
-
case 1:
|
|
55
|
-
t = op;
|
|
56
|
-
break;
|
|
57
|
-
case 4:
|
|
58
|
-
_.label++;
|
|
59
|
-
return { value: op[1], done: false };
|
|
60
|
-
case 5:
|
|
61
|
-
_.label++;
|
|
62
|
-
y = op[1];
|
|
63
|
-
op = [0];
|
|
64
|
-
continue;
|
|
65
|
-
case 7:
|
|
66
|
-
op = _.ops.pop();
|
|
67
|
-
_.trys.pop();
|
|
68
|
-
continue;
|
|
69
|
-
default:
|
|
70
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
71
|
-
_ = 0;
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
75
|
-
_.label = op[1];
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
79
|
-
_.label = t[1];
|
|
80
|
-
t = op;
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
if (t && _.label < t[2]) {
|
|
84
|
-
_.label = t[2];
|
|
85
|
-
_.ops.push(op);
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
if (t[2]) _.ops.pop();
|
|
89
|
-
_.trys.pop();
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
op = body.call(thisArg, _);
|
|
93
|
-
} catch (e) {
|
|
94
|
-
op = [6, e];
|
|
95
|
-
y = 0;
|
|
96
|
-
} finally {
|
|
97
|
-
f = t = 0;
|
|
98
|
-
}
|
|
99
|
-
if (op[0] & 5) throw op[1];
|
|
100
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
var __spreadArray = function(to, from, pack) {
|
|
104
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
105
|
-
if (ar || !(i in from)) {
|
|
106
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
107
|
-
ar[i] = from[i];
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
111
|
-
};
|
|
112
|
-
var EnvironmentActionsContext = reactExports.createContext(null);
|
|
113
|
-
var useEnvironmentActions = function() {
|
|
114
|
-
return reactExports.useContext(EnvironmentActionsContext);
|
|
115
|
-
};
|
|
116
|
-
var recursiveExpand = function(itemId, items, onExpand) {
|
|
117
|
-
return __awaiter(void 0, void 0, void 0, function() {
|
|
118
|
-
var _loop_1, _i, _a, childId;
|
|
119
|
-
var _b, _c, _d;
|
|
120
|
-
return __generator(this, function(_e) {
|
|
121
|
-
_loop_1 = function(childId2) {
|
|
122
|
-
waitFor(function() {
|
|
123
|
-
var _a2;
|
|
124
|
-
return !!((_a2 = items.current) === null || _a2 === void 0 ? void 0 : _a2[childId2]);
|
|
125
|
-
}).then(function() {
|
|
126
|
-
var _a2;
|
|
127
|
-
var item = (_a2 = items.current) === null || _a2 === void 0 ? void 0 : _a2[childId2];
|
|
128
|
-
if (item === null || item === void 0 ? void 0 : item.isFolder) {
|
|
129
|
-
onExpand(item);
|
|
130
|
-
recursiveExpand(childId2, items, onExpand);
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
for (_i = 0, _a = (_d = (_c = (_b = items.current) === null || _b === void 0 ? void 0 : _b[itemId]) === null || _c === void 0 ? void 0 : _c.children) !== null && _d !== void 0 ? _d : []; _i < _a.length; _i++) {
|
|
135
|
-
childId = _a[_i];
|
|
136
|
-
_loop_1(childId);
|
|
137
|
-
}
|
|
138
|
-
return [
|
|
139
|
-
2
|
|
140
|
-
/*return*/
|
|
141
|
-
];
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
var EnvironmentActionsProvider = reactExports.forwardRef(function(props, ref) {
|
|
146
|
-
var _a = useTreeEnvironment(), onCollapseItem = _a.onCollapseItem, items = _a.items, trees = _a.trees, viewState = _a.viewState, onExpandItem = _a.onExpandItem, onFocusItem = _a.onFocusItem, setActiveTree = _a.setActiveTree, onRenameItem = _a.onRenameItem, onSelectItems = _a.onSelectItems, onPrimaryAction = _a.onPrimaryAction, linearItems = _a.linearItems;
|
|
147
|
-
var _b = useDragAndDrop(), abortProgrammaticDrag = _b.abortProgrammaticDrag, completeProgrammaticDrag = _b.completeProgrammaticDrag, programmaticDragDown = _b.programmaticDragDown, programmaticDragUp = _b.programmaticDragUp, startProgrammaticDrag = _b.startProgrammaticDrag;
|
|
148
|
-
var itemsRef = useRefCopy(items);
|
|
149
|
-
var collapseItem = reactExports.useCallback(function(itemId, treeId) {
|
|
150
|
-
onCollapseItem === null || onCollapseItem === void 0 ? void 0 : onCollapseItem(items[itemId], treeId);
|
|
151
|
-
}, [items, onCollapseItem]);
|
|
152
|
-
var expandItem = reactExports.useCallback(function(itemId, treeId) {
|
|
153
|
-
onExpandItem === null || onExpandItem === void 0 ? void 0 : onExpandItem(items[itemId], treeId);
|
|
154
|
-
}, [items, onExpandItem]);
|
|
155
|
-
var focusItem = reactExports.useCallback(function(itemId, treeId, setDomFocus) {
|
|
156
|
-
if (setDomFocus === void 0) {
|
|
157
|
-
setDomFocus = true;
|
|
158
|
-
}
|
|
159
|
-
onFocusItem === null || onFocusItem === void 0 ? void 0 : onFocusItem(items[itemId], treeId, setDomFocus);
|
|
160
|
-
}, [items, onFocusItem]);
|
|
161
|
-
var focusTree = reactExports.useCallback(function(treeId, autoFocus) {
|
|
162
|
-
if (autoFocus === void 0) {
|
|
163
|
-
autoFocus = true;
|
|
164
|
-
}
|
|
165
|
-
setActiveTree(treeId, autoFocus);
|
|
166
|
-
}, [setActiveTree]);
|
|
167
|
-
var moveFocusDown = reactExports.useCallback(function(treeId) {
|
|
168
|
-
var treeLinearItems = linearItems[treeId];
|
|
169
|
-
var currentFocusIndex = treeLinearItems.findIndex(function(_a2) {
|
|
170
|
-
var _b2;
|
|
171
|
-
var item = _a2.item;
|
|
172
|
-
return item === ((_b2 = viewState[treeId]) === null || _b2 === void 0 ? void 0 : _b2.focusedItem);
|
|
173
|
-
});
|
|
174
|
-
var newIndex = currentFocusIndex !== void 0 ? Math.min(treeLinearItems.length - 1, currentFocusIndex + 1) : 0;
|
|
175
|
-
var newItem = items[treeLinearItems[newIndex].item];
|
|
176
|
-
onFocusItem === null || onFocusItem === void 0 ? void 0 : onFocusItem(newItem, treeId);
|
|
177
|
-
}, [items, linearItems, onFocusItem, viewState]);
|
|
178
|
-
var moveFocusUp = reactExports.useCallback(function(treeId) {
|
|
179
|
-
var treeLinearItems = linearItems[treeId];
|
|
180
|
-
var currentFocusIndex = treeLinearItems.findIndex(function(_a2) {
|
|
181
|
-
var _b2;
|
|
182
|
-
var item = _a2.item;
|
|
183
|
-
return item === ((_b2 = viewState[treeId]) === null || _b2 === void 0 ? void 0 : _b2.focusedItem);
|
|
184
|
-
});
|
|
185
|
-
var newIndex = currentFocusIndex !== void 0 ? Math.max(0, currentFocusIndex - 1) : 0;
|
|
186
|
-
var newItem = items[treeLinearItems[newIndex].item];
|
|
187
|
-
onFocusItem === null || onFocusItem === void 0 ? void 0 : onFocusItem(newItem, treeId);
|
|
188
|
-
}, [items, linearItems, onFocusItem, viewState]);
|
|
189
|
-
var renameItem = reactExports.useCallback(function(itemId, name, treeId) {
|
|
190
|
-
onRenameItem === null || onRenameItem === void 0 ? void 0 : onRenameItem(items[itemId], name, treeId);
|
|
191
|
-
}, [items, onRenameItem]);
|
|
192
|
-
var selectItems = reactExports.useCallback(function(itemsIds, treeId) {
|
|
193
|
-
onSelectItems === null || onSelectItems === void 0 ? void 0 : onSelectItems(itemsIds, treeId);
|
|
194
|
-
}, [onSelectItems]);
|
|
195
|
-
var toggleItemExpandedState = reactExports.useCallback(function(itemId, treeId) {
|
|
196
|
-
var _a2, _b2;
|
|
197
|
-
if ((_b2 = (_a2 = viewState[treeId]) === null || _a2 === void 0 ? void 0 : _a2.expandedItems) === null || _b2 === void 0 ? void 0 : _b2.includes(itemId)) {
|
|
198
|
-
onCollapseItem === null || onCollapseItem === void 0 ? void 0 : onCollapseItem(items[itemId], treeId);
|
|
199
|
-
} else {
|
|
200
|
-
onExpandItem === null || onExpandItem === void 0 ? void 0 : onExpandItem(items[itemId], treeId);
|
|
201
|
-
}
|
|
202
|
-
}, [items, onCollapseItem, onExpandItem, viewState]);
|
|
203
|
-
var toggleItemSelectStatus = reactExports.useCallback(function(itemId, treeId) {
|
|
204
|
-
var _a2, _b2, _c, _d, _e;
|
|
205
|
-
if ((_b2 = (_a2 = viewState[treeId]) === null || _a2 === void 0 ? void 0 : _a2.selectedItems) === null || _b2 === void 0 ? void 0 : _b2.includes(itemId)) {
|
|
206
|
-
onSelectItems === null || onSelectItems === void 0 ? void 0 : onSelectItems((_d = (_c = viewState[treeId].selectedItems) === null || _c === void 0 ? void 0 : _c.filter(function(item) {
|
|
207
|
-
return item !== itemId;
|
|
208
|
-
})) !== null && _d !== void 0 ? _d : [], treeId);
|
|
209
|
-
} else {
|
|
210
|
-
onSelectItems === null || onSelectItems === void 0 ? void 0 : onSelectItems(__spreadArray(__spreadArray([], (_e = viewState[treeId].selectedItems) !== null && _e !== void 0 ? _e : [], true), [itemId], false), treeId);
|
|
211
|
-
}
|
|
212
|
-
}, [onSelectItems, viewState]);
|
|
213
|
-
var invokePrimaryAction = reactExports.useCallback(function(itemId, treeId) {
|
|
214
|
-
onPrimaryAction === null || onPrimaryAction === void 0 ? void 0 : onPrimaryAction(items[itemId], treeId);
|
|
215
|
-
}, [items, onPrimaryAction]);
|
|
216
|
-
var expandSubsequently = reactExports.useCallback(function(treeId, itemIds) {
|
|
217
|
-
return __awaiter(void 0, void 0, void 0, function() {
|
|
218
|
-
var current, rest;
|
|
219
|
-
return __generator(this, function(_a2) {
|
|
220
|
-
switch (_a2.label) {
|
|
221
|
-
case 0:
|
|
222
|
-
current = itemIds[0], rest = itemIds.slice(1);
|
|
223
|
-
return [4, waitFor(function() {
|
|
224
|
-
var _a3;
|
|
225
|
-
return !!((_a3 = itemsRef.current) === null || _a3 === void 0 ? void 0 : _a3[current]);
|
|
226
|
-
}).then(function() {
|
|
227
|
-
var item = itemsRef.current[current];
|
|
228
|
-
if (!item) {
|
|
229
|
-
return Promise.resolve();
|
|
230
|
-
}
|
|
231
|
-
onExpandItem === null || onExpandItem === void 0 ? void 0 : onExpandItem(item, treeId);
|
|
232
|
-
if (rest.length > 0) {
|
|
233
|
-
return expandSubsequently(treeId, rest);
|
|
234
|
-
}
|
|
235
|
-
return Promise.resolve();
|
|
236
|
-
})];
|
|
237
|
-
case 1:
|
|
238
|
-
_a2.sent();
|
|
239
|
-
return [
|
|
240
|
-
2
|
|
241
|
-
/*return*/
|
|
242
|
-
];
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
|
-
}, [itemsRef, onExpandItem]);
|
|
247
|
-
var expandAll = reactExports.useCallback(function(treeId) {
|
|
248
|
-
return __awaiter(void 0, void 0, void 0, function() {
|
|
249
|
-
return __generator(this, function(_a2) {
|
|
250
|
-
switch (_a2.label) {
|
|
251
|
-
case 0:
|
|
252
|
-
return [4, recursiveExpand(trees[treeId].rootItem, itemsRef, function(item) {
|
|
253
|
-
return onExpandItem === null || onExpandItem === void 0 ? void 0 : onExpandItem(item, treeId);
|
|
254
|
-
})];
|
|
255
|
-
case 1:
|
|
256
|
-
_a2.sent();
|
|
257
|
-
return [
|
|
258
|
-
2
|
|
259
|
-
/*return*/
|
|
260
|
-
];
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
}, [itemsRef, onExpandItem, trees]);
|
|
265
|
-
var collapseAll = reactExports.useCallback(function(treeId) {
|
|
266
|
-
var _a2, _b2;
|
|
267
|
-
for (var _i = 0, _c = (_b2 = (_a2 = viewState[treeId]) === null || _a2 === void 0 ? void 0 : _a2.expandedItems) !== null && _b2 !== void 0 ? _b2 : []; _i < _c.length; _i++) {
|
|
268
|
-
var itemId = _c[_i];
|
|
269
|
-
onCollapseItem === null || onCollapseItem === void 0 ? void 0 : onCollapseItem(items[itemId], treeId);
|
|
270
|
-
}
|
|
271
|
-
}, [items, onCollapseItem, viewState]);
|
|
272
|
-
var actions = reactExports.useMemo(function() {
|
|
273
|
-
return {
|
|
274
|
-
collapseItem,
|
|
275
|
-
expandItem,
|
|
276
|
-
focusItem,
|
|
277
|
-
focusTree,
|
|
278
|
-
moveFocusDown,
|
|
279
|
-
moveFocusUp,
|
|
280
|
-
renameItem,
|
|
281
|
-
selectItems,
|
|
282
|
-
toggleItemExpandedState,
|
|
283
|
-
toggleItemSelectStatus,
|
|
284
|
-
invokePrimaryAction,
|
|
285
|
-
expandAll,
|
|
286
|
-
expandSubsequently,
|
|
287
|
-
collapseAll,
|
|
288
|
-
abortProgrammaticDrag,
|
|
289
|
-
completeProgrammaticDrag,
|
|
290
|
-
moveProgrammaticDragPositionDown: programmaticDragDown,
|
|
291
|
-
moveProgrammaticDragPositionUp: programmaticDragUp,
|
|
292
|
-
startProgrammaticDrag
|
|
293
|
-
};
|
|
294
|
-
}, [
|
|
295
|
-
collapseItem,
|
|
296
|
-
expandItem,
|
|
297
|
-
focusItem,
|
|
298
|
-
focusTree,
|
|
299
|
-
moveFocusDown,
|
|
300
|
-
moveFocusUp,
|
|
301
|
-
renameItem,
|
|
302
|
-
selectItems,
|
|
303
|
-
toggleItemExpandedState,
|
|
304
|
-
toggleItemSelectStatus,
|
|
305
|
-
invokePrimaryAction,
|
|
306
|
-
expandAll,
|
|
307
|
-
expandSubsequently,
|
|
308
|
-
collapseAll,
|
|
309
|
-
abortProgrammaticDrag,
|
|
310
|
-
completeProgrammaticDrag,
|
|
311
|
-
programmaticDragDown,
|
|
312
|
-
programmaticDragUp,
|
|
313
|
-
startProgrammaticDrag
|
|
314
|
-
]);
|
|
315
|
-
useCreatedEnvironmentRef(ref, actions);
|
|
316
|
-
return reactExports.createElement(EnvironmentActionsContext.Provider, { value: actions }, props.children);
|
|
317
|
-
});
|
|
318
|
-
export {
|
|
319
|
-
EnvironmentActionsProvider,
|
|
320
|
-
useEnvironmentActions
|
|
321
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../../../../_virtual/index.qwik2.cjs");
|
|
4
|
-
const ControlledTreeEnvironment = require("../controlledEnvironment/ControlledTreeEnvironment.qwik.cjs");
|
|
5
|
-
const DragAndDropProvider = require("../drag/DragAndDropProvider.qwik.cjs");
|
|
6
|
-
var __assign = function() {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var useCreatedEnvironmentRef = function(ref, actions) {
|
|
18
|
-
var environment = ControlledTreeEnvironment.useTreeEnvironment();
|
|
19
|
-
var dnd = DragAndDropProvider.useDragAndDrop();
|
|
20
|
-
index.reactExports.useImperativeHandle(ref, function() {
|
|
21
|
-
return __assign(__assign(__assign({}, actions), environment), { treeEnvironmentContext: environment, dragAndDropContext: dnd });
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
exports.useCreatedEnvironmentRef = useCreatedEnvironmentRef;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { r as reactExports } from "../../../../../../../../_virtual/index.qwik2.mjs";
|
|
2
|
-
import { useTreeEnvironment } from "../controlledEnvironment/ControlledTreeEnvironment.qwik.mjs";
|
|
3
|
-
import { useDragAndDrop } from "../drag/DragAndDropProvider.qwik.mjs";
|
|
4
|
-
var __assign = function() {
|
|
5
|
-
__assign = Object.assign || function(t) {
|
|
6
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7
|
-
s = arguments[i];
|
|
8
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
9
|
-
t[p] = s[p];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
return __assign.apply(this, arguments);
|
|
14
|
-
};
|
|
15
|
-
var useCreatedEnvironmentRef = function(ref, actions) {
|
|
16
|
-
var environment = useTreeEnvironment();
|
|
17
|
-
var dnd = useDragAndDrop();
|
|
18
|
-
reactExports.useImperativeHandle(ref, function() {
|
|
19
|
-
return __assign(__assign(__assign({}, actions), environment), { treeEnvironmentContext: environment, dragAndDropContext: dnd });
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
useCreatedEnvironmentRef
|
|
24
|
-
};
|