@cngx/ui 0.1.0-rc.3 → 0.1.0-rc.4

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.
Files changed (37) hide show
  1. package/accordion/README.md +86 -0
  2. package/collection/README.md +167 -0
  3. package/data-grid-accordion/README.md +137 -0
  4. package/fesm2022/cngx-ui-accordion.mjs +853 -0
  5. package/fesm2022/cngx-ui-accordion.mjs.map +1 -0
  6. package/fesm2022/cngx-ui-action-button.mjs +2 -2
  7. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  8. package/fesm2022/cngx-ui-breadcrumb.mjs +1044 -0
  9. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -0
  10. package/fesm2022/cngx-ui-collection.mjs +645 -0
  11. package/fesm2022/cngx-ui-collection.mjs.map +1 -0
  12. package/fesm2022/cngx-ui-data-grid-accordion.mjs +1135 -0
  13. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -0
  14. package/fesm2022/cngx-ui-empty-state.mjs +2 -2
  15. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  16. package/fesm2022/cngx-ui-feedback.mjs +10 -10
  17. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-mat-accordion.mjs +229 -0
  19. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-paginator.mjs +324 -255
  21. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  22. package/fesm2022/cngx-ui-sidenav.mjs +547 -65
  23. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  24. package/fesm2022/cngx-ui-tabs.mjs +6 -6
  25. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  26. package/fesm2022/cngx-ui.mjs +1 -1
  27. package/mat-accordion/README.md +48 -0
  28. package/package.json +21 -1
  29. package/paginator/README.md +9 -6
  30. package/sidenav/README.md +89 -3
  31. package/types/cngx-ui-accordion.d.ts +801 -0
  32. package/types/cngx-ui-breadcrumb.d.ts +890 -0
  33. package/types/cngx-ui-collection.d.ts +396 -0
  34. package/types/cngx-ui-data-grid-accordion.d.ts +912 -0
  35. package/types/cngx-ui-mat-accordion.d.ts +63 -0
  36. package/types/cngx-ui-paginator.d.ts +258 -146
  37. package/types/cngx-ui-sidenav.d.ts +429 -21
@@ -0,0 +1,63 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as i1 from '@cngx/common/interactive';
3
+
4
+ /**
5
+ * The Material twin of the cngx accordion: attach `cngxMatAccordion` to
6
+ * a vanilla `<mat-accordion>` and it is driven by the headless
7
+ * {@link CngxAccordion} brain. Consumers gain the controlled
8
+ * `[(openIds)]` group model and single-open arbitration on Material
9
+ * markup — neither of which `<mat-accordion>` exposes (Material has only
10
+ * per-panel `[expanded]`). Mirrors `[cngxMatStepper]` / `[cngxMatTabs]`.
11
+ *
12
+ * This is the instrumentation pattern: Material owns rendering and the
13
+ * consumer authors native `<mat-expansion-panel>` markup; cngx is the
14
+ * behaviour layer. `[multi]` and the two-way `[(openIds)]` are forwarded
15
+ * from {@link CngxAccordion} via `hostDirectives`.
16
+ *
17
+ * ```html
18
+ * <mat-accordion cngxMatAccordion [(openIds)]="openIds" [multi]="false">
19
+ * <mat-expansion-panel>
20
+ * <mat-expansion-panel-header>Personal info</mat-expansion-panel-header>
21
+ * <p>Tell us who you are.</p>
22
+ * </mat-expansion-panel>
23
+ * <mat-expansion-panel>
24
+ * <mat-expansion-panel-header>Account</mat-expansion-panel-header>
25
+ * <p>Choose your sign-in method.</p>
26
+ * </mat-expansion-panel>
27
+ * </mat-accordion>
28
+ * ```
29
+ *
30
+ * `multi` is authoritative on the cngx side. `MatAccordion` inherits its
31
+ * own `multi` input from `CdkAccordion`, and both directives sit on the
32
+ * same host element, so a single `[multi]` binding feeds both — the
33
+ * directive therefore pins `matAccordion.multi = true` (via an `effect`
34
+ * that re-asserts on every `multi` change) so Material never runs its own
35
+ * single-open close while the cngx `effectiveOpenIds` clamp arbitrates.
36
+ *
37
+ * @playground Controlled open-set ./examples/bridge/bridge-example.component.ts
38
+ * @category ui/mat-accordion
39
+ * @docsKind primary
40
+ * @wcag AA
41
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-accordion/mat-accordion.directive.ts
42
+ * @since 0.1.0
43
+ * @relatedTo CngxAccordion, CngxAccordionItem, CngxMatStepper, CngxMatTabs
44
+ */
45
+ declare class CngxMatAccordion {
46
+ private readonly matAccordion;
47
+ /**
48
+ * The accordion brain on this host element (declared in
49
+ * `hostDirectives`). Same-host ownership — not a child→parent inject —
50
+ * so it stays decompose-safe.
51
+ */
52
+ private readonly accordion;
53
+ private readonly injector;
54
+ private readonly destroyRef;
55
+ private readonly panels;
56
+ private readonly idByPanel;
57
+ constructor();
58
+ private panelId;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxMatAccordion, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxMatAccordion, "[cngxMatAccordion]", ["cngxMatAccordion"], {}, {}, ["panels"], never, true, [{ directive: typeof i1.CngxAccordion; inputs: { "multi": "multi"; "openIds": "openIds"; }; outputs: { "openIdsChange": "openIdsChange"; }; }]>;
61
+ }
62
+
63
+ export { CngxMatAccordion };