bitboss-ui 2.1.32 → 2.1.34

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 (206) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +13 -12
  2. package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +2 -2
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +11 -6
  4. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +3 -2
  5. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +3 -2
  6. package/dist/components/BaseTag/BaseTag.vue.d.ts +11 -10
  7. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -2
  8. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +3 -2
  9. package/dist/components/BbButton/BbButton.vue.d.ts +5 -5
  10. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
  11. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
  12. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +30 -38
  13. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +8 -3
  14. package/dist/components/BbIcon/BbIcon.vue.d.ts +4 -3
  15. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -6
  16. package/dist/components/BbPopover/BbPopover.vue.d.ts +25 -32
  17. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -2
  18. package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
  19. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
  20. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
  21. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +26 -31
  22. package/dist/components/CommonInputInnerContainer.vue.d.ts +3 -2
  23. package/dist/components/{CommonPopover.vue.d.ts → CommonPopover2.vue.d.ts} +2 -7
  24. package/dist/composables/useCancelableFunction.d.ts +17 -0
  25. package/dist/composables/useToast.d.ts +4 -3
  26. package/dist/index.css +1 -1
  27. package/dist/index.d.ts +10 -0
  28. package/dist/index106.js +9 -9
  29. package/dist/index111.js +1 -1
  30. package/dist/index113.js +1 -1
  31. package/dist/index121.js +11 -11
  32. package/dist/index129.js +1 -1
  33. package/dist/index13.js +1 -1
  34. package/dist/index131.js +111 -93
  35. package/dist/index133.js +1 -1
  36. package/dist/index135.js +2 -2
  37. package/dist/index140.js +292 -250
  38. package/dist/index142.js +2 -2
  39. package/dist/index15.js +72 -74
  40. package/dist/index17.js +3 -3
  41. package/dist/index19.js +8 -8
  42. package/dist/index21.js +16 -16
  43. package/dist/index212.js +3 -3
  44. package/dist/index215.js +86 -4
  45. package/dist/index217.js +27 -9
  46. package/dist/index218.js +16 -19
  47. package/dist/index219.js +49 -195
  48. package/dist/index220.js +17 -0
  49. package/dist/index221.js +3 -117
  50. package/dist/index222.js +14 -0
  51. package/dist/index223.js +16 -34
  52. package/dist/index224.js +2 -86
  53. package/dist/index225.js +4 -0
  54. package/dist/index226.js +2 -29
  55. package/dist/index227.js +106 -17
  56. package/dist/index229.js +100 -15
  57. package/dist/index23.js +152 -152
  58. package/dist/index231.js +2 -12
  59. package/dist/index232.js +4 -16
  60. package/dist/index233.js +5 -2
  61. package/dist/index234.js +5 -2
  62. package/dist/index235.js +5 -2
  63. package/dist/index236.js +5 -5
  64. package/dist/index237.js +4 -4
  65. package/dist/index238.js +5 -5
  66. package/dist/index239.js +2 -5
  67. package/dist/index240.js +13 -5
  68. package/dist/index241.js +20 -5
  69. package/dist/index242.js +121 -5
  70. package/dist/index244.js +17 -7
  71. package/dist/index245.js +12 -250
  72. package/dist/index246.js +222 -45
  73. package/dist/index247.js +13 -44
  74. package/dist/index248.js +4 -5
  75. package/dist/index249.js +190 -53
  76. package/dist/index25.js +3 -3
  77. package/dist/index251.js +7 -3
  78. package/dist/index252.js +33 -12
  79. package/dist/index253.js +2 -106
  80. package/dist/index254.js +185 -0
  81. package/dist/index255.js +3 -100
  82. package/dist/index256.js +4 -0
  83. package/dist/index257.js +7 -2
  84. package/dist/index258.js +6 -182
  85. package/dist/index259.js +12 -6
  86. package/dist/index260.js +5 -2
  87. package/dist/index261.js +5 -2
  88. package/dist/index262.js +8 -7
  89. package/dist/index263.js +250 -7
  90. package/dist/index264.js +50 -16
  91. package/dist/index265.js +44 -12
  92. package/dist/index266.js +5 -6
  93. package/dist/index267.js +54 -223
  94. package/dist/index268.js +6 -5
  95. package/dist/index269.js +16 -10
  96. package/dist/index27.js +1 -1
  97. package/dist/index270.js +9 -3
  98. package/dist/index271.js +4 -9
  99. package/dist/index272.js +23 -23
  100. package/dist/index273.js +9 -3
  101. package/dist/index274.js +23 -9
  102. package/dist/index275.js +10 -6
  103. package/dist/index276.js +3 -16
  104. package/dist/index277.js +3 -9
  105. package/dist/index278.js +9 -8
  106. package/dist/index279.js +8 -33
  107. package/dist/index280.js +33 -28
  108. package/dist/index281.js +30 -0
  109. package/dist/index283.js +2 -5
  110. package/dist/index284.js +67 -8
  111. package/dist/index285.js +5 -2
  112. package/dist/index286.js +5 -5
  113. package/dist/index287.js +8 -3
  114. package/dist/index288.js +4 -3
  115. package/dist/index289.js +3 -7
  116. package/dist/index29.js +2 -2
  117. package/dist/index290.js +17 -11
  118. package/dist/index291.js +28 -2
  119. package/dist/index292.js +3 -4
  120. package/dist/index293.js +1 -1
  121. package/dist/index294.js +4 -17
  122. package/dist/index295.js +279 -27
  123. package/dist/index296.js +2 -4
  124. package/dist/index297.js +125 -5
  125. package/dist/index298.js +2 -280
  126. package/dist/index299.js +15 -2
  127. package/dist/index300.js +2 -16
  128. package/dist/index301.js +16 -2
  129. package/dist/index302.js +2 -16
  130. package/dist/index303.js +16 -2
  131. package/dist/index304.js +2 -19
  132. package/dist/index305.js +19 -2
  133. package/dist/index306.js +2 -15
  134. package/dist/index307.js +3 -2
  135. package/dist/index308.js +7 -19
  136. package/dist/index309.js +11 -2
  137. package/dist/index31.js +2 -2
  138. package/dist/index310.js +2 -27
  139. package/dist/index311.js +3 -2
  140. package/dist/index312.js +6 -2
  141. package/dist/index313.js +1 -1
  142. package/dist/index314.js +5 -2
  143. package/dist/index315.js +19 -2
  144. package/dist/index316.js +2 -22
  145. package/dist/index317.js +29 -0
  146. package/dist/index318.js +2 -3
  147. package/dist/index319.js +2 -3
  148. package/dist/index320.js +2 -6
  149. package/dist/index321.js +1 -1
  150. package/dist/index322.js +2 -125
  151. package/dist/index323.js +22 -2
  152. package/dist/index328.js +7 -0
  153. package/dist/index33.js +8 -8
  154. package/dist/index330.js +3 -2
  155. package/dist/index331.js +2 -8
  156. package/dist/index332.js +34 -5
  157. package/dist/index333.js +6 -8
  158. package/dist/index334.js +128 -57
  159. package/dist/index335.js +367 -56
  160. package/dist/index336.js +47 -8
  161. package/dist/index337.js +57 -128
  162. package/dist/index338.js +56 -367
  163. package/dist/index339.js +7 -6
  164. package/dist/index340.js +5 -18
  165. package/dist/index341.js +8 -228
  166. package/dist/index343.js +227 -46
  167. package/dist/index344.js +6 -92
  168. package/dist/index345.js +17 -127
  169. package/dist/index346.js +87 -430
  170. package/dist/index347.js +123 -121
  171. package/dist/index348.js +1 -1
  172. package/dist/index349.js +430 -44
  173. package/dist/index35.js +4 -4
  174. package/dist/index350.js +129 -0
  175. package/dist/index351.js +52 -0
  176. package/dist/index37.js +261 -271
  177. package/dist/index39.js +6 -6
  178. package/dist/index41.js +2 -2
  179. package/dist/index43.js +8 -8
  180. package/dist/index45.js +60 -62
  181. package/dist/index49.js +1 -1
  182. package/dist/index53.js +1 -1
  183. package/dist/index55.js +1 -1
  184. package/dist/index57.js +2 -2
  185. package/dist/index61.js +6 -6
  186. package/dist/index67.js +1 -1
  187. package/dist/index79.js +206 -182
  188. package/dist/index81.js +2 -2
  189. package/dist/index83.js +2 -2
  190. package/dist/index85.js +3 -3
  191. package/dist/index87.js +1 -1
  192. package/dist/index90.js +3 -3
  193. package/dist/index92.js +2 -2
  194. package/dist/index94.js +121 -117
  195. package/dist/types/Icon.d.ts +9 -0
  196. package/dist/utilities/functions/extractDomContainer.d.ts +1 -0
  197. package/dist/utilities/functions/parseWidthString.d.ts +6 -0
  198. package/package.json +1 -1
  199. package/dist/index216.js +0 -15
  200. package/dist/index228.js +0 -53
  201. package/dist/index230.js +0 -5
  202. package/dist/index243.js +0 -4
  203. package/dist/index250.js +0 -6
  204. package/dist/index282.js +0 -69
  205. package/dist/index324.js +0 -7
  206. package/dist/index329.js +0 -5
package/dist/index142.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index283.js";
2
- import { isPlainObject as i } from "./index284.js";
1
+ import { isArray as p } from "./index286.js";
2
+ import { isPlainObject as i } from "./index287.js";
3
3
  function f(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,17 @@
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 "./index215.js";
3
- import { isNotNil as S } from "./index143.js";
4
- import { useId as A } from "./index8.js";
5
- import { useLocale as K } from "./index216.js";
6
- import { useUntil as O } from "./index217.js";
7
- import { vMaska as P } from "./index218.js";
8
- import T from "./index219.js";
1
+ import { defineComponent as H, ref as s, computed as D, createBlock as E, openBlock as I, normalizeClass as L, withCtx as l, createVNode as d, unref as u, withDirectives as M, createElementVNode as p, mergeProps as _, renderSlot as r, withModifiers as q, normalizeStyle as N } from "vue";
2
+ import { isHex as z } from "./index248.js";
3
+ import { isNotNil as F } from "./index143.js";
4
+ import { useId as S } from "./index8.js";
5
+ import { useLocale as U } from "./index240.js";
6
+ import { vMaska as A } from "./index241.js";
7
+ import K from "./index249.js";
9
8
  /* empty css */
10
- import j from "./index135.js";
9
+ import O from "./index135.js";
11
10
  /* empty css */
12
- import G from "./index137.js";
13
- import J from "./index221.js";
11
+ import P from "./index137.js";
12
+ import T from "./index242.js";
14
13
  /* empty css */
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({
14
+ const j = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], G = ["aria-label"], J = { class: "bb-common-input-inner-container__suffix" }, re = /* @__PURE__ */ H({
16
15
  __name: "BaseColorInput",
17
16
  props: {
18
17
  "append:icon": {},
@@ -34,18 +33,18 @@ const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
34
33
  transitionDuration: { default: 250 }
35
34
  },
36
35
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
37
- setup(f, { emit: y }) {
38
- const n = f, a = y, k = u(
36
+ setup(b, { emit: f }) {
37
+ const n = b, a = f, y = s(
39
38
  null
40
- ), v = n.id ?? `bb_${A().id.value}`, C = u(null), V = u(null), { t: g } = K(), h = L(() => ({
39
+ ), v = n.id ?? `bb_${S().id.value}`, c = s(null), k = s(null), { t: V } = U(), C = D(() => ({
41
40
  "bb-base-color-input": !0,
42
41
  "bb-base-color-input--disabled": n.disabled,
43
42
  "bb-base-color-input--errors": n.hasErrors,
44
43
  "bb-base-color-input--loading": n.loading,
45
44
  "bb-base-color-input--readonly": n.readonly,
46
45
  "bb-base-color-input--compact": n.compact,
47
- "bb-base-color-input--active": l.value
48
- })), w = {
46
+ "bb-base-color-input--active": t.value
47
+ })), h = {
49
48
  onBlur: (e) => a("blur", e),
50
49
  onChange: (e) => a("change", e),
51
50
  onClick: (e) => a("click", e),
@@ -58,89 +57,68 @@ const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
58
57
  onMouseup: (e) => a("mouseup", e),
59
58
  onMaska: (e) => {
60
59
  const o = e.detail;
61
- F(o.masked) ? a("update:modelValue", o.masked) : o.masked === "" && a("update:modelValue", null);
60
+ z(o.masked) ? a("update:modelValue", o.masked) : o.masked === "" && a("update:modelValue", null);
62
61
  }
63
- }, $ = () => {
64
- D();
65
- }, B = {
62
+ }, g = () => {
63
+ $();
64
+ }, w = {
66
65
  mask: "!#HHHHHH",
67
66
  tokens: {
68
67
  H: { pattern: /[0-9a-fA-F]/ }
69
68
  },
70
69
  eager: !0
71
- }, l = u(!1), H = O(l), p = (e) => {
70
+ }, t = s(!1), m = (e) => {
72
71
  const o = e.target;
73
- o && o instanceof HTMLDialogElement && E();
74
- }, D = async () => {
75
- l.value = !0, document.addEventListener("click", p, { passive: !0 });
76
- }, E = async () => {
77
- l.value = !1, document.removeEventListener("click", p);
72
+ o && o instanceof HTMLDialogElement && B();
73
+ }, $ = async () => {
74
+ t.value = !0, document.addEventListener("click", m, { passive: !0 });
75
+ }, B = async () => {
76
+ t.value = !1, document.removeEventListener("click", m);
78
77
  };
79
- return (e, o) => (m(), c(G, {
78
+ return (e, o) => (I(), E(P, {
80
79
  ref_key: "wrapper",
81
- ref: k,
82
- class: M(h.value)
80
+ ref: y,
81
+ class: L(C.value)
83
82
  }, {
84
- "prepend-outer": t(() => [
83
+ "prepend-outer": l(() => [
85
84
  r(e.$slots, "prepend-outer")
86
85
  ]),
87
- "append-outer": t(() => [
86
+ "append-outer": l(() => [
88
87
  r(e.$slots, "append-outer")
89
88
  ]),
90
- default: t(() => [
91
- b(j, {
89
+ default: l(() => [
90
+ d(O, {
92
91
  ref_key: "innerContainer",
93
- ref: C,
92
+ ref: c,
94
93
  "append:icon": n["append:icon"],
95
- clearable: e.clearable && i(S)(e.modelValue),
94
+ clearable: e.clearable && u(F)(e.modelValue),
96
95
  "prepend:icon": n["prepend:icon"],
97
- "onClick:clear": o[2] || (o[2] = (s) => e.$emit("update:modelValue", null))
96
+ "onClick:clear": o[0] || (o[0] = (i) => e.$emit("update:modelValue", null))
98
97
  }, {
99
- prepend: t(() => [
98
+ prepend: l(() => [
100
99
  r(e.$slots, "prepend")
101
100
  ]),
102
- prefix: t(() => [
101
+ prefix: l(() => [
103
102
  r(e.$slots, "prefix")
104
103
  ]),
105
- append: t(() => [
106
- d("button", {
104
+ append: l(() => [
105
+ p("button", {
107
106
  ref: "indicator",
108
- "aria-label": i(g)("colorInput.paletteLabel").value,
107
+ "aria-label": u(V)("colorInput.paletteLabel").value,
109
108
  class: "bb-base-color-input__indicator",
110
- style: U({ backgroundColor: n.modelValue ?? void 0 }),
109
+ style: N({ backgroundColor: n.modelValue ?? void 0 }),
111
110
  type: "button",
112
- onClick: z($, ["stop"])
113
- }, null, 12, R),
111
+ onClick: q(g, ["stop"])
112
+ }, null, 12, G),
114
113
  r(e.$slots, "append", {}, () => [
115
- d("span", W, [
114
+ p("span", J, [
116
115
  r(e.$slots, "suffix")
117
116
  ])
118
117
  ])
119
118
  ]),
120
- default: t(() => [
121
- i(H) ? (m(), c(J, {
122
- key: 0,
123
- modelValue: l.value,
124
- "onUpdate:modelValue": o[1] || (o[1] = (s) => l.value = s),
125
- block: !0,
126
- class: "bb-base-color-input__pallette",
127
- dialog: "",
128
- offset: 4,
129
- "transition-duration": e.transitionDuration
130
- }, {
131
- default: t(() => [
132
- b(T, {
133
- ref_key: "pallette",
134
- ref: V,
135
- inert: !l.value,
136
- "model-value": e.modelValue,
137
- "onUpdate:modelValue": o[0] || (o[0] = (s) => a("update:modelValue", s))
138
- }, null, 8, ["inert", "model-value"])
139
- ]),
140
- _: 1
141
- }, 8, ["modelValue", "transition-duration"])) : _("", !0),
142
- N(d("input", q(w, {
143
- id: i(v),
119
+ default: l(() => [
120
+ M(p("input", _(h, {
121
+ id: u(v),
144
122
  "aria-describedby": e.ariaDescribedby,
145
123
  "aria-invalid": e.hasErrors ? !0 : void 0,
146
124
  autocomplete: e.autocomplete,
@@ -154,17 +132,37 @@ const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
154
132
  size: "1",
155
133
  type: "text",
156
134
  value: e.modelValue
157
- }), null, 16, Q), [
158
- [i(P), B]
135
+ }), null, 16, j), [
136
+ [u(A), w]
159
137
  ])
160
138
  ]),
161
139
  _: 3
162
- }, 8, ["append:icon", "clearable", "prepend:icon"])
140
+ }, 8, ["append:icon", "clearable", "prepend:icon"]),
141
+ d(T, {
142
+ modelValue: t.value,
143
+ "onUpdate:modelValue": o[2] || (o[2] = (i) => t.value = i),
144
+ anchor: c.value,
145
+ class: "bb-base-color-input__pallette",
146
+ dialog: "",
147
+ offset: 4,
148
+ "transition-duration": e.transitionDuration
149
+ }, {
150
+ default: l(() => [
151
+ d(K, {
152
+ ref_key: "pallette",
153
+ ref: k,
154
+ inert: !t.value,
155
+ "model-value": e.modelValue,
156
+ "onUpdate:modelValue": o[1] || (o[1] = (i) => a("update:modelValue", i))
157
+ }, null, 8, ["inert", "model-value"])
158
+ ]),
159
+ _: 1
160
+ }, 8, ["modelValue", "anchor", "transition-duration"])
163
161
  ]),
164
162
  _: 3
165
163
  }, 8, ["class"]));
166
164
  }
167
165
  });
168
166
  export {
169
- de as default
167
+ re as default
170
168
  };
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 "./index235.js";
3
- import { when as N } from "./index250.js";
4
- import { booleanishToBoolean as S } from "./index233.js";
2
+ import { isCssColor as y } from "./index224.js";
3
+ import { when as N } from "./index232.js";
4
+ import { booleanishToBoolean as S } from "./index253.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 "./index224.js";
4
+ import K from "./index215.js";
5
5
  /* empty css */
6
- import { useItemsGetter as N } from "./index226.js";
7
- import { useIndexById as w } from "./index227.js";
8
- import { useBaseOptions as U } from "./index228.js";
9
- import { useCoherence as q } from "./index229.js";
10
- import { hash as J } from "./index230.js";
11
- import { useHashedWatcher as C } from "./index231.js";
12
- import { usePrefill as Q } from "./index232.js";
6
+ import { useItemsGetter as N } from "./index217.js";
7
+ import { useIndexById as w } from "./index218.js";
8
+ import { useBaseOptions as U } from "./index219.js";
9
+ import { useCoherence as q } from "./index220.js";
10
+ import { hash as J } from "./index221.js";
11
+ import { useHashedWatcher as C } from "./index222.js";
12
+ import { usePrefill as Q } from "./index223.js";
13
13
  const de = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
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 "./index230.js";
16
- import { last as ae } from "./index243.js";
17
- import { useLogger as te } from "./index244.js";
18
- import oe from "./index245.js";
19
- import le from "./index246.js";
20
- import re from "./index247.js";
21
- import B from "./index248.js";
22
- import se from "./index249.js";
23
- import { useLocale as de } from "./index216.js";
8
+ import s from "./index233.js";
9
+ import G from "./index236.js";
10
+ import J from "./index237.js";
11
+ import K from "./index238.js";
12
+ import Q from "./index235.js";
13
+ import X from "./index260.js";
14
+ import ee from "./index261.js";
15
+ import { hash as M } from "./index221.js";
16
+ import { last as ae } from "./index226.js";
17
+ import { useLogger as te } from "./index262.js";
18
+ import oe from "./index263.js";
19
+ import le from "./index264.js";
20
+ import re from "./index265.js";
21
+ import B from "./index266.js";
22
+ import se from "./index267.js";
23
+ import { useLocale as de } from "./index240.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/index212.js CHANGED
@@ -1,6 +1,6 @@
1
- import { getCurrentScope as O, onScopeDispose as W, onMounted as S, nextTick as C, watch as F, isRef as P, getCurrentInstance as g, toValue as b, hasInjectionContext as k, inject as v } from "vue";
1
+ import { onMounted as O, nextTick as W, getCurrentScope as S, onScopeDispose as C, watch as F, getCurrentInstance as g, isRef as P, toValue as b, hasInjectionContext as k, inject as v } from "vue";
2
2
  function V(e) {
3
- return O() ? (W(e), !0) : !1;
3
+ return S() ? (C(e), !0) : !1;
4
4
  }
5
5
  const w = /* @__PURE__ */ new WeakMap(), E = (...e) => {
6
6
  var r;
@@ -89,7 +89,7 @@ function N(e, r, n = {}) {
89
89
  );
90
90
  }
91
91
  function K(e, r = !0, n) {
92
- L() ? S(e, n) : r ? e() : C(e);
92
+ L() ? O(e, n) : r ? e() : W(e);
93
93
  }
94
94
  function Q(e, r, n = {}) {
95
95
  const {
package/dist/index215.js CHANGED
@@ -1,6 +1,88 @@
1
- function x(e) {
2
- return /^#([A-Fa-f0-9]{6})$/.test(e);
3
- }
1
+ import { defineComponent as h, createElementBlock as n, openBlock as s, normalizeClass as r, createElementVNode as l, renderSlot as t, createCommentVNode as p, createTextVNode as o, toDisplayString as d, unref as b, Fragment as m, renderList as u } from "vue";
2
+ import { useLocale as g } from "./index240.js";
3
+ const k = { class: "bb-cr-container__container" }, y = {
4
+ key: 0,
5
+ class: "bb-cr-container__loading-container"
6
+ }, $ = {
7
+ key: 1,
8
+ class: "bb-cr-container__no-data-container"
9
+ }, C = /* @__PURE__ */ h({
10
+ __name: "OptionsContainer",
11
+ props: {
12
+ direction: {},
13
+ hasErrors: { type: Boolean },
14
+ hideLabel: { type: Boolean },
15
+ loadingText: {},
16
+ loading: { type: Boolean },
17
+ noDataText: {},
18
+ options: {}
19
+ },
20
+ setup(f) {
21
+ const { t: i } = g();
22
+ return (a, T) => (s(), n("span", {
23
+ ref: "container",
24
+ class: r(["bb-cr-container", {
25
+ "bb-cr-container--errors": a.hasErrors,
26
+ "bb-cr-container--horizontal": a.direction === "horizontal",
27
+ "bb-cr-container--vertical": a.direction === "vertical"
28
+ }])
29
+ }, [
30
+ l("span", k, [
31
+ t(a.$slots, "prepend"),
32
+ !a.options.length && a.loading ? (s(), n("span", y, [
33
+ t(a.$slots, "loading", {}, () => [
34
+ o(d(a.loadingText || b(i)("common.loadingText")), 1)
35
+ ])
36
+ ])) : a.options.length ? p("", !0) : (s(), n("span", $, [
37
+ t(a.$slots, "no-data", {}, () => [
38
+ o(d(a.noDataText || b(i)("common.noDataText")), 1)
39
+ ])
40
+ ])),
41
+ (s(!0), n(m, null, u(a.options, (e, c) => (s(), n(m, {
42
+ key: (e == null ? void 0 : e.valueHash) || c
43
+ }, [
44
+ t(a.$slots, "option:prepend", {
45
+ id: e.valueHash,
46
+ checked: !!e.selected,
47
+ disabled: !!e.disabled,
48
+ item: e.item,
49
+ text: e.text
50
+ }),
51
+ l("label", {
52
+ class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
53
+ }, [
54
+ t(a.$slots, "input", {
55
+ index: c,
56
+ option: e
57
+ }),
58
+ l("span", {
59
+ class: r({
60
+ "bb-cr-container-option__text": !0,
61
+ "sr-only": a.hideLabel
62
+ })
63
+ }, [
64
+ t(a.$slots, "label", {
65
+ checked: !!e.selected,
66
+ item: e.item,
67
+ text: e.text
68
+ }, () => [
69
+ o(d(e.text), 1)
70
+ ])
71
+ ], 2)
72
+ ], 2),
73
+ t(a.$slots, "option:append", {
74
+ id: e.valueHash,
75
+ checked: !!e.selected,
76
+ disabled: !!e.disabled,
77
+ item: e.item,
78
+ text: e.text
79
+ })
80
+ ], 64))), 128)),
81
+ t(a.$slots, "append")
82
+ ])
83
+ ], 2));
84
+ }
85
+ });
4
86
  export {
5
- x as isHex
87
+ C as default
6
88
  };
package/dist/index217.js CHANGED
@@ -1,13 +1,31 @@
1
- import { ref as a, watch as c, toValue as u } from "vue";
2
- const i = (e, { initialValue: o = !1, nextValue: r = !0 } = {}) => {
3
- const t = a(o), n = c(
4
- () => u(e),
5
- (s) => {
6
- s && (t.value = r, n());
1
+ import { ref as a, computed as s, unref as v } from "vue";
2
+ import { useDebounceFn as f } from "./index212.js";
3
+ const p = (u) => {
4
+ const e = a(0), r = s(() => v(u.items)), t = a([]), n = async (...l) => {
5
+ if (Array.isArray(r.value))
6
+ t.value = r.value;
7
+ else if (typeof r.value == "function") {
8
+ const i = ++e.value;
9
+ try {
10
+ const o = await r.value(...l);
11
+ if (i < e.value) {
12
+ e.value--;
13
+ return;
14
+ } else
15
+ t.value = o;
16
+ } catch (o) {
17
+ console.error(o);
18
+ }
19
+ e.value--;
7
20
  }
8
- );
9
- return t;
21
+ }, c = f(n, u.debounce || 0);
22
+ return {
23
+ getter: n,
24
+ debouncedGetter: c,
25
+ items: t,
26
+ loading: s(() => !!e.value)
27
+ };
10
28
  };
11
29
  export {
12
- i as useUntil
30
+ p as useItemsGetter
13
31
  };
package/dist/index218.js CHANGED
@@ -1,22 +1,19 @@
1
- import { MaskInput as r } from "./index258.js";
2
- const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
3
- if (a.arg == null || a.instance == null) return;
4
- const s = "setup" in a.instance.$.type;
5
- a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
6
- }, k = (a, n) => {
7
- var s;
8
- const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
9
- if (t == null || (t == null ? void 0 : t.type) === "file") return;
10
- let e = {};
11
- if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
12
- const l = (o) => {
13
- const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
14
- p(n, i);
15
- };
16
- e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
17
- }
18
- u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
1
+ import { computed as i, unref as m } from "vue";
2
+ import { hash as s } from "./index221.js";
3
+ const p = ({ items: a, key: r }) => {
4
+ const n = i(() => {
5
+ const t = {}, c = new Array().concat(m(a));
6
+ for (let e = 0; e < c.length; e++) {
7
+ const o = c[e], u = r ? String(o[r]) : s(o);
8
+ t[u] = o;
9
+ }
10
+ return t;
11
+ });
12
+ return {
13
+ data: n,
14
+ get: (t) => r ? n.value[String(t[r])] : n.value[s(t)]
15
+ };
19
16
  };
20
17
  export {
21
- k as vMaska
18
+ p as useIndexById
22
19
  };