bitboss-ui 2.1.0 → 2.1.1

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 (162) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +1 -1
  2. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  3. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  4. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  5. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +2 -2
  6. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
  7. package/dist/index.css +1 -1
  8. package/dist/index106.js +7 -7
  9. package/dist/index113.js +1 -1
  10. package/dist/index121.js +11 -11
  11. package/dist/index129.js +1 -1
  12. package/dist/index13.js +1 -1
  13. package/dist/index131.js +3 -3
  14. package/dist/index133.js +1 -1
  15. package/dist/index136.js +1 -1
  16. package/dist/index137.js +2 -2
  17. package/dist/index139.js +2 -2
  18. package/dist/index15.js +8 -8
  19. package/dist/index17.js +3 -3
  20. package/dist/index19.js +8 -8
  21. package/dist/index206.js +138 -2
  22. package/dist/index207.js +2 -138
  23. package/dist/index209.js +13 -2
  24. package/dist/index21.js +16 -16
  25. package/dist/index210.js +13 -4
  26. package/dist/index211.js +11 -2
  27. package/dist/index212.js +31 -63
  28. package/dist/index213.js +68 -0
  29. package/dist/index215.js +13 -13
  30. package/dist/index216.js +4 -13
  31. package/dist/index217.js +19 -10
  32. package/dist/index218.js +197 -5
  33. package/dist/index220.js +113 -5
  34. package/dist/index222.js +3 -5
  35. package/dist/index223.js +86 -5
  36. package/dist/index225.js +29 -2
  37. package/dist/index226.js +17 -2
  38. package/dist/index227.js +49 -18
  39. package/dist/index228.js +15 -113
  40. package/dist/index229.js +5 -0
  41. package/dist/index23.js +15 -15
  42. package/dist/index230.js +12 -86
  43. package/dist/index231.js +18 -0
  44. package/dist/index232.js +2 -29
  45. package/dist/index233.js +4 -16
  46. package/dist/index234.js +5 -17
  47. package/dist/index235.js +5 -51
  48. package/dist/index236.js +5 -15
  49. package/dist/index237.js +5 -3
  50. package/dist/index238.js +5 -12
  51. package/dist/index239.js +5 -4
  52. package/dist/index240.js +2 -197
  53. package/dist/index241.js +4 -0
  54. package/dist/index242.js +2 -5
  55. package/dist/index243.js +18 -5
  56. package/dist/index244.js +12 -8
  57. package/dist/index245.js +5 -249
  58. package/dist/index246.js +100 -46
  59. package/dist/index248.js +100 -5
  60. package/dist/index25.js +35 -42
  61. package/dist/index250.js +227 -17
  62. package/dist/index251.js +176 -11
  63. package/dist/index252.js +5 -6
  64. package/dist/index253.js +5 -106
  65. package/dist/index254.js +10 -0
  66. package/dist/index255.js +245 -95
  67. package/dist/index256.js +54 -0
  68. package/dist/index257.js +39 -223
  69. package/dist/index258.js +5 -177
  70. package/dist/index259.js +60 -2
  71. package/dist/index260.js +2 -3
  72. package/dist/index261.js +2 -34
  73. package/dist/index262.js +2 -2
  74. package/dist/index27.js +1 -1
  75. package/dist/index271.js +1 -1
  76. package/dist/index273.js +2 -5
  77. package/dist/index274.js +5 -8
  78. package/dist/index275.js +67 -2
  79. package/dist/index276.js +5 -67
  80. package/dist/index277.js +8 -5
  81. package/dist/index278.js +6 -3
  82. package/dist/index279.js +11 -3
  83. package/dist/index280.js +4 -0
  84. package/dist/index281.js +3 -7
  85. package/dist/index283.js +7 -11
  86. package/dist/index285.js +5 -3
  87. package/dist/index286.js +4 -3
  88. package/dist/index287.js +1 -1
  89. package/dist/index288.js +1 -1
  90. package/dist/index29.js +3 -3
  91. package/dist/index290.js +3 -280
  92. package/dist/index291.js +3 -2
  93. package/dist/index292.js +271 -116
  94. package/dist/index293.js +2 -2
  95. package/dist/index294.js +123 -13
  96. package/dist/index295.js +2 -2
  97. package/dist/index296.js +13 -14
  98. package/dist/index298.js +9 -9
  99. package/dist/index300.js +14 -17
  100. package/dist/index302.js +17 -17
  101. package/dist/index304.js +3 -27
  102. package/dist/index305.js +3 -2
  103. package/dist/index306.js +1 -1
  104. package/dist/index307.js +6 -2
  105. package/dist/index308.js +19 -2
  106. package/dist/index309.js +2 -2
  107. package/dist/index31.js +2 -2
  108. package/dist/index310.js +27 -22
  109. package/dist/index311.js +4 -0
  110. package/dist/index312.js +2 -3
  111. package/dist/index313.js +2 -3
  112. package/dist/index315.js +2 -6
  113. package/dist/index316.js +21 -1
  114. package/dist/index318.js +1 -1
  115. package/dist/index322.js +2 -33
  116. package/dist/index323.js +8 -28
  117. package/dist/index324.js +8 -0
  118. package/dist/index325.js +8 -2
  119. package/dist/index326.js +6 -128
  120. package/dist/index327.js +220 -361
  121. package/dist/index328.js +58 -8
  122. package/dist/index329.js +58 -6
  123. package/dist/index33.js +8 -8
  124. package/dist/index330.js +32 -7
  125. package/dist/index331.js +28 -47
  126. package/dist/index333.js +127 -17
  127. package/dist/index334.js +367 -56
  128. package/dist/index335.js +47 -58
  129. package/dist/index336.js +6 -227
  130. package/dist/index337.js +17 -5
  131. package/dist/index338.js +1 -1
  132. package/dist/index340.js +1 -1
  133. package/dist/index35.js +4 -4
  134. package/dist/index37.js +20 -20
  135. package/dist/index39.js +15 -15
  136. package/dist/index41.js +2 -2
  137. package/dist/index43.js +8 -8
  138. package/dist/index45.js +8 -8
  139. package/dist/index47.js +2 -2
  140. package/dist/index49.js +3 -3
  141. package/dist/index53.js +1 -1
  142. package/dist/index55.js +1 -1
  143. package/dist/index57.js +2 -2
  144. package/dist/index61.js +1 -1
  145. package/dist/index67.js +1 -1
  146. package/dist/index79.js +2 -2
  147. package/dist/index81.js +1 -1
  148. package/dist/index85.js +1 -1
  149. package/dist/index90.js +59 -66
  150. package/dist/index92.js +1 -1
  151. package/dist/index94.js +3 -3
  152. package/dist/index96.js +1 -1
  153. package/package.json +2 -2
  154. package/dist/index214.js +0 -15
  155. package/dist/index219.js +0 -7
  156. package/dist/index221.js +0 -7
  157. package/dist/index224.js +0 -4
  158. package/dist/index247.js +0 -46
  159. package/dist/index249.js +0 -62
  160. package/dist/index282.js +0 -9
  161. package/dist/index317.js +0 -7
  162. package/dist/index332.js +0 -9
package/dist/index90.js CHANGED
@@ -1,22 +1,20 @@
1
- import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as s, renderSlot as l, createTextVNode as j, toDisplayString as V, createVNode as G, withCtx as J, nextTick as Q } from "vue";
2
- import { parseSize as X } from "./index215.js";
3
- import { useId as z } from "./index8.js";
4
- import { useLocale as Y } from "./index216.js";
5
- import { useMobile as Z } from "./index9.js";
6
- import { useUntil as x } from "./index217.js";
1
+ import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as l, renderSlot as s, createTextVNode as j, toDisplayString as z, nextTick as G } from "vue";
2
+ import { parseSize as J } from "./index209.js";
3
+ import { useId as D } from "./index8.js";
4
+ import { useLocale as Q } from "./index210.js";
5
+ import { useMobile as X } from "./index9.js";
6
+ import { useUntil as Y } from "./index211.js";
7
7
  import { wait as h } from "./index135.js";
8
- import ee from "./index111.js";
9
- /* empty css */
10
- const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
8
+ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
11
9
  ref: "header",
12
10
  class: "bb-offcanvas__header"
13
- }, se = { class: "bb-offcanvas__close" }, le = ["aria-label", "disabled"], ae = {
11
+ }, ee = { class: "bb-offcanvas__close" }, oe = ["aria-label", "disabled"], te = {
14
12
  ref: "body",
15
13
  class: "bb-offcanvas__body scrollbar-border"
16
- }, ne = {
14
+ }, le = {
17
15
  ref: "footer",
18
16
  class: "bb-offcanvas__footer"
19
- }, ve = /* @__PURE__ */ O({
17
+ }, ue = /* @__PURE__ */ O({
20
18
  __name: "BbOffCanvas",
21
19
  props: /* @__PURE__ */ E({
22
20
  closeLabel: {},
@@ -39,106 +37,106 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
39
37
  modelModifiers: {}
40
38
  }),
41
39
  emits: /* @__PURE__ */ E(["shown", "hidden"], ["update:modelValue"]),
42
- setup(w, { emit: D }) {
43
- const t = w, g = D, o = P(w, "modelValue"), { t: S } = Y(), N = p(
44
- () => t.closeLabel || S("dialog.closeLabel").value
45
- ), i = T(null), u = x(
46
- () => o.value || t.eager,
40
+ setup(g, { emit: S }) {
41
+ const o = g, w = S, t = P(g, "modelValue"), { t: V } = Q(), I = p(
42
+ () => o.closeLabel || V("dialog.closeLabel").value
43
+ ), i = T(null), u = Y(
44
+ () => t.value || o.eager,
47
45
  {
48
- initialValue: o.value || t.eager
46
+ initialValue: t.value || o.eager
49
47
  }
50
- ), f = `title_${z().id.value}`, m = `description_${z().id.value}`, C = (e) => {
51
- if (e.key === "Escape" && (t.disabled || t.persistent))
48
+ ), f = `title_${D().id.value}`, m = `description_${D().id.value}`, C = (e) => {
49
+ if (e.key === "Escape" && (o.disabled || o.persistent))
52
50
  return e.preventDefault(), a.value = !0, h(200).then(() => {
53
51
  a.value = !1;
54
52
  }), !1;
55
- }, _ = async (e) => {
56
- var n, B, $, L;
53
+ }, k = async (e) => {
54
+ var n, B, L, M;
57
55
  e ? ((n = window.globalThis) != null && n.document && !document.documentElement.style.getPropertyValue("--scrollbar-width") && (document.documentElement.style.setProperty(
58
56
  "--scrollbar-width",
59
57
  `${W()}px`
60
- ), document.addEventListener("keydown", C)), (B = i.value) == null || B.showModal(), t.focusTarget && Q(() => {
61
- var M;
62
- const b = (M = i.value) == null ? void 0 : M.querySelector(t.focusTarget);
58
+ ), document.addEventListener("keydown", C)), (B = i.value) == null || B.showModal(), o.focusTarget && G(() => {
59
+ var $;
60
+ const b = ($ = i.value) == null ? void 0 : $.querySelector(o.focusTarget);
63
61
  b && b instanceof HTMLElement && b.focus();
64
- }), g("shown")) : (await h(t.transitionDuration), ($ = window.globalThis) != null && $.document && document.removeEventListener("keydown", C), (L = i.value) == null || L.close(), g("hidden"));
62
+ }), w("shown")) : (await h(o.transitionDuration), (L = window.globalThis) != null && L.document && document.removeEventListener("keydown", C), (M = i.value) == null || M.close(), w("hidden"));
65
63
  };
66
- q(o, _), A(() => {
67
- o.value && _(!0);
64
+ q(t, k), A(() => {
65
+ t.value && k(!0);
68
66
  });
69
- const I = p(() => k.value ? "100%" : t.size === "auto" ? "fit-content" : X(t.size, {
67
+ const N = p(() => _.value ? "100%" : o.size === "auto" ? "fit-content" : J(o.size, {
70
68
  sm: 384,
71
69
  md: 652,
72
70
  lg: 896
73
71
  })), r = (e) => {
74
- if (e.preventDefault(), t.disabled || t.persistent)
72
+ if (e.preventDefault(), o.disabled || o.persistent)
75
73
  return a.value = !0, h(300).then(() => {
76
74
  a.value = !1;
77
75
  }), !1;
78
- o.value = !1;
79
- }, a = T(!1), W = () => globalThis.document ? window.innerWidth - document.documentElement.clientWidth : 0, { isMobile: F } = Z(), k = p(
80
- () => t.fullscreen === !0 || t.fullscreen === "mobile" && F.value
76
+ t.value = !1;
77
+ }, a = T(!1), W = () => globalThis.document ? window.innerWidth - document.documentElement.clientWidth : 0, { isMobile: F } = X(), _ = p(
78
+ () => o.fullscreen === !0 || o.fullscreen === "mobile" && F.value
81
79
  );
82
80
  return (e, n) => (c(), d("dialog", {
83
81
  ref_key: "dialog",
84
82
  ref: i,
85
83
  "aria-describedby": v(u) && e.description ? m : void 0,
86
84
  "aria-labelledby": v(u) && e.title ? f : void 0,
87
- "aria-live": o.value ? "polite" : "off",
85
+ "aria-live": t.value ? "polite" : "off",
88
86
  class: R([
89
87
  "bb-offcanvas",
90
88
  [
91
89
  {
92
- "bb-offcanvas--open": o.value,
93
- "bb-offcanvas--fullscreen": k.value,
90
+ "bb-offcanvas--open": t.value,
91
+ "bb-offcanvas--fullscreen": _.value,
94
92
  "bb-offcanvas--compact": e.compact,
95
93
  "bb-offcanvas--deny-close": a.value,
96
- [`bb-offcanvas--${t.direction}`]: !0
94
+ [`bb-offcanvas--${o.direction}`]: !0
97
95
  },
98
96
  e.overlayClasses,
99
97
  e.panelClasses
100
98
  ].flat()
101
99
  ]),
102
- inert: !o.value,
100
+ inert: !t.value,
103
101
  style: K({
104
- "--max-size": I.value,
105
- "--transition-duration": `${t.transitionDuration}ms`
102
+ "--max-size": N.value,
103
+ "--transition-duration": `${o.transitionDuration}ms`
106
104
  }),
107
105
  onCancel: r,
108
106
  onClick: H(r, ["self"])
109
107
  }, [
110
108
  v(u) ? (c(), d(U, { key: 0 }, [
111
- s("div", oe, [
112
- l(e.$slots, "header", {
109
+ l("div", x, [
110
+ s(e.$slots, "header", {
113
111
  close: r,
114
112
  title: e.title,
115
113
  titleId: f
116
114
  }, () => [
117
- s("span", {
115
+ l("span", {
118
116
  id: f,
119
117
  class: "bb-offcanvas__title"
120
118
  }, [
121
- l(e.$slots, "title", { text: e.title }, () => [
122
- j(V(e.title), 1)
119
+ s(e.$slots, "title", { text: e.title }, () => [
120
+ j(z(e.title), 1)
123
121
  ])
124
122
  ]),
125
- s("span", se, [
123
+ l("span", ee, [
126
124
  e.showClose ? (c(), d("button", {
127
125
  key: 0,
128
- "aria-label": N.value,
129
- disabled: t.disabled,
126
+ "aria-label": I.value,
127
+ disabled: o.disabled,
130
128
  type: "button",
131
129
  onClick: r
132
130
  }, [
133
- l(e.$slots, "close", {}, () => [
134
- n[0] || (n[0] = s("span", { class: "bb-offcanvas__close-icon" }, [
135
- s("svg", {
131
+ s(e.$slots, "close", {}, () => [
132
+ n[0] || (n[0] = l("span", { class: "bb-offcanvas__close-icon" }, [
133
+ l("svg", {
136
134
  "aria-hidden": "true",
137
135
  fill: "none",
138
136
  viewBox: "0 0 24 24",
139
137
  xmlns: "http://www.w3.org/2000/svg"
140
138
  }, [
141
- s("path", {
139
+ l("path", {
142
140
  d: "M23 23L1 1M23 1L1 23",
143
141
  stroke: "currentColor",
144
142
  "stroke-linecap": "round",
@@ -147,12 +145,12 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
147
145
  ])
148
146
  ], -1))
149
147
  ])
150
- ], 8, le)) : y("", !0)
148
+ ], 8, oe)) : y("", !0)
151
149
  ])
152
150
  ])
153
151
  ], 512),
154
- s("div", ae, [
155
- l(e.$slots, "description", {
152
+ l("div", te, [
153
+ s(e.$slots, "description", {
156
154
  descriptionId: m,
157
155
  text: e.description
158
156
  }, () => [
@@ -160,22 +158,17 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
160
158
  key: 0,
161
159
  id: m,
162
160
  class: "bb-offcanvas__description sr-only"
163
- }, V(e.description), 1)) : y("", !0)
161
+ }, z(e.description), 1)) : y("", !0)
164
162
  ]),
165
- G(ee, { "transition-duration": 500 }, {
166
- default: J(() => [
167
- l(e.$slots, "default")
168
- ]),
169
- _: 3
170
- })
163
+ s(e.$slots, "default")
171
164
  ], 512),
172
- s("div", ne, [
173
- l(e.$slots, "footer")
165
+ l("div", le, [
166
+ s(e.$slots, "footer")
174
167
  ], 512)
175
168
  ], 64)) : y("", !0)
176
- ], 46, te));
169
+ ], 46, Z));
177
170
  }
178
171
  });
179
172
  export {
180
- ve as default
173
+ ue as default
181
174
  };
package/dist/index92.js CHANGED
@@ -4,7 +4,7 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
4
4
  import P from "./index13.js";
5
5
  /* empty css */
6
6
  import { debounce as X } from "./index268.js";
7
- import { useLocale as H } from "./index216.js";
7
+ import { useLocale as H } from "./index210.js";
8
8
  import { useRoute as J } from "./index142.js";
9
9
  const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
10
10
  __name: "BbPagination",
package/dist/index94.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as l, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
2
2
  import { useId as H } from "./index8.js";
3
3
  import { useIntersectionObserver as N } from "./index137.js";
4
- import { useLocale as U } from "./index216.js";
5
- import { useUntil as W } from "./index217.js";
4
+ import { useLocale as U } from "./index210.js";
5
+ import { useUntil as W } from "./index211.js";
6
6
  import q from "./index13.js";
7
7
  /* empty css */
8
- import A from "./index228.js";
8
+ import A from "./index220.js";
9
9
  /* empty css */
10
10
  const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
11
11
  __name: "BbPopover",
package/dist/index96.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index206.js";
2
+ import { clamp as p } from "./index207.js";
3
3
  import { getAsPercentageBetween as i } from "./index136.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.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -92,4 +92,4 @@
92
92
  "lint-staged": {
93
93
  "*.{js,css,md,html,json,vue,ts}": "prettier --write"
94
94
  }
95
- }
95
+ }
package/dist/index214.js DELETED
@@ -1,15 +0,0 @@
1
- import { createElementBlock as t, openBlock as n, renderSlot as e } from "vue";
2
- /* empty css */
3
- import r from "./index281.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]]);
13
- export {
14
- i as default
15
- };
package/dist/index219.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index315.js";
2
- import { __require as o } from "./index292.js";
3
- var t = o();
4
- const m = /* @__PURE__ */ r(t);
5
- export {
6
- m as default
7
- };
package/dist/index221.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index315.js";
2
- import { __require as e } from "./index296.js";
3
- var t = e();
4
- const m = /* @__PURE__ */ r(t);
5
- export {
6
- m as default
7
- };
package/dist/index224.js DELETED
@@ -1,4 +0,0 @@
1
- const e = (t) => t;
2
- export {
3
- e as identity
4
- };
package/dist/index247.js DELETED
@@ -1,46 +0,0 @@
1
- import { defineComponent as _, computed as a, createElementBlock as c, openBlock as o, createElementVNode as p, Fragment as b, renderList as h, createBlock as k, normalizeClass as f, withCtx as y, createTextVNode as x, toDisplayString as B } from "vue";
2
- import C from "./index13.js";
3
- /* empty css */
4
- const M = { class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector" }, v = { class: "content" }, E = /* @__PURE__ */ _({
5
- __name: "BaseDatePickerMonthSelector",
6
- props: {
7
- cursor: {},
8
- disabled: { type: Boolean }
9
- },
10
- emits: ["update:month"],
11
- setup(l, { emit: d }) {
12
- const s = l, m = d, i = a(() => s.cursor.month()), u = a(
13
- () => new Array(12).fill(0).map((r, t) => {
14
- const n = s.cursor.clone().startOf("year").add(t, "month");
15
- return {
16
- text: n.format("MMMM"),
17
- key: n.unix(),
18
- selected: n.month() === i.value,
19
- handler: () => m("update:month", t)
20
- };
21
- })
22
- );
23
- return (r, t) => (o(), c("div", M, [
24
- p("div", v, [
25
- (o(!0), c(b, null, h(u.value, (e) => (o(), k(C, {
26
- key: e.key,
27
- class: f({
28
- content__btn: !0,
29
- "content__btn--selected": e.selected
30
- }),
31
- disabled: r.disabled,
32
- type: "button",
33
- onClick: e.handler
34
- }, {
35
- default: y(() => [
36
- x(B(e.text), 1)
37
- ]),
38
- _: 2
39
- }, 1032, ["class", "disabled", "onClick"]))), 128))
40
- ])
41
- ]));
42
- }
43
- });
44
- export {
45
- E as default
46
- };
package/dist/index249.js DELETED
@@ -1,62 +0,0 @@
1
- import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
2
- import { range as H } from "./index337.js";
3
- import M from "./index13.js";
4
- /* empty css */
5
- const n = 10, l = 3, V = /* @__PURE__ */ g({
6
- __name: "BaseDatePickerYearSelector",
7
- props: {
8
- cursor: {},
9
- disabled: { type: Boolean }
10
- },
11
- emits: ["update:year"],
12
- setup(p, { emit: _ }) {
13
- const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
14
- () => H(c.value, s.value).map((e) => ({
15
- text: e,
16
- key: e,
17
- selected: e === r.value,
18
- handler: () => b("update:year", e)
19
- }))
20
- ), k = (e) => {
21
- const t = e.target;
22
- t.scrollTop <= 100 ? c.value = Math.max(
23
- c.value - n * l,
24
- r.value - 200
25
- ) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
26
- };
27
- return h(() => {
28
- if (!o.value) return;
29
- const e = o.value.querySelector(
30
- ".content__btn--selected"
31
- );
32
- e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
33
- }), (e, t) => (u(), m("div", {
34
- ref_key: "container",
35
- ref: o,
36
- class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
37
- }, [
38
- y("div", {
39
- class: "content",
40
- onScrollPassive: k
41
- }, [
42
- (u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
43
- key: a.key,
44
- class: S({
45
- content__btn: !0,
46
- "content__btn--selected": a.selected
47
- }),
48
- disabled: e.disabled,
49
- onClick: a.handler
50
- }, {
51
- default: T(() => [
52
- E(w(a.text), 1)
53
- ]),
54
- _: 2
55
- }, 1032, ["class", "disabled", "onClick"]))), 128))
56
- ], 32)
57
- ], 512));
58
- }
59
- });
60
- export {
61
- V as default
62
- };
package/dist/index282.js DELETED
@@ -1,9 +0,0 @@
1
- import o from "./index334.js";
2
- import r from "./index335.js";
3
- const e = {
4
- it: o,
5
- en: r
6
- };
7
- export {
8
- e as locales
9
- };
package/dist/index317.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index315.js";
2
- import { __require as o } from "./index336.js";
3
- var e = o();
4
- const s = /* @__PURE__ */ r(e);
5
- export {
6
- s as default
7
- };
package/dist/index332.js DELETED
@@ -1,9 +0,0 @@
1
- function c(n, e) {
2
- const u = [];
3
- for (let t = 0; t < n.length; t += e)
4
- u.push(n.slice(t, t + e));
5
- return u;
6
- }
7
- export {
8
- c as chunk
9
- };