bitboss-ui 2.0.142 → 2.0.144

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 (174) hide show
  1. package/dist/components/BaseButton/RouterComponent.vue.d.ts +16 -0
  2. package/dist/index100.js +9 -9
  3. package/dist/index111.js +12 -12
  4. package/dist/index119.js +2 -2
  5. package/dist/index121.js +6 -6
  6. package/dist/index123.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index128.js +1 -1
  10. package/dist/index129.js +1 -1
  11. package/dist/index13.js +39 -52
  12. package/dist/index131.js +1 -1
  13. package/dist/index133.js +1 -1
  14. package/dist/index134.js +2 -2
  15. package/dist/index15.js +8 -8
  16. package/dist/index17.js +3 -3
  17. package/dist/index19.js +35 -33
  18. package/dist/index207.js +3 -2
  19. package/dist/index208.js +2 -2
  20. package/dist/index209.js +4 -5
  21. package/dist/index21.js +16 -16
  22. package/dist/index210.js +2 -125
  23. package/dist/index211.js +4 -16
  24. package/dist/index212.js +40 -15
  25. package/dist/index213.js +20 -19
  26. package/dist/index214.js +94 -15
  27. package/dist/index216.js +200 -2
  28. package/dist/index218.js +65 -12
  29. package/dist/index220.js +13 -6
  30. package/dist/index221.js +12 -93
  31. package/dist/index222.js +36 -0
  32. package/dist/index223.js +5 -66
  33. package/dist/index224.js +18 -0
  34. package/dist/index225.js +16 -13
  35. package/dist/index226.js +19 -2
  36. package/dist/index227.js +15 -86
  37. package/dist/index228.js +21 -0
  38. package/dist/index229.js +27 -29
  39. package/dist/index23.js +16 -16
  40. package/dist/index230.js +3 -17
  41. package/dist/index231.js +2 -51
  42. package/dist/index232.js +8 -15
  43. package/dist/index233.js +250 -3
  44. package/dist/index234.js +52 -12
  45. package/dist/index235.js +44 -16
  46. package/dist/index236.js +5 -8
  47. package/dist/index237.js +60 -2
  48. package/dist/index238.js +3 -4
  49. package/dist/index239.js +6 -2
  50. package/dist/index240.js +7 -3
  51. package/dist/index241.js +15 -19
  52. package/dist/index242.js +2 -27
  53. package/dist/index243.js +79 -243
  54. package/dist/index245.js +29 -44
  55. package/dist/index246.js +17 -5
  56. package/dist/index247.js +50 -59
  57. package/dist/index248.js +15 -4
  58. package/dist/index249.js +12 -200
  59. package/dist/index25.js +7 -7
  60. package/dist/index250.js +18 -0
  61. package/dist/index251.js +125 -3
  62. package/dist/index252.js +2 -7
  63. package/dist/index253.js +2 -15
  64. package/dist/index254.js +2 -18
  65. package/dist/index255.js +17 -125
  66. package/dist/index256.js +124 -104
  67. package/dist/index257.js +108 -0
  68. package/dist/{index258.js → index259.js} +2 -2
  69. package/dist/index261.js +12 -228
  70. package/dist/index262.js +226 -367
  71. package/dist/index263.js +369 -2
  72. package/dist/index264.js +2 -2
  73. package/dist/index265.js +2 -10
  74. package/dist/index266.js +9 -2
  75. package/dist/index267.js +2 -8
  76. package/dist/index268.js +6 -23
  77. package/dist/index269.js +16 -6
  78. package/dist/index27.js +1 -1
  79. package/dist/index270.js +8 -15
  80. package/dist/index271.js +23 -3
  81. package/dist/index272.js +224 -17
  82. package/dist/index273.js +4 -9
  83. package/dist/index274.js +8 -27
  84. package/dist/index275.js +427 -277
  85. package/dist/index276.js +175 -5
  86. package/dist/index277.js +3 -2
  87. package/dist/index278.js +3 -2
  88. package/dist/index279.js +3 -2
  89. package/dist/index281.js +7 -2
  90. package/dist/index282.js +7 -2
  91. package/dist/index283.js +10 -430
  92. package/dist/index284.js +2 -176
  93. package/dist/index285.js +9 -3
  94. package/dist/index286.js +8 -3
  95. package/dist/index287.js +202 -0
  96. package/dist/index288.js +281 -7
  97. package/dist/index289.js +6 -7
  98. package/dist/index29.js +3 -3
  99. package/dist/index290.js +2 -11
  100. package/dist/index291.js +2 -4
  101. package/dist/index292.js +2 -200
  102. package/dist/index295.js +2 -2
  103. package/dist/index296.js +2 -2
  104. package/dist/index297.js +1 -1
  105. package/dist/index298.js +1 -1
  106. package/dist/index299.js +1 -21
  107. package/dist/index300.js +4 -0
  108. package/dist/index301.js +26 -222
  109. package/dist/index302.js +22 -9
  110. package/dist/index304.js +2 -3
  111. package/dist/index305.js +89 -2
  112. package/dist/index306.js +3 -89
  113. package/dist/index307.js +15 -124
  114. package/dist/index308.js +2 -3
  115. package/dist/index309.js +126 -3
  116. package/dist/index31.js +2 -2
  117. package/dist/index310.js +3 -2
  118. package/dist/index311.js +3 -436
  119. package/dist/index312.js +2 -127
  120. package/dist/index313.js +436 -2
  121. package/dist/index314.js +126 -66
  122. package/dist/index315.js +67 -5
  123. package/dist/index316.js +5 -5
  124. package/dist/index317.js +2 -8
  125. package/dist/index321.js +4 -32
  126. package/dist/index322.js +8 -28
  127. package/dist/index323.js +6 -0
  128. package/dist/index324.js +2 -2
  129. package/dist/index325.js +7 -58
  130. package/dist/index326.js +33 -33
  131. package/dist/index327.js +58 -4
  132. package/dist/index328.js +46 -6
  133. package/dist/index329.js +6 -18
  134. package/dist/index33.js +37 -35
  135. package/dist/index330.js +17 -5
  136. package/dist/index331.js +32 -7
  137. package/dist/index332.js +28 -6
  138. package/dist/index334.js +7 -46
  139. package/dist/index335.js +6 -2
  140. package/dist/index337.js +2 -3
  141. package/dist/index339.js +3 -424
  142. package/dist/index340.js +420 -43
  143. package/dist/index341.js +49 -0
  144. package/dist/index35.js +4 -4
  145. package/dist/index37.js +22 -22
  146. package/dist/index39.js +5 -5
  147. package/dist/index41.js +2 -2
  148. package/dist/index43.js +34 -32
  149. package/dist/index45.js +8 -8
  150. package/dist/index47.js +2 -2
  151. package/dist/index49.js +2 -2
  152. package/dist/index53.js +1 -1
  153. package/dist/index55.js +1 -1
  154. package/dist/index57.js +2 -2
  155. package/dist/index61.js +10 -12
  156. package/dist/index75.js +3 -3
  157. package/dist/index77.js +1 -1
  158. package/dist/index79.js +2 -2
  159. package/dist/index81.js +1 -1
  160. package/dist/index84.js +4 -4
  161. package/dist/index86.js +2 -2
  162. package/dist/index88.js +4 -4
  163. package/dist/index90.js +1 -1
  164. package/dist/style.css +1 -1
  165. package/package.json +1 -1
  166. package/dist/index215.js +0 -4
  167. package/dist/index217.js +0 -43
  168. package/dist/index219.js +0 -22
  169. package/dist/index244.js +0 -54
  170. package/dist/index260.js +0 -14
  171. package/dist/index303.js +0 -10
  172. package/dist/index338.js +0 -4
  173. /package/dist/{index333.js → index336.js} +0 -0
  174. /package/dist/{index280.js → index342.js} +0 -0
@@ -0,0 +1,16 @@
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ export default _default;
12
+ type __VLS_WithTemplateSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
package/dist/index100.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as V, toRef as r, reactive as E, watch as m, ref as L, openBlock as b, createElementBlock as B, Fragment as g, renderSlot as i, unref as P, createCommentVNode as R, renderList as j } from "vue";
2
- import { useItemValue as G } from "./index273.js";
3
- import { isNil as k } from "./index264.js";
4
- import { indexBy as U } from "./index303.js";
5
- import { hash as p } from "./index233.js";
6
- import { useItemsGetter as W } from "./index229.js";
7
- import { usePrefill as q } from "./index235.js";
8
- import { useIndexById as z } from "./index230.js";
9
- import { useBaseOptions as J } from "./index231.js";
10
- import { useHashedWatcher as K } from "./index234.js";
2
+ import { useItemValue as G } from "./index285.js";
3
+ import { isNil as k } from "./index265.js";
4
+ import { indexBy as U } from "./index286.js";
5
+ import { hash as p } from "./index230.js";
6
+ import { useItemsGetter as W } from "./index245.js";
7
+ import { usePrefill as q } from "./index250.js";
8
+ import { useIndexById as z } from "./index246.js";
9
+ import { useBaseOptions as J } from "./index247.js";
10
+ import { useHashedWatcher as K } from "./index249.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index111.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as ue, ref as K, computed as h, toRef as O, watch as D, reactive as pe, openBlock as n, createBlock as Q, resolveDynamicComponent as me, normalizeClass as p, unref as v, withCtx as fe, createElementBlock as d, toDisplayString as m, createCommentVNode as g, createElementVNode as o, renderSlot as f, Fragment as A, renderList as B, createVNode as X, createTextVNode as ye, mergeProps as he } from "vue";
2
- import { add as ve } from "./index313.js";
3
- import { clamp as ke } from "./index207.js";
4
- import { isNil as T } from "./index264.js";
2
+ import { add as ve } from "./index317.js";
3
+ import { clamp as ke } from "./index254.js";
4
+ import { isNil as T } from "./index265.js";
5
5
  import { useId as _e } from "./index8.js";
6
- import { useItemValue as ge } from "./index273.js";
7
- import { when as Ce } from "./index238.js";
6
+ import { useItemValue as ge } from "./index285.js";
7
+ import { when as Ce } from "./index209.js";
8
8
  import Y from "./index17.js";
9
9
  /* empty css */
10
10
  import we from "./index31.js";
11
11
  /* empty css */
12
- import { hash as E } from "./index233.js";
13
- import { useItemsGetter as Ie } from "./index229.js";
14
- import { usePrefill as Ve } from "./index235.js";
15
- import { useIndexById as Ae } from "./index230.js";
16
- import { useBaseOptions as Be } from "./index231.js";
17
- import { useHashedWatcher as Te } from "./index234.js";
18
- import { useLocale as $e } from "./index218.js";
12
+ import { hash as E } from "./index230.js";
13
+ import { useItemsGetter as Ie } from "./index245.js";
14
+ import { usePrefill as Ve } from "./index250.js";
15
+ import { useIndexById as Ae } from "./index246.js";
16
+ import { useBaseOptions as Be } from "./index247.js";
17
+ import { useHashedWatcher as Te } from "./index249.js";
18
+ import { useLocale as $e } from "./index221.js";
19
19
  const xe = {
20
20
  key: 0,
21
21
  class: "sr-only"
package/dist/index119.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
2
2
  import { state as k, useToast as b } from "./index11.js";
3
- import C from "./index253.js";
4
- import B from "./index314.js";
3
+ import C from "./index241.js";
4
+ import B from "./index315.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index121.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as H, ref as o, watch as I, computed as z, openBlock as B, createElementBlock as R, mergeProps as S, createElementVNode as p, renderSlot as C, normalizeProps as U, guardReactiveProps as W, unref as u, createVNode as j, withCtx as L, createBlock as q, createCommentVNode as A } from "vue";
2
- import { useFloating as G, arrow as J } from "./index255.js";
2
+ import { useFloating as G, arrow as J } from "./index256.js";
3
3
  import { useId as K } from "./index8.js";
4
4
  import { wait as Q } from "./index130.js";
5
5
  import X from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as b } from "./index251.js";
8
- import { waitFor as Y } from "./index220.js";
9
- import Z from "./index221.js";
7
+ import { throttle as b } from "./index238.js";
8
+ import { waitFor as Y } from "./index239.js";
9
+ import Z from "./index214.js";
10
10
  /* empty css */
11
- import { useLocale as x } from "./index218.js";
12
- import { autoUpdate as ee, flip as te, shift as oe, hide as ae } from "./index262.js";
11
+ import { useLocale as x } from "./index221.js";
12
+ import { autoUpdate as ee, flip as te, shift as oe, hide as ae } from "./index263.js";
13
13
  const ne = { class: "bb-tooltip__content" }, ge = /* @__PURE__ */ H({
14
14
  __name: "BbTooltip",
15
15
  props: {
package/dist/index123.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index315.js";
2
+ import { flattenTree as T } from "./index316.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index125.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as p, createTextVNode as b, toDisplayString as m, unref as u, withModifiers as d, createCommentVNode as _ } from "vue";
2
- import { useLocale as f } from "./index218.js";
2
+ import { useLocale as f } from "./index221.js";
3
3
  const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
4
4
  __name: "BbChip",
5
5
  props: {
package/dist/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index237.js";
2
+ import { isCssColor as I } from "./index208.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index251.js";
2
+ import { throttle as g } from "./index238.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index129.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index237.js";
2
+ import { isCssColor as u } from "./index208.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,8 +1,6 @@
1
- import { defineComponent as C, getCurrentInstance as d, shallowRef as x, watch as S, computed as f, openBlock as L, createBlock as B, resolveDynamicComponent as N, unref as $, mergeProps as F, withCtx as w, renderSlot as A, createTextVNode as P, toDisplayString as _, resolveComponent as m } from "vue";
2
- import { _config as o } from "./index4.js";
3
- import { useLogger as v } from "./index236.js";
4
- import { hash as g } from "./index233.js";
5
- const I = /* @__PURE__ */ C({
1
+ import { defineComponent as m, getCurrentInstance as h, computed as r, openBlock as i, createBlock as u, mergeProps as c, withCtx as d, renderSlot as p, createTextVNode as f, toDisplayString as v, resolveDynamicComponent as g } from "vue";
2
+ import S from "./index222.js";
3
+ const A = /* @__PURE__ */ m({
6
4
  __name: "BaseButton",
7
5
  props: {
8
6
  activeClass: {},
@@ -32,54 +30,43 @@ const I = /* @__PURE__ */ C({
32
30
  to: {},
33
31
  type: { default: "button" }
34
32
  },
35
- setup(b) {
36
- var i, l, u, c;
37
- const e = b, r = !!((l = (i = d()) == null ? void 0 : i.proxy) != null && l.$inertia), y = !!((c = (u = d()) == null ? void 0 : u.proxy) != null && c.$nuxt);
38
- let a = x(), n;
39
- const s = () => {
40
- if (e.href || e.to && e.disabled)
41
- if (r && !e.disabled && !e.target) {
42
- if (n ?? (n = m(o.inertiaLinkName)), typeof n == "string") {
43
- const { warn: t } = v();
44
- t(
45
- `Inertia link component "${o.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
46
- );
47
- }
48
- a.value = n;
49
- } else
50
- a.value = "a";
51
- else if (e.to)
52
- if (y) {
53
- if (n ?? (n = m(o.nuxtLinkName)), typeof n == "string") {
54
- const { warn: t } = v();
55
- t(
56
- `Nuxt link component "${o.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.nuxtLinkName}" or set bitboss-ui config key "nuxtLinkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
57
- );
58
- }
59
- a.value = n;
60
- } else
61
- a.value = "router-link";
62
- else
63
- a.value = e.tag;
64
- };
65
- s(), S(
66
- () => [e.tag, e.to, e.href, e.disabled],
67
- (t, p) => {
68
- g(t) !== g(p) && s();
69
- }
70
- );
71
- const k = f(() => ({
33
+ setup(C) {
34
+ var y, b;
35
+ const t = C, o = !!((b = (y = h()) == null ? void 0 : y.proxy) != null && b.$inertia), a = r(() => !!(t.href && o && !t.disabled && !t.target || t.to && !t.disabled)), s = r(() => !!(t.href || t.to && t.disabled)), l = r(() => ({
72
36
  "base-btn": !0,
73
- "base-btn--block": e.block,
74
- "base-btn--disabled": e.disabled
75
- })), h = f(() => {
76
- const t = {};
77
- return a.value === "button" ? (t.disabled = e.disabled, t.type = e.type) : a.value === "a" || a.value === "router-link" && e.disabled || r && typeof a.value != "string" && a.value.name === "Link" ? e.disabled ? (t["aria-disabled"] = !0, t.role = "link", t.href = null) : (t.href = e.href, t.target = e.target, r && (t.data = e.data, t.headers = e.headers, t.method = e.method, t.onBefore = e.onBefore, t.onCancel = e.onCancel, t.onCancelToken = e.onCancelToken, t.onFinish = e.onFinish, t.only = e.only, t.onProgress = e.onProgress, t.onStart = e.onStart, t.onSuccess = e.onSuccess, t.preserveScroll = e.preserveScroll, t.preserveState = e.preserveState, t.queryStringArrayFormat = e.queryStringArrayFormat, t.replace = e.replace)) : (a.value === "router-link" || typeof a.value != "string" && a.value.name === "NuxtLink") && (t.activeClass = e.activeClass, t.ariaCurrentValue = e.ariaCurrentValue, t.exactActiveClass = e.exactActiveClass, t.replace = e.replace, t.target = e.target, t.to = e.to), t;
37
+ "base-btn--block": t.block,
38
+ "base-btn--disabled": t.disabled
39
+ })), n = r(() => {
40
+ const e = {};
41
+ return !a.value && !s.value ? (e.disabled = t.disabled, e.type = t.type) : s.value || a.value && o ? t.disabled ? (e["aria-disabled"] = !0, e.role = "link", e.href = null) : (e.href = t.href, e.target = t.target, o && (e.data = t.data, e.headers = t.headers, e.method = t.method, e.onBefore = t.onBefore, e.onCancel = t.onCancel, e.onCancelToken = t.onCancelToken, e.onFinish = t.onFinish, e.only = t.only, e.onProgress = t.onProgress, e.onStart = t.onStart, e.onSuccess = t.onSuccess, e.preserveScroll = t.preserveScroll, e.preserveState = t.preserveState, e.queryStringArrayFormat = t.queryStringArrayFormat, e.replace = t.replace)) : a.value && (e.activeClass = t.activeClass, e.ariaCurrentValue = t.ariaCurrentValue, e.exactActiveClass = t.exactActiveClass, e.replace = t.replace, e.target = t.target, e.to = t.to), console.log({ initial: e }), e;
78
42
  });
79
- return (t, p) => (L(), B(N($(a)), F({ class: k.value }, h.value), {
80
- default: w(() => [
81
- A(t.$slots, "default", {}, () => [
82
- P(_(t.text), 1)
43
+ return (e, k) => a.value ? (i(), u(S, c({
44
+ key: 0,
45
+ class: l.value
46
+ }, n.value), {
47
+ default: d(() => [
48
+ p(e.$slots, "default", {}, () => [
49
+ f(v(e.text), 1)
50
+ ])
51
+ ]),
52
+ _: 3
53
+ }, 16, ["class"])) : s.value ? (i(), u(g("a"), c({
54
+ key: 1,
55
+ class: l.value
56
+ }, n.value), {
57
+ default: d(() => [
58
+ p(e.$slots, "default", {}, () => [
59
+ f(v(e.text), 1)
60
+ ])
61
+ ]),
62
+ _: 3
63
+ }, 16, ["class"])) : (i(), u(g(e.tag), c({
64
+ key: 2,
65
+ class: l.value
66
+ }, n.value), {
67
+ default: d(() => [
68
+ p(e.$slots, "default", {}, () => [
69
+ f(v(e.text), 1)
83
70
  ])
84
71
  ]),
85
72
  _: 3
@@ -87,5 +74,5 @@ const I = /* @__PURE__ */ C({
87
74
  }
88
75
  });
89
76
  export {
90
- I as default
77
+ A as default
91
78
  };
package/dist/index131.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index207.js";
1
+ import { clamp as o } from "./index254.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index133.js CHANGED
@@ -1,4 +1,4 @@
1
- import { urlAlphabet as l } from "./index208.js";
1
+ import { urlAlphabet as l } from "./index242.js";
2
2
  let o = (t = 21) => {
3
3
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
4
4
  for (; t--; )
package/dist/index134.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index316.js";
2
- import { isPlainObject as c } from "./index317.js";
1
+ import { isArray as p } from "./index321.js";
2
+ import { isPlainObject as c } from "./index322.js";
3
3
  function i(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index15.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as H, ref as u, computed as D, openBlock as E, createElementBlock as I, Fragment as M, createVNode as p, normalizeClass as _, withCtx as n, renderSlot as r, unref as s, createElementVNode as c, normalizeStyle as F, withModifiers as T, withDirectives as q, mergeProps as L, nextTick as N } from "vue";
2
- import { isHex as O } from "./index248.js";
2
+ import { isHex as O } from "./index211.js";
3
3
  import { isNotNil as z } from "./index135.js";
4
- import { useFocusTrap as S } from "./index217.js";
4
+ import { useFocusTrap as S } from "./index212.js";
5
5
  import { useId as A } from "./index8.js";
6
- import { vMaska as K } from "./index219.js";
7
- import P from "./index221.js";
6
+ import { vMaska as K } from "./index213.js";
7
+ import P from "./index214.js";
8
8
  /* empty css */
9
- import R from "./index249.js";
9
+ import R from "./index216.js";
10
10
  /* empty css */
11
- import U from "./index223.js";
11
+ import U from "./index218.js";
12
12
  /* empty css */
13
- import j from "./index225.js";
13
+ import j from "./index220.js";
14
14
  import { wait as G } from "./index130.js";
15
- import { useLocale as J } from "./index218.js";
15
+ import { useLocale as J } from "./index221.js";
16
16
  const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], W = ["aria-label"], X = { class: "bb-common-input-inner-container__suffix" }, ce = /* @__PURE__ */ H({
17
17
  __name: "BaseColorInput",
18
18
  props: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index237.js";
3
- import { when as N } from "./index238.js";
4
- import { booleanishToBoolean as S } from "./index239.js";
2
+ import { isCssColor as y } from "./index208.js";
3
+ import { when as N } from "./index209.js";
4
+ import { booleanishToBoolean as S } from "./index210.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as j, ref as k, toRef as d, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as h, guardReactiveProps as b, createVNode as R, mergeProps as T } from "vue";
1
+ import { defineComponent as j, ref as k, toRef as d, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as R, mergeProps as T } from "vue";
2
2
  import W from "./index17.js";
3
3
  /* empty css */
4
- import K from "./index227.js";
4
+ import K from "./index243.js";
5
5
  /* empty css */
6
- import { useItemsGetter as N } from "./index229.js";
7
- import { useIndexById as w } from "./index230.js";
8
- import { useBaseOptions as U } from "./index231.js";
9
- import { useCoherence as q } from "./index232.js";
10
- import { hash as J } from "./index233.js";
11
- import { useHashedWatcher as C } from "./index234.js";
12
- import { usePrefill as Q } from "./index235.js";
6
+ import { useItemsGetter as N } from "./index245.js";
7
+ import { useIndexById as w } from "./index246.js";
8
+ import { useBaseOptions as U } from "./index247.js";
9
+ import { useCoherence as q } from "./index248.js";
10
+ import { hash as J } from "./index230.js";
11
+ import { useHashedWatcher as C } from "./index249.js";
12
+ import { usePrefill as Q } from "./index250.js";
13
13
  const de = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
@@ -36,31 +36,31 @@ const de = /* @__PURE__ */ j({
36
36
  readonly: { type: Boolean }
37
37
  },
38
38
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
39
- setup(E, { emit: L }) {
40
- const o = E, a = L;
39
+ setup(E, { emit: $ }) {
40
+ const o = E, a = $;
41
41
  if (!Array.isArray(o.modelValue))
42
42
  throw new Error("Model value must be an array in checkbox group.");
43
- const v = k(), i = k(!1), {
44
- getter: u,
45
- items: D,
46
- loading: I
43
+ const u = k(), i = k(!1), {
44
+ getter: c,
45
+ items: L,
46
+ loading: D
47
47
  } = N({
48
48
  items: d(o, "items"),
49
49
  debounce: 0
50
- }), c = () => {
50
+ }), m = () => {
51
51
  o.enforceCoherence && !V.value && a("update:modelValue", P.value.coherent);
52
- }, { hasPrefilled: $ } = Q({
52
+ }, { hasPrefilled: I } = Q({
53
53
  onStart: !0,
54
54
  currentValue: o.modelValue,
55
55
  multiple: !0,
56
56
  fn: async ({ prefill: e }) => {
57
- await u(e, o.modelValue), c();
57
+ await c(e, o.modelValue), m();
58
58
  }
59
59
  }), { data: y } = w({
60
60
  items: d(o, "modelValue")
61
61
  }), { options: g } = U({
62
62
  disabled: d(o, "disabled"),
63
- items: D,
63
+ items: L,
64
64
  itemText: o.itemText,
65
65
  itemValue: o.itemValue,
66
66
  max: o.max,
@@ -83,7 +83,7 @@ const de = /* @__PURE__ */ j({
83
83
  C(
84
84
  () => o.modelValue,
85
85
  async () => {
86
- r++, V.value || (await u(!1, o.modelValue), c()), r--;
86
+ r++, V.value || (await c(!1, o.modelValue), m()), r--;
87
87
  },
88
88
  {
89
89
  debounce: o.modelValueDebounceTime
@@ -91,7 +91,7 @@ const de = /* @__PURE__ */ j({
91
91
  ), C(
92
92
  () => [o.dependencies, o.items],
93
93
  async () => {
94
- $.value && (r++, await u(!1, o.modelValue), r === 1 && c(), r--);
94
+ I.value && (r++, await c(!1, o.modelValue), r === 1 && m(), r--);
95
95
  },
96
96
  {
97
97
  debounce: o.depsDebounceTime
@@ -106,25 +106,27 @@ const de = /* @__PURE__ */ j({
106
106
  onBlur: (e) => a("blur", e),
107
107
  onClick: (e) => a("click", e),
108
108
  onFocus: (e) => {
109
- a("focus", e), i.value || (document.addEventListener("focusin", m, { passive: !0 }), document.addEventListener("click", p, { passive: !0 }), i.value = !0);
109
+ a("focus", e), i.value || (document.addEventListener("focusin", p, { passive: !0 }), document.addEventListener("click", f, { passive: !0 }), i.value = !0);
110
110
  },
111
111
  onInput: (e) => a("input", e),
112
112
  onKeydown: (e) => a("keydown", e),
113
113
  onMousedown: (e) => a("mousedown", e),
114
114
  onMouseup: (e) => a("mouseup", e)
115
- }, m = (e) => {
116
- var t;
117
- e.target instanceof HTMLElement && ((t = v.value) != null && t.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", m), document.removeEventListener("click", p)));
118
115
  }, p = (e) => {
119
116
  var t;
120
- e.target instanceof HTMLElement && ((t = v.value) != null && t.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", m), document.removeEventListener("click", p)));
117
+ e.target instanceof HTMLElement && ((t = u.value) != null && t.$el.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
118
+ }, f = (e) => {
119
+ var t;
120
+ e.target instanceof HTMLElement && ((t = u.value) != null && t.$el.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
121
121
  };
122
122
  return (e, t) => (z(), G(K, {
123
+ ref_key: "container",
124
+ ref: u,
123
125
  class: "bb-base-checkbox-group",
124
126
  direction: e.direction,
125
127
  "has-errors": e.hasErrors,
126
128
  "hide-label": e.hideLabel,
127
- loading: !!B(I),
129
+ loading: !!B(D),
128
130
  "loading-text": e.loadingText,
129
131
  "no-data-text": e.noDataText,
130
132
  options: B(g)
@@ -139,10 +141,10 @@ const de = /* @__PURE__ */ j({
139
141
  l(e.$slots, "no-data")
140
142
  ]),
141
143
  label: s((n) => [
142
- l(e.$slots, "label", h(b(n)))
144
+ l(e.$slots, "label", b(v(n)))
143
145
  ]),
144
146
  "option:prepend": s((n) => [
145
- l(e.$slots, "option:prepend", h(b(n)))
147
+ l(e.$slots, "option:prepend", b(v(n)))
146
148
  ]),
147
149
  input: s(({ option: n, index: A }) => [
148
150
  R(W, T({
@@ -157,19 +159,19 @@ const de = /* @__PURE__ */ j({
157
159
  readonly: e.readonly,
158
160
  "true-value": n.value
159
161
  }, S, {
160
- onChange: (f) => O(f, n)
162
+ onChange: (h) => O(h, n)
161
163
  }), {
162
- icon: s((f) => [
164
+ icon: s((h) => [
163
165
  l(e.$slots, "icon", T({
164
166
  item: n.item,
165
167
  text: n.text
166
- }, f))
168
+ }, h))
167
169
  ]),
168
170
  _: 2
169
171
  }, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
170
172
  ]),
171
173
  "option:append": s((n) => [
172
- l(e.$slots, "option:append", h(b(n)))
174
+ l(e.$slots, "option:append", b(v(n)))
173
175
  ]),
174
176
  append: s(() => [
175
177
  l(e.$slots, "append")
package/dist/index207.js CHANGED
@@ -1,4 +1,5 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ import r from "./index272.js";
2
+ const t = r;
2
3
  export {
3
- n as clamp
4
+ t as deburr
4
5
  };
package/dist/index208.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
2
2
  export {
3
- t as urlAlphabet
3
+ s as isCssColor
4
4
  };
package/dist/index209.js CHANGED
@@ -1,7 +1,6 @@
1
- import { getDefaultExportFromCjs as r } from "./index276.js";
2
- import { __require as o } from "./index275.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ import { curry as e } from "./index273.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
5
3
  export {
6
- s as default
4
+ t as baseWhen,
5
+ s as when
7
6
  };
package/dist/index21.js CHANGED
@@ -5,22 +5,22 @@ import { _config as C } from "./index4.js";
5
5
  import { useId as F } from "./index8.js";
6
6
  import f from "./index13.js";
7
7
  /* empty css */
8
- import s from "./index209.js";
9
- import G from "./index211.js";
10
- import J from "./index212.js";
11
- import K from "./index213.js";
12
- import Q from "./index214.js";
13
- import X from "./index241.js";
14
- import ee from "./index242.js";
15
- import { hash as M } from "./index233.js";
16
- import { last as ae } from "./index216.js";
17
- import { useLogger as te } from "./index236.js";
18
- import oe from "./index243.js";
19
- import le from "./index244.js";
20
- import re from "./index245.js";
21
- import B from "./index246.js";
22
- import se from "./index247.js";
23
- import { useLocale as de } from "./index218.js";
8
+ import s from "./index223.js";
9
+ import G from "./index224.js";
10
+ import J from "./index225.js";
11
+ import K from "./index226.js";
12
+ import Q from "./index227.js";
13
+ import X from "./index228.js";
14
+ import ee from "./index229.js";
15
+ import { hash as M } from "./index230.js";
16
+ import { last as ae } from "./index231.js";
17
+ import { useLogger as te } from "./index232.js";
18
+ import oe from "./index233.js";
19
+ import le from "./index234.js";
20
+ import re from "./index235.js";
21
+ import B from "./index236.js";
22
+ import se from "./index237.js";
23
+ import { useLocale as de } from "./index221.js";
24
24
  const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, ue = { class: "bb-base-date-picker__controls" }, me = { class: "sr-only" }, pe = { class: "sr-only" }, ce = { class: "sr-only" }, fe = {
25
25
  style: { transform: "rotate(180deg)" },
26
26
  viewBox: "0 0 24 24",