@cngx/ui 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/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 +4 -3
- 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 +44 -66
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +213 -335
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +60 -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 -44
- 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 +78 -83
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +52 -74
- 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 +589 -467
- 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 +3 -5
- 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 +71 -68
- 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 +149 -171
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +858 -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 +207 -90
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +71 -32
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +21 -27
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +27 -40
- 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 +28 -14
- package/mat-tabs/styles/mat-tabs.css +233 -258
- package/nav-rail/README.md +325 -0
- package/package.json +10 -5
- package/paginator/README.md +10 -0
- package/schematics/ng-add/index.js +7 -7
- package/schematics/ng-add/schema.json +5 -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 +45 -77
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +58 -94
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -53
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +67 -44
- package/types/cngx-ui-data-grid-accordion.d.ts +49 -77
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +264 -289
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +2 -3
- 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 +43 -69
- 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 +164 -154
- 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 +183 -62
- package/types/cngx-ui-tabs.d.ts +101 -27
- package/types/cngx-ui-timeline.d.ts +20 -48
- package/types/cngx-ui-toc.d.ts +30 -51
- package/types/cngx-ui.d.ts +1 -1
package/types/cngx-ui-a11y.d.ts
CHANGED
|
@@ -6,9 +6,8 @@ import { CngxDensityValue, CngxTextScaleValue, CngxMotionPreference, CngxContras
|
|
|
6
6
|
* The four accessibility axes the panel can render a control group for.
|
|
7
7
|
* Each maps 1:1 onto a writable signal returned by `injectA11yPreferences()`.
|
|
8
8
|
*
|
|
9
|
-
* @category ui/a11y
|
|
10
9
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
11
|
-
* @since 0.
|
|
10
|
+
* @since 0.3.0
|
|
12
11
|
*/
|
|
13
12
|
type CngxA11yPanelAxis = 'density' | 'textScale' | 'motion' | 'contrast';
|
|
14
13
|
/**
|
|
@@ -18,10 +17,9 @@ type CngxA11yPanelAxis = 'density' | 'textScale' | 'motion' | 'contrast';
|
|
|
18
17
|
* than reaching the global preference signal. An option without a `label`
|
|
19
18
|
* reads it from the `a11yPanel` section of the language pack, by value.
|
|
20
19
|
*
|
|
21
|
-
* @category ui/a11y
|
|
22
20
|
* @relatedTo withA11yPanelAxes
|
|
23
21
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
24
|
-
* @since 0.
|
|
22
|
+
* @since 0.3.0
|
|
25
23
|
*/
|
|
26
24
|
interface CngxA11yPanelAxisOption<V extends string = string> {
|
|
27
25
|
/** Value written to the axis signal - a valid member of that axis' union. */
|
|
@@ -41,10 +39,9 @@ interface CngxA11yPanelAxisOption<V extends string = string> {
|
|
|
41
39
|
* not a garbage value written to `<html data-density>`. Reorder or drop axes
|
|
42
40
|
* by supplying a subset via `withA11yPanelAxes`.
|
|
43
41
|
*
|
|
44
|
-
* @category ui/a11y
|
|
45
42
|
* @relatedTo withA11yPanelAxes
|
|
46
43
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
47
|
-
* @since 0.
|
|
44
|
+
* @since 0.3.0
|
|
48
45
|
*/
|
|
49
46
|
type CngxA11yPanelAxisSpec = {
|
|
50
47
|
readonly axis: 'density';
|
|
@@ -70,9 +67,8 @@ type CngxA11yPanelAxisSpec = {
|
|
|
70
67
|
* `a11yPanel` section of the language pack (English without one); override
|
|
71
68
|
* single keys via {@link withA11yPanelLabels}.
|
|
72
69
|
*
|
|
73
|
-
* @category ui/a11y
|
|
74
70
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
75
|
-
* @since 0.
|
|
71
|
+
* @since 0.3.0
|
|
76
72
|
*/
|
|
77
73
|
interface CngxA11yPanelLabels {
|
|
78
74
|
/** Group label (the accessible name) per axis. */
|
|
@@ -95,9 +91,8 @@ interface CngxA11yPanelLabels {
|
|
|
95
91
|
* `Signal`; its option labels are optional and default to the section. Read
|
|
96
92
|
* both through {@link injectA11yPanelLabels} and {@link injectA11yPanelAxes}.
|
|
97
93
|
*
|
|
98
|
-
* @category ui/a11y
|
|
99
94
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
100
|
-
* @since 0.
|
|
95
|
+
* @since 0.3.0
|
|
101
96
|
*/
|
|
102
97
|
interface CngxA11yPanelConfig {
|
|
103
98
|
readonly labels?: CngxA11yPanelLabelsOverride | Signal<CngxA11yPanelLabelsOverride>;
|
|
@@ -108,10 +103,9 @@ interface CngxA11yPanelConfig {
|
|
|
108
103
|
* record merges key-by-key, so a consumer can relabel one axis group without
|
|
109
104
|
* restating the rest.
|
|
110
105
|
*
|
|
111
|
-
* @category ui/a11y
|
|
112
106
|
* @relatedTo withA11yPanelLabels
|
|
113
107
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
114
|
-
* @since 0.
|
|
108
|
+
* @since 0.3.0
|
|
115
109
|
*/
|
|
116
110
|
interface CngxA11yPanelLabelsOverride {
|
|
117
111
|
readonly axes?: Partial<Record<CngxA11yPanelAxis, string>>;
|
|
@@ -133,10 +127,9 @@ declare const CNGX_A11Y_PANEL_DEFAULTS: CngxA11yPanelConfig & {
|
|
|
133
127
|
* `provideA11yPanelConfig(...)` at the application root, then the library
|
|
134
128
|
* defaults.
|
|
135
129
|
*
|
|
136
|
-
* @category ui/a11y
|
|
137
130
|
* @relatedTo provideA11yPanelConfig
|
|
138
131
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
139
|
-
* @since 0.
|
|
132
|
+
* @since 0.3.0
|
|
140
133
|
*/
|
|
141
134
|
declare const CNGX_A11Y_PANEL_CONFIG: InjectionToken<CngxA11yPanelConfig>;
|
|
142
135
|
/**
|
|
@@ -144,9 +137,8 @@ declare const CNGX_A11Y_PANEL_CONFIG: InjectionToken<CngxA11yPanelConfig>;
|
|
|
144
137
|
* reducer in {@link provideA11yPanelConfig} matches on `kind`: `labels` deep-
|
|
145
138
|
* merges the text bundle, `axes` replaces the axis list wholesale.
|
|
146
139
|
*
|
|
147
|
-
* @category ui/a11y
|
|
148
140
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
149
|
-
* @since 0.
|
|
141
|
+
* @since 0.3.0
|
|
150
142
|
*/
|
|
151
143
|
type CngxA11yPanelConfigFeature = {
|
|
152
144
|
readonly kind: 'labels';
|
|
@@ -171,10 +163,9 @@ type CngxA11yPanelConfigFeature = {
|
|
|
171
163
|
* );
|
|
172
164
|
* ```
|
|
173
165
|
*
|
|
174
|
-
* @category ui/a11y
|
|
175
166
|
* @relatedTo provideA11yPanelConfig
|
|
176
167
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
177
|
-
* @since 0.
|
|
168
|
+
* @since 0.3.0
|
|
178
169
|
*/
|
|
179
170
|
declare function withA11yPanelLabels(payload: CngxA11yPanelLabelsOverride | Signal<CngxA11yPanelLabelsOverride>): CngxA11yPanelConfigFeature;
|
|
180
171
|
/**
|
|
@@ -195,10 +186,9 @@ declare function withA11yPanelLabels(payload: CngxA11yPanelLabelsOverride | Sign
|
|
|
195
186
|
* );
|
|
196
187
|
* ```
|
|
197
188
|
*
|
|
198
|
-
* @category ui/a11y
|
|
199
189
|
* @relatedTo provideA11yPanelConfig
|
|
200
190
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
201
|
-
* @since 0.
|
|
191
|
+
* @since 0.3.0
|
|
202
192
|
*/
|
|
203
193
|
declare function withA11yPanelAxes(payload: readonly CngxA11yPanelAxisSpec[] | Signal<readonly CngxA11yPanelAxisSpec[]>): CngxA11yPanelConfigFeature;
|
|
204
194
|
/**
|
|
@@ -207,12 +197,11 @@ declare function withA11yPanelAxes(payload: readonly CngxA11yPanelAxisSpec[] | S
|
|
|
207
197
|
* supplied features merge with the library defaults, so consumers only declare
|
|
208
198
|
* what they override.
|
|
209
199
|
*
|
|
210
|
-
* @category ui/a11y
|
|
211
200
|
* @relatedTo withA11yPanelLabels
|
|
212
201
|
* @relatedTo withA11yPanelAxes
|
|
213
202
|
* @relatedTo injectA11yPanelConfig
|
|
214
203
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
215
|
-
* @since 0.
|
|
204
|
+
* @since 0.3.0
|
|
216
205
|
*/
|
|
217
206
|
declare function provideA11yPanelConfig(...features: CngxA11yPanelConfigFeature[]): EnvironmentProviders;
|
|
218
207
|
/**
|
|
@@ -237,10 +226,9 @@ declare function provideA11yPanelConfig(...features: CngxA11yPanelConfigFeature[
|
|
|
237
226
|
* })
|
|
238
227
|
* ```
|
|
239
228
|
*
|
|
240
|
-
* @category ui/a11y
|
|
241
229
|
* @relatedTo provideA11yPanelConfig
|
|
242
230
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
243
|
-
* @since 0.
|
|
231
|
+
* @since 0.3.0
|
|
244
232
|
*/
|
|
245
233
|
declare function provideA11yPanelConfigAt(...features: CngxA11yPanelConfigFeature[]): Provider[];
|
|
246
234
|
/**
|
|
@@ -248,10 +236,9 @@ declare function provideA11yPanelConfigAt(...features: CngxA11yPanelConfigFeatur
|
|
|
248
236
|
* injection context; resolves through the cascade. Equivalent to
|
|
249
237
|
* `inject(CNGX_A11Y_PANEL_CONFIG)`.
|
|
250
238
|
*
|
|
251
|
-
* @category ui/a11y
|
|
252
239
|
* @relatedTo provideA11yPanelConfig
|
|
253
240
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
254
|
-
* @since 0.
|
|
241
|
+
* @since 0.3.0
|
|
255
242
|
*/
|
|
256
243
|
declare function injectA11yPanelConfig(): CngxA11yPanelConfig;
|
|
257
244
|
/**
|
|
@@ -261,10 +248,9 @@ declare function injectA11yPanelConfig(): CngxA11yPanelConfig;
|
|
|
261
248
|
* config leaves unset, `null` or `undefined` reads the section. Runs in an
|
|
262
249
|
* injection context; read it inside a `computed()`, a template or a handler.
|
|
263
250
|
*
|
|
264
|
-
* @category ui/a11y
|
|
265
251
|
* @relatedTo withA11yPanelLabels
|
|
266
252
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
267
|
-
* @since 0.
|
|
253
|
+
* @since 0.3.0
|
|
268
254
|
*/
|
|
269
255
|
declare function injectA11yPanelLabels(): Signal<CngxA11yPanelLabels>;
|
|
270
256
|
/**
|
|
@@ -273,10 +259,9 @@ declare function injectA11yPanelLabels(): Signal<CngxA11yPanelLabels>;
|
|
|
273
259
|
* Every option without its own `label` carries the label for its value from
|
|
274
260
|
* the `a11yPanel` section of the active pack. Runs in an injection context.
|
|
275
261
|
*
|
|
276
|
-
* @category ui/a11y
|
|
277
262
|
* @relatedTo withA11yPanelAxes
|
|
278
263
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
279
|
-
* @since 0.
|
|
264
|
+
* @since 0.3.0
|
|
280
265
|
*/
|
|
281
266
|
declare function injectA11yPanelAxes(): Signal<readonly CngxA11yPanelAxisSpec[]>;
|
|
282
267
|
|
|
@@ -317,14 +302,13 @@ interface CngxA11yPanelAxisView {
|
|
|
317
302
|
* <cngx-a11y-panel />
|
|
318
303
|
* ```
|
|
319
304
|
*
|
|
320
|
-
* @category ui/a11y
|
|
321
|
-
* @docsKind primary
|
|
322
305
|
* @wcag AA
|
|
323
306
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.component.ts
|
|
324
307
|
* @selector cngx-a11y-panel
|
|
325
|
-
* @since 0.
|
|
308
|
+
* @since 0.3.0
|
|
326
309
|
* @relatedTo CngxCard, CngxButtonToggleGroup, CngxLiveAnnouncer, provideA11yPreferences, provideA11yPanelConfig
|
|
327
|
-
* <example-url
|
|
310
|
+
* <example-url>/#/ui/a11y/panel/inline</example-url>
|
|
311
|
+
* @axis level organism
|
|
328
312
|
*/
|
|
329
313
|
declare class CngxA11yPanel {
|
|
330
314
|
private readonly announcer;
|
|
@@ -352,8 +336,7 @@ declare class CngxA11yPanel {
|
|
|
352
336
|
* records label the toggle options by value, so an axis list from
|
|
353
337
|
* `withA11yPanelAxes` without option labels reads them from here.
|
|
354
338
|
*
|
|
355
|
-
* @
|
|
356
|
-
* @since 0.1.0
|
|
339
|
+
* @since 0.3.0
|
|
357
340
|
* @relatedTo CNGX_A11Y_PANEL_CONFIG, withA11yPanelLabels, withA11yPanelAxes
|
|
358
341
|
*/
|
|
359
342
|
interface CngxA11yPanelLanguageSection {
|
|
@@ -379,8 +362,7 @@ interface CngxA11yPanelLanguageSection {
|
|
|
379
362
|
* English copy. The `CNGX_A11Y_PANEL_CONFIG` labels and option labels default
|
|
380
363
|
* to it.
|
|
381
364
|
*
|
|
382
|
-
* @
|
|
383
|
-
* @since 0.1.0
|
|
365
|
+
* @since 0.3.0
|
|
384
366
|
* @relatedTo CNGX_A11Y_PANEL_CONFIG
|
|
385
367
|
*/
|
|
386
368
|
declare const CNGX_A11Y_PANEL_LANGUAGE_EN: CngxA11yPanelLanguageSection;
|
|
@@ -10,9 +10,8 @@ import * as i1 from '@cngx/common/interactive';
|
|
|
10
10
|
* from the headless `CNGX_ACCORDION` brain contract, which stays
|
|
11
11
|
* skin-agnostic - heading semantics are a skin concern.
|
|
12
12
|
*
|
|
13
|
-
* @category ui/accordion
|
|
14
13
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.token.ts
|
|
15
|
-
* @since 0.
|
|
14
|
+
* @since 0.3.0
|
|
16
15
|
* @relatedTo CngxAccordionGroup, CngxAccordionItem
|
|
17
16
|
*/
|
|
18
17
|
interface CngxAccordionGroupContext {
|
|
@@ -23,9 +22,8 @@ interface CngxAccordionGroupContext {
|
|
|
23
22
|
* DI token for the {@link CngxAccordionGroupContext}. {@link CngxAccordionGroup}
|
|
24
23
|
* provides it via `useExisting`; each `CngxAccordionItem` injects it.
|
|
25
24
|
*
|
|
26
|
-
* @category ui/accordion
|
|
27
25
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.token.ts
|
|
28
|
-
* @since 0.
|
|
26
|
+
* @since 0.3.0
|
|
29
27
|
* @relatedTo CngxAccordionGroup, CngxAccordionItem
|
|
30
28
|
*/
|
|
31
29
|
declare const CNGX_ACCORDION_GROUP: InjectionToken<CngxAccordionGroupContext>;
|
|
@@ -33,8 +31,6 @@ declare const CNGX_ACCORDION_GROUP: InjectionToken<CngxAccordionGroupContext>;
|
|
|
33
31
|
/**
|
|
34
32
|
* Template context for {@link CngxAccordionItemIcon}: `$implicit` is the item's
|
|
35
33
|
* current expanded state, so the override can render an open/closed glyph.
|
|
36
|
-
*
|
|
37
|
-
* @category ui/accordion
|
|
38
34
|
*/
|
|
39
35
|
interface CngxAccordionItemIconContext {
|
|
40
36
|
readonly $implicit: boolean;
|
|
@@ -54,10 +50,9 @@ interface CngxAccordionItemIconContext {
|
|
|
54
50
|
* </cngx-accordion-item>
|
|
55
51
|
* ```
|
|
56
52
|
*
|
|
57
|
-
* @category ui/accordion
|
|
58
53
|
* @wcag AA
|
|
59
54
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-icon.directive.ts
|
|
60
|
-
* @since 0.
|
|
55
|
+
* @since 0.3.0
|
|
61
56
|
* @relatedTo CngxAccordionItem, CngxAccordionItemContent
|
|
62
57
|
*/
|
|
63
58
|
declare class CngxAccordionItemIcon {
|
|
@@ -77,8 +72,6 @@ declare class CngxAccordionItemIcon {
|
|
|
77
72
|
* the busy slot, `error` in the error slot). `message` carries the resolved
|
|
78
73
|
* error string in the error state and is empty in the busy state, so an error
|
|
79
74
|
* override can render the announced text (and a retry) without re-deriving it.
|
|
80
|
-
*
|
|
81
|
-
* @category ui/accordion
|
|
82
75
|
*/
|
|
83
76
|
interface CngxAccordionItemStateContext {
|
|
84
77
|
readonly $implicit: AsyncStatus;
|
|
@@ -99,8 +92,7 @@ interface CngxAccordionItemStateContext {
|
|
|
99
92
|
* `'severity-spine'` a full-height priority spine; `'primary-frame'` a solid
|
|
100
93
|
* primary border + glow on open.
|
|
101
94
|
*
|
|
102
|
-
* @
|
|
103
|
-
* @since 0.1.0
|
|
95
|
+
* @since 0.3.0
|
|
104
96
|
*/
|
|
105
97
|
type CngxAccordionSkin = 'editorial' | 'categorized' | 'plus-minus' | 'lux' | 'bento' | 'section-bands' | 'timeline' | 'severity-spine' | 'primary-frame';
|
|
106
98
|
/**
|
|
@@ -109,8 +101,7 @@ type CngxAccordionSkin = 'editorial' | 'categorized' | 'plus-minus' | 'lux' | 'b
|
|
|
109
101
|
* the `--cngx-color-danger` / `-warning` / `-info` tokens). Structural only - it
|
|
110
102
|
* changes no ARIA and no behaviour, and unset items simply carry no severity.
|
|
111
103
|
*
|
|
112
|
-
* @
|
|
113
|
-
* @since 0.1.0
|
|
104
|
+
* @since 0.3.0
|
|
114
105
|
*/
|
|
115
106
|
type CngxAccordionSeverity = 'error' | 'warning' | 'info';
|
|
116
107
|
/**
|
|
@@ -130,8 +121,7 @@ type CngxAccordionSeverity = 'error' | 'warning' | 'info';
|
|
|
130
121
|
* {@link injectAccordionLabels} fills every unset key from the `accordion`
|
|
131
122
|
* section of the language pack, so a reader never observes a partial shape.
|
|
132
123
|
*
|
|
133
|
-
* @
|
|
134
|
-
* @since 0.1.0
|
|
124
|
+
* @since 0.3.0
|
|
135
125
|
*/
|
|
136
126
|
interface CngxAccordionConfig {
|
|
137
127
|
/**
|
|
@@ -208,26 +198,25 @@ interface CngxAccordionConfig {
|
|
|
208
198
|
* </cngx-accordion-group>
|
|
209
199
|
* ```
|
|
210
200
|
*
|
|
211
|
-
* @category ui/accordion
|
|
212
|
-
* @docsKind primary
|
|
213
201
|
* @wcag AA
|
|
214
202
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.component.ts
|
|
215
|
-
* @since 0.
|
|
203
|
+
* @since 0.3.0
|
|
216
204
|
* @relatedTo CngxAccordionItem, CngxAccordion, createAccordionKeyboardNav
|
|
217
205
|
*
|
|
218
|
-
* <example-url
|
|
219
|
-
* <example-url
|
|
220
|
-
* <example-url
|
|
221
|
-
* <example-url
|
|
222
|
-
* <example-url
|
|
223
|
-
* <example-url
|
|
224
|
-
* <example-url
|
|
225
|
-
* <example-url
|
|
226
|
-
* <example-url
|
|
227
|
-
* <example-url
|
|
228
|
-
* <example-url
|
|
229
|
-
* <example-url
|
|
230
|
-
* <example-url
|
|
206
|
+
* <example-url>/#/ui/accordion/single-open/basic</example-url>
|
|
207
|
+
* <example-url>/#/ui/accordion/multi-open/independent</example-url>
|
|
208
|
+
* <example-url>/#/ui/accordion/controlled-open/initial-open</example-url>
|
|
209
|
+
* <example-url>/#/ui/accordion/config/app-wide-labels</example-url>
|
|
210
|
+
* <example-url>/#/ui/accordion/skins/bento</example-url>
|
|
211
|
+
* <example-url>/#/ui/accordion/skins/categorized</example-url>
|
|
212
|
+
* <example-url>/#/ui/accordion/skins/editorial</example-url>
|
|
213
|
+
* <example-url>/#/ui/accordion/skins/lux</example-url>
|
|
214
|
+
* <example-url>/#/ui/accordion/skins/plus-minus</example-url>
|
|
215
|
+
* <example-url>/#/ui/accordion/skins/primary-frame</example-url>
|
|
216
|
+
* <example-url>/#/ui/accordion/skins/section-bands</example-url>
|
|
217
|
+
* <example-url>/#/ui/accordion/skins/severity-spine</example-url>
|
|
218
|
+
* <example-url>/#/ui/accordion/skins/timeline</example-url>
|
|
219
|
+
* @axis level organism
|
|
231
220
|
*/
|
|
232
221
|
declare class CngxAccordionGroup implements CngxAccordionGroupContext {
|
|
233
222
|
private readonly config;
|
|
@@ -277,10 +266,9 @@ declare class CngxAccordionGroup implements CngxAccordionGroupContext {
|
|
|
277
266
|
* </cngx-accordion-item>
|
|
278
267
|
* ```
|
|
279
268
|
*
|
|
280
|
-
* @category ui/accordion
|
|
281
269
|
* @wcag AA
|
|
282
270
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-busy.directive.ts
|
|
283
|
-
* @since 0.
|
|
271
|
+
* @since 0.3.0
|
|
284
272
|
* @relatedTo CngxAccordionItem, CngxAccordionItemError
|
|
285
273
|
*/
|
|
286
274
|
declare class CngxAccordionItemBusy {
|
|
@@ -306,10 +294,9 @@ declare class CngxAccordionItemBusy {
|
|
|
306
294
|
* </cngx-accordion-item>
|
|
307
295
|
* ```
|
|
308
296
|
*
|
|
309
|
-
* @category ui/accordion
|
|
310
297
|
* @wcag AA
|
|
311
298
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-content.directive.ts
|
|
312
|
-
* @since 0.
|
|
299
|
+
* @since 0.3.0
|
|
313
300
|
* @relatedTo CngxAccordionItem, CngxAccordionItemTitle
|
|
314
301
|
*/
|
|
315
302
|
declare class CngxAccordionItemContent {
|
|
@@ -339,10 +326,9 @@ declare class CngxAccordionItemContent {
|
|
|
339
326
|
* </cngx-accordion-item>
|
|
340
327
|
* ```
|
|
341
328
|
*
|
|
342
|
-
* @category ui/accordion
|
|
343
329
|
* @wcag AA
|
|
344
330
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-error.directive.ts
|
|
345
|
-
* @since 0.
|
|
331
|
+
* @since 0.3.0
|
|
346
332
|
* @relatedTo CngxAccordionItem, CngxAccordionItemBusy
|
|
347
333
|
*/
|
|
348
334
|
declare class CngxAccordionItemError {
|
|
@@ -368,10 +354,9 @@ declare class CngxAccordionItemError {
|
|
|
368
354
|
* </cngx-accordion-item>
|
|
369
355
|
* ```
|
|
370
356
|
*
|
|
371
|
-
* @category ui/accordion
|
|
372
357
|
* @wcag AA
|
|
373
358
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-subtitle.directive.ts
|
|
374
|
-
* @since 0.
|
|
359
|
+
* @since 0.3.0
|
|
375
360
|
* @relatedTo CngxAccordionItem, CngxAccordionItemTitle
|
|
376
361
|
*/
|
|
377
362
|
declare class CngxAccordionItemSubtitle {
|
|
@@ -392,21 +377,19 @@ declare class CngxAccordionItemSubtitle {
|
|
|
392
377
|
* that `aria-describedby` always points at (IDREF never dangles); only the
|
|
393
378
|
* element's `aria-hidden` and text toggle with `disabled()`.
|
|
394
379
|
*
|
|
395
|
-
* @category ui/accordion
|
|
396
|
-
* @docsKind primary
|
|
397
380
|
* @wcag AA
|
|
398
381
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item.component.ts
|
|
399
|
-
* @since 0.
|
|
382
|
+
* @since 0.3.0
|
|
400
383
|
* @relatedTo CngxAccordionGroup, CngxAccordionPanel
|
|
401
384
|
* @slot cngxAccordionItemIcon Replaces the item's expand/collapse chevron.
|
|
402
385
|
* @slot cngxAccordionItemContent The panel body, rendered lazily when the item opens.
|
|
403
386
|
* @slot cngxAccordionItemBusy Rendered over the item while its content loads.
|
|
404
387
|
* @slot cngxAccordionItemError Rendered when the item's content failed to load.
|
|
405
388
|
*
|
|
406
|
-
* <example-url
|
|
407
|
-
* <example-url
|
|
408
|
-
* <example-url
|
|
409
|
-
* <example-url
|
|
389
|
+
* <example-url>/#/ui/accordion/async-panel/lazy-fetch</example-url>
|
|
390
|
+
* <example-url>/#/ui/accordion/disabled-lazy/disabled-and-lazy</example-url>
|
|
391
|
+
* <example-url>/#/ui/accordion/custom-chevron/icon-slot</example-url>
|
|
392
|
+
* <example-url>/#/ui/accordion/panel-content/table</example-url>
|
|
410
393
|
*/
|
|
411
394
|
declare class CngxAccordionItem {
|
|
412
395
|
private readonly config;
|
|
@@ -559,10 +542,9 @@ declare class CngxAccordionItem {
|
|
|
559
542
|
* </cngx-accordion-item>
|
|
560
543
|
* ```
|
|
561
544
|
*
|
|
562
|
-
* @category ui/accordion
|
|
563
545
|
* @wcag AA
|
|
564
546
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-title.directive.ts
|
|
565
|
-
* @since 0.
|
|
547
|
+
* @since 0.3.0
|
|
566
548
|
* @relatedTo CngxAccordionItem
|
|
567
549
|
*/
|
|
568
550
|
declare class CngxAccordionItemTitle {
|
|
@@ -586,10 +568,9 @@ declare class CngxAccordionItemTitle {
|
|
|
586
568
|
* </cngx-accordion-item>
|
|
587
569
|
* ```
|
|
588
570
|
*
|
|
589
|
-
* @category ui/accordion
|
|
590
571
|
* @wcag AA
|
|
591
572
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-leading.directive.ts
|
|
592
|
-
* @since 0.
|
|
573
|
+
* @since 0.3.0
|
|
593
574
|
* @relatedTo CngxAccordionItem, CngxAccordionItemMeta
|
|
594
575
|
*/
|
|
595
576
|
declare class CngxAccordionItemLeading {
|
|
@@ -614,10 +595,9 @@ declare class CngxAccordionItemLeading {
|
|
|
614
595
|
* </cngx-accordion-item>
|
|
615
596
|
* ```
|
|
616
597
|
*
|
|
617
|
-
* @category ui/accordion
|
|
618
598
|
* @wcag AA
|
|
619
599
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-meta.directive.ts
|
|
620
|
-
* @since 0.
|
|
600
|
+
* @since 0.3.0
|
|
621
601
|
* @relatedTo CngxAccordionItem, CngxAccordionItemLeading
|
|
622
602
|
*/
|
|
623
603
|
declare class CngxAccordionItemMeta {
|
|
@@ -641,9 +621,8 @@ declare class CngxAccordionItemMeta {
|
|
|
641
621
|
* `provideAccordionConfigAt(...)` in a component's `viewProviders` (sub-tree
|
|
642
622
|
* cascade).
|
|
643
623
|
*
|
|
644
|
-
* @category ui/accordion
|
|
645
624
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/config/accordion.config.defaults.ts
|
|
646
|
-
* @since 0.
|
|
625
|
+
* @since 0.3.0
|
|
647
626
|
*/
|
|
648
627
|
declare const CNGX_ACCORDION_CONFIG: InjectionToken<CngxAccordionConfig>;
|
|
649
628
|
|
|
@@ -655,8 +634,7 @@ declare const CNGX_ACCORDION_CONFIG: InjectionToken<CngxAccordionConfig>;
|
|
|
655
634
|
* `@cngx/ui/breadcrumb` so the consumer's mental model is one across feature
|
|
656
635
|
* areas.
|
|
657
636
|
*
|
|
658
|
-
* @
|
|
659
|
-
* @since 0.1.0
|
|
637
|
+
* @since 0.3.0
|
|
660
638
|
*/
|
|
661
639
|
type CngxAccordionConfigFeature = {
|
|
662
640
|
readonly kind: 'labels';
|
|
@@ -704,8 +682,7 @@ type CngxAccordionConfigFeature = {
|
|
|
704
682
|
* });
|
|
705
683
|
* ```
|
|
706
684
|
*
|
|
707
|
-
* @
|
|
708
|
-
* @since 0.1.0
|
|
685
|
+
* @since 0.3.0
|
|
709
686
|
*/
|
|
710
687
|
declare function provideAccordionConfig(...features: CngxAccordionConfigFeature[]): EnvironmentProviders;
|
|
711
688
|
/**
|
|
@@ -730,8 +707,7 @@ declare function provideAccordionConfig(...features: CngxAccordionConfigFeature[
|
|
|
730
707
|
* class Section {}
|
|
731
708
|
* ```
|
|
732
709
|
*
|
|
733
|
-
* @
|
|
734
|
-
* @since 0.1.0
|
|
710
|
+
* @since 0.3.0
|
|
735
711
|
*/
|
|
736
712
|
declare function provideAccordionConfigAt(...features: CngxAccordionConfigFeature[]): Provider[];
|
|
737
713
|
|
|
@@ -752,8 +728,7 @@ declare function provideAccordionConfigAt(...features: CngxAccordionConfigFeatur
|
|
|
752
728
|
* );
|
|
753
729
|
* ```
|
|
754
730
|
*
|
|
755
|
-
* @
|
|
756
|
-
* @since 0.1.0
|
|
731
|
+
* @since 0.3.0
|
|
757
732
|
*/
|
|
758
733
|
declare function withAccordionLabels(payload: {
|
|
759
734
|
disabledReason?: string | Signal<string>;
|
|
@@ -768,8 +743,7 @@ declare function withAccordionLabels(payload: {
|
|
|
768
743
|
* provideAccordionConfig(withDefaultHeadingLevel(2));
|
|
769
744
|
* ```
|
|
770
745
|
*
|
|
771
|
-
* @
|
|
772
|
-
* @since 0.1.0
|
|
746
|
+
* @since 0.3.0
|
|
773
747
|
*/
|
|
774
748
|
declare function withDefaultHeadingLevel(headingLevel: number): CngxAccordionConfigFeature;
|
|
775
749
|
/**
|
|
@@ -783,8 +757,7 @@ declare function withDefaultHeadingLevel(headingLevel: number): CngxAccordionCon
|
|
|
783
757
|
* provideAccordionConfig(withAccordionSkin('categorized'));
|
|
784
758
|
* ```
|
|
785
759
|
*
|
|
786
|
-
* @
|
|
787
|
-
* @since 0.1.0
|
|
760
|
+
* @since 0.3.0
|
|
788
761
|
*/
|
|
789
762
|
declare function withAccordionSkin(skin: CngxAccordionSkin): CngxAccordionConfigFeature;
|
|
790
763
|
/**
|
|
@@ -802,8 +775,7 @@ declare function withAccordionSkin(skin: CngxAccordionSkin): CngxAccordionConfig
|
|
|
802
775
|
* );
|
|
803
776
|
* ```
|
|
804
777
|
*
|
|
805
|
-
* @
|
|
806
|
-
* @since 0.1.0
|
|
778
|
+
* @since 0.3.0
|
|
807
779
|
*/
|
|
808
780
|
declare function withAccordionTemplates(payload: NonNullable<CngxAccordionConfig['templates']>): CngxAccordionConfigFeature;
|
|
809
781
|
|
|
@@ -813,8 +785,7 @@ declare function withAccordionTemplates(payload: NonNullable<CngxAccordionConfig
|
|
|
813
785
|
* `CNGX_ACCORDION_CONFIG`; a key set through `withAccordionLabels` or a bound
|
|
814
786
|
* `[disabledReason]` / `[errorMessage]` still wins.
|
|
815
787
|
*
|
|
816
|
-
* @
|
|
817
|
-
* @since 0.1.0
|
|
788
|
+
* @since 0.3.0
|
|
818
789
|
* @relatedTo CNGX_ACCORDION_CONFIG, withAccordionLabels
|
|
819
790
|
*/
|
|
820
791
|
interface CngxAccordionLanguageSection {
|
|
@@ -827,8 +798,7 @@ interface CngxAccordionLanguageSection {
|
|
|
827
798
|
* The English accordion section: the single source of the accordion's English
|
|
828
799
|
* copy. The `CNGX_ACCORDION_CONFIG` copy keys default to it.
|
|
829
800
|
*
|
|
830
|
-
* @
|
|
831
|
-
* @since 0.1.0
|
|
801
|
+
* @since 0.3.0
|
|
832
802
|
* @relatedTo CNGX_ACCORDION_CONFIG
|
|
833
803
|
*/
|
|
834
804
|
declare const CNGX_ACCORDION_LANGUAGE_EN: CngxAccordionLanguageSection;
|
|
@@ -850,8 +820,7 @@ declare module '@cngx/core/i18n' {
|
|
|
850
820
|
* the resolved copy (overrides over the language pack) through
|
|
851
821
|
* {@link injectAccordionLabels}.
|
|
852
822
|
*
|
|
853
|
-
* @
|
|
854
|
-
* @since 0.1.0
|
|
823
|
+
* @since 0.3.0
|
|
855
824
|
*/
|
|
856
825
|
declare function injectAccordionConfig(): CngxAccordionConfig;
|
|
857
826
|
/**
|
|
@@ -869,8 +838,7 @@ declare function injectAccordionConfig(): CngxAccordionConfig;
|
|
|
869
838
|
* }
|
|
870
839
|
* ```
|
|
871
840
|
*
|
|
872
|
-
* @
|
|
873
|
-
* @since 0.1.0
|
|
841
|
+
* @since 0.3.0
|
|
874
842
|
*/
|
|
875
843
|
declare function injectAccordionLabels(): Signal<CngxAccordionLanguageSection>;
|
|
876
844
|
|