@maliardic/ma-ui 0.2.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -1
- package/README.md +16 -0
- package/fesm2022/maliardic-ma-ui.mjs +172 -32
- package/fesm2022/maliardic-ma-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/styles/components/_accordion.scss +1 -1
- package/styles/components/_badge.scss +1 -1
- package/styles/components/_button.scss +1 -1
- package/styles/components/_checkbox.scss +2 -2
- package/styles/components/_date-picker.scss +6 -6
- package/styles/components/_dialog.scss +9 -1
- package/styles/components/_drawer.scss +1 -1
- package/styles/components/_editor.scss +3 -3
- package/styles/components/_file-upload.scss +2 -2
- package/styles/components/_input.scss +3 -3
- package/styles/components/_listbox.scss +1 -1
- package/styles/components/_menu-search.scss +1 -1
- package/styles/components/_menu.scss +2 -2
- package/styles/components/_multi-select.scss +5 -5
- package/styles/components/_popover.scss +2 -2
- package/styles/components/_progress-bar.scss +1 -1
- package/styles/components/_radio.scss +4 -3
- package/styles/components/_select.scss +8 -8
- package/styles/components/_switch.scss +4 -4
- package/styles/components/_table.scss +8 -7
- package/styles/components/_tabs.scss +2 -2
- package/styles/components/_tiered-menu.scss +1 -1
- package/styles/components/_toast.scss +35 -11
- package/styles/ma-ui.css +1 -1
- package/styles/themes/classic.css +1 -0
- package/styles/themes/classic.scss +163 -0
- package/styles/tokens.scss +156 -129
- package/types/maliardic-ma-ui.d.ts +133 -45
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef, Type, Provider, OnDestroy, OnInit, PipeTransform, AfterViewInit, AfterViewChecked, WritableSignal, InputSignal } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { InjectionToken, TemplateRef, Type, Provider, OnDestroy, EnvironmentProviders, OnInit, PipeTransform, AfterViewInit, AfterViewChecked, WritableSignal, InputSignal } from '@angular/core';
|
|
4
3
|
import * as _maliardic_ma_icon from '@maliardic/ma-icon';
|
|
5
4
|
import { MaiconName, MaiconGlyph } from '@maliardic/ma-icon';
|
|
5
|
+
import { MaiconSolidName } from '@maliardic/ma-icon/solid';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
6
7
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
7
8
|
import * as _maliardic_ma_ui from '@maliardic/ma-ui';
|
|
8
9
|
|
|
@@ -61,6 +62,94 @@ interface MaFields {
|
|
|
61
62
|
reorderable?: boolean;
|
|
62
63
|
}
|
|
63
64
|
|
|
65
|
+
/** Name of an icon in the maicon set (`@maliardic/ma-icon`). */
|
|
66
|
+
type MIconName = MaiconName;
|
|
67
|
+
/** Drawing variant of an icon: the outline (default) or the filled solid drawing. */
|
|
68
|
+
type MIconVariant = "outline" | "solid";
|
|
69
|
+
/**
|
|
70
|
+
* An icon name with an explicit variant, e.g. `"heart:solid"` or `"heart:outline"`.
|
|
71
|
+
* `:solid` falls back to the outline when the icon has no solid drawing or `provideMIconSolid()`
|
|
72
|
+
* is not registered. `:outline` always draws the outline, also in active states.
|
|
73
|
+
*/
|
|
74
|
+
type MIconVariantName = `${MIconName}:${MIconVariant}`;
|
|
75
|
+
/** Any valid icon reference: a plain name or a name with a variant modifier. */
|
|
76
|
+
type MIconRef = MIconName | MIconVariantName;
|
|
77
|
+
/**
|
|
78
|
+
* Value accepted by `icon` inputs: a maicon name, optionally with `:solid` / `:outline`, or any
|
|
79
|
+
* other string (for example one coming from data). Known names still autocomplete (`:solid`
|
|
80
|
+
* only for icons that have a solid drawing); unknown names render nothing.
|
|
81
|
+
*/
|
|
82
|
+
type MIconInput = MIconName | `${MaiconSolidName}:solid` | (string & {});
|
|
83
|
+
/** Every icon name in the maicon set (`@maliardic/ma-icon`), alphabetical. */
|
|
84
|
+
declare const M_ICON_NAMES: readonly MIconName[];
|
|
85
|
+
/** Solid drawings and options registered by `provideMIconSolid()`. */
|
|
86
|
+
interface MIconSolidConfig {
|
|
87
|
+
/** One fill path per icon name (`MAICON_SOLID` from `@maliardic/ma-icon/solid`). */
|
|
88
|
+
readonly glyphs: Readonly<Record<string, string>>;
|
|
89
|
+
/** When true, the active `m-tab` and pressed buttons switch to the solid drawing. */
|
|
90
|
+
readonly activeStates: boolean;
|
|
91
|
+
}
|
|
92
|
+
/** Holds the solid drawings. Empty unless `provideMIconSolid()` is in the providers. */
|
|
93
|
+
declare const M_ICON_SOLID: InjectionToken<MIconSolidConfig>;
|
|
94
|
+
/** A parsed icon reference. */
|
|
95
|
+
interface MIconParsed {
|
|
96
|
+
readonly name: MIconName;
|
|
97
|
+
/** The variant written in the reference, or `null` for a plain name. */
|
|
98
|
+
readonly variant: MIconVariant | null;
|
|
99
|
+
}
|
|
100
|
+
/** Splits `"heart:solid"` into name and variant. Returns `null` for unknown names or modifiers. */
|
|
101
|
+
declare function parseMIconName(value: string | null | undefined): MIconParsed | null;
|
|
102
|
+
/** The glyph that will be drawn for a reference, with the variant that was actually used. */
|
|
103
|
+
interface MIconResolved {
|
|
104
|
+
readonly name: MIconName;
|
|
105
|
+
readonly variant: MIconVariant;
|
|
106
|
+
readonly glyph: MaiconGlyph;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Resolves a reference to the glyph to draw. `"heart:solid"` gives the solid drawing when `solid`
|
|
110
|
+
* (from `M_ICON_SOLID`) has it, otherwise the outline. Returns `null` for unknown names.
|
|
111
|
+
*/
|
|
112
|
+
declare function resolveMIcon(value: string | null | undefined, solid?: MIconSolidConfig | null): MIconResolved | null;
|
|
113
|
+
/**
|
|
114
|
+
* Returns the glyph for a reference, or `null` for unknown / empty names. `:solid` needs the
|
|
115
|
+
* solid config (`inject(M_ICON_SOLID, { optional: true })`); without it the outline is returned.
|
|
116
|
+
*/
|
|
117
|
+
declare function mIconGlyph(name: string | null | undefined, solid?: MIconSolidConfig | null): MaiconGlyph | null;
|
|
118
|
+
/** True when `name` is an icon in the maicon set, optionally with `:solid` / `:outline`. */
|
|
119
|
+
declare function isMIconName(name: unknown): name is MIconRef;
|
|
120
|
+
/**
|
|
121
|
+
* The reference to draw for an icon in a stateful control: when `active` is true, automatic solid
|
|
122
|
+
* is on and the icon has a solid drawing, a plain `"heart"` becomes `"heart:solid"`. References
|
|
123
|
+
* with an explicit variant are kept as written.
|
|
124
|
+
*/
|
|
125
|
+
declare function mIconForState(value: string | null | undefined, active: boolean, solid?: MIconSolidConfig | null): string;
|
|
126
|
+
/**
|
|
127
|
+
* Builds the `<svg>` that `<m-icon>` renders (with the `m-icon` class on the svg itself), for places that
|
|
128
|
+
* create DOM imperatively (e.g. directives). Returns `null` for unknown names.
|
|
129
|
+
*/
|
|
130
|
+
declare function createMIconSvg(document: Document, name: string | null | undefined, solid?: MIconSolidConfig | null): SVGSVGElement | null;
|
|
131
|
+
/**
|
|
132
|
+
* Inline SVG icon from the maicon set (`@maliardic/ma-icon`). Size follows `font-size`, colour follows `color`.
|
|
133
|
+
*
|
|
134
|
+
* ```html
|
|
135
|
+
* <m-icon name="search" />
|
|
136
|
+
* <button mButton aria-label="Ara"><m-icon name="search" /></button>
|
|
137
|
+
* <m-icon name="alert-triangle" label="Uyarı" />
|
|
138
|
+
* <m-icon name="heart:solid" /> <!-- needs provideMIconSolid() -->
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
declare class MIcon {
|
|
142
|
+
/** Icon name, optionally with `:solid` (e.g. `heart:solid`). Unknown names render nothing. */
|
|
143
|
+
readonly name: _angular_core.InputSignal<MIconInput | null | undefined>;
|
|
144
|
+
/** Accessible name. Empty means decorative (`aria-hidden`). */
|
|
145
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
146
|
+
protected readonly strokeWidth = 1.5;
|
|
147
|
+
private readonly solid;
|
|
148
|
+
protected readonly resolved: _angular_core.Signal<MIconResolved | null>;
|
|
149
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MIcon, never>;
|
|
150
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MIcon, "m-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
151
|
+
}
|
|
152
|
+
|
|
64
153
|
interface MAccordionHeaderTemplateContext {
|
|
65
154
|
expanded: boolean;
|
|
66
155
|
disabled: boolean;
|
|
@@ -70,7 +159,7 @@ interface MAccordionHeaderTemplateContext {
|
|
|
70
159
|
declare class MAccordionPanel {
|
|
71
160
|
readonly value: _angular_core.InputSignal<string>;
|
|
72
161
|
readonly header: _angular_core.InputSignal<string>;
|
|
73
|
-
readonly icon: _angular_core.InputSignal<
|
|
162
|
+
readonly icon: _angular_core.InputSignal<MIconInput>;
|
|
74
163
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
75
164
|
readonly headerTemplate: _angular_core.Signal<TemplateRef<MAccordionHeaderTemplateContext> | undefined>;
|
|
76
165
|
readonly panelId: string;
|
|
@@ -124,8 +213,11 @@ declare class MBadge {
|
|
|
124
213
|
|
|
125
214
|
type MButtonType = "button" | "submit" | "reset";
|
|
126
215
|
declare class MButton {
|
|
127
|
-
readonly
|
|
216
|
+
protected readonly pressedAttr: _angular_core.Signal<string | null>;
|
|
217
|
+
readonly icon: _angular_core.InputSignal<MIconInput>;
|
|
128
218
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
219
|
+
/** Toggle state, forwarded to the inner button. A pressed button draws its icon solid. */
|
|
220
|
+
readonly ariaPressed: _angular_core.InputSignal<boolean | "true" | "false" | "mixed" | null | undefined>;
|
|
129
221
|
readonly size: _angular_core.InputSignal<MControlSize>;
|
|
130
222
|
readonly type: _angular_core.InputSignal<MButtonType>;
|
|
131
223
|
readonly block: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -133,7 +225,7 @@ declare class MButton {
|
|
|
133
225
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
134
226
|
readonly styleClass: _angular_core.InputSignal<string>;
|
|
135
227
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MButton, never>;
|
|
136
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MButton, "m-button", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
228
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MButton, "m-button", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaPressed": { "alias": "aria-pressed"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
137
229
|
}
|
|
138
230
|
|
|
139
231
|
declare function provideValueAccessor(type: () => Type<unknown>): Provider;
|
|
@@ -431,43 +523,28 @@ declare class MFileList<T = unknown> {
|
|
|
431
523
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MFileList<any>, "m-file-list", never, { "files": { "alias": "files"; "required": false; "isSignal": true; }; "nameField": { "alias": "nameField"; "required": false; "isSignal": true; }; "sizeField": { "alias": "sizeField"; "required": false; "isSignal": true; }; "typeField": { "alias": "typeField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "downloadable": { "alias": "downloadable"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "unnamedLabel": { "alias": "unnamedLabel"; "required": false; "isSignal": true; }; "downloadLabel": { "alias": "downloadLabel"; "required": false; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; }, { "download": "download"; "remove": "remove"; }, never, never, true, never>;
|
|
432
524
|
}
|
|
433
525
|
|
|
434
|
-
/**
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Builds the `<svg>` that `<m-icon>` renders (with the `m-icon` class on the svg itself), for places that
|
|
444
|
-
* create DOM imperatively (e.g. directives). Returns `null` for unknown names.
|
|
445
|
-
*/
|
|
446
|
-
declare function createMIconSvg(document: Document, name: string | null | undefined): SVGSVGElement | null;
|
|
526
|
+
/** Options for `provideMIconSolid()`. */
|
|
527
|
+
interface MIconSolidOptions {
|
|
528
|
+
/**
|
|
529
|
+
* Switch the active `m-tab` and pressed buttons (`aria-pressed="true"`) to the icon's solid
|
|
530
|
+
* drawing automatically. Default `true`. Write `icon="heart:outline"` to keep one icon outline.
|
|
531
|
+
*/
|
|
532
|
+
activeStates?: boolean;
|
|
533
|
+
}
|
|
447
534
|
/**
|
|
448
|
-
*
|
|
535
|
+
* Registers the solid icon drawings (`MAICON_SOLID`, ~20 KB gzip) so `"heart:solid"` and the
|
|
536
|
+
* automatic active-state solid work. Apps that never call it do not ship the solid path data.
|
|
449
537
|
*
|
|
450
|
-
* ```
|
|
451
|
-
*
|
|
452
|
-
* <button mButton aria-label="Ara"><m-icon name="search" /></button>
|
|
453
|
-
* <m-icon name="alert-triangle" label="Uyarı" />
|
|
538
|
+
* ```ts
|
|
539
|
+
* bootstrapApplication(App, { providers: [provideMIconSolid()] });
|
|
454
540
|
* ```
|
|
455
541
|
*/
|
|
456
|
-
declare
|
|
457
|
-
/** Icon name. Unknown names render nothing. */
|
|
458
|
-
readonly name: _angular_core.InputSignal<string | null | undefined>;
|
|
459
|
-
/** Accessible name. Empty means decorative (`aria-hidden`). */
|
|
460
|
-
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
461
|
-
protected readonly strokeWidth = 1.5;
|
|
462
|
-
protected readonly glyph: _angular_core.Signal<MaiconGlyph | null>;
|
|
463
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MIcon, never>;
|
|
464
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MIcon, "m-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
465
|
-
}
|
|
542
|
+
declare function provideMIconSolid(options?: MIconSolidOptions): EnvironmentProviders;
|
|
466
543
|
|
|
467
544
|
declare class MInput implements ControlValueAccessor {
|
|
468
545
|
readonly inputId: _angular_core.InputSignal<string>;
|
|
469
546
|
readonly type: _angular_core.InputSignal<MInputType>;
|
|
470
|
-
readonly icon: _angular_core.InputSignal<
|
|
547
|
+
readonly icon: _angular_core.InputSignal<MIconInput>;
|
|
471
548
|
readonly mask: _angular_core.InputSignal<string>;
|
|
472
549
|
readonly rawValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
473
550
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
@@ -502,7 +579,7 @@ declare class MInput implements ControlValueAccessor {
|
|
|
502
579
|
|
|
503
580
|
declare class MInputNumber implements ControlValueAccessor {
|
|
504
581
|
readonly inputId: _angular_core.InputSignal<string>;
|
|
505
|
-
readonly icon: _angular_core.InputSignal<
|
|
582
|
+
readonly icon: _angular_core.InputSignal<MIconInput>;
|
|
506
583
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
507
584
|
readonly value: _angular_core.InputSignal<string | number | null>;
|
|
508
585
|
readonly name: _angular_core.InputSignal<string>;
|
|
@@ -606,7 +683,7 @@ interface MMenuItem {
|
|
|
606
683
|
id?: string;
|
|
607
684
|
label?: string;
|
|
608
685
|
value: string;
|
|
609
|
-
icon?:
|
|
686
|
+
icon?: MIconInput;
|
|
610
687
|
disabled?: boolean;
|
|
611
688
|
items?: readonly MMenuItem[];
|
|
612
689
|
routerLink?: string | readonly unknown[];
|
|
@@ -950,7 +1027,7 @@ declare class MSelect implements ControlValueAccessor, OnDestroy {
|
|
|
950
1027
|
private overlayRef;
|
|
951
1028
|
private outsideSubscription;
|
|
952
1029
|
readonly inputId: _angular_core.InputSignal<string>;
|
|
953
|
-
readonly icon: _angular_core.InputSignal<
|
|
1030
|
+
readonly icon: _angular_core.InputSignal<MIconInput>;
|
|
954
1031
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
955
1032
|
readonly value: _angular_core.InputSignal<unknown>;
|
|
956
1033
|
readonly name: _angular_core.InputSignal<string>;
|
|
@@ -1422,7 +1499,7 @@ interface MTabHeaderTemplateContext {
|
|
|
1422
1499
|
declare class MTab {
|
|
1423
1500
|
readonly value: _angular_core.InputSignal<string>;
|
|
1424
1501
|
readonly label: _angular_core.InputSignal<string>;
|
|
1425
|
-
readonly icon: _angular_core.InputSignal<
|
|
1502
|
+
readonly icon: _angular_core.InputSignal<MIconInput>;
|
|
1426
1503
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1427
1504
|
readonly lazy: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1428
1505
|
readonly headerTemplate: _angular_core.Signal<TemplateRef<MTabHeaderTemplateContext> | undefined>;
|
|
@@ -1437,6 +1514,7 @@ declare class MTab {
|
|
|
1437
1514
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MTab, "m-tab", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; }, {}, ["headerTemplate", "lazyTemplate"], ["*"], true, never>;
|
|
1438
1515
|
}
|
|
1439
1516
|
declare class MTabs {
|
|
1517
|
+
private readonly solid;
|
|
1440
1518
|
readonly value: _angular_core.InputSignal<string>;
|
|
1441
1519
|
readonly size: _angular_core.InputSignal<MControlSize>;
|
|
1442
1520
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
@@ -1449,6 +1527,8 @@ declare class MTabs {
|
|
|
1449
1527
|
constructor();
|
|
1450
1528
|
protected tabTrack(tab: MTab): string;
|
|
1451
1529
|
protected isActive(tab: MTab): boolean;
|
|
1530
|
+
/** The active tab draws its icon solid when `provideMIconSolid()` allows it. */
|
|
1531
|
+
protected tabIcon(tab: MTab): string;
|
|
1452
1532
|
protected headerContext(tab: MTab): MTabHeaderTemplateContext;
|
|
1453
1533
|
protected selectTab(tab: MTab): void;
|
|
1454
1534
|
protected onTabKeydown(event: KeyboardEvent, tab: MTab): void;
|
|
@@ -1498,7 +1578,7 @@ interface MToastOptions {
|
|
|
1498
1578
|
sticky?: boolean;
|
|
1499
1579
|
life?: number;
|
|
1500
1580
|
/** maicon name. Empty string hides the icon; omitted uses the type default. */
|
|
1501
|
-
icon?:
|
|
1581
|
+
icon?: MIconInput;
|
|
1502
1582
|
closable?: boolean;
|
|
1503
1583
|
styleClass?: string;
|
|
1504
1584
|
}
|
|
@@ -1509,7 +1589,7 @@ interface MToastMessage {
|
|
|
1509
1589
|
type: MToastType;
|
|
1510
1590
|
sticky: boolean;
|
|
1511
1591
|
life: number;
|
|
1512
|
-
icon:
|
|
1592
|
+
icon: MIconInput;
|
|
1513
1593
|
closable: boolean;
|
|
1514
1594
|
styleClass: string;
|
|
1515
1595
|
closing: boolean;
|
|
@@ -1591,13 +1671,21 @@ declare class MButtonDirective {
|
|
|
1591
1671
|
private readonly elementRef;
|
|
1592
1672
|
private readonly renderer;
|
|
1593
1673
|
private readonly document;
|
|
1674
|
+
private readonly solid;
|
|
1594
1675
|
private iconElement;
|
|
1676
|
+
/** Mirrors `aria-pressed="true"` on the host (toggle buttons). */
|
|
1677
|
+
private readonly pressed;
|
|
1595
1678
|
readonly size: _angular_core.InputSignal<MControlSize>;
|
|
1596
|
-
/**
|
|
1597
|
-
|
|
1679
|
+
/**
|
|
1680
|
+
* maicon name rendered before the content, optionally with `:solid`. While the button has
|
|
1681
|
+
* `aria-pressed="true"` it draws the solid variant (with `provideMIconSolid()`).
|
|
1682
|
+
*/
|
|
1683
|
+
readonly icon: _angular_core.InputSignal<MIconInput>;
|
|
1598
1684
|
readonly block: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1599
1685
|
readonly iconOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1600
1686
|
constructor();
|
|
1687
|
+
/** Follows `aria-pressed` however it is set (static attribute, `[attr.aria-pressed]`, …). */
|
|
1688
|
+
private watchPressed;
|
|
1601
1689
|
private syncIcon;
|
|
1602
1690
|
private removeIcon;
|
|
1603
1691
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MButtonDirective, never>;
|
|
@@ -1692,7 +1780,7 @@ declare function syncMThemeToOverlay(hostEl: HTMLElement, overlayPaneEl: HTMLEle
|
|
|
1692
1780
|
interface MConfirmation {
|
|
1693
1781
|
header?: string;
|
|
1694
1782
|
message: string;
|
|
1695
|
-
icon?:
|
|
1783
|
+
icon?: MIconInput;
|
|
1696
1784
|
acceptLabel?: string;
|
|
1697
1785
|
rejectLabel?: string;
|
|
1698
1786
|
acceptVisible?: boolean;
|
|
@@ -1730,5 +1818,5 @@ declare class Confirmation {
|
|
|
1730
1818
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Confirmation, "m-confirmationDialog", never, { "acceptLabel": { "alias": "acceptLabel"; "required": false; "isSignal": true; }; "rejectLabel": { "alias": "rejectLabel"; "required": false; "isSignal": true; }; "acceptButtonStyle": { "alias": "acceptButtonStyle"; "required": false; "isSignal": true; }; "rejectButtonStyle": { "alias": "rejectButtonStyle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1731
1819
|
}
|
|
1732
1820
|
|
|
1733
|
-
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 };
|
|
1734
|
-
export type { MBadgePosition, MBadgeSeverity, MBadgeSize, MCheckboxChangeEvent, MChoiceOption, MChoiceOptionInput, MConfirmation, MControlChangeFn, MControlSize, MControlTouchedFn, MDrawerPosition, MFieldValueFormatter, MFieldValuePipeName, MFieldValueRow, MFieldValueSource, MIconName, MInputType, MListboxItemContext, MMenuItem, MMultiSelectChangeEvent, MPopoverPosition, MProgressBarMode, MProgressBarSeverity, MProgressBarSize, MProgressSpinnerMode, MProgressSpinnerSeverity, MProgressSpinnerSize, MSelectChangeEvent, MSelectOption, MSelectOptionInput, MSwitchChangeEvent, MTableColumnAlign, MTableColumnDef, MTableColumnState, MTableFilterMatchMode, MTableLazyLoadEvent, MTableRow, MTableSelectionMode, MTableSortDirection, MToastMessage, MToastOptions, MToastPosition, MToastType, MTooltipPosition, MaFieldData, MaFieldType, MaFieldValidations, MaFields };
|
|
1821
|
+
export { Confirmation, MAccordion, MAccordionPanel, MBadge, MBadgeDirective, MButton, MButtonDirective, MCheckbox, MCommandMenu, MConfirmationService, MDatePicker, MDialog, MDrawer, MFieldValuePipe, MFileList, MFileUpload, MIcon, MInput, MInputDirective, MInputNumber, MInputNumberDirective, MListbox, MMenu, MMenuSearch, MMultiSelect, MPopover, MProgressBar, MProgressSpinner, MRadio, MRadioGroup, MSelect, MSwitch, MTab, MTable, MTableColumn, MTabs, MTextarea, MTieredMenu, MToast, MToastService, MTooltipDirective, M_ICON_NAMES, M_ICON_SOLID, createMIconSvg, getFieldValue, isMIconName, mIconForState, mIconGlyph, noopTouched, parseMIconName, provideMIconSolid, provideValueAccessor, resolveFieldDisplayValue, resolveFieldRawValue, resolveMIcon, syncMThemeToOverlay };
|
|
1822
|
+
export type { MBadgePosition, MBadgeSeverity, MBadgeSize, MCheckboxChangeEvent, MChoiceOption, MChoiceOptionInput, MConfirmation, MControlChangeFn, MControlSize, MControlTouchedFn, MDrawerPosition, MFieldValueFormatter, MFieldValuePipeName, MFieldValueRow, MFieldValueSource, MIconInput, MIconName, MIconParsed, MIconRef, MIconResolved, MIconSolidConfig, MIconSolidOptions, MIconVariant, MIconVariantName, MInputType, MListboxItemContext, MMenuItem, MMultiSelectChangeEvent, MPopoverPosition, MProgressBarMode, MProgressBarSeverity, MProgressBarSize, MProgressSpinnerMode, MProgressSpinnerSeverity, MProgressSpinnerSize, MSelectChangeEvent, MSelectOption, MSelectOptionInput, MSwitchChangeEvent, MTableColumnAlign, MTableColumnDef, MTableColumnState, MTableFilterMatchMode, MTableLazyLoadEvent, MTableRow, MTableSelectionMode, MTableSortDirection, MToastMessage, MToastOptions, MToastPosition, MToastType, MTooltipPosition, MaFieldData, MaFieldType, MaFieldValidations, MaFields };
|