@swiftwc/ui 0.0.0-dev.90 → 0.0.0-dev.92
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/bordered-button.d.ts +1 -1
- package/generated/components/bordered-button.js +1 -1
- package/generated/components/content-unavailable-view.d.ts +1 -0
- package/generated/components/content-unavailable-view.js +1 -0
- package/generated/components/date-picker.d.ts +8 -0
- package/generated/components/date-picker.js +9 -2
- package/generated/components/form-view.d.ts +1 -1
- package/generated/components/form-view.js +1 -1
- package/generated/components/h-stack.d.ts +5 -5
- package/generated/components/h-stack.js +5 -5
- package/generated/components/label-view.d.ts +2 -1
- package/generated/components/label-view.js +2 -1
- package/generated/components/list-view.d.ts +1 -1
- package/generated/components/list-view.js +1 -1
- package/generated/components/menu-view.d.ts +1 -0
- package/generated/components/menu-view.js +1 -0
- package/generated/components/picker-view.d.ts +7 -2
- package/generated/components/picker-view.js +7 -3
- package/generated/components/progress-view.d.ts +1 -0
- package/generated/components/progress-view.js +1 -0
- package/generated/components/scroll-view.d.ts +1 -0
- package/generated/components/scroll-view.js +11 -1
- package/generated/components/section-view.d.ts +1 -0
- package/generated/components/section-view.js +1 -0
- package/generated/components/tab-view.d.ts +5 -2
- package/generated/components/tab-view.js +5 -2
- package/generated/components/table-view.d.ts +2 -1
- package/generated/components/table-view.js +2 -1
- package/generated/components/text-field.d.ts +6 -0
- package/generated/components/text-field.js +8 -3
- package/generated/components/toggle-view.d.ts +4 -0
- package/generated/components/toggle-view.js +4 -1
- package/generated/components/tool-bar.d.ts +10 -10
- package/generated/components/tool-bar.js +10 -10
- package/generated/components/v-keyboard.d.ts +1 -1
- package/generated/components/v-keyboard.js +1 -1
- package/generated/components/v-stack.d.ts +6 -6
- package/generated/components/v-stack.js +6 -6
- package/package.json +3 -2
- package/web-components.html-data/en.json +333 -90
|
@@ -2,7 +2,7 @@ import { ButtonBase } from '../namespace-browser/base';
|
|
|
2
2
|
/**
|
|
3
3
|
* @summary A control that initiates an action. Styled with standard border artwork based on the button’s context.
|
|
4
4
|
*
|
|
5
|
-
* @example <button is="bordered-button"><label-view system-image="hand-tap" title="Tap Me"></label-view></button>
|
|
5
|
+
* @example <button is="bordered-button"><label-view system-image="hand-tap" title="Tap Me"></label-view></button> — Creating a menu from a configuration
|
|
6
6
|
*
|
|
7
7
|
* @slot overlay
|
|
8
8
|
*
|
|
@@ -5,7 +5,7 @@ import { Snapshot } from '../snapshot';
|
|
|
5
5
|
/**
|
|
6
6
|
* @summary A control that initiates an action. Styled with standard border artwork based on the button’s context.
|
|
7
7
|
*
|
|
8
|
-
* @example <button is="bordered-button"><label-view system-image="hand-tap" title="Tap Me"></label-view></button>
|
|
8
|
+
* @example <button is="bordered-button"><label-view system-image="hand-tap" title="Tap Me"></label-view></button> — Creating a menu from a configuration
|
|
9
9
|
*
|
|
10
10
|
* @slot overlay
|
|
11
11
|
*
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @example <content-unavailable-view padding><label-view title="No Mail"><svg slot="icon" foreground="secondary" ...>...</svg></label-view><label-view title="New mails you receive will appear here." foreground="secondary" slot="description"></label-view><button is="borderless-button" type="button" tabindex="0" slot="actions"><label-view title="Switch Account"></label-view></button></content-unavailable-view>
|
|
11
11
|
*
|
|
12
|
+
* @slot — The default slot.
|
|
12
13
|
* @slot description
|
|
13
14
|
* @slot actions
|
|
14
15
|
*
|
|
@@ -12,6 +12,7 @@ import { $, devFlags, onoff } from '../internal/utils';
|
|
|
12
12
|
*
|
|
13
13
|
* @example <content-unavailable-view padding><label-view title="No Mail"><svg slot="icon" foreground="secondary" ...>...</svg></label-view><label-view title="New mails you receive will appear here." foreground="secondary" slot="description"></label-view><button is="borderless-button" type="button" tabindex="0" slot="actions"><label-view title="Switch Account"></label-view></button></content-unavailable-view>
|
|
14
14
|
*
|
|
15
|
+
* @slot — The default slot.
|
|
15
16
|
* @slot description
|
|
16
17
|
* @slot actions
|
|
17
18
|
*
|
|
@@ -13,12 +13,20 @@ export declare class DatePicker extends FormAssociatedBase {
|
|
|
13
13
|
disconnectedCallback(): void;
|
|
14
14
|
connectedCallback(): void;
|
|
15
15
|
get datePickerStyle(): DatePickerStyle;
|
|
16
|
+
/**
|
|
17
|
+
* Form participation property
|
|
18
|
+
* @type {string}
|
|
19
|
+
*/
|
|
16
20
|
get name(): string;
|
|
17
21
|
get value(): {
|
|
18
22
|
year: string;
|
|
19
23
|
month: string;
|
|
20
24
|
day: string;
|
|
21
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Returns the value as a Date object.
|
|
28
|
+
* @type {Date|null}
|
|
29
|
+
*/
|
|
22
30
|
get valueAsDate(): Date | null;
|
|
23
31
|
get minimum(): {
|
|
24
32
|
year: string;
|
|
@@ -85,7 +85,7 @@ export class DatePicker extends FormAssociatedBase {
|
|
|
85
85
|
case 'name':
|
|
86
86
|
case 'minimum':
|
|
87
87
|
case 'maximum':
|
|
88
|
-
this.#sendValueToForm();
|
|
88
|
+
this.#sendValueToForm(false);
|
|
89
89
|
break;
|
|
90
90
|
case 'prompt':
|
|
91
91
|
const [py = '', pm = '', pd = ''] = (newValue ?? '').split(/\D+/), map = { year: py, month: pm, day: pd };
|
|
@@ -333,7 +333,10 @@ export class DatePicker extends FormAssociatedBase {
|
|
|
333
333
|
console.debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
334
334
|
this.#sendValueToForm();
|
|
335
335
|
};
|
|
336
|
-
|
|
336
|
+
/**
|
|
337
|
+
* Form participation property
|
|
338
|
+
* @type {string}
|
|
339
|
+
*/
|
|
337
340
|
get name() {
|
|
338
341
|
return this.getAttribute('name') ?? this.getAttribute('label') ?? this.querySelector(':scope>[slot=label]')?.textContent ?? '';
|
|
339
342
|
}
|
|
@@ -347,6 +350,10 @@ export class DatePicker extends FormAssociatedBase {
|
|
|
347
350
|
day: (map.day ?? '').padStart(2, '0'),
|
|
348
351
|
};
|
|
349
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* Returns the value as a Date object.
|
|
355
|
+
* @type {Date|null}
|
|
356
|
+
*/
|
|
350
357
|
get valueAsDate() {
|
|
351
358
|
try {
|
|
352
359
|
const d = new Date(`${this.value.year}-${this.value.month}-${this.value.day}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormBase } from '../namespace-browser/base';
|
|
2
2
|
/**
|
|
3
|
-
* @attr {hidden} navigation-link-indicator-visibility
|
|
3
|
+
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
4
4
|
*/
|
|
5
5
|
export declare class FormView extends FormBase {
|
|
6
6
|
constructor();
|
|
@@ -2,7 +2,7 @@ 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
|
-
* @attr {hidden} navigation-link-indicator-visibility
|
|
5
|
+
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
6
6
|
*/
|
|
7
7
|
export class FormView extends FormBase {
|
|
8
8
|
constructor() {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @summary A view that arranges its subviews in a horizontal line.
|
|
3
3
|
*
|
|
4
|
-
* @attr {@templateSet} template
|
|
4
|
+
* @attr {@templateSet} template — The main-axis grid template
|
|
5
5
|
*
|
|
6
|
-
* @attr {@spacingSet} spacing
|
|
6
|
+
* @attr {@spacingSet} spacing — The gap between the primary axis
|
|
7
7
|
*
|
|
8
|
-
* @attr {@blockSet} alignment
|
|
9
|
-
* @attr {@inlineSet} distribution
|
|
10
|
-
* @attr {@inlinePlacementSet} placement
|
|
8
|
+
* @attr {@blockSet} alignment — The cross-axis alignment
|
|
9
|
+
* @attr {@inlineSet} distribution — The main-axis alignment
|
|
10
|
+
* @attr {@inlinePlacementSet} placement — The main-axis alignment
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
export declare class HStack extends HTMLElement {
|
|
@@ -2,13 +2,13 @@ import { devFlags } from '../internal/utils';
|
|
|
2
2
|
/**
|
|
3
3
|
* @summary A view that arranges its subviews in a horizontal line.
|
|
4
4
|
*
|
|
5
|
-
* @attr {@templateSet} template
|
|
5
|
+
* @attr {@templateSet} template — The main-axis grid template
|
|
6
6
|
*
|
|
7
|
-
* @attr {@spacingSet} spacing
|
|
7
|
+
* @attr {@spacingSet} spacing — The gap between the primary axis
|
|
8
8
|
*
|
|
9
|
-
* @attr {@blockSet} alignment
|
|
10
|
-
* @attr {@inlineSet} distribution
|
|
11
|
-
* @attr {@inlinePlacementSet} placement
|
|
9
|
+
* @attr {@blockSet} alignment — The cross-axis alignment
|
|
10
|
+
* @attr {@inlineSet} distribution — The main-axis alignment
|
|
11
|
+
* @attr {@inlinePlacementSet} placement — The main-axis alignment
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
export class HStack extends HTMLElement {
|
|
@@ -2,8 +2,9 @@ import { $, devFlags } from '../internal/utils';
|
|
|
2
2
|
import { html, queryMorph } from '../morphdom';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
* @attr {@fontSet} font
|
|
5
|
+
* @attr {@fontSet} font — Sets the default font for text in this view.
|
|
6
6
|
*
|
|
7
|
+
* @slot — The default slot.
|
|
7
8
|
* @slot icon
|
|
8
9
|
*
|
|
9
10
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @attr {hidden} navigation-link-indicator-visibility
|
|
2
|
+
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
3
3
|
*/
|
|
4
4
|
export declare class ListView extends HTMLElement {
|
|
5
5
|
constructor();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CleanupRegistry } from '../internal/class/cleanup-registry';
|
|
2
2
|
import { devFlags, listActive, onoff } from '../internal/utils';
|
|
3
3
|
/**
|
|
4
|
-
* @attr {hidden} navigation-link-indicator-visibility
|
|
4
|
+
* @attr {hidden} navigation-link-indicator-visibility — Hides accessories like right-arrow-chevron on NavigationLink buttons inside.
|
|
5
5
|
*/
|
|
6
6
|
export class ListView extends HTMLElement {
|
|
7
7
|
// static #template: DocumentFragment
|
|
@@ -13,12 +13,13 @@ export type Dictionary = DictEntry[];
|
|
|
13
13
|
*
|
|
14
14
|
* @attr {menu|inline|navigation-link|sheet|automatic} picker-style
|
|
15
15
|
*
|
|
16
|
-
* @attr {string} help
|
|
16
|
+
* @attr {string} help — Adds a help tooltip to the trigger of the picker, if style supports one
|
|
17
17
|
*
|
|
18
|
-
* @attr {DictEntry[]} dictionary
|
|
18
|
+
* @attr {DictEntry[]} dictionary — Renders all options using this array
|
|
19
19
|
*
|
|
20
20
|
* @attr {vertical|horizontal|auto} label-value-placement
|
|
21
21
|
*
|
|
22
|
+
* @slot — The default slot.
|
|
22
23
|
* @slot label
|
|
23
24
|
* @slot list
|
|
24
25
|
* @slot validity-options
|
|
@@ -47,6 +48,10 @@ export declare class PickerView extends FormAssociatedBase {
|
|
|
47
48
|
disconnectedCallback(): void;
|
|
48
49
|
connectedCallback(): void;
|
|
49
50
|
get pickerStyle(): PickerStyle;
|
|
51
|
+
/**
|
|
52
|
+
* Form participation property
|
|
53
|
+
* @type {string}
|
|
54
|
+
*/
|
|
50
55
|
get name(): string;
|
|
51
56
|
setValidity: (flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement) => void;
|
|
52
57
|
setCustomValidity: (message: string) => void;
|
|
@@ -119,12 +119,13 @@ const collectLeafValues = (node) => (node.children.length ? node.children.flatMa
|
|
|
119
119
|
*
|
|
120
120
|
* @attr {menu|inline|navigation-link|sheet|automatic} picker-style
|
|
121
121
|
*
|
|
122
|
-
* @attr {string} help
|
|
122
|
+
* @attr {string} help — Adds a help tooltip to the trigger of the picker, if style supports one
|
|
123
123
|
*
|
|
124
|
-
* @attr {DictEntry[]} dictionary
|
|
124
|
+
* @attr {DictEntry[]} dictionary — Renders all options using this array
|
|
125
125
|
*
|
|
126
126
|
* @attr {vertical|horizontal|auto} label-value-placement
|
|
127
127
|
*
|
|
128
|
+
* @slot — The default slot.
|
|
128
129
|
* @slot label
|
|
129
130
|
* @slot list
|
|
130
131
|
* @slot validity-options
|
|
@@ -1084,7 +1085,10 @@ export class PickerView extends FormAssociatedBase {
|
|
|
1084
1085
|
else
|
|
1085
1086
|
trigger?.removeAttribute(this.constructor.ATTR.TRIGGER_HELP);
|
|
1086
1087
|
}
|
|
1087
|
-
|
|
1088
|
+
/**
|
|
1089
|
+
* Form participation property
|
|
1090
|
+
* @type {string}
|
|
1091
|
+
*/
|
|
1088
1092
|
get name() {
|
|
1089
1093
|
return this.getAttribute('name') ?? this.getAttribute('label') ?? this.querySelector(':scope>[slot=label]')?.textContent ?? '';
|
|
1090
1094
|
}
|
|
@@ -6,12 +6,22 @@ import { $, devFlags, frame, onoff, slowHideShow } from '../internal/utils';
|
|
|
6
6
|
import { html, queryMorph } from '../morphdom';
|
|
7
7
|
const observers = new ResizeObserverSingleton();
|
|
8
8
|
/**
|
|
9
|
+
* @slot — The default slot.
|
|
9
10
|
* @slot top-bar-principal
|
|
10
11
|
* @slot bottom-bar-principal
|
|
11
12
|
*/
|
|
12
13
|
export class ScrollView extends HTMLElement {
|
|
13
14
|
static get observedAttributes() {
|
|
14
|
-
return [
|
|
15
|
+
return [
|
|
16
|
+
/**
|
|
17
|
+
* Configures the view’s title for purposes of navigation. Shorthand for `<v-stack spacing="0" alignment="fill" slot="top-bar-principal"><label-view line-limit="1" truncation-mode="tail" font="headline"><span>Navigation Title</span></label-view></v-stack>`
|
|
18
|
+
*/
|
|
19
|
+
'navigation-title',
|
|
20
|
+
'navigation-inline-title',
|
|
21
|
+
'navigation-inline-subtitle',
|
|
22
|
+
'navigation-icon',
|
|
23
|
+
'navigation-bar-title-display-mode',
|
|
24
|
+
];
|
|
15
25
|
}
|
|
16
26
|
static #template;
|
|
17
27
|
static get template() {
|
|
@@ -3,8 +3,11 @@ import { type NavigationStack } from './navigation-stack';
|
|
|
3
3
|
declare const TAB_BAR_PLACEMENTS: readonly ["bottom-bar", "ornament", "sidebar", "top-bar"];
|
|
4
4
|
export type TabBarPlacement = (typeof TAB_BAR_PLACEMENTS)[number];
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* @
|
|
6
|
+
*
|
|
7
|
+
* @cssprop --adaptable-tab-bar-placement
|
|
8
|
+
*
|
|
9
|
+
* @fires tabshow — A Tab is shown
|
|
10
|
+
* @fires tabhide — A Tab is hidden
|
|
8
11
|
* @fires tab-view:toggle
|
|
9
12
|
* @fires tab-view:adaptable-tab-bar-placement-change
|
|
10
13
|
*/
|
|
@@ -6,8 +6,11 @@ import { $, cssTime, debounce, devFlags, frame, onoff, timeout } from '../intern
|
|
|
6
6
|
import { Snapshot } from '../snapshot';
|
|
7
7
|
const TAB_BAR_PLACEMENTS = ['bottom-bar', 'ornament', 'sidebar', 'top-bar'];
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @
|
|
9
|
+
*
|
|
10
|
+
* @cssprop --adaptable-tab-bar-placement
|
|
11
|
+
*
|
|
12
|
+
* @fires tabshow — A Tab is shown
|
|
13
|
+
* @fires tabhide — A Tab is hidden
|
|
11
14
|
* @fires tab-view:toggle
|
|
12
15
|
* @fires tab-view:adaptable-tab-bar-placement-change
|
|
13
16
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @summary Display selectable, sortable data arranged in rows and columns.
|
|
3
3
|
*
|
|
4
|
-
* @attr {title:trailing:subtitle|trailing:title:subtitle|title:subtitle:trailing|*} preferred-compact-template
|
|
4
|
+
* @attr {title:trailing:subtitle|trailing:title:subtitle|title:subtitle:trailing|*} preferred-compact-template — Sets the template areas when the table is in compact mode
|
|
5
5
|
*
|
|
6
|
+
* @slot — The default slot.
|
|
6
7
|
* @slot header-leading
|
|
7
8
|
* @slot header-principal
|
|
8
9
|
* @slot header-trailing
|
|
@@ -8,8 +8,9 @@ import { Snapshot } from '../snapshot';
|
|
|
8
8
|
/**
|
|
9
9
|
* @summary Display selectable, sortable data arranged in rows and columns.
|
|
10
10
|
*
|
|
11
|
-
* @attr {title:trailing:subtitle|trailing:title:subtitle|title:subtitle:trailing|*} preferred-compact-template
|
|
11
|
+
* @attr {title:trailing:subtitle|trailing:title:subtitle|title:subtitle:trailing|*} preferred-compact-template — Sets the template areas when the table is in compact mode
|
|
12
12
|
*
|
|
13
|
+
* @slot — The default slot.
|
|
13
14
|
* @slot header-leading
|
|
14
15
|
* @slot header-principal
|
|
15
16
|
* @slot header-trailing
|
|
@@ -2,6 +2,8 @@ import { FormAssociatedBase } from '../internal/class/form-associated-base';
|
|
|
2
2
|
declare const keyboardTypes: readonly ["decimal-pad", "number-pad", "default"];
|
|
3
3
|
export type KeyboardType = (typeof keyboardTypes)[number];
|
|
4
4
|
/**
|
|
5
|
+
* @summary A control that displays an editable text interface.
|
|
6
|
+
*
|
|
5
7
|
* @slot label
|
|
6
8
|
* @slot validity-options
|
|
7
9
|
*/
|
|
@@ -16,6 +18,10 @@ export declare class TextField extends FormAssociatedBase {
|
|
|
16
18
|
get keyboardType(): KeyboardType;
|
|
17
19
|
get text(): string;
|
|
18
20
|
set text(v: string);
|
|
21
|
+
/**
|
|
22
|
+
* Form participation property
|
|
23
|
+
* @type {string}
|
|
24
|
+
*/
|
|
19
25
|
get name(): string;
|
|
20
26
|
get value(): string;
|
|
21
27
|
get valueAsNumber(): number | "";
|
|
@@ -7,6 +7,8 @@ import { $, compareBigDecimals, devFlags, kebabCase, onoff, set } from '../inter
|
|
|
7
7
|
import { html, queryMorph } from '../morphdom';
|
|
8
8
|
const keyboardTypes = ['decimal-pad', 'number-pad', 'default'];
|
|
9
9
|
/**
|
|
10
|
+
* @summary A control that displays an editable text interface.
|
|
11
|
+
*
|
|
10
12
|
* @slot label
|
|
11
13
|
* @slot validity-options
|
|
12
14
|
*/
|
|
@@ -124,7 +126,7 @@ export class TextField extends FormAssociatedBase {
|
|
|
124
126
|
case 'name':
|
|
125
127
|
case 'minimum':
|
|
126
128
|
case 'maximum':
|
|
127
|
-
this.#sendValueToForm();
|
|
129
|
+
this.#sendValueToForm(false);
|
|
128
130
|
break;
|
|
129
131
|
case 'prompt':
|
|
130
132
|
this.#input?.setAttribute('placeholder', newValue ?? ''); // else this.#input?.removeAttribute(name)
|
|
@@ -392,7 +394,10 @@ export class TextField extends FormAssociatedBase {
|
|
|
392
394
|
console.debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
393
395
|
this.#sendValueToForm();
|
|
394
396
|
};
|
|
395
|
-
|
|
397
|
+
/**
|
|
398
|
+
* Form participation property
|
|
399
|
+
* @type {string}
|
|
400
|
+
*/
|
|
396
401
|
get name() {
|
|
397
402
|
return this.getAttribute('name') ?? this.getAttribute('label') ?? this.querySelector(':scope>[slot=label]')?.textContent ?? '';
|
|
398
403
|
}
|
|
@@ -491,7 +496,7 @@ export class TextField extends FormAssociatedBase {
|
|
|
491
496
|
};
|
|
492
497
|
formResetCallback = () => {
|
|
493
498
|
this.text = '';
|
|
494
|
-
this.#sendValueToForm();
|
|
499
|
+
this.#sendValueToForm(false);
|
|
495
500
|
};
|
|
496
501
|
}
|
|
497
502
|
_a = TextField;
|
|
@@ -16,6 +16,10 @@ export declare class ToggleView extends FormAssociatedBase {
|
|
|
16
16
|
get toggleStyle(): ToggleStyle;
|
|
17
17
|
get isOn(): boolean;
|
|
18
18
|
set isOn(v: boolean);
|
|
19
|
+
/**
|
|
20
|
+
* Form participation property
|
|
21
|
+
* @type {string}
|
|
22
|
+
*/
|
|
19
23
|
get name(): string;
|
|
20
24
|
get value(): string | null;
|
|
21
25
|
set value(v: string | null);
|
|
@@ -160,7 +160,10 @@ export class ToggleView extends FormAssociatedBase {
|
|
|
160
160
|
console.debug(`${_a.name} ⚡️ ${evt?.type}`);
|
|
161
161
|
this.#sendValueToForm();
|
|
162
162
|
};
|
|
163
|
-
|
|
163
|
+
/**
|
|
164
|
+
* Form participation property
|
|
165
|
+
* @type {string}
|
|
166
|
+
*/
|
|
164
167
|
get name() {
|
|
165
168
|
return this.getAttribute('name') ?? this.getAttribute('label') ?? this.querySelector(':scope>[slot=label]')?.textContent ?? '';
|
|
166
169
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @summary Populates the toolbar or navigation bar with the specified items.
|
|
3
3
|
*
|
|
4
|
-
* @slot cancellation-action
|
|
5
|
-
* @slot primary-action
|
|
6
|
-
* @slot confirmation-action
|
|
7
|
-
* @slot destructive-action
|
|
8
|
-
* @slot top-bar-leading
|
|
9
|
-
* @slot top-bar-principal
|
|
10
|
-
* @slot top-bar-trailing
|
|
11
|
-
* @slot bottom-bar-leading
|
|
12
|
-
* @slot bottom-bar-principal
|
|
13
|
-
* @slot bottom-bar-trailing
|
|
4
|
+
* @slot cancellation-action — The item represents a cancellation action for a modal interface. Places the item in the leading edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
5
|
+
* @slot primary-action — The item represents a primary action. Places the item in the trailing edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
6
|
+
* @slot confirmation-action — The item represents a confirmation action for a modal interface. Places the item in the trailing edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
7
|
+
* @slot destructive-action — The item represents a destructive action for a modal interface. Places the item in the leading edge of the top bar and on the leading edge of the bottom bar when fine modal
|
|
8
|
+
* @slot top-bar-leading — Places the item in the leading edge of the top bar
|
|
9
|
+
* @slot top-bar-principal — Places the item in the middle of the top bar
|
|
10
|
+
* @slot top-bar-trailing — Places the item in the trailing edge of the top bar
|
|
11
|
+
* @slot bottom-bar-leading — Places the item in the leading edge of the bottom bar
|
|
12
|
+
* @slot bottom-bar-principal — Places the item in the middle of the bottom bar
|
|
13
|
+
* @slot bottom-bar-trailing — Places the item in the trailing edge of the bottom bar
|
|
14
14
|
*/
|
|
15
15
|
export declare class ToolBar extends HTMLElement {
|
|
16
16
|
#private;
|
|
@@ -5,16 +5,16 @@ const observers = new ResizeObserverSingleton();
|
|
|
5
5
|
/**
|
|
6
6
|
* @summary Populates the toolbar or navigation bar with the specified items.
|
|
7
7
|
*
|
|
8
|
-
* @slot cancellation-action
|
|
9
|
-
* @slot primary-action
|
|
10
|
-
* @slot confirmation-action
|
|
11
|
-
* @slot destructive-action
|
|
12
|
-
* @slot top-bar-leading
|
|
13
|
-
* @slot top-bar-principal
|
|
14
|
-
* @slot top-bar-trailing
|
|
15
|
-
* @slot bottom-bar-leading
|
|
16
|
-
* @slot bottom-bar-principal
|
|
17
|
-
* @slot bottom-bar-trailing
|
|
8
|
+
* @slot cancellation-action — The item represents a cancellation action for a modal interface. Places the item in the leading edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
9
|
+
* @slot primary-action — The item represents a primary action. Places the item in the trailing edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
10
|
+
* @slot confirmation-action — The item represents a confirmation action for a modal interface. Places the item in the trailing edge of the top bar and on the trailing edge of the bottom bar when fine modal
|
|
11
|
+
* @slot destructive-action — The item represents a destructive action for a modal interface. Places the item in the leading edge of the top bar and on the leading edge of the bottom bar when fine modal
|
|
12
|
+
* @slot top-bar-leading — Places the item in the leading edge of the top bar
|
|
13
|
+
* @slot top-bar-principal — Places the item in the middle of the top bar
|
|
14
|
+
* @slot top-bar-trailing — Places the item in the trailing edge of the top bar
|
|
15
|
+
* @slot bottom-bar-leading — Places the item in the leading edge of the bottom bar
|
|
16
|
+
* @slot bottom-bar-principal — Places the item in the middle of the bottom bar
|
|
17
|
+
* @slot bottom-bar-trailing — Places the item in the trailing edge of the bottom bar
|
|
18
18
|
*/
|
|
19
19
|
export class ToolBar extends HTMLElement {
|
|
20
20
|
static #template;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @summary Required component, used to handle the virtual keyboard on touch devices.
|
|
6
6
|
*
|
|
7
|
-
* @attr {Inter} system-font
|
|
7
|
+
* @attr {Inter} system-font — Prefers the "Inter" font family, if loaded.
|
|
8
8
|
*/
|
|
9
9
|
export declare class VKeyboard extends HTMLElement {
|
|
10
10
|
#private;
|
|
@@ -8,7 +8,7 @@ import { Snapshot } from '../snapshot';
|
|
|
8
8
|
*
|
|
9
9
|
* @summary Required component, used to handle the virtual keyboard on touch devices.
|
|
10
10
|
*
|
|
11
|
-
* @attr {Inter} system-font
|
|
11
|
+
* @attr {Inter} system-font — Prefers the "Inter" font family, if loaded.
|
|
12
12
|
*/
|
|
13
13
|
export class VKeyboard extends HTMLElement {
|
|
14
14
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @summary A view that arranges its subviews in a vertical line.
|
|
3
3
|
*
|
|
4
|
-
* @attr {leading|"leading fill"|center|trailing|fill|space-between} distribution
|
|
4
|
+
* @attr {leading|"leading fill"|center|trailing|fill|space-between} distribution — The distribution of cols
|
|
5
5
|
*
|
|
6
|
-
* @attr {@templateSet} template
|
|
6
|
+
* @attr {@templateSet} template — The main-axis grid template
|
|
7
7
|
*
|
|
8
|
-
* @attr {@spacingSet} spacing
|
|
8
|
+
* @attr {@spacingSet} spacing — The gap between the primary axis
|
|
9
9
|
*
|
|
10
|
-
* @attr {@inlineSet} alignment
|
|
11
|
-
* @attr {@blockSet} distribution
|
|
12
|
-
* @attr {@blockPlacementSet} placement
|
|
10
|
+
* @attr {@inlineSet} alignment — The cross-axis alignment
|
|
11
|
+
* @attr {@blockSet} distribution — The main-axis alignment
|
|
12
|
+
* @attr {@blockPlacementSet} placement — The main-axis alignment
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
export declare class VStack extends HTMLElement {
|
|
@@ -2,15 +2,15 @@ import { devFlags } from '../internal/utils';
|
|
|
2
2
|
/**
|
|
3
3
|
* @summary A view that arranges its subviews in a vertical line.
|
|
4
4
|
*
|
|
5
|
-
* @attr {leading|"leading fill"|center|trailing|fill|space-between} distribution
|
|
5
|
+
* @attr {leading|"leading fill"|center|trailing|fill|space-between} distribution — The distribution of cols
|
|
6
6
|
*
|
|
7
|
-
* @attr {@templateSet} template
|
|
7
|
+
* @attr {@templateSet} template — The main-axis grid template
|
|
8
8
|
*
|
|
9
|
-
* @attr {@spacingSet} spacing
|
|
9
|
+
* @attr {@spacingSet} spacing — The gap between the primary axis
|
|
10
10
|
*
|
|
11
|
-
* @attr {@inlineSet} alignment
|
|
12
|
-
* @attr {@blockSet} distribution
|
|
13
|
-
* @attr {@blockPlacementSet} placement
|
|
11
|
+
* @attr {@inlineSet} alignment — The cross-axis alignment
|
|
12
|
+
* @attr {@blockSet} distribution — The main-axis alignment
|
|
13
|
+
* @attr {@blockPlacementSet} placement — The main-axis alignment
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
16
|
export class VStack extends HTMLElement {
|
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.92",
|
|
4
4
|
"description": "Elegant SwiftUI-inspired web components for standalone web apps and web extensions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"./css": "./generated/css/index.css",
|
|
51
51
|
"./scss": "./scss/index.scss",
|
|
52
52
|
"./scss/*": "./scss/*.scss",
|
|
53
|
-
"./customElements/en": "./custom-elements/en.json"
|
|
53
|
+
"./customElements/en": "./custom-elements/en.json",
|
|
54
|
+
"./webComponentsHTMLData/en": "./web-components.html-data/en.json"
|
|
54
55
|
},
|
|
55
56
|
"bin": {
|
|
56
57
|
"swiftwc": "./generated/index.js"
|