bitboss-ui 2.1.110 → 2.1.112

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 (351) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +6 -0
  2. package/dist/components/BaseButton/RouterComponent.vue.d.ts +6 -2
  3. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +9 -117
  4. package/dist/components/BaseCheckbox/types.d.ts +205 -0
  5. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +54 -2
  6. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +60 -20
  7. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +21 -1
  8. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +21 -17
  9. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +118 -22
  10. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +26 -0
  11. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +13 -0
  12. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +27 -0
  13. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +26 -0
  14. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +100 -0
  15. package/dist/components/BaseRating/BaseRating.vue.d.ts +14 -0
  16. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +86 -0
  17. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +34 -0
  18. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +17 -2
  19. package/dist/components/BaseTag/BaseTag.vue.d.ts +58 -20
  20. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +18 -0
  21. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +18 -0
  22. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +20 -0
  23. package/dist/components/BbAlert/BbAlert.vue.d.ts +16 -0
  24. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +8 -0
  25. package/dist/components/BbBadge/BbBadge.vue.d.ts +12 -0
  26. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +66 -0
  27. package/dist/components/BbButton/BbButton.vue.d.ts +8 -0
  28. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +47 -3
  29. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +115 -3
  30. package/dist/components/BbChip/BbChip.vue.d.ts +6 -0
  31. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +8 -0
  32. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +15 -0
  33. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +20 -5
  34. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +46 -0
  35. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +82 -4
  36. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +86 -0
  37. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +12 -0
  38. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +12 -0
  39. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -0
  40. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +24 -0
  41. package/dist/components/BbPagination/BbPagination.vue.d.ts +30 -0
  42. package/dist/components/BbPopover/BbPopover.vue.d.ts +36 -4
  43. package/dist/components/BbRadio/BbRadio.vue.d.ts +40 -0
  44. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +110 -0
  45. package/dist/components/BbRating/BbRating.vue.d.ts +10 -0
  46. package/dist/components/BbRatio/BbRatio.vue.d.ts +6 -0
  47. package/dist/components/BbRows/BbRows.vue.d.ts +70 -12
  48. package/dist/components/BbSelect/BbSelect.vue.d.ts +79 -0
  49. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +57 -0
  50. package/dist/components/BbSlider/BbSlider.vue.d.ts +10 -0
  51. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -0
  52. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +41 -3
  53. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +111 -3
  54. package/dist/components/BbTab/BbTab.vue.d.ts +48 -0
  55. package/dist/components/BbTable/types.d.ts +63 -0
  56. package/dist/components/BbTag/BbTag.vue.d.ts +23 -0
  57. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +15 -0
  58. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +15 -0
  59. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +18 -4
  60. package/dist/components/BbTree/BbTree.vue.d.ts +13 -0
  61. package/dist/components/CommonInputInnerContainer.vue.d.ts +42 -6
  62. package/dist/components/CommonInputOuterContainer.vue.d.ts +26 -4
  63. package/dist/components/CommonPopover.vue.d.ts +10 -2
  64. package/dist/components/FlatListBox.vue.d.ts +65 -5
  65. package/dist/components/GroupedListBox.vue.d.ts +92 -9
  66. package/dist/components/ListBox.vue.d.ts +85 -17
  67. package/dist/components/OptionsContainer.vue.d.ts +121 -13
  68. package/dist/components/Transitions/ScaleFade.vue.d.ts +6 -2
  69. package/dist/components/Transitions/Slide.vue.d.ts +6 -2
  70. package/dist/composables/useConfirm.d.ts +3 -3
  71. package/dist/composables/useToast.d.ts +3 -3
  72. package/dist/composables/useWizard.d.ts +3 -0
  73. package/dist/index.css +1 -1
  74. package/dist/index.d.ts +3 -3
  75. package/dist/index.js +156 -155
  76. package/dist/index109.js +9 -9
  77. package/dist/index11.js +1 -1
  78. package/dist/index110.js +20 -20
  79. package/dist/index118.js +1 -1
  80. package/dist/index12.js +2 -2
  81. package/dist/index124.js +9 -9
  82. package/dist/index126.js +13 -13
  83. package/dist/index13.js +6 -6
  84. package/dist/index134.js +1 -1
  85. package/dist/index136.js +6 -6
  86. package/dist/index138.js +1 -1
  87. package/dist/index14.js +2 -2
  88. package/dist/index140.js +2 -2
  89. package/dist/index142.js +12 -13
  90. package/dist/index144.js +11 -2
  91. package/dist/index145.js +2 -419
  92. package/dist/index146.js +417 -7
  93. package/dist/index147.js +8 -8
  94. package/dist/index148.js +9 -25
  95. package/dist/index149.js +25 -2
  96. package/dist/index150.js +2 -5
  97. package/dist/index151.js +5 -6
  98. package/dist/index152.js +5 -4
  99. package/dist/index153.js +5 -3
  100. package/dist/index154.js +1 -1
  101. package/dist/index155.js +1 -1
  102. package/dist/index156.js +1 -1
  103. package/dist/index157.js +1 -1
  104. package/dist/index158.js +1 -1
  105. package/dist/index159.js +1 -1
  106. package/dist/index16.js +16 -15
  107. package/dist/index160.js +1 -1
  108. package/dist/index161.js +1 -1
  109. package/dist/index162.js +1 -1
  110. package/dist/index163.js +1 -1
  111. package/dist/index164.js +1 -1
  112. package/dist/index165.js +1 -1
  113. package/dist/index166.js +1 -1
  114. package/dist/index167.js +1 -1
  115. package/dist/index168.js +1 -1
  116. package/dist/index169.js +1 -1
  117. package/dist/index170.js +1 -1
  118. package/dist/index171.js +1 -1
  119. package/dist/index172.js +1 -1
  120. package/dist/index173.js +1 -1
  121. package/dist/index174.js +1 -1
  122. package/dist/index175.js +1 -1
  123. package/dist/index176.js +1 -1
  124. package/dist/index177.js +1 -1
  125. package/dist/index178.js +1 -1
  126. package/dist/index179.js +1 -1
  127. package/dist/index18.js +6 -6
  128. package/dist/index180.js +1 -1
  129. package/dist/index181.js +1 -1
  130. package/dist/index182.js +1 -1
  131. package/dist/index183.js +3 -2
  132. package/dist/index184.js +2 -3
  133. package/dist/index185.js +3 -2
  134. package/dist/index186.js +2 -3
  135. package/dist/index187.js +1 -1
  136. package/dist/index188.js +1 -1
  137. package/dist/index189.js +1 -1
  138. package/dist/index190.js +1 -1
  139. package/dist/index191.js +1 -1
  140. package/dist/index192.js +3 -2
  141. package/dist/index193.js +2 -3
  142. package/dist/index194.js +1 -1
  143. package/dist/index195.js +1 -1
  144. package/dist/index196.js +1 -1
  145. package/dist/index197.js +2 -2
  146. package/dist/index198.js +1 -1
  147. package/dist/index199.js +1 -1
  148. package/dist/index20.js +8 -8
  149. package/dist/index200.js +1 -1
  150. package/dist/index201.js +1 -1
  151. package/dist/index202.js +3 -2
  152. package/dist/index203.js +2 -3
  153. package/dist/index204.js +1 -1
  154. package/dist/index205.js +1 -1
  155. package/dist/index206.js +1 -1
  156. package/dist/index207.js +1 -1
  157. package/dist/index208.js +1 -1
  158. package/dist/index209.js +1 -1
  159. package/dist/index210.js +1 -1
  160. package/dist/index211.js +1 -1
  161. package/dist/index212.js +1 -1
  162. package/dist/index213.js +1 -1
  163. package/dist/index214.js +1 -1
  164. package/dist/index215.js +1 -1
  165. package/dist/index216.js +1 -1
  166. package/dist/index217.js +1 -1
  167. package/dist/index218.js +1 -1
  168. package/dist/index219.js +5 -0
  169. package/dist/index22.js +14 -14
  170. package/dist/index220.js +3 -7
  171. package/dist/index221.js +2 -138
  172. package/dist/index223.js +138 -2
  173. package/dist/index224.js +1 -1
  174. package/dist/index225.js +1 -1
  175. package/dist/index226.js +32 -3
  176. package/dist/index227.js +27 -12
  177. package/dist/index229.js +2 -2
  178. package/dist/index230.js +2 -2
  179. package/dist/index231.js +3 -2
  180. package/dist/index232.js +4 -9
  181. package/dist/index233.js +13 -13
  182. package/dist/index234.js +18 -133
  183. package/dist/index235.js +190 -0
  184. package/dist/index236.js +3 -23
  185. package/dist/index237.js +5 -4
  186. package/dist/index238.js +5 -23
  187. package/dist/index239.js +5 -4
  188. package/dist/index24.js +56 -55
  189. package/dist/index240.js +5 -86
  190. package/dist/index241.js +7 -0
  191. package/dist/index242.js +5 -30
  192. package/dist/index243.js +3 -18
  193. package/dist/index244.js +8 -17
  194. package/dist/index245.js +133 -49
  195. package/dist/index247.js +3 -3
  196. package/dist/index248.js +6 -12
  197. package/dist/index249.js +16 -5
  198. package/dist/index250.js +2 -5
  199. package/dist/index251.js +13 -5
  200. package/dist/index252.js +13 -5
  201. package/dist/index253.js +4 -2
  202. package/dist/index254.js +22 -5
  203. package/dist/index255.js +84 -6
  204. package/dist/index257.js +30 -52
  205. package/dist/index258.js +17 -52
  206. package/dist/index259.js +50 -31
  207. package/dist/index26.js +4 -4
  208. package/dist/index260.js +18 -60
  209. package/dist/index261.js +3 -34
  210. package/dist/index262.js +12 -3
  211. package/dist/index263.js +18 -2
  212. package/dist/index264.js +67 -2
  213. package/dist/index265.js +2 -7
  214. package/dist/index266.js +9 -7
  215. package/dist/index267.js +21 -7
  216. package/dist/index268.js +4 -33
  217. package/dist/index269.js +25 -28
  218. package/dist/index270.js +4 -0
  219. package/dist/index271.js +17 -8
  220. package/dist/index272.js +12 -21
  221. package/dist/index273.js +104 -51
  222. package/dist/index275.js +99 -32
  223. package/dist/index277.js +107 -3
  224. package/dist/index278.js +11 -18
  225. package/dist/index279.js +5 -12
  226. package/dist/index28.js +2 -2
  227. package/dist/index280.js +6 -106
  228. package/dist/{index256.js → index281.js} +10 -10
  229. package/dist/index282.js +47 -95
  230. package/dist/index283.js +54 -0
  231. package/dist/index284.js +24 -99
  232. package/dist/index285.js +60 -11
  233. package/dist/index286.js +6 -187
  234. package/dist/index287.js +9 -3
  235. package/dist/index288.js +23 -3
  236. package/dist/index289.js +6 -13
  237. package/dist/index290.js +10 -373
  238. package/dist/index291.js +5 -0
  239. package/dist/index292.js +33 -5
  240. package/dist/index293.js +33 -5
  241. package/dist/index294.js +373 -5
  242. package/dist/index296.js +3 -5
  243. package/dist/index297.js +52 -9
  244. package/dist/index298.js +5 -3
  245. package/dist/index299.js +9 -67
  246. package/dist/index30.js +23 -22
  247. package/dist/index300.js +2 -3
  248. package/dist/index301.js +7 -6
  249. package/dist/index302.js +7 -16
  250. package/dist/index304.js +9 -0
  251. package/dist/index305.js +1 -1
  252. package/dist/index306.js +7 -3
  253. package/dist/index307.js +5 -4
  254. package/dist/index308.js +719 -2
  255. package/dist/index309.js +366 -280
  256. package/dist/index310.js +57 -2
  257. package/dist/index311.js +3 -16
  258. package/dist/index312.js +280 -2
  259. package/dist/index313.js +2 -16
  260. package/dist/index314.js +125 -2
  261. package/dist/index315.js +2 -27
  262. package/dist/index316.js +15 -2
  263. package/dist/index317.js +2 -2
  264. package/dist/index318.js +16 -2
  265. package/dist/index319.js +2 -2
  266. package/dist/index32.js +2 -2
  267. package/dist/index320.js +16 -2
  268. package/dist/index321.js +2 -28
  269. package/dist/index322.js +19 -2
  270. package/dist/index323.js +2 -17
  271. package/dist/index324.js +2 -3
  272. package/dist/index325.js +27 -3
  273. package/dist/index326.js +17 -3
  274. package/dist/index327.js +1 -1
  275. package/dist/index328.js +4 -2
  276. package/dist/index329.js +27 -5
  277. package/dist/index330.js +2 -6
  278. package/dist/index331.js +2 -3
  279. package/dist/index332.js +2 -125
  280. package/dist/index333.js +2 -2
  281. package/dist/index334.js +2 -15
  282. package/dist/index335.js +2 -2
  283. package/dist/index336.js +3 -19
  284. package/dist/index337.js +3 -2
  285. package/dist/index338.js +2 -5
  286. package/dist/index339.js +4 -2
  287. package/dist/index34.js +8 -8
  288. package/dist/index340.js +2 -7
  289. package/dist/index341.js +6 -5
  290. package/dist/index342.js +5 -719
  291. package/dist/index343.js +3 -366
  292. package/dist/index344.js +33 -55
  293. package/dist/index345.js +125 -31
  294. package/dist/index346.js +382 -113
  295. package/dist/index347.js +65 -396
  296. package/dist/index348.js +67 -7
  297. package/dist/index349.js +226 -17
  298. package/dist/index350.js +6 -8
  299. package/dist/index351.js +17 -13
  300. package/dist/index352.js +9 -67
  301. package/dist/index353.js +14 -66
  302. package/dist/index354.js +5 -200
  303. package/dist/index355.js +7 -259
  304. package/dist/index356.js +198 -226
  305. package/dist/index357.js +255 -18
  306. package/dist/index358.js +136 -0
  307. package/dist/index359.js +21 -133
  308. package/dist/index36.js +5 -5
  309. package/dist/index361.js +1 -1
  310. package/dist/index362.js +2 -93
  311. package/dist/index363.js +87 -435
  312. package/dist/index364.js +427 -114
  313. package/dist/index365.js +127 -46
  314. package/dist/index366.js +44 -67
  315. package/dist/index367.js +66 -516
  316. package/dist/index368.js +515 -45
  317. package/dist/index369.js +52 -0
  318. package/dist/index38.js +55 -54
  319. package/dist/index40.js +8 -8
  320. package/dist/index42.js +2 -2
  321. package/dist/index44.js +8 -8
  322. package/dist/index46.js +35 -34
  323. package/dist/index48.js +15 -14
  324. package/dist/index50.js +38 -37
  325. package/dist/index54.js +1 -1
  326. package/dist/index56.js +2 -2
  327. package/dist/index58.js +2 -2
  328. package/dist/index60.js +3 -3
  329. package/dist/index62.js +6 -6
  330. package/dist/index68.js +1 -1
  331. package/dist/index7.js +2 -2
  332. package/dist/index74.js +4 -4
  333. package/dist/index82.js +8 -8
  334. package/dist/index84.js +1 -1
  335. package/dist/index86.js +2 -2
  336. package/dist/index88.js +3 -3
  337. package/dist/index9.js +1 -1
  338. package/dist/index90.js +1 -1
  339. package/dist/index93.js +4 -4
  340. package/dist/index95.js +3 -3
  341. package/dist/index97.js +6 -6
  342. package/dist/index99.js +2 -2
  343. package/package.json +1 -1
  344. package/dist/index143.js +0 -13
  345. package/dist/index228.js +0 -22
  346. package/dist/index246.js +0 -20
  347. package/dist/index274.js +0 -11
  348. package/dist/index276.js +0 -27
  349. package/dist/index295.js +0 -7
  350. package/dist/index303.js +0 -9
  351. package/dist/index360.js +0 -4
package/dist/index258.js CHANGED
@@ -1,54 +1,19 @@
1
- import { defineComponent as b, computed as c, createElementBlock as l, openBlock as a, createElementVNode as h, Fragment as p, renderList as k, createBlock as f, normalizeClass as y, withCtx as M, createTextVNode as x, toDisplayString as B } from "vue";
2
- import C from "./index14.js";
3
- /* empty css */
4
- const v = {
5
- "aria-label": "Month selector",
6
- class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector",
7
- role: "listbox"
8
- }, g = { class: "content" }, N = /* @__PURE__ */ b({
9
- __name: "BaseDatePickerMonthSelector",
10
- props: {
11
- cursor: {},
12
- disabled: { type: Boolean }
13
- },
14
- emits: ["update:month"],
15
- setup(d, { emit: i }) {
16
- const o = d, m = i, u = c(() => o.cursor.month()), _ = c(() => {
17
- const t = o.cursor.clone().startOf("year"), n = u.value;
18
- return Array.from({ length: 12 }, (e, r) => {
19
- const s = t.add(r, "month");
20
- return {
21
- text: s.format("MMMM"),
22
- key: s.unix(),
23
- selected: r === n,
24
- handler: () => m("update:month", r)
25
- };
26
- });
27
- });
28
- return (t, n) => (a(), l("div", v, [
29
- h("div", g, [
30
- (a(!0), l(p, null, k(_.value, (e) => (a(), f(C, {
31
- key: e.key,
32
- "aria-label": e.text,
33
- "aria-selected": e.selected,
34
- class: y({
35
- content__btn: !0,
36
- "content__btn--selected": e.selected
37
- }),
38
- disabled: t.disabled,
39
- role: "option",
40
- type: "button",
41
- onClick: e.handler
42
- }, {
43
- default: M(() => [
44
- x(B(e.text), 1)
45
- ]),
46
- _: 2
47
- }, 1032, ["aria-label", "aria-selected", "class", "disabled", "onClick"]))), 128))
48
- ])
49
- ]));
50
- }
51
- });
1
+ import { computed as u, unref as a } from "vue";
2
+ import { hash as d } from "./index261.js";
3
+ const p = ({
4
+ items: m,
5
+ key: e
6
+ }) => {
7
+ const n = (t) => e ? String(t[e]) : d(t), o = u(() => {
8
+ const t = {}, s = Array.from(a(m) ?? []);
9
+ for (let r = 0; r < s.length; r++) {
10
+ const c = s[r];
11
+ t[n(c)] = c;
12
+ }
13
+ return t;
14
+ });
15
+ return { data: o, get: (t) => o.value[n(t)] };
16
+ };
52
17
  export {
53
- N as default
18
+ p as useIndexById
54
19
  };
package/dist/index259.js CHANGED
@@ -1,34 +1,53 @@
1
- import { defineComponent as c, createBlock as l, openBlock as m, Transition as u, withCtx as f, renderSlot as d } from "vue";
2
- const y = /* @__PURE__ */ c({
3
- __name: "ScaleFade",
4
- props: {
5
- duration: { default: 200 },
6
- scaleFrom: { default: 0.97 }
7
- },
8
- setup(n) {
9
- const t = n, a = (s) => {
10
- const e = s;
11
- e.style.opacity = "0", e.style.transform = `scale(${t.scaleFrom})`, e.style.transformOrigin = "center top";
12
- }, r = (s, e) => {
13
- const o = s;
14
- o.style.transition = `opacity ${t.duration}ms ease-out, transform ${t.duration}ms cubic-bezier(0.34, 1.56, 0.64, 1)`, o.offsetHeight, o.style.opacity = "1", o.style.transform = "scale(1)", setTimeout(e, t.duration);
15
- }, i = (s, e) => {
16
- const o = s;
17
- o.style.transition = `opacity ${t.duration}ms ease-in, transform ${t.duration}ms ease-in`, o.style.opacity = "0", o.style.transform = `scale(${t.scaleFrom})`, setTimeout(e, t.duration);
1
+ import { computed as l, unref as o } from "vue";
2
+ import { useItemText as x } from "./index326.js";
3
+ import { useItemValue as w } from "./index266.js";
4
+ import { hash as y } from "./index261.js";
5
+ import { useLogger as D } from "./index244.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)
18
33
  };
19
- return (s, e) => (m(), l(u, {
20
- css: !1,
21
- onBeforeEnter: a,
22
- onEnter: r,
23
- onLeave: i
24
- }, {
25
- default: f(() => [
26
- d(s.$slots, "default")
27
- ]),
28
- _: 3
29
- }));
30
- }
31
- });
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
+ };
32
51
  export {
33
- y as default
52
+ q as useBaseOptions
34
53
  };
package/dist/index26.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as I, mergeModels as M, useModel as W, computed as h, ref as g, watch as N, onMounted as P, createElementBlock as n, openBlock as r, withModifiers as F, normalizeStyle as O, normalizeClass as q, unref as y, createCommentVNode as f, Fragment as A, createElementVNode as a, renderSlot as s, createTextVNode as K, toDisplayString as T, nextTick as R } from "vue";
2
- import { parseSize as U } from "./index289.js";
2
+ import { parseSize as U } from "./index251.js";
3
3
  import { useId as D } from "./index8.js";
4
- import { useLocale as j } from "./index227.js";
4
+ import { useLocale as j } from "./index233.js";
5
5
  import { useMobile as G } from "./index9.js";
6
- import { useUntil as J } from "./index233.js";
7
- import { wait as w } from "./index144.js";
6
+ import { useUntil as J } from "./index252.js";
7
+ import { wait as w } from "./index145.js";
8
8
  import { _config as Q } from "./index4.js";
9
9
  const X = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], Y = {
10
10
  key: 0,
package/dist/index260.js CHANGED
@@ -1,62 +1,20 @@
1
- import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
2
- import { range as H } from "./index340.js";
3
- import M from "./index14.js";
4
- /* empty css */
5
- const n = 10, l = 3, V = /* @__PURE__ */ g({
6
- __name: "BaseDatePickerYearSelector",
7
- props: {
8
- cursor: {},
9
- disabled: { type: Boolean }
10
- },
11
- emits: ["update:year"],
12
- setup(p, { emit: _ }) {
13
- const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
14
- () => H(c.value, s.value).map((e) => ({
15
- text: e,
16
- key: e,
17
- selected: e === r.value,
18
- handler: () => b("update:year", e)
19
- }))
20
- ), k = (e) => {
21
- const t = e.target;
22
- t.scrollTop <= 100 ? c.value = Math.max(
23
- c.value - n * l,
24
- r.value - 200
25
- ) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
26
- };
27
- return h(() => {
28
- if (!o.value) return;
29
- const e = o.value.querySelector(
30
- ".content__btn--selected"
31
- );
32
- e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
33
- }), (e, t) => (u(), m("div", {
34
- ref_key: "container",
35
- ref: o,
36
- class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
37
- }, [
38
- y("div", {
39
- class: "content",
40
- onScrollPassive: k
41
- }, [
42
- (u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
43
- key: a.key,
44
- class: S({
45
- content__btn: !0,
46
- "content__btn--selected": a.selected
47
- }),
48
- disabled: e.disabled,
49
- onClick: a.handler
50
- }, {
51
- default: T(() => [
52
- E(w(a.text), 1)
53
- ]),
54
- _: 2
55
- }, 1032, ["class", "disabled", "onClick"]))), 128))
56
- ], 32)
57
- ], 512));
58
- }
59
- });
1
+ import { isNil as a } from "./index250.js";
2
+ import { computed as n, unref as h } from "vue";
3
+ const v = ({ modelValue: r, iteratee: c, multiple: t }) => {
4
+ const s = n(
5
+ () => new Array().concat(h(r))
6
+ ), e = n(() => s.value.reduce(
7
+ (o, u) => (c(u) ? o.coherent.push(u) : o.incoherent.push(u), o),
8
+ { coherent: [], incoherent: [] }
9
+ )), i = n(() => t && !h(r).length || !t && a(h(r)) ? !0 : !e.value.incoherent.length), l = n(
10
+ () => t ? e.value.coherent : e.value.coherent[0] ?? null
11
+ );
12
+ return {
13
+ status: e,
14
+ coherent: i,
15
+ coherentValue: l
16
+ };
17
+ };
60
18
  export {
61
- V as default
19
+ v as useCoherence
62
20
  };
package/dist/index261.js CHANGED
@@ -1,36 +1,5 @@
1
- import { defineComponent as a, resolveComponent as o, createBlock as u, openBlock as l, resolveDynamicComponent as m, unref as c, withCtx as p, renderSlot as f } from "vue";
2
- import { _config as e } from "./index4.js";
3
- import { useLogger as i } from "./index255.js";
4
- import { useFrameworkDetection as k } from "./index146.js";
5
- const y = /* @__PURE__ */ a({
6
- __name: "RouterComponent",
7
- setup(g) {
8
- const { isInertia: r, isNuxt: s } = k();
9
- let t;
10
- if (r) {
11
- if (t = o(e.inertiaLinkName), typeof t == "string") {
12
- const { warn: n } = i();
13
- n(
14
- `Inertia link component "${e.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
15
- );
16
- }
17
- } else if (s) {
18
- if (t = o(e.nuxtLinkName), typeof t == "string") {
19
- const { warn: n } = i();
20
- n(
21
- `Nuxt link component "${e.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.nuxtLinkName}" or set bitboss-ui config key "nuxtLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
22
- );
23
- }
24
- } else
25
- t = "router-link";
26
- return (n, d) => (l(), u(m(c(t)), null, {
27
- default: p(() => [
28
- f(n.$slots, "default")
29
- ]),
30
- _: 3
31
- }));
32
- }
33
- });
1
+ import { hash as o } from "./index325.js";
2
+ const t = (r, h = "bb") => `${h}${o(r)}`;
34
3
  export {
35
- y as default
4
+ t as hash
36
5
  };
package/dist/index262.js CHANGED
@@ -1,5 +1,14 @@
1
- import { hash as r } from "./index247.js";
2
- const a = (o, t) => r(o) === r(t);
1
+ import { hash as e } from "./index261.js";
2
+ import { debouncedWatch as s } from "./index223.js";
3
+ const n = (o, c, h) => {
4
+ s(
5
+ o,
6
+ (r, t) => {
7
+ e(r) !== e(t) && c(r, t);
8
+ },
9
+ h
10
+ );
11
+ };
3
12
  export {
4
- a as isEqual
13
+ n as useHashedWatcher
5
14
  };
package/dist/index263.js CHANGED
@@ -1,4 +1,20 @@
1
- const o = (e) => e[0];
1
+ import { isNotNil as v } from "./index150.js";
2
+ import { computed as t, toValue as h, ref as u, onServerPrefetch as m, onBeforeMount as p } from "vue";
3
+ const g = ({
4
+ fn: i,
5
+ trigger: n = !1,
6
+ multiple: s,
7
+ currentValue: r
8
+ }) => {
9
+ const f = t(() => s ? !!r?.length : v(r)), o = t(
10
+ () => !!h(n) || f.value
11
+ ), l = u(!1), e = u(!1), c = t(() => o.value || e.value), a = async () => {
12
+ l.value || e.value || (l.value = !0, await i(!0), l.value = !1, e.value = !0);
13
+ };
14
+ return o.value && (m(a), p(async () => {
15
+ e.value || await a();
16
+ })), { isPrefilling: l, hasPrefilled: e, canLoad: c, prefill: a };
17
+ };
2
18
  export {
3
- o as head
19
+ g as usePrefill
4
20
  };
package/dist/index264.js CHANGED
@@ -1,4 +1,69 @@
1
- const r = (e) => typeof e > "u" || e === null;
1
+ import { defineComponent as d, createElementBlock as l, openBlock as o, normalizeClass as u, createElementVNode as t, createBlock as i, createCommentVNode as s, unref as f, withCtx as g, toDisplayString as n } from "vue";
2
+ import { useLocale as k } from "./index233.js";
3
+ import h from "./index14.js";
4
+ /* empty css */
5
+ import C from "./index88.js";
6
+ /* empty css */
7
+ const w = { class: "bb-toast-message__icon-container" }, v = { class: "bb-toast-message__content" }, y = {
8
+ key: 1,
9
+ class: "bb-toast-message__title"
10
+ }, B = { class: "bb-toast-message__text" }, z = /* @__PURE__ */ d({
11
+ __name: "BbToastMessage",
12
+ props: {
13
+ title: {},
14
+ text: {},
15
+ icon: {},
16
+ theme: { default: "default" },
17
+ id: {},
18
+ showClose: { type: Boolean }
19
+ },
20
+ emits: ["click:close"],
21
+ setup(r, { emit: c }) {
22
+ const m = r, p = c, { t: _ } = k(), b = () => {
23
+ p("click:close", m.id);
24
+ };
25
+ return (e, a) => (o(), l("div", {
26
+ "aria-atomic": "true",
27
+ "aria-live": "polite",
28
+ "aria-role": "alert",
29
+ class: u(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
30
+ }, [
31
+ t("div", w, [
32
+ e.icon ? (o(), i(C, {
33
+ key: 0,
34
+ class: "bb-toast-message__icon",
35
+ type: e.icon
36
+ }, null, 8, ["type"])) : s("", !0)
37
+ ]),
38
+ t("div", v, [
39
+ e.showClose ? (o(), i(h, {
40
+ key: 0,
41
+ "aria-label": f(_)("common.closeLabel").value,
42
+ class: "bb-toast-message__close",
43
+ onClick: b
44
+ }, {
45
+ default: g(() => a[0] || (a[0] = [
46
+ t("svg", {
47
+ fill: "none",
48
+ viewBox: "0 0 24 24",
49
+ xmlns: "http://www.w3.org/2000/svg"
50
+ }, [
51
+ t("path", {
52
+ d: "M23 23L1 1M23 1L1 23",
53
+ stroke: "currentColor",
54
+ "stroke-linecap": "round",
55
+ "stroke-width": "2"
56
+ })
57
+ ], -1)
58
+ ])),
59
+ _: 1
60
+ }, 8, ["aria-label"])) : s("", !0),
61
+ e.title ? (o(), l("p", y, n(e.title), 1)) : s("", !0),
62
+ t("p", B, n(e.text), 1)
63
+ ])
64
+ ], 2));
65
+ }
66
+ });
2
67
  export {
3
- r as isNil
68
+ z as default
4
69
  };
package/dist/index265.js CHANGED
@@ -1,9 +1,4 @@
1
- const s = (e, t, o, r) => {
2
- if (r <= 0) throw new Error("Step must be a positive number");
3
- if (t > o) throw new Error("Min must be less than or equal to Max");
4
- const n = Math.max(t, Math.min(o, e)), a = Math.round((n - t) / r);
5
- return t + a * r;
6
- };
1
+ const e = (t) => t;
7
2
  export {
8
- s as snapToStep
3
+ e as identity
9
4
  };
package/dist/index266.js CHANGED
@@ -1,9 +1,11 @@
1
- function o(t, e, n, r, a) {
2
- if (n === e)
3
- throw new Error("Original boundaries cannot be equal.");
4
- const c = (t - e) / (n - e);
5
- return r + c * (a - r);
6
- }
1
+ import { get as o } from "./index278.js";
2
+ const e = () => ({
3
+ getItemValue(n, f) {
4
+ if (typeof f > "u") return n;
5
+ if (typeof f == "function") return f(n);
6
+ if (typeof f == "string") return o(n, f);
7
+ }
8
+ });
7
9
  export {
8
- o as transpose
10
+ e as useItemValue
9
11
  };
package/dist/index267.js CHANGED
@@ -1,9 +1,23 @@
1
- const s = (r, t) => {
2
- if (r.endsWith("."))
3
- return t === 0 ? r.slice(0, -1) : r;
4
- const [n, i] = r.split(".");
5
- return i ? `${n}.${i.slice(0, t)}` : r;
6
- };
1
+ function i(e, o) {
2
+ const l = {}, u = e.length;
3
+ for (let n = 0; n < u; n++) {
4
+ const s = e[n];
5
+ let f;
6
+ if (typeof o == "function")
7
+ f = o(s, n, e);
8
+ else {
9
+ const t = s[o];
10
+ if (typeof t == "string" || typeof t == "number" || typeof t == "symbol")
11
+ f = t;
12
+ else
13
+ throw new Error(
14
+ `Property "${String(o)}" must be of type string, number, or symbol`
15
+ );
16
+ }
17
+ l[f] = s;
18
+ }
19
+ return l;
20
+ }
7
21
  export {
8
- s as clampPrecision
22
+ i as indexBy
9
23
  };
package/dist/index268.js CHANGED
@@ -1,35 +1,6 @@
1
- import { createElementBlock as e, openBlock as t, createElementVNode as o } from "vue";
2
- /* empty css */
3
- import n from "./index220.js";
4
- const l = {}, s = {
5
- class: "bb-error-icon",
6
- fill: "none",
7
- viewBox: "0 0 20 20",
8
- xmlns: "http://www.w3.org/2000/svg"
9
- };
10
- function i(c, r) {
11
- return t(), e("svg", s, r[0] || (r[0] = [
12
- o("path", {
13
- d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
14
- fill: "currentColor"
15
- }, null, -1),
16
- o("path", {
17
- d: "M9.99414 6.66666V9.99999",
18
- stroke: "white",
19
- "stroke-linecap": "round",
20
- "stroke-linejoin": "round",
21
- "stroke-width": "2"
22
- }, null, -1),
23
- o("path", {
24
- d: "M9.99414 13.3333H10.0025",
25
- stroke: "white",
26
- "stroke-linecap": "round",
27
- "stroke-linejoin": "round",
28
- "stroke-width": "2"
29
- }, null, -1)
30
- ]));
31
- }
32
- const a = /* @__PURE__ */ n(l, [["render", i]]);
1
+ import { curry as e } from "./index328.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
33
3
  export {
34
- a as default
4
+ t as baseWhen,
5
+ s as when
35
6
  };
package/dist/index269.js CHANGED
@@ -1,30 +1,27 @@
1
- import { defineComponent as l, createElementBlock as n, openBlock as r, unref as a, createElementVNode as t } from "vue";
2
- import { useLocale as s } from "./index227.js";
3
- const c = ["aria-label"], b = /* @__PURE__ */ l({
4
- __name: "ClearableButton",
5
- setup(u) {
6
- const { t: o } = s();
7
- return (i, e) => (r(), n("button", {
8
- "aria-label": a(o)("common.clearLabel").value,
9
- class: "bb-clearable-button",
10
- type: "button"
11
- }, e[0] || (e[0] = [
12
- t("svg", {
13
- viewBox: "0 0 24 24",
14
- xmlns: "http://www.w3.org/2000/svg"
15
- }, [
16
- t("path", {
17
- d: "M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7",
18
- fill: "none",
19
- stroke: "currentColor",
20
- "stroke-linecap": "round",
21
- "stroke-linejoin": "round",
22
- "stroke-width": "2"
23
- })
24
- ], -1)
25
- ]), 8, c));
26
- }
27
- });
1
+ const a = new RegExp("\\p{Lu}", "u"), f = new RegExp("\\p{Ll}", "u"), R = new RegExp("\\p{N}", "u"), c = /\s/u, d = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u, A = new RegExp("\\p{Extended_Pictographic}", "u"), W = /* @__PURE__ */ new Set([
2
+ ".",
3
+ ",",
4
+ ":",
5
+ ";",
6
+ "!",
7
+ "|",
8
+ "'",
9
+ "`",
10
+ '"',
11
+ "(",
12
+ ")",
13
+ "[",
14
+ "]",
15
+ "{",
16
+ "}"
17
+ ]), _ = /* @__PURE__ */ new Set(["-", "_", "/", "\\", "+", "="]), m = /* @__PURE__ */ new Set(["i", "l", "I", "j", "t", "f", "r"]), p = /* @__PURE__ */ new Set(["W", "M", "w", "m", "@", "%", "&", "#"]), I = (t) => c.test(t) ? 0.42 : A.test(t) ? 1.95 : d.test(t) ? 1.8 : W.has(t) ? 0.48 : _.has(t) ? 0.66 : m.has(t) ? 0.72 : p.has(t) ? 1.28 : R.test(t) ? 0.92 : a.test(t) ? 1.08 : f.test(t) ? 0.9 : 1, C = (t, n) => {
18
+ const e = t, i = n.fontWidth * 2, s = n.fontWidth * 0.6, r = n.estimationBias ?? 1, E = Array.from(e).reduce((u, o) => u + I(o) * n.fontWidth, 0);
19
+ return Math.max(
20
+ i,
21
+ (E + s) * r
22
+ );
23
+ }, T = (t) => Math.max(10, t * 1.2);
28
24
  export {
29
- b as default
25
+ C as estimateBreadcrumbItemWidth,
26
+ T as estimateEllipsisWidth
30
27
  };
@@ -0,0 +1,4 @@
1
+ const e = (t) => t[t.length - 1];
2
+ export {
3
+ e as last
4
+ };
package/dist/index271.js CHANGED
@@ -1,11 +1,20 @@
1
- import { get as o } from "./index285.js";
2
- const e = () => ({
3
- getItemValue(n, f) {
4
- if (typeof f > "u") return n;
5
- if (typeof f == "function") return f(n);
6
- if (typeof f == "string") return o(n, f);
1
+ import { isNil as c } from "./index250.js";
2
+ const a = (t, r) => {
3
+ if (!Object.prototype.hasOwnProperty.call(t, r))
4
+ throw new Error(
5
+ `Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
6
+ );
7
+ }, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
8
+ const i = s.toLocaleLowerCase();
9
+ for (let e = 0; e < r.length; e++) {
10
+ const n = r[e];
11
+ a(t, n);
12
+ const o = t[n];
13
+ if (c(o)) continue;
14
+ if (l(o).includes(i)) return !0;
7
15
  }
8
- });
16
+ return !1;
17
+ };
9
18
  export {
10
- e as useItemValue
19
+ y as matchAnyKey
11
20
  };
package/dist/index272.js CHANGED
@@ -1,23 +1,14 @@
1
- function i(e, o) {
2
- const l = {}, u = e.length;
3
- for (let n = 0; n < u; n++) {
4
- const s = e[n];
5
- let f;
6
- if (typeof o == "function")
7
- f = o(s, n, e);
8
- else {
9
- const t = s[o];
10
- if (typeof t == "string" || typeof t == "number" || typeof t == "symbol")
11
- f = t;
12
- else
13
- throw new Error(
14
- `Property "${String(o)}" must be of type string, number, or symbol`
15
- );
16
- }
17
- l[f] = s;
18
- }
19
- return l;
20
- }
1
+ import { ref as t } from "vue";
2
+ const n = () => {
3
+ const e = t([]);
4
+ return { array: e, set: (...r) => {
5
+ e.value = r;
6
+ }, add: (...r) => {
7
+ e.value.push(...r);
8
+ }, remove: (r) => {
9
+ e.value = e.value.filter(r);
10
+ } };
11
+ };
21
12
  export {
22
- i as indexBy
13
+ n as useArray
23
14
  };