bitboss-ui 2.0.21 → 2.0.23
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.
- package/dist/index107.js +3 -3
- package/dist/index115.js +1 -1
- package/dist/index117.js +4 -4
- package/dist/index119.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index129.js +2 -2
- package/dist/index14.js +1 -1
- package/dist/index16.js +3 -3
- package/dist/index18.js +2 -2
- package/dist/index20.js +14 -14
- package/dist/index200.js +81 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +44 -16
- package/dist/index201.js.map +1 -1
- package/dist/index203.js +13 -19
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +3 -19
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +3 -27
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +35 -3
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +6 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +7 -8
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +6 -247
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +123 -49
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -44
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +123 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +19 -49
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +14 -124
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +13 -120
- package/dist/index215.js.map +1 -1
- package/dist/index217.js +2 -35
- package/dist/index217.js.map +1 -1
- package/dist/index219.js +5 -6
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +13 -13
- package/dist/index220.js +369 -44
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +22 -0
- package/dist/index221.js.map +1 -0
- package/dist/index222.js +27 -13
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +3 -5
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +246 -366
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +51 -80
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +44 -3
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -7
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +48 -157
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +158 -84
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +87 -0
- package/dist/index230.js.map +1 -0
- package/dist/index232.js +2 -4
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +4 -2
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -3
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +1 -1
- package/dist/index237.js +1 -1
- package/dist/index239.js +1 -1
- package/dist/index24.js +5 -5
- package/dist/index247.js +8 -280
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +6 -6
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +16 -2
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +224 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +3 -2
- package/dist/index251.js.map +1 -1
- package/dist/index253.js +7 -2
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +431 -2
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +89 -2
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +281 -2
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +6 -2
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +2 -2
- package/dist/index259.js +2 -28
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.js +2 -22
- package/dist/index260.js.map +1 -1
- package/dist/{index252.js → index261.js} +1 -1
- package/dist/index261.js.map +1 -0
- package/dist/index262.js +2 -7
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +126 -6
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +21 -15
- package/dist/index264.js.map +1 -1
- package/dist/index266.js +196 -122
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +2 -431
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +2 -3
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +5 -0
- package/dist/index269.js.map +1 -0
- package/dist/index270.js +1 -21
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +5 -0
- package/dist/index271.js.map +1 -0
- package/dist/index272.js +2 -89
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +25 -197
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +21 -435
- package/dist/index274.js.map +1 -1
- package/dist/index276.js +436 -3
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +126 -11
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +2 -9
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +3 -17
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +11 -3
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +7 -7
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +17 -224
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +66 -2
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +5 -66
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +4 -3
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +1 -1
- package/dist/index288.js +3 -211
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +211 -5
- package/dist/index289.js.map +1 -1
- package/dist/index291.js +2 -2
- package/dist/index293.js +4 -7
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +4 -19
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +59 -4
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +35 -4
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +2 -59
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -6
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +6 -34
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +2 -2
- package/dist/index300.js +6 -10
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +17 -45
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +47 -2
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +1 -1
- package/dist/index32.js +2 -2
- package/dist/index34.js +2 -2
- package/dist/index36.js +9 -9
- package/dist/index38.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index42.js +2 -2
- package/dist/index44.js +4 -4
- package/dist/index46.js +2 -2
- package/dist/index48.js +2 -2
- package/dist/index54.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index76.js +2 -2
- package/dist/index78.js +1 -1
- package/dist/index81.js +2 -2
- package/dist/index83.js +76 -65
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index202.js +0 -19
- package/dist/index202.js.map +0 -1
- package/dist/index231.js +0 -5
- package/dist/index231.js.map +0 -1
- package/dist/index252.js.map +0 -1
- package/dist/index265.js +0 -5
- package/dist/index265.js.map +0 -1
- package/dist/index275.js +0 -130
- package/dist/index275.js.map +0 -1
package/dist/index283.js
CHANGED
@@ -1,227 +1,20 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
ç: "c",
|
18
|
-
Ð: "D",
|
19
|
-
ð: "d",
|
20
|
-
È: "E",
|
21
|
-
É: "E",
|
22
|
-
Ê: "E",
|
23
|
-
Ë: "E",
|
24
|
-
è: "e",
|
25
|
-
é: "e",
|
26
|
-
ê: "e",
|
27
|
-
ë: "e",
|
28
|
-
Ì: "I",
|
29
|
-
Í: "I",
|
30
|
-
Î: "I",
|
31
|
-
Ï: "I",
|
32
|
-
ì: "i",
|
33
|
-
í: "i",
|
34
|
-
î: "i",
|
35
|
-
ï: "i",
|
36
|
-
Ñ: "N",
|
37
|
-
ñ: "n",
|
38
|
-
Ò: "O",
|
39
|
-
Ó: "O",
|
40
|
-
Ô: "O",
|
41
|
-
Õ: "O",
|
42
|
-
Ö: "O",
|
43
|
-
Ø: "O",
|
44
|
-
ò: "o",
|
45
|
-
ó: "o",
|
46
|
-
ô: "o",
|
47
|
-
õ: "o",
|
48
|
-
ö: "o",
|
49
|
-
ø: "o",
|
50
|
-
Ù: "U",
|
51
|
-
Ú: "U",
|
52
|
-
Û: "U",
|
53
|
-
Ü: "U",
|
54
|
-
ù: "u",
|
55
|
-
ú: "u",
|
56
|
-
û: "u",
|
57
|
-
ü: "u",
|
58
|
-
Ý: "Y",
|
59
|
-
ý: "y",
|
60
|
-
ÿ: "y",
|
61
|
-
Æ: "Ae",
|
62
|
-
æ: "ae",
|
63
|
-
Þ: "Th",
|
64
|
-
þ: "th",
|
65
|
-
ß: "ss",
|
66
|
-
// Latin Extended-A block.
|
67
|
-
Ā: "A",
|
68
|
-
Ă: "A",
|
69
|
-
Ą: "A",
|
70
|
-
ā: "a",
|
71
|
-
ă: "a",
|
72
|
-
ą: "a",
|
73
|
-
Ć: "C",
|
74
|
-
Ĉ: "C",
|
75
|
-
Ċ: "C",
|
76
|
-
Č: "C",
|
77
|
-
ć: "c",
|
78
|
-
ĉ: "c",
|
79
|
-
ċ: "c",
|
80
|
-
č: "c",
|
81
|
-
Ď: "D",
|
82
|
-
Đ: "D",
|
83
|
-
ď: "d",
|
84
|
-
đ: "d",
|
85
|
-
Ē: "E",
|
86
|
-
Ĕ: "E",
|
87
|
-
Ė: "E",
|
88
|
-
Ę: "E",
|
89
|
-
Ě: "E",
|
90
|
-
ē: "e",
|
91
|
-
ĕ: "e",
|
92
|
-
ė: "e",
|
93
|
-
ę: "e",
|
94
|
-
ě: "e",
|
95
|
-
Ĝ: "G",
|
96
|
-
Ğ: "G",
|
97
|
-
Ġ: "G",
|
98
|
-
Ģ: "G",
|
99
|
-
ĝ: "g",
|
100
|
-
ğ: "g",
|
101
|
-
ġ: "g",
|
102
|
-
ģ: "g",
|
103
|
-
Ĥ: "H",
|
104
|
-
Ħ: "H",
|
105
|
-
ĥ: "h",
|
106
|
-
ħ: "h",
|
107
|
-
Ĩ: "I",
|
108
|
-
Ī: "I",
|
109
|
-
Ĭ: "I",
|
110
|
-
Į: "I",
|
111
|
-
İ: "I",
|
112
|
-
ĩ: "i",
|
113
|
-
ī: "i",
|
114
|
-
ĭ: "i",
|
115
|
-
į: "i",
|
116
|
-
ı: "i",
|
117
|
-
Ĵ: "J",
|
118
|
-
ĵ: "j",
|
119
|
-
Ķ: "K",
|
120
|
-
ķ: "k",
|
121
|
-
ĸ: "k",
|
122
|
-
Ĺ: "L",
|
123
|
-
Ļ: "L",
|
124
|
-
Ľ: "L",
|
125
|
-
Ŀ: "L",
|
126
|
-
Ł: "L",
|
127
|
-
ĺ: "l",
|
128
|
-
ļ: "l",
|
129
|
-
ľ: "l",
|
130
|
-
ŀ: "l",
|
131
|
-
ł: "l",
|
132
|
-
Ń: "N",
|
133
|
-
Ņ: "N",
|
134
|
-
Ň: "N",
|
135
|
-
Ŋ: "N",
|
136
|
-
ń: "n",
|
137
|
-
ņ: "n",
|
138
|
-
ň: "n",
|
139
|
-
ŋ: "n",
|
140
|
-
Ō: "O",
|
141
|
-
Ŏ: "O",
|
142
|
-
Ő: "O",
|
143
|
-
ō: "o",
|
144
|
-
ŏ: "o",
|
145
|
-
ő: "o",
|
146
|
-
Ŕ: "R",
|
147
|
-
Ŗ: "R",
|
148
|
-
Ř: "R",
|
149
|
-
ŕ: "r",
|
150
|
-
ŗ: "r",
|
151
|
-
ř: "r",
|
152
|
-
Ś: "S",
|
153
|
-
Ŝ: "S",
|
154
|
-
Ş: "S",
|
155
|
-
Š: "S",
|
156
|
-
ś: "s",
|
157
|
-
ŝ: "s",
|
158
|
-
ş: "s",
|
159
|
-
š: "s",
|
160
|
-
Ţ: "T",
|
161
|
-
Ť: "T",
|
162
|
-
Ŧ: "T",
|
163
|
-
ţ: "t",
|
164
|
-
ť: "t",
|
165
|
-
ŧ: "t",
|
166
|
-
Ũ: "U",
|
167
|
-
Ū: "U",
|
168
|
-
Ŭ: "U",
|
169
|
-
Ů: "U",
|
170
|
-
Ű: "U",
|
171
|
-
Ų: "U",
|
172
|
-
ũ: "u",
|
173
|
-
ū: "u",
|
174
|
-
ŭ: "u",
|
175
|
-
ů: "u",
|
176
|
-
ű: "u",
|
177
|
-
ų: "u",
|
178
|
-
Ŵ: "W",
|
179
|
-
ŵ: "w",
|
180
|
-
Ŷ: "Y",
|
181
|
-
ŷ: "y",
|
182
|
-
Ÿ: "Y",
|
183
|
-
Ź: "Z",
|
184
|
-
Ż: "Z",
|
185
|
-
Ž: "Z",
|
186
|
-
ź: "z",
|
187
|
-
ż: "z",
|
188
|
-
ž: "z",
|
189
|
-
IJ: "IJ",
|
190
|
-
ij: "ij",
|
191
|
-
Œ: "Oe",
|
192
|
-
œ: "oe",
|
193
|
-
ʼn: "'n",
|
194
|
-
ſ: "ss"
|
195
|
-
}, y = typeof r == "object" && r && r.Object === Object && r, m = typeof self == "object" && self && self.Object === Object && self, O = y || m || Function("return this")();
|
196
|
-
function p(u) {
|
197
|
-
return function(e) {
|
198
|
-
return u == null ? void 0 : u[e];
|
199
|
-
};
|
200
|
-
}
|
201
|
-
var S = p(l), g = Object.prototype, j = g.toString, o = O.Symbol, x = o ? o.prototype : void 0, t = x ? x.toString : void 0;
|
202
|
-
function I(u) {
|
203
|
-
if (typeof u == "string")
|
204
|
-
return u;
|
205
|
-
if (A(u))
|
206
|
-
return t ? t.call(u) : "";
|
207
|
-
var e = u + "";
|
208
|
-
return e == "0" && 1 / u == -c ? "-0" : e;
|
209
|
-
}
|
210
|
-
function E(u) {
|
211
|
-
return !!u && typeof u == "object";
|
212
|
-
}
|
213
|
-
function A(u) {
|
214
|
-
return typeof u == "symbol" || E(u) && j.call(u) == n;
|
215
|
-
}
|
216
|
-
function C(u) {
|
217
|
-
return u == null ? "" : I(u);
|
218
|
-
}
|
219
|
-
function U(u) {
|
220
|
-
return u = C(u), u && u.replace(a, S).replace(s, "");
|
221
|
-
}
|
222
|
-
var L = U;
|
223
|
-
const v = /* @__PURE__ */ f(L);
|
1
|
+
import { get as t } from "./index298.js";
|
2
|
+
const o = () => ({
|
3
|
+
getItemText(r, n) {
|
4
|
+
if (typeof r == "string" && !n) return r;
|
5
|
+
if (n) {
|
6
|
+
if (typeof n == "function") {
|
7
|
+
let f = n(r);
|
8
|
+
return typeof f != "string" && (f = JSON.stringify(f)), f;
|
9
|
+
} else if (typeof n == "string") {
|
10
|
+
const f = t(r, n);
|
11
|
+
return typeof f == "string" ? f : JSON.stringify(f);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
return JSON.stringify(r);
|
15
|
+
}
|
16
|
+
});
|
224
17
|
export {
|
225
|
-
|
18
|
+
o as useItemText
|
226
19
|
};
|
227
20
|
//# sourceMappingURL=index283.js.map
|
package/dist/index283.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index283.js","sources":["../node_modules/lodash.deburr/index.js"],"sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsComboMarksRange = '\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe23',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20f0';\n\n/** Used to compose unicode capture groups. */\nvar rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']';\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 'ss'\n};\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\n\nmodule.exports = deburr;\n"],"names":["INFINITY","symbolTag","reLatin","rsComboMarksRange","rsComboSymbolsRange","rsCombo","reComboMark","deburredLetters","freeGlobal","global","freeSelf","root","basePropertyOf","object","key","deburrLetter","objectProto","objectToString","Symbol","symbolProto","symbolToString","baseToString","value","isSymbol","result","isObjectLike","toString","deburr","string","lodash_deburr"],"mappings":";AAUA,IAAIA,IAAW,OAGXC,IAAY,mBAGZC,IAAU,+CAGVC,IAAoB,kCACpBC,IAAsB,mBAGtBC,IAAU,MAAMF,IAAoBC,IAAsB,KAM1DE,IAAc,OAAOD,GAAS,GAAG,GAGjCE,IAAkB;AAAA;AAAA,EAEpB,GAAQ;AAAA,EAAM,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAC1E,GAAQ;AAAA,EAAM,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAC1E,GAAQ;AAAA,EAAM,GAAQ;AAAA,EACtB,GAAQ;AAAA,EAAM,GAAQ;AAAA,EACtB,GAAQ;AAAA,EAAM,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAChD,GAAQ;AAAA,EAAM,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAAK,GAAQ;AAAA,EAChD,GAAQ;AAAA,EAAM,GAAQ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wB;AAC9D;AA0BA,SAASC,EAAaH,GAAO;AAC3B,SAAO,CAAC,CAACA,KAAS,OAAOA,KAAS;AACpC;AAmBA,SAASC,EAASD,GAAO;AACvB,SAAO,OAAOA,KAAS,YACpBG,EAAaH,CAAK,KAAKL,EAAe,KAAKK,CAAK,KAAKrB;AAC1D;AAuBA,SAASyB,EAASJ,GAAO;AACvB,SAAOA,KAAS,OAAO,KAAKD,EAAaC,CAAK;AAChD;AAoBA,SAASK,EAAOC,GAAQ;AACtB,SAAAA,IAASF,EAASE,CAAM,GACjBA,KAAUA,EAAO,QAAQ1B,GAASa,CAAY,EAAE,QAAQT,GAAa,EAAE;AAChF;AAEA,IAAAuB,IAAiBF;;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index283.js","sources":["../src/composables/useItemText.ts"],"sourcesContent":["import { get } from '@/utilities/functions/get';\n\ntype NestedKeyOf<ObjectType extends object> = {\n\t[Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object\n\t\t? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}`\n\t\t: `${Key}`;\n}[keyof ObjectType & (string | number)];\n\nexport type Path<T> = T extends object\n\t?\n\t\t\t| NestedKeyOf<T>\n\t\t\t| ((item: T) => string | number)\n\t\t\t| undefined\n\t\t\t| (string & Record<never, never>)\n\t: undefined;\n\nexport const useItemText = () => ({\n\tgetItemText<T>(item: T, getter?: Path<T>): string {\n\t\tif (typeof item === 'string' && !getter) return item;\n\t\telse if (getter) {\n\t\t\tif (typeof getter === 'function') {\n\t\t\t\tlet found = getter(item);\n\t\t\t\tif (typeof found !== 'string') found = JSON.stringify(found);\n\t\t\t\treturn found;\n\t\t\t} else if (typeof getter === 'string') {\n\t\t\t\tconst found = get(item, getter as any);\n\t\t\t\tif (typeof found === 'string') return found;\n\t\t\t\telse return JSON.stringify(found);\n\t\t\t}\n\t\t}\n\t\treturn JSON.stringify(item);\n\t},\n});\n"],"names":["useItemText","item","getter","found","get"],"mappings":";AAgBO,MAAMA,IAAc,OAAO;AAAA,EACjC,YAAeC,GAASC,GAA0B;AACjD,QAAI,OAAOD,KAAS,YAAY,CAACC,EAAe,QAAAD;AAAA,QACvCC;AACJ,UAAA,OAAOA,KAAW,YAAY;AAC7B,YAAAC,IAAQD,EAAOD,CAAI;AACvB,eAAI,OAAOE,KAAU,aAAkBA,IAAA,KAAK,UAAUA,CAAK,IACpDA;AAAA,MAAA,WACG,OAAOD,KAAW,UAAU;AAChC,cAAAC,IAAQC,EAAIH,GAAMC,CAAa;AACjC,eAAA,OAAOC,KAAU,WAAiBA,IAC1B,KAAK,UAAUA,CAAK;AAAA,MACjC;AAAA;AAEM,WAAA,KAAK,UAAUF,CAAI;AAAA,EAC3B;AACD;"}
|
package/dist/index284.js
CHANGED
@@ -1,5 +1,69 @@
|
|
1
|
-
|
1
|
+
import { defineComponent as p, openBlock as s, createElementBlock as a, normalizeClass as d, createElementVNode as t, createBlock as i, createCommentVNode as o, toDisplayString as l, withCtx as b } from "vue";
|
2
|
+
import h from "./index14.js";
|
3
|
+
/* empty css */
|
4
|
+
import u from "./index123.js";
|
5
|
+
/* empty css */
|
6
|
+
const g = { class: "bb-toast-message__icon-container" }, k = { class: "bb-toast-message__content" }, f = {
|
7
|
+
key: 0,
|
8
|
+
class: "bb-toast-message__title"
|
9
|
+
}, C = { class: "bb-toast-message__text" }, w = /* @__PURE__ */ t("svg", {
|
10
|
+
fill: "none",
|
11
|
+
viewBox: "0 0 24 24",
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
13
|
+
}, [
|
14
|
+
/* @__PURE__ */ t("path", {
|
15
|
+
d: "M23 23L1 1M23 1L1 23",
|
16
|
+
stroke: "currentColor",
|
17
|
+
"stroke-linecap": "round",
|
18
|
+
"stroke-width": "2"
|
19
|
+
})
|
20
|
+
], -1), L = /* @__PURE__ */ p({
|
21
|
+
__name: "BbToastMessage",
|
22
|
+
props: {
|
23
|
+
title: {},
|
24
|
+
text: {},
|
25
|
+
icon: {},
|
26
|
+
theme: { default: "default" },
|
27
|
+
id: {},
|
28
|
+
showClose: { type: Boolean }
|
29
|
+
},
|
30
|
+
emits: ["click:close"],
|
31
|
+
setup(n, { emit: c }) {
|
32
|
+
const r = n, m = c, _ = () => {
|
33
|
+
m("click:close", r.id);
|
34
|
+
};
|
35
|
+
return (e, v) => (s(), a("div", {
|
36
|
+
"aria-atomic": "true",
|
37
|
+
"aria-live": "polite",
|
38
|
+
"aria-role": "alert",
|
39
|
+
class: d(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
|
40
|
+
}, [
|
41
|
+
t("div", g, [
|
42
|
+
e.icon ? (s(), i(u, {
|
43
|
+
key: 0,
|
44
|
+
class: "bb-toast-message__icon",
|
45
|
+
type: e.icon
|
46
|
+
}, null, 8, ["type"])) : o("", !0)
|
47
|
+
]),
|
48
|
+
t("div", k, [
|
49
|
+
e.title ? (s(), a("p", f, l(e.title), 1)) : o("", !0),
|
50
|
+
t("p", C, l(e.text), 1)
|
51
|
+
]),
|
52
|
+
e.showClose ? (s(), i(h, {
|
53
|
+
key: 0,
|
54
|
+
"aria-label": "Chiudi",
|
55
|
+
class: "bb-toast-message__close",
|
56
|
+
onClick: _
|
57
|
+
}, {
|
58
|
+
default: b(() => [
|
59
|
+
w
|
60
|
+
]),
|
61
|
+
_: 1
|
62
|
+
})) : o("", !0)
|
63
|
+
], 2));
|
64
|
+
}
|
65
|
+
});
|
2
66
|
export {
|
3
|
-
|
67
|
+
L as default
|
4
68
|
};
|
5
69
|
//# sourceMappingURL=index284.js.map
|
package/dist/index284.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index284.js","sources":["../src/
|
1
|
+
{"version":3,"file":"index284.js","sources":["../src/components/BbToast/BbToastMessage.vue"],"sourcesContent":["<template>\n\t<div\n\t\taria-atomic=\"true\"\n\t\taria-live=\"polite\"\n\t\taria-role=\"alert\"\n\t\tclass=\"bb-toast-message\"\n\t\t:class=\"{ [`bb-toast-message--${theme}`]: theme }\"\n\t>\n\t\t<div class=\"bb-toast-message__icon-container\">\n\t\t\t<BbIcon v-if=\"icon\" class=\"bb-toast-message__icon\" :type=\"icon\" />\n\t\t</div>\n\n\t\t<div class=\"bb-toast-message__content\">\n\t\t\t<p v-if=\"title\" class=\"bb-toast-message__title\">{{ title }}</p>\n\t\t\t<p class=\"bb-toast-message__text\">{{ text }}</p>\n\t\t</div>\n\t\t<BaseButton\n\t\t\tv-if=\"showClose\"\n\t\t\t:aria-label=\"'Chiudi'\"\n\t\t\tclass=\"bb-toast-message__close\"\n\t\t\t@click=\"onClickClose\"\n\t\t>\n\t\t\t<svg fill=\"none\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t<path\n\t\t\t\t\td=\"M23 23L1 1M23 1L1 23\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t</BaseButton>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport type { Message } from '../../composables/useToast';\nimport BaseButton from '../BaseButton/BaseButton.vue';\nimport BbIcon from '../BbIcon/BbIcon.vue';\n\nconst props = withDefaults(defineProps<Message>(), {\n\ttheme: 'default',\n});\ntype BbToastMessageEvents = {\n\t(e: 'click:close', id: Message['id']): void;\n};\nconst emit = defineEmits<BbToastMessageEvents>();\n\nconst onClickClose = () => {\n\temit('click:close', props.id);\n};\n</script>\n\n<style scoped></style>\n"],"names":["props","__props","emit","__emit","onClickClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,UAAMA,IAAQC,GAMRC,IAAOC,GAEPC,IAAe,MAAM;AACrB,MAAAF,EAAA,eAAeF,EAAM,EAAE;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index285.js
CHANGED
@@ -1,69 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
/* empty css */
|
6
|
-
const g = { class: "bb-toast-message__icon-container" }, k = { class: "bb-toast-message__content" }, f = {
|
7
|
-
key: 0,
|
8
|
-
class: "bb-toast-message__title"
|
9
|
-
}, C = { class: "bb-toast-message__text" }, w = /* @__PURE__ */ t("svg", {
|
10
|
-
fill: "none",
|
11
|
-
viewBox: "0 0 24 24",
|
12
|
-
xmlns: "http://www.w3.org/2000/svg"
|
13
|
-
}, [
|
14
|
-
/* @__PURE__ */ t("path", {
|
15
|
-
d: "M23 23L1 1M23 1L1 23",
|
16
|
-
stroke: "currentColor",
|
17
|
-
"stroke-linecap": "round",
|
18
|
-
"stroke-width": "2"
|
19
|
-
})
|
20
|
-
], -1), L = /* @__PURE__ */ p({
|
21
|
-
__name: "BbToastMessage",
|
22
|
-
props: {
|
23
|
-
title: {},
|
24
|
-
text: {},
|
25
|
-
icon: {},
|
26
|
-
theme: { default: "default" },
|
27
|
-
id: {},
|
28
|
-
showClose: { type: Boolean }
|
29
|
-
},
|
30
|
-
emits: ["click:close"],
|
31
|
-
setup(n, { emit: c }) {
|
32
|
-
const r = n, m = c, _ = () => {
|
33
|
-
m("click:close", r.id);
|
34
|
-
};
|
35
|
-
return (e, v) => (s(), a("div", {
|
36
|
-
"aria-atomic": "true",
|
37
|
-
"aria-live": "polite",
|
38
|
-
"aria-role": "alert",
|
39
|
-
class: d(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
|
40
|
-
}, [
|
41
|
-
t("div", g, [
|
42
|
-
e.icon ? (s(), i(u, {
|
43
|
-
key: 0,
|
44
|
-
class: "bb-toast-message__icon",
|
45
|
-
type: e.icon
|
46
|
-
}, null, 8, ["type"])) : o("", !0)
|
47
|
-
]),
|
48
|
-
t("div", k, [
|
49
|
-
e.title ? (s(), a("p", f, l(e.title), 1)) : o("", !0),
|
50
|
-
t("p", C, l(e.text), 1)
|
51
|
-
]),
|
52
|
-
e.showClose ? (s(), i(h, {
|
53
|
-
key: 0,
|
54
|
-
"aria-label": "Chiudi",
|
55
|
-
class: "bb-toast-message__close",
|
56
|
-
onClick: _
|
57
|
-
}, {
|
58
|
-
default: b(() => [
|
59
|
-
w
|
60
|
-
]),
|
61
|
-
_: 1
|
62
|
-
})) : o("", !0)
|
63
|
-
], 2));
|
64
|
-
}
|
65
|
-
});
|
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();
|
66
5
|
export {
|
67
|
-
|
6
|
+
o as flattenTree
|
68
7
|
};
|
69
8
|
//# sourceMappingURL=index285.js.map
|
package/dist/index285.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index285.js","sources":["../src/
|
1
|
+
{"version":3,"file":"index285.js","sources":["../src/utilities/functions/flattenTree.ts"],"sourcesContent":["export const flattenTree = <T extends Record<string, any>, U>(\n\titems: T[],\n\tkeyName: keyof T,\n\tmapper: (item: T, parent?: U) => U = (x: any) => x,\n\tparent?: ReturnType<typeof mapper>\n): ReturnType<typeof mapper>[] => {\n\treturn items\n\t\t.map((item) => {\n\t\t\tif (Array.isArray(item[keyName])) {\n\t\t\t\treturn [\n\t\t\t\t\tmapper(item, parent),\n\t\t\t\t\t...flattenTree(item[keyName], keyName, mapper, mapper(item, parent)),\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn [mapper(item, parent)];\n\t\t})\n\t\t.flat();\n};\n"],"names":["flattenTree","items","keyName","mapper","x","parent","item"],"mappings":"AAAa,MAAAA,IAAc,CAC1BC,GACAC,GACAC,IAAqC,CAACC,MAAWA,GACjDC,MAEOJ,EACL,IAAI,CAACK,MACD,MAAM,QAAQA,EAAKJ,CAAO,CAAC,IACvB;AAAA,EACNC,EAAOG,GAAMD,CAAM;AAAA,EACnB,GAAGL,EAAYM,EAAKJ,CAAO,GAAGA,GAASC,GAAQA,EAAOG,GAAMD,CAAM,CAAC;AAAA,IAG9D,CAACF,EAAOG,GAAMD,CAAM,CAAC,CAC5B,EACA,KAAK;"}
|
package/dist/index286.js
CHANGED
package/dist/index286.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index286.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index286.js","sources":["../src/utilities/functions/curry.ts"],"sourcesContent":["export type Curried<A extends any[], R> = <P extends Partial<A>>(\n\t...args: P\n) => P extends A\n\t? R\n\t: A extends [...SameLength<P>, ...infer S]\n\t\t? S extends any[]\n\t\t\t? Curried<S, R>\n\t\t\t: never\n\t\t: never;\n\ntype SameLength<T extends any[]> = Extract<{ [K in keyof T]: any }, any[]>;\n\nexport const curry = function <A extends any[], R>(\n\tfn: (...args: A) => R\n): Curried<A, R> {\n\treturn (...args: any[]): any =>\n\t\targs.length >= fn.length\n\t\t\t? fn(...(args as any))\n\t\t\t: curry((fn as any).bind(undefined, ...args));\n};\n"],"names":["curry","fn","args"],"mappings":"AAYa,MAAAA,IAAQ,SACpBC,GACgB;AAChB,SAAO,IAAIC,MACVA,EAAK,UAAUD,EAAG,SACfA,EAAG,GAAIC,CAAY,IACnBF,EAAOC,EAAW,KAAK,QAAW,GAAGC,CAAI,CAAC;AAC/C;"}
|
package/dist/index287.js
CHANGED