akar 1.9.0 → 1.10.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/accordion/accordion-content.cjs +1073 -8
- package/dist/accordion/accordion-content.cjs.map +1 -1
- package/dist/accordion/accordion-content.js +952 -6
- package/dist/accordion/accordion-content.js.map +1 -1
- package/dist/accordion/accordion-header.cjs +5 -8
- package/dist/accordion/accordion-header.cjs.map +1 -1
- package/dist/accordion/accordion-header.js +1 -4
- package/dist/accordion/accordion-header.js.map +1 -1
- package/dist/accordion/accordion-trigger.cjs +63 -8
- package/dist/accordion/accordion-trigger.cjs.map +1 -1
- package/dist/accordion/accordion-trigger.js +54 -5
- package/dist/accordion/accordion-trigger.js.map +1 -1
- package/dist/avatar/avatar-fallback.cjs +51 -6
- package/dist/avatar/avatar-fallback.cjs.map +1 -1
- package/dist/avatar/avatar-fallback.js +37 -4
- package/dist/avatar/avatar-fallback.js.map +1 -1
- package/dist/avatar/avatar-image.cjs +53 -8
- package/dist/avatar/avatar-image.cjs.map +1 -1
- package/dist/avatar/avatar-image.js +50 -5
- package/dist/avatar/avatar-image.js.map +1 -1
- package/dist/calendar/calendar-cell-trigger.cjs +24 -14
- package/dist/calendar/calendar-cell-trigger.cjs.map +1 -1
- package/dist/calendar/calendar-cell-trigger.js +10 -6
- package/dist/calendar/calendar-cell-trigger.js.map +1 -1
- package/dist/calendar/calendar-cell.cjs +1288 -4
- package/dist/calendar/calendar-cell.cjs.map +1 -1
- package/dist/calendar/calendar-cell.js +1072 -4
- package/dist/calendar/calendar-cell.js.map +1 -1
- package/dist/calendar/calendar-grid-body.cjs +2 -2
- package/dist/calendar/calendar-grid-body.cjs.map +1 -1
- package/dist/calendar/calendar-grid-body.js +1 -1
- package/dist/calendar/calendar-grid-head.cjs +2 -2
- package/dist/calendar/calendar-grid-head.cjs.map +1 -1
- package/dist/calendar/calendar-grid-head.js +1 -1
- package/dist/calendar/calendar-grid-row.cjs +2 -2
- package/dist/calendar/calendar-grid-row.cjs.map +1 -1
- package/dist/calendar/calendar-grid-row.js +1 -1
- package/dist/calendar/calendar-grid.cjs +4 -4
- package/dist/calendar/calendar-grid.cjs.map +1 -1
- package/dist/calendar/calendar-grid.js +2 -2
- package/dist/calendar/calendar-head-cell.cjs +2 -2
- package/dist/calendar/calendar-head-cell.cjs.map +1 -1
- package/dist/calendar/calendar-head-cell.js +1 -1
- package/dist/calendar/calendar-header.cjs +2 -2
- package/dist/calendar/calendar-header.cjs.map +1 -1
- package/dist/calendar/calendar-header.js +1 -1
- package/dist/calendar/calendar-heading.cjs +4 -4
- package/dist/calendar/calendar-heading.cjs.map +1 -1
- package/dist/calendar/calendar-heading.js +2 -2
- package/dist/calendar/calendar-next.cjs +4 -4
- package/dist/calendar/calendar-next.cjs.map +1 -1
- package/dist/calendar/calendar-next.js +2 -2
- package/dist/calendar/calendar-prev.cjs +4 -4
- package/dist/calendar/calendar-prev.cjs.map +1 -1
- package/dist/calendar/calendar-prev.js +2 -2
- package/dist/checkbox/checkbox-group-root.cjs +546 -13
- package/dist/checkbox/checkbox-group-root.cjs.map +1 -1
- package/dist/checkbox/checkbox-group-root.js +477 -10
- package/dist/checkbox/checkbox-group-root.js.map +1 -1
- package/dist/checkbox/checkbox-indicator.cjs +279 -10
- package/dist/checkbox/checkbox-indicator.cjs.map +1 -1
- package/dist/checkbox/checkbox-indicator.js +258 -7
- package/dist/checkbox/checkbox-indicator.js.map +1 -1
- package/dist/combobox/combobox-anchor.cjs +88 -6
- package/dist/combobox/combobox-anchor.cjs.map +1 -1
- package/dist/combobox/combobox-anchor.js +69 -5
- package/dist/combobox/combobox-anchor.js.map +1 -1
- package/dist/combobox/combobox-arrow.cjs +2118 -8
- package/dist/combobox/combobox-arrow.cjs.map +1 -1
- package/dist/combobox/combobox-arrow.js +1960 -6
- package/dist/combobox/combobox-arrow.js.map +1 -1
- package/dist/combobox/combobox-cancel.cjs +5 -6
- package/dist/combobox/combobox-cancel.cjs.map +1 -1
- package/dist/combobox/combobox-cancel.js +2 -3
- package/dist/combobox/combobox-cancel.js.map +1 -1
- package/dist/combobox/combobox-content.cjs +66 -12
- package/dist/combobox/combobox-content.cjs.map +1 -1
- package/dist/combobox/combobox-content.js +50 -8
- package/dist/combobox/combobox-content.js.map +1 -1
- package/dist/combobox/combobox-empty.cjs +4 -4
- package/dist/combobox/combobox-empty.cjs.map +1 -1
- package/dist/combobox/combobox-empty.js +2 -2
- package/dist/combobox/combobox-group.cjs +50 -8
- package/dist/combobox/combobox-group.cjs.map +1 -1
- package/dist/combobox/combobox-group.js +35 -5
- package/dist/combobox/combobox-group.js.map +1 -1
- package/dist/combobox/combobox-input.cjs +111 -8
- package/dist/combobox/combobox-input.cjs.map +1 -1
- package/dist/combobox/combobox-input.js +103 -6
- package/dist/combobox/combobox-input.js.map +1 -1
- package/dist/combobox/combobox-item-indicator.cjs +44 -2
- package/dist/combobox/combobox-item-indicator.cjs.map +1 -1
- package/dist/combobox/combobox-item-indicator.js +39 -3
- package/dist/combobox/combobox-item-indicator.js.map +1 -1
- package/dist/combobox/combobox-item.cjs +125 -8
- package/dist/combobox/combobox-item.cjs.map +1 -1
- package/dist/combobox/combobox-item.js +111 -6
- package/dist/combobox/combobox-item.js.map +1 -1
- package/dist/combobox/combobox-label.cjs +4 -6
- package/dist/combobox/combobox-label.cjs.map +1 -1
- package/dist/combobox/combobox-label.js +1 -3
- package/dist/combobox/combobox-label.js.map +1 -1
- package/dist/combobox/combobox-portal.cjs +52 -2
- package/dist/combobox/combobox-portal.cjs.map +1 -1
- package/dist/combobox/combobox-portal.js +47 -3
- package/dist/combobox/combobox-portal.js.map +1 -1
- package/dist/combobox/combobox-separator.cjs +3 -4
- package/dist/combobox/combobox-separator.cjs.map +1 -1
- package/dist/combobox/combobox-separator.js +1 -2
- package/dist/combobox/combobox-separator.js.map +1 -1
- package/dist/combobox/combobox-trigger.cjs +5 -6
- package/dist/combobox/combobox-trigger.cjs.map +1 -1
- package/dist/combobox/combobox-trigger.js +2 -3
- package/dist/combobox/combobox-trigger.js.map +1 -1
- package/dist/combobox/combobox-viewport.cjs +20 -9
- package/dist/combobox/combobox-viewport.cjs.map +1 -1
- package/dist/combobox/combobox-viewport.js +11 -6
- package/dist/combobox/combobox-viewport.js.map +1 -1
- package/dist/combobox/combobox-virtualizer.cjs +242 -4
- package/dist/combobox/combobox-virtualizer.cjs.map +1 -1
- package/dist/combobox/combobox-virtualizer.js +236 -4
- package/dist/combobox/combobox-virtualizer.js.map +1 -1
- package/dist/component/base-separator.cjs +2 -2
- package/dist/component/base-separator.cjs.map +1 -1
- package/dist/component/base-separator.js +1 -1
- package/dist/composables/use-window-splitter-behavior.cjs +86 -9
- package/dist/composables/use-window-splitter-behavior.cjs.map +1 -1
- package/dist/composables/use-window-splitter-behavior.js +46 -5
- package/dist/composables/use-window-splitter-behavior.js.map +1 -1
- package/dist/composables/use-window-splitter-panel-group-behavior.cjs +405 -20
- package/dist/composables/use-window-splitter-panel-group-behavior.cjs.map +1 -1
- package/dist/composables/use-window-splitter-panel-group-behavior.js +314 -7
- package/dist/composables/use-window-splitter-panel-group-behavior.js.map +1 -1
- package/dist/context-menu/context-menu-arrow.cjs +51 -4
- package/dist/context-menu/context-menu-arrow.cjs.map +1 -1
- package/dist/context-menu/context-menu-arrow.js +44 -3
- package/dist/context-menu/context-menu-arrow.js.map +1 -1
- package/dist/context-menu/context-menu-checkbox-item.cjs +1155 -6
- package/dist/context-menu/context-menu-checkbox-item.cjs.map +1 -1
- package/dist/context-menu/context-menu-checkbox-item.js +1028 -5
- package/dist/context-menu/context-menu-checkbox-item.js.map +1 -1
- package/dist/context-menu/context-menu-content.cjs +456 -8
- package/dist/context-menu/context-menu-content.cjs.map +1 -1
- package/dist/context-menu/context-menu-content.js +436 -6
- package/dist/context-menu/context-menu-content.js.map +1 -1
- package/dist/context-menu/context-menu-group.cjs +38 -4
- package/dist/context-menu/context-menu-group.cjs.map +1 -1
- package/dist/context-menu/context-menu-group.js +32 -4
- package/dist/context-menu/context-menu-group.js.map +1 -1
- package/dist/context-menu/context-menu-item-indicator.cjs +4 -4
- package/dist/context-menu/context-menu-item-indicator.cjs.map +1 -1
- package/dist/context-menu/context-menu-item-indicator.js +2 -2
- package/dist/context-menu/context-menu-item.cjs +6 -6
- package/dist/context-menu/context-menu-item.cjs.map +1 -1
- package/dist/context-menu/context-menu-item.js +3 -3
- package/dist/context-menu/context-menu-label.cjs +39 -4
- package/dist/context-menu/context-menu-label.cjs.map +1 -1
- package/dist/context-menu/context-menu-label.js +32 -3
- package/dist/context-menu/context-menu-label.js.map +1 -1
- package/dist/context-menu/context-menu-portal.cjs +45 -2
- package/dist/context-menu/context-menu-portal.cjs.map +1 -1
- package/dist/context-menu/context-menu-portal.js +39 -2
- package/dist/context-menu/context-menu-portal.js.map +1 -1
- package/dist/context-menu/context-menu-radio-group.cjs +63 -6
- package/dist/context-menu/context-menu-radio-group.cjs.map +1 -1
- package/dist/context-menu/context-menu-radio-group.js +49 -4
- package/dist/context-menu/context-menu-radio-group.js.map +1 -1
- package/dist/context-menu/context-menu-radio-item.cjs +67 -6
- package/dist/context-menu/context-menu-radio-item.cjs.map +1 -1
- package/dist/context-menu/context-menu-radio-item.js +60 -5
- package/dist/context-menu/context-menu-radio-item.js.map +1 -1
- package/dist/context-menu/context-menu-separator.cjs +41 -4
- package/dist/context-menu/context-menu-separator.cjs.map +1 -1
- package/dist/context-menu/context-menu-separator.js +35 -4
- package/dist/context-menu/context-menu-separator.js.map +1 -1
- package/dist/context-menu/context-menu-sub-content.cjs +164 -6
- package/dist/context-menu/context-menu-sub-content.cjs.map +1 -1
- package/dist/context-menu/context-menu-sub-content.js +157 -5
- package/dist/context-menu/context-menu-sub-content.js.map +1 -1
- package/dist/context-menu/context-menu-sub-trigger.cjs +197 -4
- package/dist/context-menu/context-menu-sub-trigger.cjs.map +1 -1
- package/dist/context-menu/context-menu-sub-trigger.js +185 -4
- package/dist/context-menu/context-menu-sub-trigger.js.map +1 -1
- package/dist/context-menu/context-menu-sub.cjs +75 -4
- package/dist/context-menu/context-menu-sub.cjs.map +1 -1
- package/dist/context-menu/context-menu-sub.js +63 -4
- package/dist/context-menu/context-menu-sub.js.map +1 -1
- package/dist/context-menu/context-menu-trigger.cjs +15 -11
- package/dist/context-menu/context-menu-trigger.cjs.map +1 -1
- package/dist/context-menu/context-menu-trigger.js +9 -5
- package/dist/context-menu/context-menu-trigger.js.map +1 -1
- package/dist/date-field/date-field-input.cjs +1731 -6
- package/dist/date-field/date-field-input.cjs.map +1 -1
- package/dist/date-field/date-field-input.js +1664 -5
- package/dist/date-field/date-field-input.js.map +1 -1
- package/dist/date-picker/date-picker-anchor.cjs +126 -2
- package/dist/date-picker/date-picker-anchor.cjs.map +1 -1
- package/dist/date-picker/date-picker-anchor.js +109 -3
- package/dist/date-picker/date-picker-anchor.js.map +1 -1
- package/dist/date-picker/date-picker-arrow.cjs +54 -2
- package/dist/date-picker/date-picker-arrow.cjs.map +1 -1
- package/dist/date-picker/date-picker-arrow.js +48 -2
- package/dist/date-picker/date-picker-arrow.js.map +1 -1
- package/dist/date-picker/date-picker-calendar.cjs +22230 -8
- package/dist/date-picker/date-picker-calendar.cjs.map +1 -1
- package/dist/date-picker/date-picker-calendar.js +20829 -5
- package/dist/date-picker/date-picker-calendar.js.map +1 -1
- package/dist/date.cjs +26 -28
- package/dist/date.js +1 -3
- package/dist/index.cjs +309 -695
- package/dist/index.d.cts +734 -731
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +740 -737
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -410
- package/package.json +1 -1
- package/src/radio-group/index.ts +1 -0
- package/src/radio-group/radio-group-item.vue +6 -4
- package/src/roving-focus/roving-focus-group.vue +2 -1
- package/src/select/select-content-impl.vue +12 -3
- package/src/shared/use-date-formatter.ts +1 -1
- package/dist/accordion/accordion-item.cjs +0 -132
- package/dist/accordion/accordion-item.cjs.map +0 -1
- package/dist/accordion/accordion-item.js +0 -120
- package/dist/accordion/accordion-item.js.map +0 -1
- package/dist/accordion/accordion-root.cjs +0 -108
- package/dist/accordion/accordion-root.cjs.map +0 -1
- package/dist/accordion/accordion-root.js +0 -96
- package/dist/accordion/accordion-root.js.map +0 -1
- package/dist/avatar/avatar-root.cjs +0 -54
- package/dist/avatar/avatar-root.cjs.map +0 -1
- package/dist/avatar/avatar-root.js +0 -42
- package/dist/avatar/avatar-root.js.map +0 -1
- package/dist/avatar/utils.cjs +0 -57
- package/dist/avatar/utils.cjs.map +0 -1
- package/dist/avatar/utils.js +0 -51
- package/dist/avatar/utils.js.map +0 -1
- package/dist/calendar/calendar-root.cjs +0 -323
- package/dist/calendar/calendar-root.cjs.map +0 -1
- package/dist/calendar/calendar-root.js +0 -311
- package/dist/calendar/calendar-root.js.map +0 -1
- package/dist/calendar/calendar.utils.cjs +0 -15
- package/dist/calendar/calendar.utils.cjs.map +0 -1
- package/dist/calendar/calendar.utils.js +0 -9
- package/dist/calendar/calendar.utils.js.map +0 -1
- package/dist/calendar/use-calendar.cjs +0 -265
- package/dist/calendar/use-calendar.cjs.map +0 -1
- package/dist/calendar/use-calendar.js +0 -253
- package/dist/calendar/use-calendar.js.map +0 -1
- package/dist/checkbox/checkbox-root.cjs +0 -168
- package/dist/checkbox/checkbox-root.cjs.map +0 -1
- package/dist/checkbox/checkbox-root.js +0 -156
- package/dist/checkbox/checkbox-root.js.map +0 -1
- package/dist/checkbox/utils.cjs +0 -24
- package/dist/checkbox/utils.cjs.map +0 -1
- package/dist/checkbox/utils.js +0 -12
- package/dist/checkbox/utils.js.map +0 -1
- package/dist/collapsible/collapsible-content.cjs +0 -119
- package/dist/collapsible/collapsible-content.cjs.map +0 -1
- package/dist/collapsible/collapsible-content.js +0 -113
- package/dist/collapsible/collapsible-content.js.map +0 -1
- package/dist/collapsible/collapsible-root.cjs +0 -98
- package/dist/collapsible/collapsible-root.cjs.map +0 -1
- package/dist/collapsible/collapsible-root.js +0 -86
- package/dist/collapsible/collapsible-root.js.map +0 -1
- package/dist/collapsible/collapsible-trigger.cjs +0 -65
- package/dist/collapsible/collapsible-trigger.cjs.map +0 -1
- package/dist/collapsible/collapsible-trigger.js +0 -59
- package/dist/collapsible/collapsible-trigger.js.map +0 -1
- package/dist/collection/collection.cjs +0 -81
- package/dist/collection/collection.cjs.map +0 -1
- package/dist/collection/collection.js +0 -75
- package/dist/collection/collection.js.map +0 -1
- package/dist/combobox/combobox-content-impl.cjs +0 -210
- package/dist/combobox/combobox-content-impl.cjs.map +0 -1
- package/dist/combobox/combobox-content-impl.js +0 -198
- package/dist/combobox/combobox-content-impl.js.map +0 -1
- package/dist/combobox/combobox-root.cjs +0 -268
- package/dist/combobox/combobox-root.cjs.map +0 -1
- package/dist/combobox/combobox-root.js +0 -256
- package/dist/combobox/combobox-root.js.map +0 -1
- package/dist/component/arrow.cjs +0 -75
- package/dist/component/arrow.cjs.map +0 -1
- package/dist/component/arrow.js +0 -69
- package/dist/component/arrow.js.map +0 -1
- package/dist/config-provider/config-provider.cjs +0 -70
- package/dist/config-provider/config-provider.cjs.map +0 -1
- package/dist/config-provider/config-provider.js +0 -58
- package/dist/config-provider/config-provider.js.map +0 -1
- package/dist/context-menu/context-menu-root.cjs +0 -80
- package/dist/context-menu/context-menu-root.cjs.map +0 -1
- package/dist/context-menu/context-menu-root.js +0 -68
- package/dist/context-menu/context-menu-root.js.map +0 -1
- package/dist/context-menu/utils.cjs +0 -14
- package/dist/context-menu/utils.cjs.map +0 -1
- package/dist/context-menu/utils.js +0 -8
- package/dist/context-menu/utils.js.map +0 -1
- package/dist/date/calendar.date.cjs +0 -210
- package/dist/date/calendar.date.cjs.map +0 -1
- package/dist/date/calendar.date.js +0 -150
- package/dist/date/calendar.date.js.map +0 -1
- package/dist/date/comparators.cjs +0 -54
- package/dist/date/comparators.cjs.map +0 -1
- package/dist/date/comparators.date.cjs +0 -236
- package/dist/date/comparators.date.cjs.map +0 -1
- package/dist/date/comparators.date.js +0 -146
- package/dist/date/comparators.date.js.map +0 -1
- package/dist/date/comparators.js +0 -42
- package/dist/date/comparators.js.map +0 -1
- package/dist/date/index.cjs +0 -0
- package/dist/date/index.js +0 -0
- package/dist/date/parser.cjs +0 -187
- package/dist/date/parser.cjs.map +0 -1
- package/dist/date/parser.js +0 -158
- package/dist/date/parser.js.map +0 -1
- package/dist/date/parts.cjs +0 -57
- package/dist/date/parts.cjs.map +0 -1
- package/dist/date/parts.js +0 -27
- package/dist/date/parts.js.map +0 -1
- package/dist/date/placeholders.cjs +0 -499
- package/dist/date/placeholders.cjs.map +0 -1
- package/dist/date/placeholders.js +0 -493
- package/dist/date/placeholders.js.map +0 -1
- package/dist/date/segment.cjs +0 -67
- package/dist/date/segment.cjs.map +0 -1
- package/dist/date/segment.js +0 -37
- package/dist/date/segment.js.map +0 -1
- package/dist/date/use-date-field.cjs +0 -707
- package/dist/date/use-date-field.cjs.map +0 -1
- package/dist/date/use-date-field.js +0 -701
- package/dist/date/use-date-field.js.map +0 -1
- package/dist/date/utils.cjs +0 -74
- package/dist/date/utils.cjs.map +0 -1
- package/dist/date/utils.js +0 -56
- package/dist/date/utils.js.map +0 -1
- package/dist/date-field/date-field-root.cjs +0 -293
- package/dist/date-field/date-field-root.cjs.map +0 -1
- package/dist/date-field/date-field-root.js +0 -281
- package/dist/date-field/date-field-root.js.map +0 -1
- package/dist/date-picker/date-picker-cell-trigger.cjs +0 -48
- package/dist/date-picker/date-picker-cell-trigger.cjs.map +0 -1
- package/dist/date-picker/date-picker-cell-trigger.js +0 -42
- package/dist/date-picker/date-picker-cell-trigger.js.map +0 -1
- package/dist/date-picker/date-picker-cell.cjs +0 -44
- package/dist/date-picker/date-picker-cell.cjs.map +0 -1
- package/dist/date-picker/date-picker-cell.js +0 -38
- package/dist/date-picker/date-picker-cell.js.map +0 -1
- package/dist/date-picker/date-picker-close.cjs +0 -40
- package/dist/date-picker/date-picker-close.cjs.map +0 -1
- package/dist/date-picker/date-picker-close.js +0 -34
- package/dist/date-picker/date-picker-close.js.map +0 -1
- package/dist/date-picker/date-picker-content.cjs +0 -154
- package/dist/date-picker/date-picker-content.cjs.map +0 -1
- package/dist/date-picker/date-picker-content.js +0 -148
- package/dist/date-picker/date-picker-content.js.map +0 -1
- package/dist/date-picker/date-picker-field.cjs +0 -64
- package/dist/date-picker/date-picker-field.cjs.map +0 -1
- package/dist/date-picker/date-picker-field.js +0 -58
- package/dist/date-picker/date-picker-field.js.map +0 -1
- package/dist/date-picker/date-picker-grid-body.cjs +0 -40
- package/dist/date-picker/date-picker-grid-body.cjs.map +0 -1
- package/dist/date-picker/date-picker-grid-body.js +0 -34
- package/dist/date-picker/date-picker-grid-body.js.map +0 -1
- package/dist/date-picker/date-picker-grid-head.cjs +0 -40
- package/dist/date-picker/date-picker-grid-head.cjs.map +0 -1
- package/dist/date-picker/date-picker-grid-head.js +0 -34
- package/dist/date-picker/date-picker-grid-head.js.map +0 -1
- package/dist/date-picker/date-picker-grid-row.cjs +0 -40
- package/dist/date-picker/date-picker-grid-row.cjs.map +0 -1
- package/dist/date-picker/date-picker-grid-row.js +0 -34
- package/dist/date-picker/date-picker-grid-row.js.map +0 -1
- package/dist/date-picker/date-picker-grid.cjs +0 -40
- package/dist/date-picker/date-picker-grid.cjs.map +0 -1
- package/dist/date-picker/date-picker-grid.js +0 -34
- package/dist/date-picker/date-picker-grid.js.map +0 -1
- package/dist/date-picker/date-picker-head-cell.cjs +0 -40
- package/dist/date-picker/date-picker-head-cell.cjs.map +0 -1
- package/dist/date-picker/date-picker-head-cell.js +0 -34
- package/dist/date-picker/date-picker-head-cell.js.map +0 -1
- package/dist/date-picker/date-picker-header.cjs +0 -40
- package/dist/date-picker/date-picker-header.cjs.map +0 -1
- package/dist/date-picker/date-picker-header.js +0 -34
- package/dist/date-picker/date-picker-header.js.map +0 -1
- package/dist/date-picker/date-picker-heading.cjs +0 -40
- package/dist/date-picker/date-picker-heading.cjs.map +0 -1
- package/dist/date-picker/date-picker-heading.js +0 -34
- package/dist/date-picker/date-picker-heading.js.map +0 -1
- package/dist/date-picker/date-picker-input.cjs +0 -44
- package/dist/date-picker/date-picker-input.cjs.map +0 -1
- package/dist/date-picker/date-picker-input.js +0 -38
- package/dist/date-picker/date-picker-input.js.map +0 -1
- package/dist/date-picker/date-picker-next.cjs +0 -44
- package/dist/date-picker/date-picker-next.cjs.map +0 -1
- package/dist/date-picker/date-picker-next.js +0 -38
- package/dist/date-picker/date-picker-next.js.map +0 -1
- package/dist/date-picker/date-picker-prev.cjs +0 -44
- package/dist/date-picker/date-picker-prev.cjs.map +0 -1
- package/dist/date-picker/date-picker-prev.js +0 -38
- package/dist/date-picker/date-picker-prev.js.map +0 -1
- package/dist/date-picker/date-picker-root.cjs +0 -257
- package/dist/date-picker/date-picker-root.cjs.map +0 -1
- package/dist/date-picker/date-picker-root.js +0 -245
- package/dist/date-picker/date-picker-root.js.map +0 -1
- package/dist/date-picker/date-picker-trigger.cjs +0 -47
- package/dist/date-picker/date-picker-trigger.cjs.map +0 -1
- package/dist/date-picker/date-picker-trigger.js +0 -41
- package/dist/date-picker/date-picker-trigger.js.map +0 -1
- package/dist/date-range-field/date-range-field-input.cjs +0 -102
- package/dist/date-range-field/date-range-field-input.cjs.map +0 -1
- package/dist/date-range-field/date-range-field-input.js +0 -96
- package/dist/date-range-field/date-range-field-input.js.map +0 -1
- package/dist/date-range-field/date-range-field-root.cjs +0 -359
- package/dist/date-range-field/date-range-field-root.cjs.map +0 -1
- package/dist/date-range-field/date-range-field-root.js +0 -347
- package/dist/date-range-field/date-range-field-root.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-anchor.cjs +0 -44
- package/dist/date-range-picker/date-range-picker-anchor.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-anchor.js +0 -38
- package/dist/date-range-picker/date-range-picker-anchor.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-arrow.cjs +0 -52
- package/dist/date-range-picker/date-range-picker-arrow.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-arrow.js +0 -46
- package/dist/date-range-picker/date-range-picker-arrow.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-calendar.cjs +0 -72
- package/dist/date-range-picker/date-range-picker-calendar.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-calendar.js +0 -66
- package/dist/date-range-picker/date-range-picker-calendar.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-cell-trigger.cjs +0 -49
- package/dist/date-range-picker/date-range-picker-cell-trigger.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-cell-trigger.js +0 -43
- package/dist/date-range-picker/date-range-picker-cell-trigger.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-cell.cjs +0 -44
- package/dist/date-range-picker/date-range-picker-cell.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-cell.js +0 -38
- package/dist/date-range-picker/date-range-picker-cell.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-close.cjs +0 -40
- package/dist/date-range-picker/date-range-picker-close.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-close.js +0 -34
- package/dist/date-range-picker/date-range-picker-close.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-content.cjs +0 -154
- package/dist/date-range-picker/date-range-picker-content.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-content.js +0 -148
- package/dist/date-range-picker/date-range-picker-content.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-field.cjs +0 -63
- package/dist/date-range-picker/date-range-picker-field.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-field.js +0 -57
- package/dist/date-range-picker/date-range-picker-field.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-grid-body.cjs +0 -40
- package/dist/date-range-picker/date-range-picker-grid-body.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-grid-body.js +0 -34
- package/dist/date-range-picker/date-range-picker-grid-body.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-grid-head.cjs +0 -40
- package/dist/date-range-picker/date-range-picker-grid-head.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-grid-head.js +0 -34
- package/dist/date-range-picker/date-range-picker-grid-head.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-grid-row.cjs +0 -40
- package/dist/date-range-picker/date-range-picker-grid-row.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-grid-row.js +0 -34
- package/dist/date-range-picker/date-range-picker-grid-row.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-grid.cjs +0 -40
- package/dist/date-range-picker/date-range-picker-grid.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-grid.js +0 -34
- package/dist/date-range-picker/date-range-picker-grid.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-head-cell.cjs +0 -40
- package/dist/date-range-picker/date-range-picker-head-cell.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-head-cell.js +0 -34
- package/dist/date-range-picker/date-range-picker-head-cell.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-header.cjs +0 -40
- package/dist/date-range-picker/date-range-picker-header.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-header.js +0 -34
- package/dist/date-range-picker/date-range-picker-header.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-heading.cjs +0 -40
- package/dist/date-range-picker/date-range-picker-heading.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-heading.js +0 -34
- package/dist/date-range-picker/date-range-picker-heading.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-input.cjs +0 -48
- package/dist/date-range-picker/date-range-picker-input.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-input.js +0 -42
- package/dist/date-range-picker/date-range-picker-input.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-next.cjs +0 -44
- package/dist/date-range-picker/date-range-picker-next.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-next.js +0 -38
- package/dist/date-range-picker/date-range-picker-next.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-prev.cjs +0 -44
- package/dist/date-range-picker/date-range-picker-prev.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-prev.js +0 -38
- package/dist/date-range-picker/date-range-picker-prev.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-root.cjs +0 -293
- package/dist/date-range-picker/date-range-picker-root.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-root.js +0 -281
- package/dist/date-range-picker/date-range-picker-root.js.map +0 -1
- package/dist/date-range-picker/date-range-picker-trigger.cjs +0 -47
- package/dist/date-range-picker/date-range-picker-trigger.cjs.map +0 -1
- package/dist/date-range-picker/date-range-picker-trigger.js +0 -41
- package/dist/date-range-picker/date-range-picker-trigger.js.map +0 -1
- package/dist/dialog/dialog-close.cjs +0 -48
- package/dist/dialog/dialog-close.cjs.map +0 -1
- package/dist/dialog/dialog-close.js +0 -42
- package/dist/dialog/dialog-close.js.map +0 -1
- package/dist/dialog/dialog-content-impl.cjs +0 -117
- package/dist/dialog/dialog-content-impl.cjs.map +0 -1
- package/dist/dialog/dialog-content-impl.js +0 -111
- package/dist/dialog/dialog-content-impl.js.map +0 -1
- package/dist/dialog/dialog-content-modal.cjs +0 -91
- package/dist/dialog/dialog-content-modal.cjs.map +0 -1
- package/dist/dialog/dialog-content-modal.js +0 -85
- package/dist/dialog/dialog-content-modal.js.map +0 -1
- package/dist/dialog/dialog-content-non-modal.cjs +0 -93
- package/dist/dialog/dialog-content-non-modal.cjs.map +0 -1
- package/dist/dialog/dialog-content-non-modal.js +0 -87
- package/dist/dialog/dialog-content-non-modal.js.map +0 -1
- package/dist/dialog/dialog-content.cjs +0 -85
- package/dist/dialog/dialog-content.cjs.map +0 -1
- package/dist/dialog/dialog-content.js +0 -79
- package/dist/dialog/dialog-content.js.map +0 -1
- package/dist/dialog/dialog-description.cjs +0 -45
- package/dist/dialog/dialog-description.cjs.map +0 -1
- package/dist/dialog/dialog-description.js +0 -39
- package/dist/dialog/dialog-description.js.map +0 -1
- package/dist/dialog/dialog-overlay-impl.cjs +0 -54
- package/dist/dialog/dialog-overlay-impl.cjs.map +0 -1
- package/dist/dialog/dialog-overlay-impl.js +0 -48
- package/dist/dialog/dialog-overlay-impl.js.map +0 -1
- package/dist/dialog/dialog-overlay.cjs +0 -58
- package/dist/dialog/dialog-overlay.cjs.map +0 -1
- package/dist/dialog/dialog-overlay.js +0 -52
- package/dist/dialog/dialog-overlay.js.map +0 -1
- package/dist/dialog/dialog-portal.cjs +0 -48
- package/dist/dialog/dialog-portal.cjs.map +0 -1
- package/dist/dialog/dialog-portal.js +0 -42
- package/dist/dialog/dialog-portal.js.map +0 -1
- package/dist/dialog/dialog-root.cjs +0 -83
- package/dist/dialog/dialog-root.cjs.map +0 -1
- package/dist/dialog/dialog-root.js +0 -71
- package/dist/dialog/dialog-root.js.map +0 -1
- package/dist/dialog/dialog-title.cjs +0 -45
- package/dist/dialog/dialog-title.cjs.map +0 -1
- package/dist/dialog/dialog-title.js +0 -39
- package/dist/dialog/dialog-title.js.map +0 -1
- package/dist/dialog/dialog-trigger.cjs +0 -64
- package/dist/dialog/dialog-trigger.cjs.map +0 -1
- package/dist/dialog/dialog-trigger.js +0 -58
- package/dist/dialog/dialog-trigger.js.map +0 -1
- package/dist/dialog/utils.cjs +0 -32
- package/dist/dialog/utils.cjs.map +0 -1
- package/dist/dialog/utils.js +0 -26
- package/dist/dialog/utils.js.map +0 -1
- package/dist/dismissable-layer/dismissable-layer-branch.cjs +0 -49
- package/dist/dismissable-layer/dismissable-layer-branch.cjs.map +0 -1
- package/dist/dismissable-layer/dismissable-layer-branch.js +0 -43
- package/dist/dismissable-layer/dismissable-layer-branch.js.map +0 -1
- package/dist/dismissable-layer/dismissable-layer.cjs +0 -147
- package/dist/dismissable-layer/dismissable-layer.cjs.map +0 -1
- package/dist/dismissable-layer/dismissable-layer.js +0 -135
- package/dist/dismissable-layer/dismissable-layer.js.map +0 -1
- package/dist/dismissable-layer/utils.cjs +0 -148
- package/dist/dismissable-layer/utils.cjs.map +0 -1
- package/dist/dismissable-layer/utils.js +0 -136
- package/dist/dismissable-layer/utils.js.map +0 -1
- package/dist/drawer/drawer-content.cjs +0 -83
- package/dist/drawer/drawer-content.cjs.map +0 -1
- package/dist/drawer/drawer-content.js +0 -77
- package/dist/drawer/drawer-content.js.map +0 -1
- package/dist/drawer/drawer-handle.cjs +0 -97
- package/dist/drawer/drawer-handle.cjs.map +0 -1
- package/dist/drawer/drawer-handle.js +0 -91
- package/dist/drawer/drawer-handle.js.map +0 -1
- package/dist/drawer/drawer-overlay.cjs +0 -34
- package/dist/drawer/drawer-overlay.cjs.map +0 -1
- package/dist/drawer/drawer-overlay.js +0 -28
- package/dist/drawer/drawer-overlay.js.map +0 -1
- package/dist/drawer/drawer-root-nested.cjs +0 -133
- package/dist/drawer/drawer-root-nested.cjs.map +0 -1
- package/dist/drawer/drawer-root-nested.js +0 -127
- package/dist/drawer/drawer-root-nested.js.map +0 -1
- package/dist/drawer/drawer-root.cjs +0 -170
- package/dist/drawer/drawer-root.cjs.map +0 -1
- package/dist/drawer/drawer-root.js +0 -164
- package/dist/drawer/drawer-root.js.map +0 -1
- package/dist/drawer/drawer.browser.cjs +0 -14
- package/dist/drawer/drawer.browser.cjs.map +0 -1
- package/dist/drawer/drawer.browser.js +0 -8
- package/dist/drawer/drawer.browser.js.map +0 -1
- package/dist/drawer/drawer.constants.cjs +0 -69
- package/dist/drawer/drawer.constants.cjs.map +0 -1
- package/dist/drawer/drawer.constants.js +0 -21
- package/dist/drawer/drawer.constants.js.map +0 -1
- package/dist/drawer/drawer.context.cjs +0 -19
- package/dist/drawer/drawer.context.cjs.map +0 -1
- package/dist/drawer/drawer.context.js +0 -8
- package/dist/drawer/drawer.context.js.map +0 -1
- package/dist/drawer/drawer.controls.cjs +0 -396
- package/dist/drawer/drawer.controls.cjs.map +0 -1
- package/dist/drawer/drawer.controls.js +0 -390
- package/dist/drawer/drawer.controls.js.map +0 -1
- package/dist/drawer/drawer.utils.cjs +0 -109
- package/dist/drawer/drawer.utils.cjs.map +0 -1
- package/dist/drawer/drawer.utils.js +0 -67
- package/dist/drawer/drawer.utils.js.map +0 -1
- package/dist/drawer/use-position-fixed.cjs +0 -86
- package/dist/drawer/use-position-fixed.cjs.map +0 -1
- package/dist/drawer/use-position-fixed.js +0 -80
- package/dist/drawer/use-position-fixed.js.map +0 -1
- package/dist/drawer/use-scale-background.cjs +0 -59
- package/dist/drawer/use-scale-background.cjs.map +0 -1
- package/dist/drawer/use-scale-background.js +0 -53
- package/dist/drawer/use-scale-background.js.map +0 -1
- package/dist/drawer/use-snap-points.cjs +0 -165
- package/dist/drawer/use-snap-points.cjs.map +0 -1
- package/dist/drawer/use-snap-points.js +0 -159
- package/dist/drawer/use-snap-points.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-arrow.cjs +0 -57
- package/dist/dropdown-menu/dropdown-menu-arrow.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-arrow.js +0 -51
- package/dist/dropdown-menu/dropdown-menu-arrow.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-checkbox-item.cjs +0 -61
- package/dist/dropdown-menu/dropdown-menu-checkbox-item.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-checkbox-item.js +0 -55
- package/dist/dropdown-menu/dropdown-menu-checkbox-item.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-content.cjs +0 -160
- package/dist/dropdown-menu/dropdown-menu-content.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-content.js +0 -154
- package/dist/dropdown-menu/dropdown-menu-content.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-group.cjs +0 -42
- package/dist/dropdown-menu/dropdown-menu-group.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-group.js +0 -36
- package/dist/dropdown-menu/dropdown-menu-group.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-item-indicator.cjs +0 -46
- package/dist/dropdown-menu/dropdown-menu-item-indicator.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-item-indicator.js +0 -40
- package/dist/dropdown-menu/dropdown-menu-item-indicator.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-item.cjs +0 -57
- package/dist/dropdown-menu/dropdown-menu-item.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-item.js +0 -51
- package/dist/dropdown-menu/dropdown-menu-item.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-label.cjs +0 -42
- package/dist/dropdown-menu/dropdown-menu-label.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-label.js +0 -36
- package/dist/dropdown-menu/dropdown-menu-label.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-portal.cjs +0 -48
- package/dist/dropdown-menu/dropdown-menu-portal.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-portal.js +0 -42
- package/dist/dropdown-menu/dropdown-menu-portal.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-radio-group.cjs +0 -53
- package/dist/dropdown-menu/dropdown-menu-radio-group.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-radio-group.js +0 -47
- package/dist/dropdown-menu/dropdown-menu-radio-group.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-radio-item.cjs +0 -58
- package/dist/dropdown-menu/dropdown-menu-radio-item.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-radio-item.js +0 -52
- package/dist/dropdown-menu/dropdown-menu-radio-item.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-root.cjs +0 -94
- package/dist/dropdown-menu/dropdown-menu-root.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-root.js +0 -82
- package/dist/dropdown-menu/dropdown-menu-root.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-separator.cjs +0 -42
- package/dist/dropdown-menu/dropdown-menu-separator.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-separator.js +0 -36
- package/dist/dropdown-menu/dropdown-menu-separator.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-sub-content.cjs +0 -128
- package/dist/dropdown-menu/dropdown-menu-sub-content.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-sub-content.js +0 -122
- package/dist/dropdown-menu/dropdown-menu-sub-content.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-sub-trigger.cjs +0 -50
- package/dist/dropdown-menu/dropdown-menu-sub-trigger.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-sub-trigger.js +0 -44
- package/dist/dropdown-menu/dropdown-menu-sub-trigger.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-sub.cjs +0 -53
- package/dist/dropdown-menu/dropdown-menu-sub.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-sub.js +0 -47
- package/dist/dropdown-menu/dropdown-menu-sub.js.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-trigger.cjs +0 -101
- package/dist/dropdown-menu/dropdown-menu-trigger.cjs.map +0 -1
- package/dist/dropdown-menu/dropdown-menu-trigger.js +0 -95
- package/dist/dropdown-menu/dropdown-menu-trigger.js.map +0 -1
- package/dist/editable/editable-area.cjs +0 -59
- package/dist/editable/editable-area.cjs.map +0 -1
- package/dist/editable/editable-area.js +0 -53
- package/dist/editable/editable-area.js.map +0 -1
- package/dist/editable/editable-cancel-trigger.cjs +0 -58
- package/dist/editable/editable-cancel-trigger.cjs.map +0 -1
- package/dist/editable/editable-cancel-trigger.js +0 -52
- package/dist/editable/editable-cancel-trigger.js.map +0 -1
- package/dist/editable/editable-edit-trigger.cjs +0 -58
- package/dist/editable/editable-edit-trigger.cjs.map +0 -1
- package/dist/editable/editable-edit-trigger.js +0 -52
- package/dist/editable/editable-edit-trigger.js.map +0 -1
- package/dist/editable/editable-input.cjs +0 -95
- package/dist/editable/editable-input.cjs.map +0 -1
- package/dist/editable/editable-input.js +0 -89
- package/dist/editable/editable-input.js.map +0 -1
- package/dist/editable/editable-preview.cjs +0 -68
- package/dist/editable/editable-preview.cjs.map +0 -1
- package/dist/editable/editable-preview.js +0 -62
- package/dist/editable/editable-preview.js.map +0 -1
- package/dist/editable/editable-root.cjs +0 -244
- package/dist/editable/editable-root.cjs.map +0 -1
- package/dist/editable/editable-root.js +0 -232
- package/dist/editable/editable-root.js.map +0 -1
- package/dist/editable/editable-submit-trigger.cjs +0 -58
- package/dist/editable/editable-submit-trigger.cjs.map +0 -1
- package/dist/editable/editable-submit-trigger.js +0 -52
- package/dist/editable/editable-submit-trigger.js.map +0 -1
- package/dist/focus-scope/focus-scope.cjs +0 -161
- package/dist/focus-scope/focus-scope.cjs.map +0 -1
- package/dist/focus-scope/focus-scope.js +0 -155
- package/dist/focus-scope/focus-scope.js.map +0 -1
- package/dist/focus-scope/stack.cjs +0 -49
- package/dist/focus-scope/stack.cjs.map +0 -1
- package/dist/focus-scope/stack.js +0 -37
- package/dist/focus-scope/stack.js.map +0 -1
- package/dist/focus-scope/utils.cjs +0 -120
- package/dist/focus-scope/utils.cjs.map +0 -1
- package/dist/focus-scope/utils.js +0 -79
- package/dist/focus-scope/utils.js.map +0 -1
- package/dist/hover-card/hover-card-arrow.cjs +0 -57
- package/dist/hover-card/hover-card-arrow.cjs.map +0 -1
- package/dist/hover-card/hover-card-arrow.js +0 -51
- package/dist/hover-card/hover-card-arrow.js.map +0 -1
- package/dist/hover-card/hover-card-content-impl.cjs +0 -199
- package/dist/hover-card/hover-card-content-impl.cjs.map +0 -1
- package/dist/hover-card/hover-card-content-impl.js +0 -193
- package/dist/hover-card/hover-card-content-impl.js.map +0 -1
- package/dist/hover-card/hover-card-content.cjs +0 -133
- package/dist/hover-card/hover-card-content.cjs.map +0 -1
- package/dist/hover-card/hover-card-content.js +0 -127
- package/dist/hover-card/hover-card-content.js.map +0 -1
- package/dist/hover-card/hover-card-portal.cjs +0 -48
- package/dist/hover-card/hover-card-portal.cjs.map +0 -1
- package/dist/hover-card/hover-card-portal.js +0 -42
- package/dist/hover-card/hover-card-portal.js.map +0 -1
- package/dist/hover-card/hover-card-root.cjs +0 -104
- package/dist/hover-card/hover-card-root.cjs.map +0 -1
- package/dist/hover-card/hover-card-root.js +0 -92
- package/dist/hover-card/hover-card-root.js.map +0 -1
- package/dist/hover-card/hover-card-trigger.cjs +0 -76
- package/dist/hover-card/hover-card-trigger.cjs.map +0 -1
- package/dist/hover-card/hover-card-trigger.js +0 -70
- package/dist/hover-card/hover-card-trigger.js.map +0 -1
- package/dist/hover-card/utils.cjs +0 -32
- package/dist/hover-card/utils.cjs.map +0 -1
- package/dist/hover-card/utils.js +0 -20
- package/dist/hover-card/utils.js.map +0 -1
- package/dist/index2.cjs +0 -0
- package/dist/index2.js +0 -0
- package/dist/label/label.cjs +0 -49
- package/dist/label/label.cjs.map +0 -1
- package/dist/label/label.js +0 -43
- package/dist/label/label.js.map +0 -1
- package/dist/listbox/listbox-content.cjs +0 -83
- package/dist/listbox/listbox-content.cjs.map +0 -1
- package/dist/listbox/listbox-content.js +0 -77
- package/dist/listbox/listbox-content.js.map +0 -1
- package/dist/listbox/listbox-filter.cjs +0 -112
- package/dist/listbox/listbox-filter.cjs.map +0 -1
- package/dist/listbox/listbox-filter.js +0 -106
- package/dist/listbox/listbox-filter.js.map +0 -1
- package/dist/listbox/listbox-group-label.cjs +0 -47
- package/dist/listbox/listbox-group-label.cjs.map +0 -1
- package/dist/listbox/listbox-group-label.js +0 -41
- package/dist/listbox/listbox-group-label.js.map +0 -1
- package/dist/listbox/listbox-group.cjs +0 -51
- package/dist/listbox/listbox-group.cjs.map +0 -1
- package/dist/listbox/listbox-group.js +0 -39
- package/dist/listbox/listbox-group.js.map +0 -1
- package/dist/listbox/listbox-item-indicator.cjs +0 -48
- package/dist/listbox/listbox-item-indicator.cjs.map +0 -1
- package/dist/listbox/listbox-item-indicator.js +0 -42
- package/dist/listbox/listbox-item-indicator.js.map +0 -1
- package/dist/listbox/listbox-item.cjs +0 -129
- package/dist/listbox/listbox-item.cjs.map +0 -1
- package/dist/listbox/listbox-item.js +0 -117
- package/dist/listbox/listbox-item.js.map +0 -1
- package/dist/listbox/listbox-root.cjs +0 -369
- package/dist/listbox/listbox-root.cjs.map +0 -1
- package/dist/listbox/listbox-root.js +0 -357
- package/dist/listbox/listbox-root.js.map +0 -1
- package/dist/listbox/listbox-virtualizer.cjs +0 -252
- package/dist/listbox/listbox-virtualizer.cjs.map +0 -1
- package/dist/listbox/listbox-virtualizer.js +0 -246
- package/dist/listbox/listbox-virtualizer.js.map +0 -1
- package/dist/listbox/utils.cjs +0 -48
- package/dist/listbox/utils.cjs.map +0 -1
- package/dist/listbox/utils.js +0 -30
- package/dist/listbox/utils.js.map +0 -1
- package/dist/menu/menu-anchor.cjs +0 -44
- package/dist/menu/menu-anchor.cjs.map +0 -1
- package/dist/menu/menu-anchor.js +0 -38
- package/dist/menu/menu-anchor.js.map +0 -1
- package/dist/menu/menu-arrow.cjs +0 -52
- package/dist/menu/menu-arrow.cjs.map +0 -1
- package/dist/menu/menu-arrow.js +0 -46
- package/dist/menu/menu-arrow.js.map +0 -1
- package/dist/menu/menu-checkbox-item.cjs +0 -68
- package/dist/menu/menu-checkbox-item.cjs.map +0 -1
- package/dist/menu/menu-checkbox-item.js +0 -62
- package/dist/menu/menu-checkbox-item.js.map +0 -1
- package/dist/menu/menu-content-impl.cjs +0 -339
- package/dist/menu/menu-content-impl.cjs.map +0 -1
- package/dist/menu/menu-content-impl.js +0 -327
- package/dist/menu/menu-content-impl.js.map +0 -1
- package/dist/menu/menu-content.cjs +0 -145
- package/dist/menu/menu-content.cjs.map +0 -1
- package/dist/menu/menu-content.js +0 -139
- package/dist/menu/menu-content.js.map +0 -1
- package/dist/menu/menu-group.cjs +0 -40
- package/dist/menu/menu-group.cjs.map +0 -1
- package/dist/menu/menu-group.js +0 -34
- package/dist/menu/menu-group.js.map +0 -1
- package/dist/menu/menu-item-impl.cjs +0 -107
- package/dist/menu/menu-item-impl.cjs.map +0 -1
- package/dist/menu/menu-item-impl.js +0 -101
- package/dist/menu/menu-item-impl.js.map +0 -1
- package/dist/menu/menu-item-indicator.cjs +0 -66
- package/dist/menu/menu-item-indicator.cjs.map +0 -1
- package/dist/menu/menu-item-indicator.js +0 -54
- package/dist/menu/menu-item-indicator.js.map +0 -1
- package/dist/menu/menu-item.cjs +0 -96
- package/dist/menu/menu-item.cjs.map +0 -1
- package/dist/menu/menu-item.js +0 -90
- package/dist/menu/menu-item.js.map +0 -1
- package/dist/menu/menu-label.cjs +0 -41
- package/dist/menu/menu-label.cjs.map +0 -1
- package/dist/menu/menu-label.js +0 -35
- package/dist/menu/menu-label.js.map +0 -1
- package/dist/menu/menu-portal.cjs +0 -48
- package/dist/menu/menu-portal.cjs.map +0 -1
- package/dist/menu/menu-portal.js +0 -42
- package/dist/menu/menu-portal.js.map +0 -1
- package/dist/menu/menu-radio-group.cjs +0 -63
- package/dist/menu/menu-radio-group.cjs.map +0 -1
- package/dist/menu/menu-radio-group.js +0 -51
- package/dist/menu/menu-radio-group.js.map +0 -1
- package/dist/menu/menu-radio-item.cjs +0 -68
- package/dist/menu/menu-radio-item.cjs.map +0 -1
- package/dist/menu/menu-radio-item.js +0 -62
- package/dist/menu/menu-radio-item.js.map +0 -1
- package/dist/menu/menu-root-content-modal.cjs +0 -137
- package/dist/menu/menu-root-content-modal.cjs.map +0 -1
- package/dist/menu/menu-root-content-modal.js +0 -131
- package/dist/menu/menu-root-content-modal.js.map +0 -1
- package/dist/menu/menu-root-content-non-modal.cjs +0 -131
- package/dist/menu/menu-root-content-non-modal.cjs.map +0 -1
- package/dist/menu/menu-root-content-non-modal.js +0 -125
- package/dist/menu/menu-root-content-non-modal.js.map +0 -1
- package/dist/menu/menu-root.cjs +0 -95
- package/dist/menu/menu-root.cjs.map +0 -1
- package/dist/menu/menu-root.js +0 -71
- package/dist/menu/menu-root.js.map +0 -1
- package/dist/menu/menu-separator.cjs +0 -43
- package/dist/menu/menu-separator.cjs.map +0 -1
- package/dist/menu/menu-separator.js +0 -37
- package/dist/menu/menu-separator.js.map +0 -1
- package/dist/menu/menu-sub-content.cjs +0 -169
- package/dist/menu/menu-sub-content.cjs.map +0 -1
- package/dist/menu/menu-sub-content.js +0 -163
- package/dist/menu/menu-sub-content.js.map +0 -1
- package/dist/menu/menu-sub-trigger.cjs +0 -163
- package/dist/menu/menu-sub-trigger.cjs.map +0 -1
- package/dist/menu/menu-sub-trigger.js +0 -157
- package/dist/menu/menu-sub-trigger.js.map +0 -1
- package/dist/menu/menu-sub.cjs +0 -78
- package/dist/menu/menu-sub.cjs.map +0 -1
- package/dist/menu/menu-sub.js +0 -66
- package/dist/menu/menu-sub.js.map +0 -1
- package/dist/menu/utils.cjs +0 -141
- package/dist/menu/utils.cjs.map +0 -1
- package/dist/menu/utils.js +0 -70
- package/dist/menu/utils.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-content-impl.cjs +0 -176
- package/dist/navigation-menu/navigation-menu-content-impl.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-content-impl.js +0 -170
- package/dist/navigation-menu/navigation-menu-content-impl.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-content.cjs +0 -101
- package/dist/navigation-menu/navigation-menu-content.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-content.js +0 -95
- package/dist/navigation-menu/navigation-menu-content.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-indicator.cjs +0 -91
- package/dist/navigation-menu/navigation-menu-indicator.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-indicator.js +0 -85
- package/dist/navigation-menu/navigation-menu-indicator.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-item.cjs +0 -137
- package/dist/navigation-menu/navigation-menu-item.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-item.js +0 -125
- package/dist/navigation-menu/navigation-menu-item.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-link.cjs +0 -81
- package/dist/navigation-menu/navigation-menu-link.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-link.js +0 -75
- package/dist/navigation-menu/navigation-menu-link.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-list.cjs +0 -63
- package/dist/navigation-menu/navigation-menu-list.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-list.js +0 -57
- package/dist/navigation-menu/navigation-menu-list.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-root.cjs +0 -199
- package/dist/navigation-menu/navigation-menu-root.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-root.js +0 -181
- package/dist/navigation-menu/navigation-menu-root.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-sub.cjs +0 -120
- package/dist/navigation-menu/navigation-menu-sub.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-sub.js +0 -114
- package/dist/navigation-menu/navigation-menu-sub.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-trigger.cjs +0 -156
- package/dist/navigation-menu/navigation-menu-trigger.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-trigger.js +0 -150
- package/dist/navigation-menu/navigation-menu-trigger.js.map +0 -1
- package/dist/navigation-menu/navigation-menu-viewport.cjs +0 -165
- package/dist/navigation-menu/navigation-menu-viewport.cjs.map +0 -1
- package/dist/navigation-menu/navigation-menu-viewport.js +0 -159
- package/dist/navigation-menu/navigation-menu-viewport.js.map +0 -1
- package/dist/navigation-menu/utils.cjs +0 -114
- package/dist/navigation-menu/utils.cjs.map +0 -1
- package/dist/navigation-menu/utils.js +0 -61
- package/dist/navigation-menu/utils.js.map +0 -1
- package/dist/number-field/number-field-decrement.cjs +0 -75
- package/dist/number-field/number-field-decrement.cjs.map +0 -1
- package/dist/number-field/number-field-decrement.js +0 -69
- package/dist/number-field/number-field-decrement.js.map +0 -1
- package/dist/number-field/number-field-increment.cjs +0 -75
- package/dist/number-field/number-field-increment.cjs.map +0 -1
- package/dist/number-field/number-field-increment.js +0 -69
- package/dist/number-field/number-field-increment.js.map +0 -1
- package/dist/number-field/number-field-input.cjs +0 -123
- package/dist/number-field/number-field-input.cjs.map +0 -1
- package/dist/number-field/number-field-input.js +0 -117
- package/dist/number-field/number-field-input.js.map +0 -1
- package/dist/number-field/number-field-root.cjs +0 -262
- package/dist/number-field/number-field-root.cjs.map +0 -1
- package/dist/number-field/number-field-root.js +0 -250
- package/dist/number-field/number-field-root.js.map +0 -1
- package/dist/number-field/utils.cjs +0 -97
- package/dist/number-field/utils.cjs.map +0 -1
- package/dist/number-field/utils.js +0 -73
- package/dist/number-field/utils.js.map +0 -1
- package/dist/pagination/pagination-ellipsis.cjs +0 -42
- package/dist/pagination/pagination-ellipsis.cjs.map +0 -1
- package/dist/pagination/pagination-ellipsis.js +0 -36
- package/dist/pagination/pagination-ellipsis.js.map +0 -1
- package/dist/pagination/pagination-first.cjs +0 -51
- package/dist/pagination/pagination-first.cjs.map +0 -1
- package/dist/pagination/pagination-first.js +0 -45
- package/dist/pagination/pagination-first.js.map +0 -1
- package/dist/pagination/pagination-last.cjs +0 -51
- package/dist/pagination/pagination-last.cjs.map +0 -1
- package/dist/pagination/pagination-last.js +0 -45
- package/dist/pagination/pagination-last.js.map +0 -1
- package/dist/pagination/pagination-list-item.cjs +0 -65
- package/dist/pagination/pagination-list-item.cjs.map +0 -1
- package/dist/pagination/pagination-list-item.js +0 -59
- package/dist/pagination/pagination-list-item.js.map +0 -1
- package/dist/pagination/pagination-list.cjs +0 -48
- package/dist/pagination/pagination-list.cjs.map +0 -1
- package/dist/pagination/pagination-list.js +0 -42
- package/dist/pagination/pagination-list.js.map +0 -1
- package/dist/pagination/pagination-next.cjs +0 -51
- package/dist/pagination/pagination-next.cjs.map +0 -1
- package/dist/pagination/pagination-next.js +0 -45
- package/dist/pagination/pagination-next.js.map +0 -1
- package/dist/pagination/pagination-prev.cjs +0 -51
- package/dist/pagination/pagination-prev.cjs.map +0 -1
- package/dist/pagination/pagination-prev.js +0 -45
- package/dist/pagination/pagination-prev.js.map +0 -1
- package/dist/pagination/pagination-root.cjs +0 -108
- package/dist/pagination/pagination-root.cjs.map +0 -1
- package/dist/pagination/pagination-root.js +0 -96
- package/dist/pagination/pagination-root.js.map +0 -1
- package/dist/pagination/utils.cjs +0 -86
- package/dist/pagination/utils.cjs.map +0 -1
- package/dist/pagination/utils.js +0 -74
- package/dist/pagination/utils.js.map +0 -1
- package/dist/pin-input/pin-input-input.cjs +0 -223
- package/dist/pin-input/pin-input-input.cjs.map +0 -1
- package/dist/pin-input/pin-input-input.js +0 -217
- package/dist/pin-input/pin-input-input.js.map +0 -1
- package/dist/pin-input/pin-input-root.cjs +0 -158
- package/dist/pin-input/pin-input-root.cjs.map +0 -1
- package/dist/pin-input/pin-input-root.js +0 -146
- package/dist/pin-input/pin-input-root.js.map +0 -1
- package/dist/popover/popover-anchor.cjs +0 -54
- package/dist/popover/popover-anchor.cjs.map +0 -1
- package/dist/popover/popover-anchor.js +0 -48
- package/dist/popover/popover-anchor.js.map +0 -1
- package/dist/popover/popover-arrow.cjs +0 -57
- package/dist/popover/popover-arrow.cjs.map +0 -1
- package/dist/popover/popover-arrow.js +0 -51
- package/dist/popover/popover-arrow.js.map +0 -1
- package/dist/popover/popover-close.cjs +0 -54
- package/dist/popover/popover-close.cjs.map +0 -1
- package/dist/popover/popover-close.js +0 -48
- package/dist/popover/popover-close.js.map +0 -1
- package/dist/popover/popover-content-impl.cjs +0 -173
- package/dist/popover/popover-content-impl.cjs.map +0 -1
- package/dist/popover/popover-content-impl.js +0 -167
- package/dist/popover/popover-content-impl.js.map +0 -1
- package/dist/popover/popover-content-modal.cjs +0 -152
- package/dist/popover/popover-content-modal.cjs.map +0 -1
- package/dist/popover/popover-content-modal.js +0 -146
- package/dist/popover/popover-content-modal.js.map +0 -1
- package/dist/popover/popover-content-non-modal.cjs +0 -154
- package/dist/popover/popover-content-non-modal.cjs.map +0 -1
- package/dist/popover/popover-content-non-modal.js +0 -148
- package/dist/popover/popover-content-non-modal.js.map +0 -1
- package/dist/popover/popover-content.cjs +0 -145
- package/dist/popover/popover-content.cjs.map +0 -1
- package/dist/popover/popover-content.js +0 -139
- package/dist/popover/popover-content.js.map +0 -1
- package/dist/popover/popover-portal.cjs +0 -48
- package/dist/popover/popover-portal.cjs.map +0 -1
- package/dist/popover/popover-portal.js +0 -42
- package/dist/popover/popover-portal.js.map +0 -1
- package/dist/popover/popover-root.cjs +0 -82
- package/dist/popover/popover-root.cjs.map +0 -1
- package/dist/popover/popover-root.js +0 -70
- package/dist/popover/popover-root.js.map +0 -1
- package/dist/popover/popover-trigger.cjs +0 -74
- package/dist/popover/popover-trigger.cjs.map +0 -1
- package/dist/popover/popover-trigger.js +0 -68
- package/dist/popover/popover-trigger.js.map +0 -1
- package/dist/popper/popper-anchor.cjs +0 -55
- package/dist/popper/popper-anchor.cjs.map +0 -1
- package/dist/popper/popper-anchor.js +0 -49
- package/dist/popper/popper-anchor.js.map +0 -1
- package/dist/popper/popper-arrow.cjs +0 -102
- package/dist/popper/popper-arrow.cjs.map +0 -1
- package/dist/popper/popper-arrow.js +0 -96
- package/dist/popper/popper-arrow.js.map +0 -1
- package/dist/popper/popper-content.cjs +0 -285
- package/dist/popper/popper-content.cjs.map +0 -1
- package/dist/popper/popper-content.js +0 -267
- package/dist/popper/popper-content.js.map +0 -1
- package/dist/popper/popper-root.cjs +0 -41
- package/dist/popper/popper-root.cjs.map +0 -1
- package/dist/popper/popper-root.js +0 -29
- package/dist/popper/popper-root.js.map +0 -1
- package/dist/popper/utils.cjs +0 -70
- package/dist/popper/utils.cjs.map +0 -1
- package/dist/popper/utils.js +0 -52
- package/dist/popper/utils.js.map +0 -1
- package/dist/presence/presence.cjs +0 -59
- package/dist/presence/presence.cjs.map +0 -1
- package/dist/presence/presence.js +0 -53
- package/dist/presence/presence.js.map +0 -1
- package/dist/presence/use-presence.cjs +0 -133
- package/dist/presence/use-presence.cjs.map +0 -1
- package/dist/presence/use-presence.js +0 -127
- package/dist/presence/use-presence.js.map +0 -1
- package/dist/primitive/primitive.cjs +0 -39
- package/dist/primitive/primitive.cjs.map +0 -1
- package/dist/primitive/primitive.js +0 -33
- package/dist/primitive/primitive.js.map +0 -1
- package/dist/primitive/slot-primitive.cjs +0 -43
- package/dist/primitive/slot-primitive.cjs.map +0 -1
- package/dist/primitive/slot-primitive.js +0 -37
- package/dist/primitive/slot-primitive.js.map +0 -1
- package/dist/primitive/use-primitive-element.cjs +0 -22
- package/dist/primitive/use-primitive-element.cjs.map +0 -1
- package/dist/primitive/use-primitive-element.js +0 -16
- package/dist/primitive/use-primitive-element.js.map +0 -1
- package/dist/progress/progress-indicator.cjs +0 -52
- package/dist/progress/progress-indicator.cjs.map +0 -1
- package/dist/progress/progress-indicator.js +0 -46
- package/dist/progress/progress-indicator.js.map +0 -1
- package/dist/progress/progress-root.cjs +0 -135
- package/dist/progress/progress-root.cjs.map +0 -1
- package/dist/progress/progress-root.js +0 -123
- package/dist/progress/progress-root.js.map +0 -1
- package/dist/radio-group/radio-group-indicator.cjs +0 -63
- package/dist/radio-group/radio-group-indicator.cjs.map +0 -1
- package/dist/radio-group/radio-group-indicator.js +0 -57
- package/dist/radio-group/radio-group-indicator.js.map +0 -1
- package/dist/radio-group/radio-group-item.cjs +0 -144
- package/dist/radio-group/radio-group-item.cjs.map +0 -1
- package/dist/radio-group/radio-group-item.js +0 -132
- package/dist/radio-group/radio-group-item.js.map +0 -1
- package/dist/radio-group/radio-group-root.cjs +0 -150
- package/dist/radio-group/radio-group-root.cjs.map +0 -1
- package/dist/radio-group/radio-group-root.js +0 -138
- package/dist/radio-group/radio-group-root.js.map +0 -1
- package/dist/radio-group/radio.cjs +0 -132
- package/dist/radio-group/radio.cjs.map +0 -1
- package/dist/radio-group/radio.js +0 -126
- package/dist/radio-group/radio.js.map +0 -1
- package/dist/radio-group/utils.cjs +0 -24
- package/dist/radio-group/utils.cjs.map +0 -1
- package/dist/radio-group/utils.js +0 -19
- package/dist/radio-group/utils.js.map +0 -1
- package/dist/range-calendar/range-calendar-cell-trigger.cjs +0 -268
- package/dist/range-calendar/range-calendar-cell-trigger.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-cell-trigger.js +0 -262
- package/dist/range-calendar/range-calendar-cell-trigger.js.map +0 -1
- package/dist/range-calendar/range-calendar-cell.cjs +0 -59
- package/dist/range-calendar/range-calendar-cell.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-cell.js +0 -53
- package/dist/range-calendar/range-calendar-cell.js.map +0 -1
- package/dist/range-calendar/range-calendar-grid-body.cjs +0 -41
- package/dist/range-calendar/range-calendar-grid-body.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-grid-body.js +0 -35
- package/dist/range-calendar/range-calendar-grid-body.js.map +0 -1
- package/dist/range-calendar/range-calendar-grid-head.cjs +0 -41
- package/dist/range-calendar/range-calendar-grid-head.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-grid-head.js +0 -35
- package/dist/range-calendar/range-calendar-grid-head.js.map +0 -1
- package/dist/range-calendar/range-calendar-grid-row.cjs +0 -41
- package/dist/range-calendar/range-calendar-grid-row.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-grid-row.js +0 -35
- package/dist/range-calendar/range-calendar-grid-row.js.map +0 -1
- package/dist/range-calendar/range-calendar-grid.cjs +0 -57
- package/dist/range-calendar/range-calendar-grid.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-grid.js +0 -51
- package/dist/range-calendar/range-calendar-grid.js.map +0 -1
- package/dist/range-calendar/range-calendar-head-cell.cjs +0 -41
- package/dist/range-calendar/range-calendar-head-cell.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-head-cell.js +0 -35
- package/dist/range-calendar/range-calendar-head-cell.js.map +0 -1
- package/dist/range-calendar/range-calendar-header.cjs +0 -41
- package/dist/range-calendar/range-calendar-header.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-header.js +0 -35
- package/dist/range-calendar/range-calendar-header.js.map +0 -1
- package/dist/range-calendar/range-calendar-heading.cjs +0 -43
- package/dist/range-calendar/range-calendar-heading.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-heading.js +0 -37
- package/dist/range-calendar/range-calendar-heading.js.map +0 -1
- package/dist/range-calendar/range-calendar-next.cjs +0 -60
- package/dist/range-calendar/range-calendar-next.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-next.js +0 -54
- package/dist/range-calendar/range-calendar-next.js.map +0 -1
- package/dist/range-calendar/range-calendar-prev.cjs +0 -60
- package/dist/range-calendar/range-calendar-prev.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-prev.js +0 -54
- package/dist/range-calendar/range-calendar-prev.js.map +0 -1
- package/dist/range-calendar/range-calendar-root.cjs +0 -376
- package/dist/range-calendar/range-calendar-root.cjs.map +0 -1
- package/dist/range-calendar/range-calendar-root.js +0 -364
- package/dist/range-calendar/range-calendar-root.js.map +0 -1
- package/dist/range-calendar/use-range-calendar.cjs +0 -131
- package/dist/range-calendar/use-range-calendar.cjs.map +0 -1
- package/dist/range-calendar/use-range-calendar.js +0 -125
- package/dist/range-calendar/use-range-calendar.js.map +0 -1
- package/dist/roving-focus/roving-focus-group.cjs +0 -155
- package/dist/roving-focus/roving-focus-group.cjs.map +0 -1
- package/dist/roving-focus/roving-focus-group.js +0 -143
- package/dist/roving-focus/roving-focus-group.js.map +0 -1
- package/dist/roving-focus/roving-focus-item.cjs +0 -117
- package/dist/roving-focus/roving-focus-item.cjs.map +0 -1
- package/dist/roving-focus/roving-focus-item.js +0 -111
- package/dist/roving-focus/roving-focus-item.js.map +0 -1
- package/dist/roving-focus/utils.cjs +0 -84
- package/dist/roving-focus/utils.cjs.map +0 -1
- package/dist/roving-focus/utils.js +0 -49
- package/dist/roving-focus/utils.js.map +0 -1
- package/dist/scroll-area/scroll-area-corner-impl.cjs +0 -59
- package/dist/scroll-area/scroll-area-corner-impl.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-corner-impl.js +0 -53
- package/dist/scroll-area/scroll-area-corner-impl.js.map +0 -1
- package/dist/scroll-area/scroll-area-corner.cjs +0 -46
- package/dist/scroll-area/scroll-area-corner.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-corner.js +0 -40
- package/dist/scroll-area/scroll-area-corner.js.map +0 -1
- package/dist/scroll-area/scroll-area-root.cjs +0 -140
- package/dist/scroll-area/scroll-area-root.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-root.js +0 -128
- package/dist/scroll-area/scroll-area-root.js.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-auto.cjs +0 -58
- package/dist/scroll-area/scroll-area-scrollbar-auto.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-auto.js +0 -52
- package/dist/scroll-area/scroll-area-scrollbar-auto.js.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-hover.cjs +0 -71
- package/dist/scroll-area/scroll-area-scrollbar-hover.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-hover.js +0 -65
- package/dist/scroll-area/scroll-area-scrollbar-hover.js.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-impl.cjs +0 -128
- package/dist/scroll-area/scroll-area-scrollbar-impl.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-impl.js +0 -122
- package/dist/scroll-area/scroll-area-scrollbar-impl.js.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-scroll.cjs +0 -94
- package/dist/scroll-area/scroll-area-scrollbar-scroll.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-scroll.js +0 -88
- package/dist/scroll-area/scroll-area-scrollbar-scroll.js.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-visible.cjs +0 -119
- package/dist/scroll-area/scroll-area-scrollbar-visible.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-visible.js +0 -107
- package/dist/scroll-area/scroll-area-scrollbar-visible.js.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-x.cjs +0 -51
- package/dist/scroll-area/scroll-area-scrollbar-x.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-x.js +0 -45
- package/dist/scroll-area/scroll-area-scrollbar-x.js.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-y.cjs +0 -52
- package/dist/scroll-area/scroll-area-scrollbar-y.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar-y.js +0 -46
- package/dist/scroll-area/scroll-area-scrollbar-y.js.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar.cjs +0 -104
- package/dist/scroll-area/scroll-area-scrollbar.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-scrollbar.js +0 -92
- package/dist/scroll-area/scroll-area-scrollbar.js.map +0 -1
- package/dist/scroll-area/scroll-area-thumb.cjs +0 -104
- package/dist/scroll-area/scroll-area-thumb.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-thumb.js +0 -98
- package/dist/scroll-area/scroll-area-thumb.js.map +0 -1
- package/dist/scroll-area/scroll-area-viewport.cjs +0 -82
- package/dist/scroll-area/scroll-area-viewport.cjs.map +0 -1
- package/dist/scroll-area/scroll-area-viewport.js +0 -76
- package/dist/scroll-area/scroll-area-viewport.js.map +0 -1
- package/dist/scroll-area/utils.cjs +0 -117
- package/dist/scroll-area/utils.cjs.map +0 -1
- package/dist/scroll-area/utils.js +0 -75
- package/dist/scroll-area/utils.js.map +0 -1
- package/dist/select/bubble-select.cjs +0 -92
- package/dist/select/bubble-select.cjs.map +0 -1
- package/dist/select/bubble-select.js +0 -86
- package/dist/select/bubble-select.js.map +0 -1
- package/dist/select/select-arrow.cjs +0 -59
- package/dist/select/select-arrow.cjs.map +0 -1
- package/dist/select/select-arrow.js +0 -53
- package/dist/select/select-arrow.js.map +0 -1
- package/dist/select/select-content-impl.cjs +0 -328
- package/dist/select/select-content-impl.cjs.map +0 -1
- package/dist/select/select-content-impl.js +0 -304
- package/dist/select/select-content-impl.js.map +0 -1
- package/dist/select/select-content.cjs +0 -167
- package/dist/select/select-content.cjs.map +0 -1
- package/dist/select/select-content.js +0 -161
- package/dist/select/select-content.js.map +0 -1
- package/dist/select/select-group.cjs +0 -51
- package/dist/select/select-group.cjs.map +0 -1
- package/dist/select/select-group.js +0 -39
- package/dist/select/select-group.js.map +0 -1
- package/dist/select/select-icon.cjs +0 -44
- package/dist/select/select-icon.cjs.map +0 -1
- package/dist/select/select-icon.js +0 -38
- package/dist/select/select-icon.js.map +0 -1
- package/dist/select/select-item-aligned-position.cjs +0 -182
- package/dist/select/select-item-aligned-position.cjs.map +0 -1
- package/dist/select/select-item-aligned-position.js +0 -170
- package/dist/select/select-item-aligned-position.js.map +0 -1
- package/dist/select/select-item-indicator.cjs +0 -46
- package/dist/select/select-item-indicator.cjs.map +0 -1
- package/dist/select/select-item-indicator.js +0 -40
- package/dist/select/select-item-indicator.js.map +0 -1
- package/dist/select/select-item-text.cjs +0 -72
- package/dist/select/select-item-text.cjs.map +0 -1
- package/dist/select/select-item-text.js +0 -66
- package/dist/select/select-item-text.js.map +0 -1
- package/dist/select/select-item.cjs +0 -169
- package/dist/select/select-item.cjs.map +0 -1
- package/dist/select/select-item.js +0 -157
- package/dist/select/select-item.js.map +0 -1
- package/dist/select/select-label.cjs +0 -47
- package/dist/select/select-label.cjs.map +0 -1
- package/dist/select/select-label.js +0 -41
- package/dist/select/select-label.js.map +0 -1
- package/dist/select/select-popper-position.cjs +0 -120
- package/dist/select/select-popper-position.cjs.map +0 -1
- package/dist/select/select-popper-position.js +0 -114
- package/dist/select/select-popper-position.js.map +0 -1
- package/dist/select/select-portal.cjs +0 -48
- package/dist/select/select-portal.cjs.map +0 -1
- package/dist/select/select-portal.js +0 -42
- package/dist/select/select-portal.js.map +0 -1
- package/dist/select/select-provider.cjs +0 -35
- package/dist/select/select-provider.cjs.map +0 -1
- package/dist/select/select-provider.js +0 -29
- package/dist/select/select-provider.js.map +0 -1
- package/dist/select/select-root.cjs +0 -193
- package/dist/select/select-root.cjs.map +0 -1
- package/dist/select/select-root.js +0 -175
- package/dist/select/select-root.js.map +0 -1
- package/dist/select/select-scroll-button-impl.cjs +0 -68
- package/dist/select/select-scroll-button-impl.cjs.map +0 -1
- package/dist/select/select-scroll-button-impl.js +0 -62
- package/dist/select/select-scroll-button-impl.js.map +0 -1
- package/dist/select/select-scroll-down-button.cjs +0 -68
- package/dist/select/select-scroll-down-button.cjs.map +0 -1
- package/dist/select/select-scroll-down-button.js +0 -62
- package/dist/select/select-scroll-down-button.js.map +0 -1
- package/dist/select/select-scroll-up-button.cjs +0 -67
- package/dist/select/select-scroll-up-button.cjs.map +0 -1
- package/dist/select/select-scroll-up-button.js +0 -61
- package/dist/select/select-scroll-up-button.js.map +0 -1
- package/dist/select/select-separator.cjs +0 -40
- package/dist/select/select-separator.cjs.map +0 -1
- package/dist/select/select-separator.js +0 -34
- package/dist/select/select-separator.js.map +0 -1
- package/dist/select/select-trigger.cjs +0 -141
- package/dist/select/select-trigger.cjs.map +0 -1
- package/dist/select/select-trigger.js +0 -135
- package/dist/select/select-trigger.js.map +0 -1
- package/dist/select/select-value.cjs +0 -80
- package/dist/select/select-value.cjs.map +0 -1
- package/dist/select/select-value.js +0 -74
- package/dist/select/select-value.js.map +0 -1
- package/dist/select/select-viewport.cjs +0 -103
- package/dist/select/select-viewport.cjs.map +0 -1
- package/dist/select/select-viewport.js +0 -97
- package/dist/select/select-viewport.js.map +0 -1
- package/dist/select/utils.cjs +0 -66
- package/dist/select/utils.cjs.map +0 -1
- package/dist/select/utils.js +0 -30
- package/dist/select/utils.js.map +0 -1
- package/dist/separator/separator.cjs +0 -49
- package/dist/separator/separator.cjs.map +0 -1
- package/dist/separator/separator.js +0 -43
- package/dist/separator/separator.js.map +0 -1
- package/dist/shared/arrays.cjs +0 -68
- package/dist/shared/arrays.cjs.map +0 -1
- package/dist/shared/arrays.js +0 -50
- package/dist/shared/arrays.js.map +0 -1
- package/dist/shared/create-context.cjs +0 -42
- package/dist/shared/create-context.cjs.map +0 -1
- package/dist/shared/create-context.js +0 -36
- package/dist/shared/create-context.js.map +0 -1
- package/dist/shared/get-active-element.cjs +0 -17
- package/dist/shared/get-active-element.cjs.map +0 -1
- package/dist/shared/get-active-element.js +0 -11
- package/dist/shared/get-active-element.js.map +0 -1
- package/dist/shared/handle-and-dispatch-custom-event.cjs +0 -21
- package/dist/shared/handle-and-dispatch-custom-event.cjs.map +0 -1
- package/dist/shared/handle-and-dispatch-custom-event.js +0 -15
- package/dist/shared/handle-and-dispatch-custom-event.js.map +0 -1
- package/dist/shared/is-value-equal-or-exist.cjs +0 -27
- package/dist/shared/is-value-equal-or-exist.cjs.map +0 -1
- package/dist/shared/is-value-equal-or-exist.js +0 -21
- package/dist/shared/is-value-equal-or-exist.js.map +0 -1
- package/dist/shared/numbers.cjs +0 -71
- package/dist/shared/numbers.cjs.map +0 -1
- package/dist/shared/numbers.js +0 -65
- package/dist/shared/numbers.js.map +0 -1
- package/dist/shared/render-slot-fragments.cjs +0 -20
- package/dist/shared/render-slot-fragments.cjs.map +0 -1
- package/dist/shared/render-slot-fragments.js +0 -14
- package/dist/shared/render-slot-fragments.js.map +0 -1
- package/dist/shared/use-arrow-navigation.cjs +0 -87
- package/dist/shared/use-arrow-navigation.cjs.map +0 -1
- package/dist/shared/use-arrow-navigation.js +0 -81
- package/dist/shared/use-arrow-navigation.js.map +0 -1
- package/dist/shared/use-body-scroll-lock.cjs +0 -105
- package/dist/shared/use-body-scroll-lock.cjs.map +0 -1
- package/dist/shared/use-body-scroll-lock.js +0 -99
- package/dist/shared/use-body-scroll-lock.js.map +0 -1
- package/dist/shared/use-date-formatter.cjs +0 -141
- package/dist/shared/use-date-formatter.cjs.map +0 -1
- package/dist/shared/use-date-formatter.js +0 -135
- package/dist/shared/use-date-formatter.js.map +0 -1
- package/dist/shared/use-direction.cjs +0 -18
- package/dist/shared/use-direction.cjs.map +0 -1
- package/dist/shared/use-direction.js +0 -12
- package/dist/shared/use-direction.js.map +0 -1
- package/dist/shared/use-emit-as-props.cjs +0 -32
- package/dist/shared/use-emit-as-props.cjs.map +0 -1
- package/dist/shared/use-emit-as-props.js +0 -26
- package/dist/shared/use-emit-as-props.js.map +0 -1
- package/dist/shared/use-filter.cjs +0 -64
- package/dist/shared/use-filter.cjs.map +0 -1
- package/dist/shared/use-filter.js +0 -58
- package/dist/shared/use-filter.js.map +0 -1
- package/dist/shared/use-focus-guards.cjs +0 -46
- package/dist/shared/use-focus-guards.cjs.map +0 -1
- package/dist/shared/use-focus-guards.js +0 -40
- package/dist/shared/use-focus-guards.js.map +0 -1
- package/dist/shared/use-form-control.cjs +0 -17
- package/dist/shared/use-form-control.cjs.map +0 -1
- package/dist/shared/use-form-control.js +0 -11
- package/dist/shared/use-form-control.js.map +0 -1
- package/dist/shared/use-forward-expose.cjs +0 -54
- package/dist/shared/use-forward-expose.cjs.map +0 -1
- package/dist/shared/use-forward-expose.js +0 -48
- package/dist/shared/use-forward-expose.js.map +0 -1
- package/dist/shared/use-forward-props-emits.cjs +0 -36
- package/dist/shared/use-forward-props-emits.cjs.map +0 -1
- package/dist/shared/use-forward-props-emits.js +0 -30
- package/dist/shared/use-forward-props-emits.js.map +0 -1
- package/dist/shared/use-forward-props.cjs +0 -44
- package/dist/shared/use-forward-props.cjs.map +0 -1
- package/dist/shared/use-forward-props.js +0 -38
- package/dist/shared/use-forward-props.js.map +0 -1
- package/dist/shared/use-grace-area.cjs +0 -212
- package/dist/shared/use-grace-area.cjs.map +0 -1
- package/dist/shared/use-grace-area.js +0 -206
- package/dist/shared/use-grace-area.js.map +0 -1
- package/dist/shared/use-hide-others.cjs +0 -32
- package/dist/shared/use-hide-others.cjs.map +0 -1
- package/dist/shared/use-hide-others.js +0 -26
- package/dist/shared/use-hide-others.js.map +0 -1
- package/dist/shared/use-id.cjs +0 -30
- package/dist/shared/use-id.cjs.map +0 -1
- package/dist/shared/use-id.js +0 -24
- package/dist/shared/use-id.js.map +0 -1
- package/dist/shared/use-is-using-keyboard.cjs +0 -33
- package/dist/shared/use-is-using-keyboard.cjs.map +0 -1
- package/dist/shared/use-is-using-keyboard.js +0 -27
- package/dist/shared/use-is-using-keyboard.js.map +0 -1
- package/dist/shared/use-locale.cjs +0 -18
- package/dist/shared/use-locale.cjs.map +0 -1
- package/dist/shared/use-locale.js +0 -12
- package/dist/shared/use-locale.js.map +0 -1
- package/dist/shared/use-nonce.cjs +0 -18
- package/dist/shared/use-nonce.cjs.map +0 -1
- package/dist/shared/use-nonce.js +0 -12
- package/dist/shared/use-nonce.js.map +0 -1
- package/dist/shared/use-selection-behavior.cjs +0 -71
- package/dist/shared/use-selection-behavior.cjs.map +0 -1
- package/dist/shared/use-selection-behavior.js +0 -65
- package/dist/shared/use-selection-behavior.js.map +0 -1
- package/dist/shared/use-single-or-multiple-value.cjs +0 -69
- package/dist/shared/use-single-or-multiple-value.cjs.map +0 -1
- package/dist/shared/use-single-or-multiple-value.js +0 -63
- package/dist/shared/use-single-or-multiple-value.js.map +0 -1
- package/dist/shared/use-size.cjs +0 -63
- package/dist/shared/use-size.cjs.map +0 -1
- package/dist/shared/use-size.js +0 -57
- package/dist/shared/use-size.js.map +0 -1
- package/dist/shared/use-state-machine.cjs +0 -38
- package/dist/shared/use-state-machine.cjs.map +0 -1
- package/dist/shared/use-state-machine.js +0 -32
- package/dist/shared/use-state-machine.js.map +0 -1
- package/dist/shared/use-typeahead.cjs +0 -80
- package/dist/shared/use-typeahead.cjs.map +0 -1
- package/dist/shared/use-typeahead.js +0 -68
- package/dist/shared/use-typeahead.js.map +0 -1
- package/dist/slider/slider-horizontal.cjs +0 -119
- package/dist/slider/slider-horizontal.cjs.map +0 -1
- package/dist/slider/slider-horizontal.js +0 -113
- package/dist/slider/slider-horizontal.js.map +0 -1
- package/dist/slider/slider-impl.cjs +0 -85
- package/dist/slider/slider-impl.cjs.map +0 -1
- package/dist/slider/slider-impl.js +0 -79
- package/dist/slider/slider-impl.js.map +0 -1
- package/dist/slider/slider-range.cjs +0 -64
- package/dist/slider/slider-range.cjs.map +0 -1
- package/dist/slider/slider-range.js +0 -58
- package/dist/slider/slider-range.js.map +0 -1
- package/dist/slider/slider-root.cjs +0 -232
- package/dist/slider/slider-root.cjs.map +0 -1
- package/dist/slider/slider-root.js +0 -220
- package/dist/slider/slider-root.js.map +0 -1
- package/dist/slider/slider-thumb-impl.cjs +0 -109
- package/dist/slider/slider-thumb-impl.cjs.map +0 -1
- package/dist/slider/slider-thumb-impl.js +0 -103
- package/dist/slider/slider-thumb-impl.js.map +0 -1
- package/dist/slider/slider-thumb.cjs +0 -46
- package/dist/slider/slider-thumb.cjs.map +0 -1
- package/dist/slider/slider-thumb.js +0 -40
- package/dist/slider/slider-thumb.js.map +0 -1
- package/dist/slider/slider-track.cjs +0 -54
- package/dist/slider/slider-track.cjs.map +0 -1
- package/dist/slider/slider-track.js +0 -48
- package/dist/slider/slider-track.js.map +0 -1
- package/dist/slider/slider-vertical.cjs +0 -114
- package/dist/slider/slider-vertical.cjs.map +0 -1
- package/dist/slider/slider-vertical.js +0 -108
- package/dist/slider/slider-vertical.js.map +0 -1
- package/dist/slider/utils.cjs +0 -216
- package/dist/slider/utils.cjs.map +0 -1
- package/dist/slider/utils.js +0 -132
- package/dist/slider/utils.js.map +0 -1
- package/dist/splitter/splitter-group.cjs +0 -423
- package/dist/splitter/splitter-group.cjs.map +0 -1
- package/dist/splitter/splitter-group.js +0 -411
- package/dist/splitter/splitter-group.js.map +0 -1
- package/dist/splitter/splitter-panel.cjs +0 -158
- package/dist/splitter/splitter-panel.cjs.map +0 -1
- package/dist/splitter/splitter-panel.js +0 -152
- package/dist/splitter/splitter-panel.js.map +0 -1
- package/dist/splitter/splitter-resize-handle.cjs +0 -160
- package/dist/splitter/splitter-resize-handle.cjs.map +0 -1
- package/dist/splitter/splitter-resize-handle.js +0 -154
- package/dist/splitter/splitter-resize-handle.js.map +0 -1
- package/dist/stepper/stepper-description.cjs +0 -45
- package/dist/stepper/stepper-description.cjs.map +0 -1
- package/dist/stepper/stepper-description.js +0 -39
- package/dist/stepper/stepper-description.js.map +0 -1
- package/dist/stepper/stepper-indicator.cjs +0 -44
- package/dist/stepper/stepper-indicator.cjs.map +0 -1
- package/dist/stepper/stepper-indicator.js +0 -38
- package/dist/stepper/stepper-indicator.js.map +0 -1
- package/dist/stepper/stepper-item.cjs +0 -106
- package/dist/stepper/stepper-item.cjs.map +0 -1
- package/dist/stepper/stepper-item.js +0 -94
- package/dist/stepper/stepper-item.js.map +0 -1
- package/dist/stepper/stepper-root.cjs +0 -184
- package/dist/stepper/stepper-root.cjs.map +0 -1
- package/dist/stepper/stepper-root.js +0 -172
- package/dist/stepper/stepper-root.js.map +0 -1
- package/dist/stepper/stepper-separator.cjs +0 -58
- package/dist/stepper/stepper-separator.cjs.map +0 -1
- package/dist/stepper/stepper-separator.js +0 -52
- package/dist/stepper/stepper-separator.js.map +0 -1
- package/dist/stepper/stepper-title.cjs +0 -45
- package/dist/stepper/stepper-title.cjs.map +0 -1
- package/dist/stepper/stepper-title.js +0 -39
- package/dist/stepper/stepper-title.js.map +0 -1
- package/dist/stepper/stepper-trigger.cjs +0 -124
- package/dist/stepper/stepper-trigger.cjs.map +0 -1
- package/dist/stepper/stepper-trigger.js +0 -118
- package/dist/stepper/stepper-trigger.js.map +0 -1
- package/dist/switch/switch-root.cjs +0 -145
- package/dist/switch/switch-root.cjs.map +0 -1
- package/dist/switch/switch-root.js +0 -133
- package/dist/switch/switch-root.js.map +0 -1
- package/dist/switch/switch-thumb.cjs +0 -54
- package/dist/switch/switch-thumb.cjs.map +0 -1
- package/dist/switch/switch-thumb.js +0 -48
- package/dist/switch/switch-thumb.js.map +0 -1
- package/dist/tabs/tabs-content.cjs +0 -90
- package/dist/tabs/tabs-content.cjs.map +0 -1
- package/dist/tabs/tabs-content.js +0 -84
- package/dist/tabs/tabs-content.js.map +0 -1
- package/dist/tabs/tabs-indicator.cjs +0 -70
- package/dist/tabs/tabs-indicator.cjs.map +0 -1
- package/dist/tabs/tabs-indicator.js +0 -64
- package/dist/tabs/tabs-indicator.js.map +0 -1
- package/dist/tabs/tabs-list.cjs +0 -74
- package/dist/tabs/tabs-list.cjs.map +0 -1
- package/dist/tabs/tabs-list.js +0 -68
- package/dist/tabs/tabs-list.js.map +0 -1
- package/dist/tabs/tabs-root.cjs +0 -111
- package/dist/tabs/tabs-root.cjs.map +0 -1
- package/dist/tabs/tabs-root.js +0 -99
- package/dist/tabs/tabs-root.js.map +0 -1
- package/dist/tabs/tabs-trigger.cjs +0 -99
- package/dist/tabs/tabs-trigger.cjs.map +0 -1
- package/dist/tabs/tabs-trigger.js +0 -93
- package/dist/tabs/tabs-trigger.js.map +0 -1
- package/dist/tabs/utils.cjs +0 -23
- package/dist/tabs/utils.cjs.map +0 -1
- package/dist/tabs/utils.js +0 -11
- package/dist/tabs/utils.js.map +0 -1
- package/dist/tags-input/tags-input-clear.cjs +0 -53
- package/dist/tags-input/tags-input-clear.cjs.map +0 -1
- package/dist/tags-input/tags-input-clear.js +0 -47
- package/dist/tags-input/tags-input-clear.js.map +0 -1
- package/dist/tags-input/tags-input-input.cjs +0 -153
- package/dist/tags-input/tags-input-input.cjs.map +0 -1
- package/dist/tags-input/tags-input-input.js +0 -147
- package/dist/tags-input/tags-input-input.js.map +0 -1
- package/dist/tags-input/tags-input-item-delete.cjs +0 -67
- package/dist/tags-input/tags-input-item-delete.cjs.map +0 -1
- package/dist/tags-input/tags-input-item-delete.js +0 -61
- package/dist/tags-input/tags-input-item-delete.js.map +0 -1
- package/dist/tags-input/tags-input-item-text.cjs +0 -47
- package/dist/tags-input/tags-input-item-text.cjs.map +0 -1
- package/dist/tags-input/tags-input-item-text.js +0 -41
- package/dist/tags-input/tags-input-item-text.js.map +0 -1
- package/dist/tags-input/tags-input-item.cjs +0 -90
- package/dist/tags-input/tags-input-item.cjs.map +0 -1
- package/dist/tags-input/tags-input-item.js +0 -78
- package/dist/tags-input/tags-input-item.js.map +0 -1
- package/dist/tags-input/tags-input-root.cjs +0 -272
- package/dist/tags-input/tags-input-root.cjs.map +0 -1
- package/dist/tags-input/tags-input-root.js +0 -260
- package/dist/tags-input/tags-input-root.js.map +0 -1
- package/dist/teleport/teleport.cjs +0 -55
- package/dist/teleport/teleport.cjs.map +0 -1
- package/dist/teleport/teleport.js +0 -49
- package/dist/teleport/teleport.js.map +0 -1
- package/dist/time-field/time-field-input.cjs +0 -96
- package/dist/time-field/time-field-input.cjs.map +0 -1
- package/dist/time-field/time-field-input.js +0 -90
- package/dist/time-field/time-field-input.js.map +0 -1
- package/dist/time-field/time-field-root.cjs +0 -313
- package/dist/time-field/time-field-root.cjs.map +0 -1
- package/dist/time-field/time-field-root.js +0 -301
- package/dist/time-field/time-field-root.js.map +0 -1
- package/dist/toast/focus-proxy.cjs +0 -42
- package/dist/toast/focus-proxy.cjs.map +0 -1
- package/dist/toast/focus-proxy.js +0 -36
- package/dist/toast/focus-proxy.js.map +0 -1
- package/dist/toast/toast-action.cjs +0 -59
- package/dist/toast/toast-action.cjs.map +0 -1
- package/dist/toast/toast-action.js +0 -53
- package/dist/toast/toast-action.js.map +0 -1
- package/dist/toast/toast-announce-exclude.cjs +0 -52
- package/dist/toast/toast-announce-exclude.cjs.map +0 -1
- package/dist/toast/toast-announce-exclude.js +0 -46
- package/dist/toast/toast-announce-exclude.js.map +0 -1
- package/dist/toast/toast-announce.cjs +0 -38
- package/dist/toast/toast-announce.cjs.map +0 -1
- package/dist/toast/toast-announce.js +0 -32
- package/dist/toast/toast-announce.js.map +0 -1
- package/dist/toast/toast-close.cjs +0 -53
- package/dist/toast/toast-close.cjs.map +0 -1
- package/dist/toast/toast-close.js +0 -47
- package/dist/toast/toast-close.js.map +0 -1
- package/dist/toast/toast-description.cjs +0 -42
- package/dist/toast/toast-description.cjs.map +0 -1
- package/dist/toast/toast-description.js +0 -36
- package/dist/toast/toast-description.js.map +0 -1
- package/dist/toast/toast-portal.cjs +0 -48
- package/dist/toast/toast-portal.cjs.map +0 -1
- package/dist/toast/toast-portal.js +0 -42
- package/dist/toast/toast-portal.js.map +0 -1
- package/dist/toast/toast-provider.cjs +0 -87
- package/dist/toast/toast-provider.cjs.map +0 -1
- package/dist/toast/toast-provider.js +0 -75
- package/dist/toast/toast-provider.js.map +0 -1
- package/dist/toast/toast-root-impl.cjs +0 -243
- package/dist/toast/toast-root-impl.cjs.map +0 -1
- package/dist/toast/toast-root-impl.js +0 -231
- package/dist/toast/toast-root-impl.js.map +0 -1
- package/dist/toast/toast-root.cjs +0 -150
- package/dist/toast/toast-root.cjs.map +0 -1
- package/dist/toast/toast-root.js +0 -144
- package/dist/toast/toast-root.js.map +0 -1
- package/dist/toast/toast-title.cjs +0 -42
- package/dist/toast/toast-title.cjs.map +0 -1
- package/dist/toast/toast-title.js +0 -36
- package/dist/toast/toast-title.js.map +0 -1
- package/dist/toast/toast-viewport.cjs +0 -186
- package/dist/toast/toast-viewport.cjs.map +0 -1
- package/dist/toast/toast-viewport.js +0 -180
- package/dist/toast/toast-viewport.js.map +0 -1
- package/dist/toast/utils.cjs +0 -101
- package/dist/toast/utils.cjs.map +0 -1
- package/dist/toast/utils.js +0 -47
- package/dist/toast/utils.js.map +0 -1
- package/dist/toggle/toggle.cjs +0 -116
- package/dist/toggle/toggle.cjs.map +0 -1
- package/dist/toggle/toggle.js +0 -110
- package/dist/toggle/toggle.js.map +0 -1
- package/dist/toggle-group/toggle-group-item.cjs +0 -70
- package/dist/toggle-group/toggle-group-item.cjs.map +0 -1
- package/dist/toggle-group/toggle-group-item.js +0 -64
- package/dist/toggle-group/toggle-group-item.js.map +0 -1
- package/dist/toggle-group/toggle-group-root.cjs +0 -140
- package/dist/toggle-group/toggle-group-root.cjs.map +0 -1
- package/dist/toggle-group/toggle-group-root.js +0 -128
- package/dist/toggle-group/toggle-group-root.js.map +0 -1
- package/dist/tooltip/tooltip-arrow.cjs +0 -53
- package/dist/tooltip/tooltip-arrow.cjs.map +0 -1
- package/dist/tooltip/tooltip-arrow.js +0 -47
- package/dist/tooltip/tooltip-arrow.js.map +0 -1
- package/dist/tooltip/tooltip-content-hoverable.cjs +0 -109
- package/dist/tooltip/tooltip-content-hoverable.cjs.map +0 -1
- package/dist/tooltip/tooltip-content-hoverable.js +0 -103
- package/dist/tooltip/tooltip-content-hoverable.js.map +0 -1
- package/dist/tooltip/tooltip-content-impl.cjs +0 -169
- package/dist/tooltip/tooltip-content-impl.cjs.map +0 -1
- package/dist/tooltip/tooltip-content-impl.js +0 -163
- package/dist/tooltip/tooltip-content-impl.js.map +0 -1
- package/dist/tooltip/tooltip-content.cjs +0 -110
- package/dist/tooltip/tooltip-content.cjs.map +0 -1
- package/dist/tooltip/tooltip-content.js +0 -104
- package/dist/tooltip/tooltip-content.js.map +0 -1
- package/dist/tooltip/tooltip-portal.cjs +0 -48
- package/dist/tooltip/tooltip-portal.cjs.map +0 -1
- package/dist/tooltip/tooltip-portal.js +0 -42
- package/dist/tooltip/tooltip-portal.js.map +0 -1
- package/dist/tooltip/tooltip-provider.cjs +0 -90
- package/dist/tooltip/tooltip-provider.cjs.map +0 -1
- package/dist/tooltip/tooltip-provider.js +0 -78
- package/dist/tooltip/tooltip-provider.js.map +0 -1
- package/dist/tooltip/tooltip-root.cjs +0 -144
- package/dist/tooltip/tooltip-root.cjs.map +0 -1
- package/dist/tooltip/tooltip-root.js +0 -132
- package/dist/tooltip/tooltip-root.js.map +0 -1
- package/dist/tooltip/tooltip-trigger.cjs +0 -120
- package/dist/tooltip/tooltip-trigger.cjs.map +0 -1
- package/dist/tooltip/tooltip-trigger.js +0 -114
- package/dist/tooltip/tooltip-trigger.js.map +0 -1
- package/dist/tooltip/utils.cjs +0 -12
- package/dist/tooltip/utils.cjs.map +0 -1
- package/dist/tooltip/utils.js +0 -6
- package/dist/tooltip/utils.js.map +0 -1
- package/dist/tree/tree-item.cjs +0 -189
- package/dist/tree/tree-item.cjs.map +0 -1
- package/dist/tree/tree-item.js +0 -183
- package/dist/tree/tree-item.js.map +0 -1
- package/dist/tree/tree-root.cjs +0 -271
- package/dist/tree/tree-root.cjs.map +0 -1
- package/dist/tree/tree-root.js +0 -259
- package/dist/tree/tree-root.js.map +0 -1
- package/dist/tree/tree-virtualizer.cjs +0 -183
- package/dist/tree/tree-virtualizer.cjs.map +0 -1
- package/dist/tree/tree-virtualizer.js +0 -177
- package/dist/tree/tree-virtualizer.js.map +0 -1
- package/dist/tree/utils.cjs +0 -18
- package/dist/tree/utils.cjs.map +0 -1
- package/dist/tree/utils.js +0 -12
- package/dist/tree/utils.js.map +0 -1
- package/dist/utils/assert.cjs +0 -17
- package/dist/utils/assert.cjs.map +0 -1
- package/dist/utils/assert.js +0 -11
- package/dist/utils/assert.js.map +0 -1
- package/dist/utils/calculate.cjs +0 -130
- package/dist/utils/calculate.cjs.map +0 -1
- package/dist/utils/calculate.js +0 -113
- package/dist/utils/calculate.js.map +0 -1
- package/dist/utils/call-panel-callbacks.cjs +0 -30
- package/dist/utils/call-panel-callbacks.cjs.map +0 -1
- package/dist/utils/call-panel-callbacks.js +0 -25
- package/dist/utils/call-panel-callbacks.js.map +0 -1
- package/dist/utils/compare.cjs +0 -28
- package/dist/utils/compare.cjs.map +0 -1
- package/dist/utils/compare.js +0 -17
- package/dist/utils/compare.js.map +0 -1
- package/dist/utils/constants.cjs +0 -12
- package/dist/utils/constants.cjs.map +0 -1
- package/dist/utils/constants.js +0 -6
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/debounce.cjs +0 -21
- package/dist/utils/debounce.cjs.map +0 -1
- package/dist/utils/debounce.js +0 -15
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/dom.cjs +0 -68
- package/dist/utils/dom.cjs.map +0 -1
- package/dist/utils/dom.js +0 -38
- package/dist/utils/dom.js.map +0 -1
- package/dist/utils/events.cjs +0 -66
- package/dist/utils/events.cjs.map +0 -1
- package/dist/utils/events.js +0 -36
- package/dist/utils/events.js.map +0 -1
- package/dist/utils/layout.cjs +0 -148
- package/dist/utils/layout.cjs.map +0 -1
- package/dist/utils/layout.js +0 -137
- package/dist/utils/layout.js.map +0 -1
- package/dist/utils/pivot.cjs +0 -16
- package/dist/utils/pivot.cjs.map +0 -1
- package/dist/utils/pivot.js +0 -11
- package/dist/utils/pivot.js.map +0 -1
- package/dist/utils/rects.cjs +0 -15
- package/dist/utils/rects.cjs.map +0 -1
- package/dist/utils/rects.js +0 -9
- package/dist/utils/rects.js.map +0 -1
- package/dist/utils/registry.cjs +0 -218
- package/dist/utils/registry.cjs.map +0 -1
- package/dist/utils/registry.js +0 -183
- package/dist/utils/registry.js.map +0 -1
- package/dist/utils/resize-panel.cjs +0 -27
- package/dist/utils/resize-panel.cjs.map +0 -1
- package/dist/utils/resize-panel.js +0 -22
- package/dist/utils/resize-panel.js.map +0 -1
- package/dist/utils/stacking-order.cjs +0 -98
- package/dist/utils/stacking-order.cjs.map +0 -1
- package/dist/utils/stacking-order.js +0 -93
- package/dist/utils/stacking-order.js.map +0 -1
- package/dist/utils/storage.cjs +0 -79
- package/dist/utils/storage.cjs.map +0 -1
- package/dist/utils/storage.js +0 -61
- package/dist/utils/storage.js.map +0 -1
- package/dist/utils/style.cjs +0 -79
- package/dist/utils/style.cjs.map +0 -1
- package/dist/utils/style.js +0 -62
- package/dist/utils/style.js.map +0 -1
- package/dist/utils/validation.cjs +0 -58
- package/dist/utils/validation.cjs.map +0 -1
- package/dist/utils/validation.js +0 -53
- package/dist/utils/validation.js.map +0 -1
- package/dist/viewport/viewport.cjs +0 -68
- package/dist/viewport/viewport.cjs.map +0 -1
- package/dist/viewport/viewport.js +0 -62
- package/dist/viewport/viewport.js.map +0 -1
- package/dist/visually-hidden/visually-hidden-input-bubble.cjs +0 -79
- package/dist/visually-hidden/visually-hidden-input-bubble.cjs.map +0 -1
- package/dist/visually-hidden/visually-hidden-input-bubble.js +0 -73
- package/dist/visually-hidden/visually-hidden-input-bubble.js.map +0 -1
- package/dist/visually-hidden/visually-hidden-input.cjs +0 -93
- package/dist/visually-hidden/visually-hidden-input.cjs.map +0 -1
- package/dist/visually-hidden/visually-hidden-input.js +0 -87
- package/dist/visually-hidden/visually-hidden-input.js.map +0 -1
- package/dist/visually-hidden/visually-hidden.cjs +0 -70
- package/dist/visually-hidden/visually-hidden.cjs.map +0 -1
- package/dist/visually-hidden/visually-hidden.js +0 -64
- package/dist/visually-hidden/visually-hidden.js.map +0 -1
|
@@ -1,8 +1,1667 @@
|
|
|
1
|
-
import { APrimitive } from "../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { computed, createBlock, defineComponent, mergeProps, openBlock, ref, renderSlot, toHandlers, unref, withCtx } from "vue";
|
|
1
|
+
import { APrimitive, createContext, useDirection } from "../accordion/accordion-content.js";
|
|
2
|
+
import { visually_hidden_default } from "../checkbox/checkbox-group-root.js";
|
|
3
|
+
import { getDaysInMonth, getDefaultDate, getOptsByGranularity, hasTime, isDateBefore, isZonedDateTime, normalizeDateStep, toDate, useDateFormatter, useLocale, usePrimitiveElement } from "../calendar/calendar-cell.js";
|
|
4
|
+
import { computed, createBlock, createVNode, defineComponent, mergeProps, nextTick, onMounted, openBlock, ref, renderSlot, toHandlers, toRefs, unref, watch, withCtx, withKeys } from "vue";
|
|
5
|
+
import { useVModel } from "@vueuse/core";
|
|
6
|
+
import { KEY_CODES, isIncludedIn, isNullish } from "@vinicunca/perkakas";
|
|
5
7
|
|
|
8
|
+
//#region src/shared/date/parser.ts
|
|
9
|
+
const calendarDateTimeGranularities = [
|
|
10
|
+
"hour",
|
|
11
|
+
"minute",
|
|
12
|
+
"second"
|
|
13
|
+
];
|
|
14
|
+
function syncTimeSegmentValues(props) {
|
|
15
|
+
return Object.fromEntries(TIME_SEGMENT_PARTS.map((part) => {
|
|
16
|
+
if (part === "dayPeriod") return [part, props.formatter.dayPeriod(toDate(props.value))];
|
|
17
|
+
return [part, props.value[part]];
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
function syncSegmentValues(props) {
|
|
21
|
+
const { formatter } = props;
|
|
22
|
+
const dateValues = DATE_SEGMENT_PARTS.map((part) => {
|
|
23
|
+
return [part, props.value[part]];
|
|
24
|
+
});
|
|
25
|
+
if ("hour" in props.value) {
|
|
26
|
+
const timeValues = syncTimeSegmentValues({
|
|
27
|
+
value: props.value,
|
|
28
|
+
formatter
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
...Object.fromEntries(dateValues),
|
|
32
|
+
...timeValues
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return Object.fromEntries(dateValues);
|
|
36
|
+
}
|
|
37
|
+
function initializeTimeSegmentValues(granularity) {
|
|
38
|
+
return Object.fromEntries(TIME_SEGMENT_PARTS.map((part) => {
|
|
39
|
+
if (part === "dayPeriod") return [part, "AM"];
|
|
40
|
+
return [part, null];
|
|
41
|
+
}).filter(([key]) => {
|
|
42
|
+
if (key === "literal" || key === null) return false;
|
|
43
|
+
if (granularity === "minute" && key === "second") return false;
|
|
44
|
+
if (granularity === "hour" && (key === "second" || key === "minute")) return false;
|
|
45
|
+
else return true;
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
function initializeSegmentValues(granularity) {
|
|
49
|
+
const initialParts = EDITABLE_SEGMENT_PARTS.map((part) => {
|
|
50
|
+
if (part === "dayPeriod") return [part, "AM"];
|
|
51
|
+
return [part, null];
|
|
52
|
+
}).filter(([key]) => {
|
|
53
|
+
if (key === "literal" || key === null) return false;
|
|
54
|
+
if (granularity === "minute" && key === "second") return false;
|
|
55
|
+
if (granularity === "hour" && (key === "second" || key === "minute")) return false;
|
|
56
|
+
if (granularity === "day") return !calendarDateTimeGranularities.includes(key) && key !== "dayPeriod";
|
|
57
|
+
else return true;
|
|
58
|
+
});
|
|
59
|
+
return Object.fromEntries(initialParts);
|
|
60
|
+
}
|
|
61
|
+
function createContentObj(props) {
|
|
62
|
+
const { segmentValues, formatter, locale } = props;
|
|
63
|
+
function getPartContent(part) {
|
|
64
|
+
if ("hour" in segmentValues) {
|
|
65
|
+
const value = segmentValues[part];
|
|
66
|
+
if (value !== null) {
|
|
67
|
+
if (part === "day") return formatter.part({
|
|
68
|
+
dateObj: props.dateRef.set({
|
|
69
|
+
[part]: value,
|
|
70
|
+
month: segmentValues.month ?? 1
|
|
71
|
+
}),
|
|
72
|
+
type: part,
|
|
73
|
+
options: { hourCycle: props.hourCycle === 24 ? "h23" : void 0 }
|
|
74
|
+
});
|
|
75
|
+
return formatter.part({
|
|
76
|
+
dateObj: props.dateRef.set({ [part]: value }),
|
|
77
|
+
type: part,
|
|
78
|
+
options: { hourCycle: props.hourCycle === 24 ? "h23" : void 0 }
|
|
79
|
+
});
|
|
80
|
+
} else return getPlaceholder(part, "", locale.value);
|
|
81
|
+
} else {
|
|
82
|
+
if (isDateSegmentPart(part)) {
|
|
83
|
+
const value = segmentValues[part];
|
|
84
|
+
if (value !== null) {
|
|
85
|
+
if (part === "day" && segmentValues.month !== null) return formatter.part({
|
|
86
|
+
dateObj: props.dateRef.set({
|
|
87
|
+
[part]: value,
|
|
88
|
+
month: segmentValues.month
|
|
89
|
+
}),
|
|
90
|
+
type: part
|
|
91
|
+
});
|
|
92
|
+
if (part === "day") return formatter.part({
|
|
93
|
+
dateObj: props.dateRef.set({
|
|
94
|
+
[part]: value,
|
|
95
|
+
month: segmentValues.month ?? 1
|
|
96
|
+
}),
|
|
97
|
+
type: part
|
|
98
|
+
});
|
|
99
|
+
return formatter.part({
|
|
100
|
+
dateObj: props.dateRef.set({ [part]: value }),
|
|
101
|
+
type: part
|
|
102
|
+
});
|
|
103
|
+
} else return getPlaceholder(part, "", locale.value);
|
|
104
|
+
}
|
|
105
|
+
return "";
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const content = Object.keys(segmentValues).reduce((obj, part) => {
|
|
109
|
+
if (!isSegmentPart(part)) return obj;
|
|
110
|
+
if ("hour" in segmentValues && part === "dayPeriod") {
|
|
111
|
+
const value = segmentValues[part];
|
|
112
|
+
if (value !== null) obj[part] = value;
|
|
113
|
+
else obj[part] = getPlaceholder(part, "AM", locale.value);
|
|
114
|
+
} else obj[part] = getPartContent(part);
|
|
115
|
+
return obj;
|
|
116
|
+
}, {});
|
|
117
|
+
return content;
|
|
118
|
+
}
|
|
119
|
+
function createContentArr(props) {
|
|
120
|
+
const { granularity, formatter, contentObj, hideTimeZone, hourCycle, isTimeValue } = props;
|
|
121
|
+
const parts = formatter.toParts({
|
|
122
|
+
date: props.dateRef,
|
|
123
|
+
options: getOptsByGranularity(granularity, hourCycle, isTimeValue)
|
|
124
|
+
});
|
|
125
|
+
const segmentContentArr = parts.map((part) => {
|
|
126
|
+
const defaultParts = [
|
|
127
|
+
"literal",
|
|
128
|
+
"timeZoneName",
|
|
129
|
+
null
|
|
130
|
+
];
|
|
131
|
+
if (defaultParts.includes(part.type) || !isSegmentPart(part.type)) return {
|
|
132
|
+
part: part.type,
|
|
133
|
+
value: part.value
|
|
134
|
+
};
|
|
135
|
+
return {
|
|
136
|
+
part: part.type,
|
|
137
|
+
value: contentObj[part.type]
|
|
138
|
+
};
|
|
139
|
+
}).filter((segment) => {
|
|
140
|
+
if (segment.part === null || segment.value === null) return false;
|
|
141
|
+
if (segment.part === "timeZoneName" && (!isZonedDateTime(props.dateRef) || hideTimeZone)) return false;
|
|
142
|
+
return true;
|
|
143
|
+
});
|
|
144
|
+
return segmentContentArr;
|
|
145
|
+
}
|
|
146
|
+
function createContent(props) {
|
|
147
|
+
const contentObj = createContentObj(props);
|
|
148
|
+
const contentArr = createContentArr({
|
|
149
|
+
contentObj,
|
|
150
|
+
...props
|
|
151
|
+
});
|
|
152
|
+
return {
|
|
153
|
+
obj: contentObj,
|
|
154
|
+
arr: contentArr
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/shared/date/parts.ts
|
|
160
|
+
const DATE_SEGMENT_PARTS = [
|
|
161
|
+
"day",
|
|
162
|
+
"month",
|
|
163
|
+
"year"
|
|
164
|
+
];
|
|
165
|
+
const TIME_SEGMENT_PARTS = [
|
|
166
|
+
"hour",
|
|
167
|
+
"minute",
|
|
168
|
+
"second",
|
|
169
|
+
"dayPeriod"
|
|
170
|
+
];
|
|
171
|
+
const NON_EDITABLE_SEGMENT_PARTS = ["literal", "timeZoneName"];
|
|
172
|
+
const EDITABLE_SEGMENT_PARTS = [...DATE_SEGMENT_PARTS, ...TIME_SEGMENT_PARTS];
|
|
173
|
+
const EDITABLE_TIME_SEGMENT_PARTS = [...TIME_SEGMENT_PARTS];
|
|
174
|
+
const ALL_SEGMENT_PARTS = [...EDITABLE_SEGMENT_PARTS, ...NON_EDITABLE_SEGMENT_PARTS];
|
|
175
|
+
const ALL_EXCEPT_LITERAL_PARTS = ALL_SEGMENT_PARTS.filter((part) => part !== "literal");
|
|
176
|
+
function isDateSegmentPart(part) {
|
|
177
|
+
return DATE_SEGMENT_PARTS.includes(part);
|
|
178
|
+
}
|
|
179
|
+
function isSegmentPart(part) {
|
|
180
|
+
return EDITABLE_SEGMENT_PARTS.includes(part);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/shared/date/placeholders.ts
|
|
185
|
+
const supportedLocales = [
|
|
186
|
+
"ach",
|
|
187
|
+
"af",
|
|
188
|
+
"am",
|
|
189
|
+
"an",
|
|
190
|
+
"ar",
|
|
191
|
+
"ast",
|
|
192
|
+
"az",
|
|
193
|
+
"be",
|
|
194
|
+
"bg",
|
|
195
|
+
"bn",
|
|
196
|
+
"br",
|
|
197
|
+
"bs",
|
|
198
|
+
"ca",
|
|
199
|
+
"cak",
|
|
200
|
+
"ckb",
|
|
201
|
+
"cs",
|
|
202
|
+
"cy",
|
|
203
|
+
"da",
|
|
204
|
+
"de",
|
|
205
|
+
"dsb",
|
|
206
|
+
"el",
|
|
207
|
+
"en",
|
|
208
|
+
"eo",
|
|
209
|
+
"es",
|
|
210
|
+
"et",
|
|
211
|
+
"eu",
|
|
212
|
+
"fa",
|
|
213
|
+
"ff",
|
|
214
|
+
"fi",
|
|
215
|
+
"fr",
|
|
216
|
+
"fy",
|
|
217
|
+
"ga",
|
|
218
|
+
"gd",
|
|
219
|
+
"gl",
|
|
220
|
+
"he",
|
|
221
|
+
"hr",
|
|
222
|
+
"hsb",
|
|
223
|
+
"hu",
|
|
224
|
+
"ia",
|
|
225
|
+
"id",
|
|
226
|
+
"it",
|
|
227
|
+
"ja",
|
|
228
|
+
"ka",
|
|
229
|
+
"kk",
|
|
230
|
+
"kn",
|
|
231
|
+
"ko",
|
|
232
|
+
"lb",
|
|
233
|
+
"lo",
|
|
234
|
+
"lt",
|
|
235
|
+
"lv",
|
|
236
|
+
"meh",
|
|
237
|
+
"ml",
|
|
238
|
+
"ms",
|
|
239
|
+
"nl",
|
|
240
|
+
"nn",
|
|
241
|
+
"no",
|
|
242
|
+
"oc",
|
|
243
|
+
"pl",
|
|
244
|
+
"pt",
|
|
245
|
+
"rm",
|
|
246
|
+
"ro",
|
|
247
|
+
"ru",
|
|
248
|
+
"sc",
|
|
249
|
+
"scn",
|
|
250
|
+
"sk",
|
|
251
|
+
"sl",
|
|
252
|
+
"sr",
|
|
253
|
+
"sv",
|
|
254
|
+
"szl",
|
|
255
|
+
"tg",
|
|
256
|
+
"th",
|
|
257
|
+
"tr",
|
|
258
|
+
"uk",
|
|
259
|
+
"zh-CN",
|
|
260
|
+
"zh-TW"
|
|
261
|
+
];
|
|
262
|
+
const placeholderFields = [
|
|
263
|
+
"year",
|
|
264
|
+
"month",
|
|
265
|
+
"day"
|
|
266
|
+
];
|
|
267
|
+
const placeholders = {
|
|
268
|
+
"ach": {
|
|
269
|
+
year: "mwaka",
|
|
270
|
+
month: "dwe",
|
|
271
|
+
day: "nino"
|
|
272
|
+
},
|
|
273
|
+
"af": {
|
|
274
|
+
year: "jjjj",
|
|
275
|
+
month: "mm",
|
|
276
|
+
day: "dd"
|
|
277
|
+
},
|
|
278
|
+
"am": {
|
|
279
|
+
year: "ዓዓዓዓ",
|
|
280
|
+
month: "ሚሜ",
|
|
281
|
+
day: "ቀቀ"
|
|
282
|
+
},
|
|
283
|
+
"an": {
|
|
284
|
+
year: "aaaa",
|
|
285
|
+
month: "mm",
|
|
286
|
+
day: "dd"
|
|
287
|
+
},
|
|
288
|
+
"ar": {
|
|
289
|
+
year: "سنة",
|
|
290
|
+
month: "شهر",
|
|
291
|
+
day: "يوم"
|
|
292
|
+
},
|
|
293
|
+
"ast": {
|
|
294
|
+
year: "aaaa",
|
|
295
|
+
month: "mm",
|
|
296
|
+
day: "dd"
|
|
297
|
+
},
|
|
298
|
+
"az": {
|
|
299
|
+
year: "iiii",
|
|
300
|
+
month: "aa",
|
|
301
|
+
day: "gg"
|
|
302
|
+
},
|
|
303
|
+
"be": {
|
|
304
|
+
year: "гггг",
|
|
305
|
+
month: "мм",
|
|
306
|
+
day: "дд"
|
|
307
|
+
},
|
|
308
|
+
"bg": {
|
|
309
|
+
year: "гггг",
|
|
310
|
+
month: "мм",
|
|
311
|
+
day: "дд"
|
|
312
|
+
},
|
|
313
|
+
"bn": {
|
|
314
|
+
year: "yyyy",
|
|
315
|
+
month: "মিমি",
|
|
316
|
+
day: "dd"
|
|
317
|
+
},
|
|
318
|
+
"br": {
|
|
319
|
+
year: "bbbb",
|
|
320
|
+
month: "mm",
|
|
321
|
+
day: "dd"
|
|
322
|
+
},
|
|
323
|
+
"bs": {
|
|
324
|
+
year: "gggg",
|
|
325
|
+
month: "mm",
|
|
326
|
+
day: "dd"
|
|
327
|
+
},
|
|
328
|
+
"ca": {
|
|
329
|
+
year: "aaaa",
|
|
330
|
+
month: "mm",
|
|
331
|
+
day: "dd"
|
|
332
|
+
},
|
|
333
|
+
"cak": {
|
|
334
|
+
year: "jjjj",
|
|
335
|
+
month: "ii",
|
|
336
|
+
day: "q'q'"
|
|
337
|
+
},
|
|
338
|
+
"ckb": {
|
|
339
|
+
year: "ساڵ",
|
|
340
|
+
month: "مانگ",
|
|
341
|
+
day: "ڕۆژ"
|
|
342
|
+
},
|
|
343
|
+
"cs": {
|
|
344
|
+
year: "rrrr",
|
|
345
|
+
month: "mm",
|
|
346
|
+
day: "dd"
|
|
347
|
+
},
|
|
348
|
+
"cy": {
|
|
349
|
+
year: "bbbb",
|
|
350
|
+
month: "mm",
|
|
351
|
+
day: "dd"
|
|
352
|
+
},
|
|
353
|
+
"da": {
|
|
354
|
+
year: "åååå",
|
|
355
|
+
month: "mm",
|
|
356
|
+
day: "dd"
|
|
357
|
+
},
|
|
358
|
+
"de": {
|
|
359
|
+
year: "jjjj",
|
|
360
|
+
month: "mm",
|
|
361
|
+
day: "tt"
|
|
362
|
+
},
|
|
363
|
+
"dsb": {
|
|
364
|
+
year: "llll",
|
|
365
|
+
month: "mm",
|
|
366
|
+
day: "źź"
|
|
367
|
+
},
|
|
368
|
+
"el": {
|
|
369
|
+
year: "εεεε",
|
|
370
|
+
month: "μμ",
|
|
371
|
+
day: "ηη"
|
|
372
|
+
},
|
|
373
|
+
"en": {
|
|
374
|
+
year: "yyyy",
|
|
375
|
+
month: "mm",
|
|
376
|
+
day: "dd"
|
|
377
|
+
},
|
|
378
|
+
"eo": {
|
|
379
|
+
year: "jjjj",
|
|
380
|
+
month: "mm",
|
|
381
|
+
day: "tt"
|
|
382
|
+
},
|
|
383
|
+
"es": {
|
|
384
|
+
year: "aaaa",
|
|
385
|
+
month: "mm",
|
|
386
|
+
day: "dd"
|
|
387
|
+
},
|
|
388
|
+
"et": {
|
|
389
|
+
year: "aaaa",
|
|
390
|
+
month: "kk",
|
|
391
|
+
day: "pp"
|
|
392
|
+
},
|
|
393
|
+
"eu": {
|
|
394
|
+
year: "uuuu",
|
|
395
|
+
month: "hh",
|
|
396
|
+
day: "ee"
|
|
397
|
+
},
|
|
398
|
+
"fa": {
|
|
399
|
+
year: "سال",
|
|
400
|
+
month: "ماه",
|
|
401
|
+
day: "روز"
|
|
402
|
+
},
|
|
403
|
+
"ff": {
|
|
404
|
+
year: "hhhh",
|
|
405
|
+
month: "ll",
|
|
406
|
+
day: "ññ"
|
|
407
|
+
},
|
|
408
|
+
"fi": {
|
|
409
|
+
year: "vvvv",
|
|
410
|
+
month: "kk",
|
|
411
|
+
day: "pp"
|
|
412
|
+
},
|
|
413
|
+
"fr": {
|
|
414
|
+
year: "aaaa",
|
|
415
|
+
month: "mm",
|
|
416
|
+
day: "jj"
|
|
417
|
+
},
|
|
418
|
+
"fy": {
|
|
419
|
+
year: "jjjj",
|
|
420
|
+
month: "mm",
|
|
421
|
+
day: "dd"
|
|
422
|
+
},
|
|
423
|
+
"ga": {
|
|
424
|
+
year: "bbbb",
|
|
425
|
+
month: "mm",
|
|
426
|
+
day: "ll"
|
|
427
|
+
},
|
|
428
|
+
"gd": {
|
|
429
|
+
year: "bbbb",
|
|
430
|
+
month: "mm",
|
|
431
|
+
day: "ll"
|
|
432
|
+
},
|
|
433
|
+
"gl": {
|
|
434
|
+
year: "aaaa",
|
|
435
|
+
month: "mm",
|
|
436
|
+
day: "dd"
|
|
437
|
+
},
|
|
438
|
+
"he": {
|
|
439
|
+
year: "שנה",
|
|
440
|
+
month: "חודש",
|
|
441
|
+
day: "יום"
|
|
442
|
+
},
|
|
443
|
+
"hr": {
|
|
444
|
+
year: "gggg",
|
|
445
|
+
month: "mm",
|
|
446
|
+
day: "dd"
|
|
447
|
+
},
|
|
448
|
+
"hsb": {
|
|
449
|
+
year: "llll",
|
|
450
|
+
month: "mm",
|
|
451
|
+
day: "dd"
|
|
452
|
+
},
|
|
453
|
+
"hu": {
|
|
454
|
+
year: "éééé",
|
|
455
|
+
month: "hh",
|
|
456
|
+
day: "nn"
|
|
457
|
+
},
|
|
458
|
+
"ia": {
|
|
459
|
+
year: "aaaa",
|
|
460
|
+
month: "mm",
|
|
461
|
+
day: "dd"
|
|
462
|
+
},
|
|
463
|
+
"id": {
|
|
464
|
+
year: "tttt",
|
|
465
|
+
month: "bb",
|
|
466
|
+
day: "hh"
|
|
467
|
+
},
|
|
468
|
+
"it": {
|
|
469
|
+
year: "aaaa",
|
|
470
|
+
month: "mm",
|
|
471
|
+
day: "gg"
|
|
472
|
+
},
|
|
473
|
+
"ja": {
|
|
474
|
+
year: " 年 ",
|
|
475
|
+
month: "月",
|
|
476
|
+
day: "日"
|
|
477
|
+
},
|
|
478
|
+
"ka": {
|
|
479
|
+
year: "წწწწ",
|
|
480
|
+
month: "თთ",
|
|
481
|
+
day: "რრ"
|
|
482
|
+
},
|
|
483
|
+
"kk": {
|
|
484
|
+
year: "жжжж",
|
|
485
|
+
month: "аа",
|
|
486
|
+
day: "кк"
|
|
487
|
+
},
|
|
488
|
+
"kn": {
|
|
489
|
+
year: "ವವವವ",
|
|
490
|
+
month: "ಮಿಮೀ",
|
|
491
|
+
day: "ದಿದಿ"
|
|
492
|
+
},
|
|
493
|
+
"ko": {
|
|
494
|
+
year: "연도",
|
|
495
|
+
month: "월",
|
|
496
|
+
day: "일"
|
|
497
|
+
},
|
|
498
|
+
"lb": {
|
|
499
|
+
year: "jjjj",
|
|
500
|
+
month: "mm",
|
|
501
|
+
day: "dd"
|
|
502
|
+
},
|
|
503
|
+
"lo": {
|
|
504
|
+
year: "ປປປປ",
|
|
505
|
+
month: "ດດ",
|
|
506
|
+
day: "ວວ"
|
|
507
|
+
},
|
|
508
|
+
"lt": {
|
|
509
|
+
year: "mmmm",
|
|
510
|
+
month: "mm",
|
|
511
|
+
day: "dd"
|
|
512
|
+
},
|
|
513
|
+
"lv": {
|
|
514
|
+
year: "gggg",
|
|
515
|
+
month: "mm",
|
|
516
|
+
day: "dd"
|
|
517
|
+
},
|
|
518
|
+
"meh": {
|
|
519
|
+
year: "aaaa",
|
|
520
|
+
month: "mm",
|
|
521
|
+
day: "dd"
|
|
522
|
+
},
|
|
523
|
+
"ml": {
|
|
524
|
+
year: "വർഷം",
|
|
525
|
+
month: "മാസം",
|
|
526
|
+
day: "തീയതി"
|
|
527
|
+
},
|
|
528
|
+
"ms": {
|
|
529
|
+
year: "tttt",
|
|
530
|
+
month: "mm",
|
|
531
|
+
day: "hh"
|
|
532
|
+
},
|
|
533
|
+
"nl": {
|
|
534
|
+
year: "jjjj",
|
|
535
|
+
month: "mm",
|
|
536
|
+
day: "dd"
|
|
537
|
+
},
|
|
538
|
+
"nn": {
|
|
539
|
+
year: "åååå",
|
|
540
|
+
month: "mm",
|
|
541
|
+
day: "dd"
|
|
542
|
+
},
|
|
543
|
+
"no": {
|
|
544
|
+
year: "åååå",
|
|
545
|
+
month: "mm",
|
|
546
|
+
day: "dd"
|
|
547
|
+
},
|
|
548
|
+
"oc": {
|
|
549
|
+
year: "aaaa",
|
|
550
|
+
month: "mm",
|
|
551
|
+
day: "jj"
|
|
552
|
+
},
|
|
553
|
+
"pl": {
|
|
554
|
+
year: "rrrr",
|
|
555
|
+
month: "mm",
|
|
556
|
+
day: "dd"
|
|
557
|
+
},
|
|
558
|
+
"pt": {
|
|
559
|
+
year: "aaaa",
|
|
560
|
+
month: "mm",
|
|
561
|
+
day: "dd"
|
|
562
|
+
},
|
|
563
|
+
"rm": {
|
|
564
|
+
year: "oooo",
|
|
565
|
+
month: "mm",
|
|
566
|
+
day: "dd"
|
|
567
|
+
},
|
|
568
|
+
"ro": {
|
|
569
|
+
year: "aaaa",
|
|
570
|
+
month: "ll",
|
|
571
|
+
day: "zz"
|
|
572
|
+
},
|
|
573
|
+
"ru": {
|
|
574
|
+
year: "гггг",
|
|
575
|
+
month: "мм",
|
|
576
|
+
day: "дд"
|
|
577
|
+
},
|
|
578
|
+
"sc": {
|
|
579
|
+
year: "aaaa",
|
|
580
|
+
month: "mm",
|
|
581
|
+
day: "dd"
|
|
582
|
+
},
|
|
583
|
+
"scn": {
|
|
584
|
+
year: "aaaa",
|
|
585
|
+
month: "mm",
|
|
586
|
+
day: "jj"
|
|
587
|
+
},
|
|
588
|
+
"sk": {
|
|
589
|
+
year: "rrrr",
|
|
590
|
+
month: "mm",
|
|
591
|
+
day: "dd"
|
|
592
|
+
},
|
|
593
|
+
"sl": {
|
|
594
|
+
year: "llll",
|
|
595
|
+
month: "mm",
|
|
596
|
+
day: "dd"
|
|
597
|
+
},
|
|
598
|
+
"sr": {
|
|
599
|
+
year: "гггг",
|
|
600
|
+
month: "мм",
|
|
601
|
+
day: "дд"
|
|
602
|
+
},
|
|
603
|
+
"sv": {
|
|
604
|
+
year: "åååå",
|
|
605
|
+
month: "mm",
|
|
606
|
+
day: "dd"
|
|
607
|
+
},
|
|
608
|
+
"szl": {
|
|
609
|
+
year: "rrrr",
|
|
610
|
+
month: "mm",
|
|
611
|
+
day: "dd"
|
|
612
|
+
},
|
|
613
|
+
"tg": {
|
|
614
|
+
year: "сссс",
|
|
615
|
+
month: "мм",
|
|
616
|
+
day: "рр"
|
|
617
|
+
},
|
|
618
|
+
"th": {
|
|
619
|
+
year: "ปปปป",
|
|
620
|
+
month: "ดด",
|
|
621
|
+
day: "วว"
|
|
622
|
+
},
|
|
623
|
+
"tr": {
|
|
624
|
+
year: "yyyy",
|
|
625
|
+
month: "aa",
|
|
626
|
+
day: "gg"
|
|
627
|
+
},
|
|
628
|
+
"uk": {
|
|
629
|
+
year: "рррр",
|
|
630
|
+
month: "мм",
|
|
631
|
+
day: "дд"
|
|
632
|
+
},
|
|
633
|
+
"zh-CN": {
|
|
634
|
+
year: "年",
|
|
635
|
+
month: "月",
|
|
636
|
+
day: "日"
|
|
637
|
+
},
|
|
638
|
+
"zh-TW": {
|
|
639
|
+
year: "年",
|
|
640
|
+
month: "月",
|
|
641
|
+
day: "日"
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
function getPlaceholderObj(locale) {
|
|
645
|
+
if (!isSupportedLocale(locale)) {
|
|
646
|
+
const localeLanguage = getLocaleLanguage(locale);
|
|
647
|
+
if (!isSupportedLocale(localeLanguage)) return placeholders.en;
|
|
648
|
+
else return placeholders[localeLanguage];
|
|
649
|
+
} else return placeholders[locale];
|
|
650
|
+
}
|
|
651
|
+
function getPlaceholder(field, value, locale) {
|
|
652
|
+
if (isPlaceholderField(field)) return getPlaceholderObj(locale)[field];
|
|
653
|
+
if (isDefaultField(field)) return value;
|
|
654
|
+
if (isTimeField(field)) return "––";
|
|
655
|
+
return "";
|
|
656
|
+
}
|
|
657
|
+
function isSupportedLocale(locale) {
|
|
658
|
+
return supportedLocales.includes(locale);
|
|
659
|
+
}
|
|
660
|
+
function isPlaceholderField(field) {
|
|
661
|
+
return placeholderFields.includes(field);
|
|
662
|
+
}
|
|
663
|
+
function isTimeField(field) {
|
|
664
|
+
return field === "hour" || field === "minute" || field === "second";
|
|
665
|
+
}
|
|
666
|
+
function isDefaultField(field) {
|
|
667
|
+
return field === "era" || field === "dayPeriod";
|
|
668
|
+
}
|
|
669
|
+
function getLocaleLanguage(locale) {
|
|
670
|
+
if (Intl.Locale) return new Intl.Locale(locale).language;
|
|
671
|
+
return locale.split("-")[0];
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
//#endregion
|
|
675
|
+
//#region src/shared/date/segment.ts
|
|
676
|
+
function isSegmentNavigationKey(key) {
|
|
677
|
+
return key === KEY_CODES.ARROW_RIGHT || key === KEY_CODES.ARROW_LEFT;
|
|
678
|
+
}
|
|
679
|
+
function isNumberString(value) {
|
|
680
|
+
if (Number.isNaN(Number.parseInt(value))) return false;
|
|
681
|
+
return true;
|
|
682
|
+
}
|
|
683
|
+
function isAcceptableSegmentKey(key) {
|
|
684
|
+
const acceptableSegmentKeys = [
|
|
685
|
+
KEY_CODES.ENTER,
|
|
686
|
+
KEY_CODES.ARROW_UP,
|
|
687
|
+
KEY_CODES.ARROW_DOWN,
|
|
688
|
+
KEY_CODES.ARROW_LEFT,
|
|
689
|
+
KEY_CODES.ARROW_RIGHT,
|
|
690
|
+
KEY_CODES.BACKSPACE,
|
|
691
|
+
KEY_CODES.SPACE,
|
|
692
|
+
"a",
|
|
693
|
+
"A",
|
|
694
|
+
"p",
|
|
695
|
+
"P"
|
|
696
|
+
];
|
|
697
|
+
if (acceptableSegmentKeys.includes(key)) return true;
|
|
698
|
+
return isNumberString(key);
|
|
699
|
+
}
|
|
700
|
+
function getSegmentElements(parentElement) {
|
|
701
|
+
return Array.from(parentElement.querySelectorAll("[data-akar-date-field-segment]")).filter((item) => item.getAttribute("data-akar-date-field-segment") !== "literal");
|
|
702
|
+
}
|
|
703
|
+
function getTimeFieldSegmentElements(parentElement) {
|
|
704
|
+
return Array.from(parentElement.querySelectorAll("[data-akar-time-field-segment]")).filter((item) => item.getAttribute("data-akar-time-field-segment") !== "literal");
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region src/shared/date/use-date-field.ts
|
|
709
|
+
function commonSegmentAttrs(props) {
|
|
710
|
+
return {
|
|
711
|
+
role: "spinbutton",
|
|
712
|
+
contenteditable: true,
|
|
713
|
+
tabindex: props.disabled ? void 0 : 0,
|
|
714
|
+
spellcheck: false,
|
|
715
|
+
inputmode: "numeric",
|
|
716
|
+
autocorrect: "off",
|
|
717
|
+
enterkeyhint: "next",
|
|
718
|
+
style: "caret-color: transparent;"
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
function daySegmentAttrs(props) {
|
|
722
|
+
const { segmentValues, placeholder } = props;
|
|
723
|
+
const isEmpty = segmentValues.day === null;
|
|
724
|
+
const date = segmentValues.day ? placeholder.set({ day: segmentValues.day }) : placeholder;
|
|
725
|
+
const valueNow = date.day;
|
|
726
|
+
const valueMin = 1;
|
|
727
|
+
const valueMax = getDaysInMonth(date);
|
|
728
|
+
const valueText = isEmpty ? "Empty" : `${valueNow}`;
|
|
729
|
+
return {
|
|
730
|
+
...commonSegmentAttrs(props),
|
|
731
|
+
"aria-label": "day,",
|
|
732
|
+
"aria-valuemin": valueMin,
|
|
733
|
+
"aria-valuemax": valueMax,
|
|
734
|
+
"aria-valuenow": valueNow,
|
|
735
|
+
"aria-valuetext": valueText,
|
|
736
|
+
"data-placeholder": isEmpty ? "" : void 0
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
function monthSegmentAttrs(props) {
|
|
740
|
+
const { segmentValues, placeholder, formatter } = props;
|
|
741
|
+
const isEmpty = segmentValues.month === null;
|
|
742
|
+
const date = segmentValues.month ? placeholder.set({ month: segmentValues.month }) : placeholder;
|
|
743
|
+
const valueNow = date.month;
|
|
744
|
+
const valueMin = 1;
|
|
745
|
+
const valueMax = 12;
|
|
746
|
+
const valueText = isEmpty ? "Empty" : `${valueNow} - ${formatter.fullMonth({ date: toDate(date) })}`;
|
|
747
|
+
return {
|
|
748
|
+
...commonSegmentAttrs(props),
|
|
749
|
+
"aria-label": "month, ",
|
|
750
|
+
"contenteditable": true,
|
|
751
|
+
"aria-valuemin": valueMin,
|
|
752
|
+
"aria-valuemax": valueMax,
|
|
753
|
+
"aria-valuenow": valueNow,
|
|
754
|
+
"aria-valuetext": valueText,
|
|
755
|
+
"data-placeholder": isEmpty ? "" : void 0
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
function yearSegmentAttrs(props) {
|
|
759
|
+
const { segmentValues, placeholder } = props;
|
|
760
|
+
const isEmpty = segmentValues.year === null;
|
|
761
|
+
const date = segmentValues.year ? placeholder.set({ year: segmentValues.year }) : placeholder;
|
|
762
|
+
const valueMin = 1;
|
|
763
|
+
const valueMax = 9999;
|
|
764
|
+
const valueNow = date.year;
|
|
765
|
+
const valueText = isEmpty ? "Empty" : `${valueNow}`;
|
|
766
|
+
return {
|
|
767
|
+
...commonSegmentAttrs(props),
|
|
768
|
+
"aria-label": "year, ",
|
|
769
|
+
"aria-valuemin": valueMin,
|
|
770
|
+
"aria-valuemax": valueMax,
|
|
771
|
+
"aria-valuenow": valueNow,
|
|
772
|
+
"aria-valuetext": valueText,
|
|
773
|
+
"data-placeholder": isEmpty ? "" : void 0
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
function hourSegmentAttrs(props) {
|
|
777
|
+
const { segmentValues, hourCycle, placeholder } = props;
|
|
778
|
+
if (!("hour" in segmentValues) || !("hour" in placeholder)) return {};
|
|
779
|
+
const isEmpty = segmentValues.hour === null;
|
|
780
|
+
const date = segmentValues.hour ? placeholder.set({ hour: segmentValues.hour }) : placeholder;
|
|
781
|
+
const valueMin = hourCycle === 12 ? 1 : 0;
|
|
782
|
+
const valueMax = hourCycle === 12 ? 12 : 23;
|
|
783
|
+
const valueNow = date.hour;
|
|
784
|
+
const valueText = isEmpty ? "Empty" : `${valueNow} ${segmentValues.dayPeriod ?? ""}`;
|
|
785
|
+
return {
|
|
786
|
+
...commonSegmentAttrs(props),
|
|
787
|
+
"aria-label": "hour, ",
|
|
788
|
+
"aria-valuemin": valueMin,
|
|
789
|
+
"aria-valuemax": valueMax,
|
|
790
|
+
"aria-valuenow": valueNow,
|
|
791
|
+
"aria-valuetext": valueText,
|
|
792
|
+
"data-placeholder": isEmpty ? "" : void 0
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
function minuteSegmentAttrs(props) {
|
|
796
|
+
const { segmentValues, placeholder } = props;
|
|
797
|
+
if (!("minute" in segmentValues) || !("minute" in placeholder)) return {};
|
|
798
|
+
const isEmpty = segmentValues.minute === null;
|
|
799
|
+
const date = segmentValues.minute ? placeholder.set({ minute: segmentValues.minute }) : placeholder;
|
|
800
|
+
const valueNow = date.minute;
|
|
801
|
+
const valueMin = 0;
|
|
802
|
+
const valueMax = 59;
|
|
803
|
+
const valueText = isEmpty ? "Empty" : `${valueNow}`;
|
|
804
|
+
return {
|
|
805
|
+
...commonSegmentAttrs(props),
|
|
806
|
+
"aria-label": "minute, ",
|
|
807
|
+
"aria-valuemin": valueMin,
|
|
808
|
+
"aria-valuemax": valueMax,
|
|
809
|
+
"aria-valuenow": valueNow,
|
|
810
|
+
"aria-valuetext": valueText,
|
|
811
|
+
"data-placeholder": isEmpty ? "" : void 0
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
function secondSegmentAttrs(props) {
|
|
815
|
+
const { segmentValues, placeholder } = props;
|
|
816
|
+
if (!("second" in segmentValues) || !("second" in placeholder)) return {};
|
|
817
|
+
const isEmpty = segmentValues.second === null;
|
|
818
|
+
const date = segmentValues.second ? placeholder.set({ second: segmentValues.second }) : placeholder;
|
|
819
|
+
const valueNow = date.second;
|
|
820
|
+
const valueMin = 0;
|
|
821
|
+
const valueMax = 59;
|
|
822
|
+
const valueText = isEmpty ? "Empty" : `${valueNow}`;
|
|
823
|
+
return {
|
|
824
|
+
...commonSegmentAttrs(props),
|
|
825
|
+
"aria-label": "second, ",
|
|
826
|
+
"aria-valuemin": valueMin,
|
|
827
|
+
"aria-valuemax": valueMax,
|
|
828
|
+
"aria-valuenow": valueNow,
|
|
829
|
+
"aria-valuetext": valueText,
|
|
830
|
+
"data-placeholder": isEmpty ? "" : void 0
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
function dayPeriodSegmentAttrs(props) {
|
|
834
|
+
const { segmentValues } = props;
|
|
835
|
+
if (!("dayPeriod" in segmentValues)) return {};
|
|
836
|
+
const valueMin = 0;
|
|
837
|
+
const valueMax = 12;
|
|
838
|
+
let valueNow;
|
|
839
|
+
if (segmentValues.hour) valueNow = segmentValues.hour > 12 ? segmentValues.hour - 12 : segmentValues.hour;
|
|
840
|
+
else valueNow = 0;
|
|
841
|
+
const valueText = segmentValues.dayPeriod ?? "AM";
|
|
842
|
+
return {
|
|
843
|
+
...commonSegmentAttrs(props),
|
|
844
|
+
"inputmode": "text",
|
|
845
|
+
"aria-label": "AM/PM",
|
|
846
|
+
"aria-valuemin": valueMin,
|
|
847
|
+
"aria-valuemax": valueMax,
|
|
848
|
+
"aria-valuenow": valueNow,
|
|
849
|
+
"aria-valuetext": valueText
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
function literalSegmentAttrs(_props) {
|
|
853
|
+
return {
|
|
854
|
+
"aria-hidden": true,
|
|
855
|
+
"data-segment": "literal"
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
function timeZoneSegmentAttrs(props) {
|
|
859
|
+
return {
|
|
860
|
+
"role": "textbox",
|
|
861
|
+
"aria-label": "timezone, ",
|
|
862
|
+
"data-readonly": true,
|
|
863
|
+
"data-segment": "timeZoneName",
|
|
864
|
+
"tabindex": props.disabled ? void 0 : 0,
|
|
865
|
+
"style": "caret-color: transparent;"
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
function eraSegmentAttrs(props) {
|
|
869
|
+
const { segmentValues, placeholder } = props;
|
|
870
|
+
const valueMin = 0;
|
|
871
|
+
const valueMax = 0;
|
|
872
|
+
const valueNow = 0;
|
|
873
|
+
const valueText = "era" in segmentValues ? segmentValues.era : placeholder.era;
|
|
874
|
+
return {
|
|
875
|
+
...commonSegmentAttrs(props),
|
|
876
|
+
"aria-label": "era",
|
|
877
|
+
"aria-valuemin": valueMin,
|
|
878
|
+
"aria-valuemax": valueMax,
|
|
879
|
+
"aria-valuenow": valueNow,
|
|
880
|
+
"aria-valuetext": valueText
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
const segmentBuilders = {
|
|
884
|
+
day: { attrs: daySegmentAttrs },
|
|
885
|
+
month: { attrs: monthSegmentAttrs },
|
|
886
|
+
year: { attrs: yearSegmentAttrs },
|
|
887
|
+
hour: { attrs: hourSegmentAttrs },
|
|
888
|
+
minute: { attrs: minuteSegmentAttrs },
|
|
889
|
+
second: { attrs: secondSegmentAttrs },
|
|
890
|
+
dayPeriod: { attrs: dayPeriodSegmentAttrs },
|
|
891
|
+
literal: { attrs: literalSegmentAttrs },
|
|
892
|
+
timeZoneName: { attrs: timeZoneSegmentAttrs },
|
|
893
|
+
era: { attrs: eraSegmentAttrs }
|
|
894
|
+
};
|
|
895
|
+
function useDateField(props) {
|
|
896
|
+
function minuteSecondIncrementation({ event, part, dateRef, prevValue }) {
|
|
897
|
+
const step = props.step.value[part] ?? 1;
|
|
898
|
+
const sign = event.key === KEY_CODES.ARROW_UP ? step : -step;
|
|
899
|
+
const min = 0;
|
|
900
|
+
const max = 59;
|
|
901
|
+
if (prevValue === null) return sign > 0 ? min : max;
|
|
902
|
+
const cycleArgs = [part, sign];
|
|
903
|
+
return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs)[part];
|
|
904
|
+
}
|
|
905
|
+
function deleteValue(prevValue) {
|
|
906
|
+
props.hasLeftFocus.value = false;
|
|
907
|
+
if (prevValue === null) return prevValue;
|
|
908
|
+
const str = prevValue.toString();
|
|
909
|
+
if (str.length === 1) {
|
|
910
|
+
props.modelValue.value = void 0;
|
|
911
|
+
return null;
|
|
912
|
+
}
|
|
913
|
+
return Number.parseInt(str.slice(0, -1));
|
|
914
|
+
}
|
|
915
|
+
function dateTimeValueIncrementation({ event, part, dateRef, prevValue, hourCycle }) {
|
|
916
|
+
const step = props.step.value[part] ?? 1;
|
|
917
|
+
const sign = event.key === KEY_CODES.ARROW_UP ? step : -step;
|
|
918
|
+
if (prevValue === null) return dateRef[part];
|
|
919
|
+
if (part === "hour" && "hour" in dateRef) {
|
|
920
|
+
const cycleArgs$1 = [
|
|
921
|
+
part,
|
|
922
|
+
sign,
|
|
923
|
+
{ hourCycle }
|
|
924
|
+
];
|
|
925
|
+
return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs$1)[part];
|
|
926
|
+
}
|
|
927
|
+
const cycleArgs = [part, sign];
|
|
928
|
+
if (part === "day") return dateRef.set({
|
|
929
|
+
[part]: prevValue,
|
|
930
|
+
month: props.segmentValues.value.month ?? 1
|
|
931
|
+
}).cycle(...cycleArgs)[part];
|
|
932
|
+
return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs)[part];
|
|
933
|
+
}
|
|
934
|
+
function updateDayOrMonth(max, num, prev) {
|
|
935
|
+
let moveToNext = false;
|
|
936
|
+
const maxStart = Math.floor(max / 10);
|
|
937
|
+
/**
|
|
938
|
+
* If the user has left the segment, we want to reset the
|
|
939
|
+
* `prev` value so that we can start the segment over again
|
|
940
|
+
* when the user types a number.
|
|
941
|
+
*/
|
|
942
|
+
if (props.hasLeftFocus.value) {
|
|
943
|
+
props.hasLeftFocus.value = false;
|
|
944
|
+
prev = null;
|
|
945
|
+
}
|
|
946
|
+
if (prev === null) {
|
|
947
|
+
/**
|
|
948
|
+
* If the user types a 0 as the first number, we want
|
|
949
|
+
* to keep track of that so that when they type the next
|
|
950
|
+
* number, we can move to the next segment.
|
|
951
|
+
*/
|
|
952
|
+
if (num === 0) {
|
|
953
|
+
props.lastKeyZero.value = true;
|
|
954
|
+
return {
|
|
955
|
+
value: null,
|
|
956
|
+
moveToNext
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* If the last key was a 0, or if the first number is
|
|
961
|
+
* greater than the max start digit (0-3 in most cases), then
|
|
962
|
+
* we want to move to the next segment, since it's not possible
|
|
963
|
+
* to continue typing a valid number in this segment.
|
|
964
|
+
*/
|
|
965
|
+
if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
|
|
966
|
+
props.lastKeyZero.value = false;
|
|
967
|
+
/**
|
|
968
|
+
* If none of the above conditions are met, then we can just
|
|
969
|
+
* return the number as the segment value and continue typing
|
|
970
|
+
* in this segment.
|
|
971
|
+
*/
|
|
972
|
+
return {
|
|
973
|
+
value: num,
|
|
974
|
+
moveToNext
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* If the number of digits is 2, or if the total with the existing digit
|
|
979
|
+
* and the pressed digit is greater than the maximum value for this
|
|
980
|
+
* month, then we will reset the segment as if the user had pressed the
|
|
981
|
+
* backspace key and then typed the number.
|
|
982
|
+
*/
|
|
983
|
+
const digits = prev.toString().length;
|
|
984
|
+
const total = Number.parseInt(prev.toString() + num.toString());
|
|
985
|
+
/**
|
|
986
|
+
* If the number of digits is 2, or if the total with the existing digit
|
|
987
|
+
* and the pressed digit is greater than the maximum value for this
|
|
988
|
+
* month, then we will reset the segment as if the user had pressed the
|
|
989
|
+
* backspace key and then typed the number.
|
|
990
|
+
*/
|
|
991
|
+
if (digits === 2 || total > max) {
|
|
992
|
+
/**
|
|
993
|
+
* As we're doing elsewhere, we're checking if the number is greater
|
|
994
|
+
* than the max start digit (0-3 in most months), and if so, we're
|
|
995
|
+
* going to move to the next segment.
|
|
996
|
+
*/
|
|
997
|
+
if (num > maxStart || total > max) moveToNext = true;
|
|
998
|
+
return {
|
|
999
|
+
value: num,
|
|
1000
|
+
moveToNext
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
moveToNext = true;
|
|
1004
|
+
return {
|
|
1005
|
+
value: total,
|
|
1006
|
+
moveToNext
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
function updateMinuteOrSecond(num, prev) {
|
|
1010
|
+
const max = 59;
|
|
1011
|
+
let moveToNext = false;
|
|
1012
|
+
const maxStart = Math.floor(max / 10);
|
|
1013
|
+
/**
|
|
1014
|
+
* If the user has left the segment, we want to reset the
|
|
1015
|
+
* `prev` value so that we can start the segment over again
|
|
1016
|
+
* when the user types a number.
|
|
1017
|
+
*/
|
|
1018
|
+
if (props.hasLeftFocus.value) {
|
|
1019
|
+
props.hasLeftFocus.value = false;
|
|
1020
|
+
prev = null;
|
|
1021
|
+
}
|
|
1022
|
+
if (prev === null) {
|
|
1023
|
+
/**
|
|
1024
|
+
* If the user types a 0 as the first number, we want
|
|
1025
|
+
* to keep track of that so that when they type the next
|
|
1026
|
+
* number, we can move to the next segment.
|
|
1027
|
+
*/
|
|
1028
|
+
if (num === 0) {
|
|
1029
|
+
props.lastKeyZero.value = true;
|
|
1030
|
+
return {
|
|
1031
|
+
value: 0,
|
|
1032
|
+
moveToNext
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* If the last key was a 0, or if the first number is
|
|
1037
|
+
* greater than the max start digit (0-3 in most cases), then
|
|
1038
|
+
* we want to move to the next segment, since it's not possible
|
|
1039
|
+
* to continue typing a valid number in this segment.
|
|
1040
|
+
*/
|
|
1041
|
+
if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
|
|
1042
|
+
props.lastKeyZero.value = false;
|
|
1043
|
+
/**
|
|
1044
|
+
* If none of the above conditions are met, then we can just
|
|
1045
|
+
* return the number as the segment value and continue typing
|
|
1046
|
+
* in this segment.
|
|
1047
|
+
*/
|
|
1048
|
+
return {
|
|
1049
|
+
value: num,
|
|
1050
|
+
moveToNext
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* If the number of digits is 2, or if the total with the existing digit
|
|
1055
|
+
* and the pressed digit is greater than the maximum value for this
|
|
1056
|
+
* month, then we will reset the segment as if the user had pressed the
|
|
1057
|
+
* backspace key and then typed the number.
|
|
1058
|
+
*/
|
|
1059
|
+
const digits = prev.toString().length;
|
|
1060
|
+
const total = Number.parseInt(prev.toString() + num.toString());
|
|
1061
|
+
/**
|
|
1062
|
+
* If the number of digits is 2, or if the total with the existing digit
|
|
1063
|
+
* and the pressed digit is greater than the maximum value for this
|
|
1064
|
+
* month, then we will reset the segment as if the user had pressed the
|
|
1065
|
+
* backspace key and then typed the number.
|
|
1066
|
+
*/
|
|
1067
|
+
if (digits === 2 || total > max) {
|
|
1068
|
+
/**
|
|
1069
|
+
* As we're doing elsewhere, we're checking if the number is greater
|
|
1070
|
+
* than the max start digit (0-3 in most months), and if so, we're
|
|
1071
|
+
* going to move to the next segment.
|
|
1072
|
+
*/
|
|
1073
|
+
if (num > maxStart) moveToNext = true;
|
|
1074
|
+
return {
|
|
1075
|
+
value: num,
|
|
1076
|
+
moveToNext
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
moveToNext = true;
|
|
1080
|
+
return {
|
|
1081
|
+
value: total,
|
|
1082
|
+
moveToNext
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
function updateHour(num, prev) {
|
|
1086
|
+
const max = 24;
|
|
1087
|
+
let moveToNext = false;
|
|
1088
|
+
const maxStart = Math.floor(max / 10);
|
|
1089
|
+
/**
|
|
1090
|
+
* If the user has left the segment, we want to reset the
|
|
1091
|
+
* `prev` value so that we can start the segment over again
|
|
1092
|
+
* when the user types a number.
|
|
1093
|
+
*/
|
|
1094
|
+
if (props.hasLeftFocus.value) {
|
|
1095
|
+
props.hasLeftFocus.value = false;
|
|
1096
|
+
prev = null;
|
|
1097
|
+
}
|
|
1098
|
+
if (prev === null) {
|
|
1099
|
+
/**
|
|
1100
|
+
* If the user types a 0 as the first number, we want
|
|
1101
|
+
* to keep track of that so that when they type the next
|
|
1102
|
+
* number, we can move to the next segment.
|
|
1103
|
+
*/
|
|
1104
|
+
if (num === 0) {
|
|
1105
|
+
props.lastKeyZero.value = true;
|
|
1106
|
+
return {
|
|
1107
|
+
value: 0,
|
|
1108
|
+
moveToNext
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* If the last key was a 0, or if the first number is
|
|
1113
|
+
* greater than the max start digit (0-3 in most cases), then
|
|
1114
|
+
* we want to move to the next segment, since it's not possible
|
|
1115
|
+
* to continue typing a valid number in this segment.
|
|
1116
|
+
*/
|
|
1117
|
+
if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
|
|
1118
|
+
props.lastKeyZero.value = false;
|
|
1119
|
+
/**
|
|
1120
|
+
* If none of the above conditions are met, then we can just
|
|
1121
|
+
* return the number as the segment value and continue typing
|
|
1122
|
+
* in this segment.
|
|
1123
|
+
*/
|
|
1124
|
+
return {
|
|
1125
|
+
value: num,
|
|
1126
|
+
moveToNext
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* If the number of digits is 2, or if the total with the existing digit
|
|
1131
|
+
* and the pressed digit is greater than the maximum value for this
|
|
1132
|
+
* month, then we will reset the segment as if the user had pressed the
|
|
1133
|
+
* backspace key and then typed the number.
|
|
1134
|
+
*/
|
|
1135
|
+
const digits = prev.toString().length;
|
|
1136
|
+
const total = Number.parseInt(prev.toString() + num.toString());
|
|
1137
|
+
/**
|
|
1138
|
+
* If the number of digits is 2, or if the total with the existing digit
|
|
1139
|
+
* and the pressed digit is greater than the maximum value for this
|
|
1140
|
+
* month, then we will reset the segment as if the user had pressed the
|
|
1141
|
+
* backspace key and then typed the number.
|
|
1142
|
+
*/
|
|
1143
|
+
if (digits === 2 || total > max) {
|
|
1144
|
+
/**
|
|
1145
|
+
* As we're doing elsewhere, we're checking if the number is greater
|
|
1146
|
+
* than the max start digit (0-3 in most months), and if so, we're
|
|
1147
|
+
* going to move to the next segment.
|
|
1148
|
+
*/
|
|
1149
|
+
if (num > maxStart) moveToNext = true;
|
|
1150
|
+
return {
|
|
1151
|
+
value: num,
|
|
1152
|
+
moveToNext
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
moveToNext = true;
|
|
1156
|
+
return {
|
|
1157
|
+
value: total,
|
|
1158
|
+
moveToNext
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
function updateYear(num, prev) {
|
|
1162
|
+
let moveToNext = false;
|
|
1163
|
+
/**
|
|
1164
|
+
* If the user has left the segment, we want to reset the
|
|
1165
|
+
* `prev` value so that we can start the segment over again
|
|
1166
|
+
* when the user types a number.
|
|
1167
|
+
*/
|
|
1168
|
+
if (props.hasLeftFocus.value) {
|
|
1169
|
+
props.hasLeftFocus.value = false;
|
|
1170
|
+
prev = null;
|
|
1171
|
+
}
|
|
1172
|
+
if (prev === null) return {
|
|
1173
|
+
value: num === 0 ? 1 : num,
|
|
1174
|
+
moveToNext
|
|
1175
|
+
};
|
|
1176
|
+
const str = prev.toString() + num.toString();
|
|
1177
|
+
if (str.length > 4) return {
|
|
1178
|
+
value: num === 0 ? 1 : num,
|
|
1179
|
+
moveToNext
|
|
1180
|
+
};
|
|
1181
|
+
if (str.length === 4) moveToNext = true;
|
|
1182
|
+
const int = Number.parseInt(str);
|
|
1183
|
+
return {
|
|
1184
|
+
value: int,
|
|
1185
|
+
moveToNext
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
const attributes = computed(() => segmentBuilders[props.part]?.attrs({
|
|
1189
|
+
disabled: props.disabled.value,
|
|
1190
|
+
placeholder: props.placeholder.value,
|
|
1191
|
+
hourCycle: props.hourCycle,
|
|
1192
|
+
segmentValues: props.segmentValues.value,
|
|
1193
|
+
formatter: props.formatter
|
|
1194
|
+
}) ?? {});
|
|
1195
|
+
function handleDaySegmentKeydown(event) {
|
|
1196
|
+
if (!isAcceptableSegmentKey(event.key) || isSegmentNavigationKey(event.key)) return;
|
|
1197
|
+
const prevValue = props.segmentValues.value.day;
|
|
1198
|
+
if (event.key === KEY_CODES.ARROW_DOWN || event.key === KEY_CODES.ARROW_UP) {
|
|
1199
|
+
props.segmentValues.value.day = dateTimeValueIncrementation({
|
|
1200
|
+
event,
|
|
1201
|
+
part: "day",
|
|
1202
|
+
dateRef: props.placeholder.value,
|
|
1203
|
+
prevValue
|
|
1204
|
+
});
|
|
1205
|
+
return;
|
|
1206
|
+
}
|
|
1207
|
+
if (isNumberString(event.key)) {
|
|
1208
|
+
const num = Number.parseInt(event.key);
|
|
1209
|
+
const segmentMonthValue = props.segmentValues.value.month;
|
|
1210
|
+
const daysInMonth = segmentMonthValue ? getDaysInMonth(props.placeholder.value.set({ month: segmentMonthValue })) : 31;
|
|
1211
|
+
const { value, moveToNext } = updateDayOrMonth(daysInMonth, num, prevValue);
|
|
1212
|
+
props.segmentValues.value.day = value;
|
|
1213
|
+
if (moveToNext) props.focusNext();
|
|
1214
|
+
}
|
|
1215
|
+
if (event.key === KEY_CODES.BACKSPACE) {
|
|
1216
|
+
props.hasLeftFocus.value = false;
|
|
1217
|
+
props.segmentValues.value.day = deleteValue(prevValue);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
function handleMonthSegmentKeydown(event) {
|
|
1221
|
+
if (!isAcceptableSegmentKey(event.key) || isSegmentNavigationKey(event.key)) return;
|
|
1222
|
+
const prevValue = props.segmentValues.value.month;
|
|
1223
|
+
if (event.key === KEY_CODES.ARROW_DOWN || event.key === KEY_CODES.ARROW_UP) {
|
|
1224
|
+
props.segmentValues.value.month = dateTimeValueIncrementation({
|
|
1225
|
+
event,
|
|
1226
|
+
part: "month",
|
|
1227
|
+
dateRef: props.placeholder.value,
|
|
1228
|
+
prevValue
|
|
1229
|
+
});
|
|
1230
|
+
return;
|
|
1231
|
+
}
|
|
1232
|
+
if (isNumberString(event.key)) {
|
|
1233
|
+
const num = Number.parseInt(event.key);
|
|
1234
|
+
const { value, moveToNext } = updateDayOrMonth(12, num, prevValue);
|
|
1235
|
+
props.segmentValues.value.month = value;
|
|
1236
|
+
if (moveToNext) props.focusNext();
|
|
1237
|
+
}
|
|
1238
|
+
if (event.key === KEY_CODES.BACKSPACE) {
|
|
1239
|
+
props.hasLeftFocus.value = false;
|
|
1240
|
+
props.segmentValues.value.month = deleteValue(prevValue);
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
function handleYearSegmentKeydown(event) {
|
|
1244
|
+
if (!isAcceptableSegmentKey(event.key) || isSegmentNavigationKey(event.key)) return;
|
|
1245
|
+
const prevValue = props.segmentValues.value.year;
|
|
1246
|
+
if (event.key === KEY_CODES.ARROW_DOWN || event.key === KEY_CODES.ARROW_UP) {
|
|
1247
|
+
props.segmentValues.value.year = dateTimeValueIncrementation({
|
|
1248
|
+
event,
|
|
1249
|
+
part: "year",
|
|
1250
|
+
dateRef: props.placeholder.value,
|
|
1251
|
+
prevValue
|
|
1252
|
+
});
|
|
1253
|
+
return;
|
|
1254
|
+
}
|
|
1255
|
+
if (isNumberString(event.key)) {
|
|
1256
|
+
const num = Number.parseInt(event.key);
|
|
1257
|
+
const { value, moveToNext } = updateYear(num, prevValue);
|
|
1258
|
+
props.segmentValues.value.year = value;
|
|
1259
|
+
if (moveToNext) props.focusNext();
|
|
1260
|
+
}
|
|
1261
|
+
if (event.key === KEY_CODES.BACKSPACE) {
|
|
1262
|
+
props.hasLeftFocus.value = false;
|
|
1263
|
+
props.segmentValues.value.year = deleteValue(prevValue);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
function handleHourSegmentKeydown(event) {
|
|
1267
|
+
const dateRef = props.placeholder.value;
|
|
1268
|
+
if (!isAcceptableSegmentKey(event.key) || isSegmentNavigationKey(event.key) || !("hour" in dateRef) || !("hour" in props.segmentValues.value)) return;
|
|
1269
|
+
const prevValue = props.segmentValues.value.hour;
|
|
1270
|
+
const hourCycle = props.hourCycle;
|
|
1271
|
+
if (event.key === KEY_CODES.ARROW_UP || event.key === KEY_CODES.ARROW_DOWN) {
|
|
1272
|
+
props.segmentValues.value.hour = dateTimeValueIncrementation({
|
|
1273
|
+
event,
|
|
1274
|
+
part: "hour",
|
|
1275
|
+
dateRef: props.placeholder.value,
|
|
1276
|
+
prevValue,
|
|
1277
|
+
hourCycle
|
|
1278
|
+
});
|
|
1279
|
+
if ("dayPeriod" in props.segmentValues.value) {
|
|
1280
|
+
if (props.segmentValues.value.hour < 12) props.segmentValues.value.dayPeriod = "AM";
|
|
1281
|
+
else if (props.segmentValues.value.hour) props.segmentValues.value.dayPeriod = "PM";
|
|
1282
|
+
}
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
if (isNumberString(event.key)) {
|
|
1286
|
+
const num = Number.parseInt(event.key);
|
|
1287
|
+
const { value, moveToNext } = updateHour(num, prevValue);
|
|
1288
|
+
if ("dayPeriod" in props.segmentValues.value && value && value > 12) props.segmentValues.value.dayPeriod = "PM";
|
|
1289
|
+
else if ("dayPeriod" in props.segmentValues.value && value) props.segmentValues.value.dayPeriod = "AM";
|
|
1290
|
+
props.segmentValues.value.hour = value;
|
|
1291
|
+
if (moveToNext) props.focusNext();
|
|
1292
|
+
}
|
|
1293
|
+
if (event.key === KEY_CODES.BACKSPACE) {
|
|
1294
|
+
props.hasLeftFocus.value = false;
|
|
1295
|
+
props.segmentValues.value.hour = deleteValue(prevValue);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
function handleMinuteSegmentKeydown(event) {
|
|
1299
|
+
const dateRef = props.placeholder.value;
|
|
1300
|
+
if (!isAcceptableSegmentKey(event.key) || isSegmentNavigationKey(event.key) || !("minute" in dateRef) || !("minute" in props.segmentValues.value)) return;
|
|
1301
|
+
const prevValue = props.segmentValues.value.minute;
|
|
1302
|
+
if (event.key === KEY_CODES.ARROW_UP || event.key === KEY_CODES.ARROW_DOWN) props.segmentValues.value.minute = minuteSecondIncrementation({
|
|
1303
|
+
event,
|
|
1304
|
+
part: "minute",
|
|
1305
|
+
dateRef: props.placeholder.value,
|
|
1306
|
+
prevValue
|
|
1307
|
+
});
|
|
1308
|
+
if (isNumberString(event.key)) {
|
|
1309
|
+
const num = Number.parseInt(event.key);
|
|
1310
|
+
const { value, moveToNext } = updateMinuteOrSecond(num, prevValue);
|
|
1311
|
+
props.segmentValues.value.minute = value;
|
|
1312
|
+
if (moveToNext) props.focusNext();
|
|
1313
|
+
}
|
|
1314
|
+
if (event.key === KEY_CODES.BACKSPACE) {
|
|
1315
|
+
props.hasLeftFocus.value = false;
|
|
1316
|
+
props.segmentValues.value.minute = deleteValue(prevValue);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
function handleSecondSegmentKeydown(event) {
|
|
1320
|
+
const dateRef = props.placeholder.value;
|
|
1321
|
+
if (!isAcceptableSegmentKey(event.key) || isSegmentNavigationKey(event.key) || !("second" in dateRef) || !("second" in props.segmentValues.value)) return;
|
|
1322
|
+
const prevValue = props.segmentValues.value.second;
|
|
1323
|
+
if (event.key === KEY_CODES.ARROW_UP || event.key === KEY_CODES.ARROW_DOWN) props.segmentValues.value.second = minuteSecondIncrementation({
|
|
1324
|
+
event,
|
|
1325
|
+
part: "second",
|
|
1326
|
+
dateRef: props.placeholder.value,
|
|
1327
|
+
prevValue
|
|
1328
|
+
});
|
|
1329
|
+
if (isNumberString(event.key)) {
|
|
1330
|
+
const num = Number.parseInt(event.key);
|
|
1331
|
+
const { value, moveToNext } = updateMinuteOrSecond(num, prevValue);
|
|
1332
|
+
props.segmentValues.value.second = value;
|
|
1333
|
+
if (moveToNext) props.focusNext();
|
|
1334
|
+
}
|
|
1335
|
+
if (event.key === KEY_CODES.BACKSPACE) {
|
|
1336
|
+
props.hasLeftFocus.value = false;
|
|
1337
|
+
props.segmentValues.value.second = deleteValue(prevValue);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
function handleDayPeriodSegmentKeydown(event) {
|
|
1341
|
+
if ((!isAcceptableSegmentKey(event.key) || isSegmentNavigationKey(event.key)) && event.key !== "a" && event.key !== "p" || !("hour" in props.placeholder.value) || !("dayPeriod" in props.segmentValues.value)) return;
|
|
1342
|
+
if (event.key === KEY_CODES.ARROW_UP || event.key === KEY_CODES.ARROW_DOWN) {
|
|
1343
|
+
if (props.segmentValues.value.dayPeriod === "AM") {
|
|
1344
|
+
props.segmentValues.value.dayPeriod = "PM";
|
|
1345
|
+
props.segmentValues.value.hour = props.segmentValues.value.hour + 12;
|
|
1346
|
+
return;
|
|
1347
|
+
}
|
|
1348
|
+
props.segmentValues.value.dayPeriod = "AM";
|
|
1349
|
+
props.segmentValues.value.hour = props.segmentValues.value.hour - 12;
|
|
1350
|
+
return;
|
|
1351
|
+
}
|
|
1352
|
+
if (["a", "A"].includes(event.key) && props.segmentValues.value.dayPeriod !== "AM") {
|
|
1353
|
+
props.segmentValues.value.dayPeriod = "AM";
|
|
1354
|
+
props.segmentValues.value.hour = props.segmentValues.value.hour - 12;
|
|
1355
|
+
return;
|
|
1356
|
+
}
|
|
1357
|
+
if (["p", "P"].includes(event.key) && props.segmentValues.value.dayPeriod !== "PM") {
|
|
1358
|
+
props.segmentValues.value.dayPeriod = "PM";
|
|
1359
|
+
props.segmentValues.value.hour = props.segmentValues.value.hour + 12;
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
function handleSegmentClick(event) {
|
|
1363
|
+
const disabled = props.disabled.value;
|
|
1364
|
+
if (disabled) event.preventDefault();
|
|
1365
|
+
}
|
|
1366
|
+
function handleSegmentKeydown(event) {
|
|
1367
|
+
const disabled = props.disabled.value;
|
|
1368
|
+
const readonly = props.readonly.value;
|
|
1369
|
+
if (event.key !== KEY_CODES.TAB) event.preventDefault();
|
|
1370
|
+
if (disabled || readonly) return;
|
|
1371
|
+
const segmentKeydownHandlers = {
|
|
1372
|
+
day: handleDaySegmentKeydown,
|
|
1373
|
+
month: handleMonthSegmentKeydown,
|
|
1374
|
+
year: handleYearSegmentKeydown,
|
|
1375
|
+
hour: handleHourSegmentKeydown,
|
|
1376
|
+
minute: handleMinuteSegmentKeydown,
|
|
1377
|
+
second: handleSecondSegmentKeydown,
|
|
1378
|
+
dayPeriod: handleDayPeriodSegmentKeydown,
|
|
1379
|
+
timeZoneName: () => {}
|
|
1380
|
+
};
|
|
1381
|
+
segmentKeydownHandlers[props.part](event);
|
|
1382
|
+
if (!isIncludedIn(event.key, [KEY_CODES.ARROW_LEFT, KEY_CODES.ARROW_RIGHT]) && event.key !== KEY_CODES.TAB && event.key !== KEY_CODES.SHIFT && isAcceptableSegmentKey(event.key)) {
|
|
1383
|
+
if (Object.values(props.segmentValues.value).every((item) => item !== null)) {
|
|
1384
|
+
const updateObject = { ...props.segmentValues.value };
|
|
1385
|
+
let dateRef = props.placeholder.value.copy();
|
|
1386
|
+
Object.keys(updateObject).forEach((part) => {
|
|
1387
|
+
const value = updateObject[part];
|
|
1388
|
+
dateRef = dateRef.set({ [part]: value });
|
|
1389
|
+
});
|
|
1390
|
+
props.modelValue.value = dateRef.copy();
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
return {
|
|
1395
|
+
handleSegmentClick,
|
|
1396
|
+
handleSegmentKeydown,
|
|
1397
|
+
attributes
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
//#endregion
|
|
1402
|
+
//#region src/date-field/date-field-root.vue?vue&type=script&setup=true&lang.ts
|
|
1403
|
+
const [injectADateFieldRootContext, provideDateFieldRootContext] = createContext("ADateFieldRoot");
|
|
1404
|
+
var date_field_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
1405
|
+
inheritAttrs: false,
|
|
1406
|
+
__name: "date-field-root",
|
|
1407
|
+
props: {
|
|
1408
|
+
defaultValue: {
|
|
1409
|
+
type: null,
|
|
1410
|
+
required: false,
|
|
1411
|
+
default: void 0
|
|
1412
|
+
},
|
|
1413
|
+
defaultPlaceholder: {
|
|
1414
|
+
type: null,
|
|
1415
|
+
required: false
|
|
1416
|
+
},
|
|
1417
|
+
placeholder: {
|
|
1418
|
+
type: null,
|
|
1419
|
+
required: false,
|
|
1420
|
+
default: void 0
|
|
1421
|
+
},
|
|
1422
|
+
modelValue: {
|
|
1423
|
+
type: null,
|
|
1424
|
+
required: false
|
|
1425
|
+
},
|
|
1426
|
+
hourCycle: {
|
|
1427
|
+
type: null,
|
|
1428
|
+
required: false
|
|
1429
|
+
},
|
|
1430
|
+
step: {
|
|
1431
|
+
type: Object,
|
|
1432
|
+
required: false
|
|
1433
|
+
},
|
|
1434
|
+
granularity: {
|
|
1435
|
+
type: String,
|
|
1436
|
+
required: false
|
|
1437
|
+
},
|
|
1438
|
+
hideTimeZone: {
|
|
1439
|
+
type: Boolean,
|
|
1440
|
+
required: false
|
|
1441
|
+
},
|
|
1442
|
+
maxValue: {
|
|
1443
|
+
type: null,
|
|
1444
|
+
required: false
|
|
1445
|
+
},
|
|
1446
|
+
minValue: {
|
|
1447
|
+
type: null,
|
|
1448
|
+
required: false
|
|
1449
|
+
},
|
|
1450
|
+
locale: {
|
|
1451
|
+
type: String,
|
|
1452
|
+
required: false
|
|
1453
|
+
},
|
|
1454
|
+
disabled: {
|
|
1455
|
+
type: Boolean,
|
|
1456
|
+
required: false,
|
|
1457
|
+
default: false
|
|
1458
|
+
},
|
|
1459
|
+
readonly: {
|
|
1460
|
+
type: Boolean,
|
|
1461
|
+
required: false,
|
|
1462
|
+
default: false
|
|
1463
|
+
},
|
|
1464
|
+
isDateUnavailable: {
|
|
1465
|
+
type: Function,
|
|
1466
|
+
required: false,
|
|
1467
|
+
default: void 0
|
|
1468
|
+
},
|
|
1469
|
+
id: {
|
|
1470
|
+
type: String,
|
|
1471
|
+
required: false
|
|
1472
|
+
},
|
|
1473
|
+
dir: {
|
|
1474
|
+
type: String,
|
|
1475
|
+
required: false
|
|
1476
|
+
},
|
|
1477
|
+
asChild: {
|
|
1478
|
+
type: Boolean,
|
|
1479
|
+
required: false
|
|
1480
|
+
},
|
|
1481
|
+
as: {
|
|
1482
|
+
type: null,
|
|
1483
|
+
required: false
|
|
1484
|
+
},
|
|
1485
|
+
name: {
|
|
1486
|
+
type: String,
|
|
1487
|
+
required: false
|
|
1488
|
+
},
|
|
1489
|
+
required: {
|
|
1490
|
+
type: Boolean,
|
|
1491
|
+
required: false
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
emits: ["update:modelValue", "update:placeholder"],
|
|
1495
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1496
|
+
const props = __props;
|
|
1497
|
+
const emits = __emit;
|
|
1498
|
+
const { disabled, readonly, isDateUnavailable: propsIsDateUnavailable, granularity, defaultValue, dir: propDir, locale: propLocale } = toRefs(props);
|
|
1499
|
+
const locale = useLocale(propLocale);
|
|
1500
|
+
const dir = useDirection(propDir);
|
|
1501
|
+
const formatter = useDateFormatter(locale.value);
|
|
1502
|
+
const { primitiveElement, currentElement: parentElement } = usePrimitiveElement();
|
|
1503
|
+
const segmentElements = ref(/* @__PURE__ */ new Set());
|
|
1504
|
+
onMounted(() => {
|
|
1505
|
+
getSegmentElements(parentElement.value).forEach((item) => {
|
|
1506
|
+
segmentElements.value.add(item);
|
|
1507
|
+
});
|
|
1508
|
+
});
|
|
1509
|
+
const modelValue = useVModel(props, "modelValue", emits, {
|
|
1510
|
+
defaultValue: defaultValue.value,
|
|
1511
|
+
passive: props.modelValue === void 0
|
|
1512
|
+
});
|
|
1513
|
+
const defaultDate = getDefaultDate({
|
|
1514
|
+
defaultPlaceholder: props.placeholder,
|
|
1515
|
+
granularity: granularity.value,
|
|
1516
|
+
defaultValue: modelValue.value,
|
|
1517
|
+
locale: props.locale
|
|
1518
|
+
});
|
|
1519
|
+
const placeholder = useVModel(props, "placeholder", emits, {
|
|
1520
|
+
defaultValue: props.defaultPlaceholder ?? defaultDate.copy(),
|
|
1521
|
+
passive: props.placeholder === void 0
|
|
1522
|
+
});
|
|
1523
|
+
const step = computed(() => normalizeDateStep(props));
|
|
1524
|
+
const inferredGranularity = computed(() => {
|
|
1525
|
+
if (props.granularity) return !hasTime(placeholder.value) ? "day" : props.granularity;
|
|
1526
|
+
return hasTime(placeholder.value) ? "minute" : "day";
|
|
1527
|
+
});
|
|
1528
|
+
const isInvalid = computed(() => {
|
|
1529
|
+
if (!modelValue.value) return false;
|
|
1530
|
+
if (propsIsDateUnavailable.value?.(modelValue.value)) return true;
|
|
1531
|
+
if (props.minValue && isDateBefore(modelValue.value, props.minValue)) return true;
|
|
1532
|
+
return Boolean(props.maxValue && isDateBefore(props.maxValue, modelValue.value));
|
|
1533
|
+
});
|
|
1534
|
+
const initialSegments = initializeSegmentValues(inferredGranularity.value);
|
|
1535
|
+
const segmentValues = ref(modelValue.value ? { ...syncSegmentValues({
|
|
1536
|
+
value: modelValue.value,
|
|
1537
|
+
formatter
|
|
1538
|
+
}) } : { ...initialSegments });
|
|
1539
|
+
const allSegmentContent = computed(() => createContent({
|
|
1540
|
+
granularity: inferredGranularity.value,
|
|
1541
|
+
dateRef: placeholder.value,
|
|
1542
|
+
formatter,
|
|
1543
|
+
hideTimeZone: props.hideTimeZone,
|
|
1544
|
+
hourCycle: props.hourCycle,
|
|
1545
|
+
segmentValues: segmentValues.value,
|
|
1546
|
+
locale
|
|
1547
|
+
}));
|
|
1548
|
+
const segmentContents = computed(() => allSegmentContent.value.arr);
|
|
1549
|
+
const editableSegmentContents = computed(() => segmentContents.value.filter(({ part }) => part !== "literal"));
|
|
1550
|
+
watch(locale, (value) => {
|
|
1551
|
+
if (formatter.getLocale() !== value) {
|
|
1552
|
+
formatter.setLocale(value);
|
|
1553
|
+
nextTick(() => {
|
|
1554
|
+
segmentElements.value.clear();
|
|
1555
|
+
getSegmentElements(parentElement.value).forEach((item) => {
|
|
1556
|
+
segmentElements.value.add(item);
|
|
1557
|
+
});
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
watch(modelValue, (modelValue_) => {
|
|
1562
|
+
if (!isNullish(modelValue_) && placeholder.value.compare(modelValue_) !== 0) placeholder.value = modelValue_.copy();
|
|
1563
|
+
});
|
|
1564
|
+
watch([modelValue, locale], ([modelValue_]) => {
|
|
1565
|
+
if (!isNullish(modelValue_)) segmentValues.value = { ...syncSegmentValues({
|
|
1566
|
+
value: modelValue_,
|
|
1567
|
+
formatter
|
|
1568
|
+
}) };
|
|
1569
|
+
else if (Object.values(segmentValues.value).every((value) => value !== null) && isNullish(modelValue_)) segmentValues.value = { ...initialSegments };
|
|
1570
|
+
});
|
|
1571
|
+
const currentFocusedElement = ref(null);
|
|
1572
|
+
const currentSegmentIndex = computed(() => Array.from(segmentElements.value).findIndex((el) => el.getAttribute("data-akar-date-field-segment") === currentFocusedElement.value?.getAttribute("data-akar-date-field-segment")));
|
|
1573
|
+
const nextFocusableSegment = computed(() => {
|
|
1574
|
+
const sign = dir.value === "rtl" ? -1 : 1;
|
|
1575
|
+
const nextCondition = sign < 0 ? currentSegmentIndex.value < 0 : currentSegmentIndex.value > segmentElements.value.size - 1;
|
|
1576
|
+
if (nextCondition) return null;
|
|
1577
|
+
const segmentToFocus = Array.from(segmentElements.value)[currentSegmentIndex.value + sign];
|
|
1578
|
+
return segmentToFocus;
|
|
1579
|
+
});
|
|
1580
|
+
const prevFocusableSegment = computed(() => {
|
|
1581
|
+
const sign = dir.value === "rtl" ? -1 : 1;
|
|
1582
|
+
const prevCondition = sign > 0 ? currentSegmentIndex.value < 0 : currentSegmentIndex.value > segmentElements.value.size - 1;
|
|
1583
|
+
if (prevCondition) return null;
|
|
1584
|
+
const segmentToFocus = Array.from(segmentElements.value)[currentSegmentIndex.value - sign];
|
|
1585
|
+
return segmentToFocus;
|
|
1586
|
+
});
|
|
1587
|
+
function handleKeydown(event) {
|
|
1588
|
+
if (!isSegmentNavigationKey(event.key)) return;
|
|
1589
|
+
if (event.key === KEY_CODES.ARROW_LEFT) prevFocusableSegment.value?.focus();
|
|
1590
|
+
if (event.key === KEY_CODES.ARROW_RIGHT) nextFocusableSegment.value?.focus();
|
|
1591
|
+
}
|
|
1592
|
+
function setFocusedElement(el) {
|
|
1593
|
+
currentFocusedElement.value = el;
|
|
1594
|
+
}
|
|
1595
|
+
provideDateFieldRootContext({
|
|
1596
|
+
isDateUnavailable: propsIsDateUnavailable.value,
|
|
1597
|
+
locale,
|
|
1598
|
+
modelValue,
|
|
1599
|
+
placeholder,
|
|
1600
|
+
disabled,
|
|
1601
|
+
formatter,
|
|
1602
|
+
hourCycle: props.hourCycle,
|
|
1603
|
+
step,
|
|
1604
|
+
readonly,
|
|
1605
|
+
segmentValues,
|
|
1606
|
+
isInvalid,
|
|
1607
|
+
segmentContents: editableSegmentContents,
|
|
1608
|
+
elements: segmentElements,
|
|
1609
|
+
setFocusedElement,
|
|
1610
|
+
focusNext() {
|
|
1611
|
+
nextFocusableSegment.value?.focus();
|
|
1612
|
+
}
|
|
1613
|
+
});
|
|
1614
|
+
__expose({ setFocusedElement });
|
|
1615
|
+
return (_ctx, _cache) => {
|
|
1616
|
+
return openBlock(), createBlock(unref(APrimitive), mergeProps(_ctx.$attrs, {
|
|
1617
|
+
ref_key: "primitiveElement",
|
|
1618
|
+
ref: primitiveElement,
|
|
1619
|
+
role: "group",
|
|
1620
|
+
"aria-disabled": unref(disabled) ? true : void 0,
|
|
1621
|
+
"data-disabled": unref(disabled) ? "" : void 0,
|
|
1622
|
+
"data-readonly": unref(readonly) ? "" : void 0,
|
|
1623
|
+
"data-invalid": isInvalid.value ? "" : void 0,
|
|
1624
|
+
dir: unref(dir),
|
|
1625
|
+
onKeydown: withKeys(handleKeydown, ["left", "right"])
|
|
1626
|
+
}), {
|
|
1627
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
|
|
1628
|
+
modelValue: unref(modelValue),
|
|
1629
|
+
segments: segmentContents.value,
|
|
1630
|
+
isInvalid: isInvalid.value
|
|
1631
|
+
}), createVNode(unref(visually_hidden_default), {
|
|
1632
|
+
id: _ctx.id,
|
|
1633
|
+
as: "input",
|
|
1634
|
+
feature: "focusable",
|
|
1635
|
+
tabindex: "-1",
|
|
1636
|
+
value: unref(modelValue) ? unref(modelValue).toString() : "",
|
|
1637
|
+
name: _ctx.name,
|
|
1638
|
+
disabled: unref(disabled),
|
|
1639
|
+
required: _ctx.required,
|
|
1640
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => Array.from(segmentElements.value)?.[0]?.focus())
|
|
1641
|
+
}, null, 8, [
|
|
1642
|
+
"id",
|
|
1643
|
+
"value",
|
|
1644
|
+
"name",
|
|
1645
|
+
"disabled",
|
|
1646
|
+
"required"
|
|
1647
|
+
])]),
|
|
1648
|
+
_: 3
|
|
1649
|
+
}, 16, [
|
|
1650
|
+
"aria-disabled",
|
|
1651
|
+
"data-disabled",
|
|
1652
|
+
"data-readonly",
|
|
1653
|
+
"data-invalid",
|
|
1654
|
+
"dir"
|
|
1655
|
+
]);
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
|
|
1660
|
+
//#endregion
|
|
1661
|
+
//#region src/date-field/date-field-root.vue
|
|
1662
|
+
var date_field_root_default = date_field_root_vue_vue_type_script_setup_true_lang_default;
|
|
1663
|
+
|
|
1664
|
+
//#endregion
|
|
6
1665
|
//#region src/date-field/date-field-input.vue?vue&type=script&setup=true&lang.ts
|
|
7
1666
|
var date_field_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
1667
|
__name: "date-field-input",
|
|
@@ -86,5 +1745,5 @@ var date_field_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__
|
|
|
86
1745
|
var date_field_input_default = date_field_input_vue_vue_type_script_setup_true_lang_default;
|
|
87
1746
|
|
|
88
1747
|
//#endregion
|
|
89
|
-
export { date_field_input_default };
|
|
1748
|
+
export { createContent, date_field_input_default, date_field_root_default, getSegmentElements, getTimeFieldSegmentElements, initializeSegmentValues, initializeTimeSegmentValues, injectADateFieldRootContext, isSegmentNavigationKey, syncSegmentValues, syncTimeSegmentValues, useDateField };
|
|
90
1749
|
//# sourceMappingURL=date-field-input.js.map
|