@aseansc/ui 4.1.0 → 5.1.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 +1035 -997
- package/fesm2022/aseansc-ui.mjs +350 -81
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_semantic.scss +6 -2
- package/tokens/layout/_main.scss +1 -1
- package/tokens/layout/_menu.scss +24 -7
- package/tokens/layout/_responsive.scss +12 -1
- package/tokens/layout/_topbar.scss +164 -159
- package/tokens/layout/variables/_common.scss +4 -0
- package/tokens/layout/variables/_dark.scss +2 -0
- package/tokens/layout/variables/_light.scss +2 -1
- package/tokens/preset.css +47 -14
- package/types/aseansc-ui.d.ts +34 -2
package/types/aseansc-ui.d.ts
CHANGED
|
@@ -2425,14 +2425,28 @@ declare class AscTabComponent {
|
|
|
2425
2425
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscTabComponent, "asc-tab", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2426
2426
|
}
|
|
2427
2427
|
|
|
2428
|
+
type AscTabsOrientation = 'horizontal' | 'vertical';
|
|
2428
2429
|
declare class AscTabsComponent {
|
|
2430
|
+
private readonly destroyRef;
|
|
2429
2431
|
/** Giá trị tab đang active. Dùng [(value)]="..." để two-way bind. */
|
|
2430
2432
|
readonly value: _angular_core.ModelSignal<string | number | undefined>;
|
|
2433
|
+
/** Hướng hiển thị: 'horizontal' (tab ngang, mặc định) | 'vertical' (menu dọc bên trái) */
|
|
2434
|
+
readonly orientation: _angular_core.InputSignal<AscTabsOrientation>;
|
|
2435
|
+
/**
|
|
2436
|
+
* Chỉ áp dụng khi orientation='vertical'. Hiện tất cả panel nối tiếp nhau,
|
|
2437
|
+
* click menu → cuộn tới section, cuộn nội dung → menu tự active theo.
|
|
2438
|
+
*/
|
|
2439
|
+
readonly scrollSpy: _angular_core.InputSignal<boolean>;
|
|
2440
|
+
/** Chỉ áp dụng khi scrollSpy=true — hiện label của tab làm tiêu đề mỗi section */
|
|
2441
|
+
readonly showSectionTitle: _angular_core.InputSignal<boolean>;
|
|
2442
|
+
/** Chiều rộng menu dọc (CSS length) */
|
|
2443
|
+
readonly navWidth: _angular_core.InputSignal<string>;
|
|
2431
2444
|
/** Kích hoạt scroll ngang khi tab list vượt quá chiều rộng container */
|
|
2432
2445
|
readonly scrollable: _angular_core.InputSignal<boolean>;
|
|
2433
2446
|
/**
|
|
2434
2447
|
* Lazy rendering — panel content không được render cho đến khi tab được
|
|
2435
2448
|
* kích hoạt lần đầu. Hữu ích khi panel chứa content nặng.
|
|
2449
|
+
* Không áp dụng cho scrollSpy (mọi section luôn được render).
|
|
2436
2450
|
*/
|
|
2437
2451
|
readonly lazy: _angular_core.InputSignal<boolean>;
|
|
2438
2452
|
/** Tự động activate tab khi focus bằng bàn phím (arrow keys) */
|
|
@@ -2441,9 +2455,27 @@ declare class AscTabsComponent {
|
|
|
2441
2455
|
readonly showNavigators: _angular_core.InputSignal<boolean>;
|
|
2442
2456
|
readonly styleClass: _angular_core.InputSignal<string>;
|
|
2443
2457
|
protected readonly tabs: _angular_core.Signal<readonly AscTabComponent[]>;
|
|
2458
|
+
private readonly contentEl;
|
|
2459
|
+
private readonly sectionEls;
|
|
2460
|
+
private readonly navItemEls;
|
|
2461
|
+
/** Các tab đã từng active — dùng cho lazy ở chế độ vertical */
|
|
2462
|
+
protected readonly visited: _angular_core.WritableSignal<ReadonlySet<string | number>>;
|
|
2463
|
+
/** Giá trị vừa được scroll-spy set — để effect không cuộn ngược lại */
|
|
2464
|
+
private spiedValue;
|
|
2465
|
+
/** Đang cuộn bằng code (click menu) — tạm tắt scroll-spy tới khi cuộn xong */
|
|
2466
|
+
private programmaticScroll;
|
|
2467
|
+
private programmaticScrollTimer;
|
|
2444
2468
|
protected readonly hostCls: _angular_core.Signal<string>;
|
|
2469
|
+
/** Tab active thực tế — vertical chưa set value thì lấy tab đầu tiên không disabled */
|
|
2470
|
+
protected readonly activeValue: _angular_core.Signal<string | number | undefined>;
|
|
2471
|
+
constructor();
|
|
2472
|
+
protected select(tab: AscTabComponent): void;
|
|
2473
|
+
protected onNavKeydown(event: KeyboardEvent, index: number): void;
|
|
2474
|
+
protected onContentScroll(): void;
|
|
2475
|
+
private scrollToSection;
|
|
2476
|
+
private armProgrammaticScrollTimer;
|
|
2445
2477
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AscTabsComponent, never>;
|
|
2446
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscTabsComponent, "asc-tabs", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; "isSignal": true; }; "showNavigators": { "alias": "showNavigators"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["tabs"], never, true, never>;
|
|
2478
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AscTabsComponent, "asc-tabs", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "scrollSpy": { "alias": "scrollSpy"; "required": false; "isSignal": true; }; "showSectionTitle": { "alias": "showSectionTitle"; "required": false; "isSignal": true; }; "navWidth": { "alias": "navWidth"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; "isSignal": true; }; "showNavigators": { "alias": "showNavigators"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["tabs"], never, true, never>;
|
|
2447
2479
|
}
|
|
2448
2480
|
|
|
2449
2481
|
/**
|
|
@@ -3160,4 +3192,4 @@ declare class AscTrimSpaceDirective {
|
|
|
3160
3192
|
}
|
|
3161
3193
|
|
|
3162
3194
|
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 };
|
|
3163
|
-
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, AscTextAlign, AscTextColor, AscTextSize, AscTimelineAlign, AscTimelineItem, AscTimelineLayout, AscTimelineStatus, AscToastOptions, AscToastSeverity, AscTooltipPosition, AscTypographyToken, AscTypographyType, AscUIButtonConfig, AscUIConfig, AscUIInputConfig, AscUIMessages, AscUITableConfig, AscUIThemeConfig, AscUIToastConfig, AscUIValidationConfig, AscValidationMessageFn, AscValidationMessages };
|
|
3195
|
+
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 };
|