@1771technologies/lytenyte-pro 0.9.3 → 1.0.0-beta.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/README.md +3 -2
- package/dist/+types.d.ts +5299 -0
- package/dist/+types.js +1 -0
- package/dist/cell-selection/adjust-rect-for-row-and-cell-span.d.ts +2 -0
- package/dist/cell-selection/adjust-rect-for-row-and-cell-span.js +43 -0
- package/dist/cell-selection/are-rects-equal.d.ts +2 -0
- package/dist/cell-selection/are-rects-equal.js +6 -0
- package/dist/cell-selection/bound-selection-rect.d.ts +2 -0
- package/dist/cell-selection/bound-selection-rect.js +17 -0
- package/dist/cell-selection/cell-selection-containers.d.ts +3 -0
- package/dist/cell-selection/cell-selection-containers.js +91 -0
- package/dist/cell-selection/cell-selection-driver.js +272 -0
- package/dist/{types/cell-selection → cell-selection}/cell-style-row.d.ts +2 -2
- package/dist/cell-selection/cell-style-row.js +84 -0
- package/dist/cell-selection/deselect-rect-range.d.ts +2 -0
- package/dist/cell-selection/deselect-rect-range.js +43 -0
- package/dist/cell-selection/expand-cell-selection-down.d.ts +5 -0
- package/dist/cell-selection/expand-cell-selection-down.js +39 -0
- package/dist/cell-selection/expand-cell-selection-end.d.ts +5 -0
- package/dist/cell-selection/expand-cell-selection-end.js +40 -0
- package/dist/cell-selection/expand-cell-selection-start.d.ts +5 -0
- package/dist/cell-selection/expand-cell-selection-start.js +39 -0
- package/dist/cell-selection/expand-cell-selection-up.d.ts +5 -0
- package/dist/cell-selection/expand-cell-selection-up.js +39 -0
- package/dist/cell-selection/full-width-start-end-index.d.ts +2 -0
- package/dist/cell-selection/full-width-start-end-index.js +5 -0
- package/dist/cell-selection/get-root-cell.d.ts +2 -0
- package/dist/cell-selection/get-root-cell.js +86 -0
- package/dist/cell-selection/index.d.ts +19 -0
- package/dist/cell-selection/index.js +19 -0
- package/dist/cell-selection/is-bottom-rect.d.ts +2 -0
- package/dist/cell-selection/is-bottom-rect.js +7 -0
- package/dist/cell-selection/is-center-col-rect.d.ts +5 -0
- package/dist/cell-selection/is-center-col-rect.js +5 -0
- package/dist/cell-selection/is-center-rect.d.ts +2 -0
- package/dist/cell-selection/is-center-rect.js +5 -0
- package/dist/cell-selection/is-end-rect.d.ts +5 -0
- package/dist/cell-selection/is-end-rect.js +4 -0
- package/dist/cell-selection/is-overlapping-rect.d.ts +2 -0
- package/dist/cell-selection/is-overlapping-rect.js +6 -0
- package/dist/cell-selection/is-start-rect.d.ts +5 -0
- package/dist/cell-selection/is-start-rect.js +4 -0
- package/dist/cell-selection/is-top-rect.d.ts +2 -0
- package/dist/cell-selection/is-top-rect.js +4 -0
- package/dist/cell-selection/is-within-selection-rect.d.ts +2 -0
- package/dist/cell-selection/is-within-selection-rect.js +3 -0
- package/dist/cell-selection/split-cell-selection-rect.d.ts +39 -0
- package/dist/cell-selection/split-cell-selection-rect.js +79 -0
- package/dist/cell-selection/update-additive-cell-selection.d.ts +5 -0
- package/dist/cell-selection/update-additive-cell-selection.js +25 -0
- package/dist/cell-selection/use-edge-scroll.d.ts +10 -0
- package/dist/cell-selection/use-edge-scroll.js +66 -0
- package/dist/cells/cell-default.d.ts +2 -0
- package/dist/cells/cell-default.js +8 -0
- package/dist/cells/cell-editor.d.ts +6 -0
- package/dist/cells/cell-editor.js +96 -0
- package/dist/cells/cell.d.ts +7 -0
- package/dist/cells/cell.js +37 -0
- package/dist/column-manager/branch-lookup-context.d.ts +4 -0
- package/dist/column-manager/branch-lookup-context.js +3 -0
- package/dist/column-manager/branch.d.ts +9 -0
- package/dist/column-manager/branch.js +38 -0
- package/dist/column-manager/column-manager.d.ts +15 -0
- package/dist/column-manager/column-manager.js +20 -0
- package/dist/column-manager/context.d.ts +7 -0
- package/dist/column-manager/context.js +3 -0
- package/dist/column-manager/label.d.ts +5 -0
- package/dist/column-manager/label.js +18 -0
- package/dist/column-manager/leaf.d.ts +6 -0
- package/dist/column-manager/leaf.js +40 -0
- package/dist/column-manager/move-handle.d.ts +12 -0
- package/dist/column-manager/move-handle.js +58 -0
- package/dist/column-manager/passive-scroll.d.ts +2 -0
- package/dist/column-manager/passive-scroll.js +2 -0
- package/dist/column-manager/root.d.ts +9 -0
- package/dist/column-manager/root.js +20 -0
- package/dist/column-manager/use-column-manager.d.ts +19 -0
- package/dist/column-manager/use-column-manager.js +24 -0
- package/dist/column-manager/use-columns-from-context.d.ts +3 -0
- package/dist/column-manager/use-columns-from-context.js +23 -0
- package/dist/column-manager/visibility-checkbox.d.ts +9 -0
- package/dist/column-manager/visibility-checkbox.js +30 -0
- package/dist/context.d.ts +10 -0
- package/dist/context.js +4 -0
- package/dist/filter-tree/branch.d.ts +10 -0
- package/dist/filter-tree/branch.js +21 -0
- package/dist/filter-tree/context.d.ts +27 -0
- package/dist/filter-tree/context.js +5 -0
- package/dist/filter-tree/filter-tree.d.ts +14 -0
- package/dist/filter-tree/filter-tree.js +18 -0
- package/dist/filter-tree/hooks/use-filter-tree.d.ts +37 -0
- package/dist/filter-tree/hooks/use-filter-tree.js +96 -0
- package/dist/filter-tree/hooks/use-tree-item.d.ts +8 -0
- package/dist/filter-tree/hooks/use-tree-item.js +116 -0
- package/dist/filter-tree/inclusion-checkbox.d.ts +9 -0
- package/dist/filter-tree/inclusion-checkbox.js +14 -0
- package/dist/filter-tree/label.d.ts +5 -0
- package/dist/filter-tree/label.js +18 -0
- package/dist/filter-tree/leaf.d.ts +6 -0
- package/dist/filter-tree/leaf.js +12 -0
- package/dist/filter-tree/root.d.ts +13 -0
- package/dist/filter-tree/root.js +30 -0
- package/dist/grid-box/+types.d.ts +13 -0
- package/dist/grid-box/+types.js +1 -0
- package/dist/grid-box/context.d.ts +9 -0
- package/dist/grid-box/context.js +3 -0
- package/dist/grid-box/grid-box.d.ts +12 -0
- package/dist/grid-box/grid-box.js +14 -0
- package/dist/grid-box/item.d.ts +7 -0
- package/dist/grid-box/item.js +33 -0
- package/dist/grid-box/panel.d.ts +1 -0
- package/dist/grid-box/panel.js +9 -0
- package/dist/grid-box/root.d.ts +9 -0
- package/dist/grid-box/root.js +8 -0
- package/dist/grid-box/use-aggregation-box-items.d.ts +18 -0
- package/dist/grid-box/use-aggregation-box-items.js +60 -0
- package/dist/grid-box/use-column-box-items.d.ts +31 -0
- package/dist/grid-box/use-column-box-items.js +81 -0
- package/dist/grid-box/use-row-group-box-items.d.ts +18 -0
- package/dist/grid-box/use-row-group-box-items.js +134 -0
- package/dist/grid-provider/context.d.ts +5 -0
- package/dist/grid-provider/context.js +2 -0
- package/dist/grid-provider/provider.d.ts +3 -0
- package/dist/grid-provider/provider.js +2 -0
- package/dist/grid-provider/use-grid.d.ts +3 -0
- package/dist/grid-provider/use-grid.js +3 -0
- package/dist/grid.d.ts +29 -0
- package/dist/grid.js +38 -0
- package/dist/header/header-cell.d.ts +10 -0
- package/dist/header/header-cell.js +24 -0
- package/dist/header/header-group-cell.d.ts +5 -0
- package/dist/header/header-group-cell.js +14 -0
- package/dist/header/header-row.d.ts +4 -0
- package/dist/header/header-row.js +10 -0
- package/dist/header/header.d.ts +1 -0
- package/dist/header/header.js +10 -0
- package/dist/header/resize-handler.d.ts +12 -0
- package/dist/header/resize-handler.js +128 -0
- package/dist/header/use-drag-move.d.ts +14 -0
- package/dist/header/use-drag-move.js +90 -0
- package/dist/header/use-header-cell-renderer.d.ts +4 -0
- package/dist/header/use-header-cell-renderer.js +36 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -3860
- package/dist/license.d.ts +2 -0
- package/dist/license.js +217 -0
- package/dist/listbox/context.d.ts +6 -0
- package/dist/listbox/context.js +3 -0
- package/dist/listbox/item.d.ts +1 -0
- package/dist/listbox/item.js +25 -0
- package/dist/listbox/panel.d.ts +1 -0
- package/dist/listbox/panel.js +50 -0
- package/dist/listbox/root.d.ts +6 -0
- package/dist/listbox/root.js +12 -0
- package/dist/root/dialog-driver.js +21 -0
- package/dist/root/popover-driver.js +21 -0
- package/dist/root/root.d.ts +8 -0
- package/dist/root/root.js +120 -0
- package/dist/row-data-source-client/+constants.d.ts +2 -0
- package/dist/row-data-source-client/+constants.js +2 -0
- package/dist/row-data-source-client/+types.d.ts +27 -0
- package/dist/row-data-source-client/+types.js +1 -0
- package/dist/row-data-source-client/built-ins/avg.d.ts +10 -0
- package/dist/row-data-source-client/built-ins/avg.js +16 -0
- package/dist/row-data-source-client/built-ins/built-ins.d.ts +44 -0
- package/dist/row-data-source-client/built-ins/built-ins.js +44 -0
- package/dist/row-data-source-client/built-ins/count.d.ts +10 -0
- package/dist/row-data-source-client/built-ins/count.js +16 -0
- package/dist/row-data-source-client/built-ins/first.d.ts +10 -0
- package/dist/row-data-source-client/built-ins/first.js +12 -0
- package/dist/row-data-source-client/built-ins/group.d.ts +1 -0
- package/dist/row-data-source-client/built-ins/group.js +3 -0
- package/dist/row-data-source-client/built-ins/last.d.ts +10 -0
- package/dist/row-data-source-client/built-ins/last.js +12 -0
- package/dist/row-data-source-client/built-ins/max.d.ts +11 -0
- package/dist/row-data-source-client/built-ins/max.js +25 -0
- package/dist/row-data-source-client/built-ins/min.d.ts +11 -0
- package/dist/row-data-source-client/built-ins/min.js +25 -0
- package/dist/row-data-source-client/built-ins/sum.d.ts +10 -0
- package/dist/row-data-source-client/built-ins/sum.js +21 -0
- package/dist/row-data-source-client/filter/+types.d.ts +23 -0
- package/dist/row-data-source-client/filter/+types.js +1 -0
- package/dist/row-data-source-client/filter/compute-filtered-rows.d.ts +2 -0
- package/dist/row-data-source-client/filter/compute-filtered-rows.js +109 -0
- package/dist/row-data-source-client/pivots/create-agg-model.d.ts +6 -0
- package/dist/row-data-source-client/pivots/create-agg-model.js +13 -0
- package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.d.ts +2 -0
- package/dist/row-data-source-client/pivots/create-pivot-columns-from-paths.js +50 -0
- package/dist/row-data-source-client/pivots/create-pivot-columns.d.ts +2 -0
- package/dist/row-data-source-client/pivots/create-pivot-columns.js +22 -0
- package/dist/row-data-source-client/pivots/create-pivot-tree.d.ts +2 -0
- package/dist/row-data-source-client/pivots/create-pivot-tree.js +23 -0
- package/dist/row-data-source-client/tree/client-tree.d.ts +18 -0
- package/dist/row-data-source-client/tree/client-tree.js +76 -0
- package/dist/row-data-source-client/tree/evaluator-aggregation.d.ts +2 -0
- package/dist/row-data-source-client/tree/evaluator-aggregation.js +8 -0
- package/dist/row-data-source-client/tree/evaluator-group.d.ts +2 -0
- package/dist/row-data-source-client/tree/evaluator-group.js +9 -0
- package/dist/row-data-source-client/tree/traverse.d.ts +2 -0
- package/dist/row-data-source-client/tree/traverse.js +22 -0
- package/dist/row-data-source-client/use-client-data-source-paginated.d.ts +10 -0
- package/dist/row-data-source-client/use-client-data-source-paginated.js +538 -0
- package/dist/row-data-source-client/use-client-data-source.d.ts +10 -0
- package/dist/row-data-source-client/use-client-data-source.js +667 -0
- package/dist/row-data-source-client/use-client-tree-data-source.d.ts +9 -0
- package/dist/row-data-source-client/use-client-tree-data-source.js +513 -0
- package/dist/row-data-source-server/async-tree/+constants.async-tree.d.ts +1 -0
- package/dist/row-data-source-server/async-tree/+constants.async-tree.js +1 -0
- package/dist/row-data-source-server/async-tree/+types.async-tree.d.ts +59 -0
- package/dist/row-data-source-server/async-tree/+types.async-tree.js +1 -0
- package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/apply-delete-action-to-tree.js +27 -0
- package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/apply-set-action-to-tree.js +36 -0
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-unique.js +24 -0
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-are-valid.js +14 -0
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/check-set-action-item-keys-fit.js +18 -0
- package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/check-set-action-item-kinds.js +14 -0
- package/dist/row-data-source-server/async-tree/get-parent-node-by-path.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/get-parent-node-by-path.js +18 -0
- package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/is-set-action-a-no-op-on-node.js +3 -0
- package/dist/row-data-source-server/async-tree/make-async-tree.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/make-async-tree.js +19 -0
- package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/maybe-apply-parent-remove-self.js +8 -0
- package/dist/row-data-source-server/async-tree/maybe-apply-resize.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/maybe-apply-resize.js +17 -0
- package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.d.ts +2 -0
- package/dist/row-data-source-server/async-tree/maybe-apply-set-action-items.js +51 -0
- package/dist/row-data-source-server/range-tree/range-tree.d.ts +66 -0
- package/dist/row-data-source-server/range-tree/range-tree.js +102 -0
- package/dist/row-data-source-server/use-server-data-source.d.ts +3 -0
- package/dist/row-data-source-server/use-server-data-source.js +679 -0
- package/dist/row-data-source-server/utils/get-node-depth.d.ts +2 -0
- package/dist/row-data-source-server/utils/get-node-depth.js +9 -0
- package/dist/row-data-source-server/utils/get-node-path.d.ts +2 -0
- package/dist/row-data-source-server/utils/get-node-path.js +9 -0
- package/dist/row-data-source-server/utils/get-request-id.d.ts +1 -0
- package/dist/row-data-source-server/utils/get-request-id.js +6 -0
- package/dist/rows/row/context.d.ts +6 -0
- package/dist/rows/row/context.js +3 -0
- package/dist/rows/row/row.d.ts +7 -0
- package/dist/rows/row/row.js +16 -0
- package/dist/rows/row/use-row-context-value.d.ts +6 -0
- package/dist/rows/row/use-row-context-value.js +29 -0
- package/dist/rows/row-detail-row.d.ts +4 -0
- package/dist/rows/row-detail-row.js +131 -0
- package/dist/rows/row-full-width.d.ts +8 -0
- package/dist/rows/row-full-width.js +17 -0
- package/dist/rows/rows-container.d.ts +1 -0
- package/dist/rows/rows-container.js +9 -0
- package/dist/rows/rows-sections.d.ts +3 -0
- package/dist/rows/rows-sections.js +27 -0
- package/dist/rows/scrollers/native-scroller.d.ts +2 -0
- package/dist/rows/scrollers/native-scroller.js +18 -0
- package/dist/{types/sort-manager/use-sort-state.d.ts → sort-manager/+types.d.ts} +5 -2
- package/dist/sort-manager/+types.js +1 -0
- package/dist/sort-manager/context.d.ts +14 -0
- package/dist/sort-manager/context.js +5 -0
- package/dist/sort-manager/hooks/use-sort-manager.d.ts +15 -0
- package/dist/sort-manager/hooks/use-sort-manager.js +56 -0
- package/dist/{types/sort-manager/sort-manager-container.d.ts → sort-manager/hooks/use-sort-row-item.d.ts} +5 -7
- package/dist/sort-manager/hooks/use-sort-row-item.js +145 -0
- package/dist/sort-manager/hooks/use-sortable-column-items.d.ts +5 -0
- package/dist/sort-manager/hooks/use-sortable-column-items.js +13 -0
- package/dist/sort-manager/root.d.ts +3 -0
- package/dist/sort-manager/root.js +14 -0
- package/dist/sort-manager/sort-add.d.ts +8 -0
- package/dist/sort-manager/sort-add.js +14 -0
- package/dist/sort-manager/sort-apply.d.ts +7 -0
- package/dist/sort-manager/sort-apply.js +24 -0
- package/dist/sort-manager/sort-cancel.d.ts +7 -0
- package/dist/sort-manager/sort-cancel.js +27 -0
- package/dist/sort-manager/sort-clear.d.ts +7 -0
- package/dist/sort-manager/sort-clear.js +22 -0
- package/dist/sort-manager/sort-column-select.d.ts +10 -0
- package/dist/sort-manager/sort-column-select.js +20 -0
- package/dist/sort-manager/sort-direction-select.d.ts +10 -0
- package/dist/sort-manager/sort-direction-select.js +24 -0
- package/dist/sort-manager/sort-manager.d.ts +16 -0
- package/dist/sort-manager/sort-manager.js +26 -0
- package/dist/sort-manager/sort-remove.d.ts +7 -0
- package/dist/sort-manager/sort-remove.js +14 -0
- package/dist/sort-manager/sort-row.d.ts +5 -0
- package/dist/sort-manager/sort-row.js +7 -0
- package/dist/sort-manager/sort-rows.d.ts +1 -0
- package/dist/sort-manager/sort-rows.js +6 -0
- package/dist/sort-manager/sort-value-select.d.ts +11 -0
- package/dist/sort-manager/sort-value-select.js +25 -0
- package/dist/sort-manager/utils/sort-item-to-sort-model.d.ts +3 -0
- package/dist/sort-manager/utils/sort-item-to-sort-model.js +57 -0
- package/dist/sort-manager/utils/sort-model-to-sort-items.d.ts +3 -0
- package/dist/sort-manager/utils/sort-model-to-sort-items.js +49 -0
- package/dist/state/+types.d.ts +34 -0
- package/dist/state/+types.js +1 -0
- package/dist/state/api/column-autosize.d.ts +5 -0
- package/dist/state/api/column-autosize.js +72 -0
- package/dist/state/api/column-by-id.d.ts +2 -0
- package/dist/state/api/column-by-id.js +6 -0
- package/dist/state/api/column-field.d.ts +2 -0
- package/dist/state/api/column-field.js +23 -0
- package/dist/state/api/column-from-index.d.ts +2 -0
- package/dist/state/api/column-from-index.js +6 -0
- package/dist/state/api/column-group-toggle.d.ts +2 -0
- package/dist/state/api/column-group-toggle.js +10 -0
- package/dist/state/api/column-index.d.ts +2 -0
- package/dist/state/api/column-index.js +7 -0
- package/dist/state/api/column-move.d.ts +2 -0
- package/dist/state/api/column-move.js +49 -0
- package/dist/state/api/column-resize.d.ts +2 -0
- package/dist/state/api/column-resize.js +9 -0
- package/dist/state/api/column-update.d.ts +2 -0
- package/dist/state/api/column-update.js +13 -0
- package/dist/state/api/dialog-frame.d.ts +8 -0
- package/dist/state/api/dialog-frame.js +16 -0
- package/dist/state/api/edit-begin.d.ts +5 -0
- package/dist/state/api/edit-begin.js +91 -0
- package/dist/state/api/edit-end.d.ts +5 -0
- package/dist/state/api/edit-end.js +43 -0
- package/dist/state/api/edit-is-cell-active.d.ts +5 -0
- package/dist/state/api/edit-is-cell-active.js +27 -0
- package/dist/state/api/edit-update.d.ts +5 -0
- package/dist/state/api/edit-update.js +88 -0
- package/dist/state/api/event-listeners.d.ts +5 -0
- package/dist/state/api/event-listeners.js +19 -0
- package/dist/state/api/export-csv.d.ts +3 -0
- package/dist/state/api/export-csv.js +40 -0
- package/dist/state/api/export-data-rect.d.ts +2 -0
- package/dist/state/api/export-data-rect.js +24 -0
- package/dist/state/api/focus-cell.d.ts +5 -0
- package/dist/state/api/focus-cell.js +117 -0
- package/dist/state/api/popover-frame.d.ts +8 -0
- package/dist/state/api/popover-frame.js +16 -0
- package/dist/state/api/position-from-element.d.ts +2 -0
- package/dist/state/api/position-from-element.js +9 -0
- package/dist/state/api/row-by-id.d.ts +2 -0
- package/dist/state/api/row-by-id.js +5 -0
- package/dist/state/api/row-by-index.d.ts +2 -0
- package/dist/state/api/row-by-index.js +9 -0
- package/dist/state/api/row-detail-is-expanded.d.ts +2 -0
- package/dist/state/api/row-detail-is-expanded.js +6 -0
- package/dist/state/api/row-detail-rendered-height.d.ts +5 -0
- package/dist/state/api/row-detail-rendered-height.js +14 -0
- package/dist/state/api/row-detail-toggle.d.ts +2 -0
- package/dist/state/api/row-detail-toggle.js +32 -0
- package/dist/state/api/row-group-apply-expansions.d.ts +2 -0
- package/dist/state/api/row-group-apply-expansions.js +20 -0
- package/dist/state/api/row-group-column-index.d.ts +2 -0
- package/dist/state/api/row-group-column-index.js +14 -0
- package/dist/state/api/row-group-is-expanded.d.ts +2 -0
- package/dist/state/api/row-group-is-expanded.js +15 -0
- package/dist/state/api/row-group-toggle.d.ts +2 -0
- package/dist/state/api/row-group-toggle.js +7 -0
- package/dist/state/api/row-handle-select.d.ts +5 -0
- package/dist/state/api/row-handle-select.js +43 -0
- package/dist/state/api/row-select-all.d.ts +2 -0
- package/dist/state/api/row-select-all.js +17 -0
- package/dist/state/api/row-select.d.ts +5 -0
- package/dist/state/api/row-select.js +35 -0
- package/dist/state/api/row-selected.d.ts +2 -0
- package/dist/state/api/row-selected.js +13 -0
- package/dist/state/api/scroll-into-view.d.ts +5 -0
- package/dist/state/api/scroll-into-view.js +50 -0
- package/dist/state/api/sort-for-column.d.ts +2 -0
- package/dist/state/api/sort-for-column.js +9 -0
- package/dist/state/api/use-row-drag.d.ts +2 -0
- package/dist/state/api/use-row-drag.js +27 -0
- package/dist/state/helpers/cell-row-group.d.ts +2 -0
- package/dist/state/helpers/cell-row-group.js +19 -0
- package/dist/state/helpers/column-add-row-group.d.ts +9 -0
- package/dist/state/helpers/column-add-row-group.js +66 -0
- package/dist/state/helpers/column-layout.d.ts +3 -0
- package/dist/state/helpers/column-layout.js +65 -0
- package/dist/state/helpers/column-marker.d.ts +8 -0
- package/dist/state/helpers/column-marker.js +43 -0
- package/dist/state/helpers/column-view.d.ts +21 -0
- package/dist/state/helpers/column-view.js +33 -0
- package/dist/state/helpers/edit-on-change.d.ts +15 -0
- package/dist/state/helpers/edit-on-change.js +26 -0
- package/dist/state/helpers/empty-row-data-source.d.ts +2 -0
- package/dist/state/helpers/empty-row-data-source.js +17 -0
- package/dist/state/helpers/get-data-rect.d.ts +13 -0
- package/dist/state/helpers/get-data-rect.js +65 -0
- package/dist/state/helpers/get-full-width-callback.d.ts +2 -0
- package/dist/state/helpers/get-full-width-callback.js +8 -0
- package/dist/state/helpers/get-span-callback.d.ts +2 -0
- package/dist/state/helpers/get-span-callback.js +20 -0
- package/dist/state/helpers/resolve-column.d.ts +4 -0
- package/dist/state/helpers/resolve-column.js +22 -0
- package/dist/state/helpers/row-layout/get-focus-criteria.d.ts +17 -0
- package/dist/state/helpers/row-layout/get-focus-criteria.js +62 -0
- package/dist/state/helpers/row-layout/row-layout.d.ts +18 -0
- package/dist/state/helpers/row-layout/row-layout.js +414 -0
- package/dist/state/use-lytenyte.d.ts +3 -0
- package/dist/state/use-lytenyte.js +579 -0
- package/dist/tree-view/branch/branch.d.ts +11 -0
- package/dist/tree-view/branch/branch.js +61 -0
- package/dist/tree-view/branch/use-branch-keys.d.ts +2 -0
- package/dist/tree-view/branch/use-branch-keys.js +87 -0
- package/dist/tree-view/context.d.ts +22 -0
- package/dist/tree-view/context.js +3 -0
- package/dist/tree-view/depth-provider.d.ts +2 -0
- package/dist/tree-view/depth-provider.js +3 -0
- package/dist/tree-view/hooks/use-tree-view-paths.d.ts +2 -0
- package/dist/tree-view/hooks/use-tree-view-paths.js +9 -0
- package/dist/tree-view/index.d.ts +16 -0
- package/dist/tree-view/index.js +16 -0
- package/dist/tree-view/leaf.d.ts +4 -0
- package/dist/tree-view/leaf.js +27 -0
- package/dist/tree-view/navigation/get-all-ids.d.ts +1 -0
- package/dist/tree-view/navigation/get-all-ids.js +7 -0
- package/dist/tree-view/navigation/get-first-node.d.ts +1 -0
- package/dist/tree-view/navigation/get-first-node.js +7 -0
- package/dist/tree-view/navigation/get-last-node.d.ts +1 -0
- package/dist/tree-view/navigation/get-last-node.js +7 -0
- package/dist/tree-view/navigation/get-next-node.d.ts +1 -0
- package/dist/tree-view/navigation/get-next-node.js +13 -0
- package/dist/tree-view/navigation/get-prev-node.d.ts +1 -0
- package/dist/tree-view/navigation/get-prev-node.js +13 -0
- package/dist/tree-view/panel/make-handle-navigation.d.ts +2 -0
- package/dist/tree-view/panel/make-handle-navigation.js +39 -0
- package/dist/tree-view/panel/make-handle-selection.d.ts +2 -0
- package/dist/tree-view/panel/make-handle-selection.js +92 -0
- package/dist/tree-view/panel/make-handle-typeahead.d.ts +1 -0
- package/dist/tree-view/panel/make-handle-typeahead.js +45 -0
- package/dist/tree-view/panel/panel.d.ts +1 -0
- package/dist/tree-view/panel/panel.js +30 -0
- package/dist/tree-view/panel/use-tree-navigation.d.ts +1 -0
- package/dist/tree-view/panel/use-tree-navigation.js +63 -0
- package/dist/tree-view/root.d.ts +17 -0
- package/dist/tree-view/root.js +63 -0
- package/dist/tree-view/utils/get-focusable-nodes.d.ts +1 -0
- package/dist/tree-view/utils/get-focusable-nodes.js +5 -0
- package/dist/tree-view/utils/get-focused-node.d.ts +1 -0
- package/dist/tree-view/utils/get-focused-node.js +14 -0
- package/dist/tree-view/utils/get-ids-between-nodes.d.ts +1 -0
- package/dist/tree-view/utils/get-ids-between-nodes.js +15 -0
- package/dist/tree-view/utils/get-panel.d.ts +1 -0
- package/dist/tree-view/utils/get-panel.js +7 -0
- package/dist/tree-view/utils/get-parent-node.d.ts +1 -0
- package/dist/tree-view/utils/get-parent-node.js +10 -0
- package/dist/tree-view/utils/get-sibling-branches.d.ts +1 -0
- package/dist/tree-view/utils/get-sibling-branches.js +14 -0
- package/dist/tree-view/utils/get-tree-node-id.d.ts +1 -0
- package/dist/tree-view/utils/get-tree-node-id.js +3 -0
- package/dist/tree-view/utils/is-branch-node.d.ts +1 -0
- package/dist/tree-view/utils/is-branch-node.js +3 -0
- package/dist/tree-view/utils/is-leaf-node.d.ts +1 -0
- package/dist/tree-view/utils/is-leaf-node.js +3 -0
- package/dist/tree-view/utils/is-tree-node-disabled.d.ts +1 -0
- package/dist/tree-view/utils/is-tree-node-disabled.js +3 -0
- package/dist/tree-view/utils/select-node.d.ts +2 -0
- package/dist/tree-view/utils/select-node.js +15 -0
- package/dist/tree-view/utils/toggle-all-selections.d.ts +2 -0
- package/dist/tree-view/utils/toggle-all-selections.js +9 -0
- package/dist/tree-view/utils/toggle-selection.d.ts +2 -0
- package/dist/tree-view/utils/toggle-selection.js +21 -0
- package/dist/tree-view/virtualized/force-sync-scrolling.d.ts +2 -0
- package/dist/tree-view/virtualized/force-sync-scrolling.js +23 -0
- package/dist/tree-view/virtualized/get-virtual-tree-paths.d.ts +2 -0
- package/dist/tree-view/virtualized/get-virtual-tree-paths.js +14 -0
- package/dist/tree-view/virtualized/make-virtual-tree.d.ts +31 -0
- package/dist/tree-view/virtualized/make-virtual-tree.js +90 -0
- package/dist/tree-view/virtualized/use-flattened-tree.d.ts +9 -0
- package/dist/tree-view/virtualized/use-flattened-tree.js +36 -0
- package/dist/tree-view/virtualized/use-row-start-and-end.d.ts +2 -0
- package/dist/tree-view/virtualized/use-row-start-and-end.js +27 -0
- package/dist/tree-view/virtualized/use-virtualized-tree.d.ts +22 -0
- package/dist/tree-view/virtualized/use-virtualized-tree.js +100 -0
- package/dist/types/types.d.ts +8 -13
- package/dist/types/types.js +1 -0
- package/dist/utils/cycle-sorts.d.ts +2 -0
- package/dist/utils/cycle-sorts.js +16 -0
- package/dist/viewport/begin-editing.d.ts +5 -0
- package/dist/viewport/begin-editing.js +15 -0
- package/dist/viewport/viewport.d.ts +1 -0
- package/dist/viewport/viewport.js +77 -0
- package/main.css +315 -0
- package/package.json +31 -79
- package/dist/CompositeList-CGRaS6LQ.js +0 -149
- package/dist/DialogPortalContext-C2WZTqJ3.js +0 -47
- package/dist/DirectionContext-DIPP5cAe.js +0 -15
- package/dist/InternalBackdrop-C4RACVzs.js +0 -324
- package/dist/PopoverPortalContext-BdsDjihw.js +0 -26
- package/dist/anchor-context-Cqr_oiJt.js +0 -11
- package/dist/arrow-down-icon-B-3ldODD.js +0 -27
- package/dist/column-manager.js +0 -1228
- package/dist/column-menu-driver-cG-EZgLa.js +0 -491
- package/dist/cross-icon-CEMLAlFX.js +0 -20
- package/dist/dialog.js +0 -506
- package/dist/drag-store-BMsDBUy_.js +0 -1039
- package/dist/filter-manager.js +0 -1057
- package/dist/getPseudoElementBounds-BSHt6WYm.js +0 -26
- package/dist/grid-container.js +0 -18
- package/dist/icons.js +0 -516
- package/dist/lytenyte-pro.css +0 -2167
- package/dist/manage-columns-icon-D4CElo5H.js +0 -146
- package/dist/menu-lIx6h6Vn.js +0 -1885
- package/dist/menu.js +0 -4
- package/dist/more-dots-icon-CzAH3xHG.js +0 -26
- package/dist/pill-BHBLeJ6k.js +0 -1012
- package/dist/pill-manager.js +0 -737
- package/dist/plus-icon-ToqW5CC-.js +0 -15
- package/dist/popover.js +0 -795
- package/dist/proptypes-BjYr2nFr.js +0 -6472
- package/dist/row-group-icon-DFUMye0v.js +0 -186
- package/dist/search-icon-CcG1lqsn.js +0 -86
- package/dist/select-Db5ksjoS.js +0 -2256
- package/dist/separator-BnPPeAk8.js +0 -21
- package/dist/sort-descending-BMtfaa2L.js +0 -34
- package/dist/sort-manager.js +0 -308
- package/dist/tickmark-icon-CoogRMoO.js +0 -51
- package/dist/types/anchor-context/anchor-context.d.ts +0 -6
- package/dist/types/cell-selection/cell-selection-containers.d.ts +0 -3
- package/dist/types/column-manager/column-manager-context.d.ts +0 -12
- package/dist/types/column-manager/column-manager-drag-box-controls.d.ts +0 -1
- package/dist/types/column-manager/column-manager-drag-box-expander.d.ts +0 -1
- package/dist/types/column-manager/column-manager-drag-box-label.d.ts +0 -5
- package/dist/types/column-manager/column-manager-drag-box.d.ts +0 -13
- package/dist/types/column-manager/column-manager-drag-placeholder.d.ts +0 -5
- package/dist/types/column-manager/column-manager-drop-zone.d.ts +0 -10
- package/dist/types/column-manager/column-manager-impl.d.ts +0 -36
- package/dist/types/column-manager/column-manager-pill.d.ts +0 -4
- package/dist/types/column-manager/column-manager-pivot-mode-toggle.d.ts +0 -1
- package/dist/types/column-manager/column-manager-search.d.ts +0 -1
- package/dist/types/column-manager/column-manager-state.d.ts +0 -8
- package/dist/types/column-manager/column-manager-tree-item.d.ts +0 -6
- package/dist/types/column-manager/column-manager-tree.d.ts +0 -11
- package/dist/types/column-manager/column-manager-types.d.ts +0 -1
- package/dist/types/column-manager/column-manager.d.ts +0 -1
- package/dist/types/column-manager/utils/all-leafs.d.ts +0 -3
- package/dist/types/column-manager/utils/can-hide-item.d.ts +0 -3
- package/dist/types/column-manager/utils/handle-item-hide.d.ts +0 -3
- package/dist/types/components-internal/button/button.d.ts +0 -9
- package/dist/types/components-internal/grid-frame/grid-frame.d.ts +0 -11
- package/dist/types/components-internal/radio/radio.d.ts +0 -5
- package/dist/types/components-internal/separator/separator.d.ts +0 -8
- package/dist/types/components-internal/toggle/toggle.d.ts +0 -7
- package/dist/types/dialog/dialog-impl.d.ts +0 -6
- package/dist/types/dialog/dialog.d.ts +0 -8
- package/dist/types/dialog/use-dialog-class.d.ts +0 -1
- package/dist/types/external.d.ts +0 -2
- package/dist/types/filter-manager/combined-to-flat.d.ts +0 -3
- package/dist/types/filter-manager/components/apply-filter-button.d.ts +0 -1
- package/dist/types/filter-manager/components/clear-filter-button.d.ts +0 -1
- package/dist/types/filter-manager/components/flatten-tree-items.d.ts +0 -4
- package/dist/types/filter-manager/components/get-child-values.d.ts +0 -2
- package/dist/types/filter-manager/components/in-filter-container.d.ts +0 -1
- package/dist/types/filter-manager/components/in-filter-error.d.ts +0 -5
- package/dist/types/filter-manager/components/in-filter-loading.d.ts +0 -1
- package/dist/types/filter-manager/components/in-filter-root.d.ts +0 -11
- package/dist/types/filter-manager/components/in-filter-tree.d.ts +0 -15
- package/dist/types/filter-manager/components/simple-filter-additional-switch.d.ts +0 -1
- package/dist/types/filter-manager/components/simple-filter-operator/date-operator.d.ts +0 -1
- package/dist/types/filter-manager/components/simple-filter-operator/number-operator.d.ts +0 -1
- package/dist/types/filter-manager/components/simple-filter-operator/simple-filter-operator.d.ts +0 -1
- package/dist/types/filter-manager/components/simple-filter-operator/text-operator.d.ts +0 -1
- package/dist/types/filter-manager/components/simple-filter-root.d.ts +0 -9
- package/dist/types/filter-manager/components/simple-filter-value/date-value.d.ts +0 -1
- package/dist/types/filter-manager/components/simple-filter-value/number-value.d.ts +0 -1
- package/dist/types/filter-manager/components/simple-filter-value/simple-filter-value.d.ts +0 -1
- package/dist/types/filter-manager/components/simple-filter-value/text-value.d.ts +0 -1
- package/dist/types/filter-manager/components/use-date-filter-callbacks.d.ts +0 -9
- package/dist/types/filter-manager/components/use-in-filter-item-loader.d.ts +0 -7
- package/dist/types/filter-manager/components/use-number-filter-callbacks.d.ts +0 -8
- package/dist/types/filter-manager/components/use-text-filter-callbacks.d.ts +0 -8
- package/dist/types/filter-manager/filter-manager-impl.d.ts +0 -27
- package/dist/types/filter-manager/filter-manager.d.ts +0 -1
- package/dist/types/filter-manager/filter-state-context.d.ts +0 -16
- package/dist/types/filter-manager/flat-to-combined.d.ts +0 -3
- package/dist/types/filter-manager/flatten-combined-filter.d.ts +0 -3
- package/dist/types/filter-manager/is-filter-complete.d.ts +0 -2
- package/dist/types/filter-manager/types.d.ts +0 -15
- package/dist/types/filter-manager/use-in-filter.d.ts +0 -5
- package/dist/types/filter-manager/use-simple-filters.d.ts +0 -8
- package/dist/types/grid-container/grid-container-impl.d.ts +0 -6
- package/dist/types/grid-container/grid-container.d.ts +0 -2
- package/dist/types/header-cell/header-cell-default.d.ts +0 -2
- package/dist/types/icons.d.ts +0 -1
- package/dist/types/index.d.ts +0 -8
- package/dist/types/license.d.ts +0 -12
- package/dist/types/list-view/list-view-context.d.ts +0 -21
- package/dist/types/list-view/list-view.d.ts +0 -26
- package/dist/types/lytenyte-pro.d.ts +0 -7
- package/dist/types/menu/arrow-svg.d.ts +0 -1
- package/dist/types/menu/column-menu/column-menu-driver.d.ts +0 -4
- package/dist/types/menu/context-menu/context-menu-driver.d.ts +0 -1
- package/dist/types/menu/context-menu/use-context-menu-listener.d.ts +0 -6
- package/dist/types/menu/menu-impl.d.ts +0 -18
- package/dist/types/menu/menu.d.ts +0 -19
- package/dist/types/menu/use-menu-class-name.d.ts +0 -1
- package/dist/types/menu-frame/menu-frame-driver.d.ts +0 -1
- package/dist/types/overlay/load-error-overlay.d.ts +0 -1
- package/dist/types/overlay/loading-overlay.d.ts +0 -1
- package/dist/types/overlay/no-data-overlay.d.ts +0 -1
- package/dist/types/overlay/overlay-driver.d.ts +0 -1
- package/dist/types/pill/pill.d.ts +0 -5
- package/dist/types/pill-manager/pill-manager-agg-menu.d.ts +0 -7
- package/dist/types/pill-manager/pill-manager-controls.d.ts +0 -9
- package/dist/types/pill-manager/pill-manager-drag-placeholder.d.ts +0 -5
- package/dist/types/pill-manager/pill-manager-expander.d.ts +0 -1
- package/dist/types/pill-manager/pill-manager-impl.d.ts +0 -50
- package/dist/types/pill-manager/pill-manager-pill.d.ts +0 -5
- package/dist/types/pill-manager/pill-manager-pills/pill-manager-pills.d.ts +0 -2
- package/dist/types/pill-manager/pill-manager-pills/use-aggregation-source.d.ts +0 -2
- package/dist/types/pill-manager/pill-manager-pills/use-column-pivot-source.d.ts +0 -2
- package/dist/types/pill-manager/pill-manager-pills/use-column-source.d.ts +0 -2
- package/dist/types/pill-manager/pill-manager-pills/use-measures-source.d.ts +0 -2
- package/dist/types/pill-manager/pill-manager-pills/use-row-groups-source.d.ts +0 -2
- package/dist/types/pill-manager/pill-manager-pills/utils.d.ts +0 -3
- package/dist/types/pill-manager/pill-manager-row-label.d.ts +0 -22
- package/dist/types/pill-manager/pill-manager-row.d.ts +0 -12
- package/dist/types/pill-manager/pill-manager-rows.d.ts +0 -1
- package/dist/types/pill-manager/pill-manager-separator.d.ts +0 -1
- package/dist/types/pill-manager/pill-manager-types.d.ts +0 -36
- package/dist/types/pill-manager/pill-manager.d.ts +0 -1
- package/dist/types/popover/popover-impl.d.ts +0 -8
- package/dist/types/popover/popover.d.ts +0 -10
- package/dist/types/popover/use-popover-class.d.ts +0 -1
- package/dist/types/select/select.d.ts +0 -26
- package/dist/types/sort-manager/sort-adder.d.ts +0 -4
- package/dist/types/sort-manager/sort-apply.d.ts +0 -1
- package/dist/types/sort-manager/sort-cancel.d.ts +0 -1
- package/dist/types/sort-manager/sort-clear.d.ts +0 -1
- package/dist/types/sort-manager/sort-column-select.d.ts +0 -6
- package/dist/types/sort-manager/sort-direction-select.d.ts +0 -6
- package/dist/types/sort-manager/sort-items-to-sort-model.d.ts +0 -3
- package/dist/types/sort-manager/sort-manager-context.d.ts +0 -4
- package/dist/types/sort-manager/sort-manager-impl.d.ts +0 -32
- package/dist/types/sort-manager/sort-manager.d.ts +0 -1
- package/dist/types/sort-manager/sort-model-to-sort-items.d.ts +0 -4
- package/dist/types/sort-manager/sort-remove.d.ts +0 -4
- package/dist/types/sort-manager/sort-sort-select.d.ts +0 -6
- package/dist/types/sort-manager/use-sortable-column-items.d.ts +0 -9
- package/dist/types/use-client-data-source.d.ts +0 -6
- package/dist/types/use-edge-scroll.d.ts +0 -7
- package/dist/types/use-grid.d.ts +0 -6
- package/dist/types/use-lytenyte.d.ts +0 -11
- package/dist/types/use-server-data-source.d.ts +0 -3
- package/dist/types/use-tree-data-source.d.ts +0 -3
- package/dist/types/watermark.d.ts +0 -3
- package/dist/types.js +0 -1
- package/dist/useAnchorPositioning-52zK7jlD.js +0 -241
- package/dist/useButton-DWXzFgcr.js +0 -184
- package/dist/useScrollLock-D4UY33Sb.js +0 -425
- /package/dist/{types/cell-selection → cell-selection}/cell-selection-driver.d.ts +0 -0
- /package/dist/{types/dialog → root}/dialog-driver.d.ts +0 -0
- /package/dist/{types/popover → root}/popover-driver.d.ts +0 -0
package/dist/dialog.js
DELETED
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { useMemo, forwardRef } from "react";
|
|
4
|
-
import { clsx } from "@1771technologies/js-utils";
|
|
5
|
-
import { P as PropTypes, j as useEventCallback, m as mergeProps, d as useEnhancedEffect, n as useOpenChangeComplete, D as FloatingFocusManager, r as refType } from "./proptypes-BjYr2nFr.js";
|
|
6
|
-
import { u as useDialogRootContext, a as useDialogPortalContext } from "./DialogPortalContext-C2WZTqJ3.js";
|
|
7
|
-
import { p as popupStateMapping, t as transitionStatusMapping, u as useForkRef, a as useComponentRenderer, b as useBaseUiId, I as InternalBackdrop } from "./InternalBackdrop-C4RACVzs.js";
|
|
8
|
-
import { u as useButton } from "./useButton-DWXzFgcr.js";
|
|
9
|
-
const customStyleHookMapping$1 = {
|
|
10
|
-
...popupStateMapping,
|
|
11
|
-
...transitionStatusMapping
|
|
12
|
-
};
|
|
13
|
-
const DialogBackdrop$1 = /* @__PURE__ */ React.forwardRef(function DialogBackdrop(props, forwardedRef) {
|
|
14
|
-
const {
|
|
15
|
-
render,
|
|
16
|
-
className,
|
|
17
|
-
...other
|
|
18
|
-
} = props;
|
|
19
|
-
const {
|
|
20
|
-
open,
|
|
21
|
-
nested,
|
|
22
|
-
mounted,
|
|
23
|
-
transitionStatus,
|
|
24
|
-
backdropRef
|
|
25
|
-
} = useDialogRootContext();
|
|
26
|
-
const state2 = React.useMemo(() => ({
|
|
27
|
-
open,
|
|
28
|
-
transitionStatus
|
|
29
|
-
}), [open, transitionStatus]);
|
|
30
|
-
const mergedRef = useForkRef(backdropRef, forwardedRef);
|
|
31
|
-
const {
|
|
32
|
-
renderElement
|
|
33
|
-
} = useComponentRenderer({
|
|
34
|
-
render: render ?? "div",
|
|
35
|
-
className,
|
|
36
|
-
state: state2,
|
|
37
|
-
ref: mergedRef,
|
|
38
|
-
extraProps: {
|
|
39
|
-
role: "presentation",
|
|
40
|
-
hidden: !mounted,
|
|
41
|
-
...other
|
|
42
|
-
},
|
|
43
|
-
customStyleHookMapping: customStyleHookMapping$1
|
|
44
|
-
});
|
|
45
|
-
const shouldRender = !nested;
|
|
46
|
-
if (!shouldRender) {
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
return renderElement();
|
|
50
|
-
});
|
|
51
|
-
process.env.NODE_ENV !== "production" ? DialogBackdrop$1.propTypes = {
|
|
52
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
53
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
54
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
55
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
56
|
-
/**
|
|
57
|
-
* @ignore
|
|
58
|
-
*/
|
|
59
|
-
children: PropTypes.node,
|
|
60
|
-
/**
|
|
61
|
-
* CSS class applied to the element, or a function that
|
|
62
|
-
* returns a class based on the component’s state.
|
|
63
|
-
*/
|
|
64
|
-
className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
65
|
-
/**
|
|
66
|
-
* Allows you to replace the component’s HTML element
|
|
67
|
-
* with a different tag, or compose it with another component.
|
|
68
|
-
*
|
|
69
|
-
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
70
|
-
*/
|
|
71
|
-
render: PropTypes.oneOfType([PropTypes.element, PropTypes.func])
|
|
72
|
-
} : void 0;
|
|
73
|
-
function useDialogClose(params) {
|
|
74
|
-
const {
|
|
75
|
-
open,
|
|
76
|
-
setOpen,
|
|
77
|
-
rootRef: externalRef,
|
|
78
|
-
disabled
|
|
79
|
-
} = params;
|
|
80
|
-
const handleClick = useEventCallback((event) => {
|
|
81
|
-
if (open) {
|
|
82
|
-
setOpen(false, event.nativeEvent, "click");
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
const {
|
|
86
|
-
getButtonProps
|
|
87
|
-
} = useButton({
|
|
88
|
-
disabled,
|
|
89
|
-
buttonRef: externalRef
|
|
90
|
-
});
|
|
91
|
-
const getRootProps = (externalProps) => mergeProps({
|
|
92
|
-
onClick: handleClick
|
|
93
|
-
}, externalProps, getButtonProps);
|
|
94
|
-
return {
|
|
95
|
-
getRootProps
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
const DialogClose$1 = /* @__PURE__ */ React.forwardRef(function DialogClose(props, forwardedRef) {
|
|
99
|
-
const {
|
|
100
|
-
render,
|
|
101
|
-
className,
|
|
102
|
-
disabled = false,
|
|
103
|
-
...other
|
|
104
|
-
} = props;
|
|
105
|
-
const {
|
|
106
|
-
open,
|
|
107
|
-
setOpen
|
|
108
|
-
} = useDialogRootContext();
|
|
109
|
-
const {
|
|
110
|
-
getRootProps
|
|
111
|
-
} = useDialogClose({
|
|
112
|
-
disabled,
|
|
113
|
-
open,
|
|
114
|
-
setOpen,
|
|
115
|
-
rootRef: forwardedRef
|
|
116
|
-
});
|
|
117
|
-
const state2 = React.useMemo(() => ({
|
|
118
|
-
disabled
|
|
119
|
-
}), [disabled]);
|
|
120
|
-
const {
|
|
121
|
-
renderElement
|
|
122
|
-
} = useComponentRenderer({
|
|
123
|
-
render: render ?? "button",
|
|
124
|
-
className,
|
|
125
|
-
state: state2,
|
|
126
|
-
propGetter: getRootProps,
|
|
127
|
-
extraProps: other
|
|
128
|
-
});
|
|
129
|
-
return renderElement();
|
|
130
|
-
});
|
|
131
|
-
process.env.NODE_ENV !== "production" ? DialogClose$1.propTypes = {
|
|
132
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
133
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
134
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
135
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
136
|
-
/**
|
|
137
|
-
* @ignore
|
|
138
|
-
*/
|
|
139
|
-
children: PropTypes.node,
|
|
140
|
-
/**
|
|
141
|
-
* CSS class applied to the element, or a function that
|
|
142
|
-
* returns a class based on the component’s state.
|
|
143
|
-
*/
|
|
144
|
-
className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
145
|
-
/**
|
|
146
|
-
* @ignore
|
|
147
|
-
*/
|
|
148
|
-
disabled: PropTypes.bool,
|
|
149
|
-
/**
|
|
150
|
-
* Allows you to replace the component’s HTML element
|
|
151
|
-
* with a different tag, or compose it with another component.
|
|
152
|
-
*
|
|
153
|
-
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
154
|
-
*/
|
|
155
|
-
render: PropTypes.oneOfType([PropTypes.element, PropTypes.func])
|
|
156
|
-
} : void 0;
|
|
157
|
-
const state$1 = {};
|
|
158
|
-
const DialogDescription$1 = /* @__PURE__ */ React.forwardRef(function DialogDescription(props, forwardedRef) {
|
|
159
|
-
const {
|
|
160
|
-
render,
|
|
161
|
-
className,
|
|
162
|
-
id: idProp,
|
|
163
|
-
...other
|
|
164
|
-
} = props;
|
|
165
|
-
const {
|
|
166
|
-
setDescriptionElementId
|
|
167
|
-
} = useDialogRootContext();
|
|
168
|
-
const id = useBaseUiId(idProp);
|
|
169
|
-
useEnhancedEffect(() => {
|
|
170
|
-
setDescriptionElementId(id);
|
|
171
|
-
return () => {
|
|
172
|
-
setDescriptionElementId(void 0);
|
|
173
|
-
};
|
|
174
|
-
}, [id, setDescriptionElementId]);
|
|
175
|
-
const getProps = React.useCallback((externalProps = {}) => mergeProps({
|
|
176
|
-
id
|
|
177
|
-
}, externalProps), [id]);
|
|
178
|
-
const {
|
|
179
|
-
renderElement
|
|
180
|
-
} = useComponentRenderer({
|
|
181
|
-
propGetter: getProps,
|
|
182
|
-
render: render ?? "p",
|
|
183
|
-
className,
|
|
184
|
-
state: state$1,
|
|
185
|
-
ref: forwardedRef,
|
|
186
|
-
extraProps: other
|
|
187
|
-
});
|
|
188
|
-
return renderElement();
|
|
189
|
-
});
|
|
190
|
-
process.env.NODE_ENV !== "production" ? DialogDescription$1.propTypes = {
|
|
191
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
192
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
193
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
194
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
195
|
-
/**
|
|
196
|
-
* @ignore
|
|
197
|
-
*/
|
|
198
|
-
children: PropTypes.node,
|
|
199
|
-
/**
|
|
200
|
-
* CSS class applied to the element, or a function that
|
|
201
|
-
* returns a class based on the component’s state.
|
|
202
|
-
*/
|
|
203
|
-
className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
204
|
-
/**
|
|
205
|
-
* @ignore
|
|
206
|
-
*/
|
|
207
|
-
id: PropTypes.string,
|
|
208
|
-
/**
|
|
209
|
-
* Allows you to replace the component’s HTML element
|
|
210
|
-
* with a different tag, or compose it with another component.
|
|
211
|
-
*
|
|
212
|
-
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
213
|
-
*/
|
|
214
|
-
render: PropTypes.oneOfType([PropTypes.element, PropTypes.func])
|
|
215
|
-
} : void 0;
|
|
216
|
-
function useDialogPopup(parameters) {
|
|
217
|
-
const {
|
|
218
|
-
descriptionElementId,
|
|
219
|
-
getPopupProps,
|
|
220
|
-
initialFocus,
|
|
221
|
-
modal,
|
|
222
|
-
mounted,
|
|
223
|
-
openMethod,
|
|
224
|
-
ref,
|
|
225
|
-
setPopupElement,
|
|
226
|
-
titleElementId
|
|
227
|
-
} = parameters;
|
|
228
|
-
const popupRef = React.useRef(null);
|
|
229
|
-
const handleRef = useForkRef(ref, popupRef, setPopupElement);
|
|
230
|
-
const defaultInitialFocus = React.useCallback((interactionType) => {
|
|
231
|
-
if (interactionType === "touch") {
|
|
232
|
-
return popupRef;
|
|
233
|
-
}
|
|
234
|
-
return 0;
|
|
235
|
-
}, []);
|
|
236
|
-
const resolvedInitialFocus = React.useMemo(() => {
|
|
237
|
-
if (initialFocus == null) {
|
|
238
|
-
return defaultInitialFocus(openMethod ?? "");
|
|
239
|
-
}
|
|
240
|
-
if (typeof initialFocus === "function") {
|
|
241
|
-
return initialFocus(openMethod ?? "");
|
|
242
|
-
}
|
|
243
|
-
return initialFocus;
|
|
244
|
-
}, [defaultInitialFocus, initialFocus, openMethod]);
|
|
245
|
-
const getRootProps = (externalProps) => mergeProps({
|
|
246
|
-
"aria-labelledby": titleElementId ?? void 0,
|
|
247
|
-
"aria-describedby": descriptionElementId ?? void 0,
|
|
248
|
-
"aria-modal": mounted && modal ? true : void 0,
|
|
249
|
-
role: "dialog",
|
|
250
|
-
tabIndex: -1,
|
|
251
|
-
...getPopupProps(),
|
|
252
|
-
ref: handleRef,
|
|
253
|
-
hidden: !mounted
|
|
254
|
-
}, externalProps);
|
|
255
|
-
return {
|
|
256
|
-
getRootProps,
|
|
257
|
-
resolvedInitialFocus
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
let DialogPopupCssVars = /* @__PURE__ */ function(DialogPopupCssVars2) {
|
|
261
|
-
DialogPopupCssVars2["nestedDialogs"] = "--nested-dialogs";
|
|
262
|
-
return DialogPopupCssVars2;
|
|
263
|
-
}({});
|
|
264
|
-
let DialogPopupDataAttributes = /* @__PURE__ */ function(DialogPopupDataAttributes2) {
|
|
265
|
-
DialogPopupDataAttributes2["open"] = "data-open";
|
|
266
|
-
DialogPopupDataAttributes2["closed"] = "data-closed";
|
|
267
|
-
DialogPopupDataAttributes2["startingStyle"] = "data-starting-style";
|
|
268
|
-
DialogPopupDataAttributes2["endingStyle"] = "data-ending-style";
|
|
269
|
-
DialogPopupDataAttributes2["nested"] = "data-nested";
|
|
270
|
-
DialogPopupDataAttributes2["hasNestedDialogs"] = "data-has-nested-dialogs";
|
|
271
|
-
return DialogPopupDataAttributes2;
|
|
272
|
-
}({});
|
|
273
|
-
const customStyleHookMapping = {
|
|
274
|
-
...popupStateMapping,
|
|
275
|
-
...transitionStatusMapping,
|
|
276
|
-
hasNestedDialogs(value) {
|
|
277
|
-
return value ? {
|
|
278
|
-
[DialogPopupDataAttributes.hasNestedDialogs]: ""
|
|
279
|
-
} : null;
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
const DialogPopup$1 = /* @__PURE__ */ React.forwardRef(function DialogPopup(props, forwardedRef) {
|
|
283
|
-
const {
|
|
284
|
-
className,
|
|
285
|
-
finalFocus,
|
|
286
|
-
id,
|
|
287
|
-
initialFocus,
|
|
288
|
-
render,
|
|
289
|
-
...other
|
|
290
|
-
} = props;
|
|
291
|
-
const {
|
|
292
|
-
descriptionElementId,
|
|
293
|
-
dismissible,
|
|
294
|
-
floatingRootContext,
|
|
295
|
-
getPopupProps,
|
|
296
|
-
modal,
|
|
297
|
-
mounted,
|
|
298
|
-
nested,
|
|
299
|
-
nestedOpenDialogCount,
|
|
300
|
-
setOpen,
|
|
301
|
-
open,
|
|
302
|
-
openMethod,
|
|
303
|
-
popupRef,
|
|
304
|
-
setPopupElement,
|
|
305
|
-
titleElementId,
|
|
306
|
-
transitionStatus,
|
|
307
|
-
onOpenChangeComplete,
|
|
308
|
-
internalBackdropRef
|
|
309
|
-
} = useDialogRootContext();
|
|
310
|
-
useDialogPortalContext();
|
|
311
|
-
useOpenChangeComplete({
|
|
312
|
-
open,
|
|
313
|
-
ref: popupRef,
|
|
314
|
-
onComplete() {
|
|
315
|
-
if (open) {
|
|
316
|
-
onOpenChangeComplete?.(true);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
const mergedRef = useForkRef(forwardedRef, popupRef);
|
|
321
|
-
const {
|
|
322
|
-
getRootProps,
|
|
323
|
-
resolvedInitialFocus
|
|
324
|
-
} = useDialogPopup({
|
|
325
|
-
descriptionElementId,
|
|
326
|
-
getPopupProps,
|
|
327
|
-
id,
|
|
328
|
-
initialFocus,
|
|
329
|
-
modal,
|
|
330
|
-
mounted,
|
|
331
|
-
setOpen,
|
|
332
|
-
openMethod,
|
|
333
|
-
ref: mergedRef,
|
|
334
|
-
setPopupElement,
|
|
335
|
-
titleElementId
|
|
336
|
-
});
|
|
337
|
-
const state2 = {
|
|
338
|
-
open,
|
|
339
|
-
nested,
|
|
340
|
-
transitionStatus,
|
|
341
|
-
hasNestedDialogs: nestedOpenDialogCount > 0
|
|
342
|
-
};
|
|
343
|
-
const {
|
|
344
|
-
renderElement
|
|
345
|
-
} = useComponentRenderer({
|
|
346
|
-
render: render ?? "div",
|
|
347
|
-
className,
|
|
348
|
-
state: state2,
|
|
349
|
-
propGetter: getRootProps,
|
|
350
|
-
extraProps: {
|
|
351
|
-
...other,
|
|
352
|
-
style: {
|
|
353
|
-
...other.style,
|
|
354
|
-
[DialogPopupCssVars.nestedDialogs]: nestedOpenDialogCount
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
customStyleHookMapping
|
|
358
|
-
});
|
|
359
|
-
return /* @__PURE__ */ jsxs(React.Fragment, {
|
|
360
|
-
children: [mounted && modal && /* @__PURE__ */ jsx(InternalBackdrop, {
|
|
361
|
-
ref: internalBackdropRef
|
|
362
|
-
}), /* @__PURE__ */ jsx(FloatingFocusManager, {
|
|
363
|
-
context: floatingRootContext,
|
|
364
|
-
disabled: !mounted,
|
|
365
|
-
closeOnFocusOut: dismissible,
|
|
366
|
-
initialFocus: resolvedInitialFocus,
|
|
367
|
-
returnFocus: finalFocus,
|
|
368
|
-
children: renderElement()
|
|
369
|
-
})]
|
|
370
|
-
});
|
|
371
|
-
});
|
|
372
|
-
process.env.NODE_ENV !== "production" ? DialogPopup$1.propTypes = {
|
|
373
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
374
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
375
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
376
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
377
|
-
/**
|
|
378
|
-
* @ignore
|
|
379
|
-
*/
|
|
380
|
-
children: PropTypes.node,
|
|
381
|
-
/**
|
|
382
|
-
* CSS class applied to the element, or a function that
|
|
383
|
-
* returns a class based on the component’s state.
|
|
384
|
-
*/
|
|
385
|
-
className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
386
|
-
/**
|
|
387
|
-
* Determines the element to focus when the dialog is closed.
|
|
388
|
-
* By default, focus returns to the trigger.
|
|
389
|
-
*/
|
|
390
|
-
finalFocus: refType,
|
|
391
|
-
/**
|
|
392
|
-
* @ignore
|
|
393
|
-
*/
|
|
394
|
-
id: PropTypes.string,
|
|
395
|
-
/**
|
|
396
|
-
* Determines the element to focus when the dialog is opened.
|
|
397
|
-
* By default, the first focusable element is focused.
|
|
398
|
-
*/
|
|
399
|
-
initialFocus: PropTypes.oneOfType([PropTypes.func, refType]),
|
|
400
|
-
/**
|
|
401
|
-
* Allows you to replace the component’s HTML element
|
|
402
|
-
* with a different tag, or compose it with another component.
|
|
403
|
-
*
|
|
404
|
-
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
405
|
-
*/
|
|
406
|
-
render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
|
|
407
|
-
/**
|
|
408
|
-
* @ignore
|
|
409
|
-
*/
|
|
410
|
-
style: PropTypes.object
|
|
411
|
-
} : void 0;
|
|
412
|
-
const state = {};
|
|
413
|
-
const DialogTitle$1 = /* @__PURE__ */ React.forwardRef(function DialogTitle(props, forwardedRef) {
|
|
414
|
-
const {
|
|
415
|
-
render,
|
|
416
|
-
className,
|
|
417
|
-
id: idProp,
|
|
418
|
-
...other
|
|
419
|
-
} = props;
|
|
420
|
-
const {
|
|
421
|
-
setTitleElementId
|
|
422
|
-
} = useDialogRootContext();
|
|
423
|
-
const id = useBaseUiId(idProp);
|
|
424
|
-
useEnhancedEffect(() => {
|
|
425
|
-
setTitleElementId(id);
|
|
426
|
-
return () => {
|
|
427
|
-
setTitleElementId(void 0);
|
|
428
|
-
};
|
|
429
|
-
}, [id, setTitleElementId]);
|
|
430
|
-
const getProps = React.useCallback((externalProps = {}) => mergeProps({
|
|
431
|
-
id
|
|
432
|
-
}, externalProps), [id]);
|
|
433
|
-
const {
|
|
434
|
-
renderElement
|
|
435
|
-
} = useComponentRenderer({
|
|
436
|
-
propGetter: getProps,
|
|
437
|
-
render: render ?? "h2",
|
|
438
|
-
className,
|
|
439
|
-
state,
|
|
440
|
-
ref: forwardedRef,
|
|
441
|
-
extraProps: other
|
|
442
|
-
});
|
|
443
|
-
return renderElement();
|
|
444
|
-
});
|
|
445
|
-
process.env.NODE_ENV !== "production" ? DialogTitle$1.propTypes = {
|
|
446
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
447
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
448
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
449
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
450
|
-
/**
|
|
451
|
-
* @ignore
|
|
452
|
-
*/
|
|
453
|
-
children: PropTypes.node,
|
|
454
|
-
/**
|
|
455
|
-
* CSS class applied to the element, or a function that
|
|
456
|
-
* returns a class based on the component’s state.
|
|
457
|
-
*/
|
|
458
|
-
className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
459
|
-
/**
|
|
460
|
-
* @ignore
|
|
461
|
-
*/
|
|
462
|
-
id: PropTypes.string,
|
|
463
|
-
/**
|
|
464
|
-
* Allows you to replace the component’s HTML element
|
|
465
|
-
* with a different tag, or compose it with another component.
|
|
466
|
-
*
|
|
467
|
-
* Accepts a `ReactElement` or a function that returns the element to render.
|
|
468
|
-
*/
|
|
469
|
-
render: PropTypes.oneOfType([PropTypes.element, PropTypes.func])
|
|
470
|
-
} : void 0;
|
|
471
|
-
function useDialogClass(name, className) {
|
|
472
|
-
return useMemo(() => {
|
|
473
|
-
if (typeof className !== "function") return clsx(name, className);
|
|
474
|
-
return (p) => clsx(name, className(p));
|
|
475
|
-
}, [className, name]);
|
|
476
|
-
}
|
|
477
|
-
const DialogBackdrop2 = forwardRef(function DialogBackdrop22({ className, ...props }, ref) {
|
|
478
|
-
const cl = useDialogClass("lng1771-dialog__backdrop", className);
|
|
479
|
-
return /* @__PURE__ */ jsx(DialogBackdrop$1, { ...props, ref, className: cl });
|
|
480
|
-
});
|
|
481
|
-
const DialogPopup2 = forwardRef(function DialogPopup22({ className, ...props }, ref) {
|
|
482
|
-
const cl = useDialogClass("lng1771-dialog", className);
|
|
483
|
-
return /* @__PURE__ */ jsx(DialogPopup$1, { ...props, ref, className: cl });
|
|
484
|
-
});
|
|
485
|
-
const DialogTitle2 = forwardRef(function DialogTitle22({ className, ...props }, ref) {
|
|
486
|
-
const cl = useDialogClass("lng1771-dialog__title", className);
|
|
487
|
-
return /* @__PURE__ */ jsx(DialogTitle$1, { ...props, ref, className: cl });
|
|
488
|
-
});
|
|
489
|
-
const DialogDescription2 = forwardRef(function DialogDescription22({ className, ...props }, ref) {
|
|
490
|
-
const cl = useDialogClass("lng1771-dialog__description", className);
|
|
491
|
-
return /* @__PURE__ */ jsx(DialogDescription$1, { ...props, ref, className: cl });
|
|
492
|
-
});
|
|
493
|
-
const DialogClose2 = forwardRef(function DialogClose22({ className, ...props }, ref) {
|
|
494
|
-
const cl = useDialogClass("lng1771-dialog__close", className);
|
|
495
|
-
return /* @__PURE__ */ jsx(DialogClose$1, { ...props, ref, className: cl });
|
|
496
|
-
});
|
|
497
|
-
const Dialog = {
|
|
498
|
-
Backdrop: DialogBackdrop2,
|
|
499
|
-
Close: DialogClose2,
|
|
500
|
-
Description: DialogDescription2,
|
|
501
|
-
Container: DialogPopup2,
|
|
502
|
-
Title: DialogTitle2
|
|
503
|
-
};
|
|
504
|
-
export {
|
|
505
|
-
Dialog
|
|
506
|
-
};
|