@aseansc/ui 5.5.2 → 5.7.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.5.2",
3
+ "version": "5.7.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",
@@ -48,19 +48,20 @@ $asc-slate-800: #1e293b;
48
48
  $asc-slate-900: #0f172a;
49
49
  $asc-slate-950: #020617;
50
50
 
51
- // ── Green — giữ lại (không xoá), nhưng success giờ dùng Emerald (đúng design) ──
51
+ // ── Green (success — theo export Figma Alias 2026-10-29: success = green/500) ──
52
52
  $asc-green-50: #f0fdf4;
53
53
  $asc-green-100: #dcfce7;
54
54
  $asc-green-500: #22c55e;
55
55
  $asc-green-600: #16a34a;
56
56
  $asc-green-700: #15803d;
57
+ $asc-green-950: #052e16;
57
58
 
58
- // ── Emerald (success — theo design-token-color.json: success = #10b981) ──────
59
+ // ── Emerald — giữ lại (không xoá), success đã chuyển sang Green theo design ──
59
60
  $asc-emerald-50: #ecfdf5;
60
61
  $asc-emerald-500: #10b981;
61
62
  $asc-emerald-600: #059669;
62
63
 
63
- // ── Amber (warning — theo design-token-color.json: warning = #f59e0b) ────────
64
+ // ── Amber — giữ lại (không xoá), warning đã chuyển sang Yellow theo design ───
64
65
  $asc-amber-500: #f59e0b;
65
66
 
66
67
  // ── Yellow — vẫn dùng cho Background/yellow (bg nhạt của warning) ────────────
@@ -86,6 +87,7 @@ $asc-red-600: #dc2626;
86
87
 
87
88
  // ── White / Black ─────────────────────────────────────────────────────────────
88
89
  $asc-white: #ffffff;
90
+ $asc-white-variable: #fcfcfc; // Figma Color/white/variable — dùng cho Text/Icon.reverse
89
91
  $asc-black: #000000;
90
92
 
91
93
  // ── Spacing scale ─────────────────────────────────────────────────────────────
@@ -16,16 +16,16 @@
16
16
  --asc-color-primary-hover: #{p.$asc-brand-600}; // hover state — Brand.hover
17
17
  --asc-color-primary-active: #{p.$asc-brand-700}; // active/pressed — Brand.secondary
18
18
  --asc-color-primary-text: #{p.$asc-white}; // text on primary bg — Background.on-brand
19
- // ── Color: Semantic states — theo design-token-color.json ───────────────────
20
- --asc-color-success: #{p.$asc-emerald-500}; // Brand.tertiary / Text.success
21
- --asc-color-success-bg: #{p.$asc-emerald-50}; // Background.green
19
+ // ── Color: Semantic states — theo export Figma Alias (light/dark.tokens.json, 2026-10-29) ──
20
+ --asc-color-success: #{p.$asc-green-500}; // Brand.tertiary / Background/Border/Icon/Text.success
21
+ --asc-color-success-bg: #{p.$asc-green-50}; // Background.green
22
22
  --asc-color-success-border: #{p.$asc-green-100};
23
23
 
24
- --asc-color-warning: #{p.$asc-amber-500}; // Border/Icon/Text.warning
24
+ --asc-color-warning: #{p.$asc-yellow-500}; // Background/Border.warning
25
25
  --asc-color-warning-bg: #{p.$asc-yellow-50}; // Background.yellow
26
26
  --asc-color-warning-border: #{p.$asc-yellow-100};
27
27
 
28
- --asc-color-danger: #{p.$asc-red-500}; // Border/Icon/Text.danger
28
+ --asc-color-danger: #{p.$asc-red-500}; // Background/Border/Icon/Text.error (design đổi tên danger → error)
29
29
  --asc-color-danger-bg: #{p.$asc-red-50}; // Background.red
30
30
  --asc-color-danger-border: #{p.$asc-red-100};
31
31
 
@@ -40,11 +40,16 @@
40
40
  --asc-surface-overlay: #{p.$asc-white}; // dialog / tooltip bg
41
41
  --asc-surface-hover: #{p.$asc-grey-50}; // Background.surface
42
42
  --asc-surface-active: #{p.$asc-grey-100}; // Background.onSurface
43
+ // Background."surface 0" trong export mới = white 70% (light) / grey-400 (dark) — chưa áp
44
+ // vì đang làm nền table/radio, chờ designer xác nhận. Giữ trắng đặc.
43
45
  --asc-surface-0: #{p.$asc-white};
44
46
  --asc-surface-50: #{p.$asc-white};
45
47
  --asc-formfield-bg: #{p.$asc-white}; // nền input/select/datepicker... (PrimeNG formField.background)
48
+ --asc-formfield-disabled-bg: #{p.$asc-grey-50}; // Input/background/disable
49
+ --asc-formfield-border-color: #{p.$asc-grey-100}; // Input/border/default
46
50
  --asc-formfield-focus-border-color: #{p.$asc-grey-300}; // input/border/focus = #A7A7A8
47
51
  --asc-formfield-disabled-border-color: #{p.$asc-grey-50}; // input/border/disable = #F2F3F5
52
+ --asc-formfield-placeholder-color: #{p.$asc-grey-600}; // Input/text/unfill
48
53
  // Nút xóa (Delete action) trong input/select/datepicker/password... — tròn xám, dấu × trắng
49
54
  --asc-input-clear-bg: #{p.$asc-grey-100};
50
55
  --asc-input-clear-bg-hover: #{p.$asc-grey-200};
@@ -54,7 +59,7 @@
54
59
  --asc-border-color: #{p.$asc-grey-100}; // Border.default
55
60
  --asc-border-color-strong: #{p.$asc-grey-300}; // Border.secondary
56
61
  --asc-border-color-focus: #{p.$asc-blue-500}; // Border.info
57
- --asc-border-color-invalid: #{p.$asc-red-500}; // Border.danger
62
+ --asc-border-color-invalid: #{p.$asc-red-500}; // Border.error
58
63
  --asc-border-color-brand: #{p.$asc-brand-500}; // Border.brand — token trước đây chưa có
59
64
 
60
65
  // ── Color: Text — Text.* (design-token-color.json) ───────────────────────────
@@ -62,13 +67,18 @@
62
67
  --asc-text-secondary: #{p.$asc-grey-600}; // Text.secondary — sửa theo tài liệu MD gốc (file color mới bị trùng giá trị với tertiary, nghi lỗi copy)
63
68
  --asc-text-muted: #{p.$asc-grey-500}; // Text.tertiary
64
69
  --asc-text-disabled: #{p.$asc-grey-200}; // Text.disable
65
- --asc-text-inverse: #{p.$asc-white}; // Text.reverse
70
+ --asc-text-inverse: #{p.$asc-white-variable}; // Text.reverse = #FCFCFC (light + dark)
66
71
  --asc-text-placeholder: #{p.$asc-grey-500};
67
72
  --asc-text-link: #{p.$asc-blue-600}; // Text.link — ĐỔI: link giờ là xanh dương, không còn dùng brand đỏ
68
73
  --asc-text-link-hover: #{p.$asc-blue-700};
69
- --asc-text-invalid: #{p.$asc-red-500}; // Text.danger
74
+ --asc-text-invalid: #{p.$asc-red-500}; // Text.error
70
75
  --asc-text-brand: #{p.$asc-brand-500}; // Text.brand — token mới, tách riêng khỏi link
71
76
  --asc-table-header-color: #A3A3A3; // chữ header AscTable — theo design mới
77
+ --asc-paginator-border: transparent; // Pagination/border/default (light = trắng trên nền trắng)
78
+ --asc-paginator-border-active: transparent;
79
+ // Figma: white/499 (trắng 70%) trên khung #F2F3F5 — khung code giữ trắng 95% nên
80
+ // dùng Background/surface để mục active/hover còn nhìn thấy.
81
+ --asc-sidebar-item-active-bg: #{p.$asc-grey-50};
72
82
  --asc-table-border-color: #0C0C0D1A; // kẻ ô table (grey đậm, alpha 10%) — theo design mới
73
83
 
74
84
  // ── Color: Icon — Icon.* (design-token-color.json) — tier mới, trước đây
@@ -78,8 +88,8 @@
78
88
  --asc-icon-disabled: #{p.$asc-grey-200};
79
89
  --asc-icon-brand: #{p.$asc-brand-500};
80
90
  --asc-icon-link: #{p.$asc-blue-600};
81
- --asc-icon-danger: #{p.$asc-red-500};
82
- --asc-icon-success: #{p.$asc-emerald-500};
91
+ --asc-icon-danger: #{p.$asc-red-500}; // Icon.error
92
+ --asc-icon-success: #{p.$asc-green-500};
83
93
  --asc-icon-info: #{p.$asc-blue-500};
84
94
 
85
95
  // ── Typography ─────────────────────────────────────────────────────────────
@@ -163,33 +173,43 @@
163
173
  --asc-color-primary-hover: #{p.$asc-brand-400}; // Brand.hover (dark)
164
174
  --asc-color-primary-active: #{p.$asc-brand-300}; // Brand.secondary (dark)
165
175
 
166
- --asc-color-success-bg: #022c22; // Background.green (dark)
176
+ --asc-color-success-bg: #{p.$asc-green-950}; // Background.green (dark)
167
177
  --asc-color-warning-bg: #422006; // Background.yellow (dark)
168
178
  --asc-color-danger-bg: #{p.$asc-brand-950}; // Background.red (dark) = #5c0a05
169
179
  --asc-color-info-bg: #172554; // Background.blue (dark)
170
180
 
171
181
  --asc-surface-ground: #0c0c0d; // Background.default (dark)
172
182
  --asc-surface-base: #{p.$asc-grey-800}; // Background.surface (dark)
173
- --asc-surface-translucent: #{rgba(p.$asc-grey-800, 0.95)}; // layout main / sidebar / table header (dark)
183
+ --asc-surface-translucent: #{rgba(p.$asc-grey-800, 0.95)}; // layout main / sidebar / table header (dark)
174
184
  --asc-surface-overlay: #{p.$asc-grey-800};
175
185
  --asc-surface-hover: #{p.$asc-grey-800};
176
186
  --asc-surface-active: #{p.$asc-grey-700}; // Background.onSurface (dark)
177
187
 
188
+ // Form field (dark) — theo Figma Components: Input/* (dark)
189
+ --asc-formfield-bg: #{p.$asc-grey-800}; // Input/background/default = Background/surface
190
+ --asc-formfield-disabled-bg: #{p.$asc-grey-800}; // Input/background/disable
191
+ --asc-formfield-border-color: #{p.$asc-grey-700}; // Input/border/default
192
+ --asc-formfield-focus-border-color: #{p.$asc-grey-500}; // Input/border/focus = Border/secondary
193
+ --asc-formfield-disabled-border-color: #{p.$asc-grey-800}; // = nền disable
194
+ --asc-formfield-placeholder-color: #{p.$asc-grey-200}; // Input/text/unfill = Text/secondary
195
+
178
196
  --asc-border-color: #{p.$asc-grey-700}; // Border.default (dark)
179
197
  --asc-border-color-strong: #{p.$asc-grey-500}; // Border.secondary (dark)
180
- --asc-border-color-focus: #{p.$asc-blue-400};
198
+ --asc-border-color-focus: #{p.$asc-blue-500}; // Border.info (dark) — không đổi so với light
181
199
  --asc-border-color-brand: #{p.$asc-brand-500}; // Border.brand (dark) — không đổi
182
200
 
183
201
  --asc-text-primary: #{p.$asc-grey-10}; // Text.primary (dark)
184
202
  --asc-table-header-color: #{p.$asc-grey-10}; // dark giữ như cũ (= Text.primary dark)
203
+ --asc-paginator-border: #{p.$asc-grey-700}; // Pagination/border/default (dark) = Border/default
204
+ --asc-paginator-border-active: #{p.$asc-brand-500}; // Pagination/border/hover (dark) = Border/brand
205
+ --asc-sidebar-item-active-bg: #{rgba(#0c0c0d, 0.7)}; // Sidebar/background/Active (dark) = black/500
206
+ --asc-dialog-bg: #{rgba(#0c0c0d, 0.9)}; // Modal/background (dark) = Background/default
185
207
  --asc-text-secondary: #{p.$asc-grey-200}; // Text.secondary (dark)
186
208
  --asc-text-muted: #{p.$asc-grey-300}; // Text.tertiary (dark)
187
209
  --asc-text-disabled: #{p.$asc-grey-600}; // Text.disable (dark)
188
210
  --asc-text-placeholder: #{p.$asc-grey-300};
189
- // Text.link (dark) trong design-token-color.json bị #ef4444 (trùng màu danger,
190
- // nghi lỗi copy-paste) — dùng blue-400 (nhạt hơn cho nền tối) thay vì giá trị lỗi đó.
191
- --asc-text-link: #{p.$asc-blue-400};
192
- --asc-text-link-hover: #{p.$asc-blue-400};
211
+ --asc-text-link: #{p.$asc-blue-500}; // Text.link (dark) — export Figma 2026-10-29
212
+ --asc-text-link-hover: #{p.$asc-blue-400}; // design chưa có hover — nhạt hơn 1 bậc trên nền tối
193
213
  --asc-text-brand: #{p.$asc-brand-500}; // không đổi
194
214
 
195
215
  --asc-icon-primary: #{p.$asc-grey-10};
@@ -198,7 +218,7 @@
198
218
  --asc-icon-brand: #{p.$asc-brand-500};
199
219
  --asc-icon-link: #{p.$asc-blue-600}; // không đổi so với light
200
220
  --asc-icon-danger: #{p.$asc-red-500};
201
- --asc-icon-success: #{p.$asc-emerald-500};
221
+ --asc-icon-success: #{p.$asc-green-500};
202
222
  --asc-icon-info: #{p.$asc-blue-500};
203
223
 
204
224
  // Button outline (dark) — design chưa có, đảo sang tone sáng để đọc được trên nền tối
@@ -1,19 +1,19 @@
1
- .layout-main-container {
2
- display: flex;
3
- flex-direction: column;
4
- min-height: 100vh;
5
- justify-content: space-between;
6
- padding: 6rem 2rem 0 2rem;
7
- transition: margin-left var(--layout-section-transition-duration);
8
- }
9
-
10
- .layout-main {
11
- flex: 1 1 auto;
12
- padding: 1.5rem 1.5rem 2rem;
13
- background-color: var(--asc-surface-translucent);
14
- border-radius: 1.25rem;
15
- }
16
-
17
- img {
18
- max-width: none !important;
19
- }
1
+ .layout-main-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ min-height: 100vh;
5
+ justify-content: space-between;
6
+ padding: 6rem 2rem 0 2rem;
7
+ transition: margin-left var(--layout-section-transition-duration);
8
+ }
9
+
10
+ .layout-main {
11
+ flex: 1 1 auto;
12
+ padding: 1.5rem 1.5rem 2rem;
13
+ background-color: var(--asc-surface-translucent);
14
+ border-radius: 1.25rem;
15
+ }
16
+
17
+ img {
18
+ max-width: none !important;
19
+ }
@@ -99,8 +99,8 @@
99
99
  outline: 0 none;
100
100
  color: var(--text-color);
101
101
  cursor: pointer;
102
- padding: 10px 8px;
103
- border-radius: var(--content-border-radius);
102
+ padding: 8px; // Figma Sidebar-item
103
+ border-radius: 8px;
104
104
  transition:
105
105
  background-color var(--element-transition-duration),
106
106
  box-shadow var(--element-transition-duration);
@@ -108,6 +108,7 @@
108
108
  .layout-menuitem-icon {
109
109
  margin-right: 0.5rem;
110
110
  flex-shrink: 0;
111
+ font-size: 20px; // Figma Sidebar-item icon 20×20 (item.iconSize vẫn ghi đè được)
111
112
  }
112
113
 
113
114
  .layout-submenu-toggler {
@@ -116,13 +117,11 @@
116
117
  transition: transform var(--element-transition-duration);
117
118
  }
118
119
 
119
- &.active-route {
120
- font-weight: 700;
121
- color: var(--primary-color);
122
- }
123
-
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,
124
122
  &:hover {
125
- background-color: var(--surface-hover);
123
+ background-color: var(--asc-sidebar-item-active-bg);
124
+ font-weight: 500;
126
125
  }
127
126
 
128
127
  &:focus {
package/tokens/preset.css CHANGED
@@ -59,10 +59,10 @@
59
59
  --asc-color-primary-hover: #e6271b;
60
60
  --asc-color-primary-active: #b7251d;
61
61
  --asc-color-primary-text: #ffffff;
62
- --asc-color-success: #10b981;
63
- --asc-color-success-bg: #ecfdf5;
62
+ --asc-color-success: #22c55e;
63
+ --asc-color-success-bg: #f0fdf4;
64
64
  --asc-color-success-border: #dcfce7;
65
- --asc-color-warning: #f59e0b;
65
+ --asc-color-warning: #eab308;
66
66
  --asc-color-warning-bg: #fefce8;
67
67
  --asc-color-warning-border: #fef9c3;
68
68
  --asc-color-danger: #ef4444;
@@ -80,8 +80,11 @@
80
80
  --asc-surface-0: #ffffff;
81
81
  --asc-surface-50: #ffffff;
82
82
  --asc-formfield-bg: #ffffff;
83
+ --asc-formfield-disabled-bg: #f2f3f5;
84
+ --asc-formfield-border-color: #dedfe0;
83
85
  --asc-formfield-focus-border-color: #a7a7a8;
84
86
  --asc-formfield-disabled-border-color: #f2f3f5;
87
+ --asc-formfield-placeholder-color: #5b5b5c;
85
88
  --asc-input-clear-bg: #dedfe0;
86
89
  --asc-input-clear-bg-hover: #c0c0c2;
87
90
  --asc-input-clear-color: #ffffff;
@@ -94,13 +97,16 @@
94
97
  --asc-text-secondary: #5b5b5c;
95
98
  --asc-text-muted: #747475;
96
99
  --asc-text-disabled: #c0c0c2;
97
- --asc-text-inverse: #ffffff;
100
+ --asc-text-inverse: #fcfcfc;
98
101
  --asc-text-placeholder: #747475;
99
102
  --asc-text-link: #2563eb;
100
103
  --asc-text-link-hover: #1d4ed8;
101
104
  --asc-text-invalid: #ef4444;
102
105
  --asc-text-brand: #f74036;
103
106
  --asc-table-header-color: #A3A3A3;
107
+ --asc-paginator-border: transparent;
108
+ --asc-paginator-border-active: transparent;
109
+ --asc-sidebar-item-active-bg: #f2f3f5;
104
110
  --asc-table-border-color: #0C0C0D1A;
105
111
  --asc-icon-primary: #0f0f0f;
106
112
  --asc-icon-secondary: #8d8e8f;
@@ -108,7 +114,7 @@
108
114
  --asc-icon-brand: #f74036;
109
115
  --asc-icon-link: #2563eb;
110
116
  --asc-icon-danger: #ef4444;
111
- --asc-icon-success: #10b981;
117
+ --asc-icon-success: #22c55e;
112
118
  --asc-icon-info: #3b82f6;
113
119
  --asc-font-family: 'Inter', -apple-system, BlinkMacSystemFont,
114
120
  'Segoe UI', sans-serif;
@@ -166,7 +172,7 @@
166
172
  --asc-color-primary: #f74036;
167
173
  --asc-color-primary-hover: #ff6259;
168
174
  --asc-color-primary-active: #ff8983;
169
- --asc-color-success-bg: #022c22;
175
+ --asc-color-success-bg: #052e16;
170
176
  --asc-color-warning-bg: #422006;
171
177
  --asc-color-danger-bg: #5c0a05;
172
178
  --asc-color-info-bg: #172554;
@@ -176,17 +182,27 @@
176
182
  --asc-surface-overlay: #282829;
177
183
  --asc-surface-hover: #282829;
178
184
  --asc-surface-active: #424242;
185
+ --asc-formfield-bg: #282829;
186
+ --asc-formfield-disabled-bg: #282829;
187
+ --asc-formfield-border-color: #424242;
188
+ --asc-formfield-focus-border-color: #747475;
189
+ --asc-formfield-disabled-border-color: #282829;
190
+ --asc-formfield-placeholder-color: #c0c0c2;
179
191
  --asc-border-color: #424242;
180
192
  --asc-border-color-strong: #747475;
181
- --asc-border-color-focus: #60a5fa;
193
+ --asc-border-color-focus: #3b82f6;
182
194
  --asc-border-color-brand: #f74036;
183
195
  --asc-text-primary: #fafafc;
184
196
  --asc-table-header-color: #fafafc;
197
+ --asc-paginator-border: #424242;
198
+ --asc-paginator-border-active: #f74036;
199
+ --asc-sidebar-item-active-bg: rgba(12, 12, 13, 0.7);
200
+ --asc-dialog-bg: rgba(12, 12, 13, 0.9);
185
201
  --asc-text-secondary: #c0c0c2;
186
202
  --asc-text-muted: #a7a7a8;
187
203
  --asc-text-disabled: #5b5b5c;
188
204
  --asc-text-placeholder: #a7a7a8;
189
- --asc-text-link: #60a5fa;
205
+ --asc-text-link: #3b82f6;
190
206
  --asc-text-link-hover: #60a5fa;
191
207
  --asc-text-brand: #f74036;
192
208
  --asc-icon-primary: #fafafc;
@@ -195,7 +211,7 @@
195
211
  --asc-icon-brand: #f74036;
196
212
  --asc-icon-link: #2563eb;
197
213
  --asc-icon-danger: #ef4444;
198
- --asc-icon-success: #10b981;
214
+ --asc-icon-success: #22c55e;
199
215
  --asc-icon-info: #3b82f6;
200
216
  --asc-button-outline-border: #8d8e8f;
201
217
  --asc-button-outline-text: #fafafc;
@@ -1018,14 +1034,15 @@ img {
1018
1034
  outline: 0 none;
1019
1035
  color: var(--text-color);
1020
1036
  cursor: pointer;
1021
- padding: 10px 8px;
1022
- border-radius: var(--content-border-radius);
1037
+ padding: 8px;
1038
+ border-radius: 8px;
1023
1039
  transition: background-color var(--element-transition-duration), box-shadow var(--element-transition-duration);
1024
1040
  }
1025
1041
 
1026
1042
  .layout-menu ul a .layout-menuitem-icon {
1027
1043
  margin-right: 0.5rem;
1028
1044
  flex-shrink: 0;
1045
+ font-size: 20px;
1029
1046
  }
1030
1047
 
1031
1048
  .layout-menu ul a .layout-submenu-toggler {
@@ -1034,13 +1051,9 @@ img {
1034
1051
  transition: transform var(--element-transition-duration);
1035
1052
  }
1036
1053
 
1037
- .layout-menu ul a.active-route {
1038
- font-weight: 700;
1039
- color: var(--primary-color);
1040
- }
1041
-
1042
- .layout-menu ul a:hover {
1043
- background-color: var(--surface-hover);
1054
+ .layout-menu ul a.active-route, .layout-menu ul a:hover {
1055
+ background-color: var(--asc-sidebar-item-active-bg);
1056
+ font-weight: 500;
1044
1057
  }
1045
1058
 
1046
1059
  .layout-menu ul a:focus {
@@ -762,6 +762,8 @@ declare class AscInputComponent extends BaseControlAccessor<string> {
762
762
  readonly type: _angular_core.InputSignal<"text" | "email">;
763
763
  readonly icon: _angular_core.InputSignal<string>;
764
764
  readonly iconPos: _angular_core.InputSignal<"left" | "right">;
765
+ /** `icon="search"` hoặc `icon="pi pi-search"` → dùng icon search dựng sẵn của thư viện */
766
+ protected readonly isSearchIcon: _angular_core.Signal<boolean>;
765
767
  readonly clearable: _angular_core.InputSignal<boolean>;
766
768
  readonly maxLength: _angular_core.InputSignal<number | null>;
767
769
  readonly showCounter: _angular_core.InputSignal<boolean>;
@@ -1403,6 +1405,34 @@ declare class AscUpload extends BaseControlAccessor<File | File[] | null> {
1403
1405
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscUpload, "asc-upload", never, { "actionEvents": { "alias": "actionEvents"; "required": false; "isSignal": true; }; "uploadMode": { "alias": "uploadMode"; "required": false; "isSignal": true; }; "maxSizePerFile": { "alias": "maxSizePerFile"; "required": false; "isSignal": true; }; "multipleUpload": { "alias": "multipleUpload"; "required": false; "isSignal": true; }; "totalSize": { "alias": "totalSize"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "chooseLabel": { "alias": "chooseLabel"; "required": false; "isSignal": true; }; }, {}, never, ["[empty]"], true, never>;
1404
1406
  }
1405
1407
 
1408
+ /** Tên icon dựng sẵn trong thư viện. */
1409
+ type AscBuiltinIconName = 'approve' | 'view' | 'edit' | 'delete' | 'search';
1410
+ /** Path data (viewBox 0 0 20 20) của từng icon — render với fill="currentColor". */
1411
+ declare const ASC_BUILTIN_ICONS: Record<AscBuiltinIconName, string>;
1412
+
1413
+ /**
1414
+ * Nhận tên icon dựng sẵn ('approve' | 'view' | 'edit' | 'delete' | 'search') hoặc class
1415
+ * PrimeIcons tương ứng ('pi pi-trash'...) → trả về tên icon dựng sẵn, không khớp → null.
1416
+ */
1417
+ declare function resolveAscBuiltinIcon(icon: string | null | undefined): AscBuiltinIconName | null;
1418
+ /**
1419
+ * Icon dựng sẵn của thư viện (bộ icon thao tác của designer) — SVG inline, không fetch HTTP,
1420
+ * màu theo `currentColor`.
1421
+ *
1422
+ * @example
1423
+ * <asc-svg-icon name="edit" />
1424
+ * <asc-svg-icon name="search" size="16px" />
1425
+ */
1426
+ declare class AscSvgIconComponent {
1427
+ /** Tên icon dựng sẵn */
1428
+ readonly name: _angular_core.InputSignal<AscBuiltinIconName>;
1429
+ /** Kích thước CSS — mặc định 20px theo thiết kế */
1430
+ readonly size: _angular_core.InputSignal<string>;
1431
+ protected readonly path: _angular_core.Signal<string>;
1432
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscSvgIconComponent, never>;
1433
+ 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>;
1434
+ }
1435
+
1406
1436
  /**
1407
1437
  * @file asc-table.types.ts
1408
1438
  *
@@ -1843,6 +1873,8 @@ declare class AscTableComponent<T extends object = Record<string, unknown>> impl
1843
1873
  * Không set → toggle qua `selectedRows`/`selectionChange` như cũ.
1844
1874
  */
1845
1875
  protected toggleGroupSelection(rowIndex: number, span: number): void;
1876
+ /** Icon thao tác dựng sẵn (approve/view/edit/delete) — nhận cả tên lẫn class PrimeIcons cũ (pi-trash...) */
1877
+ protected readonly builtinIcon: typeof resolveAscBuiltinIcon;
1846
1878
  protected getVisibleActions(row: T): AscTableAction<T>[];
1847
1879
  protected openActionMenu(event: MouseEvent, row: T, rowIndex: number, menu: Menu): void;
1848
1880
  protected isSelected(row: T): boolean;
@@ -2399,7 +2431,7 @@ declare class AscToast {
2399
2431
  readonly key: _angular_core.InputSignal<string | undefined>;
2400
2432
  protected readonly resolvedPosition: Signal<ToastPositionType>;
2401
2433
  protected readonly resolvedLife: Signal<number>;
2402
- protected getIcon(severity: AscToastSeverity | string | undefined): string;
2434
+ protected getIconPath(severity: AscToastSeverity | string | undefined): string;
2403
2435
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscToast, never>;
2404
2436
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscToast, "asc-toast", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "life": { "alias": "life"; "required": false; "isSignal": true; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2405
2437
  }
@@ -3221,5 +3253,5 @@ declare class AscTrimSpaceDirective {
3221
3253
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AscTrimSpaceDirective, "[ascTrimSpace]", never, {}, {}, never, never, true, never>;
3222
3254
  }
3223
3255
 
3224
- export { ASC_BASE_CONTROL, 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, 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 };
3225
- export type { AscAlertSeverity, AscAutoCompleteItem, AscAvatarShape, AscAvatarSize, AscBadgeConfig, AscBadgeSeverity, AscBgColor, AscBorderColor, AscBorderStyle, AscBorderWidth, AscBoxHeight, AscBoxRadius, AscBoxWidth, 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 };
3256
+ 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 };
3257
+ export type { AscAlertSeverity, AscAutoCompleteItem, 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 };