@aseansc/ui 5.6.0 → 5.7.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/CHANGELOG.md +32 -0
- package/fesm2022/aseansc-ui.mjs +222 -30
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_semantic.scss +11 -0
- package/tokens/layout/_main.scss +19 -19
- package/tokens/preset.css +8 -0
- package/types/aseansc-ui.d.ts +49 -11
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,38 @@ All notable changes to `@aseansc/ui` (trước đây `@asc/ui`) are documented h
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [5.7.1] — 2026-10-30
|
|
8
|
+
|
|
9
|
+
Table và date field theo Figma "Dành cho FE".
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **`AscTable`**: padding header 8px, ô body/footer 11px 8px (dòng cao 40px); header nền #FAFAFA, kẻ dưới + kẻ phải gradient; hover dòng / dòng tổng Table/background/hover; chữ 12/18, footer 12/500; icon sort Icon/secondary.
|
|
14
|
+
- **`AscTable`**: nút tác vụ inline theo Figma Action button (icon 16 + chữ 12, padding 2px 4px, bo 4, xóa đỏ); nút "⋮" 24×20; cột dính đổi nền theo hover.
|
|
15
|
+
- **`AscTable`**: `AscTableMenuItem.danger` — mục Xóa trong menu chữ + icon đỏ.
|
|
16
|
+
- **Preset `menu`**: menu dùng chung theo Figma (bo 16, padding list 4, item 8 / bo 4 / gap 8, chữ 14/20, icon 20).
|
|
17
|
+
- **`AscDatepicker`**: icon lịch nằm trong ô (`iconDisplay="input"`), bo đủ 12px; màu icon: chưa chọn Icon/secondary, đã chọn Icon/primary, disabled Icon/disabled; chữ + placeholder disabled Text/disabled. Mở lịch bằng click/focus ô.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## [5.7.0] — 2026-10-30
|
|
22
|
+
|
|
23
|
+
Bộ icon thao tác dựng sẵn theo thiết kế (duyệt, xem, sửa, xóa, tìm kiếm).
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **`AscSvgIconComponent`** (`<asc-svg-icon name="approve | view | edit | delete | search" />`): SVG inline (không fetch HTTP), `fill="currentColor"`, mặc định 20px.
|
|
28
|
+
- **`resolveAscBuiltinIcon()`**, **`ASC_BUILTIN_ICONS`**, type **`AscBuiltinIconName`**.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- **`AscTable`**: action `icon` nhận tên icon dựng sẵn (`'approve' | 'view' | 'edit' | 'delete'`); class PrimeIcons cũ (`pi-check`, `pi-eye`, `pi-pencil`, `pi-trash`) tự đổi sang icon mới. Áp cho nút inline và menu dropdown. Màu: Icon/primary, xóa Icon/error, disabled Icon/disabled.
|
|
33
|
+
- **`AscTable`**: ô search toolbar dùng icon search mới (Icon/secondary).
|
|
34
|
+
- **`AscSelect`**: ô lọc trong panel (single + multi) dùng icon search mới.
|
|
35
|
+
- **`AscInput`**: `icon="search"` hoặc `icon="pi pi-search"` dùng icon search mới (Icon/secondary).
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
7
39
|
## [5.6.0] — 2026-10-29
|
|
8
40
|
|
|
9
41
|
Đồng bộ màu và giao diện component theo Figma "Thư viện Hệ thống nội bộ" (export Alias light/dark).
|