bt-core-app 2.1.37 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjs-dynamic-modules.mjs +6 -0
- package/dist/_virtual/_commonjsHelpers.mjs +30 -0
- package/dist/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/dist/_virtual/index.mjs +4 -0
- package/dist/_virtual/localforage.mjs +4 -0
- package/dist/_virtual/luxon.mjs +6 -0
- package/dist/_virtual/matcher.mjs +4 -0
- package/dist/_virtual/parser.mjs +4 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-matcher/dist/index.mjs +12 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-matcher/dist/matcher.mjs +220 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-parser/dist/parser.mjs +186 -0
- package/dist/bt-core/core/node_modules/@mdi/js/mdi.mjs +70 -0
- package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs +1 -0
- package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.mjs +5210 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/addLeadingZeros.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/defaultOptions.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/formatters.mjs +517 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/lightFormatters.mjs +59 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/longFormatters.mjs +52 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs +18 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/normalizeDates.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/normalizeInterval.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/protectedTokens.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/add.mjs +20 -0
- package/dist/bt-core/core/node_modules/date-fns/addDays.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/addHours.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/addMilliseconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/addMonths.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/addQuarters.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/addYears.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/compareAsc.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/constants.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/constructFrom.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInCalendarDays.mjs +16 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInCalendarYears.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInYears.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/eachDayOfInterval.mjs +20 -0
- package/dist/bt-core/core/node_modules/date-fns/eachQuarterOfInterval.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfWeek.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfYear.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/format.mjs +60 -0
- package/dist/bt-core/core/node_modules/date-fns/getDay.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getDayOfYear.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/getDaysInMonth.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/getDefaultOptions.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getHours.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getISODay.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/getISOWeek.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/getISOWeekYear.mjs +15 -0
- package/dist/bt-core/core/node_modules/date-fns/getMinutes.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getMonth.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/getSeconds.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getWeek.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/getWeekYear.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/getYear.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isAfter.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isBefore.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isDate.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/isEqual.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isSameQuarter.mjs +14 -0
- package/dist/bt-core/core/node_modules/date-fns/isValid.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs +18 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildMatchFn.mjs +31 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatLong.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/localize.mjs +155 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/match.mjs +110 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/Parser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/Setter.mjs +41 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/constants.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/AMPMParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DateParser.mjs +61 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.mjs +51 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayParser.mjs +45 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/EraParser.mjs +30 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISODayParser.mjs +99 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.mjs +40 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.mjs +74 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.mjs +69 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/MinuteParser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/MonthParser.mjs +71 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/QuarterParser.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/SecondParser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.mjs +74 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.mjs +71 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/YearParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers.mjs +67 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/utils.mjs +103 -0
- package/dist/bt-core/core/node_modules/date-fns/parse.mjs +90 -0
- package/dist/bt-core/core/node_modules/date-fns/set.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/setDay.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/setHours.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setISODay.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/setISOWeek.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/setMilliseconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setMinutes.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setMonth.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/setSeconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setWeek.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/setYear.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfDay.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfISOWeek.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfISOWeekYear.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfMonth.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfWeek.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfWeekYear.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfYear.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/sub.mjs +19 -0
- package/dist/bt-core/core/node_modules/date-fns/subDays.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/subMonths.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/subYears.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/toDate.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/transpose.mjs +18 -0
- package/dist/bt-core/core/node_modules/localforage/dist/localforage.mjs +1454 -0
- package/dist/bt-core/core/node_modules/luxon/src/datetime.mjs +1855 -0
- package/dist/bt-core/core/node_modules/luxon/src/duration.mjs +753 -0
- package/dist/bt-core/core/node_modules/luxon/src/errors.mjs +40 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/conversions.mjs +92 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/diff.mjs +36 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/digits.mjs +77 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/english.mjs +138 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/formats.mjs +150 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/formatter.mjs +258 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/invalid.mjs +11 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/locale.mjs +294 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/regexParser.mjs +202 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/tokenParser.mjs +329 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/util.mjs +220 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/zoneUtil.mjs +20 -0
- package/dist/bt-core/core/node_modules/luxon/src/info.mjs +180 -0
- package/dist/bt-core/core/node_modules/luxon/src/interval.mjs +481 -0
- package/dist/bt-core/core/node_modules/luxon/src/luxon.mjs +24 -0
- package/dist/bt-core/core/node_modules/luxon/src/settings.mjs +150 -0
- package/dist/bt-core/core/node_modules/luxon/src/zone.mjs +88 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/IANAZone.mjs +183 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/fixedOffsetZone.mjs +125 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/invalidZone.mjs +41 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/systemZone.mjs +47 -0
- package/dist/bt-core/core/node_modules/merge-images/dist/index.es2015.mjs +47 -0
- package/dist/bt-core/core/node_modules/signature_pad/dist/signature_pad.mjs +248 -0
- package/dist/bt-core/core/node_modules/thenby/thenBy.module.mjs +38 -0
- package/dist/bt-core/core/node_modules/vue-picture-cropper/lib/index.mjs +1643 -0
- package/dist/bt-core/core/node_modules/vue-signature-pad/dist/vue-signature-pad.esm.mjs +173 -0
- package/dist/bt-core/core/node_modules/vue-use-spring/dist/index.mjs +204 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/defaults.mjs +61 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +82 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/iconsets/mdi-svg.mjs +74 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/colors.mjs +322 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/console.mjs +7 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/defineComponent.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/getCurrentInstance.mjs +10 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +44 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/injectSelf.mjs +12 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/propsFactory.mjs +14 -0
- package/dist/components/BT-Assistant-Menu.vue.d.ts +19 -0
- package/dist/components/BT-Assistant-Menu.vue.mjs +464 -0
- package/dist/components/BT-Assistant-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Avatar.vue.d.ts +16 -0
- package/dist/components/BT-Avatar.vue.mjs +41 -0
- package/dist/components/BT-Avatar.vue2.mjs +4 -0
- package/dist/components/BT-Background-Task.vue.d.ts +61 -0
- package/dist/components/BT-Background-Task.vue.mjs +89 -0
- package/dist/components/BT-Background-Task.vue2.mjs +4 -0
- package/dist/components/BT-Blade-Item.vue.d.ts +578 -0
- package/dist/components/BT-Blade-Item.vue.mjs +441 -0
- package/dist/components/BT-Blade-Item.vue2.mjs +4 -0
- package/dist/components/BT-Blade-Items.vue.d.ts +2358 -0
- package/dist/components/BT-Blade-Items.vue.mjs +7 -0
- package/dist/components/BT-Blade-Items.vue2.mjs +943 -0
- package/dist/components/BT-Blade-Items.vue3.mjs +1 -0
- package/dist/components/BT-Blade-Steps.vue.d.ts +1740 -0
- package/dist/components/BT-Blade-Steps.vue.mjs +7 -0
- package/dist/components/BT-Blade-Steps.vue2.mjs +1305 -0
- package/dist/components/BT-Blade-Steps.vue3.mjs +1 -0
- package/dist/components/BT-Blade.vue.d.ts +109 -0
- package/dist/components/BT-Blade.vue.mjs +268 -0
- package/dist/components/BT-Blade.vue2.mjs +4 -0
- package/dist/components/BT-Btn.vue.d.ts +47 -0
- package/dist/components/BT-Btn.vue.mjs +43 -0
- package/dist/components/BT-Btn.vue2.mjs +4 -0
- package/dist/components/BT-Camera-Overlay.vue.d.ts +57 -0
- package/dist/components/BT-Camera-Overlay.vue.mjs +173 -0
- package/dist/components/BT-Camera-Overlay.vue2.mjs +4 -0
- package/dist/components/BT-Col.vue.d.ts +49 -0
- package/dist/components/BT-Col.vue.mjs +33 -0
- package/dist/components/BT-Col.vue2.mjs +4 -0
- package/dist/components/BT-Color-Picker-Menu.vue.d.ts +23 -0
- package/dist/components/BT-Color-Picker-Menu.vue.mjs +63 -0
- package/dist/components/BT-Color-Picker-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Cosmetics-Menu.vue.d.ts +14 -0
- package/dist/components/BT-Cosmetics-Menu.vue.mjs +211 -0
- package/dist/components/BT-Cosmetics-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Cron-Span.vue.d.ts +21 -0
- package/dist/components/BT-Cron-Span.vue.mjs +66 -0
- package/dist/components/BT-Cron-Span.vue2.mjs +4 -0
- package/dist/components/BT-Cron.vue.d.ts +37 -0
- package/dist/components/BT-Cron.vue.mjs +538 -0
- package/dist/components/BT-Cron.vue2.mjs +4 -0
- package/dist/components/BT-Date-Select.vue.d.ts +46 -0
- package/dist/components/BT-Date-Select.vue.mjs +71 -0
- package/dist/components/BT-Date-Select.vue2.mjs +4 -0
- package/dist/components/BT-Date.vue.d.ts +53 -0
- package/dist/components/BT-Date.vue.mjs +55 -0
- package/dist/components/BT-Date.vue2.mjs +4 -0
- package/dist/components/BT-Demo-Profile-Select.vue.d.ts +17 -0
- package/dist/components/BT-Demo-Profile-Select.vue.mjs +52 -0
- package/dist/components/BT-Demo-Profile-Select.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Confirm.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Confirm.vue.mjs +63 -0
- package/dist/components/BT-Dialog-Confirm.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Date.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Date.vue.mjs +79 -0
- package/dist/components/BT-Dialog-Date.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Number.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Number.vue.mjs +178 -0
- package/dist/components/BT-Dialog-Number.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Select.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Select.vue.mjs +235 -0
- package/dist/components/BT-Dialog-Select.vue2.mjs +4 -0
- package/dist/components/BT-Divider.vue.d.ts +24 -0
- package/dist/components/BT-Divider.vue.mjs +31 -0
- package/dist/components/BT-Divider.vue2.mjs +4 -0
- package/dist/components/BT-Drag-Counter.vue.d.ts +114 -0
- package/dist/components/BT-Drag-Counter.vue.mjs +7 -0
- package/dist/components/BT-Drag-Counter.vue2.mjs +156 -0
- package/dist/components/BT-Drag-Counter.vue3.mjs +1 -0
- package/dist/components/BT-Entity.vue.d.ts +82 -0
- package/dist/components/BT-Entity.vue.mjs +172 -0
- package/dist/components/BT-Entity.vue2.mjs +4 -0
- package/dist/components/BT-Error.vue.d.ts +15 -0
- package/dist/components/BT-Error.vue.mjs +35 -0
- package/dist/components/BT-Error.vue2.mjs +4 -0
- package/dist/components/BT-Field-Checkbox.vue.d.ts +57 -0
- package/dist/components/BT-Field-Checkbox.vue.mjs +61 -0
- package/dist/components/BT-Field-Checkbox.vue2.mjs +4 -0
- package/dist/components/BT-Field-Date.vue.d.ts +69 -0
- package/dist/components/BT-Field-Date.vue.mjs +120 -0
- package/dist/components/BT-Field-Date.vue2.mjs +4 -0
- package/dist/components/BT-Field-Entity.vue.d.ts +48 -0
- package/dist/components/BT-Field-Entity.vue.mjs +55 -0
- package/dist/components/BT-Field-Entity.vue2.mjs +4 -0
- package/dist/components/BT-Field-Select-Simple.vue.d.ts +55 -0
- package/dist/components/BT-Field-Select-Simple.vue.mjs +52 -0
- package/dist/components/BT-Field-Select-Simple.vue2.mjs +4 -0
- package/dist/components/BT-Field-Select.vue.d.ts +70 -0
- package/dist/components/BT-Field-Select.vue.mjs +60 -0
- package/dist/components/BT-Field-Select.vue2.mjs +4 -0
- package/dist/components/BT-Field-String.vue.d.ts +57 -0
- package/dist/components/BT-Field-String.vue.mjs +87 -0
- package/dist/components/BT-Field-String.vue2.mjs +4 -0
- package/dist/components/BT-Field-Switch.vue.d.ts +51 -0
- package/dist/components/BT-Field-Switch.vue.mjs +64 -0
- package/dist/components/BT-Field-Switch.vue2.mjs +4 -0
- package/dist/components/BT-Field-Tags.vue.d.ts +53 -0
- package/dist/components/BT-Field-Tags.vue.mjs +80 -0
- package/dist/components/BT-Field-Tags.vue2.mjs +4 -0
- package/dist/components/BT-Field-Textarea.vue.d.ts +53 -0
- package/dist/components/BT-Field-Textarea.vue.mjs +66 -0
- package/dist/components/BT-Field-Textarea.vue2.mjs +4 -0
- package/dist/components/BT-Field-Trigger.vue.d.ts +113 -0
- package/dist/components/BT-Field-Trigger.vue.mjs +368 -0
- package/dist/components/BT-Field-Trigger.vue2.mjs +4 -0
- package/dist/components/BT-Field.vue.d.ts +49 -0
- package/dist/components/BT-Field.vue.mjs +59 -0
- package/dist/components/BT-Field.vue2.mjs +4 -0
- package/dist/components/BT-Form-Builder.vue.d.ts +74 -0
- package/dist/components/BT-Form-Builder.vue.mjs +762 -0
- package/dist/components/BT-Form-Builder.vue2.mjs +4 -0
- package/dist/components/BT-Form-Field.vue.d.ts +41 -0
- package/dist/components/BT-Form-Field.vue.mjs +186 -0
- package/dist/components/BT-Form-Field.vue2.mjs +4 -0
- package/dist/components/BT-Form.vue.d.ts +95 -0
- package/dist/components/BT-Form.vue.mjs +635 -0
- package/dist/components/BT-Form.vue2.mjs +4 -0
- package/dist/components/BT-Header-Option.vue.d.ts +18 -0
- package/dist/components/BT-Header-Option.vue.mjs +62 -0
- package/dist/components/BT-Header-Option.vue2.mjs +4 -0
- package/dist/components/BT-Image-Select.vue.d.ts +71 -0
- package/dist/components/BT-Image-Select.vue.mjs +219 -0
- package/dist/components/BT-Image-Select.vue2.mjs +4 -0
- package/dist/components/BT-Json.vue.d.ts +6 -0
- package/dist/components/BT-Json.vue.mjs +38 -0
- package/dist/components/BT-Json.vue2.mjs +1 -0
- package/dist/components/BT-Json.vue3.mjs +5 -0
- package/dist/components/BT-Loader.vue.d.ts +6 -0
- package/dist/components/BT-Loader.vue.mjs +37 -0
- package/dist/components/BT-Loader.vue2.mjs +4 -0
- package/dist/components/BT-Nav-Sidebar.vue.d.ts +25 -0
- package/dist/components/BT-Nav-Sidebar.vue.mjs +138 -0
- package/dist/components/BT-Nav-Sidebar.vue2.mjs +4 -0
- package/dist/components/BT-Number.vue.d.ts +23 -0
- package/dist/components/BT-Number.vue.mjs +7 -0
- package/dist/components/BT-Number.vue2.mjs +43 -0
- package/dist/components/BT-Number.vue3.mjs +1 -0
- package/dist/components/BT-Numpad.vue.d.ts +68 -0
- package/dist/components/BT-Numpad.vue.mjs +191 -0
- package/dist/components/BT-Numpad.vue2.mjs +4 -0
- package/dist/components/BT-Select-Inline.vue.d.ts +121 -0
- package/dist/components/BT-Select-Inline.vue.mjs +74 -0
- package/dist/components/BT-Select-Inline.vue2.mjs +24 -0
- package/dist/components/BT-Select-Inline.vue3.mjs +1 -0
- package/dist/components/BT-Select-List-Box.vue.d.ts +137 -0
- package/dist/components/BT-Select-List-Box.vue.mjs +414 -0
- package/dist/components/BT-Select-List-Box.vue2.mjs +4 -0
- package/dist/components/BT-Select-Simple.vue.d.ts +58 -0
- package/dist/components/BT-Select-Simple.vue.mjs +126 -0
- package/dist/components/BT-Select-Simple.vue2.mjs +4 -0
- package/dist/components/BT-Select.vue.d.ts +73 -0
- package/dist/components/BT-Select.vue.mjs +138 -0
- package/dist/components/BT-Select.vue2.mjs +4 -0
- package/dist/components/BT-Signature-Overlay.vue.d.ts +65 -0
- package/dist/components/BT-Signature-Overlay.vue.mjs +146 -0
- package/dist/components/BT-Signature-Overlay.vue2.mjs +4 -0
- package/dist/components/BT-Signature.vue.d.ts +70 -0
- package/dist/components/BT-Signature.vue.mjs +155 -0
- package/dist/components/BT-Signature.vue2.mjs +4 -0
- package/dist/components/BT-Slider.vue.d.ts +37 -0
- package/dist/components/BT-Slider.vue.mjs +126 -0
- package/dist/components/BT-Slider.vue2.mjs +4 -0
- package/dist/components/BT-Span.vue.d.ts +19 -0
- package/dist/components/BT-Span.vue.mjs +23 -0
- package/dist/components/BT-Span.vue2.mjs +4 -0
- package/dist/components/BT-Square-Check.vue.d.ts +104 -0
- package/dist/components/BT-Square-Check.vue.mjs +98 -0
- package/dist/components/BT-Square-Check.vue2.mjs +4 -0
- package/dist/components/BT-Status-Item.vue.d.ts +45 -0
- package/dist/components/BT-Status-Item.vue.mjs +51 -0
- package/dist/components/BT-Status-Item.vue2.mjs +4 -0
- package/dist/components/BT-Tags.vue.d.ts +19 -0
- package/dist/components/BT-Tags.vue.mjs +32 -0
- package/dist/components/BT-Tags.vue2.mjs +4 -0
- package/dist/components/BT-Tour.vue.d.ts +43 -0
- package/dist/components/BT-Tour.vue.mjs +78 -0
- package/dist/components/BT-Tour.vue2.mjs +4 -0
- package/dist/components.mjs +36 -0
- package/dist/composables/actions-local.d.ts +14 -0
- package/dist/composables/actions-local.mjs +26 -0
- package/dist/composables/actions-tracker.d.ts +36 -0
- package/dist/composables/actions-tracker.mjs +88 -0
- package/dist/composables/actions.d.ts +116 -0
- package/dist/composables/actions.mjs +272 -0
- package/dist/composables/api.d.ts +100 -0
- package/dist/composables/api.mjs +329 -0
- package/dist/composables/assistant.d.ts +38 -0
- package/dist/composables/assistant.mjs +70 -0
- package/dist/composables/auth.d.ts +94 -0
- package/dist/composables/auth.mjs +257 -0
- package/dist/composables/background-tasks.d.ts +31 -0
- package/dist/composables/background-tasks.mjs +79 -0
- package/dist/composables/blade-old.d.ts +1 -0
- package/dist/composables/blade.d.ts +91 -0
- package/dist/composables/blade.mjs +156 -0
- package/dist/composables/charts.d.ts +10 -0
- package/dist/composables/colorizer.d.ts +5 -0
- package/dist/composables/colorizer.mjs +27 -0
- package/dist/composables/component-config.d.ts +8 -0
- package/dist/composables/component-config.mjs +11 -0
- package/dist/composables/confirm.d.ts +1 -0
- package/dist/composables/confirm.mjs +11 -0
- package/dist/composables/cosmetics.d.ts +44 -0
- package/dist/composables/cosmetics.mjs +125 -0
- package/dist/composables/cron-adjustments.d.ts +63 -0
- package/dist/composables/cron-adjustments.mjs +106 -0
- package/dist/composables/cron.d.ts +72 -0
- package/dist/composables/cron.mjs +326 -0
- package/dist/composables/csv.d.ts +44 -0
- package/dist/composables/csv.mjs +163 -0
- package/dist/composables/dates.d.ts +22 -0
- package/dist/composables/dates.mjs +61 -0
- package/dist/composables/demo.d.ts +68 -0
- package/dist/composables/demo.mjs +173 -0
- package/dist/composables/dialog-items.d.ts +117 -0
- package/dist/composables/dialog-items.mjs +72 -0
- package/dist/composables/document-meta.d.ts +11 -0
- package/dist/composables/document-meta.mjs +20 -0
- package/dist/composables/draggable.d.ts +56 -0
- package/dist/composables/draggable.mjs +76 -0
- package/dist/composables/feedback.d.ts +24 -0
- package/dist/composables/feedback.mjs +32 -0
- package/dist/composables/filters.d.ts +27 -0
- package/dist/composables/filters.mjs +218 -0
- package/dist/composables/forage.d.ts +89 -0
- package/dist/composables/forage.mjs +37 -0
- package/dist/composables/forms.d.ts +104 -0
- package/dist/composables/forms.mjs +256 -0
- package/dist/composables/geo.d.ts +24 -0
- package/dist/composables/geo.mjs +95 -0
- package/dist/composables/graph-pro.d.ts +98 -0
- package/dist/composables/graph-pro.mjs +205 -0
- package/dist/composables/graphing.d.ts +1 -0
- package/dist/composables/heights.d.ts +24 -0
- package/dist/composables/heights.mjs +41 -0
- package/dist/composables/helpers.d.ts +114 -0
- package/dist/composables/helpers.mjs +512 -0
- package/dist/composables/icons.d.ts +3 -0
- package/dist/composables/icons.mjs +84 -0
- package/dist/composables/id.d.ts +8 -0
- package/dist/composables/id.mjs +32 -0
- package/dist/composables/item.d.ts +132 -0
- package/dist/composables/item.mjs +263 -0
- package/dist/composables/iterating.d.ts +1 -0
- package/dist/composables/list.d.ts +345 -0
- package/dist/composables/list.mjs +460 -0
- package/dist/composables/lists.d.ts +10 -0
- package/dist/composables/lists.mjs +31 -0
- package/dist/composables/menu.d.ts +35 -0
- package/dist/composables/menu.mjs +63 -0
- package/dist/composables/navigation.d.ts +123 -0
- package/dist/composables/navigation.mjs +157 -0
- package/dist/composables/nested.d.ts +3 -0
- package/dist/composables/nested.mjs +20 -0
- package/dist/composables/old-dialogs.d.ts +1 -0
- package/dist/composables/presets.d.ts +8 -0
- package/dist/composables/presets.mjs +16 -0
- package/dist/composables/pwa-old.d.ts +15 -0
- package/dist/composables/pwa.d.ts +26 -0
- package/dist/composables/pwa.mjs +80 -0
- package/dist/composables/resizable.d.ts +34 -0
- package/dist/composables/resizable.mjs +135 -0
- package/dist/composables/routing-old.d.ts +1 -0
- package/dist/composables/routing.d.ts +16 -0
- package/dist/composables/routing.mjs +112 -0
- package/dist/composables/rules.d.ts +13 -0
- package/dist/composables/rules.mjs +22 -0
- package/dist/composables/select.d.ts +78 -0
- package/dist/composables/select.mjs +129 -0
- package/dist/composables/settings.d.ts +6 -0
- package/dist/composables/settings.mjs +21 -0
- package/dist/composables/setup.d.ts +1 -0
- package/dist/composables/steps-old.d.ts +1 -0
- package/dist/composables/steps.d.ts +53 -0
- package/dist/composables/steps.mjs +39 -0
- package/dist/composables/stores.d.ts +258 -0
- package/dist/composables/stores.mjs +1257 -0
- package/dist/composables/sync.d.ts +33 -0
- package/dist/composables/track.d.ts +13 -0
- package/dist/composables/track.mjs +30 -0
- package/dist/composables/urls.d.ts +35 -0
- package/dist/composables/urls.mjs +66 -0
- package/dist/composables/vuetify.d.ts +85 -0
- package/dist/composables.mjs +237 -0
- package/dist/core.d.ts +48 -0
- package/dist/core.mjs +6 -0
- package/dist/core2.mjs +118 -0
- package/dist/index-components.d.ts +19 -0
- package/dist/index-composables.d.ts +75 -0
- package/dist/index-core.d.ts +3 -0
- package/dist/index.d.ts +96 -3036
- package/dist/index.mjs +275 -0
- package/dist/main.d.ts +1 -0
- package/dist/node_modules/bt-core-app/dist/bt-core-app.mjs +30372 -0
- package/dist/style.css +1 -5
- package/dist/types.d.ts +18 -0
- package/dist/types.mjs +7 -0
- package/package.json +13 -1
- package/dist/bt-core-app.js +0 -81355
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { meridiemForDateTime as M, monthForDateTime as F, weekdayForDateTime as S, eraForDateTime as g } from "./english.mjs";
|
|
2
|
+
import { DATE_SHORT as _, DATE_MED as p, DATE_FULL as L, DATE_HUGE as k, TIME_SIMPLE as w, TIME_WITH_SECONDS as I, TIME_WITH_SHORT_OFFSET as O, TIME_WITH_LONG_OFFSET as Z, TIME_24_SIMPLE as d, TIME_24_WITH_SECONDS as H, TIME_24_WITH_SHORT_OFFSET as W, TIME_24_WITH_LONG_OFFSET as N, DATETIME_SHORT as v, DATETIME_MED as A, DATETIME_FULL as G, DATETIME_HUGE as C, DATETIME_SHORT_WITH_SECONDS as U, DATETIME_MED_WITH_SECONDS as b, DATETIME_FULL_WITH_SECONDS as R, DATETIME_HUGE_WITH_SECONDS as q } from "./formats.mjs";
|
|
3
|
+
import { padStart as z } from "./util.mjs";
|
|
4
|
+
function E(D, e) {
|
|
5
|
+
let r = "";
|
|
6
|
+
for (const t of D)
|
|
7
|
+
t.literal ? r += t.val : r += e(t.val);
|
|
8
|
+
return r;
|
|
9
|
+
}
|
|
10
|
+
const x = {
|
|
11
|
+
D: _,
|
|
12
|
+
DD: p,
|
|
13
|
+
DDD: L,
|
|
14
|
+
DDDD: k,
|
|
15
|
+
t: w,
|
|
16
|
+
tt: I,
|
|
17
|
+
ttt: O,
|
|
18
|
+
tttt: Z,
|
|
19
|
+
T: d,
|
|
20
|
+
TT: H,
|
|
21
|
+
TTT: W,
|
|
22
|
+
TTTT: N,
|
|
23
|
+
f: v,
|
|
24
|
+
ff: A,
|
|
25
|
+
fff: G,
|
|
26
|
+
ffff: C,
|
|
27
|
+
F: U,
|
|
28
|
+
FF: b,
|
|
29
|
+
FFF: R,
|
|
30
|
+
FFFF: q
|
|
31
|
+
};
|
|
32
|
+
class T {
|
|
33
|
+
static create(e, r = {}) {
|
|
34
|
+
return new T(e, r);
|
|
35
|
+
}
|
|
36
|
+
static parseFormat(e) {
|
|
37
|
+
let r = null, t = "", n = !1;
|
|
38
|
+
const a = [];
|
|
39
|
+
for (let o = 0; o < e.length; o++) {
|
|
40
|
+
const u = e.charAt(o);
|
|
41
|
+
u === "'" ? ((t.length > 0 || n) && a.push({
|
|
42
|
+
literal: n || /^\s+$/.test(t),
|
|
43
|
+
val: t === "" ? "'" : t
|
|
44
|
+
}), r = null, t = "", n = !n) : n || u === r ? t += u : (t.length > 0 && a.push({ literal: /^\s+$/.test(t), val: t }), t = u, r = u);
|
|
45
|
+
}
|
|
46
|
+
return t.length > 0 && a.push({ literal: n || /^\s+$/.test(t), val: t }), a;
|
|
47
|
+
}
|
|
48
|
+
static macroTokenToFormatOpts(e) {
|
|
49
|
+
return x[e];
|
|
50
|
+
}
|
|
51
|
+
constructor(e, r) {
|
|
52
|
+
this.opts = r, this.loc = e, this.systemLoc = null;
|
|
53
|
+
}
|
|
54
|
+
formatWithSystemDefault(e, r) {
|
|
55
|
+
return this.systemLoc === null && (this.systemLoc = this.loc.redefaultToSystem()), this.systemLoc.dtFormatter(e, { ...this.opts, ...r }).format();
|
|
56
|
+
}
|
|
57
|
+
dtFormatter(e, r = {}) {
|
|
58
|
+
return this.loc.dtFormatter(e, { ...this.opts, ...r });
|
|
59
|
+
}
|
|
60
|
+
formatDateTime(e, r) {
|
|
61
|
+
return this.dtFormatter(e, r).format();
|
|
62
|
+
}
|
|
63
|
+
formatDateTimeParts(e, r) {
|
|
64
|
+
return this.dtFormatter(e, r).formatToParts();
|
|
65
|
+
}
|
|
66
|
+
formatInterval(e, r) {
|
|
67
|
+
return this.dtFormatter(e.start, r).dtf.formatRange(e.start.toJSDate(), e.end.toJSDate());
|
|
68
|
+
}
|
|
69
|
+
resolvedOptions(e, r) {
|
|
70
|
+
return this.dtFormatter(e, r).resolvedOptions();
|
|
71
|
+
}
|
|
72
|
+
num(e, r = 0, t = void 0) {
|
|
73
|
+
if (this.opts.forceSimple)
|
|
74
|
+
return z(e, r);
|
|
75
|
+
const n = { ...this.opts };
|
|
76
|
+
return r > 0 && (n.padTo = r), t && (n.signDisplay = t), this.loc.numberFormatter(n).format(e);
|
|
77
|
+
}
|
|
78
|
+
formatDateTimeFromString(e, r) {
|
|
79
|
+
const t = this.loc.listingMode() === "en", n = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (s, m) => this.loc.extract(e, s, m), o = (s) => e.isOffsetFixed && e.offset === 0 && s.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, s.format) : "", u = () => t ? M(e) : a({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), i = (s, m) => t ? F(e, s) : a(m ? { month: s } : { month: s, day: "numeric" }, "month"), h = (s, m) => t ? S(e, s) : a(
|
|
80
|
+
m ? { weekday: s } : { weekday: s, month: "long", day: "numeric" },
|
|
81
|
+
"weekday"
|
|
82
|
+
), c = (s) => {
|
|
83
|
+
const m = T.macroTokenToFormatOpts(s);
|
|
84
|
+
return m ? this.formatWithSystemDefault(e, m) : s;
|
|
85
|
+
}, l = (s) => t ? g(e, s) : a({ era: s }, "era"), f = (s) => {
|
|
86
|
+
switch (s) {
|
|
87
|
+
case "S":
|
|
88
|
+
return this.num(e.millisecond);
|
|
89
|
+
case "u":
|
|
90
|
+
case "SSS":
|
|
91
|
+
return this.num(e.millisecond, 3);
|
|
92
|
+
case "s":
|
|
93
|
+
return this.num(e.second);
|
|
94
|
+
case "ss":
|
|
95
|
+
return this.num(e.second, 2);
|
|
96
|
+
case "uu":
|
|
97
|
+
return this.num(Math.floor(e.millisecond / 10), 2);
|
|
98
|
+
case "uuu":
|
|
99
|
+
return this.num(Math.floor(e.millisecond / 100));
|
|
100
|
+
case "m":
|
|
101
|
+
return this.num(e.minute);
|
|
102
|
+
case "mm":
|
|
103
|
+
return this.num(e.minute, 2);
|
|
104
|
+
case "h":
|
|
105
|
+
return this.num(e.hour % 12 === 0 ? 12 : e.hour % 12);
|
|
106
|
+
case "hh":
|
|
107
|
+
return this.num(e.hour % 12 === 0 ? 12 : e.hour % 12, 2);
|
|
108
|
+
case "H":
|
|
109
|
+
return this.num(e.hour);
|
|
110
|
+
case "HH":
|
|
111
|
+
return this.num(e.hour, 2);
|
|
112
|
+
case "Z":
|
|
113
|
+
return o({ format: "narrow", allowZ: this.opts.allowZ });
|
|
114
|
+
case "ZZ":
|
|
115
|
+
return o({ format: "short", allowZ: this.opts.allowZ });
|
|
116
|
+
case "ZZZ":
|
|
117
|
+
return o({ format: "techie", allowZ: this.opts.allowZ });
|
|
118
|
+
case "ZZZZ":
|
|
119
|
+
return e.zone.offsetName(e.ts, { format: "short", locale: this.loc.locale });
|
|
120
|
+
case "ZZZZZ":
|
|
121
|
+
return e.zone.offsetName(e.ts, { format: "long", locale: this.loc.locale });
|
|
122
|
+
case "z":
|
|
123
|
+
return e.zoneName;
|
|
124
|
+
case "a":
|
|
125
|
+
return u();
|
|
126
|
+
case "d":
|
|
127
|
+
return n ? a({ day: "numeric" }, "day") : this.num(e.day);
|
|
128
|
+
case "dd":
|
|
129
|
+
return n ? a({ day: "2-digit" }, "day") : this.num(e.day, 2);
|
|
130
|
+
case "c":
|
|
131
|
+
return this.num(e.weekday);
|
|
132
|
+
case "ccc":
|
|
133
|
+
return h("short", !0);
|
|
134
|
+
case "cccc":
|
|
135
|
+
return h("long", !0);
|
|
136
|
+
case "ccccc":
|
|
137
|
+
return h("narrow", !0);
|
|
138
|
+
case "E":
|
|
139
|
+
return this.num(e.weekday);
|
|
140
|
+
case "EEE":
|
|
141
|
+
return h("short", !1);
|
|
142
|
+
case "EEEE":
|
|
143
|
+
return h("long", !1);
|
|
144
|
+
case "EEEEE":
|
|
145
|
+
return h("narrow", !1);
|
|
146
|
+
case "L":
|
|
147
|
+
return n ? a({ month: "numeric", day: "numeric" }, "month") : this.num(e.month);
|
|
148
|
+
case "LL":
|
|
149
|
+
return n ? a({ month: "2-digit", day: "numeric" }, "month") : this.num(e.month, 2);
|
|
150
|
+
case "LLL":
|
|
151
|
+
return i("short", !0);
|
|
152
|
+
case "LLLL":
|
|
153
|
+
return i("long", !0);
|
|
154
|
+
case "LLLLL":
|
|
155
|
+
return i("narrow", !0);
|
|
156
|
+
case "M":
|
|
157
|
+
return n ? a({ month: "numeric" }, "month") : this.num(e.month);
|
|
158
|
+
case "MM":
|
|
159
|
+
return n ? a({ month: "2-digit" }, "month") : this.num(e.month, 2);
|
|
160
|
+
case "MMM":
|
|
161
|
+
return i("short", !1);
|
|
162
|
+
case "MMMM":
|
|
163
|
+
return i("long", !1);
|
|
164
|
+
case "MMMMM":
|
|
165
|
+
return i("narrow", !1);
|
|
166
|
+
case "y":
|
|
167
|
+
return n ? a({ year: "numeric" }, "year") : this.num(e.year);
|
|
168
|
+
case "yy":
|
|
169
|
+
return n ? a({ year: "2-digit" }, "year") : this.num(e.year.toString().slice(-2), 2);
|
|
170
|
+
case "yyyy":
|
|
171
|
+
return n ? a({ year: "numeric" }, "year") : this.num(e.year, 4);
|
|
172
|
+
case "yyyyyy":
|
|
173
|
+
return n ? a({ year: "numeric" }, "year") : this.num(e.year, 6);
|
|
174
|
+
case "G":
|
|
175
|
+
return l("short");
|
|
176
|
+
case "GG":
|
|
177
|
+
return l("long");
|
|
178
|
+
case "GGGGG":
|
|
179
|
+
return l("narrow");
|
|
180
|
+
case "kk":
|
|
181
|
+
return this.num(e.weekYear.toString().slice(-2), 2);
|
|
182
|
+
case "kkkk":
|
|
183
|
+
return this.num(e.weekYear, 4);
|
|
184
|
+
case "W":
|
|
185
|
+
return this.num(e.weekNumber);
|
|
186
|
+
case "WW":
|
|
187
|
+
return this.num(e.weekNumber, 2);
|
|
188
|
+
case "n":
|
|
189
|
+
return this.num(e.localWeekNumber);
|
|
190
|
+
case "nn":
|
|
191
|
+
return this.num(e.localWeekNumber, 2);
|
|
192
|
+
case "ii":
|
|
193
|
+
return this.num(e.localWeekYear.toString().slice(-2), 2);
|
|
194
|
+
case "iiii":
|
|
195
|
+
return this.num(e.localWeekYear, 4);
|
|
196
|
+
case "o":
|
|
197
|
+
return this.num(e.ordinal);
|
|
198
|
+
case "ooo":
|
|
199
|
+
return this.num(e.ordinal, 3);
|
|
200
|
+
case "q":
|
|
201
|
+
return this.num(e.quarter);
|
|
202
|
+
case "qq":
|
|
203
|
+
return this.num(e.quarter, 2);
|
|
204
|
+
case "X":
|
|
205
|
+
return this.num(Math.floor(e.ts / 1e3));
|
|
206
|
+
case "x":
|
|
207
|
+
return this.num(e.ts);
|
|
208
|
+
default:
|
|
209
|
+
return c(s);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
return E(T.parseFormat(r), f);
|
|
213
|
+
}
|
|
214
|
+
formatDurationFromString(e, r) {
|
|
215
|
+
const t = this.opts.signMode === "negativeLargestOnly" ? -1 : 1, n = (c) => {
|
|
216
|
+
switch (c[0]) {
|
|
217
|
+
case "S":
|
|
218
|
+
return "milliseconds";
|
|
219
|
+
case "s":
|
|
220
|
+
return "seconds";
|
|
221
|
+
case "m":
|
|
222
|
+
return "minutes";
|
|
223
|
+
case "h":
|
|
224
|
+
return "hours";
|
|
225
|
+
case "d":
|
|
226
|
+
return "days";
|
|
227
|
+
case "w":
|
|
228
|
+
return "weeks";
|
|
229
|
+
case "M":
|
|
230
|
+
return "months";
|
|
231
|
+
case "y":
|
|
232
|
+
return "years";
|
|
233
|
+
default:
|
|
234
|
+
return null;
|
|
235
|
+
}
|
|
236
|
+
}, a = (c, l) => (f) => {
|
|
237
|
+
const s = n(f);
|
|
238
|
+
if (s) {
|
|
239
|
+
const m = l.isNegativeDuration && s !== l.largestUnit ? t : 1;
|
|
240
|
+
let y;
|
|
241
|
+
return this.opts.signMode === "negativeLargestOnly" && s !== l.largestUnit ? y = "never" : this.opts.signMode === "all" ? y = "always" : y = "auto", this.num(c.get(s) * m, f.length, y);
|
|
242
|
+
} else
|
|
243
|
+
return f;
|
|
244
|
+
}, o = T.parseFormat(r), u = o.reduce(
|
|
245
|
+
(c, { literal: l, val: f }) => l ? c : c.concat(f),
|
|
246
|
+
[]
|
|
247
|
+
), i = e.shiftTo(...u.map(n).filter((c) => c)), h = {
|
|
248
|
+
isNegativeDuration: i < 0,
|
|
249
|
+
// this relies on "collapsed" being based on "shiftTo", which builds up the object
|
|
250
|
+
// in order
|
|
251
|
+
largestUnit: Object.keys(i.values)[0]
|
|
252
|
+
};
|
|
253
|
+
return E(o, a(i, h));
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
export {
|
|
257
|
+
T as default
|
|
258
|
+
};
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { validateWeekSettings as w, hasLocaleWeekInfo as F, roundTo as I, padStart as W, hasRelative as D } from "./util.mjs";
|
|
2
|
+
import { formatRelativeTime as v, months as x, weekdays as Z, meridiems as L, eras as M } from "./english.mjs";
|
|
3
|
+
import m from "../settings.mjs";
|
|
4
|
+
import l from "../datetime.mjs";
|
|
5
|
+
import R from "../zones/IANAZone.mjs";
|
|
6
|
+
let T = {};
|
|
7
|
+
function E(n, e = {}) {
|
|
8
|
+
const t = JSON.stringify([n, e]);
|
|
9
|
+
let s = T[t];
|
|
10
|
+
return s || (s = new Intl.ListFormat(n, e), T[t] = s), s;
|
|
11
|
+
}
|
|
12
|
+
const d = /* @__PURE__ */ new Map();
|
|
13
|
+
function p(n, e = {}) {
|
|
14
|
+
const t = JSON.stringify([n, e]);
|
|
15
|
+
let s = d.get(t);
|
|
16
|
+
return s === void 0 && (s = new Intl.DateTimeFormat(n, e), d.set(t, s)), s;
|
|
17
|
+
}
|
|
18
|
+
const y = /* @__PURE__ */ new Map();
|
|
19
|
+
function P(n, e = {}) {
|
|
20
|
+
const t = JSON.stringify([n, e]);
|
|
21
|
+
let s = y.get(t);
|
|
22
|
+
return s === void 0 && (s = new Intl.NumberFormat(n, e), y.set(t, s)), s;
|
|
23
|
+
}
|
|
24
|
+
const g = /* @__PURE__ */ new Map();
|
|
25
|
+
function z(n, e = {}) {
|
|
26
|
+
const { base: t, ...s } = e, i = JSON.stringify([n, s]);
|
|
27
|
+
let r = g.get(i);
|
|
28
|
+
return r === void 0 && (r = new Intl.RelativeTimeFormat(n, e), g.set(i, r)), r;
|
|
29
|
+
}
|
|
30
|
+
let f = null;
|
|
31
|
+
function $() {
|
|
32
|
+
return f || (f = new Intl.DateTimeFormat().resolvedOptions().locale, f);
|
|
33
|
+
}
|
|
34
|
+
const C = /* @__PURE__ */ new Map();
|
|
35
|
+
function b(n) {
|
|
36
|
+
let e = C.get(n);
|
|
37
|
+
return e === void 0 && (e = new Intl.DateTimeFormat(n).resolvedOptions(), C.set(n, e)), e;
|
|
38
|
+
}
|
|
39
|
+
const k = /* @__PURE__ */ new Map();
|
|
40
|
+
function j(n) {
|
|
41
|
+
let e = k.get(n);
|
|
42
|
+
if (!e) {
|
|
43
|
+
const t = new Intl.Locale(n);
|
|
44
|
+
e = "getWeekInfo" in t ? t.getWeekInfo() : t.weekInfo, "minimalDays" in e || (e = { ...S, ...e }), k.set(n, e);
|
|
45
|
+
}
|
|
46
|
+
return e;
|
|
47
|
+
}
|
|
48
|
+
function J(n) {
|
|
49
|
+
const e = n.indexOf("-x-");
|
|
50
|
+
e !== -1 && (n = n.substring(0, e));
|
|
51
|
+
const t = n.indexOf("-u-");
|
|
52
|
+
if (t === -1)
|
|
53
|
+
return [n];
|
|
54
|
+
{
|
|
55
|
+
let s, i;
|
|
56
|
+
try {
|
|
57
|
+
s = p(n).resolvedOptions(), i = n;
|
|
58
|
+
} catch {
|
|
59
|
+
const u = n.substring(0, t);
|
|
60
|
+
s = p(u).resolvedOptions(), i = u;
|
|
61
|
+
}
|
|
62
|
+
const { numberingSystem: r, calendar: a } = s;
|
|
63
|
+
return [i, r, a];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function U(n, e, t) {
|
|
67
|
+
return (t || e) && (n.includes("-u-") || (n += "-u"), t && (n += `-ca-${t}`), e && (n += `-nu-${e}`)), n;
|
|
68
|
+
}
|
|
69
|
+
function A(n) {
|
|
70
|
+
const e = [];
|
|
71
|
+
for (let t = 1; t <= 12; t++) {
|
|
72
|
+
const s = l.utc(2009, t, 1);
|
|
73
|
+
e.push(n(s));
|
|
74
|
+
}
|
|
75
|
+
return e;
|
|
76
|
+
}
|
|
77
|
+
function G(n) {
|
|
78
|
+
const e = [];
|
|
79
|
+
for (let t = 1; t <= 7; t++) {
|
|
80
|
+
const s = l.utc(2016, 11, 13 + t);
|
|
81
|
+
e.push(n(s));
|
|
82
|
+
}
|
|
83
|
+
return e;
|
|
84
|
+
}
|
|
85
|
+
function c(n, e, t, s) {
|
|
86
|
+
const i = n.listingMode();
|
|
87
|
+
return i === "error" ? null : i === "en" ? t(e) : s(e);
|
|
88
|
+
}
|
|
89
|
+
function q(n) {
|
|
90
|
+
return n.numberingSystem && n.numberingSystem !== "latn" ? !1 : n.numberingSystem === "latn" || !n.locale || n.locale.startsWith("en") || b(n.locale).numberingSystem === "latn";
|
|
91
|
+
}
|
|
92
|
+
class K {
|
|
93
|
+
constructor(e, t, s) {
|
|
94
|
+
this.padTo = s.padTo || 0, this.floor = s.floor || !1;
|
|
95
|
+
const { padTo: i, floor: r, ...a } = s;
|
|
96
|
+
if (!t || Object.keys(a).length > 0) {
|
|
97
|
+
const o = { useGrouping: !1, ...s };
|
|
98
|
+
s.padTo > 0 && (o.minimumIntegerDigits = s.padTo), this.inf = P(e, o);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
format(e) {
|
|
102
|
+
if (this.inf) {
|
|
103
|
+
const t = this.floor ? Math.floor(e) : e;
|
|
104
|
+
return this.inf.format(t);
|
|
105
|
+
} else {
|
|
106
|
+
const t = this.floor ? Math.floor(e) : I(e, 3);
|
|
107
|
+
return W(t, this.padTo);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
class B {
|
|
112
|
+
constructor(e, t, s) {
|
|
113
|
+
this.opts = s, this.originalZone = void 0;
|
|
114
|
+
let i;
|
|
115
|
+
if (this.opts.timeZone)
|
|
116
|
+
this.dt = e;
|
|
117
|
+
else if (e.zone.type === "fixed") {
|
|
118
|
+
const a = -1 * (e.offset / 60), o = a >= 0 ? `Etc/GMT+${a}` : `Etc/GMT${a}`;
|
|
119
|
+
e.offset !== 0 && R.create(o).valid ? (i = o, this.dt = e) : (i = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
|
120
|
+
} else
|
|
121
|
+
e.zone.type === "system" ? this.dt = e : e.zone.type === "iana" ? (this.dt = e, i = e.zone.name) : (i = "UTC", this.dt = e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
|
122
|
+
const r = { ...this.opts };
|
|
123
|
+
r.timeZone = r.timeZone || i, this.dtf = p(t, r);
|
|
124
|
+
}
|
|
125
|
+
format() {
|
|
126
|
+
return this.originalZone ? this.formatToParts().map(({ value: e }) => e).join("") : this.dtf.format(this.dt.toJSDate());
|
|
127
|
+
}
|
|
128
|
+
formatToParts() {
|
|
129
|
+
const e = this.dtf.formatToParts(this.dt.toJSDate());
|
|
130
|
+
return this.originalZone ? e.map((t) => {
|
|
131
|
+
if (t.type === "timeZoneName") {
|
|
132
|
+
const s = this.originalZone.offsetName(this.dt.ts, {
|
|
133
|
+
locale: this.dt.locale,
|
|
134
|
+
format: this.opts.timeZoneName
|
|
135
|
+
});
|
|
136
|
+
return {
|
|
137
|
+
...t,
|
|
138
|
+
value: s
|
|
139
|
+
};
|
|
140
|
+
} else
|
|
141
|
+
return t;
|
|
142
|
+
}) : e;
|
|
143
|
+
}
|
|
144
|
+
resolvedOptions() {
|
|
145
|
+
return this.dtf.resolvedOptions();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class H {
|
|
149
|
+
constructor(e, t, s) {
|
|
150
|
+
this.opts = { style: "long", ...s }, !t && D() && (this.rtf = z(e, s));
|
|
151
|
+
}
|
|
152
|
+
format(e, t) {
|
|
153
|
+
return this.rtf ? this.rtf.format(e, t) : v(t, e, this.opts.numeric, this.opts.style !== "long");
|
|
154
|
+
}
|
|
155
|
+
formatToParts(e, t) {
|
|
156
|
+
return this.rtf ? this.rtf.formatToParts(e, t) : [];
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const S = {
|
|
160
|
+
firstDay: 1,
|
|
161
|
+
minimalDays: 4,
|
|
162
|
+
weekend: [6, 7]
|
|
163
|
+
};
|
|
164
|
+
class h {
|
|
165
|
+
static fromOpts(e) {
|
|
166
|
+
return h.create(
|
|
167
|
+
e.locale,
|
|
168
|
+
e.numberingSystem,
|
|
169
|
+
e.outputCalendar,
|
|
170
|
+
e.weekSettings,
|
|
171
|
+
e.defaultToEN
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
static create(e, t, s, i, r = !1) {
|
|
175
|
+
const a = e || m.defaultLocale, o = a || (r ? "en-US" : $()), u = t || m.defaultNumberingSystem, N = s || m.defaultOutputCalendar, O = w(i) || m.defaultWeekSettings;
|
|
176
|
+
return new h(o, u, N, O, a);
|
|
177
|
+
}
|
|
178
|
+
static resetCache() {
|
|
179
|
+
f = null, d.clear(), y.clear(), g.clear(), C.clear(), k.clear();
|
|
180
|
+
}
|
|
181
|
+
static fromObject({ locale: e, numberingSystem: t, outputCalendar: s, weekSettings: i } = {}) {
|
|
182
|
+
return h.create(e, t, s, i);
|
|
183
|
+
}
|
|
184
|
+
constructor(e, t, s, i, r) {
|
|
185
|
+
const [a, o, u] = J(e);
|
|
186
|
+
this.locale = a, this.numberingSystem = t || o || null, this.outputCalendar = s || u || null, this.weekSettings = i, this.intl = U(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = { format: {}, standalone: {} }, this.monthsCache = { format: {}, standalone: {} }, this.meridiemCache = null, this.eraCache = {}, this.specifiedLocale = r, this.fastNumbersCached = null;
|
|
187
|
+
}
|
|
188
|
+
get fastNumbers() {
|
|
189
|
+
return this.fastNumbersCached == null && (this.fastNumbersCached = q(this)), this.fastNumbersCached;
|
|
190
|
+
}
|
|
191
|
+
listingMode() {
|
|
192
|
+
const e = this.isEnglish(), t = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
|
193
|
+
return e && t ? "en" : "intl";
|
|
194
|
+
}
|
|
195
|
+
clone(e) {
|
|
196
|
+
return !e || Object.getOwnPropertyNames(e).length === 0 ? this : h.create(
|
|
197
|
+
e.locale || this.specifiedLocale,
|
|
198
|
+
e.numberingSystem || this.numberingSystem,
|
|
199
|
+
e.outputCalendar || this.outputCalendar,
|
|
200
|
+
w(e.weekSettings) || this.weekSettings,
|
|
201
|
+
e.defaultToEN || !1
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
redefaultToEN(e = {}) {
|
|
205
|
+
return this.clone({ ...e, defaultToEN: !0 });
|
|
206
|
+
}
|
|
207
|
+
redefaultToSystem(e = {}) {
|
|
208
|
+
return this.clone({ ...e, defaultToEN: !1 });
|
|
209
|
+
}
|
|
210
|
+
months(e, t = !1) {
|
|
211
|
+
return c(this, e, x, () => {
|
|
212
|
+
const s = this.intl === "ja" || this.intl.startsWith("ja-");
|
|
213
|
+
t &= !s;
|
|
214
|
+
const i = t ? { month: e, day: "numeric" } : { month: e }, r = t ? "format" : "standalone";
|
|
215
|
+
if (!this.monthsCache[r][e]) {
|
|
216
|
+
const a = s ? (o) => this.dtFormatter(o, i).format() : (o) => this.extract(o, i, "month");
|
|
217
|
+
this.monthsCache[r][e] = A(a);
|
|
218
|
+
}
|
|
219
|
+
return this.monthsCache[r][e];
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
weekdays(e, t = !1) {
|
|
223
|
+
return c(this, e, Z, () => {
|
|
224
|
+
const s = t ? { weekday: e, year: "numeric", month: "long", day: "numeric" } : { weekday: e }, i = t ? "format" : "standalone";
|
|
225
|
+
return this.weekdaysCache[i][e] || (this.weekdaysCache[i][e] = G(
|
|
226
|
+
(r) => this.extract(r, s, "weekday")
|
|
227
|
+
)), this.weekdaysCache[i][e];
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
meridiems() {
|
|
231
|
+
return c(
|
|
232
|
+
this,
|
|
233
|
+
void 0,
|
|
234
|
+
() => L,
|
|
235
|
+
() => {
|
|
236
|
+
if (!this.meridiemCache) {
|
|
237
|
+
const e = { hour: "numeric", hourCycle: "h12" };
|
|
238
|
+
this.meridiemCache = [l.utc(2016, 11, 13, 9), l.utc(2016, 11, 13, 19)].map(
|
|
239
|
+
(t) => this.extract(t, e, "dayperiod")
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
return this.meridiemCache;
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
eras(e) {
|
|
247
|
+
return c(this, e, M, () => {
|
|
248
|
+
const t = { era: e };
|
|
249
|
+
return this.eraCache[e] || (this.eraCache[e] = [l.utc(-40, 1, 1), l.utc(2017, 1, 1)].map(
|
|
250
|
+
(s) => this.extract(s, t, "era")
|
|
251
|
+
)), this.eraCache[e];
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
extract(e, t, s) {
|
|
255
|
+
const i = this.dtFormatter(e, t), r = i.formatToParts(), a = r.find((o) => o.type.toLowerCase() === s);
|
|
256
|
+
return a ? a.value : null;
|
|
257
|
+
}
|
|
258
|
+
numberFormatter(e = {}) {
|
|
259
|
+
return new K(this.intl, e.forceSimple || this.fastNumbers, e);
|
|
260
|
+
}
|
|
261
|
+
dtFormatter(e, t = {}) {
|
|
262
|
+
return new B(e, this.intl, t);
|
|
263
|
+
}
|
|
264
|
+
relFormatter(e = {}) {
|
|
265
|
+
return new H(this.intl, this.isEnglish(), e);
|
|
266
|
+
}
|
|
267
|
+
listFormatter(e = {}) {
|
|
268
|
+
return E(this.intl, e);
|
|
269
|
+
}
|
|
270
|
+
isEnglish() {
|
|
271
|
+
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || b(this.intl).locale.startsWith("en-us");
|
|
272
|
+
}
|
|
273
|
+
getWeekSettings() {
|
|
274
|
+
return this.weekSettings ? this.weekSettings : F() ? j(this.locale) : S;
|
|
275
|
+
}
|
|
276
|
+
getStartOfWeek() {
|
|
277
|
+
return this.getWeekSettings().firstDay;
|
|
278
|
+
}
|
|
279
|
+
getMinDaysInFirstWeek() {
|
|
280
|
+
return this.getWeekSettings().minimalDays;
|
|
281
|
+
}
|
|
282
|
+
getWeekendDays() {
|
|
283
|
+
return this.getWeekSettings().weekend;
|
|
284
|
+
}
|
|
285
|
+
equals(e) {
|
|
286
|
+
return this.locale === e.locale && this.numberingSystem === e.numberingSystem && this.outputCalendar === e.outputCalendar;
|
|
287
|
+
}
|
|
288
|
+
toString() {
|
|
289
|
+
return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
export {
|
|
293
|
+
h as default
|
|
294
|
+
};
|