@maliardic/ma-ui 0.1.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
- import { NgTemplateOutlet, NgClass, NgStyle, DOCUMENT, formatDate, formatNumber, formatCurrency, getCurrencySymbol } from '@angular/common';
1
+ import { NgTemplateOutlet, DOCUMENT, NgClass, NgStyle, formatDate, formatNumber, formatCurrency, getCurrencySymbol } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { input, booleanAttribute, contentChild, signal, inject, forwardRef, ChangeDetectionStrategy, Component, output, contentChildren, computed, effect, ElementRef, Renderer2, Directive, ViewContainerRef, viewChild, numberAttribute, HostListener, TemplateRef, afterNextRender, LOCALE_ID, Pipe, linkedSignal, DestroyRef, untracked, afterEveryRender, Injectable } 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';
4
+ import { MAICON_STROKE, MAICON_STROKE_WIDTH } from '@maliardic/ma-icon';
4
5
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
6
  import { Overlay } from '@angular/cdk/overlay';
6
7
  import { TemplatePortal } from '@angular/cdk/portal';
@@ -11,6 +12,145 @@ import { CdkMenu, CdkMenuItem, CdkMenuTrigger } from '@angular/cdk/menu';
11
12
  import * as i1$1 from '@angular/cdk/scrolling';
12
13
  import { ScrollingModule } from '@angular/cdk/scrolling';
13
14
 
15
+ /** Every icon name in the maicon set (`@maliardic/ma-icon`), alphabetical. */
16
+ 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)) {
22
+ return null;
23
+ }
24
+ return MAICON_STROKE[key];
25
+ }
26
+ /** True when `name` is an icon in the maicon set (`@maliardic/ma-icon`). */
27
+ function isMIconName(name) {
28
+ return typeof name === "string" && mIconGlyph(name) !== null;
29
+ }
30
+ /**
31
+ * Builds the `<svg>` that `<m-icon>` renders (with the `m-icon` class on the svg itself), for places that
32
+ * create DOM imperatively (e.g. directives). Returns `null` for unknown names.
33
+ */
34
+ function createMIconSvg(document, name) {
35
+ const glyph = mIconGlyph(name);
36
+ if (!glyph) {
37
+ return null;
38
+ }
39
+ const svg = document.createElementNS(SVG_NS, "svg");
40
+ for (const [key, value] of Object.entries(SVG_ATTRIBUTES)) {
41
+ svg.setAttribute(key, value);
42
+ }
43
+ svg.setAttribute("aria-hidden", "true");
44
+ svg.setAttribute("focusable", "false");
45
+ for (const d of glyph.p) {
46
+ const path = document.createElementNS(SVG_NS, "path");
47
+ path.setAttribute("d", d);
48
+ svg.appendChild(path);
49
+ }
50
+ for (const d of glyph.f ?? []) {
51
+ const path = document.createElementNS(SVG_NS, "path");
52
+ path.setAttribute("d", d);
53
+ path.setAttribute("fill", "currentColor");
54
+ path.setAttribute("stroke", "none");
55
+ svg.appendChild(path);
56
+ }
57
+ return svg;
58
+ }
59
+ const SVG_ATTRIBUTES = {
60
+ class: "m-icon m-icon__svg",
61
+ viewBox: "0 0 24 24",
62
+ width: "1em",
63
+ height: "1em",
64
+ fill: "none",
65
+ stroke: "currentColor",
66
+ "stroke-width": String(MAICON_STROKE_WIDTH),
67
+ "stroke-linecap": "round",
68
+ "stroke-linejoin": "round",
69
+ };
70
+ /**
71
+ * Inline SVG icon from the maicon set (`@maliardic/ma-icon`). Size follows `font-size`, colour follows `color`.
72
+ *
73
+ * ```html
74
+ * <m-icon name="search" />
75
+ * <button mButton aria-label="Ara"><m-icon name="search" /></button>
76
+ * <m-icon name="alert-triangle" label="Uyarı" />
77
+ * ```
78
+ */
79
+ class MIcon {
80
+ /** Icon name. Unknown names render nothing. */
81
+ name = input.required(/* @ts-ignore */
82
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
83
+ /** Accessible name. Empty means decorative (`aria-hidden`). */
84
+ label = input(/* @ts-ignore */
85
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
86
+ strokeWidth = MAICON_STROKE_WIDTH;
87
+ glyph = computed(() => mIconGlyph(this.name()), /* @ts-ignore */
88
+ ...(ngDevMode ? [{ debugName: "glyph" }] : /* istanbul ignore next */ []));
89
+ 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) {
92
+ <svg
93
+ class="m-icon__svg"
94
+ viewBox="0 0 24 24"
95
+ width="1em"
96
+ height="1em"
97
+ fill="none"
98
+ stroke="currentColor"
99
+ stroke-linecap="round"
100
+ stroke-linejoin="round"
101
+ focusable="false"
102
+ aria-hidden="true"
103
+ [attr.stroke-width]="strokeWidth"
104
+ >
105
+ @for (d of g.p; track $index) {
106
+ <path [attr.d]="d" />
107
+ }
108
+ @for (d of g.f ?? []; track $index) {
109
+ <path [attr.d]="d" fill="currentColor" stroke="none" />
110
+ }
111
+ </svg>
112
+ }
113
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
114
+ }
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MIcon, decorators: [{
116
+ type: Component,
117
+ args: [{
118
+ selector: "m-icon",
119
+ changeDetection: ChangeDetectionStrategy.OnPush,
120
+ host: {
121
+ class: "m-icon",
122
+ "[attr.data-icon]": "glyph() ? name() : null",
123
+ "[attr.role]": "label() ? 'img' : null",
124
+ "[attr.aria-label]": "label() || null",
125
+ "[attr.aria-hidden]": "label() ? null : 'true'",
126
+ },
127
+ template: `
128
+ @if (glyph(); as g) {
129
+ <svg
130
+ class="m-icon__svg"
131
+ viewBox="0 0 24 24"
132
+ width="1em"
133
+ height="1em"
134
+ fill="none"
135
+ stroke="currentColor"
136
+ stroke-linecap="round"
137
+ stroke-linejoin="round"
138
+ focusable="false"
139
+ aria-hidden="true"
140
+ [attr.stroke-width]="strokeWidth"
141
+ >
142
+ @for (d of g.p; track $index) {
143
+ <path [attr.d]="d" />
144
+ }
145
+ @for (d of g.f ?? []; track $index) {
146
+ <path [attr.d]="d" fill="currentColor" stroke="none" />
147
+ }
148
+ </svg>
149
+ }
150
+ `,
151
+ }]
152
+ }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
153
+
14
154
  let nextAccordionPanelId = 0;
15
155
  class MAccordionPanel {
16
156
  value = input("", /* @ts-ignore */
@@ -31,9 +171,6 @@ class MAccordionPanel {
31
171
  setExpanded(expanded) {
32
172
  this.expanded.set(expanded);
33
173
  }
34
- iconClass() {
35
- return ["m-accordion__icon", this.icon().trim()].filter(Boolean).join(" ");
36
- }
37
174
  headerContext() {
38
175
  return {
39
176
  expanded: this.expanded(),
@@ -49,15 +186,15 @@ class MAccordionPanel {
49
186
  this.accordion.onPanelHeaderKeydown(event, this);
50
187
  }
51
188
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MAccordionPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
52
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MAccordionPanel, isStandalone: true, selector: "m-accordion-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.m-accordion-panel-host--expanded": "expanded()", "class.m-accordion-panel-host--disabled": "disabled()" }, classAttribute: "m-accordion-panel-host" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"m-accordion__item\"\n [class.m-accordion__item--expanded]=\"expanded()\"\n [class.m-accordion__item--disabled]=\"disabled()\"\n>\n <button\n class=\"m-accordion__header\"\n type=\"button\"\n [attr.id]=\"headerId\"\n [attr.aria-controls]=\"contentId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-disabled]=\"disabled() ? true : null\"\n [attr.data-accordion-value]=\"value()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onHeaderKeydown($event)\"\n >\n <span class=\"m-accordion__header-content\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"headerContext()\"\n />\n } @else { @if (icon()) {\n <i [class]=\"iconClass()\" aria-hidden=\"true\"></i>\n }\n <span class=\"m-accordion__title\">{{ header() }}</span>\n }\n </span>\n <i class=\"fas fa-chevron-down m-accordion__chevron\" aria-hidden=\"true\"></i>\n </button>\n\n <section\n class=\"m-accordion-panel\"\n [attr.id]=\"contentId\"\n role=\"region\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"expanded() ? null : ''\"\n [attr.aria-hidden]=\"expanded() ? null : 'true'\"\n >\n <div class=\"m-accordion-panel__inner\">\n <div class=\"m-accordion-panel__content\">\n <ng-content />\n </div>\n </div>\n </section>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
189
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MAccordionPanel, isStandalone: true, selector: "m-accordion-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.m-accordion-panel-host--expanded": "expanded()", "class.m-accordion-panel-host--disabled": "disabled()" }, classAttribute: "m-accordion-panel-host" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"m-accordion__item\"\n [class.m-accordion__item--expanded]=\"expanded()\"\n [class.m-accordion__item--disabled]=\"disabled()\"\n>\n <button\n class=\"m-accordion__header\"\n type=\"button\"\n [attr.id]=\"headerId\"\n [attr.aria-controls]=\"contentId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-disabled]=\"disabled() ? true : null\"\n [attr.data-accordion-value]=\"value()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onHeaderKeydown($event)\"\n >\n <span class=\"m-accordion__header-content\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"headerContext()\"\n />\n } @else { @if (icon()) {\n <m-icon class=\"m-accordion__icon\" [name]=\"icon()\" />\n }\n <span class=\"m-accordion__title\">{{ header() }}</span>\n }\n </span>\n <m-icon name=\"chevron-down\" class=\"m-accordion__chevron\" />\n </button>\n\n <section\n class=\"m-accordion-panel\"\n [attr.id]=\"contentId\"\n role=\"region\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"expanded() ? null : ''\"\n [attr.aria-hidden]=\"expanded() ? null : 'true'\"\n >\n <div class=\"m-accordion-panel__inner\">\n <div class=\"m-accordion-panel__content\">\n <ng-content />\n </div>\n </div>\n </section>\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 });
53
190
  }
54
191
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MAccordionPanel, decorators: [{
55
192
  type: Component,
56
- args: [{ selector: "m-accordion-panel", imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.Eager, host: {
193
+ args: [{ selector: "m-accordion-panel", imports: [MIcon, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.Eager, host: {
57
194
  class: "m-accordion-panel-host",
58
195
  "[class.m-accordion-panel-host--expanded]": "expanded()",
59
196
  "[class.m-accordion-panel-host--disabled]": "disabled()",
60
- }, template: "<div\n class=\"m-accordion__item\"\n [class.m-accordion__item--expanded]=\"expanded()\"\n [class.m-accordion__item--disabled]=\"disabled()\"\n>\n <button\n class=\"m-accordion__header\"\n type=\"button\"\n [attr.id]=\"headerId\"\n [attr.aria-controls]=\"contentId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-disabled]=\"disabled() ? true : null\"\n [attr.data-accordion-value]=\"value()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onHeaderKeydown($event)\"\n >\n <span class=\"m-accordion__header-content\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"headerContext()\"\n />\n } @else { @if (icon()) {\n <i [class]=\"iconClass()\" aria-hidden=\"true\"></i>\n }\n <span class=\"m-accordion__title\">{{ header() }}</span>\n }\n </span>\n <i class=\"fas fa-chevron-down m-accordion__chevron\" aria-hidden=\"true\"></i>\n </button>\n\n <section\n class=\"m-accordion-panel\"\n [attr.id]=\"contentId\"\n role=\"region\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"expanded() ? null : ''\"\n [attr.aria-hidden]=\"expanded() ? null : 'true'\"\n >\n <div class=\"m-accordion-panel__inner\">\n <div class=\"m-accordion-panel__content\">\n <ng-content />\n </div>\n </div>\n </section>\n</div>\n" }]
197
+ }, template: "<div\n class=\"m-accordion__item\"\n [class.m-accordion__item--expanded]=\"expanded()\"\n [class.m-accordion__item--disabled]=\"disabled()\"\n>\n <button\n class=\"m-accordion__header\"\n type=\"button\"\n [attr.id]=\"headerId\"\n [attr.aria-controls]=\"contentId\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-disabled]=\"disabled() ? true : null\"\n [attr.data-accordion-value]=\"value()\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onHeaderKeydown($event)\"\n >\n <span class=\"m-accordion__header-content\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"headerContext()\"\n />\n } @else { @if (icon()) {\n <m-icon class=\"m-accordion__icon\" [name]=\"icon()\" />\n }\n <span class=\"m-accordion__title\">{{ header() }}</span>\n }\n </span>\n <m-icon name=\"chevron-down\" class=\"m-accordion__chevron\" />\n </button>\n\n <section\n class=\"m-accordion-panel\"\n [attr.id]=\"contentId\"\n role=\"region\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"expanded() ? null : ''\"\n [attr.aria-hidden]=\"expanded() ? null : 'true'\"\n >\n <div class=\"m-accordion-panel__inner\">\n <div class=\"m-accordion-panel__content\">\n <ng-content />\n </div>\n </div>\n </section>\n</div>\n" }]
61
198
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerTemplate: [{ type: i0.ContentChild, args: ["header", { isSignal: true }] }] } });
62
199
  class MAccordion {
63
200
  expandedValues = input([], /* @ts-ignore */
@@ -200,8 +337,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
200
337
  class MButtonDirective {
201
338
  elementRef = inject(ElementRef);
202
339
  renderer = inject(Renderer2);
340
+ document = inject(DOCUMENT);
203
341
  iconElement = null;
204
342
  size = input("md", { ...(ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {}), alias: "mButtonSize" });
343
+ /** maicon name rendered before the content. */
205
344
  icon = input("", /* @ts-ignore */
206
345
  ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
207
346
  block = input(false, { ...(ngDevMode ? { debugName: "block" } : /* istanbul ignore next */ {}), alias: "mButtonBlock",
@@ -209,20 +348,18 @@ class MButtonDirective {
209
348
  iconOnly = input(false, { ...(ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
210
349
  constructor() {
211
350
  effect(() => {
212
- this.syncIcon(this.icon().trim());
351
+ this.syncIcon(this.icon());
213
352
  });
214
353
  }
215
- syncIcon(iconClass) {
216
- if (!iconClass) {
217
- this.removeIcon();
354
+ syncIcon(name) {
355
+ this.removeIcon();
356
+ const svg = createMIconSvg(this.document, name);
357
+ if (!svg) {
218
358
  return;
219
359
  }
220
- if (!this.iconElement) {
221
- this.iconElement = this.renderer.createElement("i");
222
- this.renderer.setAttribute(this.iconElement, "aria-hidden", "true");
223
- this.renderer.insertBefore(this.elementRef.nativeElement, this.iconElement, this.elementRef.nativeElement.firstChild);
224
- }
225
- this.renderer.setAttribute(this.iconElement, "class", iconClass);
360
+ svg.setAttribute("data-icon", name.trim());
361
+ this.renderer.insertBefore(this.elementRef.nativeElement, svg, this.elementRef.nativeElement.firstChild);
362
+ this.iconElement = svg;
226
363
  }
227
364
  removeIcon() {
228
365
  if (!this.iconElement) {
@@ -351,16 +488,16 @@ class MCheckbox {
351
488
  this.onTouched();
352
489
  }
353
490
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
354
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MCheckbox, isStandalone: true, selector: "m-checkbox", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange", onChange: "onChange" }, host: { properties: { "class.m-checkbox-host--checked": "checkedState()", "class.m-checkbox-host--indeterminate": "indeterminate()", "class.m-checkbox-host--disabled": "isDisabled()" }, classAttribute: "m-checkbox-host" }, providers: [provideValueAccessor(() => MCheckbox)], ngImport: i0, template: "<label class=\"m-checkbox\">\n <input\n class=\"m-checkbox__input\"\n type=\"checkbox\"\n [attr.id]=\"inputId() || null\"\n [attr.name]=\"name() || null\"\n [value]=\"value()\"\n [checked]=\"checkedState()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.aria-checked]=\"indeterminate() ? 'mixed' : checkedState()\"\n (change)=\"toggleChecked($event)\"\n (blur)=\"markAsTouched()\"\n />\n <span class=\"m-checkbox__box\" aria-hidden=\"true\">\n <i\n class=\"fas\"\n [class.fa-check]=\"checkedState() && !indeterminate()\"\n [class.fa-minus]=\"indeterminate()\"\n [class.m-checkbox__icon--visible]=\"checkedState() || indeterminate()\"\n ></i>\n </span>\n @if (label()) {\n <span class=\"m-checkbox__label\">{{ label() }}</span>\n }\n</label>\n", changeDetection: i0.ChangeDetectionStrategy.Eager });
491
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MCheckbox, isStandalone: true, selector: "m-checkbox", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange", onChange: "onChange" }, host: { properties: { "class.m-checkbox-host--checked": "checkedState()", "class.m-checkbox-host--indeterminate": "indeterminate()", "class.m-checkbox-host--disabled": "isDisabled()" }, classAttribute: "m-checkbox-host" }, providers: [provideValueAccessor(() => MCheckbox)], ngImport: i0, template: "<label class=\"m-checkbox\">\n <input\n class=\"m-checkbox__input\"\n type=\"checkbox\"\n [attr.id]=\"inputId() || null\"\n [attr.name]=\"name() || null\"\n [value]=\"value()\"\n [checked]=\"checkedState()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.aria-checked]=\"indeterminate() ? 'mixed' : checkedState()\"\n (change)=\"toggleChecked($event)\"\n (blur)=\"markAsTouched()\"\n />\n <span class=\"m-checkbox__box\" aria-hidden=\"true\">\n <m-icon\n class=\"m-checkbox__icon\"\n [name]=\"indeterminate() ? 'minus' : 'check'\"\n [class.m-checkbox__icon--visible]=\"checkedState() || indeterminate()\"\n />\n </span>\n @if (label()) {\n <span class=\"m-checkbox__label\">{{ label() }}</span>\n }\n</label>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
355
492
  }
356
493
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MCheckbox, decorators: [{
357
494
  type: Component,
358
- args: [{ selector: "m-checkbox", providers: [provideValueAccessor(() => MCheckbox)], changeDetection: ChangeDetectionStrategy.Eager, host: {
495
+ args: [{ imports: [MIcon], selector: "m-checkbox", providers: [provideValueAccessor(() => MCheckbox)], changeDetection: ChangeDetectionStrategy.Eager, host: {
359
496
  class: "m-checkbox-host",
360
497
  "[class.m-checkbox-host--checked]": "checkedState()",
361
498
  "[class.m-checkbox-host--indeterminate]": "indeterminate()",
362
499
  "[class.m-checkbox-host--disabled]": "isDisabled()",
363
- }, template: "<label class=\"m-checkbox\">\n <input\n class=\"m-checkbox__input\"\n type=\"checkbox\"\n [attr.id]=\"inputId() || null\"\n [attr.name]=\"name() || null\"\n [value]=\"value()\"\n [checked]=\"checkedState()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.aria-checked]=\"indeterminate() ? 'mixed' : checkedState()\"\n (change)=\"toggleChecked($event)\"\n (blur)=\"markAsTouched()\"\n />\n <span class=\"m-checkbox__box\" aria-hidden=\"true\">\n <i\n class=\"fas\"\n [class.fa-check]=\"checkedState() && !indeterminate()\"\n [class.fa-minus]=\"indeterminate()\"\n [class.m-checkbox__icon--visible]=\"checkedState() || indeterminate()\"\n ></i>\n </span>\n @if (label()) {\n <span class=\"m-checkbox__label\">{{ label() }}</span>\n }\n</label>\n" }]
500
+ }, template: "<label class=\"m-checkbox\">\n <input\n class=\"m-checkbox__input\"\n type=\"checkbox\"\n [attr.id]=\"inputId() || null\"\n [attr.name]=\"name() || null\"\n [value]=\"value()\"\n [checked]=\"checkedState()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.aria-checked]=\"indeterminate() ? 'mixed' : checkedState()\"\n (change)=\"toggleChecked($event)\"\n (blur)=\"markAsTouched()\"\n />\n <span class=\"m-checkbox__box\" aria-hidden=\"true\">\n <m-icon\n class=\"m-checkbox__icon\"\n [name]=\"indeterminate() ? 'minus' : 'check'\"\n [class.m-checkbox__icon--visible]=\"checkedState() || indeterminate()\"\n />\n </span>\n @if (label()) {\n <span class=\"m-checkbox__label\">{{ label() }}</span>\n }\n</label>\n" }]
364
501
  }], ctorParameters: () => [], propDecorators: { inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], checkedChange: [{ type: i0.Output, args: ["checkedChange"] }], onChange: [{ type: i0.Output, args: ["onChange"] }] } });
365
502
 
366
503
  const THEME_CSS_VARIABLES = [
@@ -699,14 +836,14 @@ class MDatePicker {
699
836
  }
700
837
  }
701
838
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MDatePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
702
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MDatePicker, isStandalone: true, selector: "m-date-picker", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, clear: { classPropertyName: "clear", publicName: "clear", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: true, isRequired: false, transformFunction: null }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "window:m-panel-open": "onOtherPanelOpen($event)", "document:click": "onDocumentClick($event)", "document:keydown.escape": "onEscape()" }, properties: { "class.m-date-picker-host--disabled": "isDisabled()" }, classAttribute: "m-date-picker-host" }, providers: [provideValueAccessor(() => MDatePicker)], viewQueries: [{ propertyName: "panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"m-date-picker-wrapper\"\n [class.m-date-picker-wrapper--open]=\"panelOpen()\"\n [class.m-date-picker-wrapper--clear]=\"canClear()\"\n>\n <button\n class=\"m-control m-date-picker\"\n type=\"button\"\n aria-haspopup=\"dialog\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"calendarId\"\n [attr.aria-expanded]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-date-picker__value\"\n [class.m-date-picker__value--placeholder]=\"!selectedValue()\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-date-picker__clear\"\n type=\"button\"\n aria-label=\"Clear date\"\n (click)=\"clearSelection($event)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n\n <i class=\"fas fa-calendar-days m-date-picker__icon\" aria-hidden=\"true\"></i>\n\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"selectedValue()\" />\n }\n\n @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-date-picker-panel\"\n [class.m-date-picker-panel--overlay]=\"appendTo() === 'body'\"\n role=\"dialog\"\n [attr.id]=\"calendarId\"\n >\n <div class=\"m-date-picker-panel__header\">\n <button\n class=\"m-date-picker-panel__nav\"\n type=\"button\"\n aria-label=\"Previous month\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"previousMonth()\"\n >\n <i class=\"fas fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"m-date-picker-panel__title\">{{ monthLabel() }}</span>\n <button\n class=\"m-date-picker-panel__nav\"\n type=\"button\"\n aria-label=\"Next month\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"nextMonth()\"\n >\n <i class=\"fas fa-chevron-right\" aria-hidden=\"true\"></i>\n </button>\n </div>\n\n <div\n class=\"m-date-picker-grid m-date-picker-grid--weekdays\"\n aria-hidden=\"true\"\n >\n @for (day of weekDays; track day) {\n <span>{{ day }}</span>\n }\n </div>\n\n <div class=\"m-date-picker-grid\">\n @for (cell of cells(); track cell.value) {\n <button\n class=\"m-date-picker-day\"\n type=\"button\"\n [class.m-date-picker-day--muted]=\"!cell.currentMonth\"\n [class.m-date-picker-day--today]=\"cell.today\"\n [class.m-date-picker-day--selected]=\"cell.selected\"\n [disabled]=\"cell.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectDate(cell)\"\n >\n {{ cell.label }}\n </button>\n }\n </div>\n\n @if (showTime()) {\n <div class=\"m-date-picker-time\">\n <div class=\"m-date-picker-time__picker\">\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Increment hour\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"incrementHour()\"\n >\n <i class=\"fas fa-chevron-up\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"m-date-picker-time__val\">{{ hourLabel() }}</span>\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Decrement hour\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"decrementHour()\"\n >\n <i class=\"fas fa-chevron-down\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <span class=\"m-date-picker-time__separator\">:</span>\n <div class=\"m-date-picker-time__picker\">\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Increment minute\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"incrementMinute()\"\n >\n <i class=\"fas fa-chevron-up\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"m-date-picker-time__val\">{{ minuteLabel() }}</span>\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Decrement minute\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"decrementMinute()\"\n >\n <i class=\"fas fa-chevron-down\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n }\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
839
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MDatePicker, isStandalone: true, selector: "m-date-picker", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, clear: { classPropertyName: "clear", publicName: "clear", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: true, isRequired: false, transformFunction: null }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "window:m-panel-open": "onOtherPanelOpen($event)", "document:click": "onDocumentClick($event)", "document:keydown.escape": "onEscape()" }, properties: { "class.m-date-picker-host--disabled": "isDisabled()" }, classAttribute: "m-date-picker-host" }, providers: [provideValueAccessor(() => MDatePicker)], viewQueries: [{ propertyName: "panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"m-date-picker-wrapper\"\n [class.m-date-picker-wrapper--open]=\"panelOpen()\"\n [class.m-date-picker-wrapper--clear]=\"canClear()\"\n>\n <button\n class=\"m-control m-date-picker\"\n type=\"button\"\n aria-haspopup=\"dialog\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"calendarId\"\n [attr.aria-expanded]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-date-picker__value\"\n [class.m-date-picker__value--placeholder]=\"!selectedValue()\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-date-picker__clear\"\n type=\"button\"\n aria-label=\"Clear date\"\n (click)=\"clearSelection($event)\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n\n <m-icon name=\"calendar-days\" class=\"m-date-picker__icon\" />\n\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"selectedValue()\" />\n }\n\n @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-date-picker-panel\"\n [class.m-date-picker-panel--overlay]=\"appendTo() === 'body'\"\n role=\"dialog\"\n [attr.id]=\"calendarId\"\n >\n <div class=\"m-date-picker-panel__header\">\n <button\n class=\"m-date-picker-panel__nav\"\n type=\"button\"\n aria-label=\"Previous month\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"previousMonth()\"\n >\n <m-icon name=\"chevron-left\" />\n </button>\n <span class=\"m-date-picker-panel__title\">{{ monthLabel() }}</span>\n <button\n class=\"m-date-picker-panel__nav\"\n type=\"button\"\n aria-label=\"Next month\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"nextMonth()\"\n >\n <m-icon name=\"chevron-right\" />\n </button>\n </div>\n\n <div\n class=\"m-date-picker-grid m-date-picker-grid--weekdays\"\n aria-hidden=\"true\"\n >\n @for (day of weekDays; track day) {\n <span>{{ day }}</span>\n }\n </div>\n\n <div class=\"m-date-picker-grid\">\n @for (cell of cells(); track cell.value) {\n <button\n class=\"m-date-picker-day\"\n type=\"button\"\n [class.m-date-picker-day--muted]=\"!cell.currentMonth\"\n [class.m-date-picker-day--today]=\"cell.today\"\n [class.m-date-picker-day--selected]=\"cell.selected\"\n [disabled]=\"cell.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectDate(cell)\"\n >\n {{ cell.label }}\n </button>\n }\n </div>\n\n @if (showTime()) {\n <div class=\"m-date-picker-time\">\n <div class=\"m-date-picker-time__picker\">\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Increment hour\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"incrementHour()\"\n >\n <m-icon name=\"chevron-up\" />\n </button>\n <span class=\"m-date-picker-time__val\">{{ hourLabel() }}</span>\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Decrement hour\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"decrementHour()\"\n >\n <m-icon name=\"chevron-down\" />\n </button>\n </div>\n <span class=\"m-date-picker-time__separator\">:</span>\n <div class=\"m-date-picker-time__picker\">\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Increment minute\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"incrementMinute()\"\n >\n <m-icon name=\"chevron-up\" />\n </button>\n <span class=\"m-date-picker-time__val\">{{ minuteLabel() }}</span>\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Decrement minute\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"decrementMinute()\"\n >\n <m-icon name=\"chevron-down\" />\n </button>\n </div>\n </div>\n }\n </div>\n</ng-template>\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 });
703
840
  }
704
841
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MDatePicker, decorators: [{
705
842
  type: Component,
706
- args: [{ selector: "m-date-picker", imports: [NgTemplateOutlet], providers: [provideValueAccessor(() => MDatePicker)], changeDetection: ChangeDetectionStrategy.Eager, host: {
843
+ args: [{ selector: "m-date-picker", imports: [MIcon, NgTemplateOutlet], providers: [provideValueAccessor(() => MDatePicker)], changeDetection: ChangeDetectionStrategy.Eager, host: {
707
844
  class: "m-date-picker-host",
708
845
  "[class.m-date-picker-host--disabled]": "isDisabled()",
709
- }, template: "<span\n class=\"m-date-picker-wrapper\"\n [class.m-date-picker-wrapper--open]=\"panelOpen()\"\n [class.m-date-picker-wrapper--clear]=\"canClear()\"\n>\n <button\n class=\"m-control m-date-picker\"\n type=\"button\"\n aria-haspopup=\"dialog\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"calendarId\"\n [attr.aria-expanded]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-date-picker__value\"\n [class.m-date-picker__value--placeholder]=\"!selectedValue()\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-date-picker__clear\"\n type=\"button\"\n aria-label=\"Clear date\"\n (click)=\"clearSelection($event)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n\n <i class=\"fas fa-calendar-days m-date-picker__icon\" aria-hidden=\"true\"></i>\n\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"selectedValue()\" />\n }\n\n @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-date-picker-panel\"\n [class.m-date-picker-panel--overlay]=\"appendTo() === 'body'\"\n role=\"dialog\"\n [attr.id]=\"calendarId\"\n >\n <div class=\"m-date-picker-panel__header\">\n <button\n class=\"m-date-picker-panel__nav\"\n type=\"button\"\n aria-label=\"Previous month\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"previousMonth()\"\n >\n <i class=\"fas fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"m-date-picker-panel__title\">{{ monthLabel() }}</span>\n <button\n class=\"m-date-picker-panel__nav\"\n type=\"button\"\n aria-label=\"Next month\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"nextMonth()\"\n >\n <i class=\"fas fa-chevron-right\" aria-hidden=\"true\"></i>\n </button>\n </div>\n\n <div\n class=\"m-date-picker-grid m-date-picker-grid--weekdays\"\n aria-hidden=\"true\"\n >\n @for (day of weekDays; track day) {\n <span>{{ day }}</span>\n }\n </div>\n\n <div class=\"m-date-picker-grid\">\n @for (cell of cells(); track cell.value) {\n <button\n class=\"m-date-picker-day\"\n type=\"button\"\n [class.m-date-picker-day--muted]=\"!cell.currentMonth\"\n [class.m-date-picker-day--today]=\"cell.today\"\n [class.m-date-picker-day--selected]=\"cell.selected\"\n [disabled]=\"cell.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectDate(cell)\"\n >\n {{ cell.label }}\n </button>\n }\n </div>\n\n @if (showTime()) {\n <div class=\"m-date-picker-time\">\n <div class=\"m-date-picker-time__picker\">\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Increment hour\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"incrementHour()\"\n >\n <i class=\"fas fa-chevron-up\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"m-date-picker-time__val\">{{ hourLabel() }}</span>\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Decrement hour\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"decrementHour()\"\n >\n <i class=\"fas fa-chevron-down\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <span class=\"m-date-picker-time__separator\">:</span>\n <div class=\"m-date-picker-time__picker\">\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Increment minute\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"incrementMinute()\"\n >\n <i class=\"fas fa-chevron-up\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"m-date-picker-time__val\">{{ minuteLabel() }}</span>\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Decrement minute\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"decrementMinute()\"\n >\n <i class=\"fas fa-chevron-down\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n }\n </div>\n</ng-template>\n" }]
846
+ }, template: "<span\n class=\"m-date-picker-wrapper\"\n [class.m-date-picker-wrapper--open]=\"panelOpen()\"\n [class.m-date-picker-wrapper--clear]=\"canClear()\"\n>\n <button\n class=\"m-control m-date-picker\"\n type=\"button\"\n aria-haspopup=\"dialog\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"calendarId\"\n [attr.aria-expanded]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-date-picker__value\"\n [class.m-date-picker__value--placeholder]=\"!selectedValue()\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-date-picker__clear\"\n type=\"button\"\n aria-label=\"Clear date\"\n (click)=\"clearSelection($event)\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n\n <m-icon name=\"calendar-days\" class=\"m-date-picker__icon\" />\n\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"selectedValue()\" />\n }\n\n @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-date-picker-panel\"\n [class.m-date-picker-panel--overlay]=\"appendTo() === 'body'\"\n role=\"dialog\"\n [attr.id]=\"calendarId\"\n >\n <div class=\"m-date-picker-panel__header\">\n <button\n class=\"m-date-picker-panel__nav\"\n type=\"button\"\n aria-label=\"Previous month\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"previousMonth()\"\n >\n <m-icon name=\"chevron-left\" />\n </button>\n <span class=\"m-date-picker-panel__title\">{{ monthLabel() }}</span>\n <button\n class=\"m-date-picker-panel__nav\"\n type=\"button\"\n aria-label=\"Next month\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"nextMonth()\"\n >\n <m-icon name=\"chevron-right\" />\n </button>\n </div>\n\n <div\n class=\"m-date-picker-grid m-date-picker-grid--weekdays\"\n aria-hidden=\"true\"\n >\n @for (day of weekDays; track day) {\n <span>{{ day }}</span>\n }\n </div>\n\n <div class=\"m-date-picker-grid\">\n @for (cell of cells(); track cell.value) {\n <button\n class=\"m-date-picker-day\"\n type=\"button\"\n [class.m-date-picker-day--muted]=\"!cell.currentMonth\"\n [class.m-date-picker-day--today]=\"cell.today\"\n [class.m-date-picker-day--selected]=\"cell.selected\"\n [disabled]=\"cell.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectDate(cell)\"\n >\n {{ cell.label }}\n </button>\n }\n </div>\n\n @if (showTime()) {\n <div class=\"m-date-picker-time\">\n <div class=\"m-date-picker-time__picker\">\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Increment hour\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"incrementHour()\"\n >\n <m-icon name=\"chevron-up\" />\n </button>\n <span class=\"m-date-picker-time__val\">{{ hourLabel() }}</span>\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Decrement hour\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"decrementHour()\"\n >\n <m-icon name=\"chevron-down\" />\n </button>\n </div>\n <span class=\"m-date-picker-time__separator\">:</span>\n <div class=\"m-date-picker-time__picker\">\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Increment minute\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"incrementMinute()\"\n >\n <m-icon name=\"chevron-up\" />\n </button>\n <span class=\"m-date-picker-time__val\">{{ minuteLabel() }}</span>\n <button\n class=\"m-date-picker-time__btn\"\n type=\"button\"\n aria-label=\"Decrement minute\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"decrementMinute()\"\n >\n <m-icon name=\"chevron-down\" />\n </button>\n </div>\n </div>\n }\n </div>\n</ng-template>\n" }]
710
847
  }], ctorParameters: () => [], propDecorators: { panelTemplate: [{ type: i0.ViewChild, args: ["panelTemplate", { isSignal: true }] }], 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 }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], dataType: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataType", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], clear: [{ type: i0.Input, args: [{ isSignal: true, alias: "clear", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], stepHour: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepHour", required: false }] }], stepMinute: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepMinute", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], onOtherPanelOpen: [{
711
848
  type: HostListener,
712
849
  args: ["window:m-panel-open", ["$event"]]
@@ -1112,16 +1249,16 @@ class MDialog {
1112
1249
  this.dragging.set(false);
1113
1250
  }
1114
1251
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
1115
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MDialog, isStandalone: true, selector: "m-dialog", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, dismissibleMask: { classPropertyName: "dismissibleMask", publicName: "dismissibleMask", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, maximized: { classPropertyName: "maximized", publicName: "maximized", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, dialogStyleClass: { classPropertyName: "dialogStyleClass", publicName: "dialogStyleClass", isSignal: true, isRequired: false, transformFunction: null }, classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, maximizeLabel: { classPropertyName: "maximizeLabel", publicName: "maximizeLabel", isSignal: true, isRequired: false, transformFunction: null }, restoreLabel: { classPropertyName: "restoreLabel", publicName: "restoreLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange", maximizedChange: "maximizedChange" }, host: { listeners: { "document:keydown": "onDocumentKeydown($event)", "document:pointermove": "onDocumentPointerMove($event)", "document:pointerup": "onDocumentPointerEnd($event)", "document:pointercancel": "onDocumentPointerEnd($event)" }, properties: { "class.m-dialog-host--sm": "size() === 'sm'", "class.m-dialog-host--md": "size() === 'md'", "class.m-dialog-host--lg": "size() === 'lg'" }, classAttribute: "m-dialog-host" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "namedContentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "defaultContentTemplate", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "@if (currentVisible()) {\n<div\n class=\"m-dialog-mask\"\n [class.m-dialog-mask--modal]=\"modal()\"\n [class.m-dialog-mask--modeless]=\"!modal()\"\n [class.m-dialog-mask--maximized]=\"currentMaximized()\"\n (mousedown)=\"onMaskMouseDown($event)\"\n (click)=\"onMaskClick($event)\"\n>\n <section\n class=\"m-dialog\"\n role=\"dialog\"\n [attr.id]=\"dialogId\"\n [attr.aria-modal]=\"modal()\"\n [attr.aria-labelledby]=\"hasTitle() ? titleId : null\"\n [class.m-dialog--sm]=\"size() === 'sm'\"\n [class.m-dialog--md]=\"size() === 'md'\"\n [class.m-dialog--lg]=\"size() === 'lg'\"\n [class.m-dialog--draggable]=\"draggable() && !currentMaximized()\"\n [class.m-dialog--dragging]=\"dragging()\"\n [class.m-dialog--maximized]=\"currentMaximized()\"\n [class.m-dialog--no-header]=\"!hasHeader()\"\n [class]=\"dialogClasses()\"\n [ngStyle]=\"parsedStyleObject()\"\n >\n @if (hasHeader()) {\n <header\n class=\"m-dialog__header\"\n (pointerdown)=\"onHeaderPointerDown($event)\"\n >\n <div class=\"m-dialog__title\" [attr.id]=\"titleId\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else { {{ header() }} }\n </div>\n\n <div class=\"m-dialog__actions\">\n @if (maximizable()) {\n <button\n class=\"m-dialog__action m-dialog__maximize\"\n type=\"button\"\n [attr.aria-label]=\"\n currentMaximized() ? restoreLabel() : maximizeLabel()\n \"\n (click)=\"toggleMaximize($event)\"\n >\n <i\n [class]=\"\n currentMaximized()\n ? 'fas fa-down-left-and-up-right-to-center'\n : 'fas fa-up-right-and-down-left-from-center'\n \"\n aria-hidden=\"true\"\n ></i>\n </button>\n } @if (closable()) {\n <button\n class=\"m-dialog__action m-dialog__close\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n </div>\n </header>\n }\n\n <div class=\"m-dialog__content\">\n @if (contentTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"contentTemplate()!\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else {\n <ng-content />\n }\n </div>\n\n @if (footerTemplate()) {\n <footer class=\"m-dialog__footer\">\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n </footer>\n }\n </section>\n</div>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
1252
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MDialog, isStandalone: true, selector: "m-dialog", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, dismissibleMask: { classPropertyName: "dismissibleMask", publicName: "dismissibleMask", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, maximized: { classPropertyName: "maximized", publicName: "maximized", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, dialogStyleClass: { classPropertyName: "dialogStyleClass", publicName: "dialogStyleClass", isSignal: true, isRequired: false, transformFunction: null }, classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, maximizeLabel: { classPropertyName: "maximizeLabel", publicName: "maximizeLabel", isSignal: true, isRequired: false, transformFunction: null }, restoreLabel: { classPropertyName: "restoreLabel", publicName: "restoreLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange", maximizedChange: "maximizedChange" }, host: { listeners: { "document:keydown": "onDocumentKeydown($event)", "document:pointermove": "onDocumentPointerMove($event)", "document:pointerup": "onDocumentPointerEnd($event)", "document:pointercancel": "onDocumentPointerEnd($event)" }, properties: { "class.m-dialog-host--sm": "size() === 'sm'", "class.m-dialog-host--md": "size() === 'md'", "class.m-dialog-host--lg": "size() === 'lg'" }, classAttribute: "m-dialog-host" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "namedContentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "defaultContentTemplate", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: "@if (currentVisible()) {\n<div\n class=\"m-dialog-mask\"\n [class.m-dialog-mask--modal]=\"modal()\"\n [class.m-dialog-mask--modeless]=\"!modal()\"\n [class.m-dialog-mask--maximized]=\"currentMaximized()\"\n (mousedown)=\"onMaskMouseDown($event)\"\n (click)=\"onMaskClick($event)\"\n>\n <section\n class=\"m-dialog\"\n role=\"dialog\"\n [attr.id]=\"dialogId\"\n [attr.aria-modal]=\"modal()\"\n [attr.aria-labelledby]=\"hasTitle() ? titleId : null\"\n [class.m-dialog--sm]=\"size() === 'sm'\"\n [class.m-dialog--md]=\"size() === 'md'\"\n [class.m-dialog--lg]=\"size() === 'lg'\"\n [class.m-dialog--draggable]=\"draggable() && !currentMaximized()\"\n [class.m-dialog--dragging]=\"dragging()\"\n [class.m-dialog--maximized]=\"currentMaximized()\"\n [class.m-dialog--no-header]=\"!hasHeader()\"\n [class]=\"dialogClasses()\"\n [ngStyle]=\"parsedStyleObject()\"\n >\n @if (hasHeader()) {\n <header\n class=\"m-dialog__header\"\n (pointerdown)=\"onHeaderPointerDown($event)\"\n >\n <div class=\"m-dialog__title\" [attr.id]=\"titleId\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else { {{ header() }} }\n </div>\n\n <div class=\"m-dialog__actions\">\n @if (maximizable()) {\n <button\n class=\"m-dialog__action m-dialog__maximize\"\n type=\"button\"\n [attr.aria-label]=\"\n currentMaximized() ? restoreLabel() : maximizeLabel()\n \"\n (click)=\"toggleMaximize($event)\"\n >\n <m-icon [name]=\"currentMaximized() ? 'minimize' : 'maximize'\" />\n </button>\n } @if (closable()) {\n <button\n class=\"m-dialog__action m-dialog__close\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n </div>\n </header>\n }\n\n <div class=\"m-dialog__content\">\n @if (contentTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"contentTemplate()!\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else {\n <ng-content />\n }\n </div>\n\n @if (footerTemplate()) {\n <footer class=\"m-dialog__footer\">\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n </footer>\n }\n </section>\n</div>\n}\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
1116
1253
  }
1117
1254
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MDialog, decorators: [{
1118
1255
  type: Component,
1119
- args: [{ selector: "m-dialog", imports: [NgTemplateOutlet, NgStyle], changeDetection: ChangeDetectionStrategy.Eager, host: {
1256
+ args: [{ selector: "m-dialog", imports: [MIcon, NgTemplateOutlet, NgStyle], changeDetection: ChangeDetectionStrategy.Eager, host: {
1120
1257
  class: "m-dialog-host",
1121
1258
  "[class.m-dialog-host--sm]": "size() === 'sm'",
1122
1259
  "[class.m-dialog-host--md]": "size() === 'md'",
1123
1260
  "[class.m-dialog-host--lg]": "size() === 'lg'",
1124
- }, template: "@if (currentVisible()) {\n<div\n class=\"m-dialog-mask\"\n [class.m-dialog-mask--modal]=\"modal()\"\n [class.m-dialog-mask--modeless]=\"!modal()\"\n [class.m-dialog-mask--maximized]=\"currentMaximized()\"\n (mousedown)=\"onMaskMouseDown($event)\"\n (click)=\"onMaskClick($event)\"\n>\n <section\n class=\"m-dialog\"\n role=\"dialog\"\n [attr.id]=\"dialogId\"\n [attr.aria-modal]=\"modal()\"\n [attr.aria-labelledby]=\"hasTitle() ? titleId : null\"\n [class.m-dialog--sm]=\"size() === 'sm'\"\n [class.m-dialog--md]=\"size() === 'md'\"\n [class.m-dialog--lg]=\"size() === 'lg'\"\n [class.m-dialog--draggable]=\"draggable() && !currentMaximized()\"\n [class.m-dialog--dragging]=\"dragging()\"\n [class.m-dialog--maximized]=\"currentMaximized()\"\n [class.m-dialog--no-header]=\"!hasHeader()\"\n [class]=\"dialogClasses()\"\n [ngStyle]=\"parsedStyleObject()\"\n >\n @if (hasHeader()) {\n <header\n class=\"m-dialog__header\"\n (pointerdown)=\"onHeaderPointerDown($event)\"\n >\n <div class=\"m-dialog__title\" [attr.id]=\"titleId\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else { {{ header() }} }\n </div>\n\n <div class=\"m-dialog__actions\">\n @if (maximizable()) {\n <button\n class=\"m-dialog__action m-dialog__maximize\"\n type=\"button\"\n [attr.aria-label]=\"\n currentMaximized() ? restoreLabel() : maximizeLabel()\n \"\n (click)=\"toggleMaximize($event)\"\n >\n <i\n [class]=\"\n currentMaximized()\n ? 'fas fa-down-left-and-up-right-to-center'\n : 'fas fa-up-right-and-down-left-from-center'\n \"\n aria-hidden=\"true\"\n ></i>\n </button>\n } @if (closable()) {\n <button\n class=\"m-dialog__action m-dialog__close\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n </div>\n </header>\n }\n\n <div class=\"m-dialog__content\">\n @if (contentTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"contentTemplate()!\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else {\n <ng-content />\n }\n </div>\n\n @if (footerTemplate()) {\n <footer class=\"m-dialog__footer\">\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n </footer>\n }\n </section>\n</div>\n}\n" }]
1261
+ }, template: "@if (currentVisible()) {\n<div\n class=\"m-dialog-mask\"\n [class.m-dialog-mask--modal]=\"modal()\"\n [class.m-dialog-mask--modeless]=\"!modal()\"\n [class.m-dialog-mask--maximized]=\"currentMaximized()\"\n (mousedown)=\"onMaskMouseDown($event)\"\n (click)=\"onMaskClick($event)\"\n>\n <section\n class=\"m-dialog\"\n role=\"dialog\"\n [attr.id]=\"dialogId\"\n [attr.aria-modal]=\"modal()\"\n [attr.aria-labelledby]=\"hasTitle() ? titleId : null\"\n [class.m-dialog--sm]=\"size() === 'sm'\"\n [class.m-dialog--md]=\"size() === 'md'\"\n [class.m-dialog--lg]=\"size() === 'lg'\"\n [class.m-dialog--draggable]=\"draggable() && !currentMaximized()\"\n [class.m-dialog--dragging]=\"dragging()\"\n [class.m-dialog--maximized]=\"currentMaximized()\"\n [class.m-dialog--no-header]=\"!hasHeader()\"\n [class]=\"dialogClasses()\"\n [ngStyle]=\"parsedStyleObject()\"\n >\n @if (hasHeader()) {\n <header\n class=\"m-dialog__header\"\n (pointerdown)=\"onHeaderPointerDown($event)\"\n >\n <div class=\"m-dialog__title\" [attr.id]=\"titleId\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else { {{ header() }} }\n </div>\n\n <div class=\"m-dialog__actions\">\n @if (maximizable()) {\n <button\n class=\"m-dialog__action m-dialog__maximize\"\n type=\"button\"\n [attr.aria-label]=\"\n currentMaximized() ? restoreLabel() : maximizeLabel()\n \"\n (click)=\"toggleMaximize($event)\"\n >\n <m-icon [name]=\"currentMaximized() ? 'minimize' : 'maximize'\" />\n </button>\n } @if (closable()) {\n <button\n class=\"m-dialog__action m-dialog__close\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n </div>\n </header>\n }\n\n <div class=\"m-dialog__content\">\n @if (contentTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"contentTemplate()!\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n } @else {\n <ng-content />\n }\n </div>\n\n @if (footerTemplate()) {\n <footer class=\"m-dialog__footer\">\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext()\"\n />\n </footer>\n }\n </section>\n</div>\n}\n" }]
1125
1262
  }], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], dismissibleMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissibleMask", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], maximizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizable", required: false }] }], maximized: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximized", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], dialogStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogStyleClass", required: false }] }], classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], maximizeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizeLabel", required: false }] }], restoreLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreLabel", required: false }] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }], maximizedChange: [{ type: i0.Output, args: ["maximizedChange"] }], headerTemplate: [{ type: i0.ContentChild, args: ["header", { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ["footer", { isSignal: true }] }], namedContentTemplate: [{ type: i0.ContentChild, args: ["content", { isSignal: true }] }], defaultContentTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }], onDocumentKeydown: [{
1126
1263
  type: HostListener,
1127
1264
  args: ["document:keydown", ["$event"]]
@@ -1216,16 +1353,16 @@ class MDrawer {
1216
1353
  this.close();
1217
1354
  }
1218
1355
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
1219
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MDrawer, isStandalone: true, selector: "m-drawer", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, dismissibleMask: { classPropertyName: "dismissibleMask", publicName: "dismissibleMask", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "document:keydown": "onDocumentKeydown($event)" }, properties: { "class.m-drawer-host--sm": "size() === 'sm'", "class.m-drawer-host--md": "size() === 'md'", "class.m-drawer-host--lg": "size() === 'lg'" }, classAttribute: "m-drawer-host" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (currentVisible()) {\n<div\n class=\"m-drawer-mask\"\n [class.m-drawer-mask--modal]=\"modal()\"\n [class.m-drawer-mask--modeless]=\"!modal()\"\n [class.m-drawer-mask--left]=\"position() === 'left'\"\n [class.m-drawer-mask--right]=\"position() === 'right'\"\n [class.m-drawer-mask--top]=\"position() === 'top'\"\n [class.m-drawer-mask--bottom]=\"position() === 'bottom'\"\n (click)=\"onMaskClick($event)\"\n>\n <aside\n class=\"m-drawer\"\n role=\"dialog\"\n [attr.id]=\"drawerId\"\n [attr.aria-modal]=\"modal()\"\n [attr.aria-labelledby]=\"hasTitle() ? titleId : null\"\n [class.m-drawer--left]=\"position() === 'left'\"\n [class.m-drawer--right]=\"position() === 'right'\"\n [class.m-drawer--top]=\"position() === 'top'\"\n [class.m-drawer--bottom]=\"position() === 'bottom'\"\n [class.m-drawer--sm]=\"size() === 'sm'\"\n [class.m-drawer--md]=\"size() === 'md'\"\n [class.m-drawer--lg]=\"size() === 'lg'\"\n [class.m-drawer--no-header]=\"!hasHeader()\"\n [style.width]=\"resolvedWidth()\"\n [style.height]=\"resolvedHeight()\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (hasHeader()) {\n <header class=\"m-drawer__header\">\n <div class=\"m-drawer__title\" [attr.id]=\"titleId\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext\"\n />\n } @else { {{ header() }} }\n </div>\n\n @if (closable()) {\n <button\n class=\"m-drawer__close\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n </header>\n }\n\n <div class=\"m-drawer__content\">\n <ng-content />\n </div>\n\n @if (footerTemplate()) {\n <footer class=\"m-drawer__footer\">\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext\"\n />\n </footer>\n }\n </aside>\n</div>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
1356
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MDrawer, isStandalone: true, selector: "m-drawer", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, dismissibleMask: { classPropertyName: "dismissibleMask", publicName: "dismissibleMask", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "document:keydown": "onDocumentKeydown($event)" }, properties: { "class.m-drawer-host--sm": "size() === 'sm'", "class.m-drawer-host--md": "size() === 'md'", "class.m-drawer-host--lg": "size() === 'lg'" }, classAttribute: "m-drawer-host" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (currentVisible()) {\n<div\n class=\"m-drawer-mask\"\n [class.m-drawer-mask--modal]=\"modal()\"\n [class.m-drawer-mask--modeless]=\"!modal()\"\n [class.m-drawer-mask--left]=\"position() === 'left'\"\n [class.m-drawer-mask--right]=\"position() === 'right'\"\n [class.m-drawer-mask--top]=\"position() === 'top'\"\n [class.m-drawer-mask--bottom]=\"position() === 'bottom'\"\n (click)=\"onMaskClick($event)\"\n>\n <aside\n class=\"m-drawer\"\n role=\"dialog\"\n [attr.id]=\"drawerId\"\n [attr.aria-modal]=\"modal()\"\n [attr.aria-labelledby]=\"hasTitle() ? titleId : null\"\n [class.m-drawer--left]=\"position() === 'left'\"\n [class.m-drawer--right]=\"position() === 'right'\"\n [class.m-drawer--top]=\"position() === 'top'\"\n [class.m-drawer--bottom]=\"position() === 'bottom'\"\n [class.m-drawer--sm]=\"size() === 'sm'\"\n [class.m-drawer--md]=\"size() === 'md'\"\n [class.m-drawer--lg]=\"size() === 'lg'\"\n [class.m-drawer--no-header]=\"!hasHeader()\"\n [style.width]=\"resolvedWidth()\"\n [style.height]=\"resolvedHeight()\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (hasHeader()) {\n <header class=\"m-drawer__header\">\n <div class=\"m-drawer__title\" [attr.id]=\"titleId\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext\"\n />\n } @else { {{ header() }} }\n </div>\n\n @if (closable()) {\n <button\n class=\"m-drawer__close\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n </header>\n }\n\n <div class=\"m-drawer__content\">\n <ng-content />\n </div>\n\n @if (footerTemplate()) {\n <footer class=\"m-drawer__footer\">\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext\"\n />\n </footer>\n }\n </aside>\n</div>\n}\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 });
1220
1357
  }
1221
1358
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MDrawer, decorators: [{
1222
1359
  type: Component,
1223
- args: [{ selector: "m-drawer", imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.Eager, host: {
1360
+ args: [{ selector: "m-drawer", imports: [MIcon, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.Eager, host: {
1224
1361
  class: "m-drawer-host",
1225
1362
  "[class.m-drawer-host--sm]": "size() === 'sm'",
1226
1363
  "[class.m-drawer-host--md]": "size() === 'md'",
1227
1364
  "[class.m-drawer-host--lg]": "size() === 'lg'",
1228
- }, template: "@if (currentVisible()) {\n<div\n class=\"m-drawer-mask\"\n [class.m-drawer-mask--modal]=\"modal()\"\n [class.m-drawer-mask--modeless]=\"!modal()\"\n [class.m-drawer-mask--left]=\"position() === 'left'\"\n [class.m-drawer-mask--right]=\"position() === 'right'\"\n [class.m-drawer-mask--top]=\"position() === 'top'\"\n [class.m-drawer-mask--bottom]=\"position() === 'bottom'\"\n (click)=\"onMaskClick($event)\"\n>\n <aside\n class=\"m-drawer\"\n role=\"dialog\"\n [attr.id]=\"drawerId\"\n [attr.aria-modal]=\"modal()\"\n [attr.aria-labelledby]=\"hasTitle() ? titleId : null\"\n [class.m-drawer--left]=\"position() === 'left'\"\n [class.m-drawer--right]=\"position() === 'right'\"\n [class.m-drawer--top]=\"position() === 'top'\"\n [class.m-drawer--bottom]=\"position() === 'bottom'\"\n [class.m-drawer--sm]=\"size() === 'sm'\"\n [class.m-drawer--md]=\"size() === 'md'\"\n [class.m-drawer--lg]=\"size() === 'lg'\"\n [class.m-drawer--no-header]=\"!hasHeader()\"\n [style.width]=\"resolvedWidth()\"\n [style.height]=\"resolvedHeight()\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (hasHeader()) {\n <header class=\"m-drawer__header\">\n <div class=\"m-drawer__title\" [attr.id]=\"titleId\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext\"\n />\n } @else { {{ header() }} }\n </div>\n\n @if (closable()) {\n <button\n class=\"m-drawer__close\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n </header>\n }\n\n <div class=\"m-drawer__content\">\n <ng-content />\n </div>\n\n @if (footerTemplate()) {\n <footer class=\"m-drawer__footer\">\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext\"\n />\n </footer>\n }\n </aside>\n</div>\n}\n" }]
1365
+ }, template: "@if (currentVisible()) {\n<div\n class=\"m-drawer-mask\"\n [class.m-drawer-mask--modal]=\"modal()\"\n [class.m-drawer-mask--modeless]=\"!modal()\"\n [class.m-drawer-mask--left]=\"position() === 'left'\"\n [class.m-drawer-mask--right]=\"position() === 'right'\"\n [class.m-drawer-mask--top]=\"position() === 'top'\"\n [class.m-drawer-mask--bottom]=\"position() === 'bottom'\"\n (click)=\"onMaskClick($event)\"\n>\n <aside\n class=\"m-drawer\"\n role=\"dialog\"\n [attr.id]=\"drawerId\"\n [attr.aria-modal]=\"modal()\"\n [attr.aria-labelledby]=\"hasTitle() ? titleId : null\"\n [class.m-drawer--left]=\"position() === 'left'\"\n [class.m-drawer--right]=\"position() === 'right'\"\n [class.m-drawer--top]=\"position() === 'top'\"\n [class.m-drawer--bottom]=\"position() === 'bottom'\"\n [class.m-drawer--sm]=\"size() === 'sm'\"\n [class.m-drawer--md]=\"size() === 'md'\"\n [class.m-drawer--lg]=\"size() === 'lg'\"\n [class.m-drawer--no-header]=\"!hasHeader()\"\n [style.width]=\"resolvedWidth()\"\n [style.height]=\"resolvedHeight()\"\n (click)=\"$event.stopPropagation()\"\n >\n @if (hasHeader()) {\n <header class=\"m-drawer__header\">\n <div class=\"m-drawer__title\" [attr.id]=\"titleId\">\n @if (headerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext\"\n />\n } @else { {{ header() }} }\n </div>\n\n @if (closable()) {\n <button\n class=\"m-drawer__close\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel()\"\n (click)=\"close()\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n </header>\n }\n\n <div class=\"m-drawer__content\">\n <ng-content />\n </div>\n\n @if (footerTemplate()) {\n <footer class=\"m-drawer__footer\">\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate() ?? null\"\n [ngTemplateOutletContext]=\"templateContext\"\n />\n </footer>\n }\n </aside>\n</div>\n}\n" }]
1229
1366
  }], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], dismissibleMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissibleMask", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }], headerTemplate: [{ type: i0.ContentChild, args: ["header", { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ["footer", { isSignal: true }] }], onDocumentKeydown: [{
1230
1367
  type: HostListener,
1231
1368
  args: ["document:keydown", ["$event"]]
@@ -1332,15 +1469,15 @@ class MFileUpload {
1332
1469
  this.onTouched();
1333
1470
  }
1334
1471
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MFileUpload, deps: [], target: i0.ɵɵFactoryTarget.Component });
1335
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MFileUpload, isStandalone: true, selector: "m-file-upload", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, clear: { classPropertyName: "clear", publicName: "clear", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filesChange: "filesChange" }, host: { properties: { "class.m-file-upload-host--disabled": "isDisabled()", "class.m-file-upload-host--has-files": "hasFiles()" }, classAttribute: "m-file-upload-host" }, providers: [provideValueAccessor(() => MFileUpload)], ngImport: i0, template: "<div class=\"m-file-upload\" [class.m-file-upload--drag-active]=\"dragActive()\">\n <input\n #fileInput\n class=\"m-file-upload__input\"\n type=\"file\"\n [attr.id]=\"inputId() || null\"\n [attr.name]=\"name() || null\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onInputChange($event)\"\n />\n\n <button\n class=\"m-file-upload__dropzone\"\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openFileDialog(fileInput)\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n (blur)=\"markAsTouched()\"\n >\n <i class=\"fas fa-cloud-arrow-up m-file-upload__icon\" aria-hidden=\"true\"></i>\n <span class=\"m-file-upload__label\">{{ label() }}</span>\n @if (description()) {\n <span class=\"m-file-upload__description\">{{ description() }}</span>\n }\n </button>\n\n @if (hasFiles()) {\n <div class=\"m-file-upload__summary\">\n <ul class=\"m-file-upload__list\">\n @for (file of selectedFiles(); track file.name + file.size +\n file.lastModified) {\n <li class=\"m-file-upload__file\">\n <span class=\"m-file-upload__file-name\">\n <i class=\"fas fa-file\" aria-hidden=\"true\"></i>\n {{ file.name }}\n </span>\n <span class=\"m-file-upload__file-size\"\n >{{ formatFileSize(file.size) }}</span\n >\n </li>\n }\n </ul>\n\n @if (canClear()) {\n <button\n class=\"m-file-upload__clear\"\n type=\"button\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clearFiles($event, fileInput)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n {{ clearLabel() }}\n </button>\n }\n </div>\n }\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.Eager });
1472
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MFileUpload, isStandalone: true, selector: "m-file-upload", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, clear: { classPropertyName: "clear", publicName: "clear", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filesChange: "filesChange" }, host: { properties: { "class.m-file-upload-host--disabled": "isDisabled()", "class.m-file-upload-host--has-files": "hasFiles()" }, classAttribute: "m-file-upload-host" }, providers: [provideValueAccessor(() => MFileUpload)], ngImport: i0, template: "<div class=\"m-file-upload\" [class.m-file-upload--drag-active]=\"dragActive()\">\n <input\n #fileInput\n class=\"m-file-upload__input\"\n type=\"file\"\n [attr.id]=\"inputId() || null\"\n [attr.name]=\"name() || null\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onInputChange($event)\"\n />\n\n <button\n class=\"m-file-upload__dropzone\"\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openFileDialog(fileInput)\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n (blur)=\"markAsTouched()\"\n >\n <m-icon name=\"upload\" class=\"m-file-upload__icon\" />\n <span class=\"m-file-upload__label\">{{ label() }}</span>\n @if (description()) {\n <span class=\"m-file-upload__description\">{{ description() }}</span>\n }\n </button>\n\n @if (hasFiles()) {\n <div class=\"m-file-upload__summary\">\n <ul class=\"m-file-upload__list\">\n @for (file of selectedFiles(); track file.name + file.size +\n file.lastModified) {\n <li class=\"m-file-upload__file\">\n <span class=\"m-file-upload__file-name\">\n <m-icon name=\"file\" />\n {{ file.name }}\n </span>\n <span class=\"m-file-upload__file-size\"\n >{{ formatFileSize(file.size) }}</span\n >\n </li>\n }\n </ul>\n\n @if (canClear()) {\n <button\n class=\"m-file-upload__clear\"\n type=\"button\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clearFiles($event, fileInput)\"\n >\n <m-icon name=\"x\" />\n {{ clearLabel() }}\n </button>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
1336
1473
  }
1337
1474
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MFileUpload, decorators: [{
1338
1475
  type: Component,
1339
- args: [{ selector: "m-file-upload", providers: [provideValueAccessor(() => MFileUpload)], changeDetection: ChangeDetectionStrategy.Eager, host: {
1476
+ args: [{ imports: [MIcon], selector: "m-file-upload", providers: [provideValueAccessor(() => MFileUpload)], changeDetection: ChangeDetectionStrategy.Eager, host: {
1340
1477
  class: "m-file-upload-host",
1341
1478
  "[class.m-file-upload-host--disabled]": "isDisabled()",
1342
1479
  "[class.m-file-upload-host--has-files]": "hasFiles()",
1343
- }, template: "<div class=\"m-file-upload\" [class.m-file-upload--drag-active]=\"dragActive()\">\n <input\n #fileInput\n class=\"m-file-upload__input\"\n type=\"file\"\n [attr.id]=\"inputId() || null\"\n [attr.name]=\"name() || null\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onInputChange($event)\"\n />\n\n <button\n class=\"m-file-upload__dropzone\"\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openFileDialog(fileInput)\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n (blur)=\"markAsTouched()\"\n >\n <i class=\"fas fa-cloud-arrow-up m-file-upload__icon\" aria-hidden=\"true\"></i>\n <span class=\"m-file-upload__label\">{{ label() }}</span>\n @if (description()) {\n <span class=\"m-file-upload__description\">{{ description() }}</span>\n }\n </button>\n\n @if (hasFiles()) {\n <div class=\"m-file-upload__summary\">\n <ul class=\"m-file-upload__list\">\n @for (file of selectedFiles(); track file.name + file.size +\n file.lastModified) {\n <li class=\"m-file-upload__file\">\n <span class=\"m-file-upload__file-name\">\n <i class=\"fas fa-file\" aria-hidden=\"true\"></i>\n {{ file.name }}\n </span>\n <span class=\"m-file-upload__file-size\"\n >{{ formatFileSize(file.size) }}</span\n >\n </li>\n }\n </ul>\n\n @if (canClear()) {\n <button\n class=\"m-file-upload__clear\"\n type=\"button\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clearFiles($event, fileInput)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n {{ clearLabel() }}\n </button>\n }\n </div>\n }\n</div>\n" }]
1480
+ }, template: "<div class=\"m-file-upload\" [class.m-file-upload--drag-active]=\"dragActive()\">\n <input\n #fileInput\n class=\"m-file-upload__input\"\n type=\"file\"\n [attr.id]=\"inputId() || null\"\n [attr.name]=\"name() || null\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"multiple()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onInputChange($event)\"\n />\n\n <button\n class=\"m-file-upload__dropzone\"\n type=\"button\"\n [disabled]=\"isDisabled()\"\n (click)=\"openFileDialog(fileInput)\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n (blur)=\"markAsTouched()\"\n >\n <m-icon name=\"upload\" class=\"m-file-upload__icon\" />\n <span class=\"m-file-upload__label\">{{ label() }}</span>\n @if (description()) {\n <span class=\"m-file-upload__description\">{{ description() }}</span>\n }\n </button>\n\n @if (hasFiles()) {\n <div class=\"m-file-upload__summary\">\n <ul class=\"m-file-upload__list\">\n @for (file of selectedFiles(); track file.name + file.size +\n file.lastModified) {\n <li class=\"m-file-upload__file\">\n <span class=\"m-file-upload__file-name\">\n <m-icon name=\"file\" />\n {{ file.name }}\n </span>\n <span class=\"m-file-upload__file-size\"\n >{{ formatFileSize(file.size) }}</span\n >\n </li>\n }\n </ul>\n\n @if (canClear()) {\n <button\n class=\"m-file-upload__clear\"\n type=\"button\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clearFiles($event, fileInput)\"\n >\n <m-icon name=\"x\" />\n {{ clearLabel() }}\n </button>\n }\n </div>\n }\n</div>\n" }]
1344
1481
  }], propDecorators: { inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], clear: [{ type: i0.Input, args: [{ isSignal: true, alias: "clear", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], filesChange: [{ type: i0.Output, args: ["filesChange"] }] } });
1345
1482
 
1346
1483
  let nextTooltipId = 0;
@@ -1559,16 +1696,16 @@ function fileSize(value) {
1559
1696
  }
1560
1697
  function fileIcon(type) {
1561
1698
  if (type === "application/pdf")
1562
- return "fas fa-file-pdf";
1699
+ return "file-pdf";
1563
1700
  if (type.startsWith("image/"))
1564
- return "fas fa-file-image";
1701
+ return "image";
1565
1702
  if (type.startsWith("audio/"))
1566
- return "fas fa-file-audio";
1703
+ return "file-audio";
1567
1704
  if (type.startsWith("video/"))
1568
- return "fas fa-file-video";
1705
+ return "file-video";
1569
1706
  if (type.startsWith("text/"))
1570
- return "fas fa-file-lines";
1571
- return "fas fa-file";
1707
+ return "file-text";
1708
+ return "file";
1572
1709
  }
1573
1710
  class MFileList {
1574
1711
  files = input([], /* @ts-ignore */
@@ -1619,15 +1756,15 @@ class MFileList {
1619
1756
  this.remove.emit(file);
1620
1757
  }
1621
1758
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MFileList, deps: [], target: i0.ɵɵFactoryTarget.Component });
1622
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MFileList, isStandalone: true, selector: "m-file-list", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, nameField: { classPropertyName: "nameField", publicName: "nameField", isSignal: true, isRequired: false, transformFunction: null }, sizeField: { classPropertyName: "sizeField", publicName: "sizeField", isSignal: true, isRequired: false, transformFunction: null }, typeField: { classPropertyName: "typeField", publicName: "typeField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, downloadable: { classPropertyName: "downloadable", publicName: "downloadable", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, unnamedLabel: { classPropertyName: "unnamedLabel", publicName: "unnamedLabel", isSignal: true, isRequired: false, transformFunction: null }, downloadLabel: { classPropertyName: "downloadLabel", publicName: "downloadLabel", isSignal: true, isRequired: false, transformFunction: null }, removeLabel: { classPropertyName: "removeLabel", publicName: "removeLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { download: "download", remove: "remove" }, host: { properties: { "class.m-file-list--sm": "size() === 'sm'", "class.m-file-list--lg": "size() === 'lg'" }, classAttribute: "m-file-list" }, ngImport: i0, 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 <i [class]=\"row.icon + ' m-file-list__icon'\" aria-hidden=\"true\"></i>\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=\"fas fa-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=\"fas fa-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", dependencies: [{ kind: "directive", type: MButtonDirective, selector: "button[mButton], a[mButton]", inputs: ["mButtonSize", "icon", "mButtonBlock", "iconOnly"] }, { kind: "directive", type: MTooltipDirective, selector: "[mTooltip]", inputs: ["mTooltip", "tooltipPosition", "showDelay", "hideDelay", "tooltipDisabled", "tooltipStyleClass"], exportAs: ["mTooltip"] }] });
1759
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MFileList, isStandalone: true, selector: "m-file-list", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, nameField: { classPropertyName: "nameField", publicName: "nameField", isSignal: true, isRequired: false, transformFunction: null }, sizeField: { classPropertyName: "sizeField", publicName: "sizeField", isSignal: true, isRequired: false, transformFunction: null }, typeField: { classPropertyName: "typeField", publicName: "typeField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, downloadable: { classPropertyName: "downloadable", publicName: "downloadable", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, unnamedLabel: { classPropertyName: "unnamedLabel", publicName: "unnamedLabel", isSignal: true, isRequired: false, transformFunction: null }, downloadLabel: { classPropertyName: "downloadLabel", publicName: "downloadLabel", isSignal: true, isRequired: false, transformFunction: null }, removeLabel: { classPropertyName: "removeLabel", publicName: "removeLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { download: "download", remove: "remove" }, host: { properties: { "class.m-file-list--sm": "size() === 'sm'", "class.m-file-list--lg": "size() === 'lg'" }, classAttribute: "m-file-list" }, ngImport: i0, 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", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: MButtonDirective, selector: "button[mButton], a[mButton]", inputs: ["mButtonSize", "icon", "mButtonBlock", "iconOnly"] }, { kind: "directive", type: MTooltipDirective, selector: "[mTooltip]", inputs: ["mTooltip", "tooltipPosition", "showDelay", "hideDelay", "tooltipDisabled", "tooltipStyleClass"], exportAs: ["mTooltip"] }] });
1623
1760
  }
1624
1761
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MFileList, decorators: [{
1625
1762
  type: Component,
1626
- args: [{ selector: "m-file-list", imports: [MButtonDirective, MTooltipDirective], host: {
1763
+ args: [{ selector: "m-file-list", imports: [MIcon, MButtonDirective, MTooltipDirective], host: {
1627
1764
  class: "m-file-list",
1628
1765
  "[class.m-file-list--sm]": "size() === 'sm'",
1629
1766
  "[class.m-file-list--lg]": "size() === 'lg'",
1630
- }, 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 <i [class]=\"row.icon + ' m-file-list__icon'\" aria-hidden=\"true\"></i>\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=\"fas fa-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=\"fas fa-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" }]
1767
+ }, 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" }]
1631
1768
  }], 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"] }] } });
1632
1769
 
1633
1770
  const MASK_TOKENS = {
@@ -1814,14 +1951,6 @@ class MInput {
1814
1951
  ...(ngDevMode ? [{ debugName: "isPassword" }] : /* istanbul ignore next */ []));
1815
1952
  inputType = computed(() => this.isPassword() && this.passwordVisible() ? "text" : this.type(), /* @ts-ignore */
1816
1953
  ...(ngDevMode ? [{ debugName: "inputType" }] : /* istanbul ignore next */ []));
1817
- iconClass = computed(() => ["m-input-wrapper__icon", this.icon().trim()].filter(Boolean).join(" "), /* @ts-ignore */
1818
- ...(ngDevMode ? [{ debugName: "iconClass" }] : /* istanbul ignore next */ []));
1819
- passwordToggleIconClass = computed(() => [
1820
- "fas",
1821
- this.passwordVisible() ? "fa-eye-slash" : "fa-eye",
1822
- "m-input-wrapper__action-icon",
1823
- ].join(" "), /* @ts-ignore */
1824
- ...(ngDevMode ? [{ debugName: "passwordToggleIconClass" }] : /* istanbul ignore next */ []));
1825
1954
  passwordToggleLabel = computed(() => this.passwordVisible() ? "Hide password" : "Show password", /* @ts-ignore */
1826
1955
  ...(ngDevMode ? [{ debugName: "passwordToggleLabel" }] : /* istanbul ignore next */ []));
1827
1956
  usingValueAccessor = false;
@@ -1872,17 +2001,17 @@ class MInput {
1872
2001
  this.passwordVisible.update((visible) => !visible);
1873
2002
  }
1874
2003
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
1875
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MInput, isStandalone: true, selector: "m-input", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, rawValue: { classPropertyName: "rawValue", publicName: "rawValue", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.m-input-host--sm": "size() === 'sm'", "class.m-input-host--md": "size() === 'md'", "class.m-input-host--lg": "size() === 'lg'", "class.m-input-host--disabled": "isDisabled()" }, classAttribute: "m-input-host" }, providers: [provideValueAccessor(() => MInput)], ngImport: i0, template: "<span\n class=\"m-input-wrapper\"\n [class.m-input-wrapper--sm]=\"size() === 'sm'\"\n [class.m-input-wrapper--md]=\"size() === 'md'\"\n [class.m-input-wrapper--lg]=\"size() === 'lg'\"\n [class.m-input-wrapper--icon]=\"icon()\"\n [class.m-input-wrapper--password-toggle]=\"isPassword()\"\n>\n @if (icon()) {\n <i [class]=\"iconClass()\" aria-hidden=\"true\"></i>\n }\n\n <input\n mInput\n [attr.id]=\"inputId() || null\"\n [type]=\"inputType()\"\n [attr.placeholder]=\"placeholder() || null\"\n [value]=\"currentValue()\"\n [attr.name]=\"name() || null\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [mInputSize]=\"size()\"\n [mInputMask]=\"mask()\"\n [mInputRawValue]=\"rawValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readOnly()\"\n (input)=\"onInput($event)\"\n (blur)=\"markAsTouched()\"\n />\n\n @if (isPassword()) {\n <button\n class=\"m-input-wrapper__action\"\n type=\"button\"\n [attr.aria-label]=\"passwordToggleLabel()\"\n [attr.title]=\"passwordToggleLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePasswordVisibility()\"\n >\n <i [class]=\"passwordToggleIconClass()\" aria-hidden=\"true\"></i>\n </button>\n }\n</span>\n", dependencies: [{ kind: "directive", type: MInputDirective, selector: "input[mInput], textarea[mInput]", inputs: ["mInputSize", "mInputMask", "mInputRawValue"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
2004
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MInput, isStandalone: true, selector: "m-input", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, rawValue: { classPropertyName: "rawValue", publicName: "rawValue", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.m-input-host--sm": "size() === 'sm'", "class.m-input-host--md": "size() === 'md'", "class.m-input-host--lg": "size() === 'lg'", "class.m-input-host--disabled": "isDisabled()" }, classAttribute: "m-input-host" }, providers: [provideValueAccessor(() => MInput)], ngImport: i0, template: "<span\n class=\"m-input-wrapper\"\n [class.m-input-wrapper--sm]=\"size() === 'sm'\"\n [class.m-input-wrapper--md]=\"size() === 'md'\"\n [class.m-input-wrapper--lg]=\"size() === 'lg'\"\n [class.m-input-wrapper--icon]=\"icon()\"\n [class.m-input-wrapper--password-toggle]=\"isPassword()\"\n>\n @if (icon()) {\n <m-icon class=\"m-input-wrapper__icon\" [name]=\"icon()\" />\n }\n\n <input\n mInput\n [attr.id]=\"inputId() || null\"\n [type]=\"inputType()\"\n [attr.placeholder]=\"placeholder() || null\"\n [value]=\"currentValue()\"\n [attr.name]=\"name() || null\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [mInputSize]=\"size()\"\n [mInputMask]=\"mask()\"\n [mInputRawValue]=\"rawValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readOnly()\"\n (input)=\"onInput($event)\"\n (blur)=\"markAsTouched()\"\n />\n\n @if (isPassword()) {\n <button\n class=\"m-input-wrapper__action\"\n type=\"button\"\n [attr.aria-label]=\"passwordToggleLabel()\"\n [attr.title]=\"passwordToggleLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePasswordVisibility()\"\n >\n <m-icon\n class=\"m-input-wrapper__action-icon\"\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n />\n </button>\n }\n</span>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: MInputDirective, selector: "input[mInput], textarea[mInput]", inputs: ["mInputSize", "mInputMask", "mInputRawValue"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
1876
2005
  }
1877
2006
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MInput, decorators: [{
1878
2007
  type: Component,
1879
- args: [{ selector: "m-input", imports: [MInputDirective], providers: [provideValueAccessor(() => MInput)], changeDetection: ChangeDetectionStrategy.Eager, host: {
2008
+ args: [{ selector: "m-input", imports: [MIcon, MInputDirective], providers: [provideValueAccessor(() => MInput)], changeDetection: ChangeDetectionStrategy.Eager, host: {
1880
2009
  class: "m-input-host",
1881
2010
  "[class.m-input-host--sm]": "size() === 'sm'",
1882
2011
  "[class.m-input-host--md]": "size() === 'md'",
1883
2012
  "[class.m-input-host--lg]": "size() === 'lg'",
1884
2013
  "[class.m-input-host--disabled]": "isDisabled()",
1885
- }, template: "<span\n class=\"m-input-wrapper\"\n [class.m-input-wrapper--sm]=\"size() === 'sm'\"\n [class.m-input-wrapper--md]=\"size() === 'md'\"\n [class.m-input-wrapper--lg]=\"size() === 'lg'\"\n [class.m-input-wrapper--icon]=\"icon()\"\n [class.m-input-wrapper--password-toggle]=\"isPassword()\"\n>\n @if (icon()) {\n <i [class]=\"iconClass()\" aria-hidden=\"true\"></i>\n }\n\n <input\n mInput\n [attr.id]=\"inputId() || null\"\n [type]=\"inputType()\"\n [attr.placeholder]=\"placeholder() || null\"\n [value]=\"currentValue()\"\n [attr.name]=\"name() || null\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [mInputSize]=\"size()\"\n [mInputMask]=\"mask()\"\n [mInputRawValue]=\"rawValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readOnly()\"\n (input)=\"onInput($event)\"\n (blur)=\"markAsTouched()\"\n />\n\n @if (isPassword()) {\n <button\n class=\"m-input-wrapper__action\"\n type=\"button\"\n [attr.aria-label]=\"passwordToggleLabel()\"\n [attr.title]=\"passwordToggleLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePasswordVisibility()\"\n >\n <i [class]=\"passwordToggleIconClass()\" aria-hidden=\"true\"></i>\n </button>\n }\n</span>\n" }]
2014
+ }, template: "<span\n class=\"m-input-wrapper\"\n [class.m-input-wrapper--sm]=\"size() === 'sm'\"\n [class.m-input-wrapper--md]=\"size() === 'md'\"\n [class.m-input-wrapper--lg]=\"size() === 'lg'\"\n [class.m-input-wrapper--icon]=\"icon()\"\n [class.m-input-wrapper--password-toggle]=\"isPassword()\"\n>\n @if (icon()) {\n <m-icon class=\"m-input-wrapper__icon\" [name]=\"icon()\" />\n }\n\n <input\n mInput\n [attr.id]=\"inputId() || null\"\n [type]=\"inputType()\"\n [attr.placeholder]=\"placeholder() || null\"\n [value]=\"currentValue()\"\n [attr.name]=\"name() || null\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [mInputSize]=\"size()\"\n [mInputMask]=\"mask()\"\n [mInputRawValue]=\"rawValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readOnly()\"\n (input)=\"onInput($event)\"\n (blur)=\"markAsTouched()\"\n />\n\n @if (isPassword()) {\n <button\n class=\"m-input-wrapper__action\"\n type=\"button\"\n [attr.aria-label]=\"passwordToggleLabel()\"\n [attr.title]=\"passwordToggleLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePasswordVisibility()\"\n >\n <m-icon\n class=\"m-input-wrapper__action-icon\"\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n />\n </button>\n }\n</span>\n" }]
1886
2015
  }], ctorParameters: () => [], propDecorators: { inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], rawValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "rawValue", 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 }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", 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 }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
1887
2016
 
1888
2017
  const DEFAULT_LOCALE = "en-US";
@@ -2302,8 +2431,6 @@ class MInputNumber {
2302
2431
  });
2303
2432
  }, /* @ts-ignore */
2304
2433
  ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
2305
- iconClass = computed(() => ["m-input-wrapper__icon", this.icon().trim()].filter(Boolean).join(" "), /* @ts-ignore */
2306
- ...(ngDevMode ? [{ debugName: "iconClass" }] : /* istanbul ignore next */ []));
2307
2434
  usingValueAccessor = false;
2308
2435
  onChange = () => undefined;
2309
2436
  onTouched = noopTouched;
@@ -2357,17 +2484,17 @@ class MInputNumber {
2357
2484
  this.onChange(emitValue);
2358
2485
  }
2359
2486
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MInputNumber, deps: [], target: i0.ɵɵFactoryTarget.Component });
2360
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MInputNumber, isStandalone: true, selector: "m-input-number", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, decimals: { classPropertyName: "decimals", publicName: "decimals", isSignal: true, isRequired: false, transformFunction: null }, minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, allowNegative: { classPropertyName: "allowNegative", publicName: "allowNegative", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.m-input-host--sm": "size() === 'sm'", "class.m-input-host--md": "size() === 'md'", "class.m-input-host--lg": "size() === 'lg'", "class.m-input-host--disabled": "isDisabled()" }, classAttribute: "m-input-host m-input-number-host" }, providers: [provideValueAccessor(() => MInputNumber)], ngImport: i0, template: "<span\n class=\"m-input-wrapper\"\n [class.m-input-wrapper--sm]=\"size() === 'sm'\"\n [class.m-input-wrapper--md]=\"size() === 'md'\"\n [class.m-input-wrapper--lg]=\"size() === 'lg'\"\n [class.m-input-wrapper--icon]=\"icon()\"\n>\n @if (icon()) {\n <i [class]=\"iconClass()\" aria-hidden=\"true\"></i>\n }\n\n <input\n [mInputNumber]=\"currentValue()\"\n [attr.id]=\"inputId() || null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.name]=\"name() || null\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [mInputNumberSize]=\"size()\"\n [mInputNumberAlign]=\"align()\"\n [locale]=\"locale()\"\n [decimals]=\"decimals()\"\n [minFractionDigits]=\"minFractionDigits()\"\n [maxFractionDigits]=\"maxFractionDigits()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [useGrouping]=\"useGrouping()\"\n [allowNegative]=\"allowNegative()\"\n [prefix]=\"prefix()\"\n [suffix]=\"suffix()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readOnly()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n</span>\n", dependencies: [{ kind: "directive", type: MInputNumberDirective, selector: "input[mInputNumber]", inputs: ["mInputNumber", "mInputNumberAlign", "mInputNumberSize", "locale", "decimals", "minFractionDigits", "maxFractionDigits", "min", "max", "useGrouping", "allowNegative", "prefix", "suffix"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
2487
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MInputNumber, isStandalone: true, selector: "m-input-number", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, decimals: { classPropertyName: "decimals", publicName: "decimals", isSignal: true, isRequired: false, transformFunction: null }, minFractionDigits: { classPropertyName: "minFractionDigits", publicName: "minFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, maxFractionDigits: { classPropertyName: "maxFractionDigits", publicName: "maxFractionDigits", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, useGrouping: { classPropertyName: "useGrouping", publicName: "useGrouping", isSignal: true, isRequired: false, transformFunction: null }, allowNegative: { classPropertyName: "allowNegative", publicName: "allowNegative", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.m-input-host--sm": "size() === 'sm'", "class.m-input-host--md": "size() === 'md'", "class.m-input-host--lg": "size() === 'lg'", "class.m-input-host--disabled": "isDisabled()" }, classAttribute: "m-input-host m-input-number-host" }, providers: [provideValueAccessor(() => MInputNumber)], ngImport: i0, template: "<span\n class=\"m-input-wrapper\"\n [class.m-input-wrapper--sm]=\"size() === 'sm'\"\n [class.m-input-wrapper--md]=\"size() === 'md'\"\n [class.m-input-wrapper--lg]=\"size() === 'lg'\"\n [class.m-input-wrapper--icon]=\"icon()\"\n>\n @if (icon()) {\n <m-icon class=\"m-input-wrapper__icon\" [name]=\"icon()\" />\n }\n\n <input\n [mInputNumber]=\"currentValue()\"\n [attr.id]=\"inputId() || null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.name]=\"name() || null\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [mInputNumberSize]=\"size()\"\n [mInputNumberAlign]=\"align()\"\n [locale]=\"locale()\"\n [decimals]=\"decimals()\"\n [minFractionDigits]=\"minFractionDigits()\"\n [maxFractionDigits]=\"maxFractionDigits()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [useGrouping]=\"useGrouping()\"\n [allowNegative]=\"allowNegative()\"\n [prefix]=\"prefix()\"\n [suffix]=\"suffix()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readOnly()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n</span>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: MInputNumberDirective, selector: "input[mInputNumber]", inputs: ["mInputNumber", "mInputNumberAlign", "mInputNumberSize", "locale", "decimals", "minFractionDigits", "maxFractionDigits", "min", "max", "useGrouping", "allowNegative", "prefix", "suffix"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
2361
2488
  }
2362
2489
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MInputNumber, decorators: [{
2363
2490
  type: Component,
2364
- args: [{ selector: "m-input-number", imports: [MInputNumberDirective], providers: [provideValueAccessor(() => MInputNumber)], changeDetection: ChangeDetectionStrategy.Eager, host: {
2491
+ args: [{ selector: "m-input-number", imports: [MIcon, MInputNumberDirective], providers: [provideValueAccessor(() => MInputNumber)], changeDetection: ChangeDetectionStrategy.Eager, host: {
2365
2492
  class: "m-input-host m-input-number-host",
2366
2493
  "[class.m-input-host--sm]": "size() === 'sm'",
2367
2494
  "[class.m-input-host--md]": "size() === 'md'",
2368
2495
  "[class.m-input-host--lg]": "size() === 'lg'",
2369
2496
  "[class.m-input-host--disabled]": "isDisabled()",
2370
- }, template: "<span\n class=\"m-input-wrapper\"\n [class.m-input-wrapper--sm]=\"size() === 'sm'\"\n [class.m-input-wrapper--md]=\"size() === 'md'\"\n [class.m-input-wrapper--lg]=\"size() === 'lg'\"\n [class.m-input-wrapper--icon]=\"icon()\"\n>\n @if (icon()) {\n <i [class]=\"iconClass()\" aria-hidden=\"true\"></i>\n }\n\n <input\n [mInputNumber]=\"currentValue()\"\n [attr.id]=\"inputId() || null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.name]=\"name() || null\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [mInputNumberSize]=\"size()\"\n [mInputNumberAlign]=\"align()\"\n [locale]=\"locale()\"\n [decimals]=\"decimals()\"\n [minFractionDigits]=\"minFractionDigits()\"\n [maxFractionDigits]=\"maxFractionDigits()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [useGrouping]=\"useGrouping()\"\n [allowNegative]=\"allowNegative()\"\n [prefix]=\"prefix()\"\n [suffix]=\"suffix()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readOnly()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n</span>\n" }]
2497
+ }, template: "<span\n class=\"m-input-wrapper\"\n [class.m-input-wrapper--sm]=\"size() === 'sm'\"\n [class.m-input-wrapper--md]=\"size() === 'md'\"\n [class.m-input-wrapper--lg]=\"size() === 'lg'\"\n [class.m-input-wrapper--icon]=\"icon()\"\n>\n @if (icon()) {\n <m-icon class=\"m-input-wrapper__icon\" [name]=\"icon()\" />\n }\n\n <input\n [mInputNumber]=\"currentValue()\"\n [attr.id]=\"inputId() || null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.name]=\"name() || null\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [mInputNumberSize]=\"size()\"\n [mInputNumberAlign]=\"align()\"\n [locale]=\"locale()\"\n [decimals]=\"decimals()\"\n [minFractionDigits]=\"minFractionDigits()\"\n [maxFractionDigits]=\"maxFractionDigits()\"\n [min]=\"min()\"\n [max]=\"max()\"\n [useGrouping]=\"useGrouping()\"\n [allowNegative]=\"allowNegative()\"\n [prefix]=\"prefix()\"\n [suffix]=\"suffix()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readOnly()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n</span>\n" }]
2371
2498
  }], ctorParameters: () => [], propDecorators: { inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", 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 }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], decimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimals", required: false }] }], minFractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "minFractionDigits", required: false }] }], maxFractionDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFractionDigits", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], useGrouping: [{ type: i0.Input, args: [{ isSignal: true, alias: "useGrouping", required: false }] }], allowNegative: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowNegative", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
2372
2499
 
2373
2500
  function property(value, path) {
@@ -2577,17 +2704,17 @@ class MListbox {
2577
2704
  Object.is(firstKey, secondKey));
2578
2705
  }
2579
2706
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MListbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
2580
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MListbox, isStandalone: true, selector: "m-listbox", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", 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: { listeners: { "focusout": "onFocusOut($event)" }, properties: { "class.m-listbox--sm": "size() === 'sm'", "class.m-listbox--lg": "size() === 'lg'", "class.m-listbox--disabled": "isDisabled()" }, classAttribute: "m-listbox" }, providers: [provideValueAccessor(() => MListbox)], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (filter()) {\n<div class=\"m-listbox__filter\">\n <input\n mInput\n type=\"search\"\n [mInputSize]=\"size()\"\n [value]=\"query()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterPlaceholder() || 'Filter'\"\n [attr.aria-controls]=\"listId()\"\n (input)=\"onFilter($event)\"\n (keydown.arrowdown)=\"focusList($event)\"\n />\n</div>\n}\n<ul\n #list\n class=\"m-listbox__list\"\n role=\"listbox\"\n [id]=\"listId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-label]=\"ariaLabelledby() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-disabled]=\"isDisabled()\"\n [attr.aria-multiselectable]=\"multiple()\"\n [attr.aria-activedescendant]=\"!isDisabled() && active() ? uid + '-option-' + active()!.index : null\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"scrollActive()\"\n>\n @for (option of filtered(); track option.index) {\n <li\n class=\"m-listbox__option\"\n role=\"option\"\n [id]=\"uid + '-option-' + option.index\"\n [attr.data-index]=\"option.index\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [attr.aria-disabled]=\"isDisabled() || option.disabled\"\n [attr.aria-label]=\"option.label\"\n [class.m-listbox__option--selected]=\"isSelected(option.value)\"\n [class.m-listbox__option--active]=\"active()?.index === option.index\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"select(option)\"\n >\n <span class=\"m-listbox__label\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: option.raw, selected: isSelected(option.value), disabled: isDisabled() || option.disabled }\"\n />\n } @else { {{ option.label }} }\n </span>\n <i\n class=\"fas fa-check m-listbox__check\"\n aria-hidden=\"true\"\n [style.visibility]=\"isSelected(option.value) ? 'visible' : 'hidden'\"\n ></i>\n </li>\n } @empty {\n <li class=\"m-listbox__empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n</ul>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: MInputDirective, selector: "input[mInput], textarea[mInput]", inputs: ["mInputSize", "mInputMask", "mInputRawValue"] }] });
2707
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MListbox, isStandalone: true, selector: "m-listbox", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", 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: { listeners: { "focusout": "onFocusOut($event)" }, properties: { "class.m-listbox--sm": "size() === 'sm'", "class.m-listbox--lg": "size() === 'lg'", "class.m-listbox--disabled": "isDisabled()" }, classAttribute: "m-listbox" }, providers: [provideValueAccessor(() => MListbox)], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (filter()) {\n<div class=\"m-listbox__filter\">\n <input\n mInput\n type=\"search\"\n [mInputSize]=\"size()\"\n [value]=\"query()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterPlaceholder() || 'Filter'\"\n [attr.aria-controls]=\"listId()\"\n (input)=\"onFilter($event)\"\n (keydown.arrowdown)=\"focusList($event)\"\n />\n</div>\n}\n<ul\n #list\n class=\"m-listbox__list\"\n role=\"listbox\"\n [id]=\"listId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-label]=\"ariaLabelledby() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-disabled]=\"isDisabled()\"\n [attr.aria-multiselectable]=\"multiple()\"\n [attr.aria-activedescendant]=\"!isDisabled() && active() ? uid + '-option-' + active()!.index : null\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"scrollActive()\"\n>\n @for (option of filtered(); track option.index) {\n <li\n class=\"m-listbox__option\"\n role=\"option\"\n [id]=\"uid + '-option-' + option.index\"\n [attr.data-index]=\"option.index\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [attr.aria-disabled]=\"isDisabled() || option.disabled\"\n [attr.aria-label]=\"option.label\"\n [class.m-listbox__option--selected]=\"isSelected(option.value)\"\n [class.m-listbox__option--active]=\"active()?.index === option.index\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"select(option)\"\n >\n <span class=\"m-listbox__label\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: option.raw, selected: isSelected(option.value), disabled: isDisabled() || option.disabled }\"\n />\n } @else { {{ option.label }} }\n </span>\n <m-icon\n name=\"check\"\n class=\"m-listbox__check\"\n [style.visibility]=\"isSelected(option.value) ? 'visible' : 'hidden'\"\n />\n </li>\n } @empty {\n <li class=\"m-listbox__empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n</ul>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: MInputDirective, selector: "input[mInput], textarea[mInput]", inputs: ["mInputSize", "mInputMask", "mInputRawValue"] }] });
2581
2708
  }
2582
2709
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MListbox, decorators: [{
2583
2710
  type: Component,
2584
- args: [{ selector: "m-listbox", imports: [NgTemplateOutlet, MInputDirective], providers: [provideValueAccessor(() => MListbox)], host: {
2711
+ args: [{ selector: "m-listbox", imports: [MIcon, NgTemplateOutlet, MInputDirective], providers: [provideValueAccessor(() => MListbox)], host: {
2585
2712
  class: "m-listbox",
2586
2713
  "[class.m-listbox--sm]": "size() === 'sm'",
2587
2714
  "[class.m-listbox--lg]": "size() === 'lg'",
2588
2715
  "[class.m-listbox--disabled]": "isDisabled()",
2589
2716
  "(focusout)": "onFocusOut($event)",
2590
- }, template: "@if (filter()) {\n<div class=\"m-listbox__filter\">\n <input\n mInput\n type=\"search\"\n [mInputSize]=\"size()\"\n [value]=\"query()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterPlaceholder() || 'Filter'\"\n [attr.aria-controls]=\"listId()\"\n (input)=\"onFilter($event)\"\n (keydown.arrowdown)=\"focusList($event)\"\n />\n</div>\n}\n<ul\n #list\n class=\"m-listbox__list\"\n role=\"listbox\"\n [id]=\"listId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-label]=\"ariaLabelledby() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-disabled]=\"isDisabled()\"\n [attr.aria-multiselectable]=\"multiple()\"\n [attr.aria-activedescendant]=\"!isDisabled() && active() ? uid + '-option-' + active()!.index : null\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"scrollActive()\"\n>\n @for (option of filtered(); track option.index) {\n <li\n class=\"m-listbox__option\"\n role=\"option\"\n [id]=\"uid + '-option-' + option.index\"\n [attr.data-index]=\"option.index\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [attr.aria-disabled]=\"isDisabled() || option.disabled\"\n [attr.aria-label]=\"option.label\"\n [class.m-listbox__option--selected]=\"isSelected(option.value)\"\n [class.m-listbox__option--active]=\"active()?.index === option.index\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"select(option)\"\n >\n <span class=\"m-listbox__label\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: option.raw, selected: isSelected(option.value), disabled: isDisabled() || option.disabled }\"\n />\n } @else { {{ option.label }} }\n </span>\n <i\n class=\"fas fa-check m-listbox__check\"\n aria-hidden=\"true\"\n [style.visibility]=\"isSelected(option.value) ? 'visible' : 'hidden'\"\n ></i>\n </li>\n } @empty {\n <li class=\"m-listbox__empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n</ul>\n" }]
2717
+ }, template: "@if (filter()) {\n<div class=\"m-listbox__filter\">\n <input\n mInput\n type=\"search\"\n [mInputSize]=\"size()\"\n [value]=\"query()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterPlaceholder() || 'Filter'\"\n [attr.aria-controls]=\"listId()\"\n (input)=\"onFilter($event)\"\n (keydown.arrowdown)=\"focusList($event)\"\n />\n</div>\n}\n<ul\n #list\n class=\"m-listbox__list\"\n role=\"listbox\"\n [id]=\"listId()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-label]=\"ariaLabelledby() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby() || null\"\n [attr.aria-disabled]=\"isDisabled()\"\n [attr.aria-multiselectable]=\"multiple()\"\n [attr.aria-activedescendant]=\"!isDisabled() && active() ? uid + '-option-' + active()!.index : null\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"scrollActive()\"\n>\n @for (option of filtered(); track option.index) {\n <li\n class=\"m-listbox__option\"\n role=\"option\"\n [id]=\"uid + '-option-' + option.index\"\n [attr.data-index]=\"option.index\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [attr.aria-disabled]=\"isDisabled() || option.disabled\"\n [attr.aria-label]=\"option.label\"\n [class.m-listbox__option--selected]=\"isSelected(option.value)\"\n [class.m-listbox__option--active]=\"active()?.index === option.index\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"select(option)\"\n >\n <span class=\"m-listbox__label\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{ $implicit: option.raw, selected: isSelected(option.value), disabled: isDisabled() || option.disabled }\"\n />\n } @else { {{ option.label }} }\n </span>\n <m-icon\n name=\"check\"\n class=\"m-listbox__check\"\n [style.visibility]=\"isSelected(option.value) ? 'visible' : 'hidden'\"\n />\n </li>\n } @empty {\n <li class=\"m-listbox__empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n</ul>\n" }]
2591
2718
  }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], itemTemplate: [{ type: i0.ContentChild, args: ["item", { isSignal: true }] }], list: [{ type: i0.ViewChild, args: ["list", { isSignal: true }] }] } });
2592
2719
 
2593
2720
  class MMenu {
@@ -2646,9 +2773,6 @@ class MMenu {
2646
2773
  }
2647
2774
  return false;
2648
2775
  }
2649
- iconClass(item) {
2650
- return ["m-menu__icon", item.icon?.trim()].filter(Boolean).join(" ");
2651
- }
2652
2776
  handleItem(item, siblings) {
2653
2777
  if (item.disabled) {
2654
2778
  return;
@@ -2708,16 +2832,16 @@ class MMenu {
2708
2832
  this.expandedValuesChange.emit(values);
2709
2833
  }
2710
2834
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
2711
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MMenu, isStandalone: true, selector: "m-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, expandedValues: { classPropertyName: "expandedValues", publicName: "expandedValues", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", 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 } }, outputs: { itemClick: "itemClick", expandedValuesChange: "expandedValuesChange" }, host: { properties: { "class.m-menu-host--sm": "size() === 'sm'", "class.m-menu-host--md": "size() === 'md'", "class.m-menu-host--lg": "size() === 'lg'" }, classAttribute: "m-menu-host" }, ngImport: i0, template: "<nav\n class=\"m-menu\"\n [class.m-menu--sm]=\"size() === 'sm'\"\n [class.m-menu--md]=\"size() === 'md'\"\n [class.m-menu--lg]=\"size() === 'lg'\"\n [class.m-menu--scrollable]=\"scrollable()\"\n [style.max-height]=\"scrollHeight() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: items(), level: 0 }\"\n />\n</nav>\n\n<ng-template #menuList let-menuItems let-level=\"level\">\n <ul\n class=\"m-menu__list\"\n role=\"list\"\n [class.m-menu__list--root]=\"level === 0\"\n [attr.data-level]=\"level\"\n >\n @for (item of menuItems; track menuItemTrack(item)) {\n <li\n class=\"m-menu__entry\"\n [class.m-menu__entry--expanded]=\"isExpanded(item)\"\n [class.m-menu__entry--disabled]=\"item.disabled\"\n >\n <button\n class=\"m-menu__item\"\n type=\"button\"\n [class.m-menu__item--active]=\"isSelected(item)\"\n [class.m-menu__item--parent]=\"hasChildren(item)\"\n [style.--m-menu-level]=\"level\"\n [attr.aria-current]=\"isSelected(item) ? 'page' : null\"\n [attr.aria-expanded]=\"hasChildren(item) ? isExpanded(item) : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-menu-value]=\"item.value\"\n [disabled]=\"item.disabled\"\n (click)=\"handleItem(item, menuItems)\"\n (keydown)=\"onItemKeydown($event, item, menuItems)\"\n >\n @if (item.icon) {\n <i [class]=\"iconClass(item)\" aria-hidden=\"true\"></i>\n }\n <span class=\"m-menu__label\">{{ item.label }}</span>\n @if (hasChildren(item)) {\n <i class=\"fas fa-chevron-down m-menu__chevron\" aria-hidden=\"true\"></i>\n }\n </button>\n\n @if (hasChildren(item)) {\n <div\n class=\"m-menu__submenu\"\n [attr.inert]=\"isExpanded(item) ? null : ''\"\n [attr.aria-hidden]=\"isExpanded(item) ? null : 'true'\"\n >\n <div class=\"m-menu__submenu-inner\">\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{\n $implicit: item.items ?? [],\n level: level + 1,\n }\"\n />\n </div>\n </div>\n }\n </li>\n }\n </ul>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
2835
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MMenu, isStandalone: true, selector: "m-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, expandedValues: { classPropertyName: "expandedValues", publicName: "expandedValues", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", 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 } }, outputs: { itemClick: "itemClick", expandedValuesChange: "expandedValuesChange" }, host: { properties: { "class.m-menu-host--sm": "size() === 'sm'", "class.m-menu-host--md": "size() === 'md'", "class.m-menu-host--lg": "size() === 'lg'" }, classAttribute: "m-menu-host" }, ngImport: i0, template: "<nav\n class=\"m-menu\"\n [class.m-menu--sm]=\"size() === 'sm'\"\n [class.m-menu--md]=\"size() === 'md'\"\n [class.m-menu--lg]=\"size() === 'lg'\"\n [class.m-menu--scrollable]=\"scrollable()\"\n [style.max-height]=\"scrollHeight() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: items(), level: 0 }\"\n />\n</nav>\n\n<ng-template #menuList let-menuItems let-level=\"level\">\n <ul\n class=\"m-menu__list\"\n role=\"list\"\n [class.m-menu__list--root]=\"level === 0\"\n [attr.data-level]=\"level\"\n >\n @for (item of menuItems; track menuItemTrack(item)) {\n <li\n class=\"m-menu__entry\"\n [class.m-menu__entry--expanded]=\"isExpanded(item)\"\n [class.m-menu__entry--disabled]=\"item.disabled\"\n >\n <button\n class=\"m-menu__item\"\n type=\"button\"\n [class.m-menu__item--active]=\"isSelected(item)\"\n [class.m-menu__item--parent]=\"hasChildren(item)\"\n [style.--m-menu-level]=\"level\"\n [attr.aria-current]=\"isSelected(item) ? 'page' : null\"\n [attr.aria-expanded]=\"hasChildren(item) ? isExpanded(item) : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-menu-value]=\"item.value\"\n [disabled]=\"item.disabled\"\n (click)=\"handleItem(item, menuItems)\"\n (keydown)=\"onItemKeydown($event, item, menuItems)\"\n >\n @if (item.icon) {\n <m-icon class=\"m-menu__icon\" [name]=\"item.icon\" />\n }\n <span class=\"m-menu__label\">{{ item.label }}</span>\n @if (hasChildren(item)) {\n <m-icon name=\"chevron-down\" class=\"m-menu__chevron\" />\n }\n </button>\n\n @if (hasChildren(item)) {\n <div\n class=\"m-menu__submenu\"\n [attr.inert]=\"isExpanded(item) ? null : ''\"\n [attr.aria-hidden]=\"isExpanded(item) ? null : 'true'\"\n >\n <div class=\"m-menu__submenu-inner\">\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{\n $implicit: item.items ?? [],\n level: level + 1,\n }\"\n />\n </div>\n </div>\n }\n </li>\n }\n </ul>\n</ng-template>\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 });
2712
2836
  }
2713
2837
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MMenu, decorators: [{
2714
2838
  type: Component,
2715
- args: [{ selector: "m-menu", imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.Eager, host: {
2839
+ args: [{ selector: "m-menu", imports: [MIcon, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.Eager, host: {
2716
2840
  class: "m-menu-host",
2717
2841
  "[class.m-menu-host--sm]": "size() === 'sm'",
2718
2842
  "[class.m-menu-host--md]": "size() === 'md'",
2719
2843
  "[class.m-menu-host--lg]": "size() === 'lg'",
2720
- }, template: "<nav\n class=\"m-menu\"\n [class.m-menu--sm]=\"size() === 'sm'\"\n [class.m-menu--md]=\"size() === 'md'\"\n [class.m-menu--lg]=\"size() === 'lg'\"\n [class.m-menu--scrollable]=\"scrollable()\"\n [style.max-height]=\"scrollHeight() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: items(), level: 0 }\"\n />\n</nav>\n\n<ng-template #menuList let-menuItems let-level=\"level\">\n <ul\n class=\"m-menu__list\"\n role=\"list\"\n [class.m-menu__list--root]=\"level === 0\"\n [attr.data-level]=\"level\"\n >\n @for (item of menuItems; track menuItemTrack(item)) {\n <li\n class=\"m-menu__entry\"\n [class.m-menu__entry--expanded]=\"isExpanded(item)\"\n [class.m-menu__entry--disabled]=\"item.disabled\"\n >\n <button\n class=\"m-menu__item\"\n type=\"button\"\n [class.m-menu__item--active]=\"isSelected(item)\"\n [class.m-menu__item--parent]=\"hasChildren(item)\"\n [style.--m-menu-level]=\"level\"\n [attr.aria-current]=\"isSelected(item) ? 'page' : null\"\n [attr.aria-expanded]=\"hasChildren(item) ? isExpanded(item) : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-menu-value]=\"item.value\"\n [disabled]=\"item.disabled\"\n (click)=\"handleItem(item, menuItems)\"\n (keydown)=\"onItemKeydown($event, item, menuItems)\"\n >\n @if (item.icon) {\n <i [class]=\"iconClass(item)\" aria-hidden=\"true\"></i>\n }\n <span class=\"m-menu__label\">{{ item.label }}</span>\n @if (hasChildren(item)) {\n <i class=\"fas fa-chevron-down m-menu__chevron\" aria-hidden=\"true\"></i>\n }\n </button>\n\n @if (hasChildren(item)) {\n <div\n class=\"m-menu__submenu\"\n [attr.inert]=\"isExpanded(item) ? null : ''\"\n [attr.aria-hidden]=\"isExpanded(item) ? null : 'true'\"\n >\n <div class=\"m-menu__submenu-inner\">\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{\n $implicit: item.items ?? [],\n level: level + 1,\n }\"\n />\n </div>\n </div>\n }\n </li>\n }\n </ul>\n</ng-template>\n" }]
2844
+ }, template: "<nav\n class=\"m-menu\"\n [class.m-menu--sm]=\"size() === 'sm'\"\n [class.m-menu--md]=\"size() === 'md'\"\n [class.m-menu--lg]=\"size() === 'lg'\"\n [class.m-menu--scrollable]=\"scrollable()\"\n [style.max-height]=\"scrollHeight() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{ $implicit: items(), level: 0 }\"\n />\n</nav>\n\n<ng-template #menuList let-menuItems let-level=\"level\">\n <ul\n class=\"m-menu__list\"\n role=\"list\"\n [class.m-menu__list--root]=\"level === 0\"\n [attr.data-level]=\"level\"\n >\n @for (item of menuItems; track menuItemTrack(item)) {\n <li\n class=\"m-menu__entry\"\n [class.m-menu__entry--expanded]=\"isExpanded(item)\"\n [class.m-menu__entry--disabled]=\"item.disabled\"\n >\n <button\n class=\"m-menu__item\"\n type=\"button\"\n [class.m-menu__item--active]=\"isSelected(item)\"\n [class.m-menu__item--parent]=\"hasChildren(item)\"\n [style.--m-menu-level]=\"level\"\n [attr.aria-current]=\"isSelected(item) ? 'page' : null\"\n [attr.aria-expanded]=\"hasChildren(item) ? isExpanded(item) : null\"\n [attr.aria-disabled]=\"item.disabled ? true : null\"\n [attr.data-menu-value]=\"item.value\"\n [disabled]=\"item.disabled\"\n (click)=\"handleItem(item, menuItems)\"\n (keydown)=\"onItemKeydown($event, item, menuItems)\"\n >\n @if (item.icon) {\n <m-icon class=\"m-menu__icon\" [name]=\"item.icon\" />\n }\n <span class=\"m-menu__label\">{{ item.label }}</span>\n @if (hasChildren(item)) {\n <m-icon name=\"chevron-down\" class=\"m-menu__chevron\" />\n }\n </button>\n\n @if (hasChildren(item)) {\n <div\n class=\"m-menu__submenu\"\n [attr.inert]=\"isExpanded(item) ? null : ''\"\n [attr.aria-hidden]=\"isExpanded(item) ? null : 'true'\"\n >\n <div class=\"m-menu__submenu-inner\">\n <ng-container\n [ngTemplateOutlet]=\"menuList\"\n [ngTemplateOutletContext]=\"{\n $implicit: item.items ?? [],\n level: level + 1,\n }\"\n />\n </div>\n </div>\n }\n </li>\n }\n </ul>\n</ng-template>\n" }]
2721
2845
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], selectedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValue", required: false }] }], expandedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedValues", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], expandedValuesChange: [{ type: i0.Output, args: ["expandedValuesChange"] }] } });
2722
2846
  function normalizeUrl(url) {
2723
2847
  if (!url) {
@@ -2933,11 +3057,11 @@ class MMenuSearch {
2933
3057
  this.close();
2934
3058
  }
2935
3059
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MMenuSearch, deps: [], target: i0.ɵɵFactoryTarget.Component });
2936
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MMenuSearch, isStandalone: true, selector: "m-menu-search", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showAllOnEmpty: { classPropertyName: "showAllOnEmpty", publicName: "showAllOnEmpty", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemSelect: "itemSelect" }, host: { classAttribute: "m-menu-search-host" }, viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"m-input-wrapper\">\n <i class=\"fas fa-search m-input-wrapper__icon\" aria-hidden=\"true\"></i>\n <input\n #searchInput\n mInput\n class=\"m-menu-search__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"tree\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"panelVisible()\"\n [attr.aria-controls]=\"panelVisible() ? treeId : null\"\n [attr.aria-activedescendant]=\"panelVisible() ? activeId() : null\"\n [mInputSize]=\"size()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [value]=\"query()\"\n (input)=\"search(searchInput.value)\"\n (focus)=\"open()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (query()) {\n <button\n type=\"button\"\n class=\"m-input-wrapper__action\"\n aria-label=\"Clear search\"\n title=\"Clear search\"\n [disabled]=\"disabled()\"\n (click)=\"clear()\"\n >\n <i class=\"fas fa-times\" aria-hidden=\"true\"></i>\n </button>\n }\n</div>\n@if (inline() && panelVisible()) {\n<ng-container [ngTemplateOutlet]=\"panel\" />\n}\n<ng-template #panel>\n <div\n class=\"m-menu-search__panel\"\n [class.m-menu-search__panel--inline]=\"inline()\"\n [class.m-menu-search__panel--sm]=\"size() === 'sm'\"\n [class.m-menu-search__panel--lg]=\"size() === 'lg'\"\n >\n <div role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel()\">\n @for (result of results(); track result.key; let index = $index) {\n <div\n role=\"treeitem\"\n [id]=\"result.key\"\n [attr.aria-level]=\"result.depth\"\n [attr.aria-expanded]=\"result.branch ? true : null\"\n [attr.aria-disabled]=\"!result.selectable\"\n [attr.aria-selected]=\"result.selectable ? active() === index : null\"\n class=\"m-menu-search__item\"\n [class.m-menu-search__item--active]=\"result.selectable && active() === index\"\n [class.m-menu-search__item--group]=\"!result.selectable\"\n [class.m-menu-search__item--disabled]=\"result.disabled\"\n [style.--m-menu-search-depth]=\"result.depth - 1\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"select(result)\"\n >\n @if (result.item.icon) {\n <i [class]=\"result.item.icon\" aria-hidden=\"true\"></i> }\n <span>{{ result.item.label || result.item.value }}</span>\n </div>\n }\n </div>\n @if (!results().length) {\n <div class=\"m-menu-search__empty\" role=\"status\">{{ emptyMessage() }}</div>\n }\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: MInputDirective, selector: "input[mInput], textarea[mInput]", inputs: ["mInputSize", "mInputMask", "mInputRawValue"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
3060
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MMenuSearch, isStandalone: true, selector: "m-menu-search", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showAllOnEmpty: { classPropertyName: "showAllOnEmpty", publicName: "showAllOnEmpty", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemSelect: "itemSelect" }, host: { classAttribute: "m-menu-search-host" }, viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"m-input-wrapper\">\n <m-icon name=\"search\" class=\"m-input-wrapper__icon\" />\n <input\n #searchInput\n mInput\n class=\"m-menu-search__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"tree\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"panelVisible()\"\n [attr.aria-controls]=\"panelVisible() ? treeId : null\"\n [attr.aria-activedescendant]=\"panelVisible() ? activeId() : null\"\n [mInputSize]=\"size()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [value]=\"query()\"\n (input)=\"search(searchInput.value)\"\n (focus)=\"open()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (query()) {\n <button\n type=\"button\"\n class=\"m-input-wrapper__action\"\n aria-label=\"Clear search\"\n title=\"Clear search\"\n [disabled]=\"disabled()\"\n (click)=\"clear()\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n</div>\n@if (inline() && panelVisible()) {\n<ng-container [ngTemplateOutlet]=\"panel\" />\n}\n<ng-template #panel>\n <div\n class=\"m-menu-search__panel\"\n [class.m-menu-search__panel--inline]=\"inline()\"\n [class.m-menu-search__panel--sm]=\"size() === 'sm'\"\n [class.m-menu-search__panel--lg]=\"size() === 'lg'\"\n >\n <div role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel()\">\n @for (result of results(); track result.key; let index = $index) {\n <div\n role=\"treeitem\"\n [id]=\"result.key\"\n [attr.aria-level]=\"result.depth\"\n [attr.aria-expanded]=\"result.branch ? true : null\"\n [attr.aria-disabled]=\"!result.selectable\"\n [attr.aria-selected]=\"result.selectable ? active() === index : null\"\n class=\"m-menu-search__item\"\n [class.m-menu-search__item--active]=\"result.selectable && active() === index\"\n [class.m-menu-search__item--group]=\"!result.selectable\"\n [class.m-menu-search__item--disabled]=\"result.disabled\"\n [style.--m-menu-search-depth]=\"result.depth - 1\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"select(result)\"\n >\n @if (result.item.icon) {\n <m-icon [name]=\"result.item.icon\" /> }\n <span>{{ result.item.label || result.item.value }}</span>\n </div>\n }\n </div>\n @if (!results().length) {\n <div class=\"m-menu-search__empty\" role=\"status\">{{ emptyMessage() }}</div>\n }\n </div>\n</ng-template>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: MInputDirective, selector: "input[mInput], textarea[mInput]", inputs: ["mInputSize", "mInputMask", "mInputRawValue"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
2937
3061
  }
2938
3062
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MMenuSearch, decorators: [{
2939
3063
  type: Component,
2940
- args: [{ selector: "m-menu-search", imports: [MInputDirective, NgTemplateOutlet], host: { class: "m-menu-search-host" }, template: "<div class=\"m-input-wrapper\">\n <i class=\"fas fa-search m-input-wrapper__icon\" aria-hidden=\"true\"></i>\n <input\n #searchInput\n mInput\n class=\"m-menu-search__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"tree\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"panelVisible()\"\n [attr.aria-controls]=\"panelVisible() ? treeId : null\"\n [attr.aria-activedescendant]=\"panelVisible() ? activeId() : null\"\n [mInputSize]=\"size()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [value]=\"query()\"\n (input)=\"search(searchInput.value)\"\n (focus)=\"open()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (query()) {\n <button\n type=\"button\"\n class=\"m-input-wrapper__action\"\n aria-label=\"Clear search\"\n title=\"Clear search\"\n [disabled]=\"disabled()\"\n (click)=\"clear()\"\n >\n <i class=\"fas fa-times\" aria-hidden=\"true\"></i>\n </button>\n }\n</div>\n@if (inline() && panelVisible()) {\n<ng-container [ngTemplateOutlet]=\"panel\" />\n}\n<ng-template #panel>\n <div\n class=\"m-menu-search__panel\"\n [class.m-menu-search__panel--inline]=\"inline()\"\n [class.m-menu-search__panel--sm]=\"size() === 'sm'\"\n [class.m-menu-search__panel--lg]=\"size() === 'lg'\"\n >\n <div role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel()\">\n @for (result of results(); track result.key; let index = $index) {\n <div\n role=\"treeitem\"\n [id]=\"result.key\"\n [attr.aria-level]=\"result.depth\"\n [attr.aria-expanded]=\"result.branch ? true : null\"\n [attr.aria-disabled]=\"!result.selectable\"\n [attr.aria-selected]=\"result.selectable ? active() === index : null\"\n class=\"m-menu-search__item\"\n [class.m-menu-search__item--active]=\"result.selectable && active() === index\"\n [class.m-menu-search__item--group]=\"!result.selectable\"\n [class.m-menu-search__item--disabled]=\"result.disabled\"\n [style.--m-menu-search-depth]=\"result.depth - 1\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"select(result)\"\n >\n @if (result.item.icon) {\n <i [class]=\"result.item.icon\" aria-hidden=\"true\"></i> }\n <span>{{ result.item.label || result.item.value }}</span>\n </div>\n }\n </div>\n @if (!results().length) {\n <div class=\"m-menu-search__empty\" role=\"status\">{{ emptyMessage() }}</div>\n }\n </div>\n</ng-template>\n" }]
3064
+ args: [{ selector: "m-menu-search", imports: [MIcon, MInputDirective, NgTemplateOutlet], host: { class: "m-menu-search-host" }, template: "<div class=\"m-input-wrapper\">\n <m-icon name=\"search\" class=\"m-input-wrapper__icon\" />\n <input\n #searchInput\n mInput\n class=\"m-menu-search__input\"\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"tree\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"panelVisible()\"\n [attr.aria-controls]=\"panelVisible() ? treeId : null\"\n [attr.aria-activedescendant]=\"panelVisible() ? activeId() : null\"\n [mInputSize]=\"size()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [value]=\"query()\"\n (input)=\"search(searchInput.value)\"\n (focus)=\"open()\"\n (keydown)=\"onKeydown($event)\"\n />\n @if (query()) {\n <button\n type=\"button\"\n class=\"m-input-wrapper__action\"\n aria-label=\"Clear search\"\n title=\"Clear search\"\n [disabled]=\"disabled()\"\n (click)=\"clear()\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n</div>\n@if (inline() && panelVisible()) {\n<ng-container [ngTemplateOutlet]=\"panel\" />\n}\n<ng-template #panel>\n <div\n class=\"m-menu-search__panel\"\n [class.m-menu-search__panel--inline]=\"inline()\"\n [class.m-menu-search__panel--sm]=\"size() === 'sm'\"\n [class.m-menu-search__panel--lg]=\"size() === 'lg'\"\n >\n <div role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel()\">\n @for (result of results(); track result.key; let index = $index) {\n <div\n role=\"treeitem\"\n [id]=\"result.key\"\n [attr.aria-level]=\"result.depth\"\n [attr.aria-expanded]=\"result.branch ? true : null\"\n [attr.aria-disabled]=\"!result.selectable\"\n [attr.aria-selected]=\"result.selectable ? active() === index : null\"\n class=\"m-menu-search__item\"\n [class.m-menu-search__item--active]=\"result.selectable && active() === index\"\n [class.m-menu-search__item--group]=\"!result.selectable\"\n [class.m-menu-search__item--disabled]=\"result.disabled\"\n [style.--m-menu-search-depth]=\"result.depth - 1\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"select(result)\"\n >\n @if (result.item.icon) {\n <m-icon [name]=\"result.item.icon\" /> }\n <span>{{ result.item.label || result.item.value }}</span>\n </div>\n }\n </div>\n @if (!results().length) {\n <div class=\"m-menu-search__empty\" role=\"status\">{{ emptyMessage() }}</div>\n }\n </div>\n</ng-template>\n" }]
2941
3065
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], showAllOnEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAllOnEmpty", required: false }] }], itemSelect: [{ type: i0.Output, args: ["itemSelect"] }], panel: [{ type: i0.ViewChild, args: ["panel", { isSignal: true }] }], searchInput: [{ type: i0.ViewChild, args: ["searchInput", { isSignal: true }] }] } });
2942
3066
 
2943
3067
  class MCommandMenu {
@@ -3015,19 +3139,19 @@ class MCommandMenu {
3015
3139
  title="Close search"
3016
3140
  (click)="close()"
3017
3141
  >
3018
- <i class="fas fa-xmark" aria-hidden="true"></i>
3142
+ <m-icon name="x" />
3019
3143
  </button>
3020
3144
  </div>
3021
3145
  </ng-template>
3022
3146
  </m-dialog>
3023
3147
  }
3024
- `, isInline: true, 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: MMenuSearch, selector: "m-menu-search", inputs: ["items", "placeholder", "emptyMessage", "ariaLabel", "size", "disabled", "inline", "showAllOnEmpty"], outputs: ["itemSelect"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
3148
+ `, isInline: true, dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { 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: MMenuSearch, selector: "m-menu-search", inputs: ["items", "placeholder", "emptyMessage", "ariaLabel", "size", "disabled", "inline", "showAllOnEmpty"], outputs: ["itemSelect"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
3025
3149
  }
3026
3150
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MCommandMenu, decorators: [{
3027
3151
  type: Component,
3028
3152
  args: [{
3029
3153
  selector: "m-command-menu",
3030
- imports: [MDialog, MMenuSearch, A11yModule],
3154
+ imports: [MIcon, MDialog, MMenuSearch, A11yModule],
3031
3155
  template: `
3032
3156
  @if (visible()) {
3033
3157
  <m-dialog
@@ -3060,7 +3184,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
3060
3184
  title="Close search"
3061
3185
  (click)="close()"
3062
3186
  >
3063
- <i class="fas fa-xmark" aria-hidden="true"></i>
3187
+ <m-icon name="x" />
3064
3188
  </button>
3065
3189
  </div>
3066
3190
  </ng-template>
@@ -3214,11 +3338,11 @@ class MTieredMenu {
3214
3338
  this.itemClick.emit(item);
3215
3339
  }
3216
3340
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MTieredMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
3217
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MTieredMenu, isStandalone: true, selector: "m-tiered-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.m-tiered-menu-host--icon-only": "iconOnly()", "class.m-tiered-menu-host--popup": "popup()" }, classAttribute: "m-tiered-menu-host" }, viewQueries: [{ propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (!popup()) {\n<div\n cdkMenu\n class=\"m-tiered-menu\"\n [class.m-tiered-menu--sm]=\"size() === 'sm'\"\n [class.m-tiered-menu--lg]=\"size() === 'lg'\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n @for (item of items(); track item.value) {\n <button\n type=\"button\"\n cdkMenuItem\n class=\"m-tiered-menu__item\"\n [class.m-tiered-menu__item--active]=\"selectedValue() === item.value\"\n [cdkMenuItemDisabled]=\"!!item.disabled\"\n [disabled]=\"!!item.disabled\"\n [attr.aria-label]=\"iconOnly() ? (item.label || item.value) : null\"\n [attr.title]=\"iconOnly() ? (item.label || item.value) : null\"\n [cdkMenuitemTypeaheadLabel]=\"item.label || item.value\"\n [cdkMenuTriggerFor]=\"item.items?.length ? submenu : null\"\n [cdkMenuPosition]=\"positions\"\n (cdkMenuItemTriggered)=\"activate(item)\"\n >\n @if (item.icon || iconOnly()) {\n <i\n class=\"m-tiered-menu__icon\"\n [class]=\"'m-tiered-menu__icon ' + (item.icon || 'fas fa-circle')\"\n aria-hidden=\"true\"\n ></i>\n } @if (!iconOnly()) {\n <span class=\"m-tiered-menu__label\">{{ item.label || item.value }}</span>\n } @if (item.items?.length && !iconOnly()) {\n <i class=\"fas fa-chevron-right m-tiered-menu__arrow\" aria-hidden=\"true\"></i>\n }\n </button>\n <ng-template #submenu>\n <m-tiered-menu\n [items]=\"item.items || []\"\n [selectedValue]=\"selectedValue()\"\n [size]=\"size()\"\n [ariaLabel]=\"item.label || item.value\"\n (itemClick)=\"itemClick.emit($event)\"\n />\n </ng-template>\n }\n</div>\n}\n<ng-template #popupTemplate>\n <m-tiered-menu\n [items]=\"items()\"\n [selectedValue]=\"selectedValue()\"\n [size]=\"size()\"\n [iconOnly]=\"iconOnly()\"\n [ariaLabel]=\"ariaLabel()\"\n (itemClick)=\"selectPopupItem($event)\"\n />\n</ng-template>\n", dependencies: [{ kind: "component", type: i0.forwardRef(() => MTieredMenu), selector: "m-tiered-menu", inputs: ["items", "selectedValue", "size", "iconOnly", "popup", "ariaLabel"], outputs: ["itemClick"] }, { kind: "directive", type: i0.forwardRef(() => CdkMenu), selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "directive", type: i0.forwardRef(() => CdkMenuItem), selector: "[cdkMenuItem]", inputs: ["cdkMenuItemDisabled", "cdkMenuitemTypeaheadLabel"], outputs: ["cdkMenuItemTriggered"], exportAs: ["cdkMenuItem"] }, { kind: "directive", type: i0.forwardRef(() => CdkMenuTrigger), selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData", "cdkMenuTriggerTransformOriginOn"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }] });
3341
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MTieredMenu, isStandalone: true, selector: "m-tiered-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.m-tiered-menu-host--icon-only": "iconOnly()", "class.m-tiered-menu-host--popup": "popup()" }, classAttribute: "m-tiered-menu-host" }, viewQueries: [{ propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (!popup()) {\n<div\n cdkMenu\n class=\"m-tiered-menu\"\n [class.m-tiered-menu--sm]=\"size() === 'sm'\"\n [class.m-tiered-menu--lg]=\"size() === 'lg'\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n @for (item of items(); track item.value) {\n <button\n type=\"button\"\n cdkMenuItem\n class=\"m-tiered-menu__item\"\n [class.m-tiered-menu__item--active]=\"selectedValue() === item.value\"\n [cdkMenuItemDisabled]=\"!!item.disabled\"\n [disabled]=\"!!item.disabled\"\n [attr.aria-label]=\"iconOnly() ? (item.label || item.value) : null\"\n [attr.title]=\"iconOnly() ? (item.label || item.value) : null\"\n [cdkMenuitemTypeaheadLabel]=\"item.label || item.value\"\n [cdkMenuTriggerFor]=\"item.items?.length ? submenu : null\"\n [cdkMenuPosition]=\"positions\"\n (cdkMenuItemTriggered)=\"activate(item)\"\n >\n @if (item.icon || iconOnly()) {\n @if (item.icon) {\n <m-icon class=\"m-tiered-menu__icon\" [name]=\"item.icon\" />\n } @else {\n <span class=\"m-tiered-menu__icon m-tiered-menu__dot\" aria-hidden=\"true\"></span>\n }\n } @if (!iconOnly()) {\n <span class=\"m-tiered-menu__label\">{{ item.label || item.value }}</span>\n } @if (item.items?.length && !iconOnly()) {\n <m-icon name=\"chevron-right\" class=\"m-tiered-menu__arrow\" />\n }\n </button>\n <ng-template #submenu>\n <m-tiered-menu\n [items]=\"item.items || []\"\n [selectedValue]=\"selectedValue()\"\n [size]=\"size()\"\n [ariaLabel]=\"item.label || item.value\"\n (itemClick)=\"itemClick.emit($event)\"\n />\n </ng-template>\n }\n</div>\n}\n<ng-template #popupTemplate>\n <m-tiered-menu\n [items]=\"items()\"\n [selectedValue]=\"selectedValue()\"\n [size]=\"size()\"\n [iconOnly]=\"iconOnly()\"\n [ariaLabel]=\"ariaLabel()\"\n (itemClick)=\"selectPopupItem($event)\"\n />\n</ng-template>\n", dependencies: [{ kind: "component", type: i0.forwardRef(() => MTieredMenu), selector: "m-tiered-menu", inputs: ["items", "selectedValue", "size", "iconOnly", "popup", "ariaLabel"], outputs: ["itemClick"] }, { kind: "component", type: i0.forwardRef(() => MIcon), selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: i0.forwardRef(() => CdkMenu), selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "directive", type: i0.forwardRef(() => CdkMenuItem), selector: "[cdkMenuItem]", inputs: ["cdkMenuItemDisabled", "cdkMenuitemTypeaheadLabel"], outputs: ["cdkMenuItemTriggered"], exportAs: ["cdkMenuItem"] }, { kind: "directive", type: i0.forwardRef(() => CdkMenuTrigger), selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData", "cdkMenuTriggerTransformOriginOn"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }] });
3218
3342
  }
3219
3343
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MTieredMenu, decorators: [{
3220
3344
  type: Component,
3221
- args: [{ selector: "m-tiered-menu", imports: [
3345
+ args: [{ selector: "m-tiered-menu", imports: [MIcon,
3222
3346
  CdkMenu,
3223
3347
  CdkMenuItem,
3224
3348
  CdkMenuTrigger,
@@ -3227,7 +3351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
3227
3351
  class: "m-tiered-menu-host",
3228
3352
  "[class.m-tiered-menu-host--icon-only]": "iconOnly()",
3229
3353
  "[class.m-tiered-menu-host--popup]": "popup()",
3230
- }, template: "@if (!popup()) {\n<div\n cdkMenu\n class=\"m-tiered-menu\"\n [class.m-tiered-menu--sm]=\"size() === 'sm'\"\n [class.m-tiered-menu--lg]=\"size() === 'lg'\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n @for (item of items(); track item.value) {\n <button\n type=\"button\"\n cdkMenuItem\n class=\"m-tiered-menu__item\"\n [class.m-tiered-menu__item--active]=\"selectedValue() === item.value\"\n [cdkMenuItemDisabled]=\"!!item.disabled\"\n [disabled]=\"!!item.disabled\"\n [attr.aria-label]=\"iconOnly() ? (item.label || item.value) : null\"\n [attr.title]=\"iconOnly() ? (item.label || item.value) : null\"\n [cdkMenuitemTypeaheadLabel]=\"item.label || item.value\"\n [cdkMenuTriggerFor]=\"item.items?.length ? submenu : null\"\n [cdkMenuPosition]=\"positions\"\n (cdkMenuItemTriggered)=\"activate(item)\"\n >\n @if (item.icon || iconOnly()) {\n <i\n class=\"m-tiered-menu__icon\"\n [class]=\"'m-tiered-menu__icon ' + (item.icon || 'fas fa-circle')\"\n aria-hidden=\"true\"\n ></i>\n } @if (!iconOnly()) {\n <span class=\"m-tiered-menu__label\">{{ item.label || item.value }}</span>\n } @if (item.items?.length && !iconOnly()) {\n <i class=\"fas fa-chevron-right m-tiered-menu__arrow\" aria-hidden=\"true\"></i>\n }\n </button>\n <ng-template #submenu>\n <m-tiered-menu\n [items]=\"item.items || []\"\n [selectedValue]=\"selectedValue()\"\n [size]=\"size()\"\n [ariaLabel]=\"item.label || item.value\"\n (itemClick)=\"itemClick.emit($event)\"\n />\n </ng-template>\n }\n</div>\n}\n<ng-template #popupTemplate>\n <m-tiered-menu\n [items]=\"items()\"\n [selectedValue]=\"selectedValue()\"\n [size]=\"size()\"\n [iconOnly]=\"iconOnly()\"\n [ariaLabel]=\"ariaLabel()\"\n (itemClick)=\"selectPopupItem($event)\"\n />\n</ng-template>\n" }]
3354
+ }, template: "@if (!popup()) {\n<div\n cdkMenu\n class=\"m-tiered-menu\"\n [class.m-tiered-menu--sm]=\"size() === 'sm'\"\n [class.m-tiered-menu--lg]=\"size() === 'lg'\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n @for (item of items(); track item.value) {\n <button\n type=\"button\"\n cdkMenuItem\n class=\"m-tiered-menu__item\"\n [class.m-tiered-menu__item--active]=\"selectedValue() === item.value\"\n [cdkMenuItemDisabled]=\"!!item.disabled\"\n [disabled]=\"!!item.disabled\"\n [attr.aria-label]=\"iconOnly() ? (item.label || item.value) : null\"\n [attr.title]=\"iconOnly() ? (item.label || item.value) : null\"\n [cdkMenuitemTypeaheadLabel]=\"item.label || item.value\"\n [cdkMenuTriggerFor]=\"item.items?.length ? submenu : null\"\n [cdkMenuPosition]=\"positions\"\n (cdkMenuItemTriggered)=\"activate(item)\"\n >\n @if (item.icon || iconOnly()) {\n @if (item.icon) {\n <m-icon class=\"m-tiered-menu__icon\" [name]=\"item.icon\" />\n } @else {\n <span class=\"m-tiered-menu__icon m-tiered-menu__dot\" aria-hidden=\"true\"></span>\n }\n } @if (!iconOnly()) {\n <span class=\"m-tiered-menu__label\">{{ item.label || item.value }}</span>\n } @if (item.items?.length && !iconOnly()) {\n <m-icon name=\"chevron-right\" class=\"m-tiered-menu__arrow\" />\n }\n </button>\n <ng-template #submenu>\n <m-tiered-menu\n [items]=\"item.items || []\"\n [selectedValue]=\"selectedValue()\"\n [size]=\"size()\"\n [ariaLabel]=\"item.label || item.value\"\n (itemClick)=\"itemClick.emit($event)\"\n />\n </ng-template>\n }\n</div>\n}\n<ng-template #popupTemplate>\n <m-tiered-menu\n [items]=\"items()\"\n [selectedValue]=\"selectedValue()\"\n [size]=\"size()\"\n [iconOnly]=\"iconOnly()\"\n [ariaLabel]=\"ariaLabel()\"\n (itemClick)=\"selectPopupItem($event)\"\n />\n</ng-template>\n" }]
3231
3355
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], selectedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValue", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], popup: [{ type: i0.Input, args: [{ isSignal: true, alias: "popup", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], popupTemplate: [{ type: i0.ViewChild, args: ["popupTemplate", { isSignal: true }] }] } });
3232
3356
 
3233
3357
  let nextMultiSelectId = 0;
@@ -3532,14 +3656,14 @@ class MMultiSelect {
3532
3656
  Object.is(firstKey, secondKey));
3533
3657
  }
3534
3658
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MMultiSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
3535
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MMultiSelect, isStandalone: true, selector: "m-multi-select", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, selectedItemsLabel: { classPropertyName: "selectedItemsLabel", publicName: "selectedItemsLabel", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, clear: { classPropertyName: "clear", publicName: "clear", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valuesChange: "valuesChange", onChange: "onChange" }, host: { listeners: { "window:m-panel-open": "onOtherPanelOpen($event)", "document:click": "onDocumentClick($event)", "document:keydown.escape": "onEscape()" }, properties: { "class.m-multi-select-host--disabled": "isDisabled()" }, classAttribute: "m-multi-select-host" }, providers: [provideValueAccessor(() => MMultiSelect)], viewQueries: [{ propertyName: "panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"m-multi-select-wrapper\"\n [class.m-multi-select-wrapper--open]=\"panelOpen()\"\n [class.m-multi-select-wrapper--clear]=\"canClear()\"\n>\n <button\n class=\"m-control m-multi-select\"\n type=\"button\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-expanded]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-multi-select__value\"\n [class.m-multi-select__value--placeholder]=\"selectedValues().length === 0\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-multi-select__clear\"\n type=\"button\"\n aria-label=\"Clear selection\"\n (click)=\"clearSelection($event)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n\n <i class=\"fas fa-chevron-down m-multi-select__chevron\" aria-hidden=\"true\"></i>\n\n @for (value of selectedValues(); track value) {\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"value\" />\n }\n }\n\n @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-multi-select-panel\"\n [class.m-multi-select-panel--overlay]=\"appendTo() === 'body'\"\n >\n @if (filter()) {\n <input\n class=\"m-multi-select-filter\"\n type=\"text\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"filterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n }\n\n <div\n class=\"m-multi-select-list\"\n [class.m-multi-select-list--virtual]=\"virtualScroll()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n aria-multiselectable=\"true\"\n >\n @if (filteredOptions().length === 0) {\n <div class=\"m-multi-select-empty\">{{ emptyMessage() }}</div>\n } @else if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"m-multi-select-viewport\"\n [style.height]=\"viewportHeight()\"\n >\n <button\n *cdkVirtualFor=\"let option of filteredOptions(); trackBy: trackByOptionValue\"\n class=\"m-multi-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-multi-select-option--selected]=\"isSelected(option.value)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleOption(option, $event)\"\n >\n <span class=\"m-multi-select-option__box\" aria-hidden=\"true\">\n @if (isSelected(option.value)) {\n <i class=\"fas fa-check\"></i>\n }\n </span>\n <span>{{ option.label }}</span>\n </button>\n </cdk-virtual-scroll-viewport>\n } @else {\n @for (option of filteredOptions(); track option.value) {\n <button\n class=\"m-multi-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-multi-select-option--selected]=\"isSelected(option.value)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleOption(option, $event)\"\n >\n <span class=\"m-multi-select-option__box\" aria-hidden=\"true\">\n @if (isSelected(option.value)) {\n <i class=\"fas fa-check\"></i>\n }\n </span>\n <span>{{ option.label }}</span>\n </button>\n }\n }\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1$1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1$1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1$1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
3659
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MMultiSelect, isStandalone: true, selector: "m-multi-select", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, selectedItemsLabel: { classPropertyName: "selectedItemsLabel", publicName: "selectedItemsLabel", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, clear: { classPropertyName: "clear", publicName: "clear", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valuesChange: "valuesChange", onChange: "onChange" }, host: { listeners: { "window:m-panel-open": "onOtherPanelOpen($event)", "document:click": "onDocumentClick($event)", "document:keydown.escape": "onEscape()" }, properties: { "class.m-multi-select-host--disabled": "isDisabled()" }, classAttribute: "m-multi-select-host" }, providers: [provideValueAccessor(() => MMultiSelect)], viewQueries: [{ propertyName: "panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"m-multi-select-wrapper\"\n [class.m-multi-select-wrapper--open]=\"panelOpen()\"\n [class.m-multi-select-wrapper--clear]=\"canClear()\"\n>\n <button\n class=\"m-control m-multi-select\"\n type=\"button\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-expanded]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-multi-select__value\"\n [class.m-multi-select__value--placeholder]=\"selectedValues().length === 0\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-multi-select__clear\"\n type=\"button\"\n aria-label=\"Clear selection\"\n (click)=\"clearSelection($event)\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n\n <m-icon name=\"chevron-down\" class=\"m-multi-select__chevron\" />\n\n @for (value of selectedValues(); track value) {\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"value\" />\n }\n }\n\n @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-multi-select-panel\"\n [class.m-multi-select-panel--overlay]=\"appendTo() === 'body'\"\n >\n @if (filter()) {\n <input\n class=\"m-multi-select-filter\"\n type=\"text\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"filterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n }\n\n <div\n class=\"m-multi-select-list\"\n [class.m-multi-select-list--virtual]=\"virtualScroll()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n aria-multiselectable=\"true\"\n >\n @if (filteredOptions().length === 0) {\n <div class=\"m-multi-select-empty\">{{ emptyMessage() }}</div>\n } @else if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"m-multi-select-viewport\"\n [style.height]=\"viewportHeight()\"\n >\n <button\n *cdkVirtualFor=\"let option of filteredOptions(); trackBy: trackByOptionValue\"\n class=\"m-multi-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-multi-select-option--selected]=\"isSelected(option.value)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleOption(option, $event)\"\n >\n <span class=\"m-multi-select-option__box\" aria-hidden=\"true\">\n @if (isSelected(option.value)) {\n <m-icon name=\"check\" />\n }\n </span>\n <span>{{ option.label }}</span>\n </button>\n </cdk-virtual-scroll-viewport>\n } @else {\n @for (option of filteredOptions(); track option.value) {\n <button\n class=\"m-multi-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-multi-select-option--selected]=\"isSelected(option.value)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleOption(option, $event)\"\n >\n <span class=\"m-multi-select-option__box\" aria-hidden=\"true\">\n @if (isSelected(option.value)) {\n <m-icon name=\"check\" />\n }\n </span>\n <span>{{ option.label }}</span>\n </button>\n }\n }\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1$1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1$1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1$1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
3536
3660
  }
3537
3661
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MMultiSelect, decorators: [{
3538
3662
  type: Component,
3539
- args: [{ selector: "m-multi-select", imports: [ScrollingModule, NgTemplateOutlet], providers: [provideValueAccessor(() => MMultiSelect)], changeDetection: ChangeDetectionStrategy.Eager, host: {
3663
+ args: [{ selector: "m-multi-select", imports: [MIcon, ScrollingModule, NgTemplateOutlet], providers: [provideValueAccessor(() => MMultiSelect)], changeDetection: ChangeDetectionStrategy.Eager, host: {
3540
3664
  class: "m-multi-select-host",
3541
3665
  "[class.m-multi-select-host--disabled]": "isDisabled()",
3542
- }, template: "<span\n class=\"m-multi-select-wrapper\"\n [class.m-multi-select-wrapper--open]=\"panelOpen()\"\n [class.m-multi-select-wrapper--clear]=\"canClear()\"\n>\n <button\n class=\"m-control m-multi-select\"\n type=\"button\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-expanded]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-multi-select__value\"\n [class.m-multi-select__value--placeholder]=\"selectedValues().length === 0\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-multi-select__clear\"\n type=\"button\"\n aria-label=\"Clear selection\"\n (click)=\"clearSelection($event)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n\n <i class=\"fas fa-chevron-down m-multi-select__chevron\" aria-hidden=\"true\"></i>\n\n @for (value of selectedValues(); track value) {\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"value\" />\n }\n }\n\n @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-multi-select-panel\"\n [class.m-multi-select-panel--overlay]=\"appendTo() === 'body'\"\n >\n @if (filter()) {\n <input\n class=\"m-multi-select-filter\"\n type=\"text\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"filterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n }\n\n <div\n class=\"m-multi-select-list\"\n [class.m-multi-select-list--virtual]=\"virtualScroll()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n aria-multiselectable=\"true\"\n >\n @if (filteredOptions().length === 0) {\n <div class=\"m-multi-select-empty\">{{ emptyMessage() }}</div>\n } @else if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"m-multi-select-viewport\"\n [style.height]=\"viewportHeight()\"\n >\n <button\n *cdkVirtualFor=\"let option of filteredOptions(); trackBy: trackByOptionValue\"\n class=\"m-multi-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-multi-select-option--selected]=\"isSelected(option.value)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleOption(option, $event)\"\n >\n <span class=\"m-multi-select-option__box\" aria-hidden=\"true\">\n @if (isSelected(option.value)) {\n <i class=\"fas fa-check\"></i>\n }\n </span>\n <span>{{ option.label }}</span>\n </button>\n </cdk-virtual-scroll-viewport>\n } @else {\n @for (option of filteredOptions(); track option.value) {\n <button\n class=\"m-multi-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-multi-select-option--selected]=\"isSelected(option.value)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleOption(option, $event)\"\n >\n <span class=\"m-multi-select-option__box\" aria-hidden=\"true\">\n @if (isSelected(option.value)) {\n <i class=\"fas fa-check\"></i>\n }\n </span>\n <span>{{ option.label }}</span>\n </button>\n }\n }\n </div>\n </div>\n</ng-template>\n" }]
3666
+ }, template: "<span\n class=\"m-multi-select-wrapper\"\n [class.m-multi-select-wrapper--open]=\"panelOpen()\"\n [class.m-multi-select-wrapper--clear]=\"canClear()\"\n>\n <button\n class=\"m-control m-multi-select\"\n type=\"button\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-expanded]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-multi-select__value\"\n [class.m-multi-select__value--placeholder]=\"selectedValues().length === 0\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-multi-select__clear\"\n type=\"button\"\n aria-label=\"Clear selection\"\n (click)=\"clearSelection($event)\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n\n <m-icon name=\"chevron-down\" class=\"m-multi-select__chevron\" />\n\n @for (value of selectedValues(); track value) {\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"value\" />\n }\n }\n\n @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-multi-select-panel\"\n [class.m-multi-select-panel--overlay]=\"appendTo() === 'body'\"\n >\n @if (filter()) {\n <input\n class=\"m-multi-select-filter\"\n type=\"text\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"filterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n }\n\n <div\n class=\"m-multi-select-list\"\n [class.m-multi-select-list--virtual]=\"virtualScroll()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n aria-multiselectable=\"true\"\n >\n @if (filteredOptions().length === 0) {\n <div class=\"m-multi-select-empty\">{{ emptyMessage() }}</div>\n } @else if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"m-multi-select-viewport\"\n [style.height]=\"viewportHeight()\"\n >\n <button\n *cdkVirtualFor=\"let option of filteredOptions(); trackBy: trackByOptionValue\"\n class=\"m-multi-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-multi-select-option--selected]=\"isSelected(option.value)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleOption(option, $event)\"\n >\n <span class=\"m-multi-select-option__box\" aria-hidden=\"true\">\n @if (isSelected(option.value)) {\n <m-icon name=\"check\" />\n }\n </span>\n <span>{{ option.label }}</span>\n </button>\n </cdk-virtual-scroll-viewport>\n } @else {\n @for (option of filteredOptions(); track option.value) {\n <button\n class=\"m-multi-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-multi-select-option--selected]=\"isSelected(option.value)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"toggleOption(option, $event)\"\n >\n <span class=\"m-multi-select-option__box\" aria-hidden=\"true\">\n @if (isSelected(option.value)) {\n <m-icon name=\"check\" />\n }\n </span>\n <span>{{ option.label }}</span>\n </button>\n }\n }\n </div>\n </div>\n</ng-template>\n" }]
3543
3667
  }], ctorParameters: () => [], propDecorators: { panelTemplate: [{ type: i0.ViewChild, args: ["panelTemplate", { isSignal: true }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], selectedItemsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItemsLabel", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], clear: [{ type: i0.Input, args: [{ isSignal: true, alias: "clear", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], valuesChange: [{ type: i0.Output, args: ["valuesChange"] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onOtherPanelOpen: [{
3544
3668
  type: HostListener,
3545
3669
  args: ["window:m-panel-open", ["$event"]]
@@ -3899,11 +4023,11 @@ class MPopover {
3899
4023
  this.closeCdkOverlay();
3900
4024
  }
3901
4025
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MPopover, deps: [], target: i0.ɵɵFactoryTarget.Component });
3902
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MPopover, isStandalone: true, selector: "m-popover", inputs: { dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, showCloseIcon: { classPropertyName: "showCloseIcon", publicName: "showCloseIcon", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, popoverClass: { classPropertyName: "popoverClass", publicName: "popoverClass", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "popoverStyleClass", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { listeners: { "document:keydown.escape": "onEscape($event)" } }, viewQueries: [{ propertyName: "panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }], exportAs: ["mPopover"], ngImport: i0, template: "@if (appendTo() === 'self' && visible()) {\n<ng-container *ngTemplateOutlet=\"panelTemplate\" />\n}\n\n<ng-template #panelTemplate>\n <div\n class=\"m-popover-panel\"\n [class.m-popover-panel--overlay]=\"appendTo() === 'body'\"\n [class]=\"panelClasses()\"\n [ngStyle]=\"parsedStyleObject()\"\n role=\"dialog\"\n aria-modal=\"false\"\n >\n @if (showCloseIcon()) {\n <button\n class=\"m-popover-close\"\n type=\"button\"\n aria-label=\"Close popover\"\n (click)=\"hide()\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n\n <div class=\"m-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
4026
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MPopover, isStandalone: true, selector: "m-popover", inputs: { dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, showCloseIcon: { classPropertyName: "showCloseIcon", publicName: "showCloseIcon", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, popoverClass: { classPropertyName: "popoverClass", publicName: "popoverClass", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "popoverStyleClass", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { listeners: { "document:keydown.escape": "onEscape($event)" } }, viewQueries: [{ propertyName: "panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }], exportAs: ["mPopover"], ngImport: i0, template: "@if (appendTo() === 'self' && visible()) {\n<ng-container *ngTemplateOutlet=\"panelTemplate\" />\n}\n\n<ng-template #panelTemplate>\n <div\n class=\"m-popover-panel\"\n [class.m-popover-panel--overlay]=\"appendTo() === 'body'\"\n [class]=\"panelClasses()\"\n [ngStyle]=\"parsedStyleObject()\"\n role=\"dialog\"\n aria-modal=\"false\"\n >\n @if (showCloseIcon()) {\n <button\n class=\"m-popover-close\"\n type=\"button\"\n aria-label=\"Close popover\"\n (click)=\"hide()\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n\n <div class=\"m-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
3903
4027
  }
3904
4028
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MPopover, decorators: [{
3905
4029
  type: Component,
3906
- args: [{ selector: "m-popover", imports: [NgTemplateOutlet, NgStyle], changeDetection: ChangeDetectionStrategy.Eager, exportAs: "mPopover", template: "@if (appendTo() === 'self' && visible()) {\n<ng-container *ngTemplateOutlet=\"panelTemplate\" />\n}\n\n<ng-template #panelTemplate>\n <div\n class=\"m-popover-panel\"\n [class.m-popover-panel--overlay]=\"appendTo() === 'body'\"\n [class]=\"panelClasses()\"\n [ngStyle]=\"parsedStyleObject()\"\n role=\"dialog\"\n aria-modal=\"false\"\n >\n @if (showCloseIcon()) {\n <button\n class=\"m-popover-close\"\n type=\"button\"\n aria-label=\"Close popover\"\n (click)=\"hide()\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n\n <div class=\"m-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n" }]
4030
+ args: [{ selector: "m-popover", imports: [MIcon, NgTemplateOutlet, NgStyle], changeDetection: ChangeDetectionStrategy.Eager, exportAs: "mPopover", template: "@if (appendTo() === 'self' && visible()) {\n<ng-container *ngTemplateOutlet=\"panelTemplate\" />\n}\n\n<ng-template #panelTemplate>\n <div\n class=\"m-popover-panel\"\n [class.m-popover-panel--overlay]=\"appendTo() === 'body'\"\n [class]=\"panelClasses()\"\n [ngStyle]=\"parsedStyleObject()\"\n role=\"dialog\"\n aria-modal=\"false\"\n >\n @if (showCloseIcon()) {\n <button\n class=\"m-popover-close\"\n type=\"button\"\n aria-label=\"Close popover\"\n (click)=\"hide()\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n\n <div class=\"m-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n" }]
3907
4031
  }], propDecorators: { panelTemplate: [{ type: i0.ViewChild, args: ["panelTemplate", { isSignal: true }] }], dismissable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissable", required: false }] }], showCloseIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseIcon", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], popoverClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "popoverClass", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "popoverStyleClass", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onEscape: [{
3908
4032
  type: HostListener,
3909
4033
  args: ["document:keydown.escape", ["$event"]]
@@ -4326,8 +4450,6 @@ class MSelect {
4326
4450
  ...(ngDevMode ? [{ debugName: "triggerLabelIsPlaceholder" }] : /* istanbul ignore next */ []));
4327
4451
  canClear = computed(() => this.clear() && this.hasValue() && !this.isDisabled(), /* @ts-ignore */
4328
4452
  ...(ngDevMode ? [{ debugName: "canClear" }] : /* istanbul ignore next */ []));
4329
- iconClass = computed(() => ["m-select-wrapper__icon", this.icon().trim()].filter(Boolean).join(" "), /* @ts-ignore */
4330
- ...(ngDevMode ? [{ debugName: "iconClass" }] : /* istanbul ignore next */ []));
4331
4453
  viewportHeight = computed(() => {
4332
4454
  const itemCount = this.filteredOptions().length;
4333
4455
  const itemSize = this.virtualScrollItemSize();
@@ -4595,16 +4717,16 @@ class MSelect {
4595
4717
  return false;
4596
4718
  }
4597
4719
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
4598
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MSelect, isStandalone: true, selector: "m-select", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, clear: { classPropertyName: "clear", publicName: "clear", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", onChange: "onChange" }, host: { listeners: { "window:m-panel-open": "onOtherPanelOpen($event)", "document:click": "onDocumentClick($event)", "document:keydown.escape": "onEscape()" }, properties: { "class.m-select-host--sm": "size() === 'sm'", "class.m-select-host--md": "size() === 'md'", "class.m-select-host--lg": "size() === 'lg'" }, classAttribute: "m-select-host" }, providers: [provideValueAccessor(() => MSelect)], viewQueries: [{ propertyName: "panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"m-select-wrapper m-select-wrapper--chevron\"\n [class.m-select-wrapper--sm]=\"size() === 'sm'\"\n [class.m-select-wrapper--md]=\"size() === 'md'\"\n [class.m-select-wrapper--lg]=\"size() === 'lg'\"\n [class.m-select-wrapper--icon]=\"icon()\"\n [class.m-select-wrapper--clear]=\"canClear()\"\n [class.m-select-wrapper--open]=\"panelOpen()\"\n>\n @if (icon()) {\n <i [class]=\"iconClass()\" aria-hidden=\"true\"></i>\n }\n\n <button\n class=\"m-control m-select\"\n type=\"button\"\n role=\"combobox\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-expanded]=\"panelOpen()\"\n aria-haspopup=\"listbox\"\n [attr.aria-required]=\"required() || null\"\n [class.m-control--sm]=\"size() === 'sm'\"\n [class.m-control--md]=\"size() === 'md'\"\n [class.m-control--lg]=\"size() === 'lg'\"\n [class.m-select--sm]=\"size() === 'sm'\"\n [class.m-select--md]=\"size() === 'md'\"\n [class.m-select--lg]=\"size() === 'lg'\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-select__value\"\n [class.m-select__value--placeholder]=\"triggerLabelIsPlaceholder()\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-select-wrapper__clear\"\n type=\"button\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clearSelection($event)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n\n <i\n class=\"fas fa-chevron-down m-select-wrapper__chevron\"\n aria-hidden=\"true\"\n ></i>\n\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"selectedValue()\" />\n } @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-select-panel\"\n [class.m-select-panel--overlay]=\"appendTo() === 'body'\"\n >\n @if (filter()) {\n <input\n class=\"m-select-filter\"\n type=\"text\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"filterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n }\n\n <div\n class=\"m-select-list\"\n [class.m-select-list--virtual]=\"virtualScroll()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n [attr.aria-labelledby]=\"inputId() || null\"\n >\n @if (filteredOptions().length === 0) {\n <div class=\"m-select-empty\">{{ emptyMessage() }}</div>\n } @else if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"m-select-viewport\"\n [style.height]=\"viewportHeight()\"\n >\n <button\n *cdkVirtualFor=\"let option of filteredOptions(); trackBy: trackByOptionValue\"\n class=\"m-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-select-option--selected]=\"isOptionSelected(option)\"\n [attr.aria-selected]=\"isOptionSelected(option)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectOption(option, $event)\"\n >\n {{ option.label }}\n </button>\n </cdk-virtual-scroll-viewport>\n } @else { @for (option of filteredOptions(); track option.value) {\n <button\n class=\"m-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-select-option--selected]=\"isOptionSelected(option)\"\n [attr.aria-selected]=\"isOptionSelected(option)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectOption(option, $event)\"\n >\n {{ option.label }}\n </button>\n } }\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1$1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1$1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1$1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
4720
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MSelect, isStandalone: true, selector: "m-select", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, clear: { classPropertyName: "clear", publicName: "clear", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", onChange: "onChange" }, host: { listeners: { "window:m-panel-open": "onOtherPanelOpen($event)", "document:click": "onDocumentClick($event)", "document:keydown.escape": "onEscape()" }, properties: { "class.m-select-host--sm": "size() === 'sm'", "class.m-select-host--md": "size() === 'md'", "class.m-select-host--lg": "size() === 'lg'" }, classAttribute: "m-select-host" }, providers: [provideValueAccessor(() => MSelect)], viewQueries: [{ propertyName: "panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"m-select-wrapper m-select-wrapper--chevron\"\n [class.m-select-wrapper--sm]=\"size() === 'sm'\"\n [class.m-select-wrapper--md]=\"size() === 'md'\"\n [class.m-select-wrapper--lg]=\"size() === 'lg'\"\n [class.m-select-wrapper--icon]=\"icon()\"\n [class.m-select-wrapper--clear]=\"canClear()\"\n [class.m-select-wrapper--open]=\"panelOpen()\"\n>\n @if (icon()) {\n <m-icon class=\"m-select-wrapper__icon\" [name]=\"icon()\" />\n }\n\n <button\n class=\"m-control m-select\"\n type=\"button\"\n role=\"combobox\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-expanded]=\"panelOpen()\"\n aria-haspopup=\"listbox\"\n [attr.aria-required]=\"required() || null\"\n [class.m-control--sm]=\"size() === 'sm'\"\n [class.m-control--md]=\"size() === 'md'\"\n [class.m-control--lg]=\"size() === 'lg'\"\n [class.m-select--sm]=\"size() === 'sm'\"\n [class.m-select--md]=\"size() === 'md'\"\n [class.m-select--lg]=\"size() === 'lg'\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-select__value\"\n [class.m-select__value--placeholder]=\"triggerLabelIsPlaceholder()\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-select-wrapper__clear\"\n type=\"button\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clearSelection($event)\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n\n <m-icon name=\"chevron-down\" class=\"m-select-wrapper__chevron\" />\n\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"selectedValue()\" />\n } @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-select-panel\"\n [class.m-select-panel--overlay]=\"appendTo() === 'body'\"\n >\n @if (filter()) {\n <input\n class=\"m-select-filter\"\n type=\"text\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"filterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n }\n\n <div\n class=\"m-select-list\"\n [class.m-select-list--virtual]=\"virtualScroll()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n [attr.aria-labelledby]=\"inputId() || null\"\n >\n @if (filteredOptions().length === 0) {\n <div class=\"m-select-empty\">{{ emptyMessage() }}</div>\n } @else if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"m-select-viewport\"\n [style.height]=\"viewportHeight()\"\n >\n <button\n *cdkVirtualFor=\"let option of filteredOptions(); trackBy: trackByOptionValue\"\n class=\"m-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-select-option--selected]=\"isOptionSelected(option)\"\n [attr.aria-selected]=\"isOptionSelected(option)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectOption(option, $event)\"\n >\n {{ option.label }}\n </button>\n </cdk-virtual-scroll-viewport>\n } @else { @for (option of filteredOptions(); track option.value) {\n <button\n class=\"m-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-select-option--selected]=\"isOptionSelected(option)\"\n [attr.aria-selected]=\"isOptionSelected(option)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectOption(option, $event)\"\n >\n {{ option.label }}\n </button>\n } }\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1$1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1$1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1$1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
4599
4721
  }
4600
4722
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MSelect, decorators: [{
4601
4723
  type: Component,
4602
- args: [{ selector: "m-select", imports: [ScrollingModule, NgTemplateOutlet], providers: [provideValueAccessor(() => MSelect)], changeDetection: ChangeDetectionStrategy.Eager, host: {
4724
+ args: [{ selector: "m-select", imports: [MIcon, ScrollingModule, NgTemplateOutlet], providers: [provideValueAccessor(() => MSelect)], changeDetection: ChangeDetectionStrategy.Eager, host: {
4603
4725
  class: "m-select-host",
4604
4726
  "[class.m-select-host--sm]": "size() === 'sm'",
4605
4727
  "[class.m-select-host--md]": "size() === 'md'",
4606
4728
  "[class.m-select-host--lg]": "size() === 'lg'",
4607
- }, template: "<span\n class=\"m-select-wrapper m-select-wrapper--chevron\"\n [class.m-select-wrapper--sm]=\"size() === 'sm'\"\n [class.m-select-wrapper--md]=\"size() === 'md'\"\n [class.m-select-wrapper--lg]=\"size() === 'lg'\"\n [class.m-select-wrapper--icon]=\"icon()\"\n [class.m-select-wrapper--clear]=\"canClear()\"\n [class.m-select-wrapper--open]=\"panelOpen()\"\n>\n @if (icon()) {\n <i [class]=\"iconClass()\" aria-hidden=\"true\"></i>\n }\n\n <button\n class=\"m-control m-select\"\n type=\"button\"\n role=\"combobox\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-expanded]=\"panelOpen()\"\n aria-haspopup=\"listbox\"\n [attr.aria-required]=\"required() || null\"\n [class.m-control--sm]=\"size() === 'sm'\"\n [class.m-control--md]=\"size() === 'md'\"\n [class.m-control--lg]=\"size() === 'lg'\"\n [class.m-select--sm]=\"size() === 'sm'\"\n [class.m-select--md]=\"size() === 'md'\"\n [class.m-select--lg]=\"size() === 'lg'\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-select__value\"\n [class.m-select__value--placeholder]=\"triggerLabelIsPlaceholder()\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-select-wrapper__clear\"\n type=\"button\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clearSelection($event)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n\n <i\n class=\"fas fa-chevron-down m-select-wrapper__chevron\"\n aria-hidden=\"true\"\n ></i>\n\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"selectedValue()\" />\n } @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-select-panel\"\n [class.m-select-panel--overlay]=\"appendTo() === 'body'\"\n >\n @if (filter()) {\n <input\n class=\"m-select-filter\"\n type=\"text\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"filterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n }\n\n <div\n class=\"m-select-list\"\n [class.m-select-list--virtual]=\"virtualScroll()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n [attr.aria-labelledby]=\"inputId() || null\"\n >\n @if (filteredOptions().length === 0) {\n <div class=\"m-select-empty\">{{ emptyMessage() }}</div>\n } @else if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"m-select-viewport\"\n [style.height]=\"viewportHeight()\"\n >\n <button\n *cdkVirtualFor=\"let option of filteredOptions(); trackBy: trackByOptionValue\"\n class=\"m-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-select-option--selected]=\"isOptionSelected(option)\"\n [attr.aria-selected]=\"isOptionSelected(option)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectOption(option, $event)\"\n >\n {{ option.label }}\n </button>\n </cdk-virtual-scroll-viewport>\n } @else { @for (option of filteredOptions(); track option.value) {\n <button\n class=\"m-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-select-option--selected]=\"isOptionSelected(option)\"\n [attr.aria-selected]=\"isOptionSelected(option)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectOption(option, $event)\"\n >\n {{ option.label }}\n </button>\n } }\n </div>\n </div>\n</ng-template>\n" }]
4729
+ }, template: "<span\n class=\"m-select-wrapper m-select-wrapper--chevron\"\n [class.m-select-wrapper--sm]=\"size() === 'sm'\"\n [class.m-select-wrapper--md]=\"size() === 'md'\"\n [class.m-select-wrapper--lg]=\"size() === 'lg'\"\n [class.m-select-wrapper--icon]=\"icon()\"\n [class.m-select-wrapper--clear]=\"canClear()\"\n [class.m-select-wrapper--open]=\"panelOpen()\"\n>\n @if (icon()) {\n <m-icon class=\"m-select-wrapper__icon\" [name]=\"icon()\" />\n }\n\n <button\n class=\"m-control m-select\"\n type=\"button\"\n role=\"combobox\"\n [attr.id]=\"inputId() || null\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-expanded]=\"panelOpen()\"\n aria-haspopup=\"listbox\"\n [attr.aria-required]=\"required() || null\"\n [class.m-control--sm]=\"size() === 'sm'\"\n [class.m-control--md]=\"size() === 'md'\"\n [class.m-control--lg]=\"size() === 'lg'\"\n [class.m-select--sm]=\"size() === 'sm'\"\n [class.m-select--md]=\"size() === 'md'\"\n [class.m-select--lg]=\"size() === 'lg'\"\n [disabled]=\"isDisabled()\"\n (click)=\"togglePanel()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (blur)=\"onTriggerBlur()\"\n >\n <span\n class=\"m-select__value\"\n [class.m-select__value--placeholder]=\"triggerLabelIsPlaceholder()\"\n >\n {{ triggerLabel() }}\n </span>\n </button>\n\n @if (canClear()) {\n <button\n class=\"m-select-wrapper__clear\"\n type=\"button\"\n [attr.aria-label]=\"clearLabel()\"\n (click)=\"clearSelection($event)\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n\n <m-icon name=\"chevron-down\" class=\"m-select-wrapper__chevron\" />\n\n @if (name()) {\n <input type=\"hidden\" [attr.name]=\"name()\" [value]=\"selectedValue()\" />\n } @if (appendTo() === 'self' && panelOpen()) {\n <ng-container *ngTemplateOutlet=\"panelTemplate\" />\n }\n</span>\n\n<ng-template #panelTemplate>\n <div\n class=\"m-select-panel\"\n [class.m-select-panel--overlay]=\"appendTo() === 'body'\"\n >\n @if (filter()) {\n <input\n class=\"m-select-filter\"\n type=\"text\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"filterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n }\n\n <div\n class=\"m-select-list\"\n [class.m-select-list--virtual]=\"virtualScroll()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n [attr.aria-labelledby]=\"inputId() || null\"\n >\n @if (filteredOptions().length === 0) {\n <div class=\"m-select-empty\">{{ emptyMessage() }}</div>\n } @else if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n [itemSize]=\"virtualScrollItemSize()\"\n class=\"m-select-viewport\"\n [style.height]=\"viewportHeight()\"\n >\n <button\n *cdkVirtualFor=\"let option of filteredOptions(); trackBy: trackByOptionValue\"\n class=\"m-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-select-option--selected]=\"isOptionSelected(option)\"\n [attr.aria-selected]=\"isOptionSelected(option)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectOption(option, $event)\"\n >\n {{ option.label }}\n </button>\n </cdk-virtual-scroll-viewport>\n } @else { @for (option of filteredOptions(); track option.value) {\n <button\n class=\"m-select-option\"\n type=\"button\"\n role=\"option\"\n [class.m-select-option--selected]=\"isOptionSelected(option)\"\n [attr.aria-selected]=\"isOptionSelected(option)\"\n [disabled]=\"isDisabled() || option.disabled\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"selectOption(option, $event)\"\n >\n {{ option.label }}\n </button>\n } }\n </div>\n </div>\n</ng-template>\n" }]
4608
4730
  }], ctorParameters: () => [], propDecorators: { panelTemplate: [{ type: i0.ViewChild, args: ["panelTemplate", { isSignal: true }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", 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 }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], clear: [{ type: i0.Input, args: [{ isSignal: true, alias: "clear", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onOtherPanelOpen: [{
4609
4731
  type: HostListener,
4610
4732
  args: ["window:m-panel-open", ["$event"]]
@@ -5586,11 +5708,9 @@ class MTable {
5586
5708
  }
5587
5709
  sortIcon(column) {
5588
5710
  if (this.sortField() !== this.sortPath(column)) {
5589
- return "fas fa-sort m-table__sort-icon";
5711
+ return "sort";
5590
5712
  }
5591
- return this.sortDirection() === "asc"
5592
- ? "fas fa-sort-up m-table__sort-icon"
5593
- : "fas fa-sort-down m-table__sort-icon";
5713
+ return this.sortDirection() === "asc" ? "sort-up" : "sort-down";
5594
5714
  }
5595
5715
  sortLabel(column) {
5596
5716
  if (this.sortField() !== this.sortPath(column)) {
@@ -6125,16 +6245,16 @@ class MTable {
6125
6245
  .filter(Boolean);
6126
6246
  }
6127
6247
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
6128
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MTable, isStandalone: true, selector: "m-table", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingPlaceholder: { classPropertyName: "loadingPlaceholder", publicName: "loadingPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, loadingMessage: { classPropertyName: "loadingMessage", publicName: "loadingMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, columnControl: { classPropertyName: "columnControl", publicName: "columnControl", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, columnState: { classPropertyName: "columnState", publicName: "columnState", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedRows: { classPropertyName: "selectedRows", publicName: "selectedRows", isSignal: true, isRequired: false, transformFunction: null }, expandedRows: { classPropertyName: "expandedRows", publicName: "expandedRows", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageSizeChange: "pageSizeChange", filterValueChange: "filterValueChange", columnStateChange: "columnStateChange", selectedRowsChange: "selectedRowsChange", expandedRowsChange: "expandedRowsChange", rowClick: "rowClick", onLazyLoad: "onLazyLoad" }, host: { listeners: { "document:pointermove": "onDocumentPointerMove($event)", "document:pointerup": "onDocumentPointerEnd($event)", "document:pointercancel": "onDocumentPointerEnd($event)", "document:mousemove": "onDocumentMouseMove($event)", "document:mouseup": "onDocumentMouseUp()" }, properties: { "class.m-table-host--sm": "size() === 'sm'", "class.m-table-host--md": "size() === 'md'", "class.m-table-host--lg": "size() === 'lg'" }, classAttribute: "m-table-host" }, queries: [{ propertyName: "projectedColumns", predicate: MTableColumn, descendants: true, isSignal: true }, { propertyName: "rowTemplate", first: true, predicate: ["body"], isSignal: true }, { propertyName: "expansionTemplate", first: true, predicate: ["expansion"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }], exportAs: ["mTable"], ngImport: i0, template: "<div\n class=\"m-table\"\n [class.m-table--sm]=\"size() === 'sm'\"\n [class.m-table--md]=\"size() === 'md'\"\n [class.m-table--lg]=\"size() === 'lg'\"\n>\n @if (filter() || columnControl()) {\n <div class=\"m-table__toolbar\">\n @if (filter()) {\n <label class=\"m-table__filter\">\n <i\n class=\"fas fa-magnifying-glass m-table__filter-icon\"\n aria-hidden=\"true\"\n ></i>\n <input\n class=\"m-table__filter-input\"\n type=\"search\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"currentFilterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n </label>\n } @if (columnControl()) {\n <div class=\"m-table__column-control\">\n <button\n class=\"m-table__toolbar-button\"\n type=\"button\"\n aria-label=\"Columns\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"columnControlOpen()\"\n (click)=\"toggleColumnControl()\"\n >\n <i class=\"fas fa-table-columns\" aria-hidden=\"true\"></i>\n <span>Columns</span>\n </button>\n\n @if (columnControlOpen()) {\n <div class=\"m-table__column-menu\" role=\"menu\" aria-label=\"Columns\">\n @for (column of resolvedColumns(); track columnTrack(column)) {\n <label class=\"m-table__column-option\" role=\"menuitemcheckbox\">\n <input\n type=\"checkbox\"\n [attr.data-column-key]=\"column.key\"\n [checked]=\"column.visible\"\n [disabled]=\"column.visible && !canHideColumn(column)\"\n (change)=\"toggleColumnVisibility(column, $event)\"\n />\n <span>{{ column.header || column.field || column.key }}</span>\n </label>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n\n <div\n class=\"m-table__scroll\"\n [class.m-table__scroll--disabled]=\"!scrollable()\"\n [class.m-table__scroll--scrollable-y]=\"Boolean(scrollHeight())\"\n [style.max-height]=\"scrollHeight() || null\"\n >\n <span class=\"m-table__font-probe\" aria-hidden=\"true\"></span>\n <span class=\"m-table__selection-probe m-table__selection-cell\" aria-hidden=\"true\"></span>\n <table class=\"m-table__table\" [class.m-table__table--fixed]=\"controlledLayout()\" [style.width.px]=\"tableWidth()\">\n @if (controlledLayout()) {\n <colgroup>\n @if (isMultipleSelection()) { <col [style.width.px]=\"selectionWidth()\" /> }\n @for (column of renderedColumns(); track column.key) {\n <col [style.width.px]=\"columnWidths().get(column.key)\" />\n }\n </colgroup>\n }\n <thead class=\"m-table__head\">\n <tr class=\"m-table__row\">\n @if (isMultipleSelection()) {\n <th\n class=\"m-table__cell m-table__selection-cell\"\n [class.m-table__selection-cell--frozen]=\"hasLeftFrozen()\"\n scope=\"col\"\n >\n <input\n class=\"m-table__checkbox m-table__select-all\"\n type=\"checkbox\"\n aria-label=\"Select page rows\"\n [checked]=\"currentPageSelected()\"\n [indeterminate]=\"currentPagePartiallySelected()\"\n (change)=\"togglePageSelection($event)\"\n />\n </th>\n } @for (column of renderedColumns(); track columnTrack(column)) {\n <th\n class=\"m-table__cell m-table__header-cell\"\n scope=\"col\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__header-cell--resizable]=\"isColumnResizable(column)\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [attr.aria-sort]=\"column.sortable ? sortLabel(column) : null\"\n [attr.data-width-key]=\"column.key\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n <div class=\"m-table__header-content\">\n @if (isColumnReorderable(column)) {\n <span class=\"m-table__reorder\">\n <button\n class=\"m-table__reorder-button\"\n type=\"button\"\n aria-label=\"Move column left\"\n [attr.data-reorder-key]=\"column.key\"\n data-reorder-direction=\"left\"\n [disabled]=\"isColumnFirst(column)\"\n (click)=\"moveColumn(column, -1, $event)\"\n >\n <i class=\"fas fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n <button\n class=\"m-table__reorder-button\"\n type=\"button\"\n aria-label=\"Move column right\"\n [attr.data-reorder-key]=\"column.key\"\n data-reorder-direction=\"right\"\n [disabled]=\"isColumnLast(column)\"\n (click)=\"moveColumn(column, 1, $event)\"\n >\n <i class=\"fas fa-chevron-right\" aria-hidden=\"true\"></i>\n </button>\n </span>\n } @if (column.headerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"headerContext(column)\"\n />\n } @else if (column.sortable) {\n <button\n class=\"m-table__sort-button\"\n type=\"button\"\n [attr.data-sort-field]=\"sortPath(column)\"\n (click)=\"sortBy(column)\"\n >\n <span>{{ column.header }}</span>\n <i [class]=\"sortIcon(column)\" aria-hidden=\"true\"></i>\n </button>\n } @else {\n <span>{{ column.header }}</span>\n }\n </div>\n\n @if (isColumnResizable(column)) {\n <button\n class=\"m-table__resize-handle\"\n type=\"button\"\n aria-label=\"Resize column\"\n [attr.data-resize-key]=\"column.key\"\n (pointerdown)=\"startColumnResize(column, $event)\"\n (mousedown)=\"startColumnResize(column, $event)\"\n (keydown)=\"onResizeHandleKeydown(column, $event)\"\n ></button>\n }\n </th>\n }\n </tr>\n </thead>\n\n <tbody class=\"m-table__body\">\n @if (loading()) {\n <tr class=\"m-table__row\">\n <td\n class=\"m-table__cell m-table__state-cell\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n {{ effectiveLoadingMessage() }}\n </td>\n </tr>\n } @else if (!currentRows().length) {\n <tr class=\"m-table__row\">\n <td\n class=\"m-table__cell m-table__state-cell\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n {{ emptyMessage() }}\n </td>\n </tr>\n } @else { @for (row of currentRows(); track rowTrack(row)) {\n <tr\n class=\"m-table__row\"\n [class.m-table__row--selected]=\"isSelected(row)\"\n (click)=\"handleRowClick(row)\"\n >\n @if (isMultipleSelection()) {\n <td\n class=\"m-table__cell m-table__selection-cell\"\n [class.m-table__selection-cell--frozen]=\"hasLeftFrozen()\"\n >\n <input\n class=\"m-table__checkbox m-table__row-checkbox\"\n type=\"checkbox\"\n aria-label=\"Select row\"\n [checked]=\"isSelected(row)\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleRowSelection(row, $event)\"\n />\n </td>\n } @if (rowTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate()!\"\n [ngTemplateOutletContext]=\"bodyContext(row, undefined)\"\n />\n } @else { @for (column of renderedColumns(); track columnTrack(column)) {\n <td\n class=\"m-table__cell\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n @if (column.bodyTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.bodyTemplate\"\n [ngTemplateOutletContext]=\"bodyContext(row, column)\"\n />\n } @else { {{ cellDisplayValue(row, column) }} }\n </td>\n } }\n </tr>\n @if (expansionTemplate() && isExpanded(row)) {\n <tr class=\"m-table__row m-table__row--expanded-content\">\n <td\n class=\"m-table__cell m-table__cell--expanded-content\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"expansionTemplate()!\"\n [ngTemplateOutletContext]=\"expansionContext(row)\"\n />\n </td>\n </tr>\n }\n } }\n </tbody>\n @if (hasFooter()) {\n <tfoot class=\"m-table__foot\">\n @if (footerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate()!\"\n [ngTemplateOutletContext]=\"footerContext()\"\n />\n } @else {\n <tr class=\"m-table__row m-table__row--footer\">\n @if (isMultipleSelection()) {\n <td class=\"m-table__cell m-table__footer-cell\"></td>\n } @for (column of renderedColumns(); track columnTrack(column)) {\n <td\n class=\"m-table__cell m-table__footer-cell\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n @if (column.footerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.footerTemplate\"\n [ngTemplateOutletContext]=\"columnFooterContext(column)\"\n />\n } @else { {{ column.footer || \"\" }} }\n </td>\n }\n </tr>\n }\n </tfoot>\n }\n </table>\n </div>\n\n @if (paginator() && (pageCount() > 1 || showCurrentPageReport() || normalizedPageSizeOptions().length)) {\n <div\n class=\"m-table__paginator\"\n [class.m-table__paginator--with-report]=\"showCurrentPageReport()\"\n aria-label=\"Table pagination\"\n >\n @if (showCurrentPageReport()) {\n <div class=\"m-table__page-report\" data-testid=\"table-page-report\">\n {{ currentPageReport() }}\n </div>\n }\n\n <div class=\"m-table__page-controls\">\n @if (pageCount() > 1) {\n <div class=\"m-table__page-buttons\">\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"First page\"\n data-paginator-action=\"first\"\n [disabled]=\"pageIndex() === 0\"\n (click)=\"firstPage()\"\n >\n <i class=\"fas fa-angles-left\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Previous page\"\n data-paginator-action=\"previous\"\n [disabled]=\"pageIndex() === 0\"\n (click)=\"previousPage()\"\n >\n <i class=\"fas fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n\n @for (page of pageLinks(); track page) {\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n [class.m-table__page-button--active]=\"pageIndex() === page\"\n [attr.data-page]=\"page + 1\"\n [attr.aria-current]=\"pageIndex() === page ? 'page' : null\"\n (click)=\"setPage(page)\"\n >\n {{ page + 1 }}\n </button>\n }\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Next page\"\n data-paginator-action=\"next\"\n [disabled]=\"pageIndex() === pageCount() - 1\"\n (click)=\"nextPage()\"\n >\n <i class=\"fas fa-chevron-right\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Last page\"\n data-paginator-action=\"last\"\n [disabled]=\"pageIndex() === pageCount() - 1\"\n (click)=\"lastPage()\"\n >\n <i class=\"fas fa-angles-right\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n @if (normalizedPageSizeOptions().length) {\n <div class=\"m-table__page-size\">\n <label class=\"m-visually-hidden\" [attr.for]=\"pageSizeInputId\">Sayfa ba\u015F\u0131na</label>\n <m-select\n [inputId]=\"pageSizeInputId\"\n [options]=\"pageSizeOptions()\"\n [value]=\"safePageSize()\"\n size=\"sm\"\n appendTo=\"body\"\n (valueChange)=\"changePageSize($event)\"\n />\n </div>\n }\n </div>\n </div>\n }\n</div>\n\n<ng-content />\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MSelect, selector: "m-select", inputs: ["inputId", "icon", "placeholder", "value", "name", "optionLabel", "optionValue", "dataKey", "size", "options", "clear", "filter", "filterPlaceholder", "emptyMessage", "clearLabel", "disabled", "required", "appendTo", "virtualScroll", "virtualScrollItemSize"], outputs: ["valueChange", "onChange"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
6248
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MTable, isStandalone: true, selector: "m-table", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingPlaceholder: { classPropertyName: "loadingPlaceholder", publicName: "loadingPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, loadingMessage: { classPropertyName: "loadingMessage", publicName: "loadingMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, columnControl: { classPropertyName: "columnControl", publicName: "columnControl", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, columnState: { classPropertyName: "columnState", publicName: "columnState", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedRows: { classPropertyName: "selectedRows", publicName: "selectedRows", isSignal: true, isRequired: false, transformFunction: null }, expandedRows: { classPropertyName: "expandedRows", publicName: "expandedRows", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageSizeChange: "pageSizeChange", filterValueChange: "filterValueChange", columnStateChange: "columnStateChange", selectedRowsChange: "selectedRowsChange", expandedRowsChange: "expandedRowsChange", rowClick: "rowClick", onLazyLoad: "onLazyLoad" }, host: { listeners: { "document:pointermove": "onDocumentPointerMove($event)", "document:pointerup": "onDocumentPointerEnd($event)", "document:pointercancel": "onDocumentPointerEnd($event)", "document:mousemove": "onDocumentMouseMove($event)", "document:mouseup": "onDocumentMouseUp()" }, properties: { "class.m-table-host--sm": "size() === 'sm'", "class.m-table-host--md": "size() === 'md'", "class.m-table-host--lg": "size() === 'lg'" }, classAttribute: "m-table-host" }, queries: [{ propertyName: "projectedColumns", predicate: MTableColumn, descendants: true, isSignal: true }, { propertyName: "rowTemplate", first: true, predicate: ["body"], isSignal: true }, { propertyName: "expansionTemplate", first: true, predicate: ["expansion"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }], exportAs: ["mTable"], ngImport: i0, template: "<div\n class=\"m-table\"\n [class.m-table--sm]=\"size() === 'sm'\"\n [class.m-table--md]=\"size() === 'md'\"\n [class.m-table--lg]=\"size() === 'lg'\"\n>\n @if (filter() || columnControl()) {\n <div class=\"m-table__toolbar\">\n @if (filter()) {\n <label class=\"m-table__filter\">\n <m-icon name=\"search\" class=\"m-table__filter-icon\" />\n <input\n class=\"m-table__filter-input\"\n type=\"search\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"currentFilterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n </label>\n } @if (columnControl()) {\n <div class=\"m-table__column-control\">\n <button\n class=\"m-table__toolbar-button\"\n type=\"button\"\n aria-label=\"Columns\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"columnControlOpen()\"\n (click)=\"toggleColumnControl()\"\n >\n <m-icon name=\"columns\" />\n <span>Columns</span>\n </button>\n\n @if (columnControlOpen()) {\n <div class=\"m-table__column-menu\" role=\"menu\" aria-label=\"Columns\">\n @for (column of resolvedColumns(); track columnTrack(column)) {\n <label class=\"m-table__column-option\" role=\"menuitemcheckbox\">\n <input\n type=\"checkbox\"\n [attr.data-column-key]=\"column.key\"\n [checked]=\"column.visible\"\n [disabled]=\"column.visible && !canHideColumn(column)\"\n (change)=\"toggleColumnVisibility(column, $event)\"\n />\n <span>{{ column.header || column.field || column.key }}</span>\n </label>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n\n <div\n class=\"m-table__scroll\"\n [class.m-table__scroll--disabled]=\"!scrollable()\"\n [class.m-table__scroll--scrollable-y]=\"Boolean(scrollHeight())\"\n [style.max-height]=\"scrollHeight() || null\"\n >\n <span class=\"m-table__font-probe\" aria-hidden=\"true\"></span>\n <span class=\"m-table__selection-probe m-table__selection-cell\" aria-hidden=\"true\"></span>\n <table class=\"m-table__table\" [class.m-table__table--fixed]=\"controlledLayout()\" [style.width.px]=\"tableWidth()\">\n @if (controlledLayout()) {\n <colgroup>\n @if (isMultipleSelection()) { <col [style.width.px]=\"selectionWidth()\" /> }\n @for (column of renderedColumns(); track column.key) {\n <col [style.width.px]=\"columnWidths().get(column.key)\" />\n }\n </colgroup>\n }\n <thead class=\"m-table__head\">\n <tr class=\"m-table__row\">\n @if (isMultipleSelection()) {\n <th\n class=\"m-table__cell m-table__selection-cell\"\n [class.m-table__selection-cell--frozen]=\"hasLeftFrozen()\"\n scope=\"col\"\n >\n <input\n class=\"m-table__checkbox m-table__select-all\"\n type=\"checkbox\"\n aria-label=\"Select page rows\"\n [checked]=\"currentPageSelected()\"\n [indeterminate]=\"currentPagePartiallySelected()\"\n (change)=\"togglePageSelection($event)\"\n />\n </th>\n } @for (column of renderedColumns(); track columnTrack(column)) {\n <th\n class=\"m-table__cell m-table__header-cell\"\n scope=\"col\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__header-cell--resizable]=\"isColumnResizable(column)\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [attr.aria-sort]=\"column.sortable ? sortLabel(column) : null\"\n [attr.data-width-key]=\"column.key\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n <div class=\"m-table__header-content\">\n @if (isColumnReorderable(column)) {\n <span class=\"m-table__reorder\">\n <button\n class=\"m-table__reorder-button\"\n type=\"button\"\n aria-label=\"Move column left\"\n [attr.data-reorder-key]=\"column.key\"\n data-reorder-direction=\"left\"\n [disabled]=\"isColumnFirst(column)\"\n (click)=\"moveColumn(column, -1, $event)\"\n >\n <m-icon name=\"chevron-left\" />\n </button>\n <button\n class=\"m-table__reorder-button\"\n type=\"button\"\n aria-label=\"Move column right\"\n [attr.data-reorder-key]=\"column.key\"\n data-reorder-direction=\"right\"\n [disabled]=\"isColumnLast(column)\"\n (click)=\"moveColumn(column, 1, $event)\"\n >\n <m-icon name=\"chevron-right\" />\n </button>\n </span>\n } @if (column.headerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"headerContext(column)\"\n />\n } @else if (column.sortable) {\n <button\n class=\"m-table__sort-button\"\n type=\"button\"\n [attr.data-sort-field]=\"sortPath(column)\"\n (click)=\"sortBy(column)\"\n >\n <span>{{ column.header }}</span>\n <m-icon class=\"m-table__sort-icon\" [name]=\"sortIcon(column)\" />\n </button>\n } @else {\n <span>{{ column.header }}</span>\n }\n </div>\n\n @if (isColumnResizable(column)) {\n <button\n class=\"m-table__resize-handle\"\n type=\"button\"\n aria-label=\"Resize column\"\n [attr.data-resize-key]=\"column.key\"\n (pointerdown)=\"startColumnResize(column, $event)\"\n (mousedown)=\"startColumnResize(column, $event)\"\n (keydown)=\"onResizeHandleKeydown(column, $event)\"\n ></button>\n }\n </th>\n }\n </tr>\n </thead>\n\n <tbody class=\"m-table__body\">\n @if (loading()) {\n <tr class=\"m-table__row\">\n <td\n class=\"m-table__cell m-table__state-cell\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n {{ effectiveLoadingMessage() }}\n </td>\n </tr>\n } @else if (!currentRows().length) {\n <tr class=\"m-table__row\">\n <td\n class=\"m-table__cell m-table__state-cell\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n {{ emptyMessage() }}\n </td>\n </tr>\n } @else { @for (row of currentRows(); track rowTrack(row)) {\n <tr\n class=\"m-table__row\"\n [class.m-table__row--selected]=\"isSelected(row)\"\n (click)=\"handleRowClick(row)\"\n >\n @if (isMultipleSelection()) {\n <td\n class=\"m-table__cell m-table__selection-cell\"\n [class.m-table__selection-cell--frozen]=\"hasLeftFrozen()\"\n >\n <input\n class=\"m-table__checkbox m-table__row-checkbox\"\n type=\"checkbox\"\n aria-label=\"Select row\"\n [checked]=\"isSelected(row)\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleRowSelection(row, $event)\"\n />\n </td>\n } @if (rowTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate()!\"\n [ngTemplateOutletContext]=\"bodyContext(row, undefined)\"\n />\n } @else { @for (column of renderedColumns(); track columnTrack(column)) {\n <td\n class=\"m-table__cell\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n @if (column.bodyTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.bodyTemplate\"\n [ngTemplateOutletContext]=\"bodyContext(row, column)\"\n />\n } @else { {{ cellDisplayValue(row, column) }} }\n </td>\n } }\n </tr>\n @if (expansionTemplate() && isExpanded(row)) {\n <tr class=\"m-table__row m-table__row--expanded-content\">\n <td\n class=\"m-table__cell m-table__cell--expanded-content\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"expansionTemplate()!\"\n [ngTemplateOutletContext]=\"expansionContext(row)\"\n />\n </td>\n </tr>\n }\n } }\n </tbody>\n @if (hasFooter()) {\n <tfoot class=\"m-table__foot\">\n @if (footerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate()!\"\n [ngTemplateOutletContext]=\"footerContext()\"\n />\n } @else {\n <tr class=\"m-table__row m-table__row--footer\">\n @if (isMultipleSelection()) {\n <td class=\"m-table__cell m-table__footer-cell\"></td>\n } @for (column of renderedColumns(); track columnTrack(column)) {\n <td\n class=\"m-table__cell m-table__footer-cell\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n @if (column.footerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.footerTemplate\"\n [ngTemplateOutletContext]=\"columnFooterContext(column)\"\n />\n } @else { {{ column.footer || \"\" }} }\n </td>\n }\n </tr>\n }\n </tfoot>\n }\n </table>\n </div>\n\n @if (paginator() && (pageCount() > 1 || showCurrentPageReport() || normalizedPageSizeOptions().length)) {\n <div\n class=\"m-table__paginator\"\n [class.m-table__paginator--with-report]=\"showCurrentPageReport()\"\n aria-label=\"Table pagination\"\n >\n @if (showCurrentPageReport()) {\n <div class=\"m-table__page-report\" data-testid=\"table-page-report\">\n {{ currentPageReport() }}\n </div>\n }\n\n <div class=\"m-table__page-controls\">\n @if (pageCount() > 1) {\n <div class=\"m-table__page-buttons\">\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"First page\"\n data-paginator-action=\"first\"\n [disabled]=\"pageIndex() === 0\"\n (click)=\"firstPage()\"\n >\n <m-icon name=\"chevrons-left\" />\n </button>\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Previous page\"\n data-paginator-action=\"previous\"\n [disabled]=\"pageIndex() === 0\"\n (click)=\"previousPage()\"\n >\n <m-icon name=\"chevron-left\" />\n </button>\n\n @for (page of pageLinks(); track page) {\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n [class.m-table__page-button--active]=\"pageIndex() === page\"\n [attr.data-page]=\"page + 1\"\n [attr.aria-current]=\"pageIndex() === page ? 'page' : null\"\n (click)=\"setPage(page)\"\n >\n {{ page + 1 }}\n </button>\n }\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Next page\"\n data-paginator-action=\"next\"\n [disabled]=\"pageIndex() === pageCount() - 1\"\n (click)=\"nextPage()\"\n >\n <m-icon name=\"chevron-right\" />\n </button>\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Last page\"\n data-paginator-action=\"last\"\n [disabled]=\"pageIndex() === pageCount() - 1\"\n (click)=\"lastPage()\"\n >\n <m-icon name=\"chevrons-right\" />\n </button>\n </div>\n }\n @if (normalizedPageSizeOptions().length) {\n <div class=\"m-table__page-size\">\n <label class=\"m-visually-hidden\" [attr.for]=\"pageSizeInputId\">Sayfa ba\u015F\u0131na</label>\n <m-select\n [inputId]=\"pageSizeInputId\"\n [options]=\"pageSizeOptions()\"\n [value]=\"safePageSize()\"\n size=\"sm\"\n appendTo=\"body\"\n (valueChange)=\"changePageSize($event)\"\n />\n </div>\n }\n </div>\n </div>\n }\n</div>\n\n<ng-content />\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MSelect, selector: "m-select", inputs: ["inputId", "icon", "placeholder", "value", "name", "optionLabel", "optionValue", "dataKey", "size", "options", "clear", "filter", "filterPlaceholder", "emptyMessage", "clearLabel", "disabled", "required", "appendTo", "virtualScroll", "virtualScrollItemSize"], outputs: ["valueChange", "onChange"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
6129
6249
  }
6130
6250
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MTable, decorators: [{
6131
6251
  type: Component,
6132
- args: [{ selector: "m-table", exportAs: "mTable", imports: [NgTemplateOutlet, MSelect], changeDetection: ChangeDetectionStrategy.Eager, host: {
6252
+ args: [{ selector: "m-table", exportAs: "mTable", imports: [MIcon, NgTemplateOutlet, MSelect], changeDetection: ChangeDetectionStrategy.Eager, host: {
6133
6253
  class: "m-table-host",
6134
6254
  "[class.m-table-host--sm]": "size() === 'sm'",
6135
6255
  "[class.m-table-host--md]": "size() === 'md'",
6136
6256
  "[class.m-table-host--lg]": "size() === 'lg'",
6137
- }, template: "<div\n class=\"m-table\"\n [class.m-table--sm]=\"size() === 'sm'\"\n [class.m-table--md]=\"size() === 'md'\"\n [class.m-table--lg]=\"size() === 'lg'\"\n>\n @if (filter() || columnControl()) {\n <div class=\"m-table__toolbar\">\n @if (filter()) {\n <label class=\"m-table__filter\">\n <i\n class=\"fas fa-magnifying-glass m-table__filter-icon\"\n aria-hidden=\"true\"\n ></i>\n <input\n class=\"m-table__filter-input\"\n type=\"search\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"currentFilterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n </label>\n } @if (columnControl()) {\n <div class=\"m-table__column-control\">\n <button\n class=\"m-table__toolbar-button\"\n type=\"button\"\n aria-label=\"Columns\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"columnControlOpen()\"\n (click)=\"toggleColumnControl()\"\n >\n <i class=\"fas fa-table-columns\" aria-hidden=\"true\"></i>\n <span>Columns</span>\n </button>\n\n @if (columnControlOpen()) {\n <div class=\"m-table__column-menu\" role=\"menu\" aria-label=\"Columns\">\n @for (column of resolvedColumns(); track columnTrack(column)) {\n <label class=\"m-table__column-option\" role=\"menuitemcheckbox\">\n <input\n type=\"checkbox\"\n [attr.data-column-key]=\"column.key\"\n [checked]=\"column.visible\"\n [disabled]=\"column.visible && !canHideColumn(column)\"\n (change)=\"toggleColumnVisibility(column, $event)\"\n />\n <span>{{ column.header || column.field || column.key }}</span>\n </label>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n\n <div\n class=\"m-table__scroll\"\n [class.m-table__scroll--disabled]=\"!scrollable()\"\n [class.m-table__scroll--scrollable-y]=\"Boolean(scrollHeight())\"\n [style.max-height]=\"scrollHeight() || null\"\n >\n <span class=\"m-table__font-probe\" aria-hidden=\"true\"></span>\n <span class=\"m-table__selection-probe m-table__selection-cell\" aria-hidden=\"true\"></span>\n <table class=\"m-table__table\" [class.m-table__table--fixed]=\"controlledLayout()\" [style.width.px]=\"tableWidth()\">\n @if (controlledLayout()) {\n <colgroup>\n @if (isMultipleSelection()) { <col [style.width.px]=\"selectionWidth()\" /> }\n @for (column of renderedColumns(); track column.key) {\n <col [style.width.px]=\"columnWidths().get(column.key)\" />\n }\n </colgroup>\n }\n <thead class=\"m-table__head\">\n <tr class=\"m-table__row\">\n @if (isMultipleSelection()) {\n <th\n class=\"m-table__cell m-table__selection-cell\"\n [class.m-table__selection-cell--frozen]=\"hasLeftFrozen()\"\n scope=\"col\"\n >\n <input\n class=\"m-table__checkbox m-table__select-all\"\n type=\"checkbox\"\n aria-label=\"Select page rows\"\n [checked]=\"currentPageSelected()\"\n [indeterminate]=\"currentPagePartiallySelected()\"\n (change)=\"togglePageSelection($event)\"\n />\n </th>\n } @for (column of renderedColumns(); track columnTrack(column)) {\n <th\n class=\"m-table__cell m-table__header-cell\"\n scope=\"col\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__header-cell--resizable]=\"isColumnResizable(column)\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [attr.aria-sort]=\"column.sortable ? sortLabel(column) : null\"\n [attr.data-width-key]=\"column.key\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n <div class=\"m-table__header-content\">\n @if (isColumnReorderable(column)) {\n <span class=\"m-table__reorder\">\n <button\n class=\"m-table__reorder-button\"\n type=\"button\"\n aria-label=\"Move column left\"\n [attr.data-reorder-key]=\"column.key\"\n data-reorder-direction=\"left\"\n [disabled]=\"isColumnFirst(column)\"\n (click)=\"moveColumn(column, -1, $event)\"\n >\n <i class=\"fas fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n <button\n class=\"m-table__reorder-button\"\n type=\"button\"\n aria-label=\"Move column right\"\n [attr.data-reorder-key]=\"column.key\"\n data-reorder-direction=\"right\"\n [disabled]=\"isColumnLast(column)\"\n (click)=\"moveColumn(column, 1, $event)\"\n >\n <i class=\"fas fa-chevron-right\" aria-hidden=\"true\"></i>\n </button>\n </span>\n } @if (column.headerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"headerContext(column)\"\n />\n } @else if (column.sortable) {\n <button\n class=\"m-table__sort-button\"\n type=\"button\"\n [attr.data-sort-field]=\"sortPath(column)\"\n (click)=\"sortBy(column)\"\n >\n <span>{{ column.header }}</span>\n <i [class]=\"sortIcon(column)\" aria-hidden=\"true\"></i>\n </button>\n } @else {\n <span>{{ column.header }}</span>\n }\n </div>\n\n @if (isColumnResizable(column)) {\n <button\n class=\"m-table__resize-handle\"\n type=\"button\"\n aria-label=\"Resize column\"\n [attr.data-resize-key]=\"column.key\"\n (pointerdown)=\"startColumnResize(column, $event)\"\n (mousedown)=\"startColumnResize(column, $event)\"\n (keydown)=\"onResizeHandleKeydown(column, $event)\"\n ></button>\n }\n </th>\n }\n </tr>\n </thead>\n\n <tbody class=\"m-table__body\">\n @if (loading()) {\n <tr class=\"m-table__row\">\n <td\n class=\"m-table__cell m-table__state-cell\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n {{ effectiveLoadingMessage() }}\n </td>\n </tr>\n } @else if (!currentRows().length) {\n <tr class=\"m-table__row\">\n <td\n class=\"m-table__cell m-table__state-cell\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n {{ emptyMessage() }}\n </td>\n </tr>\n } @else { @for (row of currentRows(); track rowTrack(row)) {\n <tr\n class=\"m-table__row\"\n [class.m-table__row--selected]=\"isSelected(row)\"\n (click)=\"handleRowClick(row)\"\n >\n @if (isMultipleSelection()) {\n <td\n class=\"m-table__cell m-table__selection-cell\"\n [class.m-table__selection-cell--frozen]=\"hasLeftFrozen()\"\n >\n <input\n class=\"m-table__checkbox m-table__row-checkbox\"\n type=\"checkbox\"\n aria-label=\"Select row\"\n [checked]=\"isSelected(row)\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleRowSelection(row, $event)\"\n />\n </td>\n } @if (rowTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate()!\"\n [ngTemplateOutletContext]=\"bodyContext(row, undefined)\"\n />\n } @else { @for (column of renderedColumns(); track columnTrack(column)) {\n <td\n class=\"m-table__cell\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n @if (column.bodyTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.bodyTemplate\"\n [ngTemplateOutletContext]=\"bodyContext(row, column)\"\n />\n } @else { {{ cellDisplayValue(row, column) }} }\n </td>\n } }\n </tr>\n @if (expansionTemplate() && isExpanded(row)) {\n <tr class=\"m-table__row m-table__row--expanded-content\">\n <td\n class=\"m-table__cell m-table__cell--expanded-content\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"expansionTemplate()!\"\n [ngTemplateOutletContext]=\"expansionContext(row)\"\n />\n </td>\n </tr>\n }\n } }\n </tbody>\n @if (hasFooter()) {\n <tfoot class=\"m-table__foot\">\n @if (footerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate()!\"\n [ngTemplateOutletContext]=\"footerContext()\"\n />\n } @else {\n <tr class=\"m-table__row m-table__row--footer\">\n @if (isMultipleSelection()) {\n <td class=\"m-table__cell m-table__footer-cell\"></td>\n } @for (column of renderedColumns(); track columnTrack(column)) {\n <td\n class=\"m-table__cell m-table__footer-cell\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n @if (column.footerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.footerTemplate\"\n [ngTemplateOutletContext]=\"columnFooterContext(column)\"\n />\n } @else { {{ column.footer || \"\" }} }\n </td>\n }\n </tr>\n }\n </tfoot>\n }\n </table>\n </div>\n\n @if (paginator() && (pageCount() > 1 || showCurrentPageReport() || normalizedPageSizeOptions().length)) {\n <div\n class=\"m-table__paginator\"\n [class.m-table__paginator--with-report]=\"showCurrentPageReport()\"\n aria-label=\"Table pagination\"\n >\n @if (showCurrentPageReport()) {\n <div class=\"m-table__page-report\" data-testid=\"table-page-report\">\n {{ currentPageReport() }}\n </div>\n }\n\n <div class=\"m-table__page-controls\">\n @if (pageCount() > 1) {\n <div class=\"m-table__page-buttons\">\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"First page\"\n data-paginator-action=\"first\"\n [disabled]=\"pageIndex() === 0\"\n (click)=\"firstPage()\"\n >\n <i class=\"fas fa-angles-left\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Previous page\"\n data-paginator-action=\"previous\"\n [disabled]=\"pageIndex() === 0\"\n (click)=\"previousPage()\"\n >\n <i class=\"fas fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n\n @for (page of pageLinks(); track page) {\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n [class.m-table__page-button--active]=\"pageIndex() === page\"\n [attr.data-page]=\"page + 1\"\n [attr.aria-current]=\"pageIndex() === page ? 'page' : null\"\n (click)=\"setPage(page)\"\n >\n {{ page + 1 }}\n </button>\n }\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Next page\"\n data-paginator-action=\"next\"\n [disabled]=\"pageIndex() === pageCount() - 1\"\n (click)=\"nextPage()\"\n >\n <i class=\"fas fa-chevron-right\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Last page\"\n data-paginator-action=\"last\"\n [disabled]=\"pageIndex() === pageCount() - 1\"\n (click)=\"lastPage()\"\n >\n <i class=\"fas fa-angles-right\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n @if (normalizedPageSizeOptions().length) {\n <div class=\"m-table__page-size\">\n <label class=\"m-visually-hidden\" [attr.for]=\"pageSizeInputId\">Sayfa ba\u015F\u0131na</label>\n <m-select\n [inputId]=\"pageSizeInputId\"\n [options]=\"pageSizeOptions()\"\n [value]=\"safePageSize()\"\n size=\"sm\"\n appendTo=\"body\"\n (valueChange)=\"changePageSize($event)\"\n />\n </div>\n }\n </div>\n </div>\n }\n</div>\n\n<ng-content />\n" }]
6257
+ }, template: "<div\n class=\"m-table\"\n [class.m-table--sm]=\"size() === 'sm'\"\n [class.m-table--md]=\"size() === 'md'\"\n [class.m-table--lg]=\"size() === 'lg'\"\n>\n @if (filter() || columnControl()) {\n <div class=\"m-table__toolbar\">\n @if (filter()) {\n <label class=\"m-table__filter\">\n <m-icon name=\"search\" class=\"m-table__filter-icon\" />\n <input\n class=\"m-table__filter-input\"\n type=\"search\"\n [attr.placeholder]=\"filterPlaceholder()\"\n [value]=\"currentFilterValue()\"\n (input)=\"onFilterInput($event)\"\n />\n </label>\n } @if (columnControl()) {\n <div class=\"m-table__column-control\">\n <button\n class=\"m-table__toolbar-button\"\n type=\"button\"\n aria-label=\"Columns\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"columnControlOpen()\"\n (click)=\"toggleColumnControl()\"\n >\n <m-icon name=\"columns\" />\n <span>Columns</span>\n </button>\n\n @if (columnControlOpen()) {\n <div class=\"m-table__column-menu\" role=\"menu\" aria-label=\"Columns\">\n @for (column of resolvedColumns(); track columnTrack(column)) {\n <label class=\"m-table__column-option\" role=\"menuitemcheckbox\">\n <input\n type=\"checkbox\"\n [attr.data-column-key]=\"column.key\"\n [checked]=\"column.visible\"\n [disabled]=\"column.visible && !canHideColumn(column)\"\n (change)=\"toggleColumnVisibility(column, $event)\"\n />\n <span>{{ column.header || column.field || column.key }}</span>\n </label>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n\n <div\n class=\"m-table__scroll\"\n [class.m-table__scroll--disabled]=\"!scrollable()\"\n [class.m-table__scroll--scrollable-y]=\"Boolean(scrollHeight())\"\n [style.max-height]=\"scrollHeight() || null\"\n >\n <span class=\"m-table__font-probe\" aria-hidden=\"true\"></span>\n <span class=\"m-table__selection-probe m-table__selection-cell\" aria-hidden=\"true\"></span>\n <table class=\"m-table__table\" [class.m-table__table--fixed]=\"controlledLayout()\" [style.width.px]=\"tableWidth()\">\n @if (controlledLayout()) {\n <colgroup>\n @if (isMultipleSelection()) { <col [style.width.px]=\"selectionWidth()\" /> }\n @for (column of renderedColumns(); track column.key) {\n <col [style.width.px]=\"columnWidths().get(column.key)\" />\n }\n </colgroup>\n }\n <thead class=\"m-table__head\">\n <tr class=\"m-table__row\">\n @if (isMultipleSelection()) {\n <th\n class=\"m-table__cell m-table__selection-cell\"\n [class.m-table__selection-cell--frozen]=\"hasLeftFrozen()\"\n scope=\"col\"\n >\n <input\n class=\"m-table__checkbox m-table__select-all\"\n type=\"checkbox\"\n aria-label=\"Select page rows\"\n [checked]=\"currentPageSelected()\"\n [indeterminate]=\"currentPagePartiallySelected()\"\n (change)=\"togglePageSelection($event)\"\n />\n </th>\n } @for (column of renderedColumns(); track columnTrack(column)) {\n <th\n class=\"m-table__cell m-table__header-cell\"\n scope=\"col\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__header-cell--resizable]=\"isColumnResizable(column)\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [attr.aria-sort]=\"column.sortable ? sortLabel(column) : null\"\n [attr.data-width-key]=\"column.key\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n <div class=\"m-table__header-content\">\n @if (isColumnReorderable(column)) {\n <span class=\"m-table__reorder\">\n <button\n class=\"m-table__reorder-button\"\n type=\"button\"\n aria-label=\"Move column left\"\n [attr.data-reorder-key]=\"column.key\"\n data-reorder-direction=\"left\"\n [disabled]=\"isColumnFirst(column)\"\n (click)=\"moveColumn(column, -1, $event)\"\n >\n <m-icon name=\"chevron-left\" />\n </button>\n <button\n class=\"m-table__reorder-button\"\n type=\"button\"\n aria-label=\"Move column right\"\n [attr.data-reorder-key]=\"column.key\"\n data-reorder-direction=\"right\"\n [disabled]=\"isColumnLast(column)\"\n (click)=\"moveColumn(column, 1, $event)\"\n >\n <m-icon name=\"chevron-right\" />\n </button>\n </span>\n } @if (column.headerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.headerTemplate\"\n [ngTemplateOutletContext]=\"headerContext(column)\"\n />\n } @else if (column.sortable) {\n <button\n class=\"m-table__sort-button\"\n type=\"button\"\n [attr.data-sort-field]=\"sortPath(column)\"\n (click)=\"sortBy(column)\"\n >\n <span>{{ column.header }}</span>\n <m-icon class=\"m-table__sort-icon\" [name]=\"sortIcon(column)\" />\n </button>\n } @else {\n <span>{{ column.header }}</span>\n }\n </div>\n\n @if (isColumnResizable(column)) {\n <button\n class=\"m-table__resize-handle\"\n type=\"button\"\n aria-label=\"Resize column\"\n [attr.data-resize-key]=\"column.key\"\n (pointerdown)=\"startColumnResize(column, $event)\"\n (mousedown)=\"startColumnResize(column, $event)\"\n (keydown)=\"onResizeHandleKeydown(column, $event)\"\n ></button>\n }\n </th>\n }\n </tr>\n </thead>\n\n <tbody class=\"m-table__body\">\n @if (loading()) {\n <tr class=\"m-table__row\">\n <td\n class=\"m-table__cell m-table__state-cell\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n {{ effectiveLoadingMessage() }}\n </td>\n </tr>\n } @else if (!currentRows().length) {\n <tr class=\"m-table__row\">\n <td\n class=\"m-table__cell m-table__state-cell\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n {{ emptyMessage() }}\n </td>\n </tr>\n } @else { @for (row of currentRows(); track rowTrack(row)) {\n <tr\n class=\"m-table__row\"\n [class.m-table__row--selected]=\"isSelected(row)\"\n (click)=\"handleRowClick(row)\"\n >\n @if (isMultipleSelection()) {\n <td\n class=\"m-table__cell m-table__selection-cell\"\n [class.m-table__selection-cell--frozen]=\"hasLeftFrozen()\"\n >\n <input\n class=\"m-table__checkbox m-table__row-checkbox\"\n type=\"checkbox\"\n aria-label=\"Select row\"\n [checked]=\"isSelected(row)\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleRowSelection(row, $event)\"\n />\n </td>\n } @if (rowTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"rowTemplate()!\"\n [ngTemplateOutletContext]=\"bodyContext(row, undefined)\"\n />\n } @else { @for (column of renderedColumns(); track columnTrack(column)) {\n <td\n class=\"m-table__cell\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n @if (column.bodyTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.bodyTemplate\"\n [ngTemplateOutletContext]=\"bodyContext(row, column)\"\n />\n } @else { {{ cellDisplayValue(row, column) }} }\n </td>\n } }\n </tr>\n @if (expansionTemplate() && isExpanded(row)) {\n <tr class=\"m-table__row m-table__row--expanded-content\">\n <td\n class=\"m-table__cell m-table__cell--expanded-content\"\n [attr.colspan]=\"visibleColumnCount()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"expansionTemplate()!\"\n [ngTemplateOutletContext]=\"expansionContext(row)\"\n />\n </td>\n </tr>\n }\n } }\n </tbody>\n @if (hasFooter()) {\n <tfoot class=\"m-table__foot\">\n @if (footerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate()!\"\n [ngTemplateOutletContext]=\"footerContext()\"\n />\n } @else {\n <tr class=\"m-table__row m-table__row--footer\">\n @if (isMultipleSelection()) {\n <td class=\"m-table__cell m-table__footer-cell\"></td>\n } @for (column of renderedColumns(); track columnTrack(column)) {\n <td\n class=\"m-table__cell m-table__footer-cell\"\n [class.m-table__cell--center]=\"column.align === 'center'\"\n [class.m-table__cell--end]=\"column.align === 'end'\"\n [class.m-table__cell--frozen]=\"column.frozen\"\n [class.m-table__cell--frozen-left]=\"column.frozen && column.alignFrozen === 'left'\"\n [class.m-table__cell--frozen-right]=\"column.frozen && column.alignFrozen === 'right'\"\n [class.m-table__cell--frozen-left-last]=\"isLastLeftFrozen(column)\"\n [class.m-table__cell--frozen-right-first]=\"isFirstRightFrozen(column)\"\n [style.width]=\"column.width || null\"\n [style.min-width]=\"column.minWidth || null\"\n [style.left]=\"frozenLeftStyle(column)\"\n [style.right]=\"frozenRightStyle(column)\"\n >\n @if (column.footerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"column.footerTemplate\"\n [ngTemplateOutletContext]=\"columnFooterContext(column)\"\n />\n } @else { {{ column.footer || \"\" }} }\n </td>\n }\n </tr>\n }\n </tfoot>\n }\n </table>\n </div>\n\n @if (paginator() && (pageCount() > 1 || showCurrentPageReport() || normalizedPageSizeOptions().length)) {\n <div\n class=\"m-table__paginator\"\n [class.m-table__paginator--with-report]=\"showCurrentPageReport()\"\n aria-label=\"Table pagination\"\n >\n @if (showCurrentPageReport()) {\n <div class=\"m-table__page-report\" data-testid=\"table-page-report\">\n {{ currentPageReport() }}\n </div>\n }\n\n <div class=\"m-table__page-controls\">\n @if (pageCount() > 1) {\n <div class=\"m-table__page-buttons\">\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"First page\"\n data-paginator-action=\"first\"\n [disabled]=\"pageIndex() === 0\"\n (click)=\"firstPage()\"\n >\n <m-icon name=\"chevrons-left\" />\n </button>\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Previous page\"\n data-paginator-action=\"previous\"\n [disabled]=\"pageIndex() === 0\"\n (click)=\"previousPage()\"\n >\n <m-icon name=\"chevron-left\" />\n </button>\n\n @for (page of pageLinks(); track page) {\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n [class.m-table__page-button--active]=\"pageIndex() === page\"\n [attr.data-page]=\"page + 1\"\n [attr.aria-current]=\"pageIndex() === page ? 'page' : null\"\n (click)=\"setPage(page)\"\n >\n {{ page + 1 }}\n </button>\n }\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Next page\"\n data-paginator-action=\"next\"\n [disabled]=\"pageIndex() === pageCount() - 1\"\n (click)=\"nextPage()\"\n >\n <m-icon name=\"chevron-right\" />\n </button>\n\n <button\n class=\"m-table__page-button\"\n type=\"button\"\n aria-label=\"Last page\"\n data-paginator-action=\"last\"\n [disabled]=\"pageIndex() === pageCount() - 1\"\n (click)=\"lastPage()\"\n >\n <m-icon name=\"chevrons-right\" />\n </button>\n </div>\n }\n @if (normalizedPageSizeOptions().length) {\n <div class=\"m-table__page-size\">\n <label class=\"m-visually-hidden\" [attr.for]=\"pageSizeInputId\">Sayfa ba\u015F\u0131na</label>\n <m-select\n [inputId]=\"pageSizeInputId\"\n [options]=\"pageSizeOptions()\"\n [value]=\"safePageSize()\"\n size=\"sm\"\n appendTo=\"body\"\n (valueChange)=\"changePageSize($event)\"\n />\n </div>\n }\n </div>\n </div>\n }\n</div>\n\n<ng-content />\n" }]
6138
6258
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], fields: [{ type: i0.Input, args: [{ isSignal: true, alias: "fields", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingPlaceholder", required: false }] }], loadingMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingMessage", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], pageSizeChange: [{ type: i0.Output, args: ["pageSizeChange"] }], pageLinkSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinkSize", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], totalRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalRecords", required: false }] }], showCurrentPageReport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCurrentPageReport", required: false }] }], currentPageReportTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPageReportTemplate", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterValue", required: false }] }], filterFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFields", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], columnControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnControl", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], reorderableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderableColumns", required: false }] }], columnState: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnState", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], selectedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedRows", required: false }] }], expandedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedRows", required: false }] }], filterValueChange: [{ type: i0.Output, args: ["filterValueChange"] }], columnStateChange: [{ type: i0.Output, args: ["columnStateChange"] }], selectedRowsChange: [{ type: i0.Output, args: ["selectedRowsChange"] }], expandedRowsChange: [{ type: i0.Output, args: ["expandedRowsChange"] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], projectedColumns: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MTableColumn), { ...{
6139
6259
  descendants: true,
6140
6260
  }, isSignal: true }] }], rowTemplate: [{ type: i0.ContentChild, args: ["body", { ...{ descendants: false }, isSignal: true }] }], expansionTemplate: [{ type: i0.ContentChild, args: ["expansion", { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ["footer", { ...{ descendants: false }, isSignal: true }] }], onDocumentPointerMove: [{
@@ -6295,9 +6415,6 @@ class MTabs {
6295
6415
  isActive(tab) {
6296
6416
  return this.activeTab() === tab;
6297
6417
  }
6298
- tabIconClass(tab) {
6299
- return ["m-tabs__tab-icon", tab.icon().trim()].filter(Boolean).join(" ");
6300
- }
6301
6418
  headerContext(tab) {
6302
6419
  return {
6303
6420
  active: this.isActive(tab),
@@ -6360,16 +6477,16 @@ class MTabs {
6360
6477
  });
6361
6478
  }
6362
6479
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MTabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
6363
- 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 <i [class]=\"tabIconClass(tab)\" aria-hidden=\"true\"></i>\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: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
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 });
6364
6481
  }
6365
6482
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MTabs, decorators: [{
6366
6483
  type: Component,
6367
- args: [{ selector: "m-tabs", imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.Eager, host: {
6484
+ args: [{ selector: "m-tabs", imports: [MIcon, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.Eager, host: {
6368
6485
  class: "m-tabs-host",
6369
6486
  "[class.m-tabs-host--sm]": "size() === 'sm'",
6370
6487
  "[class.m-tabs-host--md]": "size() === 'md'",
6371
6488
  "[class.m-tabs-host--lg]": "size() === 'lg'",
6372
- }, 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 <i [class]=\"tabIconClass(tab)\" aria-hidden=\"true\"></i>\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" }]
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" }]
6373
6490
  }], 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 }] }] } });
6374
6491
 
6375
6492
  class MTextarea {
@@ -6456,10 +6573,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
6456
6573
  const DEFAULT_LIFE = 3000;
6457
6574
  const EXIT_DURATION = 140;
6458
6575
  const DEFAULT_ICONS = {
6459
- info: "fas fa-circle-info",
6460
- success: "fas fa-circle-check",
6461
- warn: "fas fa-triangle-exclamation",
6462
- error: "fas fa-circle-xmark",
6576
+ info: "info",
6577
+ success: "circle-check",
6578
+ warn: "alert-triangle",
6579
+ error: "circle-x",
6463
6580
  };
6464
6581
  let nextToastId = 0;
6465
6582
  class MToastService {
@@ -6514,7 +6631,7 @@ class MToastService {
6514
6631
  type,
6515
6632
  sticky: options.sticky ?? false,
6516
6633
  life: options.life ?? DEFAULT_LIFE,
6517
- icon: options.icon?.trim() ?? DEFAULT_ICONS[type],
6634
+ icon: options.icon ?? DEFAULT_ICONS[type],
6518
6635
  closable: options.closable ?? true,
6519
6636
  styleClass: options.styleClass?.trim() ?? "",
6520
6637
  closing: false,
@@ -6582,9 +6699,6 @@ class MToast {
6582
6699
  .filter(Boolean)
6583
6700
  .join(" ");
6584
6701
  }
6585
- iconClass(message) {
6586
- return ["m-toast-message__icon", message.icon].filter(Boolean).join(" ");
6587
- }
6588
6702
  messageRole(message) {
6589
6703
  return message.type === "error" || message.type === "warn"
6590
6704
  ? "alert"
@@ -6594,13 +6708,13 @@ class MToast {
6594
6708
  this.toast.remove(id);
6595
6709
  }
6596
6710
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
6597
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MToast, isStandalone: true, selector: "m-toast", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "m-toast-host" }, ngImport: i0, template: "@if (messages().length) {\n<section\n [class]=\"toastClass()\"\n [attr.aria-label]=\"ariaLabel()\"\n aria-live=\"polite\"\n aria-atomic=\"false\"\n>\n @for (message of messages(); track message.id) {\n <article\n [class]=\"messageClass(message)\"\n [attr.role]=\"messageRole(message)\"\n [attr.data-toast-id]=\"message.id\"\n >\n @if (message.icon) {\n <i [class]=\"iconClass(message)\" aria-hidden=\"true\"></i>\n }\n\n <div class=\"m-toast-message__content\">\n @if (message.title) {\n <strong class=\"m-toast-message__title\">{{ message.title }}</strong>\n }\n <span class=\"m-toast-message__text\">{{ message.message }}</span>\n </div>\n\n @if (message.closable) {\n <button\n class=\"m-toast-message__close\"\n type=\"button\"\n aria-label=\"Close notification\"\n (click)=\"remove(message.id)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n </article>\n }\n</section>\n}\n", changeDetection: i0.ChangeDetectionStrategy.Eager });
6711
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: MToast, isStandalone: true, selector: "m-toast", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "m-toast-host" }, ngImport: i0, template: "@if (messages().length) {\n<section\n [class]=\"toastClass()\"\n [attr.aria-label]=\"ariaLabel()\"\n aria-live=\"polite\"\n aria-atomic=\"false\"\n>\n @for (message of messages(); track message.id) {\n <article\n [class]=\"messageClass(message)\"\n [attr.role]=\"messageRole(message)\"\n [attr.data-toast-id]=\"message.id\"\n >\n @if (message.icon) {\n <m-icon class=\"m-toast-message__icon\" [name]=\"message.icon\" />\n }\n\n <div class=\"m-toast-message__content\">\n @if (message.title) {\n <strong class=\"m-toast-message__title\">{{ message.title }}</strong>\n }\n <span class=\"m-toast-message__text\">{{ message.message }}</span>\n </div>\n\n @if (message.closable) {\n <button\n class=\"m-toast-message__close\"\n type=\"button\"\n aria-label=\"Close notification\"\n (click)=\"remove(message.id)\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n </article>\n }\n</section>\n}\n", dependencies: [{ kind: "component", type: MIcon, selector: "m-icon", inputs: ["name", "label"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
6598
6712
  }
6599
6713
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: MToast, decorators: [{
6600
6714
  type: Component,
6601
- args: [{ selector: "m-toast", changeDetection: ChangeDetectionStrategy.Eager, host: {
6715
+ args: [{ imports: [MIcon], selector: "m-toast", changeDetection: ChangeDetectionStrategy.Eager, host: {
6602
6716
  class: "m-toast-host",
6603
- }, template: "@if (messages().length) {\n<section\n [class]=\"toastClass()\"\n [attr.aria-label]=\"ariaLabel()\"\n aria-live=\"polite\"\n aria-atomic=\"false\"\n>\n @for (message of messages(); track message.id) {\n <article\n [class]=\"messageClass(message)\"\n [attr.role]=\"messageRole(message)\"\n [attr.data-toast-id]=\"message.id\"\n >\n @if (message.icon) {\n <i [class]=\"iconClass(message)\" aria-hidden=\"true\"></i>\n }\n\n <div class=\"m-toast-message__content\">\n @if (message.title) {\n <strong class=\"m-toast-message__title\">{{ message.title }}</strong>\n }\n <span class=\"m-toast-message__text\">{{ message.message }}</span>\n </div>\n\n @if (message.closable) {\n <button\n class=\"m-toast-message__close\"\n type=\"button\"\n aria-label=\"Close notification\"\n (click)=\"remove(message.id)\"\n >\n <i class=\"fas fa-xmark\" aria-hidden=\"true\"></i>\n </button>\n }\n </article>\n }\n</section>\n}\n" }]
6717
+ }, template: "@if (messages().length) {\n<section\n [class]=\"toastClass()\"\n [attr.aria-label]=\"ariaLabel()\"\n aria-live=\"polite\"\n aria-atomic=\"false\"\n>\n @for (message of messages(); track message.id) {\n <article\n [class]=\"messageClass(message)\"\n [attr.role]=\"messageRole(message)\"\n [attr.data-toast-id]=\"message.id\"\n >\n @if (message.icon) {\n <m-icon class=\"m-toast-message__icon\" [name]=\"message.icon\" />\n }\n\n <div class=\"m-toast-message__content\">\n @if (message.title) {\n <strong class=\"m-toast-message__title\">{{ message.title }}</strong>\n }\n <span class=\"m-toast-message__text\">{{ message.message }}</span>\n </div>\n\n @if (message.closable) {\n <button\n class=\"m-toast-message__close\"\n type=\"button\"\n aria-label=\"Close notification\"\n (click)=\"remove(message.id)\"\n >\n <m-icon name=\"x\" />\n </button>\n }\n </article>\n }\n</section>\n}\n" }]
6604
6718
  }], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
6605
6719
 
6606
6720
  class MBadgeDirective {
@@ -6754,5 +6868,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
6754
6868
  * Generated bundle index. Do not edit.
6755
6869
  */
6756
6870
 
6757
- export { Confirmation, MAccordion, MAccordionPanel, MBadge, MBadgeDirective, MButton, MButtonDirective, MCheckbox, MCommandMenu, MConfirmationService, MDatePicker, MDialog, MDrawer, MFieldValuePipe, MFileList, MFileUpload, MInput, MInputDirective, MInputNumber, MInputNumberDirective, MListbox, MMenu, MMenuSearch, MMultiSelect, MPopover, MProgressBar, MProgressSpinner, MRadio, MRadioGroup, MSelect, MSwitch, MTab, MTable, MTableColumn, MTabs, MTextarea, MTieredMenu, MToast, MToastService, MTooltipDirective, getFieldValue, noopTouched, provideValueAccessor, resolveFieldDisplayValue, resolveFieldRawValue, syncMThemeToOverlay };
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 };
6758
6872
  //# sourceMappingURL=maliardic-ma-ui.mjs.map