@aseansc/ui 5.2.3 → 5.4.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 +35 -0
- package/README.md +1050 -1038
- package/fesm2022/aseansc-ui.mjs +564 -553
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/aseansc-ui.d.ts +19 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,41 @@ All notable changes to `@aseansc/ui` (trước đây `@asc/ui`) are documented h
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [5.4.0] — 2026-10-09
|
|
8
|
+
|
|
9
|
+
Dialog / Confirm dialog / Confirm popup theo Figma Dialog.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **`AscDialogComponent` + `AscConfirmDialog` — khung dùng chung** (giờ trông giống hệt nhau):
|
|
14
|
+
- Container: nền `#FFFFFF` 95% (`--asc-surface-overlay`, dark mode tự đổi), không viền, bo **16px**.
|
|
15
|
+
- Header: margin ngang **16px**, padding dọc **12px**; title **14px / 600 / 20px** `#0F0F0F`.
|
|
16
|
+
- Divider 1px `#DEDFE0` dưới header, **cách 2 mép 16px**.
|
|
17
|
+
- Nút đóng **20×20**, màu `icon/disable` `#C0C0C2`.
|
|
18
|
+
- Content padding **16px**; footer margin-top 12px, padding-bottom 16px, không còn divider trên footer.
|
|
19
|
+
- Override qua CSS variable: `--asc-dialog-bg`, `--asc-dialog-radius`, `--asc-dialog-padding-x`, `--asc-dialog-header-padding-y`, `--asc-dialog-divider-color`, `--asc-dialog-close-color`, `--asc-dialog-title-color`.
|
|
20
|
+
- **Preset**: `--p-dialog-content-padding` → **16px** (áp cả `p-dialog` / `p-confirmdialog` dùng trực tiếp).
|
|
21
|
+
- **Nút Hủy — Outline thuần** (bỏ `severity="secondary"`): footer mặc định của `AscDialogComponent` dùng `asc-button` (`variant="outlined"`); `AscConfirmService.show()` / `.popup()` nút Hủy `outlined` — viền `#525252`, chữ `#262626`. Nút trong confirm dialog / popup trông như `asc-button` (pill, weight 400; dialog size md, popup size sm).
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **Style của `AscConfirmDialog` / `AscConfirmPopup` không áp dụng** (confirm dialog thiếu divider): class gắn qua `[class]` chỉ nằm trên thẻ host, trong khi PrimeNG render dialog/popup ra `body`. Đổi sang `styleClass` → class nằm trên root `.p-dialog` / `.p-confirmpopup`. `AscDialogComponent` cũng đổi theo (trước đây nền/bo góc/padding content target `.asc-dialog.p-dialog` không khớp).
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## [5.3.0] — 2026-10-08
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- **`AscLayout` — ẩn footer**: config `provideAscUI({ layout: { showFooter: false } })` và input `[showFooter]` trên `<asc-layout>` (input thắng config, mặc định `true`). `false` → `asc-footer` **không render vào DOM** (không phải ẩn bằng CSS). Type mới `AscUILayoutConfig`.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- **`AscSelectComponent` — mũi tên dropdown**: 20px → **13×13** ở mọi size (single + multi, kể cả icon class qua `dropdownIcon`). Spec 20px chỉ áp cho icon thêm vào; nút xóa giữ 20px.
|
|
38
|
+
- **`AscFormFieldComponent` — mode Xem**: màu label `#747475` → **`#5B5B5C`** (vẫn override được qua `--asc-field-label-view-color`).
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
7
42
|
## [5.2.3] — 2026-10-08
|
|
8
43
|
|
|
9
44
|
### Fixed
|