bt-core-app 2.1.37 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjs-dynamic-modules.mjs +6 -0
- package/dist/_virtual/_commonjsHelpers.mjs +30 -0
- package/dist/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/dist/_virtual/index.mjs +4 -0
- package/dist/_virtual/localforage.mjs +4 -0
- package/dist/_virtual/luxon.mjs +6 -0
- package/dist/_virtual/matcher.mjs +4 -0
- package/dist/_virtual/parser.mjs +4 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-matcher/dist/index.mjs +12 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-matcher/dist/matcher.mjs +220 -0
- package/dist/bt-core/core/node_modules/@datasert/cronjs-parser/dist/parser.mjs +186 -0
- package/dist/bt-core/core/node_modules/@mdi/js/mdi.mjs +70 -0
- package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs +1 -0
- package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.mjs +5210 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/addLeadingZeros.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/defaultOptions.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/formatters.mjs +517 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/lightFormatters.mjs +59 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/format/longFormatters.mjs +52 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs +18 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/normalizeDates.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/normalizeInterval.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/_lib/protectedTokens.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/add.mjs +20 -0
- package/dist/bt-core/core/node_modules/date-fns/addDays.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/addHours.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/addMilliseconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/addMonths.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/addQuarters.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/addYears.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/compareAsc.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/constants.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/constructFrom.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInCalendarDays.mjs +16 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInCalendarYears.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/differenceInYears.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/eachDayOfInterval.mjs +20 -0
- package/dist/bt-core/core/node_modules/date-fns/eachQuarterOfInterval.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfWeek.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/endOfYear.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/format.mjs +60 -0
- package/dist/bt-core/core/node_modules/date-fns/getDay.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getDayOfYear.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/getDaysInMonth.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/getDefaultOptions.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getHours.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getISODay.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/getISOWeek.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/getISOWeekYear.mjs +15 -0
- package/dist/bt-core/core/node_modules/date-fns/getMinutes.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getMonth.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/getSeconds.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/getWeek.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/getWeekYear.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/getYear.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isAfter.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isBefore.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isDate.mjs +7 -0
- package/dist/bt-core/core/node_modules/date-fns/isEqual.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/isSameQuarter.mjs +14 -0
- package/dist/bt-core/core/node_modules/date-fns/isValid.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs +18 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildMatchFn.mjs +31 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs +17 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatLong.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/localize.mjs +155 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/match.mjs +110 -0
- package/dist/bt-core/core/node_modules/date-fns/locale/en-US.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/Parser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/Setter.mjs +41 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/constants.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/AMPMParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DateParser.mjs +61 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.mjs +51 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayParser.mjs +45 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/EraParser.mjs +30 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.mjs +21 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.mjs +33 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISODayParser.mjs +99 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.mjs +40 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.mjs +74 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.mjs +48 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.mjs +69 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/MinuteParser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/MonthParser.mjs +71 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/QuarterParser.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/SecondParser.mjs +32 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.mjs +74 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.mjs +71 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.mjs +70 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.mjs +22 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/YearParser.mjs +49 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers.mjs +67 -0
- package/dist/bt-core/core/node_modules/date-fns/parse/_lib/utils.mjs +103 -0
- package/dist/bt-core/core/node_modules/date-fns/parse.mjs +90 -0
- package/dist/bt-core/core/node_modules/date-fns/set.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/setDay.mjs +12 -0
- package/dist/bt-core/core/node_modules/date-fns/setHours.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setISODay.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/setISOWeek.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/setMilliseconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setMinutes.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setMonth.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/setSeconds.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/setWeek.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/setYear.mjs +10 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfDay.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfISOWeek.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfISOWeekYear.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfMonth.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfQuarter.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfWeek.mjs +11 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfWeekYear.mjs +13 -0
- package/dist/bt-core/core/node_modules/date-fns/startOfYear.mjs +9 -0
- package/dist/bt-core/core/node_modules/date-fns/sub.mjs +19 -0
- package/dist/bt-core/core/node_modules/date-fns/subDays.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/subMonths.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/subYears.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/toDate.mjs +8 -0
- package/dist/bt-core/core/node_modules/date-fns/transpose.mjs +18 -0
- package/dist/bt-core/core/node_modules/localforage/dist/localforage.mjs +1454 -0
- package/dist/bt-core/core/node_modules/luxon/src/datetime.mjs +1855 -0
- package/dist/bt-core/core/node_modules/luxon/src/duration.mjs +753 -0
- package/dist/bt-core/core/node_modules/luxon/src/errors.mjs +40 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/conversions.mjs +92 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/diff.mjs +36 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/digits.mjs +77 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/english.mjs +138 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/formats.mjs +150 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/formatter.mjs +258 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/invalid.mjs +11 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/locale.mjs +294 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/regexParser.mjs +202 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/tokenParser.mjs +329 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/util.mjs +220 -0
- package/dist/bt-core/core/node_modules/luxon/src/impl/zoneUtil.mjs +20 -0
- package/dist/bt-core/core/node_modules/luxon/src/info.mjs +180 -0
- package/dist/bt-core/core/node_modules/luxon/src/interval.mjs +481 -0
- package/dist/bt-core/core/node_modules/luxon/src/luxon.mjs +24 -0
- package/dist/bt-core/core/node_modules/luxon/src/settings.mjs +150 -0
- package/dist/bt-core/core/node_modules/luxon/src/zone.mjs +88 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/IANAZone.mjs +183 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/fixedOffsetZone.mjs +125 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/invalidZone.mjs +41 -0
- package/dist/bt-core/core/node_modules/luxon/src/zones/systemZone.mjs +47 -0
- package/dist/bt-core/core/node_modules/merge-images/dist/index.es2015.mjs +47 -0
- package/dist/bt-core/core/node_modules/signature_pad/dist/signature_pad.mjs +248 -0
- package/dist/bt-core/core/node_modules/thenby/thenBy.module.mjs +38 -0
- package/dist/bt-core/core/node_modules/vue-picture-cropper/lib/index.mjs +1643 -0
- package/dist/bt-core/core/node_modules/vue-signature-pad/dist/vue-signature-pad.esm.mjs +173 -0
- package/dist/bt-core/core/node_modules/vue-use-spring/dist/index.mjs +204 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/defaults.mjs +61 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +82 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/iconsets/mdi-svg.mjs +74 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/colors.mjs +322 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/console.mjs +7 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/defineComponent.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/getCurrentInstance.mjs +10 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +44 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/injectSelf.mjs +12 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/propsFactory.mjs +14 -0
- package/dist/components/BT-Assistant-Menu.vue.d.ts +19 -0
- package/dist/components/BT-Assistant-Menu.vue.mjs +464 -0
- package/dist/components/BT-Assistant-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Avatar.vue.d.ts +16 -0
- package/dist/components/BT-Avatar.vue.mjs +41 -0
- package/dist/components/BT-Avatar.vue2.mjs +4 -0
- package/dist/components/BT-Background-Task.vue.d.ts +61 -0
- package/dist/components/BT-Background-Task.vue.mjs +89 -0
- package/dist/components/BT-Background-Task.vue2.mjs +4 -0
- package/dist/components/BT-Blade-Item.vue.d.ts +578 -0
- package/dist/components/BT-Blade-Item.vue.mjs +441 -0
- package/dist/components/BT-Blade-Item.vue2.mjs +4 -0
- package/dist/components/BT-Blade-Items.vue.d.ts +2358 -0
- package/dist/components/BT-Blade-Items.vue.mjs +7 -0
- package/dist/components/BT-Blade-Items.vue2.mjs +943 -0
- package/dist/components/BT-Blade-Items.vue3.mjs +1 -0
- package/dist/components/BT-Blade-Steps.vue.d.ts +1740 -0
- package/dist/components/BT-Blade-Steps.vue.mjs +7 -0
- package/dist/components/BT-Blade-Steps.vue2.mjs +1305 -0
- package/dist/components/BT-Blade-Steps.vue3.mjs +1 -0
- package/dist/components/BT-Blade.vue.d.ts +109 -0
- package/dist/components/BT-Blade.vue.mjs +268 -0
- package/dist/components/BT-Blade.vue2.mjs +4 -0
- package/dist/components/BT-Btn.vue.d.ts +47 -0
- package/dist/components/BT-Btn.vue.mjs +43 -0
- package/dist/components/BT-Btn.vue2.mjs +4 -0
- package/dist/components/BT-Camera-Overlay.vue.d.ts +57 -0
- package/dist/components/BT-Camera-Overlay.vue.mjs +173 -0
- package/dist/components/BT-Camera-Overlay.vue2.mjs +4 -0
- package/dist/components/BT-Col.vue.d.ts +49 -0
- package/dist/components/BT-Col.vue.mjs +33 -0
- package/dist/components/BT-Col.vue2.mjs +4 -0
- package/dist/components/BT-Color-Picker-Menu.vue.d.ts +23 -0
- package/dist/components/BT-Color-Picker-Menu.vue.mjs +63 -0
- package/dist/components/BT-Color-Picker-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Cosmetics-Menu.vue.d.ts +14 -0
- package/dist/components/BT-Cosmetics-Menu.vue.mjs +211 -0
- package/dist/components/BT-Cosmetics-Menu.vue2.mjs +4 -0
- package/dist/components/BT-Cron-Span.vue.d.ts +21 -0
- package/dist/components/BT-Cron-Span.vue.mjs +66 -0
- package/dist/components/BT-Cron-Span.vue2.mjs +4 -0
- package/dist/components/BT-Cron.vue.d.ts +37 -0
- package/dist/components/BT-Cron.vue.mjs +538 -0
- package/dist/components/BT-Cron.vue2.mjs +4 -0
- package/dist/components/BT-Date-Select.vue.d.ts +46 -0
- package/dist/components/BT-Date-Select.vue.mjs +71 -0
- package/dist/components/BT-Date-Select.vue2.mjs +4 -0
- package/dist/components/BT-Date.vue.d.ts +53 -0
- package/dist/components/BT-Date.vue.mjs +55 -0
- package/dist/components/BT-Date.vue2.mjs +4 -0
- package/dist/components/BT-Demo-Profile-Select.vue.d.ts +17 -0
- package/dist/components/BT-Demo-Profile-Select.vue.mjs +52 -0
- package/dist/components/BT-Demo-Profile-Select.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Confirm.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Confirm.vue.mjs +63 -0
- package/dist/components/BT-Dialog-Confirm.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Date.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Date.vue.mjs +79 -0
- package/dist/components/BT-Dialog-Date.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Number.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Number.vue.mjs +178 -0
- package/dist/components/BT-Dialog-Number.vue2.mjs +4 -0
- package/dist/components/BT-Dialog-Select.vue.d.ts +2 -0
- package/dist/components/BT-Dialog-Select.vue.mjs +235 -0
- package/dist/components/BT-Dialog-Select.vue2.mjs +4 -0
- package/dist/components/BT-Divider.vue.d.ts +24 -0
- package/dist/components/BT-Divider.vue.mjs +31 -0
- package/dist/components/BT-Divider.vue2.mjs +4 -0
- package/dist/components/BT-Drag-Counter.vue.d.ts +114 -0
- package/dist/components/BT-Drag-Counter.vue.mjs +7 -0
- package/dist/components/BT-Drag-Counter.vue2.mjs +156 -0
- package/dist/components/BT-Drag-Counter.vue3.mjs +1 -0
- package/dist/components/BT-Entity.vue.d.ts +82 -0
- package/dist/components/BT-Entity.vue.mjs +172 -0
- package/dist/components/BT-Entity.vue2.mjs +4 -0
- package/dist/components/BT-Error.vue.d.ts +15 -0
- package/dist/components/BT-Error.vue.mjs +35 -0
- package/dist/components/BT-Error.vue2.mjs +4 -0
- package/dist/components/BT-Field-Checkbox.vue.d.ts +57 -0
- package/dist/components/BT-Field-Checkbox.vue.mjs +61 -0
- package/dist/components/BT-Field-Checkbox.vue2.mjs +4 -0
- package/dist/components/BT-Field-Date.vue.d.ts +69 -0
- package/dist/components/BT-Field-Date.vue.mjs +120 -0
- package/dist/components/BT-Field-Date.vue2.mjs +4 -0
- package/dist/components/BT-Field-Entity.vue.d.ts +48 -0
- package/dist/components/BT-Field-Entity.vue.mjs +55 -0
- package/dist/components/BT-Field-Entity.vue2.mjs +4 -0
- package/dist/components/BT-Field-Select-Simple.vue.d.ts +55 -0
- package/dist/components/BT-Field-Select-Simple.vue.mjs +52 -0
- package/dist/components/BT-Field-Select-Simple.vue2.mjs +4 -0
- package/dist/components/BT-Field-Select.vue.d.ts +70 -0
- package/dist/components/BT-Field-Select.vue.mjs +60 -0
- package/dist/components/BT-Field-Select.vue2.mjs +4 -0
- package/dist/components/BT-Field-String.vue.d.ts +57 -0
- package/dist/components/BT-Field-String.vue.mjs +87 -0
- package/dist/components/BT-Field-String.vue2.mjs +4 -0
- package/dist/components/BT-Field-Switch.vue.d.ts +51 -0
- package/dist/components/BT-Field-Switch.vue.mjs +64 -0
- package/dist/components/BT-Field-Switch.vue2.mjs +4 -0
- package/dist/components/BT-Field-Tags.vue.d.ts +53 -0
- package/dist/components/BT-Field-Tags.vue.mjs +80 -0
- package/dist/components/BT-Field-Tags.vue2.mjs +4 -0
- package/dist/components/BT-Field-Textarea.vue.d.ts +53 -0
- package/dist/components/BT-Field-Textarea.vue.mjs +66 -0
- package/dist/components/BT-Field-Textarea.vue2.mjs +4 -0
- package/dist/components/BT-Field-Trigger.vue.d.ts +113 -0
- package/dist/components/BT-Field-Trigger.vue.mjs +368 -0
- package/dist/components/BT-Field-Trigger.vue2.mjs +4 -0
- package/dist/components/BT-Field.vue.d.ts +49 -0
- package/dist/components/BT-Field.vue.mjs +59 -0
- package/dist/components/BT-Field.vue2.mjs +4 -0
- package/dist/components/BT-Form-Builder.vue.d.ts +74 -0
- package/dist/components/BT-Form-Builder.vue.mjs +762 -0
- package/dist/components/BT-Form-Builder.vue2.mjs +4 -0
- package/dist/components/BT-Form-Field.vue.d.ts +41 -0
- package/dist/components/BT-Form-Field.vue.mjs +186 -0
- package/dist/components/BT-Form-Field.vue2.mjs +4 -0
- package/dist/components/BT-Form.vue.d.ts +95 -0
- package/dist/components/BT-Form.vue.mjs +635 -0
- package/dist/components/BT-Form.vue2.mjs +4 -0
- package/dist/components/BT-Header-Option.vue.d.ts +18 -0
- package/dist/components/BT-Header-Option.vue.mjs +62 -0
- package/dist/components/BT-Header-Option.vue2.mjs +4 -0
- package/dist/components/BT-Image-Select.vue.d.ts +71 -0
- package/dist/components/BT-Image-Select.vue.mjs +219 -0
- package/dist/components/BT-Image-Select.vue2.mjs +4 -0
- package/dist/components/BT-Json.vue.d.ts +6 -0
- package/dist/components/BT-Json.vue.mjs +38 -0
- package/dist/components/BT-Json.vue2.mjs +1 -0
- package/dist/components/BT-Json.vue3.mjs +5 -0
- package/dist/components/BT-Loader.vue.d.ts +6 -0
- package/dist/components/BT-Loader.vue.mjs +37 -0
- package/dist/components/BT-Loader.vue2.mjs +4 -0
- package/dist/components/BT-Nav-Sidebar.vue.d.ts +25 -0
- package/dist/components/BT-Nav-Sidebar.vue.mjs +138 -0
- package/dist/components/BT-Nav-Sidebar.vue2.mjs +4 -0
- package/dist/components/BT-Number.vue.d.ts +23 -0
- package/dist/components/BT-Number.vue.mjs +7 -0
- package/dist/components/BT-Number.vue2.mjs +43 -0
- package/dist/components/BT-Number.vue3.mjs +1 -0
- package/dist/components/BT-Numpad.vue.d.ts +68 -0
- package/dist/components/BT-Numpad.vue.mjs +191 -0
- package/dist/components/BT-Numpad.vue2.mjs +4 -0
- package/dist/components/BT-Select-Inline.vue.d.ts +121 -0
- package/dist/components/BT-Select-Inline.vue.mjs +74 -0
- package/dist/components/BT-Select-Inline.vue2.mjs +24 -0
- package/dist/components/BT-Select-Inline.vue3.mjs +1 -0
- package/dist/components/BT-Select-List-Box.vue.d.ts +137 -0
- package/dist/components/BT-Select-List-Box.vue.mjs +414 -0
- package/dist/components/BT-Select-List-Box.vue2.mjs +4 -0
- package/dist/components/BT-Select-Simple.vue.d.ts +58 -0
- package/dist/components/BT-Select-Simple.vue.mjs +126 -0
- package/dist/components/BT-Select-Simple.vue2.mjs +4 -0
- package/dist/components/BT-Select.vue.d.ts +73 -0
- package/dist/components/BT-Select.vue.mjs +138 -0
- package/dist/components/BT-Select.vue2.mjs +4 -0
- package/dist/components/BT-Signature-Overlay.vue.d.ts +65 -0
- package/dist/components/BT-Signature-Overlay.vue.mjs +146 -0
- package/dist/components/BT-Signature-Overlay.vue2.mjs +4 -0
- package/dist/components/BT-Signature.vue.d.ts +70 -0
- package/dist/components/BT-Signature.vue.mjs +155 -0
- package/dist/components/BT-Signature.vue2.mjs +4 -0
- package/dist/components/BT-Slider.vue.d.ts +37 -0
- package/dist/components/BT-Slider.vue.mjs +126 -0
- package/dist/components/BT-Slider.vue2.mjs +4 -0
- package/dist/components/BT-Span.vue.d.ts +19 -0
- package/dist/components/BT-Span.vue.mjs +23 -0
- package/dist/components/BT-Span.vue2.mjs +4 -0
- package/dist/components/BT-Square-Check.vue.d.ts +104 -0
- package/dist/components/BT-Square-Check.vue.mjs +98 -0
- package/dist/components/BT-Square-Check.vue2.mjs +4 -0
- package/dist/components/BT-Status-Item.vue.d.ts +45 -0
- package/dist/components/BT-Status-Item.vue.mjs +51 -0
- package/dist/components/BT-Status-Item.vue2.mjs +4 -0
- package/dist/components/BT-Tags.vue.d.ts +19 -0
- package/dist/components/BT-Tags.vue.mjs +32 -0
- package/dist/components/BT-Tags.vue2.mjs +4 -0
- package/dist/components/BT-Tour.vue.d.ts +43 -0
- package/dist/components/BT-Tour.vue.mjs +78 -0
- package/dist/components/BT-Tour.vue2.mjs +4 -0
- package/dist/components.mjs +36 -0
- package/dist/composables/actions-local.d.ts +14 -0
- package/dist/composables/actions-local.mjs +26 -0
- package/dist/composables/actions-tracker.d.ts +36 -0
- package/dist/composables/actions-tracker.mjs +88 -0
- package/dist/composables/actions.d.ts +116 -0
- package/dist/composables/actions.mjs +272 -0
- package/dist/composables/api.d.ts +100 -0
- package/dist/composables/api.mjs +329 -0
- package/dist/composables/assistant.d.ts +38 -0
- package/dist/composables/assistant.mjs +70 -0
- package/dist/composables/auth.d.ts +94 -0
- package/dist/composables/auth.mjs +257 -0
- package/dist/composables/background-tasks.d.ts +31 -0
- package/dist/composables/background-tasks.mjs +79 -0
- package/dist/composables/blade-old.d.ts +1 -0
- package/dist/composables/blade.d.ts +91 -0
- package/dist/composables/blade.mjs +156 -0
- package/dist/composables/charts.d.ts +10 -0
- package/dist/composables/colorizer.d.ts +5 -0
- package/dist/composables/colorizer.mjs +27 -0
- package/dist/composables/component-config.d.ts +8 -0
- package/dist/composables/component-config.mjs +11 -0
- package/dist/composables/confirm.d.ts +1 -0
- package/dist/composables/confirm.mjs +11 -0
- package/dist/composables/cosmetics.d.ts +44 -0
- package/dist/composables/cosmetics.mjs +125 -0
- package/dist/composables/cron-adjustments.d.ts +63 -0
- package/dist/composables/cron-adjustments.mjs +106 -0
- package/dist/composables/cron.d.ts +72 -0
- package/dist/composables/cron.mjs +326 -0
- package/dist/composables/csv.d.ts +44 -0
- package/dist/composables/csv.mjs +163 -0
- package/dist/composables/dates.d.ts +22 -0
- package/dist/composables/dates.mjs +61 -0
- package/dist/composables/demo.d.ts +68 -0
- package/dist/composables/demo.mjs +173 -0
- package/dist/composables/dialog-items.d.ts +117 -0
- package/dist/composables/dialog-items.mjs +72 -0
- package/dist/composables/document-meta.d.ts +11 -0
- package/dist/composables/document-meta.mjs +20 -0
- package/dist/composables/draggable.d.ts +56 -0
- package/dist/composables/draggable.mjs +76 -0
- package/dist/composables/feedback.d.ts +24 -0
- package/dist/composables/feedback.mjs +32 -0
- package/dist/composables/filters.d.ts +27 -0
- package/dist/composables/filters.mjs +218 -0
- package/dist/composables/forage.d.ts +89 -0
- package/dist/composables/forage.mjs +37 -0
- package/dist/composables/forms.d.ts +104 -0
- package/dist/composables/forms.mjs +256 -0
- package/dist/composables/geo.d.ts +24 -0
- package/dist/composables/geo.mjs +95 -0
- package/dist/composables/graph-pro.d.ts +98 -0
- package/dist/composables/graph-pro.mjs +205 -0
- package/dist/composables/graphing.d.ts +1 -0
- package/dist/composables/heights.d.ts +24 -0
- package/dist/composables/heights.mjs +41 -0
- package/dist/composables/helpers.d.ts +114 -0
- package/dist/composables/helpers.mjs +512 -0
- package/dist/composables/icons.d.ts +3 -0
- package/dist/composables/icons.mjs +84 -0
- package/dist/composables/id.d.ts +8 -0
- package/dist/composables/id.mjs +32 -0
- package/dist/composables/item.d.ts +132 -0
- package/dist/composables/item.mjs +263 -0
- package/dist/composables/iterating.d.ts +1 -0
- package/dist/composables/list.d.ts +345 -0
- package/dist/composables/list.mjs +460 -0
- package/dist/composables/lists.d.ts +10 -0
- package/dist/composables/lists.mjs +31 -0
- package/dist/composables/menu.d.ts +35 -0
- package/dist/composables/menu.mjs +63 -0
- package/dist/composables/navigation.d.ts +123 -0
- package/dist/composables/navigation.mjs +157 -0
- package/dist/composables/nested.d.ts +3 -0
- package/dist/composables/nested.mjs +20 -0
- package/dist/composables/old-dialogs.d.ts +1 -0
- package/dist/composables/presets.d.ts +8 -0
- package/dist/composables/presets.mjs +16 -0
- package/dist/composables/pwa-old.d.ts +15 -0
- package/dist/composables/pwa.d.ts +26 -0
- package/dist/composables/pwa.mjs +80 -0
- package/dist/composables/resizable.d.ts +34 -0
- package/dist/composables/resizable.mjs +135 -0
- package/dist/composables/routing-old.d.ts +1 -0
- package/dist/composables/routing.d.ts +16 -0
- package/dist/composables/routing.mjs +112 -0
- package/dist/composables/rules.d.ts +13 -0
- package/dist/composables/rules.mjs +22 -0
- package/dist/composables/select.d.ts +78 -0
- package/dist/composables/select.mjs +129 -0
- package/dist/composables/settings.d.ts +6 -0
- package/dist/composables/settings.mjs +21 -0
- package/dist/composables/setup.d.ts +1 -0
- package/dist/composables/steps-old.d.ts +1 -0
- package/dist/composables/steps.d.ts +53 -0
- package/dist/composables/steps.mjs +39 -0
- package/dist/composables/stores.d.ts +258 -0
- package/dist/composables/stores.mjs +1257 -0
- package/dist/composables/sync.d.ts +33 -0
- package/dist/composables/track.d.ts +13 -0
- package/dist/composables/track.mjs +30 -0
- package/dist/composables/urls.d.ts +35 -0
- package/dist/composables/urls.mjs +66 -0
- package/dist/composables/vuetify.d.ts +85 -0
- package/dist/composables.mjs +237 -0
- package/dist/core.d.ts +48 -0
- package/dist/core.mjs +6 -0
- package/dist/core2.mjs +118 -0
- package/dist/index-components.d.ts +19 -0
- package/dist/index-composables.d.ts +75 -0
- package/dist/index-core.d.ts +3 -0
- package/dist/index.d.ts +96 -3036
- package/dist/index.mjs +275 -0
- package/dist/main.d.ts +1 -0
- package/dist/node_modules/bt-core-app/dist/bt-core-app.mjs +30372 -0
- package/dist/style.css +1 -5
- package/dist/types.d.ts +18 -0
- package/dist/types.mjs +7 -0
- package/package.json +13 -1
- package/dist/bt-core-app.js +0 -81355
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface GeoCoordinate {
|
|
2
|
+
lat?: number;
|
|
3
|
+
lng?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function useGeo(): {
|
|
6
|
+
areaContains: (polygon: GeoCoordinate[], point?: GeoCoordinate) => boolean;
|
|
7
|
+
getAreaAround: (location: GeoCoordinate, radius: number) => {
|
|
8
|
+
lat: number;
|
|
9
|
+
lng: number;
|
|
10
|
+
}[] | undefined;
|
|
11
|
+
getAreaToLeft: (location: GeoCoordinate, radius: number) => {
|
|
12
|
+
lat: number;
|
|
13
|
+
lng: number;
|
|
14
|
+
}[] | undefined;
|
|
15
|
+
getAreaToRight: (location: GeoCoordinate, radius: number) => {
|
|
16
|
+
lat: number;
|
|
17
|
+
lng: number;
|
|
18
|
+
}[] | undefined;
|
|
19
|
+
getBoundary: (mvcArray: any) => GeoCoordinate[];
|
|
20
|
+
};
|
|
21
|
+
export declare function useMyGeoLocation(): {
|
|
22
|
+
canGetGeoLocation: import('vue').ComputedRef<boolean>;
|
|
23
|
+
getGeoLocation: () => Promise<GeoCoordinate | undefined>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { computed as L } from "vue";
|
|
2
|
+
function N() {
|
|
3
|
+
function f(l, t) {
|
|
4
|
+
if (!(l.lat == null || l.lng == null))
|
|
5
|
+
return [
|
|
6
|
+
{ lat: l.lat - t, lng: l.lng + t },
|
|
7
|
+
{ lat: l.lat - t, lng: l.lng - t },
|
|
8
|
+
{ lat: l.lat + t, lng: l.lng - t },
|
|
9
|
+
{ lat: l.lat + t, lng: l.lng + t }
|
|
10
|
+
];
|
|
11
|
+
}
|
|
12
|
+
function h(l, t) {
|
|
13
|
+
if (!(l.lat == null || l.lng == null))
|
|
14
|
+
return [
|
|
15
|
+
{ lat: l.lat - t * 2, lng: l.lng + t },
|
|
16
|
+
{ lat: l.lat - t * 2, lng: l.lng - t },
|
|
17
|
+
{ lat: l.lat, lng: l.lng - t },
|
|
18
|
+
{ lat: l.lat, lng: l.lng + t }
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
function a(l, t) {
|
|
22
|
+
if (!(l.lat == null || l.lng == null))
|
|
23
|
+
return [
|
|
24
|
+
{ lat: l.lat, lng: l.lng + t },
|
|
25
|
+
{ lat: l.lat, lng: l.lng - t },
|
|
26
|
+
{ lat: l.lat + t * 2, lng: l.lng - t },
|
|
27
|
+
{ lat: l.lat + t * 2, lng: l.lng + t }
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
function g(l) {
|
|
31
|
+
let t = [];
|
|
32
|
+
var n = l.getLength();
|
|
33
|
+
for (let r = 0; r < n; r++) {
|
|
34
|
+
let e = [], u = l.getAt(r), A = u.getLength();
|
|
35
|
+
for (let v = 0; v < A; v++) {
|
|
36
|
+
let m = u.getAt(v);
|
|
37
|
+
e.push({ lat: m.lat(), lng: m.lng() });
|
|
38
|
+
}
|
|
39
|
+
t.push(e);
|
|
40
|
+
}
|
|
41
|
+
return t[0];
|
|
42
|
+
}
|
|
43
|
+
function y(l, t) {
|
|
44
|
+
if (l == null || (t == null ? void 0 : t.lat) == null || (t == null ? void 0 : t.lng) == null)
|
|
45
|
+
return !1;
|
|
46
|
+
var n = l.map((e) => ({ x: e.lat, y: e.lng }));
|
|
47
|
+
let r = !1;
|
|
48
|
+
for (let e = 0, u = n.length - 1; e < n.length; e++)
|
|
49
|
+
n[e].y > t.lng != n[u].y > t.lng && t.lat < (n[u].x - n[e].x) * (t.lng - n[e].y) / (n[u].y - n[e].y) + n[e].x && (r = !r), u = e;
|
|
50
|
+
return r;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
areaContains: y,
|
|
54
|
+
getAreaAround: f,
|
|
55
|
+
getAreaToLeft: h,
|
|
56
|
+
getAreaToRight: a,
|
|
57
|
+
getBoundary: g
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function x() {
|
|
61
|
+
const f = L(() => navigator && "geolocation" in navigator);
|
|
62
|
+
async function h() {
|
|
63
|
+
if (f.value)
|
|
64
|
+
return new Promise((a) => {
|
|
65
|
+
navigator.geolocation.getCurrentPosition(
|
|
66
|
+
(g) => {
|
|
67
|
+
if (Number.isNaN(g.coords.latitude) || Number.isNaN(g.coords.longitude)) {
|
|
68
|
+
a(void 0);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
a({
|
|
72
|
+
lat: g.coords.latitude,
|
|
73
|
+
lng: g.coords.longitude
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
(g) => {
|
|
77
|
+
console.log(g), a(void 0);
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
enableHighAccuracy: !0,
|
|
81
|
+
timeout: 5e3,
|
|
82
|
+
maximumAge: 0
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
canGetGeoLocation: L(() => navigator && "geolocation" in navigator),
|
|
89
|
+
getGeoLocation: h
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
N as useGeo,
|
|
94
|
+
x as useMyGeoLocation
|
|
95
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { BTDates } from './dates.ts';
|
|
2
|
+
import { BTColorizer } from './colorizer.ts';
|
|
3
|
+
|
|
4
|
+
export interface CreateGraphsOptions {
|
|
5
|
+
dates: BTDates;
|
|
6
|
+
}
|
|
7
|
+
export interface GetDataSetOptions<T> {
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
data: T[];
|
|
11
|
+
getBackgroundColor?: (item: T, ind: number, colorizer: BTColorizer) => string;
|
|
12
|
+
getLabelValue: (item: T) => string;
|
|
13
|
+
getValue: (item: T) => number | undefined;
|
|
14
|
+
groupValues?: boolean;
|
|
15
|
+
lineLabel?: string;
|
|
16
|
+
noBackgroundColor?: boolean;
|
|
17
|
+
noBorderColor?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface GetGraphDataOptions<T> {
|
|
20
|
+
chartType?: ChartType;
|
|
21
|
+
datasets: GetDataSetOptions<T>[];
|
|
22
|
+
fillGaps?: boolean;
|
|
23
|
+
labelFormat?: 'day' | 'week' | 'month' | 'year';
|
|
24
|
+
labelFormatFilter?: string;
|
|
25
|
+
labelFormatString?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface GetRawXYOptions<T> {
|
|
28
|
+
list: T[];
|
|
29
|
+
getXAxis?: (item: T) => string | number;
|
|
30
|
+
getXLabel?: (item: string | number) => string;
|
|
31
|
+
xProp?: string;
|
|
32
|
+
getYValue?: (item: T) => number;
|
|
33
|
+
getYGroupValue?: (items: T[]) => number;
|
|
34
|
+
yProp?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GetXYOptions<T> extends GetRawXYOptions<T> {
|
|
37
|
+
fillGaps?: boolean;
|
|
38
|
+
label?: string;
|
|
39
|
+
list: T[];
|
|
40
|
+
/**can be a filter or a time format */
|
|
41
|
+
xLabelFilter?: string;
|
|
42
|
+
xSpan: 'hour' | 'day' | 'week' | 'month' | 'year';
|
|
43
|
+
xSpanProp: string | ((item: T) => string);
|
|
44
|
+
}
|
|
45
|
+
export interface GetBarChartOptions<T> {
|
|
46
|
+
getBottomLabel: (item: T) => string;
|
|
47
|
+
getXYSets: GetXYSet<T>[];
|
|
48
|
+
list: T[];
|
|
49
|
+
}
|
|
50
|
+
export interface GetXYSet<T> {
|
|
51
|
+
getLabel: () => string;
|
|
52
|
+
getValue: (item: T) => number;
|
|
53
|
+
}
|
|
54
|
+
export interface GraphedData {
|
|
55
|
+
xValue: string | number;
|
|
56
|
+
xLabel?: string | number;
|
|
57
|
+
yValue: number;
|
|
58
|
+
}
|
|
59
|
+
export interface ChartJSDataPoint {
|
|
60
|
+
x: string | number;
|
|
61
|
+
y: string | number;
|
|
62
|
+
}
|
|
63
|
+
export interface ChartJSParsing {
|
|
64
|
+
yAxisKey?: string;
|
|
65
|
+
xAxisKey?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface ChartJSDataSet {
|
|
68
|
+
backgroundColor?: string | string[];
|
|
69
|
+
borderColor?: string | string[];
|
|
70
|
+
data: number[] | any[][] | ChartJSDataPoint[] | any[];
|
|
71
|
+
label?: string;
|
|
72
|
+
parsing?: ChartJSParsing;
|
|
73
|
+
}
|
|
74
|
+
export interface ChartJSData {
|
|
75
|
+
datasets: ChartJSDataSet[];
|
|
76
|
+
labels?: string[];
|
|
77
|
+
}
|
|
78
|
+
export interface ChartJSOptions {
|
|
79
|
+
responsive?: boolean;
|
|
80
|
+
parsing?: ChartJSParsing;
|
|
81
|
+
}
|
|
82
|
+
export type ChartType = 'line' | 'bar' | 'pie';
|
|
83
|
+
export interface GetChartResult {
|
|
84
|
+
chartType: ChartType;
|
|
85
|
+
data: ChartJSData;
|
|
86
|
+
options?: ChartJSOptions;
|
|
87
|
+
}
|
|
88
|
+
export interface BTGraphs {
|
|
89
|
+
getDataForChartJS: <T>(options: GetXYOptions<T>[], chartType?: ChartType, chartOptions?: any) => GetChartResult;
|
|
90
|
+
getBarChartData: <T>(options: GetBarChartOptions<T>, chartOptions?: any) => GetChartResult;
|
|
91
|
+
getGraphData: <T>(options: GetGraphDataOptions<T>, chartOptions?: any) => GetChartResult;
|
|
92
|
+
getPieData: (labels: string[], values: number[], chartOptions?: any) => GetChartResult;
|
|
93
|
+
getPieChartData: <T>(options: GetBarChartOptions<T>, chartOptions?: any) => GetChartResult;
|
|
94
|
+
getXY: <T>(options: GetXYOptions<T>) => GraphedData[];
|
|
95
|
+
getRawXY: <T>(options: GetRawXYOptions<T>) => GraphedData[];
|
|
96
|
+
}
|
|
97
|
+
export declare function useGraphs(): BTGraphs;
|
|
98
|
+
export declare function createGraphs(opt: CreateGraphsOptions): BTGraphs;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { BTDateFormat as x } from "../node_modules/bt-core-app/dist/bt-core-app.mjs";
|
|
2
|
+
import { useColorizer as v } from "./colorizer.mjs";
|
|
3
|
+
import { useDates as O } from "./dates.mjs";
|
|
4
|
+
import { useFilters as K } from "./filters.mjs";
|
|
5
|
+
import { nestedValue as $, group as I } from "./helpers.mjs";
|
|
6
|
+
import { t as J } from "../bt-core/core/node_modules/thenby/thenBy.module.mjs";
|
|
7
|
+
let D;
|
|
8
|
+
function Q() {
|
|
9
|
+
return D;
|
|
10
|
+
}
|
|
11
|
+
function U(z) {
|
|
12
|
+
const S = K();
|
|
13
|
+
function G(e, a, u) {
|
|
14
|
+
const r = v();
|
|
15
|
+
return {
|
|
16
|
+
chartType: a ?? "line",
|
|
17
|
+
data: {
|
|
18
|
+
datasets: e.map((l) => {
|
|
19
|
+
var o = k(l);
|
|
20
|
+
let n = r.getColor();
|
|
21
|
+
return {
|
|
22
|
+
backgroundColor: n,
|
|
23
|
+
borderColor: n,
|
|
24
|
+
data: o,
|
|
25
|
+
label: l.label
|
|
26
|
+
};
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
options: {
|
|
30
|
+
responsive: !0,
|
|
31
|
+
parsing: {
|
|
32
|
+
xAxisKey: "xValue",
|
|
33
|
+
yAxisKey: "yValue"
|
|
34
|
+
},
|
|
35
|
+
...u
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function T(e, a) {
|
|
40
|
+
const u = v();
|
|
41
|
+
return {
|
|
42
|
+
chartType: "bar",
|
|
43
|
+
data: {
|
|
44
|
+
datasets: e.getXYSets.map((r) => {
|
|
45
|
+
let l = u.getColor();
|
|
46
|
+
return {
|
|
47
|
+
backgroundColor: l,
|
|
48
|
+
borderColor: l,
|
|
49
|
+
data: e.list.map((o) => r.getValue(o)),
|
|
50
|
+
label: r.getLabel()
|
|
51
|
+
};
|
|
52
|
+
}),
|
|
53
|
+
labels: e.list.map((r) => e.getBottomLabel(r))
|
|
54
|
+
},
|
|
55
|
+
options: {
|
|
56
|
+
responsive: !0,
|
|
57
|
+
...a
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function Y(e, a, u) {
|
|
62
|
+
const r = v();
|
|
63
|
+
var l = {
|
|
64
|
+
chartType: "pie",
|
|
65
|
+
data: {
|
|
66
|
+
labels: e,
|
|
67
|
+
datasets: [
|
|
68
|
+
{
|
|
69
|
+
backgroundColor: a.map(() => r.getColor()),
|
|
70
|
+
data: a
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
options: {
|
|
75
|
+
responsive: !0,
|
|
76
|
+
...u
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
return l;
|
|
80
|
+
}
|
|
81
|
+
function p(e, a) {
|
|
82
|
+
const u = v();
|
|
83
|
+
return {
|
|
84
|
+
chartType: "pie",
|
|
85
|
+
data: {
|
|
86
|
+
datasets: e.getXYSets.map((r) => {
|
|
87
|
+
var l = e.list.map(() => u.getColor());
|
|
88
|
+
return {
|
|
89
|
+
backgroundColor: l,
|
|
90
|
+
borderColor: l,
|
|
91
|
+
data: e.list.map((o) => r.getValue(o)),
|
|
92
|
+
label: r.getLabel()
|
|
93
|
+
};
|
|
94
|
+
}),
|
|
95
|
+
labels: e.list.map((r) => e.getBottomLabel(r))
|
|
96
|
+
},
|
|
97
|
+
options: {
|
|
98
|
+
responsive: !0,
|
|
99
|
+
...a
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function A(e, a) {
|
|
104
|
+
var u = {
|
|
105
|
+
chartType: e.chartType ?? "line",
|
|
106
|
+
data: {
|
|
107
|
+
datasets: []
|
|
108
|
+
},
|
|
109
|
+
options: {
|
|
110
|
+
responsive: !0,
|
|
111
|
+
...a
|
|
112
|
+
}
|
|
113
|
+
}, r = O(), l = e.labelFormatFilter != null ? S.findFilter(e.labelFormatFilter) : void 0, o = v();
|
|
114
|
+
if (e.fillGaps && e.labelFormat != null) {
|
|
115
|
+
var n, h, g = {}, c = e.labelFormat, L = [];
|
|
116
|
+
c == "day" ? g = { days: 1 } : c == "week" ? g = { weeks: 1 } : c == "month" ? g = { months: 1 } : c == "year" && (g = { years: 1 }), e.datasets.forEach((t) => {
|
|
117
|
+
t.data.forEach((C) => {
|
|
118
|
+
var s = t.getLabelValue(C);
|
|
119
|
+
n ?? (n = s), h ?? (h = s), s < n && (n = s), s > h && (h = s);
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
var b = r.tzDate(n).startOf(c), i = b.toFormat(x), E = r.tzDate(h).endOf(c), X = E.toFormat(x);
|
|
123
|
+
if (i < X)
|
|
124
|
+
for (; i < X; )
|
|
125
|
+
l != null ? L.push(l(i)) : e.labelFormatString != null ? L.push(b.toFormat(e.labelFormatString)) : L.push(i), b = b.plus(g), i = b.toFormat(x);
|
|
126
|
+
}
|
|
127
|
+
return u.data.datasets = e.datasets.map((t) => {
|
|
128
|
+
let C = t.noBackgroundColor == !0 && t.noBorderColor == !0 ? void 0 : o.getColor();
|
|
129
|
+
var s = {
|
|
130
|
+
backgroundColor: t.noBackgroundColor == !0 ? void 0 : t.backgroundColor ?? C,
|
|
131
|
+
borderColor: t.noBorderColor == !0 ? void 0 : t.borderColor ?? C,
|
|
132
|
+
data: t.data.reduce((f, F) => {
|
|
133
|
+
var d = t.getLabelValue(F), y = r.tzDate(d), m = d;
|
|
134
|
+
e.labelFormat != null && (y = y.startOf(e.labelFormat)), l != null ? m = l(y.toFormat(x)) : e.labelFormatString != null && (m = y.toFormat(e.labelFormatString));
|
|
135
|
+
var V = t.getValue(F);
|
|
136
|
+
if (V != null)
|
|
137
|
+
if (t.groupValues == !0) {
|
|
138
|
+
var B = f.find((w) => w.x == m);
|
|
139
|
+
B != null ? (console.log(`merging: ${B.x}`), B.y += V) : (console.log(`adding: ${d}`), f.push({
|
|
140
|
+
x: m,
|
|
141
|
+
y: V,
|
|
142
|
+
z: d
|
|
143
|
+
}));
|
|
144
|
+
} else
|
|
145
|
+
f.push({
|
|
146
|
+
x: m,
|
|
147
|
+
y: V,
|
|
148
|
+
z: d
|
|
149
|
+
});
|
|
150
|
+
return f;
|
|
151
|
+
}, []).sort(J.firstBy((f) => f.z)),
|
|
152
|
+
label: t.lineLabel
|
|
153
|
+
};
|
|
154
|
+
return t.getBackgroundColor != null && (s.backgroundColor = t.data.map((f, F) => t.getBackgroundColor(f, F, o))), s;
|
|
155
|
+
}), u;
|
|
156
|
+
}
|
|
157
|
+
function k(e) {
|
|
158
|
+
let a = [];
|
|
159
|
+
const u = S.findFilter(e.xLabelFilter);
|
|
160
|
+
return e.getXAxis ?? (e.getXAxis = (r) => {
|
|
161
|
+
const l = typeof e.xSpanProp == "string" ? $(r, e.xSpanProp) : e.xSpanProp(r), o = u(l);
|
|
162
|
+
return o ?? z.dates.tzDate(l).startOf(e.xSpan).toFormat(e.xLabelFilter ?? "");
|
|
163
|
+
}), a = P(e), e.fillGaps && (a = a), a;
|
|
164
|
+
}
|
|
165
|
+
function P(e) {
|
|
166
|
+
if (e.getXAxis == null && e.xProp == null)
|
|
167
|
+
return [];
|
|
168
|
+
if (e.getYGroupValue == null && e.getYValue == null && e.yProp == null)
|
|
169
|
+
return [];
|
|
170
|
+
const a = I(e.list, e.getXAxis ?? e.xProp), u = [];
|
|
171
|
+
return a.forEach((r, l) => {
|
|
172
|
+
if (e.getYGroupValue != null)
|
|
173
|
+
u.push({
|
|
174
|
+
xValue: l,
|
|
175
|
+
xLabel: e.getXLabel != null ? e.getXLabel(l) : void 0,
|
|
176
|
+
yValue: e.getYGroupValue(r)
|
|
177
|
+
});
|
|
178
|
+
else {
|
|
179
|
+
const o = {
|
|
180
|
+
xValue: l,
|
|
181
|
+
xLabel: e.getXLabel != null ? e.getXLabel(l) : void 0,
|
|
182
|
+
yValue: 0
|
|
183
|
+
};
|
|
184
|
+
u.push(o), e.getYValue != null ? r.forEach((n) => {
|
|
185
|
+
o.yValue += e.getYValue(n);
|
|
186
|
+
}) : e.yProp != null && r.forEach((n) => {
|
|
187
|
+
o.yValue += n[e.yProp];
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}), u;
|
|
191
|
+
}
|
|
192
|
+
return D ?? (D = {
|
|
193
|
+
getBarChartData: T,
|
|
194
|
+
getDataForChartJS: G,
|
|
195
|
+
getGraphData: A,
|
|
196
|
+
getPieChartData: p,
|
|
197
|
+
getPieData: Y,
|
|
198
|
+
getXY: k,
|
|
199
|
+
getRawXY: P
|
|
200
|
+
}), D;
|
|
201
|
+
}
|
|
202
|
+
export {
|
|
203
|
+
U as createGraphs,
|
|
204
|
+
Q as useGraphs
|
|
205
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { BTNavigation } from './navigation.ts';
|
|
3
|
+
import { DisplayInstance } from 'vuetify';
|
|
4
|
+
|
|
5
|
+
export interface HeightOptions {
|
|
6
|
+
getStyle: (actualUsedHeight?: number) => string;
|
|
7
|
+
getUsedHeight: (inAdditionTo?: number) => number;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateHeightOptions {
|
|
10
|
+
display?: DisplayInstance;
|
|
11
|
+
navigation?: BTNavigation;
|
|
12
|
+
getUsedHeight?: (display?: DisplayInstance, navigation?: BTNavigation) => number;
|
|
13
|
+
}
|
|
14
|
+
export declare function useHeights(options?: CreateHeightOptions): HeightOptions;
|
|
15
|
+
export interface ResponsiveStyleOptions {
|
|
16
|
+
getUsedHeight: (display?: DisplayInstance, navigation?: BTNavigation) => number;
|
|
17
|
+
overflow?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function useResponsiveStyle(options: ResponsiveStyleOptions): {
|
|
20
|
+
style: import('vue').ComputedRef<string>;
|
|
21
|
+
};
|
|
22
|
+
export declare function useStyle(actualUsedHeight?: MaybeRefOrGetter<number>, ignoreCore?: boolean): {
|
|
23
|
+
style: import('vue').ComputedRef<string>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { computed as f, toValue as r } from "vue";
|
|
2
|
+
let u, l;
|
|
3
|
+
function c(e) {
|
|
4
|
+
if (u != null)
|
|
5
|
+
return u;
|
|
6
|
+
const g = (e == null ? void 0 : e.getUsedHeight) ?? (() => 0);
|
|
7
|
+
function h(v) {
|
|
8
|
+
return g(e == null ? void 0 : e.display, e == null ? void 0 : e.navigation) + (v ?? 0);
|
|
9
|
+
}
|
|
10
|
+
function a(v) {
|
|
11
|
+
return `height: calc(100vh - ${h(v)}px);`;
|
|
12
|
+
}
|
|
13
|
+
return l = e, u = {
|
|
14
|
+
getStyle: a,
|
|
15
|
+
getUsedHeight: h
|
|
16
|
+
}, u;
|
|
17
|
+
}
|
|
18
|
+
function d(e) {
|
|
19
|
+
return {
|
|
20
|
+
style: f(() => {
|
|
21
|
+
var g = !!e.overflow;
|
|
22
|
+
return u == null ? "" : g ? `height: calc(100vh - ${e.getUsedHeight(l == null ? void 0 : l.display, l == null ? void 0 : l.navigation)}px); overflow-y: auto;` : `height: calc(100vh - ${e.getUsedHeight(l == null ? void 0 : l.display, l == null ? void 0 : l.navigation)}px);`;
|
|
23
|
+
})
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function y(e, g) {
|
|
27
|
+
return {
|
|
28
|
+
style: f(() => {
|
|
29
|
+
if (u == null)
|
|
30
|
+
return "";
|
|
31
|
+
var h = r(e);
|
|
32
|
+
return `height: calc(100vh - ${g == !0 ? h : u.getUsedHeight(h)}px); overflow-y: auto;`;
|
|
33
|
+
})
|
|
34
|
+
// usedHeight: aHeight
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
c as useHeights,
|
|
39
|
+
d as useResponsiveStyle,
|
|
40
|
+
y as useStyle
|
|
41
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { StoreGetReturn, StoreGetAllReturn } from './stores.ts';
|
|
2
|
+
|
|
3
|
+
export declare const externalUses: string[];
|
|
4
|
+
export declare function getColors(): string[];
|
|
5
|
+
export declare function getOtherColors(): string[];
|
|
6
|
+
export declare function personName(firstName?: string, lastName?: string, userName?: string): string | undefined;
|
|
7
|
+
/**Pulls only props that obj2 contains and applies to obj1 */
|
|
8
|
+
export declare function pullPropsFrom(obj1: any, obj2: any, propsToIgnore?: string[], strat?: 'only-obj1-props' | 'all-obj2-props'): any;
|
|
9
|
+
export declare function toggle(obj: any, prop: string, values: any[]): void;
|
|
10
|
+
export declare function log(obj: any): void;
|
|
11
|
+
export declare function moveInArray(arr: any[], fromInd: number, toInd: number): void;
|
|
12
|
+
/**decrypts jwt token */
|
|
13
|
+
export declare function jwtDecrypt(token: string): any;
|
|
14
|
+
export declare function jwtEncrypt(payload?: any): string;
|
|
15
|
+
export declare function expectSingleReturn<T>(res: StoreGetReturn<T | T[]> | undefined): StoreGetReturn<T> | undefined;
|
|
16
|
+
export declare function expectArrayReturn<T>(res: StoreGetReturn<T | T[]> | undefined): StoreGetReturn<T[]> | undefined;
|
|
17
|
+
export declare function expectSingle<T>(res: StoreGetReturn<T | T[]> | StoreGetAllReturn<T> | undefined): T | undefined;
|
|
18
|
+
export declare function expectArray<T>(res: StoreGetReturn<T | T[]> | StoreGetAllReturn<T> | undefined): T[] | undefined;
|
|
19
|
+
export declare function sum(array: number[]): number;
|
|
20
|
+
export declare function orderBy<T>(arr: T[], prop?: keyof T | ((item: T) => boolean | number | string), asc?: true | false): T[];
|
|
21
|
+
export declare function appendUrl(originalVal?: string, additionalVal?: string, splittingChar?: string): string;
|
|
22
|
+
export declare function checkImage(url: string, onGood: (this: GlobalEventHandlers, ev: Event) => void, onBad: OnErrorEventHandler): void;
|
|
23
|
+
export declare function distinct<T>(list: T[], compareFunc?: string | ((item: T) => any)): T[];
|
|
24
|
+
export declare function groupBy<T>(array: T[], keyGetter: (item: T) => string | undefined, defaultKey: string): Map<string, T[]>;
|
|
25
|
+
export interface GroupedArray<T> {
|
|
26
|
+
key: string;
|
|
27
|
+
values: T[];
|
|
28
|
+
}
|
|
29
|
+
export declare function groupArrays<T>(array: T[], keyGetter: (item: T) => string | undefined, defaultKey: string): T[][];
|
|
30
|
+
export declare function group<T>(list: T[], keyGetter: string | ((item: T) => string | number)): Map<any, any>;
|
|
31
|
+
export declare function extensionExists(elementId?: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param value converts location to a single string and standardizes state and road names, etc.
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
export declare function getGoogleMapsLocationLine(value: any): string;
|
|
38
|
+
export declare function getLocationLine(value: any, forGoogle?: boolean): string;
|
|
39
|
+
export declare function getLocationLineOne(value: any): string;
|
|
40
|
+
export declare function getLocationLineTwo(value: any): string;
|
|
41
|
+
export declare function dropFromList<T>(arr?: T[], pred?: (item: T) => boolean): number;
|
|
42
|
+
/**remove all items with a certain predicate and add item to the first predicate or at the end of the list */
|
|
43
|
+
export declare function dropAndAddToList<T>(arr?: T[], itemToAdd?: T, pred?: (item: T) => boolean): number;
|
|
44
|
+
export declare function getImageData(url?: string, throwErrorOnFail?: boolean): Promise<unknown>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param val Converts string from camel case to every word being capitalized and spaces between
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
export declare function fromCamelCase(val?: string): string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Converts props to camel casing
|
|
53
|
+
* @param value
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
export declare function toCamelCase(value: any): any;
|
|
57
|
+
export declare function capitalizeWords(val?: string): string | undefined;
|
|
58
|
+
export declare const weekdayPairs: {
|
|
59
|
+
value: number;
|
|
60
|
+
short: string;
|
|
61
|
+
values: (string | null | undefined)[];
|
|
62
|
+
}[];
|
|
63
|
+
/**returns the sort value of the weekday csv string
|
|
64
|
+
* returns minimum if csv list
|
|
65
|
+
*/
|
|
66
|
+
export declare function weekdayValue(wkDay?: string): number;
|
|
67
|
+
/**returns the sort value of the weekday csv string
|
|
68
|
+
* returns minimum if csv list
|
|
69
|
+
*/
|
|
70
|
+
export declare function weekdayShortName(wkDay?: string): string | undefined;
|
|
71
|
+
/**whether the csv string contains the weekday
|
|
72
|
+
* returns true if either prop is undefined
|
|
73
|
+
*/
|
|
74
|
+
export declare function containsWeekday(weekdays?: string, wkDay?: string): boolean;
|
|
75
|
+
/**adds and sorts the weekday string */
|
|
76
|
+
export declare function addWeekday(weekdays?: string, day?: string): string | undefined;
|
|
77
|
+
export declare function removeWeekday(weekdays?: string, day?: string): string | undefined;
|
|
78
|
+
export declare function isArrayOfLength(val: any, l: number): boolean;
|
|
79
|
+
export declare function isLengthyArray(val: any, greaterThan?: number): boolean;
|
|
80
|
+
export declare function isNullOrEmpty(val: string | undefined): boolean;
|
|
81
|
+
export declare function isMinDate(d?: string): boolean;
|
|
82
|
+
export declare function getMinDate(): number;
|
|
83
|
+
export declare function getMinDateString(): string;
|
|
84
|
+
export declare function isSameDownToHour(firstDate?: string, secondDate?: string): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* rounds the given value to a certain number of decimal places
|
|
87
|
+
* @param v
|
|
88
|
+
* @param dPlaces
|
|
89
|
+
* @returns
|
|
90
|
+
*/
|
|
91
|
+
export declare function roundTo(val: number, dPlaces: number): number;
|
|
92
|
+
export declare function toggleCSV(value?: string | string[], tag?: string): string | undefined;
|
|
93
|
+
export declare function csvContains(value?: string, tag?: string): boolean;
|
|
94
|
+
/**copies object and all descendant properties */
|
|
95
|
+
export declare function copyDeep<T>(aObject: T): T;
|
|
96
|
+
/**copies object and returns copied object with descendant properties placed in alphabetical order */
|
|
97
|
+
export declare function copyItemByAlphabet(aObject: any): any;
|
|
98
|
+
/**whether string is contained somewhere in this value */
|
|
99
|
+
export declare function containsSearch(value?: string | number, str?: string): boolean;
|
|
100
|
+
/**must be an object. Returns a flat map of all items in the prop selector */
|
|
101
|
+
export declare function deepSelect(obj: any, propSelector?: Function): any[];
|
|
102
|
+
export declare function DataURIToBlob(dataURI: any): Blob;
|
|
103
|
+
export declare function extractErrorDescription(error: any): string;
|
|
104
|
+
export declare function getRandomColor(): string;
|
|
105
|
+
/**tests for whether string is contains in any of the given props of the given value */
|
|
106
|
+
export declare function hasSearch(value: any, str?: string, props?: string[]): boolean;
|
|
107
|
+
export declare function toCompareString(str?: string): string | null;
|
|
108
|
+
export declare function twiddleThumbs(mSec?: number): Promise<void>;
|
|
109
|
+
export declare function nestedValue(obj: any, path?: string): any;
|
|
110
|
+
export declare function spread<T>(arr: T[], chunkSize: number): (T)[][];
|
|
111
|
+
export declare function splitArray<T>(arr: T[], chunkSize: number, fill?: boolean): (T | null)[][];
|
|
112
|
+
export declare function validEmail(email?: string): boolean;
|
|
113
|
+
export declare function singularize(str: string): string;
|
|
114
|
+
export declare function compareString(str?: string): string | undefined;
|