@caspeco/casper-ui-library 11.4.0 → 12.1.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 +5 -5
- package/dist/components/accordion/accordion-item.js +11 -11
- package/dist/components/accordion/accordion-panel.js +4 -4
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +14 -14
- package/dist/components/alert/helper.d.ts +3 -3
- package/dist/components/alert/helper.d.ts.map +1 -1
- package/dist/components/alert/helper.js +1 -1
- package/dist/components/badge/badge.js +19 -19
- package/dist/components/badge/helper.d.ts +3 -3
- package/dist/components/badge/helper.d.ts.map +1 -1
- package/dist/components/badge/helper.js +1 -1
- package/dist/components/box/box.composition.d.ts.map +1 -1
- package/dist/components/box/box.js +3 -3
- package/dist/components/breadcrumbs/breadcrumb-item.js +4 -4
- package/dist/components/breadcrumbs/breadcrumb-link.js +3 -3
- package/dist/components/breadcrumbs/breadcrumbs.js +25 -25
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox-icon.js +3 -3
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.js +31 -30
- package/dist/components/collapsible/collapsible.translations.d.ts +6 -0
- package/dist/components/collapsible/collapsible.translations.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.translations.js +54 -0
- package/dist/components/collapsible/types.d.ts +0 -6
- package/dist/components/collapsible/types.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.d.ts +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +67 -65
- package/dist/components/combobox/combobox-item.js +9 -9
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +96 -95
- package/dist/components/combobox/combobox-recipe.js +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +91 -91
- package/dist/components/combobox/combobox.translations.d.ts +10 -0
- package/dist/components/combobox/combobox.translations.d.ts.map +1 -0
- package/dist/components/combobox/combobox.translations.js +102 -0
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/combobox/types.d.ts +0 -15
- package/dist/components/combobox/types.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +164 -163
- package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
- package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-multi-picker.js +20 -21
- package/dist/components/date-picker/date-picker-date-cell.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-date-cell.js +27 -27
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-header.js +83 -115
- package/dist/components/date-picker/date-picker-week-cell.js +5 -5
- package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +20 -21
- package/dist/components/date-picker/date-picker.translations.d.ts +6 -0
- package/dist/components/date-picker/date-picker.translations.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.translations.js +54 -0
- package/dist/components/date-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-range-picker.js +15 -16
- package/dist/components/date-picker/date-week-picker.d.ts +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-week-picker.js +13 -14
- package/dist/components/date-picker/types.d.ts +4 -10
- package/dist/components/date-picker/types.d.ts.map +1 -1
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/divider/divider.js +4 -4
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/drawer/inline-drawer.js +5 -5
- package/dist/components/fieldset/fieldset-error-text.js +3 -3
- package/dist/components/fieldset/fieldset-helper-text.js +3 -3
- package/dist/components/fieldset/fieldset-legend.js +3 -3
- package/dist/components/fieldset/fieldset.js +3 -3
- package/dist/components/flex/flex.js +3 -3
- package/dist/components/form-control/form-control.js +3 -3
- package/dist/components/form-control/form-error-message.js +3 -3
- package/dist/components/form-control/form-helper-text.js +3 -3
- package/dist/components/form-control/form-label.d.ts.map +1 -1
- package/dist/components/form-control/form-label.js +6 -6
- package/dist/components/grid/grid-item.js +3 -3
- package/dist/components/grid/grid.js +3 -3
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/components/heading/heading.js +5 -5
- package/dist/components/highlight/highlight.js +4 -4
- package/dist/components/icon/create-icon.d.ts +2 -2
- package/dist/components/icon/create-icon.d.ts.map +1 -1
- package/dist/components/icon/create-icon.js +8 -8
- package/dist/components/icon/icon.composition.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/image/image.js +3 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts +1 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +76 -75
- package/dist/components/image-upload/image-upload-icons.js +11 -11
- package/dist/components/image-upload/image-upload-modal.d.ts +2 -3
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +70 -70
- package/dist/components/image-upload/image-upload.d.ts +1 -1
- package/dist/components/image-upload/image-upload.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload.js +44 -45
- package/dist/components/image-upload/image-upload.translations.d.ts +12 -0
- package/dist/components/image-upload/image-upload.translations.d.ts.map +1 -0
- package/dist/components/image-upload/image-upload.translations.js +126 -0
- package/dist/components/image-upload/types.d.ts +0 -3
- package/dist/components/image-upload/types.d.ts.map +1 -1
- package/dist/components/input/helper.js +1 -1
- package/dist/components/input/input-recipe.js +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +6 -6
- package/dist/components/link/link.js +3 -3
- package/dist/components/list/list-item.js +3 -3
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/list/list.js +4 -4
- package/dist/components/menu/menu-box-button.js +4 -4
- package/dist/components/menu/menu-button.js +4 -4
- package/dist/components/menu/menu-divider.js +1 -1
- package/dist/components/menu/menu-group.d.ts.map +1 -1
- package/dist/components/menu/menu-group.js +12 -12
- package/dist/components/menu/menu-icon-button.js +4 -4
- package/dist/components/menu/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-item.js +8 -8
- package/dist/components/menu/menu-list.js +3 -3
- package/dist/components/menu/menu-recipe.d.ts.map +1 -1
- package/dist/components/menu/menu-recipe.js +1 -1
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/message/message.js +9 -9
- package/dist/components/modal/modal-body.js +3 -3
- package/dist/components/modal/modal-close-button.js +6 -6
- package/dist/components/modal/modal-footer.js +3 -3
- package/dist/components/modal/modal-header.js +3 -3
- package/dist/components/modal/modal.composition.d.ts.map +1 -1
- package/dist/components/modal/modal.js +8 -8
- package/dist/components/navigation-list/navigation-list-item.js +13 -13
- package/dist/components/navigation-list/navigation-list.js +4 -4
- package/dist/components/paginator/paginator-recipe.d.ts.map +1 -1
- package/dist/components/paginator/paginator-recipe.js +3 -3
- package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
- package/dist/components/paginator/paginator.d.ts +1 -4
- package/dist/components/paginator/paginator.d.ts.map +1 -1
- package/dist/components/paginator/paginator.js +31 -30
- package/dist/components/paginator/paginator.translations.d.ts +7 -0
- package/dist/components/paginator/paginator.translations.d.ts.map +1 -0
- package/dist/components/paginator/paginator.translations.js +66 -0
- package/dist/components/phone-input/country-data.d.ts +2 -2
- package/dist/components/phone-input/country-data.d.ts.map +1 -1
- package/dist/components/phone-input/country-list.js +6 -6
- package/dist/components/phone-input/country-selector.d.ts +1 -4
- package/dist/components/phone-input/country-selector.d.ts.map +1 -1
- package/dist/components/phone-input/country-selector.js +86 -84
- package/dist/components/phone-input/phone-input-helpers.d.ts +4 -5
- package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input-helpers.js +33 -34
- package/dist/components/phone-input/phone-input.d.ts +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input.js +38 -38
- package/dist/components/phone-input/phone-input.translations.d.ts +10 -0
- package/dist/components/phone-input/phone-input.translations.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.translations.js +102 -0
- package/dist/components/phone-input/types.d.ts +0 -3
- package/dist/components/phone-input/types.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.d.ts +0 -3
- package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.js +82 -81
- package/dist/components/quantity-button/quantity-button.composition.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.js +13 -13
- package/dist/components/radio/hover-styles.js +1 -1
- package/dist/components/radio/radio-group-recipe.js +1 -1
- package/dist/components/radio/radio-group.js +4 -4
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/radio/radio.js +15 -15
- package/dist/components/radio-card/hover-styles.js +1 -1
- package/dist/components/radio-card/radio-card-group.d.ts.map +1 -1
- package/dist/components/radio-card/radio-card-group.js +4 -4
- package/dist/components/radio-card/radio-card.d.ts +1 -1
- package/dist/components/radio-card/radio-card.js +10 -10
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +0 -2
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +130 -129
- package/dist/components/rich-text-editor/rich-text-editor-recipe.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-recipe.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +23 -26
- package/dist/components/rich-text-editor/{translations.d.ts → rich-text-editor.translations.d.ts} +3 -5
- package/dist/components/rich-text-editor/rich-text-editor.translations.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.translations.js +234 -0
- package/dist/components/rich-text-editor/rich-text-renderer.js +4 -4
- package/dist/components/rich-text-editor/types.d.ts +0 -2
- package/dist/components/rich-text-editor/types.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +6 -6
- package/dist/components/select/select-recipe.js +1 -1
- package/dist/components/select/select.js +6 -6
- package/dist/components/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton-text.js +4 -4
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +4 -4
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +6 -6
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/stack/stack.js +3 -3
- package/dist/components/stepper/step-context.d.ts +4 -4
- package/dist/components/stepper/step-context.d.ts.map +1 -1
- package/dist/components/stepper/step.d.ts.map +1 -1
- package/dist/components/stepper/step.js +28 -28
- package/dist/components/stepper/stepper.js +9 -9
- package/dist/components/stepper/types.d.ts +4 -4
- package/dist/components/stepper/types.d.ts.map +1 -1
- package/dist/components/switch/hover-styles.js +1 -1
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/table/table-cell.d.ts +1 -3
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +44 -47
- package/dist/components/table/table-column-resize-handle.d.ts.map +1 -1
- package/dist/components/table/table-column-resize-handle.js +23 -22
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +82 -80
- package/dist/components/table/table-context-provider.d.ts +1 -4
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +137 -140
- package/dist/components/table/table-drag-accessibility.d.ts +3 -3
- package/dist/components/table/table-drag-accessibility.d.ts.map +1 -1
- package/dist/components/table/table-drag-accessibility.js +10 -14
- package/dist/components/table/table-filter.d.ts.map +1 -1
- package/dist/components/table/table-filter.js +60 -60
- package/dist/components/table/table-header-dropdown.d.ts +0 -2
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +29 -28
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +56 -59
- package/dist/components/table/table-recipe.js +1 -1
- package/dist/components/table/table-row-drag-handle.d.ts +1 -3
- package/dist/components/table/table-row-drag-handle.d.ts.map +1 -1
- package/dist/components/table/table-row-drag-handle.js +11 -10
- package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -3
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +10 -9
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +5 -6
- package/dist/components/table/table-sorted-reorder-prompt.d.ts +1 -3
- package/dist/components/table/table-sorted-reorder-prompt.d.ts.map +1 -1
- package/dist/components/table/table-sorted-reorder-prompt.js +29 -28
- package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-actions.js +4 -4
- package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-add-button.js +4 -4
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +110 -108
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +14 -14
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +31 -32
- package/dist/components/table/table.translations.d.ts +45 -0
- package/dist/components/table/table.translations.d.ts.map +1 -0
- package/dist/components/table/table.translations.js +522 -0
- package/dist/components/table/types.d.ts +0 -5
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/tab-list.js +3 -3
- package/dist/components/tabs/tab-panel.js +3 -3
- package/dist/components/tabs/tab-panels.js +3 -3
- package/dist/components/tabs/tab-with-image.js +11 -11
- package/dist/components/tabs/tab.js +4 -4
- package/dist/components/tabs/tabs-recipe.js +1 -1
- package/dist/components/tabs/tabs.js +3 -3
- package/dist/components/tabs/types.d.ts +2 -2
- package/dist/components/tabs/types.d.ts.map +1 -1
- package/dist/components/tag/tag-recipe.js +5 -5
- package/dist/components/tag/tag.js +28 -28
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.js +5 -5
- package/dist/components/textarea/textarea-recipe.js +1 -1
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/toaster/toast-store.d.ts +2 -2
- package/dist/components/toaster/toast-store.d.ts.map +1 -1
- package/dist/components/toaster/toaster.js +10 -10
- package/dist/components/toggle-button/toggle-button.js +3 -3
- package/dist/components/toggle-button/use-button-children.js +11 -11
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +10 -10
- package/dist/index.js +404 -402
- package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +13 -19
- package/dist/test-utils/render-with-theme.d.ts +5 -1
- package/dist/test-utils/render-with-theme.d.ts.map +1 -1
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/locale-provider.d.ts +9 -0
- package/dist/theme/locale-provider.d.ts.map +1 -0
- package/dist/theme/locale-provider.js +14 -0
- package/dist/theme/locale-provider.spec.d.ts +2 -0
- package/dist/theme/locale-provider.spec.d.ts.map +1 -0
- package/dist/theme/theme-casper-ui.d.ts.map +1 -1
- package/dist/theme/theme-casper-ui.js +1 -1
- package/dist/theme/theme-locale.d.ts +7 -0
- package/dist/theme/theme-locale.d.ts.map +1 -0
- package/dist/theme/theme-locale.js +8 -0
- package/dist/theme/theme-provider.d.ts +4 -1
- package/dist/theme/theme-provider.d.ts.map +1 -1
- package/dist/theme/theme-provider.js +30 -25
- package/dist/theme/theme-style-props.d.ts +25 -25
- package/dist/theme/theme-style-props.d.ts.map +1 -1
- package/dist/theme/theme-types.d.ts +46 -10
- package/dist/theme/theme-types.d.ts.map +1 -1
- package/dist/theme/theme-types.js +2 -2
- package/dist/theme/theme-types.spec.d.ts +2 -0
- package/dist/theme/theme-types.spec.d.ts.map +1 -0
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +1 -1
- package/dist/theme/translations.d.ts +14 -0
- package/dist/theme/translations.d.ts.map +1 -0
- package/dist/theme/translations.js +10 -0
- package/dist/theme/translations.spec.d.ts +2 -0
- package/dist/theme/translations.spec.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/components/collapsible/translations.d.ts +0 -32
- package/dist/components/collapsible/translations.d.ts.map +0 -1
- package/dist/components/collapsible/translations.js +0 -30
- package/dist/components/combobox/translations.d.ts +0 -9
- package/dist/components/combobox/translations.d.ts.map +0 -1
- package/dist/components/combobox/translations.js +0 -57
- package/dist/components/image-upload/translations.d.ts +0 -73
- package/dist/components/image-upload/translations.d.ts.map +0 -1
- package/dist/components/image-upload/translations.js +0 -66
- package/dist/components/paginator/translations.d.ts +0 -9
- package/dist/components/paginator/translations.d.ts.map +0 -1
- package/dist/components/paginator/translations.js +0 -36
- package/dist/components/phone-input/translations.d.ts +0 -60
- package/dist/components/phone-input/translations.d.ts.map +0 -1
- package/dist/components/phone-input/translations.js +0 -54
- package/dist/components/rich-text-editor/translations.d.ts.map +0 -1
- package/dist/components/rich-text-editor/translations.js +0 -120
- package/dist/components/table/translations.d.ts +0 -308
- package/dist/components/table/translations.d.ts.map +0 -1
- package/dist/components/table/translations.js +0 -267
|
@@ -1,180 +1,182 @@
|
|
|
1
1
|
"use no memo";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
2
|
+
import { useLocale as e } from "../../theme/theme-locale.js";
|
|
3
|
+
import { ThemeColor as t, ThemeIconSize as n, ThemeShadow as r, ThemeSpace as i } from "../../theme/theme-types.js";
|
|
4
|
+
import { GripMoreIcon as a } from "../icon/icons/grip-more-icon.js";
|
|
5
|
+
import { SlidersIcon as o } from "../icon/icons/sliders-icon.js";
|
|
6
|
+
import { Text as s } from "../text/text.js";
|
|
7
|
+
import { Menu as c } from "../menu/menu.js";
|
|
8
|
+
import { MenuButton as l } from "../menu/menu-button.js";
|
|
9
|
+
import { MenuDivider as u } from "../menu/menu-divider.js";
|
|
10
|
+
import { MenuItem as d } from "../menu/menu-item.js";
|
|
11
|
+
import { MenuList as f } from "../menu/menu-list.js";
|
|
12
|
+
import { Checkbox as p } from "../checkbox/checkbox.js";
|
|
13
|
+
import { useComponentTranslations as m } from "../../theme/translations.js";
|
|
14
|
+
import { Radio as h } from "../radio/radio.js";
|
|
15
|
+
import { RadioGroup as g } from "../radio/radio-group.js";
|
|
16
|
+
import { Switch as _ } from "../switch/switch.js";
|
|
17
|
+
import { DEFAULT_PAGE_SIZE_OPTIONS as v } from "./table.constants.js";
|
|
18
|
+
import { getColumnLabel as y } from "./helper.js";
|
|
19
|
+
import { useTableContext as b } from "./table-context.js";
|
|
20
|
+
import { tableTranslations as x } from "./table.translations.js";
|
|
21
|
+
import { closestCenter as S } from "../../node_modules/@dnd-kit/collision/dist/index.js";
|
|
22
|
+
import { DragDropProvider as C } from "../../node_modules/@dnd-kit/react/index.js";
|
|
23
|
+
import { SortableKeyboardPlugin as w, isSortableOperation as T } from "../../node_modules/@dnd-kit/dom/sortable.js";
|
|
24
|
+
import { useSortable as E } from "../../node_modules/@dnd-kit/react/sortable.js";
|
|
25
|
+
import { memo as D, useCallback as O, useState as k } from "react";
|
|
26
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
27
|
+
import { Box as N, Flex as P, Portal as F } from "@chakra-ui/react";
|
|
28
|
+
import { flushSync as I } from "react-dom";
|
|
27
29
|
//#region lib/components/table/table-toolbar-settings.tsx
|
|
28
|
-
var
|
|
30
|
+
var L = (e, t, n, r) => {
|
|
29
31
|
if (!r || r.sourceId === e) return "none";
|
|
30
32
|
let i = n.findIndex((e) => e.id === r.sourceId), a = n.findIndex((e) => e.id === r.targetId);
|
|
31
33
|
return i < 0 || a < 0 || i === a ? "none" : i < a && t > i && t <= a ? "translateY(-100%)" : i > a && t >= a && t < i ? "translateY(100%)" : "none";
|
|
32
|
-
},
|
|
33
|
-
if (!
|
|
34
|
+
}, R = (e) => {
|
|
35
|
+
if (!T(e)) return null;
|
|
34
36
|
let { source: t, target: n } = e;
|
|
35
37
|
return t && n ? {
|
|
36
38
|
source: t,
|
|
37
39
|
target: n
|
|
38
40
|
} : null;
|
|
39
|
-
},
|
|
40
|
-
let b =
|
|
41
|
-
let n =
|
|
42
|
-
return n.localeCompare(r,
|
|
43
|
-
}),
|
|
41
|
+
}, z = ({ pageSize: r, onPageSizeChange: a }) => {
|
|
42
|
+
let S = b(), w = e(), T = m(x), E = !!a && Number.isInteger(r), [D, z] = k(null), B = S.table.getAllLeafColumns().filter((e) => e.getCanHide()), H = B.filter((e) => e.getIsVisible()), U = B.filter((e) => !e.getIsVisible()).sort((e, t) => {
|
|
43
|
+
let n = y(e.columnDef.header, e.id), r = y(t.columnDef.header, t.id);
|
|
44
|
+
return n.localeCompare(r, w, { sensitivity: "base" });
|
|
45
|
+
}), W = O(() => S.table.getAllColumns().length === Object.keys(S.breakingContentState).length && !Object.values(S.breakingContentState).includes(!1), [S.breakingContentState, S.table]), G = O(({ checked: e }) => {
|
|
44
46
|
let t = {};
|
|
45
|
-
|
|
47
|
+
S.table.getAllColumns().forEach((n) => {
|
|
46
48
|
t[n.id] = e;
|
|
47
|
-
}),
|
|
48
|
-
}, [
|
|
49
|
-
return /* @__PURE__ */
|
|
49
|
+
}), S.setBreakingContentState(t), S.onBreakingContentChange?.(t);
|
|
50
|
+
}, [S]);
|
|
51
|
+
return /* @__PURE__ */ j(P, { children: /* @__PURE__ */ M(c, {
|
|
50
52
|
closeOnSelect: !1,
|
|
51
53
|
isLazy: !0,
|
|
52
|
-
children: [/* @__PURE__ */
|
|
53
|
-
"aria-label":
|
|
54
|
+
children: [/* @__PURE__ */ j(l, {
|
|
55
|
+
"aria-label": T.presets,
|
|
54
56
|
variant: "ghost",
|
|
55
57
|
p: "unset",
|
|
56
58
|
w: "40px",
|
|
57
59
|
h: "40px",
|
|
58
|
-
children: /* @__PURE__ */
|
|
59
|
-
}), /* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
color:
|
|
62
|
-
py:
|
|
63
|
-
px:
|
|
64
|
-
children:
|
|
60
|
+
children: /* @__PURE__ */ j(o, { size: n.Medium })
|
|
61
|
+
}), /* @__PURE__ */ j(F, { children: /* @__PURE__ */ M(f, { children: [
|
|
62
|
+
/* @__PURE__ */ j(s, {
|
|
63
|
+
color: t.OnSurfaceSubdued,
|
|
64
|
+
py: i.Small,
|
|
65
|
+
px: i.Medium,
|
|
66
|
+
children: T.shownInTable
|
|
65
67
|
}),
|
|
66
|
-
/* @__PURE__ */ N
|
|
68
|
+
/* @__PURE__ */ M(N, {
|
|
67
69
|
maxHeight: "400px",
|
|
68
70
|
overflowY: "auto",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ j(C, {
|
|
70
72
|
onDragOver: (e) => {
|
|
71
|
-
let t =
|
|
72
|
-
t &&
|
|
73
|
+
let t = R(e.operation);
|
|
74
|
+
t && z({
|
|
73
75
|
sourceId: String(t.source.id),
|
|
74
76
|
targetId: String(t.target.id)
|
|
75
77
|
});
|
|
76
78
|
},
|
|
77
79
|
onDragEnd: (e) => {
|
|
78
|
-
let t =
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
let t = R(e.operation);
|
|
81
|
+
I(() => {
|
|
82
|
+
z(null), t && S.handleDragEnd(String(t.source.id), String(t.target.id));
|
|
81
83
|
});
|
|
82
84
|
},
|
|
83
|
-
children:
|
|
85
|
+
children: H.map((e, t) => /* @__PURE__ */ j(V, {
|
|
84
86
|
column: e,
|
|
85
87
|
index: t,
|
|
86
|
-
isDisabled:
|
|
87
|
-
translateY:
|
|
88
|
+
isDisabled: H.length === 1,
|
|
89
|
+
translateY: L(e.id, t, H, D)
|
|
88
90
|
}, e.id))
|
|
89
|
-
}),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
color:
|
|
93
|
-
py:
|
|
94
|
-
px:
|
|
95
|
-
children:
|
|
91
|
+
}), U.length > 0 && /* @__PURE__ */ M(A, { children: [
|
|
92
|
+
/* @__PURE__ */ j(u, {}),
|
|
93
|
+
/* @__PURE__ */ j(s, {
|
|
94
|
+
color: t.OnSurfaceSubdued,
|
|
95
|
+
py: i.Small,
|
|
96
|
+
px: i.Medium,
|
|
97
|
+
children: T.hiddenInTable
|
|
96
98
|
}),
|
|
97
|
-
|
|
99
|
+
U.map((e) => /* @__PURE__ */ M(d, {
|
|
98
100
|
itemType: "checkbox",
|
|
99
101
|
value: e.id,
|
|
100
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ j(A, { children: e.columnDef.header }), /* @__PURE__ */ j(p, {
|
|
101
103
|
isChecked: e.getIsVisible(),
|
|
102
104
|
onCheckedChange: ({ checked: t }) => {
|
|
103
105
|
if (e.toggleVisibility(!!t), t) {
|
|
104
|
-
let t =
|
|
105
|
-
t.push(e.id),
|
|
106
|
+
let t = S.columnOrder.filter((t) => t !== e.id);
|
|
107
|
+
t.push(e.id), S.setColumnOrder(t);
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
})]
|
|
109
111
|
}, e.id))
|
|
110
112
|
] })]
|
|
111
113
|
}),
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
color:
|
|
116
|
-
py:
|
|
117
|
-
px:
|
|
118
|
-
children:
|
|
114
|
+
/* @__PURE__ */ j(u, {}),
|
|
115
|
+
E && /* @__PURE__ */ M(A, { children: [
|
|
116
|
+
/* @__PURE__ */ j(s, {
|
|
117
|
+
color: t.OnSurfaceSubdued,
|
|
118
|
+
py: i.Small,
|
|
119
|
+
px: i.Medium,
|
|
120
|
+
children: T.rowsPerPage
|
|
119
121
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ j(g, {
|
|
121
123
|
gap: "unset",
|
|
122
|
-
value: String(
|
|
123
|
-
onValueChange: (e) =>
|
|
124
|
-
children:
|
|
124
|
+
value: String(r),
|
|
125
|
+
onValueChange: (e) => a?.(Number(e.value)),
|
|
126
|
+
children: v.map((e) => /* @__PURE__ */ M(d, {
|
|
125
127
|
itemType: "radio",
|
|
126
128
|
value: String(e),
|
|
127
|
-
children: [
|
|
129
|
+
children: [T.numberOfRows(e), /* @__PURE__ */ j(h, { value: String(e) })]
|
|
128
130
|
}, e))
|
|
129
131
|
}),
|
|
130
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ j(u, {})
|
|
131
133
|
] }),
|
|
132
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ M(d, {
|
|
133
135
|
itemType: "switch",
|
|
134
136
|
value: "breakingContent",
|
|
135
|
-
children: [
|
|
136
|
-
onCheckedChange:
|
|
137
|
-
isChecked:
|
|
137
|
+
children: [T.breakingContent, /* @__PURE__ */ j(_, {
|
|
138
|
+
onCheckedChange: G,
|
|
139
|
+
isChecked: W()
|
|
138
140
|
})]
|
|
139
141
|
})
|
|
140
142
|
] }) })]
|
|
141
143
|
}) });
|
|
142
|
-
},
|
|
143
|
-
let { ref: l, handleRef:
|
|
144
|
-
id:
|
|
144
|
+
}, B = [w], V = ({ column: e, index: o, isDisabled: s, translateY: c }) => {
|
|
145
|
+
let { ref: l, handleRef: u, isDragging: f } = E({
|
|
146
|
+
id: e.id,
|
|
145
147
|
index: o,
|
|
146
|
-
collisionDetector:
|
|
147
|
-
plugins:
|
|
148
|
+
collisionDetector: S,
|
|
149
|
+
plugins: B
|
|
148
150
|
});
|
|
149
|
-
return /* @__PURE__ */
|
|
151
|
+
return /* @__PURE__ */ j(N, {
|
|
150
152
|
ref: l,
|
|
151
153
|
role: "none",
|
|
152
|
-
opacity:
|
|
153
|
-
backgroundColor:
|
|
154
|
+
opacity: f ? .95 : 1,
|
|
155
|
+
backgroundColor: t.Background,
|
|
154
156
|
transform: c,
|
|
155
|
-
transition:
|
|
156
|
-
boxShadow:
|
|
157
|
-
children: /* @__PURE__ */
|
|
157
|
+
transition: f ? void 0 : "transform 200ms ease",
|
|
158
|
+
boxShadow: f ? r.Medium : void 0,
|
|
159
|
+
children: /* @__PURE__ */ M(d, {
|
|
158
160
|
itemType: "checkbox",
|
|
159
|
-
value:
|
|
160
|
-
children: [/* @__PURE__ */
|
|
161
|
+
value: e.id,
|
|
162
|
+
children: [/* @__PURE__ */ M(P, {
|
|
161
163
|
alignItems: "center",
|
|
162
|
-
gap:
|
|
163
|
-
children: [/* @__PURE__ */
|
|
164
|
-
ref:
|
|
165
|
-
cursor:
|
|
164
|
+
gap: i.XSmall,
|
|
165
|
+
children: [/* @__PURE__ */ j(N, {
|
|
166
|
+
ref: u,
|
|
167
|
+
cursor: f ? "grabbing" : "grab",
|
|
166
168
|
display: "inline-flex",
|
|
167
169
|
alignItems: "center",
|
|
168
170
|
flexShrink: 0,
|
|
169
|
-
children: /* @__PURE__ */
|
|
170
|
-
}), /* @__PURE__ */
|
|
171
|
-
}), !
|
|
171
|
+
children: /* @__PURE__ */ j(a, { size: n.Medium })
|
|
172
|
+
}), /* @__PURE__ */ j(A, { children: e.columnDef.header })]
|
|
173
|
+
}), !f && /* @__PURE__ */ j(p, {
|
|
172
174
|
isDisabled: s,
|
|
173
|
-
isChecked:
|
|
174
|
-
onCheckedChange: ({ checked:
|
|
175
|
+
isChecked: e.getIsVisible(),
|
|
176
|
+
onCheckedChange: ({ checked: t }) => e.toggleVisibility(!!t)
|
|
175
177
|
})]
|
|
176
178
|
})
|
|
177
179
|
});
|
|
178
|
-
},
|
|
180
|
+
}, H = D(z);
|
|
179
181
|
//#endregion
|
|
180
|
-
export {
|
|
182
|
+
export { H as TableToolbarSettings };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-toolbar.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"table-toolbar.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAoD,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAEjG,OAAO,EAA8C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOnF,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,iBAAiB,GAAI,+BAA+B,iBAAiB,GAAG,eAAe,gCAqF5F,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAA8B,OAAO,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use no memo";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeColor as e, ThemeFont as t, ThemeFontSize as n, ThemeSpace as r } from "../../theme/theme-types.js";
|
|
3
3
|
import { Text as i } from "../text/text.js";
|
|
4
4
|
import { useTableContext as a } from "./table-context.js";
|
|
5
5
|
import { TableToolbarActions as o } from "./table-toolbar-actions.js";
|
|
@@ -7,10 +7,10 @@ import { TableToolbarAddButton as s } from "./table-toolbar-add-button.js";
|
|
|
7
7
|
import { TableToolbarSearch as c } from "./table-toolbar-search.js";
|
|
8
8
|
import { TableToolbarSettings as l } from "./table-toolbar-settings.js";
|
|
9
9
|
import { Children as u, memo as d, useMemo as f } from "react";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
+
import { Box as h, Flex as g, useMediaQuery as _ } from "@chakra-ui/react";
|
|
12
12
|
var v = d(({ title: d, children: v, ...y }) => {
|
|
13
|
-
let b = a(), [x] =
|
|
13
|
+
let b = a(), [x] = _(["(min-width: 48em)"]), S = b.id ? `${b.id}-toolbar` : void 0, C = f(() => {
|
|
14
14
|
let e = null, t = null, n = null, r = null;
|
|
15
15
|
return u.forEach(v, (i) => {
|
|
16
16
|
if (!i || typeof i != "object" || !("type" in i)) return;
|
|
@@ -22,20 +22,20 @@ var v = d(({ title: d, children: v, ...y }) => {
|
|
|
22
22
|
actions: n,
|
|
23
23
|
addButton: r
|
|
24
24
|
};
|
|
25
|
-
}, [v]), w = f(() => d ? /* @__PURE__ */
|
|
26
|
-
fontSize:
|
|
25
|
+
}, [v]), w = f(() => d ? /* @__PURE__ */ p(i, {
|
|
26
|
+
fontSize: n.X2Large,
|
|
27
27
|
color: e.OnBackgroundHeader,
|
|
28
28
|
fontWeight: "bold",
|
|
29
|
-
fontFamily:
|
|
29
|
+
fontFamily: t.Header,
|
|
30
30
|
children: d
|
|
31
|
-
}) : null, [d]), T = f(() => /* @__PURE__ */ g
|
|
31
|
+
}) : null, [d]), T = f(() => /* @__PURE__ */ p(g, {
|
|
32
32
|
direction: "column",
|
|
33
33
|
gap: r.Medium,
|
|
34
34
|
mb: r.Medium,
|
|
35
|
-
children: /* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ m(g, {
|
|
36
36
|
justifyContent: "space-between",
|
|
37
37
|
alignItems: "center",
|
|
38
|
-
children: [w, /* @__PURE__ */
|
|
38
|
+
children: [w, /* @__PURE__ */ m(g, {
|
|
39
39
|
gap: r.Medium,
|
|
40
40
|
children: [
|
|
41
41
|
C.search,
|
|
@@ -45,14 +45,14 @@ var v = d(({ title: d, children: v, ...y }) => {
|
|
|
45
45
|
]
|
|
46
46
|
})]
|
|
47
47
|
})
|
|
48
|
-
}), [w, C]), E = f(() => /* @__PURE__ */
|
|
48
|
+
}), [w, C]), E = f(() => /* @__PURE__ */ m(g, {
|
|
49
49
|
direction: "column",
|
|
50
50
|
gap: r.Medium,
|
|
51
51
|
mb: r.Medium,
|
|
52
|
-
children: [/* @__PURE__ */
|
|
52
|
+
children: [/* @__PURE__ */ m(g, {
|
|
53
53
|
justifyContent: "space-between",
|
|
54
54
|
children: [w, C.addButton]
|
|
55
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ m(g, {
|
|
56
56
|
justifyContent: "space-between",
|
|
57
57
|
gap: r.Medium,
|
|
58
58
|
children: [
|
|
@@ -62,7 +62,7 @@ var v = d(({ title: d, children: v, ...y }) => {
|
|
|
62
62
|
]
|
|
63
63
|
})]
|
|
64
64
|
}), [w, C]);
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ p(h, {
|
|
66
66
|
id: S,
|
|
67
67
|
...y,
|
|
68
68
|
children: x ? T : E
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.composition.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC;AA8GH,eAAO,MAAM,UAAU,mCAoEtB,CAAC;AAEF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"table.composition.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.composition.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC;AA8GH,eAAO,MAAM,UAAU,mCAoEtB,CAAC;AAEF,eAAO,MAAM,WAAW,mCAwDvB,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAqBD,eAAO,MAAM,aAAa,mCAqEzB,CAAC;AAKF,eAAO,MAAM,uBAAuB,mCAwCnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,mCAkElC,CAAC;AAIF,eAAO,MAAM,cAAc,mCA8D1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mCAuB5B,CAAC;AAEF,eAAO,MAAM,gCAAgC,mCAI5C,CAAC"}
|
|
@@ -4,5 +4,5 @@ import { TableData, TableProps } from './types.js';
|
|
|
4
4
|
*
|
|
5
5
|
* @see Docs https://caspeco.github.io/casper-ui-library/components/table
|
|
6
6
|
*/
|
|
7
|
-
export declare function Table<TData extends TableData>({ columns, data, totalDataCount,
|
|
7
|
+
export declare function Table<TData extends TableData>({ columns, data, totalDataCount, expandedState, initialExpandedState, initialBreakingContentState, initialColumnVisibilityState, columnVisibilityState, onColumnVisibilityChange, onExpandedChange, onBreakingContentChange, getRowId, getRowActions, id, customRowIndication, onSortingChange, initialSortingState, sortingState, onSelectionChange, initialSelectionState, selectionState, selectionActions, disableSelectionCheckbox, enableColumnReorder, columnOrderState, initialColumnOrder, onColumnOrderChange, enableColumnResizing, initialColumnSizingState, onColumnSizingChange, enableRowReorder, onRowOrderChange, children, }: TableProps<TData>): import('react').JSX.Element;
|
|
8
8
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,KAAK,SAAS,SAAS,EAAE,EAC9C,OAAO,EACP,IAAI,EACJ,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,KAAK,SAAS,SAAS,EAAE,EAC9C,OAAO,EACP,IAAI,EACJ,cAAc,EACd,aAAa,EACb,oBAAyB,EACzB,2BAAgC,EAChC,4BAA4B,EAC5B,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,QAAQ,EACR,aAAa,EACb,EAAE,EACF,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,GACR,EAAE,UAAU,CAAC,KAAK,CAAC,+BAuCnB"}
|
|
@@ -2,42 +2,41 @@
|
|
|
2
2
|
import { TableProvider as e } from "./table-context-provider.js";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/components/table/table.tsx
|
|
5
|
-
function n({ columns: n, data: r, totalDataCount: i,
|
|
5
|
+
function n({ columns: n, data: r, totalDataCount: i, expandedState: a, initialExpandedState: o = {}, initialBreakingContentState: s = {}, initialColumnVisibilityState: c, columnVisibilityState: l, onColumnVisibilityChange: u, onExpandedChange: d, onBreakingContentChange: f, getRowId: p, getRowActions: m, id: h, customRowIndication: g, onSortingChange: _, initialSortingState: v, sortingState: y, onSelectionChange: b, initialSelectionState: x, selectionState: S, selectionActions: C, disableSelectionCheckbox: w, enableColumnReorder: T, columnOrderState: E, initialColumnOrder: D, onColumnOrderChange: O, enableColumnResizing: k, initialColumnSizingState: A, onColumnSizingChange: j, enableRowReorder: M, onRowOrderChange: N, children: P }) {
|
|
6
6
|
return /* @__PURE__ */ t(e, {
|
|
7
7
|
columns: n,
|
|
8
8
|
data: r,
|
|
9
9
|
totalDataCount: i,
|
|
10
|
-
expandedState:
|
|
11
|
-
initialExpandedState:
|
|
12
|
-
initialBreakingContentState:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
children: F
|
|
10
|
+
expandedState: a,
|
|
11
|
+
initialExpandedState: o,
|
|
12
|
+
initialBreakingContentState: s,
|
|
13
|
+
initialColumnVisibilityState: c,
|
|
14
|
+
columnVisibilityState: l,
|
|
15
|
+
onColumnVisibilityChange: u,
|
|
16
|
+
onExpandedChange: d,
|
|
17
|
+
onBreakingContentChange: f,
|
|
18
|
+
getRowId: p,
|
|
19
|
+
getRowActions: m,
|
|
20
|
+
id: h,
|
|
21
|
+
customRowIndication: g,
|
|
22
|
+
onSortingChange: _,
|
|
23
|
+
initialSortingState: v,
|
|
24
|
+
sortingState: y,
|
|
25
|
+
onSelectionChange: b,
|
|
26
|
+
initialSelectionState: x,
|
|
27
|
+
selectionState: S,
|
|
28
|
+
selectionActions: C,
|
|
29
|
+
disableSelectionCheckbox: w,
|
|
30
|
+
enableColumnReorder: T,
|
|
31
|
+
columnOrderState: E,
|
|
32
|
+
initialColumnOrder: D,
|
|
33
|
+
onColumnOrderChange: O,
|
|
34
|
+
enableColumnResizing: k,
|
|
35
|
+
initialColumnSizingState: A,
|
|
36
|
+
onColumnSizingChange: j,
|
|
37
|
+
enableRowReorder: M,
|
|
38
|
+
onRowOrderChange: N,
|
|
39
|
+
children: P
|
|
41
40
|
});
|
|
42
41
|
}
|
|
43
42
|
//#endregion
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type TableTranslation = {
|
|
2
|
+
sortUp: string;
|
|
3
|
+
sortDown: string;
|
|
4
|
+
filter: string;
|
|
5
|
+
filterText: string;
|
|
6
|
+
hideColumn: string;
|
|
7
|
+
pinUpToColumn: string;
|
|
8
|
+
stopPinningColumn: string;
|
|
9
|
+
resizeColumn: (column: string) => string;
|
|
10
|
+
breakingContent: string;
|
|
11
|
+
presets: string;
|
|
12
|
+
new: string;
|
|
13
|
+
showColumns: string;
|
|
14
|
+
collapseRow: (row: number) => string;
|
|
15
|
+
expandRow: (row: number) => string;
|
|
16
|
+
rowsShowing: string;
|
|
17
|
+
settings: string;
|
|
18
|
+
more: string;
|
|
19
|
+
moreActions: string;
|
|
20
|
+
toolbarActions: string;
|
|
21
|
+
filterBoxReset: string;
|
|
22
|
+
filterReset: string;
|
|
23
|
+
selected: (count: number) => string;
|
|
24
|
+
selectedSingular: (count: number) => string;
|
|
25
|
+
rowsPerPage: string;
|
|
26
|
+
numberOfRows: (count: number) => string;
|
|
27
|
+
selectedWithTotal: (count: number, total: number) => string;
|
|
28
|
+
action: string;
|
|
29
|
+
deleteSelectedRows: string;
|
|
30
|
+
shownInTable: string;
|
|
31
|
+
hiddenInTable: string;
|
|
32
|
+
clearSorting: string;
|
|
33
|
+
reorderRow: string;
|
|
34
|
+
cancel: string;
|
|
35
|
+
reorderSortedTitle: string;
|
|
36
|
+
reorderSortedBody: string;
|
|
37
|
+
reorderSortedConfirm: string;
|
|
38
|
+
reorderInstructions: string;
|
|
39
|
+
reorderPickedUp: (position: number, count: number) => string;
|
|
40
|
+
reorderMovedTo: (position: number, count: number) => string;
|
|
41
|
+
reorderDropped: (position: number, count: number) => string;
|
|
42
|
+
reorderCancelled: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const tableTranslations: import('../../theme/translations.js').ComponentTranslations<TableTranslation>;
|
|
45
|
+
//# sourceMappingURL=table.translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.translations.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.translations.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7D,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5D,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5D,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,wEA6hB5B,CAAC"}
|