@swiftwc/ui 0.0.0-dev.17 → 0.0.0-dev.19
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/generated/client/index.js +3 -11
- package/generated/components/content-unavailable-view.d.ts +24 -0
- package/generated/components/content-unavailable-view.js +78 -0
- package/generated/components/date-picker.js +2 -4
- package/generated/components/index.d.ts +2 -3
- package/generated/components/index.js +2 -3
- package/generated/components/navigation-split-view.d.ts +3 -0
- package/generated/components/navigation-split-view.js +3 -0
- package/generated/components/navigation-stack.d.ts +3 -0
- package/generated/components/navigation-stack.js +3 -0
- package/generated/components/scroll-view-proxy.d.ts +8 -0
- package/generated/components/scroll-view-proxy.js +14 -0
- package/generated/components/sidebar-toggle.js +33 -60
- package/generated/components/tab-bar.d.ts +3 -0
- package/generated/components/tab-bar.js +3 -0
- package/generated/components/text-field.js +1 -1
- package/generated/css/index.css +186 -127
- package/generated/i18n/index.d.ts +20 -10
- package/generated/i18n/index.js +82 -54
- package/generated/i18n/locales/el.d.ts +8 -0
- package/generated/i18n/locales/el.js +8 -0
- package/generated/i18n/locales/en.d.ts +8 -0
- package/generated/i18n/locales/en.js +8 -0
- package/generated/i18n/locales/index.d.ts +4 -0
- package/generated/i18n/locales/index.js +4 -0
- package/generated/internal/utils/list-active.js +11 -11
- package/package.json +8 -4
- package/scss/_components.scss +2 -0
- package/scss/components/_bordered-button.scss +8 -0
- package/scss/components/_bordered-prominent-button.scss +8 -0
- package/scss/components/_borderless-button.scss +8 -0
- package/scss/components/_components.scss +76 -0
- package/scss/components/_content-unavailable-view.scss +45 -0
- package/scss/components/_glass-button.scss +8 -0
- package/scss/components/_glass-prominent-button.scss +8 -0
- package/scss/components/_h-flex-stack.scss +23 -0
- package/scss/components/_h-stack.scss +2 -2
- package/scss/components/_index.scss +4 -0
- package/scss/components/_label-view.scss +29 -22
- package/scss/components/_plain-button.scss +7 -0
- package/scss/components/_scroll-view-proxy.scss +18 -18
- package/scss/components/_v-stack.scss +19 -2
- package/scss/final/_touch-glass.scss +17 -0
- package/scss/placeholders/_lists.scss +10 -38
- package/scss/utils/_stacks.scss +72 -67
- package/web-components.html-data/en.json +19 -3
package/generated/i18n/index.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { el, en } from './locales';
|
|
2
|
+
export function defineTranslations(factory) {
|
|
3
|
+
return factory;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @fires localechange - On html[lang] change!
|
|
7
|
+
*/
|
|
1
8
|
export class I18n {
|
|
2
9
|
static #readyCalled = false;
|
|
3
10
|
static #tag = 'en';
|
|
@@ -7,8 +14,30 @@ export class I18n {
|
|
|
7
14
|
static #decimalSeparator = '.';
|
|
8
15
|
static #dateSeparator = '/';
|
|
9
16
|
static #dateOrder = ['month', 'day', 'year'];
|
|
17
|
+
static #lang = 'en';
|
|
18
|
+
/** Registry: language code → factory. Pre-seeded with 'en'. */
|
|
19
|
+
static #factories = new Map([
|
|
20
|
+
['en', en],
|
|
21
|
+
['el', el],
|
|
22
|
+
]);
|
|
23
|
+
/** Cache: language code → resolved translation object. */
|
|
24
|
+
static #strings = new Map();
|
|
10
25
|
static on = new EventTarget();
|
|
11
26
|
// ----------------------------
|
|
27
|
+
// Public registration API
|
|
28
|
+
// ----------------------------
|
|
29
|
+
/**
|
|
30
|
+
* Register a translation factory for a language.
|
|
31
|
+
* Call this before the language is first needed.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* I18n.register('el', () => ({ SearchUnavailableContent: { … } }))
|
|
35
|
+
*/
|
|
36
|
+
static register(lang, factory) {
|
|
37
|
+
this.#factories.set(lang, factory);
|
|
38
|
+
this.#strings.delete(lang); // bust cache so next t() re-resolves
|
|
39
|
+
}
|
|
40
|
+
// ----------------------------
|
|
12
41
|
// Lazy init
|
|
13
42
|
// ----------------------------
|
|
14
43
|
static #ensureReady() {
|
|
@@ -16,72 +45,42 @@ export class I18n {
|
|
|
16
45
|
this.setOwnConfig();
|
|
17
46
|
}
|
|
18
47
|
// ----------------------------
|
|
19
|
-
// Proxy with typed target
|
|
20
|
-
// ----------------------------
|
|
21
|
-
static _props = new Proxy({}, {
|
|
22
|
-
get: (_, prop) => {
|
|
23
|
-
this.#ensureReady();
|
|
24
|
-
switch (prop) {
|
|
25
|
-
case 'tag':
|
|
26
|
-
return this.#tag;
|
|
27
|
-
case 'options':
|
|
28
|
-
return this.#options;
|
|
29
|
-
case 'locale':
|
|
30
|
-
return this.#locale;
|
|
31
|
-
case 'decimalSeparator':
|
|
32
|
-
return this.#decimalSeparator;
|
|
33
|
-
case 'dateSeparator':
|
|
34
|
-
return this.#dateSeparator;
|
|
35
|
-
case 'dateOrder':
|
|
36
|
-
return this.#dateOrder;
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
set: (_, prop, value) => {
|
|
40
|
-
switch (prop) {
|
|
41
|
-
case 'tag':
|
|
42
|
-
this.#observer?.disconnect();
|
|
43
|
-
this.#observer = undefined;
|
|
44
|
-
this.#tag = value;
|
|
45
|
-
this.#getOwnConfig();
|
|
46
|
-
break;
|
|
47
|
-
case 'options':
|
|
48
|
-
this.#options = value;
|
|
49
|
-
this.#getOwnConfig();
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
return true;
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
// ----------------------------
|
|
56
48
|
// Accessors
|
|
57
49
|
// ----------------------------
|
|
58
50
|
static get tag() {
|
|
59
|
-
|
|
51
|
+
this.#ensureReady();
|
|
52
|
+
return this.#tag;
|
|
60
53
|
}
|
|
61
54
|
static set tag(val) {
|
|
62
|
-
this
|
|
55
|
+
this.#observer?.disconnect();
|
|
56
|
+
this.#observer = undefined;
|
|
57
|
+
this.#tag = val;
|
|
58
|
+
this.#getOwnConfig();
|
|
63
59
|
}
|
|
64
60
|
static get options() {
|
|
65
|
-
|
|
61
|
+
this.#ensureReady();
|
|
62
|
+
return this.#options;
|
|
66
63
|
}
|
|
67
64
|
static set options(val) {
|
|
68
|
-
this
|
|
65
|
+
this.#options = val;
|
|
66
|
+
this.#getOwnConfig();
|
|
69
67
|
}
|
|
70
68
|
static get locale() {
|
|
71
|
-
|
|
69
|
+
this.#ensureReady();
|
|
70
|
+
return this.#locale;
|
|
72
71
|
}
|
|
73
72
|
static get decimalSeparator() {
|
|
74
|
-
|
|
73
|
+
this.#ensureReady();
|
|
74
|
+
return this.#decimalSeparator;
|
|
75
75
|
}
|
|
76
76
|
static get dateSeparator() {
|
|
77
|
-
|
|
77
|
+
this.#ensureReady();
|
|
78
|
+
return this.#dateSeparator;
|
|
78
79
|
}
|
|
79
80
|
static get dateOrder() {
|
|
80
|
-
|
|
81
|
+
this.#ensureReady();
|
|
82
|
+
return this.#dateOrder;
|
|
81
83
|
}
|
|
82
|
-
// ----------------------------
|
|
83
|
-
// Core logic
|
|
84
|
-
// ----------------------------
|
|
85
84
|
static setOwnConfig(options) {
|
|
86
85
|
if (!this.#readyCalled)
|
|
87
86
|
this.#readyCalled = true;
|
|
@@ -100,7 +99,7 @@ export class I18n {
|
|
|
100
99
|
return;
|
|
101
100
|
this.#tag = document.documentElement.lang;
|
|
102
101
|
this.#getOwnConfig();
|
|
103
|
-
this.on.dispatchEvent(new CustomEvent('
|
|
102
|
+
this.on.dispatchEvent(new CustomEvent('localechange', { detail: { lang: this.#tag } }));
|
|
104
103
|
}
|
|
105
104
|
static #getOwnConfig() {
|
|
106
105
|
try {
|
|
@@ -109,7 +108,6 @@ export class I18n {
|
|
|
109
108
|
catch {
|
|
110
109
|
this.#locale = new Intl.Locale('en');
|
|
111
110
|
}
|
|
112
|
-
console.debug(this.#locale);
|
|
113
111
|
try {
|
|
114
112
|
const nf = new Intl.NumberFormat(this.#locale);
|
|
115
113
|
const parts = nf.formatToParts(1.1);
|
|
@@ -118,11 +116,10 @@ export class I18n {
|
|
|
118
116
|
catch {
|
|
119
117
|
this.#decimalSeparator = '.';
|
|
120
118
|
}
|
|
121
|
-
console.debug(this.#decimalSeparator);
|
|
122
119
|
try {
|
|
123
120
|
const df = new Intl.DateTimeFormat(this.#locale);
|
|
124
121
|
const parts = df.formatToParts(new Date(2000, 11, 31));
|
|
125
|
-
this.#dateOrder = parts.filter(({ type }) => type !== 'literal')
|
|
122
|
+
this.#dateOrder = parts.filter(({ type }) => type !== 'literal').map(({ type }) => type) ?? ['month', 'day', 'year'];
|
|
126
123
|
this.#dateSeparator =
|
|
127
124
|
parts
|
|
128
125
|
.filter(({ type }) => type === 'literal')
|
|
@@ -133,7 +130,38 @@ export class I18n {
|
|
|
133
130
|
this.#dateOrder = ['month', 'day', 'year'];
|
|
134
131
|
this.#dateSeparator = '/';
|
|
135
132
|
}
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
try {
|
|
134
|
+
this.#lang = this.#resolveLanguage(this.#tag);
|
|
135
|
+
}
|
|
136
|
+
catch {
|
|
137
|
+
this.#lang = 'en';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Resolve the best available language for a given BCP 47 tag.
|
|
142
|
+
* Tries the full tag, then just the base language, then falls back to 'en'.
|
|
143
|
+
*/
|
|
144
|
+
static #resolveLanguage(tag) {
|
|
145
|
+
const lang = tag instanceof Intl.Locale ? tag.language : new Intl.Locale(tag || 'en').language;
|
|
146
|
+
if (this.#factories.has(String(tag)))
|
|
147
|
+
return String(tag);
|
|
148
|
+
if (this.#factories.has(lang))
|
|
149
|
+
return lang;
|
|
150
|
+
return 'en';
|
|
151
|
+
}
|
|
152
|
+
/** Look up a top-level translation key for the current language, falling back to 'en'. */
|
|
153
|
+
static t(key) {
|
|
154
|
+
this.#ensureReady();
|
|
155
|
+
if (!this.#strings.has(this.#lang)) {
|
|
156
|
+
const factory = this.#factories.get(this.#lang) ?? en;
|
|
157
|
+
this.#strings.set(this.#lang, factory());
|
|
158
|
+
}
|
|
159
|
+
const current = this.#strings.get(this.#lang);
|
|
160
|
+
if (key in current)
|
|
161
|
+
return current[key];
|
|
162
|
+
// Key missing from current language — fall back to en
|
|
163
|
+
if (!this.#strings.has('en'))
|
|
164
|
+
this.#strings.set('en', en());
|
|
165
|
+
return this.#strings.get('en')[key];
|
|
138
166
|
}
|
|
139
167
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: () => {
|
|
2
|
+
readonly SearchUnavailableContent: {
|
|
3
|
+
readonly NoLabel: "Κανένα αποτέλεσμα";
|
|
4
|
+
readonly Label: "Κανένα αποτέλεσμα για «{search}»";
|
|
5
|
+
readonly Description: "Ελέγξτε την ορθογραφία ή δοκιμάστε μια νέα αναζήτηση.";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { defineTranslations } from '../index';
|
|
2
|
+
export default defineTranslations(() => ({
|
|
3
|
+
SearchUnavailableContent: {
|
|
4
|
+
NoLabel: 'Κανένα αποτέλεσμα',
|
|
5
|
+
Label: 'Κανένα αποτέλεσμα για «{search}»',
|
|
6
|
+
Description: 'Ελέγξτε την ορθογραφία ή δοκιμάστε μια νέα αναζήτηση.',
|
|
7
|
+
},
|
|
8
|
+
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const touchList = new WeakMap();
|
|
2
|
-
function onDown(
|
|
3
|
-
const el =
|
|
2
|
+
function onDown({ target }) {
|
|
3
|
+
const el = target?.closest('button,summary');
|
|
4
4
|
if (!el)
|
|
5
5
|
return;
|
|
6
6
|
touchList.set(el, setTimeout(() => {
|
|
@@ -11,18 +11,18 @@ function onDown(evt) {
|
|
|
11
11
|
el.addEventListener('pointerleave', onLeave, { once: true, passive: true });
|
|
12
12
|
el.closest('scroll-view')?.addEventListener('scroll', onScroll, { once: true, passive: true });
|
|
13
13
|
}
|
|
14
|
-
function onOver(
|
|
15
|
-
const el =
|
|
14
|
+
function onOver({ target, buttons }) {
|
|
15
|
+
const el = target?.closest('button,summary');
|
|
16
16
|
if (!el)
|
|
17
17
|
return;
|
|
18
|
-
if (0 ===
|
|
18
|
+
if (0 === buttons)
|
|
19
19
|
return;
|
|
20
20
|
el.classList.add('active');
|
|
21
21
|
el.removeEventListener('pointerover', onOver);
|
|
22
22
|
el.addEventListener('pointerleave', onLeave, { once: true, passive: true });
|
|
23
23
|
}
|
|
24
|
-
function onLeave(
|
|
25
|
-
const el =
|
|
24
|
+
function onLeave({ target }) {
|
|
25
|
+
const el = target?.closest('button,summary');
|
|
26
26
|
if (!el)
|
|
27
27
|
return;
|
|
28
28
|
el.addEventListener('pointerover', onOver, { once: true, passive: true });
|
|
@@ -35,8 +35,8 @@ function onLeave(evt) {
|
|
|
35
35
|
touchList.delete(el);
|
|
36
36
|
// })
|
|
37
37
|
}
|
|
38
|
-
function onCancel(
|
|
39
|
-
const el =
|
|
38
|
+
function onCancel({ target }) {
|
|
39
|
+
const el = target?.closest('button,summary');
|
|
40
40
|
if (!el)
|
|
41
41
|
return;
|
|
42
42
|
// self.requestAnimationFrame(() => {
|
|
@@ -49,8 +49,8 @@ function onCancel(evt) {
|
|
|
49
49
|
touchList.delete(el);
|
|
50
50
|
// })
|
|
51
51
|
}
|
|
52
|
-
function onScroll(
|
|
53
|
-
for (const el of
|
|
52
|
+
function onScroll({ target }) {
|
|
53
|
+
for (const el of target?.querySelectorAll('button,summary') ?? []) {
|
|
54
54
|
el.classList.remove('active');
|
|
55
55
|
if (touchList.has(el))
|
|
56
56
|
clearTimeout(touchList.get(el));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swiftwc/ui",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.19",
|
|
4
4
|
"description": "Elegant SwiftUI-inspired web components for standalone web apps and web extensions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -57,12 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"prebuild": "rm -rf generated",
|
|
60
|
-
"build": "npm run build:ts && npm run build:scss && npm run build:manifest && npm run build:barrels",
|
|
60
|
+
"build": "npm run build:ts && npm run build:scss && npm run build:manifest && npm run build:barrels && npm run build:barrels:i18n",
|
|
61
61
|
"build:ts:watch": "npm run prebuild && tsc --watch",
|
|
62
62
|
"build:ts": "tsc",
|
|
63
63
|
"build:scss": "sass --style=expanded --no-source-map scss/index.scss generated/css/index.css",
|
|
64
64
|
"build:manifest": "tsx scripts/make-manifest.ts",
|
|
65
|
-
"build:barrels": "barrelsby
|
|
65
|
+
"build:barrels": "barrelsby --noHeader --delete --singleQuotes --noSemicolon --directory ./js/components --exclude \".\\.test\\.ts\"",
|
|
66
|
+
"build:barrels:i18n": "barrelsby --noHeader --delete --singleQuotes --noSemicolon --exportDefault --fullPathname --directory ./js/i18n/locales",
|
|
66
67
|
"format:check": "prettier . --check",
|
|
67
68
|
"format:write": "prettier . --write",
|
|
68
69
|
"test": "vitest --dom",
|
|
@@ -76,5 +77,8 @@
|
|
|
76
77
|
"tsx": "^4.21.0",
|
|
77
78
|
"vitest": "^4.0.18"
|
|
78
79
|
},
|
|
79
|
-
"customElements": "custom-elements/en.json"
|
|
80
|
+
"customElements": "custom-elements/en.json",
|
|
81
|
+
"imports": {
|
|
82
|
+
"#internal/*": "./js/internal/*"
|
|
83
|
+
}
|
|
80
84
|
}
|
package/scss/_components.scss
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@forward 'components/index';
|
|
2
|
+
|
|
3
|
+
@forward 'components/v-keyboard';
|
|
4
|
+
|
|
5
|
+
@forward 'components/disclosure-group';
|
|
6
|
+
|
|
7
|
+
@forward 'components/h-divider';
|
|
8
|
+
@forward 'components/v-divider';
|
|
9
|
+
|
|
10
|
+
@forward 'components/full-screen';
|
|
11
|
+
|
|
12
|
+
@forward 'components/detail-placeholder';
|
|
13
|
+
|
|
14
|
+
@forward 'components/sticky-container';
|
|
15
|
+
|
|
16
|
+
@forward 'components/sheet-view';
|
|
17
|
+
|
|
18
|
+
@forward 'components/confirmation-dialog';
|
|
19
|
+
|
|
20
|
+
@forward 'components/scroll-view';
|
|
21
|
+
@forward 'components/scroll-view-proxy';
|
|
22
|
+
|
|
23
|
+
@forward 'components/h-stack';
|
|
24
|
+
@forward 'components/v-stack';
|
|
25
|
+
@forward 'components/h-flex-stack';
|
|
26
|
+
@forward 'components/v-flex-stack';
|
|
27
|
+
|
|
28
|
+
@forward 'components/scroll-view-toolbars';
|
|
29
|
+
|
|
30
|
+
@forward 'components/tool-bar-item';
|
|
31
|
+
|
|
32
|
+
@forward 'components/tool-bar-item-group';
|
|
33
|
+
|
|
34
|
+
@forward 'components/plain-button';
|
|
35
|
+
@forward 'components/borderless-button';
|
|
36
|
+
@forward 'components/bordered-button';
|
|
37
|
+
@forward 'components/bordered-prominent-button';
|
|
38
|
+
@forward 'components/glass-button';
|
|
39
|
+
@forward 'components/glass-prominent-button';
|
|
40
|
+
|
|
41
|
+
@forward 'components/tool-bar';
|
|
42
|
+
|
|
43
|
+
@forward 'components/label-view';
|
|
44
|
+
|
|
45
|
+
@forward 'components/labeled-content';
|
|
46
|
+
|
|
47
|
+
// @forward 'components/button-view';
|
|
48
|
+
|
|
49
|
+
@forward 'components/body-view';
|
|
50
|
+
|
|
51
|
+
@forward 'components/navigation-large-title';
|
|
52
|
+
@forward 'components/navigation-title';
|
|
53
|
+
|
|
54
|
+
@forward 'components/sidebar-toggle';
|
|
55
|
+
|
|
56
|
+
@forward 'components/menu-view';
|
|
57
|
+
|
|
58
|
+
@forward 'components/sidebar-view';
|
|
59
|
+
|
|
60
|
+
@forward 'components/list-view';
|
|
61
|
+
@forward 'components/form-view';
|
|
62
|
+
@forward 'components/section-view';
|
|
63
|
+
@forward 'components/table-view';
|
|
64
|
+
@forward 'components/table-row';
|
|
65
|
+
@forward 'components/table-column';
|
|
66
|
+
|
|
67
|
+
@forward 'components/text-field';
|
|
68
|
+
@forward 'components/date-picker';
|
|
69
|
+
@forward 'components/picker-view';
|
|
70
|
+
|
|
71
|
+
@forward 'components/navigation-stack';
|
|
72
|
+
@forward 'components/navigation-split-view';
|
|
73
|
+
|
|
74
|
+
@forward 'components/tab-view';
|
|
75
|
+
@forward 'components/tab-bar';
|
|
76
|
+
@forward 'components/tab-item';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../placeholders';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$components-layer} {
|
|
5
|
+
content-unavailable-view {
|
|
6
|
+
:where(&) {
|
|
7
|
+
place-content: center;
|
|
8
|
+
place-items: center;
|
|
9
|
+
|
|
10
|
+
text-align: center;
|
|
11
|
+
|
|
12
|
+
row-gap: 1rem;
|
|
13
|
+
|
|
14
|
+
&::part(content-unavailable-actions-stack) {
|
|
15
|
+
row-gap: 0.2rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::part(content-unavailable-title-stack) {
|
|
19
|
+
--label-flow: vertical;
|
|
20
|
+
|
|
21
|
+
--label-font: title3; // NOTE: Safari fix
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> :not([slot]) {
|
|
26
|
+
--label-image-size: 5rem;
|
|
27
|
+
|
|
28
|
+
--label-gap: 1rem;
|
|
29
|
+
|
|
30
|
+
// --label-font: title3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:not(:has(> [slot='description'])) {
|
|
34
|
+
:where(&)::part(content-unavailable-description-stack) {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:not(:has(> [slot='actions'])) {
|
|
40
|
+
:where(&)::part(content-unavailable-actions-stack) {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
|
|
3
|
+
@layer #{vars.$components-layer} {
|
|
4
|
+
h-flex-stack {
|
|
5
|
+
:where(&) {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-flow: row nowrap;
|
|
8
|
+
|
|
9
|
+
place-items: safe center;
|
|
10
|
+
place-content: safe center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where(& > *) {
|
|
14
|
+
max-block-size: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
> [frame-height='infinity'] {
|
|
18
|
+
:where(&) {
|
|
19
|
+
flex-grow: 1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -10,8 +10,8 @@ $h-stack-templates: ((minmax(0, 1fr) auto), (auto minmax(0, 1fr) auto auto), (re
|
|
|
10
10
|
grid-auto-flow: column;
|
|
11
11
|
grid-template-rows: minmax(0, 1fr);
|
|
12
12
|
|
|
13
|
-
place-items: center;
|
|
14
|
-
place-content: center;
|
|
13
|
+
place-items: safe center;
|
|
14
|
+
place-content: safe center;
|
|
15
15
|
|
|
16
16
|
gap: 1rem;
|
|
17
17
|
}
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
[is='glass-prominent-button'],
|
|
28
28
|
list-view,
|
|
29
29
|
table-view,
|
|
30
|
+
content-unavailable-view,
|
|
30
31
|
tool-bar-item,
|
|
31
32
|
tool-bar-item-group,
|
|
32
33
|
sidebar-toggle,
|
|
@@ -45,6 +46,9 @@
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
|
49
|
+
:where(content-unavailable-view)::part(content-unavailable-title-stack),
|
|
50
|
+
:where(content-unavailable-view)::part(content-unavailable-description-stack),
|
|
51
|
+
:where(content-unavailable-view)::part(content-unavailable-actions-stack),
|
|
48
52
|
:where(table-view)::part(table-container),
|
|
49
53
|
:where(table-view)::part(table-column-stack),
|
|
50
54
|
:where(table-view)::part(table-header-stack),
|