@swiftwc/ui 0.0.0-dev.99 → 1.0.0-canary.1
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 +8 -9
- package/generated/components/alert-dialog.js +9 -17
- package/generated/components/bordered-button.js +4 -7
- package/generated/components/bordered-prominent-button.js +4 -7
- package/generated/components/borderless-button.js +4 -7
- package/generated/components/color-scheme.js +4 -7
- package/generated/components/confirmation-dialog.js +9 -17
- package/generated/components/content-unavailable.d.ts +1 -1
- package/generated/components/content-unavailable.js +5 -8
- package/generated/components/{body-view.d.ts → content-view.d.ts} +2 -2
- package/generated/components/content-view.js +15 -0
- package/generated/components/date-picker.js +13 -25
- package/generated/components/detail-placeholder.d.ts +11 -0
- package/generated/components/detail-placeholder.js +15 -0
- package/generated/components/disclosure-group.js +5 -9
- package/generated/components/fine-tooltip.js +4 -7
- package/generated/components/form-view.js +3 -5
- package/generated/components/glass-button.js +4 -7
- package/generated/components/glass-prominent-button.js +4 -7
- package/generated/components/h-divider.d.ts +11 -0
- package/generated/components/h-divider.js +15 -0
- package/generated/components/h-flex-stack.d.ts +16 -0
- package/generated/components/h-flex-stack.js +18 -0
- package/generated/components/h-stack.js +3 -5
- package/generated/components/image-view.js +4 -7
- package/generated/components/index.d.ts +7 -1
- package/generated/components/index.js +7 -1
- package/generated/components/label-view.d.ts +2 -2
- package/generated/components/label-view.js +6 -9
- package/generated/components/labeled-content.d.ts +7 -1
- package/generated/components/labeled-content.js +32 -32
- package/generated/components/list-view.d.ts +5 -1
- package/generated/components/list-view.js +8 -6
- package/generated/components/menu-view.d.ts +1 -1
- package/generated/components/menu-view.js +11 -20
- package/generated/components/navigation-large-title.d.ts +0 -1
- package/generated/components/navigation-large-title.js +5 -10
- package/generated/components/navigation-split-view.js +4 -7
- package/generated/components/navigation-stack.js +4 -7
- package/generated/components/navigation-title.js +4 -7
- package/generated/components/picker-view.d.ts +4 -21
- package/generated/components/picker-view.js +374 -326
- package/generated/components/plain-button.js +3 -5
- package/generated/components/progress-view.d.ts +1 -1
- package/generated/components/progress-view.js +7 -12
- package/generated/components/screen-view.js +2 -3
- package/generated/components/scroll-view-proxy.js +3 -5
- package/generated/components/scroll-view.d.ts +1 -1
- package/generated/components/scroll-view.js +10 -17
- package/generated/components/search-view.js +4 -7
- package/generated/components/section-view.d.ts +1 -1
- package/generated/components/section-view.js +5 -8
- package/generated/components/sheet-view.js +6 -11
- package/generated/components/sidebar-toggle.js +5 -9
- package/generated/components/sidebar-view.js +2 -3
- package/generated/components/sticky-container.js +3 -5
- package/generated/components/tab-bar.js +4 -7
- package/generated/components/tab-item.js +8 -15
- package/generated/components/tab-view.js +19 -23
- package/generated/components/table-view.d.ts +1 -1
- package/generated/components/table-view.js +7 -12
- package/generated/components/text-field.js +10 -19
- package/generated/components/text-view.d.ts +11 -0
- package/generated/components/text-view.js +16 -0
- package/generated/components/toggle-view.d.ts +2 -0
- package/generated/components/toggle-view.js +33 -37
- package/generated/components/tool-bar-item-group.js +3 -5
- package/generated/components/tool-bar-item.js +4 -7
- package/generated/components/tool-bar.js +4 -7
- package/generated/components/v-divider.d.ts +11 -0
- package/generated/components/v-divider.js +15 -0
- package/generated/components/v-flex-stack.d.ts +16 -0
- package/generated/components/v-flex-stack.js +18 -0
- package/generated/components/v-keyboard.js +8 -12
- package/generated/components/v-stack.js +3 -5
- package/generated/css/index.css +762 -418
- package/generated/internal/class/css-style-observer.js +2 -3
- package/generated/internal/class/form-associated-base.js +6 -8
- package/generated/internal/class/navigation-path.js +2 -2
- package/generated/internal/class/navigation-view.js +3 -5
- package/generated/internal/decorators/adaptive-slot.js +4 -7
- package/generated/internal/decorators/microtask-on-connected.d.ts +2 -2
- package/generated/internal/decorators/microtask-on-connected.js +2 -2
- package/generated/internal/dev-flags.d.ts +4 -0
- package/generated/internal/dev-flags.js +1 -0
- package/generated/internal/privateNamespace.d.ts +2 -2
- package/generated/internal/privateNamespace.js +15 -24
- package/generated/internal/utils/$.d.ts +9 -0
- package/generated/internal/utils/$.js +11 -0
- package/generated/internal/utils/debug.d.ts +1 -0
- package/generated/internal/utils/debug.js +4 -0
- package/generated/internal/utils/index.d.ts +36 -2
- package/generated/internal/utils/index.js +36 -5
- package/generated/internal/utils/is-inside.js +1 -1
- package/generated/snapshot/index.js +3 -5
- package/{web-components.html-data → html-data}/en.json +155 -54
- package/package.json +24 -20
- package/scss/_components.scss +1 -1
- package/scss/_maps.scss +3 -1
- package/scss/_utils.scss +3 -1
- package/scss/_vars.scss +1 -0
- package/scss/base/_layout.scss +8 -8
- package/scss/base/_reboot.scss +4 -29
- package/scss/base/_root.scss +27 -12
- package/scss/colors/_index.scss +66 -1
- package/scss/components/_alert-dialog.scss +3 -3
- package/scss/components/_bordered-button.scss +2 -2
- package/scss/components/_bordered-prominent-button.scss +3 -3
- package/scss/components/_borderless-button.scss +2 -2
- package/scss/components/_confirmation-dialog.scss +1 -1
- package/scss/components/_content-unavailable.scss +1 -1
- package/scss/components/{_body-view.scss → _content-view.scss} +2 -2
- package/scss/components/_date-picker.scss +1 -1
- package/scss/components/_detail-placeholder.scss +5 -5
- package/scss/components/_disclosure-group.scss +2 -2
- package/scss/components/_fine-tooltip.scss +1 -1
- package/scss/components/_form-view.scss +3 -3
- package/scss/components/_full-screen.scss +1 -1
- package/scss/components/_glass-button.scss +2 -2
- package/scss/components/_glass-prominent-button.scss +3 -3
- package/scss/components/_group-box.scss +1 -1
- package/scss/components/_h-divider.scss +1 -1
- package/scss/components/_h-flex-stack.scss +3 -1
- package/scss/components/_h-stack.scss +1 -1
- package/scss/components/_image-view.scss +1 -1
- package/scss/components/_index.scss +34 -24
- package/scss/components/_label-view.scss +1 -1
- package/scss/components/_labeled-content.scss +1 -1
- package/scss/components/_list-view.scss +3 -3
- package/scss/components/_menu-view.scss +3 -3
- package/scss/components/_navigation-large-title.scss +15 -9
- package/scss/components/_navigation-split-view.scss +18 -18
- package/scss/components/_navigation-stack.scss +1 -1
- package/scss/components/_navigation-title.scss +1 -1
- package/scss/components/_picker-view.scss +159 -119
- package/scss/components/_plain-button.scss +2 -2
- package/scss/components/_progress-view.scss +1 -1
- package/scss/components/_scroll-view-proxy.scss +1 -1
- package/scss/components/_scroll-view-toolbars.scss +1 -1
- package/scss/components/_scroll-view.scss +2 -2
- package/scss/components/_search-view.scss +1 -1
- package/scss/components/_section-view.scss +1 -1
- package/scss/components/_sheet-view.scss +2 -2
- package/scss/components/_sidebar-toggle.scss +1 -1
- package/scss/components/_sidebar-view.scss +2 -2
- package/scss/components/_sticky-container.scss +1 -1
- package/scss/components/_tab-bar.scss +1 -1
- package/scss/components/_tab-item.scss +1 -1
- package/scss/components/_tab-view.scss +23 -15
- package/scss/components/_table-column.scss +1 -1
- package/scss/components/_table-row.scss +1 -1
- package/scss/components/_table-view.scss +1 -1
- package/scss/components/_text-field.scss +1 -1
- package/scss/components/_text-view.scss +1 -1
- package/scss/components/_toggle-view.scss +41 -21
- package/scss/components/_tool-bar-item-group.scss +1 -1
- package/scss/components/_tool-bar-item.scss +2 -2
- package/scss/components/_tool-bar.scss +2 -2
- package/scss/components/_v-divider.scss +1 -1
- package/scss/components/_v-flex-stack.scss +3 -1
- package/scss/components/_v-keyboard.scss +1 -1
- package/scss/components/_v-stack.scss +1 -1
- package/scss/final/_touch-glass.scss +2 -2
- package/scss/mixins/_index.scss +2 -2
- package/scss/placeholders/_buttons.scss +5 -5
- package/scss/placeholders/_lists.scss +3 -3
- package/scss/transitions/_alert-dialog.scss +1 -1
- package/scss/transitions/_bwd.navbar.scss +1 -1
- package/scss/transitions/_bwd.scss +3 -3
- package/scss/transitions/_confirmation-dialog.scss +1 -1
- package/scss/transitions/_disclosure-group.scss +1 -1
- package/scss/transitions/_fine-tooltip.scss +1 -1
- package/scss/transitions/_fwd.navbar.scss +1 -1
- package/scss/transitions/_fwd.scss +1 -1
- package/scss/transitions/_glass-button.scss +1 -1
- package/scss/transitions/_glass-prominent-button.scss +1 -1
- package/scss/transitions/_index.scss +1 -1
- package/scss/transitions/_menu-view.scss +1 -1
- package/scss/transitions/_navigation-split-view.scss +1 -1
- package/scss/transitions/_progress-view.scss +1 -1
- package/scss/transitions/_sheet-view.scss +1 -1
- package/scss/transitions/_sidebar-view.scss +1 -1
- package/scss/transitions/_tab-bar.scss +1 -1
- package/scss/utils/_background.scss +52 -0
- package/scss/utils/_frame.scss +2 -2
- package/scss/utils/_index.scss +33 -8
- package/scss/utils/_spacing.scss +1 -1
- package/scss/utils/_stacks.scss +5 -3
- package/generated/components/body-view.js +0 -17
- package/generated/internal/utils/cash/index.d.ts +0 -24
- package/generated/internal/utils/cash/index.js +0 -27
- package/generated/internal/utils/dev-flags.d.ts +0 -3
- package/generated/internal/utils/dev-flags.js +0 -5
- /package/{web-components.css-data → css-data}/en.json +0 -0
- /package/generated/internal/utils/{cash/ancestors.d.ts → ancestors.d.ts} +0 -0
- /package/generated/internal/utils/{cash/ancestors.js → ancestors.js} +0 -0
- /package/generated/internal/utils/{cash/next-all.d.ts → next-all.d.ts} +0 -0
- /package/generated/internal/utils/{cash/next-all.js → next-all.js} +0 -0
- /package/generated/internal/utils/{cash/next.d.ts → next.d.ts} +0 -0
- /package/generated/internal/utils/{cash/next.js → next.js} +0 -0
- /package/generated/internal/utils/{cash/prev-all.d.ts → prev-all.d.ts} +0 -0
- /package/generated/internal/utils/{cash/prev-all.js → prev-all.js} +0 -0
- /package/generated/internal/utils/{cash/prev.d.ts → prev.d.ts} +0 -0
- /package/generated/internal/utils/{cash/prev.js → prev.js} +0 -0
- /package/generated/internal/utils/{cash/prop.d.ts → prop.d.ts} +0 -0
- /package/generated/internal/utils/{cash/prop.js → prop.js} +0 -0
- /package/generated/internal/utils/{cash/siblings.d.ts → siblings.d.ts} +0 -0
- /package/generated/internal/utils/{cash/siblings.js → siblings.js} +0 -0
- /package/scss/utils/{_scroll-view.scss → _scroll-view.scss.txt} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
import { CleanupRegistry } from '../internal/class/cleanup-registry';
|
|
3
|
-
import { $,
|
|
3
|
+
import { $, debug, onoff, touchGlass } from '../internal/utils';
|
|
4
4
|
import { queryMorph } from '../morphdom';
|
|
5
5
|
import { html } from '../tpl';
|
|
6
6
|
/**
|
|
7
7
|
* @summary A control that opens a menu of actions.
|
|
8
8
|
*
|
|
9
|
-
* @slot — The default slot
|
|
9
|
+
* @slot — The default slot
|
|
10
10
|
* @slot label
|
|
11
11
|
*/
|
|
12
12
|
export class MenuView extends HTMLElement {
|
|
@@ -34,16 +34,14 @@ export class MenuView extends HTMLElement {
|
|
|
34
34
|
this.#shadowRoot.appendChild(document.importNode(this.constructor.template, true));
|
|
35
35
|
}
|
|
36
36
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
37
|
-
|
|
38
|
-
console.debug(`${_a.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
|
|
37
|
+
debug(`${_a.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
|
|
39
38
|
switch (name) {
|
|
40
39
|
case 'open':
|
|
41
40
|
if (!this.#dialog)
|
|
42
41
|
break;
|
|
43
42
|
this.#dialog.inert = null === newValue;
|
|
44
43
|
if (null === newValue && this.#dialog.open) {
|
|
45
|
-
|
|
46
|
-
console.debug(`${_a.name} ⚡️ will-close`);
|
|
44
|
+
debug(`${_a.name} ⚡️ will-close`);
|
|
47
45
|
this.setAttribute('closing', '');
|
|
48
46
|
Promise.allSettled(this.#dialog.getAnimations().map(({ finished }) => finished)).then(() => {
|
|
49
47
|
if (!this.hasAttribute('closing'))
|
|
@@ -53,8 +51,7 @@ export class MenuView extends HTMLElement {
|
|
|
53
51
|
});
|
|
54
52
|
}
|
|
55
53
|
if ('' === newValue && !this.#dialog.open) {
|
|
56
|
-
|
|
57
|
-
console.debug(`${_a.name} ⚡️ will-open`);
|
|
54
|
+
debug(`${_a.name} ⚡️ will-open`);
|
|
58
55
|
this.removeAttribute('closing');
|
|
59
56
|
const form = this.#shadowRoot.querySelector('form');
|
|
60
57
|
form.scrollTop = 0;
|
|
@@ -67,16 +64,14 @@ export class MenuView extends HTMLElement {
|
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
disconnectedCallback() {
|
|
70
|
-
|
|
71
|
-
console.debug(`${_a.name} ⚡️ disconnect`);
|
|
67
|
+
debug(`${_a.name} ⚡️ disconnect`);
|
|
72
68
|
const summaryPart = this.#shadowRoot.querySelector('[part*=menu-summary]'), dialogPart = this.#shadowRoot.querySelector('[part*=menu-dialog]');
|
|
73
69
|
summaryPart?.style.removeProperty('anchor-name'); //$.prop('anchor-name', null, summaryPart)
|
|
74
70
|
dialogPart?.style.removeProperty('position-anchor'); //$.prop('position-anchor', null, dialogPart)
|
|
75
71
|
CleanupRegistry.unregister(this);
|
|
76
72
|
}
|
|
77
73
|
connectedCallback() {
|
|
78
|
-
|
|
79
|
-
console.debug(`${_a.name} ⚡️ connect`);
|
|
74
|
+
debug(`${_a.name} ⚡️ connect`);
|
|
80
75
|
this.#dialog = this.#shadowRoot.querySelector('dialog') ?? undefined;
|
|
81
76
|
const trigger = this.#shadowRoot.querySelector('button') ?? undefined;
|
|
82
77
|
CleanupRegistry.register(this, onoff('click', this.#handleTriggerClick, trigger).on());
|
|
@@ -100,8 +95,7 @@ export class MenuView extends HTMLElement {
|
|
|
100
95
|
dialogPart?.style.setProperty('position-anchor', newAnchorName); // $.prop('position-anchor', newAnchorName, dialogPart) //
|
|
101
96
|
}
|
|
102
97
|
#handleDialogClick = ({ type, target }) => {
|
|
103
|
-
|
|
104
|
-
console.debug(`${_a.name} ⚡️ ${type}`);
|
|
98
|
+
debug(`${_a.name} ⚡️ ${type}`);
|
|
105
99
|
if (!(target instanceof HTMLElement))
|
|
106
100
|
return;
|
|
107
101
|
if (target.matches('dialog'))
|
|
@@ -118,22 +112,19 @@ export class MenuView extends HTMLElement {
|
|
|
118
112
|
// event.stopPropagation() //NOTE: add this only if not nested, disposes all nicely if ommited
|
|
119
113
|
};
|
|
120
114
|
#handleTriggerClick = (evt) => {
|
|
121
|
-
|
|
122
|
-
console.debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
115
|
+
debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
123
116
|
this.toggleAttribute('open', true);
|
|
124
117
|
};
|
|
125
118
|
// intercept to modify open attr
|
|
126
119
|
#handleDialogCancel = (evt) => {
|
|
127
|
-
|
|
128
|
-
console.debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
120
|
+
debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
129
121
|
if (!evt.cancelable)
|
|
130
122
|
return;
|
|
131
123
|
evt.preventDefault();
|
|
132
124
|
this.toggleAttribute('open', false);
|
|
133
125
|
};
|
|
134
126
|
#handleDialogClose = (evt) => {
|
|
135
|
-
|
|
136
|
-
console.debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
127
|
+
debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
137
128
|
this.toggleAttribute('open', this.#shadowRoot.querySelector('dialog')?.open ?? false);
|
|
138
129
|
};
|
|
139
130
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
import { CleanupRegistry } from '../internal/class/cleanup-registry';
|
|
3
3
|
import { CSSStyleObserver } from '../internal/class/css-style-observer';
|
|
4
|
-
import { add,
|
|
4
|
+
import { add, debug, frame, onoff, slowHideShow, timeout } from '../internal/utils';
|
|
5
5
|
import { Snapshot } from '../snapshot';
|
|
6
6
|
const observing = new WeakSet();
|
|
7
7
|
function observeResizeEnd(el, callback, stableFrames = 4) {
|
|
@@ -69,7 +69,6 @@ function isIntersectingWithContainer(el, container, rootMargin = '0px 0px 0px 0p
|
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
|
-
* @attr {grouped} background-style
|
|
73
72
|
* @attr {boolean} padding
|
|
74
73
|
* @attr {boolean} navigation-bar-auto-hide
|
|
75
74
|
*
|
|
@@ -83,15 +82,13 @@ export class NavigationLargeTitle extends HTMLElement {
|
|
|
83
82
|
super();
|
|
84
83
|
}
|
|
85
84
|
disconnectedCallback() {
|
|
86
|
-
|
|
87
|
-
console.debug(`${_a.name} ⚡️ disconnect`);
|
|
85
|
+
debug(`${_a.name} ⚡️ disconnect`);
|
|
88
86
|
this.#clearScrollState();
|
|
89
87
|
this.#styleObserver?.disconnect();
|
|
90
88
|
CleanupRegistry.unregister(this);
|
|
91
89
|
}
|
|
92
90
|
connectedCallback() {
|
|
93
|
-
|
|
94
|
-
console.debug(`${_a.name} ⚡️ connect`);
|
|
91
|
+
debug(`${_a.name} ⚡️ connect`);
|
|
95
92
|
const root = this.closest('scroll-view') ?? undefined;
|
|
96
93
|
if (!root)
|
|
97
94
|
return;
|
|
@@ -114,8 +111,7 @@ export class NavigationLargeTitle extends HTMLElement {
|
|
|
114
111
|
});
|
|
115
112
|
}
|
|
116
113
|
#handleStyleChange = () => {
|
|
117
|
-
|
|
118
|
-
console.debug(`${_a.name} ⚡️ style`);
|
|
114
|
+
debug(`${_a.name} ⚡️ style`);
|
|
119
115
|
const root = this.closest('scroll-view') ?? undefined;
|
|
120
116
|
if (!root)
|
|
121
117
|
return;
|
|
@@ -160,8 +156,7 @@ export class NavigationLargeTitle extends HTMLElement {
|
|
|
160
156
|
// this.#applySlowness(root, isIntersecting)
|
|
161
157
|
// }
|
|
162
158
|
#handleIntersect = (entries, { root }) => {
|
|
163
|
-
|
|
164
|
-
console.debug(`${_a.name} ⚡️ intersect (${entries?.at(0)?.isIntersecting})`);
|
|
159
|
+
debug(`${_a.name} ⚡️ intersect (${entries?.at(0)?.isIntersecting})`);
|
|
165
160
|
if (!(root instanceof HTMLElement))
|
|
166
161
|
return;
|
|
167
162
|
for (const { isIntersecting } of entries)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavigationView } from '../internal/class/navigation-view';
|
|
2
|
-
import {
|
|
2
|
+
import { debug } from '../internal/utils';
|
|
3
3
|
/**
|
|
4
4
|
* @summary A container view with two or three side-by-side screens, where what the user chooses in the left screen changes what appears in the next screen.
|
|
5
5
|
*/
|
|
@@ -8,18 +8,15 @@ export class NavigationSplitView extends NavigationView {
|
|
|
8
8
|
super();
|
|
9
9
|
}
|
|
10
10
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
11
|
-
|
|
12
|
-
console.debug(`${NavigationSplitView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
|
|
11
|
+
debug(`${NavigationSplitView.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
|
|
13
12
|
super.attributeChangedCallback(name, oldValue, newValue);
|
|
14
13
|
}
|
|
15
14
|
disconnectedCallback() {
|
|
16
|
-
|
|
17
|
-
console.debug(`${NavigationSplitView.name} ⚡️ disconnect`);
|
|
15
|
+
debug(`${NavigationSplitView.name} ⚡️ disconnect`);
|
|
18
16
|
super.disconnectedCallback();
|
|
19
17
|
}
|
|
20
18
|
connectedCallback() {
|
|
21
|
-
|
|
22
|
-
console.debug(`${NavigationSplitView.name} ⚡️ connect`);
|
|
19
|
+
debug(`${NavigationSplitView.name} ⚡️ connect`);
|
|
23
20
|
super.connectedCallback();
|
|
24
21
|
}
|
|
25
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavigationView } from '../internal/class/navigation-view';
|
|
2
|
-
import {
|
|
2
|
+
import { debug } from '../internal/utils';
|
|
3
3
|
/**
|
|
4
4
|
* @summary A container view that shows a main screen and lets the user open other screens on top of it.
|
|
5
5
|
*/
|
|
@@ -8,8 +8,7 @@ export class NavigationStack extends NavigationView {
|
|
|
8
8
|
super();
|
|
9
9
|
}
|
|
10
10
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
11
|
-
|
|
12
|
-
console.debug(`${NavigationStack.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
|
|
11
|
+
debug(`${NavigationStack.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
|
|
13
12
|
super.attributeChangedCallback(name, oldValue, newValue);
|
|
14
13
|
switch (name) {
|
|
15
14
|
case 'hidden':
|
|
@@ -17,13 +16,11 @@ export class NavigationStack extends NavigationView {
|
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
disconnectedCallback() {
|
|
20
|
-
|
|
21
|
-
console.debug(`${NavigationStack.name} ⚡️ disconnect`);
|
|
19
|
+
debug(`${NavigationStack.name} ⚡️ disconnect`);
|
|
22
20
|
super.disconnectedCallback();
|
|
23
21
|
}
|
|
24
22
|
connectedCallback() {
|
|
25
|
-
|
|
26
|
-
console.debug(`${NavigationStack.name} ⚡️ connect`);
|
|
23
|
+
debug(`${NavigationStack.name} ⚡️ connect`);
|
|
27
24
|
super.connectedCallback();
|
|
28
25
|
}
|
|
29
26
|
}
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
var NavigationTitle_1;
|
|
8
8
|
import { microtaskOnConnected } from '../internal/decorators';
|
|
9
|
-
import {
|
|
9
|
+
import { debug } from '../internal/utils';
|
|
10
10
|
import { queryMorph } from '../morphdom';
|
|
11
11
|
import { html } from '../tpl';
|
|
12
12
|
/**
|
|
@@ -22,17 +22,14 @@ let NavigationTitle = NavigationTitle_1 = class NavigationTitle extends HTMLElem
|
|
|
22
22
|
super();
|
|
23
23
|
}
|
|
24
24
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
25
|
-
|
|
26
|
-
console.debug(`${NavigationTitle_1.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
|
|
25
|
+
debug(`${NavigationTitle_1.name} ⚡️ attr-change [${name}] ("${oldValue}" → "${newValue}")`);
|
|
27
26
|
this.#render(this.getAttribute('value'), this.getAttribute('subtitle'), this.getAttribute('system-image'), this.getAttribute('system-image-weight'));
|
|
28
27
|
}
|
|
29
28
|
disconnectedCallback() {
|
|
30
|
-
|
|
31
|
-
console.debug(`${NavigationTitle_1.name} ⚡️ disconnect`);
|
|
29
|
+
debug(`${NavigationTitle_1.name} ⚡️ disconnect`);
|
|
32
30
|
}
|
|
33
31
|
connectedCallback() {
|
|
34
|
-
|
|
35
|
-
console.debug(`${NavigationTitle_1.name} ⚡️ connect`);
|
|
32
|
+
debug(`${NavigationTitle_1.name} ⚡️ connect`);
|
|
36
33
|
}
|
|
37
34
|
#render = (title, subtitle, systemImage, systemImageWeight) => {
|
|
38
35
|
queryMorph(':not([slot])', html `
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormAssociatedBase } from '../internal/class/form-associated-base';
|
|
2
|
-
declare const pickerStyles: readonly ["menu", "inline", "navigation-link", "sheet", "automatic"];
|
|
2
|
+
declare const pickerStyles: readonly ["menu", "inline", "navigation-link", "sheet", "radio-group", "automatic"];
|
|
3
3
|
export type PickerStyle = (typeof pickerStyles)[number];
|
|
4
4
|
export type DictEntry = {
|
|
5
5
|
value: string;
|
|
@@ -12,34 +12,17 @@ export type Dictionary = DictEntry[];
|
|
|
12
12
|
/**
|
|
13
13
|
* @summary A control that selects one value from a set of options.
|
|
14
14
|
*
|
|
15
|
-
* @attr {menu|inline|navigation-link|sheet|automatic} picker-style
|
|
16
|
-
*
|
|
17
|
-
* @attr help — Adds a help tooltip to the trigger of the picker, if style supports one
|
|
18
|
-
*
|
|
19
|
-
* @attr {DictEntry[]} dictionary — Renders all options using this array
|
|
20
|
-
*
|
|
21
15
|
* @attr {vertical|horizontal|auto} label-value-placement
|
|
22
16
|
*
|
|
23
|
-
* @
|
|
17
|
+
* @attr {boolean} horizontal-radio-group-layout
|
|
18
|
+
*
|
|
19
|
+
* @slot — The default slot
|
|
24
20
|
* @slot label
|
|
25
21
|
* @slot list
|
|
26
22
|
* @slot {HTMLOptionElement[]} validity-options
|
|
27
23
|
*/
|
|
28
24
|
export declare class PickerView extends FormAssociatedBase {
|
|
29
25
|
#private;
|
|
30
|
-
static get ATTR(): {
|
|
31
|
-
PLACEHOLDER: string;
|
|
32
|
-
PLACEHOLDER_ICON: string;
|
|
33
|
-
LABEL: string;
|
|
34
|
-
PICKER_STYLE: string;
|
|
35
|
-
SELECTION: string;
|
|
36
|
-
SEARCHABLE: string;
|
|
37
|
-
CURRENT_VALUE_LABEL: string;
|
|
38
|
-
CURRENT_VALUE_ICON: string;
|
|
39
|
-
TRIGGER_HELP: string;
|
|
40
|
-
DICTIONARY: string;
|
|
41
|
-
REQUIRED: string;
|
|
42
|
-
};
|
|
43
26
|
static get observedAttributes(): string[];
|
|
44
27
|
get selection(): string;
|
|
45
28
|
set selection(v: string);
|