bitboss-ui 0.2.30 → 0.2.32

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 (333) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +6 -6
  2. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +16 -16
  3. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +36 -36
  4. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +20 -20
  5. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +21 -21
  6. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +8 -8
  7. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +6 -6
  8. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +20 -20
  9. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +20 -20
  10. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +36 -36
  11. package/dist/components/BaseRating/BaseRating.vue.d.ts +17 -17
  12. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +23 -23
  13. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +15 -15
  14. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +1 -1
  15. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +20 -20
  16. package/dist/components/BaseTag/BaseTag.vue.d.ts +20 -20
  17. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +19 -19
  18. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +18 -18
  19. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -3
  20. package/dist/components/BbAlert/BbAlert.vue.d.ts +3 -3
  21. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +8 -8
  22. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  23. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +6 -6
  24. package/dist/components/BbButton/BbButton.vue.d.ts +1 -1
  25. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +11 -11
  26. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +27 -27
  27. package/dist/components/BbChip/BbChip.vue.d.ts +2 -2
  28. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +4 -4
  29. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +16 -24
  30. package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -2
  31. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +11 -11
  32. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +14 -14
  33. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +4 -4
  34. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +3 -3
  35. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -10
  36. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
  37. package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
  38. package/dist/components/BbPopover/BbPopover.vue.d.ts +8 -8
  39. package/dist/components/BbRadio/BbRadio.vue.d.ts +10 -10
  40. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +27 -27
  41. package/dist/components/BbRating/BbRating.vue.d.ts +10 -10
  42. package/dist/components/BbSelect/BbSelect.vue.d.ts +19 -19
  43. package/dist/components/BbSlider/BbSlider.vue.d.ts +8 -8
  44. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
  45. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -2
  46. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
  47. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +20 -20
  48. package/dist/components/BbTab/BbTab.vue.d.ts +5 -5
  49. package/dist/components/BbTable/BbTable.vue.d.ts +12 -12
  50. package/dist/components/BbTable/types.d.ts +108 -108
  51. package/dist/components/BbTag/BbTag.vue.d.ts +13 -13
  52. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +11 -11
  53. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -10
  54. package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
  55. package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
  56. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
  57. package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
  58. package/dist/composables/useConfirm.d.ts +10 -10
  59. package/dist/composables/useOptions.d.ts +2 -2
  60. package/dist/composables/useRoute.d.ts +2 -2
  61. package/dist/composables/useRouter.d.ts +1 -1
  62. package/dist/composables/useToast.d.ts +5 -5
  63. package/dist/composables/useWizard.d.ts +1 -1
  64. package/dist/index.d.ts +126 -126
  65. package/dist/index101.js +53 -58
  66. package/dist/index101.js.map +1 -1
  67. package/dist/index103.js +18 -18
  68. package/dist/index103.js.map +1 -1
  69. package/dist/index105.js +16 -16
  70. package/dist/index105.js.map +1 -1
  71. package/dist/index107.js +15 -15
  72. package/dist/index107.js.map +1 -1
  73. package/dist/index109.js.map +1 -1
  74. package/dist/index11.js +7 -7
  75. package/dist/index11.js.map +1 -1
  76. package/dist/index111.js +16 -16
  77. package/dist/index111.js.map +1 -1
  78. package/dist/index113.js +2 -2
  79. package/dist/index113.js.map +1 -1
  80. package/dist/index115.js +6 -6
  81. package/dist/index115.js.map +1 -1
  82. package/dist/index116.js +1 -1
  83. package/dist/index116.js.map +1 -1
  84. package/dist/index117.js +1 -1
  85. package/dist/index117.js.map +1 -1
  86. package/dist/index118.js +4 -4
  87. package/dist/index118.js.map +1 -1
  88. package/dist/index119.js +5 -5
  89. package/dist/index119.js.map +1 -1
  90. package/dist/index120.js.map +1 -1
  91. package/dist/index121.js +1 -1
  92. package/dist/index121.js.map +1 -1
  93. package/dist/index122.js.map +1 -1
  94. package/dist/index124.js.map +1 -1
  95. package/dist/index125.js +4 -4
  96. package/dist/index125.js.map +1 -1
  97. package/dist/index126.js +1 -1
  98. package/dist/index126.js.map +1 -1
  99. package/dist/index127.js +1 -1
  100. package/dist/index128.js +4 -1
  101. package/dist/index128.js.map +1 -1
  102. package/dist/index129.js.map +1 -1
  103. package/dist/index13.js +11 -11
  104. package/dist/index13.js.map +1 -1
  105. package/dist/index130.js.map +1 -1
  106. package/dist/index131.js +2 -2
  107. package/dist/index15.js +229 -227
  108. package/dist/index15.js.map +1 -1
  109. package/dist/index17.js +61 -62
  110. package/dist/index17.js.map +1 -1
  111. package/dist/index19.js +22 -22
  112. package/dist/index19.js.map +1 -1
  113. package/dist/index196.js +2 -5
  114. package/dist/index196.js.map +1 -1
  115. package/dist/index197.js +2 -16
  116. package/dist/index197.js.map +1 -1
  117. package/dist/index198.js +4 -16
  118. package/dist/index198.js.map +1 -1
  119. package/dist/index199.js +294 -18
  120. package/dist/index199.js.map +1 -1
  121. package/dist/index2.js +23 -23
  122. package/dist/index2.js.map +1 -1
  123. package/dist/index200.js +13 -17
  124. package/dist/index200.js.map +1 -1
  125. package/dist/index201.js +13 -26
  126. package/dist/index201.js.map +1 -1
  127. package/dist/index202.js +19 -8
  128. package/dist/index202.js.map +1 -1
  129. package/dist/index203.js +20 -2
  130. package/dist/index203.js.map +1 -1
  131. package/dist/index204.js +29 -3
  132. package/dist/index204.js.map +1 -1
  133. package/dist/index205.js +8 -35
  134. package/dist/index205.js.map +1 -1
  135. package/dist/index206.js +2 -6
  136. package/dist/index206.js.map +1 -1
  137. package/dist/index207.js +235 -2
  138. package/dist/index207.js.map +1 -1
  139. package/dist/index208.js +3 -4
  140. package/dist/index208.js.map +1 -1
  141. package/dist/index209.js +33 -376
  142. package/dist/index209.js.map +1 -1
  143. package/dist/index21.js +4 -4
  144. package/dist/index21.js.map +1 -1
  145. package/dist/index210.js +6 -2
  146. package/dist/index210.js.map +1 -1
  147. package/dist/index211.js +8 -371
  148. package/dist/index211.js.map +1 -1
  149. package/dist/index212.js +378 -2
  150. package/dist/index212.js.map +1 -1
  151. package/dist/index213.js +134 -3
  152. package/dist/index213.js.map +1 -1
  153. package/dist/index214.js +2 -3
  154. package/dist/index214.js.map +1 -1
  155. package/dist/index215.js +174 -2
  156. package/dist/index215.js.map +1 -1
  157. package/dist/index216.js +23 -2
  158. package/dist/index216.js.map +1 -1
  159. package/dist/index217.js +365 -126
  160. package/dist/index217.js.map +1 -1
  161. package/dist/index218.js +3 -174
  162. package/dist/index218.js.map +1 -1
  163. package/dist/index219.js +3 -23
  164. package/dist/index219.js.map +1 -1
  165. package/dist/index220.js +2 -10
  166. package/dist/index220.js.map +1 -1
  167. package/dist/index221.js +26 -233
  168. package/dist/index221.js.map +1 -1
  169. package/dist/index222.js +16 -8
  170. package/dist/index222.js.map +1 -1
  171. package/dist/index223.js +2 -121
  172. package/dist/index223.js.map +1 -1
  173. package/dist/index224.js +8 -27
  174. package/dist/index224.js.map +1 -1
  175. package/dist/index225.js +120 -12
  176. package/dist/index225.js.map +1 -1
  177. package/dist/index226.js +1 -1
  178. package/dist/index227.js +3 -434
  179. package/dist/index227.js.map +1 -1
  180. package/dist/index228.js +2 -89
  181. package/dist/index228.js.map +1 -1
  182. package/dist/index229.js +6 -200
  183. package/dist/index229.js.map +1 -1
  184. package/dist/index23.js +15 -17
  185. package/dist/index23.js.map +1 -1
  186. package/dist/index230.js +2 -295
  187. package/dist/index230.js.map +1 -1
  188. package/dist/index231.js +2 -6
  189. package/dist/index231.js.map +1 -1
  190. package/dist/index232.js +2 -2
  191. package/dist/index236.js +435 -2
  192. package/dist/index236.js.map +1 -1
  193. package/dist/index237.js +89 -2
  194. package/dist/index237.js.map +1 -1
  195. package/dist/index238.js +199 -3
  196. package/dist/index238.js.map +1 -1
  197. package/dist/index239.js +218 -111
  198. package/dist/index239.js.map +1 -1
  199. package/dist/index240.js +246 -94
  200. package/dist/index240.js.map +1 -1
  201. package/dist/index241.js +2 -2
  202. package/dist/index241.js.map +1 -1
  203. package/dist/index242.js +111 -218
  204. package/dist/index242.js.map +1 -1
  205. package/dist/index243.js +94 -246
  206. package/dist/index243.js.map +1 -1
  207. package/dist/index244.js +17 -19
  208. package/dist/index244.js.map +1 -1
  209. package/dist/index246.js +9 -9
  210. package/dist/index246.js.map +1 -1
  211. package/dist/index247.js +4 -1
  212. package/dist/index247.js.map +1 -1
  213. package/dist/index248.js +2 -2
  214. package/dist/index249.js +37 -14
  215. package/dist/index249.js.map +1 -1
  216. package/dist/index25.js +4 -4
  217. package/dist/index25.js.map +1 -1
  218. package/dist/index250.js +2 -38
  219. package/dist/index250.js.map +1 -1
  220. package/dist/index251.js +2 -2
  221. package/dist/index251.js.map +1 -1
  222. package/dist/index252.js +15 -2
  223. package/dist/index252.js.map +1 -1
  224. package/dist/index253.js +3 -2
  225. package/dist/index253.js.map +1 -1
  226. package/dist/index255.js +2 -3
  227. package/dist/index255.js.map +1 -1
  228. package/dist/index27.js +7 -7
  229. package/dist/index27.js.map +1 -1
  230. package/dist/index29.js +15 -15
  231. package/dist/index29.js.map +1 -1
  232. package/dist/index3.js +2 -1
  233. package/dist/index3.js.map +1 -1
  234. package/dist/index31.js +29 -29
  235. package/dist/index31.js.map +1 -1
  236. package/dist/index33.js +11 -12
  237. package/dist/index33.js.map +1 -1
  238. package/dist/index35.js +2 -2
  239. package/dist/index35.js.map +1 -1
  240. package/dist/index37.js +12 -12
  241. package/dist/index37.js.map +1 -1
  242. package/dist/index39.js +5 -7
  243. package/dist/index39.js.map +1 -1
  244. package/dist/index4.js.map +1 -1
  245. package/dist/index41.js +5 -5
  246. package/dist/index41.js.map +1 -1
  247. package/dist/index43.js +19 -16
  248. package/dist/index43.js.map +1 -1
  249. package/dist/index45.js +9 -9
  250. package/dist/index45.js.map +1 -1
  251. package/dist/index47.js +4 -4
  252. package/dist/index47.js.map +1 -1
  253. package/dist/index49.js +1 -1
  254. package/dist/index49.js.map +1 -1
  255. package/dist/index5.js +7 -6
  256. package/dist/index5.js.map +1 -1
  257. package/dist/index51.js +6 -6
  258. package/dist/index51.js.map +1 -1
  259. package/dist/index53.js.map +1 -1
  260. package/dist/index55.js +20 -20
  261. package/dist/index55.js.map +1 -1
  262. package/dist/index57.js +35 -35
  263. package/dist/index57.js.map +1 -1
  264. package/dist/index59.js +8 -8
  265. package/dist/index59.js.map +1 -1
  266. package/dist/index6.js +38 -38
  267. package/dist/index6.js.map +1 -1
  268. package/dist/index61.js +27 -27
  269. package/dist/index61.js.map +1 -1
  270. package/dist/index63.js +4 -4
  271. package/dist/index63.js.map +1 -1
  272. package/dist/index65.js +20 -20
  273. package/dist/index65.js.map +1 -1
  274. package/dist/index67.js +26 -26
  275. package/dist/index67.js.map +1 -1
  276. package/dist/index69.js +21 -19
  277. package/dist/index69.js.map +1 -1
  278. package/dist/index7.js.map +1 -1
  279. package/dist/index71.js +2 -2
  280. package/dist/index71.js.map +1 -1
  281. package/dist/index72.js +3 -3
  282. package/dist/index72.js.map +1 -1
  283. package/dist/index73.js +14 -14
  284. package/dist/index73.js.map +1 -1
  285. package/dist/index75.js +18 -18
  286. package/dist/index75.js.map +1 -1
  287. package/dist/index77.js +11 -11
  288. package/dist/index77.js.map +1 -1
  289. package/dist/index79.js +15 -15
  290. package/dist/index79.js.map +1 -1
  291. package/dist/index8.js +10 -7
  292. package/dist/index8.js.map +1 -1
  293. package/dist/index81.js +1 -1
  294. package/dist/index81.js.map +1 -1
  295. package/dist/index83.js +20 -20
  296. package/dist/index83.js.map +1 -1
  297. package/dist/index85.js +34 -34
  298. package/dist/index85.js.map +1 -1
  299. package/dist/index87.js +18 -18
  300. package/dist/index87.js.map +1 -1
  301. package/dist/index89.js.map +1 -1
  302. package/dist/index9.js.map +1 -1
  303. package/dist/index91.js +53 -53
  304. package/dist/index91.js.map +1 -1
  305. package/dist/index93.js +16 -16
  306. package/dist/index93.js.map +1 -1
  307. package/dist/index95.js +21 -21
  308. package/dist/index95.js.map +1 -1
  309. package/dist/index97.js +37 -37
  310. package/dist/index97.js.map +1 -1
  311. package/dist/index99.js +18 -18
  312. package/dist/index99.js.map +1 -1
  313. package/dist/style.css +1 -1
  314. package/dist/types/CommonProps.d.ts +18 -18
  315. package/dist/types/ExtractGenericFromComputedRef.d.ts +1 -1
  316. package/dist/types/ExtractGenericFromRef.d.ts +1 -1
  317. package/dist/types/VoidHtmlElements.d.ts +1 -1
  318. package/dist/utilities/functions/cloneDeep.d.ts +1 -1
  319. package/dist/utilities/functions/debounce.d.ts +1 -1
  320. package/dist/utilities/functions/flow.d.ts +1 -1
  321. package/dist/utilities/functions/get.d.ts +1 -1
  322. package/dist/utilities/functions/isNotNil.d.ts +1 -1
  323. package/dist/utilities/functions/mapValues.d.ts +1 -1
  324. package/dist/utilities/functions/merge.d.ts +1 -1
  325. package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
  326. package/dist/utilities/functions/overEvery.d.ts +1 -1
  327. package/dist/utilities/functions/percentage.d.ts +4 -4
  328. package/dist/utilities/functions/pick.d.ts +1 -1
  329. package/dist/utilities/functions/pickBy.d.ts +1 -1
  330. package/dist/utilities/functions/roundToTheNearest.d.ts +1 -1
  331. package/package.json +93 -77
  332. package/dist/index256.js +0 -5
  333. package/dist/index256.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index199.js","sources":["../node_modules/dayjs/locale/it.js"],"sourcesContent":["!function(e,o){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=o(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],o):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_it=o(e.dayjs)}(this,(function(e){\"use strict\";function o(e){return e&&\"object\"==typeof e&&\"default\"in e?e:{default:e}}var t=o(e),n={name:\"it\",weekdays:\"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato\".split(\"_\"),weekdaysShort:\"dom_lun_mar_mer_gio_ven_sab\".split(\"_\"),weekdaysMin:\"do_lu_ma_me_gi_ve_sa\".split(\"_\"),months:\"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre\".split(\"_\"),weekStart:1,monthsShort:\"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic\".split(\"_\"),formats:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},relativeTime:{future:\"tra %s\",past:\"%s fa\",s:\"qualche secondo\",m:\"un minuto\",mm:\"%d minuti\",h:\"un' ora\",hh:\"%d ore\",d:\"un giorno\",dd:\"%d giorni\",M:\"un mese\",MM:\"%d mesi\",y:\"un anno\",yy:\"%d anni\"},ordinal:function(e){return e+\"º\"}};return t.default.locale(n,null,!0),n}));"],"names":["e","module","require$$0","this","t","n"],"mappings":";;;;AAAA,GAAC,SAASA,GAAE,GAAE;AAAsD,IAAAC,EAAA,UAAe,EAAEC,EAAgB,CAAA;AAAA,EAA4I,GAAEC,GAAM,SAASH,GAAE;AAAc,aAAS,EAAE,GAAE;AAAC,aAAO,KAAa,OAAO,KAAjB,YAAoB,aAAY,IAAE,IAAE,EAAC,SAAQ,EAAC;AAAA,IAAC;AAAC,QAAII,IAAE,EAAEJ,CAAC,GAAEK,IAAE,EAAC,MAAK,MAAK,UAAS,2DAA2D,MAAM,GAAG,GAAE,eAAc,8BAA8B,MAAM,GAAG,GAAE,aAAY,uBAAuB,MAAM,GAAG,GAAE,QAAO,gGAAgG,MAAM,GAAG,GAAE,WAAU,GAAE,aAAY,kDAAkD,MAAM,GAAG,GAAE,SAAQ,EAAC,IAAG,SAAQ,KAAI,YAAW,GAAE,cAAa,IAAG,eAAc,KAAI,qBAAoB,MAAK,yBAAwB,GAAE,cAAa,EAAC,QAAO,UAAS,MAAK,SAAQ,GAAE,mBAAkB,GAAE,aAAY,IAAG,aAAY,GAAE,WAAU,IAAG,UAAS,GAAE,aAAY,IAAG,aAAY,GAAE,WAAU,IAAG,WAAU,GAAE,WAAU,IAAG,UAAS,GAAE,SAAQ,SAAS,GAAE;AAAC,aAAO,IAAE;AAAA,IAAG,EAAC;AAAE,WAAOD,EAAE,QAAQ,OAAOC,GAAE,MAAK,EAAE,GAAEA;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index199.js","sources":["../node_modules/dayjs/dayjs.min.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));"],"names":["t","e","module","this","n","r","i","s","u","a","o","c","f","h","d","l","$","y","M","m","v","g","p","S","_","w","O","b","D","k"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,YAAeD,EAAmH;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,QAAIH,IAAE,KAAIC,IAAE,KAAIG,IAAE,MAAKC,IAAE,eAAcC,IAAE,UAASC,IAAE,UAASC,IAAE,QAAOC,IAAE,OAAMC,IAAE,QAAOC,IAAE,SAAQC,IAAE,WAAUC,IAAE,QAAOC,IAAE,QAAOC,IAAE,gBAAeC,IAAE,8FAA6FC,IAAE,uFAAsFC,IAAE,EAAC,MAAK,MAAK,UAAS,2DAA2D,MAAM,GAAG,GAAE,QAAO,wFAAwF,MAAM,GAAG,GAAE,SAAQ,SAASlB,GAAE;AAAC,UAAIC,IAAE,CAAC,MAAK,MAAK,MAAK,IAAI,GAAEG,IAAEJ,IAAE;AAAI,aAAM,MAAIA,KAAGC,GAAGG,IAAE,MAAI,EAAE,KAAGH,EAAEG,CAAC,KAAGH,EAAE,CAAC,KAAG;AAAA,IAAG,EAAC,GAAEkB,IAAE,SAAS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AAC,MAAKC,CAAC,GAAE,CAAC,MAAKC,CAAC,GAAE,CAAC,MAAKE,CAAC,GAAE,CAAC,MAAKE,CAAC,GAAE,CAAC,MAAKC,CAAC,CAAC,EAAE,QAAS,SAASd,GAAE;AAAC,MAAA6B,EAAE7B,EAAE,CAAC,CAAC,IAAE,SAASC,GAAE;AAAC,eAAO,KAAK,GAAGA,GAAED,EAAE,CAAC,GAAEA,EAAE,CAAC,CAAC;AAAA,MAAC;AAAA,IAAC,IAAI0B,EAAE,SAAO,SAAS1B,GAAEC,GAAE;AAAC,aAAOD,EAAE,OAAKA,EAAEC,GAAEuB,GAAEE,CAAC,GAAE1B,EAAE,KAAG,KAAI0B;AAAA,IAAC,GAAEA,EAAE,SAAOD,GAAEC,EAAE,UAAQH,GAAEG,EAAE,OAAK,SAAS1B,GAAE;AAAC,aAAO0B,EAAE,MAAI1B,CAAC;AAAA,IAAC,GAAE0B,EAAE,KAAG,EAAEL,CAAC,GAAEK,EAAE,KAAG,GAAEA,EAAE,IAAE,IAAGA;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index2.js CHANGED
@@ -1,43 +1,43 @@
1
- import { getCurrentInstance as x, ref as f, onBeforeUnmount as m } from "vue";
2
- const E = (d = "bitboss-ui") => {
1
+ import { ref as i, onBeforeUnmount as h } from "vue";
2
+ const b = (l = "bitboss-ui") => {
3
3
  let r = 0;
4
4
  return { useBroadCastChannel: () => {
5
- var c, u;
6
- r++, !!((u = (c = x()) == null ? void 0 : c.proxy) != null && u.$nuxt) && process.client;
7
- const p = f(!1), t = f(), s = {};
8
- function v(n, e = void 0) {
9
- t.value && t.value.postMessage({ type: n, params: e });
5
+ r++;
6
+ const f = i(!1), o = i(), s = {};
7
+ function d(e, n = void 0) {
8
+ o.value && o.value.postMessage({ type: e, params: n });
10
9
  }
11
- const h = () => {
12
- r--, t.value && !r && t.value.close(), p.value = !0;
13
- }, C = (n, e, a = {
10
+ const v = () => {
11
+ r--, o.value && !r && o.value.close(), f.value = !0;
12
+ }, p = (e, n, a = {
14
13
  removeonUnmount: !0
15
14
  }) => {
16
- var o;
17
- s[n] === void 0 && (s[n] = []), (o = s[n]) == null || o.push(e), a.removeonUnmount && s[n] && m(() => {
18
- const i = s[n], l = i.indexOf(e);
19
- l !== -1 && i.splice(l, 1);
15
+ var t;
16
+ s[e] === void 0 && (s[e] = []), (t = s[e]) == null || t.push(n), a.removeonUnmount && s[e] && h(() => {
17
+ const c = s[e], u = c.indexOf(n);
18
+ u !== -1 && c.splice(u, 1);
20
19
  });
21
20
  };
22
21
  try {
23
- t.value = new BroadcastChannel(d), t.value.addEventListener(
22
+ o.value = new BroadcastChannel(l), o.value.addEventListener(
24
23
  "message",
25
- (n) => {
26
- const e = n.data, a = s[e.type] ?? [];
27
- "params" in e ? a.forEach((o) => o(e.params)) : a.forEach((o) => o());
24
+ (e) => {
25
+ const n = e.data, a = s[n.type] ?? [];
26
+ "params" in n ? a.forEach((t) => t(n.params)) : a.forEach((t) => t());
28
27
  },
29
28
  { passive: !0 }
30
29
  );
31
- } catch {
30
+ } catch (e) {
31
+ console.error(e);
32
32
  }
33
33
  return {
34
- on: C,
35
- post: v,
36
- close: h
34
+ on: p,
35
+ post: d,
36
+ close: v
37
37
  };
38
38
  } };
39
39
  };
40
40
  export {
41
- E as useBroadcastChannelInstance
41
+ b as useBroadcastChannelInstance
42
42
  };
43
43
  //# sourceMappingURL=index2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index2.js","sources":["../src/composables/useBroadcastChannelInstance.ts"],"sourcesContent":["import { getCurrentInstance, onBeforeUnmount, ref } from \"vue\";\n\ntype MessageMap = { [key: string]: any };\n\ntype Message<T extends MessageMap> = {\n [Name in keyof T]: T[Name] extends void\n ? { type: Name }\n : { type: Name; params: T[Name] };\n}[keyof T];\n\nexport const useBroadcastChannelInstance = <T extends MessageMap>(\n name = \"bitboss-ui\"\n) => {\n let instances = 0;\n const useBroadCastChannel = () => {\n instances++;\n // @ts-ignore\n const isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n let isSupported = false;\n if (isNuxt) {\n // @ts-ignore\n if (process.client) {\n if (window && \"BroadcastChannel\" in window) isSupported = true;\n }\n } else if (window && \"BroadcastChannel\" in window) isSupported = true;\n const isClosed = ref(false);\n const channel = ref<BroadcastChannel | undefined>();\n const subscribers: Partial<Record<keyof T, ((...args: any[]) => any)[]>> =\n {};\n\n function post<Key extends keyof T>(message: Key, params: T[Key]): void;\n function post<Key extends keyof T>(message: Key, params?: never): void;\n function post(message: keyof T, params: any = undefined) {\n if (channel.value) channel.value.postMessage({ type: message, params });\n }\n\n const close = () => {\n instances--;\n if (channel.value && !instances) {\n channel.value.close();\n }\n isClosed.value = true;\n };\n\n const on = <Key extends keyof T>(\n message: Key,\n fn: T[Key] extends void ? () => any : (arg: T[Key]) => any,\n options: {\n removeonUnmount: boolean;\n } = {\n removeonUnmount: true,\n }\n ) => {\n if (subscribers[message] === undefined) subscribers[message] = [];\n\n subscribers[message]?.push(fn);\n if (options.removeonUnmount && subscribers[message]) {\n onBeforeUnmount(() => {\n const arr = subscribers[message]!;\n const indexOfFn = arr.indexOf(fn);\n if (indexOfFn !== -1) {\n arr.splice(indexOfFn, 1);\n }\n });\n }\n };\n\n try {\n channel.value = new BroadcastChannel(name);\n\n channel.value.addEventListener(\n \"message\",\n (e: MessageEvent) => {\n const data = e.data as Message<T>;\n const subs = subscribers[data.type] ?? [];\n if (\"params\" in data) {\n subs.forEach((s) => s(data.params));\n } else {\n subs.forEach((s) => s());\n }\n },\n { passive: true }\n );\n } catch (error) {}\n\n return {\n on,\n post,\n close,\n };\n };\n return { useBroadCastChannel };\n};"],"names":["useBroadcastChannelInstance","name","instances","_b","_a","getCurrentInstance","isClosed","ref","channel","subscribers","post","message","params","close","on","fn","options","onBeforeUnmount","arr","indexOfFn","e","data","subs","s"],"mappings":";AAUa,MAAAA,IAA8B,CACzCC,IAAO,iBACJ;AACH,MAAIC,IAAY;AA8EhB,SAAO,EA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C;AAEV,WAAA;AAAA,MACL,IAAAT;AAAA,MACA,MAAAJ;AAAA,MACA,OAAAG;AAAA,IAAA;AAAA,EACF,EAE2B;AAC/B;"}
1
+ {"version":3,"file":"index2.js","sources":["../src/composables/useBroadcastChannelInstance.ts"],"sourcesContent":["import { onBeforeUnmount, ref } from 'vue';\n\ntype MessageMap = { [key: string]: any };\n\ntype Message<T extends MessageMap> = {\n\t[Name in keyof T]: T[Name] extends void\n\t\t? { type: Name }\n\t\t: { type: Name; params: T[Name] };\n}[keyof T];\n\nexport const useBroadcastChannelInstance = <T extends MessageMap>(\n\tname = 'bitboss-ui'\n) => {\n\tlet instances = 0;\n\tconst useBroadCastChannel = () => {\n\t\tinstances++;\n\n\t\tconst isClosed = ref(false);\n\t\tconst channel = ref<BroadcastChannel | undefined>();\n\t\tconst subscribers: Partial<Record<keyof T, ((...args: any[]) => any)[]>> =\n\t\t\t{};\n\n\t\tfunction post<Key extends keyof T>(message: Key, params: T[Key]): void;\n\t\tfunction post<Key extends keyof T>(message: Key, params?: never): void;\n\t\tfunction post(message: keyof T, params: any = undefined) {\n\t\t\tif (channel.value) channel.value.postMessage({ type: message, params });\n\t\t}\n\n\t\tconst close = () => {\n\t\t\tinstances--;\n\t\t\tif (channel.value && !instances) {\n\t\t\t\tchannel.value.close();\n\t\t\t}\n\t\t\tisClosed.value = true;\n\t\t};\n\n\t\tconst on = <Key extends keyof T>(\n\t\t\tmessage: Key,\n\t\t\tfn: T[Key] extends void ? () => any : (arg: T[Key]) => any,\n\t\t\toptions: {\n\t\t\t\tremoveonUnmount: boolean;\n\t\t\t} = {\n\t\t\t\tremoveonUnmount: true,\n\t\t\t}\n\t\t) => {\n\t\t\tif (subscribers[message] === undefined) subscribers[message] = [];\n\n\t\t\tsubscribers[message]?.push(fn);\n\t\t\tif (options.removeonUnmount && subscribers[message]) {\n\t\t\t\tonBeforeUnmount(() => {\n\t\t\t\t\tconst arr = subscribers[message]!;\n\t\t\t\t\tconst indexOfFn = arr.indexOf(fn);\n\t\t\t\t\tif (indexOfFn !== -1) {\n\t\t\t\t\t\tarr.splice(indexOfFn, 1);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\ttry {\n\t\t\tchannel.value = new BroadcastChannel(name);\n\n\t\t\tchannel.value.addEventListener(\n\t\t\t\t'message',\n\t\t\t\t(e: MessageEvent) => {\n\t\t\t\t\tconst data = e.data as Message<T>;\n\t\t\t\t\tconst subs = subscribers[data.type] ?? [];\n\t\t\t\t\tif ('params' in data) {\n\t\t\t\t\t\tsubs.forEach((s) => s(data.params));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsubs.forEach((s) => s());\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{ passive: true }\n\t\t\t);\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t}\n\n\t\treturn {\n\t\t\ton,\n\t\t\tpost,\n\t\t\tclose,\n\t\t};\n\t};\n\treturn { useBroadCastChannel };\n};\n"],"names":["useBroadcastChannelInstance","name","instances","isClosed","ref","channel","subscribers","post","message","params","close","on","fn","options","_a","onBeforeUnmount","arr","indexOfFn","data","subs","s","error"],"mappings":";AAUa,MAAAA,IAA8B,CAC1CC,IAAO,iBACH;AACJ,MAAIC,IAAY;AAwEhB,SAAO,EAAE,qBAvEmB,MAAM;AACjC,IAAAA;AAEM,UAAAC,IAAWC,EAAI,EAAK,GACpBC,IAAUD,KACVE,IACL,CAAA;AAIQ,aAAAC,EAAKC,GAAkBC,IAAc,QAAW;AACxD,MAAIJ,EAAQ,SAAOA,EAAQ,MAAM,YAAY,EAAE,MAAMG,GAAS,QAAAC,GAAQ;AAAA,IACvE;AAEA,UAAMC,IAAQ,MAAM;AACnB,MAAAR,KACIG,EAAQ,SAAS,CAACH,KACrBG,EAAQ,MAAM,SAEfF,EAAS,QAAQ;AAAA,IAAA,GAGZQ,IAAK,CACVH,GACAI,GACAC,IAEI;AAAA,MACH,iBAAiB;AAAA,IAAA,MAEd;;AACA,MAAAP,EAAYE,CAAO,MAAM,WAAuBF,EAAAE,CAAO,IAAI,MAEnDM,IAAAR,EAAAE,CAAO,MAAP,QAAAM,EAAU,KAAKF,IACvBC,EAAQ,mBAAmBP,EAAYE,CAAO,KACjDO,EAAgB,MAAM;AACf,cAAAC,IAAMV,EAAYE,CAAO,GACzBS,IAAYD,EAAI,QAAQJ,CAAE;AAChC,QAAIK,MAAc,MACbD,EAAA,OAAOC,GAAW,CAAC;AAAA,MACxB,CACA;AAAA,IACF;AAGG,QAAA;AACK,MAAAZ,EAAA,QAAQ,IAAI,iBAAiBJ,CAAI,GAEzCI,EAAQ,MAAM;AAAA,QACb;AAAA,QACA,CAAC,MAAoB;AACpB,gBAAMa,IAAO,EAAE,MACTC,IAAOb,EAAYY,EAAK,IAAI,KAAK,CAAA;AACvC,UAAI,YAAYA,IACfC,EAAK,QAAQ,CAACC,MAAMA,EAAEF,EAAK,MAAM,CAAC,IAElCC,EAAK,QAAQ,CAACC,MAAMA,EAAG,CAAA;AAAA,QAEzB;AAAA,QACA,EAAE,SAAS,GAAK;AAAA,MAAA;AAAA,aAETC,GAAO;AACf,cAAQ,MAAMA,CAAK;AAAA,IACpB;AAEO,WAAA;AAAA,MACN,IAAAV;AAAA,MACA,MAAAJ;AAAA,MACA,OAAAG;AAAA,IAAA;AAAA,EACD,EAE4B;AAC9B;"}
package/dist/index200.js CHANGED
@@ -1,23 +1,19 @@
1
- import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index231.js";
2
- import { __module as n } from "./index236.js";
3
- (function(u, l) {
4
- (function(c, e) {
5
- u.exports = e();
6
- })(s, function() {
7
- return function(c, e, r) {
8
- r.updateLocale = function(f, o) {
9
- var t = r.Ls[f];
10
- if (t)
11
- return (o ? Object.keys(o) : []).forEach(function(a) {
12
- t[a] = o[a];
13
- }), t;
1
+ import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index229.js";
2
+ import { __module as e } from "./index231.js";
3
+ (function(s, a) {
4
+ (function(i, t) {
5
+ s.exports = t();
6
+ })(n, function() {
7
+ return function(i, t) {
8
+ t.prototype.isSameOrAfter = function(r, o) {
9
+ return this.isSame(r, o) || this.isAfter(r, o);
14
10
  };
15
11
  };
16
12
  });
17
- })(n);
18
- var i = n.exports;
19
- const x = /* @__PURE__ */ p(i);
13
+ })(e);
14
+ var m = e.exports;
15
+ const c = /* @__PURE__ */ f(m);
20
16
  export {
21
- x as default
17
+ c as default
22
18
  };
23
19
  //# sourceMappingURL=index200.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index200.js","sources":["../node_modules/dayjs/plugin/updateLocale.js"],"sourcesContent":["!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_updateLocale=n()}(this,(function(){\"use strict\";return function(e,n,t){t.updateLocale=function(e,n){var o=t.Ls[e];if(o)return(n?Object.keys(n):[]).forEach((function(e){o[e]=n[e]})),o}}}));"],"names":["e","n","module","this","t","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAuI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAEG,GAAE;AAAC,MAAAA,EAAE,eAAa,SAASJ,GAAEC,GAAE;AAAC,YAAII,IAAED,EAAE,GAAGJ,CAAC;AAAE,YAAGK;AAAE,kBAAOJ,IAAE,OAAO,KAAKA,CAAC,IAAE,CAAA,GAAI,QAAS,SAASD,GAAE;AAAC,YAAAK,EAAEL,CAAC,IAAEC,EAAED,CAAC;AAAA,UAAC,IAAIK;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index200.js","sources":["../node_modules/dayjs/plugin/isSameOrAfter.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrAfter=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}));"],"names":["e","module","this","t"],"mappings":";;;AAAA,GAAC,SAASA,GAAE,GAAE;AAAsD,IAAAC,EAAe,UAAA,EAAwI;AAAA,EAAA,GAAEC,GAAM,WAAU;AAAc,WAAO,SAASF,GAAE,GAAE;AAAC,QAAE,UAAU,gBAAc,SAASA,GAAEG,GAAE;AAAC,eAAO,KAAK,OAAOH,GAAEG,CAAC,KAAG,KAAK,QAAQH,GAAEG,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index201.js CHANGED
@@ -1,32 +1,19 @@
1
- import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index231.js";
2
- import { __module as n } from "./index237.js";
3
- (function(f, p) {
4
- (function(r, e) {
5
- f.exports = e();
6
- })(k, function() {
7
- var r = "week", e = "year";
8
- return function(w, u, a) {
9
- var o = u.prototype;
10
- o.week = function(t) {
11
- if (t === void 0 && (t = null), t !== null)
12
- return this.add(7 * (t - this.week()), "day");
13
- var s = this.$locale().yearStart || 1;
14
- if (this.month() === 11 && this.date() > 25) {
15
- var l = a(this).startOf(e).add(1, e).date(s), d = a(this).endOf(r);
16
- if (l.isBefore(d))
17
- return 1;
18
- }
19
- var h = a(this).startOf(e).date(s).startOf(r).subtract(1, "millisecond"), i = this.diff(h, r, !0);
20
- return i < 0 ? a(this).startOf("week").week() : Math.ceil(i);
21
- }, o.weeks = function(t) {
22
- return t === void 0 && (t = null), this.week(t);
1
+ import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index229.js";
2
+ import { __module as t } from "./index232.js";
3
+ (function(s, a) {
4
+ (function(f, o) {
5
+ s.exports = o();
6
+ })(n, function() {
7
+ return function(f, o) {
8
+ o.prototype.isSameOrBefore = function(e, r) {
9
+ return this.isSame(e, r) || this.isBefore(e, r);
23
10
  };
24
11
  };
25
12
  });
26
- })(n);
27
- var m = n.exports;
28
- const x = /* @__PURE__ */ c(m);
13
+ })(t);
14
+ var m = t.exports;
15
+ const c = /* @__PURE__ */ i(m);
29
16
  export {
30
- x as default
17
+ c as default
31
18
  };
32
19
  //# sourceMappingURL=index201.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index201.js","sources":["../node_modules/dayjs/plugin/weekOfYear.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_weekOfYear=t()}(this,(function(){\"use strict\";var e=\"week\",t=\"year\";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),\"day\");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,\"millisecond\"),o=this.diff(a,e,!0);return o<0?r(this).startOf(\"week\").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}));"],"names":["e","t","module","this","i","n","r","f","s","a","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAqI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,QAAIH,IAAE,QAAOC,IAAE;AAAO,WAAO,SAASG,GAAEC,GAAEC,GAAE;AAAC,UAAIC,IAAEF,EAAE;AAAU,MAAAE,EAAE,OAAK,SAASH,GAAE;AAAC,YAAYA,MAAT,WAAaA,IAAE,OAAaA,MAAP;AAAS,iBAAO,KAAK,IAAI,KAAGA,IAAE,KAAK,KAAI,IAAI,KAAK;AAAE,YAAIC,IAAE,KAAK,QAAO,EAAG,aAAW;AAAE,YAAQ,KAAK,MAAO,MAAjB,MAAmB,KAAK,KAAI,IAAG,IAAG;AAAC,cAAIE,IAAED,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,IAAI,GAAEA,CAAC,EAAE,KAAKI,CAAC,GAAEG,IAAEF,EAAE,IAAI,EAAE,MAAMN,CAAC;AAAE,cAAGO,EAAE,SAASC,CAAC;AAAE,mBAAO;AAAA,QAAC;AAAC,YAAIC,IAAEH,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,KAAKI,CAAC,EAAE,QAAQL,CAAC,EAAE,SAAS,GAAE,aAAa,GAAEU,IAAE,KAAK,KAAKD,GAAET,GAAE,EAAE;AAAE,eAAOU,IAAE,IAAEJ,EAAE,IAAI,EAAE,QAAQ,MAAM,EAAE,KAAI,IAAG,KAAK,KAAKI,CAAC;AAAA,MAAC,GAAEH,EAAE,QAAM,SAASP,GAAE;AAAC,eAAgBA,MAAT,WAAaA,IAAE,OAAM,KAAK,KAAKA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index201.js","sources":["../node_modules/dayjs/plugin/isSameOrBefore.js"],"sourcesContent":["!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrBefore=i()}(this,(function(){\"use strict\";return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)}}}));"],"names":["e","i","module","this"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAyI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAE;AAAC,MAAAA,EAAE,UAAU,iBAAe,SAAS,GAAEA,GAAE;AAAC,eAAO,KAAK,OAAO,GAAEA,CAAC,KAAG,KAAK,SAAS,GAAEA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index202.js CHANGED
@@ -1,11 +1,22 @@
1
- const s = (t, o) => t.reduce(
2
- (e, r, u, p) => {
3
- const n = o(r, u, p);
4
- return n in e || (e[n] = []), e[n].push(r), e;
5
- },
6
- {}
7
- );
1
+ import { getDefaultExportFromCjs as m, commonjsGlobal as i } from "./index229.js";
2
+ import { __module as r } from "./index233.js";
3
+ import { d as s } from "./index199.js";
4
+ (function(_, u) {
5
+ (function(e, t) {
6
+ _.exports = t(s);
7
+ })(i, function(e) {
8
+ function t(o) {
9
+ return o && typeof o == "object" && "default" in o ? o : { default: o };
10
+ }
11
+ var a = t(e), n = { name: "it", weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(o) {
12
+ return o + "º";
13
+ } };
14
+ return a.default.locale(n, null, !0), n;
15
+ });
16
+ })(r);
17
+ var d = r.exports;
18
+ const g = /* @__PURE__ */ m(d);
8
19
  export {
9
- s as groupBy
20
+ g as default
10
21
  };
11
22
  //# sourceMappingURL=index202.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index202.js","sources":["../src/utilities/functions/groupBy.ts"],"sourcesContent":["/**\n * Creates an object with keys corresponding to the return value of iteratee and values correspond to arrays of items\n */\n\nexport const groupBy = <T>(\n arr: T[],\n iteratee: (item: T, index: number, arr: T[]) => string | number | symbol\n): Record<ReturnType<typeof iteratee>, T[]> => {\n return arr.reduce(\n (acc: { [key: ReturnType<typeof iteratee>]: T[] }, curr, index, arr) => {\n const key = iteratee(curr, index, arr);\n if (!(key in acc)) {\n acc[key] = [];\n }\n acc[key].push(curr);\n return acc;\n },\n {}\n );\n};\n"],"names":["groupBy","arr","iteratee","acc","curr","index","key"],"mappings":"AAIa,MAAAA,IAAU,CACrBC,GACAC,MAEOD,EAAI;AAAA,EACT,CAACE,GAAkDC,GAAMC,GAAOJ,MAAQ;AACtE,UAAMK,IAAMJ,EAASE,GAAMC,GAAOJ,CAAG;AACjC,WAAEK,KAAOH,MACPA,EAAAG,CAAG,IAAI,KAETH,EAAAG,CAAG,EAAE,KAAKF,CAAI,GACXD;AAAA,EACT;AAAA,EACA,CAAC;AAAA;"}
1
+ {"version":3,"file":"index202.js","sources":["../node_modules/dayjs/locale/it.js"],"sourcesContent":["!function(e,o){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=o(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],o):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_it=o(e.dayjs)}(this,(function(e){\"use strict\";function o(e){return e&&\"object\"==typeof e&&\"default\"in e?e:{default:e}}var t=o(e),n={name:\"it\",weekdays:\"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato\".split(\"_\"),weekdaysShort:\"dom_lun_mar_mer_gio_ven_sab\".split(\"_\"),weekdaysMin:\"do_lu_ma_me_gi_ve_sa\".split(\"_\"),months:\"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre\".split(\"_\"),weekStart:1,monthsShort:\"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic\".split(\"_\"),formats:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},relativeTime:{future:\"tra %s\",past:\"%s fa\",s:\"qualche secondo\",m:\"un minuto\",mm:\"%d minuti\",h:\"un' ora\",hh:\"%d ore\",d:\"un giorno\",dd:\"%d giorni\",M:\"un mese\",MM:\"%d mesi\",y:\"un anno\",yy:\"%d anni\"},ordinal:function(e){return e+\"º\"}};return t.default.locale(n,null,!0),n}));"],"names":["o","module","require$$0","this","e","t"],"mappings":";;;;AAAA,GAAC,SAAS,GAAEA,GAAE;AAAsD,IAAAC,EAAA,UAAeD,EAAEE,CAAgB;AAAA,EAA4I,GAAEC,GAAM,SAAS,GAAE;AAAc,aAASH,EAAEI,GAAE;AAAC,aAAOA,KAAa,OAAOA,KAAjB,YAAoB,aAAYA,IAAEA,IAAE,EAAC,SAAQA,EAAC;AAAA,IAAC;AAAC,QAAIC,IAAEL,EAAE,CAAC,GAAE,IAAE,EAAC,MAAK,MAAK,UAAS,2DAA2D,MAAM,GAAG,GAAE,eAAc,8BAA8B,MAAM,GAAG,GAAE,aAAY,uBAAuB,MAAM,GAAG,GAAE,QAAO,gGAAgG,MAAM,GAAG,GAAE,WAAU,GAAE,aAAY,kDAAkD,MAAM,GAAG,GAAE,SAAQ,EAAC,IAAG,SAAQ,KAAI,YAAW,GAAE,cAAa,IAAG,eAAc,KAAI,qBAAoB,MAAK,yBAAwB,GAAE,cAAa,EAAC,QAAO,UAAS,MAAK,SAAQ,GAAE,mBAAkB,GAAE,aAAY,IAAG,aAAY,GAAE,WAAU,IAAG,UAAS,GAAE,aAAY,IAAG,aAAY,GAAE,WAAU,IAAG,WAAU,GAAE,WAAU,IAAG,UAAS,GAAE,SAAQ,SAASI,GAAE;AAAC,aAAOA,IAAE;AAAA,IAAG,EAAC;AAAE,WAAOC,EAAE,QAAQ,OAAO,GAAE,MAAK,EAAE,GAAE;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index203.js CHANGED
@@ -1,5 +1,23 @@
1
- const e = (t) => t[t.length - 1];
1
+ import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index229.js";
2
+ import { __module as n } from "./index234.js";
3
+ (function(u, l) {
4
+ (function(c, e) {
5
+ u.exports = e();
6
+ })(s, function() {
7
+ return function(c, e, r) {
8
+ r.updateLocale = function(f, o) {
9
+ var t = r.Ls[f];
10
+ if (t)
11
+ return (o ? Object.keys(o) : []).forEach(function(a) {
12
+ t[a] = o[a];
13
+ }), t;
14
+ };
15
+ };
16
+ });
17
+ })(n);
18
+ var i = n.exports;
19
+ const x = /* @__PURE__ */ p(i);
2
20
  export {
3
- e as last
21
+ x as default
4
22
  };
5
23
  //# sourceMappingURL=index203.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index203.js","sources":["../src/utilities/functions/last.ts"],"sourcesContent":["/** Takes an array and returns the last element of it */\nexport const last = <T>(arr: T[]) => arr[arr.length - 1] "],"names":["last","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAIA,EAAI,SAAS,CAAC;"}
1
+ {"version":3,"file":"index203.js","sources":["../node_modules/dayjs/plugin/updateLocale.js"],"sourcesContent":["!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define(n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_updateLocale=n()}(this,(function(){\"use strict\";return function(e,n,t){t.updateLocale=function(e,n){var o=t.Ls[e];if(o)return(n?Object.keys(n):[]).forEach((function(e){o[e]=n[e]})),o}}}));"],"names":["e","n","module","this","t","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAuI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAEG,GAAE;AAAC,MAAAA,EAAE,eAAa,SAASJ,GAAEC,GAAE;AAAC,YAAII,IAAED,EAAE,GAAGJ,CAAC;AAAE,YAAGK;AAAE,kBAAOJ,IAAE,OAAO,KAAKA,CAAC,IAAE,CAAA,GAAI,QAAS,SAASD,GAAE;AAAC,YAAAK,EAAEL,CAAC,IAAEC,EAAED,CAAC;AAAA,UAAC,IAAIK;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
package/dist/index204.js CHANGED
@@ -1,6 +1,32 @@
1
- import t from "./index228.js";
2
- const r = t;
1
+ import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index229.js";
2
+ import { __module as n } from "./index235.js";
3
+ (function(f, p) {
4
+ (function(r, e) {
5
+ f.exports = e();
6
+ })(k, function() {
7
+ var r = "week", e = "year";
8
+ return function(w, u, a) {
9
+ var o = u.prototype;
10
+ o.week = function(t) {
11
+ if (t === void 0 && (t = null), t !== null)
12
+ return this.add(7 * (t - this.week()), "day");
13
+ var s = this.$locale().yearStart || 1;
14
+ if (this.month() === 11 && this.date() > 25) {
15
+ var l = a(this).startOf(e).add(1, e).date(s), d = a(this).endOf(r);
16
+ if (l.isBefore(d))
17
+ return 1;
18
+ }
19
+ var h = a(this).startOf(e).date(s).startOf(r).subtract(1, "millisecond"), i = this.diff(h, r, !0);
20
+ return i < 0 ? a(this).startOf("week").week() : Math.ceil(i);
21
+ }, o.weeks = function(t) {
22
+ return t === void 0 && (t = null), this.week(t);
23
+ };
24
+ };
25
+ });
26
+ })(n);
27
+ var m = n.exports;
28
+ const x = /* @__PURE__ */ c(m);
3
29
  export {
4
- r as throttle
30
+ x as default
5
31
  };
6
32
  //# sourceMappingURL=index204.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index204.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from \"lodash.throttle\";\n\nexport const throttle = t;"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
1
+ {"version":3,"file":"index204.js","sources":["../node_modules/dayjs/plugin/weekOfYear.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_weekOfYear=t()}(this,(function(){\"use strict\";var e=\"week\",t=\"year\";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),\"day\");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,\"millisecond\"),o=this.diff(a,e,!0);return o<0?r(this).startOf(\"week\").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}));"],"names":["e","t","module","this","i","n","r","f","s","a","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAqI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,QAAIH,IAAE,QAAOC,IAAE;AAAO,WAAO,SAASG,GAAEC,GAAEC,GAAE;AAAC,UAAIC,IAAEF,EAAE;AAAU,MAAAE,EAAE,OAAK,SAASH,GAAE;AAAC,YAAYA,MAAT,WAAaA,IAAE,OAAaA,MAAP;AAAS,iBAAO,KAAK,IAAI,KAAGA,IAAE,KAAK,KAAI,IAAI,KAAK;AAAE,YAAIC,IAAE,KAAK,QAAO,EAAG,aAAW;AAAE,YAAQ,KAAK,MAAO,MAAjB,MAAmB,KAAK,KAAI,IAAG,IAAG;AAAC,cAAIE,IAAED,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,IAAI,GAAEA,CAAC,EAAE,KAAKI,CAAC,GAAEG,IAAEF,EAAE,IAAI,EAAE,MAAMN,CAAC;AAAE,cAAGO,EAAE,SAASC,CAAC;AAAE,mBAAO;AAAA,QAAC;AAAC,YAAIC,IAAEH,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,KAAKI,CAAC,EAAE,QAAQL,CAAC,EAAE,SAAS,GAAE,aAAa,GAAEU,IAAE,KAAK,KAAKD,GAAET,GAAE,EAAE;AAAE,eAAOU,IAAE,IAAEJ,EAAE,IAAI,EAAE,QAAQ,MAAM,EAAE,KAAI,IAAG,KAAK,KAAKI,CAAC;AAAA,MAAC,GAAEH,EAAE,QAAM,SAASP,GAAE;AAAC,eAAgBA,MAAT,WAAaA,IAAE,OAAM,KAAK,KAAKA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
package/dist/index205.js CHANGED
@@ -1,38 +1,11 @@
1
- import { unrefElement as m } from "./index131.js";
2
- import { ref as u, watch as l } from "vue";
3
- import { createFocusTrap as d } from "./index227.js";
4
- import { tryOnScopeDispose as D } from "./index220.js";
5
- function O(i, a = {}) {
6
- let e;
7
- const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
8
- e && (e.pause(), s.value = !0);
9
- }, p = () => {
10
- e && (e.unpause(), s.value = !1);
11
- };
12
- return l(
13
- () => m(i),
14
- (t) => {
15
- t && (e = d(t, {
16
- ...n,
17
- onActivate() {
18
- c.value = !0, a.onActivate && a.onActivate();
19
- },
20
- onDeactivate() {
21
- c.value = !1, a.onDeactivate && a.onDeactivate();
22
- }
23
- }), f && o());
24
- },
25
- { flush: "post" }
26
- ), D(() => r()), {
27
- hasFocus: c,
28
- isPaused: s,
29
- activate: o,
30
- deactivate: r,
31
- pause: v,
32
- unpause: p
33
- };
34
- }
1
+ const s = (t, o) => t.reduce(
2
+ (e, r, u, p) => {
3
+ const n = o(r, u, p);
4
+ return n in e || (e[n] = []), e[n].push(r), e;
5
+ },
6
+ {}
7
+ );
35
8
  export {
36
- O as useFocusTrap
9
+ s as groupBy
37
10
  };
38
11
  //# sourceMappingURL=index205.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index205.js","sources":["../node_modules/@vueuse/integrations/useFocusTrap.mjs"],"sourcesContent":["import { unrefElement, tryOnScopeDispose } from '@vueuse/core';\nimport { ref, watch } from 'vue-demi';\nimport { createFocusTrap } from 'focus-trap';\n\nfunction useFocusTrap(target, options = {}) {\n let trap;\n const { immediate, ...focusTrapOptions } = options;\n const hasFocus = ref(false);\n const isPaused = ref(false);\n const activate = (opts) => trap && trap.activate(opts);\n const deactivate = (opts) => trap && trap.deactivate(opts);\n const pause = () => {\n if (trap) {\n trap.pause();\n isPaused.value = true;\n }\n };\n const unpause = () => {\n if (trap) {\n trap.unpause();\n isPaused.value = false;\n }\n };\n watch(\n () => unrefElement(target),\n (el) => {\n if (!el)\n return;\n trap = createFocusTrap(el, {\n ...focusTrapOptions,\n onActivate() {\n hasFocus.value = true;\n if (options.onActivate)\n options.onActivate();\n },\n onDeactivate() {\n hasFocus.value = false;\n if (options.onDeactivate)\n options.onDeactivate();\n }\n });\n if (immediate)\n activate();\n },\n { flush: \"post\" }\n );\n tryOnScopeDispose(() => deactivate());\n return {\n hasFocus,\n isPaused,\n activate,\n deactivate,\n pause,\n unpause\n };\n}\n\nexport { useFocusTrap };\n"],"names":["useFocusTrap","target","options","trap","immediate","focusTrapOptions","hasFocus","ref","isPaused","activate","opts","deactivate","pause","unpause","watch","unrefElement","el","createFocusTrap","tryOnScopeDispose"],"mappings":";;;;AAIA,SAASA,EAAaC,GAAQC,IAAU,IAAI;AAC1C,MAAIC;AACJ,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAgB,IAAKH,GACrCI,IAAWC,EAAI,EAAK,GACpBC,IAAWD,EAAI,EAAK,GACpBE,IAAW,CAACC,MAASP,KAAQA,EAAK,SAASO,CAAI,GAC/CC,IAAa,CAACD,MAASP,KAAQA,EAAK,WAAWO,CAAI,GACnDE,IAAQ,MAAM;AAClB,IAAIT,MACFA,EAAK,MAAK,GACVK,EAAS,QAAQ;AAAA,EAEvB,GACQK,IAAU,MAAM;AACpB,IAAIV,MACFA,EAAK,QAAO,GACZK,EAAS,QAAQ;AAAA,EAEvB;AACE,SAAAM;AAAA,IACE,MAAMC,EAAad,CAAM;AAAA,IACzB,CAACe,MAAO;AACN,MAAKA,MAELb,IAAOc,EAAgBD,GAAI;AAAA,QACzB,GAAGX;AAAA,QACH,aAAa;AACX,UAAAC,EAAS,QAAQ,IACbJ,EAAQ,cACVA,EAAQ,WAAU;AAAA,QACrB;AAAA,QACD,eAAe;AACb,UAAAI,EAAS,QAAQ,IACbJ,EAAQ,gBACVA,EAAQ,aAAY;AAAA,QACvB;AAAA,MACT,CAAO,GACGE,KACFK;IACH;AAAA,IACD,EAAE,OAAO,OAAQ;AAAA,EACrB,GACES,EAAkB,MAAMP,EAAU,CAAE,GAC7B;AAAA,IACL,UAAAL;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index205.js","sources":["../src/utilities/functions/groupBy.ts"],"sourcesContent":["/**\n * Creates an object with keys corresponding to the return value of iteratee and values correspond to arrays of items\n */\n\nexport const groupBy = <T>(\n\tarr: T[],\n\titeratee: (item: T, index: number, arr: T[]) => string | number | symbol\n): Record<ReturnType<typeof iteratee>, T[]> => {\n\treturn arr.reduce(\n\t\t(acc: { [key: ReturnType<typeof iteratee>]: T[] }, curr, index, arr) => {\n\t\t\tconst key = iteratee(curr, index, arr);\n\t\t\tif (!(key in acc)) {\n\t\t\t\tacc[key] = [];\n\t\t\t}\n\t\t\tacc[key].push(curr);\n\t\t\treturn acc;\n\t\t},\n\t\t{}\n\t);\n};\n"],"names":["groupBy","arr","iteratee","acc","curr","index","key"],"mappings":"AAIa,MAAAA,IAAU,CACtBC,GACAC,MAEOD,EAAI;AAAA,EACV,CAACE,GAAkDC,GAAMC,GAAOJ,MAAQ;AACvE,UAAMK,IAAMJ,EAASE,GAAMC,GAAOJ,CAAG;AACjC,WAAEK,KAAOH,MACRA,EAAAG,CAAG,IAAI,KAERH,EAAAG,CAAG,EAAE,KAAKF,CAAI,GACXD;AAAA,EACR;AAAA,EACA,CAAC;AAAA;"}
package/dist/index206.js CHANGED
@@ -1,9 +1,5 @@
1
- const i = (e, t = 50) => new Promise((r) => {
2
- let a = setInterval(() => {
3
- e() && (clearInterval(a), r());
4
- }, t);
5
- });
1
+ const e = (t) => t[t.length - 1];
6
2
  export {
7
- i as waitFor
3
+ e as last
8
4
  };
9
5
  //# sourceMappingURL=index206.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index206.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n iteratee: () => boolean,\n interval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n new Promise((resolve) => {\n let i = setInterval(() => {\n if (iteratee()) {\n clearInterval(i);\n resolve();\n }\n }, interval);\n });\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OACzC,IAAI,QAAQ,CAACC,MAAY;AACnB,MAAAC,IAAI,YAAY,MAAM;AACxB,IAAIH,QACF,cAAcG,CAAC,GACPD;KAETD,CAAQ;AACb,CAAC;"}
1
+ {"version":3,"file":"index206.js","sources":["../src/utilities/functions/last.ts"],"sourcesContent":["/** Takes an array and returns the last element of it */\nexport const last = <T>(arr: T[]) => arr[arr.length - 1];\n"],"names":["last","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAIA,EAAI,SAAS,CAAC;"}