@tekus/design-system 5.36.0 → 5.37.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.
@@ -0,0 +1,62 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+ import { TreeNode } from 'primeng/api';
4
+
5
+ interface TkTreeNode<T = unknown> {
6
+ id: string | number;
7
+ label: string;
8
+ icon?: string;
9
+ iconStyle?: 'light' | 'regular' | 'solid';
10
+ expanded?: boolean;
11
+ children?: TkTreeNode<T>[];
12
+ data?: T;
13
+ }
14
+
15
+ declare class TreeTableComponent {
16
+ /**
17
+ * Hierarchical list of tree nodes to render.
18
+ */
19
+ data: _angular_core.InputSignal<TkTreeNode<unknown>[]>;
20
+ /**
21
+ * Custom template slot to render the icon on the left of each node label.
22
+ * Usage: `<ng-template #iconTemplate let-node>...</ng-template>`
23
+ */
24
+ readonly iconTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
25
+ /**
26
+ * Custom template slot to render center information/indicators.
27
+ * Usage: `<ng-template #centerTemplate let-node>...</ng-template>`
28
+ */
29
+ readonly centerTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
30
+ /**
31
+ * Custom template slot to render additional actions/content on the right of the row.
32
+ * Usage: `<ng-template #rightTemplate let-node>...</ng-template>`
33
+ */
34
+ readonly rightTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
35
+ /**
36
+ * Internal representation of the tree nodes mapped to PrimeNG's format.
37
+ */
38
+ readonly primeNodes: _angular_core.WritableSignal<TreeNode<any>[]>;
39
+ constructor();
40
+ private mapToPrimeNodes;
41
+ /**
42
+ * API Method: Recursively expands all nodes.
43
+ */
44
+ expandAll(): void;
45
+ /**
46
+ * API Method: Recursively collapses all nodes.
47
+ */
48
+ collapseAll(): void;
49
+ private toggleAllNodes;
50
+ /**
51
+ * Toggles the expansion state of a specific node.
52
+ */
53
+ toggleNode(rowNode: {
54
+ node: TreeNode;
55
+ level?: number;
56
+ }): void;
57
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeTableComponent, never>;
58
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeTableComponent, "tk-tree-table", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, ["iconTemplate", "centerTemplate", "rightTemplate"], never, true, never>;
59
+ }
60
+
61
+ export { TreeTableComponent };
62
+ export type { TkTreeNode };
@@ -77,15 +77,15 @@ type ThemeLogo = 'dark' | 'light';
77
77
  type VariantLogo = 'minimal' | 'normal' | 'compound';
78
78
 
79
79
  declare enum GapGutter {
80
- normal = "24px",
81
- small = "16px",
82
- large = "32px",
83
- extraLarge = "40px"
80
+ normal = "var(--tk-spacing-gap-l, 1.5rem)",
81
+ small = "var(--tk-spacing-gap-m, 1rem)",
82
+ large = "var(--tk-spacing-base-200, 2rem)",
83
+ extraLarge = "var(--tk-spacing-gap-xl, 2.5rem)"
84
84
  }
85
85
  declare enum PaddingGridContainer {
86
- large = "32px",
87
- medium = "24px",
88
- small = "16px"
86
+ large = "var(--tk-spacing-base-200, 2rem)",
87
+ medium = "var(--tk-spacing-padding-xl, 1.5rem)",
88
+ small = "var(--tk-spacing-padding-m, 1rem)"
89
89
  }
90
90
  declare enum Gutter {
91
91
  normal = "normal",
@@ -77,15 +77,15 @@ type ThemeLogo = 'dark' | 'light';
77
77
  type VariantLogo = 'minimal' | 'normal' | 'compound';
78
78
 
79
79
  declare enum GapGutter {
80
- normal = "24px",
81
- small = "16px",
82
- large = "32px",
83
- extraLarge = "40px"
80
+ normal = "var(--tk-spacing-gap-l, 1.5rem)",
81
+ small = "var(--tk-spacing-gap-m, 1rem)",
82
+ large = "var(--tk-spacing-base-200, 2rem)",
83
+ extraLarge = "var(--tk-spacing-gap-xl, 2.5rem)"
84
84
  }
85
85
  declare enum PaddingGridContainer {
86
- large = "32px",
87
- medium = "24px",
88
- small = "16px"
86
+ large = "var(--tk-spacing-base-200, 2rem)",
87
+ medium = "var(--tk-spacing-padding-xl, 1.5rem)",
88
+ small = "var(--tk-spacing-padding-m, 1rem)"
89
89
  }
90
90
  declare enum Gutter {
91
91
  normal = "normal",
@@ -7,7 +7,7 @@ import * as _angular_core from '@angular/core';
7
7
  *
8
8
  * Uses Angular CDK's `BreakpointObserver` to dynamically adjust the column's `span`
9
9
  * based on screen size, ensuring a responsive experience.
10
- * For best results use a [grid component as a parent container](?path=/docs/components-grids-grids-container--docs)
10
+ * For best results use a [grid component as a parent container](?path=/docs/components-gridcontainer--docs)
11
11
  * @selector [tkGridItem]
12
12
  */
13
13
  declare class GridItemDirective {