@acronis-platform/ui-react 0.62.0 → 2.0.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/dist/components/ui/alert/alert.js +118 -60
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/button-group/button-group.js +57 -0
- package/dist/components/ui/button-group/button-group.js.map +1 -0
- package/dist/components/ui/button-icon-menu/button-icon-menu.js +26 -0
- package/dist/components/ui/button-icon-menu/button-icon-menu.js.map +1 -0
- package/dist/components/ui/calendar-panel/calendar-panel.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +1 -1
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/chip/chip.js +33 -33
- package/dist/components/ui/chip/chip.js.map +1 -1
- package/dist/components/ui/data-table/data-table-bulk-actions-bar.js +38 -0
- package/dist/components/ui/data-table/data-table-bulk-actions-bar.js.map +1 -0
- package/dist/components/ui/data-table/data-table-column-header.js +23 -20
- package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/ui/data-table/data-table-expand-trigger.js +23 -15
- package/dist/components/ui/data-table/data-table-expand-trigger.js.map +1 -1
- package/dist/components/ui/data-table/data-table-pagination.js +29 -28
- package/dist/components/ui/data-table/data-table-pagination.js.map +1 -1
- package/dist/components/ui/data-table/data-table-selection.js +7 -0
- package/dist/components/ui/data-table/data-table-selection.js.map +1 -0
- package/dist/components/ui/data-table/data-table-toolbar.js +21 -23
- package/dist/components/ui/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/ui/data-table/data-table-view-options.js +12 -10
- package/dist/components/ui/data-table/data-table-view-options.js.map +1 -1
- package/dist/components/ui/data-table/data-table.js +347 -183
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/date-range-picker/date-range-picker-utils.js +11 -23
- package/dist/components/ui/date-range-picker/date-range-picker-utils.js.map +1 -1
- package/dist/components/ui/date-range-picker/date-range-picker.js +94 -134
- package/dist/components/ui/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +129 -72
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/filter-chips/filter-chips.js +44 -0
- package/dist/components/ui/filter-chips/filter-chips.js.map +1 -0
- package/dist/components/ui/filter-search/filter-search.js +184 -138
- package/dist/components/ui/filter-search/filter-search.js.map +1 -1
- package/dist/components/ui/fitted-actions/fitted-actions.js +139 -0
- package/dist/components/ui/fitted-actions/fitted-actions.js.map +1 -0
- package/dist/components/ui/input-date-picker/input-date-picker.js +103 -93
- package/dist/components/ui/input-date-picker/input-date-picker.js.map +1 -1
- package/dist/components/ui/input-password/input-password.js +76 -66
- package/dist/components/ui/input-password/input-password.js.map +1 -1
- package/dist/components/ui/input-search/input-search.js +9 -9
- package/dist/components/ui/input-search/input-search.js.map +1 -1
- package/dist/components/ui/input-select/input-select.js +8 -8
- package/dist/components/ui/input-select/input-select.js.map +1 -1
- package/dist/components/ui/input-text/input-text.js +77 -66
- package/dist/components/ui/input-text/input-text.js.map +1 -1
- package/dist/components/ui/input-text-area/input-text-area.js +76 -66
- package/dist/components/ui/input-text-area/input-text-area.js.map +1 -1
- package/dist/components/ui/link/link.js +50 -35
- package/dist/components/ui/link/link.js.map +1 -1
- package/dist/components/ui/number-field/number-field.js +1 -1
- package/dist/components/ui/number-field/number-field.js.map +1 -1
- package/dist/components/ui/popover/popover.js +75 -56
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js +46 -30
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/stepper/stepper.js +70 -0
- package/dist/components/ui/stepper/stepper.js.map +1 -0
- package/dist/components/ui/stepper-item/stepper-item.js +97 -0
- package/dist/components/ui/stepper-item/stepper-item.js.map +1 -0
- package/dist/components/ui/table/table-pagination.js +54 -47
- package/dist/components/ui/table/table-pagination.js.map +1 -1
- package/dist/components/ui/table/table-view-options.js +32 -19
- package/dist/components/ui/table/table-view-options.js.map +1 -1
- package/dist/components/ui/table/table.js +112 -63
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/timeline/timeline.js +10 -10
- package/dist/components/ui/timeline/timeline.js.map +1 -1
- package/dist/components/ui/timer/timer.js +47 -0
- package/dist/components/ui/timer/timer.js.map +1 -0
- package/dist/components/ui/toast/toast.js +168 -61
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/truncate-text/middle-truncate.js +20 -0
- package/dist/components/ui/truncate-text/middle-truncate.js.map +1 -0
- package/dist/components/ui/truncate-text/text-width.js +12 -0
- package/dist/components/ui/truncate-text/text-width.js.map +1 -0
- package/dist/components/ui/truncate-text/truncate-text.js +152 -0
- package/dist/components/ui/truncate-text/truncate-text.js.map +1 -0
- package/dist/index.js +516 -471
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js +5 -5
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js +3 -6
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js.map +1 -1
- package/dist/react.js +516 -471
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/alert/alert.d.ts +34 -3
- package/dist/src/components/ui/alert/index.d.ts +2 -2
- package/dist/src/components/ui/button/button.d.ts +1 -1
- package/dist/src/components/ui/button-group/button-group.d.ts +38 -0
- package/dist/src/components/ui/button-group/index.d.ts +1 -0
- package/dist/src/components/ui/button-icon/button-icon.d.ts +1 -1
- package/dist/src/components/ui/button-icon-menu/button-icon-menu.d.ts +28 -0
- package/dist/src/components/ui/button-icon-menu/index.d.ts +1 -0
- package/dist/src/components/ui/button-menu/button-menu.d.ts +1 -1
- package/dist/src/components/ui/calendar-panel/calendar-panel.d.ts +2 -2
- package/dist/src/components/ui/chip/chip.d.ts +1 -1
- package/dist/src/components/ui/data-table/data-table-bulk-actions-bar.d.ts +26 -0
- package/dist/src/components/ui/data-table/data-table-column-header.d.ts +6 -1
- package/dist/src/components/ui/data-table/data-table-expand-trigger.d.ts +4 -0
- package/dist/src/components/ui/data-table/data-table-pagination.d.ts +15 -1
- package/dist/src/components/ui/data-table/data-table-selection.d.ts +11 -0
- package/dist/src/components/ui/data-table/data-table-view-options.d.ts +3 -2
- package/dist/src/components/ui/data-table/data-table.d.ts +88 -3
- package/dist/src/components/ui/data-table/data-table.docs.d.ts +61 -1
- package/dist/src/components/ui/data-table/index.d.ts +3 -1
- package/dist/src/components/ui/date-range-picker/date-range-picker-utils.d.ts +10 -16
- package/dist/src/components/ui/date-range-picker/date-range-picker.d.ts +46 -2
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +8 -1
- package/dist/src/components/ui/dropdown-menu/index.d.ts +1 -1
- package/dist/src/components/ui/filter-chips/filter-chips.d.ts +25 -0
- package/dist/src/components/ui/filter-chips/index.d.ts +1 -0
- package/dist/src/components/ui/filter-search/filter-search.d.ts +39 -1
- package/dist/src/components/ui/fitted-actions/fitted-actions.d.ts +50 -0
- package/dist/src/components/ui/fitted-actions/fitted-actions.docs.d.ts +45 -0
- package/dist/src/components/ui/fitted-actions/index.d.ts +1 -0
- package/dist/src/components/ui/link/index.d.ts +1 -1
- package/dist/src/components/ui/link/link.d.ts +22 -4
- package/dist/src/components/ui/metric/metric.d.ts +1 -1
- package/dist/src/components/ui/popover/popover.d.ts +30 -1
- package/dist/src/components/ui/popover/popover.docs.d.ts +27 -2
- package/dist/src/components/ui/scroll-area/scroll-area.d.ts +24 -0
- package/dist/src/components/ui/stepper/index.d.ts +1 -0
- package/dist/src/components/ui/stepper/stepper.d.ts +40 -0
- package/dist/src/components/ui/stepper-item/index.d.ts +1 -0
- package/dist/src/components/ui/stepper-item/stepper-item.d.ts +41 -0
- package/dist/src/components/ui/table/index.d.ts +1 -1
- package/dist/src/components/ui/table/table-pagination.d.ts +21 -0
- package/dist/src/components/ui/table/table-view-options.d.ts +9 -2
- package/dist/src/components/ui/table/table.d.ts +40 -1
- package/dist/src/components/ui/tag/tag.d.ts +1 -1
- package/dist/src/components/ui/timer/index.d.ts +1 -0
- package/dist/src/components/ui/timer/timer.d.ts +28 -0
- package/dist/src/components/ui/toast/index.d.ts +1 -1
- package/dist/src/components/ui/toast/toast.d.ts +51 -18
- package/dist/src/components/ui/toast/toast.docs.d.ts +4 -0
- package/dist/src/components/ui/trend-indicator/trend-indicator.d.ts +1 -1
- package/dist/src/components/ui/truncate-text/__tests__/middle-truncate.test.d.ts +1 -0
- package/dist/src/components/ui/truncate-text/index.d.ts +3 -0
- package/dist/src/components/ui/truncate-text/middle-truncate.d.ts +13 -0
- package/dist/src/components/ui/truncate-text/text-width.d.ts +11 -0
- package/dist/src/components/ui/truncate-text/truncate-text.d.ts +45 -0
- package/dist/src/components/ui/truncate-text/truncate-text.docs.d.ts +35 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/ui-react.css +1 -1
- package/package.json +4 -4
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDefaultOptions.js +0 -8
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDefaultOptions.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISODay.js +0 -9
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISODay.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Parser.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Setter.js +0 -42
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/constants.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -106
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -81
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -78
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -76
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -81
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -78
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -76
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers.js +0 -68
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/utils.js +0 -104
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse.js +0 -86
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setDay.js +0 -12
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setDay.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISODay.js +0 -11
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISODay.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISOWeek.js +0 -10
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISOWeek.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setWeek.js +0 -10
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setWeek.js.map +0 -1
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/transpose.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/transpose.js.map +0 -1
|
@@ -1,266 +1,429 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useReactTable as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as t, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useRef as so, useMemo as ne, useEffect as re, Fragment as L } from "react";
|
|
3
|
+
import { useReactTable as co, flexRender as ie } from "../../../node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js";
|
|
4
|
+
import { EllipsisIcon as uo } from "@acronis-platform/icons-react/stroke-mono";
|
|
5
|
+
import { cn as R } from "../../../lib/utils.js";
|
|
6
|
+
import { isBulkSelectionActive as mo } from "./data-table-selection.js";
|
|
7
|
+
import { DataTableViewOptions as go } from "./data-table-view-options.js";
|
|
8
|
+
import { useIntersectionObserver as fo } from "../../../hooks/use-intersection-observer.js";
|
|
9
|
+
import { Table as bo, TableHeader as po, TableRow as h, TableSettingsCell as vo, TableHead as ho, TableBody as So, TableCell as S, TableActionsCell as Do } from "../table/table.js";
|
|
10
|
+
import { TooltipProvider as yo, Tooltip as wo, TooltipTrigger as Ro, TooltipContent as Co } from "../tooltip/tooltip.js";
|
|
11
|
+
import { DropdownMenu as zo, DropdownMenuTrigger as xo, DropdownMenuContent as Io } from "../dropdown-menu/dropdown-menu.js";
|
|
12
|
+
import { ButtonIcon as No } from "../button-icon/button-icon.js";
|
|
13
|
+
import { getFilteredRowModel as Ao, getSortedRowModel as Mo, getPaginationRowModel as To, getExpandedRowModel as Eo, getCoreRowModel as _o } from "../../../node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js";
|
|
14
|
+
function de(n) {
|
|
15
|
+
const l = n.getIsPinned();
|
|
10
16
|
if (l)
|
|
11
17
|
return {
|
|
12
18
|
position: "sticky",
|
|
13
|
-
left: l === "left" ?
|
|
14
|
-
right: l === "right" ?
|
|
19
|
+
left: l === "left" ? n.getStart("left") : void 0,
|
|
20
|
+
right: l === "right" ? n.getAfter("right") : void 0,
|
|
15
21
|
zIndex: 1,
|
|
16
22
|
// Derived from the same border token every other table divider uses (not a
|
|
17
23
|
// hardcoded color), so the separator theme-adapts automatically.
|
|
18
24
|
boxShadow: l === "left" ? "4px 0 4px -4px var(--ui-table-global-row-border-color)" : "-4px 0 4px -4px var(--ui-table-global-row-border-color)"
|
|
19
25
|
};
|
|
20
26
|
}
|
|
21
|
-
function
|
|
22
|
-
if (l ||
|
|
23
|
-
return
|
|
27
|
+
function ue(n, l) {
|
|
28
|
+
if (l || n.columnDef.size !== void 0)
|
|
29
|
+
return n.getSize();
|
|
24
30
|
}
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
if (!(!
|
|
28
|
-
return { ...
|
|
31
|
+
function le(n, l) {
|
|
32
|
+
const a = de(n.column), c = ue(n.column, l);
|
|
33
|
+
if (!(!a && c === void 0))
|
|
34
|
+
return { ...a, width: c };
|
|
29
35
|
}
|
|
30
|
-
function
|
|
31
|
-
const
|
|
32
|
-
if (!(!
|
|
33
|
-
return { ...
|
|
36
|
+
function ae(n, l) {
|
|
37
|
+
const a = de(n.column), c = ue(n.column, l);
|
|
38
|
+
if (!(!a && c === void 0))
|
|
39
|
+
return { ...a, width: c };
|
|
34
40
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
return Math.min(
|
|
40
|
-
if (
|
|
41
|
-
return Math.max(
|
|
41
|
+
const se = 20, ce = Number.MAX_SAFE_INTEGER;
|
|
42
|
+
function Fo(n, l, { shiftKey: a, min: c, max: f }) {
|
|
43
|
+
const b = a ? 50 : 10;
|
|
44
|
+
if (n === "ArrowLeft")
|
|
45
|
+
return Math.min(f, Math.max(c, l - b));
|
|
46
|
+
if (n === "ArrowRight")
|
|
47
|
+
return Math.max(c, Math.min(f, l + b));
|
|
42
48
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
49
|
+
function ko(n, l, a) {
|
|
50
|
+
const c = n.indexOf(l), f = n.indexOf(a);
|
|
51
|
+
if (c === -1 || f === -1 || c === f) return n;
|
|
52
|
+
const b = [...n];
|
|
53
|
+
return b.splice(f, 0, b.splice(c, 1)[0]), b;
|
|
54
|
+
}
|
|
55
|
+
const Ho = {
|
|
56
|
+
sort: { label: "Sort column", action: "Click" },
|
|
57
|
+
reorder: { label: "Reorder column", action: "Drag" },
|
|
58
|
+
resize: { label: "Resize column", action: "Drag border" }
|
|
59
|
+
};
|
|
60
|
+
function qo({
|
|
61
|
+
columns: n = [],
|
|
45
62
|
data: l = [],
|
|
46
|
-
table:
|
|
47
|
-
getRowCanExpand:
|
|
48
|
-
renderExpandedRow:
|
|
49
|
-
striped:
|
|
50
|
-
bordered:
|
|
51
|
-
highlightCurrentRow:
|
|
52
|
-
skeleton:
|
|
53
|
-
skeletonRows:
|
|
54
|
-
enableColumnResizing:
|
|
55
|
-
onColumnSizingChange:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
table: a,
|
|
64
|
+
getRowCanExpand: c,
|
|
65
|
+
renderExpandedRow: f,
|
|
66
|
+
striped: b = !1,
|
|
67
|
+
bordered: me = !1,
|
|
68
|
+
highlightCurrentRow: N = !1,
|
|
69
|
+
skeleton: A = !1,
|
|
70
|
+
skeletonRows: ge = 5,
|
|
71
|
+
enableColumnResizing: K = !1,
|
|
72
|
+
onColumnSizingChange: M,
|
|
73
|
+
enableColumnReordering: fe = !1,
|
|
74
|
+
columnOrder: V,
|
|
75
|
+
onColumnOrderChange: T,
|
|
76
|
+
columnVisibility: be,
|
|
77
|
+
onColumnVisibilityChange: E,
|
|
78
|
+
rowSelection: B,
|
|
79
|
+
onRowSelectionChange: _,
|
|
80
|
+
manualSorting: U = !1,
|
|
81
|
+
sorting: j,
|
|
82
|
+
onSortingChange: F,
|
|
83
|
+
renderRow: X,
|
|
84
|
+
renderEmptyState: Z,
|
|
85
|
+
paginationMode: G = "page",
|
|
86
|
+
onLoadMore: k,
|
|
87
|
+
loadMoreRootMargin: pe,
|
|
88
|
+
hasNextPage: W = !1,
|
|
89
|
+
resizeColumnLabel: ve = "Resize column",
|
|
90
|
+
emptyLabel: he = "No results.",
|
|
91
|
+
isLoadingMore: $ = !1,
|
|
92
|
+
hideActionColumn: Se = !1,
|
|
93
|
+
renderRowActions: q,
|
|
94
|
+
rowActionsLabel: De = "Row actions",
|
|
95
|
+
columnSettingsLabel: ye,
|
|
96
|
+
headerHints: we
|
|
68
97
|
}) {
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
98
|
+
const H = {
|
|
99
|
+
...Ho,
|
|
100
|
+
...we
|
|
101
|
+
}, [Re, Ce] = g([]), ze = j ?? Re, [xe, Ie] = g([]), [Ne, Ae] = g({}), Me = be ?? Ne, [Te, Ee] = g({}), _e = B ?? Te, [Fe, ke] = g({}), [He, Oe] = g({}), [Pe, Le] = g([]), Ke = V ?? Pe, [C, O] = g(), [Ve, Be] = g(), [Ue, J] = g(0), Q = so([]), je = (e) => {
|
|
102
|
+
Oe(e), M == null || M(e);
|
|
103
|
+
}, Xe = (e) => {
|
|
104
|
+
V === void 0 && Le(e), T == null || T(e);
|
|
105
|
+
}, Ze = (e) => {
|
|
106
|
+
Ae(e), E == null || E(e);
|
|
107
|
+
}, Ge = (e) => {
|
|
108
|
+
j === void 0 && Ce(e), F == null || F(e);
|
|
109
|
+
}, We = (e) => {
|
|
110
|
+
B === void 0 && Ee(e), _ == null || _(e);
|
|
111
|
+
}, Y = !Se && !a, ee = ne(
|
|
112
|
+
() => Y ? [
|
|
113
|
+
{
|
|
114
|
+
id: "__actions",
|
|
115
|
+
size: 48,
|
|
116
|
+
enableSorting: !1,
|
|
117
|
+
enableHiding: !1,
|
|
118
|
+
meta: { pin: "right" },
|
|
119
|
+
header: () => null,
|
|
120
|
+
cell: () => null
|
|
121
|
+
}
|
|
122
|
+
] : [],
|
|
123
|
+
[Y]
|
|
124
|
+
), $e = ne(
|
|
125
|
+
() => [...n, ...ee],
|
|
126
|
+
[n, ee]
|
|
127
|
+
), [qe, oe] = g(), Je = co({
|
|
76
128
|
data: l,
|
|
77
|
-
columns:
|
|
78
|
-
enableColumnResizing:
|
|
129
|
+
columns: $e,
|
|
130
|
+
enableColumnResizing: K,
|
|
79
131
|
columnResizeMode: "onChange",
|
|
80
|
-
getCoreRowModel:
|
|
81
|
-
getExpandedRowModel:
|
|
82
|
-
...
|
|
83
|
-
getRowCanExpand:
|
|
84
|
-
onExpandedChange:
|
|
85
|
-
manualSorting:
|
|
86
|
-
onSortingChange:
|
|
87
|
-
...
|
|
88
|
-
onColumnFiltersChange:
|
|
89
|
-
getFilteredRowModel:
|
|
90
|
-
onColumnVisibilityChange:
|
|
91
|
-
onRowSelectionChange:
|
|
92
|
-
onColumnSizingChange:
|
|
132
|
+
getCoreRowModel: _o(),
|
|
133
|
+
getExpandedRowModel: Eo(),
|
|
134
|
+
...G === "page" ? { getPaginationRowModel: To() } : {},
|
|
135
|
+
getRowCanExpand: c,
|
|
136
|
+
onExpandedChange: ke,
|
|
137
|
+
manualSorting: U,
|
|
138
|
+
onSortingChange: Ge,
|
|
139
|
+
...U ? {} : { getSortedRowModel: Mo() },
|
|
140
|
+
onColumnFiltersChange: Ie,
|
|
141
|
+
getFilteredRowModel: Ao(),
|
|
142
|
+
onColumnVisibilityChange: Ze,
|
|
143
|
+
onRowSelectionChange: We,
|
|
144
|
+
onColumnSizingChange: je,
|
|
145
|
+
onColumnOrderChange: Xe,
|
|
93
146
|
state: {
|
|
94
|
-
sorting:
|
|
95
|
-
columnFilters:
|
|
96
|
-
columnVisibility:
|
|
97
|
-
rowSelection:
|
|
98
|
-
expanded:
|
|
99
|
-
columnSizing:
|
|
147
|
+
sorting: ze,
|
|
148
|
+
columnFilters: xe,
|
|
149
|
+
columnVisibility: Me,
|
|
150
|
+
rowSelection: _e,
|
|
151
|
+
expanded: Fe,
|
|
152
|
+
columnSizing: He,
|
|
153
|
+
columnOrder: Ke
|
|
100
154
|
}
|
|
101
|
-
}),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
155
|
+
}), i = a ?? Je, P = !a && G === "infinite", D = K && !a, Qe = fe && !a, y = !!i.getState().columnSizingInfo.isResizingColumn;
|
|
156
|
+
re(() => {
|
|
157
|
+
if (y)
|
|
158
|
+
return document.documentElement.setAttribute("data-ui-column-resizing", ""), () => {
|
|
159
|
+
document.documentElement.removeAttribute("data-ui-column-resizing");
|
|
160
|
+
};
|
|
161
|
+
}, [y]);
|
|
162
|
+
const Ye = fo({
|
|
163
|
+
onIntersect: () => k == null ? void 0 : k(),
|
|
164
|
+
disabled: !P || !W || $,
|
|
165
|
+
rootMargin: pe
|
|
166
|
+
}), eo = (e, o) => {
|
|
106
167
|
if (e.ctrlKey || e.altKey || e.metaKey) return;
|
|
107
|
-
const
|
|
168
|
+
const r = Fo(e.key, o.column.getSize(), {
|
|
108
169
|
shiftKey: e.shiftKey,
|
|
109
|
-
min:
|
|
110
|
-
max:
|
|
170
|
+
min: o.column.columnDef.minSize ?? se,
|
|
171
|
+
max: o.column.columnDef.maxSize ?? ce
|
|
111
172
|
});
|
|
112
|
-
|
|
173
|
+
r !== void 0 && (e.preventDefault(), i.setColumnSizing((d) => ({ ...d, [o.column.id]: r })));
|
|
174
|
+
}, oo = (e, o) => {
|
|
175
|
+
e.dataTransfer && (e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", o)), O(o);
|
|
176
|
+
}, to = (e) => {
|
|
177
|
+
e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move");
|
|
178
|
+
}, no = (e, o) => {
|
|
179
|
+
if (e.preventDefault(), !C) return;
|
|
180
|
+
const r = i.getState().columnOrder, d = r.length ? r : i.getAllLeafColumns().map((m) => m.id);
|
|
181
|
+
i.setColumnOrder(ko(d, C, o)), O(void 0);
|
|
113
182
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
var
|
|
117
|
-
e.pin(((
|
|
183
|
+
re(() => {
|
|
184
|
+
a || i.getAllLeafColumns().forEach((e) => {
|
|
185
|
+
var o;
|
|
186
|
+
e.pin(((o = e.columnDef.meta) == null ? void 0 : o.pin) ?? !1);
|
|
118
187
|
});
|
|
119
|
-
}, [
|
|
120
|
-
const
|
|
121
|
-
|
|
188
|
+
}, [i, n, a]);
|
|
189
|
+
const p = i.getRowModel().rows, z = mo(i), ro = p.length ? Math.min(Ue, p.length - 1) : 0, io = (e) => {
|
|
190
|
+
J(e);
|
|
191
|
+
}, lo = (e, o) => {
|
|
192
|
+
var d;
|
|
193
|
+
if (e.target !== e.currentTarget || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
194
|
+
const r = e.key === "ArrowDown" ? Math.min(o + 1, p.length - 1) : Math.max(o - 1, 0);
|
|
195
|
+
r !== o && (e.preventDefault(), J(r), (d = Q.current[r]) == null || d.focus());
|
|
196
|
+
}, ao = me ? "[&_th:not(:last-child)]:border-e [&_td:not(:last-child)]:border-e [&_th]:border-[var(--ui-table-global-row-border-color)] [&_td]:border-[var(--ui-table-global-row-border-color)]" : void 0, te = "bg-background";
|
|
197
|
+
return /* @__PURE__ */ t(
|
|
122
198
|
"div",
|
|
123
199
|
{
|
|
124
|
-
className:
|
|
200
|
+
className: R(
|
|
125
201
|
"rounded-md border border-[var(--ui-table-global-row-border-color)]",
|
|
126
|
-
|
|
202
|
+
ao
|
|
127
203
|
),
|
|
128
|
-
children: /* @__PURE__ */
|
|
129
|
-
|
|
204
|
+
children: /* @__PURE__ */ v(
|
|
205
|
+
bo,
|
|
130
206
|
{
|
|
131
|
-
style:
|
|
207
|
+
style: D ? { width: i.getCenterTotalSize() } : void 0,
|
|
132
208
|
children: [
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
var
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
209
|
+
/* @__PURE__ */ t(yo, { children: /* @__PURE__ */ t(po, { children: i.getHeaderGroups().map((e) => /* @__PURE__ */ t(h, { className: "hover:bg-transparent", children: e.headers.map((o) => {
|
|
210
|
+
var w;
|
|
211
|
+
const r = o.column.getIsPinned(), d = D && o.column.getCanResize(), m = Qe && !o.isPlaceholder && !r, x = !o.isPlaceholder && o.column.getCanSort(), s = [
|
|
212
|
+
x && H.sort,
|
|
213
|
+
m && H.reorder,
|
|
214
|
+
d && H.resize
|
|
215
|
+
].filter(
|
|
216
|
+
(u) => !!u
|
|
217
|
+
);
|
|
218
|
+
if (o.column.id === "__actions")
|
|
219
|
+
return /* @__PURE__ */ t(
|
|
220
|
+
vo,
|
|
221
|
+
{
|
|
222
|
+
style: le(o, D),
|
|
223
|
+
className: te,
|
|
224
|
+
children: /* @__PURE__ */ t(
|
|
225
|
+
go,
|
|
226
|
+
{
|
|
227
|
+
table: i,
|
|
228
|
+
iconOnly: !0,
|
|
229
|
+
triggerAriaLabel: ye
|
|
230
|
+
}
|
|
231
|
+
)
|
|
232
|
+
},
|
|
233
|
+
o.id
|
|
234
|
+
);
|
|
235
|
+
const I = /* @__PURE__ */ v(
|
|
236
|
+
ho,
|
|
138
237
|
{
|
|
139
|
-
wrap: (
|
|
140
|
-
style:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
238
|
+
wrap: (w = o.column.columnDef.meta) == null ? void 0 : w.wrap,
|
|
239
|
+
style: le(o, D),
|
|
240
|
+
draggable: m && !y || void 0,
|
|
241
|
+
onDragStart: m ? (u) => oo(u, o.column.id) : void 0,
|
|
242
|
+
onDragOver: m ? to : void 0,
|
|
243
|
+
onDrop: m ? (u) => no(u, o.column.id) : void 0,
|
|
244
|
+
onDragEnd: m ? () => O(void 0) : void 0,
|
|
245
|
+
className: R(
|
|
246
|
+
d && "relative",
|
|
247
|
+
// Per the design, a sortable header tints the whole
|
|
248
|
+
// cell on hover/press, not just the inner sort button.
|
|
249
|
+
// Suppressed while any column is resizing, since the
|
|
250
|
+
// pointer drags across neighboring `<th>`s and would
|
|
251
|
+
// otherwise tint them via native `:hover`.
|
|
252
|
+
x && !y && "transition-colors hover:bg-[var(--ui-table-header-cell-color-hover)] active:bg-[var(--ui-table-header-cell-color-active)]",
|
|
253
|
+
m && !y && "cursor-(--ui-draggable-cursor) select-none active:cursor-(--ui-draggable-cursor-active)",
|
|
254
|
+
m && C === o.column.id && "opacity-50",
|
|
255
|
+
r && te
|
|
144
256
|
),
|
|
145
257
|
children: [
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
258
|
+
o.isPlaceholder ? null : ie(
|
|
259
|
+
o.column.columnDef.header,
|
|
260
|
+
o.getContext()
|
|
149
261
|
),
|
|
150
|
-
|
|
262
|
+
d && /* @__PURE__ */ t(
|
|
151
263
|
"div",
|
|
152
264
|
{
|
|
153
265
|
role: "separator",
|
|
154
266
|
"aria-orientation": "vertical",
|
|
155
|
-
"aria-label":
|
|
156
|
-
"aria-valuenow":
|
|
157
|
-
"aria-valuemin":
|
|
158
|
-
"aria-valuemax":
|
|
267
|
+
"aria-label": ve,
|
|
268
|
+
"aria-valuenow": o.column.getSize(),
|
|
269
|
+
"aria-valuemin": o.column.columnDef.minSize ?? se,
|
|
270
|
+
"aria-valuemax": o.column.columnDef.maxSize ?? ce,
|
|
159
271
|
tabIndex: 0,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
272
|
+
draggable: !1,
|
|
273
|
+
onMouseDown: o.getResizeHandler(),
|
|
274
|
+
onTouchStart: o.getResizeHandler(),
|
|
275
|
+
onKeyDown: (u) => eo(u, o),
|
|
276
|
+
className: R(
|
|
277
|
+
"absolute end-0 top-0 h-full w-1 cursor-(--ui-resizable-cursor) touch-none select-none bg-[var(--ui-table-global-row-border-color)] opacity-0 transition-[opacity,background-color] hover:bg-[var(--ui-resizable-border-color-hover)] hover:opacity-100 focus-visible:bg-[var(--ui-resizable-border-color-hover)] focus-visible:opacity-100 focus-visible:outline-[3px] focus-visible:outline-(--ui-focus-primary)",
|
|
278
|
+
o.column.getIsResizing() && "bg-[var(--ui-resizable-border-color-active)] opacity-100"
|
|
166
279
|
)
|
|
167
280
|
}
|
|
168
281
|
)
|
|
169
282
|
]
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
return s.length === 0 ? /* @__PURE__ */ t(L, { children: I }, o.id) : /* @__PURE__ */ v(
|
|
286
|
+
wo,
|
|
287
|
+
{
|
|
288
|
+
disabled: y || C !== void 0,
|
|
289
|
+
children: [
|
|
290
|
+
/* @__PURE__ */ t(Ro, { render: I }),
|
|
291
|
+
/* @__PURE__ */ t(Co, { className: "flex flex-col gap-1", children: s.map((u) => /* @__PURE__ */ v("span", { children: [
|
|
292
|
+
/* @__PURE__ */ v("span", { className: "font-semibold", children: [
|
|
293
|
+
u.label,
|
|
294
|
+
":"
|
|
295
|
+
] }),
|
|
296
|
+
" ",
|
|
297
|
+
u.action
|
|
298
|
+
] }, u.label)) })
|
|
299
|
+
]
|
|
170
300
|
},
|
|
171
|
-
|
|
301
|
+
o.id
|
|
172
302
|
);
|
|
173
|
-
}) }, e.id)) }),
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
|
|
176
|
-
|
|
303
|
+
}) }, e.id)) }) }),
|
|
304
|
+
/* @__PURE__ */ v(So, { children: [
|
|
305
|
+
A ? Array.from({ length: ge }).map((e, o) => /* @__PURE__ */ t(
|
|
306
|
+
h,
|
|
177
307
|
{
|
|
178
308
|
className: "hover:bg-transparent",
|
|
179
|
-
children:
|
|
309
|
+
children: i.getVisibleLeafColumns().map((r) => /* @__PURE__ */ t(S, { children: /* @__PURE__ */ t("div", { className: "h-4 w-full animate-pulse rounded bg-[var(--ui-background-surface-secondary)]" }) }, r.id))
|
|
180
310
|
},
|
|
181
|
-
`skeleton-${
|
|
182
|
-
)) :
|
|
183
|
-
if (
|
|
184
|
-
return /* @__PURE__ */
|
|
185
|
-
const
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
|
|
311
|
+
`skeleton-${o}`
|
|
312
|
+
)) : p != null && p.length ? p.map((e, o) => {
|
|
313
|
+
if (X)
|
|
314
|
+
return /* @__PURE__ */ t(L, { children: X(e, o) }, e.id);
|
|
315
|
+
const r = e.getIsSelected(), d = N && Ve === e.id, m = r || d ? "bg-[var(--ui-table-data-row-color-active)]" : b && o % 2 === 1 ? "bg-[var(--ui-background-surface-secondary)]" : "bg-background group-hover:bg-[var(--ui-table-data-row-color-hover)]", x = !z && qe === e.id;
|
|
316
|
+
return /* @__PURE__ */ v(L, { children: [
|
|
317
|
+
/* @__PURE__ */ t(
|
|
318
|
+
h,
|
|
189
319
|
{
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
320
|
+
ref: (s) => {
|
|
321
|
+
Q.current[o] = s;
|
|
322
|
+
},
|
|
323
|
+
tabIndex: o === ro ? 0 : -1,
|
|
324
|
+
onFocus: () => io(o),
|
|
325
|
+
onKeyDown: (s) => lo(s, o),
|
|
326
|
+
selected: r,
|
|
327
|
+
onClick: N ? () => Be(e.id) : void 0,
|
|
328
|
+
className: R(
|
|
329
|
+
"group",
|
|
330
|
+
N && "cursor-pointer",
|
|
331
|
+
b && o % 2 === 1 && !r && !d && "bg-[var(--ui-background-surface-secondary)]",
|
|
332
|
+
d && !r && "bg-[var(--ui-table-data-row-color-active)]",
|
|
333
|
+
// The action cell's own hover tint (its ellipsis/cog
|
|
334
|
+
// trigger) should be the only thing that reacts while
|
|
335
|
+
// it's hovered — not the rest of the row underneath it.
|
|
336
|
+
x && "hover:bg-transparent"
|
|
196
337
|
),
|
|
197
|
-
children: e.getVisibleCells().map((
|
|
198
|
-
var
|
|
199
|
-
const
|
|
200
|
-
return /* @__PURE__ */
|
|
201
|
-
|
|
338
|
+
children: e.getVisibleCells().map((s) => {
|
|
339
|
+
var w;
|
|
340
|
+
const I = s.column.getIsPinned();
|
|
341
|
+
return s.column.id === "__actions" ? /* @__PURE__ */ t(
|
|
342
|
+
Do,
|
|
343
|
+
{
|
|
344
|
+
style: ae(s, D),
|
|
345
|
+
className: m,
|
|
346
|
+
bulkSelectionActive: z,
|
|
347
|
+
onMouseEnter: z ? void 0 : () => oe(e.id),
|
|
348
|
+
onMouseLeave: z ? void 0 : () => oe(
|
|
349
|
+
(u) => u === e.id ? void 0 : u
|
|
350
|
+
),
|
|
351
|
+
children: q && /* @__PURE__ */ v(zo, { children: [
|
|
352
|
+
/* @__PURE__ */ t(
|
|
353
|
+
xo,
|
|
354
|
+
{
|
|
355
|
+
render: /* @__PURE__ */ t(No, { "aria-label": De }),
|
|
356
|
+
children: /* @__PURE__ */ t(uo, {})
|
|
357
|
+
}
|
|
358
|
+
),
|
|
359
|
+
/* @__PURE__ */ t(Io, { align: "end", children: q(e) })
|
|
360
|
+
] })
|
|
361
|
+
},
|
|
362
|
+
s.id
|
|
363
|
+
) : /* @__PURE__ */ t(
|
|
364
|
+
S,
|
|
202
365
|
{
|
|
203
|
-
wrap: (
|
|
204
|
-
style:
|
|
205
|
-
className:
|
|
206
|
-
children:
|
|
207
|
-
|
|
208
|
-
|
|
366
|
+
wrap: (w = s.column.columnDef.meta) == null ? void 0 : w.wrap,
|
|
367
|
+
style: ae(s, D),
|
|
368
|
+
className: R(I && m),
|
|
369
|
+
children: ie(
|
|
370
|
+
s.column.columnDef.cell,
|
|
371
|
+
s.getContext()
|
|
209
372
|
)
|
|
210
373
|
},
|
|
211
|
-
|
|
374
|
+
s.id
|
|
212
375
|
);
|
|
213
376
|
})
|
|
214
377
|
}
|
|
215
378
|
),
|
|
216
|
-
|
|
217
|
-
|
|
379
|
+
f && e.getIsExpanded() && /* @__PURE__ */ t(h, { className: "hover:bg-transparent", children: /* @__PURE__ */ t(
|
|
380
|
+
S,
|
|
218
381
|
{
|
|
219
382
|
className: "h-auto py-3",
|
|
220
383
|
colSpan: e.getVisibleCells().length,
|
|
221
|
-
children:
|
|
384
|
+
children: f(e)
|
|
222
385
|
}
|
|
223
386
|
) })
|
|
224
387
|
] }, e.id);
|
|
225
|
-
}) :
|
|
226
|
-
|
|
388
|
+
}) : Z ? /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(
|
|
389
|
+
S,
|
|
227
390
|
{
|
|
228
|
-
colSpan:
|
|
391
|
+
colSpan: i.getVisibleLeafColumns().length,
|
|
229
392
|
className: "h-24 text-center",
|
|
230
|
-
children:
|
|
231
|
-
hasFilters:
|
|
393
|
+
children: Z({
|
|
394
|
+
hasFilters: i.getState().columnFilters.length > 0
|
|
232
395
|
})
|
|
233
396
|
}
|
|
234
|
-
) }) : /* @__PURE__ */
|
|
235
|
-
|
|
397
|
+
) }) : /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(
|
|
398
|
+
S,
|
|
236
399
|
{
|
|
237
|
-
colSpan:
|
|
400
|
+
colSpan: i.getVisibleLeafColumns().length,
|
|
238
401
|
className: "h-24 text-center text-[var(--ui-table-data-value-color-disabled)]",
|
|
239
|
-
children:
|
|
402
|
+
children: he
|
|
240
403
|
}
|
|
241
404
|
) }),
|
|
242
|
-
|
|
243
|
-
|
|
405
|
+
P && !A && p.length > 0 && W && /* @__PURE__ */ t(
|
|
406
|
+
h,
|
|
244
407
|
{
|
|
245
|
-
ref:
|
|
408
|
+
ref: Ye,
|
|
246
409
|
"aria-hidden": !0,
|
|
247
410
|
className: "hover:bg-transparent",
|
|
248
|
-
children: /* @__PURE__ */
|
|
249
|
-
|
|
411
|
+
children: /* @__PURE__ */ t(
|
|
412
|
+
S,
|
|
250
413
|
{
|
|
251
|
-
colSpan:
|
|
414
|
+
colSpan: i.getVisibleLeafColumns().length,
|
|
252
415
|
className: "h-1 p-0"
|
|
253
416
|
}
|
|
254
417
|
)
|
|
255
418
|
}
|
|
256
419
|
),
|
|
257
|
-
|
|
420
|
+
P && !A && p.length > 0 && $ && /* @__PURE__ */ t(h, { className: "hover:bg-transparent", children: /* @__PURE__ */ t(S, { colSpan: i.getVisibleLeafColumns().length, children: /* @__PURE__ */ t(
|
|
258
421
|
"div",
|
|
259
422
|
{
|
|
260
423
|
role: "status",
|
|
261
424
|
"aria-live": "polite",
|
|
262
425
|
className: "h-4 w-full animate-pulse rounded bg-[var(--ui-background-surface-secondary)]",
|
|
263
|
-
children: /* @__PURE__ */
|
|
426
|
+
children: /* @__PURE__ */ t("span", { className: "sr-only", children: "Loading more rows…" })
|
|
264
427
|
}
|
|
265
428
|
) }) })
|
|
266
429
|
] })
|
|
@@ -271,10 +434,11 @@ function He({
|
|
|
271
434
|
);
|
|
272
435
|
}
|
|
273
436
|
export {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
437
|
+
qo as DataTable,
|
|
438
|
+
ae as getCellStyle,
|
|
439
|
+
ue as getColumnWidth,
|
|
440
|
+
de as getPinnedStyle,
|
|
441
|
+
Fo as getResizeKeyboardStep,
|
|
442
|
+
ko as reorderColumn
|
|
279
443
|
};
|
|
280
444
|
//# sourceMappingURL=data-table.js.map
|