bitboss-ui 2.0.1 → 2.0.3

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 (188) hide show
  1. package/dist/components/BbTable/BbTable.vue.d.ts +3 -0
  2. package/dist/index105.js +6 -6
  3. package/dist/index105.js.map +1 -1
  4. package/dist/index113.js +1 -1
  5. package/dist/index115.js +4 -4
  6. package/dist/index117.js +1 -1
  7. package/dist/index12.js +1 -1
  8. package/dist/index121.js +1 -1
  9. package/dist/index122.js +1 -1
  10. package/dist/index123.js +1 -1
  11. package/dist/index125.js +1 -1
  12. package/dist/index128.js +1 -1
  13. package/dist/index14.js +3 -3
  14. package/dist/index16.js +2 -2
  15. package/dist/index18.js +3 -3
  16. package/dist/index198.js +5 -2
  17. package/dist/index198.js.map +1 -1
  18. package/dist/index199.js +158 -3
  19. package/dist/index199.js.map +1 -1
  20. package/dist/index20.js +12 -12
  21. package/dist/index200.js +84 -35
  22. package/dist/index200.js.map +1 -1
  23. package/dist/index202.js +3 -7
  24. package/dist/index202.js.map +1 -1
  25. package/dist/index203.js +3 -5
  26. package/dist/index203.js.map +1 -1
  27. package/dist/index204.js +32 -123
  28. package/dist/index204.js.map +1 -1
  29. package/dist/index205.js +6 -281
  30. package/dist/index205.js.map +1 -1
  31. package/dist/index206.js +7 -123
  32. package/dist/index206.js.map +1 -1
  33. package/dist/index207.js +2 -19
  34. package/dist/index207.js.map +1 -1
  35. package/dist/index208.js +126 -2
  36. package/dist/index208.js.map +1 -1
  37. package/dist/index209.js +5 -2
  38. package/dist/index209.js.map +1 -1
  39. package/dist/index210.js +119 -170
  40. package/dist/index210.js.map +1 -1
  41. package/dist/index211.js +19 -42
  42. package/dist/index211.js.map +1 -1
  43. package/dist/index212.js +5 -0
  44. package/dist/index212.js.map +1 -0
  45. package/dist/index213.js +2 -13
  46. package/dist/index213.js.map +1 -1
  47. package/dist/index214.js +158 -353
  48. package/dist/index214.js.map +1 -1
  49. package/dist/index215.js +42 -2
  50. package/dist/index215.js.map +1 -1
  51. package/dist/index217.js +13 -2
  52. package/dist/index217.js.map +1 -1
  53. package/dist/index218.js +360 -149
  54. package/dist/index218.js.map +1 -1
  55. package/dist/index219.js +2 -84
  56. package/dist/index219.js.map +1 -1
  57. package/dist/index22.js +5 -5
  58. package/dist/{index216.js → index220.js} +2 -2
  59. package/dist/{index216.js.map → index220.js.map} +1 -1
  60. package/dist/index221.js +2 -3
  61. package/dist/index221.js.map +1 -1
  62. package/dist/index222.js +2 -2
  63. package/dist/index223.js +2 -2
  64. package/dist/index224.js +2 -2
  65. package/dist/index225.js +2 -2
  66. package/dist/index227.js +2 -3
  67. package/dist/index227.js.map +1 -1
  68. package/dist/index228.js +3 -18
  69. package/dist/index228.js.map +1 -1
  70. package/dist/index229.js +2 -105
  71. package/dist/index229.js.map +1 -1
  72. package/dist/index230.js +21 -0
  73. package/dist/index230.js.map +1 -0
  74. package/dist/index231.js +53 -47
  75. package/dist/index231.js.map +1 -1
  76. package/dist/index233.js +100 -2
  77. package/dist/index233.js.map +1 -1
  78. package/dist/index237.js +9 -9
  79. package/dist/index237.js.map +1 -1
  80. package/dist/index238.js +23 -9
  81. package/dist/index238.js.map +1 -1
  82. package/dist/index239.js +6 -23
  83. package/dist/index239.js.map +1 -1
  84. package/dist/index24.js +1 -1
  85. package/dist/index240.js +16 -6
  86. package/dist/index240.js.map +1 -1
  87. package/dist/index241.js +9 -16
  88. package/dist/index241.js.map +1 -1
  89. package/dist/index242.js +3 -431
  90. package/dist/index242.js.map +1 -1
  91. package/dist/index243.js +11 -88
  92. package/dist/index243.js.map +1 -1
  93. package/dist/index244.js +9 -5
  94. package/dist/index244.js.map +1 -1
  95. package/dist/index245.js +9 -2
  96. package/dist/index245.js.map +1 -1
  97. package/dist/index246.js +15 -7
  98. package/dist/index246.js.map +1 -1
  99. package/dist/index247.js +224 -69
  100. package/dist/index247.js.map +1 -1
  101. package/dist/index248.js +420 -189
  102. package/dist/index248.js.map +1 -1
  103. package/dist/index249.js +88 -3
  104. package/dist/index249.js.map +1 -1
  105. package/dist/index250.js +280 -5
  106. package/dist/index250.js.map +1 -1
  107. package/dist/index251.js +6 -2
  108. package/dist/index251.js.map +1 -1
  109. package/dist/index252.js +2 -2
  110. package/dist/index253.js +2 -2
  111. package/dist/index254.js +2 -126
  112. package/dist/index254.js.map +1 -1
  113. package/dist/index255.js +126 -3
  114. package/dist/index255.js.map +1 -1
  115. package/dist/index256.js +6 -0
  116. package/dist/index256.js.map +1 -0
  117. package/dist/index258.js +7 -3
  118. package/dist/index258.js.map +1 -1
  119. package/dist/index259.js +3 -11
  120. package/dist/index259.js.map +1 -1
  121. package/dist/index26.js +3 -3
  122. package/dist/index260.js +2 -9
  123. package/dist/index260.js.map +1 -1
  124. package/dist/index261.js +67 -15
  125. package/dist/index261.js.map +1 -1
  126. package/dist/index262.js +191 -427
  127. package/dist/index262.js.map +1 -1
  128. package/dist/index263.js +5 -127
  129. package/dist/index263.js.map +1 -1
  130. package/dist/index264.js +431 -219
  131. package/dist/index264.js.map +1 -1
  132. package/dist/index265.js +127 -2
  133. package/dist/index265.js.map +1 -1
  134. package/dist/index269.js +2 -3
  135. package/dist/index269.js.map +1 -1
  136. package/dist/index270.js +28 -3
  137. package/dist/index270.js.map +1 -1
  138. package/dist/index271.js +3 -211
  139. package/dist/index271.js.map +1 -1
  140. package/dist/index272.js +6 -0
  141. package/dist/index272.js.map +1 -0
  142. package/dist/index273.js +209 -26
  143. package/dist/index273.js.map +1 -1
  144. package/dist/index278.js +15 -2
  145. package/dist/index278.js.map +1 -1
  146. package/dist/index279.js +34 -10
  147. package/dist/index279.js.map +1 -1
  148. package/dist/index28.js +2 -2
  149. package/dist/index280.js +10 -34
  150. package/dist/index280.js.map +1 -1
  151. package/dist/index281.js +2 -47
  152. package/dist/index281.js.map +1 -1
  153. package/dist/index282.js +50 -0
  154. package/dist/index282.js.map +1 -0
  155. package/dist/index284.js +416 -42
  156. package/dist/index284.js.map +1 -1
  157. package/dist/index285.js +50 -0
  158. package/dist/index285.js.map +1 -0
  159. package/dist/index30.js +2 -2
  160. package/dist/index32.js +3 -3
  161. package/dist/index34.js +13 -13
  162. package/dist/index36.js +4 -4
  163. package/dist/index38.js +2 -2
  164. package/dist/index40.js +2 -2
  165. package/dist/index42.js +6 -6
  166. package/dist/index44.js +2 -2
  167. package/dist/index46.js +2 -2
  168. package/dist/index52.js +1 -1
  169. package/dist/index54.js +1 -1
  170. package/dist/index70.js +4 -4
  171. package/dist/index74.js +2 -2
  172. package/dist/index76.js +1 -1
  173. package/dist/index79.js +2 -2
  174. package/dist/index81.js +1 -1
  175. package/dist/index83.js +3 -3
  176. package/dist/index85.js +1 -1
  177. package/dist/style.css +1 -1
  178. package/package.json +1 -1
  179. package/dist/index201.js +0 -9
  180. package/dist/index201.js.map +0 -1
  181. package/dist/index234.js +0 -6
  182. package/dist/index234.js.map +0 -1
  183. package/dist/index257.js +0 -10
  184. package/dist/index257.js.map +0 -1
  185. package/dist/index274.js +0 -18
  186. package/dist/index274.js.map +0 -1
  187. package/dist/index283.js +0 -424
  188. package/dist/index283.js.map +0 -1
package/dist/index273.js CHANGED
@@ -1,31 +1,214 @@
1
- function y(t, r) {
2
- return t > r ? 1 : -1;
3
- }
4
- function c(t, r) {
5
- var n = 5381;
6
- if (typeof t == "object" && t !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
7
- r || (r = /* @__PURE__ */ new WeakSet());
8
- for (var p = Object.keys(t).sort(y), i = 0; i < p.length; i++) {
9
- var s = p[i], e = t[s];
10
- if (n = 33 * n ^ c(s, r), typeof e == "object" && e !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
11
- if (r.has(e)) continue;
12
- r.add(e);
1
+ import { defineComponent as K, ref as h, computed as m, watch as N, openBlock as r, createElementBlock as c, normalizeClass as $, normalizeStyle as b, withModifiers as Q, createElementVNode as x, renderSlot as v, createTextVNode as D, toDisplayString as g, Fragment as U, renderList as X } from "vue";
2
+ import { isNil as f } from "./index124.js";
3
+ import { useVirtualizer as Z } from "./index282.js";
4
+ import { isNotNil as ee } from "./index129.js";
5
+ import { hash as H } from "./index228.js";
6
+ const te = { class: "bb-listbox__outer-container" }, oe = {
7
+ key: 0,
8
+ class: "bb-listbox__loading"
9
+ }, ne = {
10
+ key: 1,
11
+ class: "bb-listbox__no-data"
12
+ }, le = ["aria-selected", "data-index"], ie = { class: "autocomplete-option__content" }, se = { class: "autocomplete-option__label" }, pe = /* @__PURE__ */ K({
13
+ __name: "ListBox",
14
+ props: {
15
+ options: {},
16
+ open: { type: Boolean },
17
+ loading: { type: Boolean },
18
+ transitionDuration: { default: 250 },
19
+ loadingText: { default: "Caricamento..." },
20
+ noDataText: { default: "Nessun elemento da visualizzare" }
21
+ },
22
+ emits: ["option:selected", "option:unselected"],
23
+ setup(T, { expose: V, emit: B }) {
24
+ const o = T, _ = B, s = h(null), C = (e) => "option_" + JSON.stringify(e).replace(/\W/g, "_"), i = m(
25
+ () => o.options.map((e) => ({ ...e, id: C(e.value) }))
26
+ ), p = Z({
27
+ get count() {
28
+ return o.options.length;
29
+ },
30
+ getScrollElement: () => s.value,
31
+ estimateSize: () => 42,
32
+ overscan: 5
33
+ }), L = (e) => {
34
+ e && p.value.measureElement(e);
35
+ }, O = m(() => p.value.getVirtualItems()), F = m(() => p.value.getTotalSize()), n = h(null), a = m(
36
+ () => o.open && o.options.some((e) => !e.disabled)
37
+ ), y = (e = 1) => {
38
+ const l = f(n.value) ? -1 : n.value;
39
+ let t = (l + e) % o.options.length;
40
+ for (; o.options[t].disabled && t !== l; )
41
+ t = y(e + 1);
42
+ return t;
43
+ }, M = () => {
44
+ if (!a.value) return;
45
+ const e = y();
46
+ n.value = e, u();
47
+ }, I = (e = 1) => {
48
+ const l = f(n.value) ? 0 : n.value;
49
+ let t = (l - e + o.options.length) % o.options.length;
50
+ for (; o.options[t].disabled && t !== l; )
51
+ t = I(e + 1);
52
+ return t;
53
+ }, A = async () => {
54
+ if (!a.value) return;
55
+ const e = I();
56
+ n.value = e, u();
57
+ }, P = () => {
58
+ if (!a.value) return;
59
+ let e = 0;
60
+ for (; o.options[e].disabled; )
61
+ e++;
62
+ n.value = e, u();
63
+ }, R = () => {
64
+ if (!a.value) return;
65
+ let e = o.options.length - 1;
66
+ for (; o.options[e].disabled && e !== 0; )
67
+ e--;
68
+ n.value = e, u();
69
+ }, q = () => {
70
+ if (!a.value) return;
71
+ let e = 0;
72
+ for (; o.options[e] && !o.options[e].selected && o.options.length !== e; )
73
+ e++;
74
+ n.value = e % o.options.length, u();
75
+ }, J = () => {
76
+ if (!a.value) return;
77
+ let e = o.options.length - 1;
78
+ for (; o.options[e].selected && e > 0; )
79
+ e--;
80
+ n.value = e === -1 ? o.options.length - 1 : e, u();
81
+ }, W = (e) => {
82
+ if (!a.value) return;
83
+ const l = o.options.findIndex(
84
+ (t) => t.valueHash === e
85
+ );
86
+ l >= 0 && (n.value = l), u();
87
+ }, S = () => {
88
+ n.value = null;
89
+ }, u = () => {
90
+ s.value && ee(n.value) && p.value.scrollToIndex(n.value, {
91
+ align: "center",
92
+ behavior: "smooth"
93
+ });
94
+ }, k = () => {
95
+ if (f(n.value) || !o.open) return;
96
+ const e = o.options[n.value];
97
+ e.selected ? _("option:unselected", e) : _("option:selected", e);
98
+ }, w = h(0), z = () => {
99
+ s.value && (w.value = s.value.scrollHeight);
100
+ }, Y = (e) => !e.disabled, j = (e) => {
101
+ if (e.preventDefault(), s.value && e.target && e.target instanceof HTMLElement) {
102
+ if (!s.value.querySelector('[role="listbox"]'))
103
+ throw new Error("Could not find listbox in DOM tree.");
104
+ let t = e.target, d = t.dataset.index;
105
+ for (; f(d) && t.parentElement; )
106
+ t = t.parentElement, d = t.dataset.index;
107
+ if (d) {
108
+ const E = o.options[+d];
109
+ E && Y(E) && (n.value = +d, k());
110
+ }
13
111
  }
14
- n = 33 * n ^ c(e, r);
15
- }
16
- return 33 * n ^ c(t.constructor, r);
17
- }
18
- var o = typeof t;
19
- try {
20
- t instanceof Date ? o += t.getTime() : o += String(t);
21
- } catch {
22
- o += String(Object.assign({}, t));
112
+ }, G = () => f(n.value) ? void 0 : o.options[n.value];
113
+ return N(
114
+ () => o.open,
115
+ () => {
116
+ z();
117
+ },
118
+ { flush: "post" }
119
+ ), N(
120
+ () => o.options,
121
+ (e, l) => {
122
+ H(e.map((t) => t.valueHash)) !== H(l.map((t) => t.valueHash)) && (p.value.calculateRange(), z(), S());
123
+ },
124
+ {
125
+ flush: "post"
126
+ }
127
+ ), V({
128
+ focusNext: M,
129
+ focusPrevious: A,
130
+ focusFirst: P,
131
+ focusFirstSelected: q,
132
+ focusLast: R,
133
+ focusLastSelected: J,
134
+ blur: S,
135
+ confirmOption: k,
136
+ focusByHash: W,
137
+ getHighlighted: G
138
+ }), (e, l) => (r(), c("div", {
139
+ class: $(["bb-listbox", {
140
+ "bb-listbox--open": e.open,
141
+ "bb-listbox--loading": e.loading,
142
+ "bb-listbox--no-data": !i.value.length
143
+ }]),
144
+ style: b({
145
+ "--transition-duration": `${e.transitionDuration}ms`,
146
+ "--overlay-min-height": `${w.value}px`
147
+ }),
148
+ onClick: Q(j, ["stop"])
149
+ }, [
150
+ x("div", te, [
151
+ x("div", {
152
+ ref_key: "inner",
153
+ ref: s,
154
+ class: "bb-listbox__inner-container"
155
+ }, [
156
+ v(e.$slots, "options:prepend"),
157
+ e.loading && !e.options.length ? (r(), c("div", oe, [
158
+ v(e.$slots, "loading", {}, () => [
159
+ D(g(e.loadingText), 1)
160
+ ])
161
+ ])) : e.options.length ? (r(), c("div", {
162
+ key: 2,
163
+ role: "listbox",
164
+ style: b({
165
+ height: `${F.value}px`
166
+ }),
167
+ tabindex: "-1"
168
+ }, [
169
+ (r(!0), c(U, null, X(O.value, (t, d) => (r(), c("div", {
170
+ key: i.value[t.index].value,
171
+ ref_for: !0,
172
+ ref: L,
173
+ "aria-selected": n.value === d ? !0 : void 0,
174
+ class: $({
175
+ "bb-listbox__option autocomplete-option": !0,
176
+ "autocomplete-option--focused": n.value === t.index,
177
+ "autocomplete-option--selected": i.value[t.index].selected,
178
+ "autocomplete-option--disabled": i.value[t.index].disabled
179
+ }),
180
+ "data-index": t.index,
181
+ role: "option",
182
+ style: b({
183
+ transform: `translateY(${t.start}px)`
184
+ })
185
+ }, [
186
+ x("span", ie, [
187
+ v(e.$slots, "option", {
188
+ disabled: !!i.value[t.index].disabled,
189
+ focused: n.value === t.index,
190
+ index: t.index,
191
+ item: i.value[t.index].item,
192
+ selected: !!i.value[t.index].selected,
193
+ text: i.value[t.index].text,
194
+ value: i.value[t.index].value
195
+ }, () => [
196
+ x("span", se, g(i.value[t.index].text), 1)
197
+ ])
198
+ ])
199
+ ], 14, le))), 128))
200
+ ], 4)) : (r(), c("div", ne, [
201
+ v(e.$slots, "no-data", {}, () => [
202
+ D(g(e.noDataText), 1)
203
+ ])
204
+ ])),
205
+ v(e.$slots, "options:append")
206
+ ], 512)
207
+ ])
208
+ ], 6));
23
209
  }
24
- for (var a = 0; a < o.length; a++) n = 33 * n ^ o.charCodeAt(a);
25
- return n;
26
- }
210
+ });
27
211
  export {
28
- c as hash,
29
- y as sortNumbers
212
+ pe as default
30
213
  };
31
214
  //# sourceMappingURL=index273.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index273.js","sources":["../node_modules/object-code/dist/index.mjs"],"sourcesContent":["function t(t,r){return t>r?1:-1}function r(o,e){var n=5381;if(\"object\"==typeof o&&null!==o&&(o.toString===Object.prototype.toString||o.toString===Array.prototype.toString)){e||(e=new WeakSet);for(var i=Object.keys(o).sort(t),a=0;a<i.length;a++){var c=i[a],g=o[c];if(n=33*n^r(c,e),\"object\"==typeof g&&null!==g&&(o.toString===Object.prototype.toString||o.toString===Array.prototype.toString)){if(e.has(g))continue;e.add(g)}n=33*n^r(g,e)}return 33*n^r(o.constructor,e)}var p=typeof o;try{o instanceof Date?p+=o.getTime():p+=String(o)}catch(t){p+=String(Object.assign({},o))}for(var f=0;f<p.length;f++)n=33*n^p.charCodeAt(f);return n}export{r as hash,t as sortNumbers};\n//# sourceMappingURL=index.mjs.map\n"],"names":["t","r","o","e","i","a","c","g","p","f"],"mappings":"AAAA,SAASA,EAAE,GAAE,GAAE;AAAC,SAAO,IAAE,IAAE,IAAE;AAAE;AAAC,SAASC,EAAEC,GAAEC,GAAE;AAAC,MAAI,IAAE;AAAK,MAAa,OAAOD,KAAjB,YAA2BA,MAAP,SAAWA,EAAE,aAAW,OAAO,UAAU,YAAUA,EAAE,aAAW,MAAM,UAAU,WAAU;AAAC,IAAAC,MAAIA,IAAE,oBAAI;AAAS,aAAQC,IAAE,OAAO,KAAKF,CAAC,EAAE,KAAKF,CAAC,GAAEK,IAAE,GAAEA,IAAED,EAAE,QAAOC,KAAI;AAAC,UAAIC,IAAEF,EAAEC,CAAC,GAAEE,IAAEL,EAAEI,CAAC;AAAE,UAAG,IAAE,KAAG,IAAEL,EAAEK,GAAEH,CAAC,GAAY,OAAOI,KAAjB,YAA2BA,MAAP,SAAWL,EAAE,aAAW,OAAO,UAAU,YAAUA,EAAE,aAAW,MAAM,UAAU,WAAU;AAAC,YAAGC,EAAE,IAAII,CAAC,EAAE;AAAS,QAAAJ,EAAE,IAAII,CAAC;AAAA,MAAC;AAAC,UAAE,KAAG,IAAEN,EAAEM,GAAEJ,CAAC;AAAA,IAAC;AAAC,WAAO,KAAG,IAAEF,EAAEC,EAAE,aAAYC,CAAC;AAAA,EAAC;AAAC,MAAIK,IAAE,OAAON;AAAE,MAAG;AAAC,IAAAA,aAAa,OAAKM,KAAGN,EAAE,QAAS,IAACM,KAAG,OAAON,CAAC;AAAA,EAAC,QAAS;AAAC,IAAAM,KAAG,OAAO,OAAO,OAAO,CAAE,GAACN,CAAC,CAAC;AAAA,EAAC;AAAC,WAAQO,IAAE,GAAEA,IAAED,EAAE,QAAOC,IAAI,KAAE,KAAG,IAAED,EAAE,WAAWC,CAAC;AAAE,SAAO;AAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index273.js","sources":["../src/components/ListBox.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"bb-listbox\"\n\t\t:class=\"{\n\t\t\t'bb-listbox--open': open,\n\t\t\t'bb-listbox--loading': loading,\n\t\t\t'bb-listbox--no-data': !mappedOptions.length,\n\t\t}\"\n\t\t:style=\"{\n\t\t\t'--transition-duration': `${transitionDuration}ms`,\n\t\t\t'--overlay-min-height': `${height}px`,\n\t\t}\"\n\t\t@click.stop=\"handleClick\"\n\t>\n\t\t<div class=\"bb-listbox__outer-container\">\n\t\t\t<div ref=\"inner\" class=\"bb-listbox__inner-container\">\n\t\t\t\t<slot name=\"options:prepend\"></slot>\n\t\t\t\t<div v-if=\"loading && !options.length\" class=\"bb-listbox__loading\">\n\t\t\t\t\t<slot :name=\"'loading'\">{{ loadingText }}</slot>\n\t\t\t\t</div>\n\t\t\t\t<div v-else-if=\"!options.length\" class=\"bb-listbox__no-data\">\n\t\t\t\t\t<slot :name=\"'no-data'\">{{ noDataText }}</slot>\n\t\t\t\t</div>\n\t\t\t\t<div\n\t\t\t\t\tv-else\n\t\t\t\t\trole=\"listbox\"\n\t\t\t\t\t:style=\"{\n\t\t\t\t\t\theight: `${totalSize}px`,\n\t\t\t\t\t}\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tv-for=\"(row, index) in virtualRows\"\n\t\t\t\t\t\t:key=\"mappedOptions[row.index].value\"\n\t\t\t\t\t\t:ref=\"measureElement\"\n\t\t\t\t\t\t:aria-selected=\"focusedIndex === index ? true : undefined\"\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-listbox__option autocomplete-option': true,\n\t\t\t\t\t\t\t'autocomplete-option--focused': focusedIndex === row.index,\n\t\t\t\t\t\t\t'autocomplete-option--selected':\n\t\t\t\t\t\t\t\tmappedOptions[row.index].selected,\n\t\t\t\t\t\t\t'autocomplete-option--disabled':\n\t\t\t\t\t\t\t\tmappedOptions[row.index].disabled,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t:data-index=\"row.index\"\n\t\t\t\t\t\trole=\"option\"\n\t\t\t\t\t\t:style=\"{\n\t\t\t\t\t\t\ttransform: `translateY(${row.start}px)`,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"autocomplete-option__content\">\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:disabled=\"!!mappedOptions[row.index].disabled\"\n\t\t\t\t\t\t\t\t:focused=\"focusedIndex === row.index\"\n\t\t\t\t\t\t\t\t:index=\"row.index\"\n\t\t\t\t\t\t\t\t:item=\"mappedOptions[row.index].item\"\n\t\t\t\t\t\t\t\tname=\"option\"\n\t\t\t\t\t\t\t\t:selected=\"!!mappedOptions[row.index].selected\"\n\t\t\t\t\t\t\t\t:text=\"mappedOptions[row.index].text\"\n\t\t\t\t\t\t\t\t:value=\"mappedOptions[row.index].value\"\n\t\t\t\t\t\t\t\t><span class=\"autocomplete-option__label\">{{\n\t\t\t\t\t\t\t\t\tmappedOptions[row.index].text\n\t\t\t\t\t\t\t\t}}</span></slot\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<slot name=\"options:append\"></slot>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { isNil } from '@/utilities/functions/isNil';\nimport { computed, ref, watch } from 'vue';\nimport { useVirtualizer } from '@tanstack/vue-virtual';\nimport { isNotNil } from '@/utilities/functions/isNotNil';\nimport type { Option } from '@/types/Option';\nimport { hash } from '@/utilities/functions/hash';\n\ntype Props = {\n\toptions: Option[];\n\topen?: boolean;\n\tloading?: boolean;\n\ttransitionDuration?: number;\n\tloadingText?: string;\n\tnoDataText?: string;\n};\n\nconst props = withDefaults(defineProps<Props>(), {\n\ttransitionDuration: 250,\n\tloadingText: 'Caricamento...',\n\tnoDataText: 'Nessun elemento da visualizzare',\n});\n\nconst emit = defineEmits<{\n\t(e: 'option:selected', option: Option): void;\n\t(e: 'option:unselected', option: Option): void;\n}>();\n\nconst inner = ref<HTMLElement | null>(null);\n\nconst makeStringID = (arg: any) =>\n\t'option_' + JSON.stringify(arg).replace(/\\W/g, '_');\n\nconst mappedOptions = computed(() =>\n\tprops.options.map((o) => {\n\t\treturn { ...o, id: makeStringID(o.value) };\n\t})\n);\n\nconst rowVirtualizer = useVirtualizer({\n\tget count() {\n\t\treturn props.options.length;\n\t},\n\tgetScrollElement: () => inner.value,\n\testimateSize: () => 42,\n\toverscan: 5,\n});\n\nconst measureElement = (el: HTMLElement) => {\n\tif (!el) {\n\t\treturn;\n\t}\n\trowVirtualizer.value.measureElement(el);\n\treturn undefined;\n};\n\nconst virtualRows = computed(() => rowVirtualizer.value.getVirtualItems());\nconst totalSize = computed(() => rowVirtualizer.value.getTotalSize());\n\n/**\n * START FOCUS HANDLING\n */\n\nconst focusedIndex = ref<null | number>(null);\n\nconst canFocus = computed(\n\t() => props.open && props.options.some((o) => !o.disabled)\n);\n\nconst findNextAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? -1 : focusedIndex.value!;\n\tlet newIndex = (initialValue + offset) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findNextAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\n\nconst focusNext = () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findNextAvailableIndex();\n\tfocusedIndex.value = newIndex;\n\tscrollSelectedIntoView();\n};\nconst findPreviousAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? 0 : focusedIndex.value!;\n\tlet newIndex =\n\t\t(initialValue - offset + props.options.length) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findPreviousAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\nconst focusPrevious = async () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findPreviousAvailableIndex();\n\tfocusedIndex.value = newIndex;\n\tscrollSelectedIntoView();\n};\n\nconst focusFirst = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (props.options[newIndex].disabled) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n\tscrollSelectedIntoView();\n};\n\nconst focusLast = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].disabled && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n\tscrollSelectedIntoView();\n};\nconst focusFirstSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (\n\t\tprops.options[newIndex] &&\n\t\t!props.options[newIndex].selected &&\n\t\tprops.options.length !== newIndex\n\t) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex % props.options.length;\n\tscrollSelectedIntoView();\n};\nconst focusLastSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].selected && newIndex > 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex === -1 ? props.options.length - 1 : newIndex;\n\tscrollSelectedIntoView();\n};\n\nconst focusByHash = (hash: Option['valueHash']) => {\n\tif (!canFocus.value) return;\n\tconst linkedOptionIndex = props.options.findIndex(\n\t\t(o) => o.valueHash === hash\n\t);\n\tif (linkedOptionIndex >= 0) {\n\t\tfocusedIndex.value = linkedOptionIndex;\n\t}\n\tscrollSelectedIntoView();\n};\n\nconst blur = () => {\n\tfocusedIndex.value = null;\n};\n\nconst scrollSelectedIntoView = () => {\n\tif (inner.value && isNotNil(focusedIndex.value)) {\n\t\trowVirtualizer.value.scrollToIndex(focusedIndex.value, {\n\t\t\talign: 'center',\n\t\t\tbehavior: 'smooth',\n\t\t});\n\t}\n};\n\n/**\n * END FOCUS HANDLING\n */\n\nconst confirmOption = () => {\n\tif (isNil(focusedIndex.value) || !props.open) return;\n\tconst option = props.options[focusedIndex.value!];\n\tif (option.selected) {\n\t\temit('option:unselected', option);\n\t} else {\n\t\temit('option:selected', option);\n\t}\n};\n\nconst height = ref(0);\nconst getScrollHeight = () => {\n\tif (inner.value) {\n\t\theight.value = inner.value.scrollHeight;\n\t}\n};\n\nconst canBeSelected = (option: Option) => {\n\treturn !option.disabled;\n};\n\nconst handleClick = (event: MouseEvent) => {\n\tevent.preventDefault();\n\tif (inner.value && event.target && event.target instanceof HTMLElement) {\n\t\tconst listbox = inner.value.querySelector<HTMLElement>('[role=\"listbox\"]');\n\t\tif (!listbox) {\n\t\t\tthrow new Error('Could not find listbox in DOM tree.');\n\t\t}\n\t\tlet node: HTMLElement = event.target;\n\t\tlet index = node.dataset['index'];\n\t\twhile (isNil(index) && node.parentElement) {\n\t\t\tnode = node.parentElement;\n\t\t\tindex = node.dataset['index'];\n\t\t}\n\t\tif (index) {\n\t\t\tconst option = props.options[+index];\n\t\t\tif (option && canBeSelected(option)) {\n\t\t\t\tfocusedIndex.value = +index;\n\t\t\t\tconfirmOption();\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst getHighlighted = () => {\n\tif (isNil(focusedIndex.value)) return;\n\tconst option = props.options[focusedIndex.value!];\n\treturn option;\n};\n\nwatch(\n\t() => props.open,\n\t() => {\n\t\tgetScrollHeight();\n\t},\n\t{ flush: 'post' }\n);\n\nwatch(\n\t() => props.options,\n\t(value, previous) => {\n\t\tif (\n\t\t\thash(value.map((o) => o.valueHash)) !==\n\t\t\thash(previous.map((o) => o.valueHash))\n\t\t) {\n\t\t\trowVirtualizer.value.calculateRange();\n\t\t\tgetScrollHeight();\n\t\t\tblur();\n\t\t}\n\t},\n\t{\n\t\tflush: 'post',\n\t}\n);\n\ndefineExpose({\n\tfocusNext,\n\tfocusPrevious,\n\tfocusFirst,\n\tfocusFirstSelected,\n\tfocusLast,\n\tfocusLastSelected,\n\tblur,\n\tconfirmOption,\n\tfocusByHash,\n\tgetHighlighted,\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/ListBox';\n</style>\n"],"names":["props","__props","emit","__emit","inner","ref","makeStringID","arg","mappedOptions","computed","o","rowVirtualizer","useVirtualizer","measureElement","el","virtualRows","totalSize","focusedIndex","canFocus","findNextAvailableIndex","offset","initialValue","isNil","newIndex","focusNext","scrollSelectedIntoView","findPreviousAvailableIndex","focusPrevious","focusFirst","focusLast","focusFirstSelected","focusLastSelected","focusByHash","hash","linkedOptionIndex","blur","isNotNil","confirmOption","option","height","getScrollHeight","canBeSelected","handleClick","event","node","index","getHighlighted","watch","value","previous","__expose"],"mappings":"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"}
package/dist/index278.js CHANGED
@@ -1,5 +1,18 @@
1
- import f from "./index247.js";
1
+ function r(t) {
2
+ return Object.prototype.toString.call(t).slice(8, -1);
3
+ }
4
+ function o(t) {
5
+ return r(t) === "Array";
6
+ }
7
+ function c(t) {
8
+ if (r(t) !== "Object")
9
+ return !1;
10
+ const e = Object.getPrototypeOf(t);
11
+ return !!e && e.constructor === Object && e === Object.prototype;
12
+ }
2
13
  export {
3
- f as default
14
+ r as getType,
15
+ o as isArray,
16
+ c as isPlainObject
4
17
  };
5
18
  //# sourceMappingURL=index278.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index278.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index278.js","sources":["../node_modules/is-what/dist/index.js"],"sourcesContent":["function getType(payload) {\n return Object.prototype.toString.call(payload).slice(8, -1);\n}\n\nfunction isAnyObject(payload) {\n return getType(payload) === \"Object\";\n}\n\nfunction isArray(payload) {\n return getType(payload) === \"Array\";\n}\n\nfunction isBlob(payload) {\n return getType(payload) === \"Blob\";\n}\n\nfunction isBoolean(payload) {\n return getType(payload) === \"Boolean\";\n}\n\nfunction isDate(payload) {\n return getType(payload) === \"Date\" && !isNaN(payload);\n}\n\nfunction isEmptyArray(payload) {\n return isArray(payload) && payload.length === 0;\n}\n\nfunction isPlainObject(payload) {\n if (getType(payload) !== \"Object\")\n return false;\n const prototype = Object.getPrototypeOf(payload);\n return !!prototype && prototype.constructor === Object && prototype === Object.prototype;\n}\n\nfunction isEmptyObject(payload) {\n return isPlainObject(payload) && Object.keys(payload).length === 0;\n}\n\nfunction isEmptyString(payload) {\n return payload === \"\";\n}\n\nfunction isError(payload) {\n return getType(payload) === \"Error\" || payload instanceof Error;\n}\n\nfunction isFile(payload) {\n return getType(payload) === \"File\";\n}\n\nfunction isFullArray(payload) {\n return isArray(payload) && payload.length > 0;\n}\n\nfunction isFullObject(payload) {\n return isPlainObject(payload) && Object.keys(payload).length > 0;\n}\n\nfunction isString(payload) {\n return getType(payload) === \"String\";\n}\n\nfunction isFullString(payload) {\n return isString(payload) && payload !== \"\";\n}\n\nfunction isFunction(payload) {\n return typeof payload === \"function\";\n}\n\nfunction isType(payload, type) {\n if (!(type instanceof Function)) {\n throw new TypeError(\"Type must be a function\");\n }\n if (!Object.prototype.hasOwnProperty.call(type, \"prototype\")) {\n throw new TypeError(\"Type is not a class\");\n }\n const name = type.name;\n return getType(payload) === name || Boolean(payload && payload.constructor === type);\n}\n\nfunction isInstanceOf(value, classOrClassName) {\n if (typeof classOrClassName === \"function\") {\n for (let p = value; p; p = Object.getPrototypeOf(p)) {\n if (isType(p, classOrClassName)) {\n return true;\n }\n }\n return false;\n } else {\n for (let p = value; p; p = Object.getPrototypeOf(p)) {\n if (getType(p) === classOrClassName) {\n return true;\n }\n }\n return false;\n }\n}\n\nfunction isMap(payload) {\n return getType(payload) === \"Map\";\n}\n\nfunction isNaNValue(payload) {\n return getType(payload) === \"Number\" && isNaN(payload);\n}\n\nfunction isNumber(payload) {\n return getType(payload) === \"Number\" && !isNaN(payload);\n}\n\nfunction isNegativeNumber(payload) {\n return isNumber(payload) && payload < 0;\n}\n\nfunction isNull(payload) {\n return getType(payload) === \"Null\";\n}\n\nfunction isOneOf(a, b, c, d, e) {\n return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);\n}\n\nfunction isUndefined(payload) {\n return getType(payload) === \"Undefined\";\n}\n\nconst isNullOrUndefined = isOneOf(isNull, isUndefined);\n\nfunction isObject(payload) {\n return isPlainObject(payload);\n}\n\nfunction isObjectLike(payload) {\n return isAnyObject(payload);\n}\n\nfunction isPositiveNumber(payload) {\n return isNumber(payload) && payload > 0;\n}\n\nfunction isSymbol(payload) {\n return getType(payload) === \"Symbol\";\n}\n\nfunction isPrimitive(payload) {\n return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);\n}\n\nfunction isPromise(payload) {\n return getType(payload) === \"Promise\";\n}\n\nfunction isRegExp(payload) {\n return getType(payload) === \"RegExp\";\n}\n\nfunction isSet(payload) {\n return getType(payload) === \"Set\";\n}\n\nfunction isWeakMap(payload) {\n return getType(payload) === \"WeakMap\";\n}\n\nfunction isWeakSet(payload) {\n return getType(payload) === \"WeakSet\";\n}\n\nexport { getType, isAnyObject, isArray, isBlob, isBoolean, isDate, isEmptyArray, isEmptyObject, isEmptyString, isError, isFile, isFullArray, isFullObject, isFullString, isFunction, isInstanceOf, isMap, isNaNValue, isNegativeNumber, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isOneOf, isPlainObject, isPositiveNumber, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isType, isUndefined, isWeakMap, isWeakSet };\n"],"names":["getType","payload","isArray","isPlainObject","prototype"],"mappings":"AAAA,SAASA,EAAQC,GAAS;AACxB,SAAO,OAAO,UAAU,SAAS,KAAKA,CAAO,EAAE,MAAM,GAAG,EAAE;AAC5D;AAMA,SAASC,EAAQD,GAAS;AACxB,SAAOD,EAAQC,CAAO,MAAM;AAC9B;AAkBA,SAASE,EAAcF,GAAS;AAC9B,MAAID,EAAQC,CAAO,MAAM;AACvB,WAAO;AACT,QAAMG,IAAY,OAAO,eAAeH,CAAO;AAC/C,SAAO,CAAC,CAACG,KAAaA,EAAU,gBAAgB,UAAUA,MAAc,OAAO;AACjF;","x_google_ignoreList":[0]}
package/dist/index279.js CHANGED
@@ -1,14 +1,38 @@
1
- function c(n, r, e) {
2
- const i = typeof r == "string" ? r.split(".") : r;
3
- let t = n;
4
- for (const o of i)
5
- if (t && typeof t == "object" && o in t)
6
- t = t[o];
7
- else
8
- return e;
9
- return t === void 0 ? e : t;
1
+ import { openBlock as t, createElementBlock as e, createElementVNode as o } from "vue";
2
+ /* empty css */
3
+ import r from "./index258.js";
4
+ const n = {}, s = {
5
+ class: "bb-error-icon",
6
+ fill: "none",
7
+ height: "20",
8
+ viewBox: "0 0 20 20",
9
+ width: "20",
10
+ xmlns: "http://www.w3.org/2000/svg"
11
+ }, i = /* @__PURE__ */ o("path", {
12
+ d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
13
+ fill: "currentColor"
14
+ }, null, -1), c = /* @__PURE__ */ o("path", {
15
+ d: "M9.99414 6.66666V9.99999",
16
+ stroke: "white",
17
+ "stroke-linecap": "round",
18
+ "stroke-linejoin": "round",
19
+ "stroke-width": "2"
20
+ }, null, -1), l = /* @__PURE__ */ o("path", {
21
+ d: "M9.99414 13.3333H10.0025",
22
+ stroke: "white",
23
+ "stroke-linecap": "round",
24
+ "stroke-linejoin": "round",
25
+ "stroke-width": "2"
26
+ }, null, -1), d = [
27
+ i,
28
+ c,
29
+ l
30
+ ];
31
+ function _(h, a) {
32
+ return t(), e("svg", s, d);
10
33
  }
34
+ const w = /* @__PURE__ */ r(n, [["render", _]]);
11
35
  export {
12
- c as get
36
+ w as default
13
37
  };
14
38
  //# sourceMappingURL=index279.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index279.js","sources":["../src/utilities/functions/get.ts"],"sourcesContent":["type Path<T, K extends keyof T> = K extends string\n\t? T[K] extends object\n\t\t? `${K}.${Path<T[K], keyof T[K]>}` | K\n\t\t: K\n\t: never;\n\nexport function get<T, P extends Path<T, keyof T>>(\n\tobj: T,\n\tpath: P,\n\tdefaultValue?: any\n): any {\n\tconst pathArray = (\n\t\ttypeof path === 'string' ? path.split('.') : path\n\t) as string[];\n\n\tlet current: any = obj;\n\n\tfor (const key of pathArray) {\n\t\tif (current && typeof current === 'object' && key in current) {\n\t\t\tcurrent = current[key];\n\t\t} else {\n\t\t\treturn defaultValue;\n\t\t}\n\t}\n\n\treturn current === undefined ? defaultValue : current;\n}\n"],"names":["get","obj","path","defaultValue","pathArray","current","key"],"mappings":"AAMgB,SAAAA,EACfC,GACAC,GACAC,GACM;AACN,QAAMC,IACL,OAAOF,KAAS,WAAWA,EAAK,MAAM,GAAG,IAAIA;AAG9C,MAAIG,IAAeJ;AAEnB,aAAWK,KAAOF;AACjB,QAAIC,KAAW,OAAOA,KAAY,YAAYC,KAAOD;AACpD,MAAAA,IAAUA,EAAQC,CAAG;AAAA;AAEd,aAAAH;AAIF,SAAAE,MAAY,SAAYF,IAAeE;AAC/C;"}
1
+ {"version":3,"file":"index279.js","sources":["../src/components/ErrorIcon.vue"],"sourcesContent":["<template>\n\t<svg\n\t\tclass=\"bb-error-icon\"\n\t\tfill=\"none\"\n\t\theight=\"20\"\n\t\tviewBox=\"0 0 20 20\"\n\t\twidth=\"20\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t>\n\t\t<path\n\t\t\td=\"M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z\"\n\t\t\tfill=\"currentColor\"\n\t\t/>\n\t\t<path\n\t\t\td=\"M9.99414 6.66666V9.99999\"\n\t\t\tstroke=\"white\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t\tstroke-width=\"2\"\n\t\t/>\n\t\t<path\n\t\t\td=\"M9.99414 13.3333H10.0025\"\n\t\t\tstroke=\"white\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t\tstroke-width=\"2\"\n\t\t/>\n\t</svg>\n</template>\n\n<script setup lang=\"ts\"></script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbErrorIcon';\n</style>\n"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","_hoisted_5","_cache"],"mappings":";;;cAEEA,IAAqB;AAAA,EACrB,OAAW;AAAA,EACX,MAAM;AAAA,EACN;EACA,SAAU;AAAA,EACV,OAAM;AAAA;GAGgNC,IAAAC,gBAAAA,EAAA,QAAA;AAAA,EACrN,GAAA;AAAA;cAG4BC,IAAAD,gBAAAA,EAAA,QAAA;AAAA,EAC5B,GAAA;AAAA,EACA,QAAA;AAAA,EACA;EACA,mBAAgB;AAAA;cAGYE,IAAAF,gBAAAA,EAAA,QAAA;AAAA,EAC5B,GAAA;AAAA,EACA,QAAA;AAAA,EACA;EACA,mBAAgB;AAAA;cAbfG,IAAA;AAAA,EACFJ;AAAA,EAOAE;AAAA;;cAOKG,GAAA;;;;"}
package/dist/index28.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as s, ref as _, openBlock as B, createElementBlock as w, normalizeProps as n, guardReactiveProps as t, createElementVNode as u, renderSlot as V } from "vue";
2
- import { isCssColor as i } from "./index215.js";
3
- import { when as C } from "./index216.js";
2
+ import { isCssColor as i } from "./index219.js";
3
+ import { when as C } from "./index220.js";
4
4
  const E = {
5
5
  "aria-hidden": "true",
6
6
  class: "bb-base-radio-container"
package/dist/index280.js CHANGED
@@ -1,38 +1,14 @@
1
- import { openBlock as t, createElementBlock as e, createElementVNode as o } from "vue";
2
- /* empty css */
3
- import r from "./index257.js";
4
- const n = {}, s = {
5
- class: "bb-error-icon",
6
- fill: "none",
7
- height: "20",
8
- viewBox: "0 0 20 20",
9
- width: "20",
10
- xmlns: "http://www.w3.org/2000/svg"
11
- }, i = /* @__PURE__ */ o("path", {
12
- d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
13
- fill: "currentColor"
14
- }, null, -1), c = /* @__PURE__ */ o("path", {
15
- d: "M9.99414 6.66666V9.99999",
16
- stroke: "white",
17
- "stroke-linecap": "round",
18
- "stroke-linejoin": "round",
19
- "stroke-width": "2"
20
- }, null, -1), l = /* @__PURE__ */ o("path", {
21
- d: "M9.99414 13.3333H10.0025",
22
- stroke: "white",
23
- "stroke-linecap": "round",
24
- "stroke-linejoin": "round",
25
- "stroke-width": "2"
26
- }, null, -1), d = [
27
- i,
28
- c,
29
- l
30
- ];
31
- function _(h, a) {
32
- return t(), e("svg", s, d);
1
+ function c(n, r, e) {
2
+ const i = typeof r == "string" ? r.split(".") : r;
3
+ let t = n;
4
+ for (const o of i)
5
+ if (t && typeof t == "object" && o in t)
6
+ t = t[o];
7
+ else
8
+ return e;
9
+ return t === void 0 ? e : t;
33
10
  }
34
- const w = /* @__PURE__ */ r(n, [["render", _]]);
35
11
  export {
36
- w as default
12
+ c as get
37
13
  };
38
14
  //# sourceMappingURL=index280.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index280.js","sources":["../src/components/ErrorIcon.vue"],"sourcesContent":["<template>\n\t<svg\n\t\tclass=\"bb-error-icon\"\n\t\tfill=\"none\"\n\t\theight=\"20\"\n\t\tviewBox=\"0 0 20 20\"\n\t\twidth=\"20\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t>\n\t\t<path\n\t\t\td=\"M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z\"\n\t\t\tfill=\"currentColor\"\n\t\t/>\n\t\t<path\n\t\t\td=\"M9.99414 6.66666V9.99999\"\n\t\t\tstroke=\"white\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t\tstroke-width=\"2\"\n\t\t/>\n\t\t<path\n\t\t\td=\"M9.99414 13.3333H10.0025\"\n\t\t\tstroke=\"white\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t\tstroke-width=\"2\"\n\t\t/>\n\t</svg>\n</template>\n\n<script setup lang=\"ts\"></script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbErrorIcon';\n</style>\n"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","_hoisted_5","_cache"],"mappings":";;;cAEEA,IAAqB;AAAA,EACrB,OAAW;AAAA,EACX,MAAM;AAAA,EACN;EACA,SAAU;AAAA,EACV,OAAM;AAAA;GAGgNC,IAAAC,gBAAAA,EAAA,QAAA;AAAA,EACrN,GAAA;AAAA;cAG4BC,IAAAD,gBAAAA,EAAA,QAAA;AAAA,EAC5B,GAAA;AAAA,EACA,QAAA;AAAA,EACA;EACA,mBAAgB;AAAA;cAGYE,IAAAF,gBAAAA,EAAA,QAAA;AAAA,EAC5B,GAAA;AAAA,EACA,QAAA;AAAA,EACA;EACA,mBAAgB;AAAA;cAbfG,IAAA;AAAA,EACFJ;AAAA,EAOAE;AAAA;;cAOKG,GAAA;;;;"}
1
+ {"version":3,"file":"index280.js","sources":["../src/utilities/functions/get.ts"],"sourcesContent":["type Path<T, K extends keyof T> = K extends string\n\t? T[K] extends object\n\t\t? `${K}.${Path<T[K], keyof T[K]>}` | K\n\t\t: K\n\t: never;\n\nexport function get<T, P extends Path<T, keyof T>>(\n\tobj: T,\n\tpath: P,\n\tdefaultValue?: any\n): any {\n\tconst pathArray = (\n\t\ttypeof path === 'string' ? path.split('.') : path\n\t) as string[];\n\n\tlet current: any = obj;\n\n\tfor (const key of pathArray) {\n\t\tif (current && typeof current === 'object' && key in current) {\n\t\t\tcurrent = current[key];\n\t\t} else {\n\t\t\treturn defaultValue;\n\t\t}\n\t}\n\n\treturn current === undefined ? defaultValue : current;\n}\n"],"names":["get","obj","path","defaultValue","pathArray","current","key"],"mappings":"AAMgB,SAAAA,EACfC,GACAC,GACAC,GACM;AACN,QAAMC,IACL,OAAOF,KAAS,WAAWA,EAAK,MAAM,GAAG,IAAIA;AAG9C,MAAIG,IAAeJ;AAEnB,aAAWK,KAAOF;AACjB,QAAIC,KAAW,OAAOA,KAAY,YAAYC,KAAOD;AACpD,MAAAA,IAAUA,EAAQC,CAAG;AAAA;AAEd,aAAAH;AAIF,SAAAE,MAAY,SAAYF,IAAeE;AAC/C;"}
package/dist/index281.js CHANGED
@@ -1,50 +1,5 @@
1
- import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index283.js";
2
- import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index283.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: f,
34
- observeElementOffset: s,
35
- scrollToFn: d,
36
- ...l(e)
37
- }))
38
- );
39
- }
1
+ import f from "./index261.js";
40
2
  export {
41
- p as Virtualizer,
42
- S as defaultKeyExtractor,
43
- V as defaultRangeExtractor,
44
- d as elementScroll,
45
- b as measureElement,
46
- s as observeElementOffset,
47
- f as observeElementRect,
48
- z as useVirtualizer
3
+ f as default
49
4
  };
50
5
  //# sourceMappingURL=index281.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index281.js","sources":["../node_modules/@tanstack/vue-virtual/dist/esm/index.js"],"sourcesContent":["import { observeElementRect, observeElementOffset, elementScroll, observeWindowRect, observeWindowOffset, windowScroll, Virtualizer } from \"@tanstack/virtual-core\";\nexport * from \"@tanstack/virtual-core\";\nimport { computed, unref, shallowRef, watch, triggerRef, onScopeDispose } from \"vue\";\nfunction useVirtualizerBase(options) {\n const virtualizer = new Virtualizer(unref(options));\n const state = shallowRef(virtualizer);\n const cleanup = virtualizer._didMount();\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate();\n }\n },\n {\n immediate: true\n }\n );\n watch(\n () => unref(options),\n (options2) => {\n virtualizer.setOptions({\n ...options2,\n onChange: (instance, sync) => {\n var _a;\n triggerRef(state);\n (_a = options2.onChange) == null ? void 0 : _a.call(options2, instance, sync);\n }\n });\n virtualizer._willUpdate();\n triggerRef(state);\n },\n {\n immediate: true\n }\n );\n onScopeDispose(cleanup);\n return state;\n}\nfunction useVirtualizer(options) {\n return useVirtualizerBase(\n computed(() => ({\n observeElementRect,\n observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options)\n }))\n );\n}\nfunction useWindowVirtualizer(options) {\n return useVirtualizerBase(\n computed(() => ({\n getScrollElement: () => typeof document !== \"undefined\" ? window : null,\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset: () => typeof document !== \"undefined\" ? window.scrollY : 0,\n ...unref(options)\n }))\n );\n}\nexport {\n useVirtualizer,\n useWindowVirtualizer\n};\n//# sourceMappingURL=index.js.map\n"],"names":["useVirtualizerBase","options","virtualizer","Virtualizer","unref","state","shallowRef","cleanup","watch","el","options2","instance","sync","_a","triggerRef","onScopeDispose","useVirtualizer","computed","observeElementRect","observeElementOffset","elementScroll"],"mappings":";;;AAGA,SAASA,EAAmBC,GAAS;AACnC,QAAMC,IAAc,IAAIC,EAAYC,EAAMH,CAAO,CAAC,GAC5CI,IAAQC,EAAWJ,CAAW,GAC9BK,IAAUL,EAAY;AAC5B,SAAAM;AAAA,IACE,MAAMJ,EAAMH,CAAO,EAAE,iBAAkB;AAAA,IACvC,CAACQ,MAAO;AACN,MAAIA,KACFP,EAAY,YAAW;AAAA,IAE1B;AAAA,IACD;AAAA,MACE,WAAW;AAAA,IACZ;AAAA,EACL,GACEM;AAAA,IACE,MAAMJ,EAAMH,CAAO;AAAA,IACnB,CAACS,MAAa;AACZ,MAAAR,EAAY,WAAW;AAAA,QACrB,GAAGQ;AAAA,QACH,UAAU,CAACC,GAAUC,MAAS;AAC5B,cAAIC;AACJ,UAAAC,EAAWT,CAAK,IACfQ,IAAKH,EAAS,aAAa,QAAgBG,EAAG,KAAKH,GAAUC,GAAUC,CAAI;AAAA,QAC7E;AAAA,MACT,CAAO,GACDV,EAAY,YAAW,GACvBY,EAAWT,CAAK;AAAA,IACjB;AAAA,IACD;AAAA,MACE,WAAW;AAAA,IACZ;AAAA,EACL,GACEU,EAAeR,CAAO,GACfF;AACT;AACA,SAASW,EAAef,GAAS;AAC/B,SAAOD;AAAA,IACLiB,EAAS,OAAO;AAAA,MACd,oBAAAC;AAAA,MACA,sBAAAC;AAAA,MACA,YAAYC;AAAA,MACZ,GAAGhB,EAAMH,CAAO;AAAA,IACtB,EAAM;AAAA,EACN;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index281.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,50 @@
1
+ import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index284.js";
2
+ import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index284.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: f,
34
+ observeElementOffset: s,
35
+ scrollToFn: d,
36
+ ...l(e)
37
+ }))
38
+ );
39
+ }
40
+ export {
41
+ p as Virtualizer,
42
+ S as defaultKeyExtractor,
43
+ V as defaultRangeExtractor,
44
+ d as elementScroll,
45
+ b as measureElement,
46
+ s as observeElementOffset,
47
+ f as observeElementRect,
48
+ z as useVirtualizer
49
+ };
50
+ //# sourceMappingURL=index282.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index282.js","sources":["../node_modules/@tanstack/vue-virtual/dist/esm/index.js"],"sourcesContent":["import { observeElementRect, observeElementOffset, elementScroll, observeWindowRect, observeWindowOffset, windowScroll, Virtualizer } from \"@tanstack/virtual-core\";\nexport * from \"@tanstack/virtual-core\";\nimport { computed, unref, shallowRef, watch, triggerRef, onScopeDispose } from \"vue\";\nfunction useVirtualizerBase(options) {\n const virtualizer = new Virtualizer(unref(options));\n const state = shallowRef(virtualizer);\n const cleanup = virtualizer._didMount();\n watch(\n () => unref(options).getScrollElement(),\n (el) => {\n if (el) {\n virtualizer._willUpdate();\n }\n },\n {\n immediate: true\n }\n );\n watch(\n () => unref(options),\n (options2) => {\n virtualizer.setOptions({\n ...options2,\n onChange: (instance, sync) => {\n var _a;\n triggerRef(state);\n (_a = options2.onChange) == null ? void 0 : _a.call(options2, instance, sync);\n }\n });\n virtualizer._willUpdate();\n triggerRef(state);\n },\n {\n immediate: true\n }\n );\n onScopeDispose(cleanup);\n return state;\n}\nfunction useVirtualizer(options) {\n return useVirtualizerBase(\n computed(() => ({\n observeElementRect,\n observeElementOffset,\n scrollToFn: elementScroll,\n ...unref(options)\n }))\n );\n}\nfunction useWindowVirtualizer(options) {\n return useVirtualizerBase(\n computed(() => ({\n getScrollElement: () => typeof document !== \"undefined\" ? window : null,\n observeElementRect: observeWindowRect,\n observeElementOffset: observeWindowOffset,\n scrollToFn: windowScroll,\n initialOffset: () => typeof document !== \"undefined\" ? window.scrollY : 0,\n ...unref(options)\n }))\n );\n}\nexport {\n useVirtualizer,\n useWindowVirtualizer\n};\n//# sourceMappingURL=index.js.map\n"],"names":["useVirtualizerBase","options","virtualizer","Virtualizer","unref","state","shallowRef","cleanup","watch","el","options2","instance","sync","_a","triggerRef","onScopeDispose","useVirtualizer","computed","observeElementRect","observeElementOffset","elementScroll"],"mappings":";;;AAGA,SAASA,EAAmBC,GAAS;AACnC,QAAMC,IAAc,IAAIC,EAAYC,EAAMH,CAAO,CAAC,GAC5CI,IAAQC,EAAWJ,CAAW,GAC9BK,IAAUL,EAAY;AAC5B,SAAAM;AAAA,IACE,MAAMJ,EAAMH,CAAO,EAAE,iBAAkB;AAAA,IACvC,CAACQ,MAAO;AACN,MAAIA,KACFP,EAAY,YAAW;AAAA,IAE1B;AAAA,IACD;AAAA,MACE,WAAW;AAAA,IACZ;AAAA,EACL,GACEM;AAAA,IACE,MAAMJ,EAAMH,CAAO;AAAA,IACnB,CAACS,MAAa;AACZ,MAAAR,EAAY,WAAW;AAAA,QACrB,GAAGQ;AAAA,QACH,UAAU,CAACC,GAAUC,MAAS;AAC5B,cAAIC;AACJ,UAAAC,EAAWT,CAAK,IACfQ,IAAKH,EAAS,aAAa,QAAgBG,EAAG,KAAKH,GAAUC,GAAUC,CAAI;AAAA,QAC7E;AAAA,MACT,CAAO,GACDV,EAAY,YAAW,GACvBY,EAAWT,CAAK;AAAA,IACjB;AAAA,IACD;AAAA,MACE,WAAW;AAAA,IACZ;AAAA,EACL,GACEU,EAAeR,CAAO,GACfF;AACT;AACA,SAASW,EAAef,GAAS;AAC/B,SAAOD;AAAA,IACLiB,EAAS,OAAO;AAAA,MACd,oBAAAC;AAAA,MACA,sBAAAC;AAAA,MACA,YAAYC;AAAA,MACZ,GAAGhB,EAAMH,CAAO;AAAA,IACtB,EAAM;AAAA,EACN;AACA;","x_google_ignoreList":[0]}