@ascentgl/ads-ui 22.7.0 → 22.9.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,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnChanges, SimpleChanges, ElementRef, OnInit, AfterContentInit, OnDestroy, Renderer2, AfterViewInit, ChangeDetectorRef, SimpleChange, EventEmitter, TemplateRef, DoCheck, AfterViewChecked, NgZone, QueryList } from '@angular/core';
|
|
3
3
|
import { AdsIconRegistry, IconThemes } from '@ascentgl/ads-icons';
|
|
4
|
-
import { adsIcon } from '@ascentgl/ads-icons/icons';
|
|
4
|
+
import { adsIcon, AdsIcon } from '@ascentgl/ads-icons/icons';
|
|
5
5
|
import { MatMenuPanel, MatMenuTrigger, MatMenu } from '@angular/material/menu';
|
|
6
6
|
import { ScrollStrategy, ConnectedPosition } from '@angular/cdk/overlay';
|
|
7
7
|
import { Subject, Subscription, Observable } from 'rxjs';
|
|
@@ -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<"
|
|
99
|
+
theme: i0.InputSignal<"iconPrimary" | "primary" | "success" | "warn" | "white">;
|
|
100
100
|
/** set badge value as number **/
|
|
101
101
|
value: i0.InputSignal<number>;
|
|
102
102
|
/** @ignore **/
|
|
@@ -271,6 +271,76 @@ declare class AscentCardComponent {
|
|
|
271
271
|
static ɵcmp: i0.ɵɵComponentDeclaration<AscentCardComponent, "ascent-card", never, { "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Configuration for the optional tag rendered next to the card heading.
|
|
276
|
+
*/
|
|
277
|
+
interface RateOptionCardTag {
|
|
278
|
+
/** Text shown inside the tag */
|
|
279
|
+
label: string;
|
|
280
|
+
/** Background color of the tag (Colors enum value or any CSS color string) */
|
|
281
|
+
color?: Colors | string;
|
|
282
|
+
/** Optional text color override */
|
|
283
|
+
textColor?: Colors | string;
|
|
284
|
+
/** Optional leading icon rendered inside the tag. Pass the icon object so it
|
|
285
|
+
* can be registered automatically (e.g. `adsIconCheckCircle`). */
|
|
286
|
+
icon?: AdsIcon;
|
|
287
|
+
/** Icon stroke color — maps to `ads-icon [stroke]`. Defaults to `white`.
|
|
288
|
+
* Forced to `dark` while the card is disabled. */
|
|
289
|
+
iconStroke?: keyof IconThemes;
|
|
290
|
+
/** Icon fill/theme color — maps to `ads-icon [theme]`. Left unset by default.
|
|
291
|
+
* Forced to `dark` while the card is disabled. */
|
|
292
|
+
iconTheme?: keyof IconThemes;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* A selectable rate/quote option card (ADS-328/329/330).
|
|
297
|
+
*
|
|
298
|
+
* Presentational and domain-agnostic: the heading, sub-heading, price and tag
|
|
299
|
+
* are inputs, and the lower details line is projected via `<ng-content>`.
|
|
300
|
+
*
|
|
301
|
+
* Supports the five design states — default, hover, pressed (`:active`),
|
|
302
|
+
* active (`selected`) and `disabled`. On the disabled state the tag switches to
|
|
303
|
+
* a muted treatment and its icon color changes accordingly.
|
|
304
|
+
*/
|
|
305
|
+
declare class AdsRateOptionCardComponent {
|
|
306
|
+
private registry;
|
|
307
|
+
constructor(registry: AdsIconRegistry);
|
|
308
|
+
/** Primary heading (e.g. the carrier name) */
|
|
309
|
+
readonly heading: i0.InputSignal<string>;
|
|
310
|
+
/** Secondary line under the heading (e.g. the service mode) */
|
|
311
|
+
readonly subheading: i0.InputSignal<string | undefined>;
|
|
312
|
+
/** Formatted price string shown on the right (e.g. `"$487.50"`) */
|
|
313
|
+
readonly price: i0.InputSignal<string | undefined>;
|
|
314
|
+
/** Show the selection check indicator after the price */
|
|
315
|
+
readonly showCheckIcon: i0.InputSignal<boolean>;
|
|
316
|
+
/** Optional tag rendered next to the heading */
|
|
317
|
+
readonly tag: i0.InputSignal<RateOptionCardTag | null>;
|
|
318
|
+
/** Marks the card as the active/selected option */
|
|
319
|
+
readonly selected: i0.InputSignal<boolean>;
|
|
320
|
+
/** Disables interaction and mutes the card (including the tag icon color) */
|
|
321
|
+
readonly disabled: i0.InputSignal<boolean>;
|
|
322
|
+
/** Stable id echoed back on activation and used to build child element ids */
|
|
323
|
+
readonly cardId: i0.InputSignal<string>;
|
|
324
|
+
/** Emitted with the `cardId` when the card is activated by click or keyboard */
|
|
325
|
+
readonly activate: i0.OutputEmitterRef<string>;
|
|
326
|
+
/** Border color of the tag (only visible in the disabled treatment). */
|
|
327
|
+
readonly tagBorderColor = Colors.Light;
|
|
328
|
+
/** Tag background — flips to a neutral surface when disabled. */
|
|
329
|
+
readonly tagBackground: i0.Signal<string>;
|
|
330
|
+
/** Tag text color — flips to dark when disabled. */
|
|
331
|
+
readonly tagTextColor: i0.Signal<string>;
|
|
332
|
+
/** Tag border width — only drawn in the disabled treatment. */
|
|
333
|
+
readonly tagBorderWidth: i0.Signal<number>;
|
|
334
|
+
/** Tag icon stroke color — `dark` when disabled, otherwise the tag's `iconStroke` (default `white`). */
|
|
335
|
+
readonly tagIconStroke: i0.Signal<keyof IconThemes>;
|
|
336
|
+
/** Tag icon theme/fill color — `dark` when disabled, otherwise the tag's `iconTheme` (unset by default). */
|
|
337
|
+
readonly tagIconTheme: i0.Signal<keyof IconThemes | undefined>;
|
|
338
|
+
/** @ignore */
|
|
339
|
+
onActivate(event?: Event): void;
|
|
340
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdsRateOptionCardComponent, never>;
|
|
341
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdsRateOptionCardComponent, "ads-rate-option-card", never, { "heading": { "alias": "heading"; "required": true; "isSignal": true; }; "subheading": { "alias": "subheading"; "required": false; "isSignal": true; }; "price": { "alias": "price"; "required": false; "isSignal": true; }; "showCheckIcon": { "alias": "showCheckIcon"; "required": false; "isSignal": true; }; "tag": { "alias": "tag"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "cardId": { "alias": "cardId"; "required": false; "isSignal": true; }; }, { "activate": "activate"; }, never, ["*"], true, never>;
|
|
342
|
+
}
|
|
343
|
+
|
|
274
344
|
type Tag = {
|
|
275
345
|
id: string;
|
|
276
346
|
tag: string;
|
|
@@ -4070,5 +4140,5 @@ declare function provideAdsUi(config: AdsUiConfig): {
|
|
|
4070
4140
|
useValue: AdsUiConfig;
|
|
4071
4141
|
}[];
|
|
4072
4142
|
|
|
4073
|
-
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 };
|
|
4074
|
-
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 };
|
|
4143
|
+
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, AdsRateOptionCardComponent, 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 };
|
|
4144
|
+
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, RateOptionCardTag, ScmsNavItem, ScmsNavSubItem, SearchDropdownComponentOptions, SearchDropdownDisplayControlValue, SearchDropdownStaticOption, SearchDropdownStaticOptionTemplateContext, ShipmentStep, Size, SnackBarData, SortComparator, SortMenuChangeEvent, SortType, Step, Tab, Tag, UNSUBSCRIBE_FUNCTIONS_COLLECTION, Variant, VerticalSideNavigationStep, WizardStep };
|