@aseansc/ui 5.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aseansc/ui",
3
- "version": "5.7.0",
3
+ "version": "5.7.1",
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",
@@ -80,6 +80,12 @@
80
80
  // dùng Background/surface để mục active/hover còn nhìn thấy.
81
81
  --asc-sidebar-item-active-bg: #{p.$asc-grey-50};
82
82
  --asc-table-border-color: #0C0C0D1A; // kẻ ô table (grey đậm, alpha 10%) — theo design mới
83
+ // Figma Table "Dành cho FE": header #FAFAFA (neutral/50), kẻ header phải + dưới gradient
84
+ // zinc/100 → zinc/300; hover dòng + dòng tổng Table/background/hover (#FAFAFC).
85
+ --asc-table-header-bg: #fafafa;
86
+ --asc-table-header-divider-top: #f4f4f5;
87
+ --asc-table-header-divider-bottom: #d4d4d8;
88
+ --asc-table-row-hover-bg: #{p.$asc-grey-10};
83
89
 
84
90
  // ── Color: Icon — Icon.* (design-token-color.json) — tier mới, trước đây
85
91
  // component tự tái dùng --asc-text-*, giờ có set riêng theo đúng design ──────
@@ -200,6 +206,11 @@
200
206
 
201
207
  --asc-text-primary: #{p.$asc-grey-10}; // Text.primary (dark)
202
208
  --asc-table-header-color: #{p.$asc-grey-10}; // dark giữ như cũ (= Text.primary dark)
209
+ // Figma chưa có dark cho Table/* — giữ nền header như cũ, kẻ/hover theo tông tối
210
+ --asc-table-header-bg: var(--asc-surface-translucent);
211
+ --asc-table-header-divider-top: #{p.$asc-grey-700};
212
+ --asc-table-header-divider-bottom: #{p.$asc-grey-700};
213
+ --asc-table-row-hover-bg: #{p.$asc-grey-700};
203
214
  --asc-paginator-border: #{p.$asc-grey-700}; // Pagination/border/default (dark) = Border/default
204
215
  --asc-paginator-border-active: #{p.$asc-brand-500}; // Pagination/border/hover (dark) = Border/brand
205
216
  --asc-sidebar-item-active-bg: #{rgba(#0c0c0d, 0.7)}; // Sidebar/background/Active (dark) = black/500
package/tokens/preset.css CHANGED
@@ -108,6 +108,10 @@
108
108
  --asc-paginator-border-active: transparent;
109
109
  --asc-sidebar-item-active-bg: #f2f3f5;
110
110
  --asc-table-border-color: #0C0C0D1A;
111
+ --asc-table-header-bg: #fafafa;
112
+ --asc-table-header-divider-top: #f4f4f5;
113
+ --asc-table-header-divider-bottom: #d4d4d8;
114
+ --asc-table-row-hover-bg: #fafafc;
111
115
  --asc-icon-primary: #0f0f0f;
112
116
  --asc-icon-secondary: #8d8e8f;
113
117
  --asc-icon-disabled: #c0c0c2;
@@ -194,6 +198,10 @@
194
198
  --asc-border-color-brand: #f74036;
195
199
  --asc-text-primary: #fafafc;
196
200
  --asc-table-header-color: #fafafc;
201
+ --asc-table-header-bg: var(--asc-surface-translucent);
202
+ --asc-table-header-divider-top: #424242;
203
+ --asc-table-header-divider-bottom: #424242;
204
+ --asc-table-row-hover-bg: #424242;
197
205
  --asc-paginator-border: #424242;
198
206
  --asc-paginator-border-active: #f74036;
199
207
  --asc-sidebar-item-active-bg: rgba(12, 12, 13, 0.7);
@@ -992,6 +992,8 @@ declare class AscDatepickerComponent extends BaseControlAccessor<AscDateValue> {
992
992
  /** mode="view": value đã format theo dateFormat/showTime, theo từng selectionMode */
993
993
  protected readonly resolvedViewText: _angular_core.Signal<string>;
994
994
  protected readonly hostCls: _angular_core.Signal<string>;
995
+ /** Đã có ngày (range/multiple: ít nhất 1 ngày) — Figma Date field: icon chuyển Icon/primary */
996
+ protected readonly hasValue: _angular_core.Signal<boolean>;
995
997
  protected handleChange(val: Date | Date[] | null): void;
996
998
  protected handleSelect(date: Date): void;
997
999
  protected handleFocus(event: Event): void;
@@ -1596,9 +1598,13 @@ declare class AscTableCaptionDirective {
1596
1598
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AscTableCaptionDirective, "[ascTableCaption]", never, {}, {}, never, never, true, never>;
1597
1599
  }
1598
1600
 
1599
- /** MenuItem cho popup dropdown actions — mang thêm `iconSrc` từ AscTableAction để render qua `asc-icon` */
1601
+ /**
1602
+ * MenuItem cho popup dropdown actions — mang thêm `iconSrc` từ AscTableAction để render qua `asc-icon`,
1603
+ * `danger` để tô đỏ mục Xóa (Figma: icon + chữ red/500).
1604
+ */
1600
1605
  type AscTableMenuItem = MenuItem & {
1601
1606
  iconSrc?: string;
1607
+ danger?: boolean;
1602
1608
  };
1603
1609
  declare class AscTableComponent<T extends object = Record<string, unknown>> implements OnInit {
1604
1610
  private readonly config;