bitboss-ui 2.1.23 → 2.1.25

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 (173) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index106.js +9 -9
  3. package/dist/index111.js +1 -1
  4. package/dist/index113.js +1 -1
  5. package/dist/index121.js +12 -12
  6. package/dist/index129.js +1 -1
  7. package/dist/index13.js +1 -1
  8. package/dist/index131.js +4 -4
  9. package/dist/index136.js +1 -1
  10. package/dist/index138.js +1 -1
  11. package/dist/index15.js +8 -8
  12. package/dist/index17.js +3 -3
  13. package/dist/index19.js +8 -8
  14. package/dist/index207.js +2 -2
  15. package/dist/index208.js +2 -2
  16. package/dist/index209.js +31 -66
  17. package/dist/index21.js +16 -16
  18. package/dist/index210.js +88 -0
  19. package/dist/index212.js +29 -2
  20. package/dist/index213.js +17 -2
  21. package/dist/index214.js +51 -2
  22. package/dist/index215.js +15 -2
  23. package/dist/index216.js +3 -13
  24. package/dist/index217.js +11 -12
  25. package/dist/index218.js +15 -10
  26. package/dist/index219.js +5 -183
  27. package/dist/index220.js +5 -4
  28. package/dist/index221.js +5 -3
  29. package/dist/index222.js +5 -2
  30. package/dist/index223.js +5 -2
  31. package/dist/index224.js +5 -18
  32. package/dist/index225.js +2 -12
  33. package/dist/index226.js +2 -51
  34. package/dist/index227.js +2 -15
  35. package/dist/index228.js +13 -12
  36. package/dist/index229.js +9 -15
  37. package/dist/index23.js +15 -15
  38. package/dist/index230.js +19 -28
  39. package/dist/index231.js +69 -16
  40. package/dist/index233.js +13 -106
  41. package/dist/index234.js +116 -0
  42. package/dist/index236.js +15 -0
  43. package/dist/index237.js +17 -113
  44. package/dist/index238.js +14 -0
  45. package/dist/index239.js +5 -228
  46. package/dist/index240.js +4 -34
  47. package/dist/index241.js +101 -81
  48. package/dist/index243.js +100 -10
  49. package/dist/index245.js +229 -2
  50. package/dist/index246.js +3 -7
  51. package/dist/index247.js +2 -7
  52. package/dist/index248.js +2 -5
  53. package/dist/index249.js +4 -5
  54. package/dist/index25.js +44 -42
  55. package/dist/index250.js +197 -5
  56. package/dist/index252.js +5 -5
  57. package/dist/index253.js +4 -4
  58. package/dist/index254.js +8 -5
  59. package/dist/index255.js +248 -6
  60. package/dist/index256.js +42 -240
  61. package/dist/index257.js +35 -43
  62. package/dist/index258.js +5 -44
  63. package/dist/index259.js +60 -5
  64. package/dist/index260.js +182 -59
  65. package/dist/index261.js +2 -9
  66. package/dist/index262.js +2 -23
  67. package/dist/index263.js +7 -5
  68. package/dist/index264.js +7 -20
  69. package/dist/index265.js +6 -4
  70. package/dist/index266.js +14 -195
  71. package/dist/index267.js +12 -0
  72. package/dist/index268.js +3 -3
  73. package/dist/index269.js +9 -3
  74. package/dist/index27.js +1 -1
  75. package/dist/index270.js +8 -6
  76. package/dist/index271.js +3 -16
  77. package/dist/index273.js +8 -8
  78. package/dist/index274.js +23 -8
  79. package/dist/index275.js +2 -67
  80. package/dist/index277.js +67 -2
  81. package/dist/index278.js +1 -1
  82. package/dist/index279.js +1 -1
  83. package/dist/index280.js +2 -3
  84. package/dist/index281.js +5 -0
  85. package/dist/index282.js +17 -7
  86. package/dist/index283.js +28 -7
  87. package/dist/index284.js +279 -10
  88. package/dist/index285.js +2 -4
  89. package/dist/index286.js +125 -4
  90. package/dist/index287.js +2 -2
  91. package/dist/index288.js +15 -3
  92. package/dist/index289.js +2 -17
  93. package/dist/index29.js +4 -4
  94. package/dist/index290.js +15 -27
  95. package/dist/index291.js +2 -3
  96. package/dist/index292.js +16 -3
  97. package/dist/index293.js +2 -3
  98. package/dist/index294.js +19 -2
  99. package/dist/index295.js +2 -280
  100. package/dist/index296.js +3 -2
  101. package/dist/index298.js +7 -2
  102. package/dist/index299.js +3 -16
  103. package/dist/index300.js +7 -2
  104. package/dist/index301.js +10 -18
  105. package/dist/index302.js +4 -2
  106. package/dist/index303.js +5 -14
  107. package/dist/index304.js +3 -2
  108. package/dist/index305.js +3 -19
  109. package/dist/index306.js +2 -2
  110. package/dist/index307.js +4 -27
  111. package/dist/index308.js +5 -2
  112. package/dist/index309.js +3 -2
  113. package/dist/index31.js +2 -2
  114. package/dist/index310.js +19 -2
  115. package/dist/index311.js +2 -2
  116. package/dist/index312.js +27 -2
  117. package/dist/index313.js +2 -22
  118. package/dist/index314.js +4 -0
  119. package/dist/index315.js +2 -6
  120. package/dist/index316.js +2 -125
  121. package/dist/index317.js +2 -2
  122. package/dist/index318.js +22 -3
  123. package/dist/index320.js +718 -5
  124. package/dist/index321.js +363 -715
  125. package/dist/index322.js +58 -366
  126. package/dist/index323.js +5 -58
  127. package/dist/index324.js +1 -1
  128. package/dist/index325.js +128 -32
  129. package/dist/index326.js +369 -28
  130. package/dist/index327.js +60 -0
  131. package/dist/index328.js +33 -33
  132. package/dist/index329.js +227 -57
  133. package/dist/index33.js +8 -8
  134. package/dist/index330.js +32 -128
  135. package/dist/index331.js +28 -369
  136. package/dist/index333.js +46 -6
  137. package/dist/index336.js +6 -7
  138. package/dist/index337.js +7 -5
  139. package/dist/index338.js +6 -8
  140. package/dist/index339.js +7 -92
  141. package/dist/index340.js +86 -221
  142. package/dist/index342.js +1 -1
  143. package/dist/index35.js +4 -4
  144. package/dist/index37.js +20 -20
  145. package/dist/index39.js +7 -7
  146. package/dist/index41.js +2 -2
  147. package/dist/index43.js +8 -8
  148. package/dist/index45.js +8 -8
  149. package/dist/index47.js +2 -2
  150. package/dist/index49.js +3 -3
  151. package/dist/index53.js +1 -1
  152. package/dist/index55.js +1 -1
  153. package/dist/index57.js +2 -2
  154. package/dist/index61.js +3 -3
  155. package/dist/index67.js +1 -1
  156. package/dist/index79.js +4 -4
  157. package/dist/index81.js +1 -1
  158. package/dist/index83.js +2 -2
  159. package/dist/index85.js +1 -1
  160. package/dist/index87.js +1 -1
  161. package/dist/index90.js +53 -51
  162. package/dist/index92.js +1 -1
  163. package/dist/index94.js +3 -3
  164. package/dist/index96.js +1 -1
  165. package/package.json +2 -2
  166. package/dist/index211.js +0 -15
  167. package/dist/index232.js +0 -8
  168. package/dist/index235.js +0 -102
  169. package/dist/index244.js +0 -5
  170. package/dist/index251.js +0 -7
  171. package/dist/index297.js +0 -18
  172. package/dist/index319.js +0 -7
  173. package/dist/index332.js +0 -49
package/dist/index90.js CHANGED
@@ -1,9 +1,9 @@
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 "./index217.js";
1
+ import { defineComponent as O, mergeModels as E, useModel as P, computed as v, 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 p, createCommentVNode as y, Fragment as U, createElementVNode as t, renderSlot as l, createTextVNode as j, toDisplayString as z, nextTick as G } from "vue";
2
+ import { parseSize as J } from "./index236.js";
3
3
  import { useId as D } from "./index8.js";
4
- import { useLocale as Q } from "./index216.js";
4
+ import { useLocale as Q } from "./index228.js";
5
5
  import { useMobile as X } from "./index9.js";
6
- import { useUntil as Y } from "./index218.js";
6
+ import { useUntil as Y } from "./index229.js";
7
7
  import { wait as h } from "./index135.js";
8
8
  const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
9
9
  ref: "header",
@@ -11,10 +11,10 @@ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
11
11
  }, ee = { class: "bb-offcanvas__close" }, oe = ["aria-label", "disabled"], te = {
12
12
  ref: "body",
13
13
  class: "bb-offcanvas__body scrollbar-border"
14
- }, le = {
14
+ }, se = { class: "bb-offcanvas__body-content" }, le = {
15
15
  ref: "footer",
16
16
  class: "bb-offcanvas__footer"
17
- }, ue = /* @__PURE__ */ O({
17
+ }, fe = /* @__PURE__ */ O({
18
18
  __name: "BbOffCanvas",
19
19
  props: /* @__PURE__ */ E({
20
20
  closeLabel: {},
@@ -38,33 +38,33 @@ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
38
38
  }),
39
39
  emits: /* @__PURE__ */ E(["shown", "hidden"], ["update:modelValue"]),
40
40
  setup(g, { emit: S }) {
41
- const o = g, w = S, t = P(g, "modelValue"), { t: V } = Q(), I = p(
41
+ const o = g, w = S, s = P(g, "modelValue"), { t: V } = Q(), I = v(
42
42
  () => o.closeLabel || V("dialog.closeLabel").value
43
43
  ), i = T(null), u = Y(
44
- () => t.value || o.eager,
44
+ () => s.value || o.eager,
45
45
  {
46
- initialValue: t.value || o.eager
46
+ initialValue: s.value || o.eager
47
47
  }
48
- ), f = `title_${D().id.value}`, m = `description_${D().id.value}`, C = (e) => {
48
+ ), f = `title_${D().id.value}`, b = `description_${D().id.value}`, _ = (e) => {
49
49
  if (e.key === "Escape" && (o.disabled || o.persistent))
50
50
  return e.preventDefault(), a.value = !0, h(200).then(() => {
51
51
  a.value = !1;
52
52
  }), !1;
53
- }, k = async (e) => {
53
+ }, C = async (e) => {
54
54
  var n, B, L, M;
55
55
  e ? ((n = window.globalThis) != null && n.document && !document.documentElement.style.getPropertyValue("--scrollbar-width") && (document.documentElement.style.setProperty(
56
56
  "--scrollbar-width",
57
57
  `${W()}px`
58
- ), document.addEventListener("keydown", C)), (B = i.value) == null || B.showModal(), o.focusTarget && G(() => {
58
+ ), document.addEventListener("keydown", _)), (B = i.value) == null || B.showModal(), o.focusTarget && G(() => {
59
59
  var $;
60
- const b = ($ = i.value) == null ? void 0 : $.querySelector(o.focusTarget);
61
- b && b instanceof HTMLElement && b.focus();
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"));
60
+ const m = ($ = i.value) == null ? void 0 : $.querySelector(o.focusTarget);
61
+ m && m instanceof HTMLElement && m.focus();
62
+ }), w("shown")) : (await h(o.transitionDuration), (L = window.globalThis) != null && L.document && document.removeEventListener("keydown", _), (M = i.value) == null || M.close(), w("hidden"));
63
63
  };
64
- q(t, k), A(() => {
65
- t.value && k(!0);
64
+ q(s, C), A(() => {
65
+ s.value && C(!0);
66
66
  });
67
- const N = p(() => _.value ? "100%" : o.size === "auto" ? "fit-content" : J(o.size, {
67
+ const N = v(() => k.value ? "100%" : o.size === "auto" ? "fit-content" : J(o.size, {
68
68
  sm: 384,
69
69
  md: 652,
70
70
  lg: 896
@@ -73,22 +73,22 @@ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
73
73
  return a.value = !0, h(300).then(() => {
74
74
  a.value = !1;
75
75
  }), !1;
76
- t.value = !1;
77
- }, a = T(!1), W = () => globalThis.document ? window.innerWidth - document.documentElement.clientWidth : 0, { isMobile: F } = X(), _ = p(
76
+ s.value = !1;
77
+ }, a = T(!1), W = () => globalThis.document ? window.innerWidth - document.documentElement.clientWidth : 0, { isMobile: F } = X(), k = v(
78
78
  () => o.fullscreen === !0 || o.fullscreen === "mobile" && F.value
79
79
  );
80
80
  return (e, n) => (c(), d("dialog", {
81
81
  ref_key: "dialog",
82
82
  ref: i,
83
- "aria-describedby": v(u) && e.description ? m : void 0,
84
- "aria-labelledby": v(u) && e.title ? f : void 0,
85
- "aria-live": t.value ? "polite" : "off",
83
+ "aria-describedby": p(u) && e.description ? b : void 0,
84
+ "aria-labelledby": p(u) && e.title ? f : void 0,
85
+ "aria-live": s.value ? "polite" : "off",
86
86
  class: R([
87
87
  "bb-offcanvas",
88
88
  [
89
89
  {
90
- "bb-offcanvas--open": t.value,
91
- "bb-offcanvas--fullscreen": _.value,
90
+ "bb-offcanvas--open": s.value,
91
+ "bb-offcanvas--fullscreen": k.value,
92
92
  "bb-offcanvas--compact": e.compact,
93
93
  "bb-offcanvas--deny-close": a.value,
94
94
  [`bb-offcanvas--${o.direction}`]: !0
@@ -97,7 +97,7 @@ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
97
97
  e.panelClasses
98
98
  ].flat()
99
99
  ]),
100
- inert: !t.value,
100
+ inert: !s.value,
101
101
  style: K({
102
102
  "--max-size": N.value,
103
103
  "--transition-duration": `${o.transitionDuration}ms`
@@ -105,22 +105,22 @@ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
105
105
  onCancel: r,
106
106
  onClick: H(r, ["self"])
107
107
  }, [
108
- v(u) ? (c(), d(U, { key: 0 }, [
109
- l("div", x, [
110
- s(e.$slots, "header", {
108
+ p(u) ? (c(), d(U, { key: 0 }, [
109
+ t("div", x, [
110
+ l(e.$slots, "header", {
111
111
  close: r,
112
112
  title: e.title,
113
113
  titleId: f
114
114
  }, () => [
115
- l("span", {
115
+ t("span", {
116
116
  id: f,
117
117
  class: "bb-offcanvas__title"
118
118
  }, [
119
- s(e.$slots, "title", { text: e.title }, () => [
119
+ l(e.$slots, "title", { text: e.title }, () => [
120
120
  j(z(e.title), 1)
121
121
  ])
122
122
  ]),
123
- l("span", ee, [
123
+ t("span", ee, [
124
124
  e.showClose ? (c(), d("button", {
125
125
  key: 0,
126
126
  "aria-label": I.value,
@@ -128,15 +128,15 @@ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
128
128
  type: "button",
129
129
  onClick: r
130
130
  }, [
131
- s(e.$slots, "close", {}, () => [
132
- n[0] || (n[0] = l("span", { class: "bb-offcanvas__close-icon" }, [
133
- l("svg", {
131
+ l(e.$slots, "close", {}, () => [
132
+ n[0] || (n[0] = t("span", { class: "bb-offcanvas__close-icon" }, [
133
+ t("svg", {
134
134
  "aria-hidden": "true",
135
135
  fill: "none",
136
136
  viewBox: "0 0 24 24",
137
137
  xmlns: "http://www.w3.org/2000/svg"
138
138
  }, [
139
- l("path", {
139
+ t("path", {
140
140
  d: "M23 23L1 1M23 1L1 23",
141
141
  stroke: "currentColor",
142
142
  "stroke-linecap": "round",
@@ -149,26 +149,28 @@ const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
149
149
  ])
150
150
  ])
151
151
  ], 512),
152
- l("div", te, [
153
- s(e.$slots, "description", {
154
- descriptionId: m,
155
- text: e.description
156
- }, () => [
157
- e.description ? (c(), d("div", {
158
- key: 0,
159
- id: m,
160
- class: "bb-offcanvas__description sr-only"
161
- }, z(e.description), 1)) : y("", !0)
162
- ]),
163
- s(e.$slots, "default")
152
+ t("div", te, [
153
+ t("div", se, [
154
+ l(e.$slots, "description", {
155
+ descriptionId: b,
156
+ text: e.description
157
+ }, () => [
158
+ e.description ? (c(), d("div", {
159
+ key: 0,
160
+ id: b,
161
+ class: "bb-offcanvas__description sr-only"
162
+ }, z(e.description), 1)) : y("", !0)
163
+ ]),
164
+ l(e.$slots, "default")
165
+ ])
164
166
  ], 512),
165
- l("div", le, [
166
- s(e.$slots, "footer")
167
+ t("div", le, [
168
+ l(e.$slots, "footer")
167
169
  ], 512)
168
170
  ], 64)) : y("", !0)
169
171
  ], 46, Z));
170
172
  }
171
173
  });
172
174
  export {
173
- ue as default
175
+ fe as default
174
176
  };
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 "./index272.js";
7
- import { useLocale as H } from "./index216.js";
7
+ import { useLocale as H } from "./index228.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 "./index218.js";
4
+ import { useLocale as U } from "./index228.js";
5
+ import { useUntil as W } from "./index229.js";
6
6
  import q from "./index13.js";
7
7
  /* empty css */
8
- import A from "./index237.js";
8
+ import A from "./index234.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 "./index207.js";
2
+ import { clamp as p } from "./index208.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.23",
3
+ "version": "2.1.25",
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/index211.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 "./index282.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/index232.js DELETED
@@ -1,8 +0,0 @@
1
- const o = (e, t = 50) => new Promise((r) => {
2
- const n = setInterval(() => {
3
- e() && (clearInterval(n), r());
4
- }, t);
5
- });
6
- export {
7
- o as waitFor
8
- };
package/dist/index235.js DELETED
@@ -1,102 +0,0 @@
1
- import { defineComponent as F, ref as H, computed as L, watch as N, createElementBlock as d, openBlock as v, Fragment as S, renderList as A, withModifiers as O, normalizeClass as P, toDisplayString as V } from "vue";
2
- import { hash as f } from "./index221.js";
3
- import { isNil as i } from "./index212.js";
4
- const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
- __name: "CommaBox",
6
- props: {
7
- options: {}
8
- },
9
- emits: ["option:unselected"],
10
- setup(m, { expose: h, emit: x }) {
11
- const t = m, a = x, n = H(null), l = L(() => t.options.some((e) => !e.disabled)), u = (e = 1) => {
12
- const s = i(n.value) ? -1 : n.value;
13
- let o = (s + e) % t.options.length;
14
- for (; t.options[o].disabled && o !== s; )
15
- o = u(e + 1);
16
- return o;
17
- }, b = () => {
18
- if (!l.value) return;
19
- const e = u();
20
- n.value = e;
21
- }, c = (e = 1) => {
22
- const s = i(n.value) ? 0 : n.value;
23
- let o = (s - e + t.options.length) % t.options.length;
24
- for (; t.options[o].disabled && o !== s; )
25
- o = c(e + 1);
26
- return o;
27
- }, w = async () => {
28
- if (!l.value) return;
29
- const e = c();
30
- n.value = e;
31
- }, I = () => {
32
- if (!l.value) return;
33
- let e = 0;
34
- for (; t.options[e].disabled; )
35
- e++;
36
- n.value = e;
37
- }, g = () => {
38
- if (!l.value) return;
39
- let e = t.options.length - 1;
40
- for (; t.options[e].disabled && e !== 0; )
41
- e--;
42
- n.value = e;
43
- }, k = () => {
44
- if (!l.value) return;
45
- let e = 0;
46
- for (; !t.options[e].selected && t.options.length !== e; )
47
- e++;
48
- n.value = e;
49
- }, _ = () => {
50
- if (!l.value) return;
51
- let e = t.options.length - 1;
52
- for (; t.options[e].selected && e !== 0; )
53
- e--;
54
- n.value = e;
55
- }, C = (e) => {
56
- if (!l.value) return;
57
- const s = t.options.findIndex(
58
- (o) => o.valueHash === e
59
- );
60
- s >= 0 && (n.value = s);
61
- }, r = () => {
62
- n.value = null;
63
- }, y = () => {
64
- if (i(n.value)) return;
65
- const e = t.options[n.value];
66
- e.selected && a("option:unselected", e);
67
- }, B = () => i(n.value) ? void 0 : t.options[n.value];
68
- return N(
69
- () => t.options,
70
- (e, s) => {
71
- f(e) !== f(s) && r();
72
- },
73
- {
74
- flush: "post"
75
- }
76
- ), h({
77
- focusNext: b,
78
- focusPrevious: w,
79
- focusFirst: I,
80
- focusFirstSelected: k,
81
- focusLast: g,
82
- focusLastSelected: _,
83
- blur: r,
84
- confirmOption: y,
85
- focusByHash: C,
86
- getHighlighted: B
87
- }), (e, s) => (v(!0), d(S, null, A(e.options, (o, p) => (v(), d("span", {
88
- key: o.valueHash,
89
- class: P({
90
- "bb-commabox-item": !0,
91
- "bb-commabox-item--focused": p === n.value,
92
- "bb-commabox-item--has-comma": p !== e.options.length - 1
93
- }),
94
- clearable: !0,
95
- text: o.text,
96
- "onClick:clear": O((D) => a("option:unselected", o), ["stop"])
97
- }, V(o.text), 43, z))), 128));
98
- }
99
- });
100
- export {
101
- j as default
102
- };
package/dist/index244.js DELETED
@@ -1,5 +0,0 @@
1
- const o = () => {
2
- };
3
- export {
4
- o as noop
5
- };
package/dist/index251.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index315.js";
2
- import { __require as t } from "./index301.js";
3
- var o = t();
4
- const a = /* @__PURE__ */ r(o);
5
- export {
6
- a as default
7
- };
package/dist/index297.js DELETED
@@ -1,18 +0,0 @@
1
- import { __module as r } from "./index298.js";
2
- var f = r.exports, o;
3
- function m() {
4
- return o ? r.exports : (o = 1, function(s, u) {
5
- (function(n, e) {
6
- s.exports = e();
7
- })(f, function() {
8
- return function(n, e) {
9
- e.prototype.isSameOrAfter = function(t, i) {
10
- return this.isSame(t, i) || this.isAfter(t, i);
11
- };
12
- };
13
- });
14
- }(r), r.exports);
15
- }
16
- export {
17
- m as __require
18
- };
package/dist/index319.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as t } from "./index315.js";
2
- import { __require as r } from "./index339.js";
3
- var o = r();
4
- const s = /* @__PURE__ */ t(o);
5
- export {
6
- s as default
7
- };
package/dist/index332.js DELETED
@@ -1,49 +0,0 @@
1
- import { elementScroll as f, observeElementOffset as s, observeElementRect as d, Virtualizer as p } from "./index346.js";
2
- import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index346.js";
3
- import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
4
- function w(e) {
5
- const t = new p(l(e)), a = E(t), u = t._didMount();
6
- return o(
7
- () => l(e).getScrollElement(),
8
- (r) => {
9
- r && t._willUpdate();
10
- },
11
- {
12
- immediate: !0
13
- }
14
- ), o(
15
- () => l(e),
16
- (r) => {
17
- t.setOptions({
18
- ...r,
19
- onChange: (c, m) => {
20
- var n;
21
- i(a), (n = r.onChange) == null || n.call(r, c, m);
22
- }
23
- }), t._willUpdate(), i(a);
24
- },
25
- {
26
- immediate: !0
27
- }
28
- ), v(u), a;
29
- }
30
- function z(e) {
31
- return w(
32
- g(() => ({
33
- observeElementRect: d,
34
- observeElementOffset: s,
35
- scrollToFn: f,
36
- ...l(e)
37
- }))
38
- );
39
- }
40
- export {
41
- p as Virtualizer,
42
- S as defaultKeyExtractor,
43
- V as defaultRangeExtractor,
44
- f as elementScroll,
45
- b as measureElement,
46
- s as observeElementOffset,
47
- d as observeElementRect,
48
- z as useVirtualizer
49
- };