bitboss-ui 2.0.5 → 2.0.8

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 (431) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -3
  2. package/dist/composables/useOptions.d.ts +1 -1
  3. package/dist/index.js +89 -87
  4. package/dist/index.js.map +1 -1
  5. package/dist/index10.js +7 -39
  6. package/dist/index10.js.map +1 -1
  7. package/dist/index101.js +60 -87
  8. package/dist/index101.js.map +1 -1
  9. package/dist/index103.js +113 -258
  10. package/dist/index103.js.map +1 -1
  11. package/dist/index105.js +254 -388
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index107.js +387 -98
  14. package/dist/index107.js.map +1 -1
  15. package/dist/index109.js +52 -48
  16. package/dist/index109.js.map +1 -1
  17. package/dist/index11.js +74 -188
  18. package/dist/index11.js.map +1 -1
  19. package/dist/index111.js +35 -34
  20. package/dist/index111.js.map +1 -1
  21. package/dist/index113.js +105 -23
  22. package/dist/index113.js.map +1 -1
  23. package/dist/index115.js +23 -156
  24. package/dist/index115.js.map +1 -1
  25. package/dist/index117.js +153 -112
  26. package/dist/index117.js.map +1 -1
  27. package/dist/index119.js +115 -39
  28. package/dist/index119.js.map +1 -1
  29. package/dist/index12.js +38 -80
  30. package/dist/index12.js.map +1 -1
  31. package/dist/index121.js +36 -40
  32. package/dist/index121.js.map +1 -1
  33. package/dist/index122.js +34 -37
  34. package/dist/index122.js.map +1 -1
  35. package/dist/index123.js +30 -21
  36. package/dist/index123.js.map +1 -1
  37. package/dist/index124.js +47 -2
  38. package/dist/index124.js.map +1 -1
  39. package/dist/index125.js +35 -21
  40. package/dist/index125.js.map +1 -1
  41. package/dist/index126.js +2 -2
  42. package/dist/index126.js.map +1 -1
  43. package/dist/index127.js +21 -312
  44. package/dist/index127.js.map +1 -1
  45. package/dist/index128.js +2 -24
  46. package/dist/index128.js.map +1 -1
  47. package/dist/index129.js +312 -2
  48. package/dist/index129.js.map +1 -1
  49. package/dist/index13.js +196 -0
  50. package/dist/index13.js.map +1 -0
  51. package/dist/index130.js +24 -5
  52. package/dist/index130.js.map +1 -1
  53. package/dist/index131.js +2 -9
  54. package/dist/index131.js.map +1 -1
  55. package/dist/index132.js +5 -6
  56. package/dist/index132.js.map +1 -1
  57. package/dist/index133.js +9 -3
  58. package/dist/index133.js.map +1 -1
  59. package/dist/index134.js +6 -3
  60. package/dist/index134.js.map +1 -1
  61. package/dist/index135.js +1 -1
  62. package/dist/index136.js +1 -1
  63. package/dist/index137.js +1 -1
  64. package/dist/index138.js +1 -1
  65. package/dist/index139.js +1 -1
  66. package/dist/index14.js +73 -121
  67. package/dist/index14.js.map +1 -1
  68. package/dist/index140.js +1 -1
  69. package/dist/index141.js +1 -1
  70. package/dist/index142.js +1 -1
  71. package/dist/index143.js +1 -1
  72. package/dist/index144.js +1 -1
  73. package/dist/index145.js +1 -1
  74. package/dist/index146.js +1 -1
  75. package/dist/index147.js +1 -1
  76. package/dist/index148.js +1 -1
  77. package/dist/index149.js +1 -1
  78. package/dist/index150.js +1 -1
  79. package/dist/index151.js +1 -1
  80. package/dist/index152.js +1 -1
  81. package/dist/index153.js +1 -1
  82. package/dist/index154.js +1 -1
  83. package/dist/index155.js +1 -1
  84. package/dist/index156.js +1 -1
  85. package/dist/index157.js +1 -1
  86. package/dist/index158.js +1 -1
  87. package/dist/index159.js +2 -2
  88. package/dist/index16.js +119 -118
  89. package/dist/index16.js.map +1 -1
  90. package/dist/index160.js +6 -0
  91. package/dist/index160.js.map +1 -0
  92. package/dist/index161.js +1 -1
  93. package/dist/index163.js +2 -2
  94. package/dist/index165.js +1 -1
  95. package/dist/index166.js +1 -1
  96. package/dist/index167.js +1 -1
  97. package/dist/index168.js +1 -1
  98. package/dist/index169.js +2 -2
  99. package/dist/index170.js +6 -0
  100. package/dist/index170.js.map +1 -0
  101. package/dist/index171.js +3 -2
  102. package/dist/index171.js.map +1 -1
  103. package/dist/index173.js +2 -3
  104. package/dist/index173.js.map +1 -1
  105. package/dist/index174.js +1 -1
  106. package/dist/index175.js +1 -1
  107. package/dist/index176.js +1 -1
  108. package/dist/index177.js +1 -1
  109. package/dist/index178.js +1 -1
  110. package/dist/index179.js +1 -1
  111. package/dist/index18.js +120 -208
  112. package/dist/index18.js.map +1 -1
  113. package/dist/index180.js +1 -1
  114. package/dist/index181.js +1 -1
  115. package/dist/index182.js +1 -1
  116. package/dist/index183.js +2 -2
  117. package/dist/index184.js +6 -0
  118. package/dist/index184.js.map +1 -0
  119. package/dist/index185.js +1 -1
  120. package/dist/index187.js +1 -1
  121. package/dist/index189.js +1 -1
  122. package/dist/index190.js +1 -1
  123. package/dist/index191.js +1 -1
  124. package/dist/index192.js +1 -1
  125. package/dist/index193.js +1 -1
  126. package/dist/index194.js +1 -1
  127. package/dist/index195.js +1 -1
  128. package/dist/index196.js +1 -1
  129. package/dist/index197.js +3 -81
  130. package/dist/index197.js.map +1 -1
  131. package/dist/index198.js +3 -3
  132. package/dist/index198.js.map +1 -1
  133. package/dist/index199.js +81 -5
  134. package/dist/index199.js.map +1 -1
  135. package/dist/index20.js +193 -275
  136. package/dist/index20.js.map +1 -1
  137. package/dist/index200.js +2 -16
  138. package/dist/index200.js.map +1 -1
  139. package/dist/index201.js +3 -16
  140. package/dist/index201.js.map +1 -1
  141. package/dist/index202.js +124 -17
  142. package/dist/index202.js.map +1 -1
  143. package/dist/index203.js +5 -19
  144. package/dist/index203.js.map +1 -1
  145. package/dist/index204.js +119 -23
  146. package/dist/index204.js.map +1 -1
  147. package/dist/index205.js +19 -3
  148. package/dist/index205.js.map +1 -1
  149. package/dist/index206.js +16 -2
  150. package/dist/index206.js.map +1 -1
  151. package/dist/index207.js +16 -8
  152. package/dist/index207.js.map +1 -1
  153. package/dist/index208.js +2 -249
  154. package/dist/index208.js.map +1 -1
  155. package/dist/index209.js +5 -0
  156. package/dist/index209.js.map +1 -0
  157. package/dist/index210.js +35 -52
  158. package/dist/index210.js.map +1 -1
  159. package/dist/index211.js +173 -36
  160. package/dist/index211.js.map +1 -1
  161. package/dist/index212.js +6 -5
  162. package/dist/index212.js.map +1 -1
  163. package/dist/index213.js +39 -36
  164. package/dist/index213.js.map +1 -1
  165. package/dist/index215.js +13 -4
  166. package/dist/index215.js.map +1 -1
  167. package/dist/index216.js +5 -2
  168. package/dist/index216.js.map +1 -1
  169. package/dist/index217.js +369 -2
  170. package/dist/index217.js.map +1 -1
  171. package/dist/index218.js +6 -40
  172. package/dist/index218.js.map +1 -1
  173. package/dist/{index214.js → index219.js} +1 -1
  174. package/dist/{index214.js.map → index219.js.map} +1 -1
  175. package/dist/index22.js +287 -247
  176. package/dist/index22.js.map +1 -1
  177. package/dist/index220.js +4 -13
  178. package/dist/index220.js.map +1 -1
  179. package/dist/index221.js +2 -158
  180. package/dist/index221.js.map +1 -1
  181. package/dist/index222.js +3 -84
  182. package/dist/index222.js.map +1 -1
  183. package/dist/index223.js +10 -0
  184. package/dist/index223.js.map +1 -0
  185. package/dist/index224.js +19 -3
  186. package/dist/index224.js.map +1 -1
  187. package/dist/index225.js +26 -34
  188. package/dist/index225.js.map +1 -1
  189. package/dist/index226.js +3 -6
  190. package/dist/index226.js.map +1 -1
  191. package/dist/index227.js +249 -7
  192. package/dist/index227.js.map +1 -1
  193. package/dist/index228.js +49 -123
  194. package/dist/index228.js.map +1 -1
  195. package/dist/index229.js +44 -123
  196. package/dist/index229.js.map +1 -1
  197. package/dist/index230.js +5 -2
  198. package/dist/index230.js.map +1 -1
  199. package/dist/index231.js +49 -174
  200. package/dist/index231.js.map +1 -1
  201. package/dist/index232.js +158 -5
  202. package/dist/index232.js.map +1 -1
  203. package/dist/index233.js +83 -368
  204. package/dist/index233.js.map +1 -1
  205. package/dist/index235.js +2 -18
  206. package/dist/index235.js.map +1 -1
  207. package/dist/index236.js +17 -105
  208. package/dist/index236.js.map +1 -1
  209. package/dist/index237.js +109 -0
  210. package/dist/index237.js.map +1 -0
  211. package/dist/{index238.js → index239.js} +3 -3
  212. package/dist/{index238.js.map → index239.js.map} +1 -1
  213. package/dist/index24.js +249 -120
  214. package/dist/index24.js.map +1 -1
  215. package/dist/index241.js +2 -10
  216. package/dist/index241.js.map +1 -1
  217. package/dist/index242.js +9 -2
  218. package/dist/index242.js.map +1 -1
  219. package/dist/index243.js +3 -224
  220. package/dist/index243.js.map +1 -1
  221. package/dist/index244.js +9 -281
  222. package/dist/index244.js.map +1 -1
  223. package/dist/index245.js +23 -6
  224. package/dist/index245.js.map +1 -1
  225. package/dist/index246.js +6 -2
  226. package/dist/index246.js.map +1 -1
  227. package/dist/index247.js +16 -2
  228. package/dist/index247.js.map +1 -1
  229. package/dist/index248.js +224 -2
  230. package/dist/index248.js.map +1 -1
  231. package/dist/index249.js +281 -2
  232. package/dist/index249.js.map +1 -1
  233. package/dist/index250.js +6 -2
  234. package/dist/index250.js.map +1 -1
  235. package/dist/index251.js +2 -2
  236. package/dist/index252.js +2 -3
  237. package/dist/index252.js.map +1 -1
  238. package/dist/index253.js +2 -2
  239. package/dist/index254.js +2 -2
  240. package/dist/index255.js +2 -2
  241. package/dist/index256.js +122 -24
  242. package/dist/index256.js.map +1 -1
  243. package/dist/index257.js +429 -20
  244. package/dist/index257.js.map +1 -1
  245. package/dist/index258.js +6 -0
  246. package/dist/index258.js.map +1 -0
  247. package/dist/index26.js +119 -142
  248. package/dist/index26.js.map +1 -1
  249. package/dist/index260.js +6 -3
  250. package/dist/index260.js.map +1 -1
  251. package/dist/index261.js +21 -8
  252. package/dist/index261.js.map +1 -1
  253. package/dist/index263.js +9 -3
  254. package/dist/index263.js.map +1 -1
  255. package/dist/index264.js +439 -0
  256. package/dist/index264.js.map +1 -0
  257. package/dist/index265.js +127 -6
  258. package/dist/index265.js.map +1 -1
  259. package/dist/index266.js +199 -15
  260. package/dist/index266.js.map +1 -1
  261. package/dist/index267.js +4 -9
  262. package/dist/index267.js.map +1 -1
  263. package/dist/index268.js +89 -3
  264. package/dist/index268.js.map +1 -1
  265. package/dist/index269.js +2 -12
  266. package/dist/index269.js.map +1 -1
  267. package/dist/index270.js +2 -9
  268. package/dist/index270.js.map +1 -1
  269. package/dist/index271.js +2 -9
  270. package/dist/index271.js.map +1 -1
  271. package/dist/index272.js +2 -17
  272. package/dist/index272.js.map +1 -1
  273. package/dist/index273.js +2 -431
  274. package/dist/index273.js.map +1 -1
  275. package/dist/index274.js +2 -89
  276. package/dist/index274.js.map +1 -1
  277. package/dist/index275.js +28 -2
  278. package/dist/index275.js.map +1 -1
  279. package/dist/index276.js +17 -64
  280. package/dist/index276.js.map +1 -1
  281. package/dist/index278.js +3 -200
  282. package/dist/index278.js.map +1 -1
  283. package/dist/index279.js +12 -2
  284. package/dist/index279.js.map +1 -1
  285. package/dist/index28.js +138 -83
  286. package/dist/index28.js.map +1 -1
  287. package/dist/index280.js +7 -124
  288. package/dist/index280.js.map +1 -1
  289. package/dist/index281.js +7 -20
  290. package/dist/index281.js.map +1 -1
  291. package/dist/index282.js +20 -0
  292. package/dist/index282.js.map +1 -0
  293. package/dist/index283.js +2 -436
  294. package/dist/index283.js.map +1 -1
  295. package/dist/index284.js +68 -126
  296. package/dist/index284.js.map +1 -1
  297. package/dist/index285.js +5 -3
  298. package/dist/index285.js.map +1 -1
  299. package/dist/index286.js +1 -1
  300. package/dist/index287.js +3 -211
  301. package/dist/index287.js.map +1 -1
  302. package/dist/index288.js +214 -0
  303. package/dist/index288.js.map +1 -0
  304. package/dist/index290.js +4 -7
  305. package/dist/index290.js.map +1 -1
  306. package/dist/index291.js +4 -19
  307. package/dist/index291.js.map +1 -1
  308. package/dist/index292.js +58 -6
  309. package/dist/index292.js.map +1 -1
  310. package/dist/index293.js +35 -4
  311. package/dist/index293.js.map +1 -1
  312. package/dist/index294.js +7 -4
  313. package/dist/index294.js.map +1 -1
  314. package/dist/index295.js +6 -58
  315. package/dist/index295.js.map +1 -1
  316. package/dist/index296.js +18 -34
  317. package/dist/index296.js.map +1 -1
  318. package/dist/index297.js +2 -11
  319. package/dist/index297.js.map +1 -1
  320. package/dist/index298.js +47 -2
  321. package/dist/index298.js.map +1 -1
  322. package/dist/index299.js +10 -46
  323. package/dist/index299.js.map +1 -1
  324. package/dist/index30.js +85 -115
  325. package/dist/index30.js.map +1 -1
  326. package/dist/index32.js +111 -112
  327. package/dist/index32.js.map +1 -1
  328. package/dist/index34.js +114 -365
  329. package/dist/index34.js.map +1 -1
  330. package/dist/index36.js +361 -283
  331. package/dist/index36.js.map +1 -1
  332. package/dist/index38.js +288 -106
  333. package/dist/index38.js.map +1 -1
  334. package/dist/index40.js +114 -121
  335. package/dist/index40.js.map +1 -1
  336. package/dist/index42.js +113 -200
  337. package/dist/index42.js.map +1 -1
  338. package/dist/index44.js +180 -90
  339. package/dist/index44.js.map +1 -1
  340. package/dist/index46.js +110 -78
  341. package/dist/index46.js.map +1 -1
  342. package/dist/index48.js +89 -54
  343. package/dist/index48.js.map +1 -1
  344. package/dist/index5.js +14 -78
  345. package/dist/index5.js.map +1 -1
  346. package/dist/index50.js +54 -84
  347. package/dist/index50.js.map +1 -1
  348. package/dist/index52.js +86 -60
  349. package/dist/index52.js.map +1 -1
  350. package/dist/index54.js +59 -40
  351. package/dist/index54.js.map +1 -1
  352. package/dist/index56.js +42 -55
  353. package/dist/index56.js.map +1 -1
  354. package/dist/index58.js +53 -103
  355. package/dist/index58.js.map +1 -1
  356. package/dist/index6.js +36 -58
  357. package/dist/index6.js.map +1 -1
  358. package/dist/index60.js +103 -89
  359. package/dist/index60.js.map +1 -1
  360. package/dist/index62.js +61 -88
  361. package/dist/index62.js.map +1 -1
  362. package/dist/index64.js +119 -77
  363. package/dist/index64.js.map +1 -1
  364. package/dist/index66.js +77 -91
  365. package/dist/index66.js.map +1 -1
  366. package/dist/index68.js +88 -49
  367. package/dist/index68.js.map +1 -1
  368. package/dist/index7.js +78 -20
  369. package/dist/index7.js.map +1 -1
  370. package/dist/index70.js +51 -304
  371. package/dist/index70.js.map +1 -1
  372. package/dist/index72.js +299 -115
  373. package/dist/index72.js.map +1 -1
  374. package/dist/index74.js +120 -214
  375. package/dist/index74.js.map +1 -1
  376. package/dist/index76.js +213 -36
  377. package/dist/index76.js.map +1 -1
  378. package/dist/index78.js +47 -0
  379. package/dist/index78.js.map +1 -0
  380. package/dist/index79.js +119 -230
  381. package/dist/index79.js.map +1 -1
  382. package/dist/index8.js +61 -7
  383. package/dist/index8.js.map +1 -1
  384. package/dist/index81.js +227 -154
  385. package/dist/index81.js.map +1 -1
  386. package/dist/index83.js +154 -207
  387. package/dist/index83.js.map +1 -1
  388. package/dist/index85.js +215 -26
  389. package/dist/index85.js.map +1 -1
  390. package/dist/index87.js +27 -88
  391. package/dist/index87.js.map +1 -1
  392. package/dist/index89.js +53 -88
  393. package/dist/index89.js.map +1 -1
  394. package/dist/index9.js +17 -76
  395. package/dist/index9.js.map +1 -1
  396. package/dist/index91.js +75 -44
  397. package/dist/index91.js.map +1 -1
  398. package/dist/index93.js +89 -15
  399. package/dist/index93.js.map +1 -1
  400. package/dist/index95.js +15 -166
  401. package/dist/index95.js.map +1 -1
  402. package/dist/index97.js +120 -59
  403. package/dist/index97.js.map +1 -1
  404. package/dist/index99.js +66 -52
  405. package/dist/index99.js.map +1 -1
  406. package/dist/style.css +1 -1
  407. package/package.json +2 -2
  408. package/dist/index120.js +0 -47
  409. package/dist/index120.js.map +0 -1
  410. package/dist/index164.js +0 -6
  411. package/dist/index164.js.map +0 -1
  412. package/dist/index172.js +0 -6
  413. package/dist/index172.js.map +0 -1
  414. package/dist/index188.js +0 -6
  415. package/dist/index188.js.map +0 -1
  416. package/dist/index234.js +0 -6
  417. package/dist/index234.js.map +0 -1
  418. package/dist/index240.js +0 -5
  419. package/dist/index240.js.map +0 -1
  420. package/dist/index259.js +0 -10
  421. package/dist/index259.js.map +0 -1
  422. package/dist/index262.js +0 -26
  423. package/dist/index262.js.map +0 -1
  424. package/dist/index277.js +0 -8
  425. package/dist/index277.js.map +0 -1
  426. package/dist/index3.js +0 -17
  427. package/dist/index3.js.map +0 -1
  428. package/dist/index4.js +0 -43
  429. package/dist/index4.js.map +0 -1
  430. package/dist/index77.js +0 -130
  431. package/dist/index77.js.map +0 -1
@@ -0,0 +1,196 @@
1
+ import { copy as D } from "./index130.js";
2
+ import { reactive as G, watch as v, toValue as H, computed as g, provide as Q } from "vue";
3
+ import { isNotNil as a } from "./index131.js";
4
+ import { mapValues as X } from "./index132.js";
5
+ import { useRoute as Z } from "./index133.js";
6
+ import { useRouter as _ } from "./index134.js";
7
+ import { useStepper as ee } from "./index129.js";
8
+ const te = Symbol(), x = /((step\/)(?<step>[\s\S]+?)(?=[/?]))|((step\/)(?<step2>[\s\S]+))/, O = (i) => {
9
+ var r, u;
10
+ const e = i.match(x);
11
+ return ((r = e == null ? void 0 : e.groups) == null ? void 0 : r.step) ?? ((u = e == null ? void 0 : e.groups) == null ? void 0 : u.step2) ?? null;
12
+ }, le = (i) => {
13
+ if (!i.name)
14
+ throw new Error(
15
+ "You need to provide a unique name for the current wizard instance to be used to save data"
16
+ );
17
+ const e = Z(), r = _(), u = i.useNavigation ?? !0, h = i.navigationMode ?? "query", V = i.persist ?? !0;
18
+ if (u && (!e.value || !r))
19
+ throw new Error(
20
+ "Navigation is enabled but could not retrieve the router instance in useWizard."
21
+ );
22
+ const q = D(i.initialState), l = G(
23
+ V && sessionStorage.getItem(i.name) ? {
24
+ ...q,
25
+ ...JSON.parse(sessionStorage.getItem(i.name))
26
+ } : q
27
+ );
28
+ V && v(l, () => {
29
+ sessionStorage.setItem(i.name, JSON.stringify(l));
30
+ });
31
+ const w = H(i.steps), o = g(
32
+ () => Object.entries(w).reduce(
33
+ (t, [s, n]) => (n.condition && !n.condition(l) || (t[s] = { ...n, key: s }), t),
34
+ {}
35
+ )
36
+ ), m = g(
37
+ () => X(
38
+ o.value,
39
+ (t) => typeof t.isValid == "function" ? {
40
+ ...t,
41
+ isValid: t.isValid(l)
42
+ } : {
43
+ ...t,
44
+ isValid: t.isValid ?? !0
45
+ }
46
+ )
47
+ );
48
+ let p = null;
49
+ if (u && a(e.value)) {
50
+ let t = null;
51
+ if (h === "query")
52
+ e.value.query.step && (t = e.value.query.step);
53
+ else {
54
+ const s = O(e.value.fullPath);
55
+ s && (t = s);
56
+ }
57
+ p = t;
58
+ }
59
+ if (p)
60
+ for (const t in o.value) {
61
+ if (t === p) break;
62
+ const s = m.value[t];
63
+ if (!s || !s.isValid) {
64
+ p = null;
65
+ break;
66
+ }
67
+ }
68
+ const {
69
+ steps: b,
70
+ current: P,
71
+ goToNext: j,
72
+ goToPrevious: A,
73
+ goTo: d,
74
+ index: K,
75
+ at: z,
76
+ get: F,
77
+ goBackTo: I,
78
+ isAfter: M,
79
+ isBefore: U,
80
+ isCurrent: B,
81
+ isFirst: C,
82
+ isLast: E,
83
+ isNext: J,
84
+ isPrevious: R,
85
+ next: W,
86
+ previous: $,
87
+ stepNames: L
88
+ } = ee(
89
+ m,
90
+ p || Object.values(o.value)[0].key
91
+ ), c = g(() => Object.keys(o.value)[K.value]), T = {
92
+ at: z,
93
+ current: P,
94
+ data: l,
95
+ get: F,
96
+ goBackTo: I,
97
+ goTo: d,
98
+ goToNext: j,
99
+ goToPrevious: A,
100
+ isAfter: M,
101
+ isBefore: U,
102
+ isCurrent: B,
103
+ isFirst: C,
104
+ isLast: E,
105
+ isNext: J,
106
+ isPrevious: R,
107
+ key: c,
108
+ next: W,
109
+ previous: $,
110
+ stepNames: L,
111
+ steps: b
112
+ };
113
+ if (Q(te, T), u)
114
+ if (h === "query")
115
+ v(
116
+ c,
117
+ () => {
118
+ a(r) && a(e.value) && r.push({
119
+ ...e,
120
+ query: { ...e.value.query, step: c.value ?? null }
121
+ });
122
+ },
123
+ { immediate: !0 }
124
+ ), v(
125
+ () => {
126
+ var t;
127
+ return (t = e.value) == null ? void 0 : t.query.step;
128
+ },
129
+ (t) => {
130
+ if (t) {
131
+ const s = t;
132
+ if (s in o.value) {
133
+ const n = s, f = Object.keys(o.value);
134
+ f.slice(
135
+ 0,
136
+ f.indexOf(n)
137
+ ).every(
138
+ (N) => {
139
+ var y;
140
+ return (y = m.value[N]) == null ? void 0 : y.isValid;
141
+ }
142
+ ) && d(n);
143
+ }
144
+ } else {
145
+ const s = Object.keys(b)[0];
146
+ d(s);
147
+ }
148
+ }
149
+ );
150
+ else {
151
+ const t = g(() => {
152
+ if (a(e.value))
153
+ return O(e.value.fullPath);
154
+ });
155
+ v(
156
+ c,
157
+ (s) => {
158
+ a(e.value) && a(r) && s && (e.value.path.includes("step") ? r.push({
159
+ query: e.value.query,
160
+ path: e.value.path.replace(x, `step/${s}`)
161
+ }) : r.push({
162
+ query: e.value.query,
163
+ // Normalizes paths with / and without
164
+ path: (e.value.path + `/step/${s}`).replace("//", "/"),
165
+ replace: !0
166
+ }));
167
+ },
168
+ { immediate: !0 }
169
+ ), v(
170
+ () => t.value,
171
+ (s) => {
172
+ if (s && s !== c.value) {
173
+ const n = s;
174
+ if (n in o.value) {
175
+ const f = n, S = Object.keys(o.value);
176
+ S.slice(
177
+ 0,
178
+ S.indexOf(f)
179
+ ).every(
180
+ (y) => {
181
+ var k;
182
+ return (k = o.value[y]) == null ? void 0 : k.isValid;
183
+ }
184
+ ) && d(f);
185
+ }
186
+ }
187
+ }
188
+ );
189
+ }
190
+ return T;
191
+ };
192
+ export {
193
+ le as useWizard,
194
+ te as wizardInjectionKey
195
+ };
196
+ //# sourceMappingURL=index13.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index13.js","sources":["../src/composables/useWizard.ts"],"sourcesContent":["import { cloneDeep } from '@/utilities/functions/cloneDeep';\nimport { computed, provide, reactive, watch, toValue } from 'vue';\nimport { isNotNil } from '@/utilities/functions/isNotNil';\nimport { mapValues } from '@/utilities/functions/mapValues';\nimport { useRoute } from './useRoute';\nimport { useRouter } from './useRouter';\nimport { useStepper } from '@vueuse/core';\nimport type { ComputedRef, MaybeRef } from 'vue';\n\nexport const wizardInjectionKey = Symbol();\nexport type Step<U> = {\n\t/**\n\t * Function that accepts a state object and returns a boolean.\n\t * When step are accessed at the end of the pipeline the result\n\t * is provided so you don't have to run the function yourself.\n\t * It determines if the validation has passed for the step.\n\t */\n\tisValid?: (state: U) => boolean | boolean;\n\t/**\n\t * Function that accepts a state object and returns a boolean.\n\t * When step are accessed at the end of the pipeline the result\n\t * is provided so you don't have to run the function yourself.\n\t * Steps that do not pass the condition are removed.\n\t */\n\tcondition?: (state: U) => boolean;\n\t[key: string]: any;\n};\nexport type WizardState<T extends Record<string, any>> = ReturnType<\n\ttypeof useWizard<T>\n>;\n\nconst regexMatchStep =\n\t/((step\\/)(?<step>[\\s\\S]+?)(?=[/?]))|((step\\/)(?<step2>[\\s\\S]+))/;\n/**\n * With a url that follows the rule xyz.com/anything/step/:nameofthestep[/?query]\n * will match the :nameofthestep substring\n */\nconst extractStepFromUrl = (url: string) => {\n\tconst match = url.match(regexMatchStep);\n\treturn match?.groups?.step ?? match?.groups?.step2 ?? null;\n};\nexport const useWizard = <T extends object>(params: {\n\t/**\n\t * The steps definition for the wizard\n\t */\n\tsteps: MaybeRef<Record<string, Step<T>>>;\n\t/**\n\t * Name of the wizard used to persist state\n\t */\n\tname: string;\n\t/**\n\t * Initial set of data to be made available throughout\n\t */\n\tinitialState: T;\n\t/**\n\t * When navogation is enabled, to whether use the query parameters or an entire substring of the URL like xyz/steps/....\n\t * The latter useful with nuxt so you can leverage the automatic import of components based on the URL.\n\t */\n\tnavigationMode?: 'query' | 'route';\n\t/**\n\t * Whether to use navigation at all. When disabled no query or URL is changed.\n\t */\n\tuseNavigation?: boolean;\n\t/**\n\t *\n\t */\n\tpersist?: boolean;\n}) => {\n\tif (!params.name) {\n\t\tthrow new Error(\n\t\t\t'You need to provide a unique name for the current wizard instance to be used to save data'\n\t\t);\n\t}\n\tconst route = useRoute();\n\tconst router = useRouter();\n\n\tconst useNavigation = params.useNavigation ?? true;\n\tconst navigationMode = params.navigationMode ?? 'query';\n\tconst persist = params.persist ?? true;\n\n\tif (useNavigation && (!route.value || !router)) {\n\t\tthrow new Error(\n\t\t\t'Navigation is enabled but could not retrieve the router instance in useWizard.'\n\t\t);\n\t}\n\n\tconst initialStateCopy = cloneDeep(params.initialState);\n\t/**\n\t * Initial state is either read from session storage or the one provided\n\t */\n\tconst innerState = reactive<typeof params.initialState>(\n\t\tpersist && sessionStorage.getItem(params.name)\n\t\t\t? {\n\t\t\t\t\t...initialStateCopy,\n\t\t\t\t\t...JSON.parse(sessionStorage.getItem(params.name)!),\n\t\t\t\t}\n\t\t\t: initialStateCopy\n\t);\n\n\tif (persist) {\n\t\t/**\n\t\t * Every time the state changes save it to sessionStorage\n\t\t */\n\t\twatch(innerState, () => {\n\t\t\tsessionStorage.setItem(params.name, JSON.stringify(innerState));\n\t\t});\n\t}\n\n\t/**\n\t * Steps can be passed as ref so we need to unwrap them\n\t */\n\tconst unwrappedSteps = toValue(params.steps);\n\tconst filteredSteps = computed(() =>\n\t\tObject.entries(unwrappedSteps).reduce(\n\t\t\t(acc: typeof unwrappedSteps, [key, step]) => {\n\t\t\t\tif (step.condition) {\n\t\t\t\t\tif (!step.condition(innerState as T)) {\n\t\t\t\t\t\treturn acc;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tacc[key] = { ...step, key };\n\t\t\t\treturn acc;\n\t\t\t},\n\t\t\t{}\n\t\t)\n\t);\n\n\t/**\n\t * Steps can have a isValid function that receives the current state\n\t * but we don't want to have to call it every single time so we call it once here\n\t */\n\tconst mappedSteps = computed(() =>\n\t\tmapValues(\n\t\t\tfilteredSteps.value,\n\t\t\t(step): Omit<Step<T>, 'isValid'> & { isValid: boolean } => {\n\t\t\t\tif (typeof step.isValid === 'function') {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...step,\n\t\t\t\t\t\tisValid: step.isValid(innerState as T),\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn {\n\t\t\t\t\t...step,\n\t\t\t\t\tisValid: step.isValid ?? true,\n\t\t\t\t};\n\t\t\t}\n\t\t)\n\t);\n\n\t/**\n\t * Get the initial step from the query.\n\t * If it exists check that every step before it is also valid\n\t * so user cannot manually jump by changing the URL\n\t */\n\tlet initialStep = null;\n\tif (useNavigation && isNotNil(route.value)) {\n\t\tlet step: string | null = null;\n\t\tif (navigationMode === 'query') {\n\t\t\tif (route.value.query.step) {\n\t\t\t\tstep = route.value.query.step as string;\n\t\t\t}\n\t\t} else {\n\t\t\tconst stepFromUrl = extractStepFromUrl(route.value.fullPath);\n\t\t\tif (stepFromUrl) {\n\t\t\t\tstep = stepFromUrl;\n\t\t\t}\n\t\t}\n\t\tinitialStep = step;\n\t}\n\n\tif (initialStep) {\n\t\tfor (const stepName in filteredSteps.value) {\n\t\t\tif (stepName === initialStep) break;\n\t\t\tconst current = mappedSteps.value[stepName];\n\t\t\tif (!current || !current.isValid) {\n\t\t\t\tinitialStep = null;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Define the state of the wizard\n\t * A few data come from useStepper\n\t */\n\tconst {\n\t\tsteps,\n\t\tcurrent,\n\t\tgoToNext,\n\t\tgoToPrevious,\n\t\tgoTo,\n\t\tindex,\n\t\tat,\n\t\tget,\n\t\tgoBackTo,\n\t\tisAfter,\n\t\tisBefore,\n\t\tisCurrent,\n\t\tisFirst,\n\t\tisLast,\n\t\tisNext,\n\t\tisPrevious,\n\t\tnext,\n\t\tprevious,\n\t\tstepNames,\n\t} = useStepper(\n\t\tmappedSteps,\n\t\tinitialStep || Object.values(filteredSteps.value)[0].key\n\t);\n\n\tconst key = computed(() => Object.keys(filteredSteps.value)[index.value]);\n\n\t/**\n\t * Complete state object\n\t */\n\tconst state = {\n\t\tat,\n\t\tcurrent: current as ComputedRef<Step<T> & { isValid: boolean }>,\n\t\tdata: innerState,\n\t\tget,\n\t\tgoBackTo,\n\t\tgoTo,\n\t\tgoToNext,\n\t\tgoToPrevious,\n\t\tisAfter,\n\t\tisBefore,\n\t\tisCurrent,\n\t\tisFirst,\n\t\tisLast,\n\t\tisNext,\n\t\tisPrevious,\n\t\tkey,\n\t\tnext,\n\t\tprevious,\n\t\tstepNames,\n\t\tsteps,\n\t};\n\n\tprovide(wizardInjectionKey, state);\n\n\tif (useNavigation) {\n\t\tif (navigationMode === 'query') {\n\t\t\t/**\n\t\t\t * Every time the current step changes update route\n\t\t\t */\n\t\t\twatch(\n\t\t\t\tkey,\n\t\t\t\t() => {\n\t\t\t\t\tif (isNotNil(router) && isNotNil(route.value)) {\n\t\t\t\t\t\trouter.push({\n\t\t\t\t\t\t\t...route,\n\t\t\t\t\t\t\tquery: { ...route.value.query, step: key.value ?? null },\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{ immediate: true }\n\t\t\t);\n\n\t\t\t/**\n\t\t\t * Every time the route changes align the current step to the route\n\t\t\t */\n\t\t\twatch(\n\t\t\t\t() => route.value?.query.step,\n\t\t\t\t(value) => {\n\t\t\t\t\tif (value) {\n\t\t\t\t\t\tconst stepAsString = value as string;\n\t\t\t\t\t\tif (stepAsString in filteredSteps.value) {\n\t\t\t\t\t\t\tconst stepAsKey = stepAsString;\n\t\t\t\t\t\t\tconst stepKeys = Object.keys(filteredSteps.value);\n\t\t\t\t\t\t\tconst stepsPriorToTarget = stepKeys.slice(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tstepKeys.indexOf(stepAsKey)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tconst allValid = stepsPriorToTarget.every(\n\t\t\t\t\t\t\t\t(key) => mappedSteps.value[key]?.isValid\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tif (allValid) {\n\t\t\t\t\t\t\t\tgoTo(stepAsKey);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst key = Object.keys(steps)[0];\n\t\t\t\t\t\tgoTo(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t} else {\n\t\t\tconst stepFromUrl = computed(() => {\n\t\t\t\tif (isNotNil(route.value)) {\n\t\t\t\t\treturn extractStepFromUrl(route.value.fullPath);\n\t\t\t\t}\n\t\t\t\treturn undefined;\n\t\t\t});\n\n\t\t\t/**\n\t\t\t * Every time the current step changes update route\n\t\t\t */\n\t\t\twatch(\n\t\t\t\tkey,\n\t\t\t\t(value) => {\n\t\t\t\t\tif (isNotNil(route.value) && isNotNil(router) && value) {\n\t\t\t\t\t\tif (route.value.path.includes('step')) {\n\t\t\t\t\t\t\trouter.push({\n\t\t\t\t\t\t\t\tquery: route.value.query,\n\t\t\t\t\t\t\t\tpath: route.value.path.replace(regexMatchStep, `step/${value}`),\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trouter.push({\n\t\t\t\t\t\t\t\tquery: route.value.query,\n\t\t\t\t\t\t\t\t// Normalizes paths with / and without\n\t\t\t\t\t\t\t\tpath: (route.value.path + `/step/${value}`).replace('//', '/'),\n\t\t\t\t\t\t\t\treplace: true,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{ immediate: true }\n\t\t\t);\n\n\t\t\t/**\n\t\t\t * Every time the route changes align the current step to the route\n\t\t\t */\n\t\t\twatch(\n\t\t\t\t() => stepFromUrl.value,\n\t\t\t\t(value) => {\n\t\t\t\t\tif (value && value !== key.value) {\n\t\t\t\t\t\tconst stepAsString = value as string;\n\t\t\t\t\t\tif (stepAsString in filteredSteps.value) {\n\t\t\t\t\t\t\tconst stepAsKey = stepAsString;\n\t\t\t\t\t\t\tconst stepKeys = Object.keys(filteredSteps.value);\n\t\t\t\t\t\t\tconst stepsPriorToTarget = stepKeys.slice(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tstepKeys.indexOf(stepAsKey)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tconst allValid = stepsPriorToTarget.every(\n\t\t\t\t\t\t\t\t(key) => filteredSteps.value[key]?.isValid\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tif (allValid) {\n\t\t\t\t\t\t\t\tgoTo(stepAsKey);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t}\n\n\treturn state;\n};\n"],"names":["wizardInjectionKey","regexMatchStep","extractStepFromUrl","url","match","_a","_b","useWizard","params","route","useRoute","router","useRouter","useNavigation","navigationMode","persist","initialStateCopy","cloneDeep","innerState","reactive","watch","unwrappedSteps","toValue","filteredSteps","computed","acc","key","step","mappedSteps","mapValues","initialStep","isNotNil","stepFromUrl","stepName","current","steps","goToNext","goToPrevious","goTo","index","at","get","goBackTo","isAfter","isBefore","isCurrent","isFirst","isLast","isNext","isPrevious","next","previous","stepNames","useStepper","state","provide","value","stepAsString","stepAsKey","stepKeys"],"mappings":"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"}
package/dist/index130.js CHANGED
@@ -1,8 +1,27 @@
1
- const u = (e, s) => Object.keys(e).reduce(
2
- (t, r) => (t[r] = s(e[r], r, e), t),
3
- {}
4
- );
1
+ import { isArray as b, isPlainObject as m } from "./index289.js";
2
+ function i(e, n, l, o, r) {
3
+ const u = {}.propertyIsEnumerable.call(o, n) ? "enumerable" : "nonenumerable";
4
+ u === "enumerable" && (e[n] = l), r && u === "nonenumerable" && Object.defineProperty(e, n, {
5
+ value: l,
6
+ enumerable: !1,
7
+ writable: !0,
8
+ configurable: !0
9
+ });
10
+ }
11
+ function p(e, n = {}) {
12
+ if (b(e))
13
+ return e.map((r) => p(r, n));
14
+ if (!m(e))
15
+ return e;
16
+ const l = Object.getOwnPropertyNames(e), o = Object.getOwnPropertySymbols(e);
17
+ return [...l, ...o].reduce((r, u) => {
18
+ if (b(n.props) && !n.props.includes(u))
19
+ return r;
20
+ const s = e[u], c = p(s, n);
21
+ return i(r, u, c, e, n.nonenumerable), r;
22
+ }, {});
23
+ }
5
24
  export {
6
- u as mapValues
25
+ p as copy
7
26
  };
8
27
  //# sourceMappingURL=index130.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index130.js","sources":["../src/utilities/functions/mapValues.ts"],"sourcesContent":["/*\nMaps the values of an object.\nIteratee is run with value, key, object as arguments\n\n*/\nexport const mapValues = <T extends Record<string, unknown>, U>(\n\tobj: T,\n\tfn: (v: T[keyof T], k: keyof T, o: T) => U\n): { [Property in keyof T]: ReturnType<typeof fn> } =>\n\t(Object.keys(obj) as (keyof T)[]).reduce(\n\t\t(acc, k) => {\n\t\t\tacc[k] = fn(obj[k], k, obj);\n\t\t\treturn acc;\n\t\t},\n\t\t{} as { [Property in keyof T]: ReturnType<typeof fn> }\n\t);\n"],"names":["mapValues","obj","fn","acc","k"],"mappings":"AAKO,MAAMA,IAAY,CACxBC,GACAC,MAEC,OAAO,KAAKD,CAAG,EAAkB;AAAA,EACjC,CAACE,GAAKC,OACLD,EAAIC,CAAC,IAAIF,EAAGD,EAAIG,CAAC,GAAGA,GAAGH,CAAG,GACnBE;AAAA,EAER,CAAC;AACF;"}
1
+ {"version":3,"file":"index130.js","sources":["../node_modules/copy-anything/dist/index.js"],"sourcesContent":["import { isArray, isPlainObject } from 'is-what';\n\nfunction assignProp(carry, key, newVal, originalObject, includeNonenumerable) {\n const propType = {}.propertyIsEnumerable.call(originalObject, key) ? \"enumerable\" : \"nonenumerable\";\n if (propType === \"enumerable\")\n carry[key] = newVal;\n if (includeNonenumerable && propType === \"nonenumerable\") {\n Object.defineProperty(carry, key, {\n value: newVal,\n enumerable: false,\n writable: true,\n configurable: true\n });\n }\n}\nfunction copy(target, options = {}) {\n if (isArray(target)) {\n return target.map((item) => copy(item, options));\n }\n if (!isPlainObject(target)) {\n return target;\n }\n const props = Object.getOwnPropertyNames(target);\n const symbols = Object.getOwnPropertySymbols(target);\n return [...props, ...symbols].reduce((carry, key) => {\n if (isArray(options.props) && !options.props.includes(key)) {\n return carry;\n }\n const val = target[key];\n const newVal = copy(val, options);\n assignProp(carry, key, newVal, target, options.nonenumerable);\n return carry;\n }, {});\n}\n\nexport { copy };\n"],"names":["assignProp","carry","key","newVal","originalObject","includeNonenumerable","propType","copy","target","options","isArray","item","isPlainObject","props","symbols","val"],"mappings":";AAEA,SAASA,EAAWC,GAAOC,GAAKC,GAAQC,GAAgBC,GAAsB;AAC5E,QAAMC,IAAW,CAAE,EAAC,qBAAqB,KAAKF,GAAgBF,CAAG,IAAI,eAAe;AACpF,EAAII,MAAa,iBACfL,EAAMC,CAAG,IAAIC,IACXE,KAAwBC,MAAa,mBACvC,OAAO,eAAeL,GAAOC,GAAK;AAAA,IAChC,OAAOC;AAAA,IACP,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,cAAc;AAAA,EACpB,CAAK;AAEL;AACA,SAASI,EAAKC,GAAQC,IAAU,IAAI;AAClC,MAAIC,EAAQF,CAAM;AAChB,WAAOA,EAAO,IAAI,CAACG,MAASJ,EAAKI,GAAMF,CAAO,CAAC;AAEjD,MAAI,CAACG,EAAcJ,CAAM;AACvB,WAAOA;AAET,QAAMK,IAAQ,OAAO,oBAAoBL,CAAM,GACzCM,IAAU,OAAO,sBAAsBN,CAAM;AACnD,SAAO,CAAC,GAAGK,GAAO,GAAGC,CAAO,EAAE,OAAO,CAACb,GAAOC,MAAQ;AACnD,QAAIQ,EAAQD,EAAQ,KAAK,KAAK,CAACA,EAAQ,MAAM,SAASP,CAAG;AACvD,aAAOD;AAET,UAAMc,IAAMP,EAAON,CAAG,GAChBC,IAASI,EAAKQ,GAAKN,CAAO;AAChC,WAAAT,EAAWC,GAAOC,GAAKC,GAAQK,GAAQC,EAAQ,aAAa,GACrDR;AAAA,EACR,GAAE,CAAE,CAAA;AACP;","x_google_ignoreList":[0]}
package/dist/index131.js CHANGED
@@ -1,12 +1,5 @@
1
- import { getCurrentInstance as o, computed as r } from "vue";
2
- function u() {
3
- const t = o();
4
- return r(() => {
5
- var e;
6
- return (e = t == null ? void 0 : t.proxy) == null ? void 0 : e.$route;
7
- });
8
- }
1
+ const r = (e) => !(typeof e > "u" || e === null);
9
2
  export {
10
- u as useRoute
3
+ r as isNotNil
11
4
  };
12
5
  //# sourceMappingURL=index131.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index131.js","sources":["../src/composables/useRoute.ts"],"sourcesContent":["import { computed, getCurrentInstance, type Ref } from 'vue';\nimport type { RouteLocationNormalizedLoaded } from 'vue-router';\n\nexport function useRoute(): Ref<RouteLocationNormalizedLoaded | undefined> {\n\tconst vm = getCurrentInstance();\n\n\treturn computed(() => vm?.proxy?.$route);\n}\n"],"names":["useRoute","vm","getCurrentInstance","computed","_a"],"mappings":";AAGO,SAASA,IAA2D;AAC1E,QAAMC,IAAKC;AAEX,SAAOC,EAAS,MAAM;;AAAA,YAAAC,IAAAH,KAAA,gBAAAA,EAAI,UAAJ,gBAAAG,EAAW;AAAA,GAAM;AACxC;"}
1
+ {"version":3,"file":"index131.js","sources":["../src/utilities/functions/isNotNil.ts"],"sourcesContent":["/**\n * Returns true if the item is not null or undefined\n * @param value The item to check\n * @returns true | false\n */\nexport const isNotNil = <T>(\n\tvalue: T\n): value is Exclude<T, null | undefined> => {\n\tif (typeof value === 'undefined') return false;\n\tif (value === null) return false;\n\treturn true;\n};\n"],"names":["isNotNil","value"],"mappings":"AAKa,MAAAA,IAAW,CACvBC,MAEI,SAAOA,IAAU,OACjBA,MAAU;"}
package/dist/index132.js CHANGED
@@ -1,9 +1,8 @@
1
- import { getCurrentInstance as e } from "vue";
2
- function n() {
3
- var r, t;
4
- return (t = (r = e()) == null ? void 0 : r.proxy) == null ? void 0 : t.$router;
5
- }
1
+ const u = (e, s) => Object.keys(e).reduce(
2
+ (t, r) => (t[r] = s(e[r], r, e), t),
3
+ {}
4
+ );
6
5
  export {
7
- n as useRouter
6
+ u as mapValues
8
7
  };
9
8
  //# sourceMappingURL=index132.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index132.js","sources":["../src/composables/useRouter.ts"],"sourcesContent":["import { getCurrentInstance } from 'vue';\nimport type { Router } from 'vue-router';\n\nexport function useRouter(): Router | undefined {\n\treturn getCurrentInstance()?.proxy?.$router;\n}\n"],"names":["useRouter","_b","_a","getCurrentInstance"],"mappings":";AAGO,SAASA,IAAgC;;AACxC,UAAAC,KAAAC,IAAAC,EAAA,MAAA,gBAAAD,EAAsB,UAAtB,gBAAAD,EAA6B;AACrC;"}
1
+ {"version":3,"file":"index132.js","sources":["../src/utilities/functions/mapValues.ts"],"sourcesContent":["/*\nMaps the values of an object.\nIteratee is run with value, key, object as arguments\n\n*/\nexport const mapValues = <T extends Record<string, unknown>, U>(\n\tobj: T,\n\tfn: (v: T[keyof T], k: keyof T, o: T) => U\n): { [Property in keyof T]: ReturnType<typeof fn> } =>\n\t(Object.keys(obj) as (keyof T)[]).reduce(\n\t\t(acc, k) => {\n\t\t\tacc[k] = fn(obj[k], k, obj);\n\t\t\treturn acc;\n\t\t},\n\t\t{} as { [Property in keyof T]: ReturnType<typeof fn> }\n\t);\n"],"names":["mapValues","obj","fn","acc","k"],"mappings":"AAKO,MAAMA,IAAY,CACxBC,GACAC,MAEC,OAAO,KAAKD,CAAG,EAAkB;AAAA,EACjC,CAACE,GAAKC,OACLD,EAAIC,CAAC,IAAIF,EAAGD,EAAIG,CAAC,GAAGA,GAAGH,CAAG,GACnBE;AAAA,EAER,CAAC;AACF;"}
package/dist/index133.js CHANGED
@@ -1,6 +1,12 @@
1
- import o from "./index12.js";
2
- /* empty css */
1
+ import { getCurrentInstance as o, computed as r } from "vue";
2
+ function u() {
3
+ const t = o();
4
+ return r(() => {
5
+ var e;
6
+ return (e = t == null ? void 0 : t.proxy) == null ? void 0 : e.$route;
7
+ });
8
+ }
3
9
  export {
4
- o as default
10
+ u as useRoute
5
11
  };
6
12
  //# sourceMappingURL=index133.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index133.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index133.js","sources":["../src/composables/useRoute.ts"],"sourcesContent":["import { computed, getCurrentInstance, type Ref } from 'vue';\nimport type { RouteLocationNormalizedLoaded } from 'vue-router';\n\nexport function useRoute(): Ref<RouteLocationNormalizedLoaded | undefined> {\n\tconst vm = getCurrentInstance();\n\n\treturn computed(() => vm?.proxy?.$route);\n}\n"],"names":["useRoute","vm","getCurrentInstance","computed","_a"],"mappings":";AAGO,SAASA,IAA2D;AAC1E,QAAMC,IAAKC;AAEX,SAAOC,EAAS,MAAM;;AAAA,YAAAC,IAAAH,KAAA,gBAAAA,EAAI,UAAJ,gBAAAG,EAAW;AAAA,GAAM;AACxC;"}
package/dist/index134.js CHANGED
@@ -1,6 +1,9 @@
1
- import o from "./index14.js";
2
- /* empty css */
1
+ import { getCurrentInstance as e } from "vue";
2
+ function n() {
3
+ var r, t;
4
+ return (t = (r = e()) == null ? void 0 : r.proxy) == null ? void 0 : t.$router;
5
+ }
3
6
  export {
4
- o as default
7
+ n as useRouter
5
8
  };
6
9
  //# sourceMappingURL=index134.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index134.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index134.js","sources":["../src/composables/useRouter.ts"],"sourcesContent":["import { getCurrentInstance } from 'vue';\nimport type { Router } from 'vue-router';\n\nexport function useRouter(): Router | undefined {\n\treturn getCurrentInstance()?.proxy?.$router;\n}\n"],"names":["useRouter","_b","_a","getCurrentInstance"],"mappings":";AAGO,SAASA,IAAgC;;AACxC,UAAAC,KAAAC,IAAAC,EAAA,MAAA,gBAAAD,EAAsB,UAAtB,gBAAAD,EAA6B;AACrC;"}
package/dist/index135.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index16.js";
1
+ import o from "./index14.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index136.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index18.js";
1
+ import o from "./index16.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index137.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index20.js";
1
+ import o from "./index18.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index138.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index22.js";
1
+ import o from "./index20.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index139.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index24.js";
1
+ import o from "./index22.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index14.js CHANGED
@@ -1,133 +1,85 @@
1
- import { defineComponent as C, ref as b, computed as n, watch as E, openBlock as m, createElementBlock as p, normalizeProps as c, guardReactiveProps as h, mergeProps as f, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
2
- import { isCssColor as k } from "./index214.js";
3
- import { when as F } from "./index215.js";
4
- import { booleanishToBoolean as N } from "./index216.js";
5
- const S = {
6
- "aria-hidden": "true",
7
- class: "bb-base-checkbox-container"
8
- }, A = /* @__PURE__ */ s("svg", {
9
- class: "bb-base-checkbox-container__icon",
10
- viewBox: "276.411 158.834 114.971 114.97"
11
- }, [
12
- /* @__PURE__ */ s("path", {
13
- d: "M 297.574 224.786 L 318.309 243.134 L 371.568 189.232",
14
- fill: "none",
15
- "stroke-linecap": "round",
16
- "stroke-width": "14px"
17
- })
18
- ], -1), D = /* @__PURE__ */ C({
19
- __name: "BaseCheckbox",
1
+ import { defineComponent as y, getCurrentInstance as p, computed as s, resolveComponent as d, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
2
+ import { _config as o } from "./index5.js";
3
+ import { useLogger as m } from "./index218.js";
4
+ const P = /* @__PURE__ */ y({
5
+ __name: "BaseButton",
20
6
  props: {
21
- ariaDescribedby: {},
22
- autofocus: {},
23
- checked: { type: [Boolean, String] },
24
- color: {},
7
+ activeClass: {},
8
+ ariaCurrentValue: {},
9
+ block: { type: Boolean },
10
+ data: {},
25
11
  disabled: { type: Boolean },
26
- falseValue: { default: !1 },
27
- hasErrors: { type: Boolean },
28
- id: {},
29
- indeterminate: {},
30
- name: {},
31
- readonly: {},
32
- required: { type: Boolean },
33
- submitWhenFalse: { type: Boolean },
34
- trueValue: { default: !0 },
35
- modelValue: {}
12
+ exactActiveClass: {},
13
+ headers: {},
14
+ href: {},
15
+ method: {},
16
+ onBefore: {},
17
+ onCancel: {},
18
+ onCancelToken: {},
19
+ onFinish: {},
20
+ only: {},
21
+ onProgress: {},
22
+ onStart: {},
23
+ onSuccess: {},
24
+ preserveScroll: { type: [Boolean, Function] },
25
+ preserveState: { type: [Boolean, Function, null] },
26
+ queryStringArrayFormat: {},
27
+ replace: { type: Boolean },
28
+ tag: { default: "button" },
29
+ target: {},
30
+ text: {},
31
+ to: {},
32
+ type: { default: "button" }
36
33
  },
37
- emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
38
- setup(y, { emit: v }) {
39
- const e = y, t = v, l = b(null), r = n(() => e.checked ? N(e.checked) : JSON.stringify(e.trueValue) === JSON.stringify(e.modelValue)), u = b(!1), V = n(() => {
40
- const a = {
41
- class: {
42
- "bb-base-checkbox": !0,
43
- "bb-base-checkbox--disabled": e.disabled,
44
- "bb-base-checkbox--errors": e.hasErrors,
45
- "bb-base-checkbox--indeterminate": e.indeterminate,
46
- "bb-base-checkbox--readonly": e.readonly,
47
- [`bb-base-checkbox--${e.color}`]: e.color && !k(e.color)
34
+ setup(f) {
35
+ var i, l, u, c;
36
+ const t = f, a = !!((l = (i = p()) == null ? void 0 : i.proxy) != null && l.$inertia), g = !!((c = (u = p()) == null ? void 0 : u.proxy) != null && c.$nuxt), n = s(() => {
37
+ if (t.href || t.to && t.disabled) {
38
+ if (a && !t.disabled && !t.target) {
39
+ const e = d(o.inertiaLinkName);
40
+ if (typeof e == "string") {
41
+ const { warn: r } = m();
42
+ r(
43
+ `Inertia link component "${o.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
44
+ );
45
+ }
46
+ return e;
48
47
  }
49
- };
50
- return e.color && k(e.color) && (a.style = `--color: ${e.color}`), a;
51
- }), i = F(
52
- (a) => typeof a != "string",
53
- JSON.stringify
54
- ), x = n(() => {
55
- const a = i(e.falseValue);
56
- return {
57
- disabled: e.disabled,
58
- name: e.name,
59
- type: "hidden",
60
- value: a
61
- };
62
- }), d = n(() => {
63
- const a = i(e.trueValue), _ = {
64
- onBlur: (o) => {
65
- u.value = !1, t("blur", o);
66
- },
67
- onChange: (o) => {
68
- if (o.target instanceof HTMLInputElement) {
69
- let w = o.target.checked ? e.trueValue : e.falseValue;
70
- t("change", o), t("update:modelValue", w);
48
+ return "a";
49
+ }
50
+ if (t.to) {
51
+ if (g) {
52
+ const e = d(o.nuxtLinkName);
53
+ if (typeof e == "string") {
54
+ const { warn: r } = m();
55
+ r(
56
+ `Nuxt link component "${o.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.nuxtLinkName}" or set bitboss-ui config key "nuxtLInkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
57
+ );
71
58
  }
72
- },
73
- onClick: (o) => t("click", o),
74
- onFocus: (o) => {
75
- u.value = !0, t("focus", o);
76
- },
77
- onKeydown: (o) => t("keydown", o),
78
- onMousedown: (o) => t("mousedown", o),
79
- onMouseup: (o) => t("mouseup", o),
80
- onInput: (o) => t("input", o)
81
- };
82
- return {
83
- "aria-describedby": e.ariaDescribedby,
84
- autofocus: e.autofocus,
85
- checked: r.value,
86
- // There is no such thing as readonly checkbox so we disable and style it with css
87
- disabled: e.disabled || e.readonly,
88
- id: e.id,
89
- indeterminate: e.indeterminate,
90
- name: e.name,
91
- required: e.required,
92
- tabindex: e.disabled ? -1 : void 0,
93
- type: "checkbox",
94
- value: a,
95
- ..._
96
- };
97
- }), g = n(() => ({
98
- checked: r.value,
99
- disabled: e.disabled,
100
- falseValue: e.falseValue,
101
- focused: u.value,
102
- hasErrors: e.hasErrors,
103
- id: e.id,
104
- name: e.name,
105
- parsedValue: d.value.value,
106
- readonly: e.readonly,
107
- required: e.required,
108
- trueValue: e.trueValue,
109
- value: r.value ? e.trueValue : e.falseValue
110
- }));
111
- return E(
112
- () => [e.modelValue, e.checked, e.indeterminate],
113
- () => {
114
- l.value && (l.value.indeterminate = !!e.indeterminate);
59
+ return e;
60
+ }
61
+ return "router-link";
115
62
  }
116
- ), (a, B) => (m(), p("span", c(h(V.value)), [
117
- !r.value && a.submitWhenFalse ? (m(), p("input", c(f({ key: 0 }, x.value)), null, 16)) : I("", !0),
118
- s("input", f(d.value, {
119
- ref_key: "checkboxInput",
120
- ref: l
121
- }), null, 16),
122
- s("span", S, [
123
- q(a.$slots, "icon", c(h(g.value)), () => [
124
- A
63
+ return t.tag;
64
+ }), b = s(() => ({
65
+ "base-btn": !0,
66
+ "base-btn--block": t.block,
67
+ "base-btn--disabled": t.disabled
68
+ })), v = s(() => {
69
+ const e = {};
70
+ return n.value === "button" ? (e.disabled = t.disabled, e.type = t.type) : n.value === "a" || a && typeof n.value != "string" && n.value.name === "Link" ? t.disabled ? (e["aria-disabled"] = !0, e.role = "link") : (e.href = t.href, e.target = t.target, a && (e.data = t.data, e.headers = t.headers, e.method = t.method, e.onBefore = t.onBefore, e.onCancel = t.onCancel, e.onCancelToken = t.onCancelToken, e.onFinish = t.onFinish, e.only = t.only, e.onProgress = t.onProgress, e.onStart = t.onStart, e.onSuccess = t.onSuccess, e.preserveScroll = t.preserveScroll, e.preserveState = t.preserveState, e.queryStringArrayFormat = t.queryStringArrayFormat, e.replace = t.replace)) : (n.value === "router-link" || typeof n.value != "string" && n.value.name === "NuxtLink") && (e.activeClass = t.activeClass, e.ariaCurrentValue = t.ariaCurrentValue, e.exactActiveClass = t.exactActiveClass, e.replace = t.replace, e.target = t.target, e.to = t.to), e;
71
+ });
72
+ return (e, r) => (k(), h(C(n.value), x({ class: b.value }, v.value), {
73
+ default: S(() => [
74
+ L(e.$slots, "default", {}, () => [
75
+ B(N(e.text), 1)
125
76
  ])
126
- ])
127
- ], 16));
77
+ ]),
78
+ _: 3
79
+ }, 16, ["class"]));
128
80
  }
129
81
  });
130
82
  export {
131
- D as default
83
+ P as default
132
84
  };
133
85
  //# sourceMappingURL=index14.js.map