@ascentgl/ads-ui 22.0.1 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-ui",
3
- "version": "22.0.1",
3
+ "version": "22.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">=22.0.0",
6
6
  "date-fns": ">=4.1.0",
@@ -96,7 +96,7 @@ declare class AdsNumericBadgeComponent extends AdsIconHoverComponent {
96
96
  /** provide icon name. NOTE: the icon must be registered in icon registry **/
97
97
  name: i0.InputSignal<adsIcon>;
98
98
  /** choose ads icon theme **/
99
- theme: i0.InputSignal<"iconPrimary" | "primary" | "success" | "warn" | "white">;
99
+ theme: i0.InputSignal<"primary" | "iconPrimary" | "success" | "warn" | "white">;
100
100
  /** set badge value as number **/
101
101
  value: i0.InputSignal<number>;
102
102
  /** @ignore **/
@@ -159,7 +159,7 @@ declare class AdsButtonComponent {
159
159
  /** Whether the button is a smaller version */
160
160
  size: i0.InputSignal<Size>;
161
161
  /** Sets the "type" attribute on the button */
162
- type: i0.InputSignal<"submit" | "button" | "reset">;
162
+ type: i0.InputSignal<"button" | "submit" | "reset">;
163
163
  /** Makes the button take 100% width of its container */
164
164
  fullWidth: i0.InputSignal<boolean>;
165
165
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsButtonComponent, never>;
@@ -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<"center" | "flex-start" | "flex-end">;
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>;
@@ -724,7 +724,7 @@ declare class AdsAscentLogoComponent extends AbstractLogoComponent implements Af
724
724
  /**
725
725
  * Logo size
726
726
  */
727
- size: i0.InputSignal<"large" | "small">;
727
+ size: i0.InputSignal<"small" | "large">;
728
728
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsAscentLogoComponent, never>;
729
729
  static ɵcmp: i0.ɵɵComponentDeclaration<AdsAscentLogoComponent, "ads-ascent-logo", never, { "invertTheme": { "alias": "invertTheme"; "required": false; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
730
730
  }
@@ -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;
@@ -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 };