@aseansc/ui 5.5.2 → 5.6.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/CHANGELOG.md +26 -0
- package/fesm2022/aseansc-ui.mjs +380 -61
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_primitive.scss +5 -3
- package/tokens/_semantic.scss +38 -18
- package/tokens/layout/_menu.scss +7 -8
- package/tokens/preset.css +31 -18
- package/types/aseansc-ui.d.ts +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aseansc/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.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",
|
package/tokens/_primitive.scss
CHANGED
|
@@ -48,19 +48,20 @@ $asc-slate-800: #1e293b;
|
|
|
48
48
|
$asc-slate-900: #0f172a;
|
|
49
49
|
$asc-slate-950: #020617;
|
|
50
50
|
|
|
51
|
-
// ── Green —
|
|
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
|
|
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
|
|
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 ─────────────────────────────────────────────────────────────
|
package/tokens/_semantic.scss
CHANGED
|
@@ -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
|
|
20
|
-
--asc-color-success: #{p.$asc-
|
|
21
|
-
--asc-color-success-bg: #{p.$asc-
|
|
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-
|
|
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.
|
|
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.
|
|
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-
|
|
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: #
|
|
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-
|
|
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)
|
|
190
|
-
|
|
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-
|
|
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
|
package/tokens/layout/_menu.scss
CHANGED
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
outline: 0 none;
|
|
100
100
|
color: var(--text-color);
|
|
101
101
|
cursor: pointer;
|
|
102
|
-
padding:
|
|
103
|
-
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
|
-
|
|
120
|
-
|
|
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(--
|
|
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: #
|
|
63
|
-
--asc-color-success-bg: #
|
|
62
|
+
--asc-color-success: #22c55e;
|
|
63
|
+
--asc-color-success-bg: #f0fdf4;
|
|
64
64
|
--asc-color-success-border: #dcfce7;
|
|
65
|
-
--asc-color-warning: #
|
|
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: #
|
|
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: #
|
|
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: #
|
|
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: #
|
|
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: #
|
|
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: #
|
|
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:
|
|
1022
|
-
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
|
-
|
|
1039
|
-
|
|
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 {
|
package/types/aseansc-ui.d.ts
CHANGED
|
@@ -613,7 +613,7 @@ declare class AscButtonComponent {
|
|
|
613
613
|
private readonly config;
|
|
614
614
|
readonly label: _angular_core.InputSignal<string>;
|
|
615
615
|
readonly icon: _angular_core.InputSignal<string>;
|
|
616
|
-
readonly iconPos: _angular_core.InputSignal<"
|
|
616
|
+
readonly iconPos: _angular_core.InputSignal<"top" | "left" | "right" | "bottom">;
|
|
617
617
|
readonly severity: _angular_core.InputSignal<AscSeverity>;
|
|
618
618
|
readonly variant: _angular_core.InputSignal<AscButtonVariant>;
|
|
619
619
|
/**
|
|
@@ -626,7 +626,7 @@ declare class AscButtonComponent {
|
|
|
626
626
|
readonly fullWidth: _angular_core.InputSignal<boolean>;
|
|
627
627
|
readonly type: _angular_core.InputSignal<"button" | "submit" | "reset">;
|
|
628
628
|
readonly tooltip: _angular_core.InputSignal<string>;
|
|
629
|
-
readonly tooltipPos: _angular_core.InputSignal<"
|
|
629
|
+
readonly tooltipPos: _angular_core.InputSignal<"top" | "left" | "right" | "bottom">;
|
|
630
630
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
631
631
|
readonly styleClass: _angular_core.InputSignal<string>;
|
|
632
632
|
/**
|
|
@@ -819,7 +819,7 @@ declare class AscSelectComponent extends BaseControlAccessor<unknown> {
|
|
|
819
819
|
private readonly localeService;
|
|
820
820
|
protected get msg(): _aseansc_ui.AscUIMessages;
|
|
821
821
|
/** Danh sách options. Có thể là AscSelectOption[] hoặc object bất kỳ. */
|
|
822
|
-
readonly options: _angular_core.InputSignal<
|
|
822
|
+
readonly options: _angular_core.InputSignal<unknown[] | AscSelectOption<unknown>[]>;
|
|
823
823
|
/** Field tên hiển thị trong option object */
|
|
824
824
|
readonly optionLabel: _angular_core.InputSignal<string>;
|
|
825
825
|
/** Field value trong option object */
|
|
@@ -1090,7 +1090,7 @@ declare class AscInputNumberComponent extends BaseControlAccessor<number | null>
|
|
|
1090
1090
|
/** Hiển thị spinner buttons tăng/giảm */
|
|
1091
1091
|
readonly showButtons: _angular_core.InputSignal<boolean>;
|
|
1092
1092
|
/** Layout của spinner buttons khi showButtons=true */
|
|
1093
|
-
readonly buttonLayout: _angular_core.InputSignal<"
|
|
1093
|
+
readonly buttonLayout: _angular_core.InputSignal<"horizontal" | "vertical" | "stacked">;
|
|
1094
1094
|
/** Nút X xóa giá trị */
|
|
1095
1095
|
readonly showClear: _angular_core.InputSignal<boolean>;
|
|
1096
1096
|
/**
|
|
@@ -1204,7 +1204,7 @@ declare class AscRadioComponent extends BaseControlAccessor<unknown> {
|
|
|
1204
1204
|
/** Hướng danh sách. @default 'column' */
|
|
1205
1205
|
readonly layout: _angular_core.InputSignal<"column" | "row">;
|
|
1206
1206
|
/** Căn theo trục ngang của item (align-items). @default 'center' */
|
|
1207
|
-
readonly alignColumn: _angular_core.InputSignal<"
|
|
1207
|
+
readonly alignColumn: _angular_core.InputSignal<"center" | "start">;
|
|
1208
1208
|
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
1209
1209
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1210
1210
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -2143,7 +2143,7 @@ declare class AscDialogComponent {
|
|
|
2143
2143
|
readonly maximizable: _angular_core.InputSignal<boolean>;
|
|
2144
2144
|
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2145
2145
|
readonly resizable: _angular_core.InputSignal<boolean>;
|
|
2146
|
-
readonly position: _angular_core.InputSignal<"
|
|
2146
|
+
readonly position: _angular_core.InputSignal<"center" | "top" | "left" | "right" | "bottom" | "topleft" | "topright" | "bottomleft" | "bottomright">;
|
|
2147
2147
|
/** Hiện footer mặc định với 2 nút confirm/cancel */
|
|
2148
2148
|
readonly showFooter: _angular_core.InputSignal<boolean>;
|
|
2149
2149
|
readonly confirmLabel: _angular_core.InputSignal<string>;
|
|
@@ -2223,7 +2223,7 @@ declare class AscSidebarComponent {
|
|
|
2223
2223
|
/** Alias của `header()` dùng trong template — tránh đụng tên với `#header` (PrimeNG Drawer v22 content-child template). */
|
|
2224
2224
|
protected readonly headerLabel: _angular_core.Signal<string>;
|
|
2225
2225
|
readonly headerIcon: _angular_core.InputSignal<string>;
|
|
2226
|
-
readonly position: _angular_core.InputSignal<"
|
|
2226
|
+
readonly position: _angular_core.InputSignal<"top" | "left" | "right" | "bottom">;
|
|
2227
2227
|
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | "xl" | "full">;
|
|
2228
2228
|
/** Override width/height tuyệt đối */
|
|
2229
2229
|
readonly customSize: _angular_core.InputSignal<string>;
|
|
@@ -2399,7 +2399,7 @@ declare class AscToast {
|
|
|
2399
2399
|
readonly key: _angular_core.InputSignal<string | undefined>;
|
|
2400
2400
|
protected readonly resolvedPosition: Signal<ToastPositionType>;
|
|
2401
2401
|
protected readonly resolvedLife: Signal<number>;
|
|
2402
|
-
protected
|
|
2402
|
+
protected getIconPath(severity: AscToastSeverity | string | undefined): string;
|
|
2403
2403
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscToast, never>;
|
|
2404
2404
|
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
2405
|
}
|
|
@@ -2562,7 +2562,7 @@ declare class AscStepperComponent {
|
|
|
2562
2562
|
* 'vertical' — mỗi step xếp chồng theo cột, nội dung hiện ngay dưới header
|
|
2563
2563
|
* của chính step đó, nối nhau bằng đường kẻ dọc.
|
|
2564
2564
|
*/
|
|
2565
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
2565
|
+
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
2566
2566
|
protected readonly steps: _angular_core.Signal<readonly AscStepComponent[]>;
|
|
2567
2567
|
protected readonly hostCls: _angular_core.Signal<string>;
|
|
2568
2568
|
/** true khi step đã đi qua (value nhỏ hơn bước đang active) */
|