@cngx/common 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/a11y/README.md +15 -2
- package/button/README.md +258 -0
- package/command/README.md +19 -8
- package/data/README.md +10 -10
- package/fesm2022/cngx-common-a11y.mjs +701 -263
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +83 -64
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-button.mjs +1084 -0
- package/fesm2022/cngx-common-button.mjs.map +1 -0
- package/fesm2022/cngx-common-card.mjs +135 -76
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +749 -296
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +51 -29
- package/fesm2022/cngx-common-command.mjs.map +1 -1
- package/fesm2022/cngx-common-data.mjs +695 -405
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +112 -112
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +668 -308
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +7066 -2739
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +2121 -492
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-menu-button.mjs +557 -0
- package/fesm2022/cngx-common-menu-button.mjs.map +1 -0
- package/fesm2022/cngx-common-popover.mjs +1207 -569
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +256 -261
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +202 -262
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +28 -61
- package/fesm2022/cngx-common-timeline.mjs.map +1 -1
- package/fesm2022/cngx-common.mjs +10 -10
- package/fesm2022/cngx-common.mjs.map +1 -1
- package/interactive/README.md +30 -19
- package/layout/README.md +1 -1
- package/menu-button/README.md +234 -0
- package/package.json +14 -4
- package/popover/README.md +42 -5
- package/popover/tooltip-indicator.scss +52 -0
- package/schematics/ng-add/index.js +7 -7
- package/schematics/ng-add/schema.json +5 -0
- package/stepper/README.md +0 -1
- package/theming/components/cngx-accordion.css +36 -7
- package/theming/components/cngx-async.css +185 -37
- package/theming/components/cngx-backdrop.css +3 -1
- package/theming/components/cngx-badge.css +20 -5
- package/theming/components/cngx-bottom-sheet.css +2 -0
- package/theming/components/cngx-breadcrumb.css +3 -1
- package/theming/components/cngx-button-group.css +325 -0
- package/theming/components/cngx-button-toggle.css +55 -23
- package/theming/components/cngx-button.css +975 -0
- package/theming/components/cngx-data-grid.css +2 -0
- package/theming/components/cngx-dialog.css +3 -1
- package/theming/components/cngx-divider.css +24 -9
- package/theming/components/cngx-drawer.css +153 -0
- package/theming/components/cngx-icon-glyph.css +76 -0
- package/theming/components/cngx-listbox.css +79 -25
- package/theming/components/cngx-menu.css +112 -52
- package/theming/components/cngx-nav.css +1220 -0
- package/theming/components/cngx-popover-sheet.css +43 -11
- package/theming/components/cngx-popover.css +37 -13
- package/theming/components/cngx-recycler-placeholder.css +2 -0
- package/theming/components/cngx-ripple.css +74 -16
- package/theming/components/cngx-sidebar.css +71 -0
- package/theming/components/cngx-slider.css +3 -1
- package/theming/components/cngx-tooltip.css +2 -0
- package/timeline/README.md +2 -2
- package/types/cngx-common-a11y.d.ts +343 -120
- package/types/cngx-common-audio.d.ts +60 -88
- package/types/cngx-common-button.d.ts +698 -0
- package/types/cngx-common-card.d.ts +104 -78
- package/types/cngx-common-chart.d.ts +671 -384
- package/types/cngx-common-command.d.ts +44 -47
- package/types/cngx-common-data.d.ts +350 -342
- package/types/cngx-common-dialog.d.ts +91 -120
- package/types/cngx-common-display.d.ts +475 -300
- package/types/cngx-common-interactive.d.ts +4350 -1723
- package/types/cngx-common-layout.d.ts +1365 -286
- package/types/cngx-common-menu-button.d.ts +382 -0
- package/types/cngx-common-popover.d.ts +671 -289
- package/types/cngx-common-stepper.d.ts +217 -347
- package/types/cngx-common-tabs.d.ts +173 -386
- package/types/cngx-common-timeline.d.ts +25 -104
|
@@ -2,13 +2,12 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { Signal, InjectionToken, Provider, ViewContainerRef, Type, ComponentRef, Injector, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as _cngx_core_utils from '@cngx/core/utils';
|
|
4
4
|
import { CngxAsyncState } from '@cngx/core/utils';
|
|
5
|
+
import { CngxHotkeyScopeNode } from '@cngx/common/interactive';
|
|
5
6
|
import { Observable } from 'rxjs';
|
|
6
7
|
import * as _cngx_common_dialog from '@cngx/common/dialog';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Lifecycle states of a `CngxDialog`.
|
|
10
|
-
*
|
|
11
|
-
* @category common/dialog
|
|
12
11
|
*/
|
|
13
12
|
type DialogState = 'closed' | 'opening' | 'open' | 'closing';
|
|
14
13
|
/**
|
|
@@ -16,8 +15,6 @@ type DialogState = 'closed' | 'opening' | 'open' | 'closing';
|
|
|
16
15
|
*
|
|
17
16
|
* - **Outside** (parent template): access via `exportAs` - `#dlg="cngxDialog"`
|
|
18
17
|
* - **Inside** (dialog content): access via DI - `inject(DIALOG_REF)`
|
|
19
|
-
*
|
|
20
|
-
* @category common/dialog
|
|
21
18
|
*/
|
|
22
19
|
interface DialogRef<T = unknown> {
|
|
23
20
|
/** Current lifecycle state of the dialog. */
|
|
@@ -50,9 +47,8 @@ interface DialogRef<T = unknown> {
|
|
|
50
47
|
/**
|
|
51
48
|
* Injection token to access the nearest `DialogRef` from inside a dialog.
|
|
52
49
|
*
|
|
53
|
-
* @category common/dialog
|
|
54
50
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog-ref.ts
|
|
55
|
-
* @since 0.
|
|
51
|
+
* @since 0.3.0
|
|
56
52
|
*/
|
|
57
53
|
declare const DIALOG_REF: InjectionToken<DialogRef<unknown>>;
|
|
58
54
|
|
|
@@ -63,6 +59,7 @@ declare const DIALOG_REF: InjectionToken<DialogRef<unknown>>;
|
|
|
63
59
|
* `id` feeds the dialog's `aria-labelledby` / `aria-describedby`
|
|
64
60
|
* derivation; `textContent` (title only) is read at announce time so the
|
|
65
61
|
* live region speaks the current DOM text, not a cached first read.
|
|
62
|
+
* @internal
|
|
66
63
|
*/
|
|
67
64
|
interface DialogLabelHandle {
|
|
68
65
|
/** Element id referenced from the dialog host's ARIA attributes. */
|
|
@@ -90,6 +87,7 @@ interface DialogLabelHandle {
|
|
|
90
87
|
* `DestroyRef.onDestroy`.
|
|
91
88
|
*
|
|
92
89
|
* Internal contract - intentionally not exported from `public-api.ts`.
|
|
90
|
+
* @internal
|
|
93
91
|
*/
|
|
94
92
|
interface CngxDialogAriaRegistry {
|
|
95
93
|
/** Register the labelling source for `aria-labelledby` and the open announce. */
|
|
@@ -160,22 +158,21 @@ interface CngxDialogAriaRegistry {
|
|
|
160
158
|
* </dialog>
|
|
161
159
|
* ```
|
|
162
160
|
*
|
|
163
|
-
* @category common/dialog
|
|
164
|
-
* @docsKind primary
|
|
165
161
|
* @wcag AA
|
|
166
162
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog.directive.ts
|
|
167
|
-
* @since 0.
|
|
163
|
+
* @since 0.3.0
|
|
168
164
|
* @relatedTo CngxBottomSheet, CngxDialogOpener, CngxDialogTitle, CngxDialogClose, CngxDialogDraggable
|
|
169
|
-
* <example-url
|
|
170
|
-
* <example-url
|
|
171
|
-
* <example-url
|
|
172
|
-
* <example-url
|
|
173
|
-
* <example-url
|
|
174
|
-
* <example-url
|
|
175
|
-
* <example-url
|
|
176
|
-
* <example-url
|
|
177
|
-
* <example-url
|
|
178
|
-
* <example-url
|
|
165
|
+
* <example-url>/#/common/dialog/alert-dialog</example-url>
|
|
166
|
+
* <example-url>/#/common/dialog/bottom-sheet</example-url>
|
|
167
|
+
* <example-url>/#/common/dialog/cngxdialogopener-programmatic</example-url>
|
|
168
|
+
* <example-url>/#/common/dialog/draggable-dialog</example-url>
|
|
169
|
+
* <example-url>/#/common/dialog/fully-declarative</example-url>
|
|
170
|
+
* <example-url>/#/common/dialog/grid-snap-live-vs-release</example-url>
|
|
171
|
+
* <example-url>/#/common/dialog/nested-dialogs-cngxdialogstack</example-url>
|
|
172
|
+
* <example-url>/#/common/dialog/non-modal-panel</example-url>
|
|
173
|
+
* <example-url>/#/common/dialog/programmatic-control</example-url>
|
|
174
|
+
* <example-url>/#/common/dialog/template-directives</example-url>
|
|
175
|
+
* @axis level organism
|
|
179
176
|
*/
|
|
180
177
|
declare class CngxDialog<T = unknown> implements DialogRef<T>, CngxDialogAriaRegistry {
|
|
181
178
|
private readonly elRef;
|
|
@@ -224,7 +221,7 @@ declare class CngxDialog<T = unknown> implements DialogRef<T>, CngxDialogAriaReg
|
|
|
224
221
|
* Only applies to modal dialogs.
|
|
225
222
|
*
|
|
226
223
|
* - `'first-focusable'` -- focus the first `[autofocus]` element, or the
|
|
227
|
-
* first
|
|
224
|
+
* first element in DOM order matching `CNGX_FOCUSABLE_SELECTOR` (default)
|
|
228
225
|
* - `'none'` -- do not move focus
|
|
229
226
|
* - Any CSS selector string -- focus the first element matching the selector
|
|
230
227
|
*
|
|
@@ -337,6 +334,12 @@ declare class CngxDialog<T = unknown> implements DialogRef<T>, CngxDialogAriaReg
|
|
|
337
334
|
* nor strand a rendered backdrop without its dismissal surface.
|
|
338
335
|
*/
|
|
339
336
|
private readonly openedAsModal;
|
|
337
|
+
/**
|
|
338
|
+
* @internal Hotkey scope of the dialog subtree: modal while opened as a
|
|
339
|
+
* modal, so app bindings outside stay quiet while focus is inside, and
|
|
340
|
+
* inactive while closed, so bindings inside never fire from a hidden dialog.
|
|
341
|
+
*/
|
|
342
|
+
readonly hotkeyScope: CngxHotkeyScopeNode;
|
|
340
343
|
constructor();
|
|
341
344
|
/**
|
|
342
345
|
* Register the labelling source for `aria-labelledby` and the open announce.
|
|
@@ -441,22 +444,20 @@ declare class CngxDialog<T = unknown> implements DialogRef<T>, CngxDialogAriaReg
|
|
|
441
444
|
* </dialog>
|
|
442
445
|
* ```
|
|
443
446
|
*
|
|
444
|
-
* @category common/dialog
|
|
445
|
-
* @docsKind primary
|
|
446
447
|
* @wcag AA
|
|
447
448
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog-title.directive.ts
|
|
448
|
-
* @since 0.
|
|
449
|
+
* @since 0.3.0
|
|
449
450
|
* @relatedTo CngxDialog, CngxDialogDescription, CngxDialogClose
|
|
450
|
-
* <example-url
|
|
451
|
-
* <example-url
|
|
452
|
-
* <example-url
|
|
453
|
-
* <example-url
|
|
454
|
-
* <example-url
|
|
455
|
-
* <example-url
|
|
456
|
-
* <example-url
|
|
457
|
-
* <example-url
|
|
458
|
-
* <example-url
|
|
459
|
-
* <example-url
|
|
451
|
+
* <example-url>/#/common/dialog/alert-dialog</example-url>
|
|
452
|
+
* <example-url>/#/common/dialog/bottom-sheet</example-url>
|
|
453
|
+
* <example-url>/#/common/dialog/cngxdialogopener-programmatic</example-url>
|
|
454
|
+
* <example-url>/#/common/dialog/draggable-dialog</example-url>
|
|
455
|
+
* <example-url>/#/common/dialog/fully-declarative</example-url>
|
|
456
|
+
* <example-url>/#/common/dialog/grid-snap-live-vs-release</example-url>
|
|
457
|
+
* <example-url>/#/common/dialog/nested-dialogs-cngxdialogstack</example-url>
|
|
458
|
+
* <example-url>/#/common/dialog/non-modal-panel</example-url>
|
|
459
|
+
* <example-url>/#/common/dialog/programmatic-control</example-url>
|
|
460
|
+
* <example-url>/#/common/dialog/template-directives</example-url>
|
|
460
461
|
*/
|
|
461
462
|
declare class CngxDialogTitle {
|
|
462
463
|
private readonly elRef;
|
|
@@ -500,22 +501,20 @@ declare class CngxDialogTitle {
|
|
|
500
501
|
* </dialog>
|
|
501
502
|
* ```
|
|
502
503
|
*
|
|
503
|
-
* @category common/dialog
|
|
504
|
-
* @docsKind primary
|
|
505
504
|
* @wcag AA
|
|
506
505
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog-description.directive.ts
|
|
507
|
-
* @since 0.
|
|
506
|
+
* @since 0.3.0
|
|
508
507
|
* @relatedTo CngxDialog, CngxDialogTitle, CngxDialogClose
|
|
509
|
-
* <example-url
|
|
510
|
-
* <example-url
|
|
511
|
-
* <example-url
|
|
512
|
-
* <example-url
|
|
513
|
-
* <example-url
|
|
514
|
-
* <example-url
|
|
515
|
-
* <example-url
|
|
516
|
-
* <example-url
|
|
517
|
-
* <example-url
|
|
518
|
-
* <example-url
|
|
508
|
+
* <example-url>/#/common/dialog/alert-dialog</example-url>
|
|
509
|
+
* <example-url>/#/common/dialog/bottom-sheet</example-url>
|
|
510
|
+
* <example-url>/#/common/dialog/cngxdialogopener-programmatic</example-url>
|
|
511
|
+
* <example-url>/#/common/dialog/draggable-dialog</example-url>
|
|
512
|
+
* <example-url>/#/common/dialog/fully-declarative</example-url>
|
|
513
|
+
* <example-url>/#/common/dialog/grid-snap-live-vs-release</example-url>
|
|
514
|
+
* <example-url>/#/common/dialog/nested-dialogs-cngxdialogstack</example-url>
|
|
515
|
+
* <example-url>/#/common/dialog/non-modal-panel</example-url>
|
|
516
|
+
* <example-url>/#/common/dialog/programmatic-control</example-url>
|
|
517
|
+
* <example-url>/#/common/dialog/template-directives</example-url>
|
|
519
518
|
*/
|
|
520
519
|
declare class CngxDialogDescription {
|
|
521
520
|
private readonly dialogRef;
|
|
@@ -552,22 +551,20 @@ declare class CngxDialogDescription {
|
|
|
552
551
|
* </dialog>
|
|
553
552
|
* ```
|
|
554
553
|
*
|
|
555
|
-
* @category common/dialog
|
|
556
|
-
* @docsKind primary
|
|
557
554
|
* @wcag AA
|
|
558
555
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog-close.directive.ts
|
|
559
|
-
* @since 0.
|
|
556
|
+
* @since 0.3.0
|
|
560
557
|
* @relatedTo CngxDialog, CngxDialogTitle, CngxDialogDescription
|
|
561
|
-
* <example-url
|
|
562
|
-
* <example-url
|
|
563
|
-
* <example-url
|
|
564
|
-
* <example-url
|
|
565
|
-
* <example-url
|
|
566
|
-
* <example-url
|
|
567
|
-
* <example-url
|
|
568
|
-
* <example-url
|
|
569
|
-
* <example-url
|
|
570
|
-
* <example-url
|
|
558
|
+
* <example-url>/#/common/dialog/alert-dialog</example-url>
|
|
559
|
+
* <example-url>/#/common/dialog/bottom-sheet</example-url>
|
|
560
|
+
* <example-url>/#/common/dialog/cngxdialogopener-programmatic</example-url>
|
|
561
|
+
* <example-url>/#/common/dialog/draggable-dialog</example-url>
|
|
562
|
+
* <example-url>/#/common/dialog/fully-declarative</example-url>
|
|
563
|
+
* <example-url>/#/common/dialog/grid-snap-live-vs-release</example-url>
|
|
564
|
+
* <example-url>/#/common/dialog/nested-dialogs-cngxdialogstack</example-url>
|
|
565
|
+
* <example-url>/#/common/dialog/non-modal-panel</example-url>
|
|
566
|
+
* <example-url>/#/common/dialog/programmatic-control</example-url>
|
|
567
|
+
* <example-url>/#/common/dialog/template-directives</example-url>
|
|
571
568
|
*/
|
|
572
569
|
declare class CngxDialogClose {
|
|
573
570
|
private readonly dialogRef;
|
|
@@ -611,20 +608,19 @@ declare class CngxDialogClose {
|
|
|
611
608
|
* its `::backdrop`. Each `CngxDialog` reads `isTopmost` from this service
|
|
612
609
|
* to control `--cngx-dialog-backdrop-opacity`.
|
|
613
610
|
*
|
|
614
|
-
* @category common/dialog
|
|
615
611
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog-stack.ts
|
|
616
|
-
* @since 0.
|
|
612
|
+
* @since 0.3.0
|
|
617
613
|
* @relatedTo CngxDialog, CngxDialogOpener
|
|
618
|
-
* <example-url
|
|
619
|
-
* <example-url
|
|
620
|
-
* <example-url
|
|
621
|
-
* <example-url
|
|
622
|
-
* <example-url
|
|
623
|
-
* <example-url
|
|
624
|
-
* <example-url
|
|
625
|
-
* <example-url
|
|
626
|
-
* <example-url
|
|
627
|
-
* <example-url
|
|
614
|
+
* <example-url>/#/common/dialog/alert-dialog</example-url>
|
|
615
|
+
* <example-url>/#/common/dialog/bottom-sheet</example-url>
|
|
616
|
+
* <example-url>/#/common/dialog/cngxdialogopener-programmatic</example-url>
|
|
617
|
+
* <example-url>/#/common/dialog/draggable-dialog</example-url>
|
|
618
|
+
* <example-url>/#/common/dialog/fully-declarative</example-url>
|
|
619
|
+
* <example-url>/#/common/dialog/grid-snap-live-vs-release</example-url>
|
|
620
|
+
* <example-url>/#/common/dialog/nested-dialogs-cngxdialogstack</example-url>
|
|
621
|
+
* <example-url>/#/common/dialog/non-modal-panel</example-url>
|
|
622
|
+
* <example-url>/#/common/dialog/programmatic-control</example-url>
|
|
623
|
+
* <example-url>/#/common/dialog/template-directives</example-url>
|
|
628
624
|
*/
|
|
629
625
|
declare class CngxDialogStack {
|
|
630
626
|
private readonly stackState;
|
|
@@ -652,17 +648,14 @@ declare class CngxDialogStack {
|
|
|
652
648
|
* })
|
|
653
649
|
* export class NestedDialogHost { }
|
|
654
650
|
* ```
|
|
655
|
-
*
|
|
656
|
-
* @category common/dialog
|
|
657
651
|
*/
|
|
658
652
|
declare function provideDialogStack(): Provider;
|
|
659
653
|
|
|
660
654
|
/**
|
|
661
655
|
* Injection token for data passed to a programmatically opened dialog via `CngxDialogOpener.open()`.
|
|
662
656
|
*
|
|
663
|
-
* @category common/dialog
|
|
664
657
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog-config.ts
|
|
665
|
-
* @since 0.
|
|
658
|
+
* @since 0.3.0
|
|
666
659
|
*/
|
|
667
660
|
declare const CNGX_DIALOG_DATA: InjectionToken<unknown>;
|
|
668
661
|
/**
|
|
@@ -671,8 +664,6 @@ declare const CNGX_DIALOG_DATA: InjectionToken<unknown>;
|
|
|
671
664
|
* Mirrors the declarative `CngxDialog` input surface - everything a
|
|
672
665
|
* template-driven dialog can bind is also reachable through
|
|
673
666
|
* `CngxDialogOpener.open()`.
|
|
674
|
-
*
|
|
675
|
-
* @category common/dialog
|
|
676
667
|
*/
|
|
677
668
|
interface CngxDialogConfig<D = unknown, T = unknown> {
|
|
678
669
|
/** Data to inject via `CNGX_DIALOG_DATA` inside the dialog component. */
|
|
@@ -711,8 +702,7 @@ interface CngxDialogConfig<D = unknown, T = unknown> {
|
|
|
711
702
|
* the dialog family renders on its own behalf. {@link CngxDialogLabels} is
|
|
712
703
|
* this shape; it feeds the `labels` of `CNGX_DIALOG_DEFAULTS`.
|
|
713
704
|
*
|
|
714
|
-
* @
|
|
715
|
-
* @since 0.1.0
|
|
705
|
+
* @since 0.3.0
|
|
716
706
|
* @relatedTo CNGX_DIALOG_DEFAULTS
|
|
717
707
|
*/
|
|
718
708
|
interface CngxDialogLanguageSection {
|
|
@@ -731,8 +721,7 @@ interface CngxDialogLanguageSection {
|
|
|
731
721
|
* The English dialog section: the single source of the dialog family's
|
|
732
722
|
* English copy. The `CNGX_DIALOG_DEFAULTS` labels default to it.
|
|
733
723
|
*
|
|
734
|
-
* @
|
|
735
|
-
* @since 0.1.0
|
|
724
|
+
* @since 0.3.0
|
|
736
725
|
* @relatedTo CNGX_DIALOG_DEFAULTS
|
|
737
726
|
*/
|
|
738
727
|
declare const CNGX_DIALOG_LANGUAGE_EN: CngxDialogLanguageSection;
|
|
@@ -750,8 +739,6 @@ declare module '@cngx/core/i18n' {
|
|
|
750
739
|
* drag handle is labelled imperatively because the directive may promote any
|
|
751
740
|
* element to a handle. The same shape as the dialog section of a language
|
|
752
741
|
* pack, declared once as {@link CngxDialogLanguageSection}.
|
|
753
|
-
*
|
|
754
|
-
* @category common/dialog/config
|
|
755
742
|
*/
|
|
756
743
|
type CngxDialogLabels = CngxDialogLanguageSection;
|
|
757
744
|
/**
|
|
@@ -772,9 +759,8 @@ type CngxDialogLabels = CngxDialogLanguageSection;
|
|
|
772
759
|
* defaults are deliberately absent - no consumer has asked for them, and a key
|
|
773
760
|
* with no caller is configuration for its own sake.
|
|
774
761
|
*
|
|
775
|
-
* @category common/dialog/config
|
|
776
762
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/config/dialog-config.ts
|
|
777
|
-
* @since 0.
|
|
763
|
+
* @since 0.3.0
|
|
778
764
|
*/
|
|
779
765
|
interface CngxDialogDefaults {
|
|
780
766
|
readonly labels: CngxDialogLabels | Signal<CngxDialogLabels>;
|
|
@@ -785,18 +771,15 @@ interface CngxDialogDefaults {
|
|
|
785
771
|
* defaults, so a consumer who provides nothing keeps today's behaviour
|
|
786
772
|
* exactly.
|
|
787
773
|
*
|
|
788
|
-
* @category common/dialog/config
|
|
789
774
|
* @wcag AA
|
|
790
775
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/config/dialog-config.ts
|
|
791
|
-
* @since 0.
|
|
776
|
+
* @since 0.3.0
|
|
792
777
|
* @relatedTo CngxDialog, CngxDialogClose, CngxDialogDraggable
|
|
793
778
|
*/
|
|
794
779
|
declare const CNGX_DIALOG_DEFAULTS: InjectionToken<CngxDialogDefaults>;
|
|
795
780
|
/**
|
|
796
781
|
* Feature returned by a `with*` function - merged by
|
|
797
782
|
* {@link provideDialogConfig}.
|
|
798
|
-
*
|
|
799
|
-
* @category common/dialog/config
|
|
800
783
|
*/
|
|
801
784
|
interface CngxDialogConfigFeature {
|
|
802
785
|
/** @internal */
|
|
@@ -817,36 +800,32 @@ interface CngxDialogConfigFeature {
|
|
|
817
800
|
* });
|
|
818
801
|
* ```
|
|
819
802
|
*
|
|
820
|
-
* @category common/dialog/config
|
|
821
803
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/config/dialog-config.ts
|
|
822
|
-
* @since 0.
|
|
804
|
+
* @since 0.3.0
|
|
823
805
|
*/
|
|
824
806
|
declare function withDialogLabels(overrides: Partial<CngxDialogLabels> | Signal<Partial<CngxDialogLabels>>): CngxDialogConfigFeature;
|
|
825
807
|
/**
|
|
826
808
|
* Register app-wide dialog defaults composed from `with*` features, applied
|
|
827
809
|
* on top of the active language pack.
|
|
828
810
|
*
|
|
829
|
-
* @category common/dialog/config
|
|
830
811
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/config/dialog-config.ts
|
|
831
|
-
* @since 0.
|
|
812
|
+
* @since 0.3.0
|
|
832
813
|
*/
|
|
833
814
|
declare function provideDialogConfig(...features: CngxDialogConfigFeature[]): Provider[];
|
|
834
815
|
/**
|
|
835
816
|
* Sub-tree variant - use in `viewProviders` so the defaults only apply to
|
|
836
817
|
* dialogs opened from descendants of this component.
|
|
837
818
|
*
|
|
838
|
-
* @category common/dialog/config
|
|
839
819
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/config/dialog-config.ts
|
|
840
|
-
* @since 0.
|
|
820
|
+
* @since 0.3.0
|
|
841
821
|
*/
|
|
842
822
|
declare function provideDialogConfigAt(...features: CngxDialogConfigFeature[]): Provider[];
|
|
843
823
|
/**
|
|
844
824
|
* Inject the currently-resolved dialog defaults. Safe in any injection
|
|
845
825
|
* context; falls back to the English bundle when nothing is provided.
|
|
846
826
|
*
|
|
847
|
-
* @category common/dialog/config
|
|
848
827
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/config/dialog-config.ts
|
|
849
|
-
* @since 0.
|
|
828
|
+
* @since 0.3.0
|
|
850
829
|
*/
|
|
851
830
|
declare function injectDialogConfig(): CngxDialogDefaults;
|
|
852
831
|
|
|
@@ -896,9 +875,8 @@ declare class CngxDialogOutlet {
|
|
|
896
875
|
* });
|
|
897
876
|
* ```
|
|
898
877
|
*
|
|
899
|
-
* @category common/dialog
|
|
900
878
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog.service.ts
|
|
901
|
-
* @since 0.
|
|
879
|
+
* @since 0.3.0
|
|
902
880
|
* @relatedTo CngxDialogOpener, CngxDialog, CNGX_DIALOG_DATA
|
|
903
881
|
*/
|
|
904
882
|
declare class CngxDialogRef<T = unknown> {
|
|
@@ -997,10 +975,8 @@ declare class CngxDialogRef<T = unknown> {
|
|
|
997
975
|
* }
|
|
998
976
|
* ```
|
|
999
977
|
*
|
|
1000
|
-
* @category common/dialog
|
|
1001
|
-
* @docsKind primary
|
|
1002
978
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/dialog/dialog.service.ts
|
|
1003
|
-
* @since 0.
|
|
979
|
+
* @since 0.3.0
|
|
1004
980
|
* @relatedTo CngxDialog, CngxDialogRef, CNGX_DIALOG_DATA, CngxDialogStack
|
|
1005
981
|
*/
|
|
1006
982
|
declare class CngxDialogOpener {
|
|
@@ -1055,8 +1031,6 @@ declare class CngxDialogOpener {
|
|
|
1055
1031
|
* providers: [provideDialog()],
|
|
1056
1032
|
* });
|
|
1057
1033
|
* ```
|
|
1058
|
-
*
|
|
1059
|
-
* @category common/dialog
|
|
1060
1034
|
*/
|
|
1061
1035
|
declare function provideDialog(): Provider[];
|
|
1062
1036
|
|
|
@@ -1088,12 +1062,11 @@ declare function provideDialog(): Provider[];
|
|
|
1088
1062
|
* </dialog>
|
|
1089
1063
|
* ```
|
|
1090
1064
|
*
|
|
1091
|
-
* @category common/dialog
|
|
1092
|
-
* @docsKind primary
|
|
1093
1065
|
* @wcag AA
|
|
1094
1066
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/bottom-sheet/bottom-sheet.directive.ts
|
|
1095
|
-
* @since 0.
|
|
1067
|
+
* @since 0.3.0
|
|
1096
1068
|
* @relatedTo CngxDialog, CngxSwipeDismiss, CngxDialogClose
|
|
1069
|
+
* @axis level organism
|
|
1097
1070
|
*/
|
|
1098
1071
|
declare class CngxBottomSheet {
|
|
1099
1072
|
private readonly dialogRef;
|
|
@@ -1143,22 +1116,20 @@ declare class CngxBottomSheet {
|
|
|
1143
1116
|
* }
|
|
1144
1117
|
* ```
|
|
1145
1118
|
*
|
|
1146
|
-
* @category common/dialog
|
|
1147
|
-
* @docsKind primary
|
|
1148
1119
|
* @wcag AA
|
|
1149
1120
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/dialog/draggable/dialog-draggable.directive.ts
|
|
1150
|
-
* @since 0.
|
|
1121
|
+
* @since 0.3.0
|
|
1151
1122
|
* @relatedTo CngxDialog, CngxBottomSheet
|
|
1152
|
-
* <example-url
|
|
1153
|
-
* <example-url
|
|
1154
|
-
* <example-url
|
|
1155
|
-
* <example-url
|
|
1156
|
-
* <example-url
|
|
1157
|
-
* <example-url
|
|
1158
|
-
* <example-url
|
|
1159
|
-
* <example-url
|
|
1160
|
-
* <example-url
|
|
1161
|
-
* <example-url
|
|
1123
|
+
* <example-url>/#/common/dialog/alert-dialog</example-url>
|
|
1124
|
+
* <example-url>/#/common/dialog/bottom-sheet</example-url>
|
|
1125
|
+
* <example-url>/#/common/dialog/cngxdialogopener-programmatic</example-url>
|
|
1126
|
+
* <example-url>/#/common/dialog/draggable-dialog</example-url>
|
|
1127
|
+
* <example-url>/#/common/dialog/fully-declarative</example-url>
|
|
1128
|
+
* <example-url>/#/common/dialog/grid-snap-live-vs-release</example-url>
|
|
1129
|
+
* <example-url>/#/common/dialog/nested-dialogs-cngxdialogstack</example-url>
|
|
1130
|
+
* <example-url>/#/common/dialog/non-modal-panel</example-url>
|
|
1131
|
+
* <example-url>/#/common/dialog/programmatic-control</example-url>
|
|
1132
|
+
* <example-url>/#/common/dialog/template-directives</example-url>
|
|
1162
1133
|
*/
|
|
1163
1134
|
declare class CngxDialogDraggable {
|
|
1164
1135
|
private readonly elRef;
|