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