@swiftwc/ui 0.0.0-dev.93 → 0.0.0-dev.95
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/components/alert-dialog.d.ts +1 -1
- package/generated/components/alert-dialog.js +1 -1
- package/generated/components/body-view.d.ts +6 -1
- package/generated/components/body-view.js +1 -1
- package/generated/components/color-scheme.d.ts +5 -0
- package/generated/components/confirmation-dialog.d.ts +1 -2
- package/generated/components/confirmation-dialog.js +1 -2
- package/generated/components/content-unavailable.d.ts +5 -0
- package/generated/components/date-picker.d.ts +9 -4
- package/generated/components/date-picker.js +17 -9
- package/generated/components/disclosure-group.d.ts +4 -1
- package/generated/components/disclosure-group.js +5 -1
- package/generated/components/fine-tooltip.d.ts +5 -0
- package/generated/components/form-view.d.ts +7 -0
- package/generated/components/form-view.js +2 -0
- package/generated/components/h-stack.d.ts +7 -2
- package/generated/components/h-stack.js +2 -2
- package/generated/components/image-view.d.ts +9 -0
- package/generated/components/image-view.js +4 -0
- package/generated/components/label-view.d.ts +7 -4
- package/generated/components/label-view.js +16 -5
- package/generated/components/labeled-content.d.ts +13 -0
- package/generated/components/labeled-content.js +19 -1
- package/generated/components/list-view.d.ts +7 -0
- package/generated/components/list-view.js +2 -0
- package/generated/components/menu-view.d.ts +5 -0
- package/generated/components/navigation-large-title.d.ts +12 -0
- package/generated/components/navigation-large-title.js +7 -0
- package/generated/components/navigation-split-view.d.ts +6 -1
- package/generated/components/navigation-split-view.js +1 -1
- package/generated/components/navigation-stack.d.ts +6 -1
- package/generated/components/navigation-stack.js +1 -1
- package/generated/components/navigation-title.d.ts +10 -0
- package/generated/components/navigation-title.js +5 -0
- package/generated/components/picker-view.d.ts +9 -4
- package/generated/components/picker-view.js +11 -9
- package/generated/components/progress-view.d.ts +6 -1
- package/generated/components/progress-view.js +1 -1
- package/generated/components/scroll-view-proxy.d.ts +6 -1
- package/generated/components/scroll-view-proxy.js +1 -1
- package/generated/components/scroll-view.d.ts +7 -0
- package/generated/components/scroll-view.js +2 -0
- package/generated/components/search-view.d.ts +5 -0
- package/generated/components/section-view.d.ts +5 -0
- package/generated/components/sheet-view.d.ts +3 -0
- package/generated/components/sheet-view.js +3 -0
- package/generated/components/sidebar-toggle.d.ts +9 -1
- package/generated/components/sidebar-toggle.js +9 -6
- package/generated/components/sidebar-view.d.ts +3 -0
- package/generated/components/sidebar-view.js +3 -0
- package/generated/components/sticky-container.d.ts +6 -1
- package/generated/components/sticky-container.js +5 -5
- package/generated/components/tab-bar.d.ts +1 -1
- package/generated/components/tab-bar.js +1 -1
- package/generated/components/tab-item.d.ts +3 -0
- package/generated/components/tab-item.js +3 -0
- package/generated/components/tab-view.d.ts +8 -2
- package/generated/components/tab-view.js +1 -0
- package/generated/components/table-view.d.ts +6 -1
- package/generated/components/table-view.js +1 -1
- package/generated/components/text-field.d.ts +9 -4
- package/generated/components/text-field.js +37 -15
- package/generated/components/toggle-view.d.ts +11 -4
- package/generated/components/toggle-view.js +13 -11
- package/generated/components/tool-bar-item-group.d.ts +6 -1
- package/generated/components/tool-bar-item-group.js +1 -1
- package/generated/components/tool-bar-item.d.ts +6 -1
- package/generated/components/tool-bar-item.js +1 -1
- package/generated/components/tool-bar.d.ts +6 -1
- package/generated/components/tool-bar.js +1 -1
- package/generated/components/v-keyboard.d.ts +5 -0
- package/generated/components/v-stack.d.ts +7 -2
- package/generated/components/v-stack.js +2 -2
- package/generated/events/alert-dialog.d.ts +3 -1
- package/generated/events/confirmation-dialog.d.ts +3 -1
- package/generated/events/date-picker.d.ts +3 -1
- package/generated/events/lifecycle-observer.d.ts +6 -2
- package/generated/events/picker-view.d.ts +12 -4
- package/generated/events/scroll-view.d.ts +6 -2
- package/generated/events/tab-view.d.ts +24 -8
- package/generated/events/text-field.d.ts +3 -1
- package/generated/events/toggle-view.d.ts +3 -1
- package/generated/internal/class/form-associated-base.js +1 -1
- package/generated/internal/utils/kebab-case.js +6 -9
- package/package.json +6 -4
- package/web-components.css-data/en.json +28 -0
- package/web-components.html-data/en.json +248 -82
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DialogBase } from '../namespace-browser/base';
|
|
2
2
|
/**
|
|
3
|
-
* @
|
|
3
|
+
* @summaryA dialog that shows a message. Use it from the client module like `void alert('Save failed.')`.
|
|
4
4
|
*/
|
|
5
5
|
export declare class AlertDialog extends DialogBase {
|
|
6
6
|
#private;
|
|
@@ -3,7 +3,7 @@ import { CleanupRegistry } from '../internal/class/cleanup-registry';
|
|
|
3
3
|
import { devFlags, onoff, touchGlass } from '../internal/utils';
|
|
4
4
|
import { DialogBase } from '../namespace-browser/base';
|
|
5
5
|
/**
|
|
6
|
-
* @
|
|
6
|
+
* @summaryA dialog that shows a message. Use it from the client module like `void alert('Save failed.')`.
|
|
7
7
|
*/
|
|
8
8
|
export class AlertDialog extends DialogBase {
|
|
9
9
|
constructor() {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @summary
|
|
2
|
+
* @summary A container view that wraps a scroll view, marking it as a screen your app can navigate to.
|
|
3
3
|
*/
|
|
4
4
|
export declare class BodyView extends HTMLElement {
|
|
5
5
|
constructor();
|
|
6
6
|
disconnectedCallback(): void;
|
|
7
7
|
connectedCallback(): void;
|
|
8
8
|
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'body-view': BodyView;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { devFlags } from '../internal/utils';
|
|
2
2
|
/**
|
|
3
|
-
* @summary
|
|
3
|
+
* @summary A container view that wraps a scroll view, marking it as a screen your app can navigate to.
|
|
4
4
|
*/
|
|
5
5
|
export class BodyView extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -5,3 +5,8 @@ export declare class ColorScheme extends HTMLElement {
|
|
|
5
5
|
disconnectedCallback(): void;
|
|
6
6
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
7
7
|
}
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
'color-scheme': ColorScheme;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DialogBase } from '../namespace-browser/base';
|
|
2
2
|
/**
|
|
3
|
-
* A
|
|
4
|
-
* Use it from the client module like `await confirmation(trigger, 'Permanently erase the items in the Trash?')`.
|
|
3
|
+
* @summary A dialog that asks the user to confirm an action. Use it from the client module like `await confirmationDialog(trigger, 'Permanently erase the items in the Trash?')`.
|
|
5
4
|
*/
|
|
6
5
|
export declare class ConfirmationDialog extends DialogBase {
|
|
7
6
|
#private;
|
|
@@ -3,8 +3,7 @@ import { CleanupRegistry } from '../internal/class/cleanup-registry';
|
|
|
3
3
|
import { devFlags, isInside, onoff, touchGlass } from '../internal/utils';
|
|
4
4
|
import { DialogBase } from '../namespace-browser/base';
|
|
5
5
|
/**
|
|
6
|
-
* A
|
|
7
|
-
* Use it from the client module like `await confirmation(trigger, 'Permanently erase the items in the Trash?')`.
|
|
6
|
+
* @summary A dialog that asks the user to confirm an action. Use it from the client module like `await confirmationDialog(trigger, 'Permanently erase the items in the Trash?')`.
|
|
8
7
|
*/
|
|
9
8
|
export class ConfirmationDialog extends DialogBase {
|
|
10
9
|
static get observedAttributes() {
|
|
@@ -15,7 +15,6 @@ export declare class DatePicker extends FormAssociatedBase {
|
|
|
15
15
|
get datePickerStyle(): DatePickerStyle;
|
|
16
16
|
/**
|
|
17
17
|
* Form participation property
|
|
18
|
-
* @type {string}
|
|
19
18
|
*/
|
|
20
19
|
get name(): string;
|
|
21
20
|
get value(): {
|
|
@@ -40,8 +39,14 @@ export declare class DatePicker extends FormAssociatedBase {
|
|
|
40
39
|
} | null;
|
|
41
40
|
setValidity: (flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement) => void;
|
|
42
41
|
setCustomValidity: (message: string) => void;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
formStateRestoreCallback(state: string, reason: string): void;
|
|
43
|
+
formAssociatedCallback(form: HTMLFormElement): void;
|
|
44
|
+
formDisabledCallback(disabled: boolean): void;
|
|
45
|
+
formResetCallback(): void;
|
|
46
|
+
}
|
|
47
|
+
declare global {
|
|
48
|
+
interface HTMLElementTagNameMap {
|
|
49
|
+
'date-picker': DatePicker;
|
|
50
|
+
}
|
|
46
51
|
}
|
|
47
52
|
export {};
|
|
@@ -17,11 +17,17 @@ export class DatePicker extends FormAssociatedBase {
|
|
|
17
17
|
* @type {"graphical"|"field"|"automatic"}
|
|
18
18
|
*/
|
|
19
19
|
'date-picker-style',
|
|
20
|
+
/**
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
*/
|
|
20
23
|
'required',
|
|
21
24
|
'prompt',
|
|
22
25
|
'label',
|
|
23
26
|
'name',
|
|
24
27
|
'selection',
|
|
28
|
+
/**
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
*/
|
|
25
31
|
'disabled',
|
|
26
32
|
'minimum',
|
|
27
33
|
'maximum',
|
|
@@ -335,7 +341,6 @@ export class DatePicker extends FormAssociatedBase {
|
|
|
335
341
|
};
|
|
336
342
|
/**
|
|
337
343
|
* Form participation property
|
|
338
|
-
* @type {string}
|
|
339
344
|
*/
|
|
340
345
|
get name() {
|
|
341
346
|
return this.getAttribute('name') ?? this.getAttribute('label') ?? this.querySelector(':scope>[slot=label]')?.textContent ?? '';
|
|
@@ -453,20 +458,23 @@ export class DatePicker extends FormAssociatedBase {
|
|
|
453
458
|
else
|
|
454
459
|
this.#sendValueToForm(false);
|
|
455
460
|
};
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
459
|
-
|
|
461
|
+
formStateRestoreCallback(state, reason) {
|
|
462
|
+
//
|
|
463
|
+
}
|
|
464
|
+
formAssociatedCallback(form) {
|
|
465
|
+
this.#sendValueToForm(false);
|
|
466
|
+
}
|
|
467
|
+
formDisabledCallback(disabled) {
|
|
460
468
|
for (const input of this.#inputs)
|
|
461
469
|
input.toggleAttribute('disabled', !disabled);
|
|
462
|
-
}
|
|
463
|
-
formResetCallback
|
|
470
|
+
}
|
|
471
|
+
formResetCallback() {
|
|
464
472
|
this.#selectedDate = {
|
|
465
473
|
year: '',
|
|
466
474
|
month: '',
|
|
467
475
|
day: '',
|
|
468
476
|
};
|
|
469
|
-
this.#sendValueToForm();
|
|
470
|
-
}
|
|
477
|
+
this.#sendValueToForm(false);
|
|
478
|
+
}
|
|
471
479
|
}
|
|
472
480
|
_a = DatePicker;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { DetailsBase } from '../namespace-browser/base';
|
|
2
2
|
/**
|
|
3
|
-
* @summary A view that shows or hides another
|
|
3
|
+
* @summary A view that shows or hides another view when the user opens or closes it.
|
|
4
4
|
*
|
|
5
5
|
* @example <details is="disclosure-group"><summary><label-view title="Items"></label-view></summary><label-view title="Item 1"></label-view><label-view title="Item 2"></label-view><details is="disclosure-group"><summary><label-view title="Sub-items"></label-view></summary><label-view title="Sub-item 1"></label-view></details></details>
|
|
6
|
+
*
|
|
7
|
+
* @fires is-expanded
|
|
8
|
+
* @fires is-collapsed
|
|
6
9
|
*/
|
|
7
10
|
export declare class DisclosureGroup extends DetailsBase {
|
|
8
11
|
#private;
|
|
@@ -3,15 +3,19 @@ import { cssTime, devFlags, onoff, timeout } from '../internal/utils';
|
|
|
3
3
|
import { DetailsBase } from '../namespace-browser/base';
|
|
4
4
|
const toggleTimers = new WeakMap();
|
|
5
5
|
/**
|
|
6
|
-
* @summary A view that shows or hides another
|
|
6
|
+
* @summary A view that shows or hides another view when the user opens or closes it.
|
|
7
7
|
*
|
|
8
8
|
* @example <details is="disclosure-group"><summary><label-view title="Items"></label-view></summary><label-view title="Item 1"></label-view><label-view title="Item 2"></label-view><details is="disclosure-group"><summary><label-view title="Sub-items"></label-view></summary><label-view title="Sub-item 1"></label-view></details></details>
|
|
9
|
+
*
|
|
10
|
+
* @fires is-expanded
|
|
11
|
+
* @fires is-collapsed
|
|
9
12
|
*/
|
|
10
13
|
export class DisclosureGroup extends DetailsBase {
|
|
11
14
|
static get observedAttributes() {
|
|
12
15
|
return [
|
|
13
16
|
/**
|
|
14
17
|
* The status of this element
|
|
18
|
+
* @type {boolean}
|
|
15
19
|
*/
|
|
16
20
|
'open',
|
|
17
21
|
];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FormBase } from '../namespace-browser/base';
|
|
2
2
|
/**
|
|
3
|
+
* @summary A container view that groups controls together for entering data, like a settings screen.
|
|
4
|
+
*
|
|
3
5
|
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
4
6
|
*/
|
|
5
7
|
export declare class FormView extends FormBase {
|
|
@@ -7,3 +9,8 @@ export declare class FormView extends FormBase {
|
|
|
7
9
|
static polyfillDisconnectedCallback(el: HTMLFormElement): void;
|
|
8
10
|
static polyfillConnectedCallback(el: HTMLFormElement): void;
|
|
9
11
|
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
'form-view': FormView;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -2,6 +2,8 @@ import { CleanupRegistry } from '../internal/class/cleanup-registry';
|
|
|
2
2
|
import { devFlags, listActive, onoff } from '../internal/utils';
|
|
3
3
|
import { FormBase } from '../namespace-browser/base';
|
|
4
4
|
/**
|
|
5
|
+
* @summary A container view that groups controls together for entering data, like a settings screen.
|
|
6
|
+
*
|
|
5
7
|
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
6
8
|
*/
|
|
7
9
|
export class FormView extends FormBase {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @summary A view that arranges its children side by side.
|
|
3
3
|
*
|
|
4
|
-
* @attr {@
|
|
4
|
+
* @attr {@Template} template — The main-axis grid template
|
|
5
5
|
*
|
|
6
|
-
* @attr {@
|
|
6
|
+
* @attr {@Spacing} spacing — The gap between the primary axis
|
|
7
7
|
*
|
|
8
8
|
* @attr {@blockSet} alignment — The cross-axis alignment
|
|
9
9
|
* @attr {@inlineSet} distribution — The main-axis alignment
|
|
@@ -15,3 +15,8 @@ export declare class HStack extends HTMLElement {
|
|
|
15
15
|
connectedCallback(): void;
|
|
16
16
|
disconnectedCallback(): void;
|
|
17
17
|
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'h-stack': HStack;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -2,9 +2,9 @@ import { devFlags } from '../internal/utils';
|
|
|
2
2
|
/**
|
|
3
3
|
* @summary A view that arranges its children side by side.
|
|
4
4
|
*
|
|
5
|
-
* @attr {@
|
|
5
|
+
* @attr {@Template} template — The main-axis grid template
|
|
6
6
|
*
|
|
7
|
-
* @attr {@
|
|
7
|
+
* @attr {@Spacing} spacing — The gap between the primary axis
|
|
8
8
|
*
|
|
9
9
|
* @attr {@blockSet} alignment — The cross-axis alignment
|
|
10
10
|
* @attr {@inlineSet} distribution — The main-axis alignment
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @summary A view that displays an image.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
1
5
|
export declare class ImageView extends HTMLElement {
|
|
2
6
|
#private;
|
|
3
7
|
static get observedAttributes(): string[];
|
|
@@ -7,3 +11,8 @@ export declare class ImageView extends HTMLElement {
|
|
|
7
11
|
disconnectedCallback(): void;
|
|
8
12
|
connectedCallback(): void;
|
|
9
13
|
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'image-view': ImageView;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { $, devFlags } from '../internal/utils';
|
|
2
2
|
import { html, queryMorph } from '../morphdom';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A view that displays an image.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
3
7
|
export class ImageView extends HTMLElement {
|
|
4
8
|
static get observedAttributes() {
|
|
5
9
|
return ['system-name', 'system-weight'];
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @summary A view that labels items with an icon and a title.
|
|
3
3
|
*
|
|
4
|
-
* @example <label-view
|
|
4
|
+
* @example <label-view><span>Hello world!</span></label-view> — Creating a label using a `span` element
|
|
5
|
+
* @example <label-view title="Hello world!"></label-view> — Creating a label using the `title` attribute
|
|
6
|
+
* @example <label-view system-image="hand-waving"><span>Hello world!</span></label-view> — Creating a label with an icon and a title using the `system-image` attribute
|
|
7
|
+
* @example <label-view><i slot="icon" class="ph ph-duotone ph-hand-waving"></i><span>Hello world!</span></label-view> — Creating a label with an icon and a title using the `icon` slot
|
|
5
8
|
*
|
|
6
|
-
* @attr {@
|
|
9
|
+
* @attr {@Font} font — Sets the default font for text in this view.
|
|
7
10
|
*
|
|
8
|
-
* @slot —
|
|
9
|
-
* @slot icon —
|
|
11
|
+
* @slot — Any children without a `slot` attribute are placed in the title block.
|
|
12
|
+
* @slot icon — Use the `slot="icon"` attribute to place childen in the icon block.
|
|
10
13
|
*
|
|
11
14
|
*/
|
|
12
15
|
export declare class LabelView extends HTMLElement {
|
|
@@ -3,17 +3,28 @@ import { html, queryMorph } from '../morphdom';
|
|
|
3
3
|
/**
|
|
4
4
|
* @summary A view that labels items with an icon and a title.
|
|
5
5
|
*
|
|
6
|
-
* @example <label-view
|
|
6
|
+
* @example <label-view><span>Hello world!</span></label-view> — Creating a label using a `span` element
|
|
7
|
+
* @example <label-view title="Hello world!"></label-view> — Creating a label using the `title` attribute
|
|
8
|
+
* @example <label-view system-image="hand-waving"><span>Hello world!</span></label-view> — Creating a label with an icon and a title using the `system-image` attribute
|
|
9
|
+
* @example <label-view><i slot="icon" class="ph ph-duotone ph-hand-waving"></i><span>Hello world!</span></label-view> — Creating a label with an icon and a title using the `icon` slot
|
|
7
10
|
*
|
|
8
|
-
* @attr {@
|
|
11
|
+
* @attr {@Font} font — Sets the default font for text in this view.
|
|
9
12
|
*
|
|
10
|
-
* @slot —
|
|
11
|
-
* @slot icon —
|
|
13
|
+
* @slot — Any children without a `slot` attribute are placed in the title block.
|
|
14
|
+
* @slot icon — Use the `slot="icon"` attribute to place childen in the icon block.
|
|
12
15
|
*
|
|
13
16
|
*/
|
|
14
17
|
export class LabelView extends HTMLElement {
|
|
15
18
|
static get observedAttributes() {
|
|
16
|
-
return [
|
|
19
|
+
return [
|
|
20
|
+
'system-image',
|
|
21
|
+
'title',
|
|
22
|
+
'line-limit',
|
|
23
|
+
/**
|
|
24
|
+
* @type {tail}
|
|
25
|
+
*/
|
|
26
|
+
'truncation-mode',
|
|
27
|
+
];
|
|
17
28
|
}
|
|
18
29
|
static #template;
|
|
19
30
|
static get template() {
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @summary A container view that pairs a label with a value.
|
|
3
|
+
*
|
|
4
|
+
* @slot — The default slot.
|
|
5
|
+
* @slot label — Use the `slot="label"` attribute to place childen in the label block.
|
|
6
|
+
* @slot header
|
|
7
|
+
* @slot footer
|
|
8
|
+
*/
|
|
1
9
|
export declare class LabeledContent extends HTMLElement {
|
|
2
10
|
#private;
|
|
3
11
|
static get observedAttributes(): string[];
|
|
@@ -7,3 +15,8 @@ export declare class LabeledContent extends HTMLElement {
|
|
|
7
15
|
disconnectedCallback(): void;
|
|
8
16
|
connectedCallback(): void;
|
|
9
17
|
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'labeled-content': LabeledContent;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
import { $, devFlags } from '../internal/utils';
|
|
2
2
|
import { html, queryMorph } from '../morphdom';
|
|
3
|
+
/**
|
|
4
|
+
* @summary A container view that pairs a label with a value.
|
|
5
|
+
*
|
|
6
|
+
* @slot — The default slot.
|
|
7
|
+
* @slot label — Use the `slot="label"` attribute to place childen in the label block.
|
|
8
|
+
* @slot header
|
|
9
|
+
* @slot footer
|
|
10
|
+
*/
|
|
3
11
|
export class LabeledContent extends HTMLElement {
|
|
4
12
|
static get observedAttributes() {
|
|
5
|
-
return [
|
|
13
|
+
return [
|
|
14
|
+
'value',
|
|
15
|
+
'label',
|
|
16
|
+
'header',
|
|
17
|
+
'footer',
|
|
18
|
+
/**
|
|
19
|
+
* @type {vertical|horizontal}
|
|
20
|
+
*/
|
|
21
|
+
'labeled-content-style',
|
|
22
|
+
'format',
|
|
23
|
+
];
|
|
6
24
|
}
|
|
7
25
|
static #template;
|
|
8
26
|
static get template() {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @summary A container view that arranges rows of data in a single column, optionally letting the user select one or more of them.
|
|
3
|
+
*
|
|
2
4
|
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
3
5
|
*/
|
|
4
6
|
export declare class ListView extends HTMLElement {
|
|
@@ -6,3 +8,8 @@ export declare class ListView extends HTMLElement {
|
|
|
6
8
|
disconnectedCallback(): void;
|
|
7
9
|
connectedCallback(): void;
|
|
8
10
|
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'list-view': ListView;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CleanupRegistry } from '../internal/class/cleanup-registry';
|
|
2
2
|
import { devFlags, listActive, onoff } from '../internal/utils';
|
|
3
3
|
/**
|
|
4
|
+
* @summary A container view that arranges rows of data in a single column, optionally letting the user select one or more of them.
|
|
5
|
+
*
|
|
4
6
|
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
5
7
|
*/
|
|
6
8
|
export class ListView extends HTMLElement {
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @attr {grouped} background-style
|
|
4
|
+
* @attr {boolean} padding
|
|
5
|
+
* @attr {boolean} navigation-bar-auto-hide
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
1
8
|
export declare class NavigationLargeTitle extends HTMLElement {
|
|
2
9
|
#private;
|
|
3
10
|
constructor();
|
|
4
11
|
disconnectedCallback(): void;
|
|
5
12
|
connectedCallback(): void;
|
|
6
13
|
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'navigation-large-title': NavigationLargeTitle;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -67,6 +67,13 @@ function isIntersectingWithContainer(el, container, rootMargin = '0px 0px 0px 0p
|
|
|
67
67
|
};
|
|
68
68
|
return !(elRect.bottom < marginRect.top || elRect.top > marginRect.bottom || elRect.right < marginRect.left || elRect.left > marginRect.right);
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @attr {grouped} background-style
|
|
73
|
+
* @attr {boolean} padding
|
|
74
|
+
* @attr {boolean} navigation-bar-auto-hide
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
70
77
|
export class NavigationLargeTitle extends HTMLElement {
|
|
71
78
|
#styleObserver;
|
|
72
79
|
#scrollObserver;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NavigationView } from '../internal/class/navigation-view';
|
|
2
2
|
/**
|
|
3
|
-
* @summary A view with two or three side-by-side
|
|
3
|
+
* @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.
|
|
4
4
|
*/
|
|
5
5
|
export declare class NavigationSplitView extends NavigationView {
|
|
6
6
|
constructor();
|
|
@@ -8,3 +8,8 @@ export declare class NavigationSplitView extends NavigationView {
|
|
|
8
8
|
disconnectedCallback(): void;
|
|
9
9
|
connectedCallback(): void;
|
|
10
10
|
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'navigation-split-view': NavigationSplitView;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigationView } from '../internal/class/navigation-view';
|
|
2
2
|
import { devFlags } from '../internal/utils';
|
|
3
3
|
/**
|
|
4
|
-
* @summary A view with two or three side-by-side
|
|
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
|
*/
|
|
6
6
|
export class NavigationSplitView extends NavigationView {
|
|
7
7
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NavigationView } from '../internal/class/navigation-view';
|
|
2
2
|
/**
|
|
3
|
-
* @summary A view that shows a main screen and lets
|
|
3
|
+
* @summary A container view that shows a main screen and lets the user open other screens on top of it.
|
|
4
4
|
*/
|
|
5
5
|
export declare class NavigationStack extends NavigationView {
|
|
6
6
|
constructor();
|
|
@@ -8,3 +8,8 @@ export declare class NavigationStack extends NavigationView {
|
|
|
8
8
|
disconnectedCallback(): void;
|
|
9
9
|
connectedCallback(): void;
|
|
10
10
|
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'navigation-stack': NavigationStack;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigationView } from '../internal/class/navigation-view';
|
|
2
2
|
import { devFlags } from '../internal/utils';
|
|
3
3
|
/**
|
|
4
|
-
* @summary A view that shows a main screen and lets
|
|
4
|
+
* @summary A container view that shows a main screen and lets the user open other screens on top of it.
|
|
5
5
|
*/
|
|
6
6
|
export class NavigationStack extends NavigationView {
|
|
7
7
|
constructor() {
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @summary A container view.
|
|
3
|
+
*
|
|
4
|
+
* @attr {boolean} padding
|
|
5
|
+
*/
|
|
1
6
|
export declare class NavigationTitle extends HTMLElement {
|
|
2
7
|
#private;
|
|
3
8
|
static get observedAttributes(): string[];
|
|
@@ -6,3 +11,8 @@ export declare class NavigationTitle extends HTMLElement {
|
|
|
6
11
|
disconnectedCallback(): void;
|
|
7
12
|
connectedCallback(): void;
|
|
8
13
|
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'navigation-title': NavigationTitle;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -8,6 +8,11 @@ var NavigationTitle_1;
|
|
|
8
8
|
import { microtaskOnConnected } from '../internal/decorators';
|
|
9
9
|
import { devFlags } from '../internal/utils';
|
|
10
10
|
import { html, queryMorph } from '../morphdom';
|
|
11
|
+
/**
|
|
12
|
+
* @summary A container view.
|
|
13
|
+
*
|
|
14
|
+
* @attr {boolean} padding
|
|
15
|
+
*/
|
|
11
16
|
let NavigationTitle = NavigationTitle_1 = class NavigationTitle extends HTMLElement {
|
|
12
17
|
static get observedAttributes() {
|
|
13
18
|
return ['value', 'subtitle', 'system-image', 'system-image-weight'];
|
|
@@ -51,13 +51,18 @@ export declare class PickerView extends FormAssociatedBase {
|
|
|
51
51
|
get pickerStyle(): PickerStyle;
|
|
52
52
|
/**
|
|
53
53
|
* Form participation property
|
|
54
|
-
* @type {string}
|
|
55
54
|
*/
|
|
56
55
|
get name(): string;
|
|
57
56
|
setValidity: (flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement) => void;
|
|
58
57
|
setCustomValidity: (message: string) => void;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
formStateRestoreCallback(state: string, reason: string): void;
|
|
59
|
+
formAssociatedCallback(form: HTMLFormElement): void;
|
|
60
|
+
formDisabledCallback(disabled: boolean): void;
|
|
61
|
+
formResetCallback(): void;
|
|
62
|
+
}
|
|
63
|
+
declare global {
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
'picker-view': PickerView;
|
|
66
|
+
}
|
|
62
67
|
}
|
|
63
68
|
export {};
|
|
@@ -1088,7 +1088,6 @@ export class PickerView extends FormAssociatedBase {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Form participation property
|
|
1091
|
-
* @type {string}
|
|
1092
1091
|
*/
|
|
1093
1092
|
get name() {
|
|
1094
1093
|
return this.getAttribute('name') ?? this.getAttribute('label') ?? this.querySelector(':scope>[slot=label]')?.textContent ?? '';
|
|
@@ -1133,18 +1132,21 @@ export class PickerView extends FormAssociatedBase {
|
|
|
1133
1132
|
else
|
|
1134
1133
|
this.#sendValueToForm(false);
|
|
1135
1134
|
};
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1135
|
+
formStateRestoreCallback(state, reason) {
|
|
1136
|
+
//
|
|
1137
|
+
}
|
|
1138
|
+
formAssociatedCallback(form) {
|
|
1139
|
+
this.#sendValueToForm(false);
|
|
1140
|
+
}
|
|
1141
|
+
formDisabledCallback(disabled) {
|
|
1140
1142
|
for (const btn of this.#shadowRoot.querySelectorAll('button'))
|
|
1141
1143
|
btn.toggleAttribute('disabled', !disabled);
|
|
1142
|
-
}
|
|
1143
|
-
formResetCallback
|
|
1144
|
+
}
|
|
1145
|
+
formResetCallback() {
|
|
1144
1146
|
this.#selection = '';
|
|
1145
1147
|
this.#reflectSelectionOnButtons();
|
|
1146
1148
|
this.#reflectSelectionOnCurrentValueLabel();
|
|
1147
|
-
this.#sendValueToForm();
|
|
1148
|
-
}
|
|
1149
|
+
this.#sendValueToForm(false);
|
|
1150
|
+
}
|
|
1149
1151
|
}
|
|
1150
1152
|
_a = PickerView;
|