@fusion.dev/helix 0.22.0 → 0.24.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 +63613 -38645
- 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/button/root/button-root.css.js +4 -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 +33 -6
- package/dist/menu/item/menu-item.d.ts +2 -1
- package/dist/menu/root/menu-root.css.js +15 -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/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/time-picker/root/time-picker-root.css.js +2 -2
- 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 +4797 -701
- package/types/svelte.d.ts +11 -0
- package/types/vue.d.ts +910 -52
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
+
export const styles = createSheet(`:host {
|
|
3
|
+
align-items: center;
|
|
4
|
+
background-color: var(--filter-input-chip-background-color, var(--helix-color-surface-sunken));
|
|
5
|
+
border: var(--helix-border-thin) solid
|
|
6
|
+
var(--filter-input-chip-border-color, var(--helix-color-border));
|
|
7
|
+
border-radius: var(--filter-input-chip-radius, var(--helix-radii-sm));
|
|
8
|
+
color: var(--helix-color-foreground);
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
font-family: var(--helix-font-sans);
|
|
11
|
+
font-size: var(--helix-text-sm);
|
|
12
|
+
|
|
13
|
+
gap: var(--helix-space-none);
|
|
14
|
+
line-height: var(--helix-leading-normal);
|
|
15
|
+
max-inline-size: 100%;
|
|
16
|
+
|
|
17
|
+
min-block-size: var(--helix-size-tag);
|
|
18
|
+
padding-inline: var(--helix-space-xs);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
--helix-size-control: var(--helix-size-control-sm);
|
|
23
|
+
--helix-size-control-loose: calc(var(--helix-size-control) * 1.2);
|
|
24
|
+
--helix-size-control-tight: calc(var(--helix-size-control) * 0.8);
|
|
25
|
+
--helix-size-icon: var(--helix-size-icon-sm);
|
|
26
|
+
--helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);
|
|
27
|
+
--helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[part="field"] {
|
|
31
|
+
color: var(--helix-color-foreground-muted);
|
|
32
|
+
padding-inline-end: var(--helix-space-2xs);
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[part="operator"] {
|
|
37
|
+
align-items: center;
|
|
38
|
+
color: var(--helix-color-foreground-subtle);
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
padding-inline-end: var(--helix-space-2xs);
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[part="values"] {
|
|
45
|
+
font-weight: var(--helix-weight-medium);
|
|
46
|
+
min-inline-size: 0;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[part="dismiss"] {
|
|
53
|
+
background: none;
|
|
54
|
+
block-size: var(--helix-size-icon);
|
|
55
|
+
border: 0;
|
|
56
|
+
border-radius: var(--helix-radii-sm);
|
|
57
|
+
color: var(--helix-color-foreground-subtle);
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
display: grid;
|
|
60
|
+
inline-size: var(--helix-size-icon);
|
|
61
|
+
margin-inline-start: var(--helix-space-2xs);
|
|
62
|
+
padding: var(--helix-space-none);
|
|
63
|
+
place-items: center;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part="dismiss-mark"] {
|
|
67
|
+
block-size: var(--icon-size, 0.85em);
|
|
68
|
+
inline-size: var(--icon-size, 0.85em);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[part="dismiss"]:hover {
|
|
72
|
+
background-color: color-mix(in oklab, currentcolor 12%, transparent);
|
|
73
|
+
color: var(--helix-color-foreground);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[part="dismiss"]:focus-visible {
|
|
77
|
+
outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
|
|
78
|
+
outline-offset: var(--helix-size-focus-offset);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media print {
|
|
82
|
+
[part="dismiss"] {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
}`);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HelixHeadlessFilterChip } from '@fusion.dev/helix-headless/filter-input';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary One filter in force: a field, how it is compared, and to what.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* Three segments and a control, drawn so the reader's eye lands on the values.
|
|
8
|
+
* The field is the quietest of the three because it is the part they already
|
|
9
|
+
* know, having picked it; the values carry the weight, because a bar of these is
|
|
10
|
+
* scanned for what the filters are set to rather than for what they are on.
|
|
11
|
+
*
|
|
12
|
+
* The operator segment is drawn only where there is one, which is what keeps the
|
|
13
|
+
* common chip free of jargon. See the headless note, which records the rule.
|
|
14
|
+
*
|
|
15
|
+
* @since 0.23.0
|
|
16
|
+
* @status experimental
|
|
17
|
+
* @category forms
|
|
18
|
+
* @aliases FilterToken, FacetChip
|
|
19
|
+
* @documentation https://helix.fusion.dev/components/filter-input
|
|
20
|
+
*
|
|
21
|
+
* @cssproperty --filter-input-chip-background-color - Fill behind the chip.
|
|
22
|
+
* @cssproperty --filter-input-chip-border-color - Color of the edge.
|
|
23
|
+
* @cssproperty --filter-input-chip-radius - Corner radius of the chip.
|
|
24
|
+
*/
|
|
25
|
+
export declare class HelixFilterChip extends HelixHeadlessFilterChip {
|
|
26
|
+
static styles: CSSResultGroup;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
'helix-filter-chip': HelixFilterChip;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -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 { HelixHeadlessFilterChip } from '@fusion.dev/helix-headless/filter-input';
|
|
9
|
+
import { styles } from './filter-chip.css.js';
|
|
10
|
+
let HelixFilterChip = class HelixFilterChip extends HelixHeadlessFilterChip {
|
|
11
|
+
static { this.styles = styles; }
|
|
12
|
+
};
|
|
13
|
+
HelixFilterChip = __decorate([
|
|
14
|
+
customElement('helix-filter-chip')
|
|
15
|
+
], HelixFilterChip);
|
|
16
|
+
export { HelixFilterChip };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HelixHeadlessFilterField } from '@fusion.dev/helix-headless/filter-input';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary One thing a set can be filtered by, and how.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* A declaration rather than a control: it renders nothing, and the filter input
|
|
8
|
+
* reads it to build its menu. The headless note carries the model.
|
|
9
|
+
*
|
|
10
|
+
* The stylesheet here is one rule and it is a guard rather than a look. Written
|
|
11
|
+
* where it belongs, inside a filter input, this is never assigned to a slot and
|
|
12
|
+
* so is never rendered at all. Written anywhere else it would be an empty inline
|
|
13
|
+
* box, which is nothing to look at and still a flex item a `gap` would space
|
|
14
|
+
* away from its neighbors.
|
|
15
|
+
*
|
|
16
|
+
* @since 0.23.0
|
|
17
|
+
* @status experimental
|
|
18
|
+
* @category forms
|
|
19
|
+
* @aliases Facet, Dimension
|
|
20
|
+
* @documentation https://helix.fusion.dev/components/filter-input
|
|
21
|
+
*/
|
|
22
|
+
export declare class HelixFilterField extends HelixHeadlessFilterField {
|
|
23
|
+
static styles: CSSResultGroup;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'helix-filter-field': HelixFilterField;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -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 { HelixHeadlessFilterField } from '@fusion.dev/helix-headless/filter-input';
|
|
9
|
+
import { styles } from './filter-field.css.js';
|
|
10
|
+
let HelixFilterField = class HelixFilterField extends HelixHeadlessFilterField {
|
|
11
|
+
static { this.styles = styles; }
|
|
12
|
+
};
|
|
13
|
+
HelixFilterField = __decorate([
|
|
14
|
+
customElement('helix-filter-field')
|
|
15
|
+
], HelixFilterField);
|
|
16
|
+
export { HelixFilterField };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HelixHeadlessFilterMenu } from '@fusion.dev/helix-headless/filter-input';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
import '../../divider/index.js';
|
|
4
|
+
import '../../menu/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* @summary The control that builds a filter: pick a field, tick its values.
|
|
7
|
+
*
|
|
8
|
+
* @description
|
|
9
|
+
* Everything drawn here is drawn by something else: the trigger is the
|
|
10
|
+
* consumer's, and the pages are `Menu`'s, whose reserved tick column is what
|
|
11
|
+
* keeps a page of ticked and unticked values on one edge. This element's own
|
|
12
|
+
* stylesheet is one rule, and it is `display: contents`.
|
|
13
|
+
*
|
|
14
|
+
* The headless note carries the model, including why a tick is a filter
|
|
15
|
+
* immediately and why the operator is decided here rather than on the chip.
|
|
16
|
+
*
|
|
17
|
+
* @since 0.25.0
|
|
18
|
+
* @status experimental
|
|
19
|
+
* @category forms
|
|
20
|
+
* @aliases FacetPicker, FilterBuilder
|
|
21
|
+
* @documentation https://helix.fusion.dev/components/filter-input
|
|
22
|
+
*
|
|
23
|
+
* @event {HelixFacetEvent} helix-facet - Fired when a field's values change. Cancelable: refusing it takes the decision and nothing moves.
|
|
24
|
+
*/
|
|
25
|
+
export declare class HelixFilterMenu extends HelixHeadlessFilterMenu {
|
|
26
|
+
static tier: string;
|
|
27
|
+
static styles: CSSResultGroup;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
'helix-filter-menu': HelixFilterMenu;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { HelixHeadlessFilterMenu } from '@fusion.dev/helix-headless/filter-input';
|
|
9
|
+
import { styles } from './filter-menu.css.js';
|
|
10
|
+
import '../../divider/index.js';
|
|
11
|
+
import '../../menu/index.js';
|
|
12
|
+
let HelixFilterMenu = class HelixFilterMenu extends HelixHeadlessFilterMenu {
|
|
13
|
+
static { this.tier = 'helix-'; }
|
|
14
|
+
static { this.styles = styles; }
|
|
15
|
+
};
|
|
16
|
+
HelixFilterMenu = __decorate([
|
|
17
|
+
customElement('helix-filter-menu')
|
|
18
|
+
], HelixFilterMenu);
|
|
19
|
+
export { HelixFilterMenu };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HelixHeadlessFilterOperator } from '@fusion.dev/helix-headless/filter-input';
|
|
2
|
+
import type { CSSResultGroup } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* @summary One way a filter can compare a field to its values.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* A declaration rather than a control: it renders nothing, and the field it is
|
|
8
|
+
* written under reads it. The headless note carries the model, including why the
|
|
9
|
+
* words are the consumer's and never this element's.
|
|
10
|
+
*
|
|
11
|
+
* The stylesheet is one rule and it is a guard rather than a look, for the
|
|
12
|
+
* reason `FilterField`'s note gives.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.23.0
|
|
15
|
+
* @status experimental
|
|
16
|
+
* @category forms
|
|
17
|
+
* @aliases Comparator, Predicate
|
|
18
|
+
* @documentation https://helix.fusion.dev/components/filter-input
|
|
19
|
+
*/
|
|
20
|
+
export declare class HelixFilterOperator extends HelixHeadlessFilterOperator {
|
|
21
|
+
static styles: CSSResultGroup;
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
interface HTMLElementTagNameMap {
|
|
25
|
+
'helix-filter-operator': HelixFilterOperator;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -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 { HelixHeadlessFilterOperator } from '@fusion.dev/helix-headless/filter-input';
|
|
9
|
+
import { styles } from './filter-operator.css.js';
|
|
10
|
+
let HelixFilterOperator = class HelixFilterOperator extends HelixHeadlessFilterOperator {
|
|
11
|
+
static { this.styles = styles; }
|
|
12
|
+
};
|
|
13
|
+
HelixFilterOperator = __decorate([
|
|
14
|
+
customElement('helix-filter-operator')
|
|
15
|
+
], HelixFilterOperator);
|
|
16
|
+
export { HelixFilterOperator };
|
|
@@ -59,6 +59,28 @@ font-weight: var(--helix-weight-medium);
|
|
|
59
59
|
min-inline-size: 0;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
[part="lead"] {
|
|
63
|
+
align-items: center;
|
|
64
|
+
align-self: stretch;
|
|
65
|
+
border-inline-end: var(--helix-border-thin) solid
|
|
66
|
+
var(--filter-input-lead-border-color, var(--helix-color-border));
|
|
67
|
+
display: flex;
|
|
68
|
+
margin-block: calc(var(--helix-space-2xs) * -1);
|
|
69
|
+
margin-inline-start: calc(var(--helix-space-xs) * -1);
|
|
70
|
+
padding-inline: var(--helix-space-2xs) var(--helix-space-xs);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[part="lead"][hidden] {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[part="lead"],
|
|
78
|
+
slot[name="end"] {
|
|
79
|
+
--button-size: var(--filter-input-action-size, var(--helix-size-tag));
|
|
80
|
+
--icon-button-size: var(--filter-input-action-size, var(--helix-size-tag));
|
|
81
|
+
--button-padding-inline: var(--filter-input-action-padding-inline, var(--helix-space-xs));
|
|
82
|
+
}
|
|
83
|
+
|
|
62
84
|
slot[name="start"]::slotted(*),
|
|
63
85
|
slot[name="end"]::slotted(*) {
|
|
64
86
|
color: var(--helix-color-foreground-subtle);
|
|
@@ -66,14 +88,14 @@ flex: 0 0 auto;
|
|
|
66
88
|
}
|
|
67
89
|
|
|
68
90
|
[part="clear"] {
|
|
69
|
-
--icon-size:
|
|
91
|
+
--icon-size: 0.85em;
|
|
70
92
|
all: unset;
|
|
71
93
|
|
|
72
94
|
align-items: center;
|
|
73
95
|
align-self: center;
|
|
74
96
|
border-radius: var(--helix-radii-sm);
|
|
75
97
|
box-sizing: border-box;
|
|
76
|
-
color: var(--helix-color-foreground-
|
|
98
|
+
color: var(--helix-color-foreground-subtle);
|
|
77
99
|
cursor: pointer;
|
|
78
100
|
display: flex;
|
|
79
101
|
flex: 0 0 auto;
|
|
@@ -84,6 +106,7 @@ transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
|
84
106
|
}
|
|
85
107
|
|
|
86
108
|
[part="clear"]:hover {
|
|
109
|
+
background-color: color-mix(in oklab, currentcolor 12%, transparent);
|
|
87
110
|
color: var(--helix-color-foreground);
|
|
88
111
|
}
|
|
89
112
|
|
|
@@ -31,10 +31,13 @@ import '../../option/index.js';
|
|
|
31
31
|
* @aliases SearchField, FacetInput, TokenInput
|
|
32
32
|
* @documentation https://helix.fusion.dev/components/filter-input
|
|
33
33
|
*
|
|
34
|
+
* @cssproperty --filter-input-action-padding-inline - Space either side of a slotted control's label. Follows `--helix-space-xs`, which is what a token uses.
|
|
35
|
+
* @cssproperty --filter-input-action-size - Height of a control slotted at either end. Follows `--helix-size-tag`, so it matches the tokens beside it rather than the field around them.
|
|
34
36
|
* @cssproperty --filter-input-background-color - Fill behind the field.
|
|
35
37
|
* @cssproperty --filter-input-border-color - Color of the suggestion panel's edge.
|
|
36
38
|
* @cssproperty --filter-input-border-width - Width of that edge. Follows `--helix-border-floating`.
|
|
37
39
|
* @cssproperty --filter-input-control-size - Smallest the text keeps as tokens fill the line, before it wraps to its own.
|
|
40
|
+
* @cssproperty --filter-input-lead-border-color - The seam between the leading box and the text.
|
|
38
41
|
* @cssproperty --filter-input-panel-size - Width of the suggestion panel. Follows the field by default.
|
|
39
42
|
* @cssproperty --filter-input-shadow - Lift under the panel. Follows `--helix-shadow-floating`: a
|
|
40
43
|
* floating surface sits over content nobody can predict, so it keeps a lift by default.
|
|
@@ -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 { HelixHeadlessHeatmap } from '@fusion.dev/helix-headless/heatmap';
|
|
9
9
|
import { styles } from './heatmap-root.css.js';
|
|
10
|
+
import '../../tooltip/index.js';
|
|
10
11
|
let HelixHeatmap = class HelixHeatmap extends HelixHeadlessHeatmap {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from '@fusion.dev/helix-core';
|
|
|
8
8
|
export * from './accordion/index.js';
|
|
9
9
|
export * from './announcement/index.js';
|
|
10
10
|
export * from './app-header/index.js';
|
|
11
|
+
export * from './area-chart/index.js';
|
|
11
12
|
export * from './aura/index.js';
|
|
12
13
|
export * from './avatar/index.js';
|
|
13
14
|
export * from './badge/index.js';
|
|
@@ -32,6 +33,7 @@ export * from './copy-button/index.js';
|
|
|
32
33
|
export * from './data-table/index.js';
|
|
33
34
|
export * from './date-input/index.js';
|
|
34
35
|
export * from './date-picker/index.js';
|
|
36
|
+
export * from './description-list/index.js';
|
|
35
37
|
export * from './dialog/index.js';
|
|
36
38
|
export * from './divider/index.js';
|
|
37
39
|
export * from './donut-chart/index.js';
|
|
@@ -60,6 +62,7 @@ export * from './meter/index.js';
|
|
|
60
62
|
export * from './navigation/index.js';
|
|
61
63
|
export * from './notifications/index.js';
|
|
62
64
|
export * from './number-input/index.js';
|
|
65
|
+
export * from './object-inspector/index.js';
|
|
63
66
|
export * from './option/index.js';
|
|
64
67
|
export * from './orb/index.js';
|
|
65
68
|
export * from './outline/index.js';
|
|
@@ -72,9 +75,11 @@ export * from './quote/index.js';
|
|
|
72
75
|
export * from './radio/index.js';
|
|
73
76
|
export * from './rating/index.js';
|
|
74
77
|
export * from './sandbox/index.js';
|
|
78
|
+
export * from './scatter-chart/index.js';
|
|
75
79
|
export * from './scroll-area/index.js';
|
|
76
80
|
export * from './select/index.js';
|
|
77
81
|
export * from './skeleton/index.js';
|
|
82
|
+
export * from './skip-link/index.js';
|
|
78
83
|
export * from './slider/index.js';
|
|
79
84
|
export * from './sparkline/index.js';
|
|
80
85
|
export * from './speed-dial/index.js';
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from '@fusion.dev/helix-core';
|
|
|
3
3
|
export * from './accordion/index.js';
|
|
4
4
|
export * from './announcement/index.js';
|
|
5
5
|
export * from './app-header/index.js';
|
|
6
|
+
export * from './area-chart/index.js';
|
|
6
7
|
export * from './aura/index.js';
|
|
7
8
|
export * from './avatar/index.js';
|
|
8
9
|
export * from './badge/index.js';
|
|
@@ -27,6 +28,7 @@ export * from './copy-button/index.js';
|
|
|
27
28
|
export * from './data-table/index.js';
|
|
28
29
|
export * from './date-input/index.js';
|
|
29
30
|
export * from './date-picker/index.js';
|
|
31
|
+
export * from './description-list/index.js';
|
|
30
32
|
export * from './dialog/index.js';
|
|
31
33
|
export * from './divider/index.js';
|
|
32
34
|
export * from './donut-chart/index.js';
|
|
@@ -55,6 +57,7 @@ export * from './meter/index.js';
|
|
|
55
57
|
export * from './navigation/index.js';
|
|
56
58
|
export * from './notifications/index.js';
|
|
57
59
|
export * from './number-input/index.js';
|
|
60
|
+
export * from './object-inspector/index.js';
|
|
58
61
|
export * from './option/index.js';
|
|
59
62
|
export * from './orb/index.js';
|
|
60
63
|
export * from './outline/index.js';
|
|
@@ -67,9 +70,11 @@ export * from './quote/index.js';
|
|
|
67
70
|
export * from './radio/index.js';
|
|
68
71
|
export * from './rating/index.js';
|
|
69
72
|
export * from './sandbox/index.js';
|
|
73
|
+
export * from './scatter-chart/index.js';
|
|
70
74
|
export * from './scroll-area/index.js';
|
|
71
75
|
export * from './select/index.js';
|
|
72
76
|
export * from './skeleton/index.js';
|
|
77
|
+
export * from './skip-link/index.js';
|
|
73
78
|
export * from './slider/index.js';
|
|
74
79
|
export * from './sparkline/index.js';
|
|
75
80
|
export * from './speed-dial/index.js';
|
|
@@ -69,144 +69,6 @@ mask-image: var(--_line-chart-holes);
|
|
|
69
69
|
fill: var(--chart-series);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
[part="mark"] {
|
|
73
|
-
block-size: 1px;
|
|
74
|
-
inline-size: 1px;
|
|
75
|
-
pointer-events: none;
|
|
76
|
-
position: absolute;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
[part="tooltip-anchor"] {
|
|
80
|
-
inset: 0;
|
|
81
|
-
pointer-events: none;
|
|
82
|
-
position: absolute;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
[part="tooltip-label"] {
|
|
86
|
-
color: var(--helix-color-foreground-muted);
|
|
87
|
-
display: block;
|
|
88
|
-
font-weight: var(--helix-weight-medium);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
[part="tooltip-cell"] {
|
|
92
|
-
align-items: baseline;
|
|
93
|
-
display: flex;
|
|
94
|
-
gap: var(--helix-space-sm);
|
|
95
|
-
justify-content: space-between;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
[part="tooltip-name"] {
|
|
99
|
-
color: var(--helix-color-foreground-muted);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
[part="tooltip-value"] {
|
|
103
|
-
font-variant-numeric: tabular-nums;
|
|
104
|
-
font-weight: var(--helix-weight-medium);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
[part="tooltip-cell"][data-series]::before {
|
|
108
|
-
block-size: 0.5em;
|
|
109
|
-
border-radius: var(--helix-radii-full);
|
|
110
|
-
content: "";
|
|
111
|
-
inline-size: 0.5em;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
[part="tooltip-cell"][data-series="1"]::before {
|
|
115
|
-
background-color: var(--helix-color-series-1);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
[part="tooltip-cell"][data-series="2"]::before {
|
|
119
|
-
background-color: var(--helix-color-series-2);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
[part="tooltip-cell"][data-series="3"]::before {
|
|
123
|
-
background-color: var(--helix-color-series-3);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
[part="tooltip-cell"][data-series="4"]::before {
|
|
127
|
-
background-color: var(--helix-color-series-4);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
[part="tooltip-cell"][data-series="5"]::before {
|
|
131
|
-
background-color: var(--helix-color-series-5);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
[part="tooltip-cell"][data-series="6"]::before {
|
|
135
|
-
background-color: var(--helix-color-series-6);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
[part="tooltip-cell"][data-series="7"]::before {
|
|
139
|
-
background-color: var(--helix-color-series-7);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
[part="tooltip-cell"][data-series="8"]::before {
|
|
143
|
-
background-color: var(--helix-color-series-8);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
[part="tooltip-cell"][data-series="9"]::before {
|
|
147
|
-
background-color: var(--helix-color-series-9);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
[part="tooltip-cell"][data-series="10"]::before {
|
|
151
|
-
background-color: var(--helix-color-series-10);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
[part="tooltip-cell"][data-series="11"]::before {
|
|
155
|
-
background-color: var(--helix-color-series-11);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
[part="tooltip-cell"][data-series="12"]::before {
|
|
159
|
-
background-color: var(--helix-color-series-12);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
[part="tooltip-cell"][data-series="13"]::before {
|
|
163
|
-
background-color: var(--helix-color-series-13);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
[part="tooltip-cell"][data-series="14"]::before {
|
|
167
|
-
background-color: var(--helix-color-series-14);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
[part="tooltip-cell"][data-series="15"]::before {
|
|
171
|
-
background-color: var(--helix-color-series-15);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
[part="tooltip-cell"][data-series="16"]::before {
|
|
175
|
-
background-color: var(--helix-color-series-16);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
[part="tooltip-cell"][data-series="17"]::before {
|
|
179
|
-
background-color: var(--helix-color-series-17);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
[part="tooltip-cell"][data-series="18"]::before {
|
|
183
|
-
background-color: var(--helix-color-series-18);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
[part="tooltip-cell"][data-series="19"]::before {
|
|
187
|
-
background-color: var(--helix-color-series-19);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
[part="tooltip-cell"][data-series="20"]::before {
|
|
191
|
-
background-color: var(--helix-color-series-20);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
[part="tooltip-cell"][data-series="21"]::before {
|
|
195
|
-
background-color: var(--helix-color-series-21);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
[part="tooltip-cell"][data-series="22"]::before {
|
|
199
|
-
background-color: var(--helix-color-series-22);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
[part="tooltip-cell"][data-series="23"]::before {
|
|
203
|
-
background-color: var(--helix-color-series-23);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
[part="tooltip-cell"][data-series="24"]::before {
|
|
207
|
-
background-color: var(--helix-color-series-24);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
72
|
[part="guide"] {
|
|
211
73
|
stroke: var(--helix-color-foreground-muted);
|
|
212
74
|
stroke-dasharray: 3 3;
|
|
@@ -9,11 +9,12 @@ import { HelixHeadlessLineChart } from '@fusion.dev/helix-headless/line-chart';
|
|
|
9
9
|
import { property } from 'lit/decorators.js';
|
|
10
10
|
import { styles as seriesStyles } from '../../shared/chart/series.css.js';
|
|
11
11
|
import { styles as terminusStyles } from '../../shared/chart/terminus.css.js';
|
|
12
|
+
import { styles as tooltipStyles } from '../../shared/chart/tooltip.css.js';
|
|
12
13
|
import { styles } from './line-chart-root.css.js';
|
|
13
14
|
import '../../tooltip/index.js';
|
|
14
15
|
let HelixLineChart = class HelixLineChart extends HelixHeadlessLineChart {
|
|
15
16
|
static { this.tier = 'helix-'; }
|
|
16
|
-
static { this.styles = [seriesStyles, terminusStyles, styles]; }
|
|
17
|
+
static { this.styles = [seriesStyles, tooltipStyles, terminusStyles, styles]; }
|
|
17
18
|
};
|
|
18
19
|
__decorate([
|
|
19
20
|
property({ reflect: true })
|