@m3e/chips 1.0.0-rc.2 → 1.0.0-rc.3

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.
@@ -0,0 +1,83 @@
1
+ import { M3eChipElement } from "./ChipElement";
2
+ declare const M3eAssistChipElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").FormSubmitterMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").AttachInternalsMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").LinkButtonMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledInteractiveMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledMixin> & typeof M3eChipElement;
3
+ /**
4
+ * A chip users interact with to perform a smart or automated action that can span multiple applications.
5
+ *
6
+ * @description
7
+ * The `m3e-assist-chip` component presents a Material 3 assist chip, providing users with quick access to
8
+ * contextually relevant actions. It is designed for use cases like suggested actions, quick filters, or
9
+ * secondary operations, and supports accessibility, keyboard interaction, and expressive state styling
10
+ * in line with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual
11
+ * differentiation and contextual emphasis.
12
+ *
13
+ * @example
14
+ * The following example illustrates use of the `m3e-assist-chip`. In this example, multiple chips are nested inside
15
+ * a `m3e-chip-set` container to create a cohesive set of chips. The container is given the ARIA `role="group"` to convey
16
+ * to assistive technologies that the chips are part of a related set of element.
17
+ * ```html
18
+ * <m3e-chip-set role="group" aria-label="Quick actions">
19
+ * <m3e-assist-chip><m3e-icon slot="icon" name="edit"></m3e-icon>Edit</m3e-assist-chip>
20
+ * <m3e-assist-chip><m3e-icon slot="icon" name="delete"></m3e-icon>Delete</m3e-assist-chip>
21
+ * <m3e-assist-chip><m3e-icon slot="icon" name="content_copy"></m3e-icon>Copy</m3e-assist-chip>
22
+ * <m3e-assist-chip><m3e-icon slot="icon" name="share"></m3e-icon>Share</m3e-assist-chip>
23
+ * </m3e-chip-set>
24
+ * ```
25
+ *
26
+ * @tag m3e-assist-chip
27
+ *
28
+ * @slot - Renders the label of the chip.
29
+ * @slot icon - Renders an icon before the chip's label.
30
+ *
31
+ * @attr disabled - A value indicating whether the element is disabled.
32
+ * @attr disabled-interactive - A value indicating whether the element is disabled and interactive.
33
+ * @attr download - A value indicating whether the `target` of the link button will be downloaded, optionally specifying the new name of the file.
34
+ * @attr href - The URL to which the link button points.
35
+ * @attr name - The name of the element, submitted as a pair with the element's `value` as part of form data, when the element is used to submit a form.
36
+ * @attr rel - The relationship between the `target` of the link button and the document.
37
+ * @attr target - The target of the link button.
38
+ * @attr type - The type of the element.
39
+ * @attr value - A string representing the value of the chip.
40
+ * @attr variant - The appearance variant of the chip.
41
+ *
42
+ * @fires click - Emitted when the element is clicked.
43
+ *
44
+ * @cssprop --m3e-chip-container-shape - Border radius of the chip container.
45
+ * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.
46
+ * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.
47
+ * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.
48
+ * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.
49
+ * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.
50
+ * @cssprop --m3e-chip-label-text-color - Label text color in default state.
51
+ * @cssprop --m3e-chip-icon-color - Icon color in default state.
52
+ * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.
53
+ * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.
54
+ * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.
55
+ * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.
56
+ * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.
57
+ * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.
58
+ * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.
59
+ * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.
60
+ * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.
61
+ * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.
62
+ * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.
63
+ * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.
64
+ * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.
65
+ * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.
66
+ * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.
67
+ * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.
68
+ * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.
69
+ * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.
70
+ * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.
71
+ * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.
72
+ */
73
+ export declare class M3eAssistChipElement extends M3eAssistChipElement_base {
74
+ /** @internal @inheritdoc */
75
+ protected _renderTrailingIcon(): unknown;
76
+ }
77
+ declare global {
78
+ interface HTMLElementTagNameMap {
79
+ "m3e-assist-chip": M3eAssistChipElement;
80
+ }
81
+ }
82
+ export {};
83
+ //# sourceMappingURL=AssistChipElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssistChipElement.d.ts","sourceRoot":"","sources":["../../src/AssistChipElement.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,qBACa,oBAAqB,SAAQ,yBAKzC;IACC,4BAA4B;cACT,mBAAmB,IAAI,OAAO;CAGlD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
@@ -0,0 +1,83 @@
1
+ import { CSSResultGroup, LitElement, PropertyValues } from "lit";
2
+ import { ChipVariant } from "./ChipVariant";
3
+ /**
4
+ * A non-interactive chip used to convey small pieces of information.
5
+ *
6
+ * @description
7
+ * The `m3e-chip` component establishes the foundational structure for chips. It supports expressive styling,
8
+ * accessible interaction, and flexible content projection, aligning with Material 3 guidelines. Appearance
9
+ * variants include `elevated` and `outlined`, enabling visual differentiation and contextual emphasis.
10
+ *
11
+ * @example
12
+ * The following example illustrates use of the `m3e-chip` and `m3e-chip-set` components to present non-interactive chips.
13
+ * ```html
14
+ * <m3e-chip-set>
15
+ * <m3e-chip><m3e-icon slot="icon" name="palette"></m3e-icon>Design</m3e-chip>
16
+ * <m3e-chip><m3e-icon slot="icon" name="accessibility_new"></m3e-icon>Accessibility</m3e-chip>
17
+ * <m3e-chip><m3e-icon slot="icon" name="motion_photos_on"></m3e-icon>Motion</m3e-chip>
18
+ * <m3e-chip><m3e-icon slot="icon" name="description"></m3e-icon>Documentation</m3e-chip>
19
+ * </m3e-chip-set>
20
+ * ```
21
+ *
22
+ * @tag m3e-chip
23
+ *
24
+ * @slot - Renders the label of the chip.
25
+ * @slot icon - Renders an icon before the chip's label.
26
+ * @slot trailing-icon - Renders an icon after the chip's label.
27
+ *
28
+ * @attr value - A string representing the value of the chip.
29
+ * @attr variant - The appearance variant of the chip.
30
+ *
31
+ * @cssprop --m3e-chip-container-shape - Border radius of the chip container.
32
+ * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.
33
+ * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.
34
+ * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.
35
+ * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.
36
+ * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.
37
+ * @cssprop --m3e-chip-label-text-color - Label text color in default state.
38
+ * @cssprop --m3e-chip-icon-color - Icon color in default state.
39
+ * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.
40
+ * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.
41
+ * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.
42
+ * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.
43
+ * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.
44
+ * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.
45
+ * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.
46
+ * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.
47
+ * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.
48
+ * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.
49
+ * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.
50
+ */
51
+ export declare class M3eChipElement extends LitElement {
52
+ #private;
53
+ /** The styles of the element. */
54
+ static styles: CSSResultGroup;
55
+ /** @private */ private readonly _elevation?;
56
+ /** @private */ private readonly _focusRing?;
57
+ /** @private */ private readonly _stateLayer?;
58
+ /** @private */ private readonly _ripple?;
59
+ /**
60
+ * The appearance variant of the chip.
61
+ * @default "outlined"
62
+ */
63
+ variant: ChipVariant;
64
+ /** A string representing the value of the chip. */
65
+ get value(): string;
66
+ set value(value: string);
67
+ /** @inheritdoc */
68
+ protected firstUpdated(_changedProperties: PropertyValues): void;
69
+ /** @inheritdoc */
70
+ protected render(): unknown;
71
+ /** @internal */
72
+ protected _renderIcon(): unknown;
73
+ /** @internal */
74
+ protected _renderTrailingIcon(): unknown;
75
+ /** @internal */
76
+ protected _renderSlot(): unknown;
77
+ }
78
+ declare global {
79
+ interface HTMLElementTagNameMap {
80
+ "m3e-chip": M3eChipElement;
81
+ }
82
+ }
83
+ //# sourceMappingURL=ChipElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipElement.d.ts","sourceRoot":"","sources":["../../src/ChipElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAW,cAAc,EAAa,MAAM,KAAK,CAAC;AAiBhG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,qBACa,cAAe,SAAQ,UAAU;;IAC5C,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CA4KpC;IAEF,eAAe,CAAsB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAsB;IACvF,eAAe,CAAuB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAsB;IACxF,eAAe,CAAwB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAuB;IAC3F,eAAe,CAAmB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAmB;IAK9E;;;OAGG;IAC0B,OAAO,EAAE,WAAW,CAAc;IAE/D,mDAAmD;IACnD,IAAgB,KAAK,IAGJ,MAAM,CADtB;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAEtB;IAED,kBAAkB;cACC,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;IAczE,kBAAkB;cACC,MAAM,IAAI,OAAO;IAsBpC,gBAAgB;IAChB,SAAS,CAAC,WAAW,IAAI,OAAO;IAIhC,gBAAgB;IAChB,SAAS,CAAC,mBAAmB,IAAI,OAAO;IAQxC,gBAAgB;IAChB,SAAS,CAAC,WAAW,IAAI,OAAO;CAkBjC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,cAAc,CAAC;KAC5B;CACF"}
@@ -0,0 +1,42 @@
1
+ import { CSSResultGroup, LitElement } from "lit";
2
+ declare const M3eChipSetElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").VerticalMixin> & typeof LitElement;
3
+ /**
4
+ * A container used to organize chips into a cohesive unit.
5
+ *
6
+ * @description
7
+ * The `m3e-chip-set` component provides a flexible container for grouping chips, supporting both
8
+ * horizontal and vertical layouts. It manages chip arrangement, spacing, and accessibility, and
9
+ * serves as the foundation for chip set variants such as input and filter chip sets.
10
+ *
11
+ * @example
12
+ * The following example illustrates use of the `m3e-chip` and `m3e-chip-set` components to present non-interactive chips.
13
+ * ```html
14
+ * <m3e-chip-set>
15
+ * <m3e-chip><m3e-icon slot="icon" name="palette"></m3e-icon>Design</m3e-chip>
16
+ * <m3e-chip><m3e-icon slot="icon" name="accessibility_new"></m3e-icon>Accessibility</m3e-chip>
17
+ * <m3e-chip><m3e-icon slot="icon" name="motion_photos_on"></m3e-icon>Motion</m3e-chip>
18
+ * <m3e-chip><m3e-icon slot="icon" name="description"></m3e-icon>Documentation</m3e-chip>
19
+ * </m3e-chip-set>
20
+ * ```
21
+ *
22
+ * @tag m3e-chip-set
23
+ *
24
+ * @slot - Renders the chips of the set.
25
+ *
26
+ * @attr vertical - Whether the element is oriented vertically.
27
+ *
28
+ * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.
29
+ */
30
+ export declare class M3eChipSetElement extends M3eChipSetElement_base {
31
+ /** The styles of the element. */
32
+ static styles: CSSResultGroup;
33
+ /** @inheritdoc */
34
+ protected render(): unknown;
35
+ }
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ "m3e-chip-set": M3eChipSetElement;
39
+ }
40
+ }
41
+ export {};
42
+ //# sourceMappingURL=ChipSetElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipSetElement.d.ts","sourceRoot":"","sources":["../../src/ChipSetElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAK5D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBACa,iBAAkB,SAAQ,sBAAoB;IACzD,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAWpC;IAEF,kBAAkB;cACC,MAAM,IAAI,OAAO;CAGrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,iBAAiB,CAAC;KACnC;CACF"}
@@ -0,0 +1,3 @@
1
+ /** Specifies the possible appearance variants of a chip. */
2
+ export type ChipVariant = "outlined" | "elevated";
3
+ //# sourceMappingURL=ChipVariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipVariant.d.ts","sourceRoot":"","sources":["../../src/ChipVariant.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC"}
@@ -0,0 +1,105 @@
1
+ import { CSSResultGroup, PropertyValues } from "lit";
2
+ import { M3eChipElement } from "./ChipElement";
3
+ declare const M3eFilterChipElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").SelectedMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledInteractiveMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").AttachInternalsMixin> & typeof M3eChipElement;
4
+ /**
5
+ * A chip users interact with to select/deselect options.
6
+ *
7
+ * @description
8
+ * The `m3e-filter-chip` component presents a chip that users can select or deselect to filter
9
+ * content or data sets. It supports single and multi-selection, keyboard interaction, accessibility,
10
+ * and expressive state styling, providing a modern and interactive filtering experience in line
11
+ * with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual
12
+ * differentiation and contextual emphasis.
13
+ *
14
+ * @example
15
+ * The following example illustrates a single-select `m3e-filter-chip-set` containing multiple `m3e-filter-chip` components that
16
+ * allow a user to choose an option. You can use the `multi` attribute to enable multiselect.
17
+ * ```html
18
+ * <m3e-filter-chip-set aria-label="Filter by topic">
19
+ * <m3e-filter-chip><m3e-icon slot="icon" name="palette"></m3e-icon>Design</m3e-filter-chip>
20
+ * <m3e-filter-chip><m3e-icon slot="icon" name="accessibility_new"></m3e-icon>Accessibility</m3e-filter-chip>
21
+ * <m3e-filter-chip><m3e-icon slot="icon" name="motion_photos_on"></m3e-icon>Motion</m3e-filter-chip>
22
+ * <m3e-filter-chip><m3e-icon slot="icon" name="description"></m3e-icon>Documentation</m3e-filter-chip>
23
+ * </m3e-filter-chip-set>
24
+ * ```
25
+ *
26
+ * @tag m3e-filter-chip
27
+ *
28
+ * @slot - Renders the label of the chip.
29
+ * @slot icon - Renders an icon before the chip's label.
30
+ * @slot trailing-icon - Renders an icon after the chip's label.
31
+ *
32
+ * @attr disabled - A value indicating whether the element is disabled.
33
+ * @attr disabled-interactive - A value indicating whether the element is disabled and interactive.
34
+ * @attr selected - A value indicating whether the element is selected.
35
+ * @attr value - A string representing the value of the chip.
36
+ * @attr variant - The appearance variant of the chip.
37
+ *
38
+ * @fires input - Emitted when the selected state changes.
39
+ * @fires change - Emitted when the selected state changes.
40
+ * @fires click - Emitted when the element is clicked.
41
+ *
42
+ * @cssprop --m3e-chip-container-shape - Border radius of the chip container.
43
+ * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.
44
+ * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.
45
+ * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.
46
+ * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.
47
+ * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.
48
+ * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.
49
+ * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.
50
+ * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.
51
+ * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.
52
+ * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.
53
+ * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.
54
+ * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.
55
+ * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.
56
+ * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.
57
+ * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.
58
+ * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.
59
+ * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.
60
+ * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.
61
+ * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.
62
+ * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.
63
+ * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.
64
+ * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.
65
+ * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.
66
+ * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.
67
+ * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.
68
+ * @cssprop --m3e-chip-selected-outline-thickness - Outline thickness for selected state.
69
+ * @cssprop --m3e-chip-selected-label-text-color - Text color in selected state.
70
+ * @cssprop --m3e-chip-selected-container-color - Background color in selected state.
71
+ * @cssprop --m3e-chip-selected-container-hover-color - Hover state layer color in selected state.
72
+ * @cssprop --m3e-chip-selected-container-focus-color - Focus state layer color in selected state.
73
+ * @cssprop --m3e-chip-selected-hover-elevation - Elevation on hover in selected state.
74
+ * @cssprop --m3e-chip-selected-ripple-color - Ripple color in selected state.
75
+ * @cssprop --m3e-chip-selected-state-layer-focus-color - Focus state layer color in selected state.
76
+ * @cssprop --m3e-chip-selected-state-layer-hover-color - Hover state layer color in selected state.
77
+ * @cssprop --m3e-chip-selected-leading-icon-color - Leading icon color in selected state.
78
+ * @cssprop --m3e-chip-selected-trailing-icon-color - Trailing icon color in selected state.
79
+ * @cssprop --m3e-chip-unselected-label-text-color - Text color in unselected state.
80
+ * @cssprop --m3e-chip-unselected-ripple-color - Ripple color in unselected state.
81
+ * @cssprop --m3e-chip-unselected-state-layer-focus-color - Focus state layer color in unselected state.
82
+ * @cssprop --m3e-chip-unselected-state-layer-hover-color - Hover state layer color in unselected state.
83
+ * @cssprop --m3e-chip-unselected-leading-icon-color - Leading icon color in unselected state.
84
+ * @cssprop --m3e-chip-unselected-trailing-icon-color - Trailing icon color in unselected state.
85
+ */
86
+ export declare class M3eFilterChipElement extends M3eFilterChipElement_base {
87
+ #private;
88
+ /** The styles of the element. */
89
+ static styles: CSSResultGroup;
90
+ /** @inheritdoc */
91
+ connectedCallback(): void;
92
+ /** @inheritdoc */
93
+ disconnectedCallback(): void;
94
+ /** @inheritdoc */
95
+ protected update(changedProperties: PropertyValues<this>): void;
96
+ /** @inheritdoc @private */
97
+ protected _renderIcon(): unknown;
98
+ }
99
+ declare global {
100
+ interface HTMLElementTagNameMap {
101
+ "m3e-filter-chip": M3eFilterChipElement;
102
+ }
103
+ }
104
+ export {};
105
+ //# sourceMappingURL=FilterChipElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterChipElement.d.ts","sourceRoot":"","sources":["../../src/FilterChipElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAgBhE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiFG;AACH,qBACa,oBAAqB,SAAQ,yBAEzC;;IACC,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CA0GpC;IAIF,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;IACT,oBAAoB,IAAI,IAAI;IAKrC,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQxE,2BAA2B;cACR,WAAW,IAAI,OAAO;CAsB1C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
@@ -0,0 +1,77 @@
1
+ import { PropertyValues } from "lit";
2
+ import { formValue } from "@m3e/core";
3
+ import { SelectionManager, selectionManager } from "@m3e/core/a11y";
4
+ import { M3eChipSetElement } from "./ChipSetElement";
5
+ import { M3eFilterChipElement } from "./FilterChipElement";
6
+ declare const M3eFilterChipSetElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").LabelledMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DirtyMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").TouchedMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").FormAssociatedMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").AttachInternalsMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof M3eChipSetElement;
7
+ /**
8
+ * A container that organizes filter chips into a cohesive group, enabling selection and
9
+ * deselection of values used to refine content or trigger contextual behavior.
10
+ *
11
+ * @description
12
+ * The `m3e-filter-chip-set` component presents a group of filter chips, enabling users to select
13
+ * one or more options to filter content or data sets. It supports single and multi-selection,
14
+ * keyboard navigation, accessibility, and seamless form association, providing expressive and
15
+ * interactive filtering experiences in line with Material 3 guidelines.
16
+ *
17
+ * @example
18
+ * The following example illustrates a single-select `m3e-filter-chip-set` containing multiple `m3e-filter-chip` components that
19
+ * allow a user to choose an option. You can use the `multi` attribute to enable multiselect.
20
+ * ```html
21
+ * <m3e-filter-chip-set aria-label="Filter by topic">
22
+ * <m3e-filter-chip><m3e-icon slot="icon" name="palette"></m3e-icon>Design</m3e-filter-chip>
23
+ * <m3e-filter-chip><m3e-icon slot="icon" name="accessibility_new"></m3e-icon>Accessibility</m3e-filter-chip>
24
+ * <m3e-filter-chip><m3e-icon slot="icon" name="motion_photos_on"></m3e-icon>Motion</m3e-filter-chip>
25
+ * <m3e-filter-chip><m3e-icon slot="icon" name="description"></m3e-icon>Documentation</m3e-filter-chip>
26
+ * </m3e-filter-chip-set>
27
+ * ```
28
+ *
29
+ * @tag m3e-filter-chip-set
30
+ *
31
+ * @slot - Renders the chips of the set.
32
+ *
33
+ * @attr disabled - Whether the element is disabled.
34
+ * @attr hide-selection-indicator - Whether to hide the selection indicator.
35
+ * @attr multi - Whether multiple chips can be selected.
36
+ * @attr name - The name that identifies the element when submitting the associated form.
37
+ * @attr vertical - Whether the element is oriented vertically.
38
+ *
39
+ * @fires input - Emitted when the selected state of a chip changes.
40
+ * @fires change - Emitted when the selected state of a chip changes.
41
+ *
42
+ * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.
43
+ */
44
+ export declare class M3eFilterChipSetElement extends M3eFilterChipSetElement_base {
45
+ #private;
46
+ /** @internal */
47
+ readonly [selectionManager]: SelectionManager<M3eFilterChipElement>;
48
+ /**
49
+ * Whether multiple chips can be selected.
50
+ * @default false
51
+ */
52
+ multi: boolean;
53
+ /**
54
+ * Whether to hide the selection indicator.
55
+ * @default false
56
+ */
57
+ hideSelectionIndicator: boolean;
58
+ /** The chips of the set. */
59
+ get chips(): readonly M3eFilterChipElement[];
60
+ /** The selected chip(s) of the set. */
61
+ get selected(): readonly M3eFilterChipElement[];
62
+ /** The selected value(s) of the set. */
63
+ get value(): string | readonly string[] | null;
64
+ /** @inheritdoc @internal */
65
+ get [formValue](): string | FormData | null;
66
+ /** @inheritdoc */
67
+ protected update(changedProperties: PropertyValues<this>): void;
68
+ /** @inheritdoc */
69
+ protected render(): unknown;
70
+ }
71
+ declare global {
72
+ interface HTMLElementTagNameMap {
73
+ "m3e-filter-chip-set": M3eFilterChipSetElement;
74
+ }
75
+ }
76
+ export {};
77
+ //# sourceMappingURL=FilterChipSetElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterChipSetElement.d.ts","sourceRoot":"","sources":["../../src/FilterChipSetElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAG3C,OAAO,EAA8D,SAAS,EAAiB,MAAM,WAAW,CAAC;AACjH,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBACa,uBAAwB,SAAQ,4BAE5C;;IACC,gBAAgB;IAChB,QAAQ,CAAC,CAAC,gBAAgB,CAAC,yCAEb;IAEd;;;OAGG;IAC0B,KAAK,UAAS;IAE3C;;;OAGG;IACiE,sBAAsB,UAAS;IAEnG,4BAA4B;IAC5B,IAAI,KAAK,IAAI,SAAS,oBAAoB,EAAE,CAE3C;IAED,uCAAuC;IACvC,IAAI,QAAQ,IAAI,SAAS,oBAAoB,EAAE,CAE9C;IAED,wCAAwC;IACxC,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,IAAI,CAU7C;IAED,4BAA4B;IAC5B,IAAa,CAAC,SAAS,CAAC,6BAUvB;IAED,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAsBxE,kBAAkB;cACC,MAAM,IAAI,OAAO;CA0BrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,uBAAuB,CAAC;KAChD;CACF"}
@@ -0,0 +1,117 @@
1
+ import { CSSResultGroup, PropertyValues } from "lit";
2
+ import { M3eIconButtonElement } from "@m3e/icon-button";
3
+ import { M3eChipElement } from "./ChipElement";
4
+ declare const M3eInputChipElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledInteractiveMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").AttachInternalsMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof M3eChipElement;
5
+ /**
6
+ * A chip which represents a discrete piece of information entered by a user.
7
+ *
8
+ * @description
9
+ * The `m3e-input-chip` component represents an input chip, allowing users to enter, display,
10
+ * and manage discrete values such as tags or keywords. It supports expressive styling, accessibility,
11
+ * keyboard interaction, and appearance variants including `elevated` and `outlined`.
12
+ *
13
+ * @example
14
+ * The following example illustrates the use of the `m3e-input-chip-set` inside a `m3e-form-field`.
15
+ * In this example, the `input` slot specifies the `input` element used to add input chips and the
16
+ * field label's `for` attribute targets the `input` element to provide an accessible label.
17
+ * ```html
18
+ * <m3e-form-field>
19
+ * <label slot="label" for="keywords">Keywords</label>
20
+ * <m3e-input-chip-set aria-label="Enter keywords">
21
+ * <input id="keywords" slot="input" placeholder="New keyword..." />
22
+ * </m3e-input-chip-set>
23
+ * </m3e-form-field>
24
+ * ```
25
+ *
26
+ * @tag m3e-input-chip
27
+ *
28
+ * @slot - Renders the label of the chip.
29
+ * @slot avatar - Renders an avatar before the chip's label.
30
+ * @slot icon - Renders an icon before the chip's label.
31
+ * @slot remove-icon - Renders the icon for the button used to remove the chip.
32
+ *
33
+ * @attr disabled - Whether the element is disabled.
34
+ * @attr disabled-interactive - Whether the element is disabled and interactive.
35
+ * @attr removable - Whether the chip is removable.
36
+ * @attr remove-label - The accessible label given to the button used to remove the chip.
37
+ * @attr value - A string representing the value of the chip.
38
+ * @attr variant - The appearance variant of the chip.
39
+ *
40
+ * @fires remove - Emitted when the remove button is clicked or DELETE or BACKSPACE key is pressed.
41
+ * @fires click - Emitted when the element is clicked.
42
+ *
43
+ * @cssprop --m3e-chip-container-shape - Border radius of the chip container.
44
+ * @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.
45
+ * @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.
46
+ * @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.
47
+ * @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.
48
+ * @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.
49
+ * @cssprop --m3e-chip-label-text-color - Label text color in default state.
50
+ * @cssprop --m3e-chip-icon-color - Icon color in default state.
51
+ * @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.
52
+ * @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.
53
+ * @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.
54
+ * @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.
55
+ * @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.
56
+ * @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.
57
+ * @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.
58
+ * @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.
59
+ * @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.
60
+ * @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.
61
+ * @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.
62
+ * @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.
63
+ * @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.
64
+ * @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.
65
+ * @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.
66
+ * @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.
67
+ * @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.
68
+ * @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.
69
+ * @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.
70
+ * @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.
71
+ * @cssprop --m3e-chip-avatar-size - Font size of the avatar slot content.
72
+ * @cssprop --m3e-chip-disabled-avatar-opacity - Opacity applied to the avatar when disabled.
73
+ * @cssprop --m3e-chip-with-avatar-padding-start - Start padding when an avatar is present.
74
+ */
75
+ export declare class M3eInputChipElement extends M3eInputChipElement_base {
76
+ #private;
77
+ /** The styles of the element. */
78
+ static styles: CSSResultGroup;
79
+ /** A reference to the grid cell of the chip. */
80
+ readonly cell: HTMLSpanElement;
81
+ /** A reference to the button used to remove the chip. */
82
+ readonly removeButton: M3eIconButtonElement | null;
83
+ /**
84
+ * Whether the chip is removable.
85
+ * @default false
86
+ */
87
+ removable: boolean;
88
+ /**
89
+ * The accessible label given to the button used to remove the chip.
90
+ * @default "Remove"
91
+ */
92
+ removeLabel: string;
93
+ /** @inheritdoc */
94
+ connectedCallback(): void;
95
+ /** @inheritdoc */
96
+ protected update(changedProperties: PropertyValues<this>): void;
97
+ /** @inheritdoc */
98
+ protected render(): unknown;
99
+ /** @internal @inheritdoc */
100
+ protected _renderTrailingIcon(): unknown;
101
+ }
102
+ interface M3eInputChipElementEventMap extends HTMLElementEventMap {
103
+ remove: Event;
104
+ }
105
+ export interface M3eInputChipElement {
106
+ addEventListener<K extends keyof M3eInputChipElementEventMap>(type: K, listener: (this: M3eInputChipElement, ev: M3eInputChipElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
107
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
108
+ removeEventListener<K extends keyof M3eInputChipElementEventMap>(type: K, listener: (this: M3eInputChipElement, ev: M3eInputChipElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
109
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
110
+ }
111
+ declare global {
112
+ interface HTMLElementTagNameMap {
113
+ "m3e-input-chip": M3eInputChipElement;
114
+ }
115
+ }
116
+ export {};
117
+ //# sourceMappingURL=InputChipElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputChipElement.d.ts","sourceRoot":"","sources":["../../src/InputChipElement.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,cAAc,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAczE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,qBACa,mBAAoB,SAAQ,wBAGxC;;IACC,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAoDpC;IAEF,gDAAgD;IAChC,QAAQ,CAAC,IAAI,EAAG,eAAe,CAAC;IAEhD,yDAAyD;IAChC,QAAQ,CAAC,YAAY,EAAG,oBAAoB,GAAG,IAAI,CAAC;IAE7E;;;OAGG;IAC0B,SAAS,UAAS;IAE/C;;;OAGG;IACsC,WAAW,SAAY;IAEhE,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAKlC,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IASxE,kBAAkB;cACC,MAAM,IAAI,OAAO;IAgCpC,4BAA4B;cACT,mBAAmB,IAAI,OAAO;CA8ClD;AAED,UAAU,2BAA4B,SAAQ,mBAAmB;IAC/D,MAAM,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,CAAC,CAAC,SAAS,MAAM,2BAA2B,EAC1D,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE,2BAA2B,CAAC,CAAC,CAAC,KAAK,IAAI,EACjF,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;IAER,gBAAgB,CACd,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,kCAAkC,EAC5C,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;IAER,mBAAmB,CAAC,CAAC,SAAS,MAAM,2BAA2B,EAC7D,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE,2BAA2B,CAAC,CAAC,CAAC,KAAK,IAAI,EACjF,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,GACvC,IAAI,CAAC;IAER,mBAAmB,CACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,kCAAkC,EAC5C,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,GACvC,IAAI,CAAC;CACT;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,mBAAmB,CAAC;KACvC;CACF"}
@@ -0,0 +1,74 @@
1
+ import { CSSResultGroup, PropertyValues } from "lit";
2
+ import { formValue } from "@m3e/core";
3
+ import { FormFieldControl } from "@m3e/form-field";
4
+ import { M3eChipSetElement } from "./ChipSetElement";
5
+ import { M3eInputChipElement } from "./InputChipElement";
6
+ declare const M3eInputChipSetElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").RequiredConstraintValidationMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").RequiredMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").ConstraintValidationMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DirtyMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").TouchedMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").FormAssociatedMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").AttachInternalsMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof M3eChipSetElement;
7
+ /**
8
+ * A container that transforms user input into a cohesive set of interactive chips, supporting entry, editing, and removal of discrete values.
9
+ *
10
+ * @description
11
+ * The `m3e-input-chip-set` component enables users to input, display, and manage a collection of discrete
12
+ * values as input chips. Designed for expressive, accessible forms, it supports keyboard navigation, validation,
13
+ * and seamless integration with form controls. This component is ideal for capturing user-generated tags,
14
+ * keywords, or selections in a visually consistent and interactive manner.
15
+ *
16
+ * @example
17
+ * The following example illustrates the use of the `m3e-input-chip-set` inside a `m3e-form-field`.
18
+ * In this example, the `input` slot specifies the `input` element used to add input chips and the
19
+ * field label's `for` attribute targets the `input` element to provide an accessible label.
20
+ * ```html
21
+ * <m3e-form-field>
22
+ * <label slot="label" for="keywords">Keywords</label>
23
+ * <m3e-input-chip-set aria-label="Enter keywords">
24
+ * <input id="keywords" slot="input" placeholder="New keyword..." />
25
+ * </m3e-input-chip-set>
26
+ * </m3e-form-field>
27
+ * ```
28
+ *
29
+ * @tag m3e-input-chip-set
30
+ *
31
+ * @slot - Renders the chips of the set.
32
+ * @slot input - Renders the input element used to add new chips to the set.
33
+ *
34
+ * @attr disabled - Whether the element is disabled.
35
+ * @attr name - The name that identifies the element when submitting the associated form.
36
+ * @attr required - Whether a value is required for the element.
37
+ * @attr vertical - Whether the element is oriented vertically.
38
+ *
39
+ * @fires change - Emitted when a chip is added to, or removed from, the set.
40
+ *
41
+ * @cssprop --m3e-chip-set-spacing - The spacing (gap) between chips in the set.
42
+ */
43
+ export declare class M3eInputChipSetElement extends M3eInputChipSetElement_base implements FormFieldControl {
44
+ #private;
45
+ /** The styles of the element. */
46
+ static styles: CSSResultGroup;
47
+ /** The chips of the set. */
48
+ get chips(): readonly M3eInputChipElement[];
49
+ /** The values of the set. */
50
+ get value(): readonly string[] | null;
51
+ /** @inheritdoc @internal */
52
+ get [formValue](): FormData | null;
53
+ /** @inheritdoc */
54
+ get shouldLabelFloat(): boolean;
55
+ /** @inheritdoc */
56
+ onContainerClick(): void;
57
+ /** @inheritdoc */
58
+ connectedCallback(): void;
59
+ /** @inheritdoc */
60
+ disconnectedCallback(): void;
61
+ /** @inheritdoc */
62
+ protected firstUpdated(_changedProperties: PropertyValues): void;
63
+ /** @inheritdoc */
64
+ protected update(changedProperties: PropertyValues<this>): void;
65
+ /** @inheritdoc */
66
+ protected render(): unknown;
67
+ }
68
+ declare global {
69
+ interface HTMLElementTagNameMap {
70
+ "m3e-input-chip-set": M3eInputChipSetElement;
71
+ }
72
+ }
73
+ export {};
74
+ //# sourceMappingURL=InputChipSetElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputChipSetElement.d.ts","sourceRoot":"","sources":["../../src/InputChipSetElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAGhE,OAAO,EAOL,SAAS,EAKV,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBACa,sBACX,SAAQ,2BAKR,YAAW,gBAAgB;;IA6B3B,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAyBpC;IAoBF,4BAA4B;IAC5B,IAAI,KAAK,IAAI,SAAS,mBAAmB,EAAE,CAI1C;IAED,6BAA6B;IAC7B,IAAI,KAAK,IAAI,SAAS,MAAM,EAAE,GAAG,IAAI,CAGpC;IAED,4BAA4B;IAC5B,IAAa,CAAC,SAAS,CAAC,oBAQvB;IAED,kBAAkB;IAClB,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,kBAAkB;IAClB,gBAAgB,IAAI,IAAI;IAIxB,kBAAkB;IACT,iBAAiB,IAAI,IAAI;IAWlC,kBAAkB;IACT,oBAAoB,IAAI,IAAI;IAQrC,kBAAkB;cACC,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;IAQzE,kBAAkB;cACC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAcxE,kBAAkB;cACC,MAAM,IAAI,OAAO;CA6IrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,sBAAsB,CAAC;KAC9C;CACF"}