@vritti/quantum-ui 0.3.9 → 0.3.12
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/Avatar.js +5 -5
- package/dist/BarChart.js +1 -9
- package/dist/BarChart.js.map +1 -1
- package/dist/Breadcrumb.js +1 -1
- package/dist/Breadcrumb.js.map +1 -1
- package/dist/Button.js +14 -6
- package/dist/Button.js.map +1 -1
- package/dist/Checkbox2.js +5 -5
- package/dist/CheckboxGroup.js +64 -6
- package/dist/CheckboxGroup.js.map +1 -1
- package/dist/Collapsible.js +1 -1
- package/dist/Collapsible.js.map +1 -1
- package/dist/ConfirmHost.js +5 -17
- package/dist/ConfirmHost.js.map +1 -1
- package/dist/CurrencyField.js +1 -1
- package/dist/CurrencyFilter.js.map +1 -1
- package/dist/DateRangePicker.js +4 -2
- package/dist/DateRangePicker.js.map +1 -1
- package/dist/DateTimePicker.js +1 -1
- package/dist/DateTimeRangePicker.js +4 -2
- package/dist/DateTimeRangePicker.js.map +1 -1
- package/dist/DetailSectionSkeleton.js +14 -1
- package/dist/DetailSectionSkeleton.js.map +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/Dialog.js.map +1 -1
- package/dist/ErrorBoundary.js +1 -108
- package/dist/ErrorBoundary.js.map +1 -1
- package/dist/FilePreview.js +1 -145
- package/dist/FilePreview.js.map +1 -1
- package/dist/HierarchyGraph.js +12 -8
- package/dist/HierarchyGraph.js.map +1 -1
- package/dist/IconSelect.js +31393 -0
- package/dist/IconSelect.js.map +1 -0
- package/dist/Kbd.js +11 -19
- package/dist/Kbd.js.map +1 -1
- package/dist/LocationSelector.js +13 -15
- package/dist/LocationSelector.js.map +1 -1
- package/dist/OTPField.js +1 -12
- package/dist/OTPField.js.map +1 -1
- package/dist/PageContent.js.map +1 -1
- package/dist/PageHeaderSkeleton.js +1 -1
- package/dist/PageHeaderSkeleton.js.map +1 -1
- package/dist/PermissionGate.js +31 -0
- package/dist/PermissionGate.js.map +1 -0
- package/dist/PieChart.js.map +1 -1
- package/dist/Progress.js +2 -2
- package/dist/QuantSelector.js.map +1 -1
- package/dist/RadialChart.js.map +1 -1
- package/dist/RadioGroup.js +7 -7
- package/dist/Select.js +32 -188
- package/dist/Select.js.map +1 -1
- package/dist/SerialSelector.js +13 -15
- package/dist/SerialSelector.js.map +1 -1
- package/dist/Sidebar.js +8 -19
- package/dist/Sidebar.js.map +1 -1
- package/dist/Sonner.js +2 -17
- package/dist/Sonner.js.map +1 -1
- package/dist/SupplierItemSelector.js.map +1 -1
- package/dist/Switch.js +7 -5
- package/dist/Switch.js.map +1 -1
- package/dist/TabsSkeleton.js +2 -2
- package/dist/TabsSkeleton.js.map +1 -1
- package/dist/ThemeToggle.js +1 -41
- package/dist/ThemeToggle.js.map +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/Tooltip.js +19 -0
- package/dist/Tooltip.js.map +1 -0
- package/dist/UomSelector.js +6 -1
- package/dist/UomSelector.js.map +1 -1
- package/dist/UploadFile.js +1 -35
- package/dist/UploadFile.js.map +1 -1
- package/dist/ValueFilter.js.map +1 -1
- package/dist/ViewTabs.js +1 -16
- package/dist/ViewTabs.js.map +1 -1
- package/dist/assets/quantum-ui.css +109 -4
- package/dist/calendar2.js +2 -13
- package/dist/calendar2.js.map +1 -1
- package/dist/check-check.js +18 -0
- package/dist/check-check.js.map +1 -0
- package/dist/chevron-left.js +15 -0
- package/dist/chevron-left.js.map +1 -0
- package/dist/circle-question-mark.js +19 -0
- package/dist/circle-question-mark.js.map +1 -0
- package/dist/circle-x.js +19 -0
- package/dist/circle-x.js.map +1 -0
- package/dist/circle.js +15 -0
- package/dist/circle.js.map +1 -0
- package/dist/components/DataTable.js +1 -1
- package/dist/components/DetailField.js +1 -1
- package/dist/components/FormattedDate.js.map +1 -1
- package/dist/components/PermissionGate.js +2 -0
- package/dist/components/PermissionGate.js.map +1 -0
- package/dist/components/RichTextEditor.js +1 -1
- package/dist/components/ScanBarcodeButton.js +1 -20
- package/dist/components/ScanBarcodeButton.js.map +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tooltip.js +2 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/TreeView.js +4 -4
- package/dist/dot.js +15 -0
- package/dist/dot.js.map +1 -0
- package/dist/dropdown-menu.js +11 -22
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/file.js +148 -0
- package/dist/file.js.map +1 -0
- package/dist/globe.js +19 -0
- package/dist/globe.js.map +1 -0
- package/dist/icons.js +21 -0
- package/dist/icons.js.map +1 -0
- package/dist/image-component.js +37 -96
- package/dist/image-component.js.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index12.js +7 -7
- package/dist/index13.js +7 -7
- package/dist/index14.js +11 -11
- package/dist/index15.js +1 -1
- package/dist/index16.js +1 -1
- package/dist/index17.js +168 -175
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +173 -201
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +203 -69
- package/dist/index19.js.map +1 -1
- package/dist/index20.js +70 -211
- package/dist/index20.js.map +1 -1
- package/dist/index21.js +206 -116
- package/dist/index21.js.map +1 -1
- package/dist/index22.js +122 -70
- package/dist/index22.js.map +1 -1
- package/dist/index23.js +74 -11
- package/dist/index23.js.map +1 -1
- package/dist/index24.js +13 -1134
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +1120 -219
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +202 -2506
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +2527 -23
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +32 -4
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +3 -1124
- package/dist/index29.js.map +1 -1
- package/dist/index30.js +1123 -35
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +36 -310
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +309 -7
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +8 -30
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +29 -59
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +59 -10
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +10 -35
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +27 -36809
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +35362 -70
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +72 -187
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +5 -5
- package/dist/index40.js +199 -0
- package/dist/index40.js.map +1 -0
- package/dist/lib/components/BarChart/BarChart.d.ts.map +1 -1
- package/dist/lib/components/Button/Button.d.ts +1 -0
- package/dist/lib/components/Button/Button.d.ts.map +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts +1 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/lib/components/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/lib/components/ConfirmHost/ConfirmHost.d.ts +3 -0
- package/dist/lib/components/ConfirmHost/ConfirmHost.d.ts.map +1 -1
- package/dist/lib/components/DataTable/DataTable.d.ts +1 -1
- package/dist/lib/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableSelectionBar.d.ts +3 -1
- package/dist/lib/components/DataTable/components/DataTableSelectionBar.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/RowActions.d.ts +1 -0
- package/dist/lib/components/DataTable/components/RowActions.d.ts.map +1 -1
- package/dist/lib/components/DataTable/index.d.ts +2 -2
- package/dist/lib/components/DataTable/index.d.ts.map +1 -1
- package/dist/lib/components/DataTable/types.d.ts +3 -0
- package/dist/lib/components/DataTable/types.d.ts.map +1 -1
- package/dist/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/lib/components/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/lib/components/DetailField/DetailHeader.d.ts +10 -0
- package/dist/lib/components/DetailField/DetailHeader.d.ts.map +1 -0
- package/dist/lib/components/DetailField/index.d.ts +1 -0
- package/dist/lib/components/DetailField/index.d.ts.map +1 -1
- package/dist/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/components/Editor/context/editor-config-context.d.ts +2 -2
- package/dist/lib/components/Editor/context/editor-config-context.d.ts.map +1 -1
- package/dist/lib/components/Editor/context/toolbar-context.d.ts +1 -1
- package/dist/lib/components/Editor/context/toolbar-context.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-hooks/use-debounce.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-hooks/use-modal.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-hooks/use-update-toolbar.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/button-group.d.ts +3 -3
- package/dist/lib/components/Editor/editor-ui/button-group.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/button.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/button.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/code-button.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/color-picker.d.ts +8 -8
- package/dist/lib/components/Editor/editor-ui/color-picker.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/command.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/command.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/content-editable.d.ts +1 -1
- package/dist/lib/components/Editor/editor-ui/content-editable.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/dialog.d.ts +4 -4
- package/dist/lib/components/Editor/editor-ui/dialog.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/image-component.d.ts +3 -3
- package/dist/lib/components/Editor/editor-ui/image-component.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/image-resizer.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/image-resizer.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/input.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/input.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/label.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/label.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/popover.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/popover.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/scroll-area.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/scroll-area.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/select.d.ts +3 -3
- package/dist/lib/components/Editor/editor-ui/select.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/separator.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/separator.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/tabs.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/tabs.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/toggle-group.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/toggle-group.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/toggle.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/toggle.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/tooltip.d.ts +2 -2
- package/dist/lib/components/Editor/editor-ui/tooltip.d.ts.map +1 -1
- package/dist/lib/components/Editor/index.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/autocomplete-node.d.ts +2 -2
- package/dist/lib/components/Editor/nodes/autocomplete-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/embeds/tweet-node.d.ts +2 -2
- package/dist/lib/components/Editor/nodes/embeds/tweet-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/embeds/youtube-node.d.ts +1 -1
- package/dist/lib/components/Editor/nodes/embeds/youtube-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/emoji-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/image-node.d.ts +5 -5
- package/dist/lib/components/Editor/nodes/image-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/keyword-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/layout-container-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/layout-item-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/mention-node.d.ts +1 -1
- package/dist/lib/components/Editor/nodes/mention-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes/nodes.d.ts.map +1 -1
- package/dist/lib/components/Editor/nodes.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/character-limit-plugin.d.ts +2 -2
- package/dist/lib/components/Editor/plugins/actions/character-limit-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/clear-editor-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/counter-character-plugin.d.ts +2 -2
- package/dist/lib/components/Editor/plugins/actions/counter-character-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/edit-mode-toggle-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/import-export-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/markdown-toggle-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/max-length-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/share-content-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/speech-to-text-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/tree-view-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/auto-link-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/autocomplete-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/code-action-menu-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/code-highlight-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/context-menu-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/drag-drop-paste-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/draggable-block-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/draggable-block-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/embeds/auto-embed-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/embeds/auto-embed-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/embeds/twitter-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/embeds/twitter-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/embeds/youtube-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/embeds/youtube-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/emoji-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/emojis-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/floating-link-editor-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/floating-text-format-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/images-plugin.d.ts +4 -4
- package/dist/lib/components/Editor/plugins/images-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/keywords-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/layout-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/layout-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/link-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/list-max-indent-level-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/list-max-indent-level-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/mentions-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/alignment-picker-plugin.d.ts +2 -2
- package/dist/lib/components/Editor/plugins/picker/alignment-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/bulleted-list-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/check-list-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/code-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/columns-layout-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/component-picker-menu-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/component-picker-option.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/picker/component-picker-option.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/divider-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/embeds-picker-plugin.d.ts +2 -2
- package/dist/lib/components/Editor/plugins/picker/embeds-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/heading-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/image-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/numbered-list-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/paragraph-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/quote-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/picker/table-picker-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/picker/table-picker-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/plugins.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/plugins.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/tab-focus-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/table-plugin.d.ts +2 -3
- package/dist/lib/components/Editor/plugins/table-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/block-format/block-format-data.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/block-format/format-heading.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/block-format-toolbar-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/block-format-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-horizontal-rule.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-image.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-table.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/block-insert-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/clear-formatting-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/code-language-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/element-format-toolbar-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/element-format-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/font-background-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/font-color-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/font-family-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/font-format-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/font-size-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/history-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/horizontal-rule-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/image-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/link-toolbar-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/link-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/subsuper-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/table-toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/typing-pref-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins.d.ts.map +1 -1
- package/dist/lib/components/Editor/shared/can-use-dom.d.ts.map +1 -1
- package/dist/lib/components/Editor/shared/caret-from-point.d.ts.map +1 -1
- package/dist/lib/components/Editor/shared/environment.d.ts.map +1 -1
- package/dist/lib/components/Editor/shared/invariant.d.ts +1 -1
- package/dist/lib/components/Editor/shared/invariant.d.ts.map +1 -1
- package/dist/lib/components/Editor/shared/react-test-utils.d.ts +1 -1
- package/dist/lib/components/Editor/shared/react-test-utils.d.ts.map +1 -1
- package/dist/lib/components/Editor/shared/simple-diff-with-cursor.d.ts.map +1 -1
- package/dist/lib/components/Editor/shared/use-layout-effect.d.ts.map +1 -1
- package/dist/lib/components/Editor/themes/editor-theme.d.ts.map +1 -1
- package/dist/lib/components/Editor/transformers/index.d.ts +6 -6
- package/dist/lib/components/Editor/transformers/index.d.ts.map +1 -1
- package/dist/lib/components/Editor/transformers/markdown-emoji-transformer.d.ts.map +1 -1
- package/dist/lib/components/Editor/transformers/markdown-hr-transformer.d.ts.map +1 -1
- package/dist/lib/components/Editor/transformers/markdown-image-transformer.d.ts.map +1 -1
- package/dist/lib/components/Editor/transformers/markdown-table-transformer.d.ts.map +1 -1
- package/dist/lib/components/Editor/transformers/markdown-tweet-transformer.d.ts.map +1 -1
- package/dist/lib/components/Editor/types.d.ts.map +1 -1
- package/dist/lib/components/Editor/utils/can-use-dom.d.ts.map +1 -1
- package/dist/lib/components/Editor/utils/doc-serialization.d.ts.map +1 -1
- package/dist/lib/components/Editor/utils/emoji-list.d.ts.map +1 -1
- package/dist/lib/components/Editor/utils/get-dom-range-rect.d.ts.map +1 -1
- package/dist/lib/components/Editor/utils/get-selected-node.d.ts.map +1 -1
- package/dist/lib/components/Editor/utils/set-floating-elem-position.d.ts.map +1 -1
- package/dist/lib/components/Editor/utils/swipe.d.ts.map +1 -1
- package/dist/lib/components/Editor/utils/url.d.ts.map +1 -1
- package/dist/lib/components/FormattedDate/FormattedDate.d.ts.map +1 -1
- package/dist/lib/components/FormattedDate/index.d.ts +1 -1
- package/dist/lib/components/FormattedDate/index.d.ts.map +1 -1
- package/dist/lib/components/HierarchyGraph/HierarchyGraph.d.ts.map +1 -1
- package/dist/lib/components/Kbd/Kbd.d.ts.map +1 -1
- package/dist/lib/components/Kbd/index.d.ts +1 -1
- package/dist/lib/components/Kbd/index.d.ts.map +1 -1
- package/dist/lib/components/PageContent/PageContent.d.ts.map +1 -1
- package/dist/lib/components/PermissionGate/PermissionGate.d.ts +18 -0
- package/dist/lib/components/PermissionGate/PermissionGate.d.ts.map +1 -0
- package/dist/lib/components/PermissionGate/index.d.ts +2 -0
- package/dist/lib/components/PermissionGate/index.d.ts.map +1 -0
- package/dist/lib/components/PieChart/PieChart.d.ts.map +1 -1
- package/dist/lib/components/RadialChart/RadialChart.d.ts.map +1 -1
- package/dist/lib/components/Select/Select.d.ts.map +1 -1
- package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -1
- package/dist/lib/components/Select/hooks/useSelect.d.ts.map +1 -1
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -0
- package/dist/lib/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/lib/components/Switch/Switch.d.ts +2 -0
- package/dist/lib/components/Switch/Switch.d.ts.map +1 -1
- package/dist/lib/components/Switch/index.d.ts +2 -2
- package/dist/lib/components/Switch/index.d.ts.map +1 -1
- package/dist/lib/components/Tooltip/Tooltip.d.ts +12 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/lib/components/Tooltip/index.d.ts +3 -0
- package/dist/lib/components/Tooltip/index.d.ts.map +1 -0
- package/dist/lib/components/ValueFilter/ValueFilter.d.ts.map +1 -1
- package/dist/lib/components/index.d.ts +5 -3
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/hooks/useFormatters.d.ts.map +1 -1
- package/dist/lib/icons/icon-names.json.d.ts +13731 -0
- package/dist/lib/icons/index.d.ts +4 -0
- package/dist/lib/icons/index.d.ts.map +1 -0
- package/dist/lib/selects/currency/CurrencyFilter.d.ts.map +1 -1
- package/dist/lib/selects/icon/IconSelect.d.ts +20 -0
- package/dist/lib/selects/icon/IconSelect.d.ts.map +1 -0
- package/dist/lib/selects/icon/index.d.ts +2 -0
- package/dist/lib/selects/icon/index.d.ts.map +1 -0
- package/dist/lib/selects/index.d.ts +3 -2
- package/dist/lib/selects/index.d.ts.map +1 -1
- package/dist/lib/selects/location/LocationSelector.d.ts.map +1 -1
- package/dist/lib/selects/location/index.d.ts +1 -1
- package/dist/lib/selects/location/index.d.ts.map +1 -1
- package/dist/lib/selects/purchase-order-item/PurchaseOrderItemSelector.d.ts.map +1 -1
- package/dist/lib/selects/quant/QuantSelector.d.ts.map +1 -1
- package/dist/lib/selects/serial/SerialSelector.d.ts.map +1 -1
- package/dist/lib/selects/supplier-item/SupplierItemSelector.d.ts.map +1 -1
- package/dist/lib/selects/uom/UomSelector.d.ts.map +1 -1
- package/dist/lib/types/catalog-resolver.d.ts +189 -0
- package/dist/lib/types/catalog-resolver.d.ts.map +1 -0
- package/dist/lib/utils/format.d.ts.map +1 -1
- package/dist/lib/utils/hotkeys.d.ts +1 -1
- package/dist/lib/utils/hotkeys.d.ts.map +1 -1
- package/dist/lib/utils/zod.d.ts.map +1 -1
- package/dist/lock-keyhole.js +19 -0
- package/dist/lock-keyhole.js.map +1 -0
- package/dist/panel-left.js +18 -0
- package/dist/panel-left.js.map +1 -0
- package/dist/scan-barcode.js +23 -0
- package/dist/scan-barcode.js.map +1 -0
- package/dist/selects/icon.js +2 -0
- package/dist/selects/icon.js.map +1 -0
- package/dist/selects/purchase-order-item.js.map +1 -1
- package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts.map +1 -1
- package/dist/sun.js +44 -0
- package/dist/sun.js.map +1 -0
- package/dist/table-properties.js +351 -0
- package/dist/table-properties.js.map +1 -0
- package/dist/{tooltip.js → tooltip2.js} +1 -1
- package/dist/tooltip2.js.map +1 -0
- package/dist/types/api-response.js +2 -0
- package/dist/types/api-response.js.map +1 -0
- package/dist/types/catalog-resolver.js +5 -0
- package/dist/types/catalog-resolver.js.map +1 -0
- package/dist/types/table-filter.js +17 -0
- package/dist/types/table-filter.js.map +1 -0
- package/dist/{cells.js → useDataTable.js} +152 -453
- package/dist/useDataTable.js.map +1 -0
- package/dist/useFormatters.js.map +1 -1
- package/dist/user.js +38 -0
- package/dist/user.js.map +1 -0
- package/dist/utils/format.js +1 -0
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/motion.js +2 -2
- package/dist/utils/zod.js.map +1 -1
- package/dist/value.js +1 -1
- package/dist/wifi-off.js +111 -0
- package/dist/wifi-off.js.map +1 -0
- package/dist/youtube.js +737 -0
- package/dist/youtube.js.map +1 -0
- package/package.json +25 -3
- package/dist/cells.js.map +0 -1
- package/dist/tooltip.js.map +0 -1
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { c as cn } from './utils.js';
|
|
3
3
|
import { S as Skeleton } from './Skeleton.js';
|
|
4
|
+
import { a as useFormatters } from './useFormatters.js';
|
|
4
5
|
import { a as useDialog, u as useConfirm } from './useConfirm.js';
|
|
5
6
|
import { B as Button } from './Button.js';
|
|
6
7
|
import { D as Dialog, a as DialogActions } from './Dialog.js';
|
|
7
8
|
import { D as DropdownMenu } from './DropdownMenu.js';
|
|
8
|
-
import {
|
|
9
|
+
import { b as usePermissionGate, l as lockedTip, u as usePermission, a as PermissionLockIcon } from './PermissionGate.js';
|
|
10
|
+
import { A as ArrowDown, a as ArrowUp, I as Inbox, S as Settings, C as ChevronsLeft, b as ChevronsRight, c as Columns2, P as Pin, E as EllipsisVertical, F as FileUp, d as FilePlusCorner, R as RefreshCw, e as Equal, f as ArrowLeft, B as BookmarkPlus, L as LayoutList, g as Settings2, h as Funnel, i as ArrowUpFromLine, j as ArrowDownToLine, T as TableProperties } from './table-properties.js';
|
|
9
11
|
import { useMutation, useQueryClient, useQuery } from '@tanstack/react-query';
|
|
10
12
|
import * as React from 'react';
|
|
11
13
|
import React__default, { useRef, Children, isValidElement, cloneElement, useMemo, useState, useEffect, forwardRef, useCallback, useLayoutEffect } from 'react';
|
|
14
|
+
import { EMPTY_TABLE_STATE } from './types/table-filter.js';
|
|
12
15
|
import { axios } from './utils/axios.js';
|
|
13
16
|
import { E as Empty } from './Empty.js';
|
|
14
17
|
import { b as SortableList, a as SortableItem } from './Sortable.js';
|
|
@@ -23,7 +26,7 @@ import { U as Upload } from './upload.js';
|
|
|
23
26
|
import { T as TextAlignJustify, D as Download } from './text-align-justify.js';
|
|
24
27
|
import { C as CircleCheck } from './circle-check.js';
|
|
25
28
|
import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem } from './select2.js';
|
|
26
|
-
import {
|
|
29
|
+
import { C as ChevronLeft } from './chevron-left.js';
|
|
27
30
|
import { I as Input } from './Input.js';
|
|
28
31
|
import { C as ChevronRight } from './chevron-right.js';
|
|
29
32
|
import { C as Check } from './check.js';
|
|
@@ -42,354 +45,6 @@ import { T as TriangleAlert } from './triangle-alert.js';
|
|
|
42
45
|
import { pluralize } from './utils/pluralize.js';
|
|
43
46
|
import { C as Checkbox } from './Checkbox.js';
|
|
44
47
|
import { g as getConfig } from './index7.js';
|
|
45
|
-
import { a as useFormatters } from './useFormatters.js';
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @license lucide-react v0.562.0 - ISC
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the ISC license.
|
|
51
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const __iconNode$k = [
|
|
56
|
-
["path", { d: "M12 17V3", key: "1cwfxf" }],
|
|
57
|
-
["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
|
|
58
|
-
["path", { d: "M19 21H5", key: "150jfl" }]
|
|
59
|
-
];
|
|
60
|
-
const ArrowDownToLine = createLucideIcon("arrow-down-to-line", __iconNode$k);
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @license lucide-react v0.562.0 - ISC
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the ISC license.
|
|
66
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const __iconNode$j = [
|
|
71
|
-
["path", { d: "M12 5v14", key: "s699le" }],
|
|
72
|
-
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
73
|
-
];
|
|
74
|
-
const ArrowDown = createLucideIcon("arrow-down", __iconNode$j);
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @license lucide-react v0.562.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const __iconNode$i = [
|
|
85
|
-
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
86
|
-
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
87
|
-
];
|
|
88
|
-
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$i);
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @license lucide-react v0.562.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
const __iconNode$h = [
|
|
99
|
-
["path", { d: "m18 9-6-6-6 6", key: "kcunyi" }],
|
|
100
|
-
["path", { d: "M12 3v14", key: "7cf3v8" }],
|
|
101
|
-
["path", { d: "M5 21h14", key: "11awu3" }]
|
|
102
|
-
];
|
|
103
|
-
const ArrowUpFromLine = createLucideIcon("arrow-up-from-line", __iconNode$h);
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @license lucide-react v0.562.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const __iconNode$g = [
|
|
114
|
-
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
115
|
-
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
116
|
-
];
|
|
117
|
-
const ArrowUp = createLucideIcon("arrow-up", __iconNode$g);
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @license lucide-react v0.562.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
const __iconNode$f = [
|
|
128
|
-
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }],
|
|
129
|
-
["line", { x1: "12", x2: "12", y1: "7", y2: "13", key: "1cppfj" }],
|
|
130
|
-
["line", { x1: "15", x2: "9", y1: "10", y2: "10", key: "1gty7f" }]
|
|
131
|
-
];
|
|
132
|
-
const BookmarkPlus = createLucideIcon("bookmark-plus", __iconNode$f);
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @license lucide-react v0.562.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
const __iconNode$e = [
|
|
143
|
-
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
144
|
-
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
145
|
-
];
|
|
146
|
-
const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$e);
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @license lucide-react v0.562.0 - ISC
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the ISC license.
|
|
152
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
const __iconNode$d = [
|
|
157
|
-
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
158
|
-
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
159
|
-
];
|
|
160
|
-
const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$d);
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* @license lucide-react v0.562.0 - ISC
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the ISC license.
|
|
166
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const __iconNode$c = [
|
|
171
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
172
|
-
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
173
|
-
];
|
|
174
|
-
const Columns2 = createLucideIcon("columns-2", __iconNode$c);
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @license lucide-react v0.562.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
const __iconNode$b = [
|
|
185
|
-
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
186
|
-
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
187
|
-
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
188
|
-
];
|
|
189
|
-
const EllipsisVertical = createLucideIcon("ellipsis-vertical", __iconNode$b);
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* @license lucide-react v0.562.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
const __iconNode$a = [
|
|
200
|
-
["line", { x1: "5", x2: "19", y1: "9", y2: "9", key: "1nwqeh" }],
|
|
201
|
-
["line", { x1: "5", x2: "19", y1: "15", y2: "15", key: "g8yjpy" }]
|
|
202
|
-
];
|
|
203
|
-
const Equal = createLucideIcon("equal", __iconNode$a);
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @license lucide-react v0.562.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
const __iconNode$9 = [
|
|
214
|
-
[
|
|
215
|
-
"path",
|
|
216
|
-
{
|
|
217
|
-
d: "M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",
|
|
218
|
-
key: "17jvcc"
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
222
|
-
["path", { d: "M14 19h6", key: "bvotb8" }],
|
|
223
|
-
["path", { d: "M17 16v6", key: "18yu1i" }]
|
|
224
|
-
];
|
|
225
|
-
const FilePlusCorner = createLucideIcon("file-plus-corner", __iconNode$9);
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @license lucide-react v0.562.0 - ISC
|
|
229
|
-
*
|
|
230
|
-
* This source code is licensed under the ISC license.
|
|
231
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
-
*/
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
const __iconNode$8 = [
|
|
236
|
-
[
|
|
237
|
-
"path",
|
|
238
|
-
{
|
|
239
|
-
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
240
|
-
key: "1oefj6"
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
244
|
-
["path", { d: "M12 12v6", key: "3ahymv" }],
|
|
245
|
-
["path", { d: "m15 15-3-3-3 3", key: "15xj92" }]
|
|
246
|
-
];
|
|
247
|
-
const FileUp = createLucideIcon("file-up", __iconNode$8);
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* @license lucide-react v0.562.0 - ISC
|
|
251
|
-
*
|
|
252
|
-
* This source code is licensed under the ISC license.
|
|
253
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
-
*/
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
const __iconNode$7 = [
|
|
258
|
-
[
|
|
259
|
-
"path",
|
|
260
|
-
{
|
|
261
|
-
d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
|
|
262
|
-
key: "sc7q7i"
|
|
263
|
-
}
|
|
264
|
-
]
|
|
265
|
-
];
|
|
266
|
-
const Funnel = createLucideIcon("funnel", __iconNode$7);
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* @license lucide-react v0.562.0 - ISC
|
|
270
|
-
*
|
|
271
|
-
* This source code is licensed under the ISC license.
|
|
272
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
-
*/
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
const __iconNode$6 = [
|
|
277
|
-
["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }],
|
|
278
|
-
[
|
|
279
|
-
"path",
|
|
280
|
-
{
|
|
281
|
-
d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",
|
|
282
|
-
key: "oot6mr"
|
|
283
|
-
}
|
|
284
|
-
]
|
|
285
|
-
];
|
|
286
|
-
const Inbox = createLucideIcon("inbox", __iconNode$6);
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* @license lucide-react v0.562.0 - ISC
|
|
290
|
-
*
|
|
291
|
-
* This source code is licensed under the ISC license.
|
|
292
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
-
*/
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
const __iconNode$5 = [
|
|
297
|
-
["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
|
|
298
|
-
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
299
|
-
["path", { d: "M14 4h7", key: "3xa0d5" }],
|
|
300
|
-
["path", { d: "M14 9h7", key: "1icrd9" }],
|
|
301
|
-
["path", { d: "M14 15h7", key: "1mj8o2" }],
|
|
302
|
-
["path", { d: "M14 20h7", key: "11slyb" }]
|
|
303
|
-
];
|
|
304
|
-
const LayoutList = createLucideIcon("layout-list", __iconNode$5);
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* @license lucide-react v0.562.0 - ISC
|
|
308
|
-
*
|
|
309
|
-
* This source code is licensed under the ISC license.
|
|
310
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
const __iconNode$4 = [
|
|
315
|
-
["path", { d: "M12 17v5", key: "bb1du9" }],
|
|
316
|
-
[
|
|
317
|
-
"path",
|
|
318
|
-
{
|
|
319
|
-
d: "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",
|
|
320
|
-
key: "1nkz8b"
|
|
321
|
-
}
|
|
322
|
-
]
|
|
323
|
-
];
|
|
324
|
-
const Pin = createLucideIcon("pin", __iconNode$4);
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @license lucide-react v0.562.0 - ISC
|
|
328
|
-
*
|
|
329
|
-
* This source code is licensed under the ISC license.
|
|
330
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
const __iconNode$3 = [
|
|
335
|
-
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
336
|
-
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
337
|
-
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
338
|
-
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
339
|
-
];
|
|
340
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$3);
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* @license lucide-react v0.562.0 - ISC
|
|
344
|
-
*
|
|
345
|
-
* This source code is licensed under the ISC license.
|
|
346
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
const __iconNode$2 = [
|
|
351
|
-
[
|
|
352
|
-
"path",
|
|
353
|
-
{
|
|
354
|
-
d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
|
|
355
|
-
key: "1i5ecw"
|
|
356
|
-
}
|
|
357
|
-
],
|
|
358
|
-
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
359
|
-
];
|
|
360
|
-
const Settings = createLucideIcon("settings", __iconNode$2);
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* @license lucide-react v0.562.0 - ISC
|
|
364
|
-
*
|
|
365
|
-
* This source code is licensed under the ISC license.
|
|
366
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
367
|
-
*/
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
const __iconNode$1 = [
|
|
371
|
-
["path", { d: "M14 17H5", key: "gfn3mx" }],
|
|
372
|
-
["path", { d: "M19 7h-9", key: "6i9tg" }],
|
|
373
|
-
["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
|
|
374
|
-
["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
|
|
375
|
-
];
|
|
376
|
-
const Settings2 = createLucideIcon("settings-2", __iconNode$1);
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* @license lucide-react v0.562.0 - ISC
|
|
380
|
-
*
|
|
381
|
-
* This source code is licensed under the ISC license.
|
|
382
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
383
|
-
*/
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
const __iconNode = [
|
|
387
|
-
["path", { d: "M15 3v18", key: "14nvp0" }],
|
|
388
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
389
|
-
["path", { d: "M21 9H3", key: "1338ky" }],
|
|
390
|
-
["path", { d: "M21 15H3", key: "9uk58r" }]
|
|
391
|
-
];
|
|
392
|
-
const TableProperties = createLucideIcon("table-properties", __iconNode);
|
|
393
48
|
|
|
394
49
|
const DEFAULT_COLUMNS = [
|
|
395
50
|
{ headerWidth: "w-20", cellWidth: "w-28" },
|
|
@@ -436,6 +91,35 @@ const CompactTableSkeleton = ({
|
|
|
436
91
|
] }) });
|
|
437
92
|
};
|
|
438
93
|
|
|
94
|
+
const StringCell = ({ value, mono, className }) => {
|
|
95
|
+
const fmt = useFormatters();
|
|
96
|
+
const { primary } = fmt.string(value);
|
|
97
|
+
return /* @__PURE__ */ jsx("span", { className: [mono ? "font-mono" : "", className].filter(Boolean).join(" ") || void 0, children: primary });
|
|
98
|
+
};
|
|
99
|
+
const NumberCell = ({ value, fractionDigits, className }) => {
|
|
100
|
+
const fmt = useFormatters();
|
|
101
|
+
const { primary } = fmt.number(value, { fractionDigits });
|
|
102
|
+
return /* @__PURE__ */ jsx("span", { className: ["font-mono", className].filter(Boolean).join(" "), children: primary });
|
|
103
|
+
};
|
|
104
|
+
const CurrencyCell = ({ value, exchangeRate, className }) => {
|
|
105
|
+
const fmt = useFormatters();
|
|
106
|
+
const { primary, secondary } = fmt.currency(value, { exchangeRate });
|
|
107
|
+
return /* @__PURE__ */ jsxs("span", { className: ["font-mono", className].filter(Boolean).join(" "), children: [
|
|
108
|
+
primary,
|
|
109
|
+
secondary && /* @__PURE__ */ jsx("span", { className: "ml-1 text-xs text-muted-foreground", children: secondary })
|
|
110
|
+
] });
|
|
111
|
+
};
|
|
112
|
+
const DateCell = ({ value, className }) => {
|
|
113
|
+
const fmt = useFormatters();
|
|
114
|
+
const { primary } = fmt.date(value);
|
|
115
|
+
return /* @__PURE__ */ jsx("span", { className, children: primary });
|
|
116
|
+
};
|
|
117
|
+
const DateTimeCell = ({ value, timeZone, className }) => {
|
|
118
|
+
const fmt = useFormatters();
|
|
119
|
+
const { primary } = fmt.dateTime(value, { timeZone });
|
|
120
|
+
return /* @__PURE__ */ jsx("span", { className, children: primary });
|
|
121
|
+
};
|
|
122
|
+
|
|
439
123
|
function DataTableColumnHeader({
|
|
440
124
|
column,
|
|
441
125
|
title,
|
|
@@ -1131,21 +815,6 @@ const createImpl = (createState) => {
|
|
|
1131
815
|
};
|
|
1132
816
|
const create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
1133
817
|
|
|
1134
|
-
const EMPTY_TABLE_STATE = {
|
|
1135
|
-
filters: [],
|
|
1136
|
-
sort: [],
|
|
1137
|
-
columnVisibility: {},
|
|
1138
|
-
columnOrder: [],
|
|
1139
|
-
columnSizing: {},
|
|
1140
|
-
columnPinning: { left: [], right: [] },
|
|
1141
|
-
lockedColumnSizing: false,
|
|
1142
|
-
density: "normal",
|
|
1143
|
-
filterOrder: [],
|
|
1144
|
-
filterVisibility: {},
|
|
1145
|
-
search: null,
|
|
1146
|
-
pagination: { limit: 20, offset: 0 }
|
|
1147
|
-
};
|
|
1148
|
-
|
|
1149
818
|
const MAX_TABLES = 20;
|
|
1150
819
|
function viewStatesEqual(a, b) {
|
|
1151
820
|
return deepEqual(a, b);
|
|
@@ -17817,7 +17486,9 @@ function DataTableSelectionBar({
|
|
|
17817
17486
|
table,
|
|
17818
17487
|
children,
|
|
17819
17488
|
className,
|
|
17820
|
-
importExport
|
|
17489
|
+
importExport,
|
|
17490
|
+
exportHidden,
|
|
17491
|
+
exportLockTip
|
|
17821
17492
|
}) {
|
|
17822
17493
|
const meta = table.options.meta;
|
|
17823
17494
|
const selectedRows = table.getFilteredSelectedRowModel().rows;
|
|
@@ -17836,7 +17507,18 @@ function DataTableSelectionBar({
|
|
|
17836
17507
|
" selected"
|
|
17837
17508
|
] }),
|
|
17838
17509
|
children,
|
|
17839
|
-
/* @__PURE__ */ jsx("div", { className: "ml-auto flex items-center gap-2", children:
|
|
17510
|
+
/* @__PURE__ */ jsx("div", { className: "ml-auto flex items-center gap-2", children: exportHidden ? null : exportLockTip ? /* @__PURE__ */ jsx(
|
|
17511
|
+
Button,
|
|
17512
|
+
{
|
|
17513
|
+
variant: "outline",
|
|
17514
|
+
size: "sm",
|
|
17515
|
+
className: "h-8 text-sm",
|
|
17516
|
+
disabled: true,
|
|
17517
|
+
disabledTip: exportLockTip,
|
|
17518
|
+
startAdornment: /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }),
|
|
17519
|
+
children: "Export"
|
|
17520
|
+
}
|
|
17521
|
+
) : importExport ? /* @__PURE__ */ jsx(
|
|
17840
17522
|
DropdownMenu,
|
|
17841
17523
|
{
|
|
17842
17524
|
trigger: { label: "Export", variant: "outline", icon: Download, className: "h-8 text-sm" },
|
|
@@ -18033,6 +17715,7 @@ const DirectAction = ({ action, disabledAll }) => {
|
|
|
18033
17715
|
size: "icon",
|
|
18034
17716
|
className: `size-7 ${destructiveClass}`,
|
|
18035
17717
|
disabled: disabledAll || action.disabled,
|
|
17718
|
+
disabledTip: action.lockTip,
|
|
18036
17719
|
onClick: open,
|
|
18037
17720
|
"aria-label": action.label,
|
|
18038
17721
|
children: /* @__PURE__ */ jsx(Icon, { className: "size-4" })
|
|
@@ -18049,6 +17732,7 @@ const DirectAction = ({ action, disabledAll }) => {
|
|
|
18049
17732
|
size: "icon",
|
|
18050
17733
|
className: `size-7 ${destructiveClass}`,
|
|
18051
17734
|
disabled: disabledAll || action.disabled,
|
|
17735
|
+
disabledTip: action.lockTip,
|
|
18052
17736
|
onClick: action.onClick,
|
|
18053
17737
|
"aria-label": action.label,
|
|
18054
17738
|
children: /* @__PURE__ */ jsx(Icon, { className: "size-4" })
|
|
@@ -18080,7 +17764,15 @@ function toDropdownItems(actions, disabledAll) {
|
|
|
18080
17764
|
});
|
|
18081
17765
|
}
|
|
18082
17766
|
const RowActions = ({ actions, disabledAll }) => {
|
|
18083
|
-
const
|
|
17767
|
+
const gate = usePermissionGate();
|
|
17768
|
+
const resolved = actions.map((action) => {
|
|
17769
|
+
if (!action.permission) return action;
|
|
17770
|
+
const result = gate(action.permission);
|
|
17771
|
+
if (!result.granted) return { ...action, hidden: true };
|
|
17772
|
+
if (result.locked) return { ...action, disabled: true, lockTip: lockedTip(result) };
|
|
17773
|
+
return action;
|
|
17774
|
+
});
|
|
17775
|
+
const visible = resolved.filter((a) => !a.hidden);
|
|
18084
17776
|
if (visible.length === 0) return null;
|
|
18085
17777
|
if (visible.length === 1) {
|
|
18086
17778
|
return /* @__PURE__ */ jsx(DirectAction, { action: visible[0], disabledAll });
|
|
@@ -22136,10 +21828,14 @@ function DataTable({
|
|
|
22136
21828
|
importExport,
|
|
22137
21829
|
mode = "page",
|
|
22138
21830
|
onRowClick,
|
|
22139
|
-
selectedRowId
|
|
21831
|
+
selectedRowId,
|
|
21832
|
+
permission
|
|
22140
21833
|
}) {
|
|
22141
21834
|
const [filtersOpen, setFiltersOpen] = useState(false);
|
|
22142
21835
|
const importDialog = useDialog();
|
|
21836
|
+
const tableGate = usePermission(permission);
|
|
21837
|
+
const importGate = usePermission(importExport?.importPermission);
|
|
21838
|
+
const exportGate = usePermission(importExport?.exportPermission);
|
|
22143
21839
|
const meta = table.options.meta;
|
|
22144
21840
|
const slug = meta?.slug;
|
|
22145
21841
|
const appliedFilterCount = useDataTableStore((s) => slug ? s.tables[slug]?.activeState?.filters?.length ?? 0 : 0);
|
|
@@ -22148,7 +21844,9 @@ function DataTable({
|
|
|
22148
21844
|
const density = meta?.density ?? "normal";
|
|
22149
21845
|
const columnCount = table.getAllColumns().length;
|
|
22150
21846
|
const visibilityEnabled = table.options.enableHiding !== false;
|
|
22151
|
-
const
|
|
21847
|
+
const showImport = !!importExport && importGate.granted;
|
|
21848
|
+
const showExport = !!importExport && exportGate.granted;
|
|
21849
|
+
const showToolbar = searchConfig || visibilityEnabled || toolbarActions || filters || enableViews && slug || showImport || showExport;
|
|
22152
21850
|
const search = meta?.search ?? null;
|
|
22153
21851
|
const hasActiveView = !!activeViewId;
|
|
22154
21852
|
const hasActiveFilters = hasActiveView ? !!meta?.isFiltersDirty : appliedFilterCount > 0;
|
|
@@ -22171,6 +21869,22 @@ function DataTable({
|
|
|
22171
21869
|
downloadBlob(response.data, `${importExport.filename}.${format}`);
|
|
22172
21870
|
}
|
|
22173
21871
|
});
|
|
21872
|
+
if (!tableGate.granted) {
|
|
21873
|
+
return null;
|
|
21874
|
+
}
|
|
21875
|
+
if (tableGate.locked) {
|
|
21876
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-2", className), children: /* @__PURE__ */ jsxs(
|
|
21877
|
+
"div",
|
|
21878
|
+
{
|
|
21879
|
+
className: "flex flex-col items-center justify-center gap-2 rounded-lg border text-center",
|
|
21880
|
+
style: { height: MODE_HEIGHTS[mode] },
|
|
21881
|
+
children: [
|
|
21882
|
+
/* @__PURE__ */ jsx(PermissionLockIcon, { reason: tableGate.reason, className: "size-6" }),
|
|
21883
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: lockedTip(tableGate) })
|
|
21884
|
+
]
|
|
21885
|
+
}
|
|
21886
|
+
) });
|
|
21887
|
+
}
|
|
22174
21888
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-2", className), children: [
|
|
22175
21889
|
showToolbar && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
22176
21890
|
/* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1", children: enableViews && slug && /* @__PURE__ */ jsx(DataTableViewTabs, { slug }) }),
|
|
@@ -22201,63 +21915,68 @@ function DataTable({
|
|
|
22201
21915
|
visibilityEnabled && /* @__PURE__ */ jsx(DataTableViewOptions, { table }),
|
|
22202
21916
|
/* @__PURE__ */ jsx(DataTableRowDensity, { table }),
|
|
22203
21917
|
enableViews && slug && /* @__PURE__ */ jsx(DataTableViewsMenu, { slug }),
|
|
22204
|
-
|
|
21918
|
+
(showImport || showExport) && /* @__PURE__ */ jsx(
|
|
22205
21919
|
DropdownMenu,
|
|
22206
21920
|
{
|
|
22207
21921
|
trigger: {
|
|
22208
21922
|
children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", className: "h-8 w-8 p-0", "aria-label": "Import / Export", children: /* @__PURE__ */ jsx(TableProperties, { className: "h-4 w-4" }) })
|
|
22209
21923
|
},
|
|
22210
21924
|
items: [
|
|
22211
|
-
|
|
22212
|
-
|
|
22213
|
-
|
|
22214
|
-
|
|
22215
|
-
|
|
22216
|
-
|
|
22217
|
-
|
|
22218
|
-
|
|
22219
|
-
|
|
22220
|
-
|
|
22221
|
-
|
|
22222
|
-
|
|
22223
|
-
|
|
22224
|
-
|
|
22225
|
-
|
|
22226
|
-
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
|
|
22232
|
-
|
|
22233
|
-
|
|
22234
|
-
|
|
22235
|
-
|
|
22236
|
-
|
|
22237
|
-
|
|
22238
|
-
|
|
22239
|
-
|
|
22240
|
-
|
|
22241
|
-
|
|
22242
|
-
|
|
22243
|
-
|
|
22244
|
-
|
|
22245
|
-
|
|
22246
|
-
|
|
22247
|
-
|
|
22248
|
-
|
|
22249
|
-
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
|
|
21925
|
+
...showImport ? [
|
|
21926
|
+
{
|
|
21927
|
+
type: "item",
|
|
21928
|
+
id: "import",
|
|
21929
|
+
label: "Import",
|
|
21930
|
+
icon: ArrowUpFromLine,
|
|
21931
|
+
disabled: importGate.locked,
|
|
21932
|
+
onClick: importDialog.open
|
|
21933
|
+
}
|
|
21934
|
+
] : [],
|
|
21935
|
+
...showExport ? [
|
|
21936
|
+
{
|
|
21937
|
+
type: "sub",
|
|
21938
|
+
id: "export",
|
|
21939
|
+
label: "Export All",
|
|
21940
|
+
icon: ArrowDownToLine,
|
|
21941
|
+
items: [
|
|
21942
|
+
{
|
|
21943
|
+
type: "item",
|
|
21944
|
+
id: "csv",
|
|
21945
|
+
label: "CSV (.csv)",
|
|
21946
|
+
disabled: exportMutation.isPending || exportGate.locked,
|
|
21947
|
+
onClick: () => exportMutation.mutate("csv")
|
|
21948
|
+
},
|
|
21949
|
+
{
|
|
21950
|
+
type: "item",
|
|
21951
|
+
id: "xlsx",
|
|
21952
|
+
label: "Excel (.xlsx)",
|
|
21953
|
+
disabled: exportMutation.isPending || exportGate.locked,
|
|
21954
|
+
onClick: () => exportMutation.mutate("xlsx")
|
|
21955
|
+
},
|
|
21956
|
+
{
|
|
21957
|
+
type: "item",
|
|
21958
|
+
id: "xls",
|
|
21959
|
+
label: "Excel 97-2004 (.xls)",
|
|
21960
|
+
disabled: exportMutation.isPending || exportGate.locked,
|
|
21961
|
+
onClick: () => exportMutation.mutate("xls")
|
|
21962
|
+
},
|
|
21963
|
+
{
|
|
21964
|
+
type: "item",
|
|
21965
|
+
id: "ods",
|
|
21966
|
+
label: "OpenDocument (.ods)",
|
|
21967
|
+
disabled: exportMutation.isPending || exportGate.locked,
|
|
21968
|
+
onClick: () => exportMutation.mutate("ods")
|
|
21969
|
+
},
|
|
21970
|
+
{
|
|
21971
|
+
type: "item",
|
|
21972
|
+
id: "tsv",
|
|
21973
|
+
label: "TSV (.tsv)",
|
|
21974
|
+
disabled: exportMutation.isPending || exportGate.locked,
|
|
21975
|
+
onClick: () => exportMutation.mutate("tsv")
|
|
21976
|
+
}
|
|
21977
|
+
]
|
|
21978
|
+
}
|
|
21979
|
+
] : []
|
|
22261
21980
|
]
|
|
22262
21981
|
}
|
|
22263
21982
|
),
|
|
@@ -22273,7 +21992,16 @@ function DataTable({
|
|
|
22273
21992
|
animate: { height: "auto", opacity: 1 },
|
|
22274
21993
|
exit: { height: 0, opacity: 0 },
|
|
22275
21994
|
transition: { duration: 0.3, ease: [0.4, 0, 0.2, 1] },
|
|
22276
|
-
children: /* @__PURE__ */ jsx(
|
|
21995
|
+
children: /* @__PURE__ */ jsx(
|
|
21996
|
+
DataTableSelectionBar,
|
|
21997
|
+
{
|
|
21998
|
+
table,
|
|
21999
|
+
importExport,
|
|
22000
|
+
exportHidden: !exportGate.granted,
|
|
22001
|
+
exportLockTip: exportGate.locked ? lockedTip(exportGate) : void 0,
|
|
22002
|
+
children: selectActions?.(table.getFilteredSelectedRowModel().rows)
|
|
22003
|
+
}
|
|
22004
|
+
)
|
|
22277
22005
|
},
|
|
22278
22006
|
"selection"
|
|
22279
22007
|
) : filters && filtersOpen ? /* @__PURE__ */ jsx(
|
|
@@ -22407,7 +22135,7 @@ function DataTable({
|
|
|
22407
22135
|
] })
|
|
22408
22136
|
] }),
|
|
22409
22137
|
(mode !== "compact" || table.getRowCount() > (table.getState().pagination?.pageSize ?? 20)) && /* @__PURE__ */ jsx(DataTablePagination, { table }),
|
|
22410
|
-
importExport && /* @__PURE__ */ jsx(
|
|
22138
|
+
importExport && showImport && /* @__PURE__ */ jsx(
|
|
22411
22139
|
DataTableImportDialog,
|
|
22412
22140
|
{
|
|
22413
22141
|
handle: importDialog,
|
|
@@ -22662,34 +22390,5 @@ function useDataTable({
|
|
|
22662
22390
|
return { table };
|
|
22663
22391
|
}
|
|
22664
22392
|
|
|
22665
|
-
const StringCell = ({ value, mono, className }) => {
|
|
22666
|
-
const fmt = useFormatters();
|
|
22667
|
-
const { primary } = fmt.string(value);
|
|
22668
|
-
return /* @__PURE__ */ jsx("span", { className: [mono ? "font-mono" : "", className].filter(Boolean).join(" ") || void 0, children: primary });
|
|
22669
|
-
};
|
|
22670
|
-
const NumberCell = ({ value, fractionDigits, className }) => {
|
|
22671
|
-
const fmt = useFormatters();
|
|
22672
|
-
const { primary } = fmt.number(value, { fractionDigits });
|
|
22673
|
-
return /* @__PURE__ */ jsx("span", { className: ["font-mono", className].filter(Boolean).join(" "), children: primary });
|
|
22674
|
-
};
|
|
22675
|
-
const CurrencyCell = ({ value, exchangeRate, className }) => {
|
|
22676
|
-
const fmt = useFormatters();
|
|
22677
|
-
const { primary, secondary } = fmt.currency(value, { exchangeRate });
|
|
22678
|
-
return /* @__PURE__ */ jsxs("span", { className: ["font-mono", className].filter(Boolean).join(" "), children: [
|
|
22679
|
-
primary,
|
|
22680
|
-
secondary && /* @__PURE__ */ jsx("span", { className: "ml-1 text-xs text-muted-foreground", children: secondary })
|
|
22681
|
-
] });
|
|
22682
|
-
};
|
|
22683
|
-
const DateCell = ({ value, className }) => {
|
|
22684
|
-
const fmt = useFormatters();
|
|
22685
|
-
const { primary } = fmt.date(value);
|
|
22686
|
-
return /* @__PURE__ */ jsx("span", { className, children: primary });
|
|
22687
|
-
};
|
|
22688
|
-
const DateTimeCell = ({ value, timeZone, className }) => {
|
|
22689
|
-
const fmt = useFormatters();
|
|
22690
|
-
const { primary } = fmt.dateTime(value, { timeZone });
|
|
22691
|
-
return /* @__PURE__ */ jsx("span", { className, children: primary });
|
|
22692
|
-
};
|
|
22693
|
-
|
|
22694
22393
|
export { CompactTableSkeleton as C, DataTable as D, NumberCell as N, RowActions as R, StringCell as S, CurrencyCell as a, DataTableColumnHeader as b, DataTableEmpty as c, DataTableFilters as d, DataTablePagination as e, DataTableRowDensity as f, DataTableSearch as g, DataTableSelectionBar as h, DataTableViewOptions as i, DateCell as j, DateTimeCell as k, exportToCSV as l, getSelectionColumn as m, useDataTableStore as n, useDataTable as u };
|
|
22695
|
-
//# sourceMappingURL=
|
|
22394
|
+
//# sourceMappingURL=useDataTable.js.map
|