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,257 @@
|
|
|
1
|
+
import { isLengthyArray as q, appendUrl as S, isNullOrEmpty as v, jwtDecrypt as B } from "./helpers.mjs";
|
|
2
|
+
import m from "../bt-core/core/node_modules/luxon/src/datetime.mjs";
|
|
3
|
+
import "../bt-core/core/node_modules/luxon/src/duration.mjs";
|
|
4
|
+
import { useStorage as J } from "@vueuse/core";
|
|
5
|
+
import { ref as K, computed as L, toValue as o } from "vue";
|
|
6
|
+
import { useAuthUrl as k } from "./urls.mjs";
|
|
7
|
+
import { useApi as R } from "./api.mjs";
|
|
8
|
+
let b = "Australia/Melbourne", I;
|
|
9
|
+
const C = "auth-credentials-state";
|
|
10
|
+
function ne() {
|
|
11
|
+
return I;
|
|
12
|
+
}
|
|
13
|
+
function ue(u) {
|
|
14
|
+
const c = u.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a", D = u.tokenRefreshMinuteWindow ?? 10800;
|
|
15
|
+
let h = K(localStorage.getItem(C) ?? "");
|
|
16
|
+
h.value.length == 0 && O();
|
|
17
|
+
function O() {
|
|
18
|
+
h.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(C, h.value);
|
|
19
|
+
}
|
|
20
|
+
const i = J("auth-credentials", {});
|
|
21
|
+
u.menu != null && (u.menu.currentView.value = i.value.subscriptionCode);
|
|
22
|
+
function F(r) {
|
|
23
|
+
if (r == null)
|
|
24
|
+
return !0;
|
|
25
|
+
var e = u.getAuthItem != null ? u.getAuthItem(r) : null;
|
|
26
|
+
if (e == null)
|
|
27
|
+
return !1;
|
|
28
|
+
if (e.requiresAuth === !1)
|
|
29
|
+
return !0;
|
|
30
|
+
const t = o(i);
|
|
31
|
+
if (t.isSuspended && e.ignoreSuspension !== !0)
|
|
32
|
+
return !1;
|
|
33
|
+
if (t.isGlobalAdmin)
|
|
34
|
+
return !0;
|
|
35
|
+
if (e.permissions != null && e.permissions.length > 0) {
|
|
36
|
+
if (Array.isArray(e.permissions[0])) {
|
|
37
|
+
if (e.permissions.every((l) => l.some((a) => !d(a))))
|
|
38
|
+
return !1;
|
|
39
|
+
} else
|
|
40
|
+
for (var n = 0; n < e.permissions.length; n++)
|
|
41
|
+
if (!d(e.permissions[n]))
|
|
42
|
+
return !1;
|
|
43
|
+
}
|
|
44
|
+
return !0;
|
|
45
|
+
}
|
|
46
|
+
function d(r) {
|
|
47
|
+
const e = o(i);
|
|
48
|
+
if (e.userPermissions != null)
|
|
49
|
+
for (var t = 0; t < e.userPermissions.length; t++) {
|
|
50
|
+
var n = e.userPermissions[t].split(".");
|
|
51
|
+
if (e.userPermissions[t] == "everything.edit" || r == n[0] && n.length > 1 && n[1] == "edit")
|
|
52
|
+
return !0;
|
|
53
|
+
}
|
|
54
|
+
return !1;
|
|
55
|
+
}
|
|
56
|
+
function _(r) {
|
|
57
|
+
if (r == null)
|
|
58
|
+
return !0;
|
|
59
|
+
var e = u.getAuthItem != null ? u.getAuthItem(r) : null;
|
|
60
|
+
if (e == null)
|
|
61
|
+
return !1;
|
|
62
|
+
if (e.requiresAuth === !1)
|
|
63
|
+
return !0;
|
|
64
|
+
const t = o(i);
|
|
65
|
+
if (t.isSuspended && e.ignoreSuspension !== !0)
|
|
66
|
+
return !1;
|
|
67
|
+
if (t.isGlobalAdmin)
|
|
68
|
+
return !0;
|
|
69
|
+
if (e.permissions != null && e.permissions.length > 0) {
|
|
70
|
+
if (Array.isArray(e.permissions[0])) {
|
|
71
|
+
if (e.permissions.every((l) => l.some((a) => !g(a))))
|
|
72
|
+
return !1;
|
|
73
|
+
} else
|
|
74
|
+
for (var n = 0; n < e.permissions.length; n++)
|
|
75
|
+
if (!g(e.permissions[n]))
|
|
76
|
+
return !1;
|
|
77
|
+
}
|
|
78
|
+
return !0;
|
|
79
|
+
}
|
|
80
|
+
function g(r) {
|
|
81
|
+
const e = o(i);
|
|
82
|
+
if (e.userPermissions != null)
|
|
83
|
+
for (var t = 0; t < e.userPermissions.length; t++) {
|
|
84
|
+
var n = e.userPermissions[t].split(".");
|
|
85
|
+
if (r == n[0] || r == "everything" || e.userPermissions[t] == "everything.view" || e.userPermissions[t] == "everything.edit")
|
|
86
|
+
return !0;
|
|
87
|
+
}
|
|
88
|
+
return !1;
|
|
89
|
+
}
|
|
90
|
+
function x(r, e, t) {
|
|
91
|
+
let n = !0, l = !0;
|
|
92
|
+
return r != null && r.length > 0 && (r.some((s) => V(s)) || (l = !1)), l ? o(i).isGlobalAdmin ? !0 : (e != null && e.length > 0 && (Array.isArray(e[0]) ? t == "edit" ? e.some((s) => s.every((f) => d(f))) || (n = !1) : e.some((s) => s.every((f) => g(f))) || (n = !1) : e.forEach((s) => {
|
|
93
|
+
t == "edit" ? d(s) || (n = !1) : g(s) || (n = !1);
|
|
94
|
+
})), n) : !1;
|
|
95
|
+
}
|
|
96
|
+
function p(r, e = !1) {
|
|
97
|
+
var t = u.getAuthItem != null ? u.getAuthItem(r) : null;
|
|
98
|
+
let n = !1;
|
|
99
|
+
if (t == null)
|
|
100
|
+
return !1;
|
|
101
|
+
let l = t.subscriptions ?? [], a = t.permissions ?? [], s = x(l, a, "view");
|
|
102
|
+
return s || !e || !q(t.children) ? s : ((t == null ? void 0 : t.children) != null && t.children.forEach((f) => {
|
|
103
|
+
p(f, !0) && (n = !0);
|
|
104
|
+
}), n);
|
|
105
|
+
}
|
|
106
|
+
function w(r) {
|
|
107
|
+
return u.getAuthorizeUrl ?? (u.getAuthorizeUrl = (e, t) => {
|
|
108
|
+
const n = S(k(), `authorize?response_type=code&client_id=${u.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${t}`);
|
|
109
|
+
return e != null ? `${n}&redirect_path=${e}` : n;
|
|
110
|
+
}), u.getAuthorizeUrl != null ? u.getAuthorizeUrl(r, h.value) ?? "" : "";
|
|
111
|
+
}
|
|
112
|
+
function E(r) {
|
|
113
|
+
var t;
|
|
114
|
+
return r == null ? 0 : ((t = (u.subscriptionOptions ?? []).find((n) => n.code == r)) == null ? void 0 : t.value) ?? 0;
|
|
115
|
+
}
|
|
116
|
+
function V(r) {
|
|
117
|
+
const e = o(i);
|
|
118
|
+
if (e.subscriptionCode == null)
|
|
119
|
+
return !1;
|
|
120
|
+
if (e.subscriptionCode == r)
|
|
121
|
+
return !0;
|
|
122
|
+
const t = E(r), n = E(e.subscriptionCode);
|
|
123
|
+
return t <= n;
|
|
124
|
+
}
|
|
125
|
+
function y(r) {
|
|
126
|
+
i.value = void 0, P(), r != null && u.router != null && u.router.currentRoute.value.path != r && u.router.push({ path: r });
|
|
127
|
+
}
|
|
128
|
+
function Z(r, e) {
|
|
129
|
+
const t = o(i);
|
|
130
|
+
if (A() || !t.isLoggedIn) {
|
|
131
|
+
y();
|
|
132
|
+
let n = w(r);
|
|
133
|
+
e != null && (n.includes("?") || (n = n + "?"), n.includes("&") && (n = n + "&"), n = n + new URLSearchParams(e).toString()), window.location.href = n;
|
|
134
|
+
} else
|
|
135
|
+
!v(r) && u.router != null && u.router.push({ path: r });
|
|
136
|
+
}
|
|
137
|
+
async function G() {
|
|
138
|
+
return u.tryRefreshToken ?? (u.tryRefreshToken = async () => {
|
|
139
|
+
if (u.useTokenRefresh !== !0 || v(i.value.refreshToken) || v(i.value.refreshExpiresOn))
|
|
140
|
+
return;
|
|
141
|
+
const r = m.fromFormat(i.value.refreshExpiresOn, c), e = m.fromFormat(i.value.expiresOn, c), t = m.utc().toFormat(c), n = e.plus({ minutes: 0 - D });
|
|
142
|
+
if (!(t > r.toFormat(c)) && !(t < n.toFormat(c))) {
|
|
143
|
+
var l = S(k(), u.tokenRefreshPath ?? "refreshtoken");
|
|
144
|
+
try {
|
|
145
|
+
var a = await fetch(l, {
|
|
146
|
+
method: "POST",
|
|
147
|
+
mode: "cors",
|
|
148
|
+
cache: "no-cache",
|
|
149
|
+
headers: {
|
|
150
|
+
"Content-Type": "application/json"
|
|
151
|
+
},
|
|
152
|
+
body: JSON.stringify({ refreshToken: i.value.refreshToken })
|
|
153
|
+
});
|
|
154
|
+
if (a.ok) {
|
|
155
|
+
var s = await a.json();
|
|
156
|
+
a != null && s.data != null && T(s.data);
|
|
157
|
+
}
|
|
158
|
+
} catch {
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}), await u.tryRefreshToken(i.value);
|
|
162
|
+
}
|
|
163
|
+
async function M() {
|
|
164
|
+
return u.testToken ?? (u.testToken = async () => {
|
|
165
|
+
let r = i.value.token, e = !1;
|
|
166
|
+
const t = u.getTokenTestUrl ?? (() => S(k(), "test"));
|
|
167
|
+
return r != null && (await R().post({
|
|
168
|
+
additionalUrl: t(r),
|
|
169
|
+
data: {
|
|
170
|
+
token: r
|
|
171
|
+
}
|
|
172
|
+
})).data === !0 && (e = !0), e ? !0 : (y(u.tokenInvalidPath), !1);
|
|
173
|
+
}), await u.testToken();
|
|
174
|
+
}
|
|
175
|
+
async function $(r, e) {
|
|
176
|
+
return u.getToken ?? (u.getToken = async () => {
|
|
177
|
+
let t = r, n = e, l = u.oauthGrantType ?? "authorization_token", a = u.oauthClientID ?? "";
|
|
178
|
+
if (t == null || n == null)
|
|
179
|
+
throw new Error("Code and State required in OAuth token process");
|
|
180
|
+
if (n != h.value)
|
|
181
|
+
throw new Error("state does not match");
|
|
182
|
+
let s = "";
|
|
183
|
+
u.getTokenUrl ?? (u.getTokenUrl = () => S(k(), "token")), s = u.getTokenUrl(t, `${window.location.origin}/authentication`, l, a);
|
|
184
|
+
const f = {};
|
|
185
|
+
f.grant_type = l, f.code = t, f.redirect_uri = `${window.location.origin}/authentication`, f.client_id = a;
|
|
186
|
+
const N = await R().post({
|
|
187
|
+
additionalUrl: s,
|
|
188
|
+
data: f
|
|
189
|
+
});
|
|
190
|
+
T(N.access_token);
|
|
191
|
+
}), await u.getToken(r, e);
|
|
192
|
+
}
|
|
193
|
+
function T(r) {
|
|
194
|
+
if (r == null)
|
|
195
|
+
return;
|
|
196
|
+
const e = B(r);
|
|
197
|
+
z(e, r), u.processTokenPayload != null && u.processTokenPayload(i, e);
|
|
198
|
+
}
|
|
199
|
+
function z(r, e) {
|
|
200
|
+
var n;
|
|
201
|
+
const t = i.value;
|
|
202
|
+
t.expiresOn = r.ExpiresOn, t.isGlobalAdmin = r.IsGlobalAdmin == "True", t.isLoggedIn = !0, t.permissions = r.Permissions, t.subscriptionCode = r.Subscription, t.refreshExpiresOn = r.RefreshTokenExpiresOn, t.refreshToken = r.RefreshToken, (u == null ? void 0 : u.menu) != null && (u.menu.currentView.value = t.subscriptionCode), t.timeZone ?? (t.timeZone = u.defaultTimeZone ?? b), t.token = e, t.userID = r.UserLoginID, t.userPermissions = r.Permissions != null && r.Permissions.length > 0 ? ((n = r.Permissions) == null ? void 0 : n.split(",")) ?? [] : [];
|
|
203
|
+
}
|
|
204
|
+
function P() {
|
|
205
|
+
var r;
|
|
206
|
+
i.value ?? (i.value = {}), (r = i.value).timeZone ?? (r.timeZone = u.defaultTimeZone ?? b);
|
|
207
|
+
}
|
|
208
|
+
function W(r, e) {
|
|
209
|
+
const t = o(i);
|
|
210
|
+
if (t.isLoggedIn && A() && U()) {
|
|
211
|
+
y();
|
|
212
|
+
let n = w(r);
|
|
213
|
+
e != null && (n.includes("?") || (n = n + "?"), n.includes("&") && (n = n + "&"), n = n + new URLSearchParams(e).toString()), window.location.href = n;
|
|
214
|
+
}
|
|
215
|
+
return t.isLoggedIn;
|
|
216
|
+
}
|
|
217
|
+
function U() {
|
|
218
|
+
if (!u.useTokenRefresh || v(i.value.refreshExpiresOn) || v(i.value.refreshToken))
|
|
219
|
+
return !0;
|
|
220
|
+
const r = m.fromFormat(i.value.refreshExpiresOn, c);
|
|
221
|
+
return m.utc() > r;
|
|
222
|
+
}
|
|
223
|
+
function A() {
|
|
224
|
+
const r = o(i);
|
|
225
|
+
if (r == null || r.expiresOn == null)
|
|
226
|
+
return !0;
|
|
227
|
+
const e = m.fromFormat(r.expiresOn, c), t = m.utc();
|
|
228
|
+
return e <= t;
|
|
229
|
+
}
|
|
230
|
+
return P(), I = {
|
|
231
|
+
authState: h,
|
|
232
|
+
canEdit: F,
|
|
233
|
+
canEditPermit: d,
|
|
234
|
+
canView: _,
|
|
235
|
+
canViewPermit: g,
|
|
236
|
+
credentials: i,
|
|
237
|
+
doShow: x,
|
|
238
|
+
doShowByNav: p,
|
|
239
|
+
getAuthorizeUrl: w,
|
|
240
|
+
getToken: $,
|
|
241
|
+
isLoggedIn: L(() => i.value.isLoggedIn === !0),
|
|
242
|
+
login: Z,
|
|
243
|
+
logout: y,
|
|
244
|
+
refreshTokenExpired: U,
|
|
245
|
+
resetAuthState: O,
|
|
246
|
+
setAuth: T,
|
|
247
|
+
testToken: M,
|
|
248
|
+
timeZone: L(() => i.value.timeZone ?? u.defaultTimeZone ?? b),
|
|
249
|
+
tokenExpired: A,
|
|
250
|
+
tryLogin: W,
|
|
251
|
+
tryRefreshToken: G
|
|
252
|
+
}, I;
|
|
253
|
+
}
|
|
254
|
+
export {
|
|
255
|
+
ue as createAuth,
|
|
256
|
+
ne as useAuth
|
|
257
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { PathOptions, BTApi } from '../composables/api.ts';
|
|
3
|
+
|
|
4
|
+
export interface TaskProgressDTO {
|
|
5
|
+
actionName?: string;
|
|
6
|
+
progress?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface BackgroundTaskDTO {
|
|
9
|
+
actionName?: string;
|
|
10
|
+
isFinished: boolean;
|
|
11
|
+
progress: number;
|
|
12
|
+
version: number;
|
|
13
|
+
}
|
|
14
|
+
export interface BTBackgroundTasks {
|
|
15
|
+
getProgressFor: (actionName: string) => number | undefined;
|
|
16
|
+
refresh: () => Promise<void>;
|
|
17
|
+
startTask: (actionName: string, pathOptions?: PathOptions) => Promise<void>;
|
|
18
|
+
tasks: Ref<BackgroundTaskDTO[]>;
|
|
19
|
+
}
|
|
20
|
+
export interface BTBackgroundTask {
|
|
21
|
+
startTask: (pathOptions?: PathOptions) => Promise<void>;
|
|
22
|
+
task: ComputedRef<BackgroundTaskDTO | undefined>;
|
|
23
|
+
}
|
|
24
|
+
export interface CreateBackgroundTasksOptions {
|
|
25
|
+
api?: BTApi;
|
|
26
|
+
nav: string;
|
|
27
|
+
pollSeconds?: number;
|
|
28
|
+
}
|
|
29
|
+
export declare function useBackgroundTask(actionName: string): BTBackgroundTask;
|
|
30
|
+
export declare function useBackgroundTasks(): BTBackgroundTasks;
|
|
31
|
+
export declare function createBackgroundTasks(options: CreateBackgroundTasksOptions): BTBackgroundTasks;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { computed as p, ref as h } from "vue";
|
|
2
|
+
import { isLengthyArray as k } from "./helpers.mjs";
|
|
3
|
+
let i;
|
|
4
|
+
function y(n) {
|
|
5
|
+
return {
|
|
6
|
+
startTask: (l) => i == null ? void 0 : i.startTask(n, l),
|
|
7
|
+
task: p(() => i == null ? void 0 : i.tasks.value.find((l) => l.actionName == n))
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function F() {
|
|
11
|
+
return i;
|
|
12
|
+
}
|
|
13
|
+
function w(n) {
|
|
14
|
+
const l = (n.pollSeconds ?? 10) * 1e3, a = h([]);
|
|
15
|
+
var o = 0;
|
|
16
|
+
async function c(s, r) {
|
|
17
|
+
await n.api.post({
|
|
18
|
+
additionalUrl: "post",
|
|
19
|
+
data: { id: s },
|
|
20
|
+
nav: n.nav,
|
|
21
|
+
...r
|
|
22
|
+
});
|
|
23
|
+
var t = a.value.find((u) => u.actionName == s);
|
|
24
|
+
t != null ? t.isFinished = !1 : a.value.push({
|
|
25
|
+
actionName: s,
|
|
26
|
+
progress: 0,
|
|
27
|
+
isFinished: !1,
|
|
28
|
+
version: o
|
|
29
|
+
}), await f();
|
|
30
|
+
}
|
|
31
|
+
async function f() {
|
|
32
|
+
var d;
|
|
33
|
+
var s = [];
|
|
34
|
+
if (k(a.value) && a.value.every((e) => e.isFinished))
|
|
35
|
+
a.value = [];
|
|
36
|
+
else {
|
|
37
|
+
o++;
|
|
38
|
+
try {
|
|
39
|
+
var r = await ((d = n.api) == null ? void 0 : d.getAll({
|
|
40
|
+
additionalUrl: "/getAll",
|
|
41
|
+
nav: n.nav
|
|
42
|
+
}));
|
|
43
|
+
s = (r == null ? void 0 : r.data) ?? [];
|
|
44
|
+
for (let e = 0; e < s.length; e++) {
|
|
45
|
+
var t = s[e], u = a.value.find((v) => v.actionName == t.actionName);
|
|
46
|
+
u != null ? (u.version = o, u.progress = t.progress ?? 0) : a.value.push({
|
|
47
|
+
actionName: t.actionName,
|
|
48
|
+
progress: t.progress ?? 0,
|
|
49
|
+
isFinished: !1,
|
|
50
|
+
version: o
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
for (let e = 0; e < a.value.length; e++) {
|
|
54
|
+
const v = a.value[e];
|
|
55
|
+
v.version != o && (v.isFinished = !0);
|
|
56
|
+
}
|
|
57
|
+
} catch {
|
|
58
|
+
}
|
|
59
|
+
a.value.length > 0 && await new Promise(() => setTimeout(() => {
|
|
60
|
+
f();
|
|
61
|
+
}, l));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function g(s) {
|
|
65
|
+
var r = a.value.find((t) => t.actionName == s);
|
|
66
|
+
return r == null ? void 0 : r.progress;
|
|
67
|
+
}
|
|
68
|
+
return i = {
|
|
69
|
+
getProgressFor: g,
|
|
70
|
+
refresh: f,
|
|
71
|
+
startTask: c,
|
|
72
|
+
tasks: a
|
|
73
|
+
}, i;
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
w as createBackgroundTasks,
|
|
77
|
+
y as useBackgroundTask,
|
|
78
|
+
F as useBackgroundTasks
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { GetOptions } from './actions.ts';
|
|
2
|
+
import { ComponentPublicInstance, Ref, ComputedRef } from 'vue';
|
|
3
|
+
|
|
4
|
+
export type BladeDensity = 'default' | 'comfortable' | 'compact';
|
|
5
|
+
/**
|
|
6
|
+
Inline: merges toolbars | much more compact | hides navigation
|
|
7
|
+
Pane: same as inline except shows toolbar colors and titles, etc.
|
|
8
|
+
Page: shows navigation and page settings
|
|
9
|
+
Blade: shows blade minimize, maximize, close, and pins as a column
|
|
10
|
+
Free-moving: show blade as draggable and resizable with minimize, maximize, and close and pinning
|
|
11
|
+
*/
|
|
12
|
+
export type BladeVariant = 'page' | 'inline' | 'pane' | 'pure';
|
|
13
|
+
export type BladeMode = 'new' | 'view' | 'edit';
|
|
14
|
+
export interface UseBladeOptions {
|
|
15
|
+
blade?: Ref<ComponentPublicInstance | null>;
|
|
16
|
+
bladeGroup?: string;
|
|
17
|
+
/**a custom name for just this blade */
|
|
18
|
+
bladeName?: string;
|
|
19
|
+
bladeStartShowing?: boolean;
|
|
20
|
+
/**whether to include full functionality */
|
|
21
|
+
bladeBasic?: boolean;
|
|
22
|
+
handle?: Ref<ComponentPublicInstance | null>;
|
|
23
|
+
mobileBreakpoint?: number;
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
onUpdate?: (data: BladeData) => void;
|
|
26
|
+
useDragging?: boolean;
|
|
27
|
+
useResizing?: boolean;
|
|
28
|
+
variant?: BladeVariant;
|
|
29
|
+
}
|
|
30
|
+
export interface BTBlade<T extends GetOptions<any, any>> {
|
|
31
|
+
blades: Ref<BladeData[]>;
|
|
32
|
+
bladeData: BladeData;
|
|
33
|
+
closeBlade: (options?: CloseBladeOptions) => void;
|
|
34
|
+
closeBladeAsync: (options?: CloseBladeOptions) => Promise<void>;
|
|
35
|
+
isMobile: Ref<boolean>;
|
|
36
|
+
isShowing: ComputedRef<(bladeName?: string) => boolean>;
|
|
37
|
+
updateBlade: (data: UpdateBladeData<T>) => void;
|
|
38
|
+
variant: Ref<BladeVariant>;
|
|
39
|
+
}
|
|
40
|
+
export interface BTGlobalBlades {
|
|
41
|
+
blades: Ref<BladeData[]>;
|
|
42
|
+
closeBlade: (options?: CloseBladeOptions) => void;
|
|
43
|
+
isShowing: ComputedRef<(bladeName?: string) => boolean>;
|
|
44
|
+
updateBlade: <T, TReturn>(data: UpdateBladeData<GetOptions<T, TReturn>>) => void;
|
|
45
|
+
}
|
|
46
|
+
export interface UseGlobalBladesOptions {
|
|
47
|
+
bladeGroup?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function useGlobalBlades(options?: UseGlobalBladesOptions): {
|
|
50
|
+
blades: Ref<{
|
|
51
|
+
closeFunctions: (() => void)[];
|
|
52
|
+
updateFunctions: ((data: BladeData) => void)[];
|
|
53
|
+
bladeName: string;
|
|
54
|
+
bladeGroup: string;
|
|
55
|
+
data: any;
|
|
56
|
+
show: boolean;
|
|
57
|
+
}[], InternalBladeData[] | {
|
|
58
|
+
closeFunctions: (() => void)[];
|
|
59
|
+
updateFunctions: ((data: BladeData) => void)[];
|
|
60
|
+
bladeName: string;
|
|
61
|
+
bladeGroup: string;
|
|
62
|
+
data: any;
|
|
63
|
+
show: boolean;
|
|
64
|
+
}[]>;
|
|
65
|
+
closeBlade: (cOptions?: CloseBladeOptions) => void;
|
|
66
|
+
closeBladeAsync: (opt?: CloseBladeOptions) => Promise<void>;
|
|
67
|
+
isShowing: ComputedRef<(bladeName?: string) => boolean>;
|
|
68
|
+
updateBlade: <T, TReturn>(updateOptions: UpdateBladeData<GetOptions<T, TReturn>>) => void;
|
|
69
|
+
};
|
|
70
|
+
export declare function useBlade<T, TReturn>(options?: UseBladeOptions): BTBlade<GetOptions<T, TReturn>>;
|
|
71
|
+
export interface BladeData {
|
|
72
|
+
bladeName: string;
|
|
73
|
+
bladeGroup: string;
|
|
74
|
+
data: any;
|
|
75
|
+
show: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface InternalBladeData extends BladeData {
|
|
78
|
+
closeFunctions: Array<() => void>;
|
|
79
|
+
updateFunctions: Array<(data: BladeData) => void>;
|
|
80
|
+
}
|
|
81
|
+
export interface UpdateBladeData<T extends GetOptions<any, any>> {
|
|
82
|
+
bladeName?: string;
|
|
83
|
+
closeBladeNames?: string | string[];
|
|
84
|
+
data?: T;
|
|
85
|
+
}
|
|
86
|
+
export interface CloseBladeOptions {
|
|
87
|
+
all?: boolean;
|
|
88
|
+
except?: string | string[];
|
|
89
|
+
mode?: 'remove' | 'hide';
|
|
90
|
+
bladeName?: string | string[];
|
|
91
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { ref as g, computed as n, onMounted as z } from "vue";
|
|
2
|
+
import { useResizeObserver as S } from "@vueuse/core";
|
|
3
|
+
import { useDraggable as k } from "./draggable.mjs";
|
|
4
|
+
import { useResizable as s } from "./resizable.mjs";
|
|
5
|
+
import { twiddleThumbs as G } from "../node_modules/bt-core-app/dist/bt-core-app.mjs";
|
|
6
|
+
const r = g([]);
|
|
7
|
+
function $(e) {
|
|
8
|
+
const x = (e == null ? void 0 : e.bladeGroup) ?? "default";
|
|
9
|
+
function A(l) {
|
|
10
|
+
return r.value.findIndex((u) => u.bladeGroup == x && u.bladeName == l);
|
|
11
|
+
}
|
|
12
|
+
function c(l) {
|
|
13
|
+
if (l != null && l.all) {
|
|
14
|
+
const b = (l == null ? void 0 : l.mode) ?? "remove";
|
|
15
|
+
let d = l.except != null ? Array.isArray(l.except) ? l.except : [l.except] : [];
|
|
16
|
+
r.value.filter((m) => !d.some((v) => v == m.bladeName)).forEach((m) => {
|
|
17
|
+
b == "remove" && (m.data = {}), m.show = !1, m.closeFunctions.forEach((v) => {
|
|
18
|
+
v();
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
} else {
|
|
22
|
+
if ((l == null ? void 0 : l.bladeName) == null)
|
|
23
|
+
return;
|
|
24
|
+
var u = Array.isArray(l.bladeName) ? l.bladeName : [l.bladeName];
|
|
25
|
+
const b = (l == null ? void 0 : l.mode) ?? "remove";
|
|
26
|
+
u.forEach((d) => {
|
|
27
|
+
const m = A(d);
|
|
28
|
+
if (m >= 0) {
|
|
29
|
+
const v = r.value[m];
|
|
30
|
+
b == "remove" && (v.data = {}), v.show = !1, v.closeFunctions.forEach((E) => {
|
|
31
|
+
E();
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function y(l) {
|
|
38
|
+
if (l.bladeName == null)
|
|
39
|
+
return;
|
|
40
|
+
var u = Array.isArray(l.closeBladeNames) ? l.closeBladeNames : l.closeBladeNames != null ? [l.closeBladeNames] : [];
|
|
41
|
+
u.forEach((d) => {
|
|
42
|
+
c({
|
|
43
|
+
bladeName: d,
|
|
44
|
+
mode: "remove"
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
const b = A(l.bladeName);
|
|
48
|
+
if (b >= 0) {
|
|
49
|
+
const d = r.value[b];
|
|
50
|
+
d.data = l.data, d.show = !0, d.updateFunctions.forEach((m) => {
|
|
51
|
+
m(d);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
blades: r,
|
|
57
|
+
closeBlade: c,
|
|
58
|
+
closeBladeAsync: async (l) => {
|
|
59
|
+
c(l), await G(1e3);
|
|
60
|
+
},
|
|
61
|
+
isShowing: n(() => (l) => {
|
|
62
|
+
var u;
|
|
63
|
+
return !!((u = r.value.find((b) => b.bladeName == l)) != null && u.show);
|
|
64
|
+
}),
|
|
65
|
+
updateBlade: y
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function j(e) {
|
|
69
|
+
const x = (e == null ? void 0 : e.blade) ?? g(null), A = (e == null ? void 0 : e.bladeBasic) == !0, c = g(), y = e == null ? void 0 : e.bladeName, l = (e == null ? void 0 : e.mobileBreakpoint) ?? 600, u = (e == null ? void 0 : e.bladeGroup) ?? "default", b = (e == null ? void 0 : e.handle) ?? g(null), d = g(!1), m = g((e == null ? void 0 : e.variant) ?? "page"), { turnResizingOn: v } = s(x), { turnDraggableOn: E } = k(x, b);
|
|
70
|
+
function F(a) {
|
|
71
|
+
if (a != null && a.all) {
|
|
72
|
+
const N = (a == null ? void 0 : a.mode) ?? "remove";
|
|
73
|
+
let h = a.except != null ? Array.isArray(a.except) ? a.except : [a.except] : [];
|
|
74
|
+
r.value.filter((B) => !h.some((w) => w == B.bladeName)).forEach((B) => {
|
|
75
|
+
N == "remove" && (B.data = {}), B.show = !1, B.closeFunctions.forEach((w) => {
|
|
76
|
+
w();
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
} else {
|
|
80
|
+
if ((a == null ? void 0 : a.bladeName) == null)
|
|
81
|
+
return;
|
|
82
|
+
var f = Array.isArray(a.bladeName) ? a.bladeName : [a.bladeName];
|
|
83
|
+
const N = (a == null ? void 0 : a.mode) ?? "remove";
|
|
84
|
+
f.forEach((h) => {
|
|
85
|
+
const B = D(h);
|
|
86
|
+
if (B >= 0) {
|
|
87
|
+
const w = r.value[B];
|
|
88
|
+
N == "remove" && (w.data = {}), w.show = !1, w.closeFunctions.forEach((R) => {
|
|
89
|
+
R();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function D(a) {
|
|
96
|
+
return r.value.findIndex((f) => f.bladeGroup == u && f.bladeName == a);
|
|
97
|
+
}
|
|
98
|
+
function I(a) {
|
|
99
|
+
if (a.bladeName == null)
|
|
100
|
+
return;
|
|
101
|
+
var f = Array.isArray(a.closeBladeNames) ? a.closeBladeNames : a.closeBladeNames != null ? [a.closeBladeNames] : [];
|
|
102
|
+
f.forEach((h) => {
|
|
103
|
+
F({
|
|
104
|
+
bladeName: h,
|
|
105
|
+
mode: "remove"
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
const N = D(a.bladeName);
|
|
109
|
+
if (N >= 0) {
|
|
110
|
+
const h = r.value[N];
|
|
111
|
+
h.data = a.data, h.show = !0, h.updateFunctions.forEach((B) => {
|
|
112
|
+
B(h);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
if (S(x, (a) => {
|
|
117
|
+
const f = a[0], { width: N } = f.contentRect;
|
|
118
|
+
d.value = N < l;
|
|
119
|
+
}), y != null) {
|
|
120
|
+
const a = D(y);
|
|
121
|
+
a < 0 ? (c.value = {
|
|
122
|
+
bladeName: y,
|
|
123
|
+
bladeGroup: u,
|
|
124
|
+
closeFunctions: [],
|
|
125
|
+
updateFunctions: [],
|
|
126
|
+
data: {},
|
|
127
|
+
show: !!(e != null && e.bladeStartShowing)
|
|
128
|
+
}, A || r.value.push(c.value)) : c.value = r.value[a], (e == null ? void 0 : e.onClose) != null && c.value.closeFunctions.push(e.onClose), (e == null ? void 0 : e.onUpdate) != null && c.value.updateFunctions.push(e.onUpdate);
|
|
129
|
+
}
|
|
130
|
+
return z(() => {
|
|
131
|
+
e != null && e.useResizing && (y != null ? v(["r"]) : v(void 0)), e != null && e.useDragging && E();
|
|
132
|
+
}), {
|
|
133
|
+
blades: r,
|
|
134
|
+
bladeData: c.value ?? {
|
|
135
|
+
bladeName: "",
|
|
136
|
+
bladeGroup: "",
|
|
137
|
+
data: {},
|
|
138
|
+
show: !1
|
|
139
|
+
},
|
|
140
|
+
closeBlade: F,
|
|
141
|
+
closeBladeAsync: async (a) => {
|
|
142
|
+
F(a), await G(1e3);
|
|
143
|
+
},
|
|
144
|
+
isMobile: d,
|
|
145
|
+
isShowing: n(() => (a) => {
|
|
146
|
+
var f;
|
|
147
|
+
return !!((f = r.value.find((N) => N.bladeName == a)) != null && f.show);
|
|
148
|
+
}),
|
|
149
|
+
updateBlade: I,
|
|
150
|
+
variant: m
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export {
|
|
154
|
+
j as useBlade,
|
|
155
|
+
$ as useGlobalBlades
|
|
156
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function t() {
|
|
2
|
+
const r = [
|
|
3
|
+
{ color: "#27D81E" },
|
|
4
|
+
{ color: "#1E78D8" },
|
|
5
|
+
{ color: "#8F1ED8" },
|
|
6
|
+
{ color: "#D2D81E" },
|
|
7
|
+
{ color: "#D83F1E" },
|
|
8
|
+
{ color: "#1ED5D8" },
|
|
9
|
+
{ color: "#186A3B" },
|
|
10
|
+
{ color: "#D81E5C" },
|
|
11
|
+
{ color: "#D81EBE" }
|
|
12
|
+
];
|
|
13
|
+
let o = -1;
|
|
14
|
+
function c(n) {
|
|
15
|
+
return r[n].color;
|
|
16
|
+
}
|
|
17
|
+
function l() {
|
|
18
|
+
return o++, o == r.length && (o = 0), r[o].color;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
getColor: l,
|
|
22
|
+
getSpecificColor: c
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
t as useColorizer
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ViewVariant = 'list-item' | 'outlined' | 'plain' | 'underlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled';
|
|
2
|
+
export type EditVariant = 'outlined' | 'plain' | 'underlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled';
|
|
3
|
+
export interface CreateComponentConfigOptions {
|
|
4
|
+
editVariant?: EditVariant;
|
|
5
|
+
viewVariant?: ViewVariant;
|
|
6
|
+
}
|
|
7
|
+
export declare function useComponentConfig(): CreateComponentConfigOptions;
|
|
8
|
+
export declare function createComponentConfig(opt?: CreateComponentConfigOptions): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useConfirm(action: any, requireConfirmation?: boolean): Promise<void>;
|