@jirawatpyk/aura-react 5.8.0 → 5.9.0
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/README.md +27 -0
- package/dist/aura.bundle.js +1485 -1085
- package/dist/cjs/index.cjs +1485 -1085
- package/dist/esm/Accordion.js +2 -1
- package/dist/esm/Alert.js +2 -1
- package/dist/esm/AppShell.js +2 -1
- package/dist/esm/Breadcrumb.js +2 -1
- package/dist/esm/Button.js +2 -1
- package/dist/esm/Checkbox.js +2 -1
- package/dist/esm/Combobox.js +7 -6
- package/dist/esm/Command.js +3 -2
- package/dist/esm/DataTable.js +35 -13
- package/dist/esm/DatePicker.js +8 -7
- package/dist/esm/Dialog.js +38 -5
- package/dist/esm/Field.js +2 -1
- package/dist/esm/FileUpload.js +4 -3
- package/dist/esm/FilterBar.js +3 -2
- package/dist/esm/FormErrorSummary.js +2 -1
- package/dist/esm/Icon.js +50 -31
- package/dist/esm/Menu.js +2 -1
- package/dist/esm/NumberField.js +3 -2
- package/dist/esm/Pagination.js +3 -2
- package/dist/esm/PasswordField.js +2 -1
- package/dist/esm/Popover.js +2 -1
- package/dist/esm/RadioGroup.js +2 -1
- package/dist/esm/Select.js +4 -3
- package/dist/esm/SideNav.js +3 -2
- package/dist/esm/Stat.js +8 -1
- package/dist/esm/Stepper.js +2 -1
- package/dist/esm/Tabs.js +79 -9
- package/dist/esm/Tag.js +3 -2
- package/dist/esm/TimePicker.js +5 -4
- package/dist/esm/Toaster.js +3 -2
- package/dist/esm/classes.js +14 -1
- package/dist/esm/colorScheme.js +8 -1
- package/dist/esm/display.js +22 -12
- package/dist/esm/iconSvg.js +53 -0
- package/dist/esm/icons.js +531 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/internal.js +1 -14
- package/dist/esm/locale.js +7 -0
- package/dist/esm/strings.js +4 -245
- package/dist/esm/strings.sv.js +127 -0
- package/dist/esm/strings.th.js +127 -0
- package/dist/icons/index.cjs +613 -0
- package/dist/icons/index.d.cts +106 -0
- package/dist/icons/index.d.ts +106 -0
- package/dist/index.d.cts +44 -2
- package/dist/index.d.ts +44 -2
- package/dist/locales/sv.cjs +149 -0
- package/dist/locales/sv.d.cts +96 -0
- package/dist/locales/sv.d.ts +96 -0
- package/dist/locales/th.cjs +149 -0
- package/dist/locales/th.d.cts +96 -0
- package/dist/locales/th.d.ts +96 -0
- package/dist/server/index.cjs +445 -314
- package/dist/server/index.d.cts +24 -0
- package/dist/server/index.d.ts +24 -0
- package/dist/server/index.js +445 -314
- package/dist/styles.css +1 -0
- package/dist/styles.layer.css +1 -0
- package/package.json +35 -3
- package/scripts/aura-icons-codemod.mjs +345 -0
package/dist/server/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/dates.ts
|
|
2
2
|
var ERA = /^พ\.ศ\.\s?|\s?(BE|พ\.ศ\.)$/g;
|
|
3
|
-
var pad = function(
|
|
4
|
-
return (
|
|
3
|
+
var pad = function(n3) {
|
|
4
|
+
return (n3 < 10 ? "0" : "") + n3;
|
|
5
5
|
};
|
|
6
6
|
function toISO(d) {
|
|
7
7
|
if (!d) return null;
|
|
@@ -53,9 +53,9 @@ function monthIndex(word) {
|
|
|
53
53
|
["th-TH", "en-GB", "sv-SE"].forEach(function(tag) {
|
|
54
54
|
["short", "long"].forEach(function(w) {
|
|
55
55
|
for (let i = 0; i < 12; i++) {
|
|
56
|
-
const
|
|
57
|
-
MONTHS[
|
|
58
|
-
if (/^[a-zåäö]/.test(
|
|
56
|
+
const n3 = new Intl.DateTimeFormat(tag, { month: w }).format(new Date(2020, i, 1)).toLowerCase().replace(/\.$/, "");
|
|
57
|
+
MONTHS[n3] = i;
|
|
58
|
+
if (/^[a-zåäö]/.test(n3)) MONTHS[n3.slice(0, 3)] = i;
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
});
|
|
@@ -107,18 +107,18 @@ function todayIn(timeZone) {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
// src/text.ts
|
|
110
|
-
function formatBytes(
|
|
111
|
-
if (
|
|
112
|
-
if (
|
|
110
|
+
function formatBytes(n3) {
|
|
111
|
+
if (n3 == null) return "";
|
|
112
|
+
if (n3 < 1024) return n3 + " B";
|
|
113
113
|
let u = ["KB", "MB", "GB"], i = -1;
|
|
114
114
|
do {
|
|
115
|
-
|
|
115
|
+
n3 /= 1024;
|
|
116
116
|
i++;
|
|
117
|
-
} while (
|
|
118
|
-
return (
|
|
117
|
+
} while (n3 >= 1024 && i < u.length - 1);
|
|
118
|
+
return (n3 >= 10 || Math.round(n3) === n3 ? Math.round(n3) : n3.toFixed(1)) + " " + u[i];
|
|
119
119
|
}
|
|
120
|
-
function pad2(
|
|
121
|
-
return (
|
|
120
|
+
function pad2(n3) {
|
|
121
|
+
return (n3 < 10 ? "0" : "") + n3;
|
|
122
122
|
}
|
|
123
123
|
function parseTime(text) {
|
|
124
124
|
let s = String(text || "").trim().toLowerCase().replace(/\s*(น\.?|นาฬิกา)$/, "").trim();
|
|
@@ -147,13 +147,262 @@ function toneFor(status) {
|
|
|
147
147
|
return "neutral";
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
// src/strings.ts
|
|
150
|
+
// src/strings.th.ts
|
|
151
151
|
var n = function(x) {
|
|
152
152
|
return Number(x).toLocaleString("en");
|
|
153
153
|
};
|
|
154
|
+
var th = {
|
|
155
|
+
close: "\u0E1B\u0E34\u0E14",
|
|
156
|
+
dismiss: "\u0E1B\u0E34\u0E14",
|
|
157
|
+
dismissToast: "\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
|
|
158
|
+
showPassword: "\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",
|
|
159
|
+
filters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
|
160
|
+
search: "\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
161
|
+
clearFilters: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
162
|
+
results: function(n3) {
|
|
163
|
+
return n3.toLocaleString("en") + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
164
|
+
},
|
|
165
|
+
commandMenu: "\u0E40\u0E21\u0E19\u0E39\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07",
|
|
166
|
+
commandPlaceholder: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
|
|
167
|
+
commandHint: "\u2191\u2193 \u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19 \xB7 Enter \u0E40\u0E1B\u0E34\u0E14 \xB7 Esc \u0E1B\u0E34\u0E14",
|
|
168
|
+
errorSummary: function(n3) {
|
|
169
|
+
return "\u0E41\u0E01\u0E49\u0E44\u0E02 " + n3 + " \u0E0A\u0E48\u0E2D\u0E07\u0E01\u0E48\u0E2D\u0E19\u0E44\u0E1B\u0E15\u0E48\u0E2D";
|
|
170
|
+
},
|
|
171
|
+
notifications: "\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
|
|
172
|
+
mainNav: "\u0E40\u0E21\u0E19\u0E39\u0E2B\u0E25\u0E31\u0E01",
|
|
173
|
+
breadcrumb: "\u0E40\u0E2A\u0E49\u0E19\u0E17\u0E32\u0E07",
|
|
174
|
+
navigation: "\u0E40\u0E21\u0E19\u0E39",
|
|
175
|
+
openNav: "\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E21\u0E19\u0E39",
|
|
176
|
+
collapseNav: "\u0E22\u0E48\u0E2D\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
|
|
177
|
+
expandNav: "\u0E02\u0E22\u0E32\u0E22\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
|
|
178
|
+
searching: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
|
|
179
|
+
noMatches: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
|
|
180
|
+
clear: function(what) {
|
|
181
|
+
return "\u0E25\u0E49\u0E32\u0E07" + (what || "\u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01");
|
|
182
|
+
},
|
|
183
|
+
keepTyping: function(total) {
|
|
184
|
+
return "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E23\u0E2D\u0E07\u0E08\u0E32\u0E01 " + n(total) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
185
|
+
},
|
|
186
|
+
sortAsc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E44\u0E1B\u0E21\u0E32\u0E01",
|
|
187
|
+
sortDesc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E21\u0E32\u0E01\u0E44\u0E1B\u0E19\u0E49\u0E2D\u0E22",
|
|
188
|
+
pin: "\u0E15\u0E23\u0E36\u0E07\u0E44\u0E27\u0E49\u0E0B\u0E49\u0E32\u0E22",
|
|
189
|
+
unpin: "\u0E40\u0E25\u0E34\u0E01\u0E15\u0E23\u0E36\u0E07\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
190
|
+
moveLeft: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E0B\u0E49\u0E32\u0E22",
|
|
191
|
+
moveRight: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E02\u0E27\u0E32",
|
|
192
|
+
hideColumn: "\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
193
|
+
resetColumns: "\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
194
|
+
selectRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E16\u0E27",
|
|
195
|
+
selectAllRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
|
|
196
|
+
deselectAllRows: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
|
|
197
|
+
selectAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
198
|
+
selectRow: function(k) {
|
|
199
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + k;
|
|
200
|
+
},
|
|
201
|
+
selectedCount: function(c) {
|
|
202
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + n(c) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
203
|
+
},
|
|
204
|
+
pinned: "\u0E15\u0E23\u0E36\u0E07\u0E2D\u0E22\u0E39\u0E48",
|
|
205
|
+
columnOptions: function(label) {
|
|
206
|
+
return "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label;
|
|
207
|
+
},
|
|
208
|
+
column: function(label) {
|
|
209
|
+
return label ? "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label : "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C";
|
|
210
|
+
},
|
|
211
|
+
columns: "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
212
|
+
showHideColumns: "\u0E41\u0E2A\u0E14\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
213
|
+
empty: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
214
|
+
loading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u2026",
|
|
215
|
+
loadingRows: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
216
|
+
range: function(a, b, total) {
|
|
217
|
+
return a + "\u2013" + b + " \u0E08\u0E32\u0E01 " + n(total);
|
|
218
|
+
},
|
|
219
|
+
page: function(p, total) {
|
|
220
|
+
return "\u0E2B\u0E19\u0E49\u0E32 " + p + " / " + total;
|
|
221
|
+
},
|
|
222
|
+
rangeOpen: function(a, b) {
|
|
223
|
+
return a + "\u2013" + b + " \u0E08\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
224
|
+
},
|
|
225
|
+
pageOpen: function(p) {
|
|
226
|
+
return "\u0E2B\u0E19\u0E49\u0E32 " + p;
|
|
227
|
+
},
|
|
228
|
+
prevPage: "\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
|
|
229
|
+
nextPage: "\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",
|
|
230
|
+
totals: "\u0E23\u0E27\u0E21",
|
|
231
|
+
rowCount: function(c) {
|
|
232
|
+
return n(c) + " \u0E41\u0E16\u0E27";
|
|
233
|
+
},
|
|
234
|
+
actions: "\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23",
|
|
235
|
+
optional: "\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A",
|
|
236
|
+
timePlaceholder: "\u0E0A\u0E0A:\u0E19\u0E19",
|
|
237
|
+
timeInvalid: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A 09:30",
|
|
238
|
+
timeOutOfRange: function(a, b) {
|
|
239
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 " + a + "\u2013" + b + " \u0E19.";
|
|
240
|
+
},
|
|
241
|
+
timeUnavailable: "\u0E40\u0E27\u0E25\u0E32\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E27\u0E48\u0E32\u0E07 \u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E2D\u0E37\u0E48\u0E19",
|
|
242
|
+
dropFiles: "\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E27\u0E32\u0E07 \u0E2B\u0E23\u0E37\u0E2D",
|
|
243
|
+
browse: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
|
|
244
|
+
browseOne: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
|
|
245
|
+
remove: function(n3) {
|
|
246
|
+
return "\u0E25\u0E1A " + n3;
|
|
247
|
+
},
|
|
248
|
+
fileTooBig: function(max) {
|
|
249
|
+
return "\u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19 " + max;
|
|
250
|
+
},
|
|
251
|
+
fileWrongType: "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E44\u0E1F\u0E25\u0E4C\u0E0A\u0E19\u0E34\u0E14\u0E19\u0E35\u0E49",
|
|
252
|
+
tooManyFiles: function(n3) {
|
|
253
|
+
return "\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + n3 + " \u0E44\u0E1F\u0E25\u0E4C";
|
|
254
|
+
},
|
|
255
|
+
colorScheme: "\u0E42\u0E2B\u0E21\u0E14\u0E2A\u0E35",
|
|
256
|
+
increase: "\u0E40\u0E1E\u0E34\u0E48\u0E21",
|
|
257
|
+
decrease: "\u0E25\u0E14",
|
|
258
|
+
stepDone: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
|
|
259
|
+
stepOf: function(i, total) {
|
|
260
|
+
return "\u0E02\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48 " + i + " \u0E08\u0E32\u0E01 " + total;
|
|
261
|
+
},
|
|
262
|
+
schemeLight: "\u0E2A\u0E27\u0E48\u0E32\u0E07",
|
|
263
|
+
schemeDark: "\u0E21\u0E37\u0E14",
|
|
264
|
+
schemeSystem: "\u0E15\u0E32\u0E21\u0E23\u0E30\u0E1A\u0E1A",
|
|
265
|
+
uploading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u2026",
|
|
266
|
+
images: "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E",
|
|
267
|
+
pagination: "\u0E40\u0E25\u0E02\u0E2B\u0E19\u0E49\u0E32",
|
|
268
|
+
pageN: function(p) {
|
|
269
|
+
return "\u0E2B\u0E19\u0E49\u0E32 " + p;
|
|
270
|
+
},
|
|
271
|
+
accepts: function(list, max) {
|
|
272
|
+
return [list, max && "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + max + " \u0E15\u0E48\u0E2D\u0E44\u0E1F\u0E25\u0E4C"].filter(Boolean).join(" \xB7 ");
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
// src/strings.sv.ts
|
|
154
277
|
var nsv = function(x) {
|
|
155
278
|
return Number(x).toLocaleString("sv-SE");
|
|
156
279
|
};
|
|
280
|
+
var sv = {
|
|
281
|
+
close: "St\xE4ng",
|
|
282
|
+
dismiss: "St\xE4ng",
|
|
283
|
+
dismissToast: "St\xE4ng aviseringen",
|
|
284
|
+
showPassword: "Visa l\xF6senord",
|
|
285
|
+
filters: "Filter",
|
|
286
|
+
search: "S\xF6k",
|
|
287
|
+
clearFilters: "Rensa alla",
|
|
288
|
+
results: function(n3) {
|
|
289
|
+
return n3 === 1 ? "1 tr\xE4ff" : n3.toLocaleString("sv-SE") + " tr\xE4ffar";
|
|
290
|
+
},
|
|
291
|
+
commandMenu: "Kommandomeny",
|
|
292
|
+
commandPlaceholder: "Skriv ett kommando eller s\xF6k\u2026",
|
|
293
|
+
commandHint: "\u2191\u2193 flytta \xB7 Enter \xF6ppna \xB7 Esc st\xE4ng",
|
|
294
|
+
errorSummary: function(n3) {
|
|
295
|
+
return n3 === 1 ? "R\xE4tta 1 f\xE4lt f\xF6r att forts\xE4tta" : "R\xE4tta " + n3 + " f\xE4lt f\xF6r att forts\xE4tta";
|
|
296
|
+
},
|
|
297
|
+
notifications: "Aviseringar",
|
|
298
|
+
mainNav: "Huvudmeny",
|
|
299
|
+
breadcrumb: "Br\xF6dsmulor",
|
|
300
|
+
navigation: "Navigering",
|
|
301
|
+
openNav: "\xD6ppna menyn",
|
|
302
|
+
collapseNav: "F\xE4ll ihop sidof\xE4ltet",
|
|
303
|
+
expandNav: "F\xE4ll ut sidof\xE4ltet",
|
|
304
|
+
searching: "S\xF6ker\u2026",
|
|
305
|
+
noMatches: "Inga tr\xE4ffar",
|
|
306
|
+
clear: function(what) {
|
|
307
|
+
return "Rensa " + (what || "urvalet");
|
|
308
|
+
},
|
|
309
|
+
keepTyping: function(total) {
|
|
310
|
+
return "Skriv mer f\xF6r att begr\xE4nsa " + nsv(total) + " alternativ";
|
|
311
|
+
},
|
|
312
|
+
sortAsc: "Sortera stigande",
|
|
313
|
+
sortDesc: "Sortera fallande",
|
|
314
|
+
pin: "F\xE4st till v\xE4nster",
|
|
315
|
+
unpin: "Lossa kolumnen",
|
|
316
|
+
moveLeft: "Flytta v\xE4nster",
|
|
317
|
+
moveRight: "Flytta h\xF6ger",
|
|
318
|
+
hideColumn: "D\xF6lj kolumnen",
|
|
319
|
+
resetColumns: "\xC5terst\xE4ll kolumner",
|
|
320
|
+
selectRows: "V\xE4lj rader",
|
|
321
|
+
selectAllRows: "V\xE4lj alla rader",
|
|
322
|
+
deselectAllRows: "Avmarkera alla rader",
|
|
323
|
+
selectAll: "V\xE4lj alla",
|
|
324
|
+
selectRow: function(k) {
|
|
325
|
+
return "V\xE4lj " + k;
|
|
326
|
+
},
|
|
327
|
+
selectedCount: function(c) {
|
|
328
|
+
return nsv(c) + " valda";
|
|
329
|
+
},
|
|
330
|
+
pinned: "F\xE4st",
|
|
331
|
+
columnOptions: function(label) {
|
|
332
|
+
return "Alternativ f\xF6r kolumnen " + label;
|
|
333
|
+
},
|
|
334
|
+
column: function(label) {
|
|
335
|
+
return label ? "Kolumnen " + label : "Kolumn";
|
|
336
|
+
},
|
|
337
|
+
columns: "Kolumner",
|
|
338
|
+
showHideColumns: "Visa eller d\xF6lj kolumner",
|
|
339
|
+
empty: "Inget h\xE4r \xE4nnu",
|
|
340
|
+
loading: "Laddar\u2026",
|
|
341
|
+
loadingRows: "Laddar rader",
|
|
342
|
+
range: function(a, b, total) {
|
|
343
|
+
return a + "\u2013" + b + " av " + nsv(total);
|
|
344
|
+
},
|
|
345
|
+
page: function(p, total) {
|
|
346
|
+
return "Sida " + p + " av " + total;
|
|
347
|
+
},
|
|
348
|
+
rangeOpen: function(a, b) {
|
|
349
|
+
return a + "\u2013" + b + " av m\xE5nga";
|
|
350
|
+
},
|
|
351
|
+
pageOpen: function(p) {
|
|
352
|
+
return "Sida " + p;
|
|
353
|
+
},
|
|
354
|
+
prevPage: "F\xF6reg\xE5ende sida",
|
|
355
|
+
nextPage: "N\xE4sta sida",
|
|
356
|
+
totals: "Summa",
|
|
357
|
+
rowCount: function(c) {
|
|
358
|
+
return nsv(c) + " rader";
|
|
359
|
+
},
|
|
360
|
+
actions: "\xC5tg\xE4rder",
|
|
361
|
+
optional: "valfritt",
|
|
362
|
+
timePlaceholder: "tt:mm",
|
|
363
|
+
timeInvalid: "Skriv en tid som 09:30",
|
|
364
|
+
timeOutOfRange: function(a, b) {
|
|
365
|
+
return "V\xE4lj en tid mellan " + a + " och " + b;
|
|
366
|
+
},
|
|
367
|
+
timeUnavailable: "Den tiden \xE4r inte ledig. V\xE4lj en annan.",
|
|
368
|
+
dropFiles: "Dra filer hit eller",
|
|
369
|
+
browse: "V\xE4lj filer",
|
|
370
|
+
browseOne: "V\xE4lj en fil",
|
|
371
|
+
remove: function(n3) {
|
|
372
|
+
return "Ta bort " + n3;
|
|
373
|
+
},
|
|
374
|
+
fileTooBig: function(max) {
|
|
375
|
+
return "St\xF6rre \xE4n " + max;
|
|
376
|
+
},
|
|
377
|
+
fileWrongType: "Den h\xE4r filtypen godtas inte",
|
|
378
|
+
tooManyFiles: function(n3) {
|
|
379
|
+
return "H\xF6gst " + n3 + " filer";
|
|
380
|
+
},
|
|
381
|
+
colorScheme: "F\xE4rgl\xE4ge",
|
|
382
|
+
increase: "\xD6ka",
|
|
383
|
+
decrease: "Minska",
|
|
384
|
+
stepDone: "klart",
|
|
385
|
+
stepOf: function(i, total) {
|
|
386
|
+
return "Steg " + i + " av " + total;
|
|
387
|
+
},
|
|
388
|
+
schemeLight: "Ljust",
|
|
389
|
+
schemeDark: "M\xF6rkt",
|
|
390
|
+
schemeSystem: "System",
|
|
391
|
+
uploading: "Laddar upp\u2026",
|
|
392
|
+
images: "Bilder",
|
|
393
|
+
pagination: "Sidnumrering",
|
|
394
|
+
pageN: function(p) {
|
|
395
|
+
return "Sida " + p;
|
|
396
|
+
},
|
|
397
|
+
accepts: function(list, max) {
|
|
398
|
+
return [list, max && "h\xF6gst " + max + " per fil"].filter(Boolean).join(", ");
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
// src/strings.ts
|
|
403
|
+
var n2 = function(x) {
|
|
404
|
+
return Number(x).toLocaleString("en");
|
|
405
|
+
};
|
|
157
406
|
var STRINGS = {
|
|
158
407
|
en: {
|
|
159
408
|
close: "Close",
|
|
@@ -163,14 +412,14 @@ var STRINGS = {
|
|
|
163
412
|
filters: "Filters",
|
|
164
413
|
search: "Search",
|
|
165
414
|
clearFilters: "Clear all",
|
|
166
|
-
results: function(
|
|
167
|
-
return
|
|
415
|
+
results: function(n3) {
|
|
416
|
+
return n3 === 1 ? "1 result" : n3.toLocaleString("en") + " results";
|
|
168
417
|
},
|
|
169
418
|
commandMenu: "Command menu",
|
|
170
419
|
commandPlaceholder: "Type a command or search\u2026",
|
|
171
420
|
commandHint: "\u2191\u2193 to move \xB7 Enter to open \xB7 Esc to close",
|
|
172
|
-
errorSummary: function(
|
|
173
|
-
return
|
|
421
|
+
errorSummary: function(n3) {
|
|
422
|
+
return n3 === 1 ? "Fix 1 field to continue" : "Fix " + n3 + " fields to continue";
|
|
174
423
|
},
|
|
175
424
|
notifications: "Notifications",
|
|
176
425
|
mainNav: "Main",
|
|
@@ -185,7 +434,7 @@ var STRINGS = {
|
|
|
185
434
|
return "Clear " + (what || "selection");
|
|
186
435
|
},
|
|
187
436
|
keepTyping: function(total) {
|
|
188
|
-
return "Keep typing to narrow " +
|
|
437
|
+
return "Keep typing to narrow " + n2(total) + " options";
|
|
189
438
|
},
|
|
190
439
|
sortAsc: "Sort ascending",
|
|
191
440
|
sortDesc: "Sort descending",
|
|
@@ -203,7 +452,7 @@ var STRINGS = {
|
|
|
203
452
|
return "Select " + k;
|
|
204
453
|
},
|
|
205
454
|
selectedCount: function(c) {
|
|
206
|
-
return
|
|
455
|
+
return n2(c) + " selected";
|
|
207
456
|
},
|
|
208
457
|
pinned: "Pinned",
|
|
209
458
|
columnOptions: function(label) {
|
|
@@ -218,7 +467,7 @@ var STRINGS = {
|
|
|
218
467
|
loading: "Loading\u2026",
|
|
219
468
|
loadingRows: "Loading rows",
|
|
220
469
|
range: function(a, b, total) {
|
|
221
|
-
return a + "\u2013" + b + " of " +
|
|
470
|
+
return a + "\u2013" + b + " of " + n2(total);
|
|
222
471
|
},
|
|
223
472
|
page: function(p, total) {
|
|
224
473
|
return "Page " + p + " of " + total;
|
|
@@ -233,7 +482,7 @@ var STRINGS = {
|
|
|
233
482
|
nextPage: "Next page",
|
|
234
483
|
totals: "Totals",
|
|
235
484
|
rowCount: function(c) {
|
|
236
|
-
return
|
|
485
|
+
return n2(c) + " rows";
|
|
237
486
|
},
|
|
238
487
|
actions: "Actions",
|
|
239
488
|
optional: "optional",
|
|
@@ -246,15 +495,15 @@ var STRINGS = {
|
|
|
246
495
|
dropFiles: "Drag files here or",
|
|
247
496
|
browse: "Choose files",
|
|
248
497
|
browseOne: "Choose a file",
|
|
249
|
-
remove: function(
|
|
250
|
-
return "Remove " +
|
|
498
|
+
remove: function(n3) {
|
|
499
|
+
return "Remove " + n3;
|
|
251
500
|
},
|
|
252
501
|
fileTooBig: function(max) {
|
|
253
502
|
return "Larger than " + max;
|
|
254
503
|
},
|
|
255
504
|
fileWrongType: "This file type isn\u2019t accepted",
|
|
256
|
-
tooManyFiles: function(
|
|
257
|
-
return "Up to " +
|
|
505
|
+
tooManyFiles: function(n3) {
|
|
506
|
+
return "Up to " + n3 + " files";
|
|
258
507
|
},
|
|
259
508
|
colorScheme: "Colour scheme",
|
|
260
509
|
increase: "Increase",
|
|
@@ -276,248 +525,8 @@ var STRINGS = {
|
|
|
276
525
|
return [list, max && "up to " + max + " each"].filter(Boolean).join(", ");
|
|
277
526
|
}
|
|
278
527
|
},
|
|
279
|
-
th
|
|
280
|
-
|
|
281
|
-
dismiss: "\u0E1B\u0E34\u0E14",
|
|
282
|
-
dismissToast: "\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
|
|
283
|
-
showPassword: "\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",
|
|
284
|
-
filters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
|
285
|
-
search: "\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
286
|
-
clearFilters: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
287
|
-
results: function(n2) {
|
|
288
|
-
return n2.toLocaleString("en") + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
289
|
-
},
|
|
290
|
-
commandMenu: "\u0E40\u0E21\u0E19\u0E39\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07",
|
|
291
|
-
commandPlaceholder: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
|
|
292
|
-
commandHint: "\u2191\u2193 \u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19 \xB7 Enter \u0E40\u0E1B\u0E34\u0E14 \xB7 Esc \u0E1B\u0E34\u0E14",
|
|
293
|
-
errorSummary: function(n2) {
|
|
294
|
-
return "\u0E41\u0E01\u0E49\u0E44\u0E02 " + n2 + " \u0E0A\u0E48\u0E2D\u0E07\u0E01\u0E48\u0E2D\u0E19\u0E44\u0E1B\u0E15\u0E48\u0E2D";
|
|
295
|
-
},
|
|
296
|
-
notifications: "\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
|
|
297
|
-
mainNav: "\u0E40\u0E21\u0E19\u0E39\u0E2B\u0E25\u0E31\u0E01",
|
|
298
|
-
breadcrumb: "\u0E40\u0E2A\u0E49\u0E19\u0E17\u0E32\u0E07",
|
|
299
|
-
navigation: "\u0E40\u0E21\u0E19\u0E39",
|
|
300
|
-
openNav: "\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E21\u0E19\u0E39",
|
|
301
|
-
collapseNav: "\u0E22\u0E48\u0E2D\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
|
|
302
|
-
expandNav: "\u0E02\u0E22\u0E32\u0E22\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
|
|
303
|
-
searching: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
|
|
304
|
-
noMatches: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
|
|
305
|
-
clear: function(what) {
|
|
306
|
-
return "\u0E25\u0E49\u0E32\u0E07" + (what || "\u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01");
|
|
307
|
-
},
|
|
308
|
-
keepTyping: function(total) {
|
|
309
|
-
return "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E01\u0E23\u0E2D\u0E07\u0E08\u0E32\u0E01 " + n(total) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
310
|
-
},
|
|
311
|
-
sortAsc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E44\u0E1B\u0E21\u0E32\u0E01",
|
|
312
|
-
sortDesc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E21\u0E32\u0E01\u0E44\u0E1B\u0E19\u0E49\u0E2D\u0E22",
|
|
313
|
-
pin: "\u0E15\u0E23\u0E36\u0E07\u0E44\u0E27\u0E49\u0E0B\u0E49\u0E32\u0E22",
|
|
314
|
-
unpin: "\u0E40\u0E25\u0E34\u0E01\u0E15\u0E23\u0E36\u0E07\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
315
|
-
moveLeft: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E0B\u0E49\u0E32\u0E22",
|
|
316
|
-
moveRight: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E02\u0E27\u0E32",
|
|
317
|
-
hideColumn: "\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
318
|
-
resetColumns: "\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
319
|
-
selectRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E16\u0E27",
|
|
320
|
-
selectAllRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
|
|
321
|
-
deselectAllRows: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
|
|
322
|
-
selectAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
323
|
-
selectRow: function(k) {
|
|
324
|
-
return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + k;
|
|
325
|
-
},
|
|
326
|
-
selectedCount: function(c) {
|
|
327
|
-
return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + n(c) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
328
|
-
},
|
|
329
|
-
pinned: "\u0E15\u0E23\u0E36\u0E07\u0E2D\u0E22\u0E39\u0E48",
|
|
330
|
-
columnOptions: function(label) {
|
|
331
|
-
return "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label;
|
|
332
|
-
},
|
|
333
|
-
column: function(label) {
|
|
334
|
-
return label ? "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label : "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C";
|
|
335
|
-
},
|
|
336
|
-
columns: "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
337
|
-
showHideColumns: "\u0E41\u0E2A\u0E14\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
338
|
-
empty: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
339
|
-
loading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u2026",
|
|
340
|
-
loadingRows: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
341
|
-
range: function(a, b, total) {
|
|
342
|
-
return a + "\u2013" + b + " \u0E08\u0E32\u0E01 " + n(total);
|
|
343
|
-
},
|
|
344
|
-
page: function(p, total) {
|
|
345
|
-
return "\u0E2B\u0E19\u0E49\u0E32 " + p + " / " + total;
|
|
346
|
-
},
|
|
347
|
-
rangeOpen: function(a, b) {
|
|
348
|
-
return a + "\u2013" + b + " \u0E08\u0E32\u0E01\u0E2B\u0E25\u0E32\u0E22\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
349
|
-
},
|
|
350
|
-
pageOpen: function(p) {
|
|
351
|
-
return "\u0E2B\u0E19\u0E49\u0E32 " + p;
|
|
352
|
-
},
|
|
353
|
-
prevPage: "\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
|
|
354
|
-
nextPage: "\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",
|
|
355
|
-
totals: "\u0E23\u0E27\u0E21",
|
|
356
|
-
rowCount: function(c) {
|
|
357
|
-
return n(c) + " \u0E41\u0E16\u0E27";
|
|
358
|
-
},
|
|
359
|
-
actions: "\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23",
|
|
360
|
-
optional: "\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A",
|
|
361
|
-
timePlaceholder: "\u0E0A\u0E0A:\u0E19\u0E19",
|
|
362
|
-
timeInvalid: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A 09:30",
|
|
363
|
-
timeOutOfRange: function(a, b) {
|
|
364
|
-
return "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 " + a + "\u2013" + b + " \u0E19.";
|
|
365
|
-
},
|
|
366
|
-
timeUnavailable: "\u0E40\u0E27\u0E25\u0E32\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E27\u0E48\u0E32\u0E07 \u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E2D\u0E37\u0E48\u0E19",
|
|
367
|
-
dropFiles: "\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E27\u0E32\u0E07 \u0E2B\u0E23\u0E37\u0E2D",
|
|
368
|
-
browse: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
|
|
369
|
-
browseOne: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
|
|
370
|
-
remove: function(n2) {
|
|
371
|
-
return "\u0E25\u0E1A " + n2;
|
|
372
|
-
},
|
|
373
|
-
fileTooBig: function(max) {
|
|
374
|
-
return "\u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19 " + max;
|
|
375
|
-
},
|
|
376
|
-
fileWrongType: "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E44\u0E1F\u0E25\u0E4C\u0E0A\u0E19\u0E34\u0E14\u0E19\u0E35\u0E49",
|
|
377
|
-
tooManyFiles: function(n2) {
|
|
378
|
-
return "\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + n2 + " \u0E44\u0E1F\u0E25\u0E4C";
|
|
379
|
-
},
|
|
380
|
-
colorScheme: "\u0E42\u0E2B\u0E21\u0E14\u0E2A\u0E35",
|
|
381
|
-
increase: "\u0E40\u0E1E\u0E34\u0E48\u0E21",
|
|
382
|
-
decrease: "\u0E25\u0E14",
|
|
383
|
-
stepDone: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
|
|
384
|
-
stepOf: function(i, total) {
|
|
385
|
-
return "\u0E02\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48 " + i + " \u0E08\u0E32\u0E01 " + total;
|
|
386
|
-
},
|
|
387
|
-
schemeLight: "\u0E2A\u0E27\u0E48\u0E32\u0E07",
|
|
388
|
-
schemeDark: "\u0E21\u0E37\u0E14",
|
|
389
|
-
schemeSystem: "\u0E15\u0E32\u0E21\u0E23\u0E30\u0E1A\u0E1A",
|
|
390
|
-
uploading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u2026",
|
|
391
|
-
images: "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E",
|
|
392
|
-
pagination: "\u0E40\u0E25\u0E02\u0E2B\u0E19\u0E49\u0E32",
|
|
393
|
-
pageN: function(p) {
|
|
394
|
-
return "\u0E2B\u0E19\u0E49\u0E32 " + p;
|
|
395
|
-
},
|
|
396
|
-
accepts: function(list, max) {
|
|
397
|
-
return [list, max && "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + max + " \u0E15\u0E48\u0E2D\u0E44\u0E1F\u0E25\u0E4C"].filter(Boolean).join(" \xB7 ");
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
sv: {
|
|
401
|
-
close: "St\xE4ng",
|
|
402
|
-
dismiss: "St\xE4ng",
|
|
403
|
-
dismissToast: "St\xE4ng aviseringen",
|
|
404
|
-
showPassword: "Visa l\xF6senord",
|
|
405
|
-
filters: "Filter",
|
|
406
|
-
search: "S\xF6k",
|
|
407
|
-
clearFilters: "Rensa alla",
|
|
408
|
-
results: function(n2) {
|
|
409
|
-
return n2 === 1 ? "1 tr\xE4ff" : n2.toLocaleString("sv-SE") + " tr\xE4ffar";
|
|
410
|
-
},
|
|
411
|
-
commandMenu: "Kommandomeny",
|
|
412
|
-
commandPlaceholder: "Skriv ett kommando eller s\xF6k\u2026",
|
|
413
|
-
commandHint: "\u2191\u2193 flytta \xB7 Enter \xF6ppna \xB7 Esc st\xE4ng",
|
|
414
|
-
errorSummary: function(n2) {
|
|
415
|
-
return n2 === 1 ? "R\xE4tta 1 f\xE4lt f\xF6r att forts\xE4tta" : "R\xE4tta " + n2 + " f\xE4lt f\xF6r att forts\xE4tta";
|
|
416
|
-
},
|
|
417
|
-
notifications: "Aviseringar",
|
|
418
|
-
mainNav: "Huvudmeny",
|
|
419
|
-
breadcrumb: "Br\xF6dsmulor",
|
|
420
|
-
navigation: "Navigering",
|
|
421
|
-
openNav: "\xD6ppna menyn",
|
|
422
|
-
collapseNav: "F\xE4ll ihop sidof\xE4ltet",
|
|
423
|
-
expandNav: "F\xE4ll ut sidof\xE4ltet",
|
|
424
|
-
searching: "S\xF6ker\u2026",
|
|
425
|
-
noMatches: "Inga tr\xE4ffar",
|
|
426
|
-
clear: function(what) {
|
|
427
|
-
return "Rensa " + (what || "urvalet");
|
|
428
|
-
},
|
|
429
|
-
keepTyping: function(total) {
|
|
430
|
-
return "Skriv mer f\xF6r att begr\xE4nsa " + nsv(total) + " alternativ";
|
|
431
|
-
},
|
|
432
|
-
sortAsc: "Sortera stigande",
|
|
433
|
-
sortDesc: "Sortera fallande",
|
|
434
|
-
pin: "F\xE4st till v\xE4nster",
|
|
435
|
-
unpin: "Lossa kolumnen",
|
|
436
|
-
moveLeft: "Flytta v\xE4nster",
|
|
437
|
-
moveRight: "Flytta h\xF6ger",
|
|
438
|
-
hideColumn: "D\xF6lj kolumnen",
|
|
439
|
-
resetColumns: "\xC5terst\xE4ll kolumner",
|
|
440
|
-
selectRows: "V\xE4lj rader",
|
|
441
|
-
selectAllRows: "V\xE4lj alla rader",
|
|
442
|
-
deselectAllRows: "Avmarkera alla rader",
|
|
443
|
-
selectAll: "V\xE4lj alla",
|
|
444
|
-
selectRow: function(k) {
|
|
445
|
-
return "V\xE4lj " + k;
|
|
446
|
-
},
|
|
447
|
-
selectedCount: function(c) {
|
|
448
|
-
return nsv(c) + " valda";
|
|
449
|
-
},
|
|
450
|
-
pinned: "F\xE4st",
|
|
451
|
-
columnOptions: function(label) {
|
|
452
|
-
return "Alternativ f\xF6r kolumnen " + label;
|
|
453
|
-
},
|
|
454
|
-
column: function(label) {
|
|
455
|
-
return label ? "Kolumnen " + label : "Kolumn";
|
|
456
|
-
},
|
|
457
|
-
columns: "Kolumner",
|
|
458
|
-
showHideColumns: "Visa eller d\xF6lj kolumner",
|
|
459
|
-
empty: "Inget h\xE4r \xE4nnu",
|
|
460
|
-
loading: "Laddar\u2026",
|
|
461
|
-
loadingRows: "Laddar rader",
|
|
462
|
-
range: function(a, b, total) {
|
|
463
|
-
return a + "\u2013" + b + " av " + nsv(total);
|
|
464
|
-
},
|
|
465
|
-
page: function(p, total) {
|
|
466
|
-
return "Sida " + p + " av " + total;
|
|
467
|
-
},
|
|
468
|
-
rangeOpen: function(a, b) {
|
|
469
|
-
return a + "\u2013" + b + " av m\xE5nga";
|
|
470
|
-
},
|
|
471
|
-
pageOpen: function(p) {
|
|
472
|
-
return "Sida " + p;
|
|
473
|
-
},
|
|
474
|
-
prevPage: "F\xF6reg\xE5ende sida",
|
|
475
|
-
nextPage: "N\xE4sta sida",
|
|
476
|
-
totals: "Summa",
|
|
477
|
-
rowCount: function(c) {
|
|
478
|
-
return nsv(c) + " rader";
|
|
479
|
-
},
|
|
480
|
-
actions: "\xC5tg\xE4rder",
|
|
481
|
-
optional: "valfritt",
|
|
482
|
-
timePlaceholder: "tt:mm",
|
|
483
|
-
timeInvalid: "Skriv en tid som 09:30",
|
|
484
|
-
timeOutOfRange: function(a, b) {
|
|
485
|
-
return "V\xE4lj en tid mellan " + a + " och " + b;
|
|
486
|
-
},
|
|
487
|
-
timeUnavailable: "Den tiden \xE4r inte ledig. V\xE4lj en annan.",
|
|
488
|
-
dropFiles: "Dra filer hit eller",
|
|
489
|
-
browse: "V\xE4lj filer",
|
|
490
|
-
browseOne: "V\xE4lj en fil",
|
|
491
|
-
remove: function(n2) {
|
|
492
|
-
return "Ta bort " + n2;
|
|
493
|
-
},
|
|
494
|
-
fileTooBig: function(max) {
|
|
495
|
-
return "St\xF6rre \xE4n " + max;
|
|
496
|
-
},
|
|
497
|
-
fileWrongType: "Den h\xE4r filtypen godtas inte",
|
|
498
|
-
tooManyFiles: function(n2) {
|
|
499
|
-
return "H\xF6gst " + n2 + " filer";
|
|
500
|
-
},
|
|
501
|
-
colorScheme: "F\xE4rgl\xE4ge",
|
|
502
|
-
increase: "\xD6ka",
|
|
503
|
-
decrease: "Minska",
|
|
504
|
-
stepDone: "klart",
|
|
505
|
-
stepOf: function(i, total) {
|
|
506
|
-
return "Steg " + i + " av " + total;
|
|
507
|
-
},
|
|
508
|
-
schemeLight: "Ljust",
|
|
509
|
-
schemeDark: "M\xF6rkt",
|
|
510
|
-
schemeSystem: "System",
|
|
511
|
-
uploading: "Laddar upp\u2026",
|
|
512
|
-
images: "Bilder",
|
|
513
|
-
pagination: "Sidnumrering",
|
|
514
|
-
pageN: function(p) {
|
|
515
|
-
return "Sida " + p;
|
|
516
|
-
},
|
|
517
|
-
accepts: function(list, max) {
|
|
518
|
-
return [list, max && "h\xF6gst " + max + " per fil"].filter(Boolean).join(", ");
|
|
519
|
-
}
|
|
520
|
-
}
|
|
528
|
+
th,
|
|
529
|
+
sv
|
|
521
530
|
};
|
|
522
531
|
|
|
523
532
|
// src/theme.ts
|
|
@@ -534,8 +543,8 @@ function hexToRgb(hex) {
|
|
|
534
543
|
}
|
|
535
544
|
function rgbToHex(rgb) {
|
|
536
545
|
return "#" + rgb.map(function(v) {
|
|
537
|
-
const
|
|
538
|
-
return (
|
|
546
|
+
const n3 = Math.round(Math.min(1, Math.max(0, v)) * 255);
|
|
547
|
+
return (n3 < 16 ? "0" : "") + n3.toString(16);
|
|
539
548
|
}).join("");
|
|
540
549
|
}
|
|
541
550
|
function lin(c) {
|
|
@@ -805,10 +814,10 @@ function colorSchemeScript(options) {
|
|
|
805
814
|
var breakpoints = { sm: 640, md: 768, lg: 1024, xl: 1280 };
|
|
806
815
|
|
|
807
816
|
// src/display.tsx
|
|
808
|
-
import * as
|
|
817
|
+
import * as React3 from "react";
|
|
809
818
|
|
|
810
819
|
// src/Icon.tsx
|
|
811
|
-
import * as
|
|
820
|
+
import * as React2 from "react";
|
|
812
821
|
|
|
813
822
|
// src/classes.ts
|
|
814
823
|
function cx() {
|
|
@@ -825,26 +834,29 @@ var TONES = ["neutral", "accent", "success", "warning", "danger"];
|
|
|
825
834
|
function tone(t) {
|
|
826
835
|
return TONES.indexOf(t) >= 0 ? t : "neutral";
|
|
827
836
|
}
|
|
837
|
+
var warned = {};
|
|
838
|
+
function devWarnOnce(key, message) {
|
|
839
|
+
if (warned[key]) return;
|
|
840
|
+
let dev = false;
|
|
841
|
+
try {
|
|
842
|
+
dev = process.env.NODE_ENV !== "production";
|
|
843
|
+
} catch (e) {
|
|
844
|
+
dev = false;
|
|
845
|
+
}
|
|
846
|
+
if (!dev) return;
|
|
847
|
+
warned[key] = true;
|
|
848
|
+
console.warn("[AURA] " + message);
|
|
849
|
+
}
|
|
828
850
|
|
|
829
|
-
// src/
|
|
851
|
+
// src/iconSvg.tsx
|
|
852
|
+
import * as React from "react";
|
|
830
853
|
var h = React.createElement;
|
|
831
|
-
var ICONS = { "check": [["path", { "d": "M20 6 9 17l-5-5" }]], "x": [["path", { "d": "M18 6 6 18" }], ["path", { "d": "m6 6 12 12" }]], "plus": [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]], "minus": [["path", { "d": "M5 12h14" }]], "search": [["path", { "d": "m21 21-4.34-4.34" }], ["circle", { "cx": "11", "cy": "11", "r": "8" }]], "chevron-down": [["path", { "d": "m6 9 6 6 6-6" }]], "chevron-up": [["path", { "d": "m18 15-6-6-6 6" }]], "chevron-left": [["path", { "d": "m15 18-6-6 6-6" }]], "chevron-right": [["path", { "d": "m9 18 6-6-6-6" }]], "arrow-right": [["path", { "d": "M5 12h14" }], ["path", { "d": "m12 5 7 7-7 7" }]], "arrow-up-right": [["path", { "d": "M7 7h10v10" }], ["path", { "d": "M7 17 17 7" }]], "arrow-up-down": [["path", { "d": "m21 16-4 4-4-4" }], ["path", { "d": "M17 20V4" }], ["path", { "d": "m3 8 4-4 4 4" }], ["path", { "d": "M7 4v16" }]], "loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]], "circle-alert": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["line", { "x1": "12", "x2": "12", "y1": "8", "y2": "12" }], ["line", { "x1": "12", "x2": "12.01", "y1": "16", "y2": "16" }]], "circle-check": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "m16 9-5.5 5.5L8 12" }]], "info": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 16v-4" }], ["path", { "d": "M12 8h.01" }]], "triangle-alert": [["path", { "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }], ["path", { "d": "M12 9v4" }], ["path", { "d": "M12 17h.01" }]], "settings": [["path", { "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "user": [["path", { "d": "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", { "cx": "12", "cy": "7", "r": "4" }]], "users": [["path", { "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }], ["path", { "d": "M16 3.128a4 4 0 0 1 0 7.744" }], ["path", { "d": "M22 21v-2a4 4 0 0 0-3-3.87" }], ["circle", { "cx": "9", "cy": "7", "r": "4" }]], "filter": [["path", { "d": "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" }]], "ellipsis": [["circle", { "cx": "12", "cy": "12", "r": "1" }], ["circle", { "cx": "19", "cy": "12", "r": "1" }], ["circle", { "cx": "5", "cy": "12", "r": "1" }]], "external-link": [["path", { "d": "M15 3h6v6" }], ["path", { "d": "M10 14 21 3" }], ["path", { "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]], "copy": [["rect", { "width": "14", "height": "14", "x": "8", "y": "8", "rx": "2", "ry": "2" }], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]], "trash-2": [["path", { "d": "M10 11v6" }], ["path", { "d": "M14 11v6" }], ["path", { "d": "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }], ["path", { "d": "M3 6h18" }], ["path", { "d": "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]], "pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }], ["path", { "d": "m15 5 4 4" }]], "download": [["path", { "d": "M12 15V3" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10 5 5 5-5" }]], "upload": [["path", { "d": "M12 3v12" }], ["path", { "d": "m17 8-5-5-5 5" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]], "calendar": [["path", { "d": "M8 2v3" }], ["path", { "d": "M16 2v3" }], ["rect", { "x": "3", "y": "3", "width": "18", "height": "18", "rx": "2" }], ["path", { "d": "M3 9h18" }]], "bell": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }]], "menu": [["path", { "d": "M4 5h16" }], ["path", { "d": "M4 12h16" }], ["path", { "d": "M4 19h16" }]], "eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "log-out": [["path", { "d": "m16 17 5-5-5-5" }], ["path", { "d": "M21 12H9" }], ["path", { "d": "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }]], "circle": [["circle", { "cx": "12", "cy": "12", "r": "10" }]], "circle-dot-dashed": [["path", { "d": "M10.1 2.18a9.93 9.93 0 0 1 3.8 0" }], ["path", { "d": "M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7" }], ["path", { "d": "M21.82 10.1a9.93 9.93 0 0 1 0 3.8" }], ["path", { "d": "M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69" }], ["path", { "d": "M13.9 21.82a9.94 9.94 0 0 1-3.8 0" }], ["path", { "d": "M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7" }], ["path", { "d": "M2.18 13.9a9.93 9.93 0 0 1 0-3.8" }], ["path", { "d": "M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69" }], ["circle", { "cx": "12", "cy": "12", "r": "1" }]], "ban": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M4.929 4.929 19.07 19.071" }]], "arrow-up": [["path", { "d": "m5 12 7-7 7 7" }], ["path", { "d": "M12 19V5" }]], "arrow-down": [["path", { "d": "M12 5v14" }], ["path", { "d": "m19 12-7 7-7-7" }]], "inbox": [["polyline", { "points": "22 12 16 12 14 15 10 15 8 12 2 12" }], ["path", { "d": "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }]], "pin": [["path", { "d": "M12 17v5" }], ["path", { "d": "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" }]], "pin-off": [["path", { "d": "M12 17v5" }], ["path", { "d": "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" }], ["path", { "d": "m2 2 20 20" }], ["path", { "d": "M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" }]], "eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }], ["path", { "d": "M14.084 14.158a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }], ["path", { "d": "m2 2 20 20" }]], "columns-3": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "M15 3v18" }]], "arrow-left": [["path", { "d": "m12 19-7-7 7-7" }], ["path", { "d": "M19 12H5" }]], "rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]], "house": [["path", { "d": "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }], ["path", { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }]], "layout-dashboard": [["rect", { "width": "7", "height": "9", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "14", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "9", "x": "14", "y": "12", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "3", "y": "16", "rx": "1" }]], "folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]], "chart-column": [["path", { "d": "M3 3v16a2 2 0 0 0 2 2h16" }], ["path", { "d": "M18 17V9" }], ["path", { "d": "M13 17V5" }], ["path", { "d": "M8 17v-3" }]], "file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }], ["path", { "d": "M10 9H8" }], ["path", { "d": "M16 13H8" }], ["path", { "d": "M16 17H8" }]], "mail": [["path", { "d": "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }], ["rect", { "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }]], "lock": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 10 0v4" }]], "clock": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 6v6l4 2" }]], "trending-up": [["path", { "d": "M16 7h6v6" }], ["path", { "d": "m22 7-8.5 8.5-5-5L2 17" }]], "trending-down": [["path", { "d": "M16 17h6v-6" }], ["path", { "d": "m22 17-8.5-8.5-5 5L2 7" }]], "image": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2", "ry": "2" }], ["circle", { "cx": "9", "cy": "9", "r": "2" }], ["path", { "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]], "paperclip": [["path", { "d": "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" }]], "cloud-upload": [["path", { "d": "M12 13v8" }], ["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "m8 17 4-4 4 4" }]], "file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]], "sun": [["circle", { "cx": "12", "cy": "12", "r": "4" }], ["path", { "d": "M12 2v2" }], ["path", { "d": "M12 20v2" }], ["path", { "d": "m4.93 4.93 1.41 1.41" }], ["path", { "d": "m17.66 17.66 1.41 1.41" }], ["path", { "d": "M2 12h2" }], ["path", { "d": "M20 12h2" }], ["path", { "d": "m6.34 17.66-1.41 1.41" }], ["path", { "d": "m19.07 4.93-1.41 1.41" }]], "moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]], "monitor": [["rect", { "width": "20", "height": "14", "x": "2", "y": "3", "rx": "2" }], ["line", { "x1": "8", "x2": "16", "y1": "21", "y2": "21" }], ["line", { "x1": "12", "x2": "12", "y1": "17", "y2": "21" }]], "panel-left-close": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "m16 15-3-3 3-3" }]], "panel-left-open": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "m14 9 3 3-3 3" }]], "server": [["rect", { "width": "20", "height": "8", "x": "2", "y": "2", "rx": "2", "ry": "2" }], ["rect", { "width": "20", "height": "8", "x": "2", "y": "14", "rx": "2", "ry": "2" }], ["line", { "x1": "6", "x2": "6.01", "y1": "6", "y2": "6" }], ["line", { "x1": "6", "x2": "6.01", "y1": "18", "y2": "18" }]], "globe": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }], ["path", { "d": "M2 12h20" }]], "activity": [["path", { "d": "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" }]], "shield-alert": [["path", { "d": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }], ["path", { "d": "M12 8v4" }], ["path", { "d": "M12 16h.01" }]], "phone": [["path", { "d": "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" }]], "wrench": [["path", { "d": "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }]] };
|
|
832
854
|
var SIZES = { sm: 16, md: 20, lg: 24 };
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
{
|
|
839
|
-
className: cx("aura-icon", "aura-icon--custom", props.className),
|
|
840
|
-
style: { width: size, height: size, ["--aura-icon-stroke"]: props.strokeWidth || 2 },
|
|
841
|
-
...props.label ? { role: "img", "aria-label": props.label } : { "aria-hidden": true }
|
|
842
|
-
},
|
|
843
|
-
props.name
|
|
844
|
-
);
|
|
845
|
-
}
|
|
846
|
-
const shapes = ICONS[props.name];
|
|
847
|
-
if (!shapes) return null;
|
|
855
|
+
function iconSize(size) {
|
|
856
|
+
return SIZES[size] || size || 16;
|
|
857
|
+
}
|
|
858
|
+
function iconSvg(shapes, props, ref) {
|
|
859
|
+
const size = iconSize(props.size);
|
|
848
860
|
const a11y = props.label ? { role: "img", "aria-label": props.label } : { "aria-hidden": true, focusable: "false" };
|
|
849
861
|
return /* @__PURE__ */ React.createElement(
|
|
850
862
|
"svg",
|
|
@@ -868,21 +880,139 @@ var Icon = React.forwardRef(function Icon2(props, ref) {
|
|
|
868
880
|
return h(s[0], attrs);
|
|
869
881
|
})
|
|
870
882
|
);
|
|
883
|
+
}
|
|
884
|
+
function defineIcon(name, shapes) {
|
|
885
|
+
const C = React.forwardRef(function AuraIcon(props, ref) {
|
|
886
|
+
return iconSvg(shapes, props, ref);
|
|
887
|
+
});
|
|
888
|
+
C.displayName = "Icon" + name.split("-").map(function(p) {
|
|
889
|
+
return p.charAt(0).toUpperCase() + p.slice(1);
|
|
890
|
+
}).join("");
|
|
891
|
+
return Object.assign(C, { auraShapes: shapes, iconName: name });
|
|
892
|
+
}
|
|
893
|
+
function shapesOf(el) {
|
|
894
|
+
if (!React.isValidElement(el)) return null;
|
|
895
|
+
const t = el.type;
|
|
896
|
+
return typeof t !== "string" && t && t.auraShapes || null;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
// src/Icon.tsx
|
|
900
|
+
var map = { "check": [["path", { "d": "M20 6 9 17l-5-5" }]], "x": [["path", { "d": "M18 6 6 18" }], ["path", { "d": "m6 6 12 12" }]], "plus": [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]], "minus": [["path", { "d": "M5 12h14" }]], "search": [["path", { "d": "m21 21-4.34-4.34" }], ["circle", { "cx": "11", "cy": "11", "r": "8" }]], "chevron-down": [["path", { "d": "m6 9 6 6 6-6" }]], "chevron-up": [["path", { "d": "m18 15-6-6-6 6" }]], "chevron-left": [["path", { "d": "m15 18-6-6 6-6" }]], "chevron-right": [["path", { "d": "m9 18 6-6-6-6" }]], "arrow-right": [["path", { "d": "M5 12h14" }], ["path", { "d": "m12 5 7 7-7 7" }]], "arrow-up-right": [["path", { "d": "M7 7h10v10" }], ["path", { "d": "M7 17 17 7" }]], "arrow-up-down": [["path", { "d": "m21 16-4 4-4-4" }], ["path", { "d": "M17 20V4" }], ["path", { "d": "m3 8 4-4 4 4" }], ["path", { "d": "M7 4v16" }]], "loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]], "circle-alert": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["line", { "x1": "12", "x2": "12", "y1": "8", "y2": "12" }], ["line", { "x1": "12", "x2": "12.01", "y1": "16", "y2": "16" }]], "circle-check": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "m16 9-5.5 5.5L8 12" }]], "info": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 16v-4" }], ["path", { "d": "M12 8h.01" }]], "triangle-alert": [["path", { "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }], ["path", { "d": "M12 9v4" }], ["path", { "d": "M12 17h.01" }]], "settings": [["path", { "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "user": [["path", { "d": "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", { "cx": "12", "cy": "7", "r": "4" }]], "users": [["path", { "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }], ["path", { "d": "M16 3.128a4 4 0 0 1 0 7.744" }], ["path", { "d": "M22 21v-2a4 4 0 0 0-3-3.87" }], ["circle", { "cx": "9", "cy": "7", "r": "4" }]], "filter": [["path", { "d": "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" }]], "ellipsis": [["circle", { "cx": "12", "cy": "12", "r": "1" }], ["circle", { "cx": "19", "cy": "12", "r": "1" }], ["circle", { "cx": "5", "cy": "12", "r": "1" }]], "external-link": [["path", { "d": "M15 3h6v6" }], ["path", { "d": "M10 14 21 3" }], ["path", { "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]], "copy": [["rect", { "width": "14", "height": "14", "x": "8", "y": "8", "rx": "2", "ry": "2" }], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]], "trash-2": [["path", { "d": "M10 11v6" }], ["path", { "d": "M14 11v6" }], ["path", { "d": "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }], ["path", { "d": "M3 6h18" }], ["path", { "d": "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]], "pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }], ["path", { "d": "m15 5 4 4" }]], "download": [["path", { "d": "M12 15V3" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10 5 5 5-5" }]], "upload": [["path", { "d": "M12 3v12" }], ["path", { "d": "m17 8-5-5-5 5" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]], "calendar": [["path", { "d": "M8 2v3" }], ["path", { "d": "M16 2v3" }], ["rect", { "x": "3", "y": "3", "width": "18", "height": "18", "rx": "2" }], ["path", { "d": "M3 9h18" }]], "bell": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }]], "menu": [["path", { "d": "M4 5h16" }], ["path", { "d": "M4 12h16" }], ["path", { "d": "M4 19h16" }]], "eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "log-out": [["path", { "d": "m16 17 5-5-5-5" }], ["path", { "d": "M21 12H9" }], ["path", { "d": "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }]], "circle": [["circle", { "cx": "12", "cy": "12", "r": "10" }]], "circle-dot-dashed": [["path", { "d": "M10.1 2.18a9.93 9.93 0 0 1 3.8 0" }], ["path", { "d": "M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7" }], ["path", { "d": "M21.82 10.1a9.93 9.93 0 0 1 0 3.8" }], ["path", { "d": "M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69" }], ["path", { "d": "M13.9 21.82a9.94 9.94 0 0 1-3.8 0" }], ["path", { "d": "M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7" }], ["path", { "d": "M2.18 13.9a9.93 9.93 0 0 1 0-3.8" }], ["path", { "d": "M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69" }], ["circle", { "cx": "12", "cy": "12", "r": "1" }]], "ban": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M4.929 4.929 19.07 19.071" }]], "arrow-up": [["path", { "d": "m5 12 7-7 7 7" }], ["path", { "d": "M12 19V5" }]], "arrow-down": [["path", { "d": "M12 5v14" }], ["path", { "d": "m19 12-7 7-7-7" }]], "inbox": [["polyline", { "points": "22 12 16 12 14 15 10 15 8 12 2 12" }], ["path", { "d": "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }]], "pin": [["path", { "d": "M12 17v5" }], ["path", { "d": "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" }]], "pin-off": [["path", { "d": "M12 17v5" }], ["path", { "d": "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" }], ["path", { "d": "m2 2 20 20" }], ["path", { "d": "M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" }]], "eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }], ["path", { "d": "M14.084 14.158a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }], ["path", { "d": "m2 2 20 20" }]], "columns-3": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "M15 3v18" }]], "arrow-left": [["path", { "d": "m12 19-7-7 7-7" }], ["path", { "d": "M19 12H5" }]], "rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]], "house": [["path", { "d": "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }], ["path", { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }]], "layout-dashboard": [["rect", { "width": "7", "height": "9", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "14", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "9", "x": "14", "y": "12", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "3", "y": "16", "rx": "1" }]], "folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]], "chart-column": [["path", { "d": "M3 3v16a2 2 0 0 0 2 2h16" }], ["path", { "d": "M18 17V9" }], ["path", { "d": "M13 17V5" }], ["path", { "d": "M8 17v-3" }]], "file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }], ["path", { "d": "M10 9H8" }], ["path", { "d": "M16 13H8" }], ["path", { "d": "M16 17H8" }]], "mail": [["path", { "d": "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }], ["rect", { "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }]], "lock": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 10 0v4" }]], "clock": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 6v6l4 2" }]], "trending-up": [["path", { "d": "M16 7h6v6" }], ["path", { "d": "m22 7-8.5 8.5-5-5L2 17" }]], "trending-down": [["path", { "d": "M16 17h6v-6" }], ["path", { "d": "m22 17-8.5-8.5-5 5L2 7" }]], "image": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2", "ry": "2" }], ["circle", { "cx": "9", "cy": "9", "r": "2" }], ["path", { "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]], "paperclip": [["path", { "d": "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" }]], "cloud-upload": [["path", { "d": "M12 13v8" }], ["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "m8 17 4-4 4 4" }]], "file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]], "sun": [["circle", { "cx": "12", "cy": "12", "r": "4" }], ["path", { "d": "M12 2v2" }], ["path", { "d": "M12 20v2" }], ["path", { "d": "m4.93 4.93 1.41 1.41" }], ["path", { "d": "m17.66 17.66 1.41 1.41" }], ["path", { "d": "M2 12h2" }], ["path", { "d": "M20 12h2" }], ["path", { "d": "m6.34 17.66-1.41 1.41" }], ["path", { "d": "m19.07 4.93-1.41 1.41" }]], "moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]], "monitor": [["rect", { "width": "20", "height": "14", "x": "2", "y": "3", "rx": "2" }], ["line", { "x1": "8", "x2": "16", "y1": "21", "y2": "21" }], ["line", { "x1": "12", "x2": "12", "y1": "17", "y2": "21" }]], "panel-left-close": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "m16 15-3-3 3-3" }]], "panel-left-open": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "m14 9 3 3-3 3" }]], "server": [["rect", { "width": "20", "height": "8", "x": "2", "y": "2", "rx": "2", "ry": "2" }], ["rect", { "width": "20", "height": "8", "x": "2", "y": "14", "rx": "2", "ry": "2" }], ["line", { "x1": "6", "x2": "6.01", "y1": "6", "y2": "6" }], ["line", { "x1": "6", "x2": "6.01", "y1": "18", "y2": "18" }]], "globe": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }], ["path", { "d": "M2 12h20" }]], "activity": [["path", { "d": "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" }]], "shield-alert": [["path", { "d": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }], ["path", { "d": "M12 8v4" }], ["path", { "d": "M12 16h.01" }]], "phone": [["path", { "d": "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" }]], "wrench": [["path", { "d": "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }]] };
|
|
901
|
+
var registered = {};
|
|
902
|
+
function registerIcons(icons) {
|
|
903
|
+
for (let i = 0; i < icons.length; i++) {
|
|
904
|
+
const c = icons[i];
|
|
905
|
+
if (c && c.auraShapes) {
|
|
906
|
+
map[c.iconName] = c.auraShapes;
|
|
907
|
+
registered[c.iconName] = true;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
var Icon = React2.forwardRef(function Icon2(props, ref) {
|
|
912
|
+
const own = shapesOf(props.name);
|
|
913
|
+
if (own) {
|
|
914
|
+
const ep = props.name.props;
|
|
915
|
+
return iconSvg(
|
|
916
|
+
own,
|
|
917
|
+
{
|
|
918
|
+
size: props.size || ep.size,
|
|
919
|
+
label: props.label || ep.label,
|
|
920
|
+
strokeWidth: props.strokeWidth || ep.strokeWidth,
|
|
921
|
+
className: cx(ep.className, props.className) || void 0
|
|
922
|
+
},
|
|
923
|
+
ref
|
|
924
|
+
);
|
|
925
|
+
}
|
|
926
|
+
const drawn = props.name;
|
|
927
|
+
if (React2.isValidElement(drawn) && drawn.type === "svg" && /(^| )aura-icon( |$)/.test(String(drawn.props.className || "")) && !/aura-icon--custom/.test(String(drawn.props.className || ""))) {
|
|
928
|
+
const dp = drawn.props;
|
|
929
|
+
const o = { ref };
|
|
930
|
+
if (props.size) o.width = o.height = iconSize(props.size);
|
|
931
|
+
if (props.strokeWidth) o.strokeWidth = props.strokeWidth;
|
|
932
|
+
if (props.className) o.className = cx(String(dp.className), props.className);
|
|
933
|
+
if (props.label)
|
|
934
|
+
Object.assign(o, { role: "img", "aria-label": props.label, "aria-hidden": void 0, focusable: void 0 });
|
|
935
|
+
return React2.cloneElement(drawn, o);
|
|
936
|
+
}
|
|
937
|
+
if (React2.isValidElement(props.name)) {
|
|
938
|
+
const size = iconSize(props.size);
|
|
939
|
+
return /* @__PURE__ */ React2.createElement(
|
|
940
|
+
"span",
|
|
941
|
+
{
|
|
942
|
+
className: cx("aura-icon", "aura-icon--custom", props.className),
|
|
943
|
+
style: { width: size, height: size, ["--aura-icon-stroke"]: props.strokeWidth || 2 },
|
|
944
|
+
...props.label ? { role: "img", "aria-label": props.label } : { "aria-hidden": true }
|
|
945
|
+
},
|
|
946
|
+
props.name
|
|
947
|
+
);
|
|
948
|
+
}
|
|
949
|
+
if (typeof props.name === "string" && !registered[props.name])
|
|
950
|
+
devWarnOnce(
|
|
951
|
+
"icon-names",
|
|
952
|
+
'Icon names as strings (icon="' + props.name + '") need registerIcons() from 6.0. Import icons from "@jirawatpyk/aura-react/icons" (npx aura-icons-codemod), or call registerIcons(allIcons) once.'
|
|
953
|
+
);
|
|
954
|
+
const shapes = map[props.name];
|
|
955
|
+
if (!shapes) return null;
|
|
956
|
+
return iconSvg(shapes, props, ref);
|
|
871
957
|
});
|
|
872
|
-
var iconNames = Object.keys(
|
|
958
|
+
var iconNames = Object.keys(map);
|
|
959
|
+
|
|
960
|
+
// src/icons.ts
|
|
961
|
+
var IconCircleAlert = /* @__PURE__ */ defineIcon("circle-alert", [
|
|
962
|
+
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
963
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12" }],
|
|
964
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16" }]
|
|
965
|
+
]);
|
|
966
|
+
var IconCircleCheck = /* @__PURE__ */ defineIcon("circle-check", [
|
|
967
|
+
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
968
|
+
["path", { d: "m16 9-5.5 5.5L8 12" }]
|
|
969
|
+
]);
|
|
970
|
+
var IconInfo = /* @__PURE__ */ defineIcon("info", [
|
|
971
|
+
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
972
|
+
["path", { d: "M12 16v-4" }],
|
|
973
|
+
["path", { d: "M12 8h.01" }]
|
|
974
|
+
]);
|
|
975
|
+
var IconTriangleAlert = /* @__PURE__ */ defineIcon("triangle-alert", [
|
|
976
|
+
["path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }],
|
|
977
|
+
["path", { d: "M12 9v4" }],
|
|
978
|
+
["path", { d: "M12 17h.01" }]
|
|
979
|
+
]);
|
|
980
|
+
var IconCircle = /* @__PURE__ */ defineIcon("circle", [["circle", { cx: "12", cy: "12", r: "10" }]]);
|
|
981
|
+
var IconCircleDotDashed = /* @__PURE__ */ defineIcon("circle-dot-dashed", [
|
|
982
|
+
["path", { d: "M10.1 2.18a9.93 9.93 0 0 1 3.8 0" }],
|
|
983
|
+
["path", { d: "M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7" }],
|
|
984
|
+
["path", { d: "M21.82 10.1a9.93 9.93 0 0 1 0 3.8" }],
|
|
985
|
+
["path", { d: "M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69" }],
|
|
986
|
+
["path", { d: "M13.9 21.82a9.94 9.94 0 0 1-3.8 0" }],
|
|
987
|
+
["path", { d: "M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7" }],
|
|
988
|
+
["path", { d: "M2.18 13.9a9.93 9.93 0 0 1 0-3.8" }],
|
|
989
|
+
["path", { d: "M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69" }],
|
|
990
|
+
["circle", { cx: "12", cy: "12", r: "1" }]
|
|
991
|
+
]);
|
|
992
|
+
var IconBan = /* @__PURE__ */ defineIcon("ban", [
|
|
993
|
+
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
994
|
+
["path", { d: "M4.929 4.929 19.07 19.071" }]
|
|
995
|
+
]);
|
|
996
|
+
var IconInbox = /* @__PURE__ */ defineIcon("inbox", [
|
|
997
|
+
["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12" }],
|
|
998
|
+
[
|
|
999
|
+
"path",
|
|
1000
|
+
{ d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }
|
|
1001
|
+
]
|
|
1002
|
+
]);
|
|
873
1003
|
|
|
874
1004
|
// src/display.tsx
|
|
875
|
-
var h2 =
|
|
1005
|
+
var h2 = React3.createElement;
|
|
876
1006
|
var ALERT_ICON = {
|
|
877
|
-
info:
|
|
878
|
-
success:
|
|
879
|
-
warning:
|
|
880
|
-
danger:
|
|
1007
|
+
info: IconInfo,
|
|
1008
|
+
success: IconCircleCheck,
|
|
1009
|
+
warning: IconTriangleAlert,
|
|
1010
|
+
danger: IconCircleAlert
|
|
881
1011
|
};
|
|
882
1012
|
function alertElement(props, ref, close) {
|
|
883
1013
|
const tone2 = props.tone || "info";
|
|
884
1014
|
const rest = omit(props, ["tone", "title", "children", "action", "onDismiss", "className", "role", "icon"]);
|
|
885
|
-
return /* @__PURE__ */
|
|
1015
|
+
return /* @__PURE__ */ React3.createElement(
|
|
886
1016
|
"div",
|
|
887
1017
|
{
|
|
888
1018
|
...rest,
|
|
@@ -890,8 +1020,8 @@ function alertElement(props, ref, close) {
|
|
|
890
1020
|
className: cx("aura-alert", "aura-alert--" + tone2, props.className),
|
|
891
1021
|
role: props.role || (tone2 === "danger" || tone2 === "warning" ? "alert" : "status")
|
|
892
1022
|
},
|
|
893
|
-
/* @__PURE__ */
|
|
894
|
-
/* @__PURE__ */
|
|
1023
|
+
/* @__PURE__ */ React3.createElement(Icon, { name: props.icon || h2(ALERT_ICON[tone2]), className: "aura-alert__icon" }),
|
|
1024
|
+
/* @__PURE__ */ React3.createElement("div", { className: "aura-alert__body" }, props.title ? /* @__PURE__ */ React3.createElement("p", { className: "aura-alert__title" }, props.title) : null, props.children ? /* @__PURE__ */ React3.createElement("div", { className: "aura-alert__text" }, props.children) : null, props.action ? /* @__PURE__ */ React3.createElement("div", { className: "aura-alert__action" }, props.action) : null),
|
|
895
1025
|
close
|
|
896
1026
|
);
|
|
897
1027
|
}
|
|
@@ -923,26 +1053,26 @@ function cardElement(props, ref) {
|
|
|
923
1053
|
/* A titled card is labelled by its title; otherwise the caller's aria-labelledby stays (5.8). */
|
|
924
1054
|
"aria-labelledby": props.title && props.titleId ? props.titleId : props["aria-labelledby"]
|
|
925
1055
|
}),
|
|
926
|
-
props.title || props.actions ? /* @__PURE__ */
|
|
927
|
-
props.children ? /* @__PURE__ */
|
|
928
|
-
props.footer ? /* @__PURE__ */
|
|
1056
|
+
props.title || props.actions ? /* @__PURE__ */ React3.createElement("div", { className: "aura-card__head" }, /* @__PURE__ */ React3.createElement("div", { className: "aura-card__heading" }, props.title ? h2("h" + (props.headingLevel || 3), { className: "aura-card__title", id: props.titleId }, props.title) : null, props.description ? /* @__PURE__ */ React3.createElement("p", { className: "aura-card__desc" }, props.description) : null), props.actions ? /* @__PURE__ */ React3.createElement("div", { className: "aura-card__actions" }, props.actions) : null) : null,
|
|
1057
|
+
props.children ? /* @__PURE__ */ React3.createElement("div", { className: "aura-card__body" }, props.children) : null,
|
|
1058
|
+
props.footer ? /* @__PURE__ */ React3.createElement("div", { className: "aura-card__foot" }, props.footer) : null
|
|
929
1059
|
);
|
|
930
1060
|
}
|
|
931
1061
|
var PILL_ICON = {
|
|
932
|
-
neutral:
|
|
933
|
-
progress:
|
|
934
|
-
ready:
|
|
935
|
-
warning:
|
|
936
|
-
blocked:
|
|
1062
|
+
neutral: IconCircle,
|
|
1063
|
+
progress: IconCircleDotDashed,
|
|
1064
|
+
ready: IconCircleCheck,
|
|
1065
|
+
warning: IconTriangleAlert,
|
|
1066
|
+
blocked: IconBan
|
|
937
1067
|
};
|
|
938
1068
|
function statusPillElement(props, ref) {
|
|
939
1069
|
const tone2 = props.tone || toneFor(props.children);
|
|
940
1070
|
const rest = omit(props, ["tone", "className", "children"]);
|
|
941
|
-
return /* @__PURE__ */
|
|
1071
|
+
return /* @__PURE__ */ React3.createElement("span", { ...rest, ref, className: cx("aura-pill", "aura-pill--" + tone2, props.className) }, /* @__PURE__ */ React3.createElement(Icon, { name: h2(PILL_ICON[tone2] || IconCircle), size: 12 }), props.children);
|
|
942
1072
|
}
|
|
943
1073
|
function badgeElement(props, ref) {
|
|
944
1074
|
const rest = omit(props, ["tone", "variant", "icon", "className", "children"]);
|
|
945
|
-
return /* @__PURE__ */
|
|
1075
|
+
return /* @__PURE__ */ React3.createElement(
|
|
946
1076
|
"span",
|
|
947
1077
|
{
|
|
948
1078
|
...rest,
|
|
@@ -955,22 +1085,22 @@ function badgeElement(props, ref) {
|
|
|
955
1085
|
props.className
|
|
956
1086
|
)
|
|
957
1087
|
},
|
|
958
|
-
props.icon ? /* @__PURE__ */
|
|
1088
|
+
props.icon ? /* @__PURE__ */ React3.createElement(Icon, { name: props.icon, size: 12 }) : null,
|
|
959
1089
|
props.children
|
|
960
1090
|
);
|
|
961
1091
|
}
|
|
962
1092
|
function emptyStateElement(props, ref) {
|
|
963
1093
|
const HT = "h" + (props.headingLevel || 3);
|
|
964
|
-
return /* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ React3.createElement(
|
|
965
1095
|
"div",
|
|
966
1096
|
{
|
|
967
1097
|
ref,
|
|
968
1098
|
className: cx("aura-empty", props.size === "sm" && "is-sm", props.bordered && "is-bordered", props.className)
|
|
969
1099
|
},
|
|
970
|
-
/* @__PURE__ */
|
|
971
|
-
/* @__PURE__ */
|
|
972
|
-
props.description ? /* @__PURE__ */
|
|
973
|
-
props.action ? /* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ React3.createElement("span", { className: "aura-empty__icon", "aria-hidden": true }, /* @__PURE__ */ React3.createElement(Icon, { name: props.icon || /* @__PURE__ */ React3.createElement(IconInbox, null), size: props.size === "sm" ? "md" : "lg" })),
|
|
1101
|
+
/* @__PURE__ */ React3.createElement(HT, { className: "aura-empty__title" }, props.title),
|
|
1102
|
+
props.description ? /* @__PURE__ */ React3.createElement("p", { className: "aura-empty__text" }, props.description) : null,
|
|
1103
|
+
props.action ? /* @__PURE__ */ React3.createElement("div", { className: "aura-empty__action" }, props.action) : null
|
|
974
1104
|
);
|
|
975
1105
|
}
|
|
976
1106
|
function buttonClass(opts = {}) {
|
|
@@ -1017,6 +1147,7 @@ export {
|
|
|
1017
1147
|
fromISO,
|
|
1018
1148
|
parseDate,
|
|
1019
1149
|
parseTime,
|
|
1150
|
+
registerIcons,
|
|
1020
1151
|
toneFor as statusTone,
|
|
1021
1152
|
toISO,
|
|
1022
1153
|
todayIn
|