@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,31 +0,0 @@
|
|
|
1
|
-
import { r as reactExports } from "../../../../../../../../_virtual/index.qwik2.mjs";
|
|
2
|
-
import { useTree } from "./Tree.qwik.mjs";
|
|
3
|
-
import { useDragAndDrop } from "../drag/DragAndDropProvider.qwik.mjs";
|
|
4
|
-
var DragBetweenLine = function(_a) {
|
|
5
|
-
var _b;
|
|
6
|
-
var treeId = _a.treeId;
|
|
7
|
-
var _c = useDragAndDrop(), draggingPosition = _c.draggingPosition, itemHeight = _c.itemHeight;
|
|
8
|
-
var renderers = useTree().renderers;
|
|
9
|
-
var shouldDisplay = draggingPosition && draggingPosition.targetType === "between-items" && draggingPosition.treeId === treeId;
|
|
10
|
-
if (!shouldDisplay) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
var lineProps = {
|
|
14
|
-
onDragOver: function(e) {
|
|
15
|
-
return e.preventDefault();
|
|
16
|
-
}
|
|
17
|
-
// Allow dropping
|
|
18
|
-
};
|
|
19
|
-
return reactExports.createElement("div", { style: {
|
|
20
|
-
position: "absolute",
|
|
21
|
-
left: "0",
|
|
22
|
-
right: "0",
|
|
23
|
-
top: "".concat(((_b = draggingPosition === null || draggingPosition === void 0 ? void 0 : draggingPosition.linearIndex) !== null && _b !== void 0 ? _b : 0) * itemHeight, "px")
|
|
24
|
-
} }, renderers.renderDragBetweenLine({
|
|
25
|
-
draggingPosition,
|
|
26
|
-
lineProps
|
|
27
|
-
}));
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
DragBetweenLine
|
|
31
|
-
};
|
|
@@ -1,52 +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 defaultLiveDescriptors = require("./defaultLiveDescriptors.qwik.cjs");
|
|
6
|
-
const Tree = require("./Tree.qwik.cjs");
|
|
7
|
-
const DragAndDropProvider = require("../drag/DragAndDropProvider.qwik.cjs");
|
|
8
|
-
const resolveLiveDescriptor = require("./resolveLiveDescriptor.qwik.cjs");
|
|
9
|
-
const useKeyboardBindings = require("../hotkeys/useKeyboardBindings.qwik.cjs");
|
|
10
|
-
var LiveWrapper = function(_a) {
|
|
11
|
-
var children = _a.children, live = _a.live;
|
|
12
|
-
return index.reactExports.createElement("div", { "aria-live": live, dangerouslySetInnerHTML: { __html: children } });
|
|
13
|
-
};
|
|
14
|
-
var LiveDescription = function() {
|
|
15
|
-
var env = ControlledTreeEnvironment.useTreeEnvironment();
|
|
16
|
-
var tree = Tree.useTree();
|
|
17
|
-
var dnd = DragAndDropProvider.useDragAndDrop();
|
|
18
|
-
var keys = useKeyboardBindings.useKeyboardBindings();
|
|
19
|
-
var descriptors = index.reactExports.useMemo(function() {
|
|
20
|
-
var _a;
|
|
21
|
-
return (_a = env.liveDescriptors) !== null && _a !== void 0 ? _a : defaultLiveDescriptors.defaultLiveDescriptors;
|
|
22
|
-
}, [env.liveDescriptors]);
|
|
23
|
-
var MainWrapper = tree.renderers.renderLiveDescriptorContainer;
|
|
24
|
-
if (tree.treeInformation.isRenaming) {
|
|
25
|
-
return index.reactExports.createElement(
|
|
26
|
-
MainWrapper,
|
|
27
|
-
{ tree },
|
|
28
|
-
index.reactExports.createElement(LiveWrapper, { live: "polite" }, resolveLiveDescriptor.resolveLiveDescriptor(descriptors.renamingItem, env, dnd, tree, keys))
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
if (tree.treeInformation.isSearching) {
|
|
32
|
-
return index.reactExports.createElement(
|
|
33
|
-
MainWrapper,
|
|
34
|
-
{ tree },
|
|
35
|
-
index.reactExports.createElement(LiveWrapper, { live: "polite" }, resolveLiveDescriptor.resolveLiveDescriptor(descriptors.searching, env, dnd, tree, keys))
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
if (tree.treeInformation.isProgrammaticallyDragging) {
|
|
39
|
-
return index.reactExports.createElement(
|
|
40
|
-
MainWrapper,
|
|
41
|
-
{ tree },
|
|
42
|
-
index.reactExports.createElement(LiveWrapper, { live: "polite" }, resolveLiveDescriptor.resolveLiveDescriptor(descriptors.programmaticallyDragging, env, dnd, tree, keys)),
|
|
43
|
-
index.reactExports.createElement(LiveWrapper, { live: "assertive" }, resolveLiveDescriptor.resolveLiveDescriptor(descriptors.programmaticallyDraggingTarget, env, dnd, tree, keys))
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
return index.reactExports.createElement(
|
|
47
|
-
MainWrapper,
|
|
48
|
-
{ tree },
|
|
49
|
-
index.reactExports.createElement(LiveWrapper, { live: "off" }, resolveLiveDescriptor.resolveLiveDescriptor(descriptors.introduction, env, dnd, tree, keys))
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
exports.LiveDescription = LiveDescription;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { r as reactExports } from "../../../../../../../../_virtual/index.qwik2.mjs";
|
|
2
|
-
import { useTreeEnvironment } from "../controlledEnvironment/ControlledTreeEnvironment.qwik.mjs";
|
|
3
|
-
import { defaultLiveDescriptors } from "./defaultLiveDescriptors.qwik.mjs";
|
|
4
|
-
import { useTree } from "./Tree.qwik.mjs";
|
|
5
|
-
import { useDragAndDrop } from "../drag/DragAndDropProvider.qwik.mjs";
|
|
6
|
-
import { resolveLiveDescriptor } from "./resolveLiveDescriptor.qwik.mjs";
|
|
7
|
-
import { useKeyboardBindings } from "../hotkeys/useKeyboardBindings.qwik.mjs";
|
|
8
|
-
var LiveWrapper = function(_a) {
|
|
9
|
-
var children = _a.children, live = _a.live;
|
|
10
|
-
return reactExports.createElement("div", { "aria-live": live, dangerouslySetInnerHTML: { __html: children } });
|
|
11
|
-
};
|
|
12
|
-
var LiveDescription = function() {
|
|
13
|
-
var env = useTreeEnvironment();
|
|
14
|
-
var tree = useTree();
|
|
15
|
-
var dnd = useDragAndDrop();
|
|
16
|
-
var keys = useKeyboardBindings();
|
|
17
|
-
var descriptors = reactExports.useMemo(function() {
|
|
18
|
-
var _a;
|
|
19
|
-
return (_a = env.liveDescriptors) !== null && _a !== void 0 ? _a : defaultLiveDescriptors;
|
|
20
|
-
}, [env.liveDescriptors]);
|
|
21
|
-
var MainWrapper = tree.renderers.renderLiveDescriptorContainer;
|
|
22
|
-
if (tree.treeInformation.isRenaming) {
|
|
23
|
-
return reactExports.createElement(
|
|
24
|
-
MainWrapper,
|
|
25
|
-
{ tree },
|
|
26
|
-
reactExports.createElement(LiveWrapper, { live: "polite" }, resolveLiveDescriptor(descriptors.renamingItem, env, dnd, tree, keys))
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
if (tree.treeInformation.isSearching) {
|
|
30
|
-
return reactExports.createElement(
|
|
31
|
-
MainWrapper,
|
|
32
|
-
{ tree },
|
|
33
|
-
reactExports.createElement(LiveWrapper, { live: "polite" }, resolveLiveDescriptor(descriptors.searching, env, dnd, tree, keys))
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
if (tree.treeInformation.isProgrammaticallyDragging) {
|
|
37
|
-
return reactExports.createElement(
|
|
38
|
-
MainWrapper,
|
|
39
|
-
{ tree },
|
|
40
|
-
reactExports.createElement(LiveWrapper, { live: "polite" }, resolveLiveDescriptor(descriptors.programmaticallyDragging, env, dnd, tree, keys)),
|
|
41
|
-
reactExports.createElement(LiveWrapper, { live: "assertive" }, resolveLiveDescriptor(descriptors.programmaticallyDraggingTarget, env, dnd, tree, keys))
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
return reactExports.createElement(
|
|
45
|
-
MainWrapper,
|
|
46
|
-
{ tree },
|
|
47
|
-
reactExports.createElement(LiveWrapper, { live: "off" }, resolveLiveDescriptor(descriptors.introduction, env, dnd, tree, keys))
|
|
48
|
-
);
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
LiveDescription
|
|
52
|
-
};
|
|
@@ -1,14 +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 LiveDescription = require("./LiveDescription.qwik.cjs");
|
|
6
|
-
var MaybeLiveDescription = function() {
|
|
7
|
-
var _a;
|
|
8
|
-
var env = ControlledTreeEnvironment.useTreeEnvironment();
|
|
9
|
-
if (!((_a = env.showLiveDescription) !== null && _a !== void 0 ? _a : true)) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
return index.reactExports.createElement(LiveDescription.LiveDescription, null);
|
|
13
|
-
};
|
|
14
|
-
exports.MaybeLiveDescription = MaybeLiveDescription;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { r as reactExports } from "../../../../../../../../_virtual/index.qwik2.mjs";
|
|
2
|
-
import { useTreeEnvironment } from "../controlledEnvironment/ControlledTreeEnvironment.qwik.mjs";
|
|
3
|
-
import { LiveDescription } from "./LiveDescription.qwik.mjs";
|
|
4
|
-
var MaybeLiveDescription = function() {
|
|
5
|
-
var _a;
|
|
6
|
-
var env = useTreeEnvironment();
|
|
7
|
-
if (!((_a = env.showLiveDescription) !== null && _a !== void 0 ? _a : true)) {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
return reactExports.createElement(LiveDescription, null);
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
MaybeLiveDescription
|
|
14
|
-
};
|
|
@@ -1,87 +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 TreeManager = require("./TreeManager.qwik.cjs");
|
|
6
|
-
const useCreatedTreeInformation = require("./useCreatedTreeInformation.qwik.cjs");
|
|
7
|
-
const getItemsLinearly = require("./getItemsLinearly.qwik.cjs");
|
|
8
|
-
const TreeActionsProvider = require("../treeActions/TreeActionsProvider.qwik.cjs");
|
|
9
|
-
var __assign = function() {
|
|
10
|
-
__assign = Object.assign || function(t) {
|
|
11
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12
|
-
s = arguments[i];
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
};
|
|
18
|
-
return __assign.apply(this, arguments);
|
|
19
|
-
};
|
|
20
|
-
var TreeContext = index.reactExports.createContext(null);
|
|
21
|
-
var useTree = function() {
|
|
22
|
-
return index.reactExports.useContext(TreeContext);
|
|
23
|
-
};
|
|
24
|
-
var Tree = index.reactExports.forwardRef(function(props, ref) {
|
|
25
|
-
var _a;
|
|
26
|
-
var environment = ControlledTreeEnvironment.useTreeEnvironment();
|
|
27
|
-
var renderers = index.reactExports.useMemo(function() {
|
|
28
|
-
return __assign(__assign({}, environment), props);
|
|
29
|
-
}, [props, environment]);
|
|
30
|
-
var _b = index.reactExports.useState(null), search = _b[0], setSearch = _b[1];
|
|
31
|
-
var _c = index.reactExports.useState(null), renamingItem = _c[0], setRenamingItem = _c[1];
|
|
32
|
-
var rootItem = environment.items[props.rootItem];
|
|
33
|
-
var viewState = environment.viewState[props.treeId];
|
|
34
|
-
index.reactExports.useEffect(function() {
|
|
35
|
-
environment.registerTree({
|
|
36
|
-
treeId: props.treeId,
|
|
37
|
-
rootItem: props.rootItem
|
|
38
|
-
});
|
|
39
|
-
return function() {
|
|
40
|
-
return environment.unregisterTree(props.treeId);
|
|
41
|
-
};
|
|
42
|
-
}, [props.treeId, props.rootItem]);
|
|
43
|
-
var treeInformation = useCreatedTreeInformation.useCreatedTreeInformation(props, renamingItem, search);
|
|
44
|
-
var treeContextProps = index.reactExports.useMemo(function() {
|
|
45
|
-
return {
|
|
46
|
-
treeId: props.treeId,
|
|
47
|
-
rootItem: props.rootItem,
|
|
48
|
-
treeLabel: props.treeLabel,
|
|
49
|
-
treeLabelledBy: props.treeLabelledBy,
|
|
50
|
-
getItemsLinearly: function() {
|
|
51
|
-
return getItemsLinearly.getItemsLinearly(props.rootItem, viewState !== null && viewState !== void 0 ? viewState : {}, environment.items);
|
|
52
|
-
},
|
|
53
|
-
treeInformation,
|
|
54
|
-
search,
|
|
55
|
-
setSearch,
|
|
56
|
-
renamingItem,
|
|
57
|
-
setRenamingItem,
|
|
58
|
-
renderers
|
|
59
|
-
};
|
|
60
|
-
}, [
|
|
61
|
-
environment.items,
|
|
62
|
-
props.rootItem,
|
|
63
|
-
props.treeId,
|
|
64
|
-
props.treeLabel,
|
|
65
|
-
props.treeLabelledBy,
|
|
66
|
-
renamingItem,
|
|
67
|
-
renderers,
|
|
68
|
-
search,
|
|
69
|
-
treeInformation,
|
|
70
|
-
viewState
|
|
71
|
-
]);
|
|
72
|
-
if (rootItem === void 0) {
|
|
73
|
-
(_a = environment.onMissingItems) === null || _a === void 0 ? void 0 : _a.call(environment, [props.rootItem]);
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
return index.reactExports.createElement(
|
|
77
|
-
TreeContext.Provider,
|
|
78
|
-
{ value: treeContextProps },
|
|
79
|
-
index.reactExports.createElement(
|
|
80
|
-
TreeActionsProvider.TreeActionsProvider,
|
|
81
|
-
{ ref },
|
|
82
|
-
index.reactExports.createElement(TreeManager.TreeManager, null)
|
|
83
|
-
)
|
|
84
|
-
);
|
|
85
|
-
});
|
|
86
|
-
exports.Tree = Tree;
|
|
87
|
-
exports.useTree = useTree;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { r as reactExports } from "../../../../../../../../_virtual/index.qwik2.mjs";
|
|
2
|
-
import { useTreeEnvironment } from "../controlledEnvironment/ControlledTreeEnvironment.qwik.mjs";
|
|
3
|
-
import { TreeManager } from "./TreeManager.qwik.mjs";
|
|
4
|
-
import { useCreatedTreeInformation } from "./useCreatedTreeInformation.qwik.mjs";
|
|
5
|
-
import { getItemsLinearly } from "./getItemsLinearly.qwik.mjs";
|
|
6
|
-
import { TreeActionsProvider } from "../treeActions/TreeActionsProvider.qwik.mjs";
|
|
7
|
-
var __assign = function() {
|
|
8
|
-
__assign = Object.assign || function(t) {
|
|
9
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10
|
-
s = arguments[i];
|
|
11
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12
|
-
t[p] = s[p];
|
|
13
|
-
}
|
|
14
|
-
return t;
|
|
15
|
-
};
|
|
16
|
-
return __assign.apply(this, arguments);
|
|
17
|
-
};
|
|
18
|
-
var TreeContext = reactExports.createContext(null);
|
|
19
|
-
var useTree = function() {
|
|
20
|
-
return reactExports.useContext(TreeContext);
|
|
21
|
-
};
|
|
22
|
-
var Tree = reactExports.forwardRef(function(props, ref) {
|
|
23
|
-
var _a;
|
|
24
|
-
var environment = useTreeEnvironment();
|
|
25
|
-
var renderers = reactExports.useMemo(function() {
|
|
26
|
-
return __assign(__assign({}, environment), props);
|
|
27
|
-
}, [props, environment]);
|
|
28
|
-
var _b = reactExports.useState(null), search = _b[0], setSearch = _b[1];
|
|
29
|
-
var _c = reactExports.useState(null), renamingItem = _c[0], setRenamingItem = _c[1];
|
|
30
|
-
var rootItem = environment.items[props.rootItem];
|
|
31
|
-
var viewState = environment.viewState[props.treeId];
|
|
32
|
-
reactExports.useEffect(function() {
|
|
33
|
-
environment.registerTree({
|
|
34
|
-
treeId: props.treeId,
|
|
35
|
-
rootItem: props.rootItem
|
|
36
|
-
});
|
|
37
|
-
return function() {
|
|
38
|
-
return environment.unregisterTree(props.treeId);
|
|
39
|
-
};
|
|
40
|
-
}, [props.treeId, props.rootItem]);
|
|
41
|
-
var treeInformation = useCreatedTreeInformation(props, renamingItem, search);
|
|
42
|
-
var treeContextProps = reactExports.useMemo(function() {
|
|
43
|
-
return {
|
|
44
|
-
treeId: props.treeId,
|
|
45
|
-
rootItem: props.rootItem,
|
|
46
|
-
treeLabel: props.treeLabel,
|
|
47
|
-
treeLabelledBy: props.treeLabelledBy,
|
|
48
|
-
getItemsLinearly: function() {
|
|
49
|
-
return getItemsLinearly(props.rootItem, viewState !== null && viewState !== void 0 ? viewState : {}, environment.items);
|
|
50
|
-
},
|
|
51
|
-
treeInformation,
|
|
52
|
-
search,
|
|
53
|
-
setSearch,
|
|
54
|
-
renamingItem,
|
|
55
|
-
setRenamingItem,
|
|
56
|
-
renderers
|
|
57
|
-
};
|
|
58
|
-
}, [
|
|
59
|
-
environment.items,
|
|
60
|
-
props.rootItem,
|
|
61
|
-
props.treeId,
|
|
62
|
-
props.treeLabel,
|
|
63
|
-
props.treeLabelledBy,
|
|
64
|
-
renamingItem,
|
|
65
|
-
renderers,
|
|
66
|
-
search,
|
|
67
|
-
treeInformation,
|
|
68
|
-
viewState
|
|
69
|
-
]);
|
|
70
|
-
if (rootItem === void 0) {
|
|
71
|
-
(_a = environment.onMissingItems) === null || _a === void 0 ? void 0 : _a.call(environment, [props.rootItem]);
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
return reactExports.createElement(
|
|
75
|
-
TreeContext.Provider,
|
|
76
|
-
{ value: treeContextProps },
|
|
77
|
-
reactExports.createElement(
|
|
78
|
-
TreeActionsProvider,
|
|
79
|
-
{ ref },
|
|
80
|
-
reactExports.createElement(TreeManager, null)
|
|
81
|
-
)
|
|
82
|
-
);
|
|
83
|
-
});
|
|
84
|
-
export {
|
|
85
|
-
Tree,
|
|
86
|
-
useTree
|
|
87
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../../../../_virtual/index.qwik2.cjs");
|
|
4
|
-
const TreeItemChildren = require("../treeItem/TreeItemChildren.qwik.cjs");
|
|
5
|
-
const DragBetweenLine = require("./DragBetweenLine.qwik.cjs");
|
|
6
|
-
const useFocusWithin = require("./useFocusWithin.qwik.cjs");
|
|
7
|
-
const useTreeKeyboardBindings = require("./useTreeKeyboardBindings.qwik.cjs");
|
|
8
|
-
const SearchInput = require("../search/SearchInput.qwik.cjs");
|
|
9
|
-
const Tree = require("./Tree.qwik.cjs");
|
|
10
|
-
const ControlledTreeEnvironment = require("../controlledEnvironment/ControlledTreeEnvironment.qwik.cjs");
|
|
11
|
-
const DragAndDropProvider = require("../drag/DragAndDropProvider.qwik.cjs");
|
|
12
|
-
const MaybeLiveDescription = require("./MaybeLiveDescription.qwik.cjs");
|
|
13
|
-
var __assign = function() {
|
|
14
|
-
__assign = Object.assign || function(t) {
|
|
15
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
16
|
-
s = arguments[i];
|
|
17
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
18
|
-
t[p] = s[p];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
return __assign.apply(this, arguments);
|
|
23
|
-
};
|
|
24
|
-
var TreeManager = function() {
|
|
25
|
-
var _a = Tree.useTree(), treeId = _a.treeId, rootItem = _a.rootItem, renderers = _a.renderers, treeInformation = _a.treeInformation;
|
|
26
|
-
var environment = ControlledTreeEnvironment.useTreeEnvironment();
|
|
27
|
-
var containerRef = index.reactExports.useRef();
|
|
28
|
-
var dnd = DragAndDropProvider.useDragAndDrop();
|
|
29
|
-
useTreeKeyboardBindings.useTreeKeyboardBindings();
|
|
30
|
-
useFocusWithin.useFocusWithin(containerRef.current, function() {
|
|
31
|
-
environment.setActiveTree(treeId);
|
|
32
|
-
}, function() {
|
|
33
|
-
environment.setActiveTree(function(oldTreeId) {
|
|
34
|
-
return oldTreeId === treeId ? void 0 : oldTreeId;
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
var rootChildren = environment.items[rootItem].children;
|
|
38
|
-
var treeChildren = index.reactExports.createElement(
|
|
39
|
-
index.reactExports.Fragment,
|
|
40
|
-
null,
|
|
41
|
-
index.reactExports.createElement(MaybeLiveDescription.MaybeLiveDescription, null),
|
|
42
|
-
index.reactExports.createElement(TreeItemChildren.TreeItemChildren, { depth: 0, parentId: rootItem }, rootChildren !== null && rootChildren !== void 0 ? rootChildren : []),
|
|
43
|
-
index.reactExports.createElement(DragBetweenLine.DragBetweenLine, { treeId }),
|
|
44
|
-
index.reactExports.createElement(SearchInput.SearchInput, { containerRef: containerRef.current })
|
|
45
|
-
);
|
|
46
|
-
var containerProps = __assign({ onDragOver: function(e) {
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
dnd.onDragOverTreeHandler(e, treeId, containerRef);
|
|
49
|
-
}, onDragLeave: function(e) {
|
|
50
|
-
dnd.onDragLeaveContainerHandler(e, containerRef);
|
|
51
|
-
}, onMouseDown: function() {
|
|
52
|
-
return dnd.abortProgrammaticDrag();
|
|
53
|
-
}, ref: containerRef, style: { position: "relative" }, role: "tree", "aria-label": !treeInformation.treeLabelledBy ? treeInformation.treeLabel : void 0, "aria-labelledby": treeInformation.treeLabelledBy }, {
|
|
54
|
-
"data-rct-tree": treeId
|
|
55
|
-
});
|
|
56
|
-
return renderers.renderTreeContainer({
|
|
57
|
-
children: treeChildren,
|
|
58
|
-
info: treeInformation,
|
|
59
|
-
containerProps
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
exports.TreeManager = TreeManager;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { r as reactExports } from "../../../../../../../../_virtual/index.qwik2.mjs";
|
|
2
|
-
import { TreeItemChildren } from "../treeItem/TreeItemChildren.qwik.mjs";
|
|
3
|
-
import { DragBetweenLine } from "./DragBetweenLine.qwik.mjs";
|
|
4
|
-
import { useFocusWithin } from "./useFocusWithin.qwik.mjs";
|
|
5
|
-
import { useTreeKeyboardBindings } from "./useTreeKeyboardBindings.qwik.mjs";
|
|
6
|
-
import { SearchInput } from "../search/SearchInput.qwik.mjs";
|
|
7
|
-
import { useTree } from "./Tree.qwik.mjs";
|
|
8
|
-
import { useTreeEnvironment } from "../controlledEnvironment/ControlledTreeEnvironment.qwik.mjs";
|
|
9
|
-
import { useDragAndDrop } from "../drag/DragAndDropProvider.qwik.mjs";
|
|
10
|
-
import { MaybeLiveDescription } from "./MaybeLiveDescription.qwik.mjs";
|
|
11
|
-
var __assign = function() {
|
|
12
|
-
__assign = Object.assign || function(t) {
|
|
13
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
14
|
-
s = arguments[i];
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
}
|
|
18
|
-
return t;
|
|
19
|
-
};
|
|
20
|
-
return __assign.apply(this, arguments);
|
|
21
|
-
};
|
|
22
|
-
var TreeManager = function() {
|
|
23
|
-
var _a = useTree(), treeId = _a.treeId, rootItem = _a.rootItem, renderers = _a.renderers, treeInformation = _a.treeInformation;
|
|
24
|
-
var environment = useTreeEnvironment();
|
|
25
|
-
var containerRef = reactExports.useRef();
|
|
26
|
-
var dnd = useDragAndDrop();
|
|
27
|
-
useTreeKeyboardBindings();
|
|
28
|
-
useFocusWithin(containerRef.current, function() {
|
|
29
|
-
environment.setActiveTree(treeId);
|
|
30
|
-
}, function() {
|
|
31
|
-
environment.setActiveTree(function(oldTreeId) {
|
|
32
|
-
return oldTreeId === treeId ? void 0 : oldTreeId;
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
var rootChildren = environment.items[rootItem].children;
|
|
36
|
-
var treeChildren = reactExports.createElement(
|
|
37
|
-
reactExports.Fragment,
|
|
38
|
-
null,
|
|
39
|
-
reactExports.createElement(MaybeLiveDescription, null),
|
|
40
|
-
reactExports.createElement(TreeItemChildren, { depth: 0, parentId: rootItem }, rootChildren !== null && rootChildren !== void 0 ? rootChildren : []),
|
|
41
|
-
reactExports.createElement(DragBetweenLine, { treeId }),
|
|
42
|
-
reactExports.createElement(SearchInput, { containerRef: containerRef.current })
|
|
43
|
-
);
|
|
44
|
-
var containerProps = __assign({ onDragOver: function(e) {
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
dnd.onDragOverTreeHandler(e, treeId, containerRef);
|
|
47
|
-
}, onDragLeave: function(e) {
|
|
48
|
-
dnd.onDragLeaveContainerHandler(e, containerRef);
|
|
49
|
-
}, onMouseDown: function() {
|
|
50
|
-
return dnd.abortProgrammaticDrag();
|
|
51
|
-
}, ref: containerRef, style: { position: "relative" }, role: "tree", "aria-label": !treeInformation.treeLabelledBy ? treeInformation.treeLabel : void 0, "aria-labelledby": treeInformation.treeLabelledBy }, {
|
|
52
|
-
"data-rct-tree": treeId
|
|
53
|
-
});
|
|
54
|
-
return renderers.renderTreeContainer({
|
|
55
|
-
children: treeChildren,
|
|
56
|
-
info: treeInformation,
|
|
57
|
-
containerProps
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
export {
|
|
61
|
-
TreeManager
|
|
62
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var defaultLiveDescriptors = {
|
|
4
|
-
introduction: "\n <p>Accessibility guide for tree {treeLabel}.</p>\n <p>\n Navigate the tree with the arrow keys. Common tree hotkeys apply. Further keybindings are available:\n </p>\n <ul>\n <li>{keybinding:primaryAction} to execute primary action on focused item</li>\n <li>{keybinding:renameItem} to start renaming the focused item</li>\n <li>{keybinding:abortRenameItem} to abort renaming an item</li>\n <li>{keybinding:startProgrammaticDnd} to start dragging selected items</li>\n </ul>\n ",
|
|
5
|
-
renamingItem: "\n <p>Renaming the item {renamingItem}.</p>\n <p>Use the keybinding {keybinding:abortRenameItem} to abort renaming.</p>\n ",
|
|
6
|
-
searching: "\n <p>Searching</p>\n ",
|
|
7
|
-
programmaticallyDragging: "\n <p>Dragging items {dragItems}.</p>\n <p>Press the arrow keys to move the drag target.</p>\n <p>Press {keybinding:completeProgrammaticDnd} to drop or {keybinding:abortProgrammaticDnd} to abort.</p>\n ",
|
|
8
|
-
programmaticallyDraggingTarget: "\n <p>Drop target is {dropTarget}.</p>\n "
|
|
9
|
-
};
|
|
10
|
-
exports.defaultLiveDescriptors = defaultLiveDescriptors;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var defaultLiveDescriptors = {
|
|
2
|
-
introduction: "\n <p>Accessibility guide for tree {treeLabel}.</p>\n <p>\n Navigate the tree with the arrow keys. Common tree hotkeys apply. Further keybindings are available:\n </p>\n <ul>\n <li>{keybinding:primaryAction} to execute primary action on focused item</li>\n <li>{keybinding:renameItem} to start renaming the focused item</li>\n <li>{keybinding:abortRenameItem} to abort renaming an item</li>\n <li>{keybinding:startProgrammaticDnd} to start dragging selected items</li>\n </ul>\n ",
|
|
3
|
-
renamingItem: "\n <p>Renaming the item {renamingItem}.</p>\n <p>Use the keybinding {keybinding:abortRenameItem} to abort renaming.</p>\n ",
|
|
4
|
-
searching: "\n <p>Searching</p>\n ",
|
|
5
|
-
programmaticallyDragging: "\n <p>Dragging items {dragItems}.</p>\n <p>Press the arrow keys to move the drag target.</p>\n <p>Press {keybinding:completeProgrammaticDnd} to drop or {keybinding:abortProgrammaticDnd} to abort.</p>\n ",
|
|
6
|
-
programmaticallyDraggingTarget: "\n <p>Drop target is {dropTarget}.</p>\n "
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
defaultLiveDescriptors
|
|
10
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var getItemsLinearly = function(rootItem, viewState, items, depth) {
|
|
4
|
-
var _a, _b, _c;
|
|
5
|
-
if (depth === void 0) {
|
|
6
|
-
depth = 0;
|
|
7
|
-
}
|
|
8
|
-
var itemIds = [];
|
|
9
|
-
for (var _i = 0, _d = (_b = (_a = items[rootItem]) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : []; _i < _d.length; _i++) {
|
|
10
|
-
var itemId = _d[_i];
|
|
11
|
-
var item = items[itemId];
|
|
12
|
-
itemIds.push({ item: itemId, depth });
|
|
13
|
-
if (item && item.isFolder && !!item.children && ((_c = viewState.expandedItems) === null || _c === void 0 ? void 0 : _c.includes(itemId))) {
|
|
14
|
-
itemIds.push.apply(itemIds, getItemsLinearly(itemId, viewState, items, depth + 1));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return itemIds;
|
|
18
|
-
};
|
|
19
|
-
exports.getItemsLinearly = getItemsLinearly;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
var getItemsLinearly = function(rootItem, viewState, items, depth) {
|
|
2
|
-
var _a, _b, _c;
|
|
3
|
-
if (depth === void 0) {
|
|
4
|
-
depth = 0;
|
|
5
|
-
}
|
|
6
|
-
var itemIds = [];
|
|
7
|
-
for (var _i = 0, _d = (_b = (_a = items[rootItem]) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : []; _i < _d.length; _i++) {
|
|
8
|
-
var itemId = _d[_i];
|
|
9
|
-
var item = items[itemId];
|
|
10
|
-
itemIds.push({ item: itemId, depth });
|
|
11
|
-
if (item && item.isFolder && !!item.children && ((_c = viewState.expandedItems) === null || _c === void 0 ? void 0 : _c.includes(itemId))) {
|
|
12
|
-
itemIds.push.apply(itemIds, getItemsLinearly(itemId, viewState, items, depth + 1));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return itemIds;
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
getItemsLinearly
|
|
19
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var resolveLiveDescriptor = function(descriptor, environment, dnd, tree, keyboardBindings) {
|
|
4
|
-
var getItemTitle = function(index) {
|
|
5
|
-
return environment.getItemTitle(environment.items[index]);
|
|
6
|
-
};
|
|
7
|
-
return descriptor.replace(/({[^\s}]+)}/g, function(variableNameWithBrackets) {
|
|
8
|
-
var _a, _b, _c;
|
|
9
|
-
var variableName = variableNameWithBrackets.slice(1, -1);
|
|
10
|
-
switch (variableName) {
|
|
11
|
-
case "treeLabel":
|
|
12
|
-
return (_a = tree.treeLabel) !== null && _a !== void 0 ? _a : "";
|
|
13
|
-
case "renamingItem":
|
|
14
|
-
return tree.renamingItem ? getItemTitle(tree.renamingItem) : "None";
|
|
15
|
-
case "dragItems":
|
|
16
|
-
return (_c = (_b = dnd.draggingItems) === null || _b === void 0 ? void 0 : _b.map(function(item) {
|
|
17
|
-
return environment.getItemTitle(item);
|
|
18
|
-
}).join(", ")) !== null && _c !== void 0 ? _c : "None";
|
|
19
|
-
case "dropTarget": {
|
|
20
|
-
if (!dnd.draggingPosition) {
|
|
21
|
-
return "None";
|
|
22
|
-
}
|
|
23
|
-
if (dnd.draggingPosition.targetType === "item" || dnd.draggingPosition.targetType === "root") {
|
|
24
|
-
return "within ".concat(getItemTitle(dnd.draggingPosition.targetItem));
|
|
25
|
-
}
|
|
26
|
-
var parentItem = environment.items[dnd.draggingPosition.parentItem];
|
|
27
|
-
var parentTitle = environment.getItemTitle(parentItem);
|
|
28
|
-
if (dnd.draggingPosition.childIndex === 0) {
|
|
29
|
-
return "within ".concat(parentTitle, " at the start");
|
|
30
|
-
}
|
|
31
|
-
return "within ".concat(parentTitle, " after ").concat(getItemTitle(parentItem.children[dnd.draggingPosition.childIndex - 1]));
|
|
32
|
-
}
|
|
33
|
-
default:
|
|
34
|
-
if (variableName.startsWith("keybinding:")) {
|
|
35
|
-
return keyboardBindings[variableName.slice(11)][0];
|
|
36
|
-
}
|
|
37
|
-
throw Error("Unknown live descriptor variable {".concat(variableName, "}"));
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
exports.resolveLiveDescriptor = resolveLiveDescriptor;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
var resolveLiveDescriptor = function(descriptor, environment, dnd, tree, keyboardBindings) {
|
|
2
|
-
var getItemTitle = function(index) {
|
|
3
|
-
return environment.getItemTitle(environment.items[index]);
|
|
4
|
-
};
|
|
5
|
-
return descriptor.replace(/({[^\s}]+)}/g, function(variableNameWithBrackets) {
|
|
6
|
-
var _a, _b, _c;
|
|
7
|
-
var variableName = variableNameWithBrackets.slice(1, -1);
|
|
8
|
-
switch (variableName) {
|
|
9
|
-
case "treeLabel":
|
|
10
|
-
return (_a = tree.treeLabel) !== null && _a !== void 0 ? _a : "";
|
|
11
|
-
case "renamingItem":
|
|
12
|
-
return tree.renamingItem ? getItemTitle(tree.renamingItem) : "None";
|
|
13
|
-
case "dragItems":
|
|
14
|
-
return (_c = (_b = dnd.draggingItems) === null || _b === void 0 ? void 0 : _b.map(function(item) {
|
|
15
|
-
return environment.getItemTitle(item);
|
|
16
|
-
}).join(", ")) !== null && _c !== void 0 ? _c : "None";
|
|
17
|
-
case "dropTarget": {
|
|
18
|
-
if (!dnd.draggingPosition) {
|
|
19
|
-
return "None";
|
|
20
|
-
}
|
|
21
|
-
if (dnd.draggingPosition.targetType === "item" || dnd.draggingPosition.targetType === "root") {
|
|
22
|
-
return "within ".concat(getItemTitle(dnd.draggingPosition.targetItem));
|
|
23
|
-
}
|
|
24
|
-
var parentItem = environment.items[dnd.draggingPosition.parentItem];
|
|
25
|
-
var parentTitle = environment.getItemTitle(parentItem);
|
|
26
|
-
if (dnd.draggingPosition.childIndex === 0) {
|
|
27
|
-
return "within ".concat(parentTitle, " at the start");
|
|
28
|
-
}
|
|
29
|
-
return "within ".concat(parentTitle, " after ").concat(getItemTitle(parentItem.children[dnd.draggingPosition.childIndex - 1]));
|
|
30
|
-
}
|
|
31
|
-
default:
|
|
32
|
-
if (variableName.startsWith("keybinding:")) {
|
|
33
|
-
return keyboardBindings[variableName.slice(11)][0];
|
|
34
|
-
}
|
|
35
|
-
throw Error("Unknown live descriptor variable {".concat(variableName, "}"));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
resolveLiveDescriptor
|
|
41
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils = require("../utils.qwik.cjs");
|
|
4
|
-
var scrollIntoView = function(element) {
|
|
5
|
-
var _a, _b, _c, _d;
|
|
6
|
-
if (!element) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (element.scrollIntoViewIfNeeded) {
|
|
10
|
-
element.scrollIntoViewIfNeeded();
|
|
11
|
-
} else {
|
|
12
|
-
var boundingBox = element.getBoundingClientRect();
|
|
13
|
-
var isElementInViewport = boundingBox.top >= 0 && boundingBox.left >= 0 && boundingBox.bottom <= (window.innerHeight || !!((_b = (_a = utils.getDocument()) === null || _a === void 0 ? void 0 : _a.documentElement) === null || _b === void 0 ? void 0 : _b.clientHeight)) && boundingBox.right <= (window.innerWidth || !!((_d = (_c = utils.getDocument()) === null || _c === void 0 ? void 0 : _c.documentElement) === null || _d === void 0 ? void 0 : _d.clientWidth));
|
|
14
|
-
if (!isElementInViewport) {
|
|
15
|
-
element.scrollIntoView();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
exports.scrollIntoView = scrollIntoView;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getDocument } from "../utils.qwik.mjs";
|
|
2
|
-
var scrollIntoView = function(element) {
|
|
3
|
-
var _a, _b, _c, _d;
|
|
4
|
-
if (!element) {
|
|
5
|
-
return;
|
|
6
|
-
}
|
|
7
|
-
if (element.scrollIntoViewIfNeeded) {
|
|
8
|
-
element.scrollIntoViewIfNeeded();
|
|
9
|
-
} else {
|
|
10
|
-
var boundingBox = element.getBoundingClientRect();
|
|
11
|
-
var isElementInViewport = boundingBox.top >= 0 && boundingBox.left >= 0 && boundingBox.bottom <= (window.innerHeight || !!((_b = (_a = getDocument()) === null || _a === void 0 ? void 0 : _a.documentElement) === null || _b === void 0 ? void 0 : _b.clientHeight)) && boundingBox.right <= (window.innerWidth || !!((_d = (_c = getDocument()) === null || _c === void 0 ? void 0 : _c.documentElement) === null || _d === void 0 ? void 0 : _d.clientWidth));
|
|
12
|
-
if (!isElementInViewport) {
|
|
13
|
-
element.scrollIntoView();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
scrollIntoView
|
|
19
|
-
};
|