bitboss-ui 2.0.171 → 2.0.173

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 (192) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +97 -7
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
  3. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +28 -8
  4. package/dist/components/BbPopover/BbPopover.vue.d.ts +30 -10
  5. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +28 -8
  6. package/dist/components/CommonPopover.vue.d.ts +8 -4
  7. package/dist/index.css +1 -1
  8. package/dist/index106.js +8 -8
  9. package/dist/index111.js +1 -1
  10. package/dist/index113.js +1 -1
  11. package/dist/index121.js +10 -10
  12. package/dist/index129.js +2 -2
  13. package/dist/index13.js +1 -1
  14. package/dist/index131.js +40 -39
  15. package/dist/index133.js +1 -1
  16. package/dist/index139.js +2 -2
  17. package/dist/index15.js +130 -142
  18. package/dist/index17.js +3 -3
  19. package/dist/index19.js +8 -8
  20. package/dist/index209.js +5 -2
  21. package/dist/index21.js +16 -16
  22. package/dist/index210.js +5 -4
  23. package/dist/index211.js +5 -2
  24. package/dist/index212.js +5 -18
  25. package/dist/index213.js +5 -128
  26. package/dist/index214.js +5 -106
  27. package/dist/index215.js +7 -0
  28. package/dist/index216.js +3 -100
  29. package/dist/index217.js +4 -0
  30. package/dist/index218.js +6 -64
  31. package/dist/index219.js +252 -0
  32. package/dist/index220.js +52 -13
  33. package/dist/index221.js +43 -5
  34. package/dist/index222.js +5 -15
  35. package/dist/index223.js +60 -29
  36. package/dist/index224.js +13 -16
  37. package/dist/index225.js +2 -12
  38. package/dist/index226.js +2 -51
  39. package/dist/index227.js +2 -17
  40. package/dist/index228.js +66 -15
  41. package/dist/index23.js +140 -174
  42. package/dist/index230.js +13 -12
  43. package/dist/index231.js +177 -13
  44. package/dist/index232.js +41 -2
  45. package/dist/index233.js +5 -227
  46. package/dist/index234.js +7 -368
  47. package/dist/index235.js +15 -2
  48. package/dist/index236.js +86 -5
  49. package/dist/index238.js +29 -5
  50. package/dist/index239.js +16 -5
  51. package/dist/index240.js +17 -5
  52. package/dist/index241.js +51 -5
  53. package/dist/index242.js +15 -5
  54. package/dist/index243.js +12 -8
  55. package/dist/index244.js +30 -246
  56. package/dist/index245.js +3 -52
  57. package/dist/index246.js +5 -44
  58. package/dist/index247.js +2 -5
  59. package/dist/index248.js +11 -60
  60. package/dist/index249.js +20 -5
  61. package/dist/index25.js +5 -5
  62. package/dist/index250.js +120 -2
  63. package/dist/index252.js +4 -20
  64. package/dist/index253.js +4 -94
  65. package/dist/index254.js +202 -0
  66. package/dist/index256.js +18 -4
  67. package/dist/index257.js +12 -200
  68. package/dist/index258.js +108 -0
  69. package/dist/index260.js +95 -81
  70. package/dist/index262.js +224 -30
  71. package/dist/index265.js +10 -3
  72. package/dist/index266.js +2 -176
  73. package/dist/index267.js +6 -10
  74. package/dist/index268.js +16 -3
  75. package/dist/index269.js +3 -6
  76. package/dist/index27.js +1 -1
  77. package/dist/index270.js +2 -16
  78. package/dist/index271.js +9 -11
  79. package/dist/index272.js +8 -100
  80. package/dist/index273.js +25 -0
  81. package/dist/index274.js +9 -3
  82. package/dist/index275.js +8 -9
  83. package/dist/index276.js +67 -23
  84. package/dist/index277.js +5 -2
  85. package/dist/index278.js +280 -9
  86. package/dist/index279.js +2 -8
  87. package/dist/index280.js +16 -5
  88. package/dist/index281.js +2 -67
  89. package/dist/index282.js +15 -4
  90. package/dist/index283.js +2 -8
  91. package/dist/index284.js +19 -4
  92. package/dist/index285.js +2 -4
  93. package/dist/index286.js +14 -128
  94. package/dist/index287.js +2 -3
  95. package/dist/index288.js +19 -3
  96. package/dist/index289.js +2 -3
  97. package/dist/index29.js +2 -2
  98. package/dist/index290.js +29 -0
  99. package/dist/index291.js +2 -7
  100. package/dist/index292.js +1 -1
  101. package/dist/index293.js +1 -1
  102. package/dist/index294.js +2 -17
  103. package/dist/index295.js +2 -28
  104. package/dist/index296.js +28 -7
  105. package/dist/index297.js +22 -11
  106. package/dist/index299.js +7 -2
  107. package/dist/index300.js +7 -16
  108. package/dist/index301.js +11 -2
  109. package/dist/index302.js +5 -15
  110. package/dist/index303.js +3 -2
  111. package/dist/index305.js +2 -2
  112. package/dist/index306.js +3 -15
  113. package/dist/index307.js +17 -2
  114. package/dist/index308.js +469 -17
  115. package/dist/index309.js +2 -2
  116. package/dist/index31.js +2 -2
  117. package/dist/index310.js +199 -26
  118. package/dist/index311.js +5 -2
  119. package/dist/index312.js +4 -2
  120. package/dist/index313.js +125 -2
  121. package/dist/index314.js +2 -2
  122. package/dist/index315.js +3 -2
  123. package/dist/index316.js +3 -22
  124. package/dist/{index353.js → index317.js} +1 -1
  125. package/dist/index318.js +3 -125
  126. package/dist/index319.js +2 -2
  127. package/dist/index320.js +4 -470
  128. package/dist/index321.js +8 -3
  129. package/dist/index322.js +5 -3
  130. package/dist/index323.js +3 -381
  131. package/dist/index324.js +700 -125
  132. package/dist/index325.js +354 -2
  133. package/dist/index326.js +58 -3
  134. package/dist/index327.js +2 -6
  135. package/dist/index328.js +32 -199
  136. package/dist/index329.js +28 -5
  137. package/dist/index33.js +8 -8
  138. package/dist/index331.js +7 -354
  139. package/dist/index332.js +17 -56
  140. package/dist/index333.js +58 -3
  141. package/dist/index334.js +58 -5
  142. package/dist/index335.js +6 -46
  143. package/dist/index336.js +47 -2
  144. package/dist/index337.js +128 -32
  145. package/dist/index338.js +369 -28
  146. package/dist/index339.js +10 -0
  147. package/dist/index340.js +6 -58
  148. package/dist/index341.js +7 -57
  149. package/dist/index342.js +227 -6
  150. package/dist/index343.js +92 -7
  151. package/dist/index345.js +3 -8
  152. package/dist/index346.js +482 -5
  153. package/dist/index347.js +128 -6
  154. package/dist/index348.js +46 -18
  155. package/dist/index349.js +431 -223
  156. package/dist/index35.js +4 -4
  157. package/dist/index350.js +125 -91
  158. package/dist/index37.js +230 -240
  159. package/dist/index39.js +2 -2
  160. package/dist/index41.js +2 -2
  161. package/dist/index43.js +8 -8
  162. package/dist/index45.js +8 -8
  163. package/dist/index47.js +2 -2
  164. package/dist/index49.js +3 -3
  165. package/dist/index53.js +1 -1
  166. package/dist/index55.js +1 -1
  167. package/dist/index57.js +1 -1
  168. package/dist/index61.js +3 -3
  169. package/dist/index67.js +1 -1
  170. package/dist/index79.js +106 -112
  171. package/dist/index81.js +1 -1
  172. package/dist/index83.js +2 -2
  173. package/dist/index85.js +1 -1
  174. package/dist/index87.js +1 -1
  175. package/dist/index90.js +4 -4
  176. package/dist/index92.js +2 -2
  177. package/dist/index94.js +56 -56
  178. package/package.json +2 -2
  179. package/dist/components/CommonFloating.vue.d.ts +0 -38
  180. package/dist/index229.js +0 -5
  181. package/dist/index237.js +0 -7
  182. package/dist/index251.js +0 -43
  183. package/dist/index255.js +0 -11
  184. package/dist/index259.js +0 -9
  185. package/dist/index298.js +0 -282
  186. package/dist/index304.js +0 -21
  187. package/dist/index330.js +0 -703
  188. package/dist/index344.js +0 -8
  189. package/dist/index351.js +0 -484
  190. package/dist/index354.js +0 -49
  191. package/dist/index355.js +0 -483
  192. package/dist/index356.js +0 -4
package/dist/index131.js CHANGED
@@ -1,11 +1,11 @@
1
- import { defineComponent as V, mergeModels as h, ref as i, useModel as $, createBlock as k, openBlock as y, normalizeClass as D, withCtx as d, createElementVNode as u, createCommentVNode as O, renderSlot as B, unref as m, normalizeProps as P, guardReactiveProps as z } from "vue";
2
- import { throttle as p } from "./index274.js";
1
+ import { defineComponent as V, mergeModels as h, ref as k, useModel as $, createBlock as y, openBlock as B, unref as n, normalizeClass as D, withCtx as d, createElementVNode as u, createCommentVNode as O, renderSlot as C, normalizeProps as P, guardReactiveProps as z } from "vue";
2
+ import { throttle as m } from "./index269.js";
3
3
  import { useId as F } from "./index8.js";
4
- import { useLocale as N } from "./index231.js";
5
- import { wait as H } from "./index135.js";
6
- import I from "./index13.js";
4
+ import { useLocale as N } from "./index224.js";
5
+ import { useUntil as U } from "./index248.js";
6
+ import H from "./index13.js";
7
7
  /* empty css */
8
- import R from "./index272.js";
8
+ import I from "./index250.js";
9
9
  /* empty css */
10
10
  const W = /* @__PURE__ */ V({
11
11
  __name: "BbTooltip",
@@ -28,33 +28,33 @@ const W = /* @__PURE__ */ V({
28
28
  modelModifiers: {}
29
29
  }),
30
30
  emits: ["update:modelValue"],
31
- setup(f) {
32
- const a = f, { t: C } = N(), c = `bb_${a.id ?? F().id.value}`, r = i(), v = i(!0), t = $(f, "modelValue");
33
- let s;
31
+ setup(p) {
32
+ const a = p, { t: L } = N(), c = `bb_${a.id ?? F().id.value}`, s = k(), f = k(!0), o = $(p, "modelValue"), v = U(o);
33
+ let i;
34
34
  const b = () => {
35
- t.value || a.disabled || (clearTimeout(s), document.addEventListener("mousemove", w, { passive: !0 }), s = setTimeout(() => {
36
- T(), document.addEventListener("keydown", g, { passive: !0 });
35
+ o.value || a.disabled || (clearTimeout(i), document.addEventListener("mousemove", g, { passive: !0 }), i = setTimeout(() => {
36
+ T(), document.addEventListener("keydown", w, { passive: !0 });
37
37
  }, a.timeout));
38
- }, L = b, w = p((e) => {
39
- const o = e.target;
40
- if (o && o instanceof HTMLElement) {
41
- let l = !0;
42
- r.value && r.value.$el.contains(o) && (l = !1), l && n();
38
+ }, E = b, g = m((e) => {
39
+ const t = e.target;
40
+ if (t && t instanceof HTMLElement) {
41
+ let r = !0;
42
+ s.value && s.value.$el.contains(t) && (r = !1), r && l();
43
43
  }
44
- }, a.transitionDuration), g = (e) => {
45
- t.value && e.key === "Escape" && n();
46
- }, E = () => {
47
- v.value = !1, n();
48
- }, M = i(!1), T = p(async () => {
49
- v.value && (M.value = !0, await H(50), t.value = !0);
50
- }, a.transitionDuration), n = p(async () => {
51
- clearTimeout(s), document.removeEventListener("mousemove", w), document.removeEventListener("keydown", g), t.value = !1;
44
+ }, a.transitionDuration), w = (e) => {
45
+ o.value && e.key === "Escape" && l();
46
+ }, M = () => {
47
+ f.value = !1, l();
48
+ }, T = m(async () => {
49
+ f.value && (o.value = !0);
50
+ }, a.transitionDuration), l = m(async () => {
51
+ clearTimeout(i), document.removeEventListener("mousemove", g), document.removeEventListener("keydown", w), o.value = !1;
52
52
  }, a.transitionDuration);
53
- return (e, o) => (y(), k(R, {
53
+ return (e, t) => (B(), y(I, {
54
54
  ref_key: "wrapper",
55
- ref: r,
56
- modelValue: t.value,
57
- "onUpdate:modelValue": o[0] || (o[0] = (l) => t.value = l),
55
+ ref: s,
56
+ modelValue: o.value,
57
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => o.value = r),
58
58
  "arrow-padding": e.arrowPadding,
59
59
  block: e.block,
60
60
  class: D(["bb-tooltip", {
@@ -63,19 +63,20 @@ const W = /* @__PURE__ */ V({
63
63
  offset: e.offset,
64
64
  padding: e.padding,
65
65
  placement: e.placement,
66
+ "render-content": n(v),
66
67
  "transition-duration": e.transitionDuration
67
68
  }, {
68
69
  activator: d(() => [
69
- B(e.$slots, "activator", P(z({
70
+ C(e.$slots, "activator", P(z({
70
71
  props: {
71
- "aria-describedby": c,
72
+ "aria-describedby": n(v) ? c : void 0,
72
73
  onMouseenter: b,
73
- onFocus: m(L),
74
- onBlur: m(n),
74
+ onFocus: n(E),
75
+ onBlur: n(l),
75
76
  disabled: e.disabled
76
77
  },
77
78
  disabled: e.disabled,
78
- open: t.value,
79
+ open: o.value,
79
80
  placement: e.placement
80
81
  })))
81
82
  ]),
@@ -84,14 +85,14 @@ const W = /* @__PURE__ */ V({
84
85
  id: c,
85
86
  class: "bb-tooltip__content"
86
87
  }, [
87
- e.showClose ? (y(), k(I, {
88
+ e.showClose ? (B(), y(H, {
88
89
  key: 0,
89
- "aria-label": m(C)("common.closeLabel").value,
90
+ "aria-label": n(L)("common.closeLabel").value,
90
91
  class: "bb-tooltip__close",
91
92
  tabindex: "-1",
92
- onClick: E
93
+ onClick: M
93
94
  }, {
94
- default: d(() => o[1] || (o[1] = [
95
+ default: d(() => t[1] || (t[1] = [
95
96
  u("svg", {
96
97
  fill: "none",
97
98
  viewBox: "0 0 24 24",
@@ -107,11 +108,11 @@ const W = /* @__PURE__ */ V({
107
108
  ])),
108
109
  _: 1
109
110
  }, 8, ["aria-label"])) : O("", !0),
110
- B(e.$slots, "default")
111
+ C(e.$slots, "default")
111
112
  ])
112
113
  ]),
113
114
  _: 3
114
- }, 8, ["modelValue", "arrow-padding", "block", "class", "offset", "padding", "placement", "transition-duration"]));
115
+ }, 8, ["modelValue", "arrow-padding", "block", "class", "offset", "padding", "placement", "render-content", "transition-duration"]));
115
116
  }
116
117
  });
117
118
  export {
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index280.js";
2
+ import { flattenTree as T } from "./index277.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/index139.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index282.js";
2
- import { isPlainObject as c } from "./index283.js";
1
+ import { isArray as p } from "./index320.js";
2
+ import { isPlainObject as c } from "./index321.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,19 +1,18 @@
1
- import { defineComponent as H, ref as u, computed as D, createElementBlock as E, openBlock as I, Fragment as M, createVNode as p, normalizeClass as _, withCtx as n, unref as s, withDirectives as F, createElementVNode as c, mergeProps as T, renderSlot as r, withModifiers as q, normalizeStyle as L, nextTick as N } from "vue";
2
- import { isHex as O } from "./index256.js";
3
- import { isNotNil as z } from "./index140.js";
4
- import { useFocusTrap as S } from "./index251.js";
5
- import { useId as A } from "./index8.js";
6
- import { vMaska as K } from "./index252.js";
7
- import P from "./index253.js";
1
+ import { defineComponent as I, ref as u, computed as L, createBlock as c, openBlock as m, normalizeClass as M, withCtx as t, createVNode as b, unref as i, createCommentVNode as _, withDirectives as N, createElementVNode as d, mergeProps as q, renderSlot as r, withModifiers as z, normalizeStyle as U } from "vue";
2
+ import { isHex as F } from "./index253.js";
3
+ import { isNotNil as S } from "./index140.js";
4
+ import { useId as T } from "./index8.js";
5
+ import { useLocale as A } from "./index224.js";
6
+ import { useUntil as K } from "./index248.js";
7
+ import { vMaska as O } from "./index249.js";
8
+ import P from "./index254.js";
8
9
  /* empty css */
9
- import R from "./index257.js";
10
+ import j from "./index228.js";
10
11
  /* empty css */
11
- import U from "./index218.js";
12
+ import G from "./index230.js";
13
+ import J from "./index250.js";
12
14
  /* empty css */
13
- import j from "./index220.js";
14
- import { wait as G } from "./index135.js";
15
- import { useLocale as J } from "./index231.js";
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({
15
+ const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], R = ["aria-label"], W = { class: "bb-common-input-inner-container__suffix" }, de = /* @__PURE__ */ I({
17
16
  __name: "BaseColorInput",
18
17
  props: {
19
18
  "append:icon": {},
@@ -36,148 +35,137 @@ const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
36
35
  transitionDuration: { default: 250 }
37
36
  },
38
37
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
39
- setup(y, { emit: v }) {
40
- const t = y, o = v, m = t.id ?? `bb_${A().id.value}`, b = u(null), d = u(null), { t: k } = J(), g = D(() => ({
38
+ setup(f, { emit: y }) {
39
+ const n = f, a = y, k = u(
40
+ null
41
+ ), v = n.id ?? `bb_${T().id.value}`, C = u(null), V = u(null), { t: g } = A(), h = L(() => ({
41
42
  "bb-base-color-input": !0,
42
- "bb-base-color-input--disabled": t.disabled,
43
- "bb-base-color-input--errors": t.hasErrors,
44
- "bb-base-color-input--loading": t.loading,
45
- "bb-base-color-input--readonly": t.readonly,
46
- "bb-base-color-input--compact": t.compact,
43
+ "bb-base-color-input--disabled": n.disabled,
44
+ "bb-base-color-input--errors": n.hasErrors,
45
+ "bb-base-color-input--loading": n.loading,
46
+ "bb-base-color-input--readonly": n.readonly,
47
+ "bb-base-color-input--compact": n.compact,
47
48
  "bb-base-color-input--active": l.value
48
- })), h = {
49
- onBlur: (e) => o("blur", e),
50
- onChange: (e) => o("change", e),
51
- onClick: (e) => o("click", e),
52
- onFocus: (e) => o("focus", e),
53
- onKeydown: (e) => o("keydown", e),
49
+ })), w = {
50
+ onBlur: (e) => a("blur", e),
51
+ onChange: (e) => a("change", e),
52
+ onClick: (e) => a("click", e),
53
+ onFocus: (e) => a("focus", e),
54
+ onKeydown: (e) => a("keydown", e),
54
55
  onInput: (e) => {
55
- o("input", e);
56
+ a("input", e);
56
57
  },
57
- onMousedown: (e) => o("mousedown", e),
58
- onMouseup: (e) => o("mouseup", e),
58
+ onMousedown: (e) => a("mousedown", e),
59
+ onMouseup: (e) => a("mouseup", e),
59
60
  onMaska: (e) => {
60
- const a = e.detail;
61
- O(a.masked) ? o("update:modelValue", a.masked) : a.masked === "" && o("update:modelValue", null);
61
+ const o = e.detail;
62
+ F(o.masked) ? a("update:modelValue", o.masked) : o.masked === "" && a("update:modelValue", null);
62
63
  }
63
- }, w = () => {
64
- V();
65
- }, C = {
64
+ }, $ = () => {
65
+ D();
66
+ }, B = {
66
67
  mask: "!#HHHHHH",
67
68
  tokens: {
68
69
  H: { pattern: /[0-9a-fA-F]/ }
69
70
  },
70
71
  eager: !0
71
- }, l = u(!1), V = async () => {
72
- $.value = !0, l.value = !0, await G(100), B();
73
- }, f = async () => {
74
- l.value = !1;
75
- }, $ = u(!1), { activate: B } = S(d, {
76
- /**
77
- * This traps all clicks outside so we are pressing
78
- * the trigger we just allow and process that in its
79
- * own click handler.
80
- * If we are pressing anything random on the page
81
- * close the popover and be done
82
- */
83
- clickOutsideDeactivates: (e) => {
84
- var i;
85
- const a = e.target;
86
- return a instanceof HTMLElement && (i = d.value) != null && i.$el.contains(a) || f(), !0;
87
- },
88
- escapeDeactivates: () => (N(async () => {
89
- await f();
90
- }), !0),
91
- returnFocusOnDeactivate: !0
92
- });
93
- return (e, a) => (I(), E(M, null, [
94
- p(j, {
95
- class: _(g.value)
96
- }, {
97
- "prepend-outer": n(() => [
98
- r(e.$slots, "prepend-outer")
99
- ]),
100
- "append-outer": n(() => [
101
- r(e.$slots, "append-outer")
102
- ]),
103
- default: n(() => [
104
- p(U, {
105
- ref_key: "innerContainer",
106
- ref: b,
107
- "append:icon": t["append:icon"],
108
- clearable: e.clearable && s(z)(e.modelValue),
109
- "prepend:icon": t["prepend:icon"],
110
- "onClick:clear": a[0] || (a[0] = (i) => e.$emit("update:modelValue", null))
111
- }, {
112
- prepend: n(() => [
113
- r(e.$slots, "prepend")
114
- ]),
115
- prefix: n(() => [
116
- r(e.$slots, "prefix")
117
- ]),
118
- append: n(() => [
119
- c("button", {
120
- ref: "indicator",
121
- "aria-label": s(k)("colorInput.paletteLabel").value,
122
- class: "bb-base-color-input__indicator",
123
- style: L({ backgroundColor: t.modelValue ?? void 0 }),
124
- type: "button",
125
- onClick: q(w, ["stop"])
126
- }, null, 12, W),
127
- r(e.$slots, "append", {}, () => [
128
- c("span", X, [
129
- r(e.$slots, "suffix")
130
- ])
131
- ])
132
- ]),
133
- default: n(() => [
134
- F(c("input", T(h, {
135
- id: s(m),
136
- "aria-describedby": e.ariaDescribedby,
137
- "aria-invalid": e.hasErrors ? !0 : void 0,
138
- autocomplete: e.autocomplete,
139
- autofocus: e.autofocus,
140
- class: "bb-base-color-input__input",
141
- disabled: e.disabled,
142
- name: e.name,
143
- placeholder: e.placeholder,
144
- readonly: e.readonly,
145
- required: e.required,
146
- size: "1",
147
- type: "text",
148
- value: e.modelValue
149
- }), null, 16, Q), [
150
- [s(K), C]
72
+ }, l = u(!1), H = K(l), p = (e) => {
73
+ const o = e.target;
74
+ o && o instanceof HTMLDialogElement && E();
75
+ }, D = async () => {
76
+ l.value = !0, document.addEventListener("click", p, { passive: !0 });
77
+ }, E = async () => {
78
+ l.value = !1, document.removeEventListener("click", p);
79
+ };
80
+ return (e, o) => (m(), c(G, {
81
+ ref_key: "wrapper",
82
+ ref: k,
83
+ class: M(h.value)
84
+ }, {
85
+ "prepend-outer": t(() => [
86
+ r(e.$slots, "prepend-outer")
87
+ ]),
88
+ "append-outer": t(() => [
89
+ r(e.$slots, "append-outer")
90
+ ]),
91
+ default: t(() => [
92
+ b(j, {
93
+ ref_key: "innerContainer",
94
+ ref: C,
95
+ "append:icon": n["append:icon"],
96
+ clearable: e.clearable && i(S)(e.modelValue),
97
+ "prepend:icon": n["prepend:icon"],
98
+ "onClick:clear": o[2] || (o[2] = (s) => e.$emit("update:modelValue", null))
99
+ }, {
100
+ prepend: t(() => [
101
+ r(e.$slots, "prepend")
102
+ ]),
103
+ prefix: t(() => [
104
+ r(e.$slots, "prefix")
105
+ ]),
106
+ append: t(() => [
107
+ d("button", {
108
+ ref: "indicator",
109
+ "aria-label": i(g)("colorInput.paletteLabel").value,
110
+ class: "bb-base-color-input__indicator",
111
+ style: U({ backgroundColor: n.modelValue ?? void 0 }),
112
+ type: "button",
113
+ onClick: z($, ["stop"])
114
+ }, null, 12, R),
115
+ r(e.$slots, "append", {}, () => [
116
+ d("span", W, [
117
+ r(e.$slots, "suffix")
151
118
  ])
152
- ]),
153
- _: 3
154
- }, 8, ["append:icon", "clearable", "prepend:icon"])
155
- ]),
156
- _: 3
157
- }, 8, ["class"]),
158
- p(P, {
159
- "base-class": "bb-base-color-input__pallette",
160
- "container-attributes": { id: s(m) },
161
- offset: 4,
162
- open: l.value,
163
- "teleport-target": e.teleportTarget,
164
- "transition-duration": e.transitionDuration,
165
- wrapper: b.value
166
- }, {
167
- default: n(() => [
168
- p(R, {
169
- ref_key: "pallette",
170
- ref: d,
171
- inert: !l.value,
172
- "model-value": e.modelValue,
173
- "onUpdate:modelValue": a[1] || (a[1] = (i) => o("update:modelValue", i))
174
- }, null, 8, ["inert", "model-value"])
175
- ]),
176
- _: 1
177
- }, 8, ["container-attributes", "open", "teleport-target", "transition-duration", "wrapper"])
178
- ], 64));
119
+ ])
120
+ ]),
121
+ default: t(() => [
122
+ i(H) ? (m(), c(J, {
123
+ key: 0,
124
+ modelValue: l.value,
125
+ "onUpdate:modelValue": o[1] || (o[1] = (s) => l.value = s),
126
+ block: !0,
127
+ class: "bb-base-color-input__pallette",
128
+ dialog: "",
129
+ offset: 4,
130
+ "transition-duration": e.transitionDuration
131
+ }, {
132
+ default: t(() => [
133
+ b(P, {
134
+ ref_key: "pallette",
135
+ ref: V,
136
+ inert: !l.value,
137
+ "model-value": e.modelValue,
138
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => a("update:modelValue", s))
139
+ }, null, 8, ["inert", "model-value"])
140
+ ]),
141
+ _: 1
142
+ }, 8, ["modelValue", "transition-duration"])) : _("", !0),
143
+ N(d("input", q(w, {
144
+ id: i(v),
145
+ "aria-describedby": e.ariaDescribedby,
146
+ "aria-invalid": e.hasErrors ? !0 : void 0,
147
+ autocomplete: e.autocomplete,
148
+ autofocus: e.autofocus,
149
+ class: "bb-base-color-input__input",
150
+ disabled: e.disabled,
151
+ name: e.name,
152
+ placeholder: e.placeholder,
153
+ readonly: e.readonly,
154
+ required: e.required,
155
+ size: "1",
156
+ type: "text",
157
+ value: e.modelValue
158
+ }), null, 16, Q), [
159
+ [i(O), B]
160
+ ])
161
+ ]),
162
+ _: 3
163
+ }, 8, ["append:icon", "clearable", "prepend:icon"])
164
+ ]),
165
+ _: 3
166
+ }, 8, ["class"]));
179
167
  }
180
168
  });
181
169
  export {
182
- ce as default
170
+ de as default
183
171
  };
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, createElementBlock as p, openBlock as h, normalizeProps as i, guardReactiveProps as f, createCommentVNode as I, createElementVNode as l, mergeProps as k, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index209.js";
3
- import { when as N } from "./index210.js";
4
- import { booleanishToBoolean as S } from "./index235.js";
2
+ import { isCssColor as y } from "./index227.js";
3
+ import { when as N } from "./index252.js";
4
+ import { booleanishToBoolean as S } from "./index225.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
1
  import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock 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 "./index260.js";
4
+ import K from "./index236.js";
5
5
  /* empty css */
6
- import { useItemsGetter as N } from "./index223.js";
7
- import { useIndexById as w } from "./index227.js";
8
- import { useBaseOptions as U } from "./index226.js";
9
- import { useCoherence as q } from "./index228.js";
10
- import { hash as J } from "./index229.js";
11
- import { useHashedWatcher as C } from "./index230.js";
12
- import { usePrefill as Q } from "./index224.js";
6
+ import { useItemsGetter as N } from "./index238.js";
7
+ import { useIndexById as w } from "./index240.js";
8
+ import { useBaseOptions as U } from "./index241.js";
9
+ import { useCoherence as q } from "./index242.js";
10
+ import { hash as J } from "./index216.js";
11
+ import { useHashedWatcher as C } from "./index243.js";
12
+ import { usePrefill as Q } from "./index239.js";
13
13
  const de = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
package/dist/index209.js CHANGED
@@ -1,4 +1,7 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ import { getDefaultExportFromCjs as r } from "./index302.js";
2
+ import { __require as o } from "./index278.js";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
2
5
  export {
3
- s as isCssColor
6
+ s as default
4
7
  };
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 "./index236.js";
9
- import G from "./index237.js";
10
- import J from "./index238.js";
11
- import K from "./index239.js";
12
- import Q from "./index240.js";
13
- import X from "./index241.js";
14
- import ee from "./index242.js";
15
- import { hash as M } from "./index229.js";
16
- import { last as ae } from "./index211.js";
17
- import { useLogger as te } from "./index243.js";
18
- import oe from "./index244.js";
19
- import le from "./index245.js";
20
- import re from "./index246.js";
21
- import B from "./index247.js";
22
- import se from "./index248.js";
23
- import { useLocale as de } from "./index231.js";
8
+ import s from "./index209.js";
9
+ import G from "./index210.js";
10
+ import J from "./index211.js";
11
+ import K from "./index212.js";
12
+ import Q from "./index213.js";
13
+ import X from "./index214.js";
14
+ import ee from "./index215.js";
15
+ import { hash as M } from "./index216.js";
16
+ import { last as ae } from "./index217.js";
17
+ import { useLogger as te } from "./index218.js";
18
+ import oe from "./index219.js";
19
+ import le from "./index220.js";
20
+ import re from "./index221.js";
21
+ import B from "./index222.js";
22
+ import se from "./index223.js";
23
+ import { useLocale as de } from "./index224.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",
package/dist/index210.js CHANGED
@@ -1,6 +1,7 @@
1
- import { curry as e } from "./index284.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ import { getDefaultExportFromCjs as r } from "./index302.js";
2
+ import { __require as e } from "./index280.js";
3
+ var t = e();
4
+ const m = /* @__PURE__ */ r(t);
3
5
  export {
4
- t as baseWhen,
5
- s as when
6
+ m as default
6
7
  };
package/dist/index211.js CHANGED
@@ -1,4 +1,7 @@
1
- const e = (t) => t[t.length - 1];
1
+ import { getDefaultExportFromCjs as r } from "./index302.js";
2
+ import { __require as e } from "./index282.js";
3
+ var o = e();
4
+ const m = /* @__PURE__ */ r(o);
2
5
  export {
3
- e as last
6
+ m as default
4
7
  };
package/dist/index212.js CHANGED
@@ -1,20 +1,7 @@
1
- import { isNil as c } from "./index264.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
- };
1
+ import { getDefaultExportFromCjs as r } from "./index302.js";
2
+ import { __require as t } from "./index284.js";
3
+ var o = t();
4
+ const a = /* @__PURE__ */ r(o);
18
5
  export {
19
- y as matchAnyKey
6
+ a as default
20
7
  };