@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.
- package/fesm2022/infineon-infineon-design-system-angular-standalone.mjs +39 -4
- package/fesm2022/infineon-infineon-design-system-angular-standalone.mjs.map +1 -1
- package/fesm2022/infineon-infineon-design-system-angular.mjs +42 -7
- package/fesm2022/infineon-infineon-design-system-angular.mjs.map +1 -1
- package/index.d.ts +10 -4
- package/package.json +2 -2
- package/standalone/index.d.ts +8 -2
|
@@ -200,6 +200,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
200
200
|
}]
|
|
201
201
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
202
202
|
|
|
203
|
+
class IfxCounterValueAccessor extends ValueAccessor {
|
|
204
|
+
writeValue(value) {
|
|
205
|
+
const numericValue = Number(value);
|
|
206
|
+
this.el.nativeElement.value = this.lastValue = Number.isFinite(numericValue)
|
|
207
|
+
? Math.max(0, numericValue)
|
|
208
|
+
: 0;
|
|
209
|
+
}
|
|
210
|
+
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IfxCounterValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
211
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.31", type: IfxCounterValueAccessor, isStandalone: true, selector: "ifx-counter[ngModel],ifx-counter[formControl],ifx-counter[formControlName]", host: { listeners: { "ifxChange": "handleChangeEvent($event.detail)" } }, providers: [
|
|
212
|
+
{
|
|
213
|
+
provide: NG_VALUE_ACCESSOR,
|
|
214
|
+
useExisting: forwardRef((() => IfxCounterValueAccessor)),
|
|
215
|
+
multi: true
|
|
216
|
+
}
|
|
217
|
+
], usesInheritance: true, ngImport: i0 });
|
|
218
|
+
}
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IfxCounterValueAccessor, decorators: [{
|
|
220
|
+
type: Directive,
|
|
221
|
+
args: [{
|
|
222
|
+
/* tslint:disable-next-line:directive-selector */
|
|
223
|
+
selector: 'ifx-counter[ngModel],ifx-counter[formControl],ifx-counter[formControlName]',
|
|
224
|
+
host: {
|
|
225
|
+
'(ifxChange)': 'handleChangeEvent($event.detail)'
|
|
226
|
+
},
|
|
227
|
+
providers: [
|
|
228
|
+
{
|
|
229
|
+
provide: NG_VALUE_ACCESSOR,
|
|
230
|
+
useExisting: forwardRef((() => IfxCounterValueAccessor)),
|
|
231
|
+
multi: true
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
standalone: true
|
|
235
|
+
}]
|
|
236
|
+
}] });
|
|
237
|
+
|
|
203
238
|
/**
|
|
204
239
|
* Custom Value Accessor for ifx-modal component.
|
|
205
240
|
*
|
|
@@ -1032,12 +1067,12 @@ let IfxCounter = class IfxCounter {
|
|
|
1032
1067
|
this.el = r.nativeElement;
|
|
1033
1068
|
}
|
|
1034
1069
|
/** @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 });
|
|
1035
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: IfxCounter, isStandalone: true, selector: "ifx-counter", inputs: { value: "value" }, outputs: { ifxChange: "ifxChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1070
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: IfxCounter, isStandalone: true, selector: "ifx-counter", inputs: { name: "name", value: "value" }, outputs: { ifxChange: "ifxChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1036
1071
|
};
|
|
1037
1072
|
IfxCounter = __decorate([
|
|
1038
1073
|
ProxyCmp({
|
|
1039
1074
|
defineCustomElementFn: defineCustomElement$o,
|
|
1040
|
-
inputs: ['value']
|
|
1075
|
+
inputs: ['name', 'value']
|
|
1041
1076
|
})
|
|
1042
1077
|
], IfxCounter);
|
|
1043
1078
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IfxCounter, decorators: [{
|
|
@@ -1047,7 +1082,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
1047
1082
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1048
1083
|
template: '<ng-content></ng-content>',
|
|
1049
1084
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1050
|
-
inputs: ['value'],
|
|
1085
|
+
inputs: ['name', 'value'],
|
|
1051
1086
|
outputs: ['ifxChange'],
|
|
1052
1087
|
}]
|
|
1053
1088
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { ifxChange: [{
|
|
@@ -3169,5 +3204,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
3169
3204
|
* Generated bundle index. Do not edit.
|
|
3170
3205
|
*/
|
|
3171
3206
|
|
|
3172
|
-
export { BooleanValueAccessor, 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, 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, IfxSliderValueAccessor, IfxSpinner, IfxStatus, IfxStep, IfxStepper, IfxSwitch, IfxTab, IfxTable, IfxTabs, IfxTemplate, IfxTemplatesUi, IfxTextField, IfxTextarea, IfxToast, IfxToastContainer, IfxTooltip, IfxTreeView, IfxTreeViewItem, TextValueAccessor };
|
|
3207
|
+
export { BooleanValueAccessor, IfxAccordion, IfxAccordionItem, IfxActionList, IfxActionListItem, IfxAiLabel, IfxAlert, IfxBasicTable, IfxBreadcrumb, IfxBreadcrumbItem, IfxBreadcrumbItemLabel, IfxButton, IfxCard, IfxCardHeadline, IfxCardImage, IfxCardLinks, IfxCardOverline, IfxCardText, IfxCheckbox, IfxCheckboxGroup, IfxChip, IfxChipItem, IfxContentSwitcher, IfxContentSwitcherItem, IfxCounter, 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, 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, IfxSliderValueAccessor, IfxSpinner, IfxStatus, IfxStep, IfxStepper, IfxSwitch, IfxTab, IfxTable, IfxTabs, IfxTemplate, IfxTemplatesUi, IfxTextField, IfxTextarea, IfxToast, IfxToastContainer, IfxTooltip, IfxTreeView, IfxTreeViewItem, TextValueAccessor };
|
|
3173
3208
|
//# sourceMappingURL=infineon-infineon-design-system-angular-standalone.mjs.map
|