@aseansc/ui 5.2.2 → 5.3.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 +21 -0
- package/README.md +1050 -1038
- package/fesm2022/aseansc-ui.mjs +543 -530
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +7 -2
- package/tokens/preset.css +1327 -0
- package/types/aseansc-ui.d.ts +21 -5
package/types/aseansc-ui.d.ts
CHANGED
|
@@ -191,6 +191,10 @@ interface AscUIConfig {
|
|
|
191
191
|
* Cấu hình theme.
|
|
192
192
|
*/
|
|
193
193
|
theme?: AscUIThemeConfig;
|
|
194
|
+
/**
|
|
195
|
+
* Cấu hình shell `AscLayout`.
|
|
196
|
+
*/
|
|
197
|
+
layout?: AscUILayoutConfig;
|
|
194
198
|
/**
|
|
195
199
|
* Cấu hình mặc định cho Button component.
|
|
196
200
|
*/
|
|
@@ -230,6 +234,14 @@ interface AscUIThemeConfig {
|
|
|
230
234
|
*/
|
|
231
235
|
showSwitcher?: boolean;
|
|
232
236
|
}
|
|
237
|
+
interface AscUILayoutConfig {
|
|
238
|
+
/**
|
|
239
|
+
* Render footer (`asc-footer`) trong `AscLayout`. `false` → không render vào DOM.
|
|
240
|
+
* Override riêng từng layout qua input `[showFooter]`.
|
|
241
|
+
* @default true
|
|
242
|
+
*/
|
|
243
|
+
showFooter?: boolean;
|
|
244
|
+
}
|
|
233
245
|
interface AscUIButtonConfig {
|
|
234
246
|
/**
|
|
235
247
|
* Size mặc định khi không truyền input [size].
|
|
@@ -704,7 +716,7 @@ declare class AscFormFieldComponent implements AfterContentInit {
|
|
|
704
716
|
*/
|
|
705
717
|
readonly forId: _angular_core.InputSignal<string>;
|
|
706
718
|
/**
|
|
707
|
-
* 'view' → label chuyển màu
|
|
719
|
+
* 'view' → label chuyển màu view (mặc định #5B5B5C, override qua CSS custom
|
|
708
720
|
* property --asc-field-label-view-color).
|
|
709
721
|
*
|
|
710
722
|
* Không bắt buộc set thủ công — nếu control bên trong (asc-input, asc-select...)
|
|
@@ -1192,7 +1204,7 @@ declare class AscRadioComponent extends BaseControlAccessor<unknown> {
|
|
|
1192
1204
|
/** Hướng danh sách. @default 'column' */
|
|
1193
1205
|
readonly layout: _angular_core.InputSignal<"column" | "row">;
|
|
1194
1206
|
/** Căn theo trục ngang của item (align-items). @default 'center' */
|
|
1195
|
-
readonly alignColumn: _angular_core.InputSignal<"
|
|
1207
|
+
readonly alignColumn: _angular_core.InputSignal<"center" | "start">;
|
|
1196
1208
|
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
1197
1209
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1198
1210
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -2131,7 +2143,7 @@ declare class AscDialogComponent {
|
|
|
2131
2143
|
readonly maximizable: _angular_core.InputSignal<boolean>;
|
|
2132
2144
|
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
2133
2145
|
readonly resizable: _angular_core.InputSignal<boolean>;
|
|
2134
|
-
readonly position: _angular_core.InputSignal<"
|
|
2146
|
+
readonly position: _angular_core.InputSignal<"center" | "left" | "right" | "top" | "bottom" | "topleft" | "topright" | "bottomleft" | "bottomright">;
|
|
2135
2147
|
/** Hiện footer mặc định với 2 nút confirm/cancel */
|
|
2136
2148
|
readonly showFooter: _angular_core.InputSignal<boolean>;
|
|
2137
2149
|
readonly confirmLabel: _angular_core.InputSignal<string>;
|
|
@@ -2959,6 +2971,10 @@ declare class AscLayout implements OnDestroy {
|
|
|
2959
2971
|
breadCrumb: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
2960
2972
|
dropdownTpl: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
2961
2973
|
footerSidebarTpl: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
2974
|
+
/** Render footer — không truyền thì fallback về config.layout.showFooter → true. `false` → không có trong DOM. */
|
|
2975
|
+
showFooter: _angular_core.InputSignal<boolean | undefined>;
|
|
2976
|
+
private readonly config;
|
|
2977
|
+
protected readonly resolvedShowFooter: _angular_core.Signal<boolean>;
|
|
2962
2978
|
constructor(layoutService: LayoutService, renderer: Renderer2, router: Router);
|
|
2963
2979
|
get containerClass(): {
|
|
2964
2980
|
'layout-overlay': boolean;
|
|
@@ -2975,7 +2991,7 @@ declare class AscLayout implements OnDestroy {
|
|
|
2975
2991
|
overlayMenuOpenSubscription: Subscription;
|
|
2976
2992
|
menuOutsideClickListener: (() => void) | null;
|
|
2977
2993
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscLayout, never>;
|
|
2978
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscLayout, "asc-layout", never, { "menuItems": { "alias": "menuItems"; "required": true; "isSignal": true; }; "sideBarLogo": { "alias": "sideBarLogo"; "required": false; "isSignal": true; }; "topBarLogo": { "alias": "topBarLogo"; "required": false; "isSignal": true; }; "iconToggle": { "alias": "iconToggle"; "required": false; "isSignal": true; }; "breadCrumb": { "alias": "breadCrumb"; "required": false; "isSignal": true; }; "dropdownTpl": { "alias": "dropdownTpl"; "required": false; "isSignal": true; }; "footerSidebarTpl": { "alias": "footerSidebarTpl"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2994
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscLayout, "asc-layout", never, { "menuItems": { "alias": "menuItems"; "required": true; "isSignal": true; }; "sideBarLogo": { "alias": "sideBarLogo"; "required": false; "isSignal": true; }; "topBarLogo": { "alias": "topBarLogo"; "required": false; "isSignal": true; }; "iconToggle": { "alias": "iconToggle"; "required": false; "isSignal": true; }; "breadCrumb": { "alias": "breadCrumb"; "required": false; "isSignal": true; }; "dropdownTpl": { "alias": "dropdownTpl"; "required": false; "isSignal": true; }; "footerSidebarTpl": { "alias": "footerSidebarTpl"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2979
2995
|
}
|
|
2980
2996
|
|
|
2981
2997
|
declare class AscBreadcrumb {
|
|
@@ -3208,4 +3224,4 @@ declare class AscTrimSpaceDirective {
|
|
|
3208
3224
|
}
|
|
3209
3225
|
|
|
3210
3226
|
export { ASC_BASE_CONTROL, ASC_MESSAGES_EN_US, ASC_MESSAGES_VI_VN, ASC_PRESET, ASC_UI_CONFIG, ASC_UI_DEFAULT_CONFIG, ASC_UI_MESSAGES, AscAccordionComponent, AscAccordionItemComponent, AscAlertComponent, AscAutoCompleteComponent, AscAvatarComponent, AscAvatarGroupComponent, AscBadgeComponent, AscBoxDirective, AscBreadcrumb, AscButtonComponent, AscCardComponent, AscCardFooterDirective, AscCardHeaderDirective, AscCheckboxComponent, AscConfirmDialog, AscConfirmPopup, AscConfirmService, AscDatepickerComponent, AscDialogComponent, AscDialogFooterDirective, AscDialogHeaderDirective, AscDividerComponent, AscEmptyStateComponent, AscFormFieldComponent, AscIconComponent, AscIconService, AscInputComponent, AscInputMaskComponent, AscInputNumberComponent, AscLayout, AscLoadingBarComponent, AscLoadingOverlayComponent, AscLocaleService, AscMessageErrorPipe, AscPaginatorComponent, AscPasswordComponent, AscPicklistComponent, AscPopoverComponent, AscProgressBarComponent, AscRadioComponent, AscSelectButtonComponent, AscSelectComponent, AscSidebarComponent, AscSidebarFooterDirective, AscSidebarHeaderDirective, AscSkeletonComponent, AscSpinnerComponent, AscStepComponent, AscStepContentDirective, AscStepperComponent, AscTabComponent, AscTableCaptionDirective, AscTableCellDirective, AscTableComponent, AscTableEmptyDirective, AscTableExpandDirective, AscTabsComponent, AscTextDirective, AscTextareaComponent, AscThemeService, AscTimelineComponent, AscToast, AscToastService, AscToggleSwitchComponent, AscTooltipDirective, AscTrimSpaceDirective, AscTypographyDirective, AscUpload, BaseControlAccessor, ascCls, ascUniqueId, coerceArray, coerceBooleanProperty, coerceNumberProperty, coerceStringProperty, isAscSeverity, isAscSize, provideAscUI };
|
|
3211
|
-
export type { AscAlertSeverity, AscAutoCompleteItem, AscAvatarShape, AscAvatarSize, AscBadgeConfig, AscBadgeSeverity, AscBgColor, AscBorderColor, AscBorderStyle, AscBorderWidth, AscBoxHeight, AscBoxRadius, AscBoxWidth, AscButtonVariant, AscCardRadius, AscCardShadow, AscCheckboxOption, AscColumnFormat, AscColumnVisibility, AscConfirmOptions, AscConfirmPopupOptions, AscDateSelectionMode, AscDateValue, AscDateView, AscDividerAlign, AscDividerLayout, AscDividerType, AscFontWeight, AscFormLayout, AscHourFormat, AscIconPosition, AscInputVariant, AscLeading, AscLocale, AscMenuItem, AscNumberType, AscProgressBarMode, AscSelectOption, AscSelectionMode, AscSeverity, AscSize, AscSkeletonPreset, AscSkeletonShape, AscSpinnerSize, AscTableAction, AscTableCellContext, AscTableColumn, AscTableColumnType, AscTableExpandContext, AscTableFilterMeta, AscTableLazyLoadEvent, AscTablePageEvent, AscTableSortEvent, AscTableSortMeta, AscTabsOrientation, AscTextAlign, AscTextColor, AscTextSize, AscTimelineAlign, AscTimelineItem, AscTimelineLayout, AscTimelineStatus, AscToastOptions, AscToastSeverity, AscTooltipPosition, AscTypographyToken, AscTypographyType, AscUIButtonConfig, AscUIConfig, AscUIInputConfig, AscUIMessages, AscUITableConfig, AscUIThemeConfig, AscUIToastConfig, AscUIValidationConfig, AscValidationMessageFn, AscValidationMessages };
|
|
3227
|
+
export type { AscAlertSeverity, AscAutoCompleteItem, AscAvatarShape, AscAvatarSize, AscBadgeConfig, AscBadgeSeverity, AscBgColor, AscBorderColor, AscBorderStyle, AscBorderWidth, AscBoxHeight, AscBoxRadius, AscBoxWidth, AscButtonVariant, AscCardRadius, AscCardShadow, AscCheckboxOption, AscColumnFormat, AscColumnVisibility, AscConfirmOptions, AscConfirmPopupOptions, AscDateSelectionMode, AscDateValue, AscDateView, AscDividerAlign, AscDividerLayout, AscDividerType, AscFontWeight, AscFormLayout, AscHourFormat, AscIconPosition, AscInputVariant, AscLeading, AscLocale, AscMenuItem, AscNumberType, AscProgressBarMode, AscSelectOption, AscSelectionMode, AscSeverity, AscSize, AscSkeletonPreset, AscSkeletonShape, AscSpinnerSize, AscTableAction, AscTableCellContext, AscTableColumn, AscTableColumnType, AscTableExpandContext, AscTableFilterMeta, AscTableLazyLoadEvent, AscTablePageEvent, AscTableSortEvent, AscTableSortMeta, AscTabsOrientation, AscTextAlign, AscTextColor, AscTextSize, AscTimelineAlign, AscTimelineItem, AscTimelineLayout, AscTimelineStatus, AscToastOptions, AscToastSeverity, AscTooltipPosition, AscTypographyToken, AscTypographyType, AscUIButtonConfig, AscUIConfig, AscUIInputConfig, AscUILayoutConfig, AscUIMessages, AscUITableConfig, AscUIThemeConfig, AscUIToastConfig, AscUIValidationConfig, AscValidationMessageFn, AscValidationMessages };
|