bitboss-ui 2.1.31 → 2.1.33

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 (269) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +10 -30
  2. package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +2 -2
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +8 -24
  4. package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -24
  5. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +27 -36
  6. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +5 -1
  7. package/dist/components/BbPopover/BbPopover.vue.d.ts +25 -32
  8. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +26 -31
  9. package/dist/components/CommonInputInnerContainer.vue.d.ts +3 -3
  10. package/dist/components/{CommonPopover.vue.d.ts → CommonPopover2.vue.d.ts} +2 -7
  11. package/dist/composables/useCancelableFunction.d.ts +17 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index.d.ts +3 -0
  14. package/dist/index.js +143 -138
  15. package/dist/index106.js +9 -9
  16. package/dist/index11.js +2 -2
  17. package/dist/index111.js +1 -1
  18. package/dist/index119.js +4 -4
  19. package/dist/index12.js +6 -6
  20. package/dist/index121.js +12 -12
  21. package/dist/index129.js +1 -1
  22. package/dist/index13.js +1 -1
  23. package/dist/index131.js +111 -93
  24. package/dist/index133.js +1 -1
  25. package/dist/index135.js +69 -2
  26. package/dist/index137.js +13 -377
  27. package/dist/index138.js +2 -9
  28. package/dist/index139.js +11 -25
  29. package/dist/index140.js +419 -2
  30. package/dist/index141.js +9 -5
  31. package/dist/index142.js +23 -7
  32. package/dist/index143.js +2 -6
  33. package/dist/index144.js +5 -3
  34. package/dist/index145.js +9 -3
  35. package/dist/index146.js +6 -3
  36. package/dist/index147.js +1 -1
  37. package/dist/index148.js +1 -1
  38. package/dist/index149.js +1 -1
  39. package/dist/index15.js +72 -74
  40. package/dist/index150.js +1 -1
  41. package/dist/index151.js +1 -1
  42. package/dist/index152.js +1 -1
  43. package/dist/index153.js +1 -1
  44. package/dist/index154.js +1 -1
  45. package/dist/index155.js +1 -1
  46. package/dist/index156.js +1 -1
  47. package/dist/index157.js +1 -1
  48. package/dist/index158.js +1 -1
  49. package/dist/index159.js +1 -1
  50. package/dist/index160.js +1 -1
  51. package/dist/index161.js +1 -1
  52. package/dist/index162.js +1 -1
  53. package/dist/index163.js +1 -1
  54. package/dist/index164.js +1 -1
  55. package/dist/index165.js +1 -1
  56. package/dist/index166.js +1 -1
  57. package/dist/index167.js +1 -1
  58. package/dist/index168.js +1 -1
  59. package/dist/index169.js +1 -1
  60. package/dist/index17.js +2 -2
  61. package/dist/index170.js +1 -1
  62. package/dist/index171.js +1 -1
  63. package/dist/index172.js +1 -1
  64. package/dist/index173.js +1 -1
  65. package/dist/index174.js +1 -1
  66. package/dist/index175.js +1 -1
  67. package/dist/index176.js +1 -1
  68. package/dist/index177.js +1 -1
  69. package/dist/index178.js +1 -1
  70. package/dist/index179.js +1 -1
  71. package/dist/index180.js +1 -1
  72. package/dist/index181.js +3 -2
  73. package/dist/index182.js +1 -1
  74. package/dist/index183.js +1 -1
  75. package/dist/index184.js +2 -3
  76. package/dist/index185.js +1 -1
  77. package/dist/index186.js +1 -1
  78. package/dist/index187.js +1 -1
  79. package/dist/index188.js +2 -2
  80. package/dist/index189.js +2 -2
  81. package/dist/index19.js +8 -8
  82. package/dist/index190.js +2 -2
  83. package/dist/index191.js +3 -2
  84. package/dist/index192.js +1 -1
  85. package/dist/index193.js +1 -1
  86. package/dist/index194.js +2 -3
  87. package/dist/index195.js +1 -1
  88. package/dist/index196.js +1 -1
  89. package/dist/index197.js +1 -1
  90. package/dist/index198.js +1 -1
  91. package/dist/index199.js +1 -1
  92. package/dist/index200.js +1 -1
  93. package/dist/index201.js +1 -1
  94. package/dist/index202.js +1 -1
  95. package/dist/index203.js +1 -1
  96. package/dist/index204.js +1 -1
  97. package/dist/index205.js +1 -1
  98. package/dist/index206.js +3 -138
  99. package/dist/index207.js +3 -2
  100. package/dist/index208.js +3 -2
  101. package/dist/index209.js +3 -34
  102. package/dist/index21.js +16 -16
  103. package/dist/index211.js +7 -13
  104. package/dist/index212.js +136 -9
  105. package/dist/index213.js +2 -5
  106. package/dist/index214.js +2 -5
  107. package/dist/index215.js +13 -5
  108. package/dist/index216.js +13 -5
  109. package/dist/index217.js +13 -5
  110. package/dist/index218.js +3 -5
  111. package/dist/index219.js +86 -2
  112. package/dist/index221.js +29 -2
  113. package/dist/index222.js +16 -19
  114. package/dist/index223.js +50 -68
  115. package/dist/index224.js +17 -0
  116. package/dist/index225.js +3 -13
  117. package/dist/index226.js +12 -117
  118. package/dist/index227.js +18 -0
  119. package/dist/index229.js +2 -4
  120. package/dist/index23.js +153 -153
  121. package/dist/index230.js +6 -2
  122. package/dist/index231.js +15 -50
  123. package/dist/index232.js +8 -15
  124. package/dist/index233.js +3 -106
  125. package/dist/index234.js +11 -0
  126. package/dist/index235.js +117 -96
  127. package/dist/index237.js +23 -4
  128. package/dist/index238.js +4 -197
  129. package/dist/index239.js +25 -0
  130. package/dist/index240.js +5 -86
  131. package/dist/index241.js +7 -0
  132. package/dist/index242.js +5 -29
  133. package/dist/index243.js +5 -15
  134. package/dist/index244.js +5 -3
  135. package/dist/index245.js +5 -12
  136. package/dist/index246.js +5 -16
  137. package/dist/index247.js +2 -183
  138. package/dist/index248.js +8 -3
  139. package/dist/index249.js +250 -2
  140. package/dist/index25.js +4 -4
  141. package/dist/index250.js +52 -2
  142. package/dist/index251.js +44 -7
  143. package/dist/index252.js +5 -7
  144. package/dist/index253.js +60 -5
  145. package/dist/index254.js +106 -5
  146. package/dist/index256.js +95 -245
  147. package/dist/index258.js +2 -44
  148. package/dist/index259.js +4 -5
  149. package/dist/index260.js +5 -60
  150. package/dist/index261.js +2 -7
  151. package/dist/index262.js +18 -16
  152. package/dist/index263.js +2 -12
  153. package/dist/index264.js +7 -6
  154. package/dist/index265.js +7 -229
  155. package/dist/index266.js +34 -10
  156. package/dist/index267.js +2 -3
  157. package/dist/index268.js +18 -6
  158. package/dist/index269.js +12 -16
  159. package/dist/index27.js +2 -2
  160. package/dist/index270.js +229 -3
  161. package/dist/index271.js +3 -9
  162. package/dist/index272.js +4 -23
  163. package/dist/index273.js +197 -9
  164. package/dist/index275.js +183 -8
  165. package/dist/index276.js +7 -67
  166. package/dist/index277.js +9 -5
  167. package/dist/index278.js +9 -5
  168. package/dist/index279.js +8 -8
  169. package/dist/index280.js +33 -2
  170. package/dist/index281.js +28 -2
  171. package/dist/index283.js +4 -0
  172. package/dist/index284.js +5 -7
  173. package/dist/index285.js +67 -3
  174. package/dist/index286.js +7 -4
  175. package/dist/index287.js +11 -7
  176. package/dist/index288.js +5 -11
  177. package/dist/index289.js +1 -1
  178. package/dist/index29.js +6 -6
  179. package/dist/index290.js +17 -3
  180. package/dist/index291.js +25 -14
  181. package/dist/index292.js +718 -3
  182. package/dist/index293.js +366 -3
  183. package/dist/index294.js +58 -3
  184. package/dist/index295.js +3 -28
  185. package/dist/index298.js +12 -121
  186. package/dist/index299.js +2 -2
  187. package/dist/index300.js +11 -10
  188. package/dist/index302.js +15 -12
  189. package/dist/index304.js +10 -11
  190. package/dist/index306.js +17 -17
  191. package/dist/index308.js +27 -5
  192. package/dist/index309.js +2 -6
  193. package/dist/index31.js +1 -1
  194. package/dist/index310.js +2 -19
  195. package/dist/index311.js +2 -2
  196. package/dist/index312.js +2 -27
  197. package/dist/index313.js +2 -2
  198. package/dist/index314.js +21 -1
  199. package/dist/index316.js +3 -2
  200. package/dist/index317.js +3 -2
  201. package/dist/index318.js +6 -22
  202. package/dist/index320.js +125 -2
  203. package/dist/index321.js +2 -718
  204. package/dist/index322.js +2 -366
  205. package/dist/index324.js +3 -5
  206. package/dist/index325.js +5 -2
  207. package/dist/index326.js +7 -32
  208. package/dist/index327.js +2 -28
  209. package/dist/index328.js +7 -0
  210. package/dist/index329.js +3 -8
  211. package/dist/index33.js +8 -8
  212. package/dist/index330.js +3 -5
  213. package/dist/index331.js +92 -7
  214. package/dist/index332.js +35 -8
  215. package/dist/index333.js +6 -129
  216. package/dist/index334.js +113 -353
  217. package/dist/index335.js +367 -56
  218. package/dist/index336.js +33 -33
  219. package/dist/index337.js +57 -227
  220. package/dist/index338.js +2 -7
  221. package/dist/index339.js +6 -6
  222. package/dist/index340.js +6 -18
  223. package/dist/index341.js +17 -45
  224. package/dist/index342.js +46 -92
  225. package/dist/index343.js +10 -0
  226. package/dist/index344.js +6 -3
  227. package/dist/index345.js +7 -128
  228. package/dist/index346.js +223 -431
  229. package/dist/index347.js +123 -121
  230. package/dist/index348.js +421 -473
  231. package/dist/index349.js +125 -48
  232. package/dist/index35.js +4 -4
  233. package/dist/index350.js +490 -0
  234. package/dist/index351.js +52 -0
  235. package/dist/index37.js +263 -271
  236. package/dist/index39.js +7 -7
  237. package/dist/index41.js +1 -1
  238. package/dist/index43.js +8 -8
  239. package/dist/index45.js +15 -15
  240. package/dist/index47.js +3 -3
  241. package/dist/index49.js +4 -4
  242. package/dist/index53.js +1 -1
  243. package/dist/index55.js +1 -1
  244. package/dist/index57.js +1 -1
  245. package/dist/index6.js +1 -1
  246. package/dist/index61.js +3 -3
  247. package/dist/index67.js +1 -1
  248. package/dist/index7.js +2 -2
  249. package/dist/index79.js +206 -182
  250. package/dist/index81.js +2 -2
  251. package/dist/index83.js +2 -2
  252. package/dist/index87.js +1 -1
  253. package/dist/index9.js +1 -1
  254. package/dist/index90.js +4 -4
  255. package/dist/index92.js +3 -3
  256. package/dist/index94.js +121 -117
  257. package/dist/index96.js +2 -2
  258. package/dist/utilities/functions/extractDomContainer.d.ts +1 -0
  259. package/dist/utilities/functions/parseWidthString.d.ts +6 -0
  260. package/package.json +2 -2
  261. package/dist/index136.js +0 -13
  262. package/dist/index210.js +0 -15
  263. package/dist/index220.js +0 -4
  264. package/dist/index255.js +0 -10
  265. package/dist/index257.js +0 -54
  266. package/dist/index274.js +0 -11
  267. package/dist/index315.js +0 -4
  268. package/dist/index323.js +0 -60
  269. /package/dist/{index282.js → index319.js} +0 -0
package/dist/index23.js CHANGED
@@ -1,27 +1,26 @@
1
- import { defineComponent as K, watchEffect as Q, ref as i, computed as g, watch as D, createBlock as C, openBlock as Y, normalizeClass as w, withCtx as s, createElementVNode as n, createVNode as B, createCommentVNode as X, unref as r, withDirectives as x, mergeProps as S, withModifiers as ee, toDisplayString as E, renderSlot as c } from "vue";
2
- import { _config as te } from "./index4.js";
3
- import o from "./index213.js";
4
- import ae from "./index214.js";
5
- import oe from "./index215.js";
6
- import ne from "./index216.js";
7
- import re from "./index217.js";
8
- import le from "./index218.js";
9
- import { identity as ie } from "./index219.js";
10
- import { isEmpty as se } from "./index220.js";
11
- import { last as de } from "./index221.js";
12
- import { useId as ue } from "./index8.js";
13
- import { useLocale as pe } from "./index211.js";
14
- import { useMobile as ce } from "./index9.js";
15
- import { useUntil as me } from "./index212.js";
16
- import { vMaska as fe } from "./index222.js";
17
- import be from "./index21.js";
1
+ import { defineComponent as Z, watchEffect as G, ref as r, computed as k, watch as C, createBlock as J, openBlock as K, normalizeClass as w, withCtx as i, createElementVNode as o, createVNode as y, unref as l, withDirectives as Q, mergeProps as B, withModifiers as X, toDisplayString as S, renderSlot as c } from "vue";
2
+ import { _config as x } from "./index4.js";
3
+ import n from "./index240.js";
4
+ import ee from "./index260.js";
5
+ import ae from "./index244.js";
6
+ import te from "./index241.js";
7
+ import ne from "./index242.js";
8
+ import oe from "./index243.js";
9
+ import { identity as re } from "./index261.js";
10
+ import { isEmpty as ie } from "./index258.js";
11
+ import { last as le } from "./index247.js";
12
+ import { useId as se } from "./index8.js";
13
+ import { useLocale as de } from "./index216.js";
14
+ import { useMobile as ue } from "./index9.js";
15
+ import { vMaska as pe } from "./index262.js";
16
+ import ce from "./index21.js";
18
17
  /* empty css */
19
- import ke from "./index223.js";
18
+ import me from "./index135.js";
20
19
  /* empty css */
21
- import ge from "./index225.js";
22
- import ye from "./index226.js";
20
+ import fe from "./index137.js";
21
+ import be from "./index235.js";
23
22
  /* empty css */
24
- const ve = { class: "bb-base-date-picker-input__inner-wrapper" }, Ve = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], he = ["aria-label", "disabled"], Me = ["id"], De = ["inert"], Ze = /* @__PURE__ */ K({
23
+ const ge = { class: "bb-base-date-picker-input__inner-wrapper" }, ke = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], ve = ["aria-label", "disabled"], ye = ["id"], he = ["inert"], Te = /* @__PURE__ */ Z({
25
24
  __name: "BaseDatePickerInput",
26
25
  props: {
27
26
  allowWriting: { type: [Boolean, String], default: !0 },
@@ -44,225 +43,226 @@ const ve = { class: "bb-base-date-picker-input__inner-wrapper" }, Ve = ["id", "a
44
43
  range: { type: Boolean },
45
44
  readonly: { type: Boolean },
46
45
  required: { type: Boolean },
47
- selectable: {}
46
+ selectable: {},
47
+ transitionDuration: {}
48
48
  },
49
49
  emits: ["active", "error", "focus", "inactive", "update:modelValue"],
50
- setup(I, { emit: _ }) {
51
- const $ = { it: le, en: oe };
52
- o.extend(ae), o.extend(ne), o.extend(re), Q(() => {
53
- o.locale($[te.locale]);
50
+ setup(E, { emit: I }) {
51
+ const _ = { it: oe, en: ae };
52
+ n.extend(ee), n.extend(te), n.extend(ne), G(() => {
53
+ n.locale(_[x.locale]);
54
54
  });
55
- const t = I, d = _, { t: u } = pe(), v = i(null), y = i(null), L = i(null), O = i(null), m = i(null), V = i(), f = t.id || `bdpi-${ue().id.value}`, { isMobile: P } = ce(), F = g(
56
- () => t.allowWriting === "not-mobile" && P.value ? "none" : "numeric"
57
- ), j = g(() => ({
55
+ const a = E, s = I, { t: u } = de(), h = r(null), v = r(null), V = r(null), $ = r(null), m = r(null), M = r(), f = a.id || `bdpi-${se().id.value}`, { isMobile: L } = ue(), O = k(
56
+ () => a.allowWriting === "not-mobile" && L.value ? "none" : "numeric"
57
+ ), P = k(() => ({
58
58
  "bb-base-date-picker-input": !0,
59
59
  "bb-base-date-picker-input--active": b.value,
60
- "bb-base-date-picker-input--errors": t.hasErrors,
61
- "bb-base-date-picker-input--loading": t.loading,
62
- "bb-base-date-picker-input--readonly": t.readonly,
63
- "bb-base-date-picker-input--disabled": t.disabled,
64
- "bb-base-date-picker-input--compact": t.compact
65
- })), A = {
60
+ "bb-base-date-picker-input--errors": a.hasErrors,
61
+ "bb-base-date-picker-input--loading": a.loading,
62
+ "bb-base-date-picker-input--readonly": a.readonly,
63
+ "bb-base-date-picker-input--disabled": a.disabled,
64
+ "bb-base-date-picker-input--compact": a.compact
65
+ })), F = {
66
66
  onInput: (e) => {
67
- if (!t.range && e.target instanceof HTMLInputElement)
67
+ if (!a.range && e.target instanceof HTMLInputElement)
68
68
  if (m.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
69
- const a = o(e.target.value, "DD/MM/YYYY");
70
- Z(a) ? (e.target.value = "", d("update:modelValue", null), d("error", "invalid_date_typed")) : d("update:modelValue", a.toISOString());
71
- } else e.target.value === "" && d("update:modelValue", null);
69
+ const t = n(e.target.value, "DD/MM/YYYY");
70
+ z(t) ? (e.target.value = "", s("update:modelValue", null), s("error", "invalid_date_typed")) : s("update:modelValue", t.toISOString());
71
+ } else e.target.value === "" && s("update:modelValue", null);
72
72
  }
73
- }, b = i(!1), H = () => {
74
- b.value || (d("active"), b.value = !0, document.addEventListener("focusin", k), document.addEventListener("click", k));
75
- }, k = (e) => {
76
- var a, p;
77
- e.target instanceof HTMLElement && (a = y.value) != null && a.$el && !y.value.$el.contains(e.target) && !((p = v.value) != null && p.contains(e.target)) && (b.value = !1, d("inactive"), document.removeEventListener("focusin", k), document.removeEventListener("click", k));
78
- }, h = (e) => {
73
+ }, b = r(!1), j = () => {
74
+ b.value || (s("active"), b.value = !0, document.addEventListener("focusin", g), document.addEventListener("click", g));
75
+ }, g = (e) => {
76
+ var t, p;
77
+ e.target instanceof HTMLElement && (t = v.value) != null && t.$el && !v.value.$el.contains(e.target) && !((p = h.value) != null && p.contains(e.target)) && (b.value = !1, s("inactive"), document.removeEventListener("focusin", g), document.removeEventListener("click", g));
78
+ }, D = (e) => {
79
79
  if (e)
80
80
  if (Array.isArray(e)) {
81
- let a, p;
82
- return e.length && (a = e[0]), e.length > 1 && (p = de(e)), [a, p].filter(ie).map((J) => o(J).format("DD/MM/YYYY")).join(" - ");
81
+ let t, p;
82
+ return e.length && (t = e[0]), e.length > 1 && (p = le(e)), [t, p].filter(re).map((U) => n(U).format("DD/MM/YYYY")).join(" - ");
83
83
  } else
84
- return o(e).format("DD/MM/YYYY");
84
+ return n(e).format("DD/MM/YYYY");
85
85
  return null;
86
- }, W = g(() => m.value ? m.value : h(t.modelValue));
87
- D(
88
- () => t.modelValue,
86
+ }, A = k(() => m.value ? m.value : D(a.modelValue));
87
+ C(
88
+ () => a.modelValue,
89
89
  (e) => {
90
- m.value = h(e);
90
+ m.value = D(e);
91
91
  }
92
92
  );
93
- const l = i(!1), q = me(l), M = (e) => {
94
- const a = e.target;
95
- a && a instanceof HTMLDialogElement && (l.value = !1);
96
- }, R = async () => {
97
- t.disabled || t.readonly || (l.value = !0);
93
+ const d = r(!1), Y = (e) => {
94
+ const t = e.target;
95
+ t && t instanceof HTMLDialogElement && (d.value = !1);
96
+ }, H = async () => {
97
+ a.disabled || a.readonly || (d.value = !0);
98
98
  };
99
- D(l, (e) => {
100
- var a;
101
- e ? document.addEventListener("click", M, { passive: !0 }) : ((a = V.value) == null || a.resetStatus(), document.removeEventListener("click", M));
99
+ C(d, (e) => {
100
+ var t;
101
+ e ? document.addEventListener("click", Y, { passive: !0 }) : ((t = M.value) == null || t.resetStatus(), document.removeEventListener("click", Y));
102
102
  });
103
- const N = i(!t.allowWriting || t.range), T = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, U = {
103
+ const W = r(!a.allowWriting || a.range), q = (e) => a.range && Array.isArray(e) && e.length === 2 || !a.range && !!e, R = {
104
104
  "onUpdate:modelValue": (e) => {
105
- d("update:modelValue", e), T(e) && (N.value = !1, l.value = !1);
105
+ s("update:modelValue", e), q(e) && (W.value = !1, d.value = !1);
106
106
  }
107
- }, z = g(() => {
108
- if (t.range) {
109
- if (!t.modelValue || t.modelValue.length < 2)
107
+ }, T = k(() => {
108
+ if (a.range) {
109
+ if (!a.modelValue || a.modelValue.length < 2)
110
110
  return u("baseDatePickerInput.emptyRange").value;
111
- const e = o(t.modelValue[0]).format("D MMMM YYYY"), a = o(t.modelValue[1]).format("D MMMM YYYY");
112
- if (t.range && t.modelValue.length === 2)
113
- return u("baseDatePickerInput.changeSelectionRange", e, a).value;
114
- } else if (typeof t.modelValue == "string") {
115
- const e = o(t.modelValue).format("D MMMM YYYY");
111
+ const e = n(a.modelValue[0]).format("D MMMM YYYY"), t = n(a.modelValue[1]).format("D MMMM YYYY");
112
+ if (a.range && a.modelValue.length === 2)
113
+ return u("baseDatePickerInput.changeSelectionRange", e, t).value;
114
+ } else if (typeof a.modelValue == "string") {
115
+ const e = n(a.modelValue).format("D MMMM YYYY");
116
116
  return u("baseDatePickerInput.changeSelection", e).value;
117
117
  }
118
118
  return u("baseDatePickerInput.emptySelection").value;
119
- }), Z = (e) => {
120
- let a = !0;
121
- return t.min && a && (a = e.isSameOrAfter(o(t.min).startOf("day"))), t.max && a && (a = e.isSameOrBefore(o(t.max).startOf("day"))), typeof t.selectable == "function" && a && (a = t.selectable(e.toDate())), !a;
122
- }, G = () => {
119
+ }), z = (e) => {
120
+ let t = !0;
121
+ return a.min && t && (t = e.isSameOrAfter(n(a.min).startOf("day"))), a.max && t && (t = e.isSameOrBefore(n(a.max).startOf("day"))), typeof a.selectable == "function" && t && (t = a.selectable(e.toDate())), !t;
122
+ }, N = () => {
123
123
  let e = null;
124
- t.range && (e = []), d("update:modelValue", e);
124
+ a.range && (e = []), s("update:modelValue", e);
125
125
  };
126
- return (e, a) => (Y(), C(ge, {
126
+ return (e, t) => (K(), J(fe, {
127
127
  ref_key: "outerContainer",
128
- ref: y,
129
- class: w(j.value),
130
- onFocusin: H
128
+ ref: v,
129
+ class: w(P.value),
130
+ onFocusin: j
131
131
  }, {
132
- "prepend-outer": s(() => [
132
+ "prepend-outer": i(() => [
133
133
  c(e.$slots, "prepend-outer")
134
134
  ]),
135
- "append-outer": s(() => [
135
+ "append-outer": i(() => [
136
136
  c(e.$slots, "append-outer")
137
137
  ]),
138
- default: s(() => [
139
- n("div", ve, [
140
- B(ke, {
138
+ default: i(() => [
139
+ o("div", ge, [
140
+ y(me, {
141
141
  ref_key: "innerContainer",
142
- ref: L,
143
- "append:icon": t["append:icon"],
144
- clearable: t.clearable && !r(se)(e.modelValue),
145
- "prepend:icon": t["prepend:icon"],
146
- "onClick:clear": G
142
+ ref: V,
143
+ "append:icon": a["append:icon"],
144
+ clearable: a.clearable && !l(ie)(e.modelValue),
145
+ "prepend:icon": a["prepend:icon"],
146
+ "onClick:clear": N
147
147
  }, {
148
- prepend: s(() => [
148
+ prepend: i(() => [
149
149
  c(e.$slots, "prepend")
150
150
  ]),
151
- prefix: s(() => [
151
+ prefix: i(() => [
152
152
  c(e.$slots, "prefix")
153
153
  ]),
154
- append: s(() => [
154
+ append: i(() => [
155
155
  c(e.$slots, "append")
156
156
  ]),
157
- suffix: s(() => [
157
+ suffix: i(() => [
158
158
  c(e.$slots, "suffix")
159
159
  ]),
160
- default: s(() => [
161
- x(n("input", S({
162
- id: r(f),
160
+ default: i(() => [
161
+ Q(o("input", B({
162
+ id: l(f),
163
163
  ref_key: "input",
164
- ref: O,
165
- "aria-describedby": `bdpi-description_${r(f)}`,
164
+ ref: $,
165
+ "aria-describedby": `bdpi-description_${l(f)}`,
166
166
  autocomplete: e.autocomplete,
167
167
  autofocus: e.autofocus,
168
- "data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
168
+ "data-maska": a.range ? "##/##/#### - ##/##/####" : "##/##/####",
169
169
  disabled: e.disabled,
170
- inputmode: F.value,
170
+ inputmode: O.value,
171
171
  name: e.name,
172
172
  placeholder: e.placeholder,
173
173
  readonly: e.readonly || e.range || !e.allowWriting,
174
174
  required: e.required
175
- }, A, {
175
+ }, F, {
176
176
  size: "1",
177
177
  type: "text",
178
- value: W.value
179
- }), null, 16, Ve), [
180
- [r(fe)]
178
+ value: A.value
179
+ }), null, 16, ke), [
180
+ [l(pe)]
181
181
  ]),
182
- n("button", {
183
- "aria-label": z.value,
182
+ o("button", {
183
+ "aria-label": T.value,
184
184
  class: "bb-base-date-picker-input__calendar-btn",
185
185
  disabled: e.disabled || e.readonly,
186
186
  type: "button",
187
- onClick: ee(R, ["stop"])
188
- }, a[1] || (a[1] = [
189
- n("svg", {
187
+ onClick: X(H, ["stop"])
188
+ }, t[1] || (t[1] = [
189
+ o("svg", {
190
190
  fill: "none",
191
191
  viewBox: "0 0 16 16",
192
192
  xmlns: "http://www.w3.org/2000/svg"
193
193
  }, [
194
- n("path", {
194
+ o("path", {
195
195
  d: "M12.6667 2.66667H3.33333C2.59695 2.66667 2 3.26363 2 4.00001V13.3333C2 14.0697 2.59695 14.6667 3.33333 14.6667H12.6667C13.403 14.6667 14 14.0697 14 13.3333V4.00001C14 3.26363 13.403 2.66667 12.6667 2.66667Z",
196
196
  stroke: "currentColor",
197
197
  "stroke-linecap": "round",
198
198
  "stroke-linejoin": "round"
199
199
  }),
200
- n("path", {
200
+ o("path", {
201
201
  d: "M10.6667 1.33333V3.99999",
202
202
  stroke: "currentColor",
203
203
  "stroke-linecap": "round",
204
204
  "stroke-linejoin": "round"
205
205
  }),
206
- n("path", {
206
+ o("path", {
207
207
  d: "M5.33333 1.33333V3.99999",
208
208
  stroke: "currentColor",
209
209
  "stroke-linecap": "round",
210
210
  "stroke-linejoin": "round"
211
211
  }),
212
- n("path", {
212
+ o("path", {
213
213
  d: "M2 6.66667H14",
214
214
  stroke: "currentColor",
215
215
  "stroke-linecap": "round",
216
216
  "stroke-linejoin": "round"
217
217
  })
218
218
  ], -1)
219
- ]), 8, he),
220
- n("span", {
221
- id: `bdpi-description_${r(f)}`,
219
+ ]), 8, ve),
220
+ o("span", {
221
+ id: `bdpi-description_${l(f)}`,
222
222
  class: "bb-base-date-picker-input__accessible-description sr-only"
223
- }, E(r(u)("baseDatePickerInput.dateFormat")) + " " + E(t.range ? r(u)("baseDatePickerInput.dateFormatRange") : r(u)("baseDatePickerInput.dateFormatSingle")), 9, Me)
223
+ }, S(l(u)("baseDatePickerInput.dateFormat")) + " " + S(a.range ? l(u)("baseDatePickerInput.dateFormatRange") : l(u)("baseDatePickerInput.dateFormatSingle")), 9, ye)
224
224
  ]),
225
225
  _: 3
226
- }, 8, ["append:icon", "clearable", "prepend:icon"]),
227
- r(q) ? (Y(), C(ye, {
228
- key: 0,
229
- modelValue: l.value,
230
- "onUpdate:modelValue": a[0] || (a[0] = (p) => l.value = p),
231
- block: !0,
232
- dialog: "",
233
- offset: 4
234
- }, {
235
- default: s(() => [
236
- n("div", {
237
- ref_key: "calendar",
238
- ref: v,
239
- class: w(["bb-base-date-picker-input__calendar", {
240
- "bb-base-date-picker-input__calendar--shown": l.value
241
- }]),
242
- inert: !l.value
243
- }, [
244
- B(be, S({ id: r(f) }, U, {
245
- ref_key: "basedatepicker",
246
- ref: V,
247
- disabled: e.disabled,
248
- "first-day-of-week": e.firstDayOfWeek,
249
- max: e.max,
250
- min: e.min,
251
- "model-value": e.modelValue,
252
- range: e.range,
253
- readonly: e.readonly,
254
- selectable: e.selectable
255
- }), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
256
- ], 10, De)
257
- ]),
258
- _: 1
259
- }, 8, ["modelValue"])) : X("", !0)
260
- ])
226
+ }, 8, ["append:icon", "clearable", "prepend:icon"])
227
+ ]),
228
+ y(be, {
229
+ modelValue: d.value,
230
+ "onUpdate:modelValue": t[0] || (t[0] = (p) => d.value = p),
231
+ anchor: V.value,
232
+ dialog: "",
233
+ offset: 4,
234
+ "transition-duration": e.transitionDuration
235
+ }, {
236
+ default: i(() => [
237
+ o("div", {
238
+ ref_key: "calendar",
239
+ ref: h,
240
+ class: w(["bb-base-date-picker-input__calendar", {
241
+ "bb-base-date-picker-input__calendar--shown": d.value
242
+ }]),
243
+ inert: !d.value
244
+ }, [
245
+ y(ce, B({ id: l(f) }, R, {
246
+ ref_key: "basedatepicker",
247
+ ref: M,
248
+ disabled: e.disabled,
249
+ "first-day-of-week": e.firstDayOfWeek,
250
+ max: e.max,
251
+ min: e.min,
252
+ "model-value": e.modelValue,
253
+ range: e.range,
254
+ readonly: e.readonly,
255
+ selectable: e.selectable
256
+ }), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
257
+ ], 10, he)
258
+ ]),
259
+ _: 1
260
+ }, 8, ["modelValue", "anchor", "transition-duration"])
261
261
  ]),
262
262
  _: 3
263
263
  }, 8, ["class"]));
264
264
  }
265
265
  });
266
266
  export {
267
- Ze as default
267
+ Te as default
268
268
  };
package/dist/index230.js CHANGED
@@ -1,4 +1,8 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ import e from "./index292.js";
2
+ import o from "./index293.js";
3
+ import r from "./index294.js";
4
+ const f = new r(o, e)._freeze();
2
5
  export {
3
- o as booleanishToBoolean
6
+ r as Mime,
7
+ f as default
4
8
  };
package/dist/index231.js CHANGED
@@ -1,53 +1,18 @@
1
- import { computed as l, unref as o } from "vue";
2
- import { useItemText as x } from "./index291.js";
3
- import { useItemValue as w } from "./index274.js";
4
- import { hash as y } from "./index244.js";
5
- import { useLogger as D } from "./index255.js";
6
- const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
7
- items: u,
8
- disabled: c,
9
- selectable: m,
10
- itemText: a,
11
- itemValue: d,
12
- selectedIndexedByHash: r,
13
- max: b = 1 / 0
14
- }) => {
15
- const v = l(() => o(c)), p = l(() => o(u)), h = l(
16
- () => Object.keys(r.value).length
17
- ), g = o(b), f = (e) => {
18
- const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
19
- e,
20
- v.value,
21
- m,
22
- g,
23
- h.value,
24
- s
1
+ const e = (o, r, f) => o.reduce((t, n) => {
2
+ if (t) return t;
3
+ if (f(n))
4
+ return n;
5
+ if (r in n) {
6
+ const i = e(
7
+ [].concat(n[r]),
8
+ r,
9
+ f
25
10
  );
26
- return {
27
- item: e,
28
- text: i,
29
- value: n,
30
- valueHash: t,
31
- selected: s,
32
- disabled: o(I)
33
- };
34
- };
35
- return {
36
- options: l(() => {
37
- const e = [], n = /* @__PURE__ */ new Set();
38
- for (let t = 0; t < p.value.length; t++) {
39
- const i = p.value[t];
40
- i.disabled && H(
41
- "Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
42
- );
43
- const s = f(i);
44
- n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
45
- }
46
- return e;
47
- }),
48
- createOption: f
49
- };
50
- };
11
+ if (i)
12
+ return i;
13
+ }
14
+ return t;
15
+ }, null);
51
16
  export {
52
- q as useBaseOptions
17
+ e as findInTree
53
18
  };
package/dist/index232.js CHANGED
@@ -1,19 +1,12 @@
1
- import { computed as i, unref as m } from "vue";
2
- import { hash as s } from "./index244.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;
1
+ const o = (t, r) => {
2
+ const e = {};
3
+ for (const c in t)
4
+ if (Object.prototype.hasOwnProperty.call(t, c)) {
5
+ const n = t[c];
6
+ r(n, c, t) && (e[c] = n);
9
7
  }
10
- return t;
11
- });
12
- return {
13
- data: n,
14
- get: (t) => r ? n.value[String(t[r])] : n.value[s(t)]
15
- };
8
+ return e;
16
9
  };
17
10
  export {
18
- p as useIndexById
11
+ o as pickBy
19
12
  };
package/dist/index233.js CHANGED
@@ -1,108 +1,5 @@
1
- import { defineComponent as y, ref as F, computed as H, watch as N, createElementBlock as L, openBlock as p, Fragment as S, renderList as V, createBlock as A, withModifiers as O, normalizeClass as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
- import { hash as d } from "./index244.js";
3
- import { isNil as l } from "./index250.js";
4
- import E from "./index67.js";
5
- /* empty css */
6
- const K = /* @__PURE__ */ y({
7
- __name: "ChipsBox",
8
- props: {
9
- options: {}
10
- },
11
- emits: ["option:unselected"],
12
- setup(f, { expose: v, emit: h }) {
13
- const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
- const s = l(n.value) ? -1 : n.value;
15
- let o = (s + e) % t.options.length;
16
- for (; t.options[o].disabled && o !== s; )
17
- o = a(e + 1);
18
- return o;
19
- }, x = () => {
20
- if (!i.value) return;
21
- const e = a();
22
- n.value = e;
23
- }, c = (e = 1) => {
24
- const s = l(n.value) ? 0 : n.value;
25
- let o = (s - e + t.options.length) % t.options.length;
26
- for (; t.options[o].disabled && o !== s; )
27
- o = c(e + 1);
28
- return o;
29
- }, m = async () => {
30
- if (!i.value) return;
31
- const e = c();
32
- n.value = e;
33
- }, w = () => {
34
- if (!i.value) return;
35
- let e = 0;
36
- for (; t.options[e].disabled; )
37
- e++;
38
- n.value = e;
39
- }, b = () => {
40
- if (!i.value) return;
41
- let e = t.options.length - 1;
42
- for (; t.options[e].disabled && e !== 0; )
43
- e--;
44
- n.value = e;
45
- }, I = () => {
46
- if (!i.value) return;
47
- let e = 0;
48
- for (; !t.options[e].selected && t.options.length !== e; )
49
- e++;
50
- n.value = e;
51
- }, g = () => {
52
- if (!i.value) return;
53
- let e = t.options.length - 1;
54
- for (; t.options[e].selected && e !== 0; )
55
- e--;
56
- n.value = e;
57
- }, _ = (e) => {
58
- if (!i.value) return;
59
- const s = t.options.findIndex(
60
- (o) => o.valueHash === e
61
- );
62
- s >= 0 && (n.value = s);
63
- }, r = () => {
64
- n.value = null;
65
- }, k = () => {
66
- if (l(n.value)) return;
67
- const e = t.options[n.value];
68
- e.selected && u("option:unselected", e);
69
- }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
- return N(
71
- () => t.options,
72
- (e, s) => {
73
- d(e) !== d(s) && r();
74
- },
75
- {
76
- flush: "post"
77
- }
78
- ), v({
79
- focusNext: x,
80
- focusPrevious: m,
81
- focusFirst: w,
82
- focusFirstSelected: I,
83
- focusLast: b,
84
- focusLastSelected: g,
85
- blur: r,
86
- confirmOption: k,
87
- focusByHash: _,
88
- getHighlighted: C
89
- }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
- key: o.valueHash,
91
- class: P({
92
- "bb-chipsbox-item": !0,
93
- "bb-chipsbox-item--focused": B === n.value
94
- }),
95
- clearable: !0,
96
- text: o.text,
97
- "onClick:clear": O((M) => u("option:unselected", o), ["stop"])
98
- }, {
99
- default: $(() => [
100
- z(D(o.text), 1)
101
- ]),
102
- _: 2
103
- }, 1032, ["class", "text", "onClick:clear"]))), 128));
104
- }
105
- });
1
+ const o = () => {
2
+ };
106
3
  export {
107
- K as default
4
+ o as noop
108
5
  };
@@ -0,0 +1,11 @@
1
+ const o = (n, t) => {
2
+ for (let e = n.length - 1; e >= 0; e--) {
3
+ const i = n[e];
4
+ if (t(i, e, n))
5
+ return e;
6
+ }
7
+ return -1;
8
+ };
9
+ export {
10
+ o as findRightIndex
11
+ };