@aseansc/ui 5.2.3 → 5.4.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 +35 -0
- package/README.md +1050 -1038
- package/fesm2022/aseansc-ui.mjs +564 -553
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/aseansc-ui.d.ts +19 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aseansc/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
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
|
@@ -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...)
|
|
@@ -2149,8 +2161,6 @@ declare class AscDialogComponent {
|
|
|
2149
2161
|
protected readonly dialogWidth: _angular_core.Signal<string>;
|
|
2150
2162
|
protected readonly resolvedConfirmLabel: _angular_core.Signal<string>;
|
|
2151
2163
|
protected readonly resolvedCancelLabel: _angular_core.Signal<string>;
|
|
2152
|
-
/** Map AscSeverity → PrimeNG Button severity */
|
|
2153
|
-
protected readonly pConfirmSeverity: _angular_core.Signal<"secondary" | "success" | "info" | "warn" | "danger" | "contrast" | undefined>;
|
|
2154
2164
|
protected readonly dialogStyleClass: _angular_core.Signal<string>;
|
|
2155
2165
|
protected onConfirm(): void;
|
|
2156
2166
|
protected onCancel(): void;
|
|
@@ -2959,6 +2969,10 @@ declare class AscLayout implements OnDestroy {
|
|
|
2959
2969
|
breadCrumb: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
2960
2970
|
dropdownTpl: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
2961
2971
|
footerSidebarTpl: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
2972
|
+
/** Render footer — không truyền thì fallback về config.layout.showFooter → true. `false` → không có trong DOM. */
|
|
2973
|
+
showFooter: _angular_core.InputSignal<boolean | undefined>;
|
|
2974
|
+
private readonly config;
|
|
2975
|
+
protected readonly resolvedShowFooter: _angular_core.Signal<boolean>;
|
|
2962
2976
|
constructor(layoutService: LayoutService, renderer: Renderer2, router: Router);
|
|
2963
2977
|
get containerClass(): {
|
|
2964
2978
|
'layout-overlay': boolean;
|
|
@@ -2975,7 +2989,7 @@ declare class AscLayout implements OnDestroy {
|
|
|
2975
2989
|
overlayMenuOpenSubscription: Subscription;
|
|
2976
2990
|
menuOutsideClickListener: (() => void) | null;
|
|
2977
2991
|
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>;
|
|
2992
|
+
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
2993
|
}
|
|
2980
2994
|
|
|
2981
2995
|
declare class AscBreadcrumb {
|
|
@@ -3208,4 +3222,4 @@ declare class AscTrimSpaceDirective {
|
|
|
3208
3222
|
}
|
|
3209
3223
|
|
|
3210
3224
|
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 };
|
|
3225
|
+
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 };
|