@1771technologies/lytenyte-pro 2.0.0-dev.0 → 2.0.0-dev.1
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/__play__/alpha.play.d.ts +3 -0
- package/dist/__play__/alpha.play.js +56 -0
- package/dist/__play__/basic-server-data/data.d.ts +10 -0
- package/dist/__play__/basic-server-data/data.js +17746 -0
- package/dist/__play__/basic-server-data/server.d.ts +36 -0
- package/dist/__play__/basic-server-data/server.js +105 -0
- package/dist/__play__/buttons.play.d.ts +4 -0
- package/dist/__play__/buttons.play.js +7 -0
- package/dist/__play__/inputs.play.d.ts +3 -0
- package/dist/__play__/inputs.play.js +13 -0
- package/dist/__play__/server.play.d.ts +3 -0
- package/dist/__play__/server.play.js +66 -0
- package/dist/__play__/tree.play.d.ts +3 -0
- package/dist/__play__/tree.play.js +47 -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 +3 -0
- package/dist/cell-selection/bound-selection-rect.js +16 -0
- package/dist/cell-selection/cell-selection-containers.d.ts +3 -0
- package/dist/cell-selection/cell-selection-containers.js +86 -0
- package/dist/cell-selection/cell-selection-driver/cell-selection-driver.d.ts +1 -0
- package/dist/cell-selection/cell-selection-driver/cell-selection-driver.js +279 -0
- package/dist/cell-selection/cell-selection-driver/use-cell-focus-change.d.ts +6 -0
- package/dist/cell-selection/cell-selection-driver/use-cell-focus-change.js +34 -0
- package/dist/cell-selection/cell-style-row.d.ts +8 -0
- package/dist/cell-selection/cell-style-row.js +79 -0
- package/dist/cell-selection/data-rect-from-cell-position.d.ts +3 -0
- package/dist/cell-selection/data-rect-from-cell-position.js +17 -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-selection-down.d.ts +3 -0
- package/dist/cell-selection/expand-selection-down.js +78 -0
- package/dist/cell-selection/expand-selection-end.d.ts +3 -0
- package/dist/cell-selection/expand-selection-end.js +76 -0
- package/dist/cell-selection/expand-selection-start.d.ts +3 -0
- package/dist/cell-selection/expand-selection-start.js +73 -0
- package/dist/cell-selection/expand-selection-up.d.ts +3 -0
- package/dist/cell-selection/expand-selection-up.js +74 -0
- package/dist/cell-selection/full-width-start-end-index.d.ts +2 -0
- package/dist/cell-selection/full-width-start-end-index.js +4 -0
- package/dist/cell-selection/get-root-cell.d.ts +3 -0
- package/dist/cell-selection/get-root-cell.js +6 -0
- package/dist/cell-selection/index.d.ts +13 -0
- package/dist/cell-selection/index.js +13 -0
- package/dist/cell-selection/is-bottom-rect.d.ts +2 -0
- package/dist/cell-selection/is-bottom-rect.js +4 -0
- package/dist/cell-selection/is-center-col-rect.d.ts +5 -0
- package/dist/cell-selection/is-center-col-rect.js +3 -0
- package/dist/cell-selection/is-center-rect.d.ts +2 -0
- package/dist/cell-selection/is-center-rect.js +4 -0
- package/dist/cell-selection/is-end-rect.d.ts +5 -0
- package/dist/cell-selection/is-end-rect.js +3 -0
- package/dist/cell-selection/is-fully-within-rect.d.ts +2 -0
- package/dist/cell-selection/is-fully-within-rect.js +6 -0
- package/dist/cell-selection/is-overlapping-rect.d.ts +2 -0
- package/dist/cell-selection/is-overlapping-rect.js +5 -0
- package/dist/cell-selection/is-start-rect.d.ts +5 -0
- package/dist/cell-selection/is-start-rect.js +3 -0
- package/dist/cell-selection/is-top-rect.d.ts +2 -0
- package/dist/cell-selection/is-top-rect.js +3 -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 +47 -0
- package/dist/cell-selection/split-cell-selection-rect.js +88 -0
- package/dist/cell-selection/split-on-pivot.d.ts +3 -0
- package/dist/cell-selection/split-on-pivot.js +50 -0
- package/dist/cell-selection/update-additive-cell-selection.d.ts +4 -0
- package/dist/cell-selection/update-additive-cell-selection.js +21 -0
- package/dist/cell-selection/use-edge-scroll.d.ts +6 -0
- package/dist/cell-selection/use-edge-scroll.js +71 -0
- package/dist/components/checkbox/checkbox.d.ts +15 -0
- package/dist/components/checkbox/checkbox.js +42 -0
- package/dist/components/checkbox/checkbox.play.d.ts +2 -0
- package/dist/components/checkbox/checkbox.play.js +6 -0
- package/dist/components/column-manager/column-manager.d.ts +13 -0
- package/dist/components/column-manager/column-manager.js +47 -0
- package/dist/components/external/clsx.d.ts +2 -0
- package/dist/components/external/clsx.js +44 -0
- package/dist/components/external/floating-ui.d.ts +268 -0
- package/dist/components/external/floating-ui.js +1802 -0
- package/dist/components/headless/dialog/arrow.d.ts +6 -0
- package/dist/components/headless/dialog/arrow.js +16 -0
- package/dist/components/headless/dialog/close.d.ts +10 -0
- package/dist/components/headless/dialog/close.js +22 -0
- package/dist/components/headless/dialog/container.d.ts +5 -0
- package/dist/components/headless/dialog/container.js +221 -0
- package/dist/components/headless/dialog/context.d.ts +32 -0
- package/dist/components/headless/dialog/context.js +3 -0
- package/dist/components/headless/dialog/description.d.ts +9 -0
- package/dist/components/headless/dialog/description.js +20 -0
- package/dist/components/headless/dialog/index.parts.d.ts +30 -0
- package/dist/components/headless/dialog/index.parts.js +17 -0
- package/dist/components/headless/dialog/root.d.ts +32 -0
- package/dist/components/headless/dialog/root.js +75 -0
- package/dist/components/headless/dialog/title.d.ts +9 -0
- package/dist/components/headless/dialog/title.js +20 -0
- package/dist/components/headless/dialog/transform-origin.d.ts +5 -0
- package/dist/components/headless/dialog/transform-origin.js +38 -0
- package/dist/components/headless/dialog/trigger.d.ts +10 -0
- package/dist/components/headless/dialog/trigger.js +24 -0
- package/dist/components/headless/dialog/use-dialog.d.ts +4 -0
- package/dist/components/headless/dialog/use-dialog.js +12 -0
- package/dist/components/headless/menu/checkbox-item.d.ts +11 -0
- package/dist/components/headless/menu/checkbox-item.js +42 -0
- package/dist/components/headless/menu/combo/combo-checkbox.d.ts +11 -0
- package/dist/components/headless/menu/combo/combo-checkbox.js +38 -0
- package/dist/components/headless/menu/combo/combo-context.d.ts +9 -0
- package/dist/components/headless/menu/combo/combo-context.js +3 -0
- package/dist/components/headless/menu/combo/combo-input.d.ts +7 -0
- package/dist/components/headless/menu/combo/combo-input.js +58 -0
- package/dist/components/headless/menu/combo/combo-menu.d.ts +5 -0
- package/dist/components/headless/menu/combo/combo-menu.js +24 -0
- package/dist/components/headless/menu/combo/combo-option.d.ts +9 -0
- package/dist/components/headless/menu/combo/combo-option.js +37 -0
- package/dist/components/headless/menu/container.d.ts +5 -0
- package/dist/components/headless/menu/container.js +19 -0
- package/dist/components/headless/menu/dom.d.ts +4 -0
- package/dist/components/headless/menu/dom.js +20 -0
- package/dist/components/headless/menu/index.d.ts +54 -0
- package/dist/components/headless/menu/index.js +39 -0
- package/dist/components/headless/menu/item/handle-vertical-navigation.d.ts +2 -0
- package/dist/components/headless/menu/item/handle-vertical-navigation.js +28 -0
- package/dist/components/headless/menu/item/item.d.ts +9 -0
- package/dist/components/headless/menu/item/item.js +45 -0
- package/dist/components/headless/menu/item/use-menu-item-events.d.ts +1 -0
- package/dist/components/headless/menu/item/use-menu-item-events.js +25 -0
- package/dist/components/headless/menu/menu-divider.d.ts +5 -0
- package/dist/components/headless/menu/menu-divider.js +6 -0
- package/dist/components/headless/menu/menu-group.d.ts +5 -0
- package/dist/components/headless/menu/menu-group.js +6 -0
- package/dist/components/headless/menu/menu-header.d.ts +5 -0
- package/dist/components/headless/menu/menu-header.js +6 -0
- package/dist/components/headless/menu/popover.d.ts +5 -0
- package/dist/components/headless/menu/popover.js +7 -0
- package/dist/components/headless/menu/radio-group/context.d.ts +11 -0
- package/dist/components/headless/menu/radio-group/context.js +7 -0
- package/dist/components/headless/menu/radio-group/radio-item.d.ts +10 -0
- package/dist/components/headless/menu/radio-group/radio-item.js +44 -0
- package/dist/components/headless/menu/submenu/submenu-context.d.ts +9 -0
- package/dist/components/headless/menu/submenu/submenu-context.js +3 -0
- package/dist/components/headless/menu/submenu/submenu-trigger.d.ts +7 -0
- package/dist/components/headless/menu/submenu/submenu-trigger.js +70 -0
- package/dist/components/headless/menu/submenu/submenu.d.ts +21 -0
- package/dist/components/headless/menu/submenu/submenu.js +55 -0
- package/dist/components/headless/menu/submenu/use-submenu-position.d.ts +5 -0
- package/dist/components/headless/menu/submenu/use-submenu-position.js +31 -0
- package/dist/components/headless/menu/use-menu.d.ts +1 -0
- package/dist/components/headless/menu/use-menu.js +52 -0
- package/dist/components/headless/popover/container.d.ts +5 -0
- package/dist/components/headless/popover/container.js +7 -0
- package/dist/components/headless/popover/context.d.ts +6 -0
- package/dist/components/headless/popover/context.js +3 -0
- package/dist/components/headless/popover/index.d.ts +30 -0
- package/dist/components/headless/popover/index.js +17 -0
- package/dist/components/headless/popover/root.d.ts +6 -0
- package/dist/components/headless/popover/root.js +8 -0
- package/dist/components/headless/popover/trigger.d.ts +7 -0
- package/dist/components/headless/popover/trigger.js +11 -0
- package/dist/components/pill-manager/container.d.ts +5 -0
- package/dist/components/pill-manager/container.js +127 -0
- package/dist/components/pill-manager/expander.d.ts +9 -0
- package/dist/components/pill-manager/expander.js +21 -0
- package/dist/components/pill-manager/icons.d.ts +12 -0
- package/dist/components/pill-manager/icons.js +35 -0
- package/dist/components/pill-manager/index.d.ts +33 -0
- package/dist/components/pill-manager/index.js +13 -0
- package/dist/components/pill-manager/item.d.ts +10 -0
- package/dist/components/pill-manager/item.js +178 -0
- package/dist/components/pill-manager/label.d.ts +10 -0
- package/dist/components/pill-manager/label.js +31 -0
- package/dist/components/pill-manager/pill-manager.play.d.ts +3 -0
- package/dist/components/pill-manager/pill-manager.play.js +73 -0
- package/dist/components/pill-manager/pill-row.context.d.ts +8 -0
- package/dist/components/pill-manager/pill-row.context.js +4 -0
- package/dist/components/pill-manager/pill-row.d.ts +12 -0
- package/dist/components/pill-manager/pill-row.js +22 -0
- package/dist/components/pill-manager/root.context.d.ts +40 -0
- package/dist/components/pill-manager/root.context.js +4 -0
- package/dist/components/pill-manager/root.d.ts +25 -0
- package/dist/components/pill-manager/root.js +33 -0
- package/dist/components/pill-manager/row-default.d.ts +3 -0
- package/dist/components/pill-manager/row-default.js +14 -0
- package/dist/components/pill-manager/types.d.ts +21 -0
- package/dist/components/pill-manager/types.js +1 -0
- package/dist/components/row-group-cell.d.ts +13 -0
- package/dist/components/row-group-cell.js +40 -0
- package/dist/components/select-all.d.ts +12 -0
- package/dist/components/select-all.js +34 -0
- package/dist/components/smart-select/chip-context.d.ts +8 -0
- package/dist/components/smart-select/chip-context.js +4 -0
- package/dist/components/smart-select/chip-remove.d.ts +1 -0
- package/dist/components/smart-select/chip-remove.js +13 -0
- package/dist/components/smart-select/chip.d.ts +13 -0
- package/dist/components/smart-select/chip.js +79 -0
- package/dist/components/smart-select/container.d.ts +1 -0
- package/dist/components/smart-select/container.js +13 -0
- package/dist/components/smart-select/context.d.ts +31 -0
- package/dist/components/smart-select/context.js +4 -0
- package/dist/components/smart-select/index.d.ts +30 -0
- package/dist/components/smart-select/index.js +19 -0
- package/dist/components/smart-select/option.d.ts +8 -0
- package/dist/components/smart-select/option.js +36 -0
- package/dist/components/smart-select/root.d.ts +17 -0
- package/dist/components/smart-select/root.js +165 -0
- package/dist/components/smart-select/smart-select.play.d.ts +2 -0
- package/dist/components/smart-select/smart-select.play.js +36 -0
- package/dist/components/smart-select/triggers/basic-trigger.d.ts +1 -0
- package/dist/components/smart-select/triggers/basic-trigger.js +18 -0
- package/dist/components/smart-select/triggers/combo-trigger.d.ts +1 -0
- package/dist/components/smart-select/triggers/combo-trigger.js +17 -0
- package/dist/components/smart-select/triggers/is-selectable-option.d.ts +1 -0
- package/dist/components/smart-select/triggers/is-selectable-option.js +3 -0
- package/dist/components/smart-select/triggers/multi-combo-trigger.d.ts +11 -0
- package/dist/components/smart-select/triggers/multi-combo-trigger.js +38 -0
- package/dist/components/smart-select/triggers/multi-trigger.d.ts +6 -0
- package/dist/components/smart-select/triggers/multi-trigger.js +8 -0
- package/dist/components/smart-select/triggers/use-combo-controls.d.ts +9 -0
- package/dist/components/smart-select/triggers/use-combo-controls.js +145 -0
- package/dist/components/smart-select/triggers/use-trigger-controls.d.ts +5 -0
- package/dist/components/smart-select/triggers/use-trigger-controls.js +126 -0
- package/dist/components/smart-select/type.d.ts +44 -0
- package/dist/components/smart-select/type.js +1 -0
- package/dist/components/smart-select/use-async-options.d.ts +8 -0
- package/dist/components/smart-select/use-async-options.js +42 -0
- package/dist/components/tree-view/index.d.ts +4 -0
- package/dist/components/tree-view/index.js +2 -0
- package/dist/components/tree-view/root.d.ts +37 -0
- package/dist/components/tree-view/root.js +139 -0
- package/dist/components/tree-view/select-all.d.ts +7 -0
- package/dist/components/tree-view/select-all.js +22 -0
- package/dist/components/tree-view/tree-children.d.ts +2 -0
- package/dist/components/tree-view/tree-children.js +15 -0
- package/dist/components/tree-view/types.d.ts +31 -0
- package/dist/components/tree-view/types.js +1 -0
- package/dist/components/types.d.ts +4 -0
- package/dist/components/types.js +1 -0
- package/dist/components/virtual-from-coordinates.d.ts +2 -0
- package/dist/components/virtual-from-coordinates.js +15 -0
- package/dist/components.d.ts +16 -0
- package/dist/components.js +11 -0
- package/dist/data-source-client/hooks/get-valid-leafs.d.ts +3 -0
- package/dist/data-source-client/hooks/get-valid-leafs.js +11 -0
- package/dist/data-source-client/hooks/use-controlled-ds-state.d.ts +13 -0
- package/dist/data-source-client/hooks/use-controlled-ds-state.js +39 -0
- package/dist/data-source-client/hooks/use-flattened-data.d.ts +18 -0
- package/dist/data-source-client/hooks/use-flattened-data.js +40 -0
- package/dist/data-source-client/hooks/use-flattened-groups.d.ts +5 -0
- package/dist/data-source-client/hooks/use-flattened-groups.js +63 -0
- package/dist/data-source-client/hooks/use-flattened-piece.d.ts +14 -0
- package/dist/data-source-client/hooks/use-flattened-piece.js +55 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse-child.d.ts +2 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse-child.js +11 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse-last.d.ts +2 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse-last.js +14 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse.d.ts +2 -0
- package/dist/data-source-client/hooks/use-group-tree/collapse.js +17 -0
- package/dist/data-source-client/hooks/use-group-tree/use-group-tree.d.ts +31 -0
- package/dist/data-source-client/hooks/use-group-tree/use-group-tree.js +152 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/apply-reference-column.d.ts +2 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/apply-reference-column.js +22 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/evaluate-label-filter.d.ts +2 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/evaluate-label-filter.js +9 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths-with-totals.d.ts +18 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths-with-totals.js +140 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths.d.ts +4 -0
- package/dist/data-source-client/hooks/use-pivot/auxiliary-functions/pivot-paths.js +31 -0
- package/dist/data-source-client/hooks/use-pivot/use-agg-model.d.ts +4 -0
- package/dist/data-source-client/hooks/use-pivot/use-agg-model.js +45 -0
- package/dist/data-source-client/hooks/use-pivot/use-filtered-data.d.ts +2 -0
- package/dist/data-source-client/hooks/use-pivot/use-filtered-data.js +18 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-columns.d.ts +14 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-columns.js +151 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-data.d.ts +32 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-data.js +83 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-group-fn.d.ts +4 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-group-fn.js +23 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-state.d.ts +16 -0
- package/dist/data-source-client/hooks/use-pivot/use-pivot-state.js +40 -0
- package/dist/data-source-client/use-client-data-source.d.ts +91 -0
- package/dist/data-source-client/use-client-data-source.js +169 -0
- package/dist/data-source-server/async-tree/+constants.async-tree.d.ts +1 -0
- package/dist/data-source-server/async-tree/+constants.async-tree.js +1 -0
- package/dist/data-source-server/async-tree/apply-delete-action-to-tree.d.ts +2 -0
- package/dist/data-source-server/async-tree/apply-delete-action-to-tree.js +27 -0
- package/dist/data-source-server/async-tree/apply-set-action-to-tree.d.ts +2 -0
- package/dist/data-source-server/async-tree/apply-set-action-to-tree.js +26 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-unique.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-unique.js +20 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-valid.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-are-valid.js +12 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-fit.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-keys-fit.js +18 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-kinds.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action-item-kinds.js +12 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action.d.ts +2 -0
- package/dist/data-source-server/async-tree/data-integrity-checks/check-set-action.js +24 -0
- package/dist/data-source-server/async-tree/get-parent-node-by-path.d.ts +2 -0
- package/dist/data-source-server/async-tree/get-parent-node-by-path.js +18 -0
- package/dist/data-source-server/async-tree/is-set-action-a-no-op-on-node.d.ts +2 -0
- package/dist/data-source-server/async-tree/is-set-action-a-no-op-on-node.js +3 -0
- package/dist/data-source-server/async-tree/make-async-tree.d.ts +2 -0
- package/dist/data-source-server/async-tree/make-async-tree.js +64 -0
- package/dist/data-source-server/async-tree/maybe-apply-parent-remove-self.d.ts +2 -0
- package/dist/data-source-server/async-tree/maybe-apply-parent-remove-self.js +8 -0
- package/dist/data-source-server/async-tree/maybe-apply-resize.d.ts +2 -0
- package/dist/data-source-server/async-tree/maybe-apply-resize.js +17 -0
- package/dist/data-source-server/async-tree/maybe-apply-set-action-items.d.ts +2 -0
- package/dist/data-source-server/async-tree/maybe-apply-set-action-items.js +54 -0
- package/dist/data-source-server/async-tree/types.d.ts +70 -0
- package/dist/data-source-server/async-tree/types.js +1 -0
- package/dist/data-source-server/range-tree/range-tree.d.ts +66 -0
- package/dist/data-source-server/range-tree/range-tree.js +102 -0
- package/dist/data-source-server/server-data.d.ts +73 -0
- package/dist/data-source-server/server-data.js +553 -0
- package/dist/data-source-server/source/use-on-rows-updated.d.ts +4 -0
- package/dist/data-source-server/source/use-on-rows-updated.js +29 -0
- package/dist/data-source-server/source/use-on-view-change.d.ts +3 -0
- package/dist/data-source-server/source/use-on-view-change.js +13 -0
- package/dist/data-source-server/source/use-row-add.d.ts +3 -0
- package/dist/data-source-server/source/use-row-add.js +36 -0
- package/dist/data-source-server/source/use-row-by-id.d.ts +2 -0
- package/dist/data-source-server/source/use-row-by-id.js +8 -0
- package/dist/data-source-server/source/use-row-by-index.d.ts +9 -0
- package/dist/data-source-server/source/use-row-by-index.js +89 -0
- package/dist/data-source-server/source/use-row-children.d.ts +2 -0
- package/dist/data-source-server/source/use-row-children.js +16 -0
- package/dist/data-source-server/source/use-row-delete.d.ts +3 -0
- package/dist/data-source-server/source/use-row-delete.js +39 -0
- package/dist/data-source-server/source/use-row-id-to-row-index.d.ts +2 -0
- package/dist/data-source-server/source/use-row-id-to-row-index.js +7 -0
- package/dist/data-source-server/source/use-row-index-to-row-id.d.ts +2 -0
- package/dist/data-source-server/source/use-row-index-to-row-id.js +7 -0
- package/dist/data-source-server/source/use-row-leafs.d.ts +2 -0
- package/dist/data-source-server/source/use-row-leafs.js +20 -0
- package/dist/data-source-server/source/use-row-parents.d.ts +2 -0
- package/dist/data-source-server/source/use-row-parents.js +16 -0
- package/dist/data-source-server/source/use-row-siblings.d.ts +2 -0
- package/dist/data-source-server/source/use-row-siblings.js +15 -0
- package/dist/data-source-server/source/use-rows-between.d.ts +2 -0
- package/dist/data-source-server/source/use-rows-between.js +20 -0
- package/dist/data-source-server/source/use-source-state.d.ts +28 -0
- package/dist/data-source-server/source/use-source-state.js +47 -0
- package/dist/data-source-server/source/use-source.d.ts +5 -0
- package/dist/data-source-server/source/use-source.js +66 -0
- package/dist/data-source-server/types.d.ts +42 -0
- package/dist/data-source-server/types.js +1 -0
- package/dist/data-source-server/use-server-data-source.d.ts +51 -0
- package/dist/data-source-server/use-server-data-source.js +192 -0
- package/dist/data-source-server/utils/get-node-depth.d.ts +2 -0
- package/dist/data-source-server/utils/get-node-depth.js +9 -0
- package/dist/data-source-server/utils/get-node-path.d.ts +2 -0
- package/dist/data-source-server/utils/get-node-path.js +9 -0
- package/dist/data-source-server/utils/get-request-id.d.ts +1 -0
- package/dist/data-source-server/utils/get-request-id.js +6 -0
- package/dist/data-source-tree/source/use-controlled-state.d.ts +8 -0
- package/dist/data-source-tree/source/use-controlled-state.js +21 -0
- package/dist/data-source-tree/source/use-flattened.d.ts +17 -0
- package/dist/data-source-tree/source/use-flattened.js +65 -0
- package/dist/data-source-tree/source/use-on-rows-updated.d.ts +3 -0
- package/dist/data-source-tree/source/use-on-rows-updated.js +49 -0
- package/dist/data-source-tree/source/use-row-by-id.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-by-id.js +7 -0
- package/dist/data-source-tree/source/use-row-children.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-children.js +11 -0
- package/dist/data-source-tree/source/use-row-leafs.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-leafs.js +20 -0
- package/dist/data-source-tree/source/use-row-parents.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-parents.js +16 -0
- package/dist/data-source-tree/source/use-row-siblings.d.ts +2 -0
- package/dist/data-source-tree/source/use-row-siblings.js +12 -0
- package/dist/data-source-tree/source/use-tree.d.ts +3 -0
- package/dist/data-source-tree/source/use-tree.js +59 -0
- package/dist/data-source-tree/types.d.ts +16 -0
- package/dist/data-source-tree/types.js +1 -0
- package/dist/data-source-tree/use-tree-data-source.d.ts +41 -0
- package/dist/data-source-tree/use-tree-data-source.js +101 -0
- package/dist/data-source-tree/utils/is-object.d.ts +1 -0
- package/dist/data-source-tree/utils/is-object.js +3 -0
- package/dist/hooks/use-slot/get-element-ref.d.ts +2 -0
- package/dist/hooks/use-slot/get-element-ref.js +20 -0
- package/dist/hooks/use-slot/index.d.ts +3 -0
- package/dist/hooks/use-slot/index.js +1 -0
- package/dist/hooks/use-slot/merge-props.d.ts +4 -0
- package/dist/hooks/use-slot/merge-props.js +27 -0
- package/dist/hooks/use-slot/react-version.d.ts +3 -0
- package/dist/hooks/use-slot/react-version.js +5 -0
- package/dist/hooks/use-slot/types.d.ts +4 -0
- package/dist/hooks/use-slot/types.js +1 -0
- package/dist/hooks/use-slot/use-slot.d.ts +12 -0
- package/dist/hooks/use-slot/use-slot.js +28 -0
- package/dist/hooks/use-transitioned-open.d.ts +2 -0
- package/dist/hooks/use-transitioned-open.js +50 -0
- package/dist/index.d.ts +121 -0
- package/dist/index.js +23 -0
- package/dist/license/index.d.ts +1 -0
- package/dist/license/index.js +1 -0
- package/dist/license/license.d.ts +3 -0
- package/dist/license/license.js +215 -0
- package/dist/license/md5-hash.d.ts +9 -0
- package/dist/license/md5-hash.js +167 -0
- package/dist/license.d.ts +3 -0
- package/dist/license.js +214 -0
- package/dist/root/context.d.ts +16 -0
- package/dist/root/context.js +4 -0
- package/dist/root/hooks/use-pro-api.d.ts +2 -0
- package/dist/root/hooks/use-pro-api.js +8 -0
- package/dist/root/root.d.ts +15 -0
- package/dist/root/root.js +112 -0
- package/dist/types/api.d.ts +100 -0
- package/dist/types/api.js +1 -0
- package/dist/types/column.d.ts +73 -0
- package/dist/types/column.js +1 -0
- package/dist/types/events.d.ts +56 -0
- package/dist/types/events.js +1 -0
- package/dist/types/grid.d.ts +47 -0
- package/dist/types/grid.js +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.js +1 -0
- package/dist/types/props.d.ts +187 -0
- package/dist/types/props.js +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { useSlot } from "../../hooks/use-slot/index.js";
|
|
4
|
+
import { useControlled, useEvent } from "@1771technologies/lytenyte-core/internal";
|
|
5
|
+
function CheckboxBase({ indeterminate, renderMarker, onCheckChange: onCheck, ...props }, ref) {
|
|
6
|
+
const [checked, setChecked] = useControlled({
|
|
7
|
+
controlled: props.checked,
|
|
8
|
+
default: props.initialChecked ?? false,
|
|
9
|
+
});
|
|
10
|
+
const onCheckChanged = useEvent((b) => {
|
|
11
|
+
setChecked(b);
|
|
12
|
+
onCheck?.(b);
|
|
13
|
+
});
|
|
14
|
+
const marker = useSlot({
|
|
15
|
+
slot: renderMarker ?? (checked ? _jsx(CheckIcon, {}) : indeterminate ? _jsx(DashIcon, {}) : _jsx(_Fragment, {})),
|
|
16
|
+
state: {
|
|
17
|
+
indeterminate: indeterminate ?? false,
|
|
18
|
+
checked,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
return (_jsxs("div", { "data-ln-checkbox": true, "data-ln-checked": checked, "data-ln-indeterminate": indeterminate, "data-ln-disabled": props.disabled, style: { position: "relative" }, children: [marker, _jsx("input", { "data-ln-checkbox-input": true, onChange: (e) => {
|
|
22
|
+
props.onChange?.(e);
|
|
23
|
+
if (e.defaultPrevented || e.isPropagationStopped())
|
|
24
|
+
return;
|
|
25
|
+
onCheckChanged(e.target.checked);
|
|
26
|
+
}, type: "checkbox", ref: ref, ...props, style: {
|
|
27
|
+
width: "100%",
|
|
28
|
+
height: "100%",
|
|
29
|
+
opacity: 0,
|
|
30
|
+
margin: 0,
|
|
31
|
+
position: "absolute",
|
|
32
|
+
top: 0,
|
|
33
|
+
left: 0,
|
|
34
|
+
} })] }));
|
|
35
|
+
}
|
|
36
|
+
function CheckIcon(props) {
|
|
37
|
+
return (_jsx("svg", { width: "11", height: "11", viewBox: "0 0 10 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M1.00024 4.34783C2.53871 5.26087 3.76948 7.08696 4.07717 8C5.61563 4.34783 7.76948 1.91304 9.00024 1", stroke: "currentcolor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
38
|
+
}
|
|
39
|
+
function DashIcon(props) {
|
|
40
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "currentcolor", viewBox: "0 0 256 256", ...props, children: _jsx("path", { d: "M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z" }) }));
|
|
41
|
+
}
|
|
42
|
+
export const Checkbox = forwardRef(CheckboxBase);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { Column, GridSpec, RowNode } from "../../types";
|
|
3
|
+
import type { Grid } from "../..";
|
|
4
|
+
export interface ColumnManagerProps<Spec extends GridSpec = GridSpec> {
|
|
5
|
+
readonly columns: Column<Spec>[];
|
|
6
|
+
readonly onColumnsChange: (change: Column<Spec>[]) => void;
|
|
7
|
+
readonly base?: Grid.ColumnBase<Spec>;
|
|
8
|
+
readonly endElement?: (params: {
|
|
9
|
+
columns: Column<Spec>[];
|
|
10
|
+
row: RowNode<Spec["data"]>;
|
|
11
|
+
}) => ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function ColumnManager<Spec extends GridSpec = GridSpec>({ columns, base, onColumnsChange, endElement, }: ColumnManagerProps<Spec>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { TreeView } from "../tree-view/index.js";
|
|
4
|
+
import { Checkbox } from "../checkbox/checkbox.js";
|
|
5
|
+
export function ColumnManager({ columns, base, onColumnsChange, endElement, }) {
|
|
6
|
+
const items = useMemo(() => {
|
|
7
|
+
return columns.map((x) => ({ id: x.id, path: x.groupPath ?? [], name: x.name, column: x }));
|
|
8
|
+
}, [columns]);
|
|
9
|
+
return (_jsx(TreeView, { items: items, rowSelectionEnabled: false, draggable: true, rowHeight: 30, rowSelectAllShow: false, defaultExpansion: true, onItemsReordered: (x) => {
|
|
10
|
+
const columns = x.map((x) => x.column);
|
|
11
|
+
onColumnsChange(columns);
|
|
12
|
+
}, children: ({ row, leafs, toggle, dragProps, isOver, isBefore }) => {
|
|
13
|
+
const depth = row.depth;
|
|
14
|
+
const items = leafs();
|
|
15
|
+
const end = endElement?.({ columns: items.map((x) => x.column), row });
|
|
16
|
+
const isSelected = items.every((x) => !(x.column.hide ?? base?.hide));
|
|
17
|
+
const isIndeterminate = !isSelected && items.some((x) => !(x.column.hide ?? base?.hide));
|
|
18
|
+
const draggable = !!dragProps.draggable;
|
|
19
|
+
const checkbox = (_jsx(Checkbox, { checked: isSelected, indeterminate: isIndeterminate, onChange: () => {
|
|
20
|
+
if (isSelected) {
|
|
21
|
+
onColumnsChange(columns.map((x) => {
|
|
22
|
+
const c = items.find((c) => x.id === c.column.id);
|
|
23
|
+
if (!c)
|
|
24
|
+
return x;
|
|
25
|
+
return { ...c.column, hide: true };
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
onColumnsChange(columns.map((x) => {
|
|
30
|
+
const c = items.find((c) => x.id === c.column.id);
|
|
31
|
+
if (!c)
|
|
32
|
+
return x;
|
|
33
|
+
return { ...c.column, hide: false };
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
} }));
|
|
37
|
+
if (row.kind === "branch")
|
|
38
|
+
return (_jsxs("div", { "data-ln-tree-view-cell": row.kind, "data-ln-tree-view-cell-expanded": row.kind === "branch" && row.expanded, "data-ln-tree-view-cell-expandable": row.kind === "branch" ? row.expandable : undefined, "data-ln-tree-over": isOver, "data-ln-tree-before": isBefore, style: { "--ln-row-depth": depth }, ...dragProps, children: [row.kind === "branch" && row.expandable && (_jsx("button", { "data-ln-tree-view-cell-expander": true, "aria-label": "toggle the row group expansion state", onClick: () => toggle(), children: !row.loadingGroup && _jsx(CaretRight, {}) })), draggable && (_jsx("div", { children: _jsx(DragDots, {}) })), checkbox, _jsx("div", { style: { flex: "1" }, children: row.key }), end] }));
|
|
39
|
+
return (_jsxs("div", { "data-ln-tree-view-cell": row.kind, "data-ln-tree-over": isOver, "data-ln-tree-before": isBefore, style: { "--ln-row-depth": depth }, ...dragProps, children: [draggable && (_jsx("div", { children: _jsx(DragDots, {}) })), checkbox, _jsx("div", { style: { flex: "1" }, children: row.data.name ?? row.data.id }), end] }));
|
|
40
|
+
} }));
|
|
41
|
+
}
|
|
42
|
+
function CaretRight() {
|
|
43
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "currentcolor", viewBox: "0 0 256 256", children: _jsx("path", { d: "M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z" }) }));
|
|
44
|
+
}
|
|
45
|
+
function DragDots() {
|
|
46
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "currentcolor", viewBox: "0 0 256 256", children: _jsx("path", { d: "M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z" }) }));
|
|
47
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function toVal(mix) {
|
|
2
|
+
var k, y, str = "";
|
|
3
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
4
|
+
str += mix;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof mix === "object") {
|
|
7
|
+
if (Array.isArray(mix)) {
|
|
8
|
+
var len = mix.length;
|
|
9
|
+
for (k = 0; k < len; k++) {
|
|
10
|
+
if (mix[k]) {
|
|
11
|
+
if ((y = toVal(mix[k]))) {
|
|
12
|
+
if (str)
|
|
13
|
+
str += " ";
|
|
14
|
+
str += y;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
for (y in mix) {
|
|
21
|
+
if (mix[y]) {
|
|
22
|
+
if (str)
|
|
23
|
+
str += " ";
|
|
24
|
+
str += y;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return str;
|
|
30
|
+
}
|
|
31
|
+
export function clsx() {
|
|
32
|
+
var i = 0, tmp, x, str = "", len = arguments.length;
|
|
33
|
+
for (; i < len; i++) {
|
|
34
|
+
if ((tmp = arguments[i])) {
|
|
35
|
+
if ((x = toVal(tmp))) {
|
|
36
|
+
if (str)
|
|
37
|
+
str += " ";
|
|
38
|
+
str += x;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return str;
|
|
43
|
+
}
|
|
44
|
+
export default clsx;
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides data to position an inner element of the floating element so that it
|
|
3
|
+
* appears centered to the reference element.
|
|
4
|
+
* @see https://floating-ui.com/docs/arrow
|
|
5
|
+
*/
|
|
6
|
+
export function arrow(options: any): {
|
|
7
|
+
name: string;
|
|
8
|
+
options: any;
|
|
9
|
+
fn(state: any): Promise<{
|
|
10
|
+
data?: undefined;
|
|
11
|
+
reset?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
data: {
|
|
15
|
+
alignmentOffset?: number | undefined;
|
|
16
|
+
centerOffset: number;
|
|
17
|
+
};
|
|
18
|
+
reset: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
23
|
+
* that has the most space available automatically, without needing to specify a
|
|
24
|
+
* preferred placement. Alternative to `flip`.
|
|
25
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
26
|
+
*/
|
|
27
|
+
export function autoPlacement(options: any): {
|
|
28
|
+
name: string;
|
|
29
|
+
options: any;
|
|
30
|
+
fn(state: any): Promise<{
|
|
31
|
+
reset?: undefined;
|
|
32
|
+
data?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
reset: {
|
|
35
|
+
placement: any;
|
|
36
|
+
};
|
|
37
|
+
data?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
data: {
|
|
40
|
+
index: any;
|
|
41
|
+
overflows: any[];
|
|
42
|
+
};
|
|
43
|
+
reset: {
|
|
44
|
+
placement: any;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Automatically updates the position of the floating element when necessary.
|
|
50
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
51
|
+
* visible on the screen.
|
|
52
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
53
|
+
* removed from the DOM or hidden from the screen.
|
|
54
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
55
|
+
*/
|
|
56
|
+
export function autoUpdate(reference: any, floating: any, update: any, options: any): () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
59
|
+
* next to a given reference element.
|
|
60
|
+
*/
|
|
61
|
+
export function computePosition(reference: any, floating: any, options: any): Promise<{
|
|
62
|
+
x: any;
|
|
63
|
+
y: any;
|
|
64
|
+
placement: any;
|
|
65
|
+
strategy: any;
|
|
66
|
+
middlewareData: {};
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
70
|
+
* element is overflowing a given clipping boundary on each side.
|
|
71
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
72
|
+
* - negative = how many pixels left before it will overflow
|
|
73
|
+
* - 0 = lies flush with the boundary
|
|
74
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
75
|
+
*/
|
|
76
|
+
export function detectOverflow(state: any, options: any): Promise<{
|
|
77
|
+
top: number;
|
|
78
|
+
bottom: number;
|
|
79
|
+
left: number;
|
|
80
|
+
right: number;
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
84
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
85
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
86
|
+
* @see https://floating-ui.com/docs/flip
|
|
87
|
+
*/
|
|
88
|
+
export function flip(options: any): {
|
|
89
|
+
name: string;
|
|
90
|
+
options: any;
|
|
91
|
+
fn(state: any): Promise<{
|
|
92
|
+
data?: undefined;
|
|
93
|
+
reset?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
data: {
|
|
96
|
+
index: any;
|
|
97
|
+
overflows: any;
|
|
98
|
+
};
|
|
99
|
+
reset: {
|
|
100
|
+
placement: any;
|
|
101
|
+
};
|
|
102
|
+
} | {
|
|
103
|
+
reset: {
|
|
104
|
+
placement: any;
|
|
105
|
+
};
|
|
106
|
+
data?: undefined;
|
|
107
|
+
}>;
|
|
108
|
+
};
|
|
109
|
+
export function getOverflowAncestors(node: any, list: any, traverseIframes: any): any;
|
|
110
|
+
/**
|
|
111
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
112
|
+
* when it is not in the same clipping context as the reference element.
|
|
113
|
+
* @see https://floating-ui.com/docs/hide
|
|
114
|
+
*/
|
|
115
|
+
export function hide(options: any): {
|
|
116
|
+
name: string;
|
|
117
|
+
options: any;
|
|
118
|
+
fn(state: any): Promise<{
|
|
119
|
+
data: {
|
|
120
|
+
referenceHiddenOffsets: {
|
|
121
|
+
top: number;
|
|
122
|
+
right: number;
|
|
123
|
+
bottom: number;
|
|
124
|
+
left: number;
|
|
125
|
+
};
|
|
126
|
+
referenceHidden: boolean;
|
|
127
|
+
escapedOffsets?: undefined;
|
|
128
|
+
escaped?: undefined;
|
|
129
|
+
};
|
|
130
|
+
} | {
|
|
131
|
+
data: {
|
|
132
|
+
escapedOffsets: {
|
|
133
|
+
top: number;
|
|
134
|
+
right: number;
|
|
135
|
+
bottom: number;
|
|
136
|
+
left: number;
|
|
137
|
+
};
|
|
138
|
+
escaped: boolean;
|
|
139
|
+
referenceHiddenOffsets?: undefined;
|
|
140
|
+
referenceHidden?: undefined;
|
|
141
|
+
};
|
|
142
|
+
} | {
|
|
143
|
+
data?: undefined;
|
|
144
|
+
}>;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Provides improved positioning for inline reference elements that can span
|
|
148
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
149
|
+
* @see https://floating-ui.com/docs/inline
|
|
150
|
+
*/
|
|
151
|
+
export function inline(options: any): {
|
|
152
|
+
name: string;
|
|
153
|
+
options: any;
|
|
154
|
+
fn(state: any): Promise<{
|
|
155
|
+
reset: {
|
|
156
|
+
rects: any;
|
|
157
|
+
};
|
|
158
|
+
} | {
|
|
159
|
+
reset?: undefined;
|
|
160
|
+
}>;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
164
|
+
*/
|
|
165
|
+
export function limitShift(options: any): {
|
|
166
|
+
options: any;
|
|
167
|
+
fn(state: any): {
|
|
168
|
+
[x: string]: any;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Modifies the placement by translating the floating element along the
|
|
173
|
+
* specified axes.
|
|
174
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
175
|
+
* object may be passed.
|
|
176
|
+
* @see https://floating-ui.com/docs/offset
|
|
177
|
+
*/
|
|
178
|
+
export function offset(options: any): {
|
|
179
|
+
name: string;
|
|
180
|
+
options: any;
|
|
181
|
+
fn(state: any): Promise<{
|
|
182
|
+
x?: undefined;
|
|
183
|
+
y?: undefined;
|
|
184
|
+
data?: undefined;
|
|
185
|
+
} | {
|
|
186
|
+
x: any;
|
|
187
|
+
y: any;
|
|
188
|
+
data: {
|
|
189
|
+
placement: any;
|
|
190
|
+
x: number;
|
|
191
|
+
y: number;
|
|
192
|
+
};
|
|
193
|
+
}>;
|
|
194
|
+
};
|
|
195
|
+
export namespace platform {
|
|
196
|
+
export { convertOffsetParentRelativeRectToViewportRelativeRect };
|
|
197
|
+
export { getDocumentElement };
|
|
198
|
+
export { getClippingRect };
|
|
199
|
+
export { getOffsetParent };
|
|
200
|
+
export { getElementRects };
|
|
201
|
+
export { getClientRects };
|
|
202
|
+
export { getDimensions };
|
|
203
|
+
export { getScale };
|
|
204
|
+
export { isElement };
|
|
205
|
+
export { isRTL };
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
209
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
210
|
+
* @see https://floating-ui.com/docs/shift
|
|
211
|
+
*/
|
|
212
|
+
export function shift(options: any): {
|
|
213
|
+
name: string;
|
|
214
|
+
options: any;
|
|
215
|
+
fn(state: any): Promise<any>;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Provides data that allows you to change the size of the floating element —
|
|
219
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
220
|
+
* width of the reference element.
|
|
221
|
+
* @see https://floating-ui.com/docs/size
|
|
222
|
+
*/
|
|
223
|
+
export function size(options: any): {
|
|
224
|
+
name: string;
|
|
225
|
+
options: any;
|
|
226
|
+
fn(state: any): Promise<{
|
|
227
|
+
reset: {
|
|
228
|
+
rects: boolean;
|
|
229
|
+
};
|
|
230
|
+
} | {
|
|
231
|
+
reset?: undefined;
|
|
232
|
+
}>;
|
|
233
|
+
};
|
|
234
|
+
declare function convertOffsetParentRelativeRectToViewportRelativeRect(_ref: any): any;
|
|
235
|
+
declare function getDocumentElement(node: any): any;
|
|
236
|
+
declare function getClippingRect(_ref: any): {
|
|
237
|
+
width: number;
|
|
238
|
+
height: number;
|
|
239
|
+
x: any;
|
|
240
|
+
y: any;
|
|
241
|
+
};
|
|
242
|
+
declare function getOffsetParent(element: any, polyfill: any): any;
|
|
243
|
+
declare function getElementRects(data: any): Promise<{
|
|
244
|
+
reference: {
|
|
245
|
+
x: number;
|
|
246
|
+
y: number;
|
|
247
|
+
width: any;
|
|
248
|
+
height: any;
|
|
249
|
+
};
|
|
250
|
+
floating: {
|
|
251
|
+
x: number;
|
|
252
|
+
y: number;
|
|
253
|
+
width: any;
|
|
254
|
+
height: any;
|
|
255
|
+
};
|
|
256
|
+
}>;
|
|
257
|
+
declare function getClientRects(element: any): any[];
|
|
258
|
+
declare function getDimensions(element: any): {
|
|
259
|
+
width: number;
|
|
260
|
+
height: number;
|
|
261
|
+
};
|
|
262
|
+
declare function getScale(element: any): {
|
|
263
|
+
x: any;
|
|
264
|
+
y: any;
|
|
265
|
+
};
|
|
266
|
+
declare function isElement(value: any): boolean;
|
|
267
|
+
declare function isRTL(element: any): boolean;
|
|
268
|
+
export {};
|