@cngx/ui 0.1.0-rc.5 → 0.1.0-rc.7
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 +112 -0
- package/a11y/README.md +81 -0
- package/context-menu/README.md +98 -0
- package/data-grid-accordion/README.md +27 -0
- package/feedback/README.md +2 -0
- package/fesm2022/cngx-ui-a11y.mjs +320 -0
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
- package/fesm2022/cngx-ui-accordion.mjs +19 -8
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +5 -2
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +11 -6
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +429 -0
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
- package/fesm2022/cngx-ui-collection.mjs +15 -6
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +1005 -0
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
- package/fesm2022/cngx-ui-context-menu.mjs +742 -0
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +90 -20
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +97 -106
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +18 -9
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +9 -9
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +64 -70
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +18 -8
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +2 -2
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +20 -7
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +2 -2
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +618 -0
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
- package/fesm2022/cngx-ui-stepper.mjs +38 -19
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +36 -19
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +495 -0
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
- package/fesm2022/cngx-ui-toc.mjs +704 -0
- package/fesm2022/cngx-ui-toc.mjs.map +1 -0
- package/fesm2022/cngx-ui.mjs +2 -2
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-accordion/README.md +1 -1
- package/mat-tabs/styles/mat-tabs.css +20 -17
- package/package.json +32 -1
- package/skeleton/README.md +2 -0
- package/stepper/README.md +2 -2
- package/timeline/README.md +350 -0
- package/toc/README.md +183 -0
- package/types/cngx-ui-a11y.d.ts +303 -0
- package/types/cngx-ui-accordion.d.ts +9 -4
- package/types/cngx-ui-action-button.d.ts +3 -0
- package/types/cngx-ui-breadcrumb.d.ts +5 -0
- package/types/cngx-ui-chart-panel.d.ts +278 -0
- package/types/cngx-ui-collection.d.ts +12 -3
- package/types/cngx-ui-command-palette.d.ts +451 -0
- package/types/cngx-ui-context-menu.d.ts +467 -0
- package/types/cngx-ui-data-grid-accordion.d.ts +72 -15
- package/types/cngx-ui-feedback.d.ts +71 -18
- package/types/cngx-ui-layout.d.ts +8 -3
- package/types/cngx-ui-mat-accordion.d.ts +3 -3
- package/types/cngx-ui-mat-tabs.d.ts +11 -9
- package/types/cngx-ui-paginator.d.ts +13 -3
- package/types/cngx-ui-skeleton.d.ts +13 -1
- package/types/cngx-ui-stat-card.d.ts +327 -0
- package/types/cngx-ui-stepper.d.ts +18 -4
- package/types/cngx-ui-tabs.d.ts +20 -4
- package/types/cngx-ui-timeline.d.ts +479 -0
- package/types/cngx-ui-toc.d.ts +514 -0
- package/types/cngx-ui.d.ts +1 -1
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import * as _cngx_ui_a11y from '@cngx/ui/a11y';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, EnvironmentProviders, Provider, Signal } from '@angular/core';
|
|
4
|
+
import { CngxDensityValue, CngxTextScaleValue, CngxMotionPreference, CngxContrastPreference } from '@cngx/core';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The four accessibility axes the panel can render a control group for.
|
|
8
|
+
* Each maps 1:1 onto a writable signal returned by `injectA11yPreferences()`.
|
|
9
|
+
*
|
|
10
|
+
* @category ui/a11y
|
|
11
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
12
|
+
* @since 0.1.0
|
|
13
|
+
*/
|
|
14
|
+
type CngxA11yPanelAxis = 'density' | 'textScale' | 'motion' | 'contrast';
|
|
15
|
+
/**
|
|
16
|
+
* One selectable option in an axis control group: the value written to the
|
|
17
|
+
* axis signal plus the visible/toggle label. `V` is the axis' own value union
|
|
18
|
+
* (e.g. `CngxDensityValue`), so a misspelled value fails to compile rather
|
|
19
|
+
* than reaching the global preference signal. Library defaults are English;
|
|
20
|
+
* consumers relabel via `withA11yPanelAxes`.
|
|
21
|
+
*
|
|
22
|
+
* @category ui/a11y
|
|
23
|
+
* @relatedTo withA11yPanelAxes
|
|
24
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
25
|
+
* @since 0.1.0
|
|
26
|
+
*/
|
|
27
|
+
interface CngxA11yPanelAxisOption<V extends string = string> {
|
|
28
|
+
/** Value written to the axis signal - a valid member of that axis' union. */
|
|
29
|
+
readonly value: V;
|
|
30
|
+
/** Toggle-button label. */
|
|
31
|
+
readonly label: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A rendered axis control group: which axis, its ordered options, and the
|
|
35
|
+
* value Reset restores (the axis' own library default). This is a
|
|
36
|
+
* discriminated union on `axis`, so `options` and `reset` are typed to that
|
|
37
|
+
* axis' value union - a `{ axis: 'density', reset: 'x' }` is a compile error,
|
|
38
|
+
* not a garbage value written to `<html data-density>`. Reorder or drop axes
|
|
39
|
+
* by supplying a subset via `withA11yPanelAxes`.
|
|
40
|
+
*
|
|
41
|
+
* @category ui/a11y
|
|
42
|
+
* @relatedTo withA11yPanelAxes
|
|
43
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
44
|
+
* @since 0.1.0
|
|
45
|
+
*/
|
|
46
|
+
type CngxA11yPanelAxisSpec = {
|
|
47
|
+
readonly axis: 'density';
|
|
48
|
+
readonly options: readonly CngxA11yPanelAxisOption<CngxDensityValue>[];
|
|
49
|
+
readonly reset: CngxDensityValue;
|
|
50
|
+
} | {
|
|
51
|
+
readonly axis: 'textScale';
|
|
52
|
+
readonly options: readonly CngxA11yPanelAxisOption<CngxTextScaleValue>[];
|
|
53
|
+
readonly reset: CngxTextScaleValue;
|
|
54
|
+
} | {
|
|
55
|
+
readonly axis: 'motion';
|
|
56
|
+
readonly options: readonly CngxA11yPanelAxisOption<CngxMotionPreference>[];
|
|
57
|
+
readonly reset: CngxMotionPreference;
|
|
58
|
+
} | {
|
|
59
|
+
readonly axis: 'contrast';
|
|
60
|
+
readonly options: readonly CngxA11yPanelAxisOption<CngxContrastPreference>[];
|
|
61
|
+
readonly reset: CngxContrastPreference;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Panel text: per-axis group labels, the Reset control label, the default
|
|
65
|
+
* heading (shown when no `[cngxA11yPanelHeader]` is projected), and the
|
|
66
|
+
* live-region message announced on Reset. Library defaults are English;
|
|
67
|
+
* consumers localise via {@link withA11yPanelLabels}.
|
|
68
|
+
*
|
|
69
|
+
* @category ui/a11y
|
|
70
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
71
|
+
* @since 0.1.0
|
|
72
|
+
*/
|
|
73
|
+
interface CngxA11yPanelLabels {
|
|
74
|
+
/** Group label (the accessible name) per axis. */
|
|
75
|
+
readonly axes: Readonly<Record<CngxA11yPanelAxis, string>>;
|
|
76
|
+
/** Reset control label. */
|
|
77
|
+
readonly reset: string;
|
|
78
|
+
/** Default heading, shown when no `[cngxA11yPanelHeader]` slot is projected. */
|
|
79
|
+
readonly heading: string;
|
|
80
|
+
/** Live-announced when Reset restores every axis. */
|
|
81
|
+
readonly resetMessage: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Resolved panel configuration - the text bundle plus the ordered axis list.
|
|
85
|
+
* Merged from the library defaults and any `with*` features by the reducer in
|
|
86
|
+
* {@link provideA11yPanelConfig}.
|
|
87
|
+
*
|
|
88
|
+
* @category ui/a11y
|
|
89
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
90
|
+
* @since 0.1.0
|
|
91
|
+
*/
|
|
92
|
+
interface CngxA11yPanelConfig {
|
|
93
|
+
readonly labels: CngxA11yPanelLabels;
|
|
94
|
+
readonly axes: readonly CngxA11yPanelAxisSpec[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Partial text override accepted by `withA11yPanelLabels`. The `axes`
|
|
98
|
+
* record merges key-by-key, so a consumer can relabel one axis group without
|
|
99
|
+
* restating the rest.
|
|
100
|
+
*
|
|
101
|
+
* @category ui/a11y
|
|
102
|
+
* @relatedTo withA11yPanelLabels
|
|
103
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
104
|
+
* @since 0.1.0
|
|
105
|
+
*/
|
|
106
|
+
interface CngxA11yPanelLabelsOverride {
|
|
107
|
+
readonly axes?: Partial<Record<CngxA11yPanelAxis, string>>;
|
|
108
|
+
readonly reset?: string;
|
|
109
|
+
readonly heading?: string;
|
|
110
|
+
readonly resetMessage?: string;
|
|
111
|
+
}
|
|
112
|
+
/** Library defaults - English. Override via {@link provideA11yPanelConfig}. */
|
|
113
|
+
declare const CNGX_A11Y_PANEL_DEFAULTS: CngxA11yPanelConfig;
|
|
114
|
+
/**
|
|
115
|
+
* Configuration cascade token. Resolution priority (high to low):
|
|
116
|
+
* `provideA11yPanelConfigAt(...)` in a component's `viewProviders`, then
|
|
117
|
+
* `provideA11yPanelConfig(...)` at the application root, then the library
|
|
118
|
+
* defaults.
|
|
119
|
+
*
|
|
120
|
+
* @category ui/a11y
|
|
121
|
+
* @relatedTo provideA11yPanelConfig
|
|
122
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
123
|
+
* @since 0.1.0
|
|
124
|
+
*/
|
|
125
|
+
declare const CNGX_A11Y_PANEL_CONFIG: InjectionToken<CngxA11yPanelConfig>;
|
|
126
|
+
/**
|
|
127
|
+
* A single configuration override produced by a `with*` feature factory. The
|
|
128
|
+
* reducer in {@link provideA11yPanelConfig} matches on `kind`: `labels` deep-
|
|
129
|
+
* merges the text bundle, `axes` replaces the axis list wholesale.
|
|
130
|
+
*
|
|
131
|
+
* @category ui/a11y
|
|
132
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
133
|
+
* @since 0.1.0
|
|
134
|
+
*/
|
|
135
|
+
type CngxA11yPanelConfigFeature = {
|
|
136
|
+
readonly kind: 'labels';
|
|
137
|
+
readonly payload: CngxA11yPanelLabelsOverride;
|
|
138
|
+
} | {
|
|
139
|
+
readonly kind: 'axes';
|
|
140
|
+
readonly payload: readonly CngxA11yPanelAxisSpec[];
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Override any subset of the panel text - axis group labels, the Reset label,
|
|
144
|
+
* the default heading, or the Reset announcement. The `axes` record merges
|
|
145
|
+
* key-by-key, so a single axis can be relabelled in isolation.
|
|
146
|
+
*
|
|
147
|
+
* ```ts
|
|
148
|
+
* provideA11yPanelConfig(
|
|
149
|
+
* withA11yPanelLabels({
|
|
150
|
+
* heading: 'Barrierefreiheit',
|
|
151
|
+
* axes: { motion: 'Bewegung' },
|
|
152
|
+
* resetMessage: 'Einstellungen zurueckgesetzt',
|
|
153
|
+
* }),
|
|
154
|
+
* );
|
|
155
|
+
* ```
|
|
156
|
+
*
|
|
157
|
+
* @category ui/a11y
|
|
158
|
+
* @relatedTo provideA11yPanelConfig
|
|
159
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
160
|
+
* @since 0.1.0
|
|
161
|
+
*/
|
|
162
|
+
declare function withA11yPanelLabels(payload: CngxA11yPanelLabelsOverride): CngxA11yPanelConfigFeature;
|
|
163
|
+
/**
|
|
164
|
+
* Replace the rendered axis list - reorder groups, drop an axis, or restrict
|
|
165
|
+
* the options a group offers. Supplying a subset renders only those groups.
|
|
166
|
+
*
|
|
167
|
+
* ```ts
|
|
168
|
+
* provideA11yPanelConfig(
|
|
169
|
+
* withA11yPanelAxes([
|
|
170
|
+
* { axis: 'textScale', reset: 'md', options: [
|
|
171
|
+
* { value: 'md', label: 'Default' },
|
|
172
|
+
* { value: 'lg', label: 'Large' },
|
|
173
|
+
* ] },
|
|
174
|
+
* ]),
|
|
175
|
+
* );
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
178
|
+
* @category ui/a11y
|
|
179
|
+
* @relatedTo provideA11yPanelConfig
|
|
180
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
181
|
+
* @since 0.1.0
|
|
182
|
+
*/
|
|
183
|
+
declare function withA11yPanelAxes(payload: readonly CngxA11yPanelAxisSpec[]): CngxA11yPanelConfigFeature;
|
|
184
|
+
/**
|
|
185
|
+
* Application-root configuration cascade for the accessibility panel. Pass any
|
|
186
|
+
* combination of `with*` features in `bootstrapApplication`'s providers;
|
|
187
|
+
* supplied features merge with the library defaults, so consumers only declare
|
|
188
|
+
* what they override.
|
|
189
|
+
*
|
|
190
|
+
* @category ui/a11y
|
|
191
|
+
* @relatedTo withA11yPanelLabels
|
|
192
|
+
* @relatedTo withA11yPanelAxes
|
|
193
|
+
* @relatedTo injectA11yPanelConfig
|
|
194
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
195
|
+
* @since 0.1.0
|
|
196
|
+
*/
|
|
197
|
+
declare function provideA11yPanelConfig(...features: CngxA11yPanelConfigFeature[]): EnvironmentProviders;
|
|
198
|
+
/**
|
|
199
|
+
* Component-scoped configuration override. Pass into a component's or
|
|
200
|
+
* directive's `viewProviders`; features merge on top of the parent config (an
|
|
201
|
+
* enclosing scope or the application root), so one panel can re-scope its axis
|
|
202
|
+
* subset or labels without disturbing the rest of the app. This is the
|
|
203
|
+
* component-scope tier of the resolution cascade: `provideA11yPanelConfigAt`
|
|
204
|
+
* (nearest) wins over `provideA11yPanelConfig` (root), which wins over the
|
|
205
|
+
* library defaults.
|
|
206
|
+
*
|
|
207
|
+
* ```ts
|
|
208
|
+
* @Component({
|
|
209
|
+
* viewProviders: [
|
|
210
|
+
* provideA11yPanelConfigAt(withA11yPanelAxes([
|
|
211
|
+
* { axis: 'textScale', reset: 'md', options: [
|
|
212
|
+
* { value: 'md', label: 'Default' },
|
|
213
|
+
* { value: 'lg', label: 'Large' },
|
|
214
|
+
* ] },
|
|
215
|
+
* ])),
|
|
216
|
+
* ],
|
|
217
|
+
* })
|
|
218
|
+
* ```
|
|
219
|
+
*
|
|
220
|
+
* @category ui/a11y
|
|
221
|
+
* @relatedTo provideA11yPanelConfig
|
|
222
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
223
|
+
* @since 0.1.0
|
|
224
|
+
*/
|
|
225
|
+
declare function provideA11yPanelConfigAt(...features: CngxA11yPanelConfigFeature[]): Provider[];
|
|
226
|
+
/**
|
|
227
|
+
* Convenience accessor for the resolved panel configuration. Runs in an
|
|
228
|
+
* injection context; resolves through the cascade. Equivalent to
|
|
229
|
+
* `inject(CNGX_A11Y_PANEL_CONFIG)`.
|
|
230
|
+
*
|
|
231
|
+
* @category ui/a11y
|
|
232
|
+
* @relatedTo provideA11yPanelConfig
|
|
233
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.config.ts
|
|
234
|
+
* @since 0.1.0
|
|
235
|
+
*/
|
|
236
|
+
declare function injectA11yPanelConfig(): CngxA11yPanelConfig;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* One rendered axis group, resolved once from the config against the
|
|
240
|
+
* matching preference signal. `value` reads the current axis value as a
|
|
241
|
+
* string; `commit` writes a picked option back through the same signal.
|
|
242
|
+
* @internal
|
|
243
|
+
*/
|
|
244
|
+
interface CngxA11yPanelAxisView {
|
|
245
|
+
readonly axis: CngxA11yPanelAxis;
|
|
246
|
+
readonly label: string;
|
|
247
|
+
readonly labelId: string;
|
|
248
|
+
readonly options: readonly CngxA11yPanelAxisOption[];
|
|
249
|
+
readonly value: Signal<string>;
|
|
250
|
+
readonly commit: (next: string | undefined) => void;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Batteries-included accessibility preferences card. Renders one labelled
|
|
254
|
+
* `cngx-button-toggle-group` per configured axis (spacing/density, text size,
|
|
255
|
+
* motion, contrast), each split-bound to the app-wide preference signal from
|
|
256
|
+
* `injectA11yPreferences()`, plus a Reset that restores every axis to its
|
|
257
|
+
* library default and announces the change.
|
|
258
|
+
*
|
|
259
|
+
* It ships no trigger, no overlay, and no placement of its own - it is a plain
|
|
260
|
+
* in-flow `CngxCard`. The consumer decides where it appears: inline, inside a
|
|
261
|
+
* `CngxDrawer`, inside a `CngxDialog`, or behind their own popover trigger.
|
|
262
|
+
* This mirrors `CngxListbox` under `CngxSelect` - the panel owns the axis
|
|
263
|
+
* controls, the consumer owns the overlay.
|
|
264
|
+
*
|
|
265
|
+
* Composition over reinvention (Pillar 3): the shell is `CngxCard`, each
|
|
266
|
+
* control is `CngxButtonToggleGroup` (roving tabindex + `model` value), and the
|
|
267
|
+
* Reset announcement rides the shared root `CngxLiveAnnouncer` - no hand-rolled
|
|
268
|
+
* card, control, or live region. The axis ARIA is the toggle group's own
|
|
269
|
+
* reactive `computed()` output (Pillar 2).
|
|
270
|
+
*
|
|
271
|
+
* ```html
|
|
272
|
+
* <cngx-a11y-panel />
|
|
273
|
+
* ```
|
|
274
|
+
*
|
|
275
|
+
* @category ui/a11y
|
|
276
|
+
* @docsKind primary
|
|
277
|
+
* @wcag AA
|
|
278
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/a11y/a11y-panel.component.ts
|
|
279
|
+
* @selector cngx-a11y-panel
|
|
280
|
+
* @since 0.1.0
|
|
281
|
+
* @relatedTo CngxCard, CngxButtonToggleGroup, CngxLiveAnnouncer, provideA11yPreferences, provideA11yPanelConfig
|
|
282
|
+
* <example-url>http://localhost:4200/#/ui/a11y/panel/inline</example-url>
|
|
283
|
+
*/
|
|
284
|
+
declare class CngxA11yPanel {
|
|
285
|
+
private readonly announcer;
|
|
286
|
+
private readonly prefs;
|
|
287
|
+
protected readonly config: _cngx_ui_a11y.CngxA11yPanelConfig;
|
|
288
|
+
private readonly uid;
|
|
289
|
+
/**
|
|
290
|
+
* The axis groups to render. Resolved once from the config: the axis list is
|
|
291
|
+
* static, so this is a plain field (no equality concern). Each view's `value`
|
|
292
|
+
* is its own one-axis `computed`, so a change to one axis re-renders only its
|
|
293
|
+
* group's bound value, not the whole list.
|
|
294
|
+
*/
|
|
295
|
+
protected readonly axisViews: readonly CngxA11yPanelAxisView[];
|
|
296
|
+
private buildAxisViews;
|
|
297
|
+
protected reset(): void;
|
|
298
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CngxA11yPanel, never>;
|
|
299
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CngxA11yPanel, "cngx-a11y-panel", never, {}, {}, never, ["[cngxA11yPanelHeader]"], true, never>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export { CNGX_A11Y_PANEL_CONFIG, CNGX_A11Y_PANEL_DEFAULTS, CngxA11yPanel, injectA11yPanelConfig, provideA11yPanelConfig, provideA11yPanelConfigAt, withA11yPanelAxes, withA11yPanelLabels };
|
|
303
|
+
export type { CngxA11yPanelAxis, CngxA11yPanelAxisOption, CngxA11yPanelAxisSpec, CngxA11yPanelConfig, CngxA11yPanelConfigFeature, CngxA11yPanelLabels, CngxA11yPanelLabelsOverride };
|
|
@@ -385,6 +385,10 @@ declare class CngxAccordionItemSubtitle {
|
|
|
385
385
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item.component.ts
|
|
386
386
|
* @since 0.1.0
|
|
387
387
|
* @relatedTo CngxAccordionGroup, CngxAccordionPanel
|
|
388
|
+
* @slot cngxAccordionItemIcon Replaces the item's expand/collapse chevron.
|
|
389
|
+
* @slot cngxAccordionItemContent The panel body, rendered lazily when the item opens.
|
|
390
|
+
* @slot cngxAccordionItemBusy Rendered over the item while its content loads.
|
|
391
|
+
* @slot cngxAccordionItemError Rendered when the item's content failed to load.
|
|
388
392
|
*
|
|
389
393
|
* <example-url>http://localhost:4200/#/ui/accordion/async-panel/lazy-fetch</example-url>
|
|
390
394
|
* <example-url>http://localhost:4200/#/ui/accordion/disabled-lazy/disabled-and-lazy</example-url>
|
|
@@ -448,11 +452,12 @@ declare class CngxAccordionItem {
|
|
|
448
452
|
/**
|
|
449
453
|
* The button's `aria-describedby`: subtitle first (an informative secondary
|
|
450
454
|
* line the title-only name-pin would otherwise hide from AT), then the
|
|
451
|
-
* disabled-reason element. Both
|
|
452
|
-
*
|
|
453
|
-
*
|
|
455
|
+
* disabled-reason element. Both target spans stay in the DOM; each ID
|
|
456
|
+
* reference is emitted only while its description applies - accname 1.2
|
|
457
|
+
* §2A traverses a directly-referenced node even when it is hidden, so
|
|
458
|
+
* `aria-hidden` alone would not suppress a dangling reference.
|
|
454
459
|
*/
|
|
455
|
-
protected readonly describedBy: string
|
|
460
|
+
protected readonly describedBy: _angular_core.Signal<string | null>;
|
|
456
461
|
/** Lazy region-body slot; absent means the body projects eagerly through the default slot. */
|
|
457
462
|
protected readonly contentSlot: _angular_core.Signal<CngxAccordionItemContent | undefined>;
|
|
458
463
|
/**
|
|
@@ -57,6 +57,9 @@ type ActionButtonVariant = 'primary' | 'secondary' | 'ghost';
|
|
|
57
57
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/action-button/action-button.ts
|
|
58
58
|
* @since 0.1.0
|
|
59
59
|
* @relatedTo CngxAsyncClick, CngxPending, CngxSucceeded, CngxFailed, CngxToaster
|
|
60
|
+
* @slot cngxPending Replaces the label while the action runs.
|
|
61
|
+
* @slot cngxSucceeded Replaces the label after the action succeeds.
|
|
62
|
+
* @slot cngxFailed Replaces the label when the action fails; gets the error.
|
|
60
63
|
* <example-url>http://localhost:4200/#/ui/action-button/async-button/random-outcome</example-url>
|
|
61
64
|
* <example-url>http://localhost:4200/#/ui/action-button/async-button/string-labels</example-url>
|
|
62
65
|
* <example-url>http://localhost:4200/#/ui/action-button/async-button/template-slots</example-url>
|
|
@@ -161,6 +161,9 @@ interface CngxBreadcrumbSibling {
|
|
|
161
161
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-bar.component.ts
|
|
162
162
|
* @since 0.1.0
|
|
163
163
|
* @relatedTo CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator, CngxBreadcrumbOverflow, CngxBreadcrumbSiblings, CngxBreadcrumbItemAccessory, CngxBreadcrumbOverflowItem, CngxBreadcrumbRouterSync
|
|
164
|
+
* @slot cngxBreadcrumbIcon Replaces a crumb's leading icon; gets the crumb.
|
|
165
|
+
* @slot cngxBreadcrumbItemAccessory Trailing control on a crumb, e.g. a siblings dropdown trigger.
|
|
166
|
+
* @slot cngxBreadcrumbOverflowItem Replaces a row inside the collapsed-crumbs menu.
|
|
164
167
|
* <example-url>http://localhost:4200/#/ui/breadcrumb/basic/explicit-items</example-url>
|
|
165
168
|
*/
|
|
166
169
|
declare class CngxBreadcrumbBar {
|
|
@@ -303,6 +306,7 @@ declare class CngxBreadcrumbOverflowItem {
|
|
|
303
306
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-overflow.component.ts
|
|
304
307
|
* @since 0.1.0
|
|
305
308
|
* @relatedTo CngxBreadcrumbBar, CngxBreadcrumbOverflowItem, CngxPopoverPanel, CngxPopoverTrigger, CngxMenu, CngxMenuTrigger
|
|
309
|
+
* @slot cngxBreadcrumbOverflowItem Replaces a row inside the collapsed-crumbs menu; gets the crumb.
|
|
306
310
|
* <example-url>http://localhost:4200/#/ui/breadcrumb/overflow/collapsed-menu</example-url>
|
|
307
311
|
*/
|
|
308
312
|
declare class CngxBreadcrumbOverflow {
|
|
@@ -361,6 +365,7 @@ declare class CngxBreadcrumbOverflow {
|
|
|
361
365
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-siblings.component.ts
|
|
362
366
|
* @since 0.1.0
|
|
363
367
|
* @relatedTo CngxBreadcrumbSiblingItem, CngxBreadcrumbSiblingsRouterSync, CngxBreadcrumbSiblingsSource, CngxBreadcrumbBar, CngxPopoverPanel, CngxPopoverTrigger
|
|
368
|
+
* @slot cngxBreadcrumbSiblingItem Replaces a row in the sibling-navigation menu; gets the sibling.
|
|
364
369
|
* <example-url>http://localhost:4200/#/ui/breadcrumb/siblings/static-siblings</example-url>
|
|
365
370
|
*/
|
|
366
371
|
declare class CngxBreadcrumbSiblings {
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
|
|
3
|
+
import { CngxAsyncState } from '@cngx/core/utils';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Title-registration contract the panel exposes to its projected title slot.
|
|
7
|
+
* The slot registers its generated id on init; the panel derives its
|
|
8
|
+
* `aria-labelledby` from it.
|
|
9
|
+
*
|
|
10
|
+
* Fronted by a DI token rather than the concrete `CngxChartPanel` class so the
|
|
11
|
+
* slot stays decompose-safe - an ejected skin talks to the same token the
|
|
12
|
+
* library defines. Mirrors `CNGX_STAT` behind the `cngxStat*` slots.
|
|
13
|
+
*/
|
|
14
|
+
interface CngxChartPanelRegistry {
|
|
15
|
+
/** Register the id contributed by the title slot. */
|
|
16
|
+
registerTitle(id: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Withdraw a previously registered title id. Takes the id rather than no
|
|
19
|
+
* argument so a destroy arriving after a replacement title already
|
|
20
|
+
* registered cannot clear the newer one.
|
|
21
|
+
*/
|
|
22
|
+
unregisterTitle(id: string): void;
|
|
23
|
+
}
|
|
24
|
+
/** DI token carrying the {@link CngxChartPanelRegistry} a `CngxChartPanel` provides. */
|
|
25
|
+
declare const CNGX_CHART_PANEL: InjectionToken<CngxChartPanelRegistry>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Where the projected legend sits relative to the chart body.
|
|
29
|
+
*
|
|
30
|
+
* @category ui/chart-panel
|
|
31
|
+
* @since 0.1.0
|
|
32
|
+
*/
|
|
33
|
+
type CngxChartPanelLegendPosition = 'top' | 'bottom' | 'none';
|
|
34
|
+
/**
|
|
35
|
+
* Dashboard housing for a chart: a titled, footer-capable region that frames
|
|
36
|
+
* whatever `cngx-chart` or preset the consumer projects into it.
|
|
37
|
+
*
|
|
38
|
+
* **What it deliberately does not do.** `cngx-chart` already owns the data-level
|
|
39
|
+
* async envelope - its own `[state]`, its skeleton / empty / error slots, its
|
|
40
|
+
* SR data table. The panel never duplicates that machine. Reproducing it here
|
|
41
|
+
* would put two managers on one state (Pillar 1) and turn the panel into a
|
|
42
|
+
* God-component (Pillar 3). The chart stays the authority on what the body
|
|
43
|
+
* shows; the panel only frames it.
|
|
44
|
+
*
|
|
45
|
+
* What the panel does own is the chrome a bare chart cannot express: a title
|
|
46
|
+
* that names the region for assistive tech, a subtitle, a header action
|
|
47
|
+
* cluster, and a footer. `role="group"` plus `aria-labelledby` pointing at the
|
|
48
|
+
* projected title means a screen reader announces "Revenue by quarter, group"
|
|
49
|
+
* instead of dropping the user into an unlabelled SVG (Pillar 2).
|
|
50
|
+
*
|
|
51
|
+
* Panel-level busy marks the **header**, never the group. An `aria-busy` on the
|
|
52
|
+
* region would hold back the projected chart's own live announcements and tell
|
|
53
|
+
* AT that a perfectly stable chart is updating - the same boundary violation in
|
|
54
|
+
* the a11y layer that duplicating its view switch would be in the state layer.
|
|
55
|
+
*
|
|
56
|
+
* ```html
|
|
57
|
+
* <cngx-chart-panel>
|
|
58
|
+
* <h3 cngxChartPanelTitle>Revenue by quarter</h3>
|
|
59
|
+
* <span cngxChartPanelSubtitle>EUR, net</span>
|
|
60
|
+
* <button cngxChartPanelActions type="button">Refresh</button>
|
|
61
|
+
*
|
|
62
|
+
* <cngx-chart [data]="series" [state]="revenue">
|
|
63
|
+
* <svg:g cngxLine [data]="series"></svg:g>
|
|
64
|
+
* </cngx-chart>
|
|
65
|
+
*
|
|
66
|
+
* <small cngxChartPanelFooter>Source: finance warehouse</small>
|
|
67
|
+
* </cngx-chart-panel>
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @category ui/chart-panel
|
|
71
|
+
* @docsKind primary
|
|
72
|
+
* @wcag AA
|
|
73
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel.component.ts
|
|
74
|
+
* @since 0.1.0
|
|
75
|
+
* @relatedTo CngxChart, CngxChartLegend, CngxChartPanelTitle, CngxChartPanelActions
|
|
76
|
+
*
|
|
77
|
+
* <example-url>http://localhost:4200/#/ui/chart-panel/basic/titled-panel-with-legend</example-url>
|
|
78
|
+
* <example-url>http://localhost:4200/#/ui/chart-panel/async/panel-chrome-vs-chart-state</example-url>
|
|
79
|
+
* <example-url>http://localhost:4200/#/ui/chart-panel/slots/actions-and-footer</example-url>
|
|
80
|
+
*/
|
|
81
|
+
declare class CngxChartPanel implements CngxChartPanelRegistry {
|
|
82
|
+
private readonly titleId;
|
|
83
|
+
private readonly config;
|
|
84
|
+
/**
|
|
85
|
+
* Panel-level async envelope - the one driving the header chrome, not the
|
|
86
|
+
* chart's data. Bind the chart's own `[state]` to the chart; bind a
|
|
87
|
+
* range-switch or export operation here. Optional per the bridge-input rule.
|
|
88
|
+
*/
|
|
89
|
+
readonly state: i0.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Where the projected `cngx-chart-legend` sits. `'none'` hides it. Matches
|
|
92
|
+
* the bare `cngx-chart-legend` tag; a legend wrapped in an element of your
|
|
93
|
+
* own lands in the body slot instead.
|
|
94
|
+
*/
|
|
95
|
+
readonly legendPosition: i0.InputSignal<CngxChartPanelLegendPosition>;
|
|
96
|
+
/** @internal Panel-level busy, never the chart's data-loading state. */
|
|
97
|
+
protected readonly panelBusy: i0.Signal<boolean>;
|
|
98
|
+
/** {@inheritDoc CngxChartPanelRegistry.registerTitle} */
|
|
99
|
+
registerTitle(id: string): void;
|
|
100
|
+
/** {@inheritDoc CngxChartPanelRegistry.unregisterTitle} */
|
|
101
|
+
unregisterTitle(id: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* @internal Accessible name of the region, from the projected title slot.
|
|
104
|
+
* `null` when no title was projected - an unnamed group is better than one
|
|
105
|
+
* pointing at an id that does not exist.
|
|
106
|
+
*/
|
|
107
|
+
protected readonly labelledBy: i0.Signal<string | null>;
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CngxChartPanel, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CngxChartPanel, "cngx-chart-panel", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "legendPosition": { "alias": "legendPosition"; "required": false; "isSignal": true; }; }, {}, never, ["[cngxChartPanelTitle]", "[cngxChartPanelSubtitle]", "[cngxChartPanelActions]", "cngx-chart-legend", "*", "[cngxChartPanelFooter]"], true, never>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* App-wide cascade for the chart-panel's ARIA strings and its default legend
|
|
114
|
+
* placement.
|
|
115
|
+
*
|
|
116
|
+
* Resolution priority (high -> low):
|
|
117
|
+
* 1. Per-instance Input binding (e.g. `[legendPosition]`).
|
|
118
|
+
* 2. `provideChartPanelConfigAt(...)` in a parent component's `viewProviders`.
|
|
119
|
+
* 3. `provideChartPanelConfig(...)` at the application root.
|
|
120
|
+
* 4. Library defaults (English; merged in via `CNGX_CHART_PANEL_DEFAULTS`).
|
|
121
|
+
*
|
|
122
|
+
* @category ui/chart-panel
|
|
123
|
+
* @since 0.1.0
|
|
124
|
+
*/
|
|
125
|
+
interface CngxChartPanelConfig {
|
|
126
|
+
/** String fallbacks for the panel's non-content states. */
|
|
127
|
+
readonly ariaLabels?: {
|
|
128
|
+
/** Accessible name announced while a panel-level operation runs. */
|
|
129
|
+
readonly busy?: string;
|
|
130
|
+
};
|
|
131
|
+
/** App-wide default legend placement. Per-instance `[legendPosition]` wins. */
|
|
132
|
+
readonly legendPosition?: CngxChartPanelLegendPosition;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* App-wide configuration cascade for the chart-panel. `providedIn: 'root'`
|
|
137
|
+
* with a default factory, so `inject(CNGX_CHART_PANEL_CONFIG)` always
|
|
138
|
+
* resolves.
|
|
139
|
+
*
|
|
140
|
+
* @category ui/chart-panel
|
|
141
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/config/chart-panel.config.defaults.ts
|
|
142
|
+
* @since 0.1.0
|
|
143
|
+
* @relatedTo provideChartPanelConfig, provideChartPanelConfigAt, injectChartPanelConfig
|
|
144
|
+
*/
|
|
145
|
+
declare const CNGX_CHART_PANEL_CONFIG: InjectionToken<CngxChartPanelConfig>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Discriminated-union shape returned by the chart-panel config features. The
|
|
149
|
+
* reducer matches on `kind` and merges `payload` into the corresponding config
|
|
150
|
+
* sub-tree. Mirrors `CngxStatCardConfigFeature` and `CngxBreadcrumbConfigFeature`.
|
|
151
|
+
*
|
|
152
|
+
* @category ui/chart-panel
|
|
153
|
+
* @since 0.1.0
|
|
154
|
+
*/
|
|
155
|
+
type CngxChartPanelConfigFeature = {
|
|
156
|
+
readonly kind: 'ariaLabels';
|
|
157
|
+
readonly payload: NonNullable<CngxChartPanelConfig['ariaLabels']>;
|
|
158
|
+
} | {
|
|
159
|
+
readonly kind: 'legendPosition';
|
|
160
|
+
readonly payload: {
|
|
161
|
+
readonly legendPosition: NonNullable<CngxChartPanelConfig['legendPosition']>;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Application-root configuration cascade for the chart-panel.
|
|
166
|
+
*
|
|
167
|
+
* ```ts
|
|
168
|
+
* bootstrapApplication(AppComponent, {
|
|
169
|
+
* providers: [provideChartPanelConfig(withChartPanelLegendPosition('top'))],
|
|
170
|
+
* });
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* @category ui/chart-panel
|
|
174
|
+
* @since 0.1.0
|
|
175
|
+
*/
|
|
176
|
+
declare function provideChartPanelConfig(...features: CngxChartPanelConfigFeature[]): EnvironmentProviders;
|
|
177
|
+
/**
|
|
178
|
+
* Component-scoped configuration cascade for the chart-panel. Injects the
|
|
179
|
+
* parent injector's value and deep-merges the supplied features on top.
|
|
180
|
+
*
|
|
181
|
+
* @category ui/chart-panel
|
|
182
|
+
* @since 0.1.0
|
|
183
|
+
*/
|
|
184
|
+
declare function provideChartPanelConfigAt(...features: CngxChartPanelConfigFeature[]): Provider[];
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Override the chart-panel's string fallbacks. Library defaults are English;
|
|
188
|
+
* this is the hook a localised app uses.
|
|
189
|
+
*
|
|
190
|
+
* @category ui/chart-panel
|
|
191
|
+
* @since 0.1.0
|
|
192
|
+
*/
|
|
193
|
+
declare function withChartPanelAriaLabels(labels: NonNullable<CngxChartPanelConfig['ariaLabels']>): CngxChartPanelConfigFeature;
|
|
194
|
+
/**
|
|
195
|
+
* Move the cascade default for where a projected `cngx-chart-legend` sits.
|
|
196
|
+
* Per-instance `[legendPosition]` still wins.
|
|
197
|
+
*
|
|
198
|
+
* @category ui/chart-panel
|
|
199
|
+
* @since 0.1.0
|
|
200
|
+
*/
|
|
201
|
+
declare function withChartPanelLegendPosition(position: CngxChartPanelLegendPosition): CngxChartPanelConfigFeature;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Convenience accessor for the chart-panel configuration cascade. Runs in
|
|
205
|
+
* injection context; resolves through the priority chain (per-instance Input
|
|
206
|
+
* -> `provideChartPanelConfigAt` -> `provideChartPanelConfig` -> library
|
|
207
|
+
* defaults). Equivalent to `inject(CNGX_CHART_PANEL_CONFIG)` - the helper
|
|
208
|
+
* exists so consumers don't import the token directly.
|
|
209
|
+
*
|
|
210
|
+
* @category ui/chart-panel
|
|
211
|
+
* @since 0.1.0
|
|
212
|
+
*/
|
|
213
|
+
declare function injectChartPanelConfig(): CngxChartPanelConfig;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Marks the panel's title. Its generated id becomes the panel's
|
|
217
|
+
* `aria-labelledby`, so the whole region reads as one named group instead of
|
|
218
|
+
* an unlabelled box wrapped around a chart.
|
|
219
|
+
*
|
|
220
|
+
* Registration runs against {@link CNGX_CHART_PANEL}, which the panel provides -
|
|
221
|
+
* the title resolves it from its declaration site in the consumer template.
|
|
222
|
+
*
|
|
223
|
+
* @category ui/chart-panel
|
|
224
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts
|
|
225
|
+
* @since 0.1.0
|
|
226
|
+
* @relatedTo CngxChartPanel, CngxChartPanelSubtitle
|
|
227
|
+
*/
|
|
228
|
+
declare class CngxChartPanelTitle {
|
|
229
|
+
/** Auto-generated id bound to the host `[id]`; consumed by the panel. */
|
|
230
|
+
readonly id: string;
|
|
231
|
+
constructor();
|
|
232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CngxChartPanelTitle, never>;
|
|
233
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxChartPanelTitle, "[cngxChartPanelTitle]", never, {}, {}, never, never, true, never>;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Marks the panel's secondary line under the title - a period, a unit, a
|
|
237
|
+
* comparison basis. Descriptive only; it does not join the accessible name.
|
|
238
|
+
*
|
|
239
|
+
* @category ui/chart-panel
|
|
240
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts
|
|
241
|
+
* @since 0.1.0
|
|
242
|
+
* @relatedTo CngxChartPanel, CngxChartPanelTitle
|
|
243
|
+
*/
|
|
244
|
+
declare class CngxChartPanelSubtitle {
|
|
245
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CngxChartPanelSubtitle, never>;
|
|
246
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxChartPanelSubtitle, "[cngxChartPanelSubtitle]", never, {}, {}, never, never, true, never>;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Marks the panel's header action cluster - a range picker, a refresh button,
|
|
250
|
+
* an overflow menu. The panel dims the cluster and marks it `aria-disabled`
|
|
251
|
+
* while a panel-level operation runs, so a user cannot fire a second range
|
|
252
|
+
* change into an in-flight one.
|
|
253
|
+
*
|
|
254
|
+
* @category ui/chart-panel
|
|
255
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts
|
|
256
|
+
* @since 0.1.0
|
|
257
|
+
* @relatedTo CngxChartPanel
|
|
258
|
+
*/
|
|
259
|
+
declare class CngxChartPanelActions {
|
|
260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CngxChartPanelActions, never>;
|
|
261
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxChartPanelActions, "[cngxChartPanelActions]", never, {}, {}, never, never, true, never>;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Marks the panel's footer row - a source note, a last-updated timestamp, a
|
|
265
|
+
* drill-down link. Sits below the chart body and the legend.
|
|
266
|
+
*
|
|
267
|
+
* @category ui/chart-panel
|
|
268
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/chart-panel/chart-panel-slots.ts
|
|
269
|
+
* @since 0.1.0
|
|
270
|
+
* @relatedTo CngxChartPanel
|
|
271
|
+
*/
|
|
272
|
+
declare class CngxChartPanelFooter {
|
|
273
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CngxChartPanelFooter, never>;
|
|
274
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxChartPanelFooter, "[cngxChartPanelFooter]", never, {}, {}, never, never, true, never>;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export { CNGX_CHART_PANEL, CNGX_CHART_PANEL_CONFIG, CngxChartPanel, CngxChartPanelActions, CngxChartPanelFooter, CngxChartPanelSubtitle, CngxChartPanelTitle, injectChartPanelConfig, provideChartPanelConfig, provideChartPanelConfigAt, withChartPanelAriaLabels, withChartPanelLegendPosition };
|
|
278
|
+
export type { CngxChartPanelConfig, CngxChartPanelConfigFeature, CngxChartPanelLegendPosition, CngxChartPanelRegistry };
|
|
@@ -115,9 +115,13 @@ type CngxIncrementalListSkin = 'plain' | 'divided' | 'card';
|
|
|
115
115
|
* same contract when projected - the trigger stays a swappable terminal unit,
|
|
116
116
|
* the rich async experience lives here.
|
|
117
117
|
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
118
|
+
* Page bindings mirror the paginator shell and are longhand pairs -
|
|
119
|
+
* `[pageIndex]` + `(pageIndexChange)`, `[pageSize]` + `(pageSizeChange)`:
|
|
120
|
+
* the brain's controlled inputs are aliased through `hostDirectives` and this
|
|
121
|
+
* component is the single emitter of the matching outputs. The two-way
|
|
122
|
+
* shorthand (banana-in-a-box) fails NG8007 under `strictTemplates` because
|
|
123
|
+
* the two halves resolve to different directive instances - same limitation,
|
|
124
|
+
* same reason, as `CngxPaginator`.
|
|
121
125
|
*
|
|
122
126
|
* All ARIA is signal-driven: `aria-busy` reflects the brain busy signal and a
|
|
123
127
|
* polite live region communicates every settle (empty / error / end-reached).
|
|
@@ -128,6 +132,11 @@ type CngxIncrementalListSkin = 'plain' | 'divided' | 'card';
|
|
|
128
132
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list.component.ts
|
|
129
133
|
* @since 0.1.0
|
|
130
134
|
* @relatedTo CngxPaginate, CngxPaginator, CngxAsyncState
|
|
135
|
+
* @slot cngxIncrementalItem Renders one row; gets the item and its index.
|
|
136
|
+
* @slot cngxIncrementalLoading Rendered while a page is being fetched.
|
|
137
|
+
* @slot cngxIncrementalEmpty Rendered when the list resolves to nothing.
|
|
138
|
+
* @slot cngxIncrementalError Rendered when a page fetch fails; gets the error and a retry callback.
|
|
139
|
+
* @slot cngxIncrementalEnd Rendered once after the last page, e.g. an end-of-results marker.
|
|
131
140
|
*/
|
|
132
141
|
declare class CngxIncrementalList<T = unknown> {
|
|
133
142
|
/** Visual skin; reflected onto `[data-skin]`. Paint-only. */
|