@alfadocs/ui-kit 1.114.0 → 1.116.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/accessible-target-Bs9ELM3l.js +6 -0
- package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
- 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-gEXqU5i5.js} +8 -8
- package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-BMZoXaGx.js} +4 -4
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-0k4LxODn.js} +4 -4
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-DIxpgIXM.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-L7bD0Nsh.js} +28 -27
- package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +527 -539
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-CfV8jiF0.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-Bt01kyTl.js} +4 -4
- package/dist/_chunks/{chart-bddVIElM.js → chart-BSx8cfMm.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/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/compact-editor-fields-6sTWRLtf.js +21 -0
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-Brd0PP4U.js} +6 -6
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
- package/dist/_chunks/data-grid-ByhrYGVw.js +9814 -0
- package/dist/_chunks/data-grid-tabs-D9Y4DeeH.js +365 -0
- package/dist/_chunks/data-table-B47iw2CO.js +1694 -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-B-DUtfw3.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/default-tabs-BQcSqcNG.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
- package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
- package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-DzIQXEX5.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-p-Q1UkZS.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/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-CEjJUnNe.js} +19 -18
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DEe51ZDe.js} +5 -5
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- 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-jn9y8tNE.js +46 -0
- package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-BUZQkSYC.js} +7 -6
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
- package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-tn1WxoMT.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/icon-button-group-Ca2VkXy5.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-BFfLg7c-.js} +7 -7
- package/dist/_chunks/link-cell-renderer-D-Io828l.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-CBHNg8x-.js} +5 -5
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
- 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-DexbfrFo.js} +3 -3
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.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-CtcTW1PN.js +869 -0
- package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-PJ0Y__7t.js} +2 -2
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-0QP8KCVp.js} +7 -7
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-BOfXDP8a.js} +4 -4
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
- 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/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-Bg_VUPwl.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-9jwXlOXB.js} +4 -4
- package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
- package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-C1zRHaya.js} +12 -12
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-r80Zw8ll.js} +14 -13
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
- 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/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
- 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/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
- 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-DgUjtqpX.js} +386 -410
- package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-B5Nsf10r.js} +3 -3
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-DfvdEg_V.js} +3 -3
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
- package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-1VnuinhY.js} +3 -3
- package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
- package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-_r7cjTtm.js} +8 -8
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
- package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DM3W8XZE.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +3359 -1569
- package/dist/agent-i18n/en.json +100 -2
- package/dist/components/_shared/accessible-target.d.ts +12 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/format-price.d.ts +54 -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/address-fields/index.js +1 -1
- 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-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
- package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
- package/dist/components/bill-line-table/index.d.ts +6 -0
- package/dist/components/bill-line-table/index.js +23 -0
- package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
- package/dist/components/bill-table/bill-table.d.ts +13 -0
- package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
- package/dist/components/bill-table/cells.d.ts +89 -0
- package/dist/components/bill-table/columns.d.ts +21 -0
- package/dist/components/bill-table/default-tabs.d.ts +21 -0
- package/dist/components/bill-table/handle.d.ts +19 -0
- package/dist/components/bill-table/index.d.ts +7 -0
- package/dist/components/bill-table/index.js +19 -0
- package/dist/components/bill-table/model.d.ts +103 -0
- package/dist/components/bill-table/row-actions.d.ts +27 -0
- package/dist/components/bill-table/status-maps.d.ts +225 -0
- package/dist/components/bill-table/types.d.ts +542 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/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/combobox/combobox.d.ts +59 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +101 -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 +110 -0
- package/dist/components/data-grid/editors.d.ts +14 -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 +11 -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 +68 -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 +1396 -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/dialog/focus-return.d.ts +12 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
- package/dist/components/dropdown-menu/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/fetal-weight/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/header-settings/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 +7 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/money/money.d.ts +39 -6
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +43 -2
- package/dist/components/number-input/use-locale-number.d.ts +67 -3
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/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/payment-card/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/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/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/row-actions/index.d.ts +3 -0
- package/dist/components/row-actions/index.js +5 -0
- package/dist/components/row-actions/row-actions.d.ts +63 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/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/token-insert-menu/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +149 -0
- package/dist/host-compat.css +36 -2
- package/dist/i18n/locales/ar.d.ts +342 -0
- package/dist/i18n/locales/ar.js +344 -2
- package/dist/i18n/locales/de.d.ts +342 -0
- package/dist/i18n/locales/de.js +344 -2
- package/dist/i18n/locales/el.d.ts +342 -0
- package/dist/i18n/locales/el.js +344 -2
- package/dist/i18n/locales/en.d.ts +342 -0
- package/dist/i18n/locales/en.js +345 -2
- package/dist/i18n/locales/es.d.ts +342 -0
- package/dist/i18n/locales/es.js +344 -2
- package/dist/i18n/locales/fr.d.ts +342 -0
- package/dist/i18n/locales/fr.js +344 -2
- package/dist/i18n/locales/hi.d.ts +342 -0
- package/dist/i18n/locales/hi.js +344 -2
- package/dist/i18n/locales/it.d.ts +342 -0
- package/dist/i18n/locales/it.js +344 -2
- package/dist/i18n/locales/ja.d.ts +342 -0
- package/dist/i18n/locales/ja.js +344 -2
- package/dist/i18n/locales/nl.d.ts +342 -0
- package/dist/i18n/locales/nl.js +344 -2
- package/dist/i18n/locales/pl.d.ts +342 -0
- package/dist/i18n/locales/pl.js +344 -2
- package/dist/i18n/locales/pt.d.ts +342 -0
- package/dist/i18n/locales/pt.js +344 -2
- package/dist/i18n/locales/ro.d.ts +342 -0
- package/dist/i18n/locales/ro.js +344 -2
- package/dist/i18n/locales/ru.d.ts +342 -0
- package/dist/i18n/locales/ru.js +344 -2
- package/dist/i18n/locales/sq.d.ts +342 -0
- package/dist/i18n/locales/sq.js +344 -2
- package/dist/i18n/locales/sv.d.ts +342 -0
- package/dist/i18n/locales/sv.js +344 -2
- package/dist/i18n/locales/tr.d.ts +342 -0
- package/dist/i18n/locales/tr.js +344 -2
- package/dist/i18n/locales/zh.d.ts +342 -0
- package/dist/i18n/locales/zh.js +344 -2
- package/dist/index.js +1305 -1241
- package/dist/locales/ar.json +344 -2
- package/dist/locales/de.json +344 -2
- package/dist/locales/el.json +344 -2
- package/dist/locales/en.json +344 -2
- package/dist/locales/es.json +344 -2
- package/dist/locales/fr.json +344 -2
- package/dist/locales/hi.json +344 -2
- package/dist/locales/it.json +344 -2
- package/dist/locales/ja.json +344 -2
- package/dist/locales/nl.json +344 -2
- package/dist/locales/pl.json +344 -2
- package/dist/locales/pt.json +344 -2
- package/dist/locales/ro.json +344 -2
- package/dist/locales/ru.json +344 -2
- package/dist/locales/sq.json +344 -2
- package/dist/locales/sv.json +344 -2
- package/dist/locales/tr.json +344 -2
- package/dist/locales/zh.json +344 -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/help-me-write-templates/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/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +21 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- 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/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -0,0 +1,846 @@
|
|
|
1
|
+
import { s as k, t as h, c as b, n as _, b as X, d as G, g as P } from "./normalizeDates-BBNNIR-v.js";
|
|
2
|
+
import { enUS as R } from "./en-US-C4QKhzhA.js";
|
|
3
|
+
function D(r, e) {
|
|
4
|
+
return k(r, { ...e, weekStartsOn: 1 });
|
|
5
|
+
}
|
|
6
|
+
function Q(r, e) {
|
|
7
|
+
const t = h(r, e == null ? void 0 : e.in), n = t.getFullYear(), a = b(t, 0);
|
|
8
|
+
a.setFullYear(n + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
9
|
+
const c = D(a), u = b(t, 0);
|
|
10
|
+
u.setFullYear(n, 0, 4), u.setHours(0, 0, 0, 0);
|
|
11
|
+
const d = D(u);
|
|
12
|
+
return t.getTime() >= c.getTime() ? n + 1 : t.getTime() >= d.getTime() ? n : n - 1;
|
|
13
|
+
}
|
|
14
|
+
function F(r) {
|
|
15
|
+
const e = h(r), t = new Date(
|
|
16
|
+
Date.UTC(
|
|
17
|
+
e.getFullYear(),
|
|
18
|
+
e.getMonth(),
|
|
19
|
+
e.getDate(),
|
|
20
|
+
e.getHours(),
|
|
21
|
+
e.getMinutes(),
|
|
22
|
+
e.getSeconds(),
|
|
23
|
+
e.getMilliseconds()
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
return t.setUTCFullYear(e.getFullYear()), +r - +t;
|
|
27
|
+
}
|
|
28
|
+
function M(r, e) {
|
|
29
|
+
const t = h(r, e == null ? void 0 : e.in);
|
|
30
|
+
return t.setHours(0, 0, 0, 0), t;
|
|
31
|
+
}
|
|
32
|
+
function I(r, e, t) {
|
|
33
|
+
const [n, a] = _(
|
|
34
|
+
t == null ? void 0 : t.in,
|
|
35
|
+
r,
|
|
36
|
+
e
|
|
37
|
+
), c = M(n), u = M(a), d = +c - F(c), f = +u - F(u);
|
|
38
|
+
return Math.round((d - f) / X);
|
|
39
|
+
}
|
|
40
|
+
function $(r, e) {
|
|
41
|
+
const t = Q(r, e), n = b(r, 0);
|
|
42
|
+
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), D(n);
|
|
43
|
+
}
|
|
44
|
+
function ge(r, e, t) {
|
|
45
|
+
const [n, a] = _(
|
|
46
|
+
t == null ? void 0 : t.in,
|
|
47
|
+
r,
|
|
48
|
+
e
|
|
49
|
+
);
|
|
50
|
+
return +M(n) == +M(a);
|
|
51
|
+
}
|
|
52
|
+
function j(r) {
|
|
53
|
+
return r instanceof Date || typeof r == "object" && Object.prototype.toString.call(r) === "[object Date]";
|
|
54
|
+
}
|
|
55
|
+
function U(r) {
|
|
56
|
+
return !(!j(r) && typeof r != "number" || isNaN(+h(r)));
|
|
57
|
+
}
|
|
58
|
+
function V(r, e) {
|
|
59
|
+
const t = h(r, e == null ? void 0 : e.in);
|
|
60
|
+
return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
61
|
+
}
|
|
62
|
+
function A(r, e) {
|
|
63
|
+
const t = h(r, e == null ? void 0 : e.in);
|
|
64
|
+
return I(t, V(t)) + 1;
|
|
65
|
+
}
|
|
66
|
+
function J(r, e) {
|
|
67
|
+
const t = h(r, e == null ? void 0 : e.in), n = +D(t) - +$(t);
|
|
68
|
+
return Math.round(n / G) + 1;
|
|
69
|
+
}
|
|
70
|
+
function B(r, e) {
|
|
71
|
+
var m, O, x, Y;
|
|
72
|
+
const t = h(r, e == null ? void 0 : e.in), n = t.getFullYear(), a = P(), c = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((O = (m = e == null ? void 0 : e.locale) == null ? void 0 : m.options) == null ? void 0 : O.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((Y = (x = a.locale) == null ? void 0 : x.options) == null ? void 0 : Y.firstWeekContainsDate) ?? 1, u = b((e == null ? void 0 : e.in) || r, 0);
|
|
73
|
+
u.setFullYear(n + 1, 0, c), u.setHours(0, 0, 0, 0);
|
|
74
|
+
const d = k(u, e), f = b((e == null ? void 0 : e.in) || r, 0);
|
|
75
|
+
f.setFullYear(n, 0, c), f.setHours(0, 0, 0, 0);
|
|
76
|
+
const w = k(f, e);
|
|
77
|
+
return +t >= +d ? n + 1 : +t >= +w ? n : n - 1;
|
|
78
|
+
}
|
|
79
|
+
function K(r, e) {
|
|
80
|
+
var d, f, w, m;
|
|
81
|
+
const t = P(), n = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((f = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((m = (w = t.locale) == null ? void 0 : w.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = B(r, e), c = b((e == null ? void 0 : e.in) || r, 0);
|
|
82
|
+
return c.setFullYear(a, 0, n), c.setHours(0, 0, 0, 0), k(c, e);
|
|
83
|
+
}
|
|
84
|
+
function Z(r, e) {
|
|
85
|
+
const t = h(r, e == null ? void 0 : e.in), n = +k(t, e) - +K(t, e);
|
|
86
|
+
return Math.round(n / G) + 1;
|
|
87
|
+
}
|
|
88
|
+
function s(r, e) {
|
|
89
|
+
const t = r < 0 ? "-" : "", n = Math.abs(r).toString().padStart(e, "0");
|
|
90
|
+
return t + n;
|
|
91
|
+
}
|
|
92
|
+
const l = {
|
|
93
|
+
// Year
|
|
94
|
+
y(r, e) {
|
|
95
|
+
const t = r.getFullYear(), n = t > 0 ? t : 1 - t;
|
|
96
|
+
return s(e === "yy" ? n % 100 : n, e.length);
|
|
97
|
+
},
|
|
98
|
+
// Month
|
|
99
|
+
M(r, e) {
|
|
100
|
+
const t = r.getMonth();
|
|
101
|
+
return e === "M" ? String(t + 1) : s(t + 1, 2);
|
|
102
|
+
},
|
|
103
|
+
// Day of the month
|
|
104
|
+
d(r, e) {
|
|
105
|
+
return s(r.getDate(), e.length);
|
|
106
|
+
},
|
|
107
|
+
// AM or PM
|
|
108
|
+
a(r, e) {
|
|
109
|
+
const t = r.getHours() / 12 >= 1 ? "pm" : "am";
|
|
110
|
+
switch (e) {
|
|
111
|
+
case "a":
|
|
112
|
+
case "aa":
|
|
113
|
+
return t.toUpperCase();
|
|
114
|
+
case "aaa":
|
|
115
|
+
return t;
|
|
116
|
+
case "aaaaa":
|
|
117
|
+
return t[0];
|
|
118
|
+
case "aaaa":
|
|
119
|
+
default:
|
|
120
|
+
return t === "am" ? "a.m." : "p.m.";
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
// Hour [1-12]
|
|
124
|
+
h(r, e) {
|
|
125
|
+
return s(r.getHours() % 12 || 12, e.length);
|
|
126
|
+
},
|
|
127
|
+
// Hour [0-23]
|
|
128
|
+
H(r, e) {
|
|
129
|
+
return s(r.getHours(), e.length);
|
|
130
|
+
},
|
|
131
|
+
// Minute
|
|
132
|
+
m(r, e) {
|
|
133
|
+
return s(r.getMinutes(), e.length);
|
|
134
|
+
},
|
|
135
|
+
// Second
|
|
136
|
+
s(r, e) {
|
|
137
|
+
return s(r.getSeconds(), e.length);
|
|
138
|
+
},
|
|
139
|
+
// Fraction of second
|
|
140
|
+
S(r, e) {
|
|
141
|
+
const t = e.length, n = r.getMilliseconds(), a = Math.trunc(
|
|
142
|
+
n * Math.pow(10, t - 3)
|
|
143
|
+
);
|
|
144
|
+
return s(a, e.length);
|
|
145
|
+
}
|
|
146
|
+
}, y = {
|
|
147
|
+
midnight: "midnight",
|
|
148
|
+
noon: "noon",
|
|
149
|
+
morning: "morning",
|
|
150
|
+
afternoon: "afternoon",
|
|
151
|
+
evening: "evening",
|
|
152
|
+
night: "night"
|
|
153
|
+
}, C = {
|
|
154
|
+
// Era
|
|
155
|
+
G: function(r, e, t) {
|
|
156
|
+
const n = r.getFullYear() > 0 ? 1 : 0;
|
|
157
|
+
switch (e) {
|
|
158
|
+
// AD, BC
|
|
159
|
+
case "G":
|
|
160
|
+
case "GG":
|
|
161
|
+
case "GGG":
|
|
162
|
+
return t.era(n, { width: "abbreviated" });
|
|
163
|
+
// A, B
|
|
164
|
+
case "GGGGG":
|
|
165
|
+
return t.era(n, { width: "narrow" });
|
|
166
|
+
// Anno Domini, Before Christ
|
|
167
|
+
case "GGGG":
|
|
168
|
+
default:
|
|
169
|
+
return t.era(n, { width: "wide" });
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
// Year
|
|
173
|
+
y: function(r, e, t) {
|
|
174
|
+
if (e === "yo") {
|
|
175
|
+
const n = r.getFullYear(), a = n > 0 ? n : 1 - n;
|
|
176
|
+
return t.ordinalNumber(a, { unit: "year" });
|
|
177
|
+
}
|
|
178
|
+
return l.y(r, e);
|
|
179
|
+
},
|
|
180
|
+
// Local week-numbering year
|
|
181
|
+
Y: function(r, e, t, n) {
|
|
182
|
+
const a = B(r, n), c = a > 0 ? a : 1 - a;
|
|
183
|
+
if (e === "YY") {
|
|
184
|
+
const u = c % 100;
|
|
185
|
+
return s(u, 2);
|
|
186
|
+
}
|
|
187
|
+
return e === "Yo" ? t.ordinalNumber(c, { unit: "year" }) : s(c, e.length);
|
|
188
|
+
},
|
|
189
|
+
// ISO week-numbering year
|
|
190
|
+
R: function(r, e) {
|
|
191
|
+
const t = Q(r);
|
|
192
|
+
return s(t, e.length);
|
|
193
|
+
},
|
|
194
|
+
// Extended year. This is a single number designating the year of this calendar system.
|
|
195
|
+
// The main difference between `y` and `u` localizers are B.C. years:
|
|
196
|
+
// | Year | `y` | `u` |
|
|
197
|
+
// |------|-----|-----|
|
|
198
|
+
// | AC 1 | 1 | 1 |
|
|
199
|
+
// | BC 1 | 1 | 0 |
|
|
200
|
+
// | BC 2 | 2 | -1 |
|
|
201
|
+
// Also `yy` always returns the last two digits of a year,
|
|
202
|
+
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
203
|
+
u: function(r, e) {
|
|
204
|
+
const t = r.getFullYear();
|
|
205
|
+
return s(t, e.length);
|
|
206
|
+
},
|
|
207
|
+
// Quarter
|
|
208
|
+
Q: function(r, e, t) {
|
|
209
|
+
const n = Math.ceil((r.getMonth() + 1) / 3);
|
|
210
|
+
switch (e) {
|
|
211
|
+
// 1, 2, 3, 4
|
|
212
|
+
case "Q":
|
|
213
|
+
return String(n);
|
|
214
|
+
// 01, 02, 03, 04
|
|
215
|
+
case "QQ":
|
|
216
|
+
return s(n, 2);
|
|
217
|
+
// 1st, 2nd, 3rd, 4th
|
|
218
|
+
case "Qo":
|
|
219
|
+
return t.ordinalNumber(n, { unit: "quarter" });
|
|
220
|
+
// Q1, Q2, Q3, Q4
|
|
221
|
+
case "QQQ":
|
|
222
|
+
return t.quarter(n, {
|
|
223
|
+
width: "abbreviated",
|
|
224
|
+
context: "formatting"
|
|
225
|
+
});
|
|
226
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
227
|
+
case "QQQQQ":
|
|
228
|
+
return t.quarter(n, {
|
|
229
|
+
width: "narrow",
|
|
230
|
+
context: "formatting"
|
|
231
|
+
});
|
|
232
|
+
// 1st quarter, 2nd quarter, ...
|
|
233
|
+
case "QQQQ":
|
|
234
|
+
default:
|
|
235
|
+
return t.quarter(n, {
|
|
236
|
+
width: "wide",
|
|
237
|
+
context: "formatting"
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
// Stand-alone quarter
|
|
242
|
+
q: function(r, e, t) {
|
|
243
|
+
const n = Math.ceil((r.getMonth() + 1) / 3);
|
|
244
|
+
switch (e) {
|
|
245
|
+
// 1, 2, 3, 4
|
|
246
|
+
case "q":
|
|
247
|
+
return String(n);
|
|
248
|
+
// 01, 02, 03, 04
|
|
249
|
+
case "qq":
|
|
250
|
+
return s(n, 2);
|
|
251
|
+
// 1st, 2nd, 3rd, 4th
|
|
252
|
+
case "qo":
|
|
253
|
+
return t.ordinalNumber(n, { unit: "quarter" });
|
|
254
|
+
// Q1, Q2, Q3, Q4
|
|
255
|
+
case "qqq":
|
|
256
|
+
return t.quarter(n, {
|
|
257
|
+
width: "abbreviated",
|
|
258
|
+
context: "standalone"
|
|
259
|
+
});
|
|
260
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
261
|
+
case "qqqqq":
|
|
262
|
+
return t.quarter(n, {
|
|
263
|
+
width: "narrow",
|
|
264
|
+
context: "standalone"
|
|
265
|
+
});
|
|
266
|
+
// 1st quarter, 2nd quarter, ...
|
|
267
|
+
case "qqqq":
|
|
268
|
+
default:
|
|
269
|
+
return t.quarter(n, {
|
|
270
|
+
width: "wide",
|
|
271
|
+
context: "standalone"
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
// Month
|
|
276
|
+
M: function(r, e, t) {
|
|
277
|
+
const n = r.getMonth();
|
|
278
|
+
switch (e) {
|
|
279
|
+
case "M":
|
|
280
|
+
case "MM":
|
|
281
|
+
return l.M(r, e);
|
|
282
|
+
// 1st, 2nd, ..., 12th
|
|
283
|
+
case "Mo":
|
|
284
|
+
return t.ordinalNumber(n + 1, { unit: "month" });
|
|
285
|
+
// Jan, Feb, ..., Dec
|
|
286
|
+
case "MMM":
|
|
287
|
+
return t.month(n, {
|
|
288
|
+
width: "abbreviated",
|
|
289
|
+
context: "formatting"
|
|
290
|
+
});
|
|
291
|
+
// J, F, ..., D
|
|
292
|
+
case "MMMMM":
|
|
293
|
+
return t.month(n, {
|
|
294
|
+
width: "narrow",
|
|
295
|
+
context: "formatting"
|
|
296
|
+
});
|
|
297
|
+
// January, February, ..., December
|
|
298
|
+
case "MMMM":
|
|
299
|
+
default:
|
|
300
|
+
return t.month(n, { width: "wide", context: "formatting" });
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
// Stand-alone month
|
|
304
|
+
L: function(r, e, t) {
|
|
305
|
+
const n = r.getMonth();
|
|
306
|
+
switch (e) {
|
|
307
|
+
// 1, 2, ..., 12
|
|
308
|
+
case "L":
|
|
309
|
+
return String(n + 1);
|
|
310
|
+
// 01, 02, ..., 12
|
|
311
|
+
case "LL":
|
|
312
|
+
return s(n + 1, 2);
|
|
313
|
+
// 1st, 2nd, ..., 12th
|
|
314
|
+
case "Lo":
|
|
315
|
+
return t.ordinalNumber(n + 1, { unit: "month" });
|
|
316
|
+
// Jan, Feb, ..., Dec
|
|
317
|
+
case "LLL":
|
|
318
|
+
return t.month(n, {
|
|
319
|
+
width: "abbreviated",
|
|
320
|
+
context: "standalone"
|
|
321
|
+
});
|
|
322
|
+
// J, F, ..., D
|
|
323
|
+
case "LLLLL":
|
|
324
|
+
return t.month(n, {
|
|
325
|
+
width: "narrow",
|
|
326
|
+
context: "standalone"
|
|
327
|
+
});
|
|
328
|
+
// January, February, ..., December
|
|
329
|
+
case "LLLL":
|
|
330
|
+
default:
|
|
331
|
+
return t.month(n, { width: "wide", context: "standalone" });
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
// Local week of year
|
|
335
|
+
w: function(r, e, t, n) {
|
|
336
|
+
const a = Z(r, n);
|
|
337
|
+
return e === "wo" ? t.ordinalNumber(a, { unit: "week" }) : s(a, e.length);
|
|
338
|
+
},
|
|
339
|
+
// ISO week of year
|
|
340
|
+
I: function(r, e, t) {
|
|
341
|
+
const n = J(r);
|
|
342
|
+
return e === "Io" ? t.ordinalNumber(n, { unit: "week" }) : s(n, e.length);
|
|
343
|
+
},
|
|
344
|
+
// Day of the month
|
|
345
|
+
d: function(r, e, t) {
|
|
346
|
+
return e === "do" ? t.ordinalNumber(r.getDate(), { unit: "date" }) : l.d(r, e);
|
|
347
|
+
},
|
|
348
|
+
// Day of year
|
|
349
|
+
D: function(r, e, t) {
|
|
350
|
+
const n = A(r);
|
|
351
|
+
return e === "Do" ? t.ordinalNumber(n, { unit: "dayOfYear" }) : s(n, e.length);
|
|
352
|
+
},
|
|
353
|
+
// Day of week
|
|
354
|
+
E: function(r, e, t) {
|
|
355
|
+
const n = r.getDay();
|
|
356
|
+
switch (e) {
|
|
357
|
+
// Tue
|
|
358
|
+
case "E":
|
|
359
|
+
case "EE":
|
|
360
|
+
case "EEE":
|
|
361
|
+
return t.day(n, {
|
|
362
|
+
width: "abbreviated",
|
|
363
|
+
context: "formatting"
|
|
364
|
+
});
|
|
365
|
+
// T
|
|
366
|
+
case "EEEEE":
|
|
367
|
+
return t.day(n, {
|
|
368
|
+
width: "narrow",
|
|
369
|
+
context: "formatting"
|
|
370
|
+
});
|
|
371
|
+
// Tu
|
|
372
|
+
case "EEEEEE":
|
|
373
|
+
return t.day(n, {
|
|
374
|
+
width: "short",
|
|
375
|
+
context: "formatting"
|
|
376
|
+
});
|
|
377
|
+
// Tuesday
|
|
378
|
+
case "EEEE":
|
|
379
|
+
default:
|
|
380
|
+
return t.day(n, {
|
|
381
|
+
width: "wide",
|
|
382
|
+
context: "formatting"
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
// Local day of week
|
|
387
|
+
e: function(r, e, t, n) {
|
|
388
|
+
const a = r.getDay(), c = (a - n.weekStartsOn + 8) % 7 || 7;
|
|
389
|
+
switch (e) {
|
|
390
|
+
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
391
|
+
case "e":
|
|
392
|
+
return String(c);
|
|
393
|
+
// Padded numerical value
|
|
394
|
+
case "ee":
|
|
395
|
+
return s(c, 2);
|
|
396
|
+
// 1st, 2nd, ..., 7th
|
|
397
|
+
case "eo":
|
|
398
|
+
return t.ordinalNumber(c, { unit: "day" });
|
|
399
|
+
case "eee":
|
|
400
|
+
return t.day(a, {
|
|
401
|
+
width: "abbreviated",
|
|
402
|
+
context: "formatting"
|
|
403
|
+
});
|
|
404
|
+
// T
|
|
405
|
+
case "eeeee":
|
|
406
|
+
return t.day(a, {
|
|
407
|
+
width: "narrow",
|
|
408
|
+
context: "formatting"
|
|
409
|
+
});
|
|
410
|
+
// Tu
|
|
411
|
+
case "eeeeee":
|
|
412
|
+
return t.day(a, {
|
|
413
|
+
width: "short",
|
|
414
|
+
context: "formatting"
|
|
415
|
+
});
|
|
416
|
+
// Tuesday
|
|
417
|
+
case "eeee":
|
|
418
|
+
default:
|
|
419
|
+
return t.day(a, {
|
|
420
|
+
width: "wide",
|
|
421
|
+
context: "formatting"
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
// Stand-alone local day of week
|
|
426
|
+
c: function(r, e, t, n) {
|
|
427
|
+
const a = r.getDay(), c = (a - n.weekStartsOn + 8) % 7 || 7;
|
|
428
|
+
switch (e) {
|
|
429
|
+
// Numerical value (same as in `e`)
|
|
430
|
+
case "c":
|
|
431
|
+
return String(c);
|
|
432
|
+
// Padded numerical value
|
|
433
|
+
case "cc":
|
|
434
|
+
return s(c, e.length);
|
|
435
|
+
// 1st, 2nd, ..., 7th
|
|
436
|
+
case "co":
|
|
437
|
+
return t.ordinalNumber(c, { unit: "day" });
|
|
438
|
+
case "ccc":
|
|
439
|
+
return t.day(a, {
|
|
440
|
+
width: "abbreviated",
|
|
441
|
+
context: "standalone"
|
|
442
|
+
});
|
|
443
|
+
// T
|
|
444
|
+
case "ccccc":
|
|
445
|
+
return t.day(a, {
|
|
446
|
+
width: "narrow",
|
|
447
|
+
context: "standalone"
|
|
448
|
+
});
|
|
449
|
+
// Tu
|
|
450
|
+
case "cccccc":
|
|
451
|
+
return t.day(a, {
|
|
452
|
+
width: "short",
|
|
453
|
+
context: "standalone"
|
|
454
|
+
});
|
|
455
|
+
// Tuesday
|
|
456
|
+
case "cccc":
|
|
457
|
+
default:
|
|
458
|
+
return t.day(a, {
|
|
459
|
+
width: "wide",
|
|
460
|
+
context: "standalone"
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
// ISO day of week
|
|
465
|
+
i: function(r, e, t) {
|
|
466
|
+
const n = r.getDay(), a = n === 0 ? 7 : n;
|
|
467
|
+
switch (e) {
|
|
468
|
+
// 2
|
|
469
|
+
case "i":
|
|
470
|
+
return String(a);
|
|
471
|
+
// 02
|
|
472
|
+
case "ii":
|
|
473
|
+
return s(a, e.length);
|
|
474
|
+
// 2nd
|
|
475
|
+
case "io":
|
|
476
|
+
return t.ordinalNumber(a, { unit: "day" });
|
|
477
|
+
// Tue
|
|
478
|
+
case "iii":
|
|
479
|
+
return t.day(n, {
|
|
480
|
+
width: "abbreviated",
|
|
481
|
+
context: "formatting"
|
|
482
|
+
});
|
|
483
|
+
// T
|
|
484
|
+
case "iiiii":
|
|
485
|
+
return t.day(n, {
|
|
486
|
+
width: "narrow",
|
|
487
|
+
context: "formatting"
|
|
488
|
+
});
|
|
489
|
+
// Tu
|
|
490
|
+
case "iiiiii":
|
|
491
|
+
return t.day(n, {
|
|
492
|
+
width: "short",
|
|
493
|
+
context: "formatting"
|
|
494
|
+
});
|
|
495
|
+
// Tuesday
|
|
496
|
+
case "iiii":
|
|
497
|
+
default:
|
|
498
|
+
return t.day(n, {
|
|
499
|
+
width: "wide",
|
|
500
|
+
context: "formatting"
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
// AM or PM
|
|
505
|
+
a: function(r, e, t) {
|
|
506
|
+
const a = r.getHours() / 12 >= 1 ? "pm" : "am";
|
|
507
|
+
switch (e) {
|
|
508
|
+
case "a":
|
|
509
|
+
case "aa":
|
|
510
|
+
return t.dayPeriod(a, {
|
|
511
|
+
width: "abbreviated",
|
|
512
|
+
context: "formatting"
|
|
513
|
+
});
|
|
514
|
+
case "aaa":
|
|
515
|
+
return t.dayPeriod(a, {
|
|
516
|
+
width: "abbreviated",
|
|
517
|
+
context: "formatting"
|
|
518
|
+
}).toLowerCase();
|
|
519
|
+
case "aaaaa":
|
|
520
|
+
return t.dayPeriod(a, {
|
|
521
|
+
width: "narrow",
|
|
522
|
+
context: "formatting"
|
|
523
|
+
});
|
|
524
|
+
case "aaaa":
|
|
525
|
+
default:
|
|
526
|
+
return t.dayPeriod(a, {
|
|
527
|
+
width: "wide",
|
|
528
|
+
context: "formatting"
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
// AM, PM, midnight, noon
|
|
533
|
+
b: function(r, e, t) {
|
|
534
|
+
const n = r.getHours();
|
|
535
|
+
let a;
|
|
536
|
+
switch (n === 12 ? a = y.noon : n === 0 ? a = y.midnight : a = n / 12 >= 1 ? "pm" : "am", e) {
|
|
537
|
+
case "b":
|
|
538
|
+
case "bb":
|
|
539
|
+
return t.dayPeriod(a, {
|
|
540
|
+
width: "abbreviated",
|
|
541
|
+
context: "formatting"
|
|
542
|
+
});
|
|
543
|
+
case "bbb":
|
|
544
|
+
return t.dayPeriod(a, {
|
|
545
|
+
width: "abbreviated",
|
|
546
|
+
context: "formatting"
|
|
547
|
+
}).toLowerCase();
|
|
548
|
+
case "bbbbb":
|
|
549
|
+
return t.dayPeriod(a, {
|
|
550
|
+
width: "narrow",
|
|
551
|
+
context: "formatting"
|
|
552
|
+
});
|
|
553
|
+
case "bbbb":
|
|
554
|
+
default:
|
|
555
|
+
return t.dayPeriod(a, {
|
|
556
|
+
width: "wide",
|
|
557
|
+
context: "formatting"
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
// in the morning, in the afternoon, in the evening, at night
|
|
562
|
+
B: function(r, e, t) {
|
|
563
|
+
const n = r.getHours();
|
|
564
|
+
let a;
|
|
565
|
+
switch (n >= 17 ? a = y.evening : n >= 12 ? a = y.afternoon : n >= 4 ? a = y.morning : a = y.night, e) {
|
|
566
|
+
case "B":
|
|
567
|
+
case "BB":
|
|
568
|
+
case "BBB":
|
|
569
|
+
return t.dayPeriod(a, {
|
|
570
|
+
width: "abbreviated",
|
|
571
|
+
context: "formatting"
|
|
572
|
+
});
|
|
573
|
+
case "BBBBB":
|
|
574
|
+
return t.dayPeriod(a, {
|
|
575
|
+
width: "narrow",
|
|
576
|
+
context: "formatting"
|
|
577
|
+
});
|
|
578
|
+
case "BBBB":
|
|
579
|
+
default:
|
|
580
|
+
return t.dayPeriod(a, {
|
|
581
|
+
width: "wide",
|
|
582
|
+
context: "formatting"
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
// Hour [1-12]
|
|
587
|
+
h: function(r, e, t) {
|
|
588
|
+
if (e === "ho") {
|
|
589
|
+
let n = r.getHours() % 12;
|
|
590
|
+
return n === 0 && (n = 12), t.ordinalNumber(n, { unit: "hour" });
|
|
591
|
+
}
|
|
592
|
+
return l.h(r, e);
|
|
593
|
+
},
|
|
594
|
+
// Hour [0-23]
|
|
595
|
+
H: function(r, e, t) {
|
|
596
|
+
return e === "Ho" ? t.ordinalNumber(r.getHours(), { unit: "hour" }) : l.H(r, e);
|
|
597
|
+
},
|
|
598
|
+
// Hour [0-11]
|
|
599
|
+
K: function(r, e, t) {
|
|
600
|
+
const n = r.getHours() % 12;
|
|
601
|
+
return e === "Ko" ? t.ordinalNumber(n, { unit: "hour" }) : s(n, e.length);
|
|
602
|
+
},
|
|
603
|
+
// Hour [1-24]
|
|
604
|
+
k: function(r, e, t) {
|
|
605
|
+
let n = r.getHours();
|
|
606
|
+
return n === 0 && (n = 24), e === "ko" ? t.ordinalNumber(n, { unit: "hour" }) : s(n, e.length);
|
|
607
|
+
},
|
|
608
|
+
// Minute
|
|
609
|
+
m: function(r, e, t) {
|
|
610
|
+
return e === "mo" ? t.ordinalNumber(r.getMinutes(), { unit: "minute" }) : l.m(r, e);
|
|
611
|
+
},
|
|
612
|
+
// Second
|
|
613
|
+
s: function(r, e, t) {
|
|
614
|
+
return e === "so" ? t.ordinalNumber(r.getSeconds(), { unit: "second" }) : l.s(r, e);
|
|
615
|
+
},
|
|
616
|
+
// Fraction of second
|
|
617
|
+
S: function(r, e) {
|
|
618
|
+
return l.S(r, e);
|
|
619
|
+
},
|
|
620
|
+
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
621
|
+
X: function(r, e, t) {
|
|
622
|
+
const n = r.getTimezoneOffset();
|
|
623
|
+
if (n === 0)
|
|
624
|
+
return "Z";
|
|
625
|
+
switch (e) {
|
|
626
|
+
// Hours and optional minutes
|
|
627
|
+
case "X":
|
|
628
|
+
return H(n);
|
|
629
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
630
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
631
|
+
// so this token always has the same output as `XX`
|
|
632
|
+
case "XXXX":
|
|
633
|
+
case "XX":
|
|
634
|
+
return g(n);
|
|
635
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
636
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
637
|
+
// so this token always has the same output as `XXX`
|
|
638
|
+
case "XXXXX":
|
|
639
|
+
case "XXX":
|
|
640
|
+
// Hours and minutes with `:` delimiter
|
|
641
|
+
default:
|
|
642
|
+
return g(n, ":");
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
646
|
+
x: function(r, e, t) {
|
|
647
|
+
const n = r.getTimezoneOffset();
|
|
648
|
+
switch (e) {
|
|
649
|
+
// Hours and optional minutes
|
|
650
|
+
case "x":
|
|
651
|
+
return H(n);
|
|
652
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
653
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
654
|
+
// so this token always has the same output as `xx`
|
|
655
|
+
case "xxxx":
|
|
656
|
+
case "xx":
|
|
657
|
+
return g(n);
|
|
658
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
659
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
660
|
+
// so this token always has the same output as `xxx`
|
|
661
|
+
case "xxxxx":
|
|
662
|
+
case "xxx":
|
|
663
|
+
// Hours and minutes with `:` delimiter
|
|
664
|
+
default:
|
|
665
|
+
return g(n, ":");
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
// Timezone (GMT)
|
|
669
|
+
O: function(r, e, t) {
|
|
670
|
+
const n = r.getTimezoneOffset();
|
|
671
|
+
switch (e) {
|
|
672
|
+
// Short
|
|
673
|
+
case "O":
|
|
674
|
+
case "OO":
|
|
675
|
+
case "OOO":
|
|
676
|
+
return "GMT" + N(n, ":");
|
|
677
|
+
// Long
|
|
678
|
+
case "OOOO":
|
|
679
|
+
default:
|
|
680
|
+
return "GMT" + g(n, ":");
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
// Timezone (specific non-location)
|
|
684
|
+
z: function(r, e, t) {
|
|
685
|
+
const n = r.getTimezoneOffset();
|
|
686
|
+
switch (e) {
|
|
687
|
+
// Short
|
|
688
|
+
case "z":
|
|
689
|
+
case "zz":
|
|
690
|
+
case "zzz":
|
|
691
|
+
return "GMT" + N(n, ":");
|
|
692
|
+
// Long
|
|
693
|
+
case "zzzz":
|
|
694
|
+
default:
|
|
695
|
+
return "GMT" + g(n, ":");
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
// Seconds timestamp
|
|
699
|
+
t: function(r, e, t) {
|
|
700
|
+
const n = Math.trunc(+r / 1e3);
|
|
701
|
+
return s(n, e.length);
|
|
702
|
+
},
|
|
703
|
+
// Milliseconds timestamp
|
|
704
|
+
T: function(r, e, t) {
|
|
705
|
+
return s(+r, e.length);
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
function N(r, e = "") {
|
|
709
|
+
const t = r > 0 ? "-" : "+", n = Math.abs(r), a = Math.trunc(n / 60), c = n % 60;
|
|
710
|
+
return c === 0 ? t + String(a) : t + String(a) + e + s(c, 2);
|
|
711
|
+
}
|
|
712
|
+
function H(r, e) {
|
|
713
|
+
return r % 60 === 0 ? (r > 0 ? "-" : "+") + s(Math.abs(r) / 60, 2) : g(r, e);
|
|
714
|
+
}
|
|
715
|
+
function g(r, e = "") {
|
|
716
|
+
const t = r > 0 ? "-" : "+", n = Math.abs(r), a = s(Math.trunc(n / 60), 2), c = s(n % 60, 2);
|
|
717
|
+
return t + a + e + c;
|
|
718
|
+
}
|
|
719
|
+
const v = (r, e) => {
|
|
720
|
+
switch (r) {
|
|
721
|
+
case "P":
|
|
722
|
+
return e.date({ width: "short" });
|
|
723
|
+
case "PP":
|
|
724
|
+
return e.date({ width: "medium" });
|
|
725
|
+
case "PPP":
|
|
726
|
+
return e.date({ width: "long" });
|
|
727
|
+
case "PPPP":
|
|
728
|
+
default:
|
|
729
|
+
return e.date({ width: "full" });
|
|
730
|
+
}
|
|
731
|
+
}, L = (r, e) => {
|
|
732
|
+
switch (r) {
|
|
733
|
+
case "p":
|
|
734
|
+
return e.time({ width: "short" });
|
|
735
|
+
case "pp":
|
|
736
|
+
return e.time({ width: "medium" });
|
|
737
|
+
case "ppp":
|
|
738
|
+
return e.time({ width: "long" });
|
|
739
|
+
case "pppp":
|
|
740
|
+
default:
|
|
741
|
+
return e.time({ width: "full" });
|
|
742
|
+
}
|
|
743
|
+
}, z = (r, e) => {
|
|
744
|
+
const t = r.match(/(P+)(p+)?/) || [], n = t[1], a = t[2];
|
|
745
|
+
if (!a)
|
|
746
|
+
return v(r, e);
|
|
747
|
+
let c;
|
|
748
|
+
switch (n) {
|
|
749
|
+
case "P":
|
|
750
|
+
c = e.dateTime({ width: "short" });
|
|
751
|
+
break;
|
|
752
|
+
case "PP":
|
|
753
|
+
c = e.dateTime({ width: "medium" });
|
|
754
|
+
break;
|
|
755
|
+
case "PPP":
|
|
756
|
+
c = e.dateTime({ width: "long" });
|
|
757
|
+
break;
|
|
758
|
+
case "PPPP":
|
|
759
|
+
default:
|
|
760
|
+
c = e.dateTime({ width: "full" });
|
|
761
|
+
break;
|
|
762
|
+
}
|
|
763
|
+
return c.replace("{{date}}", v(n, e)).replace("{{time}}", L(a, e));
|
|
764
|
+
}, p = {
|
|
765
|
+
p: L,
|
|
766
|
+
P: z
|
|
767
|
+
}, ee = /^D+$/, te = /^Y+$/, re = ["D", "DD", "YY", "YYYY"];
|
|
768
|
+
function ne(r) {
|
|
769
|
+
return ee.test(r);
|
|
770
|
+
}
|
|
771
|
+
function ae(r) {
|
|
772
|
+
return te.test(r);
|
|
773
|
+
}
|
|
774
|
+
function ce(r, e, t) {
|
|
775
|
+
const n = se(r, e, t);
|
|
776
|
+
if (console.warn(n), re.includes(r)) throw new RangeError(n);
|
|
777
|
+
}
|
|
778
|
+
function se(r, e, t) {
|
|
779
|
+
const n = r[0] === "Y" ? "years" : "days of the month";
|
|
780
|
+
return `Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
781
|
+
}
|
|
782
|
+
const ue = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ie = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, oe = /^'([^]*?)'?$/, de = /''/g, fe = /[a-zA-Z]/;
|
|
783
|
+
function we(r, e, t) {
|
|
784
|
+
var m, O, x, Y, W, E, S, q;
|
|
785
|
+
const n = P(), a = (t == null ? void 0 : t.locale) ?? n.locale ?? R, c = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((O = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : O.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((Y = (x = n.locale) == null ? void 0 : x.options) == null ? void 0 : Y.firstWeekContainsDate) ?? 1, u = (t == null ? void 0 : t.weekStartsOn) ?? ((E = (W = t == null ? void 0 : t.locale) == null ? void 0 : W.options) == null ? void 0 : E.weekStartsOn) ?? n.weekStartsOn ?? ((q = (S = n.locale) == null ? void 0 : S.options) == null ? void 0 : q.weekStartsOn) ?? 0, d = h(r, t == null ? void 0 : t.in);
|
|
786
|
+
if (!U(d))
|
|
787
|
+
throw new RangeError("Invalid time value");
|
|
788
|
+
let f = e.match(ie).map((o) => {
|
|
789
|
+
const i = o[0];
|
|
790
|
+
if (i === "p" || i === "P") {
|
|
791
|
+
const T = p[i];
|
|
792
|
+
return T(o, a.formatLong);
|
|
793
|
+
}
|
|
794
|
+
return o;
|
|
795
|
+
}).join("").match(ue).map((o) => {
|
|
796
|
+
if (o === "''")
|
|
797
|
+
return { isToken: !1, value: "'" };
|
|
798
|
+
const i = o[0];
|
|
799
|
+
if (i === "'")
|
|
800
|
+
return { isToken: !1, value: he(o) };
|
|
801
|
+
if (C[i])
|
|
802
|
+
return { isToken: !0, value: o };
|
|
803
|
+
if (i.match(fe))
|
|
804
|
+
throw new RangeError(
|
|
805
|
+
"Format string contains an unescaped latin alphabet character `" + i + "`"
|
|
806
|
+
);
|
|
807
|
+
return { isToken: !1, value: o };
|
|
808
|
+
});
|
|
809
|
+
a.localize.preprocessor && (f = a.localize.preprocessor(d, f));
|
|
810
|
+
const w = {
|
|
811
|
+
firstWeekContainsDate: c,
|
|
812
|
+
weekStartsOn: u,
|
|
813
|
+
locale: a
|
|
814
|
+
};
|
|
815
|
+
return f.map((o) => {
|
|
816
|
+
if (!o.isToken) return o.value;
|
|
817
|
+
const i = o.value;
|
|
818
|
+
(!(t != null && t.useAdditionalWeekYearTokens) && ae(i) || !(t != null && t.useAdditionalDayOfYearTokens) && ne(i)) && ce(i, e, String(r));
|
|
819
|
+
const T = C[i[0]];
|
|
820
|
+
return T(d, i, a.localize, w);
|
|
821
|
+
}).join("");
|
|
822
|
+
}
|
|
823
|
+
function he(r) {
|
|
824
|
+
const e = r.match(oe);
|
|
825
|
+
return e ? e[1].replace(de, "'") : r;
|
|
826
|
+
}
|
|
827
|
+
export {
|
|
828
|
+
ge as a,
|
|
829
|
+
s as b,
|
|
830
|
+
D as c,
|
|
831
|
+
I as d,
|
|
832
|
+
Z as e,
|
|
833
|
+
we as f,
|
|
834
|
+
B as g,
|
|
835
|
+
J as h,
|
|
836
|
+
U as i,
|
|
837
|
+
F as j,
|
|
838
|
+
ae as k,
|
|
839
|
+
p as l,
|
|
840
|
+
ne as m,
|
|
841
|
+
j as n,
|
|
842
|
+
V as o,
|
|
843
|
+
M as s,
|
|
844
|
+
ce as w
|
|
845
|
+
};
|
|
846
|
+
//# sourceMappingURL=format-ql5WTsYT.js.map
|