@siemens/ix-angular 2.0.0-beta.1 → 2.0.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.
@@ -1,12 +1,85 @@
1
1
  import { closeModal, dismissModal, showModal, themeSwitcher, getToastContainer, toast } from '@siemens/ix';
2
2
  export * from '@siemens/ix';
3
- import { __decorate, __awaiter } from 'tslib';
4
3
  import * as i0 from '@angular/core';
5
- import { Component, ChangeDetectionStrategy, Directive, Input, Type, Injector, ElementRef, Injectable, HostListener, EventEmitter, Output, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
4
+ import { Directive, HostListener, Component, ChangeDetectionStrategy, Input, Type, Injector, ElementRef, Injectable, EventEmitter, Output, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
5
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
6
+ import { __decorate, __awaiter } from 'tslib';
6
7
  import { fromEvent } from 'rxjs';
7
8
  import { DOCUMENT } from '@angular/common';
8
- import { applyPolyfills, defineCustomElements } from '@siemens/ix/loader';
9
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
9
+ import { defineCustomElements } from '@siemens/ix-icons/loader';
10
+ import { applyPolyfills, defineCustomElements as defineCustomElements$1 } from '@siemens/ix/loader';
11
+
12
+ class ValueAccessor {
13
+ constructor(el) {
14
+ this.el = el;
15
+ this.onChange = () => { };
16
+ this.onTouched = () => { };
17
+ }
18
+ writeValue(value) {
19
+ this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
20
+ }
21
+ handleChangeEvent(value) {
22
+ if (value !== this.lastValue) {
23
+ this.lastValue = value;
24
+ this.onChange(value);
25
+ }
26
+ }
27
+ _handleBlurEvent() {
28
+ this.onTouched();
29
+ }
30
+ registerOnChange(fn) {
31
+ this.onChange = fn;
32
+ }
33
+ registerOnTouched(fn) {
34
+ this.onTouched = fn;
35
+ }
36
+ setDisabledState(isDisabled) {
37
+ this.el.nativeElement.disabled = isDisabled;
38
+ }
39
+ }
40
+ /** @nocollapse */ ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
41
+ /** @nocollapse */ ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ValueAccessor, decorators: [{
43
+ type: Directive,
44
+ args: [{}]
45
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
46
+ type: HostListener,
47
+ args: ['focusout']
48
+ }] } });
49
+
50
+ class BooleanValueAccessor extends ValueAccessor {
51
+ constructor(el) {
52
+ super(el);
53
+ }
54
+ writeValue(value) {
55
+ this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
56
+ }
57
+ }
58
+ /** @nocollapse */ BooleanValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
59
+ /** @nocollapse */ BooleanValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: BooleanValueAccessor, selector: "ix-toggle[ngModel],ix-toggle[formControlName],ix-toggle[formControl]", host: { listeners: { "checkedChange": "handleChangeEvent($event.target.checked)" } }, providers: [
60
+ {
61
+ provide: NG_VALUE_ACCESSOR,
62
+ useExisting: BooleanValueAccessor,
63
+ multi: true
64
+ }
65
+ ], usesInheritance: true, ngImport: i0 });
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanValueAccessor, decorators: [{
67
+ type: Directive,
68
+ args: [{
69
+ /* tslint:disable-next-line:directive-selector */
70
+ selector: 'ix-toggle[ngModel],ix-toggle[formControlName],ix-toggle[formControl]',
71
+ host: {
72
+ '(checkedChange)': 'handleChangeEvent($event.target.checked)'
73
+ },
74
+ providers: [
75
+ {
76
+ provide: NG_VALUE_ACCESSOR,
77
+ useExisting: BooleanValueAccessor,
78
+ multi: true
79
+ }
80
+ ]
81
+ }]
82
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
10
83
 
11
84
  /* eslint-disable */
12
85
  const proxyInputs = (Cmp, inputs) => {
@@ -162,10 +235,10 @@ let IxBlind = class IxBlind {
162
235
  }
163
236
  };
164
237
  /** @nocollapse */ IxBlind.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxBlind, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
165
- /** @nocollapse */ IxBlind.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxBlind, selector: "ix-blind", inputs: { collapsed: "collapsed", icon: "icon", label: "label", sublabel: "sublabel" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
238
+ /** @nocollapse */ IxBlind.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxBlind, selector: "ix-blind", inputs: { collapsed: "collapsed", icon: "icon", label: "label", sublabel: "sublabel", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
166
239
  IxBlind = __decorate([
167
240
  ProxyCmp({
168
- inputs: ['collapsed', 'icon', 'label', 'sublabel']
241
+ inputs: ['collapsed', 'icon', 'label', 'sublabel', 'variant']
169
242
  })
170
243
  ], IxBlind);
171
244
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxBlind, decorators: [{
@@ -175,7 +248,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
175
248
  changeDetection: ChangeDetectionStrategy.OnPush,
176
249
  template: '<ng-content></ng-content>',
177
250
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
178
- inputs: ['collapsed', 'icon', 'label', 'sublabel'],
251
+ inputs: ['collapsed', 'icon', 'label', 'sublabel', 'variant'],
179
252
  }]
180
253
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
181
254
  let IxBreadcrumb = class IxBreadcrumb {
@@ -396,7 +469,7 @@ let IxChip = class IxChip {
396
469
  this.z = z;
397
470
  c.detach();
398
471
  this.el = r.nativeElement;
399
- proxyOutputs(this, this.el, ['close', 'closeChip']);
472
+ proxyOutputs(this, this.el, ['closeChip']);
400
473
  }
401
474
  };
402
475
  /** @nocollapse */ IxChip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxChip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
@@ -598,10 +671,10 @@ let IxDropdownButton = class IxDropdownButton {
598
671
  }
599
672
  };
600
673
  /** @nocollapse */ IxDropdownButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxDropdownButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
601
- /** @nocollapse */ IxDropdownButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxDropdownButton, selector: "ix-dropdown-button", inputs: { active: "active", disabled: "disabled", ghost: "ghost", icon: "icon", label: "label", outline: "outline", placement: "placement", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
674
+ /** @nocollapse */ IxDropdownButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxDropdownButton, selector: "ix-dropdown-button", inputs: { disabled: "disabled", ghost: "ghost", icon: "icon", label: "label", outline: "outline", placement: "placement", variant: "variant" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
602
675
  IxDropdownButton = __decorate([
603
676
  ProxyCmp({
604
- inputs: ['active', 'disabled', 'ghost', 'icon', 'label', 'outline', 'placement', 'variant']
677
+ inputs: ['disabled', 'ghost', 'icon', 'label', 'outline', 'placement', 'variant']
605
678
  })
606
679
  ], IxDropdownButton);
607
680
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxDropdownButton, decorators: [{
@@ -611,7 +684,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
611
684
  changeDetection: ChangeDetectionStrategy.OnPush,
612
685
  template: '<ng-content></ng-content>',
613
686
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
614
- inputs: ['active', 'disabled', 'ghost', 'icon', 'label', 'outline', 'placement', 'variant'],
687
+ inputs: ['disabled', 'ghost', 'icon', 'label', 'outline', 'placement', 'variant'],
615
688
  }]
616
689
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
617
690
  let IxDropdownHeader = class IxDropdownHeader {
@@ -643,7 +716,6 @@ let IxDropdownItem = class IxDropdownItem {
643
716
  this.z = z;
644
717
  c.detach();
645
718
  this.el = r.nativeElement;
646
- proxyOutputs(this, this.el, ['itemClick']);
647
719
  }
648
720
  };
649
721
  /** @nocollapse */ IxDropdownItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxDropdownItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
@@ -744,10 +816,10 @@ let IxEventListItem = class IxEventListItem {
744
816
  }
745
817
  };
746
818
  /** @nocollapse */ IxEventListItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxEventListItem, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
747
- /** @nocollapse */ IxEventListItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxEventListItem, selector: "ix-event-list-item", inputs: { chevron: "chevron", color: "color", disabled: "disabled", opacity: "opacity", selected: "selected" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
819
+ /** @nocollapse */ IxEventListItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxEventListItem, selector: "ix-event-list-item", inputs: { chevron: "chevron", color: "color", disabled: "disabled", selected: "selected" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
748
820
  IxEventListItem = __decorate([
749
821
  ProxyCmp({
750
- inputs: ['chevron', 'color', 'disabled', 'opacity', 'selected']
822
+ inputs: ['chevron', 'color', 'disabled', 'selected']
751
823
  })
752
824
  ], IxEventListItem);
753
825
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxEventListItem, decorators: [{
@@ -757,7 +829,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
757
829
  changeDetection: ChangeDetectionStrategy.OnPush,
758
830
  template: '<ng-content></ng-content>',
759
831
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
760
- inputs: ['chevron', 'color', 'disabled', 'opacity', 'selected'],
832
+ inputs: ['chevron', 'color', 'disabled', 'selected'],
761
833
  }]
762
834
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
763
835
  let IxExpandingSearch = class IxExpandingSearch {
@@ -880,30 +952,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
880
952
  inputs: ['label'],
881
953
  }]
882
954
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
883
- let IxGrid = class IxGrid {
884
- constructor(c, r, z) {
885
- this.z = z;
886
- c.detach();
887
- this.el = r.nativeElement;
888
- }
889
- };
890
- /** @nocollapse */ IxGrid.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxGrid, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
891
- /** @nocollapse */ IxGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxGrid, selector: "ix-grid", inputs: { columns: "columns", noPadding: "noPadding", noRowGap: "noRowGap" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
892
- IxGrid = __decorate([
893
- ProxyCmp({
894
- inputs: ['columns', 'noPadding', 'noRowGap']
895
- })
896
- ], IxGrid);
897
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxGrid, decorators: [{
898
- type: Component,
899
- args: [{
900
- selector: 'ix-grid',
901
- changeDetection: ChangeDetectionStrategy.OnPush,
902
- template: '<ng-content></ng-content>',
903
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
904
- inputs: ['columns', 'noPadding', 'noRowGap'],
905
- }]
906
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
907
955
  let IxGroup = class IxGroup {
908
956
  constructor(c, r, z) {
909
957
  this.z = z;
@@ -976,30 +1024,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
976
1024
  inputs: ['focusable', 'icon', 'index', 'secondaryText', 'selected', 'suppressSelection', 'text'],
977
1025
  }]
978
1026
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
979
- let IxIcon = class IxIcon {
980
- constructor(c, r, z) {
981
- this.z = z;
982
- c.detach();
983
- this.el = r.nativeElement;
984
- }
985
- };
986
- /** @nocollapse */ IxIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
987
- /** @nocollapse */ IxIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxIcon, selector: "ix-icon", inputs: { color: "color", name: "name", size: "size" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
988
- IxIcon = __decorate([
989
- ProxyCmp({
990
- inputs: ['color', 'name', 'size']
991
- })
992
- ], IxIcon);
993
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxIcon, decorators: [{
994
- type: Component,
995
- args: [{
996
- selector: 'ix-icon',
997
- changeDetection: ChangeDetectionStrategy.OnPush,
998
- template: '<ng-content></ng-content>',
999
- // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1000
- inputs: ['color', 'name', 'size'],
1001
- }]
1002
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1003
1027
  let IxIconButton = class IxIconButton {
1004
1028
  constructor(c, r, z) {
1005
1029
  this.z = z;
@@ -1143,6 +1167,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1143
1167
  inputs: ['label', 'orientation', 'state', 'unit', 'value'],
1144
1168
  }]
1145
1169
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1170
+ let IxLayoutGrid = class IxLayoutGrid {
1171
+ constructor(c, r, z) {
1172
+ this.z = z;
1173
+ c.detach();
1174
+ this.el = r.nativeElement;
1175
+ }
1176
+ };
1177
+ /** @nocollapse */ IxLayoutGrid.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxLayoutGrid, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1178
+ /** @nocollapse */ IxLayoutGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxLayoutGrid, selector: "ix-layout-grid", inputs: { columns: "columns", gap: "gap", noMargin: "noMargin" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1179
+ IxLayoutGrid = __decorate([
1180
+ ProxyCmp({
1181
+ inputs: ['columns', 'gap', 'noMargin']
1182
+ })
1183
+ ], IxLayoutGrid);
1184
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxLayoutGrid, decorators: [{
1185
+ type: Component,
1186
+ args: [{
1187
+ selector: 'ix-layout-grid',
1188
+ changeDetection: ChangeDetectionStrategy.OnPush,
1189
+ template: '<ng-content></ng-content>',
1190
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1191
+ inputs: ['columns', 'gap', 'noMargin'],
1192
+ }]
1193
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1146
1194
  let IxLinkButton = class IxLinkButton {
1147
1195
  constructor(c, r, z) {
1148
1196
  this.z = z;
@@ -1752,6 +1800,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1752
1800
  inputs: ['label', 'selected', 'value'],
1753
1801
  }]
1754
1802
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1803
+ let IxSlider = class IxSlider {
1804
+ constructor(c, r, z) {
1805
+ this.z = z;
1806
+ c.detach();
1807
+ this.el = r.nativeElement;
1808
+ proxyOutputs(this, this.el, ['valueChange']);
1809
+ }
1810
+ };
1811
+ /** @nocollapse */ IxSlider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxSlider, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1812
+ /** @nocollapse */ IxSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxSlider, selector: "ix-slider", inputs: { disabled: "disabled", error: "error", marker: "marker", max: "max", min: "min", step: "step", trace: "trace", traceReference: "traceReference", value: "value" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1813
+ IxSlider = __decorate([
1814
+ ProxyCmp({
1815
+ inputs: ['disabled', 'error', 'marker', 'max', 'min', 'step', 'trace', 'traceReference', 'value']
1816
+ })
1817
+ ], IxSlider);
1818
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxSlider, decorators: [{
1819
+ type: Component,
1820
+ args: [{
1821
+ selector: 'ix-slider',
1822
+ changeDetection: ChangeDetectionStrategy.OnPush,
1823
+ template: '<ng-content></ng-content>',
1824
+ // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
1825
+ inputs: ['disabled', 'error', 'marker', 'max', 'min', 'step', 'trace', 'traceReference', 'value'],
1826
+ }]
1827
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
1755
1828
  let IxSpinner = class IxSpinner {
1756
1829
  constructor(c, r, z) {
1757
1830
  this.z = z;
@@ -2226,6 +2299,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2226
2299
  type: Input
2227
2300
  }] } });
2228
2301
 
2302
+ let IxIcon = class IxIcon {
2303
+ constructor(c, r, z) {
2304
+ this.z = z;
2305
+ c.detach();
2306
+ this.el = r.nativeElement;
2307
+ }
2308
+ };
2309
+ /** @nocollapse */ IxIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxIcon, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2310
+ /** @nocollapse */ IxIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: IxIcon, selector: "ix-icon", inputs: { color: "color", name: "name" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2311
+ IxIcon = __decorate([
2312
+ ProxyCmp({
2313
+ defineCustomElementFn: undefined,
2314
+ inputs: ['color', 'name'],
2315
+ })
2316
+ ], IxIcon);
2317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxIcon, decorators: [{
2318
+ type: Component,
2319
+ args: [{
2320
+ selector: 'ix-icon',
2321
+ changeDetection: ChangeDetectionStrategy.OnPush,
2322
+ template: '<ng-content></ng-content>',
2323
+ inputs: ['color', 'name'],
2324
+ }]
2325
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
2326
+
2229
2327
  /*
2230
2328
  * SPDX-FileCopyrightText: 2023 Siemens AG
2231
2329
  *
@@ -2352,28 +2450,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2352
2450
  * LICENSE file in the root directory of this source tree.
2353
2451
  */
2354
2452
 
2355
- /*
2356
- * SPDX-FileCopyrightText: 2023 Siemens AG
2357
- *
2358
- * SPDX-License-Identifier: MIT
2359
- *
2360
- * This source code is licensed under the MIT license found in the
2361
- * LICENSE file in the root directory of this source tree.
2362
- */
2363
2453
  let didInitialize = false;
2364
2454
  const appInitialize = (doc) => {
2365
- return () => {
2455
+ return () => __awaiter(void 0, void 0, void 0, function* () {
2366
2456
  const win = doc.defaultView;
2367
2457
  if (win && typeof window !== 'undefined') {
2368
2458
  if (didInitialize) {
2369
2459
  return;
2370
2460
  }
2371
2461
  didInitialize = true;
2372
- applyPolyfills().then(() => {
2373
- return defineCustomElements();
2374
- });
2462
+ yield applyPolyfills();
2463
+ yield defineCustomElements();
2464
+ yield defineCustomElements$1();
2375
2465
  }
2376
- };
2466
+ });
2377
2467
  };
2378
2468
 
2379
2469
  const DIRECTIVES = [
@@ -2411,17 +2501,16 @@ const DIRECTIVES = [
2411
2501
  IxFlipTile,
2412
2502
  IxFlipTileContent,
2413
2503
  IxFormField,
2414
- IxGrid,
2415
2504
  IxGroup,
2416
2505
  IxGroupContextMenu,
2417
2506
  IxGroupItem,
2418
- IxIcon,
2419
2507
  IxIconButton,
2420
2508
  IxIconToggleButton,
2421
2509
  IxInputGroup,
2422
2510
  IxKeyValue,
2423
2511
  IxKeyValueList,
2424
2512
  IxKpi,
2513
+ IxLayoutGrid,
2425
2514
  IxLinkButton,
2426
2515
  IxMapNavigation,
2427
2516
  IxMapNavigationOverlay,
@@ -2447,6 +2536,7 @@ const DIRECTIVES = [
2447
2536
  IxRow,
2448
2537
  IxSelect,
2449
2538
  IxSelectItem,
2539
+ IxSlider,
2450
2540
  IxSpinner,
2451
2541
  IxSplitButton,
2452
2542
  IxSplitButtonItem,
@@ -2467,44 +2557,6 @@ const DIRECTIVES = [
2467
2557
  IxWorkflowSteps
2468
2558
  ];
2469
2559
 
2470
- class ValueAccessor {
2471
- constructor(el) {
2472
- this.el = el;
2473
- this.onChange = () => { };
2474
- this.onTouched = () => { };
2475
- }
2476
- writeValue(value) {
2477
- this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
2478
- }
2479
- handleChangeEvent(value) {
2480
- if (value !== this.lastValue) {
2481
- this.lastValue = value;
2482
- this.onChange(value);
2483
- }
2484
- }
2485
- _handleBlurEvent() {
2486
- this.onTouched();
2487
- }
2488
- registerOnChange(fn) {
2489
- this.onChange = fn;
2490
- }
2491
- registerOnTouched(fn) {
2492
- this.onTouched = fn;
2493
- }
2494
- setDisabledState(isDisabled) {
2495
- this.el.nativeElement.disabled = isDisabled;
2496
- }
2497
- }
2498
- /** @nocollapse */ ValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2499
- /** @nocollapse */ ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
2500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ValueAccessor, decorators: [{
2501
- type: Directive,
2502
- args: [{}]
2503
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
2504
- type: HostListener,
2505
- args: ['focusout']
2506
- }] } });
2507
-
2508
2560
  class SelectValueAccessor extends ValueAccessor {
2509
2561
  constructor(el) {
2510
2562
  super(el);
@@ -2720,7 +2772,9 @@ const DECLARATIONS = [
2720
2772
  ...DIRECTIVES,
2721
2773
  IxTree,
2722
2774
  IxDropdownTriggerDirective,
2775
+ IxIcon,
2723
2776
  SelectValueAccessor,
2777
+ BooleanValueAccessor
2724
2778
  ];
2725
2779
  class IxModule {
2726
2780
  static forRoot() {
@@ -2741,9 +2795,13 @@ class IxModule {
2741
2795
  }
2742
2796
  }
2743
2797
  /** @nocollapse */ IxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2744
- /** @nocollapse */ IxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxModule, declarations: [IxActionCard, IxApplicationHeader, IxAvatar, IxBasicNavigation, IxBlind, IxBreadcrumb, IxBreadcrumbItem, IxButton, IxCard, IxCardAccordion, IxCardContent, IxCardList, IxCardTitle, IxCategoryFilter, IxChip, IxCol, IxContentHeader, IxDatePicker, IxDatetimePicker, IxDivider, IxDrawer, IxDropdown, IxDropdownButton, IxDropdownHeader, IxDropdownItem, IxDropdownQuickActions, IxEmptyState, IxEventList, IxEventListItem, IxExpandingSearch, IxFilterChip, IxFlipTile, IxFlipTileContent, IxFormField, IxGrid, IxGroup, IxGroupContextMenu, IxGroupItem, IxIcon, IxIconButton, IxIconToggleButton, IxInputGroup, IxKeyValue, IxKeyValueList, IxKpi, IxLinkButton, IxMapNavigation, IxMapNavigationOverlay, IxMenu, IxMenuAbout, IxMenuAboutItem, IxMenuAboutNews, IxMenuAvatar, IxMenuAvatarItem, IxMenuCategory, IxMenuItem, IxMenuSettings, IxMenuSettingsItem, IxMessageBar, IxModal, IxModalContent, IxModalExample, IxModalFooter, IxModalHeader, IxPagination, IxPill, IxPushCard, IxRow, IxSelect, IxSelectItem, IxSpinner, IxSplitButton, IxSplitButtonItem, IxTabItem, IxTabs, IxTile, IxTimePicker, IxToast, IxToastContainer, IxToggle, IxToggleButton, IxTooltip, IxTreeItem, IxTypography, IxUpload, IxValidationTooltip, IxWorkflowStep, IxWorkflowSteps, IxTree, IxDropdownTriggerDirective,
2745
- SelectValueAccessor], exports: [IxActionCard, IxApplicationHeader, IxAvatar, IxBasicNavigation, IxBlind, IxBreadcrumb, IxBreadcrumbItem, IxButton, IxCard, IxCardAccordion, IxCardContent, IxCardList, IxCardTitle, IxCategoryFilter, IxChip, IxCol, IxContentHeader, IxDatePicker, IxDatetimePicker, IxDivider, IxDrawer, IxDropdown, IxDropdownButton, IxDropdownHeader, IxDropdownItem, IxDropdownQuickActions, IxEmptyState, IxEventList, IxEventListItem, IxExpandingSearch, IxFilterChip, IxFlipTile, IxFlipTileContent, IxFormField, IxGrid, IxGroup, IxGroupContextMenu, IxGroupItem, IxIcon, IxIconButton, IxIconToggleButton, IxInputGroup, IxKeyValue, IxKeyValueList, IxKpi, IxLinkButton, IxMapNavigation, IxMapNavigationOverlay, IxMenu, IxMenuAbout, IxMenuAboutItem, IxMenuAboutNews, IxMenuAvatar, IxMenuAvatarItem, IxMenuCategory, IxMenuItem, IxMenuSettings, IxMenuSettingsItem, IxMessageBar, IxModal, IxModalContent, IxModalExample, IxModalFooter, IxModalHeader, IxPagination, IxPill, IxPushCard, IxRow, IxSelect, IxSelectItem, IxSpinner, IxSplitButton, IxSplitButtonItem, IxTabItem, IxTabs, IxTile, IxTimePicker, IxToast, IxToastContainer, IxToggle, IxToggleButton, IxTooltip, IxTreeItem, IxTypography, IxUpload, IxValidationTooltip, IxWorkflowStep, IxWorkflowSteps, IxTree, IxDropdownTriggerDirective,
2746
- SelectValueAccessor] });
2798
+ /** @nocollapse */ IxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxModule, declarations: [IxActionCard, IxApplicationHeader, IxAvatar, IxBasicNavigation, IxBlind, IxBreadcrumb, IxBreadcrumbItem, IxButton, IxCard, IxCardAccordion, IxCardContent, IxCardList, IxCardTitle, IxCategoryFilter, IxChip, IxCol, IxContentHeader, IxDatePicker, IxDatetimePicker, IxDivider, IxDrawer, IxDropdown, IxDropdownButton, IxDropdownHeader, IxDropdownItem, IxDropdownQuickActions, IxEmptyState, IxEventList, IxEventListItem, IxExpandingSearch, IxFilterChip, IxFlipTile, IxFlipTileContent, IxFormField, IxGroup, IxGroupContextMenu, IxGroupItem, IxIconButton, IxIconToggleButton, IxInputGroup, IxKeyValue, IxKeyValueList, IxKpi, IxLayoutGrid, IxLinkButton, IxMapNavigation, IxMapNavigationOverlay, IxMenu, IxMenuAbout, IxMenuAboutItem, IxMenuAboutNews, IxMenuAvatar, IxMenuAvatarItem, IxMenuCategory, IxMenuItem, IxMenuSettings, IxMenuSettingsItem, IxMessageBar, IxModal, IxModalContent, IxModalExample, IxModalFooter, IxModalHeader, IxPagination, IxPill, IxPushCard, IxRow, IxSelect, IxSelectItem, IxSlider, IxSpinner, IxSplitButton, IxSplitButtonItem, IxTabItem, IxTabs, IxTile, IxTimePicker, IxToast, IxToastContainer, IxToggle, IxToggleButton, IxTooltip, IxTreeItem, IxTypography, IxUpload, IxValidationTooltip, IxWorkflowStep, IxWorkflowSteps, IxTree, IxDropdownTriggerDirective,
2799
+ IxIcon,
2800
+ SelectValueAccessor,
2801
+ BooleanValueAccessor], exports: [IxActionCard, IxApplicationHeader, IxAvatar, IxBasicNavigation, IxBlind, IxBreadcrumb, IxBreadcrumbItem, IxButton, IxCard, IxCardAccordion, IxCardContent, IxCardList, IxCardTitle, IxCategoryFilter, IxChip, IxCol, IxContentHeader, IxDatePicker, IxDatetimePicker, IxDivider, IxDrawer, IxDropdown, IxDropdownButton, IxDropdownHeader, IxDropdownItem, IxDropdownQuickActions, IxEmptyState, IxEventList, IxEventListItem, IxExpandingSearch, IxFilterChip, IxFlipTile, IxFlipTileContent, IxFormField, IxGroup, IxGroupContextMenu, IxGroupItem, IxIconButton, IxIconToggleButton, IxInputGroup, IxKeyValue, IxKeyValueList, IxKpi, IxLayoutGrid, IxLinkButton, IxMapNavigation, IxMapNavigationOverlay, IxMenu, IxMenuAbout, IxMenuAboutItem, IxMenuAboutNews, IxMenuAvatar, IxMenuAvatarItem, IxMenuCategory, IxMenuItem, IxMenuSettings, IxMenuSettingsItem, IxMessageBar, IxModal, IxModalContent, IxModalExample, IxModalFooter, IxModalHeader, IxPagination, IxPill, IxPushCard, IxRow, IxSelect, IxSelectItem, IxSlider, IxSpinner, IxSplitButton, IxSplitButtonItem, IxTabItem, IxTabs, IxTile, IxTimePicker, IxToast, IxToastContainer, IxToggle, IxToggleButton, IxTooltip, IxTreeItem, IxTypography, IxUpload, IxValidationTooltip, IxWorkflowStep, IxWorkflowSteps, IxTree, IxDropdownTriggerDirective,
2802
+ IxIcon,
2803
+ SelectValueAccessor,
2804
+ BooleanValueAccessor] });
2747
2805
  /** @nocollapse */ IxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxModule });
2748
2806
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxModule, decorators: [{
2749
2807
  type: NgModule,
@@ -2766,5 +2824,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
2766
2824
  * Generated bundle index. Do not edit.
2767
2825
  */
2768
2826
 
2769
- export { IxActionCard, IxActiveModal, IxApplicationHeader, IxAvatar, IxBasicNavigation, IxBlind, IxBreadcrumb, IxBreadcrumbItem, IxButton, IxCard, IxCardAccordion, IxCardContent, IxCardList, IxCardTitle, IxCategoryFilter, IxChip, IxCol, IxContentHeader, IxDatePicker, IxDatetimePicker, IxDivider, IxDrawer, IxDropdown, IxDropdownButton, IxDropdownHeader, IxDropdownItem, IxDropdownQuickActions, IxDropdownTriggerDirective, IxEmptyState, IxEventList, IxEventListItem, IxExpandingSearch, IxFilterChip, IxFlipTile, IxFlipTileContent, IxFormField, IxGrid, IxGroup, IxGroupContextMenu, IxGroupItem, IxIcon, IxIconButton, IxIconToggleButton, IxInputGroup, IxKeyValue, IxKeyValueList, IxKpi, IxLinkButton, IxMapNavigation, IxMapNavigationOverlay, IxMenu, IxMenuAbout, IxMenuAboutItem, IxMenuAboutNews, IxMenuAvatar, IxMenuAvatarItem, IxMenuCategory, IxMenuItem, IxMenuSettings, IxMenuSettingsItem, IxMessageBar, IxModal, IxModalContent, IxModalExample, IxModalFooter, IxModalHeader, IxModule, IxPagination, IxPill, IxPushCard, IxRow, IxSelect, IxSelectItem, IxSpinner, IxSplitButton, IxSplitButtonItem, IxTabItem, IxTabs, IxTile, IxTimePicker, IxToast, IxToastContainer, IxToggle, IxToggleButton, IxTooltip, IxTree, IxTreeItem, IxTypography, IxUpload, IxValidationTooltip, IxWorkflowStep, IxWorkflowSteps, ModalService, SelectValueAccessor, ThemeService, ToastService };
2827
+ export { BooleanValueAccessor, IxActionCard, IxActiveModal, IxApplicationHeader, IxAvatar, IxBasicNavigation, IxBlind, IxBreadcrumb, IxBreadcrumbItem, IxButton, IxCard, IxCardAccordion, IxCardContent, IxCardList, IxCardTitle, IxCategoryFilter, IxChip, IxCol, IxContentHeader, IxDatePicker, IxDatetimePicker, IxDivider, IxDrawer, IxDropdown, IxDropdownButton, IxDropdownHeader, IxDropdownItem, IxDropdownQuickActions, IxDropdownTriggerDirective, IxEmptyState, IxEventList, IxEventListItem, IxExpandingSearch, IxFilterChip, IxFlipTile, IxFlipTileContent, IxFormField, IxGroup, IxGroupContextMenu, IxGroupItem, IxIcon, IxIconButton, IxIconToggleButton, IxInputGroup, IxKeyValue, IxKeyValueList, IxKpi, IxLayoutGrid, IxLinkButton, IxMapNavigation, IxMapNavigationOverlay, IxMenu, IxMenuAbout, IxMenuAboutItem, IxMenuAboutNews, IxMenuAvatar, IxMenuAvatarItem, IxMenuCategory, IxMenuItem, IxMenuSettings, IxMenuSettingsItem, IxMessageBar, IxModal, IxModalContent, IxModalExample, IxModalFooter, IxModalHeader, IxModule, IxPagination, IxPill, IxPushCard, IxRow, IxSelect, IxSelectItem, IxSlider, IxSpinner, IxSplitButton, IxSplitButtonItem, IxTabItem, IxTabs, IxTile, IxTimePicker, IxToast, IxToastContainer, IxToggle, IxToggleButton, IxTooltip, IxTree, IxTreeItem, IxTypography, IxUpload, IxValidationTooltip, IxWorkflowStep, IxWorkflowSteps, ModalService, SelectValueAccessor, ThemeService, ToastService };
2770
2828
  //# sourceMappingURL=siemens-ix-angular.mjs.map