admin-ui-starter-kit 0.1.4 → 0.4.2
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/.agents/skills/admin-ui-consumer-migration/SKILL.md +276 -2
- package/.agents/skills/component-library-rules/SKILL.md +8 -8
- package/.agents/skills/component-library-rules/references/audit-followups.md +4 -4
- package/.agents/skills/component-library-rules/references/components/INDEX.json +106 -93
- package/.agents/skills/component-library-rules/references/components/INDEX.md +17 -4
- package/.agents/skills/component-library-rules/references/components/base__accordion.md +78 -9
- package/.agents/skills/component-library-rules/references/components/base__alert.md +156 -0
- package/.agents/skills/component-library-rules/references/components/base__badge.md +8 -1
- package/.agents/skills/component-library-rules/references/components/base__buttons.md +121 -1
- package/.agents/skills/component-library-rules/references/components/base__cards.md +101 -4
- package/.agents/skills/component-library-rules/references/components/base__carousel.md +524 -0
- package/.agents/skills/component-library-rules/references/components/base__chart.md +391 -0
- package/.agents/skills/component-library-rules/references/components/base__combobox.md +212 -3
- package/.agents/skills/component-library-rules/references/components/base__copyable.md +49 -1
- package/.agents/skills/component-library-rules/references/components/base__currency.md +72 -1
- package/.agents/skills/component-library-rules/references/components/base__date-pickers.md +84 -50
- package/.agents/skills/component-library-rules/references/components/base__display.md +186 -39
- package/.agents/skills/component-library-rules/references/components/base__empty-state.md +67 -1
- package/.agents/skills/component-library-rules/references/components/base__event-calendar.md +56 -1
- package/.agents/skills/component-library-rules/references/components/base__forms.md +329 -2
- package/.agents/skills/component-library-rules/references/components/base__frame.md +235 -0
- package/.agents/skills/component-library-rules/references/components/base__item.md +47 -1
- package/.agents/skills/component-library-rules/references/components/base__map.md +37 -1
- package/.agents/skills/component-library-rules/references/components/base__metadata-list.md +99 -7
- package/.agents/skills/component-library-rules/references/components/base__navigation.md +71 -1
- package/.agents/skills/component-library-rules/references/components/base__spinner.md +44 -3
- package/.agents/skills/component-library-rules/references/components/base__table.md +108 -14
- package/.agents/skills/component-library-rules/references/components/base__typography.md +122 -1
- package/.agents/skills/component-library-rules/references/components/base__upload-tray.md +43 -1
- package/.agents/skills/component-library-rules/references/components/common__brand.md +21 -25
- package/.agents/skills/component-library-rules/references/components/composed__admin.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__ai-elements.md +17 -2
- package/.agents/skills/component-library-rules/references/components/composed__ai-new.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__ai.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__api-key-list.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__commerce-extras.md +87 -16
- package/.agents/skills/component-library-rules/references/components/composed__commerce.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__contact-card.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__course-card.md +90 -105
- package/.agents/skills/component-library-rules/references/components/composed__dark-surfaces.md +10 -3
- package/.agents/skills/component-library-rules/references/components/composed__dense-info.md +11 -4
- package/.agents/skills/component-library-rules/references/components/composed__feature-announcement.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__giftcard-cards.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__gradient-card.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__invoice-header.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__invoice-items.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__invoice-mini.md +9 -2
- package/.agents/skills/component-library-rules/references/components/composed__invoice-table.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__navigation-extras.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__navigation.md +12 -5
- package/.agents/skills/component-library-rules/references/components/composed__onboarding-checklist.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__timelines.md +8 -1
- package/.agents/skills/component-library-rules/references/components/composed__vendor-profile.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__activities.md +60 -19
- package/.agents/skills/component-library-rules/references/components/features__ai-chat.md +134 -1
- package/.agents/skills/component-library-rules/references/components/features__card.md +239 -0
- package/.agents/skills/component-library-rules/references/components/features__comments.md +36 -1
- package/.agents/skills/component-library-rules/references/components/features__enhanced-activities.md +19 -4
- package/.agents/skills/component-library-rules/references/components/features__event-log.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__filters.md +21 -1
- package/.agents/skills/component-library-rules/references/components/features__global-search.md +173 -2
- package/.agents/skills/component-library-rules/references/components/features__kanban.md +99 -81
- package/.agents/skills/component-library-rules/references/components/features__media-library.md +796 -0
- package/.agents/skills/component-library-rules/references/components/features__mentions.md +187 -0
- package/.agents/skills/component-library-rules/references/components/features__metrics-analytics-bar.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-analytics-cards.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-comparison.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-heatmap.md +10 -3
- package/.agents/skills/component-library-rules/references/components/features__metrics-inline-badge.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-kpi-row.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-micro-grid.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-overview.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__metrics-stat-cards.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__overlays.md +48 -16
- package/.agents/skills/component-library-rules/references/components/features__products.md +491 -0
- package/.agents/skills/component-library-rules/references/components/features__rich-text-editor.md +8 -1
- package/.agents/skills/component-library-rules/references/components/features__schema-form.md +375 -0
- package/.agents/skills/component-library-rules/references/components/features__suggestions.md +177 -0
- package/.agents/skills/component-library-rules/references/components/features__sync.md +155 -0
- package/.agents/skills/component-library-rules/references/components/layout__layout-app-shell.md +139 -24
- package/.agents/skills/component-library-rules/references/components/layout__layout-auth.md +826 -0
- package/.agents/skills/component-library-rules/references/components/layout__layout-containers.md +15 -3
- package/.agents/skills/component-library-rules/references/components/layout__layout-header.md +8 -1
- package/.agents/skills/component-library-rules/references/components/layout__layout-page.md +8 -1
- package/.agents/skills/component-library-rules/references/components/layout__layout-sidebar.md +9 -2
- package/.agents/skills/component-library-rules/references/components/layout__layout-users.md +51 -30
- package/.agents/skills/component-library-rules/references/components/layout__layout-workspace.md +234 -0
- package/.agents/skills/component-library-rules/references/components/ui__alert.md +6 -2
- package/.agents/skills/component-library-rules/references/components/ui__avatar.md +2 -2
- package/.agents/skills/component-library-rules/references/components/ui__breadcrumb.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__button.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__calendar.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__collapsible.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__empty-item.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__input-group.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__inputs.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__menus.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__overlays.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__pagination.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__progress.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__scroll-area.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__separator.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__skeleton.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__sonner.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__spinner.md +2 -2
- package/.agents/skills/component-library-rules/references/components/ui__tabs.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__toggles-group.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__toggles.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__ui-badge.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__ui-card.md +1 -1
- package/.agents/skills/component-library-rules/references/components/ui__ui-table.md +1 -1
- package/.agents/skills/component-library-rules/references/visual-eval.md +1 -1
- package/.agents/skills/component-quality-pass/SKILL.md +47 -0
- package/.agents/skills/component-quality-pass/agents/openai.yaml +4 -0
- package/.agents/skills/component-quality-pass/references/audit-workflow.md +133 -0
- package/.agents/skills/component-quality-pass/scripts/list-preview-routes.mjs +71 -0
- package/.agents/skills/component-quality-pass/scripts/scan-quality-smells.mjs +213 -0
- package/COMPONENT_SELECTION.md +51 -5
- package/INTEGRATION.md +48 -2
- package/MIGRATION.md +17 -3
- package/PUBLISHING.md +4 -1
- package/README.md +56 -7
- package/dist/_shared/accordion-BWU7zxlO.cjs +2 -0
- package/dist/_shared/accordion-BWU7zxlO.cjs.map +1 -0
- package/dist/_shared/accordion-DTYKGqWD.js +130 -0
- package/dist/_shared/accordion-DTYKGqWD.js.map +1 -0
- package/dist/_shared/action-menu-BoQnI2UF.cjs +2 -0
- package/dist/_shared/action-menu-BoQnI2UF.cjs.map +1 -0
- package/dist/_shared/action-menu-uyg1Phsn.js +96 -0
- package/dist/_shared/action-menu-uyg1Phsn.js.map +1 -0
- package/dist/_shared/ai-artifact-CY1Jf9gM.cjs +3 -0
- package/dist/_shared/ai-artifact-CY1Jf9gM.cjs.map +1 -0
- package/dist/_shared/ai-artifact-DdlK_l56.js +1099 -0
- package/dist/_shared/ai-artifact-DdlK_l56.js.map +1 -0
- package/dist/_shared/alert-CuIIKJC-.cjs +2 -0
- package/dist/_shared/alert-CuIIKJC-.cjs.map +1 -0
- package/dist/_shared/alert-k60OnTtb.js +81 -0
- package/dist/_shared/alert-k60OnTtb.js.map +1 -0
- package/dist/_shared/app-shell-DqDnnKT4.cjs +2 -0
- package/dist/_shared/app-shell-DqDnnKT4.cjs.map +1 -0
- package/dist/_shared/app-shell-w5h0vEKg.js +69 -0
- package/dist/_shared/app-shell-w5h0vEKg.js.map +1 -0
- package/dist/_shared/auth-CDjZFJxy.cjs +2 -0
- package/dist/_shared/auth-CDjZFJxy.cjs.map +1 -0
- package/dist/_shared/auth-_udUdWtn.js +643 -0
- package/dist/_shared/auth-_udUdWtn.js.map +1 -0
- package/dist/_shared/badge--o9wFHB_.cjs +2 -0
- package/dist/_shared/badge--o9wFHB_.cjs.map +1 -0
- package/dist/_shared/badge-yGlx9trX.js +108 -0
- package/dist/_shared/badge-yGlx9trX.js.map +1 -0
- package/dist/_shared/button-C1qc97U1.cjs +2 -0
- package/dist/_shared/button-C1qc97U1.cjs.map +1 -0
- package/dist/_shared/button-SuocMQFT.js +173 -0
- package/dist/_shared/button-SuocMQFT.js.map +1 -0
- package/dist/_shared/buttons-9YBwevkP.cjs +2 -0
- package/dist/_shared/buttons-9YBwevkP.cjs.map +1 -0
- package/dist/_shared/buttons-BR4BGVYf.js +143 -0
- package/dist/_shared/buttons-BR4BGVYf.js.map +1 -0
- package/dist/_shared/card-radio-group-Bna2uZs1.cjs +2 -0
- package/dist/_shared/card-radio-group-Bna2uZs1.cjs.map +1 -0
- package/dist/_shared/card-radio-group-D_CY1HRy.js +158 -0
- package/dist/_shared/card-radio-group-D_CY1HRy.js.map +1 -0
- package/dist/_shared/checkbox-CTqqawIT.js +22 -0
- package/dist/_shared/checkbox-CTqqawIT.js.map +1 -0
- package/dist/_shared/checkbox-D1n-nfLP.cjs +2 -0
- package/dist/_shared/checkbox-D1n-nfLP.cjs.map +1 -0
- package/dist/_shared/combobox-CpSmiPV8.cjs +2 -0
- package/dist/_shared/combobox-CpSmiPV8.cjs.map +1 -0
- package/dist/_shared/combobox-D01JwyFZ.js +810 -0
- package/dist/_shared/combobox-D01JwyFZ.js.map +1 -0
- package/dist/_shared/comments-D9velZAW.js +952 -0
- package/dist/_shared/comments-D9velZAW.js.map +1 -0
- package/dist/_shared/comments-DyUAKSQu.cjs +2 -0
- package/dist/_shared/comments-DyUAKSQu.cjs.map +1 -0
- package/dist/_shared/copyable-Bx4J7fuT.cjs +2 -0
- package/dist/_shared/copyable-Bx4J7fuT.cjs.map +1 -0
- package/dist/_shared/copyable-cfF4gZoT.js +38 -0
- package/dist/_shared/copyable-cfF4gZoT.js.map +1 -0
- package/dist/_shared/date-picker-BnsvBFOZ.cjs +2 -0
- package/dist/_shared/date-picker-BnsvBFOZ.cjs.map +1 -0
- package/dist/_shared/date-picker-TMcjGO26.js +1361 -0
- package/dist/_shared/date-picker-TMcjGO26.js.map +1 -0
- package/dist/_shared/date-pickers-BI4xLjHR.js +330 -0
- package/dist/_shared/date-pickers-BI4xLjHR.js.map +1 -0
- package/dist/_shared/date-pickers-BhaUK5S2.cjs +2 -0
- package/dist/_shared/date-pickers-BhaUK5S2.cjs.map +1 -0
- package/dist/_shared/display-C4n0uuxl.js +1154 -0
- package/dist/_shared/display-C4n0uuxl.js.map +1 -0
- package/dist/_shared/display-oDW0O9yB.cjs +2 -0
- package/dist/_shared/display-oDW0O9yB.cjs.map +1 -0
- package/dist/_shared/form-field-B7taMVbC.js +329 -0
- package/dist/_shared/form-field-B7taMVbC.js.map +1 -0
- package/dist/_shared/form-field-rMGPvHFK.cjs +2 -0
- package/dist/_shared/form-field-rMGPvHFK.cjs.map +1 -0
- package/dist/_shared/form-sizing-D74IS9KG.js.map +1 -1
- package/dist/_shared/form-sizing-aVwVuF-w.cjs.map +1 -1
- package/dist/_shared/forms-CwJci54_.js +3430 -0
- package/dist/_shared/forms-CwJci54_.js.map +1 -0
- package/dist/_shared/forms-E3JkTgcC.cjs +2 -0
- package/dist/_shared/forms-E3JkTgcC.cjs.map +1 -0
- package/dist/_shared/header-BUAddfdE.js +360 -0
- package/dist/_shared/header-BUAddfdE.js.map +1 -0
- package/dist/_shared/header-BnxWOiNm.cjs +2 -0
- package/dist/_shared/header-BnxWOiNm.cjs.map +1 -0
- package/dist/_shared/heading-0DYCOrgC.cjs +2 -0
- package/dist/_shared/heading-0DYCOrgC.cjs.map +1 -0
- package/dist/_shared/heading-HeP06nXG.js +107 -0
- package/dist/_shared/heading-HeP06nXG.js.map +1 -0
- package/dist/_shared/hooks-MW0UTO3q.cjs +2 -0
- package/dist/_shared/hooks-MW0UTO3q.cjs.map +1 -0
- package/dist/_shared/hooks-ZiPIvs0_.js +118 -0
- package/dist/_shared/hooks-ZiPIvs0_.js.map +1 -0
- package/dist/_shared/input-C7t-RHYq.js +182 -0
- package/dist/_shared/input-C7t-RHYq.js.map +1 -0
- package/dist/_shared/input-COMcb1WY.cjs +2 -0
- package/dist/_shared/input-COMcb1WY.cjs.map +1 -0
- package/dist/_shared/item-DAjqQhhj.js +225 -0
- package/dist/_shared/item-DAjqQhhj.js.map +1 -0
- package/dist/_shared/item-DoXXYgPm.cjs +2 -0
- package/dist/_shared/item-DoXXYgPm.cjs.map +1 -0
- package/dist/_shared/mentions-Br-EP9tq.js +506 -0
- package/dist/_shared/mentions-Br-EP9tq.js.map +1 -0
- package/dist/_shared/mentions-DNTsRHJl.cjs +2 -0
- package/dist/_shared/mentions-DNTsRHJl.cjs.map +1 -0
- package/dist/_shared/metadata-CPSQGPJh.cjs +2 -0
- package/dist/_shared/metadata-CPSQGPJh.cjs.map +1 -0
- package/dist/_shared/metadata-qTNAOM7E.js +235 -0
- package/dist/_shared/metadata-qTNAOM7E.js.map +1 -0
- package/dist/_shared/money-display-CFSMUtxS.cjs +2 -0
- package/dist/_shared/money-display-CFSMUtxS.cjs.map +1 -0
- package/dist/_shared/money-display-D4Z3P3f_.js +198 -0
- package/dist/_shared/money-display-D4Z3P3f_.js.map +1 -0
- package/dist/_shared/navigation-HnnA6uSV.js +419 -0
- package/dist/_shared/navigation-HnnA6uSV.js.map +1 -0
- package/dist/_shared/navigation-J2g0Tw9D.cjs +2 -0
- package/dist/_shared/navigation-J2g0Tw9D.cjs.map +1 -0
- package/dist/_shared/overlays-CIeniDjj.js +639 -0
- package/dist/_shared/overlays-CIeniDjj.js.map +1 -0
- package/dist/_shared/overlays-Xc_F_Y-E.cjs +2 -0
- package/dist/_shared/overlays-Xc_F_Y-E.cjs.map +1 -0
- package/dist/_shared/page-BFV-KE8H.js +262 -0
- package/dist/_shared/page-BFV-KE8H.js.map +1 -0
- package/dist/_shared/page-UJfWfw2R.cjs +2 -0
- package/dist/_shared/page-UJfWfw2R.cjs.map +1 -0
- package/dist/_shared/popover-menu-Fz-bvWJF.cjs +2 -0
- package/dist/_shared/popover-menu-Fz-bvWJF.cjs.map +1 -0
- package/dist/_shared/popover-menu-bKQatoYF.js +93 -0
- package/dist/_shared/popover-menu-bKQatoYF.js.map +1 -0
- package/dist/_shared/rich-text-editor-B6WKHUKC.js +620 -0
- package/dist/_shared/rich-text-editor-B6WKHUKC.js.map +1 -0
- package/dist/_shared/rich-text-editor-Dm-6r_xe.cjs +2 -0
- package/dist/_shared/rich-text-editor-Dm-6r_xe.cjs.map +1 -0
- package/dist/_shared/sidebar-BML5ZZ5s.js +537 -0
- package/dist/_shared/sidebar-BML5ZZ5s.js.map +1 -0
- package/dist/_shared/sidebar-C89O5ho_.cjs +2 -0
- package/dist/_shared/sidebar-C89O5ho_.cjs.map +1 -0
- package/dist/_shared/smart-card-DYZGY_Su.js +361 -0
- package/dist/_shared/smart-card-DYZGY_Su.js.map +1 -0
- package/dist/_shared/smart-card-Df80VF8x.cjs +2 -0
- package/dist/_shared/smart-card-Df80VF8x.cjs.map +1 -0
- package/dist/_shared/spinner-BfAbXTQ7.js +67 -0
- package/dist/_shared/spinner-BfAbXTQ7.js.map +1 -0
- package/dist/_shared/spinner-DWn3x9Tl.cjs +2 -0
- package/dist/_shared/spinner-DWn3x9Tl.cjs.map +1 -0
- package/dist/_shared/table-CBKDA7ZE.js +1189 -0
- package/dist/_shared/table-CBKDA7ZE.js.map +1 -0
- package/dist/_shared/table-CJoxRCWy.cjs +2 -0
- package/dist/_shared/table-CJoxRCWy.cjs.map +1 -0
- package/dist/_shared/textarea-C4SOrh0z.cjs +2 -0
- package/dist/_shared/textarea-C4SOrh0z.cjs.map +1 -0
- package/dist/_shared/textarea-CsMkelmp.js +119 -0
- package/dist/_shared/textarea-CsMkelmp.js.map +1 -0
- package/dist/_shared/typography-Bzsl7aTu.cjs +2 -0
- package/dist/_shared/typography-Bzsl7aTu.cjs.map +1 -0
- package/dist/_shared/typography-CdxyWB1T.js +102 -0
- package/dist/_shared/typography-CdxyWB1T.js.map +1 -0
- package/dist/_shared/ui-provider-BF4m2cR0.cjs +2 -0
- package/dist/_shared/ui-provider-BF4m2cR0.cjs.map +1 -0
- package/dist/_shared/ui-provider-C8Ot88lS.js +85 -0
- package/dist/_shared/ui-provider-C8Ot88lS.js.map +1 -0
- package/dist/_shared/workspace-CTjIGCE0.cjs +2 -0
- package/dist/_shared/workspace-CTjIGCE0.cjs.map +1 -0
- package/dist/_shared/workspace-WgJgiSUA.js +357 -0
- package/dist/_shared/workspace-WgJgiSUA.js.map +1 -0
- package/dist/components/base/accordion/index.cjs +1 -1
- package/dist/components/base/accordion/index.js +1 -1
- package/dist/components/base/badge/index.cjs +1 -1
- package/dist/components/base/badge/index.js +1 -1
- package/dist/components/base/buttons/base-button.d.ts.map +1 -1
- package/dist/components/base/buttons/index.cjs +1 -1
- package/dist/components/base/buttons/index.js +2 -2
- package/dist/components/base/cards/index.cjs +1 -1
- package/dist/components/base/cards/index.d.ts +1 -1
- package/dist/components/base/cards/index.d.ts.map +1 -1
- package/dist/components/base/cards/index.js +1 -1
- package/dist/components/base/cards/smart-card.d.ts.map +1 -1
- package/dist/components/base/cards/smart-card.types.d.ts +2 -1
- package/dist/components/base/cards/smart-card.types.d.ts.map +1 -1
- package/dist/components/base/carousel/carousel.d.ts +66 -0
- package/dist/components/base/carousel/carousel.d.ts.map +1 -0
- package/dist/components/base/carousel/carousel.strings.d.ts +7 -0
- package/dist/components/base/carousel/carousel.strings.d.ts.map +1 -0
- package/dist/components/base/carousel/index.cjs +2 -0
- package/dist/components/base/carousel/index.cjs.map +1 -0
- package/dist/components/base/carousel/index.d.ts +3 -0
- package/dist/components/base/carousel/index.d.ts.map +1 -0
- package/dist/components/base/carousel/index.js +239 -0
- package/dist/components/base/carousel/index.js.map +1 -0
- package/dist/components/base/combobox/enhanced-combobox.d.ts +2 -2
- package/dist/components/base/combobox/enhanced-combobox.d.ts.map +1 -1
- package/dist/components/base/combobox/hooks/use-debounced-search.d.ts.map +1 -1
- package/dist/components/base/combobox/index.cjs +1 -1
- package/dist/components/base/combobox/index.js +1 -1
- package/dist/components/base/combobox/types.d.ts +4 -1
- package/dist/components/base/combobox/types.d.ts.map +1 -1
- package/dist/components/base/copyable/index.cjs +1 -1
- package/dist/components/base/copyable/index.js +1 -1
- package/dist/components/base/currency/index.cjs +1 -1
- package/dist/components/base/currency/index.js +1 -1
- package/dist/components/base/date-pickers/index.cjs +1 -1
- package/dist/components/base/date-pickers/index.js +2 -2
- package/dist/components/base/display/alert.d.ts +13 -1
- package/dist/components/base/display/alert.d.ts.map +1 -1
- package/dist/components/base/display/chart.cjs +8 -0
- package/dist/components/base/display/chart.cjs.map +1 -0
- package/dist/components/base/display/chart.d.ts +71 -1
- package/dist/components/base/display/chart.d.ts.map +1 -1
- package/dist/components/base/display/chart.js +144 -0
- package/dist/components/base/display/chart.js.map +1 -0
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/date-block.d.ts.map +1 -1
- package/dist/components/base/display/index.cjs +1 -1
- package/dist/components/base/display/index.d.ts +1 -2
- package/dist/components/base/display/index.d.ts.map +1 -1
- package/dist/components/base/display/index.js +10 -10
- package/dist/components/base/display/metadata/index.cjs +1 -1
- package/dist/components/base/display/metadata/index.js +1 -1
- package/dist/components/base/display/notification-banner.d.ts.map +1 -1
- package/dist/components/base/display/stacked-avatars.d.ts +6 -5
- package/dist/components/base/display/stacked-avatars.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-event-badge.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-event-card.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-header.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar-legend.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/components/base/event-calendar/event-calendar.types.d.ts +3 -2
- package/dist/components/base/event-calendar/event-calendar.types.d.ts.map +1 -1
- package/dist/components/base/event-calendar/index.cjs +1 -1
- package/dist/components/base/event-calendar/index.cjs.map +1 -1
- package/dist/components/base/event-calendar/index.js +196 -205
- package/dist/components/base/event-calendar/index.js.map +1 -1
- package/dist/components/base/forms/fields/currency-input.d.ts.map +1 -1
- package/dist/components/base/forms/fields/decimal-input.d.ts.map +1 -1
- package/dist/components/base/forms/fields/index.d.ts +2 -0
- package/dist/components/base/forms/fields/index.d.ts.map +1 -1
- package/dist/components/base/forms/fields/password-input.d.ts +21 -0
- package/dist/components/base/forms/fields/password-input.d.ts.map +1 -0
- package/dist/components/base/forms/fields/select.d.ts +2 -0
- package/dist/components/base/forms/fields/select.d.ts.map +1 -1
- package/dist/components/base/forms/fields/slug-field.d.ts +16 -0
- package/dist/components/base/forms/fields/slug-field.d.ts.map +1 -0
- package/dist/components/base/forms/fields/switch-card.d.ts.map +1 -1
- package/dist/components/base/forms/index.cjs +1 -1
- package/dist/components/base/forms/index.js +8 -7
- package/dist/components/base/frame/frame.d.ts +24 -0
- package/dist/components/base/frame/frame.d.ts.map +1 -0
- package/dist/components/base/frame/index.cjs +2 -0
- package/dist/components/base/frame/index.cjs.map +1 -0
- package/dist/components/base/frame/index.d.ts +2 -0
- package/dist/components/base/frame/index.d.ts.map +1 -0
- package/dist/components/base/frame/index.js +164 -0
- package/dist/components/base/frame/index.js.map +1 -0
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/base/item/index.cjs +1 -1
- package/dist/components/base/item/index.js +1 -1
- package/dist/components/base/item/item.d.ts.map +1 -1
- package/dist/components/base/map/index.cjs +1 -1
- package/dist/components/base/map/index.cjs.map +1 -1
- package/dist/components/base/map/index.js +1 -1
- package/dist/components/base/navigation/index.cjs +1 -1
- package/dist/components/base/navigation/index.js +2 -2
- package/dist/components/base/popover-menu/index.cjs +1 -1
- package/dist/components/base/popover-menu/index.js +1 -1
- package/dist/components/base/popover-menu/popover-menu.d.ts +2 -1
- package/dist/components/base/popover-menu/popover-menu.d.ts.map +1 -1
- package/dist/components/base/spinner/index.cjs +1 -1
- package/dist/components/base/spinner/index.js +1 -1
- package/dist/components/base/table/data-table.d.ts.map +1 -1
- package/dist/components/base/table/index.cjs +1 -2
- package/dist/components/base/table/index.js +2 -1189
- package/dist/components/base/table/table-body.d.ts.map +1 -1
- package/dist/components/base/table/table-header.d.ts.map +1 -1
- package/dist/components/base/table/table-helpers.d.ts.map +1 -1
- package/dist/components/base/table/table.types.d.ts +6 -1
- package/dist/components/base/table/table.types.d.ts.map +1 -1
- package/dist/components/base/toaster/index.cjs +1 -1
- package/dist/components/base/toaster/index.js +1 -1
- package/dist/components/composed/admin/api-key-list/api-key-list.d.ts.map +1 -1
- package/dist/components/composed/admin/index.cjs +1 -1
- package/dist/components/composed/admin/index.cjs.map +1 -1
- package/dist/components/composed/admin/index.js +18 -13
- package/dist/components/composed/admin/index.js.map +1 -1
- package/dist/components/composed/admin/role-permission/role-permission.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-attachment/ai-attachment.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-citation/ai-citation.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-code-block/ai-code-block.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-file-tree/ai-file-tree.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-inline-citation/ai-inline-citation.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-reasoning/ai-reasoning.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-sources/ai-sources.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-task/ai-task.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-task/types.d.ts +2 -0
- package/dist/components/composed/ai/ai-task/types.d.ts.map +1 -1
- package/dist/components/composed/ai/ai-tool-call/ai-tool-call.d.ts.map +1 -1
- package/dist/components/composed/ai/index.cjs +1 -1
- package/dist/components/composed/ai/index.cjs.map +1 -1
- package/dist/components/composed/ai/index.js +87 -83
- package/dist/components/composed/ai/index.js.map +1 -1
- package/dist/components/composed/analytics/chart-card/chart-card.d.ts +22 -0
- package/dist/components/composed/analytics/chart-card/chart-card.d.ts.map +1 -0
- package/dist/components/composed/analytics/chart-card/index.d.ts +2 -0
- package/dist/components/composed/analytics/chart-card/index.d.ts.map +1 -0
- package/dist/components/composed/analytics/format-metric-value.d.ts.map +1 -1
- package/dist/components/composed/analytics/index.cjs +1 -1
- package/dist/components/composed/analytics/index.cjs.map +1 -1
- package/dist/components/composed/analytics/index.d.ts +2 -0
- package/dist/components/composed/analytics/index.d.ts.map +1 -1
- package/dist/components/composed/analytics/index.js +369 -377
- package/dist/components/composed/analytics/index.js.map +1 -1
- package/dist/components/composed/analytics/metric-comparison/metric-comparison.d.ts +2 -1
- package/dist/components/composed/analytics/metric-comparison/metric-comparison.d.ts.map +1 -1
- package/dist/components/composed/analytics/metric-gradient/metric-gradient.d.ts.map +1 -1
- package/dist/components/composed/cards/contact-card/contact-card.d.ts.map +1 -1
- package/dist/components/composed/cards/course-card/course-card.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-compact.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-dark.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-full.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-illustrated.d.ts.map +1 -1
- package/dist/components/composed/cards/giftcard-card/partials/giftcard-minimal.d.ts.map +1 -1
- package/dist/components/composed/cards/index.cjs +1 -1
- package/dist/components/composed/cards/index.cjs.map +1 -1
- package/dist/components/composed/cards/index.js +586 -606
- package/dist/components/composed/cards/index.js.map +1 -1
- package/dist/components/composed/cards/vendor-profile/vendor-profile.d.ts.map +1 -1
- package/dist/components/composed/commerce/cart-summary/cart-summary.d.ts.map +1 -1
- package/dist/components/composed/commerce/cart-summary/types.d.ts +8 -1
- package/dist/components/composed/commerce/cart-summary/types.d.ts.map +1 -1
- package/dist/components/composed/commerce/coupon-input/coupon-input.d.ts.map +1 -1
- package/dist/components/composed/commerce/index.cjs +1 -1
- package/dist/components/composed/commerce/index.cjs.map +1 -1
- package/dist/components/composed/commerce/index.js +580 -486
- package/dist/components/composed/commerce/index.js.map +1 -1
- package/dist/components/composed/commerce/order-status/order-status.d.ts.map +1 -1
- package/dist/components/composed/commerce/order-status/types.d.ts +2 -0
- package/dist/components/composed/commerce/order-status/types.d.ts.map +1 -1
- package/dist/components/composed/commerce/payment-method/payment-method.d.ts.map +1 -1
- package/dist/components/composed/commerce/voucher-entry/types.d.ts +3 -0
- package/dist/components/composed/commerce/voucher-entry/types.d.ts.map +1 -1
- package/dist/components/composed/commerce/voucher-entry/voucher-entry.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/booking-receipt/booking-receipt.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/index.cjs +1 -1
- package/dist/components/composed/dark-surfaces/index.cjs.map +1 -1
- package/dist/components/composed/dark-surfaces/index.js +23 -16
- package/dist/components/composed/dark-surfaces/index.js.map +1 -1
- package/dist/components/composed/dark-surfaces/order-items/order-items.d.ts.map +1 -1
- package/dist/components/composed/dark-surfaces/order-items/types.d.ts +3 -1
- package/dist/components/composed/dark-surfaces/order-items/types.d.ts.map +1 -1
- package/dist/components/composed/data-display/index.cjs +1 -1
- package/dist/components/composed/data-display/index.cjs.map +1 -1
- package/dist/components/composed/data-display/index.js +18 -17
- package/dist/components/composed/data-display/index.js.map +1 -1
- package/dist/components/composed/data-display/invoice-mini/invoice-mini.d.ts.map +1 -1
- package/dist/components/composed/navigation/breadcrumb-progress/breadcrumb-progress.d.ts.map +1 -1
- package/dist/components/composed/navigation/index.cjs +1 -1
- package/dist/components/composed/navigation/index.cjs.map +1 -1
- package/dist/components/composed/navigation/index.js +90 -72
- package/dist/components/composed/navigation/index.js.map +1 -1
- package/dist/components/composed/navigation/kanban-board/kanban-board.d.ts.map +1 -1
- package/dist/components/composed/navigation/kanban-board/types.d.ts +5 -1
- package/dist/components/composed/navigation/kanban-board/types.d.ts.map +1 -1
- package/dist/components/composed/onboarding/index.cjs +1 -1
- package/dist/components/composed/onboarding/index.cjs.map +1 -1
- package/dist/components/composed/onboarding/index.js +3 -3
- package/dist/components/composed/timelines/index.cjs +1 -1
- package/dist/components/composed/timelines/index.cjs.map +1 -1
- package/dist/components/composed/timelines/index.js +6 -6
- package/dist/components/composed/timelines/index.js.map +1 -1
- package/dist/components/features/activities/activities-feed.d.ts.map +1 -1
- package/dist/components/features/activities/activities.types.d.ts +2 -1
- package/dist/components/features/activities/activities.types.d.ts.map +1 -1
- package/dist/components/features/activities/index.cjs +1 -1
- package/dist/components/features/activities/index.cjs.map +1 -1
- package/dist/components/features/activities/index.js +286 -301
- package/dist/components/features/activities/index.js.map +1 -1
- package/dist/components/features/activities/partials/activities-feed-card.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-headline.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-resource-tag.d.ts.map +1 -1
- package/dist/components/features/activities/partials/activity-row.d.ts.map +1 -1
- package/dist/components/features/ai-chat/ai-chat.d.ts +2 -1
- package/dist/components/features/ai-chat/ai-chat.d.ts.map +1 -1
- package/dist/components/features/ai-chat/index.cjs +2 -2
- package/dist/components/features/ai-chat/index.cjs.map +1 -1
- package/dist/components/features/ai-chat/index.js +16 -14
- package/dist/components/features/ai-chat/index.js.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +2 -1
- package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +2 -1
- package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +2 -1
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +2 -1
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts.map +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +2 -1
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts.map +1 -1
- package/dist/components/features/card/card.types.d.ts +2 -0
- package/dist/components/features/card/card.types.d.ts.map +1 -1
- package/dist/components/features/card/index.cjs +1 -1
- package/dist/components/features/card/index.cjs.map +1 -1
- package/dist/components/features/card/index.js +37 -43
- package/dist/components/features/card/index.js.map +1 -1
- package/dist/components/features/card/partials/default-shared-resource-partials.d.ts +2 -1
- package/dist/components/features/card/partials/default-shared-resource-partials.d.ts.map +1 -1
- package/dist/components/features/card/shared-resource-card.d.ts.map +1 -1
- package/dist/components/features/comments/comments-provider.d.ts +2 -1
- package/dist/components/features/comments/comments-provider.d.ts.map +1 -1
- package/dist/components/features/comments/comments.types.d.ts +6 -5
- package/dist/components/features/comments/comments.types.d.ts.map +1 -1
- package/dist/components/features/comments/index.cjs +1 -1
- package/dist/components/features/comments/index.js +2 -2
- package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +2 -1
- package/dist/components/features/comments/partials/comment-attachment-chip.d.ts.map +1 -1
- package/dist/components/features/comments/partials/comment-composer.d.ts.map +1 -1
- package/dist/components/features/comments/partials/comment-empty.d.ts +2 -1
- package/dist/components/features/comments/partials/comment-empty.d.ts.map +1 -1
- package/dist/components/features/comments/partials/comment-item.d.ts.map +1 -1
- package/dist/components/features/event-log/event-log.d.ts.map +1 -1
- package/dist/components/features/event-log/event-log.types.d.ts +2 -2
- package/dist/components/features/event-log/event-log.types.d.ts.map +1 -1
- package/dist/components/features/event-log/index.cjs +1 -1
- package/dist/components/features/event-log/index.cjs.map +1 -1
- package/dist/components/features/event-log/index.js +86 -86
- package/dist/components/features/event-log/index.js.map +1 -1
- package/dist/components/features/filters/facets/async-select-facet.d.ts +1 -1
- package/dist/components/features/filters/facets/async-select-facet.d.ts.map +1 -1
- package/dist/components/features/filters/filters.types.d.ts +7 -7
- package/dist/components/features/filters/filters.types.d.ts.map +1 -1
- package/dist/components/features/filters/hooks/use-async-options.d.ts.map +1 -1
- package/dist/components/features/filters/index.cjs +1 -1
- package/dist/components/features/filters/index.cjs.map +1 -1
- package/dist/components/features/filters/index.js +518 -495
- package/dist/components/features/filters/index.js.map +1 -1
- package/dist/components/features/filters/partials/async-filter-content.d.ts +1 -1
- package/dist/components/features/filters/partials/async-filter-content.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filter-pill.d.ts.map +1 -1
- package/dist/components/features/filters/partials/filters-button.d.ts.map +1 -1
- package/dist/components/features/global-search/global-search.d.ts +2 -1
- package/dist/components/features/global-search/global-search.d.ts.map +1 -1
- package/dist/components/features/global-search/index.cjs +1 -1
- package/dist/components/features/global-search/index.cjs.map +1 -1
- package/dist/components/features/global-search/index.js +291 -271
- package/dist/components/features/global-search/index.js.map +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts.map +1 -1
- package/dist/components/features/global-search/partials/global-search-input.d.ts.map +1 -1
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts.map +1 -1
- package/dist/components/features/global-search/partials/global-search-tabs.d.ts.map +1 -1
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/kanban/index.cjs +1 -1
- package/dist/components/features/kanban/index.cjs.map +1 -1
- package/dist/components/features/kanban/index.js +133 -124
- package/dist/components/features/kanban/index.js.map +1 -1
- package/dist/components/features/kanban/kanban-context.d.ts +1 -0
- package/dist/components/features/kanban/kanban-context.d.ts.map +1 -1
- package/dist/components/features/kanban/kanban.d.ts.map +1 -1
- package/dist/components/features/media-library/hooks/index.d.ts +2 -0
- package/dist/components/features/media-library/hooks/index.d.ts.map +1 -0
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +6 -0
- package/dist/components/features/media-library/hooks/use-media-library.d.ts.map +1 -0
- package/dist/components/features/media-library/index.cjs +2 -0
- package/dist/components/features/media-library/index.cjs.map +1 -0
- package/dist/components/features/media-library/index.d.ts +7 -0
- package/dist/components/features/media-library/index.d.ts.map +1 -0
- package/dist/components/features/media-library/index.js +1796 -0
- package/dist/components/features/media-library/index.js.map +1 -0
- package/dist/components/features/media-library/media-library.d.ts +4 -0
- package/dist/components/features/media-library/media-library.d.ts.map +1 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +120 -0
- package/dist/components/features/media-library/media-library.strings.d.ts.map +1 -0
- package/dist/components/features/media-library/media-library.types.d.ts +340 -0
- package/dist/components/features/media-library/media-library.types.d.ts.map +1 -0
- package/dist/components/features/media-library/media-resource-gallery.d.ts +3 -0
- package/dist/components/features/media-library/media-resource-gallery.d.ts.map +1 -0
- package/dist/components/features/media-library/partials/index.d.ts +2 -0
- package/dist/components/features/media-library/partials/index.d.ts.map +1 -0
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +11 -0
- package/dist/components/features/media-library/partials/media-library-partials.d.ts.map +1 -0
- package/dist/components/features/mentions/index.cjs +1 -1
- package/dist/components/features/mentions/index.js +1 -1
- package/dist/components/features/mentions/partials/mention-chip.d.ts.map +1 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts.map +1 -1
- package/dist/components/features/mentions/partials/mention-picker.d.ts.map +1 -1
- package/dist/components/features/mentions/utils/build-mention-html.d.ts +3 -3
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts.map +1 -1
- package/dist/components/features/overlays/drawer.d.ts.map +1 -1
- package/dist/components/features/overlays/index.cjs +1 -1
- package/dist/components/features/overlays/index.js +1 -1
- package/dist/components/features/overlays/overlays.types.d.ts +3 -1
- package/dist/components/features/overlays/overlays.types.d.ts.map +1 -1
- package/dist/components/features/products/components/index.d.ts +15 -0
- package/dist/components/features/products/components/index.d.ts.map +1 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +6 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts.map +1 -0
- package/dist/components/features/products/components/product-details-card.d.ts +6 -0
- package/dist/components/features/products/components/product-details-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +6 -0
- package/dist/components/features/products/components/product-operations-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +6 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts.map +1 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +6 -0
- package/dist/components/features/products/components/product-options-summary.d.ts.map +1 -0
- package/dist/components/features/products/components/product-overview.d.ts +6 -0
- package/dist/components/features/products/components/product-overview.d.ts.map +1 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +6 -0
- package/dist/components/features/products/components/product-policies-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +6 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +6 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +6 -0
- package/dist/components/features/products/components/product-structure-card.d.ts.map +1 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +6 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts.map +1 -0
- package/dist/components/features/products/components/product-variant-details.d.ts +6 -0
- package/dist/components/features/products/components/product-variant-details.d.ts.map +1 -0
- package/dist/components/features/products/components/product-variant-editor.d.ts +6 -0
- package/dist/components/features/products/components/product-variant-editor.d.ts.map +1 -0
- package/dist/components/features/products/components/product-variants-table.d.ts +6 -0
- package/dist/components/features/products/components/product-variants-table.d.ts.map +1 -0
- package/dist/components/features/products/index.cjs +2 -0
- package/dist/components/features/products/index.cjs.map +1 -0
- package/dist/components/features/products/index.d.ts +6 -0
- package/dist/components/features/products/index.d.ts.map +1 -0
- package/dist/components/features/products/index.js +1749 -0
- package/dist/components/features/products/index.js.map +1 -0
- package/dist/components/features/products/partials/index.d.ts +8 -0
- package/dist/components/features/products/partials/index.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-actions.d.ts +8 -0
- package/dist/components/features/products/partials/product-actions.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-empty-state.d.ts +8 -0
- package/dist/components/features/products/partials/product-empty-state.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-metric-tile.d.ts +5 -0
- package/dist/components/features/products/partials/product-metric-tile.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-rows.d.ts +25 -0
- package/dist/components/features/products/partials/product-rows.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-tone.d.ts +9 -0
- package/dist/components/features/products/partials/product-tone.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-values.d.ts +2 -0
- package/dist/components/features/products/partials/product-values.d.ts.map +1 -0
- package/dist/components/features/products/partials/product-variant-table-parts.d.ts +22 -0
- package/dist/components/features/products/partials/product-variant-table-parts.d.ts.map +1 -0
- package/dist/components/features/products/products.d.ts +7 -0
- package/dist/components/features/products/products.d.ts.map +1 -0
- package/dist/components/features/products/products.strings.d.ts +197 -0
- package/dist/components/features/products/products.strings.d.ts.map +1 -0
- package/dist/components/features/products/products.types.d.ts +372 -0
- package/dist/components/features/products/products.types.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/index.cjs +1 -1
- package/dist/components/features/rich-text-editor/index.js +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts.map +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts.map +1 -1
- package/dist/components/features/schema-form/hooks/index.d.ts +2 -0
- package/dist/components/features/schema-form/hooks/index.d.ts.map +1 -0
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +24 -0
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts.map +1 -0
- package/dist/components/features/schema-form/index.cjs +2 -0
- package/dist/components/features/schema-form/index.cjs.map +1 -0
- package/dist/components/features/schema-form/index.d.ts +6 -0
- package/dist/components/features/schema-form/index.d.ts.map +1 -0
- package/dist/components/features/schema-form/index.js +721 -0
- package/dist/components/features/schema-form/index.js.map +1 -0
- package/dist/components/features/schema-form/partials/index.d.ts +4 -0
- package/dist/components/features/schema-form/partials/index.d.ts.map +1 -0
- package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +16 -0
- package/dist/components/features/schema-form/partials/schema-form-actions.d.ts.map +1 -0
- package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +10 -0
- package/dist/components/features/schema-form/partials/schema-form-empty.d.ts.map +1 -0
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +11 -0
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts.map +1 -0
- package/dist/components/features/schema-form/schema-form.d.ts +6 -0
- package/dist/components/features/schema-form/schema-form.d.ts.map +1 -0
- package/dist/components/features/schema-form/schema-form.strings.d.ts +12 -0
- package/dist/components/features/schema-form/schema-form.strings.d.ts.map +1 -0
- package/dist/components/features/schema-form/schema-form.types.d.ts +198 -0
- package/dist/components/features/schema-form/schema-form.types.d.ts.map +1 -0
- package/dist/components/features/schema-form/schema-form.utils.d.ts +19 -0
- package/dist/components/features/schema-form/schema-form.utils.d.ts.map +1 -0
- package/dist/components/features/suggestions/hooks/use-suggestions.d.ts.map +1 -1
- package/dist/components/features/suggestions/index.cjs +1 -1
- package/dist/components/features/suggestions/index.cjs.map +1 -1
- package/dist/components/features/suggestions/index.js +64 -64
- package/dist/components/features/suggestions/index.js.map +1 -1
- package/dist/components/features/suggestions/suggestions.d.ts.map +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts.map +1 -1
- package/dist/components/features/sync/index.cjs +1 -1
- package/dist/components/features/sync/index.cjs.map +1 -1
- package/dist/components/features/sync/index.js +3 -3
- package/dist/components/layout/app-shell/app-shell.types.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.types.d.ts.map +1 -1
- package/dist/components/layout/app-shell/index.cjs +1 -1
- package/dist/components/layout/app-shell/index.js +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts.map +1 -1
- package/dist/components/layout/auth/auth-card.d.ts +3 -0
- package/dist/components/layout/auth/auth-card.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-footer-links.d.ts +3 -0
- package/dist/components/layout/auth/auth-footer-links.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-hooks.d.ts +5 -0
- package/dist/components/layout/auth/auth-hooks.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-method-switch.d.ts +5 -0
- package/dist/components/layout/auth/auth-method-switch.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-shell.d.ts +3 -0
- package/dist/components/layout/auth/auth-shell.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-social-providers.d.ts +4 -0
- package/dist/components/layout/auth/auth-social-providers.d.ts.map +1 -0
- package/dist/components/layout/auth/auth-split-panel.d.ts +3 -0
- package/dist/components/layout/auth/auth-split-panel.d.ts.map +1 -0
- package/dist/components/layout/auth/auth.strings.d.ts +22 -0
- package/dist/components/layout/auth/auth.strings.d.ts.map +1 -0
- package/dist/components/layout/auth/auth.types.d.ts +187 -0
- package/dist/components/layout/auth/auth.types.d.ts.map +1 -0
- package/dist/components/layout/auth/index.cjs +1 -0
- package/dist/components/layout/auth/index.d.ts +10 -0
- package/dist/components/layout/auth/index.d.ts.map +1 -0
- package/dist/components/layout/auth/index.js +2 -0
- package/dist/components/layout/header/index.cjs +1 -1
- package/dist/components/layout/header/index.js +1 -1
- package/dist/components/layout/header/partials/header-notifications.d.ts.map +1 -1
- package/dist/components/layout/hooks/index.cjs +1 -1
- package/dist/components/layout/hooks/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +8 -6
- package/dist/components/layout/page/index.cjs +1 -1
- package/dist/components/layout/page/index.js +1 -1
- package/dist/components/layout/sidebar/index.cjs +1 -1
- package/dist/components/layout/sidebar/index.js +2 -2
- package/dist/components/layout/workspace/index.cjs +1 -0
- package/dist/components/layout/workspace/index.d.ts +4 -0
- package/dist/components/layout/workspace/index.d.ts.map +1 -0
- package/dist/components/layout/workspace/index.js +2 -0
- package/dist/components/layout/workspace/workspace.d.ts +7 -0
- package/dist/components/layout/workspace/workspace.d.ts.map +1 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +19 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts.map +1 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +96 -0
- package/dist/components/layout/workspace/workspace.types.d.ts.map +1 -0
- package/dist/components/typography/heading.d.ts +2 -1
- package/dist/components/typography/heading.d.ts.map +1 -1
- package/dist/components/typography/index.cjs +1 -1
- package/dist/components/typography/index.js +2 -3
- package/dist/components/typography/text-link.d.ts.map +1 -1
- package/dist/components/typography/text.d.ts +2 -1
- package/dist/components/typography/text.d.ts.map +1 -1
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/ui-provider/index.cjs +1 -1
- package/dist/lib/ui-provider/index.js +1 -1
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.cjs.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +19 -16
- package/dist/lib/utils.js.map +1 -1
- package/dist/showcase/assets/AreaChart-DUe3j5uB.js +6 -0
- package/dist/showcase/assets/CompositeItem-DleE4kTc.js +1 -0
- package/dist/showcase/assets/CompositeRoot-BbNkvtLz.js +1 -0
- package/dist/showcase/assets/DialogTrigger-C0DB0bXw.js +1 -0
- package/dist/showcase/assets/FieldItemContext-CFTR-INZ.js +1 -0
- package/dist/showcase/assets/FormContext-lmjYAh4E.js +1 -0
- package/dist/showcase/assets/LabelableContext-CDv6gSfU.js +1 -0
- package/dist/showcase/assets/PreviewLayout-BG1B5TzA.js +1 -0
- package/dist/showcase/assets/RadioGroup-C-0MNAYY.js +1 -0
- package/dist/showcase/assets/Separator-KsPLUEno.js +1 -0
- package/dist/showcase/assets/ToolbarRootContext-AV8xAl2m.js +1 -0
- package/dist/showcase/assets/accordion-BWkuKg77.js +171 -0
- package/dist/showcase/assets/accordion-variants-CVT_62VO.js +1 -0
- package/dist/showcase/assets/action-menu-BOUHlGba.js +1 -0
- package/dist/showcase/assets/activities-DMDQje7Y.js +501 -0
- package/dist/showcase/assets/activities-feed-card-B8wpu4F3.js +1 -0
- package/dist/showcase/assets/activity-B-FxNryB.js +1 -0
- package/dist/showcase/assets/admin-CAhEeKt_.js +80 -0
- package/dist/showcase/assets/ai-UioEgJ90.js +41 -0
- package/dist/showcase/assets/ai-artifact-CUAlhcSX.js +2 -0
- package/dist/showcase/assets/ai-chat-C_w2PSmy.js +568 -0
- package/dist/showcase/assets/ai-elements-DmxqXR6H.js +387 -0
- package/dist/showcase/assets/ai-new-PG02TWQq.js +167 -0
- package/dist/showcase/assets/ai-tool-call-BaJx1rR4.js +1 -0
- package/dist/showcase/assets/alert-D7n-kQoO.js +93 -0
- package/dist/showcase/assets/alert-DIelf1qF.js +1 -0
- package/dist/showcase/assets/alert-TQCZEcn-.js +62 -0
- package/dist/showcase/assets/api-key-list-CSt4trYG.js +73 -0
- package/dist/showcase/assets/app-sidebar-DixqrLf2.js +1 -0
- package/dist/showcase/assets/arrow-down-CYh_aUsd.js +1 -0
- package/dist/showcase/assets/arrow-left-pYYsNkZE.js +1 -0
- package/dist/showcase/assets/arrow-right-Bf1Tl6D5.js +1 -0
- package/dist/showcase/assets/arrow-up-BhmQRZs9.js +1 -0
- package/dist/showcase/assets/arrow-up-right-CuAsO3-r.js +1 -0
- package/dist/showcase/assets/avatar-5EFTnHEG.js +1 -0
- package/dist/showcase/assets/avatar-DLpnivU0.js +57 -0
- package/dist/showcase/assets/badge-check-BRAVo7dA.js +1 -0
- package/dist/showcase/assets/badge-yFoRqbiq.js +28 -0
- package/dist/showcase/assets/bell-Dt3Nz2y2.js +1 -0
- package/dist/showcase/assets/bot-5Ro5Dayc.js +1 -0
- package/dist/showcase/assets/box-mt6TbZO6.js +1 -0
- package/dist/showcase/assets/brain-736080Wh.js +1 -0
- package/dist/showcase/assets/brand-4K8xsJ91.js +36 -0
- package/dist/showcase/assets/breadcrumb-CAlApdCw.js +1 -0
- package/dist/showcase/assets/breadcrumb-DHeGqoTD.js +52 -0
- package/dist/showcase/assets/breadcrumbs-D_lniGJs.js +1 -0
- package/dist/showcase/assets/briefcase-B_Uti-Iu.js +1 -0
- package/dist/showcase/assets/building-2-zgcwuzxP.js +1 -0
- package/dist/showcase/assets/button-PmqgeJKm.js +44 -0
- package/dist/showcase/assets/button-group-DAOmmujV.js +1 -0
- package/dist/showcase/assets/buttons-PtpR_v16.js +270 -0
- package/dist/showcase/assets/calendar-BiOGjB7a.js +1 -0
- package/dist/showcase/assets/calendar-C1A98cz0.js +16 -0
- package/dist/showcase/assets/calendar-DTgagmt7.js +1 -0
- package/dist/showcase/assets/calendar-days-pr8kXiTx.js +1 -0
- package/dist/showcase/assets/camera-CGKLOOep.js +1 -0
- package/dist/showcase/assets/card-CFIG8Dgg.js +1 -0
- package/dist/showcase/assets/card-CRd07Iun.js +188 -0
- package/dist/showcase/assets/card-primitives-YgCOqVDI.js +1 -0
- package/dist/showcase/assets/card-radio-group-Du6yaMZ-.js +1 -0
- package/dist/showcase/assets/cards-H7ywhTNM.js +328 -0
- package/dist/showcase/assets/carousel-Dwll5oz1.js +449 -0
- package/dist/showcase/assets/chart-BWnVf-d-.js +358 -0
- package/dist/showcase/assets/chart-column-DjAyOA-t.js +1 -0
- package/dist/showcase/assets/checkbox-fwuAAaUZ.js +1 -0
- package/dist/showcase/assets/chevron-down-CSn8HCwf.js +1 -0
- package/dist/showcase/assets/chevron-left-Ddj6-KOu.js +1 -0
- package/dist/showcase/assets/chevron-right-d-umkBru.js +1 -0
- package/dist/showcase/assets/chevron-up-CeFY6O0I.js +1 -0
- package/dist/showcase/assets/chevrons-up-down-Ck3rUZtc.js +1 -0
- package/dist/showcase/assets/circle-Dy08kACD.js +1 -0
- package/dist/showcase/assets/circle-alert-ysbx8rsZ.js +1 -0
- package/dist/showcase/assets/circle-check-TT7cFQrr.js +1 -0
- package/dist/showcase/assets/circle-check-big-4RnJfeaC.js +1 -0
- package/dist/showcase/assets/circle-dot-CvoDXS-W.js +1 -0
- package/dist/showcase/assets/circle-question-mark-Dbi-WTYN.js +1 -0
- package/dist/showcase/assets/circle-x-c5z6-eYV.js +1 -0
- package/dist/showcase/assets/clock-3-DDEsD4Tb.js +1 -0
- package/dist/showcase/assets/clock-DuBsP5t3.js +1 -0
- package/dist/showcase/assets/code-xml-SoYTMEdm.js +1 -0
- package/dist/showcase/assets/collapsible-Cv3oGVkH.js +27 -0
- package/dist/showcase/assets/collapsible-DagkA3To.js +1 -0
- package/dist/showcase/assets/combobox-CPC4a_MH.js +696 -0
- package/dist/showcase/assets/command-BtaMPVtf.js +45 -0
- package/dist/showcase/assets/command-C37Q471b.js +1 -0
- package/dist/showcase/assets/comment-composer-W0xfh_HP.js +1 -0
- package/dist/showcase/assets/comment-item-Ctcpx1GX.js +1 -0
- package/dist/showcase/assets/comments-BODDdRry.js +357 -0
- package/dist/showcase/assets/commerce-B9MICTY2.js +79 -0
- package/dist/showcase/assets/commerce-extras-DsgnTkBH.js +189 -0
- package/dist/showcase/assets/composite-B-19wwf9.js +1 -0
- package/dist/showcase/assets/contact-card-CqP3YxTq.js +65 -0
- package/dist/showcase/assets/content-container-x2tsQKwH.js +1 -0
- package/dist/showcase/assets/copyable-DH0w0i_h.js +96 -0
- package/dist/showcase/assets/course-card-qpC4JUUM.js +77 -0
- package/dist/showcase/assets/cpu-DjJeD_0Z.js +1 -0
- package/dist/showcase/assets/credit-card-CYgRtM77.js +1 -0
- package/dist/showcase/assets/currency-hguqIjWU.js +149 -0
- package/dist/showcase/assets/dark-surfaces-Cj34O9A0.js +90 -0
- package/dist/showcase/assets/database-BVwSMeGM.js +1 -0
- package/dist/showcase/assets/date-block-LCTDXG5-.js +1 -0
- package/dist/showcase/assets/date-picker-CbYq8wZ7.js +1 -0
- package/dist/showcase/assets/date-pickers-BaSX23MK.js +73 -0
- package/dist/showcase/assets/dense-info-kY1QmtaP.js +106 -0
- package/dist/showcase/assets/dialog-B85US9Ue.js +1 -0
- package/dist/showcase/assets/dialog-iIgfMvTJ.js +1 -0
- package/dist/showcase/assets/display-DTaQWVJp.js +403 -0
- package/dist/showcase/assets/dollar-sign-DlK6XF_v.js +1 -0
- package/dist/showcase/assets/download-B_EY5cGA.js +1 -0
- package/dist/showcase/assets/dropdown-menu-bPWrLPgm.js +1 -0
- package/dist/showcase/assets/dropzone-Bl7RO_Uk.js +1 -0
- package/dist/showcase/assets/earth-C7n2JAYm.js +1 -0
- package/dist/showcase/assets/ellipsis-ntuo3ejh.js +1 -0
- package/dist/showcase/assets/ellipsis-vertical-yH8S83bc.js +1 -0
- package/dist/showcase/assets/empty-CY8f7iFe.js +1 -0
- package/dist/showcase/assets/empty-item-Ct7uCr40.js +49 -0
- package/dist/showcase/assets/empty-state-DlO8SJi8.js +188 -0
- package/dist/showcase/assets/empty-state-IAAUTn6f.js +1 -0
- package/dist/showcase/assets/enhanced-activities-DLwShhof.js +361 -0
- package/dist/showcase/assets/enhanced-combobox-Cs_-wq9p.js +1 -0
- package/dist/showcase/assets/event-calendar-C4KlumlG.js +138 -0
- package/dist/showcase/assets/event-log-BvUU5Rj8.js +330 -0
- package/dist/showcase/assets/example-BIrQab7K.js +1 -0
- package/dist/showcase/assets/external-link-DuJlM_H4.js +1 -0
- package/dist/showcase/assets/eye-CnRPL_H8.js +1 -0
- package/dist/showcase/assets/feature-announcement-0dOcSH7F.js +34 -0
- package/dist/showcase/assets/file-Dc5UHkfE.js +1 -0
- package/dist/showcase/assets/file-text-D3AE37vP.js +1 -0
- package/dist/showcase/assets/filters-CsovNSxS.js +78 -0
- package/dist/showcase/assets/flag-CJJ43K4x.js +1 -0
- package/dist/showcase/assets/folder-open-Dp0sceCi.js +1 -0
- package/dist/showcase/assets/form-field-Cxm4APa9.js +1 -0
- package/dist/showcase/assets/form-sizing-DHUDpiPA.js +1 -0
- package/dist/showcase/assets/format-bDaUGCSP.js +1 -0
- package/dist/showcase/assets/format-metric-value-BTsvOjZQ.js +1 -0
- package/dist/showcase/assets/forms-BrVikK1p.js +862 -0
- package/dist/showcase/assets/frame-CkLEABTd.js +167 -0
- package/dist/showcase/assets/getPseudoElementBounds-Bznj386s.js +1 -0
- package/dist/showcase/assets/gift-Bx8IO1FQ.js +1 -0
- package/dist/showcase/assets/giftcard-cards-CZTXBjv0.js +85 -0
- package/dist/showcase/assets/git-branch-D9jt-u1q.js +1 -0
- package/dist/showcase/assets/global-search-C2R_3Pb3.js +215 -0
- package/dist/showcase/assets/global-search-D9XJ747r.js +1 -0
- package/dist/showcase/assets/globe-BJHI134i.js +1 -0
- package/dist/showcase/assets/gradient-card-CV8w2JG5.js +58 -0
- package/dist/showcase/assets/hash-CtBGoIvf.js +1 -0
- package/dist/showcase/assets/header-B3FSlVv4.js +1 -0
- package/dist/showcase/assets/header-notifications-3VH9lzzJ.js +1 -0
- package/dist/showcase/assets/heart-BWZYF4xJ.js +1 -0
- package/dist/showcase/assets/hero-CLDdwZDr.png +0 -0
- package/dist/showcase/assets/house-CAQOnHLO.js +1 -0
- package/dist/showcase/assets/icon-badge-CxvxB8Vd.js +1 -0
- package/dist/showcase/assets/image-Byz-p7hT.js +1 -0
- package/dist/showcase/assets/inbox-D4UE_W9O.js +1 -0
- package/dist/showcase/assets/index-ADfexGMA.css +2 -0
- package/dist/showcase/assets/index-Cz4UGUT2.js +10 -0
- package/dist/showcase/assets/index.esm-Ducg7a0P.js +1 -0
- package/dist/showcase/assets/inertValue-BVXUUuS4.js +1 -0
- package/dist/showcase/assets/info-DFu8OfxV.js +1 -0
- package/dist/showcase/assets/inline-stat-DqI70yoJ.js +1 -0
- package/dist/showcase/assets/input-BPDdWrB1.js +1 -0
- package/dist/showcase/assets/input-BzafMIDj.js +1 -0
- package/dist/showcase/assets/input-group-BYZYeQ7j.js +1 -0
- package/dist/showcase/assets/input-group-YIWmmLJ6.js +47 -0
- package/dist/showcase/assets/inputs-DjzrYJdb.js +49 -0
- package/dist/showcase/assets/invoice-header-B00JrPAb.js +36 -0
- package/dist/showcase/assets/invoice-items-CUt5D3Wz.js +36 -0
- package/dist/showcase/assets/invoice-mini-CRoaQ9g9.js +14 -0
- package/dist/showcase/assets/invoice-table-DYNnDTQl.js +30 -0
- package/dist/showcase/assets/isSameDay-DVNkwpSk.js +1 -0
- package/dist/showcase/assets/isToday-DZ1HTCty.js +1 -0
- package/dist/showcase/assets/italic-AbetEb3d.js +1 -0
- package/dist/showcase/assets/item-BGA6_5Zh.js +134 -0
- package/dist/showcase/assets/item-BJOYyqeO.js +1 -0
- package/dist/showcase/assets/item-CbiuwbAN.js +1 -0
- package/dist/showcase/assets/kanban-Br-Yz002.js +186 -0
- package/dist/showcase/assets/label-BlCKlLE-.js +1 -0
- package/dist/showcase/assets/languages-CKcUvHnt.js +1 -0
- package/dist/showcase/assets/layers-CakZLRSD.js +1 -0
- package/dist/showcase/assets/layout-app-shell-ukDXqPxC.js +608 -0
- package/dist/showcase/assets/layout-auth-BFza65L3.js +754 -0
- package/dist/showcase/assets/layout-containers-v1jG_b7r.js +101 -0
- package/dist/showcase/assets/layout-header-CqBf9wjY.js +170 -0
- package/dist/showcase/assets/layout-page-WJcljCac.js +122 -0
- package/dist/showcase/assets/layout-sidebar-DL6TLuQC.js +224 -0
- package/dist/showcase/assets/layout-users-B8qpsvV9.js +117 -0
- package/dist/showcase/assets/layout-workspace-iOKZ4-9K.js +183 -0
- package/dist/showcase/assets/lock-Dn4-vUBz.js +1 -0
- package/dist/showcase/assets/lock-keyhole-M6KZ_7RC.js +1 -0
- package/dist/showcase/assets/mail-check-DXqQwivW.js +1 -0
- package/dist/showcase/assets/mail-w1nhszbW.js +1 -0
- package/dist/showcase/assets/map-CquesVXo.js +124 -0
- package/dist/showcase/assets/map-pin-DUl-Lt6t.js +1 -0
- package/dist/showcase/assets/media-library-CCJBQRPu.js +695 -0
- package/dist/showcase/assets/mention-inline-suggestions-DyW6IwL8.js +1 -0
- package/dist/showcase/assets/mentions-Ea4pSJqG.js +138 -0
- package/dist/showcase/assets/menus-CJjtE4fD.js +89 -0
- package/dist/showcase/assets/message-square-B0RnrJV6.js +1 -0
- package/dist/showcase/assets/metadata-list-DkN9yfTj.js +288 -0
- package/dist/showcase/assets/metadata-list-fm8e58ID.js +1 -0
- package/dist/showcase/assets/metric-bar-BydkmggA.js +1 -0
- package/dist/showcase/assets/metric-grid-BKjrYpt9.js +1 -0
- package/dist/showcase/assets/metric-guQTLTAa.js +1 -0
- package/dist/showcase/assets/metric-trend-chip-DehaJ3nC.js +1 -0
- package/dist/showcase/assets/metrics-analytics-bar-YjwFT4ae.js +44 -0
- package/dist/showcase/assets/metrics-analytics-cards-B6DspERM.js +50 -0
- package/dist/showcase/assets/metrics-comparison-Nru5wypZ.js +76 -0
- package/dist/showcase/assets/metrics-heatmap-CcumN0Or.js +27 -0
- package/dist/showcase/assets/metrics-inline-badge-2WB7w9mz.js +17 -0
- package/dist/showcase/assets/metrics-kpi-row-jU3hsB3C.js +31 -0
- package/dist/showcase/assets/metrics-micro-grid-CaJ99RXL.js +42 -0
- package/dist/showcase/assets/metrics-overview-Sa7z6jct.js +192 -0
- package/dist/showcase/assets/metrics-stat-cards-PLvMkA0M.js +54 -0
- package/dist/showcase/assets/minus-OyRBql2C.js +1 -0
- package/dist/showcase/assets/money-display-23DKz-jK.js +1 -0
- package/dist/showcase/assets/month-year-picker-oEoInnKW.js +1 -0
- package/dist/showcase/assets/navigation-Ds60FMAs.js +230 -0
- package/dist/showcase/assets/navigation-Dufz6qnF.js +90 -0
- package/dist/showcase/assets/navigation-extras-DKufT82I.js +43 -0
- package/dist/showcase/assets/onboarding-checklist-DSkS2ktA.js +119 -0
- package/dist/showcase/assets/overlays-BptoR4sm.js +408 -0
- package/dist/showcase/assets/overlays-CVGJ_FEg.js +88 -0
- package/dist/showcase/assets/package-0ZgMoFm1.js +1 -0
- package/dist/showcase/assets/package-check-CT0dhSM8.js +1 -0
- package/dist/showcase/assets/page-action-button-DrHJKFbp.js +1 -0
- package/dist/showcase/assets/page-header-CikNDnqI.js +1 -0
- package/dist/showcase/assets/pagination-CxuA2zkE.js +42 -0
- package/dist/showcase/assets/pagination-DsPLs2Tx.js +1 -0
- package/dist/showcase/assets/paperclip-CDMZ_JAo.js +1 -0
- package/dist/showcase/assets/password-input-BVaUPw7a.js +1 -0
- package/dist/showcase/assets/pencil-BouoJ5x7.js +1 -0
- package/dist/showcase/assets/phone-DCNFH5yg.js +1 -0
- package/dist/showcase/assets/plus-DkHZm34I.js +1 -0
- package/dist/showcase/assets/popover-BSB11Qjp.js +1 -0
- package/dist/showcase/assets/popover-CECpX3MQ.js +1 -0
- package/dist/showcase/assets/popover-menu-CuA8fb7i.js +1 -0
- package/dist/showcase/assets/products-BJHNTW62.js +407 -0
- package/dist/showcase/assets/progress-DGvRQyPS.js +1 -0
- package/dist/showcase/assets/progress-tpxRVOkp.js +18 -0
- package/dist/showcase/assets/props-table-BR-KjRNe.js +1 -0
- package/dist/showcase/assets/props.generated-qdUud3iu.json +38611 -0
- package/dist/showcase/assets/quote-CN-Sodsj.js +1 -0
- package/dist/showcase/assets/receipt-T8B9lscp.js +1 -0
- package/dist/showcase/assets/receipt-text-CeBruM29.js +1 -0
- package/dist/showcase/assets/refresh-cw-DnxNcOMm.js +1 -0
- package/dist/showcase/assets/resolveAriaLabelledBy-B2ZzrlGb.js +1 -0
- package/dist/showcase/assets/resolveValueLabel-CGuVi0Dj.js +1 -0
- package/dist/showcase/assets/rich-text-editor-Bha0lSKT.js +143 -0
- package/dist/showcase/assets/rich-text-editor-NeOPmoZF.js +124 -0
- package/dist/showcase/assets/rotate-ccw-7aUlKQpX.js +1 -0
- package/dist/showcase/assets/save-AT8JlA8E.js +1 -0
- package/dist/showcase/assets/schema-form-BpkVygoO.js +325 -0
- package/dist/showcase/assets/scroll-area-B0wmaMAD.js +32 -0
- package/dist/showcase/assets/scroll-area-CgXTHlpJ.js +1 -0
- package/dist/showcase/assets/select-BG_Iad8E.js +1 -0
- package/dist/showcase/assets/select-t6dryszf.js +1 -0
- package/dist/showcase/assets/send-BzGRF4t-.js +1 -0
- package/dist/showcase/assets/separator-BjGdXNcn.js +1 -0
- package/dist/showcase/assets/separator-DbiGagrP.js +28 -0
- package/dist/showcase/assets/serializeValue-B_EucO5O.js +1 -0
- package/dist/showcase/assets/settings-BSRT_96A.js +1 -0
- package/dist/showcase/assets/sheet-CEuKOBxr.js +1 -0
- package/dist/showcase/assets/shield-CcR2q5u_.js +1 -0
- package/dist/showcase/assets/shield-alert-DhbgXV1X.js +1 -0
- package/dist/showcase/assets/shield-check-CRbBJXw2.js +1 -0
- package/dist/showcase/assets/shopping-bag-B5BzpLV5.js +1 -0
- package/dist/showcase/assets/sidebar--2nHUTn3.js +1 -0
- package/dist/showcase/assets/sidebar.context-BCb20eIt.js +1 -0
- package/dist/showcase/assets/skeleton-BeVdks4r.js +1 -0
- package/dist/showcase/assets/skeleton-DijlT51X.js +29 -0
- package/dist/showcase/assets/slider-Cp4m3NTK.js +1 -0
- package/dist/showcase/assets/sliders-horizontal-C8RwUn0S.js +1 -0
- package/dist/showcase/assets/smart-card-B4P_C0nk.js +1 -0
- package/dist/showcase/assets/sonner-CLYYRmEW.js +22 -0
- package/dist/showcase/assets/sortable.esm-CoekVJlU.js +5 -0
- package/dist/showcase/assets/sparkles-DFJmoAFP.js +1 -0
- package/dist/showcase/assets/spinner-CeQHboSs.js +49 -0
- package/dist/showcase/assets/spinner-DMKANM9S.js +30 -0
- package/dist/showcase/assets/spinner-WEI7TMVk.js +1 -0
- package/dist/showcase/assets/square-pen-CfvmmXYo.js +1 -0
- package/dist/showcase/assets/stacked-avatars-CcCnnUrA.js +1 -0
- package/dist/showcase/assets/star-DK5onZCp.js +1 -0
- package/dist/showcase/assets/startOfDay-BuizEr24.js +1 -0
- package/dist/showcase/assets/styles-BStlbPXe.js +1 -0
- package/dist/showcase/assets/suggestions-Cd_XUmz3.js +126 -0
- package/dist/showcase/assets/switch-5f1vwEZ7.js +1 -0
- package/dist/showcase/assets/switch-arjWj-n7.js +1 -0
- package/dist/showcase/assets/sync-DorQdMfx.js +107 -0
- package/dist/showcase/assets/table-ClYkDRAk.js +1 -0
- package/dist/showcase/assets/table-D9q0odD8.js +382 -0
- package/dist/showcase/assets/table-actions-UJbkGb44.js +1 -0
- package/dist/showcase/assets/tabs-BENBPFif.js +19 -0
- package/dist/showcase/assets/tabs-ePpje8sU.js +1 -0
- package/dist/showcase/assets/tags-input-DRlg3zQH.js +1 -0
- package/dist/showcase/assets/text-button-CQvP6Kic.js +1 -0
- package/dist/showcase/assets/text-link-DT-nOORV.js +1 -0
- package/dist/showcase/assets/textarea-BGHGV17m.js +1 -0
- package/dist/showcase/assets/textarea-pstF1OBP.js +1 -0
- package/dist/showcase/assets/timelines-D8y-IyxW.js +200 -0
- package/dist/showcase/assets/toggle-group-BVyFo04r.js +1 -0
- package/dist/showcase/assets/toggles-dhLpAHSR.js +71 -0
- package/dist/showcase/assets/toggles-group-BJ5Jio2p.js +32 -0
- package/dist/showcase/assets/trash-2-OsaEm8cc.js +1 -0
- package/dist/showcase/assets/trending-up-HlQQXTth.js +1 -0
- package/dist/showcase/assets/truck-CvvBxBeB.js +1 -0
- package/dist/showcase/assets/typography-D_99bjSh.js +223 -0
- package/dist/showcase/assets/ui-badge-C1bu7wRu.js +28 -0
- package/dist/showcase/assets/ui-card-Ct1FFUxv.js +30 -0
- package/dist/showcase/assets/ui-table-Dxu9Jjq0.js +42 -0
- package/dist/showcase/assets/upload-tray-BeOBVU1z.js +138 -0
- package/dist/showcase/assets/use-form-field-state-Sbo6tfr9.js +1 -0
- package/dist/showcase/assets/use-layout-link-BK_oEoBg.js +1 -0
- package/dist/showcase/assets/useAnchoredPopupScrollLock-DLXArfPo.js +1 -0
- package/dist/showcase/assets/useAriaLabelledBy-etINba8U.js +1 -0
- package/dist/showcase/assets/useCollapsiblePanel-BNe9r1t_.js +1 -0
- package/dist/showcase/assets/useCompositeItem-CvG1CBEV.js +1 -0
- package/dist/showcase/assets/useCompositeListItem-CcY0U1bY.js +1 -0
- package/dist/showcase/assets/useLabelableId-Czdg4nY8.js +1 -0
- package/dist/showcase/assets/useOpenInteractionType-eyZ6twES.js +1 -0
- package/dist/showcase/assets/useRender-BAZlIYnj.js +1 -0
- package/dist/showcase/assets/useTriggerFocusGuards-C2I8g7TT.js +1 -0
- package/dist/showcase/assets/useValueChanged-Bz3WRSDy.js +1 -0
- package/dist/showcase/assets/user-Bqmz8M16.js +1 -0
- package/dist/showcase/assets/user-plus-MMxrhI4h.js +1 -0
- package/dist/showcase/assets/users-ERTaffcv.js +1 -0
- package/dist/showcase/assets/vendor-profile-BAwCE0wP.js +37 -0
- package/dist/showcase/assets/video-DJm0ubTE.js +1 -0
- package/dist/showcase/assets/wrench-gaXnvr_b.js +1 -0
- package/dist/showcase/assets/x-BqJnRkKw.js +1 -0
- package/dist/showcase/assets/zap-DHBVTfYZ.js +1 -0
- package/dist/showcase/index.html +2 -2
- package/dist/style.css +1 -1
- package/package.json +59 -2
- package/scripts/install-skill.mjs +5 -1
- package/src/App.css +9 -388
- package/dist/_shared/accordion-BnxO7Is4.js +0 -130
- package/dist/_shared/accordion-BnxO7Is4.js.map +0 -1
- package/dist/_shared/accordion-RIN0MjPz.cjs +0 -2
- package/dist/_shared/accordion-RIN0MjPz.cjs.map +0 -1
- package/dist/_shared/action-menu-IIO9KtJ2.js +0 -96
- package/dist/_shared/action-menu-IIO9KtJ2.js.map +0 -1
- package/dist/_shared/action-menu-RAyg3cvM.cjs +0 -2
- package/dist/_shared/action-menu-RAyg3cvM.cjs.map +0 -1
- package/dist/_shared/ai-artifact--MqIfP-8.js +0 -1068
- package/dist/_shared/ai-artifact--MqIfP-8.js.map +0 -1
- package/dist/_shared/ai-artifact-D1dBeEz1.cjs +0 -3
- package/dist/_shared/ai-artifact-D1dBeEz1.cjs.map +0 -1
- package/dist/_shared/alert-D3gRd7RK.cjs +0 -2
- package/dist/_shared/alert-D3gRd7RK.cjs.map +0 -1
- package/dist/_shared/alert-DQ-tV8b-.js +0 -48
- package/dist/_shared/alert-DQ-tV8b-.js.map +0 -1
- package/dist/_shared/app-shell-C4d7kCCd.cjs +0 -2
- package/dist/_shared/app-shell-C4d7kCCd.cjs.map +0 -1
- package/dist/_shared/app-shell-CKxcpPTc.js +0 -94
- package/dist/_shared/app-shell-CKxcpPTc.js.map +0 -1
- package/dist/_shared/badge-BK5VvEgg.js +0 -108
- package/dist/_shared/badge-BK5VvEgg.js.map +0 -1
- package/dist/_shared/badge-kS_XtN-z.cjs +0 -2
- package/dist/_shared/badge-kS_XtN-z.cjs.map +0 -1
- package/dist/_shared/button-LZWDn-aU.cjs +0 -2
- package/dist/_shared/button-LZWDn-aU.cjs.map +0 -1
- package/dist/_shared/button-cnkCF8q8.js +0 -177
- package/dist/_shared/button-cnkCF8q8.js.map +0 -1
- package/dist/_shared/buttons-DHV2eZAf.cjs +0 -2
- package/dist/_shared/buttons-DHV2eZAf.cjs.map +0 -1
- package/dist/_shared/buttons-ehfMSkwP.js +0 -143
- package/dist/_shared/buttons-ehfMSkwP.js.map +0 -1
- package/dist/_shared/card-radio-group-Bf03M6c5.js +0 -158
- package/dist/_shared/card-radio-group-Bf03M6c5.js.map +0 -1
- package/dist/_shared/card-radio-group-SqPUL0Je.cjs +0 -2
- package/dist/_shared/card-radio-group-SqPUL0Je.cjs.map +0 -1
- package/dist/_shared/combobox-Cvs70ic4.js +0 -808
- package/dist/_shared/combobox-Cvs70ic4.js.map +0 -1
- package/dist/_shared/combobox-Dos9YWjk.cjs +0 -2
- package/dist/_shared/combobox-Dos9YWjk.cjs.map +0 -1
- package/dist/_shared/comments-DD2aeZVz.js +0 -946
- package/dist/_shared/comments-DD2aeZVz.js.map +0 -1
- package/dist/_shared/comments-DzwU4sNE.cjs +0 -2
- package/dist/_shared/comments-DzwU4sNE.cjs.map +0 -1
- package/dist/_shared/copyable-D7WhgEzJ.js +0 -38
- package/dist/_shared/copyable-D7WhgEzJ.js.map +0 -1
- package/dist/_shared/copyable-DDjT505-.cjs +0 -2
- package/dist/_shared/copyable-DDjT505-.cjs.map +0 -1
- package/dist/_shared/date-picker-3G3C-sIq.cjs +0 -2
- package/dist/_shared/date-picker-3G3C-sIq.cjs.map +0 -1
- package/dist/_shared/date-picker-7yuMHPYs.js +0 -1362
- package/dist/_shared/date-picker-7yuMHPYs.js.map +0 -1
- package/dist/_shared/date-pickers-B_VUgjvY.cjs +0 -2
- package/dist/_shared/date-pickers-B_VUgjvY.cjs.map +0 -1
- package/dist/_shared/date-pickers-DZXi0di0.js +0 -330
- package/dist/_shared/date-pickers-DZXi0di0.js.map +0 -1
- package/dist/_shared/display-Cuj4td-V.js +0 -1237
- package/dist/_shared/display-Cuj4td-V.js.map +0 -1
- package/dist/_shared/display-D2q93jiS.cjs +0 -8
- package/dist/_shared/display-D2q93jiS.cjs.map +0 -1
- package/dist/_shared/form-field-BNuCBym1.js +0 -319
- package/dist/_shared/form-field-BNuCBym1.js.map +0 -1
- package/dist/_shared/form-field-C4fQYsqv.cjs +0 -2
- package/dist/_shared/form-field-C4fQYsqv.cjs.map +0 -1
- package/dist/_shared/forms-BV4fHeRx.cjs +0 -2
- package/dist/_shared/forms-BV4fHeRx.cjs.map +0 -1
- package/dist/_shared/forms-DjAdYxme.js +0 -3378
- package/dist/_shared/forms-DjAdYxme.js.map +0 -1
- package/dist/_shared/header-D4Oz-mCv.cjs +0 -2
- package/dist/_shared/header-D4Oz-mCv.cjs.map +0 -1
- package/dist/_shared/header-X5DZ8vmO.js +0 -360
- package/dist/_shared/header-X5DZ8vmO.js.map +0 -1
- package/dist/_shared/heading-C7mNh03X.cjs +0 -2
- package/dist/_shared/heading-C7mNh03X.cjs.map +0 -1
- package/dist/_shared/heading-CrNpYcUr.js +0 -39
- package/dist/_shared/heading-CrNpYcUr.js.map +0 -1
- package/dist/_shared/hooks-CKXPg30g.js +0 -118
- package/dist/_shared/hooks-CKXPg30g.js.map +0 -1
- package/dist/_shared/hooks-CTiEImZp.cjs +0 -2
- package/dist/_shared/hooks-CTiEImZp.cjs.map +0 -1
- package/dist/_shared/input-Cw2uICc1.cjs +0 -2
- package/dist/_shared/input-Cw2uICc1.cjs.map +0 -1
- package/dist/_shared/input-DJo8d1Rr.js +0 -182
- package/dist/_shared/input-DJo8d1Rr.js.map +0 -1
- package/dist/_shared/item-BxlP5TO3.js +0 -224
- package/dist/_shared/item-BxlP5TO3.js.map +0 -1
- package/dist/_shared/item-X18HIqR7.cjs +0 -2
- package/dist/_shared/item-X18HIqR7.cjs.map +0 -1
- package/dist/_shared/mentions-DE9aDOMu.cjs +0 -2
- package/dist/_shared/mentions-DE9aDOMu.cjs.map +0 -1
- package/dist/_shared/mentions-DjjYmMLc.js +0 -493
- package/dist/_shared/mentions-DjjYmMLc.js.map +0 -1
- package/dist/_shared/metadata-C5MSNo7y.js +0 -236
- package/dist/_shared/metadata-C5MSNo7y.js.map +0 -1
- package/dist/_shared/metadata-Cw3Kj2Ug.cjs +0 -2
- package/dist/_shared/metadata-Cw3Kj2Ug.cjs.map +0 -1
- package/dist/_shared/money-display-B7AKxxNt.js +0 -198
- package/dist/_shared/money-display-B7AKxxNt.js.map +0 -1
- package/dist/_shared/money-display-E22wbM21.cjs +0 -2
- package/dist/_shared/money-display-E22wbM21.cjs.map +0 -1
- package/dist/_shared/navigation-B9VAXqLL.cjs +0 -2
- package/dist/_shared/navigation-B9VAXqLL.cjs.map +0 -1
- package/dist/_shared/navigation-CxoJVgfo.js +0 -420
- package/dist/_shared/navigation-CxoJVgfo.js.map +0 -1
- package/dist/_shared/overlays-C-T8RnJz.cjs +0 -2
- package/dist/_shared/overlays-C-T8RnJz.cjs.map +0 -1
- package/dist/_shared/overlays-DfRsQzD3.js +0 -633
- package/dist/_shared/overlays-DfRsQzD3.js.map +0 -1
- package/dist/_shared/page-C4jEULwi.js +0 -263
- package/dist/_shared/page-C4jEULwi.js.map +0 -1
- package/dist/_shared/page-DX3pA_tJ.cjs +0 -2
- package/dist/_shared/page-DX3pA_tJ.cjs.map +0 -1
- package/dist/_shared/popover-menu-CVAr985u.js +0 -95
- package/dist/_shared/popover-menu-CVAr985u.js.map +0 -1
- package/dist/_shared/popover-menu-Cq-LnAMh.cjs +0 -2
- package/dist/_shared/popover-menu-Cq-LnAMh.cjs.map +0 -1
- package/dist/_shared/rich-text-editor-C3gVBm-v.cjs +0 -2
- package/dist/_shared/rich-text-editor-C3gVBm-v.cjs.map +0 -1
- package/dist/_shared/rich-text-editor-Cylb-lkv.js +0 -616
- package/dist/_shared/rich-text-editor-Cylb-lkv.js.map +0 -1
- package/dist/_shared/sidebar-BeWLjIRR.js +0 -537
- package/dist/_shared/sidebar-BeWLjIRR.js.map +0 -1
- package/dist/_shared/sidebar-DzzdJ2xk.cjs +0 -2
- package/dist/_shared/sidebar-DzzdJ2xk.cjs.map +0 -1
- package/dist/_shared/smart-card-DL7esK_y.cjs +0 -2
- package/dist/_shared/smart-card-DL7esK_y.cjs.map +0 -1
- package/dist/_shared/smart-card-eBfUvQ9r.js +0 -360
- package/dist/_shared/smart-card-eBfUvQ9r.js.map +0 -1
- package/dist/_shared/spinner-Bvjs1ybK.cjs +0 -2
- package/dist/_shared/spinner-Bvjs1ybK.cjs.map +0 -1
- package/dist/_shared/spinner-XcfVYbbp.js +0 -67
- package/dist/_shared/spinner-XcfVYbbp.js.map +0 -1
- package/dist/_shared/text-DzKt9cyb.cjs +0 -2
- package/dist/_shared/text-DzKt9cyb.cjs.map +0 -1
- package/dist/_shared/text-qsEg5GdP.js +0 -74
- package/dist/_shared/text-qsEg5GdP.js.map +0 -1
- package/dist/_shared/textarea-BAKapsLQ.cjs +0 -2
- package/dist/_shared/textarea-BAKapsLQ.cjs.map +0 -1
- package/dist/_shared/textarea-Bfv1KxBm.js +0 -119
- package/dist/_shared/textarea-Bfv1KxBm.js.map +0 -1
- package/dist/_shared/typography-4CSyoCj9.js +0 -102
- package/dist/_shared/typography-4CSyoCj9.js.map +0 -1
- package/dist/_shared/typography-DKn7P4wX.cjs +0 -2
- package/dist/_shared/typography-DKn7P4wX.cjs.map +0 -1
- package/dist/_shared/ui-provider-CQJ1glwN.js +0 -85
- package/dist/_shared/ui-provider-CQJ1glwN.js.map +0 -1
- package/dist/_shared/ui-provider-RIYE7O_V.cjs +0 -2
- package/dist/_shared/ui-provider-RIYE7O_V.cjs.map +0 -1
- package/dist/components/base/table/index.cjs.map +0 -1
- package/dist/components/base/table/index.js.map +0 -1
- package/dist/showcase/assets/AreaChart-CzBEYPbz.js +0 -6
- package/dist/showcase/assets/CompositeItem-C-DIOBdJ.js +0 -1
- package/dist/showcase/assets/CompositeRoot-Ce4ORgG2.js +0 -1
- package/dist/showcase/assets/DialogTrigger-DWvMs7dp.js +0 -1
- package/dist/showcase/assets/FormContext-BeC1MJpT.js +0 -1
- package/dist/showcase/assets/PreviewLayout-N1PTTyZK.js +0 -1
- package/dist/showcase/assets/RadioGroup-DAWaa26D.js +0 -1
- package/dist/showcase/assets/Separator-guDkmky0.js +0 -1
- package/dist/showcase/assets/ToolbarRootContext-BJ7hWga8.js +0 -1
- package/dist/showcase/assets/accordion-CiM9WhkT.js +0 -172
- package/dist/showcase/assets/accordion-variants-C_sHrQ7C.js +0 -1
- package/dist/showcase/assets/action-menu-mlWlGE5P.js +0 -1
- package/dist/showcase/assets/activities-YWR4wh4f.js +0 -501
- package/dist/showcase/assets/activities-feed-card-Cglnf5as.js +0 -1
- package/dist/showcase/assets/admin-BtOtzPd4.js +0 -80
- package/dist/showcase/assets/ai-8iNe0R1M.js +0 -41
- package/dist/showcase/assets/ai-artifact-CQL5krnJ.js +0 -2
- package/dist/showcase/assets/ai-chat-BzCdOOc6.js +0 -568
- package/dist/showcase/assets/ai-elements-CBHy2xWU.js +0 -379
- package/dist/showcase/assets/ai-new-CgL5NeVs.js +0 -167
- package/dist/showcase/assets/ai-tool-call-D9AsaWJF.js +0 -1
- package/dist/showcase/assets/alert-B2BuF4vZ.js +0 -59
- package/dist/showcase/assets/alert-BkVaTONJ.js +0 -1
- package/dist/showcase/assets/api-key-list-C-_59dli.js +0 -73
- package/dist/showcase/assets/app-sidebar-BdOu5rVn.js +0 -1
- package/dist/showcase/assets/arrow-down-BpVaq9-H.js +0 -1
- package/dist/showcase/assets/arrow-left-C40rxfqj.js +0 -1
- package/dist/showcase/assets/arrow-right-BclouSfP.js +0 -1
- package/dist/showcase/assets/arrow-up-BpWEnkdX.js +0 -1
- package/dist/showcase/assets/arrow-up-right-Z5sMa1HH.js +0 -1
- package/dist/showcase/assets/avatar-CDNhh3rv.js +0 -57
- package/dist/showcase/assets/avatar-QBwg3fvR.js +0 -1
- package/dist/showcase/assets/badge-check-DXDQ3SaL.js +0 -1
- package/dist/showcase/assets/badge-tAdYt--9.js +0 -28
- package/dist/showcase/assets/bell-CVEeEWw4.js +0 -1
- package/dist/showcase/assets/bot-Bcx5mNAQ.js +0 -1
- package/dist/showcase/assets/box-Dgy2Xc70.js +0 -1
- package/dist/showcase/assets/brain-DsoOsd7m.js +0 -1
- package/dist/showcase/assets/brand-DAyuXNUz.js +0 -40
- package/dist/showcase/assets/breadcrumb-CC4Z8eMY.js +0 -1
- package/dist/showcase/assets/breadcrumb-DCbAzeMs.js +0 -52
- package/dist/showcase/assets/breadcrumbs-DGZMpIoQ.js +0 -1
- package/dist/showcase/assets/briefcase-2uLXCvAZ.js +0 -1
- package/dist/showcase/assets/button-DhQ6rMPU.js +0 -44
- package/dist/showcase/assets/button-group-Ce9vnZ1H.js +0 -1
- package/dist/showcase/assets/buttons-CHja0LUL.js +0 -270
- package/dist/showcase/assets/calendar-BbiK8AMZ.js +0 -16
- package/dist/showcase/assets/calendar-BhZpIjCo.js +0 -1
- package/dist/showcase/assets/calendar-oKaDsUIy.js +0 -1
- package/dist/showcase/assets/card-DoU1VD79.js +0 -1
- package/dist/showcase/assets/cards-3OgH8m3F.js +0 -328
- package/dist/showcase/assets/chart-column-6Tn3WAT9.js +0 -1
- package/dist/showcase/assets/chevron-down-x7TQsvYY.js +0 -1
- package/dist/showcase/assets/chevron-left-CglzJgA2.js +0 -1
- package/dist/showcase/assets/chevron-right-CDDMIkYP.js +0 -1
- package/dist/showcase/assets/chevron-up-Dc3aAaGH.js +0 -1
- package/dist/showcase/assets/chevrons-up-down-DJNnSBAj.js +0 -1
- package/dist/showcase/assets/circle-BBmNFtO8.js +0 -1
- package/dist/showcase/assets/circle-alert-DJevf3tT.js +0 -1
- package/dist/showcase/assets/circle-check-BCxORlAM.js +0 -1
- package/dist/showcase/assets/circle-check-big-tiuK2w0-.js +0 -1
- package/dist/showcase/assets/circle-dot-BEVVQjgN.js +0 -1
- package/dist/showcase/assets/circle-question-mark-BQrUUiKD.js +0 -1
- package/dist/showcase/assets/circle-x-CoV_AUtZ.js +0 -1
- package/dist/showcase/assets/clock-Bn2R4aDX.js +0 -1
- package/dist/showcase/assets/code-xml-BVYp_JDX.js +0 -1
- package/dist/showcase/assets/collapsible-Co2Y739_.js +0 -27
- package/dist/showcase/assets/collapsible-DPbftgrO.js +0 -1
- package/dist/showcase/assets/combobox-Cm4__LnJ.js +0 -622
- package/dist/showcase/assets/command-DQFIxPN9.js +0 -45
- package/dist/showcase/assets/command-KNncGgZW.js +0 -1
- package/dist/showcase/assets/comment-composer-DTJtqYGP.js +0 -1
- package/dist/showcase/assets/comment-item-DIEYMmV_.js +0 -1
- package/dist/showcase/assets/comments-B0BbDp-3.js +0 -357
- package/dist/showcase/assets/commerce-BOWBCLA-.js +0 -79
- package/dist/showcase/assets/commerce-extras-C6CWYfpC.js +0 -173
- package/dist/showcase/assets/composite-YicTVAO0.js +0 -1
- package/dist/showcase/assets/contact-card-DQPRIlnJ.js +0 -65
- package/dist/showcase/assets/content-container-CHXwWViz.js +0 -1
- package/dist/showcase/assets/copyable-CjTwco9O.js +0 -96
- package/dist/showcase/assets/course-card-CTQScd2C.js +0 -113
- package/dist/showcase/assets/cpu-D52NjUWq.js +0 -1
- package/dist/showcase/assets/credit-card-BoDfW0R8.js +0 -1
- package/dist/showcase/assets/currency-BPREbpDA.js +0 -149
- package/dist/showcase/assets/dark-surfaces-BCG45K2m.js +0 -90
- package/dist/showcase/assets/database-DeGR0hed.js +0 -1
- package/dist/showcase/assets/date-block-Bl1kXJrM.js +0 -1
- package/dist/showcase/assets/date-picker-BHbZa4ML.js +0 -1
- package/dist/showcase/assets/date-pickers-DumwUEXE.js +0 -110
- package/dist/showcase/assets/dense-info-DxfgBw9Z.js +0 -106
- package/dist/showcase/assets/dialog-BYHZvlL8.js +0 -1
- package/dist/showcase/assets/display-BXMGOjL3.js +0 -392
- package/dist/showcase/assets/dollar-sign-BipUTVXC.js +0 -1
- package/dist/showcase/assets/download-CxspQgIc.js +0 -1
- package/dist/showcase/assets/dropdown-menu-Q1BV3wPP.js +0 -1
- package/dist/showcase/assets/dropzone-OivkuTPF.js +0 -1
- package/dist/showcase/assets/ellipsis-Bn-XgoA7.js +0 -1
- package/dist/showcase/assets/ellipsis-vertical-Bcl9HX9k.js +0 -1
- package/dist/showcase/assets/empty-CcafLcw-.js +0 -1
- package/dist/showcase/assets/empty-item-CiJeS8ZV.js +0 -49
- package/dist/showcase/assets/empty-state-B1RYYjUP.js +0 -188
- package/dist/showcase/assets/enhanced-activities-IB811DS6.js +0 -361
- package/dist/showcase/assets/event-calendar-C2VCfcUz.js +0 -138
- package/dist/showcase/assets/event-log-ckmsCPmG.js +0 -330
- package/dist/showcase/assets/example-C6-_Sy6B.js +0 -1
- package/dist/showcase/assets/external-link-Bg-_8Uq7.js +0 -1
- package/dist/showcase/assets/eye-JVsUA85G.js +0 -1
- package/dist/showcase/assets/feature-announcement-C4aRXesF.js +0 -34
- package/dist/showcase/assets/file-4pOq58jl.js +0 -1
- package/dist/showcase/assets/file-text-BIi71mZ1.js +0 -1
- package/dist/showcase/assets/filters-CxrcnmLU.js +0 -78
- package/dist/showcase/assets/flag-DeiJmomk.js +0 -1
- package/dist/showcase/assets/folder-open-zMXBpVNs.js +0 -1
- package/dist/showcase/assets/form-sizing-B8jbL5tL.js +0 -1
- package/dist/showcase/assets/format-BG4laCmp.js +0 -1
- package/dist/showcase/assets/format-metric-value-B94EDo8X.js +0 -1
- package/dist/showcase/assets/forms-PsN5zTLx.js +0 -793
- package/dist/showcase/assets/getPseudoElementBounds-B7wr19E1.js +0 -1
- package/dist/showcase/assets/gift-CKFIh1Wh.js +0 -1
- package/dist/showcase/assets/giftcard-cards-BfOlIHmA.js +0 -85
- package/dist/showcase/assets/git-branch-BO9i8XkJ.js +0 -1
- package/dist/showcase/assets/global-search-CNmUraNa.js +0 -90
- package/dist/showcase/assets/global-search-DkJkQ0Vs.js +0 -1
- package/dist/showcase/assets/globe-47T22W56.js +0 -1
- package/dist/showcase/assets/gradient-card-CXSY29TZ.js +0 -58
- package/dist/showcase/assets/header-eZHN-s6P.js +0 -1
- package/dist/showcase/assets/header-notifications-Caa9i87J.js +0 -1
- package/dist/showcase/assets/heart-DjKkkUsX.js +0 -1
- package/dist/showcase/assets/house-DKxCiHyB.js +0 -1
- package/dist/showcase/assets/icon-badge-Bcm8TlJi.js +0 -1
- package/dist/showcase/assets/image-r-gMI33G.js +0 -1
- package/dist/showcase/assets/inbox-ZxSy1pgX.js +0 -1
- package/dist/showcase/assets/index-B8DVXCmf.js +0 -10
- package/dist/showcase/assets/index-DbLs6mcj.css +0 -2
- package/dist/showcase/assets/inertValue-i0cAMG-0.js +0 -1
- package/dist/showcase/assets/info-B1KV2DkO.js +0 -1
- package/dist/showcase/assets/inline-stat-D0sE-A4C.js +0 -1
- package/dist/showcase/assets/input-25epjsiD.js +0 -1
- package/dist/showcase/assets/input-CnwMt9Sr.js +0 -1
- package/dist/showcase/assets/input-group-DSKyV7we.js +0 -47
- package/dist/showcase/assets/input-group-x5eWeAZg.js +0 -1
- package/dist/showcase/assets/inputs-B2Maxr14.js +0 -49
- package/dist/showcase/assets/invoice-header-Gxl--yFu.js +0 -36
- package/dist/showcase/assets/invoice-items-BtoaGNjE.js +0 -36
- package/dist/showcase/assets/invoice-mini-DHFSZegy.js +0 -14
- package/dist/showcase/assets/invoice-table-6dmU_KrL.js +0 -30
- package/dist/showcase/assets/isSameDay-BrDHfKHm.js +0 -1
- package/dist/showcase/assets/isToday-VtoSc1IH.js +0 -1
- package/dist/showcase/assets/italic-CXkAsf6H.js +0 -1
- package/dist/showcase/assets/item-CGOThKAx.js +0 -1
- package/dist/showcase/assets/item-CMRbW6s-.js +0 -1
- package/dist/showcase/assets/item-sw6fAZcn.js +0 -117
- package/dist/showcase/assets/kanban-CKGYTXji.js +0 -175
- package/dist/showcase/assets/label-BmKD22pm.js +0 -1
- package/dist/showcase/assets/layout-app-shell-CeMHzVNn.js +0 -501
- package/dist/showcase/assets/layout-containers-8Drow5f9.js +0 -96
- package/dist/showcase/assets/layout-header-BlBw4JAV.js +0 -170
- package/dist/showcase/assets/layout-page-BQfgHFau.js +0 -122
- package/dist/showcase/assets/layout-sidebar-DZer5Uuh.js +0 -224
- package/dist/showcase/assets/layout-users-nuioUkeu.js +0 -104
- package/dist/showcase/assets/lock-DQcZ9cEj.js +0 -1
- package/dist/showcase/assets/mail-yNXDtmNr.js +0 -1
- package/dist/showcase/assets/map-JMM1F9VR.js +0 -124
- package/dist/showcase/assets/map-pin-2WS7oVo3.js +0 -1
- package/dist/showcase/assets/menus-mK-FeNki.js +0 -89
- package/dist/showcase/assets/message-square-DGTAjNJG.js +0 -1
- package/dist/showcase/assets/metadata-list-CBxuQjVO.js +0 -278
- package/dist/showcase/assets/metric-BWGrmyD6.js +0 -1
- package/dist/showcase/assets/metric-grid-CewIJQvo.js +0 -1
- package/dist/showcase/assets/metric-trend-chip-kLBN8u5z.js +0 -1
- package/dist/showcase/assets/metrics-analytics-bar-COnc7VN9.js +0 -44
- package/dist/showcase/assets/metrics-analytics-cards-BR83UVqi.js +0 -77
- package/dist/showcase/assets/metrics-comparison-C0SUjdMg.js +0 -76
- package/dist/showcase/assets/metrics-heatmap-Orq1hLk-.js +0 -27
- package/dist/showcase/assets/metrics-inline-badge-C924q2Xx.js +0 -17
- package/dist/showcase/assets/metrics-kpi-row-Cwi05ruK.js +0 -31
- package/dist/showcase/assets/metrics-micro-grid-D97nkrge.js +0 -42
- package/dist/showcase/assets/metrics-overview-BOc8y3QX.js +0 -192
- package/dist/showcase/assets/metrics-stat-cards-Cilh-A5D.js +0 -54
- package/dist/showcase/assets/minus-DvrDGcTv.js +0 -1
- package/dist/showcase/assets/money-display-0egZ_O76.js +0 -1
- package/dist/showcase/assets/month-year-picker-2cWfwnmP.js +0 -1
- package/dist/showcase/assets/navigation-BnYme-Wj.js +0 -90
- package/dist/showcase/assets/navigation-CLQWl32A.js +0 -230
- package/dist/showcase/assets/navigation-extras-BPDoAdXF.js +0 -43
- package/dist/showcase/assets/onboarding-checklist-26XVWgDF.js +0 -119
- package/dist/showcase/assets/overlays-2sVGhanu.js +0 -88
- package/dist/showcase/assets/overlays-BaR6HDwB.js +0 -394
- package/dist/showcase/assets/package-CUNvdlBi.js +0 -1
- package/dist/showcase/assets/page-action-button-DgvZVtzx.js +0 -1
- package/dist/showcase/assets/page-header-4F_iaFPW.js +0 -1
- package/dist/showcase/assets/pagination-CDjZ6jiZ.js +0 -42
- package/dist/showcase/assets/pagination-g1NQaN42.js +0 -1
- package/dist/showcase/assets/paperclip-CDxdf8Os.js +0 -1
- package/dist/showcase/assets/pencil-Ddc5JwBe.js +0 -1
- package/dist/showcase/assets/phone-NIZ5SwgK.js +0 -1
- package/dist/showcase/assets/plus-C9kwz7rW.js +0 -1
- package/dist/showcase/assets/popover-DtnuOBgr.js +0 -1
- package/dist/showcase/assets/popover-T85aV4zW.js +0 -1
- package/dist/showcase/assets/popover-menu-BRGSZe4f.js +0 -1
- package/dist/showcase/assets/progress-CcZjuzK3.js +0 -1
- package/dist/showcase/assets/progress-DbouniUl.js +0 -18
- package/dist/showcase/assets/props-table-CM_1cocj.js +0 -1
- package/dist/showcase/assets/props.generated-Bg627Jai.json +0 -32829
- package/dist/showcase/assets/quote-vjygm2-7.js +0 -1
- package/dist/showcase/assets/receipt-CfMgwFPl.js +0 -1
- package/dist/showcase/assets/refresh-cw-Tu5E_cGA.js +0 -1
- package/dist/showcase/assets/resolveAriaLabelledBy-B6CR9UP2.js +0 -1
- package/dist/showcase/assets/resolveValueLabel-CipUZh6i.js +0 -1
- package/dist/showcase/assets/rich-text-editor-BMZUyuQX.js +0 -143
- package/dist/showcase/assets/rich-text-editor-HwYIeWYW.js +0 -124
- package/dist/showcase/assets/rotate-ccw-B4Wi4ws7.js +0 -1
- package/dist/showcase/assets/scroll-area-CuB_woqF.js +0 -1
- package/dist/showcase/assets/scroll-area-I4mSIpRq.js +0 -32
- package/dist/showcase/assets/select-CF3cKjCo.js +0 -1
- package/dist/showcase/assets/send-Blu_n6xl.js +0 -1
- package/dist/showcase/assets/separator-9mrRf_DZ.js +0 -28
- package/dist/showcase/assets/separator-DUKleOvU.js +0 -1
- package/dist/showcase/assets/settings-DlKX-bZT.js +0 -1
- package/dist/showcase/assets/sheet-CwcLVoF3.js +0 -1
- package/dist/showcase/assets/shield-BD0Y8Jj3.js +0 -1
- package/dist/showcase/assets/shield-alert-DNOTmkwG.js +0 -1
- package/dist/showcase/assets/shield-check-Sbul0dUK.js +0 -1
- package/dist/showcase/assets/shopping-bag-EDVpxI9n.js +0 -1
- package/dist/showcase/assets/sidebar-JWZ88xw5.js +0 -1
- package/dist/showcase/assets/sidebar.context-D3P7qppn.js +0 -1
- package/dist/showcase/assets/skeleton-CIS1Kaas.js +0 -1
- package/dist/showcase/assets/skeleton-CJCJDQFt.js +0 -29
- package/dist/showcase/assets/smart-card-7szg_qSt.js +0 -1
- package/dist/showcase/assets/sonner-DMHXr9Ce.js +0 -22
- package/dist/showcase/assets/sortable.esm-DVuzVA1U.js +0 -5
- package/dist/showcase/assets/sparkles-BEa1AgNq.js +0 -1
- package/dist/showcase/assets/spinner-Bi-T9etI.js +0 -30
- package/dist/showcase/assets/spinner-C77XIUVf.js +0 -1
- package/dist/showcase/assets/spinner-DK9BAT6K.js +0 -49
- package/dist/showcase/assets/square-pen-N0mq-vPu.js +0 -1
- package/dist/showcase/assets/stacked-avatars-DORVEni2.js +0 -1
- package/dist/showcase/assets/star-Dbtxr60S.js +0 -1
- package/dist/showcase/assets/startOfDay-BJgxz4yq.js +0 -1
- package/dist/showcase/assets/styles-CwW4IBUg.js +0 -1
- package/dist/showcase/assets/switch-B4iRxZFU.js +0 -1
- package/dist/showcase/assets/switch-B_rnbXwy.js +0 -1
- package/dist/showcase/assets/table-BJ9HSK6H.js +0 -1
- package/dist/showcase/assets/table-IB0MEYf4.js +0 -389
- package/dist/showcase/assets/tabs-D02JL-Fa.js +0 -1
- package/dist/showcase/assets/tabs-XpsVS3ff.js +0 -19
- package/dist/showcase/assets/text-button-BWCgXGnr.js +0 -1
- package/dist/showcase/assets/text-link-TzuDnSCF.js +0 -1
- package/dist/showcase/assets/textarea-B7DUIiH_.js +0 -1
- package/dist/showcase/assets/textarea-CV5gNzXf.js +0 -1
- package/dist/showcase/assets/timelines-CF0UYhwm.js +0 -200
- package/dist/showcase/assets/toggle-group-CK8mBx6E.js +0 -1
- package/dist/showcase/assets/toggles-CqJSApnF.js +0 -71
- package/dist/showcase/assets/toggles-group-v0JijMzG.js +0 -32
- package/dist/showcase/assets/trash-2-_xF5j-Ya.js +0 -1
- package/dist/showcase/assets/trending-up-BCzmjYzm.js +0 -1
- package/dist/showcase/assets/truck-CryH-5dx.js +0 -1
- package/dist/showcase/assets/typography-D3PFbRpb.js +0 -215
- package/dist/showcase/assets/ui-badge-ByyFPLOB.js +0 -28
- package/dist/showcase/assets/ui-card-DYLLiD89.js +0 -30
- package/dist/showcase/assets/ui-table-DW4QIwxK.js +0 -42
- package/dist/showcase/assets/upload-tray-ZdL_dzc0.js +0 -138
- package/dist/showcase/assets/useAnchoredPopupScrollLock-AFPLx3SZ.js +0 -1
- package/dist/showcase/assets/useCollapsiblePanel-CeHRY8U2.js +0 -1
- package/dist/showcase/assets/useCompositeItem-C-1zP8zD.js +0 -1
- package/dist/showcase/assets/useCompositeListItem-D4ugfKLB.js +0 -1
- package/dist/showcase/assets/useLabelableId-CSxAHpU-.js +0 -1
- package/dist/showcase/assets/useOpenInteractionType-BLV8Pa2n.js +0 -1
- package/dist/showcase/assets/useRender-DparzvOu.js +0 -1
- package/dist/showcase/assets/useTriggerFocusGuards-CrYLO2g5.js +0 -1
- package/dist/showcase/assets/useValueChanged-DwgbaueK.js +0 -1
- package/dist/showcase/assets/user-CGcV8Ppb.js +0 -1
- package/dist/showcase/assets/user-plus-iOsntM6P.js +0 -1
- package/dist/showcase/assets/users-DzgXeZbf.js +0 -1
- package/dist/showcase/assets/vendor-profile-DbFPkGn9.js +0 -37
- package/dist/showcase/assets/wrench-1Ra9xb3d.js +0 -1
- package/dist/showcase/assets/x-CE8oevyh.js +0 -1
- package/dist/showcase/assets/zap-se3n2YVD.js +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useStrings as e } from "../../../lib/strings.js";
|
|
2
|
-
import { o as t } from "../../../_shared/ui-provider-
|
|
2
|
+
import { o as t } from "../../../_shared/ui-provider-C8Ot88lS.js";
|
|
3
3
|
import { cn as n } from "../../../lib/utils.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as i } from "../../../_shared/typography-
|
|
6
|
-
import { t as a } from "../../../_shared/badge-
|
|
7
|
-
import { t as o } from "../../../_shared/button-
|
|
8
|
-
import { t as s } from "../../../_shared/input-
|
|
9
|
-
import { t as c } from "../../../_shared/date-picker-
|
|
10
|
-
import { n as l,
|
|
11
|
-
import { i as
|
|
12
|
-
import { a as
|
|
13
|
-
import { t as
|
|
14
|
-
import
|
|
15
|
-
import { format as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { AlertCircle as
|
|
4
|
+
import { n as r } from "../../../_shared/heading-HeP06nXG.js";
|
|
5
|
+
import { a as i } from "../../../_shared/typography-CdxyWB1T.js";
|
|
6
|
+
import { t as a } from "../../../_shared/badge-yGlx9trX.js";
|
|
7
|
+
import { t as o } from "../../../_shared/button-SuocMQFT.js";
|
|
8
|
+
import { t as s } from "../../../_shared/input-C7t-RHYq.js";
|
|
9
|
+
import { t as c } from "../../../_shared/date-picker-TMcjGO26.js";
|
|
10
|
+
import { n as l, r as u, s as d, t as f } from "../../../_shared/popover-L37RqoRO.js";
|
|
11
|
+
import { i as p, s as m } from "../../../_shared/command-CAI-BCSR.js";
|
|
12
|
+
import { a as h, i as g, n as _, r as v, t as y } from "../../../_shared/command-DwRnPIGs.js";
|
|
13
|
+
import { t as b } from "../../../_shared/popover-menu-bKQatoYF.js";
|
|
14
|
+
import x, { Component as S, createContext as C, useCallback as w, useContext as T, useEffect as E, useId as D, useMemo as O, useRef as k, useState as A } from "react";
|
|
15
|
+
import { format as j, isValid as M, parse as N } from "date-fns";
|
|
16
|
+
import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
17
|
+
import { AlertCircle as L, ArrowLeft as R, CalendarIcon as z, Check as ee, ChevronDown as B, ChevronsUpDown as V, Filter as H, Loader2 as U, Plus as te, X as W } from "lucide-react";
|
|
18
18
|
//#region src/components/features/filters/filters.strings.ts
|
|
19
19
|
var ne = {
|
|
20
20
|
loading: "Loading",
|
|
@@ -95,7 +95,7 @@ var ne = {
|
|
|
95
95
|
invalidFormat: "Invalid format"
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
function
|
|
98
|
+
function G(e, t) {
|
|
99
99
|
return e.replace(/{(\w+)}/g, (e, n) => String(t[n] ?? e)).replace(/:(\w+)/g, (e, n) => t[n] === void 0 ? e : String(t[n]));
|
|
100
100
|
}
|
|
101
101
|
function re(e, t, n) {
|
|
@@ -104,11 +104,11 @@ function re(e, t, n) {
|
|
|
104
104
|
if (typeof i != "object" || !i) return t;
|
|
105
105
|
i = i[e];
|
|
106
106
|
}
|
|
107
|
-
return typeof i == "string" ? n ?
|
|
107
|
+
return typeof i == "string" ? n ? G(i, n) : i : t;
|
|
108
108
|
}
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/components/features/filters/filters.types.ts
|
|
111
|
-
var
|
|
111
|
+
var K = {
|
|
112
112
|
SELECT: "select",
|
|
113
113
|
MULTI_SELECT: "multi_select",
|
|
114
114
|
ASYNC_SELECT: "async_select",
|
|
@@ -116,7 +116,7 @@ var G = {
|
|
|
116
116
|
RANGE: "range",
|
|
117
117
|
DATE: "date",
|
|
118
118
|
TAGS: "tags"
|
|
119
|
-
},
|
|
119
|
+
}, q = {
|
|
120
120
|
EQUALS: "equals",
|
|
121
121
|
CONTAINS: "contains",
|
|
122
122
|
IN: "in",
|
|
@@ -135,107 +135,107 @@ var G = {
|
|
|
135
135
|
};
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region src/components/features/filters/operator-options.ts
|
|
138
|
-
function
|
|
138
|
+
function J(e) {
|
|
139
139
|
return [
|
|
140
140
|
{
|
|
141
141
|
label: e.contains,
|
|
142
|
-
value:
|
|
142
|
+
value: q.CONTAINS
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
label: e.equals,
|
|
146
|
-
value:
|
|
146
|
+
value: q.EQUALS
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
label: e.notContains,
|
|
150
|
-
value:
|
|
150
|
+
value: q.NOT
|
|
151
151
|
}
|
|
152
152
|
];
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function ie(e) {
|
|
155
155
|
return [{
|
|
156
156
|
label: e.is,
|
|
157
|
-
value:
|
|
157
|
+
value: q.EQUALS
|
|
158
158
|
}, {
|
|
159
159
|
label: e.isNot,
|
|
160
|
-
value:
|
|
160
|
+
value: q.NOT
|
|
161
161
|
}];
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function ae(e) {
|
|
164
164
|
return [
|
|
165
165
|
{
|
|
166
166
|
label: e.equals,
|
|
167
|
-
value:
|
|
167
|
+
value: q.EQUALS
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
label: e.greaterThan,
|
|
171
|
-
value:
|
|
171
|
+
value: q.GT
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
label: e.lessThan,
|
|
175
|
-
value:
|
|
175
|
+
value: q.LT
|
|
176
176
|
}
|
|
177
177
|
];
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function oe(e) {
|
|
180
180
|
return [
|
|
181
181
|
{
|
|
182
182
|
label: e.before,
|
|
183
|
-
value:
|
|
183
|
+
value: q.BEFORE
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
label: e.after,
|
|
187
|
-
value:
|
|
187
|
+
value: q.AFTER
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
label: e.between,
|
|
191
|
-
value:
|
|
191
|
+
value: q.BETWEEN
|
|
192
192
|
}
|
|
193
193
|
];
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function se(e) {
|
|
196
196
|
return [{
|
|
197
197
|
label: e.equals,
|
|
198
|
-
value:
|
|
198
|
+
value: q.EQUALS
|
|
199
199
|
}];
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function ce(e, t) {
|
|
202
202
|
switch (e) {
|
|
203
|
-
case
|
|
204
|
-
case
|
|
203
|
+
case K.SEARCH: return J(t);
|
|
204
|
+
case K.TAGS: return [
|
|
205
205
|
{
|
|
206
206
|
label: t.has,
|
|
207
|
-
value:
|
|
207
|
+
value: q.HAS
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
label: t.hasAny,
|
|
211
|
-
value:
|
|
211
|
+
value: q.HAS_ANY
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
label: t.hasAll,
|
|
215
|
-
value:
|
|
215
|
+
value: q.HAS_ALL
|
|
216
216
|
}
|
|
217
217
|
];
|
|
218
|
-
case
|
|
219
|
-
case
|
|
220
|
-
case
|
|
221
|
-
case
|
|
222
|
-
default: return
|
|
218
|
+
case K.SELECT:
|
|
219
|
+
case K.ASYNC_SELECT: return ie(t);
|
|
220
|
+
case K.RANGE: return ae(t);
|
|
221
|
+
case K.DATE: return oe(t);
|
|
222
|
+
default: return J(t);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function le(e) {
|
|
226
226
|
switch (e) {
|
|
227
|
-
case
|
|
228
|
-
case
|
|
229
|
-
case
|
|
230
|
-
case
|
|
231
|
-
case
|
|
232
|
-
case
|
|
233
|
-
default: return
|
|
227
|
+
case K.SEARCH: return q.CONTAINS;
|
|
228
|
+
case K.TAGS: return q.HAS;
|
|
229
|
+
case K.SELECT:
|
|
230
|
+
case K.ASYNC_SELECT: return q.EQUALS;
|
|
231
|
+
case K.RANGE: return q.EQUALS;
|
|
232
|
+
case K.DATE: return q.BEFORE;
|
|
233
|
+
default: return q.EQUALS;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region src/components/features/filters/utils/filter-utils.ts
|
|
238
|
-
function
|
|
238
|
+
function ue(e, t, n) {
|
|
239
239
|
if (e.type === "date" && Array.isArray(t) && t.every((e) => typeof e == "string")) return !0;
|
|
240
240
|
if (e.validation?.required && (!t || Array.isArray(t) && t.length === 0)) return n("validation.required");
|
|
241
241
|
if (typeof t == "number") {
|
|
@@ -251,35 +251,35 @@ function de(e, t, n) {
|
|
|
251
251
|
}
|
|
252
252
|
//#endregion
|
|
253
253
|
//#region src/components/features/filters/filter-context.tsx
|
|
254
|
-
var
|
|
255
|
-
function
|
|
256
|
-
let l =
|
|
254
|
+
var de = C(void 0), Y = /* @__PURE__ */ new Map();
|
|
255
|
+
function fe({ children: t, filters: n, activeFilters: r, onFilterChange: i, isNavigating: a = !1, strings: o, locale: s, onError: c }) {
|
|
256
|
+
let l = k(n), u = k(r), d = k(i), f = k(c);
|
|
257
257
|
f.current = c;
|
|
258
|
-
let [, p] =
|
|
259
|
-
|
|
258
|
+
let [, p] = A(0), m = s || "en", h = e(ne, o);
|
|
259
|
+
E(() => {
|
|
260
260
|
l.current = n;
|
|
261
|
-
}, [n]),
|
|
261
|
+
}, [n]), E(() => {
|
|
262
262
|
u.current = r;
|
|
263
|
-
}, [r]),
|
|
263
|
+
}, [r]), E(() => {
|
|
264
264
|
d.current = i;
|
|
265
265
|
}, [i]);
|
|
266
|
-
let g =
|
|
266
|
+
let g = w((e) => {
|
|
267
267
|
let t = [...r, e];
|
|
268
268
|
d.current(t);
|
|
269
|
-
}, [r]), _ =
|
|
269
|
+
}, [r]), _ = w((e) => {
|
|
270
270
|
let t = r.filter((t) => t.id !== e && t.key !== e);
|
|
271
271
|
d.current(t);
|
|
272
|
-
}, [r]), v =
|
|
272
|
+
}, [r]), v = w((e, t) => {
|
|
273
273
|
let n = r.map((n) => n.id === e || n.key === e ? {
|
|
274
274
|
...n,
|
|
275
275
|
...t
|
|
276
276
|
} : n);
|
|
277
277
|
d.current(n);
|
|
278
|
-
}, [r]), y =
|
|
278
|
+
}, [r]), y = w(() => {
|
|
279
279
|
d.current([]);
|
|
280
|
-
}, []), b =
|
|
280
|
+
}, []), b = w((e) => {
|
|
281
281
|
d.current(e);
|
|
282
|
-
}, []), x =
|
|
282
|
+
}, []), x = w((e) => l.current.find((t) => t.key === e), []), S = w((e) => r.find((t) => t.key === e)?.value || [], [r]), C = w((e, t) => {
|
|
283
283
|
let n = r.find((t) => t.key === e);
|
|
284
284
|
if (t.length === 0) n && _(e);
|
|
285
285
|
else if (n) v(e, { value: t });
|
|
@@ -289,7 +289,7 @@ function pe({ children: t, filters: n, activeFilters: r, onFilterChange: i, isNa
|
|
|
289
289
|
id: e,
|
|
290
290
|
key: e,
|
|
291
291
|
value: t,
|
|
292
|
-
operator: n?.operator ?? n?.operators?.[0]?.value ?? (n ?
|
|
292
|
+
operator: n?.operator ?? n?.operators?.[0]?.value ?? (n ? le(n.type) : "equals")
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
295
|
}, [
|
|
@@ -297,12 +297,12 @@ function pe({ children: t, filters: n, activeFilters: r, onFilterChange: i, isNa
|
|
|
297
297
|
g,
|
|
298
298
|
_,
|
|
299
299
|
v
|
|
300
|
-
]),
|
|
300
|
+
]), T = w((e) => r.some((t) => t.key === e && t.value.length > 0), [r]), D = w((e) => r.find((t) => t.key === e)?.operator || "equals", [r]), j = w((e, t) => {
|
|
301
301
|
r.find((t) => t.key === e) && v(e, { operator: t });
|
|
302
|
-
}, [r, v]), M =
|
|
302
|
+
}, [r, v]), M = w((e, t) => {
|
|
303
303
|
let n = l.current.find((t) => t.key === e);
|
|
304
|
-
return n ?
|
|
305
|
-
}, [h]), N =
|
|
304
|
+
return n ? ue(n, t, (e) => re(h, e)) : !1;
|
|
305
|
+
}, [h]), N = w((e) => l.current.filter((t) => t.dependencies?.some((t) => t.key === e)), []), P = w(async (e) => {
|
|
306
306
|
let t = l.current.find((t) => t.key === e);
|
|
307
307
|
if (!t) return [];
|
|
308
308
|
if (t.fetchOptions) {
|
|
@@ -321,19 +321,19 @@ function pe({ children: t, filters: n, activeFilters: r, onFilterChange: i, isNa
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return t.options || [];
|
|
324
|
-
}, []), I =
|
|
325
|
-
let n =
|
|
326
|
-
n || (n = /* @__PURE__ */ new Map(),
|
|
324
|
+
}, []), I = w((e, t) => {
|
|
325
|
+
let n = Y.get(e);
|
|
326
|
+
n || (n = /* @__PURE__ */ new Map(), Y.set(e, n));
|
|
327
327
|
let r = !1;
|
|
328
328
|
for (let e of t) n.has(e.value) || (r = !0), n.set(e.value, e);
|
|
329
329
|
r && p((e) => e + 1);
|
|
330
|
-
}, []), L =
|
|
331
|
-
|
|
330
|
+
}, []), L = w((e, t) => Y.get(e)?.get(t)?.label, []);
|
|
331
|
+
E(() => {
|
|
332
332
|
let e = new AbortController();
|
|
333
333
|
for (let t of n) {
|
|
334
|
-
if (t.type !==
|
|
334
|
+
if (t.type !== K.ASYNC_SELECT) continue;
|
|
335
335
|
let n = r.find((e) => e.key === t.key);
|
|
336
|
-
if (!n || n.value.length === 0 || n.value.every((e) =>
|
|
336
|
+
if (!n || n.value.length === 0 || n.value.every((e) => Y.get(t.key)?.has(e))) continue;
|
|
337
337
|
let { asyncConfig: i, fetchOptions: a } = t;
|
|
338
338
|
i?.fetcher && i.mapToOption ? i.fetcher({
|
|
339
339
|
query: "",
|
|
@@ -349,7 +349,7 @@ function pe({ children: t, filters: n, activeFilters: r, onFilterChange: i, isNa
|
|
|
349
349
|
}
|
|
350
350
|
return () => e.abort();
|
|
351
351
|
}, []);
|
|
352
|
-
let R =
|
|
352
|
+
let R = O(() => ({
|
|
353
353
|
activeFilters: r,
|
|
354
354
|
filters: n,
|
|
355
355
|
addFilter: g,
|
|
@@ -359,13 +359,13 @@ function pe({ children: t, filters: n, activeFilters: r, onFilterChange: i, isNa
|
|
|
359
359
|
replaceFilters: b,
|
|
360
360
|
getFilterByKey: x,
|
|
361
361
|
getFilterValue: S,
|
|
362
|
-
setFilterValue:
|
|
363
|
-
isFilterActive:
|
|
364
|
-
getFilterOperator:
|
|
362
|
+
setFilterValue: C,
|
|
363
|
+
isFilterActive: T,
|
|
364
|
+
getFilterOperator: D,
|
|
365
365
|
setFilterOperator: j,
|
|
366
366
|
validateFilter: M,
|
|
367
367
|
getDependentFilters: N,
|
|
368
|
-
getFilterOptions:
|
|
368
|
+
getFilterOptions: P,
|
|
369
369
|
isNavigating: a,
|
|
370
370
|
locale: m,
|
|
371
371
|
strings: h,
|
|
@@ -381,41 +381,41 @@ function pe({ children: t, filters: n, activeFilters: r, onFilterChange: i, isNa
|
|
|
381
381
|
b,
|
|
382
382
|
x,
|
|
383
383
|
S,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
C,
|
|
385
|
+
T,
|
|
386
|
+
D,
|
|
387
387
|
j,
|
|
388
388
|
M,
|
|
389
389
|
N,
|
|
390
|
-
|
|
390
|
+
P,
|
|
391
391
|
a,
|
|
392
392
|
m,
|
|
393
393
|
h,
|
|
394
394
|
I,
|
|
395
395
|
L
|
|
396
396
|
]);
|
|
397
|
-
return /* @__PURE__ */
|
|
397
|
+
return /* @__PURE__ */ F(de.Provider, {
|
|
398
398
|
value: R,
|
|
399
399
|
children: t
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
let e =
|
|
402
|
+
function X() {
|
|
403
|
+
let e = T(de);
|
|
404
404
|
if (!e) throw Error("useFilters must be used within a FilterProvider");
|
|
405
405
|
return e;
|
|
406
406
|
}
|
|
407
407
|
//#endregion
|
|
408
408
|
//#region src/components/features/filters/hooks/use-filter-groups.ts
|
|
409
|
-
function
|
|
410
|
-
let { dynamicFilterOptions: t } = e, { filters: n, isFilterActive: r } =
|
|
409
|
+
function pe(e = {}) {
|
|
410
|
+
let { dynamicFilterOptions: t } = e, { filters: n, isFilterActive: r } = X(), i = O(() => t ? n.map((e) => {
|
|
411
411
|
let n = t[e.key];
|
|
412
412
|
return Array.isArray(n) ? {
|
|
413
413
|
...e,
|
|
414
414
|
options: n
|
|
415
415
|
} : e;
|
|
416
416
|
}) : n, [n, t]);
|
|
417
|
-
return
|
|
418
|
-
let e = i.filter((e) => e.type ===
|
|
417
|
+
return O(() => {
|
|
418
|
+
let e = i.filter((e) => e.type === K.SEARCH), t = i.filter((e) => e.type !== K.SEARCH && r(e.key)), n = i.filter((e) => e.type !== K.SEARCH && !r(e.key) && e.displayConfig?.display === "always"), a = i.filter((e) => e.type !== K.SEARCH && !r(e.key) && e.displayConfig?.display !== "always"), o = t.map((e) => e.key);
|
|
419
419
|
return {
|
|
420
420
|
processedFilters: i,
|
|
421
421
|
searchFilters: e,
|
|
@@ -429,13 +429,13 @@ function me(e = {}) {
|
|
|
429
429
|
}
|
|
430
430
|
//#endregion
|
|
431
431
|
//#region src/components/features/filters/partials/filter-operator-select.tsx
|
|
432
|
-
function
|
|
433
|
-
let [s, c] =
|
|
434
|
-
return /* @__PURE__ */
|
|
432
|
+
function me({ operator: e, operators: t, onOperatorChange: i, segmentResetClass: a }) {
|
|
433
|
+
let [s, c] = A(!1), { strings: l } = X(), u = t.find((t) => t.value === e)?.label || e;
|
|
434
|
+
return /* @__PURE__ */ F(b, {
|
|
435
435
|
open: s,
|
|
436
436
|
onOpenChange: c,
|
|
437
437
|
search: !1,
|
|
438
|
-
trigger: /* @__PURE__ */
|
|
438
|
+
trigger: /* @__PURE__ */ F(o, {
|
|
439
439
|
variant: "secondary",
|
|
440
440
|
buttonStyle: "ghost",
|
|
441
441
|
className: n(a, "text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground h-full px-3 text-xs"),
|
|
@@ -445,7 +445,7 @@ function he({ operator: e, operators: t, onOperatorChange: i, segmentResetClass:
|
|
|
445
445
|
type: "button",
|
|
446
446
|
children: u
|
|
447
447
|
}),
|
|
448
|
-
header: /* @__PURE__ */
|
|
448
|
+
header: /* @__PURE__ */ F(r, {
|
|
449
449
|
tag: "span",
|
|
450
450
|
size: "xs",
|
|
451
451
|
weight: "semibold",
|
|
@@ -464,135 +464,135 @@ function he({ operator: e, operators: t, onOperatorChange: i, segmentResetClass:
|
|
|
464
464
|
}
|
|
465
465
|
//#endregion
|
|
466
466
|
//#region src/components/features/filters/partials/filter-value-display.tsx
|
|
467
|
-
function
|
|
468
|
-
let { strings: n } =
|
|
469
|
-
return t.length === 0 && e.type !==
|
|
467
|
+
function he({ filter: e, value: t }) {
|
|
468
|
+
let { strings: n } = X();
|
|
469
|
+
return t.length === 0 && e.type !== K.DATE ? /* @__PURE__ */ F(r, {
|
|
470
470
|
tag: "span",
|
|
471
471
|
size: "xs",
|
|
472
472
|
type: "secondary",
|
|
473
473
|
children: n.nothingSelected
|
|
474
|
-
}) : e.type ===
|
|
474
|
+
}) : e.type === K.ASYNC_SELECT && !e.options?.length ? /* @__PURE__ */ F(r, {
|
|
475
475
|
tag: "span",
|
|
476
476
|
size: "xs",
|
|
477
477
|
weight: "semibold",
|
|
478
|
-
children:
|
|
479
|
-
}) : e.options && e.type !==
|
|
478
|
+
children: _e(e, t, n)
|
|
479
|
+
}) : e.options && e.type !== K.DATE ? /* @__PURE__ */ I("div", {
|
|
480
480
|
className: "flex items-center gap-1",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
481
|
+
children: [/* @__PURE__ */ I("div", {
|
|
482
482
|
className: "relative flex",
|
|
483
483
|
children: [t.slice(0, 2).map((t, n) => {
|
|
484
484
|
let r = e.options?.find((e) => e.value === t);
|
|
485
|
-
return r?.icon ? /* @__PURE__ */
|
|
485
|
+
return r?.icon ? /* @__PURE__ */ F("div", {
|
|
486
486
|
className: `${n > 0 ? "-ml-1.5" : ""} border-background bg-background relative rounded-full border`,
|
|
487
487
|
style: { zIndex: 10 - n },
|
|
488
488
|
children: r.icon
|
|
489
489
|
}, t) : null;
|
|
490
|
-
}), t.length > 2 && /* @__PURE__ */
|
|
490
|
+
}), t.length > 2 && /* @__PURE__ */ I("div", {
|
|
491
491
|
className: "bg-muted border-background relative -ml-1.5 flex h-4 w-4 items-center justify-center rounded-full border text-xxs font-medium",
|
|
492
492
|
children: ["+", t.length - 2]
|
|
493
493
|
})]
|
|
494
|
-
}), /* @__PURE__ */
|
|
494
|
+
}), /* @__PURE__ */ F(r, {
|
|
495
495
|
tag: "span",
|
|
496
496
|
size: "xs",
|
|
497
497
|
weight: "semibold",
|
|
498
|
-
children:
|
|
498
|
+
children: ve(e, t, n)
|
|
499
499
|
})]
|
|
500
|
-
}) : e.type ===
|
|
500
|
+
}) : e.type === K.DATE ? /* @__PURE__ */ I("div", {
|
|
501
501
|
className: "flex items-center gap-1",
|
|
502
|
-
children: [/* @__PURE__ */
|
|
502
|
+
children: [/* @__PURE__ */ F(z, { className: "text-muted-foreground h-3.5 w-3.5" }), /* @__PURE__ */ F(r, {
|
|
503
503
|
tag: "span",
|
|
504
504
|
size: "xs",
|
|
505
505
|
weight: "semibold",
|
|
506
|
-
children:
|
|
506
|
+
children: ge(e, t, n)
|
|
507
507
|
})]
|
|
508
|
-
}) : /* @__PURE__ */
|
|
508
|
+
}) : /* @__PURE__ */ F(r, {
|
|
509
509
|
tag: "span",
|
|
510
510
|
size: "xs",
|
|
511
511
|
weight: "semibold",
|
|
512
|
-
children:
|
|
512
|
+
children: ve(e, t, n)
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
return e.operator === "between" && t.length === 2 ? `${
|
|
515
|
+
function ge(e, t, n) {
|
|
516
|
+
return e.operator === "between" && t.length === 2 ? `${Z(t[0], e.dateFormat?.display)} - ${Z(t[1], e.dateFormat?.display)}` : t.length === 1 ? Z(t[0], e.dateFormat?.display) : t.length === 2 ? `${Z(t[0], e.dateFormat?.display)} - ${Z(t[1], e.dateFormat?.display)}` : e.datePickerConfig?.noDatePlaceholder || n.calendar.notDateSelected;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return t.length === 0 ? "" :
|
|
518
|
+
function _e(e, t, n) {
|
|
519
|
+
return t.length === 0 ? "" : G(n.selected, {
|
|
520
520
|
count: t.length,
|
|
521
521
|
filterLabel: (t.length > 1 ? e.pluralLabel : e.label) ?? e.label
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
|
-
function
|
|
525
|
-
return t.length > 1 ?
|
|
524
|
+
function ve(e, t, n) {
|
|
525
|
+
return t.length > 1 ? G(n.selected, {
|
|
526
526
|
count: t.length,
|
|
527
527
|
filterLabel: e.pluralLabel ?? e.label
|
|
528
528
|
}) : t.map((t) => e.options?.find((e) => e.value === t)?.label || t).join(", ");
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Z(e, t) {
|
|
531
531
|
let n = new Date(e);
|
|
532
532
|
if (Number.isNaN(n.getTime())) return e;
|
|
533
533
|
if (t) try {
|
|
534
|
-
return
|
|
534
|
+
return j(n, t);
|
|
535
535
|
} catch {}
|
|
536
536
|
return n.toLocaleDateString();
|
|
537
537
|
}
|
|
538
538
|
//#endregion
|
|
539
539
|
//#region src/components/features/filters/partials/active-filter-item.tsx
|
|
540
|
-
function
|
|
541
|
-
let { strings: d } =
|
|
540
|
+
function ye({ filter: e, value: t, isActive: i, operators: a, operator: s, onOperatorChange: c, onFilterClear: l, onFilterClick: u }) {
|
|
541
|
+
let { strings: d } = X(), f = (e) => {
|
|
542
542
|
(e.currentTarget === e.target || e.target.tagName !== "BUTTON") && u();
|
|
543
|
-
}, p = "!border-0 !rounded-none !shadow-none focus-visible:!ring-0 focus-visible:!border-transparent", m = () => /* @__PURE__ */
|
|
543
|
+
}, p = "!border-0 !rounded-none !shadow-none focus-visible:!ring-0 focus-visible:!border-transparent", m = () => /* @__PURE__ */ F("div", {
|
|
544
544
|
"aria-hidden": !0,
|
|
545
545
|
className: "w-px self-stretch bg-border"
|
|
546
546
|
});
|
|
547
|
-
return /* @__PURE__ */
|
|
547
|
+
return /* @__PURE__ */ I("div", {
|
|
548
548
|
role: "group",
|
|
549
549
|
"aria-label": e.label,
|
|
550
550
|
className: n("border-input bg-background flex h-9 items-center overflow-hidden rounded-md border", e.displayConfig?.className, i && "active"),
|
|
551
551
|
children: [
|
|
552
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ I(o, {
|
|
553
553
|
type: "button",
|
|
554
554
|
variant: "secondary",
|
|
555
555
|
buttonStyle: "ghost",
|
|
556
556
|
className: n(p, "flex h-full items-center px-3 hover:bg-accent hover:text-accent-foreground"),
|
|
557
557
|
onClick: f,
|
|
558
558
|
children: [
|
|
559
|
-
!!e.icon && /* @__PURE__ */
|
|
559
|
+
!!e.icon && /* @__PURE__ */ F("span", {
|
|
560
560
|
className: "text-muted-foreground mr-1",
|
|
561
561
|
children: e.icon
|
|
562
562
|
}),
|
|
563
|
-
/* @__PURE__ */
|
|
563
|
+
/* @__PURE__ */ F(r, {
|
|
564
564
|
tag: "span",
|
|
565
565
|
size: "xs",
|
|
566
566
|
weight: "semibold",
|
|
567
567
|
children: e.label
|
|
568
568
|
}),
|
|
569
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ F(B, { className: "ml-1 h-4 w-4" })
|
|
570
570
|
]
|
|
571
571
|
}),
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ F(m, {}),
|
|
573
|
+
/* @__PURE__ */ F(me, {
|
|
574
574
|
operator: s,
|
|
575
575
|
operators: a,
|
|
576
576
|
onOperatorChange: c,
|
|
577
577
|
segmentResetClass: p
|
|
578
578
|
}),
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ F(m, {}),
|
|
580
|
+
/* @__PURE__ */ F("div", {
|
|
581
581
|
className: "pointer-events-none flex flex-1 items-center px-2",
|
|
582
|
-
children: /* @__PURE__ */
|
|
582
|
+
children: /* @__PURE__ */ F(he, {
|
|
583
583
|
filter: e,
|
|
584
584
|
value: t
|
|
585
585
|
})
|
|
586
586
|
}),
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ F(m, {}),
|
|
588
|
+
/* @__PURE__ */ I(o, {
|
|
589
589
|
variant: "secondary",
|
|
590
590
|
buttonStyle: "ghost",
|
|
591
591
|
className: n(p, "h-full w-8 px-0 rounded-r-md"),
|
|
592
592
|
onClick: (e) => {
|
|
593
593
|
e.stopPropagation(), e.preventDefault(), l();
|
|
594
594
|
},
|
|
595
|
-
children: [/* @__PURE__ */
|
|
595
|
+
children: [/* @__PURE__ */ F(W, { className: "h-4 w-4" }), /* @__PURE__ */ F("span", {
|
|
596
596
|
className: "sr-only",
|
|
597
597
|
children: d.clear
|
|
598
598
|
})]
|
|
@@ -602,9 +602,9 @@ function be({ filter: e, value: t, isActive: i, operators: a, operator: s, onOpe
|
|
|
602
602
|
}
|
|
603
603
|
//#endregion
|
|
604
604
|
//#region src/hooks/use-debounce.ts
|
|
605
|
-
function
|
|
606
|
-
let [n, r] =
|
|
607
|
-
return
|
|
605
|
+
function be(e, t = 500) {
|
|
606
|
+
let [n, r] = A(e);
|
|
607
|
+
return E(() => {
|
|
608
608
|
let n = setTimeout(() => {
|
|
609
609
|
r(e);
|
|
610
610
|
}, t);
|
|
@@ -615,9 +615,19 @@ function xe(e, t = 500) {
|
|
|
615
615
|
}
|
|
616
616
|
//#endregion
|
|
617
617
|
//#region src/components/features/filters/hooks/use-async-options.ts
|
|
618
|
-
var
|
|
618
|
+
var xe = /* @__PURE__ */ new Map();
|
|
619
|
+
function Se(e, t) {
|
|
620
|
+
let n = xe.get(e);
|
|
621
|
+
if (n) {
|
|
622
|
+
if (Date.now() - n.timestamp > t) {
|
|
623
|
+
xe.delete(e);
|
|
624
|
+
return;
|
|
625
|
+
}
|
|
626
|
+
return n;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
619
629
|
function Ce(e, n, r) {
|
|
620
|
-
let { asyncConfig: i, fetchOptions: a } = e, { debounceMs: o, defaultPageSize: s } = t(), c = (
|
|
630
|
+
let { asyncConfig: i, fetchOptions: a } = e, { debounceMs: o, defaultPageSize: s } = t(), c = (be(n, i?.debounceMs ?? e.delay ?? o ?? 300) ?? "").trim(), l = i?.limit ?? s ?? 10, u = i?.minQueryLength ?? 0, d = i?.preload ?? !0, f = i?.staleTime ?? 6e4, p = i?.gcTime ?? 3e5, m = c.length === 0 && d, h = c.length >= u, g = r && (m || c.length > 0 && h), _ = r && !m && c.length > 0 && c.length < u, v = O(() => i?.queryKey ? JSON.stringify(i.queryKey({
|
|
621
631
|
query: c,
|
|
622
632
|
limit: l
|
|
623
633
|
})) : JSON.stringify([
|
|
@@ -630,7 +640,7 @@ function Ce(e, n, r) {
|
|
|
630
640
|
e.key,
|
|
631
641
|
c,
|
|
632
642
|
l
|
|
633
|
-
]),
|
|
643
|
+
]), y = w(async (e) => i?.fetcher && i.mapToOption ? (await i.fetcher({
|
|
634
644
|
query: c,
|
|
635
645
|
limit: l,
|
|
636
646
|
signal: e
|
|
@@ -639,40 +649,40 @@ function Ce(e, n, r) {
|
|
|
639
649
|
a,
|
|
640
650
|
c,
|
|
641
651
|
l
|
|
642
|
-
]), [
|
|
643
|
-
data: Se
|
|
652
|
+
]), [b, x] = A(() => ({
|
|
653
|
+
data: Se(v, p)?.data ?? [],
|
|
644
654
|
loading: !1,
|
|
645
655
|
fetching: !1,
|
|
646
656
|
error: !1
|
|
647
|
-
})), [
|
|
648
|
-
return
|
|
649
|
-
if (!
|
|
650
|
-
let e = Se
|
|
651
|
-
if (t &&
|
|
657
|
+
})), [S, C] = A(0), T = w(() => C((e) => e + 1), []);
|
|
658
|
+
return E(() => {
|
|
659
|
+
if (!g) return;
|
|
660
|
+
let e = Se(v, p), t = e !== void 0 && Date.now() - e.timestamp < f, n = new AbortController();
|
|
661
|
+
if (t && S === 0) return x({
|
|
652
662
|
data: e.data,
|
|
653
663
|
loading: !1,
|
|
654
664
|
fetching: !1,
|
|
655
665
|
error: !1
|
|
656
666
|
}), () => n.abort();
|
|
657
|
-
|
|
667
|
+
x((t) => ({
|
|
658
668
|
data: e?.data ?? t.data,
|
|
659
669
|
loading: e === void 0,
|
|
660
670
|
fetching: !0,
|
|
661
671
|
error: !1
|
|
662
672
|
}));
|
|
663
673
|
let r = !1;
|
|
664
|
-
return
|
|
665
|
-
r || (
|
|
674
|
+
return y(n.signal).then((e) => {
|
|
675
|
+
r || (xe.set(v, {
|
|
666
676
|
timestamp: Date.now(),
|
|
667
677
|
data: e
|
|
668
|
-
}),
|
|
678
|
+
}), x({
|
|
669
679
|
data: e,
|
|
670
680
|
loading: !1,
|
|
671
681
|
fetching: !1,
|
|
672
682
|
error: !1
|
|
673
683
|
}));
|
|
674
684
|
}).catch((e) => {
|
|
675
|
-
r || n.signal.aborted || e && e.name === "AbortError" ||
|
|
685
|
+
r || n.signal.aborted || e && e.name === "AbortError" || x((e) => ({
|
|
676
686
|
data: e.data,
|
|
677
687
|
loading: !1,
|
|
678
688
|
fetching: !1,
|
|
@@ -682,31 +692,38 @@ function Ce(e, n, r) {
|
|
|
682
692
|
r = !0, n.abort();
|
|
683
693
|
};
|
|
684
694
|
}, [
|
|
685
|
-
_,
|
|
686
695
|
v,
|
|
687
|
-
|
|
696
|
+
y,
|
|
697
|
+
g,
|
|
688
698
|
f,
|
|
689
|
-
|
|
699
|
+
p,
|
|
700
|
+
S
|
|
690
701
|
]), {
|
|
691
|
-
options:
|
|
692
|
-
isLoading:
|
|
693
|
-
isFetching:
|
|
694
|
-
isError:
|
|
695
|
-
refetch:
|
|
696
|
-
isBelowMinQuery:
|
|
702
|
+
options: g ? b.data : [],
|
|
703
|
+
isLoading: g && b.loading,
|
|
704
|
+
isFetching: g && b.fetching,
|
|
705
|
+
isError: g && b.error,
|
|
706
|
+
refetch: T,
|
|
707
|
+
isBelowMinQuery: _,
|
|
697
708
|
minQueryLength: u
|
|
698
709
|
};
|
|
699
710
|
}
|
|
700
711
|
//#endregion
|
|
701
712
|
//#region src/components/features/filters/partials/async-filter-content.tsx
|
|
702
713
|
function we({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onClose: a, isFromMainFilterButton: s = !1 }) {
|
|
703
|
-
let { strings: c, cacheAsyncOptions: l, getAsyncOptionLabel: u } =
|
|
714
|
+
let { strings: c, cacheAsyncOptions: l, getAsyncOptionLabel: u } = X(), [d, f] = A(""), [m, b] = A(t ?? []), x = k(t);
|
|
704
715
|
t !== x.current && (x.current = t, b(t ?? []));
|
|
705
|
-
let { options: S, isLoading: C, isFetching: w, isError: T, refetch:
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
716
|
+
let { options: S, isLoading: C, isFetching: w, isError: T, refetch: D, isBelowMinQuery: j, minQueryLength: M } = Ce(e, d, !0);
|
|
717
|
+
E(() => {
|
|
718
|
+
S.length > 0 && l(e.key, S);
|
|
719
|
+
}, [
|
|
720
|
+
l,
|
|
721
|
+
e.key,
|
|
722
|
+
S
|
|
723
|
+
]);
|
|
724
|
+
let N = e.multiple !== !1, z = e.maxSelected, B = !!s, V = O(() => {
|
|
725
|
+
let t = new Set(m), n = new Set(S.map((e) => e.value)), r = [];
|
|
726
|
+
for (let t of m) if (!n.has(t)) {
|
|
710
727
|
let n = u(e.key, t);
|
|
711
728
|
n && r.push({
|
|
712
729
|
value: t,
|
|
@@ -717,81 +734,81 @@ function we({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
717
734
|
return [...r, ...S].sort((e, n) => !t.has(e.value) - +!t.has(n.value));
|
|
718
735
|
}, [
|
|
719
736
|
S,
|
|
720
|
-
|
|
737
|
+
m,
|
|
721
738
|
e.key,
|
|
722
739
|
e.icon,
|
|
723
740
|
u
|
|
724
|
-
]),
|
|
725
|
-
if (
|
|
741
|
+
]), H = (t) => {
|
|
742
|
+
if (N) if (m.includes(t)) b(m.filter((e) => e !== t));
|
|
726
743
|
else {
|
|
727
|
-
if (
|
|
728
|
-
b([...
|
|
744
|
+
if (z && m.length >= z) return;
|
|
745
|
+
b([...m, t]);
|
|
729
746
|
}
|
|
730
747
|
else b([t]), e.closeOnSelect === !0 && (n([t]), a());
|
|
731
748
|
}, te = () => {
|
|
732
|
-
n(
|
|
733
|
-
},
|
|
749
|
+
n(m), a();
|
|
750
|
+
}, W = O(() => C || w ? /* @__PURE__ */ I("div", {
|
|
734
751
|
className: "flex items-center justify-center gap-2 py-4",
|
|
735
|
-
children: [/* @__PURE__ */
|
|
752
|
+
children: [/* @__PURE__ */ F(U, { className: "text-muted-foreground size-4 animate-spin" }), /* @__PURE__ */ F(r, {
|
|
736
753
|
tag: "span",
|
|
737
754
|
size: "xs",
|
|
738
755
|
type: "secondary",
|
|
739
756
|
children: c.searching
|
|
740
757
|
})]
|
|
741
|
-
}) : T ? /* @__PURE__ */
|
|
758
|
+
}) : T ? /* @__PURE__ */ I("div", {
|
|
742
759
|
className: "flex flex-col items-center gap-2 py-4",
|
|
743
|
-
children: [/* @__PURE__ */
|
|
760
|
+
children: [/* @__PURE__ */ I("div", {
|
|
744
761
|
className: "flex items-center gap-1.5",
|
|
745
|
-
children: [/* @__PURE__ */
|
|
762
|
+
children: [/* @__PURE__ */ F(L, { className: "text-destructive size-4" }), /* @__PURE__ */ F(r, {
|
|
746
763
|
tag: "span",
|
|
747
764
|
size: "xs",
|
|
748
765
|
type: "secondary",
|
|
749
766
|
children: c.fetchError
|
|
750
767
|
})]
|
|
751
|
-
}), /* @__PURE__ */
|
|
768
|
+
}), /* @__PURE__ */ F(o, {
|
|
752
769
|
variant: "secondary",
|
|
753
770
|
buttonStyle: "outline",
|
|
754
771
|
size: "xs",
|
|
755
772
|
onClick: (e) => {
|
|
756
|
-
e.stopPropagation(),
|
|
773
|
+
e.stopPropagation(), D();
|
|
757
774
|
},
|
|
758
775
|
children: c.retryFetch
|
|
759
776
|
})]
|
|
760
|
-
}) :
|
|
777
|
+
}) : j ? /* @__PURE__ */ F("div", {
|
|
761
778
|
className: "text-muted-foreground flex items-center justify-center py-4",
|
|
762
|
-
children: /* @__PURE__ */
|
|
779
|
+
children: /* @__PURE__ */ F(r, {
|
|
763
780
|
tag: "span",
|
|
764
781
|
size: "xs",
|
|
765
782
|
type: "secondary",
|
|
766
|
-
children:
|
|
783
|
+
children: G(c.minQueryHint, { min: M })
|
|
767
784
|
})
|
|
768
785
|
}) : c.noOptionsFound, [
|
|
769
786
|
C,
|
|
770
787
|
w,
|
|
771
788
|
T,
|
|
772
|
-
A,
|
|
773
789
|
j,
|
|
790
|
+
M,
|
|
774
791
|
c,
|
|
775
|
-
|
|
792
|
+
D
|
|
776
793
|
]);
|
|
777
|
-
return /* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
794
|
+
return /* @__PURE__ */ I(P, { children: [
|
|
795
|
+
/* @__PURE__ */ I("div", {
|
|
779
796
|
className: "flex items-center border-b p-2",
|
|
780
|
-
children: [!!
|
|
797
|
+
children: [!!B && /* @__PURE__ */ F(o, {
|
|
781
798
|
variant: "secondary",
|
|
782
799
|
buttonStyle: "ghost",
|
|
783
800
|
className: "mr-2 h-8 w-8 p-0",
|
|
784
801
|
onClick: i,
|
|
785
802
|
"aria-label": c.backToFilters,
|
|
786
|
-
children: /* @__PURE__ */
|
|
787
|
-
}), /* @__PURE__ */
|
|
803
|
+
children: /* @__PURE__ */ F(R, { className: "h-4 w-4" })
|
|
804
|
+
}), /* @__PURE__ */ I("div", {
|
|
788
805
|
className: "flex flex-col",
|
|
789
|
-
children: [/* @__PURE__ */
|
|
806
|
+
children: [/* @__PURE__ */ F(r, {
|
|
790
807
|
tag: "span",
|
|
791
808
|
size: "xs",
|
|
792
809
|
weight: "semibold",
|
|
793
810
|
children: e.label
|
|
794
|
-
}), /* @__PURE__ */
|
|
811
|
+
}), /* @__PURE__ */ F(r, {
|
|
795
812
|
tag: "span",
|
|
796
813
|
size: "xs",
|
|
797
814
|
type: "secondary",
|
|
@@ -799,51 +816,51 @@ function we({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
799
816
|
})]
|
|
800
817
|
})]
|
|
801
818
|
}),
|
|
802
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ I(y, {
|
|
803
820
|
shouldFilter: !1,
|
|
804
|
-
children: [/* @__PURE__ */
|
|
805
|
-
placeholder:
|
|
821
|
+
children: [/* @__PURE__ */ F(p, {
|
|
822
|
+
placeholder: G(c.searchPlaceholder, { filterLabel: e.label.toLowerCase() }),
|
|
806
823
|
value: d,
|
|
807
|
-
onValueChange:
|
|
808
|
-
}), /* @__PURE__ */
|
|
824
|
+
onValueChange: f
|
|
825
|
+
}), /* @__PURE__ */ F(h, { children: V.length === 0 ? /* @__PURE__ */ F(_, { children: W }) : /* @__PURE__ */ I(v, { children: [!!(w && !C) && /* @__PURE__ */ I("div", {
|
|
809
826
|
className: "flex items-center gap-1.5 px-2 py-1",
|
|
810
|
-
children: [/* @__PURE__ */
|
|
827
|
+
children: [/* @__PURE__ */ F(U, { className: "text-muted-foreground size-3 animate-spin" }), /* @__PURE__ */ F(r, {
|
|
811
828
|
tag: "span",
|
|
812
829
|
size: "xs",
|
|
813
830
|
type: "secondary",
|
|
814
831
|
children: c.searching
|
|
815
832
|
})]
|
|
816
|
-
}),
|
|
817
|
-
onSelect: () =>
|
|
818
|
-
disabled: e.disabled || !!
|
|
833
|
+
}), V.map((e) => /* @__PURE__ */ I(g, {
|
|
834
|
+
onSelect: () => H(e.value),
|
|
835
|
+
disabled: e.disabled || !!z && m.length >= z && !m.includes(e.value),
|
|
819
836
|
className: "flex items-center gap-2",
|
|
820
837
|
children: [
|
|
821
838
|
e.icon,
|
|
822
|
-
/* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ F(r, {
|
|
823
840
|
tag: "span",
|
|
824
841
|
size: "xs",
|
|
825
842
|
children: e.label
|
|
826
843
|
}),
|
|
827
|
-
|
|
844
|
+
m.includes(e.value) && /* @__PURE__ */ F("span", {
|
|
828
845
|
className: "ml-auto",
|
|
829
|
-
children: /* @__PURE__ */
|
|
846
|
+
children: /* @__PURE__ */ F(ee, { className: "h-4 w-4" })
|
|
830
847
|
})
|
|
831
848
|
]
|
|
832
849
|
}, e.value))] }) })]
|
|
833
850
|
}),
|
|
834
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ I("div", {
|
|
835
852
|
className: "flex justify-between border-t p-2",
|
|
836
|
-
children: [/* @__PURE__ */
|
|
853
|
+
children: [/* @__PURE__ */ F(r, {
|
|
837
854
|
tag: "span",
|
|
838
855
|
size: "xs",
|
|
839
856
|
type: "secondary",
|
|
840
|
-
children:
|
|
841
|
-
count:
|
|
842
|
-
filterLabel: (
|
|
857
|
+
children: G(c.selected, {
|
|
858
|
+
count: m.length,
|
|
859
|
+
filterLabel: (m.length > 1 ? e.pluralLabel : e.label) ?? e.label
|
|
843
860
|
})
|
|
844
|
-
}), /* @__PURE__ */
|
|
861
|
+
}), /* @__PURE__ */ F("div", {
|
|
845
862
|
className: "flex gap-2",
|
|
846
|
-
children: /* @__PURE__ */
|
|
863
|
+
children: /* @__PURE__ */ F(o, {
|
|
847
864
|
variant: "secondary",
|
|
848
865
|
buttonStyle: "outline",
|
|
849
866
|
size: "xs",
|
|
@@ -858,10 +875,10 @@ function we({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
858
875
|
//#region src/components/features/filters/facets/date-facet.tsx
|
|
859
876
|
var Te = [];
|
|
860
877
|
function Ee({ filter: e, value: t, onChange: r, className: i }) {
|
|
861
|
-
let { strings: a } =
|
|
878
|
+
let { strings: a } = X(), o = e.operators?.some((e) => e.value === "between") || e.operator === "between" || e.key.toLowerCase().includes("range") || e.key.toLowerCase().includes("between"), s = e.dateFormat?.param ?? "yyyy-MM-dd", l = e.dateFormat?.display ?? "PPP", u = o ? e.datePickerConfig?.noRangePlaceholder ?? e.placeholder ?? a.calendar.notDateRangeSelected : e.datePickerConfig?.noDatePlaceholder ?? e.placeholder ?? a.calendar.notDateSelected, d = !!e.datePickerConfig?.showConfirmButton, f = e.datePickerConfig?.autoApply ?? !d, p = e.datePickerConfig?.showShortcuts ?? !0, m = o && (t.start || t.end) ? {
|
|
862
879
|
from: t.start,
|
|
863
880
|
to: t.end
|
|
864
|
-
} : void 0, h = !o && t.start &&
|
|
881
|
+
} : void 0, h = !o && t.start && M(t.start) ? t.start : void 0, g = {
|
|
865
882
|
format: s,
|
|
866
883
|
readableFormat: l,
|
|
867
884
|
placeholder: u,
|
|
@@ -869,7 +886,7 @@ function Ee({ filter: e, value: t, onChange: r, className: i }) {
|
|
|
869
886
|
numberOfMonths: 1,
|
|
870
887
|
className: n("date-facet--component", "w-full", i)
|
|
871
888
|
};
|
|
872
|
-
return o ? /* @__PURE__ */
|
|
889
|
+
return o ? /* @__PURE__ */ F(c, {
|
|
873
890
|
mode: "range",
|
|
874
891
|
value: m,
|
|
875
892
|
onChange: (e) => {
|
|
@@ -882,7 +899,7 @@ function Ee({ filter: e, value: t, onChange: r, className: i }) {
|
|
|
882
899
|
closeOnSelect: f,
|
|
883
900
|
presets: p ? void 0 : Te,
|
|
884
901
|
...g
|
|
885
|
-
}) : /* @__PURE__ */
|
|
902
|
+
}) : /* @__PURE__ */ F(c, {
|
|
886
903
|
mode: "single",
|
|
887
904
|
value: h,
|
|
888
905
|
onChange: (e) => {
|
|
@@ -898,16 +915,16 @@ function Ee({ filter: e, value: t, onChange: r, className: i }) {
|
|
|
898
915
|
//#endregion
|
|
899
916
|
//#region src/components/features/filters/partials/date-filter-content.tsx
|
|
900
917
|
function De({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, isFromMainFilterButton: a = !1 }) {
|
|
901
|
-
let { strings: s } =
|
|
918
|
+
let { strings: s } = X(), c = (t) => {
|
|
902
919
|
if (!t) return;
|
|
903
920
|
if (e.dateFormat?.param) {
|
|
904
|
-
let n =
|
|
905
|
-
return
|
|
921
|
+
let n = N(t, e.dateFormat.param, /* @__PURE__ */ new Date());
|
|
922
|
+
return M(n) ? n : void 0;
|
|
906
923
|
}
|
|
907
924
|
let n = new Date(t);
|
|
908
|
-
return
|
|
925
|
+
return M(n) ? n : void 0;
|
|
909
926
|
}, l = c(t[0]), u = c(t[1]), d = (t) => {
|
|
910
|
-
if (!(!t || !
|
|
927
|
+
if (!(!t || !M(t))) return j(t, e.dateFormat?.param ?? "yyyy-MM-dd");
|
|
911
928
|
}, f = ({ start: e, end: t }) => {
|
|
912
929
|
let r = [], i = d(e), a = d(t);
|
|
913
930
|
i && r.push(i), a && r.push(a), n(r);
|
|
@@ -915,11 +932,11 @@ function De({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, isF
|
|
|
915
932
|
start: l,
|
|
916
933
|
end: u
|
|
917
934
|
};
|
|
918
|
-
return /* @__PURE__ */
|
|
935
|
+
return /* @__PURE__ */ I("div", {
|
|
919
936
|
className: "flex flex-col",
|
|
920
|
-
children: [/* @__PURE__ */
|
|
937
|
+
children: [/* @__PURE__ */ I("div", {
|
|
921
938
|
className: "flex items-center gap-2 border-b border-border/60 px-3 py-2.5",
|
|
922
|
-
children: [!!p && /* @__PURE__ */
|
|
939
|
+
children: [!!p && /* @__PURE__ */ F(o, {
|
|
923
940
|
type: "button",
|
|
924
941
|
variant: "secondary",
|
|
925
942
|
buttonStyle: "ghost",
|
|
@@ -927,16 +944,16 @@ function De({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, isF
|
|
|
927
944
|
onClick: i,
|
|
928
945
|
className: "inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
929
946
|
"aria-label": s.backToFilters,
|
|
930
|
-
children: /* @__PURE__ */
|
|
931
|
-
}), /* @__PURE__ */
|
|
947
|
+
children: /* @__PURE__ */ F(R, { className: "size-3.5" })
|
|
948
|
+
}), /* @__PURE__ */ F(r, {
|
|
932
949
|
tag: "span",
|
|
933
950
|
weight: "semibold",
|
|
934
951
|
className: "truncate",
|
|
935
952
|
children: e.label
|
|
936
953
|
})]
|
|
937
|
-
}), /* @__PURE__ */
|
|
954
|
+
}), /* @__PURE__ */ F("div", {
|
|
938
955
|
className: "p-2",
|
|
939
|
-
children: /* @__PURE__ */
|
|
956
|
+
children: /* @__PURE__ */ F(Ee, {
|
|
940
957
|
filter: e,
|
|
941
958
|
value: m,
|
|
942
959
|
onChange: f
|
|
@@ -946,7 +963,7 @@ function De({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, isF
|
|
|
946
963
|
}
|
|
947
964
|
//#endregion
|
|
948
965
|
//#region src/components/features/filters/partials/filter-error-boundary.tsx
|
|
949
|
-
var Oe = class extends
|
|
966
|
+
var Oe = class extends S {
|
|
950
967
|
state = {
|
|
951
968
|
hasError: !1,
|
|
952
969
|
error: null
|
|
@@ -973,16 +990,16 @@ var Oe = class extends x {
|
|
|
973
990
|
render() {
|
|
974
991
|
if (this.state.hasError) {
|
|
975
992
|
let { fallback: e, filterKey: t, labels: n } = this.props;
|
|
976
|
-
return e || /* @__PURE__ */
|
|
993
|
+
return e || /* @__PURE__ */ I("div", {
|
|
977
994
|
className: "rounded-md border border-destructive/30 bg-destructive/10 p-3 text-xs text-destructive",
|
|
978
995
|
children: [
|
|
979
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ I("div", {
|
|
980
997
|
className: "mb-1 flex items-center justify-between",
|
|
981
|
-
children: [/* @__PURE__ */
|
|
998
|
+
children: [/* @__PURE__ */ F(r, {
|
|
982
999
|
tag: "span",
|
|
983
1000
|
weight: "semibold",
|
|
984
1001
|
children: n.title
|
|
985
|
-
}), /* @__PURE__ */
|
|
1002
|
+
}), /* @__PURE__ */ F(o, {
|
|
986
1003
|
type: "button",
|
|
987
1004
|
variant: "error",
|
|
988
1005
|
buttonStyle: "ghost",
|
|
@@ -990,14 +1007,14 @@ var Oe = class extends x {
|
|
|
990
1007
|
onClick: this.handleReset,
|
|
991
1008
|
className: "size-6 rounded-full p-0",
|
|
992
1009
|
"aria-label": n.reset,
|
|
993
|
-
children: /* @__PURE__ */
|
|
1010
|
+
children: /* @__PURE__ */ F(W, { className: "h-4 w-4" })
|
|
994
1011
|
})]
|
|
995
1012
|
}),
|
|
996
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ F(r, {
|
|
997
1014
|
size: "xs",
|
|
998
1015
|
children: n.getDescription(t)
|
|
999
1016
|
}),
|
|
1000
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ F(r, {
|
|
1001
1018
|
size: "xs",
|
|
1002
1019
|
type: "error",
|
|
1003
1020
|
className: "mt-1 font-mono",
|
|
@@ -1009,14 +1026,14 @@ var Oe = class extends x {
|
|
|
1009
1026
|
return this.props.children;
|
|
1010
1027
|
}
|
|
1011
1028
|
};
|
|
1012
|
-
function
|
|
1013
|
-
let { strings: t } =
|
|
1029
|
+
function Q(e) {
|
|
1030
|
+
let { strings: t } = X(), n = O(() => ({
|
|
1014
1031
|
title: t.error.title,
|
|
1015
1032
|
reset: t.clear,
|
|
1016
|
-
getDescription: (e) => e ?
|
|
1033
|
+
getDescription: (e) => e ? G(t.error.descriptionWithKey, { filterKey: e }) : t.error.generic,
|
|
1017
1034
|
unknownError: t.error.unknown
|
|
1018
1035
|
}), [t]);
|
|
1019
|
-
return /* @__PURE__ */
|
|
1036
|
+
return /* @__PURE__ */ F(Oe, {
|
|
1020
1037
|
...e,
|
|
1021
1038
|
labels: n
|
|
1022
1039
|
});
|
|
@@ -1024,21 +1041,21 @@ function X(e) {
|
|
|
1024
1041
|
//#endregion
|
|
1025
1042
|
//#region src/components/features/filters/partials/filter-list-item.tsx
|
|
1026
1043
|
function ke({ filter: e, onSelect: t }) {
|
|
1027
|
-
let { strings: n } =
|
|
1028
|
-
return /* @__PURE__ */
|
|
1044
|
+
let { strings: n } = X(), i = e.type === K.DATE ? e.operator === "between" ? n?.selectDateRange : n?.selectDate : e.options ? `${e.options.length} ${n?.options ?? ""}`.trim() : null;
|
|
1045
|
+
return /* @__PURE__ */ I(g, {
|
|
1029
1046
|
onSelect: t,
|
|
1030
1047
|
className: "flex items-center gap-3 rounded-none px-3 py-2",
|
|
1031
|
-
children: [!!e.icon && /* @__PURE__ */
|
|
1048
|
+
children: [!!e.icon && /* @__PURE__ */ F("span", {
|
|
1032
1049
|
className: "shrink-0 text-muted-foreground",
|
|
1033
1050
|
children: e.icon
|
|
1034
|
-
}), /* @__PURE__ */
|
|
1051
|
+
}), /* @__PURE__ */ I("div", {
|
|
1035
1052
|
className: "flex min-w-0 flex-col leading-tight",
|
|
1036
|
-
children: [/* @__PURE__ */
|
|
1053
|
+
children: [/* @__PURE__ */ F(r, {
|
|
1037
1054
|
tag: "span",
|
|
1038
1055
|
weight: "semibold",
|
|
1039
1056
|
className: "truncate",
|
|
1040
1057
|
children: e.label
|
|
1041
|
-
}), !!i && /* @__PURE__ */
|
|
1058
|
+
}), !!i && /* @__PURE__ */ F(r, {
|
|
1042
1059
|
tag: "span",
|
|
1043
1060
|
size: "xs",
|
|
1044
1061
|
type: "secondary",
|
|
@@ -1051,36 +1068,36 @@ function ke({ filter: e, onSelect: t }) {
|
|
|
1051
1068
|
//#endregion
|
|
1052
1069
|
//#region src/components/features/filters/partials/filter-list-content.tsx
|
|
1053
1070
|
function Ae({ availableFilters: e, activeFilters: t, onFilterSelect: n }) {
|
|
1054
|
-
let { strings: r } =
|
|
1071
|
+
let { strings: r } = X(), i = (e) => {
|
|
1055
1072
|
n(e);
|
|
1056
1073
|
}, a = "[&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:pb-1 [&_[cmdk-group-heading]]:pt-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-wider [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:font-medium";
|
|
1057
|
-
return /* @__PURE__ */
|
|
1074
|
+
return /* @__PURE__ */ I(y, {
|
|
1058
1075
|
className: "rounded-none p-0",
|
|
1059
|
-
children: [/* @__PURE__ */
|
|
1076
|
+
children: [/* @__PURE__ */ F("div", {
|
|
1060
1077
|
className: "border-b border-border/50 px-3 py-2",
|
|
1061
|
-
children: /* @__PURE__ */
|
|
1078
|
+
children: /* @__PURE__ */ F(p, {
|
|
1062
1079
|
className: "text-xs",
|
|
1063
1080
|
placeholder: r.searchFilters
|
|
1064
1081
|
})
|
|
1065
|
-
}), /* @__PURE__ */
|
|
1082
|
+
}), /* @__PURE__ */ I(h, {
|
|
1066
1083
|
className: "max-h-72 py-1",
|
|
1067
1084
|
children: [
|
|
1068
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ F(_, {
|
|
1069
1086
|
className: "px-3 py-4 text-center text-xs text-muted-foreground",
|
|
1070
1087
|
children: r.noFiltersAvailable
|
|
1071
1088
|
}),
|
|
1072
|
-
e.length > 0 && /* @__PURE__ */
|
|
1089
|
+
e.length > 0 && /* @__PURE__ */ F(v, {
|
|
1073
1090
|
heading: r.availableFilters,
|
|
1074
1091
|
className: `p-0 ${a}`,
|
|
1075
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1092
|
+
children: e.map((e) => /* @__PURE__ */ F(ke, {
|
|
1076
1093
|
filter: e,
|
|
1077
1094
|
onSelect: () => i(e)
|
|
1078
1095
|
}, e.key))
|
|
1079
1096
|
}),
|
|
1080
|
-
t.length > 0 && /* @__PURE__ */
|
|
1097
|
+
t.length > 0 && /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F(m, { className: "my-1" }), /* @__PURE__ */ F(v, {
|
|
1081
1098
|
heading: r.activeFilters,
|
|
1082
1099
|
className: `p-0 ${a}`,
|
|
1083
|
-
children: t.map((e) => /* @__PURE__ */
|
|
1100
|
+
children: t.map((e) => /* @__PURE__ */ F(ke, {
|
|
1084
1101
|
filter: e,
|
|
1085
1102
|
onSelect: () => i(e)
|
|
1086
1103
|
}, e.key))
|
|
@@ -1092,23 +1109,23 @@ function Ae({ availableFilters: e, activeFilters: t, onFilterSelect: n }) {
|
|
|
1092
1109
|
//#endregion
|
|
1093
1110
|
//#region src/components/features/filters/partials/regular-filter-content.tsx
|
|
1094
1111
|
function je({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onClose: a, isFromMainFilterButton: s = !1 }) {
|
|
1095
|
-
let { strings: c } =
|
|
1096
|
-
|
|
1097
|
-
|
|
1112
|
+
let { strings: c } = X(), l = e.multiple === !0 || e.type === K.MULTI_SELECT, u = !!s, [d, f] = A(t || []);
|
|
1113
|
+
E(() => {
|
|
1114
|
+
f(t || []);
|
|
1098
1115
|
}, [t]);
|
|
1099
|
-
let
|
|
1100
|
-
l ?
|
|
1116
|
+
let m = (t) => {
|
|
1117
|
+
l ? f(d.includes(t) ? d.filter((e) => e !== t) : [...d, t]) : (f([t]), e.closeOnSelect === !0 && (n([t]), a()));
|
|
1101
1118
|
}, b = () => {
|
|
1102
1119
|
try {
|
|
1103
1120
|
n(d), a();
|
|
1104
1121
|
} catch {}
|
|
1105
1122
|
}, x = JSON.stringify(d.slice().sort()) !== JSON.stringify((t ?? []).slice().sort());
|
|
1106
|
-
return /* @__PURE__ */
|
|
1123
|
+
return /* @__PURE__ */ I("div", {
|
|
1107
1124
|
className: "flex flex-col",
|
|
1108
1125
|
children: [
|
|
1109
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ I("div", {
|
|
1110
1127
|
className: "flex items-center gap-2 border-b border-border/60 px-3 py-2.5",
|
|
1111
|
-
children: [!!u && /* @__PURE__ */
|
|
1128
|
+
children: [!!u && /* @__PURE__ */ F(o, {
|
|
1112
1129
|
type: "button",
|
|
1113
1130
|
variant: "secondary",
|
|
1114
1131
|
buttonStyle: "ghost",
|
|
@@ -1116,8 +1133,8 @@ function je({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
1116
1133
|
onClick: i,
|
|
1117
1134
|
className: "inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
1118
1135
|
"aria-label": c.backToFilters,
|
|
1119
|
-
children: /* @__PURE__ */
|
|
1120
|
-
}), /* @__PURE__ */
|
|
1136
|
+
children: /* @__PURE__ */ F(R, { className: "size-3.5" })
|
|
1137
|
+
}), /* @__PURE__ */ F(r, {
|
|
1121
1138
|
tag: "span",
|
|
1122
1139
|
size: "xs",
|
|
1123
1140
|
weight: "semibold",
|
|
@@ -1125,43 +1142,43 @@ function je({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
1125
1142
|
children: e.label
|
|
1126
1143
|
})]
|
|
1127
1144
|
}),
|
|
1128
|
-
/* @__PURE__ */
|
|
1145
|
+
/* @__PURE__ */ I(y, {
|
|
1129
1146
|
className: "rounded-none p-0",
|
|
1130
|
-
children: [/* @__PURE__ */
|
|
1147
|
+
children: [/* @__PURE__ */ F("div", {
|
|
1131
1148
|
className: "border-b border-border/50 px-3 py-2.5",
|
|
1132
|
-
children: /* @__PURE__ */
|
|
1149
|
+
children: /* @__PURE__ */ F(p, {
|
|
1133
1150
|
className: "text-xs",
|
|
1134
|
-
placeholder:
|
|
1151
|
+
placeholder: G(c.searchPlaceholder, { filterLabel: e.label.toLowerCase() })
|
|
1135
1152
|
})
|
|
1136
|
-
}), /* @__PURE__ */
|
|
1153
|
+
}), /* @__PURE__ */ I(h, {
|
|
1137
1154
|
className: "max-h-64 px-3 py-2",
|
|
1138
|
-
children: [/* @__PURE__ */
|
|
1155
|
+
children: [/* @__PURE__ */ F(_, { children: /* @__PURE__ */ F(r, {
|
|
1139
1156
|
size: "xs",
|
|
1140
1157
|
type: "secondary",
|
|
1141
1158
|
align: "center",
|
|
1142
1159
|
className: "py-4",
|
|
1143
1160
|
children: c.noOptionsFound
|
|
1144
|
-
}) }), /* @__PURE__ */
|
|
1161
|
+
}) }), /* @__PURE__ */ F(v, {
|
|
1145
1162
|
className: "p-0 [&_[cmdk-group]]:p-0",
|
|
1146
1163
|
children: e.options?.map((e) => {
|
|
1147
1164
|
let t = d.includes(e.value);
|
|
1148
|
-
return /* @__PURE__ */
|
|
1149
|
-
onSelect: () =>
|
|
1165
|
+
return /* @__PURE__ */ I(g, {
|
|
1166
|
+
onSelect: () => m(e.value),
|
|
1150
1167
|
"data-checked": t || void 0,
|
|
1151
1168
|
disabled: e.disabled,
|
|
1152
1169
|
className: "flex items-start gap-2.5 rounded-md px-2 py-2 data-[checked=true]:**:[svg]:text-primary",
|
|
1153
|
-
children: [!!e.icon && /* @__PURE__ */
|
|
1170
|
+
children: [!!e.icon && /* @__PURE__ */ F("span", {
|
|
1154
1171
|
className: "mt-0.5 shrink-0 text-muted-foreground",
|
|
1155
1172
|
children: e.icon
|
|
1156
|
-
}), /* @__PURE__ */
|
|
1173
|
+
}), /* @__PURE__ */ I("div", {
|
|
1157
1174
|
className: "flex min-w-0 flex-1 flex-col leading-tight",
|
|
1158
|
-
children: [/* @__PURE__ */
|
|
1175
|
+
children: [/* @__PURE__ */ F(r, {
|
|
1159
1176
|
tag: "span",
|
|
1160
1177
|
size: "xs",
|
|
1161
1178
|
weight: t ? "medium" : "regular",
|
|
1162
1179
|
className: "truncate",
|
|
1163
1180
|
children: e.label
|
|
1164
|
-
}), !!e.description && /* @__PURE__ */
|
|
1181
|
+
}), !!e.description && /* @__PURE__ */ F(r, {
|
|
1165
1182
|
tag: "span",
|
|
1166
1183
|
size: "xxs",
|
|
1167
1184
|
type: "secondary",
|
|
@@ -1174,18 +1191,18 @@ function je({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
1174
1191
|
})]
|
|
1175
1192
|
})]
|
|
1176
1193
|
}),
|
|
1177
|
-
!!x && /* @__PURE__ */
|
|
1194
|
+
!!x && /* @__PURE__ */ I("div", {
|
|
1178
1195
|
className: "flex items-center justify-between gap-2 border-t border-border/60 px-2.5 py-1.5",
|
|
1179
|
-
children: [/* @__PURE__ */
|
|
1196
|
+
children: [/* @__PURE__ */ F(r, {
|
|
1180
1197
|
tag: "span",
|
|
1181
1198
|
size: "xxs",
|
|
1182
1199
|
type: "secondary",
|
|
1183
1200
|
className: "tabular-nums",
|
|
1184
|
-
children:
|
|
1201
|
+
children: G(c.selected, {
|
|
1185
1202
|
count: d.length,
|
|
1186
1203
|
filterLabel: (d.length > 1 ? e.pluralLabel : e.label) ?? e.label
|
|
1187
1204
|
})
|
|
1188
|
-
}), /* @__PURE__ */
|
|
1205
|
+
}), /* @__PURE__ */ F(o, {
|
|
1189
1206
|
variant: "primary",
|
|
1190
1207
|
size: "xs",
|
|
1191
1208
|
onClick: b,
|
|
@@ -1198,24 +1215,24 @@ function je({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
1198
1215
|
//#endregion
|
|
1199
1216
|
//#region src/components/features/filters/facets/tags-facet.tsx
|
|
1200
1217
|
function Me({ filter: e, value: t, onChange: i, className: c }) {
|
|
1201
|
-
let { strings: l } =
|
|
1218
|
+
let { strings: l } = X(), [u, d] = A(""), f = w(() => {
|
|
1202
1219
|
let e = u.trim();
|
|
1203
1220
|
!e || t.includes(e) || (i([...t, e]), d(""));
|
|
1204
1221
|
}, [
|
|
1205
1222
|
u,
|
|
1206
1223
|
t,
|
|
1207
1224
|
i
|
|
1208
|
-
]), p =
|
|
1225
|
+
]), p = w((e) => {
|
|
1209
1226
|
i(t.filter((t) => t !== e));
|
|
1210
1227
|
}, [t, i]), m = (e) => {
|
|
1211
1228
|
e.key === "Enter" && (e.preventDefault(), f());
|
|
1212
|
-
}, h =
|
|
1229
|
+
}, h = w(() => {
|
|
1213
1230
|
i([]), d("");
|
|
1214
|
-
}, [i]), g = t.length > 0, _ = t.length === 1 ? l.tag : l.tags, v = g ? /* @__PURE__ */
|
|
1231
|
+
}, [i]), g = t.length > 0, _ = t.length === 1 ? l.tag : l.tags, v = g ? /* @__PURE__ */ I("div", {
|
|
1215
1232
|
className: "space-y-2",
|
|
1216
|
-
children: [/* @__PURE__ */
|
|
1233
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1217
1234
|
className: "flex items-center justify-between",
|
|
1218
|
-
children: [/* @__PURE__ */
|
|
1235
|
+
children: [/* @__PURE__ */ I(r, {
|
|
1219
1236
|
tag: "span",
|
|
1220
1237
|
size: "xs",
|
|
1221
1238
|
type: "secondary",
|
|
@@ -1224,7 +1241,7 @@ function Me({ filter: e, value: t, onChange: i, className: c }) {
|
|
|
1224
1241
|
" ",
|
|
1225
1242
|
_
|
|
1226
1243
|
]
|
|
1227
|
-
}), /* @__PURE__ */
|
|
1244
|
+
}), /* @__PURE__ */ F(o, {
|
|
1228
1245
|
onClick: h,
|
|
1229
1246
|
variant: "secondary",
|
|
1230
1247
|
buttonStyle: "ghost",
|
|
@@ -1234,16 +1251,16 @@ function Me({ filter: e, value: t, onChange: i, className: c }) {
|
|
|
1234
1251
|
"aria-label": l.clearAll,
|
|
1235
1252
|
children: l.clearAll
|
|
1236
1253
|
})]
|
|
1237
|
-
}), /* @__PURE__ */
|
|
1254
|
+
}), /* @__PURE__ */ F("div", {
|
|
1238
1255
|
className: "flex flex-wrap gap-2",
|
|
1239
|
-
children: t.map((e) => /* @__PURE__ */
|
|
1256
|
+
children: t.map((e) => /* @__PURE__ */ I(a, {
|
|
1240
1257
|
variant: "secondary",
|
|
1241
1258
|
className: "flex items-center gap-1 py-1 pl-2 pr-1",
|
|
1242
|
-
children: [/* @__PURE__ */
|
|
1259
|
+
children: [/* @__PURE__ */ F(r, {
|
|
1243
1260
|
tag: "span",
|
|
1244
1261
|
size: "xs",
|
|
1245
1262
|
children: e
|
|
1246
|
-
}), /* @__PURE__ */
|
|
1263
|
+
}), /* @__PURE__ */ F(o, {
|
|
1247
1264
|
onClick: () => p(e),
|
|
1248
1265
|
variant: "secondary",
|
|
1249
1266
|
buttonStyle: "ghost",
|
|
@@ -1251,18 +1268,18 @@ function Me({ filter: e, value: t, onChange: i, className: c }) {
|
|
|
1251
1268
|
className: "ml-1 size-4 rounded-full p-0 hover:bg-muted-foreground/20",
|
|
1252
1269
|
type: "button",
|
|
1253
1270
|
"aria-label": `${l.removeTag} ${e}`,
|
|
1254
|
-
children: /* @__PURE__ */
|
|
1271
|
+
children: /* @__PURE__ */ F(W, { className: "h-3 w-3" })
|
|
1255
1272
|
})]
|
|
1256
1273
|
}, e))
|
|
1257
1274
|
})]
|
|
1258
1275
|
}) : null;
|
|
1259
|
-
return /* @__PURE__ */
|
|
1276
|
+
return /* @__PURE__ */ I("div", {
|
|
1260
1277
|
className: n("tags-facet--component", "space-y-3", c),
|
|
1261
|
-
children: [/* @__PURE__ */
|
|
1278
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1262
1279
|
className: "flex gap-2",
|
|
1263
|
-
children: [/* @__PURE__ */
|
|
1280
|
+
children: [/* @__PURE__ */ F("div", {
|
|
1264
1281
|
className: "relative flex-1",
|
|
1265
|
-
children: /* @__PURE__ */
|
|
1282
|
+
children: /* @__PURE__ */ F(s, {
|
|
1266
1283
|
type: "text",
|
|
1267
1284
|
value: u,
|
|
1268
1285
|
onChange: (e) => d(e.target.value),
|
|
@@ -1270,13 +1287,13 @@ function Me({ filter: e, value: t, onChange: i, className: c }) {
|
|
|
1270
1287
|
placeholder: e.placeholder ?? l.enterTag,
|
|
1271
1288
|
className: "h-9"
|
|
1272
1289
|
})
|
|
1273
|
-
}), /* @__PURE__ */
|
|
1290
|
+
}), /* @__PURE__ */ I(o, {
|
|
1274
1291
|
onClick: f,
|
|
1275
1292
|
disabled: !u.trim(),
|
|
1276
1293
|
size: "default",
|
|
1277
1294
|
className: "h-9 px-4",
|
|
1278
1295
|
type: "button",
|
|
1279
|
-
children: [/* @__PURE__ */
|
|
1296
|
+
children: [/* @__PURE__ */ F(te, { className: "h-4 w-4" }), /* @__PURE__ */ F("span", {
|
|
1280
1297
|
className: "sr-only",
|
|
1281
1298
|
children: l.addTag
|
|
1282
1299
|
})]
|
|
@@ -1284,13 +1301,13 @@ function Me({ filter: e, value: t, onChange: i, className: c }) {
|
|
|
1284
1301
|
}), v]
|
|
1285
1302
|
});
|
|
1286
1303
|
}
|
|
1287
|
-
var
|
|
1288
|
-
|
|
1304
|
+
var Ne = x.memo(Me);
|
|
1305
|
+
Ne.displayName = "TagsFacet";
|
|
1289
1306
|
//#endregion
|
|
1290
1307
|
//#region src/components/features/filters/partials/tags-filter-content.tsx
|
|
1291
|
-
function
|
|
1292
|
-
let { strings: c } =
|
|
1293
|
-
|
|
1308
|
+
function Pe({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onClose: a, isFromMainFilterButton: s = !1 }) {
|
|
1309
|
+
let { strings: c } = X(), [l, u] = A(t || []), d = !!s, f = l.length === 1 ? c.tag : c.tags;
|
|
1310
|
+
E(() => {
|
|
1294
1311
|
u(t || []);
|
|
1295
1312
|
}, [t]);
|
|
1296
1313
|
let p = () => {
|
|
@@ -1298,12 +1315,12 @@ function Ne({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
1298
1315
|
n(l), a();
|
|
1299
1316
|
} catch {}
|
|
1300
1317
|
}, m = JSON.stringify(l.slice().sort()) !== JSON.stringify((t ?? []).slice().sort());
|
|
1301
|
-
return /* @__PURE__ */
|
|
1318
|
+
return /* @__PURE__ */ I("div", {
|
|
1302
1319
|
className: "flex flex-col",
|
|
1303
1320
|
children: [
|
|
1304
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ I("div", {
|
|
1305
1322
|
className: "flex items-center gap-2 border-b border-border/60 px-3 py-2.5",
|
|
1306
|
-
children: [!!d && /* @__PURE__ */
|
|
1323
|
+
children: [!!d && /* @__PURE__ */ F(o, {
|
|
1307
1324
|
type: "button",
|
|
1308
1325
|
variant: "secondary",
|
|
1309
1326
|
buttonStyle: "ghost",
|
|
@@ -1311,25 +1328,25 @@ function Ne({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
1311
1328
|
onClick: i,
|
|
1312
1329
|
className: "inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
1313
1330
|
"aria-label": c.backToFilters,
|
|
1314
|
-
children: /* @__PURE__ */
|
|
1315
|
-
}), /* @__PURE__ */
|
|
1331
|
+
children: /* @__PURE__ */ F(R, { className: "size-3.5" })
|
|
1332
|
+
}), /* @__PURE__ */ F(r, {
|
|
1316
1333
|
tag: "span",
|
|
1317
1334
|
weight: "semibold",
|
|
1318
1335
|
className: "truncate",
|
|
1319
1336
|
children: e.label
|
|
1320
1337
|
})]
|
|
1321
1338
|
}),
|
|
1322
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ F("div", {
|
|
1323
1340
|
className: "p-2",
|
|
1324
|
-
children: /* @__PURE__ */
|
|
1341
|
+
children: /* @__PURE__ */ F(Ne, {
|
|
1325
1342
|
filter: e,
|
|
1326
1343
|
value: l,
|
|
1327
1344
|
onChange: u
|
|
1328
1345
|
})
|
|
1329
1346
|
}),
|
|
1330
|
-
!!m && /* @__PURE__ */
|
|
1347
|
+
!!m && /* @__PURE__ */ I("div", {
|
|
1331
1348
|
className: "flex items-center justify-between gap-2 border-t border-border/60 px-2.5 py-1.5",
|
|
1332
|
-
children: [/* @__PURE__ */
|
|
1349
|
+
children: [/* @__PURE__ */ I(r, {
|
|
1333
1350
|
tag: "span",
|
|
1334
1351
|
size: "xxs",
|
|
1335
1352
|
type: "secondary",
|
|
@@ -1339,7 +1356,7 @@ function Ne({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
1339
1356
|
" ",
|
|
1340
1357
|
f
|
|
1341
1358
|
]
|
|
1342
|
-
}), /* @__PURE__ */
|
|
1359
|
+
}), /* @__PURE__ */ F(o, {
|
|
1343
1360
|
variant: "primary",
|
|
1344
1361
|
size: "xs",
|
|
1345
1362
|
onClick: p,
|
|
@@ -1351,41 +1368,41 @@ function Ne({ filter: e, value: t, onFilterChange: n, onBackToFilterList: i, onC
|
|
|
1351
1368
|
}
|
|
1352
1369
|
//#endregion
|
|
1353
1370
|
//#region src/components/features/filters/partials/filter-popover-content.tsx
|
|
1354
|
-
function
|
|
1355
|
-
let l = e?.type ===
|
|
1371
|
+
function Fe({ activeFilterInPopover: e, availableFilters: t, activeFilters: n, getFilterValue: r, setFilterValue: i, onFilterSelect: a, onBackToFilterList: o, onClose: s, isFromMainFilterButton: c = !1 }) {
|
|
1372
|
+
let l = e?.type === K.DATE || e?.type === K.TAGS ? "w-auto min-w-[320px] p-0 overflow-hidden rounded-lg shadow-lg" : e?.type === K.ASYNC_SELECT ? "w-72 p-0 overflow-hidden rounded-lg shadow-lg" : "w-64 p-0 overflow-hidden rounded-lg shadow-lg", u = (e, t) => {
|
|
1356
1373
|
i(e, t);
|
|
1357
1374
|
};
|
|
1358
|
-
return /* @__PURE__ */
|
|
1375
|
+
return /* @__PURE__ */ F(f, {
|
|
1359
1376
|
className: l,
|
|
1360
1377
|
align: "start",
|
|
1361
|
-
children: e ? e.type ===
|
|
1378
|
+
children: e ? e.type === K.DATE ? /* @__PURE__ */ F(De, {
|
|
1362
1379
|
filter: e,
|
|
1363
1380
|
value: r(e.key),
|
|
1364
1381
|
onFilterChange: (t) => u(e.key, t),
|
|
1365
1382
|
onBackToFilterList: o,
|
|
1366
1383
|
isFromMainFilterButton: c
|
|
1367
|
-
}) : e.type ===
|
|
1384
|
+
}) : e.type === K.TAGS ? /* @__PURE__ */ F(Pe, {
|
|
1368
1385
|
filter: e,
|
|
1369
1386
|
value: r(e.key),
|
|
1370
1387
|
onFilterChange: (t) => u(e.key, t),
|
|
1371
1388
|
onBackToFilterList: o,
|
|
1372
1389
|
onClose: s,
|
|
1373
1390
|
isFromMainFilterButton: c
|
|
1374
|
-
}) : e.type ===
|
|
1391
|
+
}) : e.type === K.ASYNC_SELECT ? /* @__PURE__ */ F(we, {
|
|
1375
1392
|
filter: e,
|
|
1376
1393
|
value: r(e.key),
|
|
1377
1394
|
onFilterChange: (t) => u(e.key, t),
|
|
1378
1395
|
onBackToFilterList: o,
|
|
1379
1396
|
onClose: s,
|
|
1380
1397
|
isFromMainFilterButton: c
|
|
1381
|
-
}) : /* @__PURE__ */
|
|
1398
|
+
}) : /* @__PURE__ */ F(je, {
|
|
1382
1399
|
filter: e,
|
|
1383
1400
|
value: r(e.key),
|
|
1384
1401
|
onFilterChange: (t) => u(e.key, t),
|
|
1385
1402
|
onBackToFilterList: o,
|
|
1386
1403
|
onClose: s,
|
|
1387
1404
|
isFromMainFilterButton: c
|
|
1388
|
-
}) : /* @__PURE__ */
|
|
1405
|
+
}) : /* @__PURE__ */ F(Ae, {
|
|
1389
1406
|
availableFilters: t,
|
|
1390
1407
|
activeFilters: n,
|
|
1391
1408
|
onFilterSelect: a
|
|
@@ -1394,36 +1411,33 @@ function Pe({ activeFilterInPopover: e, availableFilters: t, activeFilters: n, g
|
|
|
1394
1411
|
}
|
|
1395
1412
|
//#endregion
|
|
1396
1413
|
//#region src/components/features/filters/partials/filter-pill.tsx
|
|
1397
|
-
function
|
|
1398
|
-
let p =
|
|
1399
|
-
return /* @__PURE__ */
|
|
1414
|
+
function $({ filter: e, value: t, isActive: n, operator: r, operators: i, onOperatorChange: a, onValueChange: o, onClear: s, availableFilters: c, activeFilters: d, operatorChangeRef: f }) {
|
|
1415
|
+
let p = k(!1), m = f ?? p, [h, g] = A(!1);
|
|
1416
|
+
return /* @__PURE__ */ F(Q, {
|
|
1400
1417
|
filterKey: e.key,
|
|
1401
|
-
children: /* @__PURE__ */
|
|
1418
|
+
children: /* @__PURE__ */ I(l, {
|
|
1402
1419
|
open: h,
|
|
1403
1420
|
onOpenChange: (e) => {
|
|
1404
1421
|
e && m.current || g(e);
|
|
1405
1422
|
},
|
|
1406
|
-
children: [/* @__PURE__ */
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
}
|
|
1425
|
-
}) })
|
|
1426
|
-
}), /* @__PURE__ */ P(Pe, {
|
|
1423
|
+
children: [/* @__PURE__ */ F(u, { children: /* @__PURE__ */ F(ye, {
|
|
1424
|
+
filter: e,
|
|
1425
|
+
value: t,
|
|
1426
|
+
isActive: n,
|
|
1427
|
+
operators: i,
|
|
1428
|
+
operator: r,
|
|
1429
|
+
onOperatorChange: (e) => {
|
|
1430
|
+
m.current = !0, a(e), g(!1), setTimeout(() => {
|
|
1431
|
+
m.current = !1;
|
|
1432
|
+
}, 100);
|
|
1433
|
+
},
|
|
1434
|
+
onFilterClear: () => {
|
|
1435
|
+
g(!1), s();
|
|
1436
|
+
},
|
|
1437
|
+
onFilterClick: () => {
|
|
1438
|
+
m.current || g(!0);
|
|
1439
|
+
}
|
|
1440
|
+
}) }), /* @__PURE__ */ F(Fe, {
|
|
1427
1441
|
activeFilterInPopover: e,
|
|
1428
1442
|
availableFilters: c,
|
|
1429
1443
|
activeFilters: d,
|
|
@@ -1437,24 +1451,27 @@ function Q({ filter: e, value: t, isActive: n, operator: r, operators: i, onOper
|
|
|
1437
1451
|
})
|
|
1438
1452
|
});
|
|
1439
1453
|
}
|
|
1440
|
-
|
|
1454
|
+
$.displayName = "FilterPill";
|
|
1441
1455
|
//#endregion
|
|
1442
1456
|
//#region src/components/features/filters/partials/filters-button.tsx
|
|
1443
|
-
function
|
|
1444
|
-
let [s, c] =
|
|
1445
|
-
return
|
|
1457
|
+
function Ie({ availableFilters: e, activeFilters: t, activeFilterInPopover: n, getFilterValue: r, setFilterValue: i, setActiveFilterInPopover: a }) {
|
|
1458
|
+
let [s, c] = A(!1), { strings: u } = X();
|
|
1459
|
+
return E(() => {
|
|
1446
1460
|
s || a(null);
|
|
1447
|
-
}, [s, a]), /* @__PURE__ */
|
|
1461
|
+
}, [s, a]), /* @__PURE__ */ I(l, {
|
|
1448
1462
|
open: s,
|
|
1449
1463
|
onOpenChange: c,
|
|
1450
|
-
children: [/* @__PURE__ */
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1464
|
+
children: [/* @__PURE__ */ F(d, {
|
|
1465
|
+
asChild: !0,
|
|
1466
|
+
children: /* @__PURE__ */ F(o, {
|
|
1467
|
+
variant: "secondary",
|
|
1468
|
+
buttonStyle: "outline",
|
|
1469
|
+
size: "default",
|
|
1470
|
+
"aria-label": u.addFilter,
|
|
1471
|
+
className: "flex h-9 items-center gap-1.5",
|
|
1472
|
+
children: /* @__PURE__ */ F(H, { className: "h-4 w-4" })
|
|
1473
|
+
})
|
|
1474
|
+
}), /* @__PURE__ */ F(Fe, {
|
|
1458
1475
|
activeFilterInPopover: n,
|
|
1459
1476
|
availableFilters: e,
|
|
1460
1477
|
activeFilters: t,
|
|
@@ -1475,8 +1492,8 @@ function Fe({ availableFilters: e, activeFilters: t, activeFilterInPopover: n, g
|
|
|
1475
1492
|
}
|
|
1476
1493
|
//#endregion
|
|
1477
1494
|
//#region src/components/features/filters/partials/filter-tabs.tsx
|
|
1478
|
-
function
|
|
1479
|
-
let { activeFilters: t, filters: r, replaceFilters: i } =
|
|
1495
|
+
function Le({ tabs: e }) {
|
|
1496
|
+
let { activeFilters: t, filters: r, replaceFilters: i } = X(), a = O(() => t.filter((e) => r.find((t) => t.key === e.key)?.type !== K.SEARCH), [t, r]), s = O(() => t.filter((e) => r.find((t) => t.key === e.key)?.type === K.SEARCH), [t, r]), c = O(() => {
|
|
1480
1497
|
for (let t of e) {
|
|
1481
1498
|
if (t.presets.length === 0) {
|
|
1482
1499
|
if (a.length === 0) return t.id;
|
|
@@ -1490,13 +1507,13 @@ function Ie({ tabs: e }) {
|
|
|
1490
1507
|
})) return t.id;
|
|
1491
1508
|
}
|
|
1492
1509
|
return null;
|
|
1493
|
-
}, [e, a]), l =
|
|
1510
|
+
}, [e, a]), l = w((e) => {
|
|
1494
1511
|
if (e.presets.length === 0) {
|
|
1495
1512
|
i([...s]);
|
|
1496
1513
|
return;
|
|
1497
1514
|
}
|
|
1498
1515
|
let t = e.presets.map((e) => {
|
|
1499
|
-
let t = r.find((t) => t.key === e.key), n = e.operator ?? t?.operator ?? (t ?
|
|
1516
|
+
let t = r.find((t) => t.key === e.key), n = e.operator ?? t?.operator ?? (t ? le(t.type) : "equals");
|
|
1500
1517
|
return {
|
|
1501
1518
|
id: e.key,
|
|
1502
1519
|
key: e.key,
|
|
@@ -1510,12 +1527,12 @@ function Ie({ tabs: e }) {
|
|
|
1510
1527
|
s,
|
|
1511
1528
|
i
|
|
1512
1529
|
]);
|
|
1513
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
1530
|
+
return e.length === 0 ? null : /* @__PURE__ */ F("div", {
|
|
1514
1531
|
className: "flex flex-wrap gap-1.5",
|
|
1515
1532
|
role: "tablist",
|
|
1516
1533
|
children: e.map((e) => {
|
|
1517
1534
|
let t = c === e.id;
|
|
1518
|
-
return /* @__PURE__ */
|
|
1535
|
+
return /* @__PURE__ */ I(o, {
|
|
1519
1536
|
type: "button",
|
|
1520
1537
|
variant: "secondary",
|
|
1521
1538
|
buttonStyle: "ghost",
|
|
@@ -1524,7 +1541,7 @@ function Ie({ tabs: e }) {
|
|
|
1524
1541
|
"aria-selected": t,
|
|
1525
1542
|
onClick: () => l(e),
|
|
1526
1543
|
className: n("rounded-md px-2.5 py-1 text-xs font-semibold transition-colors", t ? "bg-foreground text-background" : "bg-muted/60 text-muted-foreground hover:bg-muted hover:text-foreground"),
|
|
1527
|
-
children: [e.label, e.count !== void 0 && /* @__PURE__ */
|
|
1544
|
+
children: [e.label, e.count !== void 0 && /* @__PURE__ */ F("span", {
|
|
1528
1545
|
className: n("ml-1 tabular-nums", t ? "text-background/70" : "text-muted-foreground/70"),
|
|
1529
1546
|
children: e.count
|
|
1530
1547
|
})]
|
|
@@ -1534,13 +1551,13 @@ function Ie({ tabs: e }) {
|
|
|
1534
1551
|
}
|
|
1535
1552
|
//#endregion
|
|
1536
1553
|
//#region src/components/features/filters/facets/search-facet.tsx
|
|
1537
|
-
function
|
|
1538
|
-
let { strings: a, isNavigating: c } =
|
|
1554
|
+
function Re({ filter: e, value: t, onChange: r, className: i }) {
|
|
1555
|
+
let { strings: a, isNavigating: c } = X(), [l, u] = A(t[0] || ""), d = k(l);
|
|
1539
1556
|
d.current = l;
|
|
1540
|
-
let f =
|
|
1541
|
-
|
|
1557
|
+
let f = k(!1), p = k(null), m = k(t[0] || null), h = k(!1);
|
|
1558
|
+
E(() => (f.current = !0, () => {
|
|
1542
1559
|
f.current = !1, p.current && clearTimeout(p.current);
|
|
1543
|
-
}), []),
|
|
1560
|
+
}), []), E(() => {
|
|
1544
1561
|
if (h.current || c) return;
|
|
1545
1562
|
let e = d.current;
|
|
1546
1563
|
if (!t.length || t[0] === "") {
|
|
@@ -1549,15 +1566,15 @@ function Le({ filter: e, value: t, onChange: r, className: i }) {
|
|
|
1549
1566
|
}
|
|
1550
1567
|
t[0] !== void 0 && t[0] !== e && t[0] !== m.current && (u(t[0]), m.current = t[0]);
|
|
1551
1568
|
}, [t, c]);
|
|
1552
|
-
let g =
|
|
1569
|
+
let g = w((t) => {
|
|
1553
1570
|
m.current !== t && (p.current &&= (clearTimeout(p.current), null), p.current = setTimeout(() => {
|
|
1554
1571
|
f.current && (m.current = t, h.current = !1, r([t]));
|
|
1555
1572
|
}, e.delay ?? 500));
|
|
1556
1573
|
}, [r, e.delay]);
|
|
1557
|
-
return /* @__PURE__ */
|
|
1574
|
+
return /* @__PURE__ */ I("div", {
|
|
1558
1575
|
className: n("search-facet--component", "search-facet relative w-full min-w-0 bg-background sm:min-w-80", i),
|
|
1559
1576
|
children: [
|
|
1560
|
-
/* @__PURE__ */
|
|
1577
|
+
/* @__PURE__ */ F(s, {
|
|
1561
1578
|
type: "text",
|
|
1562
1579
|
value: l,
|
|
1563
1580
|
onChange: (e) => {
|
|
@@ -1575,11 +1592,11 @@ function Le({ filter: e, value: t, onChange: r, className: i }) {
|
|
|
1575
1592
|
},
|
|
1576
1593
|
placeholder: e.placeholder ?? (() => {
|
|
1577
1594
|
let t = e.label.trim().toLowerCase();
|
|
1578
|
-
return !t || t === "search" ?
|
|
1595
|
+
return !t || t === "search" ? G(a.searchPlaceholder, { filterLabel: "" }).replace(/\s+([….?!])/g, "$1").replace(/\s{2,}/g, " ").trim() : G(a.searchPlaceholder, { filterLabel: t });
|
|
1579
1596
|
})(),
|
|
1580
1597
|
className: "w-full pr-9"
|
|
1581
1598
|
}),
|
|
1582
|
-
l.trim() !== "" && !c && /* @__PURE__ */
|
|
1599
|
+
l.trim() !== "" && !c && /* @__PURE__ */ F(o, {
|
|
1583
1600
|
type: "button",
|
|
1584
1601
|
variant: "secondary",
|
|
1585
1602
|
buttonStyle: "ghost",
|
|
@@ -1589,27 +1606,27 @@ function Le({ filter: e, value: t, onChange: r, className: i }) {
|
|
|
1589
1606
|
},
|
|
1590
1607
|
className: "absolute right-1 top-1/2 size-7 -translate-y-1/2",
|
|
1591
1608
|
"aria-label": a.clearSearch,
|
|
1592
|
-
children: /* @__PURE__ */
|
|
1609
|
+
children: /* @__PURE__ */ F(W, { className: "h-3.5 w-3.5" })
|
|
1593
1610
|
}),
|
|
1594
|
-
!!c && /* @__PURE__ */
|
|
1611
|
+
!!c && /* @__PURE__ */ F("span", {
|
|
1595
1612
|
className: "text-muted-foreground absolute right-2 top-1/2 -translate-y-1/2",
|
|
1596
|
-
children: /* @__PURE__ */
|
|
1613
|
+
children: /* @__PURE__ */ F(U, { className: "h-4 w-4 animate-spin" })
|
|
1597
1614
|
})
|
|
1598
1615
|
]
|
|
1599
1616
|
});
|
|
1600
1617
|
}
|
|
1601
|
-
var
|
|
1602
|
-
|
|
1618
|
+
var ze = x.memo(Re);
|
|
1619
|
+
ze.displayName = "SearchFacet";
|
|
1603
1620
|
//#endregion
|
|
1604
1621
|
//#region src/components/features/filters/partials/search-filters-list.tsx
|
|
1605
|
-
function
|
|
1606
|
-
return /* @__PURE__ */ P
|
|
1622
|
+
function Be({ filters: e, getFilterValue: t, setFilterValue: i, className: a }) {
|
|
1623
|
+
return /* @__PURE__ */ F(P, { children: e.map((e) => /* @__PURE__ */ I("div", {
|
|
1607
1624
|
className: n("space-y-2", e.displayConfig.className, a),
|
|
1608
|
-
children: [/* @__PURE__ */
|
|
1625
|
+
children: [/* @__PURE__ */ F(ze, {
|
|
1609
1626
|
filter: e,
|
|
1610
1627
|
value: t(e.key),
|
|
1611
1628
|
onChange: (t) => i(e.key, t)
|
|
1612
|
-
}), !!e.description && /* @__PURE__ */
|
|
1629
|
+
}), !!e.description && /* @__PURE__ */ F(r, {
|
|
1613
1630
|
size: "xs",
|
|
1614
1631
|
type: "secondary",
|
|
1615
1632
|
children: e.description
|
|
@@ -1618,36 +1635,36 @@ function Re({ filters: e, getFilterValue: t, setFilterValue: i, className: a })
|
|
|
1618
1635
|
}
|
|
1619
1636
|
//#endregion
|
|
1620
1637
|
//#region src/components/features/filters/filter-layout.tsx
|
|
1621
|
-
function
|
|
1622
|
-
let { getFilterValue: c, setFilterValue: l, isFilterActive: u, clearFilters: d, getFilterOperator: f, setFilterOperator: p, isNavigating: m, strings: h } =
|
|
1638
|
+
function Ve({ className: e, dynamicFilterOptions: t = {}, loadingFilters: r = {}, variant: i = "default", showClearFilters: a = !1, tabs: s }) {
|
|
1639
|
+
let { getFilterValue: c, setFilterValue: l, isFilterActive: u, clearFilters: d, getFilterOperator: f, setFilterOperator: p, isNavigating: m, strings: h } = X(), { processedFilters: g, searchFilters: _, alwaysVisibleFilters: v, activeRegularFilters: y, popoverFilters: b, hasActive: x } = pe({ dynamicFilterOptions: t }), [S, C] = A(null);
|
|
1623
1640
|
function w(e) {
|
|
1624
|
-
return e.operators && e.operators.length > 0 ? e.operators :
|
|
1641
|
+
return e.operators && e.operators.length > 0 ? e.operators : ce(e.type, h.operators);
|
|
1625
1642
|
}
|
|
1626
1643
|
function T(e, t) {
|
|
1627
1644
|
p(e, t);
|
|
1628
1645
|
}
|
|
1629
|
-
return /* @__PURE__ */
|
|
1646
|
+
return /* @__PURE__ */ I("div", {
|
|
1630
1647
|
className: n("filter-layout--component", i === "compact" ? "space-y-2" : "space-y-4", e),
|
|
1631
|
-
children: [!!s && s.length > 0 && /* @__PURE__ */
|
|
1648
|
+
children: [!!s && s.length > 0 && /* @__PURE__ */ F(Le, { tabs: s }), /* @__PURE__ */ I("div", {
|
|
1632
1649
|
className: n("flex flex-wrap items-center", i === "compact" ? "gap-1" : "gap-2"),
|
|
1633
|
-
children: [/* @__PURE__ */
|
|
1650
|
+
children: [/* @__PURE__ */ F(Q, {
|
|
1634
1651
|
filterKey: "search-filters",
|
|
1635
|
-
children: /* @__PURE__ */
|
|
1652
|
+
children: /* @__PURE__ */ F(Be, {
|
|
1636
1653
|
filters: _,
|
|
1637
1654
|
getFilterValue: c,
|
|
1638
1655
|
setFilterValue: l
|
|
1639
1656
|
})
|
|
1640
|
-
}), /* @__PURE__ */
|
|
1657
|
+
}), /* @__PURE__ */ I("div", {
|
|
1641
1658
|
className: n("contents", m && "pointer-events-none opacity-60"),
|
|
1642
1659
|
children: [
|
|
1643
1660
|
Object.entries(r).filter(([, e]) => e).map(([e]) => {
|
|
1644
1661
|
let t = g.find((t) => t.key === e)?.label || e;
|
|
1645
|
-
return /* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ I("div", {
|
|
1646
1663
|
className: "text-muted-foreground bg-muted/50 flex items-center rounded-md px-2 py-1 text-xs",
|
|
1647
|
-
children: [/* @__PURE__ */
|
|
1664
|
+
children: [/* @__PURE__ */ F("div", { className: "border-muted-foreground/30 border-t-primary mr-1 size-3 animate-spin rounded-full border-2" }), G(h.loadingOptions, { filterLabel: t })]
|
|
1648
1665
|
}, `loading-${e}`);
|
|
1649
1666
|
}),
|
|
1650
|
-
v.map((e) => /* @__PURE__ */
|
|
1667
|
+
v.map((e) => /* @__PURE__ */ F($, {
|
|
1651
1668
|
filter: e,
|
|
1652
1669
|
value: c(e.key) ?? [],
|
|
1653
1670
|
isActive: !1,
|
|
@@ -1659,7 +1676,7 @@ function ze({ className: e, dynamicFilterOptions: t = {}, loadingFilters: r = {}
|
|
|
1659
1676
|
availableFilters: b,
|
|
1660
1677
|
activeFilters: [...y, ...v]
|
|
1661
1678
|
}, e.key)),
|
|
1662
|
-
y.map((e) => /* @__PURE__ */
|
|
1679
|
+
y.map((e) => /* @__PURE__ */ F($, {
|
|
1663
1680
|
filter: e,
|
|
1664
1681
|
value: c(e.key) ?? [],
|
|
1665
1682
|
isActive: u(e.key),
|
|
@@ -1671,9 +1688,9 @@ function ze({ className: e, dynamicFilterOptions: t = {}, loadingFilters: r = {}
|
|
|
1671
1688
|
availableFilters: b,
|
|
1672
1689
|
activeFilters: y
|
|
1673
1690
|
}, e.key)),
|
|
1674
|
-
b.length > 0 && /* @__PURE__ */
|
|
1691
|
+
b.length > 0 && /* @__PURE__ */ F(Q, {
|
|
1675
1692
|
filterKey: "filters-button",
|
|
1676
|
-
children: /* @__PURE__ */
|
|
1693
|
+
children: /* @__PURE__ */ F(Ie, {
|
|
1677
1694
|
availableFilters: b,
|
|
1678
1695
|
activeFilters: y,
|
|
1679
1696
|
activeFilterInPopover: S,
|
|
@@ -1682,7 +1699,7 @@ function ze({ className: e, dynamicFilterOptions: t = {}, loadingFilters: r = {}
|
|
|
1682
1699
|
setActiveFilterInPopover: C
|
|
1683
1700
|
})
|
|
1684
1701
|
}),
|
|
1685
|
-
!!a && x && /* @__PURE__ */
|
|
1702
|
+
!!a && x && /* @__PURE__ */ F(o, {
|
|
1686
1703
|
variant: "secondary",
|
|
1687
1704
|
buttonStyle: "ghost",
|
|
1688
1705
|
size: "default",
|
|
@@ -1697,11 +1714,11 @@ function ze({ className: e, dynamicFilterOptions: t = {}, loadingFilters: r = {}
|
|
|
1697
1714
|
}
|
|
1698
1715
|
//#endregion
|
|
1699
1716
|
//#region src/components/features/filters/facets/select-facet.tsx
|
|
1700
|
-
function
|
|
1701
|
-
let { strings: s } =
|
|
1717
|
+
function He({ filter: e, value: t, onChange: i, className: a }) {
|
|
1718
|
+
let { strings: s } = X(), [c, l] = A(!1), [u, d] = A(""), [f, p] = A(e.options), [m, h] = A(!1), g = k(void 0), _ = t.length > 0, v = (n) => {
|
|
1702
1719
|
e.multiple ? t.includes(n) ? i(t.filter((e) => e !== n)) : i([...t, n]) : (i([n]), e.closeOnSelect !== !1 && l(!1));
|
|
1703
|
-
},
|
|
1704
|
-
|
|
1720
|
+
}, y = (t) => (f || e.options)?.find((e) => e.value === t)?.label ?? t, x = e.fetchOptions, S = e.delay;
|
|
1721
|
+
E(() => {
|
|
1705
1722
|
if (!c || !x) return;
|
|
1706
1723
|
g.current && window.clearTimeout(g.current);
|
|
1707
1724
|
let e = typeof S == "number" ? S : 300;
|
|
@@ -1721,7 +1738,7 @@ function Be({ filter: e, value: t, onChange: i, className: a }) {
|
|
|
1721
1738
|
x,
|
|
1722
1739
|
S
|
|
1723
1740
|
]);
|
|
1724
|
-
let C =
|
|
1741
|
+
let C = O(() => (f || e.options || []).map((e) => ({
|
|
1725
1742
|
value: e.value,
|
|
1726
1743
|
label: e.label,
|
|
1727
1744
|
description: e.description,
|
|
@@ -1732,10 +1749,10 @@ function Be({ filter: e, value: t, onChange: i, className: a }) {
|
|
|
1732
1749
|
f,
|
|
1733
1750
|
e.options,
|
|
1734
1751
|
t
|
|
1735
|
-
]), w =
|
|
1736
|
-
return /* @__PURE__ */
|
|
1752
|
+
]), w = G(s.searchPlaceholder, { filterLabel: e.label.toLowerCase() }), T = m ? G(s.loadingOptions, { filterLabel: e.label }) : s.noOptionsFound;
|
|
1753
|
+
return /* @__PURE__ */ F("div", {
|
|
1737
1754
|
className: n("select-facet--component", "relative", a),
|
|
1738
|
-
children: /* @__PURE__ */
|
|
1755
|
+
children: /* @__PURE__ */ F(b, {
|
|
1739
1756
|
open: c,
|
|
1740
1757
|
onOpenChange: l,
|
|
1741
1758
|
search: !0,
|
|
@@ -1743,36 +1760,36 @@ function Be({ filter: e, value: t, onChange: i, className: a }) {
|
|
|
1743
1760
|
onSearchChange: d,
|
|
1744
1761
|
strings: {
|
|
1745
1762
|
searchPlaceholder: w,
|
|
1746
|
-
empty:
|
|
1763
|
+
empty: T
|
|
1747
1764
|
},
|
|
1748
1765
|
contentClassName: "w-(--radix-popover-trigger-width) min-w-56",
|
|
1749
|
-
trigger: /* @__PURE__ */
|
|
1766
|
+
trigger: /* @__PURE__ */ I(o, {
|
|
1750
1767
|
variant: "secondary",
|
|
1751
1768
|
buttonStyle: "outline",
|
|
1752
1769
|
size: "default",
|
|
1753
1770
|
role: "combobox",
|
|
1754
1771
|
"aria-expanded": c,
|
|
1755
1772
|
className: "w-full justify-between",
|
|
1756
|
-
children: [_ ? t.length === 1 ? /* @__PURE__ */
|
|
1773
|
+
children: [_ ? t.length === 1 ? /* @__PURE__ */ F(r, {
|
|
1757
1774
|
tag: "span",
|
|
1758
1775
|
size: "xs",
|
|
1759
1776
|
weight: "semibold",
|
|
1760
1777
|
className: "truncate",
|
|
1761
|
-
children:
|
|
1762
|
-
}) : /* @__PURE__ */
|
|
1778
|
+
children: y(t[0])
|
|
1779
|
+
}) : /* @__PURE__ */ F(r, {
|
|
1763
1780
|
tag: "span",
|
|
1764
1781
|
size: "xs",
|
|
1765
1782
|
weight: "semibold",
|
|
1766
|
-
children:
|
|
1783
|
+
children: G(s.selected, {
|
|
1767
1784
|
count: t.length,
|
|
1768
1785
|
filterLabel: (t.length > 1 ? e.pluralLabel : e.label) ?? e.label
|
|
1769
1786
|
})
|
|
1770
|
-
}) : /* @__PURE__ */
|
|
1787
|
+
}) : /* @__PURE__ */ F(r, {
|
|
1771
1788
|
tag: "span",
|
|
1772
1789
|
size: "xs",
|
|
1773
1790
|
type: "secondary",
|
|
1774
1791
|
children: e.placeholder ?? s.select
|
|
1775
|
-
}), /* @__PURE__ */
|
|
1792
|
+
}), /* @__PURE__ */ F(V, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
1776
1793
|
}),
|
|
1777
1794
|
items: C,
|
|
1778
1795
|
onSelect: (e) => v(e.value)
|
|
@@ -1781,24 +1798,30 @@ function Be({ filter: e, value: t, onChange: i, className: a }) {
|
|
|
1781
1798
|
}
|
|
1782
1799
|
//#endregion
|
|
1783
1800
|
//#region src/components/features/filters/facets/async-select-facet.tsx
|
|
1784
|
-
function
|
|
1785
|
-
let { strings: s, cacheAsyncOptions: c, getAsyncOptionLabel:
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1801
|
+
function Ue({ filter: e, value: t, onChange: i, className: a }) {
|
|
1802
|
+
let { strings: s, cacheAsyncOptions: c, getAsyncOptionLabel: u } = X(), [m, b] = A(!1), [x, S] = A(""), C = k(/* @__PURE__ */ new Map()), { options: w, isLoading: T, isFetching: D, isError: j, refetch: M, isBelowMinQuery: N, minQueryLength: P } = Ce(e, x, m);
|
|
1803
|
+
E(() => {
|
|
1804
|
+
if (w.length !== 0) {
|
|
1805
|
+
for (let e of w) C.current.set(e.value, e);
|
|
1806
|
+
c(e.key, w);
|
|
1807
|
+
}
|
|
1808
|
+
}, [
|
|
1809
|
+
c,
|
|
1810
|
+
e.key,
|
|
1811
|
+
w
|
|
1812
|
+
]);
|
|
1813
|
+
let R = e.multiple !== !1, z = e.maxSelected, B = O(() => e.options ?? [], [e.options]), H = O(() => {
|
|
1814
|
+
let n = new Set(t), r = new Set([...B, ...w].map((e) => e.value)), i = [];
|
|
1792
1815
|
for (let n of t) if (!r.has(n)) {
|
|
1793
1816
|
let t = C.current.get(n);
|
|
1794
1817
|
if (t) i.push(t);
|
|
1795
1818
|
else {
|
|
1796
|
-
let t =
|
|
1819
|
+
let t = B.find((e) => e.value === n);
|
|
1797
1820
|
if (t) {
|
|
1798
1821
|
i.push(t);
|
|
1799
1822
|
continue;
|
|
1800
1823
|
}
|
|
1801
|
-
let r =
|
|
1824
|
+
let r = u(e.key, n);
|
|
1802
1825
|
r && i.push({
|
|
1803
1826
|
value: n,
|
|
1804
1827
|
label: r,
|
|
@@ -1808,140 +1831,140 @@ function Ve({ filter: e, value: t, onChange: i, className: a }) {
|
|
|
1808
1831
|
}
|
|
1809
1832
|
return [
|
|
1810
1833
|
...i,
|
|
1811
|
-
...
|
|
1834
|
+
...B,
|
|
1812
1835
|
...w
|
|
1813
1836
|
].sort((e, t) => !n.has(e.value) - +!n.has(t.value));
|
|
1814
1837
|
}, [
|
|
1815
|
-
|
|
1838
|
+
B,
|
|
1816
1839
|
w,
|
|
1817
1840
|
t,
|
|
1818
1841
|
e.key,
|
|
1819
1842
|
e.icon,
|
|
1820
|
-
|
|
1843
|
+
u
|
|
1821
1844
|
]), te = (n) => {
|
|
1822
|
-
if (
|
|
1845
|
+
if (R) if (t.includes(n)) i(t.filter((e) => e !== n));
|
|
1823
1846
|
else {
|
|
1824
|
-
if (
|
|
1847
|
+
if (z && t.length >= z) return;
|
|
1825
1848
|
i([...t, n]);
|
|
1826
1849
|
}
|
|
1827
1850
|
else i([n]), e.closeOnSelect !== !1 && b(!1);
|
|
1828
|
-
},
|
|
1851
|
+
}, W = (e) => {
|
|
1829
1852
|
let t = w.find((t) => t.value === e);
|
|
1830
1853
|
if (t) return t.label;
|
|
1831
|
-
let n =
|
|
1854
|
+
let n = B.find((t) => t.value === e);
|
|
1832
1855
|
if (n) return n.label;
|
|
1833
1856
|
let r = C.current.get(e);
|
|
1834
1857
|
return r ? r.label : e;
|
|
1835
|
-
}, ne = t.length > 0, re =
|
|
1858
|
+
}, ne = t.length > 0, re = O(() => T || D ? /* @__PURE__ */ I("div", {
|
|
1836
1859
|
className: n("async-select-facet--component", "flex items-center justify-center gap-2 py-4"),
|
|
1837
|
-
children: [/* @__PURE__ */
|
|
1860
|
+
children: [/* @__PURE__ */ F(U, { className: "text-muted-foreground size-4 animate-spin" }), /* @__PURE__ */ F(r, {
|
|
1838
1861
|
tag: "span",
|
|
1839
1862
|
size: "xs",
|
|
1840
1863
|
type: "secondary",
|
|
1841
1864
|
children: s.searching
|
|
1842
1865
|
})]
|
|
1843
|
-
}) :
|
|
1866
|
+
}) : j ? /* @__PURE__ */ I("div", {
|
|
1844
1867
|
className: "flex flex-col items-center gap-2 py-4",
|
|
1845
|
-
children: [/* @__PURE__ */
|
|
1868
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1846
1869
|
className: "flex items-center gap-1.5",
|
|
1847
|
-
children: [/* @__PURE__ */
|
|
1870
|
+
children: [/* @__PURE__ */ F(L, { className: "text-destructive size-4" }), /* @__PURE__ */ F(r, {
|
|
1848
1871
|
tag: "span",
|
|
1849
1872
|
size: "xs",
|
|
1850
1873
|
type: "secondary",
|
|
1851
1874
|
children: s.fetchError
|
|
1852
1875
|
})]
|
|
1853
|
-
}), /* @__PURE__ */
|
|
1876
|
+
}), /* @__PURE__ */ F(o, {
|
|
1854
1877
|
variant: "secondary",
|
|
1855
1878
|
buttonStyle: "outline",
|
|
1856
1879
|
size: "xs",
|
|
1857
1880
|
onClick: (e) => {
|
|
1858
|
-
e.stopPropagation(),
|
|
1881
|
+
e.stopPropagation(), M();
|
|
1859
1882
|
},
|
|
1860
1883
|
children: s.retryFetch
|
|
1861
1884
|
})]
|
|
1862
|
-
}) :
|
|
1885
|
+
}) : N ? /* @__PURE__ */ F("div", {
|
|
1863
1886
|
className: "text-muted-foreground flex items-center justify-center py-4",
|
|
1864
|
-
children: /* @__PURE__ */
|
|
1887
|
+
children: /* @__PURE__ */ F(r, {
|
|
1865
1888
|
tag: "span",
|
|
1866
1889
|
size: "xs",
|
|
1867
1890
|
type: "secondary",
|
|
1868
|
-
children:
|
|
1891
|
+
children: G(s.minQueryHint, { min: P })
|
|
1869
1892
|
})
|
|
1870
|
-
}) : /* @__PURE__ */
|
|
1893
|
+
}) : /* @__PURE__ */ F(r, {
|
|
1871
1894
|
tag: "span",
|
|
1872
1895
|
size: "xs",
|
|
1873
1896
|
type: "secondary",
|
|
1874
1897
|
children: s.noOptionsFound
|
|
1875
1898
|
}), [
|
|
1876
1899
|
T,
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
M,
|
|
1900
|
+
D,
|
|
1901
|
+
j,
|
|
1880
1902
|
N,
|
|
1903
|
+
P,
|
|
1881
1904
|
s,
|
|
1882
|
-
|
|
1905
|
+
M
|
|
1883
1906
|
]);
|
|
1884
|
-
return /* @__PURE__ */
|
|
1907
|
+
return /* @__PURE__ */ F("div", {
|
|
1885
1908
|
className: n("relative", a),
|
|
1886
|
-
children: /* @__PURE__ */
|
|
1887
|
-
open:
|
|
1909
|
+
children: /* @__PURE__ */ I(l, {
|
|
1910
|
+
open: m,
|
|
1888
1911
|
onOpenChange: (e) => {
|
|
1889
1912
|
b(e), e || S("");
|
|
1890
1913
|
},
|
|
1891
|
-
children: [/* @__PURE__ */
|
|
1914
|
+
children: [/* @__PURE__ */ F(d, { render: /* @__PURE__ */ I(o, {
|
|
1892
1915
|
variant: "secondary",
|
|
1893
1916
|
buttonStyle: "outline",
|
|
1894
1917
|
size: "default",
|
|
1895
1918
|
role: "combobox",
|
|
1896
|
-
"aria-expanded":
|
|
1919
|
+
"aria-expanded": m,
|
|
1897
1920
|
className: "w-full justify-between",
|
|
1898
|
-
children: [ne ? t.length === 1 ? /* @__PURE__ */
|
|
1921
|
+
children: [ne ? t.length === 1 ? /* @__PURE__ */ F(r, {
|
|
1899
1922
|
tag: "span",
|
|
1900
1923
|
size: "xs",
|
|
1901
1924
|
weight: "semibold",
|
|
1902
1925
|
className: "truncate",
|
|
1903
|
-
children:
|
|
1904
|
-
}) : /* @__PURE__ */
|
|
1926
|
+
children: W(t[0])
|
|
1927
|
+
}) : /* @__PURE__ */ F(r, {
|
|
1905
1928
|
tag: "span",
|
|
1906
1929
|
size: "xs",
|
|
1907
1930
|
weight: "semibold",
|
|
1908
|
-
children:
|
|
1931
|
+
children: G(s.selected, {
|
|
1909
1932
|
count: t.length,
|
|
1910
1933
|
filterLabel: (t.length > 1 ? e.pluralLabel : e.label) ?? e.label
|
|
1911
1934
|
})
|
|
1912
|
-
}) : /* @__PURE__ */
|
|
1935
|
+
}) : /* @__PURE__ */ F(r, {
|
|
1913
1936
|
tag: "span",
|
|
1914
1937
|
size: "xs",
|
|
1915
1938
|
type: "secondary",
|
|
1916
1939
|
children: e.placeholder ?? s.select
|
|
1917
|
-
}), /* @__PURE__ */
|
|
1918
|
-
}) }), /* @__PURE__ */
|
|
1940
|
+
}), /* @__PURE__ */ F(V, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
1941
|
+
}) }), /* @__PURE__ */ F(f, {
|
|
1919
1942
|
className: "w-full min-w-[280px] p-0",
|
|
1920
|
-
children: /* @__PURE__ */
|
|
1943
|
+
children: /* @__PURE__ */ I(y, {
|
|
1921
1944
|
shouldFilter: !1,
|
|
1922
|
-
children: [/* @__PURE__ */
|
|
1923
|
-
placeholder:
|
|
1945
|
+
children: [/* @__PURE__ */ F(p, {
|
|
1946
|
+
placeholder: G(s.searchPlaceholder, { filterLabel: e.label }),
|
|
1924
1947
|
value: x,
|
|
1925
1948
|
onValueChange: S
|
|
1926
|
-
}), /* @__PURE__ */
|
|
1949
|
+
}), /* @__PURE__ */ F(h, { children: H.length === 0 ? /* @__PURE__ */ F(_, { children: re }) : /* @__PURE__ */ I(v, { children: [!!(D && !T) && /* @__PURE__ */ I("div", {
|
|
1927
1950
|
className: "flex items-center gap-1.5 px-2 py-1",
|
|
1928
|
-
children: [/* @__PURE__ */
|
|
1951
|
+
children: [/* @__PURE__ */ F(U, { className: "text-muted-foreground size-3 animate-spin" }), /* @__PURE__ */ F(r, {
|
|
1929
1952
|
tag: "span",
|
|
1930
1953
|
size: "xs",
|
|
1931
1954
|
type: "secondary",
|
|
1932
1955
|
children: s.searching
|
|
1933
1956
|
})]
|
|
1934
|
-
}),
|
|
1957
|
+
}), H.map((e) => /* @__PURE__ */ I(g, {
|
|
1935
1958
|
value: e.value,
|
|
1936
1959
|
onSelect: () => te(e.value),
|
|
1937
|
-
disabled: e.disabled || !!
|
|
1960
|
+
disabled: e.disabled || !!z && t.length >= z && !t.includes(e.value),
|
|
1938
1961
|
children: [
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
!!e.icon && /* @__PURE__ */
|
|
1962
|
+
/* @__PURE__ */ F(ee, { className: n("mr-2 h-4 w-4", t.includes(e.value) ? "opacity-100" : "opacity-0") }),
|
|
1963
|
+
!!e.icon && /* @__PURE__ */ F("span", {
|
|
1941
1964
|
className: "mr-1.5",
|
|
1942
1965
|
children: e.icon
|
|
1943
1966
|
}),
|
|
1944
|
-
/* @__PURE__ */
|
|
1967
|
+
/* @__PURE__ */ F(r, {
|
|
1945
1968
|
tag: "span",
|
|
1946
1969
|
size: "xs",
|
|
1947
1970
|
children: e.label
|
|
@@ -1955,11 +1978,11 @@ function Ve({ filter: e, value: t, onChange: i, className: a }) {
|
|
|
1955
1978
|
}
|
|
1956
1979
|
//#endregion
|
|
1957
1980
|
//#region src/components/features/filters/facets/range-facet.tsx
|
|
1958
|
-
function
|
|
1959
|
-
let { strings: o } =
|
|
1981
|
+
function We({ filter: e, value: t, onChange: r, className: a }) {
|
|
1982
|
+
let { strings: o } = X(), [c, l] = A(t.min?.toString() ?? ""), [u, d] = A(t.max?.toString() ?? ""), f = D(), p = k(r);
|
|
1960
1983
|
p.current = r;
|
|
1961
|
-
let m =
|
|
1962
|
-
return m.current = t,
|
|
1984
|
+
let m = k(t);
|
|
1985
|
+
return m.current = t, E(() => {
|
|
1963
1986
|
let t = setTimeout(() => {
|
|
1964
1987
|
let e = m.current, t = {
|
|
1965
1988
|
min: c ? Number(c) : void 0,
|
|
@@ -1972,16 +1995,16 @@ function He({ filter: e, value: t, onChange: r, className: a }) {
|
|
|
1972
1995
|
c,
|
|
1973
1996
|
u,
|
|
1974
1997
|
e.delay
|
|
1975
|
-
]), /* @__PURE__ */
|
|
1998
|
+
]), /* @__PURE__ */ F("div", {
|
|
1976
1999
|
className: n("range-facet--component", "space-y-2", a),
|
|
1977
|
-
children: /* @__PURE__ */
|
|
2000
|
+
children: /* @__PURE__ */ I("div", {
|
|
1978
2001
|
className: "grid grid-cols-2 gap-2",
|
|
1979
|
-
children: [/* @__PURE__ */
|
|
2002
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1980
2003
|
className: "space-y-1",
|
|
1981
|
-
children: [/* @__PURE__ */
|
|
2004
|
+
children: [/* @__PURE__ */ F(i, {
|
|
1982
2005
|
htmlFor: `${f}-min`,
|
|
1983
2006
|
children: o.min
|
|
1984
|
-
}), /* @__PURE__ */
|
|
2007
|
+
}), /* @__PURE__ */ F(s, {
|
|
1985
2008
|
id: `${f}-min`,
|
|
1986
2009
|
type: "text",
|
|
1987
2010
|
value: c,
|
|
@@ -1992,12 +2015,12 @@ function He({ filter: e, value: t, onChange: r, className: a }) {
|
|
|
1992
2015
|
placeholder: o.min,
|
|
1993
2016
|
className: "w-full"
|
|
1994
2017
|
})]
|
|
1995
|
-
}), /* @__PURE__ */
|
|
2018
|
+
}), /* @__PURE__ */ I("div", {
|
|
1996
2019
|
className: "space-y-1",
|
|
1997
|
-
children: [/* @__PURE__ */
|
|
2020
|
+
children: [/* @__PURE__ */ F(i, {
|
|
1998
2021
|
htmlFor: `${f}-max`,
|
|
1999
2022
|
children: o.max
|
|
2000
|
-
}), /* @__PURE__ */
|
|
2023
|
+
}), /* @__PURE__ */ F(s, {
|
|
2001
2024
|
id: `${f}-max`,
|
|
2002
2025
|
type: "text",
|
|
2003
2026
|
value: u,
|
|
@@ -2014,17 +2037,17 @@ function He({ filter: e, value: t, onChange: r, className: a }) {
|
|
|
2014
2037
|
}
|
|
2015
2038
|
//#endregion
|
|
2016
2039
|
//#region src/components/features/filters/validators.ts
|
|
2017
|
-
function
|
|
2040
|
+
function Ge(e) {
|
|
2018
2041
|
return (t) => {
|
|
2019
2042
|
if (t == null || typeof t == "string" && t.length === 0) return !0;
|
|
2020
2043
|
let n = e.safeParse(t);
|
|
2021
2044
|
return n.success ? !0 : n.error?.issues?.[0]?.message ?? n.error?.message ?? !1;
|
|
2022
2045
|
};
|
|
2023
2046
|
}
|
|
2024
|
-
function
|
|
2047
|
+
function Ke(e, t) {
|
|
2025
2048
|
return (n) => e(n) ? !0 : t;
|
|
2026
2049
|
}
|
|
2027
2050
|
//#endregion
|
|
2028
|
-
export {
|
|
2051
|
+
export { ye as ActiveFilterItem, Ue as AsyncSelectFacet, Ee as DateFacet, Q as FilterErrorBoundary, Ve as FilterLayout, q as FilterOperatorEnum, me as FilterOperatorSelect, $ as FilterPill, Fe as FilterPopoverContent, fe as FilterProvider, Le as FilterTabs, K as FilterType, he as FilterValueDisplay, Ie as FiltersButton, We as RangeFacet, ze as SearchFacet, Be as SearchFiltersList, He as SelectFacet, Ne as TagsFacet, ne as defaultFilterStrings, se as getBooleanOperators, oe as getDateOperators, le as getDefaultOperatorForType, re as getFilterString, ae as getNumberOperators, ce as getOperatorsForType, ie as getSelectOperators, J as getTextOperators, G as interpolateFilterString, Ke as predicateValidator, Ce as useAsyncOptions, pe as useFilterGroups, X as useFilters, Ge as zodValidator };
|
|
2029
2052
|
|
|
2030
2053
|
//# sourceMappingURL=index.js.map
|