themelia-react-ui 2.0.0 → 2.0.1
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 +351 -0
- package/README.md +26 -13
- package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.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 +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +13 -13
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +103 -115
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- 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 +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +17 -17
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- 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 +1 -1
- package/dist/base/repeaters.js +171 -170
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +2 -2
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +173 -171
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +266 -263
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +440 -438
- 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 +1945 -1266
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- 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 +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
- package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +4 -4
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +15 -12
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- 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/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +4 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
- package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
- package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
- package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
- package/dist/features/activities.js +414 -501
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +170 -169
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +73 -71
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +278 -275
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +918 -825
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1115 -1122
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +202 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +25 -25
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +33 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +397 -396
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
- package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
- package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.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 +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +1 -0
- package/dist/lib/field-affordance-recipes.d.ts +6 -1
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +9 -0
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
- package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/page-B5dTH9gE.js +224 -0
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
- package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
- package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.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/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
- package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
- package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/table-CrcLN9Io.js +1458 -0
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/theme.css +3 -3
- package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
- package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +19 -20
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +51 -8
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/public-api.json +847 -447
- package/docs/consumer-skill/references/review.md +25 -5
- package/docs/consumer-skill/references/theming.md +8 -4
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +29 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +10 -2
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,117 +1,118 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
-
import { t } from "../utils-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { r as i, t as a } from "../structure-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as d } from "../
|
|
11
|
-
import { f } from "../
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
3
|
+
import { t } from "../utils-l5LpDw2z.js";
|
|
4
|
+
import { n } from "../buttons-SbIcm1HJ.js";
|
|
5
|
+
import { s as r } from "../typography-DTRkE9zL.js";
|
|
6
|
+
import { r as i, t as a } from "../structure-DC2dygdA.js";
|
|
7
|
+
import { t as o } from "../interaction-recipes-CHr0dJUs.js";
|
|
8
|
+
import { g as s } from "../primitives-B-CkiEMU.js";
|
|
9
|
+
import { t as c } from "../number-DMhe-Vsk.js";
|
|
10
|
+
import { i as l, r as u, t as d } from "../tabs-DwBJfjxX.js";
|
|
11
|
+
import { t as f } from "../popover-menu-B71Tn2Qz.js";
|
|
12
|
+
import { f as p } from "../table-CrcLN9Io.js";
|
|
13
|
+
import { N as m, O as h, P as g, T as _, l as v, w as y } from "../filters-BkHH53uv.js";
|
|
14
|
+
import { useEffect as b, useMemo as x, useRef as S } from "react";
|
|
15
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
16
|
+
import { Check as E, ChevronsUpDown as D } from "lucide-react";
|
|
17
|
+
import { isValid as O, parse as k } from "date-fns";
|
|
17
18
|
//#region src/components/features/data-view/data-view.strings.ts
|
|
18
|
-
var
|
|
19
|
+
var A = {
|
|
19
20
|
page: "Page",
|
|
20
21
|
previous: "Previous",
|
|
21
22
|
next: "Next"
|
|
22
|
-
},
|
|
23
|
+
}, j = "View";
|
|
23
24
|
//#endregion
|
|
24
25
|
//#region src/components/features/data-view/data-view-filtering.ts
|
|
25
|
-
function
|
|
26
|
+
function M(e, t) {
|
|
26
27
|
return t.includes(".") ? t.split(".").reduce((e, t) => {
|
|
27
28
|
if (e && typeof e == "object") return e[t];
|
|
28
29
|
}, e) : e && typeof e == "object" ? e[t] : void 0;
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function N(e) {
|
|
31
32
|
return e == null ? "" : e instanceof Date ? e.toISOString() : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
return e == null || t > 2 ? "" : e instanceof Date ? e.toISOString() : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : Array.isArray(e) ? e.map((e) =>
|
|
34
|
+
function P(e, t = 0) {
|
|
35
|
+
return e == null || t > 2 ? "" : e instanceof Date ? e.toISOString() : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : Array.isArray(e) ? e.map((e) => P(e, t + 1)).join(" ") : typeof e == "object" ? Object.values(e).map((e) => P(e, t + 1)).join(" ") : "";
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
-
if (Array.isArray(e)) return e.map(
|
|
38
|
-
let t =
|
|
37
|
+
function F(e) {
|
|
38
|
+
if (Array.isArray(e)) return e.map(N).filter(Boolean).map((e) => e.toLowerCase());
|
|
39
|
+
let t = N(e);
|
|
39
40
|
return t ? [t.toLowerCase()] : [];
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function I(e) {
|
|
42
43
|
let t = Number(e);
|
|
43
44
|
return Number.isFinite(t) ? t : void 0;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function L(e, t) {
|
|
46
47
|
if (t) {
|
|
47
|
-
let n =
|
|
48
|
-
if (
|
|
48
|
+
let n = k(e, t, /* @__PURE__ */ new Date(0));
|
|
49
|
+
if (O(n)) return n.getTime();
|
|
49
50
|
}
|
|
50
51
|
let n = new Date(e);
|
|
51
|
-
return
|
|
52
|
+
return O(n) ? n.getTime() : void 0;
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
let i = r?.type ===
|
|
54
|
+
function R(e, t, n, r) {
|
|
55
|
+
let i = r?.type === g.DATE ? (e) => L(e, r.dateFormat?.param ?? "yyyy-MM-dd") : I, a = e.map(i).filter((e) => e !== void 0), o = t.map(i).filter((e) => e !== void 0);
|
|
55
56
|
if (a.length === 0 || o.length === 0) return !1;
|
|
56
57
|
switch (n) {
|
|
57
|
-
case
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
63
|
-
case
|
|
58
|
+
case m.GT:
|
|
59
|
+
case m.AFTER: return a.some((e) => e > o[0]);
|
|
60
|
+
case m.GTE: return a.some((e) => e >= o[0]);
|
|
61
|
+
case m.LT:
|
|
62
|
+
case m.BEFORE: return a.some((e) => e < o[0]);
|
|
63
|
+
case m.LTE: return a.some((e) => e <= o[0]);
|
|
64
|
+
case m.BETWEEN: return o.length < 2 ? !1 : a.some((e) => e >= o[0] && e <= o[1]);
|
|
64
65
|
default: return !1;
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function z(e) {
|
|
68
69
|
return {
|
|
69
70
|
key: e,
|
|
70
71
|
label: e,
|
|
71
|
-
type:
|
|
72
|
+
type: g.SEARCH,
|
|
72
73
|
icon: null,
|
|
73
74
|
displayConfig: {}
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function B(e, t, n, r) {
|
|
77
78
|
let i = t.value.map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
78
79
|
if (i.length === 0) return !0;
|
|
79
|
-
if (n?.type ===
|
|
80
|
-
let n =
|
|
81
|
-
return t.operator ===
|
|
80
|
+
if (n?.type === g.SEARCH) {
|
|
81
|
+
let n = P(e).toLowerCase();
|
|
82
|
+
return t.operator === m.NOT || t.operator === m.NOT_IN ? i.every((e) => !n.includes(e)) : i.every((e) => n.includes(e));
|
|
82
83
|
}
|
|
83
|
-
let a = n ??
|
|
84
|
+
let a = n ?? z(t.key), o = F(r?.(e, a) ?? M(e, t.key));
|
|
84
85
|
if (o.length === 0) return !1;
|
|
85
86
|
switch (t.operator) {
|
|
86
|
-
case
|
|
87
|
-
case
|
|
88
|
-
case
|
|
89
|
-
case
|
|
90
|
-
case
|
|
91
|
-
case
|
|
92
|
-
case
|
|
93
|
-
case
|
|
94
|
-
case
|
|
95
|
-
case
|
|
96
|
-
case
|
|
97
|
-
case
|
|
98
|
-
case
|
|
99
|
-
case
|
|
100
|
-
case
|
|
87
|
+
case m.CONTAINS: return i.every((e) => o.some((t) => t.includes(e)));
|
|
88
|
+
case m.HAS: return i.every((e) => o.includes(e));
|
|
89
|
+
case m.NOT_IN: return i.every((e) => o.every((t) => t !== e));
|
|
90
|
+
case m.NOT: return n?.type === g.SELECT || n?.type === g.MULTI_SELECT || n?.type === g.ASYNC_SELECT ? i.every((e) => o.every((t) => t !== e)) : i.every((e) => o.every((t) => !t.includes(e)));
|
|
91
|
+
case m.IN:
|
|
92
|
+
case m.EQUALS:
|
|
93
|
+
case m.HAS_ANY: return i.some((e) => o.includes(e));
|
|
94
|
+
case m.HAS_ALL: return i.every((e) => o.includes(e));
|
|
95
|
+
case m.GT:
|
|
96
|
+
case m.GTE:
|
|
97
|
+
case m.LT:
|
|
98
|
+
case m.LTE:
|
|
99
|
+
case m.BEFORE:
|
|
100
|
+
case m.AFTER:
|
|
101
|
+
case m.BETWEEN: return R(o, i, t.operator, n);
|
|
101
102
|
default: return i.some((e) => o.includes(e));
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function V(e, t, n, r) {
|
|
105
106
|
if (t.length === 0) return e;
|
|
106
107
|
let i = new Map(n.map((e) => [e.key, e]));
|
|
107
|
-
return e.filter((e) => t.every((t) =>
|
|
108
|
+
return e.filter((e) => t.every((t) => B(e, t, i.get(t.key), r)));
|
|
108
109
|
}
|
|
109
110
|
//#endregion
|
|
110
111
|
//#region src/components/features/data-view/hooks/use-data-view.ts
|
|
111
|
-
function
|
|
112
|
-
let n =
|
|
112
|
+
function H({ data: e, filtering: t }) {
|
|
113
|
+
let n = S(t?.onError);
|
|
113
114
|
n.current = t?.onError;
|
|
114
|
-
let r =
|
|
115
|
+
let r = S(null), i = t?.activeFilters, a = t?.filterRows, o = t?.filters, s = t?.getFilterValue, c = t !== void 0, l = x(() => {
|
|
115
116
|
if (!c || !i || !o) return {
|
|
116
117
|
rows: e,
|
|
117
118
|
error: null,
|
|
@@ -123,7 +124,7 @@ function V({ data: e, filtering: t }) {
|
|
|
123
124
|
data: e,
|
|
124
125
|
activeFilters: i,
|
|
125
126
|
filters: o
|
|
126
|
-
}) :
|
|
127
|
+
}) : V(e, i, o, s),
|
|
127
128
|
error: null,
|
|
128
129
|
failed: !1
|
|
129
130
|
};
|
|
@@ -142,7 +143,7 @@ function V({ data: e, filtering: t }) {
|
|
|
142
143
|
s,
|
|
143
144
|
c
|
|
144
145
|
]);
|
|
145
|
-
return
|
|
146
|
+
return b(() => {
|
|
146
147
|
if (!l.failed) {
|
|
147
148
|
r.current = null;
|
|
148
149
|
return;
|
|
@@ -152,8 +153,8 @@ function V({ data: e, filtering: t }) {
|
|
|
152
153
|
}
|
|
153
154
|
//#endregion
|
|
154
155
|
//#region src/components/features/data-view/data-view.tsx
|
|
155
|
-
function
|
|
156
|
-
let { activeFilters: t, filters: n, replaceFilters: r } =
|
|
156
|
+
function U(e) {
|
|
157
|
+
let { activeFilters: t, filters: n, replaceFilters: r } = _(), i = x(() => t.filter((e) => n.find((t) => t.key === e.key)?.type !== g.SEARCH), [t, n]), a = x(() => t.filter((e) => n.find((t) => t.key === e.key)?.type === g.SEARCH), [t, n]), o = x(() => {
|
|
157
158
|
for (let t of e) {
|
|
158
159
|
if (t.presets.length === 0) {
|
|
159
160
|
if (i.length === 0) return t;
|
|
@@ -173,7 +174,7 @@ function H(e) {
|
|
|
173
174
|
return;
|
|
174
175
|
}
|
|
175
176
|
let t = e.presets.map((e) => {
|
|
176
|
-
let t = n.find((t) => t.key === e.key), r = e.operator ?? t?.operator ?? (t ?
|
|
177
|
+
let t = n.find((t) => t.key === e.key), r = e.operator ?? t?.operator ?? (t ? h(t.type) : m.EQUALS);
|
|
177
178
|
return {
|
|
178
179
|
id: e.key,
|
|
179
180
|
key: e.key,
|
|
@@ -188,9 +189,9 @@ function H(e) {
|
|
|
188
189
|
applyTab: s
|
|
189
190
|
};
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
-
let { activeTab: i, applyTab: a } =
|
|
193
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
192
|
+
function W({ tabs: e, label: t = j }) {
|
|
193
|
+
let { activeTab: i, applyTab: a } = U(e);
|
|
194
|
+
return e.length === 0 ? null : /* @__PURE__ */ w(f, {
|
|
194
195
|
search: !1,
|
|
195
196
|
contentClassName: "w-48",
|
|
196
197
|
items: e.map((e) => ({
|
|
@@ -203,69 +204,69 @@ function U({ tabs: e, label: t = A }) {
|
|
|
203
204
|
onSelect: (e) => {
|
|
204
205
|
e.data && a(e.data);
|
|
205
206
|
},
|
|
206
|
-
renderItem: (e) => /* @__PURE__ */
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
renderItem: (e) => /* @__PURE__ */ T(C, { children: [
|
|
208
|
+
/* @__PURE__ */ w("span", {
|
|
208
209
|
className: "flex size-icon-sm shrink-0 items-center justify-center",
|
|
209
|
-
children: !!e.selected && /* @__PURE__ */
|
|
210
|
+
children: !!e.selected && /* @__PURE__ */ w(E, {
|
|
210
211
|
className: "size-icon-sm",
|
|
211
212
|
"aria-hidden": "true"
|
|
212
213
|
})
|
|
213
214
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ w(r, {
|
|
215
216
|
tag: "span",
|
|
216
217
|
weight: e.selected ? "medium" : "regular",
|
|
217
218
|
className: "min-w-0 flex-1 truncate",
|
|
218
219
|
children: e.label
|
|
219
220
|
}),
|
|
220
|
-
!!e.description && /* @__PURE__ */
|
|
221
|
+
!!e.description && /* @__PURE__ */ w(s, {
|
|
221
222
|
size: "xs",
|
|
222
223
|
className: "tabular-nums",
|
|
223
224
|
children: e.description
|
|
224
225
|
})
|
|
225
226
|
] }),
|
|
226
|
-
trigger: /* @__PURE__ */
|
|
227
|
+
trigger: /* @__PURE__ */ T(n, {
|
|
227
228
|
type: "button",
|
|
228
229
|
tone: "secondary",
|
|
229
230
|
buttonStyle: "ghost",
|
|
230
231
|
size: "sm",
|
|
231
232
|
className: "h-action-sm px-control-sm",
|
|
232
233
|
"aria-label": t,
|
|
233
|
-
children: [/* @__PURE__ */
|
|
234
|
+
children: [/* @__PURE__ */ w(r, {
|
|
234
235
|
tag: "span",
|
|
235
236
|
size: "inherit",
|
|
236
237
|
className: "truncate text-current",
|
|
237
238
|
children: i?.label ?? t
|
|
238
|
-
}), /* @__PURE__ */
|
|
239
|
+
}), /* @__PURE__ */ w(D, {
|
|
239
240
|
className: "size-icon-sm",
|
|
240
241
|
"aria-hidden": "true"
|
|
241
242
|
})]
|
|
242
243
|
})
|
|
243
244
|
});
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
-
return /* @__PURE__ */
|
|
247
|
-
render: /* @__PURE__ */
|
|
246
|
+
function G({ children: e, header: n, toolbar: r, footer: i, emptySlot: o, empty: s = !1, className: c, contentClassName: l }) {
|
|
247
|
+
return /* @__PURE__ */ T(a, {
|
|
248
|
+
render: /* @__PURE__ */ w("section", {}),
|
|
248
249
|
gap: "lg",
|
|
249
250
|
"data-component": "data-view-shell",
|
|
250
251
|
"data-slot": "data-view-shell",
|
|
251
252
|
className: t("data-view-shell--component @container/data-view", c),
|
|
252
253
|
children: [
|
|
253
|
-
!!n && /* @__PURE__ */
|
|
254
|
+
!!n && /* @__PURE__ */ w("div", {
|
|
254
255
|
"data-slot": "data-view-header",
|
|
255
256
|
className: "data-view-shell--header",
|
|
256
257
|
children: n
|
|
257
258
|
}),
|
|
258
|
-
!!r && /* @__PURE__ */
|
|
259
|
+
!!r && /* @__PURE__ */ w("div", {
|
|
259
260
|
"data-slot": "data-view-toolbar-slot",
|
|
260
261
|
className: "data-view-shell--toolbar",
|
|
261
262
|
children: r
|
|
262
263
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ w("div", {
|
|
264
265
|
"data-slot": "data-view-content",
|
|
265
266
|
className: t("data-view-shell--content min-w-0", l),
|
|
266
267
|
children: s ? o : e
|
|
267
268
|
}),
|
|
268
|
-
!!i && /* @__PURE__ */
|
|
269
|
+
!!i && /* @__PURE__ */ w("div", {
|
|
269
270
|
"data-slot": "data-view-footer",
|
|
270
271
|
className: "data-view-shell--footer",
|
|
271
272
|
children: i
|
|
@@ -273,14 +274,14 @@ function W({ children: e, header: n, toolbar: r, footer: i, emptySlot: o, empty:
|
|
|
273
274
|
]
|
|
274
275
|
});
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
-
return /* @__PURE__ */
|
|
277
|
+
function K({ leading: e, search: n, filters: r, views: i, actions: o, className: s }) {
|
|
278
|
+
return /* @__PURE__ */ w("div", {
|
|
278
279
|
"data-component": "data-view-toolbar",
|
|
279
280
|
"data-slot": "data-view-toolbar",
|
|
280
|
-
className: t("data-view-toolbar--component rounded-radius border border-border
|
|
281
|
-
children: /* @__PURE__ */
|
|
281
|
+
className: t("data-view-toolbar--component rounded-radius border border-border bg-card p-surface shadow-sm", s),
|
|
282
|
+
children: /* @__PURE__ */ T("div", {
|
|
282
283
|
className: "flex min-w-0 flex-col gap-space-lg @2xl/data-view:flex-row @2xl/data-view:items-center @2xl/data-view:justify-between @2xl/data-view:flex-nowrap",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ T(a, {
|
|
284
285
|
direction: "horizontal",
|
|
285
286
|
wrap: !0,
|
|
286
287
|
align: "center",
|
|
@@ -293,7 +294,7 @@ function G({ leading: e, search: n, filters: r, views: i, actions: o, className:
|
|
|
293
294
|
r,
|
|
294
295
|
i
|
|
295
296
|
]
|
|
296
|
-
}), !!o && /* @__PURE__ */
|
|
297
|
+
}), !!o && /* @__PURE__ */ w(a, {
|
|
297
298
|
direction: "horizontal",
|
|
298
299
|
wrap: !0,
|
|
299
300
|
align: "center",
|
|
@@ -305,44 +306,44 @@ function G({ leading: e, search: n, filters: r, views: i, actions: o, className:
|
|
|
305
306
|
})
|
|
306
307
|
});
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
-
return /* @__PURE__ */
|
|
309
|
+
function q({ toolbar: e, children: n, footer: r, className: a, toolbarClassName: o, contentClassName: s, footerClassName: c }) {
|
|
310
|
+
return /* @__PURE__ */ T("section", {
|
|
310
311
|
"data-component": "data-view-table-frame",
|
|
311
312
|
"data-slot": "data-view-table-frame",
|
|
312
|
-
className: t("data-view-table-frame--component @container/data-view overflow-hidden rounded-radius border border-border bg-card shadow-
|
|
313
|
+
className: t("data-view-table-frame--component @container/data-view overflow-hidden rounded-radius border border-border bg-card shadow-xs", a),
|
|
313
314
|
children: [
|
|
314
|
-
!!e && /* @__PURE__ */
|
|
315
|
+
!!e && /* @__PURE__ */ w("div", {
|
|
315
316
|
"data-slot": "data-view-table-frame-toolbar",
|
|
316
|
-
className: t("data-view-table-frame--toolbar border-b border-border/
|
|
317
|
-
children: /* @__PURE__ */
|
|
317
|
+
className: t("data-view-table-frame--toolbar border-b border-border/60 px-surface py-surface", o),
|
|
318
|
+
children: /* @__PURE__ */ w(i, {
|
|
318
319
|
columns: 1,
|
|
319
320
|
gap: "lg",
|
|
320
321
|
children: e
|
|
321
322
|
})
|
|
322
323
|
}),
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ w("div", {
|
|
324
325
|
"data-slot": "data-view-table-frame-content",
|
|
325
326
|
className: t("data-view-table-frame--content min-w-0", s),
|
|
326
327
|
children: n
|
|
327
328
|
}),
|
|
328
|
-
!!r && /* @__PURE__ */
|
|
329
|
+
!!r && /* @__PURE__ */ w("div", {
|
|
329
330
|
"data-slot": "data-view-table-frame-footer",
|
|
330
|
-
className: t("data-view-table-frame--footer border-t border-border/
|
|
331
|
+
className: t("data-view-table-frame--footer border-t border-border/60 px-surface py-row-y", c),
|
|
331
332
|
children: r
|
|
332
333
|
})
|
|
333
334
|
]
|
|
334
335
|
});
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
-
let { rows: c } =
|
|
337
|
+
function J({ data: e, columns: n, filtering: r, table: i, slots: o, className: s }) {
|
|
338
|
+
let { rows: c } = H({
|
|
338
339
|
data: e,
|
|
339
340
|
filtering: r
|
|
340
|
-
}), l = r?.tabs ?? r?.layout?.tabs ?? [], u = r?.tabsDisplay ?? "tabs", d = u === "tabs" ? l : r?.layout?.tabs,
|
|
341
|
+
}), l = r?.tabs ?? r?.layout?.tabs ?? [], u = r?.tabsDisplay ?? "tabs", d = u === "tabs" ? l : r?.layout?.tabs, f = !!o?.toolbarStart || !!o?.toolbarAfterFilters || u === "select" && l.length > 0, m = !!r || !!o?.topbarContent || f, h = /* @__PURE__ */ w(q, {
|
|
341
342
|
className: t("data-view--component", s),
|
|
342
343
|
contentClassName: "data-view--content data-view-table--content",
|
|
343
344
|
footerClassName: "data-view--footer data-view-table--footer",
|
|
344
345
|
footer: o?.footer,
|
|
345
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ w(p, {
|
|
346
347
|
...i,
|
|
347
348
|
columns: n,
|
|
348
349
|
data: c,
|
|
@@ -350,30 +351,30 @@ function q({ data: e, columns: n, filtering: r, table: i, slots: o, className: s
|
|
|
350
351
|
headerTransparent: !1,
|
|
351
352
|
topbarClassName: t("data-view--topbar data-view-table--topbar py-surface @2xl/data-table:items-start", i?.topbarClassName),
|
|
352
353
|
toolbarLabelVisibility: i?.toolbarLabelVisibility ?? "hidden",
|
|
353
|
-
topbarContent: m ? /* @__PURE__ */
|
|
354
|
+
topbarContent: m ? /* @__PURE__ */ T(a, {
|
|
354
355
|
gap: "lg",
|
|
355
356
|
"data-slot": "data-view-topbar-content",
|
|
356
357
|
className: "data-view--topbar-content data-view-table--topbar-content",
|
|
357
358
|
children: [
|
|
358
359
|
o?.topbarContent,
|
|
359
|
-
|
|
360
|
+
f && /* @__PURE__ */ T(a, {
|
|
360
361
|
"data-slot": "data-view-toolbar-row",
|
|
361
362
|
direction: "horizontal",
|
|
362
363
|
gap: "md",
|
|
363
364
|
className: "data-view--toolbar-row data-view-table--toolbar-row",
|
|
364
365
|
children: [
|
|
365
366
|
o?.toolbarStart,
|
|
366
|
-
r && u === "select" && l.length > 0 && /* @__PURE__ */
|
|
367
|
+
r && u === "select" && l.length > 0 && /* @__PURE__ */ w(W, {
|
|
367
368
|
tabs: l,
|
|
368
369
|
label: r.tabsLabel
|
|
369
370
|
}),
|
|
370
371
|
o?.toolbarAfterFilters
|
|
371
372
|
]
|
|
372
373
|
}),
|
|
373
|
-
r && /* @__PURE__ */
|
|
374
|
+
r && /* @__PURE__ */ w("div", {
|
|
374
375
|
"data-slot": "data-view-filters",
|
|
375
376
|
className: "data-view--filters data-view-table--filters min-w-0",
|
|
376
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ w(v, {
|
|
377
378
|
...r.layout,
|
|
378
379
|
variant: r.layout?.variant ?? "compact",
|
|
379
380
|
showClearFilters: r.layout?.showClearFilters ?? r.activeFilters.length > 0,
|
|
@@ -383,14 +384,14 @@ function q({ data: e, columns: n, filtering: r, table: i, slots: o, className: s
|
|
|
383
384
|
})
|
|
384
385
|
]
|
|
385
386
|
}) : void 0,
|
|
386
|
-
topbarEnd: !!(o?.toolbarEnd || o?.topbarEnd) && /* @__PURE__ */
|
|
387
|
+
topbarEnd: !!(o?.toolbarEnd || o?.topbarEnd) && /* @__PURE__ */ T("div", {
|
|
387
388
|
"data-slot": "data-view-topbar-end",
|
|
388
389
|
className: "data-view--topbar-end",
|
|
389
390
|
children: [o?.toolbarEnd, o?.topbarEnd]
|
|
390
391
|
})
|
|
391
392
|
})
|
|
392
393
|
});
|
|
393
|
-
return r ? /* @__PURE__ */
|
|
394
|
+
return r ? /* @__PURE__ */ w(y, {
|
|
394
395
|
filters: r.filters,
|
|
395
396
|
activeFilters: r.activeFilters,
|
|
396
397
|
onFilterChange: r.onFilterChange,
|
|
@@ -400,8 +401,8 @@ function q({ data: e, columns: n, filtering: r, table: i, slots: o, className: s
|
|
|
400
401
|
children: h
|
|
401
402
|
}) : h;
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
-
return /* @__PURE__ */
|
|
404
|
+
function Y({ data: e, columns: t, filtering: n, table: r, slots: i, className: a }) {
|
|
405
|
+
return /* @__PURE__ */ w(J, {
|
|
405
406
|
data: e,
|
|
406
407
|
columns: t,
|
|
407
408
|
filtering: n,
|
|
@@ -410,39 +411,39 @@ function J({ data: e, columns: t, filtering: n, table: r, slots: i, className: a
|
|
|
410
411
|
className: a
|
|
411
412
|
});
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
-
let p = e(
|
|
415
|
-
return /* @__PURE__ */
|
|
414
|
+
function X({ page: i, pageCount: a, total: o, onPageChange: l, disabled: u = !1, className: d, strings: f }) {
|
|
415
|
+
let p = e(A, f), m = i > 1, h = a === void 0 || i < a, g = a ? `${p.page} ${i} / ${a}` : `${p.page} ${i}`, _ = !!l && !u;
|
|
416
|
+
return /* @__PURE__ */ T("nav", {
|
|
416
417
|
"data-component": "data-view-pagination",
|
|
417
418
|
"data-slot": "data-view-pagination",
|
|
418
419
|
className: t("data-view-pagination--component flex min-w-0 flex-col gap-space-md @md/data-view:flex-row @md/data-view:justify-between", d),
|
|
419
420
|
"aria-label": p.page,
|
|
420
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ w("div", {
|
|
421
422
|
"data-slot": "data-view-pagination-summary",
|
|
422
423
|
className: "data-view-pagination--summary min-w-0",
|
|
423
|
-
children:
|
|
424
|
+
children: o != null && /* @__PURE__ */ w(r, {
|
|
424
425
|
size: "xs",
|
|
425
426
|
type: "secondary",
|
|
426
|
-
children:
|
|
427
|
+
children: o
|
|
427
428
|
})
|
|
428
|
-
}), /* @__PURE__ */
|
|
429
|
+
}), /* @__PURE__ */ T("div", {
|
|
429
430
|
"data-slot": "data-view-pagination-controls",
|
|
430
431
|
className: "data-view-pagination--controls flex shrink-0 items-center gap-space-md",
|
|
431
432
|
children: [
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ T(s, {
|
|
433
434
|
size: "xs",
|
|
434
435
|
className: "tabular-nums",
|
|
435
436
|
"aria-label": g,
|
|
436
437
|
children: [
|
|
437
438
|
p.page,
|
|
438
439
|
" ",
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ w(c, {
|
|
440
441
|
value: i,
|
|
441
442
|
size: "xs",
|
|
442
443
|
align: "left",
|
|
443
444
|
type: "secondary"
|
|
444
445
|
}),
|
|
445
|
-
a ? /* @__PURE__ */
|
|
446
|
+
a ? /* @__PURE__ */ T(C, { children: [" / ", /* @__PURE__ */ w(c, {
|
|
446
447
|
value: a,
|
|
447
448
|
size: "xs",
|
|
448
449
|
align: "left",
|
|
@@ -450,7 +451,7 @@ function Y({ page: i, pageCount: a, total: c, onPageChange: l, disabled: u = !1,
|
|
|
450
451
|
})] }) : null
|
|
451
452
|
]
|
|
452
453
|
}),
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ w(n, {
|
|
454
455
|
size: "sm",
|
|
455
456
|
type: "button",
|
|
456
457
|
tone: "secondary",
|
|
@@ -459,7 +460,7 @@ function Y({ page: i, pageCount: a, total: c, onPageChange: l, disabled: u = !1,
|
|
|
459
460
|
onClick: () => l?.(i - 1),
|
|
460
461
|
children: p.previous
|
|
461
462
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ w(n, {
|
|
463
464
|
size: "sm",
|
|
464
465
|
type: "button",
|
|
465
466
|
tone: "secondary",
|
|
@@ -472,23 +473,23 @@ function Y({ page: i, pageCount: a, total: c, onPageChange: l, disabled: u = !1,
|
|
|
472
473
|
})]
|
|
473
474
|
});
|
|
474
475
|
}
|
|
475
|
-
function
|
|
476
|
-
return /* @__PURE__ */
|
|
476
|
+
function Z({ views: e, value: n, onValueChange: i, className: a }) {
|
|
477
|
+
return /* @__PURE__ */ w(d, {
|
|
477
478
|
"data-component": "saved-view-tabs",
|
|
478
479
|
"data-slot": "saved-view-tabs",
|
|
479
|
-
className: t("saved-view-tabs--component rounded-radius bg-muted
|
|
480
|
-
value:
|
|
480
|
+
className: t("saved-view-tabs--component rounded-radius bg-muted p-space-xs", a),
|
|
481
|
+
value: n,
|
|
481
482
|
onValueChange: (e) => {
|
|
482
483
|
typeof e == "string" && i(e);
|
|
483
484
|
},
|
|
484
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ w(u, {
|
|
485
486
|
role: "group",
|
|
486
487
|
"aria-orientation": void 0,
|
|
487
488
|
activateOnFocus: !0,
|
|
488
489
|
className: "h-auto! flex-wrap justify-start gap-space-xs bg-transparent p-0",
|
|
489
490
|
children: e.map((e) => {
|
|
490
|
-
let i = e.id ===
|
|
491
|
-
return /* @__PURE__ */
|
|
491
|
+
let i = e.id === n;
|
|
492
|
+
return /* @__PURE__ */ T(l, {
|
|
492
493
|
"data-slot": "saved-view-tab",
|
|
493
494
|
type: "button",
|
|
494
495
|
role: "button",
|
|
@@ -497,13 +498,13 @@ function X({ views: e, value: r, onValueChange: i, className: a }) {
|
|
|
497
498
|
"aria-controls": void 0,
|
|
498
499
|
"aria-pressed": i,
|
|
499
500
|
disabled: e.disabled,
|
|
500
|
-
className: t("saved-view-tabs--tab h-action-sm flex-none gap-space-xs rounded-inner px-control-sm py-0 after:hidden data-active:bg-
|
|
501
|
-
children: [/* @__PURE__ */
|
|
501
|
+
className: t("saved-view-tabs--tab h-action-sm flex-none gap-space-xs rounded-inner px-control-sm py-0 after:hidden data-active:bg-accent data-active:text-accent-foreground data-active:hover:bg-accent data-active:hover:text-accent-foreground", o.toggleHover),
|
|
502
|
+
children: [/* @__PURE__ */ w(r, {
|
|
502
503
|
tag: "span",
|
|
503
504
|
size: "inherit",
|
|
504
505
|
className: "truncate text-current",
|
|
505
506
|
children: e.label
|
|
506
|
-
}), e.count !== void 0 && e.count !== null && /* @__PURE__ */
|
|
507
|
+
}), e.count !== void 0 && e.count !== null && /* @__PURE__ */ w(r, {
|
|
507
508
|
tag: "span",
|
|
508
509
|
size: "xs",
|
|
509
510
|
type: "secondary",
|
|
@@ -516,6 +517,6 @@ function X({ views: e, value: r, onValueChange: i, className: a }) {
|
|
|
516
517
|
});
|
|
517
518
|
}
|
|
518
519
|
//#endregion
|
|
519
|
-
export {
|
|
520
|
+
export { Y as DataView, X as DataViewPagination, G as DataViewShell, q as DataViewTableFrame, K as DataViewToolbar, Z as SavedViewTabs, j as defaultDataViewFilterTabsLabel, A as defaultDataViewPaginationStrings, H as useDataView };
|
|
520
521
|
|
|
521
522
|
//# sourceMappingURL=data-view.js.map
|