bt-core-app 2.1.36 → 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,112 @@
|
|
|
1
|
+
import { useRoute as g, useRouter as v } from "vue-router";
|
|
2
|
+
import { inject as f } from "vue";
|
|
3
|
+
import { navigationKey as D, authKey as b, demoKey as w } from "../types.mjs";
|
|
4
|
+
import { useTabTitle as R } from "./urls.mjs";
|
|
5
|
+
import { isNullOrEmpty as C } from "./helpers.mjs";
|
|
6
|
+
let n = !1;
|
|
7
|
+
function P(e, a, l, m) {
|
|
8
|
+
var d;
|
|
9
|
+
const s = f(D), o = f(b), p = f(w), t = n;
|
|
10
|
+
n = !1;
|
|
11
|
+
const r = s.findItem(e.meta.nav ?? e.name) ?? void 0, u = e.meta.requiresAuth !== !1 || r != null && r.requiresAuth !== !1, i = e.meta.permissions ?? [], c = e.meta.subscriptions ?? [];
|
|
12
|
+
function h() {
|
|
13
|
+
document.title = `${p.isDemoing.value ? "(Demo) " : ""}${R() ?? ""}`;
|
|
14
|
+
}
|
|
15
|
+
if (e.query.isDemo === "true" && !p.isDemoing.value && p.startDemo(), h(), u)
|
|
16
|
+
if (p.isDemoing.value)
|
|
17
|
+
s.updateNavigationChange(e, a, t);
|
|
18
|
+
else if (o.tryLogin(window.location.pathname)) {
|
|
19
|
+
const y = (r == null ? void 0 : r.subscriptions) ?? [], q = [...(r == null ? void 0 : r.permissions) ?? []];
|
|
20
|
+
if (y.push(...c), q.push(...i), o.doShow(y, q, "view")) {
|
|
21
|
+
s.updateNavigationChange(e, a, t);
|
|
22
|
+
return;
|
|
23
|
+
} else
|
|
24
|
+
return { name: l };
|
|
25
|
+
} else
|
|
26
|
+
return o.login(window.location.pathname), { path: "/" };
|
|
27
|
+
else if (s.updateNavigationChange(e, a, t), e.path == "/" && o.tryLogin() && C((d = a.name) == null ? void 0 : d.toString()))
|
|
28
|
+
return { name: m };
|
|
29
|
+
}
|
|
30
|
+
function L() {
|
|
31
|
+
const e = g(), a = v();
|
|
32
|
+
function l(t) {
|
|
33
|
+
let r = {
|
|
34
|
+
...e,
|
|
35
|
+
params: t,
|
|
36
|
+
query: {
|
|
37
|
+
...e.query
|
|
38
|
+
},
|
|
39
|
+
replace: !0
|
|
40
|
+
};
|
|
41
|
+
n = !0, a.replace(r);
|
|
42
|
+
}
|
|
43
|
+
function m(t) {
|
|
44
|
+
let r = {
|
|
45
|
+
...e,
|
|
46
|
+
params: {
|
|
47
|
+
...e.params,
|
|
48
|
+
...t
|
|
49
|
+
},
|
|
50
|
+
query: {
|
|
51
|
+
...e.query
|
|
52
|
+
},
|
|
53
|
+
replace: !0
|
|
54
|
+
};
|
|
55
|
+
n = !0, a.replace(r);
|
|
56
|
+
}
|
|
57
|
+
function s(t, r) {
|
|
58
|
+
var u = e.params;
|
|
59
|
+
t != null && (u = {
|
|
60
|
+
...e.params,
|
|
61
|
+
id: t
|
|
62
|
+
});
|
|
63
|
+
let i = {
|
|
64
|
+
...e,
|
|
65
|
+
params: u,
|
|
66
|
+
query: {
|
|
67
|
+
...e.query
|
|
68
|
+
},
|
|
69
|
+
replace: r == !0
|
|
70
|
+
};
|
|
71
|
+
n = !0, a.replace(i);
|
|
72
|
+
}
|
|
73
|
+
function o(t, r) {
|
|
74
|
+
var u = e.query;
|
|
75
|
+
t != null ? u = {
|
|
76
|
+
...e.query,
|
|
77
|
+
search: t
|
|
78
|
+
} : u = void 0;
|
|
79
|
+
let i = {
|
|
80
|
+
...e,
|
|
81
|
+
params: e.params,
|
|
82
|
+
query: u,
|
|
83
|
+
replace: r == !0
|
|
84
|
+
};
|
|
85
|
+
n = !0, a.replace(i);
|
|
86
|
+
}
|
|
87
|
+
function p(t, r, u) {
|
|
88
|
+
var i = e.query;
|
|
89
|
+
t != null && r != null ? i = {
|
|
90
|
+
...e.query,
|
|
91
|
+
[t]: r
|
|
92
|
+
} : i = void 0;
|
|
93
|
+
let c = {
|
|
94
|
+
...e,
|
|
95
|
+
params: e.params,
|
|
96
|
+
query: i,
|
|
97
|
+
replace: u == !0
|
|
98
|
+
};
|
|
99
|
+
n = !0, a.replace(c);
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
replaceParams: l,
|
|
103
|
+
updateID: s,
|
|
104
|
+
updateParams: m,
|
|
105
|
+
updateQuery: p,
|
|
106
|
+
updateSearch: o
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
P as guardRoute,
|
|
111
|
+
L as useUrlUpdater
|
|
112
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface UseRulesOptions {
|
|
2
|
+
forEmail?: boolean;
|
|
3
|
+
forPassword?: boolean;
|
|
4
|
+
otherRules?: any;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const TestEmailValid: (v: any) => true | "Email must be valid";
|
|
8
|
+
export declare const TestRequired: (v: any) => true | "Required";
|
|
9
|
+
export declare function useRules(options?: UseRulesOptions): ((val: any) => boolean | string)[];
|
|
10
|
+
export declare function useRequirements(options?: UseRulesOptions): {
|
|
11
|
+
rules: ((val: any) => string | boolean)[];
|
|
12
|
+
isValid: (val: any) => boolean;
|
|
13
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isNullOrEmpty as l, validEmail as t } from "./helpers.mjs";
|
|
2
|
+
const h = (e) => l(e) || /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e) || "Email must be valid", c = (e) => !!e || "Required";
|
|
3
|
+
function d(e) {
|
|
4
|
+
const u = [];
|
|
5
|
+
return (e == null ? void 0 : e.required) == !0 && u.push((r) => !!r || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? u.push(...e.otherRules) : u.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (u.push((r) => !!r || "Password is required"), u.push((r) => r != null && r.length > 9 || "Password must be 10 or more characters"), u.push((r) => /^(.*[a-z].*)$/.test(r) || "Password must contain a lowercase letter"), u.push((r) => /^(.*[A-Z].*)$/.test(r) || "Password must contain an uppercase letter"), u.push((r) => /^(.*\d.*)$/.test(r) || "Password must contain a number"), u.push((r) => /^(.*[#?!@\$%\^\&*\)\(+=._-].*)$/.test(r) || "Password must contain a special character like # ? ! @ $ % ^ & * - +")), (e == null ? void 0 : e.forEmail) == !0 && (u.push((r) => !!r || "Email is required"), u.push((r) => t(r) || "Email must be valid")), u;
|
|
6
|
+
}
|
|
7
|
+
function i(e) {
|
|
8
|
+
const u = d(e);
|
|
9
|
+
return {
|
|
10
|
+
rules: u,
|
|
11
|
+
isValid: (r) => u.every((a) => {
|
|
12
|
+
var s = a(r);
|
|
13
|
+
return s == !0;
|
|
14
|
+
})
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
h as TestEmailValid,
|
|
19
|
+
c as TestRequired,
|
|
20
|
+
i as useRequirements,
|
|
21
|
+
d as useRules
|
|
22
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Ref, PropType, SetupContext, WatchSource } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface SetOptions<T> {
|
|
4
|
+
items: T[];
|
|
5
|
+
}
|
|
6
|
+
export declare function useSet<T>(options: SetOptions<T>): {
|
|
7
|
+
values: Set<T>;
|
|
8
|
+
add: (item: T) => void;
|
|
9
|
+
toggle: (item: T) => void;
|
|
10
|
+
remove: (item: T) => void;
|
|
11
|
+
clear: () => void;
|
|
12
|
+
updated: Ref<number, number>;
|
|
13
|
+
equals: (items: T[]) => boolean;
|
|
14
|
+
};
|
|
15
|
+
export interface SelectOptions<T, V> extends SetOptions<T> {
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
itemText?: string | ((item: T) => string);
|
|
18
|
+
itemValue?: string | ((item: T) => V);
|
|
19
|
+
cols?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function selectProps<T, V>(): {
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: PropType<V | V[]>;
|
|
24
|
+
};
|
|
25
|
+
selection: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
clearable: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
items: {
|
|
33
|
+
type: PropType<T[]>;
|
|
34
|
+
default: () => never[];
|
|
35
|
+
};
|
|
36
|
+
multiple: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
cols: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
itemText: {
|
|
45
|
+
type: PropType<string | ((item: T) => string)>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
itemValue: {
|
|
49
|
+
type: PropType<string | ((item: T) => V)>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
disabled: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare function useSelect<T, V>(options: SelectOptions<T, V>): {
|
|
58
|
+
select: (item: T) => void;
|
|
59
|
+
selected: Ref<V | V[], V | V[]>;
|
|
60
|
+
selectedStr: Ref<string, string>;
|
|
61
|
+
itemRows: (T | null)[][];
|
|
62
|
+
setItems: (items: T[]) => void;
|
|
63
|
+
setValues: (values: V[] | V) => void;
|
|
64
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
65
|
+
has: (item: T | null) => boolean;
|
|
66
|
+
values: Set<T>;
|
|
67
|
+
add: (item: T) => void;
|
|
68
|
+
toggle: (item: T) => void;
|
|
69
|
+
remove: (item: T) => void;
|
|
70
|
+
clear: () => void;
|
|
71
|
+
updated: Ref<number, number>;
|
|
72
|
+
equals: (items: T[]) => boolean;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* @interface
|
|
76
|
+
*/
|
|
77
|
+
export type UseSelectReturn<T, V> = ReturnType<typeof useSelect<T, V>>;
|
|
78
|
+
export declare function setupSelect<T, V>(options: SelectOptions<T, V>, modelValue: WatchSource<V>, { emit }: SetupContext<['update:model-value', 'change']>): UseSelectReturn<T, V>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { watch as v, ref as p, computed as V } from "vue";
|
|
2
|
+
import { splitArray as b } from "./helpers.mjs";
|
|
3
|
+
function w(o) {
|
|
4
|
+
const { items: c } = o, l = /* @__PURE__ */ new Set(), n = p(0);
|
|
5
|
+
function r() {
|
|
6
|
+
n.value = n.value + 1;
|
|
7
|
+
}
|
|
8
|
+
function a(t) {
|
|
9
|
+
c.indexOf(t) != -1 && (l.add(t), r());
|
|
10
|
+
}
|
|
11
|
+
function s(t) {
|
|
12
|
+
return l.has(t);
|
|
13
|
+
}
|
|
14
|
+
function u(t) {
|
|
15
|
+
l.delete(t) && r();
|
|
16
|
+
}
|
|
17
|
+
function i() {
|
|
18
|
+
l.clear(), r();
|
|
19
|
+
}
|
|
20
|
+
function d(t) {
|
|
21
|
+
s(t) ? u(t) : a(t);
|
|
22
|
+
}
|
|
23
|
+
function y(t) {
|
|
24
|
+
if (t.length != l.size)
|
|
25
|
+
return !1;
|
|
26
|
+
for (const m of t)
|
|
27
|
+
if (!l.has(m))
|
|
28
|
+
return !1;
|
|
29
|
+
return !0;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
values: l,
|
|
33
|
+
add: a,
|
|
34
|
+
toggle: d,
|
|
35
|
+
remove: u,
|
|
36
|
+
clear: i,
|
|
37
|
+
updated: n,
|
|
38
|
+
equals: y
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function E() {
|
|
42
|
+
return {
|
|
43
|
+
modelValue: {
|
|
44
|
+
type: [String, Number, Array]
|
|
45
|
+
},
|
|
46
|
+
selection: {
|
|
47
|
+
type: String
|
|
48
|
+
},
|
|
49
|
+
clearable: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: !1
|
|
52
|
+
},
|
|
53
|
+
items: {
|
|
54
|
+
type: Array,
|
|
55
|
+
default: () => []
|
|
56
|
+
},
|
|
57
|
+
multiple: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !1
|
|
60
|
+
},
|
|
61
|
+
cols: {
|
|
62
|
+
type: Number,
|
|
63
|
+
default: 1
|
|
64
|
+
},
|
|
65
|
+
itemText: {
|
|
66
|
+
type: [String, Function],
|
|
67
|
+
default: "text"
|
|
68
|
+
},
|
|
69
|
+
itemValue: {
|
|
70
|
+
type: [String, Function],
|
|
71
|
+
default: "value"
|
|
72
|
+
},
|
|
73
|
+
disabled: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: !1
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function B(o) {
|
|
80
|
+
const { items: c, cols: l = 1, multiple: n = !1, itemText: r = "text", itemValue: a = "value" } = o, s = w(o), u = n ? p([]) : p(null), i = p(""), d = (e) => {
|
|
81
|
+
n ? s.toggle(e) : (s.clear(), s.add(e));
|
|
82
|
+
}, y = (e) => {
|
|
83
|
+
if (e === null)
|
|
84
|
+
return !1;
|
|
85
|
+
const f = t(e);
|
|
86
|
+
return Array.isArray(u.value) ? u.value.includes(f) : u.value === f;
|
|
87
|
+
}, t = (e) => typeof a == "function" ? a(e) : a != null ? e[a] : e, m = (e) => typeof r == "function" ? r(e) : r != null ? e[r] : e, h = new Map(c.map((e) => [t(e), e])), A = (e) => {
|
|
88
|
+
s.equals(e) || (s.clear(), e.forEach((f) => d(f)));
|
|
89
|
+
}, S = (e) => {
|
|
90
|
+
e = Array.isArray(e) ? e : [e];
|
|
91
|
+
const f = e.map((g) => h.get(g)).filter((g) => !!g);
|
|
92
|
+
A(f);
|
|
93
|
+
};
|
|
94
|
+
v(s.updated, () => {
|
|
95
|
+
const e = Array.from(s.values);
|
|
96
|
+
u.value = n ? e.map(t) : t(e[0]), i.value = e.map(m).join(",");
|
|
97
|
+
});
|
|
98
|
+
const x = V(() => n ? !Array.isArray(u.value) || u.value.length == 0 : !!u.value);
|
|
99
|
+
return {
|
|
100
|
+
...s,
|
|
101
|
+
select: d,
|
|
102
|
+
selected: u,
|
|
103
|
+
selectedStr: i,
|
|
104
|
+
itemRows: b(c, l),
|
|
105
|
+
setItems: A,
|
|
106
|
+
setValues: S,
|
|
107
|
+
isEmpty: x,
|
|
108
|
+
has: y
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function F(o, c, { emit: l }) {
|
|
112
|
+
const n = B(o);
|
|
113
|
+
let r = !1;
|
|
114
|
+
return v(n.selected, () => {
|
|
115
|
+
l("update:model-value", n.selected.value), r ? l("change", n.selected.value) : r = !0;
|
|
116
|
+
}), v(
|
|
117
|
+
c,
|
|
118
|
+
(a) => {
|
|
119
|
+
a && n.setValues(a);
|
|
120
|
+
},
|
|
121
|
+
{ immediate: !0 }
|
|
122
|
+
), n;
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
E as selectProps,
|
|
126
|
+
F as setupSelect,
|
|
127
|
+
B as useSelect,
|
|
128
|
+
w as useSet
|
|
129
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ref as u, watch as c } from "vue";
|
|
2
|
+
let r = {};
|
|
3
|
+
function f(e, s) {
|
|
4
|
+
let o = r[e];
|
|
5
|
+
if (o != null)
|
|
6
|
+
return o;
|
|
7
|
+
const n = u(s);
|
|
8
|
+
function i() {
|
|
9
|
+
const t = localStorage.getItem(e);
|
|
10
|
+
t != null && (n.value = JSON.parse(t));
|
|
11
|
+
}
|
|
12
|
+
function l(t) {
|
|
13
|
+
localStorage.setItem(e, JSON.stringify(t));
|
|
14
|
+
}
|
|
15
|
+
return c(n, (t) => {
|
|
16
|
+
l(t);
|
|
17
|
+
}, { deep: !0 }), i(), r[e] = { settings: n }, r[e];
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
f as useSettingsFor
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BladeMode } from './blade.ts';
|
|
2
|
+
|
|
3
|
+
export interface StepOption<T> {
|
|
4
|
+
getLabel?: (options: GetLabelOptions<T>) => string | undefined;
|
|
5
|
+
hideActions?: boolean;
|
|
6
|
+
ignoreHistory?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
onCanFinish?: (options: StepCanOptions<T>) => boolean;
|
|
9
|
+
onCanMoveNext?: (options: StepCanOptions<T>) => boolean;
|
|
10
|
+
onCanSave?: (options: StepCanOptions<T>) => boolean;
|
|
11
|
+
onCanSkip?: (options: StepCanOptions<T>) => boolean;
|
|
12
|
+
onMoveInto?: (options: StepMoveToThisOptions<T>) => number | string | undefined;
|
|
13
|
+
onMoveNext?: (options: StepMoveToNextOptions<T>) => number | string | undefined;
|
|
14
|
+
onSaveMoveNext?: boolean | number;
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetLabelOptions<T> {
|
|
18
|
+
item: T;
|
|
19
|
+
meta: any;
|
|
20
|
+
}
|
|
21
|
+
export interface StepCanOptions<T> {
|
|
22
|
+
isChanged: boolean;
|
|
23
|
+
item: T;
|
|
24
|
+
meta: any;
|
|
25
|
+
mode: BladeMode;
|
|
26
|
+
}
|
|
27
|
+
export interface StepMoveToNextOptions<T> {
|
|
28
|
+
item: T;
|
|
29
|
+
meta: any;
|
|
30
|
+
mode: BladeMode;
|
|
31
|
+
next: number;
|
|
32
|
+
}
|
|
33
|
+
export interface StepMoveToThisOptions<T> {
|
|
34
|
+
item: T;
|
|
35
|
+
meta: any;
|
|
36
|
+
mode: BladeMode;
|
|
37
|
+
from: number;
|
|
38
|
+
thisStep: number;
|
|
39
|
+
}
|
|
40
|
+
export interface RegisterStepsOptions {
|
|
41
|
+
navBack: () => void;
|
|
42
|
+
navTo: (panelIndex: number) => void;
|
|
43
|
+
navToName: (stepName?: string) => void;
|
|
44
|
+
nextStep: () => void;
|
|
45
|
+
}
|
|
46
|
+
export declare function registerSteps(id: string, options: RegisterStepsOptions): void;
|
|
47
|
+
export declare function unregisterSteps(id: string): void;
|
|
48
|
+
export declare function useSteps(id: string): RegisterStepsOptions;
|
|
49
|
+
export declare function nextStep(id: string): void;
|
|
50
|
+
export declare function hasSteps(id: string): boolean;
|
|
51
|
+
export declare function navBack(id: string): void;
|
|
52
|
+
export declare function navTo(id: string, stepIndex: number): void;
|
|
53
|
+
export declare function navToName(id: string, stepName: string): void;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
let e = {};
|
|
2
|
+
function u(n, t) {
|
|
3
|
+
e[n] = t;
|
|
4
|
+
}
|
|
5
|
+
function a(n) {
|
|
6
|
+
delete e[n];
|
|
7
|
+
}
|
|
8
|
+
function r(n) {
|
|
9
|
+
return e[n];
|
|
10
|
+
}
|
|
11
|
+
function o(n) {
|
|
12
|
+
var t = e[n];
|
|
13
|
+
t != null && t.nextStep();
|
|
14
|
+
}
|
|
15
|
+
function s(n) {
|
|
16
|
+
return e[n] != null;
|
|
17
|
+
}
|
|
18
|
+
function f(n) {
|
|
19
|
+
var t = e[n];
|
|
20
|
+
t != null && t.navBack();
|
|
21
|
+
}
|
|
22
|
+
function l(n, t) {
|
|
23
|
+
var i = e[n];
|
|
24
|
+
i != null && i.navTo(t);
|
|
25
|
+
}
|
|
26
|
+
function c(n, t) {
|
|
27
|
+
var i = e[n];
|
|
28
|
+
i != null && i.navToName(t);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
s as hasSteps,
|
|
32
|
+
f as navBack,
|
|
33
|
+
l as navTo,
|
|
34
|
+
c as navToName,
|
|
35
|
+
o as nextStep,
|
|
36
|
+
u as registerSteps,
|
|
37
|
+
a as unregisterSteps,
|
|
38
|
+
r as useSteps
|
|
39
|
+
};
|