@fusion.dev/helix 0.23.0 → 0.24.1
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 +65204 -38241
- package/dist/accordion/item/accordion-item.css.js +4 -0
- package/dist/announcement/root/announcement-root.css.js +26 -12
- package/dist/announcement/root/announcement-root.d.ts +17 -0
- package/dist/announcement/root/announcement-root.js +4 -0
- package/dist/app-header/root/app-header-root.css.js +6 -0
- package/dist/area-chart/index.d.ts +1 -0
- package/dist/area-chart/index.js +1 -0
- package/dist/area-chart/root/area-chart-root.css.d.ts +1 -0
- package/dist/area-chart/root/area-chart-root.css.js +97 -0
- package/dist/area-chart/root/area-chart-root.d.ts +38 -0
- package/dist/area-chart/root/area-chart-root.js +20 -0
- package/dist/bar-chart/root/bar-chart-root.css.js +0 -141
- package/dist/bar-chart/root/bar-chart-root.js +2 -1
- package/dist/chat/composer/chat-composer.css.js +4 -0
- package/dist/chat/message/chat-message.css.js +20 -0
- package/dist/chat/root/chat-root.css.js +26 -0
- package/dist/code-block/root/code-block-root.css.js +122 -0
- package/dist/code-block/root/code-block-root.d.ts +5 -0
- package/dist/data-table/root/data-table-root.css.js +21 -3
- package/dist/data-table/root/data-table-root.d.ts +1 -0
- package/dist/data-table/root/data-table-root.js +1 -0
- package/dist/description-list/index.d.ts +2 -0
- package/dist/description-list/index.js +2 -0
- package/dist/description-list/item/description-list-item.css.d.ts +1 -0
- package/dist/description-list/item/description-list-item.css.js +31 -0
- package/dist/description-list/item/description-list-item.d.ts +21 -0
- package/dist/description-list/item/description-list-item.js +16 -0
- package/dist/description-list/root/description-list-root.css.d.ts +1 -0
- package/dist/description-list/root/description-list-root.css.js +35 -0
- package/dist/description-list/root/description-list-root.d.ts +62 -0
- package/dist/description-list/root/description-list-root.js +23 -0
- package/dist/donut-chart/root/donut-chart-root.css.js +0 -138
- package/dist/donut-chart/root/donut-chart-root.js +2 -1
- package/dist/element-events.generated.js +36 -8
- package/dist/filter-input/chip/filter-chip.css.d.ts +1 -0
- package/dist/filter-input/chip/filter-chip.css.js +85 -0
- package/dist/filter-input/chip/filter-chip.d.ts +32 -0
- package/dist/filter-input/chip/filter-chip.js +16 -0
- package/dist/filter-input/field/filter-field.css.d.ts +1 -0
- package/dist/filter-input/field/filter-field.css.js +4 -0
- package/dist/filter-input/field/filter-field.d.ts +29 -0
- package/dist/filter-input/field/filter-field.js +16 -0
- package/dist/filter-input/index.d.ts +4 -0
- package/dist/filter-input/index.js +4 -0
- package/dist/filter-input/menu/filter-menu.css.d.ts +1 -0
- package/dist/filter-input/menu/filter-menu.css.js +4 -0
- package/dist/filter-input/menu/filter-menu.d.ts +33 -0
- package/dist/filter-input/menu/filter-menu.js +19 -0
- package/dist/filter-input/operator/filter-operator.css.d.ts +1 -0
- package/dist/filter-input/operator/filter-operator.css.js +4 -0
- package/dist/filter-input/operator/filter-operator.d.ts +27 -0
- package/dist/filter-input/operator/filter-operator.js +16 -0
- package/dist/filter-input/root/filter-input-root.css.js +25 -2
- package/dist/filter-input/root/filter-input-root.d.ts +3 -0
- package/dist/heatmap/root/heatmap-root.d.ts +1 -0
- package/dist/heatmap/root/heatmap-root.js +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/line-chart/root/line-chart-root.css.js +0 -138
- package/dist/line-chart/root/line-chart-root.js +2 -1
- package/dist/menu/item/menu-item.css.js +8 -2
- package/dist/menu/root/menu-root.css.js +4 -0
- package/dist/navigation/root/navigation-root.css.js +2 -1
- package/dist/notifications/group/notification-group.css.d.ts +1 -0
- package/dist/notifications/group/notification-group.css.js +61 -0
- package/dist/notifications/group/notification-group.d.ts +37 -0
- package/dist/notifications/group/notification-group.js +16 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +1 -0
- package/dist/notifications/notification/notification.css.js +74 -8
- package/dist/notifications/notification/notification.d.ts +25 -0
- package/dist/notifications/notification/notification.js +5 -0
- package/dist/notifications/root/notifications-root.css.js +8 -0
- package/dist/object-inspector/index.d.ts +1 -0
- package/dist/object-inspector/index.js +1 -0
- package/dist/object-inspector/root/object-inspector-root.css.d.ts +1 -0
- package/dist/object-inspector/root/object-inspector-root.css.js +148 -0
- package/dist/object-inspector/root/object-inspector-root.d.ts +35 -0
- package/dist/object-inspector/root/object-inspector-root.js +18 -0
- package/dist/sandbox/root/sandbox-root.d.ts +4 -0
- package/dist/sandbox/status-bar/sandbox-status-bar.css.js +1 -1
- package/dist/sandbox/toolbar/sandbox-toolbar.css.js +7 -1
- package/dist/scatter-chart/index.d.ts +1 -0
- package/dist/scatter-chart/index.js +1 -0
- package/dist/scatter-chart/root/scatter-chart-root.css.d.ts +1 -0
- package/dist/scatter-chart/root/scatter-chart-root.css.js +138 -0
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +38 -0
- package/dist/scatter-chart/root/scatter-chart-root.js +20 -0
- package/dist/shared/chart/tooltip.css.d.ts +1 -0
- package/dist/shared/chart/tooltip.css.js +141 -0
- package/dist/skip-link/index.d.ts +1 -0
- package/dist/skip-link/index.js +1 -0
- package/dist/skip-link/root/skip-link-root.css.d.ts +1 -0
- package/dist/skip-link/root/skip-link-root.css.js +36 -0
- package/dist/skip-link/root/skip-link-root.d.ts +42 -0
- package/dist/skip-link/root/skip-link-root.js +17 -0
- package/dist/steps/step/step.css.js +4 -0
- package/dist/table/column/table-column.css.js +66 -0
- package/dist/tag/root/tag-root.d.ts +10 -0
- package/dist/text/root/text-root.d.ts +26 -13
- package/dist/text/root/text-root.js +3 -0
- package/dist/toast/item/toast-item.css.js +9 -4
- package/dist/toolbar/root/toolbar-root.css.js +6 -0
- package/package.json +6 -6
- package/types/jsx.d.ts +4790 -698
- package/types/svelte.d.ts +11 -0
- package/types/vue.d.ts +907 -51
|
@@ -75,9 +75,131 @@ font-size: var(--helix-text-sm);
|
|
|
75
75
|
line-height: var(--helix-leading-normal);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
:host([diff]) {
|
|
79
|
+
gap: var(--helix-space-md);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host([diff]) [part="file"] {
|
|
83
|
+
container-type: inline-size;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([diff]) [part="block"],
|
|
89
|
+
[part="old"],
|
|
90
|
+
[part="new"] {
|
|
91
|
+
backdrop-filter: var(--code-block-backdrop, none);
|
|
92
|
+
background-color: var(--code-block-background-color, var(--helix-color-background));
|
|
93
|
+
border: var(--helix-border-thin) solid var(--code-block-border-color, var(--helix-color-border));
|
|
94
|
+
border-radius: var(--code-block-radius, var(--helix-radii-lg));
|
|
95
|
+
margin: var(--helix-space-none);
|
|
96
|
+
min-inline-size: 0;
|
|
97
|
+
overflow-x: auto;
|
|
98
|
+
|
|
99
|
+
padding-block: var(--helix-space-none) var(--helix-space-sm);
|
|
100
|
+
padding-inline: var(--helix-space-none);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[part="header"] + [part="frame"] [part="split"] > * {
|
|
104
|
+
border-block-start-width: var(--helix-space-none);
|
|
105
|
+
border-start-end-radius: var(--helix-radii-none);
|
|
106
|
+
border-start-start-radius: var(--helix-radii-none);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[part="split"] {
|
|
110
|
+
display: grid;
|
|
111
|
+
gap: var(--helix-space-xs);
|
|
112
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@container (inline-size < 40rem) {
|
|
116
|
+
[part="split"] {
|
|
117
|
+
grid-template-columns: minmax(0, 1fr);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([diff]) [part="code"] {
|
|
122
|
+
display: inline-block;
|
|
123
|
+
min-inline-size: 100%;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
[part="hunk"],
|
|
127
|
+
[part="context"],
|
|
128
|
+
[part="added"],
|
|
129
|
+
[part="removed"],
|
|
130
|
+
[part="filler"] {
|
|
131
|
+
display: flex;
|
|
132
|
+
padding-inline: var(--helix-space-md);
|
|
133
|
+
text-decoration: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:host(:not([no-copy])) :is([part="hunk"], [part="context"], [part="added"], [part="removed"]) {
|
|
137
|
+
padding-inline-end: calc(var(--helix-size-control) + var(--helix-space-sm));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[part="hunk"] {
|
|
141
|
+
background-color: var(--helix-color-surface-sunken);
|
|
142
|
+
color: var(--helix-color-foreground-muted);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[part="added"] {
|
|
146
|
+
background-color: color-mix(
|
|
147
|
+
in srgb,
|
|
148
|
+
var(--helix-color-success) 14%,
|
|
149
|
+
var(--code-block-background-color, var(--helix-color-background))
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[part="removed"] {
|
|
154
|
+
background-color: color-mix(
|
|
155
|
+
in srgb,
|
|
156
|
+
var(--helix-color-danger) 14%,
|
|
157
|
+
var(--code-block-background-color, var(--helix-color-background))
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[part="marker"] {
|
|
162
|
+
padding-inline-end: var(--helix-space-xs);
|
|
163
|
+
user-select: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[part="added"] [part="marker"] {
|
|
167
|
+
color: color-mix(in oklab, var(--helix-color-success) 55%, var(--helix-color-foreground));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[part="removed"] [part="marker"] {
|
|
171
|
+
color: color-mix(in oklab, var(--helix-color-danger) 55%, var(--helix-color-foreground));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[part="filler"] {
|
|
175
|
+
background-color: var(--helix-color-surface-sunken);
|
|
176
|
+
min-block-size: 1lh;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
[part="number"] {
|
|
180
|
+
color: var(--helix-color-foreground-muted);
|
|
181
|
+
font-variant-numeric: tabular-nums;
|
|
182
|
+
padding-inline-end: var(--helix-space-sm);
|
|
183
|
+
user-select: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
78
186
|
@media print {
|
|
79
187
|
:host {
|
|
80
188
|
background-color: transparent;
|
|
81
189
|
box-shadow: none;
|
|
82
190
|
}
|
|
191
|
+
|
|
192
|
+
:host([diff]) [part="block"],
|
|
193
|
+
[part="old"],
|
|
194
|
+
[part="new"] {
|
|
195
|
+
overflow: visible;
|
|
196
|
+
white-space: pre-wrap;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
[part="added"],
|
|
200
|
+
[part="removed"],
|
|
201
|
+
[part="hunk"],
|
|
202
|
+
[part="filler"] {
|
|
203
|
+
print-color-adjust: exact;
|
|
204
|
+
}
|
|
83
205
|
}`);
|
|
@@ -9,6 +9,11 @@ import '../../copy-button/index.js';
|
|
|
9
9
|
* the usual build, the copy button covers the first line, which is the one line
|
|
10
10
|
* of a snippet a reader is most likely to be reading.
|
|
11
11
|
*
|
|
12
|
+
* A diff is drawn a block per file in the same frame, each changed line washed
|
|
13
|
+
* in its tone at Tag's resting strength with its `+` or `-` in the tone's ink,
|
|
14
|
+
* so the change does not rest on telling two pale grounds apart. A split diff
|
|
15
|
+
* stacks its two versions below about 40rem of the file's own width.
|
|
16
|
+
*
|
|
12
17
|
* @since 0.1.0
|
|
13
18
|
* @status stable
|
|
14
19
|
* @category typography
|
|
@@ -46,9 +46,27 @@ text-align: start;
|
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
[part="select"],
|
|
50
|
+
[part="select-all"] {
|
|
51
|
+
align-items: center;
|
|
52
|
+
border-block-end: var(--helix-border-thin) solid
|
|
53
|
+
var(--data-table-rule-color, var(--helix-color-border));
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
padding-block: var(--data-table-padding-block, var(--helix-space-sm));
|
|
57
|
+
padding-inline: var(--data-table-padding-inline, var(--helix-space-sm));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[part="row"]:last-of-type [part="select"] {
|
|
61
|
+
border-block-end-color: transparent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[part="row"][aria-selected="true"] > * {
|
|
65
|
+
background-color: color-mix(
|
|
66
|
+
in srgb,
|
|
67
|
+
var(--helix-color-primary) 10%,
|
|
68
|
+
var(--helix-color-background)
|
|
69
|
+
);
|
|
52
70
|
}
|
|
53
71
|
|
|
54
72
|
[part="toolbar"][data-empty],
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { customElement } from '@fusion.dev/helix-core';
|
|
8
8
|
import { HelixHeadlessDataTable } from '@fusion.dev/helix-headless/data-table';
|
|
9
9
|
import { styles } from './data-table-root.css.js';
|
|
10
|
+
import '../../checkbox/index.js';
|
|
10
11
|
import '../../pagination/index.js';
|
|
11
12
|
import '../../table/index.js';
|
|
12
13
|
let HelixDataTable = class HelixDataTable extends HelixHeadlessDataTable {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
+
export const styles = createSheet(`:host {
|
|
3
|
+
align-items: baseline;
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-column: 1 / -1;
|
|
6
|
+
grid-template-columns: subgrid;
|
|
7
|
+
row-gap: var(--helix-space-2xs);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[part="label"] {
|
|
11
|
+
color: var(--helix-color-foreground-muted);
|
|
12
|
+
font-size: var(--helix-text-sm);
|
|
13
|
+
font-weight: var(--helix-weight-medium);
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[part="value"] {
|
|
18
|
+
color: var(--helix-color-foreground);
|
|
19
|
+
font-variant-numeric: var(--_description-list-value-figures, normal);
|
|
20
|
+
justify-self: var(--_description-list-value-align, stretch);
|
|
21
|
+
margin: 0;
|
|
22
|
+
min-inline-size: 0;
|
|
23
|
+
overflow-wrap: anywhere;
|
|
24
|
+
text-align: var(--_description-list-value-align, start);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media print {
|
|
28
|
+
:host {
|
|
29
|
+
break-inside: avoid;
|
|
30
|
+
}
|
|
31
|
+
}`);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HelixHeadlessDescriptionListItem } from '@fusion.dev/helix-headless/description-list';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary One label and its value.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* A subgrid of the list, so the label and value stay one element, and one pair
|
|
8
|
+
* to a screen reader, while lining up with every other pair in the list.
|
|
9
|
+
*
|
|
10
|
+
* @since 0.1.0
|
|
11
|
+
* @status experimental
|
|
12
|
+
* @documentation https://helix.fusion.dev/components/description-list
|
|
13
|
+
*/
|
|
14
|
+
export declare class HelixDescriptionListItem extends HelixHeadlessDescriptionListItem {
|
|
15
|
+
static styles: CSSResultGroup;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'helix-description-list-item': HelixDescriptionListItem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { customElement } from '@fusion.dev/helix-core';
|
|
8
|
+
import { HelixHeadlessDescriptionListItem } from '@fusion.dev/helix-headless/description-list';
|
|
9
|
+
import { styles } from './description-list-item.css.js';
|
|
10
|
+
let HelixDescriptionListItem = class HelixDescriptionListItem extends HelixHeadlessDescriptionListItem {
|
|
11
|
+
static { this.styles = styles; }
|
|
12
|
+
};
|
|
13
|
+
HelixDescriptionListItem = __decorate([
|
|
14
|
+
customElement('helix-description-list-item')
|
|
15
|
+
], HelixDescriptionListItem);
|
|
16
|
+
export { HelixDescriptionListItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
+
export const styles = createSheet(`:host {
|
|
3
|
+
container-type: inline-size;
|
|
4
|
+
display: block;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[part="list"] {
|
|
8
|
+
display: grid;
|
|
9
|
+
gap: var(--description-list-gap, var(--helix-space-md));
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([direction="row"]) [part="list"] {
|
|
14
|
+
column-gap: var(--helix-space-lg);
|
|
15
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
16
|
+
row-gap: var(--description-list-gap, var(--helix-space-sm));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@container (inline-size < 22rem) {
|
|
20
|
+
:host([direction="row"]) [part="list"] {
|
|
21
|
+
grid-template-columns: minmax(0, 1fr);
|
|
22
|
+
row-gap: var(--description-list-gap, var(--helix-space-md));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([width="auto"]) {
|
|
27
|
+
container-type: normal;
|
|
28
|
+
inline-size: fit-content;
|
|
29
|
+
max-inline-size: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([direction="row"][justify="between"]) {
|
|
33
|
+
--_description-list-value-align: end;
|
|
34
|
+
--_description-list-value-figures: tabular-nums;
|
|
35
|
+
}`);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { HelixHeadlessDescriptionList } from '@fusion.dev/helix-headless/description-list';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary Labels and their values, read as pairs: the details panel every
|
|
5
|
+
* product has.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* Each label is quiet and each value takes the text around it, so the eye goes
|
|
9
|
+
* to the values and the labels are there to find them by. With
|
|
10
|
+
* `direction="row"` the labels share one column, as wide as the longest of
|
|
11
|
+
* them, and the values start on one line beside it.
|
|
12
|
+
*
|
|
13
|
+
* **Beside falls back to over below about 22rem of its own width**, measured on
|
|
14
|
+
* the list rather than on the viewport, since a details panel is as often a
|
|
15
|
+
* sidebar on a wide screen as the whole of a narrow one. Below that the label
|
|
16
|
+
* column leaves the values too little room to be read.
|
|
17
|
+
*
|
|
18
|
+
* **`width="auto"` with `justify="between"` is a summary**: the list as wide as
|
|
19
|
+
* its widest pair, labels on the start edge and values on the end one in
|
|
20
|
+
* figures of one width, which is how a set of totals is read.
|
|
21
|
+
*
|
|
22
|
+
* @since 0.1.0
|
|
23
|
+
* @status experimental
|
|
24
|
+
* @category data
|
|
25
|
+
* @aliases Data list, Key-value list, Details, Properties
|
|
26
|
+
* @documentation https://helix.fusion.dev/components/description-list
|
|
27
|
+
*
|
|
28
|
+
* @cssproperty --description-list-gap - Space between one pair and the next.
|
|
29
|
+
*/
|
|
30
|
+
export declare class HelixDescriptionList extends HelixHeadlessDescriptionList {
|
|
31
|
+
static styles: CSSResultGroup;
|
|
32
|
+
/**
|
|
33
|
+
* Where the values sit, beside their labels.
|
|
34
|
+
*
|
|
35
|
+
* Absent, each value starts right after the label column. `between` sets it on
|
|
36
|
+
* the end edge instead, with the label on the start one, and in figures of one
|
|
37
|
+
* width so a column of numbers lines up by its digits. Only with
|
|
38
|
+
* `direction="row"`: stacked, a label and its value share one edge already.
|
|
39
|
+
*
|
|
40
|
+
* Flex's word for the same thing, and a grid rather than a flex row
|
|
41
|
+
* underneath, so the labels still share one column while the values share an
|
|
42
|
+
* end.
|
|
43
|
+
*/
|
|
44
|
+
justify?: 'between';
|
|
45
|
+
/**
|
|
46
|
+
* How wide the list is.
|
|
47
|
+
*
|
|
48
|
+
* Absent, it fills the row it is in. `auto` is as wide as its widest pair,
|
|
49
|
+
* which is what a summary beside other content wants.
|
|
50
|
+
*
|
|
51
|
+
* **At `auto` the list does not stack when narrow.** The fallback measures the
|
|
52
|
+
* list's own width, and a list sized by its content has no width of its own to
|
|
53
|
+
* measure: containment would size it to nothing. It is capped at its container
|
|
54
|
+
* instead, and a long value wraps inside its column.
|
|
55
|
+
*/
|
|
56
|
+
width?: 'auto';
|
|
57
|
+
}
|
|
58
|
+
declare global {
|
|
59
|
+
interface HTMLElementTagNameMap {
|
|
60
|
+
'helix-description-list': HelixDescriptionList;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { customElement } from '@fusion.dev/helix-core';
|
|
8
|
+
import { HelixHeadlessDescriptionList } from '@fusion.dev/helix-headless/description-list';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
10
|
+
import { styles } from './description-list-root.css.js';
|
|
11
|
+
let HelixDescriptionList = class HelixDescriptionList extends HelixHeadlessDescriptionList {
|
|
12
|
+
static { this.styles = styles; }
|
|
13
|
+
};
|
|
14
|
+
__decorate([
|
|
15
|
+
property({ reflect: true })
|
|
16
|
+
], HelixDescriptionList.prototype, "justify", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
property({ reflect: true })
|
|
19
|
+
], HelixDescriptionList.prototype, "width", void 0);
|
|
20
|
+
HelixDescriptionList = __decorate([
|
|
21
|
+
customElement('helix-description-list')
|
|
22
|
+
], HelixDescriptionList);
|
|
23
|
+
export { HelixDescriptionList };
|
|
@@ -67,144 +67,6 @@ text-align: center;
|
|
|
67
67
|
stroke: var(--chart-series);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
[part="mark"] {
|
|
71
|
-
block-size: 1px;
|
|
72
|
-
inline-size: 1px;
|
|
73
|
-
pointer-events: none;
|
|
74
|
-
position: absolute;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
[part="tooltip-anchor"] {
|
|
78
|
-
inset: 0;
|
|
79
|
-
pointer-events: none;
|
|
80
|
-
position: absolute;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
[part="tooltip-label"] {
|
|
84
|
-
color: var(--helix-color-foreground-muted);
|
|
85
|
-
display: block;
|
|
86
|
-
font-weight: var(--helix-weight-medium);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
[part="tooltip-cell"] {
|
|
90
|
-
align-items: baseline;
|
|
91
|
-
display: flex;
|
|
92
|
-
gap: var(--helix-space-sm);
|
|
93
|
-
justify-content: space-between;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
[part="tooltip-name"] {
|
|
97
|
-
color: var(--helix-color-foreground-muted);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
[part="tooltip-value"] {
|
|
101
|
-
font-variant-numeric: tabular-nums;
|
|
102
|
-
font-weight: var(--helix-weight-medium);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
[part="tooltip-cell"][data-series]::before {
|
|
106
|
-
block-size: 0.5em;
|
|
107
|
-
border-radius: var(--helix-radii-full);
|
|
108
|
-
content: "";
|
|
109
|
-
inline-size: 0.5em;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
[part="tooltip-cell"][data-series="1"]::before {
|
|
113
|
-
background-color: var(--helix-color-series-1);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
[part="tooltip-cell"][data-series="2"]::before {
|
|
117
|
-
background-color: var(--helix-color-series-2);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
[part="tooltip-cell"][data-series="3"]::before {
|
|
121
|
-
background-color: var(--helix-color-series-3);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
[part="tooltip-cell"][data-series="4"]::before {
|
|
125
|
-
background-color: var(--helix-color-series-4);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
[part="tooltip-cell"][data-series="5"]::before {
|
|
129
|
-
background-color: var(--helix-color-series-5);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
[part="tooltip-cell"][data-series="6"]::before {
|
|
133
|
-
background-color: var(--helix-color-series-6);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
[part="tooltip-cell"][data-series="7"]::before {
|
|
137
|
-
background-color: var(--helix-color-series-7);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
[part="tooltip-cell"][data-series="8"]::before {
|
|
141
|
-
background-color: var(--helix-color-series-8);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
[part="tooltip-cell"][data-series="9"]::before {
|
|
145
|
-
background-color: var(--helix-color-series-9);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
[part="tooltip-cell"][data-series="10"]::before {
|
|
149
|
-
background-color: var(--helix-color-series-10);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
[part="tooltip-cell"][data-series="11"]::before {
|
|
153
|
-
background-color: var(--helix-color-series-11);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
[part="tooltip-cell"][data-series="12"]::before {
|
|
157
|
-
background-color: var(--helix-color-series-12);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
[part="tooltip-cell"][data-series="13"]::before {
|
|
161
|
-
background-color: var(--helix-color-series-13);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
[part="tooltip-cell"][data-series="14"]::before {
|
|
165
|
-
background-color: var(--helix-color-series-14);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
[part="tooltip-cell"][data-series="15"]::before {
|
|
169
|
-
background-color: var(--helix-color-series-15);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
[part="tooltip-cell"][data-series="16"]::before {
|
|
173
|
-
background-color: var(--helix-color-series-16);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
[part="tooltip-cell"][data-series="17"]::before {
|
|
177
|
-
background-color: var(--helix-color-series-17);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
[part="tooltip-cell"][data-series="18"]::before {
|
|
181
|
-
background-color: var(--helix-color-series-18);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
[part="tooltip-cell"][data-series="19"]::before {
|
|
185
|
-
background-color: var(--helix-color-series-19);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
[part="tooltip-cell"][data-series="20"]::before {
|
|
189
|
-
background-color: var(--helix-color-series-20);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
[part="tooltip-cell"][data-series="21"]::before {
|
|
193
|
-
background-color: var(--helix-color-series-21);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
[part="tooltip-cell"][data-series="22"]::before {
|
|
197
|
-
background-color: var(--helix-color-series-22);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
[part="tooltip-cell"][data-series="23"]::before {
|
|
201
|
-
background-color: var(--helix-color-series-23);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
[part="tooltip-cell"][data-series="24"]::before {
|
|
205
|
-
background-color: var(--helix-color-series-24);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
70
|
[part="segment"][data-active] {
|
|
209
71
|
stroke-width: calc(var(--donut-chart-stroke) * 1.18);
|
|
210
72
|
}
|
|
@@ -8,11 +8,12 @@ import { customElement } from '@fusion.dev/helix-core';
|
|
|
8
8
|
import { HelixHeadlessDonutChart } from '@fusion.dev/helix-headless/donut-chart';
|
|
9
9
|
import { property } from 'lit/decorators.js';
|
|
10
10
|
import { styles as seriesStyles } from '../../shared/chart/series.css.js';
|
|
11
|
+
import { styles as tooltipStyles } from '../../shared/chart/tooltip.css.js';
|
|
11
12
|
import { styles } from './donut-chart-root.css.js';
|
|
12
13
|
import '../../tooltip/index.js';
|
|
13
14
|
let HelixDonutChart = class HelixDonutChart extends HelixHeadlessDonutChart {
|
|
14
15
|
static { this.tier = 'helix-'; }
|
|
15
|
-
static { this.styles = [seriesStyles, styles]; }
|
|
16
|
+
static { this.styles = [seriesStyles, tooltipStyles, styles]; }
|
|
16
17
|
};
|
|
17
18
|
__decorate([
|
|
18
19
|
property({ reflect: true })
|
|
@@ -5,7 +5,7 @@ registerElementEvents({
|
|
|
5
5
|
'helix-app-header': ['helix-scrolled'],
|
|
6
6
|
'helix-avatar': ['error', 'load'],
|
|
7
7
|
'helix-carousel': ['helix-select'],
|
|
8
|
-
'helix-chat': ['helix-before-pin'],
|
|
8
|
+
'helix-chat': ['helix-before-pin', 'helix-history', 'helix-send'],
|
|
9
9
|
'helix-chat-composer': ['helix-send'],
|
|
10
10
|
'helix-chat-message': ['helix-send'],
|
|
11
11
|
'helix-checkbox': ['change', 'helix-before-toggle', 'input'],
|
|
@@ -38,7 +38,13 @@ registerElementEvents({
|
|
|
38
38
|
],
|
|
39
39
|
'helix-command': ['helix-before-close', 'helix-before-open', 'helix-select', 'toggle'],
|
|
40
40
|
'helix-copy-button': ['helix-copy'],
|
|
41
|
-
'helix-data-table': [
|
|
41
|
+
'helix-data-table': [
|
|
42
|
+
'helix-filter',
|
|
43
|
+
'helix-navigate',
|
|
44
|
+
'helix-reorder',
|
|
45
|
+
'helix-select',
|
|
46
|
+
'helix-sort',
|
|
47
|
+
],
|
|
42
48
|
'helix-date-input': [
|
|
43
49
|
'change',
|
|
44
50
|
'helix-before-change',
|
|
@@ -53,14 +59,19 @@ registerElementEvents({
|
|
|
53
59
|
'helix-drilldown': ['helix-select'],
|
|
54
60
|
'helix-drilldown-item': ['helix-select'],
|
|
55
61
|
'helix-file-input': ['change', 'helix-before-change', 'input'],
|
|
62
|
+
'helix-filter-chip': ['helix-dismiss'],
|
|
56
63
|
'helix-filter-input': [
|
|
57
64
|
'change',
|
|
58
65
|
'helix-before-change',
|
|
59
66
|
'helix-before-close',
|
|
60
67
|
'helix-before-open',
|
|
68
|
+
'helix-dismiss',
|
|
69
|
+
'helix-facet',
|
|
70
|
+
'helix-select',
|
|
61
71
|
'input',
|
|
62
72
|
'toggle',
|
|
63
73
|
],
|
|
74
|
+
'helix-filter-menu': ['helix-facet'],
|
|
64
75
|
'helix-heatmap': ['helix-resize'],
|
|
65
76
|
'helix-image': ['error', 'load'],
|
|
66
77
|
'helix-input': ['change', 'helix-before-change', 'input'],
|
|
@@ -70,8 +81,10 @@ registerElementEvents({
|
|
|
70
81
|
'helix-menu': ['helix-before-close', 'helix-before-open', 'helix-select', 'toggle'],
|
|
71
82
|
'helix-menu-item': ['helix-select'],
|
|
72
83
|
'helix-notification': ['helix-dismiss', 'helix-read'],
|
|
73
|
-
'helix-
|
|
84
|
+
'helix-notification-group': ['helix-before-close', 'helix-before-open'],
|
|
85
|
+
'helix-notifications': ['helix-dismiss', 'helix-read'],
|
|
74
86
|
'helix-number-input': ['change', 'helix-before-change', 'input'],
|
|
87
|
+
'helix-object-inspector': ['helix-copy'],
|
|
75
88
|
'helix-option': ['helix-select'],
|
|
76
89
|
'helix-outline': ['helix-before-activate'],
|
|
77
90
|
'helix-pagination': ['helix-navigate'],
|
|
@@ -79,9 +92,16 @@ registerElementEvents({
|
|
|
79
92
|
'helix-pin-input': ['change', 'helix-before-change', 'helix-complete', 'input'],
|
|
80
93
|
'helix-popover': ['helix-before-close', 'helix-before-open', 'toggle'],
|
|
81
94
|
'helix-radio': ['helix-select'],
|
|
82
|
-
'helix-radio-group': ['change', 'helix-before-change', 'input'],
|
|
95
|
+
'helix-radio-group': ['change', 'helix-before-change', 'helix-select', 'input'],
|
|
83
96
|
'helix-rating': ['change', 'helix-before-change', 'input'],
|
|
84
|
-
'helix-sandbox': [
|
|
97
|
+
'helix-sandbox': [
|
|
98
|
+
'helix-before-edit',
|
|
99
|
+
'helix-before-panel-resize',
|
|
100
|
+
'helix-before-split',
|
|
101
|
+
'helix-caret',
|
|
102
|
+
'helix-console',
|
|
103
|
+
'helix-resize',
|
|
104
|
+
],
|
|
85
105
|
'helix-sandbox-preview': ['helix-console', 'helix-resize'],
|
|
86
106
|
'helix-sandbox-source': ['helix-before-edit', 'helix-caret'],
|
|
87
107
|
'helix-select': [
|
|
@@ -93,13 +113,14 @@ registerElementEvents({
|
|
|
93
113
|
'toggle',
|
|
94
114
|
],
|
|
95
115
|
'helix-slider': ['change', 'helix-before-change', 'input'],
|
|
96
|
-
'helix-speed-dial': ['helix-before-close', 'helix-before-open', 'toggle'],
|
|
116
|
+
'helix-speed-dial': ['helix-before-close', 'helix-before-open', 'helix-select', 'toggle'],
|
|
97
117
|
'helix-speed-dial-item': ['helix-select'],
|
|
98
118
|
'helix-splitter': ['helix-before-collapse', 'helix-before-resize'],
|
|
99
119
|
'helix-step': ['helix-select'],
|
|
100
|
-
'helix-steps': ['helix-activate', 'helix-before-activate'],
|
|
120
|
+
'helix-steps': ['helix-activate', 'helix-before-activate', 'helix-select'],
|
|
101
121
|
'helix-switch': ['change', 'helix-before-toggle', 'input'],
|
|
102
122
|
'helix-tab': ['helix-select'],
|
|
123
|
+
'helix-table-column': ['helix-before-resize'],
|
|
103
124
|
'helix-tabs': ['helix-activate', 'helix-before-activate', 'helix-select'],
|
|
104
125
|
'helix-tag': ['helix-dismiss'],
|
|
105
126
|
'helix-textarea': ['change', 'helix-before-change', 'input'],
|
|
@@ -112,11 +133,18 @@ registerElementEvents({
|
|
|
112
133
|
'toggle',
|
|
113
134
|
],
|
|
114
135
|
'helix-time-picker': ['change', 'helix-before-change', 'input'],
|
|
136
|
+
'helix-toast': ['helix-dismiss'],
|
|
115
137
|
'helix-toast-item': ['helix-dismiss'],
|
|
116
138
|
'helix-toggle': ['helix-select'],
|
|
117
139
|
'helix-toggle-group': ['change', 'helix-before-change', 'helix-select', 'input'],
|
|
118
140
|
'helix-tooltip': ['helix-before-close', 'helix-before-open', 'toggle'],
|
|
119
|
-
'helix-tour': [
|
|
141
|
+
'helix-tour': [
|
|
142
|
+
'helix-before-activate',
|
|
143
|
+
'helix-before-close',
|
|
144
|
+
'helix-complete',
|
|
145
|
+
'helix-tour-ask',
|
|
146
|
+
'toggle',
|
|
147
|
+
],
|
|
120
148
|
'helix-tour-stop': ['helix-tour-ask'],
|
|
121
149
|
'helix-tree': ['helix-activate', 'helix-before-activate', 'helix-select'],
|
|
122
150
|
'helix-tree-item': ['helix-before-close', 'helix-before-open', 'helix-select', 'toggle'],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|