@siemens/ix-angular 2.6.0 → 2.7.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.
@@ -119,7 +119,7 @@ let IxApplicationHeader = class IxApplicationHeader {
119
119
  this.z = z;
120
120
  c.detach();
121
121
  this.el = r.nativeElement;
122
- proxyOutputs(this, this.el, ['menuToggle']);
122
+ proxyOutputs(this, this.el, ['menuToggle', 'openAppSwitch']);
123
123
  }
124
124
  };
125
125
  /** @nocollapse */ IxApplicationHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: IxApplicationHeader, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
@@ -605,10 +605,10 @@ let IxDateDropdown = class IxDateDropdown {
605
605
  }
606
606
  };
607
607
  /** @nocollapse */ IxDateDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: IxDateDropdown, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
608
- /** @nocollapse */ IxDateDropdown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: IxDateDropdown, selector: "ix-date-dropdown", inputs: { customRangeAllowed: "customRangeAllowed", dateRangeId: "dateRangeId", dateRangeOptions: "dateRangeOptions", disabled: "disabled", format: "format", from: "from", i18nCustomItem: "i18nCustomItem", i18nDone: "i18nDone", i18nNoRange: "i18nNoRange", locale: "locale", maxDate: "maxDate", minDate: "minDate", range: "range", to: "to", weekStartIndex: "weekStartIndex" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
608
+ /** @nocollapse */ IxDateDropdown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: IxDateDropdown, selector: "ix-date-dropdown", inputs: { customRangeAllowed: "customRangeAllowed", dateRangeId: "dateRangeId", dateRangeOptions: "dateRangeOptions", disabled: "disabled", format: "format", from: "from", ghost: "ghost", i18nCustomItem: "i18nCustomItem", i18nDone: "i18nDone", i18nNoRange: "i18nNoRange", loading: "loading", locale: "locale", maxDate: "maxDate", minDate: "minDate", outline: "outline", range: "range", to: "to", variant: "variant", weekStartIndex: "weekStartIndex" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
609
609
  IxDateDropdown = __decorate([
610
610
  ProxyCmp({
611
- inputs: ['customRangeAllowed', 'dateRangeId', 'dateRangeOptions', 'disabled', 'format', 'from', 'i18nCustomItem', 'i18nDone', 'i18nNoRange', 'locale', 'maxDate', 'minDate', 'range', 'to', 'weekStartIndex'],
611
+ inputs: ['customRangeAllowed', 'dateRangeId', 'dateRangeOptions', 'disabled', 'format', 'from', 'ghost', 'i18nCustomItem', 'i18nDone', 'i18nNoRange', 'loading', 'locale', 'maxDate', 'minDate', 'outline', 'range', 'to', 'variant', 'weekStartIndex'],
612
612
  methods: ['getDateRange']
613
613
  })
614
614
  ], IxDateDropdown);
@@ -619,7 +619,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
619
619
  changeDetection: ChangeDetectionStrategy.OnPush,
620
620
  template: '<ng-content></ng-content>',
621
621
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
622
- inputs: ['customRangeAllowed', 'dateRangeId', 'dateRangeOptions', 'disabled', 'format', 'from', 'i18nCustomItem', 'i18nDone', 'i18nNoRange', 'locale', 'maxDate', 'minDate', 'range', 'to', 'weekStartIndex'],
622
+ inputs: ['customRangeAllowed', 'dateRangeId', 'dateRangeOptions', 'disabled', 'format', 'from', 'ghost', 'i18nCustomItem', 'i18nDone', 'i18nNoRange', 'loading', 'locale', 'maxDate', 'minDate', 'outline', 'range', 'to', 'variant', 'weekStartIndex'],
623
623
  }]
624
624
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
625
625
  let IxDateInput = class IxDateInput {
@@ -951,10 +951,10 @@ let IxExpandingSearch = class IxExpandingSearch {
951
951
  }
952
952
  };
953
953
  /** @nocollapse */ IxExpandingSearch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: IxExpandingSearch, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
954
- /** @nocollapse */ IxExpandingSearch.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: IxExpandingSearch, selector: "ix-expanding-search", inputs: { fullWidth: "fullWidth", icon: "icon", placeholder: "placeholder", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
954
+ /** @nocollapse */ IxExpandingSearch.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: IxExpandingSearch, selector: "ix-expanding-search", inputs: { fullWidth: "fullWidth", ghost: "ghost", icon: "icon", outline: "outline", placeholder: "placeholder", value: "value", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
955
955
  IxExpandingSearch = __decorate([
956
956
  ProxyCmp({
957
- inputs: ['fullWidth', 'icon', 'placeholder', 'value']
957
+ inputs: ['fullWidth', 'ghost', 'icon', 'outline', 'placeholder', 'value', 'variant']
958
958
  })
959
959
  ], IxExpandingSearch);
960
960
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: IxExpandingSearch, decorators: [{
@@ -964,7 +964,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
964
964
  changeDetection: ChangeDetectionStrategy.OnPush,
965
965
  template: '<ng-content></ng-content>',
966
966
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
967
- inputs: ['fullWidth', 'icon', 'placeholder', 'value'],
967
+ inputs: ['fullWidth', 'ghost', 'icon', 'outline', 'placeholder', 'value', 'variant'],
968
968
  }]
969
969
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
970
970
  let IxFieldLabel = class IxFieldLabel {
@@ -1455,7 +1455,7 @@ let IxMenu = class IxMenu {
1455
1455
  this.z = z;
1456
1456
  c.detach();
1457
1457
  this.el = r.nativeElement;
1458
- proxyOutputs(this, this.el, ['expandChange', 'mapExpandChange']);
1458
+ proxyOutputs(this, this.el, ['expandChange', 'mapExpandChange', 'openAppSwitch']);
1459
1459
  }
1460
1460
  };
1461
1461
  /** @nocollapse */ IxMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: IxMenu, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
@@ -2048,10 +2048,10 @@ let IxSelect = class IxSelect {
2048
2048
  }
2049
2049
  };
2050
2050
  /** @nocollapse */ IxSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: IxSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2051
- /** @nocollapse */ IxSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: IxSelect, selector: "ix-select", inputs: { allowClear: "allowClear", disabled: "disabled", editable: "editable", helperText: "helperText", hideListHeader: "hideListHeader", i18nNoMatches: "i18nNoMatches", i18nPlaceholder: "i18nPlaceholder", i18nPlaceholderEditable: "i18nPlaceholderEditable", i18nSelectListHeader: "i18nSelectListHeader", infoText: "infoText", invalidText: "invalidText", label: "label", mode: "mode", name: "name", readonly: "readonly", required: "required", selectedIndices: "selectedIndices", showTextAsTooltip: "showTextAsTooltip", validText: "validText", value: "value", warningText: "warningText" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2051
+ /** @nocollapse */ IxSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: IxSelect, selector: "ix-select", inputs: { allowClear: "allowClear", disabled: "disabled", dropdownMaxWidth: "dropdownMaxWidth", dropdownWidth: "dropdownWidth", editable: "editable", helperText: "helperText", hideListHeader: "hideListHeader", i18nNoMatches: "i18nNoMatches", i18nPlaceholder: "i18nPlaceholder", i18nPlaceholderEditable: "i18nPlaceholderEditable", i18nSelectListHeader: "i18nSelectListHeader", infoText: "infoText", invalidText: "invalidText", label: "label", mode: "mode", name: "name", readonly: "readonly", required: "required", selectedIndices: "selectedIndices", showTextAsTooltip: "showTextAsTooltip", validText: "validText", value: "value", warningText: "warningText" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2052
2052
  IxSelect = __decorate([
2053
2053
  ProxyCmp({
2054
- inputs: ['allowClear', 'disabled', 'editable', 'helperText', 'hideListHeader', 'i18nNoMatches', 'i18nPlaceholder', 'i18nPlaceholderEditable', 'i18nSelectListHeader', 'infoText', 'invalidText', 'label', 'mode', 'name', 'readonly', 'required', 'selectedIndices', 'showTextAsTooltip', 'validText', 'value', 'warningText'],
2054
+ inputs: ['allowClear', 'disabled', 'dropdownMaxWidth', 'dropdownWidth', 'editable', 'helperText', 'hideListHeader', 'i18nNoMatches', 'i18nPlaceholder', 'i18nPlaceholderEditable', 'i18nSelectListHeader', 'infoText', 'invalidText', 'label', 'mode', 'name', 'readonly', 'required', 'selectedIndices', 'showTextAsTooltip', 'validText', 'value', 'warningText'],
2055
2055
  methods: ['getNativeInputElement', 'focusInput']
2056
2056
  })
2057
2057
  ], IxSelect);
@@ -2062,7 +2062,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
2062
2062
  changeDetection: ChangeDetectionStrategy.OnPush,
2063
2063
  template: '<ng-content></ng-content>',
2064
2064
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2065
- inputs: ['allowClear', 'disabled', 'editable', 'helperText', 'hideListHeader', 'i18nNoMatches', 'i18nPlaceholder', 'i18nPlaceholderEditable', 'i18nSelectListHeader', 'infoText', 'invalidText', 'label', 'mode', 'name', 'readonly', 'required', 'selectedIndices', 'showTextAsTooltip', 'validText', 'value', 'warningText'],
2065
+ inputs: ['allowClear', 'disabled', 'dropdownMaxWidth', 'dropdownWidth', 'editable', 'helperText', 'hideListHeader', 'i18nNoMatches', 'i18nPlaceholder', 'i18nPlaceholderEditable', 'i18nSelectListHeader', 'infoText', 'invalidText', 'label', 'mode', 'name', 'readonly', 'required', 'selectedIndices', 'showTextAsTooltip', 'validText', 'value', 'warningText'],
2066
2066
  }]
2067
2067
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
2068
2068
  let IxSelectItem = class IxSelectItem {
@@ -2791,7 +2791,7 @@ class ValueAccessor {
2791
2791
  }
2792
2792
  writeValue(value) {
2793
2793
  this.elementRef.nativeElement.value = this.lastValue = value;
2794
- mapNgToIxClassNames(this.elementRef);
2794
+ this.setClasses();
2795
2795
  }
2796
2796
  handleValueChange(el, value) {
2797
2797
  if (el === this.elementRef.nativeElement) {
@@ -2799,13 +2799,13 @@ class ValueAccessor {
2799
2799
  this.lastValue = value;
2800
2800
  this.onChange(value);
2801
2801
  }
2802
- mapNgToIxClassNames(this.elementRef);
2802
+ this.setClasses();
2803
2803
  }
2804
2804
  }
2805
2805
  _handleBlurEvent(el) {
2806
2806
  if (el === this.elementRef.nativeElement) {
2807
2807
  this.onTouched();
2808
- mapNgToIxClassNames(this.elementRef);
2808
+ this.setClasses();
2809
2809
  }
2810
2810
  }
2811
2811
  registerOnChange(fn) {
@@ -2823,22 +2823,33 @@ class ValueAccessor {
2823
2823
  }
2824
2824
  }
2825
2825
  ngAfterViewInit() {
2826
- let ngControl;
2826
+ let ngControl = this.getAssignedNgControl();
2827
+ if (!ngControl) {
2828
+ return;
2829
+ }
2830
+ if (ngControl.statusChanges) {
2831
+ this.statusChanges = ngControl.statusChanges.subscribe(() => {
2832
+ this.setClasses();
2833
+ });
2834
+ }
2835
+ detourFormControlMethods(ngControl, this.elementRef);
2836
+ }
2837
+ getAssignedNgControl() {
2838
+ let ngControl = null;
2827
2839
  try {
2828
2840
  ngControl = this.injector.get(NgControl);
2829
2841
  }
2830
2842
  catch {
2831
2843
  /* No FormControl or ngModel binding */
2832
2844
  }
2845
+ return ngControl;
2846
+ }
2847
+ setClasses() {
2848
+ const ngControl = this.getAssignedNgControl();
2833
2849
  if (!ngControl) {
2834
2850
  return;
2835
2851
  }
2836
- if (ngControl.statusChanges) {
2837
- this.statusChanges = ngControl.statusChanges.subscribe(() => {
2838
- mapNgToIxClassNames(this.elementRef);
2839
- });
2840
- }
2841
- detourFormControlMethods(ngControl, this.elementRef);
2852
+ mapNgToIxClassNames(this.elementRef);
2842
2853
  }
2843
2854
  }
2844
2855
  ValueAccessor.ANGULAR_CLASS_PREFIX = 'ng-';
@@ -2871,8 +2882,8 @@ const detourFormControlMethods = (ngControl, elementRef) => {
2871
2882
  });
2872
2883
  }
2873
2884
  };
2874
- const mapNgToIxClassNames = (element) => {
2875
- setTimeout(() => {
2885
+ const mapNgToIxClassNames = async (element) => {
2886
+ setTimeout(async () => {
2876
2887
  const input = element.nativeElement;
2877
2888
  const classes = getClasses(input);
2878
2889
  const classList = input.classList;
@@ -2909,7 +2920,7 @@ class TextValueAccessorDirective extends ValueAccessor {
2909
2920
  }
2910
2921
  }
2911
2922
  /** @nocollapse */ TextValueAccessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TextValueAccessorDirective, deps: [{ token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2912
- /** @nocollapse */ TextValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: TextValueAccessorDirective, selector: "ix-input,ix-number-field,ix-textarea-field", host: { listeners: { "input": "handleInputEvent($event.target)", "valueChange": "handleInputEvent($event.target)" } }, providers: [
2923
+ /** @nocollapse */ TextValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: TextValueAccessorDirective, selector: "ix-input,ix-number-input,ix-textarea", host: { listeners: { "input": "handleInputEvent($event.target)", "valueChange": "handleInputEvent($event.target)" } }, providers: [
2913
2924
  {
2914
2925
  provide: NG_VALUE_ACCESSOR,
2915
2926
  useExisting: TextValueAccessorDirective,
@@ -2919,7 +2930,7 @@ class TextValueAccessorDirective extends ValueAccessor {
2919
2930
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TextValueAccessorDirective, decorators: [{
2920
2931
  type: Directive,
2921
2932
  args: [{
2922
- selector: 'ix-input,ix-number-field,ix-textarea-field',
2933
+ selector: 'ix-input,ix-number-input,ix-textarea',
2923
2934
  providers: [
2924
2935
  {
2925
2936
  provide: NG_VALUE_ACCESSOR,