bitboss-ui 2.1.92 → 2.1.94

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 (297) hide show
  1. package/dist/components/BbTab/BbTab.vue.d.ts +130 -91
  2. package/dist/composables/useQuery.d.ts +15 -0
  3. package/dist/index.css +1 -1
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +133 -131
  6. package/dist/{index99.js → index100.js} +2 -2
  7. package/dist/{index101.js → index102.js} +2 -2
  8. package/dist/{index103.js → index104.js} +2 -2
  9. package/dist/index108.js +134 -168
  10. package/dist/index109.js +178 -0
  11. package/dist/index11.js +36 -38
  12. package/dist/{index110.js → index111.js} +2 -2
  13. package/dist/{index114.js → index115.js} +1 -1
  14. package/dist/{index116.js → index117.js} +2 -2
  15. package/dist/{index118.js → index119.js} +2 -2
  16. package/dist/index12.js +36 -179
  17. package/dist/index121.js +369 -0
  18. package/dist/{index122.js → index123.js} +15 -15
  19. package/dist/{index124.js → index125.js} +2 -2
  20. package/dist/{index126.js → index127.js} +2 -2
  21. package/dist/{index128.js → index129.js} +2 -2
  22. package/dist/index13.js +181 -124
  23. package/dist/{index130.js → index131.js} +2 -2
  24. package/dist/{index132.js → index133.js} +7 -7
  25. package/dist/{index134.js → index135.js} +1 -1
  26. package/dist/{index136.js → index137.js} +4 -4
  27. package/dist/index139.js +13 -11
  28. package/dist/index14.js +128 -0
  29. package/dist/index140.js +11 -2
  30. package/dist/index141.js +2 -419
  31. package/dist/index142.js +419 -9
  32. package/dist/index143.js +9 -25
  33. package/dist/index144.js +9 -2
  34. package/dist/index145.js +25 -5
  35. package/dist/index146.js +2 -6
  36. package/dist/index147.js +5 -5
  37. package/dist/index148.js +6 -3
  38. package/dist/index149.js +5 -3
  39. package/dist/index150.js +1 -1
  40. package/dist/index151.js +1 -1
  41. package/dist/index152.js +1 -1
  42. package/dist/index153.js +1 -1
  43. package/dist/index154.js +1 -1
  44. package/dist/index155.js +1 -1
  45. package/dist/index156.js +1 -1
  46. package/dist/index157.js +1 -1
  47. package/dist/index158.js +1 -1
  48. package/dist/index159.js +1 -1
  49. package/dist/{index15.js → index16.js} +8 -8
  50. package/dist/index160.js +1 -1
  51. package/dist/index161.js +1 -1
  52. package/dist/index162.js +1 -1
  53. package/dist/index163.js +1 -1
  54. package/dist/index164.js +1 -1
  55. package/dist/index165.js +1 -1
  56. package/dist/index166.js +1 -1
  57. package/dist/index167.js +1 -1
  58. package/dist/index168.js +1 -1
  59. package/dist/index169.js +1 -1
  60. package/dist/index170.js +1 -1
  61. package/dist/index171.js +1 -1
  62. package/dist/index172.js +1 -1
  63. package/dist/index173.js +1 -1
  64. package/dist/index174.js +1 -1
  65. package/dist/index175.js +1 -1
  66. package/dist/index176.js +1 -1
  67. package/dist/index177.js +1 -1
  68. package/dist/index178.js +1 -1
  69. package/dist/index179.js +3 -2
  70. package/dist/{index17.js → index18.js} +3 -3
  71. package/dist/index180.js +1 -1
  72. package/dist/index181.js +2 -3
  73. package/dist/index182.js +1 -1
  74. package/dist/index183.js +1 -1
  75. package/dist/index184.js +1 -1
  76. package/dist/index185.js +1 -1
  77. package/dist/index186.js +3 -2
  78. package/dist/index187.js +1 -1
  79. package/dist/index188.js +2 -3
  80. package/dist/index189.js +1 -1
  81. package/dist/index190.js +1 -1
  82. package/dist/index191.js +1 -1
  83. package/dist/index192.js +2 -2
  84. package/dist/index193.js +2 -2
  85. package/dist/index194.js +1 -1
  86. package/dist/index195.js +1 -1
  87. package/dist/index196.js +3 -2
  88. package/dist/index197.js +1 -1
  89. package/dist/index198.js +2 -3
  90. package/dist/index199.js +1 -1
  91. package/dist/{index19.js → index20.js} +9 -9
  92. package/dist/index200.js +1 -1
  93. package/dist/index201.js +1 -1
  94. package/dist/index202.js +1 -1
  95. package/dist/index203.js +1 -1
  96. package/dist/index204.js +1 -1
  97. package/dist/index205.js +1 -1
  98. package/dist/index206.js +1 -1
  99. package/dist/index207.js +1 -1
  100. package/dist/index208.js +1 -1
  101. package/dist/index209.js +1 -1
  102. package/dist/index210.js +1 -1
  103. package/dist/index211.js +1 -1
  104. package/dist/{index297.js → index212.js} +1 -1
  105. package/dist/index213.js +3 -7
  106. package/dist/index215.js +6 -137
  107. package/dist/index216.js +2 -2
  108. package/dist/index217.js +137 -32
  109. package/dist/index218.js +2 -28
  110. package/dist/index219.js +7 -0
  111. package/dist/{index21.js → index22.js} +15 -15
  112. package/dist/index220.js +7 -4
  113. package/dist/index221.js +2 -8
  114. package/dist/index222.js +2 -2
  115. package/dist/index223.js +2 -51
  116. package/dist/index224.js +6 -16
  117. package/dist/index225.js +2 -106
  118. package/dist/index226.js +9 -0
  119. package/dist/index227.js +5 -100
  120. package/dist/index228.js +7 -0
  121. package/dist/index229.js +5 -3
  122. package/dist/index230.js +5 -13
  123. package/dist/index231.js +3 -13
  124. package/dist/index232.js +5 -12
  125. package/dist/index233.js +8 -3
  126. package/dist/index234.js +268 -9
  127. package/dist/index235.js +50 -186
  128. package/dist/index236.js +52 -3
  129. package/dist/index237.js +32 -3
  130. package/dist/index238.js +59 -17
  131. package/dist/index239.js +13 -12
  132. package/dist/{index23.js → index24.js} +14 -14
  133. package/dist/index240.js +48 -12
  134. package/dist/index241.js +16 -11
  135. package/dist/index242.js +105 -28
  136. package/dist/index244.js +100 -4
  137. package/dist/index246.js +5 -0
  138. package/dist/index247.js +2 -229
  139. package/dist/index248.js +3 -2
  140. package/dist/index249.js +10 -86
  141. package/dist/index250.js +5 -0
  142. package/dist/index251.js +4 -2
  143. package/dist/index252.js +5 -3
  144. package/dist/index253.js +4 -10
  145. package/dist/index254.js +9 -3
  146. package/dist/index255.js +29 -4
  147. package/dist/index256.js +16 -5
  148. package/dist/index257.js +12 -5
  149. package/dist/index258.js +53 -5
  150. package/dist/index259.js +13 -5
  151. package/dist/{index25.js → index26.js} +4 -4
  152. package/dist/index260.js +12 -5
  153. package/dist/index261.js +2 -8
  154. package/dist/index262.js +59 -260
  155. package/dist/index263.js +33 -52
  156. package/dist/index264.js +26 -50
  157. package/dist/index266.js +187 -59
  158. package/dist/index267.js +3 -5
  159. package/dist/index268.js +3 -5
  160. package/dist/index269.js +33 -5
  161. package/dist/index270.js +8 -2
  162. package/dist/index271.js +5 -20
  163. package/dist/index272.js +5 -7
  164. package/dist/index273.js +5 -2
  165. package/dist/index274.js +19 -33
  166. package/dist/index275.js +135 -9
  167. package/dist/index277.js +86 -5
  168. package/dist/index279.js +15 -201
  169. package/dist/{index27.js → index28.js} +2 -2
  170. package/dist/index280.js +11 -0
  171. package/dist/index281.js +23 -9
  172. package/dist/index282.js +23 -23
  173. package/dist/index283.js +8 -22
  174. package/dist/index284.js +4 -6
  175. package/dist/index285.js +199 -14
  176. package/dist/index287.js +34 -2
  177. package/dist/index288.js +6 -6
  178. package/dist/index289.js +18 -7
  179. package/dist/index290.js +12 -9
  180. package/dist/index291.js +228 -7
  181. package/dist/index292.js +3 -67
  182. package/dist/index293.js +11 -53
  183. package/dist/index294.js +8 -0
  184. package/dist/index295.js +16 -3
  185. package/dist/index296.js +2 -2
  186. package/dist/index298.js +1 -1
  187. package/dist/index299.js +280 -17
  188. package/dist/{index29.js → index30.js} +6 -6
  189. package/dist/index300.js +2 -4
  190. package/dist/index301.js +16 -5
  191. package/dist/index302.js +2 -3
  192. package/dist/index303.js +15 -27
  193. package/dist/index304.js +2 -3
  194. package/dist/index305.js +27 -2
  195. package/dist/index306.js +2 -280
  196. package/dist/index307.js +2 -2
  197. package/dist/index308.js +2 -16
  198. package/dist/index309.js +2 -2
  199. package/dist/index310.js +2 -16
  200. package/dist/index311.js +28 -2
  201. package/dist/index312.js +2 -27
  202. package/dist/index313.js +3 -2
  203. package/dist/index315.js +4 -2
  204. package/dist/index316.js +17 -2
  205. package/dist/index317.js +3 -2
  206. package/dist/index318.js +3 -2
  207. package/dist/index319.js +125 -2
  208. package/dist/{index31.js → index32.js} +2 -2
  209. package/dist/index320.js +2 -5
  210. package/dist/index321.js +15 -3
  211. package/dist/index322.js +2 -125
  212. package/dist/index323.js +19 -2
  213. package/dist/index324.js +2 -15
  214. package/dist/index325.js +3 -2
  215. package/dist/index326.js +3 -19
  216. package/dist/index327.js +5 -2
  217. package/dist/index328.js +2 -719
  218. package/dist/index329.js +4 -366
  219. package/dist/index330.js +5 -57
  220. package/dist/index331.js +6 -2
  221. package/dist/index332.js +2 -58
  222. package/dist/index333.js +33 -33
  223. package/dist/index334.js +57 -227
  224. package/dist/index335.js +719 -6
  225. package/dist/index336.js +366 -35
  226. package/dist/index337.js +57 -6
  227. package/dist/index338.js +6 -128
  228. package/dist/index339.js +16 -395
  229. package/dist/{index33.js → index34.js} +9 -9
  230. package/dist/index340.js +7 -45
  231. package/dist/index341.js +14 -3
  232. package/dist/index342.js +5 -7
  233. package/dist/index343.js +5 -17
  234. package/dist/index344.js +34 -8
  235. package/dist/index345.js +6 -15
  236. package/dist/index346.js +129 -5
  237. package/dist/index347.js +397 -6
  238. package/dist/index351.js +221 -86
  239. package/dist/index352.js +21 -133
  240. package/dist/index354.js +133 -21
  241. package/dist/index355.js +49 -0
  242. package/dist/index356.js +87 -435
  243. package/dist/index357.js +427 -114
  244. package/dist/index358.js +126 -48
  245. package/dist/{index353.js → index359.js} +1 -1
  246. package/dist/{index35.js → index36.js} +5 -5
  247. package/dist/index360.js +52 -0
  248. package/dist/{index37.js → index38.js} +24 -24
  249. package/dist/{index39.js → index40.js} +8 -8
  250. package/dist/{index41.js → index42.js} +2 -2
  251. package/dist/{index43.js → index44.js} +9 -9
  252. package/dist/{index45.js → index46.js} +9 -9
  253. package/dist/{index47.js → index48.js} +4 -4
  254. package/dist/{index49.js → index50.js} +4 -4
  255. package/dist/{index51.js → index52.js} +2 -2
  256. package/dist/{index53.js → index54.js} +3 -3
  257. package/dist/{index55.js → index56.js} +2 -2
  258. package/dist/{index57.js → index58.js} +2 -2
  259. package/dist/{index59.js → index60.js} +1 -1
  260. package/dist/{index61.js → index62.js} +9 -9
  261. package/dist/{index63.js → index64.js} +2 -2
  262. package/dist/{index65.js → index66.js} +2 -2
  263. package/dist/{index67.js → index68.js} +1 -1
  264. package/dist/index7.js +2 -2
  265. package/dist/{index71.js → index72.js} +2 -2
  266. package/dist/{index73.js → index74.js} +3 -3
  267. package/dist/index76.js +17 -123
  268. package/dist/index77.js +127 -0
  269. package/dist/{index78.js → index79.js} +1 -1
  270. package/dist/{index80.js → index81.js} +10 -10
  271. package/dist/{index82.js → index83.js} +5 -5
  272. package/dist/{index84.js → index85.js} +3 -3
  273. package/dist/{index86.js → index87.js} +3 -3
  274. package/dist/index89.js +37 -125
  275. package/dist/index9.js +1 -1
  276. package/dist/index90.js +134 -0
  277. package/dist/{index91.js → index92.js} +4 -4
  278. package/dist/{index93.js → index94.js} +4 -4
  279. package/dist/{index95.js → index96.js} +7 -7
  280. package/dist/{index97.js → index98.js} +2 -2
  281. package/dist/utilities/functions/merge.d.ts +11 -1
  282. package/package.json +11 -3
  283. package/dist/index107.js +0 -144
  284. package/dist/index120.js +0 -301
  285. package/dist/index138.js +0 -15
  286. package/dist/index214.js +0 -4
  287. package/dist/index243.js +0 -18
  288. package/dist/index245.js +0 -137
  289. package/dist/index265.js +0 -34
  290. package/dist/index276.js +0 -5
  291. package/dist/index278.js +0 -6
  292. package/dist/index286.js +0 -13
  293. package/dist/index75.js +0 -21
  294. package/dist/index88.js +0 -46
  295. /package/dist/{index105.js → index106.js} +0 -0
  296. /package/dist/{index112.js → index113.js} +0 -0
  297. /package/dist/{index69.js → index70.js} +0 -0
package/dist/index13.js CHANGED
@@ -1,128 +1,185 @@
1
- import { defineComponent as w, getCurrentInstance as P, computed as r, createBlock as c, openBlock as i, mergeProps as f, withCtx as v, renderSlot as d, createTextVNode as p, toDisplayString as h, resolveDynamicComponent as b } from "vue";
2
- import R from "./index274.js";
3
- import { useFrameworkDetection as _ } from "./index234.js";
4
- import { _config as g } from "./index4.js";
5
- const D = /* @__PURE__ */ w({
6
- __name: "BaseButton",
7
- props: {
8
- activeClass: {},
9
- ariaCurrentValue: {},
10
- block: { type: Boolean },
11
- data: {},
12
- disabled: { type: Boolean },
13
- exactActiveClass: {},
14
- headers: {},
15
- href: {},
16
- method: {},
17
- onBefore: {},
18
- onCancel: {},
19
- onCancelToken: {},
20
- onFinish: {},
21
- only: {},
22
- onProgress: {},
23
- onStart: {},
24
- onSuccess: {},
25
- preserveScroll: { type: [Boolean, Function] },
26
- preserveState: { type: [Boolean, Function, null] },
27
- queryStringArrayFormat: {},
28
- replace: { type: Boolean },
29
- tag: { default: "button" },
30
- target: {},
31
- text: {},
32
- to: {},
33
- type: { default: "button" }
34
- },
35
- setup(C) {
36
- const e = C, { isInertia: a } = _(), S = P(), n = r(() => {
37
- const t = S?.proxy?.$page?.url;
38
- if (t)
39
- try {
40
- return new URL(t, "http://localhost").pathname;
41
- } catch {
42
- return;
43
- }
44
- }), k = r(() => {
45
- if (!a || !e.href || !n.value) return !1;
46
- try {
47
- return new URL(e.href, "http://localhost").pathname === n.value;
48
- } catch {
49
- return !1;
50
- }
51
- }), A = r(() => {
52
- if (!a || !e.href || !n.value) return !1;
53
- try {
54
- return n.value.startsWith(
55
- new URL(e.href, "http://localhost").pathname
56
- );
57
- } catch {
58
- return !1;
1
+ import { copy as Y } from "./index145.js";
2
+ import { reactive as D, watch as f, toValue as G, computed as d, provide as H } from "vue";
3
+ import { isNotNil as a } from "./index146.js";
4
+ import { mapValues as Q } from "./index147.js";
5
+ import { useRoute as X } from "./index148.js";
6
+ import { useRouter as Z } from "./index149.js";
7
+ import { useStepper as _ } from "./index142.js";
8
+ const ee = Symbol(), k = /((step\/)(?<step>[\s\S]+?)(?=[/?]))|((step\/)(?<step2>[\s\S]+))/, N = (i) => {
9
+ const s = i.match(k);
10
+ return s?.groups?.step ?? s?.groups?.step2 ?? null;
11
+ }, ue = (i) => {
12
+ if (!i.name)
13
+ throw new Error(
14
+ "You need to provide a unique name for the current wizard instance to be used to save data"
15
+ );
16
+ const s = X(), n = Z(), y = i.useNavigation ?? !0, S = i.navigationMode ?? "query", h = i.persist ?? !0;
17
+ if (y && (!s.value || !n))
18
+ throw new Error(
19
+ "Navigation is enabled but could not retrieve the router instance in useWizard."
20
+ );
21
+ const V = Y(i.initialState), u = D(
22
+ h && sessionStorage.getItem(i.name) ? {
23
+ ...V,
24
+ ...JSON.parse(sessionStorage.getItem(i.name))
25
+ } : V
26
+ );
27
+ h && f(u, () => {
28
+ sessionStorage.setItem(i.name, JSON.stringify(u));
29
+ });
30
+ const O = G(i.steps), r = d(
31
+ () => Object.entries(O).reduce(
32
+ (e, [t, o]) => (o.condition && !o.condition(u) || (e[t] = { ...o, key: t }), e),
33
+ {}
34
+ )
35
+ ), m = d(
36
+ () => Q(
37
+ r.value,
38
+ (e) => typeof e.isValid == "function" ? {
39
+ ...e,
40
+ isValid: e.isValid(u)
41
+ } : {
42
+ ...e,
43
+ isValid: e.isValid ?? !0
59
44
  }
60
- }), s = r(() => !!(e.href && a && !e.disabled && !e.target || e.to && !e.disabled)), o = r(() => !!(e.href || e.to && e.disabled)), m = r(
61
- () => e.activeClass ?? g.linkActiveClass
62
- ), y = r(
63
- () => e.exactActiveClass ?? g.linkExactActiveClass
64
- ), l = r(() => ({
65
- "base-btn": !0,
66
- "base-btn--block": e.block,
67
- "base-btn--disabled": e.disabled,
68
- [m.value]: A.value,
69
- [y.value]: k.value
70
- })), B = () => ({
71
- disabled: e.disabled,
72
- type: e.type
73
- }), F = () => {
74
- if (e.disabled)
75
- return {
76
- "aria-disabled": !0,
77
- role: "link",
78
- href: null
79
- };
80
- const t = {
81
- href: e.href,
82
- target: e.target
83
- };
84
- return a && (t.data = e.data, t.headers = e.headers, t.method = e.method, t.onBefore = e.onBefore, t.onCancel = e.onCancel, t.onCancelToken = e.onCancelToken, t.onFinish = e.onFinish, t.only = e.only, t.onProgress = e.onProgress, t.onStart = e.onStart, t.onSuccess = e.onSuccess, t.preserveScroll = e.preserveScroll, t.preserveState = e.preserveState, t.queryStringArrayFormat = e.queryStringArrayFormat, t.replace = e.replace), t;
85
- }, x = () => ({
86
- activeClass: m.value,
87
- ariaCurrentValue: e.ariaCurrentValue,
88
- exactActiveClass: y.value,
89
- replace: e.replace,
90
- target: e.target,
91
- to: e.to
92
- }), u = r(() => !s.value && !o.value ? B() : o.value || s.value && a ? F() : s.value ? x() : {});
93
- return (t, $) => s.value ? (i(), c(R, f({
94
- key: 0,
95
- class: l.value
96
- }, u.value), {
97
- default: v(() => [
98
- d(t.$slots, "default", {}, () => [
99
- p(h(t.text), 1)
100
- ])
101
- ]),
102
- _: 3
103
- }, 16, ["class"])) : o.value ? (i(), c(b("a"), f({
104
- key: 1,
105
- class: l.value
106
- }, u.value), {
107
- default: v(() => [
108
- d(t.$slots, "default", {}, () => [
109
- p(h(t.text), 1)
110
- ])
111
- ]),
112
- _: 3
113
- }, 16, ["class"])) : (i(), c(b(t.tag), f({
114
- key: 2,
115
- class: l.value
116
- }, u.value), {
117
- default: v(() => [
118
- d(t.$slots, "default", {}, () => [
119
- p(h(t.text), 1)
120
- ])
121
- ]),
122
- _: 3
123
- }, 16, ["class"]));
45
+ )
46
+ );
47
+ let l = null;
48
+ if (y && a(s.value)) {
49
+ let e = null;
50
+ if (S === "query")
51
+ s.value.query.step && (e = s.value.query.step);
52
+ else {
53
+ const t = N(s.value.fullPath);
54
+ t && (e = t);
55
+ }
56
+ l = e;
124
57
  }
125
- });
58
+ if (l)
59
+ for (const e in r.value) {
60
+ if (e === l) break;
61
+ const t = m.value[e];
62
+ if (!t || !t.isValid) {
63
+ l = null;
64
+ break;
65
+ }
66
+ }
67
+ const {
68
+ steps: q,
69
+ current: x,
70
+ goToNext: w,
71
+ goToPrevious: P,
72
+ goTo: v,
73
+ index: j,
74
+ at: A,
75
+ get: K,
76
+ goBackTo: z,
77
+ isAfter: F,
78
+ isBefore: I,
79
+ isCurrent: M,
80
+ isFirst: U,
81
+ isLast: B,
82
+ isNext: C,
83
+ isPrevious: E,
84
+ next: J,
85
+ previous: R,
86
+ stepNames: W
87
+ } = _(
88
+ m,
89
+ l || Object.values(r.value)[0].key
90
+ ), c = d(() => Object.keys(r.value)[j.value]), b = {
91
+ at: A,
92
+ current: x,
93
+ data: u,
94
+ get: K,
95
+ goBackTo: z,
96
+ goTo: v,
97
+ goToNext: w,
98
+ goToPrevious: P,
99
+ isAfter: F,
100
+ isBefore: I,
101
+ isCurrent: M,
102
+ isFirst: U,
103
+ isLast: B,
104
+ isNext: C,
105
+ isPrevious: E,
106
+ key: c,
107
+ next: J,
108
+ previous: R,
109
+ stepNames: W,
110
+ steps: q
111
+ };
112
+ if (H(ee, b), y)
113
+ if (S === "query")
114
+ f(
115
+ c,
116
+ () => {
117
+ a(n) && a(s.value) && n.push({
118
+ ...s,
119
+ query: { ...s.value.query, step: c.value ?? null }
120
+ });
121
+ },
122
+ { immediate: !0 }
123
+ ), f(
124
+ () => s.value?.query.step,
125
+ (e) => {
126
+ if (e) {
127
+ const t = e;
128
+ if (t in r.value) {
129
+ const o = t, p = Object.keys(r.value);
130
+ p.slice(
131
+ 0,
132
+ p.indexOf(o)
133
+ ).every(
134
+ (T) => m.value[T]?.isValid
135
+ ) && v(o);
136
+ }
137
+ } else {
138
+ const t = Object.keys(q)[0];
139
+ v(t);
140
+ }
141
+ }
142
+ );
143
+ else {
144
+ const e = d(() => {
145
+ if (a(s.value))
146
+ return N(s.value.fullPath);
147
+ });
148
+ f(
149
+ c,
150
+ (t) => {
151
+ a(s.value) && a(n) && t && (s.value.path.includes("step") ? n.push({
152
+ query: s.value.query,
153
+ path: s.value.path.replace(k, `step/${t}`)
154
+ }) : n.push({
155
+ query: s.value.query,
156
+ // Normalizes paths with / and without
157
+ path: (s.value.path + `/step/${t}`).replace("//", "/"),
158
+ replace: !0
159
+ }));
160
+ },
161
+ { immediate: !0 }
162
+ ), f(
163
+ () => e.value,
164
+ (t) => {
165
+ if (t && t !== c.value) {
166
+ const o = t;
167
+ if (o in r.value) {
168
+ const p = o, g = Object.keys(r.value);
169
+ g.slice(
170
+ 0,
171
+ g.indexOf(p)
172
+ ).every(
173
+ (L) => r.value[L]?.isValid
174
+ ) && v(p);
175
+ }
176
+ }
177
+ }
178
+ );
179
+ }
180
+ return b;
181
+ };
126
182
  export {
127
- D as default
183
+ ue as useWizard,
184
+ ee as wizardInjectionKey
128
185
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a, createElementBlock as o, openBlock as e, normalizeClass as c, createVNode as l, TransitionGroup as m, withCtx as i, Fragment as p, renderList as u, unref as r, createBlock as f, mergeProps as _ } from "vue";
2
- import { useToast as d, state as k } from "./index11.js";
3
- import b from "./index292.js";
2
+ import { useToast as d, state as k } from "./index12.js";
3
+ import b from "./index262.js";
4
4
  const $ = /* @__PURE__ */ a({
5
5
  __name: "BbToast",
6
6
  props: {
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as R, mergeModels as U, ref as L, computed as v, useTemplateRef as W, useModel as x, watch as m, onBeforeUnmount as F, createElementBlock as I, openBlock as g, Fragment as _, renderSlot as k, createCommentVNode as C, createVNode as j, normalizeProps as q, mergeProps as B, withCtx as T, createElementVNode as f, normalizeStyle as G, createBlock as H, unref as J } from "vue";
2
2
  import { useId as K } from "./index8.js";
3
- import { useLocale as Q } from "./index231.js";
4
- import { useUntil as X } from "./index232.js";
5
- import Y from "./index13.js";
3
+ import { useLocale as Q } from "./index239.js";
4
+ import { useUntil as X } from "./index260.js";
5
+ import Y from "./index14.js";
6
6
  /* empty css */
7
- import Z from "./index245.js";
7
+ import Z from "./index275.js";
8
8
  /* empty css */
9
- import { useElementSize as ee } from "./index141.js";
10
- import { extractDomContainer as V } from "./index255.js";
11
- import { parseWidthString as te } from "./index283.js";
9
+ import { useElementSize as ee } from "./index142.js";
10
+ import { extractDomContainer as V } from "./index251.js";
11
+ import { parseWidthString as te } from "./index282.js";
12
12
  const ce = /* @__PURE__ */ R({
13
13
  inheritAttrs: !1,
14
14
  __name: "BbTooltip",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index277.js";
2
+ import { flattenTree as T } from "./index252.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as k, ref as y, createElementBlock as C, openBlock as t, normalizeClass as E, renderSlot as n, createBlock as s, createCommentVNode as l, createVNode as a, createElementVNode as m, unref as p } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import u from "./index86.js";
4
+ import u from "./index87.js";
5
5
  /* empty css */
6
- import I from "./index114.js";
6
+ import I from "./index115.js";
7
7
  /* empty css */
8
- import N from "./index217.js";
9
- import g from "./index218.js";
8
+ import N from "./index263.js";
9
+ import g from "./index264.js";
10
10
  /* empty css */
11
11
  const h = { class: "bb-common-input-inner-container__prefix" }, B = { class: "bb-common-input-inner-container__suffix" }, R = /* @__PURE__ */ k({
12
12
  __name: "CommonInputInnerContainer",
package/dist/index139.js CHANGED
@@ -1,13 +1,15 @@
1
- import { clamp as s } from "./index214.js";
2
- const o = (n, e, r = !1) => {
3
- const t = n * 100 / e;
4
- return r ? s(t, 0, 100) : t;
5
- }, g = (n, e, r, t = !1) => o(n - e, r - e, t), l = (n, e, r) => {
6
- const t = r - e, c = n / 100 * t;
7
- return e + c;
8
- };
1
+ import { createElementBlock as t, openBlock as n, renderSlot as e } from "vue";
2
+ /* empty css */
3
+ import r from "./index215.js";
4
+ const s = {}, c = { class: "bb-common-input-outer-container" };
5
+ function p(o, a) {
6
+ return n(), t("span", c, [
7
+ e(o.$slots, "prepend-outer"),
8
+ e(o.$slots, "default"),
9
+ e(o.$slots, "append-outer")
10
+ ]);
11
+ }
12
+ const i = /* @__PURE__ */ r(s, [["render", p]]);
9
13
  export {
10
- o as getAsPercentage,
11
- g as getAsPercentageBetween,
12
- l as getValueFromPercentageInInterval
14
+ i as default
13
15
  };
@@ -0,0 +1,128 @@
1
+ import { defineComponent as w, getCurrentInstance as P, computed as r, createBlock as c, openBlock as i, mergeProps as f, withCtx as v, renderSlot as d, createTextVNode as p, toDisplayString as h, resolveDynamicComponent as b } from "vue";
2
+ import R from "./index287.js";
3
+ import { useFrameworkDetection as _ } from "./index143.js";
4
+ import { _config as g } from "./index4.js";
5
+ const D = /* @__PURE__ */ w({
6
+ __name: "BaseButton",
7
+ props: {
8
+ activeClass: {},
9
+ ariaCurrentValue: {},
10
+ block: { type: Boolean },
11
+ data: {},
12
+ disabled: { type: Boolean },
13
+ exactActiveClass: {},
14
+ headers: {},
15
+ href: {},
16
+ method: {},
17
+ onBefore: {},
18
+ onCancel: {},
19
+ onCancelToken: {},
20
+ onFinish: {},
21
+ only: {},
22
+ onProgress: {},
23
+ onStart: {},
24
+ onSuccess: {},
25
+ preserveScroll: { type: [Boolean, Function] },
26
+ preserveState: { type: [Boolean, Function, null] },
27
+ queryStringArrayFormat: {},
28
+ replace: { type: Boolean },
29
+ tag: { default: "button" },
30
+ target: {},
31
+ text: {},
32
+ to: {},
33
+ type: { default: "button" }
34
+ },
35
+ setup(C) {
36
+ const e = C, { isInertia: a } = _(), S = P(), n = r(() => {
37
+ const t = S?.proxy?.$page?.url;
38
+ if (t)
39
+ try {
40
+ return new URL(t, "http://localhost").pathname;
41
+ } catch {
42
+ return;
43
+ }
44
+ }), k = r(() => {
45
+ if (!a || !e.href || !n.value) return !1;
46
+ try {
47
+ return new URL(e.href, "http://localhost").pathname === n.value;
48
+ } catch {
49
+ return !1;
50
+ }
51
+ }), A = r(() => {
52
+ if (!a || !e.href || !n.value) return !1;
53
+ try {
54
+ return n.value.startsWith(
55
+ new URL(e.href, "http://localhost").pathname
56
+ );
57
+ } catch {
58
+ return !1;
59
+ }
60
+ }), s = r(() => !!(e.href && a && !e.disabled && !e.target || e.to && !e.disabled)), o = r(() => !!(e.href || e.to && e.disabled)), m = r(
61
+ () => e.activeClass ?? g.linkActiveClass
62
+ ), y = r(
63
+ () => e.exactActiveClass ?? g.linkExactActiveClass
64
+ ), l = r(() => ({
65
+ "base-btn": !0,
66
+ "base-btn--block": e.block,
67
+ "base-btn--disabled": e.disabled,
68
+ [m.value]: A.value,
69
+ [y.value]: k.value
70
+ })), B = () => ({
71
+ disabled: e.disabled,
72
+ type: e.type
73
+ }), F = () => {
74
+ if (e.disabled)
75
+ return {
76
+ "aria-disabled": !0,
77
+ role: "link",
78
+ href: null
79
+ };
80
+ const t = {
81
+ href: e.href,
82
+ target: e.target
83
+ };
84
+ return a && (t.data = e.data, t.headers = e.headers, t.method = e.method, t.onBefore = e.onBefore, t.onCancel = e.onCancel, t.onCancelToken = e.onCancelToken, t.onFinish = e.onFinish, t.only = e.only, t.onProgress = e.onProgress, t.onStart = e.onStart, t.onSuccess = e.onSuccess, t.preserveScroll = e.preserveScroll, t.preserveState = e.preserveState, t.queryStringArrayFormat = e.queryStringArrayFormat, t.replace = e.replace), t;
85
+ }, x = () => ({
86
+ activeClass: m.value,
87
+ ariaCurrentValue: e.ariaCurrentValue,
88
+ exactActiveClass: y.value,
89
+ replace: e.replace,
90
+ target: e.target,
91
+ to: e.to
92
+ }), u = r(() => !s.value && !o.value ? B() : o.value || s.value && a ? F() : s.value ? x() : {});
93
+ return (t, $) => s.value ? (i(), c(R, f({
94
+ key: 0,
95
+ class: l.value
96
+ }, u.value), {
97
+ default: v(() => [
98
+ d(t.$slots, "default", {}, () => [
99
+ p(h(t.text), 1)
100
+ ])
101
+ ]),
102
+ _: 3
103
+ }, 16, ["class"])) : o.value ? (i(), c(b("a"), f({
104
+ key: 1,
105
+ class: l.value
106
+ }, u.value), {
107
+ default: v(() => [
108
+ d(t.$slots, "default", {}, () => [
109
+ p(h(t.text), 1)
110
+ ])
111
+ ]),
112
+ _: 3
113
+ }, 16, ["class"])) : (i(), c(b(t.tag), f({
114
+ key: 2,
115
+ class: l.value
116
+ }, u.value), {
117
+ default: v(() => [
118
+ d(t.$slots, "default", {}, () => [
119
+ p(h(t.text), 1)
120
+ ])
121
+ ]),
122
+ _: 3
123
+ }, 16, ["class"]));
124
+ }
125
+ });
126
+ export {
127
+ D as default
128
+ };
package/dist/index140.js CHANGED
@@ -1,4 +1,13 @@
1
- const o = (e) => new Promise((t) => setTimeout(t, e));
1
+ import { clamp as s } from "./index216.js";
2
+ const o = (n, e, r = !1) => {
3
+ const t = n * 100 / e;
4
+ return r ? s(t, 0, 100) : t;
5
+ }, g = (n, e, r, t = !1) => o(n - e, r - e, t), l = (n, e, r) => {
6
+ const t = r - e, c = n / 100 * t;
7
+ return e + c;
8
+ };
2
9
  export {
3
- o as wait
10
+ o as getAsPercentage,
11
+ g as getAsPercentageBetween,
12
+ l as getValueFromPercentageInInterval
4
13
  };