@aseansc/ui 5.7.1 → 5.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aseansc/ui",
3
- "version": "5.7.1",
3
+ "version": "5.7.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",
@@ -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<"edit" | "view">;
442
+ readonly mode: _angular_core.InputSignal<"view" | "edit">;
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 */
@@ -724,7 +724,7 @@ declare class AscFormFieldComponent implements AfterContentInit {
724
724
  * (xem `resolvedMode`). Input này chỉ cần dùng khi muốn ép label view riêng
725
725
  * (vd: control bên trong không hỗ trợ mode, hoặc không có control nào cả).
726
726
  */
727
- readonly mode: _angular_core.InputSignal<"edit" | "view">;
727
+ readonly mode: _angular_core.InputSignal<"view" | "edit">;
728
728
  /** Đồng bộ từ control.errors — trigger CD khi form validate */
729
729
  protected readonly controlErrors: _angular_core.WritableSignal<Record<string, unknown> | null>;
730
730
  /** true khi control có validator required */
@@ -740,7 +740,7 @@ declare class AscFormFieldComponent implements AfterContentInit {
740
740
  * 'view' nếu tự set `mode="view"` HOẶC control bên trong đang mode="view".
741
741
  * → chỉ cần set ở 1 trong 2 nơi (thường là ngay trên control), không cần lặp lại.
742
742
  */
743
- protected readonly resolvedMode: _angular_core.Signal<"edit" | "view">;
743
+ protected readonly resolvedMode: _angular_core.Signal<"view" | "edit">;
744
744
  protected readonly resolvedLabelSuffixIcon: _angular_core.Signal<string>;
745
745
  /** Dấu * bắt buộc — ẩn ở mode view (chỉ đọc, không cần nhập) */
746
746
  protected readonly showRequiredMark: _angular_core.Signal<boolean>;