@ascentgl/ads-ui 21.80.0 → 21.81.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.
@@ -4013,6 +4013,99 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
4013
4013
  }]
4014
4014
  }] });
4015
4015
 
4016
+ var AdsCurrencyCode;
4017
+ (function (AdsCurrencyCode) {
4018
+ AdsCurrencyCode["USD"] = "USD";
4019
+ AdsCurrencyCode["CAD"] = "CAD";
4020
+ AdsCurrencyCode["MXN"] = "MXN";
4021
+ })(AdsCurrencyCode || (AdsCurrencyCode = {}));
4022
+ const ADS_CURRENCY_OPTIONS = new Map([
4023
+ [AdsCurrencyCode.USD, 'USD'],
4024
+ [AdsCurrencyCode.CAD, 'CAD'],
4025
+ [AdsCurrencyCode.MXN, 'MXN'],
4026
+ ]);
4027
+
4028
+ class AdsCurrencyInputDropdownComponent extends AbstractInputComponent {
4029
+ constructor() {
4030
+ super(...arguments);
4031
+ /** Maximum amount of characters in the input field */
4032
+ this.maxlength = 255;
4033
+ /** Optional "id" attribute for dropdown field */
4034
+ this.dropdownId = '';
4035
+ /** Empty dropdown field placeholder */
4036
+ this.dropdownPlaceholder = '';
4037
+ /** Input field width. Must include units of measure: px, %, em, rem, etc. */
4038
+ this.inputWidth = 'calc(100% - 95px)';
4039
+ /** Dropdown field width — fixed at 83px by default */
4040
+ this.dropdownWidth = '95px';
4041
+ /** Set to true if you want dropdown items to fit content rather than dropdown width */
4042
+ this.fitContent = true;
4043
+ /** Enable auto-close when component scrolls out of viewport */
4044
+ this.closeOnOutOfView = false;
4045
+ /** Root margin for intersection observer (CSS margin format: top right bottom left) */
4046
+ this.outOfViewRootMargin = '0px 0px 0px 0px';
4047
+ /** Hardcoded currency dropdown options */
4048
+ this.currencyOptions = ADS_CURRENCY_OPTIONS;
4049
+ /** Form control for the currency dropdown */
4050
+ this.currencyControl = new FormControl(null);
4051
+ /** @ignore */
4052
+ this._subscriptions = [];
4053
+ }
4054
+ ngOnInit() {
4055
+ this._subscriptions.push(this.currencyControl.valueChanges.subscribe(() => {
4056
+ this.valueControl.updateValueAndValidity();
4057
+ }));
4058
+ }
4059
+ ngOnDestroy() {
4060
+ this._subscriptions.forEach((s) => s.unsubscribe());
4061
+ }
4062
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsCurrencyInputDropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
4063
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: AdsCurrencyInputDropdownComponent, isStandalone: false, selector: "ads-currency-input-dropdown", inputs: { maxlength: "maxlength", dropdownId: "dropdownId", dropdownLabel: "dropdownLabel", dropdownPlaceholder: "dropdownPlaceholder", inputWidth: "inputWidth", dropdownWidth: "dropdownWidth", fitContent: "fitContent", closeOnOutOfView: "closeOnOutOfView", outOfViewRootMargin: "outOfViewRootMargin", currencyControl: "currencyControl" }, usesInheritance: true, ngImport: i0, template: "<ads-input-dropdown\n [control]=\"valueControl\"\n [dropdownControl]=\"currencyControl\"\n [maxlength]=\"maxlength\"\n [id]=\"id\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n [dropdownId]=\"dropdownId\"\n [dropdownLabel]=\"dropdownLabel\"\n [dropdownPlaceholder]=\"dropdownPlaceholder\"\n [inputWidth]=\"inputWidth\"\n [dropdownWidth]=\"dropdownWidth\"\n [width]=\"width\"\n [options]=\"currencyOptions\"\n [hasEmptyValue]=\"false\"\n [fitContent]=\"fitContent\"\n [errorMessages]=\"errorMessages\"\n [immediateValidation]=\"immediateValidation\"\n [skipValidationWhenEmpty]=\"skipValidationWhenEmpty\"\n [showClearButton]=\"showClearButton\"\n [showExclamationOnError]=\"showExclamationOnError\"\n [hint]=\"hint\"\n [successMessage]=\"successMessage\"\n [closeOnOutOfView]=\"closeOnOutOfView\"\n [outOfViewRootMargin]=\"outOfViewRootMargin\"\n mask=\"separator.2\"\n prefix=\"$ \"\n type=\"text\"\n/>\n\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: AdsInputDropdownComponent, selector: "ads-input-dropdown", inputs: ["maxlength", "type", "pattern", "dropdownControl", "dropdownId", "dropdownLabel", "dropdownPlaceholder", "inputWidth", "dropdownWidth", "autoSelectSingleDropdownOption", "options", "displayValueKey", "hasEmptyValue", "fitContent", "mask", "suffix", "prefix", "dropSpecialCharacters", "thousandSeparator", "decimalMarker", "showTooltip", "closeOnOutOfView", "outOfViewRootMargin"] }] }); }
4064
+ }
4065
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsCurrencyInputDropdownComponent, decorators: [{
4066
+ type: Component,
4067
+ args: [{ selector: 'ads-currency-input-dropdown', standalone: false, template: "<ads-input-dropdown\n [control]=\"valueControl\"\n [dropdownControl]=\"currencyControl\"\n [maxlength]=\"maxlength\"\n [id]=\"id\"\n [label]=\"label\"\n [placeholder]=\"placeholder\"\n [dropdownId]=\"dropdownId\"\n [dropdownLabel]=\"dropdownLabel\"\n [dropdownPlaceholder]=\"dropdownPlaceholder\"\n [inputWidth]=\"inputWidth\"\n [dropdownWidth]=\"dropdownWidth\"\n [width]=\"width\"\n [options]=\"currencyOptions\"\n [hasEmptyValue]=\"false\"\n [fitContent]=\"fitContent\"\n [errorMessages]=\"errorMessages\"\n [immediateValidation]=\"immediateValidation\"\n [skipValidationWhenEmpty]=\"skipValidationWhenEmpty\"\n [showClearButton]=\"showClearButton\"\n [showExclamationOnError]=\"showExclamationOnError\"\n [hint]=\"hint\"\n [successMessage]=\"successMessage\"\n [closeOnOutOfView]=\"closeOnOutOfView\"\n [outOfViewRootMargin]=\"outOfViewRootMargin\"\n mask=\"separator.2\"\n prefix=\"$ \"\n type=\"text\"\n/>\n\n", styles: [":host{display:block}\n"] }]
4068
+ }], propDecorators: { maxlength: [{
4069
+ type: Input
4070
+ }], dropdownId: [{
4071
+ type: Input
4072
+ }], dropdownLabel: [{
4073
+ type: Input
4074
+ }], dropdownPlaceholder: [{
4075
+ type: Input
4076
+ }], inputWidth: [{
4077
+ type: Input
4078
+ }], dropdownWidth: [{
4079
+ type: Input
4080
+ }], fitContent: [{
4081
+ type: Input
4082
+ }], closeOnOutOfView: [{
4083
+ type: Input
4084
+ }], outOfViewRootMargin: [{
4085
+ type: Input
4086
+ }], currencyControl: [{
4087
+ type: Input
4088
+ }] } });
4089
+
4090
+ class AdsCurrencyInputDropdownModule {
4091
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsCurrencyInputDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4092
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: AdsCurrencyInputDropdownModule, declarations: [AdsCurrencyInputDropdownComponent], imports: [CommonModule,
4093
+ AdsInputDropdownModule], exports: [AdsCurrencyInputDropdownComponent] }); }
4094
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsCurrencyInputDropdownModule, imports: [CommonModule,
4095
+ AdsInputDropdownModule] }); }
4096
+ }
4097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AdsCurrencyInputDropdownModule, decorators: [{
4098
+ type: NgModule,
4099
+ args: [{
4100
+ imports: [
4101
+ CommonModule,
4102
+ AdsInputDropdownModule,
4103
+ ],
4104
+ declarations: [AdsCurrencyInputDropdownComponent],
4105
+ exports: [AdsCurrencyInputDropdownComponent],
4106
+ }]
4107
+ }] });
4108
+
4016
4109
  class AdsSearchDropdownHighlighterPipe {
4017
4110
  transform(optionValue, filter) {
4018
4111
  if (filter) {
@@ -11000,5 +11093,5 @@ function provideAdsUi(config) {
11000
11093
  * Generated bundle index. Do not edit.
11001
11094
  */
11002
11095
 
11003
- export { AdsAscentLogoComponent, AdsAscentLogoModule, AdsAvatarComponent, AdsAvatarModule, AdsBreadcrumbComponent, AdsBreadcrumbModule, AdsBubbleComponent, AdsBubbleModule, AdsButtonComponent, AdsButtonContainerComponent, AdsButtonContainerModule, AdsButtonModule, AdsCardComponent, AdsCardModule, AdsCheckboxComponent, AdsCheckboxModule, AdsChipComponent, AdsChipModule, AdsColumnSortFilterMenuComponent, AdsColumnSortFilterMenuModule, AdsCreateTagComponent, AdsCreateTagModule, AdsCustomHeaderComponent, AdsCustomHeaderModule, AdsDatepickerComponent, AdsDatepickerModule, AdsDatetimepickerComponent, AdsDatetimepickerModule, AdsDividerModule, AdsDragAndDropListComponent, AdsDragAndDropListModule, AdsDropdownComponent, AdsDropdownModule, AdsErrorPageCodeComponent, AdsErrorPageCodeModule, AdsErrorPageComponent, AdsErrorPageModule, AdsExpansionPanelComponent, AdsExpansionPanelModule, AdsFooterComponent, AdsFooterContainerComponent, AdsFooterContainerModule, AdsFooterModule, AdsGenericLogoComponent, AdsGenericLogoModule, AdsHeaderComponent, AdsHeaderContainerComponent, AdsHeaderContainerModule, AdsHeaderModule, AdsHorizontalNavBarComponent, AdsHorizontalNavBarModule, AdsHorizontalStepperComponent, AdsHorizontalStepperModule, AdsIconButtonComponent, AdsIconButtonModule, AdsIconHoverComponent, AdsIconHoverModule, AdsInputComponent, AdsInputDropdownComponent, AdsInputDropdownModule, AdsInputModule, AdsInternationalPhoneFieldComponent, AdsInternationalPhoneFieldModule, AdsLinkButtonComponent, AdsLinkButtonModule, AdsMainMenuComponent, AdsMainMenuModule, AdsModalComponent, AdsModalModule, AdsMultiSelectDropdownComponent, AdsMultiSelectDropdownModule, AdsNavMenuComponent, AdsNavMenuModule, AdsNavigationCollapseHandleComponent, AdsNavigationCollapseHandleModule, AdsNavigationComponent, AdsNavigationHeaderComponent, AdsNavigationHeaderModule, AdsNavigationItemComponent, AdsNavigationItemModule, AdsNavigationItemsContainerComponent, AdsNavigationItemsContainerModule, AdsNavigationModule, AdsNumericBadgeComponent, AdsNumericBadgeModule, AdsNumericStepperComponent, AdsNumericStepperModule, AdsOrgDisplayTextComponent, AdsOrgDisplayTextModule, AdsPeakEssentialsLogoComponent, AdsPeakEssentialsLogoModule, AdsPeakMarketplaceLogoComponent, AdsPeakMarketplaceLogoModule, AdsPeakOrderManagementLogoComponent, AdsPeakOrderManagementLogoModule, AdsPhoneFieldComponent, AdsPhoneFieldModule, AdsPilotPayLogoComponent, AdsPilotPayLogoModule, AdsPrimaryLogoComponent, AdsPrimaryLogoModule, AdsProgressBarComponent, AdsProgressBarModule, AdsProgressIndicatorSpinnerComponent, AdsProgressIndicatorSpinnerModule, AdsProgressSpinnerComponent, AdsProgressSpinnerModule, AdsProgressStepperComponent, AdsProgressStepperModule, AdsRadioButtonComponent, AdsRadioButtonModule, AdsScmsLogoComponent, AdsScmsLogoModule, AdsScmsSideNavBarComponent, AdsScmsSideNavBarModule, AdsSearchDropdownComponent, AdsSearchDropdownModule, AdsSearchInputComponent, AdsSearchInputModule, AdsShellLayoutModule, AdsShipmentHorizontalStepperComponent, AdsShipmentHorizontalStepperModule, AdsSideNavBarComponent, AdsSideNavBarModule, AdsSideNavBarV2Component, AdsSideNavBarV2Module, AdsSlideToggle, AdsSlideToggleComponent, AdsSliderComponent, AdsSliderModule, AdsSnackbarComponent, AdsSnackbarModule, AdsSplashPageComponent, AdsSplashPageModule, AdsStepperComponent, AdsStepperModule, AdsTableComponent, AdsTableModule, AdsTabsComponent, AdsTabsModule, AdsTagComponent, AdsTagContainerComponent, AdsTagContainerModule, AdsTagModule, AdsTextareaComponent, AdsTextareaModule, AdsTimeFieldComponent, AdsTimeFieldModule, AdsTimepickerComponent, AdsTimepickerModule, AdsVerticalSideNavigationStepperComponent, AdsVerticalSideNavigationStepperModule, AdsWizardStepperComponent, AdsWizardStepperModule, AscentCardComponent, AscentCardModule, BadgeColor, Colors, CountryCode, CustomDatetimeAdapter, DividerComponent, ErrorPageDefault, HorizontalStepStatus, MainMenuService, ModalActionType, ModalPanelClass, PanelClass, ShellLayoutComponent, SpinnerSize, StepStatus, TableBreakpoint, ViewportService, WindowService, WizardStepStatus, provideAdsUi };
11096
+ export { ADS_CURRENCY_OPTIONS, AdsAscentLogoComponent, AdsAscentLogoModule, AdsAvatarComponent, AdsAvatarModule, AdsBreadcrumbComponent, AdsBreadcrumbModule, AdsBubbleComponent, AdsBubbleModule, AdsButtonComponent, AdsButtonContainerComponent, AdsButtonContainerModule, AdsButtonModule, AdsCardComponent, AdsCardModule, AdsCheckboxComponent, AdsCheckboxModule, AdsChipComponent, AdsChipModule, AdsColumnSortFilterMenuComponent, AdsColumnSortFilterMenuModule, AdsCreateTagComponent, AdsCreateTagModule, AdsCurrencyCode, AdsCurrencyInputDropdownComponent, AdsCurrencyInputDropdownModule, AdsCustomHeaderComponent, AdsCustomHeaderModule, AdsDatepickerComponent, AdsDatepickerModule, AdsDatetimepickerComponent, AdsDatetimepickerModule, AdsDividerModule, AdsDragAndDropListComponent, AdsDragAndDropListModule, AdsDropdownComponent, AdsDropdownModule, AdsErrorPageCodeComponent, AdsErrorPageCodeModule, AdsErrorPageComponent, AdsErrorPageModule, AdsExpansionPanelComponent, AdsExpansionPanelModule, AdsFooterComponent, AdsFooterContainerComponent, AdsFooterContainerModule, AdsFooterModule, AdsGenericLogoComponent, AdsGenericLogoModule, AdsHeaderComponent, AdsHeaderContainerComponent, AdsHeaderContainerModule, AdsHeaderModule, AdsHorizontalNavBarComponent, AdsHorizontalNavBarModule, AdsHorizontalStepperComponent, AdsHorizontalStepperModule, AdsIconButtonComponent, AdsIconButtonModule, AdsIconHoverComponent, AdsIconHoverModule, AdsInputComponent, AdsInputDropdownComponent, AdsInputDropdownModule, AdsInputModule, AdsInternationalPhoneFieldComponent, AdsInternationalPhoneFieldModule, AdsLinkButtonComponent, AdsLinkButtonModule, AdsMainMenuComponent, AdsMainMenuModule, AdsModalComponent, AdsModalModule, AdsMultiSelectDropdownComponent, AdsMultiSelectDropdownModule, AdsNavMenuComponent, AdsNavMenuModule, AdsNavigationCollapseHandleComponent, AdsNavigationCollapseHandleModule, AdsNavigationComponent, AdsNavigationHeaderComponent, AdsNavigationHeaderModule, AdsNavigationItemComponent, AdsNavigationItemModule, AdsNavigationItemsContainerComponent, AdsNavigationItemsContainerModule, AdsNavigationModule, AdsNumericBadgeComponent, AdsNumericBadgeModule, AdsNumericStepperComponent, AdsNumericStepperModule, AdsOrgDisplayTextComponent, AdsOrgDisplayTextModule, AdsPeakEssentialsLogoComponent, AdsPeakEssentialsLogoModule, AdsPeakMarketplaceLogoComponent, AdsPeakMarketplaceLogoModule, AdsPeakOrderManagementLogoComponent, AdsPeakOrderManagementLogoModule, AdsPhoneFieldComponent, AdsPhoneFieldModule, AdsPilotPayLogoComponent, AdsPilotPayLogoModule, AdsPrimaryLogoComponent, AdsPrimaryLogoModule, AdsProgressBarComponent, AdsProgressBarModule, AdsProgressIndicatorSpinnerComponent, AdsProgressIndicatorSpinnerModule, AdsProgressSpinnerComponent, AdsProgressSpinnerModule, AdsProgressStepperComponent, AdsProgressStepperModule, AdsRadioButtonComponent, AdsRadioButtonModule, AdsScmsLogoComponent, AdsScmsLogoModule, AdsScmsSideNavBarComponent, AdsScmsSideNavBarModule, AdsSearchDropdownComponent, AdsSearchDropdownModule, AdsSearchInputComponent, AdsSearchInputModule, AdsShellLayoutModule, AdsShipmentHorizontalStepperComponent, AdsShipmentHorizontalStepperModule, AdsSideNavBarComponent, AdsSideNavBarModule, AdsSideNavBarV2Component, AdsSideNavBarV2Module, AdsSlideToggle, AdsSlideToggleComponent, AdsSliderComponent, AdsSliderModule, AdsSnackbarComponent, AdsSnackbarModule, AdsSplashPageComponent, AdsSplashPageModule, AdsStepperComponent, AdsStepperModule, AdsTableComponent, AdsTableModule, AdsTabsComponent, AdsTabsModule, AdsTagComponent, AdsTagContainerComponent, AdsTagContainerModule, AdsTagModule, AdsTextareaComponent, AdsTextareaModule, AdsTimeFieldComponent, AdsTimeFieldModule, AdsTimepickerComponent, AdsTimepickerModule, AdsVerticalSideNavigationStepperComponent, AdsVerticalSideNavigationStepperModule, AdsWizardStepperComponent, AdsWizardStepperModule, AscentCardComponent, AscentCardModule, BadgeColor, Colors, CountryCode, CustomDatetimeAdapter, DividerComponent, ErrorPageDefault, HorizontalStepStatus, MainMenuService, ModalActionType, ModalPanelClass, PanelClass, ShellLayoutComponent, SpinnerSize, StepStatus, TableBreakpoint, ViewportService, WindowService, WizardStepStatus, provideAdsUi };
11004
11097
  //# sourceMappingURL=ascentgl-ads-ui.mjs.map