bt-core-app 2.1.37 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_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 +4 -1
- package/dist/bt-core-app.js +0 -81355
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { InvalidArgumentError as f } from "../errors.mjs";
|
|
2
|
+
import y from "../settings.mjs";
|
|
3
|
+
import { isoWeekdayToLocal as h, dayOfWeek as w } from "./conversions.mjs";
|
|
4
|
+
function c(e) {
|
|
5
|
+
return typeof e > "u";
|
|
6
|
+
}
|
|
7
|
+
function T(e) {
|
|
8
|
+
return typeof e == "number";
|
|
9
|
+
}
|
|
10
|
+
function I(e) {
|
|
11
|
+
return typeof e == "number" && e % 1 === 0;
|
|
12
|
+
}
|
|
13
|
+
function L(e) {
|
|
14
|
+
return typeof e == "string";
|
|
15
|
+
}
|
|
16
|
+
function A(e) {
|
|
17
|
+
return Object.prototype.toString.call(e) === "[object Date]";
|
|
18
|
+
}
|
|
19
|
+
function v() {
|
|
20
|
+
try {
|
|
21
|
+
return typeof Intl < "u" && !!Intl.RelativeTimeFormat;
|
|
22
|
+
} catch {
|
|
23
|
+
return !1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function C() {
|
|
27
|
+
try {
|
|
28
|
+
return typeof Intl < "u" && !!Intl.Locale && ("weekInfo" in Intl.Locale.prototype || "getWeekInfo" in Intl.Locale.prototype);
|
|
29
|
+
} catch {
|
|
30
|
+
return !1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function F(e) {
|
|
34
|
+
return Array.isArray(e) ? e : [e];
|
|
35
|
+
}
|
|
36
|
+
function W(e, n, r) {
|
|
37
|
+
if (e.length !== 0)
|
|
38
|
+
return e.reduce((t, o) => {
|
|
39
|
+
const u = [n(o), o];
|
|
40
|
+
return t && r(t[0], u[0]) === t[0] ? t : u;
|
|
41
|
+
}, null)[1];
|
|
42
|
+
}
|
|
43
|
+
function M(e, n) {
|
|
44
|
+
return n.reduce((r, t) => (r[t] = e[t], r), {});
|
|
45
|
+
}
|
|
46
|
+
function O(e, n) {
|
|
47
|
+
return Object.prototype.hasOwnProperty.call(e, n);
|
|
48
|
+
}
|
|
49
|
+
function Y(e) {
|
|
50
|
+
if (e == null)
|
|
51
|
+
return null;
|
|
52
|
+
if (typeof e != "object")
|
|
53
|
+
throw new f("Week settings must be an object");
|
|
54
|
+
if (!a(e.firstDay, 1, 7) || !a(e.minimalDays, 1, 7) || !Array.isArray(e.weekend) || e.weekend.some((n) => !a(n, 1, 7)))
|
|
55
|
+
throw new f("Invalid week settings");
|
|
56
|
+
return {
|
|
57
|
+
firstDay: e.firstDay,
|
|
58
|
+
minimalDays: e.minimalDays,
|
|
59
|
+
weekend: Array.from(e.weekend)
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function a(e, n, r) {
|
|
63
|
+
return I(e) && e >= n && e <= r;
|
|
64
|
+
}
|
|
65
|
+
function $(e, n) {
|
|
66
|
+
return e - n * Math.floor(e / n);
|
|
67
|
+
}
|
|
68
|
+
function i(e, n = 2) {
|
|
69
|
+
const r = e < 0;
|
|
70
|
+
let t;
|
|
71
|
+
return r ? t = "-" + ("" + -e).padStart(n, "0") : t = ("" + e).padStart(n, "0"), t;
|
|
72
|
+
}
|
|
73
|
+
function R(e) {
|
|
74
|
+
if (!(c(e) || e === null || e === ""))
|
|
75
|
+
return parseInt(e, 10);
|
|
76
|
+
}
|
|
77
|
+
function z(e) {
|
|
78
|
+
if (!(c(e) || e === null || e === ""))
|
|
79
|
+
return parseFloat(e);
|
|
80
|
+
}
|
|
81
|
+
function E(e) {
|
|
82
|
+
if (!(c(e) || e === null || e === "")) {
|
|
83
|
+
const n = parseFloat("0." + e) * 1e3;
|
|
84
|
+
return Math.floor(n);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function P(e, n, r = "round") {
|
|
88
|
+
const t = 10 ** n;
|
|
89
|
+
switch (r) {
|
|
90
|
+
case "expand":
|
|
91
|
+
return e > 0 ? Math.ceil(e * t) / t : Math.floor(e * t) / t;
|
|
92
|
+
case "trunc":
|
|
93
|
+
return Math.trunc(e * t) / t;
|
|
94
|
+
case "round":
|
|
95
|
+
return Math.round(e * t) / t;
|
|
96
|
+
case "floor":
|
|
97
|
+
return Math.floor(e * t) / t;
|
|
98
|
+
case "ceil":
|
|
99
|
+
return Math.ceil(e * t) / t;
|
|
100
|
+
default:
|
|
101
|
+
throw new RangeError(`Value rounding ${r} is out of range`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function d(e) {
|
|
105
|
+
return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
|
|
106
|
+
}
|
|
107
|
+
function k(e) {
|
|
108
|
+
return d(e) ? 366 : 365;
|
|
109
|
+
}
|
|
110
|
+
function U(e, n) {
|
|
111
|
+
const r = $(n - 1, 12) + 1, t = e + (n - r) / 12;
|
|
112
|
+
return r === 2 ? d(t) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][r - 1];
|
|
113
|
+
}
|
|
114
|
+
function V(e) {
|
|
115
|
+
let n = Date.UTC(
|
|
116
|
+
e.year,
|
|
117
|
+
e.month - 1,
|
|
118
|
+
e.day,
|
|
119
|
+
e.hour,
|
|
120
|
+
e.minute,
|
|
121
|
+
e.second,
|
|
122
|
+
e.millisecond
|
|
123
|
+
);
|
|
124
|
+
return e.year < 100 && e.year >= 0 && (n = new Date(n), n.setUTCFullYear(e.year, e.month - 1, e.day)), +n;
|
|
125
|
+
}
|
|
126
|
+
function s(e, n, r) {
|
|
127
|
+
return -h(w(e, 1, n), r) + n - 1;
|
|
128
|
+
}
|
|
129
|
+
function B(e, n = 4, r = 1) {
|
|
130
|
+
const t = s(e, n, r), o = s(e + 1, n, r);
|
|
131
|
+
return (k(e) - t + o) / 7;
|
|
132
|
+
}
|
|
133
|
+
function Z(e) {
|
|
134
|
+
return e > 99 ? e : e > y.twoDigitCutoffYear ? 1900 + e : 2e3 + e;
|
|
135
|
+
}
|
|
136
|
+
function x(e, n, r, t = null) {
|
|
137
|
+
const o = new Date(e), u = {
|
|
138
|
+
hourCycle: "h23",
|
|
139
|
+
year: "numeric",
|
|
140
|
+
month: "2-digit",
|
|
141
|
+
day: "2-digit",
|
|
142
|
+
hour: "2-digit",
|
|
143
|
+
minute: "2-digit"
|
|
144
|
+
};
|
|
145
|
+
t && (u.timeZone = t);
|
|
146
|
+
const m = { timeZoneName: n, ...u }, l = new Intl.DateTimeFormat(r, m).formatToParts(o).find((p) => p.type.toLowerCase() === "timezonename");
|
|
147
|
+
return l ? l.value : null;
|
|
148
|
+
}
|
|
149
|
+
function H(e, n) {
|
|
150
|
+
let r = parseInt(e, 10);
|
|
151
|
+
Number.isNaN(r) && (r = 0);
|
|
152
|
+
const t = parseInt(n, 10) || 0, o = r < 0 || Object.is(r, -0) ? -t : t;
|
|
153
|
+
return r * 60 + o;
|
|
154
|
+
}
|
|
155
|
+
function D(e) {
|
|
156
|
+
const n = Number(e);
|
|
157
|
+
if (typeof e == "boolean" || e === "" || !Number.isFinite(n))
|
|
158
|
+
throw new f(`Invalid unit value ${e}`);
|
|
159
|
+
return n;
|
|
160
|
+
}
|
|
161
|
+
function b(e, n) {
|
|
162
|
+
const r = {};
|
|
163
|
+
for (const t in e)
|
|
164
|
+
if (O(e, t)) {
|
|
165
|
+
const o = e[t];
|
|
166
|
+
if (o == null)
|
|
167
|
+
continue;
|
|
168
|
+
r[n(t)] = D(o);
|
|
169
|
+
}
|
|
170
|
+
return r;
|
|
171
|
+
}
|
|
172
|
+
function q(e, n) {
|
|
173
|
+
const r = Math.trunc(Math.abs(e / 60)), t = Math.trunc(Math.abs(e % 60)), o = e >= 0 ? "+" : "-";
|
|
174
|
+
switch (n) {
|
|
175
|
+
case "short":
|
|
176
|
+
return `${o}${i(r, 2)}:${i(t, 2)}`;
|
|
177
|
+
case "narrow":
|
|
178
|
+
return `${o}${r}${t > 0 ? `:${t}` : ""}`;
|
|
179
|
+
case "techie":
|
|
180
|
+
return `${o}${i(r, 2)}${i(t, 2)}`;
|
|
181
|
+
default:
|
|
182
|
+
throw new RangeError(`Value format ${n} is out of range for property format`);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function G(e) {
|
|
186
|
+
return M(e, ["hour", "minute", "second", "millisecond"]);
|
|
187
|
+
}
|
|
188
|
+
export {
|
|
189
|
+
D as asNumber,
|
|
190
|
+
W as bestBy,
|
|
191
|
+
U as daysInMonth,
|
|
192
|
+
k as daysInYear,
|
|
193
|
+
$ as floorMod,
|
|
194
|
+
q as formatOffset,
|
|
195
|
+
C as hasLocaleWeekInfo,
|
|
196
|
+
O as hasOwnProperty,
|
|
197
|
+
v as hasRelative,
|
|
198
|
+
a as integerBetween,
|
|
199
|
+
A as isDate,
|
|
200
|
+
I as isInteger,
|
|
201
|
+
d as isLeapYear,
|
|
202
|
+
T as isNumber,
|
|
203
|
+
L as isString,
|
|
204
|
+
c as isUndefined,
|
|
205
|
+
F as maybeArray,
|
|
206
|
+
b as normalizeObject,
|
|
207
|
+
V as objToLocalTS,
|
|
208
|
+
i as padStart,
|
|
209
|
+
z as parseFloating,
|
|
210
|
+
R as parseInteger,
|
|
211
|
+
E as parseMillis,
|
|
212
|
+
x as parseZoneInfo,
|
|
213
|
+
M as pick,
|
|
214
|
+
P as roundTo,
|
|
215
|
+
H as signedOffset,
|
|
216
|
+
G as timeObject,
|
|
217
|
+
Z as untruncateYear,
|
|
218
|
+
Y as validateWeekSettings,
|
|
219
|
+
B as weeksInWeekYear
|
|
220
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import s from "../zone.mjs";
|
|
2
|
+
import t from "../zones/IANAZone.mjs";
|
|
3
|
+
import o from "../zones/fixedOffsetZone.mjs";
|
|
4
|
+
import n from "../zones/invalidZone.mjs";
|
|
5
|
+
import { isUndefined as i, isString as m, isNumber as l } from "./util.mjs";
|
|
6
|
+
import c from "../zones/systemZone.mjs";
|
|
7
|
+
function S(e, f) {
|
|
8
|
+
if (i(e) || e === null)
|
|
9
|
+
return f;
|
|
10
|
+
if (e instanceof s)
|
|
11
|
+
return e;
|
|
12
|
+
if (m(e)) {
|
|
13
|
+
const r = e.toLowerCase();
|
|
14
|
+
return r === "default" ? f : r === "local" || r === "system" ? c.instance : r === "utc" || r === "gmt" ? o.utcInstance : o.parseSpecifier(r) || t.create(e);
|
|
15
|
+
} else
|
|
16
|
+
return l(e) ? o.instance(e) : typeof e == "object" && "offset" in e && typeof e.offset == "function" ? e : new n(e);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
S as normalizeZone
|
|
20
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import o from "./datetime.mjs";
|
|
2
|
+
import s from "./settings.mjs";
|
|
3
|
+
import r from "./impl/locale.mjs";
|
|
4
|
+
import u from "./zones/IANAZone.mjs";
|
|
5
|
+
import { normalizeZone as i } from "./impl/zoneUtil.mjs";
|
|
6
|
+
import { hasRelative as m, hasLocaleWeekInfo as c } from "./impl/util.mjs";
|
|
7
|
+
class p {
|
|
8
|
+
/**
|
|
9
|
+
* Return whether the specified zone contains a DST.
|
|
10
|
+
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
|
11
|
+
* @return {boolean}
|
|
12
|
+
*/
|
|
13
|
+
static hasDST(e = s.defaultZone) {
|
|
14
|
+
const t = o.now().setZone(e).set({ month: 12 });
|
|
15
|
+
return !e.isUniversal && t.offset !== t.set({ month: 6 }).offset;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Return whether the specified zone is a valid IANA specifier.
|
|
19
|
+
* @param {string} zone - Zone to check
|
|
20
|
+
* @return {boolean}
|
|
21
|
+
*/
|
|
22
|
+
static isValidIANAZone(e) {
|
|
23
|
+
return u.isValidZone(e);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Converts the input into a {@link Zone} instance.
|
|
27
|
+
*
|
|
28
|
+
* * If `input` is already a Zone instance, it is returned unchanged.
|
|
29
|
+
* * If `input` is a string containing a valid time zone name, a Zone instance
|
|
30
|
+
* with that name is returned.
|
|
31
|
+
* * If `input` is a string that doesn't refer to a known time zone, a Zone
|
|
32
|
+
* instance with {@link Zone#isValid} == false is returned.
|
|
33
|
+
* * If `input is a number, a Zone instance with the specified fixed offset
|
|
34
|
+
* in minutes is returned.
|
|
35
|
+
* * If `input` is `null` or `undefined`, the default zone is returned.
|
|
36
|
+
* @param {string|Zone|number} [input] - the value to be converted
|
|
37
|
+
* @return {Zone}
|
|
38
|
+
*/
|
|
39
|
+
static normalizeZone(e) {
|
|
40
|
+
return i(e, s.defaultZone);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get the weekday on which the week starts according to the given locale.
|
|
44
|
+
* @param {Object} opts - options
|
|
45
|
+
* @param {string} [opts.locale] - the locale code
|
|
46
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
47
|
+
* @returns {number} the start of the week, 1 for Monday through 7 for Sunday
|
|
48
|
+
*/
|
|
49
|
+
static getStartOfWeek({ locale: e = null, locObj: t = null } = {}) {
|
|
50
|
+
return (t || r.create(e)).getStartOfWeek();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get the minimum number of days necessary in a week before it is considered part of the next year according
|
|
54
|
+
* to the given locale.
|
|
55
|
+
* @param {Object} opts - options
|
|
56
|
+
* @param {string} [opts.locale] - the locale code
|
|
57
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
58
|
+
* @returns {number}
|
|
59
|
+
*/
|
|
60
|
+
static getMinimumDaysInFirstWeek({ locale: e = null, locObj: t = null } = {}) {
|
|
61
|
+
return (t || r.create(e)).getMinDaysInFirstWeek();
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get the weekdays, which are considered the weekend according to the given locale
|
|
65
|
+
* @param {Object} opts - options
|
|
66
|
+
* @param {string} [opts.locale] - the locale code
|
|
67
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
68
|
+
* @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday
|
|
69
|
+
*/
|
|
70
|
+
static getWeekendWeekdays({ locale: e = null, locObj: t = null } = {}) {
|
|
71
|
+
return (t || r.create(e)).getWeekendDays().slice();
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Return an array of standalone month names.
|
|
75
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
|
76
|
+
* @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long"
|
|
77
|
+
* @param {Object} opts - options
|
|
78
|
+
* @param {string} [opts.locale] - the locale code
|
|
79
|
+
* @param {string} [opts.numberingSystem=null] - the numbering system
|
|
80
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
81
|
+
* @param {string} [opts.outputCalendar='gregory'] - the calendar
|
|
82
|
+
* @example Info.months()[0] //=> 'January'
|
|
83
|
+
* @example Info.months('short')[0] //=> 'Jan'
|
|
84
|
+
* @example Info.months('numeric')[0] //=> '1'
|
|
85
|
+
* @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'
|
|
86
|
+
* @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'
|
|
87
|
+
* @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'
|
|
88
|
+
* @return {Array}
|
|
89
|
+
*/
|
|
90
|
+
static months(e = "long", { locale: t = null, numberingSystem: n = null, locObj: l = null, outputCalendar: a = "gregory" } = {}) {
|
|
91
|
+
return (l || r.create(t, n, a)).months(e);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Return an array of format month names.
|
|
95
|
+
* Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that
|
|
96
|
+
* changes the string.
|
|
97
|
+
* See {@link Info#months}
|
|
98
|
+
* @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long"
|
|
99
|
+
* @param {Object} opts - options
|
|
100
|
+
* @param {string} [opts.locale] - the locale code
|
|
101
|
+
* @param {string} [opts.numberingSystem=null] - the numbering system
|
|
102
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
103
|
+
* @param {string} [opts.outputCalendar='gregory'] - the calendar
|
|
104
|
+
* @return {Array}
|
|
105
|
+
*/
|
|
106
|
+
static monthsFormat(e = "long", { locale: t = null, numberingSystem: n = null, locObj: l = null, outputCalendar: a = "gregory" } = {}) {
|
|
107
|
+
return (l || r.create(t, n, a)).months(e, !0);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Return an array of standalone week names.
|
|
111
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
|
112
|
+
* @param {string} [length='long'] - the length of the weekday representation, such as "narrow", "short", "long".
|
|
113
|
+
* @param {Object} opts - options
|
|
114
|
+
* @param {string} [opts.locale] - the locale code
|
|
115
|
+
* @param {string} [opts.numberingSystem=null] - the numbering system
|
|
116
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
117
|
+
* @example Info.weekdays()[0] //=> 'Monday'
|
|
118
|
+
* @example Info.weekdays('short')[0] //=> 'Mon'
|
|
119
|
+
* @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'
|
|
120
|
+
* @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'
|
|
121
|
+
* @return {Array}
|
|
122
|
+
*/
|
|
123
|
+
static weekdays(e = "long", { locale: t = null, numberingSystem: n = null, locObj: l = null } = {}) {
|
|
124
|
+
return (l || r.create(t, n, null)).weekdays(e);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Return an array of format week names.
|
|
128
|
+
* Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that
|
|
129
|
+
* changes the string.
|
|
130
|
+
* See {@link Info#weekdays}
|
|
131
|
+
* @param {string} [length='long'] - the length of the month representation, such as "narrow", "short", "long".
|
|
132
|
+
* @param {Object} opts - options
|
|
133
|
+
* @param {string} [opts.locale=null] - the locale code
|
|
134
|
+
* @param {string} [opts.numberingSystem=null] - the numbering system
|
|
135
|
+
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
136
|
+
* @return {Array}
|
|
137
|
+
*/
|
|
138
|
+
static weekdaysFormat(e = "long", { locale: t = null, numberingSystem: n = null, locObj: l = null } = {}) {
|
|
139
|
+
return (l || r.create(t, n, null)).weekdays(e, !0);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Return an array of meridiems.
|
|
143
|
+
* @param {Object} opts - options
|
|
144
|
+
* @param {string} [opts.locale] - the locale code
|
|
145
|
+
* @example Info.meridiems() //=> [ 'AM', 'PM' ]
|
|
146
|
+
* @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]
|
|
147
|
+
* @return {Array}
|
|
148
|
+
*/
|
|
149
|
+
static meridiems({ locale: e = null } = {}) {
|
|
150
|
+
return r.create(e).meridiems();
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.
|
|
154
|
+
* @param {string} [length='short'] - the length of the era representation, such as "short" or "long".
|
|
155
|
+
* @param {Object} opts - options
|
|
156
|
+
* @param {string} [opts.locale] - the locale code
|
|
157
|
+
* @example Info.eras() //=> [ 'BC', 'AD' ]
|
|
158
|
+
* @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]
|
|
159
|
+
* @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]
|
|
160
|
+
* @return {Array}
|
|
161
|
+
*/
|
|
162
|
+
static eras(e = "short", { locale: t = null } = {}) {
|
|
163
|
+
return r.create(t, null, "gregory").eras(e);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Return the set of available features in this environment.
|
|
167
|
+
* Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.
|
|
168
|
+
* Keys:
|
|
169
|
+
* * `relative`: whether this environment supports relative time formatting
|
|
170
|
+
* * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale
|
|
171
|
+
* @example Info.features() //=> { relative: false, localeWeek: true }
|
|
172
|
+
* @return {Object}
|
|
173
|
+
*/
|
|
174
|
+
static features() {
|
|
175
|
+
return { relative: m(), localeWeek: c() };
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
export {
|
|
179
|
+
p as default
|
|
180
|
+
};
|