@cngx/common 0.1.0-rc.9 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/README.md +15 -2
- package/button/README.md +258 -0
- package/command/README.md +19 -8
- package/data/README.md +10 -10
- package/fesm2022/cngx-common-a11y.mjs +701 -263
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +83 -64
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-button.mjs +1084 -0
- package/fesm2022/cngx-common-button.mjs.map +1 -0
- package/fesm2022/cngx-common-card.mjs +135 -76
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +749 -296
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +51 -29
- package/fesm2022/cngx-common-command.mjs.map +1 -1
- package/fesm2022/cngx-common-data.mjs +695 -405
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +112 -112
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +668 -308
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +7066 -2739
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +2121 -492
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-menu-button.mjs +557 -0
- package/fesm2022/cngx-common-menu-button.mjs.map +1 -0
- package/fesm2022/cngx-common-popover.mjs +1207 -569
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +256 -261
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +202 -262
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +28 -61
- package/fesm2022/cngx-common-timeline.mjs.map +1 -1
- package/fesm2022/cngx-common.mjs +10 -10
- package/fesm2022/cngx-common.mjs.map +1 -1
- package/interactive/README.md +30 -19
- package/layout/README.md +1 -1
- package/menu-button/README.md +234 -0
- package/package.json +14 -4
- package/popover/README.md +42 -5
- package/popover/tooltip-indicator.scss +52 -0
- package/schematics/ng-add/index.js +7 -7
- package/schematics/ng-add/schema.json +5 -0
- package/stepper/README.md +0 -1
- package/theming/components/cngx-accordion.css +36 -7
- package/theming/components/cngx-async.css +185 -37
- package/theming/components/cngx-backdrop.css +3 -1
- package/theming/components/cngx-badge.css +20 -5
- package/theming/components/cngx-bottom-sheet.css +2 -0
- package/theming/components/cngx-breadcrumb.css +3 -1
- package/theming/components/cngx-button-group.css +325 -0
- package/theming/components/cngx-button-toggle.css +55 -23
- package/theming/components/cngx-button.css +975 -0
- package/theming/components/cngx-data-grid.css +2 -0
- package/theming/components/cngx-dialog.css +3 -1
- package/theming/components/cngx-divider.css +24 -9
- package/theming/components/cngx-drawer.css +153 -0
- package/theming/components/cngx-icon-glyph.css +76 -0
- package/theming/components/cngx-listbox.css +79 -25
- package/theming/components/cngx-menu.css +112 -52
- package/theming/components/cngx-nav.css +1220 -0
- package/theming/components/cngx-popover-sheet.css +43 -11
- package/theming/components/cngx-popover.css +37 -13
- package/theming/components/cngx-recycler-placeholder.css +2 -0
- package/theming/components/cngx-ripple.css +74 -16
- package/theming/components/cngx-sidebar.css +71 -0
- package/theming/components/cngx-slider.css +3 -1
- package/theming/components/cngx-tooltip.css +2 -0
- package/timeline/README.md +2 -2
- package/types/cngx-common-a11y.d.ts +343 -120
- package/types/cngx-common-audio.d.ts +60 -88
- package/types/cngx-common-button.d.ts +698 -0
- package/types/cngx-common-card.d.ts +104 -78
- package/types/cngx-common-chart.d.ts +671 -384
- package/types/cngx-common-command.d.ts +44 -47
- package/types/cngx-common-data.d.ts +350 -342
- package/types/cngx-common-dialog.d.ts +91 -120
- package/types/cngx-common-display.d.ts +475 -300
- package/types/cngx-common-interactive.d.ts +4350 -1723
- package/types/cngx-common-layout.d.ts +1365 -286
- package/types/cngx-common-menu-button.d.ts +382 -0
- package/types/cngx-common-popover.d.ts +671 -289
- package/types/cngx-common-stepper.d.ts +217 -347
- package/types/cngx-common-tabs.d.ts +173 -386
- package/types/cngx-common-timeline.d.ts +25 -104
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, Signal, Provider, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@cngx/common/a11y';
|
|
4
|
+
import { CngxIconData } from '@cngx/utils';
|
|
4
5
|
import { CngxAsyncState } from '@cngx/core/utils';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Reason why a card grid is empty - drives empty-state template selection.
|
|
8
|
-
*
|
|
9
|
-
* @category common/card
|
|
10
9
|
*/
|
|
11
10
|
type EmptyReason = 'first-use' | 'no-results' | 'cleared';
|
|
12
11
|
|
|
@@ -36,18 +35,13 @@ type EmptyReason = 'first-use' | 'no-results' | 'cleared';
|
|
|
36
35
|
* </cngx-card>
|
|
37
36
|
* ```
|
|
38
37
|
*
|
|
39
|
-
* @category common/card
|
|
40
|
-
* @docsKind primary
|
|
41
38
|
* @wcag AA
|
|
42
39
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card.component.ts
|
|
43
|
-
* @since 0.
|
|
40
|
+
* @since 0.3.0
|
|
44
41
|
* @relatedTo CngxCardGrid, CngxCardHeader, CngxCardBody, CngxCardFooter, CngxCardSkeleton
|
|
45
|
-
* <example-url
|
|
46
|
-
* <example-url>http://localhost:4200/#/common/card/card-with-expandable-text</example-url>
|
|
47
|
-
|
|
48
|
-
* <example-url>http://localhost:4200/#/common/card/card-with-speak-badge</example-url>
|
|
49
|
-
* <example-url>http://localhost:4200/#/common/card/disabled-with-reason</example-url>
|
|
42
|
+
* <example-url>/#/common/card/disabled-with-reason</example-url>
|
|
50
43
|
|
|
44
|
+
* @axis level organism
|
|
51
45
|
*/
|
|
52
46
|
declare class CngxCard {
|
|
53
47
|
private readonly uid;
|
|
@@ -149,11 +143,11 @@ declare class CngxCard {
|
|
|
149
143
|
|
|
150
144
|
/**
|
|
151
145
|
* The card section of a {@link CngxLanguagePack}. Same keys as
|
|
152
|
-
* {@link CngxCardI18n}: the phrases a selectable card announces
|
|
153
|
-
* order of a {@link CngxCardTimestamp} prefix and its date
|
|
146
|
+
* {@link CngxCardI18n}: the phrases a selectable card announces, the
|
|
147
|
+
* order of a {@link CngxCardTimestamp} prefix and its date, and the severity
|
|
148
|
+
* words a {@link CngxCardAccentIcon} reads out.
|
|
154
149
|
*
|
|
155
|
-
* @
|
|
156
|
-
* @since 0.1.0
|
|
150
|
+
* @since 0.3.0
|
|
157
151
|
* @relatedTo CngxCard, CngxCardTimestamp
|
|
158
152
|
*/
|
|
159
153
|
interface CngxCardLanguageSection {
|
|
@@ -172,13 +166,20 @@ interface CngxCardLanguageSection {
|
|
|
172
166
|
* function value cannot place them.
|
|
173
167
|
*/
|
|
174
168
|
readonly timestamp: string;
|
|
169
|
+
/** Screen-reader prefix a {@link CngxCardAccentIcon} reads before the title of a danger card. */
|
|
170
|
+
readonly accentDanger: string;
|
|
171
|
+
/** Screen-reader prefix for a warning card. */
|
|
172
|
+
readonly accentWarning: string;
|
|
173
|
+
/** Screen-reader prefix for a success card. */
|
|
174
|
+
readonly accentSuccess: string;
|
|
175
|
+
/** Screen-reader prefix for an info card. */
|
|
176
|
+
readonly accentInfo: string;
|
|
175
177
|
}
|
|
176
178
|
/**
|
|
177
179
|
* The English card section: the single source of the card's English copy.
|
|
178
180
|
* `CNGX_CARD_I18N` defaults to it, and the shipped English pack is built from it.
|
|
179
181
|
*
|
|
180
|
-
* @
|
|
181
|
-
* @since 0.1.0
|
|
182
|
+
* @since 0.3.0
|
|
182
183
|
* @relatedTo CNGX_CARD_I18N
|
|
183
184
|
*/
|
|
184
185
|
declare const CNGX_CARD_LANGUAGE_EN: CngxCardLanguageSection;
|
|
@@ -199,8 +200,6 @@ declare module '@cngx/core/i18n' {
|
|
|
199
200
|
* card carries. `timestamp` orders a {@link CngxCardTimestamp} prefix and its
|
|
200
201
|
* date. The same shape as the card section of a language pack, declared once
|
|
201
202
|
* as {@link CngxCardLanguageSection}.
|
|
202
|
-
*
|
|
203
|
-
* @category common/card/i18n
|
|
204
203
|
*/
|
|
205
204
|
type CngxCardI18n = CngxCardLanguageSection;
|
|
206
205
|
/**
|
|
@@ -208,27 +207,23 @@ type CngxCardI18n = CngxCardLanguageSection;
|
|
|
208
207
|
* runtime language switch. `providedIn: 'root'`: the card section of the
|
|
209
208
|
* active language pack over the English defaults.
|
|
210
209
|
*
|
|
211
|
-
* @category common/card/i18n
|
|
212
210
|
* @wcag AA
|
|
213
211
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/i18n/card-i18n.ts
|
|
214
|
-
* @since 0.
|
|
212
|
+
* @since 0.3.0
|
|
215
213
|
* @relatedTo CngxCard
|
|
216
214
|
*/
|
|
217
215
|
declare const CNGX_CARD_I18N: InjectionToken<Signal<CngxCardLanguageSection>>;
|
|
218
216
|
/**
|
|
219
|
-
*
|
|
217
|
+
* A label override feature of `provideCardI18n`.
|
|
220
218
|
*
|
|
221
|
-
* @
|
|
219
|
+
* @since 0.3.0
|
|
220
|
+
* @relatedTo CNGX_CARD_I18N, withCardI18nLabels
|
|
222
221
|
*/
|
|
223
|
-
type CngxCardI18nFeature = (
|
|
224
|
-
readonly _target: 'i18n';
|
|
225
|
-
};
|
|
222
|
+
type CngxCardI18nFeature = (bundle: Signal<CngxCardI18n>) => Signal<CngxCardI18n>;
|
|
226
223
|
/**
|
|
227
224
|
* Override i18n labels via a partial bundle - unset keys keep the language
|
|
228
225
|
* pack's phrase, or the English default. Pass a `Signal` to switch the
|
|
229
226
|
* language at runtime.
|
|
230
|
-
*
|
|
231
|
-
* @category common/card/i18n
|
|
232
227
|
*/
|
|
233
228
|
declare function withCardI18nLabels(overrides: Partial<CngxCardI18n> | Signal<Partial<CngxCardI18n>>): CngxCardI18nFeature;
|
|
234
229
|
/**
|
|
@@ -242,14 +237,10 @@ declare function withCardI18nLabels(overrides: Partial<CngxCardI18n> | Signal<Pa
|
|
|
242
237
|
* ],
|
|
243
238
|
* });
|
|
244
239
|
* ```
|
|
245
|
-
*
|
|
246
|
-
* @category common/card/i18n
|
|
247
240
|
*/
|
|
248
241
|
declare function provideCardI18n(...features: readonly CngxCardI18nFeature[]): Provider;
|
|
249
242
|
/**
|
|
250
243
|
* Inject the resolved card i18n bundle.
|
|
251
|
-
*
|
|
252
|
-
* @category common/card/i18n
|
|
253
244
|
*/
|
|
254
245
|
declare function injectCardI18n(): Signal<CngxCardI18n>;
|
|
255
246
|
|
|
@@ -267,10 +258,9 @@ declare function injectCardI18n(): Signal<CngxCardI18n>;
|
|
|
267
258
|
* </cngx-card>
|
|
268
259
|
* ```
|
|
269
260
|
*
|
|
270
|
-
* @category common/card
|
|
271
261
|
* @wcag AA
|
|
272
262
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-header.directive.ts
|
|
273
|
-
* @since 0.
|
|
263
|
+
* @since 0.3.0
|
|
274
264
|
* @relatedTo CngxCard, CngxCardTitle, CngxCardSubtitle, CngxCardFooter
|
|
275
265
|
*/
|
|
276
266
|
declare class CngxCardHeader {
|
|
@@ -293,9 +283,8 @@ declare class CngxCardHeader {
|
|
|
293
283
|
* </cngx-card>
|
|
294
284
|
* ```
|
|
295
285
|
*
|
|
296
|
-
* @category common/card
|
|
297
286
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-title.directive.ts
|
|
298
|
-
* @since 0.
|
|
287
|
+
* @since 0.3.0
|
|
299
288
|
* @relatedTo CngxCard, CngxCardHeader, CngxCardSubtitle
|
|
300
289
|
*/
|
|
301
290
|
declare class CngxCardTitle {
|
|
@@ -315,9 +304,8 @@ declare class CngxCardTitle {
|
|
|
315
304
|
* </cngx-card>
|
|
316
305
|
* ```
|
|
317
306
|
*
|
|
318
|
-
* @category common/card
|
|
319
307
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-subtitle.directive.ts
|
|
320
|
-
* @since 0.
|
|
308
|
+
* @since 0.3.0
|
|
321
309
|
* @relatedTo CngxCard, CngxCardHeader, CngxCardTitle
|
|
322
310
|
*/
|
|
323
311
|
declare class CngxCardSubtitle {
|
|
@@ -334,9 +322,8 @@ declare class CngxCardSubtitle {
|
|
|
334
322
|
* </cngx-card>
|
|
335
323
|
* ```
|
|
336
324
|
*
|
|
337
|
-
* @category common/card
|
|
338
325
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-body.directive.ts
|
|
339
|
-
* @since 0.
|
|
326
|
+
* @since 0.3.0
|
|
340
327
|
* @relatedTo CngxCard, CngxCardHeader, CngxCardFooter
|
|
341
328
|
*/
|
|
342
329
|
declare class CngxCardBody {
|
|
@@ -356,13 +343,13 @@ declare class CngxCardBody {
|
|
|
356
343
|
* </cngx-card>
|
|
357
344
|
* ```
|
|
358
345
|
*
|
|
359
|
-
* @category common/card
|
|
360
346
|
* @wcag AA
|
|
361
347
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-media.directive.ts
|
|
362
|
-
* @since 0.
|
|
348
|
+
* @since 0.3.0
|
|
363
349
|
* @relatedTo CngxCard, CngxCardHeader, CngxCardBody
|
|
364
|
-
* <example-url
|
|
350
|
+
* <example-url>/#/common/card/card-with-image</example-url>
|
|
365
351
|
|
|
352
|
+
* @axis level organism
|
|
366
353
|
*/
|
|
367
354
|
declare class CngxCardMedia {
|
|
368
355
|
/** Whether this media is purely decorative (hidden from SR). */
|
|
@@ -392,12 +379,11 @@ declare class CngxCardMedia {
|
|
|
392
379
|
* </cngx-card>
|
|
393
380
|
* ```
|
|
394
381
|
*
|
|
395
|
-
* @category common/card
|
|
396
382
|
* @wcag AA
|
|
397
383
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-footer.directive.ts
|
|
398
|
-
* @since 0.
|
|
384
|
+
* @since 0.3.0
|
|
399
385
|
* @relatedTo CngxCard, CngxCardHeader, CngxCardActions, CngxCardTimestamp
|
|
400
|
-
* <example-url
|
|
386
|
+
* <example-url>/#/common/card/title-subtitle-footer</example-url>
|
|
401
387
|
*/
|
|
402
388
|
declare class CngxCardFooter {
|
|
403
389
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCardFooter, never>;
|
|
@@ -419,11 +405,11 @@ declare class CngxCardFooter {
|
|
|
419
405
|
* </cngx-card>
|
|
420
406
|
* ```
|
|
421
407
|
*
|
|
422
|
-
* @category common/card
|
|
423
408
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-actions.directive.ts
|
|
424
|
-
* @since 0.
|
|
409
|
+
* @since 0.3.0
|
|
425
410
|
* @relatedTo CngxCard, CngxCardFooter, CngxCardBody
|
|
426
|
-
* <example-url
|
|
411
|
+
* <example-url>/#/common/card/action-card-with-selection</example-url>
|
|
412
|
+
* @axis level organism
|
|
427
413
|
*/
|
|
428
414
|
declare class CngxCardActions {
|
|
429
415
|
/** Horizontal alignment of actions. */
|
|
@@ -449,11 +435,11 @@ declare class CngxCardActions {
|
|
|
449
435
|
* `card.component.css`; fallbacks chain through `--cngx-badge-*` then
|
|
450
436
|
* the foundation palette.
|
|
451
437
|
*
|
|
452
|
-
* @category common/card
|
|
453
438
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-badge.directive.ts
|
|
454
|
-
* @since 0.
|
|
439
|
+
* @since 0.3.0
|
|
455
440
|
* @relatedTo CngxCard, CngxCardAccent, CngxCardHeader
|
|
456
|
-
* <example-url
|
|
441
|
+
* <example-url>/#/common/card/card-with-badge</example-url>
|
|
442
|
+
* @axis level organism
|
|
457
443
|
*/
|
|
458
444
|
declare class CngxCardBadge {
|
|
459
445
|
/** Corner position using logical properties. */
|
|
@@ -463,7 +449,7 @@ declare class CngxCardBadge {
|
|
|
463
449
|
* `--cngx-card-badge-<intent>-bg` / `-color`; cascades through
|
|
464
450
|
* `--cngx-badge-<intent>-bg` then `--cngx-color-<system>`.
|
|
465
451
|
*/
|
|
466
|
-
readonly intent: _angular_core.InputSignal<"primary" | "danger" | "warning" | "success" | "neutral">;
|
|
452
|
+
readonly intent: _angular_core.InputSignal<"primary" | "danger" | "warning" | "success" | "info" | "neutral">;
|
|
467
453
|
/**
|
|
468
454
|
* Pill diameter and font-size. Empty content always renders as a
|
|
469
455
|
* fixed dot at the `sm` token regardless of this input (`:empty`
|
|
@@ -474,35 +460,77 @@ declare class CngxCardBadge {
|
|
|
474
460
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxCardBadge, "[cngxCardBadge]", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "intent": { "alias": "intent"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
475
461
|
}
|
|
476
462
|
|
|
463
|
+
/** Severity a {@link CngxCardAccent} paints. `neutral` means no status. */
|
|
464
|
+
type CngxCardAccentSeverity = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
477
465
|
/**
|
|
478
|
-
*
|
|
466
|
+
* Marks a card with a severity, for dashboards where one tile has to stand
|
|
467
|
+
* out among many.
|
|
479
468
|
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
469
|
+
* Paints the feedback family's severity recipe (alert, banner, toast): a
|
|
470
|
+
* pale tint and a pastel border. `neutral` (the default) is no status and
|
|
471
|
+
* paints a plain card. Colour alone carries no meaning (WCAG 1.4.1): put a
|
|
472
|
+
* {@link CngxCardAccentIcon} in the title for a shape + text cue, or let the
|
|
473
|
+
* card content say it.
|
|
483
474
|
*
|
|
484
475
|
* ```html
|
|
485
476
|
* <cngx-card cngxCardAccent="warning">
|
|
486
477
|
* <header cngxCardHeader>
|
|
487
|
-
* <h3 cngxCardTitle
|
|
478
|
+
* <h3 cngxCardTitle><cngx-card-accent-icon />Blutzucker</h3>
|
|
488
479
|
* </header>
|
|
489
480
|
* </cngx-card>
|
|
490
481
|
* ```
|
|
491
482
|
*
|
|
492
|
-
* @category common/card
|
|
493
483
|
* @wcag AA
|
|
494
484
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-accent.directive.ts
|
|
495
|
-
* @since 0.
|
|
496
|
-
* @relatedTo CngxCard, CngxCardBadge, CngxCardHeader
|
|
497
|
-
* <example-url
|
|
485
|
+
* @since 0.3.0
|
|
486
|
+
* @relatedTo CngxCard, CngxCardAccentIcon, CngxCardBadge, CngxCardHeader
|
|
487
|
+
* <example-url>/#/common/card/severity-accent</example-url>
|
|
488
|
+
* @axis level organism
|
|
498
489
|
*/
|
|
499
490
|
declare class CngxCardAccent {
|
|
500
|
-
/** Severity level controlling the accent
|
|
501
|
-
readonly severity: _angular_core.InputSignal<
|
|
491
|
+
/** Severity level controlling the accent colour. */
|
|
492
|
+
readonly severity: _angular_core.InputSignal<CngxCardAccentSeverity>;
|
|
502
493
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCardAccent, never>;
|
|
503
494
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxCardAccent, "[cngxCardAccent]", never, { "severity": { "alias": "cngxCardAccent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
504
495
|
}
|
|
505
496
|
|
|
497
|
+
type StatusSeverity = Exclude<CngxCardAccentSeverity, 'neutral'>;
|
|
498
|
+
/**
|
|
499
|
+
* Status icon for a card carrying {@link CngxCardAccent}. Place it in the
|
|
500
|
+
* title; it reads the severity from the enclosing card and renders the
|
|
501
|
+
* matching glyph plus a screen-reader label ("Warning", ...) ahead of the
|
|
502
|
+
* title text. `neutral` or a card without an accent renders nothing.
|
|
503
|
+
* Same glyphs and colouring as the alert severity icon.
|
|
504
|
+
*
|
|
505
|
+
* ```html
|
|
506
|
+
* <cngx-card cngxCardAccent="danger">
|
|
507
|
+
* <header cngxCardHeader>
|
|
508
|
+
* <h3 cngxCardTitle><cngx-card-accent-icon />Blutzucker</h3>
|
|
509
|
+
* </header>
|
|
510
|
+
* </cngx-card>
|
|
511
|
+
* ```
|
|
512
|
+
*
|
|
513
|
+
* @wcag AA
|
|
514
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-accent-icon.component.ts
|
|
515
|
+
* @since 0.3.0
|
|
516
|
+
* @relatedTo CngxCardAccent, CngxCardTitle, CngxCard
|
|
517
|
+
* <example-url>/#/common/card/severity-accent</example-url>
|
|
518
|
+
* @axis level atom
|
|
519
|
+
*/
|
|
520
|
+
declare class CngxCardAccentIcon {
|
|
521
|
+
private readonly accent;
|
|
522
|
+
/** @internal */
|
|
523
|
+
protected readonly i18n: _angular_core.Signal<CngxCardLanguageSection>;
|
|
524
|
+
/** @internal */
|
|
525
|
+
protected readonly glyph: Record<StatusSeverity, CngxIconData>;
|
|
526
|
+
/** @internal */
|
|
527
|
+
protected readonly labelKey: Record<StatusSeverity, keyof CngxCardLanguageSection>;
|
|
528
|
+
/** @internal The enclosing severity, `undefined` when there is no status. */
|
|
529
|
+
protected readonly status: _angular_core.Signal<StatusSeverity | undefined>;
|
|
530
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCardAccentIcon, never>;
|
|
531
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCardAccentIcon, "cngx-card-accent-icon", never, {}, {}, never, never, true, never>;
|
|
532
|
+
}
|
|
533
|
+
|
|
506
534
|
/**
|
|
507
535
|
* Skeleton placeholder for card content during loading.
|
|
508
536
|
*
|
|
@@ -520,12 +548,12 @@ declare class CngxCardAccent {
|
|
|
520
548
|
* </cngx-card>
|
|
521
549
|
* ```
|
|
522
550
|
*
|
|
523
|
-
* @category common/card
|
|
524
551
|
* @wcag AA
|
|
525
552
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-skeleton.component.ts
|
|
526
|
-
* @since 0.
|
|
553
|
+
* @since 0.3.0
|
|
527
554
|
* @relatedTo CngxCard, CngxCardBody, CngxCardMedia
|
|
528
|
-
* <example-url
|
|
555
|
+
* <example-url>/#/common/card/loading-state</example-url>
|
|
556
|
+
* @axis level organism
|
|
529
557
|
*/
|
|
530
558
|
declare class CngxCardSkeleton {
|
|
531
559
|
/** Number of body text lines to show. */
|
|
@@ -555,10 +583,10 @@ declare class CngxCardSkeleton {
|
|
|
555
583
|
* </cngx-card-grid>
|
|
556
584
|
* ```
|
|
557
585
|
*
|
|
558
|
-
* @category common/card
|
|
559
586
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-grid-empty.directive.ts
|
|
560
|
-
* @since 0.
|
|
587
|
+
* @since 0.3.0
|
|
561
588
|
* @relatedTo CngxCardGrid
|
|
589
|
+
* @axis level molecule
|
|
562
590
|
*/
|
|
563
591
|
declare class CngxCardGridEmpty {
|
|
564
592
|
/** Empty-state reason this template handles. Omit for a default fallback. */
|
|
@@ -602,15 +630,14 @@ declare class CngxCardGridEmpty {
|
|
|
602
630
|
* </cngx-card-grid>
|
|
603
631
|
* ```
|
|
604
632
|
*
|
|
605
|
-
* @category common/card
|
|
606
|
-
* @docsKind primary
|
|
607
633
|
* @wcag AA
|
|
608
634
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-grid.component.ts
|
|
609
|
-
* @since 0.
|
|
635
|
+
* @since 0.3.0
|
|
610
636
|
* @relatedTo CngxCard, CngxCardGridEmpty, CngxRovingTabindex, CngxAsyncState
|
|
611
|
-
* <example-url
|
|
612
|
-
* <example-url
|
|
613
|
-
* <example-url
|
|
637
|
+
* <example-url>/#/common/card/card-grid/basic-grid</example-url>
|
|
638
|
+
* <example-url>/#/common/card/card-grid/density-variants</example-url>
|
|
639
|
+
* <example-url>/#/common/card/card-grid/empty-state-with-reason</example-url>
|
|
640
|
+
* @axis level molecule
|
|
614
641
|
*/
|
|
615
642
|
declare class CngxCardGrid {
|
|
616
643
|
/** Minimum card width for the CSS Grid `minmax()` function. */
|
|
@@ -674,9 +701,8 @@ interface TimestampSegment {
|
|
|
674
701
|
* </cngx-card>
|
|
675
702
|
* ```
|
|
676
703
|
*
|
|
677
|
-
* @category common/card
|
|
678
704
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/card/card-timestamp.component.ts
|
|
679
|
-
* @since 0.
|
|
705
|
+
* @since 0.3.0
|
|
680
706
|
* @relatedTo CngxCard, CngxCardFooter
|
|
681
707
|
*/
|
|
682
708
|
declare class CngxCardTimestamp {
|
|
@@ -715,5 +741,5 @@ declare class CngxCardTimestamp {
|
|
|
715
741
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCardTimestamp, "cngx-card-timestamp", never, { "date": { "alias": "date"; "required": true; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
716
742
|
}
|
|
717
743
|
|
|
718
|
-
export { CNGX_CARD_I18N, CNGX_CARD_LANGUAGE_EN, CngxCard, CngxCardAccent, CngxCardActions, CngxCardBadge, CngxCardBody, CngxCardFooter, CngxCardGrid, CngxCardGridEmpty, CngxCardHeader, CngxCardMedia, CngxCardSkeleton, CngxCardSubtitle, CngxCardTimestamp, CngxCardTitle, injectCardI18n, provideCardI18n, withCardI18nLabels };
|
|
719
|
-
export type { CngxCardI18n, CngxCardI18nFeature, CngxCardLanguageSection, EmptyReason };
|
|
744
|
+
export { CNGX_CARD_I18N, CNGX_CARD_LANGUAGE_EN, CngxCard, CngxCardAccent, CngxCardAccentIcon, CngxCardActions, CngxCardBadge, CngxCardBody, CngxCardFooter, CngxCardGrid, CngxCardGridEmpty, CngxCardHeader, CngxCardMedia, CngxCardSkeleton, CngxCardSubtitle, CngxCardTimestamp, CngxCardTitle, injectCardI18n, provideCardI18n, withCardI18nLabels };
|
|
745
|
+
export type { CngxCardAccentSeverity, CngxCardI18n, CngxCardI18nFeature, CngxCardLanguageSection, EmptyReason };
|