@iyulab/modern-app 0.47.0 → 0.48.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/CHANGELOG.md +33 -0
- package/README.md +3 -4
- package/dist/components/ActionBar.styles.js +19 -19
- package/dist/components/EmptyState.styles.js +8 -8
- package/dist/components/GroupBox.styles.js +31 -31
- package/dist/components/InfoField.styles.js +16 -16
- package/dist/components/InfoSection.styles.js +3 -3
- package/dist/components/MasterDetailLayout.styles.js +28 -28
- package/dist/components/PageHeader.styles.js +23 -23
- package/dist/components/SidebarButton.styles.js +8 -8
- package/dist/components/SidebarGroup.styles.js +16 -16
- package/dist/components/SidebarLink.styles.js +21 -21
- package/dist/components/SidebarSection.styles.js +8 -8
- package/dist/components/TimelineItem.styles.js +7 -7
- package/dist/components/Wizard.styles.js +9 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/internals/default-fallback.d.ts +5 -3
- package/dist/internals/default-fallback.js +16 -5
- package/dist/internals/locale.d.ts +1 -13
- package/dist/internals/locale.js +12 -27
- package/dist/layouts/SidebarLayout.styles.js +128 -128
- package/package.json +2 -2
- package/skills/modern-app/SKILL.md +3 -4
|
@@ -7,10 +7,10 @@ var t = e`
|
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 100%;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
14
|
max-height: 100dvh;
|
|
15
15
|
font-family: var(--u-font-base);
|
|
16
16
|
overflow: hidden;
|
|
@@ -32,25 +32,25 @@ var t = e`
|
|
|
32
32
|
height: 24px;
|
|
33
33
|
width: auto;
|
|
34
34
|
object-fit: contain;
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
|
|
36
|
+
|
|
37
37
|
--_logo-pad: max(0px, calc((var(--u-target-size, 0px) - 24px) / 2));
|
|
38
38
|
box-sizing: content-box;
|
|
39
39
|
padding: var(--_logo-pad);
|
|
40
40
|
margin: calc(-1 * var(--_logo-pad));
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
.logo-link {
|
|
44
44
|
display: inline-flex;
|
|
45
45
|
align-items: center;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
54
|
.title {
|
|
55
55
|
flex: 1;
|
|
56
56
|
color: var(--u-txt-color, #212121);
|
|
@@ -63,17 +63,17 @@ var t = e`
|
|
|
63
63
|
text-overflow: ellipsis;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
77
|
.toggler {
|
|
78
78
|
color: inherit;
|
|
79
79
|
font-size: 20px;
|
|
@@ -83,7 +83,7 @@ var t = e`
|
|
|
83
83
|
color: var(--u-txt-color-hover, #1565C0);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
|
|
87
87
|
.skip-link {
|
|
88
88
|
position: absolute;
|
|
89
89
|
top: 8px;
|
|
@@ -112,7 +112,7 @@ var t = e`
|
|
|
112
112
|
outline: none;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
|
|
116
116
|
.sidebar {
|
|
117
117
|
position: relative;
|
|
118
118
|
z-index: var(--u-layer-shell, 1000);
|
|
@@ -120,22 +120,22 @@ var t = e`
|
|
|
120
120
|
flex-direction: column;
|
|
121
121
|
justify-content: space-between;
|
|
122
122
|
gap: 8px;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
128
|
min-height: 0;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
133
|
background: var(--app-sidebar-bg, var(--u-bg-color-raised, #FAFAFA));
|
|
134
134
|
color: var(--app-sidebar-fg, var(--u-txt-color, #212121));
|
|
135
135
|
border-right: 1px solid var(--u-border-color, #E0E0E0);
|
|
136
136
|
transition: all var(--u-duration-slow, 320ms) ease;
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
.sidebar[state="default"] {
|
|
140
140
|
width: var(--app-sidebar-width, 260px);
|
|
141
141
|
}
|
|
@@ -171,7 +171,7 @@ var t = e`
|
|
|
171
171
|
transform: translateY(0);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
|
|
175
175
|
.mobile-header {
|
|
176
176
|
position: relative;
|
|
177
177
|
z-index: calc(var(--u-layer-shell, 1000) + 1);
|
|
@@ -187,7 +187,7 @@ var t = e`
|
|
|
187
187
|
user-select: none;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
|
|
191
191
|
.sidebar-header {
|
|
192
192
|
display: flex;
|
|
193
193
|
flex-direction: row;
|
|
@@ -199,10 +199,10 @@ var t = e`
|
|
|
199
199
|
user-select: none;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
|
|
203
203
|
.sidebar-main {
|
|
204
204
|
flex: 1;
|
|
205
|
-
|
|
205
|
+
|
|
206
206
|
min-height: 0;
|
|
207
207
|
display: flex;
|
|
208
208
|
flex-direction: column;
|
|
@@ -212,7 +212,7 @@ var t = e`
|
|
|
212
212
|
overflow-y: auto;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
|
|
216
216
|
.sidebar-footer {
|
|
217
217
|
display: flex;
|
|
218
218
|
flex-direction: column;
|
|
@@ -224,31 +224,31 @@ var t = e`
|
|
|
224
224
|
display: none;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
236
|
.main-region {
|
|
237
237
|
position: relative;
|
|
238
238
|
flex: 1;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
247
|
min-height: 0;
|
|
248
248
|
min-width: 0;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
252
|
display: flex;
|
|
253
253
|
flex-direction: column;
|
|
254
254
|
}
|
|
@@ -265,37 +265,37 @@ var t = e`
|
|
|
265
265
|
outline: none;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
284
|
.main-content {
|
|
285
285
|
display: contents;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
299
|
.notices {
|
|
300
300
|
display: flex;
|
|
301
301
|
flex-direction: column;
|
|
@@ -310,36 +310,36 @@ var t = e`
|
|
|
310
310
|
box-sizing: border-box;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
339
|
:host(:state(overlay)) .main-content {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
343
|
display: block;
|
|
344
344
|
height: 100%;
|
|
345
345
|
isolation: isolate;
|
|
@@ -383,7 +383,7 @@ var t = e`
|
|
|
383
383
|
z-index: 2;
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
|
|
386
|
+
|
|
387
387
|
.backdrop {
|
|
388
388
|
position: absolute;
|
|
389
389
|
z-index: 100;
|
|
@@ -394,14 +394,14 @@ var t = e`
|
|
|
394
394
|
background: var(--u-overlay-bg-color, rgba(0, 0, 0, 0.5));
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
405
|
@media print {
|
|
406
406
|
:host {
|
|
407
407
|
display: block;
|
|
@@ -415,8 +415,8 @@ var t = e`
|
|
|
415
415
|
.main u-progress-bar {
|
|
416
416
|
display: none;
|
|
417
417
|
}
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
|
|
419
|
+
|
|
420
420
|
.main-region {
|
|
421
421
|
display: block;
|
|
422
422
|
height: auto;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyulab/modern-app",
|
|
3
3
|
"description": "web-framework by iyulab based on lit-element",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.48.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iyulab",
|
|
7
7
|
"web-framework",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"test:react-types": "tsc -p tsconfig.react-smoke.json"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@iyulab/router": "^0.
|
|
63
|
+
"@iyulab/router": "^0.21.0",
|
|
64
64
|
"i18next": "^26.3.6",
|
|
65
65
|
"lit": "^3.3.3"
|
|
66
66
|
},
|
|
@@ -156,7 +156,7 @@ language once, with `Locale.set()` — the primitives and `@iyulab/flex-table` f
|
|
|
156
156
|
Register other languages, or your own wording, in the same namespace:
|
|
157
157
|
|
|
158
158
|
```typescript
|
|
159
|
-
import { Locale } from '@iyulab/components';
|
|
159
|
+
import { Locale } from '@iyulab/components/dist/utilities/Locale.js'; // the barrel would register every component
|
|
160
160
|
import { modernAppLocale } from '@iyulab/modern-app';
|
|
161
161
|
|
|
162
162
|
Locale.set('ko'); // built-in Korean — nothing to register
|
|
@@ -170,9 +170,8 @@ modernAppLocale.register('ja', {
|
|
|
170
170
|
|
|
171
171
|
A partial table is enough — untranslated keys fall back to English, and a registration for a
|
|
172
172
|
built-in language overrides only the keys it gives. An element's own `locale`
|
|
173
|
-
attribute overrides the active language for that element.
|
|
174
|
-
|
|
175
|
-
called with `undefined`.
|
|
173
|
+
attribute overrides the active language for that element. The language is chosen in one place —
|
|
174
|
+
`Locale.set()` (the old `registerLocale`/`setDefaultLocale` were removed in 0.48.0).
|
|
176
175
|
|
|
177
176
|
---
|
|
178
177
|
|