bitboss-ui 2.1.10 → 2.1.11

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 (181) hide show
  1. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
  2. package/dist/index.css +1 -1
  3. package/dist/index106.js +9 -9
  4. package/dist/index111.js +1 -1
  5. package/dist/index113.js +1 -1
  6. package/dist/index121.js +12 -12
  7. package/dist/index13.js +1 -1
  8. package/dist/index131.js +4 -4
  9. package/dist/index133.js +1 -1
  10. package/dist/index136.js +1 -1
  11. package/dist/index137.js +2 -2
  12. package/dist/index138.js +1 -1
  13. package/dist/index15.js +8 -8
  14. package/dist/index17.js +3 -3
  15. package/dist/index19.js +8 -8
  16. package/dist/index206.js +138 -2
  17. package/dist/index207.js +2 -2
  18. package/dist/index208.js +2 -138
  19. package/dist/index209.js +13 -3
  20. package/dist/index21.js +16 -16
  21. package/dist/index210.js +13 -2
  22. package/dist/index211.js +11 -2
  23. package/dist/index212.js +2 -18
  24. package/dist/index213.js +4 -12
  25. package/dist/index214.js +2 -51
  26. package/dist/index215.js +66 -15
  27. package/dist/index217.js +13 -17
  28. package/dist/index218.js +181 -27
  29. package/dist/index219.js +5 -13
  30. package/dist/index220.js +5 -16
  31. package/dist/index221.js +5 -6
  32. package/dist/index222.js +5 -4
  33. package/dist/index223.js +5 -106
  34. package/dist/index224.js +7 -0
  35. package/dist/index225.js +2 -100
  36. package/dist/index226.js +4 -0
  37. package/dist/index227.js +2 -66
  38. package/dist/index228.js +22 -0
  39. package/dist/index229.js +113 -13
  40. package/dist/index23.js +155 -153
  41. package/dist/index231.js +6 -0
  42. package/dist/index232.js +189 -222
  43. package/dist/index234.js +86 -2
  44. package/dist/index236.js +28 -6
  45. package/dist/index237.js +17 -7
  46. package/dist/index238.js +51 -5
  47. package/dist/index239.js +15 -5
  48. package/dist/index240.js +3 -5
  49. package/dist/index241.js +12 -5
  50. package/dist/index242.js +16 -5
  51. package/dist/index243.js +10 -5
  52. package/dist/index244.js +3 -2
  53. package/dist/index245.js +2 -11
  54. package/dist/index246.js +7 -18
  55. package/dist/index247.js +23 -2
  56. package/dist/index248.js +9 -5
  57. package/dist/index249.js +8 -5
  58. package/dist/index25.js +3 -3
  59. package/dist/index250.js +3 -8
  60. package/dist/index251.js +101 -245
  61. package/dist/index253.js +96 -40
  62. package/dist/index255.js +6 -60
  63. package/dist/index256.js +15 -85
  64. package/dist/index257.js +36 -0
  65. package/dist/index258.js +3 -34
  66. package/dist/index259.js +5 -4
  67. package/dist/index260.js +5 -197
  68. package/dist/index261.js +10 -0
  69. package/dist/index262.js +250 -3
  70. package/dist/index263.js +51 -12
  71. package/dist/index264.js +44 -183
  72. package/dist/index265.js +4 -5
  73. package/dist/index266.js +59 -15
  74. package/dist/index267.js +9 -3
  75. package/dist/index268.js +16 -7
  76. package/dist/index269.js +12 -23
  77. package/dist/index27.js +1 -1
  78. package/dist/index270.js +6 -9
  79. package/dist/index271.js +230 -10
  80. package/dist/index272.js +2 -3
  81. package/dist/index273.js +7 -9
  82. package/dist/index274.js +7 -8
  83. package/dist/index275.js +2 -5
  84. package/dist/index276.js +5 -2
  85. package/dist/index277.js +1 -1
  86. package/dist/index278.js +1 -1
  87. package/dist/index279.js +1 -1
  88. package/dist/index280.js +4 -3
  89. package/dist/index281.js +7 -3
  90. package/dist/index282.js +11 -3
  91. package/dist/index283.js +5 -0
  92. package/dist/index285.js +7 -17
  93. package/dist/index286.js +3 -28
  94. package/dist/index287.js +3 -4
  95. package/dist/index288.js +4 -3
  96. package/dist/index289.js +280 -2
  97. package/dist/index29.js +4 -4
  98. package/dist/index290.js +2 -7
  99. package/dist/index291.js +124 -10
  100. package/dist/index292.js +2 -4
  101. package/dist/index293.js +13 -278
  102. package/dist/index294.js +2 -2
  103. package/dist/index299.js +1 -1
  104. package/dist/index301.js +3 -15
  105. package/dist/index302.js +17 -2
  106. package/dist/index303.js +27 -18
  107. package/dist/index304.js +6 -2
  108. package/dist/index305.js +5 -27
  109. package/dist/index306.js +3 -2
  110. package/dist/index307.js +3 -2
  111. package/dist/index308.js +718 -2
  112. package/dist/index309.js +366 -2
  113. package/dist/index31.js +2 -2
  114. package/dist/index310.js +58 -2
  115. package/dist/index311.js +1 -21
  116. package/dist/index312.js +7 -0
  117. package/dist/index313.js +19 -2
  118. package/dist/index314.js +2 -3
  119. package/dist/index315.js +26 -5
  120. package/dist/index316.js +2 -125
  121. package/dist/index317.js +2 -2
  122. package/dist/index318.js +2 -3
  123. package/dist/index319.js +2 -5
  124. package/dist/index320.js +2 -718
  125. package/dist/index321.js +22 -366
  126. package/dist/index323.js +2 -5
  127. package/dist/index324.js +2 -33
  128. package/dist/index325.js +33 -28
  129. package/dist/index326.js +30 -0
  130. package/dist/index328.js +128 -6
  131. package/dist/index329.js +366 -16
  132. package/dist/index33.js +8 -8
  133. package/dist/index330.js +58 -47
  134. package/dist/index331.js +58 -7
  135. package/dist/index332.js +7 -128
  136. package/dist/index333.js +5 -368
  137. package/dist/index334.js +8 -228
  138. package/dist/index335.js +92 -7
  139. package/dist/index336.js +227 -5
  140. package/dist/index337.js +7 -8
  141. package/dist/index338.js +17 -91
  142. package/dist/index339.js +7 -58
  143. package/dist/index340.js +47 -58
  144. package/dist/index342.js +1 -1
  145. package/dist/index343.js +124 -483
  146. package/dist/index344.js +430 -44
  147. package/dist/index345.js +121 -123
  148. package/dist/index346.js +473 -421
  149. package/dist/index347.js +48 -125
  150. package/dist/index35.js +4 -4
  151. package/dist/index37.js +20 -20
  152. package/dist/index39.js +8 -8
  153. package/dist/index41.js +2 -2
  154. package/dist/index43.js +8 -8
  155. package/dist/index45.js +8 -8
  156. package/dist/index47.js +2 -2
  157. package/dist/index49.js +3 -3
  158. package/dist/index53.js +1 -1
  159. package/dist/index55.js +1 -1
  160. package/dist/index57.js +2 -2
  161. package/dist/index61.js +3 -3
  162. package/dist/index67.js +1 -1
  163. package/dist/index79.js +4 -4
  164. package/dist/index81.js +1 -1
  165. package/dist/index83.js +2 -2
  166. package/dist/index85.js +1 -1
  167. package/dist/index87.js +1 -1
  168. package/dist/index90.js +3 -3
  169. package/dist/index92.js +2 -2
  170. package/dist/index94.js +3 -3
  171. package/dist/index96.js +1 -1
  172. package/package.json +1 -1
  173. package/dist/index216.js +0 -14
  174. package/dist/index230.js +0 -115
  175. package/dist/index233.js +0 -4
  176. package/dist/index235.js +0 -4
  177. package/dist/index252.js +0 -54
  178. package/dist/index254.js +0 -7
  179. package/dist/index284.js +0 -9
  180. package/dist/index322.js +0 -60
  181. package/dist/index327.js +0 -4
package/dist/index229.js CHANGED
@@ -1,15 +1,115 @@
1
- import { createElementBlock as t, openBlock as n, renderSlot as e } from "vue";
2
- /* empty css */
3
- import r from "./index284.js";
4
- const s = {}, c = { class: "bb-common-input-outer-container" };
5
- function p(o, a) {
6
- return n(), t("span", c, [
7
- e(o.$slots, "prepend-outer"),
8
- e(o.$slots, "default"),
9
- e(o.$slots, "append-outer")
10
- ]);
11
- }
12
- const i = /* @__PURE__ */ r(s, [["render", p]]);
1
+ import { defineComponent as P, mergeModels as D, useModel as V, ref as r, watch as A, onMounted as x, computed as S, createBlock as b, openBlock as v, resolveDynamicComponent as g, normalizeStyle as z, normalizeClass as E, unref as n, withCtx as w, renderSlot as y, createCommentVNode as N, mergeProps as h, createElementVNode as C } from "vue";
2
+ import { wait as F } from "./index135.js";
3
+ import { useFloating as U, arrow as j } from "./index328.js";
4
+ import { flip as q, offset as G, shift as H, hide as I, autoUpdate as J } from "./index329.js";
5
+ const K = { class: "bb-common-popover__bubble" }, W = /* @__PURE__ */ P({
6
+ __name: "CommonPopover",
7
+ props: /* @__PURE__ */ D({
8
+ arrowPadding: {},
9
+ offset: {},
10
+ block: { type: Boolean },
11
+ padding: { default: 0 },
12
+ placement: {},
13
+ transitionDuration: { default: 250 },
14
+ containerAttributes: {},
15
+ dialog: { type: Boolean },
16
+ renderContent: { type: Boolean, default: !0 },
17
+ tag: { default: "span" }
18
+ }, {
19
+ modelValue: { type: Boolean, default: !1 },
20
+ modelModifiers: {}
21
+ }),
22
+ emits: ["update:modelValue"],
23
+ setup(s) {
24
+ const o = s, a = V(s, "modelValue"), i = r(), t = r(), p = r(), { floatingStyles: k, placement: _, middlewareData: l, update: M } = U(
25
+ i,
26
+ t,
27
+ {
28
+ placement: o.placement,
29
+ whileElementsMounted: J,
30
+ middleware: [
31
+ q(),
32
+ G(o.offset),
33
+ H({ padding: o.padding }),
34
+ I(),
35
+ j({
36
+ element: p,
37
+ padding: o.arrowPadding
38
+ })
39
+ ],
40
+ strategy: "fixed"
41
+ }
42
+ ), d = (e) => {
43
+ e ? (M(), o.dialog ? t.value.showModal() : t.value.showPopover()) : F(o.transitionDuration).then(() => {
44
+ t.value && (o.dialog ? t.value.close() : t.value.hidePopover());
45
+ });
46
+ };
47
+ A(a, d, { flush: "post" }), x(() => {
48
+ a.value && d(a.value);
49
+ });
50
+ const $ = S(() => {
51
+ if (l.value.arrow) {
52
+ const { x: e, y: u } = l.value.arrow;
53
+ return {
54
+ style: {
55
+ left: `${e}px`,
56
+ top: `${u}px`
57
+ }
58
+ };
59
+ }
60
+ }), B = () => {
61
+ a.value = !1;
62
+ };
63
+ return (e, u) => (v(), b(g(e.dialog ? "div" : e.tag), {
64
+ ref_key: "wrapper",
65
+ ref: i,
66
+ class: E(["bb-common-popover", {
67
+ "bb-common-popover--open": a.value && !!t.value,
68
+ "bb-common-popover--block": o.block,
69
+ [`bb-common-popover--${n(_)}`]: !0
70
+ }]),
71
+ style: z({
72
+ "--transition-duration": `${o.transitionDuration}ms`
73
+ })
74
+ }, {
75
+ default: w(() => {
76
+ var m, c, f;
77
+ return [
78
+ y(e.$slots, "activator"),
79
+ e.renderContent ? (v(), b(g(e.dialog ? "dialog" : e.tag), h({
80
+ key: 0,
81
+ ref_key: "content",
82
+ ref: t,
83
+ class: ["bb-common-popover__bubble-container", {
84
+ "bb-common-popover__bubble-container--open": a.value && !!t.value
85
+ }],
86
+ popover: "manual",
87
+ style: {
88
+ ...((m = e.containerAttributes) == null ? void 0 : m.style) ?? {},
89
+ ...n(k),
90
+ "--arrow-offset-x": Math.round(((f = (c = n(l)) == null ? void 0 : c.arrow) == null ? void 0 : f.x) ?? 0) + "px",
91
+ "--page-padding": `${e.padding}px`
92
+ },
93
+ tabindex: a.value ? void 0 : -1
94
+ }, e.containerAttributes, { onClose: n(B) }), {
95
+ default: w(() => [
96
+ C("span", h({
97
+ ref_key: "bubblearrow",
98
+ ref: p,
99
+ class: "bb-common-popover__arrow"
100
+ }, $.value), null, 16),
101
+ C("span", K, [
102
+ y(e.$slots, "default")
103
+ ])
104
+ ]),
105
+ _: 3
106
+ }, 16, ["class", "style", "tabindex", "onClose"])) : N("", !0)
107
+ ];
108
+ }),
109
+ _: 3
110
+ }, 8, ["class", "style"]));
111
+ }
112
+ });
13
113
  export {
14
- i as default
114
+ W as default
15
115
  };
package/dist/index23.js CHANGED
@@ -1,27 +1,27 @@
1
- import { defineComponent as K, watchEffect as Q, ref as l, computed as g, watch as D, createBlock as C, openBlock as Y, normalizeClass as w, withCtx as i, createVNode as B, unref as n, createCommentVNode as X, withDirectives as x, createElementVNode as s, mergeProps as S, withModifiers as ee, toDisplayString as E, renderSlot as c } from "vue";
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
2
  import { _config as te } from "./index4.js";
3
- import o from "./index238.js";
4
- import ae from "./index239.js";
5
- import oe from "./index240.js";
6
- import ne from "./index241.js";
7
- import re from "./index242.js";
8
- import le from "./index243.js";
9
- import { identity as ie } from "./index244.js";
10
- import { isEmpty as se } from "./index210.js";
11
- import { last as de } from "./index211.js";
3
+ import o from "./index219.js";
4
+ import ae from "./index220.js";
5
+ import oe from "./index221.js";
6
+ import ne from "./index222.js";
7
+ import re from "./index223.js";
8
+ import le from "./index224.js";
9
+ import { identity as ie } from "./index225.js";
10
+ import { isEmpty as se } from "./index226.js";
11
+ import { last as de } from "./index227.js";
12
12
  import { useId as ue } from "./index8.js";
13
- import { useLocale as pe } from "./index219.js";
13
+ import { useLocale as pe } from "./index210.js";
14
14
  import { useMobile as ce } from "./index9.js";
15
- import { useUntil as me } from "./index245.js";
16
- import { vMaska as fe } from "./index246.js";
15
+ import { useUntil as me } from "./index211.js";
16
+ import { vMaska as fe } from "./index228.js";
17
17
  import be from "./index21.js";
18
18
  /* empty css */
19
- import ke from "./index227.js";
19
+ import ke from "./index215.js";
20
20
  /* empty css */
21
- import ge from "./index229.js";
22
- import ye from "./index230.js";
21
+ import ge from "./index217.js";
22
+ import ye from "./index229.js";
23
23
  /* empty css */
24
- const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Me = ["aria-label", "disabled"], he = ["id"], ze = /* @__PURE__ */ K({
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({
25
25
  __name: "BaseDatePickerInput",
26
26
  props: {
27
27
  allowWriting: { type: [Boolean, String], default: !0 },
@@ -47,12 +47,12 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
47
47
  selectable: {}
48
48
  },
49
49
  emits: ["active", "error", "focus", "inactive", "update:modelValue"],
50
- setup(I, { emit: $ }) {
51
- const L = { it: le, en: oe };
50
+ setup(I, { emit: _ }) {
51
+ const $ = { it: le, en: oe };
52
52
  o.extend(ae), o.extend(ne), o.extend(re), Q(() => {
53
- o.locale(L[te.locale]);
53
+ o.locale($[te.locale]);
54
54
  });
55
- const t = I, d = $, { t: u } = pe(), v = l(null), y = l(null), O = l(null), _ = l(null), m = l(null), V = l(), f = t.id || `bdpi-${ue().id.value}`, { isMobile: P } = ce(), F = g(
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
56
  () => t.allowWriting === "not-mobile" && P.value ? "none" : "numeric"
57
57
  ), j = g(() => ({
58
58
  "bb-base-date-picker-input": !0,
@@ -70,12 +70,12 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
70
70
  Z(a) ? (e.target.value = "", d("update:modelValue", null), d("error", "invalid_date_typed")) : d("update:modelValue", a.toISOString());
71
71
  } else e.target.value === "" && d("update:modelValue", null);
72
72
  }
73
- }, b = l(!1), H = () => {
73
+ }, b = i(!1), H = () => {
74
74
  b.value || (d("active"), b.value = !0, document.addEventListener("focusin", k), document.addEventListener("click", k));
75
75
  }, k = (e) => {
76
76
  var a, p;
77
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
- }, M = (e) => {
78
+ }, h = (e) => {
79
79
  if (e)
80
80
  if (Array.isArray(e)) {
81
81
  let a, p;
@@ -83,26 +83,26 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
83
83
  } else
84
84
  return o(e).format("DD/MM/YYYY");
85
85
  return null;
86
- }, W = g(() => m.value ? m.value : M(t.modelValue));
86
+ }, W = g(() => m.value ? m.value : h(t.modelValue));
87
87
  D(
88
88
  () => t.modelValue,
89
89
  (e) => {
90
- m.value = M(e);
90
+ m.value = h(e);
91
91
  }
92
92
  );
93
- const r = l(!1), q = me(r), h = (e) => {
93
+ const l = i(!1), q = me(l), M = (e) => {
94
94
  const a = e.target;
95
- a && a instanceof HTMLDialogElement && (r.value = !1);
95
+ a && a instanceof HTMLDialogElement && (l.value = !1);
96
96
  }, R = async () => {
97
- t.disabled || t.readonly || (r.value = !0);
97
+ t.disabled || t.readonly || (l.value = !0);
98
98
  };
99
- D(r, (e) => {
99
+ D(l, (e) => {
100
100
  var a;
101
- e ? document.addEventListener("click", h, { passive: !0 }) : ((a = V.value) == null || a.resetStatus(), document.removeEventListener("click", h));
101
+ e ? document.addEventListener("click", M, { passive: !0 }) : ((a = V.value) == null || a.resetStatus(), document.removeEventListener("click", M));
102
102
  });
103
- const N = l(!t.allowWriting || t.range), T = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, U = {
103
+ const N = i(!t.allowWriting || t.range), T = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, U = {
104
104
  "onUpdate:modelValue": (e) => {
105
- d("update:modelValue", e), T(e) && (N.value = !1, r.value = !1);
105
+ d("update:modelValue", e), T(e) && (N.value = !1, l.value = !1);
106
106
  }
107
107
  }, z = g(() => {
108
108
  if (t.range) {
@@ -129,138 +129,140 @@ const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus
129
129
  class: w(j.value),
130
130
  onFocusin: H
131
131
  }, {
132
- "prepend-outer": i(() => [
132
+ "prepend-outer": s(() => [
133
133
  c(e.$slots, "prepend-outer")
134
134
  ]),
135
- "append-outer": i(() => [
135
+ "append-outer": s(() => [
136
136
  c(e.$slots, "append-outer")
137
137
  ]),
138
- default: i(() => [
139
- B(ke, {
140
- ref_key: "innerContainer",
141
- ref: O,
142
- "append:icon": t["append:icon"],
143
- clearable: t.clearable && !n(se)(e.modelValue),
144
- "prepend:icon": t["prepend:icon"],
145
- "onClick:clear": G
146
- }, {
147
- prepend: i(() => [
148
- c(e.$slots, "prepend")
149
- ]),
150
- prefix: i(() => [
151
- c(e.$slots, "prefix")
152
- ]),
153
- append: i(() => [
154
- c(e.$slots, "append")
155
- ]),
156
- suffix: i(() => [
157
- c(e.$slots, "suffix")
158
- ]),
159
- default: i(() => [
160
- n(q) ? (Y(), C(ye, {
161
- key: 0,
162
- modelValue: r.value,
163
- "onUpdate:modelValue": a[0] || (a[0] = (p) => r.value = p),
164
- block: !0,
165
- dialog: "",
166
- offset: 4
167
- }, {
168
- default: i(() => [
169
- s("div", {
170
- ref_key: "calendar",
171
- ref: v,
172
- class: w(["bb-base-date-picker-input__calendar", {
173
- "bb-base-date-picker-input__calendar--shown": r.value
174
- }]),
175
- inert: !r.value
176
- }, [
177
- B(be, S({ id: n(f) }, U, {
178
- ref_key: "basedatepicker",
179
- ref: V,
180
- disabled: e.disabled,
181
- "first-day-of-week": e.firstDayOfWeek,
182
- max: e.max,
183
- min: e.min,
184
- "model-value": e.modelValue,
185
- range: e.range,
186
- readonly: e.readonly,
187
- selectable: e.selectable
188
- }), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
189
- ], 10, ve)
138
+ default: s(() => [
139
+ n("div", ve, [
140
+ B(ke, {
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
147
+ }, {
148
+ prepend: s(() => [
149
+ c(e.$slots, "prepend")
150
+ ]),
151
+ prefix: s(() => [
152
+ c(e.$slots, "prefix")
153
+ ]),
154
+ append: s(() => [
155
+ c(e.$slots, "append")
156
+ ]),
157
+ suffix: s(() => [
158
+ c(e.$slots, "suffix")
159
+ ]),
160
+ default: s(() => [
161
+ x(n("input", S({
162
+ id: r(f),
163
+ ref_key: "input",
164
+ ref: O,
165
+ "aria-describedby": `bdpi-description_${r(f)}`,
166
+ autocomplete: e.autocomplete,
167
+ autofocus: e.autofocus,
168
+ "data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
169
+ disabled: e.disabled,
170
+ inputmode: F.value,
171
+ name: e.name,
172
+ placeholder: e.placeholder,
173
+ readonly: e.readonly || e.range || !e.allowWriting,
174
+ required: e.required
175
+ }, A, {
176
+ size: "1",
177
+ type: "text",
178
+ value: W.value
179
+ }), null, 16, Ve), [
180
+ [r(fe)]
190
181
  ]),
191
- _: 1
192
- }, 8, ["modelValue"])) : X("", !0),
193
- x(s("input", S({
194
- id: n(f),
195
- ref_key: "input",
196
- ref: _,
197
- "aria-describedby": `bdpi-description_${n(f)}`,
198
- autocomplete: e.autocomplete,
199
- autofocus: e.autofocus,
200
- "data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
201
- disabled: e.disabled,
202
- inputmode: F.value,
203
- name: e.name,
204
- placeholder: e.placeholder,
205
- readonly: e.readonly || e.range || !e.allowWriting,
206
- required: e.required
207
- }, A, {
208
- size: "1",
209
- type: "text",
210
- value: W.value
211
- }), null, 16, Ve), [
212
- [n(fe)]
182
+ n("button", {
183
+ "aria-label": z.value,
184
+ class: "bb-base-date-picker-input__calendar-btn",
185
+ disabled: e.disabled || e.readonly,
186
+ type: "button",
187
+ onClick: ee(R, ["stop"])
188
+ }, a[1] || (a[1] = [
189
+ n("svg", {
190
+ fill: "none",
191
+ viewBox: "0 0 16 16",
192
+ xmlns: "http://www.w3.org/2000/svg"
193
+ }, [
194
+ n("path", {
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
+ stroke: "currentColor",
197
+ "stroke-linecap": "round",
198
+ "stroke-linejoin": "round"
199
+ }),
200
+ n("path", {
201
+ d: "M10.6667 1.33333V3.99999",
202
+ stroke: "currentColor",
203
+ "stroke-linecap": "round",
204
+ "stroke-linejoin": "round"
205
+ }),
206
+ n("path", {
207
+ d: "M5.33333 1.33333V3.99999",
208
+ stroke: "currentColor",
209
+ "stroke-linecap": "round",
210
+ "stroke-linejoin": "round"
211
+ }),
212
+ n("path", {
213
+ d: "M2 6.66667H14",
214
+ stroke: "currentColor",
215
+ "stroke-linecap": "round",
216
+ "stroke-linejoin": "round"
217
+ })
218
+ ], -1)
219
+ ]), 8, he),
220
+ n("span", {
221
+ id: `bdpi-description_${r(f)}`,
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)
213
224
  ]),
214
- s("button", {
215
- "aria-label": z.value,
216
- class: "bb-base-date-picker-input__calendar-btn",
217
- disabled: e.disabled || e.readonly,
218
- type: "button",
219
- onClick: ee(R, ["stop"])
220
- }, a[1] || (a[1] = [
221
- s("svg", {
222
- fill: "none",
223
- viewBox: "0 0 16 16",
224
- xmlns: "http://www.w3.org/2000/svg"
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
225
243
  }, [
226
- s("path", {
227
- 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",
228
- stroke: "currentColor",
229
- "stroke-linecap": "round",
230
- "stroke-linejoin": "round"
231
- }),
232
- s("path", {
233
- d: "M10.6667 1.33333V3.99999",
234
- stroke: "currentColor",
235
- "stroke-linecap": "round",
236
- "stroke-linejoin": "round"
237
- }),
238
- s("path", {
239
- d: "M5.33333 1.33333V3.99999",
240
- stroke: "currentColor",
241
- "stroke-linecap": "round",
242
- "stroke-linejoin": "round"
243
- }),
244
- s("path", {
245
- d: "M2 6.66667H14",
246
- stroke: "currentColor",
247
- "stroke-linecap": "round",
248
- "stroke-linejoin": "round"
249
- })
250
- ], -1)
251
- ]), 8, Me),
252
- s("span", {
253
- id: `bdpi-description_${n(f)}`,
254
- class: "bb-base-date-picker-input__accessible-description sr-only"
255
- }, E(n(u)("baseDatePickerInput.dateFormat")) + " " + E(t.range ? n(u)("baseDatePickerInput.dateFormatRange") : n(u)("baseDatePickerInput.dateFormatSingle")), 9, he)
256
- ]),
257
- _: 3
258
- }, 8, ["append:icon", "clearable", "prepend:icon"])
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
+ ])
259
261
  ]),
260
262
  _: 3
261
263
  }, 8, ["class"]));
262
264
  }
263
265
  });
264
266
  export {
265
- ze as default
267
+ Ze as default
266
268
  };
@@ -0,0 +1,6 @@
1
+ function x(e) {
2
+ return /^#([A-Fa-f0-9]{6})$/.test(e);
3
+ }
4
+ export {
5
+ x as isHex
6
+ };