@temp-spotwork/ui 1.4.3
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/README.md +30 -0
- package/dist/Combination-BkpbjcWz.js +672 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/addYears-D3POA9ql.js +7 -0
- package/dist/bundle-mjs-CAy1p0fn.js +2261 -0
- package/dist/card-Cc2Qkiqr.js +41 -0
- package/dist/components/atoms/avatar/Avatar.stories.d.ts +7 -0
- package/dist/components/atoms/avatar/Avatar.stories.js +22 -0
- package/dist/components/atoms/avatar/avatar.d.ts +39 -0
- package/dist/components/atoms/avatar/avatar.js +76 -0
- package/dist/components/atoms/avatar/index.d.ts +2 -0
- package/dist/components/atoms/avatar/index.js +4 -0
- package/dist/components/atoms/avatar/statusIndicatorIcon.d.ts +3 -0
- package/dist/components/atoms/avatar/statusIndicatorIcon.js +33 -0
- package/dist/components/atoms/avatar/styles.d.ts +14 -0
- package/dist/components/atoms/avatar/styles.js +47 -0
- package/dist/components/atoms/badge/badge.d.ts +25 -0
- package/dist/components/atoms/badge/badge.js +38 -0
- package/dist/components/atoms/badge/badge.stories.d.ts +7 -0
- package/dist/components/atoms/badge/badge.stories.js +23 -0
- package/dist/components/atoms/badge/index.d.ts +2 -0
- package/dist/components/atoms/badge/index.js +4 -0
- package/dist/components/atoms/card/card.d.ts +8 -0
- package/dist/components/atoms/card/card.js +12 -0
- package/dist/components/atoms/card/card.stories.d.ts +13 -0
- package/dist/components/atoms/card/card.stories.js +86 -0
- package/dist/components/atoms/card/index.d.ts +1 -0
- package/dist/components/atoms/card/index.js +4 -0
- package/dist/components/atoms/card-content/label-value-pair/index.d.ts +2 -0
- package/dist/components/atoms/card-content/label-value-pair/index.js +4 -0
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.d.ts +30 -0
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.js +22 -0
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.d.ts +7 -0
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.js +22 -0
- package/dist/components/atoms/card-content/label-value-pair/styles.d.ts +1 -0
- package/dist/components/atoms/card-content/label-value-pair/styles.js +4 -0
- package/dist/components/atoms/card-content/note/index.d.ts +2 -0
- package/dist/components/atoms/card-content/note/index.js +4 -0
- package/dist/components/atoms/card-content/note/note.d.ts +33 -0
- package/dist/components/atoms/card-content/note/note.js +30 -0
- package/dist/components/atoms/conversation/chatheader/chatheader.d.ts +11 -0
- package/dist/components/atoms/conversation/chatheader/chatheader.js +91 -0
- package/dist/components/atoms/conversation/chatheader/index.d.ts +2 -0
- package/dist/components/atoms/conversation/chatheader/index.js +4 -0
- package/dist/components/atoms/conversation/chatheader/styles.d.ts +4 -0
- package/dist/components/atoms/conversation/chatheader/styles.js +7 -0
- package/dist/components/atoms/daybubble/recurrence-day/RecurrenceDay.stories.d.ts +7 -0
- package/dist/components/atoms/daybubble/recurrence-day/RecurrenceDay.stories.js +20 -0
- package/dist/components/atoms/daybubble/recurrence-day/index.d.ts +2 -0
- package/dist/components/atoms/daybubble/recurrence-day/index.js +4 -0
- package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.d.ts +27 -0
- package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.js +86 -0
- package/dist/components/atoms/form/calendar/calendar-date-cell.d.ts +68 -0
- package/dist/components/atoms/form/calendar/calendar-date-cell.js +82 -0
- package/dist/components/atoms/form/calendar/calendar-month.d.ts +57 -0
- package/dist/components/atoms/form/calendar/calendar-month.js +148 -0
- package/dist/components/atoms/form/calendar/calendar-utils.d.ts +43 -0
- package/dist/components/atoms/form/calendar/calendar-utils.js +11 -0
- package/dist/components/atoms/form/calendar/calendar.d.ts +20 -0
- package/dist/components/atoms/form/calendar/calendar.js +106 -0
- package/dist/components/atoms/form/calendar/calendar.stories.d.ts +14 -0
- package/dist/components/atoms/form/calendar/calendar.stories.js +215 -0
- package/dist/components/atoms/form/calendar/index.d.ts +2 -0
- package/dist/components/atoms/form/calendar/index.js +4 -0
- package/dist/components/atoms/form/calendar/month-header.d.ts +13 -0
- package/dist/components/atoms/form/calendar/month-header.js +19 -0
- package/dist/components/atoms/form/calendar/sticky-button.d.ts +24 -0
- package/dist/components/atoms/form/calendar/sticky-button.js +24 -0
- package/dist/components/atoms/form/calendar/types.d.ts +50 -0
- package/dist/components/atoms/form/calendar/types.js +1 -0
- package/dist/components/atoms/form/checkbox/checkbox.d.ts +37 -0
- package/dist/components/atoms/form/checkbox/checkbox.js +67 -0
- package/dist/components/atoms/form/checkbox/index.d.ts +2 -0
- package/dist/components/atoms/form/checkbox/index.js +4 -0
- package/dist/components/atoms/form/chips/chips.d.ts +46 -0
- package/dist/components/atoms/form/chips/chips.js +177 -0
- package/dist/components/atoms/form/chips/chips.stories.d.ts +7 -0
- package/dist/components/atoms/form/chips/chips.stories.js +24 -0
- package/dist/components/atoms/form/chips/index.d.ts +2 -0
- package/dist/components/atoms/form/chips/index.js +4 -0
- package/dist/components/atoms/form/chips/styles.d.ts +77 -0
- package/dist/components/atoms/form/chips/styles.js +55 -0
- package/dist/components/atoms/form/dateselect/date-calendar.d.ts +34 -0
- package/dist/components/atoms/form/dateselect/date-calendar.js +85 -0
- package/dist/components/atoms/form/dateselect/date-dropdown-header.d.ts +21 -0
- package/dist/components/atoms/form/dateselect/date-dropdown-header.js +46 -0
- package/dist/components/atoms/form/dateselect/date-dropdown.d.ts +70 -0
- package/dist/components/atoms/form/dateselect/date-dropdown.js +92 -0
- package/dist/components/atoms/form/dateselect/date-input.d.ts +59 -0
- package/dist/components/atoms/form/dateselect/date-input.js +3240 -0
- package/dist/components/atoms/form/dateselect/date-month-year-switch.d.ts +38 -0
- package/dist/components/atoms/form/dateselect/date-month-year-switch.js +67 -0
- package/dist/components/atoms/form/dateselect/dateselect.d.ts +62 -0
- package/dist/components/atoms/form/dateselect/dateselect.js +164 -0
- package/dist/components/atoms/form/dateselect/helpers.d.ts +36 -0
- package/dist/components/atoms/form/dateselect/helpers.js +83 -0
- package/dist/components/atoms/form/dateselect/index.d.ts +2 -0
- package/dist/components/atoms/form/dateselect/index.js +4 -0
- package/dist/components/atoms/form/dateselect/month-switch.d.ts +10 -0
- package/dist/components/atoms/form/dateselect/month-switch.js +135 -0
- package/dist/components/atoms/form/dateselect/styles.d.ts +10 -0
- package/dist/components/atoms/form/dateselect/styles.js +14 -0
- package/dist/components/atoms/form/dateselect/year-switch.d.ts +8 -0
- package/dist/components/atoms/form/dateselect/year-switch.js +134 -0
- package/dist/components/atoms/form/dropdown/dropdown.d.ts +65 -0
- package/dist/components/atoms/form/dropdown/dropdown.js +182 -0
- package/dist/components/atoms/form/dropdown/index.d.ts +2 -0
- package/dist/components/atoms/form/dropdown/index.js +4 -0
- package/dist/components/atoms/form/dropdown/styles.d.ts +13 -0
- package/dist/components/atoms/form/dropdown/styles.js +20 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.d.ts +93 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.js +197 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.d.ts +24 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +362 -0
- package/dist/components/atoms/form/dropdown-search/index.d.ts +2 -0
- package/dist/components/atoms/form/dropdown-search/index.js +4 -0
- package/dist/components/atoms/form/form-helper-text/form-helper-text.d.ts +22 -0
- package/dist/components/atoms/form/form-helper-text/form-helper-text.js +13 -0
- package/dist/components/atoms/form/form-helper-text/index.d.ts +1 -0
- package/dist/components/atoms/form/form-helper-text/index.js +4 -0
- package/dist/components/atoms/form/form-types.d.ts +4 -0
- package/dist/components/atoms/form/form-types.js +1 -0
- package/dist/components/atoms/form/multiselect/index.d.ts +2 -0
- package/dist/components/atoms/form/multiselect/index.js +4 -0
- package/dist/components/atoms/form/multiselect/multiselect.d.ts +63 -0
- package/dist/components/atoms/form/multiselect/multiselect.js +109 -0
- package/dist/components/atoms/form/navigation/index.d.ts +2 -0
- package/dist/components/atoms/form/navigation/index.js +4 -0
- package/dist/components/atoms/form/navigation/navigation.d.ts +19 -0
- package/dist/components/atoms/form/navigation/navigation.js +35 -0
- package/dist/components/atoms/form/navigation/styles.d.ts +5 -0
- package/dist/components/atoms/form/navigation/styles.js +8 -0
- package/dist/components/atoms/form/radiobutton/index.d.ts +2 -0
- package/dist/components/atoms/form/radiobutton/index.js +4 -0
- package/dist/components/atoms/form/radiobutton/radiobutton.d.ts +41 -0
- package/dist/components/atoms/form/radiobutton/radiobutton.js +82 -0
- package/dist/components/atoms/form/recurrence-week/RecurrenceWeek.stories.d.ts +7 -0
- package/dist/components/atoms/form/recurrence-week/RecurrenceWeek.stories.js +37 -0
- package/dist/components/atoms/form/recurrence-week/index.d.ts +2 -0
- package/dist/components/atoms/form/recurrence-week/index.js +4 -0
- package/dist/components/atoms/form/recurrence-week/recurrence-week.d.ts +32 -0
- package/dist/components/atoms/form/recurrence-week/recurrence-week.js +34 -0
- package/dist/components/atoms/form/stepper/Stepper.stories.d.ts +7 -0
- package/dist/components/atoms/form/stepper/Stepper.stories.js +30 -0
- package/dist/components/atoms/form/stepper/index.d.ts +2 -0
- package/dist/components/atoms/form/stepper/index.js +4 -0
- package/dist/components/atoms/form/stepper/stepper.d.ts +50 -0
- package/dist/components/atoms/form/stepper/stepper.js +156 -0
- package/dist/components/atoms/form/stepper/styles.d.ts +3 -0
- package/dist/components/atoms/form/stepper/styles.js +6 -0
- package/dist/components/atoms/form/switch/index.d.ts +2 -0
- package/dist/components/atoms/form/switch/index.js +4 -0
- package/dist/components/atoms/form/switch/switch.d.ts +41 -0
- package/dist/components/atoms/form/switch/switch.js +184 -0
- package/dist/components/atoms/form/switch/switch.props.d.ts +26 -0
- package/dist/components/atoms/form/switch/switch.props.js +19 -0
- package/dist/components/atoms/form/textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/atoms/form/textarea/Textarea.stories.js +22 -0
- package/dist/components/atoms/form/textarea/index.d.ts +2 -0
- package/dist/components/atoms/form/textarea/index.js +4 -0
- package/dist/components/atoms/form/textarea/styles.d.ts +6 -0
- package/dist/components/atoms/form/textarea/styles.js +9 -0
- package/dist/components/atoms/form/textarea/textarea.d.ts +53 -0
- package/dist/components/atoms/form/textarea/textarea.js +91 -0
- package/dist/components/atoms/form/textfield/index.d.ts +2 -0
- package/dist/components/atoms/form/textfield/index.js +4 -0
- package/dist/components/atoms/form/textfield/styles.d.ts +4 -0
- package/dist/components/atoms/form/textfield/styles.js +7 -0
- package/dist/components/atoms/form/textfield/textfield.d.ts +90 -0
- package/dist/components/atoms/form/textfield/textfield.js +144 -0
- package/dist/components/atoms/form/time-picker/index.d.ts +2 -0
- package/dist/components/atoms/form/time-picker/index.js +4 -0
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.d.ts +77 -0
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +193 -0
- package/dist/components/atoms/form/time-picker/time-picker-input.d.ts +107 -0
- package/dist/components/atoms/form/time-picker/time-picker-input.js +248 -0
- package/dist/components/atoms/form/time-picker/time-picker.d.ts +111 -0
- package/dist/components/atoms/form/time-picker/time-picker.js +126 -0
- package/dist/components/atoms/form/time-picker/time-picker.stories.d.ts +30 -0
- package/dist/components/atoms/form/time-picker/time-picker.stories.js +368 -0
- package/dist/components/atoms/form/timeselect/hours-switch.d.ts +21 -0
- package/dist/components/atoms/form/timeselect/hours-switch.js +88 -0
- package/dist/components/atoms/form/timeselect/index.d.ts +2 -0
- package/dist/components/atoms/form/timeselect/index.js +4 -0
- package/dist/components/atoms/form/timeselect/minutes-switch.d.ts +25 -0
- package/dist/components/atoms/form/timeselect/minutes-switch.js +88 -0
- package/dist/components/atoms/form/timeselect/styles.d.ts +13 -0
- package/dist/components/atoms/form/timeselect/styles.js +16 -0
- package/dist/components/atoms/form/timeselect/timeselect.d.ts +50 -0
- package/dist/components/atoms/form/timeselect/timeselect.js +220 -0
- package/dist/components/atoms/form/typeahead/index.d.ts +2 -0
- package/dist/components/atoms/form/typeahead/index.js +4 -0
- package/dist/components/atoms/form/typeahead/styles.d.ts +7 -0
- package/dist/components/atoms/form/typeahead/styles.js +11 -0
- package/dist/components/atoms/form/typeahead/typeahead.d.ts +83 -0
- package/dist/components/atoms/form/typeahead/typeahead.js +146 -0
- package/dist/components/atoms/form/utils-for-forms/state-functions.d.ts +6 -0
- package/dist/components/atoms/form/utils-for-forms/state-functions.js +8 -0
- package/dist/components/atoms/horizontal-border/horizontal-border.d.ts +21 -0
- package/dist/components/atoms/horizontal-border/horizontal-border.js +7 -0
- package/dist/components/atoms/horizontal-border/index.d.ts +1 -0
- package/dist/components/atoms/horizontal-border/index.js +4 -0
- package/dist/components/atoms/icons/iconMap.d.ts +313 -0
- package/dist/components/atoms/icons/iconMap.js +214 -0
- package/dist/components/atoms/icons/icons.d.ts +59 -0
- package/dist/components/atoms/icons/icons.js +78 -0
- package/dist/components/atoms/icons/icons.stories.d.ts +22 -0
- package/dist/components/atoms/icons/icons.stories.js +428 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/CAN.d.ts +2 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/CAN.js +12 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/USA.d.ts +2 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/USA.js +49 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/index.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/index.js +6 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/EmptyTemplate.d.ts +2 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/EmptyTemplate.js +106 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/PostAShift.d.ts +2 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/PostAShift.js +112 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/index.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/index.js +6 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/AbnormalLastShift.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/AbnormalLastShift.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Add.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Add.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/AdvancedSearch.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/AdvancedSearch.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ArrowLeft.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ArrowLeft.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ArrowRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ArrowRight.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Ascending.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Ascending.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Attach.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Attach.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Bell.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Bell.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/BellUnread.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/BellUnread.js +26 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Building.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Building.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Calendar.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Calendar.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Cancellation.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Cancellation.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Chapters.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Chapters.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/CheckIn.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/CheckIn.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronDown.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronDown.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronLeft.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronLeft.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronRight.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronUp.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronUp.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Clock.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Clock.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Contact.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Contact.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Copy.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Copy.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Cross.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Cross.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Descending.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Descending.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/DoubleTick.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/DoubleTick.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Duplicate.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Duplicate.js +24 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Edit.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Edit.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/EyeClose.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/EyeClose.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/EyeOpen.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/EyeOpen.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Feedback.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Feedback.js +25 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/File.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/File.js +12 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/FlaggedMessage.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/FlaggedMessage.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/HamburgerMenu.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/HamburgerMenu.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Jobs.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Jobs.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/KebabMenu.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/KebabMenu.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/LocationDisabled.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/LocationDisabled.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/MagnifyingGlass.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/MagnifyingGlass.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Maximize.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Maximize.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Maximize1.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Maximize1.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Minimize.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Minimize.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/NewSpotter.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/NewSpotter.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/OpenSeparately.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/OpenSeparately.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/PlaceholderIcon.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/PlaceholderIcon.js +16 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Profile.d.ts +6 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Profile.js +24 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Restore.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Restore.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Send.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Send.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Settings.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Settings.js +33 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Shifts.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Shifts.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Sidepeak.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Sidepeak.js +5 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Sort.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Sort.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Subtract.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Subtract.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Summary.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Summary.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Support.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Support.js +24 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/SwitchToClassic.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/SwitchToClassic.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Tick.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Tick.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Timer.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Timer.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Trash.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Trash.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Undo.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Undo.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Verification.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Verification.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/index.d.ts +60 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/index.js +118 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Add.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Add.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Alert.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Alert.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ArrowRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ArrowRight.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ArrowUp.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ArrowUp.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Ascending.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Ascending.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Calendar.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Calendar.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CaretDown.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CaretDown.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CaretRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CaretRight.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckIn.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckIn.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckInCircle.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckInCircle.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckOut.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckOut.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckedIn.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckedIn.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckedOut.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckedOut.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronDown.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronDown.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronLeft.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronLeft.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronRight.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronUp.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronUp.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Collapse.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Collapse.js +22 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Copy.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Copy.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Cross.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Cross.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CrossInCircle.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CrossInCircle.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Descending.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Descending.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/DistanceSmall.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/DistanceSmall.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Empty.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Empty.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Expand.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Expand.js +22 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Incomplete.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Incomplete.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Info.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Info.js +13 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/KebabMenu.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/KebabMenu.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/LocationPin.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/LocationPin.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/MagnifyingGlass.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/MagnifyingGlass.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Notes.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Notes.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/OpenSeparately.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/OpenSeparately.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/PlaceholderIcon.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/PlaceholderIcon.js +16 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Profile.d.ts +6 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Profile.js +24 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ReadStatus.d.ts +8 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ReadStatus.js +37 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Shield.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Shield.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/SidepeakSmall.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/SidepeakSmall.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Sort.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Sort.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Success.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Success.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Tick.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Tick.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/UnsavedChanges.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/UnsavedChanges.js +32 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Upload.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Upload.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Waiting.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Waiting.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Warning.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Warning.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/index.d.ts +46 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/index.js +90 -0
- package/dist/components/atoms/icons/index.d.ts +4 -0
- package/dist/components/atoms/icons/index.js +6 -0
- package/dist/components/atoms/icons/styles.d.ts +3 -0
- package/dist/components/atoms/icons/styles.js +6 -0
- package/dist/components/atoms/message/index.d.ts +2 -0
- package/dist/components/atoms/message/index.js +4 -0
- package/dist/components/atoms/message/message.d.ts +37 -0
- package/dist/components/atoms/message/message.js +60 -0
- package/dist/components/atoms/message/message.stories.d.ts +7 -0
- package/dist/components/atoms/message/message.stories.js +20 -0
- package/dist/components/atoms/message/styles.d.ts +15 -0
- package/dist/components/atoms/message/styles.js +20 -0
- package/dist/components/atoms/navigation/navigation-item/index.d.ts +2 -0
- package/dist/components/atoms/navigation/navigation-item/index.js +4 -0
- package/dist/components/atoms/navigation/navigation-item/navigation-item.d.ts +29 -0
- package/dist/components/atoms/navigation/navigation-item/navigation-item.js +64 -0
- package/dist/components/atoms/navigation/navigation-item/styles.d.ts +2 -0
- package/dist/components/atoms/navigation/navigation-item/styles.js +5 -0
- package/dist/components/atoms/small-large-text/index.d.ts +1 -0
- package/dist/components/atoms/small-large-text/index.js +4 -0
- package/dist/components/atoms/small-large-text/small-large-text.d.ts +17 -0
- package/dist/components/atoms/small-large-text/small-large-text.js +35 -0
- package/dist/components/atoms/tab/Tab.stories.d.ts +7 -0
- package/dist/components/atoms/tab/Tab.stories.js +20 -0
- package/dist/components/atoms/tab/index.d.ts +2 -0
- package/dist/components/atoms/tab/index.js +4 -0
- package/dist/components/atoms/tab/styles.d.ts +4 -0
- package/dist/components/atoms/tab/styles.js +7 -0
- package/dist/components/atoms/tab/tab.d.ts +34 -0
- package/dist/components/atoms/tab/tab.js +44 -0
- package/dist/components/atoms/tooltip/index.d.ts +1 -0
- package/dist/components/atoms/tooltip/index.js +4 -0
- package/dist/components/atoms/tooltip/tooltip.d.ts +54 -0
- package/dist/components/atoms/tooltip/tooltip.js +38 -0
- package/dist/components/atoms/tooltip/tooltip.stories.d.ts +18 -0
- package/dist/components/atoms/tooltip/tooltip.stories.js +150 -0
- package/dist/components/molecules/alert/alert.d.ts +24 -0
- package/dist/components/molecules/alert/alert.js +78 -0
- package/dist/components/molecules/alert/index.d.ts +1 -0
- package/dist/components/molecules/alert/index.js +4 -0
- package/dist/components/molecules/button/Button.stories.d.ts +7 -0
- package/dist/components/molecules/button/Button.stories.js +20 -0
- package/dist/components/molecules/button/button.d.ts +53 -0
- package/dist/components/molecules/button/button.js +91 -0
- package/dist/components/molecules/button/index.d.ts +2 -0
- package/dist/components/molecules/button/index.js +4 -0
- package/dist/components/molecules/button/loading-spinner.d.ts +7 -0
- package/dist/components/molecules/button/loading-spinner.js +44 -0
- package/dist/components/molecules/button/styles.d.ts +7 -0
- package/dist/components/molecules/button/styles.js +93 -0
- package/dist/components/molecules/card-content/notes-and-history/NotesAndHistory.stories.d.ts +7 -0
- package/dist/components/molecules/card-content/notes-and-history/NotesAndHistory.stories.js +24 -0
- package/dist/components/molecules/card-content/notes-and-history/index.d.ts +2 -0
- package/dist/components/molecules/card-content/notes-and-history/index.js +4 -0
- package/dist/components/molecules/card-content/notes-and-history/notes-and-history.d.ts +15 -0
- package/dist/components/molecules/card-content/notes-and-history/notes-and-history.js +29 -0
- package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.d.ts +7 -0
- package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.js +20 -0
- package/dist/components/molecules/collapsible-card/collapsible-card.d.ts +44 -0
- package/dist/components/molecules/collapsible-card/collapsible-card.js +87 -0
- package/dist/components/molecules/collapsible-card/index.d.ts +2 -0
- package/dist/components/molecules/collapsible-card/index.js +4 -0
- package/dist/components/molecules/conversation/contact/coloring.d.ts +6 -0
- package/dist/components/molecules/conversation/contact/coloring.js +7 -0
- package/dist/components/molecules/conversation/contact/contact.d.ts +25 -0
- package/dist/components/molecules/conversation/contact/contact.js +56 -0
- package/dist/components/molecules/conversation/contact/index.d.ts +2 -0
- package/dist/components/molecules/conversation/contact/index.js +4 -0
- package/dist/components/molecules/conversation/contact/styles.d.ts +18 -0
- package/dist/components/molecules/conversation/contact/styles.js +16 -0
- package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.d.ts +7 -0
- package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.js +20 -0
- package/dist/components/molecules/conversation/message-editor/index.d.ts +2 -0
- package/dist/components/molecules/conversation/message-editor/index.js +4 -0
- package/dist/components/molecules/conversation/message-editor/message-editor.d.ts +17 -0
- package/dist/components/molecules/conversation/message-editor/message-editor.js +38 -0
- package/dist/components/molecules/conversation/message-editor/styles.d.ts +1 -0
- package/dist/components/molecules/conversation/message-editor/styles.js +4 -0
- package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.d.ts +7 -0
- package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.js +20 -0
- package/dist/components/molecules/conversation/message-group-composer/index.d.ts +2 -0
- package/dist/components/molecules/conversation/message-group-composer/index.js +4 -0
- package/dist/components/molecules/conversation/message-group-composer/message-group-composer.d.ts +9 -0
- package/dist/components/molecules/conversation/message-group-composer/message-group-composer.js +41 -0
- package/dist/components/molecules/conversation/message-group-composer/styles.d.ts +4 -0
- package/dist/components/molecules/conversation/message-group-composer/styles.js +7 -0
- package/dist/components/molecules/datatables/cell/Cell.stories.d.ts +7 -0
- package/dist/components/molecules/datatables/cell/Cell.stories.js +20 -0
- package/dist/components/molecules/datatables/cell/cell.d.ts +62 -0
- package/dist/components/molecules/datatables/cell/cell.js +51 -0
- package/dist/components/molecules/datatables/cell/index.d.ts +2 -0
- package/dist/components/molecules/datatables/cell/index.js +4 -0
- package/dist/components/molecules/datatables/cell/styles.d.ts +3 -0
- package/dist/components/molecules/datatables/cell/styles.js +12 -0
- package/dist/components/molecules/datatables/row/Row.stories.d.ts +7 -0
- package/dist/components/molecules/datatables/row/Row.stories.js +20 -0
- package/dist/components/molecules/datatables/row/index.d.ts +2 -0
- package/dist/components/molecules/datatables/row/index.js +4 -0
- package/dist/components/molecules/datatables/row/row.d.ts +26 -0
- package/dist/components/molecules/datatables/row/row.js +21 -0
- package/dist/components/molecules/datatables/row/styles.d.ts +1 -0
- package/dist/components/molecules/datatables/row/styles.js +4 -0
- package/dist/components/molecules/datatables/row-header/RowHeader.stories.d.ts +7 -0
- package/dist/components/molecules/datatables/row-header/RowHeader.stories.js +20 -0
- package/dist/components/molecules/datatables/row-header/index.d.ts +2 -0
- package/dist/components/molecules/datatables/row-header/index.js +4 -0
- package/dist/components/molecules/datatables/row-header/row-header.d.ts +48 -0
- package/dist/components/molecules/datatables/row-header/row-header.js +63 -0
- package/dist/components/molecules/datatables/row-header/styles.d.ts +3 -0
- package/dist/components/molecules/datatables/row-header/styles.js +6 -0
- package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.d.ts +7 -0
- package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.js +20 -0
- package/dist/components/molecules/dataviz/donut-chart/donut-chart.d.ts +15 -0
- package/dist/components/molecules/dataviz/donut-chart/donut-chart.js +5519 -0
- package/dist/components/molecules/dataviz/donut-chart/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/donut-chart/index.js +4 -0
- package/dist/components/molecules/dataviz/donut-chart/styles.d.ts +11 -0
- package/dist/components/molecules/dataviz/donut-chart/styles.js +14 -0
- package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.d.ts +7 -0
- package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.js +20 -0
- package/dist/components/molecules/dataviz/dot-matrix/dot-matrix.d.ts +14 -0
- package/dist/components/molecules/dataviz/dot-matrix/dot-matrix.js +67 -0
- package/dist/components/molecules/dataviz/dot-matrix/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/dot-matrix/index.js +4 -0
- package/dist/components/molecules/dataviz/dot-matrix/styles.d.ts +8 -0
- package/dist/components/molecules/dataviz/dot-matrix/styles.js +11 -0
- package/dist/components/molecules/dataviz/legend/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/legend/index.js +4 -0
- package/dist/components/molecules/dataviz/legend/legend.d.ts +12 -0
- package/dist/components/molecules/dataviz/legend/legend.js +53 -0
- package/dist/components/molecules/dataviz/progress-bar/ProgressBar.stories.d.ts +13 -0
- package/dist/components/molecules/dataviz/progress-bar/ProgressBar.stories.js +88 -0
- package/dist/components/molecules/dataviz/progress-bar/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/progress-bar/index.js +4 -0
- package/dist/components/molecules/dataviz/progress-bar/progress-bar.d.ts +34 -0
- package/dist/components/molecules/dataviz/progress-bar/progress-bar.js +48 -0
- package/dist/components/molecules/dataviz/progress-bar/styles.d.ts +5 -0
- package/dist/components/molecules/dataviz/progress-bar/styles.js +8 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.d.ts +7 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.js +20 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/index.js +4 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/single-stacked-bar.d.ts +15 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/single-stacked-bar.js +81 -0
- package/dist/components/molecules/dialog/dialog.d.ts +25 -0
- package/dist/components/molecules/dialog/dialog.js +100 -0
- package/dist/components/molecules/dialog/index.d.ts +1 -0
- package/dist/components/molecules/dialog/index.js +4 -0
- package/dist/components/molecules/dialog/use-ui-element-size.d.ts +31 -0
- package/dist/components/molecules/dialog/use-ui-element-size.js +24 -0
- package/dist/components/molecules/drawer/Drawer.stories.d.ts +22 -0
- package/dist/components/molecules/drawer/Drawer.stories.js +383 -0
- package/dist/components/molecules/drawer/drawer.d.ts +66 -0
- package/dist/components/molecules/drawer/drawer.js +126 -0
- package/dist/components/molecules/drawer/index.d.ts +2 -0
- package/dist/components/molecules/drawer/index.js +4 -0
- package/dist/components/molecules/filter/checkbox/checkbox.d.ts +19 -0
- package/dist/components/molecules/filter/checkbox/checkbox.js +45 -0
- package/dist/components/molecules/filter/checkbox/index.d.ts +2 -0
- package/dist/components/molecules/filter/checkbox/index.js +4 -0
- package/dist/components/molecules/filter/context-search/context-search.d.ts +19 -0
- package/dist/components/molecules/filter/context-search/context-search.js +58 -0
- package/dist/components/molecules/filter/context-search/index.d.ts +2 -0
- package/dist/components/molecules/filter/context-search/index.js +4 -0
- package/dist/components/molecules/filter/date-range-selector/date-range-selector.d.ts +28 -0
- package/dist/components/molecules/filter/date-range-selector/date-range-selector.js +306 -0
- package/dist/components/molecules/filter/date-range-selector/index.d.ts +2 -0
- package/dist/components/molecules/filter/date-range-selector/index.js +4 -0
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.d.ts +7 -0
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.js +20 -0
- package/dist/components/molecules/filter/date-selector/date-selector.d.ts +31 -0
- package/dist/components/molecules/filter/date-selector/date-selector.js +243 -0
- package/dist/components/molecules/filter/date-selector/index.d.ts +2 -0
- package/dist/components/molecules/filter/date-selector/index.js +4 -0
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.d.ts +23 -0
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +172 -0
- package/dist/components/molecules/filter/dropdown-selector/index.d.ts +2 -0
- package/dist/components/molecules/filter/dropdown-selector/index.js +4 -0
- package/dist/components/molecules/filter/dropdown-selector/styles.d.ts +13 -0
- package/dist/components/molecules/filter/dropdown-selector/styles.js +22 -0
- package/dist/components/molecules/filter/range-selector/RangeSelector.stories.d.ts +7 -0
- package/dist/components/molecules/filter/range-selector/RangeSelector.stories.js +20 -0
- package/dist/components/molecules/filter/range-selector/index.d.ts +2 -0
- package/dist/components/molecules/filter/range-selector/index.js +4 -0
- package/dist/components/molecules/filter/range-selector/range-selector.d.ts +33 -0
- package/dist/components/molecules/filter/range-selector/range-selector.js +630 -0
- package/dist/components/molecules/filter/range-selector/styles.d.ts +17 -0
- package/dist/components/molecules/filter/range-selector/styles.js +25 -0
- package/dist/components/molecules/filter/segmented-control/index.d.ts +2 -0
- package/dist/components/molecules/filter/segmented-control/index.js +4 -0
- package/dist/components/molecules/filter/segmented-control/segmented-control.d.ts +23 -0
- package/dist/components/molecules/filter/segmented-control/segmented-control.js +43 -0
- package/dist/components/molecules/filter/segmented-control/styles.d.ts +7 -0
- package/dist/components/molecules/filter/segmented-control/styles.js +11 -0
- package/dist/components/molecules/form/radiogroup/index.d.ts +2 -0
- package/dist/components/molecules/form/radiogroup/index.js +4 -0
- package/dist/components/molecules/form/radiogroup/radiogroup.d.ts +66 -0
- package/dist/components/molecules/form/radiogroup/radiogroup.js +80 -0
- package/dist/components/molecules/form/radiogroup/radiogroup.stories.d.ts +12 -0
- package/dist/components/molecules/form/radiogroup/radiogroup.stories.js +95 -0
- package/dist/components/molecules/link/Link.stories.d.ts +7 -0
- package/dist/components/molecules/link/Link.stories.js +20 -0
- package/dist/components/molecules/link/index.d.ts +2 -0
- package/dist/components/molecules/link/index.js +4 -0
- package/dist/components/molecules/link/link.d.ts +34 -0
- package/dist/components/molecules/link/link.js +78 -0
- package/dist/components/molecules/link/styles.d.ts +4 -0
- package/dist/components/molecules/link/styles.js +7 -0
- package/dist/components/molecules/navigation/context-menu/context-menu.d.ts +13 -0
- package/dist/components/molecules/navigation/context-menu/context-menu.js +28 -0
- package/dist/components/molecules/navigation/header/Header.stories.d.ts +7 -0
- package/dist/components/molecules/navigation/header/Header.stories.js +20 -0
- package/dist/components/molecules/navigation/header/header.d.ts +37 -0
- package/dist/components/molecules/navigation/header/header.js +38 -0
- package/dist/components/molecules/navigation/header/index.d.ts +2 -0
- package/dist/components/molecules/navigation/header/index.js +4 -0
- package/dist/components/molecules/navigation/header/styles.d.ts +6 -0
- package/dist/components/molecules/navigation/header/styles.js +9 -0
- package/dist/components/molecules/navigation/menubar/index.d.ts +2 -0
- package/dist/components/molecules/navigation/menubar/index.js +4 -0
- package/dist/components/molecules/navigation/menubar/menubar.d.ts +27 -0
- package/dist/components/molecules/navigation/menubar/menubar.js +27 -0
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.d.ts +7 -0
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.js +20 -0
- package/dist/components/molecules/navigation/sidebar/index.d.ts +2 -0
- package/dist/components/molecules/navigation/sidebar/index.js +4 -0
- package/dist/components/molecules/navigation/sidebar/sidebar.d.ts +33 -0
- package/dist/components/molecules/navigation/sidebar/sidebar.js +53 -0
- package/dist/components/molecules/notifications/content/Content.stories.d.ts +7 -0
- package/dist/components/molecules/notifications/content/Content.stories.js +20 -0
- package/dist/components/molecules/notifications/content/coloring.d.ts +7 -0
- package/dist/components/molecules/notifications/content/coloring.js +9 -0
- package/dist/components/molecules/notifications/content/content.d.ts +29 -0
- package/dist/components/molecules/notifications/content/content.js +51 -0
- package/dist/components/molecules/notifications/content/index.d.ts +2 -0
- package/dist/components/molecules/notifications/content/index.js +4 -0
- package/dist/components/molecules/snackbar/Snackbar.stories.d.ts +16 -0
- package/dist/components/molecules/snackbar/Snackbar.stories.js +170 -0
- package/dist/components/molecules/snackbar/index.d.ts +2 -0
- package/dist/components/molecules/snackbar/index.js +4 -0
- package/dist/components/molecules/snackbar/snackbar.d.ts +41 -0
- package/dist/components/molecules/snackbar/snackbar.js +31 -0
- package/dist/components/molecules/snackbar/styles.d.ts +5 -0
- package/dist/components/molecules/snackbar/styles.js +9 -0
- package/dist/components/molecules/tab-group/index.d.ts +3 -0
- package/dist/components/molecules/tab-group/index.js +4 -0
- package/dist/components/molecules/tab-group/styles.d.ts +3 -0
- package/dist/components/molecules/tab-group/styles.js +6 -0
- package/dist/components/molecules/tab-group/tab-group.d.ts +19 -0
- package/dist/components/molecules/tab-group/tab-group.js +23 -0
- package/dist/components/molecules/tab-group/tabgroup.stories.d.ts +12 -0
- package/dist/components/molecules/tab-group/tabgroup.stories.js +285 -0
- package/dist/components/styles/colors/colormap.d.ts +277 -0
- package/dist/components/styles/colors/colormap.js +279 -0
- package/dist/components/styles/colors/colors.d.ts +1 -0
- package/dist/components/styles/colors/colors.js +89 -0
- package/dist/components/styles/colors/index.d.ts +2 -0
- package/dist/components/styles/colors/index.js +26 -0
- package/dist/components/styles/dashedBorder/DashedLineSVG.d.ts +1 -0
- package/dist/components/styles/dashedBorder/DashedLineSVG.js +17 -0
- package/dist/components/styles/dashedBorder/index.d.ts +1 -0
- package/dist/components/styles/dashedBorder/index.js +4 -0
- package/dist/components/styles/defaults/defaults.d.ts +65 -0
- package/dist/components/styles/defaults/defaults.js +72 -0
- package/dist/components/styles/defaults/index.d.ts +1 -0
- package/dist/components/styles/defaults/index.js +9 -0
- package/dist/components/styles/tailwind-config/index.d.ts +3 -0
- package/dist/components/styles/tailwind-config/index.js +109 -0
- package/dist/components/styles/tool-tip/styles.d.ts +2 -0
- package/dist/components/styles/tool-tip/styles.js +5 -0
- package/dist/components/styles/typography/index.d.ts +3 -0
- package/dist/components/styles/typography/index.js +10 -0
- package/dist/components/styles/typography/style.d.ts +50 -0
- package/dist/components/styles/typography/style.js +48 -0
- package/dist/components/styles/typography/typography.d.ts +413 -0
- package/dist/components/styles/typography/typography.js +59 -0
- package/dist/constants-BfMb81ht.js +8 -0
- package/dist/format-BwmhcciO.js +1224 -0
- package/dist/hooks/use-sticky-z-index.d.ts +31 -0
- package/dist/hooks/use-sticky-z-index.js +37 -0
- package/dist/index-BKdkX0lZ.js +924 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-C0ZrzaoZ.js +238 -0
- package/dist/index-CYyrKZeH.js +3716 -0
- package/dist/index-CnWyMXBX.js +824 -0
- package/dist/index-DNpMaKvH.js +347 -0
- package/dist/index-DfdAzObv.js +24167 -0
- package/dist/index-DotfMcM0.js +21051 -0
- package/dist/index-DrfOymtc.js +237 -0
- package/dist/index-OIdMhwsO.js +53 -0
- package/dist/index-fN7hCOo3.js +42 -0
- package/dist/index-rKs9bXHr.js +6 -0
- package/dist/isBefore-D0yKF9R5.js +8 -0
- package/dist/isToday-DmBTkQMq.js +1606 -0
- package/dist/isWithinInterval-BTUruC3j.js +11 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +20 -0
- package/dist/lodash-BRbpQ7iy.js +3676 -0
- package/dist/main.d.ts +102 -0
- package/dist/main.js +166 -0
- package/dist/purify.es-eYFoHPwR.js +528 -0
- package/dist/react-spring_web.modern-BLL8Qmtg.js +2345 -0
- package/dist/set-CXVt2sL3.js +20 -0
- package/dist/snackbar-BaF8Ts3S.js +505 -0
- package/dist/startOfToday-BPMZZniU.js +7 -0
- package/dist/startOfWeek-DBvLd9He.js +23 -0
- package/dist/toDate-DF9e2eS8.js +7 -0
- package/package.json +93 -0
|
@@ -0,0 +1,1606 @@
|
|
|
1
|
+
var U = Object.defineProperty;
|
|
2
|
+
var J = (n, s, e) => s in n ? U(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
3
|
+
var o = (n, s, e) => J(n, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { t as m } from "./toDate-DF9e2eS8.js";
|
|
5
|
+
import { a as I, c as b, s as M, g as q } from "./startOfWeek-DBvLd9He.js";
|
|
6
|
+
import { s as X, c as S, d as z, g as ee, e as te, h as Z, i as re, l as F, j as se, w as A, k as ne } from "./format-BwmhcciO.js";
|
|
7
|
+
import { c as ae, m as oe, d as ie } from "./constants-BfMb81ht.js";
|
|
8
|
+
function ce(n, s) {
|
|
9
|
+
const e = s * 7;
|
|
10
|
+
return I(n, e);
|
|
11
|
+
}
|
|
12
|
+
function ue(n) {
|
|
13
|
+
return b(n, Date.now());
|
|
14
|
+
}
|
|
15
|
+
function le(n, s) {
|
|
16
|
+
const e = X(n), r = X(s);
|
|
17
|
+
return +e == +r;
|
|
18
|
+
}
|
|
19
|
+
function wt(n, s) {
|
|
20
|
+
const e = m(n.start), r = m(n.end);
|
|
21
|
+
let t = +e > +r;
|
|
22
|
+
const a = t ? +e : +r, i = t ? r : e;
|
|
23
|
+
i.setHours(0, 0, 0, 0);
|
|
24
|
+
let h = 1;
|
|
25
|
+
const l = [];
|
|
26
|
+
for (; +i <= a; )
|
|
27
|
+
l.push(m(i)), i.setDate(i.getDate() + h), i.setHours(0, 0, 0, 0);
|
|
28
|
+
return t ? l.reverse() : l;
|
|
29
|
+
}
|
|
30
|
+
function ft(n, s) {
|
|
31
|
+
const e = m(n.start), r = m(n.end);
|
|
32
|
+
let t = +e > +r;
|
|
33
|
+
const a = t ? M(r, s) : M(e, s), i = t ? M(e, s) : M(r, s);
|
|
34
|
+
a.setHours(15), i.setHours(15);
|
|
35
|
+
const h = +i.getTime();
|
|
36
|
+
let l = a, x = (s == null ? void 0 : s.step) ?? 1;
|
|
37
|
+
if (!x) return [];
|
|
38
|
+
x < 0 && (x = -x, t = !t);
|
|
39
|
+
const T = [];
|
|
40
|
+
for (; +l <= h; )
|
|
41
|
+
l.setHours(0), T.push(m(l)), l = ce(l, x), l.setHours(15);
|
|
42
|
+
return t ? T.reverse() : T;
|
|
43
|
+
}
|
|
44
|
+
function ht(n) {
|
|
45
|
+
const s = m(n);
|
|
46
|
+
return s.setDate(1), s.setHours(0, 0, 0, 0), s;
|
|
47
|
+
}
|
|
48
|
+
function yt(n, s) {
|
|
49
|
+
var h, l, x, T;
|
|
50
|
+
const e = q(), r = (s == null ? void 0 : s.weekStartsOn) ?? ((l = (h = s == null ? void 0 : s.locale) == null ? void 0 : h.options) == null ? void 0 : l.weekStartsOn) ?? e.weekStartsOn ?? ((T = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : T.weekStartsOn) ?? 0, t = m(n), a = t.getDay(), i = (a < r ? -7 : 0) + 6 - (a - r);
|
|
51
|
+
return t.setDate(t.getDate() + i), t.setHours(23, 59, 59, 999), t;
|
|
52
|
+
}
|
|
53
|
+
function de() {
|
|
54
|
+
return Object.assign({}, q());
|
|
55
|
+
}
|
|
56
|
+
function we(n) {
|
|
57
|
+
let e = m(n).getDay();
|
|
58
|
+
return e === 0 && (e = 7), e;
|
|
59
|
+
}
|
|
60
|
+
function fe(n, s) {
|
|
61
|
+
const e = s instanceof Date ? b(s, 0) : new s(0);
|
|
62
|
+
return e.setFullYear(
|
|
63
|
+
n.getFullYear(),
|
|
64
|
+
n.getMonth(),
|
|
65
|
+
n.getDate()
|
|
66
|
+
), e.setHours(
|
|
67
|
+
n.getHours(),
|
|
68
|
+
n.getMinutes(),
|
|
69
|
+
n.getSeconds(),
|
|
70
|
+
n.getMilliseconds()
|
|
71
|
+
), e;
|
|
72
|
+
}
|
|
73
|
+
const he = 10;
|
|
74
|
+
class K {
|
|
75
|
+
constructor() {
|
|
76
|
+
o(this, "subPriority", 0);
|
|
77
|
+
}
|
|
78
|
+
validate(s, e) {
|
|
79
|
+
return !0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
class ye extends K {
|
|
83
|
+
constructor(s, e, r, t, a) {
|
|
84
|
+
super(), this.value = s, this.validateValue = e, this.setValue = r, this.priority = t, a && (this.subPriority = a);
|
|
85
|
+
}
|
|
86
|
+
validate(s, e) {
|
|
87
|
+
return this.validateValue(s, this.value, e);
|
|
88
|
+
}
|
|
89
|
+
set(s, e, r) {
|
|
90
|
+
return this.setValue(s, e, this.value, r);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
class pe extends K {
|
|
94
|
+
constructor() {
|
|
95
|
+
super(...arguments);
|
|
96
|
+
o(this, "priority", he);
|
|
97
|
+
o(this, "subPriority", -1);
|
|
98
|
+
}
|
|
99
|
+
set(e, r) {
|
|
100
|
+
return r.timestampIsSet ? e : b(e, fe(e, Date));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
class u {
|
|
104
|
+
run(s, e, r, t) {
|
|
105
|
+
const a = this.parse(s, e, r, t);
|
|
106
|
+
return a ? {
|
|
107
|
+
setter: new ye(
|
|
108
|
+
a.value,
|
|
109
|
+
this.validate,
|
|
110
|
+
this.set,
|
|
111
|
+
this.priority,
|
|
112
|
+
this.subPriority
|
|
113
|
+
),
|
|
114
|
+
rest: a.rest
|
|
115
|
+
} : null;
|
|
116
|
+
}
|
|
117
|
+
validate(s, e, r) {
|
|
118
|
+
return !0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
class xe extends u {
|
|
122
|
+
constructor() {
|
|
123
|
+
super(...arguments);
|
|
124
|
+
o(this, "priority", 140);
|
|
125
|
+
o(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
126
|
+
}
|
|
127
|
+
parse(e, r, t) {
|
|
128
|
+
switch (r) {
|
|
129
|
+
case "G":
|
|
130
|
+
case "GG":
|
|
131
|
+
case "GGG":
|
|
132
|
+
return t.era(e, { width: "abbreviated" }) || t.era(e, { width: "narrow" });
|
|
133
|
+
case "GGGGG":
|
|
134
|
+
return t.era(e, { width: "narrow" });
|
|
135
|
+
case "GGGG":
|
|
136
|
+
default:
|
|
137
|
+
return t.era(e, { width: "wide" }) || t.era(e, { width: "abbreviated" }) || t.era(e, { width: "narrow" });
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
set(e, r, t) {
|
|
141
|
+
return r.era = t, e.setFullYear(t, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const y = {
|
|
145
|
+
month: /^(1[0-2]|0?\d)/,
|
|
146
|
+
// 0 to 12
|
|
147
|
+
date: /^(3[0-1]|[0-2]?\d)/,
|
|
148
|
+
// 0 to 31
|
|
149
|
+
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
150
|
+
// 0 to 366
|
|
151
|
+
week: /^(5[0-3]|[0-4]?\d)/,
|
|
152
|
+
// 0 to 53
|
|
153
|
+
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
154
|
+
// 0 to 23
|
|
155
|
+
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
156
|
+
// 0 to 24
|
|
157
|
+
hour11h: /^(1[0-1]|0?\d)/,
|
|
158
|
+
// 0 to 11
|
|
159
|
+
hour12h: /^(1[0-2]|0?\d)/,
|
|
160
|
+
// 0 to 12
|
|
161
|
+
minute: /^[0-5]?\d/,
|
|
162
|
+
// 0 to 59
|
|
163
|
+
second: /^[0-5]?\d/,
|
|
164
|
+
// 0 to 59
|
|
165
|
+
singleDigit: /^\d/,
|
|
166
|
+
// 0 to 9
|
|
167
|
+
twoDigits: /^\d{1,2}/,
|
|
168
|
+
// 0 to 99
|
|
169
|
+
threeDigits: /^\d{1,3}/,
|
|
170
|
+
// 0 to 999
|
|
171
|
+
fourDigits: /^\d{1,4}/,
|
|
172
|
+
// 0 to 9999
|
|
173
|
+
anyDigitsSigned: /^-?\d+/,
|
|
174
|
+
singleDigitSigned: /^-?\d/,
|
|
175
|
+
// 0 to 9, -0 to -9
|
|
176
|
+
twoDigitsSigned: /^-?\d{1,2}/,
|
|
177
|
+
// 0 to 99, -0 to -99
|
|
178
|
+
threeDigitsSigned: /^-?\d{1,3}/,
|
|
179
|
+
// 0 to 999, -0 to -999
|
|
180
|
+
fourDigitsSigned: /^-?\d{1,4}/
|
|
181
|
+
// 0 to 9999, -0 to -9999
|
|
182
|
+
}, k = {
|
|
183
|
+
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
184
|
+
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
185
|
+
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
186
|
+
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
187
|
+
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
188
|
+
};
|
|
189
|
+
function p(n, s) {
|
|
190
|
+
return n && {
|
|
191
|
+
value: s(n.value),
|
|
192
|
+
rest: n.rest
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
function d(n, s) {
|
|
196
|
+
const e = s.match(n);
|
|
197
|
+
return e ? {
|
|
198
|
+
value: parseInt(e[0], 10),
|
|
199
|
+
rest: s.slice(e[0].length)
|
|
200
|
+
} : null;
|
|
201
|
+
}
|
|
202
|
+
function g(n, s) {
|
|
203
|
+
const e = s.match(n);
|
|
204
|
+
if (!e)
|
|
205
|
+
return null;
|
|
206
|
+
if (e[0] === "Z")
|
|
207
|
+
return {
|
|
208
|
+
value: 0,
|
|
209
|
+
rest: s.slice(1)
|
|
210
|
+
};
|
|
211
|
+
const r = e[1] === "+" ? 1 : -1, t = e[2] ? parseInt(e[2], 10) : 0, a = e[3] ? parseInt(e[3], 10) : 0, i = e[5] ? parseInt(e[5], 10) : 0;
|
|
212
|
+
return {
|
|
213
|
+
value: r * (t * ae + a * oe + i * ie),
|
|
214
|
+
rest: s.slice(e[0].length)
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
function $(n) {
|
|
218
|
+
return d(y.anyDigitsSigned, n);
|
|
219
|
+
}
|
|
220
|
+
function f(n, s) {
|
|
221
|
+
switch (n) {
|
|
222
|
+
case 1:
|
|
223
|
+
return d(y.singleDigit, s);
|
|
224
|
+
case 2:
|
|
225
|
+
return d(y.twoDigits, s);
|
|
226
|
+
case 3:
|
|
227
|
+
return d(y.threeDigits, s);
|
|
228
|
+
case 4:
|
|
229
|
+
return d(y.fourDigits, s);
|
|
230
|
+
default:
|
|
231
|
+
return d(new RegExp("^\\d{1," + n + "}"), s);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
function Y(n, s) {
|
|
235
|
+
switch (n) {
|
|
236
|
+
case 1:
|
|
237
|
+
return d(y.singleDigitSigned, s);
|
|
238
|
+
case 2:
|
|
239
|
+
return d(y.twoDigitsSigned, s);
|
|
240
|
+
case 3:
|
|
241
|
+
return d(y.threeDigitsSigned, s);
|
|
242
|
+
case 4:
|
|
243
|
+
return d(y.fourDigitsSigned, s);
|
|
244
|
+
default:
|
|
245
|
+
return d(new RegExp("^-?\\d{1," + n + "}"), s);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
function L(n) {
|
|
249
|
+
switch (n) {
|
|
250
|
+
case "morning":
|
|
251
|
+
return 4;
|
|
252
|
+
case "evening":
|
|
253
|
+
return 17;
|
|
254
|
+
case "pm":
|
|
255
|
+
case "noon":
|
|
256
|
+
case "afternoon":
|
|
257
|
+
return 12;
|
|
258
|
+
case "am":
|
|
259
|
+
case "midnight":
|
|
260
|
+
case "night":
|
|
261
|
+
default:
|
|
262
|
+
return 0;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
function V(n, s) {
|
|
266
|
+
const e = s > 0, r = e ? s : 1 - s;
|
|
267
|
+
let t;
|
|
268
|
+
if (r <= 50)
|
|
269
|
+
t = n || 100;
|
|
270
|
+
else {
|
|
271
|
+
const a = r + 50, i = Math.trunc(a / 100) * 100, h = n >= a % 100;
|
|
272
|
+
t = n + i - (h ? 100 : 0);
|
|
273
|
+
}
|
|
274
|
+
return e ? t : 1 - t;
|
|
275
|
+
}
|
|
276
|
+
function j(n) {
|
|
277
|
+
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
278
|
+
}
|
|
279
|
+
class be extends u {
|
|
280
|
+
constructor() {
|
|
281
|
+
super(...arguments);
|
|
282
|
+
o(this, "priority", 130);
|
|
283
|
+
o(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
284
|
+
}
|
|
285
|
+
parse(e, r, t) {
|
|
286
|
+
const a = (i) => ({
|
|
287
|
+
year: i,
|
|
288
|
+
isTwoDigitYear: r === "yy"
|
|
289
|
+
});
|
|
290
|
+
switch (r) {
|
|
291
|
+
case "y":
|
|
292
|
+
return p(f(4, e), a);
|
|
293
|
+
case "yo":
|
|
294
|
+
return p(
|
|
295
|
+
t.ordinalNumber(e, {
|
|
296
|
+
unit: "year"
|
|
297
|
+
}),
|
|
298
|
+
a
|
|
299
|
+
);
|
|
300
|
+
default:
|
|
301
|
+
return p(f(r.length, e), a);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
validate(e, r) {
|
|
305
|
+
return r.isTwoDigitYear || r.year > 0;
|
|
306
|
+
}
|
|
307
|
+
set(e, r, t) {
|
|
308
|
+
const a = e.getFullYear();
|
|
309
|
+
if (t.isTwoDigitYear) {
|
|
310
|
+
const h = V(
|
|
311
|
+
t.year,
|
|
312
|
+
a
|
|
313
|
+
);
|
|
314
|
+
return e.setFullYear(h, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
315
|
+
}
|
|
316
|
+
const i = !("era" in r) || r.era === 1 ? t.year : 1 - t.year;
|
|
317
|
+
return e.setFullYear(i, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
class me extends u {
|
|
321
|
+
constructor() {
|
|
322
|
+
super(...arguments);
|
|
323
|
+
o(this, "priority", 130);
|
|
324
|
+
o(this, "incompatibleTokens", [
|
|
325
|
+
"y",
|
|
326
|
+
"R",
|
|
327
|
+
"u",
|
|
328
|
+
"Q",
|
|
329
|
+
"q",
|
|
330
|
+
"M",
|
|
331
|
+
"L",
|
|
332
|
+
"I",
|
|
333
|
+
"d",
|
|
334
|
+
"D",
|
|
335
|
+
"i",
|
|
336
|
+
"t",
|
|
337
|
+
"T"
|
|
338
|
+
]);
|
|
339
|
+
}
|
|
340
|
+
parse(e, r, t) {
|
|
341
|
+
const a = (i) => ({
|
|
342
|
+
year: i,
|
|
343
|
+
isTwoDigitYear: r === "YY"
|
|
344
|
+
});
|
|
345
|
+
switch (r) {
|
|
346
|
+
case "Y":
|
|
347
|
+
return p(f(4, e), a);
|
|
348
|
+
case "Yo":
|
|
349
|
+
return p(
|
|
350
|
+
t.ordinalNumber(e, {
|
|
351
|
+
unit: "year"
|
|
352
|
+
}),
|
|
353
|
+
a
|
|
354
|
+
);
|
|
355
|
+
default:
|
|
356
|
+
return p(f(r.length, e), a);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
validate(e, r) {
|
|
360
|
+
return r.isTwoDigitYear || r.year > 0;
|
|
361
|
+
}
|
|
362
|
+
set(e, r, t, a) {
|
|
363
|
+
const i = S(e, a);
|
|
364
|
+
if (t.isTwoDigitYear) {
|
|
365
|
+
const l = V(
|
|
366
|
+
t.year,
|
|
367
|
+
i
|
|
368
|
+
);
|
|
369
|
+
return e.setFullYear(
|
|
370
|
+
l,
|
|
371
|
+
0,
|
|
372
|
+
a.firstWeekContainsDate
|
|
373
|
+
), e.setHours(0, 0, 0, 0), M(e, a);
|
|
374
|
+
}
|
|
375
|
+
const h = !("era" in r) || r.era === 1 ? t.year : 1 - t.year;
|
|
376
|
+
return e.setFullYear(h, 0, a.firstWeekContainsDate), e.setHours(0, 0, 0, 0), M(e, a);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
class Te extends u {
|
|
380
|
+
constructor() {
|
|
381
|
+
super(...arguments);
|
|
382
|
+
o(this, "priority", 130);
|
|
383
|
+
o(this, "incompatibleTokens", [
|
|
384
|
+
"G",
|
|
385
|
+
"y",
|
|
386
|
+
"Y",
|
|
387
|
+
"u",
|
|
388
|
+
"Q",
|
|
389
|
+
"q",
|
|
390
|
+
"M",
|
|
391
|
+
"L",
|
|
392
|
+
"w",
|
|
393
|
+
"d",
|
|
394
|
+
"D",
|
|
395
|
+
"e",
|
|
396
|
+
"c",
|
|
397
|
+
"t",
|
|
398
|
+
"T"
|
|
399
|
+
]);
|
|
400
|
+
}
|
|
401
|
+
parse(e, r) {
|
|
402
|
+
return Y(r === "R" ? 4 : r.length, e);
|
|
403
|
+
}
|
|
404
|
+
set(e, r, t) {
|
|
405
|
+
const a = b(e, 0);
|
|
406
|
+
return a.setFullYear(t, 0, 4), a.setHours(0, 0, 0, 0), z(a);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
class De extends u {
|
|
410
|
+
constructor() {
|
|
411
|
+
super(...arguments);
|
|
412
|
+
o(this, "priority", 130);
|
|
413
|
+
o(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
414
|
+
}
|
|
415
|
+
parse(e, r) {
|
|
416
|
+
return Y(r === "u" ? 4 : r.length, e);
|
|
417
|
+
}
|
|
418
|
+
set(e, r, t) {
|
|
419
|
+
return e.setFullYear(t, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
class ke extends u {
|
|
423
|
+
constructor() {
|
|
424
|
+
super(...arguments);
|
|
425
|
+
o(this, "priority", 120);
|
|
426
|
+
o(this, "incompatibleTokens", [
|
|
427
|
+
"Y",
|
|
428
|
+
"R",
|
|
429
|
+
"q",
|
|
430
|
+
"M",
|
|
431
|
+
"L",
|
|
432
|
+
"w",
|
|
433
|
+
"I",
|
|
434
|
+
"d",
|
|
435
|
+
"D",
|
|
436
|
+
"i",
|
|
437
|
+
"e",
|
|
438
|
+
"c",
|
|
439
|
+
"t",
|
|
440
|
+
"T"
|
|
441
|
+
]);
|
|
442
|
+
}
|
|
443
|
+
parse(e, r, t) {
|
|
444
|
+
switch (r) {
|
|
445
|
+
case "Q":
|
|
446
|
+
case "QQ":
|
|
447
|
+
return f(r.length, e);
|
|
448
|
+
case "Qo":
|
|
449
|
+
return t.ordinalNumber(e, { unit: "quarter" });
|
|
450
|
+
case "QQQ":
|
|
451
|
+
return t.quarter(e, {
|
|
452
|
+
width: "abbreviated",
|
|
453
|
+
context: "formatting"
|
|
454
|
+
}) || t.quarter(e, {
|
|
455
|
+
width: "narrow",
|
|
456
|
+
context: "formatting"
|
|
457
|
+
});
|
|
458
|
+
case "QQQQQ":
|
|
459
|
+
return t.quarter(e, {
|
|
460
|
+
width: "narrow",
|
|
461
|
+
context: "formatting"
|
|
462
|
+
});
|
|
463
|
+
case "QQQQ":
|
|
464
|
+
default:
|
|
465
|
+
return t.quarter(e, {
|
|
466
|
+
width: "wide",
|
|
467
|
+
context: "formatting"
|
|
468
|
+
}) || t.quarter(e, {
|
|
469
|
+
width: "abbreviated",
|
|
470
|
+
context: "formatting"
|
|
471
|
+
}) || t.quarter(e, {
|
|
472
|
+
width: "narrow",
|
|
473
|
+
context: "formatting"
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
validate(e, r) {
|
|
478
|
+
return r >= 1 && r <= 4;
|
|
479
|
+
}
|
|
480
|
+
set(e, r, t) {
|
|
481
|
+
return e.setMonth((t - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
class ge extends u {
|
|
485
|
+
constructor() {
|
|
486
|
+
super(...arguments);
|
|
487
|
+
o(this, "priority", 120);
|
|
488
|
+
o(this, "incompatibleTokens", [
|
|
489
|
+
"Y",
|
|
490
|
+
"R",
|
|
491
|
+
"Q",
|
|
492
|
+
"M",
|
|
493
|
+
"L",
|
|
494
|
+
"w",
|
|
495
|
+
"I",
|
|
496
|
+
"d",
|
|
497
|
+
"D",
|
|
498
|
+
"i",
|
|
499
|
+
"e",
|
|
500
|
+
"c",
|
|
501
|
+
"t",
|
|
502
|
+
"T"
|
|
503
|
+
]);
|
|
504
|
+
}
|
|
505
|
+
parse(e, r, t) {
|
|
506
|
+
switch (r) {
|
|
507
|
+
case "q":
|
|
508
|
+
case "qq":
|
|
509
|
+
return f(r.length, e);
|
|
510
|
+
case "qo":
|
|
511
|
+
return t.ordinalNumber(e, { unit: "quarter" });
|
|
512
|
+
case "qqq":
|
|
513
|
+
return t.quarter(e, {
|
|
514
|
+
width: "abbreviated",
|
|
515
|
+
context: "standalone"
|
|
516
|
+
}) || t.quarter(e, {
|
|
517
|
+
width: "narrow",
|
|
518
|
+
context: "standalone"
|
|
519
|
+
});
|
|
520
|
+
case "qqqqq":
|
|
521
|
+
return t.quarter(e, {
|
|
522
|
+
width: "narrow",
|
|
523
|
+
context: "standalone"
|
|
524
|
+
});
|
|
525
|
+
case "qqqq":
|
|
526
|
+
default:
|
|
527
|
+
return t.quarter(e, {
|
|
528
|
+
width: "wide",
|
|
529
|
+
context: "standalone"
|
|
530
|
+
}) || t.quarter(e, {
|
|
531
|
+
width: "abbreviated",
|
|
532
|
+
context: "standalone"
|
|
533
|
+
}) || t.quarter(e, {
|
|
534
|
+
width: "narrow",
|
|
535
|
+
context: "standalone"
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
validate(e, r) {
|
|
540
|
+
return r >= 1 && r <= 4;
|
|
541
|
+
}
|
|
542
|
+
set(e, r, t) {
|
|
543
|
+
return e.setMonth((t - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
class Pe extends u {
|
|
547
|
+
constructor() {
|
|
548
|
+
super(...arguments);
|
|
549
|
+
o(this, "incompatibleTokens", [
|
|
550
|
+
"Y",
|
|
551
|
+
"R",
|
|
552
|
+
"q",
|
|
553
|
+
"Q",
|
|
554
|
+
"L",
|
|
555
|
+
"w",
|
|
556
|
+
"I",
|
|
557
|
+
"D",
|
|
558
|
+
"i",
|
|
559
|
+
"e",
|
|
560
|
+
"c",
|
|
561
|
+
"t",
|
|
562
|
+
"T"
|
|
563
|
+
]);
|
|
564
|
+
o(this, "priority", 110);
|
|
565
|
+
}
|
|
566
|
+
parse(e, r, t) {
|
|
567
|
+
const a = (i) => i - 1;
|
|
568
|
+
switch (r) {
|
|
569
|
+
case "M":
|
|
570
|
+
return p(
|
|
571
|
+
d(y.month, e),
|
|
572
|
+
a
|
|
573
|
+
);
|
|
574
|
+
case "MM":
|
|
575
|
+
return p(f(2, e), a);
|
|
576
|
+
case "Mo":
|
|
577
|
+
return p(
|
|
578
|
+
t.ordinalNumber(e, {
|
|
579
|
+
unit: "month"
|
|
580
|
+
}),
|
|
581
|
+
a
|
|
582
|
+
);
|
|
583
|
+
case "MMM":
|
|
584
|
+
return t.month(e, {
|
|
585
|
+
width: "abbreviated",
|
|
586
|
+
context: "formatting"
|
|
587
|
+
}) || t.month(e, { width: "narrow", context: "formatting" });
|
|
588
|
+
case "MMMMM":
|
|
589
|
+
return t.month(e, {
|
|
590
|
+
width: "narrow",
|
|
591
|
+
context: "formatting"
|
|
592
|
+
});
|
|
593
|
+
case "MMMM":
|
|
594
|
+
default:
|
|
595
|
+
return t.month(e, { width: "wide", context: "formatting" }) || t.month(e, {
|
|
596
|
+
width: "abbreviated",
|
|
597
|
+
context: "formatting"
|
|
598
|
+
}) || t.month(e, { width: "narrow", context: "formatting" });
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
validate(e, r) {
|
|
602
|
+
return r >= 0 && r <= 11;
|
|
603
|
+
}
|
|
604
|
+
set(e, r, t) {
|
|
605
|
+
return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
class Me extends u {
|
|
609
|
+
constructor() {
|
|
610
|
+
super(...arguments);
|
|
611
|
+
o(this, "priority", 110);
|
|
612
|
+
o(this, "incompatibleTokens", [
|
|
613
|
+
"Y",
|
|
614
|
+
"R",
|
|
615
|
+
"q",
|
|
616
|
+
"Q",
|
|
617
|
+
"M",
|
|
618
|
+
"w",
|
|
619
|
+
"I",
|
|
620
|
+
"D",
|
|
621
|
+
"i",
|
|
622
|
+
"e",
|
|
623
|
+
"c",
|
|
624
|
+
"t",
|
|
625
|
+
"T"
|
|
626
|
+
]);
|
|
627
|
+
}
|
|
628
|
+
parse(e, r, t) {
|
|
629
|
+
const a = (i) => i - 1;
|
|
630
|
+
switch (r) {
|
|
631
|
+
case "L":
|
|
632
|
+
return p(
|
|
633
|
+
d(y.month, e),
|
|
634
|
+
a
|
|
635
|
+
);
|
|
636
|
+
case "LL":
|
|
637
|
+
return p(f(2, e), a);
|
|
638
|
+
case "Lo":
|
|
639
|
+
return p(
|
|
640
|
+
t.ordinalNumber(e, {
|
|
641
|
+
unit: "month"
|
|
642
|
+
}),
|
|
643
|
+
a
|
|
644
|
+
);
|
|
645
|
+
case "LLL":
|
|
646
|
+
return t.month(e, {
|
|
647
|
+
width: "abbreviated",
|
|
648
|
+
context: "standalone"
|
|
649
|
+
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
650
|
+
case "LLLLL":
|
|
651
|
+
return t.month(e, {
|
|
652
|
+
width: "narrow",
|
|
653
|
+
context: "standalone"
|
|
654
|
+
});
|
|
655
|
+
case "LLLL":
|
|
656
|
+
default:
|
|
657
|
+
return t.month(e, { width: "wide", context: "standalone" }) || t.month(e, {
|
|
658
|
+
width: "abbreviated",
|
|
659
|
+
context: "standalone"
|
|
660
|
+
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
validate(e, r) {
|
|
664
|
+
return r >= 0 && r <= 11;
|
|
665
|
+
}
|
|
666
|
+
set(e, r, t) {
|
|
667
|
+
return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
function Oe(n, s, e) {
|
|
671
|
+
const r = m(n), t = ee(r, e) - s;
|
|
672
|
+
return r.setDate(r.getDate() - t * 7), r;
|
|
673
|
+
}
|
|
674
|
+
class _e extends u {
|
|
675
|
+
constructor() {
|
|
676
|
+
super(...arguments);
|
|
677
|
+
o(this, "priority", 100);
|
|
678
|
+
o(this, "incompatibleTokens", [
|
|
679
|
+
"y",
|
|
680
|
+
"R",
|
|
681
|
+
"u",
|
|
682
|
+
"q",
|
|
683
|
+
"Q",
|
|
684
|
+
"M",
|
|
685
|
+
"L",
|
|
686
|
+
"I",
|
|
687
|
+
"d",
|
|
688
|
+
"D",
|
|
689
|
+
"i",
|
|
690
|
+
"t",
|
|
691
|
+
"T"
|
|
692
|
+
]);
|
|
693
|
+
}
|
|
694
|
+
parse(e, r, t) {
|
|
695
|
+
switch (r) {
|
|
696
|
+
case "w":
|
|
697
|
+
return d(y.week, e);
|
|
698
|
+
case "wo":
|
|
699
|
+
return t.ordinalNumber(e, { unit: "week" });
|
|
700
|
+
default:
|
|
701
|
+
return f(r.length, e);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
validate(e, r) {
|
|
705
|
+
return r >= 1 && r <= 53;
|
|
706
|
+
}
|
|
707
|
+
set(e, r, t, a) {
|
|
708
|
+
return M(Oe(e, t, a), a);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
function He(n, s) {
|
|
712
|
+
const e = m(n), r = te(e) - s;
|
|
713
|
+
return e.setDate(e.getDate() - r * 7), e;
|
|
714
|
+
}
|
|
715
|
+
class Ye extends u {
|
|
716
|
+
constructor() {
|
|
717
|
+
super(...arguments);
|
|
718
|
+
o(this, "priority", 100);
|
|
719
|
+
o(this, "incompatibleTokens", [
|
|
720
|
+
"y",
|
|
721
|
+
"Y",
|
|
722
|
+
"u",
|
|
723
|
+
"q",
|
|
724
|
+
"Q",
|
|
725
|
+
"M",
|
|
726
|
+
"L",
|
|
727
|
+
"w",
|
|
728
|
+
"d",
|
|
729
|
+
"D",
|
|
730
|
+
"e",
|
|
731
|
+
"c",
|
|
732
|
+
"t",
|
|
733
|
+
"T"
|
|
734
|
+
]);
|
|
735
|
+
}
|
|
736
|
+
parse(e, r, t) {
|
|
737
|
+
switch (r) {
|
|
738
|
+
case "I":
|
|
739
|
+
return d(y.week, e);
|
|
740
|
+
case "Io":
|
|
741
|
+
return t.ordinalNumber(e, { unit: "week" });
|
|
742
|
+
default:
|
|
743
|
+
return f(r.length, e);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
validate(e, r) {
|
|
747
|
+
return r >= 1 && r <= 53;
|
|
748
|
+
}
|
|
749
|
+
set(e, r, t) {
|
|
750
|
+
return z(He(e, t));
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
const Ee = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ie = [
|
|
754
|
+
31,
|
|
755
|
+
29,
|
|
756
|
+
31,
|
|
757
|
+
30,
|
|
758
|
+
31,
|
|
759
|
+
30,
|
|
760
|
+
31,
|
|
761
|
+
31,
|
|
762
|
+
30,
|
|
763
|
+
31,
|
|
764
|
+
30,
|
|
765
|
+
31
|
|
766
|
+
];
|
|
767
|
+
class qe extends u {
|
|
768
|
+
constructor() {
|
|
769
|
+
super(...arguments);
|
|
770
|
+
o(this, "priority", 90);
|
|
771
|
+
o(this, "subPriority", 1);
|
|
772
|
+
o(this, "incompatibleTokens", [
|
|
773
|
+
"Y",
|
|
774
|
+
"R",
|
|
775
|
+
"q",
|
|
776
|
+
"Q",
|
|
777
|
+
"w",
|
|
778
|
+
"I",
|
|
779
|
+
"D",
|
|
780
|
+
"i",
|
|
781
|
+
"e",
|
|
782
|
+
"c",
|
|
783
|
+
"t",
|
|
784
|
+
"T"
|
|
785
|
+
]);
|
|
786
|
+
}
|
|
787
|
+
parse(e, r, t) {
|
|
788
|
+
switch (r) {
|
|
789
|
+
case "d":
|
|
790
|
+
return d(y.date, e);
|
|
791
|
+
case "do":
|
|
792
|
+
return t.ordinalNumber(e, { unit: "date" });
|
|
793
|
+
default:
|
|
794
|
+
return f(r.length, e);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
validate(e, r) {
|
|
798
|
+
const t = e.getFullYear(), a = j(t), i = e.getMonth();
|
|
799
|
+
return a ? r >= 1 && r <= Ie[i] : r >= 1 && r <= Ee[i];
|
|
800
|
+
}
|
|
801
|
+
set(e, r, t) {
|
|
802
|
+
return e.setDate(t), e.setHours(0, 0, 0, 0), e;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
class Le extends u {
|
|
806
|
+
constructor() {
|
|
807
|
+
super(...arguments);
|
|
808
|
+
o(this, "priority", 90);
|
|
809
|
+
o(this, "subpriority", 1);
|
|
810
|
+
o(this, "incompatibleTokens", [
|
|
811
|
+
"Y",
|
|
812
|
+
"R",
|
|
813
|
+
"q",
|
|
814
|
+
"Q",
|
|
815
|
+
"M",
|
|
816
|
+
"L",
|
|
817
|
+
"w",
|
|
818
|
+
"I",
|
|
819
|
+
"d",
|
|
820
|
+
"E",
|
|
821
|
+
"i",
|
|
822
|
+
"e",
|
|
823
|
+
"c",
|
|
824
|
+
"t",
|
|
825
|
+
"T"
|
|
826
|
+
]);
|
|
827
|
+
}
|
|
828
|
+
parse(e, r, t) {
|
|
829
|
+
switch (r) {
|
|
830
|
+
case "D":
|
|
831
|
+
case "DD":
|
|
832
|
+
return d(y.dayOfYear, e);
|
|
833
|
+
case "Do":
|
|
834
|
+
return t.ordinalNumber(e, { unit: "date" });
|
|
835
|
+
default:
|
|
836
|
+
return f(r.length, e);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
validate(e, r) {
|
|
840
|
+
const t = e.getFullYear();
|
|
841
|
+
return j(t) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
|
|
842
|
+
}
|
|
843
|
+
set(e, r, t) {
|
|
844
|
+
return e.setMonth(0, t), e.setHours(0, 0, 0, 0), e;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
function N(n, s, e) {
|
|
848
|
+
var O, H, P, _;
|
|
849
|
+
const r = q(), t = (e == null ? void 0 : e.weekStartsOn) ?? ((H = (O = e == null ? void 0 : e.locale) == null ? void 0 : O.options) == null ? void 0 : H.weekStartsOn) ?? r.weekStartsOn ?? ((_ = (P = r.locale) == null ? void 0 : P.options) == null ? void 0 : _.weekStartsOn) ?? 0, a = m(n), i = a.getDay(), l = (s % 7 + 7) % 7, x = 7 - t, T = s < 0 || s > 6 ? s - (i + x) % 7 : (l + x) % 7 - (i + x) % 7;
|
|
850
|
+
return I(a, T);
|
|
851
|
+
}
|
|
852
|
+
class Ne extends u {
|
|
853
|
+
constructor() {
|
|
854
|
+
super(...arguments);
|
|
855
|
+
o(this, "priority", 90);
|
|
856
|
+
o(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
857
|
+
}
|
|
858
|
+
parse(e, r, t) {
|
|
859
|
+
switch (r) {
|
|
860
|
+
case "E":
|
|
861
|
+
case "EE":
|
|
862
|
+
case "EEE":
|
|
863
|
+
return t.day(e, {
|
|
864
|
+
width: "abbreviated",
|
|
865
|
+
context: "formatting"
|
|
866
|
+
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
867
|
+
case "EEEEE":
|
|
868
|
+
return t.day(e, {
|
|
869
|
+
width: "narrow",
|
|
870
|
+
context: "formatting"
|
|
871
|
+
});
|
|
872
|
+
case "EEEEEE":
|
|
873
|
+
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
874
|
+
case "EEEE":
|
|
875
|
+
default:
|
|
876
|
+
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
877
|
+
width: "abbreviated",
|
|
878
|
+
context: "formatting"
|
|
879
|
+
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
validate(e, r) {
|
|
883
|
+
return r >= 0 && r <= 6;
|
|
884
|
+
}
|
|
885
|
+
set(e, r, t, a) {
|
|
886
|
+
return e = N(e, t, a), e.setHours(0, 0, 0, 0), e;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
class ve extends u {
|
|
890
|
+
constructor() {
|
|
891
|
+
super(...arguments);
|
|
892
|
+
o(this, "priority", 90);
|
|
893
|
+
o(this, "incompatibleTokens", [
|
|
894
|
+
"y",
|
|
895
|
+
"R",
|
|
896
|
+
"u",
|
|
897
|
+
"q",
|
|
898
|
+
"Q",
|
|
899
|
+
"M",
|
|
900
|
+
"L",
|
|
901
|
+
"I",
|
|
902
|
+
"d",
|
|
903
|
+
"D",
|
|
904
|
+
"E",
|
|
905
|
+
"i",
|
|
906
|
+
"c",
|
|
907
|
+
"t",
|
|
908
|
+
"T"
|
|
909
|
+
]);
|
|
910
|
+
}
|
|
911
|
+
parse(e, r, t, a) {
|
|
912
|
+
const i = (h) => {
|
|
913
|
+
const l = Math.floor((h - 1) / 7) * 7;
|
|
914
|
+
return (h + a.weekStartsOn + 6) % 7 + l;
|
|
915
|
+
};
|
|
916
|
+
switch (r) {
|
|
917
|
+
case "e":
|
|
918
|
+
case "ee":
|
|
919
|
+
return p(f(r.length, e), i);
|
|
920
|
+
case "eo":
|
|
921
|
+
return p(
|
|
922
|
+
t.ordinalNumber(e, {
|
|
923
|
+
unit: "day"
|
|
924
|
+
}),
|
|
925
|
+
i
|
|
926
|
+
);
|
|
927
|
+
case "eee":
|
|
928
|
+
return t.day(e, {
|
|
929
|
+
width: "abbreviated",
|
|
930
|
+
context: "formatting"
|
|
931
|
+
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
932
|
+
case "eeeee":
|
|
933
|
+
return t.day(e, {
|
|
934
|
+
width: "narrow",
|
|
935
|
+
context: "formatting"
|
|
936
|
+
});
|
|
937
|
+
case "eeeeee":
|
|
938
|
+
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
939
|
+
case "eeee":
|
|
940
|
+
default:
|
|
941
|
+
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
942
|
+
width: "abbreviated",
|
|
943
|
+
context: "formatting"
|
|
944
|
+
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
validate(e, r) {
|
|
948
|
+
return r >= 0 && r <= 6;
|
|
949
|
+
}
|
|
950
|
+
set(e, r, t, a) {
|
|
951
|
+
return e = N(e, t, a), e.setHours(0, 0, 0, 0), e;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
class Qe extends u {
|
|
955
|
+
constructor() {
|
|
956
|
+
super(...arguments);
|
|
957
|
+
o(this, "priority", 90);
|
|
958
|
+
o(this, "incompatibleTokens", [
|
|
959
|
+
"y",
|
|
960
|
+
"R",
|
|
961
|
+
"u",
|
|
962
|
+
"q",
|
|
963
|
+
"Q",
|
|
964
|
+
"M",
|
|
965
|
+
"L",
|
|
966
|
+
"I",
|
|
967
|
+
"d",
|
|
968
|
+
"D",
|
|
969
|
+
"E",
|
|
970
|
+
"i",
|
|
971
|
+
"e",
|
|
972
|
+
"t",
|
|
973
|
+
"T"
|
|
974
|
+
]);
|
|
975
|
+
}
|
|
976
|
+
parse(e, r, t, a) {
|
|
977
|
+
const i = (h) => {
|
|
978
|
+
const l = Math.floor((h - 1) / 7) * 7;
|
|
979
|
+
return (h + a.weekStartsOn + 6) % 7 + l;
|
|
980
|
+
};
|
|
981
|
+
switch (r) {
|
|
982
|
+
case "c":
|
|
983
|
+
case "cc":
|
|
984
|
+
return p(f(r.length, e), i);
|
|
985
|
+
case "co":
|
|
986
|
+
return p(
|
|
987
|
+
t.ordinalNumber(e, {
|
|
988
|
+
unit: "day"
|
|
989
|
+
}),
|
|
990
|
+
i
|
|
991
|
+
);
|
|
992
|
+
case "ccc":
|
|
993
|
+
return t.day(e, {
|
|
994
|
+
width: "abbreviated",
|
|
995
|
+
context: "standalone"
|
|
996
|
+
}) || t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
997
|
+
case "ccccc":
|
|
998
|
+
return t.day(e, {
|
|
999
|
+
width: "narrow",
|
|
1000
|
+
context: "standalone"
|
|
1001
|
+
});
|
|
1002
|
+
case "cccccc":
|
|
1003
|
+
return t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
1004
|
+
case "cccc":
|
|
1005
|
+
default:
|
|
1006
|
+
return t.day(e, { width: "wide", context: "standalone" }) || t.day(e, {
|
|
1007
|
+
width: "abbreviated",
|
|
1008
|
+
context: "standalone"
|
|
1009
|
+
}) || t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
validate(e, r) {
|
|
1013
|
+
return r >= 0 && r <= 6;
|
|
1014
|
+
}
|
|
1015
|
+
set(e, r, t, a) {
|
|
1016
|
+
return e = N(e, t, a), e.setHours(0, 0, 0, 0), e;
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
function Re(n, s) {
|
|
1020
|
+
const e = m(n), r = we(e), t = s - r;
|
|
1021
|
+
return I(e, t);
|
|
1022
|
+
}
|
|
1023
|
+
class We extends u {
|
|
1024
|
+
constructor() {
|
|
1025
|
+
super(...arguments);
|
|
1026
|
+
o(this, "priority", 90);
|
|
1027
|
+
o(this, "incompatibleTokens", [
|
|
1028
|
+
"y",
|
|
1029
|
+
"Y",
|
|
1030
|
+
"u",
|
|
1031
|
+
"q",
|
|
1032
|
+
"Q",
|
|
1033
|
+
"M",
|
|
1034
|
+
"L",
|
|
1035
|
+
"w",
|
|
1036
|
+
"d",
|
|
1037
|
+
"D",
|
|
1038
|
+
"E",
|
|
1039
|
+
"e",
|
|
1040
|
+
"c",
|
|
1041
|
+
"t",
|
|
1042
|
+
"T"
|
|
1043
|
+
]);
|
|
1044
|
+
}
|
|
1045
|
+
parse(e, r, t) {
|
|
1046
|
+
const a = (i) => i === 0 ? 7 : i;
|
|
1047
|
+
switch (r) {
|
|
1048
|
+
case "i":
|
|
1049
|
+
case "ii":
|
|
1050
|
+
return f(r.length, e);
|
|
1051
|
+
case "io":
|
|
1052
|
+
return t.ordinalNumber(e, { unit: "day" });
|
|
1053
|
+
case "iii":
|
|
1054
|
+
return p(
|
|
1055
|
+
t.day(e, {
|
|
1056
|
+
width: "abbreviated",
|
|
1057
|
+
context: "formatting"
|
|
1058
|
+
}) || t.day(e, {
|
|
1059
|
+
width: "short",
|
|
1060
|
+
context: "formatting"
|
|
1061
|
+
}) || t.day(e, {
|
|
1062
|
+
width: "narrow",
|
|
1063
|
+
context: "formatting"
|
|
1064
|
+
}),
|
|
1065
|
+
a
|
|
1066
|
+
);
|
|
1067
|
+
case "iiiii":
|
|
1068
|
+
return p(
|
|
1069
|
+
t.day(e, {
|
|
1070
|
+
width: "narrow",
|
|
1071
|
+
context: "formatting"
|
|
1072
|
+
}),
|
|
1073
|
+
a
|
|
1074
|
+
);
|
|
1075
|
+
case "iiiiii":
|
|
1076
|
+
return p(
|
|
1077
|
+
t.day(e, {
|
|
1078
|
+
width: "short",
|
|
1079
|
+
context: "formatting"
|
|
1080
|
+
}) || t.day(e, {
|
|
1081
|
+
width: "narrow",
|
|
1082
|
+
context: "formatting"
|
|
1083
|
+
}),
|
|
1084
|
+
a
|
|
1085
|
+
);
|
|
1086
|
+
case "iiii":
|
|
1087
|
+
default:
|
|
1088
|
+
return p(
|
|
1089
|
+
t.day(e, {
|
|
1090
|
+
width: "wide",
|
|
1091
|
+
context: "formatting"
|
|
1092
|
+
}) || t.day(e, {
|
|
1093
|
+
width: "abbreviated",
|
|
1094
|
+
context: "formatting"
|
|
1095
|
+
}) || t.day(e, {
|
|
1096
|
+
width: "short",
|
|
1097
|
+
context: "formatting"
|
|
1098
|
+
}) || t.day(e, {
|
|
1099
|
+
width: "narrow",
|
|
1100
|
+
context: "formatting"
|
|
1101
|
+
}),
|
|
1102
|
+
a
|
|
1103
|
+
);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
validate(e, r) {
|
|
1107
|
+
return r >= 1 && r <= 7;
|
|
1108
|
+
}
|
|
1109
|
+
set(e, r, t) {
|
|
1110
|
+
return e = Re(e, t), e.setHours(0, 0, 0, 0), e;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
class Ce extends u {
|
|
1114
|
+
constructor() {
|
|
1115
|
+
super(...arguments);
|
|
1116
|
+
o(this, "priority", 80);
|
|
1117
|
+
o(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
1118
|
+
}
|
|
1119
|
+
parse(e, r, t) {
|
|
1120
|
+
switch (r) {
|
|
1121
|
+
case "a":
|
|
1122
|
+
case "aa":
|
|
1123
|
+
case "aaa":
|
|
1124
|
+
return t.dayPeriod(e, {
|
|
1125
|
+
width: "abbreviated",
|
|
1126
|
+
context: "formatting"
|
|
1127
|
+
}) || t.dayPeriod(e, {
|
|
1128
|
+
width: "narrow",
|
|
1129
|
+
context: "formatting"
|
|
1130
|
+
});
|
|
1131
|
+
case "aaaaa":
|
|
1132
|
+
return t.dayPeriod(e, {
|
|
1133
|
+
width: "narrow",
|
|
1134
|
+
context: "formatting"
|
|
1135
|
+
});
|
|
1136
|
+
case "aaaa":
|
|
1137
|
+
default:
|
|
1138
|
+
return t.dayPeriod(e, {
|
|
1139
|
+
width: "wide",
|
|
1140
|
+
context: "formatting"
|
|
1141
|
+
}) || t.dayPeriod(e, {
|
|
1142
|
+
width: "abbreviated",
|
|
1143
|
+
context: "formatting"
|
|
1144
|
+
}) || t.dayPeriod(e, {
|
|
1145
|
+
width: "narrow",
|
|
1146
|
+
context: "formatting"
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
set(e, r, t) {
|
|
1151
|
+
return e.setHours(L(t), 0, 0, 0), e;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
class Be extends u {
|
|
1155
|
+
constructor() {
|
|
1156
|
+
super(...arguments);
|
|
1157
|
+
o(this, "priority", 80);
|
|
1158
|
+
o(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
1159
|
+
}
|
|
1160
|
+
parse(e, r, t) {
|
|
1161
|
+
switch (r) {
|
|
1162
|
+
case "b":
|
|
1163
|
+
case "bb":
|
|
1164
|
+
case "bbb":
|
|
1165
|
+
return t.dayPeriod(e, {
|
|
1166
|
+
width: "abbreviated",
|
|
1167
|
+
context: "formatting"
|
|
1168
|
+
}) || t.dayPeriod(e, {
|
|
1169
|
+
width: "narrow",
|
|
1170
|
+
context: "formatting"
|
|
1171
|
+
});
|
|
1172
|
+
case "bbbbb":
|
|
1173
|
+
return t.dayPeriod(e, {
|
|
1174
|
+
width: "narrow",
|
|
1175
|
+
context: "formatting"
|
|
1176
|
+
});
|
|
1177
|
+
case "bbbb":
|
|
1178
|
+
default:
|
|
1179
|
+
return t.dayPeriod(e, {
|
|
1180
|
+
width: "wide",
|
|
1181
|
+
context: "formatting"
|
|
1182
|
+
}) || t.dayPeriod(e, {
|
|
1183
|
+
width: "abbreviated",
|
|
1184
|
+
context: "formatting"
|
|
1185
|
+
}) || t.dayPeriod(e, {
|
|
1186
|
+
width: "narrow",
|
|
1187
|
+
context: "formatting"
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
set(e, r, t) {
|
|
1192
|
+
return e.setHours(L(t), 0, 0, 0), e;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
class Ge extends u {
|
|
1196
|
+
constructor() {
|
|
1197
|
+
super(...arguments);
|
|
1198
|
+
o(this, "priority", 80);
|
|
1199
|
+
o(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
1200
|
+
}
|
|
1201
|
+
parse(e, r, t) {
|
|
1202
|
+
switch (r) {
|
|
1203
|
+
case "B":
|
|
1204
|
+
case "BB":
|
|
1205
|
+
case "BBB":
|
|
1206
|
+
return t.dayPeriod(e, {
|
|
1207
|
+
width: "abbreviated",
|
|
1208
|
+
context: "formatting"
|
|
1209
|
+
}) || t.dayPeriod(e, {
|
|
1210
|
+
width: "narrow",
|
|
1211
|
+
context: "formatting"
|
|
1212
|
+
});
|
|
1213
|
+
case "BBBBB":
|
|
1214
|
+
return t.dayPeriod(e, {
|
|
1215
|
+
width: "narrow",
|
|
1216
|
+
context: "formatting"
|
|
1217
|
+
});
|
|
1218
|
+
case "BBBB":
|
|
1219
|
+
default:
|
|
1220
|
+
return t.dayPeriod(e, {
|
|
1221
|
+
width: "wide",
|
|
1222
|
+
context: "formatting"
|
|
1223
|
+
}) || t.dayPeriod(e, {
|
|
1224
|
+
width: "abbreviated",
|
|
1225
|
+
context: "formatting"
|
|
1226
|
+
}) || t.dayPeriod(e, {
|
|
1227
|
+
width: "narrow",
|
|
1228
|
+
context: "formatting"
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
set(e, r, t) {
|
|
1233
|
+
return e.setHours(L(t), 0, 0, 0), e;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
class Xe extends u {
|
|
1237
|
+
constructor() {
|
|
1238
|
+
super(...arguments);
|
|
1239
|
+
o(this, "priority", 70);
|
|
1240
|
+
o(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
1241
|
+
}
|
|
1242
|
+
parse(e, r, t) {
|
|
1243
|
+
switch (r) {
|
|
1244
|
+
case "h":
|
|
1245
|
+
return d(y.hour12h, e);
|
|
1246
|
+
case "ho":
|
|
1247
|
+
return t.ordinalNumber(e, { unit: "hour" });
|
|
1248
|
+
default:
|
|
1249
|
+
return f(r.length, e);
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
validate(e, r) {
|
|
1253
|
+
return r >= 1 && r <= 12;
|
|
1254
|
+
}
|
|
1255
|
+
set(e, r, t) {
|
|
1256
|
+
const a = e.getHours() >= 12;
|
|
1257
|
+
return a && t < 12 ? e.setHours(t + 12, 0, 0, 0) : !a && t === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
class Fe extends u {
|
|
1261
|
+
constructor() {
|
|
1262
|
+
super(...arguments);
|
|
1263
|
+
o(this, "priority", 70);
|
|
1264
|
+
o(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
1265
|
+
}
|
|
1266
|
+
parse(e, r, t) {
|
|
1267
|
+
switch (r) {
|
|
1268
|
+
case "H":
|
|
1269
|
+
return d(y.hour23h, e);
|
|
1270
|
+
case "Ho":
|
|
1271
|
+
return t.ordinalNumber(e, { unit: "hour" });
|
|
1272
|
+
default:
|
|
1273
|
+
return f(r.length, e);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
validate(e, r) {
|
|
1277
|
+
return r >= 0 && r <= 23;
|
|
1278
|
+
}
|
|
1279
|
+
set(e, r, t) {
|
|
1280
|
+
return e.setHours(t, 0, 0, 0), e;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
class Ae extends u {
|
|
1284
|
+
constructor() {
|
|
1285
|
+
super(...arguments);
|
|
1286
|
+
o(this, "priority", 70);
|
|
1287
|
+
o(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
1288
|
+
}
|
|
1289
|
+
parse(e, r, t) {
|
|
1290
|
+
switch (r) {
|
|
1291
|
+
case "K":
|
|
1292
|
+
return d(y.hour11h, e);
|
|
1293
|
+
case "Ko":
|
|
1294
|
+
return t.ordinalNumber(e, { unit: "hour" });
|
|
1295
|
+
default:
|
|
1296
|
+
return f(r.length, e);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
validate(e, r) {
|
|
1300
|
+
return r >= 0 && r <= 11;
|
|
1301
|
+
}
|
|
1302
|
+
set(e, r, t) {
|
|
1303
|
+
return e.getHours() >= 12 && t < 12 ? e.setHours(t + 12, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
class ze extends u {
|
|
1307
|
+
constructor() {
|
|
1308
|
+
super(...arguments);
|
|
1309
|
+
o(this, "priority", 70);
|
|
1310
|
+
o(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
1311
|
+
}
|
|
1312
|
+
parse(e, r, t) {
|
|
1313
|
+
switch (r) {
|
|
1314
|
+
case "k":
|
|
1315
|
+
return d(y.hour24h, e);
|
|
1316
|
+
case "ko":
|
|
1317
|
+
return t.ordinalNumber(e, { unit: "hour" });
|
|
1318
|
+
default:
|
|
1319
|
+
return f(r.length, e);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
validate(e, r) {
|
|
1323
|
+
return r >= 1 && r <= 24;
|
|
1324
|
+
}
|
|
1325
|
+
set(e, r, t) {
|
|
1326
|
+
const a = t <= 24 ? t % 24 : t;
|
|
1327
|
+
return e.setHours(a, 0, 0, 0), e;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
class Ze extends u {
|
|
1331
|
+
constructor() {
|
|
1332
|
+
super(...arguments);
|
|
1333
|
+
o(this, "priority", 60);
|
|
1334
|
+
o(this, "incompatibleTokens", ["t", "T"]);
|
|
1335
|
+
}
|
|
1336
|
+
parse(e, r, t) {
|
|
1337
|
+
switch (r) {
|
|
1338
|
+
case "m":
|
|
1339
|
+
return d(y.minute, e);
|
|
1340
|
+
case "mo":
|
|
1341
|
+
return t.ordinalNumber(e, { unit: "minute" });
|
|
1342
|
+
default:
|
|
1343
|
+
return f(r.length, e);
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
validate(e, r) {
|
|
1347
|
+
return r >= 0 && r <= 59;
|
|
1348
|
+
}
|
|
1349
|
+
set(e, r, t) {
|
|
1350
|
+
return e.setMinutes(t, 0, 0), e;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
class Ke extends u {
|
|
1354
|
+
constructor() {
|
|
1355
|
+
super(...arguments);
|
|
1356
|
+
o(this, "priority", 50);
|
|
1357
|
+
o(this, "incompatibleTokens", ["t", "T"]);
|
|
1358
|
+
}
|
|
1359
|
+
parse(e, r, t) {
|
|
1360
|
+
switch (r) {
|
|
1361
|
+
case "s":
|
|
1362
|
+
return d(y.second, e);
|
|
1363
|
+
case "so":
|
|
1364
|
+
return t.ordinalNumber(e, { unit: "second" });
|
|
1365
|
+
default:
|
|
1366
|
+
return f(r.length, e);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
validate(e, r) {
|
|
1370
|
+
return r >= 0 && r <= 59;
|
|
1371
|
+
}
|
|
1372
|
+
set(e, r, t) {
|
|
1373
|
+
return e.setSeconds(t, 0), e;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
class $e extends u {
|
|
1377
|
+
constructor() {
|
|
1378
|
+
super(...arguments);
|
|
1379
|
+
o(this, "priority", 30);
|
|
1380
|
+
o(this, "incompatibleTokens", ["t", "T"]);
|
|
1381
|
+
}
|
|
1382
|
+
parse(e, r) {
|
|
1383
|
+
const t = (a) => Math.trunc(a * Math.pow(10, -r.length + 3));
|
|
1384
|
+
return p(f(r.length, e), t);
|
|
1385
|
+
}
|
|
1386
|
+
set(e, r, t) {
|
|
1387
|
+
return e.setMilliseconds(t), e;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
class Ve extends u {
|
|
1391
|
+
constructor() {
|
|
1392
|
+
super(...arguments);
|
|
1393
|
+
o(this, "priority", 10);
|
|
1394
|
+
o(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
1395
|
+
}
|
|
1396
|
+
parse(e, r) {
|
|
1397
|
+
switch (r) {
|
|
1398
|
+
case "X":
|
|
1399
|
+
return g(
|
|
1400
|
+
k.basicOptionalMinutes,
|
|
1401
|
+
e
|
|
1402
|
+
);
|
|
1403
|
+
case "XX":
|
|
1404
|
+
return g(k.basic, e);
|
|
1405
|
+
case "XXXX":
|
|
1406
|
+
return g(
|
|
1407
|
+
k.basicOptionalSeconds,
|
|
1408
|
+
e
|
|
1409
|
+
);
|
|
1410
|
+
case "XXXXX":
|
|
1411
|
+
return g(
|
|
1412
|
+
k.extendedOptionalSeconds,
|
|
1413
|
+
e
|
|
1414
|
+
);
|
|
1415
|
+
case "XXX":
|
|
1416
|
+
default:
|
|
1417
|
+
return g(k.extended, e);
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
set(e, r, t) {
|
|
1421
|
+
return r.timestampIsSet ? e : b(
|
|
1422
|
+
e,
|
|
1423
|
+
e.getTime() - Z(e) - t
|
|
1424
|
+
);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
class je extends u {
|
|
1428
|
+
constructor() {
|
|
1429
|
+
super(...arguments);
|
|
1430
|
+
o(this, "priority", 10);
|
|
1431
|
+
o(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
1432
|
+
}
|
|
1433
|
+
parse(e, r) {
|
|
1434
|
+
switch (r) {
|
|
1435
|
+
case "x":
|
|
1436
|
+
return g(
|
|
1437
|
+
k.basicOptionalMinutes,
|
|
1438
|
+
e
|
|
1439
|
+
);
|
|
1440
|
+
case "xx":
|
|
1441
|
+
return g(k.basic, e);
|
|
1442
|
+
case "xxxx":
|
|
1443
|
+
return g(
|
|
1444
|
+
k.basicOptionalSeconds,
|
|
1445
|
+
e
|
|
1446
|
+
);
|
|
1447
|
+
case "xxxxx":
|
|
1448
|
+
return g(
|
|
1449
|
+
k.extendedOptionalSeconds,
|
|
1450
|
+
e
|
|
1451
|
+
);
|
|
1452
|
+
case "xxx":
|
|
1453
|
+
default:
|
|
1454
|
+
return g(k.extended, e);
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
set(e, r, t) {
|
|
1458
|
+
return r.timestampIsSet ? e : b(
|
|
1459
|
+
e,
|
|
1460
|
+
e.getTime() - Z(e) - t
|
|
1461
|
+
);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
class Ue extends u {
|
|
1465
|
+
constructor() {
|
|
1466
|
+
super(...arguments);
|
|
1467
|
+
o(this, "priority", 40);
|
|
1468
|
+
o(this, "incompatibleTokens", "*");
|
|
1469
|
+
}
|
|
1470
|
+
parse(e) {
|
|
1471
|
+
return $(e);
|
|
1472
|
+
}
|
|
1473
|
+
set(e, r, t) {
|
|
1474
|
+
return [b(e, t * 1e3), { timestampIsSet: !0 }];
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
class Je extends u {
|
|
1478
|
+
constructor() {
|
|
1479
|
+
super(...arguments);
|
|
1480
|
+
o(this, "priority", 20);
|
|
1481
|
+
o(this, "incompatibleTokens", "*");
|
|
1482
|
+
}
|
|
1483
|
+
parse(e) {
|
|
1484
|
+
return $(e);
|
|
1485
|
+
}
|
|
1486
|
+
set(e, r, t) {
|
|
1487
|
+
return [b(e, t), { timestampIsSet: !0 }];
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
const Se = {
|
|
1491
|
+
G: new xe(),
|
|
1492
|
+
y: new be(),
|
|
1493
|
+
Y: new me(),
|
|
1494
|
+
R: new Te(),
|
|
1495
|
+
u: new De(),
|
|
1496
|
+
Q: new ke(),
|
|
1497
|
+
q: new ge(),
|
|
1498
|
+
M: new Pe(),
|
|
1499
|
+
L: new Me(),
|
|
1500
|
+
w: new _e(),
|
|
1501
|
+
I: new Ye(),
|
|
1502
|
+
d: new qe(),
|
|
1503
|
+
D: new Le(),
|
|
1504
|
+
E: new Ne(),
|
|
1505
|
+
e: new ve(),
|
|
1506
|
+
c: new Qe(),
|
|
1507
|
+
i: new We(),
|
|
1508
|
+
a: new Ce(),
|
|
1509
|
+
b: new Be(),
|
|
1510
|
+
B: new Ge(),
|
|
1511
|
+
h: new Xe(),
|
|
1512
|
+
H: new Fe(),
|
|
1513
|
+
K: new Ae(),
|
|
1514
|
+
k: new ze(),
|
|
1515
|
+
m: new Ze(),
|
|
1516
|
+
s: new Ke(),
|
|
1517
|
+
S: new $e(),
|
|
1518
|
+
X: new Ve(),
|
|
1519
|
+
x: new je(),
|
|
1520
|
+
t: new Ue(),
|
|
1521
|
+
T: new Je()
|
|
1522
|
+
}, et = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, rt = /^'([^]*?)'?$/, st = /''/g, nt = /\S/, at = /[a-zA-Z]/;
|
|
1523
|
+
function pt(n, s, e, r) {
|
|
1524
|
+
var v, Q, R, W;
|
|
1525
|
+
const t = de(), a = t.locale ?? re, i = t.firstWeekContainsDate ?? ((Q = (v = t.locale) == null ? void 0 : v.options) == null ? void 0 : Q.firstWeekContainsDate) ?? 1, h = t.weekStartsOn ?? ((W = (R = t.locale) == null ? void 0 : R.options) == null ? void 0 : W.weekStartsOn) ?? 0, l = {
|
|
1526
|
+
firstWeekContainsDate: i,
|
|
1527
|
+
weekStartsOn: h,
|
|
1528
|
+
locale: a
|
|
1529
|
+
}, x = [new pe()], T = s.match(tt).map((c) => {
|
|
1530
|
+
const w = c[0];
|
|
1531
|
+
if (w in F) {
|
|
1532
|
+
const D = F[w];
|
|
1533
|
+
return D(c, a.formatLong);
|
|
1534
|
+
}
|
|
1535
|
+
return c;
|
|
1536
|
+
}).join("").match(et), O = [];
|
|
1537
|
+
for (let c of T) {
|
|
1538
|
+
se(c) && A(c, s, n), ne(c) && A(c, s, n);
|
|
1539
|
+
const w = c[0], D = Se[w];
|
|
1540
|
+
if (D) {
|
|
1541
|
+
const { incompatibleTokens: C } = D;
|
|
1542
|
+
if (Array.isArray(C)) {
|
|
1543
|
+
const B = O.find(
|
|
1544
|
+
(G) => C.includes(G.token) || G.token === w
|
|
1545
|
+
);
|
|
1546
|
+
if (B)
|
|
1547
|
+
throw new RangeError(
|
|
1548
|
+
`The format string mustn't contain \`${B.fullToken}\` and \`${c}\` at the same time`
|
|
1549
|
+
);
|
|
1550
|
+
} else if (D.incompatibleTokens === "*" && O.length > 0)
|
|
1551
|
+
throw new RangeError(
|
|
1552
|
+
`The format string mustn't contain \`${c}\` and any other token at the same time`
|
|
1553
|
+
);
|
|
1554
|
+
O.push({ token: w, fullToken: c });
|
|
1555
|
+
const E = D.run(
|
|
1556
|
+
n,
|
|
1557
|
+
c,
|
|
1558
|
+
a.match,
|
|
1559
|
+
l
|
|
1560
|
+
);
|
|
1561
|
+
if (!E)
|
|
1562
|
+
return b(e, NaN);
|
|
1563
|
+
x.push(E.setter), n = E.rest;
|
|
1564
|
+
} else {
|
|
1565
|
+
if (w.match(at))
|
|
1566
|
+
throw new RangeError(
|
|
1567
|
+
"Format string contains an unescaped latin alphabet character `" + w + "`"
|
|
1568
|
+
);
|
|
1569
|
+
if (c === "''" ? c = "'" : w === "'" && (c = ot(c)), n.indexOf(c) === 0)
|
|
1570
|
+
n = n.slice(c.length);
|
|
1571
|
+
else
|
|
1572
|
+
return b(e, NaN);
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
if (n.length > 0 && nt.test(n))
|
|
1576
|
+
return b(e, NaN);
|
|
1577
|
+
const H = x.map((c) => c.priority).sort((c, w) => w - c).filter((c, w, D) => D.indexOf(c) === w).map(
|
|
1578
|
+
(c) => x.filter((w) => w.priority === c).sort((w, D) => D.subPriority - w.subPriority)
|
|
1579
|
+
).map((c) => c[0]);
|
|
1580
|
+
let P = m(e);
|
|
1581
|
+
if (isNaN(P.getTime()))
|
|
1582
|
+
return b(e, NaN);
|
|
1583
|
+
const _ = {};
|
|
1584
|
+
for (const c of H) {
|
|
1585
|
+
if (!c.validate(P, l))
|
|
1586
|
+
return b(e, NaN);
|
|
1587
|
+
const w = c.set(P, _, l);
|
|
1588
|
+
Array.isArray(w) ? (P = w[0], Object.assign(_, w[1])) : P = w;
|
|
1589
|
+
}
|
|
1590
|
+
return b(e, P);
|
|
1591
|
+
}
|
|
1592
|
+
function ot(n) {
|
|
1593
|
+
return n.match(rt)[1].replace(st, "'");
|
|
1594
|
+
}
|
|
1595
|
+
function xt(n) {
|
|
1596
|
+
return le(n, ue(n));
|
|
1597
|
+
}
|
|
1598
|
+
export {
|
|
1599
|
+
ft as a,
|
|
1600
|
+
yt as b,
|
|
1601
|
+
xt as c,
|
|
1602
|
+
wt as e,
|
|
1603
|
+
le as i,
|
|
1604
|
+
pt as p,
|
|
1605
|
+
ht as s
|
|
1606
|
+
};
|