@aseansc/ui 5.9.0 → 5.9.2
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 +25 -0
- package/fesm2022/aseansc-ui.mjs +2 -2
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/aseansc-ui.d.ts +13 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aseansc/ui",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.2",
|
|
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/types/aseansc-ui.d.ts
CHANGED
|
@@ -439,7 +439,7 @@ declare abstract class BaseControlAccessor<T> implements ControlValueAccessor, O
|
|
|
439
439
|
* dạng text thay vì form control). AscFormFieldComponent tự đọc giá trị này
|
|
440
440
|
* qua ContentChild để đồng bộ style label — không cần set mode ở cả 2 nơi.
|
|
441
441
|
*/
|
|
442
|
-
readonly mode: _angular_core.InputSignal<"
|
|
442
|
+
readonly mode: _angular_core.InputSignal<"edit" | "view">;
|
|
443
443
|
/** Giá trị hiện tại của control */
|
|
444
444
|
readonly value: _angular_core.WritableSignal<T | null>;
|
|
445
445
|
/** Trạng thái disabled từ FormControl/NgModel */
|
|
@@ -701,7 +701,7 @@ declare class AscButtonComponent {
|
|
|
701
701
|
* xs và sm → 'small', lg và xl → 'large', md → undefined (default PrimeNG size)
|
|
702
702
|
* xs được xử lý riêng bằng CSS override ở trên.
|
|
703
703
|
*/
|
|
704
|
-
protected readonly pSize: _angular_core.Signal<"
|
|
704
|
+
protected readonly pSize: _angular_core.Signal<"small" | "large" | undefined>;
|
|
705
705
|
/**
|
|
706
706
|
* PrimeNG severity không có 'primary' — đó là default khi không truyền severity.
|
|
707
707
|
* Map 'primary' → undefined để PrimeNG dùng primary color của theme.
|
|
@@ -783,7 +783,7 @@ declare class AscFormFieldComponent implements AfterContentInit {
|
|
|
783
783
|
* (xem `resolvedMode`). Input này chỉ cần dùng khi muốn ép label view riêng
|
|
784
784
|
* (vd: control bên trong không hỗ trợ mode, hoặc không có control nào cả).
|
|
785
785
|
*/
|
|
786
|
-
readonly mode: _angular_core.InputSignal<"
|
|
786
|
+
readonly mode: _angular_core.InputSignal<"edit" | "view">;
|
|
787
787
|
/** Đồng bộ từ control.errors — trigger CD khi form validate */
|
|
788
788
|
protected readonly controlErrors: _angular_core.WritableSignal<Record<string, unknown> | null>;
|
|
789
789
|
/** true khi control có validator required */
|
|
@@ -799,7 +799,7 @@ declare class AscFormFieldComponent implements AfterContentInit {
|
|
|
799
799
|
* 'view' nếu tự set `mode="view"` HOẶC control bên trong đang mode="view".
|
|
800
800
|
* → chỉ cần set ở 1 trong 2 nơi (thường là ngay trên control), không cần lặp lại.
|
|
801
801
|
*/
|
|
802
|
-
protected readonly resolvedMode: _angular_core.Signal<"
|
|
802
|
+
protected readonly resolvedMode: _angular_core.Signal<"edit" | "view">;
|
|
803
803
|
protected readonly resolvedLabelSuffixIcon: _angular_core.Signal<string>;
|
|
804
804
|
/** Dấu * bắt buộc — ẩn ở mode view (chỉ đọc, không cần nhập) */
|
|
805
805
|
protected readonly showRequiredMark: _angular_core.Signal<boolean>;
|
|
@@ -1153,7 +1153,7 @@ declare class AscInputNumberComponent extends BaseControlAccessor<number | null>
|
|
|
1153
1153
|
/** Hiển thị spinner buttons tăng/giảm */
|
|
1154
1154
|
readonly showButtons: _angular_core.InputSignal<boolean>;
|
|
1155
1155
|
/** Layout của spinner buttons khi showButtons=true */
|
|
1156
|
-
readonly buttonLayout: _angular_core.InputSignal<"
|
|
1156
|
+
readonly buttonLayout: _angular_core.InputSignal<"vertical" | "horizontal" | "stacked">;
|
|
1157
1157
|
/** Nút X xóa giá trị */
|
|
1158
1158
|
readonly showClear: _angular_core.InputSignal<boolean>;
|
|
1159
1159
|
/**
|
|
@@ -1233,7 +1233,7 @@ declare class AscCheckboxComponent extends BaseControlAccessor<unknown> {
|
|
|
1233
1233
|
get controlDisabled(): boolean;
|
|
1234
1234
|
protected readonly groupValue: _angular_core.Signal<unknown[]>;
|
|
1235
1235
|
protected readonly binaryValue: _angular_core.Signal<boolean>;
|
|
1236
|
-
protected readonly resolvedPSize: _angular_core.Signal<"
|
|
1236
|
+
protected readonly resolvedPSize: _angular_core.Signal<"small" | "large" | undefined>;
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Size cho class host `asc-checkbox--{size}` (mặc định 'md' như các control khác).
|
|
1239
1239
|
* Không override `controlSize` — giữ nguyên cỡ label của asc-form-field ở chế độ sửa.
|
|
@@ -1349,7 +1349,7 @@ declare class AscSelectButtonComponent extends BaseControlAccessor<unknown> {
|
|
|
1349
1349
|
protected readonly isInvalidState: _angular_core.Signal<boolean>;
|
|
1350
1350
|
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
1351
1351
|
get controlDisabled(): boolean;
|
|
1352
|
-
protected readonly resolvedPSize: _angular_core.Signal<"
|
|
1352
|
+
protected readonly resolvedPSize: _angular_core.Signal<"small" | "large" | undefined>;
|
|
1353
1353
|
protected readonly modelValue: _angular_core.Signal<unknown>;
|
|
1354
1354
|
protected readonly listCls: _angular_core.Signal<string>;
|
|
1355
1355
|
/** Tìm label tương ứng 1 value trong options — fallback về chính value nếu không tìm thấy */
|
|
@@ -1423,7 +1423,7 @@ declare class AscToggleSwitchComponent extends BaseControlAccessor<boolean> {
|
|
|
1423
1423
|
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
1424
1424
|
get controlDisabled(): boolean;
|
|
1425
1425
|
protected readonly isInvalidState: _angular_core.Signal<boolean>;
|
|
1426
|
-
protected readonly resolvedPSize: _angular_core.Signal<"
|
|
1426
|
+
protected readonly resolvedPSize: _angular_core.Signal<"small" | "large" | undefined>;
|
|
1427
1427
|
protected readonly hostCls: _angular_core.Signal<string>;
|
|
1428
1428
|
protected labelCls(): string;
|
|
1429
1429
|
protected handleChange(checked: boolean): void;
|
|
@@ -1564,7 +1564,10 @@ interface AscTableColumn<T = unknown> {
|
|
|
1564
1564
|
frozen?: boolean;
|
|
1565
1565
|
alignFrozen?: 'left' | 'right';
|
|
1566
1566
|
hidden?: boolean;
|
|
1567
|
+
/** Căn ô dữ liệu (td) — mặc định theo type: number/currency → right, date/boolean/actions → center, còn lại left. Không áp header. */
|
|
1567
1568
|
align?: 'left' | 'center' | 'right';
|
|
1569
|
+
/** Căn header (th) — mặc định luôn 'left', không theo type/align. */
|
|
1570
|
+
headerAlign?: 'left' | 'center' | 'right';
|
|
1568
1571
|
format?: AscColumnFormat;
|
|
1569
1572
|
badgeMap?: Record<string, AscBadgeConfig>;
|
|
1570
1573
|
badgeFallback?: AscBadgeConfig;
|
|
@@ -2253,7 +2256,7 @@ declare class AscDialogComponent {
|
|
|
2253
2256
|
readonly maximizable: _angular_core.InputSignal<boolean>;
|
|
2254
2257
|
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2255
2258
|
readonly resizable: _angular_core.InputSignal<boolean>;
|
|
2256
|
-
readonly position: _angular_core.InputSignal<"left" | "right" | "
|
|
2259
|
+
readonly position: _angular_core.InputSignal<"left" | "right" | "top" | "bottom" | "center" | "topleft" | "topright" | "bottomleft" | "bottomright">;
|
|
2257
2260
|
/** Hiện footer mặc định với 2 nút confirm/cancel */
|
|
2258
2261
|
readonly showFooter: _angular_core.InputSignal<boolean>;
|
|
2259
2262
|
readonly confirmLabel: _angular_core.InputSignal<string>;
|
|
@@ -2672,7 +2675,7 @@ declare class AscStepperComponent {
|
|
|
2672
2675
|
* 'vertical' — mỗi step xếp chồng theo cột, nội dung hiện ngay dưới header
|
|
2673
2676
|
* của chính step đó, nối nhau bằng đường kẻ dọc.
|
|
2674
2677
|
*/
|
|
2675
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
2678
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
2676
2679
|
protected readonly steps: _angular_core.Signal<readonly AscStepComponent[]>;
|
|
2677
2680
|
protected readonly hostCls: _angular_core.Signal<string>;
|
|
2678
2681
|
/** true khi step đã đi qua (value nhỏ hơn bước đang active) */
|