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,218 @@
1
+ import { getLocationLine as Z, getLocationLineOne as q, getLocationLineTwo as E, isMinDate as G } from "./helpers.mjs";
2
+ import { BTDateFormat as H } from "./dates.mjs";
3
+ const J = "ccc | d LLL", Q = "d LLL", X = "d LLL yyyy", _ = "ccc", v = "ccc dd LLL yyyy", tt = "ccc dd LLL @ hh:mm a", nt = "ccc dd LLL yyyy", et = "ccc dd LLL yyyy hh:mm a", rt = "dd/MM/yy,dd/MM", ot = "dd LLL yyyy", it = "dd LLL yyyy hh:mm a", ut = "hh:mm a";
4
+ let f;
5
+ function ft() {
6
+ return f ?? {
7
+ findFilter: () => () => {
8
+ }
9
+ };
10
+ }
11
+ function at(c) {
12
+ const D = c.filters ?? {};
13
+ function i(t, n, e) {
14
+ return t ? G(t) ? e ?? "" : c.dates.tzString(t, n) : e ?? t ?? "";
15
+ }
16
+ function h(t) {
17
+ if (!t)
18
+ return "";
19
+ if (typeof t != "object")
20
+ return t;
21
+ var n = "";
22
+ return t.companyAccount != null && (n = t.companyAccount.companyName + " | "), t.addressLineOne != null && (n = n + t.addressLineOne + " "), t.streetNumber != null && (n = n + t.streetNumber + " "), t.streetName != null && (n = n + t.streetName + ", "), t.suburb != null && (n = n + t.suburb + " "), t.state != null && (n = n + t.state + " "), t.postcode != null && (n = n + t.postcode), n;
23
+ }
24
+ function l(t) {
25
+ if (typeof t != "number")
26
+ return t;
27
+ var n = new Intl.NumberFormat("en-US", {
28
+ style: "currency",
29
+ currency: "AUD",
30
+ minimumFractionDigits: 2
31
+ });
32
+ return n.format(t);
33
+ }
34
+ function b(t, n) {
35
+ return i(t, J, n);
36
+ }
37
+ function m(t, n) {
38
+ return i(t, Q, n);
39
+ }
40
+ function y(t, n) {
41
+ return i(t, X, n);
42
+ }
43
+ function N(t, n) {
44
+ return i(t, _, n);
45
+ }
46
+ function T(t, n) {
47
+ return i(t, v, n);
48
+ }
49
+ function S(t, n) {
50
+ return i(t, tt, n);
51
+ }
52
+ function $(t) {
53
+ return new Intl.NumberFormat().format(t);
54
+ }
55
+ function g(t) {
56
+ return t == 0 ? "" : new Intl.NumberFormat().format(t);
57
+ }
58
+ function p(t) {
59
+ return t == null || t <= 0 ? "" : new Intl.NumberFormat().format(t);
60
+ }
61
+ function F(t) {
62
+ if (t == 0)
63
+ return "";
64
+ var n = new Intl.NumberFormat().format(t);
65
+ return t > 0 ? "+" + n : n;
66
+ }
67
+ function O(t, n = 0) {
68
+ if (typeof t != "number" || isNaN(t))
69
+ return "";
70
+ const e = Math.abs(t), o = t < 0 ? "-" : "", s = [
71
+ { value: 1e12, suffix: "T" },
72
+ { value: 1e9, suffix: "B" },
73
+ { value: 1e6, suffix: "M" },
74
+ { value: 1e3, suffix: "K" }
75
+ ];
76
+ for (const r of s)
77
+ if (e >= r.value)
78
+ return o + (e / r.value).toFixed(n) + r.suffix;
79
+ return o + e.toString();
80
+ }
81
+ function A(t, n) {
82
+ return c.dates.tzDate(t).toFormat(n ?? H);
83
+ }
84
+ function z(t) {
85
+ if (!t)
86
+ return "";
87
+ if (typeof t != "object")
88
+ return t;
89
+ let n = c.demo.isDemoing.value ? "comp1" : c.auth.credentials.value.companyAccountID;
90
+ if (t.companyAccountID == n)
91
+ return t.locationName;
92
+ let e = "";
93
+ return t.companyAccount != null && (e = `${e}${t.companyAccount.companyName} | `), t.addressLineOne != null && (e = `${e}${t.addressLineOne} `), t.streetNumber != null && (e = `${e}${t.streetNumber} `), t.streetName != null && (e = `${e}${t.streetName}, `), t.suburb != null && (e = `${e}${t.suburb} `), t.state != null && (e = `${e}${t.state} `), t.postcode != null && (e = `${e}${t.postcode}`), e;
94
+ }
95
+ function w(t) {
96
+ return Z(t, !1);
97
+ }
98
+ function M(t) {
99
+ return q(t);
100
+ }
101
+ function I(t) {
102
+ return E(t);
103
+ }
104
+ function x(t) {
105
+ if (!t)
106
+ return "";
107
+ if (typeof t != "object")
108
+ return t;
109
+ var n = "";
110
+ return t.addressLineOne != null && (n = t.addressLineOne + " "), t.streetNumber != null && (n = n + t.streetNumber + " "), t.streetName != null && (n = n + t.streetName + " "), t.suburb != null && (n = n + t.suburb + " "), t.state != null && (n = n + t.state + " "), t.postcode != null && (n = n + t.postcode), n = n.replaceAll(",", " "), n;
111
+ }
112
+ function C(t, n) {
113
+ return i(t, nt, n);
114
+ }
115
+ function j(t, n) {
116
+ return i(t, et, n);
117
+ }
118
+ function k(t, n) {
119
+ var e = n ?? rt, o = c.dates.tzDate(t), s = c.dates.tzDate(), r = e.split(",");
120
+ return r.length >= 4 && s.hasSame(o, "day") ? i(t, r[3]) : r.length >= 3 && s.hasSame(o, "month") ? i(t, r[2]) : r.length >= 2 && s.hasSame(o, "year") ? i(t, r[1]) : i(t, r[0]);
121
+ }
122
+ function P(t, n = 2) {
123
+ var e = new Intl.NumberFormat("en-US", {
124
+ style: "percent",
125
+ minimumFractionDigits: n
126
+ });
127
+ return e.format(t);
128
+ }
129
+ function U(t) {
130
+ return t.replaceAll(",", " ");
131
+ }
132
+ function B(t, n) {
133
+ return i(t, ot, n);
134
+ }
135
+ function W(t, n) {
136
+ return i(t, it, n);
137
+ }
138
+ function d(t, n) {
139
+ return i(t, ut, n);
140
+ }
141
+ function Y(t, n) {
142
+ var e = c.dates.tzDate(t), o = c.dates.tzDate();
143
+ return o.startOf("day").hasSame(e, "day") ? d(t, n) : o.startOf("year").hasSame(e, "year") ? m(t, n) : y(t, n);
144
+ }
145
+ function K(t) {
146
+ return t == null ? "" : typeof t == "number" ? c.dates.tzDate().startOf("day").plus({ minutes: t }).toFormat("T") : typeof t == "string" ? c.dates.tzString(t, "t") : "unknown";
147
+ }
148
+ function R(t, n) {
149
+ var e = c.dates, o = e.btDate(t), s = e.utcDate();
150
+ if (n != null)
151
+ return o < s ? `${s.diff(o, n, {}).toString()} ago` : o.diff(s, n).toString() ?? "";
152
+ var r = o.diff(s, ["months", "days", "hours", "minutes", "seconds"]).toObject(), L = !1;
153
+ o < s && (L = !0, r = s.diff(o, ["months", "days", "hours", "minutes", "seconds"]).toObject());
154
+ var u = "";
155
+ return r.months != null && r.months > 0 ? u = `${r.months} ${r.months == 1 ? "month" : "months"}` : r.days != null && r.days > 0 ? u = `${u} ${r.days} ${r.days == 1 ? "day" : "days"}` : (r.hours != null && r.hours > 0 && (u = `${u} ${r.hours} ${r.hours == 1 ? "hour" : "hours"}`), r.minutes != null && r.minutes > 0 && (u.length > 0 && (u = u + " "), u = `${u}${r.minutes} ${r.minutes == 1 ? "minute" : "minutes"}`)), L && u.length > 0 ? `${u} ago` : u;
156
+ }
157
+ const a = {
158
+ toCompanyNameAndLocationLine: h,
159
+ toCurrency: l,
160
+ toDayDate: b,
161
+ toDayMonth: m,
162
+ toDayMonthYear: y,
163
+ toDayOfWeek: N,
164
+ toDayShortDate: T,
165
+ toDayShortDateAndTime: S,
166
+ toDisplayNumber: $,
167
+ toDisplayNumberOver: g,
168
+ toDisplayNumberPositive: p,
169
+ toDisplayNumberSigned: F,
170
+ toFamiliarLocationLine: z,
171
+ toFormat: A,
172
+ toLocationLine: w,
173
+ toLocationLineOne: M,
174
+ toLocationLineTwo: I,
175
+ toLocationLineNoCommas: x,
176
+ toLongDate: C,
177
+ toLongDateAndTime: j,
178
+ toPercent: P,
179
+ toPrettyCSV: U,
180
+ toConditionalFormat: k,
181
+ toRelativeTime: Y,
182
+ toShortDate: B,
183
+ toShortDateAndTime: W,
184
+ toShortDisplayNumber: O,
185
+ toTime: d,
186
+ toTimeOfDay: K,
187
+ toTimeSpan: R,
188
+ ...D
189
+ };
190
+ function V(t) {
191
+ if (t != null) {
192
+ let n = t;
193
+ if (n != null && a[n] != null)
194
+ return a[n];
195
+ }
196
+ return (n) => n;
197
+ }
198
+ return f = {
199
+ findFilter: V,
200
+ ...a
201
+ }, f;
202
+ }
203
+ export {
204
+ rt as ToConditionalFormat,
205
+ J as ToDayDate,
206
+ Q as ToDayMonth,
207
+ X as ToDayMonthYear,
208
+ _ as ToDayOfWeek,
209
+ v as ToDayShortDate,
210
+ tt as ToDayShortDateAndTime,
211
+ nt as ToLongDate,
212
+ et as ToLongDateAndTime,
213
+ ot as ToShortDate,
214
+ it as ToShortDateAndTime,
215
+ ut as ToTime,
216
+ at as createFilters,
217
+ ft as useFilters
218
+ };
@@ -0,0 +1,89 @@
1
+ interface LocalForageDbInstanceOptions {
2
+ name?: string;
3
+ storeName?: string;
4
+ }
5
+ interface LocalForageOptions extends LocalForageDbInstanceOptions {
6
+ driver?: string | string[];
7
+ size?: number;
8
+ version?: number;
9
+ description?: string;
10
+ }
11
+ interface LocalForageDbMethodsCore {
12
+ getItem<T>(key: string, callback?: (err: any, value: T | null) => void): Promise<T | null>;
13
+ setItem<T>(key: string, value: T, callback?: (err: any, value: T) => void): Promise<T>;
14
+ removeItem(key: string, callback?: (err: any) => void): Promise<void>;
15
+ clear(callback?: (err: any) => void): Promise<void>;
16
+ length(callback?: (err: any, numberOfKeys: number) => void): Promise<number>;
17
+ key(keyIndex: number, callback?: (err: any, key: string) => void): Promise<string>;
18
+ keys(callback?: (err: any, keys: string[]) => void): Promise<string[]>;
19
+ iterate<T, U>(iteratee: (value: T, key: string, iterationNumber: number) => U, callback?: (err: any, result: U) => void): Promise<U>;
20
+ }
21
+ interface LocalForageDropInstanceFn {
22
+ (dbInstanceOptions?: LocalForageDbInstanceOptions, callback?: (err: any) => void): Promise<void>;
23
+ }
24
+ interface LocalForageDriverMethodsOptional {
25
+ dropInstance?: LocalForageDropInstanceFn;
26
+ }
27
+ interface LocalForageDbMethodsOptional {
28
+ dropInstance: LocalForageDropInstanceFn;
29
+ }
30
+ interface LocalForageDriverDbMethods extends LocalForageDbMethodsCore, LocalForageDriverMethodsOptional {
31
+ }
32
+ interface LocalForageDriverSupportFunc {
33
+ (): Promise<boolean>;
34
+ }
35
+ interface LocalForageDriver extends LocalForageDriverDbMethods {
36
+ _driver: string;
37
+ _initStorage(options: LocalForageOptions): void;
38
+ _support?: boolean | LocalForageDriverSupportFunc;
39
+ }
40
+ interface LocalForageSerializer {
41
+ serialize<T>(value: T | ArrayBuffer | Blob, callback: (value: string, error: any) => void): void;
42
+ deserialize<T>(value: string): T | ArrayBuffer | Blob;
43
+ stringToBuffer(serializedString: string): ArrayBuffer;
44
+ bufferToString(buffer: ArrayBuffer): string;
45
+ }
46
+ interface LocalForageDbMethods extends LocalForageDbMethodsCore, LocalForageDbMethodsOptional {
47
+ }
48
+ interface LocalForage extends LocalForageDbMethods {
49
+ LOCALSTORAGE: string;
50
+ WEBSQL: string;
51
+ INDEXEDDB: string;
52
+ /**
53
+ * Set and persist localForage options. This must be called before any other calls to localForage are made, but can be called after localForage is loaded.
54
+ * If you set any config values with this method they will persist after driver changes, so you can call config() then setDriver()
55
+ * @param {LocalForageOptions} options?
56
+ */
57
+ config(options: LocalForageOptions): boolean;
58
+ config(options: string): any;
59
+ config(): LocalForageOptions;
60
+ /**
61
+ * Create a new instance of localForage to point to a different store.
62
+ * All the configuration options used by config are supported.
63
+ * @param {LocalForageOptions} options
64
+ */
65
+ createInstance(options: LocalForageOptions): LocalForage;
66
+ driver(): string;
67
+ /**
68
+ * Force usage of a particular driver or drivers, if available.
69
+ * @param {string} driver
70
+ */
71
+ setDriver(driver: string | string[], callback?: () => void, errorCallback?: (error: any) => void): Promise<void>;
72
+ defineDriver(driver: LocalForageDriver, callback?: () => void, errorCallback?: (error: any) => void): Promise<void>;
73
+ /**
74
+ * Return a particular driver
75
+ * @param {string} driver
76
+ */
77
+ getDriver(driver: string): Promise<LocalForageDriver>;
78
+ getSerializer(callback?: (serializer: LocalForageSerializer) => void): Promise<LocalForageSerializer>;
79
+ supports(driverName: string): boolean;
80
+ ready(callback?: (error: any) => void): Promise<void>;
81
+ }
82
+ export declare function useLocalDb(): LocalForage;
83
+ export declare function useLocalCache(): {
84
+ clearAsync: (storeName: string) => Promise<void>;
85
+ getAsync: <T>(key: string) => Promise<T | null>;
86
+ removeAsync: (key: string) => Promise<void>;
87
+ saveAsync: <T_1>(data: T_1, key: string) => Promise<void>;
88
+ };
89
+ export {};
@@ -0,0 +1,37 @@
1
+ import r from "../bt-core/core/node_modules/localforage/dist/localforage.mjs";
2
+ import { useDbName as s } from "./urls.mjs";
3
+ let a = null;
4
+ r.config({
5
+ name: s()
6
+ });
7
+ function c() {
8
+ const t = s();
9
+ return (a == null || a.config.name != t) && (a = r.createInstance({ name: t })), a;
10
+ }
11
+ function g() {
12
+ async function t(e) {
13
+ const n = c();
14
+ (await n.keys()).filter((o) => o.startsWith(e)).forEach((o) => {
15
+ n.removeItem(o);
16
+ });
17
+ }
18
+ async function i(e) {
19
+ return await c().getItem(e);
20
+ }
21
+ async function f(e) {
22
+ return await c().removeItem(e);
23
+ }
24
+ async function l(e, n) {
25
+ await c().setItem(n, e);
26
+ }
27
+ return {
28
+ clearAsync: t,
29
+ getAsync: i,
30
+ removeAsync: f,
31
+ saveAsync: l
32
+ };
33
+ }
34
+ export {
35
+ g as useLocalCache,
36
+ c as useLocalDb
37
+ };
@@ -0,0 +1,104 @@
1
+ export type AFormVariant = 'basic' | 'half-and-half' | 'single-page';
2
+ export interface AFormBase {
3
+ bgColor?: string;
4
+ bgSrc?: string;
5
+ ctlColor?: string;
6
+ logoSrc?: string;
7
+ textColor?: string;
8
+ theme?: 'light' | 'dark';
9
+ title?: string;
10
+ useBgSrc?: boolean;
11
+ useLogoSrc?: boolean;
12
+ variant?: AFormVariant;
13
+ version?: number;
14
+ }
15
+ export interface AForm extends AFormBase {
16
+ slides: AFormSlide[];
17
+ }
18
+ export interface AFormTemplate {
19
+ description?: string;
20
+ form: AForm;
21
+ group?: string;
22
+ templateName: string;
23
+ }
24
+ export interface AFormRequirements {
25
+ group: string;
26
+ props: string[];
27
+ }
28
+ export interface AFormSlideBase {
29
+ canDelete?: boolean;
30
+ canEdit?: boolean;
31
+ }
32
+ export interface AFormSlide extends AFormSlideBase {
33
+ fields: AFormField[];
34
+ name: string;
35
+ }
36
+ export interface AFormFieldBase {
37
+ description?: string;
38
+ isRequired?: boolean;
39
+ isSubmitButton?: boolean;
40
+ label?: string;
41
+ mapToProp?: string;
42
+ options?: string[];
43
+ placeholder?: string;
44
+ prop?: string;
45
+ remember?: boolean;
46
+ url?: string;
47
+ }
48
+ export interface AFormField extends AFormFieldBase {
49
+ type: FieldType;
50
+ }
51
+ export type FieldType = 'info' | 'short-text' | 'long-text' | 'number' | 'checkbox' | 'button' | 'date' | 'email' | 'phone' | 'file' | 'select';
52
+ export interface AFormFieldMeta {
53
+ description?: string;
54
+ icon?: string;
55
+ label?: string;
56
+ type: FieldType;
57
+ }
58
+ export interface UseFormsOptions {
59
+ defaultColor?: string;
60
+ defaultTemplateName?: string;
61
+ onGetSchema?: (schema: AForm) => AForm;
62
+ }
63
+ export declare function useForms(options?: UseFormsOptions): {
64
+ addFieldToSlide: (field: AFormFieldMeta, slide: AFormSlide) => void;
65
+ addSlide: () => void;
66
+ applyTemplate: (template: AFormTemplate) => void;
67
+ clearCurrent: () => void;
68
+ currentField: import('vue').Ref<AFormField | undefined, AFormField | undefined>;
69
+ currentSlide: import('vue').Ref<AFormSlide | undefined, AFormSlide | undefined>;
70
+ duplicateField: (field: AFormField) => AFormField;
71
+ duplicateSlide: (slide: AFormSlide) => AFormSlide;
72
+ fieldPropRules: (((prop: any) => true | "Property name is required") | ((prop: any) => true | "Must contain only letters, numbers, underscores, and dashes") | ((prop: any) => true | "This property name is already being used"))[];
73
+ getPropNameFor: (type: FieldType) => string;
74
+ hasInvalidProps: (schema: AForm) => string | undefined;
75
+ isInputType: import('vue').ComputedRef<boolean>;
76
+ isLabelType: import('vue').ComputedRef<boolean>;
77
+ isPlaceholderType: import('vue').ComputedRef<boolean>;
78
+ isPropType: import('vue').ComputedRef<boolean>;
79
+ isRequiredType: import('vue').ComputedRef<boolean>;
80
+ isPropField: (type: FieldType) => boolean;
81
+ loadSchema: (schemaStr?: string) => void;
82
+ moveSlideDown: (slideIndex: number) => void;
83
+ moveSlideUp: (slideIndex: number) => void;
84
+ removeCurrent: () => void;
85
+ removeSlide: (slideName?: string) => void;
86
+ schema: import('vue').Ref<AForm | undefined, AForm | undefined>;
87
+ schemaString: import('vue').ComputedRef<string>;
88
+ selectField: (slide: AFormSlide, field: AFormField) => void;
89
+ selectSlide: (slide: AFormSlide) => void;
90
+ };
91
+ export declare const Fields: AFormFieldMeta[];
92
+ export interface CreateFormsOptions {
93
+ requirementSets: AFormRequirements[];
94
+ templates: AFormTemplate[];
95
+ }
96
+ export declare function createForms(options?: CreateFormsOptions): CreateFormsOptions;
97
+ export declare function useFormTemplates(group?: string): AFormTemplate[];
98
+ export declare function useFormSource(): CreateFormsOptions;
99
+ export interface CreateAForm {
100
+ form: AForm;
101
+ addSlide: (slideName: string, furtherProps?: AFormSlideBase) => CreateAForm;
102
+ addField: (t: FieldType, furtherProps?: AFormFieldBase) => CreateAForm;
103
+ }
104
+ export declare function createAForm(furtherProps?: AFormBase): CreateAForm;
@@ -0,0 +1,256 @@
1
+ import { ref as h, computed as c } from "vue";
2
+ import { moveInArray as x, distinct as R } from "./helpers.mjs";
3
+ import { copyDeep as F } from "../node_modules/bt-core-app/dist/bt-core-app.mjs";
4
+ function E(r) {
5
+ const i = h(), o = h(), a = c(() => {
6
+ var e;
7
+ return (e = o.value) == null ? void 0 : e.type;
8
+ }), n = h();
9
+ function m(e) {
10
+ var l = F(e);
11
+ return l.prop = s(e.type) ? p(e.type) : void 0, l;
12
+ }
13
+ function v(e) {
14
+ var l = F(e);
15
+ return l.fields.forEach((t) => {
16
+ t.prop = s(t.type) ? p(t.type) : void 0;
17
+ }), l;
18
+ }
19
+ function f(e, l) {
20
+ let t = {
21
+ label: e.type == "button" ? "Button" : void 0,
22
+ placeholder: b(e.type) ? "(Answer)" : void 0,
23
+ prop: s(e.type) ? p(e.type) : void 0,
24
+ type: e.type
25
+ };
26
+ l.fields.push(t), y(l, t);
27
+ }
28
+ function $() {
29
+ if (n.value != null) {
30
+ var e = {
31
+ fields: [],
32
+ name: `Slide ${n.value.slides.length + 1}`
33
+ };
34
+ n.value.slides.push(e), S(e);
35
+ }
36
+ }
37
+ function T(e) {
38
+ n.value = e.form;
39
+ }
40
+ function A(e) {
41
+ return e == "checkbox" || e == "email" || e == "long-text" || e == "number" || e == "phone" || e == "select" || e == "short-text";
42
+ }
43
+ function P() {
44
+ i.value = void 0, o.value = void 0;
45
+ }
46
+ function p(e) {
47
+ var t;
48
+ var l = (t = n.value) == null ? void 0 : t.slides.flatMap((u) => u.fields).filter((u) => u.type == e).length;
49
+ return l == null || l == 0 ? `${e.replaceAll("-", "_")}_field` : `${e.replaceAll("-", "_")}_field_${l}`;
50
+ }
51
+ function b(e) {
52
+ return e == "short-text" || e == "long-text" || e == "email" || e == "number";
53
+ }
54
+ function s(e) {
55
+ return e != "info" && e != "button" && e != "file";
56
+ }
57
+ function w(e) {
58
+ let l;
59
+ e != null ? l = JSON.parse(e) : ((r == null ? void 0 : r.defaultTemplateName) != null && (l = (d.templates ?? []).find((t) => t.templateName == (r == null ? void 0 : r.defaultTemplateName))), l ?? (l = {
60
+ bgColor: r == null ? void 0 : r.defaultColor,
61
+ btnColor: r == null ? void 0 : r.defaultColor,
62
+ slides: [],
63
+ version: 1
64
+ })), n.value = (r == null ? void 0 : r.onGetSchema) != null ? r.onGetSchema(l) : l;
65
+ }
66
+ function q(e) {
67
+ var l, t;
68
+ ((l = n.value) == null ? void 0 : l.slides) != null && x((t = n.value) == null ? void 0 : t.slides, e, e + 1);
69
+ }
70
+ function C(e) {
71
+ var l, t;
72
+ ((l = n.value) == null ? void 0 : l.slides) != null && x((t = n.value) == null ? void 0 : t.slides, e, e - 1);
73
+ }
74
+ function N() {
75
+ var t;
76
+ if (o.value != null) {
77
+ var e = (t = n.value) == null ? void 0 : t.slides.find((u) => u.fields.some((_) => _ === o.value)), l = (e == null ? void 0 : e.fields.findIndex((u) => u === o.value)) ?? -1;
78
+ l >= 0 && (e == null || e.fields.splice(l, 1)), o.value = void 0;
79
+ } else
80
+ i.value != null && n.value != null && g(i.value.name);
81
+ }
82
+ function g(e) {
83
+ var t;
84
+ if (e != null && n.value != null) {
85
+ var l = n.value.slides.findIndex((u) => u.name == e) ?? -1;
86
+ l >= 0 && ((t = n.value) == null || t.slides.splice(l, 1)), l >= 0 && n.value.slides.length > 0 && (l >= n.value.slides.length && (l = n.value.slides.length - 1), i.value = n.value.slides[l], o.value = void 0);
87
+ }
88
+ }
89
+ function y(e, l) {
90
+ console.log(`selecting field ${l == null ? void 0 : l.prop} and slide ${e.name}`), i.value = e, o.value = l;
91
+ }
92
+ function S(e) {
93
+ console.log("selecting slide"), i.value = e, o.value = void 0;
94
+ }
95
+ function k(e) {
96
+ var l = e.slides.flatMap((u) => u.fields).filter((u) => s(u.type)).map((u) => u.prop);
97
+ if (l.some((u) => u == null || u.length == 0))
98
+ return "One of your field properties are missing";
99
+ var t = R(l);
100
+ if (t.length != l.length)
101
+ return "You identical field properties. Every field property needs to be unique.";
102
+ }
103
+ return {
104
+ addFieldToSlide: f,
105
+ addSlide: $,
106
+ applyTemplate: T,
107
+ clearCurrent: P,
108
+ currentField: o,
109
+ currentSlide: i,
110
+ duplicateField: m,
111
+ duplicateSlide: v,
112
+ fieldPropRules: [
113
+ (e) => !!e || "Property name is required",
114
+ (e) => /^[A-Za-z0-9\-\_]+$/.test(e) || "Must contain only letters, numbers, underscores, and dashes",
115
+ (e) => {
116
+ var l;
117
+ return ((l = n.value) == null ? void 0 : l.slides.flatMap((t) => t.fields).filter((t) => s(t.type) && t.prop == e).length) == 1 || "This property name is already being used";
118
+ }
119
+ ],
120
+ getPropNameFor: p,
121
+ hasInvalidProps: k,
122
+ isInputType: c(() => a.value == "short-text" || a.value == "long-text" || a.value == "number" || a.value == "checkbox" || a.value == "date" || a.value == "email" || a.value == "phone" || a.value == "select"),
123
+ isLabelType: c(() => a.value != "info" && a.value != "date"),
124
+ isPlaceholderType: c(() => a.value != null && b(a.value)),
125
+ isPropType: c(() => a.value != null && s(a.value)),
126
+ isRequiredType: c(() => a.value != null && A(a.value)),
127
+ isPropField: s,
128
+ loadSchema: w,
129
+ moveSlideDown: q,
130
+ moveSlideUp: C,
131
+ removeCurrent: N,
132
+ removeSlide: g,
133
+ schema: n,
134
+ schemaString: c(() => JSON.stringify(n.value)),
135
+ selectField: y,
136
+ selectSlide: S
137
+ };
138
+ }
139
+ const O = [
140
+ {
141
+ description: "For your customer to read",
142
+ icon: "$information",
143
+ label: "Information",
144
+ type: "info"
145
+ },
146
+ {
147
+ description: "A short text-based answer",
148
+ icon: "$text-box",
149
+ label: "Text Input",
150
+ type: "short-text"
151
+ },
152
+ {
153
+ description: "A long paragraph answer",
154
+ icon: "$text-box",
155
+ label: "Paragraph Input",
156
+ type: "long-text"
157
+ },
158
+ {
159
+ description: "Requiring an email address",
160
+ icon: "$email",
161
+ label: "Email Input",
162
+ type: "email"
163
+ },
164
+ {
165
+ description: "A phone number answer",
166
+ icon: "$phone",
167
+ label: "Phone Number",
168
+ type: "phone"
169
+ },
170
+ {
171
+ description: "A number answer",
172
+ icon: "$numeric",
173
+ label: "Number Input",
174
+ type: "number"
175
+ },
176
+ {
177
+ description: "For true or false answers",
178
+ icon: "$checkbox-marked",
179
+ label: "Checkbox",
180
+ type: "checkbox"
181
+ },
182
+ {
183
+ description: "Request a date",
184
+ icon: "$calendar-edit",
185
+ label: "Date Input",
186
+ type: "date"
187
+ },
188
+ // {
189
+ // description: 'Select from a list of options',
190
+ // icon: '$list-box',
191
+ // label: 'Select List',
192
+ // type: 'select'
193
+ // },
194
+ // {
195
+ // description: 'A file upload',
196
+ // icon: '$file-outline',
197
+ // label: 'File Input',
198
+ // type: 'file'
199
+ // },
200
+ {
201
+ description: "A button that does things.",
202
+ icon: "$button-cursor",
203
+ label: "Button",
204
+ type: "button"
205
+ }
206
+ ];
207
+ let d;
208
+ function B(r) {
209
+ return d = r ?? {
210
+ // customModelProps: [],
211
+ requirementSets: [],
212
+ templates: []
213
+ }, d;
214
+ }
215
+ function G(r) {
216
+ var i = (d == null ? void 0 : d.templates) ?? [];
217
+ return r != null ? i.filter((o) => o.group == r) : i;
218
+ }
219
+ function J() {
220
+ return d;
221
+ }
222
+ function z(r) {
223
+ let i, o = {
224
+ ...r,
225
+ slides: []
226
+ }, a = {
227
+ fields: [],
228
+ name: "Slide 1"
229
+ };
230
+ function n(v, f) {
231
+ return a = {
232
+ name: v,
233
+ fields: [],
234
+ ...f
235
+ }, o.slides.push(a), i;
236
+ }
237
+ function m(v, f) {
238
+ return a.fields.push({
239
+ type: v,
240
+ ...f
241
+ }), i;
242
+ }
243
+ return i = {
244
+ form: o,
245
+ addSlide: n,
246
+ addField: m
247
+ }, i;
248
+ }
249
+ export {
250
+ O as Fields,
251
+ z as createAForm,
252
+ B as createForms,
253
+ J as useFormSource,
254
+ G as useFormTemplates,
255
+ E as useForms
256
+ };