@nova-design-system/nova-webcomponents 3.24.0 → 3.26.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/cjs/_commonjsHelpers-CFO10eej.js +0 -3
- package/dist/cjs/clsx-BtxeOLZW.js +0 -3
- package/dist/cjs/collapse.animation-CcG0GAWk.js +0 -3
- package/dist/cjs/constants-BugGJYqL.js +0 -3
- package/dist/cjs/dom.utils-8VY5SfMZ.js +177 -0
- package/dist/cjs/events.utils-BE6R5q9C.js +0 -3
- package/dist/cjs/fade.animation-BQSqXXOJ.js +0 -3
- package/dist/cjs/grow.animation-ynu_HmA_.js +0 -3
- package/dist/cjs/i18n.utils-BbKpUgYq.js +77 -0
- package/dist/cjs/index-BQjqJTJB.js +4832 -0
- package/dist/cjs/index.cjs.js +54 -3
- package/dist/cjs/index.esm-CG1TVKfu.js +0 -3
- package/dist/cjs/inputmask-DtXnpVWa.js +0 -3
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/native.cjs.js +32 -7
- package/dist/cjs/nv-accordion-item.cjs.entry.js +8 -8
- package/dist/cjs/nv-accordion.cjs.entry.js +10 -9
- package/dist/cjs/nv-alert.cjs.entry.js +6 -5
- package/dist/cjs/nv-avatar.cjs.entry.js +3 -4
- package/dist/cjs/nv-badge_2.cjs.entry.js +18 -12
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +14 -12
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +4 -5
- package/dist/cjs/nv-button.cjs.entry.js +9 -6
- package/dist/cjs/nv-buttongroup.cjs.entry.js +12 -7
- package/dist/cjs/nv-calendar.cjs.entry.js +27 -20
- package/dist/cjs/nv-col.cjs.entry.js +3 -4
- package/dist/cjs/nv-datagrid.cjs.entry.js +47 -185
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -2
- package/dist/cjs/nv-dialog.cjs.entry.js +19 -21
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +11 -30
- package/dist/cjs/nv-drawer.cjs.entry.js +19 -20
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +11 -30
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +10 -9
- package/dist/cjs/nv-fielddate.cjs.entry.js +15 -14
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +15 -15
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +32 -30
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +5 -9
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +27 -23
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +10 -9
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +10 -9
- package/dist/cjs/nv-fieldradio.cjs.entry.js +9 -8
- package/dist/cjs/nv-fieldselect.cjs.entry.js +20 -13
- package/dist/cjs/nv-fieldslider.cjs.entry.js +33 -16
- package/dist/cjs/nv-fieldtext.cjs.entry.js +7 -8
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +42 -35
- package/dist/cjs/nv-fieldtime.cjs.entry.js +15 -10
- package/dist/cjs/nv-icon.cjs.entry.js +4 -5
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +13 -10
- package/dist/cjs/nv-menu.cjs.entry.js +9 -14
- package/dist/cjs/nv-menuitem.cjs.entry.js +4 -6
- package/dist/cjs/nv-notification-bullet.cjs.entry.js +3 -4
- package/dist/cjs/nv-notification.cjs.entry.js +4 -5
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +4 -5
- package/dist/cjs/nv-paginationtable.cjs.entry.js +228 -0
- package/dist/cjs/nv-popover.cjs.entry.js +105 -34
- package/dist/cjs/nv-row.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebar.cjs.entry.js +10 -7
- package/dist/cjs/nv-sidebarcontent.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebardivider.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarfooter.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebargroup.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarheader.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarlogo.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarnavitem.cjs.entry.js +9 -8
- package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js +4 -5
- package/dist/cjs/nv-split.cjs.entry.js +10 -7
- package/dist/cjs/nv-stack.cjs.entry.js +4 -5
- package/dist/cjs/nv-table.cjs.entry.js +6 -5
- package/dist/cjs/nv-tableheader.cjs.entry.js +4 -5
- package/dist/cjs/nv-toggle.cjs.entry.js +8 -7
- package/dist/cjs/nv-togglebutton.cjs.entry.js +4 -6
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +13 -10
- package/dist/cjs/nv-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/slide.animation-Cb3tpLQv.js +0 -3
- package/dist/cjs/style-value-types.es-B1vLqX9m.js +0 -3
- package/dist/cjs/timeline.animation-KteJaZPb.js +0 -3
- package/dist/cjs/uri.utils-DiMLQx64.js +0 -3
- package/dist/cjs/v4-C1vaJ4yP.js +0 -3
- package/dist/cjs/{i18n.utils-ku0bScip.js → worker-client-ByL3TenE.js} +35 -78
- package/dist/collection/animations/collapse.animation.js +0 -1
- package/dist/collection/animations/fade.animation.js +0 -1
- package/dist/collection/animations/grow.animation.js +0 -1
- package/dist/collection/animations/index.js +0 -1
- package/dist/collection/animations/slide.animation.js +0 -1
- package/dist/collection/animations/timeline.animation.js +0 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/nv-accordion/nv-accordion.docs.js +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.js +1 -4
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.docs.js +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js +2 -4
- package/dist/collection/components/nv-alert/nv-alert.docs.js +0 -1
- package/dist/collection/components/nv-alert/nv-alert.js +4 -3
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.js +2 -2
- package/dist/collection/components/nv-badge/nv-badge.css +4 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js +0 -1
- package/dist/collection/components/nv-badge/nv-badge.js +3 -2
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +12 -10
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.css +0 -3
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +1 -2
- package/dist/collection/components/nv-button/nv-button.docs.js +0 -1
- package/dist/collection/components/nv-button/nv-button.js +6 -4
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.docs.js +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.js +4 -3
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.utils.js +0 -1
- package/dist/collection/components/nv-buttongroup/styles/nv-buttongroup.css +4 -4
- package/dist/collection/components/nv-buttongroup/test/nv-buttongroup.utils.test.js +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.css +110 -1
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js +9 -12
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-actions.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-grid.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-header.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-shortcuts.js +0 -1
- package/dist/collection/components/nv-calendar/partials/day-cell.js +0 -1
- package/dist/collection/components/nv-calendar/partials/index.js +0 -1
- package/dist/collection/components/nv-calendar/partials/week-numbers.js +0 -1
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js +0 -2
- package/dist/collection/components/nv-calendar/test/partials/calendar-actions.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-grid.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-header.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-shortcuts.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/day-cell.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/week-numbers.logic.test.js +0 -1
- package/dist/collection/components/nv-col/nv-col.docs.js +0 -1
- package/dist/collection/components/nv-col/nv-col.js +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +6 -5
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.docs.js +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js +0 -7
- package/dist/collection/components/nv-dialog/nv-dialog.js +17 -45
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +8 -15
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -13
- package/dist/collection/components/nv-drawer/nv-drawer.docs.js +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.js +13 -16
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.docs.js +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +8 -15
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.docs.js +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js +1 -13
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +9 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +6 -6
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +6 -9
- package/dist/collection/components/nv-fielddate/test/nv-fielddate.logic.test.js +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +6 -10
- package/dist/collection/components/nv-fielddaterange/test/nv-fielddaterange.logic.test.js +0 -2
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +16 -13
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +3 -7
- package/dist/collection/components/nv-fielddropdownitem/styles/nv-fielddropdownitem.css +78 -8
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -3
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +5 -6
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +4 -5
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +7 -7
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +5 -5
- package/dist/collection/components/nv-fieldradio/styles/nv-fieldradio.css +20 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -6
- package/dist/collection/components/nv-fieldselect/styles/nv-fieldselect.css +90 -7
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -4
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/field-input.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js +0 -1
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +7 -7
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js +14 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +50 -30
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +3 -5
- package/dist/collection/components/nv-fieldtime/utils/format-utils.js +0 -1
- package/dist/collection/components/nv-icon/nv-icon.docs.js +0 -1
- package/dist/collection/components/nv-icon/nv-icon.js +7 -5
- package/dist/collection/components/nv-icon/nv-icons.js +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +11 -7
- package/dist/collection/components/nv-loader/nv-loader.docs.js +0 -1
- package/dist/collection/components/nv-loader/nv-loader.js +5 -4
- package/dist/collection/components/nv-menu/nv-menu.docs.js +0 -1
- package/dist/collection/components/nv-menu/nv-menu.js +14 -12
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +4 -5
- package/dist/collection/components/nv-notification/nv-notification.docs.js +0 -1
- package/dist/collection/components/nv-notification/nv-notification.js +5 -4
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.docs.js +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.js +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +3 -3
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.css +17 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.docs.js +248 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.js +537 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.utils.js +64 -0
- package/dist/collection/components/nv-paginationtable/test/nv-paginationtable.utils.test.js +360 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js +0 -1
- package/dist/collection/components/nv-popover/nv-popover.js +19 -14
- package/dist/collection/components/nv-row/nv-row.docs.js +0 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -2
- package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +1 -2
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js +1 -2
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js +1 -2
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js +1 -2
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js +1 -2
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js +1 -2
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js +1 -2
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +6 -6
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +1 -2
- package/dist/collection/components/nv-split/nv-split.docs.js +0 -1
- package/dist/collection/components/nv-split/nv-split.js +1 -2
- package/dist/collection/components/nv-stack/nv-stack.docs.js +0 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -2
- package/dist/collection/components/nv-table/nv-table.docs.js +0 -1
- package/dist/collection/components/nv-table/nv-table.js +1 -3
- package/dist/collection/components/nv-table/nv-table.utils.js +2 -1
- package/dist/collection/components/nv-table/test/nv-table.utils.test.js +0 -2
- package/dist/collection/components/nv-tableheader/nv-tableheader.docs.js +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.js +1 -2
- package/dist/collection/components/nv-toggle/nv-toggle.css +26 -0
- package/dist/collection/components/nv-toggle/nv-toggle.docs.js +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +4 -4
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.docs.js +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +5 -5
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +5 -6
- package/dist/collection/components/nv-tooltip/nv-tooltip.css +7 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +20 -13
- package/dist/collection/index.js +2 -1
- package/dist/collection/interfaces/Column.js +0 -1
- package/dist/collection/interfaces/ColumnConfig.js +0 -1
- package/dist/collection/interfaces/localization.js +0 -1
- package/dist/collection/templates/navigation.docs.js +0 -1
- package/dist/collection/utils/class.utils.js +0 -1
- package/dist/collection/utils/constants.js +0 -1
- package/dist/collection/utils/dom.utils.js +8 -1
- package/dist/collection/utils/events.utils.js +0 -1
- package/dist/collection/utils/i18n.utils.js +0 -1
- package/dist/collection/utils/input.utils.js +0 -1
- package/dist/collection/utils/search-engine/engine.js +0 -1
- package/dist/collection/utils/search-engine/guards.js +0 -1
- package/dist/collection/utils/search-engine/index.js +0 -1
- package/dist/collection/utils/search-engine/indexer.js +0 -1
- package/dist/collection/utils/search-engine/normalize.js +0 -1
- package/dist/collection/utils/search-engine/strategies/fuzzy.js +0 -1
- package/dist/collection/utils/search-engine/strategies/smart.js +0 -1
- package/dist/collection/utils/search-engine/strategies/strict.js +0 -1
- package/dist/collection/utils/search-engine/test/engine.test.js +0 -1
- package/dist/collection/utils/search-engine/test/guards.test.js +0 -1
- package/dist/collection/utils/search-engine/test/indexer.test.js +0 -1
- package/dist/collection/utils/search-engine/test/normalize.test.js +0 -1
- package/dist/collection/utils/search-engine/test/strategies.test.js +0 -1
- package/dist/collection/utils/search-engine/types.js +0 -1
- package/dist/collection/utils/search-engine/worker/index.js +0 -1
- package/dist/collection/utils/search-engine/worker/search.worker.js +0 -1
- package/dist/collection/utils/search-engine/worker/worker-client.js +0 -1
- package/dist/collection/utils/string.utils.js +0 -1
- package/dist/collection/utils/test/class.utils.test.js +0 -2
- package/dist/collection/utils/test/dom.utils.test.js +24 -3
- package/dist/collection/utils/test/i18n.utils.test.js +0 -1
- package/dist/collection/utils/test/input.utils.test.js +0 -1
- package/dist/collection/utils/test/uri.utils.test.js +0 -1
- package/dist/collection/utils/uri.utils.js +0 -1
- package/dist/components/_.entry.js +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -583
- package/dist/components/nv-accordion-item.js +1 -9
- package/dist/components/nv-accordion.js +1 -229
- package/dist/components/nv-alert.js +1 -211
- package/dist/components/nv-avatar.js +1 -105
- package/dist/components/nv-badge.js +1 -9
- package/dist/components/nv-breadcrumb.js +1 -80
- package/dist/components/nv-breadcrumbs.js +1 -39
- package/dist/components/nv-button.js +1 -9
- package/dist/components/nv-buttongroup.js +1 -223
- package/dist/components/nv-calendar.js +1 -9
- package/dist/components/nv-col.js +1 -58
- package/dist/components/nv-datagrid.js +1 -4580
- package/dist/components/nv-datagridcolumn.js +1 -47
- package/dist/components/nv-dialog.js +1 -362
- package/dist/components/nv-dialogfooter.js +1 -9
- package/dist/components/nv-dialogheader.js +1 -9
- package/dist/components/nv-drawer.js +1 -507
- package/dist/components/nv-drawerfooter.js +1 -9
- package/dist/components/nv-drawerheader.js +1 -9
- package/dist/components/nv-fieldcheckbox.js +1 -9
- package/dist/components/nv-fielddate.js +1 -507
- package/dist/components/nv-fielddaterange.js +1 -670
- package/dist/components/nv-fielddropdown.js +1 -768
- package/dist/components/nv-fielddropdownitem.js +1 -9
- package/dist/components/nv-fielddropdownitemcheck.js +1 -9
- package/dist/components/nv-fieldmultiselect.js +1 -1587
- package/dist/components/nv-fieldnumber.js +1 -9
- package/dist/components/nv-fieldpassword.js +1 -227
- package/dist/components/nv-fieldradio.js +1 -137
- package/dist/components/nv-fieldselect.js +1 -460
- package/dist/components/nv-fieldslider.js +1 -801
- package/dist/components/nv-fieldtext.js +1 -9
- package/dist/components/nv-fieldtextarea.js +1 -282
- package/dist/components/nv-fieldtime.js +1 -1189
- package/dist/components/nv-icon.js +1 -9
- package/dist/components/nv-iconbutton.js +1 -9
- package/dist/components/nv-loader.js +1 -9
- package/dist/components/nv-menu.js +1 -254
- package/dist/components/nv-menuitem.js +1 -9
- package/dist/components/nv-notification-bullet.js +1 -9
- package/dist/components/nv-notification.js +1 -212
- package/dist/components/nv-notificationcontainer.js +1 -61
- package/dist/components/nv-paginationtable.d.ts +11 -0
- package/dist/components/nv-paginationtable.js +1 -0
- package/dist/components/nv-popover.js +1 -9
- package/dist/components/nv-row.js +1 -40
- package/dist/components/nv-sidebar.js +1 -210
- package/dist/components/nv-sidebarcontent.js +1 -40
- package/dist/components/nv-sidebardivider.js +1 -40
- package/dist/components/nv-sidebarfooter.js +1 -40
- package/dist/components/nv-sidebargroup.js +1 -43
- package/dist/components/nv-sidebarheader.js +1 -40
- package/dist/components/nv-sidebarlogo.js +1 -54
- package/dist/components/nv-sidebarnavitem.js +1 -336
- package/dist/components/nv-sidebarnavsubitem.js +1 -55
- package/dist/components/nv-split.js +1 -370
- package/dist/components/nv-stack.js +1 -55
- package/dist/components/nv-table.js +1 -261
- package/dist/components/nv-tableheader.js +1 -114
- package/dist/components/nv-toggle.js +1 -111
- package/dist/components/nv-togglebutton.js +1 -91
- package/dist/components/nv-togglebuttongroup.js +1 -200
- package/dist/components/nv-tooltip.js +1 -9
- package/dist/components/p-9xYwU7ku.js +1 -724
- package/dist/components/p-B5KLppep.js +1 -0
- package/dist/components/p-B6GgGra-.js +1 -29
- package/dist/components/p-BAlaMmS4.js +1 -0
- package/dist/components/p-BPufjY85.js +1 -0
- package/dist/components/p-BReL3Lsa.js +1 -286
- package/dist/components/p-BaF3Tuua.js +1 -0
- package/dist/components/p-BdYh22OP.js +1 -57
- package/dist/components/p-BfaMgLx7.js +9 -0
- package/dist/components/p-Bh6WGsHA.js +1 -0
- package/dist/components/p-C2J7j_fw.js +1 -0
- package/dist/components/p-C9p4yTS2.js +1 -0
- package/dist/components/p-CAKTe96z.js +1 -0
- package/dist/components/p-CEI7jWvn.js +1 -0
- package/dist/components/p-CR9MpYzU.js +1 -0
- package/dist/components/p-CZcMM7Lh.js +1 -0
- package/dist/components/p-Ce1IBFTa.js +1 -0
- package/dist/components/p-CgHCo_Ho.js +1 -42
- package/dist/components/p-ChV9xqsO.js +1 -6
- package/dist/components/p-CnI0auJM.js +1 -24
- package/dist/components/p-CuXVGECR.js +1 -0
- package/dist/components/p-D02w_Ru6.js +1 -91
- package/dist/components/p-D15RdWEG.js +1 -0
- package/dist/components/p-D1C_pu0E.js +1 -218
- package/dist/components/p-D2otK4Ce.js +1 -91
- package/dist/components/p-D3eWMME9.js +1 -534
- package/dist/components/p-DDqZBSGn.js +1 -0
- package/dist/components/p-DHNSuxz-.js +1 -0
- package/dist/components/p-DhDxhFz-.js +1 -0
- package/dist/components/p-DqU-wS_x.js +1 -0
- package/dist/components/p-Dz1GUhVy.js +15 -1119
- package/dist/components/p-FSPz8FER.js +1 -0
- package/dist/components/p-RUeDcouW.js +1 -0
- package/dist/components/p-iXsbKJzR.js +2 -0
- package/dist/components/p-jZF_Ggmx.js +1 -0
- package/dist/components/p-laRga5dw.js +1 -0
- package/dist/components/p-nmQOuX7R.js +1 -0
- package/dist/components/p-yHGZRC6Q.js +1 -0
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +0 -3
- package/dist/esm/clsx-ChV9xqsO.js +0 -3
- package/dist/esm/collapse.animation-DZDm0vSK.js +0 -3
- package/dist/esm/constants-BReL3Lsa.js +0 -3
- package/dist/esm/dom.utils-CuXVGECR.js +173 -0
- package/dist/esm/events.utils-B6GgGra-.js +0 -3
- package/dist/esm/fade.animation-DcRL9lcm.js +0 -3
- package/dist/esm/grow.animation-D7ep_aVl.js +0 -3
- package/dist/esm/i18n.utils-CR9MpYzU.js +74 -0
- package/dist/esm/index-S-IZ4AN_.js +4796 -0
- package/dist/esm/index.esm-D3eWMME9.js +0 -3
- package/dist/esm/index.js +53 -3
- package/dist/esm/inputmask-CSo292ul.js +0 -3
- package/dist/esm/loader.js +3 -5
- package/dist/esm/native.js +32 -7
- package/dist/esm/nv-accordion-item.entry.js +8 -8
- package/dist/esm/nv-accordion.entry.js +10 -9
- package/dist/esm/nv-alert.entry.js +6 -5
- package/dist/esm/nv-avatar.entry.js +3 -4
- package/dist/esm/nv-badge_2.entry.js +18 -12
- package/dist/esm/nv-breadcrumb.entry.js +14 -12
- package/dist/esm/nv-breadcrumbs.entry.js +4 -5
- package/dist/esm/nv-button.entry.js +9 -6
- package/dist/esm/nv-buttongroup.entry.js +12 -7
- package/dist/esm/nv-calendar.entry.js +27 -20
- package/dist/esm/nv-col.entry.js +3 -4
- package/dist/esm/nv-datagrid.entry.js +42 -180
- package/dist/esm/nv-datagridcolumn.entry.js +1 -2
- package/dist/esm/nv-dialog.entry.js +19 -21
- package/dist/esm/nv-dialogfooter_2.entry.js +11 -30
- package/dist/esm/nv-drawer.entry.js +19 -20
- package/dist/esm/nv-drawerfooter_2.entry.js +11 -30
- package/dist/esm/nv-fieldcheckbox.entry.js +10 -9
- package/dist/esm/nv-fielddate.entry.js +15 -14
- package/dist/esm/nv-fielddaterange.entry.js +15 -15
- package/dist/esm/nv-fielddropdown.entry.js +19 -17
- package/dist/esm/nv-fielddropdownitem.entry.js +5 -9
- package/dist/esm/nv-fieldmultiselect.entry.js +14 -10
- package/dist/esm/nv-fieldnumber.entry.js +10 -9
- package/dist/esm/nv-fieldpassword.entry.js +10 -9
- package/dist/esm/nv-fieldradio.entry.js +9 -8
- package/dist/esm/nv-fieldselect.entry.js +20 -13
- package/dist/esm/nv-fieldslider.entry.js +33 -16
- package/dist/esm/nv-fieldtext.entry.js +7 -8
- package/dist/esm/nv-fieldtextarea.entry.js +42 -35
- package/dist/esm/nv-fieldtime.entry.js +15 -10
- package/dist/esm/nv-icon.entry.js +4 -5
- package/dist/esm/nv-iconbutton_2.entry.js +13 -10
- package/dist/esm/nv-menu.entry.js +9 -14
- package/dist/esm/nv-menuitem.entry.js +4 -6
- package/dist/esm/nv-notification-bullet.entry.js +3 -4
- package/dist/esm/nv-notification.entry.js +4 -5
- package/dist/esm/nv-notificationcontainer.entry.js +4 -5
- package/dist/esm/nv-paginationtable.entry.js +226 -0
- package/dist/esm/nv-popover.entry.js +105 -34
- package/dist/esm/nv-row.entry.js +4 -5
- package/dist/esm/nv-sidebar.entry.js +10 -7
- package/dist/esm/nv-sidebarcontent.entry.js +4 -5
- package/dist/esm/nv-sidebardivider.entry.js +4 -5
- package/dist/esm/nv-sidebarfooter.entry.js +4 -5
- package/dist/esm/nv-sidebargroup.entry.js +4 -5
- package/dist/esm/nv-sidebarheader.entry.js +4 -5
- package/dist/esm/nv-sidebarlogo.entry.js +4 -5
- package/dist/esm/nv-sidebarnavitem.entry.js +9 -8
- package/dist/esm/nv-sidebarnavsubitem.entry.js +4 -5
- package/dist/esm/nv-split.entry.js +10 -7
- package/dist/esm/nv-stack.entry.js +4 -5
- package/dist/esm/nv-table.entry.js +6 -5
- package/dist/esm/nv-tableheader.entry.js +4 -5
- package/dist/esm/nv-toggle.entry.js +8 -7
- package/dist/esm/nv-togglebutton.entry.js +4 -6
- package/dist/esm/nv-togglebuttongroup.entry.js +13 -10
- package/dist/esm/nv-tooltip.entry.js +10 -10
- package/dist/esm/slide.animation-CmH5d1of.js +0 -3
- package/dist/esm/style-value-types.es-xlgmw4x8.js +0 -3
- package/dist/esm/timeline.animation-CgHCo_Ho.js +0 -3
- package/dist/esm/uri.utils-CnI0auJM.js +0 -3
- package/dist/esm/v4-BdYh22OP.js +0 -3
- package/dist/{components/p-IlwlcG9l.js → esm/worker-client-BaF3Tuua.js} +20 -77
- package/dist/lib/generators/angular-output.js +0 -1
- package/dist/lib/generators/docs-blazor.js +0 -1
- package/dist/lib/generators/vue-output.js +0 -1
- package/dist/lib/scripts/nextjs-entry-shim.js +25 -0
- package/dist/lib/utils/componentBinding.js +0 -1
- package/dist/lib/utils/parseToCSharpTypes.js +0 -1
- package/dist/lib/utils/spread.js +0 -1
- package/dist/lib/utils/test/parseToCSharpTypes.test.js +0 -1
- package/dist/native/index.esm.js +1 -2
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -2
- package/dist/native/p-043d500e.entry.js +1 -0
- package/dist/native/p-04956305.entry.js +1 -0
- package/dist/native/p-06a17aba.entry.js +1 -0
- package/dist/native/p-0819a7b1.entry.js +1 -0
- package/dist/native/p-0bfd188c.entry.js +1 -0
- package/dist/native/p-0e8b544b.entry.js +1 -0
- package/dist/native/p-0ec34d19.entry.js +1 -0
- package/dist/native/p-11eb959b.entry.js +1 -0
- package/dist/native/p-13YSIyGW.js +1 -2
- package/dist/native/p-17f2525a.entry.js +1 -0
- package/dist/native/p-1a5db5e9.entry.js +1 -0
- package/dist/native/p-1bf1a213.entry.js +1 -0
- package/dist/native/p-1dd3da3b.entry.js +1 -0
- package/dist/native/p-2106dfbd.entry.js +1 -0
- package/dist/native/p-31301f1e.entry.js +1 -0
- package/dist/native/p-3a04a563.entry.js +1 -0
- package/dist/native/p-3fb1a188.entry.js +1 -0
- package/dist/native/p-48e7b457.entry.js +1 -0
- package/dist/native/p-5cbf5973.entry.js +1 -0
- package/dist/native/p-64104dbd.entry.js +1 -0
- package/dist/native/p-6a9363a6.entry.js +1 -0
- package/dist/native/p-6b655545.entry.js +1 -0
- package/dist/native/p-702a6646.entry.js +1 -0
- package/dist/native/p-70abbe4f.entry.js +1 -0
- package/dist/native/p-79d8c26b.entry.js +1 -0
- package/dist/native/p-7a8e2ef3.entry.js +1 -0
- package/dist/native/p-7c413f8b.entry.js +1 -0
- package/dist/native/p-85c8be32.entry.js +1 -0
- package/dist/native/p-87a1b06c.entry.js +1 -0
- package/dist/native/p-89f7d483.entry.js +1 -0
- package/dist/native/p-8ce17efd.entry.js +1 -0
- package/dist/native/p-8dadc0c9.entry.js +1 -0
- package/dist/native/p-945ca1db.entry.js +1 -0
- package/dist/native/p-97a5f8d5.entry.js +1 -0
- package/dist/native/p-98ea927d.entry.js +1 -0
- package/dist/native/p-B6GgGra-.js +1 -2
- package/dist/native/p-B85MJLTf.js +1 -2
- package/dist/native/p-BReL3Lsa.js +1 -2
- package/dist/native/p-BaF3Tuua.js +1 -0
- package/dist/native/p-BdYh22OP.js +1 -2
- package/dist/native/p-Blc6XEY7.js +1 -2
- package/dist/native/p-CR9MpYzU.js +1 -0
- package/dist/native/p-CgHCo_Ho.js +1 -2
- package/dist/native/p-ChV9xqsO.js +1 -2
- package/dist/native/p-CnI0auJM.js +1 -2
- package/dist/native/p-CuXVGECR.js +1 -0
- package/dist/native/p-D3eWMME9.js +1 -2
- package/dist/native/p-DmUOtOcY.js +1 -2
- package/dist/native/p-Hfc8Oh0x.js +3 -4
- package/dist/native/p-S-IZ4AN_.js +2 -0
- package/dist/native/p-a8bc3b92.entry.js +1 -0
- package/dist/native/p-a92e2ad8.entry.js +1 -0
- package/dist/native/p-a9a07a8d.entry.js +1 -0
- package/dist/native/p-a9a20f37.entry.js +1 -0
- package/dist/native/p-aa232a20.entry.js +1 -0
- package/dist/native/p-ae4fc02a.entry.js +1 -0
- package/dist/native/p-b0d97496.entry.js +1 -0
- package/dist/native/p-bd143e7b.entry.js +1 -0
- package/dist/native/p-bdaab534.entry.js +1 -0
- package/dist/native/p-bdbc92d9.entry.js +1 -0
- package/dist/native/p-bef3d325.entry.js +1 -0
- package/dist/native/p-c3ea1eca.entry.js +1 -0
- package/dist/native/p-c825c542.entry.js +1 -0
- package/dist/native/p-ce2c17dc.entry.js +1 -0
- package/dist/native/p-d46ea49a.entry.js +1 -0
- package/dist/native/p-dc0d1690.entry.js +1 -0
- package/dist/native/p-e05b6008.entry.js +1 -0
- package/dist/native/p-e1021e2c.entry.js +1 -0
- package/dist/native/p-e937d495.entry.js +1 -0
- package/dist/native/p-f22d2ad9.entry.js +1 -0
- package/dist/native/p-f2a32774.entry.js +1 -0
- package/dist/native/p-f5eff2b2.entry.js +1 -0
- package/dist/native/p-f64f1bea.entry.js +1 -0
- package/dist/native/p-fba55e2f.entry.js +1 -0
- package/dist/native/p-sqVK8yoD.js +1 -2
- package/dist/native/p-xlgmw4x8.js +2 -3
- package/dist/types/components/nv-breadcrumb/nv-breadcrumb.d.ts +4 -2
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -9
- package/dist/types/components/nv-dialogfooter/nv-dialogfooter.d.ts +3 -4
- package/dist/types/components/nv-dialogheader/nv-dialogheader.d.ts +0 -3
- package/dist/types/components/nv-drawer/nv-drawer.d.ts +3 -3
- package/dist/types/components/nv-drawerfooter/nv-drawerfooter.d.ts +3 -4
- package/dist/types/components/nv-drawerheader/nv-drawerheader.d.ts +0 -3
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +4 -0
- package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.d.ts +2 -3
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +9 -1
- package/dist/types/components/nv-menu/nv-menu.d.ts +5 -1
- package/dist/types/components/nv-paginationtable/nv-paginationtable.d.ts +112 -0
- package/dist/types/components/nv-paginationtable/nv-paginationtable.docs.d.ts +4 -0
- package/dist/types/components/nv-paginationtable/nv-paginationtable.utils.d.ts +61 -0
- package/dist/types/components/nv-paginationtable/test/nv-paginationtable.utils.test.d.ts +1 -0
- package/dist/types/components/nv-popover/nv-popover.d.ts +2 -3
- package/dist/types/components/nv-tooltip/nv-tooltip.d.ts +4 -2
- package/dist/types/components.d.ts +182 -5
- package/dist/types/index.d.ts +1 -0
- package/dist/types/nova-docs.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +87 -4
- package/dist/types/utils/dom.utils.d.ts +6 -0
- package/dist/types/utils/events.utils.d.ts +2 -2
- package/dist/vscode-data.json +641 -588
- package/hydrate/index.d.ts +12 -0
- package/hydrate/index.js +6999 -1257
- package/hydrate/index.mjs +6998 -1258
- package/package.json +11 -9
- package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +0 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/clsx-BtxeOLZW.js.map +0 -1
- package/dist/cjs/collapse.animation-CcG0GAWk.js.map +0 -1
- package/dist/cjs/constants-BugGJYqL.js.map +0 -1
- package/dist/cjs/events.utils-BE6R5q9C.js.map +0 -1
- package/dist/cjs/fade.animation-BQSqXXOJ.js.map +0 -1
- package/dist/cjs/grow.animation-ynu_HmA_.js.map +0 -1
- package/dist/cjs/i18n.utils-ku0bScip.js.map +0 -1
- package/dist/cjs/index-B1na8x6M.js +0 -2841
- package/dist/cjs/index-B1na8x6M.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/index.esm-CG1TVKfu.js.map +0 -1
- package/dist/cjs/inputmask-DtXnpVWa.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/native.cjs.js.map +0 -1
- package/dist/cjs/nv-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-avatar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-badge.nv-fielddropdownitemcheck.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-breadcrumb.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-breadcrumbs.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-button.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-buttongroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-calendar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-col.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-datagrid.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-datagridcolumn.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-dialog.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-dialogfooter.nv-dialogheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-drawer.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-drawerfooter.nv-drawerheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldcheckbox.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddate.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddaterange.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddropdown.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddropdownitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldmultiselect.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldnumber.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldpassword.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldradio.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldselect.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldslider.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtext.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtextarea.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtime.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-iconbutton.nv-loader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-menu.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-menuitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notification-bullet.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notification.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notificationcontainer.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-popover.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-row.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarcontent.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebardivider.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarfooter.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebargroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarlogo.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarnavitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarnavsubitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-split.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-stack.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-table.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-tableheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-toggle.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-togglebutton.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-togglebuttongroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/slide.animation-Cb3tpLQv.js.map +0 -1
- package/dist/cjs/style-value-types.es-B1vLqX9m.js.map +0 -1
- package/dist/cjs/timeline.animation-KteJaZPb.js.map +0 -1
- package/dist/cjs/uri.utils-DiMLQx64.js.map +0 -1
- package/dist/cjs/v4-C1vaJ4yP.js.map +0 -1
- package/dist/collection/animations/collapse.animation.js.map +0 -1
- package/dist/collection/animations/fade.animation.js.map +0 -1
- package/dist/collection/animations/grow.animation.js.map +0 -1
- package/dist/collection/animations/index.js.map +0 -1
- package/dist/collection/animations/slide.animation.js.map +0 -1
- package/dist/collection/animations/timeline.animation.js.map +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.docs.js.map +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.js.map +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.docs.js.map +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js.map +0 -1
- package/dist/collection/components/nv-alert/nv-alert.docs.js.map +0 -1
- package/dist/collection/components/nv-alert/nv-alert.js.map +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js.map +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.js.map +0 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js.map +0 -1
- package/dist/collection/components/nv-badge/nv-badge.js.map +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js.map +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js.map +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js.map +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js.map +0 -1
- package/dist/collection/components/nv-button/nv-button.docs.js.map +0 -1
- package/dist/collection/components/nv-button/nv-button.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.docs.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.utils.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/test/nv-buttongroup.utils.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-actions.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-grid.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-header.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-shortcuts.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/day-cell.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/index.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/week-numbers.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-actions.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-grid.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-header.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-shortcuts.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/day-cell.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/week-numbers.logic.test.js.map +0 -1
- package/dist/collection/components/nv-col/nv-col.docs.js.map +0 -1
- package/dist/collection/components/nv-col/nv-col.js.map +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.docs.js.map +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js.map +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js.map +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js.map +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js.map +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.docs.js.map +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.js.map +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js.map +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.docs.js.map +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js.map +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js.map +0 -1
- package/dist/collection/components/nv-fielddate/test/nv-fielddate.logic.test.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/test/nv-fielddaterange.logic.test.js.map +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/field-input.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js.map +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +0 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/utils/format-utils.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icon.docs.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icon.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icons.js.map +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js.map +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +0 -1
- package/dist/collection/components/nv-loader/nv-loader.docs.js.map +0 -1
- package/dist/collection/components/nv-loader/nv-loader.js.map +0 -1
- package/dist/collection/components/nv-menu/nv-menu.docs.js.map +0 -1
- package/dist/collection/components/nv-menu/nv-menu.js.map +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js.map +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +0 -1
- package/dist/collection/components/nv-notification/nv-notification.docs.js.map +0 -1
- package/dist/collection/components/nv-notification/nv-notification.js.map +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.docs.js.map +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.js.map +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js.map +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js.map +0 -1
- package/dist/collection/components/nv-popover/nv-popover.docs.js.map +0 -1
- package/dist/collection/components/nv-popover/nv-popover.js.map +0 -1
- package/dist/collection/components/nv-row/nv-row.docs.js.map +0 -1
- package/dist/collection/components/nv-row/nv-row.js.map +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.js.map +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js.map +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js.map +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js.map +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js.map +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js.map +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js.map +0 -1
- package/dist/collection/components/nv-split/nv-split.docs.js.map +0 -1
- package/dist/collection/components/nv-split/nv-split.js.map +0 -1
- package/dist/collection/components/nv-stack/nv-stack.docs.js.map +0 -1
- package/dist/collection/components/nv-stack/nv-stack.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.docs.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.utils.js.map +0 -1
- package/dist/collection/components/nv-table/test/nv-table.utils.test.js.map +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.docs.js.map +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.js.map +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.docs.js.map +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js.map +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.docs.js.map +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js.map +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js.map +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js.map +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js.map +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/interfaces/Column.js.map +0 -1
- package/dist/collection/interfaces/ColumnConfig.js.map +0 -1
- package/dist/collection/interfaces/localization.js.map +0 -1
- package/dist/collection/templates/navigation.docs.js.map +0 -1
- package/dist/collection/utils/class.utils.js.map +0 -1
- package/dist/collection/utils/constants.js.map +0 -1
- package/dist/collection/utils/dom.utils.js.map +0 -1
- package/dist/collection/utils/events.utils.js.map +0 -1
- package/dist/collection/utils/i18n.utils.js.map +0 -1
- package/dist/collection/utils/input.utils.js.map +0 -1
- package/dist/collection/utils/search-engine/engine.js.map +0 -1
- package/dist/collection/utils/search-engine/guards.js.map +0 -1
- package/dist/collection/utils/search-engine/index.js.map +0 -1
- package/dist/collection/utils/search-engine/indexer.js.map +0 -1
- package/dist/collection/utils/search-engine/normalize.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/fuzzy.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/smart.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/strict.js.map +0 -1
- package/dist/collection/utils/search-engine/test/engine.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/guards.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/indexer.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/normalize.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/strategies.test.js.map +0 -1
- package/dist/collection/utils/search-engine/types.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/index.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/search.worker.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/worker-client.js.map +0 -1
- package/dist/collection/utils/string.utils.js.map +0 -1
- package/dist/collection/utils/test/class.utils.test.js.map +0 -1
- package/dist/collection/utils/test/dom.utils.test.js.map +0 -1
- package/dist/collection/utils/test/i18n.utils.test.js.map +0 -1
- package/dist/collection/utils/test/input.utils.test.js.map +0 -1
- package/dist/collection/utils/test/uri.utils.test.js.map +0 -1
- package/dist/collection/utils/uri.utils.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/nv-accordion-item.js.map +0 -1
- package/dist/components/nv-accordion.js.map +0 -1
- package/dist/components/nv-alert.js.map +0 -1
- package/dist/components/nv-avatar.js.map +0 -1
- package/dist/components/nv-badge.js.map +0 -1
- package/dist/components/nv-breadcrumb.js.map +0 -1
- package/dist/components/nv-breadcrumbs.js.map +0 -1
- package/dist/components/nv-button.js.map +0 -1
- package/dist/components/nv-buttongroup.js.map +0 -1
- package/dist/components/nv-calendar.js.map +0 -1
- package/dist/components/nv-col.js.map +0 -1
- package/dist/components/nv-datagrid.js.map +0 -1
- package/dist/components/nv-datagridcolumn.js.map +0 -1
- package/dist/components/nv-dialog.js.map +0 -1
- package/dist/components/nv-dialogfooter.js.map +0 -1
- package/dist/components/nv-dialogheader.js.map +0 -1
- package/dist/components/nv-drawer.js.map +0 -1
- package/dist/components/nv-drawerfooter.js.map +0 -1
- package/dist/components/nv-drawerheader.js.map +0 -1
- package/dist/components/nv-fieldcheckbox.js.map +0 -1
- package/dist/components/nv-fielddate.js.map +0 -1
- package/dist/components/nv-fielddaterange.js.map +0 -1
- package/dist/components/nv-fielddropdown.js.map +0 -1
- package/dist/components/nv-fielddropdownitem.js.map +0 -1
- package/dist/components/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/components/nv-fieldmultiselect.js.map +0 -1
- package/dist/components/nv-fieldnumber.js.map +0 -1
- package/dist/components/nv-fieldpassword.js.map +0 -1
- package/dist/components/nv-fieldradio.js.map +0 -1
- package/dist/components/nv-fieldselect.js.map +0 -1
- package/dist/components/nv-fieldslider.js.map +0 -1
- package/dist/components/nv-fieldtext.js.map +0 -1
- package/dist/components/nv-fieldtextarea.js.map +0 -1
- package/dist/components/nv-fieldtime.js.map +0 -1
- package/dist/components/nv-icon.js.map +0 -1
- package/dist/components/nv-iconbutton.js.map +0 -1
- package/dist/components/nv-loader.js.map +0 -1
- package/dist/components/nv-menu.js.map +0 -1
- package/dist/components/nv-menuitem.js.map +0 -1
- package/dist/components/nv-notification-bullet.js.map +0 -1
- package/dist/components/nv-notification.js.map +0 -1
- package/dist/components/nv-notificationcontainer.js.map +0 -1
- package/dist/components/nv-popover.js.map +0 -1
- package/dist/components/nv-row.js.map +0 -1
- package/dist/components/nv-sidebar.js.map +0 -1
- package/dist/components/nv-sidebarcontent.js.map +0 -1
- package/dist/components/nv-sidebardivider.js.map +0 -1
- package/dist/components/nv-sidebarfooter.js.map +0 -1
- package/dist/components/nv-sidebargroup.js.map +0 -1
- package/dist/components/nv-sidebarheader.js.map +0 -1
- package/dist/components/nv-sidebarlogo.js.map +0 -1
- package/dist/components/nv-sidebarnavitem.js.map +0 -1
- package/dist/components/nv-sidebarnavsubitem.js.map +0 -1
- package/dist/components/nv-split.js.map +0 -1
- package/dist/components/nv-stack.js.map +0 -1
- package/dist/components/nv-table.js.map +0 -1
- package/dist/components/nv-tableheader.js.map +0 -1
- package/dist/components/nv-toggle.js.map +0 -1
- package/dist/components/nv-togglebutton.js.map +0 -1
- package/dist/components/nv-togglebuttongroup.js.map +0 -1
- package/dist/components/nv-tooltip.js.map +0 -1
- package/dist/components/p-9xYwU7ku.js.map +0 -1
- package/dist/components/p-B45HbBWe.js +0 -191
- package/dist/components/p-B45HbBWe.js.map +0 -1
- package/dist/components/p-B5jN7NKA.js +0 -59
- package/dist/components/p-B5jN7NKA.js.map +0 -1
- package/dist/components/p-B6GgGra-.js.map +0 -1
- package/dist/components/p-B7VlEQVW.js +0 -1475
- package/dist/components/p-B7VlEQVW.js.map +0 -1
- package/dist/components/p-B9i3m6rk.js +0 -1941
- package/dist/components/p-B9i3m6rk.js.map +0 -1
- package/dist/components/p-BILd3Ta-.js +0 -209
- package/dist/components/p-BILd3Ta-.js.map +0 -1
- package/dist/components/p-BISctfud.js +0 -214
- package/dist/components/p-BISctfud.js.map +0 -1
- package/dist/components/p-BReL3Lsa.js.map +0 -1
- package/dist/components/p-BVOv1zgq.js +0 -82
- package/dist/components/p-BVOv1zgq.js.map +0 -1
- package/dist/components/p-BdYh22OP.js.map +0 -1
- package/dist/components/p-Bg_l3jn1.js +0 -191
- package/dist/components/p-Bg_l3jn1.js.map +0 -1
- package/dist/components/p-C2QAWGhf.js +0 -88
- package/dist/components/p-C2QAWGhf.js.map +0 -1
- package/dist/components/p-C63Xpg9a.js +0 -2338
- package/dist/components/p-C63Xpg9a.js.map +0 -1
- package/dist/components/p-COnt5ux_.js +0 -51
- package/dist/components/p-COnt5ux_.js.map +0 -1
- package/dist/components/p-Cc7XnqPp.js +0 -260
- package/dist/components/p-Cc7XnqPp.js.map +0 -1
- package/dist/components/p-CgHCo_Ho.js.map +0 -1
- package/dist/components/p-ChV9xqsO.js.map +0 -1
- package/dist/components/p-CnI0auJM.js.map +0 -1
- package/dist/components/p-D02w_Ru6.js.map +0 -1
- package/dist/components/p-D1C_pu0E.js.map +0 -1
- package/dist/components/p-D2otK4Ce.js.map +0 -1
- package/dist/components/p-D3eWMME9.js.map +0 -1
- package/dist/components/p-D6APFL6N.js +0 -243
- package/dist/components/p-D6APFL6N.js.map +0 -1
- package/dist/components/p-DZJHk4fr.js +0 -3759
- package/dist/components/p-DZJHk4fr.js.map +0 -1
- package/dist/components/p-DiUP3TzF.js +0 -140
- package/dist/components/p-DiUP3TzF.js.map +0 -1
- package/dist/components/p-DpDooigg.js +0 -99
- package/dist/components/p-DpDooigg.js.map +0 -1
- package/dist/components/p-Dr-67WvG.js +0 -94
- package/dist/components/p-Dr-67WvG.js.map +0 -1
- package/dist/components/p-DvapDVBj.js +0 -176
- package/dist/components/p-DvapDVBj.js.map +0 -1
- package/dist/components/p-Dz1GUhVy.js.map +0 -1
- package/dist/components/p-IlwlcG9l.js.map +0 -1
- package/dist/components/p-W6vOfMC9.js +0 -63
- package/dist/components/p-W6vOfMC9.js.map +0 -1
- package/dist/components/p-nfYynlVq.js +0 -90
- package/dist/components/p-nfYynlVq.js.map +0 -1
- package/dist/components/p-tyaJ-nGV.js +0 -97
- package/dist/components/p-tyaJ-nGV.js.map +0 -1
- package/dist/components/p-u-maNLLs.js +0 -145
- package/dist/components/p-u-maNLLs.js.map +0 -1
- package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/clsx-ChV9xqsO.js.map +0 -1
- package/dist/esm/collapse.animation-DZDm0vSK.js.map +0 -1
- package/dist/esm/constants-BReL3Lsa.js.map +0 -1
- package/dist/esm/events.utils-B6GgGra-.js.map +0 -1
- package/dist/esm/fade.animation-DcRL9lcm.js.map +0 -1
- package/dist/esm/grow.animation-D7ep_aVl.js.map +0 -1
- package/dist/esm/i18n.utils-IlwlcG9l.js +0 -2485
- package/dist/esm/i18n.utils-IlwlcG9l.js.map +0 -1
- package/dist/esm/index-CasQushP.js +0 -2811
- package/dist/esm/index-CasQushP.js.map +0 -1
- package/dist/esm/index.esm-D3eWMME9.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/inputmask-CSo292ul.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/native.js.map +0 -1
- package/dist/esm/nv-accordion-item.entry.js.map +0 -1
- package/dist/esm/nv-accordion.entry.js.map +0 -1
- package/dist/esm/nv-alert.entry.js.map +0 -1
- package/dist/esm/nv-avatar.entry.js.map +0 -1
- package/dist/esm/nv-badge.nv-fielddropdownitemcheck.entry.js.map +0 -1
- package/dist/esm/nv-breadcrumb.entry.js.map +0 -1
- package/dist/esm/nv-breadcrumbs.entry.js.map +0 -1
- package/dist/esm/nv-button.entry.js.map +0 -1
- package/dist/esm/nv-buttongroup.entry.js.map +0 -1
- package/dist/esm/nv-calendar.entry.js.map +0 -1
- package/dist/esm/nv-col.entry.js.map +0 -1
- package/dist/esm/nv-datagrid.entry.js.map +0 -1
- package/dist/esm/nv-datagridcolumn.entry.js.map +0 -1
- package/dist/esm/nv-dialog.entry.js.map +0 -1
- package/dist/esm/nv-dialogfooter.nv-dialogheader.entry.js.map +0 -1
- package/dist/esm/nv-drawer.entry.js.map +0 -1
- package/dist/esm/nv-drawerfooter.nv-drawerheader.entry.js.map +0 -1
- package/dist/esm/nv-fieldcheckbox.entry.js.map +0 -1
- package/dist/esm/nv-fielddate.entry.js.map +0 -1
- package/dist/esm/nv-fielddaterange.entry.js.map +0 -1
- package/dist/esm/nv-fielddropdown.entry.js.map +0 -1
- package/dist/esm/nv-fielddropdownitem.entry.js.map +0 -1
- package/dist/esm/nv-fieldmultiselect.entry.js.map +0 -1
- package/dist/esm/nv-fieldnumber.entry.js.map +0 -1
- package/dist/esm/nv-fieldpassword.entry.js.map +0 -1
- package/dist/esm/nv-fieldradio.entry.js.map +0 -1
- package/dist/esm/nv-fieldselect.entry.js.map +0 -1
- package/dist/esm/nv-fieldslider.entry.js.map +0 -1
- package/dist/esm/nv-fieldtext.entry.js.map +0 -1
- package/dist/esm/nv-fieldtextarea.entry.js.map +0 -1
- package/dist/esm/nv-fieldtime.entry.js.map +0 -1
- package/dist/esm/nv-icon.entry.js.map +0 -1
- package/dist/esm/nv-iconbutton.nv-loader.entry.js.map +0 -1
- package/dist/esm/nv-menu.entry.js.map +0 -1
- package/dist/esm/nv-menuitem.entry.js.map +0 -1
- package/dist/esm/nv-notification-bullet.entry.js.map +0 -1
- package/dist/esm/nv-notification.entry.js.map +0 -1
- package/dist/esm/nv-notificationcontainer.entry.js.map +0 -1
- package/dist/esm/nv-popover.entry.js.map +0 -1
- package/dist/esm/nv-row.entry.js.map +0 -1
- package/dist/esm/nv-sidebar.entry.js.map +0 -1
- package/dist/esm/nv-sidebarcontent.entry.js.map +0 -1
- package/dist/esm/nv-sidebardivider.entry.js.map +0 -1
- package/dist/esm/nv-sidebarfooter.entry.js.map +0 -1
- package/dist/esm/nv-sidebargroup.entry.js.map +0 -1
- package/dist/esm/nv-sidebarheader.entry.js.map +0 -1
- package/dist/esm/nv-sidebarlogo.entry.js.map +0 -1
- package/dist/esm/nv-sidebarnavitem.entry.js.map +0 -1
- package/dist/esm/nv-sidebarnavsubitem.entry.js.map +0 -1
- package/dist/esm/nv-split.entry.js.map +0 -1
- package/dist/esm/nv-stack.entry.js.map +0 -1
- package/dist/esm/nv-table.entry.js.map +0 -1
- package/dist/esm/nv-tableheader.entry.js.map +0 -1
- package/dist/esm/nv-toggle.entry.js.map +0 -1
- package/dist/esm/nv-togglebutton.entry.js.map +0 -1
- package/dist/esm/nv-togglebuttongroup.entry.js.map +0 -1
- package/dist/esm/nv-tooltip.entry.js.map +0 -1
- package/dist/esm/slide.animation-CmH5d1of.js.map +0 -1
- package/dist/esm/style-value-types.es-xlgmw4x8.js.map +0 -1
- package/dist/esm/timeline.animation-CgHCo_Ho.js.map +0 -1
- package/dist/esm/uri.utils-CnI0auJM.js.map +0 -1
- package/dist/esm/v4-BdYh22OP.js.map +0 -1
- package/dist/lib/generators/angular-output.js.map +0 -1
- package/dist/lib/generators/docs-blazor.js.map +0 -1
- package/dist/lib/generators/vue-output.js.map +0 -1
- package/dist/lib/utils/componentBinding.js.map +0 -1
- package/dist/lib/utils/parseToCSharpTypes.js.map +0 -1
- package/dist/lib/utils/spread.js.map +0 -1
- package/dist/lib/utils/test/parseToCSharpTypes.test.js.map +0 -1
- package/dist/native/index.esm.js.map +0 -1
- package/dist/native/loader.esm.js.map +0 -1
- package/dist/native/native.esm.js.map +0 -1
- package/dist/native/nv-accordion-item.entry.esm.js.map +0 -1
- package/dist/native/nv-accordion.entry.esm.js.map +0 -1
- package/dist/native/nv-alert.entry.esm.js.map +0 -1
- package/dist/native/nv-avatar.entry.esm.js.map +0 -1
- package/dist/native/nv-badge.nv-fielddropdownitemcheck.entry.esm.js.map +0 -1
- package/dist/native/nv-breadcrumb.entry.esm.js.map +0 -1
- package/dist/native/nv-breadcrumbs.entry.esm.js.map +0 -1
- package/dist/native/nv-button.entry.esm.js.map +0 -1
- package/dist/native/nv-buttongroup.entry.esm.js.map +0 -1
- package/dist/native/nv-calendar.entry.esm.js.map +0 -1
- package/dist/native/nv-col.entry.esm.js.map +0 -1
- package/dist/native/nv-datagrid.entry.esm.js.map +0 -1
- package/dist/native/nv-datagridcolumn.entry.esm.js.map +0 -1
- package/dist/native/nv-dialog.entry.esm.js.map +0 -1
- package/dist/native/nv-dialogfooter.nv-dialogheader.entry.esm.js.map +0 -1
- package/dist/native/nv-drawer.entry.esm.js.map +0 -1
- package/dist/native/nv-drawerfooter.nv-drawerheader.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldcheckbox.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddate.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddaterange.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddropdown.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddropdownitem.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldmultiselect.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldnumber.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldpassword.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldradio.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldselect.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldslider.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtext.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtextarea.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtime.entry.esm.js.map +0 -1
- package/dist/native/nv-icon.entry.esm.js.map +0 -1
- package/dist/native/nv-iconbutton.nv-loader.entry.esm.js.map +0 -1
- package/dist/native/nv-menu.entry.esm.js.map +0 -1
- package/dist/native/nv-menuitem.entry.esm.js.map +0 -1
- package/dist/native/nv-notification-bullet.entry.esm.js.map +0 -1
- package/dist/native/nv-notification.entry.esm.js.map +0 -1
- package/dist/native/nv-notificationcontainer.entry.esm.js.map +0 -1
- package/dist/native/nv-popover.entry.esm.js.map +0 -1
- package/dist/native/nv-row.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebar.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarcontent.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebardivider.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarfooter.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebargroup.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarheader.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarlogo.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarnavitem.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarnavsubitem.entry.esm.js.map +0 -1
- package/dist/native/nv-split.entry.esm.js.map +0 -1
- package/dist/native/nv-stack.entry.esm.js.map +0 -1
- package/dist/native/nv-table.entry.esm.js.map +0 -1
- package/dist/native/nv-tableheader.entry.esm.js.map +0 -1
- package/dist/native/nv-toggle.entry.esm.js.map +0 -1
- package/dist/native/nv-togglebutton.entry.esm.js.map +0 -1
- package/dist/native/nv-togglebuttongroup.entry.esm.js.map +0 -1
- package/dist/native/nv-tooltip.entry.esm.js.map +0 -1
- package/dist/native/p-02e6228a.entry.js +0 -2
- package/dist/native/p-02e6228a.entry.js.map +0 -1
- package/dist/native/p-04a2fe7f.entry.js +0 -2
- package/dist/native/p-04a2fe7f.entry.js.map +0 -1
- package/dist/native/p-08204da4.entry.js +0 -2
- package/dist/native/p-08204da4.entry.js.map +0 -1
- package/dist/native/p-0e07b91b.entry.js +0 -2
- package/dist/native/p-0e07b91b.entry.js.map +0 -1
- package/dist/native/p-136dfb3e.entry.js +0 -2
- package/dist/native/p-136dfb3e.entry.js.map +0 -1
- package/dist/native/p-13YSIyGW.js.map +0 -1
- package/dist/native/p-1f2dd37f.entry.js +0 -2
- package/dist/native/p-1f2dd37f.entry.js.map +0 -1
- package/dist/native/p-255a0482.entry.js +0 -2
- package/dist/native/p-255a0482.entry.js.map +0 -1
- package/dist/native/p-3305a7e6.entry.js +0 -2
- package/dist/native/p-3305a7e6.entry.js.map +0 -1
- package/dist/native/p-36b0a6f0.entry.js +0 -2
- package/dist/native/p-36b0a6f0.entry.js.map +0 -1
- package/dist/native/p-434bc910.entry.js +0 -2
- package/dist/native/p-434bc910.entry.js.map +0 -1
- package/dist/native/p-436029a5.entry.js +0 -2
- package/dist/native/p-436029a5.entry.js.map +0 -1
- package/dist/native/p-460fdf02.entry.js +0 -2
- package/dist/native/p-460fdf02.entry.js.map +0 -1
- package/dist/native/p-477e02cf.entry.js +0 -2
- package/dist/native/p-477e02cf.entry.js.map +0 -1
- package/dist/native/p-4efb582b.entry.js +0 -2
- package/dist/native/p-4efb582b.entry.js.map +0 -1
- package/dist/native/p-4f1dfa32.entry.js +0 -2
- package/dist/native/p-4f1dfa32.entry.js.map +0 -1
- package/dist/native/p-50ce41ac.entry.js +0 -2
- package/dist/native/p-50ce41ac.entry.js.map +0 -1
- package/dist/native/p-51b7de55.entry.js +0 -13
- package/dist/native/p-51b7de55.entry.js.map +0 -1
- package/dist/native/p-5dd120dc.entry.js +0 -2
- package/dist/native/p-5dd120dc.entry.js.map +0 -1
- package/dist/native/p-60bb0d48.entry.js +0 -2
- package/dist/native/p-60bb0d48.entry.js.map +0 -1
- package/dist/native/p-67181258.entry.js +0 -2
- package/dist/native/p-67181258.entry.js.map +0 -1
- package/dist/native/p-6a81884b.entry.js +0 -2
- package/dist/native/p-6a81884b.entry.js.map +0 -1
- package/dist/native/p-6aa483de.entry.js +0 -2
- package/dist/native/p-6aa483de.entry.js.map +0 -1
- package/dist/native/p-6fc79712.entry.js +0 -2
- package/dist/native/p-6fc79712.entry.js.map +0 -1
- package/dist/native/p-70e9e067.entry.js +0 -2
- package/dist/native/p-70e9e067.entry.js.map +0 -1
- package/dist/native/p-729589cb.entry.js +0 -2
- package/dist/native/p-729589cb.entry.js.map +0 -1
- package/dist/native/p-78bf7650.entry.js +0 -2
- package/dist/native/p-78bf7650.entry.js.map +0 -1
- package/dist/native/p-7e6e9ea2.entry.js +0 -2
- package/dist/native/p-7e6e9ea2.entry.js.map +0 -1
- package/dist/native/p-8f1cd9e2.entry.js +0 -2
- package/dist/native/p-8f1cd9e2.entry.js.map +0 -1
- package/dist/native/p-910cd685.entry.js +0 -2
- package/dist/native/p-910cd685.entry.js.map +0 -1
- package/dist/native/p-91eaf02e.entry.js +0 -2
- package/dist/native/p-91eaf02e.entry.js.map +0 -1
- package/dist/native/p-93b77ed4.entry.js +0 -2
- package/dist/native/p-93b77ed4.entry.js.map +0 -1
- package/dist/native/p-93e35975.entry.js +0 -2
- package/dist/native/p-93e35975.entry.js.map +0 -1
- package/dist/native/p-96c45604.entry.js +0 -2
- package/dist/native/p-96c45604.entry.js.map +0 -1
- package/dist/native/p-9b6ad782.entry.js +0 -2
- package/dist/native/p-9b6ad782.entry.js.map +0 -1
- package/dist/native/p-9f32c3ea.entry.js +0 -2
- package/dist/native/p-9f32c3ea.entry.js.map +0 -1
- package/dist/native/p-B6GgGra-.js.map +0 -1
- package/dist/native/p-B85MJLTf.js.map +0 -1
- package/dist/native/p-BReL3Lsa.js.map +0 -1
- package/dist/native/p-BdYh22OP.js.map +0 -1
- package/dist/native/p-Blc6XEY7.js.map +0 -1
- package/dist/native/p-CasQushP.js +0 -3
- package/dist/native/p-CasQushP.js.map +0 -1
- package/dist/native/p-CgHCo_Ho.js.map +0 -1
- package/dist/native/p-ChV9xqsO.js.map +0 -1
- package/dist/native/p-CnI0auJM.js.map +0 -1
- package/dist/native/p-D3eWMME9.js.map +0 -1
- package/dist/native/p-DQuL1Twl.js +0 -2
- package/dist/native/p-DQuL1Twl.js.map +0 -1
- package/dist/native/p-DmUOtOcY.js.map +0 -1
- package/dist/native/p-Hfc8Oh0x.js.map +0 -1
- package/dist/native/p-IlwlcG9l.js +0 -2
- package/dist/native/p-IlwlcG9l.js.map +0 -1
- package/dist/native/p-a6fea322.entry.js +0 -2
- package/dist/native/p-a6fea322.entry.js.map +0 -1
- package/dist/native/p-ae279ae9.entry.js +0 -2
- package/dist/native/p-ae279ae9.entry.js.map +0 -1
- package/dist/native/p-b7765048.entry.js +0 -2
- package/dist/native/p-b7765048.entry.js.map +0 -1
- package/dist/native/p-ba1286aa.entry.js +0 -2
- package/dist/native/p-ba1286aa.entry.js.map +0 -1
- package/dist/native/p-bb52a5a9.entry.js +0 -2
- package/dist/native/p-bb52a5a9.entry.js.map +0 -1
- package/dist/native/p-bc90247e.entry.js +0 -2
- package/dist/native/p-bc90247e.entry.js.map +0 -1
- package/dist/native/p-c2a73a5a.entry.js +0 -2
- package/dist/native/p-c2a73a5a.entry.js.map +0 -1
- package/dist/native/p-c4c11549.entry.js +0 -2
- package/dist/native/p-c4c11549.entry.js.map +0 -1
- package/dist/native/p-c5ecdc49.entry.js +0 -2
- package/dist/native/p-c5ecdc49.entry.js.map +0 -1
- package/dist/native/p-cb1b9edb.entry.js +0 -2
- package/dist/native/p-cb1b9edb.entry.js.map +0 -1
- package/dist/native/p-cdaf54b0.entry.js +0 -2
- package/dist/native/p-cdaf54b0.entry.js.map +0 -1
- package/dist/native/p-ceb8fe8a.entry.js +0 -2
- package/dist/native/p-ceb8fe8a.entry.js.map +0 -1
- package/dist/native/p-daf7541b.entry.js +0 -2
- package/dist/native/p-daf7541b.entry.js.map +0 -1
- package/dist/native/p-de4f53a5.entry.js +0 -2
- package/dist/native/p-de4f53a5.entry.js.map +0 -1
- package/dist/native/p-ded4be77.entry.js +0 -2
- package/dist/native/p-ded4be77.entry.js.map +0 -1
- package/dist/native/p-e1fc5f8c.entry.js +0 -2
- package/dist/native/p-e1fc5f8c.entry.js.map +0 -1
- package/dist/native/p-e6c69f7d.entry.js +0 -2
- package/dist/native/p-e6c69f7d.entry.js.map +0 -1
- package/dist/native/p-e83603f1.entry.js +0 -2
- package/dist/native/p-e83603f1.entry.js.map +0 -1
- package/dist/native/p-ec217581.entry.js +0 -2
- package/dist/native/p-ec217581.entry.js.map +0 -1
- package/dist/native/p-ee694832.entry.js +0 -2
- package/dist/native/p-ee694832.entry.js.map +0 -1
- package/dist/native/p-f39aef8e.entry.js +0 -2
- package/dist/native/p-f39aef8e.entry.js.map +0 -1
- package/dist/native/p-f7e0146e.entry.js +0 -2
- package/dist/native/p-f7e0146e.entry.js.map +0 -1
- package/dist/native/p-sqVK8yoD.js.map +0 -1
- package/dist/native/p-xlgmw4x8.js.map +0 -1
|
@@ -1,1475 +0,0 @@
|
|
|
1
|
-
import { h, p as proxyCustomElement, H, c as createEvent, d as Host } from './p-C63Xpg9a.js';
|
|
2
|
-
import { C as CUSTOM_DAY_NAMES, i as CUSTOM_MONTH_NAMES, W as WEEK_ABBREVIATIONS } from './p-BReL3Lsa.js';
|
|
3
|
-
|
|
4
|
-
function getDefaultExportFromCjs (x) {
|
|
5
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
var dayjs_min$1 = {exports: {}};
|
|
9
|
-
|
|
10
|
-
var dayjs_min = dayjs_min$1.exports;
|
|
11
|
-
|
|
12
|
-
var hasRequiredDayjs_min;
|
|
13
|
-
|
|
14
|
-
function requireDayjs_min () {
|
|
15
|
-
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
16
|
-
hasRequiredDayjs_min = 1;
|
|
17
|
-
(function (module, exports) {
|
|
18
|
-
!function(t,e){module.exports=e();}(dayjs_min,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[p]=true;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,false)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case "YY":return String(e.$y).slice(-2);case "YYYY":return b.s(e.$y,4,"0");case "M":return a+1;case "MM":return b.s(a+1,2,"0");case "MMM":return h(n.monthsShort,a,c,3);case "MMMM":return h(c,a);case "D":return e.$D;case "DD":return b.s(e.$D,2,"0");case "d":return String(e.$W);case "dd":return h(n.weekdaysMin,e.$W,o,2);case "ddd":return h(n.weekdaysShort,e.$W,o,3);case "dddd":return o[e.$W];case "H":return String(s);case "HH":return b.s(s,2,"0");case "h":return d(1);case "hh":return d(2);case "a":return $(s,u,true);case "A":return $(s,u,false);case "m":return String(u);case "mm":return b.s(u,2,"0");case "s":return String(e.$s);case "ss":return b.s(e.$s,2,"0");case "SSS":return b.s(e.$ms,3,"0");case "Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,true);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=true),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
19
|
-
} (dayjs_min$1));
|
|
20
|
-
return dayjs_min$1.exports;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
var dayjs_minExports = requireDayjs_min();
|
|
24
|
-
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
25
|
-
|
|
26
|
-
var customParseFormat$2 = {exports: {}};
|
|
27
|
-
|
|
28
|
-
var customParseFormat$1 = customParseFormat$2.exports;
|
|
29
|
-
|
|
30
|
-
var hasRequiredCustomParseFormat;
|
|
31
|
-
|
|
32
|
-
function requireCustomParseFormat () {
|
|
33
|
-
if (hasRequiredCustomParseFormat) return customParseFormat$2.exports;
|
|
34
|
-
hasRequiredCustomParseFormat = 1;
|
|
35
|
-
(function (module, exports) {
|
|
36
|
-
!function(e,t){module.exports=t();}(customParseFormat$1,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},a=function(e){return (e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t;}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},c={A:[o,function(e){this.afternoon=d(e,false);}],a:[o,function(e){this.afternoon=d(e,true);}],Q:[n,function(e){this.month=3*(e-1)+1;}],S:[n,function(e){this.milliseconds=100*+e;}],SS:[r,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[i,f("seconds")],ss:[i,f("seconds")],m:[i,f("minutes")],mm:[i,f("minutes")],H:[i,f("hours")],h:[i,f("hours")],HH:[i,f("hours")],hh:[i,f("hours")],D:[i,f("day")],DD:[r,f("day")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],w:[i,f("week")],ww:[r,f("week")],M:[i,f("month")],MM:[r,f("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(e){this.year=a(e);}],YYYY:[/\d{4}/,f("year")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else {var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=true,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if("string"==typeof a){var f=true===o[2],h=true===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date("")}}(t,a,r,n),this.init(),d&&true!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),s={};}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(""));}else i.call(this,e);};}}));
|
|
37
|
-
} (customParseFormat$2));
|
|
38
|
-
return customParseFormat$2.exports;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
var customParseFormatExports = requireCustomParseFormat();
|
|
42
|
-
var customParseFormat = /*@__PURE__*/getDefaultExportFromCjs(customParseFormatExports);
|
|
43
|
-
|
|
44
|
-
var utc$2 = {exports: {}};
|
|
45
|
-
|
|
46
|
-
var utc$1 = utc$2.exports;
|
|
47
|
-
|
|
48
|
-
var hasRequiredUtc;
|
|
49
|
-
|
|
50
|
-
function requireUtc () {
|
|
51
|
-
if (hasRequiredUtc) return utc$2.exports;
|
|
52
|
-
hasRequiredUtc = 1;
|
|
53
|
-
(function (module, exports) {
|
|
54
|
-
!function(t,i){module.exports=i();}(utc$1,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:true,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:true});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:false})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=true),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){ void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
|
|
55
|
-
} (utc$2));
|
|
56
|
-
return utc$2.exports;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
var utcExports = requireUtc();
|
|
60
|
-
var utc = /*@__PURE__*/getDefaultExportFromCjs(utcExports);
|
|
61
|
-
|
|
62
|
-
var weekOfYear$2 = {exports: {}};
|
|
63
|
-
|
|
64
|
-
var weekOfYear$1 = weekOfYear$2.exports;
|
|
65
|
-
|
|
66
|
-
var hasRequiredWeekOfYear;
|
|
67
|
-
|
|
68
|
-
function requireWeekOfYear () {
|
|
69
|
-
if (hasRequiredWeekOfYear) return weekOfYear$2.exports;
|
|
70
|
-
hasRequiredWeekOfYear = 1;
|
|
71
|
-
(function (module, exports) {
|
|
72
|
-
!function(e,t){module.exports=t();}(weekOfYear$1,(function(){var e="week",t="year";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,true);return o<0?r(this).startOf("week").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)};}}));
|
|
73
|
-
} (weekOfYear$2));
|
|
74
|
-
return weekOfYear$2.exports;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
var weekOfYearExports = requireWeekOfYear();
|
|
78
|
-
var weekOfYear = /*@__PURE__*/getDefaultExportFromCjs(weekOfYearExports);
|
|
79
|
-
|
|
80
|
-
dayjs.extend(customParseFormat);
|
|
81
|
-
dayjs.extend(utc);
|
|
82
|
-
dayjs.extend(weekOfYear);
|
|
83
|
-
/**
|
|
84
|
-
* Formats a date to a string according to the format
|
|
85
|
-
* @param {Date} date - Date to format
|
|
86
|
-
* @returns {string} Formatted date
|
|
87
|
-
* @param {Object} options - Additional options
|
|
88
|
-
* @param {string} options.dateFormat - Date format (ex: 'YYYY-MM-DD', 'DD-MM-YYYY', etc.)
|
|
89
|
-
*/
|
|
90
|
-
function formatDate(date, options) {
|
|
91
|
-
if (!date)
|
|
92
|
-
return '';
|
|
93
|
-
const isUTCMode = options.dateFormat.includes('Z');
|
|
94
|
-
const isISO8601Format = options.dateFormat === 'YYYY-MM-DD[T]HH:mm:ss[Z]';
|
|
95
|
-
// Special case for ISO 8601
|
|
96
|
-
if (isISO8601Format) {
|
|
97
|
-
// For the ISO 8601 format, use directly toISOString() which is standard
|
|
98
|
-
return date.toISOString();
|
|
99
|
-
}
|
|
100
|
-
// If the format is "Ticks", convert the time to C# ticks
|
|
101
|
-
if (options.dateFormat === 'Ticks') {
|
|
102
|
-
const ticks = date.getTime() * 10000 + 621355968000000000;
|
|
103
|
-
return ticks.toString();
|
|
104
|
-
}
|
|
105
|
-
// If the format is "X" (Unix Seconds)
|
|
106
|
-
if (options.dateFormat === 'X') {
|
|
107
|
-
return dayjs(date).unix().toString();
|
|
108
|
-
}
|
|
109
|
-
// If the format is "x" (Unix Milliseconds)
|
|
110
|
-
if (options.dateFormat === 'x') {
|
|
111
|
-
return date.getTime().toString();
|
|
112
|
-
}
|
|
113
|
-
// Otherwise, format according to the mode (UTC or local)
|
|
114
|
-
return isUTCMode
|
|
115
|
-
? dayjs(date).utc().format(options.dateFormat)
|
|
116
|
-
: dayjs(date).format(options.dateFormat);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Checks if two dates are identical
|
|
120
|
-
* @param {Date | null} date - First date
|
|
121
|
-
* @param {Date | null} compareDate - Second date
|
|
122
|
-
* @param {Object} options - Additional options
|
|
123
|
-
* @param {boolean} options.isUTCMode - Whether the dates are in UTC mode
|
|
124
|
-
* @returns {boolean} true if the dates are identical
|
|
125
|
-
*/
|
|
126
|
-
function isSameDate(date, compareDate, options) {
|
|
127
|
-
if (!date || !compareDate)
|
|
128
|
-
return false;
|
|
129
|
-
if (options.isUTCMode) {
|
|
130
|
-
return (date.getUTCFullYear() === compareDate.getUTCFullYear() &&
|
|
131
|
-
date.getUTCMonth() === compareDate.getUTCMonth() &&
|
|
132
|
-
date.getUTCDate() === compareDate.getUTCDate());
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
return (date.getFullYear() === compareDate.getFullYear() &&
|
|
136
|
-
date.getMonth() === compareDate.getMonth() &&
|
|
137
|
-
date.getDate() === compareDate.getDate());
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Checks if a date is identical or before another date
|
|
142
|
-
* @param {Date} date - Date to check
|
|
143
|
-
* @param {Date} compareDate - Reference date
|
|
144
|
-
* @param {Object} options - Additional options
|
|
145
|
-
* @param {boolean} options.isUTCMode - Whether the dates are in UTC mode
|
|
146
|
-
* @returns {boolean} true if `date` <= `compareDate`
|
|
147
|
-
*/
|
|
148
|
-
function isSameOrBefore(date, compareDate, options) {
|
|
149
|
-
if (!date || !compareDate)
|
|
150
|
-
return false;
|
|
151
|
-
if (options.isUTCMode) {
|
|
152
|
-
return (date.getUTCFullYear() < compareDate.getUTCFullYear() ||
|
|
153
|
-
(date.getUTCFullYear() === compareDate.getUTCFullYear() &&
|
|
154
|
-
date.getUTCMonth() < compareDate.getUTCMonth()) ||
|
|
155
|
-
(date.getUTCFullYear() === compareDate.getUTCFullYear() &&
|
|
156
|
-
date.getUTCMonth() === compareDate.getUTCMonth() &&
|
|
157
|
-
date.getUTCDate() <= compareDate.getUTCDate()));
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
return (date.getFullYear() < compareDate.getFullYear() ||
|
|
161
|
-
(date.getFullYear() === compareDate.getFullYear() &&
|
|
162
|
-
date.getMonth() < compareDate.getMonth()) ||
|
|
163
|
-
(date.getFullYear() === compareDate.getFullYear() &&
|
|
164
|
-
date.getMonth() === compareDate.getMonth() &&
|
|
165
|
-
date.getDate() <= compareDate.getDate()));
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Checks if a date is identical or after another date
|
|
170
|
-
* @param {Date} date - Date to check
|
|
171
|
-
* @param {Date} compareDate - Reference date
|
|
172
|
-
* @param {Object} options - Additional options
|
|
173
|
-
* @param {boolean} options.isUTCMode - Whether the dates are in UTC mode
|
|
174
|
-
* @returns {boolean} true if `date` >= `compareDate`
|
|
175
|
-
*/
|
|
176
|
-
function isSameOrAfter(date, compareDate, options) {
|
|
177
|
-
if (!date || !compareDate)
|
|
178
|
-
return false;
|
|
179
|
-
if (options.isUTCMode) {
|
|
180
|
-
return (date.getUTCFullYear() > compareDate.getUTCFullYear() ||
|
|
181
|
-
(date.getUTCFullYear() === compareDate.getUTCFullYear() &&
|
|
182
|
-
date.getUTCMonth() > compareDate.getUTCMonth()) ||
|
|
183
|
-
(date.getUTCFullYear() === compareDate.getUTCFullYear() &&
|
|
184
|
-
date.getUTCMonth() === compareDate.getUTCMonth() &&
|
|
185
|
-
date.getUTCDate() >= compareDate.getUTCDate()));
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
return (date.getFullYear() > compareDate.getFullYear() ||
|
|
189
|
-
(date.getFullYear() === compareDate.getFullYear() &&
|
|
190
|
-
date.getMonth() > compareDate.getMonth()) ||
|
|
191
|
-
(date.getFullYear() === compareDate.getFullYear() &&
|
|
192
|
-
date.getMonth() === compareDate.getMonth() &&
|
|
193
|
-
date.getDate() >= compareDate.getDate()));
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Calculates the ISO week number
|
|
198
|
-
* @param {Date} date - Date to calculate
|
|
199
|
-
* @returns {number} Week number
|
|
200
|
-
*/
|
|
201
|
-
function getWeekNumber(date) {
|
|
202
|
-
// Create a copy of the date to avoid modifying the original
|
|
203
|
-
const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
204
|
-
// Adjust to the same week Thursday (ISO 8601)
|
|
205
|
-
d.setUTCDate(d.getUTCDate() + 3 - ((d.getUTCDay() + 6) % 7));
|
|
206
|
-
// Calculate the first Thursday of the year
|
|
207
|
-
const week1 = new Date(Date.UTC(d.getUTCFullYear(), 0, 4));
|
|
208
|
-
// Calculate the week number
|
|
209
|
-
return (1 +
|
|
210
|
-
Math.round(((d.getTime() - week1.getTime()) / 86400000 -
|
|
211
|
-
3 +
|
|
212
|
-
((week1.getUTCDay() + 6) % 7)) /
|
|
213
|
-
7));
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Convert a date string/Date to a Date without timezone offset
|
|
217
|
-
* @param {string | Date} dateInput - Date under string or Date object form
|
|
218
|
-
* @param {string} dateFormat - Date format (ex: 'YYYY-MM-DD', 'DD-MM-YYYY', etc.)
|
|
219
|
-
* @returns {Date} Date in Date form without timezone offset
|
|
220
|
-
*/
|
|
221
|
-
function parseDate(dateInput, dateFormat) {
|
|
222
|
-
if (dateInput instanceof Date)
|
|
223
|
-
return dateInput;
|
|
224
|
-
const isUTCMode = dateFormat.includes('Z');
|
|
225
|
-
// Attempt to automatically detect ISO 8601 format (generated by toISOString())
|
|
226
|
-
// The regex checks the standard ISO format: YYYY-MM-DDTHH:mm:ss.sssZ
|
|
227
|
-
if (typeof dateInput === 'string' &&
|
|
228
|
-
/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(dateInput)) {
|
|
229
|
-
try {
|
|
230
|
-
const parsedDate = new Date(dateInput);
|
|
231
|
-
if (!isNaN(parsedDate.getTime())) {
|
|
232
|
-
return parsedDate;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
catch (error) {
|
|
236
|
-
// If it fails, continue with other methods
|
|
237
|
-
console.error('Error parsing ISO date:', error);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
// Handling Unix Seconds ("X") formats
|
|
241
|
-
if (dateFormat === 'X') {
|
|
242
|
-
const unixSeconds = Number(dateInput);
|
|
243
|
-
if (isNaN(unixSeconds))
|
|
244
|
-
return null;
|
|
245
|
-
return isUTCMode
|
|
246
|
-
? dayjs.unix(unixSeconds).utc().toDate()
|
|
247
|
-
: dayjs.unix(unixSeconds).toDate();
|
|
248
|
-
}
|
|
249
|
-
// Handling Unix Milliseconds ("x") formats
|
|
250
|
-
if (dateFormat === 'x') {
|
|
251
|
-
const unixMilliseconds = Number(dateInput);
|
|
252
|
-
if (isNaN(unixMilliseconds))
|
|
253
|
-
return null;
|
|
254
|
-
return isUTCMode
|
|
255
|
-
? dayjs(unixMilliseconds).utc().toDate()
|
|
256
|
-
: dayjs(unixMilliseconds).toDate();
|
|
257
|
-
}
|
|
258
|
-
// Handling C# Ticks format
|
|
259
|
-
if (dateFormat === 'Ticks') {
|
|
260
|
-
const ticks = Number(dateInput);
|
|
261
|
-
if (isNaN(ticks))
|
|
262
|
-
return null;
|
|
263
|
-
// Conversion of .NET ticks to milliseconds since Unix epoch
|
|
264
|
-
const unixMilliseconds = (ticks - 621355968000000000) / 10000;
|
|
265
|
-
return isUTCMode
|
|
266
|
-
? dayjs(unixMilliseconds).utc().toDate()
|
|
267
|
-
: dayjs(unixMilliseconds).toDate();
|
|
268
|
-
}
|
|
269
|
-
// For all other formats, use customParseFormat in strict mode
|
|
270
|
-
let parsed;
|
|
271
|
-
if (isUTCMode) {
|
|
272
|
-
parsed = dayjs.utc(dateInput, dateFormat, true);
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
parsed = dayjs(dateInput, dateFormat, true);
|
|
276
|
-
}
|
|
277
|
-
if (!parsed.isValid()) {
|
|
278
|
-
return null;
|
|
279
|
-
}
|
|
280
|
-
return parsed.toDate();
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Checks if a date is disabled.
|
|
284
|
-
* @param {Date} date - Date to check
|
|
285
|
-
* @param {string} min - Minimum date
|
|
286
|
-
* @param {string} max - Maximum date
|
|
287
|
-
* @param {Date[]} parsedDisabledDates - Parsed disabled dates
|
|
288
|
-
* @param {string} dateFormat - Date format
|
|
289
|
-
* @param {boolean} isUTCMode - Whether the dates are in UTC mode
|
|
290
|
-
* @returns {boolean} true if the date is disabled
|
|
291
|
-
*/
|
|
292
|
-
function isDateDisabledUtil(date, min, max, parsedDisabledDates, dateFormat, isUTCMode) {
|
|
293
|
-
if (!date)
|
|
294
|
-
return true;
|
|
295
|
-
if (min) {
|
|
296
|
-
const minDate = parseDate(min, dateFormat);
|
|
297
|
-
if (minDate && date < minDate) {
|
|
298
|
-
return true;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
if (max) {
|
|
302
|
-
const maxDate = parseDate(max, dateFormat);
|
|
303
|
-
if (maxDate && date > maxDate) {
|
|
304
|
-
return true;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
return parsedDisabledDates.some(disabledDate => isSameDate(date, disabledDate, { isUTCMode }));
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Checks if a date is within the hover range.
|
|
311
|
-
* @param {Date} date - The date to check.
|
|
312
|
-
* @param {Date} startDate - The start of the range.
|
|
313
|
-
* @param {Date | null} hoverDate - The hovered date.
|
|
314
|
-
* @returns {boolean} True if the date is in the hover range.
|
|
315
|
-
*/
|
|
316
|
-
const isInHoverRange = (date, startDate, hoverDate) => {
|
|
317
|
-
if (!hoverDate || !startDate || !date) {
|
|
318
|
-
return false;
|
|
319
|
-
}
|
|
320
|
-
const start = startDate < hoverDate ? startDate : hoverDate;
|
|
321
|
-
const end = startDate < hoverDate ? hoverDate : startDate;
|
|
322
|
-
return date > start && date < end;
|
|
323
|
-
};
|
|
324
|
-
/**
|
|
325
|
-
* Checks if the hover range is valid (does not contain disabled dates).
|
|
326
|
-
* @param {Date} startDate - The start of the range.
|
|
327
|
-
* @param {Date | null} hoverDate - The hovered date.
|
|
328
|
-
* @param {string} min - The minimum allowed date.
|
|
329
|
-
* @param {string} max - The maximum allowed date.
|
|
330
|
-
* @param {Date[]} parsedDisabledDates - An array of disabled dates.
|
|
331
|
-
* @param {string} dateFormat - The date format for parsing.
|
|
332
|
-
* @param {boolean} isUTCMode - Flag for UTC mode.
|
|
333
|
-
* @returns {boolean} True if the hover range is valid.
|
|
334
|
-
*/
|
|
335
|
-
const isHoverRangeValid = (startDate, hoverDate, min, max, parsedDisabledDates, dateFormat, isUTCMode) => {
|
|
336
|
-
if (!hoverDate || !startDate) {
|
|
337
|
-
return true;
|
|
338
|
-
}
|
|
339
|
-
const start = startDate < hoverDate ? startDate : hoverDate;
|
|
340
|
-
const end = startDate < hoverDate ? hoverDate : startDate;
|
|
341
|
-
const current = new Date(start);
|
|
342
|
-
while (current <= end) {
|
|
343
|
-
if (isDateDisabledUtil(current, min, max, parsedDisabledDates, dateFormat, isUTCMode)) {
|
|
344
|
-
return false;
|
|
345
|
-
}
|
|
346
|
-
current.setDate(current.getDate() + 1);
|
|
347
|
-
}
|
|
348
|
-
return true;
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Renders a single day cell in the calendar grid
|
|
353
|
-
* @param {DayCellProps} props - Component properties
|
|
354
|
-
* @returns {JSX.Element} JSX element representing a day cell
|
|
355
|
-
*/
|
|
356
|
-
const DayCell = props => {
|
|
357
|
-
const { date, dayOfMonth, isCurrentMonth, isSelected, isInRange, isStart, isEnd, isToday, isDisabled, onClick, onDayHover, isInHoverRange, isHoverRangeValid, } = props;
|
|
358
|
-
// Build CSS classes for the day cell
|
|
359
|
-
const dayClasses = [
|
|
360
|
-
'day',
|
|
361
|
-
isSelected ? 'selected' : '',
|
|
362
|
-
isStart ? 'range-start' : '',
|
|
363
|
-
isEnd ? 'range-end' : '',
|
|
364
|
-
isInRange ? 'in-range' : '',
|
|
365
|
-
isDisabled ? 'disabled' : '',
|
|
366
|
-
!isCurrentMonth ? 'outside-month' : '',
|
|
367
|
-
isToday ? 'is-today' : '',
|
|
368
|
-
isInHoverRange && isHoverRangeValid ? 'hover-range' : '',
|
|
369
|
-
isInHoverRange && !isHoverRangeValid ? 'hover-blocked' : '',
|
|
370
|
-
]
|
|
371
|
-
.filter(Boolean)
|
|
372
|
-
.join(' ');
|
|
373
|
-
return (h("div", { class: dayClasses, "data-date": date.toISOString(), onClick: !isDisabled ? onClick : undefined, onMouseEnter: onDayHover, "aria-disabled": isDisabled }, dayOfMonth));
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Renders the action buttons for the calendar (Cancel/OK)
|
|
378
|
-
* @param {CalendarActionsProps} props - Component properties
|
|
379
|
-
* @returns {JSX.Element} JSX element representing the action buttons
|
|
380
|
-
*/
|
|
381
|
-
const CalendarActions = props => {
|
|
382
|
-
const { onReset, onConfirm, cancelLabel = 'Cancel', primaryLabel = 'OK', useSlot = false, } = props;
|
|
383
|
-
return (h("div", { class: "datepicker-actions" }, useSlot ? (h("slot", { name: "actions" }, h("nv-button", { emphasis: "low", size: "xs", onClick: onReset }, cancelLabel), h("nv-button", { size: "xs", onClick: onConfirm }, primaryLabel))) : (h("div", { class: "actions-container" }, h("nv-button", { emphasis: "low", size: "xs", onClick: onReset }, cancelLabel), h("nv-button", { size: "xs", onClick: onConfirm }, primaryLabel)))));
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Renders the week numbers column for the calendar
|
|
388
|
-
* @param {WeekNumbersProps} props - Component properties
|
|
389
|
-
* @returns {JSX.Element} JSX element representing the week numbers
|
|
390
|
-
*/
|
|
391
|
-
const WeekNumbers = props => {
|
|
392
|
-
const { weeks, localizedWeekText, selectionType, onWeekSelect, calendarIndex, } = props;
|
|
393
|
-
/**
|
|
394
|
-
* Handles click on a week number for range selection
|
|
395
|
-
* @param {Array<WeekData>} week - Week data
|
|
396
|
-
*/
|
|
397
|
-
const handleWeekClick = (week) => {
|
|
398
|
-
if (selectionType === 'range') {
|
|
399
|
-
const dates = week.map(d => d.date);
|
|
400
|
-
onWeekSelect(dates, calendarIndex);
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
/**
|
|
404
|
-
* Creates a click handler for a specific week
|
|
405
|
-
* @param {Array<WeekData>} week - Week data
|
|
406
|
-
* @returns {() => void} Click handler function
|
|
407
|
-
*/
|
|
408
|
-
const createWeekHandler = (week) => {
|
|
409
|
-
return () => handleWeekClick(week);
|
|
410
|
-
};
|
|
411
|
-
return (h("div", { class: "week-numbers" }, h("div", { class: "week-header" }, localizedWeekText), weeks.map((week, weekIndex) => {
|
|
412
|
-
const firstDayWithDate = week.find(d => d.date)?.date || new Date();
|
|
413
|
-
const weekNumber = getWeekNumber(firstDayWithDate);
|
|
414
|
-
const isClickable = selectionType === 'range';
|
|
415
|
-
return (h("div", { class: `week-number ${isClickable ? 'clickable' : ''}`, onClick: createWeekHandler(week), key: `week-${weekIndex}`, role: isClickable ? 'button' : undefined, tabindex: isClickable ? 0 : undefined }, weekNumber));
|
|
416
|
-
})));
|
|
417
|
-
};
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* Renders the shortcuts for quick date selection
|
|
421
|
-
* @param {CalendarShortcutsProps} props - Component properties
|
|
422
|
-
* @returns {JSX.Element | null} JSX element representing the shortcuts or null if no shortcuts
|
|
423
|
-
*/
|
|
424
|
-
const CalendarShortcuts = props => {
|
|
425
|
-
const { shortcuts, placement, onShortcutClick } = props;
|
|
426
|
-
if (!shortcuts || shortcuts.length === 0) {
|
|
427
|
-
return null;
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Creates a click handler for a specific shortcut
|
|
431
|
-
* @param {ShortcutData} shortcut - The shortcut data
|
|
432
|
-
* @returns {() => void} Click handler function
|
|
433
|
-
*/
|
|
434
|
-
const createShortcutHandler = (shortcut) => {
|
|
435
|
-
return () => onShortcutClick(shortcut);
|
|
436
|
-
};
|
|
437
|
-
return (h("div", { class: `shortcuts-container shortcuts-placement-${placement}` }, shortcuts.map((shortcut, index) => (h("nv-button", { key: `shortcut-${index}`, emphasis: "lower", size: "xs", "aria-label": shortcut.label, onClick: createShortcutHandler(shortcut) }, shortcut.label)))));
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Renders the calendar header with navigation and date controls
|
|
442
|
-
* @param {CalendarHeaderProps} props - Component properties
|
|
443
|
-
* @returns {JSX.Element} JSX element representing the calendar header
|
|
444
|
-
*/
|
|
445
|
-
const CalendarHeader = props => {
|
|
446
|
-
const { currentDate, months, numberOfCalendars, calendarIndex, monthOffset, onMonthChange, onMonthSelect, onYearChange, } = props;
|
|
447
|
-
/**
|
|
448
|
-
* Creates navigation handler for month change
|
|
449
|
-
* @param {number} direction - Direction of navigation (-1 or 1)
|
|
450
|
-
* @returns {() => void} Navigation handler function
|
|
451
|
-
*/
|
|
452
|
-
const createNavigationHandler = (direction) => {
|
|
453
|
-
return () => onMonthChange(direction);
|
|
454
|
-
};
|
|
455
|
-
/**
|
|
456
|
-
* Creates month selection handler
|
|
457
|
-
* @param {number} offset - Month offset
|
|
458
|
-
* @returns {(event: Event) => void} Month selection handler function
|
|
459
|
-
*/
|
|
460
|
-
const createMonthSelectHandler = (offset) => {
|
|
461
|
-
return (event) => onMonthSelect(event, offset);
|
|
462
|
-
};
|
|
463
|
-
/**
|
|
464
|
-
* Creates year change handler
|
|
465
|
-
* @param {number} offset - Month offset
|
|
466
|
-
* @returns {(event: Event) => void} Year change handler function
|
|
467
|
-
*/
|
|
468
|
-
const createYearChangeHandler = (offset) => {
|
|
469
|
-
return (event) => onYearChange(event, offset);
|
|
470
|
-
};
|
|
471
|
-
const currentMonth = (currentDate.getUTCMonth() + monthOffset) % 12;
|
|
472
|
-
const currentYear = currentDate.getUTCFullYear() +
|
|
473
|
-
Math.floor((currentDate.getUTCMonth() + monthOffset) / 12);
|
|
474
|
-
return (h("div", { class: "header" }, numberOfCalendars > 1 && calendarIndex === 0 && (h("nv-iconbutton", { class: "nav-left", emphasis: "lower", name: "chevron-left", onClick: createNavigationHandler(-1) })), h("div", { class: "date-controls" }, h("select", { class: "month-select mr-4", onChange: createMonthSelectHandler(monthOffset) }, months.map(month => (h("option", { key: month.value, value: month.value, selected: month.value === currentMonth }, month.label)))), h("input", { type: "number", class: "year-input", min: "1950", max: "2100", value: currentYear, onChange: createYearChangeHandler(monthOffset) })), numberOfCalendars === 1 && (h("div", { class: "nav-buttons" }, h("nv-iconbutton", { emphasis: "lower", name: "chevron-left", onClick: createNavigationHandler(-1) }), h("nv-iconbutton", { emphasis: "lower", name: "chevron-right", onClick: createNavigationHandler(1) }))), numberOfCalendars > 1 && calendarIndex === numberOfCalendars - 1 && (h("nv-iconbutton", { emphasis: "lower", name: "chevron-right", onClick: createNavigationHandler(1), class: "nav-right" }))));
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Renders the calendar grid with day headers and day cells
|
|
479
|
-
* @param {CalendarGridProps} props - Component properties
|
|
480
|
-
* @returns {JSX.Element} JSX element representing the calendar grid
|
|
481
|
-
*/
|
|
482
|
-
const CalendarGrid = props => {
|
|
483
|
-
const { days, dayNames, selectionType, selectedDate, startDate, endDate, isUTCMode, onDayClick, isDateInRange, isToday, onDayHover, onMouseLeave, hoverDate, isInHoverRange, isHoverRangeValid, } = props;
|
|
484
|
-
return (h("div", { class: "days-container" }, h("div", { class: "days-header" }, dayNames.map((day, index) => (h("div", { class: "day-header", key: `day-header-${index}` }, day)))), h("div", { class: "days-grid", onMouseLeave: onMouseLeave }, days.map(day => {
|
|
485
|
-
if (day.isBlank) {
|
|
486
|
-
return h("div", { class: "day day-blank" });
|
|
487
|
-
}
|
|
488
|
-
const date = day.date;
|
|
489
|
-
if (!date || !day.dayOfMonth) {
|
|
490
|
-
return h("div", { class: "day-cell is-disabled is-empty" });
|
|
491
|
-
}
|
|
492
|
-
const isSelected = selectionType === 'single' &&
|
|
493
|
-
isSameDate(date, selectedDate, { isUTCMode });
|
|
494
|
-
const isInRange = isDateInRange(date);
|
|
495
|
-
const isStart = isSameDate(date, startDate, { isUTCMode });
|
|
496
|
-
const isEnd = isSameDate(date, endDate, { isUTCMode });
|
|
497
|
-
const isTodayDate = isToday(date);
|
|
498
|
-
const inHoverRange = isInHoverRange(date, startDate, hoverDate);
|
|
499
|
-
const hoverRangeValid = isHoverRangeValid(startDate, hoverDate);
|
|
500
|
-
return (h(DayCell, { date: date, dayOfMonth: day.dayOfMonth, isCurrentMonth: day.isCurrentMonth, isSelected: isSelected, isInRange: isInRange, isStart: isStart, isEnd: isEnd, isToday: isTodayDate, isDisabled: day.isDisabled, selectionType: selectionType, onClick: onDayClick, onDayHover: onDayHover, isInHoverRange: inHoverRange, isHoverRangeValid: hoverRangeValid }));
|
|
501
|
-
}))));
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
const nvCalendarCss = "nv-calendar{display:block}.datepicker-root{display:flex;justify-content:center;align-items:flex-start;width:auto}.datepicker-container{font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;display:flex;flex-direction:column;align-items:stretch;background:var(--components-calendar-background);border-radius:var(--calendar-radius);padding:var(--calendar-padding);box-shadow:0px var(--shadow-y-axis-md-1) var(--shadow-blur-md-1) var(--shadow-spread-md, 0) var(--shadow-color-opacity-0), 0px var(--shadow-y-axis-md-2) var(--shadow-blur-md-2) var(--shadow-spread-md, 0) var(--shadow-color-opacity-2);border:1px solid var(--components-calendar-border);width:auto;max-width:100%}.datepicker-container-single{max-width:300px}.datepicker-container-single .datepicker-wrapper:has(.shortcuts-placement-left),.datepicker-container-single .datepicker-wrapper:has(.shortcuts-placement-right){max-width:410px !important}.datepicker-container-single:has(.shortcuts-placement-left),.datepicker-container-single:has(.shortcuts-placement-right){max-width:410px !important}.datepicker-wrapper::-webkit-scrollbar{width:6px;height:6px}.datepicker-wrapper::-webkit-scrollbar-track{background-color:var(--color-level-10-background);border-radius:9999px}.datepicker-wrapper::-webkit-scrollbar-thumb{background-color:var(--color-gray-200);border-radius:9999px}.datepicker-wrapper{display:flex;justify-content:center;align-items:flex-start;gap:var(--calendar-gap-x);width:auto;overflow-x:hidden}.datepicker-wrapper.single{justify-content:center}.calendar-container{display:flex;flex-direction:column;align-items:center;padding:var(--calendar-padding);width:auto;position:relative}.calendar-separator{width:1px;background:var(--components-calendar-border);height:auto;min-height:100%;margin:0 10px}.header{display:flex;justify-content:start;align-items:center;margin-bottom:var(--calendar-header-margin-bottom);width:100%}.header nv-iconbutton{width:var(--calendar-header-button-size);height:var(--calendar-header-button-size)}.nav-buttons{display:flex;gap:var(--spacing-0);margin-left:auto}.nav-left{order:-1}.date-controls{display:flex;gap:var(--spacing-1);align-items:center;min-height:34px;justify-content:center}.datepicker-container-single .date-controls{justify-content:flex-start}.datepicker-container:not(.datepicker-container-single) .date-controls{justify-content:start;flex-grow:1}.date-controls .month-select,.date-controls .year-input{background:transparent !important}.calendar-wrapper:nth-child(n+2) .datepicker-container{margin-left:42px}.calendar-grid{display:grid;grid-template-columns:auto 1fr;column-gap:var(--calendar-weeks-calendar-gap-x);position:relative}.calendar-grid.slide-left{animation:slideLeft 0.3s ease-out}.calendar-grid.slide-right{animation:slideRight 0.3s ease-out}.week-numbers{display:grid;grid-template-rows:var(--calendar-cell-size) repeat(6, var(--calendar-cell-size));background:var(--components-calendar-weeks-background);color:var(--components-calendar-weeks-text);border-radius:var(--calendar-weeks-radius);width:var(--calendar-weeks-size);row-gap:var(--calendar-grid-gap-y)}.week-numbers .clickable{cursor:pointer}.week-numbers .clickable:hover{background-color:var(--components-calendar-weeks-background-hover);color:var(--components-calendar-weeks-text-hover);border-radius:var(--calendar-radius)}.week-header,.week-number{display:grid;place-items:center;font-size:var(--calendar-cell-font-size)}.week-header{font-weight:700;color:var(--components-calendar-weeks-text)}.week-number{color:var(--components-calendar-cell-text)}.days-container{display:grid;grid-template-rows:auto 1fr;row-gap:var(--calendar-grid-gap-y)}.days-header{display:grid;grid-template-columns:repeat(7, var(--calendar-cell-size));height:var(--calendar-cell-size)}.day-header{display:grid;place-items:center;font-size:var(--calendar-cell-font-size);color:var(--components-calendar-cell-text)}.days-grid{display:grid;grid-template-columns:repeat(7, var(--calendar-cell-size));grid-template-rows:repeat(6, var(--calendar-cell-size));animation:fadeIn 0.2s ease-in;row-gap:var(--calendar-grid-gap-y);z-index:0}.day{display:grid;place-items:center;width:var(--calendar-cell-size);height:var(--calendar-cell-size);font-size:var(--calendar-cell-font-size);border-radius:var(--calendar-cell-radius);cursor:pointer;border:none;background:transparent;transition:all 0.2s ease;text-align:center;animation:scaleIn 0.2s ease-out}.day:hover:not(.disabled,.empty,.selected){background:var(--components-calendar-cell-background-hover);color:var(--components-calendar-cell-text-hover)}.day.selected,.day.selected:hover .day.is-today.selected,.day.is-today.selected:hover{background:var(--components-calendar-cell-background-selected);color:var(--components-calendar-cell-text-selected) !important}.day.disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.day.is-empty{pointer-events:none;background-color:transparent;border-color:transparent}.day.day-blank{pointer-events:none;background-color:transparent;border-color:transparent}.day.outside-month{color:var(--components-calendar-cell-text);opacity:var(--opacity-disabled)}.day.outside-month.selected{opacity:1 !important;color:var(--components-calendar-cell-text-selected)}.day.outside-month.in-range{opacity:0.5 !important;background-color:var(--components-calendar-cell-background-in-range);color:var(--components-calendar-cell-text-in-range)}.day.outside-month.in-range:hover{opacity:0.7 !important;background-color:var(--components-calendar-cell-background-in-range)}.day.in-range{background:var(--components-calendar-cell-background-in-range);color:var(--components-calendar-cell-text-in-range);border-radius:0;position:relative}.day.range-start,.day.range-start:focus,.day.range-start:hover,.day.range-end,.day.range-end:focus,.day.range-end:hover{background-color:var(--components-calendar-cell-background-selected) !important;color:var(--components-calendar-cell-text-selected) !important}.day.range-start,.day.range-end,.day.range-start.is-today,.day.range-end.is-today{background:var(--components-calendar-cell-background-selected);color:var(--components-calendar-cell-text-selected);position:relative;border-radius:var(--radius-rounded-full)}.day.range-start:hover,.day.range-end:hover,.day.range-start.is-today:hover,.day.range-end.is-today:hover{color:var(--components-calendar-cell-text-today)}.day.range-start:before,.day.range-end:before,.day.range-start.is-today:before,.day.range-end.is-today:before{content:\"\";position:absolute;bottom:0;left:0;right:0;top:0;z-index:-1;background-color:var(--components-calendar-cell-background-in-range);border-radius:var(--radius-rounded-full);width:auto;height:auto}.day.range-start:has(~.range-end):before,.day.range-start:has(+.in-range):before{border-top-right-radius:0;border-bottom-right-radius:0}.day.range-end:before{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.day.outside-month.range-start,.day.outside-month.range-end{opacity:1 !important;background:var(--components-calendar-cell-background-selected) !important;color:var(--components-calendar-cell-text-selected)}.day.is-today{font-weight:700;position:relative;color:var(--components-calendar-cell-text-today)}.day.is-today.range-start,.day.is-today.range-end{color:var(--components-calendar-cell-text-selected)}.day.is-today.range-start:hover,.day.is-today.range-end:hover{color:var(--components-calendar-cell-text-today)}.day.is-today::after{content:\"\";position:absolute;bottom:var(--spacing-1);left:50%;transform:translateX(-50%);width:var(--calendar-cell-dot-size);height:var(--calendar-cell-dot-size);background-color:currentColor;border-radius:50%}.day.is-today.selected::after{color:var(--components-calendar-cell-text-selected)}.day.is-today.selected::after::after{background-color:var(--components-calendar-cell-dot-selected)}.day.hover-range{background-color:var(--components-calendar-cell-background-hover)}.day.hover-blocked{background-color:var(--components-calendar-cell-background-hover)}.day.disabled.hover-blocked{background-color:transparent}.calendar-footer{display:flex;gap:var(--spacing-1);justify-content:flex-start;width:100%;flex-wrap:wrap}.footer-placement-left{justify-content:flex-start}.footer-placement-right{justify-content:flex-end}.footer-placement-center{justify-content:center}.datepicker-controls{display:flex;flex-direction:column;border-top:1px solid var(--components-calendar-border);padding:var(--calendar-controls-padding-top) var(--calendar-padding) var(--calendar-padding);gap:var(--calendar-grid-gap-y);margin-top:var(--calendar-controls-margin-top)}.datepicker-actions{display:flex;justify-content:flex-end;gap:var(--spacing-1);width:100%}.datepicker-actions slot-fb{display:contents !important}.datepicker-actions .actions-container{display:flex;gap:var(--spacing-1)}.calendar-footer+.datepicker-actions{margin-top:0}.shortcuts-placement-left,.shortcuts-placement-right{display:flex;flex-direction:column;gap:var(--spacing-1);margin-top:var(--spacing-4)}.shortcuts-placement-left{align-items:flex-end}.shortcuts-placement-right{align-items:flex-start}@keyframes slideLeft{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes slideRight{from{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{from{opacity:0;transform:scale(0.9)}to{opacity:1;transform:scale(1)}}";
|
|
505
|
-
|
|
506
|
-
const NvCalendar = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H {
|
|
507
|
-
constructor(registerHost) {
|
|
508
|
-
super();
|
|
509
|
-
if (registerHost !== false) {
|
|
510
|
-
this.__registerHost();
|
|
511
|
-
}
|
|
512
|
-
this.singleDateChange = createEvent(this, "singleDateChange", 3);
|
|
513
|
-
this.rangeDateChange = createEvent(this, "rangeDateChange", 3);
|
|
514
|
-
this.valueChanged = createEvent(this, "valueChanged", 3);
|
|
515
|
-
/****************************************************************************/
|
|
516
|
-
//#region PROPERTIES
|
|
517
|
-
/**
|
|
518
|
-
* First day of the week (0 = Sunday, 1 = Monday, etc.)
|
|
519
|
-
* @default 1
|
|
520
|
-
*/
|
|
521
|
-
this.firstDayOfWeek = 1;
|
|
522
|
-
/**
|
|
523
|
-
* Number of calendars to display
|
|
524
|
-
* @default 1
|
|
525
|
-
*/
|
|
526
|
-
this.numberOfCalendars = 1;
|
|
527
|
-
/**
|
|
528
|
-
* Selected date value. For single mode: ISO date string. For range mode: comma-separated ISO date strings.
|
|
529
|
-
* Examples:
|
|
530
|
-
* - Single: "2025-03-15"
|
|
531
|
-
* - Range: "2025-03-15,2025-03-20"
|
|
532
|
-
* @default ""
|
|
533
|
-
*/
|
|
534
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
535
|
-
this.value = '';
|
|
536
|
-
/**
|
|
537
|
-
* Locale for date formatting
|
|
538
|
-
* @default 'en-BE'
|
|
539
|
-
*/
|
|
540
|
-
this.locale = 'en-BE';
|
|
541
|
-
/**
|
|
542
|
-
* Date format (ex: 'YYYY-MM-DD', 'DD-MM-YYYY', etc.)
|
|
543
|
-
* @default 'YYYY-MM-DD'
|
|
544
|
-
* @note If the date format is in UTC mode, the date will be displayed in UTC time.
|
|
545
|
-
* @note If the date format is not in UTC mode, the date will be displayed in the local time.
|
|
546
|
-
*/
|
|
547
|
-
this.dateFormat = 'YYYY-MM-DD';
|
|
548
|
-
/**
|
|
549
|
-
* Footer placement
|
|
550
|
-
* @default 'bottom'
|
|
551
|
-
*/
|
|
552
|
-
this.shortcutsPlacement = 'bottom';
|
|
553
|
-
/**
|
|
554
|
-
* Selection type (single date or date range)
|
|
555
|
-
* @default 'single'
|
|
556
|
-
*/
|
|
557
|
-
this.selectionType = 'single';
|
|
558
|
-
/**
|
|
559
|
-
* Show action buttons
|
|
560
|
-
*/
|
|
561
|
-
this.showActions = false;
|
|
562
|
-
/** Sets the label for the cancel button in actions. */
|
|
563
|
-
this.cancelLabel = 'Cancel';
|
|
564
|
-
/** Sets the label for the primary (OK) button in actions. */
|
|
565
|
-
this.primaryLabel = 'OK';
|
|
566
|
-
/** Cache for parsed disabled dates */
|
|
567
|
-
this.parsedDisabledDates = [];
|
|
568
|
-
/** Flag to indicate a user click for selection */
|
|
569
|
-
this.isUserClick = false;
|
|
570
|
-
//#endregion PROPERTIES
|
|
571
|
-
/****************************************************************************/
|
|
572
|
-
//#region STATE
|
|
573
|
-
this.currentDate = null;
|
|
574
|
-
this.selectedDate = null;
|
|
575
|
-
this.startDate = null;
|
|
576
|
-
this.endDate = null;
|
|
577
|
-
this.hoverDate = null;
|
|
578
|
-
/** List of formatted months for the selector */
|
|
579
|
-
this.months = [];
|
|
580
|
-
/**
|
|
581
|
-
* Parses the unified value prop and synchronizes with internal state
|
|
582
|
-
* @param {string} value - Value to parse
|
|
583
|
-
*/
|
|
584
|
-
this.parseUnifiedValue = (value) => {
|
|
585
|
-
if (!value) {
|
|
586
|
-
// Reset all selections
|
|
587
|
-
this.selectedDate = null;
|
|
588
|
-
this.startDate = null;
|
|
589
|
-
this.endDate = null;
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
const values = value
|
|
593
|
-
.split(',')
|
|
594
|
-
.map(v => v.trim())
|
|
595
|
-
.filter(Boolean);
|
|
596
|
-
if (this.selectionType === 'range' && values.length < 2) {
|
|
597
|
-
console.warn(`Invalid date range format: ${value}`);
|
|
598
|
-
this.startDate = null;
|
|
599
|
-
this.endDate = null;
|
|
600
|
-
return;
|
|
601
|
-
}
|
|
602
|
-
if (this.selectionType === 'single' && values.length >= 1) {
|
|
603
|
-
const parsedDate = parseDate(values[0], this.dateFormat);
|
|
604
|
-
if (parsedDate) {
|
|
605
|
-
this.selectedDate = parsedDate;
|
|
606
|
-
// Only sync with legacy prop if not using actions (immediate mode)
|
|
607
|
-
if (!this.showActions) {
|
|
608
|
-
this.singleValue = values[0];
|
|
609
|
-
}
|
|
610
|
-
// Navigate to the date if not prevented
|
|
611
|
-
const preventNavigation = this.el.getAttribute('data-prevent-navigation') === 'true';
|
|
612
|
-
if (!preventNavigation && !this.isUserClick) {
|
|
613
|
-
this.currentDate = parsedDate;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
else {
|
|
617
|
-
// Handle malformed date gracefully - reset state
|
|
618
|
-
console.warn(`Invalid date format: ${values[0]}`);
|
|
619
|
-
this.selectedDate = null;
|
|
620
|
-
if (!this.showActions) {
|
|
621
|
-
this.singleValue = '';
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
else if (this.selectionType === 'range' && values.length >= 2) {
|
|
626
|
-
const startDate = parseDate(values[0], this.dateFormat);
|
|
627
|
-
const endDate = parseDate(values[1], this.dateFormat);
|
|
628
|
-
if (startDate && endDate) {
|
|
629
|
-
this.startDate = startDate;
|
|
630
|
-
this.endDate = endDate;
|
|
631
|
-
// Only sync with legacy prop if not using actions (immediate mode)
|
|
632
|
-
if (!this.showActions) {
|
|
633
|
-
this.rangeValue = {
|
|
634
|
-
start: values[0],
|
|
635
|
-
end: values[1],
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
// Navigate to start date if not prevented
|
|
639
|
-
const preventNavigation = this.el.getAttribute('data-prevent-navigation') === 'true';
|
|
640
|
-
if (!preventNavigation && !this.isUserClick) {
|
|
641
|
-
this.currentDate = startDate;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
else {
|
|
645
|
-
// Handle malformed dates gracefully - reset state
|
|
646
|
-
console.warn(`Invalid date range format: ${values?.[0]}, ${values?.[1]}`);
|
|
647
|
-
this.startDate = null;
|
|
648
|
-
this.endDate = null;
|
|
649
|
-
if (!this.showActions) {
|
|
650
|
-
this.rangeValue = { start: '', end: '' };
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
};
|
|
655
|
-
/**
|
|
656
|
-
* Change the displayed month
|
|
657
|
-
* @param {number} offset - Month offset (-1 for previous, 1 for next)
|
|
658
|
-
*/
|
|
659
|
-
this.changeMonth = (offset) => {
|
|
660
|
-
const newDate = new Date(this.currentDate);
|
|
661
|
-
newDate.setUTCDate(1); // Set to the first of the month to avoid day-of-month issues
|
|
662
|
-
newDate.setUTCMonth(newDate.getUTCMonth() + offset);
|
|
663
|
-
const containers = this.el.querySelectorAll('.calendar-grid');
|
|
664
|
-
containers.forEach(container => {
|
|
665
|
-
container.classList.remove('slide-left', 'slide-right');
|
|
666
|
-
const animationClass = offset > 0 ? 'slide-left' : 'slide-right';
|
|
667
|
-
container.classList.add(animationClass);
|
|
668
|
-
setTimeout(() => container.classList.remove(animationClass), 300);
|
|
669
|
-
});
|
|
670
|
-
this.currentDate = newDate;
|
|
671
|
-
};
|
|
672
|
-
this.handleMouseLeave = () => {
|
|
673
|
-
this.hoverDate = null;
|
|
674
|
-
};
|
|
675
|
-
this.handleDayHover = (event) => {
|
|
676
|
-
const target = event.target;
|
|
677
|
-
const dateStr = target.getAttribute('data-date');
|
|
678
|
-
if (dateStr &&
|
|
679
|
-
this.selectionType === 'range' &&
|
|
680
|
-
this.startDate &&
|
|
681
|
-
!this.endDate) {
|
|
682
|
-
this.hoverDate = new Date(dateStr);
|
|
683
|
-
}
|
|
684
|
-
};
|
|
685
|
-
/**
|
|
686
|
-
* Handles date selection based on the mode
|
|
687
|
-
* @param {MouseEvent} event - The mouse event from the click.
|
|
688
|
-
*/
|
|
689
|
-
this.handleDateSelection = (event) => {
|
|
690
|
-
const target = event.target;
|
|
691
|
-
const dateStr = target.getAttribute('data-date');
|
|
692
|
-
if (!dateStr)
|
|
693
|
-
return;
|
|
694
|
-
const date = new Date(dateStr);
|
|
695
|
-
if (this.isDateDisabled(date)) {
|
|
696
|
-
return;
|
|
697
|
-
}
|
|
698
|
-
this.isUserClick = true;
|
|
699
|
-
if (this.selectionType === 'single') {
|
|
700
|
-
this.handleSingleSelection(date);
|
|
701
|
-
}
|
|
702
|
-
else {
|
|
703
|
-
this.handleRangeSelection(date);
|
|
704
|
-
}
|
|
705
|
-
requestAnimationFrame(() => {
|
|
706
|
-
this.isUserClick = false;
|
|
707
|
-
});
|
|
708
|
-
};
|
|
709
|
-
/**
|
|
710
|
-
* Handles single date selection
|
|
711
|
-
* @param {Date} date - Selected date
|
|
712
|
-
*/
|
|
713
|
-
this.handleSingleSelection = (date) => {
|
|
714
|
-
if (!date)
|
|
715
|
-
return;
|
|
716
|
-
const formattedDate = formatDate(date, { dateFormat: this.dateFormat });
|
|
717
|
-
this.selectedDate = date;
|
|
718
|
-
// Update the unified value prop (like nv-fieldslider)
|
|
719
|
-
this.value = formattedDate;
|
|
720
|
-
this.valueChanged.emit(formattedDate);
|
|
721
|
-
// Legacy support (deprecated) - only sync props if not using actions
|
|
722
|
-
if (!this.showActions) {
|
|
723
|
-
this.singleValue = formattedDate;
|
|
724
|
-
this.singleDateChange.emit(formattedDate);
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
|
-
/**
|
|
728
|
-
* Handles range date selection
|
|
729
|
-
* @param {Date} date - Selected date
|
|
730
|
-
*/
|
|
731
|
-
this.handleRangeSelection = (date) => {
|
|
732
|
-
if (!this.startDate || (this.startDate && this.endDate)) {
|
|
733
|
-
// Start new range selection
|
|
734
|
-
this.startDate = date;
|
|
735
|
-
this.endDate = null;
|
|
736
|
-
}
|
|
737
|
-
else {
|
|
738
|
-
// Complete range selection
|
|
739
|
-
this.endDate = date;
|
|
740
|
-
this.hoverDate = null;
|
|
741
|
-
// Ensure correct order
|
|
742
|
-
if (this.startDate > this.endDate) {
|
|
743
|
-
[this.startDate, this.endDate] = [this.endDate, this.startDate];
|
|
744
|
-
}
|
|
745
|
-
const startFormatted = formatDate(this.startDate, {
|
|
746
|
-
dateFormat: this.dateFormat,
|
|
747
|
-
});
|
|
748
|
-
const endFormatted = formatDate(this.endDate, {
|
|
749
|
-
dateFormat: this.dateFormat,
|
|
750
|
-
});
|
|
751
|
-
// Update the unified value prop (like nv-fieldslider)
|
|
752
|
-
this.value = `${startFormatted},${endFormatted}`;
|
|
753
|
-
this.valueChanged.emit(this.value);
|
|
754
|
-
// Legacy support (deprecated) - only sync props if not using actions
|
|
755
|
-
if (!this.showActions) {
|
|
756
|
-
const legacyRange = { start: startFormatted, end: endFormatted };
|
|
757
|
-
this.rangeDateChange.emit(legacyRange);
|
|
758
|
-
this.rangeValue = legacyRange;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
/**
|
|
763
|
-
* Checks if a date is disabled.
|
|
764
|
-
* Disabled if:
|
|
765
|
-
* - The date is before min (if defined)
|
|
766
|
-
* - The date is after max (if defined)
|
|
767
|
-
* - The date is in the disabledDates array
|
|
768
|
-
* @param {Date} date - Date to check
|
|
769
|
-
* @returns {boolean} true if the date is disabled
|
|
770
|
-
*/
|
|
771
|
-
this.isDateDisabled = (date) => {
|
|
772
|
-
return isDateDisabledUtil(date, this.min, this.max, this.parsedDisabledDates, this.dateFormat, this.isUTCMode);
|
|
773
|
-
};
|
|
774
|
-
/**
|
|
775
|
-
* Checks if a date is in the selected range
|
|
776
|
-
* @param {Date} date - Date to check
|
|
777
|
-
* @returns {boolean} true if the date is in the range
|
|
778
|
-
*/
|
|
779
|
-
this.isDateInRange = (date) => {
|
|
780
|
-
if (!date || !this.startDate || !this.endDate)
|
|
781
|
-
return false;
|
|
782
|
-
const checkDate = parseDate(date, this.dateFormat);
|
|
783
|
-
const startDate = parseDate(this.startDate, this.dateFormat);
|
|
784
|
-
const endDate = parseDate(this.endDate, this.dateFormat);
|
|
785
|
-
// Verify if startDate and endDate are valid
|
|
786
|
-
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
787
|
-
return false;
|
|
788
|
-
}
|
|
789
|
-
// Verify that startDate is before endDate (additional security)
|
|
790
|
-
if (startDate > endDate)
|
|
791
|
-
return false;
|
|
792
|
-
// Comparison based only on the date (year, month, day)
|
|
793
|
-
return (isSameOrAfter(checkDate, startDate, { isUTCMode: this.isUTCMode }) &&
|
|
794
|
-
isSameOrBefore(checkDate, endDate, { isUTCMode: this.isUTCMode }));
|
|
795
|
-
};
|
|
796
|
-
/**
|
|
797
|
-
* Retrieves the localized day names
|
|
798
|
-
* @returns {string[]} Array of short day names
|
|
799
|
-
*/
|
|
800
|
-
this.getDayNames = () => {
|
|
801
|
-
let days;
|
|
802
|
-
// If we have custom day names for this locale
|
|
803
|
-
if (CUSTOM_DAY_NAMES[this.locale]) {
|
|
804
|
-
// Custom day names are expected to start with Monday (index 0 = Monday)
|
|
805
|
-
days = [...CUSTOM_DAY_NAMES[this.locale]];
|
|
806
|
-
}
|
|
807
|
-
else {
|
|
808
|
-
// Generate days using Intl.DateTimeFormat, starting from Monday
|
|
809
|
-
const formatter = new Intl.DateTimeFormat(this.locale, {
|
|
810
|
-
weekday: 'short',
|
|
811
|
-
});
|
|
812
|
-
// Generate days starting from Monday (2023-01-02 was a Monday)
|
|
813
|
-
days = [...Array(7)].map((_, i) => formatter.format(new Date(2023, 0, i + 2)).toUpperCase());
|
|
814
|
-
}
|
|
815
|
-
// Now reorganize based on firstDayOfWeek
|
|
816
|
-
// 0 = Sunday, 1 = Monday (default), 2 = Tuesday, etc.
|
|
817
|
-
if (this.firstDayOfWeek === 0) {
|
|
818
|
-
// If Sunday is first day, move Sunday (last element) to the beginning
|
|
819
|
-
return [days[6], ...days.slice(0, 6)];
|
|
820
|
-
}
|
|
821
|
-
else if (this.firstDayOfWeek === 1) {
|
|
822
|
-
// If Monday is first day, return as-is (since our array starts with Monday)
|
|
823
|
-
return days;
|
|
824
|
-
}
|
|
825
|
-
else {
|
|
826
|
-
// For other first days (Tuesday=2, Wednesday=3, etc.)
|
|
827
|
-
const offset = this.firstDayOfWeek - 1; // Convert to 0-based offset from Monday
|
|
828
|
-
return [...days.slice(offset), ...days.slice(0, offset)];
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
/**
|
|
832
|
-
* Generates the days of the current month
|
|
833
|
-
* @param {number} offset - Month offset (0 by default)
|
|
834
|
-
* @returns {Array<{ dayOfMonth: number | null, date: Date | null, isSelected: boolean, isDisabled: boolean }>} Array of formatted days
|
|
835
|
-
*/
|
|
836
|
-
this.getDaysInMonth = (offset = 0) => {
|
|
837
|
-
const baseMonth = this.currentDate.getUTCMonth();
|
|
838
|
-
// Correctly calculate the year and month for the given offset
|
|
839
|
-
const targetDate = new Date(this.currentDate);
|
|
840
|
-
targetDate.setUTCMonth(baseMonth + offset);
|
|
841
|
-
const year = targetDate.getUTCFullYear();
|
|
842
|
-
const month = targetDate.getUTCMonth();
|
|
843
|
-
const firstDay = new Date(Date.UTC(year, month, 1));
|
|
844
|
-
const lastDay = new Date(Date.UTC(year, month + 1, 0));
|
|
845
|
-
const days = [];
|
|
846
|
-
// Correct calculation of offset for previous month days
|
|
847
|
-
// Use getUTCDay to stay consistent with UTC timezone
|
|
848
|
-
const dayOfWeekIndex = firstDay.getUTCDay(); // 0 = Sunday, 1 = Monday, etc.
|
|
849
|
-
// Adjust based on firstDayOfWeek (if week starts on Monday, offset is different)
|
|
850
|
-
const offsetDays = (dayOfWeekIndex - this.firstDayOfWeek + 7) % 7;
|
|
851
|
-
// Add padding days from the previous month
|
|
852
|
-
for (let i = 0; i < offsetDays; i++) {
|
|
853
|
-
const prevMonthDay = new Date(Date.UTC(year, month, 0)).getUTCDate();
|
|
854
|
-
const date = new Date(Date.UTC(year, month - 1, prevMonthDay - offsetDays + 1 + i));
|
|
855
|
-
days.push({
|
|
856
|
-
dayOfMonth: date.getUTCDate(),
|
|
857
|
-
date,
|
|
858
|
-
isCurrentMonth: false,
|
|
859
|
-
isDisabled: this.isDateDisabled(date),
|
|
860
|
-
// Days from previous month are blank if not the first calendar
|
|
861
|
-
isBlank: offset > 0,
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
// Add the days of the current month
|
|
865
|
-
for (let i = 1; i <= lastDay.getUTCDate(); i++) {
|
|
866
|
-
const date = new Date(Date.UTC(year, month, i));
|
|
867
|
-
days.push({
|
|
868
|
-
dayOfMonth: i,
|
|
869
|
-
date,
|
|
870
|
-
isCurrentMonth: true,
|
|
871
|
-
isDisabled: this.isDateDisabled(date),
|
|
872
|
-
isBlank: false,
|
|
873
|
-
});
|
|
874
|
-
}
|
|
875
|
-
// Add padding days to fill the last week
|
|
876
|
-
const nextMonthDaysNeeded = 7 - (days.length % 7 || 7);
|
|
877
|
-
if (nextMonthDaysNeeded < 7) {
|
|
878
|
-
for (let i = 1; i <= nextMonthDaysNeeded; i++) {
|
|
879
|
-
const date = new Date(Date.UTC(year, month + 1, i));
|
|
880
|
-
days.push({
|
|
881
|
-
dayOfMonth: i,
|
|
882
|
-
date,
|
|
883
|
-
isCurrentMonth: false,
|
|
884
|
-
isDisabled: this.isDateDisabled(date),
|
|
885
|
-
// Days from next month are blank if not the last calendar
|
|
886
|
-
isBlank: offset < this.numberOfCalendars - 1,
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
return days;
|
|
891
|
-
};
|
|
892
|
-
/** Initializes the list of formatted months according to the locale */
|
|
893
|
-
this.initializeMonths = () => {
|
|
894
|
-
// If we have custom month names for this locale
|
|
895
|
-
if (CUSTOM_MONTH_NAMES[this.locale]) {
|
|
896
|
-
this.months = CUSTOM_MONTH_NAMES[this.locale].map((label, value) => ({
|
|
897
|
-
value,
|
|
898
|
-
label,
|
|
899
|
-
}));
|
|
900
|
-
return;
|
|
901
|
-
}
|
|
902
|
-
// Otherwise, use the default behavior
|
|
903
|
-
const formatter = new Intl.DateTimeFormat(this.locale, { month: 'short' });
|
|
904
|
-
this.months = Array.from({ length: 12 }, (_, i) => ({
|
|
905
|
-
value: i,
|
|
906
|
-
label: formatter.format(new Date(2000, i, 1)).toUpperCase(),
|
|
907
|
-
}));
|
|
908
|
-
};
|
|
909
|
-
/**
|
|
910
|
-
* Retrieves the localized abbreviation for "week"
|
|
911
|
-
* @returns {string} Localized abbreviation for "week"
|
|
912
|
-
*/
|
|
913
|
-
this.getLocalizedWeekText = () => {
|
|
914
|
-
return WEEK_ABBREVIATIONS[this.locale] || 'W';
|
|
915
|
-
};
|
|
916
|
-
/**
|
|
917
|
-
* Handles month change in the selector
|
|
918
|
-
* @param {Event} event - Month change event
|
|
919
|
-
* @param {number} calendarOffset - Calendar offset (0 by default)
|
|
920
|
-
*/
|
|
921
|
-
this.handleMonthChange = (event, calendarOffset = 0) => {
|
|
922
|
-
const select = event.target;
|
|
923
|
-
const selectedMonth = parseInt(select.value, 10);
|
|
924
|
-
// Calculate the current displayed year for this specific calendar
|
|
925
|
-
const targetCalendarDate = new Date(this.currentDate);
|
|
926
|
-
targetCalendarDate.setUTCDate(1);
|
|
927
|
-
targetCalendarDate.setUTCMonth(targetCalendarDate.getUTCMonth() + calendarOffset);
|
|
928
|
-
const currentYear = targetCalendarDate.getUTCFullYear();
|
|
929
|
-
// Create a new date with the selected month, keeping the SAME year
|
|
930
|
-
// This ensures the year never changes when selecting a month
|
|
931
|
-
const newTargetDate = new Date(Date.UTC(currentYear, selectedMonth, 1));
|
|
932
|
-
// Calculate what currentDate should be by subtracting the offset
|
|
933
|
-
const finalDate = new Date(newTargetDate);
|
|
934
|
-
finalDate.setUTCMonth(finalDate.getUTCMonth() - calendarOffset);
|
|
935
|
-
this.currentDate = finalDate;
|
|
936
|
-
};
|
|
937
|
-
/**
|
|
938
|
-
* Handles year change in the numeric entry
|
|
939
|
-
* @param {Event} event - Year change event
|
|
940
|
-
* @param {number} calendarOffset - Calendar offset (0 by default)
|
|
941
|
-
*/
|
|
942
|
-
this.handleYearChange = (event, calendarOffset = 0) => {
|
|
943
|
-
const input = event.target;
|
|
944
|
-
const year = parseInt(input.value, 10);
|
|
945
|
-
if (!isNaN(year) && year >= 1900 && year <= 2100) {
|
|
946
|
-
const newDate = new Date(this.currentDate);
|
|
947
|
-
newDate.setUTCMonth(newDate.getUTCMonth() + calendarOffset);
|
|
948
|
-
newDate.setUTCFullYear(year);
|
|
949
|
-
newDate.setUTCMonth(newDate.getUTCMonth() - calendarOffset);
|
|
950
|
-
this.currentDate = new Date(newDate);
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
/**
|
|
954
|
-
* Handles week selection
|
|
955
|
-
* @param {Date[]} weekDays - Selected week days
|
|
956
|
-
* @param {number} calendarIndex - Calendar index from which the selection is made
|
|
957
|
-
*/
|
|
958
|
-
this.handleWeekSelection = (weekDays, calendarIndex) => {
|
|
959
|
-
if (this.selectionType !== 'range')
|
|
960
|
-
return;
|
|
961
|
-
const allDays = this.getDaysInMonth(calendarIndex);
|
|
962
|
-
const weekStart = weekDays[0];
|
|
963
|
-
const weekEnd = weekDays[weekDays.length - 1];
|
|
964
|
-
if (!weekStart || !weekEnd)
|
|
965
|
-
return;
|
|
966
|
-
const selectedWeekDays = allDays.filter(day => day.date && day.date >= weekStart && day.date <= weekEnd);
|
|
967
|
-
const validDays = selectedWeekDays.filter(day => !this.isDateDisabled(day.date));
|
|
968
|
-
if (validDays.length > 0) {
|
|
969
|
-
this.startDate = validDays[0].date;
|
|
970
|
-
this.endDate = validDays[validDays.length - 1].date;
|
|
971
|
-
this.rangeDateChange.emit({
|
|
972
|
-
start: formatDate(this.startDate, { dateFormat: this.dateFormat }),
|
|
973
|
-
end: formatDate(this.endDate, { dateFormat: this.dateFormat }),
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
};
|
|
977
|
-
/**
|
|
978
|
-
* Checks if a date corresponds to today
|
|
979
|
-
* @param {Date} date - Date to check
|
|
980
|
-
* @returns {boolean} true if the date is today
|
|
981
|
-
*/
|
|
982
|
-
this.isToday = (date) => {
|
|
983
|
-
const today = new Date();
|
|
984
|
-
return (date.getDate() === today.getDate() &&
|
|
985
|
-
date.getMonth() === today.getMonth() &&
|
|
986
|
-
date.getFullYear() === today.getFullYear());
|
|
987
|
-
};
|
|
988
|
-
/**
|
|
989
|
-
* Parse and cache the disabled dates
|
|
990
|
-
* @description Parse and cache the disabled dates
|
|
991
|
-
*/
|
|
992
|
-
this.parseDisabledDates = () => {
|
|
993
|
-
if (!this.disabledDates) {
|
|
994
|
-
this.parsedDisabledDates = [];
|
|
995
|
-
return;
|
|
996
|
-
}
|
|
997
|
-
try {
|
|
998
|
-
this.parsedDisabledDates = this.disabledDates
|
|
999
|
-
.map(date => parseDate(date, this.dateFormat))
|
|
1000
|
-
.filter(date => date !== null);
|
|
1001
|
-
}
|
|
1002
|
-
catch (error) {
|
|
1003
|
-
console.error('Error parsing disabled dates:', error);
|
|
1004
|
-
this.parsedDisabledDates = [];
|
|
1005
|
-
}
|
|
1006
|
-
};
|
|
1007
|
-
/**
|
|
1008
|
-
* Applies a shortcut selection
|
|
1009
|
-
* @param {Object} shortcut - Shortcut to apply
|
|
1010
|
-
* @param {string | Date} shortcut.singleValue - Selected date value
|
|
1011
|
-
* @param {Object} shortcut.rangeValue - Start and end date values
|
|
1012
|
-
* @param {string | Date} shortcut.rangeValue.start - Start date value
|
|
1013
|
-
* @param {string | Date} shortcut.rangeValue.end - End date value
|
|
1014
|
-
* @param {string} shortcut.label - Label
|
|
1015
|
-
*/
|
|
1016
|
-
this.applyShortcut = (shortcut) => {
|
|
1017
|
-
this.selectedDate = null;
|
|
1018
|
-
this.startDate = null;
|
|
1019
|
-
this.endDate = null;
|
|
1020
|
-
if (shortcut.singleValue) {
|
|
1021
|
-
const newDate = parseDate(shortcut.singleValue, this.dateFormat);
|
|
1022
|
-
this.selectedDate = newDate;
|
|
1023
|
-
const formattedDate = formatDate(newDate, {
|
|
1024
|
-
dateFormat: this.dateFormat,
|
|
1025
|
-
});
|
|
1026
|
-
// Update the unified value prop (like nv-fieldslider)
|
|
1027
|
-
this.value = formattedDate;
|
|
1028
|
-
this.valueChanged.emit(formattedDate);
|
|
1029
|
-
// Legacy support (deprecated) - sync props
|
|
1030
|
-
this.singleValue = formattedDate;
|
|
1031
|
-
this.singleDateChange.emit(formattedDate);
|
|
1032
|
-
if (!this.showActions) {
|
|
1033
|
-
const event = new CustomEvent('closePopover', {
|
|
1034
|
-
bubbles: true,
|
|
1035
|
-
composed: true,
|
|
1036
|
-
});
|
|
1037
|
-
this.el.dispatchEvent(event);
|
|
1038
|
-
}
|
|
1039
|
-
this.forceCalendarUpdate(newDate);
|
|
1040
|
-
}
|
|
1041
|
-
else {
|
|
1042
|
-
const start = parseDate(shortcut.rangeValue.start, this.dateFormat);
|
|
1043
|
-
const end = parseDate(shortcut.rangeValue.end, this.dateFormat);
|
|
1044
|
-
this.startDate = start;
|
|
1045
|
-
this.endDate = end;
|
|
1046
|
-
const startFormatted = formatDate(start, {
|
|
1047
|
-
dateFormat: this.dateFormat,
|
|
1048
|
-
});
|
|
1049
|
-
const endFormatted = formatDate(end, { dateFormat: this.dateFormat });
|
|
1050
|
-
// Update the unified value prop (like nv-fieldslider)
|
|
1051
|
-
this.value = `${startFormatted},${endFormatted}`;
|
|
1052
|
-
this.valueChanged.emit(this.value);
|
|
1053
|
-
// Legacy support (deprecated) - sync props
|
|
1054
|
-
const legacyRange = { start: startFormatted, end: endFormatted };
|
|
1055
|
-
this.rangeDateChange.emit(legacyRange);
|
|
1056
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
1057
|
-
this.rangeValue = legacyRange;
|
|
1058
|
-
if (!this.showActions) {
|
|
1059
|
-
const event = new CustomEvent('closePopover', {
|
|
1060
|
-
bubbles: true,
|
|
1061
|
-
composed: true,
|
|
1062
|
-
});
|
|
1063
|
-
this.el.dispatchEvent(event);
|
|
1064
|
-
}
|
|
1065
|
-
this.currentDate = start;
|
|
1066
|
-
}
|
|
1067
|
-
};
|
|
1068
|
-
/**
|
|
1069
|
-
* Method to force the complete calendar update
|
|
1070
|
-
* @param {Date} newDate - Date to force
|
|
1071
|
-
*/
|
|
1072
|
-
this.forceCalendarUpdate = newDate => {
|
|
1073
|
-
this.currentDate = new Date(newDate);
|
|
1074
|
-
};
|
|
1075
|
-
/**
|
|
1076
|
-
* Resets the current selection
|
|
1077
|
-
*/
|
|
1078
|
-
this.resetSelection = () => {
|
|
1079
|
-
if (this.selectionType === 'single') {
|
|
1080
|
-
this.selectedDate = null;
|
|
1081
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
1082
|
-
this.singleValue = null;
|
|
1083
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
1084
|
-
this.value = '';
|
|
1085
|
-
this.singleDateChange.emit('');
|
|
1086
|
-
this.valueChanged.emit('');
|
|
1087
|
-
}
|
|
1088
|
-
else {
|
|
1089
|
-
this.startDate = null;
|
|
1090
|
-
this.endDate = null;
|
|
1091
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
1092
|
-
this.rangeValue = null;
|
|
1093
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
1094
|
-
this.value = '';
|
|
1095
|
-
this.rangeDateChange.emit({ start: '', end: '' });
|
|
1096
|
-
this.valueChanged.emit('');
|
|
1097
|
-
}
|
|
1098
|
-
};
|
|
1099
|
-
/**
|
|
1100
|
-
* Confirms the current selection
|
|
1101
|
-
*/
|
|
1102
|
-
this.confirmSelection = () => {
|
|
1103
|
-
if (this.selectionType === 'single' && this.selectedDate) {
|
|
1104
|
-
const dateStr = formatDate(this.selectedDate, {
|
|
1105
|
-
dateFormat: this.dateFormat,
|
|
1106
|
-
});
|
|
1107
|
-
this.singleDateChange.emit(dateStr);
|
|
1108
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
1109
|
-
this.singleValue = dateStr;
|
|
1110
|
-
const event = new CustomEvent('closePopover', {
|
|
1111
|
-
bubbles: true,
|
|
1112
|
-
composed: true,
|
|
1113
|
-
});
|
|
1114
|
-
this.el.dispatchEvent(event);
|
|
1115
|
-
}
|
|
1116
|
-
else if (this.selectionType === 'range' &&
|
|
1117
|
-
this.startDate &&
|
|
1118
|
-
this.endDate) {
|
|
1119
|
-
this.rangeDateChange.emit({
|
|
1120
|
-
start: formatDate(this.startDate, { dateFormat: this.dateFormat }),
|
|
1121
|
-
end: formatDate(this.endDate, { dateFormat: this.dateFormat }),
|
|
1122
|
-
});
|
|
1123
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
1124
|
-
this.rangeValue = {
|
|
1125
|
-
start: formatDate(this.startDate, { dateFormat: this.dateFormat }),
|
|
1126
|
-
end: formatDate(this.endDate, { dateFormat: this.dateFormat }),
|
|
1127
|
-
};
|
|
1128
|
-
const event = new CustomEvent('closePopover', {
|
|
1129
|
-
bubbles: true,
|
|
1130
|
-
composed: true,
|
|
1131
|
-
});
|
|
1132
|
-
this.el.dispatchEvent(event);
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
//#endregion METHODS
|
|
1136
|
-
/****************************************************************************/
|
|
1137
|
-
//#region RENDER
|
|
1138
|
-
/**
|
|
1139
|
-
* Renders the header
|
|
1140
|
-
* @param {number} offset - Month offset
|
|
1141
|
-
* @param {number} index - Calendar index
|
|
1142
|
-
* @returns {JSX.Element} Header
|
|
1143
|
-
* @description Renders the header of the calendar
|
|
1144
|
-
*/
|
|
1145
|
-
this.renderHeader = (offset, index) => {
|
|
1146
|
-
return (h(CalendarHeader, { currentDate: this.currentDate, months: this.months, numberOfCalendars: this.numberOfCalendars, calendarIndex: index, monthOffset: offset, onMonthChange: this.changeMonth, onMonthSelect: this.handleMonthChange, onYearChange: this.handleYearChange }));
|
|
1147
|
-
};
|
|
1148
|
-
/**
|
|
1149
|
-
* Renders the week numbers
|
|
1150
|
-
* @param {Array<{date: Date}>} weeks - Weeks to render
|
|
1151
|
-
* @param {number} index - Calendar index
|
|
1152
|
-
* @returns {JSX.Element} Week numbers
|
|
1153
|
-
* @description Renders the week numbers of the calendar
|
|
1154
|
-
*/
|
|
1155
|
-
this.renderWeekNumbers = (
|
|
1156
|
-
/** Weeks to render */
|
|
1157
|
-
weeks,
|
|
1158
|
-
/** Calendar index */
|
|
1159
|
-
index) => {
|
|
1160
|
-
return (h(WeekNumbers, { weeks: weeks, localizedWeekText: this.getLocalizedWeekText(), selectionType: this.selectionType, onWeekSelect: this.handleWeekSelection, calendarIndex: index }));
|
|
1161
|
-
};
|
|
1162
|
-
/**
|
|
1163
|
-
* Checks if the hover range is valid
|
|
1164
|
-
* @param {Date} startDate - Start date
|
|
1165
|
-
* @param {Date | null} hoverDate - Hovered date
|
|
1166
|
-
* @returns {boolean} true if the hover range is valid
|
|
1167
|
-
*/
|
|
1168
|
-
this.isHoverRangeValidFn = (startDate, hoverDate) => {
|
|
1169
|
-
return isHoverRangeValid(startDate, hoverDate, this.min, this.max, this.parsedDisabledDates, this.dateFormat, this.isUTCMode);
|
|
1170
|
-
};
|
|
1171
|
-
/**
|
|
1172
|
-
* Renders the calendar
|
|
1173
|
-
* @param {number} index - Calendar index
|
|
1174
|
-
* @param {number} offset - Month offset
|
|
1175
|
-
* @returns {JSX.Element} Calendar
|
|
1176
|
-
* @description Renders the calendar of the calendar
|
|
1177
|
-
*/
|
|
1178
|
-
this.renderCalendar = (
|
|
1179
|
-
/** Calendar index */
|
|
1180
|
-
index,
|
|
1181
|
-
/** Month offset */
|
|
1182
|
-
offset) => {
|
|
1183
|
-
const days = this.getDaysInMonth(offset);
|
|
1184
|
-
const weeks = [];
|
|
1185
|
-
for (let i = 0; i < days.length; i += 7) {
|
|
1186
|
-
weeks.push(days.slice(i, i + 7));
|
|
1187
|
-
}
|
|
1188
|
-
// Add year and month to the key to force re-render on date change
|
|
1189
|
-
const targetDate = new Date(this.currentDate);
|
|
1190
|
-
targetDate.setUTCMonth(targetDate.getUTCMonth() + offset);
|
|
1191
|
-
const year = targetDate.getUTCFullYear();
|
|
1192
|
-
const month = targetDate.getUTCMonth();
|
|
1193
|
-
return (h("div", { class: "calendar-wrapper" }, h("div", { class: "calendar-container", key: `calendar-${index}-${year}-${month}` }, this.renderHeader(offset, index), h("div", { class: "calendar-grid" }, this.showWeekNumbers && this.renderWeekNumbers(weeks, index), h(CalendarGrid, { days: days, dayNames: this.getDayNames(), selectionType: this.selectionType, selectedDate: this.selectedDate, startDate: this.startDate, endDate: this.endDate, isUTCMode: this.isUTCMode, onDayClick: this.handleDateSelection, isDateInRange: this.isDateInRange, isToday: this.isToday, onDayHover: this.handleDayHover, onMouseLeave: this.handleMouseLeave, hoverDate: this.hoverDate, isInHoverRange: isInHoverRange, isHoverRangeValid: this.isHoverRangeValidFn }))), index < this.numberOfCalendars - 1 && (h("div", { class: "calendar-separator" }))));
|
|
1194
|
-
};
|
|
1195
|
-
/**
|
|
1196
|
-
* Renders the shortcuts
|
|
1197
|
-
* @returns {JSX.Element} Shortcuts
|
|
1198
|
-
* @description Renders the shortcuts of the calendar
|
|
1199
|
-
*/
|
|
1200
|
-
this.renderShortcuts = () => {
|
|
1201
|
-
if (!this.hasShortcuts) {
|
|
1202
|
-
return null;
|
|
1203
|
-
}
|
|
1204
|
-
return (h(CalendarShortcuts, { shortcuts: this.shortcuts, placement: this.shortcutsPlacement, onShortcutClick: this.applyShortcut }));
|
|
1205
|
-
};
|
|
1206
|
-
/**
|
|
1207
|
-
* Renders the actions
|
|
1208
|
-
* @returns {JSX.Element} Actions
|
|
1209
|
-
* @description Renders the actions of the calendar
|
|
1210
|
-
* @slot actions - Child content of the component.
|
|
1211
|
-
*/
|
|
1212
|
-
this.renderActions = () => {
|
|
1213
|
-
return (h("div", { class: "datepicker-actions" }, h("slot", { name: "actions" }, h(CalendarActions, { onReset: this.resetSelection, onConfirm: this.confirmSelection, cancelLabel: this.cancelLabel, primaryLabel: this.primaryLabel, useSlot: false }))));
|
|
1214
|
-
};
|
|
1215
|
-
}
|
|
1216
|
-
//#endregion EVENTS
|
|
1217
|
-
/****************************************************************************/
|
|
1218
|
-
//#region WATCHERS
|
|
1219
|
-
/**
|
|
1220
|
-
* Watches the changes of the number of calendars
|
|
1221
|
-
* @param {number} newValue - New number of calendars
|
|
1222
|
-
*/
|
|
1223
|
-
validateNumberOfCalendars(newValue) {
|
|
1224
|
-
if (newValue < 1 || newValue > 4) {
|
|
1225
|
-
console.warn('numberOfCalendars must be between 1 and 4. Defaulting to 1.');
|
|
1226
|
-
this.numberOfCalendars = 1;
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
/**
|
|
1230
|
-
* Watches the changes of the selected date range
|
|
1231
|
-
* @param {Object} newValue - New rangeValue value
|
|
1232
|
-
* @param {string} newValue.start - Start date
|
|
1233
|
-
* @param {string} newValue.end - End date
|
|
1234
|
-
*/
|
|
1235
|
-
onRangeValueChange(newValue) {
|
|
1236
|
-
if (newValue && newValue.start && newValue.end) {
|
|
1237
|
-
try {
|
|
1238
|
-
const { startDate, endDate } = this.validateDateRange(newValue.start, newValue.end);
|
|
1239
|
-
this.startDate = startDate;
|
|
1240
|
-
this.endDate = endDate;
|
|
1241
|
-
// Do not navigate to the start date if data-prevent-navigation attribute is present
|
|
1242
|
-
const preventNavigation = this.el.getAttribute('data-prevent-navigation') === 'true';
|
|
1243
|
-
if (!preventNavigation && !this.isUserClick) {
|
|
1244
|
-
this.currentDate = startDate;
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
catch (error) {
|
|
1248
|
-
console.error('Invalid rangeValue:', error);
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* Watches the changes of the disabled dates
|
|
1254
|
-
* @description Watches the changes of the disabled dates
|
|
1255
|
-
*/
|
|
1256
|
-
handleDisabledDatesChange() {
|
|
1257
|
-
this.parseDisabledDates();
|
|
1258
|
-
}
|
|
1259
|
-
/**
|
|
1260
|
-
* Watches the changes of the single value
|
|
1261
|
-
* @param {string} newValue - New single value
|
|
1262
|
-
* @param {string} oldValue - Old single value
|
|
1263
|
-
*/
|
|
1264
|
-
onSingleValueChange(newValue, oldValue) {
|
|
1265
|
-
if (this.selectionType === 'single' && newValue !== oldValue && newValue) {
|
|
1266
|
-
const parsedDate = parseDate(newValue, this.dateFormat);
|
|
1267
|
-
if (parsedDate) {
|
|
1268
|
-
this.selectedDate = parsedDate;
|
|
1269
|
-
// Do not navigate to the selected date if data-prevent-navigation attribute is present
|
|
1270
|
-
const preventNavigation = this.el.getAttribute('data-prevent-navigation') === 'true';
|
|
1271
|
-
if (!preventNavigation && !this.isUserClick) {
|
|
1272
|
-
this.currentDate = parsedDate;
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
/**
|
|
1278
|
-
* Watches the changes of the unified value prop
|
|
1279
|
-
* @param {string} newValue - New value
|
|
1280
|
-
* @param {string} oldValue - Old value
|
|
1281
|
-
*/
|
|
1282
|
-
onValueChange(newValue, oldValue) {
|
|
1283
|
-
if (newValue !== oldValue) {
|
|
1284
|
-
this.parseUnifiedValue(newValue);
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
//#endregion WATCHERS
|
|
1288
|
-
/****************************************************************************/
|
|
1289
|
-
//#region LIFECYCLE
|
|
1290
|
-
componentWillLoad() {
|
|
1291
|
-
this.parseDisabledDates();
|
|
1292
|
-
// Initialize from unified value prop if provided
|
|
1293
|
-
if (this.value) {
|
|
1294
|
-
this.parseUnifiedValue(this.value);
|
|
1295
|
-
}
|
|
1296
|
-
else if (this.selectionType === 'single' && this.singleValue) {
|
|
1297
|
-
this.selectedDate = parseDate(this.singleValue, this.dateFormat);
|
|
1298
|
-
this.currentDate = this.selectedDate;
|
|
1299
|
-
}
|
|
1300
|
-
else if (this.selectionType === 'range' && this.rangeValue) {
|
|
1301
|
-
try {
|
|
1302
|
-
if (this.rangeValue.start && this.rangeValue.end) {
|
|
1303
|
-
const { startDate, endDate, swapped } = this.validateDateRange(this.rangeValue.start, this.rangeValue.end);
|
|
1304
|
-
this.startDate = startDate;
|
|
1305
|
-
this.endDate = endDate;
|
|
1306
|
-
this.currentDate = startDate;
|
|
1307
|
-
if (swapped) {
|
|
1308
|
-
// If dates were swapped, update the rangeValue property
|
|
1309
|
-
// eslint-disable-next-line @stencil-community/strict-mutable
|
|
1310
|
-
this.rangeValue = {
|
|
1311
|
-
start: formatDate(startDate, { dateFormat: this.dateFormat }),
|
|
1312
|
-
end: formatDate(endDate, { dateFormat: this.dateFormat }),
|
|
1313
|
-
};
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
catch (error) {
|
|
1318
|
-
console.error('Invalid rangeValue:', error);
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
// Ensure currentDate is always initialized
|
|
1322
|
-
if (!this.currentDate) {
|
|
1323
|
-
this.currentDate = new Date();
|
|
1324
|
-
}
|
|
1325
|
-
this.initializeMonths();
|
|
1326
|
-
}
|
|
1327
|
-
//#endregion LIFECYCLE
|
|
1328
|
-
/****************************************************************************/
|
|
1329
|
-
//#region METHODS
|
|
1330
|
-
/**
|
|
1331
|
-
* Checks if shortcuts are visible
|
|
1332
|
-
* @returns {boolean} true if shortcuts are visible
|
|
1333
|
-
*/
|
|
1334
|
-
get hasShortcuts() {
|
|
1335
|
-
return Boolean(this.shortcutsPlacement && this.shortcuts);
|
|
1336
|
-
}
|
|
1337
|
-
/**
|
|
1338
|
-
* Checks if actions are visible
|
|
1339
|
-
* @returns {boolean} true if actions are visible
|
|
1340
|
-
*/
|
|
1341
|
-
get hasActions() {
|
|
1342
|
-
return this.showActions;
|
|
1343
|
-
}
|
|
1344
|
-
/**
|
|
1345
|
-
* Checks if the date format is in UTC mode
|
|
1346
|
-
* @returns {boolean} true if the date format is in UTC mode
|
|
1347
|
-
*/
|
|
1348
|
-
get isUTCMode() {
|
|
1349
|
-
return this.dateFormat.includes('Z');
|
|
1350
|
-
}
|
|
1351
|
-
/**
|
|
1352
|
-
* Validates and processes a date range, warning if start is after end
|
|
1353
|
-
* @param {string} startDateStr - Start date in ISO string format
|
|
1354
|
-
* @param {string} endDateStr - End date in ISO string format
|
|
1355
|
-
* @returns {object} Object containing the validated start and end dates
|
|
1356
|
-
*/
|
|
1357
|
-
validateDateRange(startDateStr, endDateStr) {
|
|
1358
|
-
try {
|
|
1359
|
-
const startDate = parseDate(startDateStr, this.dateFormat);
|
|
1360
|
-
const endDate = parseDate(endDateStr, this.dateFormat);
|
|
1361
|
-
if (startDate && endDate && startDate > endDate) {
|
|
1362
|
-
console.warn(`Warning: startDate (${formatDate(startDate, {
|
|
1363
|
-
dateFormat: this.dateFormat,
|
|
1364
|
-
})}) is after endDate (${formatDate(endDate, {
|
|
1365
|
-
dateFormat: this.dateFormat,
|
|
1366
|
-
})})`);
|
|
1367
|
-
// Return dates in correct order, with swapped flag
|
|
1368
|
-
return {
|
|
1369
|
-
startDate: endDate,
|
|
1370
|
-
endDate: startDate,
|
|
1371
|
-
swapped: true,
|
|
1372
|
-
};
|
|
1373
|
-
}
|
|
1374
|
-
return {
|
|
1375
|
-
startDate,
|
|
1376
|
-
endDate,
|
|
1377
|
-
swapped: false,
|
|
1378
|
-
};
|
|
1379
|
-
}
|
|
1380
|
-
catch (error) {
|
|
1381
|
-
console.error('Invalid date range:', error);
|
|
1382
|
-
throw error; // Re-throw to let the caller handle it
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
/**
|
|
1386
|
-
* Clears the current selection and resets the calendar to its initial state.
|
|
1387
|
-
* This method can be called programmatically to reset the calendar.
|
|
1388
|
-
*/
|
|
1389
|
-
async clear() {
|
|
1390
|
-
if (this.selectionType === 'single') {
|
|
1391
|
-
this.selectedDate = null;
|
|
1392
|
-
this.singleValue = '';
|
|
1393
|
-
this.value = '';
|
|
1394
|
-
this.singleDateChange.emit('');
|
|
1395
|
-
this.valueChanged.emit('');
|
|
1396
|
-
}
|
|
1397
|
-
else {
|
|
1398
|
-
this.startDate = null;
|
|
1399
|
-
this.endDate = null;
|
|
1400
|
-
this.rangeValue = { start: '', end: '' };
|
|
1401
|
-
this.value = '';
|
|
1402
|
-
this.rangeDateChange.emit({ start: '', end: '' });
|
|
1403
|
-
this.valueChanged.emit('');
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
/**
|
|
1407
|
-
* Renders the datepicker
|
|
1408
|
-
* @returns {JSX.Element} Datepicker
|
|
1409
|
-
* @description Renders the datepicker of the calendar
|
|
1410
|
-
* @slot default - Child content of the component.
|
|
1411
|
-
*/
|
|
1412
|
-
render() {
|
|
1413
|
-
return (h(Host, { key: '18793334c6b01685f8c42acb0709bb3b35a1d466' }, h("div", { key: '2fa622b5027d4fc94732e0826fac044056e8bca1', class: "datepicker-root" }, h("div", { key: '4c88d823b5a720d3529bc199014b5e498ba1a701', class: `datepicker-container ${this.numberOfCalendars === 1 ? 'datepicker-container-single' : ''}` }, h("div", { key: 'e6be82fb79db589171e4db2beb640fb005dd603f', class: `datepicker-wrapper ${this.numberOfCalendars === 1 ? 'single' : ''}` }, this.shortcutsPlacement === 'left' && this.renderShortcuts(), Array.from({ length: this.numberOfCalendars }, (_, index) => this.renderCalendar(index, index)), this.shortcutsPlacement === 'right' && this.renderShortcuts()), ((this.hasShortcuts && this.shortcutsPlacement === 'bottom') ||
|
|
1414
|
-
this.hasActions) && (h("div", { key: '5991593c0ae9128c3dfea099db2864a37105c9a4', class: "datepicker-controls" }, this.shortcutsPlacement === 'bottom' && this.renderShortcuts(), this.hasActions && this.renderActions())))), h("slot", { key: '5e92296fdc3732ea7f241a5ce381e0234330e7a3' })));
|
|
1415
|
-
}
|
|
1416
|
-
get el() { return this; }
|
|
1417
|
-
static get watchers() { return {
|
|
1418
|
-
"numberOfCalendars": ["validateNumberOfCalendars"],
|
|
1419
|
-
"rangeValue": ["onRangeValueChange"],
|
|
1420
|
-
"disabledDates": ["handleDisabledDatesChange"],
|
|
1421
|
-
"singleValue": ["onSingleValueChange"],
|
|
1422
|
-
"value": ["onValueChange"]
|
|
1423
|
-
}; }
|
|
1424
|
-
static get style() { return nvCalendarCss; }
|
|
1425
|
-
}, [260, "nv-calendar", {
|
|
1426
|
-
"firstDayOfWeek": [514, "first-day-of-week"],
|
|
1427
|
-
"numberOfCalendars": [1538, "number-of-calendars"],
|
|
1428
|
-
"value": [1537],
|
|
1429
|
-
"singleValue": [1537, "single-value"],
|
|
1430
|
-
"rangeValue": [1040],
|
|
1431
|
-
"min": [513],
|
|
1432
|
-
"max": [513],
|
|
1433
|
-
"disabledDates": [16],
|
|
1434
|
-
"locale": [513],
|
|
1435
|
-
"dateFormat": [513, "date-format"],
|
|
1436
|
-
"shortcutsPlacement": [513, "shortcuts-placement"],
|
|
1437
|
-
"selectionType": [513, "selection-type"],
|
|
1438
|
-
"showActions": [516, "show-actions"],
|
|
1439
|
-
"shortcuts": [16],
|
|
1440
|
-
"showWeekNumbers": [516, "show-week-numbers"],
|
|
1441
|
-
"cancelLabel": [513, "cancel-label"],
|
|
1442
|
-
"primaryLabel": [513, "primary-label"],
|
|
1443
|
-
"currentDate": [32],
|
|
1444
|
-
"selectedDate": [32],
|
|
1445
|
-
"startDate": [32],
|
|
1446
|
-
"endDate": [32],
|
|
1447
|
-
"hoverDate": [32],
|
|
1448
|
-
"months": [32],
|
|
1449
|
-
"clear": [64]
|
|
1450
|
-
}, undefined, {
|
|
1451
|
-
"numberOfCalendars": ["validateNumberOfCalendars"],
|
|
1452
|
-
"rangeValue": ["onRangeValueChange"],
|
|
1453
|
-
"disabledDates": ["handleDisabledDatesChange"],
|
|
1454
|
-
"singleValue": ["onSingleValueChange"],
|
|
1455
|
-
"value": ["onValueChange"]
|
|
1456
|
-
}]);
|
|
1457
|
-
function defineCustomElement() {
|
|
1458
|
-
if (typeof customElements === "undefined") {
|
|
1459
|
-
return;
|
|
1460
|
-
}
|
|
1461
|
-
const components = ["nv-calendar"];
|
|
1462
|
-
components.forEach(tagName => { switch (tagName) {
|
|
1463
|
-
case "nv-calendar":
|
|
1464
|
-
if (!customElements.get(tagName)) {
|
|
1465
|
-
customElements.define(tagName, NvCalendar);
|
|
1466
|
-
}
|
|
1467
|
-
break;
|
|
1468
|
-
} });
|
|
1469
|
-
}
|
|
1470
|
-
defineCustomElement();
|
|
1471
|
-
|
|
1472
|
-
export { NvCalendar as N, defineCustomElement as d, getDefaultExportFromCjs as g };
|
|
1473
|
-
//# sourceMappingURL=p-B7VlEQVW.js.map
|
|
1474
|
-
|
|
1475
|
-
//# sourceMappingURL=p-B7VlEQVW.js.map
|