@cngx/ui 0.1.0-rc.8 → 0.1.0-rc.9
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/command-palette/README.md +5 -2
- package/fesm2022/cngx-ui-accordion.mjs +19 -2
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +10 -7
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +55 -15
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +10 -0
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +2 -2
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +60 -6
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +87 -7
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +63 -32
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +3 -2
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +264 -86
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +67 -21
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +19 -5
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +65 -53
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +84 -25
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +28 -6
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +32 -8
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +1 -1
- package/mat-tabs/README.md +30 -6
- package/mat-tabs/styles/mat-tabs.css +180 -33
- package/package.json +31 -7
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/stepper/README.md +1 -1
- package/types/cngx-ui-accordion.d.ts +9 -2
- package/types/cngx-ui-breadcrumb.d.ts +14 -3
- package/types/cngx-ui-collection.d.ts +10 -0
- package/types/cngx-ui-context-menu.d.ts +42 -4
- package/types/cngx-ui-data-grid-accordion.d.ts +4 -1
- package/types/cngx-ui-feedback.d.ts +11 -3
- package/types/cngx-ui-mat-accordion.d.ts +3 -2
- package/types/cngx-ui-mat-tabs.d.ts +44 -21
- package/types/cngx-ui-paginator.d.ts +22 -7
- package/types/cngx-ui-stepper.d.ts +23 -23
- package/types/cngx-ui-tabs.d.ts +4 -2
- package/types/cngx-ui-timeline.d.ts +12 -4
- package/types/cngx-ui-toc.d.ts +13 -3
|
@@ -17,12 +17,20 @@
|
|
|
17
17
|
* - `.cngx-mat-tab--error` - rejected commit; tinted color, outline
|
|
18
18
|
* ring, font-weight bump. Specificity bump `.mat-mdc-tab.cngx-
|
|
19
19
|
* mat-tab--error` is load-bearing - Material 21's `.mdc-tab` sets
|
|
20
|
-
* `outline: none` at (0,1,0)
|
|
20
|
+
* `outline: none` at (0,1,0). `[data-reason="failed"]` stays in the
|
|
21
|
+
* error red; `[data-reason="refused"]` (the commit action answered
|
|
22
|
+
* `false`) takes the rejection amber and keeps the resting label colour
|
|
23
|
+
* - `.cngx-mat-tab__rejection-icon` - `aria-hidden` glyph disc the
|
|
24
|
+
* decoration appends to the rejected tab: `!` on a failed commit,
|
|
25
|
+
* `\2298` on a refused one, so the two never differ by colour alone.
|
|
26
|
+
* On its own it sits at the tab's trailing top corner, the spot and size
|
|
27
|
+
* of the has-errors badge; when the tab also carries that badge it drops
|
|
28
|
+
* back inline after the label, so the two discs never overlap
|
|
21
29
|
* - `.cngx-mat-tab--error` + `.mat-mdc-tab-disabled` - no extra rule:
|
|
22
30
|
* Material paints the disabled label colour and the error outline
|
|
23
31
|
* stays, so it does not pass for a healthy disabled tab
|
|
24
32
|
* - `.cngx-mat-tab--has-errors` - form-validation errors present;
|
|
25
|
-
* renders
|
|
33
|
+
* renders an `::after` red disc with an `!` glyph at the trailing
|
|
26
34
|
* corner. Distinct semantic from `--error` and the two coexist
|
|
27
35
|
* - `.cngx-mat-tab--error.cngx-mat-tab--has-errors` - co-occurrence;
|
|
28
36
|
* shifts the has-errors glyph inward via
|
|
@@ -44,9 +52,11 @@
|
|
|
44
52
|
* **Material wiring**
|
|
45
53
|
*
|
|
46
54
|
* Every `--cngx-mat-tab-*` token except the has-errors glyph size is
|
|
47
|
-
* `@property`-registered with a literal oklch initial value,
|
|
48
|
-
* value always wins over an inline `var()` fallback - this
|
|
49
|
-
* therefore carries no `--mat-sys-*` fallbacks of its own. The
|
|
55
|
+
* `@property`-registered, the colour tokens with a literal oklch initial value,
|
|
56
|
+
* so a registered value always wins over an inline `var()` fallback - this
|
|
57
|
+
* stylesheet therefore carries no `--mat-sys-*` fallbacks of its own. The two
|
|
58
|
+
* refused tokens register without an initial value, so their amber and
|
|
59
|
+
* resting-text fallbacks apply until a theme sets them. The size exception,
|
|
50
60
|
* `--cngx-mat-tab-has-errors-glyph-size`, is deliberately left unregistered so
|
|
51
61
|
* its `rem` fallback scales with text-only zoom (see its note below). The
|
|
52
62
|
* Material alignment is delivered by the
|
|
@@ -54,6 +64,7 @@
|
|
|
54
64
|
* which sets the colour tokens on `.mat-mdc-tab-group`:
|
|
55
65
|
*
|
|
56
66
|
* - `--cngx-mat-tab-error-color` <- `--mat-sys-error`
|
|
67
|
+
* - `--cngx-mat-tab-refused-color` <- `--mat-sys-tertiary`
|
|
57
68
|
* - `--cngx-mat-tab-has-errors-color` <- `--mat-sys-error`
|
|
58
69
|
* - `--cngx-mat-tab-has-errors-glyph-color` <- `--mat-sys-on-error`
|
|
59
70
|
* - `--cngx-mat-tabs-more-bg` <- `--mat-sys-surface`
|
|
@@ -85,6 +96,48 @@
|
|
|
85
96
|
initial-value: oklch(0.45 0.15 25);
|
|
86
97
|
}
|
|
87
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Outline and glyph-disc colour of a refused tab (the commit action
|
|
101
|
+
* answered `false`). A refusal is no error, so it wears the rejection
|
|
102
|
+
* amber; a failed commit keeps `--cngx-mat-tab-error-color`. Registered
|
|
103
|
+
* without an initial value, so the amber fallback applies until a theme
|
|
104
|
+
* sets it. Wired to `--mat-sys-tertiary` by the
|
|
105
|
+
* `@cngx/themes/material/tabs-theme` bridge.
|
|
106
|
+
* @group State / Refused
|
|
107
|
+
*/
|
|
108
|
+
@property --cngx-mat-tab-refused-color {
|
|
109
|
+
syntax: '*';
|
|
110
|
+
inherits: true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Text color of a refused tab. Defaults to the resting tab text colour:
|
|
115
|
+
* amber text would fall under the 4.5:1 text contrast.
|
|
116
|
+
* @group State / Refused
|
|
117
|
+
*/
|
|
118
|
+
@property --cngx-mat-tab-refused-text-color {
|
|
119
|
+
syntax: '*';
|
|
120
|
+
inherits: true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Gap between a rejected tab's label and its rejection glyph disc when
|
|
125
|
+
* the disc sits inline (the tab also carries the has-errors badge, which
|
|
126
|
+
* keeps the corner), derived from the spacing scale (`--cngx-space-xs`)
|
|
127
|
+
* below. The disc itself shares `--cngx-mat-tab-has-errors-glyph-size`.
|
|
128
|
+
* @group State / Error
|
|
129
|
+
*/
|
|
130
|
+
@property --cngx-mat-tab-rejection-icon-gap {
|
|
131
|
+
syntax: '*';
|
|
132
|
+
inherits: false;
|
|
133
|
+
initial-value: 0.25rem;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Read on the glyph itself (inherits: false), so the scale SET lands there. */
|
|
137
|
+
.cngx-mat-tab__rejection-icon {
|
|
138
|
+
--cngx-mat-tab-rejection-icon-gap: var(--cngx-space-xs, 0.25rem);
|
|
139
|
+
}
|
|
140
|
+
|
|
88
141
|
/**
|
|
89
142
|
* Outline shorthand of a rejected tab.
|
|
90
143
|
* @group State / Error
|
|
@@ -96,13 +149,15 @@
|
|
|
96
149
|
}
|
|
97
150
|
|
|
98
151
|
/**
|
|
99
|
-
* Outline offset of the rejected-tab outline.
|
|
152
|
+
* Outline offset of the rejected-tab outline. Negative by default: the
|
|
153
|
+
* Material label container clips its overflow, so an outline outside the
|
|
154
|
+
* tab box would lose its top, bottom and trailing edges.
|
|
100
155
|
* @group State / Error
|
|
101
156
|
*/
|
|
102
157
|
@property --cngx-mat-tab-error-outline-offset {
|
|
103
158
|
syntax: '<length>';
|
|
104
159
|
inherits: false;
|
|
105
|
-
initial-value:
|
|
160
|
+
initial-value: -2px;
|
|
106
161
|
}
|
|
107
162
|
|
|
108
163
|
/**
|
|
@@ -152,7 +207,7 @@
|
|
|
152
207
|
* Background of the `has-errors` glyph disc. Wired to `--mat-sys-error`
|
|
153
208
|
* by the `@cngx/themes/material/tabs-theme` bridge; standalone it keeps
|
|
154
209
|
* the literal default below. Inherits so a host-level override reaches
|
|
155
|
-
* the `::
|
|
210
|
+
* the `::after` glyph.
|
|
156
211
|
* @group State / HasErrors
|
|
157
212
|
*/
|
|
158
213
|
@property --cngx-mat-tab-has-errors-color {
|
|
@@ -253,24 +308,52 @@
|
|
|
253
308
|
|
|
254
309
|
@layer cngx.components {
|
|
255
310
|
/*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
* `
|
|
259
|
-
*
|
|
260
|
-
* the
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
311
|
+
* Rejection glyph. `::before` (Material's focus indicator) and `::after`
|
|
312
|
+
* (the has-errors badge) are taken, so the decoration appends this
|
|
313
|
+
* `aria-hidden` span to the tab element itself, next to its
|
|
314
|
+
* screen-reader descriptor. Laid out inline after the label row by
|
|
315
|
+
* default; the corner rule below lifts it out when the corner is free.
|
|
316
|
+
*/
|
|
317
|
+
.cngx-mat-tab__rejection-icon {
|
|
318
|
+
display: inline-flex;
|
|
319
|
+
align-items: center;
|
|
320
|
+
justify-content: center;
|
|
321
|
+
flex: 0 0 auto;
|
|
322
|
+
align-self: center;
|
|
323
|
+
width: var(--cngx-mat-tab-has-errors-glyph-size, 1rem);
|
|
324
|
+
height: var(--cngx-mat-tab-has-errors-glyph-size, 1rem);
|
|
325
|
+
margin-inline-start: var(--cngx-mat-tab-rejection-icon-gap, 0.25rem);
|
|
326
|
+
border-radius: 50%;
|
|
327
|
+
background: var(--cngx-mat-tab-error-color, oklch(0.45 0.15 25));
|
|
328
|
+
color: var(--cngx-mat-tab-has-errors-glyph-color, oklch(1 0 0));
|
|
329
|
+
font-size: calc(var(--cngx-mat-tab-has-errors-glyph-size, 1rem) * 0.75);
|
|
330
|
+
font-weight: var(--cngx-mat-tab-has-errors-font-weight, 700);
|
|
331
|
+
line-height: 1;
|
|
332
|
+
pointer-events: none;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.cngx-mat-tab__rejection-icon[data-reason='refused'] {
|
|
336
|
+
background: var(--cngx-mat-tab-refused-color, oklch(0.62 0.15 60));
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/*
|
|
340
|
+
* No has-errors badge on the tab: the disc takes the badge's corner.
|
|
341
|
+
* It resolves against the tab (Material's `.mdc-tab` is
|
|
342
|
+
* `position: relative`; set here too for a bare tab link), which is why
|
|
343
|
+
* the decoration never mounts it inside `.mdc-tab__content`, itself a
|
|
344
|
+
* positioning context.
|
|
267
345
|
*/
|
|
268
|
-
.mat-mdc-tab.cngx-mat-tab--error,
|
|
269
|
-
.mat-mdc-tab-link.cngx-mat-tab--error {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
346
|
+
.mat-mdc-tab.cngx-mat-tab--error:not(.cngx-mat-tab--has-errors),
|
|
347
|
+
.mat-mdc-tab-link.cngx-mat-tab--error:not(.cngx-mat-tab--has-errors) {
|
|
348
|
+
position: relative;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.cngx-mat-tab--error:not(.cngx-mat-tab--has-errors) > .cngx-mat-tab__rejection-icon {
|
|
352
|
+
position: absolute;
|
|
353
|
+
top: var(--cngx-mat-tab-has-errors-glyph-offset, 4px);
|
|
354
|
+
inset-inline-end: var(--cngx-mat-tab-has-errors-glyph-offset, 4px);
|
|
355
|
+
margin: 0;
|
|
356
|
+
z-index: 1;
|
|
274
357
|
}
|
|
275
358
|
|
|
276
359
|
/*
|
|
@@ -291,12 +374,14 @@
|
|
|
291
374
|
}
|
|
292
375
|
|
|
293
376
|
/*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
377
|
+
* The badge lives on `::after` because Material owns `::before` on every
|
|
378
|
+
* `.mat-focus-indicator` tab: with `mat.strong-focus-indicators()` its
|
|
379
|
+
* unlayered rule (`display`, `inset`, `border`, and `content: ''` on
|
|
380
|
+
* focus) beats any rule in this layer regardless of specificity, which
|
|
381
|
+
* hid the badge entirely and stole the focus ring's pseudo-element.
|
|
297
382
|
*/
|
|
298
|
-
.mat-mdc-tab.cngx-mat-tab--has-errors::
|
|
299
|
-
.mat-mdc-tab-link.cngx-mat-tab--has-errors::
|
|
383
|
+
.mat-mdc-tab.cngx-mat-tab--has-errors::after,
|
|
384
|
+
.mat-mdc-tab-link.cngx-mat-tab--has-errors::after {
|
|
300
385
|
content: '!' / '';
|
|
301
386
|
position: absolute;
|
|
302
387
|
top: var(--cngx-mat-tab-has-errors-glyph-offset, 4px);
|
|
@@ -324,10 +409,11 @@
|
|
|
324
409
|
* Co-occurrence: when a tab is BOTH rejected and carries form
|
|
325
410
|
* errors, the rejection outline already draws focus to the edges;
|
|
326
411
|
* shift the has-errors badge slightly inward so the two signals
|
|
327
|
-
* read as distinct rather than visually merging.
|
|
412
|
+
* read as distinct rather than visually merging. The rejection disc
|
|
413
|
+
* leaves the corner to the badge and sits inline after the label.
|
|
328
414
|
*/
|
|
329
|
-
.mat-mdc-tab.cngx-mat-tab--error.cngx-mat-tab--has-errors::
|
|
330
|
-
.mat-mdc-tab-link.cngx-mat-tab--error.cngx-mat-tab--has-errors::
|
|
415
|
+
.mat-mdc-tab.cngx-mat-tab--error.cngx-mat-tab--has-errors::after,
|
|
416
|
+
.mat-mdc-tab-link.cngx-mat-tab--error.cngx-mat-tab--has-errors::after {
|
|
331
417
|
top: var(--cngx-mat-tab-has-errors-glyph-offset-stacked, 6px);
|
|
332
418
|
inset-inline-end: var(--cngx-mat-tab-has-errors-glyph-offset-stacked, 6px);
|
|
333
419
|
}
|
|
@@ -377,3 +463,64 @@
|
|
|
377
463
|
border: 0;
|
|
378
464
|
}
|
|
379
465
|
}
|
|
466
|
+
|
|
467
|
+
/*
|
|
468
|
+
* Rejected-tab paint. Unlayered on purpose: Material ships its tab styles
|
|
469
|
+
* unlayered through the component decorator (`.mdc-tab { outline: none }`,
|
|
470
|
+
* the font-weight on `.mat-mdc-tab`), and an unlayered rule beats every
|
|
471
|
+
* layered one whatever its specificity, so inside `@layer cngx.components`
|
|
472
|
+
* the outline and the weight never painted. Out here the specificity bump to
|
|
473
|
+
* `.mat-mdc-tab.cngx-mat-tab--error` (0,2,0) decides against Material's
|
|
474
|
+
* (0,1,0) rules, which are injected after the global styles.
|
|
475
|
+
*
|
|
476
|
+
* `.mat-mdc-tab-link` carries the same decoration for the native
|
|
477
|
+
* `[cngxMatTabNav]` bridge - the link element is also (0,1,0), so the
|
|
478
|
+
* doubled selector wins identically.
|
|
479
|
+
*
|
|
480
|
+
* The label text is painted by Material on `.mdc-tab__text-label` from its
|
|
481
|
+
* own `--mat-tab-*-label-text-color` tokens, up to (0,4,0) for the active
|
|
482
|
+
* hovered tab, so a colour on the tab never reached it. A failed tab sets
|
|
483
|
+
* those tokens instead; the label inherits them past every Material state
|
|
484
|
+
* selector, and the disabled colour stays Material's.
|
|
485
|
+
*/
|
|
486
|
+
.mat-mdc-tab.cngx-mat-tab--error,
|
|
487
|
+
.mat-mdc-tab-link.cngx-mat-tab--error {
|
|
488
|
+
color: var(--cngx-mat-tab-error-color, oklch(0.45 0.15 25));
|
|
489
|
+
outline: var(--cngx-mat-tab-error-outline, 2px solid currentColor);
|
|
490
|
+
outline-offset: var(--cngx-mat-tab-error-outline-offset, -2px);
|
|
491
|
+
font-weight: var(--cngx-mat-tab-error-font-weight, 600);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.mat-mdc-tab.cngx-mat-tab--error:not([data-reason='refused']),
|
|
495
|
+
.mat-mdc-tab-link.cngx-mat-tab--error:not([data-reason='refused']) {
|
|
496
|
+
--mat-tab-inactive-label-text-color: var(--cngx-mat-tab-error-color, oklch(0.45 0.15 25));
|
|
497
|
+
--mat-tab-inactive-focus-label-text-color: var(--cngx-mat-tab-error-color, oklch(0.45 0.15 25));
|
|
498
|
+
--mat-tab-inactive-hover-label-text-color: var(--cngx-mat-tab-error-color, oklch(0.45 0.15 25));
|
|
499
|
+
--mat-tab-active-label-text-color: var(--cngx-mat-tab-error-color, oklch(0.45 0.15 25));
|
|
500
|
+
--mat-tab-active-focus-label-text-color: var(--cngx-mat-tab-error-color, oklch(0.45 0.15 25));
|
|
501
|
+
--mat-tab-active-hover-label-text-color: var(--cngx-mat-tab-error-color, oklch(0.45 0.15 25));
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/*
|
|
505
|
+
* A refused commit is no error: the outline and the glyph disc take the
|
|
506
|
+
* rejection amber, the text keeps its resting colour (amber text would
|
|
507
|
+
* fall under the 4.5:1 text contrast), so its label keeps Material's
|
|
508
|
+
* tokens. A failed one stays red above.
|
|
509
|
+
*/
|
|
510
|
+
.mat-mdc-tab.cngx-mat-tab--error[data-reason='refused'],
|
|
511
|
+
.mat-mdc-tab-link.cngx-mat-tab--error[data-reason='refused'] {
|
|
512
|
+
color: var(--cngx-mat-tab-refused-text-color, currentColor);
|
|
513
|
+
outline-color: var(--cngx-mat-tab-refused-color, oklch(0.62 0.15 60));
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* forced-colors (WHCM): the glyph disc is a background fill, which the forced
|
|
517
|
+
* palette drops. Paint it in system colours so the refused and the failed
|
|
518
|
+
* glyph both keep their disc; the outline contour survives on its own.
|
|
519
|
+
* Unlayered to beat the layered component rule. */
|
|
520
|
+
@media (forced-colors: active) {
|
|
521
|
+
.cngx-mat-tab__rejection-icon {
|
|
522
|
+
forced-color-adjust: none;
|
|
523
|
+
background: CanvasText;
|
|
524
|
+
color: Canvas;
|
|
525
|
+
}
|
|
526
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cngx/ui",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.9",
|
|
4
4
|
"description": "Organism layer (layout, overlay, feedback, stepper, tabs) for the CNGX Angular component library. Material opt-in (mat-stepper, mat-tabs, material).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cngx",
|
|
@@ -24,12 +24,15 @@
|
|
|
24
24
|
"directory": "projects/ui"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@cngx/utils": "0.1.0-rc.
|
|
28
|
-
"@cngx/core": "0.1.0-rc.
|
|
29
|
-
"@cngx/common": "0.1.0-rc.
|
|
30
|
-
"@angular/cdk": "
|
|
31
|
-
"@angular/common": "
|
|
32
|
-
"@angular/core": "
|
|
27
|
+
"@cngx/utils": "0.1.0-rc.9",
|
|
28
|
+
"@cngx/core": "0.1.0-rc.9",
|
|
29
|
+
"@cngx/common": "0.1.0-rc.9",
|
|
30
|
+
"@angular/cdk": ">=21.1.0 <23.0.0",
|
|
31
|
+
"@angular/common": ">=21.1.0 <23.0.0",
|
|
32
|
+
"@angular/core": ">=21.1.0 <23.0.0",
|
|
33
|
+
"rxjs": "^7.8.0",
|
|
34
|
+
"@angular/router": ">=21.1.0 <23.0.0",
|
|
35
|
+
"@angular/material": ">=21.1.0 <23.0.0"
|
|
33
36
|
},
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"tslib": "^2.3.0"
|
|
@@ -149,6 +152,27 @@
|
|
|
149
152
|
"default": "./fesm2022/cngx-ui-toc.mjs"
|
|
150
153
|
}
|
|
151
154
|
},
|
|
155
|
+
"schematics": "./schematics/collection.json",
|
|
156
|
+
"ng-update": {
|
|
157
|
+
"packageGroup": [
|
|
158
|
+
"@cngx/utils",
|
|
159
|
+
"@cngx/core",
|
|
160
|
+
"@cngx/common",
|
|
161
|
+
"@cngx/interop",
|
|
162
|
+
"@cngx/forms",
|
|
163
|
+
"@cngx/data-display",
|
|
164
|
+
"@cngx/ui",
|
|
165
|
+
"@cngx/themes"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"peerDependenciesMeta": {
|
|
169
|
+
"@angular/router": {
|
|
170
|
+
"optional": true
|
|
171
|
+
},
|
|
172
|
+
"@angular/material": {
|
|
173
|
+
"optional": true
|
|
174
|
+
}
|
|
175
|
+
},
|
|
152
176
|
"module": "fesm2022/cngx-ui.mjs",
|
|
153
177
|
"typings": "types/cngx-ui.d.ts"
|
|
154
178
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";var ce=Object.create;var y=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var fe=Object.getOwnPropertyNames;var ge=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty;var ye=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),xe=(n,e)=>{for(var r in e)y(n,r,{get:e[r],enumerable:!0})},M=(n,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of fe(e))!me.call(n,o)&&o!==r&&y(n,o,{get:()=>e[o],enumerable:!(t=ue(e,o))||t.enumerable});return n};var be=(n,e,r)=>(r=n!=null?ce(ge(n)):{},M(e||!n||!n.__esModule?y(r,"default",{value:n,enumerable:!0}):r,n)),he=n=>M(y({},"__esModule",{value:!0}),n);var oe=ye((cn,B)=>{"use strict";var O=process||{},re=O.argv||[],C=O.env||{},Fe=!(C.NO_COLOR||re.includes("--no-color"))&&(!!C.FORCE_COLOR||re.includes("--color")||O.platform==="win32"||(O.stdout||{}).isTTY&&C.TERM!=="dumb"||!!C.CI),Be=(n,e,r=n)=>t=>{let o=""+t,i=o.indexOf(e,n.length);return~i?n+_e(o,e,r,i)+e:n+o+e},_e=(n,e,r,t)=>{let o="",i=0;do o+=n.substring(i,t)+r,i=t+e.length,t=n.indexOf(e,i);while(~t);return o+n.substring(i)},te=(n=Fe)=>{let e=n?Be:()=>String;return{isColorSupported:n,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};B.exports=te();B.exports.createColors=te});var Xe={};xe(Xe,{ngAdd:()=>I});module.exports=he(Xe);var R=require("@schematics/angular/utility");var U=require("@angular-devkit/schematics"),H=require("@schematics/angular/utility");function P(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function V(n){return n instanceof Error?n.message:String(n)}function G(n){return n.includes(`\r
|
|
2
|
+
`)?`\r
|
|
3
|
+
`:`
|
|
4
|
+
`}var g="package.json";function x(...n){return e=>{let r=e.exists(g)?e.readText(g):void 0;return(0,U.chain)([(0,H.addDependency)(...n),t=>{if(r===void 0||!t.exists(g))return;let o=t.readText(g),i=G(r),s=r.endsWith(`
|
|
5
|
+
`)&&!o.endsWith(`
|
|
6
|
+
`)?`${o}
|
|
7
|
+
`:o,d=i===`
|
|
8
|
+
`?s:s.replace(/\r?\n/g,i);d!==o&&t.overwrite(g,d)}])}}var w=require("node:fs"),Y=require("node:path"),v=require("@angular-devkit/schematics");function N(n){return P(n)?Object.fromEntries(Object.entries(n).filter(e=>typeof e[1]=="string")):{}}function Re(n){try{return JSON.parse(n)}catch(e){let r=e instanceof Error?e.message:String(e);throw new v.SchematicsException(`package.json is not valid JSON: ${r.replace(/\.$/,"")}.`)}}function f(n){let e=Re(n);if(!P(e))throw new v.SchematicsException("package.json is not a JSON object.");return{name:typeof e.name=="string"?e.name:void 0,version:typeof e.version=="string"?e.version:void 0,dependencies:N(e.dependencies),devDependencies:N(e.devDependencies),peerDependencies:N(e.peerDependencies)}}function q(n){let{version:e}=f((0,w.readFileSync)(b(n),"utf8"));if(e===void 0)throw new Error(`No version in ${b(n)}.`);return e}function W(n){let{name:e}=f((0,w.readFileSync)(b(n),"utf8"));if(e===void 0)throw new Error(`No name in ${b(n)}.`);return e}function b(n){return(0,Y.join)(n,"..","..","package.json")}function m(n,e){return n.dependencies[e]??n.devDependencies[e]}var Se=/^[\s^~<>=v]*(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:-([0-9A-Za-z.-]+))?/;function J(n){let e=Se.exec(n??"");if(e===null)return;let[,r,t="0",o="0",i]=e;return{major:Number(r),minor:Number(t),patch:Number(o),prerelease:i===void 0?[]:i.split(".").map(s=>/^\d+$/.test(s)?Number(s):s)}}function Ee(n,e){return typeof n=="number"&&typeof e=="number"?n-e:typeof n=="number"?-1:typeof e=="number"?1:n===e?0:n<e?-1:1}function X(n,e){let r=J(n),t=J(e);if(r===void 0||t===void 0)return;let o=r.major-t.major||r.minor-t.minor||r.patch-t.patch;if(o!==0)return o;if(r.prerelease.length===0||t.prerelease.length===0)return t.prerelease.length-r.prerelease.length;let i=Math.max(r.prerelease.length,t.prerelease.length);for(let s=0;s<i;s++){let d=r.prerelease[s],p=t.prerelease[s];if(d===void 0||p===void 0)return d===void 0?-1:1;let u=Ee(d,p);if(u!==0)return u}return 0}function h(n,e){let r=n.read(`node_modules/${e}/package.json`);if(r!==null)try{return f(r.toString("utf8")).version}catch{return}}var Te="package.json",Ce=/^[\s\d.^~<>=|xX*v-]+$/;function Oe(n,e){if(n!==void 0&&Ce.test(n)&&/\d/.test(n))return n;let r=/^(\d+)\.(\d+)\.\d+(-.+)?/.exec(e??"");if(r!==null)return r[3]===void 0?`^${r[1]}.${r[2]}.0`:`^${e}`}function Q(n,e){return(r,t)=>{let o=e??t.logger,i=f(r.readText(Te));if(m(i,n)!==void 0)return;let s=Oe(m(i,"@angular/core"),h(r,"@angular/core"));if(s===void 0){o.info(`Add ${n} matching your @angular/core yourself; cngx cannot read an Angular version to match it to.`);return}return o.info(`Adding ${n}@${s} to match @angular/core, so the install does not pick the ${n} of a newer Angular.`),x(n,s,{install:R.InstallBehavior.None,existing:R.ExistingBehavior.Skip})}}var S=require("@schematics/angular/utility"),Z=require("@schematics/angular/utility/json-file");var K="package.json";function L(n,e,r=!1){return(t,o)=>{let i=m(f(t.readText(K)),n);if(i!==void 0&&i!==e){r&&o.logger.info(`Replacing ${n}@${i} with ${e} so every @cngx package stays on one version.`);let s=new Z.JSONFile(t,K);s.remove(["dependencies",n]),s.remove(["devDependencies",n])}return x(n,e,{install:S.InstallBehavior.None,existing:S.ExistingBehavior.Replace})}}var Ae=["minimal","recommended","full"],E=["utils","core","common","interop","forms","data-display","ui"],Pe=["cngx","material","none"],Ne=["en","de"],we=["claude","cursor","vscode"];function T(n,e){return n.some(r=>r===e)}function ve(n,e){return Array.isArray(e)&&e.every(r=>T(n,r))}function Le(n){return typeof n=="boolean"}function k(n){return`--${n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}`}function $e(n,e){let r=e.length===1?"is":"are";return new Error(`"${e.join('", "')}" ${r} given more than once for ${k(n)}.`)}function ke(n,e){let r=k(n);return new Error(`${r} has an empty entry. Separate the values with single commas, for example ${r} ${e.slice(0,2).join(",")}.`)}function F(n,e,r){return new Error(`"${e.join('", "')}" is not a valid answer for ${k(n)}. Expected one of: ${r.join(", ")}.`)}var z=["true","false"];function ee(n,e,r){if(r===void 0)return;let t=typeof r=="string"?r.split(",").map(i=>i.trim()):r;if(t.length===0)return;if(t.includes(""))throw ke(n,e);if(!ve(e,t))throw F(n,t.filter(i=>!T(e,i)),e);let o=t.filter((i,s)=>t.indexOf(i)!==s);if(o.length>0)throw $e(n,[...new Set(o)]);return t}function $(n,e,r){if(r!==void 0){if(!T(e,r))throw F(n,[r],e);return r}}function c(n,e){if(e===void 0||Le(e))return e;if(!T(z,e))throw F(n,[e],z);return e==="true"}function ne(n){return{project:n.project,preset:$("preset",Ae,n.preset),libs:ee("libs",E,n.libs),theme:$("theme",Pe,n.theme),i18n:$("i18n",Ne,n.i18n),runtimeSwitch:c("runtimeSwitch",n.runtimeSwitch),lint:c("lint",n.lint),a11yPreferences:c("a11yPreferences",n.a11yPreferences),feedback:c("feedback",n.feedback),floatingFallback:c("floatingFallback",n.floatingFallback),starter:c("starter",n.starter),aiTools:ee("aiTools",we,n.aiTools),yes:c("yes",n.yes),prompts:c("prompts",n.prompts),quiet:c("quiet",n.quiet)}}var l=require("@angular-devkit/schematics"),A=require("@angular-devkit/schematics/tasks");var ie=be(oe());function Ie(n,e){if(n.NO_COLOR!==void 0&&n.NO_COLOR!=="")return!1;let r=n.FORCE_COLOR;return r!==void 0?r!=="0"&&r!=="false":e}function se(n,e){let r=Ie(n,e),t=(0,ie.createColors)(r);return{enabled:r,bold:t.bold,dim:t.dim,green:t.green,yellow:t.yellow,red:t.red}}function ae(n){let e=n?.toLowerCase();return e==="1"||e==="true"?!0:e==="0"||e==="false"?!1:void 0}function je(n){return ae(n.CI)===!0}function De(n,e){return ae(n.NG_FORCE_TTY)??(e.isTTY===!0&&!je(n))}function de(n,e,r,t){let o=De(n,e);return{isTTY:o,color:se(n,o),quiet:t,logger:r,terminal:o?Me(e):void 0}}function Me(n){if(n.write===void 0)return;let e=r=>{n.write?.(`${r}
|
|
9
|
+
`)};return{info:e,warn:e,error:e}}var Ve=["0.0.0","PLACEHOLDER"].join("-");function le(n){return n===Ve}var a="@cngx/core",Ge="@angular/cdk";function Ue(n){return n!=="@cngx/utils"}function He(n){return n instanceof Error&&n.constructor.name==="CollectionCannotBeResolvedException"}function _(n){try{n.engine.createCollection(a)}catch(e){let r=He(e)?"it cannot be resolved":V(e);throw new l.SchematicsException(`${a} is installed but its ng-add collection failed to load: ${r}`)}}function Je(n){return E.find(e=>`@cngx/${e}`===n)}function Ye(n,e){let r=Je(e),t=ne({libs:n.libs}).libs;if(t===void 0||r===void 0)return n;let o=new Set([...t,r]);return{...n,libs:E.filter(i=>o.has(i))}}function qe(n){let e=de(process.env,process.stdout,n.logger,!1);return e.terminal??e.logger}function We(n,e,r,t){return n===void 0?`${a} is not installed yet; installing it before its ng-add runs.`:e===void 0?`${a} ${n} is installed with a version cngx cannot read; installing ${t} before its ng-add runs.`:`${a} ${n} is installed, older than ${r} ${t}; installing ${t} before its ng-add runs.`}function I(n,e=__dirname){return(r,t)=>{let o=q(e),i=W(e),s=Ye(n,i),d=qe(t),p=h(r,a),u=p===void 0?void 0:X(p,o);if(le(o)){if(p===void 0)throw new l.SchematicsException(`${i} is an unstamped local build (${o}) and ${a} is not installed; pack the libs with node scripts/pack-libs.mjs and install the tarballs.`);return d.info(`${i} is an unstamped local build (${o}); pinning nothing and following the installed ${a} ${p}.`),_(t),(0,l.externalSchematic)(a,"ng-add",s)}if(u!==void 0&&u>0)return d.info(`${a} ${p} is installed, newer than ${i} ${o}; following the installed core.`),_(t),(0,l.externalSchematic)(a,"ng-add",s);let j=(0,l.chain)([L(a,o,!0),L(i,o,!0)]);return u===0?(_(t),(0,l.chain)([j,(0,l.externalSchematic)(a,"ng-add",s)])):(d.info(We(p,u,i,o)),(0,l.chain)([j,...Ue(i)?[Q(Ge,d)]:[],(Qe,D)=>{let pe=D.addTask(new A.NodePackageInstallTask);D.addTask(new A.RunSchematicTask(a,"ng-add",{...s}),[pe])}]))}}0&&(module.exports={ngAdd});
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "CngxNgAdd",
|
|
4
|
+
"title": "cngx ng-add",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"project": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The project to add cngx to.",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "projectName"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"preset": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "How much of the onboarding to apply. Asked first when a terminal is attached, after the preflight checklist; default recommended.",
|
|
17
|
+
"enum": ["minimal", "recommended", "full"]
|
|
18
|
+
},
|
|
19
|
+
"libs": {
|
|
20
|
+
"description": "The @cngx packages to install, comma-separated (--libs core,forms); their @cngx peers follow. Asked when a terminal is attached, otherwise every package.",
|
|
21
|
+
"oneOf": [
|
|
22
|
+
{ "type": "string" },
|
|
23
|
+
{
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": { "type": "string", "enum": ["utils", "core", "common", "interop", "forms", "data-display", "ui"] },
|
|
26
|
+
"uniqueItems": true
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"theme": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The generated theme file: the cngx default, the Angular Material bridge, or none.",
|
|
33
|
+
"enum": ["cngx", "material", "none"]
|
|
34
|
+
},
|
|
35
|
+
"i18n": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "The built-in copy: English only, or the German pack as well.",
|
|
38
|
+
"enum": ["en", "de"]
|
|
39
|
+
},
|
|
40
|
+
"runtimeSwitch": {
|
|
41
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
42
|
+
"description": "Wire the language pack for switching at runtime instead of a fixed language."
|
|
43
|
+
},
|
|
44
|
+
"lint": {
|
|
45
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
46
|
+
"description": "Add @cngx/eslint-plugin to the eslint flat config when one exists."
|
|
47
|
+
},
|
|
48
|
+
"a11yPreferences": {
|
|
49
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
50
|
+
"description": "Provide the accessibility preference axes (density, text scale, motion, contrast) with persistence."
|
|
51
|
+
},
|
|
52
|
+
"feedback": {
|
|
53
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
54
|
+
"description": "Provide toasts, alerts and banners at the root when @cngx/ui is installed."
|
|
55
|
+
},
|
|
56
|
+
"floatingFallback": {
|
|
57
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
58
|
+
"description": "Install @floating-ui/dom and provide the popover positioning fallback for browsers without CSS anchor positioning."
|
|
59
|
+
},
|
|
60
|
+
"starter": {
|
|
61
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
62
|
+
"description": "Replace the Angular welcome page of an untouched ng new standalone app with a cngx starter page that shows what was installed. Default true for --preset=full, false otherwise; --no-starter keeps the welcome page."
|
|
63
|
+
},
|
|
64
|
+
"aiTools": {
|
|
65
|
+
"description": "The editors to set up the cngx MCP server for, comma-separated (--ai-tools claude,vscode): the server entry in their project MCP config, a marked cngx block in the agent instructions (AGENTS.md, or CLAUDE.md for Claude Code) and .cngx/README.md. Asked when a terminal is attached. --preset=full preselects the detected editors (CLAUDE.md or .claude, .cursorrules or .cursor, .vscode) and sets them up without a terminal too; the other presets preselect none.",
|
|
66
|
+
"oneOf": [
|
|
67
|
+
{ "type": "string" },
|
|
68
|
+
{
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": { "type": "string", "enum": ["claude", "cursor", "vscode"] },
|
|
71
|
+
"uniqueItems": true
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"yes": {
|
|
76
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
77
|
+
"description": "Apply the plan to an existing app without asking for confirmation first."
|
|
78
|
+
},
|
|
79
|
+
"prompts": {
|
|
80
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
81
|
+
"description": "Ask the detection-dependent questions when a terminal is attached. Pass false in CI runs under a pseudo-terminal; flags, the recorded answers of a re-run and the preset defaults answer instead.",
|
|
82
|
+
"default": true
|
|
83
|
+
},
|
|
84
|
+
"quiet": {
|
|
85
|
+
"oneOf": [{ "type": "boolean" }, { "type": "string", "enum": ["true", "false"] }],
|
|
86
|
+
"description": "Print only the summary, not the planned changes.",
|
|
87
|
+
"default": false
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": []
|
|
91
|
+
}
|
package/stepper/README.md
CHANGED
|
@@ -253,7 +253,7 @@ A step can be flagged as in error through two independent channels. Both render
|
|
|
253
253
|
|Channel|How you flag it|Where the message appears|
|
|
254
254
|
|-|-|-|
|
|
255
255
|
|Validation|`[error]="true \| 'message'"` on `cngxStep`, or `[errorAggregator]` for multi-source forms|a row **below the strip** (every classic-style skin) via `*cngxStepError`; folded into the aggregate line on the `text` / `dot` / `progress-bar` mini variants|
|
|
256
|
-
|Commit / async|a `commitAction` that
|
|
256
|
+
|Commit / async|a `commitAction` that refuses (`false`) or fails (throw, rejection, error); only the most recent attempt is shown, the next one replaces it|`*cngxStepRejection` decoration (amber `⊘` refused, red `!` failed); `CngxToastOn` / `CngxBannerOn` transition bridges on a failure only|
|
|
257
257
|
|
|
258
258
|
The message lives on its own row **below** the step strip, not inside a step. That is deliberate: a free-text message inside a horizontal (or column) strip item widens the shrink-to-fit step and tears the row; below the strip it has full width and wraps. The strip itself only ever carries the short state cue.
|
|
259
259
|
|
|
@@ -2,7 +2,6 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { InjectionToken, Signal, TemplateRef, EnvironmentProviders, Provider } from '@angular/core';
|
|
3
3
|
import { AsyncStatus, CngxAsyncState } from '@cngx/core/utils';
|
|
4
4
|
import * as i1 from '@cngx/common/interactive';
|
|
5
|
-
import * as _cngx_ui_accordion from '@cngx/ui/accordion';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* UI-local context a {@link CngxAccordionGroup} exposes so each
|
|
@@ -220,7 +219,15 @@ interface CngxAccordionConfig {
|
|
|
220
219
|
* <example-url>http://localhost:4200/#/ui/accordion/multi-open/independent</example-url>
|
|
221
220
|
* <example-url>http://localhost:4200/#/ui/accordion/controlled-open/initial-open</example-url>
|
|
222
221
|
* <example-url>http://localhost:4200/#/ui/accordion/config/app-wide-labels</example-url>
|
|
222
|
+
* <example-url>http://localhost:4200/#/ui/accordion/skins/bento</example-url>
|
|
223
|
+
* <example-url>http://localhost:4200/#/ui/accordion/skins/categorized</example-url>
|
|
223
224
|
* <example-url>http://localhost:4200/#/ui/accordion/skins/editorial</example-url>
|
|
225
|
+
* <example-url>http://localhost:4200/#/ui/accordion/skins/lux</example-url>
|
|
226
|
+
* <example-url>http://localhost:4200/#/ui/accordion/skins/plus-minus</example-url>
|
|
227
|
+
* <example-url>http://localhost:4200/#/ui/accordion/skins/primary-frame</example-url>
|
|
228
|
+
* <example-url>http://localhost:4200/#/ui/accordion/skins/section-bands</example-url>
|
|
229
|
+
* <example-url>http://localhost:4200/#/ui/accordion/skins/severity-spine</example-url>
|
|
230
|
+
* <example-url>http://localhost:4200/#/ui/accordion/skins/timeline</example-url>
|
|
224
231
|
*/
|
|
225
232
|
declare class CngxAccordionGroup implements CngxAccordionGroupContext {
|
|
226
233
|
private readonly config;
|
|
@@ -450,8 +457,8 @@ declare class CngxAccordionItem {
|
|
|
450
457
|
* consumer wires the fetch; the item only communicates the state it is handed.
|
|
451
458
|
*/
|
|
452
459
|
readonly state: _angular_core.InputSignal<AsyncStatus | CngxAsyncState<unknown> | undefined>;
|
|
460
|
+
protected readonly group: CngxAccordionGroupContext;
|
|
453
461
|
private readonly accordion;
|
|
454
|
-
protected readonly group: _cngx_ui_accordion.CngxAccordionGroupContext;
|
|
455
462
|
protected readonly regionId: string;
|
|
456
463
|
protected readonly headerId: string;
|
|
457
464
|
protected readonly titleId: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Signal, TemplateRef, InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import { CngxBreadcrumbItem } from '@cngx/common/interactive';
|
|
3
|
+
import { CngxBreadcrumbItem, CngxBreadcrumbHost } from '@cngx/common/interactive';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* The breadcrumb section of a {@link CngxLanguagePack}: the accessible names of
|
|
@@ -209,6 +208,18 @@ interface CngxBreadcrumbSibling {
|
|
|
209
208
|
* @slot cngxBreadcrumbItemAccessory Trailing control on a crumb, e.g. a siblings dropdown trigger.
|
|
210
209
|
* @slot cngxBreadcrumbOverflowItem Replaces a row inside the collapsed-crumbs menu.
|
|
211
210
|
* <example-url>http://localhost:4200/#/ui/breadcrumb/basic/explicit-items</example-url>
|
|
211
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/variants</example-url>
|
|
212
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/chips</example-url>
|
|
213
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/editorial</example-url>
|
|
214
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/header</example-url>
|
|
215
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/iconlabel</example-url>
|
|
216
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/icononly</example-url>
|
|
217
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/metro</example-url>
|
|
218
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/path</example-url>
|
|
219
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/record</example-url>
|
|
220
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/ribbon</example-url>
|
|
221
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/shell</example-url>
|
|
222
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/toolbar</example-url>
|
|
212
223
|
*/
|
|
213
224
|
declare class CngxBreadcrumbBar {
|
|
214
225
|
/** Uncontrolled trail. Ignored when a {@link CNGX_BREADCRUMB_ITEMS_SOURCE} is provided. */
|
|
@@ -359,7 +370,7 @@ declare class CngxBreadcrumbOverflowItem {
|
|
|
359
370
|
*/
|
|
360
371
|
declare class CngxBreadcrumbOverflow {
|
|
361
372
|
/** Collapse-set contract, provided by the surrounding `cngxBreadcrumb`. */
|
|
362
|
-
protected readonly breadcrumb:
|
|
373
|
+
protected readonly breadcrumb: CngxBreadcrumbHost;
|
|
363
374
|
private readonly ariaLabels;
|
|
364
375
|
/** Accessible name of the ellipsis trigger. Unbound (`undefined`), it falls back through the config cascade to the EN default. */
|
|
365
376
|
readonly triggerLabel: _angular_core.InputSignal<string | undefined>;
|
|
@@ -140,6 +140,16 @@ type CngxIncrementalListSkin = 'plain' | 'divided' | 'card';
|
|
|
140
140
|
* @slot cngxIncrementalEmpty Rendered when the list resolves to nothing.
|
|
141
141
|
* @slot cngxIncrementalError Rendered when a page fetch fails; gets the error and a retry callback.
|
|
142
142
|
* @slot cngxIncrementalEnd Rendered once after the last page, e.g. an end-of-results marker.
|
|
143
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/load-more-trigger</example-url>
|
|
144
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/infinite-trigger</example-url>
|
|
145
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/virtualized</example-url>
|
|
146
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/custom-loading-slot</example-url>
|
|
147
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/empty</example-url>
|
|
148
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/end-reached</example-url>
|
|
149
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/error-retry</example-url>
|
|
150
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/skins/plain</example-url>
|
|
151
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/skins/divided</example-url>
|
|
152
|
+
* <example-url>http://localhost:4200/#/ui/collection/incremental-list/skins/card</example-url>
|
|
143
153
|
*/
|
|
144
154
|
declare class CngxIncrementalList<T = unknown> {
|
|
145
155
|
/** Visual skin; reflected onto `[data-skin]`. Paint-only. */
|