bitboss-ui 2.0.78 → 2.0.79

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 (159) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
  2. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  3. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  4. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +1 -1
  5. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +1 -1
  6. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  7. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -1
  8. package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
  9. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  10. package/dist/components/OptionsContainer.vue.d.ts +1 -1
  11. package/dist/index110.js +5 -5
  12. package/dist/index118.js +25 -21
  13. package/dist/index120.js +5 -5
  14. package/dist/index122.js +1 -1
  15. package/dist/index126.js +1 -1
  16. package/dist/index127.js +1 -1
  17. package/dist/index128.js +1 -1
  18. package/dist/index13.js +1 -1
  19. package/dist/index130.js +1 -1
  20. package/dist/index132.js +2 -2
  21. package/dist/index133.js +2 -2
  22. package/dist/index15.js +4 -4
  23. package/dist/index17.js +3 -3
  24. package/dist/index19.js +2 -2
  25. package/dist/index204.js +2 -81
  26. package/dist/index205.js +5 -2
  27. package/dist/index206.js +16 -8
  28. package/dist/index207.js +16 -3
  29. package/dist/index208.js +18 -40
  30. package/dist/index209.js +19 -6
  31. package/dist/index21.js +14 -14
  32. package/dist/index210.js +27 -7
  33. package/dist/index211.js +3 -5
  34. package/dist/index212.js +2 -16
  35. package/dist/index213.js +8 -16
  36. package/dist/index214.js +249 -19
  37. package/dist/index215.js +51 -18
  38. package/dist/index216.js +44 -27
  39. package/dist/index217.js +5 -3
  40. package/dist/index218.js +60 -2
  41. package/dist/index219.js +47 -243
  42. package/dist/index221.js +13 -44
  43. package/dist/index222.js +20 -5
  44. package/dist/index223.js +4 -60
  45. package/dist/index224.js +124 -51
  46. package/dist/index225.js +127 -0
  47. package/dist/index226.js +2 -13
  48. package/dist/index227.js +39 -162
  49. package/dist/index228.js +5 -83
  50. package/dist/index229.js +7 -0
  51. package/dist/index23.js +188 -187
  52. package/dist/index230.js +12 -3
  53. package/dist/index231.js +353 -110
  54. package/dist/index232.js +81 -125
  55. package/dist/index233.js +3 -2
  56. package/dist/index234.js +2 -20
  57. package/dist/index235.js +4 -5
  58. package/dist/index236.js +2 -369
  59. package/dist/index237.js +164 -4
  60. package/dist/index238.js +84 -2
  61. package/dist/index240.js +3 -2
  62. package/dist/index241.js +7 -2
  63. package/dist/index242.js +2 -106
  64. package/dist/index244.js +53 -47
  65. package/dist/index246.js +100 -2
  66. package/dist/index248.js +2 -10
  67. package/dist/index249.js +9 -2
  68. package/dist/index25.js +109 -105
  69. package/dist/index250.js +2 -8
  70. package/dist/index251.js +6 -23
  71. package/dist/index252.js +14 -87
  72. package/dist/index253.js +11 -0
  73. package/dist/index254.js +23 -6
  74. package/dist/index255.js +87 -14
  75. package/dist/index257.js +8 -5
  76. package/dist/index258.js +3 -2
  77. package/dist/index260.js +7 -2
  78. package/dist/index261.js +176 -2
  79. package/dist/index262.js +281 -2
  80. package/dist/index263.js +6 -2
  81. package/dist/index264.js +2 -2
  82. package/dist/index265.js +2 -2
  83. package/dist/index266.js +2 -2
  84. package/dist/index267.js +2 -2
  85. package/dist/index268.js +2 -28
  86. package/dist/index269.js +2 -22
  87. package/dist/index27.js +1 -1
  88. package/dist/index270.js +4 -0
  89. package/dist/index271.js +2 -7
  90. package/dist/index272.js +2 -431
  91. package/dist/index273.js +2 -89
  92. package/dist/index274.js +27 -8
  93. package/dist/index275.js +22 -3
  94. package/dist/index277.js +2 -200
  95. package/dist/index278.js +126 -3
  96. package/dist/index279.js +430 -11
  97. package/dist/index280.js +21 -8
  98. package/dist/index282.js +2 -17
  99. package/dist/index283.js +223 -3
  100. package/dist/index284.js +200 -224
  101. package/dist/index285.js +436 -2
  102. package/dist/index286.js +121 -120
  103. package/dist/index287.js +3 -175
  104. package/dist/index288.js +3 -22
  105. package/dist/index289.js +14 -0
  106. package/dist/index29.js +3 -3
  107. package/dist/index290.js +9 -4
  108. package/dist/index291.js +9 -436
  109. package/dist/index292.js +16 -126
  110. package/dist/index293.js +4 -2
  111. package/dist/index294.js +89 -3
  112. package/dist/index296.js +3 -5
  113. package/dist/index297.js +204 -59
  114. package/dist/index298.js +2 -211
  115. package/dist/index299.js +5 -5
  116. package/dist/index300.js +66 -8
  117. package/dist/index304.js +1 -1
  118. package/dist/index305.js +4 -3
  119. package/dist/index306.js +7 -6
  120. package/dist/index307.js +6 -6
  121. package/dist/index308.js +6 -18
  122. package/dist/index309.js +18 -32
  123. package/dist/index31.js +2 -2
  124. package/dist/index310.js +32 -10
  125. package/dist/index311.js +3 -46
  126. package/dist/index312.js +47 -12
  127. package/dist/index313.js +10 -479
  128. package/dist/index314.js +1 -1
  129. package/dist/index315.js +482 -0
  130. package/dist/index317.js +1 -1
  131. package/dist/index318.js +47 -2
  132. package/dist/index319.js +2 -47
  133. package/dist/index33.js +2 -2
  134. package/dist/index35.js +3 -3
  135. package/dist/index37.js +99 -98
  136. package/dist/index39.js +4 -4
  137. package/dist/index41.js +2 -2
  138. package/dist/index43.js +2 -2
  139. package/dist/index45.js +8 -8
  140. package/dist/index47.js +2 -2
  141. package/dist/index49.js +2 -2
  142. package/dist/index55.js +1 -1
  143. package/dist/index57.js +1 -1
  144. package/dist/index61.js +2 -2
  145. package/dist/index75.js +3 -3
  146. package/dist/index79.js +2 -2
  147. package/dist/index81.js +1 -1
  148. package/dist/index84.js +110 -106
  149. package/dist/index86.js +1 -1
  150. package/dist/index88.js +4 -4
  151. package/dist/index90.js +1 -1
  152. package/package.json +1 -1
  153. package/dist/index220.js +0 -54
  154. package/dist/index239.js +0 -6
  155. package/dist/index256.js +0 -283
  156. package/dist/index259.js +0 -4
  157. package/dist/index281.js +0 -11
  158. package/dist/index316.js +0 -4
  159. /package/dist/{index247.js → index243.js} +0 -0
package/dist/index84.js CHANGED
@@ -1,9 +1,10 @@
1
- import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
- import { useFocusTrap as ce } from "./index208.js";
1
+ import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as N, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, withCtx as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
+ import { useFocusTrap as ce } from "./index227.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { wait as E } from "./index131.js";
5
- import { useModalsState as b } from "./index210.js";
6
- const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
5
+ import { useModalsState as b } from "./index241.js";
6
+ import de from "./index230.js";
7
+ const fe = ["inert"], ve = { class: "bb-offcanvas-close" }, pe = ["aria-label"], ke = /* @__PURE__ */ te({
7
8
  __name: "BbOffCanvas",
8
9
  props: {
9
10
  closeLabel: { default: "Chiudi" },
@@ -26,11 +27,11 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
26
27
  },
27
28
  emits: ["shown", "hidden", "update:modelValue"],
28
29
  setup(H, { emit: I }) {
29
- var L, N;
30
- const e = H, u = I, k = `title_${A().id.value}`, C = `description_${A().id.value}`, c = l(null), T = l(null), W = l(null), F = l(null), R = l(null), K = l(null), P = oe(), $ = !!((N = (L = le()) == null ? void 0 : L.proxy) != null && N.$nuxt), d = l(0), U = p(() => {
30
+ var x, L;
31
+ const e = H, u = I, _ = `title_${A().id.value}`, k = `description_${A().id.value}`, c = l(null), $ = l(null), W = l(null), F = l(null), R = l(null), K = l(null), P = oe(), T = !!((L = (x = le()) == null ? void 0 : x.proxy) != null && L.$nuxt), d = l(0), U = p(() => {
31
32
  const { openedModals: t } = b();
32
33
  return !t.value || t.value === d.value;
33
- }), { activate: j, deactivate: q } = ce(T, {
34
+ }), { activate: j, deactivate: q } = ce($, {
34
35
  initialFocus: e.focusTarget ?? void 0,
35
36
  clickOutsideDeactivates: (t) => t.target === c.value,
36
37
  allowOutsideClick: !0,
@@ -38,21 +39,21 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
38
39
  escapeDeactivates: () => (se(() => {
39
40
  u("update:modelValue", !1);
40
41
  }), !0)
41
- }), G = p(() => e.closeLabel), _ = l(!1), f = l(!1), m = l(!0), v = l(!1), i = l(e.eager || e.modelValue), D = l(null), J = p(() => f.value || v.value), Q = () => {
42
+ }), G = p(() => e.closeLabel), C = l(!1), f = l(!1), m = l(!0), v = l(!1), i = l(e.eager || e.modelValue), D = l(null), J = p(() => f.value || v.value), Q = () => {
42
43
  if (!globalThis.document) return;
43
44
  const t = window.innerWidth - document.documentElement.clientWidth;
44
45
  document.body.style.overflow = "hidden", document.body.style.paddingRight = `${t}px`;
45
46
  }, w = () => {
46
47
  globalThis.document && (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
47
48
  };
48
- x(() => {
49
+ N(() => {
49
50
  if (e.modelValue) {
50
51
  const { openedModals: t, modalHasClosed: o } = b();
51
52
  t.value && (o(), d.value = 0, w());
52
53
  }
53
54
  }), ae(() => {
54
- !e.modelValue && !i.value || $ && !globalThis.document || M();
55
- }), x(() => {
55
+ !e.modelValue && !i.value || T && !globalThis.document || M();
56
+ }), N(() => {
56
57
  if (e.modelValue) {
57
58
  const { openedModals: t, modalHasClosed: o } = b();
58
59
  t.value && (o(), d.value = 0, w());
@@ -60,7 +61,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
60
61
  }), ne(
61
62
  () => e.modelValue,
62
63
  () => {
63
- !e.modelValue && !i.value || $ && !globalThis.document || M();
64
+ !e.modelValue && !i.value || T && !globalThis.document || M();
64
65
  },
65
66
  { flush: "post" }
66
67
  );
@@ -68,9 +69,9 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
68
69
  if (e.modelValue) {
69
70
  i.value || (i.value = !0), m.value = !1, v.value = !1, f.value = !0;
70
71
  const { modalHasOpened: t, openedModals: o } = b();
71
- t(), d.value = o.value, Q(), await E(e.transitionDuration), f.value = !1, _.value = !0, u("shown"), j();
72
+ t(), d.value = o.value, Q(), await E(e.transitionDuration), f.value = !1, C.value = !0, u("shown"), j();
72
73
  } else {
73
- q(), f.value = !1, _.value = !1, v.value = !0;
74
+ q(), f.value = !1, C.value = !1, v.value = !0;
74
75
  const { modalHasClosed: t, openedModals: o } = b();
75
76
  t(), d.value = 0, o.value || w(), await E(e.transitionDuration), v.value = !1, m.value = !0, u("hidden"), D.value instanceof HTMLElement && D.value.focus();
76
77
  }
@@ -86,7 +87,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
86
87
  "bb-offcanvas bb-offcanvas__overlay": !0,
87
88
  "bb-offcanvas--fullscreen": e.fullscreen,
88
89
  "bb-offcanvas--faded": !U.value,
89
- "bb-offcanvas--open": _.value,
90
+ "bb-offcanvas--open": C.value,
90
91
  "bb-offcanvas--opening": f.value,
91
92
  "bb-offcanvas--closed": m.value,
92
93
  "bb-offcanvas--closing": v.value,
@@ -120,7 +121,7 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
120
121
  role: "dialog",
121
122
  "aria-modal": !0
122
123
  };
123
- i.value && (o["aria-labelledby"] = k, e.description && (o["aria-describedby"] = C));
124
+ i.value && (o["aria-labelledby"] = _, e.description && (o["aria-describedby"] = k));
124
125
  let a, r;
125
126
  const h = {
126
127
  sm: 384,
@@ -139,101 +140,104 @@ const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"],
139
140
  ...o
140
141
  };
141
142
  });
142
- return (t, o) => (g(), ie(re, { to: "body" }, [
143
- s("div", O(Y.value, {
144
- ref_key: "overlay",
145
- ref: c,
146
- inert: m.value
147
- }), [
148
- s("div", O(Z.value, {
149
- ref_key: "panel",
150
- ref: T
143
+ return (t, o) => (g(), ie(de, null, {
144
+ default: re(() => [
145
+ s("div", O(Y.value, {
146
+ ref_key: "overlay",
147
+ ref: c,
148
+ inert: m.value
151
149
  }), [
152
- i.value ? (g(), V("div", {
153
- key: 0,
154
- ref_key: "content",
155
- ref: W,
156
- class: "bb-offcanvas__content"
157
- }, [
158
- n(t.$slots, "content", { close: B }, () => [
159
- s("div", {
160
- ref_key: "header",
161
- ref: F,
162
- class: "bb-offcanvas__header"
163
- }, [
164
- n(t.$slots, "header", {
165
- close: B,
166
- title: t.title,
167
- titleId: k
168
- }, () => [
169
- s("span", {
170
- id: k,
171
- class: "bb-offcanvas__title"
172
- }, [
173
- n(t.$slots, "title", { text: t.title }, () => [
174
- ue(S(t.title), 1)
175
- ])
176
- ]),
177
- s("span", fe, [
178
- t.showClose ? (g(), V("button", {
179
- key: 0,
180
- "aria-label": G.value,
181
- type: "button",
182
- onClick: B
150
+ s("div", O(Z.value, {
151
+ ref_key: "panel",
152
+ ref: $
153
+ }), [
154
+ i.value ? (g(), V("div", {
155
+ key: 0,
156
+ ref_key: "content",
157
+ ref: W,
158
+ class: "bb-offcanvas__content"
159
+ }, [
160
+ n(t.$slots, "content", { close: B }, () => [
161
+ s("div", {
162
+ ref_key: "header",
163
+ ref: F,
164
+ class: "bb-offcanvas__header"
165
+ }, [
166
+ n(t.$slots, "header", {
167
+ close: B,
168
+ title: t.title,
169
+ titleId: _
170
+ }, () => [
171
+ s("span", {
172
+ id: _,
173
+ class: "bb-offcanvas__title"
183
174
  }, [
184
- n(t.$slots, "close", {}, () => [
185
- o[0] || (o[0] = s("span", { class: "bb-offcanvas-close__icon" }, [
186
- s("svg", {
187
- "aria-hidden": "true",
188
- fill: "none",
189
- viewBox: "0 0 24 24",
190
- xmlns: "http://www.w3.org/2000/svg"
191
- }, [
192
- s("path", {
193
- d: "M23 23L1 1M23 1L1 23",
194
- stroke: "currentColor",
195
- "stroke-linecap": "round",
196
- "stroke-width": "2"
197
- })
198
- ])
199
- ], -1))
175
+ n(t.$slots, "title", { text: t.title }, () => [
176
+ ue(S(t.title), 1)
200
177
  ])
201
- ], 8, ve)) : z("", !0)
178
+ ]),
179
+ s("span", ve, [
180
+ t.showClose ? (g(), V("button", {
181
+ key: 0,
182
+ "aria-label": G.value,
183
+ type: "button",
184
+ onClick: B
185
+ }, [
186
+ n(t.$slots, "close", {}, () => [
187
+ o[0] || (o[0] = s("span", { class: "bb-offcanvas-close__icon" }, [
188
+ s("svg", {
189
+ "aria-hidden": "true",
190
+ fill: "none",
191
+ viewBox: "0 0 24 24",
192
+ xmlns: "http://www.w3.org/2000/svg"
193
+ }, [
194
+ s("path", {
195
+ d: "M23 23L1 1M23 1L1 23",
196
+ stroke: "currentColor",
197
+ "stroke-linecap": "round",
198
+ "stroke-width": "2"
199
+ })
200
+ ])
201
+ ], -1))
202
+ ])
203
+ ], 8, pe)) : z("", !0)
204
+ ])
202
205
  ])
203
- ])
204
- ], 512),
205
- s("div", {
206
- ref_key: "body",
207
- ref: R,
208
- class: "bb-offcanvas__body scrollbar-border"
209
- }, [
210
- n(t.$slots, "description", {
211
- descriptionId: C,
212
- text: t.description
213
- }, () => [
214
- t.description ? (g(), V("div", {
215
- key: 0,
216
- id: C,
217
- class: "bb-offcanvas__description sr-only"
218
- }, S(t.description), 1)) : z("", !0)
219
- ]),
220
- n(t.$slots, "default")
221
- ], 512),
222
- o[1] || (o[1] = s("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
223
- s("div", {
224
- ref_key: "footer",
225
- ref: K,
226
- class: "bb-offcanvas__footer"
227
- }, [
228
- n(t.$slots, "footer")
229
- ], 512)
230
- ])
231
- ], 512)) : z("", !0)
232
- ], 16)
233
- ], 16, de)
234
- ]));
206
+ ], 512),
207
+ s("div", {
208
+ ref_key: "body",
209
+ ref: R,
210
+ class: "bb-offcanvas__body scrollbar-border"
211
+ }, [
212
+ n(t.$slots, "description", {
213
+ descriptionId: k,
214
+ text: t.description
215
+ }, () => [
216
+ t.description ? (g(), V("div", {
217
+ key: 0,
218
+ id: k,
219
+ class: "bb-offcanvas__description sr-only"
220
+ }, S(t.description), 1)) : z("", !0)
221
+ ]),
222
+ n(t.$slots, "default")
223
+ ], 512),
224
+ o[1] || (o[1] = s("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
225
+ s("div", {
226
+ ref_key: "footer",
227
+ ref: K,
228
+ class: "bb-offcanvas__footer"
229
+ }, [
230
+ n(t.$slots, "footer")
231
+ ], 512)
232
+ ])
233
+ ], 512)) : z("", !0)
234
+ ], 16)
235
+ ], 16, fe)
236
+ ]),
237
+ _: 3
238
+ }));
235
239
  }
236
240
  });
237
241
  export {
238
- ge as default
242
+ ke as default
239
243
  };
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index274.js";
2
+ import { debounce as F } from "./index257.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
package/dist/index88.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index208.js";
2
+ import { useFocusTrap as z } from "./index227.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { useIntersectionObserver as R } from "./index132.js";
5
- import { waitFor as j } from "./index209.js";
5
+ import { waitFor as j } from "./index228.js";
6
6
  import G from "./index13.js";
7
7
  /* empty css */
8
- import J from "./index252.js";
8
+ import J from "./index255.js";
9
9
  /* empty css */
10
- import { useDebounceFn as K } from "./index204.js";
10
+ import { useDebounceFn as K } from "./index232.js";
11
11
  const re = /* @__PURE__ */ M({
12
12
  __name: "BbPopover",
13
13
  props: {
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index205.js";
2
+ import { clamp as p } from "./index204.js";
3
3
  import { getAsPercentageBetween as i } from "./index130.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.78",
3
+ "version": "2.0.79",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index220.js DELETED
@@ -1,54 +0,0 @@
1
- import { defineComponent as p, ref as b, watch as _, computed as m, openBlock as d, createElementBlock as c, normalizeClass as u, createElementVNode as t, createVNode as h, withCtx as f, toDisplayString as o } from "vue";
2
- import k from "./index222.js";
3
- const y = { class: "bb-base-date-picker__year-container" }, v = {
4
- "aria-live": "polite",
5
- class: "bb-base-date-picker__selected-day-label"
6
- }, B = { class: "bb-base-date-picker__weekday" }, D = { class: "bb-base-date-picker__monthday" }, M = { class: "bb-base-date-picker__month-button" }, C = /* @__PURE__ */ p({
7
- __name: "BaseDatePickerHeader",
8
- props: {
9
- cursor: {},
10
- disabled: { type: Boolean },
11
- hidden: { type: Boolean }
12
- },
13
- emits: ["mode:year", "mode:month"],
14
- setup(n) {
15
- const s = n, r = b("top"), l = (e, a) => {
16
- e && a && (r.value = e.isBefore(a) ? "top" : "bottom");
17
- };
18
- _(
19
- () => s.cursor,
20
- (e, a) => {
21
- l(e, a);
22
- }
23
- );
24
- const i = m(() => s.cursor.format("YYYY"));
25
- return (e, a) => (d(), c("div", {
26
- class: u(["bb-base-date-picker__header", { "bb-base-date-picker__header--hidden": e.hidden }])
27
- }, [
28
- t("div", y, [
29
- h(k, {
30
- direction: r.value,
31
- duration: 500,
32
- gap: 30
33
- }, {
34
- default: f(() => [
35
- (d(), c("span", {
36
- key: i.value,
37
- "aria-live": "polite",
38
- class: "bb-base-date-picker__year-button"
39
- }, o(i.value), 1))
40
- ]),
41
- _: 1
42
- }, 8, ["direction"])
43
- ]),
44
- t("div", v, [
45
- t("span", B, o(e.cursor.format("ddd")) + ", ", 1),
46
- t("span", D, o(e.cursor.format("DD")), 1),
47
- t("span", M, o(e.cursor.format("MMMM")), 1)
48
- ])
49
- ], 2));
50
- }
51
- });
52
- export {
53
- C as default
54
- };
package/dist/index239.js DELETED
@@ -1,6 +0,0 @@
1
- import { curry as e } from "./index290.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
3
- export {
4
- t as baseWhen,
5
- s as when
6
- };