@cngx/ui 0.0.1-rc.0 → 0.1.0-rc.1
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 +22 -48
- package/action-button/README.md +9 -11
- package/empty-state/README.md +11 -26
- package/feedback/README.md +3 -3
- package/fesm2022/cngx-ui-action-button.mjs +30 -26
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +26 -21
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +498 -261
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +32 -5
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +119 -297
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +455 -120
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-material.mjs +14 -3
- package/fesm2022/cngx-ui-material.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +22 -3
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +107 -28
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +61 -20
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +14 -5
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +659 -163
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +306 -55
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +2 -1
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/layout/README.md +9 -44
- package/mat-stepper/README.md +37 -17
- package/mat-tabs/README.md +13 -13
- package/mat-tabs/styles/mat-tabs.css +357 -213
- package/material/README.md +19 -19
- package/overlay/README.md +11 -11
- package/package.json +7 -6
- package/sidenav/README.md +4 -19
- package/skeleton/README.md +3 -17
- package/speak/README.md +15 -15
- package/stepper/README.md +213 -5
- package/tabs/README.md +22 -4
- package/theming/system-tokens.css +29 -0
- package/types/cngx-ui-action-button.d.ts +28 -13
- package/types/cngx-ui-empty-state.d.ts +21 -9
- package/types/cngx-ui-feedback.d.ts +437 -121
- package/types/cngx-ui-layout.d.ts +38 -8
- package/types/cngx-ui-mat-stepper.d.ts +100 -134
- package/types/cngx-ui-mat-tabs.d.ts +291 -84
- package/types/cngx-ui-material.d.ts +12 -1
- package/types/cngx-ui-overlay.d.ts +25 -4
- package/types/cngx-ui-sidenav.d.ts +106 -12
- package/types/cngx-ui-skeleton.d.ts +62 -8
- package/types/cngx-ui-speak.d.ts +10 -2
- package/types/cngx-ui-stepper.d.ts +390 -57
- package/types/cngx-ui-tabs.d.ts +182 -18
- package/types/cngx-ui.d.ts +1 -0
- package/speak/speak-button-theme.scss +0 -78
|
@@ -2,15 +2,15 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { CngxAsyncState } from '@cngx/core/utils';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Empty-state display
|
|
5
|
+
* Empty-state display organism for grids, tables, lists, and dashboards.
|
|
6
6
|
*
|
|
7
7
|
* Communicates why a view is empty and what the user can do next.
|
|
8
8
|
* Supports three UX contexts via the parent's `emptyReason`:
|
|
9
|
-
* - **first-use**
|
|
10
|
-
* - **no-results**
|
|
11
|
-
* - **cleared**
|
|
9
|
+
* - **first-use** - onboarding, show what's possible
|
|
10
|
+
* - **no-results** - recovery, offer filter reset or search change
|
|
11
|
+
* - **cleared** - confirmation, everything is done
|
|
12
12
|
*
|
|
13
|
-
* Icon is provided via the `[cngxEmptyStateIcon]` content slot
|
|
13
|
+
* Icon is provided via the `[cngxEmptyStateIcon]` content slot - no Material
|
|
14
14
|
* dependency. Consumers project `<mat-icon>`, `<svg>`, or any icon system.
|
|
15
15
|
*
|
|
16
16
|
* ```html
|
|
@@ -19,16 +19,28 @@ import { CngxAsyncState } from '@cngx/core/utils';
|
|
|
19
19
|
* <button cngxEmptyStateAction (click)="resetSearch()">Reset</button>
|
|
20
20
|
* </cngx-empty-state>
|
|
21
21
|
* ```
|
|
22
|
+
*
|
|
23
|
+
* @category ui/empty-state
|
|
24
|
+
* @docsKind primary
|
|
25
|
+
* @wcag AA
|
|
26
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/empty-state/empty-state.component.ts
|
|
27
|
+
* @since 0.1.0
|
|
28
|
+
* @relatedTo CngxAsyncState, CngxSkeletonContainer
|
|
29
|
+
* <example-url>http://localhost:4200/#/ui/empty-state/default-no-icon-projected</example-url>
|
|
30
|
+
* <example-url>http://localhost:4200/#/ui/empty-state/inside-a-card-grid</example-url>
|
|
31
|
+
* <example-url>http://localhost:4200/#/ui/empty-state/inside-a-list</example-url>
|
|
32
|
+
* <example-url>http://localhost:4200/#/ui/empty-state/inside-a-table</example-url>
|
|
33
|
+
* <example-url>http://localhost:4200/#/ui/empty-state/with-custom-icon-actions</example-url>
|
|
22
34
|
*/
|
|
23
35
|
declare class CngxEmptyState {
|
|
24
36
|
private readonly uid;
|
|
25
|
-
/** Primary message
|
|
37
|
+
/** Primary message - what state the user is in. */
|
|
26
38
|
readonly title: _angular_core.InputSignal<string>;
|
|
27
|
-
/** Supporting detail
|
|
39
|
+
/** Supporting detail - clarifies context and suggests next steps. */
|
|
28
40
|
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
29
|
-
/** Bind an async state
|
|
41
|
+
/** Bind an async state - auto-hides when data is not empty. */
|
|
30
42
|
readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
|
|
31
|
-
/** @internal
|
|
43
|
+
/** @internal - hidden when state is bound and data is not empty or still loading. */
|
|
32
44
|
protected readonly shouldHide: _angular_core.Signal<boolean>;
|
|
33
45
|
/** @internal */
|
|
34
46
|
protected readonly titleId: string;
|