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,326 @@
|
|
|
1
|
+
import { useAuth as Z } from "./auth.mjs";
|
|
2
|
+
import { appendUrl as A, isNullOrEmpty as q, isLengthyArray as C } from "./helpers.mjs";
|
|
3
|
+
import { ref as P, computed as k } from "vue";
|
|
4
|
+
import "../bt-core/core/node_modules/@datasert/cronjs-matcher/dist/index.mjs";
|
|
5
|
+
import { __exports as B } from "../_virtual/index.mjs";
|
|
6
|
+
const w = [
|
|
7
|
+
{ text: "12:00 AM", value: "0.0" },
|
|
8
|
+
{ text: "12:15 AM", value: "0.15" },
|
|
9
|
+
{ text: "12:30 AM", value: "0.30" },
|
|
10
|
+
{ text: "12:45 AM", value: "0.45" },
|
|
11
|
+
{ text: "1:00 AM", value: "1.0" },
|
|
12
|
+
{ text: "1:15 AM", value: "1.15" },
|
|
13
|
+
{ text: "1:30 AM", value: "1.30" },
|
|
14
|
+
{ text: "1:45 AM", value: "1.45" },
|
|
15
|
+
{ text: "2:00 AM", value: "2.0" },
|
|
16
|
+
{ text: "2:15 AM", value: "2.15" },
|
|
17
|
+
{ text: "2:30 AM", value: "2.30" },
|
|
18
|
+
{ text: "2:45 AM", value: "2.45" },
|
|
19
|
+
{ text: "3:00 AM", value: "3.0" },
|
|
20
|
+
{ text: "3:15 AM", value: "3.15" },
|
|
21
|
+
{ text: "3:30 AM", value: "3.30" },
|
|
22
|
+
{ text: "3:45 AM", value: "3.45" },
|
|
23
|
+
{ text: "4:00 AM", value: "4.0" },
|
|
24
|
+
{ text: "4:15 AM", value: "4.15" },
|
|
25
|
+
{ text: "4:30 AM", value: "4.30" },
|
|
26
|
+
{ text: "4:45 AM", value: "4.45" },
|
|
27
|
+
{ text: "5:00 AM", value: "5.0" },
|
|
28
|
+
{ text: "5:15 AM", value: "5.15" },
|
|
29
|
+
{ text: "5:30 AM", value: "5.30" },
|
|
30
|
+
{ text: "5:45 AM", value: "5.45" },
|
|
31
|
+
{ text: "6:00 AM", value: "6.0" },
|
|
32
|
+
{ text: "6:15 AM", value: "6.15" },
|
|
33
|
+
{ text: "6:30 AM", value: "6.30" },
|
|
34
|
+
{ text: "6:45 AM", value: "6.45" },
|
|
35
|
+
{ text: "7:00 AM", value: "7.0" },
|
|
36
|
+
{ text: "7:15 AM", value: "7.15" },
|
|
37
|
+
{ text: "7:30 AM", value: "7.30" },
|
|
38
|
+
{ text: "7:45 AM", value: "7.45" },
|
|
39
|
+
{ text: "8:00 AM", value: "8.0" },
|
|
40
|
+
{ text: "8:15 AM", value: "8.15" },
|
|
41
|
+
{ text: "8:30 AM", value: "8.30" },
|
|
42
|
+
{ text: "8:45 AM", value: "8.45" },
|
|
43
|
+
{ text: "9:00 AM", value: "9.0" },
|
|
44
|
+
{ text: "9:15 AM", value: "9.15" },
|
|
45
|
+
{ text: "9:30 AM", value: "9.30" },
|
|
46
|
+
{ text: "9:45 AM", value: "9.45" },
|
|
47
|
+
{ text: "10:00 AM", value: "10.0" },
|
|
48
|
+
{ text: "10:15 AM", value: "10.15" },
|
|
49
|
+
{ text: "10:30 AM", value: "10.30" },
|
|
50
|
+
{ text: "10:45 AM", value: "10.45" },
|
|
51
|
+
{ text: "11:00 AM", value: "11.0" },
|
|
52
|
+
{ text: "11:15 AM", value: "11.15" },
|
|
53
|
+
{ text: "11:30 AM", value: "11.30" },
|
|
54
|
+
{ text: "11:45 AM", value: "11.45" },
|
|
55
|
+
{ text: "12:00 PM", value: "12.0" },
|
|
56
|
+
{ text: "12:15 PM", value: "12.15" },
|
|
57
|
+
{ text: "12:30 PM", value: "12.30" },
|
|
58
|
+
{ text: "12:45 PM", value: "12.45" },
|
|
59
|
+
{ text: "1:00 PM", value: "13.0" },
|
|
60
|
+
{ text: "1:15 PM", value: "13.15" },
|
|
61
|
+
{ text: "1:30 PM", value: "13.30" },
|
|
62
|
+
{ text: "1:45 PM", value: "13.45" },
|
|
63
|
+
{ text: "2:00 PM", value: "14.0" },
|
|
64
|
+
{ text: "2:15 PM", value: "14.15" },
|
|
65
|
+
{ text: "2:30 PM", value: "14.30" },
|
|
66
|
+
{ text: "2:45 PM", value: "14.45" },
|
|
67
|
+
{ text: "3:00 PM", value: "15.0" },
|
|
68
|
+
{ text: "3:15 PM", value: "15.15" },
|
|
69
|
+
{ text: "3:30 PM", value: "15.30" },
|
|
70
|
+
{ text: "3:45 PM", value: "15.45" },
|
|
71
|
+
{ text: "4:00 PM", value: "16.0" },
|
|
72
|
+
{ text: "4:15 PM", value: "16.15" },
|
|
73
|
+
{ text: "4:30 PM", value: "16.30" },
|
|
74
|
+
{ text: "4:45 PM", value: "16.45" },
|
|
75
|
+
{ text: "5:00 PM", value: "17.0" },
|
|
76
|
+
{ text: "5:15 PM", value: "17.15" },
|
|
77
|
+
{ text: "5:30 PM", value: "17.30" },
|
|
78
|
+
{ text: "5:45 PM", value: "17.45" },
|
|
79
|
+
{ text: "6:00 PM", value: "18.0" },
|
|
80
|
+
{ text: "6:15 PM", value: "18.15" },
|
|
81
|
+
{ text: "6:30 PM", value: "18.30" },
|
|
82
|
+
{ text: "6:45 PM", value: "18.45" },
|
|
83
|
+
{ text: "7:00 PM", value: "19.0" },
|
|
84
|
+
{ text: "7:15 PM", value: "19.15" },
|
|
85
|
+
{ text: "7:30 PM", value: "19.30" },
|
|
86
|
+
{ text: "7:45 PM", value: "19.45" },
|
|
87
|
+
{ text: "8:00 PM", value: "20.0" },
|
|
88
|
+
{ text: "8:15 PM", value: "20.15" },
|
|
89
|
+
{ text: "8:30 PM", value: "20.30" },
|
|
90
|
+
{ text: "8:45 PM", value: "20.45" },
|
|
91
|
+
{ text: "9:00 PM", value: "21.0" },
|
|
92
|
+
{ text: "9:15 PM", value: "21.15" },
|
|
93
|
+
{ text: "9:30 PM", value: "21.30" },
|
|
94
|
+
{ text: "9:45 PM", value: "21.45" },
|
|
95
|
+
{ text: "10:00 PM", value: "22.0" },
|
|
96
|
+
{ text: "10:15 PM", value: "22.15" },
|
|
97
|
+
{ text: "10:30 PM", value: "22.30" },
|
|
98
|
+
{ text: "10:45 PM", value: "22.45" },
|
|
99
|
+
{ text: "11:00 PM", value: "23.0" },
|
|
100
|
+
{ text: "11:15 PM", value: "23.15" },
|
|
101
|
+
{ text: "11:30 PM", value: "23.30" },
|
|
102
|
+
{ text: "11:45 PM", value: "23.45" }
|
|
103
|
+
], H = [
|
|
104
|
+
{ text: "Jan", value: "1" },
|
|
105
|
+
{ text: "Feb", value: "2" },
|
|
106
|
+
{ text: "Mar", value: "3" },
|
|
107
|
+
{ text: "Apr", value: "4" },
|
|
108
|
+
{ text: "May", value: "5" },
|
|
109
|
+
{ text: "Jun", value: "6" },
|
|
110
|
+
{ text: "Jul", value: "7" },
|
|
111
|
+
{ text: "Aug", value: "8" },
|
|
112
|
+
{ text: "Sep", value: "9" },
|
|
113
|
+
{ text: "Oct", value: "10" },
|
|
114
|
+
{ text: "Nov", value: "11" },
|
|
115
|
+
{ text: "Dec", value: "12" }
|
|
116
|
+
], _ = [
|
|
117
|
+
{ text: "1st", value: "1-7" },
|
|
118
|
+
{ text: "2nd", value: "8-14" },
|
|
119
|
+
{ text: "3rd", value: "15-21" },
|
|
120
|
+
{ text: "4th", value: "22-28" },
|
|
121
|
+
{ text: "5th", value: "29-31" }
|
|
122
|
+
], g = [
|
|
123
|
+
{ text: "Sun", value: "0" },
|
|
124
|
+
{ text: "Mon", value: "1" },
|
|
125
|
+
{ text: "Tue", value: "2" },
|
|
126
|
+
{ text: "Wed", value: "3" },
|
|
127
|
+
{ text: "Thu", value: "4" },
|
|
128
|
+
{ text: "Fri", value: "5" },
|
|
129
|
+
{ text: "Sat", value: "6" }
|
|
130
|
+
], Y = [
|
|
131
|
+
{ text: "Daily", value: "Daily" },
|
|
132
|
+
{ text: "Weekly", value: "Weekly" },
|
|
133
|
+
{ text: "Monthly", value: "Monthly" },
|
|
134
|
+
{ text: "Custom", value: "Custom" }
|
|
135
|
+
];
|
|
136
|
+
function ee() {
|
|
137
|
+
const { timeZone: i } = Z();
|
|
138
|
+
function I(s) {
|
|
139
|
+
if (s.cron == null)
|
|
140
|
+
return [];
|
|
141
|
+
const L = s.cron.split(/\s+/).slice(0, 5).join(" ");
|
|
142
|
+
return B.getFutureMatches(L, { matchCount: s.futureCount, formatInTimezone: !1, timezone: i.value });
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
predictFuture: I
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function te(i) {
|
|
149
|
+
function I() {
|
|
150
|
+
let e = "0 0 * * 1";
|
|
151
|
+
return i.useLeadTimeLeft && (i.useLeadTimeRight ? e = A(e, `${R.value.toString()}-${O.value.toString()}`, " ") : e = A(e, R.value.toString(), " ")), e;
|
|
152
|
+
}
|
|
153
|
+
const s = P();
|
|
154
|
+
let L = "";
|
|
155
|
+
const E = k({
|
|
156
|
+
get() {
|
|
157
|
+
return s.value;
|
|
158
|
+
},
|
|
159
|
+
set(e) {
|
|
160
|
+
L = e;
|
|
161
|
+
}
|
|
162
|
+
}), p = P(0), D = P(0), h = P("Custom"), f = k({
|
|
163
|
+
get() {
|
|
164
|
+
return h.value;
|
|
165
|
+
},
|
|
166
|
+
set(e) {
|
|
167
|
+
h.value !== e && (h.value = e, W(e));
|
|
168
|
+
}
|
|
169
|
+
}), N = k(() => i.useLeadTimeInHours ? p.value : p.value / 60), R = k(() => i.useLeadTimeInHours ? p.value * 60 : p.value), O = k(() => i.useLeadTimeInHours ? D.value * 60 : D.value), c = P(), m = P(), d = P(), M = P();
|
|
170
|
+
function b() {
|
|
171
|
+
T(L ?? E.value);
|
|
172
|
+
}
|
|
173
|
+
function W(e) {
|
|
174
|
+
e == "Daily" ? (m.value = ["*"], d.value = ["*"], M.value = ["*"]) : e == "Weekly" ? (console.log("weeklying"), m.value = ["*"], d.value = ["*"], M.value = ["0"]) : e == "Monthly" && (m.value = ["*"], d.value = [_[0].value], M.value = [g[0].value]);
|
|
175
|
+
}
|
|
176
|
+
function j(e, u) {
|
|
177
|
+
var n, l;
|
|
178
|
+
e ?? (e = "0");
|
|
179
|
+
const t = g.findIndex((x) => x.value == e || x.text == e);
|
|
180
|
+
u ?? (u = 0);
|
|
181
|
+
const a = (t + u) % 7, r = Math.ceil(u / 7);
|
|
182
|
+
return r > 1 ? `${r} ${(n = g[a]) == null ? void 0 : n.text} Later` : (l = g[a]) == null ? void 0 : l.text;
|
|
183
|
+
}
|
|
184
|
+
function F(e) {
|
|
185
|
+
if (c.value != null) {
|
|
186
|
+
var u = w.find((r) => r.value == c.value);
|
|
187
|
+
if (u != null) {
|
|
188
|
+
var t = Number.parseFloat(u.value) + N.value, a = Math.floor(t / 24);
|
|
189
|
+
return a == 0 ? "Same Day" : e == null ? `${a} Day${a == 1 ? "" : "s"} Later` : j(e, a);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
function U() {
|
|
194
|
+
var r, n;
|
|
195
|
+
var e = {
|
|
196
|
+
regularity: f.value,
|
|
197
|
+
orderDays: [],
|
|
198
|
+
deliveryDays: []
|
|
199
|
+
};
|
|
200
|
+
if (f.value == "Daily") {
|
|
201
|
+
if (c.value != null) {
|
|
202
|
+
var u = w.find((l) => l.value == c.value);
|
|
203
|
+
if (u != null) {
|
|
204
|
+
f.value == "Daily" && e.orderDays.push(u.text);
|
|
205
|
+
var t = Number.parseFloat(u.value) + N.value, a = Math.floor(t / 24);
|
|
206
|
+
a == 0 ? e.deliveryDays.push("Same Day") : e.deliveryDays.push(`${a} Day${a == 1 ? "" : "s"} Later`);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
} else
|
|
210
|
+
f.value == "Weekly" ? (r = M.value) == null || r.forEach((l) => {
|
|
211
|
+
var x = g.find((y) => y.value == l);
|
|
212
|
+
x != null && (e.orderDays.push(x.text), e.deliveryDays.push(F(l) ?? ""));
|
|
213
|
+
}) : f.value == "Monthly" && ((n = m.value) == null || n.forEach((l) => {
|
|
214
|
+
var x = H.find((y) => y.value == l);
|
|
215
|
+
x != null && (e.orderDays.push(x.text), e.deliveryDays.push(F(void 0) ?? ""));
|
|
216
|
+
}));
|
|
217
|
+
return e;
|
|
218
|
+
}
|
|
219
|
+
function J() {
|
|
220
|
+
var e;
|
|
221
|
+
return (e = s.value) == null ? void 0 : e.split(/\s+/);
|
|
222
|
+
}
|
|
223
|
+
function T(e) {
|
|
224
|
+
if (s.value != e) {
|
|
225
|
+
s.value = e;
|
|
226
|
+
let t = !1, a = !1, r = !1, n = !1;
|
|
227
|
+
if (q(s.value) || !C(J(), 4))
|
|
228
|
+
t = !0;
|
|
229
|
+
else {
|
|
230
|
+
const l = J();
|
|
231
|
+
t = !1;
|
|
232
|
+
var u = `${l[1]}.${l[0]}`;
|
|
233
|
+
u.includes(",") || u.includes("-") || u.includes("/") ? t = !0 : w.some((v) => v.value == u) ? c.value = u : t = !0;
|
|
234
|
+
const x = l[2];
|
|
235
|
+
if (x.includes("/"))
|
|
236
|
+
t = !0;
|
|
237
|
+
else if (x == "*")
|
|
238
|
+
a = !0;
|
|
239
|
+
else {
|
|
240
|
+
a = !1;
|
|
241
|
+
const v = x.split(",");
|
|
242
|
+
v.some((o) => !_.some((S) => S.value == o)) ? t = !0 : d.value = v;
|
|
243
|
+
}
|
|
244
|
+
const y = l[3];
|
|
245
|
+
if (y.includes("-") || y.includes("/"))
|
|
246
|
+
t = !0;
|
|
247
|
+
else if (y == "*")
|
|
248
|
+
n = !0;
|
|
249
|
+
else {
|
|
250
|
+
n = !1;
|
|
251
|
+
const v = y.split(",");
|
|
252
|
+
v.some((o) => !H.some((S) => S.value == o)) ? t = !0 : m.value = v;
|
|
253
|
+
}
|
|
254
|
+
const $ = l[4];
|
|
255
|
+
if ($.includes("-") || $.includes("/"))
|
|
256
|
+
t = !0;
|
|
257
|
+
else if ($ == "*")
|
|
258
|
+
r = !0, M.value = g.map((v) => v.value);
|
|
259
|
+
else {
|
|
260
|
+
r = !1;
|
|
261
|
+
const v = $.split(",");
|
|
262
|
+
v.some((o) => !g.some((S) => S.value == o)) ? t = !0 : M.value = v;
|
|
263
|
+
}
|
|
264
|
+
if (C(l, 5) && i.useLeadTimeLeft) {
|
|
265
|
+
const v = l[5].split("-");
|
|
266
|
+
if (i.useLeadTimeRight && v.length > 1) {
|
|
267
|
+
const o = Number.parseInt(v[1]);
|
|
268
|
+
D.value = i.useLeadTimeInHours ? Math.round(o / 60) : o;
|
|
269
|
+
}
|
|
270
|
+
if (v.length > 0) {
|
|
271
|
+
const o = Number.parseInt(v[0]);
|
|
272
|
+
p.value = i.useLeadTimeInHours ? Math.round(o / 60) : o;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
t ? f.value = "Custom" : n && a && r ? h.value = "Daily" : n && a ? h.value = "Weekly" : n ? h.value = "Monthly" : h.value = "Custom";
|
|
277
|
+
}
|
|
278
|
+
return {
|
|
279
|
+
applyRawExpression: b,
|
|
280
|
+
applyRegularity: W,
|
|
281
|
+
cronExpression: s,
|
|
282
|
+
hour: c,
|
|
283
|
+
leadTimeLeft: p,
|
|
284
|
+
leadTimeRight: D,
|
|
285
|
+
months: m,
|
|
286
|
+
pack: z,
|
|
287
|
+
rawExpression: E,
|
|
288
|
+
regularity: f,
|
|
289
|
+
unpack: T,
|
|
290
|
+
weekdays: M,
|
|
291
|
+
weeks: d
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
function z() {
|
|
295
|
+
var u, t, a, r, n, l;
|
|
296
|
+
if (f.value == "Custom")
|
|
297
|
+
return s.value;
|
|
298
|
+
let e = `${(u = c.value) == null ? void 0 : u.split(".")[1]} ${(t = c.value) == null ? void 0 : t.split(".")[0]}`;
|
|
299
|
+
return C(d.value) ? e = A(e, (a = d.value) == null ? void 0 : a.toString(), " ") : e = A(e, "*", " "), C(m.value) ? e = A(e, (r = m.value) == null ? void 0 : r.toString(), " ") : e = A(e, "*", " "), ((n = M.value) == null ? void 0 : n.length) == 7 ? e = A(e, "*", " ") : e = A(e, (l = M.value) == null ? void 0 : l.toString(), " "), e = A(e, `${R.value}-${O.value}`, " "), s.value = e, s.value;
|
|
300
|
+
}
|
|
301
|
+
return T(i.value ?? i.defaultExpression ?? I()), {
|
|
302
|
+
applyRawExpression: b,
|
|
303
|
+
applyRegularity: W,
|
|
304
|
+
cronExpression: s,
|
|
305
|
+
getRegularityAndOrderAndDeliveryDays: U,
|
|
306
|
+
hour: c,
|
|
307
|
+
leadTimeLeft: p,
|
|
308
|
+
leadTimeRight: D,
|
|
309
|
+
months: m,
|
|
310
|
+
pack: z,
|
|
311
|
+
rawExpression: E,
|
|
312
|
+
regularity: f,
|
|
313
|
+
unpack: T,
|
|
314
|
+
weekdays: M,
|
|
315
|
+
weeks: d
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
export {
|
|
319
|
+
w as hourOptions,
|
|
320
|
+
H as monthOptions,
|
|
321
|
+
Y as regularityOptions,
|
|
322
|
+
te as useCron,
|
|
323
|
+
ee as useCronPredictor,
|
|
324
|
+
_ as weekOptions,
|
|
325
|
+
g as weekdayOptions
|
|
326
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { TableColumn } from './list.ts';
|
|
3
|
+
|
|
4
|
+
export interface CSVProps {
|
|
5
|
+
canExportCSV?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const csvDefaults: {
|
|
8
|
+
canExportCSV: boolean;
|
|
9
|
+
};
|
|
10
|
+
export interface UseCSVPropsReturn {
|
|
11
|
+
exportToCSV: (options: ExportToCSVOptions) => string[] | undefined;
|
|
12
|
+
importFromCSV: (options?: ImportFromCSVOptions) => void;
|
|
13
|
+
loadingMsg: ComputedRef<string | undefined>;
|
|
14
|
+
}
|
|
15
|
+
export interface ImportFromCSVOptions {
|
|
16
|
+
headers?: Array<TableColumn | string>;
|
|
17
|
+
}
|
|
18
|
+
export interface CSVItem {
|
|
19
|
+
header: string;
|
|
20
|
+
itemText?: string;
|
|
21
|
+
value: any;
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
interface Navigator {
|
|
25
|
+
msSaveOrOpenBlob: (blob: Blob, fileName: string) => boolean;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export interface ExportToCSVOptions {
|
|
29
|
+
delimiter?: string;
|
|
30
|
+
items: any[];
|
|
31
|
+
headers?: TableColumn[];
|
|
32
|
+
fileName?: string;
|
|
33
|
+
format?: 'array' | 'file';
|
|
34
|
+
}
|
|
35
|
+
export interface UseCSVOptions<T> {
|
|
36
|
+
onImport?: (items: T[]) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare function useCSV<T>(options?: UseCSVOptions<T>): UseCSVPropsReturn;
|
|
39
|
+
export interface GetCSVOption<T> {
|
|
40
|
+
csvColumnNames: string[];
|
|
41
|
+
onProcessProp?: (v: string, ret: T) => void;
|
|
42
|
+
propName?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function getCSVItems<T>(csvTxt: string, options: GetCSVOption<T>[], onProcessItem?: (csvItem: string[], item: T) => void): T[];
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { isLengthyArray as y, toCompareString as A, fromCamelCase as P, nestedValue as F, toCamelCase as U } from "./helpers.mjs";
|
|
2
|
+
import { useFileDialog as B } from "@vueuse/core";
|
|
3
|
+
import { ref as L, computed as D } from "vue";
|
|
4
|
+
const q = {
|
|
5
|
+
canExportCSV: !1
|
|
6
|
+
};
|
|
7
|
+
function G(v) {
|
|
8
|
+
v ?? (v = {});
|
|
9
|
+
const b = L(), { open: S, onChange: m } = B({
|
|
10
|
+
accept: ".csv",
|
|
11
|
+
multiple: !1
|
|
12
|
+
});
|
|
13
|
+
function R(n) {
|
|
14
|
+
const {
|
|
15
|
+
delimiter: e = ",",
|
|
16
|
+
items: t,
|
|
17
|
+
headers: i,
|
|
18
|
+
fileName: I = "data.csv",
|
|
19
|
+
format: j = "file"
|
|
20
|
+
} = n;
|
|
21
|
+
if (!y(t))
|
|
22
|
+
return;
|
|
23
|
+
let o = [];
|
|
24
|
+
i != null && (o = i == null ? void 0 : i.filter((a) => (a.csv ?? a.csvText ?? a.csvFilter ?? a.csvArray) != null).map((a) => ({
|
|
25
|
+
header: a.title ?? a.value ?? "",
|
|
26
|
+
itemText: a.itemText,
|
|
27
|
+
value: a.value
|
|
28
|
+
}))), y(o) || (o = Object.keys(t[0]).map((a) => ({ header: P(a) ?? "", value: a }))), o = o.filter((a) => a.header.length > 0);
|
|
29
|
+
var s = [];
|
|
30
|
+
for (let a = 0; a < t.length; a++) {
|
|
31
|
+
const E = t[a];
|
|
32
|
+
var C = {}, f = [];
|
|
33
|
+
for (let g = 0; g < o.length; g++) {
|
|
34
|
+
const u = o[g];
|
|
35
|
+
var p = null;
|
|
36
|
+
typeof u.value == "function" ? p = u.value(E) : typeof u.value == "string" && (p = F(E, u.value));
|
|
37
|
+
var d = u.itemText != null ? F(p, u.itemText) : p;
|
|
38
|
+
d != null && typeof d == "string" && (d = d.replaceAll(e, " ").replaceAll(`
|
|
39
|
+
`, "").replaceAll("\r", "")), C[u.header] = d;
|
|
40
|
+
}
|
|
41
|
+
s.push(C), y(f) && f.forEach((g) => {
|
|
42
|
+
s.push(g);
|
|
43
|
+
}), f = [];
|
|
44
|
+
}
|
|
45
|
+
var c = [];
|
|
46
|
+
if (c.push(o.map((a) => a.header).join(e)), s.forEach((a) => {
|
|
47
|
+
let E = [];
|
|
48
|
+
o.forEach(function(g) {
|
|
49
|
+
var u = a[g.header];
|
|
50
|
+
E.push(u ?? "");
|
|
51
|
+
}), c.push(E.join(e));
|
|
52
|
+
}), j == "array")
|
|
53
|
+
return c;
|
|
54
|
+
var V = c.join(`
|
|
55
|
+
`), r = new Blob([V], { type: "text/plain;charset=utf-8" });
|
|
56
|
+
if (window.navigator.msSaveOrOpenBlob)
|
|
57
|
+
window.navigator.msSaveOrOpenBlob(r, I);
|
|
58
|
+
else {
|
|
59
|
+
var l = document.createElement("a"), k = URL.createObjectURL(r);
|
|
60
|
+
l.href = k, l.download = I, document.body.appendChild(l), l.click(), setTimeout(function() {
|
|
61
|
+
document.body.removeChild(l), window.URL.revokeObjectURL(k);
|
|
62
|
+
}, 0);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function T(n) {
|
|
66
|
+
if (n == null)
|
|
67
|
+
return n;
|
|
68
|
+
var e = n.replaceAll(`
|
|
69
|
+
`, "").replaceAll("\r", ""), t = A(e);
|
|
70
|
+
return t == "true" ? !0 : t == "false" ? !1 : e;
|
|
71
|
+
}
|
|
72
|
+
function N(n) {
|
|
73
|
+
return U(n.replaceAll(" ", "").replaceAll(`
|
|
74
|
+
`, "").replaceAll("\r", ""));
|
|
75
|
+
}
|
|
76
|
+
function h(n) {
|
|
77
|
+
return A(n.replaceAll(" ", "").replaceAll(`
|
|
78
|
+
`, "").replaceAll("\r", "")) ?? "";
|
|
79
|
+
}
|
|
80
|
+
function w(n) {
|
|
81
|
+
m((e) => {
|
|
82
|
+
if ((e == null ? void 0 : e.length) == 1) {
|
|
83
|
+
const t = e[0];
|
|
84
|
+
b.value = "Importing from CSV file.";
|
|
85
|
+
const i = new FileReader();
|
|
86
|
+
i.onload = (I) => {
|
|
87
|
+
var d;
|
|
88
|
+
var j = [];
|
|
89
|
+
const o = (d = I.target) == null ? void 0 : d.result;
|
|
90
|
+
if (o != null) {
|
|
91
|
+
let c = o.split(`
|
|
92
|
+
`);
|
|
93
|
+
if (y(c)) {
|
|
94
|
+
var s = [];
|
|
95
|
+
y(n == null ? void 0 : n.headers) ? s = n.headers.map((r) => {
|
|
96
|
+
var l;
|
|
97
|
+
return typeof r == "string" ? l = {
|
|
98
|
+
headerName: h(r),
|
|
99
|
+
propName: N(r),
|
|
100
|
+
csvInd: void 0
|
|
101
|
+
} : l = {
|
|
102
|
+
headerName: h(r.title ?? r.value ?? ""),
|
|
103
|
+
propName: N(r.value ?? r.title ?? ""),
|
|
104
|
+
csvInd: void 0
|
|
105
|
+
}, l;
|
|
106
|
+
}) : s = c[0].split(",").map((l) => ({
|
|
107
|
+
headerName: h(l),
|
|
108
|
+
propName: N(l),
|
|
109
|
+
csvInd: void 0
|
|
110
|
+
}));
|
|
111
|
+
const V = c[0].split(",");
|
|
112
|
+
if (s.forEach((r) => {
|
|
113
|
+
r.csvInd = V.findIndex((l) => l == r.headerName || l == r.propName || A(l) == A(r.headerName) || A(l) == A(r.propName));
|
|
114
|
+
}), s = s.filter((r) => r.csvInd != null && r.csvInd > -1), c.length > 1)
|
|
115
|
+
for (var C = 1; C < c.length; C++) {
|
|
116
|
+
const r = {};
|
|
117
|
+
var f = c[C].split(","), p = !1;
|
|
118
|
+
if (f.length == 1 && f[0].length == 0)
|
|
119
|
+
break;
|
|
120
|
+
f.length > 0 && s.forEach((l) => {
|
|
121
|
+
f.length > l.csvInd - 1 && (r[l.propName] = T(f[l.csvInd]), p = !0);
|
|
122
|
+
}), p && j.push(r);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
(v == null ? void 0 : v.onImport) != null && v.onImport(j), b.value = void 0;
|
|
127
|
+
}, i.readAsText(t);
|
|
128
|
+
}
|
|
129
|
+
}), S();
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
exportToCSV: R,
|
|
133
|
+
importFromCSV: w,
|
|
134
|
+
loadingMsg: D(() => b.value)
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function J(v, b, S) {
|
|
138
|
+
var m = v.split(`
|
|
139
|
+
`);
|
|
140
|
+
if (!y(m))
|
|
141
|
+
return [];
|
|
142
|
+
const R = m[0].split(",").map((e) => A(e)), T = [];
|
|
143
|
+
var N = [];
|
|
144
|
+
b.forEach((e) => {
|
|
145
|
+
var t = R.findIndex((i) => e.csvColumnNames.some((I) => I == i));
|
|
146
|
+
t >= 0 && T.push({
|
|
147
|
+
opt: e,
|
|
148
|
+
csvInd: t
|
|
149
|
+
});
|
|
150
|
+
}), m.splice(0, 1);
|
|
151
|
+
for (var h = 0; h < m.length; h++) {
|
|
152
|
+
var w = m[h].split(","), n = {};
|
|
153
|
+
S != null && S(w, n), T.forEach((e) => {
|
|
154
|
+
e.opt.onProcessProp != null ? e.opt.onProcessProp(w[e.csvInd], n) : e.opt.propName != null && (n[e.opt.propName] = w[e.csvInd]);
|
|
155
|
+
}), N.push(n);
|
|
156
|
+
}
|
|
157
|
+
return N;
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
q as csvDefaults,
|
|
161
|
+
J as getCSVItems,
|
|
162
|
+
G as useCSV
|
|
163
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DateTime } from 'luxon';
|
|
2
|
+
|
|
3
|
+
export interface BTDates {
|
|
4
|
+
btDate: (val?: string) => DateTime;
|
|
5
|
+
btString: (val?: DateTime) => string;
|
|
6
|
+
/**returns start of day */
|
|
7
|
+
getToday: () => string;
|
|
8
|
+
/**returns start of tomorrow */
|
|
9
|
+
getTomorrow: () => string;
|
|
10
|
+
/**returns current datetime in tz format */
|
|
11
|
+
tzDate: (val?: string, fromFormat?: string) => DateTime;
|
|
12
|
+
tzString: (val?: string, format?: string, fromFormat?: string) => string;
|
|
13
|
+
utcDate: (val?: string, fromFormat?: string) => DateTime;
|
|
14
|
+
utcString: (val?: string, format?: string, fromFormat?: string) => string;
|
|
15
|
+
}
|
|
16
|
+
export interface CreateDatesOptions {
|
|
17
|
+
getTimeZone: () => string;
|
|
18
|
+
getUTC?: () => DateTime;
|
|
19
|
+
}
|
|
20
|
+
export declare const BTDateFormat: string;
|
|
21
|
+
export declare function useDates(): BTDates;
|
|
22
|
+
export declare function createDates(options: CreateDatesOptions): BTDates;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import r from "../bt-core/core/node_modules/luxon/src/datetime.mjs";
|
|
2
|
+
import "../bt-core/core/node_modules/luxon/src/duration.mjs";
|
|
3
|
+
const n = "yyyy-MM-dd'T'HH:mm:ss'Z'";
|
|
4
|
+
let f;
|
|
5
|
+
function l() {
|
|
6
|
+
return f;
|
|
7
|
+
}
|
|
8
|
+
function z(o) {
|
|
9
|
+
const u = o.getUTC ?? r.utc;
|
|
10
|
+
function F(t) {
|
|
11
|
+
return t == null ? u() : r.fromFormat(t, n);
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
return t == null ? u().toFormat(n) : t.toFormat(n);
|
|
15
|
+
}
|
|
16
|
+
function g() {
|
|
17
|
+
return c().startOf("day").toUTC().toFormat(n) ?? "";
|
|
18
|
+
}
|
|
19
|
+
function s() {
|
|
20
|
+
return c().startOf("day").plus({ day: 1 }).toUTC().toFormat(n) ?? "";
|
|
21
|
+
}
|
|
22
|
+
function c(t, e) {
|
|
23
|
+
return t == null ? u().setZone(o.getTimeZone()) : e ? r.fromFormat(t, e, { zone: o.getTimeZone() }) : r.fromISO(t, { zone: o.getTimeZone() });
|
|
24
|
+
}
|
|
25
|
+
function Z(t, e, i) {
|
|
26
|
+
if (t == null) {
|
|
27
|
+
const T = u().setZone(o.getTimeZone());
|
|
28
|
+
return e ? T.toFormat(e) : T.toFormat(n);
|
|
29
|
+
}
|
|
30
|
+
if (t == "Invalid DateTime")
|
|
31
|
+
return "";
|
|
32
|
+
const m = i ? r.fromFormat(t, i, { zone: o.getTimeZone() }) : r.fromISO(t, { zone: o.getTimeZone() });
|
|
33
|
+
return e ? m.toFormat(e) : m == null ? void 0 : m.toFormat(n);
|
|
34
|
+
}
|
|
35
|
+
function d(t, e) {
|
|
36
|
+
return t == null ? u() : e ? r.fromFormat(t, e) : r.fromISO(t);
|
|
37
|
+
}
|
|
38
|
+
function y(t, e, i) {
|
|
39
|
+
if (t == null)
|
|
40
|
+
return e ? u().toFormat(e) : u().toFormat(n);
|
|
41
|
+
{
|
|
42
|
+
const m = i ? r.fromFormat(t, i) : r.fromISO(t);
|
|
43
|
+
return e ? m.toFormat(e) : m.toFormat(n);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return f = {
|
|
47
|
+
btDate: F,
|
|
48
|
+
btString: a,
|
|
49
|
+
getToday: g,
|
|
50
|
+
getTomorrow: s,
|
|
51
|
+
tzDate: c,
|
|
52
|
+
tzString: Z,
|
|
53
|
+
utcDate: d,
|
|
54
|
+
utcString: y
|
|
55
|
+
}, f;
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
n as BTDateFormat,
|
|
59
|
+
z as createDates,
|
|
60
|
+
l as useDates
|
|
61
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { BTAuth } from './auth.ts';
|
|
2
|
+
import { Store, Pinia } from 'pinia';
|
|
3
|
+
import { PathOptions } from './api.ts';
|
|
4
|
+
import { Ref } from 'vue';
|
|
5
|
+
|
|
6
|
+
export type ApiAction = 'get' | 'getAll' | 'delete' | 'post' | 'patch';
|
|
7
|
+
export interface CreateDemoOptions {
|
|
8
|
+
apis?: DemoApiGroup[];
|
|
9
|
+
auth?: BTAuth;
|
|
10
|
+
getProfiles?: () => DemoProfile[];
|
|
11
|
+
getAuthToken?: () => any;
|
|
12
|
+
getOwnerID?: (p: DemoProfile) => string | undefined;
|
|
13
|
+
startInDemo?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface DemoProfile {
|
|
16
|
+
description?: string;
|
|
17
|
+
getAuthToken?: () => any;
|
|
18
|
+
id: string;
|
|
19
|
+
isDefault?: boolean;
|
|
20
|
+
navigateTo?: string;
|
|
21
|
+
profileName?: string;
|
|
22
|
+
profileAvatarURL?: string;
|
|
23
|
+
profileIcon?: string;
|
|
24
|
+
}
|
|
25
|
+
export type WithBuyerID<T> = {
|
|
26
|
+
buyerID?: string;
|
|
27
|
+
} & T;
|
|
28
|
+
export type WithCourierID<T> = {
|
|
29
|
+
courierID?: string;
|
|
30
|
+
} & T;
|
|
31
|
+
export type WithCompanyID<T> = {
|
|
32
|
+
companyAccountID?: string;
|
|
33
|
+
} & T;
|
|
34
|
+
export type WithSellerID<T> = {
|
|
35
|
+
sellerID?: string;
|
|
36
|
+
} & T;
|
|
37
|
+
export interface DemoApiGroup {
|
|
38
|
+
defaultFilter?: <T>(list: T[], ownerID?: string) => T[];
|
|
39
|
+
defaultFilterProp?: 'buyerID' | 'courierID' | 'companyAccountID' | 'sellerID' | string;
|
|
40
|
+
nav?: string | string[];
|
|
41
|
+
path?: string;
|
|
42
|
+
data?: any[];
|
|
43
|
+
deleteAction?: <T>(list: T[], itemInd: number) => any;
|
|
44
|
+
getAllAction?: <T>(list: T[], params: any) => T[] | any[];
|
|
45
|
+
getAction?: <T>(list: T[], id?: string) => T | any;
|
|
46
|
+
patchAction?: <T>(list: T[], item: any) => T | any;
|
|
47
|
+
postAction?: <T>(list: T[], item: any) => T | any;
|
|
48
|
+
getActions?: Record<string, <T>(list: T[], pathOptions?: PathOptions, id?: string) => any>;
|
|
49
|
+
postActions?: Record<string, <T>(list: T[], pathOptions?: PathOptions, id?: string) => any>;
|
|
50
|
+
patchActions?: Record<string, <T>(list: T[], pathOptions?: PathOptions, id?: string) => any>;
|
|
51
|
+
}
|
|
52
|
+
export interface BTDemo {
|
|
53
|
+
getProfiles?: () => DemoProfile[];
|
|
54
|
+
endDemo: (goHome?: boolean) => void;
|
|
55
|
+
isDemoing: Ref<boolean>;
|
|
56
|
+
startDemo: (profileID?: string) => void;
|
|
57
|
+
data: DemoApiGroup[];
|
|
58
|
+
deleteItem: (pathOptions: PathOptions) => Promise<any>;
|
|
59
|
+
get: (pathOptions: PathOptions) => Promise<any>;
|
|
60
|
+
getAll: (pathOptions: PathOptions) => Promise<any>;
|
|
61
|
+
post: (pathOptions: PathOptions) => Promise<any>;
|
|
62
|
+
patch: (pathOptions: PathOptions) => Promise<any>;
|
|
63
|
+
}
|
|
64
|
+
export declare function useDemo(): BTDemo;
|
|
65
|
+
export interface ExtendedPinia extends Pinia {
|
|
66
|
+
_s: Map<string, Store>;
|
|
67
|
+
}
|
|
68
|
+
export declare function createDemo(options?: CreateDemoOptions): BTDemo;
|