mn-angular-lib 2.0.34 → 2.0.35
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/fesm2022/mn-angular-lib-alert.mjs +515 -527
- package/fesm2022/mn-angular-lib-alert.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-bottom-sheet.mjs +264 -357
- package/fesm2022/mn-angular-lib-bottom-sheet.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-button.mjs +819 -382
- package/fesm2022/mn-angular-lib-button.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-calendar-core.mjs +240 -365
- package/fesm2022/mn-angular-lib-calendar-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-calendar.mjs +1691 -1545
- package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-collection.mjs +2367 -2796
- package/fesm2022/mn-angular-lib-collection.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-core.mjs +693 -1241
- package/fesm2022/mn-angular-lib-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-display.mjs +679 -712
- package/fesm2022/mn-angular-lib-display.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-forms.mjs +3671 -4647
- package/fesm2022/mn-angular-lib-forms.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-keyboard.mjs +221 -190
- package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-core.mjs +711 -896
- package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-ui.mjs +2089 -2035
- package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal.mjs +76 -121
- package/fesm2022/mn-angular-lib-modal.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-rich-text-editor.mjs +289 -277
- package/fesm2022/mn-angular-lib-rich-text-editor.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-segmented.mjs +189 -241
- package/fesm2022/mn-angular-lib-segmented.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-tab.mjs +409 -642
- package/fesm2022/mn-angular-lib-tab.mjs.map +1 -1
- package/fesm2022/mn-angular-lib.mjs +16 -29
- package/package.json +1 -1
- package/types/mn-angular-lib-alert.d.ts +239 -241
- package/types/mn-angular-lib-bottom-sheet.d.ts +190 -150
- package/types/mn-angular-lib-button.d.ts +319 -317
- package/types/mn-angular-lib-calendar-core.d.ts +199 -209
- package/types/mn-angular-lib-calendar.d.ts +656 -511
- package/types/mn-angular-lib-collection.d.ts +1649 -1585
- package/types/mn-angular-lib-core.d.ts +524 -535
- package/types/mn-angular-lib-display.d.ts +946 -886
- package/types/mn-angular-lib-forms.d.ts +3012 -3013
- package/types/mn-angular-lib-keyboard.d.ts +125 -85
- package/types/mn-angular-lib-modal-core.d.ts +978 -994
- package/types/mn-angular-lib-modal-ui.d.ts +541 -493
- package/types/mn-angular-lib-modal.d.ts +24 -27
- package/types/mn-angular-lib-rich-text-editor.d.ts +131 -98
- package/types/mn-angular-lib-segmented.d.ts +354 -341
- package/types/mn-angular-lib-tab.d.ts +345 -336
- package/types/mn-angular-lib.d.ts +16 -16
- package/fesm2022/mn-angular-lib.mjs.map +0 -1
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
6
|
-
import * as _lucide_angular from '@lucide/angular';
|
|
7
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
8
|
-
|
|
1
|
+
import { VariantProps } from "tailwind-variants";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { EventEmitter, OnChanges, OnInit } from "@angular/core";
|
|
4
|
+
import { SafeHtml } from "@angular/platform-browser";
|
|
9
5
|
/**
|
|
10
6
|
* Styling for {@link MnCard}, as tailwind-variants slots: `root` is the card element
|
|
11
7
|
* itself, `accent` the optional bar along its top edge, `header` the heading row and
|
|
@@ -16,384 +12,382 @@ import { SafeHtml } from '@angular/platform-browser';
|
|
|
16
12
|
* page background) and falls back to `base-100` otherwise, the same fallback device
|
|
17
13
|
* `mnBadge` uses for its `-text` tokens.
|
|
18
14
|
*/
|
|
19
|
-
declare const mnCardVariants:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
md: {
|
|
30
|
-
root: string;
|
|
31
|
-
};
|
|
32
|
-
lg: {
|
|
33
|
-
root: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
/** How the children flow: stacked (the default) or on one line, centred. */
|
|
37
|
-
layout: {
|
|
38
|
-
column: {
|
|
39
|
-
root: string;
|
|
40
|
-
};
|
|
41
|
-
row: {
|
|
42
|
-
root: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Hover response. None by default: a hover promises that a click does something, and
|
|
47
|
-
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
48
|
-
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
49
|
-
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
50
|
-
* kept for a consumer that already asks for it.
|
|
51
|
-
*/
|
|
52
|
-
hover: {
|
|
53
|
-
none: {};
|
|
54
|
-
shadow: {
|
|
55
|
-
root: string;
|
|
56
|
-
};
|
|
57
|
-
lift: {
|
|
58
|
-
root: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
63
|
-
* defines them (a short rise-in, delayed per card through
|
|
64
|
-
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
65
|
-
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
66
|
-
* page's static cards do not all move at once.
|
|
67
|
-
*/
|
|
68
|
-
enter: {
|
|
69
|
-
none: {};
|
|
70
|
-
rise: {
|
|
71
|
-
root: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
/** Corner rounding, in mn-button's radius tokens. */
|
|
75
|
-
borderRadius: {
|
|
76
|
-
none: {
|
|
77
|
-
root: string;
|
|
78
|
-
};
|
|
79
|
-
xs: {
|
|
80
|
-
root: string;
|
|
81
|
-
};
|
|
82
|
-
sm: {
|
|
83
|
-
root: string;
|
|
84
|
-
};
|
|
85
|
-
md: {
|
|
86
|
-
root: string;
|
|
87
|
-
};
|
|
88
|
-
lg: {
|
|
89
|
-
root: string;
|
|
90
|
-
};
|
|
91
|
-
xl: {
|
|
92
|
-
root: string;
|
|
93
|
-
};
|
|
94
|
-
two_xl: {
|
|
95
|
-
root: string;
|
|
96
|
-
};
|
|
97
|
-
three_xl: {
|
|
98
|
-
root: string;
|
|
99
|
-
};
|
|
100
|
-
four_xl: {
|
|
101
|
-
root: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Colour of the accent bar and of the heading's icon chip: the same palette as
|
|
106
|
-
* mn-button and the icon chip. What the colour *means* (a kind, a status, a
|
|
107
|
-
* module) is the consumer's choice; the card only renders it.
|
|
108
|
-
*/
|
|
109
|
-
color: {
|
|
110
|
-
primary: {
|
|
111
|
-
accent: string;
|
|
112
|
-
};
|
|
113
|
-
secondary: {
|
|
114
|
-
accent: string;
|
|
115
|
-
};
|
|
116
|
-
accent: {
|
|
117
|
-
accent: string;
|
|
118
|
-
};
|
|
119
|
-
success: {
|
|
120
|
-
accent: string;
|
|
121
|
-
};
|
|
122
|
-
warning: {
|
|
123
|
-
accent: string;
|
|
124
|
-
};
|
|
125
|
-
danger: {
|
|
126
|
-
accent: string;
|
|
127
|
-
};
|
|
128
|
-
gray: {
|
|
129
|
-
accent: string;
|
|
130
|
-
};
|
|
15
|
+
export declare const mnCardVariants: import("tailwind-variants").TVReturnType<{
|
|
16
|
+
/**
|
|
17
|
+
* Inner padding, and with it the gap between the card's children: a tile needs
|
|
18
|
+
* less air than a section card, and a section card that had to say `gap-4` on
|
|
19
|
+
* every use would drift.
|
|
20
|
+
*/
|
|
21
|
+
padding: {
|
|
22
|
+
sm: {
|
|
23
|
+
root: string;
|
|
131
24
|
};
|
|
25
|
+
md: {
|
|
26
|
+
root: string;
|
|
27
|
+
};
|
|
28
|
+
lg: {
|
|
29
|
+
root: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/** How the children flow: stacked (the default) or on one line, centred. */
|
|
33
|
+
layout: {
|
|
34
|
+
column: {
|
|
35
|
+
root: string;
|
|
36
|
+
};
|
|
37
|
+
row: {
|
|
38
|
+
root: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Hover response. None by default: a hover promises that a click does something, and
|
|
43
|
+
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
44
|
+
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
45
|
+
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
46
|
+
* kept for a consumer that already asks for it.
|
|
47
|
+
*/
|
|
48
|
+
hover: {
|
|
49
|
+
none: {};
|
|
50
|
+
shadow: {
|
|
51
|
+
root: string;
|
|
52
|
+
};
|
|
53
|
+
lift: {
|
|
54
|
+
root: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
59
|
+
* defines them (a short rise-in, delayed per card through
|
|
60
|
+
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
61
|
+
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
62
|
+
* page's static cards do not all move at once.
|
|
63
|
+
*/
|
|
64
|
+
enter: {
|
|
65
|
+
none: {};
|
|
66
|
+
rise: {
|
|
67
|
+
root: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/** Corner rounding, in mn-button's radius tokens. */
|
|
71
|
+
borderRadius: {
|
|
72
|
+
none: {
|
|
73
|
+
root: string;
|
|
74
|
+
};
|
|
75
|
+
xs: {
|
|
76
|
+
root: string;
|
|
77
|
+
};
|
|
78
|
+
sm: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
md: {
|
|
82
|
+
root: string;
|
|
83
|
+
};
|
|
84
|
+
lg: {
|
|
85
|
+
root: string;
|
|
86
|
+
};
|
|
87
|
+
xl: {
|
|
88
|
+
root: string;
|
|
89
|
+
};
|
|
90
|
+
two_xl: {
|
|
91
|
+
root: string;
|
|
92
|
+
};
|
|
93
|
+
three_xl: {
|
|
94
|
+
root: string;
|
|
95
|
+
};
|
|
96
|
+
four_xl: {
|
|
97
|
+
root: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Colour of the accent bar and of the heading's icon chip: the same palette as
|
|
102
|
+
* mn-button and the icon chip. What the colour *means* (a kind, a status, a
|
|
103
|
+
* module) is the consumer's choice; the card only renders it.
|
|
104
|
+
*/
|
|
105
|
+
color: {
|
|
106
|
+
primary: {
|
|
107
|
+
accent: string;
|
|
108
|
+
};
|
|
109
|
+
secondary: {
|
|
110
|
+
accent: string;
|
|
111
|
+
};
|
|
112
|
+
accent: {
|
|
113
|
+
accent: string;
|
|
114
|
+
};
|
|
115
|
+
success: {
|
|
116
|
+
accent: string;
|
|
117
|
+
};
|
|
118
|
+
warning: {
|
|
119
|
+
accent: string;
|
|
120
|
+
};
|
|
121
|
+
danger: {
|
|
122
|
+
accent: string;
|
|
123
|
+
};
|
|
124
|
+
gray: {
|
|
125
|
+
accent: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
132
128
|
}, {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
129
|
+
root: string;
|
|
130
|
+
accent: string;
|
|
131
|
+
header: string;
|
|
132
|
+
title: string;
|
|
137
133
|
}, undefined, {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
};
|
|
150
|
-
lg: {
|
|
151
|
-
root: string;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
/** How the children flow: stacked (the default) or on one line, centred. */
|
|
155
|
-
layout: {
|
|
156
|
-
column: {
|
|
157
|
-
root: string;
|
|
158
|
-
};
|
|
159
|
-
row: {
|
|
160
|
-
root: string;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* Hover response. None by default: a hover promises that a click does something, and
|
|
165
|
-
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
166
|
-
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
167
|
-
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
168
|
-
* kept for a consumer that already asks for it.
|
|
169
|
-
*/
|
|
170
|
-
hover: {
|
|
171
|
-
none: {};
|
|
172
|
-
shadow: {
|
|
173
|
-
root: string;
|
|
174
|
-
};
|
|
175
|
-
lift: {
|
|
176
|
-
root: string;
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
181
|
-
* defines them (a short rise-in, delayed per card through
|
|
182
|
-
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
183
|
-
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
184
|
-
* page's static cards do not all move at once.
|
|
185
|
-
*/
|
|
186
|
-
enter: {
|
|
187
|
-
none: {};
|
|
188
|
-
rise: {
|
|
189
|
-
root: string;
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
/** Corner rounding, in mn-button's radius tokens. */
|
|
193
|
-
borderRadius: {
|
|
194
|
-
none: {
|
|
195
|
-
root: string;
|
|
196
|
-
};
|
|
197
|
-
xs: {
|
|
198
|
-
root: string;
|
|
199
|
-
};
|
|
200
|
-
sm: {
|
|
201
|
-
root: string;
|
|
202
|
-
};
|
|
203
|
-
md: {
|
|
204
|
-
root: string;
|
|
205
|
-
};
|
|
206
|
-
lg: {
|
|
207
|
-
root: string;
|
|
208
|
-
};
|
|
209
|
-
xl: {
|
|
210
|
-
root: string;
|
|
211
|
-
};
|
|
212
|
-
two_xl: {
|
|
213
|
-
root: string;
|
|
214
|
-
};
|
|
215
|
-
three_xl: {
|
|
216
|
-
root: string;
|
|
217
|
-
};
|
|
218
|
-
four_xl: {
|
|
219
|
-
root: string;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* Colour of the accent bar and of the heading's icon chip: the same palette as
|
|
224
|
-
* mn-button and the icon chip. What the colour *means* (a kind, a status, a
|
|
225
|
-
* module) is the consumer's choice; the card only renders it.
|
|
226
|
-
*/
|
|
227
|
-
color: {
|
|
228
|
-
primary: {
|
|
229
|
-
accent: string;
|
|
230
|
-
};
|
|
231
|
-
secondary: {
|
|
232
|
-
accent: string;
|
|
233
|
-
};
|
|
234
|
-
accent: {
|
|
235
|
-
accent: string;
|
|
236
|
-
};
|
|
237
|
-
success: {
|
|
238
|
-
accent: string;
|
|
239
|
-
};
|
|
240
|
-
warning: {
|
|
241
|
-
accent: string;
|
|
242
|
-
};
|
|
243
|
-
danger: {
|
|
244
|
-
accent: string;
|
|
245
|
-
};
|
|
246
|
-
gray: {
|
|
247
|
-
accent: string;
|
|
248
|
-
};
|
|
134
|
+
/**
|
|
135
|
+
* Inner padding, and with it the gap between the card's children: a tile needs
|
|
136
|
+
* less air than a section card, and a section card that had to say `gap-4` on
|
|
137
|
+
* every use would drift.
|
|
138
|
+
*/
|
|
139
|
+
padding: {
|
|
140
|
+
sm: {
|
|
141
|
+
root: string;
|
|
142
|
+
};
|
|
143
|
+
md: {
|
|
144
|
+
root: string;
|
|
249
145
|
};
|
|
146
|
+
lg: {
|
|
147
|
+
root: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
/** How the children flow: stacked (the default) or on one line, centred. */
|
|
151
|
+
layout: {
|
|
152
|
+
column: {
|
|
153
|
+
root: string;
|
|
154
|
+
};
|
|
155
|
+
row: {
|
|
156
|
+
root: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Hover response. None by default: a hover promises that a click does something, and
|
|
161
|
+
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
162
|
+
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
163
|
+
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
164
|
+
* kept for a consumer that already asks for it.
|
|
165
|
+
*/
|
|
166
|
+
hover: {
|
|
167
|
+
none: {};
|
|
168
|
+
shadow: {
|
|
169
|
+
root: string;
|
|
170
|
+
};
|
|
171
|
+
lift: {
|
|
172
|
+
root: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
177
|
+
* defines them (a short rise-in, delayed per card through
|
|
178
|
+
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
179
|
+
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
180
|
+
* page's static cards do not all move at once.
|
|
181
|
+
*/
|
|
182
|
+
enter: {
|
|
183
|
+
none: {};
|
|
184
|
+
rise: {
|
|
185
|
+
root: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
/** Corner rounding, in mn-button's radius tokens. */
|
|
189
|
+
borderRadius: {
|
|
190
|
+
none: {
|
|
191
|
+
root: string;
|
|
192
|
+
};
|
|
193
|
+
xs: {
|
|
194
|
+
root: string;
|
|
195
|
+
};
|
|
196
|
+
sm: {
|
|
197
|
+
root: string;
|
|
198
|
+
};
|
|
199
|
+
md: {
|
|
200
|
+
root: string;
|
|
201
|
+
};
|
|
202
|
+
lg: {
|
|
203
|
+
root: string;
|
|
204
|
+
};
|
|
205
|
+
xl: {
|
|
206
|
+
root: string;
|
|
207
|
+
};
|
|
208
|
+
two_xl: {
|
|
209
|
+
root: string;
|
|
210
|
+
};
|
|
211
|
+
three_xl: {
|
|
212
|
+
root: string;
|
|
213
|
+
};
|
|
214
|
+
four_xl: {
|
|
215
|
+
root: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Colour of the accent bar and of the heading's icon chip: the same palette as
|
|
220
|
+
* mn-button and the icon chip. What the colour *means* (a kind, a status, a
|
|
221
|
+
* module) is the consumer's choice; the card only renders it.
|
|
222
|
+
*/
|
|
223
|
+
color: {
|
|
224
|
+
primary: {
|
|
225
|
+
accent: string;
|
|
226
|
+
};
|
|
227
|
+
secondary: {
|
|
228
|
+
accent: string;
|
|
229
|
+
};
|
|
230
|
+
accent: {
|
|
231
|
+
accent: string;
|
|
232
|
+
};
|
|
233
|
+
success: {
|
|
234
|
+
accent: string;
|
|
235
|
+
};
|
|
236
|
+
warning: {
|
|
237
|
+
accent: string;
|
|
238
|
+
};
|
|
239
|
+
danger: {
|
|
240
|
+
accent: string;
|
|
241
|
+
};
|
|
242
|
+
gray: {
|
|
243
|
+
accent: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
250
246
|
}, {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
};
|
|
268
|
-
lg: {
|
|
269
|
-
root: string;
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
/** How the children flow: stacked (the default) or on one line, centred. */
|
|
273
|
-
layout: {
|
|
274
|
-
column: {
|
|
275
|
-
root: string;
|
|
276
|
-
};
|
|
277
|
-
row: {
|
|
278
|
-
root: string;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
/**
|
|
282
|
-
* Hover response. None by default: a hover promises that a click does something, and
|
|
283
|
-
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
284
|
-
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
285
|
-
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
286
|
-
* kept for a consumer that already asks for it.
|
|
287
|
-
*/
|
|
288
|
-
hover: {
|
|
289
|
-
none: {};
|
|
290
|
-
shadow: {
|
|
291
|
-
root: string;
|
|
292
|
-
};
|
|
293
|
-
lift: {
|
|
294
|
-
root: string;
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
/**
|
|
298
|
-
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
299
|
-
* defines them (a short rise-in, delayed per card through
|
|
300
|
-
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
301
|
-
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
302
|
-
* page's static cards do not all move at once.
|
|
303
|
-
*/
|
|
304
|
-
enter: {
|
|
305
|
-
none: {};
|
|
306
|
-
rise: {
|
|
307
|
-
root: string;
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
/** Corner rounding, in mn-button's radius tokens. */
|
|
311
|
-
borderRadius: {
|
|
312
|
-
none: {
|
|
313
|
-
root: string;
|
|
314
|
-
};
|
|
315
|
-
xs: {
|
|
316
|
-
root: string;
|
|
317
|
-
};
|
|
318
|
-
sm: {
|
|
319
|
-
root: string;
|
|
320
|
-
};
|
|
321
|
-
md: {
|
|
322
|
-
root: string;
|
|
323
|
-
};
|
|
324
|
-
lg: {
|
|
325
|
-
root: string;
|
|
326
|
-
};
|
|
327
|
-
xl: {
|
|
328
|
-
root: string;
|
|
329
|
-
};
|
|
330
|
-
two_xl: {
|
|
331
|
-
root: string;
|
|
332
|
-
};
|
|
333
|
-
three_xl: {
|
|
334
|
-
root: string;
|
|
335
|
-
};
|
|
336
|
-
four_xl: {
|
|
337
|
-
root: string;
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
/**
|
|
341
|
-
* Colour of the accent bar and of the heading's icon chip: the same palette as
|
|
342
|
-
* mn-button and the icon chip. What the colour *means* (a kind, a status, a
|
|
343
|
-
* module) is the consumer's choice; the card only renders it.
|
|
344
|
-
*/
|
|
345
|
-
color: {
|
|
346
|
-
primary: {
|
|
347
|
-
accent: string;
|
|
348
|
-
};
|
|
349
|
-
secondary: {
|
|
350
|
-
accent: string;
|
|
351
|
-
};
|
|
352
|
-
accent: {
|
|
353
|
-
accent: string;
|
|
354
|
-
};
|
|
355
|
-
success: {
|
|
356
|
-
accent: string;
|
|
357
|
-
};
|
|
358
|
-
warning: {
|
|
359
|
-
accent: string;
|
|
360
|
-
};
|
|
361
|
-
danger: {
|
|
362
|
-
accent: string;
|
|
363
|
-
};
|
|
364
|
-
gray: {
|
|
365
|
-
accent: string;
|
|
366
|
-
};
|
|
247
|
+
root: string;
|
|
248
|
+
accent: string;
|
|
249
|
+
header: string;
|
|
250
|
+
title: string;
|
|
251
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
252
|
+
/**
|
|
253
|
+
* Inner padding, and with it the gap between the card's children: a tile needs
|
|
254
|
+
* less air than a section card, and a section card that had to say `gap-4` on
|
|
255
|
+
* every use would drift.
|
|
256
|
+
*/
|
|
257
|
+
padding: {
|
|
258
|
+
sm: {
|
|
259
|
+
root: string;
|
|
260
|
+
};
|
|
261
|
+
md: {
|
|
262
|
+
root: string;
|
|
367
263
|
};
|
|
264
|
+
lg: {
|
|
265
|
+
root: string;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
/** How the children flow: stacked (the default) or on one line, centred. */
|
|
269
|
+
layout: {
|
|
270
|
+
column: {
|
|
271
|
+
root: string;
|
|
272
|
+
};
|
|
273
|
+
row: {
|
|
274
|
+
root: string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Hover response. None by default: a hover promises that a click does something, and
|
|
279
|
+
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
280
|
+
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
281
|
+
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
282
|
+
* kept for a consumer that already asks for it.
|
|
283
|
+
*/
|
|
284
|
+
hover: {
|
|
285
|
+
none: {};
|
|
286
|
+
shadow: {
|
|
287
|
+
root: string;
|
|
288
|
+
};
|
|
289
|
+
lift: {
|
|
290
|
+
root: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
295
|
+
* defines them (a short rise-in, delayed per card through
|
|
296
|
+
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
297
|
+
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
298
|
+
* page's static cards do not all move at once.
|
|
299
|
+
*/
|
|
300
|
+
enter: {
|
|
301
|
+
none: {};
|
|
302
|
+
rise: {
|
|
303
|
+
root: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
/** Corner rounding, in mn-button's radius tokens. */
|
|
307
|
+
borderRadius: {
|
|
308
|
+
none: {
|
|
309
|
+
root: string;
|
|
310
|
+
};
|
|
311
|
+
xs: {
|
|
312
|
+
root: string;
|
|
313
|
+
};
|
|
314
|
+
sm: {
|
|
315
|
+
root: string;
|
|
316
|
+
};
|
|
317
|
+
md: {
|
|
318
|
+
root: string;
|
|
319
|
+
};
|
|
320
|
+
lg: {
|
|
321
|
+
root: string;
|
|
322
|
+
};
|
|
323
|
+
xl: {
|
|
324
|
+
root: string;
|
|
325
|
+
};
|
|
326
|
+
two_xl: {
|
|
327
|
+
root: string;
|
|
328
|
+
};
|
|
329
|
+
three_xl: {
|
|
330
|
+
root: string;
|
|
331
|
+
};
|
|
332
|
+
four_xl: {
|
|
333
|
+
root: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Colour of the accent bar and of the heading's icon chip: the same palette as
|
|
338
|
+
* mn-button and the icon chip. What the colour *means* (a kind, a status, a
|
|
339
|
+
* module) is the consumer's choice; the card only renders it.
|
|
340
|
+
*/
|
|
341
|
+
color: {
|
|
342
|
+
primary: {
|
|
343
|
+
accent: string;
|
|
344
|
+
};
|
|
345
|
+
secondary: {
|
|
346
|
+
accent: string;
|
|
347
|
+
};
|
|
348
|
+
accent: {
|
|
349
|
+
accent: string;
|
|
350
|
+
};
|
|
351
|
+
success: {
|
|
352
|
+
accent: string;
|
|
353
|
+
};
|
|
354
|
+
warning: {
|
|
355
|
+
accent: string;
|
|
356
|
+
};
|
|
357
|
+
danger: {
|
|
358
|
+
accent: string;
|
|
359
|
+
};
|
|
360
|
+
gray: {
|
|
361
|
+
accent: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
368
364
|
}, {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
type MnCardVariants = VariantProps<typeof mnCardVariants>;
|
|
375
|
-
|
|
365
|
+
root: string;
|
|
366
|
+
accent: string;
|
|
367
|
+
header: string;
|
|
368
|
+
title: string;
|
|
369
|
+
}>>;
|
|
370
|
+
export type MnCardVariants = VariantProps<typeof mnCardVariants>;
|
|
376
371
|
/**
|
|
377
372
|
* Configuration of one {@link MnCard}. Every field is optional; the defaults give the
|
|
378
373
|
* compact stacked tile that does not react to the pointer, which is what most cards are.
|
|
379
374
|
*/
|
|
380
|
-
type MnCardTypes = {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
375
|
+
export type MnCardTypes = {
|
|
376
|
+
/** Inner padding and child gap. `sm` for tiles, `md` for section cards, `lg` for hero cards. */
|
|
377
|
+
padding: MnCardVariants['padding'];
|
|
378
|
+
/** Stacked children (`column`, the default) or one centred line (`row`). */
|
|
379
|
+
layout: MnCardVariants['layout'];
|
|
380
|
+
/** Hover response: `none` (default), `lift` for a card that is a link or a button, or `shadow`. */
|
|
381
|
+
hover: MnCardVariants['hover'];
|
|
382
|
+
/** Entrance animation: `none` (default) or `rise` (needs the consumer's `--animate-rise`). */
|
|
383
|
+
enter: MnCardVariants['enter'];
|
|
384
|
+
/** Corner rounding. Defaults to `two_xl`. */
|
|
385
|
+
borderRadius: MnCardVariants['borderRadius'];
|
|
386
|
+
/** Colour of the accent bar and the heading's icon chip. Defaults to `primary`. */
|
|
387
|
+
color: MnCardVariants['color'];
|
|
388
|
+
/** Whether to draw the accent bar along the top edge. Defaults to false. */
|
|
389
|
+
accent: boolean;
|
|
395
390
|
};
|
|
396
|
-
|
|
397
391
|
/**
|
|
398
392
|
* The card: a rounded surface with a hairline border, a hover response and an
|
|
399
393
|
* optional accent bar along its top edge. The body is whatever the consumer projects,
|
|
@@ -424,96 +418,117 @@ type MnCardTypes = {
|
|
|
424
418
|
* The other members of the family build on this shell: {@link MnStatTile} for one
|
|
425
419
|
* figure at a glance, and {@link MnProportionBar} for the bar inside a card.
|
|
426
420
|
*/
|
|
427
|
-
declare class MnCard {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
421
|
+
export declare class MnCard {
|
|
422
|
+
/** Padding, layout, hover, entrance, radius, colour and accent; see {@link MnCardTypes}. */
|
|
423
|
+
data: Partial<MnCardTypes>;
|
|
424
|
+
/**
|
|
425
|
+
* Section title, as a translation key or a literal. When set, the header row with
|
|
426
|
+
* the icon chip and `h2` renders above the body. Deliberately not called `title`: a
|
|
427
|
+
* static `title="..."` on the host would also become a browser tooltip.
|
|
428
|
+
*/
|
|
429
|
+
heading?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Delay before the entrance animation starts, in milliseconds, so a row of cards
|
|
432
|
+
* can rise one after another. Ignored when {@link MnCardTypes.enter} is `none`.
|
|
433
|
+
*/
|
|
434
|
+
enterDelayMs: number;
|
|
435
|
+
/** Resolved slot classes for the current configuration. */
|
|
436
|
+
get styles(): {
|
|
437
|
+
root: (slotProps?: ({
|
|
438
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
439
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
440
|
+
layout?: "column" | "row" | undefined;
|
|
441
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
442
|
+
enter?: "none" | "rise" | undefined;
|
|
443
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
444
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
445
|
+
accent: (slotProps?: ({
|
|
446
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
447
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
448
|
+
layout?: "column" | "row" | undefined;
|
|
449
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
450
|
+
enter?: "none" | "rise" | undefined;
|
|
451
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
452
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
453
|
+
header: (slotProps?: ({
|
|
454
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
455
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
456
|
+
layout?: "column" | "row" | undefined;
|
|
457
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
458
|
+
enter?: "none" | "rise" | undefined;
|
|
459
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
460
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
461
|
+
title: (slotProps?: ({
|
|
462
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
463
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
464
|
+
layout?: "column" | "row" | undefined;
|
|
465
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
466
|
+
enter?: "none" | "rise" | undefined;
|
|
467
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
468
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
469
|
+
} & {
|
|
470
|
+
root: (slotProps?: ({
|
|
471
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
472
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
473
|
+
layout?: "column" | "row" | undefined;
|
|
474
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
475
|
+
enter?: "none" | "rise" | undefined;
|
|
476
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
477
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
478
|
+
accent: (slotProps?: ({
|
|
479
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
480
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
481
|
+
layout?: "column" | "row" | undefined;
|
|
482
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
483
|
+
enter?: "none" | "rise" | undefined;
|
|
484
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
485
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
486
|
+
header: (slotProps?: ({
|
|
487
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
488
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
489
|
+
layout?: "column" | "row" | undefined;
|
|
490
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
491
|
+
enter?: "none" | "rise" | undefined;
|
|
492
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
493
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
494
|
+
title: (slotProps?: ({
|
|
495
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
496
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
497
|
+
layout?: "column" | "row" | undefined;
|
|
498
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
499
|
+
enter?: "none" | "rise" | undefined;
|
|
500
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
501
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
502
|
+
} & {
|
|
503
|
+
base: (slotProps?: ({
|
|
504
|
+
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
505
|
+
padding?: "sm" | "md" | "lg" | undefined;
|
|
506
|
+
layout?: "column" | "row" | undefined;
|
|
507
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
508
|
+
enter?: "none" | "rise" | undefined;
|
|
509
|
+
borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
510
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
511
|
+
};
|
|
512
|
+
/** The card element's own classes; the consumer's static classes merge with them. */
|
|
513
|
+
get hostClasses(): string;
|
|
514
|
+
/** Staggers the entrance per card. */
|
|
515
|
+
get animationDelay(): string;
|
|
516
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnCard, never>;
|
|
517
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnCard, "mn-card, [mnCard]", never, {
|
|
518
|
+
"data": {
|
|
519
|
+
"alias": "data";
|
|
520
|
+
"required": false;
|
|
521
|
+
};
|
|
522
|
+
"heading": {
|
|
523
|
+
"alias": "heading";
|
|
524
|
+
"required": false;
|
|
525
|
+
};
|
|
526
|
+
"enterDelayMs": {
|
|
527
|
+
"alias": "enterDelayMs";
|
|
528
|
+
"required": false;
|
|
529
|
+
};
|
|
530
|
+
}, {}, never, ["[cardIcon]", "[cardHeaderEnd]", "*"], true, never>;
|
|
515
531
|
}
|
|
516
|
-
|
|
517
532
|
/**
|
|
518
533
|
* Styling for {@link MnIconChip}: one 10% wash of the colour behind an icon drawn in
|
|
519
534
|
* the consumer's `--color-<colour>-text` token when it defines one (the shade it uses
|
|
@@ -521,80 +536,78 @@ declare class MnCard {
|
|
|
521
536
|
* same device `mnBadge` uses. The radius grows with the box so the corner reads the
|
|
522
537
|
* same at every size.
|
|
523
538
|
*/
|
|
524
|
-
declare const mnIconChipVariants:
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
539
|
+
export declare const mnIconChipVariants: import("tailwind-variants").TVReturnType<{
|
|
540
|
+
/**
|
|
541
|
+
* `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
|
|
542
|
+
* and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
|
|
543
|
+
*/
|
|
544
|
+
size: {
|
|
545
|
+
xs: "h-8 w-8 rounded-lg";
|
|
546
|
+
sm: "h-9 w-9 rounded-lg";
|
|
547
|
+
md: "h-10 w-10 rounded-xl";
|
|
548
|
+
lg: "h-12 w-12 rounded-2xl";
|
|
549
|
+
xl: "h-14 w-14 rounded-2xl";
|
|
550
|
+
};
|
|
551
|
+
color: {
|
|
552
|
+
primary: "bg-primary/10 text-(--color-primary-text,var(--color-primary))";
|
|
553
|
+
secondary: "bg-secondary/10 text-(--color-secondary-text,var(--color-secondary))";
|
|
554
|
+
accent: "bg-accent/10 text-(--color-accent-text,var(--color-accent))";
|
|
555
|
+
success: "bg-success/10 text-(--color-success-text,var(--color-success))";
|
|
556
|
+
warning: "bg-warning/10 text-(--color-warning-text,var(--color-warning))";
|
|
557
|
+
danger: "bg-error/10 text-(--color-error-text,var(--color-error))";
|
|
558
|
+
gray: "bg-base-content/10 text-base-content/70";
|
|
559
|
+
};
|
|
545
560
|
}, undefined, "inline-flex shrink-0 items-center justify-center", {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}, undefined,
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
}, undefined
|
|
588
|
-
type MnIconChipVariants = VariantProps<typeof mnIconChipVariants>;
|
|
589
|
-
|
|
561
|
+
/**
|
|
562
|
+
* `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
|
|
563
|
+
* and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
|
|
564
|
+
*/
|
|
565
|
+
size: {
|
|
566
|
+
xs: "h-8 w-8 rounded-lg";
|
|
567
|
+
sm: "h-9 w-9 rounded-lg";
|
|
568
|
+
md: "h-10 w-10 rounded-xl";
|
|
569
|
+
lg: "h-12 w-12 rounded-2xl";
|
|
570
|
+
xl: "h-14 w-14 rounded-2xl";
|
|
571
|
+
};
|
|
572
|
+
color: {
|
|
573
|
+
primary: "bg-primary/10 text-(--color-primary-text,var(--color-primary))";
|
|
574
|
+
secondary: "bg-secondary/10 text-(--color-secondary-text,var(--color-secondary))";
|
|
575
|
+
accent: "bg-accent/10 text-(--color-accent-text,var(--color-accent))";
|
|
576
|
+
success: "bg-success/10 text-(--color-success-text,var(--color-success))";
|
|
577
|
+
warning: "bg-warning/10 text-(--color-warning-text,var(--color-warning))";
|
|
578
|
+
danger: "bg-error/10 text-(--color-error-text,var(--color-error))";
|
|
579
|
+
gray: "bg-base-content/10 text-base-content/70";
|
|
580
|
+
};
|
|
581
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
582
|
+
/**
|
|
583
|
+
* `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
|
|
584
|
+
* and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
|
|
585
|
+
*/
|
|
586
|
+
size: {
|
|
587
|
+
xs: "h-8 w-8 rounded-lg";
|
|
588
|
+
sm: "h-9 w-9 rounded-lg";
|
|
589
|
+
md: "h-10 w-10 rounded-xl";
|
|
590
|
+
lg: "h-12 w-12 rounded-2xl";
|
|
591
|
+
xl: "h-14 w-14 rounded-2xl";
|
|
592
|
+
};
|
|
593
|
+
color: {
|
|
594
|
+
primary: "bg-primary/10 text-(--color-primary-text,var(--color-primary))";
|
|
595
|
+
secondary: "bg-secondary/10 text-(--color-secondary-text,var(--color-secondary))";
|
|
596
|
+
accent: "bg-accent/10 text-(--color-accent-text,var(--color-accent))";
|
|
597
|
+
success: "bg-success/10 text-(--color-success-text,var(--color-success))";
|
|
598
|
+
warning: "bg-warning/10 text-(--color-warning-text,var(--color-warning))";
|
|
599
|
+
danger: "bg-error/10 text-(--color-error-text,var(--color-error))";
|
|
600
|
+
gray: "bg-base-content/10 text-base-content/70";
|
|
601
|
+
};
|
|
602
|
+
}, undefined>>;
|
|
603
|
+
export type MnIconChipVariants = VariantProps<typeof mnIconChipVariants>;
|
|
590
604
|
/** Configuration of one {@link MnIconChip}. Both fields are optional. */
|
|
591
|
-
type MnIconChipTypes = {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
605
|
+
export type MnIconChipTypes = {
|
|
606
|
+
/** Box size. Defaults to `md`. */
|
|
607
|
+
size: MnIconChipVariants['size'];
|
|
608
|
+
/** Colour of the wash and the icon. Defaults to `primary`. */
|
|
609
|
+
color: MnIconChipVariants['color'];
|
|
596
610
|
};
|
|
597
|
-
|
|
598
611
|
/**
|
|
599
612
|
* The tinted square that carries an icon in front of a card title, a stat or a list
|
|
600
613
|
* row: the one place a colour says "what kind of thing this is". Project the icon as
|
|
@@ -609,19 +622,23 @@ type MnIconChipTypes = {
|
|
|
609
622
|
* </mn-icon-chip>
|
|
610
623
|
* ```
|
|
611
624
|
*/
|
|
612
|
-
declare class MnIconChip {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
625
|
+
export declare class MnIconChip {
|
|
626
|
+
/** Size and colour; see {@link MnIconChipTypes}. */
|
|
627
|
+
data: Partial<MnIconChipTypes>;
|
|
628
|
+
/** The chip's own classes; the consumer's static classes merge with them. */
|
|
629
|
+
get hostClasses(): string;
|
|
630
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnIconChip, never>;
|
|
631
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnIconChip, "mn-icon-chip", never, {
|
|
632
|
+
"data": {
|
|
633
|
+
"alias": "data";
|
|
634
|
+
"required": false;
|
|
635
|
+
};
|
|
636
|
+
}, {}, never, ["*"], true, never>;
|
|
619
637
|
}
|
|
620
|
-
|
|
621
638
|
/** Configuration of one {@link MnStatTile}. */
|
|
622
|
-
type MnStatTileTypes = {
|
|
623
|
-
|
|
624
|
-
|
|
639
|
+
export type MnStatTileTypes = {
|
|
640
|
+
/** Colour of the chip; the number itself stays in the base text colour. Defaults to `primary`. */
|
|
641
|
+
color: MnIconChipVariants['color'];
|
|
625
642
|
};
|
|
626
643
|
/**
|
|
627
644
|
* One fact at a glance: a tinted icon chip, a muted label and a large tabular number,
|
|
@@ -639,49 +656,64 @@ type MnStatTileTypes = {
|
|
|
639
656
|
* </div>
|
|
640
657
|
* ```
|
|
641
658
|
*/
|
|
642
|
-
declare class MnStatTile {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
659
|
+
export declare class MnStatTile {
|
|
660
|
+
/** Caption under the number, as a translation key or a literal. */
|
|
661
|
+
label: string;
|
|
662
|
+
/** The figure, already formatted for display. */
|
|
663
|
+
value: string | number;
|
|
664
|
+
/**
|
|
665
|
+
* The figure has not arrived yet: a skeleton takes the number's place, the trailing slot is
|
|
666
|
+
* held back and the tile is marked busy. Label and icon stay, so nothing moves when it lands.
|
|
667
|
+
*/
|
|
668
|
+
loading: boolean;
|
|
669
|
+
/** Colour of the chip; see {@link MnStatTileTypes}. */
|
|
670
|
+
data: Partial<MnStatTileTypes>;
|
|
671
|
+
/** Grows to share its row and never forces the row wider than its siblings. */
|
|
672
|
+
readonly hostClasses = "flex flex-1 basis-40 min-w-0";
|
|
673
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnStatTile, never>;
|
|
674
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnStatTile, "mn-stat-tile", never, {
|
|
675
|
+
"label": {
|
|
676
|
+
"alias": "label";
|
|
677
|
+
"required": true;
|
|
678
|
+
};
|
|
679
|
+
"value": {
|
|
680
|
+
"alias": "value";
|
|
681
|
+
"required": true;
|
|
682
|
+
};
|
|
683
|
+
"loading": {
|
|
684
|
+
"alias": "loading";
|
|
685
|
+
"required": false;
|
|
686
|
+
};
|
|
687
|
+
"data": {
|
|
688
|
+
"alias": "data";
|
|
689
|
+
"required": false;
|
|
690
|
+
};
|
|
691
|
+
}, {}, never, ["*", "[trailing]"], true, never>;
|
|
658
692
|
}
|
|
659
|
-
|
|
660
693
|
/** One coloured run of a {@link MnProportionBar}: how much of the whole it covers, and in which colour. */
|
|
661
|
-
type MnProportionSegment = {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
694
|
+
export type MnProportionSegment = {
|
|
695
|
+
/** Amount in the same unit as the other segments and the total. */
|
|
696
|
+
value: number;
|
|
697
|
+
/** Colour of this run; `gray` for the part that has no answer yet. */
|
|
698
|
+
color: NonNullable<MnIconChipVariants['color']>;
|
|
699
|
+
/**
|
|
700
|
+
* Draw the run as a pale tint of its colour instead of solid. For a part that is on its way but
|
|
701
|
+
* not there yet, next to a solid run of the same colour: spots asked about but not answered,
|
|
702
|
+
* payments announced but not received.
|
|
703
|
+
*/
|
|
704
|
+
soft?: boolean;
|
|
672
705
|
};
|
|
673
706
|
/** Configuration of one {@link MnProportionBar}. */
|
|
674
|
-
type MnProportionBarTypes = {
|
|
675
|
-
|
|
676
|
-
|
|
707
|
+
export type MnProportionBarTypes = {
|
|
708
|
+
/** Track thickness: `sm` inside dense rows, `md` (default) under a section title. */
|
|
709
|
+
height: 'sm' | 'md';
|
|
677
710
|
};
|
|
678
|
-
|
|
679
711
|
/** A segment resolved to a rendered width. */
|
|
680
|
-
type MnRenderedProportionSegment = {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
712
|
+
export type MnRenderedProportionSegment = {
|
|
713
|
+
/** Percentage of the track this run covers. */
|
|
714
|
+
widthPct: number;
|
|
715
|
+
/** Fill class for the run. */
|
|
716
|
+
fillClass: string;
|
|
685
717
|
};
|
|
686
718
|
/**
|
|
687
719
|
* The proportional bar every turnout, budget, capacity and collection figure draws:
|
|
@@ -705,36 +737,56 @@ type MnRenderedProportionSegment = {
|
|
|
705
737
|
* </mn-proportion-bar>
|
|
706
738
|
* ```
|
|
707
739
|
*/
|
|
708
|
-
declare class MnProportionBar {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
740
|
+
export declare class MnProportionBar {
|
|
741
|
+
/** The coloured runs, in draw order from the left. */
|
|
742
|
+
segments: MnProportionSegment[];
|
|
743
|
+
/** The whole the segments are measured against; defaults to their sum. */
|
|
744
|
+
total?: number | null;
|
|
745
|
+
/** Accessible name for the bar as a whole, as a translation key or a literal. */
|
|
746
|
+
ariaLabel: string;
|
|
747
|
+
/**
|
|
748
|
+
* `{{name}}` interpolation values for {@link ariaLabel}, so a name that quotes the figures
|
|
749
|
+
* ("3 of 8 places filled") can still be passed as a key and translated here, in the active
|
|
750
|
+
* locale, rather than as a sentence the caller translated up front. A `count` selects the
|
|
751
|
+
* plural wording like any other `translate` call.
|
|
752
|
+
*/
|
|
753
|
+
ariaLabelParams?: Record<string, string | number>;
|
|
754
|
+
/** Track thickness; see {@link MnProportionBarTypes}. */
|
|
755
|
+
data: Partial<MnProportionBarTypes>;
|
|
756
|
+
/** Resolves the accessible name against the app's bundle. */
|
|
757
|
+
private readonly lang;
|
|
758
|
+
/** The translated accessible name. */
|
|
759
|
+
get label(): string;
|
|
760
|
+
/** Every class on the track element. */
|
|
761
|
+
get trackClass(): string;
|
|
762
|
+
/** The denominator actually used: the explicit total when positive, else the segment sum. */
|
|
763
|
+
private get denominator();
|
|
764
|
+
/** Segments with a width, empty ones dropped. */
|
|
765
|
+
get rendered(): MnRenderedProportionSegment[];
|
|
766
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnProportionBar, never>;
|
|
767
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnProportionBar, "mn-proportion-bar", never, {
|
|
768
|
+
"segments": {
|
|
769
|
+
"alias": "segments";
|
|
770
|
+
"required": true;
|
|
771
|
+
};
|
|
772
|
+
"total": {
|
|
773
|
+
"alias": "total";
|
|
774
|
+
"required": false;
|
|
775
|
+
};
|
|
776
|
+
"ariaLabel": {
|
|
777
|
+
"alias": "ariaLabel";
|
|
778
|
+
"required": true;
|
|
779
|
+
};
|
|
780
|
+
"ariaLabelParams": {
|
|
781
|
+
"alias": "ariaLabelParams";
|
|
782
|
+
"required": false;
|
|
783
|
+
};
|
|
784
|
+
"data": {
|
|
785
|
+
"alias": "data";
|
|
786
|
+
"required": false;
|
|
787
|
+
};
|
|
788
|
+
}, {}, never, never, true, never>;
|
|
736
789
|
}
|
|
737
|
-
|
|
738
790
|
/**
|
|
739
791
|
* A single crumb in the breadcrumb trail.
|
|
740
792
|
*
|
|
@@ -743,13 +795,13 @@ declare class MnProportionBar {
|
|
|
743
795
|
* {@link onClick}. The library stays router-agnostic — an app wires SPA
|
|
744
796
|
* navigation through `onClick`/`crumbClick`, or lets the `href` anchor navigate.
|
|
745
797
|
*/
|
|
746
|
-
type MnBreadcrumbItem = {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
798
|
+
export type MnBreadcrumbItem = {
|
|
799
|
+
/** Translation key or literal label for the crumb. */
|
|
800
|
+
label: string;
|
|
801
|
+
/** Optional link target; when set the crumb renders as an `<a href>`. */
|
|
802
|
+
href?: string;
|
|
803
|
+
/** Optional callback invoked on click (fires alongside `crumbClick`). */
|
|
804
|
+
onClick?: () => void;
|
|
753
805
|
};
|
|
754
806
|
/**
|
|
755
807
|
* Data source for {@link MnBreadcrumbs}.
|
|
@@ -759,26 +811,25 @@ type MnBreadcrumbItem = {
|
|
|
759
811
|
* component degrades to a single "Back" control: it navigates to
|
|
760
812
|
* {@link backHref} when given, otherwise steps back through browser history.
|
|
761
813
|
*/
|
|
762
|
-
type MnBreadcrumbsData = {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
814
|
+
export type MnBreadcrumbsData = {
|
|
815
|
+
/** Ordered crumbs root → current. Empty ⇒ the "Back" fallback renders instead. */
|
|
816
|
+
items: MnBreadcrumbItem[];
|
|
817
|
+
/** Fallback "Back" target. Set ⇒ renders `<a href>`; unset ⇒ `history.back()`. */
|
|
818
|
+
backHref?: string;
|
|
819
|
+
/** Translation key or literal for the "Back" label. Defaults to `'back'`. */
|
|
820
|
+
backLabel?: string;
|
|
821
|
+
/** Visual scale. Defaults to `'md'`. */
|
|
822
|
+
size?: 'sm' | 'md';
|
|
823
|
+
/**
|
|
824
|
+
* What the trail does on a narrow screen (below `sm`). Defaults to `'parent'`:
|
|
825
|
+
* the crumbs give way to the parent crumb alone, drawn as a back control,
|
|
826
|
+
* because a hierarchy read on a phone is a way up rather than a map, and an
|
|
827
|
+
* uncollapsed trail wraps over three lines above the title it belongs to.
|
|
828
|
+
* `'never'` keeps every crumb at every width, for a page where the trail
|
|
829
|
+
* itself is the content.
|
|
830
|
+
*/
|
|
831
|
+
collapse?: 'parent' | 'never';
|
|
780
832
|
};
|
|
781
|
-
|
|
782
833
|
/**
|
|
783
834
|
* A flexible breadcrumb trail.
|
|
784
835
|
*
|
|
@@ -798,122 +849,134 @@ type MnBreadcrumbsData = {
|
|
|
798
849
|
* otherwise clicks emit outputs for the app to handle. Only the Back fallback
|
|
799
850
|
* with no `href` reaches for `history.back()`.
|
|
800
851
|
*/
|
|
801
|
-
declare class MnBreadcrumbs {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
852
|
+
export declare class MnBreadcrumbs {
|
|
853
|
+
/** Lucide icons the template renders. */
|
|
854
|
+
protected readonly icons: Record<"ChevronLeft" | "ChevronRight", import("@lucide/angular").LucideIconData>;
|
|
855
|
+
/** Trail crumbs and Back-fallback configuration. */
|
|
856
|
+
data: MnBreadcrumbsData;
|
|
857
|
+
/** Emits the crumb that was clicked (non-current crumbs only). */
|
|
858
|
+
crumbClick: EventEmitter<MnBreadcrumbItem>;
|
|
859
|
+
/** Emits when the fallback "Back" control is activated. */
|
|
860
|
+
back: EventEmitter<void>;
|
|
861
|
+
/** Conventional key an app defines to translate the Back control's label. */
|
|
862
|
+
private static readonly BACK_LABEL_KEY;
|
|
863
|
+
/** Conventional key an app defines to name the navigation landmark. */
|
|
864
|
+
private static readonly NAV_LABEL_KEY;
|
|
865
|
+
/** Resolves this component's own labels against the app's bundle. */
|
|
866
|
+
private readonly lang;
|
|
867
|
+
/** Resolved tailwind-variants slot functions for the current size. */
|
|
868
|
+
get styles(): {
|
|
869
|
+
root: (slotProps?: ({
|
|
870
|
+
size?: "sm" | "md" | undefined;
|
|
871
|
+
collapsible?: boolean | undefined;
|
|
872
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
873
|
+
list: (slotProps?: ({
|
|
874
|
+
size?: "sm" | "md" | undefined;
|
|
875
|
+
collapsible?: boolean | undefined;
|
|
876
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
877
|
+
link: (slotProps?: ({
|
|
878
|
+
size?: "sm" | "md" | undefined;
|
|
879
|
+
collapsible?: boolean | undefined;
|
|
880
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
881
|
+
current: (slotProps?: ({
|
|
882
|
+
size?: "sm" | "md" | undefined;
|
|
883
|
+
collapsible?: boolean | undefined;
|
|
884
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
885
|
+
separator: (slotProps?: ({
|
|
886
|
+
size?: "sm" | "md" | undefined;
|
|
887
|
+
collapsible?: boolean | undefined;
|
|
888
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
889
|
+
back: (slotProps?: ({
|
|
890
|
+
size?: "sm" | "md" | undefined;
|
|
891
|
+
collapsible?: boolean | undefined;
|
|
892
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
893
|
+
collapsed: (slotProps?: ({
|
|
894
|
+
size?: "sm" | "md" | undefined;
|
|
895
|
+
collapsible?: boolean | undefined;
|
|
896
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
897
|
+
} & {
|
|
898
|
+
root: (slotProps?: ({
|
|
899
|
+
size?: "sm" | "md" | undefined;
|
|
900
|
+
collapsible?: boolean | undefined;
|
|
901
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
902
|
+
list: (slotProps?: ({
|
|
903
|
+
size?: "sm" | "md" | undefined;
|
|
904
|
+
collapsible?: boolean | undefined;
|
|
905
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
906
|
+
link: (slotProps?: ({
|
|
907
|
+
size?: "sm" | "md" | undefined;
|
|
908
|
+
collapsible?: boolean | undefined;
|
|
909
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
910
|
+
current: (slotProps?: ({
|
|
911
|
+
size?: "sm" | "md" | undefined;
|
|
912
|
+
collapsible?: boolean | undefined;
|
|
913
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
914
|
+
separator: (slotProps?: ({
|
|
915
|
+
size?: "sm" | "md" | undefined;
|
|
916
|
+
collapsible?: boolean | undefined;
|
|
917
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
918
|
+
back: (slotProps?: ({
|
|
919
|
+
size?: "sm" | "md" | undefined;
|
|
920
|
+
collapsible?: boolean | undefined;
|
|
921
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
922
|
+
collapsed: (slotProps?: ({
|
|
923
|
+
size?: "sm" | "md" | undefined;
|
|
924
|
+
collapsible?: boolean | undefined;
|
|
925
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
926
|
+
} & {
|
|
927
|
+
base: (slotProps?: ({
|
|
928
|
+
size?: "sm" | "md" | undefined;
|
|
929
|
+
collapsible?: boolean | undefined;
|
|
930
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
931
|
+
};
|
|
932
|
+
/** Whether the parent crumb replaces the trail below `sm`. */
|
|
933
|
+
get collapsesToParent(): boolean;
|
|
934
|
+
/**
|
|
935
|
+
* The crumb one level above the current page, or `null` when the trail stays
|
|
936
|
+
* whole: a single crumb has nowhere to go up to, and `'never'` asks for every
|
|
937
|
+
* crumb at every width.
|
|
938
|
+
*/
|
|
939
|
+
get parentCrumb(): MnBreadcrumbItem | null;
|
|
940
|
+
/**
|
|
941
|
+
* Accessible name of the `<nav>` landmark.
|
|
942
|
+
*
|
|
943
|
+
* A landmark's name is announced verbatim, so leaving it as a hardcoded English
|
|
944
|
+
* "Breadcrumb" put one English word into every page of a translated app — in the
|
|
945
|
+
* one place only screen-reader users hear.
|
|
946
|
+
*/
|
|
947
|
+
get navLabel(): string;
|
|
948
|
+
/** Whether a linkable trail should render (vs the Back fallback). */
|
|
949
|
+
get hasTrail(): boolean;
|
|
950
|
+
/**
|
|
951
|
+
* Text of the Back control, already translated.
|
|
952
|
+
*
|
|
953
|
+
* `data.backLabel` is a key (or a literal, which `translate` passes through
|
|
954
|
+
* unchanged). Without one this falls back to the conventional key and then to
|
|
955
|
+
* English — never to a raw key: the old default was the bare key `'back'`, which
|
|
956
|
+
* the template's translate pipe echoed as lowercase "back" in every app that had
|
|
957
|
+
* not happened to define it.
|
|
958
|
+
*/
|
|
959
|
+
get backLabel(): string;
|
|
960
|
+
/** The last crumb is the current page and is rendered as plain text. */
|
|
961
|
+
isCurrent(index: number): boolean;
|
|
962
|
+
/** Runs a crumb's own callback and notifies listeners of the click. */
|
|
963
|
+
onCrumb(item: MnBreadcrumbItem): void;
|
|
964
|
+
/**
|
|
965
|
+
* Fallback Back action. Always emits `back` for listeners; when no `backHref`
|
|
966
|
+
* anchor is carrying the navigation, steps back through browser history.
|
|
967
|
+
*/
|
|
968
|
+
onBack(): void;
|
|
969
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnBreadcrumbs, never>;
|
|
970
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnBreadcrumbs, "mn-breadcrumbs", never, {
|
|
971
|
+
"data": {
|
|
972
|
+
"alias": "data";
|
|
973
|
+
"required": false;
|
|
974
|
+
};
|
|
975
|
+
}, {
|
|
976
|
+
"crumbClick": "crumbClick";
|
|
977
|
+
"back": "back";
|
|
978
|
+
}, never, never, true, never>;
|
|
915
979
|
}
|
|
916
|
-
|
|
917
980
|
/**
|
|
918
981
|
* Styling for {@link MnBreadcrumbs}, expressed as tailwind-variants slots so the
|
|
919
982
|
* template can pull one class string per role. Theme tokens only, so the trail
|
|
@@ -926,147 +989,144 @@ declare class MnBreadcrumbs {
|
|
|
926
989
|
* control replaces the trail on a phone, where it is the only way up, so it
|
|
927
990
|
* takes a full 44px.
|
|
928
991
|
*/
|
|
929
|
-
declare const mnBreadcrumbsVariants:
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
};
|
|
939
|
-
};
|
|
940
|
-
/** Whether the parent crumb takes the trail's place below `sm`. */
|
|
941
|
-
collapsible: {
|
|
942
|
-
true: {
|
|
943
|
-
list: string;
|
|
944
|
-
};
|
|
945
|
-
false: {};
|
|
992
|
+
export declare const mnBreadcrumbsVariants: import("tailwind-variants").TVReturnType<{
|
|
993
|
+
size: {
|
|
994
|
+
sm: {
|
|
995
|
+
root: string;
|
|
996
|
+
list: string;
|
|
997
|
+
};
|
|
998
|
+
md: {
|
|
999
|
+
root: string;
|
|
1000
|
+
list: string;
|
|
946
1001
|
};
|
|
1002
|
+
};
|
|
1003
|
+
/** Whether the parent crumb takes the trail's place below `sm`. */
|
|
1004
|
+
collapsible: {
|
|
1005
|
+
true: {
|
|
1006
|
+
list: string;
|
|
1007
|
+
};
|
|
1008
|
+
false: {};
|
|
1009
|
+
};
|
|
947
1010
|
}, {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1011
|
+
root: string;
|
|
1012
|
+
list: string;
|
|
1013
|
+
link: string;
|
|
1014
|
+
current: string;
|
|
1015
|
+
separator: string;
|
|
1016
|
+
back: string;
|
|
1017
|
+
collapsed: string;
|
|
955
1018
|
}, undefined, {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
};
|
|
961
|
-
md: {
|
|
962
|
-
root: string;
|
|
963
|
-
list: string;
|
|
964
|
-
};
|
|
965
|
-
};
|
|
966
|
-
/** Whether the parent crumb takes the trail's place below `sm`. */
|
|
967
|
-
collapsible: {
|
|
968
|
-
true: {
|
|
969
|
-
list: string;
|
|
970
|
-
};
|
|
971
|
-
false: {};
|
|
1019
|
+
size: {
|
|
1020
|
+
sm: {
|
|
1021
|
+
root: string;
|
|
1022
|
+
list: string;
|
|
972
1023
|
};
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
size: {
|
|
983
|
-
sm: {
|
|
984
|
-
root: string;
|
|
985
|
-
list: string;
|
|
986
|
-
};
|
|
987
|
-
md: {
|
|
988
|
-
root: string;
|
|
989
|
-
list: string;
|
|
990
|
-
};
|
|
991
|
-
};
|
|
992
|
-
/** Whether the parent crumb takes the trail's place below `sm`. */
|
|
993
|
-
collapsible: {
|
|
994
|
-
true: {
|
|
995
|
-
list: string;
|
|
996
|
-
};
|
|
997
|
-
false: {};
|
|
1024
|
+
md: {
|
|
1025
|
+
root: string;
|
|
1026
|
+
list: string;
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
/** Whether the parent crumb takes the trail's place below `sm`. */
|
|
1030
|
+
collapsible: {
|
|
1031
|
+
true: {
|
|
1032
|
+
list: string;
|
|
998
1033
|
};
|
|
1034
|
+
false: {};
|
|
1035
|
+
};
|
|
999
1036
|
}, {
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
},
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
current: string;
|
|
1013
|
-
primary: string;
|
|
1014
|
-
secondary: string;
|
|
1015
|
-
danger: string;
|
|
1016
|
-
warning: string;
|
|
1017
|
-
success: string;
|
|
1018
|
-
accent: string;
|
|
1037
|
+
root: string;
|
|
1038
|
+
list: string;
|
|
1039
|
+
link: string;
|
|
1040
|
+
current: string;
|
|
1041
|
+
separator: string;
|
|
1042
|
+
back: string;
|
|
1043
|
+
collapsed: string;
|
|
1044
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
1045
|
+
size: {
|
|
1046
|
+
sm: {
|
|
1047
|
+
root: string;
|
|
1048
|
+
list: string;
|
|
1019
1049
|
};
|
|
1050
|
+
md: {
|
|
1051
|
+
root: string;
|
|
1052
|
+
list: string;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
/** Whether the parent crumb takes the trail's place below `sm`. */
|
|
1056
|
+
collapsible: {
|
|
1057
|
+
true: {
|
|
1058
|
+
list: string;
|
|
1059
|
+
};
|
|
1060
|
+
false: {};
|
|
1061
|
+
};
|
|
1062
|
+
}, {
|
|
1063
|
+
root: string;
|
|
1064
|
+
list: string;
|
|
1065
|
+
link: string;
|
|
1066
|
+
current: string;
|
|
1067
|
+
separator: string;
|
|
1068
|
+
back: string;
|
|
1069
|
+
collapsed: string;
|
|
1070
|
+
}>>;
|
|
1071
|
+
export type MnBreadcrumbsVariants = VariantProps<typeof mnBreadcrumbsVariants>;
|
|
1072
|
+
export declare const mnIconVariants: import("tailwind-variants").TVReturnType<{
|
|
1073
|
+
color: {
|
|
1074
|
+
current: "text-current";
|
|
1075
|
+
primary: "text-primary";
|
|
1076
|
+
secondary: "text-secondary";
|
|
1077
|
+
danger: "text-error";
|
|
1078
|
+
warning: "text-warning";
|
|
1079
|
+
success: "text-success";
|
|
1080
|
+
accent: "text-accent";
|
|
1081
|
+
};
|
|
1020
1082
|
}, undefined, "inline-flex shrink-0", {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}, undefined,
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
}, undefined
|
|
1041
|
-
type MnIconVariants = VariantProps<typeof mnIconVariants>;
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
color: MnIconVariants['color'];
|
|
1083
|
+
color: {
|
|
1084
|
+
current: "text-current";
|
|
1085
|
+
primary: "text-primary";
|
|
1086
|
+
secondary: "text-secondary";
|
|
1087
|
+
danger: "text-error";
|
|
1088
|
+
warning: "text-warning";
|
|
1089
|
+
success: "text-success";
|
|
1090
|
+
accent: "text-accent";
|
|
1091
|
+
};
|
|
1092
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
1093
|
+
color: {
|
|
1094
|
+
current: "text-current";
|
|
1095
|
+
primary: "text-primary";
|
|
1096
|
+
secondary: "text-secondary";
|
|
1097
|
+
danger: "text-error";
|
|
1098
|
+
warning: "text-warning";
|
|
1099
|
+
success: "text-success";
|
|
1100
|
+
accent: "text-accent";
|
|
1101
|
+
};
|
|
1102
|
+
}, undefined>>;
|
|
1103
|
+
export type MnIconVariants = VariantProps<typeof mnIconVariants>;
|
|
1104
|
+
export type MnIconTypes = {
|
|
1105
|
+
name: string;
|
|
1106
|
+
size: number;
|
|
1107
|
+
color: MnIconVariants['color'];
|
|
1047
1108
|
};
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
declare class MnIconAttributes {
|
|
1067
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MnIconAttributes, never>;
|
|
1068
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MnIconAttributes, "mn-icon[mnIconPistol]", never, {}, {}, never, never, true, never>;
|
|
1109
|
+
export declare class MnIcon implements OnChanges, OnInit {
|
|
1110
|
+
data: Partial<MnIconTypes>;
|
|
1111
|
+
private sanitizer;
|
|
1112
|
+
private el;
|
|
1113
|
+
svgContent: SafeHtml;
|
|
1114
|
+
get iconSize(): number;
|
|
1115
|
+
get hostClasses(): string;
|
|
1116
|
+
private resolvedName;
|
|
1117
|
+
ngOnInit(): void;
|
|
1118
|
+
ngOnChanges(): void;
|
|
1119
|
+
private updateContent;
|
|
1120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnIcon, never>;
|
|
1121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnIcon, "mn-icon", never, {
|
|
1122
|
+
"data": {
|
|
1123
|
+
"alias": "data";
|
|
1124
|
+
"required": false;
|
|
1125
|
+
};
|
|
1126
|
+
}, {}, never, never, true, never>;
|
|
1069
1127
|
}
|
|
1070
|
-
|
|
1071
|
-
export
|
|
1072
|
-
|
|
1128
|
+
export declare const MN_ICON_MAP: Record<string, string>;
|
|
1129
|
+
export declare class MnIconAttributes {
|
|
1130
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnIconAttributes, never>;
|
|
1131
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MnIconAttributes, "mn-icon[mnIconPistol]", never, {}, {}, never, never, true, never>;
|
|
1132
|
+
}
|