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.
Files changed (478) hide show
  1. package/dist/_virtual/_commonjs-dynamic-modules.mjs +6 -0
  2. package/dist/_virtual/_commonjsHelpers.mjs +30 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.mjs +9 -0
  4. package/dist/_virtual/index.mjs +4 -0
  5. package/dist/_virtual/localforage.mjs +4 -0
  6. package/dist/_virtual/luxon.mjs +6 -0
  7. package/dist/_virtual/matcher.mjs +4 -0
  8. package/dist/_virtual/parser.mjs +4 -0
  9. package/dist/bt-core/core/node_modules/@datasert/cronjs-matcher/dist/index.mjs +12 -0
  10. package/dist/bt-core/core/node_modules/@datasert/cronjs-matcher/dist/matcher.mjs +220 -0
  11. package/dist/bt-core/core/node_modules/@datasert/cronjs-parser/dist/parser.mjs +186 -0
  12. package/dist/bt-core/core/node_modules/@mdi/js/mdi.mjs +70 -0
  13. package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs +1 -0
  14. package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.mjs +5210 -0
  15. package/dist/bt-core/core/node_modules/date-fns/_lib/addLeadingZeros.mjs +7 -0
  16. package/dist/bt-core/core/node_modules/date-fns/_lib/defaultOptions.mjs +7 -0
  17. package/dist/bt-core/core/node_modules/date-fns/_lib/format/formatters.mjs +517 -0
  18. package/dist/bt-core/core/node_modules/date-fns/_lib/format/lightFormatters.mjs +59 -0
  19. package/dist/bt-core/core/node_modules/date-fns/_lib/format/longFormatters.mjs +52 -0
  20. package/dist/bt-core/core/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs +18 -0
  21. package/dist/bt-core/core/node_modules/date-fns/_lib/normalizeDates.mjs +11 -0
  22. package/dist/bt-core/core/node_modules/date-fns/_lib/normalizeInterval.mjs +8 -0
  23. package/dist/bt-core/core/node_modules/date-fns/_lib/protectedTokens.mjs +21 -0
  24. package/dist/bt-core/core/node_modules/date-fns/add.mjs +20 -0
  25. package/dist/bt-core/core/node_modules/date-fns/addDays.mjs +10 -0
  26. package/dist/bt-core/core/node_modules/date-fns/addHours.mjs +9 -0
  27. package/dist/bt-core/core/node_modules/date-fns/addMilliseconds.mjs +9 -0
  28. package/dist/bt-core/core/node_modules/date-fns/addMonths.mjs +21 -0
  29. package/dist/bt-core/core/node_modules/date-fns/addQuarters.mjs +8 -0
  30. package/dist/bt-core/core/node_modules/date-fns/addYears.mjs +8 -0
  31. package/dist/bt-core/core/node_modules/date-fns/compareAsc.mjs +9 -0
  32. package/dist/bt-core/core/node_modules/date-fns/constants.mjs +9 -0
  33. package/dist/bt-core/core/node_modules/date-fns/constructFrom.mjs +8 -0
  34. package/dist/bt-core/core/node_modules/date-fns/differenceInCalendarDays.mjs +16 -0
  35. package/dist/bt-core/core/node_modules/date-fns/differenceInCalendarYears.mjs +13 -0
  36. package/dist/bt-core/core/node_modules/date-fns/differenceInYears.mjs +17 -0
  37. package/dist/bt-core/core/node_modules/date-fns/eachDayOfInterval.mjs +20 -0
  38. package/dist/bt-core/core/node_modules/date-fns/eachQuarterOfInterval.mjs +21 -0
  39. package/dist/bt-core/core/node_modules/date-fns/endOfQuarter.mjs +9 -0
  40. package/dist/bt-core/core/node_modules/date-fns/endOfWeek.mjs +11 -0
  41. package/dist/bt-core/core/node_modules/date-fns/endOfYear.mjs +9 -0
  42. package/dist/bt-core/core/node_modules/date-fns/format.mjs +60 -0
  43. package/dist/bt-core/core/node_modules/date-fns/getDay.mjs +8 -0
  44. package/dist/bt-core/core/node_modules/date-fns/getDayOfYear.mjs +11 -0
  45. package/dist/bt-core/core/node_modules/date-fns/getDaysInMonth.mjs +10 -0
  46. package/dist/bt-core/core/node_modules/date-fns/getDefaultOptions.mjs +8 -0
  47. package/dist/bt-core/core/node_modules/date-fns/getHours.mjs +8 -0
  48. package/dist/bt-core/core/node_modules/date-fns/getISODay.mjs +9 -0
  49. package/dist/bt-core/core/node_modules/date-fns/getISOWeek.mjs +12 -0
  50. package/dist/bt-core/core/node_modules/date-fns/getISOWeekYear.mjs +15 -0
  51. package/dist/bt-core/core/node_modules/date-fns/getMinutes.mjs +8 -0
  52. package/dist/bt-core/core/node_modules/date-fns/getMonth.mjs +8 -0
  53. package/dist/bt-core/core/node_modules/date-fns/getQuarter.mjs +9 -0
  54. package/dist/bt-core/core/node_modules/date-fns/getSeconds.mjs +8 -0
  55. package/dist/bt-core/core/node_modules/date-fns/getWeek.mjs +12 -0
  56. package/dist/bt-core/core/node_modules/date-fns/getWeekYear.mjs +17 -0
  57. package/dist/bt-core/core/node_modules/date-fns/getYear.mjs +8 -0
  58. package/dist/bt-core/core/node_modules/date-fns/isAfter.mjs +8 -0
  59. package/dist/bt-core/core/node_modules/date-fns/isBefore.mjs +8 -0
  60. package/dist/bt-core/core/node_modules/date-fns/isDate.mjs +7 -0
  61. package/dist/bt-core/core/node_modules/date-fns/isEqual.mjs +8 -0
  62. package/dist/bt-core/core/node_modules/date-fns/isSameQuarter.mjs +14 -0
  63. package/dist/bt-core/core/node_modules/date-fns/isValid.mjs +9 -0
  64. package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs +9 -0
  65. package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs +18 -0
  66. package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildMatchFn.mjs +31 -0
  67. package/dist/bt-core/core/node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs +17 -0
  68. package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs +70 -0
  69. package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatLong.mjs +33 -0
  70. package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs +11 -0
  71. package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/localize.mjs +155 -0
  72. package/dist/bt-core/core/node_modules/date-fns/locale/en-US/_lib/match.mjs +110 -0
  73. package/dist/bt-core/core/node_modules/date-fns/locale/en-US.mjs +21 -0
  74. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/Parser.mjs +22 -0
  75. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/Setter.mjs +41 -0
  76. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/constants.mjs +49 -0
  77. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.mjs +49 -0
  78. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/AMPMParser.mjs +49 -0
  79. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DateParser.mjs +61 -0
  80. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.mjs +51 -0
  81. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayParser.mjs +45 -0
  82. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.mjs +49 -0
  83. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/EraParser.mjs +30 -0
  84. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.mjs +21 -0
  85. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.mjs +22 -0
  86. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.mjs +32 -0
  87. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.mjs +32 -0
  88. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.mjs +33 -0
  89. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.mjs +33 -0
  90. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISODayParser.mjs +99 -0
  91. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.mjs +48 -0
  92. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.mjs +48 -0
  93. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.mjs +49 -0
  94. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.mjs +40 -0
  95. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.mjs +74 -0
  96. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.mjs +48 -0
  97. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.mjs +69 -0
  98. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/MinuteParser.mjs +32 -0
  99. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/MonthParser.mjs +71 -0
  100. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/QuarterParser.mjs +70 -0
  101. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/SecondParser.mjs +32 -0
  102. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.mjs +74 -0
  103. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.mjs +71 -0
  104. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.mjs +70 -0
  105. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.mjs +22 -0
  106. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.mjs +22 -0
  107. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers/YearParser.mjs +49 -0
  108. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/parsers.mjs +67 -0
  109. package/dist/bt-core/core/node_modules/date-fns/parse/_lib/utils.mjs +103 -0
  110. package/dist/bt-core/core/node_modules/date-fns/parse.mjs +90 -0
  111. package/dist/bt-core/core/node_modules/date-fns/set.mjs +11 -0
  112. package/dist/bt-core/core/node_modules/date-fns/setDay.mjs +12 -0
  113. package/dist/bt-core/core/node_modules/date-fns/setHours.mjs +9 -0
  114. package/dist/bt-core/core/node_modules/date-fns/setISODay.mjs +11 -0
  115. package/dist/bt-core/core/node_modules/date-fns/setISOWeek.mjs +10 -0
  116. package/dist/bt-core/core/node_modules/date-fns/setMilliseconds.mjs +9 -0
  117. package/dist/bt-core/core/node_modules/date-fns/setMinutes.mjs +9 -0
  118. package/dist/bt-core/core/node_modules/date-fns/setMonth.mjs +13 -0
  119. package/dist/bt-core/core/node_modules/date-fns/setSeconds.mjs +9 -0
  120. package/dist/bt-core/core/node_modules/date-fns/setWeek.mjs +10 -0
  121. package/dist/bt-core/core/node_modules/date-fns/setYear.mjs +10 -0
  122. package/dist/bt-core/core/node_modules/date-fns/startOfDay.mjs +9 -0
  123. package/dist/bt-core/core/node_modules/date-fns/startOfISOWeek.mjs +8 -0
  124. package/dist/bt-core/core/node_modules/date-fns/startOfISOWeekYear.mjs +11 -0
  125. package/dist/bt-core/core/node_modules/date-fns/startOfMonth.mjs +9 -0
  126. package/dist/bt-core/core/node_modules/date-fns/startOfQuarter.mjs +9 -0
  127. package/dist/bt-core/core/node_modules/date-fns/startOfWeek.mjs +11 -0
  128. package/dist/bt-core/core/node_modules/date-fns/startOfWeekYear.mjs +13 -0
  129. package/dist/bt-core/core/node_modules/date-fns/startOfYear.mjs +9 -0
  130. package/dist/bt-core/core/node_modules/date-fns/sub.mjs +19 -0
  131. package/dist/bt-core/core/node_modules/date-fns/subDays.mjs +8 -0
  132. package/dist/bt-core/core/node_modules/date-fns/subMonths.mjs +8 -0
  133. package/dist/bt-core/core/node_modules/date-fns/subYears.mjs +8 -0
  134. package/dist/bt-core/core/node_modules/date-fns/toDate.mjs +8 -0
  135. package/dist/bt-core/core/node_modules/date-fns/transpose.mjs +18 -0
  136. package/dist/bt-core/core/node_modules/localforage/dist/localforage.mjs +1454 -0
  137. package/dist/bt-core/core/node_modules/luxon/src/datetime.mjs +1855 -0
  138. package/dist/bt-core/core/node_modules/luxon/src/duration.mjs +753 -0
  139. package/dist/bt-core/core/node_modules/luxon/src/errors.mjs +40 -0
  140. package/dist/bt-core/core/node_modules/luxon/src/impl/conversions.mjs +92 -0
  141. package/dist/bt-core/core/node_modules/luxon/src/impl/diff.mjs +36 -0
  142. package/dist/bt-core/core/node_modules/luxon/src/impl/digits.mjs +77 -0
  143. package/dist/bt-core/core/node_modules/luxon/src/impl/english.mjs +138 -0
  144. package/dist/bt-core/core/node_modules/luxon/src/impl/formats.mjs +150 -0
  145. package/dist/bt-core/core/node_modules/luxon/src/impl/formatter.mjs +258 -0
  146. package/dist/bt-core/core/node_modules/luxon/src/impl/invalid.mjs +11 -0
  147. package/dist/bt-core/core/node_modules/luxon/src/impl/locale.mjs +294 -0
  148. package/dist/bt-core/core/node_modules/luxon/src/impl/regexParser.mjs +202 -0
  149. package/dist/bt-core/core/node_modules/luxon/src/impl/tokenParser.mjs +329 -0
  150. package/dist/bt-core/core/node_modules/luxon/src/impl/util.mjs +220 -0
  151. package/dist/bt-core/core/node_modules/luxon/src/impl/zoneUtil.mjs +20 -0
  152. package/dist/bt-core/core/node_modules/luxon/src/info.mjs +180 -0
  153. package/dist/bt-core/core/node_modules/luxon/src/interval.mjs +481 -0
  154. package/dist/bt-core/core/node_modules/luxon/src/luxon.mjs +24 -0
  155. package/dist/bt-core/core/node_modules/luxon/src/settings.mjs +150 -0
  156. package/dist/bt-core/core/node_modules/luxon/src/zone.mjs +88 -0
  157. package/dist/bt-core/core/node_modules/luxon/src/zones/IANAZone.mjs +183 -0
  158. package/dist/bt-core/core/node_modules/luxon/src/zones/fixedOffsetZone.mjs +125 -0
  159. package/dist/bt-core/core/node_modules/luxon/src/zones/invalidZone.mjs +41 -0
  160. package/dist/bt-core/core/node_modules/luxon/src/zones/systemZone.mjs +47 -0
  161. package/dist/bt-core/core/node_modules/merge-images/dist/index.es2015.mjs +47 -0
  162. package/dist/bt-core/core/node_modules/signature_pad/dist/signature_pad.mjs +248 -0
  163. package/dist/bt-core/core/node_modules/thenby/thenBy.module.mjs +38 -0
  164. package/dist/bt-core/core/node_modules/vue-picture-cropper/lib/index.mjs +1643 -0
  165. package/dist/bt-core/core/node_modules/vue-signature-pad/dist/vue-signature-pad.esm.mjs +173 -0
  166. package/dist/bt-core/core/node_modules/vue-use-spring/dist/index.mjs +204 -0
  167. package/dist/bt-core/core/node_modules/vuetify/lib/composables/defaults.mjs +61 -0
  168. package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +82 -0
  169. package/dist/bt-core/core/node_modules/vuetify/lib/iconsets/mdi-svg.mjs +74 -0
  170. package/dist/bt-core/core/node_modules/vuetify/lib/util/colors.mjs +322 -0
  171. package/dist/bt-core/core/node_modules/vuetify/lib/util/console.mjs +7 -0
  172. package/dist/bt-core/core/node_modules/vuetify/lib/util/defineComponent.mjs +34 -0
  173. package/dist/bt-core/core/node_modules/vuetify/lib/util/getCurrentInstance.mjs +10 -0
  174. package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +44 -0
  175. package/dist/bt-core/core/node_modules/vuetify/lib/util/injectSelf.mjs +12 -0
  176. package/dist/bt-core/core/node_modules/vuetify/lib/util/propsFactory.mjs +14 -0
  177. package/dist/components/BT-Assistant-Menu.vue.d.ts +19 -0
  178. package/dist/components/BT-Assistant-Menu.vue.mjs +464 -0
  179. package/dist/components/BT-Assistant-Menu.vue2.mjs +4 -0
  180. package/dist/components/BT-Avatar.vue.d.ts +16 -0
  181. package/dist/components/BT-Avatar.vue.mjs +41 -0
  182. package/dist/components/BT-Avatar.vue2.mjs +4 -0
  183. package/dist/components/BT-Background-Task.vue.d.ts +61 -0
  184. package/dist/components/BT-Background-Task.vue.mjs +89 -0
  185. package/dist/components/BT-Background-Task.vue2.mjs +4 -0
  186. package/dist/components/BT-Blade-Item.vue.d.ts +578 -0
  187. package/dist/components/BT-Blade-Item.vue.mjs +441 -0
  188. package/dist/components/BT-Blade-Item.vue2.mjs +4 -0
  189. package/dist/components/BT-Blade-Items.vue.d.ts +2358 -0
  190. package/dist/components/BT-Blade-Items.vue.mjs +7 -0
  191. package/dist/components/BT-Blade-Items.vue2.mjs +943 -0
  192. package/dist/components/BT-Blade-Items.vue3.mjs +1 -0
  193. package/dist/components/BT-Blade-Steps.vue.d.ts +1740 -0
  194. package/dist/components/BT-Blade-Steps.vue.mjs +7 -0
  195. package/dist/components/BT-Blade-Steps.vue2.mjs +1305 -0
  196. package/dist/components/BT-Blade-Steps.vue3.mjs +1 -0
  197. package/dist/components/BT-Blade.vue.d.ts +109 -0
  198. package/dist/components/BT-Blade.vue.mjs +268 -0
  199. package/dist/components/BT-Blade.vue2.mjs +4 -0
  200. package/dist/components/BT-Btn.vue.d.ts +47 -0
  201. package/dist/components/BT-Btn.vue.mjs +43 -0
  202. package/dist/components/BT-Btn.vue2.mjs +4 -0
  203. package/dist/components/BT-Camera-Overlay.vue.d.ts +57 -0
  204. package/dist/components/BT-Camera-Overlay.vue.mjs +173 -0
  205. package/dist/components/BT-Camera-Overlay.vue2.mjs +4 -0
  206. package/dist/components/BT-Col.vue.d.ts +49 -0
  207. package/dist/components/BT-Col.vue.mjs +33 -0
  208. package/dist/components/BT-Col.vue2.mjs +4 -0
  209. package/dist/components/BT-Color-Picker-Menu.vue.d.ts +23 -0
  210. package/dist/components/BT-Color-Picker-Menu.vue.mjs +63 -0
  211. package/dist/components/BT-Color-Picker-Menu.vue2.mjs +4 -0
  212. package/dist/components/BT-Cosmetics-Menu.vue.d.ts +14 -0
  213. package/dist/components/BT-Cosmetics-Menu.vue.mjs +211 -0
  214. package/dist/components/BT-Cosmetics-Menu.vue2.mjs +4 -0
  215. package/dist/components/BT-Cron-Span.vue.d.ts +21 -0
  216. package/dist/components/BT-Cron-Span.vue.mjs +66 -0
  217. package/dist/components/BT-Cron-Span.vue2.mjs +4 -0
  218. package/dist/components/BT-Cron.vue.d.ts +37 -0
  219. package/dist/components/BT-Cron.vue.mjs +538 -0
  220. package/dist/components/BT-Cron.vue2.mjs +4 -0
  221. package/dist/components/BT-Date-Select.vue.d.ts +46 -0
  222. package/dist/components/BT-Date-Select.vue.mjs +71 -0
  223. package/dist/components/BT-Date-Select.vue2.mjs +4 -0
  224. package/dist/components/BT-Date.vue.d.ts +53 -0
  225. package/dist/components/BT-Date.vue.mjs +55 -0
  226. package/dist/components/BT-Date.vue2.mjs +4 -0
  227. package/dist/components/BT-Demo-Profile-Select.vue.d.ts +17 -0
  228. package/dist/components/BT-Demo-Profile-Select.vue.mjs +52 -0
  229. package/dist/components/BT-Demo-Profile-Select.vue2.mjs +4 -0
  230. package/dist/components/BT-Dialog-Confirm.vue.d.ts +2 -0
  231. package/dist/components/BT-Dialog-Confirm.vue.mjs +63 -0
  232. package/dist/components/BT-Dialog-Confirm.vue2.mjs +4 -0
  233. package/dist/components/BT-Dialog-Date.vue.d.ts +2 -0
  234. package/dist/components/BT-Dialog-Date.vue.mjs +79 -0
  235. package/dist/components/BT-Dialog-Date.vue2.mjs +4 -0
  236. package/dist/components/BT-Dialog-Number.vue.d.ts +2 -0
  237. package/dist/components/BT-Dialog-Number.vue.mjs +178 -0
  238. package/dist/components/BT-Dialog-Number.vue2.mjs +4 -0
  239. package/dist/components/BT-Dialog-Select.vue.d.ts +2 -0
  240. package/dist/components/BT-Dialog-Select.vue.mjs +235 -0
  241. package/dist/components/BT-Dialog-Select.vue2.mjs +4 -0
  242. package/dist/components/BT-Divider.vue.d.ts +24 -0
  243. package/dist/components/BT-Divider.vue.mjs +31 -0
  244. package/dist/components/BT-Divider.vue2.mjs +4 -0
  245. package/dist/components/BT-Drag-Counter.vue.d.ts +114 -0
  246. package/dist/components/BT-Drag-Counter.vue.mjs +7 -0
  247. package/dist/components/BT-Drag-Counter.vue2.mjs +156 -0
  248. package/dist/components/BT-Drag-Counter.vue3.mjs +1 -0
  249. package/dist/components/BT-Entity.vue.d.ts +82 -0
  250. package/dist/components/BT-Entity.vue.mjs +172 -0
  251. package/dist/components/BT-Entity.vue2.mjs +4 -0
  252. package/dist/components/BT-Error.vue.d.ts +15 -0
  253. package/dist/components/BT-Error.vue.mjs +35 -0
  254. package/dist/components/BT-Error.vue2.mjs +4 -0
  255. package/dist/components/BT-Field-Checkbox.vue.d.ts +57 -0
  256. package/dist/components/BT-Field-Checkbox.vue.mjs +61 -0
  257. package/dist/components/BT-Field-Checkbox.vue2.mjs +4 -0
  258. package/dist/components/BT-Field-Date.vue.d.ts +69 -0
  259. package/dist/components/BT-Field-Date.vue.mjs +120 -0
  260. package/dist/components/BT-Field-Date.vue2.mjs +4 -0
  261. package/dist/components/BT-Field-Entity.vue.d.ts +48 -0
  262. package/dist/components/BT-Field-Entity.vue.mjs +55 -0
  263. package/dist/components/BT-Field-Entity.vue2.mjs +4 -0
  264. package/dist/components/BT-Field-Select-Simple.vue.d.ts +55 -0
  265. package/dist/components/BT-Field-Select-Simple.vue.mjs +52 -0
  266. package/dist/components/BT-Field-Select-Simple.vue2.mjs +4 -0
  267. package/dist/components/BT-Field-Select.vue.d.ts +70 -0
  268. package/dist/components/BT-Field-Select.vue.mjs +60 -0
  269. package/dist/components/BT-Field-Select.vue2.mjs +4 -0
  270. package/dist/components/BT-Field-String.vue.d.ts +57 -0
  271. package/dist/components/BT-Field-String.vue.mjs +87 -0
  272. package/dist/components/BT-Field-String.vue2.mjs +4 -0
  273. package/dist/components/BT-Field-Switch.vue.d.ts +51 -0
  274. package/dist/components/BT-Field-Switch.vue.mjs +64 -0
  275. package/dist/components/BT-Field-Switch.vue2.mjs +4 -0
  276. package/dist/components/BT-Field-Tags.vue.d.ts +53 -0
  277. package/dist/components/BT-Field-Tags.vue.mjs +80 -0
  278. package/dist/components/BT-Field-Tags.vue2.mjs +4 -0
  279. package/dist/components/BT-Field-Textarea.vue.d.ts +53 -0
  280. package/dist/components/BT-Field-Textarea.vue.mjs +66 -0
  281. package/dist/components/BT-Field-Textarea.vue2.mjs +4 -0
  282. package/dist/components/BT-Field-Trigger.vue.d.ts +113 -0
  283. package/dist/components/BT-Field-Trigger.vue.mjs +368 -0
  284. package/dist/components/BT-Field-Trigger.vue2.mjs +4 -0
  285. package/dist/components/BT-Field.vue.d.ts +49 -0
  286. package/dist/components/BT-Field.vue.mjs +59 -0
  287. package/dist/components/BT-Field.vue2.mjs +4 -0
  288. package/dist/components/BT-Form-Builder.vue.d.ts +74 -0
  289. package/dist/components/BT-Form-Builder.vue.mjs +762 -0
  290. package/dist/components/BT-Form-Builder.vue2.mjs +4 -0
  291. package/dist/components/BT-Form-Field.vue.d.ts +41 -0
  292. package/dist/components/BT-Form-Field.vue.mjs +186 -0
  293. package/dist/components/BT-Form-Field.vue2.mjs +4 -0
  294. package/dist/components/BT-Form.vue.d.ts +95 -0
  295. package/dist/components/BT-Form.vue.mjs +635 -0
  296. package/dist/components/BT-Form.vue2.mjs +4 -0
  297. package/dist/components/BT-Header-Option.vue.d.ts +18 -0
  298. package/dist/components/BT-Header-Option.vue.mjs +62 -0
  299. package/dist/components/BT-Header-Option.vue2.mjs +4 -0
  300. package/dist/components/BT-Image-Select.vue.d.ts +71 -0
  301. package/dist/components/BT-Image-Select.vue.mjs +219 -0
  302. package/dist/components/BT-Image-Select.vue2.mjs +4 -0
  303. package/dist/components/BT-Json.vue.d.ts +6 -0
  304. package/dist/components/BT-Json.vue.mjs +38 -0
  305. package/dist/components/BT-Json.vue2.mjs +1 -0
  306. package/dist/components/BT-Json.vue3.mjs +5 -0
  307. package/dist/components/BT-Loader.vue.d.ts +6 -0
  308. package/dist/components/BT-Loader.vue.mjs +37 -0
  309. package/dist/components/BT-Loader.vue2.mjs +4 -0
  310. package/dist/components/BT-Nav-Sidebar.vue.d.ts +25 -0
  311. package/dist/components/BT-Nav-Sidebar.vue.mjs +138 -0
  312. package/dist/components/BT-Nav-Sidebar.vue2.mjs +4 -0
  313. package/dist/components/BT-Number.vue.d.ts +23 -0
  314. package/dist/components/BT-Number.vue.mjs +7 -0
  315. package/dist/components/BT-Number.vue2.mjs +43 -0
  316. package/dist/components/BT-Number.vue3.mjs +1 -0
  317. package/dist/components/BT-Numpad.vue.d.ts +68 -0
  318. package/dist/components/BT-Numpad.vue.mjs +191 -0
  319. package/dist/components/BT-Numpad.vue2.mjs +4 -0
  320. package/dist/components/BT-Select-Inline.vue.d.ts +121 -0
  321. package/dist/components/BT-Select-Inline.vue.mjs +74 -0
  322. package/dist/components/BT-Select-Inline.vue2.mjs +24 -0
  323. package/dist/components/BT-Select-Inline.vue3.mjs +1 -0
  324. package/dist/components/BT-Select-List-Box.vue.d.ts +137 -0
  325. package/dist/components/BT-Select-List-Box.vue.mjs +414 -0
  326. package/dist/components/BT-Select-List-Box.vue2.mjs +4 -0
  327. package/dist/components/BT-Select-Simple.vue.d.ts +58 -0
  328. package/dist/components/BT-Select-Simple.vue.mjs +126 -0
  329. package/dist/components/BT-Select-Simple.vue2.mjs +4 -0
  330. package/dist/components/BT-Select.vue.d.ts +73 -0
  331. package/dist/components/BT-Select.vue.mjs +138 -0
  332. package/dist/components/BT-Select.vue2.mjs +4 -0
  333. package/dist/components/BT-Signature-Overlay.vue.d.ts +65 -0
  334. package/dist/components/BT-Signature-Overlay.vue.mjs +146 -0
  335. package/dist/components/BT-Signature-Overlay.vue2.mjs +4 -0
  336. package/dist/components/BT-Signature.vue.d.ts +70 -0
  337. package/dist/components/BT-Signature.vue.mjs +155 -0
  338. package/dist/components/BT-Signature.vue2.mjs +4 -0
  339. package/dist/components/BT-Slider.vue.d.ts +37 -0
  340. package/dist/components/BT-Slider.vue.mjs +126 -0
  341. package/dist/components/BT-Slider.vue2.mjs +4 -0
  342. package/dist/components/BT-Span.vue.d.ts +19 -0
  343. package/dist/components/BT-Span.vue.mjs +23 -0
  344. package/dist/components/BT-Span.vue2.mjs +4 -0
  345. package/dist/components/BT-Square-Check.vue.d.ts +104 -0
  346. package/dist/components/BT-Square-Check.vue.mjs +98 -0
  347. package/dist/components/BT-Square-Check.vue2.mjs +4 -0
  348. package/dist/components/BT-Status-Item.vue.d.ts +45 -0
  349. package/dist/components/BT-Status-Item.vue.mjs +51 -0
  350. package/dist/components/BT-Status-Item.vue2.mjs +4 -0
  351. package/dist/components/BT-Tags.vue.d.ts +19 -0
  352. package/dist/components/BT-Tags.vue.mjs +32 -0
  353. package/dist/components/BT-Tags.vue2.mjs +4 -0
  354. package/dist/components/BT-Tour.vue.d.ts +43 -0
  355. package/dist/components/BT-Tour.vue.mjs +78 -0
  356. package/dist/components/BT-Tour.vue2.mjs +4 -0
  357. package/dist/components.mjs +36 -0
  358. package/dist/composables/actions-local.d.ts +14 -0
  359. package/dist/composables/actions-local.mjs +26 -0
  360. package/dist/composables/actions-tracker.d.ts +36 -0
  361. package/dist/composables/actions-tracker.mjs +88 -0
  362. package/dist/composables/actions.d.ts +116 -0
  363. package/dist/composables/actions.mjs +272 -0
  364. package/dist/composables/api.d.ts +100 -0
  365. package/dist/composables/api.mjs +329 -0
  366. package/dist/composables/assistant.d.ts +38 -0
  367. package/dist/composables/assistant.mjs +70 -0
  368. package/dist/composables/auth.d.ts +94 -0
  369. package/dist/composables/auth.mjs +257 -0
  370. package/dist/composables/background-tasks.d.ts +31 -0
  371. package/dist/composables/background-tasks.mjs +79 -0
  372. package/dist/composables/blade-old.d.ts +1 -0
  373. package/dist/composables/blade.d.ts +91 -0
  374. package/dist/composables/blade.mjs +156 -0
  375. package/dist/composables/charts.d.ts +10 -0
  376. package/dist/composables/colorizer.d.ts +5 -0
  377. package/dist/composables/colorizer.mjs +27 -0
  378. package/dist/composables/component-config.d.ts +8 -0
  379. package/dist/composables/component-config.mjs +11 -0
  380. package/dist/composables/confirm.d.ts +1 -0
  381. package/dist/composables/confirm.mjs +11 -0
  382. package/dist/composables/cosmetics.d.ts +44 -0
  383. package/dist/composables/cosmetics.mjs +125 -0
  384. package/dist/composables/cron-adjustments.d.ts +63 -0
  385. package/dist/composables/cron-adjustments.mjs +106 -0
  386. package/dist/composables/cron.d.ts +72 -0
  387. package/dist/composables/cron.mjs +326 -0
  388. package/dist/composables/csv.d.ts +44 -0
  389. package/dist/composables/csv.mjs +163 -0
  390. package/dist/composables/dates.d.ts +22 -0
  391. package/dist/composables/dates.mjs +61 -0
  392. package/dist/composables/demo.d.ts +68 -0
  393. package/dist/composables/demo.mjs +173 -0
  394. package/dist/composables/dialog-items.d.ts +117 -0
  395. package/dist/composables/dialog-items.mjs +72 -0
  396. package/dist/composables/document-meta.d.ts +11 -0
  397. package/dist/composables/document-meta.mjs +20 -0
  398. package/dist/composables/draggable.d.ts +56 -0
  399. package/dist/composables/draggable.mjs +76 -0
  400. package/dist/composables/feedback.d.ts +24 -0
  401. package/dist/composables/feedback.mjs +32 -0
  402. package/dist/composables/filters.d.ts +27 -0
  403. package/dist/composables/filters.mjs +218 -0
  404. package/dist/composables/forage.d.ts +89 -0
  405. package/dist/composables/forage.mjs +37 -0
  406. package/dist/composables/forms.d.ts +104 -0
  407. package/dist/composables/forms.mjs +256 -0
  408. package/dist/composables/geo.d.ts +24 -0
  409. package/dist/composables/geo.mjs +95 -0
  410. package/dist/composables/graph-pro.d.ts +98 -0
  411. package/dist/composables/graph-pro.mjs +205 -0
  412. package/dist/composables/graphing.d.ts +1 -0
  413. package/dist/composables/heights.d.ts +24 -0
  414. package/dist/composables/heights.mjs +41 -0
  415. package/dist/composables/helpers.d.ts +114 -0
  416. package/dist/composables/helpers.mjs +512 -0
  417. package/dist/composables/icons.d.ts +3 -0
  418. package/dist/composables/icons.mjs +84 -0
  419. package/dist/composables/id.d.ts +8 -0
  420. package/dist/composables/id.mjs +32 -0
  421. package/dist/composables/item.d.ts +132 -0
  422. package/dist/composables/item.mjs +263 -0
  423. package/dist/composables/iterating.d.ts +1 -0
  424. package/dist/composables/list.d.ts +345 -0
  425. package/dist/composables/list.mjs +460 -0
  426. package/dist/composables/lists.d.ts +10 -0
  427. package/dist/composables/lists.mjs +31 -0
  428. package/dist/composables/menu.d.ts +35 -0
  429. package/dist/composables/menu.mjs +63 -0
  430. package/dist/composables/navigation.d.ts +123 -0
  431. package/dist/composables/navigation.mjs +157 -0
  432. package/dist/composables/nested.d.ts +3 -0
  433. package/dist/composables/nested.mjs +20 -0
  434. package/dist/composables/old-dialogs.d.ts +1 -0
  435. package/dist/composables/presets.d.ts +8 -0
  436. package/dist/composables/presets.mjs +16 -0
  437. package/dist/composables/pwa-old.d.ts +15 -0
  438. package/dist/composables/pwa.d.ts +26 -0
  439. package/dist/composables/pwa.mjs +80 -0
  440. package/dist/composables/resizable.d.ts +34 -0
  441. package/dist/composables/resizable.mjs +135 -0
  442. package/dist/composables/routing-old.d.ts +1 -0
  443. package/dist/composables/routing.d.ts +16 -0
  444. package/dist/composables/routing.mjs +112 -0
  445. package/dist/composables/rules.d.ts +13 -0
  446. package/dist/composables/rules.mjs +22 -0
  447. package/dist/composables/select.d.ts +78 -0
  448. package/dist/composables/select.mjs +129 -0
  449. package/dist/composables/settings.d.ts +6 -0
  450. package/dist/composables/settings.mjs +21 -0
  451. package/dist/composables/setup.d.ts +1 -0
  452. package/dist/composables/steps-old.d.ts +1 -0
  453. package/dist/composables/steps.d.ts +53 -0
  454. package/dist/composables/steps.mjs +39 -0
  455. package/dist/composables/stores.d.ts +258 -0
  456. package/dist/composables/stores.mjs +1257 -0
  457. package/dist/composables/sync.d.ts +33 -0
  458. package/dist/composables/track.d.ts +13 -0
  459. package/dist/composables/track.mjs +30 -0
  460. package/dist/composables/urls.d.ts +35 -0
  461. package/dist/composables/urls.mjs +66 -0
  462. package/dist/composables/vuetify.d.ts +85 -0
  463. package/dist/composables.mjs +237 -0
  464. package/dist/core.d.ts +48 -0
  465. package/dist/core.mjs +6 -0
  466. package/dist/core2.mjs +118 -0
  467. package/dist/index-components.d.ts +19 -0
  468. package/dist/index-composables.d.ts +75 -0
  469. package/dist/index-core.d.ts +3 -0
  470. package/dist/index.d.ts +96 -3036
  471. package/dist/index.mjs +275 -0
  472. package/dist/main.d.ts +1 -0
  473. package/dist/node_modules/bt-core-app/dist/bt-core-app.mjs +30372 -0
  474. package/dist/style.css +1 -5
  475. package/dist/types.d.ts +18 -0
  476. package/dist/types.mjs +7 -0
  477. package/package.json +4 -1
  478. 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,10 @@
1
+ export interface XAxis {
2
+ xSpanOptions: string[];
3
+ xSpreadOptions: string[];
4
+ }
5
+ export interface UseXOptions<T> {
6
+ data?: T[];
7
+ xProp?: string;
8
+ xSpanOptions?: string[];
9
+ xSpreadOptions?: string[];
10
+ }
@@ -0,0 +1,5 @@
1
+ export interface BTColorizer {
2
+ getColor: () => string;
3
+ getSpecificColor: (ind: number) => string;
4
+ }
5
+ export declare function useColorizer(): BTColorizer;
@@ -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,11 @@
1
+ let n;
2
+ function o() {
3
+ return n ?? (n = {}), n;
4
+ }
5
+ function t(e) {
6
+ n = e ?? {};
7
+ }
8
+ export {
9
+ t as createComponentConfig,
10
+ o as useComponentConfig
11
+ };
@@ -0,0 +1 @@
1
+ export declare function useConfirm(action: any, requireConfirmation?: boolean): Promise<void>;