@cngx/ui 0.1.0-rc.7 → 0.1.0-rc.8
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 +0 -1
- package/a11y/README.md +11 -5
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +224 -0
- package/data-grid-accordion/README.md +76 -2
- package/feedback/README.md +40 -0
- package/fesm2022/cngx-ui-a11y.mjs +189 -57
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +102 -35
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +112 -50
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +176 -96
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +194 -62
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +395 -119
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +149 -34
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +415 -98
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1022 -439
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +75 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +314 -141
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +487 -178
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +327 -106
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +4 -16
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +146 -46
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +191 -68
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +10 -6
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +74 -21
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +70 -26
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +15 -20
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/styles/mat-tabs.css +9 -10
- package/overlay/README.md +9 -4
- package/package.json +4 -4
- package/paginator/README.md +8 -4
- package/sidenav/README.md +33 -11
- package/speak/README.md +3 -2
- package/stepper/README.md +13 -1
- package/timeline/README.md +1 -1
- package/toc/README.md +4 -1
- package/types/cngx-ui-a11y.d.ts +121 -30
- package/types/cngx-ui-accordion.d.ts +91 -26
- package/types/cngx-ui-action-button.d.ts +44 -3
- package/types/cngx-ui-breadcrumb.d.ts +154 -58
- package/types/cngx-ui-chart-panel.d.ts +122 -18
- package/types/cngx-ui-collection.d.ts +147 -55
- package/types/cngx-ui-command-palette.d.ts +297 -183
- package/types/cngx-ui-context-menu.d.ts +98 -6
- package/types/cngx-ui-data-grid-accordion.d.ts +274 -38
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +594 -56
- package/types/cngx-ui-mat-accordion.d.ts +29 -1
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +207 -14
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +403 -129
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +6 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +117 -33
- package/types/cngx-ui-stepper.d.ts +66 -27
- package/types/cngx-ui-tabs.d.ts +2 -2
- package/types/cngx-ui-timeline.d.ts +23 -7
- package/types/cngx-ui-toc.d.ts +80 -13
- package/types/cngx-ui.d.ts +7 -4
package/toc/README.md
CHANGED
|
@@ -157,7 +157,10 @@ provideTocConfig(
|
|
|
157
157
|
Root, or scoped to a subtree with `provideTocConfigAt` in `viewProviders`, where
|
|
158
158
|
features merge onto the parent config rather than replacing it. Resolution runs
|
|
159
159
|
per-instance input, then the scoped provider, then root, then the library
|
|
160
|
-
default.
|
|
160
|
+
default. The landmark name comes from the `toc` section of the language pack
|
|
161
|
+
(English without one, `CNGX_TOC_LANGUAGE_EN`); the cascade overrides it.
|
|
162
|
+
`withTocAriaLabels` also takes a `Signal`, so the landmark name follows a runtime
|
|
163
|
+
language switch; read the resolved labels with `injectTocAriaLabels()`.
|
|
161
164
|
|
|
162
165
|
## Material Theme
|
|
163
166
|
|
package/types/cngx-ui-a11y.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _cngx_ui_a11y from '@cngx/ui/a11y';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, EnvironmentProviders, Provider
|
|
2
|
+
import { InjectionToken, Signal, EnvironmentProviders, Provider } from '@angular/core';
|
|
4
3
|
import { CngxDensityValue, CngxTextScaleValue, CngxMotionPreference, CngxContrastPreference } from '@cngx/core';
|
|
5
4
|
|
|
6
5
|
/**
|
|
@@ -16,8 +15,8 @@ type CngxA11yPanelAxis = 'density' | 'textScale' | 'motion' | 'contrast';
|
|
|
16
15
|
* One selectable option in an axis control group: the value written to the
|
|
17
16
|
* axis signal plus the visible/toggle label. `V` is the axis' own value union
|
|
18
17
|
* (e.g. `CngxDensityValue`), so a misspelled value fails to compile rather
|
|
19
|
-
* than reaching the global preference signal.
|
|
20
|
-
*
|
|
18
|
+
* than reaching the global preference signal. An option without a `label`
|
|
19
|
+
* reads it from the `a11yPanel` section of the language pack, by value.
|
|
21
20
|
*
|
|
22
21
|
* @category ui/a11y
|
|
23
22
|
* @relatedTo withA11yPanelAxes
|
|
@@ -27,8 +26,12 @@ type CngxA11yPanelAxis = 'density' | 'textScale' | 'motion' | 'contrast';
|
|
|
27
26
|
interface CngxA11yPanelAxisOption<V extends string = string> {
|
|
28
27
|
/** Value written to the axis signal - a valid member of that axis' union. */
|
|
29
28
|
readonly value: V;
|
|
30
|
-
/**
|
|
31
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Toggle-button label. Leave it out to read the label for `value` from the
|
|
31
|
+
* `a11yPanel` section of the language pack (English without one), so the
|
|
32
|
+
* option follows a language switch. A label set here wins.
|
|
33
|
+
*/
|
|
34
|
+
readonly label?: string;
|
|
32
35
|
}
|
|
33
36
|
/**
|
|
34
37
|
* A rendered axis control group: which axis, its ordered options, and the
|
|
@@ -63,8 +66,9 @@ type CngxA11yPanelAxisSpec = {
|
|
|
63
66
|
/**
|
|
64
67
|
* Panel text: per-axis group labels, the Reset control label, the default
|
|
65
68
|
* heading (shown when no `[cngxA11yPanelHeader]` is projected), and the
|
|
66
|
-
* live-region message announced on Reset.
|
|
67
|
-
*
|
|
69
|
+
* live-region message announced on Reset. The defaults come from the
|
|
70
|
+
* `a11yPanel` section of the language pack (English without one); override
|
|
71
|
+
* single keys via {@link withA11yPanelLabels}.
|
|
68
72
|
*
|
|
69
73
|
* @category ui/a11y
|
|
70
74
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
@@ -81,17 +85,23 @@ interface CngxA11yPanelLabels {
|
|
|
81
85
|
readonly resetMessage: string;
|
|
82
86
|
}
|
|
83
87
|
/**
|
|
84
|
-
* Resolved panel configuration - the text
|
|
85
|
-
* Merged from the library defaults and any `with*` features by the
|
|
86
|
-
* {@link provideA11yPanelConfig}.
|
|
88
|
+
* Resolved panel configuration - the text overrides plus the ordered axis
|
|
89
|
+
* list. Merged from the library defaults and any `with*` features by the
|
|
90
|
+
* reducer in {@link provideA11yPanelConfig}.
|
|
91
|
+
*
|
|
92
|
+
* `labels` holds overrides only: unset by default, a value or a `Signal` once
|
|
93
|
+
* {@link withA11yPanelLabels} ran; every key it leaves out reads the
|
|
94
|
+
* `a11yPanel` section of the language pack. `axes` accepts a value or a
|
|
95
|
+
* `Signal`; its option labels are optional and default to the section. Read
|
|
96
|
+
* both through {@link injectA11yPanelLabels} and {@link injectA11yPanelAxes}.
|
|
87
97
|
*
|
|
88
98
|
* @category ui/a11y
|
|
89
99
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
90
100
|
* @since 0.1.0
|
|
91
101
|
*/
|
|
92
102
|
interface CngxA11yPanelConfig {
|
|
93
|
-
readonly labels
|
|
94
|
-
readonly axes: readonly CngxA11yPanelAxisSpec[]
|
|
103
|
+
readonly labels?: CngxA11yPanelLabelsOverride | Signal<CngxA11yPanelLabelsOverride>;
|
|
104
|
+
readonly axes: readonly CngxA11yPanelAxisSpec[] | Signal<readonly CngxA11yPanelAxisSpec[]>;
|
|
95
105
|
}
|
|
96
106
|
/**
|
|
97
107
|
* Partial text override accepted by `withA11yPanelLabels`. The `axes`
|
|
@@ -109,8 +119,14 @@ interface CngxA11yPanelLabelsOverride {
|
|
|
109
119
|
readonly heading?: string;
|
|
110
120
|
readonly resetMessage?: string;
|
|
111
121
|
}
|
|
112
|
-
/**
|
|
113
|
-
|
|
122
|
+
/**
|
|
123
|
+
* Library defaults: the four axes in their default order, each with its reset
|
|
124
|
+
* value. Carries no copy - the text and the option labels are the `a11yPanel`
|
|
125
|
+
* section of the language pack. Override via {@link provideA11yPanelConfig}.
|
|
126
|
+
*/
|
|
127
|
+
declare const CNGX_A11Y_PANEL_DEFAULTS: CngxA11yPanelConfig & {
|
|
128
|
+
readonly axes: readonly CngxA11yPanelAxisSpec[];
|
|
129
|
+
};
|
|
114
130
|
/**
|
|
115
131
|
* Configuration cascade token. Resolution priority (high to low):
|
|
116
132
|
* `provideA11yPanelConfigAt(...)` in a component's `viewProviders`, then
|
|
@@ -134,15 +150,16 @@ declare const CNGX_A11Y_PANEL_CONFIG: InjectionToken<CngxA11yPanelConfig>;
|
|
|
134
150
|
*/
|
|
135
151
|
type CngxA11yPanelConfigFeature = {
|
|
136
152
|
readonly kind: 'labels';
|
|
137
|
-
readonly payload: CngxA11yPanelLabelsOverride
|
|
153
|
+
readonly payload: CngxA11yPanelLabelsOverride | Signal<CngxA11yPanelLabelsOverride>;
|
|
138
154
|
} | {
|
|
139
155
|
readonly kind: 'axes';
|
|
140
|
-
readonly payload: readonly CngxA11yPanelAxisSpec[]
|
|
156
|
+
readonly payload: readonly CngxA11yPanelAxisSpec[] | Signal<readonly CngxA11yPanelAxisSpec[]>;
|
|
141
157
|
};
|
|
142
158
|
/**
|
|
143
159
|
* Override any subset of the panel text - axis group labels, the Reset label,
|
|
144
160
|
* the default heading, or the Reset announcement. The `axes` record merges
|
|
145
|
-
* key-by-key, so a single axis can be relabelled in isolation.
|
|
161
|
+
* key-by-key, so a single axis can be relabelled in isolation. Pass a `Signal`
|
|
162
|
+
* to switch the language at runtime.
|
|
146
163
|
*
|
|
147
164
|
* ```ts
|
|
148
165
|
* provideA11yPanelConfig(
|
|
@@ -159,17 +176,20 @@ type CngxA11yPanelConfigFeature = {
|
|
|
159
176
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
160
177
|
* @since 0.1.0
|
|
161
178
|
*/
|
|
162
|
-
declare function withA11yPanelLabels(payload: CngxA11yPanelLabelsOverride): CngxA11yPanelConfigFeature;
|
|
179
|
+
declare function withA11yPanelLabels(payload: CngxA11yPanelLabelsOverride | Signal<CngxA11yPanelLabelsOverride>): CngxA11yPanelConfigFeature;
|
|
163
180
|
/**
|
|
164
181
|
* Replace the rendered axis list - reorder groups, drop an axis, or restrict
|
|
165
182
|
* the options a group offers. Supplying a subset renders only those groups.
|
|
183
|
+
* Leave an option's `label` out and it reads the `a11yPanel` section of the
|
|
184
|
+
* language pack, so the options translate without restating the list; pass a
|
|
185
|
+
* `Signal` to relabel options you set yourself on a runtime language switch.
|
|
166
186
|
*
|
|
167
187
|
* ```ts
|
|
168
188
|
* provideA11yPanelConfig(
|
|
169
189
|
* withA11yPanelAxes([
|
|
170
190
|
* { axis: 'textScale', reset: 'md', options: [
|
|
171
|
-
* { value: 'md'
|
|
172
|
-
* { value: 'lg', label: '
|
|
191
|
+
* { value: 'md' },
|
|
192
|
+
* { value: 'lg', label: 'Bigger' },
|
|
173
193
|
* ] },
|
|
174
194
|
* ]),
|
|
175
195
|
* );
|
|
@@ -180,7 +200,7 @@ declare function withA11yPanelLabels(payload: CngxA11yPanelLabelsOverride): Cngx
|
|
|
180
200
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
181
201
|
* @since 0.1.0
|
|
182
202
|
*/
|
|
183
|
-
declare function withA11yPanelAxes(payload: readonly CngxA11yPanelAxisSpec[]): CngxA11yPanelConfigFeature;
|
|
203
|
+
declare function withA11yPanelAxes(payload: readonly CngxA11yPanelAxisSpec[] | Signal<readonly CngxA11yPanelAxisSpec[]>): CngxA11yPanelConfigFeature;
|
|
184
204
|
/**
|
|
185
205
|
* Application-root configuration cascade for the accessibility panel. Pass any
|
|
186
206
|
* combination of `with*` features in `bootstrapApplication`'s providers;
|
|
@@ -234,6 +254,31 @@ declare function provideA11yPanelConfigAt(...features: CngxA11yPanelConfigFeatur
|
|
|
234
254
|
* @since 0.1.0
|
|
235
255
|
*/
|
|
236
256
|
declare function injectA11yPanelConfig(): CngxA11yPanelConfig;
|
|
257
|
+
/**
|
|
258
|
+
* The resolved text bundle of the panel config in scope, as a Signal that
|
|
259
|
+
* follows a runtime language switch: the config overrides over the `a11yPanel`
|
|
260
|
+
* section of the active pack, the `axes` record merged key by key. A key the
|
|
261
|
+
* config leaves unset, `null` or `undefined` reads the section. Runs in an
|
|
262
|
+
* injection context; read it inside a `computed()`, a template or a handler.
|
|
263
|
+
*
|
|
264
|
+
* @category ui/a11y
|
|
265
|
+
* @relatedTo withA11yPanelLabels
|
|
266
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
267
|
+
* @since 0.1.0
|
|
268
|
+
*/
|
|
269
|
+
declare function injectA11yPanelLabels(): Signal<CngxA11yPanelLabels>;
|
|
270
|
+
/**
|
|
271
|
+
* The resolved axis list of the panel config in scope (values, option labels
|
|
272
|
+
* and reset targets), as a Signal that follows a runtime language switch.
|
|
273
|
+
* Every option without its own `label` carries the label for its value from
|
|
274
|
+
* the `a11yPanel` section of the active pack. Runs in an injection context.
|
|
275
|
+
*
|
|
276
|
+
* @category ui/a11y
|
|
277
|
+
* @relatedTo withA11yPanelAxes
|
|
278
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
279
|
+
* @since 0.1.0
|
|
280
|
+
*/
|
|
281
|
+
declare function injectA11yPanelAxes(): Signal<readonly CngxA11yPanelAxisSpec[]>;
|
|
237
282
|
|
|
238
283
|
/**
|
|
239
284
|
* One rendered axis group, resolved once from the config against the
|
|
@@ -284,20 +329,66 @@ interface CngxA11yPanelAxisView {
|
|
|
284
329
|
declare class CngxA11yPanel {
|
|
285
330
|
private readonly announcer;
|
|
286
331
|
private readonly prefs;
|
|
287
|
-
protected readonly
|
|
332
|
+
protected readonly labels: Signal<CngxA11yPanelLabels>;
|
|
333
|
+
private readonly axes;
|
|
288
334
|
private readonly uid;
|
|
289
335
|
/**
|
|
290
|
-
* The axis groups to render
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
336
|
+
* The axis groups to render, rebuilt when the axis list or the labels change
|
|
337
|
+
* so both follow a language switch. A rebuild that yields the same axes,
|
|
338
|
+
* labels and options keeps the previous array. Each view's `value` is the
|
|
339
|
+
* axis preference itself, so picking an option re-renders only that group.
|
|
294
340
|
*/
|
|
295
|
-
protected readonly axisViews: readonly CngxA11yPanelAxisView[]
|
|
341
|
+
protected readonly axisViews: Signal<readonly CngxA11yPanelAxisView[]>;
|
|
296
342
|
private buildAxisViews;
|
|
297
343
|
protected reset(): void;
|
|
298
344
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxA11yPanel, never>;
|
|
299
345
|
static ɵcmp: i0.ɵɵComponentDeclaration<CngxA11yPanel, "cngx-a11y-panel", never, {}, {}, never, ["[cngxA11yPanelHeader]"], true, never>;
|
|
300
346
|
}
|
|
301
347
|
|
|
302
|
-
|
|
303
|
-
|
|
348
|
+
/**
|
|
349
|
+
* The accessibility-panel section of a {@link CngxLanguagePack}: the copy of
|
|
350
|
+
* `CngxA11yPanel`. The text keys feed the `labels` of `CNGX_A11Y_PANEL_CONFIG`
|
|
351
|
+
* (a key set through `withA11yPanelLabels` still wins); the four option
|
|
352
|
+
* records label the toggle options by value, so an axis list from
|
|
353
|
+
* `withA11yPanelAxes` without option labels reads them from here.
|
|
354
|
+
*
|
|
355
|
+
* @category ui/a11y/i18n
|
|
356
|
+
* @since 0.1.0
|
|
357
|
+
* @relatedTo CNGX_A11Y_PANEL_CONFIG, withA11yPanelLabels, withA11yPanelAxes
|
|
358
|
+
*/
|
|
359
|
+
interface CngxA11yPanelLanguageSection {
|
|
360
|
+
/** Default heading, shown when no `[cngxA11yPanelHeader]` slot is projected. */
|
|
361
|
+
readonly heading: string;
|
|
362
|
+
/** Reset control label. */
|
|
363
|
+
readonly reset: string;
|
|
364
|
+
/** Announced when Reset restores every axis. */
|
|
365
|
+
readonly resetMessage: string;
|
|
366
|
+
/** Group label (the accessible name) per axis. */
|
|
367
|
+
readonly axes: Readonly<Record<'density' | 'textScale' | 'motion' | 'contrast', string>>;
|
|
368
|
+
/** Option labels of the spacing group, by value. */
|
|
369
|
+
readonly density: Readonly<Record<CngxDensityValue, string>>;
|
|
370
|
+
/** Option labels of the text-size group, by value. */
|
|
371
|
+
readonly textScale: Readonly<Record<CngxTextScaleValue, string>>;
|
|
372
|
+
/** Option labels of the motion group, by value. */
|
|
373
|
+
readonly motion: Readonly<Record<CngxMotionPreference, string>>;
|
|
374
|
+
/** Option labels of the contrast group, by value. */
|
|
375
|
+
readonly contrast: Readonly<Record<CngxContrastPreference, string>>;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* The English accessibility-panel section: the single source of the panel's
|
|
379
|
+
* English copy. The `CNGX_A11Y_PANEL_CONFIG` labels and option labels default
|
|
380
|
+
* to it.
|
|
381
|
+
*
|
|
382
|
+
* @category ui/a11y/i18n
|
|
383
|
+
* @since 0.1.0
|
|
384
|
+
* @relatedTo CNGX_A11Y_PANEL_CONFIG
|
|
385
|
+
*/
|
|
386
|
+
declare const CNGX_A11Y_PANEL_LANGUAGE_EN: CngxA11yPanelLanguageSection;
|
|
387
|
+
declare module '@cngx/core/i18n' {
|
|
388
|
+
interface CngxLanguagePack {
|
|
389
|
+
readonly a11yPanel: CngxA11yPanelLanguageSection;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export { CNGX_A11Y_PANEL_CONFIG, CNGX_A11Y_PANEL_DEFAULTS, CNGX_A11Y_PANEL_LANGUAGE_EN, CngxA11yPanel, injectA11yPanelAxes, injectA11yPanelConfig, injectA11yPanelLabels, provideA11yPanelConfig, provideA11yPanelConfigAt, withA11yPanelAxes, withA11yPanelLabels };
|
|
394
|
+
export type { CngxA11yPanelAxis, CngxA11yPanelAxisOption, CngxA11yPanelAxisSpec, CngxA11yPanelConfig, CngxA11yPanelConfigFeature, CngxA11yPanelLabels, CngxA11yPanelLabelsOverride, CngxA11yPanelLanguageSection };
|
|
@@ -124,11 +124,12 @@ type CngxAccordionSeverity = 'error' | 'warning' | 'info';
|
|
|
124
124
|
* 2. `provideAccordionConfigAt(...)` in a parent component's `viewProviders`
|
|
125
125
|
* (component-scoped override).
|
|
126
126
|
* 3. `provideAccordionConfig(...)` at the application root.
|
|
127
|
-
* 4. Library defaults (
|
|
127
|
+
* 4. Library defaults (`CNGX_ACCORDION_DEFAULTS`; the copy comes from the
|
|
128
|
+
* `accordion` section of the language pack).
|
|
128
129
|
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* observes a partial shape.
|
|
130
|
+
* The copy keys are overrides only: the token's default leaves them unset, and
|
|
131
|
+
* {@link injectAccordionLabels} fills every unset key from the `accordion`
|
|
132
|
+
* section of the language pack, so a reader never observes a partial shape.
|
|
132
133
|
*
|
|
133
134
|
* @category ui/accordion
|
|
134
135
|
* @since 0.1.0
|
|
@@ -136,17 +137,22 @@ type CngxAccordionSeverity = 'error' | 'warning' | 'info';
|
|
|
136
137
|
interface CngxAccordionConfig {
|
|
137
138
|
/**
|
|
138
139
|
* Reason announced to assistive tech when an item is disabled, bound through
|
|
139
|
-
* the item's always-present `aria-describedby` reason element.
|
|
140
|
-
*
|
|
140
|
+
* the item's always-present `aria-describedby` reason element. An override
|
|
141
|
+
* only: unset, the reason comes from the `accordion` section of the language
|
|
142
|
+
* pack. A per-instance `[disabledReason]` still wins over the cascade.
|
|
143
|
+
* Accepts a `Signal` so the reason follows a runtime language switch.
|
|
141
144
|
*/
|
|
142
|
-
readonly disabledReason
|
|
145
|
+
readonly disabledReason?: string | Signal<string>;
|
|
143
146
|
/**
|
|
144
147
|
* Message announced (via a `role="alert"`) when an item's `[state]` is error
|
|
145
|
-
* and no `*cngxAccordionItemError` slot is provided.
|
|
146
|
-
*
|
|
148
|
+
* and no `*cngxAccordionItemError` slot is provided. An override only:
|
|
149
|
+
* unset, the message comes from the `accordion` section of the language
|
|
150
|
+
* pack. A per-instance `[errorMessage]` or the error slot still wins. Ships a spoken
|
|
147
151
|
* default so the error state is never silent to assistive tech (Pillar 2).
|
|
152
|
+
* Accepts a `Signal`; a shown message keeps its text on a language switch and
|
|
153
|
+
* speaks the new language with the next error.
|
|
148
154
|
*/
|
|
149
|
-
readonly errorMessage
|
|
155
|
+
readonly errorMessage?: string | Signal<string>;
|
|
150
156
|
/**
|
|
151
157
|
* Default `aria-level` (2-6) every `CngxAccordionGroup` heading wrapper
|
|
152
158
|
* reflects when `[headingLevel]` is not bound. Clamped into the ARIA range by
|
|
@@ -397,6 +403,7 @@ declare class CngxAccordionItemSubtitle {
|
|
|
397
403
|
*/
|
|
398
404
|
declare class CngxAccordionItem {
|
|
399
405
|
private readonly config;
|
|
406
|
+
private readonly copy;
|
|
400
407
|
/**
|
|
401
408
|
* Disabled item: the header reports `tabindex="-1"` + `aria-disabled="true"`,
|
|
402
409
|
* is skipped by roving, and its click never expands. The reason text is
|
|
@@ -414,18 +421,19 @@ declare class CngxAccordionItem {
|
|
|
414
421
|
* Reason announced to assistive tech when the item is disabled, bound through
|
|
415
422
|
* the always-present `aria-describedby` reason element. Resolves
|
|
416
423
|
* `input ?? CNGX_ACCORDION_CONFIG.disabledReason ?? EN default`: an unbound
|
|
417
|
-
* input falls back to the app-wide config (English out of the
|
|
418
|
-
* via `withAccordionLabels`).
|
|
424
|
+
* input (`undefined`) falls back to the app-wide config (English out of the
|
|
425
|
+
* box, overridden via `withAccordionLabels`) and follows a language switch.
|
|
419
426
|
*/
|
|
420
|
-
readonly disabledReason: _angular_core.InputSignal<string>;
|
|
427
|
+
readonly disabledReason: _angular_core.InputSignal<string | undefined>;
|
|
421
428
|
/**
|
|
422
429
|
* Message announced through a `role="alert"` when `[state]` is error and no
|
|
423
430
|
* `*cngxAccordionItemError` slot is provided. Resolves
|
|
424
431
|
* `input ?? CNGX_ACCORDION_CONFIG.errorMessage ?? EN default`, mirroring
|
|
425
432
|
* {@link disabledReason}: a spoken default so the error state is never silent
|
|
426
|
-
* to assistive tech. The error slot, when present, wins over this string.
|
|
433
|
+
* to assistive tech. The error slot, when present, wins over this string. An
|
|
434
|
+
* unbound input reads `undefined`.
|
|
427
435
|
*/
|
|
428
|
-
readonly errorMessage: _angular_core.InputSignal<string>;
|
|
436
|
+
readonly errorMessage: _angular_core.InputSignal<string | undefined>;
|
|
429
437
|
/**
|
|
430
438
|
* Stable id this item registers under in the coordinator's open-set. Defaults
|
|
431
439
|
* to a generated id; bind `[panelId]` to a stable consumer value to address
|
|
@@ -449,6 +457,8 @@ declare class CngxAccordionItem {
|
|
|
449
457
|
protected readonly titleId: string;
|
|
450
458
|
protected readonly subtitleId: string;
|
|
451
459
|
protected readonly reasonId: string;
|
|
460
|
+
/** The disabled reason: the bound input, else the cascade default. */
|
|
461
|
+
protected readonly resolvedDisabledReason: _angular_core.Signal<string>;
|
|
452
462
|
/**
|
|
453
463
|
* The button's `aria-describedby`: subtitle first (an informative secondary
|
|
454
464
|
* line the title-only name-pin would otherwise hide from AT), then the
|
|
@@ -502,6 +512,13 @@ declare class CngxAccordionItem {
|
|
|
502
512
|
* pending) so the string and object input forms agree. Boolean, no `equal`.
|
|
503
513
|
*/
|
|
504
514
|
protected readonly busy: _angular_core.Signal<boolean>;
|
|
515
|
+
/**
|
|
516
|
+
* Text of the `role="alert"`. A bound `[errorMessage]` is tracked; the cascade
|
|
517
|
+
* default is read untracked and re-read on a status change, so a language
|
|
518
|
+
* switch does not re-announce a shown error - the next error speaks the new
|
|
519
|
+
* language.
|
|
520
|
+
*/
|
|
521
|
+
protected readonly resolvedErrorMessage: _angular_core.Signal<string>;
|
|
505
522
|
/** Whether this item's region is open, derived from the coordinator's open-set. */
|
|
506
523
|
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
507
524
|
/**
|
|
@@ -637,8 +654,8 @@ declare const CNGX_ACCORDION_CONFIG: InjectionToken<CngxAccordionConfig>;
|
|
|
637
654
|
type CngxAccordionConfigFeature = {
|
|
638
655
|
readonly kind: 'labels';
|
|
639
656
|
readonly payload: {
|
|
640
|
-
readonly disabledReason?: string
|
|
641
|
-
readonly errorMessage?: string
|
|
657
|
+
readonly disabledReason?: string | Signal<string>;
|
|
658
|
+
readonly errorMessage?: string | Signal<string>;
|
|
642
659
|
};
|
|
643
660
|
} | {
|
|
644
661
|
readonly kind: 'headingLevel';
|
|
@@ -716,7 +733,8 @@ declare function provideAccordionConfigAt(...features: CngxAccordionConfigFeatur
|
|
|
716
733
|
* (spoken when an item is disabled) and `errorMessage` (spoken via `role="alert"`
|
|
717
734
|
* when an item's `[state]` is error and no error slot is given). Pass either or
|
|
718
735
|
* both. Per-instance `[disabledReason]` / `[errorMessage]` still win over the
|
|
719
|
-
* cascade; this only sets the fallback.
|
|
736
|
+
* cascade; this only sets the fallback. Pass a `Signal` for either string to
|
|
737
|
+
* switch the language at runtime.
|
|
720
738
|
*
|
|
721
739
|
* ```ts
|
|
722
740
|
* provideAccordionConfig(
|
|
@@ -731,8 +749,8 @@ declare function provideAccordionConfigAt(...features: CngxAccordionConfigFeatur
|
|
|
731
749
|
* @since 0.1.0
|
|
732
750
|
*/
|
|
733
751
|
declare function withAccordionLabels(payload: {
|
|
734
|
-
disabledReason?: string
|
|
735
|
-
errorMessage?: string
|
|
752
|
+
disabledReason?: string | Signal<string>;
|
|
753
|
+
errorMessage?: string | Signal<string>;
|
|
736
754
|
}): CngxAccordionConfigFeature;
|
|
737
755
|
/**
|
|
738
756
|
* Override the default heading level (`aria-level`) a `CngxAccordionGroup`
|
|
@@ -782,6 +800,37 @@ declare function withAccordionSkin(skin: CngxAccordionSkin): CngxAccordionConfig
|
|
|
782
800
|
*/
|
|
783
801
|
declare function withAccordionTemplates(payload: NonNullable<CngxAccordionConfig['templates']>): CngxAccordionConfigFeature;
|
|
784
802
|
|
|
803
|
+
/**
|
|
804
|
+
* The accordion section of a {@link CngxLanguagePack}: the copy
|
|
805
|
+
* `CngxAccordionItem` speaks on its own behalf. It feeds the copy keys of
|
|
806
|
+
* `CNGX_ACCORDION_CONFIG`; a key set through `withAccordionLabels` or a bound
|
|
807
|
+
* `[disabledReason]` / `[errorMessage]` still wins.
|
|
808
|
+
*
|
|
809
|
+
* @category ui/accordion/i18n
|
|
810
|
+
* @since 0.1.0
|
|
811
|
+
* @relatedTo CNGX_ACCORDION_CONFIG, withAccordionLabels
|
|
812
|
+
*/
|
|
813
|
+
interface CngxAccordionLanguageSection {
|
|
814
|
+
/** Reason announced when an item is disabled. */
|
|
815
|
+
readonly disabledReason: string;
|
|
816
|
+
/** Announced through `role="alert"` when an item's state is error. */
|
|
817
|
+
readonly errorMessage: string;
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* The English accordion section: the single source of the accordion's English
|
|
821
|
+
* copy. The `CNGX_ACCORDION_CONFIG` copy keys default to it.
|
|
822
|
+
*
|
|
823
|
+
* @category ui/accordion/i18n
|
|
824
|
+
* @since 0.1.0
|
|
825
|
+
* @relatedTo CNGX_ACCORDION_CONFIG
|
|
826
|
+
*/
|
|
827
|
+
declare const CNGX_ACCORDION_LANGUAGE_EN: CngxAccordionLanguageSection;
|
|
828
|
+
declare module '@cngx/core/i18n' {
|
|
829
|
+
interface CngxLanguagePack {
|
|
830
|
+
readonly accordion: CngxAccordionLanguageSection;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
785
834
|
/**
|
|
786
835
|
* Convenience accessor for the accordion configuration cascade. Runs in
|
|
787
836
|
* injection context; resolves through the priority chain (per-instance Input
|
|
@@ -790,17 +839,33 @@ declare function withAccordionTemplates(payload: NonNullable<CngxAccordionConfig
|
|
|
790
839
|
* so consumers don't import the token directly. Mirrors `injectBreadcrumbConfig`
|
|
791
840
|
* in `@cngx/ui/breadcrumb`.
|
|
792
841
|
*
|
|
842
|
+
* The copy keys `disabledReason` and `errorMessage` hold overrides only; read
|
|
843
|
+
* the resolved copy (overrides over the language pack) through
|
|
844
|
+
* {@link injectAccordionLabels}.
|
|
845
|
+
*
|
|
846
|
+
* @category ui/accordion
|
|
847
|
+
* @since 0.1.0
|
|
848
|
+
*/
|
|
849
|
+
declare function injectAccordionConfig(): CngxAccordionConfig;
|
|
850
|
+
/**
|
|
851
|
+
* The accordion copy in scope - `disabledReason` and `errorMessage` - as a
|
|
852
|
+
* Signal that follows a runtime language switch. A key the config sets wins;
|
|
853
|
+
* a key it leaves unset, `null` or `undefined` reads the `accordion` section
|
|
854
|
+
* of the active pack (English without one). Runs in injection context; read it
|
|
855
|
+
* inside a `computed()`, a template or a handler, and untracked where it
|
|
856
|
+
* builds live-region text.
|
|
857
|
+
*
|
|
793
858
|
* ```ts
|
|
794
|
-
* export class
|
|
795
|
-
* private readonly
|
|
796
|
-
* readonly
|
|
859
|
+
* export class MyAccordionReason {
|
|
860
|
+
* private readonly copy = injectAccordionLabels();
|
|
861
|
+
* protected readonly reason = computed(() => this.copy().disabledReason);
|
|
797
862
|
* }
|
|
798
863
|
* ```
|
|
799
864
|
*
|
|
800
865
|
* @category ui/accordion
|
|
801
866
|
* @since 0.1.0
|
|
802
867
|
*/
|
|
803
|
-
declare function
|
|
868
|
+
declare function injectAccordionLabels(): Signal<CngxAccordionLanguageSection>;
|
|
804
869
|
|
|
805
|
-
export { CNGX_ACCORDION_CONFIG, CNGX_ACCORDION_GROUP, CngxAccordionGroup, CngxAccordionItem, CngxAccordionItemBusy, CngxAccordionItemContent, CngxAccordionItemError, CngxAccordionItemIcon, CngxAccordionItemLeading, CngxAccordionItemMeta, CngxAccordionItemSubtitle, CngxAccordionItemTitle, injectAccordionConfig, provideAccordionConfig, provideAccordionConfigAt, withAccordionLabels, withAccordionSkin, withAccordionTemplates, withDefaultHeadingLevel };
|
|
806
|
-
export type { CngxAccordionConfig, CngxAccordionConfigFeature, CngxAccordionGroupContext, CngxAccordionItemIconContext, CngxAccordionItemStateContext, CngxAccordionSeverity, CngxAccordionSkin };
|
|
870
|
+
export { CNGX_ACCORDION_CONFIG, CNGX_ACCORDION_GROUP, CNGX_ACCORDION_LANGUAGE_EN, CngxAccordionGroup, CngxAccordionItem, CngxAccordionItemBusy, CngxAccordionItemContent, CngxAccordionItemError, CngxAccordionItemIcon, CngxAccordionItemLeading, CngxAccordionItemMeta, CngxAccordionItemSubtitle, CngxAccordionItemTitle, injectAccordionConfig, injectAccordionLabels, provideAccordionConfig, provideAccordionConfigAt, withAccordionLabels, withAccordionSkin, withAccordionTemplates, withDefaultHeadingLevel };
|
|
871
|
+
export type { CngxAccordionConfig, CngxAccordionConfigFeature, CngxAccordionGroupContext, CngxAccordionItemIconContext, CngxAccordionItemStateContext, CngxAccordionLanguageSection, CngxAccordionSeverity, CngxAccordionSkin };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _cngx_common_interactive from '@cngx/common/interactive';
|
|
2
3
|
import { AsyncAction, CngxPending, CngxSucceeded, CngxFailed } from '@cngx/common/interactive';
|
|
3
4
|
import { CngxAsyncState } from '@cngx/core/utils';
|
|
4
5
|
|
|
@@ -66,7 +67,10 @@ type ActionButtonVariant = 'primary' | 'secondary' | 'ghost';
|
|
|
66
67
|
*/
|
|
67
68
|
declare class CngxActionButton {
|
|
68
69
|
private readonly toaster;
|
|
70
|
+
private readonly errorDetail;
|
|
71
|
+
private readonly feedbackI18n;
|
|
69
72
|
private readonly externalToastOn;
|
|
73
|
+
protected readonly i18n: _angular_core.Signal<_cngx_common_interactive.CngxInteractiveI18n>;
|
|
70
74
|
/** The async action to execute on click. */
|
|
71
75
|
readonly action: _angular_core.InputSignal<AsyncAction>;
|
|
72
76
|
/** Duration in ms to show success/error feedback. Passed through to `cngxAsyncClick`. */
|
|
@@ -77,9 +81,15 @@ declare class CngxActionButton {
|
|
|
77
81
|
readonly type: _angular_core.InputSignal<"button" | "submit" | "reset">;
|
|
78
82
|
/** Visual variant - sets CSS class `cngx-action-button--{variant}`. */
|
|
79
83
|
readonly variant: _angular_core.InputSignal<ActionButtonVariant>;
|
|
80
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* SR announcement on success. Falls back to `succeededLabel`, then
|
|
86
|
+
* `CNGX_INTERACTIVE_I18N.asyncClickSucceeded`.
|
|
87
|
+
*/
|
|
81
88
|
readonly succeededAnnouncement: _angular_core.InputSignal<string | undefined>;
|
|
82
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* SR announcement on failure. Falls back to `failedLabel`, then
|
|
91
|
+
* `CNGX_INTERACTIVE_I18N.asyncClickFailed`.
|
|
92
|
+
*/
|
|
83
93
|
readonly failedAnnouncement: _angular_core.InputSignal<string | undefined>;
|
|
84
94
|
/** Fallback text while pending (when no `cngxPending` template is projected). */
|
|
85
95
|
readonly pendingLabel: _angular_core.InputSignal<string | undefined>;
|
|
@@ -92,6 +102,13 @@ declare class CngxActionButton {
|
|
|
92
102
|
* When set, the button's status display follows `externalState.status()`.
|
|
93
103
|
*/
|
|
94
104
|
readonly externalState: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* Reason the button is disabled, announced to screen readers while
|
|
107
|
+
* `[enabled]` is `false`. Rendered into a hidden region and referenced by
|
|
108
|
+
* `aria-describedby` only while disabled - an enabled button never carries
|
|
109
|
+
* the reference. No effect when `[enabled]` is `true`.
|
|
110
|
+
*/
|
|
111
|
+
readonly disabledReason: _angular_core.InputSignal<string | undefined>;
|
|
95
112
|
/**
|
|
96
113
|
* Toast message on success. Requires `CngxToaster` (via `provideFeedback(withToasts())`
|
|
97
114
|
* or `provideToasts()`). Silently ignored when toaster is not provided.
|
|
@@ -119,6 +136,30 @@ declare class CngxActionButton {
|
|
|
119
136
|
protected readonly effectiveStatus: _angular_core.Signal<"idle" | "pending" | "success" | "error" | "loading" | "refreshing">;
|
|
120
137
|
/** @internal - effective error value from external state or inner directive. */
|
|
121
138
|
protected readonly effectiveError: _angular_core.Signal<unknown>;
|
|
139
|
+
/** @internal - busy while the effective status (inner or external) is pending. */
|
|
140
|
+
protected readonly effectiveBusy: _angular_core.Signal<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* @internal - what the inner `CngxAsyncClick` may act on: only when the
|
|
143
|
+
* consumer enabled it AND no effective operation is in flight. Feeding this
|
|
144
|
+
* as `[enabled]` routes external-pending through the atom's own click guard,
|
|
145
|
+
* so a click cannot start a second run while an external state is pending.
|
|
146
|
+
*/
|
|
147
|
+
protected readonly clickEnabled: _angular_core.Signal<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* @internal - SR announcement derived from the effective status, so an
|
|
150
|
+
* external success/error settles audibly too (the inner directive only
|
|
151
|
+
* knows its own runs). Mirrors the label fallback chain the template uses.
|
|
152
|
+
*/
|
|
153
|
+
protected readonly effectiveAnnouncement: _angular_core.Signal<string>;
|
|
154
|
+
/** @internal - stable id for the disabled-reason region. */
|
|
155
|
+
protected readonly reasonId: string;
|
|
156
|
+
/**
|
|
157
|
+
* @internal - reference the reason region only while actually disabled by
|
|
158
|
+
* intent and a reason exists. accname traverses a directly referenced hidden
|
|
159
|
+
* node, so the id must be gated on the state it describes rather than left
|
|
160
|
+
* permanently pointing at a hidden region.
|
|
161
|
+
*/
|
|
162
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
122
163
|
private readonly lastUpdatedState;
|
|
123
164
|
/**
|
|
124
165
|
* Full `CngxAsyncState` view of this button's effective lifecycle.
|
|
@@ -137,7 +178,7 @@ declare class CngxActionButton {
|
|
|
137
178
|
protected readonly failedTpl: _angular_core.Signal<CngxFailed | undefined>;
|
|
138
179
|
constructor();
|
|
139
180
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxActionButton, never>;
|
|
140
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxActionButton, "cngx-action-button", ["cngxActionButton"], { "action": { "alias": "action"; "required": true; "isSignal": true; }; "feedbackDuration": { "alias": "feedbackDuration"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "succeededAnnouncement": { "alias": "succeededAnnouncement"; "required": false; "isSignal": true; }; "failedAnnouncement": { "alias": "failedAnnouncement"; "required": false; "isSignal": true; }; "pendingLabel": { "alias": "pendingLabel"; "required": false; "isSignal": true; }; "succeededLabel": { "alias": "succeededLabel"; "required": false; "isSignal": true; }; "failedLabel": { "alias": "failedLabel"; "required": false; "isSignal": true; }; "externalState": { "alias": "externalState"; "required": false; "isSignal": true; }; "toastSuccess": { "alias": "toastSuccess"; "required": false; "isSignal": true; }; "toastError": { "alias": "toastError"; "required": false; "isSignal": true; }; "toastErrorDetail": { "alias": "toastErrorDetail"; "required": false; "isSignal": true; }; "toastSuccessDuration": { "alias": "toastSuccessDuration"; "required": false; "isSignal": true; }; "toastErrorDuration": { "alias": "toastErrorDuration"; "required": false; "isSignal": true; }; }, {}, ["pendingTpl", "succeededTpl", "failedTpl"], ["*"], true, never>;
|
|
181
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxActionButton, "cngx-action-button", ["cngxActionButton"], { "action": { "alias": "action"; "required": true; "isSignal": true; }; "feedbackDuration": { "alias": "feedbackDuration"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "succeededAnnouncement": { "alias": "succeededAnnouncement"; "required": false; "isSignal": true; }; "failedAnnouncement": { "alias": "failedAnnouncement"; "required": false; "isSignal": true; }; "pendingLabel": { "alias": "pendingLabel"; "required": false; "isSignal": true; }; "succeededLabel": { "alias": "succeededLabel"; "required": false; "isSignal": true; }; "failedLabel": { "alias": "failedLabel"; "required": false; "isSignal": true; }; "externalState": { "alias": "externalState"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "toastSuccess": { "alias": "toastSuccess"; "required": false; "isSignal": true; }; "toastError": { "alias": "toastError"; "required": false; "isSignal": true; }; "toastErrorDetail": { "alias": "toastErrorDetail"; "required": false; "isSignal": true; }; "toastSuccessDuration": { "alias": "toastSuccessDuration"; "required": false; "isSignal": true; }; "toastErrorDuration": { "alias": "toastErrorDuration"; "required": false; "isSignal": true; }; }, {}, ["pendingTpl", "succeededTpl", "failedTpl"], ["*"], true, never>;
|
|
141
182
|
}
|
|
142
183
|
|
|
143
184
|
export { CngxActionButton };
|