@cascivo/react 0.13.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/accordion/accordion.css +1 -1
- package/dist/accordion/accordion.js +81 -65
- package/dist/accordion/accordion.module.js +6 -9
- package/dist/action-sheet/action-sheet.js +11 -11
- package/dist/action-sheet/action-sheet.module.js +0 -2
- package/dist/alert/alert.module.js +0 -2
- package/dist/alert-dialog/alert-dialog.css +1 -1
- package/dist/alert-dialog/alert-dialog.js +6 -6
- package/dist/alert-dialog/alert-dialog.module.js +7 -9
- package/dist/app-shell/app-shell.js +10 -10
- package/dist/app-shell/app-shell.module.js +0 -2
- package/dist/aspect-ratio/aspect-ratio.js +1 -3
- package/dist/aspect-ratio/aspect-ratio.module.js +0 -2
- package/dist/avatar/avatar.module.js +0 -2
- package/dist/avatar-group/avatar-group.js +1 -3
- package/dist/avatar-group/avatar-group.module.js +0 -2
- package/dist/badge/badge.js +1 -3
- package/dist/badge/badge.module.js +0 -2
- package/dist/blockquote/blockquote.js +1 -3
- package/dist/blockquote/blockquote.module.js +0 -2
- package/dist/bottom-sheet/bottom-sheet.js +12 -12
- package/dist/bottom-sheet/bottom-sheet.module.js +0 -2
- package/dist/breadcrumb/breadcrumb.module.js +0 -2
- package/dist/button/button.js +1 -3
- package/dist/button/button.module.js +0 -2
- package/dist/button-group/button-group.js +6 -6
- package/dist/button-group/button-group.module.js +0 -2
- package/dist/calendar/calendar.module.js +0 -2
- package/dist/card/card.js +1 -3
- package/dist/card/card.module.js +0 -2
- package/dist/carousel/carousel.js +9 -9
- package/dist/carousel/carousel.module.js +0 -2
- package/dist/chat-bubble/chat-bubble.js +0 -2
- package/dist/chat-bubble/chat-bubble.module.js +0 -2
- package/dist/checkbox/checkbox.js +10 -10
- package/dist/checkbox/checkbox.module.js +0 -2
- package/dist/checkbox-card/checkbox-card.js +5 -5
- package/dist/checkbox-card/checkbox-card.module.js +0 -2
- package/dist/code/code.js +1 -3
- package/dist/code/code.module.js +0 -2
- package/dist/code-snippet/code-snippet.module.js +0 -2
- package/dist/code-snippet/highlight.js +0 -2
- package/dist/collapsible/collapsible.css +1 -1
- package/dist/collapsible/collapsible.js +36 -31
- package/dist/collapsible/collapsible.module.js +3 -6
- package/dist/color-picker/color-picker.js +7 -7
- package/dist/color-picker/color-picker.module.js +0 -2
- package/dist/combobox/combobox.css +1 -1
- package/dist/combobox/combobox.js +11 -11
- package/dist/combobox/combobox.module.js +15 -17
- package/dist/command-menu/command-menu.js +113 -113
- package/dist/command-menu/command-menu.module.js +0 -2
- package/dist/comparison/comparison.js +5 -5
- package/dist/comparison/comparison.module.js +0 -2
- package/dist/contained-list/contained-list.module.js +0 -2
- package/dist/context-menu/context-menu.js +6 -6
- package/dist/context-menu/context-menu.module.js +0 -2
- package/dist/copy-button/copy-button.js +7 -7
- package/dist/copy-button/copy-button.module.js +0 -2
- package/dist/data-list/data-list.js +1 -3
- package/dist/data-list/data-list.module.js +0 -2
- package/dist/data-table/data-table.css +1 -1
- package/dist/data-table/data-table.js +164 -164
- package/dist/data-table/data-table.module.js +29 -31
- package/dist/date-picker/date-picker.css +1 -1
- package/dist/date-picker/date-picker.js +24 -24
- package/dist/date-picker/date-picker.module.js +19 -21
- package/dist/date-range-picker/date-range-picker.js +30 -30
- package/dist/date-range-picker/date-range-picker.module.js +0 -2
- package/dist/dock/dock.module.js +0 -2
- package/dist/drawer/drawer.js +11 -11
- package/dist/drawer/drawer.module.js +0 -2
- package/dist/dropdown/dropdown.js +14 -14
- package/dist/dropdown/dropdown.module.js +0 -2
- package/dist/editable/editable.css +1 -1
- package/dist/editable/editable.js +8 -8
- package/dist/editable/editable.module.js +7 -9
- package/dist/empty-state/empty-state.js +1 -3
- package/dist/empty-state/empty-state.module.js +0 -2
- package/dist/fab/fab.js +12 -12
- package/dist/fab/fab.module.js +0 -2
- package/dist/field/field.js +1 -3
- package/dist/field/field.module.js +0 -2
- package/dist/file-uploader/file-uploader.css +1 -1
- package/dist/file-uploader/file-uploader.js +5 -5
- package/dist/file-uploader/file-uploader.module.js +14 -16
- package/dist/filter/filter.module.js +0 -2
- package/dist/form/form.module.js +0 -2
- package/dist/header/header.module.js +0 -2
- package/dist/header-panel/header-panel.js +8 -8
- package/dist/header-panel/header-panel.module.js +0 -2
- package/dist/heading/heading.js +1 -3
- package/dist/heading/heading.module.js +0 -2
- package/dist/hover-card/hover-card.js +18 -18
- package/dist/hover-card/hover-card.module.js +0 -2
- package/dist/icon-button/icon-button.js +1 -3
- package/dist/icon-button/icon-button.module.js +0 -2
- package/dist/image/image.module.js +0 -2
- package/dist/index.d.ts +151 -24
- package/dist/index.js +0 -1
- package/dist/indicator/indicator.js +0 -2
- package/dist/indicator/indicator.module.js +0 -2
- package/dist/inline-loading/inline-loading.js +1 -3
- package/dist/inline-loading/inline-loading.module.js +0 -2
- package/dist/input/input.js +11 -11
- package/dist/input/input.module.js +0 -2
- package/dist/input-group/input-group.js +1 -3
- package/dist/input-group/input-group.module.js +0 -2
- package/dist/item/item.js +1 -3
- package/dist/item/item.module.js +0 -2
- package/dist/join/join.js +0 -2
- package/dist/join/join.module.js +0 -2
- package/dist/kbd/kbd.js +1 -3
- package/dist/kbd/kbd.module.js +0 -2
- package/dist/label/label.js +1 -3
- package/dist/label/label.module.js +0 -2
- package/dist/layouts/src/auto-grid/auto-grid.js +1 -3
- package/dist/layouts/src/auto-grid/auto-grid.module.js +0 -2
- package/dist/layouts/src/center/center.js +1 -3
- package/dist/layouts/src/center/center.module.js +0 -2
- package/dist/layouts/src/columns/columns.js +1 -3
- package/dist/layouts/src/columns/columns.module.js +0 -2
- package/dist/layouts/src/flex/flex.js +1 -3
- package/dist/layouts/src/flex/flex.module.js +0 -2
- package/dist/layouts/src/grid/grid.js +1 -3
- package/dist/layouts/src/grid/grid.module.js +0 -2
- package/dist/layouts/src/page-header/page-header.css +1 -1
- package/dist/layouts/src/page-header/page-header.js +1 -3
- package/dist/layouts/src/page-header/page-header.module.js +6 -8
- package/dist/layouts/src/spacer/spacer.js +1 -3
- package/dist/layouts/src/spacer/spacer.module.js +0 -2
- package/dist/link/link.js +1 -3
- package/dist/link/link.module.js +0 -2
- package/dist/list/list.js +1 -3
- package/dist/list/list.module.js +0 -2
- package/dist/log-viewer/log-viewer.js +15 -15
- package/dist/log-viewer/log-viewer.module.js +0 -2
- package/dist/menu/menu.js +22 -21
- package/dist/menu/menu.module.js +0 -2
- package/dist/menu-button/menu-button.js +8 -8
- package/dist/menu-button/menu-button.module.js +0 -2
- package/dist/menubar/menubar.js +24 -24
- package/dist/menubar/menubar.module.js +0 -2
- package/dist/modal/modal.js +9 -9
- package/dist/modal/modal.module.js +0 -2
- package/dist/multi-select/multi-select.css +1 -1
- package/dist/multi-select/multi-select.js +8 -8
- package/dist/multi-select/multi-select.module.js +11 -13
- package/dist/native-select/native-select.js +1 -3
- package/dist/native-select/native-select.module.js +0 -2
- package/dist/navigation-menu/navigation-menu.js +26 -26
- package/dist/navigation-menu/navigation-menu.module.js +0 -2
- package/dist/node/accordion/accordion.js +81 -65
- package/dist/node/accordion/accordion.module.js +6 -9
- package/dist/node/action-sheet/action-sheet.js +11 -11
- package/dist/node/action-sheet/action-sheet.module.js +0 -2
- package/dist/node/alert/alert.module.js +0 -2
- package/dist/node/alert-dialog/alert-dialog.js +6 -6
- package/dist/node/alert-dialog/alert-dialog.module.js +7 -9
- package/dist/node/app-shell/app-shell.js +10 -10
- package/dist/node/app-shell/app-shell.module.js +0 -2
- package/dist/node/aspect-ratio/aspect-ratio.js +1 -3
- package/dist/node/aspect-ratio/aspect-ratio.module.js +0 -2
- package/dist/node/avatar/avatar.module.js +0 -2
- package/dist/node/avatar-group/avatar-group.js +1 -3
- package/dist/node/avatar-group/avatar-group.module.js +0 -2
- package/dist/node/badge/badge.js +1 -3
- package/dist/node/badge/badge.module.js +0 -2
- package/dist/node/blockquote/blockquote.js +1 -3
- package/dist/node/blockquote/blockquote.module.js +0 -2
- package/dist/node/bottom-sheet/bottom-sheet.js +12 -12
- package/dist/node/bottom-sheet/bottom-sheet.module.js +0 -2
- package/dist/node/breadcrumb/breadcrumb.module.js +0 -2
- package/dist/node/button/button.js +1 -3
- package/dist/node/button/button.module.js +0 -2
- package/dist/node/button-group/button-group.js +6 -6
- package/dist/node/button-group/button-group.module.js +0 -2
- package/dist/node/calendar/calendar.module.js +0 -2
- package/dist/node/card/card.js +1 -3
- package/dist/node/card/card.module.js +0 -2
- package/dist/node/carousel/carousel.js +9 -9
- package/dist/node/carousel/carousel.module.js +0 -2
- package/dist/node/chat-bubble/chat-bubble.js +0 -2
- package/dist/node/chat-bubble/chat-bubble.module.js +0 -2
- package/dist/node/checkbox/checkbox.js +10 -10
- package/dist/node/checkbox/checkbox.module.js +0 -2
- package/dist/node/checkbox-card/checkbox-card.js +5 -5
- package/dist/node/checkbox-card/checkbox-card.module.js +0 -2
- package/dist/node/code/code.js +1 -3
- package/dist/node/code/code.module.js +0 -2
- package/dist/node/code-snippet/code-snippet.module.js +0 -2
- package/dist/node/code-snippet/highlight.js +0 -2
- package/dist/node/collapsible/collapsible.js +36 -31
- package/dist/node/collapsible/collapsible.module.js +3 -6
- package/dist/node/color-picker/color-picker.js +7 -7
- package/dist/node/color-picker/color-picker.module.js +0 -2
- package/dist/node/combobox/combobox.js +11 -11
- package/dist/node/combobox/combobox.module.js +15 -17
- package/dist/node/command-menu/command-menu.js +113 -113
- package/dist/node/command-menu/command-menu.module.js +0 -2
- package/dist/node/comparison/comparison.js +5 -5
- package/dist/node/comparison/comparison.module.js +0 -2
- package/dist/node/contained-list/contained-list.module.js +0 -2
- package/dist/node/context-menu/context-menu.js +6 -6
- package/dist/node/context-menu/context-menu.module.js +0 -2
- package/dist/node/copy-button/copy-button.js +7 -7
- package/dist/node/copy-button/copy-button.module.js +0 -2
- package/dist/node/data-list/data-list.js +1 -3
- package/dist/node/data-list/data-list.module.js +0 -2
- package/dist/node/data-table/data-table.js +164 -164
- package/dist/node/data-table/data-table.module.js +29 -31
- package/dist/node/date-picker/date-picker.js +24 -24
- package/dist/node/date-picker/date-picker.module.js +19 -21
- package/dist/node/date-range-picker/date-range-picker.js +30 -30
- package/dist/node/date-range-picker/date-range-picker.module.js +0 -2
- package/dist/node/dock/dock.module.js +0 -2
- package/dist/node/drawer/drawer.js +11 -11
- package/dist/node/drawer/drawer.module.js +0 -2
- package/dist/node/dropdown/dropdown.js +14 -14
- package/dist/node/dropdown/dropdown.module.js +0 -2
- package/dist/node/editable/editable.js +8 -8
- package/dist/node/editable/editable.module.js +7 -9
- package/dist/node/empty-state/empty-state.js +1 -3
- package/dist/node/empty-state/empty-state.module.js +0 -2
- package/dist/node/fab/fab.js +12 -12
- package/dist/node/fab/fab.module.js +0 -2
- package/dist/node/field/field.js +1 -3
- package/dist/node/field/field.module.js +0 -2
- package/dist/node/file-uploader/file-uploader.js +5 -5
- package/dist/node/file-uploader/file-uploader.module.js +14 -16
- package/dist/node/filter/filter.module.js +0 -2
- package/dist/node/form/form.module.js +0 -2
- package/dist/node/header/header.module.js +0 -2
- package/dist/node/header-panel/header-panel.js +8 -8
- package/dist/node/header-panel/header-panel.module.js +0 -2
- package/dist/node/heading/heading.js +1 -3
- package/dist/node/heading/heading.module.js +0 -2
- package/dist/node/hover-card/hover-card.js +18 -18
- package/dist/node/hover-card/hover-card.module.js +0 -2
- package/dist/node/icon-button/icon-button.js +1 -3
- package/dist/node/icon-button/icon-button.module.js +0 -2
- package/dist/node/image/image.module.js +0 -2
- package/dist/node/index.js +0 -1
- package/dist/node/indicator/indicator.js +0 -2
- package/dist/node/indicator/indicator.module.js +0 -2
- package/dist/node/inline-loading/inline-loading.js +1 -3
- package/dist/node/inline-loading/inline-loading.module.js +0 -2
- package/dist/node/input/input.js +11 -11
- package/dist/node/input/input.module.js +0 -2
- package/dist/node/input-group/input-group.js +1 -3
- package/dist/node/input-group/input-group.module.js +0 -2
- package/dist/node/item/item.js +1 -3
- package/dist/node/item/item.module.js +0 -2
- package/dist/node/join/join.js +0 -2
- package/dist/node/join/join.module.js +0 -2
- package/dist/node/kbd/kbd.js +1 -3
- package/dist/node/kbd/kbd.module.js +0 -2
- package/dist/node/label/label.js +1 -3
- package/dist/node/label/label.module.js +0 -2
- package/dist/node/layouts/src/auto-grid/auto-grid.js +1 -3
- package/dist/node/layouts/src/auto-grid/auto-grid.module.js +0 -2
- package/dist/node/layouts/src/center/center.js +1 -3
- package/dist/node/layouts/src/center/center.module.js +0 -2
- package/dist/node/layouts/src/columns/columns.js +1 -3
- package/dist/node/layouts/src/columns/columns.module.js +0 -2
- package/dist/node/layouts/src/flex/flex.js +1 -3
- package/dist/node/layouts/src/flex/flex.module.js +0 -2
- package/dist/node/layouts/src/grid/grid.js +1 -3
- package/dist/node/layouts/src/grid/grid.module.js +0 -2
- package/dist/node/layouts/src/page-header/page-header.js +1 -3
- package/dist/node/layouts/src/page-header/page-header.module.js +6 -8
- package/dist/node/layouts/src/spacer/spacer.js +1 -3
- package/dist/node/layouts/src/spacer/spacer.module.js +0 -2
- package/dist/node/link/link.js +1 -3
- package/dist/node/link/link.module.js +0 -2
- package/dist/node/list/list.js +1 -3
- package/dist/node/list/list.module.js +0 -2
- package/dist/node/log-viewer/log-viewer.js +15 -15
- package/dist/node/log-viewer/log-viewer.module.js +0 -2
- package/dist/node/menu/menu.js +22 -21
- package/dist/node/menu/menu.module.js +0 -2
- package/dist/node/menu-button/menu-button.js +8 -8
- package/dist/node/menu-button/menu-button.module.js +0 -2
- package/dist/node/menubar/menubar.js +24 -24
- package/dist/node/menubar/menubar.module.js +0 -2
- package/dist/node/modal/modal.js +9 -9
- package/dist/node/modal/modal.module.js +0 -2
- package/dist/node/multi-select/multi-select.js +8 -8
- package/dist/node/multi-select/multi-select.module.js +11 -13
- package/dist/node/native-select/native-select.js +1 -3
- package/dist/node/native-select/native-select.module.js +0 -2
- package/dist/node/navigation-menu/navigation-menu.js +26 -26
- package/dist/node/navigation-menu/navigation-menu.module.js +0 -2
- package/dist/node/notification/notification.js +6 -6
- package/dist/node/notification/notification.module.js +0 -2
- package/dist/node/number-input/number-input.js +7 -7
- package/dist/node/number-input/number-input.module.js +0 -2
- package/dist/node/otp-input/otp-input.js +5 -5
- package/dist/node/otp-input/otp-input.module.js +0 -2
- package/dist/node/overflow-menu/overflow-menu.module.js +0 -2
- package/dist/node/pagination/pagination.module.js +0 -2
- package/dist/node/password-input/password-input.js +8 -8
- package/dist/node/password-input/password-input.module.js +0 -2
- package/dist/node/popover/popover.js +12 -12
- package/dist/node/popover/popover.module.js +0 -2
- package/dist/node/popover/use-popover.js +8 -10
- package/dist/node/progress/progress.js +0 -2
- package/dist/node/progress/progress.module.js +0 -2
- package/dist/node/progress-bar/progress-bar.js +1 -3
- package/dist/node/progress-bar/progress-bar.module.js +0 -2
- package/dist/node/progress-circle/progress-circle.js +1 -3
- package/dist/node/progress-circle/progress-circle.module.js +0 -2
- package/dist/node/progress-indicator/progress-indicator.js +1 -3
- package/dist/node/progress-indicator/progress-indicator.module.js +0 -2
- package/dist/node/prose/prose.js +1 -3
- package/dist/node/prose/prose.module.js +0 -2
- package/dist/node/pull-to-refresh/pull-to-refresh.js +8 -8
- package/dist/node/pull-to-refresh/pull-to-refresh.module.js +0 -2
- package/dist/node/qr-code/encode.js +0 -2
- package/dist/node/qr-code/qr-code.module.js +0 -2
- package/dist/node/radial-progress/radial-progress.js +9 -10
- package/dist/node/radial-progress/radial-progress.module.js +0 -2
- package/dist/node/radio/radio.js +1 -3
- package/dist/node/radio/radio.module.js +0 -2
- package/dist/node/radio-card/radio-card.js +8 -8
- package/dist/node/radio-card/radio-card.module.js +0 -2
- package/dist/node/rating-group/rating-group.module.js +0 -2
- package/dist/node/react/src/index.js +0 -2
- package/dist/node/react/src/theme.js +10 -10
- package/dist/node/relative-time/relative-time.module.js +0 -2
- package/dist/node/resizable/resizable.js +7 -7
- package/dist/node/resizable/resizable.module.js +0 -2
- package/dist/node/scroll-area/scroll-area.js +6 -6
- package/dist/node/scroll-area/scroll-area.module.js +0 -2
- package/dist/node/search/search.js +9 -9
- package/dist/node/search/search.module.js +0 -2
- package/dist/node/segmented-control/segmented-control.module.js +0 -2
- package/dist/node/select/select.js +11 -11
- package/dist/node/select/select.module.js +0 -2
- package/dist/node/separator/separator.js +1 -3
- package/dist/node/separator/separator.module.js +0 -2
- package/dist/node/sheet/sheet.js +4 -4
- package/dist/node/sheet/sheet.module.js +0 -2
- package/dist/node/shell-header/shell-header.js +21 -18
- package/dist/node/shell-header/shell-header.module.js +20 -21
- package/dist/node/side-nav/side-nav.js +37 -37
- package/dist/node/side-nav/side-nav.module.js +0 -2
- package/dist/node/skeleton/skeleton.js +1 -3
- package/dist/node/skeleton/skeleton.module.js +0 -2
- package/dist/node/skip-nav/skip-nav.js +6 -6
- package/dist/node/skip-nav/skip-nav.module.js +0 -2
- package/dist/node/slider/slider.js +1 -3
- package/dist/node/slider/slider.module.js +0 -2
- package/dist/node/spinner/spinner.module.js +0 -2
- package/dist/node/stack/stack.js +0 -2
- package/dist/node/stack/stack.module.js +0 -2
- package/dist/node/stat/stat.js +22 -23
- package/dist/node/stat/stat.module.js +7 -9
- package/dist/node/status/status.js +1 -3
- package/dist/node/status/status.module.js +0 -2
- package/dist/node/steps/steps.module.js +0 -2
- package/dist/node/storage/src/drivers.js +0 -2
- package/dist/node/storage/src/persisted-signal.js +0 -2
- package/dist/node/structured-list/structured-list.js +10 -10
- package/dist/node/structured-list/structured-list.module.js +0 -2
- package/dist/node/swap/swap.js +10 -11
- package/dist/node/swap/swap.module.js +0 -2
- package/dist/node/swipe-item/swipe-item.module.js +0 -2
- package/dist/node/switcher/switcher.module.js +0 -2
- package/dist/node/tabs/tabs.js +38 -38
- package/dist/node/tabs/tabs.module.js +0 -2
- package/dist/node/tag/tag.module.js +0 -2
- package/dist/node/tags-input/tags-input.js +6 -6
- package/dist/node/tags-input/tags-input.module.js +4 -6
- package/dist/node/text/text.js +1 -3
- package/dist/node/text/text.module.js +0 -2
- package/dist/node/textarea/textarea.js +11 -11
- package/dist/node/textarea/textarea.module.js +0 -2
- package/dist/node/tile/tile.module.js +0 -2
- package/dist/node/time-picker/time-picker.js +9 -9
- package/dist/node/time-picker/time-picker.module.js +5 -7
- package/dist/node/timeline/timeline.js +46 -38
- package/dist/node/timeline/timeline.module.js +7 -9
- package/dist/node/toast/toast.js +15 -15
- package/dist/node/toast/toast.module.js +0 -2
- package/dist/node/toc/toc.js +7 -7
- package/dist/node/toc/toc.module.js +0 -2
- package/dist/node/toggle/toggle.js +7 -7
- package/dist/node/toggle/toggle.module.js +0 -2
- package/dist/node/toggle-group/toggle-group.js +25 -25
- package/dist/node/toggle-group/toggle-group.module.js +0 -2
- package/dist/node/toggletip/toggletip.js +7 -7
- package/dist/node/toggletip/toggletip.module.js +0 -2
- package/dist/node/tooltip/tooltip.js +9 -9
- package/dist/node/tooltip/tooltip.module.js +0 -2
- package/dist/node/tree-view/tree-view.js +47 -47
- package/dist/node/tree-view/tree-view.module.js +0 -2
- package/dist/node/user/user.js +1 -3
- package/dist/node/user/user.module.js +0 -2
- package/dist/node/visually-hidden/visually-hidden.js +1 -3
- package/dist/notification/notification.js +6 -6
- package/dist/notification/notification.module.js +0 -2
- package/dist/number-input/number-input.js +7 -7
- package/dist/number-input/number-input.module.js +0 -2
- package/dist/otp-input/otp-input.js +5 -5
- package/dist/otp-input/otp-input.module.js +0 -2
- package/dist/overflow-menu/overflow-menu.module.js +0 -2
- package/dist/pagination/pagination.module.js +0 -2
- package/dist/password-input/password-input.js +8 -8
- package/dist/password-input/password-input.module.js +0 -2
- package/dist/popover/popover.js +12 -12
- package/dist/popover/popover.module.js +0 -2
- package/dist/popover/use-popover.js +8 -10
- package/dist/progress/progress.js +0 -2
- package/dist/progress/progress.module.js +0 -2
- package/dist/progress-bar/progress-bar.js +1 -3
- package/dist/progress-bar/progress-bar.module.js +0 -2
- package/dist/progress-circle/progress-circle.js +1 -3
- package/dist/progress-circle/progress-circle.module.js +0 -2
- package/dist/progress-indicator/progress-indicator.js +1 -3
- package/dist/progress-indicator/progress-indicator.module.js +0 -2
- package/dist/prose/prose.js +1 -3
- package/dist/prose/prose.module.js +0 -2
- package/dist/pull-to-refresh/pull-to-refresh.js +8 -8
- package/dist/pull-to-refresh/pull-to-refresh.module.js +0 -2
- package/dist/qr-code/encode.js +0 -2
- package/dist/qr-code/qr-code.module.js +0 -2
- package/dist/radial-progress/radial-progress.js +9 -10
- package/dist/radial-progress/radial-progress.module.js +0 -2
- package/dist/radio/radio.js +1 -3
- package/dist/radio/radio.module.js +0 -2
- package/dist/radio-card/radio-card.js +8 -8
- package/dist/radio-card/radio-card.module.js +0 -2
- package/dist/rating-group/rating-group.module.js +0 -2
- package/dist/react/src/index.js +0 -2
- package/dist/react/src/theme.js +10 -10
- package/dist/relative-time/relative-time.module.js +0 -2
- package/dist/resizable/resizable.js +7 -7
- package/dist/resizable/resizable.module.js +0 -2
- package/dist/scroll-area/scroll-area.js +6 -6
- package/dist/scroll-area/scroll-area.module.js +0 -2
- package/dist/search/search.js +9 -9
- package/dist/search/search.module.js +0 -2
- package/dist/segmented-control/segmented-control.module.js +0 -2
- package/dist/select/select.js +11 -11
- package/dist/select/select.module.js +0 -2
- package/dist/separator/separator.js +1 -3
- package/dist/separator/separator.module.js +0 -2
- package/dist/sheet/sheet.js +4 -4
- package/dist/sheet/sheet.module.js +0 -2
- package/dist/shell-header/shell-header.css +1 -1
- package/dist/shell-header/shell-header.js +21 -18
- package/dist/shell-header/shell-header.module.js +20 -21
- package/dist/side-nav/side-nav.js +37 -37
- package/dist/side-nav/side-nav.module.js +0 -2
- package/dist/skeleton/skeleton.js +1 -3
- package/dist/skeleton/skeleton.module.js +0 -2
- package/dist/skip-nav/skip-nav.js +6 -6
- package/dist/skip-nav/skip-nav.module.js +0 -2
- package/dist/slider/slider.js +1 -3
- package/dist/slider/slider.module.js +0 -2
- package/dist/spinner/spinner.module.js +0 -2
- package/dist/stack/stack.js +0 -2
- package/dist/stack/stack.module.js +0 -2
- package/dist/stat/stat.css +1 -1
- package/dist/stat/stat.js +22 -23
- package/dist/stat/stat.module.js +7 -9
- package/dist/status/status.js +1 -3
- package/dist/status/status.module.js +0 -2
- package/dist/steps/steps.module.js +0 -2
- package/dist/storage/src/drivers.js +0 -2
- package/dist/storage/src/persisted-signal.js +0 -2
- package/dist/structured-list/structured-list.js +10 -10
- package/dist/structured-list/structured-list.module.js +0 -2
- package/dist/styles.css +15 -15
- package/dist/swap/swap.js +10 -11
- package/dist/swap/swap.module.js +0 -2
- package/dist/swipe-item/swipe-item.module.js +0 -2
- package/dist/switcher/switcher.module.js +0 -2
- package/dist/tabs/tabs.js +38 -38
- package/dist/tabs/tabs.module.js +0 -2
- package/dist/tag/tag.module.js +0 -2
- package/dist/tags-input/tags-input.css +1 -1
- package/dist/tags-input/tags-input.js +6 -6
- package/dist/tags-input/tags-input.module.js +4 -6
- package/dist/text/text.js +1 -3
- package/dist/text/text.module.js +0 -2
- package/dist/textarea/textarea.js +11 -11
- package/dist/textarea/textarea.module.js +0 -2
- package/dist/tile/tile.module.js +0 -2
- package/dist/time-picker/time-picker.css +1 -1
- package/dist/time-picker/time-picker.js +9 -9
- package/dist/time-picker/time-picker.module.js +5 -7
- package/dist/timeline/timeline.css +1 -1
- package/dist/timeline/timeline.js +46 -38
- package/dist/timeline/timeline.module.js +7 -9
- package/dist/toast/toast.js +15 -15
- package/dist/toast/toast.module.js +0 -2
- package/dist/toc/toc.js +7 -7
- package/dist/toc/toc.module.js +0 -2
- package/dist/toggle/toggle.js +7 -7
- package/dist/toggle/toggle.module.js +0 -2
- package/dist/toggle-group/toggle-group.js +25 -25
- package/dist/toggle-group/toggle-group.module.js +0 -2
- package/dist/toggletip/toggletip.js +7 -7
- package/dist/toggletip/toggletip.module.js +0 -2
- package/dist/tooltip/tooltip.js +9 -9
- package/dist/tooltip/tooltip.module.js +0 -2
- package/dist/tree-view/tree-view.js +47 -47
- package/dist/tree-view/tree-view.module.js +0 -2
- package/dist/user/user.js +1 -3
- package/dist/user/user.module.js +0 -2
- package/dist/visually-hidden/visually-hidden.js +1 -3
- package/package.json +4 -4
- package/readme.body.md +2 -2
|
@@ -3,80 +3,80 @@
|
|
|
3
3
|
import { Button as e } from "../button/button.js";
|
|
4
4
|
import { Checkbox as t } from "../checkbox/checkbox.js";
|
|
5
5
|
import n from "./data-table.module.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { builtin as
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { flushSync as
|
|
6
|
+
import { Fragment as r, useId as i, useRef as a } from "react";
|
|
7
|
+
import { batch as o, cn as s, useComputed as c, useSignal as l, useSignalEffect as ee, useSignals as te } from "@cascivo/core";
|
|
8
|
+
import { builtin as u, t as d } from "@cascivo/i18n";
|
|
9
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
import { flushSync as ne } from "react-dom";
|
|
11
11
|
//#region ../components/src/data-table/data-table.tsx
|
|
12
|
-
function
|
|
12
|
+
function m(e, t) {
|
|
13
13
|
return e[t];
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function re(e, t) {
|
|
16
16
|
return typeof e == "number" && typeof t == "number" ? e - t : String(e ?? "").localeCompare(String(t ?? ""));
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function h({ columns: h, rows: g, getRowId: _, sort: v, defaultSort: ie, sortMode: ae = "client", onSortChange: oe, searchable: se = !1, pagination: y, selection: b, batchActions: x, renderExpandedRow: S, density: ce = "normal", zebra: le = !1, stickyHeader: ue = !1, loading: C = !1, emptyState: de, title: w, description: T, labels: E, className: fe, virtualized: D = !1, rowHeight: O = 40, windowSize: pe = 20, overscan: me = 3 }) {
|
|
19
19
|
te();
|
|
20
|
-
let
|
|
21
|
-
search:
|
|
22
|
-
empty:
|
|
23
|
-
selectAll:
|
|
24
|
-
selectRow:
|
|
25
|
-
itemsSelected: (e) =>
|
|
26
|
-
expandRow:
|
|
27
|
-
previousPage:
|
|
28
|
-
nextPage:
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
let
|
|
20
|
+
let he = i(), k = {
|
|
21
|
+
search: E?.search ?? d(u.dataTable.search),
|
|
22
|
+
empty: E?.empty ?? d(u.dataTable.empty),
|
|
23
|
+
selectAll: E?.selectAll ?? d(u.dataTable.selectAll),
|
|
24
|
+
selectRow: E?.selectRow ?? d(u.dataTable.selectRow),
|
|
25
|
+
itemsSelected: (e) => E?.itemsSelected?.(e) ?? d(u.dataTable.itemsSelected, { count: e }),
|
|
26
|
+
expandRow: E?.expandRow ?? d(u.dataTable.expandRow),
|
|
27
|
+
previousPage: E?.previousPage ?? d(u.dataTable.previousPage),
|
|
28
|
+
nextPage: E?.nextPage ?? d(u.dataTable.nextPage)
|
|
29
|
+
}, ge = l(g);
|
|
30
|
+
ge.value = g;
|
|
31
|
+
let _e = l(h);
|
|
32
|
+
_e.value = h;
|
|
33
|
+
let A = l(v ?? ie);
|
|
34
|
+
v !== void 0 && (A.value = v);
|
|
35
|
+
let j = l(b?.selected ?? []);
|
|
36
|
+
b?.selected !== void 0 && (j.value = b.selected);
|
|
37
|
+
let M = l(""), N = l(1), P = l(y?.pageSize ?? 0), F = l(/* @__PURE__ */ new Set()), I = a(null), L = l(0);
|
|
38
38
|
ee(() => {
|
|
39
|
-
if (!
|
|
40
|
-
let e =
|
|
39
|
+
if (!D) return;
|
|
40
|
+
let e = I.current;
|
|
41
41
|
if (!e) return;
|
|
42
42
|
let t = () => {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
ne(() => {
|
|
44
|
+
L.value = e.scrollTop;
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
return e.addEventListener("scroll", t, { passive: !0 }), () => e.removeEventListener("scroll", t);
|
|
48
48
|
});
|
|
49
|
-
let
|
|
49
|
+
let R = c(() => ge.value.map((e, t) => ({
|
|
50
50
|
row: e,
|
|
51
|
-
id:
|
|
52
|
-
}))),
|
|
53
|
-
let e =
|
|
54
|
-
if (!e) return
|
|
55
|
-
let t =
|
|
56
|
-
return
|
|
57
|
-
}),
|
|
58
|
-
let e =
|
|
59
|
-
if (!e ||
|
|
60
|
-
let t =
|
|
51
|
+
id: _ ? _(e) : String(t)
|
|
52
|
+
}))), z = c(() => {
|
|
53
|
+
let e = M.value.trim().toLowerCase();
|
|
54
|
+
if (!e) return R.value;
|
|
55
|
+
let t = _e.value;
|
|
56
|
+
return R.value.filter((n) => t.some((t) => String(m(n.row, t.key) ?? "").toLowerCase().includes(e)));
|
|
57
|
+
}), B = c(() => {
|
|
58
|
+
let e = A.value;
|
|
59
|
+
if (!e || ae === "server") return z.value;
|
|
60
|
+
let t = z.value.map((e, t) => [e, t]);
|
|
61
61
|
return t.sort((t, n) => {
|
|
62
|
-
let r =
|
|
62
|
+
let r = re(m(t[0].row, e.key), m(n[0].row, e.key));
|
|
63
63
|
return e.direction === "desc" && (r = -r), r === 0 ? t[1] - n[1] : r;
|
|
64
64
|
}), t.map(([e]) => e);
|
|
65
|
-
}),
|
|
66
|
-
if (!
|
|
67
|
-
let e = (
|
|
68
|
-
return
|
|
69
|
-
}),
|
|
70
|
-
let t =
|
|
65
|
+
}), ve = c(() => y ? Math.max(1, Math.ceil(z.value.length / P.value)) : 1), V = c(() => Math.min(N.value, ve.value)), H = c(() => {
|
|
66
|
+
if (!y) return B.value;
|
|
67
|
+
let e = (V.value - 1) * P.value;
|
|
68
|
+
return B.value.slice(e, e + P.value);
|
|
69
|
+
}), U = c(() => D ? Math.floor(L.value / O) : 0), ye = c(() => D ? Math.min(U.value + pe + me * 2, H.value.length) : H.value.length), be = c(() => D ? H.value.slice(U.value, ye.value) : H.value), xe = (e) => {
|
|
70
|
+
let t = A.value, n;
|
|
71
71
|
n = !t || t.key !== e ? {
|
|
72
72
|
key: e,
|
|
73
73
|
direction: "asc"
|
|
74
74
|
} : t.direction === "asc" ? {
|
|
75
75
|
key: e,
|
|
76
76
|
direction: "desc"
|
|
77
|
-
} : void 0,
|
|
78
|
-
|
|
79
|
-
}),
|
|
77
|
+
} : void 0, o(() => {
|
|
78
|
+
v === void 0 && (A.value = n), N.value = 1;
|
|
79
|
+
}), oe?.(n);
|
|
80
80
|
}, Se = (e) => {
|
|
81
81
|
if (![
|
|
82
82
|
"ArrowUp",
|
|
@@ -100,62 +100,62 @@ function f({ columns: f, rows: se, getRowId: ce, sort: p, defaultSort: le, sortM
|
|
|
100
100
|
}
|
|
101
101
|
a?.focus();
|
|
102
102
|
}, W = (e) => {
|
|
103
|
-
|
|
103
|
+
b?.selected === void 0 && (j.value = e), b?.onChange?.(e);
|
|
104
104
|
}, Ce = (e) => {
|
|
105
|
-
let t =
|
|
106
|
-
|
|
105
|
+
let t = j.value;
|
|
106
|
+
b?.mode === "single" ? W(t.includes(e) ? [] : [e]) : W(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
107
107
|
}, we = (e) => {
|
|
108
|
-
let t = new Set(
|
|
109
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
110
|
-
}, G =
|
|
108
|
+
let t = new Set(F.value);
|
|
109
|
+
t.has(e) ? t.delete(e) : t.add(e), F.value = t;
|
|
110
|
+
}, G = H.value, K = j.value, Te = F.value, q = G.length > 0 && G.every((e) => K.includes(e.id)), Ee = G.some((e) => K.includes(e.id)), J = be.value, Y = U.value, X = ye.value, De = () => {
|
|
111
111
|
let e = G.map((e) => e.id);
|
|
112
112
|
W(q ? K.filter((t) => !e.includes(t)) : [...new Set([...K, ...e])]);
|
|
113
|
-
}, Z =
|
|
114
|
-
return /* @__PURE__ */
|
|
115
|
-
className:
|
|
116
|
-
"data-density":
|
|
117
|
-
"data-zebra":
|
|
118
|
-
"data-sticky-header":
|
|
119
|
-
"data-paginated":
|
|
120
|
-
"data-fixed-layout":
|
|
113
|
+
}, Z = h.length + +!!b + +!!S, Oe = y && !D && J.length > 0 ? Math.max(0, P.value - J.length) : 0, ke = `${he}-title`, Ae = `${he}-description`, Q = z.value.length, $ = Q === 0 ? 0 : (V.value - 1) * P.value + 1, je = Q === 0 ? 0 : $ + G.length - 1, Me = !!x && x.length > 0 && K.length > 0;
|
|
114
|
+
return /* @__PURE__ */ p("div", {
|
|
115
|
+
className: s(n.root, fe),
|
|
116
|
+
"data-density": ce,
|
|
117
|
+
"data-zebra": le || void 0,
|
|
118
|
+
"data-sticky-header": ue || void 0,
|
|
119
|
+
"data-paginated": y ? !0 : void 0,
|
|
120
|
+
"data-fixed-layout": h.every((e) => e.width !== void 0) || void 0,
|
|
121
121
|
children: [
|
|
122
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ f("span", {
|
|
123
123
|
"aria-live": "polite",
|
|
124
124
|
className: n.srOnly,
|
|
125
|
-
children:
|
|
125
|
+
children: j.value.length > 0 ? k.itemsSelected(j.value.length) : ""
|
|
126
126
|
}),
|
|
127
|
-
(
|
|
127
|
+
(w !== void 0 || T !== void 0 || se) && /* @__PURE__ */ p("div", {
|
|
128
128
|
className: n.toolbar,
|
|
129
|
-
children: [(
|
|
129
|
+
children: [(w !== void 0 || T !== void 0) && /* @__PURE__ */ p("div", {
|
|
130
130
|
className: n.heading,
|
|
131
|
-
children: [
|
|
131
|
+
children: [w !== void 0 && /* @__PURE__ */ f("div", {
|
|
132
132
|
id: ke,
|
|
133
133
|
className: n.title,
|
|
134
|
-
children:
|
|
135
|
-
}),
|
|
134
|
+
children: w
|
|
135
|
+
}), T !== void 0 && /* @__PURE__ */ f("div", {
|
|
136
136
|
id: Ae,
|
|
137
137
|
className: n.description,
|
|
138
|
-
children:
|
|
138
|
+
children: T
|
|
139
139
|
})]
|
|
140
|
-
}),
|
|
140
|
+
}), se && /* @__PURE__ */ f("input", {
|
|
141
141
|
type: "search",
|
|
142
142
|
className: n.search,
|
|
143
|
-
"aria-label":
|
|
144
|
-
placeholder:
|
|
145
|
-
value:
|
|
143
|
+
"aria-label": k.search,
|
|
144
|
+
placeholder: k.search,
|
|
145
|
+
value: M.value,
|
|
146
146
|
onChange: (e) => {
|
|
147
|
-
|
|
147
|
+
M.value = e.target.value, N.value = 1;
|
|
148
148
|
}
|
|
149
149
|
})]
|
|
150
150
|
}),
|
|
151
|
-
Me && /* @__PURE__ */
|
|
151
|
+
Me && /* @__PURE__ */ p("div", {
|
|
152
152
|
className: n.batchBar,
|
|
153
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ f("span", {
|
|
154
154
|
className: n.batchCount,
|
|
155
|
-
children:
|
|
156
|
-
}), /* @__PURE__ */
|
|
155
|
+
children: k.itemsSelected(K.length)
|
|
156
|
+
}), /* @__PURE__ */ f("div", {
|
|
157
157
|
className: n.batchActions,
|
|
158
|
-
children:
|
|
158
|
+
children: x.map((t, n) => /* @__PURE__ */ f(e, {
|
|
159
159
|
size: "sm",
|
|
160
160
|
variant: "secondary",
|
|
161
161
|
onClick: () => t.onClick(K),
|
|
@@ -163,55 +163,55 @@ function f({ columns: f, rows: se, getRowId: ce, sort: p, defaultSort: le, sortM
|
|
|
163
163
|
}, t.id ?? `${n}-${t.label}`))
|
|
164
164
|
})]
|
|
165
165
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
ref:
|
|
168
|
-
className:
|
|
169
|
-
children: /* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ f("div", {
|
|
167
|
+
ref: D ? I : void 0,
|
|
168
|
+
className: s(n.scroller, D && n.scrollerVirtualized),
|
|
169
|
+
children: /* @__PURE__ */ p("table", {
|
|
170
170
|
className: n.table,
|
|
171
|
-
"aria-labelledby":
|
|
172
|
-
"aria-describedby":
|
|
173
|
-
"aria-busy":
|
|
174
|
-
"aria-rowcount":
|
|
171
|
+
"aria-labelledby": w === void 0 ? void 0 : ke,
|
|
172
|
+
"aria-describedby": T === void 0 ? void 0 : Ae,
|
|
173
|
+
"aria-busy": C || void 0,
|
|
174
|
+
"aria-rowcount": D ? G.length : void 0,
|
|
175
175
|
onKeyDown: Se,
|
|
176
176
|
children: [
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
/* @__PURE__ */ p("colgroup", { children: [
|
|
178
|
+
S && /* @__PURE__ */ f("col", { className: n.controlCol }),
|
|
179
|
+
b && /* @__PURE__ */ f("col", { className: n.controlCol }),
|
|
180
|
+
h.map((e) => /* @__PURE__ */ f("col", { style: e.width !== void 0 || e.minWidth !== void 0 ? {
|
|
181
181
|
...e.width === void 0 ? {} : { width: e.width },
|
|
182
182
|
...e.minWidth === void 0 ? {} : { minWidth: e.minWidth }
|
|
183
183
|
} : void 0 }, e.key))
|
|
184
184
|
] }),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
|
|
185
|
+
/* @__PURE__ */ f("thead", { children: /* @__PURE__ */ p("tr", { children: [
|
|
186
|
+
S && /* @__PURE__ */ f("th", {
|
|
187
187
|
scope: "col",
|
|
188
188
|
className: n.controlCell,
|
|
189
|
-
children: /* @__PURE__ */
|
|
189
|
+
children: /* @__PURE__ */ f("span", {
|
|
190
190
|
className: n.srOnly,
|
|
191
|
-
children:
|
|
191
|
+
children: k.expandRow
|
|
192
192
|
})
|
|
193
193
|
}),
|
|
194
|
-
|
|
194
|
+
b && /* @__PURE__ */ f("th", {
|
|
195
195
|
scope: "col",
|
|
196
196
|
className: n.controlCell,
|
|
197
|
-
children:
|
|
198
|
-
"aria-label":
|
|
197
|
+
children: b.mode === "multi" ? /* @__PURE__ */ f(t, {
|
|
198
|
+
"aria-label": k.selectAll,
|
|
199
199
|
checked: q,
|
|
200
200
|
indeterminate: Ee && !q,
|
|
201
201
|
onChange: De
|
|
202
|
-
}) : /* @__PURE__ */
|
|
202
|
+
}) : /* @__PURE__ */ f("span", {
|
|
203
203
|
className: n.srOnly,
|
|
204
|
-
children:
|
|
204
|
+
children: k.selectRow
|
|
205
205
|
})
|
|
206
206
|
}),
|
|
207
|
-
|
|
208
|
-
let t =
|
|
209
|
-
return /* @__PURE__ */
|
|
207
|
+
h.map((e) => {
|
|
208
|
+
let t = A.value?.key === e.key ? A.value.direction : void 0, r = t === "asc" ? "ascending" : t === "desc" ? "descending" : "none";
|
|
209
|
+
return /* @__PURE__ */ f("th", {
|
|
210
210
|
scope: "col",
|
|
211
211
|
"data-align": e.align ?? "start",
|
|
212
212
|
"data-sized": e.width !== void 0 || void 0,
|
|
213
213
|
"aria-sort": e.sortable ? r : void 0,
|
|
214
|
-
children: e.sortable ? /* @__PURE__ */
|
|
214
|
+
children: e.sortable ? /* @__PURE__ */ f("button", {
|
|
215
215
|
type: "button",
|
|
216
216
|
className: n.sortButton,
|
|
217
217
|
"data-state": r,
|
|
@@ -221,87 +221,87 @@ function f({ columns: f, rows: se, getRowId: ce, sort: p, defaultSort: le, sortM
|
|
|
221
221
|
}, e.key);
|
|
222
222
|
})
|
|
223
223
|
] }) }),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
|
|
224
|
+
/* @__PURE__ */ p("tbody", { children: [
|
|
225
|
+
C && Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ f("tr", {
|
|
226
226
|
className: n.row,
|
|
227
|
-
children: Array.from({ length: Z }, (e, t) => /* @__PURE__ */
|
|
227
|
+
children: Array.from({ length: Z }, (e, t) => /* @__PURE__ */ f("td", { children: /* @__PURE__ */ f("span", {
|
|
228
228
|
className: n.shimmer,
|
|
229
229
|
"aria-hidden": "true"
|
|
230
230
|
}) }, t))
|
|
231
231
|
}, t)),
|
|
232
|
-
!
|
|
232
|
+
!C && G.length === 0 && /* @__PURE__ */ f("tr", {
|
|
233
233
|
"data-empty-row": !0,
|
|
234
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ f("td", {
|
|
235
235
|
colSpan: Z,
|
|
236
236
|
className: n.emptyCell,
|
|
237
|
-
children:
|
|
237
|
+
children: de ?? k.empty
|
|
238
238
|
})
|
|
239
239
|
}),
|
|
240
|
-
!
|
|
240
|
+
!C && D && Y > 0 && /* @__PURE__ */ f("tr", {
|
|
241
241
|
"aria-hidden": "true",
|
|
242
|
-
style: { height: Y *
|
|
242
|
+
style: { height: Y * O }
|
|
243
243
|
}),
|
|
244
|
-
!
|
|
245
|
-
let
|
|
246
|
-
return /* @__PURE__ */
|
|
244
|
+
!C && J.map((e, i) => {
|
|
245
|
+
let a = D ? Y + i : i, o = K.includes(e.id), s = Te.has(e.id);
|
|
246
|
+
return /* @__PURE__ */ p(r, { children: [/* @__PURE__ */ p("tr", {
|
|
247
247
|
className: n.row,
|
|
248
|
-
"data-parity":
|
|
249
|
-
"data-state":
|
|
250
|
-
"aria-rowindex":
|
|
248
|
+
"data-parity": a % 2 == 0 ? "even" : "odd",
|
|
249
|
+
"data-state": o ? "selected" : void 0,
|
|
250
|
+
"aria-rowindex": D ? Y + i + 1 : void 0,
|
|
251
251
|
children: [
|
|
252
|
-
|
|
252
|
+
S && /* @__PURE__ */ f("td", {
|
|
253
253
|
className: n.controlCell,
|
|
254
|
-
children: /* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ f("button", {
|
|
255
255
|
type: "button",
|
|
256
256
|
className: n.expandButton,
|
|
257
|
-
"aria-expanded":
|
|
258
|
-
"aria-label":
|
|
259
|
-
"data-state":
|
|
257
|
+
"aria-expanded": s,
|
|
258
|
+
"aria-label": k.expandRow,
|
|
259
|
+
"data-state": s ? "open" : "closed",
|
|
260
260
|
onClick: () => we(e.id),
|
|
261
|
-
children: /* @__PURE__ */
|
|
261
|
+
children: /* @__PURE__ */ f("span", {
|
|
262
262
|
className: n.chevron,
|
|
263
263
|
"aria-hidden": "true"
|
|
264
264
|
})
|
|
265
265
|
})
|
|
266
266
|
}),
|
|
267
|
-
|
|
267
|
+
b && /* @__PURE__ */ f("td", {
|
|
268
268
|
className: n.controlCell,
|
|
269
|
-
children: /* @__PURE__ */
|
|
270
|
-
"aria-label":
|
|
271
|
-
checked:
|
|
269
|
+
children: /* @__PURE__ */ f(t, {
|
|
270
|
+
"aria-label": k.selectRow,
|
|
271
|
+
checked: o,
|
|
272
272
|
onChange: () => Ce(e.id)
|
|
273
273
|
})
|
|
274
274
|
}),
|
|
275
|
-
|
|
275
|
+
h.map((t) => /* @__PURE__ */ f("td", {
|
|
276
276
|
"data-align": t.align ?? "start",
|
|
277
277
|
"data-sized": t.width !== void 0 || void 0,
|
|
278
|
-
children: t.render ? t.render(e.row) : String(
|
|
278
|
+
children: t.render ? t.render(e.row) : String(m(e.row, t.key) ?? "")
|
|
279
279
|
}, t.key))
|
|
280
280
|
]
|
|
281
|
-
}),
|
|
281
|
+
}), S && /* @__PURE__ */ f("tr", {
|
|
282
282
|
className: n.expansionRow,
|
|
283
|
-
"data-state":
|
|
284
|
-
children: /* @__PURE__ */
|
|
283
|
+
"data-state": s ? "open" : "closed",
|
|
284
|
+
children: /* @__PURE__ */ f("td", {
|
|
285
285
|
colSpan: Z,
|
|
286
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ f("div", {
|
|
287
287
|
className: n.expansionGrid,
|
|
288
|
-
"data-state":
|
|
289
|
-
children: /* @__PURE__ */
|
|
288
|
+
"data-state": s ? "open" : "closed",
|
|
289
|
+
children: /* @__PURE__ */ f("div", {
|
|
290
290
|
className: n.expansionInner,
|
|
291
|
-
children:
|
|
291
|
+
children: S(e.row)
|
|
292
292
|
})
|
|
293
293
|
})
|
|
294
294
|
})
|
|
295
295
|
})] }, e.id);
|
|
296
296
|
}),
|
|
297
|
-
!
|
|
297
|
+
!C && D && X < G.length && /* @__PURE__ */ f("tr", {
|
|
298
298
|
"aria-hidden": "true",
|
|
299
|
-
style: { height: (G.length - X) *
|
|
299
|
+
style: { height: (G.length - X) * O }
|
|
300
300
|
}),
|
|
301
|
-
Oe > 0 && /* @__PURE__ */
|
|
301
|
+
Oe > 0 && /* @__PURE__ */ f("tr", {
|
|
302
302
|
"aria-hidden": "true",
|
|
303
303
|
"data-filler-row": !0,
|
|
304
|
-
children: /* @__PURE__ */
|
|
304
|
+
children: /* @__PURE__ */ f("td", {
|
|
305
305
|
colSpan: Z,
|
|
306
306
|
style: {
|
|
307
307
|
blockSize: `calc(var(--_row-height) * ${Oe})`,
|
|
@@ -313,23 +313,23 @@ function f({ columns: f, rows: se, getRowId: ce, sort: p, defaultSort: le, sortM
|
|
|
313
313
|
]
|
|
314
314
|
})
|
|
315
315
|
}),
|
|
316
|
-
|
|
316
|
+
y && /* @__PURE__ */ p("div", {
|
|
317
317
|
className: n.footer,
|
|
318
318
|
children: [
|
|
319
|
-
|
|
319
|
+
y.pageSizeOptions && /* @__PURE__ */ p("label", {
|
|
320
320
|
className: n.pageSize,
|
|
321
|
-
children: [/* @__PURE__ */
|
|
322
|
-
value:
|
|
321
|
+
children: [/* @__PURE__ */ f("span", { children: "Rows per page" }), /* @__PURE__ */ f("select", {
|
|
322
|
+
value: P.value,
|
|
323
323
|
onChange: (e) => {
|
|
324
|
-
|
|
324
|
+
P.value = Number(e.target.value), N.value = 1;
|
|
325
325
|
},
|
|
326
|
-
children:
|
|
326
|
+
children: y.pageSizeOptions.map((e) => /* @__PURE__ */ f("option", {
|
|
327
327
|
value: e,
|
|
328
328
|
children: e
|
|
329
329
|
}, e))
|
|
330
330
|
})]
|
|
331
331
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ p("span", {
|
|
333
333
|
className: n.range,
|
|
334
334
|
children: [
|
|
335
335
|
$,
|
|
@@ -339,29 +339,29 @@ function f({ columns: f, rows: se, getRowId: ce, sort: p, defaultSort: le, sortM
|
|
|
339
339
|
Q
|
|
340
340
|
]
|
|
341
341
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ p("div", {
|
|
343
343
|
className: n.pageButtons,
|
|
344
|
-
children: [/* @__PURE__ */
|
|
344
|
+
children: [/* @__PURE__ */ f("button", {
|
|
345
345
|
type: "button",
|
|
346
346
|
className: n.pageButton,
|
|
347
|
-
"aria-label":
|
|
348
|
-
disabled:
|
|
347
|
+
"aria-label": k.previousPage,
|
|
348
|
+
disabled: V.value <= 1,
|
|
349
349
|
onClick: () => {
|
|
350
|
-
|
|
350
|
+
N.value = V.value - 1;
|
|
351
351
|
},
|
|
352
|
-
children: /* @__PURE__ */
|
|
352
|
+
children: /* @__PURE__ */ f("span", {
|
|
353
353
|
"aria-hidden": "true",
|
|
354
354
|
children: "‹"
|
|
355
355
|
})
|
|
356
|
-
}), /* @__PURE__ */
|
|
356
|
+
}), /* @__PURE__ */ f("button", {
|
|
357
357
|
type: "button",
|
|
358
358
|
className: n.pageButton,
|
|
359
|
-
"aria-label":
|
|
360
|
-
disabled:
|
|
359
|
+
"aria-label": k.nextPage,
|
|
360
|
+
disabled: V.value >= ve.value,
|
|
361
361
|
onClick: () => {
|
|
362
|
-
|
|
362
|
+
N.value = V.value + 1;
|
|
363
363
|
},
|
|
364
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ f("span", {
|
|
365
365
|
"aria-hidden": "true",
|
|
366
366
|
children: "›"
|
|
367
367
|
})
|
|
@@ -373,4 +373,4 @@ function f({ columns: f, rows: se, getRowId: ce, sort: p, defaultSort: le, sortM
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
//#endregion
|
|
376
|
-
export {
|
|
376
|
+
export { h as DataTable };
|
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
var e = {
|
|
4
|
-
root: "
|
|
5
|
-
toolbar: "
|
|
6
|
-
heading: "
|
|
7
|
-
title: "
|
|
8
|
-
description: "
|
|
9
|
-
search: "
|
|
10
|
-
batchBar: "
|
|
11
|
-
batchCount: "
|
|
12
|
-
batchActions: "
|
|
13
|
-
scroller: "
|
|
14
|
-
scrollerVirtualized: "
|
|
15
|
-
table: "
|
|
16
|
-
row: "
|
|
17
|
-
controlCol: "
|
|
18
|
-
controlCell: "
|
|
19
|
-
sortButton: "
|
|
20
|
-
emptyCell: "
|
|
21
|
-
expansionRow: "
|
|
22
|
-
expansionGrid: "
|
|
23
|
-
expansionInner: "
|
|
24
|
-
expandButton: "
|
|
25
|
-
chevron: "
|
|
26
|
-
shimmer: "
|
|
27
|
-
footer: "
|
|
28
|
-
pageSize: "
|
|
29
|
-
range: "
|
|
30
|
-
pageButtons: "
|
|
31
|
-
pageButton: "
|
|
32
|
-
srOnly: "
|
|
2
|
+
root: "_root_1wd65_2",
|
|
3
|
+
toolbar: "_toolbar_1wd65_26",
|
|
4
|
+
heading: "_heading_1wd65_35",
|
|
5
|
+
title: "_title_1wd65_41",
|
|
6
|
+
description: "_description_1wd65_47",
|
|
7
|
+
search: "_search_1wd65_52",
|
|
8
|
+
batchBar: "_batchBar_1wd65_79",
|
|
9
|
+
batchCount: "_batchCount_1wd65_89",
|
|
10
|
+
batchActions: "_batchActions_1wd65_95",
|
|
11
|
+
scroller: "_scroller_1wd65_101",
|
|
12
|
+
scrollerVirtualized: "_scrollerVirtualized_1wd65_111",
|
|
13
|
+
table: "_table_1wd65_117",
|
|
14
|
+
row: "_row_1wd65_199",
|
|
15
|
+
controlCol: "_controlCol_1wd65_205",
|
|
16
|
+
controlCell: "_controlCell_1wd65_209",
|
|
17
|
+
sortButton: "_sortButton_1wd65_215",
|
|
18
|
+
emptyCell: "_emptyCell_1wd65_263",
|
|
19
|
+
expansionRow: "_expansionRow_1wd65_270",
|
|
20
|
+
expansionGrid: "_expansionGrid_1wd65_276",
|
|
21
|
+
expansionInner: "_expansionInner_1wd65_280",
|
|
22
|
+
expandButton: "_expandButton_1wd65_285",
|
|
23
|
+
chevron: "_chevron_1wd65_308",
|
|
24
|
+
shimmer: "_shimmer_1wd65_323",
|
|
25
|
+
footer: "_footer_1wd65_350",
|
|
26
|
+
pageSize: "_pageSize_1wd65_360",
|
|
27
|
+
range: "_range_1wd65_386",
|
|
28
|
+
pageButtons: "_pageButtons_1wd65_391",
|
|
29
|
+
pageButton: "_pageButton_1wd65_391",
|
|
30
|
+
srOnly: "_srOnly_1wd65_432"
|
|
33
31
|
};
|
|
34
32
|
//#endregion
|
|
35
33
|
export { e as default };
|