themelia-react-ui 2.0.6 → 3.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/CHANGELOG.md +250 -0
- package/MIGRATION.md +746 -7
- package/README.md +27 -23
- package/dist/{accordion-0tQUZ20r.js → accordion-DNVqwEIC.js} +36 -36
- package/dist/accordion-DNVqwEIC.js.map +1 -0
- package/dist/action-menu-D5343RwT.js +286 -0
- package/dist/action-menu-D5343RwT.js.map +1 -0
- package/dist/ai-artifact-otrz9ZwS.js +1214 -0
- package/dist/ai-artifact-otrz9ZwS.js.map +1 -0
- package/dist/anchored-positioning-1U_eBFNx.js +9 -0
- package/dist/anchored-positioning-1U_eBFNx.js.map +1 -0
- package/dist/app-shell-CPN30Nb1.js +372 -0
- package/dist/app-shell-CPN30Nb1.js.map +1 -0
- package/dist/{attachment-BCpA4e7i.js → attachment-D2-fpfmv.js} +15 -15
- package/dist/{attachment-BCpA4e7i.js.map → attachment-D2-fpfmv.js.map} +1 -1
- package/dist/{auth-B0girIk_.js → auth-g_oUTDDC.js} +234 -241
- package/dist/auth-g_oUTDDC.js.map +1 -0
- package/dist/{avatar-B9Jnp-T-.js → avatar-Ca3Ihrq4.js} +4 -4
- package/dist/{avatar-B9Jnp-T-.js.map → avatar-Ca3Ihrq4.js.map} +1 -1
- package/dist/{badge-wWauMgAt.js → badge-oGiXblW7.js} +8 -9
- package/dist/badge-oGiXblW7.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +2 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +11 -11
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +2 -2
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +13 -13
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +203 -2
- package/dist/base/media-gallery.js.map +1 -0
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +32 -22
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +91 -88
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +14 -14
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +6 -12
- package/dist/base/spinner.js.map +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +3 -3
- package/dist/base/toaster.js +2 -2
- package/dist/base/tree.js +2 -2
- package/dist/base/upload-queue.js +303 -2
- package/dist/base/upload-queue.js.map +1 -0
- package/dist/base/upload.js +3 -4
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BoqWIIpV.js → batch-action-bar-D6MZQNnC.js} +10 -10
- package/dist/{batch-action-bar-BoqWIIpV.js.map → batch-action-bar-D6MZQNnC.js.map} +1 -1
- package/dist/blocks/admin.js +242 -228
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +395 -357
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/charts.js +1022 -0
- package/dist/blocks/analytics/charts.js.map +1 -0
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +171 -1365
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1487 -1358
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -3
- package/dist/blocks/onboarding.js +91 -82
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +2 -2
- package/dist/{breadcrumbs-Bp9Ke7kd.js → breadcrumbs-CQ9JSlez.js} +52 -45
- package/dist/breadcrumbs-CQ9JSlez.js.map +1 -0
- package/dist/{button-ChBovTx0.js → button-rd6FiHfQ.js} +12 -8
- package/dist/button-rd6FiHfQ.js.map +1 -0
- package/dist/{buttons-DeW0bQeK.js → buttons-pZVgPTZn.js} +230 -246
- package/dist/buttons-pZVgPTZn.js.map +1 -0
- package/dist/{cards-CNXnmvV5.js → cards-CgWyqvgZ.js} +25 -22
- package/dist/{cards-CNXnmvV5.js.map → cards-CgWyqvgZ.js.map} +1 -1
- package/dist/cascader-Cf05pwaq.js +444 -0
- package/dist/cascader-Cf05pwaq.js.map +1 -0
- package/dist/{chart-I7ROnsl8.js → chart-CygRCyIZ.js} +5 -5
- package/dist/{chart-I7ROnsl8.js.map → chart-CygRCyIZ.js.map} +1 -1
- package/dist/{checkbox-MoyHIAPs.js → checkbox-Dy5_XBMZ.js} +4 -4
- package/dist/{checkbox-MoyHIAPs.js.map → checkbox-Dy5_XBMZ.js.map} +1 -1
- package/dist/{choice-inputs-DHGtx0QV.js → choice-inputs-oJEsrb5Y.js} +113 -114
- package/dist/choice-inputs-oJEsrb5Y.js.map +1 -0
- package/dist/{code-block-BSJyq9e-.js → code-block-BrLD7mCi.js} +44 -60
- package/dist/code-block-BrLD7mCi.js.map +1 -0
- package/dist/collapsible-CRCCg_bO.js +80 -0
- package/dist/collapsible-CRCCg_bO.js.map +1 -0
- package/dist/{collection-content-CSnwtOTH.js → collection-content-D7SoDlYd.js} +3 -3
- package/dist/{collection-content-CSnwtOTH.js.map → collection-content-D7SoDlYd.js.map} +1 -1
- package/dist/combobox-Dl6f6kHz.js +362 -0
- package/dist/combobox-Dl6f6kHz.js.map +1 -0
- package/dist/combobox-DrDXtSSt.js +929 -0
- package/dist/combobox-DrDXtSSt.js.map +1 -0
- package/dist/command-CjZ2VzKC.js +432 -0
- package/dist/command-CjZ2VzKC.js.map +1 -0
- package/dist/comments-C2MZyRmh.js +1214 -0
- package/dist/comments-C2MZyRmh.js.map +1 -0
- package/dist/components/base/accordion/accordion.d.ts +11 -3
- package/dist/components/base/action-menu/action-menu.d.ts +11 -3
- package/dist/components/base/buttons/button.d.ts +2 -2
- package/dist/components/base/buttons/index.d.ts +1 -1
- package/dist/components/base/buttons/loader-button.d.ts +6 -15
- package/dist/components/base/cards/index.d.ts +1 -1
- package/dist/components/base/cards/partials/card-body-context.d.ts +6 -0
- package/dist/components/base/cards/smart-card.d.ts +0 -2
- package/dist/components/base/cards/smart-card.types.d.ts +12 -10
- package/dist/components/base/cascader/cascader.d.ts +8 -2
- package/dist/components/base/cascader/cascader.types.d.ts +24 -2
- package/dist/components/base/cascader/index.d.ts +1 -1
- package/dist/components/base/choice-inputs/switch.d.ts +1 -1
- package/dist/components/base/code-block/use-code-copy.d.ts +2 -6
- package/dist/components/base/command/command.d.ts +1 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +1 -3
- package/dist/components/base/display/dialog.d.ts +3 -9
- package/dist/components/base/display/index.d.ts +2 -3
- package/dist/components/base/display/separator.d.ts +1 -1
- package/dist/components/base/feedback/alert.d.ts +2 -1
- package/dist/components/base/feedback/empty.d.ts +10 -2
- package/dist/components/base/forms/workflow.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +9 -17
- package/dist/components/base/forms-numeric/index.d.ts +3 -3
- package/dist/components/base/item/item.types.d.ts +6 -2
- package/dist/components/base/metadata-list/index.d.ts +1 -3
- package/dist/components/base/metadata-list/metadata-list.d.ts +4 -1
- package/dist/components/base/navigation/index.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +7 -6
- package/dist/components/base/navigation/navigation-tabs.d.ts +8 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/page-header.d.ts +13 -17
- package/dist/components/base/navigation/pagination.d.ts +5 -5
- package/dist/components/base/popover/popover.recipes.d.ts +0 -1
- package/dist/components/base/qr-code/qr-code.d.ts +4 -0
- package/dist/components/base/repeaters/index.d.ts +1 -1
- package/dist/components/base/repeaters/key-value-editor.d.ts +4 -0
- package/dist/components/base/sheet/sheet.d.ts +6 -15
- package/dist/components/base/sidebar/index.d.ts +1 -6
- package/dist/components/base/sidebar/sidebar.d.ts +38 -10
- package/dist/components/base/skeleton/skeleton.d.ts +1 -1
- package/dist/components/base/structure/structure.types.d.ts +11 -2
- package/dist/components/base/text-inputs/index.d.ts +1 -1
- package/dist/components/base/tree/index.d.ts +1 -0
- package/dist/components/base/tree/tree.d.ts +2 -2
- package/dist/components/base/tree/tree.types.d.ts +7 -1
- package/dist/components/base/upload/file-upload.validation.d.ts +37 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -0
- package/dist/components/base/upload/index.d.ts +3 -9
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -0
- package/dist/components/base/value-inputs/slider.d.ts +5 -2
- package/dist/components/blocks/admin/action-surfaces/index.d.ts +17 -4
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +9 -3
- package/dist/components/blocks/admin/index.d.ts +1 -1
- package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +1 -1
- package/dist/components/blocks/ai/ai-artifact/types.d.ts +9 -4
- package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +1 -1
- package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +11 -1
- package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +1 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +1 -1
- package/dist/components/blocks/ai/ai-confirmation/types.d.ts +21 -5
- package/dist/components/blocks/ai/ai-feedback/types.d.ts +7 -2
- package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +9 -3
- package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +1 -1
- package/dist/components/blocks/ai/ai-package-info/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +1 -1
- package/dist/components/blocks/ai/ai-sources/types.d.ts +8 -2
- package/dist/components/blocks/ai/ai-task/ai-task.d.ts +1 -1
- package/dist/components/blocks/ai/ai-task/types.d.ts +10 -1
- package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +1 -1
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +1 -1
- package/dist/components/blocks/analytics/analytics.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +11 -1
- package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +7 -5
- package/dist/components/blocks/analytics/charts/index.d.ts +27 -0
- package/dist/components/blocks/analytics/index.d.ts +17 -24
- package/dist/components/blocks/analytics/metric/metric.d.ts +5 -5
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +2 -2
- package/dist/components/blocks/analytics/types.d.ts +12 -3
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +5 -16
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +2 -2
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +6 -4
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +0 -2
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +9 -11
- package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +1 -1
- package/dist/components/blocks/commerce/coupon-input/types.d.ts +7 -3
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +0 -2
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +4 -6
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +2 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-balance.d.ts +18 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +0 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/types.d.ts +16 -5
- package/dist/components/blocks/commerce/index.d.ts +8 -8
- package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/inventory-level/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +0 -5
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +6 -3
- package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +1 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +11 -5
- package/dist/components/blocks/commerce/order-status/order-status.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +8 -8
- package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +1 -1
- package/dist/components/blocks/commerce/order-timeline/types.d.ts +3 -1
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +0 -8
- package/dist/components/blocks/commerce/payment-method/types.d.ts +0 -2
- package/dist/components/blocks/commerce/receipt/index.d.ts +1 -1
- package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +1 -1
- package/dist/components/blocks/commerce/receipt/types.d.ts +10 -0
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +0 -2
- package/dist/components/blocks/commerce/refund-status/types.d.ts +0 -2
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +7 -0
- package/dist/components/blocks/commerce/shared/code-entry.d.ts +39 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +1 -1
- package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/subscription-summary/types.d.ts +10 -1
- package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -1
- package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +8 -0
- package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +2 -2
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -5
- package/dist/components/blocks/commerce/voucher-entry/types.d.ts +6 -3
- package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +1 -1
- package/dist/components/blocks/content-block-hooks.d.ts +22 -0
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +5 -1
- package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +3 -1
- package/dist/components/blocks/data-display/dense-info-card/index.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/types.d.ts +12 -5
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +6 -0
- package/dist/components/blocks/data-display/index.d.ts +0 -1
- package/dist/components/blocks/data-display/relationship-card-frame.d.ts +1 -1
- package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +5 -3
- package/dist/components/blocks/planning/task-card.types.d.ts +7 -3
- package/dist/components/blocks/timelines/changelog/types.d.ts +2 -2
- package/dist/components/blocks/timelines/index.d.ts +2 -2
- package/dist/components/blocks/timelines/milestones/types.d.ts +2 -2
- package/dist/components/blocks/timelines/shared/timeline.d.ts +6 -0
- package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -1
- package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +2 -2
- package/dist/components/blocks/timelines/steps-card/types.d.ts +13 -1
- package/dist/components/features/activities/activities.strings.d.ts +5 -3
- package/dist/components/features/activities/activities.types.d.ts +28 -11
- package/dist/components/features/activities/hooks/use-activity-feed.d.ts +6 -0
- package/dist/components/features/activities/index.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-headline.d.ts +5 -0
- package/dist/components/features/activities/partials/activity-row.d.ts +12 -13
- package/dist/components/features/activities/partials/row-layers.d.ts +7 -0
- package/dist/components/features/activities/relative-time.d.ts +18 -0
- package/dist/components/features/ai-chat/ai-chat.d.ts +6 -2
- package/dist/components/features/ai-chat/ai-chat.strings.d.ts +41 -2
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +6 -0
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +5 -1
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +2 -2
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +3 -1
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +6 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +19 -5
- package/dist/components/features/appointment-calendar/index.d.ts +1 -1
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +18 -10
- package/dist/components/features/async-preview/async-preview.d.ts +2 -2
- package/dist/components/features/async-preview/async-preview.types.d.ts +30 -1
- package/dist/components/features/async-preview/preview-trigger-cell.d.ts +7 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +12 -3
- package/dist/components/features/combobox/components/error-message.d.ts +3 -1
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -2
- package/dist/components/features/combobox/index.d.ts +1 -1
- package/dist/components/features/combobox/types.d.ts +47 -45
- package/dist/components/features/comments/comments.strings.d.ts +6 -5
- package/dist/components/features/comments/comments.types.d.ts +40 -26
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -1
- package/dist/components/features/comments/hooks/use-comments.d.ts +8 -1
- package/dist/components/features/data-view/data-view.strings.d.ts +9 -2
- package/dist/components/features/data-view/data-view.types.d.ts +15 -2
- package/dist/components/features/email-composer/email-html.d.ts +5 -0
- package/dist/components/features/email-composer/http.d.ts +2 -0
- package/dist/components/features/email-composer/strings.d.ts +17 -2
- package/dist/components/features/email-composer/types.d.ts +17 -2
- package/dist/components/features/email-composer/use-composer.d.ts +2 -78
- package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-header.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-legend.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +126 -21
- package/dist/components/features/filters/facets/range-facet.d.ts +13 -8
- package/dist/components/features/filters/filter-context.d.ts +9 -0
- package/dist/components/features/filters/filters.strings.d.ts +36 -3
- package/dist/components/features/filters/filters.types.d.ts +72 -5
- package/dist/components/features/filters/hooks/use-filter-draft.d.ts +1 -0
- package/dist/components/features/filters/index.d.ts +2 -2
- package/dist/components/features/filters/operator-options.d.ts +25 -2
- package/dist/components/features/filters/partials/active-filter-item.d.ts +0 -13
- package/dist/components/features/filters/partials/async-options-status.d.ts +32 -0
- package/dist/components/features/filters/partials/filter-draft-footer.d.ts +11 -0
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +4 -2
- package/dist/components/features/filters/partials/filter-pill.d.ts +5 -1
- package/dist/components/features/filters/partials/filter-tabs.d.ts +2 -1
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +1 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +29 -4
- package/dist/components/features/global-search/global-search-dialog.d.ts +7 -1
- package/dist/components/features/global-search/global-search.d.ts +7 -1
- package/dist/components/features/global-search/global-search.strings.d.ts +19 -3
- package/dist/components/features/global-search/global-search.types.d.ts +30 -6
- package/dist/components/features/global-search/index.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +6 -1
- package/dist/components/features/global-search/partials/global-search-input.d.ts +2 -0
- package/dist/components/features/kanban/index.d.ts +2 -2
- package/dist/components/features/kanban/kanban-context.d.ts +4 -0
- package/dist/components/features/kanban/kanban-keyboard.d.ts +7 -2
- package/dist/components/features/kanban/kanban.d.ts +10 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +11 -2
- package/dist/components/features/kanban/kanban.types.d.ts +26 -0
- package/dist/components/features/map/map.d.ts +4 -0
- package/dist/components/features/map/place-autocomplete.d.ts +10 -1
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +3 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +33 -3
- package/dist/components/features/media-library/media-library.types.d.ts +47 -2
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +7 -0
- package/dist/components/features/mentions/index.d.ts +1 -1
- package/dist/components/features/mentions/mentions.strings.d.ts +10 -2
- package/dist/components/features/mentions/partials/mention-chip.d.ts +1 -0
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +8 -1
- package/dist/components/features/mentions/partials/mention-picker.d.ts +8 -1
- package/dist/components/features/mentions/partials/mention-search-error.d.ts +6 -0
- package/dist/components/features/mentions/utils/index.d.ts +0 -1
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +2 -2
- package/dist/components/features/overlays/overlays.strings.d.ts +2 -1
- package/dist/components/features/overlays/overlays.types.d.ts +27 -10
- package/dist/components/features/products/components/index.d.ts +0 -10
- package/dist/components/features/products/components/product-contract-overview.d.ts +1 -1
- package/dist/components/features/products/components/product-details-card.d.ts +1 -1
- package/dist/components/features/products/components/product-operations-card.d.ts +1 -1
- package/dist/components/features/products/components/product-option-action-menu.d.ts +1 -1
- package/dist/components/features/products/components/product-options-summary.d.ts +1 -1
- package/dist/components/features/products/components/product-policies-card.d.ts +1 -1
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +1 -1
- package/dist/components/features/products/components/product-readiness-card.d.ts +1 -1
- package/dist/components/features/products/components/product-structure-card.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-table.d.ts +1 -1
- package/dist/components/features/products/partials/product-surface.d.ts +15 -0
- package/dist/components/features/products/products.strings.d.ts +8 -0
- package/dist/components/features/products/products.types.d.ts +25 -7
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +6 -4
- package/dist/components/features/resource/index.d.ts +2 -3
- package/dist/components/features/resource/resource.d.ts +2 -10
- package/dist/components/features/resource/resource.types.d.ts +7 -149
- package/dist/components/features/resource-assignment/partials/assignment-surface.d.ts +15 -0
- package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +6 -1
- package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +6 -0
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +5 -7
- package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +2 -3
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +6 -2
- package/dist/components/features/rich-text-editor/partials/index.d.ts +2 -3
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +0 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +2 -3
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +13 -1
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -0
- package/dist/components/features/schema-form/schema-form.d.ts +1 -1
- package/dist/components/features/schema-form/schema-form.types.d.ts +13 -5
- package/dist/components/features/suggestions/suggestions.strings.d.ts +14 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts +12 -4
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/filter-bar.d.ts +1 -1
- package/dist/components/features/table/pagination.d.ts +1 -1
- package/dist/components/features/table/partials/cell-value.d.ts +1 -1
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +31 -9
- package/dist/components/features/table/table-region.recipes.d.ts +11 -0
- package/dist/components/features/table/table-toolbar.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +1 -0
- package/dist/components/features/table/table.types.d.ts +74 -48
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +4 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +10 -7
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +17 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts +46 -49
- package/dist/components/layout/app-shell/index.d.ts +2 -2
- package/dist/components/layout/app-shell/shell-regions.d.ts +9 -0
- package/dist/components/layout/app-shell/shell-skip-link.d.ts +9 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/auth/auth-shell.d.ts +1 -1
- package/dist/components/layout/auth/auth.types.d.ts +0 -5
- package/dist/components/layout/containers/inline-gutter-context.d.ts +7 -0
- package/dist/components/layout/containers/main-landmark-context.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +16 -6
- package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +1 -1
- package/dist/components/layout/header/partials/header-notifications.d.ts +1 -1
- package/dist/components/layout/header/partials/header-search.d.ts +1 -1
- package/dist/components/layout/hooks/use-command-shortcut.d.ts +10 -1
- package/dist/components/layout/layout.types.d.ts +2 -2
- package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +1 -1
- package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +9 -0
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +8 -1
- package/dist/components/layout/page/index.d.ts +2 -3
- package/dist/components/layout/page/page.strings.d.ts +12 -0
- package/dist/components/layout/page/page.types.d.ts +7 -110
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/index.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +3 -5
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +15 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +10 -12
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +2 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +13 -7
- package/dist/components/primitives/date.d.ts +22 -3
- package/dist/components/primitives/file-size.d.ts +8 -2
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +3 -1
- package/dist/components/primitives/link.d.ts +8 -1
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +2 -1
- package/dist/components/typography/heading.d.ts +9 -3
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/text-link.d.ts +10 -3
- package/dist/components/ui/badge.d.ts +2 -4
- package/dist/components/ui/breadcrumb.d.ts +2 -3
- package/dist/components/ui/button.d.ts +8 -2
- package/dist/components/ui/collapsible.d.ts +1 -4
- package/dist/components/ui/command.d.ts +20 -18
- package/dist/components/ui/dialog.d.ts +3 -9
- package/dist/components/ui/empty.d.ts +2 -2
- package/dist/components/ui/input-group.d.ts +3 -3
- package/dist/components/ui/item.d.ts +3 -3
- package/dist/components/ui/popover.d.ts +3 -7
- package/dist/components/ui/sheet.d.ts +4 -12
- package/dist/components/ui/sidebar-state.d.ts +6 -1
- package/dist/components/ui/sidebar.d.ts +7 -4
- package/dist/components/ui/tabs.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts +3 -3
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/tooltip.d.ts +1 -3
- package/dist/{containers-CSdc32h9.js → containers-BdfLTP4w.js} +37 -32
- package/dist/containers-BdfLTP4w.js.map +1 -0
- package/dist/content-block-hooks-Z3iKjqd1.js +17 -0
- package/dist/content-block-hooks-Z3iKjqd1.js.map +1 -0
- package/dist/{copyable-3fdHfMR3.js → copyable-Bmr14W0d.js} +6 -6
- package/dist/{copyable-3fdHfMR3.js.map → copyable-Bmr14W0d.js.map} +1 -1
- package/dist/{data-display-Cmj-xZYl.js → data-display-CWe9SOYh.js} +264 -251
- package/dist/data-display-CWe9SOYh.js.map +1 -0
- package/dist/date-3qsCE1ID.js +209 -0
- package/dist/date-3qsCE1ID.js.map +1 -0
- package/dist/{date-picker-CyQlFYsP.js → date-picker-D1keJQIG.js} +129 -129
- package/dist/date-picker-D1keJQIG.js.map +1 -0
- package/dist/date-pickers-D8aJoeHc.js +185 -0
- package/dist/date-pickers-D8aJoeHc.js.map +1 -0
- package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -1
- package/dist/{display-CT_N2a3w.js → display-VlmP1I0i.js} +23 -46
- package/dist/display-VlmP1I0i.js.map +1 -0
- package/dist/{dropdown-menu-C08iIugv.js → dropdown-menu-B8hjvbkS.js} +9 -9
- package/dist/{dropdown-menu-C08iIugv.js.map → dropdown-menu-B8hjvbkS.js.map} +1 -1
- package/dist/dropzone-CHBNK3de.js +116 -0
- package/dist/dropzone-CHBNK3de.js.map +1 -0
- package/dist/features/activities.js +682 -628
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +258 -226
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +436 -340
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +351 -265
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +2 -2
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +212 -151
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +344 -315
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +504 -355
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +250 -206
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +269 -189
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +385 -371
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1571 -1199
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +2 -2
- package/dist/features/products.js +1780 -1691
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +165 -152
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +223 -191
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +55 -220
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +3 -3
- package/dist/features/schema-form.js +280 -228
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +48 -39
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/table.js +2 -2
- package/dist/features/theme-tweaker.js +723 -633
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-DmqmXKLn.js +254 -0
- package/dist/feedback-DmqmXKLn.js.map +1 -0
- package/dist/{field-affordance-recipes-D6H7tVJi.js → field-affordance-recipes-DfbMadot.js} +13 -9
- package/dist/field-affordance-recipes-DfbMadot.js.map +1 -0
- package/dist/{field-state-recipes-7sza8QbC.js → field-state-recipes-EtCxpEy3.js} +6 -2
- package/dist/field-state-recipes-EtCxpEy3.js.map +1 -0
- package/dist/filters-BviMRMLS.js +2692 -0
- package/dist/filters-BviMRMLS.js.map +1 -0
- package/dist/{focus-recipes-B653VaLq.js → focus-recipes-DSkiUvUp.js} +3 -3
- package/dist/focus-recipes-DSkiUvUp.js.map +1 -0
- package/dist/{form-field-CAPdwdnZ.js → form-field-BdfCwSoQ.js} +5 -5
- package/dist/{form-field-CAPdwdnZ.js.map → form-field-BdfCwSoQ.js.map} +1 -1
- package/dist/{form-sizing-CgcrUbLU.js → form-sizing-DE_dZw32.js} +3 -3
- package/dist/{form-sizing-CgcrUbLU.js.map → form-sizing-DE_dZw32.js.map} +1 -1
- package/dist/{forms-B3W8CH7-.js → forms-B8DzJnBN.js} +35 -35
- package/dist/forms-B8DzJnBN.js.map +1 -0
- package/dist/forms-numeric-DOBswjKj.js +992 -0
- package/dist/forms-numeric-DOBswjKj.js.map +1 -0
- package/dist/{header-ZIIsRKxP.js → header-Cq3G0ZRP.js} +100 -95
- package/dist/header-Cq3G0ZRP.js.map +1 -0
- package/dist/{hooks-BitHSh-Y.js → hooks-DHfeSMAO.js} +34 -14
- package/dist/hooks-DHfeSMAO.js.map +1 -0
- package/dist/{http-D_6rOnzU.js → http-Cu-GPpss.js} +61 -35
- package/dist/http-Cu-GPpss.js.map +1 -0
- package/dist/{icon-badge-npxF1SLX.js → icon-badge-B0Kq7wom.js} +3 -3
- package/dist/{icon-badge-npxF1SLX.js.map → icon-badge-B0Kq7wom.js.map} +1 -1
- package/dist/index.js +6 -6
- package/dist/inline-gutter-context-CSqmrMFZ.js +11 -0
- package/dist/inline-gutter-context-CSqmrMFZ.js.map +1 -0
- package/dist/{input-DIREVYHs.js → input-2YrgTUrz.js} +3 -3
- package/dist/{input-DIREVYHs.js.map → input-2YrgTUrz.js.map} +1 -1
- package/dist/{input-7KAc7XQL.js → input-DfJyrjoR.js} +6 -6
- package/dist/{input-7KAc7XQL.js.map → input-DfJyrjoR.js.map} +1 -1
- package/dist/{interaction-recipes-4wZ2tvfb.js → interaction-recipes-DmuS1ase.js} +2 -2
- package/dist/{interaction-recipes-4wZ2tvfb.js.map → interaction-recipes-DmuS1ase.js.map} +1 -1
- package/dist/item-GJ9mvCcg.js +279 -0
- package/dist/item-GJ9mvCcg.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +2 -2
- package/dist/layout/settings.js +2 -2
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +12 -12
- package/dist/{layout.types-E_GAApzO.js → layout.types-DbtnyAtd.js} +11 -8
- package/dist/layout.types-DbtnyAtd.js.map +1 -0
- package/dist/lib/anchored-positioning.d.ts +11 -0
- package/dist/lib/field-affordance-recipes.d.ts +10 -0
- package/dist/lib/field-state-recipes.d.ts +6 -0
- package/dist/lib/focus-recipes.d.ts +7 -0
- package/dist/lib/format.d.ts +25 -0
- package/dist/lib/money-format.d.ts +6 -0
- package/dist/lib/motion-recipes.d.ts +6 -0
- package/dist/lib/surface-recipes.d.ts +32 -2
- package/dist/lib/theme-scope.d.ts +17 -1
- package/dist/lib/token-merge.generated.d.ts +13 -19
- package/dist/lib/ui-provider/index.d.ts +1 -1
- package/dist/lib/ui-provider/types.d.ts +5 -0
- package/dist/lib/use-controllable-state.d.ts +16 -0
- package/dist/lib/use-copy-feedback.d.ts +15 -0
- package/dist/lib/utils.js +1 -1
- package/dist/lib/variant-props.d.ts +9 -0
- package/dist/main-landmark-context-BAsyqp2I.js +11 -0
- package/dist/main-landmark-context-BAsyqp2I.js.map +1 -0
- package/dist/mentions-zz0ewNIq.js +670 -0
- package/dist/mentions-zz0ewNIq.js.map +1 -0
- package/dist/{message-BJHnn43M.js → message-BiiVrRrm.js} +10 -7
- package/dist/{message-BJHnn43M.js.map → message-BiiVrRrm.js.map} +1 -1
- package/dist/{metadata-list-XkqZ_UXH.js → metadata-list-G85roWjS.js} +13 -12
- package/dist/metadata-list-G85roWjS.js.map +1 -0
- package/dist/{motion-recipes-DitYv6P2.js → motion-recipes-CUc_aHuG.js} +7 -4
- package/dist/motion-recipes-CUc_aHuG.js.map +1 -0
- package/dist/navigation-C0Be5C3i.js +304 -0
- package/dist/navigation-C0Be5C3i.js.map +1 -0
- package/dist/{navigation-Bt-v7rWP.js → navigation-CmqaQR_G.js} +99 -103
- package/dist/navigation-CmqaQR_G.js.map +1 -0
- package/dist/number-NFWKIoiK.js +340 -0
- package/dist/number-NFWKIoiK.js.map +1 -0
- package/dist/{overflow-tab-bar-BQCA2Zn2.js → overflow-tab-bar-DV7HE_3t.js} +8 -8
- package/dist/{overflow-tab-bar-BQCA2Zn2.js.map → overflow-tab-bar-DV7HE_3t.js.map} +1 -1
- package/dist/overlays-D-gAIfPF.js +1018 -0
- package/dist/overlays-D-gAIfPF.js.map +1 -0
- package/dist/page-D4pQhgSq.js +216 -0
- package/dist/page-D4pQhgSq.js.map +1 -0
- package/dist/{page-header-commands-DIKspJfx.js → page-header-commands-elelNOfd.js} +29 -29
- package/dist/{page-header-commands-DIKspJfx.js.map → page-header-commands-elelNOfd.js.map} +1 -1
- package/dist/{pagination-Br8TdV9A.js → pagination-BuSWw1US.js} +22 -23
- package/dist/pagination-BuSWw1US.js.map +1 -0
- package/dist/{popover-k8TdUcAt.js → popover-BpMxbqEK.js} +73 -69
- package/dist/popover-BpMxbqEK.js.map +1 -0
- package/dist/{popover-menu-yn-o0kyA.js → popover-menu-CO-_iiuz.js} +7 -7
- package/dist/{popover-menu-yn-o0kyA.js.map → popover-menu-CO-_iiuz.js.map} +1 -1
- package/dist/{popover.recipes-DJ0AkUan.js → popover.recipes-BqkdvlZn.js} +3 -4
- package/dist/{popover.recipes-DJ0AkUan.js.map → popover.recipes-BqkdvlZn.js.map} +1 -1
- package/dist/{portal-recipes-DyUXqUtD.js → portal-recipes-BPeS4rGB.js} +2 -2
- package/dist/{portal-recipes-DyUXqUtD.js.map → portal-recipes-BPeS4rGB.js.map} +1 -1
- package/dist/primitives-BlC1lXBr.js +447 -0
- package/dist/primitives-BlC1lXBr.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-DZFXXzPs.js → progress-RARK8AjB.js} +5 -5
- package/dist/{progress-DZFXXzPs.js.map → progress-RARK8AjB.js.map} +1 -1
- package/dist/receipt-CUf2Vegp.js +114 -0
- package/dist/receipt-CUf2Vegp.js.map +1 -0
- package/dist/{rich-text-BnTzZjIo.js → rich-text-Cypm9__d.js} +7 -8
- package/dist/{rich-text-BnTzZjIo.js.map → rich-text-Cypm9__d.js.map} +1 -1
- package/dist/rich-text-editor-Z6cQepsA.js +919 -0
- package/dist/rich-text-editor-Z6cQepsA.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DYbRJARB.js +100 -0
- package/dist/rich-text-editor-toolbar-DYbRJARB.js.map +1 -0
- package/dist/rich-text-tree-DdKHIJx4.js +154 -0
- package/dist/rich-text-tree-DdKHIJx4.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/{scroll-area-Bj6CRUif.js → scroll-area-B9HKbji0.js} +3 -3
- package/dist/{scroll-area-Bj6CRUif.js.map → scroll-area-B9HKbji0.js.map} +1 -1
- package/dist/{separator-DM6gs2vu.js → separator-DaDe26sf.js} +3 -3
- package/dist/separator-DaDe26sf.js.map +1 -0
- package/dist/{separator-B9ewiCGO.js → separator-KGsNXt2J.js} +2 -2
- package/dist/{separator-B9ewiCGO.js.map → separator-KGsNXt2J.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +5 -2
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +2 -2
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-D5j_RJvT.js +160 -0
- package/dist/settings-D5j_RJvT.js.map +1 -0
- package/dist/sheet-B6j_BE9O.js +241 -0
- package/dist/sheet-B6j_BE9O.js.map +1 -0
- package/dist/{sidebar-CmD6a-HK.js → sidebar-C-iQ_TJP.js} +377 -351
- package/dist/sidebar-C-iQ_TJP.js.map +1 -0
- package/dist/sidebar-D5VO2W8S.js +715 -0
- package/dist/sidebar-D5VO2W8S.js.map +1 -0
- package/dist/{skeleton-DDgdhmu9.js → skeleton-Cab_KgVo.js} +12 -12
- package/dist/skeleton-Cab_KgVo.js.map +1 -0
- package/dist/{smart-card-B6vLxqa_.js → smart-card-C59z6KFO.js} +217 -210
- package/dist/smart-card-C59z6KFO.js.map +1 -0
- package/dist/{structure-DZJ2wbAU.js → structure-DElaQwwN.js} +2 -2
- package/dist/{structure-DZJ2wbAU.js.map → structure-DElaQwwN.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-C8mNycaY.js → surface-recipes-DV6rrOFq.js} +10 -2
- package/dist/surface-recipes-DV6rrOFq.js.map +1 -0
- package/dist/{table-CXSPHH25.js → table-CSRUgpdK.js} +62 -61
- package/dist/table-CSRUgpdK.js.map +1 -0
- package/dist/table-DdXDBsR_.js +1657 -0
- package/dist/table-DdXDBsR_.js.map +1 -0
- package/dist/{tabs-C4Kr_hCr.js → tabs-WnHfV2pM.js} +27 -27
- package/dist/tabs-WnHfV2pM.js.map +1 -0
- package/dist/{text-inputs-jdkS3ReG.js → text-inputs-ljyBYaCd.js} +112 -112
- package/dist/text-inputs-ljyBYaCd.js.map +1 -0
- package/dist/theme.css +21 -5
- package/dist/timelines-mOmS9Eh3.js +479 -0
- package/dist/timelines-mOmS9Eh3.js.map +1 -0
- package/dist/tooltip-yjX-Uv-p.js +112 -0
- package/dist/tooltip-yjX-Uv-p.js.map +1 -0
- package/dist/{tree-CeYVzdFE.js → tree-YpkxUG2Z.js} +80 -72
- package/dist/tree-YpkxUG2Z.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-C7-YMW1S.js → typography-C0dELqYV.js} +46 -40
- package/dist/typography-C0dELqYV.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-C-74NVLc.js → ui-provider-Bu1S-o96.js} +4 -3
- package/dist/ui-provider-Bu1S-o96.js.map +1 -0
- package/dist/ui-provider.js +2 -2
- package/dist/{upload-Hdm5gObf.js → upload-DMuMYJFT.js} +276 -268
- package/dist/upload-DMuMYJFT.js.map +1 -0
- package/dist/{usage-card-9s8hLDfn.js → usage-card-DDPki5P1.js} +57 -54
- package/dist/usage-card-DDPki5P1.js.map +1 -0
- package/dist/use-controllable-state-BlP8SyBI.js +13 -0
- package/dist/use-controllable-state-BlP8SyBI.js.map +1 -0
- package/dist/use-copy-feedback-CzcaqlLf.js +28 -0
- package/dist/use-copy-feedback-CzcaqlLf.js.map +1 -0
- package/dist/use-metric-format-options-Dk4rC1NO.js +251 -0
- package/dist/use-metric-format-options-Dk4rC1NO.js.map +1 -0
- package/dist/{utils-DhuoqFy4.js → utils-BVbAG2J6.js} +98 -76
- package/dist/utils-BVbAG2J6.js.map +1 -0
- package/dist/value-inputs-h5MwjGCo.js +982 -0
- package/dist/value-inputs-h5MwjGCo.js.map +1 -0
- package/dist/value-typography-D15uwfj-.js +154 -0
- package/dist/value-typography-D15uwfj-.js.map +1 -0
- package/dist/workspace-DIryPqBt.js +400 -0
- package/dist/workspace-DIryPqBt.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +7 -0
- package/docs/consumer-skill/agents/themelia-ui-designer.md +11 -2
- package/docs/consumer-skill/examples/analytics.tsx +1 -1
- package/docs/consumer-skill/examples/app-layout.tsx +3 -3
- package/docs/consumer-skill/examples/commerce-lines.tsx +7 -5
- package/docs/consumer-skill/examples/detail.tsx +3 -2
- package/docs/consumer-skill/examples/email-composer.tsx +1 -1
- package/docs/consumer-skill/examples/index-table.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +7 -6
- package/docs/consumer-skill/references/agents-md.md +20 -16
- package/docs/consumer-skill/references/analytics.md +20 -6
- package/docs/consumer-skill/references/building-views.md +213 -0
- package/docs/consumer-skill/references/catalogue.md +617 -0
- package/docs/consumer-skill/references/component-contracts.json +10202 -18084
- package/docs/consumer-skill/references/composition.md +21 -17
- package/docs/consumer-skill/references/discovery.md +8 -5
- package/docs/consumer-skill/references/installation.md +10 -4
- package/docs/consumer-skill/references/integration.md +5 -5
- package/docs/consumer-skill/references/product-composition.md +2 -2
- package/docs/consumer-skill/references/public-api.json +580 -633
- package/docs/consumer-skill/references/review.md +6 -4
- package/docs/consumer-skill/references/screen-archetypes.md +2 -2
- package/docs/consumer-skill/references/theming.md +1 -1
- package/docs/consumer-skill/references/tokens.json +4 -4
- package/docs/consumer-skill/references/workflows.md +7 -7
- package/docs/consumer-skill/scripts/composition-policy.mjs +40 -20
- package/docs/consumer-skill/scripts/composition.mjs +4 -1
- package/docs/consumer-skill/scripts/discovery.mjs +3 -1
- package/docs/consumer-skill/scripts/setup-skills.mjs +31 -4
- package/docs/consumer-skills/themelia-components/SKILL.md +8 -4
- package/docs/consumer-skills/themelia-composition/SKILL.md +7 -3
- package/docs/consumer-skills/themelia-design/SKILL.md +7 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +1 -1
- package/package.json +9 -12
- package/templates/README.md +3 -2
- package/templates/admin-shell-template.tsx +49 -9
- package/templates/analytics-operations-template.tsx +20 -24
- package/templates/customers-template.tsx +12 -9
- package/templates/index.ts +2 -8
- package/templates/orders-template.tsx +28 -24
- package/templates/products-template.tsx +14 -4
- package/templates/user-permissions-template.tsx +11 -14
- package/dist/accordion-0tQUZ20r.js.map +0 -1
- package/dist/action-menu-C0gjzLyE.js +0 -284
- package/dist/action-menu-C0gjzLyE.js.map +0 -1
- package/dist/ai-artifact-CGGpQryR.js +0 -1200
- package/dist/ai-artifact-CGGpQryR.js.map +0 -1
- package/dist/anchored-positioning-DPnKTvNs.js +0 -6
- package/dist/anchored-positioning-DPnKTvNs.js.map +0 -1
- package/dist/app-shell-EHuuRDGy.js +0 -321
- package/dist/app-shell-EHuuRDGy.js.map +0 -1
- package/dist/auth-B0girIk_.js.map +0 -1
- package/dist/badge-wWauMgAt.js.map +0 -1
- package/dist/base/sheet.js +0 -3
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +0 -1
- package/dist/button-ChBovTx0.js.map +0 -1
- package/dist/buttons-DeW0bQeK.js.map +0 -1
- package/dist/cascader-CrAl9zD5.js +0 -439
- package/dist/cascader-CrAl9zD5.js.map +0 -1
- package/dist/choice-inputs-DHGtx0QV.js.map +0 -1
- package/dist/code-block-BSJyq9e-.js.map +0 -1
- package/dist/collapsible-BzJ91LUG.js +0 -81
- package/dist/collapsible-BzJ91LUG.js.map +0 -1
- package/dist/combobox-Bcvu5J8O.js +0 -363
- package/dist/combobox-Bcvu5J8O.js.map +0 -1
- package/dist/combobox-C2JiSQPc.js +0 -915
- package/dist/combobox-C2JiSQPc.js.map +0 -1
- package/dist/command-9e52NPgK.js +0 -425
- package/dist/command-9e52NPgK.js.map +0 -1
- package/dist/comments-BsgErEqd.js +0 -1174
- package/dist/comments-BsgErEqd.js.map +0 -1
- package/dist/components/base/buttons/tooltip-button.d.ts +0 -7
- package/dist/components/base/display/content-block.d.ts +0 -75
- package/dist/components/base/display/content-block.strings.d.ts +0 -5
- package/dist/components/base/sheet/index.d.ts +0 -29
- package/dist/components/blocks/ai/use-copy-feedback.d.ts +0 -6
- package/dist/components/blocks/data-display/metadata/index.d.ts +0 -30
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +0 -10
- package/dist/components/features/resource/resource.strings.d.ts +0 -12
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +0 -8
- package/dist/components/features/sync/index.d.ts +0 -26
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +0 -5
- package/dist/components/features/sync/sync.strings.d.ts +0 -18
- package/dist/components/features/sync/sync.types.d.ts +0 -44
- package/dist/components/layout/page/partials/page-actions.d.ts +0 -3
- package/dist/components/ui/slot.d.ts +0 -6
- package/dist/containers-CSdc32h9.js.map +0 -1
- package/dist/data-display-Cmj-xZYl.js.map +0 -1
- package/dist/date-Br0FicVv.js +0 -144
- package/dist/date-Br0FicVv.js.map +0 -1
- package/dist/date-picker-CyQlFYsP.js.map +0 -1
- package/dist/date-pickers-tj2MXmXd.js +0 -185
- package/dist/date-pickers-tj2MXmXd.js.map +0 -1
- package/dist/display-CT_N2a3w.js.map +0 -1
- package/dist/features/sync.js +0 -142
- package/dist/features/sync.js.map +0 -1
- package/dist/feedback-Dzo1xtAU.js +0 -246
- package/dist/feedback-Dzo1xtAU.js.map +0 -1
- package/dist/field-affordance-recipes-D6H7tVJi.js.map +0 -1
- package/dist/field-state-recipes-7sza8QbC.js.map +0 -1
- package/dist/filters-Dl80yYtN.js +0 -2415
- package/dist/filters-Dl80yYtN.js.map +0 -1
- package/dist/focus-recipes-B653VaLq.js.map +0 -1
- package/dist/forms-B3W8CH7-.js.map +0 -1
- package/dist/forms-numeric-CwjQJe-O.js +0 -991
- package/dist/forms-numeric-CwjQJe-O.js.map +0 -1
- package/dist/header-ZIIsRKxP.js.map +0 -1
- package/dist/hooks-BitHSh-Y.js.map +0 -1
- package/dist/http-D_6rOnzU.js.map +0 -1
- package/dist/item-FfWnaYST.js +0 -278
- package/dist/item-FfWnaYST.js.map +0 -1
- package/dist/layout.types-E_GAApzO.js.map +0 -1
- package/dist/media-gallery-C81DAnKI.js +0 -203
- package/dist/media-gallery-C81DAnKI.js.map +0 -1
- package/dist/mentions-qOnedSt4.js +0 -639
- package/dist/mentions-qOnedSt4.js.map +0 -1
- package/dist/metadata-list-XkqZ_UXH.js.map +0 -1
- package/dist/motion-recipes-DitYv6P2.js.map +0 -1
- package/dist/navigation-BgtPJAhi.js +0 -288
- package/dist/navigation-BgtPJAhi.js.map +0 -1
- package/dist/navigation-Bt-v7rWP.js.map +0 -1
- package/dist/number-CYqBcrSj.js +0 -346
- package/dist/number-CYqBcrSj.js.map +0 -1
- package/dist/overlays-CC8zI3Du.js +0 -1017
- package/dist/overlays-CC8zI3Du.js.map +0 -1
- package/dist/page-BoQ1VaFJ.js +0 -331
- package/dist/page-BoQ1VaFJ.js.map +0 -1
- package/dist/pagination-Br8TdV9A.js.map +0 -1
- package/dist/popover-k8TdUcAt.js.map +0 -1
- package/dist/primitives-BkkQjYl7.js +0 -385
- package/dist/primitives-BkkQjYl7.js.map +0 -1
- package/dist/receipt-C7LhOg7Q.js +0 -116
- package/dist/receipt-C7LhOg7Q.js.map +0 -1
- package/dist/rich-text-editor-CAurDwT5.js +0 -1273
- package/dist/rich-text-editor-CAurDwT5.js.map +0 -1
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js +0 -99
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +0 -1
- package/dist/rich-text-tree-BqyQ_7-R.js +0 -66
- package/dist/rich-text-tree-BqyQ_7-R.js.map +0 -1
- package/dist/sanitize-html-BWkH4dLM.js +0 -105
- package/dist/sanitize-html-BWkH4dLM.js.map +0 -1
- package/dist/separator-DM6gs2vu.js.map +0 -1
- package/dist/settings-DZPHgpx4.js +0 -155
- package/dist/settings-DZPHgpx4.js.map +0 -1
- package/dist/sheet-C4DHsgLk.js +0 -250
- package/dist/sheet-C4DHsgLk.js.map +0 -1
- package/dist/sidebar-C8BnDwTH.js +0 -709
- package/dist/sidebar-C8BnDwTH.js.map +0 -1
- package/dist/sidebar-CmD6a-HK.js.map +0 -1
- package/dist/skeleton-DDgdhmu9.js.map +0 -1
- package/dist/slot-CLF9kLrS.js +0 -16
- package/dist/slot-CLF9kLrS.js.map +0 -1
- package/dist/smart-card-B6vLxqa_.js.map +0 -1
- package/dist/surface-recipes-C8mNycaY.js.map +0 -1
- package/dist/table-CBonSdTp.js +0 -1584
- package/dist/table-CBonSdTp.js.map +0 -1
- package/dist/table-CXSPHH25.js.map +0 -1
- package/dist/tabs-C4Kr_hCr.js.map +0 -1
- package/dist/text-inputs-jdkS3ReG.js.map +0 -1
- package/dist/timelines-CoPwdJP0.js +0 -458
- package/dist/timelines-CoPwdJP0.js.map +0 -1
- package/dist/tooltip-31NwIpTo.js +0 -113
- package/dist/tooltip-31NwIpTo.js.map +0 -1
- package/dist/tree-CeYVzdFE.js.map +0 -1
- package/dist/typography-C7-YMW1S.js.map +0 -1
- package/dist/ui-provider-C-74NVLc.js.map +0 -1
- package/dist/upload-Hdm5gObf.js.map +0 -1
- package/dist/upload-queue-D0sYPuqo.js +0 -409
- package/dist/upload-queue-D0sYPuqo.js.map +0 -1
- package/dist/usage-card-9s8hLDfn.js.map +0 -1
- package/dist/utils-DhuoqFy4.js.map +0 -1
- package/dist/value-inputs-D3aPgq9H.js +0 -980
- package/dist/value-inputs-D3aPgq9H.js.map +0 -1
- package/dist/value-typography-uSzzG9Gf.js +0 -122
- package/dist/value-typography-uSzzG9Gf.js.map +0 -1
- package/dist/workspace-CC8Vchiu.js +0 -411
- package/dist/workspace-CC8Vchiu.js.map +0 -1
package/dist/table-CBonSdTp.js
DELETED
|
@@ -1,1584 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { S as e, d as t } from "./ui-provider-C-74NVLc.js";
|
|
3
|
-
import { t as n } from "./utils-DhuoqFy4.js";
|
|
4
|
-
import { n as r } from "./buttons-DeW0bQeK.js";
|
|
5
|
-
import { c as i, o as a, t as o } from "./typography-C7-YMW1S.js";
|
|
6
|
-
import { t as s } from "./focus-recipes-B653VaLq.js";
|
|
7
|
-
import { t as c } from "./structure-DZJ2wbAU.js";
|
|
8
|
-
import { i as l } from "./popover.recipes-DJ0AkUan.js";
|
|
9
|
-
import { n as u, t as d } from "./action-menu-C0gjzLyE.js";
|
|
10
|
-
import { r as f } from "./skeleton-DDgdhmu9.js";
|
|
11
|
-
import { t as p } from "./interaction-recipes-4wZ2tvfb.js";
|
|
12
|
-
import { _ as m, c as h, d as g, g as _, h as v, i as y, l as b, m as x, o as S, p as C, s as w, u as T } from "./primitives-BkkQjYl7.js";
|
|
13
|
-
import { t as ee } from "./initials-format-CDoQEOd_.js";
|
|
14
|
-
import { n as E, r as D, t as O } from "./number-CYqBcrSj.js";
|
|
15
|
-
import { a as k, i as te, r as ne, s as re, t as ie } from "./date-Br0FicVv.js";
|
|
16
|
-
import { i as ae, n as oe, s as se } from "./avatar-B9Jnp-T-.js";
|
|
17
|
-
import { t as ce } from "./badge-wWauMgAt.js";
|
|
18
|
-
import { t as le } from "./batch-action-bar-BoqWIIpV.js";
|
|
19
|
-
import { t as ue } from "./separator-DM6gs2vu.js";
|
|
20
|
-
import { t as de } from "./input-7KAc7XQL.js";
|
|
21
|
-
import { t as fe } from "./checkbox-MoyHIAPs.js";
|
|
22
|
-
import { r as A, t as pe } from "./control-group-recipes-fMuFo0H7.js";
|
|
23
|
-
import { a as me, c as he, i as ge, n as _e, o as ve, r as ye, s as be, t as xe } from "./pagination-Br8TdV9A.js";
|
|
24
|
-
import { c as j, i as Se, n as M, o as N, s as Ce, t as we } from "./table-CXSPHH25.js";
|
|
25
|
-
import { s as Te } from "./data-display-Cmj-xZYl.js";
|
|
26
|
-
import Ee, { createContext as P, isValidElement as De, useCallback as F, useContext as Oe, useEffect as I, useMemo as L, useRef as R, useState as z } from "react";
|
|
27
|
-
import { Fragment as ke, jsx as B, jsxs as V } from "react/jsx-runtime";
|
|
28
|
-
import { ArrowDown as Ae, ArrowUp as je, Calendar as Me, ChevronLeft as Ne, ChevronRight as H, ChevronsUpDown as Pe, Mail as Fe, Maximize2 as Ie, Minimize2 as Le, PackageOpen as Re, Settings2 as ze } from "lucide-react";
|
|
29
|
-
import { flexRender as Be, getCoreRowModel as Ve, getFilteredRowModel as He, getSortedRowModel as Ue, useReactTable as We } from "@tanstack/react-table";
|
|
30
|
-
//#region src/components/features/table/hooks.ts
|
|
31
|
-
var U = 300;
|
|
32
|
-
function Ge(e) {
|
|
33
|
-
return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
|
|
34
|
-
}
|
|
35
|
-
function Ke(e, t = {}) {
|
|
36
|
-
let { stepPx: n = U, deps: r = [] } = t, [i, a] = z(!1), [o, s] = z(!1), c = R(0), l = F(() => {
|
|
37
|
-
let t = Ge(e.current);
|
|
38
|
-
if (!t) {
|
|
39
|
-
a(!1), s(!1);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
let { scrollLeft: n, scrollWidth: r, clientWidth: i } = t;
|
|
43
|
-
a(n > 1), s(n + i < r - 1);
|
|
44
|
-
}, [e]);
|
|
45
|
-
I(() => {
|
|
46
|
-
let t, n = window.setTimeout(() => {
|
|
47
|
-
l();
|
|
48
|
-
let n = Ge(e.current);
|
|
49
|
-
if (!n) return;
|
|
50
|
-
let r = () => {
|
|
51
|
-
cancelAnimationFrame(c.current), c.current = requestAnimationFrame(l);
|
|
52
|
-
};
|
|
53
|
-
n.addEventListener("scroll", r, { passive: !0 });
|
|
54
|
-
let i = new ResizeObserver(l);
|
|
55
|
-
i.observe(n), n.firstElementChild && i.observe(n.firstElementChild), t = () => {
|
|
56
|
-
n.removeEventListener("scroll", r), cancelAnimationFrame(c.current), i.disconnect();
|
|
57
|
-
};
|
|
58
|
-
}, 0);
|
|
59
|
-
return () => {
|
|
60
|
-
window.clearTimeout(n), t?.();
|
|
61
|
-
};
|
|
62
|
-
}, [
|
|
63
|
-
e,
|
|
64
|
-
l,
|
|
65
|
-
...r
|
|
66
|
-
]);
|
|
67
|
-
let u = F((t) => {
|
|
68
|
-
Ge(e.current)?.scrollBy({
|
|
69
|
-
left: t,
|
|
70
|
-
behavior: "smooth"
|
|
71
|
-
});
|
|
72
|
-
}, [e]);
|
|
73
|
-
return {
|
|
74
|
-
canScrollLeft: i,
|
|
75
|
-
canScrollRight: o,
|
|
76
|
-
scrollBy: u,
|
|
77
|
-
scrollLeft: F(() => u(-n), [u, n]),
|
|
78
|
-
scrollRight: F(() => u(n), [u, n])
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
var qe = /* @__PURE__ */ new Set([
|
|
82
|
-
"",
|
|
83
|
-
"true",
|
|
84
|
-
"plaintext-only"
|
|
85
|
-
]), W = [
|
|
86
|
-
"a[href]",
|
|
87
|
-
"button:not([disabled])",
|
|
88
|
-
"input:not([disabled])",
|
|
89
|
-
"select:not([disabled])",
|
|
90
|
-
"textarea:not([disabled])",
|
|
91
|
-
"summary",
|
|
92
|
-
"[contenteditable]",
|
|
93
|
-
"[tabindex]:not([tabindex=\"-1\"])"
|
|
94
|
-
].join(",");
|
|
95
|
-
function Je(e) {
|
|
96
|
-
let t = [e];
|
|
97
|
-
for (let n = 0; n < t.length; n++) for (let r of t[n].querySelectorAll("[aria-controls]:not([aria-expanded=\"false\"])")) for (let n of (r.getAttribute("aria-controls") ?? "").split(/\s+/)) {
|
|
98
|
-
let r = e.ownerDocument.getElementById(n);
|
|
99
|
-
r && !t.includes(r) && t.push(r);
|
|
100
|
-
}
|
|
101
|
-
return t;
|
|
102
|
-
}
|
|
103
|
-
function Ye(e, t, n) {
|
|
104
|
-
let r = R(n);
|
|
105
|
-
r.current = n, I(() => {
|
|
106
|
-
if (!e || typeof document > "u") return;
|
|
107
|
-
let n = document.activeElement, i = document.body.style.overflow;
|
|
108
|
-
document.body.style.overflow = "hidden";
|
|
109
|
-
let a, o = !0, s = (e, t) => t instanceof Node && Je(e).some((e) => e.contains(t)), c = (e) => Array.from(e.querySelectorAll(W)).filter((e) => (e.tabIndex >= 0 || qe.has(e.getAttribute("contenteditable")?.toLowerCase() ?? "false") && !e.hasAttribute("tabindex") && !e.parentElement?.isContentEditable) && !e.matches(":disabled") && !e.closest("[inert], [hidden]") && !["hidden", "collapse"].includes(getComputedStyle(e).visibility) && (e.offsetParent !== null || e === document.activeElement)), l = (e, t) => {
|
|
110
|
-
let n = e?.closest("[role=\"dialog\"], [role=\"alertdialog\"], [aria-modal=\"true\"]");
|
|
111
|
-
return !!n && n !== t;
|
|
112
|
-
}, u = (e) => {
|
|
113
|
-
let n = t.current;
|
|
114
|
-
if (!n || e.defaultPrevented || e.isComposing || l(document.activeElement, n)) return;
|
|
115
|
-
if (a = e.key === "Tab" ? e.shiftKey ? "backward" : "forward" : void 0, e.key === "Escape") {
|
|
116
|
-
e.preventDefault(), e.stopPropagation(), r.current();
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
if (e.key !== "Tab") return;
|
|
120
|
-
let i = document.activeElement;
|
|
121
|
-
if (i && !n.contains(i) && s(n, i)) return;
|
|
122
|
-
let o = c(n);
|
|
123
|
-
if (o.length === 0) return;
|
|
124
|
-
let u = o[0], d = o[o.length - 1], f = i instanceof Node && n.contains(i);
|
|
125
|
-
e.shiftKey && (!f || i === u) ? (e.preventDefault(), d.focus()) : !e.shiftKey && (!f || i === d) && (e.preventDefault(), u.focus());
|
|
126
|
-
}, d = () => {
|
|
127
|
-
a && queueMicrotask(() => {
|
|
128
|
-
let e = t.current;
|
|
129
|
-
if (!o || !e || !a || s(e, document.activeElement) || l(document.activeElement, e)) return;
|
|
130
|
-
let n = c(e);
|
|
131
|
-
(a === "backward" ? n.at(-1) : n[0])?.focus();
|
|
132
|
-
});
|
|
133
|
-
}, f = () => {
|
|
134
|
-
a = void 0;
|
|
135
|
-
}, p = t.current;
|
|
136
|
-
return window.addEventListener("keydown", u), window.addEventListener("focusin", d), window.addEventListener("pointerdown", f, !0), () => {
|
|
137
|
-
o = !1, window.removeEventListener("keydown", u), window.removeEventListener("focusin", d), window.removeEventListener("pointerdown", f, !0), document.body.style.overflow = i;
|
|
138
|
-
let e = document.activeElement;
|
|
139
|
-
(p && s(p, e) || e === document.body) && n?.isConnected && n.focus();
|
|
140
|
-
};
|
|
141
|
-
}, [e, t]);
|
|
142
|
-
}
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region src/components/features/table/table.strings.ts
|
|
145
|
-
var G = (e) => {
|
|
146
|
-
let t = e.replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
|
|
147
|
-
return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : "Column";
|
|
148
|
-
}, K = {
|
|
149
|
-
loading: { label: "Loading records" },
|
|
150
|
-
emptyState: {
|
|
151
|
-
message: "No results found.",
|
|
152
|
-
ariaLabel: "Empty state"
|
|
153
|
-
},
|
|
154
|
-
actions: {
|
|
155
|
-
triggerLabel: "Actions",
|
|
156
|
-
srLabel: "Row actions menu",
|
|
157
|
-
menuLabel: "More actions"
|
|
158
|
-
},
|
|
159
|
-
filter: {
|
|
160
|
-
searchPlaceholder: "Filter...",
|
|
161
|
-
columnsButton: "Columns"
|
|
162
|
-
},
|
|
163
|
-
columnVisibility: {
|
|
164
|
-
title: "Toggle columns",
|
|
165
|
-
triggerLabel: "Columns",
|
|
166
|
-
formatLabel: (e, t) => t && t.trim().length > 0 ? t : G(e)
|
|
167
|
-
},
|
|
168
|
-
toolbar: {
|
|
169
|
-
scrollLeft: "Scroll left",
|
|
170
|
-
scrollRight: "Scroll right",
|
|
171
|
-
columns: "Toggle columns",
|
|
172
|
-
enterFullscreen: "Enter full screen",
|
|
173
|
-
exitFullscreen: "Exit full screen"
|
|
174
|
-
},
|
|
175
|
-
pagination: {
|
|
176
|
-
showing: "Showing",
|
|
177
|
-
to: "to",
|
|
178
|
-
of: "of",
|
|
179
|
-
entries: "results",
|
|
180
|
-
previous: "Previous",
|
|
181
|
-
next: "Next",
|
|
182
|
-
previousLabel: "Go to previous page",
|
|
183
|
-
nextLabel: "Go to next page",
|
|
184
|
-
morePages: "More pages",
|
|
185
|
-
page: "Page",
|
|
186
|
-
rowsPerPage: "Rows per page",
|
|
187
|
-
ariaLabel: "Pagination navigation"
|
|
188
|
-
},
|
|
189
|
-
selection: {
|
|
190
|
-
summary: (e, t) => `${e} of ${t} row${t === 1 ? "" : "s"} selected.`,
|
|
191
|
-
row: (e) => `Select row ${e + 1}`,
|
|
192
|
-
selectAll: "Select all rows",
|
|
193
|
-
clear: "Clear selection",
|
|
194
|
-
label: "Batch actions"
|
|
195
|
-
},
|
|
196
|
-
accessibility: {
|
|
197
|
-
scrollRegion: "Table scroll area",
|
|
198
|
-
fullscreenRegion: "Table, full screen",
|
|
199
|
-
sortColumn: (e) => `Sort ${e}`,
|
|
200
|
-
sortPriority: (e, t, n) => `${e === "asc" ? "Ascending" : "Descending"}, sort priority ${t} of ${n}.`,
|
|
201
|
-
resizeColumn: (e) => `Resize ${e}`
|
|
202
|
-
}
|
|
203
|
-
}, q = (e, t) => ({
|
|
204
|
-
...e,
|
|
205
|
-
...t
|
|
206
|
-
}), Xe = (e) => e ? {
|
|
207
|
-
loading: q(K.loading, e.loading),
|
|
208
|
-
emptyState: q(K.emptyState, e.emptyState),
|
|
209
|
-
actions: {
|
|
210
|
-
...q(K.actions, e.actions),
|
|
211
|
-
...e.actions?.triggerLabel !== void 0 && e.actions.menuLabel === void 0 ? { menuLabel: e.actions.triggerLabel } : {}
|
|
212
|
-
},
|
|
213
|
-
filter: q(K.filter, e.filter),
|
|
214
|
-
columnVisibility: q(K.columnVisibility, e.columnVisibility),
|
|
215
|
-
toolbar: q(K.toolbar, e.toolbar),
|
|
216
|
-
pagination: q(K.pagination, e.pagination),
|
|
217
|
-
selection: q(K.selection, e.selection),
|
|
218
|
-
accessibility: q(K.accessibility, e.accessibility)
|
|
219
|
-
} : K;
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/components/features/table/pagination.tsx
|
|
222
|
-
function Ze(e, t) {
|
|
223
|
-
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
224
|
-
let n = [1];
|
|
225
|
-
e > 3 && n.push("ellipsis");
|
|
226
|
-
let r = Math.max(2, e - 1), i = Math.min(t - 1, e + 1);
|
|
227
|
-
for (let e = r; e <= i; e++) n.push(e);
|
|
228
|
-
return e < t - 2 && n.push("ellipsis"), n.push(t), n;
|
|
229
|
-
}
|
|
230
|
-
function Qe(e, t, n) {
|
|
231
|
-
let r = new URLSearchParams();
|
|
232
|
-
return r.set(n, String(t)), `${e}?${r.toString()}`;
|
|
233
|
-
}
|
|
234
|
-
function $e({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i }) {
|
|
235
|
-
let a = {
|
|
236
|
-
...K.pagination,
|
|
237
|
-
...r
|
|
238
|
-
}, o = {
|
|
239
|
-
navigationLabel: a.ariaLabel,
|
|
240
|
-
previous: a.previous,
|
|
241
|
-
next: a.next,
|
|
242
|
-
previousLabel: a.previousLabel ?? he.previousLabel,
|
|
243
|
-
nextLabel: a.nextLabel ?? he.nextLabel,
|
|
244
|
-
morePages: a.morePages ?? he.morePages
|
|
245
|
-
}, s = i ?? "page", c = (e.current_page - 1) * e.per_page + 1, l = Math.min(e.current_page * e.per_page, e.total), u = F((n, r) => {
|
|
246
|
-
r && t?.(n, r, e.path || "");
|
|
247
|
-
}, [t, e.path]), d = e.prev_page_url !== null, f = e.next_page_url !== null, p = Ze(e.current_page, e.last_page);
|
|
248
|
-
return /* @__PURE__ */ V("div", {
|
|
249
|
-
className: n("pagination--component", "flex flex-col items-start gap-space-md px-surface py-row-y-lg sm:flex-row sm:items-center sm:justify-between sm:gap-0"),
|
|
250
|
-
children: [/* @__PURE__ */ V(_, {
|
|
251
|
-
size: "xs",
|
|
252
|
-
className: "tabular-nums tracking-tight",
|
|
253
|
-
children: [
|
|
254
|
-
/* @__PURE__ */ B(O, {
|
|
255
|
-
value: c,
|
|
256
|
-
size: "xs",
|
|
257
|
-
weight: "medium",
|
|
258
|
-
align: "left"
|
|
259
|
-
}),
|
|
260
|
-
"–",
|
|
261
|
-
/* @__PURE__ */ B(O, {
|
|
262
|
-
value: l,
|
|
263
|
-
size: "xs",
|
|
264
|
-
weight: "medium",
|
|
265
|
-
align: "left"
|
|
266
|
-
}),
|
|
267
|
-
" ",
|
|
268
|
-
a.of,
|
|
269
|
-
" ",
|
|
270
|
-
/* @__PURE__ */ B(O, {
|
|
271
|
-
value: e.total,
|
|
272
|
-
size: "xs",
|
|
273
|
-
weight: "medium",
|
|
274
|
-
align: "left"
|
|
275
|
-
}),
|
|
276
|
-
" ",
|
|
277
|
-
a.entries
|
|
278
|
-
]
|
|
279
|
-
}), /* @__PURE__ */ B(be, {
|
|
280
|
-
strings: o,
|
|
281
|
-
className: "mx-0 w-full justify-start sm:w-auto sm:justify-center",
|
|
282
|
-
children: /* @__PURE__ */ V(xe, {
|
|
283
|
-
className: "gap-0 sm:gap-space-2xs",
|
|
284
|
-
children: [
|
|
285
|
-
/* @__PURE__ */ B(ye, { children: /* @__PURE__ */ B(ve, {
|
|
286
|
-
size: "sm",
|
|
287
|
-
text: a.previous,
|
|
288
|
-
href: "#",
|
|
289
|
-
onClick: (t) => {
|
|
290
|
-
t.preventDefault(), u(e.current_page - 1, e.prev_page_url);
|
|
291
|
-
},
|
|
292
|
-
"aria-disabled": !d,
|
|
293
|
-
className: "h-action-sm text-pxs"
|
|
294
|
-
}) }),
|
|
295
|
-
p.map((t, n) => {
|
|
296
|
-
let r = t === "ellipsis", i = r ? `ellipsis-${e.current_page}-${n}` : `page-${t}`;
|
|
297
|
-
return /* @__PURE__ */ B(ye, { children: r ? /* @__PURE__ */ B(_e, { size: "sm" }) : /* @__PURE__ */ B(ge, {
|
|
298
|
-
size: "sm",
|
|
299
|
-
href: "#",
|
|
300
|
-
active: t === e.current_page,
|
|
301
|
-
onClick: (n) => {
|
|
302
|
-
n.preventDefault(), u(t, Qe(e.path, t, s));
|
|
303
|
-
},
|
|
304
|
-
className: "size-action-sm text-pxs",
|
|
305
|
-
children: t
|
|
306
|
-
}) }, i);
|
|
307
|
-
}),
|
|
308
|
-
/* @__PURE__ */ B(ye, { children: /* @__PURE__ */ B(me, {
|
|
309
|
-
size: "sm",
|
|
310
|
-
text: a.next,
|
|
311
|
-
href: "#",
|
|
312
|
-
onClick: (t) => {
|
|
313
|
-
t.preventDefault(), u(e.current_page + 1, e.next_page_url);
|
|
314
|
-
},
|
|
315
|
-
"aria-disabled": !f,
|
|
316
|
-
className: "h-action-sm text-pxs"
|
|
317
|
-
}) })
|
|
318
|
-
]
|
|
319
|
-
})
|
|
320
|
-
})]
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
$e.displayName = "Pagination";
|
|
324
|
-
//#endregion
|
|
325
|
-
//#region src/components/features/table/table-actions.tsx
|
|
326
|
-
function et(e) {
|
|
327
|
-
let { row: t, actions: r, menuLabel: i, displayMode: a = "menu", responsiveBreakpoint: o = 1040, strings: s } = e, c = s ?? K, l = i ?? c.actions.menuLabel ?? c.actions.triggerLabel, f = L(() => {
|
|
328
|
-
let e = typeof r == "function" ? r(t) : r;
|
|
329
|
-
return Array.isArray(e) ? e : [];
|
|
330
|
-
}, [r, t]), p = L(() => {
|
|
331
|
-
let e = (e) => typeof e == "function" ? e(t) : e;
|
|
332
|
-
return f.flatMap((t) => {
|
|
333
|
-
let n = e(t.visible) ?? !0;
|
|
334
|
-
return n ? [{
|
|
335
|
-
...t,
|
|
336
|
-
visible: n,
|
|
337
|
-
disabled: e(t.disabled) ?? !1
|
|
338
|
-
}] : [];
|
|
339
|
-
});
|
|
340
|
-
}, [f, t]), m = p.length > 0, [h, g] = z(!1), _ = p.filter((e) => e.tone !== "destructive"), v = p.filter((e) => e.tone === "destructive"), y = [..._, ...v];
|
|
341
|
-
if (I(() => {
|
|
342
|
-
if (a !== "auto" || !m) {
|
|
343
|
-
g(!1);
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
let e = () => {
|
|
347
|
-
try {
|
|
348
|
-
g(window.innerWidth <= o);
|
|
349
|
-
} catch {
|
|
350
|
-
g(!1);
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
354
|
-
}, [
|
|
355
|
-
a,
|
|
356
|
-
m,
|
|
357
|
-
o
|
|
358
|
-
]), !m) return null;
|
|
359
|
-
let b = a === "auto" ? h ? "menu" : "inline" : a, x = y.map((e, n) => ({
|
|
360
|
-
id: e.id || `${e.label}-${n}`,
|
|
361
|
-
label: e.label,
|
|
362
|
-
icon: e.icon,
|
|
363
|
-
disabled: !!e.disabled,
|
|
364
|
-
tone: e.tone,
|
|
365
|
-
buttonStyle: e.buttonStyle,
|
|
366
|
-
onClick: () => e.onClick?.(t)
|
|
367
|
-
}));
|
|
368
|
-
return b === "inline" ? /* @__PURE__ */ B(d, {
|
|
369
|
-
actions: x,
|
|
370
|
-
className: n("table-actions--component")
|
|
371
|
-
}) : /* @__PURE__ */ B(u, {
|
|
372
|
-
actions: x,
|
|
373
|
-
srText: l || c.actions.srLabel,
|
|
374
|
-
closeOnSelect: !0,
|
|
375
|
-
align: "end"
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
et.displayName = "DataTableActions";
|
|
379
|
-
//#endregion
|
|
380
|
-
//#region src/components/features/table/table-helpers.tsx
|
|
381
|
-
function J(e) {
|
|
382
|
-
return e.options.meta?.themeliaDataTable;
|
|
383
|
-
}
|
|
384
|
-
var tt = (e, t, n) => {
|
|
385
|
-
typeof e == "function" ? t((t) => {
|
|
386
|
-
let r = e(t);
|
|
387
|
-
return n && n(r), r;
|
|
388
|
-
}) : (t(e), n && n(e));
|
|
389
|
-
}, nt = (e, t, n) => {
|
|
390
|
-
typeof e == "function" ? t((t) => {
|
|
391
|
-
let r = e(t);
|
|
392
|
-
return n && n(r), r;
|
|
393
|
-
}) : (t(e), n && n(e));
|
|
394
|
-
}, rt = (e, t, n) => {
|
|
395
|
-
typeof e == "function" ? t((t) => {
|
|
396
|
-
let r = e(t);
|
|
397
|
-
return n && n(r), r;
|
|
398
|
-
}) : (t(e), n && n(e));
|
|
399
|
-
}, it = (e, t, n, r) => {
|
|
400
|
-
let i = "";
|
|
401
|
-
return r && (i += "bg-muted "), typeof n == "function" ? i += n(e, t) + " " : n && (i += n + " "), i.trim();
|
|
402
|
-
}, at = (e, t, n, r, i) => {
|
|
403
|
-
let a = "";
|
|
404
|
-
return typeof n == "string" ? a = n : n && (a = n(e, t)), r && i ? `${a} sticky start-0 z-10 bg-card shadow-[1px_0_0_0_var(--border)] rtl:shadow-[-1px_0_0_0_var(--border)]` : a;
|
|
405
|
-
}, ot = (e) => e.getSelectedRowModel().rows.map((e) => e.original), st = (e, t = K) => /* @__PURE__ */ B("div", {
|
|
406
|
-
className: "flex items-center px-space-sm",
|
|
407
|
-
children: /* @__PURE__ */ B(fe, {
|
|
408
|
-
className: "size-icon cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
409
|
-
checked: e.getIsSelected(),
|
|
410
|
-
disabled: !e.getCanSelect(),
|
|
411
|
-
onCheckedChange: (t) => e.toggleSelected(t === !0),
|
|
412
|
-
onClick: (e) => e.stopPropagation(),
|
|
413
|
-
"aria-label": t.selection.row(e.index)
|
|
414
|
-
})
|
|
415
|
-
}), Y = (e, t = K) => /* @__PURE__ */ B("div", {
|
|
416
|
-
className: "flex items-center px-space-sm",
|
|
417
|
-
children: /* @__PURE__ */ B(fe, {
|
|
418
|
-
className: "size-icon cursor-pointer",
|
|
419
|
-
checked: e.getIsAllPageRowsSelected(),
|
|
420
|
-
indeterminate: e.getIsSomePageRowsSelected() && !e.getIsAllPageRowsSelected(),
|
|
421
|
-
onCheckedChange: (t) => e.toggleAllPageRowsSelected(t === !0),
|
|
422
|
-
"aria-label": t.selection.selectAll
|
|
423
|
-
})
|
|
424
|
-
});
|
|
425
|
-
function ct({ table: e }) {
|
|
426
|
-
return Y(e, J(e)?.strings);
|
|
427
|
-
}
|
|
428
|
-
function X({ table: e, row: t }) {
|
|
429
|
-
return st(t, J(e)?.strings);
|
|
430
|
-
}
|
|
431
|
-
var lt = (e, t) => [{
|
|
432
|
-
id: "selection",
|
|
433
|
-
header: t ? ({ table: e }) => Y(e, t) : ct,
|
|
434
|
-
cell: t ? ({ row: e }) => st(e, t) : X,
|
|
435
|
-
enableSorting: !1,
|
|
436
|
-
enableResizing: !1,
|
|
437
|
-
enableHiding: !1,
|
|
438
|
-
size: 40
|
|
439
|
-
}, ...e], Z = [
|
|
440
|
-
"button, a[href], input, select, textarea, summary, label, [tabindex]",
|
|
441
|
-
"[role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"switch\"], [role=\"radio\"]",
|
|
442
|
-
"[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"tab\"]",
|
|
443
|
-
"[role=\"combobox\"], [role=\"textbox\"], [role=\"slider\"], [role=\"spinbutton\"]",
|
|
444
|
-
"[contenteditable]:not([contenteditable=\"false\"])"
|
|
445
|
-
].join(",");
|
|
446
|
-
function ut({ loading: e = !1, loadingRows: t = 6, table: r, onRowClick: i, emptyStateMessage: a, emptyStateAction: o, cellClassName: c = "", rowClassName: l = "", stickyFirstColumn: u = !1, striped: d = !1, strings: m }) {
|
|
447
|
-
let h = r.getRowModel().rows, g = a ?? m?.emptyState.message ?? K.emptyState.message;
|
|
448
|
-
if (e) {
|
|
449
|
-
let e = Number.isFinite(t) ? Math.max(1, Math.min(20, Math.floor(t))) : 6, n = r.getVisibleLeafColumns();
|
|
450
|
-
return /* @__PURE__ */ B(M, {
|
|
451
|
-
className: "table-body--component",
|
|
452
|
-
"data-loading": "true",
|
|
453
|
-
children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ B(j, {
|
|
454
|
-
"aria-hidden": "true",
|
|
455
|
-
className: "hover:bg-transparent",
|
|
456
|
-
children: n.map((e, t) => /* @__PURE__ */ B(Se, {
|
|
457
|
-
className: at(e.id, null, c, u, t === 0),
|
|
458
|
-
children: /* @__PURE__ */ B(f, { className: "h-4 w-full" })
|
|
459
|
-
}, e.id))
|
|
460
|
-
}, t))
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
return h.length ? /* @__PURE__ */ B(M, { children: h.map((e, t) => {
|
|
464
|
-
let r = e.getIsSelected(), a = e.getVisibleCells(), o = it(e, t, l, r), f = d && t % 2 != 0 ? p.tableStripe : "", m = i ? "cursor-pointer" : "", h = n(o, f, "transition-colors duration-150", `${p.tableRowHover} ${p.tableRowSelected}`, m, i && `focus-visible:outline-none ${s.inset}`, "border-b border-border/60 last:border-b-0");
|
|
465
|
-
return /* @__PURE__ */ B(j, {
|
|
466
|
-
"data-state": r ? "selected" : null,
|
|
467
|
-
className: h,
|
|
468
|
-
tabIndex: i ? 0 : void 0,
|
|
469
|
-
onClick: i ? (t) => {
|
|
470
|
-
if (t.defaultPrevented) return;
|
|
471
|
-
let n = t.target, r = n instanceof Element ? n.closest(Z) : null;
|
|
472
|
-
r && r !== t.currentTarget || n instanceof Node && t.currentTarget.contains(n) && i(e.original);
|
|
473
|
-
} : void 0,
|
|
474
|
-
onKeyDown: i ? (t) => {
|
|
475
|
-
t.defaultPrevented || t.target !== t.currentTarget || t.key !== "Enter" && t.key !== " " || (t.preventDefault(), t.repeat || i(e.original));
|
|
476
|
-
} : void 0,
|
|
477
|
-
children: a.map((t, r) => /* @__PURE__ */ B(Se, {
|
|
478
|
-
className: n(at(t.column.id, e, c, u, r === 0), t.column.columnDef.meta?.align === "end" && "text-right tabular-nums", t.column.columnDef.meta?.align === "center" && "text-center"),
|
|
479
|
-
children: Be(t.column.columnDef.cell, t.getContext())
|
|
480
|
-
}, t.id))
|
|
481
|
-
}, e.id);
|
|
482
|
-
}) }) : /* @__PURE__ */ B(M, {
|
|
483
|
-
className: "table-body--component",
|
|
484
|
-
children: /* @__PURE__ */ B(j, {
|
|
485
|
-
className: "hover:bg-transparent",
|
|
486
|
-
children: /* @__PURE__ */ B(Se, {
|
|
487
|
-
className: "p-0 text-center whitespace-normal",
|
|
488
|
-
colSpan: r.getAllColumns().length,
|
|
489
|
-
children: /* @__PURE__ */ B(Te, {
|
|
490
|
-
strings: { ariaLabel: m?.emptyState.ariaLabel ?? K.emptyState.ariaLabel },
|
|
491
|
-
title: g,
|
|
492
|
-
description: !1,
|
|
493
|
-
media: /* @__PURE__ */ B(Re, { className: "size-icon" }),
|
|
494
|
-
mediaVariant: "icon-soft",
|
|
495
|
-
actions: o,
|
|
496
|
-
className: "data-table--empty-state w-[100cqw] max-w-full"
|
|
497
|
-
})
|
|
498
|
-
})
|
|
499
|
-
})
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
ut.displayName = "DataTableBody";
|
|
503
|
-
//#endregion
|
|
504
|
-
//#region src/components/features/table/table-header.tsx
|
|
505
|
-
function dt({ table: e, enableResizing: t = !1, stickyHeader: i = !1, headerClassName: o = "", cellClassName: c = "", stickyFirstColumn: l = !1, columnGroups: u, headerTransparent: d = !1, strings: f }) {
|
|
506
|
-
let m = e.getHeaderGroups(), h = Ee.useId(), g = e.getState().sorting, _ = i ? n("shadow-[0_1px_0_0_var(--border)]", d ? "bg-background" : "bg-muted") : "", v = (e) => u ? u.find((t) => t.columns.includes(e)) : null;
|
|
507
|
-
return /* @__PURE__ */ V(Ce, {
|
|
508
|
-
className: n(i && "sticky top-0 z-20", o),
|
|
509
|
-
children: [(() => {
|
|
510
|
-
if (!u || u.length === 0 || m.length === 0) return null;
|
|
511
|
-
let e = m[0].headers, t = null, r = 0, i = [];
|
|
512
|
-
return e.forEach((o, s) => {
|
|
513
|
-
let c = v(o.id)?.header || "";
|
|
514
|
-
c === t ? r++ : (t !== null && r > 0 && i.push(/* @__PURE__ */ B(N, {
|
|
515
|
-
colSpan: r,
|
|
516
|
-
className: n("border-r border-border/60 bg-muted/50 text-center text-muted-foreground last:border-r-0", _),
|
|
517
|
-
children: /* @__PURE__ */ B(a, { children: t || "" })
|
|
518
|
-
}, `group-${t}-${i.length}`)), t = c, r = 1), s === e.length - 1 && r > 0 && i.push(/* @__PURE__ */ B(N, {
|
|
519
|
-
colSpan: r,
|
|
520
|
-
className: n("whitespace-nowrap border-r border-border/60 bg-muted/50 text-center text-muted-foreground last:border-r-0", _),
|
|
521
|
-
children: /* @__PURE__ */ B(a, { children: t || "" })
|
|
522
|
-
}, `group-${t}-${i.length}`));
|
|
523
|
-
}), /* @__PURE__ */ B(j, {
|
|
524
|
-
className: n("table-header--component", "border-b border-border"),
|
|
525
|
-
children: i
|
|
526
|
-
});
|
|
527
|
-
})(), m.map((a) => /* @__PURE__ */ B(j, {
|
|
528
|
-
className: n("border-b border-border/60", d ? "bg-transparent hover:bg-transparent" : `${p.tableHead} ${p.tableRowHover}`),
|
|
529
|
-
children: a.headers.map((a, o) => {
|
|
530
|
-
let u = n(at(a.id, null, c, l, o === 0), "text-muted-foreground font-medium whitespace-nowrap", a.column.columnDef.meta?.align === "end" && "text-right", a.column.columnDef.meta?.align === "center" && "text-center", _, i && l && o === 0 && "z-30", !i && "bg-transparent", t && !(l && o === 0) && "relative"), d = t || a.column.columnDef.size !== void 0 ? { width: a.getSize() } : void 0, p = `${h}-${encodeURIComponent(a.id)}`, m = a.getResizeHandler(), v = a.getLeafHeaders().filter((e) => e.subHeaders.length === 0), y = v.reduce((e, t) => e + (t.column.columnDef.minSize ?? 20), 0), b = Math.min(2 ** 53 - 1, v.reduce((e, t) => e + (t.column.columnDef.maxSize ?? 2 ** 53 - 1), 0)), x = (t) => {
|
|
531
|
-
e.setOptions((e) => ({
|
|
532
|
-
...e,
|
|
533
|
-
columnResizeDirection: getComputedStyle(t.currentTarget).direction === "rtl" ? "rtl" : "ltr"
|
|
534
|
-
})), m(t);
|
|
535
|
-
}, S = a.column.getIsResizing(), C = (() => {
|
|
536
|
-
let e = a.column.columnDef.header;
|
|
537
|
-
return typeof e == "string" ? e : typeof a.id == "string" ? a.id : "column";
|
|
538
|
-
})();
|
|
539
|
-
return /* @__PURE__ */ B(N, {
|
|
540
|
-
colSpan: a.colSpan,
|
|
541
|
-
className: u,
|
|
542
|
-
style: d,
|
|
543
|
-
"aria-sort": !a.isPlaceholder && a.subHeaders.length === 0 && a.column.getIsSorted() && a.column.getSortIndex() === 0 ? a.column.getIsSorted() === "asc" ? "ascending" : "descending" : void 0,
|
|
544
|
-
children: a.isPlaceholder ? null : /* @__PURE__ */ V("div", {
|
|
545
|
-
className: n(t && a.column.getCanResize() && "pe-action-sm"),
|
|
546
|
-
children: [(() => {
|
|
547
|
-
let e = a.column.getCanSort(), t = a.column.getIsSorted(), i = Be(a.column.columnDef.header, a.getContext()), o = t === "asc" ? je : t === "desc" ? Ae : Pe;
|
|
548
|
-
return e ? /* @__PURE__ */ V(r, {
|
|
549
|
-
type: "button",
|
|
550
|
-
tone: "secondary",
|
|
551
|
-
buttonStyle: "ghost",
|
|
552
|
-
size: "sm",
|
|
553
|
-
onClick: a.column.getToggleSortingHandler(),
|
|
554
|
-
className: n("group -ml-space-sm inline-flex select-none items-center gap-space-sm rounded-radius px-space-sm", "text-muted-foreground hover:text-foreground transition-colors", `focus-visible:outline-none ${s.edge}`),
|
|
555
|
-
"aria-label": (f?.accessibility.sortColumn ?? K.accessibility.sortColumn)(C),
|
|
556
|
-
"aria-describedby": t && g.length > 1 ? p : void 0,
|
|
557
|
-
children: [
|
|
558
|
-
i,
|
|
559
|
-
t && g.length > 1 && /* @__PURE__ */ B("span", {
|
|
560
|
-
id: p,
|
|
561
|
-
className: "sr-only",
|
|
562
|
-
children: (f?.accessibility.sortPriority ?? K.accessibility.sortPriority)(t, a.column.getSortIndex() + 1, g.length)
|
|
563
|
-
}),
|
|
564
|
-
/* @__PURE__ */ B(o, {
|
|
565
|
-
className: n("size-icon-sm shrink-0 transition-opacity", t ? "text-foreground opacity-100" : "opacity-30 group-hover:opacity-70"),
|
|
566
|
-
"aria-hidden": "true"
|
|
567
|
-
})
|
|
568
|
-
]
|
|
569
|
-
}) : /* @__PURE__ */ B("div", {
|
|
570
|
-
className: n("flex items-center", a.column.columnDef.meta?.align === "end" && "justify-end", a.column.columnDef.meta?.align === "center" && "justify-center"),
|
|
571
|
-
children: i
|
|
572
|
-
});
|
|
573
|
-
})(), !!t && a.column.getCanResize() && /* @__PURE__ */ B("div", {
|
|
574
|
-
role: "separator",
|
|
575
|
-
tabIndex: 0,
|
|
576
|
-
className: n("absolute inset-y-0 end-0 w-action-sm cursor-col-resize select-none touch-none bg-transparent after:absolute after:inset-y-0 after:end-0 after:w-px after:bg-muted-foreground opacity-0 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:after:w-1 focus-visible:after:bg-ring", S && "after:bg-primary-accent!"),
|
|
577
|
-
"aria-label": (f?.accessibility.resizeColumn ?? K.accessibility.resizeColumn)(C),
|
|
578
|
-
"aria-orientation": "vertical",
|
|
579
|
-
"aria-valuenow": a.getSize(),
|
|
580
|
-
"aria-valuemin": y,
|
|
581
|
-
"aria-valuemax": b,
|
|
582
|
-
onKeyDown: (t) => {
|
|
583
|
-
let n = getComputedStyle(t.currentTarget).direction === "rtl", r = (t.key === "ArrowRight" ? 10 : t.key === "ArrowLeft" ? -10 : 0) * (n ? -1 : 1);
|
|
584
|
-
if (!r && t.key !== "Home" && t.key !== "End" || t.key === "End" && b === 2 ** 53 - 1) return;
|
|
585
|
-
t.preventDefault(), t.stopPropagation();
|
|
586
|
-
let i = a.getSize(), o = Math.max(y, Math.min(b, i + r)) / Math.max(1, i);
|
|
587
|
-
e.setColumnSizing((e) => ({
|
|
588
|
-
...e,
|
|
589
|
-
...Object.fromEntries(v.map((e) => {
|
|
590
|
-
let n = e.column.columnDef.minSize ?? 20, r = e.column.columnDef.maxSize ?? 2 ** 53 - 1, i = t.key === "Home" ? n : t.key === "End" ? r : Math.max(n, Math.min(r, e.column.getSize() * o));
|
|
591
|
-
return [e.column.id, Math.round(i * 100) / 100];
|
|
592
|
-
}))
|
|
593
|
-
}));
|
|
594
|
-
},
|
|
595
|
-
onMouseDown: x,
|
|
596
|
-
onTouchStart: x
|
|
597
|
-
})]
|
|
598
|
-
})
|
|
599
|
-
}, a.id);
|
|
600
|
-
})
|
|
601
|
-
}, a.id))]
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
dt.displayName = "DataTableHeader";
|
|
605
|
-
//#endregion
|
|
606
|
-
//#region src/components/features/table/column-visibility-toggle.tsx
|
|
607
|
-
function Q({ table: e, className: t, align: r = "end", labelVisibility: i = "hidden", strings: a = K }) {
|
|
608
|
-
let o = e.getAllColumns().filter((e) => e.getCanHide());
|
|
609
|
-
if (o.length === 0) return null;
|
|
610
|
-
let s = i !== "hidden", c = o.map((e) => {
|
|
611
|
-
let t = e.columnDef.header, n = a.columnVisibility.formatLabel(e.id, typeof t == "string" ? t : void 0);
|
|
612
|
-
return {
|
|
613
|
-
id: e.id,
|
|
614
|
-
type: "checkbox",
|
|
615
|
-
label: n,
|
|
616
|
-
group: a.columnVisibility.title,
|
|
617
|
-
checked: e.getIsVisible(),
|
|
618
|
-
onCheckedChange: (t) => e.toggleVisibility(!!t),
|
|
619
|
-
className: "capitalize"
|
|
620
|
-
};
|
|
621
|
-
});
|
|
622
|
-
return /* @__PURE__ */ B(u, {
|
|
623
|
-
actions: c,
|
|
624
|
-
icon: ze,
|
|
625
|
-
label: a.columnVisibility.triggerLabel,
|
|
626
|
-
srText: a.columnVisibility.triggerLabel,
|
|
627
|
-
align: r,
|
|
628
|
-
width: l.xs,
|
|
629
|
-
labelVisibility: s ? "responsive" : "hidden",
|
|
630
|
-
buttonProps: {
|
|
631
|
-
"aria-label": a.columnVisibility.triggerLabel,
|
|
632
|
-
tone: "secondary",
|
|
633
|
-
buttonStyle: "outline",
|
|
634
|
-
size: "sm",
|
|
635
|
-
iconOnly: !s,
|
|
636
|
-
className: n("column-visibility-toggle--component", s ? "h-action-sm gap-space-sm px-control-sm" : "size-action-sm gap-0 px-0", t)
|
|
637
|
-
},
|
|
638
|
-
preserveOrder: !0
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
Q.displayName = "ColumnVisibilityToggle";
|
|
642
|
-
//#endregion
|
|
643
|
-
//#region src/components/features/table/partials/fullscreen-toggle.tsx
|
|
644
|
-
var ft = "text-muted-foreground hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
|
|
645
|
-
function pt({ fullscreen: e, onFullscreenChange: t, enterLabel: i = "Enter full screen", exitLabel: a = "Exit full screen", className: o }) {
|
|
646
|
-
let s = e ? a : i, c = e ? Le : Ie;
|
|
647
|
-
return /* @__PURE__ */ B(r, {
|
|
648
|
-
type: "button",
|
|
649
|
-
tone: "secondary",
|
|
650
|
-
buttonStyle: "ghost",
|
|
651
|
-
size: "sm",
|
|
652
|
-
iconOnly: !0,
|
|
653
|
-
"aria-label": s,
|
|
654
|
-
"aria-pressed": e,
|
|
655
|
-
onClick: () => t(!e),
|
|
656
|
-
className: n("fullscreen-toggle--component", ft, o),
|
|
657
|
-
children: /* @__PURE__ */ B(c, { className: "size-icon-sm" })
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
pt.displayName = "FullscreenToggle";
|
|
661
|
-
//#endregion
|
|
662
|
-
//#region src/components/features/table/table-toolbar.tsx
|
|
663
|
-
var mt = 300, ht = "text-muted-foreground transition-colors duration-150 hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
|
|
664
|
-
function gt({ label: e, onClick: t, disabled: i, className: a, children: o }) {
|
|
665
|
-
return /* @__PURE__ */ B(r, {
|
|
666
|
-
type: "button",
|
|
667
|
-
tone: "secondary",
|
|
668
|
-
buttonStyle: "ghost",
|
|
669
|
-
size: "sm",
|
|
670
|
-
iconOnly: !0,
|
|
671
|
-
"aria-label": e,
|
|
672
|
-
className: n("table-toolbar--component", ht, A.joinedItem, a),
|
|
673
|
-
onClick: t,
|
|
674
|
-
disabled: i,
|
|
675
|
-
children: o
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
function _t(e) {
|
|
679
|
-
return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
|
|
680
|
-
}
|
|
681
|
-
function vt({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, showFullscreenToggle: s = !1, enableColumnVisibility: c = !1, labelVisibility: l = "hidden", strings: u = K }) {
|
|
682
|
-
let { defaultScale: d } = t(), f = e(void 0, d), [p, m] = z(!1), [h, g] = z(!1), _ = R(0), v = R(null), y = F(() => {
|
|
683
|
-
let e = _t(i.current);
|
|
684
|
-
if (!e) {
|
|
685
|
-
m(!1), g(!1);
|
|
686
|
-
return;
|
|
687
|
-
}
|
|
688
|
-
let { scrollLeft: t, scrollWidth: n, clientWidth: r } = e;
|
|
689
|
-
m(t > 1), g(t + r < n - 1);
|
|
690
|
-
}, [i]);
|
|
691
|
-
I(() => {
|
|
692
|
-
let e = window.setTimeout(() => {
|
|
693
|
-
let e = _t(i.current);
|
|
694
|
-
if (!e || (y(), typeof ResizeObserver > "u")) return;
|
|
695
|
-
let t = () => {
|
|
696
|
-
cancelAnimationFrame(_.current), _.current = requestAnimationFrame(y);
|
|
697
|
-
};
|
|
698
|
-
e.addEventListener("scroll", t, { passive: !0 });
|
|
699
|
-
let n = new ResizeObserver(y);
|
|
700
|
-
n.observe(e), e.firstElementChild && n.observe(e.firstElementChild), v.current = () => {
|
|
701
|
-
e.removeEventListener("scroll", t), cancelAnimationFrame(_.current), n.disconnect();
|
|
702
|
-
};
|
|
703
|
-
}, 0);
|
|
704
|
-
return () => {
|
|
705
|
-
window.clearTimeout(e), v.current?.();
|
|
706
|
-
};
|
|
707
|
-
}, [
|
|
708
|
-
i,
|
|
709
|
-
y,
|
|
710
|
-
a
|
|
711
|
-
]);
|
|
712
|
-
let b = F(() => {
|
|
713
|
-
_t(i.current)?.scrollBy({
|
|
714
|
-
left: -300,
|
|
715
|
-
behavior: "smooth"
|
|
716
|
-
});
|
|
717
|
-
}, [i]), x = F(() => {
|
|
718
|
-
_t(i.current)?.scrollBy({
|
|
719
|
-
left: mt,
|
|
720
|
-
behavior: "smooth"
|
|
721
|
-
});
|
|
722
|
-
}, [i]), S = c ? r.getAllColumns().filter((e) => e.getCanHide()) : [], C = p || h, w = S.length > 0, T = s;
|
|
723
|
-
return !C && !w && !T ? null : /* @__PURE__ */ V("div", {
|
|
724
|
-
className: n(A.joinedFrame, pe[f], "bg-card text-card-foreground"),
|
|
725
|
-
children: [
|
|
726
|
-
!!C && /* @__PURE__ */ V(ke, { children: [
|
|
727
|
-
/* @__PURE__ */ B(gt, {
|
|
728
|
-
label: u.toolbar.scrollLeft,
|
|
729
|
-
onClick: b,
|
|
730
|
-
disabled: !p,
|
|
731
|
-
className: A.firstItem,
|
|
732
|
-
children: /* @__PURE__ */ B(Ne, { className: "size-icon-sm" })
|
|
733
|
-
}),
|
|
734
|
-
/* @__PURE__ */ B(gt, {
|
|
735
|
-
label: u.toolbar.scrollRight,
|
|
736
|
-
onClick: x,
|
|
737
|
-
disabled: !h,
|
|
738
|
-
children: /* @__PURE__ */ B(H, { className: "size-icon-sm" })
|
|
739
|
-
}),
|
|
740
|
-
(w || T) && /* @__PURE__ */ B("div", { className: "h-4 w-px self-center bg-border" })
|
|
741
|
-
] }),
|
|
742
|
-
!!w && /* @__PURE__ */ V(ke, { children: [/* @__PURE__ */ B(Q, {
|
|
743
|
-
table: r,
|
|
744
|
-
strings: u,
|
|
745
|
-
labelVisibility: l,
|
|
746
|
-
className: n(A.joinedItem, "border-0 shadow-none", !C && A.firstItem, !T && A.lastItem)
|
|
747
|
-
}), T && /* @__PURE__ */ B("div", { className: "h-4 w-px self-center bg-border" })] }),
|
|
748
|
-
T && /* @__PURE__ */ B(pt, {
|
|
749
|
-
fullscreen: a,
|
|
750
|
-
onFullscreenChange: o,
|
|
751
|
-
enterLabel: u.toolbar.enterFullscreen,
|
|
752
|
-
exitLabel: u.toolbar.exitFullscreen,
|
|
753
|
-
className: n(A.joinedItem, A.lastItem, !C && !w && A.firstItem)
|
|
754
|
-
})
|
|
755
|
-
]
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
vt.displayName = "DataTableToolbar";
|
|
759
|
-
//#endregion
|
|
760
|
-
//#region src/components/features/table/data-table.tsx
|
|
761
|
-
var yt = P("sm");
|
|
762
|
-
function bt() {
|
|
763
|
-
return Oe(yt);
|
|
764
|
-
}
|
|
765
|
-
var xt = {
|
|
766
|
-
sm: "compact",
|
|
767
|
-
md: "default",
|
|
768
|
-
lg: "comfortable"
|
|
769
|
-
}, St = {
|
|
770
|
-
sm: "sm",
|
|
771
|
-
md: "sm",
|
|
772
|
-
lg: "sm"
|
|
773
|
-
}, Ct = (e) => {
|
|
774
|
-
if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
|
|
775
|
-
};
|
|
776
|
-
function wt(e, t) {
|
|
777
|
-
return e.map((e) => "columns" in e && e.columns ? {
|
|
778
|
-
...e,
|
|
779
|
-
columns: wt(e.columns, t)
|
|
780
|
-
} : (e.id ?? ("accessorKey" in e && typeof e.accessorKey == "string" ? e.accessorKey.replace(/\./g, "_") : void 0) ?? (typeof e.header == "string" ? e.header : void 0)) === t && e.filterFn === void 0 ? {
|
|
781
|
-
...e,
|
|
782
|
-
filterFn: "includesString"
|
|
783
|
-
} : e);
|
|
784
|
-
}
|
|
785
|
-
function Tt({ table: e }) {
|
|
786
|
-
return J(e)?.strings.actions.triggerLabel ?? K.actions.triggerLabel;
|
|
787
|
-
}
|
|
788
|
-
function Et({ table: e, row: t }) {
|
|
789
|
-
return J(e)?.renderActions?.(t.original) ?? null;
|
|
790
|
-
}
|
|
791
|
-
function Dt(e) {
|
|
792
|
-
let t = e.length === 2 && Array.isArray(e[0]) && Array.isArray(e[1]) ? e : void 0, [n, r] = z(t);
|
|
793
|
-
if (!t) return n && r(void 0), e;
|
|
794
|
-
let i = t[1];
|
|
795
|
-
return n && i.length === n[1].length && i.every((e, t) => Object.is(e, n[1][t])) ? n[0] : (r(t), t[0]);
|
|
796
|
-
}
|
|
797
|
-
function Ot({ size: r, surface: i = "card", headerTransparent: a = !0, columns: o, data: c, loading: l = !1, loadingRows: u, columnGroups: d, rowActions: f, rowActionsMenuLabel: p, rowActionsDisplayMode: m, rowActionsBreakpoint: h, enableSorting: g = !1, enableResizing: _ = !1, enableFiltering: v = !1, filterColumn: y, filterPlaceholder: b, manualSorting: x = !1, enableColumnVisibility: S = !1, fullscreen: C, defaultFullscreen: w = !1, onFullscreenChange: T, showFullscreenToggle: ee = !1, enableRowSelection: E = !1, enableMultiRowSelection: D = !0, enableSubRowSelection: O = !1, pagination: k, pageQueryKey: te, onPageChange: ne, onSortingChange: re, onColumnFiltersChange: ie, onRowClick: ae, onRowSelectionChange: oe, stickyHeader: se = !1, stickyToolbar: ce = !1, stickyFirstColumn: fe = !1, maxBodyHeight: A, fillAvailableHeight: pe = !1, emptyStateMessage: me, emptyStateAction: he, className: ge = "", rowClassName: _e = "", cellClassName: ve = "", headerClassName: ye = "", wrapperClassName: be = "", innerClassName: xe = "", tableContainerClassName: j = "", getRowId: Se, rowSelection: M, sorting: N, defaultSorting: Ce, columnVisibility: Te, defaultColumnVisibility: Ee, initialState: P, onColumnVisibilityChange: De, strings: Oe, topbarContent: I, topbarEnd: Ae, topbarClassName: je, toolbarLabelVisibility: Me = "hidden", footerContent: Ne, selectionToolbar: H, bulkActions: Pe, selectionToolbarClassName: Fe, selectionToolbarPlacement: Ie = "floating", totalRowCount: Le, storageKey: Re }) {
|
|
798
|
-
let { defaultScale: ze } = t(), Be = e(r, ze), U = L(() => Xe(Oe), [Oe]), Ge = n("bg-card text-card-foreground", _e), Ke = me ?? U.emptyState.message, qe = te ?? "page", W = Ct(A), Je = Dt(o), G = L(() => Re ? `dt.${Re}.columns` : null, [Re]), q = L(() => {
|
|
799
|
-
let e = Ee ?? P?.columnVisibility ?? {};
|
|
800
|
-
if (!G || typeof window > "u") return e;
|
|
801
|
-
try {
|
|
802
|
-
let t = window.localStorage.getItem(G);
|
|
803
|
-
return {
|
|
804
|
-
...t ? JSON.parse(t) : {},
|
|
805
|
-
...e
|
|
806
|
-
};
|
|
807
|
-
} catch {
|
|
808
|
-
return e;
|
|
809
|
-
}
|
|
810
|
-
}, [
|
|
811
|
-
Ee,
|
|
812
|
-
G,
|
|
813
|
-
P?.columnVisibility
|
|
814
|
-
]), [Ze, Qe] = z(Ce ?? P?.sorting ?? []), [J, tt] = z(P?.columnFilters ?? []), [nt, rt] = z(q), [it, at] = z(P?.rowSelection || {}), [ot, st] = z(w), Y = N ?? Ze, ct = Te ?? nt, X = M ?? it, Z = C ?? ot, Q = R(null), ft = R(null), pt = L(() => ({ get current() {
|
|
815
|
-
let e = ft.current;
|
|
816
|
-
return e?.isConnected ? e : Q.current?.querySelector("thead [role=\"checkbox\"]") ?? null;
|
|
817
|
-
} }), []), mt = F((e) => {
|
|
818
|
-
e.target instanceof HTMLElement && (ft.current = e.target);
|
|
819
|
-
}, []), ht = F((e) => {
|
|
820
|
-
let t = typeof e == "function" ? e(J) : e;
|
|
821
|
-
tt(t), ie?.(t);
|
|
822
|
-
}, [J, ie]), gt = F((e) => {
|
|
823
|
-
let t = typeof e == "function" ? e(Y) : e;
|
|
824
|
-
N === void 0 && Qe(t), re?.(t);
|
|
825
|
-
}, [
|
|
826
|
-
N,
|
|
827
|
-
re,
|
|
828
|
-
Y
|
|
829
|
-
]), _t = F((e) => {
|
|
830
|
-
let t = typeof e == "function" ? e(ct) : e;
|
|
831
|
-
if (Te === void 0 && rt(t), G && typeof window < "u") try {
|
|
832
|
-
window.localStorage.setItem(G, JSON.stringify(t));
|
|
833
|
-
} catch {}
|
|
834
|
-
De?.(t);
|
|
835
|
-
}, [
|
|
836
|
-
ct,
|
|
837
|
-
Te,
|
|
838
|
-
G,
|
|
839
|
-
De
|
|
840
|
-
]), bt = F((e) => {
|
|
841
|
-
let t = typeof e == "function" ? e(X) : e;
|
|
842
|
-
M === void 0 && at(t), oe?.(t);
|
|
843
|
-
}, [
|
|
844
|
-
M,
|
|
845
|
-
oe,
|
|
846
|
-
X
|
|
847
|
-
]), Ot = R(null), kt = F((e) => {
|
|
848
|
-
C === void 0 && st(e), T?.(e);
|
|
849
|
-
}, [C, T]);
|
|
850
|
-
Ye(Z, Ot, F(() => kt(!1), [kt]));
|
|
851
|
-
let At = F((e) => typeof p == "function" ? p(e) : p ?? U.actions.menuLabel, [p, U.actions.menuLabel]), jt = !!f, Mt = L(() => {
|
|
852
|
-
let e = v && y ? wt(Je, y) : Je, t = E ? lt(e) : e;
|
|
853
|
-
if (!jt) return t;
|
|
854
|
-
let n = {
|
|
855
|
-
id: "actions",
|
|
856
|
-
header: Tt,
|
|
857
|
-
cell: Et,
|
|
858
|
-
enableSorting: !1,
|
|
859
|
-
enableHiding: !1,
|
|
860
|
-
size: 40
|
|
861
|
-
};
|
|
862
|
-
return [...t, n];
|
|
863
|
-
}, [
|
|
864
|
-
Je,
|
|
865
|
-
v,
|
|
866
|
-
y,
|
|
867
|
-
E,
|
|
868
|
-
jt
|
|
869
|
-
]), $ = We({
|
|
870
|
-
data: c,
|
|
871
|
-
columns: Mt,
|
|
872
|
-
meta: { themeliaDataTable: {
|
|
873
|
-
strings: U,
|
|
874
|
-
renderActions: f ? (e) => /* @__PURE__ */ B(et, {
|
|
875
|
-
row: e,
|
|
876
|
-
actions: f,
|
|
877
|
-
menuLabel: At(e),
|
|
878
|
-
displayMode: m,
|
|
879
|
-
responsiveBreakpoint: h,
|
|
880
|
-
strings: U
|
|
881
|
-
}) : void 0
|
|
882
|
-
} },
|
|
883
|
-
state: {
|
|
884
|
-
sorting: Y,
|
|
885
|
-
columnVisibility: ct,
|
|
886
|
-
rowSelection: X,
|
|
887
|
-
columnFilters: J
|
|
888
|
-
},
|
|
889
|
-
enableSorting: g,
|
|
890
|
-
enableColumnResizing: _,
|
|
891
|
-
columnResizeMode: "onChange",
|
|
892
|
-
defaultColumn: { size: void 0 },
|
|
893
|
-
enableColumnFilters: v,
|
|
894
|
-
manualFiltering: !v,
|
|
895
|
-
manualSorting: x,
|
|
896
|
-
autoResetPageIndex: !1,
|
|
897
|
-
enableRowSelection: E,
|
|
898
|
-
enableMultiRowSelection: D,
|
|
899
|
-
enableSubRowSelection: O,
|
|
900
|
-
onSortingChange: g ? gt : void 0,
|
|
901
|
-
onRowSelectionChange: E ? bt : void 0,
|
|
902
|
-
onColumnVisibilityChange: _t,
|
|
903
|
-
onColumnFiltersChange: ht,
|
|
904
|
-
getCoreRowModel: Ve(),
|
|
905
|
-
getFilteredRowModel: He(),
|
|
906
|
-
getSortedRowModel: Ue(),
|
|
907
|
-
getRowId: Se
|
|
908
|
-
}), Nt = v && y ? $.getAllLeafColumns().find((e) => e.id === y && e.getCanFilter()) : void 0, Pt = b ?? U.filter.searchPlaceholder, Ft = k && k.last_page > 1, It = $.getSelectedRowModel().rows.map((e) => e.original), Lt = Object.values(X).filter(Boolean).length, Rt = F(() => {
|
|
909
|
-
$.resetRowSelection();
|
|
910
|
-
}, [$]), zt = Le ?? k?.total ?? c.length, Bt = {
|
|
911
|
-
table: $,
|
|
912
|
-
selectedRows: It,
|
|
913
|
-
selectedRowCount: Lt,
|
|
914
|
-
totalRowCount: zt,
|
|
915
|
-
rowSelection: X,
|
|
916
|
-
clearSelection: Rt
|
|
917
|
-
}, Vt = (() => {
|
|
918
|
-
if (!E || H === null || H === !1) return null;
|
|
919
|
-
if (H !== void 0) return Lt === 0 ? null : typeof H == "function" ? H(Bt) : H;
|
|
920
|
-
let e = Lt === 0 ? null : typeof Pe == "function" ? Pe(Bt) : Pe, t = /* @__PURE__ */ B(le, {
|
|
921
|
-
selectedCount: Lt,
|
|
922
|
-
totalCount: zt,
|
|
923
|
-
onClear: Rt,
|
|
924
|
-
placement: Ie,
|
|
925
|
-
returnFocusRef: pt,
|
|
926
|
-
className: n("data-table-selection-toolbar--component", Fe),
|
|
927
|
-
strings: {
|
|
928
|
-
summary: (e, t) => U.selection.summary(e, t ?? zt),
|
|
929
|
-
clear: U.selection.clear,
|
|
930
|
-
label: U.selection.label
|
|
931
|
-
},
|
|
932
|
-
children: e
|
|
933
|
-
});
|
|
934
|
-
return Ie === "inline" ? /* @__PURE__ */ B("div", {
|
|
935
|
-
"data-slot": "data-table-selection-toolbar",
|
|
936
|
-
className: "data-table--selection-toolbar px-surface py-row-y empty:hidden",
|
|
937
|
-
children: t
|
|
938
|
-
}) : t;
|
|
939
|
-
})(), Ht = L(() => {
|
|
940
|
-
if (W) return { "--data-table-body-max-height": W };
|
|
941
|
-
}, [W]), Ut = Z || pe || W !== void 0, Wt = yt.Provider, Gt = St[Be];
|
|
942
|
-
return /* @__PURE__ */ B(Wt, {
|
|
943
|
-
value: Gt,
|
|
944
|
-
children: /* @__PURE__ */ V("div", {
|
|
945
|
-
ref: Ot,
|
|
946
|
-
role: Z ? "dialog" : void 0,
|
|
947
|
-
"aria-modal": Z ? !0 : void 0,
|
|
948
|
-
"aria-label": Z ? U.accessibility.fullscreenRegion : void 0,
|
|
949
|
-
className: n("data-table--component @container/data-table box-border", Z ? "fixed inset-0 z-50 bg-background text-foreground flex flex-col overflow-hidden p-surface" : n("w-full min-w-0 max-w-full", pe && "flex h-full min-h-0 flex-col", i === "card" && "overflow-hidden rounded-surface border border-border bg-card text-card-foreground shadow-xs", i === "glass" && "rounded-surface overflow-hidden border border-border/60", be)),
|
|
950
|
-
children: [
|
|
951
|
-
!!(Nt || I || Ae || S || ee) && /* @__PURE__ */ V("div", {
|
|
952
|
-
className: n("relative", ce && "sticky top-0 z-20 bg-card text-card-foreground"),
|
|
953
|
-
children: [/* @__PURE__ */ V("div", {
|
|
954
|
-
className: n("data-table-topbar grid gap-space-lg px-surface py-surface-sm @2xl/data-table:grid-cols-[minmax(0,1fr)_auto] @2xl/data-table:items-start", Z ? "mb-space-lg shrink-0" : "mb-0", je),
|
|
955
|
-
children: [/* @__PURE__ */ V("div", {
|
|
956
|
-
className: "data-table-topbar-left flex min-w-0 flex-col gap-space-md",
|
|
957
|
-
children: [I, Nt && /* @__PURE__ */ B("div", {
|
|
958
|
-
className: "min-w-0 max-w-sm",
|
|
959
|
-
children: /* @__PURE__ */ B(de, {
|
|
960
|
-
"aria-label": Pt,
|
|
961
|
-
placeholder: Pt,
|
|
962
|
-
value: Nt.getFilterValue() ?? "",
|
|
963
|
-
onChange: (e) => Nt.setFilterValue(e.target.value)
|
|
964
|
-
})
|
|
965
|
-
})]
|
|
966
|
-
}), /* @__PURE__ */ V("div", {
|
|
967
|
-
className: "data-table-topbar-right flex flex-wrap items-center justify-end gap-space-md",
|
|
968
|
-
children: [Ae, /* @__PURE__ */ B(vt, {
|
|
969
|
-
table: $,
|
|
970
|
-
tableAreaRef: Q,
|
|
971
|
-
fullscreen: Z,
|
|
972
|
-
onFullscreenChange: kt,
|
|
973
|
-
showFullscreenToggle: ee,
|
|
974
|
-
enableColumnVisibility: S,
|
|
975
|
-
labelVisibility: Me,
|
|
976
|
-
strings: U
|
|
977
|
-
})]
|
|
978
|
-
})]
|
|
979
|
-
}), /* @__PURE__ */ B(ue, {})]
|
|
980
|
-
}),
|
|
981
|
-
Vt,
|
|
982
|
-
/* @__PURE__ */ V("div", {
|
|
983
|
-
ref: Q,
|
|
984
|
-
style: Ht,
|
|
985
|
-
onFocus: E ? mt : void 0,
|
|
986
|
-
className: n("min-h-0", Ut ? "overflow-hidden" : xe, (Z || pe) && "flex-1"),
|
|
987
|
-
children: [!!l && /* @__PURE__ */ B("span", {
|
|
988
|
-
role: "status",
|
|
989
|
-
className: "sr-only",
|
|
990
|
-
children: U.loading?.label ?? K.loading.label
|
|
991
|
-
}), /* @__PURE__ */ V(we, {
|
|
992
|
-
"aria-busy": l || void 0,
|
|
993
|
-
density: xt[Be],
|
|
994
|
-
containerProps: {
|
|
995
|
-
role: "region",
|
|
996
|
-
"aria-label": U.accessibility.scrollRegion
|
|
997
|
-
},
|
|
998
|
-
style: _ ? { width: $.getTotalSize() } : void 0,
|
|
999
|
-
className: n("relative", _ && "min-w-full table-fixed", ge),
|
|
1000
|
-
containerClassName: n(`focus-visible:outline-none ${s.edge}`, Ut && "overflow-auto", W !== void 0 && "max-h-(--data-table-body-max-height)", (Z || pe) && "h-full min-h-0", j),
|
|
1001
|
-
children: [/* @__PURE__ */ B(dt, {
|
|
1002
|
-
enableResizing: _,
|
|
1003
|
-
table: $,
|
|
1004
|
-
stickyHeader: se,
|
|
1005
|
-
headerClassName: ye,
|
|
1006
|
-
cellClassName: ve,
|
|
1007
|
-
stickyFirstColumn: fe,
|
|
1008
|
-
columnGroups: d,
|
|
1009
|
-
headerTransparent: a,
|
|
1010
|
-
strings: U
|
|
1011
|
-
}), /* @__PURE__ */ B(ut, {
|
|
1012
|
-
loading: l,
|
|
1013
|
-
loadingRows: u,
|
|
1014
|
-
table: $,
|
|
1015
|
-
onRowClick: ae,
|
|
1016
|
-
emptyStateMessage: Ke,
|
|
1017
|
-
emptyStateAction: he,
|
|
1018
|
-
cellClassName: ve,
|
|
1019
|
-
rowClassName: Ge,
|
|
1020
|
-
stickyFirstColumn: fe,
|
|
1021
|
-
strings: U
|
|
1022
|
-
})]
|
|
1023
|
-
})]
|
|
1024
|
-
}),
|
|
1025
|
-
!!Ft && /* @__PURE__ */ V(ke, { children: [/* @__PURE__ */ B(ue, {}), /* @__PURE__ */ B($e, {
|
|
1026
|
-
pagination: k,
|
|
1027
|
-
onPageChange: ne,
|
|
1028
|
-
pageQueryKey: qe,
|
|
1029
|
-
labels: U.pagination
|
|
1030
|
-
})] }),
|
|
1031
|
-
!!Ne && /* @__PURE__ */ B("div", {
|
|
1032
|
-
"data-slot": "data-table-footer",
|
|
1033
|
-
className: "data-table--footer border-t border-border/60 px-surface py-row-y",
|
|
1034
|
-
children: Ne
|
|
1035
|
-
})
|
|
1036
|
-
]
|
|
1037
|
-
})
|
|
1038
|
-
});
|
|
1039
|
-
}
|
|
1040
|
-
Ot.displayName = "DataTable";
|
|
1041
|
-
//#endregion
|
|
1042
|
-
//#region src/components/features/table/filter-bar.tsx
|
|
1043
|
-
function kt({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibility: i = !1, customContent: a, strings: o = K }) {
|
|
1044
|
-
if (!t && !i && !a) return null;
|
|
1045
|
-
let s = r ?? o.filter.searchPlaceholder;
|
|
1046
|
-
return /* @__PURE__ */ V("div", {
|
|
1047
|
-
className: n("filter-bar--component", "flex items-center justify-between p-surface"),
|
|
1048
|
-
children: [/* @__PURE__ */ V("div", {
|
|
1049
|
-
className: "flex flex-1 items-center space-x-space-md",
|
|
1050
|
-
children: [!!t && /* @__PURE__ */ B(de, {
|
|
1051
|
-
placeholder: s,
|
|
1052
|
-
value: e.getColumn(t)?.getFilterValue() ?? "",
|
|
1053
|
-
onChange: (n) => {
|
|
1054
|
-
let r = n.target.value;
|
|
1055
|
-
e.getColumn(t)?.setFilterValue(r);
|
|
1056
|
-
},
|
|
1057
|
-
className: "max-w-sm"
|
|
1058
|
-
}), a]
|
|
1059
|
-
}), !!i && /* @__PURE__ */ B(Q, {
|
|
1060
|
-
table: e,
|
|
1061
|
-
strings: o,
|
|
1062
|
-
labelVisibility: "responsive",
|
|
1063
|
-
className: "ml-auto"
|
|
1064
|
-
})]
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
kt.displayName = "DataTableFilterBar";
|
|
1068
|
-
//#endregion
|
|
1069
|
-
//#region src/components/features/table/partials/cell-value.tsx
|
|
1070
|
-
function At(e) {
|
|
1071
|
-
return e === !1 || e == null || typeof e == "string" && e.trim() === "";
|
|
1072
|
-
}
|
|
1073
|
-
function jt(e) {
|
|
1074
|
-
return e == null;
|
|
1075
|
-
}
|
|
1076
|
-
function Mt(e) {
|
|
1077
|
-
return typeof e == "object" && !!e && !Array.isArray(e) && !De(e) && !(e instanceof Date);
|
|
1078
|
-
}
|
|
1079
|
-
function $(e) {
|
|
1080
|
-
return Array.isArray(e);
|
|
1081
|
-
}
|
|
1082
|
-
function Nt(e) {
|
|
1083
|
-
let [t, n, r] = e;
|
|
1084
|
-
return {
|
|
1085
|
-
...r,
|
|
1086
|
-
value: t,
|
|
1087
|
-
kind: n
|
|
1088
|
-
};
|
|
1089
|
-
}
|
|
1090
|
-
function Pt(e) {
|
|
1091
|
-
if (e === !1) return null;
|
|
1092
|
-
if (De(e)) return e;
|
|
1093
|
-
if ($(e)) {
|
|
1094
|
-
let t = Nt(e);
|
|
1095
|
-
return At(t.value) && jt(t.display) ? null : t;
|
|
1096
|
-
}
|
|
1097
|
-
return Mt(e) ? At(e.value) && jt(e.display) ? null : e : At(e) ? null : { value: e };
|
|
1098
|
-
}
|
|
1099
|
-
function Ft(e) {
|
|
1100
|
-
return e instanceof Date ? e.toISOString() : String(e ?? "");
|
|
1101
|
-
}
|
|
1102
|
-
function It({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryWeight: a = "medium" }) {
|
|
1103
|
-
let o = t === 0, s = e.kind ?? (o ? "value" : "secondary"), c = e.value, l = e.display ?? (c instanceof Date ? Ft(c) : c), u = e.emptyLabel ?? r, d = n(i, e.className), f = o ? a : "regular";
|
|
1104
|
-
switch (s) {
|
|
1105
|
-
case "secondary": return /* @__PURE__ */ B(_, {
|
|
1106
|
-
size: "inherit",
|
|
1107
|
-
className: d,
|
|
1108
|
-
children: l
|
|
1109
|
-
});
|
|
1110
|
-
case "muted": return /* @__PURE__ */ B(v, {
|
|
1111
|
-
size: "inherit",
|
|
1112
|
-
className: d,
|
|
1113
|
-
children: l
|
|
1114
|
-
});
|
|
1115
|
-
case "name": return /* @__PURE__ */ B(g, {
|
|
1116
|
-
type: "inherit",
|
|
1117
|
-
value: e.display === void 0 && typeof c == "string" ? c : void 0,
|
|
1118
|
-
force: e.force,
|
|
1119
|
-
emptyLabel: u,
|
|
1120
|
-
size: "inherit",
|
|
1121
|
-
weight: f,
|
|
1122
|
-
className: d,
|
|
1123
|
-
children: e.display
|
|
1124
|
-
});
|
|
1125
|
-
case "mono": return /* @__PURE__ */ B(x, {
|
|
1126
|
-
type: "inherit",
|
|
1127
|
-
size: "inherit",
|
|
1128
|
-
weight: f,
|
|
1129
|
-
className: d,
|
|
1130
|
-
children: l
|
|
1131
|
-
});
|
|
1132
|
-
case "link": {
|
|
1133
|
-
let t = e.href ?? Ft(c);
|
|
1134
|
-
return /* @__PURE__ */ B(w, {
|
|
1135
|
-
href: t,
|
|
1136
|
-
emptyLabel: u,
|
|
1137
|
-
className: d,
|
|
1138
|
-
children: l
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
case "email": return /* @__PURE__ */ B(S, {
|
|
1142
|
-
value: typeof c == "string" ? c : void 0,
|
|
1143
|
-
display: e.display,
|
|
1144
|
-
emptyLabel: u,
|
|
1145
|
-
className: d
|
|
1146
|
-
});
|
|
1147
|
-
case "phone": return /* @__PURE__ */ B(h, {
|
|
1148
|
-
value: typeof c == "string" ? c : void 0,
|
|
1149
|
-
display: e.display,
|
|
1150
|
-
emptyLabel: u,
|
|
1151
|
-
className: d
|
|
1152
|
-
});
|
|
1153
|
-
case "url": return /* @__PURE__ */ B(b, {
|
|
1154
|
-
value: typeof c == "string" ? c : void 0,
|
|
1155
|
-
display: e.display,
|
|
1156
|
-
emptyLabel: u,
|
|
1157
|
-
className: d
|
|
1158
|
-
});
|
|
1159
|
-
case "money": return /* @__PURE__ */ B(D, {
|
|
1160
|
-
type: "inherit",
|
|
1161
|
-
amount: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1162
|
-
currency: e.currency,
|
|
1163
|
-
locale: e.locale,
|
|
1164
|
-
currencyDisplay: e.currencyDisplay,
|
|
1165
|
-
minimumFractionDigits: e.minimumFractionDigits,
|
|
1166
|
-
maximumFractionDigits: e.maximumFractionDigits,
|
|
1167
|
-
formatMode: e.formatMode,
|
|
1168
|
-
emptyLabel: u,
|
|
1169
|
-
size: "inherit",
|
|
1170
|
-
weight: f,
|
|
1171
|
-
className: d
|
|
1172
|
-
});
|
|
1173
|
-
case "number": return /* @__PURE__ */ B(O, {
|
|
1174
|
-
type: "inherit",
|
|
1175
|
-
value: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1176
|
-
locale: e.locale,
|
|
1177
|
-
options: e.options,
|
|
1178
|
-
emptyLabel: u,
|
|
1179
|
-
size: "inherit",
|
|
1180
|
-
weight: f,
|
|
1181
|
-
className: d
|
|
1182
|
-
});
|
|
1183
|
-
case "percent": return /* @__PURE__ */ B(E, {
|
|
1184
|
-
type: "inherit",
|
|
1185
|
-
value: typeof c == "number" || typeof c == "string" ? c : null,
|
|
1186
|
-
locale: e.locale,
|
|
1187
|
-
scaled: e.scaled,
|
|
1188
|
-
options: e.options,
|
|
1189
|
-
emptyLabel: u,
|
|
1190
|
-
size: "inherit",
|
|
1191
|
-
weight: f,
|
|
1192
|
-
className: d
|
|
1193
|
-
});
|
|
1194
|
-
case "fileSize": return /* @__PURE__ */ B(y, {
|
|
1195
|
-
type: "inherit",
|
|
1196
|
-
value: typeof c == "number" ? c : null,
|
|
1197
|
-
from: e.from,
|
|
1198
|
-
locale: e.locale,
|
|
1199
|
-
emptyLabel: u,
|
|
1200
|
-
size: "inherit",
|
|
1201
|
-
weight: f,
|
|
1202
|
-
className: d
|
|
1203
|
-
});
|
|
1204
|
-
case "date": return /* @__PURE__ */ B(ie, {
|
|
1205
|
-
type: "inherit",
|
|
1206
|
-
value: c,
|
|
1207
|
-
format: e.dateFormat,
|
|
1208
|
-
preset: e.datePreset,
|
|
1209
|
-
locale: e.dateLocale,
|
|
1210
|
-
emptyLabel: u,
|
|
1211
|
-
size: "inherit",
|
|
1212
|
-
weight: f,
|
|
1213
|
-
className: d
|
|
1214
|
-
});
|
|
1215
|
-
case "time": return /* @__PURE__ */ B(k, {
|
|
1216
|
-
type: "inherit",
|
|
1217
|
-
value: c,
|
|
1218
|
-
format: e.timeFormat,
|
|
1219
|
-
locale: e.dateLocale,
|
|
1220
|
-
emptyLabel: u,
|
|
1221
|
-
size: "inherit",
|
|
1222
|
-
weight: f,
|
|
1223
|
-
className: d
|
|
1224
|
-
});
|
|
1225
|
-
case "dateTime": return /* @__PURE__ */ B(ne, {
|
|
1226
|
-
type: "inherit",
|
|
1227
|
-
value: c,
|
|
1228
|
-
format: e.dateFormat,
|
|
1229
|
-
timeFormat: e.timeFormat,
|
|
1230
|
-
preset: e.datePreset,
|
|
1231
|
-
locale: e.dateLocale,
|
|
1232
|
-
emptyLabel: u,
|
|
1233
|
-
size: "inherit",
|
|
1234
|
-
weight: f,
|
|
1235
|
-
className: d
|
|
1236
|
-
});
|
|
1237
|
-
case "relativeTime": return /* @__PURE__ */ B(te, {
|
|
1238
|
-
value: c,
|
|
1239
|
-
locale: e.dateLocale,
|
|
1240
|
-
emptyLabel: u,
|
|
1241
|
-
size: "inherit",
|
|
1242
|
-
weight: f,
|
|
1243
|
-
className: d
|
|
1244
|
-
});
|
|
1245
|
-
default: return /* @__PURE__ */ B(m, {
|
|
1246
|
-
type: "inherit",
|
|
1247
|
-
size: "inherit",
|
|
1248
|
-
weight: f,
|
|
1249
|
-
className: d,
|
|
1250
|
-
children: l
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
function Lt({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimumFractionDigits: o, maximumFractionDigits: s, formatMode: c, locale: l, dateLocale: u, from: d, force: f, options: p, scaled: h, dateFormat: g, datePreset: _, timeFormat: v, emptyLabel: y, fallback: b = "--", missing: x, className: S, children: w }) {
|
|
1255
|
-
let T = x ?? At(e);
|
|
1256
|
-
return w === void 0 ? T ? /* @__PURE__ */ B(C, {
|
|
1257
|
-
size: "inherit",
|
|
1258
|
-
className: n("cell-value--component", S),
|
|
1259
|
-
children: y ?? b
|
|
1260
|
-
}) : It({
|
|
1261
|
-
descriptor: {
|
|
1262
|
-
value: e,
|
|
1263
|
-
kind: t,
|
|
1264
|
-
href: r,
|
|
1265
|
-
currency: i,
|
|
1266
|
-
currencyDisplay: a,
|
|
1267
|
-
minimumFractionDigits: o,
|
|
1268
|
-
maximumFractionDigits: s,
|
|
1269
|
-
formatMode: c,
|
|
1270
|
-
locale: l,
|
|
1271
|
-
dateLocale: u,
|
|
1272
|
-
from: d,
|
|
1273
|
-
force: f,
|
|
1274
|
-
options: p,
|
|
1275
|
-
scaled: h,
|
|
1276
|
-
dateFormat: g,
|
|
1277
|
-
datePreset: _,
|
|
1278
|
-
timeFormat: v,
|
|
1279
|
-
emptyLabel: y,
|
|
1280
|
-
className: "cell-value--component"
|
|
1281
|
-
},
|
|
1282
|
-
emptyLabel: y ?? b,
|
|
1283
|
-
className: S
|
|
1284
|
-
}) : /* @__PURE__ */ B(T ? C : m, {
|
|
1285
|
-
type: T ? "secondary" : "inherit",
|
|
1286
|
-
size: "inherit",
|
|
1287
|
-
className: n("cell-value--component", S),
|
|
1288
|
-
children: w
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
function Rt({ values: e = [], emptyLabel: t = "--", className: r, itemClassName: i, primaryClassName: a, secondaryClassName: o, primaryWeight: s = "medium" }) {
|
|
1292
|
-
let c = e.map(Pt).filter((e) => e !== null).slice(0, 4);
|
|
1293
|
-
return c.length === 0 ? /* @__PURE__ */ B(C, {
|
|
1294
|
-
size: "inherit",
|
|
1295
|
-
className: n("cell-stack--component", r),
|
|
1296
|
-
children: t
|
|
1297
|
-
}) : /* @__PURE__ */ B("div", {
|
|
1298
|
-
className: n("cell-stack--component flex min-w-0 flex-col items-start gap-space-2xs", r),
|
|
1299
|
-
children: c.map((e, r) => {
|
|
1300
|
-
let c = r === 0, l = n("cell-stack--item min-w-0 max-w-full truncate", !c && "text-xs", i, c ? a : o);
|
|
1301
|
-
return De(e) ? /* @__PURE__ */ B("div", {
|
|
1302
|
-
className: l,
|
|
1303
|
-
children: e
|
|
1304
|
-
}, r) : /* @__PURE__ */ B("div", {
|
|
1305
|
-
className: l,
|
|
1306
|
-
children: It({
|
|
1307
|
-
descriptor: e,
|
|
1308
|
-
index: r,
|
|
1309
|
-
emptyLabel: t,
|
|
1310
|
-
className: n("leading-tight", !c && "text-xs"),
|
|
1311
|
-
primaryWeight: s
|
|
1312
|
-
})
|
|
1313
|
-
}, r);
|
|
1314
|
-
})
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
Lt.displayName = "CellValue", Rt.displayName = "CellStack";
|
|
1318
|
-
//#endregion
|
|
1319
|
-
//#region src/components/features/table/partials/table-link.tsx
|
|
1320
|
-
var zt = ({ className: e, ...t }) => /* @__PURE__ */ B(w, {
|
|
1321
|
-
className: n("table-link--component", "underline decoration-link-color/35 decoration-dotted underline-offset-2 hover:decoration-link-color", e),
|
|
1322
|
-
...t,
|
|
1323
|
-
children: t.children
|
|
1324
|
-
});
|
|
1325
|
-
//#endregion
|
|
1326
|
-
//#region src/components/features/table/partials/resource-cell.tsx
|
|
1327
|
-
function Bt(e, t) {
|
|
1328
|
-
if (e && typeof e == "object" && !("type" in e) && "label" in e) {
|
|
1329
|
-
let n = e.icon;
|
|
1330
|
-
return /* @__PURE__ */ V(ce, {
|
|
1331
|
-
tone: e.tone ?? "secondary",
|
|
1332
|
-
dot: e.dot,
|
|
1333
|
-
children: [!!n && /* @__PURE__ */ B(n, { className: "size-icon-sm" }), e.label]
|
|
1334
|
-
}, e.id ?? t);
|
|
1335
|
-
}
|
|
1336
|
-
return /* @__PURE__ */ B("span", { children: e }, t);
|
|
1337
|
-
}
|
|
1338
|
-
function Vt(e) {
|
|
1339
|
-
return e ? Array.isArray(e) ? /* @__PURE__ */ B("span", {
|
|
1340
|
-
className: "inline-flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-2xs",
|
|
1341
|
-
children: e.map((e, t) => /* @__PURE__ */ V("span", {
|
|
1342
|
-
className: "inline-flex min-w-0 items-center gap-space-sm",
|
|
1343
|
-
children: [!!e.label && /* @__PURE__ */ B(i, {
|
|
1344
|
-
tag: "span",
|
|
1345
|
-
size: "inherit",
|
|
1346
|
-
type: "secondary",
|
|
1347
|
-
className: "shrink-0",
|
|
1348
|
-
children: e.label
|
|
1349
|
-
}), /* @__PURE__ */ B(i, {
|
|
1350
|
-
tag: "span",
|
|
1351
|
-
size: "inherit",
|
|
1352
|
-
type: "secondary",
|
|
1353
|
-
className: "truncate",
|
|
1354
|
-
children: e.value
|
|
1355
|
-
})]
|
|
1356
|
-
}, e.id ?? t))
|
|
1357
|
-
}) : e : null;
|
|
1358
|
-
}
|
|
1359
|
-
function Ht({ title: e, subtitle: t, metadata: r, badges: a = [], imageUrl: l, icon: u, fallback: d, href: f, renderLink: p, emptyLabel: m = "—", className: h, mediaShape: g = "circle", mediaClassName: _, contentClassName: v, titleClassName: y, subtitleClassName: b }) {
|
|
1360
|
-
if (!e) return /* @__PURE__ */ B(i, {
|
|
1361
|
-
size: "inherit",
|
|
1362
|
-
type: "secondary",
|
|
1363
|
-
className: h,
|
|
1364
|
-
children: m
|
|
1365
|
-
});
|
|
1366
|
-
let x = typeof e == "string" ? e : void 0, S = x ? ee(x, { strategy: "first-words" }) : "", C = /* @__PURE__ */ V(c, {
|
|
1367
|
-
render: /* @__PURE__ */ B("span", {}),
|
|
1368
|
-
gap: "dense",
|
|
1369
|
-
className: n("resource-cell--content", v),
|
|
1370
|
-
children: [
|
|
1371
|
-
/* @__PURE__ */ V(c, {
|
|
1372
|
-
render: /* @__PURE__ */ B("span", {}),
|
|
1373
|
-
direction: "horizontal",
|
|
1374
|
-
gap: "sm",
|
|
1375
|
-
wrap: !1,
|
|
1376
|
-
className: "resource-cell--title-row",
|
|
1377
|
-
children: [/* @__PURE__ */ B(i, {
|
|
1378
|
-
type: "inherit",
|
|
1379
|
-
tag: "span",
|
|
1380
|
-
size: "inherit",
|
|
1381
|
-
weight: "medium",
|
|
1382
|
-
title: x,
|
|
1383
|
-
className: n("resource-cell--title truncate", y),
|
|
1384
|
-
children: e
|
|
1385
|
-
}), a.length > 0 && /* @__PURE__ */ B("span", {
|
|
1386
|
-
className: "resource-cell--badges inline-flex shrink-0 items-center gap-space-sm",
|
|
1387
|
-
children: a.map(Bt)
|
|
1388
|
-
})]
|
|
1389
|
-
}),
|
|
1390
|
-
!!t && /* @__PURE__ */ B(i, {
|
|
1391
|
-
tag: "span",
|
|
1392
|
-
size: "inherit",
|
|
1393
|
-
type: "secondary",
|
|
1394
|
-
className: n("resource-cell--subtitle truncate", b),
|
|
1395
|
-
children: t
|
|
1396
|
-
}),
|
|
1397
|
-
!!r && /* @__PURE__ */ B("span", {
|
|
1398
|
-
className: "resource-cell--metadata min-w-0",
|
|
1399
|
-
children: Vt(r)
|
|
1400
|
-
})
|
|
1401
|
-
]
|
|
1402
|
-
}), w = d != null && d !== !1 && d !== "", E = !!l || !!u || w, D = g === "square", O = /* @__PURE__ */ V("span", {
|
|
1403
|
-
className: n("resource-cell--component inline-flex min-w-0 items-center gap-space-md", h),
|
|
1404
|
-
children: [E && /* @__PURE__ */ V(oe, {
|
|
1405
|
-
size: "md",
|
|
1406
|
-
"data-shape": g,
|
|
1407
|
-
className: n("resource-cell--media", D && "rounded-radius after:rounded-radius", _),
|
|
1408
|
-
children: [!!l && /* @__PURE__ */ B(se, {
|
|
1409
|
-
src: l,
|
|
1410
|
-
alt: x ?? "",
|
|
1411
|
-
className: n(D && "rounded-radius")
|
|
1412
|
-
}), /* @__PURE__ */ B(ae, {
|
|
1413
|
-
className: n(D && "rounded-radius"),
|
|
1414
|
-
children: w ? d : u ? /* @__PURE__ */ B(u, { className: "size-icon" }) : S ? /* @__PURE__ */ B(T, {
|
|
1415
|
-
value: x,
|
|
1416
|
-
strategy: "first-words"
|
|
1417
|
-
}) : null
|
|
1418
|
-
})]
|
|
1419
|
-
}), C]
|
|
1420
|
-
});
|
|
1421
|
-
if (!f) return O;
|
|
1422
|
-
let k = `resource-cell--link inline-flex min-w-0 rounded-radius outline-none ${s.text}`;
|
|
1423
|
-
return p ? p({
|
|
1424
|
-
href: f,
|
|
1425
|
-
children: O,
|
|
1426
|
-
className: k,
|
|
1427
|
-
"aria-label": x
|
|
1428
|
-
}) : /* @__PURE__ */ B(o, {
|
|
1429
|
-
href: f,
|
|
1430
|
-
size: "inherit",
|
|
1431
|
-
underline: !1,
|
|
1432
|
-
className: k,
|
|
1433
|
-
"aria-label": x,
|
|
1434
|
-
children: O
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
Ht.displayName = "ResourceCell";
|
|
1438
|
-
//#endregion
|
|
1439
|
-
//#region src/components/features/table/partials/cell-renderers.tsx
|
|
1440
|
-
function Ut({ value: e, map: t, emptyLabel: r = "—", className: a }) {
|
|
1441
|
-
if (!e || !(e in t)) return /* @__PURE__ */ B(i, {
|
|
1442
|
-
size: "inherit",
|
|
1443
|
-
type: "secondary",
|
|
1444
|
-
className: n("status-cell--component", a),
|
|
1445
|
-
children: r
|
|
1446
|
-
});
|
|
1447
|
-
let o = t[e], s = o.icon;
|
|
1448
|
-
return /* @__PURE__ */ V(ce, {
|
|
1449
|
-
tone: o.tone ?? "secondary",
|
|
1450
|
-
dot: o.dot,
|
|
1451
|
-
className: n("status-cell--component gap-space-sm", a),
|
|
1452
|
-
children: [!!s && /* @__PURE__ */ B(s, { className: "size-icon-sm" }), o.label]
|
|
1453
|
-
});
|
|
1454
|
-
}
|
|
1455
|
-
Ut.displayName = "StatusCell";
|
|
1456
|
-
function Wt({ items: e = [], emptyLabel: t = "—", className: r, badgeClassName: a }) {
|
|
1457
|
-
let o = e.filter((e) => !e.hidden);
|
|
1458
|
-
return o.length === 0 ? /* @__PURE__ */ B(i, {
|
|
1459
|
-
size: "inherit",
|
|
1460
|
-
type: "secondary",
|
|
1461
|
-
className: n("status-cluster-cell--component", r),
|
|
1462
|
-
children: t
|
|
1463
|
-
}) : /* @__PURE__ */ B("span", {
|
|
1464
|
-
className: n("status-cluster-cell--component inline-flex min-w-0 flex-wrap items-center gap-space-sm", r),
|
|
1465
|
-
children: o.map((e, t) => {
|
|
1466
|
-
let r = e.icon;
|
|
1467
|
-
return /* @__PURE__ */ V(ce, {
|
|
1468
|
-
tone: e.tone ?? "secondary",
|
|
1469
|
-
dot: e.dot,
|
|
1470
|
-
className: n("shrink-0", a),
|
|
1471
|
-
children: [!!r && /* @__PURE__ */ B(r, { className: "size-icon-sm" }), e.label]
|
|
1472
|
-
}, e.id ?? t);
|
|
1473
|
-
})
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
Wt.displayName = "StatusClusterCell";
|
|
1477
|
-
function Gt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon: s = Me, emptyLabel: c = "—", className: l }) {
|
|
1478
|
-
let u = re(e);
|
|
1479
|
-
return u ? /* @__PURE__ */ V("span", {
|
|
1480
|
-
className: n("date-cell--component inline-flex items-center gap-space-sm", l),
|
|
1481
|
-
children: [!!o && /* @__PURE__ */ B(s, { className: "size-icon text-muted-foreground" }), /* @__PURE__ */ B(ie, {
|
|
1482
|
-
value: u,
|
|
1483
|
-
format: t,
|
|
1484
|
-
preset: r,
|
|
1485
|
-
locale: a,
|
|
1486
|
-
emptyLabel: c,
|
|
1487
|
-
size: "inherit",
|
|
1488
|
-
type: "secondary"
|
|
1489
|
-
})]
|
|
1490
|
-
}) : /* @__PURE__ */ B(i, {
|
|
1491
|
-
size: "inherit",
|
|
1492
|
-
type: "secondary",
|
|
1493
|
-
className: n("date-cell--component", l),
|
|
1494
|
-
children: c
|
|
1495
|
-
});
|
|
1496
|
-
}
|
|
1497
|
-
Gt.displayName = "DateCell";
|
|
1498
|
-
function Kt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon: s = Me, emptyLabel: c = "—", className: l, primaryClassName: u, secondary: d, secondaryClassName: f }) {
|
|
1499
|
-
let p = re(e);
|
|
1500
|
-
if (!p) return /* @__PURE__ */ B(i, {
|
|
1501
|
-
size: "inherit",
|
|
1502
|
-
type: "secondary",
|
|
1503
|
-
className: n("date-meta-cell--component", l),
|
|
1504
|
-
children: c
|
|
1505
|
-
});
|
|
1506
|
-
let m = typeof d == "function" ? d(p) : d;
|
|
1507
|
-
return /* @__PURE__ */ V("span", {
|
|
1508
|
-
className: n("date-meta-cell--component inline-flex min-w-0 items-start gap-space-sm", l),
|
|
1509
|
-
children: [!!o && /* @__PURE__ */ B(s, { className: "mt-space-2xs size-icon shrink-0 text-muted-foreground" }), /* @__PURE__ */ V("span", {
|
|
1510
|
-
className: "grid min-w-0 gap-space-2xs",
|
|
1511
|
-
children: [/* @__PURE__ */ B(ie, {
|
|
1512
|
-
value: p,
|
|
1513
|
-
format: t,
|
|
1514
|
-
preset: r,
|
|
1515
|
-
locale: a,
|
|
1516
|
-
emptyLabel: c,
|
|
1517
|
-
size: "inherit",
|
|
1518
|
-
type: "secondary",
|
|
1519
|
-
className: n("truncate tabular-nums", u)
|
|
1520
|
-
}), !!m && /* @__PURE__ */ B(i, {
|
|
1521
|
-
tag: "span",
|
|
1522
|
-
size: "inherit",
|
|
1523
|
-
type: "secondary",
|
|
1524
|
-
className: n("truncate", f),
|
|
1525
|
-
children: m
|
|
1526
|
-
})]
|
|
1527
|
-
})]
|
|
1528
|
-
});
|
|
1529
|
-
}
|
|
1530
|
-
Kt.displayName = "DateMetaCell";
|
|
1531
|
-
function qt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className: a, weight: o = "semibold" }) {
|
|
1532
|
-
return /* @__PURE__ */ B(D, {
|
|
1533
|
-
type: "inherit",
|
|
1534
|
-
amount: e,
|
|
1535
|
-
currency: t,
|
|
1536
|
-
locale: r,
|
|
1537
|
-
formatMode: t ? "with_symbol" : "decimal",
|
|
1538
|
-
emptyLabel: i,
|
|
1539
|
-
size: "inherit",
|
|
1540
|
-
weight: o,
|
|
1541
|
-
className: n("currency-cell--component tabular-nums", a)
|
|
1542
|
-
});
|
|
1543
|
-
}
|
|
1544
|
-
qt.displayName = "CurrencyCell";
|
|
1545
|
-
function Jt({ name: e, imageUrl: t, icon: r = Fe, subtitle: a, emptyLabel: o = "—", className: s }) {
|
|
1546
|
-
return !e || e.trim().length === 0 ? /* @__PURE__ */ B(i, {
|
|
1547
|
-
size: "inherit",
|
|
1548
|
-
type: "secondary",
|
|
1549
|
-
className: n("avatar-cell--component", s),
|
|
1550
|
-
children: o
|
|
1551
|
-
}) : /* @__PURE__ */ V("span", {
|
|
1552
|
-
className: n("avatar-cell--component inline-flex items-center gap-space-md", s),
|
|
1553
|
-
children: [/* @__PURE__ */ V(oe, {
|
|
1554
|
-
size: "sm",
|
|
1555
|
-
className: "avatar-cell--avatar",
|
|
1556
|
-
children: [!!t && /* @__PURE__ */ B(se, {
|
|
1557
|
-
src: t,
|
|
1558
|
-
alt: e
|
|
1559
|
-
}), /* @__PURE__ */ B(ae, { children: ee(e, { strategy: "first-words" }) ? /* @__PURE__ */ B(T, {
|
|
1560
|
-
value: e,
|
|
1561
|
-
strategy: "first-words"
|
|
1562
|
-
}) : /* @__PURE__ */ B(r, { className: "size-icon" }) })]
|
|
1563
|
-
}), /* @__PURE__ */ V("span", {
|
|
1564
|
-
className: "min-w-0 inline-flex flex-col",
|
|
1565
|
-
children: [/* @__PURE__ */ B(i, {
|
|
1566
|
-
type: "inherit",
|
|
1567
|
-
size: "inherit",
|
|
1568
|
-
weight: "medium",
|
|
1569
|
-
className: "truncate",
|
|
1570
|
-
children: e
|
|
1571
|
-
}), !!a && /* @__PURE__ */ B(i, {
|
|
1572
|
-
size: "inherit",
|
|
1573
|
-
type: "secondary",
|
|
1574
|
-
className: "truncate",
|
|
1575
|
-
children: a
|
|
1576
|
-
})]
|
|
1577
|
-
})]
|
|
1578
|
-
});
|
|
1579
|
-
}
|
|
1580
|
-
Jt.displayName = "AvatarCell";
|
|
1581
|
-
//#endregion
|
|
1582
|
-
export { K as A, it as C, nt as D, tt as E, Ge as M, Ke as N, et as O, at as S, rt as T, dt as _, Ut as a, Y as b, zt as c, kt as d, Ot as f, Q as g, pt as h, Kt as i, Xe as j, $e as k, Rt as l, vt as m, qt as n, Wt as o, bt as p, Gt as r, Ht as s, Jt as t, Lt as u, ut as v, ot as w, st as x, lt as y };
|
|
1583
|
-
|
|
1584
|
-
//# sourceMappingURL=table-CBonSdTp.js.map
|