@maliardic/ma-ui 0.2.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0
4
+
5
+ A visual release. **No API changes:** every selector, input, output, method,
6
+ exported type and `--m-*` token name from 0.2.x is unchanged, so templates and
7
+ TypeScript need no edits. Only the default look changes. Guide:
8
+ https://malipixel.com/ma-ui/migration
9
+
10
+ ### Changed
11
+
12
+ - **New default look.** Deep blue primary (`#2c4a9a`, dark `#8da6e6`), warm
13
+ neutrals, near-black text (`#161616`). The info colour now follows the
14
+ primary colour.
15
+ - **Slightly denser.** Base size 13.5px (`--m-font-size: 0.8435rem`, was 14px),
16
+ control padding about 4% smaller, menu/listbox/table rows follow the font
17
+ size (`--m-row-height`).
18
+ - **Consistent corners and shadows.** 3px small, 5px controls, 8px panels
19
+ (dialog, drawer, popover, menu, toast), three shared shadow levels.
20
+ - Hard-coded focus rings, shadows, radii and disabled opacities inside
21
+ components now come from shared core tokens.
22
+ - **Toast** messages slide in from their side and fade out more slowly
23
+ (320ms), with a much softer shadow.
24
+ - `icon` inputs and `<m-icon name>` are typed as the new `MIconInput`
25
+ (`MIconName | (string & {})`): any string is accepted and maicon names
26
+ autocomplete again in editors.
27
+
28
+ ### Added
29
+
30
+ - Core tokens: `--m-gap`, `--m-radius-sm`, `--m-radius-container`,
31
+ `--m-radius-full`, `--m-border-width`, `--m-focus-ring-width`,
32
+ `--m-disabled-opacity`, `--m-shadow-sm`, `--m-shadow-panel`,
33
+ `--m-shadow-overlay`, `--m-row-height`, `--m-control-line-height`.
34
+ Component tokens point at them, so changing one core token updates every
35
+ component; setting a component token directly still wins.
36
+ - `--m-toast-shadow` and `--m-toast-easing`.
37
+ - `styles/themes/classic.css` — load it after the main stylesheet to keep the
38
+ 0.2.x look.
39
+ - `MIconInput` type export.
40
+ - `.m-confirmation__message` class on the confirmation dialog message (the old
41
+ class is kept).
42
+
43
+ ### Fixed
44
+
45
+ - Components no longer rely on a global CSS reset: table cells and the radio
46
+ circle use `box-sizing: border-box`, and table page buttons have no browser
47
+ border.
48
+
49
+ ### Upgrading
50
+
51
+ ```sh
52
+ npm install @maliardic/ma-ui@^3
53
+ ```
54
+
55
+ To keep the previous look:
56
+
57
+ ```css
58
+ @import "@maliardic/ma-ui/styles/ma-ui.css";
59
+ @import "@maliardic/ma-ui/styles/themes/classic.css";
60
+ ```
61
+
62
+ ## 0.2.1
63
+
64
+ ### Changed
65
+
66
+ - `icon` inputs and `<m-icon name>` accept any string (for example icon names
67
+ coming from data). Unknown names render nothing.
68
+
3
69
  ## 0.2.0
4
70
 
5
71
  ### Breaking changes
@@ -51,6 +117,6 @@ Common Font Awesome names and their maicon equivalents:
51
117
  | `rotate-left` / `rotate-right` | `undo` / `redo` |
52
118
  | `list-ul` / `list-ol` | `list` / `list-numbers` |
53
119
 
54
- The full list is in `M_ICON_NAMES` and in the showcase Icon catalog. An unknown
120
+ The full list is in `M_ICON_NAMES` and on the docs Icon page. An unknown
55
121
  name renders nothing, so check the TypeScript errors on `MIconName` after
56
122
  upgrading.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Standalone Angular UI components, directives and CSS variable themes.
4
4
 
5
+ **Docs, live examples and theme builder:** https://malipixel.com/ma-ui/
6
+
5
7
  ## Install
6
8
 
7
9
  Requires Angular 22.1.0+ and Angular CDK 22.1.1+ within major version 22.
@@ -83,6 +85,20 @@ Use `.m-light` or `.m-dark` on a container and override the `--m-*` CSS variable
83
85
  Overlay components inherit theme settings from their host. Keep custom theme
84
86
  overrides after the library stylesheet.
85
87
 
88
+ A handful of core tokens (`--m-color-primary`, `--m-font-size`,
89
+ `--m-radius-control`, `--m-radius-container`, …) drive every component.
90
+ See https://malipixel.com/ma-ui/theming.
91
+
92
+ To keep the 0.2.x look after upgrading to 3.x, load the classic theme after the
93
+ main stylesheet:
94
+
95
+ ```css
96
+ @import "@maliardic/ma-ui/styles/ma-ui.css";
97
+ @import "@maliardic/ma-ui/styles/themes/classic.css";
98
+ ```
99
+
100
+ Upgrading from 0.2.x: https://malipixel.com/ma-ui/migration
101
+
86
102
  ## License
87
103
 
88
104
  MIT. See [LICENSE](LICENSE).
@@ -1,10 +1,11 @@
1
1
  import { NgTemplateOutlet, DOCUMENT, NgClass, NgStyle, formatDate, formatNumber, formatCurrency, getCurrencySymbol } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { input, computed, ChangeDetectionStrategy, Component, booleanAttribute, contentChild, signal, inject, forwardRef, output, contentChildren, effect, ElementRef, Renderer2, Directive, ViewContainerRef, viewChild, numberAttribute, HostListener, TemplateRef, afterNextRender, LOCALE_ID, Pipe, linkedSignal, DestroyRef, untracked, afterEveryRender, Injectable } from '@angular/core';
3
+ import { InjectionToken, isDevMode, input, inject, computed, ChangeDetectionStrategy, Component, booleanAttribute, contentChild, signal, forwardRef, output, contentChildren, effect, ElementRef, Renderer2, DestroyRef, Directive, ViewContainerRef, viewChild, numberAttribute, HostListener, TemplateRef, makeEnvironmentProviders, afterNextRender, LOCALE_ID, Pipe, linkedSignal, untracked, afterEveryRender, Injectable } from '@angular/core';
4
4
  import { MAICON_STROKE, MAICON_STROKE_WIDTH } from '@maliardic/ma-icon';
5
5
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
6
6
  import { Overlay } from '@angular/cdk/overlay';
7
7
  import { TemplatePortal } from '@angular/cdk/portal';
8
+ import { MAICON_SOLID } from '@maliardic/ma-icon/solid';
8
9
  import { Router } from '@angular/router';
9
10
  import * as i1 from '@angular/cdk/a11y';
10
11
  import { A11yModule } from '@angular/cdk/a11y';
@@ -14,34 +15,121 @@ import { ScrollingModule } from '@angular/cdk/scrolling';
14
15
 
15
16
  /** Every icon name in the maicon set (`@maliardic/ma-icon`), alphabetical. */
16
17
  const M_ICON_NAMES = Object.freeze(Object.keys(MAICON_STROKE));
17
- const SVG_NS = "http://www.w3.org/2000/svg";
18
- /** Returns the glyph for a name, or `null` for unknown / empty names. */
19
- function mIconGlyph(name) {
20
- const key = name?.trim();
21
- if (!key || !Object.prototype.hasOwnProperty.call(MAICON_STROKE, key)) {
18
+ /** Holds the solid drawings. Empty unless `provideMIconSolid()` is in the providers. */
19
+ const M_ICON_SOLID = new InjectionToken("M_ICON_SOLID");
20
+ /** Splits `"heart:solid"` into name and variant. Returns `null` for unknown names or modifiers. */
21
+ function parseMIconName(value) {
22
+ const key = value?.trim();
23
+ if (!key) {
24
+ return null;
25
+ }
26
+ const colon = key.indexOf(":");
27
+ const name = colon < 0 ? key : key.slice(0, colon).trim();
28
+ const modifier = colon < 0 ? null : key.slice(colon + 1).trim();
29
+ if (modifier !== null && modifier !== "solid" && modifier !== "outline") {
30
+ return null;
31
+ }
32
+ if (!Object.prototype.hasOwnProperty.call(MAICON_STROKE, name)) {
33
+ return null;
34
+ }
35
+ return { name: name, variant: modifier };
36
+ }
37
+ const solidGlyphCache = new WeakMap();
38
+ let warnedMissingSolid = false;
39
+ function solidGlyph(solid, name) {
40
+ if (!Object.prototype.hasOwnProperty.call(solid.glyphs, name)) {
41
+ return null;
42
+ }
43
+ let cache = solidGlyphCache.get(solid.glyphs);
44
+ if (!cache) {
45
+ cache = new Map();
46
+ solidGlyphCache.set(solid.glyphs, cache);
47
+ }
48
+ let glyph = cache.get(name);
49
+ if (!glyph) {
50
+ glyph = Object.freeze({ p: [], f: [solid.glyphs[name]] });
51
+ cache.set(name, glyph);
52
+ }
53
+ return glyph;
54
+ }
55
+ /**
56
+ * Resolves a reference to the glyph to draw. `"heart:solid"` gives the solid drawing when `solid`
57
+ * (from `M_ICON_SOLID`) has it, otherwise the outline. Returns `null` for unknown names.
58
+ */
59
+ function resolveMIcon(value, solid) {
60
+ const parsed = parseMIconName(value);
61
+ if (!parsed) {
22
62
  return null;
23
63
  }
24
- return MAICON_STROKE[key];
64
+ if (parsed.variant === "solid") {
65
+ if (solid) {
66
+ const glyph = solidGlyph(solid, parsed.name);
67
+ if (glyph) {
68
+ return { name: parsed.name, variant: "solid", glyph };
69
+ }
70
+ }
71
+ else if (isDevMode() && !warnedMissingSolid) {
72
+ warnedMissingSolid = true;
73
+ console.warn(`[ma-ui] "${value}" draws the outline because the solid icons are not registered. ` +
74
+ "Add provideMIconSolid() to the application providers.");
75
+ }
76
+ }
77
+ return {
78
+ name: parsed.name,
79
+ variant: "outline",
80
+ glyph: MAICON_STROKE[parsed.name],
81
+ };
25
82
  }
26
- /** True when `name` is an icon in the maicon set (`@maliardic/ma-icon`). */
83
+ /**
84
+ * Returns the glyph for a reference, or `null` for unknown / empty names. `:solid` needs the
85
+ * solid config (`inject(M_ICON_SOLID, { optional: true })`); without it the outline is returned.
86
+ */
87
+ function mIconGlyph(name, solid) {
88
+ return resolveMIcon(name, solid)?.glyph ?? null;
89
+ }
90
+ /** True when `name` is an icon in the maicon set, optionally with `:solid` / `:outline`. */
27
91
  function isMIconName(name) {
28
- return typeof name === "string" && mIconGlyph(name) !== null;
92
+ return typeof name === "string" && parseMIconName(name) !== null;
29
93
  }
94
+ /**
95
+ * The reference to draw for an icon in a stateful control: when `active` is true, automatic solid
96
+ * is on and the icon has a solid drawing, a plain `"heart"` becomes `"heart:solid"`. References
97
+ * with an explicit variant are kept as written.
98
+ */
99
+ function mIconForState(value, active, solid) {
100
+ const text = value?.trim() ?? "";
101
+ if (!active || !solid?.activeStates) {
102
+ return text;
103
+ }
104
+ const parsed = parseMIconName(text);
105
+ if (!parsed ||
106
+ parsed.variant !== null ||
107
+ !Object.prototype.hasOwnProperty.call(solid.glyphs, parsed.name)) {
108
+ return text;
109
+ }
110
+ return `${parsed.name}:solid`;
111
+ }
112
+ const SVG_NS = "http://www.w3.org/2000/svg";
30
113
  /**
31
114
  * Builds the `<svg>` that `<m-icon>` renders (with the `m-icon` class on the svg itself), for places that
32
115
  * create DOM imperatively (e.g. directives). Returns `null` for unknown names.
33
116
  */
34
- function createMIconSvg(document, name) {
35
- const glyph = mIconGlyph(name);
36
- if (!glyph) {
117
+ function createMIconSvg(document, name, solid) {
118
+ const resolved = resolveMIcon(name, solid);
119
+ if (!resolved) {
37
120
  return null;
38
121
  }
122
+ const { glyph } = resolved;
39
123
  const svg = document.createElementNS(SVG_NS, "svg");
40
124
  for (const [key, value] of Object.entries(SVG_ATTRIBUTES)) {
41
125
  svg.setAttribute(key, value);
42
126
  }
43
127
  svg.setAttribute("aria-hidden", "true");
44
128
  svg.setAttribute("focusable", "false");
129
+ svg.setAttribute("data-icon", resolved.name);
130
+ if (resolved.variant === "solid") {
131
+ svg.setAttribute("data-icon-variant", "solid");
132
+ }
45
133
  for (const d of glyph.p) {
46
134
  const path = document.createElementNS(SVG_NS, "path");
47
135
  path.setAttribute("d", d);
@@ -74,21 +162,23 @@ const SVG_ATTRIBUTES = {
74
162
  * <m-icon name="search" />
75
163
  * <button mButton aria-label="Ara"><m-icon name="search" /></button>
76
164
  * <m-icon name="alert-triangle" label="Uyarı" />
165
+ * <m-icon name="heart:solid" /> <!-- needs provideMIconSolid() -->
77
166
  * ```
78
167
  */
79
168
  class MIcon {
80
- /** Icon name. Unknown names render nothing. */
169
+ /** Icon name, optionally with `:solid` (e.g. `heart:solid`). Unknown names render nothing. */
81
170
  name = input.required(/* @ts-ignore */
82
171
  ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
83
172
  /** Accessible name. Empty means decorative (`aria-hidden`). */
84
173
  label = input(/* @ts-ignore */
85
174
  ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
86
175
  strokeWidth = MAICON_STROKE_WIDTH;
87
- glyph = computed(() => mIconGlyph(this.name()), /* @ts-ignore */
88
- ...(ngDevMode ? [{ debugName: "glyph" }] : /* istanbul ignore next */ []));
176
+ solid = inject(M_ICON_SOLID, { optional: true });
177
+ resolved = computed(() => resolveMIcon(this.name(), this.solid), /* @ts-ignore */
178
+ ...(ngDevMode ? [{ debugName: "resolved" }] : /* istanbul ignore next */ []));
89
179
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
90
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MIcon, isStandalone: true, selector: "m-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-icon": "glyph() ? name() : null", "attr.role": "label() ? 'img' : null", "attr.aria-label": "label() || null", "attr.aria-hidden": "label() ? null : 'true'" }, classAttribute: "m-icon" }, ngImport: i0, template: `
91
- @if (glyph(); as g) {
180
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MIcon, isStandalone: true, selector: "m-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-icon": "resolved()?.name ?? null", "attr.data-icon-variant": "resolved()?.variant === 'solid' ? 'solid' : null", "attr.role": "label() ? 'img' : null", "attr.aria-label": "label() || null", "attr.aria-hidden": "label() ? null : 'true'" }, classAttribute: "m-icon" }, ngImport: i0, template: `
181
+ @if (resolved()?.glyph; as g) {
92
182
  <svg
93
183
  class="m-icon__svg"
94
184
  viewBox="0 0 24 24"
@@ -119,13 +209,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
119
209
  changeDetection: ChangeDetectionStrategy.OnPush,
120
210
  host: {
121
211
  class: "m-icon",
122
- "[attr.data-icon]": "glyph() ? name() : null",
212
+ "[attr.data-icon]": "resolved()?.name ?? null",
213
+ "[attr.data-icon-variant]": "resolved()?.variant === 'solid' ? 'solid' : null",
123
214
  "[attr.role]": "label() ? 'img' : null",
124
215
  "[attr.aria-label]": "label() || null",
125
216
  "[attr.aria-hidden]": "label() ? null : 'true'",
126
217
  },
127
218
  template: `
128
- @if (glyph(); as g) {
219
+ @if (resolved()?.glyph; as g) {
129
220
  <svg
130
221
  class="m-icon__svg"
131
222
  viewBox="0 0 24 24"
@@ -338,26 +429,45 @@ class MButtonDirective {
338
429
  elementRef = inject(ElementRef);
339
430
  renderer = inject(Renderer2);
340
431
  document = inject(DOCUMENT);
432
+ solid = inject(M_ICON_SOLID, { optional: true });
341
433
  iconElement = null;
434
+ /** Mirrors `aria-pressed="true"` on the host (toggle buttons). */
435
+ pressed = signal(false, /* @ts-ignore */
436
+ ...(ngDevMode ? [{ debugName: "pressed" }] : /* istanbul ignore next */ []));
342
437
  size = input("md", { ...(ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {}), alias: "mButtonSize" });
343
- /** maicon name rendered before the content. */
438
+ /**
439
+ * maicon name rendered before the content, optionally with `:solid`. While the button has
440
+ * `aria-pressed="true"` it draws the solid variant (with `provideMIconSolid()`).
441
+ */
344
442
  icon = input("", /* @ts-ignore */
345
443
  ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
346
444
  block = input(false, { ...(ngDevMode ? { debugName: "block" } : /* istanbul ignore next */ {}), alias: "mButtonBlock",
347
445
  transform: booleanAttribute });
348
446
  iconOnly = input(false, { ...(ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
349
447
  constructor() {
448
+ this.watchPressed();
350
449
  effect(() => {
351
- this.syncIcon(this.icon());
450
+ this.syncIcon(mIconForState(this.icon(), this.pressed(), this.solid));
352
451
  });
353
452
  }
453
+ /** Follows `aria-pressed` however it is set (static attribute, `[attr.aria-pressed]`, …). */
454
+ watchPressed() {
455
+ if (!this.solid?.activeStates || typeof MutationObserver === "undefined") {
456
+ return;
457
+ }
458
+ const host = this.elementRef.nativeElement;
459
+ const read = () => this.pressed.set(host.getAttribute("aria-pressed") === "true");
460
+ read();
461
+ const observer = new MutationObserver(read);
462
+ observer.observe(host, { attributes: true, attributeFilter: ["aria-pressed"] });
463
+ inject(DestroyRef).onDestroy(() => observer.disconnect());
464
+ }
354
465
  syncIcon(name) {
355
466
  this.removeIcon();
356
- const svg = createMIconSvg(this.document, name);
467
+ const svg = createMIconSvg(this.document, name, this.solid);
357
468
  if (!svg) {
358
469
  return;
359
470
  }
360
- svg.setAttribute("data-icon", name.trim());
361
471
  this.renderer.insertBefore(this.elementRef.nativeElement, svg, this.elementRef.nativeElement.firstChild);
362
472
  this.iconElement = svg;
363
473
  }
@@ -392,9 +502,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
392
502
  }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "mButtonSize", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], block: [{ type: i0.Input, args: [{ isSignal: true, alias: "mButtonBlock", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }] } });
393
503
 
394
504
  class MButton {
505
+ pressedAttr = computed(() => {
506
+ const value = this.ariaPressed();
507
+ return value === undefined || value === null ? null : String(value);
508
+ }, /* @ts-ignore */
509
+ ...(ngDevMode ? [{ debugName: "pressedAttr" }] : /* istanbul ignore next */ []));
395
510
  icon = input("", /* @ts-ignore */
396
511
  ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
397
512
  ariaLabel = input("", { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: "aria-label" });
513
+ /** Toggle state, forwarded to the inner button. A pressed button draws its icon solid. */
514
+ ariaPressed = input(undefined, { ...(ngDevMode ? { debugName: "ariaPressed" } : /* istanbul ignore next */ {}), alias: "aria-pressed" });
398
515
  size = input("md", /* @ts-ignore */
399
516
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
400
517
  type = input("button", /* @ts-ignore */
@@ -405,7 +522,7 @@ class MButton {
405
522
  styleClass = input("", /* @ts-ignore */
406
523
  ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
407
524
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
408
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.0", type: MButton, isStandalone: true, selector: "m-button", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, block: { classPropertyName: "block", publicName: "block", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.m-button-host--sm": "size() === 'sm'", "class.m-button-host--md": "size() === 'md'", "class.m-button-host--lg": "size() === 'lg'", "class.m-button-host--block": "block()", "class.m-button-host--icon-only": "iconOnly()" }, classAttribute: "m-button-host" }, ngImport: i0, template: "<button\n mButton\n [mButtonSize]=\"size()\"\n [mButtonBlock]=\"block()\"\n [icon]=\"icon()\"\n [iconOnly]=\"iconOnly()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [ngClass]=\"styleClass()\"\n>\n <ng-content />\n</button>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: MButtonDirective, selector: "button[mButton], a[mButton]", inputs: ["mButtonSize", "icon", "mButtonBlock", "iconOnly"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
525
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.0", type: MButton, isStandalone: true, selector: "m-button", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaPressed: { classPropertyName: "ariaPressed", publicName: "aria-pressed", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, block: { classPropertyName: "block", publicName: "block", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.m-button-host--sm": "size() === 'sm'", "class.m-button-host--md": "size() === 'md'", "class.m-button-host--lg": "size() === 'lg'", "class.m-button-host--block": "block()", "class.m-button-host--icon-only": "iconOnly()", "attr.aria-pressed": "null" }, classAttribute: "m-button-host" }, ngImport: i0, template: "<button\n mButton\n [mButtonSize]=\"size()\"\n [mButtonBlock]=\"block()\"\n [icon]=\"icon()\"\n [iconOnly]=\"iconOnly()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-pressed]=\"pressedAttr()\"\n [ngClass]=\"styleClass()\"\n>\n <ng-content />\n</button>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: MButtonDirective, selector: "button[mButton], a[mButton]", inputs: ["mButtonSize", "icon", "mButtonBlock", "iconOnly"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
409
526
  }
410
527
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MButton, decorators: [{
411
528
  type: Component,
@@ -416,8 +533,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
416
533
  "[class.m-button-host--lg]": "size() === 'lg'",
417
534
  "[class.m-button-host--block]": "block()",
418
535
  "[class.m-button-host--icon-only]": "iconOnly()",
419
- }, template: "<button\n mButton\n [mButtonSize]=\"size()\"\n [mButtonBlock]=\"block()\"\n [icon]=\"icon()\"\n [iconOnly]=\"iconOnly()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [ngClass]=\"styleClass()\"\n>\n <ng-content />\n</button>\n" }]
420
- }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], block: [{ type: i0.Input, args: [{ isSignal: true, alias: "block", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }] } });
536
+ "[attr.aria-pressed]": "null",
537
+ }, template: "<button\n mButton\n [mButtonSize]=\"size()\"\n [mButtonBlock]=\"block()\"\n [icon]=\"icon()\"\n [iconOnly]=\"iconOnly()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-pressed]=\"pressedAttr()\"\n [ngClass]=\"styleClass()\"\n>\n <ng-content />\n</button>\n" }]
538
+ }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaPressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-pressed", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], block: [{ type: i0.Input, args: [{ isSignal: true, alias: "block", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }] } });
421
539
 
422
540
  function provideValueAccessor(type) {
423
541
  return {
@@ -1767,6 +1885,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
1767
1885
  }, template: "<ul class=\"m-file-list__list\" [attr.aria-label]=\"ariaLabel()\">\n @for (row of rows(); track $index) {\n <li\n class=\"m-file-list__row\"\n [class.m-file-list__row--disabled]=\"row.disabled\"\n >\n <m-icon class=\"m-file-list__icon\" [name]=\"row.icon\" />\n <div class=\"m-file-list__details\">\n <span class=\"m-file-list__name\">{{ row.name }}</span>\n @if (row.size) { <span class=\"m-file-list__size\">{{ row.size }}</span> }\n </div>\n @if (downloadable() || removable()) {\n <div class=\"m-file-list__actions\">\n @if (downloadable()) {\n <button\n mButton\n class=\"m-button--ghost\"\n type=\"button\"\n iconOnly\n icon=\"download\"\n [mButtonSize]=\"size()\"\n [disabled]=\"row.disabled\"\n [mTooltip]=\"downloadLabel()\"\n [attr.aria-label]=\"downloadLabel() + ': ' + row.name\"\n (click)=\"requestDownload(row.file, row.disabled)\"\n ></button>\n } @if (removable()) {\n <button\n mButton\n class=\"m-button--ghost\"\n type=\"button\"\n iconOnly\n icon=\"trash\"\n [mButtonSize]=\"size()\"\n [disabled]=\"row.disabled\"\n [mTooltip]=\"removeLabel()\"\n [attr.aria-label]=\"removeLabel() + ': ' + row.name\"\n (click)=\"requestRemove(row.file, row.disabled)\"\n ></button>\n }\n </div>\n }\n </li>\n } @empty {\n <li class=\"m-file-list__empty\">{{ emptyMessage() }}</li>\n }\n</ul>\n" }]
1768
1886
  }], propDecorators: { files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }], nameField: [{ type: i0.Input, args: [{ isSignal: true, alias: "nameField", required: false }] }], sizeField: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizeField", required: false }] }], typeField: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], downloadable: [{ type: i0.Input, args: [{ isSignal: true, alias: "downloadable", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], unnamedLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "unnamedLabel", required: false }] }], downloadLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "downloadLabel", required: false }] }], removeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeLabel", required: false }] }], download: [{ type: i0.Output, args: ["download"] }], remove: [{ type: i0.Output, args: ["remove"] }] } });
1769
1887
 
1888
+ /**
1889
+ * Registers the solid icon drawings (`MAICON_SOLID`, ~20 KB gzip) so `"heart:solid"` and the
1890
+ * automatic active-state solid work. Apps that never call it do not ship the solid path data.
1891
+ *
1892
+ * ```ts
1893
+ * bootstrapApplication(App, { providers: [provideMIconSolid()] });
1894
+ * ```
1895
+ */
1896
+ function provideMIconSolid(options = {}) {
1897
+ const config = {
1898
+ glyphs: MAICON_SOLID,
1899
+ activeStates: options.activeStates ?? true,
1900
+ };
1901
+ return makeEnvironmentProviders([{ provide: M_ICON_SOLID, useValue: config }]);
1902
+ }
1903
+
1770
1904
  const MASK_TOKENS = {
1771
1905
  "9": /\d/,
1772
1906
  A: /[a-z]/i,
@@ -6376,6 +6510,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
6376
6510
  }, template: "<section\n class=\"m-tab-panel\"\n role=\"tabpanel\"\n [attr.id]=\"tabPanelId\"\n [attr.aria-labelledby]=\"tabButtonId\"\n [attr.tabindex]=\"active() ? 0 : null\"\n [hidden]=\"!active()\"\n>\n @if (lazy() && lazyTemplate()) {\n @if (active() || loadedOnce()) {\n <ng-container [ngTemplateOutlet]=\"lazyTemplate()!\" />\n }\n } @else {\n <ng-content />\n }\n</section>\n" }]
6377
6511
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], headerTemplate: [{ type: i0.ContentChild, args: ["header", { isSignal: true }] }], lazyTemplate: [{ type: i0.ContentChild, args: ["lazy", { isSignal: true }] }] } });
6378
6512
  class MTabs {
6513
+ solid = inject(M_ICON_SOLID, { optional: true });
6379
6514
  value = input("", /* @ts-ignore */
6380
6515
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
6381
6516
  size = input("md", /* @ts-ignore */
@@ -6415,6 +6550,10 @@ class MTabs {
6415
6550
  isActive(tab) {
6416
6551
  return this.activeTab() === tab;
6417
6552
  }
6553
+ /** The active tab draws its icon solid when `provideMIconSolid()` allows it. */
6554
+ tabIcon(tab) {
6555
+ return mIconForState(tab.icon(), this.isActive(tab), this.solid);
6556
+ }
6418
6557
  headerContext(tab) {
6419
6558
  return {
6420
6559
  active: this.isActive(tab),
@@ -6477,7 +6616,7 @@ class MTabs {
6477
6616
  });
6478
6617
  }
6479
6618
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MTabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
6480
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MTabs, isStandalone: true, selector: "m-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.m-tabs-host--sm": "size() === 'sm'", "class.m-tabs-host--md": "size() === 'md'", "class.m-tabs-host--lg": "size() === 'lg'" }, classAttribute: "m-tabs-host" }, queries: [{ propertyName: "tabs", predicate: MTab, isSignal: true }], ngImport: i0, template: "<div\n class=\"m-tabs\"\n [class.m-tabs--sm]=\"size() === 'sm'\"\n [class.m-tabs--md]=\"size() === 'md'\"\n [class.m-tabs--lg]=\"size() === 'lg'\"\n>\n <div\n class=\"m-tabs__list\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n >\n @for (tab of tabs(); track tabTrack(tab)) {\n <button\n class=\"m-tabs__tab\"\n role=\"tab\"\n type=\"button\"\n [attr.id]=\"tab.tabButtonId\"\n [attr.aria-controls]=\"tab.tabPanelId\"\n [attr.aria-selected]=\"isActive(tab)\"\n [attr.aria-disabled]=\"tab.disabled()\"\n [attr.tabindex]=\"isActive(tab) ? 0 : -1\"\n [attr.data-tab-value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [class.m-tabs__tab--active]=\"isActive(tab)\"\n (click)=\"selectTab(tab)\"\n (keydown)=\"onTabKeydown($event, tab)\"\n >\n @if (tab.headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"tab.headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"headerContext(tab)\"\n />\n } @else { @if (tab.icon()) {\n <m-icon class=\"m-tabs__tab-icon\" [name]=\"tab.icon()\" />\n }\n <span class=\"m-tabs__tab-label\">{{ tab.label() }}</span>\n }\n </button>\n }\n </div>\n\n <div class=\"m-tabs__panels\">\n <ng-content />\n </div>\n</div>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
6619
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MTabs, isStandalone: true, selector: "m-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.m-tabs-host--sm": "size() === 'sm'", "class.m-tabs-host--md": "size() === 'md'", "class.m-tabs-host--lg": "size() === 'lg'" }, classAttribute: "m-tabs-host" }, queries: [{ propertyName: "tabs", predicate: MTab, isSignal: true }], ngImport: i0, template: "<div\n class=\"m-tabs\"\n [class.m-tabs--sm]=\"size() === 'sm'\"\n [class.m-tabs--md]=\"size() === 'md'\"\n [class.m-tabs--lg]=\"size() === 'lg'\"\n>\n <div\n class=\"m-tabs__list\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n >\n @for (tab of tabs(); track tabTrack(tab)) {\n <button\n class=\"m-tabs__tab\"\n role=\"tab\"\n type=\"button\"\n [attr.id]=\"tab.tabButtonId\"\n [attr.aria-controls]=\"tab.tabPanelId\"\n [attr.aria-selected]=\"isActive(tab)\"\n [attr.aria-disabled]=\"tab.disabled()\"\n [attr.tabindex]=\"isActive(tab) ? 0 : -1\"\n [attr.data-tab-value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [class.m-tabs__tab--active]=\"isActive(tab)\"\n (click)=\"selectTab(tab)\"\n (keydown)=\"onTabKeydown($event, tab)\"\n >\n @if (tab.headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"tab.headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"headerContext(tab)\"\n />\n } @else { @if (tab.icon()) {\n <m-icon class=\"m-tabs__tab-icon\" [name]=\"tabIcon(tab)\" />\n }\n <span class=\"m-tabs__tab-label\">{{ tab.label() }}</span>\n }\n </button>\n }\n </div>\n\n <div class=\"m-tabs__panels\">\n <ng-content />\n </div>\n</div>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
6481
6620
  }
6482
6621
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MTabs, decorators: [{
6483
6622
  type: Component,
@@ -6486,7 +6625,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
6486
6625
  "[class.m-tabs-host--sm]": "size() === 'sm'",
6487
6626
  "[class.m-tabs-host--md]": "size() === 'md'",
6488
6627
  "[class.m-tabs-host--lg]": "size() === 'lg'",
6489
- }, template: "<div\n class=\"m-tabs\"\n [class.m-tabs--sm]=\"size() === 'sm'\"\n [class.m-tabs--md]=\"size() === 'md'\"\n [class.m-tabs--lg]=\"size() === 'lg'\"\n>\n <div\n class=\"m-tabs__list\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n >\n @for (tab of tabs(); track tabTrack(tab)) {\n <button\n class=\"m-tabs__tab\"\n role=\"tab\"\n type=\"button\"\n [attr.id]=\"tab.tabButtonId\"\n [attr.aria-controls]=\"tab.tabPanelId\"\n [attr.aria-selected]=\"isActive(tab)\"\n [attr.aria-disabled]=\"tab.disabled()\"\n [attr.tabindex]=\"isActive(tab) ? 0 : -1\"\n [attr.data-tab-value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [class.m-tabs__tab--active]=\"isActive(tab)\"\n (click)=\"selectTab(tab)\"\n (keydown)=\"onTabKeydown($event, tab)\"\n >\n @if (tab.headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"tab.headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"headerContext(tab)\"\n />\n } @else { @if (tab.icon()) {\n <m-icon class=\"m-tabs__tab-icon\" [name]=\"tab.icon()\" />\n }\n <span class=\"m-tabs__tab-label\">{{ tab.label() }}</span>\n }\n </button>\n }\n </div>\n\n <div class=\"m-tabs__panels\">\n <ng-content />\n </div>\n</div>\n" }]
6628
+ }, template: "<div\n class=\"m-tabs\"\n [class.m-tabs--sm]=\"size() === 'sm'\"\n [class.m-tabs--md]=\"size() === 'md'\"\n [class.m-tabs--lg]=\"size() === 'lg'\"\n>\n <div\n class=\"m-tabs__list\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n >\n @for (tab of tabs(); track tabTrack(tab)) {\n <button\n class=\"m-tabs__tab\"\n role=\"tab\"\n type=\"button\"\n [attr.id]=\"tab.tabButtonId\"\n [attr.aria-controls]=\"tab.tabPanelId\"\n [attr.aria-selected]=\"isActive(tab)\"\n [attr.aria-disabled]=\"tab.disabled()\"\n [attr.tabindex]=\"isActive(tab) ? 0 : -1\"\n [attr.data-tab-value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [class.m-tabs__tab--active]=\"isActive(tab)\"\n (click)=\"selectTab(tab)\"\n (keydown)=\"onTabKeydown($event, tab)\"\n >\n @if (tab.headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"tab.headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"headerContext(tab)\"\n />\n } @else { @if (tab.icon()) {\n <m-icon class=\"m-tabs__tab-icon\" [name]=\"tabIcon(tab)\" />\n }\n <span class=\"m-tabs__tab-label\">{{ tab.label() }}</span>\n }\n </button>\n }\n </div>\n\n <div class=\"m-tabs__panels\">\n <ng-content />\n </div>\n</div>\n" }]
6490
6629
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MTab), { isSignal: true }] }] } });
6491
6630
 
6492
6631
  class MTextarea {
@@ -6571,7 +6710,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
6571
6710
  }], ctorParameters: () => [], propDecorators: { inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], autoResize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoResize", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
6572
6711
 
6573
6712
  const DEFAULT_LIFE = 3000;
6574
- const EXIT_DURATION = 140;
6713
+ /** Matches the default --m-toast-transition-duration so the exit animation can finish. */
6714
+ const EXIT_DURATION = 320;
6575
6715
  const DEFAULT_ICONS = {
6576
6716
  info: "info",
6577
6717
  success: "circle-check",
@@ -6857,16 +6997,16 @@ class Confirmation {
6857
6997
  this.item.set(null);
6858
6998
  }
6859
6999
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Confirmation, deps: [], target: i0.ɵɵFactoryTarget.Component });
6860
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Confirmation, isStandalone: true, selector: "m-confirmationDialog", inputs: { acceptLabel: { classPropertyName: "acceptLabel", publicName: "acceptLabel", isSignal: true, isRequired: false, transformFunction: null }, rejectLabel: { classPropertyName: "rejectLabel", publicName: "rejectLabel", isSignal: true, isRequired: false, transformFunction: null }, acceptButtonStyle: { classPropertyName: "acceptButtonStyle", publicName: "acceptButtonStyle", isSignal: true, isRequired: false, transformFunction: null }, rejectButtonStyle: { classPropertyName: "rejectButtonStyle", publicName: "rejectButtonStyle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<m-dialog data-demo-dialog=\"template\" size=\"lg\" [closeOnEscape]=\"closeOnEscape()\" [visible]=\"item()\"\n [closable]=\"closable()\" (visibleChange)=\"onClose()\">\n <ng-template #content>\n @if (item()?.header) {\n <ng-template #header>\n <span>{{item()?.header}}</span>\n </ng-template>\n }\n @if (item()?.message) {\n <p class=\"showcase-field__message\">\n {{item()?.message}}\n </p>\n }\n </ng-template>\n <ng-template #footer>\n @if (rejectVisible()) {\n <m-button [class]=\"rejectButtonStyle()\" (click)=\"onReject()\">{{_rejectLabel()}}</m-button>\n }\n @if (acceptVisible()) {\n <m-button [class]=\"acceptButtonStyle()\" (click)=\"onAccept()\">{{_acceptLabel()}}\n </m-button>\n }\n </ng-template>\n</m-dialog>\n", dependencies: [{ kind: "component", type: MDialog, selector: "m-dialog", inputs: ["visible", "header", "modal", "closable", "dismissibleMask", "closeOnEscape", "draggable", "maximizable", "maximized", "size", "width", "style", "styleClass", "dialogStyleClass", "class", "closeLabel", "maximizeLabel", "restoreLabel"], outputs: ["visibleChange", "maximizedChange"] }, { kind: "component", type: MButton, selector: "m-button", inputs: ["icon", "aria-label", "size", "type", "block", "iconOnly", "disabled", "styleClass"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
7000
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: Confirmation, isStandalone: true, selector: "m-confirmationDialog", inputs: { acceptLabel: { classPropertyName: "acceptLabel", publicName: "acceptLabel", isSignal: true, isRequired: false, transformFunction: null }, rejectLabel: { classPropertyName: "rejectLabel", publicName: "rejectLabel", isSignal: true, isRequired: false, transformFunction: null }, acceptButtonStyle: { classPropertyName: "acceptButtonStyle", publicName: "acceptButtonStyle", isSignal: true, isRequired: false, transformFunction: null }, rejectButtonStyle: { classPropertyName: "rejectButtonStyle", publicName: "rejectButtonStyle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<m-dialog data-demo-dialog=\"template\" size=\"lg\" [closeOnEscape]=\"closeOnEscape()\" [visible]=\"item()\"\n [closable]=\"closable()\" (visibleChange)=\"onClose()\">\n <ng-template #content>\n @if (item()?.header) {\n <ng-template #header>\n <span>{{item()?.header}}</span>\n </ng-template>\n }\n @if (item()?.message) {\n <p class=\"m-confirmation__message showcase-field__message\">\n {{item()?.message}}\n </p>\n }\n </ng-template>\n <ng-template #footer>\n @if (rejectVisible()) {\n <m-button [class]=\"rejectButtonStyle()\" (click)=\"onReject()\">{{_rejectLabel()}}</m-button>\n }\n @if (acceptVisible()) {\n <m-button [class]=\"acceptButtonStyle()\" (click)=\"onAccept()\">{{_acceptLabel()}}\n </m-button>\n }\n </ng-template>\n</m-dialog>\n", dependencies: [{ kind: "component", type: MDialog, selector: "m-dialog", inputs: ["visible", "header", "modal", "closable", "dismissibleMask", "closeOnEscape", "draggable", "maximizable", "maximized", "size", "width", "style", "styleClass", "dialogStyleClass", "class", "closeLabel", "maximizeLabel", "restoreLabel"], outputs: ["visibleChange", "maximizedChange"] }, { kind: "component", type: MButton, selector: "m-button", inputs: ["icon", "aria-label", "aria-pressed", "size", "type", "block", "iconOnly", "disabled", "styleClass"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
6861
7001
  }
6862
7002
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: Confirmation, decorators: [{
6863
7003
  type: Component,
6864
- args: [{ selector: "m-confirmationDialog", imports: [MDialog, MButton], changeDetection: ChangeDetectionStrategy.Eager, template: "<m-dialog data-demo-dialog=\"template\" size=\"lg\" [closeOnEscape]=\"closeOnEscape()\" [visible]=\"item()\"\n [closable]=\"closable()\" (visibleChange)=\"onClose()\">\n <ng-template #content>\n @if (item()?.header) {\n <ng-template #header>\n <span>{{item()?.header}}</span>\n </ng-template>\n }\n @if (item()?.message) {\n <p class=\"showcase-field__message\">\n {{item()?.message}}\n </p>\n }\n </ng-template>\n <ng-template #footer>\n @if (rejectVisible()) {\n <m-button [class]=\"rejectButtonStyle()\" (click)=\"onReject()\">{{_rejectLabel()}}</m-button>\n }\n @if (acceptVisible()) {\n <m-button [class]=\"acceptButtonStyle()\" (click)=\"onAccept()\">{{_acceptLabel()}}\n </m-button>\n }\n </ng-template>\n</m-dialog>\n" }]
7004
+ args: [{ selector: "m-confirmationDialog", imports: [MDialog, MButton], changeDetection: ChangeDetectionStrategy.Eager, template: "<m-dialog data-demo-dialog=\"template\" size=\"lg\" [closeOnEscape]=\"closeOnEscape()\" [visible]=\"item()\"\n [closable]=\"closable()\" (visibleChange)=\"onClose()\">\n <ng-template #content>\n @if (item()?.header) {\n <ng-template #header>\n <span>{{item()?.header}}</span>\n </ng-template>\n }\n @if (item()?.message) {\n <p class=\"m-confirmation__message showcase-field__message\">\n {{item()?.message}}\n </p>\n }\n </ng-template>\n <ng-template #footer>\n @if (rejectVisible()) {\n <m-button [class]=\"rejectButtonStyle()\" (click)=\"onReject()\">{{_rejectLabel()}}</m-button>\n }\n @if (acceptVisible()) {\n <m-button [class]=\"acceptButtonStyle()\" (click)=\"onAccept()\">{{_acceptLabel()}}\n </m-button>\n }\n </ng-template>\n</m-dialog>\n" }]
6865
7005
  }], propDecorators: { acceptLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptLabel", required: false }] }], rejectLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectLabel", required: false }] }], acceptButtonStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "acceptButtonStyle", required: false }] }], rejectButtonStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "rejectButtonStyle", required: false }] }] } });
6866
7006
 
6867
7007
  /**
6868
7008
  * Generated bundle index. Do not edit.
6869
7009
  */
6870
7010
 
6871
- export { Confirmation, MAccordion, MAccordionPanel, MBadge, MBadgeDirective, MButton, MButtonDirective, MCheckbox, MCommandMenu, MConfirmationService, MDatePicker, MDialog, MDrawer, MFieldValuePipe, MFileList, MFileUpload, MIcon, MInput, MInputDirective, MInputNumber, MInputNumberDirective, MListbox, MMenu, MMenuSearch, MMultiSelect, MPopover, MProgressBar, MProgressSpinner, MRadio, MRadioGroup, MSelect, MSwitch, MTab, MTable, MTableColumn, MTabs, MTextarea, MTieredMenu, MToast, MToastService, MTooltipDirective, M_ICON_NAMES, createMIconSvg, getFieldValue, isMIconName, mIconGlyph, noopTouched, provideValueAccessor, resolveFieldDisplayValue, resolveFieldRawValue, syncMThemeToOverlay };
7011
+ export { Confirmation, MAccordion, MAccordionPanel, MBadge, MBadgeDirective, MButton, MButtonDirective, MCheckbox, MCommandMenu, MConfirmationService, MDatePicker, MDialog, MDrawer, MFieldValuePipe, MFileList, MFileUpload, MIcon, MInput, MInputDirective, MInputNumber, MInputNumberDirective, MListbox, MMenu, MMenuSearch, MMultiSelect, MPopover, MProgressBar, MProgressSpinner, MRadio, MRadioGroup, MSelect, MSwitch, MTab, MTable, MTableColumn, MTabs, MTextarea, MTieredMenu, MToast, MToastService, MTooltipDirective, M_ICON_NAMES, M_ICON_SOLID, createMIconSvg, getFieldValue, isMIconName, mIconForState, mIconGlyph, noopTouched, parseMIconName, provideMIconSolid, provideValueAccessor, resolveFieldDisplayValue, resolveFieldRawValue, resolveMIcon, syncMThemeToOverlay };
6872
7012
  //# sourceMappingURL=maliardic-ma-ui.mjs.map