@cngx/ui 0.1.0-rc.8 → 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/README.md +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +9 -5
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +55 -60
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +220 -339
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -34
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +138 -89
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +648 -495
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +212 -188
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +872 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +259 -130
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +148 -50
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +48 -32
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +59 -48
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +57 -19
- package/mat-tabs/styles/mat-tabs.css +285 -163
- package/nav-rail/README.md +325 -0
- package/package.json +37 -8
- package/paginator/README.md +10 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +46 -71
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +60 -85
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -43
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +109 -48
- package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +275 -292
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +5 -5
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +86 -89
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +186 -161
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +205 -84
- package/types/cngx-ui-tabs.d.ts +104 -28
- package/types/cngx-ui-timeline.d.ts +31 -51
- package/types/cngx-ui-toc.d.ts +43 -54
- package/types/cngx-ui.d.ts +1 -1
|
@@ -49,11 +49,9 @@ import { CngxAsyncState } from '@cngx/core/utils';
|
|
|
49
49
|
* </ng-template>
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
|
-
* @category ui/skeleton
|
|
53
|
-
* @docsKind primary
|
|
54
52
|
* @wcag AA
|
|
55
53
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/skeleton/skeleton-placeholder.ts
|
|
56
|
-
* @since 0.
|
|
54
|
+
* @since 0.3.0
|
|
57
55
|
* @relatedTo CngxSkeletonContainer
|
|
58
56
|
*/
|
|
59
57
|
declare class CngxSkeletonPlaceholder {
|
|
@@ -64,8 +62,6 @@ declare class CngxSkeletonPlaceholder {
|
|
|
64
62
|
}
|
|
65
63
|
/**
|
|
66
64
|
* Template context for `cngxSkeletonPlaceholder`.
|
|
67
|
-
*
|
|
68
|
-
* @category ui/skeleton
|
|
69
65
|
*/
|
|
70
66
|
interface CngxSkeletonPlaceholderContext {
|
|
71
67
|
/** Current index (0-based). */
|
|
@@ -111,17 +107,15 @@ interface CngxSkeletonPlaceholderContext {
|
|
|
111
107
|
* </cngx-skeleton>
|
|
112
108
|
* ```
|
|
113
109
|
*
|
|
114
|
-
* @category ui/skeleton
|
|
115
|
-
* @docsKind primary
|
|
116
110
|
* @wcag AA
|
|
117
111
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/skeleton/skeleton-container.ts
|
|
118
|
-
* @since 0.
|
|
112
|
+
* @since 0.3.0
|
|
119
113
|
* @relatedTo CngxSkeletonPlaceholder, CngxAsyncState, CngxEmptyState
|
|
120
114
|
* @slot cngxSkeletonPlaceholder Replaces the generated placeholder shape.
|
|
121
|
-
* <example-url
|
|
122
|
-
* <example-url
|
|
123
|
-
* <example-url
|
|
124
|
-
*
|
|
115
|
+
* <example-url>/#/ui/skeleton/skeleton-container</example-url>
|
|
116
|
+
* <example-url>/#/ui/skeleton/card-skeleton</example-url>
|
|
117
|
+
* <example-url>/#/ui/skeleton/template-context</example-url>
|
|
118
|
+
* @axis level molecule
|
|
125
119
|
*/
|
|
126
120
|
declare class CngxSkeletonContainer {
|
|
127
121
|
private readonly loadingConfig;
|
|
@@ -149,7 +143,7 @@ declare class CngxSkeletonContainer {
|
|
|
149
143
|
protected readonly placeholderTpl: _angular_core.Signal<CngxSkeletonPlaceholder | undefined>;
|
|
150
144
|
/** Array of indices for internal `@for` rendering. */
|
|
151
145
|
readonly indices: _angular_core.Signal<number[]>;
|
|
152
|
-
private readonly
|
|
146
|
+
private readonly motion;
|
|
153
147
|
/** @internal */
|
|
154
148
|
protected readonly showShimmer: _angular_core.Signal<boolean>;
|
|
155
149
|
/** @internal */
|
package/types/cngx-ui-speak.d.ts
CHANGED
|
@@ -22,13 +22,13 @@ import { CngxSpeak } from '@cngx/common';
|
|
|
22
22
|
* @include speak.theme($theme);
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
|
-
* @category ui/speak
|
|
26
|
-
* @docsKind primary
|
|
27
25
|
* @wcag AAA
|
|
28
26
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/speak/speak-button.ts
|
|
29
|
-
* @since 0.
|
|
27
|
+
* @since 0.3.0
|
|
30
28
|
* @relatedTo CngxSpeak
|
|
31
|
-
* <example-url
|
|
29
|
+
* <example-url>/#/ui/speak/speak-button/styled-speaker-icon</example-url>
|
|
30
|
+
* <example-url>/#/ui/speak/speak-button/card-with-speak-badge</example-url>
|
|
31
|
+
* @axis level molecule
|
|
32
32
|
*/
|
|
33
33
|
declare class CngxSpeakButton {
|
|
34
34
|
private readonly i18n;
|
|
@@ -44,6 +44,32 @@ declare class CngxSpeakButton {
|
|
|
44
44
|
* interrupt playback. Unbound, `CNGX_SPEAK_I18N.stopSpeaking` applies.
|
|
45
45
|
*/
|
|
46
46
|
readonly stopLabel: _angular_core.InputSignal<string | undefined>;
|
|
47
|
+
/** @internal - speaker while idle, stop square while speaking. */
|
|
48
|
+
protected readonly icon: _angular_core.Signal<{
|
|
49
|
+
readonly viewBox: "0 0 24 24";
|
|
50
|
+
readonly d: "M8 6h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z";
|
|
51
|
+
readonly paint: "fill";
|
|
52
|
+
readonly micro: {
|
|
53
|
+
readonly viewBox: "0 0 12 12";
|
|
54
|
+
readonly d: "M4 3H8A1 1 0 0 1 9 4V8A1 1 0 0 1 8 9H4A1 1 0 0 1 3 8V4A1 1 0 0 1 4 3Z";
|
|
55
|
+
};
|
|
56
|
+
readonly small: {
|
|
57
|
+
readonly viewBox: "0 0 16 16";
|
|
58
|
+
readonly d: "M5 4H11A1 1 0 0 1 12 5V11A1 1 0 0 1 11 12H5A1 1 0 0 1 4 11V5A1 1 0 0 1 5 4Z";
|
|
59
|
+
};
|
|
60
|
+
} | {
|
|
61
|
+
readonly viewBox: "0 0 24 24";
|
|
62
|
+
readonly d: "M11 5L6 9H2v6h4l5 4zM15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14";
|
|
63
|
+
readonly paint: "stroke";
|
|
64
|
+
readonly micro: {
|
|
65
|
+
readonly viewBox: "0 0 12 12";
|
|
66
|
+
readonly d: "M1 4H3L6 2V10L3 8H1ZM8 4H9V8H8ZM10 2H11V10H10Z";
|
|
67
|
+
};
|
|
68
|
+
readonly small: {
|
|
69
|
+
readonly viewBox: "0 0 16 16";
|
|
70
|
+
readonly d: "M2 6H4L8 3V13L4 10H2ZM10 6H11V10H10ZM13 4H14V12H13Z";
|
|
71
|
+
};
|
|
72
|
+
}>;
|
|
47
73
|
/** @internal - the label for the current playback state. */
|
|
48
74
|
protected readonly resolvedLabel: _angular_core.Signal<string>;
|
|
49
75
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSpeakButton, never>;
|
|
@@ -55,8 +81,7 @@ declare class CngxSpeakButton {
|
|
|
55
81
|
* `CngxSpeakButton`. It feeds `CNGX_SPEAK_I18N`; a key set through
|
|
56
82
|
* `withSpeakI18nLabels` still wins.
|
|
57
83
|
*
|
|
58
|
-
* @
|
|
59
|
-
* @since 0.1.0
|
|
84
|
+
* @since 0.3.0
|
|
60
85
|
* @relatedTo CNGX_SPEAK_I18N, withSpeakI18nLabels
|
|
61
86
|
*/
|
|
62
87
|
interface CngxSpeakLanguageSection {
|
|
@@ -69,8 +94,7 @@ interface CngxSpeakLanguageSection {
|
|
|
69
94
|
* The English speak section: the single source of the speak button's English
|
|
70
95
|
* copy. `CNGX_SPEAK_I18N` defaults to it.
|
|
71
96
|
*
|
|
72
|
-
* @
|
|
73
|
-
* @since 0.1.0
|
|
97
|
+
* @since 0.3.0
|
|
74
98
|
* @relatedTo CNGX_SPEAK_I18N
|
|
75
99
|
*/
|
|
76
100
|
declare const CNGX_SPEAK_LANGUAGE_EN: CngxSpeakLanguageSection;
|
|
@@ -89,8 +113,6 @@ declare module '@cngx/core/i18n' {
|
|
|
89
113
|
* `CngxSpeakButton` reads both keys inside a `computed()` while its
|
|
90
114
|
* `readAloudLabel` / `stopLabel` inputs are unbound, so the label follows a
|
|
91
115
|
* language switch.
|
|
92
|
-
*
|
|
93
|
-
* @category ui/speak/i18n
|
|
94
116
|
*/
|
|
95
117
|
type CngxSpeakI18n = CngxSpeakLanguageSection;
|
|
96
118
|
/**
|
|
@@ -98,30 +120,26 @@ type CngxSpeakI18n = CngxSpeakLanguageSection;
|
|
|
98
120
|
* section of the active language pack over the English defaults. The value is
|
|
99
121
|
* a `Signal`, shared by every reader under one injector.
|
|
100
122
|
*
|
|
101
|
-
* @category ui/speak/i18n
|
|
102
123
|
* @wcag AA
|
|
103
124
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/speak/speak-i18n.ts
|
|
104
|
-
* @since 0.
|
|
125
|
+
* @since 0.3.0
|
|
105
126
|
* @relatedTo CngxSpeakButton
|
|
106
127
|
*/
|
|
107
128
|
declare const CNGX_SPEAK_I18N: InjectionToken<Signal<CngxSpeakLanguageSection>>;
|
|
108
129
|
/**
|
|
109
|
-
*
|
|
130
|
+
* A label override feature of `provideSpeakI18n`.
|
|
110
131
|
*
|
|
111
|
-
* @
|
|
112
|
-
* @
|
|
132
|
+
* @since 0.3.0
|
|
133
|
+
* @relatedTo CNGX_SPEAK_I18N, withSpeakI18nLabels
|
|
113
134
|
*/
|
|
114
|
-
type CngxSpeakI18nFeature = (
|
|
115
|
-
readonly _target: 'i18n';
|
|
116
|
-
};
|
|
135
|
+
type CngxSpeakI18nFeature = (bundle: Signal<CngxSpeakI18n>) => Signal<CngxSpeakI18n>;
|
|
117
136
|
/**
|
|
118
137
|
* Override i18n labels via a partial bundle - unset keys, and keys set to
|
|
119
138
|
* `null` or `undefined`, keep the language pack's copy, or the English
|
|
120
139
|
* default, so the button never loses its accessible name. Pass a `Signal` of a
|
|
121
140
|
* partial bundle to switch languages at runtime.
|
|
122
141
|
*
|
|
123
|
-
* @
|
|
124
|
-
* @since 0.1.0
|
|
142
|
+
* @since 0.3.0
|
|
125
143
|
*/
|
|
126
144
|
declare function withSpeakI18nLabels(overrides: Partial<CngxSpeakI18n> | Signal<Partial<CngxSpeakI18n>>): CngxSpeakI18nFeature;
|
|
127
145
|
/**
|
|
@@ -136,15 +154,13 @@ declare function withSpeakI18nLabels(overrides: Partial<CngxSpeakI18n> | Signal<
|
|
|
136
154
|
* });
|
|
137
155
|
* ```
|
|
138
156
|
*
|
|
139
|
-
* @
|
|
140
|
-
* @since 0.1.0
|
|
157
|
+
* @since 0.3.0
|
|
141
158
|
*/
|
|
142
159
|
declare function provideSpeakI18n(...features: readonly CngxSpeakI18nFeature[]): Provider;
|
|
143
160
|
/**
|
|
144
161
|
* Inject the resolved speak i18n bundle signal.
|
|
145
162
|
*
|
|
146
|
-
* @
|
|
147
|
-
* @since 0.1.0
|
|
163
|
+
* @since 0.3.0
|
|
148
164
|
*/
|
|
149
165
|
declare function injectSpeakI18n(): Signal<CngxSpeakI18n>;
|
|
150
166
|
|
|
@@ -35,20 +35,44 @@ import { CngxAsyncState, CngxLoadingTreatment } from '@cngx/core/utils';
|
|
|
35
35
|
* </cngx-stat-card>
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
|
-
* @category ui/stat-card
|
|
39
|
-
* @docsKind primary
|
|
40
38
|
* @wcag AA
|
|
41
39
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card.component.ts
|
|
42
|
-
* @since 0.
|
|
40
|
+
* @since 0.3.0
|
|
43
41
|
* @relatedTo CngxStat, CngxStatCoordinator, CngxStatCardViz, CngxStatCardFooter, CngxCard
|
|
44
42
|
*
|
|
45
|
-
* <example-url
|
|
46
|
-
* <example-url
|
|
47
|
-
* <example-url
|
|
43
|
+
* <example-url>/#/ui/stat-card/basic/composed-kpi-tile</example-url>
|
|
44
|
+
* <example-url>/#/ui/stat-card/async/latency-aware-loading</example-url>
|
|
45
|
+
* <example-url>/#/ui/stat-card/async/error-and-refresh</example-url>
|
|
46
|
+
* @axis level organism
|
|
48
47
|
*/
|
|
49
48
|
declare class CngxStatCard {
|
|
50
49
|
/** @internal The shared slot-id brain, applied as a host directive. */
|
|
51
50
|
protected readonly coordinator: CngxStatCoordinator;
|
|
51
|
+
/** @internal - projected over the empty-state's stock archive glyph. */
|
|
52
|
+
protected readonly errorIcon: {
|
|
53
|
+
readonly viewBox: "0 0 24 24";
|
|
54
|
+
readonly d: "M12 3L2 20.5h20zM12 9.5v5M12 17.5v.01";
|
|
55
|
+
readonly paint: "stroke";
|
|
56
|
+
readonly micro: {
|
|
57
|
+
readonly viewBox: "0 0 12 12";
|
|
58
|
+
readonly d: "M6.514 1.857L11.486 10.143Q12 11 11 11L1 11Q0 11 0.514 10.143L5.486 1.857Q6 1 6.514 1.857ZM5 5V8H7V5ZM5 9V10H7V9Z";
|
|
59
|
+
};
|
|
60
|
+
readonly small: {
|
|
61
|
+
readonly viewBox: "0 0 16 16";
|
|
62
|
+
readonly d: "M8 2L14 14H2ZM7 6V10H9V6ZM7 11V13H9V11Z";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
/** @internal - mark inside the stale badge. */
|
|
66
|
+
protected readonly staleIcon: {
|
|
67
|
+
readonly viewBox: "0 0 24 24";
|
|
68
|
+
readonly d: "M11,14V5h2v9H11Zm0,5V17h2v2H11Z";
|
|
69
|
+
readonly paint: "fill";
|
|
70
|
+
readonly micro: {
|
|
71
|
+
readonly viewBox: "0 0 12 12";
|
|
72
|
+
readonly d: "M5 2H7V8H5ZM5 9H7V11H5Z";
|
|
73
|
+
};
|
|
74
|
+
readonly small: null;
|
|
75
|
+
};
|
|
52
76
|
private readonly config;
|
|
53
77
|
private readonly ariaLabels;
|
|
54
78
|
/**
|
|
@@ -152,9 +176,8 @@ declare class CngxStatCard {
|
|
|
152
176
|
* the viz stays decorative unless the projected preset carries its own
|
|
153
177
|
* accessible name.
|
|
154
178
|
*
|
|
155
|
-
* @category ui/stat-card
|
|
156
179
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card-slots.ts
|
|
157
|
-
* @since 0.
|
|
180
|
+
* @since 0.3.0
|
|
158
181
|
* @relatedTo CngxStatCard, CngxStatCardFooter
|
|
159
182
|
*/
|
|
160
183
|
declare class CngxStatCardViz {
|
|
@@ -165,9 +188,8 @@ declare class CngxStatCardViz {
|
|
|
165
188
|
* Marks the footer row of a {@link CngxStatCard} - a timestamp, a drill-down
|
|
166
189
|
* link, a `cngx-tag` row. Rendered below the stat block and the viz slot.
|
|
167
190
|
*
|
|
168
|
-
* @category ui/stat-card
|
|
169
191
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card-slots.ts
|
|
170
|
-
* @since 0.
|
|
192
|
+
* @since 0.3.0
|
|
171
193
|
* @relatedTo CngxStatCard, CngxStatCardViz
|
|
172
194
|
*/
|
|
173
195
|
declare class CngxStatCardFooter {
|
|
@@ -180,8 +202,7 @@ declare class CngxStatCardFooter {
|
|
|
180
202
|
* `CngxStatCard`. It feeds the `ariaLabels` of `CNGX_STAT_CARD_CONFIG`; a key
|
|
181
203
|
* set through `withStatCardAriaLabels` or a bound copy input still wins.
|
|
182
204
|
*
|
|
183
|
-
* @
|
|
184
|
-
* @since 0.1.0
|
|
205
|
+
* @since 0.3.0
|
|
185
206
|
* @relatedTo CNGX_STAT_CARD_CONFIG, withStatCardAriaLabels
|
|
186
207
|
*/
|
|
187
208
|
interface CngxStatCardLanguageSection {
|
|
@@ -198,8 +219,7 @@ interface CngxStatCardLanguageSection {
|
|
|
198
219
|
* The English stat-card section: the single source of the stat card's English
|
|
199
220
|
* copy. The `CNGX_STAT_CARD_CONFIG` labels default to it.
|
|
200
221
|
*
|
|
201
|
-
* @
|
|
202
|
-
* @since 0.1.0
|
|
222
|
+
* @since 0.3.0
|
|
203
223
|
* @relatedTo CNGX_STAT_CARD_CONFIG
|
|
204
224
|
*/
|
|
205
225
|
declare const CNGX_STAT_CARD_LANGUAGE_EN: CngxStatCardLanguageSection;
|
|
@@ -216,8 +236,7 @@ declare module '@cngx/core/i18n' {
|
|
|
216
236
|
* detail under the error headline, which has no default and is omitted when
|
|
217
237
|
* unset.
|
|
218
238
|
*
|
|
219
|
-
* @
|
|
220
|
-
* @since 0.1.0
|
|
239
|
+
* @since 0.3.0
|
|
221
240
|
*/
|
|
222
241
|
interface CngxStatCardAriaLabels extends Partial<CngxStatCardLanguageSection> {
|
|
223
242
|
/** Supporting detail under the error headline. Omitted when unset. */
|
|
@@ -226,8 +245,7 @@ interface CngxStatCardAriaLabels extends Partial<CngxStatCardLanguageSection> {
|
|
|
226
245
|
/**
|
|
227
246
|
* The resolved stat-card strings: every key of the `statCard` section is set.
|
|
228
247
|
*
|
|
229
|
-
* @
|
|
230
|
-
* @since 0.1.0
|
|
248
|
+
* @since 0.3.0
|
|
231
249
|
*/
|
|
232
250
|
type CngxStatCardResolvedAriaLabels = CngxStatCardAriaLabels & CngxStatCardLanguageSection;
|
|
233
251
|
/**
|
|
@@ -244,8 +262,7 @@ type CngxStatCardResolvedAriaLabels = CngxStatCardAriaLabels & CngxStatCardLangu
|
|
|
244
262
|
* Every key is optional - partial overrides deep-merge with the library
|
|
245
263
|
* defaults, so consumers declare only the keys they want to override.
|
|
246
264
|
*
|
|
247
|
-
* @
|
|
248
|
-
* @since 0.1.0
|
|
265
|
+
* @since 0.3.0
|
|
249
266
|
*/
|
|
250
267
|
interface CngxStatCardConfig {
|
|
251
268
|
/**
|
|
@@ -276,9 +293,8 @@ interface CngxStatCardConfig {
|
|
|
276
293
|
* provide the token explicitly - `inject(CNGX_STAT_CARD_CONFIG)` always
|
|
277
294
|
* resolves.
|
|
278
295
|
*
|
|
279
|
-
* @category ui/stat-card
|
|
280
296
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/config/stat-card.config.defaults.ts
|
|
281
|
-
* @since 0.
|
|
297
|
+
* @since 0.3.0
|
|
282
298
|
* @relatedTo provideStatCardConfig, provideStatCardConfigAt, injectStatCardConfig
|
|
283
299
|
*/
|
|
284
300
|
declare const CNGX_STAT_CARD_CONFIG: InjectionToken<CngxStatCardConfig>;
|
|
@@ -291,8 +307,7 @@ declare const CNGX_STAT_CARD_CONFIG: InjectionToken<CngxStatCardConfig>;
|
|
|
291
307
|
* `CngxBreadcrumbConfigFeature` so the consumer's mental model is one across
|
|
292
308
|
* feature areas.
|
|
293
309
|
*
|
|
294
|
-
* @
|
|
295
|
-
* @since 0.1.0
|
|
310
|
+
* @since 0.3.0
|
|
296
311
|
*/
|
|
297
312
|
type CngxStatCardConfigFeature = {
|
|
298
313
|
readonly kind: 'ariaLabels';
|
|
@@ -319,8 +334,7 @@ type CngxStatCardConfigFeature = {
|
|
|
319
334
|
* });
|
|
320
335
|
* ```
|
|
321
336
|
*
|
|
322
|
-
* @
|
|
323
|
-
* @since 0.1.0
|
|
337
|
+
* @since 0.3.0
|
|
324
338
|
*/
|
|
325
339
|
declare function provideStatCardConfig(...features: CngxStatCardConfigFeature[]): EnvironmentProviders;
|
|
326
340
|
/**
|
|
@@ -340,8 +354,7 @@ declare function provideStatCardConfig(...features: CngxStatCardConfigFeature[])
|
|
|
340
354
|
* class LiveTiles {}
|
|
341
355
|
* ```
|
|
342
356
|
*
|
|
343
|
-
* @
|
|
344
|
-
* @since 0.1.0
|
|
357
|
+
* @since 0.3.0
|
|
345
358
|
*/
|
|
346
359
|
declare function provideStatCardConfigAt(...features: CngxStatCardConfigFeature[]): Provider[];
|
|
347
360
|
|
|
@@ -361,8 +374,7 @@ declare function provideStatCardConfigAt(...features: CngxStatCardConfigFeature[
|
|
|
361
374
|
* );
|
|
362
375
|
* ```
|
|
363
376
|
*
|
|
364
|
-
* @
|
|
365
|
-
* @since 0.1.0
|
|
377
|
+
* @since 0.3.0
|
|
366
378
|
*/
|
|
367
379
|
declare function withStatCardAriaLabels(labels: CngxStatCardAriaLabels | Signal<CngxStatCardAriaLabels>): CngxStatCardConfigFeature;
|
|
368
380
|
/**
|
|
@@ -371,8 +383,7 @@ declare function withStatCardAriaLabels(labels: CngxStatCardAriaLabels | Signal<
|
|
|
371
383
|
* observed; `'spinner'` and `'skeleton'` pin it app-wide. Per-instance
|
|
372
384
|
* `[loadingTreatment]` still wins.
|
|
373
385
|
*
|
|
374
|
-
* @
|
|
375
|
-
* @since 0.1.0
|
|
386
|
+
* @since 0.3.0
|
|
376
387
|
*/
|
|
377
388
|
declare function withStatCardLoadingTreatment(treatment: CngxLoadingTreatment): CngxStatCardConfigFeature;
|
|
378
389
|
|
|
@@ -390,8 +401,7 @@ declare function withStatCardLoadingTreatment(treatment: CngxLoadingTreatment):
|
|
|
390
401
|
* }
|
|
391
402
|
* ```
|
|
392
403
|
*
|
|
393
|
-
* @
|
|
394
|
-
* @since 0.1.0
|
|
404
|
+
* @since 0.3.0
|
|
395
405
|
*/
|
|
396
406
|
declare function injectStatCardConfig(): CngxStatCardConfig;
|
|
397
407
|
/**
|
|
@@ -402,8 +412,7 @@ declare function injectStatCardConfig(): CngxStatCardConfig;
|
|
|
402
412
|
* in injection context; read it inside a `computed()`, a template or a
|
|
403
413
|
* handler, and untracked where it builds live-region text.
|
|
404
414
|
*
|
|
405
|
-
* @
|
|
406
|
-
* @since 0.1.0
|
|
415
|
+
* @since 0.3.0
|
|
407
416
|
*/
|
|
408
417
|
declare function injectStatCardAriaLabels(): Signal<CngxStatCardResolvedAriaLabels>;
|
|
409
418
|
|