@alfadocs/ui-kit 1.114.0 → 1.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-BZ36ULQk.js} +4 -4
- package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +519 -531
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
- package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
- package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-C68V9rdH.js} +5 -5
- package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
- package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-C1UA5jpS.js} +6 -6
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-DkoxiDCh.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
- package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
- package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-CC-dbKE8.js} +6 -5
- package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-eXdtmEoU.js} +4 -4
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-CzG0RmhQ.js} +4 -4
- package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
- package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CcEHJgDd.js} +2 -2
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-BVYG_MJE.js} +2 -2
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
- package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-DlT-vpSe.js} +2 -2
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
- package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-Dy9-CzON.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-qZpw3zj8.js} +7 -7
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
- package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
- package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-6p3Hm4oH.js} +9 -9
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-CSa6vQ9r.js} +377 -391
- package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-CVjY1d7Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
- package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-BMAiQYo6.js} +4 -4
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DNSe65yd.js} +2 -2
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +717 -6
- package/dist/agent-i18n/en.json +50 -2
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +95 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
- package/dist/components/data-grid/editors.d.ts +8 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +10 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +58 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1346 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +33 -2
- package/dist/i18n/locales/ar.d.ts +94 -0
- package/dist/i18n/locales/ar.js +96 -2
- package/dist/i18n/locales/de.d.ts +94 -0
- package/dist/i18n/locales/de.js +96 -2
- package/dist/i18n/locales/el.d.ts +94 -0
- package/dist/i18n/locales/el.js +96 -2
- package/dist/i18n/locales/en.d.ts +94 -0
- package/dist/i18n/locales/en.js +97 -2
- package/dist/i18n/locales/es.d.ts +94 -0
- package/dist/i18n/locales/es.js +96 -2
- package/dist/i18n/locales/fr.d.ts +94 -0
- package/dist/i18n/locales/fr.js +96 -2
- package/dist/i18n/locales/hi.d.ts +94 -0
- package/dist/i18n/locales/hi.js +96 -2
- package/dist/i18n/locales/it.d.ts +94 -0
- package/dist/i18n/locales/it.js +96 -2
- package/dist/i18n/locales/ja.d.ts +94 -0
- package/dist/i18n/locales/ja.js +96 -2
- package/dist/i18n/locales/nl.d.ts +94 -0
- package/dist/i18n/locales/nl.js +96 -2
- package/dist/i18n/locales/pl.d.ts +94 -0
- package/dist/i18n/locales/pl.js +96 -2
- package/dist/i18n/locales/pt.d.ts +94 -0
- package/dist/i18n/locales/pt.js +96 -2
- package/dist/i18n/locales/ro.d.ts +94 -0
- package/dist/i18n/locales/ro.js +96 -2
- package/dist/i18n/locales/ru.d.ts +94 -0
- package/dist/i18n/locales/ru.js +96 -2
- package/dist/i18n/locales/sq.d.ts +94 -0
- package/dist/i18n/locales/sq.js +96 -2
- package/dist/i18n/locales/sv.d.ts +94 -0
- package/dist/i18n/locales/sv.js +96 -2
- package/dist/i18n/locales/tr.d.ts +94 -0
- package/dist/i18n/locales/tr.js +96 -2
- package/dist/i18n/locales/zh.d.ts +94 -0
- package/dist/i18n/locales/zh.js +96 -2
- package/dist/index.js +1044 -1032
- package/dist/locales/ar.json +96 -2
- package/dist/locales/de.json +96 -2
- package/dist/locales/el.json +96 -2
- package/dist/locales/en.json +96 -2
- package/dist/locales/es.json +96 -2
- package/dist/locales/fr.json +96 -2
- package/dist/locales/hi.json +96 -2
- package/dist/locales/it.json +96 -2
- package/dist/locales/ja.json +96 -2
- package/dist/locales/nl.json +96 -2
- package/dist/locales/pl.json +96 -2
- package/dist/locales/pt.json +96 -2
- package/dist/locales/ro.json +96 -2
- package/dist/locales/ru.json +96 -2
- package/dist/locales/sq.json +96 -2
- package/dist/locales/sv.json +96 -2
- package/dist/locales/tr.json +96 -2
- package/dist/locales/zh.json +96 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs as v, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { useTranslation as h } from "react-i18next";
|
|
4
|
+
import { c as m } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { B as x } from "./button-DohK_Ak_.js";
|
|
6
|
+
import { D } from "./date-range-picker-PTRpDkXT.js";
|
|
7
|
+
import { f as r, t as i } from "./parts-Wz2LeGnH.js";
|
|
8
|
+
import { i as R } from "./toolbar-Bc3pjfG5.js";
|
|
9
|
+
const T = m("ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"), k = m(
|
|
10
|
+
"ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-xs)]"
|
|
11
|
+
);
|
|
12
|
+
function M({
|
|
13
|
+
columnLabel: n,
|
|
14
|
+
value: c,
|
|
15
|
+
dataMode: l,
|
|
16
|
+
onApply: o,
|
|
17
|
+
config: d
|
|
18
|
+
}) {
|
|
19
|
+
const { t: e } = h("ui"), a = c, [f, p] = b(() => ({
|
|
20
|
+
from: r(a == null ? void 0 : a.dateFrom),
|
|
21
|
+
to: r(a == null ? void 0 : a.dateTo)
|
|
22
|
+
})), g = d.commitMode ?? (l === "server" ? "apply" : "auto");
|
|
23
|
+
function u(t) {
|
|
24
|
+
if (p(t), !t.from && !t.to) {
|
|
25
|
+
o(null);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
o({
|
|
29
|
+
type: "inRange",
|
|
30
|
+
dateFrom: i(t.from),
|
|
31
|
+
dateTo: i(t.to)
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return /* @__PURE__ */ v("div", { "data-filter-kind": "dateRange", className: T(), children: [
|
|
35
|
+
/* @__PURE__ */ s(
|
|
36
|
+
D,
|
|
37
|
+
{
|
|
38
|
+
value: f,
|
|
39
|
+
onChange: u,
|
|
40
|
+
commitMode: g,
|
|
41
|
+
size: "sm",
|
|
42
|
+
compact: !0,
|
|
43
|
+
"aria-label": e("dataGrid.filter.button", { column: n })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ s("div", { className: k(), children: /* @__PURE__ */ s(
|
|
47
|
+
x,
|
|
48
|
+
{
|
|
49
|
+
intent: "ghost",
|
|
50
|
+
size: "sm",
|
|
51
|
+
type: "button",
|
|
52
|
+
className: R,
|
|
53
|
+
onClick: () => o(null),
|
|
54
|
+
children: e("dataTable.selectFilter.clear")
|
|
55
|
+
}
|
|
56
|
+
) })
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
M as DateRangeFilterPanel
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=date-range-panel-CBFfkgmz.js.map
|
|
@@ -5,17 +5,19 @@ import * as H from "@radix-ui/react-popover";
|
|
|
5
5
|
import { u as zt, f as Yt } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
6
6
|
import * as Q from "@radix-ui/react-radio-group";
|
|
7
7
|
import { S as Ut } from "./spinner-CoflYlEx.js";
|
|
8
|
-
import {
|
|
8
|
+
import { g as Ht, h as Qt, u as Jt, c as Xt, j as Ye, k as Zt, s as ea, b as ta, d as aa, t as ra, l as Ue, m as He, r as Qe, p as sa, n as na, D as oa, C as ia, o as da, e as la, q as J, f as ca, a as ve, i as ua } from "./date-picker-variants-J1EeAhIH.js";
|
|
9
9
|
import { u as Je } from "./use-select-on-arrow-Cr4iBuW5.js";
|
|
10
10
|
import { u as ye } from "./use-controllable-state-BiY4xTzM.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { S as
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { u as pa, a as ma } from "./form-field-context-DtiROUJV.js";
|
|
12
|
+
import { S as fa } from "./switch-DO6uC4HJ.js";
|
|
13
|
+
import { u as ga } from "./registry-DvAUVLHh.js";
|
|
14
|
+
import { u as va, g as ya } from "./date-locale-OG-MupVD.js";
|
|
15
|
+
import { f as k, d as he, a as Xe, i as ha } from "./format-ql5WTsYT.js";
|
|
16
|
+
import { s as V } from "./subDays-Bsoy023P.js";
|
|
17
|
+
import { s as Ze } from "./normalizeDates-BBNNIR-v.js";
|
|
16
18
|
import { C as ba } from "./calendar-days-BGWklvE-.js";
|
|
17
19
|
import { C as ka } from "./check-DrFSN__t.js";
|
|
18
|
-
import { p as Ra } from "./parse-
|
|
20
|
+
import { p as Ra } from "./parse-BLBWPIgE.js";
|
|
19
21
|
function xa(s, l, g) {
|
|
20
22
|
return Ht(s, -1, g);
|
|
21
23
|
}
|
|
@@ -222,7 +224,7 @@ const Pa = {
|
|
|
222
224
|
], Da = [
|
|
223
225
|
{ value: "previous", fallback: "Previous period" },
|
|
224
226
|
{ value: "lastYear", fallback: "Same period last year" }
|
|
225
|
-
],
|
|
227
|
+
], Na = Wt(
|
|
226
228
|
({
|
|
227
229
|
value: s,
|
|
228
230
|
defaultValue: l,
|
|
@@ -241,7 +243,7 @@ const Pa = {
|
|
|
241
243
|
compareEnabled: nt,
|
|
242
244
|
defaultCompare: ot = !1,
|
|
243
245
|
defaultCompareMode: it = "previous",
|
|
244
|
-
onCompareChange:
|
|
246
|
+
onCompareChange: m,
|
|
245
247
|
weekStartsOn: A,
|
|
246
248
|
minDate: ee,
|
|
247
249
|
maxDate: te,
|
|
@@ -252,13 +254,13 @@ const Pa = {
|
|
|
252
254
|
disabled: ct,
|
|
253
255
|
placeholder: ut,
|
|
254
256
|
className: pt,
|
|
255
|
-
id:
|
|
256
|
-
},
|
|
257
|
-
const { t: n, i18n: re } = Bt("ui"), F =
|
|
257
|
+
id: mt
|
|
258
|
+
}, ft) => {
|
|
259
|
+
const { t: n, i18n: re } = Bt("ui"), F = pa(), se = ma(F, mt), xe = F.disabled || ct, gt = F.invalid ? "error" : "default", c = va(re.language), vt = Jt(), f = ya(re.language), yt = ut ?? n("inputs.dateRangePicker.placeholder", "Select date range"), [ht, Pe] = ye({
|
|
258
260
|
value: s,
|
|
259
261
|
defaultValue: l ?? {},
|
|
260
262
|
onChange: g
|
|
261
|
-
}), i = ht ?? {}, [O, R] = b(!1), [a, T] = b(i), [bt, ne] = b(i.from ?? /* @__PURE__ */ new Date()), [De,
|
|
263
|
+
}), i = ht ?? {}, [O, R] = b(!1), [a, T] = b(i), [bt, ne] = b(i.from ?? /* @__PURE__ */ new Date()), [De, Ne] = b(""), [we, Se] = b(""), [G, L] = b(!1), [K, $] = b(!1), q = be !== void 0 || ke !== void 0, _ = Z && Z.length > 0 ? Z : void 0, Ie = _ ? tt.filter(
|
|
262
264
|
(e) => _.includes(e.value)
|
|
263
265
|
) : tt, W = (e) => {
|
|
264
266
|
var t;
|
|
@@ -274,19 +276,19 @@ const Pa = {
|
|
|
274
276
|
// called manually at the commit points rather than wired here.
|
|
275
277
|
}), [D, E] = b(
|
|
276
278
|
C ?? !1
|
|
277
|
-
), [Oe, Rt] = b(it), xt = ge(null),
|
|
279
|
+
), [Oe, Rt] = b(it), xt = ge(null), N = ge(!1), Pt = rt ?? (X ? 1 : 2), Te = M(), Ge = M(), Ke = M(), Ce = M(), ie = M(), Dt = M(), x = Be(
|
|
278
280
|
(e) => {
|
|
279
281
|
Pe(e);
|
|
280
282
|
},
|
|
281
283
|
[Pe]
|
|
282
|
-
),
|
|
284
|
+
), Nt = Xt(ee, te), wt = (e) => (ee ? ua(e, ee) : !1) || (te ? ve(e, te) : !1);
|
|
283
285
|
ze(() => {
|
|
284
|
-
O && (T(i), E(C ?? !1), L(!1), $(!1),
|
|
286
|
+
O && (T(i), E(C ?? !1), L(!1), $(!1), N.current = !1);
|
|
285
287
|
}, [O]), ze(() => {
|
|
286
|
-
G ||
|
|
287
|
-
a.from ? k(a.from,
|
|
288
|
-
), K || Se(a.to ? k(a.to,
|
|
289
|
-
}, [a.from, a.to,
|
|
288
|
+
G || Ne(
|
|
289
|
+
a.from ? k(a.from, f, { locale: c }) : ""
|
|
290
|
+
), K || Se(a.to ? k(a.to, f, { locale: c }) : "");
|
|
291
|
+
}, [a.from, a.to, f, c]);
|
|
290
292
|
const Ee = [
|
|
291
293
|
{
|
|
292
294
|
label: n("inputs.dateRangePicker.presets.today", "Today"),
|
|
@@ -314,7 +316,7 @@ const Pa = {
|
|
|
314
316
|
range: () => ({
|
|
315
317
|
// `weekStartsOn` (when set) overrides the locale's first day; when
|
|
316
318
|
// undefined date-fns falls back to the locale.
|
|
317
|
-
from:
|
|
319
|
+
from: Ze(/* @__PURE__ */ new Date(), { locale: c, weekStartsOn: A }),
|
|
318
320
|
to: Ye(/* @__PURE__ */ new Date(), { locale: c, weekStartsOn: A })
|
|
319
321
|
})
|
|
320
322
|
},
|
|
@@ -323,7 +325,7 @@ const Pa = {
|
|
|
323
325
|
range: () => {
|
|
324
326
|
const e = xa(/* @__PURE__ */ new Date());
|
|
325
327
|
return {
|
|
326
|
-
from:
|
|
328
|
+
from: Ze(e, { locale: c, weekStartsOn: A }),
|
|
327
329
|
to: Ye(e, { locale: c, weekStartsOn: A })
|
|
328
330
|
};
|
|
329
331
|
}
|
|
@@ -331,8 +333,8 @@ const Pa = {
|
|
|
331
333
|
{
|
|
332
334
|
label: n("inputs.dateRangePicker.presets.thisMonth", "This month"),
|
|
333
335
|
range: () => ({
|
|
334
|
-
from:
|
|
335
|
-
to:
|
|
336
|
+
from: ea(/* @__PURE__ */ new Date()),
|
|
337
|
+
to: Zt(/* @__PURE__ */ new Date())
|
|
336
338
|
})
|
|
337
339
|
},
|
|
338
340
|
{
|
|
@@ -361,16 +363,16 @@ const Pa = {
|
|
|
361
363
|
compareStart: e,
|
|
362
364
|
compareEnd: t
|
|
363
365
|
};
|
|
364
|
-
return he(t, e) >= 2 && (d.compareMiddle = { from:
|
|
366
|
+
return he(t, e) >= 2 && (d.compareMiddle = { from: ta(e, 1), to: V(t, 1) }), d;
|
|
365
367
|
})(), Ae = (e) => {
|
|
366
368
|
const t = {};
|
|
367
369
|
return q && (t.granularity = B), Y && (t.compareRange = y(e)), t.granularity || t.compareRange ? t : void 0;
|
|
368
370
|
}, Fe = Je(), Le = Je(), Ot = (e) => {
|
|
369
371
|
Le.noteSelection();
|
|
370
372
|
const t = e;
|
|
371
|
-
Rt(t), Y && p === "auto" && (
|
|
373
|
+
Rt(t), Y && p === "auto" && (m == null || m(!0, y(a, t)));
|
|
372
374
|
}, Tt = (e) => {
|
|
373
|
-
E(e), p === "auto" && (z(e),
|
|
375
|
+
E(e), p === "auto" && (z(e), m == null || m(e, e ? y(a) : void 0));
|
|
374
376
|
}, le = Be(
|
|
375
377
|
(e) => {
|
|
376
378
|
T(e), p === "auto" && e.from && e.to && x(e);
|
|
@@ -380,7 +382,7 @@ const Pa = {
|
|
|
380
382
|
L(!1), $(!1), le({ from: e == null ? void 0 : e.from, to: e == null ? void 0 : e.to });
|
|
381
383
|
}, Kt = (e) => {
|
|
382
384
|
const t = e.range();
|
|
383
|
-
L(!1), $(!1), T(t), ne(t.from), p === "auto" && (x(t), S == null || S(t, Ae(t)),
|
|
385
|
+
L(!1), $(!1), T(t), ne(t.from), p === "auto" && (x(t), S == null || S(t, Ae(t)), N.current = !0, R(!1));
|
|
384
386
|
}, ce = (e, t) => {
|
|
385
387
|
const d = e === "from" ? L : $;
|
|
386
388
|
if (t.trim() === "") {
|
|
@@ -389,8 +391,8 @@ const Pa = {
|
|
|
389
391
|
);
|
|
390
392
|
return;
|
|
391
393
|
}
|
|
392
|
-
const o = Ra(t,
|
|
393
|
-
if (!ha(o) ||
|
|
394
|
+
const o = Ra(t, f, /* @__PURE__ */ new Date(), { locale: c });
|
|
395
|
+
if (!ha(o) || wt(o)) {
|
|
394
396
|
d(!0);
|
|
395
397
|
return;
|
|
396
398
|
}
|
|
@@ -398,40 +400,40 @@ const Pa = {
|
|
|
398
400
|
let P;
|
|
399
401
|
e === "from" ? P = a.to && ve(o, a.to) ? { from: o, to: void 0 } : { from: o, to: a.to } : P = a.from && ve(a.from, o) ? { from: o, to: void 0 } : { from: a.from, to: o }, ne(o), le(P);
|
|
400
402
|
}, $e = (e) => (t) => {
|
|
401
|
-
t.key === "Enter" && (t.preventDefault(), ce(e, e === "from" ? De :
|
|
403
|
+
t.key === "Enter" && (t.preventDefault(), ce(e, e === "from" ? De : we));
|
|
402
404
|
}, Ct = () => {
|
|
403
405
|
T({}), L(!1), $(!1), p === "auto" && x({});
|
|
404
406
|
}, Et = !!(a.from && a.to), Mt = !a.from && !a.to, We = (Et || Mt) && !G && !K, ue = () => {
|
|
405
|
-
We && (x(a), j && D !== (C ?? !1) && (z(D),
|
|
407
|
+
We && (x(a), j && D !== (C ?? !1) && (z(D), m == null || m(
|
|
406
408
|
D,
|
|
407
409
|
D ? y(a) : void 0
|
|
408
|
-
)), S == null || S(a, Ae(a))),
|
|
410
|
+
)), S == null || S(a, Ae(a))), N.current = !0, R(!1);
|
|
409
411
|
}, Vt = () => {
|
|
410
|
-
|
|
412
|
+
N.current = !0, R(!1);
|
|
411
413
|
}, pe = () => {
|
|
412
414
|
p === "apply" && (I == null || I()), T(i), E(C ?? !1), R(!1);
|
|
413
415
|
}, je = (e) => {
|
|
414
416
|
if (e) {
|
|
415
|
-
|
|
417
|
+
N.current = !1, R(!0);
|
|
416
418
|
return;
|
|
417
419
|
}
|
|
418
|
-
p === "apply" && !
|
|
420
|
+
p === "apply" && !N.current && (I == null || I()), T(i), E(C ?? !1), N.current = !1, R(!1);
|
|
419
421
|
}, At = (e) => {
|
|
420
422
|
if (!i.from || !i.to) return !1;
|
|
421
423
|
const t = e.range();
|
|
422
|
-
return
|
|
423
|
-
},
|
|
424
|
+
return Xe(t.from, i.from) && Xe(t.to, i.to);
|
|
425
|
+
}, w = de.find(At), qe = (() => {
|
|
424
426
|
if (i.from && i.to) {
|
|
425
|
-
const e = k(i.from,
|
|
427
|
+
const e = k(i.from, f, { locale: c }), t = k(i.to, f, { locale: c });
|
|
426
428
|
return `${e} – ${t}`;
|
|
427
429
|
}
|
|
428
|
-
return i.from ? k(i.from,
|
|
430
|
+
return i.from ? k(i.from, f, { locale: c }) : "";
|
|
429
431
|
})(), U = a.from ? a.to ? null : "end" : "start", Ft = (() => {
|
|
430
432
|
if (!a.from)
|
|
431
433
|
return n("inputs.dateRangePicker.selectStart", "Select start date");
|
|
432
434
|
if (!a.to)
|
|
433
435
|
return n("inputs.dateRangePicker.selectEnd", "Select end date");
|
|
434
|
-
const e = he(a.to, a.from) + 1, t = k(a.from,
|
|
436
|
+
const e = he(a.to, a.from) + 1, t = k(a.from, f, { locale: c }), d = k(a.to, f, { locale: c }), o = n("inputs.dateRangePicker.days", { count: e });
|
|
435
437
|
return `${t} – ${d} · ${o}`;
|
|
436
438
|
})(), v = ge({
|
|
437
439
|
currentValue: i,
|
|
@@ -442,12 +444,12 @@ const Pa = {
|
|
|
442
444
|
// Imperative/agent path commits directly (like setRange/clear), so
|
|
443
445
|
// toggle_compare reflects in getCompareRange immediately — not a draft.
|
|
444
446
|
setCompare: (e) => {
|
|
445
|
-
E(e), z(e),
|
|
447
|
+
E(e), z(e), m == null || m(
|
|
446
448
|
e,
|
|
447
449
|
e ? y(i) : void 0
|
|
448
450
|
);
|
|
449
451
|
},
|
|
450
|
-
getActivePreset: () =>
|
|
452
|
+
getActivePreset: () => w == null ? void 0 : w.label,
|
|
451
453
|
getActiveEnd: () => U,
|
|
452
454
|
apply: () => ue(),
|
|
453
455
|
cancel: () => pe()
|
|
@@ -459,17 +461,17 @@ const Pa = {
|
|
|
459
461
|
setGranularity: (e) => oe(W(e)),
|
|
460
462
|
getCompareRange: () => Ve ? y(i) : void 0,
|
|
461
463
|
setCompare: (e) => {
|
|
462
|
-
E(e), z(e),
|
|
464
|
+
E(e), z(e), m == null || m(
|
|
463
465
|
e,
|
|
464
466
|
e ? y(i) : void 0
|
|
465
467
|
);
|
|
466
468
|
},
|
|
467
|
-
getActivePreset: () =>
|
|
469
|
+
getActivePreset: () => w == null ? void 0 : w.label,
|
|
468
470
|
getActiveEnd: () => U,
|
|
469
471
|
apply: () => ue(),
|
|
470
472
|
cancel: () => pe()
|
|
471
473
|
};
|
|
472
|
-
const
|
|
474
|
+
const me = jt(
|
|
473
475
|
() => ({
|
|
474
476
|
getRange: () => v.current.currentValue,
|
|
475
477
|
setRange: (e) => x(e),
|
|
@@ -488,7 +490,7 @@ const Pa = {
|
|
|
488
490
|
}),
|
|
489
491
|
[x]
|
|
490
492
|
);
|
|
491
|
-
qt(
|
|
493
|
+
qt(ft, () => me, [me]), ga(Pa, me, se);
|
|
492
494
|
const Lt = zt(!0, {
|
|
493
495
|
getAnchor: Yt,
|
|
494
496
|
onReturnToTrigger: () => je(!1)
|
|
@@ -511,7 +513,7 @@ const Pa = {
|
|
|
511
513
|
"aria-invalid": F.invalid || void 0,
|
|
512
514
|
"aria-haspopup": "dialog",
|
|
513
515
|
"aria-expanded": O,
|
|
514
|
-
className:
|
|
516
|
+
className: ra({ size: Re, tone: gt, chrome: lt }),
|
|
515
517
|
children: [
|
|
516
518
|
/* @__PURE__ */ r(
|
|
517
519
|
"span",
|
|
@@ -532,7 +534,7 @@ const Pa = {
|
|
|
532
534
|
"span",
|
|
533
535
|
{
|
|
534
536
|
"aria-hidden": "true",
|
|
535
|
-
className:
|
|
537
|
+
className: aa({ size: Re }),
|
|
536
538
|
children: /* @__PURE__ */ r(ba, {})
|
|
537
539
|
}
|
|
538
540
|
)
|
|
@@ -551,7 +553,7 @@ const Pa = {
|
|
|
551
553
|
"Select date range"
|
|
552
554
|
),
|
|
553
555
|
"data-component": "date-range-picker-content",
|
|
554
|
-
className:
|
|
556
|
+
className: ca(),
|
|
555
557
|
children: /* @__PURE__ */ u("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
556
558
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
557
559
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -610,10 +612,10 @@ const Pa = {
|
|
|
610
612
|
type: "text",
|
|
611
613
|
inputMode: "numeric",
|
|
612
614
|
value: De,
|
|
613
|
-
placeholder:
|
|
615
|
+
placeholder: f.toUpperCase(),
|
|
614
616
|
"aria-invalid": G || void 0,
|
|
615
617
|
"aria-describedby": G ? ie : void 0,
|
|
616
|
-
onChange: (e) =>
|
|
618
|
+
onChange: (e) => Ne(e.target.value),
|
|
617
619
|
onBlur: (e) => ce("from", e.target.value),
|
|
618
620
|
onKeyDown: $e("from"),
|
|
619
621
|
className: Qe({
|
|
@@ -645,8 +647,8 @@ const Pa = {
|
|
|
645
647
|
id: Ke,
|
|
646
648
|
type: "text",
|
|
647
649
|
inputMode: "numeric",
|
|
648
|
-
value:
|
|
649
|
-
placeholder:
|
|
650
|
+
value: we,
|
|
651
|
+
placeholder: f.toUpperCase(),
|
|
650
652
|
"aria-invalid": K || void 0,
|
|
651
653
|
"aria-describedby": K ? ie : void 0,
|
|
652
654
|
onChange: (e) => Se(e.target.value),
|
|
@@ -669,7 +671,7 @@ const Pa = {
|
|
|
669
671
|
"inputs.dateRangePicker.invalidDate",
|
|
670
672
|
"Enter a date as {{format}}",
|
|
671
673
|
{
|
|
672
|
-
format:
|
|
674
|
+
format: f.toUpperCase()
|
|
673
675
|
}
|
|
674
676
|
)
|
|
675
677
|
}
|
|
@@ -678,17 +680,17 @@ const Pa = {
|
|
|
678
680
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:gap-[var(--spacing-md)]", children: [
|
|
679
681
|
!X && de.length > 0 ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-[8rem] ds:border-e ds:border-border ds:pe-[var(--spacing-md)]", children: Me.map((e, t) => {
|
|
680
682
|
const d = `${Te}-pg${t}`, o = e.presets.map((P) => {
|
|
681
|
-
const
|
|
683
|
+
const fe = P === w;
|
|
682
684
|
return /* @__PURE__ */ u(
|
|
683
685
|
"button",
|
|
684
686
|
{
|
|
685
687
|
type: "button",
|
|
686
|
-
"aria-pressed":
|
|
688
|
+
"aria-pressed": fe,
|
|
687
689
|
onClick: () => Kt(P),
|
|
688
|
-
className:
|
|
690
|
+
className: sa({ active: fe }),
|
|
689
691
|
children: [
|
|
690
692
|
/* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate", children: P.label }),
|
|
691
|
-
|
|
693
|
+
fe ? /* @__PURE__ */ r(
|
|
692
694
|
ka,
|
|
693
695
|
{
|
|
694
696
|
"aria-hidden": "true",
|
|
@@ -711,7 +713,7 @@ const Pa = {
|
|
|
711
713
|
"div",
|
|
712
714
|
{
|
|
713
715
|
id: d,
|
|
714
|
-
className:
|
|
716
|
+
className: na(),
|
|
715
717
|
children: e.group
|
|
716
718
|
}
|
|
717
719
|
),
|
|
@@ -724,7 +726,7 @@ const Pa = {
|
|
|
724
726
|
/* @__PURE__ */ u("div", { role: "region", "aria-labelledby": Ce, children: [
|
|
725
727
|
/* @__PURE__ */ r("span", { id: Ce, className: "ds:sr-only", children: n("inputs.dateRangePicker.gridLabel", "Calendar") }),
|
|
726
728
|
c ? /* @__PURE__ */ r(
|
|
727
|
-
|
|
729
|
+
oa,
|
|
728
730
|
{
|
|
729
731
|
mode: "range",
|
|
730
732
|
selected: a.from ? { from: a.from, to: a.to } : void 0,
|
|
@@ -733,24 +735,24 @@ const Pa = {
|
|
|
733
735
|
onMonthChange: ne,
|
|
734
736
|
numberOfMonths: Pt,
|
|
735
737
|
weekStartsOn: A,
|
|
736
|
-
disabled:
|
|
738
|
+
disabled: Nt,
|
|
737
739
|
locale: c,
|
|
738
740
|
labels: vt,
|
|
739
741
|
dir: re.dir(),
|
|
740
742
|
showOutsideDays: !0,
|
|
741
743
|
fixedWeeks: !0,
|
|
742
744
|
pagedNavigation: !0,
|
|
743
|
-
classNames:
|
|
745
|
+
classNames: la,
|
|
744
746
|
modifiers: It,
|
|
745
|
-
modifiersClassNames:
|
|
746
|
-
components: { Chevron:
|
|
747
|
+
modifiersClassNames: da,
|
|
748
|
+
components: { Chevron: ia }
|
|
747
749
|
}
|
|
748
750
|
) : /* @__PURE__ */ r(Ut, {})
|
|
749
751
|
] })
|
|
750
752
|
] }),
|
|
751
753
|
j ? /* @__PURE__ */ u("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)] ds:border-t ds:border-border ds:pt-[var(--spacing-sm)]", children: [
|
|
752
754
|
/* @__PURE__ */ r(
|
|
753
|
-
|
|
755
|
+
fa,
|
|
754
756
|
{
|
|
755
757
|
id: Dt,
|
|
756
758
|
label: n(
|
|
@@ -770,7 +772,7 @@ const Pa = {
|
|
|
770
772
|
className: "ds:inline-block ds:size-3 ds:rounded-[calc(var(--radius-sm)-2px)] ds:bg-[var(--calendar-compare-fill)] ds:border-b-2 ds:border-dashed ds:border-b-[var(--calendar-compare-edge)]"
|
|
771
773
|
}
|
|
772
774
|
),
|
|
773
|
-
`${k(h.from,
|
|
775
|
+
`${k(h.from, f, { locale: c })} – ${k(h.to, f, { locale: c })}`
|
|
774
776
|
] }) : null,
|
|
775
777
|
D ? /* @__PURE__ */ r(
|
|
776
778
|
Q.Root,
|
|
@@ -857,9 +859,9 @@ const Pa = {
|
|
|
857
859
|
) });
|
|
858
860
|
}
|
|
859
861
|
);
|
|
860
|
-
|
|
862
|
+
Na.displayName = "DateRangePicker";
|
|
861
863
|
export {
|
|
862
|
-
|
|
864
|
+
Na as D,
|
|
863
865
|
Pa as d
|
|
864
866
|
};
|
|
865
|
-
//# sourceMappingURL=date-range-picker-
|
|
867
|
+
//# sourceMappingURL=date-range-picker-PTRpDkXT.js.map
|
|
@@ -5,14 +5,15 @@ import { useTranslation as pe } from "react-i18next";
|
|
|
5
5
|
import * as w from "@radix-ui/react-popover";
|
|
6
6
|
import { u as fe, f as ge } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
7
7
|
import { S as he } from "./spinner-CoflYlEx.js";
|
|
8
|
-
import { u as ve, c as be,
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { T as
|
|
12
|
-
import { f as
|
|
13
|
-
import { u as
|
|
8
|
+
import { u as ve, c as be, i as ye, a as Te, d as ke, t as De, D as we, C as Ce, e as Pe, f as xe } from "./date-picker-variants-J1EeAhIH.js";
|
|
9
|
+
import { u as Se } from "./use-controllable-state-BiY4xTzM.js";
|
|
10
|
+
import { u as Oe, a as Ne } from "./form-field-context-DtiROUJV.js";
|
|
11
|
+
import { T as Ie } from "./time-picker-DDr5vhwQ.js";
|
|
12
|
+
import { f as Le } from "./intl-locale-FWh-Y5_3.js";
|
|
13
|
+
import { u as Re } from "./registry-DvAUVLHh.js";
|
|
14
|
+
import { u as Ve } from "./date-locale-OG-MupVD.js";
|
|
14
15
|
import { C as Me } from "./calendar-days-BGWklvE-.js";
|
|
15
|
-
import { t as _ } from "./
|
|
16
|
+
import { t as _ } from "./normalizeDates-BBNNIR-v.js";
|
|
16
17
|
function H(e, t, s) {
|
|
17
18
|
const i = _(e, s == null ? void 0 : s.in);
|
|
18
19
|
return i.setHours(t), i;
|
|
@@ -170,10 +171,10 @@ const He = me(
|
|
|
170
171
|
className: z,
|
|
171
172
|
id: W
|
|
172
173
|
}, q) => {
|
|
173
|
-
const { t: l, i18n: g } = pe("ui"), c =
|
|
174
|
+
const { t: l, i18n: g } = pe("ui"), c = Oe(), h = Ne(c, W), N = c.disabled || E, J = c.invalid ? "error" : "default", I = Ve(g.language), $ = ve(), G = U ?? l("inputs.dateTimePicker.placeholder", "Select date and time"), Q = l("inputs.dateTimePicker.apply", "Apply"), X = l(
|
|
174
175
|
"inputs.dateTimePicker.outOfRange",
|
|
175
176
|
"Date/time is out of allowed range"
|
|
176
|
-
), L = (C !== void 0 ? C : Ae(i)) ? Ke(g.language, i) : "", [Y, R] =
|
|
177
|
+
), L = (C !== void 0 ? C : Ae(i)) ? Ke(g.language, i) : "", [Y, R] = Se({
|
|
177
178
|
value: e,
|
|
178
179
|
defaultValue: t,
|
|
179
180
|
onChange: s
|
|
@@ -182,8 +183,8 @@ const He = me(
|
|
|
182
183
|
R(a);
|
|
183
184
|
},
|
|
184
185
|
[R]
|
|
185
|
-
), te =
|
|
186
|
-
(a) => !(d &&
|
|
186
|
+
), te = be(d, p), x = A(
|
|
187
|
+
(a) => !(d && ye(a, d) || p && Te(a, p)),
|
|
187
188
|
[d, p]
|
|
188
189
|
), F = (a) => {
|
|
189
190
|
a && (v(n ?? /* @__PURE__ */ new Date()), P(n ?? /* @__PURE__ */ new Date()), u(!1)), y(a);
|
|
@@ -206,7 +207,7 @@ const He = me(
|
|
|
206
207
|
}
|
|
207
208
|
T(o), y(!1), (a = M.current) == null || a.focus();
|
|
208
209
|
}
|
|
209
|
-
}, K = n ? new Intl.DateTimeFormat(
|
|
210
|
+
}, K = n ? new Intl.DateTimeFormat(Le(g.language), {
|
|
210
211
|
calendar: "gregory",
|
|
211
212
|
dateStyle: "medium",
|
|
212
213
|
timeStyle: "short",
|
|
@@ -225,7 +226,7 @@ const He = me(
|
|
|
225
226
|
}),
|
|
226
227
|
[n, T, b]
|
|
227
228
|
);
|
|
228
|
-
ue(q, () => S, [S]),
|
|
229
|
+
ue(q, () => S, [S]), Re(Fe, S, h);
|
|
229
230
|
const oe = fe(!0, {
|
|
230
231
|
getAnchor: ge,
|
|
231
232
|
onReturnToTrigger: () => F(!1)
|
|
@@ -248,7 +249,7 @@ const He = me(
|
|
|
248
249
|
"aria-invalid": c.invalid || void 0,
|
|
249
250
|
"aria-haspopup": "dialog",
|
|
250
251
|
"aria-expanded": b,
|
|
251
|
-
className:
|
|
252
|
+
className: De({ size: f, tone: J }),
|
|
252
253
|
children: [
|
|
253
254
|
/* @__PURE__ */ r(
|
|
254
255
|
"span",
|
|
@@ -261,7 +262,7 @@ const He = me(
|
|
|
261
262
|
"span",
|
|
262
263
|
{
|
|
263
264
|
"aria-hidden": "true",
|
|
264
|
-
className:
|
|
265
|
+
className: ke({ size: f }),
|
|
265
266
|
children: /* @__PURE__ */ r(Me, {})
|
|
266
267
|
}
|
|
267
268
|
)
|
|
@@ -274,10 +275,10 @@ const He = me(
|
|
|
274
275
|
sideOffset: 4,
|
|
275
276
|
align: "start",
|
|
276
277
|
onKeyDown: oe,
|
|
277
|
-
className:
|
|
278
|
+
className: xe(),
|
|
278
279
|
children: /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:sm:flex-row ds:gap-[var(--spacing-md)]", children: [
|
|
279
280
|
/* @__PURE__ */ r("div", { role: "region", "aria-label": ie, children: I ? /* @__PURE__ */ r(
|
|
280
|
-
|
|
281
|
+
we,
|
|
281
282
|
{
|
|
282
283
|
mode: "single",
|
|
283
284
|
selected: o,
|
|
@@ -290,8 +291,8 @@ const He = me(
|
|
|
290
291
|
dir: g.dir(),
|
|
291
292
|
showOutsideDays: !0,
|
|
292
293
|
fixedWeeks: !0,
|
|
293
|
-
classNames:
|
|
294
|
-
components: { Chevron:
|
|
294
|
+
classNames: Pe,
|
|
295
|
+
components: { Chevron: Ce }
|
|
295
296
|
}
|
|
296
297
|
) : /* @__PURE__ */ r(he, {}) }),
|
|
297
298
|
/* @__PURE__ */ k(
|
|
@@ -302,7 +303,7 @@ const He = me(
|
|
|
302
303
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:sm:border-s ds:sm:border-border ds:sm:ps-[var(--spacing-md)] ds:min-w-[10rem]",
|
|
303
304
|
children: [
|
|
304
305
|
/* @__PURE__ */ r(
|
|
305
|
-
|
|
306
|
+
Ie,
|
|
306
307
|
{
|
|
307
308
|
id: `${h}-time`,
|
|
308
309
|
value: o ? {
|
|
@@ -350,4 +351,4 @@ export {
|
|
|
350
351
|
Ze as D,
|
|
351
352
|
Fe as d
|
|
352
353
|
};
|
|
353
|
-
//# sourceMappingURL=date-time-picker-
|
|
354
|
+
//# sourceMappingURL=date-time-picker-CJnqiQoT.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as s, a as n, c as o, d as u } from "./buildMatchPatternFn-jbaE1-W0.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
standalone: {
|
|
@@ -474,4 +474,4 @@ const d = {
|
|
|
474
474
|
export {
|
|
475
475
|
O as de
|
|
476
476
|
};
|
|
477
|
-
//# sourceMappingURL=de-
|
|
477
|
+
//# sourceMappingURL=de-i9wbjGPc.js.map
|
|
@@ -6,15 +6,15 @@ import { u as de } from "./registry-DvAUVLHh.js";
|
|
|
6
6
|
import { R as C } from "./radio-BZQs6_36.js";
|
|
7
7
|
import { R as z } from "./radio-group-ChIKyeSJ.js";
|
|
8
8
|
import { F as w } from "./form-field-CyHfOVKF.js";
|
|
9
|
-
import { D as T } from "./date-picker-
|
|
9
|
+
import { D as T } from "./date-picker-DBVTj6lO.js";
|
|
10
10
|
import { N as Y } from "./number-input-CVwI1ltI.js";
|
|
11
11
|
import { C as U } from "./card-DVO3x8E-.js";
|
|
12
12
|
import { B as W } from "./badge-BUk4RjTS.js";
|
|
13
13
|
import { I as ce } from "./insert-result-CDMMt7q8.js";
|
|
14
|
-
import { D as x, r as ue, c as me, e as pe, f as he, A as ge, h as fe, i as ye } from "./antenatal-schedule-timeline-
|
|
15
|
-
import { a as J } from "./date-picker-variants-
|
|
16
|
-
import { p as De } from "./parseISO-
|
|
17
|
-
import { f as be } from "./format
|
|
14
|
+
import { D as x, r as ue, c as me, e as pe, f as he, A as ge, h as fe, i as ye } from "./antenatal-schedule-timeline-va9zx7tJ.js";
|
|
15
|
+
import { a as J } from "./date-picker-variants-J1EeAhIH.js";
|
|
16
|
+
import { p as De } from "./parseISO-Dl4T9peU.js";
|
|
17
|
+
import { f as be } from "./format-ql5WTsYT.js";
|
|
18
18
|
const y = "Superseded by the `pregnancy-dating` adapter.", R = {
|
|
19
19
|
type: "string",
|
|
20
20
|
pattern: "^\\d{4}-\\d{2}-\\d{2}$"
|
|
@@ -568,4 +568,4 @@ Ae.displayName = "DueDateCalculator";
|
|
|
568
568
|
export {
|
|
569
569
|
Ae as D
|
|
570
570
|
};
|
|
571
|
-
//# sourceMappingURL=due-date-calculator-
|
|
571
|
+
//# sourceMappingURL=due-date-calculator-C1UA5jpS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as I, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useLayoutEffect as O, useMemo as V, useState as F, useRef as S, useEffect as A } from "react";
|
|
3
|
-
import { T as K } from "./tag-
|
|
3
|
+
import { T as K } from "./tag-BNlcEJfE.js";
|
|
4
4
|
import { useTranslation as w } from "react-i18next";
|
|
5
5
|
import { I as z } from "./icon-button-S8_weU3g.js";
|
|
6
|
-
import { I as q } from "./icon-button-group-
|
|
6
|
+
import { I as q } from "./icon-button-group-C9mPK-bX.js";
|
|
7
7
|
import { A as G, a as X } from "./arrow-up-BYvcvTkB.js";
|
|
8
8
|
import { S as W } from "./square-check-big-dj0o8yA3.js";
|
|
9
9
|
import { S as Z } from "./square-DASBRZ0U.js";
|
|
@@ -490,4 +490,4 @@ export {
|
|
|
490
490
|
Ne as u,
|
|
491
491
|
Ce as w
|
|
492
492
|
};
|
|
493
|
-
//# sourceMappingURL=editable-currency-cell-renderer-
|
|
493
|
+
//# sourceMappingURL=editable-currency-cell-renderer-CtlMhLai.js.map
|