@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.
- package/app-initialize.d.ts +1 -1
- package/boolean-value-accessor.d.ts +9 -0
- package/components.d.ts +22 -29
- package/declare-components.d.ts +1 -1
- package/esm2020/app-initialize.mjs +6 -5
- package/esm2020/boolean-value-accessor.mjs +38 -0
- package/esm2020/components.mjs +62 -62
- package/esm2020/declare-components.mjs +3 -3
- package/esm2020/index.mjs +4 -2
- package/esm2020/ix-icon.mjs +38 -0
- package/esm2020/module.mjs +12 -4
- package/fesm2015/siemens-ix-angular.mjs +178 -120
- package/fesm2015/siemens-ix-angular.mjs.map +1 -1
- package/fesm2020/siemens-ix-angular.mjs +177 -111
- package/fesm2020/siemens-ix-angular.mjs.map +1 -1
- package/index.d.ts +3 -1
- package/ix-icon.d.ts +12 -0
- package/module.d.ts +4 -2
- package/package.json +4 -4
|
@@ -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 } from 'tslib';
|
|
4
3
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Component, ChangeDetectionStrategy,
|
|
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 } from 'tslib';
|
|
6
7
|
import { fromEvent } from 'rxjs';
|
|
7
8
|
import { DOCUMENT } from '@angular/common';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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, ['
|
|
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: {
|
|
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: ['
|
|
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: ['
|
|
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",
|
|
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', '
|
|
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', '
|
|
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
|
*
|
|
@@ -2365,16 +2463,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2365
2463
|
*/
|
|
2366
2464
|
let didInitialize = false;
|
|
2367
2465
|
const appInitialize = (doc) => {
|
|
2368
|
-
return () => {
|
|
2466
|
+
return async () => {
|
|
2369
2467
|
const win = doc.defaultView;
|
|
2370
2468
|
if (win && typeof window !== 'undefined') {
|
|
2371
2469
|
if (didInitialize) {
|
|
2372
2470
|
return;
|
|
2373
2471
|
}
|
|
2374
2472
|
didInitialize = true;
|
|
2375
|
-
applyPolyfills()
|
|
2376
|
-
|
|
2377
|
-
|
|
2473
|
+
await applyPolyfills();
|
|
2474
|
+
await defineCustomElements();
|
|
2475
|
+
await defineCustomElements$1();
|
|
2378
2476
|
}
|
|
2379
2477
|
};
|
|
2380
2478
|
};
|
|
@@ -2414,17 +2512,16 @@ const DIRECTIVES = [
|
|
|
2414
2512
|
IxFlipTile,
|
|
2415
2513
|
IxFlipTileContent,
|
|
2416
2514
|
IxFormField,
|
|
2417
|
-
IxGrid,
|
|
2418
2515
|
IxGroup,
|
|
2419
2516
|
IxGroupContextMenu,
|
|
2420
2517
|
IxGroupItem,
|
|
2421
|
-
IxIcon,
|
|
2422
2518
|
IxIconButton,
|
|
2423
2519
|
IxIconToggleButton,
|
|
2424
2520
|
IxInputGroup,
|
|
2425
2521
|
IxKeyValue,
|
|
2426
2522
|
IxKeyValueList,
|
|
2427
2523
|
IxKpi,
|
|
2524
|
+
IxLayoutGrid,
|
|
2428
2525
|
IxLinkButton,
|
|
2429
2526
|
IxMapNavigation,
|
|
2430
2527
|
IxMapNavigationOverlay,
|
|
@@ -2450,6 +2547,7 @@ const DIRECTIVES = [
|
|
|
2450
2547
|
IxRow,
|
|
2451
2548
|
IxSelect,
|
|
2452
2549
|
IxSelectItem,
|
|
2550
|
+
IxSlider,
|
|
2453
2551
|
IxSpinner,
|
|
2454
2552
|
IxSplitButton,
|
|
2455
2553
|
IxSplitButtonItem,
|
|
@@ -2470,44 +2568,6 @@ const DIRECTIVES = [
|
|
|
2470
2568
|
IxWorkflowSteps
|
|
2471
2569
|
];
|
|
2472
2570
|
|
|
2473
|
-
class ValueAccessor {
|
|
2474
|
-
constructor(el) {
|
|
2475
|
-
this.el = el;
|
|
2476
|
-
this.onChange = () => { };
|
|
2477
|
-
this.onTouched = () => { };
|
|
2478
|
-
}
|
|
2479
|
-
writeValue(value) {
|
|
2480
|
-
this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
|
|
2481
|
-
}
|
|
2482
|
-
handleChangeEvent(value) {
|
|
2483
|
-
if (value !== this.lastValue) {
|
|
2484
|
-
this.lastValue = value;
|
|
2485
|
-
this.onChange(value);
|
|
2486
|
-
}
|
|
2487
|
-
}
|
|
2488
|
-
_handleBlurEvent() {
|
|
2489
|
-
this.onTouched();
|
|
2490
|
-
}
|
|
2491
|
-
registerOnChange(fn) {
|
|
2492
|
-
this.onChange = fn;
|
|
2493
|
-
}
|
|
2494
|
-
registerOnTouched(fn) {
|
|
2495
|
-
this.onTouched = fn;
|
|
2496
|
-
}
|
|
2497
|
-
setDisabledState(isDisabled) {
|
|
2498
|
-
this.el.nativeElement.disabled = isDisabled;
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
/** @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 });
|
|
2502
|
-
/** @nocollapse */ ValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: ValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
|
|
2503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ValueAccessor, decorators: [{
|
|
2504
|
-
type: Directive,
|
|
2505
|
-
args: [{}]
|
|
2506
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
|
|
2507
|
-
type: HostListener,
|
|
2508
|
-
args: ['focusout']
|
|
2509
|
-
}] } });
|
|
2510
|
-
|
|
2511
2571
|
class SelectValueAccessor extends ValueAccessor {
|
|
2512
2572
|
constructor(el) {
|
|
2513
2573
|
super(el);
|
|
@@ -2730,7 +2790,9 @@ const DECLARATIONS = [
|
|
|
2730
2790
|
...DIRECTIVES,
|
|
2731
2791
|
IxTree,
|
|
2732
2792
|
IxDropdownTriggerDirective,
|
|
2793
|
+
IxIcon,
|
|
2733
2794
|
SelectValueAccessor,
|
|
2795
|
+
BooleanValueAccessor
|
|
2734
2796
|
];
|
|
2735
2797
|
class IxModule {
|
|
2736
2798
|
static forRoot() {
|
|
@@ -2751,9 +2813,13 @@ class IxModule {
|
|
|
2751
2813
|
}
|
|
2752
2814
|
}
|
|
2753
2815
|
/** @nocollapse */ IxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2754
|
-
/** @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,
|
|
2755
|
-
|
|
2756
|
-
SelectValueAccessor
|
|
2816
|
+
/** @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,
|
|
2817
|
+
IxIcon,
|
|
2818
|
+
SelectValueAccessor,
|
|
2819
|
+
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,
|
|
2820
|
+
IxIcon,
|
|
2821
|
+
SelectValueAccessor,
|
|
2822
|
+
BooleanValueAccessor] });
|
|
2757
2823
|
/** @nocollapse */ IxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxModule });
|
|
2758
2824
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: IxModule, decorators: [{
|
|
2759
2825
|
type: NgModule,
|
|
@@ -2776,5 +2842,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2776
2842
|
* Generated bundle index. Do not edit.
|
|
2777
2843
|
*/
|
|
2778
2844
|
|
|
2779
|
-
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,
|
|
2845
|
+
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 };
|
|
2780
2846
|
//# sourceMappingURL=siemens-ix-angular.mjs.map
|