@aseansc/ui 5.11.0 → 5.12.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 CHANGED
@@ -4,6 +4,31 @@ All notable changes to `@aseansc/ui` (trước đây `@asc/ui`) are documented h
4
4
 
5
5
  ---
6
6
 
7
+ ## [5.12.0] — 2026-11-18
8
+
9
+ > UX review SeAHolder 18/11 (SEAHDR-518, SEAHDR-522). Mục "Changed" đổi giao diện mặc định của **mọi app**.
10
+
11
+ ### Added
12
+
13
+ - **`AscLayout` — sáng mục cha khi ở trang con** (SEAHDR-518): config `provideAscUI({ layout: { menuActiveMatch: 'longest-prefix' } })` hoặc input `[menuActiveMatch]`. Mục có `routerLink` là tiền tố dài nhất (theo segment, bỏ query / fragment / matrix) của URL được sáng và nhóm cha tự mở, kể cả F5 / vào thẳng link: `/config/fees/new` → "Quản lý biểu phí"; `/issuers/securities` chỉ sáng "Danh mục CK", không sáng `/issuers`. Mục gốc `/` chỉ sáng đúng `/`. Mặc định `'exact'` = hành vi cũ. Mục tự khai `routerLinkActiveOptions` vẫn dùng options của mục. Type `AscMenuActiveMatch`.
14
+ - **`AscCardComponent.variant`** — `'flat'`: bỏ nền, shadow, padding thân cho card lồng trong trang (UX: "bỏ box và effect shadow ở các màn cấp 2"). Biến: `--asc-card-flat-bg`, `--asc-card-flat-body-padding`. Type `AscCardVariant`.
15
+ - Icon dựng sẵn `calendar-dots` (Phosphor CalendarDots Regular).
16
+
17
+ ### Changed — thay đổi giao diện
18
+
19
+ - **Tiêu đề card** (`asc-card [title]`, `.p-card-title`): `17.5px / 500` → **`14px / 400`** (UX SeAHolder). Ghi đè: `--p-card-title-font-size`, `--p-card-title-font-weight`.
20
+ - **Popover** (`asc-popover`, `p-popover`): bo `6px` → **`16px`**, padding nội dung `10.5px` → **`12px`**. Ghi đè: `--p-popover-border-radius`, `--p-popover-content-padding`. Ảnh hưởng mọi popover: Bộ lọc nâng cao, menu user trên topbar…
21
+ - **Datepicker**: icon lịch PrimeIcons → **Phosphor CalendarDots 20px** (theo cỡ ô: xs 14px, xl 24px); bấm icon vẫn mở lịch.
22
+ - **AutoComplete**: khung gợi ý tối thiểu rộng bằng ô nhập, nở theo chữ tới `min(30rem, 100vw - 2rem)` (`--asc-overlay-max-width`), option dài **xuống dòng** thay vì bị cắt + cuộn ngang. Có `virtualScroll` (lazy): chiều cao option cố định nên không xuống dòng được → khung rộng sẵn **20rem** (`--asc-autocomplete-virtual-overlay-width`), chữ dài cắt bằng `…`.
23
+ - **Select**: cùng quy tắc overlay như AutoComplete (max-width, option xuống dòng trừ virtual scroll); `asc-select` có `min-width: 0` để co trong grid/flex, nhãn dài cắt `…` thay vì đè ô bên cạnh. App bỏ được phần vá SEAHDR-496 trong `custom.scss`.
24
+
25
+ ### Fixed
26
+
27
+ - **`AscDialogComponent`**: `[showFooter]="false"` và không có `ascDialogFooter` → không còn render `.p-dialog-footer` rỗng (thừa ~28px dưới đáy dialog).
28
+ - **`AscCardComponent`**: `shadow="none"` giờ tắt hẳn shadow (trước vẫn còn shadow của token `card.shadow` trong preset).
29
+
30
+ ---
31
+
7
32
  ## [5.11.0] — 2026-11-17
8
33
 
9
34
  ### Added