@infineon/infineon-design-system-angular 41.7.1 → 41.8.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.
@@ -727,11 +727,11 @@ let IfxCounter = class IfxCounter {
727
727
  this.el = r.nativeElement;
728
728
  }
729
729
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IfxCounter, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
730
- /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: IfxCounter, isStandalone: false, selector: "ifx-counter", inputs: { value: "value" }, outputs: { ifxChange: "ifxChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
730
+ /** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: IfxCounter, isStandalone: false, selector: "ifx-counter", inputs: { name: "name", value: "value" }, outputs: { ifxChange: "ifxChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
731
731
  };
732
732
  IfxCounter = __decorate([
733
733
  ProxyCmp({
734
- inputs: ['value']
734
+ inputs: ['name', 'value']
735
735
  })
736
736
  ], IfxCounter);
737
737
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IfxCounter, decorators: [{
@@ -741,7 +741,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
741
741
  changeDetection: ChangeDetectionStrategy.OnPush,
742
742
  template: '<ng-content></ng-content>',
743
743
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
744
- inputs: ['value'],
744
+ inputs: ['name', 'value'],
745
745
  outputs: ['ifxChange'],
746
746
  standalone: false
747
747
  }]
@@ -3052,6 +3052,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
3052
3052
  }]
3053
3053
  }], ctorParameters: () => [{ type: i0.ElementRef }] });
3054
3054
 
3055
+ class IfxCounterNgModuleValueAccessor extends ValueAccessor {
3056
+ writeValue(value) {
3057
+ const numericValue = Number(value);
3058
+ this.el.nativeElement.value = this.lastValue = Number.isFinite(numericValue)
3059
+ ? Math.max(0, numericValue)
3060
+ : 0;
3061
+ }
3062
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IfxCounterNgModuleValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3063
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.31", type: IfxCounterNgModuleValueAccessor, isStandalone: false, selector: "ifx-counter[ngModel],ifx-counter[formControl],ifx-counter[formControlName]", host: { listeners: { "ifxChange": "handleChangeEvent($event.detail)" } }, providers: [
3064
+ {
3065
+ provide: NG_VALUE_ACCESSOR,
3066
+ useExisting: forwardRef((() => IfxCounterNgModuleValueAccessor)),
3067
+ multi: true
3068
+ }
3069
+ ], usesInheritance: true, ngImport: i0 });
3070
+ }
3071
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IfxCounterNgModuleValueAccessor, decorators: [{
3072
+ type: Directive,
3073
+ args: [{
3074
+ /* tslint:disable-next-line:directive-selector */
3075
+ selector: 'ifx-counter[ngModel],ifx-counter[formControl],ifx-counter[formControlName]',
3076
+ host: {
3077
+ '(ifxChange)': 'handleChangeEvent($event.detail)'
3078
+ },
3079
+ providers: [
3080
+ {
3081
+ provide: NG_VALUE_ACCESSOR,
3082
+ useExisting: forwardRef((() => IfxCounterNgModuleValueAccessor)),
3083
+ multi: true
3084
+ }
3085
+ ],
3086
+ standalone: false
3087
+ }]
3088
+ }] });
3089
+
3055
3090
  /**
3056
3091
  * Custom Value Accessor for ifx-modal component.
3057
3092
  *
@@ -3172,14 +3207,14 @@ class InfineonDesignSystemModule {
3172
3207
  };
3173
3208
  }
3174
3209
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: InfineonDesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3175
- /** @nocollapse */ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.31", ngImport: i0, type: InfineonDesignSystemModule, declarations: [IfxAccordion, IfxAccordionItem, IfxActionList, IfxActionListItem, IfxAiLabel, IfxAlert, IfxBasicTable, IfxBreadcrumb, IfxBreadcrumbItem, IfxBreadcrumbItemLabel, IfxButton, IfxCard, IfxCardHeadline, IfxCardImage, IfxCardLinks, IfxCardOverline, IfxCardText, IfxCheckbox, IfxCheckboxGroup, IfxChip, IfxChipItem, IfxContentSwitcher, IfxContentSwitcherItem, IfxCounter, IfxDatePicker, IfxDownload, IfxDropdown, IfxDropdownHeader, IfxDropdownItem, IfxDropdownMenu, IfxDropdownSeparator, IfxDropdownTrigger, IfxDropdownTriggerButton, IfxErrorPage, IfxFileUpload, IfxFilterAccordion, IfxFilterBar, IfxFilterSearch, IfxFilterTypeGroup, IfxFooter, IfxFooterColumn, IfxIcon, IfxIconButton, IfxIconsPreview, IfxIndicator, IfxLink, IfxList, IfxListEntry, IfxModal, IfxMultiselect, IfxMultiselectOption, IfxNavbar, IfxNavbarItem, IfxNavbarProfile, IfxNotification, IfxOverviewTable, IfxPagination, IfxPopover, IfxProgressBar, IfxRadioButton, IfxRadioButtonGroup, IfxSearchBar, IfxSearchField, IfxSegment, IfxSegmentedControl, IfxSelect, IfxSelectGroup, IfxSelectOption, IfxSetFilter, IfxSidebar, IfxSidebarItem, IfxSidebarSeparator, IfxSidebarTitle, IfxSlider, IfxSpinner, IfxStatus, IfxStep, IfxStepper, IfxSwitch, IfxTab, IfxTable, IfxTabs, IfxTemplate, IfxTemplatesUi, IfxTextField, IfxTextarea, IfxToast, IfxToastContainer, IfxTooltip, IfxTreeView, IfxTreeViewItem, BooleanValueAccessor, TextValueAccessor, IfxModalNgModuleValueAccessor, IfxSliderNgModuleValueAccessor], imports: [CommonModule], exports: [IfxAccordion, IfxAccordionItem, IfxActionList, IfxActionListItem, IfxAiLabel, IfxAlert, IfxBasicTable, IfxBreadcrumb, IfxBreadcrumbItem, IfxBreadcrumbItemLabel, IfxButton, IfxCard, IfxCardHeadline, IfxCardImage, IfxCardLinks, IfxCardOverline, IfxCardText, IfxCheckbox, IfxCheckboxGroup, IfxChip, IfxChipItem, IfxContentSwitcher, IfxContentSwitcherItem, IfxCounter, IfxDatePicker, IfxDownload, IfxDropdown, IfxDropdownHeader, IfxDropdownItem, IfxDropdownMenu, IfxDropdownSeparator, IfxDropdownTrigger, IfxDropdownTriggerButton, IfxErrorPage, IfxFileUpload, IfxFilterAccordion, IfxFilterBar, IfxFilterSearch, IfxFilterTypeGroup, IfxFooter, IfxFooterColumn, IfxIcon, IfxIconButton, IfxIconsPreview, IfxIndicator, IfxLink, IfxList, IfxListEntry, IfxModal, IfxMultiselect, IfxMultiselectOption, IfxNavbar, IfxNavbarItem, IfxNavbarProfile, IfxNotification, IfxOverviewTable, IfxPagination, IfxPopover, IfxProgressBar, IfxRadioButton, IfxRadioButtonGroup, IfxSearchBar, IfxSearchField, IfxSegment, IfxSegmentedControl, IfxSelect, IfxSelectGroup, IfxSelectOption, IfxSetFilter, IfxSidebar, IfxSidebarItem, IfxSidebarSeparator, IfxSidebarTitle, IfxSlider, IfxSpinner, IfxStatus, IfxStep, IfxStepper, IfxSwitch, IfxTab, IfxTable, IfxTabs, IfxTemplate, IfxTemplatesUi, IfxTextField, IfxTextarea, IfxToast, IfxToastContainer, IfxTooltip, IfxTreeView, IfxTreeViewItem, BooleanValueAccessor, TextValueAccessor, IfxModalNgModuleValueAccessor, IfxSliderNgModuleValueAccessor] });
3210
+ /** @nocollapse */ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.31", ngImport: i0, type: InfineonDesignSystemModule, declarations: [IfxAccordion, IfxAccordionItem, IfxActionList, IfxActionListItem, IfxAiLabel, IfxAlert, IfxBasicTable, IfxBreadcrumb, IfxBreadcrumbItem, IfxBreadcrumbItemLabel, IfxButton, IfxCard, IfxCardHeadline, IfxCardImage, IfxCardLinks, IfxCardOverline, IfxCardText, IfxCheckbox, IfxCheckboxGroup, IfxChip, IfxChipItem, IfxContentSwitcher, IfxContentSwitcherItem, IfxCounter, IfxDatePicker, IfxDownload, IfxDropdown, IfxDropdownHeader, IfxDropdownItem, IfxDropdownMenu, IfxDropdownSeparator, IfxDropdownTrigger, IfxDropdownTriggerButton, IfxErrorPage, IfxFileUpload, IfxFilterAccordion, IfxFilterBar, IfxFilterSearch, IfxFilterTypeGroup, IfxFooter, IfxFooterColumn, IfxIcon, IfxIconButton, IfxIconsPreview, IfxIndicator, IfxLink, IfxList, IfxListEntry, IfxModal, IfxMultiselect, IfxMultiselectOption, IfxNavbar, IfxNavbarItem, IfxNavbarProfile, IfxNotification, IfxOverviewTable, IfxPagination, IfxPopover, IfxProgressBar, IfxRadioButton, IfxRadioButtonGroup, IfxSearchBar, IfxSearchField, IfxSegment, IfxSegmentedControl, IfxSelect, IfxSelectGroup, IfxSelectOption, IfxSetFilter, IfxSidebar, IfxSidebarItem, IfxSidebarSeparator, IfxSidebarTitle, IfxSlider, IfxSpinner, IfxStatus, IfxStep, IfxStepper, IfxSwitch, IfxTab, IfxTable, IfxTabs, IfxTemplate, IfxTemplatesUi, IfxTextField, IfxTextarea, IfxToast, IfxToastContainer, IfxTooltip, IfxTreeView, IfxTreeViewItem, BooleanValueAccessor, TextValueAccessor, IfxCounterNgModuleValueAccessor, IfxModalNgModuleValueAccessor, IfxSliderNgModuleValueAccessor], imports: [CommonModule], exports: [IfxAccordion, IfxAccordionItem, IfxActionList, IfxActionListItem, IfxAiLabel, IfxAlert, IfxBasicTable, IfxBreadcrumb, IfxBreadcrumbItem, IfxBreadcrumbItemLabel, IfxButton, IfxCard, IfxCardHeadline, IfxCardImage, IfxCardLinks, IfxCardOverline, IfxCardText, IfxCheckbox, IfxCheckboxGroup, IfxChip, IfxChipItem, IfxContentSwitcher, IfxContentSwitcherItem, IfxCounter, IfxDatePicker, IfxDownload, IfxDropdown, IfxDropdownHeader, IfxDropdownItem, IfxDropdownMenu, IfxDropdownSeparator, IfxDropdownTrigger, IfxDropdownTriggerButton, IfxErrorPage, IfxFileUpload, IfxFilterAccordion, IfxFilterBar, IfxFilterSearch, IfxFilterTypeGroup, IfxFooter, IfxFooterColumn, IfxIcon, IfxIconButton, IfxIconsPreview, IfxIndicator, IfxLink, IfxList, IfxListEntry, IfxModal, IfxMultiselect, IfxMultiselectOption, IfxNavbar, IfxNavbarItem, IfxNavbarProfile, IfxNotification, IfxOverviewTable, IfxPagination, IfxPopover, IfxProgressBar, IfxRadioButton, IfxRadioButtonGroup, IfxSearchBar, IfxSearchField, IfxSegment, IfxSegmentedControl, IfxSelect, IfxSelectGroup, IfxSelectOption, IfxSetFilter, IfxSidebar, IfxSidebarItem, IfxSidebarSeparator, IfxSidebarTitle, IfxSlider, IfxSpinner, IfxStatus, IfxStep, IfxStepper, IfxSwitch, IfxTab, IfxTable, IfxTabs, IfxTemplate, IfxTemplatesUi, IfxTextField, IfxTextarea, IfxToast, IfxToastContainer, IfxTooltip, IfxTreeView, IfxTreeViewItem, BooleanValueAccessor, TextValueAccessor, IfxCounterNgModuleValueAccessor, IfxModalNgModuleValueAccessor, IfxSliderNgModuleValueAccessor] });
3176
3211
  /** @nocollapse */ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: InfineonDesignSystemModule, imports: [CommonModule] });
3177
3212
  }
3178
3213
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: InfineonDesignSystemModule, decorators: [{
3179
3214
  type: NgModule,
3180
3215
  args: [{
3181
- declarations: [...DIRECTIVES, BooleanValueAccessor, TextValueAccessor, IfxModalNgModuleValueAccessor, IfxSliderNgModuleValueAccessor],
3182
- exports: [...DIRECTIVES, BooleanValueAccessor, TextValueAccessor, IfxModalNgModuleValueAccessor, IfxSliderNgModuleValueAccessor],
3216
+ declarations: [...DIRECTIVES, BooleanValueAccessor, TextValueAccessor, IfxCounterNgModuleValueAccessor, IfxModalNgModuleValueAccessor, IfxSliderNgModuleValueAccessor],
3217
+ exports: [...DIRECTIVES, BooleanValueAccessor, TextValueAccessor, IfxCounterNgModuleValueAccessor, IfxModalNgModuleValueAccessor, IfxSliderNgModuleValueAccessor],
3183
3218
  imports: [CommonModule],
3184
3219
  }]
3185
3220
  }] });
@@ -3190,5 +3225,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
3190
3225
  * Generated bundle index. Do not edit.
3191
3226
  */
3192
3227
 
3193
- export { BooleanValueAccessor, DIRECTIVES, IfxAccordion, IfxAccordionItem, IfxActionList, IfxActionListItem, IfxAiLabel, IfxAlert, IfxBasicTable, IfxBreadcrumb, IfxBreadcrumbItem, IfxBreadcrumbItemLabel, IfxButton, IfxCard, IfxCardHeadline, IfxCardImage, IfxCardLinks, IfxCardOverline, IfxCardText, IfxCheckbox, IfxCheckboxGroup, IfxChip, IfxChipItem, IfxContentSwitcher, IfxContentSwitcherItem, IfxCounter, IfxDatePicker, IfxDownload, IfxDropdown, IfxDropdownHeader, IfxDropdownItem, IfxDropdownMenu, IfxDropdownSeparator, IfxDropdownTrigger, IfxDropdownTriggerButton, IfxErrorPage, IfxFileUpload, IfxFilterAccordion, IfxFilterBar, IfxFilterSearch, IfxFilterTypeGroup, IfxFooter, IfxFooterColumn, IfxIcon, IfxIconButton, IfxIconsPreview, IfxIndicator, IfxLink, IfxList, IfxListEntry, IfxModal, IfxModalNgModuleValueAccessor as IfxModalValueAccessor, IfxMultiselect, IfxMultiselectOption, IfxNavbar, IfxNavbarItem, IfxNavbarProfile, IfxNotification, IfxOverviewTable, IfxPagination, IfxPopover, IfxProgressBar, IfxRadioButton, IfxRadioButtonGroup, IfxSearchBar, IfxSearchField, IfxSegment, IfxSegmentedControl, IfxSelect, IfxSelectGroup, IfxSelectOption, IfxSetFilter, IfxSidebar, IfxSidebarItem, IfxSidebarSeparator, IfxSidebarTitle, IfxSlider, IfxSliderNgModuleValueAccessor as IfxSliderValueAccessor, IfxSpinner, IfxStatus, IfxStep, IfxStepper, IfxSwitch, IfxTab, IfxTable, IfxTabs, IfxTemplate, IfxTemplatesUi, IfxTextField, IfxTextarea, IfxToast, IfxToastContainer, IfxTooltip, IfxTreeView, IfxTreeViewItem, InfineonDesignSystemModule, TextValueAccessor };
3228
+ export { BooleanValueAccessor, DIRECTIVES, IfxAccordion, IfxAccordionItem, IfxActionList, IfxActionListItem, IfxAiLabel, IfxAlert, IfxBasicTable, IfxBreadcrumb, IfxBreadcrumbItem, IfxBreadcrumbItemLabel, IfxButton, IfxCard, IfxCardHeadline, IfxCardImage, IfxCardLinks, IfxCardOverline, IfxCardText, IfxCheckbox, IfxCheckboxGroup, IfxChip, IfxChipItem, IfxContentSwitcher, IfxContentSwitcherItem, IfxCounter, IfxCounterNgModuleValueAccessor as IfxCounterValueAccessor, IfxDatePicker, IfxDownload, IfxDropdown, IfxDropdownHeader, IfxDropdownItem, IfxDropdownMenu, IfxDropdownSeparator, IfxDropdownTrigger, IfxDropdownTriggerButton, IfxErrorPage, IfxFileUpload, IfxFilterAccordion, IfxFilterBar, IfxFilterSearch, IfxFilterTypeGroup, IfxFooter, IfxFooterColumn, IfxIcon, IfxIconButton, IfxIconsPreview, IfxIndicator, IfxLink, IfxList, IfxListEntry, IfxModal, IfxModalNgModuleValueAccessor as IfxModalValueAccessor, IfxMultiselect, IfxMultiselectOption, IfxNavbar, IfxNavbarItem, IfxNavbarProfile, IfxNotification, IfxOverviewTable, IfxPagination, IfxPopover, IfxProgressBar, IfxRadioButton, IfxRadioButtonGroup, IfxSearchBar, IfxSearchField, IfxSegment, IfxSegmentedControl, IfxSelect, IfxSelectGroup, IfxSelectOption, IfxSetFilter, IfxSidebar, IfxSidebarItem, IfxSidebarSeparator, IfxSidebarTitle, IfxSlider, IfxSliderNgModuleValueAccessor as IfxSliderValueAccessor, IfxSpinner, IfxStatus, IfxStep, IfxStepper, IfxSwitch, IfxTab, IfxTable, IfxTabs, IfxTemplate, IfxTemplatesUi, IfxTextField, IfxTextarea, IfxToast, IfxToastContainer, IfxTooltip, IfxTreeView, IfxTreeViewItem, InfineonDesignSystemModule, TextValueAccessor };
3194
3229
  //# sourceMappingURL=infineon-infineon-design-system-angular.mjs.map