@aseansc/ui 5.5.1 → 5.6.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 +47 -0
- package/fesm2022/aseansc-ui.mjs +933 -597
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_primitive.scss +5 -3
- package/tokens/_semantic.scss +39 -17
- package/tokens/layout/_main.scss +19 -19
- package/tokens/layout/_menu.scss +170 -171
- package/tokens/preset.css +35 -20
- package/types/aseansc-ui.d.ts +9 -9
package/tokens/preset.css
CHANGED
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
--asc-color-primary-hover: #e6271b;
|
|
60
60
|
--asc-color-primary-active: #b7251d;
|
|
61
61
|
--asc-color-primary-text: #ffffff;
|
|
62
|
-
--asc-color-success: #
|
|
63
|
-
--asc-color-success-bg: #
|
|
62
|
+
--asc-color-success: #22c55e;
|
|
63
|
+
--asc-color-success-bg: #f0fdf4;
|
|
64
64
|
--asc-color-success-border: #dcfce7;
|
|
65
|
-
--asc-color-warning: #
|
|
65
|
+
--asc-color-warning: #eab308;
|
|
66
66
|
--asc-color-warning-bg: #fefce8;
|
|
67
67
|
--asc-color-warning-border: #fef9c3;
|
|
68
68
|
--asc-color-danger: #ef4444;
|
|
@@ -73,14 +73,18 @@
|
|
|
73
73
|
--asc-color-info-border: #dbeafe;
|
|
74
74
|
--asc-surface-ground: #fafafc;
|
|
75
75
|
--asc-surface-base: #ffffff;
|
|
76
|
+
--asc-surface-translucent: rgba(255, 255, 255, 0.95);
|
|
76
77
|
--asc-surface-overlay: #ffffff;
|
|
77
78
|
--asc-surface-hover: #f2f3f5;
|
|
78
79
|
--asc-surface-active: #dedfe0;
|
|
79
80
|
--asc-surface-0: #ffffff;
|
|
80
81
|
--asc-surface-50: #ffffff;
|
|
81
82
|
--asc-formfield-bg: #ffffff;
|
|
83
|
+
--asc-formfield-disabled-bg: #f2f3f5;
|
|
84
|
+
--asc-formfield-border-color: #dedfe0;
|
|
82
85
|
--asc-formfield-focus-border-color: #a7a7a8;
|
|
83
86
|
--asc-formfield-disabled-border-color: #f2f3f5;
|
|
87
|
+
--asc-formfield-placeholder-color: #5b5b5c;
|
|
84
88
|
--asc-input-clear-bg: #dedfe0;
|
|
85
89
|
--asc-input-clear-bg-hover: #c0c0c2;
|
|
86
90
|
--asc-input-clear-color: #ffffff;
|
|
@@ -93,13 +97,16 @@
|
|
|
93
97
|
--asc-text-secondary: #5b5b5c;
|
|
94
98
|
--asc-text-muted: #747475;
|
|
95
99
|
--asc-text-disabled: #c0c0c2;
|
|
96
|
-
--asc-text-inverse: #
|
|
100
|
+
--asc-text-inverse: #fcfcfc;
|
|
97
101
|
--asc-text-placeholder: #747475;
|
|
98
102
|
--asc-text-link: #2563eb;
|
|
99
103
|
--asc-text-link-hover: #1d4ed8;
|
|
100
104
|
--asc-text-invalid: #ef4444;
|
|
101
105
|
--asc-text-brand: #f74036;
|
|
102
106
|
--asc-table-header-color: #A3A3A3;
|
|
107
|
+
--asc-paginator-border: transparent;
|
|
108
|
+
--asc-paginator-border-active: transparent;
|
|
109
|
+
--asc-sidebar-item-active-bg: #f2f3f5;
|
|
103
110
|
--asc-table-border-color: #0C0C0D1A;
|
|
104
111
|
--asc-icon-primary: #0f0f0f;
|
|
105
112
|
--asc-icon-secondary: #8d8e8f;
|
|
@@ -107,7 +114,7 @@
|
|
|
107
114
|
--asc-icon-brand: #f74036;
|
|
108
115
|
--asc-icon-link: #2563eb;
|
|
109
116
|
--asc-icon-danger: #ef4444;
|
|
110
|
-
--asc-icon-success: #
|
|
117
|
+
--asc-icon-success: #22c55e;
|
|
111
118
|
--asc-icon-info: #3b82f6;
|
|
112
119
|
--asc-font-family: 'Inter', -apple-system, BlinkMacSystemFont,
|
|
113
120
|
'Segoe UI', sans-serif;
|
|
@@ -165,26 +172,37 @@
|
|
|
165
172
|
--asc-color-primary: #f74036;
|
|
166
173
|
--asc-color-primary-hover: #ff6259;
|
|
167
174
|
--asc-color-primary-active: #ff8983;
|
|
168
|
-
--asc-color-success-bg: #
|
|
175
|
+
--asc-color-success-bg: #052e16;
|
|
169
176
|
--asc-color-warning-bg: #422006;
|
|
170
177
|
--asc-color-danger-bg: #5c0a05;
|
|
171
178
|
--asc-color-info-bg: #172554;
|
|
172
179
|
--asc-surface-ground: #0c0c0d;
|
|
173
180
|
--asc-surface-base: #282829;
|
|
181
|
+
--asc-surface-translucent: rgba(40, 40, 41, 0.95);
|
|
174
182
|
--asc-surface-overlay: #282829;
|
|
175
183
|
--asc-surface-hover: #282829;
|
|
176
184
|
--asc-surface-active: #424242;
|
|
185
|
+
--asc-formfield-bg: #282829;
|
|
186
|
+
--asc-formfield-disabled-bg: #282829;
|
|
187
|
+
--asc-formfield-border-color: #424242;
|
|
188
|
+
--asc-formfield-focus-border-color: #747475;
|
|
189
|
+
--asc-formfield-disabled-border-color: #282829;
|
|
190
|
+
--asc-formfield-placeholder-color: #c0c0c2;
|
|
177
191
|
--asc-border-color: #424242;
|
|
178
192
|
--asc-border-color-strong: #747475;
|
|
179
|
-
--asc-border-color-focus: #
|
|
193
|
+
--asc-border-color-focus: #3b82f6;
|
|
180
194
|
--asc-border-color-brand: #f74036;
|
|
181
195
|
--asc-text-primary: #fafafc;
|
|
182
196
|
--asc-table-header-color: #fafafc;
|
|
197
|
+
--asc-paginator-border: #424242;
|
|
198
|
+
--asc-paginator-border-active: #f74036;
|
|
199
|
+
--asc-sidebar-item-active-bg: rgba(12, 12, 13, 0.7);
|
|
200
|
+
--asc-dialog-bg: rgba(12, 12, 13, 0.9);
|
|
183
201
|
--asc-text-secondary: #c0c0c2;
|
|
184
202
|
--asc-text-muted: #a7a7a8;
|
|
185
203
|
--asc-text-disabled: #5b5b5c;
|
|
186
204
|
--asc-text-placeholder: #a7a7a8;
|
|
187
|
-
--asc-text-link: #
|
|
205
|
+
--asc-text-link: #3b82f6;
|
|
188
206
|
--asc-text-link-hover: #60a5fa;
|
|
189
207
|
--asc-text-brand: #f74036;
|
|
190
208
|
--asc-icon-primary: #fafafc;
|
|
@@ -193,7 +211,7 @@
|
|
|
193
211
|
--asc-icon-brand: #f74036;
|
|
194
212
|
--asc-icon-link: #2563eb;
|
|
195
213
|
--asc-icon-danger: #ef4444;
|
|
196
|
-
--asc-icon-success: #
|
|
214
|
+
--asc-icon-success: #22c55e;
|
|
197
215
|
--asc-icon-info: #3b82f6;
|
|
198
216
|
--asc-button-outline-border: #8d8e8f;
|
|
199
217
|
--asc-button-outline-text: #fafafc;
|
|
@@ -769,7 +787,7 @@ a {
|
|
|
769
787
|
.layout-main {
|
|
770
788
|
flex: 1 1 auto;
|
|
771
789
|
padding: 1.5rem 1.5rem 2rem;
|
|
772
|
-
background: var(--asc-surface-
|
|
790
|
+
background-color: var(--asc-surface-translucent);
|
|
773
791
|
border-radius: 1.25rem;
|
|
774
792
|
}
|
|
775
793
|
|
|
@@ -946,7 +964,7 @@ img {
|
|
|
946
964
|
top: var(--layout-sidebar-gap);
|
|
947
965
|
left: var(--layout-sidebar-gap);
|
|
948
966
|
transition: transform var(--layout-section-transition-duration), left var(--layout-section-transition-duration);
|
|
949
|
-
background-color: var(--asc-surface-
|
|
967
|
+
background-color: var(--asc-surface-translucent);
|
|
950
968
|
border-radius: 20px;
|
|
951
969
|
padding: var(--layout-sidebar-padding-y, 16px) var(--layout-sidebar-padding-x, 12px);
|
|
952
970
|
}
|
|
@@ -1016,14 +1034,15 @@ img {
|
|
|
1016
1034
|
outline: 0 none;
|
|
1017
1035
|
color: var(--text-color);
|
|
1018
1036
|
cursor: pointer;
|
|
1019
|
-
padding:
|
|
1020
|
-
border-radius:
|
|
1037
|
+
padding: 8px;
|
|
1038
|
+
border-radius: 8px;
|
|
1021
1039
|
transition: background-color var(--element-transition-duration), box-shadow var(--element-transition-duration);
|
|
1022
1040
|
}
|
|
1023
1041
|
|
|
1024
1042
|
.layout-menu ul a .layout-menuitem-icon {
|
|
1025
1043
|
margin-right: 0.5rem;
|
|
1026
1044
|
flex-shrink: 0;
|
|
1045
|
+
font-size: 20px;
|
|
1027
1046
|
}
|
|
1028
1047
|
|
|
1029
1048
|
.layout-menu ul a .layout-submenu-toggler {
|
|
@@ -1032,13 +1051,9 @@ img {
|
|
|
1032
1051
|
transition: transform var(--element-transition-duration);
|
|
1033
1052
|
}
|
|
1034
1053
|
|
|
1035
|
-
.layout-menu ul a.active-route {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
.layout-menu ul a:hover {
|
|
1041
|
-
background-color: var(--surface-hover);
|
|
1054
|
+
.layout-menu ul a.active-route, .layout-menu ul a:hover {
|
|
1055
|
+
background-color: var(--asc-sidebar-item-active-bg);
|
|
1056
|
+
font-weight: 500;
|
|
1042
1057
|
}
|
|
1043
1058
|
|
|
1044
1059
|
.layout-menu ul a:focus {
|
package/types/aseansc-ui.d.ts
CHANGED
|
@@ -613,7 +613,7 @@ declare class AscButtonComponent {
|
|
|
613
613
|
private readonly config;
|
|
614
614
|
readonly label: _angular_core.InputSignal<string>;
|
|
615
615
|
readonly icon: _angular_core.InputSignal<string>;
|
|
616
|
-
readonly iconPos: _angular_core.InputSignal<"
|
|
616
|
+
readonly iconPos: _angular_core.InputSignal<"top" | "left" | "right" | "bottom">;
|
|
617
617
|
readonly severity: _angular_core.InputSignal<AscSeverity>;
|
|
618
618
|
readonly variant: _angular_core.InputSignal<AscButtonVariant>;
|
|
619
619
|
/**
|
|
@@ -626,7 +626,7 @@ declare class AscButtonComponent {
|
|
|
626
626
|
readonly fullWidth: _angular_core.InputSignal<boolean>;
|
|
627
627
|
readonly type: _angular_core.InputSignal<"button" | "submit" | "reset">;
|
|
628
628
|
readonly tooltip: _angular_core.InputSignal<string>;
|
|
629
|
-
readonly tooltipPos: _angular_core.InputSignal<"
|
|
629
|
+
readonly tooltipPos: _angular_core.InputSignal<"top" | "left" | "right" | "bottom">;
|
|
630
630
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
631
631
|
readonly styleClass: _angular_core.InputSignal<string>;
|
|
632
632
|
/**
|
|
@@ -819,7 +819,7 @@ declare class AscSelectComponent extends BaseControlAccessor<unknown> {
|
|
|
819
819
|
private readonly localeService;
|
|
820
820
|
protected get msg(): _aseansc_ui.AscUIMessages;
|
|
821
821
|
/** Danh sách options. Có thể là AscSelectOption[] hoặc object bất kỳ. */
|
|
822
|
-
readonly options: _angular_core.InputSignal<
|
|
822
|
+
readonly options: _angular_core.InputSignal<unknown[] | AscSelectOption<unknown>[]>;
|
|
823
823
|
/** Field tên hiển thị trong option object */
|
|
824
824
|
readonly optionLabel: _angular_core.InputSignal<string>;
|
|
825
825
|
/** Field value trong option object */
|
|
@@ -1090,7 +1090,7 @@ declare class AscInputNumberComponent extends BaseControlAccessor<number | null>
|
|
|
1090
1090
|
/** Hiển thị spinner buttons tăng/giảm */
|
|
1091
1091
|
readonly showButtons: _angular_core.InputSignal<boolean>;
|
|
1092
1092
|
/** Layout của spinner buttons khi showButtons=true */
|
|
1093
|
-
readonly buttonLayout: _angular_core.InputSignal<"
|
|
1093
|
+
readonly buttonLayout: _angular_core.InputSignal<"horizontal" | "vertical" | "stacked">;
|
|
1094
1094
|
/** Nút X xóa giá trị */
|
|
1095
1095
|
readonly showClear: _angular_core.InputSignal<boolean>;
|
|
1096
1096
|
/**
|
|
@@ -1204,7 +1204,7 @@ declare class AscRadioComponent extends BaseControlAccessor<unknown> {
|
|
|
1204
1204
|
/** Hướng danh sách. @default 'column' */
|
|
1205
1205
|
readonly layout: _angular_core.InputSignal<"column" | "row">;
|
|
1206
1206
|
/** Căn theo trục ngang của item (align-items). @default 'center' */
|
|
1207
|
-
readonly alignColumn: _angular_core.InputSignal<"
|
|
1207
|
+
readonly alignColumn: _angular_core.InputSignal<"center" | "start">;
|
|
1208
1208
|
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
1209
1209
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1210
1210
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -2143,7 +2143,7 @@ declare class AscDialogComponent {
|
|
|
2143
2143
|
readonly maximizable: _angular_core.InputSignal<boolean>;
|
|
2144
2144
|
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2145
2145
|
readonly resizable: _angular_core.InputSignal<boolean>;
|
|
2146
|
-
readonly position: _angular_core.InputSignal<"
|
|
2146
|
+
readonly position: _angular_core.InputSignal<"center" | "top" | "left" | "right" | "bottom" | "topleft" | "topright" | "bottomleft" | "bottomright">;
|
|
2147
2147
|
/** Hiện footer mặc định với 2 nút confirm/cancel */
|
|
2148
2148
|
readonly showFooter: _angular_core.InputSignal<boolean>;
|
|
2149
2149
|
readonly confirmLabel: _angular_core.InputSignal<string>;
|
|
@@ -2223,7 +2223,7 @@ declare class AscSidebarComponent {
|
|
|
2223
2223
|
/** Alias của `header()` dùng trong template — tránh đụng tên với `#header` (PrimeNG Drawer v22 content-child template). */
|
|
2224
2224
|
protected readonly headerLabel: _angular_core.Signal<string>;
|
|
2225
2225
|
readonly headerIcon: _angular_core.InputSignal<string>;
|
|
2226
|
-
readonly position: _angular_core.InputSignal<"
|
|
2226
|
+
readonly position: _angular_core.InputSignal<"top" | "left" | "right" | "bottom">;
|
|
2227
2227
|
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | "xl" | "full">;
|
|
2228
2228
|
/** Override width/height tuyệt đối */
|
|
2229
2229
|
readonly customSize: _angular_core.InputSignal<string>;
|
|
@@ -2399,7 +2399,7 @@ declare class AscToast {
|
|
|
2399
2399
|
readonly key: _angular_core.InputSignal<string | undefined>;
|
|
2400
2400
|
protected readonly resolvedPosition: Signal<ToastPositionType>;
|
|
2401
2401
|
protected readonly resolvedLife: Signal<number>;
|
|
2402
|
-
protected
|
|
2402
|
+
protected getIconPath(severity: AscToastSeverity | string | undefined): string;
|
|
2403
2403
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscToast, never>;
|
|
2404
2404
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscToast, "asc-toast", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "life": { "alias": "life"; "required": false; "isSignal": true; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2405
2405
|
}
|
|
@@ -2562,7 +2562,7 @@ declare class AscStepperComponent {
|
|
|
2562
2562
|
* 'vertical' — mỗi step xếp chồng theo cột, nội dung hiện ngay dưới header
|
|
2563
2563
|
* của chính step đó, nối nhau bằng đường kẻ dọc.
|
|
2564
2564
|
*/
|
|
2565
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
2565
|
+
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
2566
2566
|
protected readonly steps: _angular_core.Signal<readonly AscStepComponent[]>;
|
|
2567
2567
|
protected readonly hostCls: _angular_core.Signal<string>;
|
|
2568
2568
|
/** true khi step đã đi qua (value nhỏ hơn bước đang active) */
|