@swiftwc/ui 0.0.0-dev.95 → 0.0.0-dev.96
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 +7 -7
- package/generated/components/alert-dialog.d.ts +1 -1
- package/generated/components/alert-dialog.js +1 -1
- package/generated/components/content-unavailable.js +11 -11
- package/generated/components/date-picker.js +15 -15
- package/generated/components/fine-tooltip.js +2 -1
- package/generated/components/image-view.js +3 -2
- package/generated/components/label-view.d.ts +4 -0
- package/generated/components/label-view.js +11 -7
- package/generated/components/labeled-content.d.ts +5 -0
- package/generated/components/labeled-content.js +18 -12
- package/generated/components/menu-view.js +12 -12
- package/generated/components/navigation-title.js +2 -1
- package/generated/components/picker-view.d.ts +1 -1
- package/generated/components/picker-view.js +51 -50
- package/generated/components/progress-view.js +20 -19
- package/generated/components/scroll-view.js +14 -14
- package/generated/components/section-view.js +11 -11
- package/generated/components/table-view.js +34 -34
- package/generated/components/text-field.d.ts +2 -0
- package/generated/components/text-field.js +13 -11
- package/generated/components/toggle-view.js +30 -13
- package/generated/components/tool-bar.js +27 -27
- package/generated/internal/utils/cash/index.d.ts +4 -3
- package/generated/internal/utils/cash/index.js +4 -2
- package/generated/internal/utils/ensure-placeholder.js +2 -1
- package/generated/morphdom/index.d.ts +4 -2
- package/generated/morphdom/index.js +4 -2
- package/generated/morphdom/morph.d.ts +2 -2
- package/generated/morphdom/morph.js +3 -2
- package/generated/morphdom/query-morph.d.ts +2 -2
- package/generated/morphdom/query-morph.js +1 -1
- package/generated/morphdom/render-to-string.d.ts +12 -0
- package/generated/morphdom/render-to-string.js +48 -0
- package/generated/morphdom/unsafe-html.d.ts +2 -0
- package/generated/morphdom/unsafe-html.js +4 -0
- package/generated/tpl/html.js +4 -0
- package/generated/tpl/index.d.ts +2 -0
- package/generated/tpl/index.js +2 -0
- package/generated/tpl/is-template-result.d.ts +3 -0
- package/generated/tpl/is-template-result.js +1 -0
- package/package.json +1 -1
- package/web-components.html-data/en.json +64 -116
- package/generated/morphdom/html.d.ts +0 -8
- package/generated/morphdom/html.js +0 -37
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://swiftwc.github.io/ui/web-components/alert-dialog"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
|
-
"description": ""
|
|
12
|
+
"description": "A dialog that shows a message. Use it from the client module like `void alert('Save failed.')`.\n---\n\n```ts\ninterface AlertDialogSignature {\n Declaration: '<dialog is=\"alert-dialog\"></dialog>'\n}\n\nclass AlertDialog extends HTMLDialogElement<AlertDialogSignature> {}\n\n```\n"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "body-view",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "https://swiftwc.github.io/ui/web-components/body-view"
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
|
-
"description": "A container view that wraps a scroll view, marking it as a screen your app can navigate to.\n
|
|
22
|
+
"description": "A container view that wraps a scroll view, marking it as a screen your app can navigate to.\n---\n\n```ts\ninterface BodyViewSignature {\n Declaration: '<body-view></body-view>'\n}\n\nclass BodyView extends HTMLElement<BodyViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'body-view': BodyView\n }\n}\n\n```\n"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "bordered-button",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"name": "title-key"
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
|
-
"description": "A control that starts an action. Styled with a standard border, adapting to the button’s surroundings.\n---\n\n
|
|
49
|
+
"description": "A control that starts an action. Styled with a standard border, adapting to the button’s surroundings.\n---\n\n```ts\ninterface BorderedButtonSignature {\n Declaration: '<button is=\"bordered-button\"></button>'\n\n Attributes: {\n role: 'destructive' | 'confirm' // A value that describes the purpose of a button\n 'title-key': string\n }\n\n Slots: {\n overlay: HTMLElement[]\n }\n}\n\nclass BorderedButton extends HTMLButtonElement<BorderedButtonSignature> {}\n\n```\n\n### **Examples:**\n**Creating a bordered button:**\n```html\n<button is=\"bordered-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```\n"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"name": "bordered-prominent-button",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"name": "title-key"
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
|
-
"description": "A control that starts an action. Styled with a prominent border, adapting to the button’s surroundings.\n---\n\n
|
|
76
|
+
"description": "A control that starts an action. Styled with a prominent border, adapting to the button’s surroundings.\n---\n\n```ts\ninterface BorderedProminentButtonSignature {\n Declaration: '<button is=\"bordered-prominent-button\"></button>'\n\n Attributes: {\n role: 'destructive' | 'confirm' // A value that describes the purpose of a button\n 'title-key': string\n }\n\n Slots: {\n overlay: HTMLElement[]\n }\n}\n\nclass BorderedProminentButton extends HTMLButtonElement<BorderedProminentButtonSignature> {}\n\n```\n\n### **Examples:**\n**Creating a prominent bordered button:**\n```html\n<button is=\"bordered-prominent-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```\n"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"name": "borderless-button",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"name": "title-key"
|
|
101
101
|
}
|
|
102
102
|
],
|
|
103
|
-
"description": "A control that starts an action. Styled without any borders.\n---\n\n
|
|
103
|
+
"description": "A control that starts an action. Styled without any borders.\n---\n\n```ts\ninterface BorderlessButtonSignature {\n Declaration: '<button is=\"borderless-button\"></button>'\n\n Attributes: {\n role: 'destructive' | 'confirm' // A value that describes the purpose of a button\n 'title-key': string\n }\n\n Slots: {\n overlay: HTMLElement[]\n }\n}\n\nclass BorderlessButton extends HTMLButtonElement<BorderlessButtonSignature> {}\n\n```\n\n### **Examples:**\n**Use the `is` attribute to style a `button` as a `borderless-button`:**\n```html\n<button is=\"borderless-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```\n"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"name": "color-scheme",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"name": "dark"
|
|
110
110
|
}
|
|
111
111
|
],
|
|
112
|
-
"description": ""
|
|
112
|
+
"description": "undefined\n\n```ts\ninterface ColorSchemeSignature {\n Declaration: '<color-scheme></color-scheme>'\n\n Attributes: {\n dark: string\n }\n}\n\nclass ColorScheme extends HTMLElement<ColorSchemeSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'color-scheme': ColorScheme\n }\n}\n\n```\n"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "confirmation-dialog",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"name": "anchor"
|
|
125
125
|
}
|
|
126
126
|
],
|
|
127
|
-
"description": "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?')`.\n
|
|
127
|
+
"description": "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?')`.\n---\n\n```ts\ninterface ConfirmationDialogSignature {\n Declaration: '<dialog is=\"confirmation-dialog\"></dialog>'\n\n Attributes: {\n anchor: string\n }\n}\n\nclass ConfirmationDialog extends HTMLDialogElement<ConfirmationDialogSignature> {}\n\n```\n"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"name": "content-unavailable",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"name": "search"
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
|
-
"description": "A message with a title and extra information that you show when part of your app can’t be used.\n---\n\n
|
|
142
|
+
"description": "A message with a title and extra information that you show when part of your app can’t be used.\n---\n\n```ts\ninterface ContentUnavailableSignature {\n Declaration: '<content-unavailable></content-unavailable>'\n\n Attributes: {\n search: string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n description: HTMLElement[]\n actions: HTMLElement[]\n }\n}\n\nclass ContentUnavailable extends HTMLElement<ContentUnavailableSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'content-unavailable': ContentUnavailable\n }\n}\n\n```\n\n### **Examples:**\n**Example:**\n```html\n<content-unavailable search></content-unavailable>\n\n```\n**Example:**\n```html\n<content-unavailable search=\"foo\"></content-unavailable>\n\n```\n**Example:**\n```html\n<content-unavailable padding>\n <label-view title=\"No Mail\">\n <i class=\"ph ph-tray\" slot=\"icon\" foreground=\"secondary\"></i>\n </label-view>\n <label-view\n title=\"New mails you receive will appear here.\"\n foreground=\"secondary\"\n slot=\"description\"\n ></label-view>\n <button is=\"borderless-button\" type=\"button\" tabindex=\"0\" slot=\"actions\">\n <label-view title=\"Switch Account\"></label-view>\n </button>\n</content-unavailable>\n\n```\n**Example:**\n```html\n<content-unavailable padding>\n <label-view title=\"No Mail\">\n <svg slot=\"icon\" foreground=\"secondary\" ...>...</svg>\n </label-view>\n <label-view\n title=\"New mails you receive will appear here.\"\n foreground=\"secondary\"\n slot=\"description\"\n ></label-view>\n <button is=\"borderless-button\" type=\"button\" tabindex=\"0\" slot=\"actions\">\n <label-view title=\"Switch Account\"></label-view>\n </button>\n</content-unavailable>\n\n```\n"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"name": "date-picker",
|
|
@@ -167,12 +167,7 @@
|
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
"name": "required",
|
|
170
|
-
"description": "Value Type:
|
|
171
|
-
"values": [
|
|
172
|
-
{
|
|
173
|
-
"name": "boolean"
|
|
174
|
-
}
|
|
175
|
-
]
|
|
170
|
+
"description": "Value Type: boolean"
|
|
176
171
|
},
|
|
177
172
|
{
|
|
178
173
|
"name": "prompt"
|
|
@@ -194,12 +189,7 @@
|
|
|
194
189
|
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled"
|
|
195
190
|
}
|
|
196
191
|
],
|
|
197
|
-
"description": "Value Type:
|
|
198
|
-
"values": [
|
|
199
|
-
{
|
|
200
|
-
"name": "boolean"
|
|
201
|
-
}
|
|
202
|
-
]
|
|
192
|
+
"description": "Value Type: boolean"
|
|
203
193
|
},
|
|
204
194
|
{
|
|
205
195
|
"name": "minimum"
|
|
@@ -208,7 +198,7 @@
|
|
|
208
198
|
"name": "maximum"
|
|
209
199
|
}
|
|
210
200
|
],
|
|
211
|
-
"description": "A control that selects an absolute date.\n---\n\n
|
|
201
|
+
"description": "A control that selects an absolute date.\n---\n\n```ts\ninterface DatePickerSignature {\n Declaration: '<date-picker></date-picker>'\n\n Attributes: {\n 'date-picker-style': 'graphical' | 'field' | 'automatic' // The style of this element\n required: boolean\n prompt: string\n label: string\n name: string\n selection: string\n disabled: boolean\n minimum: string\n maximum: string\n }\n}\n\nclass DatePicker extends HTMLElement<DatePickerSignature> {\n static formAssociated = true\n\n readonly template: DocumentFragment\n readonly datePickerStyle: 'graphical' | 'field' | 'automatic'\n readonly name: string // Form participation property\n readonly value: { year: string; month: string; day: string }\n readonly valueAsDate: Date | null // Returns the value as a Date object.\n readonly minimum: { year: string; month: string; day: string } | null\n readonly maximum: { year: string; month: string; day: string } | null\n\n setValidity(): void\n setCustomValidity(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'date-picker': DatePicker\n }\n}\n\n```\n"
|
|
212
202
|
},
|
|
213
203
|
{
|
|
214
204
|
"name": "disclosure-group",
|
|
@@ -221,19 +211,14 @@
|
|
|
221
211
|
"attributes": [
|
|
222
212
|
{
|
|
223
213
|
"name": "open",
|
|
224
|
-
"description": "Value Type:
|
|
225
|
-
"values": [
|
|
226
|
-
{
|
|
227
|
-
"name": "boolean"
|
|
228
|
-
}
|
|
229
|
-
]
|
|
214
|
+
"description": "Value Type: boolean\nDescription: The status of this element"
|
|
230
215
|
}
|
|
231
216
|
],
|
|
232
|
-
"description": "A view that shows or hides another view when the user opens or closes it.\n---\n\n
|
|
217
|
+
"description": "A view that shows or hides another view when the user opens or closes it.\n---\n\n```ts\ninterface DisclosureGroupSignature {\n Declaration: '<details is=\"disclosure-group\"></details>'\n\n Attributes: {\n open: boolean // The status of this element\n }\n\n Events: {\n 'is-expanded': CustomEvent\n 'is-collapsed': CustomEvent\n }\n}\n\nclass DisclosureGroup extends HTMLDetailsElement<DisclosureGroupSignature> {}\n\n```\n\n### **Examples:**\n**Example:**\n```html\n<details is=\"disclosure-group\">\n <summary><label-view title=\"Items\"></label-view></summary>\n <label-view title=\"Item 1\"></label-view>\n <label-view title=\"Item 2\"></label-view>\n <details is=\"disclosure-group\">\n <summary><label-view title=\"Sub-items\"></label-view></summary>\n <label-view title=\"Sub-item 1\"></label-view>\n </details>\n</details>\n\n```\n"
|
|
233
218
|
},
|
|
234
219
|
{
|
|
235
220
|
"name": "fine-tooltip",
|
|
236
|
-
"description": ""
|
|
221
|
+
"description": "undefined\n\n```ts\ninterface FineTooltipSignature {\n Declaration: '<fine-tooltip></fine-tooltip>'\n}\n\nclass FineTooltip extends HTMLElement<FineTooltipSignature> {\n hidePopover(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'fine-tooltip': FineTooltip\n }\n}\n\n```\n"
|
|
237
222
|
},
|
|
238
223
|
{
|
|
239
224
|
"name": "form-view",
|
|
@@ -254,7 +239,7 @@
|
|
|
254
239
|
]
|
|
255
240
|
}
|
|
256
241
|
],
|
|
257
|
-
"description": "A container view that groups controls together for entering data, like a settings screen.\n
|
|
242
|
+
"description": "A container view that groups controls together for entering data, like a settings screen.\n---\n\n```ts\ninterface FormViewSignature {\n Declaration: '<form is=\"form-view\"></form>'\n\n Attributes: {\n 'navigation-link-indicator-visibility'?: 'hidden' // Hides accessories like right-arrow-chevron on NavigationLink buttons inside.\n }\n}\n\nclass FormView extends HTMLFormElement<FormViewSignature> {}\n\n```\n"
|
|
258
243
|
},
|
|
259
244
|
{
|
|
260
245
|
"name": "glass-button",
|
|
@@ -281,7 +266,7 @@
|
|
|
281
266
|
"name": "title-key"
|
|
282
267
|
}
|
|
283
268
|
],
|
|
284
|
-
"description": "A control that starts an action. Styled with a glass border, adapting to the button’s surroundings.\n---\n\n
|
|
269
|
+
"description": "A control that starts an action. Styled with a glass border, adapting to the button’s surroundings.\n---\n\n```ts\ninterface GlassButtonSignature {\n Declaration: '<button is=\"glass-button\"></button>'\n\n Attributes: {\n role: 'destructive' | 'confirm' // A value that describes the purpose of a button\n 'title-key': string\n }\n\n Slots: {\n overlay: HTMLElement[]\n }\n}\n\nclass GlassButton extends HTMLButtonElement<GlassButtonSignature> {}\n\n```\n\n### **Examples:**\n**Creating a glass button:**\n```html\n<button is=\"glass-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```\n"
|
|
285
270
|
},
|
|
286
271
|
{
|
|
287
272
|
"name": "glass-prominent-button",
|
|
@@ -308,7 +293,7 @@
|
|
|
308
293
|
"name": "title-key"
|
|
309
294
|
}
|
|
310
295
|
],
|
|
311
|
-
"description": "A control that starts an action. Styled with a prominent glass border, adapting to the button’s surroundings.\n---\n\n
|
|
296
|
+
"description": "A control that starts an action. Styled with a prominent glass border, adapting to the button’s surroundings.\n---\n\n```ts\ninterface GlassProminentButtonSignature {\n Declaration: '<button is=\"glass-prominent-button\"></button>'\n\n Attributes: {\n role: 'destructive' | 'confirm' // A value that describes the purpose of a button\n 'title-key': string\n }\n\n Slots: {\n overlay: HTMLElement[]\n }\n}\n\nclass GlassProminentButton extends HTMLButtonElement<GlassProminentButtonSignature> {}\n\n```\n\n### **Examples:**\n**Creating a prominent glass button:**\n```html\n<button is=\"glass-prominent-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```\n"
|
|
312
297
|
},
|
|
313
298
|
{
|
|
314
299
|
"name": "h-stack",
|
|
@@ -345,7 +330,7 @@
|
|
|
345
330
|
"valueSet": "inlinePlacementSet"
|
|
346
331
|
}
|
|
347
332
|
],
|
|
348
|
-
"description": "A view that arranges its children side by side.\n
|
|
333
|
+
"description": "A view that arranges its children side by side.\n---\n\n```ts\ninterface HStackSignature {\n Declaration: '<h-stack></h-stack>'\n\n Attributes: {\n template?: Template // The main-axis grid template\n spacing?: Spacing // The gap between the primary axis\n alignment?: blockSet // The cross-axis alignment\n distribution?: inlineSet // The main-axis alignment\n placement?: inlinePlacementSet // The main-axis alignment\n }\n}\n\nclass HStack extends HTMLElement<HStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'h-stack': HStack\n }\n}\n\n```\n"
|
|
349
334
|
},
|
|
350
335
|
{
|
|
351
336
|
"name": "image-view",
|
|
@@ -363,7 +348,7 @@
|
|
|
363
348
|
"name": "system-weight"
|
|
364
349
|
}
|
|
365
350
|
],
|
|
366
|
-
"description": "A view that displays an image.\n
|
|
351
|
+
"description": "A view that displays an image.\n---\n\n```ts\ninterface ImageViewSignature {\n Declaration: '<image-view></image-view>'\n\n Attributes: {\n 'system-name': string\n 'system-weight': string\n }\n}\n\nclass ImageView extends HTMLElement<ImageViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'image-view': ImageView\n }\n}\n\n```\n"
|
|
367
352
|
},
|
|
368
353
|
{
|
|
369
354
|
"name": "label-view",
|
|
@@ -390,15 +375,10 @@
|
|
|
390
375
|
},
|
|
391
376
|
{
|
|
392
377
|
"name": "truncation-mode",
|
|
393
|
-
"description": "Value Type:
|
|
394
|
-
"values": [
|
|
395
|
-
{
|
|
396
|
-
"name": "tail"
|
|
397
|
-
}
|
|
398
|
-
]
|
|
378
|
+
"description": "Value Type: \"tail\""
|
|
399
379
|
}
|
|
400
380
|
],
|
|
401
|
-
"description": "A view that labels items with an icon and a title.\n---\n\n
|
|
381
|
+
"description": "A view that labels items with an icon and a title.\n---\n\n```ts\ninterface LabelViewSignature {\n Declaration: '<label-view></label-view>'\n\n Attributes: {\n font?: Font // Sets the default font for text in this view.\n 'system-image': string\n title: string\n 'line-limit': string\n 'truncation-mode': 'tail'\n }\n\n Slots: {\n default: HTMLElement[] // Any children without a `slot` attribute are placed in the title block.\n icon: HTMLElement[] // Use the `slot=\"icon\"` attribute to place childen in the icon block.\n }\n\n CSSProperties: {\n '--label-gap'?: string // The gap between the icon and the title.\n '--label-image-size'?: string // The size of the icon.\n '--label-padding-inline'?: string // The padding inline of the label.\n }\n}\n\nclass LabelView extends HTMLElement<LabelViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'label-view': LabelView\n }\n}\n\n```\n\n### **Examples:**\n**Creating a label using a `span` element:**\n```html\n<label-view><span>Hello world!</span></label-view>\n\n```\n**Creating a label using the `title` attribute:**\n```html\n<label-view title=\"Hello world!\"></label-view>\n\n```\n**Creating a label with an icon and a title using the `system-image` attribute:**\n```html\n<label-view system-image=\"hand-waving\"><span>Hello world!</span></label-view>\n\n```\n**Creating a label with an icon and a title using the `icon` slot:**\n```html\n<label-view>\n <i slot=\"icon\" class=\"ph ph-duotone ph-hand-waving\"></i>\n <span>Hello world!</span>\n</label-view>\n\n```\n"
|
|
402
382
|
},
|
|
403
383
|
{
|
|
404
384
|
"name": "labeled-content",
|
|
@@ -437,7 +417,7 @@
|
|
|
437
417
|
"name": "format"
|
|
438
418
|
}
|
|
439
419
|
],
|
|
440
|
-
"description": "A container view that pairs a label with a value.\n---\n\n
|
|
420
|
+
"description": "A container view that pairs a label with a value.\n---\n\n```ts\ninterface LabeledContentSignature {\n Declaration: '<labeled-content></labeled-content>'\n\n Attributes: {\n value: string\n label: string\n header: string\n footer: string\n 'labeled-content-style': 'vertical' | 'horizontal'\n format: string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n label: HTMLElement[] // Use the `slot=\"label\"` attribute to place childen in the label block.\n header: HTMLElement[]\n footer: HTMLElement[]\n }\n\n Parts: {\n 'labeled-content-container': never\n 'labeled-content-stack': never\n 'labeled-content-label-stack': never\n 'labeled-content-value-stack': never\n }\n}\n\nclass LabeledContent extends HTMLElement<LabeledContentSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'labeled-content': LabeledContent\n }\n}\n\n```\n"
|
|
441
421
|
},
|
|
442
422
|
{
|
|
443
423
|
"name": "list-view",
|
|
@@ -458,7 +438,7 @@
|
|
|
458
438
|
]
|
|
459
439
|
}
|
|
460
440
|
],
|
|
461
|
-
"description": "A container view that arranges rows of data in a single column, optionally letting the user select one or more of them.\n
|
|
441
|
+
"description": "A container view that arranges rows of data in a single column, optionally letting the user select one or more of them.\n---\n\n```ts\ninterface ListViewSignature {\n Declaration: '<list-view></list-view>'\n\n Attributes: {\n 'navigation-link-indicator-visibility'?: 'hidden' // Hides accessories like right-arrow-chevron on NavigationLink buttons inside.\n }\n}\n\nclass ListView extends HTMLElement<ListViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'list-view': ListView\n }\n}\n\n```\n"
|
|
462
442
|
},
|
|
463
443
|
{
|
|
464
444
|
"name": "menu-view",
|
|
@@ -479,7 +459,7 @@
|
|
|
479
459
|
"name": "label"
|
|
480
460
|
}
|
|
481
461
|
],
|
|
482
|
-
"description": "A control that opens a menu of actions.\n---\n\n
|
|
462
|
+
"description": "A control that opens a menu of actions.\n---\n\n```ts\ninterface MenuViewSignature {\n Declaration: '<menu-view></menu-view>'\n\n Attributes: {\n open: string\n closing: string\n label: string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n label: HTMLElement[]\n }\n}\n\nclass MenuView extends HTMLElement<MenuViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'menu-view': MenuView\n }\n}\n\n```\n"
|
|
483
463
|
},
|
|
484
464
|
{
|
|
485
465
|
"name": "navigation-large-title",
|
|
@@ -501,24 +481,14 @@
|
|
|
501
481
|
},
|
|
502
482
|
{
|
|
503
483
|
"name": "padding",
|
|
504
|
-
"description": "Value Type:
|
|
505
|
-
"values": [
|
|
506
|
-
{
|
|
507
|
-
"name": "boolean"
|
|
508
|
-
}
|
|
509
|
-
]
|
|
484
|
+
"description": "Value Type: boolean"
|
|
510
485
|
},
|
|
511
486
|
{
|
|
512
487
|
"name": "navigation-bar-auto-hide",
|
|
513
|
-
"description": "Value Type:
|
|
514
|
-
"values": [
|
|
515
|
-
{
|
|
516
|
-
"name": "boolean"
|
|
517
|
-
}
|
|
518
|
-
]
|
|
488
|
+
"description": "Value Type: boolean"
|
|
519
489
|
}
|
|
520
490
|
],
|
|
521
|
-
"description": ""
|
|
491
|
+
"description": "undefined\n\n```ts\ninterface NavigationLargeTitleSignature {\n Declaration: '<navigation-large-title></navigation-large-title>'\n\n Attributes: {\n 'background-style'?: 'grouped'\n padding?: boolean\n 'navigation-bar-auto-hide'?: boolean\n }\n}\n\nclass NavigationLargeTitle extends HTMLElement<NavigationLargeTitleSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-large-title': NavigationLargeTitle\n }\n}\n\n```\n"
|
|
522
492
|
},
|
|
523
493
|
{
|
|
524
494
|
"name": "navigation-split-view",
|
|
@@ -528,7 +498,7 @@
|
|
|
528
498
|
"url": "https://swiftwc.github.io/ui/web-components/navigation-split-view"
|
|
529
499
|
}
|
|
530
500
|
],
|
|
531
|
-
"description": "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.\n
|
|
501
|
+
"description": "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.\n---\n\n```ts\ninterface NavigationSplitViewSignature {\n Declaration: '<navigation-split-view></navigation-split-view>'\n}\n\nclass NavigationSplitView extends HTMLElement<NavigationSplitViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-split-view': NavigationSplitView\n }\n}\n\n```\n"
|
|
532
502
|
},
|
|
533
503
|
{
|
|
534
504
|
"name": "navigation-stack",
|
|
@@ -538,7 +508,7 @@
|
|
|
538
508
|
"url": "https://swiftwc.github.io/ui/web-components/navigation-stack"
|
|
539
509
|
}
|
|
540
510
|
],
|
|
541
|
-
"description": "A container view that shows a main screen and lets the user open other screens on top of it.\n
|
|
511
|
+
"description": "A container view that shows a main screen and lets the user open other screens on top of it.\n---\n\n```ts\ninterface NavigationStackSignature {\n Declaration: '<navigation-stack></navigation-stack>'\n}\n\nclass NavigationStack extends HTMLElement<NavigationStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-stack': NavigationStack\n }\n}\n\n```\n"
|
|
542
512
|
},
|
|
543
513
|
{
|
|
544
514
|
"name": "navigation-title",
|
|
@@ -551,12 +521,7 @@
|
|
|
551
521
|
"attributes": [
|
|
552
522
|
{
|
|
553
523
|
"name": "padding",
|
|
554
|
-
"description": "Value Type:
|
|
555
|
-
"values": [
|
|
556
|
-
{
|
|
557
|
-
"name": "boolean"
|
|
558
|
-
}
|
|
559
|
-
]
|
|
524
|
+
"description": "Value Type: boolean"
|
|
560
525
|
},
|
|
561
526
|
{
|
|
562
527
|
"name": "value"
|
|
@@ -571,7 +536,7 @@
|
|
|
571
536
|
"name": "system-image-weight"
|
|
572
537
|
}
|
|
573
538
|
],
|
|
574
|
-
"description": "A container view.\n
|
|
539
|
+
"description": "A container view.\n---\n\n```ts\ninterface NavigationTitleSignature {\n Declaration: '<navigation-title></navigation-title>'\n\n Attributes: {\n padding?: boolean\n value: string\n subtitle: string\n 'system-image': string\n 'system-image-weight': string\n }\n}\n\nclass NavigationTitle extends HTMLElement<NavigationTitleSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'navigation-title': NavigationTitle\n }\n}\n\n```\n"
|
|
575
540
|
},
|
|
576
541
|
{
|
|
577
542
|
"name": "picker-view",
|
|
@@ -605,12 +570,7 @@
|
|
|
605
570
|
},
|
|
606
571
|
{
|
|
607
572
|
"name": "help",
|
|
608
|
-
"description": "
|
|
609
|
-
"values": [
|
|
610
|
-
{
|
|
611
|
-
"name": "string"
|
|
612
|
-
}
|
|
613
|
-
]
|
|
573
|
+
"description": "\nDescription: Adds a help tooltip to the trigger of the picker, if style supports one"
|
|
614
574
|
},
|
|
615
575
|
{
|
|
616
576
|
"name": "dictionary",
|
|
@@ -637,11 +597,11 @@
|
|
|
637
597
|
]
|
|
638
598
|
}
|
|
639
599
|
],
|
|
640
|
-
"description": "A control that selects one value from a set of options.\n---\n\n
|
|
600
|
+
"description": "A control that selects one value from a set of options.\n---\n\n```ts\ninterface PickerViewSignature {\n Declaration: '<picker-view></picker-view>'\n\n Attributes: {\n 'picker-style'?:\n | 'menu'\n | 'inline'\n | 'navigation-link'\n | 'sheet'\n | 'automatic'\n dictionary?: 'DictEntry[]' // Renders all options using this array\n 'label-value-placement'?: 'vertical' | 'horizontal' | 'auto'\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n label: HTMLElement[]\n list: HTMLElement[]\n 'validity-options': HTMLElement[]\n }\n}\n\nclass PickerView extends HTMLElement<PickerViewSignature> {\n static formAssociated = true\n\n selection: string\n readonly template: DocumentFragment\n readonly pickerStyle:\n | 'automatic'\n | 'menu'\n | 'inline'\n | 'navigation-link'\n | 'sheet'\n readonly name: string // Form participation property\n\n setValidity(): void\n setCustomValidity(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'picker-view': PickerView\n }\n}\n\n```\n"
|
|
641
601
|
},
|
|
642
602
|
{
|
|
643
603
|
"name": "plain-button",
|
|
644
|
-
"description": ""
|
|
604
|
+
"description": "undefined\n\n```ts\ninterface PlainButtonSignature {\n Declaration: '<button is=\"plain-button\"></button>'\n}\n\nclass PlainButton extends HTMLButtonElement<PlainButtonSignature> {}\n\n```\n"
|
|
645
605
|
},
|
|
646
606
|
{
|
|
647
607
|
"name": "progress-view",
|
|
@@ -662,11 +622,11 @@
|
|
|
662
622
|
"name": "value"
|
|
663
623
|
}
|
|
664
624
|
],
|
|
665
|
-
"description": "A view that shows how far along a task is.\n---\n\n
|
|
625
|
+
"description": "A view that shows how far along a task is.\n---\n\n```ts\ninterface ProgressViewSignature {\n Declaration: '<progress-view></progress-view>'\n\n Attributes: {\n label: string\n 'current-value-label': string\n value: string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n 'current-value': HTMLElement[]\n }\n}\n\nclass ProgressView extends HTMLElement<ProgressViewSignature> {\n readonly progressViewStyle: 'circular' | 'linear'\n readonly template: DocumentFragment\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'progress-view': ProgressView\n }\n}\n\n```\n"
|
|
666
626
|
},
|
|
667
627
|
{
|
|
668
628
|
"name": "screen-view",
|
|
669
|
-
"description": ""
|
|
629
|
+
"description": "undefined\n\n```ts\ninterface ScreenViewSignature {\n Declaration: '<dialog is=\"screen-view\"></dialog>'\n}\n\nclass ScreenView extends HTMLDialogElement<ScreenViewSignature> {}\n\n```\n"
|
|
670
630
|
},
|
|
671
631
|
{
|
|
672
632
|
"name": "scroll-view-proxy",
|
|
@@ -676,7 +636,7 @@
|
|
|
676
636
|
"url": "https://swiftwc.github.io/ui/web-components/scroll-view-proxy"
|
|
677
637
|
}
|
|
678
638
|
],
|
|
679
|
-
"description": "A wrapper for {hv}-stacks\n
|
|
639
|
+
"description": "A wrapper for {hv}-stacks\n---\n\n```ts\ninterface ScrollViewProxySignature {\n Declaration: '<scroll-view-proxy></scroll-view-proxy>'\n}\n\nclass ScrollViewProxy extends HTMLElement<ScrollViewProxySignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'scroll-view-proxy': ScrollViewProxy\n }\n}\n\n```\n"
|
|
680
640
|
},
|
|
681
641
|
{
|
|
682
642
|
"name": "scroll-view",
|
|
@@ -704,11 +664,11 @@
|
|
|
704
664
|
"name": "navigation-bar-title-display-mode"
|
|
705
665
|
}
|
|
706
666
|
],
|
|
707
|
-
"description": "A view that scrolls its content when it doesn’t fit the screen.\n---\n\n
|
|
667
|
+
"description": "A view that scrolls its content when it doesn’t fit the screen.\n---\n\n```ts\ninterface ScrollViewSignature {\n Declaration: '<scroll-view></scroll-view>'\n\n Attributes: {\n 'navigation-title': string // 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>`\n 'navigation-inline-title': string\n 'navigation-inline-subtitle': string\n 'navigation-icon': string\n 'navigation-bar-title-display-mode': string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n 'top-bar-principal': HTMLElement[]\n 'bottom-bar-principal': HTMLElement[]\n }\n}\n\nclass ScrollView extends HTMLElement<ScrollViewSignature> {\n centerScrollToElement(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'scroll-view': ScrollView\n }\n}\n\n```\n"
|
|
708
668
|
},
|
|
709
669
|
{
|
|
710
670
|
"name": "search-view",
|
|
711
|
-
"description": ""
|
|
671
|
+
"description": "undefined\n\n```ts\ninterface SearchViewSignature {\n Declaration: '<search-view></search-view>'\n}\n\nclass SearchView extends HTMLInputElement<SearchViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'search-view': SearchView\n }\n}\n\n```\n"
|
|
712
672
|
},
|
|
713
673
|
{
|
|
714
674
|
"name": "section-view",
|
|
@@ -726,7 +686,7 @@
|
|
|
726
686
|
"name": "footer"
|
|
727
687
|
}
|
|
728
688
|
],
|
|
729
|
-
"description": "A container view that groups related content together.\n---\n\n
|
|
689
|
+
"description": "A container view that groups related content together.\n---\n\n```ts\ninterface SectionViewSignature {\n Declaration: '<section-view></section-view>'\n\n Attributes: {\n header: string\n footer: string\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n header: HTMLElement[]\n footer: HTMLElement[]\n }\n}\n\nclass SectionView extends HTMLElement<SectionViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'section-view': SectionView\n }\n}\n\n```\n"
|
|
730
690
|
},
|
|
731
691
|
{
|
|
732
692
|
"name": "sheet-view",
|
|
@@ -736,7 +696,7 @@
|
|
|
736
696
|
"url": "https://swiftwc.github.io/ui/web-components/sheet-view"
|
|
737
697
|
}
|
|
738
698
|
],
|
|
739
|
-
"description": "A dialog that slides up over the current screen.\n
|
|
699
|
+
"description": "A dialog that slides up over the current screen.\n---\n\n```ts\ninterface SheetViewSignature {\n Declaration: '<dialog is=\"sheet-view\"></dialog>'\n}\n\nclass SheetView extends HTMLDialogElement<SheetViewSignature> {}\n\n```\n"
|
|
740
700
|
},
|
|
741
701
|
{
|
|
742
702
|
"name": "sidebar-toggle",
|
|
@@ -746,7 +706,7 @@
|
|
|
746
706
|
"url": "https://swiftwc.github.io/ui/web-components/sidebar-toggle"
|
|
747
707
|
}
|
|
748
708
|
],
|
|
749
|
-
"description": "A control that shows or hides the sidebar view.\n
|
|
709
|
+
"description": "A control that shows or hides the sidebar view.\n---\n\n```ts\ninterface SidebarToggleSignature {\n Declaration: '<sidebar-toggle></sidebar-toggle>'\n}\n\nclass SidebarToggle extends HTMLElement<SidebarToggleSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sidebar-toggle': SidebarToggle\n }\n}\n\n```\n"
|
|
750
710
|
},
|
|
751
711
|
{
|
|
752
712
|
"name": "sidebar-view",
|
|
@@ -756,11 +716,11 @@
|
|
|
756
716
|
"url": "https://swiftwc.github.io/ui/web-components/sidebar-view"
|
|
757
717
|
}
|
|
758
718
|
],
|
|
759
|
-
"description": "A container view that arranges navigation destinations in a single column.\n
|
|
719
|
+
"description": "A container view that arranges navigation destinations in a single column.\n---\n\n```ts\ninterface SidebarViewSignature {\n Declaration: '<dialog is=\"sidebar-view\"></dialog>'\n}\n\nclass SidebarView extends HTMLDialogElement<SidebarViewSignature> {}\n\n```\n"
|
|
760
720
|
},
|
|
761
721
|
{
|
|
762
722
|
"name": "sticky-container",
|
|
763
|
-
"description": ""
|
|
723
|
+
"description": "undefined\n\n```ts\ninterface StickyContainerSignature {\n Declaration: '<sticky-container></sticky-container>'\n}\n\nclass StickyContainer extends HTMLElement<StickyContainerSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sticky-container': StickyContainer\n }\n}\n\n```\n"
|
|
764
724
|
},
|
|
765
725
|
{
|
|
766
726
|
"name": "tab-bar",
|
|
@@ -770,7 +730,7 @@
|
|
|
770
730
|
"url": "https://swiftwc.github.io/ui/web-components/tab-bar"
|
|
771
731
|
}
|
|
772
732
|
],
|
|
773
|
-
"description": "A container view that groups tab-items together along the top or bottom of the screen.\n
|
|
733
|
+
"description": "A container view that groups tab-items together along the top or bottom of the screen.\n---\n\n```ts\ninterface TabBarSignature {\n Declaration: '<dialog is=\"tab-bar\"></dialog>'\n}\n\nclass TabBar extends HTMLDialogElement<TabBarSignature> {}\n\n```\n"
|
|
774
734
|
},
|
|
775
735
|
{
|
|
776
736
|
"name": "tab-item",
|
|
@@ -780,7 +740,7 @@
|
|
|
780
740
|
"url": "https://swiftwc.github.io/ui/web-components/tab-item"
|
|
781
741
|
}
|
|
782
742
|
],
|
|
783
|
-
"description": "A control that switches the tab view to this tab.\n
|
|
743
|
+
"description": "A control that switches the tab view to this tab.\n---\n\n```ts\ninterface TabItemSignature {\n Declaration: '<button is=\"tab-item\"></button>'\n}\n\nclass TabItem extends HTMLButtonElement<TabItemSignature> {}\n\n```\n"
|
|
784
744
|
},
|
|
785
745
|
{
|
|
786
746
|
"name": "tab-view",
|
|
@@ -790,7 +750,7 @@
|
|
|
790
750
|
"url": "https://swiftwc.github.io/ui/web-components/tab-view"
|
|
791
751
|
}
|
|
792
752
|
],
|
|
793
|
-
"description": "A container view that switches between screens using tabs.\n---\n\n
|
|
753
|
+
"description": "A container view that switches between screens using tabs.\n---\n\n```ts\ninterface TabViewSignature {\n Declaration: '<tab-view></tab-view>'\n\n Events: {\n tabshow: CustomEvent // A Tab is shown\n tabhide: CustomEvent // A Tab is hidden\n 'tab-view:toggle': CustomEvent\n 'tab-view:adaptable-tab-bar-placement-change': CustomEvent\n }\n\n CSSProperties: {\n '--adaptable-tab-bar-placement'?: string\n }\n}\n\nclass TabView extends HTMLElement<TabViewSignature> {\n readonly tabBarPlacement:\n | 'bottom-bar'\n | 'ornament'\n | 'sidebar'\n | 'top-bar'\n | undefined\n readonly moreTab: NavigationStack | null\n selectedTab: (NavigationSplitView | NavigationStack)[]\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tab-view': TabView\n }\n}\n\n```\n"
|
|
794
754
|
},
|
|
795
755
|
{
|
|
796
756
|
"name": "table-view",
|
|
@@ -820,7 +780,7 @@
|
|
|
820
780
|
]
|
|
821
781
|
}
|
|
822
782
|
],
|
|
823
|
-
"description": "A container view that arranges data in rows and columns, optionally letting the user select one or more of them.\n---\n\n
|
|
783
|
+
"description": "A container view that arranges data in rows and columns, optionally letting the user select one or more of them.\n---\n\n```ts\ninterface TableViewSignature {\n Declaration: '<table-view></table-view>'\n\n Attributes: {\n 'preferred-compact-template'?:\n | 'title:trailing:subtitle'\n | 'trailing:title:subtitle'\n | 'title:subtitle:trailing'\n | '*' // Sets the template areas when the table is in compact mode\n }\n\n Slots: {\n default: HTMLElement[] // The default slot.\n 'header-leading': HTMLElement[]\n 'header-principal': HTMLElement[]\n 'header-trailing': HTMLElement[]\n column: HTMLElement[]\n 'footer-leading': HTMLElement[]\n 'footer-principal': HTMLElement[]\n 'footer-trailing': HTMLElement[]\n }\n}\n\nclass TableView extends HTMLElement<TableViewSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'table-view': TableView\n }\n}\n\n```\n"
|
|
824
784
|
},
|
|
825
785
|
{
|
|
826
786
|
"name": "text-field",
|
|
@@ -860,12 +820,7 @@
|
|
|
860
820
|
},
|
|
861
821
|
{
|
|
862
822
|
"name": "disable-autocorrection",
|
|
863
|
-
"description": "Value Type:
|
|
864
|
-
"values": [
|
|
865
|
-
{
|
|
866
|
-
"name": "boolean"
|
|
867
|
-
}
|
|
868
|
-
]
|
|
823
|
+
"description": "Value Type: boolean"
|
|
869
824
|
},
|
|
870
825
|
{
|
|
871
826
|
"name": "keyboard-type",
|
|
@@ -884,12 +839,7 @@
|
|
|
884
839
|
},
|
|
885
840
|
{
|
|
886
841
|
"name": "required",
|
|
887
|
-
"description": "Value Type:
|
|
888
|
-
"values": [
|
|
889
|
-
{
|
|
890
|
-
"name": "boolean"
|
|
891
|
-
}
|
|
892
|
-
]
|
|
842
|
+
"description": "Value Type: boolean"
|
|
893
843
|
},
|
|
894
844
|
{
|
|
895
845
|
"name": "disabled",
|
|
@@ -899,15 +849,10 @@
|
|
|
899
849
|
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled"
|
|
900
850
|
}
|
|
901
851
|
],
|
|
902
|
-
"description": "Value Type:
|
|
903
|
-
"values": [
|
|
904
|
-
{
|
|
905
|
-
"name": "boolean"
|
|
906
|
-
}
|
|
907
|
-
]
|
|
852
|
+
"description": "Value Type: boolean"
|
|
908
853
|
}
|
|
909
854
|
],
|
|
910
|
-
"description": "A control that displays an editable text area.\n---\n\n
|
|
855
|
+
"description": "A control that displays an editable text area.\n---\n\n```ts\ninterface TextFieldSignature {\n Declaration: '<text-field></text-field>'\n\n Attributes: {\n prompt: string\n minimum: string\n maximum: string\n 'min-length': string\n 'max-length': string\n label: string\n name: string\n text: string\n 'text-input-autocapitalization': string\n 'disable-autocorrection': boolean\n 'keyboard-type': 'decimal-pad' | 'number-pad' | 'default'\n required: boolean\n disabled: boolean\n }\n\n Slots: {\n label: HTMLElement[]\n 'validity-options': HTMLElement[]\n }\n\n Events: {\n commit: CustomEvent<{ detail: { text: string } }> // Triggered when user interacts with the input area\n }\n}\n\nclass TextField extends HTMLElement<TextFieldSignature> {\n static formAssociated = true\n\n readonly keyboardType: 'decimal-pad' | 'number-pad' | 'default'\n text: string\n readonly name: string // Form participation property\n readonly value: string\n readonly valueAsNumber: number | ''\n readonly negativeNumbersAllowed: boolean\n\n setValidity(): void\n setCustomValidity(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'text-field': TextField\n }\n}\n\n```\n"
|
|
911
856
|
},
|
|
912
857
|
{
|
|
913
858
|
"name": "toggle-view",
|
|
@@ -928,13 +873,15 @@
|
|
|
928
873
|
"name": "value"
|
|
929
874
|
},
|
|
930
875
|
{
|
|
931
|
-
"name": "is-on"
|
|
876
|
+
"name": "is-on",
|
|
877
|
+
"description": "Value Type: boolean"
|
|
932
878
|
},
|
|
933
879
|
{
|
|
934
880
|
"name": "keyboard-type"
|
|
935
881
|
},
|
|
936
882
|
{
|
|
937
|
-
"name": "required"
|
|
883
|
+
"name": "required",
|
|
884
|
+
"description": "Value Type: boolean"
|
|
938
885
|
},
|
|
939
886
|
{
|
|
940
887
|
"name": "disabled",
|
|
@@ -943,10 +890,11 @@
|
|
|
943
890
|
"name": "MDN — disabled",
|
|
944
891
|
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled"
|
|
945
892
|
}
|
|
946
|
-
]
|
|
893
|
+
],
|
|
894
|
+
"description": "Value Type: boolean"
|
|
947
895
|
}
|
|
948
896
|
],
|
|
949
|
-
"description": "A control that switches between on and off states.\n---\n\n
|
|
897
|
+
"description": "A control that switches between on and off states.\n---\n\n```ts\ninterface ToggleViewSignature {\n Declaration: '<toggle-view></toggle-view>'\n\n Attributes: {\n label: string\n name: string\n value: string\n 'is-on': boolean\n 'keyboard-type': string\n required: boolean\n disabled: boolean\n }\n\n Slots: {\n label: HTMLElement[]\n 'validity-options': HTMLElement[]\n }\n\n Events: {\n 'toggle:change': CustomEvent // User toggled the control\n }\n}\n\nclass ToggleView extends HTMLElement<ToggleViewSignature> {\n static formAssociated = true\n\n readonly toggleStyle: 'button' | 'switch'\n isOn: boolean\n readonly name: string // Form participation property\n value: string | null\n\n setValidity(): void\n setCustomValidity(): void\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'toggle-view': ToggleView\n }\n}\n\n```\n"
|
|
950
898
|
},
|
|
951
899
|
{
|
|
952
900
|
"name": "tool-bar-item-group",
|
|
@@ -956,7 +904,7 @@
|
|
|
956
904
|
"url": "https://swiftwc.github.io/ui/web-components/tool-bar-item-group"
|
|
957
905
|
}
|
|
958
906
|
],
|
|
959
|
-
"description": "A container view that groups items together in the toolbar or navigation bar.\n
|
|
907
|
+
"description": "A container view that groups items together in the toolbar or navigation bar.\n---\n\n```ts\ninterface ToolBarItemGroupSignature {\n Declaration: '<tool-bar-item-group></tool-bar-item-group>'\n}\n\nclass ToolBarItemGroup extends HTMLElement<ToolBarItemGroupSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tool-bar-item-group': ToolBarItemGroup\n }\n}\n\n```\n"
|
|
960
908
|
},
|
|
961
909
|
{
|
|
962
910
|
"name": "tool-bar-item",
|
|
@@ -977,7 +925,7 @@
|
|
|
977
925
|
"name": "title-key"
|
|
978
926
|
}
|
|
979
927
|
],
|
|
980
|
-
"description": "A view placed in the toolbar or navigation bar.\n
|
|
928
|
+
"description": "A view placed in the toolbar or navigation bar.\n---\n\n```ts\ninterface ToolBarItemSignature {\n Declaration: '<tool-bar-item></tool-bar-item>'\n\n Attributes: {\n slot: string\n 'data-previous-slot': string\n 'title-key': string\n }\n}\n\nclass ToolBarItem extends HTMLElement<ToolBarItemSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tool-bar-item': ToolBarItem\n }\n}\n\n```\n"
|
|
981
929
|
},
|
|
982
930
|
{
|
|
983
931
|
"name": "tool-bar",
|
|
@@ -987,7 +935,7 @@
|
|
|
987
935
|
"url": "https://swiftwc.github.io/ui/web-components/tool-bar"
|
|
988
936
|
}
|
|
989
937
|
],
|
|
990
|
-
"description": "A list of items placed into the toolbar or navigation bar around your content.\n---\n\n
|
|
938
|
+
"description": "A list of items placed into the toolbar or navigation bar around your content.\n---\n\n```ts\ninterface ToolBarSignature {\n Declaration: '<tool-bar></tool-bar>'\n\n Slots: {\n 'cancellation-action': HTMLElement[] // 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\n 'primary-action': HTMLElement[] // 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\n 'confirmation-action': HTMLElement[] // 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\n 'destructive-action': HTMLElement[] // 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\n 'top-bar-leading': HTMLElement[] // Places the item in the leading edge of the top bar\n 'top-bar-principal': HTMLElement[] // Places the item in the middle of the top bar\n 'top-bar-trailing': HTMLElement[] // Places the item in the trailing edge of the top bar\n 'bottom-bar-leading': HTMLElement[] // Places the item in the leading edge of the bottom bar\n 'bottom-bar-principal': HTMLElement[] // Places the item in the middle of the bottom bar\n 'bottom-bar-trailing': HTMLElement[] // Places the item in the trailing edge of the bottom bar\n }\n}\n\nclass ToolBar extends HTMLElement<ToolBarSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'tool-bar': ToolBar\n }\n}\n\n```\n"
|
|
991
939
|
},
|
|
992
940
|
{
|
|
993
941
|
"name": "v-keyboard",
|
|
@@ -1008,7 +956,7 @@
|
|
|
1008
956
|
]
|
|
1009
957
|
}
|
|
1010
958
|
],
|
|
1011
|
-
"description": "Required component, used to handle the virtual keyboard on touch devices.\n
|
|
959
|
+
"description": "Required component, used to handle the virtual keyboard on touch devices.\n---\n\n```ts\ninterface VKeyboardSignature {\n Declaration: '<v-keyboard></v-keyboard>'\n\n Attributes: {\n 'system-font'?: 'Inter' // Prefers the \"Inter\" font family, if loaded.\n }\n}\n\nclass VKeyboard extends HTMLElement<VKeyboardSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'v-keyboard': VKeyboard\n }\n}\n\n```\n"
|
|
1012
960
|
},
|
|
1013
961
|
{
|
|
1014
962
|
"name": "v-stack",
|
|
@@ -1069,7 +1017,7 @@
|
|
|
1069
1017
|
"valueSet": "blockPlacementSet"
|
|
1070
1018
|
}
|
|
1071
1019
|
],
|
|
1072
|
-
"description": "A view that arranges its children one on top of the other.\n
|
|
1020
|
+
"description": "A view that arranges its children one on top of the other.\n---\n\n```ts\ninterface VStackSignature {\n Declaration: '<v-stack></v-stack>'\n\n Attributes: {\n distribution?:\n | 'leading'\n | 'leading fill'\n | 'center'\n | 'trailing'\n | 'fill'\n | 'space-between' // The distribution of cols\n template?: Template // The main-axis grid template\n spacing?: Spacing // The gap between the primary axis\n alignment?: inlineSet // The cross-axis alignment\n distribution?: blockSet // The main-axis alignment\n placement?: blockPlacementSet // The main-axis alignment\n }\n}\n\nclass VStack extends HTMLElement<VStackSignature> {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'v-stack': VStack\n }\n}\n\n```\n"
|
|
1073
1021
|
}
|
|
1074
1022
|
],
|
|
1075
1023
|
"globalAttributes": [
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type RawValue = string | number | boolean | null | undefined | RawValue[];
|
|
2
|
-
export declare class TrustedMarkup {
|
|
3
|
-
readonly value: string;
|
|
4
|
-
constructor(value: string);
|
|
5
|
-
toString(): string;
|
|
6
|
-
}
|
|
7
|
-
export default function (strings: TemplateStringsArray, ...values: (RawValue | TrustedMarkup)[]): TrustedMarkup;
|
|
8
|
-
export {};
|