@ascentgl/ads-ui 22.0.3 → 22.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/package.json
CHANGED
|
@@ -168,7 +168,7 @@ declare class AdsButtonComponent {
|
|
|
168
168
|
|
|
169
169
|
declare class AdsButtonContainerComponent {
|
|
170
170
|
/** How buttons in the container should be placed */
|
|
171
|
-
justify: i0.InputSignal<"
|
|
171
|
+
justify: i0.InputSignal<"flex-start" | "flex-end" | "center">;
|
|
172
172
|
/** The gap between elements */
|
|
173
173
|
gap: i0.InputSignal<number>;
|
|
174
174
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdsButtonContainerComponent, never>;
|
|
@@ -2237,6 +2237,112 @@ declare class AdsChipComponent {
|
|
|
2237
2237
|
static ɵcmp: i0.ɵɵComponentDeclaration<AdsChipComponent, "ads-chip", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "showCheckedIcon": { "alias": "showCheckedIcon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "deletable": { "alias": "deletable"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "dropdown": { "alias": "dropdown"; "required": false; "isSignal": true; }; "dropdownOptions": { "alias": "dropdownOptions"; "required": false; "isSignal": true; }; }, { "deleted": "deleted"; "selected": "selected"; "optionSelected": "optionSelected"; }, never, ["*"], true, never>;
|
|
2238
2238
|
}
|
|
2239
2239
|
|
|
2240
|
+
/**
|
|
2241
|
+
* A single selectable entry inside an {@link AdsMenuDropDownComponent}.
|
|
2242
|
+
*/
|
|
2243
|
+
interface AdsMenuDropDownItem {
|
|
2244
|
+
/** Unique identifier for the item, used for tracking and emitted on selection */
|
|
2245
|
+
id: string;
|
|
2246
|
+
/** The visible text label of the item */
|
|
2247
|
+
label: string;
|
|
2248
|
+
/** Optional leading icon name from the ADS icon set */
|
|
2249
|
+
icon?: adsIcon;
|
|
2250
|
+
/** Whether the item is disabled (skipped during keyboard navigation and not selectable) */
|
|
2251
|
+
disabled?: boolean;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
declare class AdsMenuDropDownComponent implements AfterViewInit {
|
|
2255
|
+
private registry;
|
|
2256
|
+
constructor(registry: AdsIconRegistry);
|
|
2257
|
+
/** The list of menu items to display */
|
|
2258
|
+
items: i0.InputSignal<AdsMenuDropDownItem[]>;
|
|
2259
|
+
/** Accessible label describing the menu, exposed via `aria-label` */
|
|
2260
|
+
ariaLabel: i0.InputSignal<string>;
|
|
2261
|
+
/** Move keyboard focus to the first item once the menu is rendered */
|
|
2262
|
+
autoFocus: i0.InputSignal<boolean>;
|
|
2263
|
+
/** Emitted when an enabled item is selected (via click, Enter or Space) */
|
|
2264
|
+
itemSelect: i0.OutputEmitterRef<AdsMenuDropDownItem>;
|
|
2265
|
+
/** Emitted when the menu requests to close (Escape key or Tab out) */
|
|
2266
|
+
closed: i0.OutputEmitterRef<void>;
|
|
2267
|
+
/** @ignore Index of the item that currently owns the roving tabindex */
|
|
2268
|
+
readonly activeIndex: i0.WritableSignal<number>;
|
|
2269
|
+
/** @ignore References to the rendered menu item buttons */
|
|
2270
|
+
private readonly itemButtons;
|
|
2271
|
+
/** @ignore */
|
|
2272
|
+
ngAfterViewInit(): void;
|
|
2273
|
+
/** @ignore Handles all keyboard interaction for the menu */
|
|
2274
|
+
onKeydown(event: KeyboardEvent): void;
|
|
2275
|
+
/** @ignore */
|
|
2276
|
+
selectItem(item: AdsMenuDropDownItem): void;
|
|
2277
|
+
/** @ignore */
|
|
2278
|
+
private selectActive;
|
|
2279
|
+
/** @ignore Moves focus to the next enabled item in the given direction, wrapping around */
|
|
2280
|
+
private moveFocus;
|
|
2281
|
+
/** @ignore */
|
|
2282
|
+
private focusIndex;
|
|
2283
|
+
/** @ignore */
|
|
2284
|
+
private firstEnabledIndex;
|
|
2285
|
+
/** @ignore */
|
|
2286
|
+
private lastEnabledIndex;
|
|
2287
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdsMenuDropDownComponent, never>;
|
|
2288
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdsMenuDropDownComponent, "ads-menu-drop-down", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; "closed": "closed"; }, never, never, true, never>;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
/** Preferred side/alignment the menu opens towards before auto-flipping. */
|
|
2292
|
+
type AdsMenuDropDownPosition = 'below-start' | 'below-end' | 'above-start' | 'above-end';
|
|
2293
|
+
/**
|
|
2294
|
+
* Opens an {@link AdsMenuDropDownComponent} in a CDK overlay anchored to the host element.
|
|
2295
|
+
*
|
|
2296
|
+
* The overlay is rendered at the document root (so it is never clipped by an ag-grid cell or
|
|
2297
|
+
* any `overflow: hidden` ancestor) and auto-positions itself: it opens towards `menuPosition`
|
|
2298
|
+
* when there is room, otherwise it flips to whichever side fits, and is pushed fully into the
|
|
2299
|
+
* viewport as a last resort so it is always visible.
|
|
2300
|
+
*
|
|
2301
|
+
* @example
|
|
2302
|
+
* ```html
|
|
2303
|
+
* <ads-icon-button
|
|
2304
|
+
* [adsMenuDropDownTriggerFor]="actionItems"
|
|
2305
|
+
* menuPosition="below-start"
|
|
2306
|
+
* (itemSelect)="onAction($event, row)">
|
|
2307
|
+
* <ads-icon name="more_vertical" />
|
|
2308
|
+
* </ads-icon-button>
|
|
2309
|
+
* ```
|
|
2310
|
+
*/
|
|
2311
|
+
declare class AdsMenuDropDownTriggerDirective implements OnDestroy {
|
|
2312
|
+
private readonly overlay;
|
|
2313
|
+
private readonly elementRef;
|
|
2314
|
+
/** The items to render inside the menu */
|
|
2315
|
+
items: i0.InputSignal<AdsMenuDropDownItem[]>;
|
|
2316
|
+
/** Preferred side/alignment the menu opens towards before auto-flipping */
|
|
2317
|
+
menuPosition: i0.InputSignal<AdsMenuDropDownPosition>;
|
|
2318
|
+
/** Accessible label applied to the menu panel */
|
|
2319
|
+
menuAriaLabel: i0.InputSignal<string>;
|
|
2320
|
+
/** Disable the trigger so the menu cannot be opened */
|
|
2321
|
+
disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
2322
|
+
/** Emitted when an enabled item is selected */
|
|
2323
|
+
itemSelect: i0.OutputEmitterRef<AdsMenuDropDownItem>;
|
|
2324
|
+
/** Emitted when the menu opens */
|
|
2325
|
+
menuOpened: i0.OutputEmitterRef<void>;
|
|
2326
|
+
/** Emitted when the menu closes */
|
|
2327
|
+
menuClosed: i0.OutputEmitterRef<void>;
|
|
2328
|
+
/** @ignore Whether the menu is currently open */
|
|
2329
|
+
readonly isOpen: i0.WritableSignal<boolean>;
|
|
2330
|
+
/** @ignore */
|
|
2331
|
+
private overlayRef;
|
|
2332
|
+
/** @ignore */
|
|
2333
|
+
private menuRef;
|
|
2334
|
+
/** @ignore */
|
|
2335
|
+
toggle(): void;
|
|
2336
|
+
/** Open the menu (no-op if disabled or already open). */
|
|
2337
|
+
open(): void;
|
|
2338
|
+
/** Close the menu and restore focus to the trigger. */
|
|
2339
|
+
close(): void;
|
|
2340
|
+
/** @ignore */
|
|
2341
|
+
ngOnDestroy(): void;
|
|
2342
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdsMenuDropDownTriggerDirective, never>;
|
|
2343
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdsMenuDropDownTriggerDirective, "[adsMenuDropDownTriggerFor]", never, { "items": { "alias": "adsMenuDropDownTriggerFor"; "required": true; "isSignal": true; }; "menuPosition": { "alias": "menuPosition"; "required": false; "isSignal": true; }; "menuAriaLabel": { "alias": "menuAriaLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; "menuOpened": "menuOpened"; "menuClosed": "menuClosed"; }, never, never, true, never>;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2240
2346
|
declare class AdsExpansionPanelComponent implements AfterContentInit {
|
|
2241
2347
|
private registry;
|
|
2242
2348
|
private elementRef;
|
|
@@ -2261,7 +2367,7 @@ declare class AdsExpansionPanelComponent implements AfterContentInit {
|
|
|
2261
2367
|
/** Component width. Must include units of measure: px, %, em, rem, etc. */
|
|
2262
2368
|
width: i0.InputSignal<string>;
|
|
2263
2369
|
/** The Chevron Icon size () */
|
|
2264
|
-
chevronSize: i0.InputSignal<"
|
|
2370
|
+
chevronSize: i0.InputSignal<"base" | "xs">;
|
|
2265
2371
|
/** Header padding size () */
|
|
2266
2372
|
headerPadding: i0.InputSignal<string>;
|
|
2267
2373
|
/** Content padding size () */
|
|
@@ -2520,7 +2626,7 @@ declare class AdsSortMenuComponent implements OnChanges, OnDestroy {
|
|
|
2520
2626
|
/** All column sort/filter configs (all possible columns) */
|
|
2521
2627
|
columnSortFilterConfigs: ColumnSortFilterConfig[];
|
|
2522
2628
|
/** Current column sort states from the table */
|
|
2523
|
-
columnSortStates: Map<string, "
|
|
2629
|
+
columnSortStates: Map<string, "desc" | "asc" | null>;
|
|
2524
2630
|
/** Emits when sort configuration changes (order or direction) */
|
|
2525
2631
|
sortChanged: EventEmitter<SortMenuChangeEvent>;
|
|
2526
2632
|
/** Emits when sorts are removed for columns */
|
|
@@ -2637,7 +2743,7 @@ declare class AdsTableComponent implements AfterViewInit, AfterViewChecked, OnCh
|
|
|
2637
2743
|
values: string[];
|
|
2638
2744
|
}>;
|
|
2639
2745
|
/** Event emitted when view mode changes between grid and list */
|
|
2640
|
-
viewChanged: EventEmitter<"
|
|
2746
|
+
viewChanged: EventEmitter<"list" | "grid">;
|
|
2641
2747
|
/** @ignore - Current view mode: grid or list */
|
|
2642
2748
|
isListView: i0.WritableSignal<boolean>;
|
|
2643
2749
|
/** @ignore - Cached filtered row data for list view */
|
|
@@ -2677,7 +2783,7 @@ declare class AdsTableComponent implements AfterViewInit, AfterViewChecked, OnCh
|
|
|
2677
2783
|
/** @ignore */
|
|
2678
2784
|
activeColumnMenu: i0.WritableSignal<string | null>;
|
|
2679
2785
|
/** @ignore */
|
|
2680
|
-
columnSortStates: i0.WritableSignal<Map<string, "
|
|
2786
|
+
columnSortStates: i0.WritableSignal<Map<string, "desc" | "asc" | null>>;
|
|
2681
2787
|
/** @ignore */
|
|
2682
2788
|
columnFilterStates: i0.WritableSignal<Map<string, string[]>>;
|
|
2683
2789
|
/** @ignore */
|
|
@@ -3441,7 +3547,7 @@ declare class AdsHorizontalStepperComponent {
|
|
|
3441
3547
|
/**
|
|
3442
3548
|
* Stepper size
|
|
3443
3549
|
*/
|
|
3444
|
-
size: i0.InputSignal<"
|
|
3550
|
+
size: i0.InputSignal<"base" | "xs">;
|
|
3445
3551
|
/** @ignore */
|
|
3446
3552
|
protected isBaseSize: i0.Signal<boolean>;
|
|
3447
3553
|
/** Event emitted when a step is clicked */
|
|
@@ -3937,5 +4043,5 @@ declare function provideAdsUi(config: AdsUiConfig): {
|
|
|
3937
4043
|
useValue: AdsUiConfig;
|
|
3938
4044
|
}[];
|
|
3939
4045
|
|
|
3940
|
-
export { AdsArchitectureLogoComponent, AdsAscentLogoComponent, AdsAvatarComponent, AdsBaselineWidgetComponent, AdsBreadcrumbComponent, AdsBubbleComponent, AdsButtonComponent, AdsButtonContainerComponent, AdsCardComponent, AdsCheckboxComponent, AdsChipComponent, AdsColumnSortFilterMenuComponent, AdsCreateTagComponent, AdsCurrencyFieldComponent, AdsCustomHeaderComponent, AdsCustomerPortalLogoComponent, AdsCxaLogoComponent, AdsDatepickerComponent, AdsDatetimepickerComponent, AdsDragAndDropListComponent, AdsDropdownComponent, AdsErrorPageCodeComponent, AdsErrorPageComponent, AdsExpansionPanelComponent, AdsFilterMenuComponent, AdsFooterComponent, AdsFooterContainerComponent, AdsGenericLogoComponent, AdsHeaderComponent, AdsHeaderContainerComponent, AdsHistoryStepperComponent, AdsHorizontalNavBarComponent, AdsHorizontalStepperComponent, AdsIconButtonComponent, AdsIconHoverComponent, AdsInputComponent, AdsInputDropdownComponent, AdsInternationalPhoneFieldComponent, AdsLinkButtonComponent, AdsMainMenuComponent, AdsModalComponent, AdsMultiSelectDropdownComponent, AdsNavMenuComponent, AdsNavigationCollapseHandleComponent, AdsNavigationComponent, AdsNavigationHeaderComponent, AdsNavigationItemComponent, AdsNavigationItemsContainerComponent, AdsNumericBadgeComponent, AdsNumericStepperComponent, AdsOrgDisplayTextComponent, AdsPeakEssentialsLogoComponent, AdsPeakMarketplaceLogoComponent, AdsPeakOrderManagementLogoComponent, AdsPhoneFieldComponent, AdsPilotPayLogoComponent, AdsPrimaryLogoComponent, AdsProgressBarComponent, AdsProgressIndicatorSpinnerComponent, AdsProgressSpinnerComponent, AdsProgressStepperComponent, AdsRadioButtonComponent, AdsScmsLogoComponent, AdsScmsSideNavBarComponent, AdsSearchDropdownComponent, AdsSearchInputComponent, AdsShipmentHorizontalStepperComponent, AdsSideNavBarComponent, AdsSideNavBarV2Component, AdsSlideToggleComponent, AdsSliderComponent, AdsSnackbarComponent, AdsSortMenuComponent, AdsSplashPageComponent, AdsStepperComponent, AdsSubNavigationButtonComponent, AdsTableComponent, AdsTabsComponent, AdsTagComponent, AdsTagContainerComponent, AdsTextareaComponent, AdsTimeFieldComponent, AdsTimepickerComponent, AdsVerticalSideNavigationStepperComponent, AdsWizardStepperComponent, AscentCardComponent, BadgeColor, Colors, CountryCode, CustomDatetimeAdapter, DividerComponent, ErrorPageDefault, HistoryAction, HorizontalStepStatus, MainMenuService, ModalActionType, ModalPanelClass, PanelClass, ShellLayoutComponent, SpinnerSize, StepStatus, TableBreakpoint, ViewportService, WindowService, WizardStepStatus, provideAdsUi };
|
|
3941
|
-
export type { ActiveFilter, ActiveSort, AdsModalData, AdsNavItemV2, AdsNavSubItemV2, AdsUiConfig, Breadcrumb, ColumnFilterOption, ColumnSortFilterConfig, ColumnSortOption, ColumnVisibilityControl, Copyright, CustomHeaderParams, DROP_CALLBACK_INDEXES, DividerStyle, ErrorPageConfig, ErrorPageInfoColumn, FilterOptionsSortComparator, FilterValueFormatter, HistoryContextTag, HistoryEvent, HistoryGroup, HorizontalNavLink, HorizontalStep, IconButtonSize, Link, MainMenuItem, NavItem, NavMenuItem, NumericStep, ProgressStep, ScmsNavItem, ScmsNavSubItem, SearchDropdownComponentOptions, SearchDropdownDisplayControlValue, SearchDropdownStaticOption, SearchDropdownStaticOptionTemplateContext, ShipmentStep, Size, SnackBarData, SortComparator, SortMenuChangeEvent, SortType, Step, Tab, Tag, UNSUBSCRIBE_FUNCTIONS_COLLECTION, Variant, VerticalSideNavigationStep, WizardStep };
|
|
4046
|
+
export { AdsArchitectureLogoComponent, AdsAscentLogoComponent, AdsAvatarComponent, AdsBaselineWidgetComponent, AdsBreadcrumbComponent, AdsBubbleComponent, AdsButtonComponent, AdsButtonContainerComponent, AdsCardComponent, AdsCheckboxComponent, AdsChipComponent, AdsColumnSortFilterMenuComponent, AdsCreateTagComponent, AdsCurrencyFieldComponent, AdsCustomHeaderComponent, AdsCustomerPortalLogoComponent, AdsCxaLogoComponent, AdsDatepickerComponent, AdsDatetimepickerComponent, AdsDragAndDropListComponent, AdsDropdownComponent, AdsErrorPageCodeComponent, AdsErrorPageComponent, AdsExpansionPanelComponent, AdsFilterMenuComponent, AdsFooterComponent, AdsFooterContainerComponent, AdsGenericLogoComponent, AdsHeaderComponent, AdsHeaderContainerComponent, AdsHistoryStepperComponent, AdsHorizontalNavBarComponent, AdsHorizontalStepperComponent, AdsIconButtonComponent, AdsIconHoverComponent, AdsInputComponent, AdsInputDropdownComponent, AdsInternationalPhoneFieldComponent, AdsLinkButtonComponent, AdsMainMenuComponent, AdsMenuDropDownComponent, AdsMenuDropDownTriggerDirective, AdsModalComponent, AdsMultiSelectDropdownComponent, AdsNavMenuComponent, AdsNavigationCollapseHandleComponent, AdsNavigationComponent, AdsNavigationHeaderComponent, AdsNavigationItemComponent, AdsNavigationItemsContainerComponent, AdsNumericBadgeComponent, AdsNumericStepperComponent, AdsOrgDisplayTextComponent, AdsPeakEssentialsLogoComponent, AdsPeakMarketplaceLogoComponent, AdsPeakOrderManagementLogoComponent, AdsPhoneFieldComponent, AdsPilotPayLogoComponent, AdsPrimaryLogoComponent, AdsProgressBarComponent, AdsProgressIndicatorSpinnerComponent, AdsProgressSpinnerComponent, AdsProgressStepperComponent, AdsRadioButtonComponent, AdsScmsLogoComponent, AdsScmsSideNavBarComponent, AdsSearchDropdownComponent, AdsSearchInputComponent, AdsShipmentHorizontalStepperComponent, AdsSideNavBarComponent, AdsSideNavBarV2Component, AdsSlideToggleComponent, AdsSliderComponent, AdsSnackbarComponent, AdsSortMenuComponent, AdsSplashPageComponent, AdsStepperComponent, AdsSubNavigationButtonComponent, AdsTableComponent, AdsTabsComponent, AdsTagComponent, AdsTagContainerComponent, AdsTextareaComponent, AdsTimeFieldComponent, AdsTimepickerComponent, AdsVerticalSideNavigationStepperComponent, AdsWizardStepperComponent, AscentCardComponent, BadgeColor, Colors, CountryCode, CustomDatetimeAdapter, DividerComponent, ErrorPageDefault, HistoryAction, HorizontalStepStatus, MainMenuService, ModalActionType, ModalPanelClass, PanelClass, ShellLayoutComponent, SpinnerSize, StepStatus, TableBreakpoint, ViewportService, WindowService, WizardStepStatus, provideAdsUi };
|
|
4047
|
+
export type { ActiveFilter, ActiveSort, AdsMenuDropDownItem, AdsMenuDropDownPosition, AdsModalData, AdsNavItemV2, AdsNavSubItemV2, AdsUiConfig, Breadcrumb, ColumnFilterOption, ColumnSortFilterConfig, ColumnSortOption, ColumnVisibilityControl, Copyright, CustomHeaderParams, DROP_CALLBACK_INDEXES, DividerStyle, ErrorPageConfig, ErrorPageInfoColumn, FilterOptionsSortComparator, FilterValueFormatter, HistoryContextTag, HistoryEvent, HistoryGroup, HorizontalNavLink, HorizontalStep, IconButtonSize, Link, MainMenuItem, NavItem, NavMenuItem, NumericStep, ProgressStep, ScmsNavItem, ScmsNavSubItem, SearchDropdownComponentOptions, SearchDropdownDisplayControlValue, SearchDropdownStaticOption, SearchDropdownStaticOptionTemplateContext, ShipmentStep, Size, SnackBarData, SortComparator, SortMenuChangeEvent, SortType, Step, Tab, Tag, UNSUBSCRIBE_FUNCTIONS_COLLECTION, Variant, VerticalSideNavigationStep, WizardStep };
|