@fusion.dev/helix-headless 0.94.0 → 0.96.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/custom-elements.json +23 -23
- package/dist/combobox/root/combobox-root.d.ts +1 -1
- package/dist/combobox/root/combobox-root.js +1 -1
- package/dist/date-input/root/date-input-root.d.ts +1 -1
- package/dist/date-input/root/date-input-root.js +1 -1
- package/dist/file-input/root/file-input-root.d.ts +2 -2
- package/dist/file-input/root/file-input-root.js +2 -2
- package/dist/list/item/list-item.d.ts +1 -1
- package/dist/list/item/list-item.js +1 -1
- package/dist/notifications/group/notification-group.d.ts +2 -2
- package/dist/notifications/group/notification-group.js +3 -3
- package/dist/notifications/notification/notification.d.ts +2 -2
- package/dist/notifications/notification/notification.js +1 -1
- package/dist/tag/root/tag-root.d.ts +2 -2
- package/dist/tag/root/tag-root.js +1 -1
- package/dist/time-input/root/time-input-root.d.ts +1 -1
- package/dist/time-input/root/time-input-root.js +1 -1
- package/dist/video/root/video-root.d.ts +2 -2
- package/dist/video/root/video-root.js +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +28 -28
package/custom-elements.json
CHANGED
|
@@ -20432,7 +20432,7 @@
|
|
|
20432
20432
|
},
|
|
20433
20433
|
{
|
|
20434
20434
|
"description": "The category before the label.",
|
|
20435
|
-
"name": "tag-
|
|
20435
|
+
"name": "tag-start"
|
|
20436
20436
|
},
|
|
20437
20437
|
{
|
|
20438
20438
|
"description": "The row of chosen options, when `multiple` is set.",
|
|
@@ -26990,7 +26990,7 @@
|
|
|
26990
26990
|
},
|
|
26991
26991
|
{
|
|
26992
26992
|
"description": "The category before the label.",
|
|
26993
|
-
"name": "date-
|
|
26993
|
+
"name": "date-start"
|
|
26994
26994
|
},
|
|
26995
26995
|
{
|
|
26996
26996
|
"description": "What is wrong with it.",
|
|
@@ -36450,7 +36450,7 @@
|
|
|
36450
36450
|
},
|
|
36451
36451
|
{
|
|
36452
36452
|
"description": "The category before the label.",
|
|
36453
|
-
"name": "kind-
|
|
36453
|
+
"name": "kind-start"
|
|
36454
36454
|
},
|
|
36455
36455
|
{
|
|
36456
36456
|
"description": "The question, over the field.",
|
|
@@ -36486,7 +36486,7 @@
|
|
|
36486
36486
|
},
|
|
36487
36487
|
{
|
|
36488
36488
|
"description": "The category before the label.",
|
|
36489
|
-
"name": "size-
|
|
36489
|
+
"name": "size-start"
|
|
36490
36490
|
},
|
|
36491
36491
|
{
|
|
36492
36492
|
"description": "The label that opens the picker.",
|
|
@@ -50643,6 +50643,10 @@
|
|
|
50643
50643
|
"description": "The label.",
|
|
50644
50644
|
"name": ""
|
|
50645
50645
|
},
|
|
50646
|
+
{
|
|
50647
|
+
"description": "Secondary text under the label.",
|
|
50648
|
+
"name": "description"
|
|
50649
|
+
},
|
|
50646
50650
|
{
|
|
50647
50651
|
"description": "Trailing content.",
|
|
50648
50652
|
"name": "end"
|
|
@@ -50650,10 +50654,6 @@
|
|
|
50650
50654
|
{
|
|
50651
50655
|
"description": "Leading content, usually an icon or an avatar.",
|
|
50652
50656
|
"name": "start"
|
|
50653
|
-
},
|
|
50654
|
-
{
|
|
50655
|
-
"description": "Secondary text under the label.",
|
|
50656
|
-
"name": "supporting"
|
|
50657
50657
|
}
|
|
50658
50658
|
],
|
|
50659
50659
|
"members": [
|
|
@@ -57780,7 +57780,7 @@
|
|
|
57780
57780
|
"cssParts": [
|
|
57781
57781
|
{
|
|
57782
57782
|
"description": "The trailing region of the header.",
|
|
57783
|
-
"name": "
|
|
57783
|
+
"name": "actions"
|
|
57784
57784
|
},
|
|
57785
57785
|
{
|
|
57786
57786
|
"description": "How many are in the group.",
|
|
@@ -57810,7 +57810,7 @@
|
|
|
57810
57810
|
},
|
|
57811
57811
|
{
|
|
57812
57812
|
"description": "Beside the count, for a link to the rest of them.",
|
|
57813
|
-
"name": "
|
|
57813
|
+
"name": "actions"
|
|
57814
57814
|
},
|
|
57815
57815
|
{
|
|
57816
57816
|
"description": "Replaces the group's name, for a heading that needs a mark in it.",
|
|
@@ -58570,10 +58570,10 @@
|
|
|
58570
58570
|
},
|
|
58571
58571
|
{
|
|
58572
58572
|
"description": "A second line qualifying it, quieter than the first. A bare slot rather than a box, so an item without one pays nothing for it; style it through `::slotted()`.",
|
|
58573
|
-
"name": "
|
|
58573
|
+
"name": "description"
|
|
58574
58574
|
},
|
|
58575
58575
|
{
|
|
58576
|
-
"description": "A block belonging to the row rather than a line about it: a quoted comment, a status moving from one value to another, a preview. Unlike `
|
|
58576
|
+
"description": "A block belonging to the row rather than a line about it: a quoted comment, a status moving from one value to another, a preview. Unlike `description` nothing here sets a size or an ink, because whatever fills it usually brings its own.",
|
|
58577
58577
|
"name": "detail"
|
|
58578
58578
|
},
|
|
58579
58579
|
{
|
|
@@ -89548,7 +89548,7 @@
|
|
|
89548
89548
|
},
|
|
89549
89549
|
{
|
|
89550
89550
|
"description": "The category before the label.",
|
|
89551
|
-
"name": "
|
|
89551
|
+
"name": "start"
|
|
89552
89552
|
}
|
|
89553
89553
|
],
|
|
89554
89554
|
"slots": [
|
|
@@ -89558,7 +89558,7 @@
|
|
|
89558
89558
|
},
|
|
89559
89559
|
{
|
|
89560
89560
|
"description": "A category the label belongs to, set before it and weightier.",
|
|
89561
|
-
"name": "
|
|
89561
|
+
"name": "start"
|
|
89562
89562
|
}
|
|
89563
89563
|
],
|
|
89564
89564
|
"members": [
|
|
@@ -91745,7 +91745,7 @@
|
|
|
91745
91745
|
},
|
|
91746
91746
|
{
|
|
91747
91747
|
"description": "The category before the label.",
|
|
91748
|
-
"name": "time-
|
|
91748
|
+
"name": "time-start"
|
|
91749
91749
|
},
|
|
91750
91750
|
{
|
|
91751
91751
|
"description": "The control that opens the list.",
|
|
@@ -106614,10 +106614,6 @@
|
|
|
106614
106614
|
}
|
|
106615
106615
|
],
|
|
106616
106616
|
"cssParts": [
|
|
106617
|
-
{
|
|
106618
|
-
"description": "The region top left, for a way out of a set.",
|
|
106619
|
-
"name": "back"
|
|
106620
|
-
},
|
|
106621
106617
|
{
|
|
106622
106618
|
"description": "Subtitles on and off.",
|
|
106623
106619
|
"name": "captions"
|
|
@@ -106694,6 +106690,10 @@
|
|
|
106694
106690
|
"description": "The whole screen, and back.",
|
|
106695
106691
|
"name": "fullscreen"
|
|
106696
106692
|
},
|
|
106693
|
+
{
|
|
106694
|
+
"description": "The region top left, for a heading and a way out of a set.",
|
|
106695
|
+
"name": "header"
|
|
106696
|
+
},
|
|
106697
106697
|
{
|
|
106698
106698
|
"description": "What is said while the picture waits for more of itself. The part of that which spins is drawn on it, which is `::part(loading)::before` from a consumer's sheet: this tier ships no CSS, so a box it renders for one to paint is an empty child costing whatever the consumer's own layout charges for a child. `ListItem` measured that.",
|
|
106699
106699
|
"name": "loading"
|
|
@@ -106808,14 +106808,14 @@
|
|
|
106808
106808
|
"description": "`<source>` and `<track>` elements, which are copied into the video.",
|
|
106809
106809
|
"name": ""
|
|
106810
106810
|
},
|
|
106811
|
-
{
|
|
106812
|
-
"description": "Top left over the frame, for a way out of a set.",
|
|
106813
|
-
"name": "back"
|
|
106814
|
-
},
|
|
106815
106811
|
{
|
|
106816
106812
|
"description": "Added to the control bar, before fullscreen.",
|
|
106817
106813
|
"name": "controls"
|
|
106818
106814
|
},
|
|
106815
|
+
{
|
|
106816
|
+
"description": "Top left over the frame: a heading, and a way out of a set beside it.",
|
|
106817
|
+
"name": "header"
|
|
106818
|
+
},
|
|
106819
106819
|
{
|
|
106820
106820
|
"description": "Shown over the video until it starts.",
|
|
106821
106821
|
"name": "poster"
|
|
@@ -76,7 +76,7 @@ declare const HelixHeadlessCombobox_base: (new (...args: any[]) => import("@fusi
|
|
|
76
76
|
* @csspart tag - One chosen option.
|
|
77
77
|
* @csspart tag-dismiss - The remove button, when `dismissible`.
|
|
78
78
|
* @csspart tag-dismiss-mark - The glyph on the dismiss control, where none is slotted.
|
|
79
|
-
* @csspart tag-
|
|
79
|
+
* @csspart tag-start - The category before the label.
|
|
80
80
|
* @csspart tags - The row of chosen options, when `multiple` is set.
|
|
81
81
|
*
|
|
82
82
|
* @cssstate invalid - While there is feedback to show: the platform's verdict, or the consumer's `feedback`.
|
|
@@ -273,7 +273,7 @@ let HelixHeadlessCombobox = class HelixHeadlessCombobox extends MixinControllerO
|
|
|
273
273
|
renderTag(option) {
|
|
274
274
|
return html `<${this.tag('tag')}
|
|
275
275
|
part="tag"
|
|
276
|
-
exportparts="dismiss: tag-dismiss, dismiss-mark: tag-dismiss-mark,
|
|
276
|
+
exportparts="dismiss: tag-dismiss, dismiss-mark: tag-dismiss-mark, start: tag-start"
|
|
277
277
|
data-value=${option.value}
|
|
278
278
|
dismiss-label=${this.removeLabel}
|
|
279
279
|
?dismissible=${!this.isDisabled}
|
|
@@ -38,7 +38,7 @@ declare const HelixHeadlessDateInput_base: (new (...args: any[]) => import("@fus
|
|
|
38
38
|
* @csspart date - One held date, as a tag, in `multiple`.
|
|
39
39
|
* @csspart date-dismiss - The remove button, when `dismissible`.
|
|
40
40
|
* @csspart date-dismiss-mark - The glyph on the dismiss control, where none is slotted.
|
|
41
|
-
* @csspart date-
|
|
41
|
+
* @csspart date-start - The category before the label.
|
|
42
42
|
* @csspart feedback - What is wrong with it.
|
|
43
43
|
* @csspart field - The box holding the text and the trigger.
|
|
44
44
|
* @csspart hint - Help under the field, while nothing is wrong.
|
|
@@ -192,7 +192,7 @@ let HelixHeadlessDateInput = class HelixHeadlessDateInput extends MixinPickerEdi
|
|
|
192
192
|
renderTag(date) {
|
|
193
193
|
return html `<${this.tag('tag')}
|
|
194
194
|
part="date"
|
|
195
|
-
exportparts="dismiss: date-dismiss, dismiss-mark: date-dismiss-mark,
|
|
195
|
+
exportparts="dismiss: date-dismiss, dismiss-mark: date-dismiss-mark, start: date-start"
|
|
196
196
|
dismissible
|
|
197
197
|
dismiss-label=${`Remove ${date}`}
|
|
198
198
|
?disabled=${this.isDisabled}
|
|
@@ -40,7 +40,7 @@ declare const HelixHeadlessFileInput_base: (new (...args: any[]) => import("@fus
|
|
|
40
40
|
* @csspart kind - What kind of file it is.
|
|
41
41
|
* @csspart kind-dismiss - The remove button, when `dismissible`.
|
|
42
42
|
* @csspart kind-dismiss-mark - The glyph on the dismiss control, where none is slotted.
|
|
43
|
-
* @csspart kind-
|
|
43
|
+
* @csspart kind-start - The category before the label.
|
|
44
44
|
* @csspart label - The question, over the field.
|
|
45
45
|
* @csspart list - The chosen files.
|
|
46
46
|
* @csspart meta - The row holding its size and kind.
|
|
@@ -49,7 +49,7 @@ declare const HelixHeadlessFileInput_base: (new (...args: any[]) => import("@fus
|
|
|
49
49
|
* @csspart size - How big it is.
|
|
50
50
|
* @csspart size-dismiss - The remove button, when `dismissible`.
|
|
51
51
|
* @csspart size-dismiss-mark - The glyph on the dismiss control, where none is slotted.
|
|
52
|
-
* @csspart size-
|
|
52
|
+
* @csspart size-start - The category before the label.
|
|
53
53
|
* @csspart trigger - The label that opens the picker.
|
|
54
54
|
*
|
|
55
55
|
* @cssstate invalid - While there is feedback to show: the platform's verdict, or the consumer's `feedback`.
|
|
@@ -162,10 +162,10 @@ let HelixHeadlessFileInput = class HelixHeadlessFileInput extends MixinField(Hel
|
|
|
162
162
|
}
|
|
163
163
|
renderMeta(file) {
|
|
164
164
|
return html `<${this.tag('tag')} part="size"
|
|
165
|
-
exportparts="dismiss: size-dismiss, dismiss-mark: size-dismiss-mark,
|
|
165
|
+
exportparts="dismiss: size-dismiss, dismiss-mark: size-dismiss-mark, start: size-start">${size(file.size, this.locale)}</${this.tag('tag')}>
|
|
166
166
|
<${this.tag('tag')}
|
|
167
167
|
part="kind"
|
|
168
|
-
exportparts="dismiss: kind-dismiss, dismiss-mark: kind-dismiss-mark,
|
|
168
|
+
exportparts="dismiss: kind-dismiss, dismiss-mark: kind-dismiss-mark, start: kind-start">${kind(file)}</${this.tag('tag')}>`;
|
|
169
169
|
}
|
|
170
170
|
render() {
|
|
171
171
|
const files = this.files;
|
|
@@ -31,9 +31,9 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
31
31
|
* @documentation https://fusion.dev/helix/components/list
|
|
32
32
|
*
|
|
33
33
|
* @slot - The label.
|
|
34
|
+
* @slot description - Secondary text under the label.
|
|
34
35
|
* @slot end - Trailing content.
|
|
35
36
|
* @slot start - Leading content, usually an icon or an avatar.
|
|
36
|
-
* @slot supporting - Secondary text under the label.
|
|
37
37
|
*
|
|
38
38
|
* @csspart row - The layout, held off the host so the host can carry a marker.
|
|
39
39
|
*/
|
|
@@ -24,7 +24,7 @@ let HelixHeadlessListItem = class HelixHeadlessListItem extends HelixElement {
|
|
|
24
24
|
render() {
|
|
25
25
|
const content = html `${this.renderRail()}<slot name="start"></slot>
|
|
26
26
|
<slot></slot>
|
|
27
|
-
<slot name="
|
|
27
|
+
<slot name="description"></slot>
|
|
28
28
|
<slot name="end"></slot>`;
|
|
29
29
|
return this.href === ''
|
|
30
30
|
? html `<div part="row">${content}</div>`
|
|
@@ -33,13 +33,13 @@ declare const HelixHeadlessNotificationGroup_base: (new (...args: any[]) => impo
|
|
|
33
33
|
* @documentation https://fusion.dev/helix/components/notifications
|
|
34
34
|
*
|
|
35
35
|
* @slot - The notifications in this group.
|
|
36
|
-
* @slot
|
|
36
|
+
* @slot actions - Beside the count, for a link to the rest of them.
|
|
37
37
|
* @slot label - Replaces the group's name, for a heading that needs a mark in it.
|
|
38
38
|
*
|
|
39
39
|
* @event {HelixBeforeCloseEvent} helix-before-close - Fired before the group folds, and cancelable.
|
|
40
40
|
* @event {HelixBeforeOpenEvent} helix-before-open - Fired before the group unfolds. Cancelable: refusing it takes the decision and nothing moves.
|
|
41
41
|
*
|
|
42
|
-
* @csspart
|
|
42
|
+
* @csspart actions - The trailing region of the header.
|
|
43
43
|
* @csspart count - How many are in the group.
|
|
44
44
|
* @csspart header - The label, the count and the action together.
|
|
45
45
|
* @csspart items - The region holding the notifications.
|
|
@@ -58,8 +58,8 @@ let HelixHeadlessNotificationGroup = class HelixHeadlessNotificationGroup extend
|
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
slot.assign(...showing);
|
|
61
|
-
const action = this.renderRoot?.querySelector?.('slot[name="
|
|
62
|
-
action?.assign?.(...[...this.children].filter((child) => child.getAttribute('slot') === '
|
|
61
|
+
const action = this.renderRoot?.querySelector?.('slot[name="actions"]');
|
|
62
|
+
action?.assign?.(...[...this.children].filter((child) => child.getAttribute('slot') === 'actions'));
|
|
63
63
|
const label = this.renderRoot?.querySelector?.('slot[name="label"]');
|
|
64
64
|
label?.assign?.(...[...this.children].filter((child) => child.getAttribute('slot') === 'label'));
|
|
65
65
|
}
|
|
@@ -81,7 +81,7 @@ let HelixHeadlessNotificationGroup = class HelixHeadlessNotificationGroup extend
|
|
|
81
81
|
</button>`
|
|
82
82
|
: html `<span part="label"><slot name="label">${this.label}</slot></span>
|
|
83
83
|
${count}`}
|
|
84
|
-
<span part="
|
|
84
|
+
<span part="actions"><slot name="actions"></slot></span>
|
|
85
85
|
</div>
|
|
86
86
|
<div id=${ITEMS_ID} part="items">
|
|
87
87
|
<slot></slot>
|
|
@@ -39,11 +39,11 @@ declare const HelixHeadlessNotification_base: (new (...args: any[]) => import("@
|
|
|
39
39
|
* @slot - What happened, in the consumer's own markup.
|
|
40
40
|
* @slot actions - What a reader can do about it, under the words it is about. Drawn always
|
|
41
41
|
* rather than on hover, because an action is the point of the row and not chrome around it.
|
|
42
|
-
* @slot
|
|
42
|
+
* @slot description - A second line qualifying it, quieter than the first. A bare
|
|
43
43
|
* slot rather than a box, so an item without one pays nothing for it; style it
|
|
44
44
|
* through `::slotted()`.
|
|
45
45
|
* @slot detail - A block belonging to the row rather than a line about it: a quoted
|
|
46
|
-
* comment, a status moving from one value to another, a preview. Unlike `
|
|
46
|
+
* comment, a status moving from one value to another, a preview. Unlike `description` nothing
|
|
47
47
|
* here sets a size or an ink, because whatever fills it usually brings its own.
|
|
48
48
|
* @slot dismiss - Replaces the glyph inside the dismiss control, which is drawn
|
|
49
49
|
* only where the row is `dismissible`.
|
|
@@ -106,7 +106,7 @@ let HelixHeadlessNotification = class HelixHeadlessNotification extends MixinDis
|
|
|
106
106
|
<span part="media"><slot name="media"></slot></span>
|
|
107
107
|
<div part="body">
|
|
108
108
|
<div part="label"><slot></slot></div>
|
|
109
|
-
<slot name="
|
|
109
|
+
<slot name="description"></slot>
|
|
110
110
|
<slot name="detail"></slot>
|
|
111
111
|
<span part="actions"><slot name="actions" @slotchange=${this.handleActions}></slot></span>
|
|
112
112
|
</div>
|
|
@@ -21,13 +21,13 @@ declare const HelixHeadlessTag_base: (new (...args: any[]) => import("@fusion.de
|
|
|
21
21
|
* @documentation https://fusion.dev/helix/components/tag
|
|
22
22
|
*
|
|
23
23
|
* @slot - The tag's label.
|
|
24
|
-
* @slot
|
|
24
|
+
* @slot start - A category the label belongs to, set before it and weightier.
|
|
25
25
|
*
|
|
26
26
|
* @event {HelixDismissEvent} helix-dismiss - Fired when the reader asks to remove the tag. Cancelable: refusing it takes the decision and nothing moves.
|
|
27
27
|
*
|
|
28
28
|
* @csspart dismiss - The control that asks to remove the tag.
|
|
29
29
|
* @csspart dismiss-mark - The glyph on the dismiss control, where none is slotted.
|
|
30
|
-
* @csspart
|
|
30
|
+
* @csspart start - The category before the label.
|
|
31
31
|
*/
|
|
32
32
|
export declare class HelixHeadlessTag extends HelixHeadlessTag_base {
|
|
33
33
|
dismissLabel: string;
|
|
@@ -14,7 +14,7 @@ let HelixHeadlessTag = class HelixHeadlessTag extends MixinDismissible(HelixElem
|
|
|
14
14
|
this.dismissLabel = 'Remove';
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return html `<slot name="
|
|
17
|
+
return html `<slot name="start" part="start"></slot>
|
|
18
18
|
<slot></slot>
|
|
19
19
|
${this.dismissible
|
|
20
20
|
? html `<button
|
|
@@ -85,7 +85,7 @@ declare const HelixHeadlessTimeInput_base: (new (...args: any[]) => import("@fus
|
|
|
85
85
|
* @csspart time - One held time, as a tag, in `multiple`.
|
|
86
86
|
* @csspart time-dismiss - The remove button, when `dismissible`.
|
|
87
87
|
* @csspart time-dismiss-mark - The glyph on the dismiss control, where none is slotted.
|
|
88
|
-
* @csspart time-
|
|
88
|
+
* @csspart time-start - The category before the label.
|
|
89
89
|
* @csspart trigger - The control that opens the list.
|
|
90
90
|
* @csspart trigger-icon - The mark on the button that opens the clock.
|
|
91
91
|
*
|
|
@@ -167,7 +167,7 @@ let HelixHeadlessTimeInput = class HelixHeadlessTimeInput extends MixinPickerEdi
|
|
|
167
167
|
renderTag(at) {
|
|
168
168
|
return html `<${this.tag('tag')}
|
|
169
169
|
part="time"
|
|
170
|
-
exportparts="dismiss: time-dismiss, dismiss-mark: time-dismiss-mark,
|
|
170
|
+
exportparts="dismiss: time-dismiss, dismiss-mark: time-dismiss-mark, start: time-start"
|
|
171
171
|
dismissible
|
|
172
172
|
dismiss-label=${`Remove ${this.written(at)}`}
|
|
173
173
|
?disabled=${this.isDisabled}
|
|
@@ -38,8 +38,8 @@ import '../../menu/index.js';
|
|
|
38
38
|
* @documentation https://fusion.dev/helix/components/video
|
|
39
39
|
*
|
|
40
40
|
* @slot - `<source>` and `<track>` elements, which are copied into the video.
|
|
41
|
-
* @slot back - Top left over the frame, for a way out of a set.
|
|
42
41
|
* @slot controls - Added to the control bar, before fullscreen.
|
|
42
|
+
* @slot header - Top left over the frame: a heading, and a way out of a set beside it.
|
|
43
43
|
* @slot poster - Shown over the video until it starts.
|
|
44
44
|
*
|
|
45
45
|
* @event {Event} ended - Relayed, because it does not cross a shadow boundary.
|
|
@@ -48,7 +48,6 @@ import '../../menu/index.js';
|
|
|
48
48
|
* @event {Event} pause - Relayed for the same reason.
|
|
49
49
|
* @event {Event} play - Relayed for the same reason.
|
|
50
50
|
*
|
|
51
|
-
* @csspart back - The region top left, for a way out of a set.
|
|
52
51
|
* @csspart captions - Subtitles on and off.
|
|
53
52
|
* @csspart captions-menu - The language menu, where there is more than one.
|
|
54
53
|
* @csspart captions-menu-back - The control that returns from a submenu.
|
|
@@ -68,6 +67,7 @@ import '../../menu/index.js';
|
|
|
68
67
|
* @csspart failure - What is said when the source will not play.
|
|
69
68
|
* @csspart forward - The control that goes on ten seconds.
|
|
70
69
|
* @csspart fullscreen - The whole screen, and back.
|
|
70
|
+
* @csspart header - The region top left, for a heading and a way out of a set.
|
|
71
71
|
* @csspart loading - What is said while the picture waits for more of itself.
|
|
72
72
|
* The part of that which spins is drawn on it, which is `::part(loading)::before`
|
|
73
73
|
* from a consumer's sheet: this tier ships no CSS, so a box it renders for one to
|
|
@@ -734,7 +734,7 @@ let HelixHeadlessVideo = class HelixHeadlessVideo extends HelixElement {
|
|
|
734
734
|
<span aria-hidden="true" hidden><slot @slotchange=${this.handleMedia}></slot></span>
|
|
735
735
|
${this.cue === undefined ? nothing : html `<p aria-live="off" part="cue">${this.cue}</p>`}
|
|
736
736
|
${''}
|
|
737
|
-
<div part="
|
|
737
|
+
<div part="header"><slot name="header"></slot></div>
|
|
738
738
|
<slot name="poster" part="poster"></slot>
|
|
739
739
|
${this.buffering && !this.failed
|
|
740
740
|
? html `<div
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-headless",
|
|
3
3
|
"description": "Headless component tier. Structure, accessibility, state, and form participation. No styling.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.96.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fusion.dev/helix-core": "0.
|
|
50
|
-
"@fusion.dev/helix-icons": "0.
|
|
49
|
+
"@fusion.dev/helix-core": "0.96.0",
|
|
50
|
+
"@fusion.dev/helix-icons": "0.96.0",
|
|
51
51
|
"uqr": "^0.1.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@fusion.dev/helix-cem": "0.
|
|
55
|
-
"@fusion.dev/helix-testing": "0.
|
|
54
|
+
"@fusion.dev/helix-cem": "0.96.0",
|
|
55
|
+
"@fusion.dev/helix-testing": "0.96.0",
|
|
56
56
|
"@fusion.dev/scripts": "0.0.0-dev",
|
|
57
57
|
"@happy-dom/global-registrator": "^20.0.0",
|
|
58
58
|
"@lit-labs/ssr": "^4.1.0",
|
package/types/jsx.d.ts
CHANGED
|
@@ -21705,7 +21705,7 @@ export type CustomElements = {
|
|
|
21705
21705
|
* - `tag`: One chosen option.
|
|
21706
21706
|
* - `tag-dismiss`: The remove button, when `dismissible`.
|
|
21707
21707
|
* - `tag-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
21708
|
-
* - `tag-
|
|
21708
|
+
* - `tag-start`: The category before the label.
|
|
21709
21709
|
* - `tags`: The row of chosen options, when `multiple` is set.
|
|
21710
21710
|
*
|
|
21711
21711
|
* ## CSS States
|
|
@@ -22647,7 +22647,7 @@ export type CustomElements = {
|
|
|
22647
22647
|
* - `date`: One held date, as a tag, in `multiple`.
|
|
22648
22648
|
* - `date-dismiss`: The remove button, when `dismissible`.
|
|
22649
22649
|
* - `date-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
22650
|
-
* - `date-
|
|
22650
|
+
* - `date-start`: The category before the label.
|
|
22651
22651
|
* - `feedback`: What is wrong with it.
|
|
22652
22652
|
* - `field`: The box holding the text and the trigger.
|
|
22653
22653
|
* - `hint`: Help under the field, while nothing is wrong.
|
|
@@ -24090,7 +24090,7 @@ export type CustomElements = {
|
|
|
24090
24090
|
* - `kind`: What kind of file it is.
|
|
24091
24091
|
* - `kind-dismiss`: The remove button, when `dismissible`.
|
|
24092
24092
|
* - `kind-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
24093
|
-
* - `kind-
|
|
24093
|
+
* - `kind-start`: The category before the label.
|
|
24094
24094
|
* - `label`: The question, over the field.
|
|
24095
24095
|
* - `list`: The chosen files.
|
|
24096
24096
|
* - `meta`: The row holding its size and kind.
|
|
@@ -24099,7 +24099,7 @@ export type CustomElements = {
|
|
|
24099
24099
|
* - `size`: How big it is.
|
|
24100
24100
|
* - `size-dismiss`: The remove button, when `dismissible`.
|
|
24101
24101
|
* - `size-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
24102
|
-
* - `size-
|
|
24102
|
+
* - `size-start`: The category before the label.
|
|
24103
24103
|
* - `trigger`: The label that opens the picker.
|
|
24104
24104
|
*
|
|
24105
24105
|
* ## CSS States
|
|
@@ -26414,9 +26414,9 @@ export type CustomElements = {
|
|
|
26414
26414
|
* Areas where markup can be added to the component.
|
|
26415
26415
|
*
|
|
26416
26416
|
* - `(default)`: The label.
|
|
26417
|
+
* - `description`: Secondary text under the label.
|
|
26417
26418
|
* - `end`: Trailing content.
|
|
26418
26419
|
* - `start`: Leading content, usually an icon or an avatar.
|
|
26419
|
-
* - `supporting`: Secondary text under the label.
|
|
26420
26420
|
*
|
|
26421
26421
|
* ## CSS Parts
|
|
26422
26422
|
*
|
|
@@ -27594,7 +27594,7 @@ export type CustomElements = {
|
|
|
27594
27594
|
* Areas where markup can be added to the component.
|
|
27595
27595
|
*
|
|
27596
27596
|
* - `(default)`: The notifications in this group.
|
|
27597
|
-
* - `
|
|
27597
|
+
* - `actions`: Beside the count, for a link to the rest of them.
|
|
27598
27598
|
* - `label`: Replaces the group's name, for a heading that needs a mark in it.
|
|
27599
27599
|
*
|
|
27600
27600
|
* ## Methods
|
|
@@ -27614,7 +27614,7 @@ export type CustomElements = {
|
|
|
27614
27614
|
*
|
|
27615
27615
|
* Custom selectors for styling elements within the component.
|
|
27616
27616
|
*
|
|
27617
|
-
* - `
|
|
27617
|
+
* - `actions`: The trailing region of the header.
|
|
27618
27618
|
* - `count`: How many are in the group.
|
|
27619
27619
|
* - `header`: The label, the count and the action together.
|
|
27620
27620
|
* - `items`: The region holding the notifications.
|
|
@@ -27727,8 +27727,8 @@ export type CustomElements = {
|
|
|
27727
27727
|
*
|
|
27728
27728
|
* - `(default)`: What happened, in the consumer's own markup.
|
|
27729
27729
|
* - `actions`: What a reader can do about it, under the words it is about. Drawn always rather than on hover, because an action is the point of the row and not chrome around it.
|
|
27730
|
-
* - `
|
|
27731
|
-
* - `detail`: A block belonging to the row rather than a line about it: a quoted comment, a status moving from one value to another, a preview. Unlike `
|
|
27730
|
+
* - `description`: A second line qualifying it, quieter than the first. A bare slot rather than a box, so an item without one pays nothing for it; style it through `::slotted()`.
|
|
27731
|
+
* - `detail`: A block belonging to the row rather than a line about it: a quoted comment, a status moving from one value to another, a preview. Unlike `description` nothing here sets a size or an ink, because whatever fills it usually brings its own.
|
|
27732
27732
|
* - `dismiss`: Replaces the glyph inside the dismiss control, which is drawn only where the row is `dismissible`.
|
|
27733
27733
|
* - `media`: An avatar or icon identifying who or what it came from.
|
|
27734
27734
|
*
|
|
@@ -32857,7 +32857,7 @@ export type CustomElements = {
|
|
|
32857
32857
|
* Areas where markup can be added to the component.
|
|
32858
32858
|
*
|
|
32859
32859
|
* - `(default)`: The tag's label.
|
|
32860
|
-
* - `
|
|
32860
|
+
* - `start`: A category the label belongs to, set before it and weightier.
|
|
32861
32861
|
*
|
|
32862
32862
|
* ## Methods
|
|
32863
32863
|
*
|
|
@@ -32871,7 +32871,7 @@ export type CustomElements = {
|
|
|
32871
32871
|
*
|
|
32872
32872
|
* - `dismiss`: The control that asks to remove the tag.
|
|
32873
32873
|
* - `dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
32874
|
-
* - `
|
|
32874
|
+
* - `start`: The category before the label.
|
|
32875
32875
|
*
|
|
32876
32876
|
* ## CSS States
|
|
32877
32877
|
*
|
|
@@ -33379,7 +33379,7 @@ export type CustomElements = {
|
|
|
33379
33379
|
* - `time`: One held time, as a tag, in `multiple`.
|
|
33380
33380
|
* - `time-dismiss`: The remove button, when `dismissible`.
|
|
33381
33381
|
* - `time-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
33382
|
-
* - `time-
|
|
33382
|
+
* - `time-start`: The category before the label.
|
|
33383
33383
|
* - `trigger`: The control that opens the list.
|
|
33384
33384
|
* - `trigger-icon`: The mark on the button that opens the clock.
|
|
33385
33385
|
*
|
|
@@ -35739,8 +35739,8 @@ export type CustomElements = {
|
|
|
35739
35739
|
* Areas where markup can be added to the component.
|
|
35740
35740
|
*
|
|
35741
35741
|
* - `(default)`: `<source>` and `<track>` elements, which are copied into the video.
|
|
35742
|
-
* - `back`: Top left over the frame, for a way out of a set.
|
|
35743
35742
|
* - `controls`: Added to the control bar, before fullscreen.
|
|
35743
|
+
* - `header`: Top left over the frame: a heading, and a way out of a set beside it.
|
|
35744
35744
|
* - `poster`: Shown over the video until it starts.
|
|
35745
35745
|
*
|
|
35746
35746
|
* ## Methods
|
|
@@ -35769,7 +35769,6 @@ export type CustomElements = {
|
|
|
35769
35769
|
*
|
|
35770
35770
|
* Custom selectors for styling elements within the component.
|
|
35771
35771
|
*
|
|
35772
|
-
* - `back`: The region top left, for a way out of a set.
|
|
35773
35772
|
* - `captions`: Subtitles on and off.
|
|
35774
35773
|
* - `captions-menu`: The language menu, where there is more than one.
|
|
35775
35774
|
* - `captions-menu-back`: The control that returns from a submenu.
|
|
@@ -35789,6 +35788,7 @@ export type CustomElements = {
|
|
|
35789
35788
|
* - `failure`: What is said when the source will not play.
|
|
35790
35789
|
* - `forward`: The control that goes on ten seconds.
|
|
35791
35790
|
* - `fullscreen`: The whole screen, and back.
|
|
35791
|
+
* - `header`: The region top left, for a heading and a way out of a set.
|
|
35792
35792
|
* - `loading`: What is said while the picture waits for more of itself. The part of that which spins is drawn on it, which is `::part(loading)::before` from a consumer's sheet: this tier ships no CSS, so a box it renders for one to paint is an empty child costing whatever the consumer's own layout charges for a child. `ListItem` measured that.
|
|
35793
35793
|
* - `more`: The button that opens it.
|
|
35794
35794
|
* - `mute`: Sound on and off.
|
|
@@ -39732,7 +39732,7 @@ export type CustomElementsSolidJs = {
|
|
|
39732
39732
|
* - `tag`: One chosen option.
|
|
39733
39733
|
* - `tag-dismiss`: The remove button, when `dismissible`.
|
|
39734
39734
|
* - `tag-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
39735
|
-
* - `tag-
|
|
39735
|
+
* - `tag-start`: The category before the label.
|
|
39736
39736
|
* - `tags`: The row of chosen options, when `multiple` is set.
|
|
39737
39737
|
*
|
|
39738
39738
|
* ## CSS States
|
|
@@ -40684,7 +40684,7 @@ export type CustomElementsSolidJs = {
|
|
|
40684
40684
|
* - `date`: One held date, as a tag, in `multiple`.
|
|
40685
40685
|
* - `date-dismiss`: The remove button, when `dismissible`.
|
|
40686
40686
|
* - `date-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
40687
|
-
* - `date-
|
|
40687
|
+
* - `date-start`: The category before the label.
|
|
40688
40688
|
* - `feedback`: What is wrong with it.
|
|
40689
40689
|
* - `field`: The box holding the text and the trigger.
|
|
40690
40690
|
* - `hint`: Help under the field, while nothing is wrong.
|
|
@@ -42150,7 +42150,7 @@ export type CustomElementsSolidJs = {
|
|
|
42150
42150
|
* - `kind`: What kind of file it is.
|
|
42151
42151
|
* - `kind-dismiss`: The remove button, when `dismissible`.
|
|
42152
42152
|
* - `kind-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
42153
|
-
* - `kind-
|
|
42153
|
+
* - `kind-start`: The category before the label.
|
|
42154
42154
|
* - `label`: The question, over the field.
|
|
42155
42155
|
* - `list`: The chosen files.
|
|
42156
42156
|
* - `meta`: The row holding its size and kind.
|
|
@@ -42159,7 +42159,7 @@ export type CustomElementsSolidJs = {
|
|
|
42159
42159
|
* - `size`: How big it is.
|
|
42160
42160
|
* - `size-dismiss`: The remove button, when `dismissible`.
|
|
42161
42161
|
* - `size-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
42162
|
-
* - `size-
|
|
42162
|
+
* - `size-start`: The category before the label.
|
|
42163
42163
|
* - `trigger`: The label that opens the picker.
|
|
42164
42164
|
*
|
|
42165
42165
|
* ## CSS States
|
|
@@ -44505,9 +44505,9 @@ export type CustomElementsSolidJs = {
|
|
|
44505
44505
|
* Areas where markup can be added to the component.
|
|
44506
44506
|
*
|
|
44507
44507
|
* - `(default)`: The label.
|
|
44508
|
+
* - `description`: Secondary text under the label.
|
|
44508
44509
|
* - `end`: Trailing content.
|
|
44509
44510
|
* - `start`: Leading content, usually an icon or an avatar.
|
|
44510
|
-
* - `supporting`: Secondary text under the label.
|
|
44511
44511
|
*
|
|
44512
44512
|
* ## CSS Parts
|
|
44513
44513
|
*
|
|
@@ -45710,7 +45710,7 @@ export type CustomElementsSolidJs = {
|
|
|
45710
45710
|
* Areas where markup can be added to the component.
|
|
45711
45711
|
*
|
|
45712
45712
|
* - `(default)`: The notifications in this group.
|
|
45713
|
-
* - `
|
|
45713
|
+
* - `actions`: Beside the count, for a link to the rest of them.
|
|
45714
45714
|
* - `label`: Replaces the group's name, for a heading that needs a mark in it.
|
|
45715
45715
|
*
|
|
45716
45716
|
* ## Methods
|
|
@@ -45730,7 +45730,7 @@ export type CustomElementsSolidJs = {
|
|
|
45730
45730
|
*
|
|
45731
45731
|
* Custom selectors for styling elements within the component.
|
|
45732
45732
|
*
|
|
45733
|
-
* - `
|
|
45733
|
+
* - `actions`: The trailing region of the header.
|
|
45734
45734
|
* - `count`: How many are in the group.
|
|
45735
45735
|
* - `header`: The label, the count and the action together.
|
|
45736
45736
|
* - `items`: The region holding the notifications.
|
|
@@ -45844,8 +45844,8 @@ export type CustomElementsSolidJs = {
|
|
|
45844
45844
|
*
|
|
45845
45845
|
* - `(default)`: What happened, in the consumer's own markup.
|
|
45846
45846
|
* - `actions`: What a reader can do about it, under the words it is about. Drawn always rather than on hover, because an action is the point of the row and not chrome around it.
|
|
45847
|
-
* - `
|
|
45848
|
-
* - `detail`: A block belonging to the row rather than a line about it: a quoted comment, a status moving from one value to another, a preview. Unlike `
|
|
45847
|
+
* - `description`: A second line qualifying it, quieter than the first. A bare slot rather than a box, so an item without one pays nothing for it; style it through `::slotted()`.
|
|
45848
|
+
* - `detail`: A block belonging to the row rather than a line about it: a quoted comment, a status moving from one value to another, a preview. Unlike `description` nothing here sets a size or an ink, because whatever fills it usually brings its own.
|
|
45849
45849
|
* - `dismiss`: Replaces the glyph inside the dismiss control, which is drawn only where the row is `dismissible`.
|
|
45850
45850
|
* - `media`: An avatar or icon identifying who or what it came from.
|
|
45851
45851
|
*
|
|
@@ -51068,7 +51068,7 @@ export type CustomElementsSolidJs = {
|
|
|
51068
51068
|
* Areas where markup can be added to the component.
|
|
51069
51069
|
*
|
|
51070
51070
|
* - `(default)`: The tag's label.
|
|
51071
|
-
* - `
|
|
51071
|
+
* - `start`: A category the label belongs to, set before it and weightier.
|
|
51072
51072
|
*
|
|
51073
51073
|
* ## Methods
|
|
51074
51074
|
*
|
|
@@ -51082,7 +51082,7 @@ export type CustomElementsSolidJs = {
|
|
|
51082
51082
|
*
|
|
51083
51083
|
* - `dismiss`: The control that asks to remove the tag.
|
|
51084
51084
|
* - `dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
51085
|
-
* - `
|
|
51085
|
+
* - `start`: The category before the label.
|
|
51086
51086
|
*
|
|
51087
51087
|
* ## CSS States
|
|
51088
51088
|
*
|
|
@@ -51596,7 +51596,7 @@ export type CustomElementsSolidJs = {
|
|
|
51596
51596
|
* - `time`: One held time, as a tag, in `multiple`.
|
|
51597
51597
|
* - `time-dismiss`: The remove button, when `dismissible`.
|
|
51598
51598
|
* - `time-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
|
|
51599
|
-
* - `time-
|
|
51599
|
+
* - `time-start`: The category before the label.
|
|
51600
51600
|
* - `trigger`: The control that opens the list.
|
|
51601
51601
|
* - `trigger-icon`: The mark on the button that opens the clock.
|
|
51602
51602
|
*
|
|
@@ -53998,8 +53998,8 @@ export type CustomElementsSolidJs = {
|
|
|
53998
53998
|
* Areas where markup can be added to the component.
|
|
53999
53999
|
*
|
|
54000
54000
|
* - `(default)`: `<source>` and `<track>` elements, which are copied into the video.
|
|
54001
|
-
* - `back`: Top left over the frame, for a way out of a set.
|
|
54002
54001
|
* - `controls`: Added to the control bar, before fullscreen.
|
|
54002
|
+
* - `header`: Top left over the frame: a heading, and a way out of a set beside it.
|
|
54003
54003
|
* - `poster`: Shown over the video until it starts.
|
|
54004
54004
|
*
|
|
54005
54005
|
* ## Methods
|
|
@@ -54028,7 +54028,6 @@ export type CustomElementsSolidJs = {
|
|
|
54028
54028
|
*
|
|
54029
54029
|
* Custom selectors for styling elements within the component.
|
|
54030
54030
|
*
|
|
54031
|
-
* - `back`: The region top left, for a way out of a set.
|
|
54032
54031
|
* - `captions`: Subtitles on and off.
|
|
54033
54032
|
* - `captions-menu`: The language menu, where there is more than one.
|
|
54034
54033
|
* - `captions-menu-back`: The control that returns from a submenu.
|
|
@@ -54048,6 +54047,7 @@ export type CustomElementsSolidJs = {
|
|
|
54048
54047
|
* - `failure`: What is said when the source will not play.
|
|
54049
54048
|
* - `forward`: The control that goes on ten seconds.
|
|
54050
54049
|
* - `fullscreen`: The whole screen, and back.
|
|
54050
|
+
* - `header`: The region top left, for a heading and a way out of a set.
|
|
54051
54051
|
* - `loading`: What is said while the picture waits for more of itself. The part of that which spins is drawn on it, which is `::part(loading)::before` from a consumer's sheet: this tier ships no CSS, so a box it renders for one to paint is an empty child costing whatever the consumer's own layout charges for a child. `ListItem` measured that.
|
|
54052
54052
|
* - `more`: The button that opens it.
|
|
54053
54053
|
* - `mute`: Sound on and off.
|