@lo-tek/interfaces 0.37.0 → 0.39.0
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/CHANGELOG.md +160 -2
- package/README.md +4 -3
- package/agent/astro.md +1 -1
- package/agent/bundles.md +4 -2
- package/agent/datastar.md +48 -48
- package/agent/html.md +51 -51
- package/agent/react.md +6 -5
- package/agent/templates.md +49 -49
- package/core/lotek-core.wasm +0 -0
- package/core/lotek.wasm +0 -0
- package/dist/components/default-texts.d.ts +6 -0
- package/dist/components/default-texts.d.ts.map +1 -1
- package/dist/components/default-texts.js +6 -0
- package/dist/components/default-texts.js.map +1 -1
- package/dist/components/frame/dialog/lt-dialog.d.ts.map +1 -1
- package/dist/components/frame/dialog/lt-dialog.js +5 -2
- package/dist/components/frame/dialog/lt-dialog.js.map +1 -1
- package/dist/components/frame/error-summary/error-summary.d.ts +15 -2
- package/dist/components/frame/error-summary/error-summary.d.ts.map +1 -1
- package/dist/components/frame/error-summary/error-summary.js +33 -11
- package/dist/components/frame/error-summary/error-summary.js.map +1 -1
- package/dist/components/frame/error-summary/lt-error-summary.d.ts +11 -0
- package/dist/components/frame/error-summary/lt-error-summary.d.ts.map +1 -1
- package/dist/components/frame/error-summary/lt-error-summary.js +114 -8
- package/dist/components/frame/error-summary/lt-error-summary.js.map +1 -1
- package/dist/components/frame/field/lt-field.d.ts.map +1 -1
- package/dist/components/frame/field/lt-field.js +34 -14
- package/dist/components/frame/field/lt-field.js.map +1 -1
- package/dist/components/frame/popover/lt-popover.d.ts +6 -2
- package/dist/components/frame/popover/lt-popover.d.ts.map +1 -1
- package/dist/components/frame/popover/lt-popover.js +44 -14
- package/dist/components/frame/popover/lt-popover.js.map +1 -1
- package/dist/components/frame/session-timeout/lt-session-timeout.d.ts.map +1 -1
- package/dist/components/frame/session-timeout/lt-session-timeout.js +43 -6
- package/dist/components/frame/session-timeout/lt-session-timeout.js.map +1 -1
- package/dist/components/frame/suggestion/lt-suggestion.d.ts +8 -2
- package/dist/components/frame/suggestion/lt-suggestion.d.ts.map +1 -1
- package/dist/components/frame/suggestion/lt-suggestion.js +56 -37
- package/dist/components/frame/suggestion/lt-suggestion.js.map +1 -1
- package/dist/components/frame/tabs/lt-tabs.d.ts +32 -10
- package/dist/components/frame/tabs/lt-tabs.d.ts.map +1 -1
- package/dist/components/frame/tabs/lt-tabs.js +85 -21
- package/dist/components/frame/tabs/lt-tabs.js.map +1 -1
- package/dist/components/host-element.d.ts +52 -0
- package/dist/components/host-element.d.ts.map +1 -1
- package/dist/components/host-element.js +164 -1
- package/dist/components/host-element.js.map +1 -1
- package/dist/components/standalone/connection-status/connection-status.d.ts +5 -1
- package/dist/components/standalone/connection-status/connection-status.d.ts.map +1 -1
- package/dist/components/standalone/connection-status/connection-status.js +5 -1
- package/dist/components/standalone/connection-status/connection-status.js.map +1 -1
- package/dist/components/standalone/connection-status/lt-connection-status.d.ts +11 -6
- package/dist/components/standalone/connection-status/lt-connection-status.d.ts.map +1 -1
- package/dist/components/standalone/connection-status/lt-connection-status.js +34 -10
- package/dist/components/standalone/connection-status/lt-connection-status.js.map +1 -1
- package/dist/diagnostics/core.d.ts +34 -0
- package/dist/diagnostics/core.d.ts.map +1 -1
- package/dist/diagnostics/core.js +14 -2
- package/dist/diagnostics/core.js.map +1 -1
- package/dist/lotek.css +1 -1
- package/dist/lt.d.ts +1 -1
- package/dist/react.d.ts +2 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/vocabulary/classes.d.ts.map +1 -1
- package/dist/vocabulary/classes.js +34 -0
- package/dist/vocabulary/classes.js.map +1 -1
- package/dist/vocabulary/elements.d.ts.map +1 -1
- package/dist/vocabulary/elements.js +87 -7
- package/dist/vocabulary/elements.js.map +1 -1
- package/dist/vocabulary/types.d.ts +60 -0
- package/dist/vocabulary/types.d.ts.map +1 -1
- package/live-templates.xml +3 -2
- package/manifest/manifest.json +172 -8
- package/manifest/manifest.schema.json +80 -0
- package/package.json +2 -1
- package/src/components/default-texts.ts +7 -0
- package/src/components/frame/dialog/lt-dialog.ts +5 -2
- package/src/components/frame/error-summary/error-summary.ts +45 -11
- package/src/components/frame/error-summary/lt-error-summary.ts +121 -7
- package/src/components/frame/field/lt-field.ts +65 -28
- package/src/components/frame/popover/lt-popover.ts +43 -12
- package/src/components/frame/session-timeout/lt-session-timeout.ts +40 -6
- package/src/components/frame/suggestion/lt-suggestion.ts +57 -36
- package/src/components/frame/tabs/lt-tabs.ts +114 -38
- package/src/components/host-element.ts +190 -1
- package/src/components/standalone/connection-status/connection-status.ts +7 -1
- package/src/components/standalone/connection-status/lt-connection-status.ts +36 -10
- package/src/diagnostics/core.ts +19 -2
- package/src/vocabulary/classes.ts +34 -0
- package/src/vocabulary/elements.ts +87 -7
- package/src/vocabulary/types.ts +56 -0
- package/web-types.json +1 -1
|
@@ -27,7 +27,10 @@ export const elements = {
|
|
|
27
27
|
"description": "The control the field wires: an `<input>`, `<textarea>` or `<select>` with its `<option>`s. `type=\"hidden\"` does not count, and only the first one is wired. The template writes `for` on the label and `id` on the control, or wraps the control in the label.",
|
|
28
28
|
"content": "none",
|
|
29
29
|
"unique": true,
|
|
30
|
-
"stableId": true
|
|
30
|
+
"stableId": true,
|
|
31
|
+
"name": {
|
|
32
|
+
"after": "label"
|
|
33
|
+
}
|
|
31
34
|
},
|
|
32
35
|
"help": {
|
|
33
36
|
"selector": ".lt-help-text",
|
|
@@ -72,7 +75,8 @@ export const elements = {
|
|
|
72
75
|
"selector": "[role='tablist'], .lt-tabs__list",
|
|
73
76
|
"description": "The tab list, a `<ul>` where each `<li>` gets `role=\"presentation\"`. It needs a name, such as `aria-label`. When the server has written `role=\"tab\"` on the links, the list can also hold other links.",
|
|
74
77
|
"content": "free",
|
|
75
|
-
"unique": true
|
|
78
|
+
"unique": true,
|
|
79
|
+
"name": {}
|
|
76
80
|
},
|
|
77
81
|
"tab": {
|
|
78
82
|
"selector": "a[role='tab'][href^='#'], .lt-tabs__list a[href^='#']:not([role])",
|
|
@@ -84,7 +88,10 @@ export const elements = {
|
|
|
84
88
|
"selector": "[role='tabpanel'], .lt-tabs__panel:not([role])",
|
|
85
89
|
"description": "The content of one tab, with the id the link points to. The panel has the same name as the tab: the heading at the top of the panel is the name when it says the same as the tab.",
|
|
86
90
|
"content": "free",
|
|
87
|
-
"multiple": true
|
|
91
|
+
"multiple": true,
|
|
92
|
+
"name": {
|
|
93
|
+
"component": true
|
|
94
|
+
}
|
|
88
95
|
}
|
|
89
96
|
},
|
|
90
97
|
"events": {
|
|
@@ -124,6 +131,10 @@ export const elements = {
|
|
|
124
131
|
"content": "text",
|
|
125
132
|
"multiple": true
|
|
126
133
|
}
|
|
134
|
+
},
|
|
135
|
+
"name": {
|
|
136
|
+
"after": "title",
|
|
137
|
+
"id": true
|
|
127
138
|
}
|
|
128
139
|
},
|
|
129
140
|
"lt-popover": {
|
|
@@ -217,13 +228,19 @@ export const elements = {
|
|
|
217
228
|
"description": "The field the user types in: `role=\"combobox\"`, otherwise the first `<input>`. The template writes `for` on the label and `id` on the field, or wraps the field in the label.",
|
|
218
229
|
"content": "none",
|
|
219
230
|
"unique": true,
|
|
220
|
-
"stableId": true
|
|
231
|
+
"stableId": true,
|
|
232
|
+
"name": {
|
|
233
|
+
"after": "label"
|
|
234
|
+
}
|
|
221
235
|
},
|
|
222
236
|
"list": {
|
|
223
237
|
"selector": "[role='listbox'], .lt-suggestion__list",
|
|
224
238
|
"description": "The list of suggestions. It sits in the top layer when it is open, `popover=\"manual\"`, and has the label as its name.",
|
|
225
239
|
"content": "parts",
|
|
226
|
-
"unique": true
|
|
240
|
+
"unique": true,
|
|
241
|
+
"name": {
|
|
242
|
+
"component": true
|
|
243
|
+
}
|
|
227
244
|
},
|
|
228
245
|
"option": {
|
|
229
246
|
"selector": "[role='option'], .lt-suggestion__list > li:not([role])",
|
|
@@ -249,6 +266,34 @@ export const elements = {
|
|
|
249
266
|
"content": "none",
|
|
250
267
|
"unique": true,
|
|
251
268
|
"optional": true
|
|
269
|
+
},
|
|
270
|
+
"label": {
|
|
271
|
+
"selector": "label",
|
|
272
|
+
"description": "The label. The component writes `for` on it from the field's id when it does not wrap the field, and names the list after it.",
|
|
273
|
+
"content": "text",
|
|
274
|
+
"optional": true
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"texts": {
|
|
278
|
+
"suggestionNone": {
|
|
279
|
+
"text": "No matches",
|
|
280
|
+
"replacedBy": [
|
|
281
|
+
"count-none",
|
|
282
|
+
"count-other"
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
"suggestionOne": {
|
|
286
|
+
"text": "One match",
|
|
287
|
+
"replacedBy": [
|
|
288
|
+
"count-one",
|
|
289
|
+
"count-other"
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
"suggestionOther": {
|
|
293
|
+
"text": "{n} matches",
|
|
294
|
+
"replacedBy": [
|
|
295
|
+
"count-other"
|
|
296
|
+
]
|
|
252
297
|
}
|
|
253
298
|
},
|
|
254
299
|
"events": {
|
|
@@ -278,7 +323,10 @@ export const elements = {
|
|
|
278
323
|
"selector": ":scope > dialog",
|
|
279
324
|
"description": "The `<dialog>` element, as a direct child of the host.",
|
|
280
325
|
"content": "free",
|
|
281
|
-
"unique": true
|
|
326
|
+
"unique": true,
|
|
327
|
+
"name": {
|
|
328
|
+
"after": "title"
|
|
329
|
+
}
|
|
282
330
|
},
|
|
283
331
|
"title": {
|
|
284
332
|
"selector": "h1, h2, h3, h4, h5, h6",
|
|
@@ -321,6 +369,21 @@ export const elements = {
|
|
|
321
369
|
}
|
|
322
370
|
},
|
|
323
371
|
"parts": {},
|
|
372
|
+
"texts": {
|
|
373
|
+
"toastRegion": {
|
|
374
|
+
"text": "Notifications",
|
|
375
|
+
"replacedBy": [
|
|
376
|
+
"label",
|
|
377
|
+
"aria-label"
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
"toastClose": {
|
|
381
|
+
"text": "Close message",
|
|
382
|
+
"replacedBy": [
|
|
383
|
+
"close-label"
|
|
384
|
+
]
|
|
385
|
+
}
|
|
386
|
+
},
|
|
324
387
|
"events": {
|
|
325
388
|
"toast-dismiss": {}
|
|
326
389
|
}
|
|
@@ -347,7 +410,10 @@ export const elements = {
|
|
|
347
410
|
"selector": "dialog",
|
|
348
411
|
"description": "The `<dialog>` element with the warning.",
|
|
349
412
|
"content": "free",
|
|
350
|
-
"unique": true
|
|
413
|
+
"unique": true,
|
|
414
|
+
"name": {
|
|
415
|
+
"after": "title"
|
|
416
|
+
}
|
|
351
417
|
},
|
|
352
418
|
"title": {
|
|
353
419
|
"selector": "h1, h2, h3, h4, h5, h6",
|
|
@@ -401,6 +467,20 @@ export const elements = {
|
|
|
401
467
|
}
|
|
402
468
|
},
|
|
403
469
|
"parts": {},
|
|
470
|
+
"texts": {
|
|
471
|
+
"connectionOffline": {
|
|
472
|
+
"text": "No connection. What you type is not being saved.",
|
|
473
|
+
"replacedBy": [
|
|
474
|
+
"offline-text"
|
|
475
|
+
]
|
|
476
|
+
},
|
|
477
|
+
"connectionOnline": {
|
|
478
|
+
"text": "Connection restored.",
|
|
479
|
+
"replacedBy": [
|
|
480
|
+
"online-text"
|
|
481
|
+
]
|
|
482
|
+
}
|
|
483
|
+
},
|
|
404
484
|
"events": {
|
|
405
485
|
"connection-lost": {},
|
|
406
486
|
"connection-restored": {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../src/vocabulary/elements.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,UAAU,EAAE;QACV,MAAM,EAAE,iDAAiD;QACzD,aAAa,EAAE,mcAAmc;QACld,YAAY,EAAE;YACZ,UAAU,EAAE;gBACV,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,0BAA0B;aAC1C;YACD,UAAU,EAAE;gBACV,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,+CAA+C;aAC/D;YACD,cAAc,EAAE;gBACd,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,kEAAkE;aAClF;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,UAAU,EAAE,OAAO;gBACnB,aAAa,EAAE,wFAAwF;gBACvG,SAAS,EAAE,MAAM;aAClB;YACD,SAAS,EAAE;gBACT,UAAU,EAAE,8CAA8C;gBAC1D,aAAa,EAAE,mQAAmQ;gBAClR,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../src/vocabulary/elements.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,UAAU,EAAE;QACV,MAAM,EAAE,iDAAiD;QACzD,aAAa,EAAE,mcAAmc;QACld,YAAY,EAAE;YACZ,UAAU,EAAE;gBACV,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,0BAA0B;aAC1C;YACD,UAAU,EAAE;gBACV,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,+CAA+C;aAC/D;YACD,cAAc,EAAE;gBACd,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,kEAAkE;aAClF;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,UAAU,EAAE,OAAO;gBACnB,aAAa,EAAE,wFAAwF;gBACvG,SAAS,EAAE,MAAM;aAClB;YACD,SAAS,EAAE;gBACT,UAAU,EAAE,8CAA8C;gBAC1D,aAAa,EAAE,mQAAmQ;gBAClR,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE;oBACN,OAAO,EAAE,OAAO;iBACjB;aACF;YACD,MAAM,EAAE;gBACN,UAAU,EAAE,eAAe;gBAC3B,aAAa,EAAE,6DAA6D;gBAC5E,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE,IAAI;aACjB;Y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AAE,IAAI;aACjB;SACF;QACD,QAAQ,EAAE;YACR,cAAc,EAAE,EAAE;YAClB,gBAAgB,EAAE,EAAE;YACpB,gBAAgB,EAAE,EAAE;YACpB,iBAAiB,EAAE,EAAE;YACrB,kBAAkB,EAAE,EAAE;SACvB;KACF;IACD,sBAAsB,EAAE;QACtB,MAAM,EAAE,6DAA6D;QACrE,aAAa,EAAE,yHAAyH;QACxI,YAAY,EAAE;YACZ,cAAc,EAAE;gBACd,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,uCAAuC;aACvD;YACD,aAAa,EAAE;gBACb,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,8BAA8B;aAC9C;SACF;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACP,mBAAmB,EAAE;gBACnB,MAAM,EAAE,kDAAkD;gBAC1D,YAAY,EAAE;oBACZ,cAAc;iBACf;aACF;YACD,kBAAkB,EAAE;gBAClB,MAAM,EAAE,sBAAsB;gBAC9B,YAAY,EAAE;oBACZ,aAAa;iBACd;aACF;SACF;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,EAAE;YACrB,qBAAqB,EAAE,EAAE;SAC1B;KACF;CACF,CAAA"}
|
|
@@ -36,6 +36,30 @@ export type Part = {
|
|
|
36
36
|
optional?: true;
|
|
37
37
|
/** The part must have an id from the server; the component never writes one. */
|
|
38
38
|
stableId?: true;
|
|
39
|
+
/** LO-TEK demands a name for the part. */
|
|
40
|
+
name?: Name;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* A name LO-TEK demands where WAI-ARIA does not, or one the component gives
|
|
44
|
+
* itself. WAI-ARIA's own demands, by role, are in the core, and `lotek check`
|
|
45
|
+
* reports an element the markup gives no name (`without-name`).
|
|
46
|
+
*
|
|
47
|
+
* `after` is the part the component points `aria-labelledby` at when the
|
|
48
|
+
* markup has neither `aria-label` nor `aria-labelledby`, such as the heading
|
|
49
|
+
* of a dialog; then that part's name is enough. With `id` the part must have
|
|
50
|
+
* an id from the template, since the component does not write one. With
|
|
51
|
+
* `component` the component names it itself, after what the other rules
|
|
52
|
+
* check, such as the list in a suggestion field after the label, and no
|
|
53
|
+
* rule judges its name in the markup.
|
|
54
|
+
*
|
|
55
|
+
* Each of them is held to the component by a contract in
|
|
56
|
+
* `interfaces/scripts/accessibility/contracts.ts`: a mutation that takes the name away
|
|
57
|
+
* must fail in the browsers, and `lotek check` must report it.
|
|
58
|
+
*/
|
|
59
|
+
export type Name = {
|
|
60
|
+
after?: string;
|
|
61
|
+
id?: true;
|
|
62
|
+
component?: true;
|
|
39
63
|
};
|
|
40
64
|
/**
|
|
41
65
|
* An event an element dispatches, such as `dialog-toggle`. `detail` is the
|
|
@@ -52,9 +76,35 @@ export type Element = {
|
|
|
52
76
|
/** Empty for the elements that create all of their content themselves. */
|
|
53
77
|
parts?: Record<string, Part>;
|
|
54
78
|
events?: Record<string, ElementEvent>;
|
|
79
|
+
/** LO-TEK demands a name for the element itself. */
|
|
80
|
+
name?: Name;
|
|
81
|
+
/** The texts the element writes itself, by their name in `DEFAULT_TEXTS`. */
|
|
82
|
+
texts?: Record<string, DefaultText>;
|
|
55
83
|
/** Attributes that have been removed, with what applies instead. */
|
|
56
84
|
removed?: Record<string, string>;
|
|
57
85
|
};
|
|
86
|
+
/**
|
|
87
|
+
* A text the element writes itself when nobody has given it another, from
|
|
88
|
+
* `DEFAULT_TEXTS`. `replacedBy` is the attributes that replace it; any one
|
|
89
|
+
* of them is enough, and `lotek check` warns when none is there on a page in
|
|
90
|
+
* another language than the text's.
|
|
91
|
+
*/
|
|
92
|
+
export type DefaultText = {
|
|
93
|
+
text: string;
|
|
94
|
+
replacedBy: readonly string[];
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* A text the stylesheet shows in `::after` on an element with the class and
|
|
98
|
+
* `attribute`, with `value` when the selector requires one, and none of the
|
|
99
|
+
* attributes in `unless`. `variable` is the CSS variable that replaces it.
|
|
100
|
+
*/
|
|
101
|
+
export type CssText = {
|
|
102
|
+
variable: string;
|
|
103
|
+
text: string;
|
|
104
|
+
attribute: string;
|
|
105
|
+
value?: string;
|
|
106
|
+
unless?: readonly string[];
|
|
107
|
+
};
|
|
58
108
|
/** The content of `elements.ts`: tag to element. */
|
|
59
109
|
export type Elements = Record<string, Element>;
|
|
60
110
|
/**
|
|
@@ -85,6 +135,10 @@ export type ClassInfo = {
|
|
|
85
135
|
partOf?: string;
|
|
86
136
|
/** The parts the markup consists of, for the classes with a fixed structure. */
|
|
87
137
|
parts?: Record<string, Part>;
|
|
138
|
+
/** LO-TEK demands a name for the element with the class. */
|
|
139
|
+
name?: Name;
|
|
140
|
+
/** The texts the stylesheet shows on it. */
|
|
141
|
+
texts?: readonly CssText[];
|
|
88
142
|
attributes: Record<string, ClassAttribute>;
|
|
89
143
|
};
|
|
90
144
|
/** The content of `classes.ts`: class name to class. */
|
|
@@ -150,6 +204,12 @@ export type Builder = {
|
|
|
150
204
|
description?: string;
|
|
151
205
|
}[];
|
|
152
206
|
returns: BuilderReturns;
|
|
207
|
+
/**
|
|
208
|
+
* The classes for the parts the template writes itself, as `lt.card.title`:
|
|
209
|
+
* the name on the function and the class. Only on the builder functions
|
|
210
|
+
* that have one.
|
|
211
|
+
*/
|
|
212
|
+
classes?: Record<string, string>;
|
|
153
213
|
};
|
|
154
214
|
/**
|
|
155
215
|
* The shape of `manifest.json`, as `manifest.schema.json` describes it. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/vocabulary/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,SAAS,GAAG,CACpB;IAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAChD,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;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;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,QAAQ,CAAA;IAClB,MAAM,EAAE,cAAc,CAAA;IACtB,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,OAAO,EAAE,MAAM,CACb,MAAM,EACN,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG;QAC9B,UAAU,EAAE,MAAM,CAChB,MAAM,EACN;YACE,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;YAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,WAAW,CAAC,EAAE,MAAM,CAAA;SACrB,CACF,CAAA;KACF,CACF,CAAA;CACF,CAAA"}
|
package/live-templates.xml
CHANGED
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
<option name="HTML" value="true" />
|
|
16
16
|
</context>
|
|
17
17
|
</template>
|
|
18
|
-
<template name="lt-error-summary" value="<form novalidate> <!-- The component sets the class, role="alert" and tabindex="-1"
|
|
18
|
+
<template name="lt-error-summary" value="<form novalidate> <!-- The component sets the class, role="alert" and tabindex="-1"; the id and aria-labelledby that name the box are the template's. --> <lt-error-summary id="$errors$" aria-labelledby="$errors_title$" hidden> <h2 id="$errors_title$"></h2> <ul class="lt-list"></ul> </lt-error-summary> <label class="lt-label" for="$email$">Email address</label> <input class="lt-input" id="$email$" type="email" /> <button class="lt-button">Send application</button> </form>" description="Error summary. Moves focus to the box when it appears, and to the control when a link in the list is followed." toReformat="false" toShortenFQNames="false">
|
|
19
19
|
<variable name="errors" expression="" defaultValue=""errors"" alwaysStopAt="true" />
|
|
20
|
+
<variable name="errors_title" expression="" defaultValue=""errors-title"" alwaysStopAt="true" />
|
|
20
21
|
<variable name="email" expression="" defaultValue=""email"" alwaysStopAt="true" />
|
|
21
22
|
<context>
|
|
22
23
|
<option name="HTML" value="true" />
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
<option name="HTML" value="true" />
|
|
55
56
|
</context>
|
|
56
57
|
</template>
|
|
57
|
-
<template name="lt-connection-status" value="<lt-connection-status class="lt-connection-status" data-ignore-morph></lt-connection-status>" description="Tells the user when the connection to the server is lost. The app reports with `reportFailure()` and `reportSuccess()`." toReformat="false" toShortenFQNames="false">
|
|
58
|
+
<template name="lt-connection-status" value="<lt-connection-status class="lt-connection-status" role="status" aria-live="polite" data-ignore-morph></lt-connection-status>" description="Tells the user when the connection to the server is lost. The app reports with `reportFailure()` and `reportSuccess()`." toReformat="false" toShortenFQNames="false">
|
|
58
59
|
<context>
|
|
59
60
|
<option name="HTML" value="true" />
|
|
60
61
|
</context>
|