@aseansc/ui 5.9.2 → 5.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aseansc/ui",
3
- "version": "5.9.2",
3
+ "version": "5.10.0",
4
4
  "description": "ASC Internal UI Component Library — Angular 22 + PrimeNG 21 + TailwindCSS 4 (PrimeNG capped at 21.x — 22.x requires a paid PrimeUI license key, xem README.md)",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ASC Team",
@@ -3,16 +3,18 @@
3
3
  flex-direction: column;
4
4
  min-height: 100vh;
5
5
  justify-content: space-between;
6
- padding: 6rem 2rem 0 2rem;
6
+ // padding-top = cao topbar (fixed) + khoảng topbar ↔ nội dung, để topbar không che nội dung
7
+ padding: calc(var(--layout-topbar-height) + var(--layout-content-top-gap)) var(--layout-content-gap) 0
8
+ var(--layout-content-gap);
7
9
  transition: margin-left var(--layout-section-transition-duration);
8
10
  }
9
11
 
10
12
  .layout-main {
11
13
  flex: 1 1 auto;
12
- padding: 1.5rem 1.5rem 2rem;
14
+ padding: var(--layout-main-padding);
13
15
  background-color: var(--asc-surface-translucent);
14
16
  border-radius: 1.25rem;
15
- margin-bottom: 1rem;
17
+ margin-bottom: var(--layout-main-margin-bottom);
16
18
  }
17
19
 
18
20
  img {
@@ -1,170 +1,170 @@
1
- @use 'mixins' as *;
2
-
3
- .layout-sidebar {
4
- position: fixed;
5
- width: var(--layout-sidebar-width);
6
- // full chiều cao viewport, nổi cách mép 1 khoảng gap
7
- height: calc(100vh - 2 * var(--layout-sidebar-gap));
8
- z-index: 999;
9
- display: flex;
10
- flex-direction: column;
11
- overflow: hidden; // clip scrollbar của .layout-sidebar-content theo border-radius
12
- user-select: none;
13
- top: var(--layout-sidebar-gap);
14
- left: var(--layout-sidebar-gap);
15
- transition:
16
- transform var(--layout-section-transition-duration),
17
- left var(--layout-section-transition-duration);
18
- background-color: var(--asc-surface-translucent);
19
- border-radius: 20px;
20
- // Padding sidebar theo design: dọc 16px, ngang 12px
21
- padding: var(--layout-sidebar-padding-y, 16px) var(--layout-sidebar-padding-x, 12px);
22
- }
23
-
24
- // Logo đứng yên ở đầu sidebar, không cuộn theo menu
25
- .layout-sidebar-logo {
26
- flex-shrink: 0;
27
- display: flex;
28
- align-items: center;
29
- padding: 0 0 var(--layout-sidebar-padding-y, 16px); // khoảng cách logo – menu
30
- }
31
-
32
- .layout-sidebar-content {
33
- flex: 1 1 auto;
34
- min-height: 0;
35
- overflow-y: auto;
36
- padding: 0;
37
- }
38
-
39
- .layout-menu {
40
- margin: 0;
41
- padding: 0;
42
- list-style-type: none;
43
-
44
- .layout-root-menuitem {
45
- > .layout-menuitem-root-text {
46
- font-size: 0.857rem;
47
- text-transform: uppercase;
48
- font-weight: 700;
49
- color: var(--text-color);
50
- margin: 0.75rem 0;
51
- }
52
-
53
- > a {
54
- display: none;
55
- }
56
- }
57
-
58
- a {
59
- user-select: none;
60
-
61
- &.active-menuitem {
62
- > .layout-submenu-toggler {
63
- transform: rotate(-180deg);
64
- }
65
- }
66
- }
67
-
68
- li.active-menuitem {
69
- > a {
70
- .layout-submenu-toggler {
71
- transform: rotate(-180deg);
72
- }
73
- }
74
- }
75
-
76
- ul {
77
- margin: 0;
78
- padding: 0;
79
- list-style-type: none;
80
-
81
- // Áp dụng cho MỌI cấp submenu (`.layout-menu ul` khớp mọi <ul> con cháu
82
- // của .layout-menu bất kể độ sâu) — AppMenuitem bind [class.layout-submenu-expanded]
83
- // trực tiếp lên <ul> submenu của chính nó ở TẤT CẢ các cấp đệ quy, kể cả
84
- // cấp 1 (submenu của root menuitem), nên rule collapse/expand không được
85
- // đặt lồng thêm 1 cấp `ul { ul {...} }` (chỉ khớp từ cấp 2 trở đi).
86
- overflow: hidden;
87
- border-radius: var(--content-border-radius);
88
- max-height: 0;
89
- transition: max-height 400ms cubic-bezier(0.86, 0, 0.07, 1);
90
-
91
- &.layout-submenu-expanded {
92
- max-height: 1000px;
93
- }
94
-
95
- a {
96
- display: flex;
97
- align-items: center;
98
- position: relative;
99
- outline: 0 none;
100
- color: var(--text-color);
101
- cursor: pointer;
102
- padding: 8px; // Figma Sidebar-item
103
- border-radius: 8px;
104
- transition:
105
- background-color var(--element-transition-duration),
106
- box-shadow var(--element-transition-duration);
107
-
108
- .layout-menuitem-icon {
109
- margin-right: 0.5rem;
110
- flex-shrink: 0;
111
- font-size: 20px; // Figma Sidebar-item icon 20×20 (item.iconSize vẫn ghi đè được)
112
- }
113
-
114
- .layout-submenu-toggler {
115
- font-size: 75%;
116
- margin-left: auto;
117
- transition: transform var(--element-transition-duration);
118
- }
119
-
120
- // Figma Sidebar-item Hover/Active: nền trắng 70% (dark: đen 70%), chữ đen 500 — không dùng brand
121
- &.active-route,
122
- &:hover {
123
- background-color: var(--asc-sidebar-item-active-bg);
124
- font-weight: 500;
125
- }
126
-
127
- &:focus {
128
- @include focused-inset();
129
- }
130
- }
131
-
132
- ul {
133
- li {
134
- a {
135
- margin-left: 1rem;
136
- }
137
-
138
- li {
139
- a {
140
- margin-left: 2rem;
141
- }
142
-
143
- li {
144
- a {
145
- margin-left: 2.5rem;
146
- }
147
-
148
- li {
149
- a {
150
- margin-left: 3rem;
151
- }
152
-
153
- li {
154
- a {
155
- margin-left: 3.5rem;
156
- }
157
-
158
- li {
159
- a {
160
- margin-left: 4rem;
161
- }
162
- }
163
- }
164
- }
165
- }
166
- }
167
- }
168
- }
169
- }
170
- }
1
+ @use 'mixins' as *;
2
+
3
+ .layout-sidebar {
4
+ position: fixed;
5
+ width: var(--layout-sidebar-width);
6
+ // full chiều cao viewport, nổi cách mép 1 khoảng gap
7
+ height: calc(100vh - 2 * var(--layout-sidebar-gap));
8
+ z-index: 999;
9
+ display: flex;
10
+ flex-direction: column;
11
+ overflow: hidden; // clip scrollbar của .layout-sidebar-content theo border-radius
12
+ user-select: none;
13
+ top: var(--layout-sidebar-gap);
14
+ left: var(--layout-sidebar-gap);
15
+ transition:
16
+ transform var(--layout-section-transition-duration),
17
+ left var(--layout-section-transition-duration);
18
+ background-color: var(--asc-surface-translucent);
19
+ border-radius: 20px;
20
+ // Padding sidebar theo design: dọc 16px, ngang 12px
21
+ padding: var(--layout-sidebar-padding-y, 16px) var(--layout-sidebar-padding-x, 12px);
22
+ }
23
+
24
+ // Logo đứng yên ở đầu sidebar, không cuộn theo menu
25
+ .layout-sidebar-logo {
26
+ flex-shrink: 0;
27
+ display: flex;
28
+ align-items: center;
29
+ padding: 0 0 var(--layout-sidebar-padding-y, 16px); // khoảng cách logo – menu
30
+ }
31
+
32
+ .layout-sidebar-content {
33
+ flex: 1 1 auto;
34
+ min-height: 0;
35
+ overflow-y: auto;
36
+ padding: 0;
37
+ }
38
+
39
+ .layout-menu {
40
+ margin: 0;
41
+ padding: 0;
42
+ list-style-type: none;
43
+
44
+ .layout-root-menuitem {
45
+ > .layout-menuitem-root-text {
46
+ font-size: 0.857rem;
47
+ text-transform: uppercase;
48
+ font-weight: 700;
49
+ color: var(--text-color);
50
+ margin: 0.75rem 0;
51
+ }
52
+
53
+ > a {
54
+ display: none;
55
+ }
56
+ }
57
+
58
+ a {
59
+ user-select: none;
60
+
61
+ &.active-menuitem {
62
+ > .layout-submenu-toggler {
63
+ transform: rotate(90deg); // CaretRight → CaretDown
64
+ }
65
+ }
66
+ }
67
+
68
+ li.active-menuitem {
69
+ > a {
70
+ .layout-submenu-toggler {
71
+ transform: rotate(90deg); // CaretRight → CaretDown
72
+ }
73
+ }
74
+ }
75
+
76
+ ul {
77
+ margin: 0;
78
+ padding: 0;
79
+ list-style-type: none;
80
+
81
+ // Áp dụng cho MỌI cấp submenu (`.layout-menu ul` khớp mọi <ul> con cháu
82
+ // của .layout-menu bất kể độ sâu) — AppMenuitem bind [class.layout-submenu-expanded]
83
+ // trực tiếp lên <ul> submenu của chính nó ở TẤT CẢ các cấp đệ quy, kể cả
84
+ // cấp 1 (submenu của root menuitem), nên rule collapse/expand không được
85
+ // đặt lồng thêm 1 cấp `ul { ul {...} }` (chỉ khớp từ cấp 2 trở đi).
86
+ overflow: hidden;
87
+ border-radius: var(--content-border-radius);
88
+ max-height: 0;
89
+ transition: max-height 400ms cubic-bezier(0.86, 0, 0.07, 1);
90
+
91
+ &.layout-submenu-expanded {
92
+ max-height: 1000px;
93
+ }
94
+
95
+ a {
96
+ display: flex;
97
+ align-items: center;
98
+ position: relative;
99
+ outline: 0 none;
100
+ color: var(--text-color);
101
+ cursor: pointer;
102
+ padding: 8px; // Figma Sidebar-item
103
+ border-radius: 8px;
104
+ transition:
105
+ background-color var(--element-transition-duration),
106
+ box-shadow var(--element-transition-duration);
107
+
108
+ .layout-menuitem-icon {
109
+ margin-right: 0.5rem;
110
+ flex-shrink: 0;
111
+ font-size: 20px; // Figma Sidebar-item icon 20×20 (item.iconSize vẫn ghi đè được)
112
+ }
113
+
114
+ // Figma: Phosphor CaretRight/CaretDown 18×18 (asc-svg-icon size="18px")
115
+ .layout-submenu-toggler {
116
+ margin-left: auto;
117
+ transition: transform var(--element-transition-duration);
118
+ }
119
+
120
+ // Figma Sidebar-item Hover/Active: nền trắng 70% (dark: đen 70%), chữ đen 500 — không dùng brand
121
+ &.active-route,
122
+ &:hover {
123
+ background-color: var(--asc-sidebar-item-active-bg);
124
+ font-weight: 500;
125
+ }
126
+
127
+ &:focus {
128
+ @include focused-inset();
129
+ }
130
+ }
131
+
132
+ ul {
133
+ li {
134
+ a {
135
+ margin-left: 1rem;
136
+ }
137
+
138
+ li {
139
+ a {
140
+ margin-left: 2rem;
141
+ }
142
+
143
+ li {
144
+ a {
145
+ margin-left: 2.5rem;
146
+ }
147
+
148
+ li {
149
+ a {
150
+ margin-left: 3rem;
151
+ }
152
+
153
+ li {
154
+ a {
155
+ margin-left: 3.5rem;
156
+ }
157
+
158
+ li {
159
+ a {
160
+ margin-left: 4rem;
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
@@ -12,7 +12,7 @@
12
12
  &.layout-overlay {
13
13
  .layout-main-container {
14
14
  margin-left: 0;
15
- padding-left: 2rem;
15
+ padding-left: var(--layout-content-gap);
16
16
  }
17
17
 
18
18
  .layout-sidebar {
@@ -63,7 +63,7 @@
63
63
 
64
64
  .layout-main-container {
65
65
  margin-left: 0;
66
- padding-left: 2rem;
66
+ padding-left: var(--layout-content-gap);
67
67
  }
68
68
  }
69
69
  }
@@ -82,7 +82,7 @@
82
82
  .layout-wrapper {
83
83
  .layout-main-container {
84
84
  margin-left: 0;
85
- padding-left: 2rem;
85
+ padding-left: var(--layout-content-gap);
86
86
  }
87
87
 
88
88
  .layout-sidebar {
@@ -2,7 +2,7 @@
2
2
 
3
3
  .layout-topbar {
4
4
  position: fixed;
5
- height: 4rem;
5
+ height: var(--layout-topbar-height);
6
6
  z-index: 997;
7
7
  left: 0;
8
8
  top: 0;
@@ -129,7 +129,7 @@
129
129
  border-radius: var(--content-border-radius);
130
130
  padding: 1rem;
131
131
  right: 2rem;
132
- top: 4rem;
132
+ top: var(--layout-topbar-height);
133
133
  min-width: 15rem;
134
134
  border: 1px solid var(--surface-border);
135
135
 
@@ -12,7 +12,13 @@
12
12
  --content-border-radius: var(--p-content-border-radius);
13
13
  --layout-section-transition-duration: 0.2s;
14
14
  --layout-sidebar-width: 212px;
15
- --layout-sidebar-gap: 1rem; // khoảng hở giữa sidebar nổi và mép viewport
15
+ --layout-sidebar-gap: 12px; // khoảng hở giữa sidebar nổi và mép viewport
16
+ // Khoảng cách layout viết bằng px: html font-size 14px nên rem ra số lẻ (14, 21, 28…). App ghi đè được.
17
+ --layout-topbar-height: 64px;
18
+ --layout-content-gap: 16px; // sidebar ↔ nội dung, nội dung ↔ mép phải
19
+ --layout-content-top-gap: 12px; // topbar ↔ nội dung
20
+ --layout-main-padding: 24px; // padding trong card .layout-main
21
+ --layout-main-margin-bottom: 12px; // card ↔ đáy viewport
16
22
  // mép phải của sidebar tính từ mép trái viewport — topbar/main bắt đầu từ đây
17
23
  --layout-sidebar-offset: calc(var(--layout-sidebar-gap) + var(--layout-sidebar-width));
18
24
  --element-transition-duration: var(--p-transition-duration);
package/tokens/preset.css CHANGED
@@ -696,7 +696,12 @@
696
696
  --content-border-radius: var(--p-content-border-radius);
697
697
  --layout-section-transition-duration: 0.2s;
698
698
  --layout-sidebar-width: 212px;
699
- --layout-sidebar-gap: 1rem;
699
+ --layout-sidebar-gap: 12px;
700
+ --layout-topbar-height: 64px;
701
+ --layout-content-gap: 16px;
702
+ --layout-content-top-gap: 12px;
703
+ --layout-main-padding: 24px;
704
+ --layout-main-margin-bottom: 12px;
700
705
  --layout-sidebar-offset: calc(var(--layout-sidebar-gap) + var(--layout-sidebar-width));
701
706
  --element-transition-duration: var(--p-transition-duration);
702
707
  --focus-ring-width: var(--p-focus-ring-width);
@@ -798,16 +803,16 @@ a {
798
803
  flex-direction: column;
799
804
  min-height: 100vh;
800
805
  justify-content: space-between;
801
- padding: 6rem 2rem 0 2rem;
806
+ padding: calc(var(--layout-topbar-height) + var(--layout-content-top-gap)) var(--layout-content-gap) 0 var(--layout-content-gap);
802
807
  transition: margin-left var(--layout-section-transition-duration);
803
808
  }
804
809
 
805
810
  .layout-main {
806
811
  flex: 1 1 auto;
807
- padding: 1.5rem 1.5rem 2rem;
812
+ padding: var(--layout-main-padding);
808
813
  background-color: var(--asc-surface-translucent);
809
814
  border-radius: 1.25rem;
810
- margin-bottom: 1rem;
815
+ margin-bottom: var(--layout-main-margin-bottom);
811
816
  }
812
817
 
813
818
  img {
@@ -816,7 +821,7 @@ img {
816
821
 
817
822
  .layout-topbar {
818
823
  position: fixed;
819
- height: 4rem;
824
+ height: var(--layout-topbar-height);
820
825
  z-index: 997;
821
826
  left: 0;
822
827
  top: 0;
@@ -944,7 +949,7 @@ img {
944
949
  border-radius: var(--content-border-radius);
945
950
  padding: 1rem;
946
951
  right: 2rem;
947
- top: 4rem;
952
+ top: var(--layout-topbar-height);
948
953
  min-width: 15rem;
949
954
  border: 1px solid var(--surface-border);
950
955
  }
@@ -1025,11 +1030,11 @@ img {
1025
1030
  }
1026
1031
 
1027
1032
  .layout-menu a.active-menuitem > .layout-submenu-toggler {
1028
- transform: rotate(-180deg);
1033
+ transform: rotate(90deg);
1029
1034
  }
1030
1035
 
1031
1036
  .layout-menu li.active-menuitem > a .layout-submenu-toggler {
1032
- transform: rotate(-180deg);
1037
+ transform: rotate(90deg);
1033
1038
  }
1034
1039
 
1035
1040
  .layout-menu ul {
@@ -1065,7 +1070,6 @@ img {
1065
1070
  }
1066
1071
 
1067
1072
  .layout-menu ul a .layout-submenu-toggler {
1068
- font-size: 75%;
1069
1073
  margin-left: auto;
1070
1074
  transition: transform var(--element-transition-duration);
1071
1075
  }
@@ -1124,7 +1128,7 @@ img {
1124
1128
  @media (min-width: 992px) {
1125
1129
  .layout-wrapper.layout-overlay .layout-main-container {
1126
1130
  margin-left: 0;
1127
- padding-left: 2rem;
1131
+ padding-left: var(--layout-content-gap);
1128
1132
  }
1129
1133
  .layout-wrapper.layout-overlay .layout-sidebar {
1130
1134
  transform: translateX(-100%);
@@ -1157,7 +1161,7 @@ img {
1157
1161
  }
1158
1162
  .layout-wrapper.layout-static.layout-static-inactive .layout-main-container {
1159
1163
  margin-left: 0;
1160
- padding-left: 2rem;
1164
+ padding-left: var(--layout-content-gap);
1161
1165
  }
1162
1166
  .layout-wrapper .layout-mask {
1163
1167
  display: none;
@@ -1169,7 +1173,7 @@ img {
1169
1173
  }
1170
1174
  .layout-wrapper .layout-main-container {
1171
1175
  margin-left: 0;
1172
- padding-left: 2rem;
1176
+ padding-left: var(--layout-content-gap);
1173
1177
  }
1174
1178
  .layout-wrapper .layout-sidebar {
1175
1179
  transform: translateX(-100%);
@@ -439,7 +439,7 @@ declare abstract class BaseControlAccessor<T> implements ControlValueAccessor, O
439
439
  * dạng text thay vì form control). AscFormFieldComponent tự đọc giá trị này
440
440
  * qua ContentChild để đồng bộ style label — không cần set mode ở cả 2 nơi.
441
441
  */
442
- readonly mode: _angular_core.InputSignal<"edit" | "view">;
442
+ readonly mode: _angular_core.InputSignal<"view" | "edit">;
443
443
  /** Giá trị hiện tại của control */
444
444
  readonly value: _angular_core.WritableSignal<T | null>;
445
445
  /** Trạng thái disabled từ FormControl/NgModel */
@@ -672,6 +672,11 @@ declare class AscButtonComponent {
672
672
  private readonly config;
673
673
  readonly label: _angular_core.InputSignal<string>;
674
674
  readonly icon: _angular_core.InputSignal<string>;
675
+ /**
676
+ * URL file SVG (vd icon Phosphor tải từ Figma) — render qua `asc-icon`, màu theo `currentColor`.
677
+ * Có `iconSrc` thì bỏ qua `icon`. Cỡ icon theo size button (md/lg 20px, sm 16px).
678
+ */
679
+ readonly iconSrc: _angular_core.InputSignal<string>;
675
680
  readonly iconPos: _angular_core.InputSignal<"left" | "right" | "top" | "bottom">;
676
681
  readonly severity: _angular_core.InputSignal<AscSeverity>;
677
682
  readonly variant: _angular_core.InputSignal<AscButtonVariant>;
@@ -723,7 +728,7 @@ declare class AscButtonComponent {
723
728
  protected readonly hostCls: _angular_core.Signal<string>;
724
729
  protected handleClick(event: MouseEvent): void;
725
730
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscButtonComponent, never>;
726
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscButtonComponent, "asc-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "raised": { "alias": "raised"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipPos": { "alias": "tooltipPos"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
731
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscButtonComponent, "asc-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconSrc": { "alias": "iconSrc"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "raised": { "alias": "raised"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipPos": { "alias": "tooltipPos"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
727
732
  }
728
733
 
729
734
  declare class AscFormFieldComponent implements AfterContentInit {
@@ -783,7 +788,7 @@ declare class AscFormFieldComponent implements AfterContentInit {
783
788
  * (xem `resolvedMode`). Input này chỉ cần dùng khi muốn ép label view riêng
784
789
  * (vd: control bên trong không hỗ trợ mode, hoặc không có control nào cả).
785
790
  */
786
- readonly mode: _angular_core.InputSignal<"edit" | "view">;
791
+ readonly mode: _angular_core.InputSignal<"view" | "edit">;
787
792
  /** Đồng bộ từ control.errors — trigger CD khi form validate */
788
793
  protected readonly controlErrors: _angular_core.WritableSignal<Record<string, unknown> | null>;
789
794
  /** true khi control có validator required */
@@ -799,7 +804,7 @@ declare class AscFormFieldComponent implements AfterContentInit {
799
804
  * 'view' nếu tự set `mode="view"` HOẶC control bên trong đang mode="view".
800
805
  * → chỉ cần set ở 1 trong 2 nơi (thường là ngay trên control), không cần lặp lại.
801
806
  */
802
- protected readonly resolvedMode: _angular_core.Signal<"edit" | "view">;
807
+ protected readonly resolvedMode: _angular_core.Signal<"view" | "edit">;
803
808
  protected readonly resolvedLabelSuffixIcon: _angular_core.Signal<string>;
804
809
  /** Dấu * bắt buộc — ẩn ở mode view (chỉ đọc, không cần nhập) */
805
810
  protected readonly showRequiredMark: _angular_core.Signal<boolean>;
@@ -1480,12 +1485,16 @@ declare class AscUpload extends BaseControlAccessor<File | File[] | null> {
1480
1485
  }
1481
1486
 
1482
1487
  /** Tên icon dựng sẵn trong thư viện. */
1483
- type AscBuiltinIconName = 'approve' | 'view' | 'edit' | 'delete' | 'search';
1484
- /** Path data (viewBox 0 0 20 20) của từng icon — render với fill="currentColor". */
1488
+ type AscBuiltinIconName = 'approve' | 'view' | 'edit' | 'delete' | 'search' | 'more' | 'caret-down' | 'caret-right';
1489
+ /** viewBox mặc định của icon dựng sẵn. */
1490
+ declare const ASC_BUILTIN_ICON_DEFAULT_VIEWBOX = "0 0 20 20";
1491
+ /** viewBox riêng của icon không theo lưới 20 (icon Phosphor lưới 256). */
1492
+ declare const ASC_BUILTIN_ICON_VIEWBOX: Partial<Record<AscBuiltinIconName, string>>;
1493
+ /** Path data của từng icon — render với fill="currentColor". viewBox: xem ASC_BUILTIN_ICON_VIEWBOX. */
1485
1494
  declare const ASC_BUILTIN_ICONS: Record<AscBuiltinIconName, string>;
1486
1495
 
1487
1496
  /**
1488
- * Nhận tên icon dựng sẵn ('approve' | 'view' | 'edit' | 'delete' | 'search') hoặc class
1497
+ * Nhận tên icon dựng sẵn (xem `AscBuiltinIconName`) hoặc class
1489
1498
  * PrimeIcons tương ứng ('pi pi-trash'...) → trả về tên icon dựng sẵn, không khớp → null.
1490
1499
  */
1491
1500
  declare function resolveAscBuiltinIcon(icon: string | null | undefined): AscBuiltinIconName | null;
@@ -1503,6 +1512,7 @@ declare class AscSvgIconComponent {
1503
1512
  /** Kích thước CSS — mặc định 20px theo thiết kế */
1504
1513
  readonly size: _angular_core.InputSignal<string>;
1505
1514
  protected readonly path: _angular_core.Signal<string>;
1515
+ protected readonly viewBox: _angular_core.Signal<string>;
1506
1516
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscSvgIconComponent, never>;
1507
1517
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscSvgIconComponent, "asc-svg-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1508
1518
  }
@@ -3334,5 +3344,5 @@ declare class AscTrimSpaceDirective {
3334
3344
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AscTrimSpaceDirective, "[ascTrimSpace]", never, {}, {}, never, never, true, never>;
3335
3345
  }
3336
3346
 
3337
- export { ASC_BASE_CONTROL, ASC_BUILTIN_ICONS, ASC_MESSAGES_EN_US, ASC_MESSAGES_VI_VN, ASC_PRESET, ASC_UI_CONFIG, ASC_UI_DEFAULT_CONFIG, ASC_UI_MESSAGES, AscAccordionComponent, AscAccordionItemComponent, AscAlertComponent, AscAutoCompleteComponent, AscAvatarComponent, AscAvatarGroupComponent, AscBadgeComponent, AscBoxDirective, AscBreadcrumb, AscButtonComponent, AscCardComponent, AscCardFooterDirective, AscCardHeaderDirective, AscCheckboxComponent, AscConfirmDialog, AscConfirmPopup, AscConfirmService, AscDatepickerComponent, AscDialogComponent, AscDialogFooterDirective, AscDialogHeaderDirective, AscDividerComponent, AscEmptyStateComponent, AscFormFieldComponent, AscIconComponent, AscIconService, AscInputComponent, AscInputMaskComponent, AscInputNumberComponent, AscLayout, AscLoadingBarComponent, AscLoadingOverlayComponent, AscLocaleService, AscMessageErrorPipe, AscPaginatorComponent, AscPasswordComponent, AscPicklistComponent, AscPopoverComponent, AscProgressBarComponent, AscRadioComponent, AscSelectButtonComponent, AscSelectComponent, AscSidebarComponent, AscSidebarFooterDirective, AscSidebarHeaderDirective, AscSkeletonComponent, AscSpinnerComponent, AscStepComponent, AscStepContentDirective, AscStepperComponent, AscSvgIconComponent, AscTabComponent, AscTableCaptionDirective, AscTableCellDirective, AscTableComponent, AscTableEmptyDirective, AscTableExpandDirective, AscTabsComponent, AscTextDirective, AscTextareaComponent, AscThemeService, AscTimelineComponent, AscToast, AscToastService, AscToggleSwitchComponent, AscTooltipDirective, AscTrimSpaceDirective, AscTypographyDirective, AscUpload, BaseControlAccessor, ascCls, ascUniqueId, coerceArray, coerceBooleanProperty, coerceNumberProperty, coerceStringProperty, isAscSeverity, isAscSize, provideAscUI, resolveAscBuiltinIcon };
3347
+ export { ASC_BASE_CONTROL, ASC_BUILTIN_ICONS, ASC_BUILTIN_ICON_DEFAULT_VIEWBOX, ASC_BUILTIN_ICON_VIEWBOX, ASC_MESSAGES_EN_US, ASC_MESSAGES_VI_VN, ASC_PRESET, ASC_UI_CONFIG, ASC_UI_DEFAULT_CONFIG, ASC_UI_MESSAGES, AscAccordionComponent, AscAccordionItemComponent, AscAlertComponent, AscAutoCompleteComponent, AscAvatarComponent, AscAvatarGroupComponent, AscBadgeComponent, AscBoxDirective, AscBreadcrumb, AscButtonComponent, AscCardComponent, AscCardFooterDirective, AscCardHeaderDirective, AscCheckboxComponent, AscConfirmDialog, AscConfirmPopup, AscConfirmService, AscDatepickerComponent, AscDialogComponent, AscDialogFooterDirective, AscDialogHeaderDirective, AscDividerComponent, AscEmptyStateComponent, AscFormFieldComponent, AscIconComponent, AscIconService, AscInputComponent, AscInputMaskComponent, AscInputNumberComponent, AscLayout, AscLoadingBarComponent, AscLoadingOverlayComponent, AscLocaleService, AscMessageErrorPipe, AscPaginatorComponent, AscPasswordComponent, AscPicklistComponent, AscPopoverComponent, AscProgressBarComponent, AscRadioComponent, AscSelectButtonComponent, AscSelectComponent, AscSidebarComponent, AscSidebarFooterDirective, AscSidebarHeaderDirective, AscSkeletonComponent, AscSpinnerComponent, AscStepComponent, AscStepContentDirective, AscStepperComponent, AscSvgIconComponent, AscTabComponent, AscTableCaptionDirective, AscTableCellDirective, AscTableComponent, AscTableEmptyDirective, AscTableExpandDirective, AscTabsComponent, AscTextDirective, AscTextareaComponent, AscThemeService, AscTimelineComponent, AscToast, AscToastService, AscToggleSwitchComponent, AscTooltipDirective, AscTrimSpaceDirective, AscTypographyDirective, AscUpload, BaseControlAccessor, ascCls, ascUniqueId, coerceArray, coerceBooleanProperty, coerceNumberProperty, coerceStringProperty, isAscSeverity, isAscSize, provideAscUI, resolveAscBuiltinIcon };
3338
3348
  export type { AscAlertSeverity, AscAutoCompleteItem, AscAutoCompleteLazyLoadEvent, AscAvatarShape, AscAvatarSize, AscBadgeConfig, AscBadgeSeverity, AscBgColor, AscBorderColor, AscBorderStyle, AscBorderWidth, AscBoxHeight, AscBoxRadius, AscBoxWidth, AscBuiltinIconName, AscButtonVariant, AscCardRadius, AscCardShadow, AscCheckboxOption, AscColumnFormat, AscColumnVisibility, AscConfirmOptions, AscConfirmPopupOptions, AscDateSelectionMode, AscDateValue, AscDateView, AscDividerAlign, AscDividerLayout, AscDividerType, AscFontWeight, AscFormLayout, AscHourFormat, AscIconPosition, AscInputVariant, AscLeading, AscLocale, AscMenuItem, AscNumberType, AscProgressBarMode, AscSelectOption, AscSelectionMode, AscSeverity, AscSize, AscSkeletonPreset, AscSkeletonShape, AscSpinnerSize, AscTableAction, AscTableCellContext, AscTableColumn, AscTableColumnType, AscTableExpandContext, AscTableFilterMeta, AscTableLazyLoadEvent, AscTablePageEvent, AscTableSortEvent, AscTableSortMeta, AscTabsOrientation, AscTextAlign, AscTextColor, AscTextSize, AscTimelineAlign, AscTimelineItem, AscTimelineLayout, AscTimelineStatus, AscToastOptions, AscToastSeverity, AscTooltipPosition, AscTypographyToken, AscTypographyType, AscUIButtonConfig, AscUIConfig, AscUIInputConfig, AscUILayoutConfig, AscUIMessages, AscUITableConfig, AscUIThemeConfig, AscUIToastConfig, AscUIValidationConfig, AscValidationMessageFn, AscValidationMessages };