bitboss-ui 2.0.165 → 2.0.167

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 (373) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +2 -1
  2. package/dist/components/BaseButton/RouterComponent.vue.d.ts +2 -1
  3. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +5 -2
  4. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -4
  5. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +106 -4
  6. package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +5 -1
  7. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -3
  8. package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +1 -1
  9. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +5 -2
  10. package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +1 -1
  11. package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +3 -1
  12. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +200 -10
  13. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +10 -2
  14. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +3 -2
  15. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -2
  16. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +3 -2
  17. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +2 -4
  18. package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -2
  19. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +2 -4
  20. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +8 -2
  21. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +5 -2
  22. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +2 -4
  23. package/dist/components/BaseTag/BaseTag.vue.d.ts +207 -6
  24. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -2
  25. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -2
  26. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -2
  27. package/dist/components/BbAlert/BbAlert.vue.d.ts +2 -1
  28. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -2
  29. package/dist/components/BbBadge/BbBadge.vue.d.ts +3 -2
  30. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +3 -2
  31. package/dist/components/BbButton/BbButton.vue.d.ts +2 -1
  32. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +3 -2
  33. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -4
  34. package/dist/components/BbChip/BbChip.vue.d.ts +3 -2
  35. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
  36. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
  37. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
  38. package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -1
  39. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +241 -100
  40. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +69 -126
  41. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -2
  42. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +5 -2
  43. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +100 -9
  44. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +10 -2
  45. package/dist/components/BbPagination/BbPagination.vue.d.ts +10 -6
  46. package/dist/components/BbPopover/BbPopover.vue.d.ts +168 -15
  47. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  48. package/dist/components/BbRadio/BbRadio.vue.d.ts +3 -2
  49. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +2 -4
  50. package/dist/components/BbRating/BbRating.vue.d.ts +3 -2
  51. package/dist/components/BbRatio/BbRatio.vue.d.ts +2 -1
  52. package/dist/components/BbRows/BbRows.vue.d.ts +3 -5
  53. package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -4
  54. package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -2
  55. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +6 -2
  56. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  57. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +3 -2
  58. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +2 -4
  59. package/dist/components/BbTab/BbTab.vue.d.ts +6 -2
  60. package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
  61. package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
  62. package/dist/components/BbTeleport.vue.d.ts +2 -1
  63. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
  64. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
  65. package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
  66. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +175 -7
  67. package/dist/components/BbTree/BbTree.vue.d.ts +2 -1
  68. package/dist/components/ClearableButton.vue.d.ts +1 -1
  69. package/dist/components/CommonFloating.vue.d.ts +6 -2
  70. package/dist/components/CommonInputInnerContainer.vue.d.ts +5 -2
  71. package/dist/components/CommonInputOuterContainer.vue.d.ts +5 -4
  72. package/dist/components/CommonPopover.vue.d.ts +42 -0
  73. package/dist/components/ErrorIcon.vue.d.ts +1 -1
  74. package/dist/components/ListBox.vue.d.ts +4 -6
  75. package/dist/components/OptionsContainer.vue.d.ts +4 -6
  76. package/dist/components/Transitions/Slide.vue.d.ts +2 -1
  77. package/dist/composables/useUntil.d.ts +7 -0
  78. package/dist/{style.css → index.css} +1 -1
  79. package/dist/index.js +148 -143
  80. package/dist/index100.js +122 -135
  81. package/dist/index102.js +100 -0
  82. package/dist/index104.js +24 -0
  83. package/dist/index106.js +144 -0
  84. package/dist/index107.js +106 -59
  85. package/dist/index109.js +101 -289
  86. package/dist/index11.js +2 -2
  87. package/dist/index111.js +37 -476
  88. package/dist/index113.js +31 -118
  89. package/dist/index115.js +43 -61
  90. package/dist/index117.js +86 -78
  91. package/dist/index119.js +296 -26
  92. package/dist/index12.js +6 -6
  93. package/dist/index121.js +470 -138
  94. package/dist/index123.js +117 -115
  95. package/dist/index125.js +110 -35
  96. package/dist/index127.js +115 -45
  97. package/dist/index129.js +28 -31
  98. package/dist/index13.js +5 -5
  99. package/dist/index131.js +117 -21
  100. package/dist/index133.js +120 -9
  101. package/dist/index135.js +2 -2
  102. package/dist/index136.js +21 -5
  103. package/dist/index137.js +375 -7
  104. package/dist/index138.js +9 -6
  105. package/dist/index139.js +25 -3
  106. package/dist/index140.js +2 -3
  107. package/dist/index141.js +5 -3
  108. package/dist/index142.js +9 -3
  109. package/dist/index143.js +6 -3
  110. package/dist/index144.js +1 -1
  111. package/dist/index145.js +1 -1
  112. package/dist/index146.js +1 -1
  113. package/dist/index147.js +1 -1
  114. package/dist/index148.js +1 -1
  115. package/dist/index149.js +1 -1
  116. package/dist/index15.js +15 -15
  117. package/dist/index150.js +1 -1
  118. package/dist/index151.js +1 -1
  119. package/dist/index152.js +1 -1
  120. package/dist/index153.js +1 -1
  121. package/dist/index154.js +1 -1
  122. package/dist/index155.js +1 -1
  123. package/dist/index156.js +1 -1
  124. package/dist/index157.js +1 -1
  125. package/dist/index158.js +1 -1
  126. package/dist/index159.js +1 -1
  127. package/dist/index160.js +1 -1
  128. package/dist/index161.js +1 -1
  129. package/dist/index162.js +1 -1
  130. package/dist/index163.js +1 -1
  131. package/dist/index164.js +1 -1
  132. package/dist/index165.js +1 -1
  133. package/dist/index166.js +2 -2
  134. package/dist/index167.js +5 -0
  135. package/dist/index168.js +2 -2
  136. package/dist/index169.js +5 -0
  137. package/dist/index17.js +6 -6
  138. package/dist/index170.js +1 -1
  139. package/dist/index171.js +1 -1
  140. package/dist/index172.js +1 -1
  141. package/dist/index173.js +1 -1
  142. package/dist/index174.js +1 -1
  143. package/dist/index175.js +1 -1
  144. package/dist/index176.js +1 -1
  145. package/dist/index177.js +2 -2
  146. package/dist/index178.js +5 -0
  147. package/dist/index179.js +3 -2
  148. package/dist/index180.js +1 -1
  149. package/dist/index181.js +2 -3
  150. package/dist/index182.js +1 -1
  151. package/dist/index183.js +1 -1
  152. package/dist/index184.js +1 -1
  153. package/dist/index185.js +1 -1
  154. package/dist/index186.js +1 -1
  155. package/dist/index187.js +1 -1
  156. package/dist/index188.js +2 -2
  157. package/dist/index189.js +3 -2
  158. package/dist/index19.js +10 -10
  159. package/dist/index190.js +1 -1
  160. package/dist/index191.js +2 -3
  161. package/dist/index192.js +1 -1
  162. package/dist/index193.js +5 -0
  163. package/dist/index194.js +1 -1
  164. package/dist/index195.js +5 -0
  165. package/dist/index196.js +1 -1
  166. package/dist/index197.js +1 -1
  167. package/dist/index198.js +1 -1
  168. package/dist/index199.js +1 -1
  169. package/dist/index200.js +1 -1
  170. package/dist/index201.js +1 -1
  171. package/dist/index202.js +1 -1
  172. package/dist/index203.js +1 -1
  173. package/dist/index204.js +1 -1
  174. package/dist/index205.js +1 -1
  175. package/dist/index206.js +100 -77
  176. package/dist/index208.js +2 -4
  177. package/dist/index209.js +3 -40
  178. package/dist/index21.js +17 -17
  179. package/dist/index210.js +41 -20
  180. package/dist/index211.js +19 -93
  181. package/dist/index212.js +96 -0
  182. package/dist/{index213.js → index214.js} +9 -9
  183. package/dist/{index215.js → index216.js} +15 -15
  184. package/dist/index218.js +13 -13
  185. package/dist/index219.js +13 -5
  186. package/dist/index220.js +5 -16
  187. package/dist/index221.js +5 -16
  188. package/dist/index222.js +5 -19
  189. package/dist/index223.js +5 -15
  190. package/dist/index224.js +5 -19
  191. package/dist/index225.js +5 -27
  192. package/dist/index226.js +5 -3
  193. package/dist/index227.js +3 -2
  194. package/dist/index228.js +2 -8
  195. package/dist/index229.js +6 -248
  196. package/dist/index23.js +25 -25
  197. package/dist/index230.js +240 -42
  198. package/dist/index231.js +43 -35
  199. package/dist/index232.js +44 -5
  200. package/dist/index233.js +5 -60
  201. package/dist/index234.js +60 -3
  202. package/dist/index235.js +5 -85
  203. package/dist/index236.js +9 -0
  204. package/dist/index237.js +15 -29
  205. package/dist/index238.js +34 -17
  206. package/dist/index239.js +86 -51
  207. package/dist/index241.js +28 -11
  208. package/dist/index242.js +15 -14
  209. package/dist/index243.js +50 -124
  210. package/dist/index244.js +15 -2
  211. package/dist/index245.js +12 -6
  212. package/dist/index246.js +16 -2
  213. package/dist/index247.js +5 -9
  214. package/dist/index248.js +2 -2
  215. package/dist/index249.js +2 -4
  216. package/dist/index25.js +8 -8
  217. package/dist/index250.js +9 -2
  218. package/dist/index251.js +18 -7
  219. package/dist/index252.js +127 -14
  220. package/dist/index253.js +4 -34
  221. package/dist/index254.js +106 -2
  222. package/dist/index256.js +100 -2
  223. package/dist/index258.js +12 -126
  224. package/dist/index259.js +211 -89
  225. package/dist/index260.js +370 -0
  226. package/dist/index261.js +2 -100
  227. package/dist/index262.js +4 -0
  228. package/dist/index263.js +2 -12
  229. package/dist/index264.js +3 -228
  230. package/dist/index265.js +162 -354
  231. package/dist/index266.js +2 -176
  232. package/dist/index27.js +18 -18
  233. package/dist/index270.js +11 -23
  234. package/dist/index271.js +101 -3
  235. package/dist/index273.js +23 -16
  236. package/dist/index274.js +6 -281
  237. package/dist/index275.js +16 -6
  238. package/dist/index276.js +3 -2
  239. package/dist/index277.js +9 -2
  240. package/dist/index278.js +8 -2
  241. package/dist/index279.js +2 -2
  242. package/dist/index280.js +67 -2
  243. package/dist/index281.js +5 -2
  244. package/dist/index282.js +5 -2
  245. package/dist/index283.js +8 -2
  246. package/dist/index284.js +471 -2
  247. package/dist/index285.js +3 -2
  248. package/dist/index286.js +3 -2
  249. package/dist/index287.js +3 -28
  250. package/dist/index289.js +9 -0
  251. package/dist/index29.js +5 -5
  252. package/dist/index290.js +6 -6
  253. package/dist/index291.js +11 -7
  254. package/dist/index292.js +279 -10
  255. package/dist/index293.js +2 -431
  256. package/dist/index294.js +16 -3
  257. package/dist/index295.js +2 -3
  258. package/dist/index296.js +16 -3
  259. package/dist/index297.js +4 -0
  260. package/dist/index298.js +18 -223
  261. package/dist/index299.js +2 -3
  262. package/dist/index300.js +15 -17
  263. package/dist/index301.js +2 -9
  264. package/dist/index302.js +18 -199
  265. package/dist/index303.js +2 -2
  266. package/dist/index304.js +27 -4
  267. package/dist/index305.js +2 -2
  268. package/dist/index306.js +1 -1
  269. package/dist/index307.js +2 -8
  270. package/dist/index308.js +2 -126
  271. package/dist/index309.js +2 -3
  272. package/dist/index31.js +4 -4
  273. package/dist/index310.js +28 -3
  274. package/dist/index311.js +21 -1
  275. package/dist/index313.js +199 -126
  276. package/dist/index314.js +4 -2
  277. package/dist/index315.js +2 -67
  278. package/dist/index316.js +6 -5
  279. package/dist/index317.js +2 -89
  280. package/dist/index318.js +3 -3
  281. package/dist/index319.js +17 -3
  282. package/dist/index320.js +123 -56
  283. package/dist/index321.js +2 -33
  284. package/dist/index322.js +128 -27
  285. package/dist/index323.js +5 -0
  286. package/dist/index324.js +3 -480
  287. package/dist/index325.js +2 -7
  288. package/dist/index326.js +4 -7
  289. package/dist/index327.js +379 -16
  290. package/dist/index328.js +125 -7
  291. package/dist/index329.js +5 -6
  292. package/dist/index33.js +10 -10
  293. package/dist/index330.js +3 -8
  294. package/dist/index331.js +5 -58
  295. package/dist/index332.js +700 -57
  296. package/dist/index333.js +354 -5
  297. package/dist/index334.js +57 -7
  298. package/dist/index335.js +7 -3
  299. package/dist/index336.js +5 -46
  300. package/dist/index337.js +8 -2
  301. package/dist/index338.js +9 -0
  302. package/dist/index339.js +32 -2
  303. package/dist/index340.js +28 -2
  304. package/dist/index342.js +57 -46
  305. package/dist/index343.js +60 -0
  306. package/dist/index344.js +7 -0
  307. package/dist/index345.js +230 -0
  308. package/dist/index346.js +4 -0
  309. package/dist/index347.js +49 -0
  310. package/dist/index348.js +9 -0
  311. package/dist/index349.js +21 -0
  312. package/dist/index35.js +9 -9
  313. package/dist/index350.js +95 -0
  314. package/dist/index352.js +5 -0
  315. package/dist/index353.js +484 -0
  316. package/dist/index354.js +49 -0
  317. package/dist/index355.js +483 -0
  318. package/dist/index356.js +4 -0
  319. package/dist/index37.js +33 -33
  320. package/dist/index39.js +15 -15
  321. package/dist/index41.js +5 -5
  322. package/dist/index43.js +10 -10
  323. package/dist/index45.js +25 -25
  324. package/dist/index47.js +6 -6
  325. package/dist/index49.js +15 -15
  326. package/dist/index51.js +4 -4
  327. package/dist/index53.js +6 -6
  328. package/dist/index55.js +6 -6
  329. package/dist/index57.js +16 -16
  330. package/dist/index59.js +3 -3
  331. package/dist/index6.js +1 -1
  332. package/dist/index61.js +9 -9
  333. package/dist/index63.js +5 -5
  334. package/dist/index65.js +2 -2
  335. package/dist/index67.js +35 -107
  336. package/dist/index69.js +42 -85
  337. package/dist/index7.js +2 -2
  338. package/dist/index71.js +47 -56
  339. package/dist/index73.js +83 -54
  340. package/dist/index75.js +113 -273
  341. package/dist/index77.js +50 -158
  342. package/dist/index79.js +228 -194
  343. package/dist/index81.js +148 -40
  344. package/dist/index83.js +221 -0
  345. package/dist/index85.js +53 -0
  346. package/dist/index87.js +46 -0
  347. package/dist/index88.js +125 -184
  348. package/dist/index9.js +1 -1
  349. package/dist/index90.js +240 -26
  350. package/dist/index92.js +230 -86
  351. package/dist/index94.js +135 -117
  352. package/dist/index96.js +27 -94
  353. package/dist/index98.js +85 -15
  354. package/package.json +27 -28
  355. package/dist/index101.js +0 -178
  356. package/dist/index103.js +0 -116
  357. package/dist/index105.js +0 -100
  358. package/dist/index126.js +0 -46
  359. package/dist/index128.js +0 -49
  360. package/dist/index130.js +0 -4
  361. package/dist/index132.js +0 -346
  362. package/dist/index134.js +0 -27
  363. package/dist/index217.js +0 -15
  364. package/dist/index240.js +0 -17
  365. package/dist/index255.js +0 -4
  366. package/dist/index257.js +0 -20
  367. package/dist/index272.js +0 -8
  368. package/dist/index288.js +0 -24
  369. package/dist/index312.js +0 -438
  370. package/dist/index341.js +0 -426
  371. package/dist/index82.js +0 -136
  372. package/dist/index84.js +0 -247
  373. package/dist/index86.js +0 -238
package/dist/index250.js CHANGED
@@ -1,4 +1,11 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ function u(e, i) {
2
+ let t;
3
+ return function(...o) {
4
+ t !== void 0 && clearTimeout(t), t = setTimeout(() => {
5
+ e.apply(this, o);
6
+ }, i);
7
+ };
8
+ }
2
9
  export {
3
- o as booleanishToBoolean
10
+ u as debounce
4
11
  };
package/dist/index251.js CHANGED
@@ -1,9 +1,20 @@
1
- import { ref as e } from "vue";
2
- const o = e(0), s = () => {
3
- o.value++;
4
- }, a = () => {
5
- o.value--;
6
- }, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
1
+ import { isNil as c } from "./index263.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;
15
+ }
16
+ return !1;
17
+ };
7
18
  export {
8
- d as useModalsState
19
+ y as matchAnyKey
9
20
  };
package/dist/index252.js CHANGED
@@ -1,17 +1,130 @@
1
- import { defineComponent as a, getCurrentInstance as c, openBlock as l, createBlock as u, Teleport as f, unref as d, renderSlot as m } from "vue";
2
- const i = /* @__PURE__ */ a({
3
- __name: "BbTeleport",
4
- props: {
5
- target: {}
6
- },
7
- setup(o) {
8
- var t, e;
9
- const r = o, n = !!((e = (t = c()) == null ? void 0 : t.proxy) != null && e.$nuxt), p = r.target || (n ? "#teleports" : "body");
10
- return (s, _) => (l(), u(f, { to: d(p) }, [
11
- m(s.$slots, "default")
12
- ], 8, ["to"]));
1
+ import { arrow as j, computePosition as A } from "./index260.js";
2
+ import { autoUpdate as W, flip as X, offset as Y, platform as Z, shift as ee } from "./index260.js";
3
+ import { isNode as B, getNodeName as F } from "./index322.js";
4
+ import { getOverflowAncestors as te } from "./index322.js";
5
+ import { computed as r, ref as c, shallowRef as I, watch as x, getCurrentScope as U, onScopeDispose as k, shallowReadonly as o, unref as q } from "vue";
6
+ function z(e) {
7
+ return e != null && typeof e == "object" && "$el" in e;
8
+ }
9
+ function V(e) {
10
+ if (z(e)) {
11
+ const l = e.$el;
12
+ return B(l) && F(l) === "#comment" ? null : l;
13
13
  }
14
- });
14
+ return e;
15
+ }
16
+ function i(e) {
17
+ return typeof e == "function" ? e() : q(e);
18
+ }
19
+ function K(e) {
20
+ return {
21
+ name: "arrow",
22
+ options: e,
23
+ fn(l) {
24
+ const t = V(i(e.element));
25
+ return t == null ? {} : j({
26
+ element: t,
27
+ padding: e.padding
28
+ }).fn(l);
29
+ }
30
+ };
31
+ }
32
+ function M(e) {
33
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
+ }
35
+ function C(e, l) {
36
+ const t = M(e);
37
+ return Math.round(l * t) / t;
38
+ }
39
+ function L(e, l, t) {
40
+ t === void 0 && (t = {});
41
+ const D = t.whileElementsMounted, s = r(() => {
42
+ var n;
43
+ return (n = i(t.open)) != null ? n : !0;
44
+ }), O = r(() => i(t.middleware)), p = r(() => {
45
+ var n;
46
+ return (n = i(t.placement)) != null ? n : "bottom";
47
+ }), w = r(() => {
48
+ var n;
49
+ return (n = i(t.strategy)) != null ? n : "absolute";
50
+ }), S = r(() => {
51
+ var n;
52
+ return (n = i(t.transform)) != null ? n : !0;
53
+ }), f = r(() => V(e.value)), u = r(() => V(l.value)), y = c(0), h = c(0), m = c(w.value), P = c(p.value), E = I({}), g = c(!1), _ = r(() => {
54
+ const n = {
55
+ position: m.value,
56
+ left: "0",
57
+ top: "0"
58
+ };
59
+ if (!u.value)
60
+ return n;
61
+ const a = C(u.value, y.value), b = C(u.value, h.value);
62
+ return S.value ? {
63
+ ...n,
64
+ transform: "translate(" + a + "px, " + b + "px)",
65
+ ...M(u.value) >= 1.5 && {
66
+ willChange: "transform"
67
+ }
68
+ } : {
69
+ position: m.value,
70
+ left: a + "px",
71
+ top: b + "px"
72
+ };
73
+ });
74
+ let d;
75
+ function v() {
76
+ if (f.value == null || u.value == null)
77
+ return;
78
+ const n = s.value;
79
+ A(f.value, u.value, {
80
+ middleware: O.value,
81
+ placement: p.value,
82
+ strategy: w.value
83
+ }).then((a) => {
84
+ y.value = a.x, h.value = a.y, m.value = a.strategy, P.value = a.placement, E.value = a.middlewareData, g.value = n !== !1;
85
+ });
86
+ }
87
+ function R() {
88
+ typeof d == "function" && (d(), d = void 0);
89
+ }
90
+ function N() {
91
+ if (R(), D === void 0) {
92
+ v();
93
+ return;
94
+ }
95
+ if (f.value != null && u.value != null) {
96
+ d = D(f.value, u.value, v);
97
+ return;
98
+ }
99
+ }
100
+ function $() {
101
+ s.value || (g.value = !1);
102
+ }
103
+ return x([O, p, w, s], v, {
104
+ flush: "sync"
105
+ }), x([f, u], N, {
106
+ flush: "sync"
107
+ }), x(s, $, {
108
+ flush: "sync"
109
+ }), U() && k(R), {
110
+ x: o(y),
111
+ y: o(h),
112
+ strategy: o(m),
113
+ placement: o(P),
114
+ middlewareData: o(E),
115
+ isPositioned: o(g),
116
+ floatingStyles: _,
117
+ update: v
118
+ };
119
+ }
15
120
  export {
16
- i as default
121
+ K as arrow,
122
+ W as autoUpdate,
123
+ A as computePosition,
124
+ X as flip,
125
+ te as getOverflowAncestors,
126
+ Y as offset,
127
+ Z as platform,
128
+ ee as shift,
129
+ L as useFloating
17
130
  };
package/dist/index253.js CHANGED
@@ -1,36 +1,6 @@
1
- import { defineComponent as p, getCurrentInstance as a, resolveComponent as u, openBlock as f, createBlock as k, resolveDynamicComponent as g, unref as d, withCtx as b, renderSlot as x } from "vue";
2
- import { _config as e } from "./index4.js";
3
- import { useLogger as l } from "./index228.js";
4
- const $ = /* @__PURE__ */ p({
5
- __name: "RouterComponent",
6
- setup(y) {
7
- var o, i, r, s;
8
- const m = !!((i = (o = a()) == null ? void 0 : o.proxy) != null && i.$inertia), c = !!((s = (r = a()) == null ? void 0 : r.proxy) != null && s.$nuxt);
9
- let t;
10
- if (m) {
11
- if (t = u(e.inertiaLinkName), typeof t == "string") {
12
- const { warn: n } = l();
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 (c) {
18
- if (t = u(e.nuxtLinkName), typeof t == "string") {
19
- const { warn: n } = l();
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, L) => (f(), k(g(d(t)), null, {
27
- default: b(() => [
28
- x(n.$slots, "default")
29
- ]),
30
- _: 3
31
- }));
32
- }
33
- });
1
+ import { curry as e } from "./index326.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
34
3
  export {
35
- $ as default
4
+ t as baseWhen,
5
+ s as when
36
6
  };
package/dist/index254.js CHANGED
@@ -1,4 +1,108 @@
1
- const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1
+ import { defineComponent as y, ref as F, computed as H, watch as N, createElementBlock as L, openBlock as p, Fragment as S, renderList as V, createBlock as A, withModifiers as O, normalizeClass as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
+ import { hash as d } from "./index227.js";
3
+ import { isNil as l } from "./index263.js";
4
+ import E from "./index67.js";
5
+ /* empty css */
6
+ const K = /* @__PURE__ */ y({
7
+ __name: "ChipsBox",
8
+ props: {
9
+ options: {}
10
+ },
11
+ emits: ["option:unselected"],
12
+ setup(f, { expose: v, emit: h }) {
13
+ const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
+ const s = l(n.value) ? -1 : n.value;
15
+ let o = (s + e) % t.options.length;
16
+ for (; t.options[o].disabled && o !== s; )
17
+ o = a(e + 1);
18
+ return o;
19
+ }, x = () => {
20
+ if (!i.value) return;
21
+ const e = a();
22
+ n.value = e;
23
+ }, c = (e = 1) => {
24
+ const s = l(n.value) ? 0 : n.value;
25
+ let o = (s - e + t.options.length) % t.options.length;
26
+ for (; t.options[o].disabled && o !== s; )
27
+ o = c(e + 1);
28
+ return o;
29
+ }, m = async () => {
30
+ if (!i.value) return;
31
+ const e = c();
32
+ n.value = e;
33
+ }, w = () => {
34
+ if (!i.value) return;
35
+ let e = 0;
36
+ for (; t.options[e].disabled; )
37
+ e++;
38
+ n.value = e;
39
+ }, b = () => {
40
+ if (!i.value) return;
41
+ let e = t.options.length - 1;
42
+ for (; t.options[e].disabled && e !== 0; )
43
+ e--;
44
+ n.value = e;
45
+ }, I = () => {
46
+ if (!i.value) return;
47
+ let e = 0;
48
+ for (; !t.options[e].selected && t.options.length !== e; )
49
+ e++;
50
+ n.value = e;
51
+ }, g = () => {
52
+ if (!i.value) return;
53
+ let e = t.options.length - 1;
54
+ for (; t.options[e].selected && e !== 0; )
55
+ e--;
56
+ n.value = e;
57
+ }, _ = (e) => {
58
+ if (!i.value) return;
59
+ const s = t.options.findIndex(
60
+ (o) => o.valueHash === e
61
+ );
62
+ s >= 0 && (n.value = s);
63
+ }, r = () => {
64
+ n.value = null;
65
+ }, k = () => {
66
+ if (l(n.value)) return;
67
+ const e = t.options[n.value];
68
+ e.selected && u("option:unselected", e);
69
+ }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
+ return N(
71
+ () => t.options,
72
+ (e, s) => {
73
+ d(e) !== d(s) && r();
74
+ },
75
+ {
76
+ flush: "post"
77
+ }
78
+ ), v({
79
+ focusNext: x,
80
+ focusPrevious: m,
81
+ focusFirst: w,
82
+ focusFirstSelected: I,
83
+ focusLast: b,
84
+ focusLastSelected: g,
85
+ blur: r,
86
+ confirmOption: k,
87
+ focusByHash: _,
88
+ getHighlighted: C
89
+ }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
+ key: o.valueHash,
91
+ class: P({
92
+ "bb-chipsbox-item": !0,
93
+ "bb-chipsbox-item--focused": B === n.value
94
+ }),
95
+ clearable: !0,
96
+ text: o.text,
97
+ "onClick:clear": O((M) => u("option:unselected", o), ["stop"])
98
+ }, {
99
+ default: $(() => [
100
+ z(D(o.text), 1)
101
+ ]),
102
+ _: 2
103
+ }, 1032, ["class", "text", "onClick:clear"]))), 128));
104
+ }
105
+ });
2
106
  export {
3
- t as urlAlphabet
107
+ K as default
4
108
  };
package/dist/index256.js CHANGED
@@ -1,4 +1,102 @@
1
- const r = (e) => typeof e > "u" || e === null;
1
+ import { defineComponent as F, ref as H, computed as L, watch as N, createElementBlock as d, openBlock as v, Fragment as S, renderList as A, withModifiers as O, normalizeClass as P, toDisplayString as V } from "vue";
2
+ import { hash as f } from "./index227.js";
3
+ import { isNil as i } from "./index263.js";
4
+ const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
+ __name: "CommaBox",
6
+ props: {
7
+ options: {}
8
+ },
9
+ emits: ["option:unselected"],
10
+ setup(m, { expose: h, emit: x }) {
11
+ const t = m, a = x, n = H(null), l = L(() => t.options.some((e) => !e.disabled)), u = (e = 1) => {
12
+ const s = i(n.value) ? -1 : n.value;
13
+ let o = (s + e) % t.options.length;
14
+ for (; t.options[o].disabled && o !== s; )
15
+ o = u(e + 1);
16
+ return o;
17
+ }, b = () => {
18
+ if (!l.value) return;
19
+ const e = u();
20
+ n.value = e;
21
+ }, c = (e = 1) => {
22
+ const s = i(n.value) ? 0 : n.value;
23
+ let o = (s - e + t.options.length) % t.options.length;
24
+ for (; t.options[o].disabled && o !== s; )
25
+ o = c(e + 1);
26
+ return o;
27
+ }, w = async () => {
28
+ if (!l.value) return;
29
+ const e = c();
30
+ n.value = e;
31
+ }, I = () => {
32
+ if (!l.value) return;
33
+ let e = 0;
34
+ for (; t.options[e].disabled; )
35
+ e++;
36
+ n.value = e;
37
+ }, g = () => {
38
+ if (!l.value) return;
39
+ let e = t.options.length - 1;
40
+ for (; t.options[e].disabled && e !== 0; )
41
+ e--;
42
+ n.value = e;
43
+ }, k = () => {
44
+ if (!l.value) return;
45
+ let e = 0;
46
+ for (; !t.options[e].selected && t.options.length !== e; )
47
+ e++;
48
+ n.value = e;
49
+ }, _ = () => {
50
+ if (!l.value) return;
51
+ let e = t.options.length - 1;
52
+ for (; t.options[e].selected && e !== 0; )
53
+ e--;
54
+ n.value = e;
55
+ }, C = (e) => {
56
+ if (!l.value) return;
57
+ const s = t.options.findIndex(
58
+ (o) => o.valueHash === e
59
+ );
60
+ s >= 0 && (n.value = s);
61
+ }, r = () => {
62
+ n.value = null;
63
+ }, y = () => {
64
+ if (i(n.value)) return;
65
+ const e = t.options[n.value];
66
+ e.selected && a("option:unselected", e);
67
+ }, B = () => i(n.value) ? void 0 : t.options[n.value];
68
+ return N(
69
+ () => t.options,
70
+ (e, s) => {
71
+ f(e) !== f(s) && r();
72
+ },
73
+ {
74
+ flush: "post"
75
+ }
76
+ ), h({
77
+ focusNext: b,
78
+ focusPrevious: w,
79
+ focusFirst: I,
80
+ focusFirstSelected: k,
81
+ focusLast: g,
82
+ focusLastSelected: _,
83
+ blur: r,
84
+ confirmOption: y,
85
+ focusByHash: C,
86
+ getHighlighted: B
87
+ }), (e, s) => (v(!0), d(S, null, A(e.options, (o, p) => (v(), d("span", {
88
+ key: o.valueHash,
89
+ class: P({
90
+ "bb-commabox-item": !0,
91
+ "bb-commabox-item--focused": p === n.value,
92
+ "bb-commabox-item--has-comma": p !== e.options.length - 1
93
+ }),
94
+ clearable: !0,
95
+ text: o.text,
96
+ "onClick:clear": O((D) => a("option:unselected", o), ["stop"])
97
+ }, V(o.text), 43, z))), 128));
98
+ }
99
+ });
2
100
  export {
3
- r as isNil
101
+ j as default
4
102
  };
package/dist/index258.js CHANGED
@@ -1,128 +1,14 @@
1
- import { arrow as j, computePosition as A } from "./index265.js";
2
- import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index265.js";
3
- import { isNode as B, getNodeName as F } from "./index308.js";
4
- import { getOverflowAncestors as le } from "./index308.js";
5
- import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
6
- function z(e) {
7
- return e != null && typeof e == "object" && "$el" in e;
8
- }
9
- function g(e) {
10
- if (z(e)) {
11
- const l = e.$el;
12
- return B(l) && F(l) === "#comment" ? null : l;
13
- }
14
- return e;
15
- }
16
- function o(e) {
17
- return typeof e == "function" ? e() : q(e);
18
- }
19
- function K(e) {
20
- return {
21
- name: "arrow",
22
- options: e,
23
- fn(l) {
24
- const t = g(o(e.element));
25
- return t == null ? {} : j({
26
- element: t,
27
- padding: e.padding
28
- }).fn(l);
29
- }
30
- };
31
- }
32
- function M(e) {
33
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
- }
35
- function C(e, l) {
36
- const t = M(e);
37
- return Math.round(l * t) / t;
38
- }
39
- function L(e, l, t) {
40
- t === void 0 && (t = {});
41
- const x = t.whileElementsMounted, V = a(() => {
42
- var n;
43
- return (n = o(t.open)) != null ? n : !0;
44
- }), D = a(() => o(t.middleware)), d = a(() => {
45
- var n;
46
- return (n = o(t.placement)) != null ? n : "bottom";
47
- }), v = a(() => {
48
- var n;
49
- return (n = o(t.strategy)) != null ? n : "absolute";
50
- }), S = a(() => {
51
- var n;
52
- return (n = o(t.transform)) != null ? n : !0;
53
- }), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
54
- const n = {
55
- position: c.value,
56
- left: "0",
57
- top: "0"
58
- };
59
- if (!u.value)
60
- return n;
61
- const R = C(u.value, p.value), b = C(u.value, w.value);
62
- return S.value ? {
63
- ...n,
64
- transform: "translate(" + R + "px, " + b + "px)",
65
- ...M(u.value) >= 1.5 && {
66
- willChange: "transform"
67
- }
68
- } : {
69
- position: c.value,
70
- left: R + "px",
71
- top: b + "px"
72
- };
73
- });
74
- let s;
75
- function m() {
76
- i.value == null || u.value == null || A(i.value, u.value, {
77
- middleware: D.value,
78
- placement: d.value,
79
- strategy: v.value
80
- }).then((n) => {
81
- p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
82
- });
83
- }
84
- function E() {
85
- typeof s == "function" && (s(), s = void 0);
86
- }
87
- function N() {
88
- if (E(), x === void 0) {
89
- m();
90
- return;
91
- }
92
- if (i.value != null && u.value != null) {
93
- s = x(i.value, u.value, m);
94
- return;
95
- }
96
- }
97
- function $() {
98
- V.value || (y.value = !1);
99
- }
100
- return h([D, d, v], m, {
101
- flush: "sync"
102
- }), h([i, u], N, {
103
- flush: "sync"
104
- }), h(V, $, {
105
- flush: "sync"
106
- }), U() && k(E), {
107
- x: r(p),
108
- y: r(w),
109
- strategy: r(c),
110
- placement: r(O),
111
- middlewareData: r(P),
112
- isPositioned: r(y),
113
- floatingStyles: _,
114
- update: m
115
- };
116
- }
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
+ };
117
12
  export {
118
- K as arrow,
119
- W as autoUpdate,
120
- A as computePosition,
121
- X as flip,
122
- le as getOverflowAncestors,
123
- Y as hide,
124
- Z as offset,
125
- ee as platform,
126
- ne as shift,
127
- L as useFloating
13
+ n as useArray
128
14
  };