bitboss-ui 2.1.76 → 2.1.78

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 (187) hide show
  1. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +23 -2
  2. package/dist/components/BbPopover/BbPopover.vue.d.ts +34 -9
  3. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +6 -0
  4. package/dist/components/CommonPopover.vue.d.ts +5 -0
  5. package/dist/index.css +1 -1
  6. package/dist/index107.js +9 -9
  7. package/dist/index112.js +1 -1
  8. package/dist/index114.js +1 -1
  9. package/dist/index120.js +1 -1
  10. package/dist/index122.js +13 -13
  11. package/dist/index13.js +2 -2
  12. package/dist/index130.js +1 -1
  13. package/dist/index132.js +5 -5
  14. package/dist/index134.js +1 -1
  15. package/dist/index136.js +2 -2
  16. package/dist/index139.js +1 -1
  17. package/dist/index142.js +1 -1
  18. package/dist/index143.js +2 -2
  19. package/dist/index15.js +5 -5
  20. package/dist/index17.js +3 -3
  21. package/dist/index19.js +8 -8
  22. package/dist/index21.js +13 -13
  23. package/dist/index215.js +2 -2
  24. package/dist/index216.js +2 -2
  25. package/dist/index217.js +5 -7
  26. package/dist/index218.js +8 -2
  27. package/dist/index219.js +32 -4
  28. package/dist/index220.js +28 -8
  29. package/dist/index222.js +4 -2
  30. package/dist/index223.js +13 -2
  31. package/dist/index224.js +20 -2
  32. package/dist/index225.js +200 -12
  33. package/dist/index227.js +135 -3
  34. package/dist/index23.js +11 -11
  35. package/dist/index230.js +49 -16
  36. package/dist/index231.js +16 -11
  37. package/dist/index232.js +105 -50
  38. package/dist/index234.js +100 -12
  39. package/dist/index236.js +3 -29
  40. package/dist/index237.js +5 -16
  41. package/dist/index238.js +5 -4
  42. package/dist/index239.js +5 -106
  43. package/dist/index240.js +7 -0
  44. package/dist/index241.js +5 -100
  45. package/dist/index242.js +7 -0
  46. package/dist/index243.js +2 -127
  47. package/dist/index245.js +3 -229
  48. package/dist/index246.js +2 -13
  49. package/dist/index247.js +11 -3
  50. package/dist/index248.js +8 -5
  51. package/dist/index249.js +13 -5
  52. package/dist/index25.js +3 -3
  53. package/dist/index250.js +13 -5
  54. package/dist/index251.js +4 -5
  55. package/dist/index252.js +23 -5
  56. package/dist/index253.js +3 -5
  57. package/dist/index254.js +3 -20
  58. package/dist/index255.js +17 -32
  59. package/dist/index256.js +12 -28
  60. package/dist/{index233.js → index257.js} +1 -1
  61. package/dist/index258.js +12 -34
  62. package/dist/index259.js +29 -2
  63. package/dist/index260.js +15 -6
  64. package/dist/index261.js +4 -7
  65. package/dist/index262.js +229 -10
  66. package/dist/index263.js +9 -2
  67. package/dist/index264.js +3 -4
  68. package/dist/index265.js +67 -3
  69. package/dist/index266.js +2 -4
  70. package/dist/index267.js +3 -201
  71. package/dist/index268.js +11 -0
  72. package/dist/index269.js +8 -85
  73. package/dist/index27.js +1 -1
  74. package/dist/index270.js +25 -0
  75. package/dist/index271.js +5 -5
  76. package/dist/index272.js +6 -6
  77. package/dist/index273.js +15 -7
  78. package/dist/index274.js +3 -268
  79. package/dist/index275.js +30 -48
  80. package/dist/index276.js +9 -52
  81. package/dist/index277.js +5 -32
  82. package/dist/index278.js +6 -60
  83. package/dist/index279.js +268 -9
  84. package/dist/index280.js +50 -21
  85. package/dist/index281.js +50 -7
  86. package/dist/index282.js +31 -7
  87. package/dist/index283.js +59 -8
  88. package/dist/index284.js +2 -23
  89. package/dist/index285.js +85 -12
  90. package/dist/index287.js +7 -65
  91. package/dist/index288.js +8 -6
  92. package/dist/index289.js +7 -16
  93. package/dist/index29.js +3 -3
  94. package/dist/index290.js +2 -41
  95. package/dist/index291.js +7 -11
  96. package/dist/index292.js +7 -3
  97. package/dist/index293.js +43 -0
  98. package/dist/index295.js +3 -5
  99. package/dist/index296.js +4 -7
  100. package/dist/index297.js +7 -3
  101. package/dist/index298.js +1 -1
  102. package/dist/index299.js +1 -1
  103. package/dist/index300.js +17 -2
  104. package/dist/index301.js +2 -28
  105. package/dist/index302.js +3 -17
  106. package/dist/index303.js +2 -4
  107. package/dist/index304.js +27 -279
  108. package/dist/index305.js +4 -2
  109. package/dist/index306.js +3 -125
  110. package/dist/index307.js +5 -2
  111. package/dist/index308.js +278 -13
  112. package/dist/index309.js +2 -2
  113. package/dist/index31.js +2 -2
  114. package/dist/index310.js +121 -12
  115. package/dist/index311.js +2 -2
  116. package/dist/index312.js +10 -11
  117. package/dist/index314.js +12 -15
  118. package/dist/index316.js +16 -2
  119. package/dist/index317.js +2 -3
  120. package/dist/index318.js +19 -5
  121. package/dist/index319.js +2 -3
  122. package/dist/index320.js +5 -2
  123. package/dist/index323.js +1 -1
  124. package/dist/index324.js +1 -1
  125. package/dist/index325.js +1 -1
  126. package/dist/index326.js +1 -1
  127. package/dist/index327.js +1 -1
  128. package/dist/index328.js +719 -6
  129. package/dist/index329.js +366 -4
  130. package/dist/index33.js +8 -8
  131. package/dist/index330.js +57 -719
  132. package/dist/index331.js +2 -366
  133. package/dist/index332.js +3 -57
  134. package/dist/index333.js +6 -58
  135. package/dist/index334.js +35 -58
  136. package/dist/index335.js +6 -47
  137. package/dist/index336.js +125 -31
  138. package/dist/index337.js +398 -6
  139. package/dist/index338.js +44 -126
  140. package/dist/index339.js +7 -397
  141. package/dist/index340.js +5 -7
  142. package/dist/index341.js +8 -6
  143. package/dist/index342.js +57 -7
  144. package/dist/index343.js +57 -92
  145. package/dist/index344.js +1 -1
  146. package/dist/index345.js +85 -512
  147. package/dist/index346.js +5 -134
  148. package/dist/index347.js +7 -5
  149. package/dist/index348.js +18 -6
  150. package/dist/index349.js +8 -18
  151. package/dist/index35.js +4 -4
  152. package/dist/index350.js +14 -8
  153. package/dist/index351.js +6 -14
  154. package/dist/index352.js +133 -6
  155. package/dist/index353.js +515 -45
  156. package/dist/index356.js +44 -435
  157. package/dist/index357.js +427 -114
  158. package/dist/index358.js +130 -0
  159. package/dist/index37.js +17 -17
  160. package/dist/index39.js +6 -6
  161. package/dist/index41.js +2 -2
  162. package/dist/index43.js +8 -8
  163. package/dist/index45.js +5 -5
  164. package/dist/index49.js +20 -20
  165. package/dist/index53.js +1 -1
  166. package/dist/index55.js +1 -1
  167. package/dist/index57.js +2 -2
  168. package/dist/index61.js +4 -4
  169. package/dist/index67.js +1 -1
  170. package/dist/index80.js +209 -156
  171. package/dist/index82.js +1 -1
  172. package/dist/index84.js +2 -2
  173. package/dist/index86.js +3 -3
  174. package/dist/index88.js +1 -1
  175. package/dist/index91.js +3 -3
  176. package/dist/index93.js +2 -2
  177. package/dist/index95.js +160 -100
  178. package/dist/index97.js +1 -1
  179. package/dist/types/CommonProps.d.ts +1 -1
  180. package/dist/utilities/functions/isNotEmpty.d.ts +1 -0
  181. package/package.json +1 -1
  182. package/dist/index221.js +0 -7
  183. package/dist/index226.js +0 -11
  184. package/dist/index228.js +0 -5
  185. package/dist/index235.js +0 -19
  186. package/dist/index294.js +0 -5
  187. /package/dist/{index286.js → index244.js} +0 -0
package/dist/index95.js CHANGED
@@ -1,18 +1,18 @@
1
- import { defineComponent as G, mergeModels as E, ref as U, useTemplateRef as q, computed as s, useModel as H, watch as m, nextTick as K, createElementBlock as j, openBlock as A, Fragment as J, renderSlot as B, createCommentVNode as C, createVNode as Q, normalizeProps as X, mergeProps as V, unref as v, withCtx as $, createElementVNode as f, createBlock as Y } from "vue";
2
- import { useId as Z } from "./index8.js";
3
- import { useIntersectionObserver as _, useElementSize as ee } from "./index141.js";
4
- import { useLocale as te } from "./index225.js";
5
- import { useUntil as oe } from "./index246.js";
6
- import ae from "./index13.js";
1
+ import { defineComponent as re, mergeModels as I, ref as N, useTemplateRef as ae, computed as s, useModel as ie, watch as C, createElementBlock as se, openBlock as Y, Fragment as le, renderSlot as G, createCommentVNode as W, createVNode as ue, normalizeProps as de, mergeProps as X, unref as S, withCtx as F, createElementVNode as B, createBlock as ce, nextTick as pe } from "vue";
2
+ import { useId as me } from "./index8.js";
3
+ import { useIntersectionObserver as ve, useElementSize as fe } from "./index141.js";
4
+ import { useLocale as be } from "./index223.js";
5
+ import { useUntil as he } from "./index250.js";
6
+ import ge from "./index13.js";
7
7
  /* empty css */
8
- import re from "./index243.js";
8
+ import we from "./index227.js";
9
9
  /* empty css */
10
- import { extractDomContainer as P } from "./index264.js";
11
- import { parseWidthString as I } from "./index280.js";
12
- const ne = ["inert"], he = /* @__PURE__ */ G({
10
+ import { extractDomContainer as H } from "./index251.js";
11
+ import { parseWidthString as U } from "./index252.js";
12
+ const Ee = ["inert"], Le = 500, ye = 10, De = /* @__PURE__ */ re({
13
13
  inheritAttrs: !1,
14
14
  __name: "BbPopover",
15
- props: /* @__PURE__ */ E({
15
+ props: /* @__PURE__ */ I({
16
16
  arrowPadding: { default: 10 },
17
17
  closeLabel: {},
18
18
  block: { type: Boolean },
@@ -21,146 +21,206 @@ const ne = ["inert"], he = /* @__PURE__ */ G({
21
21
  id: {},
22
22
  offset: { default: 3 },
23
23
  padding: { default: 10 },
24
- placement: { default: "bottom" },
25
24
  showClose: { type: Boolean, default: !0 },
26
25
  theme: { default: "default" },
27
26
  transitionDuration: { default: 300 },
27
+ placement: { default: "bottom" },
28
28
  activator: {},
29
29
  boundary: {},
30
30
  focusTarget: {},
31
31
  restoreFocus: { type: Boolean, default: !0 },
32
+ trigger: { default: "click" },
32
33
  width: {}
33
34
  }, {
34
35
  modelValue: { type: Boolean, default: !1 },
35
36
  modelModifiers: {}
36
37
  }),
37
- emits: /* @__PURE__ */ E(["shown", "hidden"], ["update:modelValue"]),
38
- setup(b, { expose: M, emit: O }) {
39
- const a = b, h = O, { t: R } = te(), { id: S } = Z(), l = a.id ?? S.value, c = `bbp_${l}`, r = U(), g = q("popoverRef"), w = s(() => P(g.value)), o = H(b, "modelValue"), d = oe(o), p = s(() => a.activator != null), y = (e) => {
40
- r.value = P(e) ?? void 0;
41
- }, T = s(() => ({
42
- "aria-expanded": d.value ? o.value : void 0,
43
- "aria-controls": d.value ? c : void 0,
44
- "aria-haspopup": "dialog",
45
- id: l,
46
- disabled: !!a.disabled,
47
- ref: y,
48
- onClick: u
49
- }));
50
- m(
51
- () => a.activator,
38
+ emits: /* @__PURE__ */ I(["shown", "hidden"], ["update:modelValue"]),
39
+ setup(M, { expose: _, emit: q }) {
40
+ const o = M, O = q, { t: z } = be(), { id: J } = me(), c = o.id ?? J.value, b = `bbp_${c}`, r = N(), T = ae("popoverRef"), V = s(() => H(T.value)), n = ie(M, "modelValue"), p = he(n), h = s(() => o.activator != null), x = s(() => {
41
+ const e = o.trigger;
42
+ return new Set(Array.isArray(e) ? e : [e]);
43
+ }), g = (e, t) => ({
44
+ getBoundingClientRect: () => ({
45
+ x: e,
46
+ y: t,
47
+ width: 0,
48
+ height: 0,
49
+ top: t,
50
+ left: e,
51
+ right: e,
52
+ bottom: t,
53
+ toJSON() {
54
+ return this;
55
+ }
56
+ })
57
+ }), d = N(null), K = s(
58
+ () => o.placement === "cursor" && d.value ? d.value : r.value
59
+ );
60
+ let D, a = null, m = !1;
61
+ const w = () => {
62
+ clearTimeout(D), a = null;
63
+ }, R = (e) => {
64
+ r.value = H(e) ?? void 0;
65
+ }, j = s(() => {
66
+ const e = x.value;
67
+ return {
68
+ "aria-expanded": p.value ? n.value : void 0,
69
+ "aria-controls": p.value ? b : void 0,
70
+ "aria-haspopup": "dialog",
71
+ id: c,
72
+ disabled: !!o.disabled,
73
+ ref: R,
74
+ ...e.has("click") ? { onClick: E } : {},
75
+ ...e.has("contextMenu") ? {
76
+ onContextmenu: L,
77
+ onPointerdown: y,
78
+ onPointermove: k,
79
+ onPointerup: u,
80
+ onPointercancel: u
81
+ } : {}
82
+ };
83
+ });
84
+ C(
85
+ () => o.activator,
52
86
  (e) => {
53
- e && y(e);
87
+ e && R(e);
54
88
  },
55
89
  { immediate: !0 }
56
- ), m(
57
- r,
58
- (e, t, n) => {
59
- !e || !p.value || (e.addEventListener("click", u), e.setAttribute("aria-haspopup", "dialog"), n(() => {
60
- e.removeEventListener("click", u), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-haspopup");
61
- }));
90
+ ), C(
91
+ [r, x],
92
+ ([e, t], i, P) => {
93
+ if (!e || !h.value) return;
94
+ const A = [];
95
+ t.has("click") && (e.addEventListener("click", E), A.push(() => e.removeEventListener("click", E))), t.has("contextMenu") && (e.addEventListener("contextmenu", L), e.addEventListener("pointerdown", y), e.addEventListener("pointermove", k), e.addEventListener("pointerup", u), e.addEventListener("pointercancel", u), A.push(() => {
96
+ e.removeEventListener("contextmenu", L), e.removeEventListener("pointerdown", y), e.removeEventListener("pointermove", k), e.removeEventListener("pointerup", u), e.removeEventListener("pointercancel", u), w();
97
+ })), e.setAttribute("aria-haspopup", "dialog"), P(() => {
98
+ A.forEach((ne) => ne()), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-haspopup");
99
+ });
62
100
  },
63
101
  { immediate: !0 }
64
- ), m(
65
- [r, o, d],
66
- ([e, t, n]) => {
67
- !e || !p.value || !n || (e.setAttribute("id", l), e.setAttribute("aria-expanded", String(t)), e.setAttribute("aria-controls", c));
102
+ ), C(
103
+ [r, n, p],
104
+ ([e, t, i]) => {
105
+ !e || !h.value || !i || (e.setAttribute("id", c), e.setAttribute("aria-expanded", String(t)), e.setAttribute("aria-controls", b));
68
106
  },
69
107
  { immediate: !0 }
70
- ), _(
108
+ ), ve(
71
109
  r,
72
110
  ([{ intersectionRatio: e }]) => {
73
- e !== 1 && o.value && i();
111
+ e !== 1 && n.value && l();
74
112
  },
75
113
  { threshold: [0, 1] }
76
114
  );
77
- const k = (e) => {
115
+ const v = (e) => {
78
116
  const t = e.target;
79
117
  if (!(t instanceof Node)) return;
80
- const n = w.value?.contains(t), z = r.value?.contains(t);
81
- !n && !z && i();
82
- }, L = (e) => {
83
- e.key === "Escape" && (e.preventDefault(), i());
84
- }, D = () => {
85
- document.addEventListener("click", k, { passive: !0 }), document.addEventListener("keydown", L);
86
- }, N = () => {
87
- document.removeEventListener("click", k), document.removeEventListener("keydown", L);
88
- }, u = async (e) => {
89
- if (o.value) {
90
- i();
118
+ const i = V.value?.contains(t), P = r.value?.contains(t);
119
+ !i && !P && l();
120
+ }, $ = (e) => {
121
+ e.key === "Escape" && (e.preventDefault(), l());
122
+ }, Q = () => {
123
+ document.addEventListener("click", v, { passive: !0 }), document.addEventListener("contextmenu", v, { passive: !0 }), document.addEventListener("keydown", $);
124
+ }, Z = () => {
125
+ document.removeEventListener("click", v), document.removeEventListener("contextmenu", v), document.removeEventListener("keydown", $);
126
+ }, f = async () => {
127
+ if (o.disabled) return;
128
+ n.value = !0, Q(), await pe();
129
+ const e = o.focusTarget ?? (o.showClose ? ".bb-popover__close" : '[tabindex]:not([tabindex="-1"]), button, a, input, select, textarea'), t = V.value?.querySelector(e);
130
+ t instanceof HTMLElement && t.focus(), O("shown");
131
+ }, E = async (e) => {
132
+ if (n.value) {
133
+ l();
134
+ return;
135
+ }
136
+ if (m) {
137
+ m = !1, e.preventDefault(), e.stopPropagation();
91
138
  return;
92
139
  }
93
- if (a.disabled) return;
94
- e.stopImmediatePropagation(), o.value = !0, D(), await K();
95
- const t = a.focusTarget ?? (a.showClose ? ".bb-popover__close" : '[tabindex]:not([tabindex="-1"]), button, a, input, select, textarea'), n = w.value?.querySelector(t);
96
- n instanceof HTMLElement && n.focus(), h("shown");
97
- }, i = () => {
98
- o.value && (o.value = !1, N(), a.restoreFocus && r.value && r.value.focus(), h("hidden"));
99
- }, W = s(() => {
100
- if (!a.width) return !1;
101
- const { unit: e } = I(a.width);
140
+ e.stopImmediatePropagation(), o.placement === "cursor" && (d.value = g(e.clientX, e.clientY)), await f();
141
+ }, L = (e) => {
142
+ o.disabled || (e.preventDefault(), e.stopPropagation(), !(o.placement === "cursor" && (d.value = g(e.clientX, e.clientY), n.value)) && (n.value ? l() : f()));
143
+ }, y = (e) => {
144
+ o.disabled || e.pointerType === "mouse" || (m = !1, a = { x: e.clientX, y: e.clientY }, D = setTimeout(() => {
145
+ m = !0, o.placement === "cursor" && a && (d.value = g(
146
+ a.x,
147
+ a.y
148
+ )), a = null, f();
149
+ }, Le));
150
+ }, k = (e) => {
151
+ if (!a) return;
152
+ const t = e.clientX - a.x, i = e.clientY - a.y;
153
+ Math.sqrt(t * t + i * i) > ye && w();
154
+ }, u = () => {
155
+ w();
156
+ }, l = () => {
157
+ n.value && (n.value = !1, Z(), o.restoreFocus && r.value && r.value.focus(), O("hidden"));
158
+ }, ee = s(() => {
159
+ if (!o.width) return !1;
160
+ const { unit: e } = U(o.width);
102
161
  return e === "%";
103
- }), { width: F } = ee(
104
- s(() => W.value ? r.value : void 0),
162
+ }), { width: te } = fe(
163
+ s(() => ee.value ? r.value : void 0),
105
164
  { width: 0, height: 0 },
106
165
  { box: "border-box" }
107
- ), x = s(() => {
108
- if (!a.width) return;
109
- const { value: e, unit: t } = I(a.width);
110
- return t === "%" && r.value ? `${F.value * (e / 100)}px` : `${e}px`;
166
+ ), oe = s(() => {
167
+ if (!o.width) return;
168
+ const { value: e, unit: t } = U(o.width);
169
+ return t === "%" && r.value ? `${te.value * (e / 100)}px` : `${e}px`;
111
170
  });
112
- return M({
171
+ return _({
113
172
  /** Opens the popover programmatically */
114
- show: u,
173
+ show: f,
115
174
  /** Closes the popover programmatically */
116
- close: i,
175
+ close: l,
117
176
  /** Whether the popover is currently open */
118
- isOpen: s(() => o.value)
119
- }), (e, t) => (A(), j(J, null, [
120
- p.value ? C("", !0) : B(e.$slots, "activator", X(V({ key: 0 }, {
121
- props: T.value,
177
+ isOpen: s(() => n.value)
178
+ }), (e, t) => (Y(), se(le, null, [
179
+ h.value ? W("", !0) : G(e.$slots, "activator", de(X({ key: 0 }, {
180
+ props: j.value,
122
181
  disabled: !!e.disabled,
123
- isOpen: o.value,
182
+ isOpen: n.value,
124
183
  placement: e.placement
125
184
  }))),
126
- Q(re, V({
127
- id: c,
185
+ ue(we, X({
186
+ id: b,
128
187
  ref_key: "popoverRef",
129
- ref: g,
130
- modelValue: o.value,
131
- "onUpdate:modelValue": t[0] || (t[0] = (n) => o.value = n),
132
- anchor: r.value,
133
- "aria-labelledby": v(d) ? v(l) : void 0,
188
+ ref: T,
189
+ modelValue: n.value,
190
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => n.value = i),
191
+ anchor: K.value,
192
+ "aria-labelledby": S(p) ? S(c) : void 0,
134
193
  "arrow-padding": e.arrowPadding,
135
194
  boundary: e.boundary,
136
195
  class: ["bb-popover", `bb-popover--${e.theme}`],
137
196
  dialog: "",
138
197
  eager: e.eager,
139
198
  offset: e.offset,
199
+ "hide-arrow": e.placement === "cursor",
140
200
  padding: e.padding,
141
- placement: e.placement,
142
- style: { width: x.value },
201
+ placement: e.placement === "cursor" ? "bottom-start" : e.placement,
202
+ style: { width: oe.value },
143
203
  "transition-duration": e.transitionDuration
144
204
  }, e.$attrs), {
145
- default: $(() => [
146
- f("span", {
205
+ default: F(() => [
206
+ B("span", {
147
207
  class: "bb-popover__content",
148
- inert: !o.value
208
+ inert: !n.value
149
209
  }, [
150
- e.showClose ? (A(), Y(ae, {
210
+ e.showClose ? (Y(), ce(ge, {
151
211
  key: 0,
152
- "aria-label": e.closeLabel || v(R)("common.closeLabel").value,
212
+ "aria-label": e.closeLabel || S(z)("common.closeLabel").value,
153
213
  class: "bb-popover__close",
154
- onClick: i
214
+ onClick: l
155
215
  }, {
156
- default: $(() => t[1] || (t[1] = [
157
- f("svg", {
216
+ default: F(() => t[1] || (t[1] = [
217
+ B("svg", {
158
218
  "aria-hidden": "true",
159
219
  fill: "none",
160
220
  viewBox: "0 0 24 24",
161
221
  xmlns: "http://www.w3.org/2000/svg"
162
222
  }, [
163
- f("path", {
223
+ B("path", {
164
224
  d: "M23 23L1 1M23 1L1 23",
165
225
  stroke: "currentColor",
166
226
  "stroke-linecap": "round",
@@ -169,20 +229,20 @@ const ne = ["inert"], he = /* @__PURE__ */ G({
169
229
  ], -1)
170
230
  ])),
171
231
  _: 1
172
- }, 8, ["aria-label"])) : C("", !0),
173
- B(e.$slots, "default", {
174
- close: i,
232
+ }, 8, ["aria-label"])) : W("", !0),
233
+ G(e.$slots, "default", {
234
+ close: l,
175
235
  disabled: !!e.disabled,
176
- open: o.value,
236
+ open: n.value,
177
237
  placement: e.placement
178
238
  })
179
- ], 8, ne)
239
+ ], 8, Ee)
180
240
  ]),
181
241
  _: 3
182
- }, 16, ["modelValue", "anchor", "aria-labelledby", "arrow-padding", "boundary", "class", "eager", "offset", "padding", "placement", "style", "transition-duration"])
242
+ }, 16, ["modelValue", "anchor", "aria-labelledby", "arrow-padding", "boundary", "class", "eager", "offset", "hide-arrow", "padding", "placement", "style", "transition-duration"])
183
243
  ], 64));
184
244
  }
185
245
  });
186
246
  export {
187
- he as default
247
+ De as default
188
248
  };
package/dist/index97.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 "./index215.js";
2
+ import { clamp as p } from "./index216.js";
3
3
  import { getAsPercentageBetween as i } from "./index139.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
@@ -190,7 +190,7 @@ export type CommonProps = {
190
190
  */
191
191
  placeholder?: InputHTMLAttributes['placeholder'];
192
192
  /**
193
- * Position of the overlay in respect to the related activator..
193
+ * Position of the overlay in respect to the related activator.
194
194
  */
195
195
  placement?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
196
196
  /**
@@ -0,0 +1 @@
1
+ export declare const isNotEmpty: (value: unknown) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.1.76",
3
+ "version": "2.1.78",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index221.js DELETED
@@ -1,7 +0,0 @@
1
- const o = (l, n, f = (r) => r, u) => l.map((r) => Array.isArray(r[n]) ? [
2
- f(r, u),
3
- ...o(r[n], n, f, f(r, u))
4
- ] : [f(r, u)]).flat();
5
- export {
6
- o as flattenTree
7
- };
package/dist/index226.js DELETED
@@ -1,11 +0,0 @@
1
- import { getCurrentInstance as e } from "vue";
2
- const s = () => {
3
- const t = e(), n = !!t?.proxy?.$inertia, r = !!t?.proxy?.$nuxt;
4
- return {
5
- isInertia: n,
6
- isNuxt: r
7
- };
8
- };
9
- export {
10
- s as useFrameworkDetection
11
- };
package/dist/index228.js DELETED
@@ -1,5 +0,0 @@
1
- import { isNil as r } from "./index218.js";
2
- const e = (t) => r(t) ? !0 : Array.isArray(t) || typeof t == "string" ? t.length === 0 : t instanceof Map || t instanceof Set ? t.size === 0 : typeof t == "number" ? Number.isNaN(t) : typeof t == "boolean" || typeof t == "function" ? !1 : typeof t == "object" ? "length" in t && typeof t.length == "number" ? t.length === 0 : Object.keys(t).length === 0 : !1;
3
- export {
4
- e as isEmpty
5
- };
package/dist/index235.js DELETED
@@ -1,19 +0,0 @@
1
- import { computed as u, unref as a } from "vue";
2
- import { hash as d } from "./index227.js";
3
- const p = ({
4
- items: m,
5
- key: e
6
- }) => {
7
- const n = (t) => e ? String(t[e]) : d(t), o = u(() => {
8
- const t = {}, s = Array.from(a(m) ?? []);
9
- for (let r = 0; r < s.length; r++) {
10
- const c = s[r];
11
- t[n(c)] = c;
12
- }
13
- return t;
14
- });
15
- return { data: o, get: (t) => o.value[n(t)] };
16
- };
17
- export {
18
- p as useIndexById
19
- };
package/dist/index294.js DELETED
@@ -1,5 +0,0 @@
1
- import o from "./index256.js";
2
- /* empty css */
3
- export {
4
- o as default
5
- };
File without changes