@assistanz/carbideui 1.2.0 → 1.2.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/index.d.ts
ADDED
|
@@ -0,0 +1,2897 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnChanges, SimpleChanges, EventEmitter, AfterViewInit, InjectionToken, ElementRef, AfterContentInit, QueryList, OnDestroy, TemplateRef, OnInit, Renderer2, ChangeDetectorRef, PipeTransform, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
4
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
5
|
+
import { Chart, BarChartOptions, StackedBarChartOptions, LineChartOptions, AreaChartOptions, PieChartOptions, DonutChartOptions, GaugeChartOptions } from '@carbon/charts';
|
|
6
|
+
import * as _assistanz_carbideui from '@assistanz/carbideui';
|
|
7
|
+
|
|
8
|
+
declare const ICONS: {
|
|
9
|
+
readonly add: {
|
|
10
|
+
readonly svg: "<path d=\"M17 15V7h-2v8H7v2h8v8h2v-8h8v-2h-8z\"></path>";
|
|
11
|
+
readonly viewBox: "0 0 32 32";
|
|
12
|
+
};
|
|
13
|
+
readonly close: {
|
|
14
|
+
readonly svg: "<path d=\"M17.4141 16L24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z\"></path>";
|
|
15
|
+
readonly viewBox: "0 0 32 32";
|
|
16
|
+
};
|
|
17
|
+
readonly edit: {
|
|
18
|
+
readonly svg: "<path d=\"M4 26h24v2H4zM27.7 9.3l-5-5a1 1 0 0 0-1.4 0l-14 14V24h5.7l14-14a1 1 0 0 0 0-1.4z\"></path>";
|
|
19
|
+
readonly viewBox: "0 0 32 32";
|
|
20
|
+
};
|
|
21
|
+
readonly view: {
|
|
22
|
+
readonly svg: "<path d=\"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z\"></path><path d=\"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z\"></path>";
|
|
23
|
+
readonly viewBox: "0 0 16 16";
|
|
24
|
+
};
|
|
25
|
+
readonly hide: {
|
|
26
|
+
readonly svg: "<path d=\"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z\"></path><path d=\"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z\"></path>";
|
|
27
|
+
readonly viewBox: "0 0 16 16";
|
|
28
|
+
};
|
|
29
|
+
readonly delete: {
|
|
30
|
+
readonly svg: "<path d=\"M12 12H14V24H12zM18 12H20V24H18z\"></path><path d=\"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z\"></path>";
|
|
31
|
+
readonly viewBox: "0 0 32 32";
|
|
32
|
+
};
|
|
33
|
+
readonly warn: {
|
|
34
|
+
readonly svg: "<path fill=\"none\" d=\"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z\" data-icon-path=\"inner-path\"></path><path d=\"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z\"></path><path d=\"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z\"></path>";
|
|
35
|
+
readonly viewBox: "0 0 32 32";
|
|
36
|
+
};
|
|
37
|
+
readonly error: {
|
|
38
|
+
readonly svg: "<path d=\"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z\"></path><path d=\"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z\" data-icon-path=\"inner-path\" opacity=\"0\"></path>";
|
|
39
|
+
readonly viewBox: "0 0 16 16";
|
|
40
|
+
};
|
|
41
|
+
readonly calendar: {
|
|
42
|
+
readonly svg: "<path d=\"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z\"></path>";
|
|
43
|
+
readonly viewBox: "0 0 32 32";
|
|
44
|
+
};
|
|
45
|
+
readonly copy: {
|
|
46
|
+
readonly svg: "<path d=\"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z\"></path><path d=\"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z\"></path>";
|
|
47
|
+
readonly viewBox: "0 0 32 32";
|
|
48
|
+
};
|
|
49
|
+
readonly chevron_left: {
|
|
50
|
+
readonly svg: "<polygon points=\"5,8 10,3 10.7,3.7 6.4,8 10.7,12.3 10,13 \"></polygon>\n\t\t\t\t<rect width=\"16\" height=\"16\" style=\"fill:none\"></rect>";
|
|
51
|
+
readonly viewBox: "0 0 16 16";
|
|
52
|
+
};
|
|
53
|
+
readonly chevron_right: {
|
|
54
|
+
readonly svg: "<polygon points=\"11,8 6,13 5.3,12.3 9.6,8 5.3,3.7 6,3 \" ></polygon>\n\t\t\t\t<rect width=\"16\" height=\"16\" style=\"fill:none\"></rect>";
|
|
55
|
+
readonly viewBox: "0 0 16 16";
|
|
56
|
+
};
|
|
57
|
+
readonly chevron_down: {
|
|
58
|
+
readonly svg: "<polygon points=\"8,11 3,6 3.7,5.3 8,9.6 12.3,5.3 13,6\"></polygon>\n <rect width=\"16\" height=\"16\" style=\"fill:none\"></rect>";
|
|
59
|
+
readonly viewBox: "0 0 16 16";
|
|
60
|
+
};
|
|
61
|
+
readonly chevron_up: {
|
|
62
|
+
readonly svg: "<polygon points=\"8,5 13,10 12.3,10.7 8,6.4 3.7,10.7 3,10\"></polygon>\n <rect width=\"16\" height=\"16\" style=\"fill:none\"></rect>";
|
|
63
|
+
readonly viewBox: "0 0 16 16";
|
|
64
|
+
};
|
|
65
|
+
readonly checkmark: {
|
|
66
|
+
readonly svg: "<path d=\"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z\"></path>";
|
|
67
|
+
readonly viewBox: "0 0 32 32";
|
|
68
|
+
};
|
|
69
|
+
readonly search: {
|
|
70
|
+
readonly svg: "<path d=\"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z\"></path>";
|
|
71
|
+
readonly viewBox: "0 0 16 16";
|
|
72
|
+
};
|
|
73
|
+
readonly sort_icon: {
|
|
74
|
+
readonly svg: "<path d=\"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z\"></path>";
|
|
75
|
+
readonly viewBox: "0 0 32 32";
|
|
76
|
+
};
|
|
77
|
+
readonly arrow_up: {
|
|
78
|
+
readonly svg: "<path d=\"M16 4L6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z\"></path>";
|
|
79
|
+
readonly viewBox: "0 0 32 32";
|
|
80
|
+
};
|
|
81
|
+
readonly arrow_down: {
|
|
82
|
+
readonly svg: "<path d=\"M24.59 16.59L17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z\"></path>";
|
|
83
|
+
readonly viewBox: "0 0 32 32";
|
|
84
|
+
};
|
|
85
|
+
readonly info_filled: {
|
|
86
|
+
readonly svg: "<path fill=\"none\" d=\"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z\" data-icon-path=\"inner-path\"></path><path d=\"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z\"></path>";
|
|
87
|
+
readonly viewBox: "0 0 32 32";
|
|
88
|
+
};
|
|
89
|
+
readonly error_filled: {
|
|
90
|
+
readonly svg: "<path d=\"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"></path><path d=\"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\" data-icon-path=\"inner-path\" opacity=\"0\"></path>";
|
|
91
|
+
readonly viewBox: "0 0 20 20";
|
|
92
|
+
};
|
|
93
|
+
readonly warning_filled: {
|
|
94
|
+
readonly svg: "<path d=\"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z\"></path><path d=\"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z\" data-icon-path=\"inner-path\" opacity=\"0\"></path>";
|
|
95
|
+
readonly viewBox: "0 0 20 20";
|
|
96
|
+
};
|
|
97
|
+
readonly success_filled: {
|
|
98
|
+
readonly svg: "<path d=\"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z\"></path><path fill=\"none\" d=\"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z\" data-icon-path=\"inner-path\" opacity=\"0\"></path>";
|
|
99
|
+
readonly viewBox: "0 0 20 20";
|
|
100
|
+
};
|
|
101
|
+
readonly star: {
|
|
102
|
+
readonly svg: "<path d=\"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z\"></path>";
|
|
103
|
+
readonly viewBox: "64 64 896 896";
|
|
104
|
+
};
|
|
105
|
+
readonly cpu: {
|
|
106
|
+
readonly svg: "<g fill=\"none\"><path stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M38 8H10a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z\"></path><path stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M30 18H18v12h12z\"></path><path d=\"M14.91 2v6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M14.91 2v6\"></path><path d=\"M14.91 40v6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M14.91 40v6\"></path><path d=\"M24 2v6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M24 2v6\"></path><path d=\"M24 40v6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M24 40v6\"></path><path d=\"M33.09 2v6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M33.09 2v6\"></path><path d=\"M33.09 40v6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M33.09 40v6\"></path><path d=\"M2 14.91h6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M2 14.91h6\"></path><path d=\"M40 14.91h6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M40 14.91h6\"></path><path d=\"M2 24h6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M2 24h6\"></path><path d=\"M40 24h6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M40 24h6\"></path><path d=\"M2 33.09h6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M2 33.09h6\"></path><path d=\"M40 33.09h6z\" clip-rule=\"evenodd\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M40 33.09h6\"></path></g>";
|
|
107
|
+
readonly viewBox: "0 0 48 48";
|
|
108
|
+
};
|
|
109
|
+
readonly memory: {
|
|
110
|
+
readonly svg: "<path fill=\"currentColor\" d=\"M6.5 14.5h1v-5h-1zm5 0h1v-5h-1zm5 0h1v-5h-1zM4.616 17h14.769q.23 0 .423-.192t.192-.424V7.616q0-.231-.192-.424T19.385 7H4.615q-.23 0-.423.192T4 7.616v8.769q0 .23.192.423t.423.192M4 17V7zm1.5 3v-2h-.885q-.69 0-1.153-.462T3 16.384V7.616q0-.691.463-1.153T4.615 6H5.5V4h1v2h5V4h1v2h5V4h1v2h.885q.69 0 1.152.463T21 7.616v8.769q0 .69-.463 1.153T19.385 18H18.5v2h-1v-2h-5v2h-1v-2h-5v2z\"></path>";
|
|
111
|
+
readonly viewBox: "0 0 24 24";
|
|
112
|
+
};
|
|
113
|
+
readonly network: {
|
|
114
|
+
readonly svg: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><rect width=\"6\" height=\"6\" x=\"16\" y=\"16\" rx=\"1\"></rect><rect width=\"6\" height=\"6\" x=\"2\" y=\"16\" rx=\"1\"></rect><rect width=\"6\" height=\"6\" x=\"9\" y=\"2\" rx=\"1\"></rect><path d=\"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3m-7-4V8\"></path></g>";
|
|
115
|
+
readonly viewBox: "0 0 24 24";
|
|
116
|
+
};
|
|
117
|
+
readonly disk: {
|
|
118
|
+
readonly svg: "<g fill=\"none\"><path stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M44 29H4v13h40z\"></path><path fill=\"currentColor\" d=\"M35.5 38a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5\"></path><path stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"4\" d=\"M4 29L9.038 4.999H39.02l4.98 24\"></path></g>";
|
|
119
|
+
readonly viewBox: "0 0 48 48";
|
|
120
|
+
};
|
|
121
|
+
readonly services: {
|
|
122
|
+
readonly svg: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M12.003 21c-.732.001-1.465-.438-1.678-1.317a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c1 .608 2.296.07 2.572-1.065c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c.886.215 1.325.957 1.318 1.694\"></path><path d=\"M9 12a3 3 0 1 0 6 0a3 3 0 0 0-6 0m8.001 7a2 2 0 1 0 4 0a2 2 0 1 0-4 0m2-3.5V17m0 4v1.5m3.031-5.25l-1.299.75m-3.463 2l-1.3.75m0-3.5l1.3.75m3.463 2l1.3.75\"></path></g>";
|
|
123
|
+
readonly viewBox: "0 0 24 24";
|
|
124
|
+
};
|
|
125
|
+
readonly notification: {
|
|
126
|
+
readonly svg: "<path d=\"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z\"></path>";
|
|
127
|
+
readonly viewBox: "64 64 896 896";
|
|
128
|
+
};
|
|
129
|
+
readonly configuration: {
|
|
130
|
+
readonly svg: "<path d=\"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z\"></path>";
|
|
131
|
+
readonly viewBox: "64 64 896 896";
|
|
132
|
+
};
|
|
133
|
+
readonly home: {
|
|
134
|
+
readonly svg: "<path d=\"M16.6123,2.2138a1.01,1.01,0,0,0-1.2427,0L1,13.4194l1.2427,1.5717L4,13.6209V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM18,26H14V18h4Zm2,0V18a2.0023,2.0023,0,0,0-2-2H14a2.002,2.002,0,0,0-2,2v8H6V12.0615l10-7.79,10,7.8005V26Z\"></path>";
|
|
135
|
+
readonly viewBox: "0 0 32 32";
|
|
136
|
+
};
|
|
137
|
+
readonly renew: {
|
|
138
|
+
readonly svg: "<path d=\"M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z\"></path><path d=\"M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z\"></path>";
|
|
139
|
+
readonly viewBox: "0 0 32 32";
|
|
140
|
+
};
|
|
141
|
+
readonly customer: {
|
|
142
|
+
readonly svg: "<path d=\"m26,30h-2v-5c-.0033-2.7601-2.2399-4.9967-5-5h-6c-2.7601.0033-4.9967,2.2399-5,5v5h-2v-5c.0045-3.8641,3.1359-6.9955,7-7h6c3.8641.0045,6.9955,3.1359,7,7v5Z\"></path><path d=\"m22,6v4c0,1.1025-.8972,2-2,2h-1c-.5522,0-1,.4478-1,1s.4478,1,1,1h1c2.2056,0,4-1.7944,4-4v-4h-2Z\"></path><path d=\"m16,16c-3.8599,0-7-3.1401-7-7S12.1401,2,16,2c1.9885,0,3.8901.8503,5.2173,2.3329l-1.4902,1.334c-.9482-1.0593-2.3066-1.6669-3.7271-1.6669-2.7571,0-5,2.243-5,5s2.2429,5,5,5v2Z\"></path>";
|
|
143
|
+
readonly viewBox: "0 0 32 32";
|
|
144
|
+
};
|
|
145
|
+
readonly user: {
|
|
146
|
+
readonly svg: "<path d=\"M16,4a5,5,0,1,1-5,5,5,5,0,0,1,5-5m0-2a7,7,0,1,0,7,7A7,7,0,0,0,16,2Z\"></path><path d=\"M26,30H24V25a5,5,0,0,0-5-5H13a5,5,0,0,0-5,5v5H6V25a7,7,0,0,1,7-7h6a7,7,0,0,1,7,7Z\"></path>";
|
|
147
|
+
readonly viewBox: "0 0 32 32";
|
|
148
|
+
};
|
|
149
|
+
readonly user_multi: {
|
|
150
|
+
readonly svg: "<path d=\"M30,30H28V25a5.0057,5.0057,0,0,0-5-5V18a7.0078,7.0078,0,0,1,7,7Z\"></path><path d=\"M22,30H20V25a5.0059,5.0059,0,0,0-5-5H9a5.0059,5.0059,0,0,0-5,5v5H2V25a7.0082,7.0082,0,0,1,7-7h6a7.0082,7.0082,0,0,1,7,7Z\"></path><path d=\"M20,2V4a5,5,0,0,1,0,10v2A7,7,0,0,0,20,2Z\"></path><path d=\"M12,4A5,5,0,1,1,7,9a5,5,0,0,1,5-5m0-2a7,7,0,1,0,7,7A7,7,0,0,0,12,2Z\"></path>";
|
|
151
|
+
readonly viewBox: "0 0 32 32";
|
|
152
|
+
};
|
|
153
|
+
readonly user_avatar: {
|
|
154
|
+
readonly svg: "<path d=\"M16,8a5,5,0,1,0,5,5A5,5,0,0,0,16,8Zm0,8a3,3,0,1,1,3-3A3.0034,3.0034,0,0,1,16,16Z\"></path><path d=\"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2ZM10,26.3765V25a3.0033,3.0033,0,0,1,3-3h6a3.0033,3.0033,0,0,1,3,3v1.3765a11.8989,11.8989,0,0,1-12,0Zm13.9925-1.4507A5.0016,5.0016,0,0,0,19,20H13a5.0016,5.0016,0,0,0-4.9925,4.9258,12,12,0,1,1,15.985,0Z\"></path>";
|
|
155
|
+
readonly viewBox: "0 0 32 32";
|
|
156
|
+
};
|
|
157
|
+
readonly user_admin: {
|
|
158
|
+
readonly svg: "<path d=\"M12,4A5,5,0,1,1,7,9a5,5,0,0,1,5-5m0-2a7,7,0,1,0,7,7A7,7,0,0,0,12,2Z\"></path><path d=\"M22,30H20V25a5,5,0,0,0-5-5H9a5,5,0,0,0-5,5v5H2V25a7,7,0,0,1,7-7h6a7,7,0,0,1,7,7Z\"></path><path d=\"M25 16.18 22.41 13.59 21 15 25 19 32 12 30.59 10.59 25 16.18z\"></path>";
|
|
159
|
+
readonly viewBox: "0 0 32 32";
|
|
160
|
+
};
|
|
161
|
+
readonly location: {
|
|
162
|
+
readonly svg: "<path d=\"M16,18a5,5,0,1,1,5-5A5.0057,5.0057,0,0,1,16,18Zm0-8a3,3,0,1,0,3,3A3.0033,3.0033,0,0,0,16,10Z\"></path><path d=\"M16,30,7.5645,20.0513c-.0479-.0571-.3482-.4515-.3482-.4515A10.8888,10.8888,0,0,1,5,13a11,11,0,0,1,22,0,10.8844,10.8844,0,0,1-2.2148,6.5973l-.0015.0025s-.3.3944-.3447.4474ZM8.8125,18.395c.001.0007.2334.3082.2866.3744L16,26.9079l6.91-8.15c.0439-.0552.2783-.3649.2788-.3657A8.901,8.901,0,0,0,25,13,9,9,0,1,0,7,13a8.9054,8.9054,0,0,0,1.8125,5.395Z\"></path>";
|
|
163
|
+
readonly viewBox: "0 0 32 32";
|
|
164
|
+
};
|
|
165
|
+
/** Outlined circle with a lowercase i — general information */
|
|
166
|
+
readonly information: {
|
|
167
|
+
readonly svg: "<path d=\"M17 22v-8h-4v2h2v6h-2v2h6v-2h-2z\"></path><path d=\"M16 7a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 7z\"></path><path d=\"M16 2A14 14 0 1 0 30 16 14 14 0 0 0 16 2zm0 26A12 12 0 1 1 28 16 12 12 0 0 1 16 28z\"></path>";
|
|
168
|
+
readonly viewBox: "0 0 32 32";
|
|
169
|
+
};
|
|
170
|
+
/** Three horizontal bars — hamburger / side-nav trigger */
|
|
171
|
+
readonly menu: {
|
|
172
|
+
readonly svg: "<rect x=\"4\" y=\"6\" width=\"24\" height=\"2\"></rect><rect x=\"4\" y=\"15\" width=\"24\" height=\"2\"></rect><rect x=\"4\" y=\"24\" width=\"24\" height=\"2\"></rect>";
|
|
173
|
+
readonly viewBox: "0 0 32 32";
|
|
174
|
+
};
|
|
175
|
+
/** 3×3 grid of squares — app / workspace switcher */
|
|
176
|
+
readonly app_switcher: {
|
|
177
|
+
readonly svg: "<path d=\"M4 6H8V10H4zM12 6H16V10H12zM20 6H24V10H20zM4 14H8V18H4zM12 14H16V18H12zM20 14H24V18H20zM4 22H8V26H4zM12 22H16V26H12zM20 22H24V26H20z\"></path>";
|
|
178
|
+
readonly viewBox: "0 0 32 32";
|
|
179
|
+
};
|
|
180
|
+
/** Three vertical dots — overflow / context menu */
|
|
181
|
+
readonly overflow_menu_vertical: {
|
|
182
|
+
readonly svg: "<circle cx=\"16\" cy=\"8\" r=\"2\"></circle><circle cx=\"16\" cy=\"16\" r=\"2\"></circle><circle cx=\"16\" cy=\"24\" r=\"2\"></circle>";
|
|
183
|
+
readonly viewBox: "0 0 32 32";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
type NgccIconNameType = keyof typeof ICONS;
|
|
187
|
+
|
|
188
|
+
type NgccButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger' | 'danger_tertiary' | 'danger_ghost';
|
|
189
|
+
type NgccButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
190
|
+
type NgccButtonType = 'button' | 'submit' | 'reset';
|
|
191
|
+
|
|
192
|
+
declare class NgccButton implements OnChanges {
|
|
193
|
+
label: string;
|
|
194
|
+
variant: NgccButtonVariant;
|
|
195
|
+
size: NgccButtonSize;
|
|
196
|
+
disabled: boolean;
|
|
197
|
+
expressive: boolean;
|
|
198
|
+
className: string;
|
|
199
|
+
skeleton: boolean;
|
|
200
|
+
type: NgccButtonType;
|
|
201
|
+
ariaLabel: string | undefined;
|
|
202
|
+
ariaExpanded: boolean | undefined;
|
|
203
|
+
iconName: NgccIconNameType | undefined;
|
|
204
|
+
iconOnly: boolean;
|
|
205
|
+
private readonly _label;
|
|
206
|
+
private readonly _variant;
|
|
207
|
+
private readonly _size;
|
|
208
|
+
private readonly _disabled;
|
|
209
|
+
private readonly _expressive;
|
|
210
|
+
private readonly _className;
|
|
211
|
+
private readonly _skeleton;
|
|
212
|
+
private readonly _type;
|
|
213
|
+
private readonly _ariaLabel;
|
|
214
|
+
private readonly _ariaExpanded;
|
|
215
|
+
private readonly _iconName;
|
|
216
|
+
private readonly _iconOnly;
|
|
217
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
218
|
+
readonly classes: _angular_core.Signal<string>;
|
|
219
|
+
onKeydown(event: KeyboardEvent): void;
|
|
220
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccButton, never>;
|
|
221
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccButton, "ngcc-button", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "expressive": { "alias": "expressive"; "required": false; }; "className": { "alias": "className"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "type": { "alias": "type"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; }, {}, never, never, true, never>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type NgccLinkSize = 'sm' | 'md' | 'lg';
|
|
225
|
+
type NgccLinkTarget = '_self' | '_blank' | '_parent' | '_top';
|
|
226
|
+
type NgccLinkAriaCurrent = 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
|
|
227
|
+
|
|
228
|
+
declare class NgccLink {
|
|
229
|
+
href: string;
|
|
230
|
+
target: NgccLinkTarget;
|
|
231
|
+
rel: string;
|
|
232
|
+
disabled: boolean;
|
|
233
|
+
inline: boolean;
|
|
234
|
+
size: NgccLinkSize;
|
|
235
|
+
visited: boolean;
|
|
236
|
+
iconName: NgccIconNameType | undefined;
|
|
237
|
+
ariaLabel: string | undefined;
|
|
238
|
+
ariaCurrent: NgccLinkAriaCurrent | undefined;
|
|
239
|
+
className: string;
|
|
240
|
+
linkClick: EventEmitter<MouseEvent>;
|
|
241
|
+
get classes(): string;
|
|
242
|
+
get resolvedRel(): string | null;
|
|
243
|
+
get resolvedTabIndex(): number;
|
|
244
|
+
onClick(event: MouseEvent): void;
|
|
245
|
+
onKeydown(event: KeyboardEvent): void;
|
|
246
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccLink, never>;
|
|
247
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccLink, "ngcc-link", never, { "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "size": { "alias": "size"; "required": false; }; "visited": { "alias": "visited"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaCurrent": { "alias": "ariaCurrent"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, { "linkClick": "linkClick"; }, never, ["*"], true, never>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
type NgccToggleSize = 'sm' | 'md';
|
|
251
|
+
|
|
252
|
+
declare class NgccToggle implements OnChanges {
|
|
253
|
+
private static idCounter;
|
|
254
|
+
readonly toggleId: string;
|
|
255
|
+
toggled: boolean;
|
|
256
|
+
disabled: boolean;
|
|
257
|
+
readOnly: boolean;
|
|
258
|
+
skeleton: boolean;
|
|
259
|
+
hideLabel: boolean;
|
|
260
|
+
size: NgccToggleSize;
|
|
261
|
+
labelText: string;
|
|
262
|
+
labelA: string;
|
|
263
|
+
labelB: string;
|
|
264
|
+
ariaLabel: string | undefined;
|
|
265
|
+
ariaLabelledBy: string | undefined;
|
|
266
|
+
className: string;
|
|
267
|
+
toggledChange: EventEmitter<boolean>;
|
|
268
|
+
private readonly _isToggled;
|
|
269
|
+
constructor();
|
|
270
|
+
get sideLabel(): string;
|
|
271
|
+
get hostClasses(): string;
|
|
272
|
+
get appearanceClasses(): string;
|
|
273
|
+
get switchClasses(): string;
|
|
274
|
+
get ariaChecked(): boolean;
|
|
275
|
+
get resolvedTabIndex(): number;
|
|
276
|
+
get resolvedAriaLabelledBy(): string;
|
|
277
|
+
get showCheckmark(): boolean;
|
|
278
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
279
|
+
onToggle(): void;
|
|
280
|
+
onKeydown(event: KeyboardEvent): void;
|
|
281
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccToggle, never>;
|
|
282
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccToggle, "ngcc-toggle", never, { "toggled": { "alias": "toggled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "hideLabel": { "alias": "hideLabel"; "required": false; }; "size": { "alias": "size"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "labelA": { "alias": "labelA"; "required": false; }; "labelB": { "alias": "labelB"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, { "toggledChange": "toggledChange"; }, never, never, true, never>;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
type NgccContainedListKind = 'on-page' | 'disclosed';
|
|
286
|
+
type NgccContainedListSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
287
|
+
/**
|
|
288
|
+
* Marker directive for the list header action slot.
|
|
289
|
+
* Apply to the action element: `<button ngccContainedListAction>...</button>`
|
|
290
|
+
* Must be imported by the consuming component alongside NgccContainedList.
|
|
291
|
+
*/
|
|
292
|
+
declare class NgccContainedListActionDirective {
|
|
293
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccContainedListActionDirective, never>;
|
|
294
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgccContainedListActionDirective, "[ngccContainedListAction]", never, {}, {}, never, never, true, never>;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Marker directive for a list item action slot.
|
|
298
|
+
* Apply to the action element: `<button ngccContainedListItemAction>...</button>`
|
|
299
|
+
* Must be imported by the consuming component alongside NgccContainedListItem.
|
|
300
|
+
*/
|
|
301
|
+
declare class NgccContainedListItemActionDirective {
|
|
302
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccContainedListItemActionDirective, never>;
|
|
303
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgccContainedListItemActionDirective, "[ngccContainedListItemAction]", never, {}, {}, never, never, true, never>;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
declare class NgccContainedList {
|
|
307
|
+
private static count;
|
|
308
|
+
/** A label describing the contained list. */
|
|
309
|
+
label: string;
|
|
310
|
+
/** The kind of ContainedList you want to display. */
|
|
311
|
+
kind: NgccContainedListKind;
|
|
312
|
+
/** Specify the size of the contained list. */
|
|
313
|
+
size: NgccContainedListSize | undefined;
|
|
314
|
+
/** Specify whether the dividing lines in between list items should be inset. */
|
|
315
|
+
isInset: boolean;
|
|
316
|
+
/** Whether a header action element has been projected via [ngccContainedListAction]. */
|
|
317
|
+
hasAction: boolean;
|
|
318
|
+
/** Unique ID for the label element used by aria-labelledby. */
|
|
319
|
+
readonly labelId: string;
|
|
320
|
+
get classes(): string;
|
|
321
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccContainedList, never>;
|
|
322
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccContainedList, "ngcc-contained-list", never, { "label": { "alias": "label"; "required": false; }; "kind": { "alias": "kind"; "required": false; }; "size": { "alias": "size"; "required": false; }; "isInset": { "alias": "isInset"; "required": false; }; "hasAction": { "alias": "hasAction"; "required": false; }; }, {}, never, ["[ngccContainedListAction]", "*"], true, never>;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
declare class NgccContainedListItem {
|
|
326
|
+
/** Whether this item is disabled (only applies when clickable). */
|
|
327
|
+
disabled: boolean;
|
|
328
|
+
/** Whether this item is clickable — renders a <button> as the content wrapper. */
|
|
329
|
+
clickable: boolean;
|
|
330
|
+
/** Optional icon name to display before the item content. */
|
|
331
|
+
iconName?: NgccIconNameType;
|
|
332
|
+
/** Whether an action element has been projected via [ngccContainedListItemAction]. */
|
|
333
|
+
hasAction: boolean;
|
|
334
|
+
/** Emits when a clickable item is activated. */
|
|
335
|
+
clicked: EventEmitter<void>;
|
|
336
|
+
get classes(): string;
|
|
337
|
+
onContentClick(): void;
|
|
338
|
+
onKeydown(event: Event): void;
|
|
339
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccContainedListItem, never>;
|
|
340
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccContainedListItem, "ngcc-contained-list-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "clickable": { "alias": "clickable"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "hasAction": { "alias": "hasAction"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*", "[ngccContainedListItemAction]"], true, never>;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
type IconSize = 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
344
|
+
|
|
345
|
+
declare class NgccIcon implements OnChanges {
|
|
346
|
+
private sanitizer;
|
|
347
|
+
constructor(sanitizer: DomSanitizer);
|
|
348
|
+
name: NgccIconNameType | undefined;
|
|
349
|
+
size: IconSize;
|
|
350
|
+
color: string;
|
|
351
|
+
ariaLabel: string | null;
|
|
352
|
+
decorative: boolean;
|
|
353
|
+
svgClass: string | null;
|
|
354
|
+
private readonly _name;
|
|
355
|
+
private readonly _size;
|
|
356
|
+
private readonly _color;
|
|
357
|
+
private readonly _ariaLabel;
|
|
358
|
+
private readonly _decorative;
|
|
359
|
+
private readonly _svgClass;
|
|
360
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
361
|
+
private readonly sizeMap;
|
|
362
|
+
fillStyle: _angular_core.Signal<string | null>;
|
|
363
|
+
sizeInRem: _angular_core.Signal<number>;
|
|
364
|
+
viewBox: _angular_core.Signal<"0 0 32 32" | "0 0 16 16" | "0 0 20 20" | "64 64 896 896" | "0 0 48 48" | "0 0 24 24">;
|
|
365
|
+
svg: _angular_core.Signal<SafeHtml | null>;
|
|
366
|
+
className: _angular_core.Signal<string>;
|
|
367
|
+
effectiveAriaLabel: _angular_core.Signal<string | null>;
|
|
368
|
+
isDecorative: _angular_core.Signal<boolean>;
|
|
369
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccIcon, never>;
|
|
370
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccIcon, "ngcc-icon", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "decorative": { "alias": "decorative"; "required": false; }; "svgClass": { "alias": "svgClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare class NgccCheckbox implements ControlValueAccessor, OnChanges, AfterViewInit {
|
|
374
|
+
private ngcontrol;
|
|
375
|
+
label: string | undefined;
|
|
376
|
+
required: boolean;
|
|
377
|
+
disabled: boolean;
|
|
378
|
+
skeleton: boolean;
|
|
379
|
+
helperText: string | undefined;
|
|
380
|
+
ariaLabel: string | undefined;
|
|
381
|
+
ariaLabelledBy: string | undefined;
|
|
382
|
+
indeterminate: boolean;
|
|
383
|
+
invalid: boolean | undefined;
|
|
384
|
+
errorMessage: string | undefined;
|
|
385
|
+
checked: boolean;
|
|
386
|
+
checkedChange: EventEmitter<boolean>;
|
|
387
|
+
change: EventEmitter<boolean>;
|
|
388
|
+
private readonly _label;
|
|
389
|
+
private readonly _required;
|
|
390
|
+
private readonly _disabled;
|
|
391
|
+
private readonly _skeleton;
|
|
392
|
+
private readonly _helperText;
|
|
393
|
+
private readonly _ariaLabel;
|
|
394
|
+
private readonly _ariaLabelledBy;
|
|
395
|
+
private readonly _indeterminate;
|
|
396
|
+
private readonly _invalid;
|
|
397
|
+
private readonly _errorMessage;
|
|
398
|
+
private readonly _checked;
|
|
399
|
+
private readonly _disabledByForm;
|
|
400
|
+
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
401
|
+
private static idCounter;
|
|
402
|
+
readonly inputId: string;
|
|
403
|
+
private readonly el;
|
|
404
|
+
constructor(ngcontrol: NgControl);
|
|
405
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
406
|
+
ngAfterViewInit(): void;
|
|
407
|
+
readonly describedBy: _angular_core.Signal<string | null>;
|
|
408
|
+
readonly labelledBy: _angular_core.Signal<string | null>;
|
|
409
|
+
readonly computedAriaLabel: _angular_core.Signal<string>;
|
|
410
|
+
readonly invalid_value: _angular_core.Signal<boolean | undefined>;
|
|
411
|
+
readonly hostClasses: _angular_core.Signal<string>;
|
|
412
|
+
onToggle(event: Event): void;
|
|
413
|
+
onBlur(): void;
|
|
414
|
+
private onChangeFn;
|
|
415
|
+
private onTouchedFn;
|
|
416
|
+
writeValue(val: boolean): void;
|
|
417
|
+
registerOnChange(fn: (val: boolean) => void): void;
|
|
418
|
+
registerOnTouched(fn: () => void): void;
|
|
419
|
+
setDisabledState(isDisabled: boolean): void;
|
|
420
|
+
getChecked(): boolean;
|
|
421
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccCheckbox, [{ optional: true; self: true; }]>;
|
|
422
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccCheckbox, "ngcc-checkbox", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, { "checkedChange": "checkedChange"; "change": "change"; }, never, never, true, never>;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
type NgccRadioLabelPlacement = 'left' | 'right';
|
|
426
|
+
type NgccRadioOrientation = 'horizontal' | 'vertical';
|
|
427
|
+
interface NgccRadioChange<T = unknown> {
|
|
428
|
+
value: T;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Context provided by NgccRadioGroup and injected by NgccRadio
|
|
432
|
+
* via NGCC_RADIO_GROUP_TOKEN to avoid circular imports.
|
|
433
|
+
*/
|
|
434
|
+
interface NgccRadioGroupContext {
|
|
435
|
+
readonly name: string;
|
|
436
|
+
readonly isDisabled: boolean;
|
|
437
|
+
readonly readOnly: boolean;
|
|
438
|
+
readonly labelPlacement: NgccRadioLabelPlacement;
|
|
439
|
+
readonly skeleton: boolean;
|
|
440
|
+
}
|
|
441
|
+
declare const NGCC_RADIO_GROUP_TOKEN: InjectionToken<NgccRadioGroupContext>;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Individual radio button. Must be used inside `<ngcc-radio-group>`.
|
|
445
|
+
*
|
|
446
|
+
* ```html
|
|
447
|
+
* <ngcc-radio-group [(ngModel)]="selected">
|
|
448
|
+
* <ngcc-radio value="a">Option A</ngcc-radio>
|
|
449
|
+
* </ngcc-radio-group>
|
|
450
|
+
* ```
|
|
451
|
+
*/
|
|
452
|
+
declare class NgccRadio<T = unknown> implements OnChanges, AfterViewInit {
|
|
453
|
+
private readonly group;
|
|
454
|
+
value: T | null;
|
|
455
|
+
id: string;
|
|
456
|
+
name: string;
|
|
457
|
+
required: boolean;
|
|
458
|
+
disabled: boolean;
|
|
459
|
+
labelPlacement: NgccRadioLabelPlacement;
|
|
460
|
+
ariaLabel: string | undefined;
|
|
461
|
+
ariaLabelledby: string | undefined;
|
|
462
|
+
skeleton: boolean;
|
|
463
|
+
private readonly _value;
|
|
464
|
+
private readonly _checked;
|
|
465
|
+
private readonly _disabled;
|
|
466
|
+
change: EventEmitter<NgccRadioChange<T | null> & {
|
|
467
|
+
source: NgccRadio<T>;
|
|
468
|
+
}>;
|
|
469
|
+
get effectiveName(): string;
|
|
470
|
+
get isDisabled(): boolean;
|
|
471
|
+
get isReadOnly(): boolean;
|
|
472
|
+
get effectiveLabelPlacement(): NgccRadioLabelPlacement;
|
|
473
|
+
get effectiveSkeleton(): boolean;
|
|
474
|
+
get effectiveAriaLabelledby(): string;
|
|
475
|
+
get hostClasses(): string;
|
|
476
|
+
radioInputRef?: ElementRef<HTMLInputElement>;
|
|
477
|
+
constructor();
|
|
478
|
+
ngOnChanges(): void;
|
|
479
|
+
ngAfterViewInit(): void;
|
|
480
|
+
private radioChangeHandler;
|
|
481
|
+
registerRadioChangeHandler(fn: (event: NgccRadioChange<T | null> & {
|
|
482
|
+
source: NgccRadio<T>;
|
|
483
|
+
}) => void): void;
|
|
484
|
+
onClick(event: Event): void;
|
|
485
|
+
/** Stop native change from bubbling — selection is managed via click. */
|
|
486
|
+
onChange(event: Event): void;
|
|
487
|
+
getValue(): T | null;
|
|
488
|
+
setChecked(v: boolean): void;
|
|
489
|
+
isChecked(): boolean;
|
|
490
|
+
get checked(): boolean;
|
|
491
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccRadio<any>, never>;
|
|
492
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccRadio<any>, "ngcc-radio", never, { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; }, { "change": "change"; }, never, ["*"], true, never>;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Container for `<ngcc-radio>` components. Implements `ControlValueAccessor`
|
|
497
|
+
* for use with reactive forms and ngModel.
|
|
498
|
+
*
|
|
499
|
+
* ```html
|
|
500
|
+
* <ngcc-radio-group [formControl]="ctrl" legend="Pick one">
|
|
501
|
+
* <ngcc-radio value="a">Option A</ngcc-radio>
|
|
502
|
+
* <ngcc-radio value="b">Option B</ngcc-radio>
|
|
503
|
+
* </ngcc-radio-group>
|
|
504
|
+
* ```
|
|
505
|
+
*/
|
|
506
|
+
declare class NgccRadioGroup<T = unknown> implements ControlValueAccessor, NgccRadioGroupContext, AfterContentInit {
|
|
507
|
+
private readonly ngControl;
|
|
508
|
+
name: string;
|
|
509
|
+
disabled: boolean;
|
|
510
|
+
skeleton: boolean;
|
|
511
|
+
orientation: NgccRadioOrientation;
|
|
512
|
+
labelPlacement: NgccRadioLabelPlacement;
|
|
513
|
+
legend?: string;
|
|
514
|
+
ariaLabel?: string;
|
|
515
|
+
ariaLabelledby?: string;
|
|
516
|
+
helperText?: string;
|
|
517
|
+
invalid: boolean;
|
|
518
|
+
invalidText?: string;
|
|
519
|
+
warn: boolean;
|
|
520
|
+
warnText?: string;
|
|
521
|
+
readOnly: boolean;
|
|
522
|
+
change: EventEmitter<NgccRadioChange<T | null> & {
|
|
523
|
+
source: NgccRadio<T>;
|
|
524
|
+
}>;
|
|
525
|
+
private readonly _value;
|
|
526
|
+
private readonly _disabledByForm;
|
|
527
|
+
get isDisabled(): boolean;
|
|
528
|
+
fieldsetClasses(): string;
|
|
529
|
+
radios: QueryList<NgccRadio<T>>;
|
|
530
|
+
constructor();
|
|
531
|
+
private syncCheckedState;
|
|
532
|
+
private bindRadioHandlers;
|
|
533
|
+
writeValue(val: T | null): void;
|
|
534
|
+
registerOnChange(fn: (val: T | null) => void): void;
|
|
535
|
+
registerOnTouched(fn: () => void): void;
|
|
536
|
+
setDisabledState(isDisabled: boolean): void;
|
|
537
|
+
ngAfterContentInit(): void;
|
|
538
|
+
onFocusOut(event: FocusEvent): void;
|
|
539
|
+
private propagateChange;
|
|
540
|
+
private onTouched;
|
|
541
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccRadioGroup<any>, never>;
|
|
542
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccRadioGroup<any>, "ngcc-radio-group", never, { "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "legend": { "alias": "legend"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "invalidText": { "alias": "invalidText"; "required": false; }; "warn": { "alias": "warn"; "required": false; }; "warnText": { "alias": "warnText"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, { "change": "change"; }, ["radios"], ["*"], true, never>;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
type NgccDateFormat = 'MM/DD/YYYY' | 'DD/MM/YYYY' | 'YYYY-MM-DD';
|
|
546
|
+
declare class NgccDatePicker implements ControlValueAccessor, OnDestroy, OnChanges {
|
|
547
|
+
#private;
|
|
548
|
+
protected elementRef: ElementRef;
|
|
549
|
+
private static idCounter;
|
|
550
|
+
type: 'simple' | 'single' | 'range';
|
|
551
|
+
id: string;
|
|
552
|
+
hasIcon: boolean;
|
|
553
|
+
label: string | TemplateRef<unknown> | undefined;
|
|
554
|
+
startLabel: string | TemplateRef<unknown> | null;
|
|
555
|
+
endLabel: string | TemplateRef<unknown> | null;
|
|
556
|
+
placeholder: string;
|
|
557
|
+
pattern: string;
|
|
558
|
+
theme: 'light' | 'dark';
|
|
559
|
+
disabled: boolean;
|
|
560
|
+
readonly: boolean;
|
|
561
|
+
invalid: boolean;
|
|
562
|
+
invalidText: string | TemplateRef<unknown> | undefined;
|
|
563
|
+
warn: boolean;
|
|
564
|
+
warnText: string | TemplateRef<unknown> | undefined;
|
|
565
|
+
helperText: string | TemplateRef<unknown> | undefined;
|
|
566
|
+
skeleton: boolean;
|
|
567
|
+
size: 'sm' | 'md' | 'lg';
|
|
568
|
+
minDate: Date | null;
|
|
569
|
+
maxDate: Date | null;
|
|
570
|
+
disabledDates: Date[] | null;
|
|
571
|
+
format: NgccDateFormat;
|
|
572
|
+
locale: string;
|
|
573
|
+
emitDateObjects: boolean;
|
|
574
|
+
valueChange: EventEmitter<string | Date | [string, string] | [Date, Date]>;
|
|
575
|
+
private _type;
|
|
576
|
+
private _id;
|
|
577
|
+
private _hasIcon;
|
|
578
|
+
private _label;
|
|
579
|
+
private _startLabel;
|
|
580
|
+
private _endLabel;
|
|
581
|
+
private _placeholder;
|
|
582
|
+
private _pattern;
|
|
583
|
+
private _theme;
|
|
584
|
+
private _disabled;
|
|
585
|
+
private _readonly;
|
|
586
|
+
private _invalid;
|
|
587
|
+
private _invalidText;
|
|
588
|
+
private _warn;
|
|
589
|
+
private _warnText;
|
|
590
|
+
private _helperText;
|
|
591
|
+
private _skeleton;
|
|
592
|
+
private _size;
|
|
593
|
+
private _minDate;
|
|
594
|
+
private _maxDate;
|
|
595
|
+
private _disabledDates;
|
|
596
|
+
private _format;
|
|
597
|
+
private _locale;
|
|
598
|
+
private _emitDateObjects;
|
|
599
|
+
calendarOpen: _angular_core.WritableSignal<boolean>;
|
|
600
|
+
selectingRangeEnd: _angular_core.WritableSignal<boolean>;
|
|
601
|
+
value: _angular_core.WritableSignal<string>;
|
|
602
|
+
endValue: _angular_core.WritableSignal<string>;
|
|
603
|
+
readonly startDateForCalendar: () => Date | null;
|
|
604
|
+
readonly endDateForCalendar: () => Date | null;
|
|
605
|
+
inputEl?: ElementRef<HTMLInputElement>;
|
|
606
|
+
endInputEl?: ElementRef<HTMLInputElement>;
|
|
607
|
+
calendarContainerEl?: ElementRef<HTMLElement>;
|
|
608
|
+
private _docClickHandler;
|
|
609
|
+
constructor(elementRef: ElementRef);
|
|
610
|
+
ngOnDestroy(): void;
|
|
611
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
612
|
+
getType: () => string;
|
|
613
|
+
getId: () => string;
|
|
614
|
+
getHasIcon: () => boolean;
|
|
615
|
+
getLabel: () => string | undefined | TemplateRef<unknown>;
|
|
616
|
+
getStartLabel: () => string | null | TemplateRef<unknown>;
|
|
617
|
+
getEndLabel: () => string | null | TemplateRef<unknown>;
|
|
618
|
+
getPlaceholder: () => string;
|
|
619
|
+
getPattern: () => string;
|
|
620
|
+
getTheme: () => string;
|
|
621
|
+
getDisabled: () => boolean;
|
|
622
|
+
getReadonly: () => boolean;
|
|
623
|
+
getInvalid: () => boolean;
|
|
624
|
+
getInvalidText: () => string | undefined | TemplateRef<unknown>;
|
|
625
|
+
getWarn: () => boolean;
|
|
626
|
+
getWarnText: () => string | undefined | TemplateRef<unknown>;
|
|
627
|
+
getHelperText: () => string | undefined | TemplateRef<unknown>;
|
|
628
|
+
getSkeleton: () => boolean;
|
|
629
|
+
getSize: () => string;
|
|
630
|
+
getMinDate: () => Date | null;
|
|
631
|
+
getMaxDate: () => Date | null;
|
|
632
|
+
getDisabledDates: () => Date[] | null;
|
|
633
|
+
getFormat: () => NgccDateFormat;
|
|
634
|
+
getLocale: () => string;
|
|
635
|
+
getEmitDateObjects: () => boolean;
|
|
636
|
+
writeValue(value: unknown): void;
|
|
637
|
+
registerOnChange(fn: (value: string | [string, string] | Date | [Date, Date] | [Date | null, Date | null]) => void): void;
|
|
638
|
+
registerOnTouched(fn: () => void): void;
|
|
639
|
+
setDisabledState(isDisabled: boolean): void;
|
|
640
|
+
openCalendar(isEnd?: boolean): void;
|
|
641
|
+
closeCalendar(): void;
|
|
642
|
+
toggleCalendar(isEnd?: boolean): void;
|
|
643
|
+
onDateSelected(date: Date): void;
|
|
644
|
+
emitRange(final?: boolean): void;
|
|
645
|
+
onInputChange(ev: Event, isEnd?: boolean): void;
|
|
646
|
+
validateRangeTyping(): void;
|
|
647
|
+
validateFormat(v: string): boolean;
|
|
648
|
+
private pad;
|
|
649
|
+
private formatDateDisplay;
|
|
650
|
+
private displayToDate;
|
|
651
|
+
private dateToISO;
|
|
652
|
+
private isoToDate;
|
|
653
|
+
private isoToDisplay;
|
|
654
|
+
private displayToISO;
|
|
655
|
+
isTemplate(value: unknown): value is TemplateRef<unknown>;
|
|
656
|
+
displayToDatePublic(v: string): Date | null;
|
|
657
|
+
readonly labelTemplate: () => TemplateRef<unknown> | null;
|
|
658
|
+
readonly startLabelTemplate: () => TemplateRef<unknown> | null;
|
|
659
|
+
readonly endLabelTemplate: () => TemplateRef<unknown> | null;
|
|
660
|
+
readonly helperTextTemplate: () => TemplateRef<unknown> | null;
|
|
661
|
+
readonly invalidTextTemplate: () => TemplateRef<unknown> | null;
|
|
662
|
+
readonly warnTextTemplate: () => TemplateRef<unknown> | null;
|
|
663
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccDatePicker, never>;
|
|
664
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccDatePicker, "ngcc-date-picker", never, { "type": { "alias": "type"; "required": false; }; "id": { "alias": "id"; "required": false; }; "hasIcon": { "alias": "hasIcon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "startLabel": { "alias": "startLabel"; "required": false; }; "endLabel": { "alias": "endLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "invalidText": { "alias": "invalidText"; "required": false; }; "warn": { "alias": "warn"; "required": false; }; "warnText": { "alias": "warnText"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "size": { "alias": "size"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "format": { "alias": "format"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "emitDateObjects": { "alias": "emitDateObjects"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
interface NgccCalendarCell {
|
|
668
|
+
day?: number;
|
|
669
|
+
date?: Date;
|
|
670
|
+
empty: boolean;
|
|
671
|
+
isToday?: boolean;
|
|
672
|
+
isStart?: boolean;
|
|
673
|
+
isEnd?: boolean;
|
|
674
|
+
inRange?: boolean;
|
|
675
|
+
disabled?: boolean;
|
|
676
|
+
index?: number;
|
|
677
|
+
}
|
|
678
|
+
declare class NgccDatePickerCalendar implements OnInit, OnChanges {
|
|
679
|
+
dateSelected: EventEmitter<Date>;
|
|
680
|
+
closed: EventEmitter<void>;
|
|
681
|
+
startDate: Date | null;
|
|
682
|
+
endDate: Date | null;
|
|
683
|
+
minDate: Date | null;
|
|
684
|
+
maxDate: Date | null;
|
|
685
|
+
disabledDates: Date[] | null;
|
|
686
|
+
locale: string;
|
|
687
|
+
format: 'MM/DD/YYYY' | 'DD/MM/YYYY' | 'YYYY-MM-DD';
|
|
688
|
+
emitDateObjects: boolean;
|
|
689
|
+
private _startDate;
|
|
690
|
+
private _endDate;
|
|
691
|
+
private _minDate;
|
|
692
|
+
private _maxDate;
|
|
693
|
+
private _disabledDates;
|
|
694
|
+
private _locale;
|
|
695
|
+
private _format;
|
|
696
|
+
private _emitDateObjects;
|
|
697
|
+
hoverDate: _angular_core.WritableSignal<Date | null>;
|
|
698
|
+
private now;
|
|
699
|
+
private yearRangeStart;
|
|
700
|
+
private yearRangeEnd;
|
|
701
|
+
readonly yearRange: _angular_core.Signal<number[]>;
|
|
702
|
+
currentMonth: _angular_core.WritableSignal<number>;
|
|
703
|
+
currentYear: _angular_core.WritableSignal<number>;
|
|
704
|
+
focusedIndex: _angular_core.WritableSignal<number | null>;
|
|
705
|
+
monthNames: string[];
|
|
706
|
+
weekDays: string[];
|
|
707
|
+
cells: _angular_core.Signal<NgccCalendarCell[]>;
|
|
708
|
+
weeks: _angular_core.Signal<NgccCalendarCell[][]>;
|
|
709
|
+
ngOnInit(): void;
|
|
710
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
711
|
+
getStartDate: () => Date | null;
|
|
712
|
+
getEndDate: () => Date | null;
|
|
713
|
+
getMinDate: () => Date | null;
|
|
714
|
+
getMaxDate: () => Date | null;
|
|
715
|
+
getDisabledDates: () => Date[] | null;
|
|
716
|
+
getLocale: () => string;
|
|
717
|
+
getFormat: () => "MM/DD/YYYY" | "DD/MM/YYYY" | "YYYY-MM-DD";
|
|
718
|
+
getEmitDateObjects: () => boolean;
|
|
719
|
+
private syncMonthYearFromStartDate;
|
|
720
|
+
onMonthChange(event: Event): void;
|
|
721
|
+
onYearChange(event: Event): void;
|
|
722
|
+
private initLocaleLabels;
|
|
723
|
+
handleKey(event: KeyboardEvent): void;
|
|
724
|
+
prevMonth(): void;
|
|
725
|
+
nextMonth(): void;
|
|
726
|
+
private buildNgccCalendarCells;
|
|
727
|
+
select(cell: NgccCalendarCell): void;
|
|
728
|
+
setHover(d: Date | null): void;
|
|
729
|
+
clearHover(): void;
|
|
730
|
+
goToToday(): void;
|
|
731
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccDatePickerCalendar, never>;
|
|
732
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccDatePickerCalendar, "ngcc-date-picker-calendar", never, { "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "format": { "alias": "format"; "required": false; }; "emitDateObjects": { "alias": "emitDateObjects"; "required": false; }; }, { "dateSelected": "dateSelected"; "closed": "closed"; }, never, never, true, never>;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
type NgccInputType = 'text' | 'email' | 'password' | 'number';
|
|
736
|
+
type NgccInputSize = 'sm' | 'md' | 'lg';
|
|
737
|
+
|
|
738
|
+
declare class NgccInput implements ControlValueAccessor, OnChanges {
|
|
739
|
+
ngcontrol: NgControl;
|
|
740
|
+
label: string | undefined;
|
|
741
|
+
placeholder: string;
|
|
742
|
+
type: NgccInputType;
|
|
743
|
+
disabled: boolean;
|
|
744
|
+
readonly: boolean;
|
|
745
|
+
required: boolean;
|
|
746
|
+
size: NgccInputSize;
|
|
747
|
+
helperText: string | undefined;
|
|
748
|
+
ariaLabel: string | undefined;
|
|
749
|
+
fluid: boolean;
|
|
750
|
+
skeleton: boolean;
|
|
751
|
+
invalid: boolean | undefined;
|
|
752
|
+
errorMessage: string | undefined;
|
|
753
|
+
value: string;
|
|
754
|
+
valueChange: EventEmitter<string>;
|
|
755
|
+
private readonly _label;
|
|
756
|
+
private readonly _placeholder;
|
|
757
|
+
private readonly _type;
|
|
758
|
+
private readonly _disabled;
|
|
759
|
+
private readonly _readonly;
|
|
760
|
+
private readonly _required;
|
|
761
|
+
private readonly _size;
|
|
762
|
+
private readonly _helperText;
|
|
763
|
+
private readonly _ariaLabel;
|
|
764
|
+
private readonly _fluid;
|
|
765
|
+
private readonly _skeleton;
|
|
766
|
+
private readonly _invalid;
|
|
767
|
+
private readonly _errorMessage;
|
|
768
|
+
private readonly _value;
|
|
769
|
+
private readonly _disabledByForm;
|
|
770
|
+
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
771
|
+
readonly showPassword: _angular_core.WritableSignal<boolean>;
|
|
772
|
+
private static idCounter;
|
|
773
|
+
readonly inputId: string;
|
|
774
|
+
private controlErrors;
|
|
775
|
+
private controlInvalid;
|
|
776
|
+
private controlTouched;
|
|
777
|
+
private controlDirty;
|
|
778
|
+
private localTouched;
|
|
779
|
+
constructor(ngcontrol: NgControl);
|
|
780
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
781
|
+
private syncControlState;
|
|
782
|
+
readonly effectiveType: _angular_core.Signal<NgccInputType>;
|
|
783
|
+
readonly invalid_value: _angular_core.Signal<boolean | undefined>;
|
|
784
|
+
readonly error_msg: _angular_core.Signal<{} | undefined>;
|
|
785
|
+
readonly describedBy: _angular_core.Signal<string | null>;
|
|
786
|
+
readonly computedAriaLabel: _angular_core.Signal<string>;
|
|
787
|
+
readonly hostClasses: _angular_core.Signal<string>;
|
|
788
|
+
private onChangeFn;
|
|
789
|
+
private onTouchedFn;
|
|
790
|
+
onInput(event: Event): void;
|
|
791
|
+
onBlur(): void;
|
|
792
|
+
togglePasswordVisibility(): void;
|
|
793
|
+
writeValue(val: string): void;
|
|
794
|
+
registerOnChange(fn: (val: string) => void): void;
|
|
795
|
+
registerOnTouched(fn: () => void): void;
|
|
796
|
+
setDisabledState(isDisabled: boolean): void;
|
|
797
|
+
getValue(): string | null;
|
|
798
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccInput, [{ optional: true; self: true; }]>;
|
|
799
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccInput, "ngcc-input", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "size": { "alias": "size"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "fluid": { "alias": "fluid"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
type NgccInputNumberSize = 'sm' | 'md' | 'lg';
|
|
803
|
+
|
|
804
|
+
type NgccTextAreaSize = 'sm' | 'md' | 'lg';
|
|
805
|
+
|
|
806
|
+
declare class NgccTextAreaComponent implements ControlValueAccessor, OnChanges {
|
|
807
|
+
ngcontrol: NgControl;
|
|
808
|
+
label: string | undefined;
|
|
809
|
+
placeholder: string;
|
|
810
|
+
disabled: boolean;
|
|
811
|
+
readonly: boolean;
|
|
812
|
+
required: boolean;
|
|
813
|
+
size: NgccTextAreaSize;
|
|
814
|
+
helperText: string | undefined;
|
|
815
|
+
ariaLabel: string | undefined;
|
|
816
|
+
fluid: boolean;
|
|
817
|
+
skeleton: boolean;
|
|
818
|
+
rows: number;
|
|
819
|
+
maxLength: number | undefined;
|
|
820
|
+
minLength: number | undefined;
|
|
821
|
+
invalid: boolean | undefined;
|
|
822
|
+
errorMessage: string | undefined;
|
|
823
|
+
set value(val: string);
|
|
824
|
+
get value(): string;
|
|
825
|
+
valueChange: EventEmitter<string>;
|
|
826
|
+
private readonly _value;
|
|
827
|
+
private readonly _label;
|
|
828
|
+
private readonly _placeholder;
|
|
829
|
+
private readonly _disabled;
|
|
830
|
+
private readonly _readonly;
|
|
831
|
+
private readonly _required;
|
|
832
|
+
private readonly _size;
|
|
833
|
+
private readonly _helperText;
|
|
834
|
+
private readonly _ariaLabel;
|
|
835
|
+
private readonly _fluid;
|
|
836
|
+
private readonly _skeleton;
|
|
837
|
+
private readonly _rows;
|
|
838
|
+
private readonly _maxLength;
|
|
839
|
+
private readonly _minLength;
|
|
840
|
+
private readonly _invalid;
|
|
841
|
+
private readonly _errorMessage;
|
|
842
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
843
|
+
getLabel(): string | undefined;
|
|
844
|
+
getPlaceholder(): string;
|
|
845
|
+
getDisabled(): boolean;
|
|
846
|
+
getReadonly(): boolean;
|
|
847
|
+
getRequired(): boolean;
|
|
848
|
+
getSize(): NgccTextAreaSize;
|
|
849
|
+
getHelperText(): string | undefined;
|
|
850
|
+
getAriaLabel(): string | undefined;
|
|
851
|
+
getFluid(): boolean;
|
|
852
|
+
getSkeleton(): boolean;
|
|
853
|
+
getRows(): number;
|
|
854
|
+
getMaxLength(): number | undefined;
|
|
855
|
+
getMinLength(): number | undefined;
|
|
856
|
+
getInvalid(): boolean | undefined;
|
|
857
|
+
getErrorMessage(): string | undefined;
|
|
858
|
+
private static idCounter;
|
|
859
|
+
readonly inputId: string;
|
|
860
|
+
private controlErrors;
|
|
861
|
+
private controlInvalid;
|
|
862
|
+
private controlTouched;
|
|
863
|
+
private controlDirty;
|
|
864
|
+
private localTouched;
|
|
865
|
+
constructor(ngcontrol: NgControl);
|
|
866
|
+
private syncControlState;
|
|
867
|
+
readonly invalid_value: _angular_core.Signal<boolean | undefined>;
|
|
868
|
+
readonly error_msg: _angular_core.Signal<string | undefined>;
|
|
869
|
+
readonly describedBy: _angular_core.Signal<string | null>;
|
|
870
|
+
readonly computedAriaLabel: _angular_core.Signal<string>;
|
|
871
|
+
readonly hostClasses: _angular_core.Signal<string>;
|
|
872
|
+
private onChangeFn;
|
|
873
|
+
private onTouchedFn;
|
|
874
|
+
onInput(event: Event): void;
|
|
875
|
+
onBlur(): void;
|
|
876
|
+
writeValue(val: string): void;
|
|
877
|
+
registerOnChange(fn: (val: string) => void): void;
|
|
878
|
+
registerOnTouched(fn: () => void): void;
|
|
879
|
+
setDisabledState(isDisabled: boolean): void;
|
|
880
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTextAreaComponent, [{ optional: true; self: true; }]>;
|
|
881
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTextAreaComponent, "ngcc-text-area", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "size": { "alias": "size"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "fluid": { "alias": "fluid"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
type NgccModalVariant = 'default' | 'passive' | 'danger';
|
|
885
|
+
type NgccModalSize = 'sm' | 'md' | 'lg';
|
|
886
|
+
|
|
887
|
+
declare class NgccModal implements OnDestroy, OnChanges {
|
|
888
|
+
private readonly renderer;
|
|
889
|
+
private readonly host;
|
|
890
|
+
open: boolean;
|
|
891
|
+
variant: NgccModalVariant;
|
|
892
|
+
size: NgccModalSize;
|
|
893
|
+
closeOnOverlayClick: boolean;
|
|
894
|
+
primaryDisabled: boolean;
|
|
895
|
+
title: string;
|
|
896
|
+
primaryLabel: string;
|
|
897
|
+
secondaryLabel: string;
|
|
898
|
+
titleId: string;
|
|
899
|
+
openChange: EventEmitter<boolean>;
|
|
900
|
+
closed: EventEmitter<void>;
|
|
901
|
+
submitted: EventEmitter<void>;
|
|
902
|
+
secondaryClicked: EventEmitter<void>;
|
|
903
|
+
private readonly _open;
|
|
904
|
+
private readonly _variant;
|
|
905
|
+
private readonly _size;
|
|
906
|
+
private readonly _closeOnOverlayClick;
|
|
907
|
+
private readonly _primaryDisabled;
|
|
908
|
+
private readonly _title;
|
|
909
|
+
private readonly _primaryLabel;
|
|
910
|
+
private readonly _secondaryLabel;
|
|
911
|
+
private lastFocusedElement;
|
|
912
|
+
private removeKeyListener?;
|
|
913
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
914
|
+
constructor();
|
|
915
|
+
ngOnDestroy(): void;
|
|
916
|
+
openModal(): void;
|
|
917
|
+
close(): void;
|
|
918
|
+
submit(): void;
|
|
919
|
+
onSecondaryClick(): void;
|
|
920
|
+
onOverlayClick(event: Event): void;
|
|
921
|
+
private trapFocus;
|
|
922
|
+
getOpen(): boolean;
|
|
923
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccModal, never>;
|
|
924
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccModal, "ngcc-modal", never, { "open": { "alias": "open"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "closeOnOverlayClick": { "alias": "closeOnOverlayClick"; "required": false; }; "primaryDisabled": { "alias": "primaryDisabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; "primaryLabel": { "alias": "primaryLabel"; "required": false; }; "secondaryLabel": { "alias": "secondaryLabel"; "required": false; }; }, { "openChange": "openChange"; "closed": "closed"; "submitted": "submitted"; "secondaryClicked": "secondaryClicked"; }, never, ["*"], true, never>;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
928
|
+
type TooltipAlign = 'start' | 'center' | 'end';
|
|
929
|
+
|
|
930
|
+
declare class NgccTooltip implements OnDestroy, OnChanges {
|
|
931
|
+
private renderer;
|
|
932
|
+
private static tooltipCount;
|
|
933
|
+
description: string | TemplateRef<unknown> | undefined;
|
|
934
|
+
disabled: boolean;
|
|
935
|
+
placement: TooltipPlacement;
|
|
936
|
+
align: TooltipAlign;
|
|
937
|
+
autoAlign: boolean;
|
|
938
|
+
enterDelayMs: number;
|
|
939
|
+
leaveDelayMs: number;
|
|
940
|
+
open: boolean | undefined;
|
|
941
|
+
private readonly _description;
|
|
942
|
+
private readonly _disabled;
|
|
943
|
+
private readonly _placement;
|
|
944
|
+
private readonly _align;
|
|
945
|
+
private readonly _autoAlign;
|
|
946
|
+
private readonly _enterDelayMs;
|
|
947
|
+
private readonly _leaveDelayMs;
|
|
948
|
+
private readonly _open;
|
|
949
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
950
|
+
readonly new_placement: _angular_core.WritableSignal<TooltipPlacement>;
|
|
951
|
+
private timeoutId?;
|
|
952
|
+
private readonly id;
|
|
953
|
+
readonly tooltipId: () => string;
|
|
954
|
+
trigger: ElementRef<HTMLElement>;
|
|
955
|
+
tooltipRef?: ElementRef<HTMLElement>;
|
|
956
|
+
private hostEl;
|
|
957
|
+
private rafId;
|
|
958
|
+
private resizeObserver?;
|
|
959
|
+
private listenersAdded;
|
|
960
|
+
private unlistenResize?;
|
|
961
|
+
private unlistenScroll?;
|
|
962
|
+
private isDestroyed;
|
|
963
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
964
|
+
constructor(renderer: Renderer2);
|
|
965
|
+
private updateAutoPlacementBound;
|
|
966
|
+
private lookupElements;
|
|
967
|
+
private updateAutoPlacement;
|
|
968
|
+
private setupAutoAlignResources;
|
|
969
|
+
private teardownAutoAlignResources;
|
|
970
|
+
readonly hostClasses: _angular_core.Signal<string>;
|
|
971
|
+
onMouseEnter(): void;
|
|
972
|
+
onMouseLeave(): void;
|
|
973
|
+
onFocusIn(): void;
|
|
974
|
+
onFocusOut(): void;
|
|
975
|
+
onKeyUp(event: KeyboardEvent): void;
|
|
976
|
+
isTemplate(value: unknown): value is TemplateRef<unknown>;
|
|
977
|
+
readonly descriptionTemplate: () => TemplateRef<unknown> | null;
|
|
978
|
+
getDescription(): string | TemplateRef<unknown> | undefined;
|
|
979
|
+
ngOnDestroy(): void;
|
|
980
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTooltip, never>;
|
|
981
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTooltip, "ngcc-tooltip", never, { "description": { "alias": "description"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "align": { "alias": "align"; "required": false; }; "autoAlign": { "alias": "autoAlign"; "required": false; }; "enterDelayMs": { "alias": "enterDelayMs"; "required": false; }; "leaveDelayMs": { "alias": "leaveDelayMs"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
declare class NgccSkeleton implements OnChanges {
|
|
985
|
+
/** Optional width override (e.g. "100%", "150px") */
|
|
986
|
+
width: string | null;
|
|
987
|
+
/** Optional height override */
|
|
988
|
+
height: string | null;
|
|
989
|
+
radius: string | null;
|
|
990
|
+
/** Rounded style (for avatar-like shapes) */
|
|
991
|
+
rounded: boolean;
|
|
992
|
+
private readonly _width;
|
|
993
|
+
private readonly _height;
|
|
994
|
+
private readonly _radius;
|
|
995
|
+
private readonly _rounded;
|
|
996
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
997
|
+
getRounded(): boolean;
|
|
998
|
+
/** Normalize value: append "px" if numeric */
|
|
999
|
+
private normalizeSize;
|
|
1000
|
+
/** Computed width and height (applied to host + internal element) */
|
|
1001
|
+
protected readonly computedWidth: _angular_core.Signal<string>;
|
|
1002
|
+
protected readonly computedHeight: _angular_core.Signal<string>;
|
|
1003
|
+
/** Computed radius (radius > rounded > none) */
|
|
1004
|
+
protected readonly computedRadius: _angular_core.Signal<string | null>;
|
|
1005
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccSkeleton, never>;
|
|
1006
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccSkeleton, "ngcc-skeleton", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, {}, never, never, true, never>;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* NgccTabComponent
|
|
1011
|
+
* -----------------------
|
|
1012
|
+
* Represents an individual tab inside a Tabs container.
|
|
1013
|
+
* Supports string or template headings, cached rendering, and emits when selected.
|
|
1014
|
+
*
|
|
1015
|
+
* Example:
|
|
1016
|
+
* ```html
|
|
1017
|
+
* <ngcc-tab heading="Overview">
|
|
1018
|
+
* Tab 1 content
|
|
1019
|
+
* </ngcc-tab>
|
|
1020
|
+
* ```
|
|
1021
|
+
*
|
|
1022
|
+
* With a custom heading:
|
|
1023
|
+
* ```html
|
|
1024
|
+
* <ng-template #customHeading>
|
|
1025
|
+
* <fa-icon icon="user"></fa-icon>
|
|
1026
|
+
* Profile
|
|
1027
|
+
* </ng-template>
|
|
1028
|
+
*
|
|
1029
|
+
* <ngcc-tab [heading]="customHeading">
|
|
1030
|
+
* Profile details...
|
|
1031
|
+
* </ngcc-tab>
|
|
1032
|
+
* ```
|
|
1033
|
+
*/
|
|
1034
|
+
declare class NgccTab {
|
|
1035
|
+
private static counter;
|
|
1036
|
+
readonly heading: _angular_core.InputSignal<string | TemplateRef<unknown>>;
|
|
1037
|
+
readonly title: _angular_core.InputSignal<string | null>;
|
|
1038
|
+
readonly context: _angular_core.InputSignal<unknown>;
|
|
1039
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1040
|
+
readonly tabIndex: _angular_core.WritableSignal<number | null>;
|
|
1041
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
1042
|
+
readonly cacheActive: _angular_core.WritableSignal<boolean>;
|
|
1043
|
+
readonly tabContent: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
1044
|
+
readonly templateContext: _angular_core.InputSignal<unknown>;
|
|
1045
|
+
readonly active: _angular_core.WritableSignal<boolean>;
|
|
1046
|
+
setActive(value: boolean): void;
|
|
1047
|
+
readonly selected: _angular_core.OutputEmitterRef<void>;
|
|
1048
|
+
readonly headingIsTemplate: _angular_core.Signal<boolean>;
|
|
1049
|
+
doSelect(): void;
|
|
1050
|
+
protected shouldRender(): boolean;
|
|
1051
|
+
protected isTemplate(value: unknown): value is TemplateRef<unknown>;
|
|
1052
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTab, never>;
|
|
1053
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTab, "ngcc-tab", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "tabContent": { "alias": "tabContent"; "required": false; "isSignal": true; }; "templateContext": { "alias": "templateContext"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, never, ["*"], true, never>;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
type NgccTabPosition = 'top' | 'bottom';
|
|
1057
|
+
type NgccTabType = 'line' | 'contained';
|
|
1058
|
+
|
|
1059
|
+
declare class NgccBaseTabHeader {
|
|
1060
|
+
readonly cacheActive: _angular_core.InputSignal<boolean>;
|
|
1061
|
+
readonly followFocus: _angular_core.InputSignal<boolean | undefined>;
|
|
1062
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
1063
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
1064
|
+
readonly contentBefore: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
1065
|
+
readonly contentAfter: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
1066
|
+
readonly type: _angular_core.InputSignal<NgccTabType>;
|
|
1067
|
+
headerContainer: ElementRef<HTMLElement>;
|
|
1068
|
+
currentSelectedTab: number;
|
|
1069
|
+
readonly OVERFLOW_BUTTON_OFFSET = 44;
|
|
1070
|
+
readonly longPressMultiplier = 3;
|
|
1071
|
+
readonly clickMultiplier = 1.5;
|
|
1072
|
+
protected longPressInterval: ReturnType<typeof setTimeout> | null;
|
|
1073
|
+
protected tickInterval: ReturnType<typeof setInterval> | null;
|
|
1074
|
+
protected readonly elementRef: ElementRef<any>;
|
|
1075
|
+
protected readonly changeDetectorRef: ChangeDetectorRef;
|
|
1076
|
+
protected readonly renderer: Renderer2;
|
|
1077
|
+
readonly hasHorizontalOverflow: _angular_core.Signal<boolean>;
|
|
1078
|
+
readonly leftOverflowNavButtonHidden: _angular_core.Signal<boolean>;
|
|
1079
|
+
readonly rightOverflowNavButtonHidden: _angular_core.Signal<boolean>;
|
|
1080
|
+
handleScroll(): void;
|
|
1081
|
+
handleOverflowNavClick(direction: number, numOftabs?: number): void;
|
|
1082
|
+
handleOverflowNavMouseDown(direction: number): void;
|
|
1083
|
+
handleOverflowNavMouseUp(): void;
|
|
1084
|
+
onTabFocus(index: number): void;
|
|
1085
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccBaseTabHeader, never>;
|
|
1086
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccBaseTabHeader, "ngcc-base-tab-header", never, { "cacheActive": { "alias": "cacheActive"; "required": false; "isSignal": true; }; "followFocus": { "alias": "followFocus"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; "isSignal": true; }; "contentBefore": { "alias": "contentBefore"; "required": false; "isSignal": true; }; "contentAfter": { "alias": "contentAfter"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
declare class NgccTabHeaders extends NgccBaseTabHeader implements OnInit, OnChanges, AfterContentInit, AfterViewInit, OnDestroy {
|
|
1090
|
+
tabInput: readonly NgccTab[] | null;
|
|
1091
|
+
routerIntegration: boolean;
|
|
1092
|
+
private readonly _tabInput;
|
|
1093
|
+
private readonly _routerIntegration;
|
|
1094
|
+
getTabInput(): readonly NgccTab[] | null;
|
|
1095
|
+
getRouterIntegration(): boolean;
|
|
1096
|
+
private readonly router;
|
|
1097
|
+
private readonly destroyRef;
|
|
1098
|
+
readonly firstVisibleTab = 0;
|
|
1099
|
+
private readonly tabQuery;
|
|
1100
|
+
private readonly allTabHeaders;
|
|
1101
|
+
protected readonly tabs: _angular_core.WritableSignal<readonly NgccTab[] | QueryList<NgccTab> | null>;
|
|
1102
|
+
private resizeObserver;
|
|
1103
|
+
private readonly cdr;
|
|
1104
|
+
private listChangesSub;
|
|
1105
|
+
private readonly injector;
|
|
1106
|
+
private destroyEffect?;
|
|
1107
|
+
constructor();
|
|
1108
|
+
ngOnInit(): void;
|
|
1109
|
+
ngAfterViewInit(): void;
|
|
1110
|
+
ngAfterContentInit(): void;
|
|
1111
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1112
|
+
private syncWithRouter;
|
|
1113
|
+
protected setFirstTab(): void;
|
|
1114
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
1115
|
+
selectTab(tab: NgccTab, index: number): void;
|
|
1116
|
+
private moveFocus;
|
|
1117
|
+
get tabsArray(): NgccTab[];
|
|
1118
|
+
getHeadingTemplate(tab: NgccTab): TemplateRef<unknown> | null;
|
|
1119
|
+
ngOnDestroy(): void;
|
|
1120
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTabHeaders, never>;
|
|
1121
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTabHeaders, "ngcc-tab-headers", never, { "tabInput": { "alias": "tabInput"; "required": false; }; "routerIntegration": { "alias": "routerIntegration"; "required": false; }; }, {}, ["tabQuery"], never, true, never>;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
declare class NgccTabs implements AfterViewInit, OnChanges {
|
|
1125
|
+
position: NgccTabPosition;
|
|
1126
|
+
cacheActive: boolean;
|
|
1127
|
+
followFocus: boolean;
|
|
1128
|
+
isNavigation: boolean;
|
|
1129
|
+
ariaLabel: string | undefined;
|
|
1130
|
+
ariaLabelledBy: string | undefined;
|
|
1131
|
+
type: NgccTabType;
|
|
1132
|
+
skeleton: boolean;
|
|
1133
|
+
routerIntegration: boolean;
|
|
1134
|
+
private readonly _position;
|
|
1135
|
+
private readonly _cacheActive;
|
|
1136
|
+
private readonly _followFocus;
|
|
1137
|
+
private readonly _isNavigation;
|
|
1138
|
+
private readonly _ariaLabel;
|
|
1139
|
+
private readonly _ariaLabelledBy;
|
|
1140
|
+
private readonly _type;
|
|
1141
|
+
private readonly _skeleton;
|
|
1142
|
+
private readonly _routerIntegration;
|
|
1143
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1144
|
+
getPosition(): NgccTabPosition;
|
|
1145
|
+
getCacheActive(): boolean;
|
|
1146
|
+
getFollowFocus(): boolean;
|
|
1147
|
+
getIsNavigation(): boolean;
|
|
1148
|
+
getAriaLabel(): string | undefined;
|
|
1149
|
+
getAriaLabelledBy(): string | undefined;
|
|
1150
|
+
getType(): NgccTabType;
|
|
1151
|
+
getSkeleton(): boolean;
|
|
1152
|
+
getRouterIntegration(): boolean;
|
|
1153
|
+
private readonly injector;
|
|
1154
|
+
tabs: _angular_core.Signal<readonly NgccTab[]>;
|
|
1155
|
+
tabHeaders: NgccTabHeaders;
|
|
1156
|
+
private beforeTplRef?;
|
|
1157
|
+
private afterTplRef?;
|
|
1158
|
+
readonly beforeTpl: _angular_core.WritableSignal<TemplateRef<unknown> | null>;
|
|
1159
|
+
readonly afterTpl: _angular_core.WritableSignal<TemplateRef<unknown> | null>;
|
|
1160
|
+
readonly hasTabHeaders: _angular_core.Signal<boolean>;
|
|
1161
|
+
constructor();
|
|
1162
|
+
ngAfterViewInit(): void;
|
|
1163
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTabs, never>;
|
|
1164
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTabs, "ngcc-tabs", never, { "position": { "alias": "position"; "required": false; }; "cacheActive": { "alias": "cacheActive"; "required": false; }; "followFocus": { "alias": "followFocus"; "required": false; }; "isNavigation": { "alias": "isNavigation"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; }; "type": { "alias": "type"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "routerIntegration": { "alias": "routerIntegration"; "required": false; }; }, {}, ["tabs"], ["*", "[before]", "[after]"], true, never>;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
declare class NgccTabsSkeleton implements OnChanges {
|
|
1168
|
+
/**
|
|
1169
|
+
* Input number of skeleton tabs to render (default 5)
|
|
1170
|
+
*/
|
|
1171
|
+
numOftabs: number;
|
|
1172
|
+
private readonly _numOftabs;
|
|
1173
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1174
|
+
/**
|
|
1175
|
+
* Computed array to iterate skeleton placeholders
|
|
1176
|
+
*/
|
|
1177
|
+
readonly numOfSkeletonTabs: _angular_core.Signal<any[]>;
|
|
1178
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTabsSkeleton, never>;
|
|
1179
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTabsSkeleton, "ngcc-tabs-skeleton", never, { "numOftabs": { "alias": "numOftabs"; "required": false; }; }, {}, never, never, true, never>;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
type BaseThemeNamesType = 'white' | 'g10' | 'g90' | 'g100' | 'rounded' | 'curved';
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* Sets the initial theme on the HTML element.
|
|
1186
|
+
* Call this once in your consuming app or Storybook preview.
|
|
1187
|
+
*/
|
|
1188
|
+
declare function initNgccTheme(theme?: BaseThemeNamesType): void;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* WCAG 2.1 Color Accessibility Utilities
|
|
1192
|
+
*
|
|
1193
|
+
* Enterprise-grade color contrast and accessibility utilities
|
|
1194
|
+
* following WCAG 2.1 AA and AAA guidelines.
|
|
1195
|
+
*
|
|
1196
|
+
* @see https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
|
|
1197
|
+
* @see https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html
|
|
1198
|
+
*/
|
|
1199
|
+
type WCAGLevel = 'AA' | 'AAA';
|
|
1200
|
+
type TextSize = 'normal' | 'large';
|
|
1201
|
+
interface NgccRGB {
|
|
1202
|
+
r: number;
|
|
1203
|
+
g: number;
|
|
1204
|
+
b: number;
|
|
1205
|
+
}
|
|
1206
|
+
interface NgccHSL {
|
|
1207
|
+
h: number;
|
|
1208
|
+
s: number;
|
|
1209
|
+
l: number;
|
|
1210
|
+
}
|
|
1211
|
+
interface NgccContrastResult {
|
|
1212
|
+
ratio: number;
|
|
1213
|
+
passesAA: boolean;
|
|
1214
|
+
passesAAA: boolean;
|
|
1215
|
+
passesAALarge: boolean;
|
|
1216
|
+
passesAAALarge: boolean;
|
|
1217
|
+
}
|
|
1218
|
+
interface NgccAccessibleColorPair {
|
|
1219
|
+
foreground: string;
|
|
1220
|
+
background: string;
|
|
1221
|
+
contrastRatio: number;
|
|
1222
|
+
wcagLevel: WCAGLevel | 'fail';
|
|
1223
|
+
adjustments?: {
|
|
1224
|
+
originalForeground: string;
|
|
1225
|
+
wasAdjusted: boolean;
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
interface NgccColorScale {
|
|
1229
|
+
50: string;
|
|
1230
|
+
100: string;
|
|
1231
|
+
200: string;
|
|
1232
|
+
300: string;
|
|
1233
|
+
400: string;
|
|
1234
|
+
500: string;
|
|
1235
|
+
600: string;
|
|
1236
|
+
700: string;
|
|
1237
|
+
800: string;
|
|
1238
|
+
900: string;
|
|
1239
|
+
}
|
|
1240
|
+
declare const WCAG_CONTRAST: {
|
|
1241
|
+
readonly AA_NORMAL: 4.5;
|
|
1242
|
+
readonly AA_LARGE: 3;
|
|
1243
|
+
readonly AAA_NORMAL: 7;
|
|
1244
|
+
readonly AAA_LARGE: 4.5;
|
|
1245
|
+
};
|
|
1246
|
+
/**
|
|
1247
|
+
* Parse hex color to NgccRGB
|
|
1248
|
+
*/
|
|
1249
|
+
declare function hexToRgb(hex: string): NgccRGB;
|
|
1250
|
+
/**
|
|
1251
|
+
* Convert NgccRGB to hex
|
|
1252
|
+
*/
|
|
1253
|
+
declare function rgbToHex(rgb: NgccRGB): string;
|
|
1254
|
+
/**
|
|
1255
|
+
* Convert NgccRGB to NgccHSL
|
|
1256
|
+
*/
|
|
1257
|
+
declare function rgbToHsl(rgb: NgccRGB): NgccHSL;
|
|
1258
|
+
/**
|
|
1259
|
+
* Convert NgccHSL to NgccRGB
|
|
1260
|
+
*/
|
|
1261
|
+
declare function hslToRgb(hsl: NgccHSL): NgccRGB;
|
|
1262
|
+
/**
|
|
1263
|
+
* Convert hex to NgccHSL
|
|
1264
|
+
*/
|
|
1265
|
+
declare function hexToHsl(hex: string): NgccHSL;
|
|
1266
|
+
/**
|
|
1267
|
+
* Convert NgccHSL to hex
|
|
1268
|
+
*/
|
|
1269
|
+
declare function hslToHex(hsl: NgccHSL): string;
|
|
1270
|
+
/**
|
|
1271
|
+
* Calculate relative luminance per WCAG 2.1 specification
|
|
1272
|
+
* @see https://www.w3.org/WAI/GL/wiki/Relative_luminance
|
|
1273
|
+
*/
|
|
1274
|
+
declare function getRelativeLuminance(hex: string): number;
|
|
1275
|
+
/**
|
|
1276
|
+
* Calculate contrast ratio between two colors per WCAG 2.1
|
|
1277
|
+
* @returns Contrast ratio (1:1 to 21:1)
|
|
1278
|
+
*/
|
|
1279
|
+
declare function getContrastRatio(foreground: string, background: string): number;
|
|
1280
|
+
/**
|
|
1281
|
+
* Check if contrast meets WCAG requirements
|
|
1282
|
+
*/
|
|
1283
|
+
declare function checkContrast(foreground: string, background: string): NgccContrastResult;
|
|
1284
|
+
/**
|
|
1285
|
+
* Adjust a color's lightness to meet target contrast ratio
|
|
1286
|
+
*/
|
|
1287
|
+
declare function adjustColorForContrast(color: string, background: string, targetRatio?: number, maxIterations?: number): string;
|
|
1288
|
+
/**
|
|
1289
|
+
* Get WCAG-compliant text color for a background
|
|
1290
|
+
*/
|
|
1291
|
+
declare function getAccessibleTextColor(background: string, preferredColor?: string, level?: WCAGLevel): string;
|
|
1292
|
+
/**
|
|
1293
|
+
* Create an accessible color pair
|
|
1294
|
+
*/
|
|
1295
|
+
declare function createAccessibleColorPair(foreground: string, background: string, level?: WCAGLevel): NgccAccessibleColorPair;
|
|
1296
|
+
/**
|
|
1297
|
+
* Generate a 10-step color scale from a base color
|
|
1298
|
+
* Ensures WCAG compliance at appropriate steps
|
|
1299
|
+
*/
|
|
1300
|
+
declare function generateColorScale(baseColor: string): NgccColorScale;
|
|
1301
|
+
/**
|
|
1302
|
+
* Generate Carbon-compatible interactive color states
|
|
1303
|
+
*/
|
|
1304
|
+
declare function generateInteractiveStates(baseColor: string, background: string): {
|
|
1305
|
+
base: string;
|
|
1306
|
+
hover: string;
|
|
1307
|
+
active: string;
|
|
1308
|
+
focus: string;
|
|
1309
|
+
disabled: string;
|
|
1310
|
+
textOnColor: string;
|
|
1311
|
+
};
|
|
1312
|
+
/**
|
|
1313
|
+
* Generate WCAG-compliant focus indicator color
|
|
1314
|
+
* Must have 3:1 contrast against adjacent colors
|
|
1315
|
+
*/
|
|
1316
|
+
declare function getFocusIndicatorColor(adjacentColor: string, preferredColor?: string): string;
|
|
1317
|
+
interface NgccAccessibilityIssue {
|
|
1318
|
+
type: 'contrast' | 'focus' | 'color-only';
|
|
1319
|
+
severity: 'error' | 'warning';
|
|
1320
|
+
message: string;
|
|
1321
|
+
token: string;
|
|
1322
|
+
currentValue: string;
|
|
1323
|
+
suggestedValue?: string;
|
|
1324
|
+
contrastRatio?: number;
|
|
1325
|
+
requiredRatio?: number;
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Validate a color token against WCAG requirements
|
|
1329
|
+
*/
|
|
1330
|
+
declare function validateColorToken(tokenName: string, foreground: string, background: string, level?: WCAGLevel, isLargeText?: boolean): NgccAccessibilityIssue | null;
|
|
1331
|
+
interface NgccDerivedColorPalette {
|
|
1332
|
+
primary: string;
|
|
1333
|
+
secondary: string;
|
|
1334
|
+
danger: string;
|
|
1335
|
+
success: string;
|
|
1336
|
+
warning: string;
|
|
1337
|
+
info: string;
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Derive a full semantic color palette from a single brand color.
|
|
1341
|
+
*
|
|
1342
|
+
* - Secondary: complementary (180° hue rotation)
|
|
1343
|
+
* - Danger: fixed red hue (~0°), saturation from brand
|
|
1344
|
+
* - Success: fixed green hue (~130°), saturation from brand
|
|
1345
|
+
* - Warning: fixed yellow hue (~45°), saturation from brand
|
|
1346
|
+
* - Info: analogous shift (30° toward blue)
|
|
1347
|
+
*/
|
|
1348
|
+
declare function derivePaletteFromBrand(brandColor: string): NgccDerivedColorPalette;
|
|
1349
|
+
|
|
1350
|
+
interface NgccWCAGConfig {
|
|
1351
|
+
/** Target WCAG compliance level */
|
|
1352
|
+
level: WCAGLevel;
|
|
1353
|
+
/** Auto-adjust colors that don't meet contrast requirements */
|
|
1354
|
+
autoAdjust: boolean;
|
|
1355
|
+
/** Report accessibility issues to console */
|
|
1356
|
+
reportIssues: boolean;
|
|
1357
|
+
/** Minimum contrast ratio for UI elements (non-text) */
|
|
1358
|
+
uiContrastRatio: number;
|
|
1359
|
+
}
|
|
1360
|
+
interface NgccThemeAccessibilityReport {
|
|
1361
|
+
/** Overall WCAG compliance status */
|
|
1362
|
+
compliant: boolean;
|
|
1363
|
+
/** Target level checked */
|
|
1364
|
+
level: WCAGLevel;
|
|
1365
|
+
/** List of accessibility issues found */
|
|
1366
|
+
issues: NgccAccessibilityIssue[];
|
|
1367
|
+
/** Token validation results */
|
|
1368
|
+
tokenValidation: Record<string, NgccTokenValidationResult>;
|
|
1369
|
+
/** Timestamp of validation */
|
|
1370
|
+
timestamp: Date;
|
|
1371
|
+
}
|
|
1372
|
+
interface NgccTokenValidationResult {
|
|
1373
|
+
token: string;
|
|
1374
|
+
foreground: string;
|
|
1375
|
+
background: string;
|
|
1376
|
+
contrastRatio: number;
|
|
1377
|
+
passesAA: boolean;
|
|
1378
|
+
passesAAA: boolean;
|
|
1379
|
+
adjusted?: string;
|
|
1380
|
+
}
|
|
1381
|
+
interface NgccColorThemeConfig {
|
|
1382
|
+
/** Single brand color input */
|
|
1383
|
+
brandColor: string;
|
|
1384
|
+
/** Derived primary color (same as brandColor) */
|
|
1385
|
+
primary: string;
|
|
1386
|
+
/** Derived secondary color (complementary) */
|
|
1387
|
+
secondary: string;
|
|
1388
|
+
/** Derived danger color */
|
|
1389
|
+
danger: string;
|
|
1390
|
+
/** Derived success color */
|
|
1391
|
+
success: string;
|
|
1392
|
+
/** Derived warning color */
|
|
1393
|
+
warning: string;
|
|
1394
|
+
/** Derived info color */
|
|
1395
|
+
info: string;
|
|
1396
|
+
/** Generated color scale for primary */
|
|
1397
|
+
primaryScale?: NgccColorScale;
|
|
1398
|
+
/** Generated color scale for secondary */
|
|
1399
|
+
secondaryScale?: NgccColorScale;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Carbon Theme Metadata
|
|
1404
|
+
*
|
|
1405
|
+
* Minimal metadata for each Carbon theme. All actual base token values
|
|
1406
|
+
* are applied by Carbon's SCSS via the [data-carbon-theme] attribute selector
|
|
1407
|
+
* in custom-themes.scss. This metadata provides only what the service
|
|
1408
|
+
* needs for WCAG contrast calculations.
|
|
1409
|
+
*/
|
|
1410
|
+
type CarbonThemeName = 'white' | 'g10' | 'g90' | 'g100';
|
|
1411
|
+
interface NgccThemeMetadata {
|
|
1412
|
+
name: CarbonThemeName;
|
|
1413
|
+
isDark: boolean;
|
|
1414
|
+
background: string;
|
|
1415
|
+
/** Secondary button background color (needed for text-on-button WCAG check) */
|
|
1416
|
+
secondaryButtonBg: string;
|
|
1417
|
+
}
|
|
1418
|
+
declare const themeMetadata: Record<CarbonThemeName, NgccThemeMetadata>;
|
|
1419
|
+
declare function isThemeDark(theme: CarbonThemeName): boolean;
|
|
1420
|
+
declare function getThemeBackground(theme: CarbonThemeName): string;
|
|
1421
|
+
declare function getThemeSecondaryButtonBg(theme: CarbonThemeName): string;
|
|
1422
|
+
declare function getAvailableThemes(): CarbonThemeName[];
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Color Theme Service with WCAG 2.1 Compliance
|
|
1426
|
+
*
|
|
1427
|
+
* Accepts a single brand color and auto-generates all derived colors.
|
|
1428
|
+
* Base theme tokens are applied by Carbon's SCSS via [data-carbon-theme].
|
|
1429
|
+
* Dynamic tokens (interactive, button, link, etc.) are applied as inline CSS overrides.
|
|
1430
|
+
*/
|
|
1431
|
+
declare class NgccColorThemeService {
|
|
1432
|
+
private static readonly FALLBACK_BRAND_COLOR;
|
|
1433
|
+
readonly baseTheme: _angular_core.WritableSignal<CarbonThemeName>;
|
|
1434
|
+
readonly brandColor: _angular_core.WritableSignal<string>;
|
|
1435
|
+
private readonly defaultBrandColor;
|
|
1436
|
+
/** WCAG configuration */
|
|
1437
|
+
readonly wcagConfig: _angular_core.WritableSignal<NgccWCAGConfig>;
|
|
1438
|
+
/** Current accessibility report */
|
|
1439
|
+
readonly accessibilityReport: _angular_core.WritableSignal<NgccThemeAccessibilityReport | null>;
|
|
1440
|
+
/** Full palette derived from the single brand color */
|
|
1441
|
+
readonly derivedPalette: _angular_core.Signal<NgccDerivedColorPalette>;
|
|
1442
|
+
/** Convenience accessors derived from palette */
|
|
1443
|
+
readonly primaryColor: _angular_core.Signal<string>;
|
|
1444
|
+
readonly secondaryColor: _angular_core.Signal<string>;
|
|
1445
|
+
readonly dangerColor: _angular_core.Signal<string>;
|
|
1446
|
+
readonly successColor: _angular_core.Signal<string>;
|
|
1447
|
+
readonly warningccolor: _angular_core.Signal<string>;
|
|
1448
|
+
readonly infoColor: _angular_core.Signal<string>;
|
|
1449
|
+
readonly isDarkMode: _angular_core.Signal<boolean>;
|
|
1450
|
+
readonly backgroundColor: _angular_core.Signal<string>;
|
|
1451
|
+
readonly primaryScale: _angular_core.Signal<_assistanz_carbideui.NgccColorScale>;
|
|
1452
|
+
readonly secondaryScale: _angular_core.Signal<_assistanz_carbideui.NgccColorScale>;
|
|
1453
|
+
readonly availableThemes: _angular_core.WritableSignal<CarbonThemeName[]>;
|
|
1454
|
+
/**
|
|
1455
|
+
* Chart color configuration for Carbon Charts integration
|
|
1456
|
+
*/
|
|
1457
|
+
readonly chartColorConfig: _angular_core.Signal<{
|
|
1458
|
+
theme: CarbonThemeName;
|
|
1459
|
+
colorScale: Record<string, string>;
|
|
1460
|
+
}>;
|
|
1461
|
+
constructor();
|
|
1462
|
+
private generateChartColorScale;
|
|
1463
|
+
setBaseTheme(theme: CarbonThemeName): void;
|
|
1464
|
+
/** Set the brand color. All other colors are derived automatically. */
|
|
1465
|
+
updateBrandColor(color: string): void;
|
|
1466
|
+
/** Set the default brand color used on initialization and reset. */
|
|
1467
|
+
setDefaultBrandColor(color: string): void;
|
|
1468
|
+
/** @deprecated Use updateBrandColor() instead. */
|
|
1469
|
+
updatePrimary(color: string): void;
|
|
1470
|
+
setWcagLevel(level: WCAGLevel): void;
|
|
1471
|
+
setAutoAdjust(enabled: boolean): void;
|
|
1472
|
+
getThemeConfig(): NgccColorThemeConfig;
|
|
1473
|
+
validateColor(color: string, isLargeText?: boolean): NgccTokenValidationResult;
|
|
1474
|
+
private styleElement;
|
|
1475
|
+
private applyTheme;
|
|
1476
|
+
private updateThemeStyleTag;
|
|
1477
|
+
resetOverrides(): void;
|
|
1478
|
+
private generateWcagCompliantTokens;
|
|
1479
|
+
private generateAccessibilityReport;
|
|
1480
|
+
private getVisitedLinkColor;
|
|
1481
|
+
private getHighlightColor;
|
|
1482
|
+
private chartPalette;
|
|
1483
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccColorThemeService, never>;
|
|
1484
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgccColorThemeService>;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
declare abstract class NgccBaseChart<TOptions extends object> implements OnDestroy, OnChanges {
|
|
1488
|
+
data: Record<string, unknown>[];
|
|
1489
|
+
options: TOptions;
|
|
1490
|
+
loading: boolean;
|
|
1491
|
+
noDataMessage: string;
|
|
1492
|
+
ariaLabel: string;
|
|
1493
|
+
protected readonly _data: _angular_core.WritableSignal<Record<string, unknown>[]>;
|
|
1494
|
+
protected readonly _options: _angular_core.WritableSignal<TOptions>;
|
|
1495
|
+
protected readonly _loading: _angular_core.WritableSignal<boolean>;
|
|
1496
|
+
protected readonly _noDataMessage: _angular_core.WritableSignal<string>;
|
|
1497
|
+
protected readonly _ariaLabel: _angular_core.WritableSignal<string>;
|
|
1498
|
+
protected readonly chartContainer: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1499
|
+
protected chart?: Chart;
|
|
1500
|
+
protected resizeObserver?: ResizeObserver;
|
|
1501
|
+
protected readonly colorThemeService: NgccColorThemeService;
|
|
1502
|
+
protected readonly hasData: _angular_core.Signal<boolean>;
|
|
1503
|
+
protected readonly chartHeight: _angular_core.Signal<string>;
|
|
1504
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1505
|
+
constructor();
|
|
1506
|
+
protected observeResize(el: HTMLElement): void;
|
|
1507
|
+
protected destroyChart(): void;
|
|
1508
|
+
ngOnDestroy(): void;
|
|
1509
|
+
protected abstract initChart(el: HTMLElement): void;
|
|
1510
|
+
getData(): Record<string, unknown>[];
|
|
1511
|
+
getOptions(): TOptions;
|
|
1512
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccBaseChart<any>, never>;
|
|
1513
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgccBaseChart<any>, never, never, { "data": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "noDataMessage": { "alias": "noDataMessage"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
type NgccChartType = 'bar' | 'stackedBar' | 'line' | 'area' | 'pie' | 'donut';
|
|
1517
|
+
/**
|
|
1518
|
+
* Automatically maps each chart type to its Carbon option type.
|
|
1519
|
+
*/
|
|
1520
|
+
interface NgccChartOptionMap {
|
|
1521
|
+
bar: BarChartOptions;
|
|
1522
|
+
stackedBar: StackedBarChartOptions;
|
|
1523
|
+
line: LineChartOptions;
|
|
1524
|
+
area: AreaChartOptions;
|
|
1525
|
+
pie: PieChartOptions;
|
|
1526
|
+
donut: DonutChartOptions;
|
|
1527
|
+
}
|
|
1528
|
+
/**
|
|
1529
|
+
* A type-safe way to get the right options type for the given chart type.
|
|
1530
|
+
*/
|
|
1531
|
+
type NgccChartOptions<T extends NgccChartType = NgccChartType> = NgccChartOptionMap[T];
|
|
1532
|
+
|
|
1533
|
+
declare class NgccCharts<T extends NgccChartType = 'bar'> extends NgccBaseChart<NgccChartOptions<T>> implements OnChanges {
|
|
1534
|
+
type: T;
|
|
1535
|
+
private readonly _type;
|
|
1536
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1537
|
+
constructor();
|
|
1538
|
+
protected initChart(el: HTMLElement): void;
|
|
1539
|
+
private getMergedOptions;
|
|
1540
|
+
getType(): T;
|
|
1541
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccCharts<any>, never>;
|
|
1542
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccCharts<any>, "ngcc-charts", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
declare class NgccGaugeChart extends NgccBaseChart<GaugeChartOptions> {
|
|
1546
|
+
constructor();
|
|
1547
|
+
protected initChart(el: HTMLElement): void;
|
|
1548
|
+
private getMergedOptions;
|
|
1549
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccGaugeChart, never>;
|
|
1550
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccGaugeChart, "ngcc-gauge-chart", never, {}, {}, never, never, true, never>;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
type AccordionAlign = 'start' | 'end';
|
|
1554
|
+
type AccordionSize = 'sm' | 'md' | 'lg';
|
|
1555
|
+
declare const NGCC_ACCORDION_ALIGN: InjectionToken<() => AccordionAlign>;
|
|
1556
|
+
|
|
1557
|
+
declare class NgccAccordionItem implements AfterViewInit, OnChanges {
|
|
1558
|
+
private el;
|
|
1559
|
+
private readonly parent;
|
|
1560
|
+
/** Alignment provided from parent */
|
|
1561
|
+
readonly align: () => AccordionAlign;
|
|
1562
|
+
/** Title */
|
|
1563
|
+
title: string;
|
|
1564
|
+
/** Default open state */
|
|
1565
|
+
defaultOpen: boolean;
|
|
1566
|
+
/** Disabled state */
|
|
1567
|
+
disabled: boolean;
|
|
1568
|
+
/** Emits when toggled */
|
|
1569
|
+
toggled: EventEmitter<boolean>;
|
|
1570
|
+
/** Unique IDs */
|
|
1571
|
+
private readonly _uuid;
|
|
1572
|
+
readonly id: string;
|
|
1573
|
+
readonly contentId: string;
|
|
1574
|
+
private readonly _title;
|
|
1575
|
+
private readonly _disabled;
|
|
1576
|
+
private readonly _defaultOpen;
|
|
1577
|
+
protected readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
1578
|
+
protected readonly ariaExpanded: _angular_core.Signal<string>;
|
|
1579
|
+
protected readonly className: _angular_core.Signal<"cds--accordion__item cds--accordion__item--active" | "cds--accordion__item">;
|
|
1580
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
1581
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1582
|
+
ngAfterViewInit(): void;
|
|
1583
|
+
toggle(): void;
|
|
1584
|
+
syncWithContainer(openIds: Set<string>): void;
|
|
1585
|
+
/** Keyboard navigation */
|
|
1586
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1587
|
+
/** IDs for accessibility */
|
|
1588
|
+
get buttonId(): string;
|
|
1589
|
+
get contentIdAttr(): string;
|
|
1590
|
+
getTitle(): string;
|
|
1591
|
+
getDisabled(): boolean;
|
|
1592
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccAccordionItem, never>;
|
|
1593
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccAccordionItem, "ngcc-accordion-item", never, { "title": { "alias": "title"; "required": false; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "toggled": "toggled"; }, never, ["*"], true, never>;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
declare class NgccAccordion implements AfterContentInit, OnChanges {
|
|
1597
|
+
/** Allow multiple items to stay open at once */
|
|
1598
|
+
multi: boolean;
|
|
1599
|
+
protected readonly items: _angular_core.Signal<readonly NgccAccordionItem[]>;
|
|
1600
|
+
/** alignment and size as Input decorators */
|
|
1601
|
+
align: AccordionAlign;
|
|
1602
|
+
size: AccordionSize;
|
|
1603
|
+
private readonly _multi;
|
|
1604
|
+
private readonly _align;
|
|
1605
|
+
private readonly _size;
|
|
1606
|
+
private readonly openItems;
|
|
1607
|
+
protected readonly containerClass: _angular_core.Signal<string>;
|
|
1608
|
+
/** array view of open ids */
|
|
1609
|
+
readonly openItemIds: _angular_core.Signal<string[]>;
|
|
1610
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1611
|
+
ngAfterContentInit(): void;
|
|
1612
|
+
getAlign(): AccordionAlign;
|
|
1613
|
+
/** Get the current set of open item IDs (for child components) */
|
|
1614
|
+
getOpenItems(): Set<string>;
|
|
1615
|
+
toggleItem(id: string, shouldOpen: boolean): void;
|
|
1616
|
+
/** Programmatic API */
|
|
1617
|
+
openItem(id: string): void;
|
|
1618
|
+
closeItem(id: string): void;
|
|
1619
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccAccordion, never>;
|
|
1620
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccAccordion, "ngcc-accordion", never, { "multi": { "alias": "multi"; "required": false; }; "align": { "alias": "align"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
type DropdownSize = 'sm' | 'md' | 'lg';
|
|
1624
|
+
interface NgccDropdownItem<T = unknown> {
|
|
1625
|
+
label: string;
|
|
1626
|
+
value: T;
|
|
1627
|
+
disabled?: boolean;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
declare class NgccDropdown<T = unknown> implements ControlValueAccessor, OnChanges {
|
|
1631
|
+
private ngcontrol;
|
|
1632
|
+
private readonly host;
|
|
1633
|
+
private readonly document;
|
|
1634
|
+
private readonly injector;
|
|
1635
|
+
private static idCounter;
|
|
1636
|
+
readonly inputId: string;
|
|
1637
|
+
label: string | undefined;
|
|
1638
|
+
readonly: boolean;
|
|
1639
|
+
required: boolean;
|
|
1640
|
+
helperText: string | undefined;
|
|
1641
|
+
ariaLabel: string | undefined;
|
|
1642
|
+
items: NgccDropdownItem<T>[];
|
|
1643
|
+
placeholder: string;
|
|
1644
|
+
size: DropdownSize;
|
|
1645
|
+
disabled: boolean;
|
|
1646
|
+
multi: boolean;
|
|
1647
|
+
skeleton: boolean;
|
|
1648
|
+
invalid: boolean | undefined;
|
|
1649
|
+
errorMessage: string | undefined;
|
|
1650
|
+
valueChange: EventEmitter<T | T[]>;
|
|
1651
|
+
private readonly _label;
|
|
1652
|
+
private readonly _readonly;
|
|
1653
|
+
private readonly _required;
|
|
1654
|
+
private readonly _helperText;
|
|
1655
|
+
private readonly _ariaLabel;
|
|
1656
|
+
private readonly _items;
|
|
1657
|
+
private readonly _placeholder;
|
|
1658
|
+
private readonly _size;
|
|
1659
|
+
private readonly _disabled;
|
|
1660
|
+
private readonly _multi;
|
|
1661
|
+
private readonly _skeleton;
|
|
1662
|
+
private readonly _invalid;
|
|
1663
|
+
private readonly _errorMessage;
|
|
1664
|
+
protected readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
1665
|
+
protected readonly filteredItems: _angular_core.Signal<NgccDropdownItem<T>[]>;
|
|
1666
|
+
protected readonly filteredItemCount: _angular_core.Signal<number>;
|
|
1667
|
+
private localTouched;
|
|
1668
|
+
protected readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
1669
|
+
protected readonly activeIndex: _angular_core.WritableSignal<number | null>;
|
|
1670
|
+
protected readonly selected: _angular_core.WritableSignal<T | T[] | null>;
|
|
1671
|
+
protected readonly isFocused: _angular_core.WritableSignal<boolean>;
|
|
1672
|
+
private controlTouched;
|
|
1673
|
+
private controlDirty;
|
|
1674
|
+
private controlInvalid;
|
|
1675
|
+
private controlErrors;
|
|
1676
|
+
private internalFocus;
|
|
1677
|
+
private _statusSignal?;
|
|
1678
|
+
private _valueSignal?;
|
|
1679
|
+
protected readonly itemCount: _angular_core.Signal<number>;
|
|
1680
|
+
protected readonly isInvalid: _angular_core.Signal<boolean | undefined>;
|
|
1681
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1682
|
+
getLabel(): string | undefined;
|
|
1683
|
+
getReadonly(): boolean;
|
|
1684
|
+
getRequired(): boolean;
|
|
1685
|
+
getHelperText(): string | undefined;
|
|
1686
|
+
getAriaLabel(): string | undefined;
|
|
1687
|
+
getItems(): NgccDropdownItem<T>[];
|
|
1688
|
+
getPlaceholder(): string;
|
|
1689
|
+
getSize(): DropdownSize;
|
|
1690
|
+
getDisabled(): boolean;
|
|
1691
|
+
getMulti(): boolean;
|
|
1692
|
+
getSkeleton(): boolean;
|
|
1693
|
+
getInvalid(): boolean | undefined;
|
|
1694
|
+
getErrorMessage(): string | undefined;
|
|
1695
|
+
private readonly _disabledByForm;
|
|
1696
|
+
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
1697
|
+
protected readonly displayErrorMessage: _angular_core.Signal<string | null | undefined>;
|
|
1698
|
+
protected readonly triggerClass: _angular_core.Signal<string>;
|
|
1699
|
+
protected readonly computedAriaLabel: _angular_core.Signal<string>;
|
|
1700
|
+
protected readonly lastSelected: _angular_core.Signal<T | null>;
|
|
1701
|
+
constructor(ngcontrol: NgControl);
|
|
1702
|
+
onSearchInput(ev: Event): void;
|
|
1703
|
+
onSearchKeydown(ev: KeyboardEvent): void;
|
|
1704
|
+
toggle(): void;
|
|
1705
|
+
open(): void;
|
|
1706
|
+
close(): void;
|
|
1707
|
+
onItemClick(e: Event, item: NgccDropdownItem<T>): void;
|
|
1708
|
+
selectItem(item: NgccDropdownItem<T>): void;
|
|
1709
|
+
selectIndex(idx: number | null): void;
|
|
1710
|
+
onTriggerKeydown(ev: KeyboardEvent): void;
|
|
1711
|
+
onMenuKeydown(ev: KeyboardEvent): void;
|
|
1712
|
+
onTriggerFocus(): void;
|
|
1713
|
+
onTriggerBlur(_event?: FocusEvent): void;
|
|
1714
|
+
protected isSelected(item: NgccDropdownItem<T>): boolean;
|
|
1715
|
+
private _focusMenu;
|
|
1716
|
+
private _focusTrigger;
|
|
1717
|
+
private _scrollActiveIntoView;
|
|
1718
|
+
private _focusSearchInput;
|
|
1719
|
+
private _firstSelectableIndex;
|
|
1720
|
+
private _lastSelectableIndex;
|
|
1721
|
+
private _nextSelectableIndex;
|
|
1722
|
+
private _prevSelectableIndex;
|
|
1723
|
+
private _activeItemId;
|
|
1724
|
+
protected _isEqual(a: unknown | null, b: unknown | null): boolean;
|
|
1725
|
+
private onChangeFn;
|
|
1726
|
+
private onTouchedFn;
|
|
1727
|
+
writeValue(val: T | T[] | null): void;
|
|
1728
|
+
registerOnChange(fn: (val: T | T[] | null) => void): void;
|
|
1729
|
+
registerOnTouched(fn: () => void): void;
|
|
1730
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1731
|
+
private syncControlState;
|
|
1732
|
+
protected getLabelForSelection(): string;
|
|
1733
|
+
protected itemId: (i: number) => string;
|
|
1734
|
+
/** @internal Used only for test introspection */
|
|
1735
|
+
get debugState(): unknown;
|
|
1736
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccDropdown<any>, [{ optional: true; self: true; }]>;
|
|
1737
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccDropdown<any>, "ngcc-dropdown", never, { "label": { "alias": "label"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "items": { "alias": "items"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multi": { "alias": "multi"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
type NotificationType = 'success' | 'error' | 'info' | 'warning';
|
|
1741
|
+
interface NgccNotificationConfig {
|
|
1742
|
+
/** Unique identifier. If omitted, service will assign */
|
|
1743
|
+
id?: string;
|
|
1744
|
+
type: NotificationType;
|
|
1745
|
+
title: string;
|
|
1746
|
+
subtitle?: string;
|
|
1747
|
+
caption?: string;
|
|
1748
|
+
/** milliseconds before auto-dismiss. 0 or negative = no auto-dismiss and sticky */
|
|
1749
|
+
timeout?: number;
|
|
1750
|
+
/** low contrast style */
|
|
1751
|
+
lowContrast?: boolean;
|
|
1752
|
+
/** whether close button is shown */
|
|
1753
|
+
showClose?: boolean;
|
|
1754
|
+
/** optional action button label & callback */
|
|
1755
|
+
actionLabel?: string;
|
|
1756
|
+
action?: () => void;
|
|
1757
|
+
/** Optional custom icon name (uses NgccIcon) */
|
|
1758
|
+
icon?: string;
|
|
1759
|
+
/** If true, hides the icon completely */
|
|
1760
|
+
hideIcon?: boolean;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
declare class NgccNotification implements OnChanges {
|
|
1764
|
+
cfg: NgccNotificationConfig | undefined;
|
|
1765
|
+
closed: EventEmitter<string>;
|
|
1766
|
+
private readonly _cfg;
|
|
1767
|
+
protected readonly isVisible: _angular_core.WritableSignal<boolean>;
|
|
1768
|
+
private readonly timeoutSig;
|
|
1769
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1770
|
+
constructor();
|
|
1771
|
+
readonly role: _angular_core.Signal<"status" | "alert">;
|
|
1772
|
+
readonly ariaLive: _angular_core.Signal<"assertive" | "polite">;
|
|
1773
|
+
/** Determine icon name (custom or type-based) */
|
|
1774
|
+
readonly iconName: _angular_core.Signal<"add" | "close" | "edit" | "view" | "hide" | "delete" | "warn" | "error" | "calendar" | "copy" | "chevron_left" | "chevron_right" | "chevron_down" | "chevron_up" | "checkmark" | "search" | "sort_icon" | "arrow_up" | "arrow_down" | "info_filled" | "error_filled" | "warning_filled" | "success_filled" | "star" | "cpu" | "memory" | "network" | "disk" | "services" | "notification" | "configuration" | "home" | "renew" | "customer" | "user" | "user_multi" | "user_avatar" | "user_admin" | "location" | "information" | "menu" | "app_switcher" | "overflow_menu_vertical">;
|
|
1775
|
+
close(): void;
|
|
1776
|
+
onAction(): void;
|
|
1777
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccNotification, never>;
|
|
1778
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccNotification, "ngcc-notification", never, { "cfg": { "alias": "cfg"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
declare class NgccNotificationContainer {
|
|
1782
|
+
private readonly notificationSvc;
|
|
1783
|
+
readonly notifications: _angular_core.Signal<_assistanz_carbideui.NgccNotificationConfig[]>;
|
|
1784
|
+
constructor();
|
|
1785
|
+
onClosed(id: string): void;
|
|
1786
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccNotificationContainer, never>;
|
|
1787
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccNotificationContainer, "ngcc-notification-container", never, {}, {}, never, never, true, never>;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
declare class NotificationService {
|
|
1791
|
+
private readonly _notifications;
|
|
1792
|
+
readonly notifications: _angular_core.Signal<NgccNotificationConfig[]>;
|
|
1793
|
+
private nextId;
|
|
1794
|
+
maxVisible: number;
|
|
1795
|
+
show(config: Partial<NgccNotificationConfig>): string;
|
|
1796
|
+
remove(id: string): void;
|
|
1797
|
+
clearAll(): void;
|
|
1798
|
+
private trimToMax;
|
|
1799
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
1800
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
1804
|
+
interface NgccToastConfig {
|
|
1805
|
+
/** Unique identifier. If omitted, service will assign */
|
|
1806
|
+
id?: string;
|
|
1807
|
+
type: ToastType;
|
|
1808
|
+
title: string;
|
|
1809
|
+
subtitle?: string;
|
|
1810
|
+
caption?: string;
|
|
1811
|
+
/** milliseconds before auto-dismiss. 0 or negative = no auto-dismiss and sticky */
|
|
1812
|
+
timeout?: number;
|
|
1813
|
+
/** low contrast style */
|
|
1814
|
+
lowContrast?: boolean;
|
|
1815
|
+
/** whether close button is shown */
|
|
1816
|
+
showClose?: boolean;
|
|
1817
|
+
/** Optional custom icon name (uses NgccIcon) */
|
|
1818
|
+
icon?: string;
|
|
1819
|
+
/** If true, hides the icon completely */
|
|
1820
|
+
hideIcon?: boolean;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
declare class NgccToast implements OnChanges {
|
|
1824
|
+
cfg: NgccToastConfig | undefined;
|
|
1825
|
+
closed: EventEmitter<string>;
|
|
1826
|
+
private readonly _cfg;
|
|
1827
|
+
protected readonly isVisible: _angular_core.WritableSignal<boolean>;
|
|
1828
|
+
private readonly timeoutSig;
|
|
1829
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1830
|
+
constructor();
|
|
1831
|
+
readonly role: _angular_core.Signal<"status" | "alert">;
|
|
1832
|
+
readonly ariaLive: _angular_core.Signal<"assertive" | "polite">;
|
|
1833
|
+
/** Determine icon name (custom or type-based) */
|
|
1834
|
+
readonly iconName: _angular_core.Signal<"add" | "close" | "edit" | "view" | "hide" | "delete" | "warn" | "error" | "calendar" | "copy" | "chevron_left" | "chevron_right" | "chevron_down" | "chevron_up" | "checkmark" | "search" | "sort_icon" | "arrow_up" | "arrow_down" | "info_filled" | "error_filled" | "warning_filled" | "success_filled" | "star" | "cpu" | "memory" | "network" | "disk" | "services" | "notification" | "configuration" | "home" | "renew" | "customer" | "user" | "user_multi" | "user_avatar" | "user_admin" | "location" | "information" | "menu" | "app_switcher" | "overflow_menu_vertical">;
|
|
1835
|
+
close(): void;
|
|
1836
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccToast, never>;
|
|
1837
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccToast, "ngcc-toast", never, { "cfg": { "alias": "cfg"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
declare class NgccToastContainer {
|
|
1841
|
+
private readonly toastSvc;
|
|
1842
|
+
readonly toasts: _angular_core.Signal<_assistanz_carbideui.NgccToastConfig[]>;
|
|
1843
|
+
constructor();
|
|
1844
|
+
onClosed(id: string): void;
|
|
1845
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccToastContainer, never>;
|
|
1846
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccToastContainer, "ngcc-toast-container", never, {}, {}, never, never, true, never>;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
declare class ToastService {
|
|
1850
|
+
private readonly _toasts;
|
|
1851
|
+
readonly toasts: _angular_core.Signal<NgccToastConfig[]>;
|
|
1852
|
+
private nextId;
|
|
1853
|
+
maxVisible: number;
|
|
1854
|
+
show(config: Partial<NgccToastConfig>): string;
|
|
1855
|
+
remove(id: string): void;
|
|
1856
|
+
clearAll(): void;
|
|
1857
|
+
private trimToMax;
|
|
1858
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastService, never>;
|
|
1859
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastService>;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
type SortDirection = 'asc' | 'desc';
|
|
1863
|
+
interface NgccTableColumn<_T = unknown> {
|
|
1864
|
+
key: string;
|
|
1865
|
+
header: string;
|
|
1866
|
+
sortable?: boolean;
|
|
1867
|
+
width?: string | number;
|
|
1868
|
+
align?: 'start' | 'center' | 'end';
|
|
1869
|
+
}
|
|
1870
|
+
interface NgccTableConfig {
|
|
1871
|
+
pagination?: boolean;
|
|
1872
|
+
pageSize?: number;
|
|
1873
|
+
rowSelection?: 'single' | 'multiple' | 'none';
|
|
1874
|
+
search?: {
|
|
1875
|
+
enabled?: boolean;
|
|
1876
|
+
mode?: 'static' | 'dynamic';
|
|
1877
|
+
};
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
declare class NgccTable<T = unknown> implements OnInit, OnChanges {
|
|
1881
|
+
private readonly searchService;
|
|
1882
|
+
columns: NgccTableColumn<T>[];
|
|
1883
|
+
rows: T[];
|
|
1884
|
+
loading: boolean;
|
|
1885
|
+
config: NgccTableConfig;
|
|
1886
|
+
set sortState(val: {
|
|
1887
|
+
key: string;
|
|
1888
|
+
dir: 'asc' | 'desc';
|
|
1889
|
+
} | null);
|
|
1890
|
+
get sortState(): {
|
|
1891
|
+
key: string;
|
|
1892
|
+
dir: 'asc' | 'desc';
|
|
1893
|
+
} | null;
|
|
1894
|
+
sortStateChange: EventEmitter<{
|
|
1895
|
+
key: string;
|
|
1896
|
+
dir: "asc" | "desc";
|
|
1897
|
+
} | null>;
|
|
1898
|
+
rowSelect: EventEmitter<T[]>;
|
|
1899
|
+
searchChange: EventEmitter<string>;
|
|
1900
|
+
private readonly _sortState;
|
|
1901
|
+
private readonly _columns;
|
|
1902
|
+
private readonly _rows;
|
|
1903
|
+
private readonly _loading;
|
|
1904
|
+
private readonly _config;
|
|
1905
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1906
|
+
getColumns(): NgccTableColumn<T>[];
|
|
1907
|
+
getRows(): T[];
|
|
1908
|
+
getLoading(): boolean;
|
|
1909
|
+
getConfig(): NgccTableConfig;
|
|
1910
|
+
getSortStateValue(): {
|
|
1911
|
+
key: string;
|
|
1912
|
+
dir: 'asc' | 'desc';
|
|
1913
|
+
} | null;
|
|
1914
|
+
allowSelection(): boolean;
|
|
1915
|
+
hoveredCol: string | null;
|
|
1916
|
+
private readonly injector;
|
|
1917
|
+
private readonly service;
|
|
1918
|
+
protected readonly searchExpanded: _angular_core.WritableSignal<boolean>;
|
|
1919
|
+
protected readonly currentPage: _angular_core.WritableSignal<number>;
|
|
1920
|
+
protected readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
1921
|
+
protected readonly selected: _angular_core.WritableSignal<Set<number>>;
|
|
1922
|
+
protected readonly processedRows: _angular_core.Signal<T[]>;
|
|
1923
|
+
protected readonly totalPages: _angular_core.Signal<number>;
|
|
1924
|
+
constructor();
|
|
1925
|
+
ngOnInit(): void;
|
|
1926
|
+
protected isSelected(indexOnPage: number): boolean;
|
|
1927
|
+
protected toggleRowSelect(absIndex: number, _row: T): void;
|
|
1928
|
+
protected isAllSelected(): boolean;
|
|
1929
|
+
protected toggleAllRowsSelected(): void;
|
|
1930
|
+
protected readonly isIndeterminate: _angular_core.Signal<boolean>;
|
|
1931
|
+
protected goToPage(idx: number): void;
|
|
1932
|
+
protected getSortIcon(colKey: string): NgccIconNameType;
|
|
1933
|
+
getSortAria(colKey: string): 'ascending' | 'descending' | 'none';
|
|
1934
|
+
getSortAriaLabel(colKey: string): string;
|
|
1935
|
+
protected toggleSort(colKey: string, sortable?: boolean): void;
|
|
1936
|
+
protected toggleSearchExpand(): void;
|
|
1937
|
+
protected handleSearchInput(value: string): void;
|
|
1938
|
+
protected stringify(value: unknown): string;
|
|
1939
|
+
get loadingRows(): unknown[];
|
|
1940
|
+
get columnPlaceholders(): unknown[];
|
|
1941
|
+
getColumnWidth(col: {
|
|
1942
|
+
width?: number | string;
|
|
1943
|
+
}): string | null;
|
|
1944
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTable<any>, never>;
|
|
1945
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTable<any>, "ngcc-table", never, { "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "config": { "alias": "config"; "required": false; }; "sortState": { "alias": "sortState"; "required": false; }; }, { "sortStateChange": "sortStateChange"; "rowSelect": "rowSelect"; "searchChange": "searchChange"; }, never, ["ngcc-table-toolbar"], true, never>;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
declare class NgccTableToolbar implements OnChanges {
|
|
1949
|
+
totalRows: number;
|
|
1950
|
+
searchMode: 'local' | 'remote';
|
|
1951
|
+
placeholder: string;
|
|
1952
|
+
showActions: boolean;
|
|
1953
|
+
searchChanged: EventEmitter<string>;
|
|
1954
|
+
private readonly _totalRows;
|
|
1955
|
+
private readonly _searchMode;
|
|
1956
|
+
private readonly _placeholder;
|
|
1957
|
+
private readonly _showActions;
|
|
1958
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1959
|
+
getTotalRows(): number;
|
|
1960
|
+
getSearchMode(): 'local' | 'remote';
|
|
1961
|
+
getPlaceholder(): string;
|
|
1962
|
+
getShowActions(): boolean;
|
|
1963
|
+
protected readonly isExpanded: _angular_core.WritableSignal<boolean>;
|
|
1964
|
+
protected readonly query: _angular_core.WritableSignal<string>;
|
|
1965
|
+
private readonly searchService;
|
|
1966
|
+
protected readonly showClearButton: _angular_core.Signal<boolean>;
|
|
1967
|
+
constructor();
|
|
1968
|
+
protected toggleSearch(): void;
|
|
1969
|
+
protected handleInput(value: string): void;
|
|
1970
|
+
protected clearSearch(): void;
|
|
1971
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTableToolbar, never>;
|
|
1972
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTableToolbar, "ngcc-table-toolbar", never, { "totalRows": { "alias": "totalRows"; "required": false; }; "searchMode": { "alias": "searchMode"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; }, { "searchChanged": "searchChanged"; }, never, ["[ngcc-toolbar-actions]"], true, never>;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
declare class NgccTableSkeleton implements OnChanges {
|
|
1976
|
+
/** number of placeholder columns */
|
|
1977
|
+
columns: number;
|
|
1978
|
+
/** number of placeholder rows */
|
|
1979
|
+
rows: number;
|
|
1980
|
+
/** skeleton display mode */
|
|
1981
|
+
mode: 'full' | 'rows';
|
|
1982
|
+
private readonly _columns;
|
|
1983
|
+
private readonly _rows;
|
|
1984
|
+
private readonly _mode;
|
|
1985
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1986
|
+
/** computed arrays for template iteration (avoids recreating arrays on each change detection) */
|
|
1987
|
+
protected readonly columnArray: _angular_core.Signal<any[]>;
|
|
1988
|
+
protected readonly rowArray: _angular_core.Signal<any[]>;
|
|
1989
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTableSkeleton, never>;
|
|
1990
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccTableSkeleton, "ngcc-table-skeleton", never, { "columns": { "alias": "columns"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, true, never>;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
declare class NgccTableSearchDirective {
|
|
1994
|
+
private readonly el;
|
|
1995
|
+
private readonly search;
|
|
1996
|
+
constructor();
|
|
1997
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTableSearchDirective, never>;
|
|
1998
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgccTableSearchDirective, "[ngccTableSearch]", never, {}, {}, never, never, true, never>;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
declare class NgccTableSearchService<T = unknown> {
|
|
2002
|
+
readonly query: _angular_core.WritableSignal<string>;
|
|
2003
|
+
readonly searchResults: _angular_core.WritableSignal<T[]>;
|
|
2004
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
2005
|
+
endpoint?: string;
|
|
2006
|
+
constructor();
|
|
2007
|
+
/** Public API for static local filtering (used by NgccTable) */
|
|
2008
|
+
filterLocal(data: T[], columns: string[]): T[];
|
|
2009
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTableSearchService<any>, never>;
|
|
2010
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgccTableSearchService<any>>;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
declare class NgccTableService<T = unknown> {
|
|
2014
|
+
readonly columns: _angular_core.WritableSignal<NgccTableColumn<T>[]>;
|
|
2015
|
+
readonly rows: _angular_core.WritableSignal<T[]>;
|
|
2016
|
+
readonly selectedRowIndexes: _angular_core.WritableSignal<Set<number>>;
|
|
2017
|
+
setColumns(cols: NgccTableColumn<T>[]): void;
|
|
2018
|
+
setRows(rows: T[]): void;
|
|
2019
|
+
toggleSelect(index: number): void;
|
|
2020
|
+
clearSelection(): void;
|
|
2021
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccTableService<any>, never>;
|
|
2022
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgccTableService<any>>;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
declare class NgccPagination implements OnChanges {
|
|
2026
|
+
/** current page (1-based index) */
|
|
2027
|
+
page: number;
|
|
2028
|
+
/** total items in the dataset */
|
|
2029
|
+
totalItems: number;
|
|
2030
|
+
/** page size options */
|
|
2031
|
+
pageSizes: number[];
|
|
2032
|
+
/** currently selected page size */
|
|
2033
|
+
pageSize: number;
|
|
2034
|
+
/** optional looping behavior when using keyboard navigation */
|
|
2035
|
+
loopNavigation: boolean;
|
|
2036
|
+
/** outputs */
|
|
2037
|
+
pageChange: EventEmitter<number>;
|
|
2038
|
+
pageSizeChange: EventEmitter<number>;
|
|
2039
|
+
private readonly _page;
|
|
2040
|
+
private readonly _totalItems;
|
|
2041
|
+
private readonly _pageSizes;
|
|
2042
|
+
private readonly _pageSize;
|
|
2043
|
+
private readonly _loopNavigation;
|
|
2044
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2045
|
+
/** derived state */
|
|
2046
|
+
protected readonly totalPages: _angular_core.Signal<number>;
|
|
2047
|
+
protected readonly startItem: _angular_core.Signal<number>;
|
|
2048
|
+
protected readonly endItem: _angular_core.Signal<number>;
|
|
2049
|
+
protected readonly disablePrev: _angular_core.Signal<boolean>;
|
|
2050
|
+
protected readonly disableNext: _angular_core.Signal<boolean>;
|
|
2051
|
+
/** handlers */
|
|
2052
|
+
protected goToPage(newPage: number): void;
|
|
2053
|
+
protected handlePageSizeChange(event: Event): void;
|
|
2054
|
+
/** ✅ fixed version for keyboard navigation */
|
|
2055
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
2056
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccPagination, never>;
|
|
2057
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccPagination, "ngcc-pagination", never, { "page": { "alias": "page"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "pageSizes": { "alias": "pageSizes"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "loopNavigation": { "alias": "loopNavigation"; "required": false; }; }, { "pageChange": "pageChange"; "pageSizeChange": "pageSizeChange"; }, never, never, true, never>;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
declare class NgccColorThemeSwitcher {
|
|
2061
|
+
private readonly colorService;
|
|
2062
|
+
/** Optional default brand color provided by the consumer */
|
|
2063
|
+
readonly defaultColor: _angular_core.InputSignal<string | undefined>;
|
|
2064
|
+
constructor();
|
|
2065
|
+
/** Signals for reactive template binding */
|
|
2066
|
+
protected readonly brandColor: _angular_core.Signal<string>;
|
|
2067
|
+
protected readonly baseTheme: _angular_core.Signal<_assistanz_carbideui.CarbonThemeName>;
|
|
2068
|
+
/** Derived palette colors for preview */
|
|
2069
|
+
protected readonly primaryColor: _angular_core.Signal<string>;
|
|
2070
|
+
protected readonly secondaryColor: _angular_core.Signal<string>;
|
|
2071
|
+
protected readonly dangerColor: _angular_core.Signal<string>;
|
|
2072
|
+
protected readonly successColor: _angular_core.Signal<string>;
|
|
2073
|
+
protected readonly warningccolor: _angular_core.Signal<string>;
|
|
2074
|
+
protected readonly infoColor: _angular_core.Signal<string>;
|
|
2075
|
+
/** Base Carbon themes */
|
|
2076
|
+
protected readonly themes: _angular_core.WritableSignal<readonly ["white", "g10", "g90", "g100"]>;
|
|
2077
|
+
/** Update handlers */
|
|
2078
|
+
protected onBrandColorChange(value: string): void;
|
|
2079
|
+
protected onBaseThemeChange(theme: 'white' | 'g10' | 'g90' | 'g100'): void;
|
|
2080
|
+
protected resetOverrides(): void;
|
|
2081
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccColorThemeSwitcher, never>;
|
|
2082
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccColorThemeSwitcher, "ngcc-color-theme-switcher", never, { "defaultColor": { "alias": "defaultColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Signals-based, SSR-safe i18n service for Angular applications.
|
|
2087
|
+
* Provides translation functionality with lazy loading, caching, fallback language support,
|
|
2088
|
+
* and parameter interpolation.
|
|
2089
|
+
*/
|
|
2090
|
+
declare class NgccI18nService {
|
|
2091
|
+
private readonly config;
|
|
2092
|
+
private readonly platformId;
|
|
2093
|
+
currentLanguage: _angular_core.WritableSignal<string>;
|
|
2094
|
+
private translationCache;
|
|
2095
|
+
private loadingLanguages;
|
|
2096
|
+
constructor();
|
|
2097
|
+
/**
|
|
2098
|
+
* Get the initial language based on config and browser settings.
|
|
2099
|
+
*/
|
|
2100
|
+
private getInitialLanguage;
|
|
2101
|
+
/**
|
|
2102
|
+
* Set the current language and load translations for that language if needed.
|
|
2103
|
+
* @param language The language code to switch to
|
|
2104
|
+
*/
|
|
2105
|
+
setLanguage(language: string): Promise<void>;
|
|
2106
|
+
/**
|
|
2107
|
+
* Get the current language.
|
|
2108
|
+
*/
|
|
2109
|
+
getLanguage(): string;
|
|
2110
|
+
/**
|
|
2111
|
+
* Load translations for a specific language using the configured loader.
|
|
2112
|
+
* @param language The language code to load
|
|
2113
|
+
*/
|
|
2114
|
+
private loadLanguage;
|
|
2115
|
+
/**
|
|
2116
|
+
* Translate a key with optional parameter interpolation.
|
|
2117
|
+
* Supports {{paramName}} syntax for parameter substitution.
|
|
2118
|
+
* Falls back to fallback language if key is not found in current language.
|
|
2119
|
+
* @param key The translation key
|
|
2120
|
+
* @param params Optional object with parameters to interpolate
|
|
2121
|
+
* @returns The translated string or the key if not found
|
|
2122
|
+
*/
|
|
2123
|
+
t(key: string, params?: Record<string, string | number | boolean>): string;
|
|
2124
|
+
/**
|
|
2125
|
+
* Interpolate parameters in a translation string.
|
|
2126
|
+
* Replaces {{paramName}} with the corresponding parameter value.
|
|
2127
|
+
* @param text The text containing {{param}} placeholders
|
|
2128
|
+
* @param params The parameters to substitute
|
|
2129
|
+
* @returns The interpolated string
|
|
2130
|
+
*/
|
|
2131
|
+
private interpolate;
|
|
2132
|
+
/**
|
|
2133
|
+
* Get all loaded translations for the current language.
|
|
2134
|
+
* Returns an empty object if the language is not loaded.
|
|
2135
|
+
*/
|
|
2136
|
+
getTranslations(): Record<string, string>;
|
|
2137
|
+
/**
|
|
2138
|
+
* Check if a translation key exists in the current language or fallback language.
|
|
2139
|
+
*/
|
|
2140
|
+
has(key: string): boolean;
|
|
2141
|
+
/**
|
|
2142
|
+
* Clear the translation cache.
|
|
2143
|
+
*/
|
|
2144
|
+
clearCache(): void;
|
|
2145
|
+
/**
|
|
2146
|
+
* Get the underlying translation cache (for testing or advanced use cases).
|
|
2147
|
+
* Use with caution in production code.
|
|
2148
|
+
*/
|
|
2149
|
+
getCache(): Map<string, Record<string, string>>;
|
|
2150
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccI18nService, never>;
|
|
2151
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NgccI18nService>;
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* Standalone i18n pipe for Angular templates.
|
|
2156
|
+
* Translates a key using the NgccI18nService and optionally interpolates parameters.
|
|
2157
|
+
* Set to pure: false to update when language changes via the service signal.
|
|
2158
|
+
*
|
|
2159
|
+
* @example
|
|
2160
|
+
* ```html
|
|
2161
|
+
* <!-- Simple translation -->
|
|
2162
|
+
* <p>{{ 'greeting' | ngccI18n }}</p>
|
|
2163
|
+
*
|
|
2164
|
+
* <!-- Translation with parameters -->
|
|
2165
|
+
* <p>{{ 'welcome' | ngccI18n: { name: 'John' } }}</p>
|
|
2166
|
+
* ```
|
|
2167
|
+
*/
|
|
2168
|
+
declare class NgccI18nPipe implements PipeTransform {
|
|
2169
|
+
private readonly i18nService;
|
|
2170
|
+
/**
|
|
2171
|
+
* Transform a translation key to its translated value.
|
|
2172
|
+
* @param key The translation key
|
|
2173
|
+
* @param params Optional parameters for interpolation
|
|
2174
|
+
* @returns The translated string
|
|
2175
|
+
*/
|
|
2176
|
+
transform(key: string, params?: Record<string, string | number | boolean>): string;
|
|
2177
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccI18nPipe, never>;
|
|
2178
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<NgccI18nPipe, "ngccI18n", true>;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
/**
|
|
2182
|
+
* Interface for implementing custom translation loaders.
|
|
2183
|
+
* Implement this interface to provide translations from any source.
|
|
2184
|
+
*/
|
|
2185
|
+
interface NgccI18nLoader {
|
|
2186
|
+
/**
|
|
2187
|
+
* Load translations for a specific language.
|
|
2188
|
+
* @param language The language code (e.g., 'en', 'fr', 'es')
|
|
2189
|
+
* @returns Promise resolving to a Record of translation key-value pairs
|
|
2190
|
+
*/
|
|
2191
|
+
load(language: string): Promise<Record<string, string>>;
|
|
2192
|
+
}
|
|
2193
|
+
/**
|
|
2194
|
+
* Configuration options for the i18n service.
|
|
2195
|
+
*/
|
|
2196
|
+
interface NgccI18nConfig {
|
|
2197
|
+
/**
|
|
2198
|
+
* The initial/default language
|
|
2199
|
+
* @default 'en'
|
|
2200
|
+
*/
|
|
2201
|
+
defaultLanguage?: string;
|
|
2202
|
+
/**
|
|
2203
|
+
* The fallback language to use if a translation is not found in the current language
|
|
2204
|
+
* @default 'en'
|
|
2205
|
+
*/
|
|
2206
|
+
fallbackLanguage?: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* The loader implementation to use for loading translations
|
|
2209
|
+
*/
|
|
2210
|
+
loader: NgccI18nLoader;
|
|
2211
|
+
/**
|
|
2212
|
+
* Optional cache for storing loaded translations to avoid reloading
|
|
2213
|
+
* @default new Map()
|
|
2214
|
+
*/
|
|
2215
|
+
cache?: Map<string, Record<string, string>>;
|
|
2216
|
+
/**
|
|
2217
|
+
* Whether to use the browser's language preference (via navigator.language)
|
|
2218
|
+
* @default false
|
|
2219
|
+
*/
|
|
2220
|
+
useBrowserLanguage?: boolean;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* HTTP-based translation loader that fetches translation files from a server.
|
|
2225
|
+
* Uses the native fetch API so it can be instantiated outside Angular's DI context.
|
|
2226
|
+
*
|
|
2227
|
+
* @example
|
|
2228
|
+
* ```typescript
|
|
2229
|
+
* // Load from JSON files
|
|
2230
|
+
* const loader = new HttpNgccI18nLoader('/assets/i18n');
|
|
2231
|
+
* // Will load from: /assets/i18n/en.json, /assets/i18n/fr.json, etc.
|
|
2232
|
+
*
|
|
2233
|
+
* // Load from API endpoint with no extension
|
|
2234
|
+
* const loader = new HttpNgccI18nLoader('/api/translations', '');
|
|
2235
|
+
* // Will load from: /api/translations/en, /api/translations/fr, etc.
|
|
2236
|
+
* ```
|
|
2237
|
+
*/
|
|
2238
|
+
declare class HttpNgccI18nLoader implements NgccI18nLoader {
|
|
2239
|
+
private baseUrl;
|
|
2240
|
+
private fileExtension;
|
|
2241
|
+
/**
|
|
2242
|
+
* Create an HTTP loader.
|
|
2243
|
+
* @param baseUrl The base URL or path for translation files (without language suffix)
|
|
2244
|
+
* @param fileExtension The file extension to append (default: '.json')
|
|
2245
|
+
*/
|
|
2246
|
+
constructor(baseUrl: string, fileExtension?: string);
|
|
2247
|
+
/**
|
|
2248
|
+
* Load translations from an HTTP endpoint using the native fetch API.
|
|
2249
|
+
* @param language The language code (e.g., 'en', 'fr')
|
|
2250
|
+
* @returns Promise resolving to the translation object
|
|
2251
|
+
*/
|
|
2252
|
+
load(language: string): Promise<Record<string, string>>;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* Provides the NgccI18n service and its configuration to the application.
|
|
2257
|
+
* This is the single entry point for setting up i18n — it registers both
|
|
2258
|
+
* the configuration token and the service itself.
|
|
2259
|
+
*
|
|
2260
|
+
* @example
|
|
2261
|
+
* ```typescript
|
|
2262
|
+
* // In main.ts for standalone apps
|
|
2263
|
+
* import { provideNgccI18n, HttpNgccI18nLoader } from '@carbideui/components';
|
|
2264
|
+
*
|
|
2265
|
+
* bootstrapApplication(AppComponent, {
|
|
2266
|
+
* providers: [
|
|
2267
|
+
* provideNgccI18n({
|
|
2268
|
+
* defaultLanguage: 'en',
|
|
2269
|
+
* fallbackLanguage: 'en',
|
|
2270
|
+
* loader: new HttpNgccI18nLoader('/assets/i18n'),
|
|
2271
|
+
* useBrowserLanguage: true,
|
|
2272
|
+
* }),
|
|
2273
|
+
* ],
|
|
2274
|
+
* });
|
|
2275
|
+
* ```
|
|
2276
|
+
*
|
|
2277
|
+
* @param config The i18n configuration
|
|
2278
|
+
* @returns EnvironmentProviders to be used with bootstrapApplication or in a providers array
|
|
2279
|
+
*/
|
|
2280
|
+
declare function provideNgccI18n(config: NgccI18nConfig): EnvironmentProviders;
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Injection token for providing i18n configuration.
|
|
2284
|
+
* Use with provideNgccI18n(config) to set up the i18n service.
|
|
2285
|
+
*/
|
|
2286
|
+
declare const NGCC_I18N_CONFIG: InjectionToken<NgccI18nConfig>;
|
|
2287
|
+
|
|
2288
|
+
interface NgccHeaderNavItem {
|
|
2289
|
+
id: string;
|
|
2290
|
+
label: string;
|
|
2291
|
+
href?: string;
|
|
2292
|
+
isCurrentPage?: boolean;
|
|
2293
|
+
children?: NgccHeaderNavItem[];
|
|
2294
|
+
}
|
|
2295
|
+
type NgccHeaderMenuTrigger = 'click' | 'mouseover';
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* Enterprise-grade Carbon Design System header shell.
|
|
2299
|
+
*
|
|
2300
|
+
* Composition API — project children in document order:
|
|
2301
|
+
* 1. <ngcc-hamburger> optional — side-nav toggle
|
|
2302
|
+
* 2. <ngcc-header-name> brand + product name link
|
|
2303
|
+
* 3. <ngcc-header-navigation> horizontal nav bar
|
|
2304
|
+
* 4. <ngcc-header-global> right-side action buttons
|
|
2305
|
+
*
|
|
2306
|
+
* Full example:
|
|
2307
|
+
* ```html
|
|
2308
|
+
* <ngcc-header ariaLabel="My Product" skipTo="main-content">
|
|
2309
|
+
* <ngcc-hamburger [(active)]="sideNavOpen" />
|
|
2310
|
+
* <ngcc-header-name brand="CarbideUI" productName="MyApp" href="/" />
|
|
2311
|
+
*
|
|
2312
|
+
* <ngcc-header-navigation ariaLabel="MyApp">
|
|
2313
|
+
* <ngcc-header-item href="/" [isCurrentPage]="true">Dashboard</ngcc-header-item>
|
|
2314
|
+
* <ngcc-header-menu title="Settings">
|
|
2315
|
+
* <ngcc-header-menu-item href="/settings/profile">Profile</ngcc-header-menu-item>
|
|
2316
|
+
* </ngcc-header-menu>
|
|
2317
|
+
* </ngcc-header-navigation>
|
|
2318
|
+
*
|
|
2319
|
+
* <ngcc-header-global>
|
|
2320
|
+
* <ngcc-header-action ariaLabel="Search" [(active)]="searchOpen">
|
|
2321
|
+
* <svg>…</svg>
|
|
2322
|
+
* </ngcc-header-action>
|
|
2323
|
+
* </ngcc-header-global>
|
|
2324
|
+
* </ngcc-header>
|
|
2325
|
+
*
|
|
2326
|
+
* <ngcc-header-panel [expanded]="searchOpen" ariaLabel="Search">…</ngcc-header-panel>
|
|
2327
|
+
* ```
|
|
2328
|
+
*/
|
|
2329
|
+
declare class NgccHeader implements OnChanges {
|
|
2330
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2331
|
+
/**
|
|
2332
|
+
* Accessible label for the <header> landmark.
|
|
2333
|
+
* Should match the product name shown in NgccHeaderName.
|
|
2334
|
+
*/
|
|
2335
|
+
ariaLabel: string;
|
|
2336
|
+
private readonly _ariaLabel;
|
|
2337
|
+
/**
|
|
2338
|
+
* ID of the main content element for the skip link.
|
|
2339
|
+
* Renders a visually-hidden skip link for keyboard/screen-reader users.
|
|
2340
|
+
* Pass an empty string to disable.
|
|
2341
|
+
*/
|
|
2342
|
+
skipTo: string;
|
|
2343
|
+
private readonly _skipTo;
|
|
2344
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeader, never>;
|
|
2345
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeader, "ngcc-header", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "skipTo": { "alias": "skipTo"; "required": false; }; }, {}, never, ["ngcc-hamburger", "ngcc-header-name", "ngcc-header-navigation", "ngcc-header-global", "*"], true, never>;
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
/**
|
|
2349
|
+
* Brand prefix + product name link in the header.
|
|
2350
|
+
*
|
|
2351
|
+
* <ngcc-header-name brand="CarbideUI" productName="My App" href="/" />
|
|
2352
|
+
*/
|
|
2353
|
+
declare class NgccHeaderName implements OnChanges {
|
|
2354
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2355
|
+
/** Brand prefix, e.g. "CarbideUI" */
|
|
2356
|
+
brand: string;
|
|
2357
|
+
private readonly _brand;
|
|
2358
|
+
/** Product / suite name shown after the brand */
|
|
2359
|
+
productName: string;
|
|
2360
|
+
private readonly _productName;
|
|
2361
|
+
/** Link destination */
|
|
2362
|
+
href: string;
|
|
2363
|
+
private readonly _href;
|
|
2364
|
+
/** Combined title attribute for accessibility */
|
|
2365
|
+
readonly titleAttr: _angular_core.Signal<string>;
|
|
2366
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeaderName, never>;
|
|
2367
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeaderName, "ngcc-header-name", never, { "brand": { "alias": "brand"; "required": false; }; "productName": { "alias": "productName"; "required": false; }; "href": { "alias": "href"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
* Horizontal navigation bar inside the header shell.
|
|
2372
|
+
* Project <ngcc-header-item> and <ngcc-header-menu> elements as children.
|
|
2373
|
+
*
|
|
2374
|
+
* DOM structure:
|
|
2375
|
+
* <nav class="cds--header__nav" aria-label="…">
|
|
2376
|
+
* <ul class="cds--header__menu-bar" role="menubar">
|
|
2377
|
+
* <!-- projected items / menus -->
|
|
2378
|
+
* </ul>
|
|
2379
|
+
* </nav>
|
|
2380
|
+
*/
|
|
2381
|
+
declare class NgccHeaderNavigation implements OnChanges {
|
|
2382
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2383
|
+
/** Accessible label for the <nav> landmark */
|
|
2384
|
+
ariaLabel: string;
|
|
2385
|
+
private readonly _ariaLabel;
|
|
2386
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeaderNavigation, never>;
|
|
2387
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeaderNavigation, "ngcc-header-navigation", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* A single navigation link inside <ngcc-header-navigation>.
|
|
2392
|
+
* Renders as <li role="none"><a role="menuitem">…</a></li>
|
|
2393
|
+
*
|
|
2394
|
+
* <ngcc-header-item href="/dashboard" [isCurrentPage]="true">Dashboard</ngcc-header-item>
|
|
2395
|
+
*/
|
|
2396
|
+
declare class NgccHeaderItem implements OnChanges {
|
|
2397
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2398
|
+
/** Navigation URL */
|
|
2399
|
+
href: string;
|
|
2400
|
+
private readonly _href;
|
|
2401
|
+
/** Marks this link as the active / current page */
|
|
2402
|
+
isCurrentPage: boolean;
|
|
2403
|
+
private readonly _isCurrentPage;
|
|
2404
|
+
/** Tab index override */
|
|
2405
|
+
tabIndex: number;
|
|
2406
|
+
private readonly _tabIndex;
|
|
2407
|
+
itemClick: EventEmitter<Event>;
|
|
2408
|
+
readonly linkClasses: _angular_core.Signal<string>;
|
|
2409
|
+
onClick(event: Event): void;
|
|
2410
|
+
onKeydown(event: KeyboardEvent): void;
|
|
2411
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeaderItem, never>;
|
|
2412
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeaderItem, "ngcc-header-item", never, { "href": { "alias": "href"; "required": false; }; "isCurrentPage": { "alias": "isCurrentPage"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "itemClick": "itemClick"; }, never, ["*"], true, never>;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* Flyout dropdown navigation menu for the header nav bar.
|
|
2417
|
+
*
|
|
2418
|
+
* DOM structure (host is display:contents):
|
|
2419
|
+
* <li class="cds--header__submenu" role="none">
|
|
2420
|
+
* <button class="cds--header__menu-title" aria-expanded="…">Title <chevron/></button>
|
|
2421
|
+
* <ul class="cds--header__menu" role="menu">
|
|
2422
|
+
* <!-- projected <ngcc-header-menu-item> elements -->
|
|
2423
|
+
* </ul>
|
|
2424
|
+
* </li>
|
|
2425
|
+
*
|
|
2426
|
+
* Carbon CSS shows/hides the dropdown via:
|
|
2427
|
+
* .cds--header__menu-title[aria-expanded="true"] + .cds--header__menu { display: block }
|
|
2428
|
+
*
|
|
2429
|
+
* Full keyboard support: Enter/Space, Arrow Up/Down, Home, End, Escape, Tab
|
|
2430
|
+
*/
|
|
2431
|
+
declare class NgccHeaderMenu {
|
|
2432
|
+
/** Visible label on the trigger button */
|
|
2433
|
+
get title(): string;
|
|
2434
|
+
set title(value: string);
|
|
2435
|
+
private readonly _title;
|
|
2436
|
+
/** How the menu opens — 'click' (default) or 'mouseover' */
|
|
2437
|
+
get trigger(): NgccHeaderMenuTrigger;
|
|
2438
|
+
set trigger(value: NgccHeaderMenuTrigger);
|
|
2439
|
+
private readonly _trigger;
|
|
2440
|
+
/** Two-way bindable expanded state — use [(expanded)]="myVar" in parent */
|
|
2441
|
+
get expanded(): boolean;
|
|
2442
|
+
set expanded(value: boolean);
|
|
2443
|
+
expandedChange: EventEmitter<boolean>;
|
|
2444
|
+
private readonly _expanded;
|
|
2445
|
+
/**
|
|
2446
|
+
* Signal-based view queries (Angular v17.2+).
|
|
2447
|
+
* viewChild.required() — refs are unconditionally in the template (not in @if),
|
|
2448
|
+
* so they are always present after view init: Signal<T>, never Signal<T|undefined>.
|
|
2449
|
+
*/
|
|
2450
|
+
readonly triggerRef: _angular_core.Signal<ElementRef<HTMLButtonElement>>;
|
|
2451
|
+
readonly menuListRef: _angular_core.Signal<ElementRef<HTMLUListElement>>;
|
|
2452
|
+
private _hoverTimeout;
|
|
2453
|
+
constructor();
|
|
2454
|
+
expand(): void;
|
|
2455
|
+
collapse(): void;
|
|
2456
|
+
toggle(): void;
|
|
2457
|
+
onTriggerClick(): void;
|
|
2458
|
+
onTriggerMouseEnter(): void;
|
|
2459
|
+
onTriggerMouseLeave(): void;
|
|
2460
|
+
/** Full ARIA keyboard pattern for the menu trigger button */
|
|
2461
|
+
onTriggerKeydown(event: KeyboardEvent): void;
|
|
2462
|
+
onMenuKeydown(event: KeyboardEvent): void;
|
|
2463
|
+
onMenuFocusOut(event: FocusEvent): void;
|
|
2464
|
+
onMenuMouseEnter(): void;
|
|
2465
|
+
onMenuMouseLeave(): void;
|
|
2466
|
+
private getMenuItems;
|
|
2467
|
+
private focusMenuItemAt;
|
|
2468
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeaderMenu, never>;
|
|
2469
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeaderMenu, "ngcc-header-menu", never, { "title": { "alias": "title"; "required": false; }; "trigger": { "alias": "trigger"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, { "expandedChange": "expandedChange"; }, never, ["*"], true, never>;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* A single item inside an <ngcc-header-menu> dropdown.
|
|
2474
|
+
* Renders as <li role="none"><a role="menuitem">…</a></li>
|
|
2475
|
+
*/
|
|
2476
|
+
declare class NgccHeaderMenuItem implements OnChanges {
|
|
2477
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2478
|
+
href: string;
|
|
2479
|
+
private readonly _href;
|
|
2480
|
+
isCurrentPage: boolean;
|
|
2481
|
+
private readonly _isCurrentPage;
|
|
2482
|
+
disabled: boolean;
|
|
2483
|
+
private readonly _disabled;
|
|
2484
|
+
itemClick: EventEmitter<Event>;
|
|
2485
|
+
readonly linkClasses: _angular_core.Signal<string>;
|
|
2486
|
+
onClick(event: Event): void;
|
|
2487
|
+
onKeydown(event: KeyboardEvent): void;
|
|
2488
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeaderMenuItem, never>;
|
|
2489
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeaderMenuItem, "ngcc-header-menu-item", never, { "href": { "alias": "href"; "required": false; }; "isCurrentPage": { "alias": "isCurrentPage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "itemClick": "itemClick"; }, never, ["*"], true, never>;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
/**
|
|
2493
|
+
* Container for global header action buttons (right-hand side).
|
|
2494
|
+
* Project <ngcc-header-action> elements as children.
|
|
2495
|
+
*
|
|
2496
|
+
* <ngcc-header-global>
|
|
2497
|
+
* <ngcc-header-action ariaLabel="Search">…</ngcc-header-action>
|
|
2498
|
+
* <ngcc-header-action ariaLabel="Notifications">…</ngcc-header-action>
|
|
2499
|
+
* </ngcc-header-global>
|
|
2500
|
+
*/
|
|
2501
|
+
declare class NgccHeaderGlobal {
|
|
2502
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeaderGlobal, never>;
|
|
2503
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeaderGlobal, "ngcc-header-global", never, {}, {}, never, ["*"], true, never>;
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Global header action button (search, notifications, app-switcher, etc.).
|
|
2508
|
+
* Placed inside <ngcc-header-global>.
|
|
2509
|
+
*
|
|
2510
|
+
* Renders via NgccButton (ghost, icon-only). Use [(active)] for two-way panel toggling:
|
|
2511
|
+
* <ngcc-header-action ariaLabel="Search" iconName="search" [(active)]="searchOpen" />
|
|
2512
|
+
*/
|
|
2513
|
+
declare class NgccHeaderAction implements OnChanges {
|
|
2514
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2515
|
+
private elementRef;
|
|
2516
|
+
/** Accessible label for the button */
|
|
2517
|
+
ariaLabel: string;
|
|
2518
|
+
private readonly _ariaLabel;
|
|
2519
|
+
/** Two-way bindable active/panel-open state — use [(active)]="myVar" in parent */
|
|
2520
|
+
active: boolean;
|
|
2521
|
+
activeChange: EventEmitter<boolean>;
|
|
2522
|
+
private readonly _active;
|
|
2523
|
+
/** Icon to display — any key from the NgccIcon registry */
|
|
2524
|
+
iconName: NgccIconNameType | undefined;
|
|
2525
|
+
private readonly _iconName;
|
|
2526
|
+
/** Set false to make the button fire-and-forget (no toggle behaviour) */
|
|
2527
|
+
toggleable: boolean;
|
|
2528
|
+
private readonly _toggleable;
|
|
2529
|
+
actionClick: EventEmitter<MouseEvent>;
|
|
2530
|
+
onClick(event: MouseEvent): void;
|
|
2531
|
+
onDocumentClick(event: MouseEvent): void;
|
|
2532
|
+
onEscape(): void;
|
|
2533
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeaderAction, never>;
|
|
2534
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeaderAction, "ngcc-header-action", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "active": { "alias": "active"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; }, { "activeChange": "activeChange"; "actionClick": "actionClick"; }, never, never, true, never>;
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* Sliding panel linked to a header action (notifications, app-switcher, etc.).
|
|
2539
|
+
* Typically placed immediately after <ngcc-header> in the page layout.
|
|
2540
|
+
*
|
|
2541
|
+
* <ngcc-header-panel [expanded]="notifOpen" ariaLabel="Notifications">
|
|
2542
|
+
* <!-- panel content -->
|
|
2543
|
+
* </ngcc-header-panel>
|
|
2544
|
+
*/
|
|
2545
|
+
declare class NgccHeaderPanel implements OnChanges {
|
|
2546
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2547
|
+
expanded: boolean;
|
|
2548
|
+
private readonly _expanded;
|
|
2549
|
+
ariaLabel: string;
|
|
2550
|
+
private readonly _ariaLabel;
|
|
2551
|
+
get panelClasses(): string;
|
|
2552
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHeaderPanel, never>;
|
|
2553
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHeaderPanel, "ngcc-header-panel", never, { "expanded": { "alias": "expanded"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Hamburger / close toggle button for side-nav.
|
|
2558
|
+
*
|
|
2559
|
+
* Two-way bindable via [(active)]:
|
|
2560
|
+
* <ngcc-hamburger [(active)]="sideNavOpen" />
|
|
2561
|
+
*/
|
|
2562
|
+
declare class NgccHamburger implements OnChanges {
|
|
2563
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2564
|
+
/** Two-way bindable open/close state — use [(active)]="myVar" in parent */
|
|
2565
|
+
active: boolean;
|
|
2566
|
+
activeChange: EventEmitter<boolean>;
|
|
2567
|
+
private readonly _active;
|
|
2568
|
+
label: string;
|
|
2569
|
+
private readonly _label;
|
|
2570
|
+
labelClose: string;
|
|
2571
|
+
private readonly _labelClose;
|
|
2572
|
+
readonly currentLabel: _angular_core.Signal<string>;
|
|
2573
|
+
toggle(): void;
|
|
2574
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccHamburger, never>;
|
|
2575
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccHamburger, "ngcc-hamburger", never, { "active": { "alias": "active"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelClose": { "alias": "labelClose"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
type NgccBreadcrumbSize = 'sm' | 'md';
|
|
2579
|
+
interface NgccBreadcrumbItem {
|
|
2580
|
+
label: string;
|
|
2581
|
+
href?: string;
|
|
2582
|
+
routerLink?: string | string[];
|
|
2583
|
+
current?: boolean;
|
|
2584
|
+
disabled?: boolean;
|
|
2585
|
+
target?: string;
|
|
2586
|
+
rel?: string;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
declare class NgccBreadcrumbComponent {
|
|
2590
|
+
items: NgccBreadcrumbItem[];
|
|
2591
|
+
size: NgccBreadcrumbSize;
|
|
2592
|
+
noTrailingSlash: boolean;
|
|
2593
|
+
skeleton: boolean;
|
|
2594
|
+
skeletonCount: number;
|
|
2595
|
+
ariaLabel: string;
|
|
2596
|
+
get resolvedItems(): NgccBreadcrumbItem[];
|
|
2597
|
+
get skeletonItems(): null[];
|
|
2598
|
+
trackByIndex(_index: number): number;
|
|
2599
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccBreadcrumbComponent, never>;
|
|
2600
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccBreadcrumbComponent, "ngcc-breadcrumb", never, { "items": { "alias": "items"; "required": false; }; "size": { "alias": "size"; "required": false; }; "noTrailingSlash": { "alias": "noTrailingSlash"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "skeletonCount": { "alias": "skeletonCount"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
declare class NgccBreadcrumbItemComponent {
|
|
2604
|
+
label: string;
|
|
2605
|
+
href?: string;
|
|
2606
|
+
routerLink?: string | string[];
|
|
2607
|
+
current: boolean;
|
|
2608
|
+
disabled: boolean;
|
|
2609
|
+
skeleton: boolean;
|
|
2610
|
+
target?: string;
|
|
2611
|
+
rel?: string;
|
|
2612
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccBreadcrumbItemComponent, never>;
|
|
2613
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccBreadcrumbItemComponent, "ngcc-breadcrumb-item", never, { "label": { "alias": "label"; "required": false; }; "href": { "alias": "href"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "current": { "alias": "current"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "target": { "alias": "target"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; }, {}, never, ["*", "*", "*"], true, never>;
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
/** Determines how the side-nav responds to activation. */
|
|
2617
|
+
type NgccSideNavVariant = 'default' | 'rail';
|
|
2618
|
+
/**
|
|
2619
|
+
* Context provided by NgccSideNav to descendant components via DI.
|
|
2620
|
+
* Injected by NgccSideNavMenu so it can communicate back to the parent nav.
|
|
2621
|
+
*
|
|
2622
|
+
* Note: public API uses plain values/calls so library consumers don't depend
|
|
2623
|
+
* on Angular's signal runtime. Signals may still be used internally.
|
|
2624
|
+
*/
|
|
2625
|
+
interface NgccSideNavContext {
|
|
2626
|
+
/** Current rail state — `true` when the nav is in compact icon-only mode. */
|
|
2627
|
+
readonly rail: boolean;
|
|
2628
|
+
/** Expands the side navigation programmatically. */
|
|
2629
|
+
expand(): void;
|
|
2630
|
+
}
|
|
2631
|
+
/** Injection token for the side-nav context. */
|
|
2632
|
+
declare const NGCC_SIDE_NAV_CONTEXT: InjectionToken<NgccSideNavContext>;
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* Enterprise-grade Carbon Design System side navigation shell.
|
|
2636
|
+
*
|
|
2637
|
+
* Composition API — project children directly into this component:
|
|
2638
|
+
* - <ngcc-side-nav-item> — a single navigable link
|
|
2639
|
+
* - <ngcc-side-nav-menu> — a collapsible submenu with nested items
|
|
2640
|
+
* - <ngcc-side-nav-divider> — a visual separator
|
|
2641
|
+
*
|
|
2642
|
+
* Full example:
|
|
2643
|
+
* ```html
|
|
2644
|
+
* <ngcc-side-nav ariaLabel="App navigation" [(expanded)]="sideNavOpen">
|
|
2645
|
+
* <ngcc-side-nav-item href="/" iconName="home" [active]="true">Home</ngcc-side-nav-item>
|
|
2646
|
+
*
|
|
2647
|
+
* <ngcc-side-nav-menu title="Settings" iconName="configuration">
|
|
2648
|
+
* <ngcc-side-nav-menu-item href="/settings/profile">Profile</ngcc-side-nav-menu-item>
|
|
2649
|
+
* <ngcc-side-nav-menu-item href="/settings/security">Security</ngcc-side-nav-menu-item>
|
|
2650
|
+
* </ngcc-side-nav-menu>
|
|
2651
|
+
*
|
|
2652
|
+
* <ngcc-side-nav-divider />
|
|
2653
|
+
* <ngcc-side-nav-item href="/help" iconName="information">Help</ngcc-side-nav-item>
|
|
2654
|
+
* </ngcc-side-nav>
|
|
2655
|
+
* ```
|
|
2656
|
+
*
|
|
2657
|
+
* Pass `[allowExpansion]="true"` to render an expand/collapse toggle button in the footer.
|
|
2658
|
+
* Bind `[(expanded)]="open"` for two-way control of the expanded state.
|
|
2659
|
+
*
|
|
2660
|
+
* Rail mode: add `[rail]="true"` for the compact icon-only side-nav variant.
|
|
2661
|
+
* In rail mode, clicking a <ngcc-side-nav-menu> automatically expands the nav.
|
|
2662
|
+
*/
|
|
2663
|
+
declare class NgccSideNav implements NgccSideNavContext, OnChanges, AfterContentInit {
|
|
2664
|
+
/** Accessible label for the <nav> landmark. */
|
|
2665
|
+
ariaLabel: string;
|
|
2666
|
+
/**
|
|
2667
|
+
* Two-way bindable expanded/collapsed state.
|
|
2668
|
+
* Use `[(expanded)]="sideNavOpen"` in the parent.
|
|
2669
|
+
* Defaults to `true` (expanded).
|
|
2670
|
+
*/
|
|
2671
|
+
expanded: boolean;
|
|
2672
|
+
expandedChange: EventEmitter<boolean>;
|
|
2673
|
+
/** When `true`, hides the side-nav entirely (e.g. on mobile). */
|
|
2674
|
+
hidden: boolean;
|
|
2675
|
+
/**
|
|
2676
|
+
* Rail mode: shows only icons when the nav is collapsed.
|
|
2677
|
+
* Requires icons on all items/menus for a good visual.
|
|
2678
|
+
*/
|
|
2679
|
+
rail: boolean;
|
|
2680
|
+
/**
|
|
2681
|
+
* When `true`, renders an expand/collapse toggle button in the side-nav footer.
|
|
2682
|
+
* Use with `[(expanded)]` for controlled expand/collapse behaviour.
|
|
2683
|
+
*/
|
|
2684
|
+
allowExpansion: boolean;
|
|
2685
|
+
/** Label shown on the expand toggle when collapsed. */
|
|
2686
|
+
openLabel: string;
|
|
2687
|
+
/** Label shown on the collapse toggle when expanded. */
|
|
2688
|
+
closeLabel: string;
|
|
2689
|
+
/**
|
|
2690
|
+
* All projected <ngcc-side-nav-menu> instances (direct + nested).
|
|
2691
|
+
* Used to auto-close open submenus when the nav collapses or enters rail mode.
|
|
2692
|
+
*/
|
|
2693
|
+
private menus;
|
|
2694
|
+
private prevRail;
|
|
2695
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2696
|
+
ngAfterContentInit(): void;
|
|
2697
|
+
private closeAllMenus;
|
|
2698
|
+
/** Expands the side nav — called by NgccSideNavMenu when clicked in rail mode. */
|
|
2699
|
+
expand(): void;
|
|
2700
|
+
toggle(): void;
|
|
2701
|
+
private setExpanded;
|
|
2702
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccSideNav, never>;
|
|
2703
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccSideNav, "ngcc-side-nav", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "rail": { "alias": "rail"; "required": false; }; "allowExpansion": { "alias": "allowExpansion"; "required": false; }; "openLabel": { "alias": "openLabel"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["menus"], ["*"], true, never>;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
/**
|
|
2707
|
+
* A single navigable link inside <ngcc-side-nav>.
|
|
2708
|
+
*
|
|
2709
|
+
* Renders as:
|
|
2710
|
+
* <li class="cds--side-nav__item [cds--side-nav__item--icon]">
|
|
2711
|
+
* <a class="cds--side-nav__link [cds--side-nav__link--current]">
|
|
2712
|
+
* [icon]
|
|
2713
|
+
* <span>Label</span>
|
|
2714
|
+
* </a>
|
|
2715
|
+
* </li>
|
|
2716
|
+
*
|
|
2717
|
+
* Usage:
|
|
2718
|
+
* <ngcc-side-nav-item href="/dashboard" iconName="home" [active]="true">
|
|
2719
|
+
* Dashboard
|
|
2720
|
+
* </ngcc-side-nav-item>
|
|
2721
|
+
*/
|
|
2722
|
+
declare class NgccSideNavItem {
|
|
2723
|
+
/** Navigation URL */
|
|
2724
|
+
href: string;
|
|
2725
|
+
/** Marks this link as the active / current page */
|
|
2726
|
+
active: boolean;
|
|
2727
|
+
/** Optional title attribute for the anchor */
|
|
2728
|
+
title: string;
|
|
2729
|
+
/** Optional icon placed before the link text */
|
|
2730
|
+
iconName: NgccIconNameType | undefined;
|
|
2731
|
+
itemClick: EventEmitter<Event>;
|
|
2732
|
+
get itemClasses(): string;
|
|
2733
|
+
get linkClasses(): string;
|
|
2734
|
+
onClick(event: Event): void;
|
|
2735
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccSideNavItem, never>;
|
|
2736
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccSideNavItem, "ngcc-side-nav-item", never, { "href": { "alias": "href"; "required": false; }; "active": { "alias": "active"; "required": false; }; "title": { "alias": "title"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; }, { "itemClick": "itemClick"; }, never, ["*"], true, never>;
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* A collapsible submenu inside <ngcc-side-nav>.
|
|
2741
|
+
*
|
|
2742
|
+
* Renders as:
|
|
2743
|
+
* <li class="cds--side-nav__item cds--side-nav__item--icon [cds--side-nav__item--active]">
|
|
2744
|
+
* <button class="cds--side-nav__submenu" aria-expanded="…">
|
|
2745
|
+
* [icon] <span>Title</span> <chevron/>
|
|
2746
|
+
* </button>
|
|
2747
|
+
* <ul class="cds--side-nav__menu" role="list">
|
|
2748
|
+
* <!-- projected <ngcc-side-nav-menu-item> elements -->
|
|
2749
|
+
* </ul>
|
|
2750
|
+
* </li>
|
|
2751
|
+
*
|
|
2752
|
+
* Carbon CSS toggles visibility via:
|
|
2753
|
+
* .cds--side-nav__submenu[aria-expanded="true"] ~ .cds--side-nav__menu { display: block }
|
|
2754
|
+
*
|
|
2755
|
+
* `hasActiveChild` is auto-computed from projected <ngcc-side-nav-menu-item [active]="true">.
|
|
2756
|
+
* The menu `<li>` receives `cds--side-nav__item--active` whenever any child is active.
|
|
2757
|
+
*
|
|
2758
|
+
* Rail mode behaviour:
|
|
2759
|
+
* Clicking the submenu button while the parent NgccSideNav is in rail mode automatically
|
|
2760
|
+
* expands the side nav back to full width so the sub-items are visible. This mirrors the
|
|
2761
|
+
* Carbon Design System pattern: nav items navigate, nav menus reveal their children.
|
|
2762
|
+
*
|
|
2763
|
+
* Usage:
|
|
2764
|
+
* <ngcc-side-nav-menu title="Settings" iconName="configuration" [(expanded)]="settingsOpen">
|
|
2765
|
+
* <ngcc-side-nav-menu-item href="/settings/profile">Profile</ngcc-side-nav-menu-item>
|
|
2766
|
+
* </ngcc-side-nav-menu>
|
|
2767
|
+
*/
|
|
2768
|
+
declare class NgccSideNavMenu {
|
|
2769
|
+
/** Title displayed on the submenu trigger button */
|
|
2770
|
+
title: string;
|
|
2771
|
+
/**
|
|
2772
|
+
* Two-way bindable expanded/collapsed state.
|
|
2773
|
+
* Use `[(expanded)]="myVar"` in the parent for controlled behaviour.
|
|
2774
|
+
*/
|
|
2775
|
+
expanded: boolean;
|
|
2776
|
+
expandedChange: EventEmitter<boolean>;
|
|
2777
|
+
/** Optional icon placed before the title */
|
|
2778
|
+
iconName: NgccIconNameType | undefined;
|
|
2779
|
+
/**
|
|
2780
|
+
* Content children query: tracks projected <ngcc-side-nav-menu-item> instances.
|
|
2781
|
+
*/
|
|
2782
|
+
private menuItems;
|
|
2783
|
+
/**
|
|
2784
|
+
* True when any projected menu item has `[active]="true"`.
|
|
2785
|
+
* Applied as `cds--side-nav__item--active` on the wrapper <li>.
|
|
2786
|
+
*/
|
|
2787
|
+
get hasActiveChild(): boolean;
|
|
2788
|
+
/**
|
|
2789
|
+
* Optional reference to the parent NgccSideNav provided via NGCC_SIDE_NAV_CONTEXT.
|
|
2790
|
+
* `null` when this menu is used outside of a <ngcc-side-nav> (safe-guard).
|
|
2791
|
+
*/
|
|
2792
|
+
private readonly _nav;
|
|
2793
|
+
toggle(): void;
|
|
2794
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccSideNavMenu, never>;
|
|
2795
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccSideNavMenu, "ngcc-side-nav-menu", never, { "title": { "alias": "title"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; }, { "expandedChange": "expandedChange"; }, ["menuItems"], ["*"], true, never>;
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* A navigable link nested inside <ngcc-side-nav-menu>.
|
|
2800
|
+
*
|
|
2801
|
+
* Renders as:
|
|
2802
|
+
* <li class="cds--side-nav__menu-item">
|
|
2803
|
+
* <a class="cds--side-nav__link [cds--side-nav__link--current]">
|
|
2804
|
+
* <span>Label</span>
|
|
2805
|
+
* </a>
|
|
2806
|
+
* </li>
|
|
2807
|
+
*
|
|
2808
|
+
* Usage:
|
|
2809
|
+
* <ngcc-side-nav-menu title="Settings">
|
|
2810
|
+
* <ngcc-side-nav-menu-item href="/settings/profile" [active]="true">Profile</ngcc-side-nav-menu-item>
|
|
2811
|
+
* </ngcc-side-nav-menu>
|
|
2812
|
+
*/
|
|
2813
|
+
declare class NgccSideNavMenuItem {
|
|
2814
|
+
/** Navigation URL */
|
|
2815
|
+
href: string;
|
|
2816
|
+
/** Marks this link as the active / current page */
|
|
2817
|
+
active: boolean;
|
|
2818
|
+
/** Optional title attribute for the anchor */
|
|
2819
|
+
title: string;
|
|
2820
|
+
itemClick: EventEmitter<Event>;
|
|
2821
|
+
onClick(event: Event): void;
|
|
2822
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccSideNavMenuItem, never>;
|
|
2823
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccSideNavMenuItem, "ngcc-side-nav-menu-item", never, { "href": { "alias": "href"; "required": false; }; "active": { "alias": "active"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "itemClick": "itemClick"; }, never, ["*"], true, never>;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* A visual separator between groups of <ngcc-side-nav-item> / <ngcc-side-nav-menu> elements.
|
|
2828
|
+
*
|
|
2829
|
+
* Renders as <li class="cds--side-nav__divider" role="separator" aria-hidden="true">.
|
|
2830
|
+
*
|
|
2831
|
+
* Usage:
|
|
2832
|
+
* <ngcc-side-nav-item href="/home">Home</ngcc-side-nav-item>
|
|
2833
|
+
* <ngcc-side-nav-divider />
|
|
2834
|
+
* <ngcc-side-nav-item href="/help">Help</ngcc-side-nav-item>
|
|
2835
|
+
*/
|
|
2836
|
+
declare class NgccSideNavDivider {
|
|
2837
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccSideNavDivider, never>;
|
|
2838
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccSideNavDivider, "ngcc-side-nav-divider", never, {}, {}, never, never, true, never>;
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
type NgccCodeSnippetType = 'inline' | 'single' | 'multi';
|
|
2842
|
+
|
|
2843
|
+
declare class NgccCodeSnippetComponent {
|
|
2844
|
+
/** Display variant. */
|
|
2845
|
+
type: NgccCodeSnippetType;
|
|
2846
|
+
/** The code string to display and copy. */
|
|
2847
|
+
code: string;
|
|
2848
|
+
/** Disables all interaction (copy, expand). */
|
|
2849
|
+
disabled: boolean;
|
|
2850
|
+
/** Hides the copy button. */
|
|
2851
|
+
hideCopyButton: boolean;
|
|
2852
|
+
/** Enables text wrapping in the multi-line variant. */
|
|
2853
|
+
wrapText: boolean;
|
|
2854
|
+
/** Applies the light theme background. */
|
|
2855
|
+
light: boolean;
|
|
2856
|
+
/** Shows skeleton loading placeholders instead of content. */
|
|
2857
|
+
skeleton: boolean;
|
|
2858
|
+
/** Text shown in the copy-feedback tooltip after a successful copy. */
|
|
2859
|
+
feedback: string;
|
|
2860
|
+
/** Duration in ms before the copy feedback tooltip disappears. */
|
|
2861
|
+
feedbackTimeout: number;
|
|
2862
|
+
/** Label for the "Show more" expand button (multi-line). */
|
|
2863
|
+
showMoreText: string;
|
|
2864
|
+
/** Label for the "Show less" collapse button (multi-line). */
|
|
2865
|
+
showLessText: string;
|
|
2866
|
+
/** Aria-label for the copy button. */
|
|
2867
|
+
copyButtonDescription: string;
|
|
2868
|
+
/** Aria-label for the scrollable code container (single / multi). */
|
|
2869
|
+
ariaLabel: string;
|
|
2870
|
+
/**
|
|
2871
|
+
* Maximum number of visible rows in the collapsed multi-line state.
|
|
2872
|
+
* Set to 0 for unlimited height (no expand button shown).
|
|
2873
|
+
*/
|
|
2874
|
+
maxCollapsedNumberOfRows: number;
|
|
2875
|
+
/**
|
|
2876
|
+
* Maximum number of visible rows in the expanded multi-line state.
|
|
2877
|
+
* Set to 0 for unlimited height.
|
|
2878
|
+
*/
|
|
2879
|
+
maxExpandedNumberOfRows: number;
|
|
2880
|
+
/** Internal expand state for the multi-line variant. */
|
|
2881
|
+
readonly isExpanded: _angular_core.WritableSignal<boolean>;
|
|
2882
|
+
/** True while the copy-feedback tooltip is animating. */
|
|
2883
|
+
readonly isCopying: _angular_core.WritableSignal<boolean>;
|
|
2884
|
+
/** Whether the multi-line code block needs an expand/collapse button. */
|
|
2885
|
+
get needsExpansion(): boolean;
|
|
2886
|
+
/** Inline style max-height applied to the multi-line container to clamp visible rows. */
|
|
2887
|
+
get containerMaxHeight(): string | null;
|
|
2888
|
+
private feedbackTimer?;
|
|
2889
|
+
copyCode(): Promise<void>;
|
|
2890
|
+
toggleExpand(): void;
|
|
2891
|
+
private triggerFeedback;
|
|
2892
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgccCodeSnippetComponent, never>;
|
|
2893
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgccCodeSnippetComponent, "ngcc-code-snippet", never, { "type": { "alias": "type"; "required": false; }; "code": { "alias": "code"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideCopyButton": { "alias": "hideCopyButton"; "required": false; }; "wrapText": { "alias": "wrapText"; "required": false; }; "light": { "alias": "light"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; "feedbackTimeout": { "alias": "feedbackTimeout"; "required": false; }; "showMoreText": { "alias": "showMoreText"; "required": false; }; "showLessText": { "alias": "showLessText"; "required": false; }; "copyButtonDescription": { "alias": "copyButtonDescription"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "maxCollapsedNumberOfRows": { "alias": "maxCollapsedNumberOfRows"; "required": false; }; "maxExpandedNumberOfRows": { "alias": "maxExpandedNumberOfRows"; "required": false; }; }, {}, never, never, true, never>;
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
export { HttpNgccI18nLoader, NGCC_ACCORDION_ALIGN, NGCC_I18N_CONFIG, NGCC_RADIO_GROUP_TOKEN, NGCC_SIDE_NAV_CONTEXT, NgccAccordion, NgccAccordionItem, NgccBreadcrumbComponent, NgccBreadcrumbItemComponent, NgccButton, NgccCharts, NgccCheckbox, NgccCodeSnippetComponent, NgccColorThemeService, NgccColorThemeSwitcher, NgccContainedList, NgccContainedListActionDirective, NgccContainedListItem, NgccContainedListItemActionDirective, NgccDatePicker, NgccDatePickerCalendar, NgccDropdown, NgccGaugeChart, NgccHamburger, NgccHeader, NgccHeaderAction, NgccHeaderGlobal, NgccHeaderItem, NgccHeaderMenu, NgccHeaderMenuItem, NgccHeaderName, NgccHeaderNavigation, NgccHeaderPanel, NgccI18nPipe, NgccI18nService, NgccIcon, NgccInput, NgccLink, NgccModal, NgccNotification, NgccNotificationContainer, NgccPagination, NgccRadio, NgccRadioGroup, NgccSideNav, NgccSideNavDivider, NgccSideNavItem, NgccSideNavMenu, NgccSideNavMenuItem, NgccSkeleton, NgccTab, NgccTabHeaders, NgccTable, NgccTableSearchDirective, NgccTableSearchService, NgccTableService, NgccTableSkeleton, NgccTableToolbar, NgccTabs, NgccTabsSkeleton, NgccTextAreaComponent, NgccToast, NgccToastContainer, NgccToggle, NgccTooltip, NotificationService, ToastService, WCAG_CONTRAST, adjustColorForContrast, checkContrast, createAccessibleColorPair, derivePaletteFromBrand, generateColorScale, generateInteractiveStates, getAccessibleTextColor, getAvailableThemes, getContrastRatio, getFocusIndicatorColor, getRelativeLuminance, getThemeBackground, getThemeSecondaryButtonBg, hexToHsl, hexToRgb, hslToHex, hslToRgb, initNgccTheme, isThemeDark, provideNgccI18n, rgbToHex, rgbToHsl, themeMetadata, validateColorToken };
|
|
2897
|
+
export type { AccordionAlign, AccordionSize, CarbonThemeName, DropdownSize, NgccAccessibilityIssue, NgccAccessibleColorPair, NgccBreadcrumbItem, NgccBreadcrumbSize, NgccCalendarCell, NgccCodeSnippetType, NgccColorScale, NgccColorThemeConfig, NgccContainedListKind, NgccContainedListSize, NgccContrastResult, NgccDateFormat, NgccDerivedColorPalette, NgccDropdownItem, NgccHSL, NgccHeaderMenuTrigger, NgccHeaderNavItem, NgccI18nConfig, NgccI18nLoader, NgccInputNumberSize, NgccInputSize, NgccInputType, NgccLinkAriaCurrent, NgccLinkSize, NgccLinkTarget, NgccNotificationConfig, NgccRGB, NgccRadioChange, NgccRadioGroupContext, NgccRadioLabelPlacement, NgccRadioOrientation, NgccSideNavContext, NgccSideNavVariant, NgccTableColumn, NgccTableConfig, NgccTextAreaSize, NgccThemeAccessibilityReport, NgccThemeMetadata, NgccToastConfig, NgccToggleSize, NgccTokenValidationResult, NgccWCAGConfig, NotificationType, SortDirection, TextSize, ToastType, WCAGLevel };
|