@ozdao/prometheus-framework 0.2.198 → 0.2.199
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +3 -10
- package/dist/builder.mjs +3 -10
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5042 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +518 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/date-fns/add.cjs +1 -0
- package/dist/node_modules/date-fns/add.js +20 -0
- package/dist/node_modules/date-fns/addDays.cjs +1 -0
- package/dist/node_modules/date-fns/addDays.js +10 -0
- package/dist/node_modules/date-fns/addHours.cjs +1 -0
- package/dist/node_modules/date-fns/addHours.js +9 -0
- package/dist/node_modules/date-fns/addMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/addMilliseconds.js +10 -0
- package/dist/node_modules/date-fns/addMonths.cjs +1 -0
- package/dist/node_modules/date-fns/addMonths.js +20 -0
- package/dist/node_modules/date-fns/addQuarters.cjs +1 -0
- package/dist/node_modules/date-fns/addQuarters.js +9 -0
- package/dist/node_modules/date-fns/addYears.cjs +1 -0
- package/dist/node_modules/date-fns/addYears.js +8 -0
- package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
- package/dist/node_modules/date-fns/compareAsc.js +9 -0
- package/dist/node_modules/date-fns/constants.cjs +1 -0
- package/dist/node_modules/date-fns/constants.js +8 -0
- package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +7 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.js +9 -0
- package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInYears.js +13 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.cjs +1 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.js +16 -0
- package/dist/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -0
- package/dist/node_modules/date-fns/eachQuarterOfInterval.js +17 -0
- package/dist/node_modules/date-fns/endOfQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/endOfQuarter.js +9 -0
- package/dist/node_modules/date-fns/endOfWeek.cjs +1 -0
- package/dist/node_modules/date-fns/endOfWeek.js +11 -0
- package/dist/node_modules/date-fns/endOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/endOfYear.js +9 -0
- package/dist/node_modules/date-fns/format.cjs +1 -0
- package/dist/node_modules/date-fns/format.js +59 -0
- package/dist/node_modules/date-fns/getDay.cjs +1 -0
- package/dist/node_modules/date-fns/getDay.js +8 -0
- package/dist/node_modules/date-fns/getDayOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/date-fns/getDaysInMonth.cjs +1 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/dist/node_modules/date-fns/getDefaultOptions.cjs +1 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js +8 -0
- package/dist/node_modules/date-fns/getHours.cjs +1 -0
- package/dist/node_modules/date-fns/getHours.js +8 -0
- package/dist/node_modules/date-fns/getISODay.cjs +1 -0
- package/dist/node_modules/date-fns/getISODay.js +9 -0
- package/dist/node_modules/date-fns/getISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/date-fns/getMinutes.cjs +1 -0
- package/dist/node_modules/date-fns/getMinutes.js +8 -0
- package/dist/node_modules/date-fns/getMonth.cjs +1 -0
- package/dist/node_modules/date-fns/getMonth.js +8 -0
- package/dist/node_modules/date-fns/getQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/getQuarter.js +9 -0
- package/dist/node_modules/date-fns/getSeconds.cjs +1 -0
- package/dist/node_modules/date-fns/getSeconds.js +8 -0
- package/dist/node_modules/date-fns/getWeek.cjs +1 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/getWeekYear.js +17 -0
- package/dist/node_modules/date-fns/getYear.cjs +1 -0
- package/dist/node_modules/date-fns/getYear.js +8 -0
- package/dist/node_modules/date-fns/isAfter.cjs +1 -0
- package/dist/node_modules/date-fns/isAfter.js +9 -0
- package/dist/node_modules/date-fns/isBefore.cjs +1 -0
- package/dist/node_modules/date-fns/isBefore.js +9 -0
- package/dist/node_modules/date-fns/isDate.cjs +1 -0
- package/dist/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/date-fns/isEqual.cjs +1 -0
- package/dist/node_modules/date-fns/isEqual.js +9 -0
- package/dist/node_modules/date-fns/isSameQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/isSameQuarter.js +9 -0
- package/dist/node_modules/date-fns/isValid.cjs +1 -0
- package/dist/node_modules/date-fns/isValid.js +12 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.cjs +1 -0
- package/dist/node_modules/date-fns/locale/en-US.js +21 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +40 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.cjs +1 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js +103 -0
- package/dist/node_modules/date-fns/parse.cjs +1 -0
- package/dist/node_modules/date-fns/parse.js +90 -0
- package/dist/node_modules/date-fns/set.cjs +1 -0
- package/dist/node_modules/date-fns/set.js +11 -0
- package/dist/node_modules/date-fns/setDay.cjs +1 -0
- package/dist/node_modules/date-fns/setDay.js +12 -0
- package/dist/node_modules/date-fns/setHours.cjs +1 -0
- package/dist/node_modules/date-fns/setHours.js +9 -0
- package/dist/node_modules/date-fns/setISODay.cjs +1 -0
- package/dist/node_modules/date-fns/setISODay.js +11 -0
- package/dist/node_modules/date-fns/setISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/setISOWeek.js +10 -0
- package/dist/node_modules/date-fns/setMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/setMilliseconds.js +9 -0
- package/dist/node_modules/date-fns/setMinutes.cjs +1 -0
- package/dist/node_modules/date-fns/setMinutes.js +9 -0
- package/dist/node_modules/date-fns/setMonth.cjs +1 -0
- package/dist/node_modules/date-fns/setMonth.js +13 -0
- package/dist/node_modules/date-fns/setSeconds.cjs +1 -0
- package/dist/node_modules/date-fns/setSeconds.js +9 -0
- package/dist/node_modules/date-fns/setWeek.cjs +1 -0
- package/dist/node_modules/date-fns/setWeek.js +10 -0
- package/dist/node_modules/date-fns/setYear.cjs +1 -0
- package/dist/node_modules/date-fns/setYear.js +10 -0
- package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.cjs +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/date-fns/startOfMonth.cjs +1 -0
- package/dist/node_modules/date-fns/startOfMonth.js +9 -0
- package/dist/node_modules/date-fns/startOfQuarter.cjs +1 -0
- package/dist/node_modules/date-fns/startOfQuarter.js +9 -0
- package/dist/node_modules/date-fns/startOfWeek.cjs +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/node_modules/date-fns/startOfWeekYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfYear.cjs +1 -0
- package/dist/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/date-fns/sub.cjs +1 -0
- package/dist/node_modules/date-fns/sub.js +19 -0
- package/dist/node_modules/date-fns/subDays.cjs +1 -0
- package/dist/node_modules/date-fns/subDays.js +8 -0
- package/dist/node_modules/date-fns/subMonths.cjs +1 -0
- package/dist/node_modules/date-fns/subMonths.js +8 -0
- package/dist/node_modules/date-fns/subYears.cjs +1 -0
- package/dist/node_modules/date-fns/subYears.js +8 -0
- package/dist/node_modules/date-fns/toDate.cjs +1 -0
- package/dist/node_modules/date-fns/toDate.js +8 -0
- package/dist/node_modules/date-fns/transpose.cjs +1 -0
- package/dist/node_modules/date-fns/transpose.js +18 -0
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +16 -15
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +13 -12
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +12 -11
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +11 -10
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +11 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +8 -7
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +16 -15
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +11 -8
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +9 -8
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -25
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +22 -20
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +87 -93
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +142 -73
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +110 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -7
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +19 -18
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +124 -132
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +2 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +2 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +76 -70
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +28 -27
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +14 -13
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +8 -7
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +12 -9
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +22 -22
- package/dist/prometheus-framework.es.js +3228 -3201
- package/dist/style.css +1 -1
- package/dist/tickets.controller-CB549rZT.mjs +402 -0
- package/dist/tickets.controller-yqXXLR62.js +401 -0
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/package.json +1 -2
- package/src/builder/webpack/webpack.config.base.js +2 -2
- package/src/builder/webpack/webpack.config.client.js +1 -1
- package/src/builder/webpack/webpack.config.spa.js +0 -6
- package/src/components/AskToLogin/AskToLogin.vue +1 -1
- package/src/components/EditImages/EditImages.vue +1 -1
- package/src/components/Error/Error.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +1 -1
- package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
- package/src/modules/auth/views/components/pages/EnterPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
- package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +2 -2
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +2 -2
- package/src/modules/events/components/pages/EditEvent.vue +12 -1
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +1 -1
- package/src/modules/events/components/sections/HeroEvent.vue +4 -4
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
- package/src/modules/events/components/sections/SectionSpecialGuests.vue +1 -1
- package/src/modules/events/controllers/utils/templateEmail.js +1 -1
- package/src/modules/events/controllers/utils/templateTicket.js +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
- package/src/modules/globals/views/components/blocks/CardHeader.vue +2 -2
- package/src/modules/globals/views/components/layouts/App.vue +15 -39
- package/src/modules/globals/views/components/layouts/Client.vue +89 -45
- package/src/modules/globals/views/components/partials/Footer.vue +7 -7
- package/src/modules/globals/views/components/partials/NavigationBar.vue +39 -16
- package/src/modules/globals/views/components/sections/Walkthrough.vue +2 -2
- package/src/modules/landing/components/sections/Examples.vue +1 -1
- package/src/modules/landing/components/sections/HowItWorksSection.vue +3 -3
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +1 -1
- package/src/modules/landing/components/sections/InstagramSection.vue +2 -2
- package/src/modules/landing/components/sections/MobileApp.vue +1 -1
- package/src/modules/landing/components/sections/SectionEarn.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +3 -3
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +7 -7
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +3 -4
- package/src/modules/orders/components/pages/Orders.vue +0 -3
- package/src/modules/orders/components/pages/Orders_refact.vue +7 -7
- package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
- package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
- package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/blocks/EditFilters.vue +1 -1
- package/src/modules/products/components/blocks/Images360.vue +1 -1
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +1 -1
- package/src/modules/products/components/sections/ProductInformationSection.vue +5 -5
- package/src/modules/products/components/sections/SectionProduct.vue +1 -1
- package/src/modules/spots/components/blocks/SpotSub.vue +1 -1
- package/src/modules/users/components/blocks/CardUser.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +1 -1
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
- package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(t,e){const o=t<0?"-":"",a=Math.abs(t).toString().padStart(e,"0");return o+a}exports.addLeadingZeros=n;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let t={};function e(){return t}exports.getDefaultOptions=e;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../getDayOfYear.cjs"),m=require("../../getISOWeek.cjs"),w=require("../../getISOWeekYear.cjs"),b=require("../../getWeek.cjs"),y=require("../../getWeekYear.cjs"),i=require("../addLeadingZeros.cjs"),s=require("./lightFormatters.cjs"),d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},x={G:function(n,r,e){const t=n.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(t,{width:"abbreviated"});case"GGGGG":return e.era(t,{width:"narrow"});case"GGGG":default:return e.era(t,{width:"wide"})}},y:function(n,r,e){if(r==="yo"){const t=n.getFullYear(),a=t>0?t:1-t;return e.ordinalNumber(a,{unit:"year"})}return s.lightFormatters.y(n,r)},Y:function(n,r,e,t){const a=y.getWeekYear(n,t),o=a>0?a:1-a;if(r==="YY"){const f=o%100;return i.addLeadingZeros(f,2)}return r==="Yo"?e.ordinalNumber(o,{unit:"year"}):i.addLeadingZeros(o,r.length)},R:function(n,r){const e=w.getISOWeekYear(n);return i.addLeadingZeros(e,r.length)},u:function(n,r){const e=n.getFullYear();return i.addLeadingZeros(e,r.length)},Q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"Q":return String(t);case"QQ":return i.addLeadingZeros(t,2);case"Qo":return e.ordinalNumber(t,{unit:"quarter"});case"QQQ":return e.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(t,{width:"wide",context:"formatting"})}},q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"q":return String(t);case"qq":return i.addLeadingZeros(t,2);case"qo":return e.ordinalNumber(t,{unit:"quarter"});case"qqq":return e.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(t,{width:"wide",context:"standalone"})}},M:function(n,r,e){const t=n.getMonth();switch(r){case"M":case"MM":return s.lightFormatters.M(n,r);case"Mo":return e.ordinalNumber(t+1,{unit:"month"});case"MMM":return e.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(t,{width:"wide",context:"formatting"})}},L:function(n,r,e){const t=n.getMonth();switch(r){case"L":return String(t+1);case"LL":return i.addLeadingZeros(t+1,2);case"Lo":return e.ordinalNumber(t+1,{unit:"month"});case"LLL":return e.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(t,{width:"wide",context:"standalone"})}},w:function(n,r,e,t){const a=b.getWeek(n,t);return r==="wo"?e.ordinalNumber(a,{unit:"week"}):i.addLeadingZeros(a,r.length)},I:function(n,r,e){const t=m.getISOWeek(n);return r==="Io"?e.ordinalNumber(t,{unit:"week"}):i.addLeadingZeros(t,r.length)},d:function(n,r,e){return r==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):s.lightFormatters.d(n,r)},D:function(n,r,e){const t=h.getDayOfYear(n);return r==="Do"?e.ordinalNumber(t,{unit:"dayOfYear"}):i.addLeadingZeros(t,r.length)},E:function(n,r,e){const t=n.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(t,{width:"short",context:"formatting"});case"EEEE":default:return e.day(t,{width:"wide",context:"formatting"})}},e:function(n,r,e,t){const a=n.getDay(),o=(a-t.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return i.addLeadingZeros(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(n,r,e,t){const a=n.getDay(),o=(a-t.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return i.addLeadingZeros(o,r.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(n,r,e){const t=n.getDay(),a=t===0?7:t;switch(r){case"i":return String(a);case"ii":return i.addLeadingZeros(a,r.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(t,{width:"short",context:"formatting"});case"iiii":default:return e.day(t,{width:"wide",context:"formatting"})}},a:function(n,r,e){const a=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(n,r,e){const t=n.getHours();let a;switch(t===12?a=d.noon:t===0?a=d.midnight:a=t/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(n,r,e){const t=n.getHours();let a;switch(t>=17?a=d.evening:t>=12?a=d.afternoon:t>=4?a=d.morning:a=d.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(n,r,e){if(r==="ho"){let t=n.getHours()%12;return t===0&&(t=12),e.ordinalNumber(t,{unit:"hour"})}return s.lightFormatters.h(n,r)},H:function(n,r,e){return r==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):s.lightFormatters.H(n,r)},K:function(n,r,e){const t=n.getHours()%12;return r==="Ko"?e.ordinalNumber(t,{unit:"hour"}):i.addLeadingZeros(t,r.length)},k:function(n,r,e){let t=n.getHours();return t===0&&(t=24),r==="ko"?e.ordinalNumber(t,{unit:"hour"}):i.addLeadingZeros(t,r.length)},m:function(n,r,e){return r==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):s.lightFormatters.m(n,r)},s:function(n,r,e){return r==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):s.lightFormatters.s(n,r)},S:function(n,r){return s.lightFormatters.S(n,r)},X:function(n,r,e){const t=n.getTimezoneOffset();if(t===0)return"Z";switch(r){case"X":return g(t);case"XXXX":case"XX":return u(t);case"XXXXX":case"XXX":default:return u(t,":")}},x:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"x":return g(t);case"xxxx":case"xx":return u(t);case"xxxxx":case"xxx":default:return u(t,":")}},O:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+c(t,":");case"OOOO":default:return"GMT"+u(t,":")}},z:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+c(t,":");case"zzzz":default:return"GMT"+u(t,":")}},t:function(n,r,e){const t=Math.trunc(n.getTime()/1e3);return i.addLeadingZeros(t,r.length)},T:function(n,r,e){const t=n.getTime();return i.addLeadingZeros(t,r.length)}};function c(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),a=Math.trunc(t/60),o=t%60;return o===0?e+String(a):e+String(a)+r+i.addLeadingZeros(o,2)}function g(n,r){return n%60===0?(n>0?"-":"+")+i.addLeadingZeros(Math.abs(n)/60,2):u(n,r)}function u(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),a=i.addLeadingZeros(Math.trunc(t/60),2),o=i.addLeadingZeros(t%60,2);return e+a+r+o}exports.formatters=x;
|
@@ -0,0 +1,518 @@
|
|
1
|
+
import { getDayOfYear as m } from "../../getDayOfYear.js";
|
2
|
+
import { getISOWeek as g } from "../../getISOWeek.js";
|
3
|
+
import { getISOWeekYear as w } from "../../getISOWeekYear.js";
|
4
|
+
import { getWeek as b } from "../../getWeek.js";
|
5
|
+
import { getWeekYear as x } from "../../getWeekYear.js";
|
6
|
+
import { addLeadingZeros as i } from "../addLeadingZeros.js";
|
7
|
+
import { lightFormatters as u } from "./lightFormatters.js";
|
8
|
+
const s = {
|
9
|
+
am: "am",
|
10
|
+
pm: "pm",
|
11
|
+
midnight: "midnight",
|
12
|
+
noon: "noon",
|
13
|
+
morning: "morning",
|
14
|
+
afternoon: "afternoon",
|
15
|
+
evening: "evening",
|
16
|
+
night: "night"
|
17
|
+
}, L = {
|
18
|
+
// Era
|
19
|
+
G: function(n, r, e) {
|
20
|
+
const t = n.getFullYear() > 0 ? 1 : 0;
|
21
|
+
switch (r) {
|
22
|
+
case "G":
|
23
|
+
case "GG":
|
24
|
+
case "GGG":
|
25
|
+
return e.era(t, { width: "abbreviated" });
|
26
|
+
case "GGGGG":
|
27
|
+
return e.era(t, { width: "narrow" });
|
28
|
+
case "GGGG":
|
29
|
+
default:
|
30
|
+
return e.era(t, { width: "wide" });
|
31
|
+
}
|
32
|
+
},
|
33
|
+
// Year
|
34
|
+
y: function(n, r, e) {
|
35
|
+
if (r === "yo") {
|
36
|
+
const t = n.getFullYear(), a = t > 0 ? t : 1 - t;
|
37
|
+
return e.ordinalNumber(a, { unit: "year" });
|
38
|
+
}
|
39
|
+
return u.y(n, r);
|
40
|
+
},
|
41
|
+
// Local week-numbering year
|
42
|
+
Y: function(n, r, e, t) {
|
43
|
+
const a = x(n, t), o = a > 0 ? a : 1 - a;
|
44
|
+
if (r === "YY") {
|
45
|
+
const h = o % 100;
|
46
|
+
return i(h, 2);
|
47
|
+
}
|
48
|
+
return r === "Yo" ? e.ordinalNumber(o, { unit: "year" }) : i(o, r.length);
|
49
|
+
},
|
50
|
+
// ISO week-numbering year
|
51
|
+
R: function(n, r) {
|
52
|
+
const e = w(n);
|
53
|
+
return i(e, r.length);
|
54
|
+
},
|
55
|
+
// Extended year. This is a single number designating the year of this calendar system.
|
56
|
+
// The main difference between `y` and `u` localizers are B.C. years:
|
57
|
+
// | Year | `y` | `u` |
|
58
|
+
// |------|-----|-----|
|
59
|
+
// | AC 1 | 1 | 1 |
|
60
|
+
// | BC 1 | 1 | 0 |
|
61
|
+
// | BC 2 | 2 | -1 |
|
62
|
+
// Also `yy` always returns the last two digits of a year,
|
63
|
+
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
64
|
+
u: function(n, r) {
|
65
|
+
const e = n.getFullYear();
|
66
|
+
return i(e, r.length);
|
67
|
+
},
|
68
|
+
// Quarter
|
69
|
+
Q: function(n, r, e) {
|
70
|
+
const t = Math.ceil((n.getMonth() + 1) / 3);
|
71
|
+
switch (r) {
|
72
|
+
case "Q":
|
73
|
+
return String(t);
|
74
|
+
case "QQ":
|
75
|
+
return i(t, 2);
|
76
|
+
case "Qo":
|
77
|
+
return e.ordinalNumber(t, { unit: "quarter" });
|
78
|
+
case "QQQ":
|
79
|
+
return e.quarter(t, {
|
80
|
+
width: "abbreviated",
|
81
|
+
context: "formatting"
|
82
|
+
});
|
83
|
+
case "QQQQQ":
|
84
|
+
return e.quarter(t, {
|
85
|
+
width: "narrow",
|
86
|
+
context: "formatting"
|
87
|
+
});
|
88
|
+
case "QQQQ":
|
89
|
+
default:
|
90
|
+
return e.quarter(t, {
|
91
|
+
width: "wide",
|
92
|
+
context: "formatting"
|
93
|
+
});
|
94
|
+
}
|
95
|
+
},
|
96
|
+
// Stand-alone quarter
|
97
|
+
q: function(n, r, e) {
|
98
|
+
const t = Math.ceil((n.getMonth() + 1) / 3);
|
99
|
+
switch (r) {
|
100
|
+
case "q":
|
101
|
+
return String(t);
|
102
|
+
case "qq":
|
103
|
+
return i(t, 2);
|
104
|
+
case "qo":
|
105
|
+
return e.ordinalNumber(t, { unit: "quarter" });
|
106
|
+
case "qqq":
|
107
|
+
return e.quarter(t, {
|
108
|
+
width: "abbreviated",
|
109
|
+
context: "standalone"
|
110
|
+
});
|
111
|
+
case "qqqqq":
|
112
|
+
return e.quarter(t, {
|
113
|
+
width: "narrow",
|
114
|
+
context: "standalone"
|
115
|
+
});
|
116
|
+
case "qqqq":
|
117
|
+
default:
|
118
|
+
return e.quarter(t, {
|
119
|
+
width: "wide",
|
120
|
+
context: "standalone"
|
121
|
+
});
|
122
|
+
}
|
123
|
+
},
|
124
|
+
// Month
|
125
|
+
M: function(n, r, e) {
|
126
|
+
const t = n.getMonth();
|
127
|
+
switch (r) {
|
128
|
+
case "M":
|
129
|
+
case "MM":
|
130
|
+
return u.M(n, r);
|
131
|
+
case "Mo":
|
132
|
+
return e.ordinalNumber(t + 1, { unit: "month" });
|
133
|
+
case "MMM":
|
134
|
+
return e.month(t, {
|
135
|
+
width: "abbreviated",
|
136
|
+
context: "formatting"
|
137
|
+
});
|
138
|
+
case "MMMMM":
|
139
|
+
return e.month(t, {
|
140
|
+
width: "narrow",
|
141
|
+
context: "formatting"
|
142
|
+
});
|
143
|
+
case "MMMM":
|
144
|
+
default:
|
145
|
+
return e.month(t, { width: "wide", context: "formatting" });
|
146
|
+
}
|
147
|
+
},
|
148
|
+
// Stand-alone month
|
149
|
+
L: function(n, r, e) {
|
150
|
+
const t = n.getMonth();
|
151
|
+
switch (r) {
|
152
|
+
case "L":
|
153
|
+
return String(t + 1);
|
154
|
+
case "LL":
|
155
|
+
return i(t + 1, 2);
|
156
|
+
case "Lo":
|
157
|
+
return e.ordinalNumber(t + 1, { unit: "month" });
|
158
|
+
case "LLL":
|
159
|
+
return e.month(t, {
|
160
|
+
width: "abbreviated",
|
161
|
+
context: "standalone"
|
162
|
+
});
|
163
|
+
case "LLLLL":
|
164
|
+
return e.month(t, {
|
165
|
+
width: "narrow",
|
166
|
+
context: "standalone"
|
167
|
+
});
|
168
|
+
case "LLLL":
|
169
|
+
default:
|
170
|
+
return e.month(t, { width: "wide", context: "standalone" });
|
171
|
+
}
|
172
|
+
},
|
173
|
+
// Local week of year
|
174
|
+
w: function(n, r, e, t) {
|
175
|
+
const a = b(n, t);
|
176
|
+
return r === "wo" ? e.ordinalNumber(a, { unit: "week" }) : i(a, r.length);
|
177
|
+
},
|
178
|
+
// ISO week of year
|
179
|
+
I: function(n, r, e) {
|
180
|
+
const t = g(n);
|
181
|
+
return r === "Io" ? e.ordinalNumber(t, { unit: "week" }) : i(t, r.length);
|
182
|
+
},
|
183
|
+
// Day of the month
|
184
|
+
d: function(n, r, e) {
|
185
|
+
return r === "do" ? e.ordinalNumber(n.getDate(), { unit: "date" }) : u.d(n, r);
|
186
|
+
},
|
187
|
+
// Day of year
|
188
|
+
D: function(n, r, e) {
|
189
|
+
const t = m(n);
|
190
|
+
return r === "Do" ? e.ordinalNumber(t, { unit: "dayOfYear" }) : i(t, r.length);
|
191
|
+
},
|
192
|
+
// Day of week
|
193
|
+
E: function(n, r, e) {
|
194
|
+
const t = n.getDay();
|
195
|
+
switch (r) {
|
196
|
+
case "E":
|
197
|
+
case "EE":
|
198
|
+
case "EEE":
|
199
|
+
return e.day(t, {
|
200
|
+
width: "abbreviated",
|
201
|
+
context: "formatting"
|
202
|
+
});
|
203
|
+
case "EEEEE":
|
204
|
+
return e.day(t, {
|
205
|
+
width: "narrow",
|
206
|
+
context: "formatting"
|
207
|
+
});
|
208
|
+
case "EEEEEE":
|
209
|
+
return e.day(t, {
|
210
|
+
width: "short",
|
211
|
+
context: "formatting"
|
212
|
+
});
|
213
|
+
case "EEEE":
|
214
|
+
default:
|
215
|
+
return e.day(t, {
|
216
|
+
width: "wide",
|
217
|
+
context: "formatting"
|
218
|
+
});
|
219
|
+
}
|
220
|
+
},
|
221
|
+
// Local day of week
|
222
|
+
e: function(n, r, e, t) {
|
223
|
+
const a = n.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
|
224
|
+
switch (r) {
|
225
|
+
case "e":
|
226
|
+
return String(o);
|
227
|
+
case "ee":
|
228
|
+
return i(o, 2);
|
229
|
+
case "eo":
|
230
|
+
return e.ordinalNumber(o, { unit: "day" });
|
231
|
+
case "eee":
|
232
|
+
return e.day(a, {
|
233
|
+
width: "abbreviated",
|
234
|
+
context: "formatting"
|
235
|
+
});
|
236
|
+
case "eeeee":
|
237
|
+
return e.day(a, {
|
238
|
+
width: "narrow",
|
239
|
+
context: "formatting"
|
240
|
+
});
|
241
|
+
case "eeeeee":
|
242
|
+
return e.day(a, {
|
243
|
+
width: "short",
|
244
|
+
context: "formatting"
|
245
|
+
});
|
246
|
+
case "eeee":
|
247
|
+
default:
|
248
|
+
return e.day(a, {
|
249
|
+
width: "wide",
|
250
|
+
context: "formatting"
|
251
|
+
});
|
252
|
+
}
|
253
|
+
},
|
254
|
+
// Stand-alone local day of week
|
255
|
+
c: function(n, r, e, t) {
|
256
|
+
const a = n.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
|
257
|
+
switch (r) {
|
258
|
+
case "c":
|
259
|
+
return String(o);
|
260
|
+
case "cc":
|
261
|
+
return i(o, r.length);
|
262
|
+
case "co":
|
263
|
+
return e.ordinalNumber(o, { unit: "day" });
|
264
|
+
case "ccc":
|
265
|
+
return e.day(a, {
|
266
|
+
width: "abbreviated",
|
267
|
+
context: "standalone"
|
268
|
+
});
|
269
|
+
case "ccccc":
|
270
|
+
return e.day(a, {
|
271
|
+
width: "narrow",
|
272
|
+
context: "standalone"
|
273
|
+
});
|
274
|
+
case "cccccc":
|
275
|
+
return e.day(a, {
|
276
|
+
width: "short",
|
277
|
+
context: "standalone"
|
278
|
+
});
|
279
|
+
case "cccc":
|
280
|
+
default:
|
281
|
+
return e.day(a, {
|
282
|
+
width: "wide",
|
283
|
+
context: "standalone"
|
284
|
+
});
|
285
|
+
}
|
286
|
+
},
|
287
|
+
// ISO day of week
|
288
|
+
i: function(n, r, e) {
|
289
|
+
const t = n.getDay(), a = t === 0 ? 7 : t;
|
290
|
+
switch (r) {
|
291
|
+
case "i":
|
292
|
+
return String(a);
|
293
|
+
case "ii":
|
294
|
+
return i(a, r.length);
|
295
|
+
case "io":
|
296
|
+
return e.ordinalNumber(a, { unit: "day" });
|
297
|
+
case "iii":
|
298
|
+
return e.day(t, {
|
299
|
+
width: "abbreviated",
|
300
|
+
context: "formatting"
|
301
|
+
});
|
302
|
+
case "iiiii":
|
303
|
+
return e.day(t, {
|
304
|
+
width: "narrow",
|
305
|
+
context: "formatting"
|
306
|
+
});
|
307
|
+
case "iiiiii":
|
308
|
+
return e.day(t, {
|
309
|
+
width: "short",
|
310
|
+
context: "formatting"
|
311
|
+
});
|
312
|
+
case "iiii":
|
313
|
+
default:
|
314
|
+
return e.day(t, {
|
315
|
+
width: "wide",
|
316
|
+
context: "formatting"
|
317
|
+
});
|
318
|
+
}
|
319
|
+
},
|
320
|
+
// AM or PM
|
321
|
+
a: function(n, r, e) {
|
322
|
+
const a = n.getHours() / 12 >= 1 ? "pm" : "am";
|
323
|
+
switch (r) {
|
324
|
+
case "a":
|
325
|
+
case "aa":
|
326
|
+
return e.dayPeriod(a, {
|
327
|
+
width: "abbreviated",
|
328
|
+
context: "formatting"
|
329
|
+
});
|
330
|
+
case "aaa":
|
331
|
+
return e.dayPeriod(a, {
|
332
|
+
width: "abbreviated",
|
333
|
+
context: "formatting"
|
334
|
+
}).toLowerCase();
|
335
|
+
case "aaaaa":
|
336
|
+
return e.dayPeriod(a, {
|
337
|
+
width: "narrow",
|
338
|
+
context: "formatting"
|
339
|
+
});
|
340
|
+
case "aaaa":
|
341
|
+
default:
|
342
|
+
return e.dayPeriod(a, {
|
343
|
+
width: "wide",
|
344
|
+
context: "formatting"
|
345
|
+
});
|
346
|
+
}
|
347
|
+
},
|
348
|
+
// AM, PM, midnight, noon
|
349
|
+
b: function(n, r, e) {
|
350
|
+
const t = n.getHours();
|
351
|
+
let a;
|
352
|
+
switch (t === 12 ? a = s.noon : t === 0 ? a = s.midnight : a = t / 12 >= 1 ? "pm" : "am", r) {
|
353
|
+
case "b":
|
354
|
+
case "bb":
|
355
|
+
return e.dayPeriod(a, {
|
356
|
+
width: "abbreviated",
|
357
|
+
context: "formatting"
|
358
|
+
});
|
359
|
+
case "bbb":
|
360
|
+
return e.dayPeriod(a, {
|
361
|
+
width: "abbreviated",
|
362
|
+
context: "formatting"
|
363
|
+
}).toLowerCase();
|
364
|
+
case "bbbbb":
|
365
|
+
return e.dayPeriod(a, {
|
366
|
+
width: "narrow",
|
367
|
+
context: "formatting"
|
368
|
+
});
|
369
|
+
case "bbbb":
|
370
|
+
default:
|
371
|
+
return e.dayPeriod(a, {
|
372
|
+
width: "wide",
|
373
|
+
context: "formatting"
|
374
|
+
});
|
375
|
+
}
|
376
|
+
},
|
377
|
+
// in the morning, in the afternoon, in the evening, at night
|
378
|
+
B: function(n, r, e) {
|
379
|
+
const t = n.getHours();
|
380
|
+
let a;
|
381
|
+
switch (t >= 17 ? a = s.evening : t >= 12 ? a = s.afternoon : t >= 4 ? a = s.morning : a = s.night, r) {
|
382
|
+
case "B":
|
383
|
+
case "BB":
|
384
|
+
case "BBB":
|
385
|
+
return e.dayPeriod(a, {
|
386
|
+
width: "abbreviated",
|
387
|
+
context: "formatting"
|
388
|
+
});
|
389
|
+
case "BBBBB":
|
390
|
+
return e.dayPeriod(a, {
|
391
|
+
width: "narrow",
|
392
|
+
context: "formatting"
|
393
|
+
});
|
394
|
+
case "BBBB":
|
395
|
+
default:
|
396
|
+
return e.dayPeriod(a, {
|
397
|
+
width: "wide",
|
398
|
+
context: "formatting"
|
399
|
+
});
|
400
|
+
}
|
401
|
+
},
|
402
|
+
// Hour [1-12]
|
403
|
+
h: function(n, r, e) {
|
404
|
+
if (r === "ho") {
|
405
|
+
let t = n.getHours() % 12;
|
406
|
+
return t === 0 && (t = 12), e.ordinalNumber(t, { unit: "hour" });
|
407
|
+
}
|
408
|
+
return u.h(n, r);
|
409
|
+
},
|
410
|
+
// Hour [0-23]
|
411
|
+
H: function(n, r, e) {
|
412
|
+
return r === "Ho" ? e.ordinalNumber(n.getHours(), { unit: "hour" }) : u.H(n, r);
|
413
|
+
},
|
414
|
+
// Hour [0-11]
|
415
|
+
K: function(n, r, e) {
|
416
|
+
const t = n.getHours() % 12;
|
417
|
+
return r === "Ko" ? e.ordinalNumber(t, { unit: "hour" }) : i(t, r.length);
|
418
|
+
},
|
419
|
+
// Hour [1-24]
|
420
|
+
k: function(n, r, e) {
|
421
|
+
let t = n.getHours();
|
422
|
+
return t === 0 && (t = 24), r === "ko" ? e.ordinalNumber(t, { unit: "hour" }) : i(t, r.length);
|
423
|
+
},
|
424
|
+
// Minute
|
425
|
+
m: function(n, r, e) {
|
426
|
+
return r === "mo" ? e.ordinalNumber(n.getMinutes(), { unit: "minute" }) : u.m(n, r);
|
427
|
+
},
|
428
|
+
// Second
|
429
|
+
s: function(n, r, e) {
|
430
|
+
return r === "so" ? e.ordinalNumber(n.getSeconds(), { unit: "second" }) : u.s(n, r);
|
431
|
+
},
|
432
|
+
// Fraction of second
|
433
|
+
S: function(n, r) {
|
434
|
+
return u.S(n, r);
|
435
|
+
},
|
436
|
+
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
437
|
+
X: function(n, r, e) {
|
438
|
+
const t = n.getTimezoneOffset();
|
439
|
+
if (t === 0)
|
440
|
+
return "Z";
|
441
|
+
switch (r) {
|
442
|
+
case "X":
|
443
|
+
return f(t);
|
444
|
+
case "XXXX":
|
445
|
+
case "XX":
|
446
|
+
return c(t);
|
447
|
+
case "XXXXX":
|
448
|
+
case "XXX":
|
449
|
+
default:
|
450
|
+
return c(t, ":");
|
451
|
+
}
|
452
|
+
},
|
453
|
+
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
454
|
+
x: function(n, r, e) {
|
455
|
+
const t = n.getTimezoneOffset();
|
456
|
+
switch (r) {
|
457
|
+
case "x":
|
458
|
+
return f(t);
|
459
|
+
case "xxxx":
|
460
|
+
case "xx":
|
461
|
+
return c(t);
|
462
|
+
case "xxxxx":
|
463
|
+
case "xxx":
|
464
|
+
default:
|
465
|
+
return c(t, ":");
|
466
|
+
}
|
467
|
+
},
|
468
|
+
// Timezone (GMT)
|
469
|
+
O: function(n, r, e) {
|
470
|
+
const t = n.getTimezoneOffset();
|
471
|
+
switch (r) {
|
472
|
+
case "O":
|
473
|
+
case "OO":
|
474
|
+
case "OOO":
|
475
|
+
return "GMT" + d(t, ":");
|
476
|
+
case "OOOO":
|
477
|
+
default:
|
478
|
+
return "GMT" + c(t, ":");
|
479
|
+
}
|
480
|
+
},
|
481
|
+
// Timezone (specific non-location)
|
482
|
+
z: function(n, r, e) {
|
483
|
+
const t = n.getTimezoneOffset();
|
484
|
+
switch (r) {
|
485
|
+
case "z":
|
486
|
+
case "zz":
|
487
|
+
case "zzz":
|
488
|
+
return "GMT" + d(t, ":");
|
489
|
+
case "zzzz":
|
490
|
+
default:
|
491
|
+
return "GMT" + c(t, ":");
|
492
|
+
}
|
493
|
+
},
|
494
|
+
// Seconds timestamp
|
495
|
+
t: function(n, r, e) {
|
496
|
+
const t = Math.trunc(n.getTime() / 1e3);
|
497
|
+
return i(t, r.length);
|
498
|
+
},
|
499
|
+
// Milliseconds timestamp
|
500
|
+
T: function(n, r, e) {
|
501
|
+
const t = n.getTime();
|
502
|
+
return i(t, r.length);
|
503
|
+
}
|
504
|
+
};
|
505
|
+
function d(n, r = "") {
|
506
|
+
const e = n > 0 ? "-" : "+", t = Math.abs(n), a = Math.trunc(t / 60), o = t % 60;
|
507
|
+
return o === 0 ? e + String(a) : e + String(a) + r + i(o, 2);
|
508
|
+
}
|
509
|
+
function f(n, r) {
|
510
|
+
return n % 60 === 0 ? (n > 0 ? "-" : "+") + i(Math.abs(n) / 60, 2) : c(n, r);
|
511
|
+
}
|
512
|
+
function c(n, r = "") {
|
513
|
+
const e = n > 0 ? "-" : "+", t = Math.abs(n), a = i(Math.trunc(t / 60), 2), o = i(t % 60, 2);
|
514
|
+
return e + a + r + o;
|
515
|
+
}
|
516
|
+
export {
|
517
|
+
L as formatters
|
518
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../addLeadingZeros.cjs"),d={y(t,e){const a=t.getFullYear(),n=a>0?a:1-a;return r.addLeadingZeros(e==="yy"?n%100:n,e.length)},M(t,e){const a=t.getMonth();return e==="M"?String(a+1):r.addLeadingZeros(a+1,2)},d(t,e){return r.addLeadingZeros(t.getDate(),e.length)},a(t,e){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(t,e){return r.addLeadingZeros(t.getHours()%12||12,e.length)},H(t,e){return r.addLeadingZeros(t.getHours(),e.length)},m(t,e){return r.addLeadingZeros(t.getMinutes(),e.length)},s(t,e){return r.addLeadingZeros(t.getSeconds(),e.length)},S(t,e){const a=e.length,n=t.getMilliseconds(),s=Math.trunc(n*Math.pow(10,a-3));return r.addLeadingZeros(s,e.length)}};exports.lightFormatters=d;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { addLeadingZeros as n } from "../addLeadingZeros.js";
|
2
|
+
const g = {
|
3
|
+
// Year
|
4
|
+
y(e, t) {
|
5
|
+
const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
|
6
|
+
return n(t === "yy" ? a % 100 : a, t.length);
|
7
|
+
},
|
8
|
+
// Month
|
9
|
+
M(e, t) {
|
10
|
+
const r = e.getMonth();
|
11
|
+
return t === "M" ? String(r + 1) : n(r + 1, 2);
|
12
|
+
},
|
13
|
+
// Day of the month
|
14
|
+
d(e, t) {
|
15
|
+
return n(e.getDate(), t.length);
|
16
|
+
},
|
17
|
+
// AM or PM
|
18
|
+
a(e, t) {
|
19
|
+
const r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
20
|
+
switch (t) {
|
21
|
+
case "a":
|
22
|
+
case "aa":
|
23
|
+
return r.toUpperCase();
|
24
|
+
case "aaa":
|
25
|
+
return r;
|
26
|
+
case "aaaaa":
|
27
|
+
return r[0];
|
28
|
+
case "aaaa":
|
29
|
+
default:
|
30
|
+
return r === "am" ? "a.m." : "p.m.";
|
31
|
+
}
|
32
|
+
},
|
33
|
+
// Hour [1-12]
|
34
|
+
h(e, t) {
|
35
|
+
return n(e.getHours() % 12 || 12, t.length);
|
36
|
+
},
|
37
|
+
// Hour [0-23]
|
38
|
+
H(e, t) {
|
39
|
+
return n(e.getHours(), t.length);
|
40
|
+
},
|
41
|
+
// Minute
|
42
|
+
m(e, t) {
|
43
|
+
return n(e.getMinutes(), t.length);
|
44
|
+
},
|
45
|
+
// Second
|
46
|
+
s(e, t) {
|
47
|
+
return n(e.getSeconds(), t.length);
|
48
|
+
},
|
49
|
+
// Fraction of second
|
50
|
+
S(e, t) {
|
51
|
+
const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
|
52
|
+
a * Math.pow(10, r - 3)
|
53
|
+
);
|
54
|
+
return n(s, t.length);
|
55
|
+
}
|
56
|
+
};
|
57
|
+
export {
|
58
|
+
g as lightFormatters
|
59
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},c=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},P=(t,e)=>{const a=t.match(/(P+)(p+)?/)||[],d=a[1],r=a[2];if(!r)return s(t,e);let i;switch(d){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",s(d,e)).replace("{{time}}",c(r,e))},u={p:c,P};exports.longFormatters=u;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
const s = (t, e) => {
|
2
|
+
switch (t) {
|
3
|
+
case "P":
|
4
|
+
return e.date({ width: "short" });
|
5
|
+
case "PP":
|
6
|
+
return e.date({ width: "medium" });
|
7
|
+
case "PPP":
|
8
|
+
return e.date({ width: "long" });
|
9
|
+
case "PPPP":
|
10
|
+
default:
|
11
|
+
return e.date({ width: "full" });
|
12
|
+
}
|
13
|
+
}, c = (t, e) => {
|
14
|
+
switch (t) {
|
15
|
+
case "p":
|
16
|
+
return e.time({ width: "short" });
|
17
|
+
case "pp":
|
18
|
+
return e.time({ width: "medium" });
|
19
|
+
case "ppp":
|
20
|
+
return e.time({ width: "long" });
|
21
|
+
case "pppp":
|
22
|
+
default:
|
23
|
+
return e.time({ width: "full" });
|
24
|
+
}
|
25
|
+
}, P = (t, e) => {
|
26
|
+
const d = t.match(/(P+)(p+)?/) || [], a = d[1], r = d[2];
|
27
|
+
if (!r)
|
28
|
+
return s(t, e);
|
29
|
+
let i;
|
30
|
+
switch (a) {
|
31
|
+
case "P":
|
32
|
+
i = e.dateTime({ width: "short" });
|
33
|
+
break;
|
34
|
+
case "PP":
|
35
|
+
i = e.dateTime({ width: "medium" });
|
36
|
+
break;
|
37
|
+
case "PPP":
|
38
|
+
i = e.dateTime({ width: "long" });
|
39
|
+
break;
|
40
|
+
case "PPPP":
|
41
|
+
default:
|
42
|
+
i = e.dateTime({ width: "full" });
|
43
|
+
break;
|
44
|
+
}
|
45
|
+
return i.replace("{{date}}", s(a, e)).replace("{{time}}", c(r, e));
|
46
|
+
}, h = {
|
47
|
+
p: c,
|
48
|
+
P
|
49
|
+
};
|
50
|
+
export {
|
51
|
+
h as longFormatters
|
52
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../toDate.cjs");function s(t){const e=o.toDate(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}exports.getTimezoneOffsetInMilliseconds=s;
|