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,132 @@
|
|
|
1
|
+
import { PathOptions } from './api.ts';
|
|
2
|
+
import { BladeData, BladeMode, BladeVariant } from '../composables/blade.ts';
|
|
3
|
+
import { StorageMode, StoreMode } from './stores.ts';
|
|
4
|
+
import { GetOptions, OnCanDoAsync, OnDoActionAsync, OnDoSuccessAsync, OnGetAsync, OnGetSuccessAsync, OnGetAllAsync, OnGetAllSuccessAsync, OnDoMaybeSuccessAsync } from './actions.ts';
|
|
5
|
+
|
|
6
|
+
export interface ItemProps<T, TSave, TReturn> {
|
|
7
|
+
additionalUrl?: string;
|
|
8
|
+
alwaysEditing?: boolean;
|
|
9
|
+
bladeGroup?: string;
|
|
10
|
+
bladeName?: string;
|
|
11
|
+
bladeStartShowing?: boolean;
|
|
12
|
+
canSave?: boolean;
|
|
13
|
+
closeBladeNames?: string[] | string;
|
|
14
|
+
confirmOnDelete?: boolean;
|
|
15
|
+
eager?: boolean;
|
|
16
|
+
eagerWithID?: boolean;
|
|
17
|
+
errorMsg?: string;
|
|
18
|
+
findItem?: (list?: TReturn[]) => TReturn | undefined;
|
|
19
|
+
ignorePermissions?: boolean;
|
|
20
|
+
isSingle?: boolean;
|
|
21
|
+
item?: any;
|
|
22
|
+
itemID?: string;
|
|
23
|
+
loadingMsg?: string;
|
|
24
|
+
localPredicate?: (item: any) => boolean;
|
|
25
|
+
nav?: string;
|
|
26
|
+
navSuffix?: string;
|
|
27
|
+
onBeforeEditAsync?: (item: TReturn | TReturn[] | undefined) => Promise<TReturn | TReturn[] | undefined>;
|
|
28
|
+
onBeforeViewAsync?: (item: TReturn | TReturn[] | undefined) => Promise<TReturn | TReturn[] | undefined>;
|
|
29
|
+
onCanDelete?: (item: TReturn) => boolean;
|
|
30
|
+
onCanDeleteAsync?: OnCanDoAsync<TReturn>;
|
|
31
|
+
onCanEdit?: (item: TReturn) => boolean;
|
|
32
|
+
onCanRestore?: (item: TReturn) => boolean;
|
|
33
|
+
onCanRestoreAsync?: OnCanDoAsync<TReturn>;
|
|
34
|
+
onCanSave?: (item: TReturn) => boolean;
|
|
35
|
+
onCanSaveAsync?: OnCanDoAsync<TReturn | TSave>;
|
|
36
|
+
onDeleteAsync?: OnDoActionAsync<TReturn>;
|
|
37
|
+
onDeleteSuccessAsync?: OnDoMaybeSuccessAsync<TReturn, TReturn>;
|
|
38
|
+
onError?: (err: any) => any;
|
|
39
|
+
onGetAsync?: OnGetAsync<T>;
|
|
40
|
+
onGetListAsync?: OnGetAllAsync<T>;
|
|
41
|
+
onGetListSuccessAsync?: OnGetAllSuccessAsync<T, TReturn>;
|
|
42
|
+
onGetSuccessAsync?: OnGetSuccessAsync<T, TReturn>;
|
|
43
|
+
onGetNew?: (data?: PathOptions) => TReturn;
|
|
44
|
+
onGetNewAsync?: (data?: PathOptions) => Promise<TReturn>;
|
|
45
|
+
onGetNotFound?: (data?: PathOptions) => TReturn;
|
|
46
|
+
onGetSaveAsync?: OnDoSuccessAsync<TReturn, TSave>;
|
|
47
|
+
onRefreshAsync?: (refreshOptions?: ItemRefreshOptions) => Promise<void> | undefined;
|
|
48
|
+
onRestoreAsync?: OnDoActionAsync<TReturn>;
|
|
49
|
+
onRestoreSuccessAsync?: OnDoSuccessAsync<TReturn, TReturn>;
|
|
50
|
+
onSaveAsync?: (item: TSave | TReturn) => Promise<TReturn | undefined>;
|
|
51
|
+
onSaveSuccessAsync?: OnDoSuccessAsync<TReturn, TReturn>;
|
|
52
|
+
onUpdateAsyncItem?: (asyncItem: TReturn | TReturn[] | undefined, newVersionItem: T) => void;
|
|
53
|
+
params?: any;
|
|
54
|
+
proxyID?: string;
|
|
55
|
+
proxyKey?: string;
|
|
56
|
+
queryParams?: string[] | Record<string, string>[];
|
|
57
|
+
refreshOnChange?: boolean;
|
|
58
|
+
refreshLiteToggle?: boolean;
|
|
59
|
+
refreshToggle?: boolean;
|
|
60
|
+
resetTrackerToggle?: boolean;
|
|
61
|
+
startEditing?: boolean;
|
|
62
|
+
storeMode?: StoreMode;
|
|
63
|
+
storageMode?: StorageMode;
|
|
64
|
+
trackChanges?: boolean;
|
|
65
|
+
trackIgnoreProps?: string[];
|
|
66
|
+
trackProps?: string[];
|
|
67
|
+
useBladeSrc?: boolean;
|
|
68
|
+
useRouteSrc?: boolean;
|
|
69
|
+
variant?: BladeVariant;
|
|
70
|
+
}
|
|
71
|
+
export interface ItemRefreshOptions {
|
|
72
|
+
bladeData?: BladeData;
|
|
73
|
+
deepRefresh?: boolean;
|
|
74
|
+
resetMode?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface SaveItemOptions {
|
|
77
|
+
navBack?: boolean;
|
|
78
|
+
stayEditing?: boolean;
|
|
79
|
+
updateUrl?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface UseItemOptions {
|
|
82
|
+
onGetItem?: (item: any) => void;
|
|
83
|
+
onError?: (err: any) => any;
|
|
84
|
+
storeMode?: StoreMode;
|
|
85
|
+
storageMode?: StorageMode;
|
|
86
|
+
useRouteSrc?: boolean;
|
|
87
|
+
useBladeSrc?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface ItemEvents {
|
|
90
|
+
(e: 'fetched', item: any): void;
|
|
91
|
+
(e: 'saved', item: any, isNew?: boolean): void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param props
|
|
96
|
+
* bladeName <-- props.bladeName ?? props.nav ?? 'basic'
|
|
97
|
+
* nav <-- props.nav ?? undefined
|
|
98
|
+
* @param options
|
|
99
|
+
* @returns
|
|
100
|
+
*/
|
|
101
|
+
export declare function useItem<T, TSave, TReturn>(props: ItemProps<T, TSave, TReturn>, emit?: ItemEvents, options?: UseItemOptions): {
|
|
102
|
+
blades: import('vue').Ref<BladeData[], BladeData[]>;
|
|
103
|
+
bladeData: BladeData;
|
|
104
|
+
closeBlade: (options?: import('../composables/blade.ts').CloseBladeOptions | undefined) => void;
|
|
105
|
+
closeBladeAsync: (options?: import('../composables/blade.ts').CloseBladeOptions | undefined) => Promise<void>;
|
|
106
|
+
isMobile: import('vue').Ref<boolean, boolean>;
|
|
107
|
+
isShowing: import('vue').ComputedRef<(bladeName?: string | undefined) => boolean>;
|
|
108
|
+
updateBlade: (data: import('../composables/blade.ts').UpdateBladeData<GetOptions<T, TReturn>>) => void;
|
|
109
|
+
variant: import('vue').Ref<BladeVariant, BladeVariant>;
|
|
110
|
+
asyncItem: import('vue').Ref<TReturn | TReturn[] | undefined, TReturn | TReturn[] | undefined>;
|
|
111
|
+
isChangingMode: import('vue').Ref<boolean, boolean>;
|
|
112
|
+
deleteItem: (dItem: any) => Promise<void>;
|
|
113
|
+
errorMsg: import('vue').ComputedRef<string | undefined>;
|
|
114
|
+
id: import('vue').ComputedRef<string | undefined>;
|
|
115
|
+
isChanged: import('vue').Ref<boolean, boolean>;
|
|
116
|
+
isDeletable: import('vue').ComputedRef<boolean>;
|
|
117
|
+
isEditing: import('vue').ComputedRef<boolean>;
|
|
118
|
+
isEditable: import('vue').ComputedRef<boolean>;
|
|
119
|
+
isLoading: import('vue').ComputedRef<boolean>;
|
|
120
|
+
isNew: import('vue').ComputedRef<boolean>;
|
|
121
|
+
isRestorable: import('vue').ComputedRef<boolean>;
|
|
122
|
+
isSaveable: import('vue').ComputedRef<boolean>;
|
|
123
|
+
loadingMsg: import('vue').ComputedRef<string | undefined>;
|
|
124
|
+
mode: import('vue').Ref<BladeMode, BladeMode>;
|
|
125
|
+
proxyID: import('vue').ComputedRef<string | undefined>;
|
|
126
|
+
refresh: (refreshOptions?: ItemRefreshOptions) => Promise<void>;
|
|
127
|
+
restoreItem: (dItem: any) => Promise<TReturn | undefined>;
|
|
128
|
+
runRefresh: (refreshOptions?: ItemRefreshOptions) => Promise<void>;
|
|
129
|
+
saveItem: (dItem: any, options?: SaveItemOptions) => Promise<TReturn | undefined>;
|
|
130
|
+
showError: import('vue').ShallowRef<boolean, boolean>;
|
|
131
|
+
toggleMode: () => Promise<void>;
|
|
132
|
+
};
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { ref as E, computed as f, shallowRef as se, toValue as P, watch as I, onMounted as ye } from "vue";
|
|
2
|
+
import { useStoreDefinition as me } from "./stores.mjs";
|
|
3
|
+
import { useTracker as oe } from "./track.mjs";
|
|
4
|
+
import { useRoute as we, useRouter as ge } from "vue-router";
|
|
5
|
+
import { useActions as Ae } from "./actions.mjs";
|
|
6
|
+
import { useBlade as Ie } from "./blade.mjs";
|
|
7
|
+
import { useNavBack as De, useNavigation as Se } from "./navigation.mjs";
|
|
8
|
+
import { useDialogConfirm as Ne } from "./dialog-items.mjs";
|
|
9
|
+
import { isLengthyArray as Ge } from "./helpers.mjs";
|
|
10
|
+
function ke(e, G, c) {
|
|
11
|
+
var K;
|
|
12
|
+
const j = Se(), R = (c == null ? void 0 : c.useBladeSrc) ?? e.useBladeSrc ?? !!e.bladeName, k = (c == null ? void 0 : c.useRouteSrc) ?? e.useRouteSrc ?? e.variant == "page", T = e.proxyKey ?? "proxyID", v = e.nav ?? e.bladeName, z = e.storeMode ?? (c == null ? void 0 : c.storeMode), H = e.storageMode ?? (c == null ? void 0 : c.storageMode), J = (K = j.findItem(v)) == null ? void 0 : K.deleteStrat, D = E(!1), { navBack: U } = De(), t = we(), Q = ge(), i = Ie({
|
|
13
|
+
bladeGroup: e.bladeGroup,
|
|
14
|
+
bladeName: e.bladeName,
|
|
15
|
+
onUpdate: (a) => {
|
|
16
|
+
var l;
|
|
17
|
+
w({
|
|
18
|
+
bladeData: a,
|
|
19
|
+
deepRefresh: !!e.refreshOnChange || !!((l = a == null ? void 0 : a.data) != null && l.refresh),
|
|
20
|
+
resetMode: !0
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
bladeStartShowing: e.bladeStartShowing
|
|
24
|
+
}), o = f(() => {
|
|
25
|
+
var l, n;
|
|
26
|
+
let a = e.proxyID;
|
|
27
|
+
return a == null && R && ((l = i == null ? void 0 : i.bladeData) == null ? void 0 : l.data) != null && (a = i.bladeData.data[T]), a == null && k && (a = (n = t == null ? void 0 : t.query) == null ? void 0 : n[T]), a;
|
|
28
|
+
}), u = E(), { actionErrorMsg: X, actionLoadingMsg: Y, deleteItem: Z, getItem: _, getAllItems: $, restoreItem: O, saveItem: p } = Ae({
|
|
29
|
+
nav: v,
|
|
30
|
+
onError: e.onError ?? (c == null ? void 0 : c.onError),
|
|
31
|
+
proxyID: o.value,
|
|
32
|
+
store: v != null ? me({
|
|
33
|
+
storeMode: z,
|
|
34
|
+
storageMode: H,
|
|
35
|
+
nav: v,
|
|
36
|
+
proxyID: o.value
|
|
37
|
+
}) : void 0
|
|
38
|
+
}), V = f(() => e.errorMsg ?? X.value), L = f(() => e.loadingMsg ?? Y.value), ee = f(() => L.value != null), g = f(() => {
|
|
39
|
+
var l, n, s;
|
|
40
|
+
let a = e.itemID;
|
|
41
|
+
return a == null && R && ((l = i == null ? void 0 : i.bladeData) == null ? void 0 : l.data) != null && (a = i.bladeData.data.id), a == null && k && (a = ((n = t == null ? void 0 : t.query) == null ? void 0 : n.id) ?? ((s = t == null ? void 0 : t.params) == null ? void 0 : s.id)), a;
|
|
42
|
+
}), d = E(g.value == "new" ? "new" : e.startEditing || e.alwaysEditing ? "edit" : "view"), h = se(!1), q = f(() => {
|
|
43
|
+
var l;
|
|
44
|
+
let a = e.params != null ? { ...e.params } : {};
|
|
45
|
+
return Ge(e.queryParams) && (t == null ? void 0 : t.query) != null && ((l = e.queryParams) == null || l.forEach((n) => {
|
|
46
|
+
typeof n == "string" ? (t == null ? void 0 : t.query[n]) != null && (a[n] = t == null ? void 0 : t.query[n]) : (t == null ? void 0 : t.query[n.key]) != null && (a[n.value] = t == null ? void 0 : t.query[n.key]);
|
|
47
|
+
})), a;
|
|
48
|
+
}), ae = f(() => {
|
|
49
|
+
if (d.value == "new")
|
|
50
|
+
return !1;
|
|
51
|
+
const a = P(u);
|
|
52
|
+
return a != null && e.onCanDelete != null ? e.onCanDelete(a) : (a == null ? void 0 : a.isInactive) !== !0;
|
|
53
|
+
}), le = f(() => {
|
|
54
|
+
if (d.value == "new")
|
|
55
|
+
return !1;
|
|
56
|
+
const a = P(u);
|
|
57
|
+
return e.onCanEdit != null ? e.onCanEdit(a) : !0;
|
|
58
|
+
}), te = f(() => {
|
|
59
|
+
if (d.value == "new")
|
|
60
|
+
return !1;
|
|
61
|
+
const a = P(u);
|
|
62
|
+
return e.onCanRestore != null ? e.onCanRestore(a) : (a == null ? void 0 : a.isInactive) === !0;
|
|
63
|
+
}), ne = f(() => {
|
|
64
|
+
const a = P(u);
|
|
65
|
+
return e.onCanSave != null ? e.onCanSave(a) : !0;
|
|
66
|
+
}), C = e.onUpdateAsyncItem ?? ((a, l) => {
|
|
67
|
+
l.hasOwnProperty("rowVersion") && (a.rowVersion = l.rowVersion), l.hasOwnProperty("version") && (a.version = l.version), l.hasOwnProperty("isDeleted") && (a.isDeleted = l.isDeleted), l.hasOwnProperty("isInactive") && (a.isInactive = l.isInactive), l.hasOwnProperty("id") && (a.id = l.id);
|
|
68
|
+
}), { isChanged: ue, restartTracker: S } = oe(u, {
|
|
69
|
+
useTracker: e.trackChanges,
|
|
70
|
+
propsToIgnore: e.trackIgnoreProps,
|
|
71
|
+
propsToTrack: e.trackProps
|
|
72
|
+
});
|
|
73
|
+
async function ce(a) {
|
|
74
|
+
if (e.confirmOnDelete) {
|
|
75
|
+
var l = await Ne({ text: "Are you sure you want to delete?" });
|
|
76
|
+
if (!l.isConfirmed)
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const {
|
|
80
|
+
additionalUrl: n,
|
|
81
|
+
onDeleteAsync: s,
|
|
82
|
+
onDeleteSuccessAsync: m = (A) => (J == "soft" ? (C(u.value, A), S()) : e.bladeName ? (i.closeBlade({ bladeName: e.bladeName }), e.closeBladeNames != null && i.closeBlade({ bladeName: e.closeBladeNames })) : U(!0), Promise.resolve(void 0))
|
|
83
|
+
} = { ...e };
|
|
84
|
+
await Z({
|
|
85
|
+
additionalUrl: n,
|
|
86
|
+
data: a,
|
|
87
|
+
nav: v,
|
|
88
|
+
onDeleteAsync: s,
|
|
89
|
+
onDeleteSuccessAsync: m,
|
|
90
|
+
proxyID: o.value
|
|
91
|
+
// ...params.getOptions(),
|
|
92
|
+
//...(useBladeSrc ? bladeData.value : {}),
|
|
93
|
+
//requireConfirmation: true
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function ie(a) {
|
|
97
|
+
const {
|
|
98
|
+
additionalUrl: l,
|
|
99
|
+
onRestoreAsync: n,
|
|
100
|
+
onRestoreSuccessAsync: s = (m) => (C(u.value, m), S(), m)
|
|
101
|
+
} = { ...e };
|
|
102
|
+
return O({
|
|
103
|
+
additionalUrl: l,
|
|
104
|
+
data: a,
|
|
105
|
+
nav: v,
|
|
106
|
+
onRestoreAsync: n,
|
|
107
|
+
onRestoreSuccessAsync: s,
|
|
108
|
+
proxyID: o.value
|
|
109
|
+
// ...params.getOptions(),
|
|
110
|
+
// ...(useBladeSrc ? bladeData.value : {}),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
async function de(a) {
|
|
114
|
+
e.onRefreshAsync != null ? await e.onRefreshAsync(a) : await w(a);
|
|
115
|
+
}
|
|
116
|
+
async function w(a) {
|
|
117
|
+
var s, m, A, b, B, N, M, W;
|
|
118
|
+
h.value = !1;
|
|
119
|
+
var l = e.item ?? ((m = (s = i.bladeData) == null ? void 0 : s.data) == null ? void 0 : m.data) ?? ((b = (A = a == null ? void 0 : a.bladeData) == null ? void 0 : A.data) == null ? void 0 : b.data);
|
|
120
|
+
if (a != null && a.resetMode) {
|
|
121
|
+
var n = g.value == "new" ? "new" : e.startEditing || e.alwaysEditing ? "edit" : "view";
|
|
122
|
+
n == "view" ? await x() : n == "edit" ? await F() : await fe();
|
|
123
|
+
}
|
|
124
|
+
if (l != null) {
|
|
125
|
+
let y = { data: l }, r = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(y, { refresh: (a == null ? void 0 : a.deepRefresh) ?? !1 }) : y;
|
|
126
|
+
u.value = (r == null ? void 0 : r.data) ?? void 0;
|
|
127
|
+
} else {
|
|
128
|
+
if (e.additionalUrl == null && e.nav == null) {
|
|
129
|
+
u.value = void 0;
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (e.isSingle) {
|
|
133
|
+
const y = {
|
|
134
|
+
additionalUrl: e.additionalUrl,
|
|
135
|
+
id: g.value,
|
|
136
|
+
localPredicate: e.localPredicate,
|
|
137
|
+
nav: v,
|
|
138
|
+
proxyID: o.value,
|
|
139
|
+
params: {
|
|
140
|
+
...q.value,
|
|
141
|
+
...R ? (N = (B = i.bladeData) == null ? void 0 : B.data) == null ? void 0 : N.params : {}
|
|
142
|
+
},
|
|
143
|
+
refresh: (a == null ? void 0 : a.deepRefresh) ?? !1,
|
|
144
|
+
onGetAsync: e.onGetAsync,
|
|
145
|
+
onGetSuccessAsync: e.onGetSuccessAsync
|
|
146
|
+
};
|
|
147
|
+
if (y.id === "new")
|
|
148
|
+
e.onGetNew != null ? u.value = e.onGetNew(y) : e.onGetNewAsync != null ? u.value = await e.onGetNewAsync(y) : u.value = {};
|
|
149
|
+
else if (v != null) {
|
|
150
|
+
const r = await _(y);
|
|
151
|
+
r != null && (u.value = r.data), u.value == null && e.onGetNotFound != null && (u.value = e.onGetNotFound(y));
|
|
152
|
+
}
|
|
153
|
+
} else if (v != null) {
|
|
154
|
+
const y = {
|
|
155
|
+
additionalUrl: e.additionalUrl,
|
|
156
|
+
id: g.value,
|
|
157
|
+
localPredicate: e.localPredicate,
|
|
158
|
+
nav: v,
|
|
159
|
+
proxyID: o.value,
|
|
160
|
+
params: {
|
|
161
|
+
...q.value,
|
|
162
|
+
...R ? (W = (M = i.bladeData) == null ? void 0 : M.data) == null ? void 0 : W.params : {}
|
|
163
|
+
},
|
|
164
|
+
refresh: (a == null ? void 0 : a.deepRefresh) ?? !1,
|
|
165
|
+
onGetAsync: e.onGetListAsync,
|
|
166
|
+
onGetSuccessAsync: e.onGetListSuccessAsync
|
|
167
|
+
}, r = await $(y);
|
|
168
|
+
e.findItem != null ? u.value = e.findItem(r == null ? void 0 : r.data) : u.value = (r == null ? void 0 : r.data) ?? void 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
S(), (c == null ? void 0 : c.onGetItem) != null && c.onGetItem(u.value), G && G("fetched", u.value);
|
|
172
|
+
}
|
|
173
|
+
function re(a, l) {
|
|
174
|
+
const n = a.id == null, {
|
|
175
|
+
additionalUrl: s,
|
|
176
|
+
onCanSaveAsync: m,
|
|
177
|
+
onGetSaveAsync: A,
|
|
178
|
+
onSaveAsync: b,
|
|
179
|
+
onSaveSuccessAsync: B = (N) => {
|
|
180
|
+
if (C(u.value, N), (l == null ? void 0 : l.navBack) === !0)
|
|
181
|
+
e.bladeName ? (i.closeBlade({ bladeName: e.bladeName }), e.closeBladeNames != null && i.closeBlade({ bladeName: e.closeBladeNames })) : U(n);
|
|
182
|
+
else if (S(), !(l != null && l.stayEditing) && !e.alwaysEditing && x(), l != null && l.updateUrl && n) {
|
|
183
|
+
const M = {
|
|
184
|
+
...t,
|
|
185
|
+
params: {
|
|
186
|
+
...t.params,
|
|
187
|
+
id: N.id
|
|
188
|
+
},
|
|
189
|
+
query: {},
|
|
190
|
+
replace: !0
|
|
191
|
+
};
|
|
192
|
+
Q.replace(M);
|
|
193
|
+
}
|
|
194
|
+
return G && G("saved", a, n), Promise.resolve(void 0);
|
|
195
|
+
}
|
|
196
|
+
} = { ...e };
|
|
197
|
+
return p({
|
|
198
|
+
additionalUrl: s,
|
|
199
|
+
data: a,
|
|
200
|
+
nav: v,
|
|
201
|
+
onCanSaveAsync: m,
|
|
202
|
+
onGetSaveAsync: A,
|
|
203
|
+
onSaveAsync: b,
|
|
204
|
+
onSaveSuccessAsync: B,
|
|
205
|
+
proxyID: o.value
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
async function fe() {
|
|
209
|
+
d.value = "new";
|
|
210
|
+
}
|
|
211
|
+
async function F() {
|
|
212
|
+
D.value = !0, d.value != "edit" && e.onBeforeEditAsync != null && await e.onBeforeEditAsync(u.value), d.value = "edit", D.value = !1;
|
|
213
|
+
}
|
|
214
|
+
async function x() {
|
|
215
|
+
D.value = !0, d.value != "view" && e.onBeforeViewAsync != null && await e.onBeforeViewAsync(u.value), d.value = "view", D.value = !1;
|
|
216
|
+
}
|
|
217
|
+
async function ve() {
|
|
218
|
+
d.value == "view" ? await F() : await x();
|
|
219
|
+
}
|
|
220
|
+
return I(V, (a) => {
|
|
221
|
+
h.value = a != null;
|
|
222
|
+
}), I(() => e.refreshToggle, () => {
|
|
223
|
+
w({ deepRefresh: !0 });
|
|
224
|
+
}), I(() => e.refreshLiteToggle, () => {
|
|
225
|
+
w();
|
|
226
|
+
}), I(() => e.resetTrackerToggle, () => {
|
|
227
|
+
S();
|
|
228
|
+
}), I(() => e.itemID, () => {
|
|
229
|
+
w({ deepRefresh: !!e.refreshOnChange });
|
|
230
|
+
}), I(() => e.proxyID, () => {
|
|
231
|
+
w({ deepRefresh: !!e.refreshOnChange });
|
|
232
|
+
}), ye(async () => {
|
|
233
|
+
var a;
|
|
234
|
+
(e.eager == !0 || e.eagerWithID == !0 && (g.value != null || e.localPredicate != null)) && await w({ deepRefresh: ((a = t == null ? void 0 : t.params) == null ? void 0 : a.refresh) == "true" });
|
|
235
|
+
}), {
|
|
236
|
+
asyncItem: u,
|
|
237
|
+
isChangingMode: D,
|
|
238
|
+
deleteItem: ce,
|
|
239
|
+
errorMsg: V,
|
|
240
|
+
id: g,
|
|
241
|
+
isChanged: ue,
|
|
242
|
+
isDeletable: ae,
|
|
243
|
+
isEditing: f(() => d.value == "new" || d.value == "edit"),
|
|
244
|
+
isEditable: le,
|
|
245
|
+
isLoading: ee,
|
|
246
|
+
isNew: f(() => d.value == "new"),
|
|
247
|
+
isRestorable: te,
|
|
248
|
+
isSaveable: ne,
|
|
249
|
+
loadingMsg: L,
|
|
250
|
+
mode: d,
|
|
251
|
+
proxyID: o,
|
|
252
|
+
refresh: w,
|
|
253
|
+
restoreItem: ie,
|
|
254
|
+
runRefresh: de,
|
|
255
|
+
saveItem: re,
|
|
256
|
+
showError: h,
|
|
257
|
+
toggleMode: ve,
|
|
258
|
+
...i
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
export {
|
|
262
|
+
ke as useItem
|
|
263
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|