@jirawatpyk/aura-react 4.15.0 → 4.17.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 +76 -5
- package/dist/aura.bundle.js +239 -142
- package/dist/cjs/index.cjs +239 -142
- package/dist/esm/AppShell.js +9 -9
- package/dist/esm/Breadcrumb.js +1 -1
- package/dist/esm/Button.js +12 -3
- package/dist/esm/Command.js +69 -49
- package/dist/esm/DataTable.js +43 -16
- package/dist/esm/DatePicker.js +17 -146
- package/dist/esm/FileUpload.js +1 -10
- package/dist/esm/Pagination.js +35 -23
- package/dist/esm/Skeleton.js +4 -1
- package/dist/esm/Stat.js +1 -1
- package/dist/esm/StatusPill.js +4 -13
- package/dist/esm/TimePicker.js +1 -12
- package/dist/esm/breakpoints.js +5 -0
- package/dist/esm/colorScheme.js +1 -11
- package/dist/esm/colorSchemeScript.js +19 -0
- package/dist/esm/dates.js +164 -0
- package/dist/esm/locale.js +1 -347
- package/dist/esm/responsive.js +1 -1
- package/dist/esm/status.js +17 -0
- package/dist/esm/strings.js +351 -0
- package/dist/esm/text.js +30 -0
- package/dist/index.d.ts +537 -503
- package/dist/server/index.cjs +791 -0
- package/dist/server/index.d.ts +171 -0
- package/dist/server/index.js +768 -0
- package/dist/styles.css +69 -4
- package/dist/styles.layer.css +1352 -0
- package/package.json +11 -4
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
const n = function(x) {
|
|
3
|
+
return Number(x).toLocaleString("en");
|
|
4
|
+
};
|
|
5
|
+
const nsv = function(x) {
|
|
6
|
+
return Number(x).toLocaleString("sv-SE");
|
|
7
|
+
};
|
|
8
|
+
const STRINGS = {
|
|
9
|
+
en: {
|
|
10
|
+
close: "Close",
|
|
11
|
+
dismiss: "Dismiss",
|
|
12
|
+
dismissToast: "Dismiss notification",
|
|
13
|
+
showPassword: "Show password",
|
|
14
|
+
filters: "Filters",
|
|
15
|
+
search: "Search",
|
|
16
|
+
clearFilters: "Clear all",
|
|
17
|
+
results: function(n2) {
|
|
18
|
+
return n2 === 1 ? "1 result" : n2.toLocaleString("en") + " results";
|
|
19
|
+
},
|
|
20
|
+
commandMenu: "Command menu",
|
|
21
|
+
commandPlaceholder: "Type a command or search\u2026",
|
|
22
|
+
commandHint: "\u2191\u2193 to move \xB7 Enter to open \xB7 Esc to close",
|
|
23
|
+
errorSummary: function(n2) {
|
|
24
|
+
return n2 === 1 ? "Fix 1 field to continue" : "Fix " + n2 + " fields to continue";
|
|
25
|
+
},
|
|
26
|
+
notifications: "Notifications",
|
|
27
|
+
mainNav: "Main",
|
|
28
|
+
breadcrumb: "Breadcrumb",
|
|
29
|
+
navigation: "Navigation",
|
|
30
|
+
openNav: "Open navigation",
|
|
31
|
+
collapseNav: "Collapse sidebar",
|
|
32
|
+
expandNav: "Expand sidebar",
|
|
33
|
+
searching: "Searching\u2026",
|
|
34
|
+
noMatches: "No matches",
|
|
35
|
+
clear: function(what) {
|
|
36
|
+
return "Clear " + (what || "selection");
|
|
37
|
+
},
|
|
38
|
+
keepTyping: function(total) {
|
|
39
|
+
return "Keep typing to narrow " + n(total) + " options";
|
|
40
|
+
},
|
|
41
|
+
sortAsc: "Sort ascending",
|
|
42
|
+
sortDesc: "Sort descending",
|
|
43
|
+
pin: "Pin to left",
|
|
44
|
+
unpin: "Unpin column",
|
|
45
|
+
moveLeft: "Move left",
|
|
46
|
+
moveRight: "Move right",
|
|
47
|
+
hideColumn: "Hide column",
|
|
48
|
+
resetColumns: "Reset columns",
|
|
49
|
+
selectRows: "Select rows",
|
|
50
|
+
selectAllRows: "Select all rows",
|
|
51
|
+
deselectAllRows: "Deselect all rows",
|
|
52
|
+
selectAll: "Select all",
|
|
53
|
+
selectRow: function(k) {
|
|
54
|
+
return "Select " + k;
|
|
55
|
+
},
|
|
56
|
+
selectedCount: function(c) {
|
|
57
|
+
return n(c) + " selected";
|
|
58
|
+
},
|
|
59
|
+
pinned: "Pinned",
|
|
60
|
+
columnOptions: function(label) {
|
|
61
|
+
return label + " column options";
|
|
62
|
+
},
|
|
63
|
+
column: function(label) {
|
|
64
|
+
return label ? label + " column" : "Column";
|
|
65
|
+
},
|
|
66
|
+
columns: "Columns",
|
|
67
|
+
showHideColumns: "Show or hide columns",
|
|
68
|
+
empty: "Nothing here yet",
|
|
69
|
+
loading: "Loading\u2026",
|
|
70
|
+
loadingRows: "Loading rows",
|
|
71
|
+
range: function(a, b, total) {
|
|
72
|
+
return a + "\u2013" + b + " of " + n(total);
|
|
73
|
+
},
|
|
74
|
+
page: function(p, total) {
|
|
75
|
+
return "Page " + p + " of " + total;
|
|
76
|
+
},
|
|
77
|
+
prevPage: "Previous page",
|
|
78
|
+
nextPage: "Next page",
|
|
79
|
+
rowCount: function(c) {
|
|
80
|
+
return n(c) + " rows";
|
|
81
|
+
},
|
|
82
|
+
actions: "Actions",
|
|
83
|
+
optional: "optional",
|
|
84
|
+
timePlaceholder: "hh:mm",
|
|
85
|
+
timeInvalid: "Type a time like 09:30",
|
|
86
|
+
timeOutOfRange: function(a, b) {
|
|
87
|
+
return "Choose a time between " + a + " and " + b;
|
|
88
|
+
},
|
|
89
|
+
dropFiles: "Drag files here or",
|
|
90
|
+
browse: "Choose files",
|
|
91
|
+
browseOne: "Choose a file",
|
|
92
|
+
remove: function(n2) {
|
|
93
|
+
return "Remove " + n2;
|
|
94
|
+
},
|
|
95
|
+
fileTooBig: function(max) {
|
|
96
|
+
return "Larger than " + max;
|
|
97
|
+
},
|
|
98
|
+
fileWrongType: "This file type isn\u2019t accepted",
|
|
99
|
+
tooManyFiles: function(n2) {
|
|
100
|
+
return "Up to " + n2 + " files";
|
|
101
|
+
},
|
|
102
|
+
colorScheme: "Colour scheme",
|
|
103
|
+
increase: "Increase",
|
|
104
|
+
decrease: "Decrease",
|
|
105
|
+
stepDone: "completed",
|
|
106
|
+
stepOf: function(i, total) {
|
|
107
|
+
return "Step " + i + " of " + total;
|
|
108
|
+
},
|
|
109
|
+
schemeLight: "Light",
|
|
110
|
+
schemeDark: "Dark",
|
|
111
|
+
schemeSystem: "System",
|
|
112
|
+
uploading: "Uploading\u2026",
|
|
113
|
+
images: "Images",
|
|
114
|
+
pagination: "Pagination",
|
|
115
|
+
pageN: function(p) {
|
|
116
|
+
return "Page " + p;
|
|
117
|
+
},
|
|
118
|
+
accepts: function(list, max) {
|
|
119
|
+
return [list, max && "up to " + max + " each"].filter(Boolean).join(", ");
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
th: {
|
|
123
|
+
close: "\u0E1B\u0E34\u0E14",
|
|
124
|
+
dismiss: "\u0E1B\u0E34\u0E14",
|
|
125
|
+
dismissToast: "\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
|
|
126
|
+
showPassword: "\u0E41\u0E2A\u0E14\u0E07\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",
|
|
127
|
+
filters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
|
128
|
+
search: "\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
|
129
|
+
clearFilters: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
130
|
+
results: function(n2) {
|
|
131
|
+
return n2.toLocaleString("en") + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
132
|
+
},
|
|
133
|
+
commandMenu: "\u0E40\u0E21\u0E19\u0E39\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07",
|
|
134
|
+
commandPlaceholder: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
|
|
135
|
+
commandHint: "\u2191\u2193 \u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19 \xB7 Enter \u0E40\u0E1B\u0E34\u0E14 \xB7 Esc \u0E1B\u0E34\u0E14",
|
|
136
|
+
errorSummary: function(n2) {
|
|
137
|
+
return "\u0E41\u0E01\u0E49\u0E44\u0E02 " + n2 + " \u0E0A\u0E48\u0E2D\u0E07\u0E01\u0E48\u0E2D\u0E19\u0E44\u0E1B\u0E15\u0E48\u0E2D";
|
|
138
|
+
},
|
|
139
|
+
notifications: "\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19",
|
|
140
|
+
mainNav: "\u0E40\u0E21\u0E19\u0E39\u0E2B\u0E25\u0E31\u0E01",
|
|
141
|
+
breadcrumb: "\u0E40\u0E2A\u0E49\u0E19\u0E17\u0E32\u0E07",
|
|
142
|
+
navigation: "\u0E40\u0E21\u0E19\u0E39",
|
|
143
|
+
openNav: "\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E21\u0E19\u0E39",
|
|
144
|
+
collapseNav: "\u0E22\u0E48\u0E2D\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
|
|
145
|
+
expandNav: "\u0E02\u0E22\u0E32\u0E22\u0E41\u0E16\u0E1A\u0E40\u0E21\u0E19\u0E39",
|
|
146
|
+
searching: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E49\u0E19\u0E2B\u0E32\u2026",
|
|
147
|
+
noMatches: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
|
|
148
|
+
clear: function(what) {
|
|
149
|
+
return "\u0E25\u0E49\u0E32\u0E07" + (what || "\u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01");
|
|
150
|
+
},
|
|
151
|
+
keepTyping: function(total) {
|
|
152
|
+
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";
|
|
153
|
+
},
|
|
154
|
+
sortAsc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E44\u0E1B\u0E21\u0E32\u0E01",
|
|
155
|
+
sortDesc: "\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E21\u0E32\u0E01\u0E44\u0E1B\u0E19\u0E49\u0E2D\u0E22",
|
|
156
|
+
pin: "\u0E15\u0E23\u0E36\u0E07\u0E44\u0E27\u0E49\u0E0B\u0E49\u0E32\u0E22",
|
|
157
|
+
unpin: "\u0E40\u0E25\u0E34\u0E01\u0E15\u0E23\u0E36\u0E07\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
158
|
+
moveLeft: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E0B\u0E49\u0E32\u0E22",
|
|
159
|
+
moveRight: "\u0E22\u0E49\u0E32\u0E22\u0E44\u0E1B\u0E02\u0E27\u0E32",
|
|
160
|
+
hideColumn: "\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
161
|
+
resetColumns: "\u0E04\u0E37\u0E19\u0E04\u0E48\u0E32\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
162
|
+
selectRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E16\u0E27",
|
|
163
|
+
selectAllRows: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
|
|
164
|
+
deselectAllRows: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E38\u0E01\u0E41\u0E16\u0E27",
|
|
165
|
+
selectAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
166
|
+
selectRow: function(k) {
|
|
167
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + k;
|
|
168
|
+
},
|
|
169
|
+
selectedCount: function(c) {
|
|
170
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01 " + n(c) + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
|
|
171
|
+
},
|
|
172
|
+
pinned: "\u0E15\u0E23\u0E36\u0E07\u0E2D\u0E22\u0E39\u0E48",
|
|
173
|
+
columnOptions: function(label) {
|
|
174
|
+
return "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label;
|
|
175
|
+
},
|
|
176
|
+
column: function(label) {
|
|
177
|
+
return label ? "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C " + label : "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C";
|
|
178
|
+
},
|
|
179
|
+
columns: "\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
180
|
+
showHideColumns: "\u0E41\u0E2A\u0E14\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E0B\u0E48\u0E2D\u0E19\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",
|
|
181
|
+
empty: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
182
|
+
loading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u2026",
|
|
183
|
+
loadingRows: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
|
184
|
+
range: function(a, b, total) {
|
|
185
|
+
return a + "\u2013" + b + " \u0E08\u0E32\u0E01 " + n(total);
|
|
186
|
+
},
|
|
187
|
+
page: function(p, total) {
|
|
188
|
+
return "\u0E2B\u0E19\u0E49\u0E32 " + p + " / " + total;
|
|
189
|
+
},
|
|
190
|
+
prevPage: "\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
|
|
191
|
+
nextPage: "\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",
|
|
192
|
+
rowCount: function(c) {
|
|
193
|
+
return n(c) + " \u0E41\u0E16\u0E27";
|
|
194
|
+
},
|
|
195
|
+
actions: "\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23",
|
|
196
|
+
optional: "\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A",
|
|
197
|
+
timePlaceholder: "\u0E0A\u0E0A:\u0E19\u0E19",
|
|
198
|
+
timeInvalid: "\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A 09:30",
|
|
199
|
+
timeOutOfRange: function(a, b) {
|
|
200
|
+
return "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 " + a + "\u2013" + b + " \u0E19.";
|
|
201
|
+
},
|
|
202
|
+
dropFiles: "\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E27\u0E32\u0E07 \u0E2B\u0E23\u0E37\u0E2D",
|
|
203
|
+
browse: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
|
|
204
|
+
browseOne: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E1F\u0E25\u0E4C",
|
|
205
|
+
remove: function(n2) {
|
|
206
|
+
return "\u0E25\u0E1A " + n2;
|
|
207
|
+
},
|
|
208
|
+
fileTooBig: function(max) {
|
|
209
|
+
return "\u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19 " + max;
|
|
210
|
+
},
|
|
211
|
+
fileWrongType: "\u0E44\u0E21\u0E48\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E44\u0E1F\u0E25\u0E4C\u0E0A\u0E19\u0E34\u0E14\u0E19\u0E35\u0E49",
|
|
212
|
+
tooManyFiles: function(n2) {
|
|
213
|
+
return "\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + n2 + " \u0E44\u0E1F\u0E25\u0E4C";
|
|
214
|
+
},
|
|
215
|
+
colorScheme: "\u0E42\u0E2B\u0E21\u0E14\u0E2A\u0E35",
|
|
216
|
+
increase: "\u0E40\u0E1E\u0E34\u0E48\u0E21",
|
|
217
|
+
decrease: "\u0E25\u0E14",
|
|
218
|
+
stepDone: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
|
|
219
|
+
stepOf: function(i, total) {
|
|
220
|
+
return "\u0E02\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48 " + i + " \u0E08\u0E32\u0E01 " + total;
|
|
221
|
+
},
|
|
222
|
+
schemeLight: "\u0E2A\u0E27\u0E48\u0E32\u0E07",
|
|
223
|
+
schemeDark: "\u0E21\u0E37\u0E14",
|
|
224
|
+
schemeSystem: "\u0E15\u0E32\u0E21\u0E23\u0E30\u0E1A\u0E1A",
|
|
225
|
+
uploading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u2026",
|
|
226
|
+
images: "\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E",
|
|
227
|
+
pagination: "\u0E40\u0E25\u0E02\u0E2B\u0E19\u0E49\u0E32",
|
|
228
|
+
pageN: function(p) {
|
|
229
|
+
return "\u0E2B\u0E19\u0E49\u0E32 " + p;
|
|
230
|
+
},
|
|
231
|
+
accepts: function(list, max) {
|
|
232
|
+
return [list, max && "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 " + max + " \u0E15\u0E48\u0E2D\u0E44\u0E1F\u0E25\u0E4C"].filter(Boolean).join(" \xB7 ");
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
sv: {
|
|
236
|
+
close: "St\xE4ng",
|
|
237
|
+
dismiss: "St\xE4ng",
|
|
238
|
+
dismissToast: "St\xE4ng aviseringen",
|
|
239
|
+
showPassword: "Visa l\xF6senord",
|
|
240
|
+
filters: "Filter",
|
|
241
|
+
search: "S\xF6k",
|
|
242
|
+
clearFilters: "Rensa alla",
|
|
243
|
+
results: function(n2) {
|
|
244
|
+
return n2 === 1 ? "1 tr\xE4ff" : n2.toLocaleString("sv-SE") + " tr\xE4ffar";
|
|
245
|
+
},
|
|
246
|
+
commandMenu: "Kommandomeny",
|
|
247
|
+
commandPlaceholder: "Skriv ett kommando eller s\xF6k\u2026",
|
|
248
|
+
commandHint: "\u2191\u2193 flytta \xB7 Enter \xF6ppna \xB7 Esc st\xE4ng",
|
|
249
|
+
errorSummary: function(n2) {
|
|
250
|
+
return n2 === 1 ? "R\xE4tta 1 f\xE4lt f\xF6r att forts\xE4tta" : "R\xE4tta " + n2 + " f\xE4lt f\xF6r att forts\xE4tta";
|
|
251
|
+
},
|
|
252
|
+
notifications: "Aviseringar",
|
|
253
|
+
mainNav: "Huvudmeny",
|
|
254
|
+
breadcrumb: "Br\xF6dsmulor",
|
|
255
|
+
navigation: "Navigering",
|
|
256
|
+
openNav: "\xD6ppna menyn",
|
|
257
|
+
collapseNav: "F\xE4ll ihop sidof\xE4ltet",
|
|
258
|
+
expandNav: "F\xE4ll ut sidof\xE4ltet",
|
|
259
|
+
searching: "S\xF6ker\u2026",
|
|
260
|
+
noMatches: "Inga tr\xE4ffar",
|
|
261
|
+
clear: function(what) {
|
|
262
|
+
return "Rensa " + (what || "urvalet");
|
|
263
|
+
},
|
|
264
|
+
keepTyping: function(total) {
|
|
265
|
+
return "Skriv mer f\xF6r att begr\xE4nsa " + nsv(total) + " alternativ";
|
|
266
|
+
},
|
|
267
|
+
sortAsc: "Sortera stigande",
|
|
268
|
+
sortDesc: "Sortera fallande",
|
|
269
|
+
pin: "F\xE4st till v\xE4nster",
|
|
270
|
+
unpin: "Lossa kolumnen",
|
|
271
|
+
moveLeft: "Flytta v\xE4nster",
|
|
272
|
+
moveRight: "Flytta h\xF6ger",
|
|
273
|
+
hideColumn: "D\xF6lj kolumnen",
|
|
274
|
+
resetColumns: "\xC5terst\xE4ll kolumner",
|
|
275
|
+
selectRows: "V\xE4lj rader",
|
|
276
|
+
selectAllRows: "V\xE4lj alla rader",
|
|
277
|
+
deselectAllRows: "Avmarkera alla rader",
|
|
278
|
+
selectAll: "V\xE4lj alla",
|
|
279
|
+
selectRow: function(k) {
|
|
280
|
+
return "V\xE4lj " + k;
|
|
281
|
+
},
|
|
282
|
+
selectedCount: function(c) {
|
|
283
|
+
return nsv(c) + " valda";
|
|
284
|
+
},
|
|
285
|
+
pinned: "F\xE4st",
|
|
286
|
+
columnOptions: function(label) {
|
|
287
|
+
return "Alternativ f\xF6r kolumnen " + label;
|
|
288
|
+
},
|
|
289
|
+
column: function(label) {
|
|
290
|
+
return label ? "Kolumnen " + label : "Kolumn";
|
|
291
|
+
},
|
|
292
|
+
columns: "Kolumner",
|
|
293
|
+
showHideColumns: "Visa eller d\xF6lj kolumner",
|
|
294
|
+
empty: "Inget h\xE4r \xE4nnu",
|
|
295
|
+
loading: "Laddar\u2026",
|
|
296
|
+
loadingRows: "Laddar rader",
|
|
297
|
+
range: function(a, b, total) {
|
|
298
|
+
return a + "\u2013" + b + " av " + nsv(total);
|
|
299
|
+
},
|
|
300
|
+
page: function(p, total) {
|
|
301
|
+
return "Sida " + p + " av " + total;
|
|
302
|
+
},
|
|
303
|
+
prevPage: "F\xF6reg\xE5ende sida",
|
|
304
|
+
nextPage: "N\xE4sta sida",
|
|
305
|
+
rowCount: function(c) {
|
|
306
|
+
return nsv(c) + " rader";
|
|
307
|
+
},
|
|
308
|
+
actions: "\xC5tg\xE4rder",
|
|
309
|
+
optional: "valfritt",
|
|
310
|
+
timePlaceholder: "tt:mm",
|
|
311
|
+
timeInvalid: "Skriv en tid som 09:30",
|
|
312
|
+
timeOutOfRange: function(a, b) {
|
|
313
|
+
return "V\xE4lj en tid mellan " + a + " och " + b;
|
|
314
|
+
},
|
|
315
|
+
dropFiles: "Dra filer hit eller",
|
|
316
|
+
browse: "V\xE4lj filer",
|
|
317
|
+
browseOne: "V\xE4lj en fil",
|
|
318
|
+
remove: function(n2) {
|
|
319
|
+
return "Ta bort " + n2;
|
|
320
|
+
},
|
|
321
|
+
fileTooBig: function(max) {
|
|
322
|
+
return "St\xF6rre \xE4n " + max;
|
|
323
|
+
},
|
|
324
|
+
fileWrongType: "Den h\xE4r filtypen godtas inte",
|
|
325
|
+
tooManyFiles: function(n2) {
|
|
326
|
+
return "H\xF6gst " + n2 + " filer";
|
|
327
|
+
},
|
|
328
|
+
colorScheme: "F\xE4rgl\xE4ge",
|
|
329
|
+
increase: "\xD6ka",
|
|
330
|
+
decrease: "Minska",
|
|
331
|
+
stepDone: "klart",
|
|
332
|
+
stepOf: function(i, total) {
|
|
333
|
+
return "Steg " + i + " av " + total;
|
|
334
|
+
},
|
|
335
|
+
schemeLight: "Ljust",
|
|
336
|
+
schemeDark: "M\xF6rkt",
|
|
337
|
+
schemeSystem: "System",
|
|
338
|
+
uploading: "Laddar upp\u2026",
|
|
339
|
+
images: "Bilder",
|
|
340
|
+
pagination: "Sidnumrering",
|
|
341
|
+
pageN: function(p) {
|
|
342
|
+
return "Sida " + p;
|
|
343
|
+
},
|
|
344
|
+
accepts: function(list, max) {
|
|
345
|
+
return [list, max && "h\xF6gst " + max + " per fil"].filter(Boolean).join(", ");
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
export {
|
|
350
|
+
STRINGS
|
|
351
|
+
};
|
package/dist/esm/text.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
function formatBytes(n) {
|
|
3
|
+
if (n == null) return "";
|
|
4
|
+
if (n < 1024) return n + " B";
|
|
5
|
+
let u = ["KB", "MB", "GB"], i = -1;
|
|
6
|
+
do {
|
|
7
|
+
n /= 1024;
|
|
8
|
+
i++;
|
|
9
|
+
} while (n >= 1024 && i < u.length - 1);
|
|
10
|
+
return (n >= 10 || Math.round(n) === n ? Math.round(n) : n.toFixed(1)) + " " + u[i];
|
|
11
|
+
}
|
|
12
|
+
function pad2(n) {
|
|
13
|
+
return (n < 10 ? "0" : "") + n;
|
|
14
|
+
}
|
|
15
|
+
function parseTime(text) {
|
|
16
|
+
let s = String(text || "").trim().toLowerCase().replace(/\s*(น\.?|นาฬิกา)$/, "").trim();
|
|
17
|
+
const pm = /\s*(pm|p\.m\.)$/.test(s), am = /\s*(am|a\.m\.)$/.test(s);
|
|
18
|
+
s = s.replace(/\s*(am|pm|a\.m\.|p\.m\.)$/, "");
|
|
19
|
+
const m = /^(\d{1,2})(?:[:.](\d{2}))?$/.exec(s) || /^(\d{1,2})(\d{2})$/.exec(s);
|
|
20
|
+
if (!m) return null;
|
|
21
|
+
let hh = +m[1], mm = m[2] ? +m[2] : 0;
|
|
22
|
+
if (pm && hh < 12) hh += 12;
|
|
23
|
+
if (am && hh === 12) hh = 0;
|
|
24
|
+
if (hh > 23 || mm > 59) return null;
|
|
25
|
+
return pad2(hh) + ":" + pad2(mm);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
formatBytes,
|
|
29
|
+
parseTime
|
|
30
|
+
};
|