bitboss-ui 2.1.93 → 2.1.95

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 (299) hide show
  1. package/dist/components/BbTab/BbTab.vue.d.ts +16 -6
  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/index212.js +5 -0
  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 -4
  109. package/dist/index218.js +2 -8
  110. package/dist/index219.js +4 -3
  111. package/dist/{index21.js → index22.js} +15 -15
  112. package/dist/index220.js +8 -13
  113. package/dist/index221.js +2 -20
  114. package/dist/index222.js +2 -201
  115. package/dist/index223.js +4 -0
  116. package/dist/index224.js +7 -135
  117. package/dist/index225.js +4 -0
  118. package/dist/index226.js +7 -7
  119. package/dist/index227.js +5 -2
  120. package/dist/index228.js +5 -2
  121. package/dist/index229.js +5 -188
  122. package/dist/index230.js +5 -3
  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 -4
  127. package/dist/index235.js +52 -10
  128. package/dist/index236.js +52 -3
  129. package/dist/index237.js +32 -4
  130. package/dist/index238.js +60 -3
  131. package/dist/index239.js +12 -8
  132. package/dist/{index23.js → index24.js} +14 -14
  133. package/dist/index240.js +51 -8
  134. package/dist/index241.js +17 -3
  135. package/dist/index242.js +105 -28
  136. package/dist/index244.js +100 -17
  137. package/dist/index246.js +3 -12
  138. package/dist/index247.js +2 -33
  139. package/dist/index248.js +3 -28
  140. package/dist/index249.js +12 -0
  141. package/dist/index250.js +2 -22
  142. package/dist/index251.js +4 -5
  143. package/dist/index252.js +5 -5
  144. package/dist/index253.js +4 -5
  145. package/dist/index254.js +9 -5
  146. package/dist/index255.js +29 -2
  147. package/dist/index256.js +16 -6
  148. package/dist/index257.js +12 -8
  149. package/dist/index258.js +52 -267
  150. package/dist/index259.js +12 -51
  151. package/dist/{index25.js → index26.js} +4 -4
  152. package/dist/index260.js +13 -52
  153. package/dist/index261.js +2 -32
  154. package/dist/index262.js +59 -52
  155. package/dist/index263.js +33 -86
  156. package/dist/index264.js +30 -0
  157. package/dist/index266.js +187 -33
  158. package/dist/index267.js +3 -9
  159. package/dist/index268.js +3 -9
  160. package/dist/index269.js +33 -23
  161. package/dist/index270.js +8 -6
  162. package/dist/index271.js +5 -16
  163. package/dist/index272.js +5 -53
  164. package/dist/index273.js +5 -2
  165. package/dist/index274.js +19 -6
  166. package/dist/index275.js +135 -7
  167. package/dist/index277.js +86 -2
  168. package/dist/index279.js +15 -3
  169. package/dist/{index27.js → index28.js} +2 -2
  170. package/dist/index280.js +7 -16
  171. package/dist/index281.js +23 -12
  172. package/dist/index282.js +22 -105
  173. package/dist/index284.js +4 -100
  174. package/dist/index285.js +203 -0
  175. package/dist/index287.js +33 -32
  176. package/dist/index288.js +7 -3
  177. package/dist/index289.js +17 -66
  178. package/dist/index290.js +12 -11
  179. package/dist/index291.js +229 -5
  180. package/dist/index292.js +3 -5
  181. package/dist/index293.js +11 -5
  182. package/dist/index294.js +6 -5
  183. package/dist/index295.js +16 -3
  184. package/dist/index296.js +7 -3
  185. package/dist/index298.js +5 -0
  186. package/dist/index299.js +280 -3
  187. package/dist/{index29.js → index30.js} +6 -6
  188. package/dist/index300.js +2 -5
  189. package/dist/index301.js +16 -4
  190. package/dist/index302.js +2 -3
  191. package/dist/index303.js +16 -17
  192. package/dist/index304.js +2 -28
  193. package/dist/index305.js +23 -276
  194. package/dist/index306.js +2 -2
  195. package/dist/index307.js +2 -16
  196. package/dist/index308.js +2 -2
  197. package/dist/index309.js +2 -16
  198. package/dist/index310.js +2 -2
  199. package/dist/index311.js +27 -26
  200. package/dist/index312.js +2 -2
  201. package/dist/index313.js +3 -2
  202. package/dist/index314.js +1 -1
  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 -719
  208. package/dist/{index31.js → index32.js} +2 -2
  209. package/dist/index320.js +2 -366
  210. package/dist/index321.js +14 -56
  211. package/dist/index322.js +2 -4
  212. package/dist/index323.js +19 -3
  213. package/dist/index324.js +2 -3
  214. package/dist/index325.js +3 -2
  215. package/dist/index326.js +3 -6
  216. package/dist/index327.js +4 -4
  217. package/dist/index328.js +1 -1
  218. package/dist/index329.js +3 -7
  219. package/dist/index330.js +5 -6
  220. package/dist/index331.js +6 -8
  221. package/dist/index332.js +2 -5
  222. package/dist/index333.js +58 -7
  223. package/dist/index334.js +58 -7
  224. package/dist/index335.js +719 -19
  225. package/dist/index336.js +366 -9
  226. package/dist/index337.js +54 -12
  227. package/dist/index338.js +6 -227
  228. package/dist/index339.js +18 -34
  229. package/dist/{index33.js → index34.js} +9 -9
  230. package/dist/index340.js +9 -6
  231. package/dist/index341.js +12 -126
  232. package/dist/index342.js +5 -398
  233. package/dist/index343.js +7 -58
  234. package/dist/index344.js +35 -58
  235. package/dist/index345.js +6 -125
  236. package/dist/index346.js +129 -2
  237. package/dist/index347.js +397 -14
  238. package/dist/index348.js +8 -2
  239. package/dist/index349.js +5 -18
  240. package/dist/index350.js +8 -2
  241. package/dist/index351.js +227 -21
  242. package/dist/index352.js +24 -0
  243. package/dist/index354.js +131 -44
  244. package/dist/index355.js +46 -92
  245. package/dist/index356.js +85 -512
  246. package/dist/index359.js +515 -45
  247. package/dist/{index35.js → index36.js} +5 -5
  248. package/dist/index360.js +52 -0
  249. package/dist/{index37.js → index38.js} +24 -24
  250. package/dist/{index39.js → index40.js} +8 -8
  251. package/dist/{index41.js → index42.js} +2 -2
  252. package/dist/{index43.js → index44.js} +9 -9
  253. package/dist/{index45.js → index46.js} +9 -9
  254. package/dist/{index47.js → index48.js} +4 -4
  255. package/dist/{index49.js → index50.js} +4 -4
  256. package/dist/{index51.js → index52.js} +2 -2
  257. package/dist/{index53.js → index54.js} +3 -3
  258. package/dist/{index55.js → index56.js} +2 -2
  259. package/dist/{index57.js → index58.js} +2 -2
  260. package/dist/{index59.js → index60.js} +1 -1
  261. package/dist/{index61.js → index62.js} +9 -9
  262. package/dist/{index63.js → index64.js} +2 -2
  263. package/dist/{index65.js → index66.js} +2 -2
  264. package/dist/{index67.js → index68.js} +1 -1
  265. package/dist/index7.js +2 -2
  266. package/dist/{index71.js → index72.js} +2 -2
  267. package/dist/{index73.js → index74.js} +3 -3
  268. package/dist/index76.js +17 -123
  269. package/dist/index77.js +127 -0
  270. package/dist/{index78.js → index79.js} +1 -1
  271. package/dist/{index80.js → index81.js} +10 -10
  272. package/dist/{index82.js → index83.js} +5 -5
  273. package/dist/{index84.js → index85.js} +3 -3
  274. package/dist/{index86.js → index87.js} +3 -3
  275. package/dist/index89.js +37 -125
  276. package/dist/index9.js +1 -1
  277. package/dist/index90.js +134 -0
  278. package/dist/{index91.js → index92.js} +4 -4
  279. package/dist/{index93.js → index94.js} +4 -4
  280. package/dist/{index95.js → index96.js} +7 -7
  281. package/dist/{index97.js → index98.js} +2 -2
  282. package/package.json +10 -2
  283. package/dist/index107.js +0 -144
  284. package/dist/index120.js +0 -373
  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 -53
  289. package/dist/index265.js +0 -17
  290. package/dist/index278.js +0 -4
  291. package/dist/index286.js +0 -231
  292. package/dist/index297.js +0 -9
  293. package/dist/index353.js +0 -136
  294. package/dist/index75.js +0 -21
  295. package/dist/index88.js +0 -46
  296. /package/dist/{index105.js → index106.js} +0 -0
  297. /package/dist/{index112.js → index113.js} +0 -0
  298. /package/dist/{index276.js → index283.js} +0 -0
  299. /package/dist/{index69.js → index70.js} +0 -0
package/dist/index120.js DELETED
@@ -1,373 +0,0 @@
1
- import { defineComponent as ie, ref as c, computed as y, getCurrentInstance as ce, watch as b, nextTick as de, onMounted as ue, createElementBlock as g, openBlock as u, normalizeClass as I, unref as fe, createElementVNode as v, renderSlot as k, normalizeProps as A, guardReactiveProps as H, normalizeStyle as he, Fragment as O, renderList as U, createVNode as be, withCtx as $, toDisplayString as ve, createBlock as X, resolveDynamicComponent as me, Transition as pe, createCommentVNode as ye } from "vue";
2
- import { useId as ge } from "./index8.js";
3
- import { useRoute as ke } from "./index146.js";
4
- import { useRouter as Se } from "./index147.js";
5
- import { useScroll as _e, useResizeObserver as we } from "./index141.js";
6
- import xe from "./index13.js";
7
- /* empty css */
8
- import Ce from "./index112.js";
9
- /* empty css */
10
- import { useFrameworkDetection as Ie } from "./index267.js";
11
- import { merge as $e } from "./index287.js";
12
- import { isNil as Be } from "./index227.js";
13
- const qe = ["id"], Te = { class: "bb-tab__label-boundary" }, Le = { class: "bb-tab__label" }, Fe = { class: "bb-tab__panes-container" }, Ee = ["id", "aria-labelledby", "tabindex"], je = /* @__PURE__ */ ie({
14
- __name: "BbTab",
15
- props: {
16
- disabled: { type: Boolean },
17
- eager: { type: Boolean },
18
- id: {},
19
- headers: {},
20
- only: {},
21
- onBefore: {},
22
- onCancel: {},
23
- onFinish: {},
24
- onError: {},
25
- onProgress: {},
26
- onStart: {},
27
- onSuccess: {},
28
- preserveScroll: { type: [Boolean, Function] },
29
- preserveState: { type: [Boolean, Function, null] },
30
- server: { type: Boolean },
31
- animateX: { type: Boolean, default: !0 },
32
- animateY: { type: Boolean, default: !0 },
33
- direction: { default: "horizontal" },
34
- items: {},
35
- modelValue: {},
36
- navigation: { type: Boolean },
37
- querykey: { default: "tab" },
38
- replace: { type: Boolean }
39
- },
40
- emits: ["update:modelValue"],
41
- setup(Y, { expose: J, emit: M }) {
42
- const t = Y, j = M, f = ke(), B = Se(), G = c(), q = t.id ?? ge().id.value, w = `bb-tab_${q}`, r = c(), { isScrolling: Q, arrivedState: T } = _e(r), L = y(() => ({
43
- isScrolling: Q.value,
44
- left: T.left,
45
- right: T.right
46
- })), { isInertia: F } = Ie(), Z = ce(), a = c(null), i = y(
47
- () => t.items.findIndex((e) => e.key === a.value)
48
- ), S = y(() => i.value === 0), _ = y(() => i.value === t.items.length - 1);
49
- t.items.forEach((e) => {
50
- if (!e.key)
51
- throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
52
- });
53
- const E = () => {
54
- if (t.navigation && f.value?.query?.[t.querykey])
55
- a.value = f.value?.query?.[t.querykey];
56
- else if (t.navigation && F && globalThis?.location?.href && new URL(globalThis.location.href).searchParams.get(t.querykey))
57
- a.value = new URL(globalThis.location.href).searchParams.get(
58
- t.querykey
59
- );
60
- else if (t.modelValue)
61
- a.value = t.modelValue;
62
- else if (t.items[0]) {
63
- const e = t.items.find((n) => !n.disabled);
64
- if (!e)
65
- throw new Error(
66
- "No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
67
- );
68
- const s = e.key;
69
- a.value = s;
70
- }
71
- };
72
- E();
73
- const ee = (e) => ({
74
- headers: e.headers ?? t.headers,
75
- only: e.only ?? t.only,
76
- preserveScroll: e.preserveScroll ?? t.preserveScroll,
77
- preserveState: e.preserveState ?? t.preserveState,
78
- server: e.server ?? t.server,
79
- onBefore: e.onBefore ?? t.onBefore,
80
- onStart: e.onStart ?? t.onStart,
81
- onProgress: e.onProgress ?? t.onProgress,
82
- onSuccess: e.onSuccess ?? t.onSuccess,
83
- onError: e.onError ?? t.onError,
84
- onCancel: e.onCancel ?? t.onCancel,
85
- onFinish: e.onFinish ?? t.onFinish
86
- }), P = y(() => {
87
- const e = a.value, s = i.value;
88
- return t.items.map((o) => {
89
- const { key: l, label: h, eager: C } = o, z = `${w}_tab_${o.key}`, ne = `${w}_tabpanel_${o.key}`, se = `label-${o.key}`, p = o.key === a.value, oe = {
90
- "bb-tab__btn": !0,
91
- "bb-tab__btn--active": p
92
- }, le = {
93
- "bb-tab__pane": !0,
94
- "bb-tab__pane--shown": p
95
- }, ae = !!(o.disabled || t.disabled);
96
- return {
97
- tabId: z,
98
- eager: C,
99
- panelId: ne,
100
- active: p,
101
- ariaSelected: !!p,
102
- labelSlotName: se,
103
- tabClasses: oe,
104
- paneClasses: le,
105
- role: "tab",
106
- tabindex: p ? 0 : -1,
107
- disabled: ae,
108
- current: e,
109
- key: l,
110
- label: h,
111
- currentIndex: s,
112
- onClick: () => m(o.key),
113
- onKeydown: (re) => te(re)
114
- };
115
- });
116
- }), m = async (e, s = t.replace) => {
117
- const n = t.items.find((l) => l.key === e);
118
- if (Be(n) || n.key === a.value) return;
119
- const o = n ? ee(n) : {};
120
- if (t.navigation && f.value && f.value?.query?.[t.querykey] !== e) {
121
- if (!B) return;
122
- B[s ? "replace" : "push"](
123
- $e(f.value, {
124
- query: { [t.querykey]: e },
125
- replace: s
126
- })
127
- );
128
- } else if (t.navigation && F) {
129
- const l = n.href ?? globalThis.location.href, h = new URL(l, window.location.origin);
130
- h.searchParams.set(t.querykey, e);
131
- const C = o.server ? "visit" : "push";
132
- (Z?.proxy?.$inertia)[C](h.toString(), {
133
- replace: s,
134
- headers: o.headers,
135
- only: o.only,
136
- preserveScroll: o.preserveScroll,
137
- preserveState: o.preserveState ?? !0,
138
- onBefore: o.onBefore,
139
- onStart: o.onStart,
140
- onProgress: o.onProgress,
141
- onSuccess: o.onSuccess,
142
- onError: o.onError,
143
- onCancel: o.onCancel,
144
- onFinish: o.onFinish
145
- });
146
- }
147
- t.modelValue !== e && j("update:modelValue", e), a.value = e;
148
- };
149
- a.value && m(a.value, !0);
150
- const d = (e) => {
151
- var s = null;
152
- switch (e) {
153
- case "first":
154
- for (s = 0; s < t.items.length - 1 && t.items[s].disabled; )
155
- s++;
156
- break;
157
- case "previous": {
158
- let l = 1;
159
- for (; l < t.items.length && (s = (i.value + t.items.length - l) % t.items.length, t.items[s].disabled); )
160
- l++;
161
- break;
162
- }
163
- case "next": {
164
- let l = 1;
165
- for (; l < t.items.length && (s = (i.value + l) % t.items.length, t.items[s].disabled); )
166
- l++;
167
- break;
168
- }
169
- case "last":
170
- for (s = t.items.length - 1; s >= 0 && t.items[s].disabled; )
171
- s--;
172
- break;
173
- }
174
- if (s === null)
175
- throw new Error("Could not navigate to next tab");
176
- if (t.items[s].disabled) return;
177
- const n = t.items[s].key;
178
- document.querySelector(
179
- `#${w}_tab_${n}`
180
- )?.focus(), m(n);
181
- }, te = (e) => {
182
- if (!t.disabled)
183
- if (e.key === "ArrowRight")
184
- d("next");
185
- else if (e.key === "ArrowLeft")
186
- d("previous");
187
- else if (e.key === "Home")
188
- e.preventDefault(), d("first");
189
- else if (e.key === "End")
190
- e.preventDefault(), d("last");
191
- else
192
- return;
193
- };
194
- b(
195
- () => t.modelValue,
196
- (e) => {
197
- e && m(e);
198
- }
199
- ), b(
200
- () => f.value?.query?.[t.querykey],
201
- (e) => {
202
- e && typeof e == "string" && m(e);
203
- }
204
- ), b(
205
- a,
206
- async () => {
207
- if (!r.value) return;
208
- const e = r.value.querySelector(
209
- ".bb-tab__btn--active"
210
- );
211
- if (!e) return;
212
- await de();
213
- const s = r.value, n = e.offsetLeft, o = n + e.offsetWidth, l = s.scrollLeft, h = l + s.clientWidth;
214
- n < l ? s.scrollTo({ left: n, behavior: "smooth" }) : o > h && s.scrollTo({
215
- left: o - s.clientWidth,
216
- behavior: "smooth"
217
- });
218
- },
219
- { flush: "post" }
220
- );
221
- const R = c("right");
222
- b(
223
- a,
224
- (e, s) => {
225
- if (e && s) {
226
- const n = t.items.findIndex((l) => l.key === e), o = t.items.findIndex((l) => l.key === s);
227
- R.value = n > o ? "right" : "left";
228
- }
229
- },
230
- { flush: "sync" }
231
- );
232
- const V = c(0), K = c(0), N = c(0), D = c(0), W = c(0), x = () => {
233
- if (!r.value)
234
- return;
235
- const e = r.value.querySelector(
236
- ".bb-tab__btn--active"
237
- );
238
- e && (N.value = e.offsetLeft, D.value = e.offsetTop, V.value = e.clientWidth, K.value = e.clientHeight, W.value = r.value.scrollWidth);
239
- };
240
- return ue(x), b(a, x, { flush: "post" }), we(r, () => {
241
- x();
242
- }), b(
243
- () => t.items,
244
- () => {
245
- a.value && !t.items.find((e) => e.key === a.value) && E();
246
- },
247
- {
248
- immediate: !0,
249
- deep: !0
250
- }
251
- ), J({
252
- isFirst: S,
253
- isLast: _,
254
- current: a,
255
- currentIndex: i,
256
- goTo: d
257
- }), (e, s) => (u(), g("div", {
258
- id: fe(q),
259
- ref_key: "tabs",
260
- ref: G,
261
- class: I(["bb-tab", {
262
- [`bb-tab--${e.direction}`]: !0,
263
- "bb-tab--disabled": e.disabled
264
- }])
265
- }, [
266
- v("div", Te, [
267
- v("span", null, [
268
- k(e.$slots, "header:prepend", A(H(L.value)))
269
- ]),
270
- v("ul", {
271
- ref_key: "tablist",
272
- ref: r,
273
- class: "bb-tab__label-container",
274
- role: "tablist",
275
- style: he({
276
- "--inner-width": `${W.value}px`,
277
- "--width": `${V.value}px`,
278
- "--height": `${K.value}px`,
279
- "--left": `${N.value}px`,
280
- "--top": `${D.value}px`
281
- })
282
- }, [
283
- (u(!0), g(O, null, U(P.value, (n) => (u(), g("li", {
284
- key: n.tabId,
285
- role: "presentation"
286
- }, [
287
- be(xe, {
288
- id: n.tabId,
289
- "aria-selected": n.ariaSelected,
290
- class: I(n.tabClasses),
291
- disabled: n.disabled,
292
- role: "tab",
293
- tabindex: n.tabindex,
294
- onClick: n.onClick,
295
- onKeydown: n.onKeydown
296
- }, {
297
- default: $(() => [
298
- k(e.$slots, n.labelSlotName, {
299
- current: a.value,
300
- currentIndex: i.value,
301
- disabled: n.disabled,
302
- goTo: d,
303
- isFirst: S.value,
304
- isLast: _.value,
305
- selected: n.active,
306
- text: n.label,
307
- value: n.key
308
- }, () => [
309
- k(e.$slots, "label", {
310
- current: a.value,
311
- currentIndex: i.value,
312
- disabled: n.disabled,
313
- goTo: d,
314
- isFirst: S.value,
315
- isLast: _.value,
316
- selected: n.active,
317
- text: n.label,
318
- value: n.key
319
- }, () => [
320
- v("span", Le, ve(n.label), 1)
321
- ])
322
- ])
323
- ]),
324
- _: 2
325
- }, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick", "onKeydown"])
326
- ]))), 128))
327
- ], 4),
328
- v("span", null, [
329
- k(e.$slots, "header:append", A(H(L.value)))
330
- ])
331
- ]),
332
- v("div", Fe, [
333
- (u(), X(me(t.animateY ? Ce : "div"), null, {
334
- default: $(() => [
335
- (u(!0), g(O, null, U(P.value, (n) => (u(), X(pe, {
336
- key: n.tabId,
337
- css: t.animateX,
338
- name: `tab-slide-${R.value}`
339
- }, {
340
- default: $(() => [
341
- n.active || t.eager || n.eager ? (u(), g("section", {
342
- key: 0,
343
- id: n.panelId,
344
- "aria-labelledby": n.tabId,
345
- class: I(n.paneClasses),
346
- role: "tabpanel",
347
- tabindex: n.tabindex
348
- }, [
349
- k(e.$slots, n.key, {
350
- current: a.value,
351
- currentIndex: i.value,
352
- disabled: n.disabled,
353
- goTo: d,
354
- isFirst: S.value,
355
- isLast: _.value,
356
- selected: n.active,
357
- text: n.label,
358
- value: n.key
359
- })
360
- ], 10, Ee)) : ye("", !0)
361
- ]),
362
- _: 2
363
- }, 1032, ["css", "name"]))), 128))
364
- ]),
365
- _: 3
366
- }))
367
- ])
368
- ], 10, qe));
369
- }
370
- });
371
- export {
372
- je as default
373
- };
package/dist/index138.js DELETED
@@ -1,15 +0,0 @@
1
- import { createElementBlock as t, openBlock as n, renderSlot as e } from "vue";
2
- /* empty css */
3
- import r from "./index213.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]]);
13
- export {
14
- i as default
15
- };
package/dist/index214.js DELETED
@@ -1,4 +0,0 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
- export {
3
- n as clamp
4
- };
package/dist/index243.js DELETED
@@ -1,18 +0,0 @@
1
- import { isNotNil as n } from "./index144.js";
2
- import { ref as t, onServerPrefetch as u, onBeforeMount as c } from "vue";
3
- const h = ({
4
- fn: i,
5
- onStart: s,
6
- multiple: f,
7
- currentValue: o
8
- }) => {
9
- const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
10
- e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
11
- };
12
- return a && (u(r), c(async () => {
13
- l.value || await r();
14
- })), { isPrefilling: e, hasPrefilled: l, prefill: r };
15
- };
16
- export {
17
- h as usePrefill
18
- };
package/dist/index245.js DELETED
@@ -1,53 +0,0 @@
1
- import { computed as l, unref as o } from "vue";
2
- import { useItemText as x } from "./index303.js";
3
- import { useItemValue as w } from "./index239.js";
4
- import { hash as y } from "./index241.js";
5
- import { useLogger as D } from "./index257.js";
6
- const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
7
- items: u,
8
- disabled: c,
9
- selectable: m,
10
- itemText: a,
11
- itemValue: d,
12
- selectedIndexedByHash: r,
13
- max: b = 1 / 0
14
- }) => {
15
- const v = l(() => o(c)), p = l(() => o(u)), h = l(
16
- () => Object.keys(r.value).length
17
- ), g = o(b), f = (e) => {
18
- const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
19
- e,
20
- v.value,
21
- m,
22
- g,
23
- h.value,
24
- s
25
- );
26
- return {
27
- item: e,
28
- text: i,
29
- value: n,
30
- valueHash: t,
31
- selected: s,
32
- disabled: o(I)
33
- };
34
- };
35
- return {
36
- options: l(() => {
37
- const e = [], n = /* @__PURE__ */ new Set();
38
- for (let t = 0; t < p.value.length; t++) {
39
- const i = p.value[t];
40
- i.disabled && H(
41
- "Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
42
- );
43
- const s = f(i);
44
- n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
45
- }
46
- return e;
47
- }),
48
- createOption: f
49
- };
50
- };
51
- export {
52
- q as useBaseOptions
53
- };
package/dist/index265.js DELETED
@@ -1,17 +0,0 @@
1
- import { isNil as f } from "./index227.js";
2
- import { computed as t, unref as o } from "vue";
3
- const a = ({ modelValue: e, iteratee: h, multiple: u }) => {
4
- const i = t(
5
- () => new Array().concat(o(e))
6
- ), s = t(() => i.value.reduce(
7
- (r, n) => (h(n) ? r.coherent.push(n) : r.incoherent.push(n), r),
8
- { coherent: [], incoherent: [] }
9
- )), c = t(() => u && !o(e).length || !u && f(o(e)) ? !0 : !s.value.incoherent.length);
10
- return {
11
- status: s,
12
- coherent: c
13
- };
14
- };
15
- export {
16
- a as useCoherence
17
- };
package/dist/index278.js DELETED
@@ -1,4 +0,0 @@
1
- const e = (t) => t;
2
- export {
3
- e as identity
4
- };