igniteui-webcomponents-inputs 4.0.3 → 4.2.2
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/bundles/igniteui-webcomponents-inputs.umd.js +2781 -2143
- package/bundles/igniteui-webcomponents-inputs.umd.min.js +1 -1
- package/esm2015/lib/ButtonGroupView_combined.js +17 -17
- package/esm2015/lib/ButtonView_combined.js +945 -939
- package/esm2015/lib/CalendarView_combined.js +80 -80
- package/esm2015/lib/DatePickerView_combined.js +82 -64
- package/esm2015/lib/IconView_combined.js +250 -238
- package/esm2015/lib/InputGroupView_combined.js +368 -357
- package/esm2015/lib/NativeUIXInputsFactory.js +143 -0
- package/esm2015/lib/XButtonBridge.js +101 -0
- package/esm2015/lib/XCheckboxBridge.js +69 -0
- package/esm2015/lib/XComponentBridge.js +34 -0
- package/esm2015/lib/XIconButtonBridge.js +65 -0
- package/esm2015/lib/XInputBridge.js +162 -0
- package/esm2015/lib/igc-x-button-component.js +366 -366
- package/esm2015/lib/igc-x-icon-component.js +74 -63
- package/esm2015/lib/igc-x-input-component.js +65 -54
- package/esm2015/public_api.js +6 -0
- package/esm5/lib/ButtonGroupView_combined.js +17 -17
- package/esm5/lib/ButtonView_combined.js +941 -935
- package/esm5/lib/CalendarView_combined.js +80 -80
- package/esm5/lib/DatePickerView_combined.js +82 -64
- package/esm5/lib/IconView_combined.js +240 -224
- package/esm5/lib/InputGroupView_combined.js +353 -338
- package/esm5/lib/NativeUIXInputsFactory.js +153 -0
- package/esm5/lib/XButtonBridge.js +103 -0
- package/esm5/lib/XCheckboxBridge.js +71 -0
- package/esm5/lib/XComponentBridge.js +36 -0
- package/esm5/lib/XIconButtonBridge.js +67 -0
- package/esm5/lib/XInputBridge.js +164 -0
- package/esm5/lib/igc-x-button-component.js +366 -366
- package/esm5/lib/igc-x-icon-component.js +79 -64
- package/esm5/lib/igc-x-input-component.js +70 -55
- package/esm5/public_api.js +6 -0
- package/fesm2015/igniteui-webcomponents-inputs.js +2785 -2178
- package/fesm5/igniteui-webcomponents-inputs.js +2772 -2141
- package/lib/ButtonView_combined.d.ts +262 -260
- package/lib/DatePickerView_combined.d.ts +22 -21
- package/lib/DatePickerVisualModelExport.d.ts +1 -1
- package/lib/IconView_combined.d.ts +59 -56
- package/lib/InputGroupView_combined.d.ts +91 -89
- package/lib/NativeUIXInputsFactory.d.ts +22 -0
- package/lib/XButtonBridge.d.ts +21 -0
- package/lib/XCheckboxBridge.d.ts +19 -0
- package/lib/XComponentBridge.d.ts +17 -0
- package/lib/XIconButtonBridge.d.ts +16 -0
- package/lib/XInputBridge.d.ts +24 -0
- package/lib/igc-x-icon-component.d.ts +6 -1
- package/lib/igc-x-input-component.d.ts +6 -1
- package/package.json +2 -2
- package/public_api.d.ts +6 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { Base, markType } from "igniteui-webcomponents-core";
|
|
8
|
+
import { INativeUIElementFactory_$type } from "igniteui-webcomponents-core";
|
|
9
|
+
import { NativeUIComponent } from "igniteui-webcomponents-core";
|
|
10
|
+
import { XInputGroup } from "./XInputGroup";
|
|
11
|
+
import { XInput } from "./XInput";
|
|
12
|
+
import { XInputBridge } from "./XInputBridge";
|
|
13
|
+
import { NativeUIInput } from "igniteui-webcomponents-core";
|
|
14
|
+
import { XButton } from "./XButton";
|
|
15
|
+
import { XButtonBridge } from "./XButtonBridge";
|
|
16
|
+
import { NativeUIButton } from "igniteui-webcomponents-core";
|
|
17
|
+
import { XCheckbox } from "./XCheckbox";
|
|
18
|
+
import { XCheckboxBridge } from "./XCheckboxBridge";
|
|
19
|
+
import { NativeUICheckbox } from "igniteui-webcomponents-core";
|
|
20
|
+
import { XIcon } from "./XIcon";
|
|
21
|
+
import { XIconButtonBridge } from "./XIconButtonBridge";
|
|
22
|
+
import { NativeUIIconButton } from "igniteui-webcomponents-core";
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export let NativeUIXInputsFactory = /*@__PURE__*/ (() => {
|
|
27
|
+
class NativeUIXInputsFactory extends Base {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.c = 2;
|
|
31
|
+
}
|
|
32
|
+
static get b() {
|
|
33
|
+
if (NativeUIXInputsFactory.a == null) {
|
|
34
|
+
NativeUIXInputsFactory.a = new NativeUIXInputsFactory();
|
|
35
|
+
}
|
|
36
|
+
return NativeUIXInputsFactory.a;
|
|
37
|
+
}
|
|
38
|
+
static h() {
|
|
39
|
+
NativeUIComponent.ab(NativeUIXInputsFactory.b);
|
|
40
|
+
}
|
|
41
|
+
get flavor() {
|
|
42
|
+
return this.c;
|
|
43
|
+
}
|
|
44
|
+
createComponent(a, b, c) {
|
|
45
|
+
switch (b) {
|
|
46
|
+
case 1:
|
|
47
|
+
this.d(a, c);
|
|
48
|
+
break;
|
|
49
|
+
case 6:
|
|
50
|
+
this.e(a, c);
|
|
51
|
+
break;
|
|
52
|
+
case 10:
|
|
53
|
+
this.f(a, c);
|
|
54
|
+
break;
|
|
55
|
+
case 2:
|
|
56
|
+
this.g(a, c);
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
createComponentSync(a, b, c) {
|
|
61
|
+
this.createComponent(a, b, c);
|
|
62
|
+
}
|
|
63
|
+
supportsComponent(a) {
|
|
64
|
+
switch (a) {
|
|
65
|
+
case 1: return true;
|
|
66
|
+
case 6: return true;
|
|
67
|
+
case 10: return true;
|
|
68
|
+
case 2: return true;
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
g(a, b) {
|
|
73
|
+
let c = a;
|
|
74
|
+
let d = c.createElement("div");
|
|
75
|
+
let e = c.getSubRenderer(d);
|
|
76
|
+
let f = new XInputGroup();
|
|
77
|
+
f.provideContainer(e);
|
|
78
|
+
let g = e.getExternal(f, e.rootWrapper, null);
|
|
79
|
+
let h = c.createElement("div");
|
|
80
|
+
h.setRawStyleProperty("width", "100%");
|
|
81
|
+
let i = c.getSubRenderer(h);
|
|
82
|
+
let j = new XInput();
|
|
83
|
+
j.provideContainer(i);
|
|
84
|
+
let k = e.getExternal(j, i.rootWrapper, null);
|
|
85
|
+
f.appendContentChild(h);
|
|
86
|
+
f.inputs.add(j);
|
|
87
|
+
let l = new XInputBridge(f);
|
|
88
|
+
let m = new NativeUIInput();
|
|
89
|
+
m.x = d;
|
|
90
|
+
m.d = l;
|
|
91
|
+
b(m);
|
|
92
|
+
}
|
|
93
|
+
d(a, b) {
|
|
94
|
+
let c = a;
|
|
95
|
+
let d = c.createElement("div");
|
|
96
|
+
let e = c.getSubRenderer(d);
|
|
97
|
+
let f = new XButton();
|
|
98
|
+
f.provideContainer(e);
|
|
99
|
+
let g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
100
|
+
let h = new XButtonBridge(f);
|
|
101
|
+
let i = new NativeUIButton();
|
|
102
|
+
i.x = d;
|
|
103
|
+
i.d = h;
|
|
104
|
+
b(i);
|
|
105
|
+
}
|
|
106
|
+
e(a, b) {
|
|
107
|
+
let c = a;
|
|
108
|
+
let d = c.createElement("div");
|
|
109
|
+
let e = c.getSubRenderer(d);
|
|
110
|
+
let f = new XCheckbox();
|
|
111
|
+
f.provideContainer(e);
|
|
112
|
+
let g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
113
|
+
let h = new XCheckboxBridge(f);
|
|
114
|
+
let i = new NativeUICheckbox();
|
|
115
|
+
i.x = d;
|
|
116
|
+
i.d = h;
|
|
117
|
+
b(i);
|
|
118
|
+
}
|
|
119
|
+
f(a, b) {
|
|
120
|
+
let c = a;
|
|
121
|
+
let d = c.createElement("div");
|
|
122
|
+
let e = c.getSubRenderer(d);
|
|
123
|
+
let f = new XButton();
|
|
124
|
+
f.provideContainer(e);
|
|
125
|
+
f.e = 4;
|
|
126
|
+
let g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
127
|
+
let h = c.createElement("div");
|
|
128
|
+
let i = c.getSubRenderer(h);
|
|
129
|
+
let j = new XIcon();
|
|
130
|
+
j.provideContainer(i);
|
|
131
|
+
let k = e.getExternal(j, i.rootWrapper, i.getExternal(j, null, null));
|
|
132
|
+
f.appendButtonContent(h);
|
|
133
|
+
let l = new XIconButtonBridge(f, j);
|
|
134
|
+
let m = new NativeUIIconButton();
|
|
135
|
+
m.x = d;
|
|
136
|
+
m.d = l;
|
|
137
|
+
b(m);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
NativeUIXInputsFactory.$t = /*@__PURE__*/ markType(NativeUIXInputsFactory, 'NativeUIXInputsFactory', Base.$, [INativeUIElementFactory_$type]);
|
|
141
|
+
NativeUIXInputsFactory.a = null;
|
|
142
|
+
return NativeUIXInputsFactory;
|
|
143
|
+
})();
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { XComponentBridge } from "./XComponentBridge";
|
|
8
|
+
import { runOn, delegateCombine, delegateRemove, typeCast, EnumUtil, enumGetBox, markType } from "igniteui-webcomponents-core";
|
|
9
|
+
import { NativeUIComponent } from "igniteui-webcomponents-core";
|
|
10
|
+
import { NativeUIButtonClickedEventArgs } from "igniteui-webcomponents-core";
|
|
11
|
+
import { NativeUIDisplayDensity_$type } from "igniteui-webcomponents-core";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export let XButtonBridge = /*@__PURE__*/ (() => {
|
|
16
|
+
class XButtonBridge extends XComponentBridge {
|
|
17
|
+
constructor(a) {
|
|
18
|
+
super(a);
|
|
19
|
+
this.g = null;
|
|
20
|
+
this.e = null;
|
|
21
|
+
this.d = null;
|
|
22
|
+
this.f = null;
|
|
23
|
+
}
|
|
24
|
+
addHandler(a, b, c, d) {
|
|
25
|
+
let e = a;
|
|
26
|
+
switch (c) {
|
|
27
|
+
case 1:
|
|
28
|
+
e.clicked = delegateCombine(e.clicked, runOn(this, this.h));
|
|
29
|
+
this.d = d;
|
|
30
|
+
this.f = b;
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
removeHandler(a, b, c, d) {
|
|
35
|
+
let e = a;
|
|
36
|
+
switch (c) {
|
|
37
|
+
case 1:
|
|
38
|
+
e.clicked = delegateRemove(e.clicked, runOn(this, this.h));
|
|
39
|
+
this.d = null;
|
|
40
|
+
this.f = null;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
h(a, b) {
|
|
45
|
+
if (this.d != null) {
|
|
46
|
+
let c = new NativeUIButtonClickedEventArgs();
|
|
47
|
+
this.d(this.f, c);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
setValue(a, b, c) {
|
|
51
|
+
let d = a;
|
|
52
|
+
switch (b) {
|
|
53
|
+
case 3:
|
|
54
|
+
d.clearButtonContent();
|
|
55
|
+
if (typeCast(NativeUIComponent.$, c) !== null) {
|
|
56
|
+
this.e = c;
|
|
57
|
+
d.appendButtonContent(this.e.x);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
let e = d.view.k.createElement("span");
|
|
61
|
+
e.setText(c == null ? null : c.toString());
|
|
62
|
+
d.appendButtonContent(e);
|
|
63
|
+
}
|
|
64
|
+
break;
|
|
65
|
+
case 1:
|
|
66
|
+
switch (EnumUtil.getEnumValue(NativeUIDisplayDensity_$type, c)) {
|
|
67
|
+
case 0:
|
|
68
|
+
d.m = 0;
|
|
69
|
+
break;
|
|
70
|
+
case 1:
|
|
71
|
+
d.m = 1;
|
|
72
|
+
break;
|
|
73
|
+
case 2:
|
|
74
|
+
d.m = 3;
|
|
75
|
+
break;
|
|
76
|
+
case 3:
|
|
77
|
+
d.m = 2;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
getValue(a, b) {
|
|
84
|
+
let c = a;
|
|
85
|
+
switch (b) {
|
|
86
|
+
case 3: break;
|
|
87
|
+
case 1:
|
|
88
|
+
switch (c.m) {
|
|
89
|
+
case 0: return enumGetBox(NativeUIDisplayDensity_$type, 0);
|
|
90
|
+
case 1: return enumGetBox(NativeUIDisplayDensity_$type, 1);
|
|
91
|
+
case 3: return enumGetBox(NativeUIDisplayDensity_$type, 2);
|
|
92
|
+
case 2: return enumGetBox(NativeUIDisplayDensity_$type, 3);
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
XButtonBridge.$t = /*@__PURE__*/ markType(XButtonBridge, 'XButtonBridge', XComponentBridge.$);
|
|
100
|
+
return XButtonBridge;
|
|
101
|
+
})();
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { XComponentBridge } from "./XComponentBridge";
|
|
8
|
+
import { runOn, delegateCombine, delegateRemove, markType } from "igniteui-webcomponents-core";
|
|
9
|
+
import { NativeUICheckboxChangeEventArgs } from "igniteui-webcomponents-core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export let XCheckboxBridge = /*@__PURE__*/ (() => {
|
|
14
|
+
class XCheckboxBridge extends XComponentBridge {
|
|
15
|
+
constructor(a) {
|
|
16
|
+
super(a);
|
|
17
|
+
this.d = null;
|
|
18
|
+
this.e = null;
|
|
19
|
+
}
|
|
20
|
+
addHandler(a, b, c, d) {
|
|
21
|
+
let e = a;
|
|
22
|
+
switch (c) {
|
|
23
|
+
case 2:
|
|
24
|
+
let f = a;
|
|
25
|
+
e.change = delegateCombine(e.change, runOn(this, this.f));
|
|
26
|
+
this.d = d;
|
|
27
|
+
this.e = b;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
removeHandler(a, b, c, d) {
|
|
32
|
+
let e = a;
|
|
33
|
+
switch (c) {
|
|
34
|
+
case 2:
|
|
35
|
+
e.change = delegateRemove(e.change, runOn(this, this.f));
|
|
36
|
+
this.d = null;
|
|
37
|
+
this.e = null;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
f(a, b) {
|
|
42
|
+
if (this.d != null) {
|
|
43
|
+
let c = new NativeUICheckboxChangeEventArgs();
|
|
44
|
+
this.d(this.e, c);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
getValue(a, b) {
|
|
48
|
+
let c = a;
|
|
49
|
+
switch (b) {
|
|
50
|
+
case 4: return c.t;
|
|
51
|
+
case 5: return c.checked;
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
setValue(a, b, c) {
|
|
56
|
+
let d = a;
|
|
57
|
+
switch (b) {
|
|
58
|
+
case 4:
|
|
59
|
+
d.t = c;
|
|
60
|
+
return;
|
|
61
|
+
case 5:
|
|
62
|
+
d.checked = c;
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
XCheckboxBridge.$t = /*@__PURE__*/ markType(XCheckboxBridge, 'XCheckboxBridge', XComponentBridge.$);
|
|
68
|
+
return XCheckboxBridge;
|
|
69
|
+
})();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { NativeUIElementBridge } from "igniteui-webcomponents-core";
|
|
8
|
+
import { markType } from "igniteui-webcomponents-core";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export let XComponentBridge = /*@__PURE__*/ (() => {
|
|
13
|
+
class XComponentBridge extends NativeUIElementBridge {
|
|
14
|
+
constructor(a) {
|
|
15
|
+
super();
|
|
16
|
+
this.c = null;
|
|
17
|
+
this.c = a;
|
|
18
|
+
}
|
|
19
|
+
getTargetForProperty(a, b) {
|
|
20
|
+
return this.c != null ? this.c : b;
|
|
21
|
+
}
|
|
22
|
+
getMethodTarget(a) {
|
|
23
|
+
return this.c != null ? this.c : a;
|
|
24
|
+
}
|
|
25
|
+
getTargetForBuildInEvent(a, b) {
|
|
26
|
+
return this.c != null ? this.c : a;
|
|
27
|
+
}
|
|
28
|
+
getTargetForBuildInProperty(a, b) {
|
|
29
|
+
return this.c != null ? this.c : a;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
XComponentBridge.$t = /*@__PURE__*/ markType(XComponentBridge, 'XComponentBridge', NativeUIElementBridge.$);
|
|
33
|
+
return XComponentBridge;
|
|
34
|
+
})();
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { XButtonBridge } from "./XButtonBridge";
|
|
8
|
+
import { enumGetBox, EnumUtil, markType } from "igniteui-webcomponents-core";
|
|
9
|
+
import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
|
|
10
|
+
import { SvgIconRegistry } from "igniteui-webcomponents-core";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export let XIconButtonBridge = /*@__PURE__*/ (() => {
|
|
15
|
+
class XIconButtonBridge extends XButtonBridge {
|
|
16
|
+
constructor(a, b) {
|
|
17
|
+
super(a);
|
|
18
|
+
this.i = null;
|
|
19
|
+
this.j = "default";
|
|
20
|
+
this.k = null;
|
|
21
|
+
this.i = b;
|
|
22
|
+
}
|
|
23
|
+
getValue(a, b) {
|
|
24
|
+
let c = a;
|
|
25
|
+
switch (b) {
|
|
26
|
+
case 14: return this.k;
|
|
27
|
+
case 13: return this.j;
|
|
28
|
+
case 16: return enumGetBox(BaseControlTheme_$type, c.i);
|
|
29
|
+
}
|
|
30
|
+
return super.getValue(a, b);
|
|
31
|
+
}
|
|
32
|
+
setValue(a, b, c) {
|
|
33
|
+
let d = a;
|
|
34
|
+
switch (b) {
|
|
35
|
+
case 13:
|
|
36
|
+
{
|
|
37
|
+
this.j = c;
|
|
38
|
+
let e = a;
|
|
39
|
+
e.svgPath = SvgIconRegistry.instance.getSvgPathString(this.j, this.k);
|
|
40
|
+
}
|
|
41
|
+
return;
|
|
42
|
+
case 14:
|
|
43
|
+
{
|
|
44
|
+
this.k = c;
|
|
45
|
+
let f = a;
|
|
46
|
+
f.svgPath = SvgIconRegistry.instance.getSvgPathString(this.j, this.k);
|
|
47
|
+
}
|
|
48
|
+
return;
|
|
49
|
+
case 16:
|
|
50
|
+
d.i = EnumUtil.getEnumValue(BaseControlTheme_$type, c);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
super.setValue(a, b, c);
|
|
54
|
+
}
|
|
55
|
+
getTargetForBuildInProperty(a, b) {
|
|
56
|
+
switch (b) {
|
|
57
|
+
case 13:
|
|
58
|
+
case 14: return this.i;
|
|
59
|
+
}
|
|
60
|
+
return super.getTargetForBuildInProperty(a, b);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
XIconButtonBridge.$t = /*@__PURE__*/ markType(XIconButtonBridge, 'XIconButtonBridge', XButtonBridge.$);
|
|
64
|
+
return XIconButtonBridge;
|
|
65
|
+
})();
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { XComponentBridge } from "./XComponentBridge";
|
|
8
|
+
import { typeCast, runOn, delegateCombine, delegateRemove, enumGetBox, EnumUtil, markType } from "igniteui-webcomponents-core";
|
|
9
|
+
import { XInput } from "./XInput";
|
|
10
|
+
import { NativeUIInputChangingEventArgs } from "igniteui-webcomponents-core";
|
|
11
|
+
import { NativeUIDisplayDensity_$type } from "igniteui-webcomponents-core";
|
|
12
|
+
import { NativeUIInputDisplayType_$type } from "igniteui-webcomponents-core";
|
|
13
|
+
import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
|
|
14
|
+
import { NativeUIInputType_$type } from "igniteui-webcomponents-core";
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export let XInputBridge = /*@__PURE__*/ (() => {
|
|
19
|
+
class XInputBridge extends XComponentBridge {
|
|
20
|
+
constructor(a) {
|
|
21
|
+
super(a);
|
|
22
|
+
this.e = null;
|
|
23
|
+
this.d = null;
|
|
24
|
+
this.g = null;
|
|
25
|
+
this.f = null;
|
|
26
|
+
}
|
|
27
|
+
addHandler(a, b, c, d) {
|
|
28
|
+
let e = a;
|
|
29
|
+
let f = typeCast(XInput.$, e.inputs._inner[0]);
|
|
30
|
+
switch (c) {
|
|
31
|
+
case 0:
|
|
32
|
+
f.changing = delegateCombine(f.changing, runOn(this, this.i));
|
|
33
|
+
this.e = d;
|
|
34
|
+
this.g = b;
|
|
35
|
+
break;
|
|
36
|
+
case 2:
|
|
37
|
+
f.change = delegateCombine(f.change, runOn(this, this.h));
|
|
38
|
+
this.d = d;
|
|
39
|
+
this.f = b;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
removeHandler(a, b, c, d) {
|
|
44
|
+
let e = a;
|
|
45
|
+
let f = typeCast(XInput.$, e.inputs._inner[0]);
|
|
46
|
+
switch (c) {
|
|
47
|
+
case 0:
|
|
48
|
+
f.changing = delegateRemove(f.changing, runOn(this, this.i));
|
|
49
|
+
this.e = null;
|
|
50
|
+
this.g = null;
|
|
51
|
+
break;
|
|
52
|
+
case 2:
|
|
53
|
+
f.change = delegateRemove(f.change, runOn(this, this.h));
|
|
54
|
+
this.d = null;
|
|
55
|
+
this.f = null;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
i(a, b) {
|
|
60
|
+
if (this.e != null) {
|
|
61
|
+
let c = new NativeUIInputChangingEventArgs();
|
|
62
|
+
this.e(this.g, c);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
h(a, b) {
|
|
66
|
+
if (this.d != null) {
|
|
67
|
+
let c = new NativeUIInputChangingEventArgs();
|
|
68
|
+
this.d(this.f, c);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
getValue(a, b) {
|
|
72
|
+
let c = a;
|
|
73
|
+
let d = typeCast(XInput.$, c.inputs._inner[0]);
|
|
74
|
+
switch (b) {
|
|
75
|
+
case 2: return d.cm;
|
|
76
|
+
case 1:
|
|
77
|
+
switch (c.n) {
|
|
78
|
+
case 0: return enumGetBox(NativeUIDisplayDensity_$type, 0);
|
|
79
|
+
case 1: return enumGetBox(NativeUIDisplayDensity_$type, 1);
|
|
80
|
+
case 3: return enumGetBox(NativeUIDisplayDensity_$type, 2);
|
|
81
|
+
case 2: return enumGetBox(NativeUIDisplayDensity_$type, 3);
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
case 0:
|
|
85
|
+
switch (c.d) {
|
|
86
|
+
case 2: return enumGetBox(NativeUIInputDisplayType_$type, 1);
|
|
87
|
+
case 1: return enumGetBox(NativeUIInputDisplayType_$type, 2);
|
|
88
|
+
case 0: return enumGetBox(NativeUIInputDisplayType_$type, 0);
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
case 16: return enumGetBox(BaseControlTheme_$type, c.j);
|
|
92
|
+
case 17:
|
|
93
|
+
switch (d.b6) {
|
|
94
|
+
case "text": return enumGetBox(NativeUIInputType_$type, 0);
|
|
95
|
+
case "number": return enumGetBox(NativeUIInputType_$type, 1);
|
|
96
|
+
}
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
setValue(a, b, c) {
|
|
102
|
+
let d = a;
|
|
103
|
+
let e = typeCast(XInput.$, d.inputs._inner[0]);
|
|
104
|
+
switch (b) {
|
|
105
|
+
case 2:
|
|
106
|
+
e.cm = c == null ? null : c.toString();
|
|
107
|
+
break;
|
|
108
|
+
case 1:
|
|
109
|
+
switch (EnumUtil.getEnumValue(NativeUIDisplayDensity_$type, c)) {
|
|
110
|
+
case 0:
|
|
111
|
+
d.n = 0;
|
|
112
|
+
break;
|
|
113
|
+
case 1:
|
|
114
|
+
d.n = 1;
|
|
115
|
+
break;
|
|
116
|
+
case 2:
|
|
117
|
+
d.n = 3;
|
|
118
|
+
break;
|
|
119
|
+
case 3:
|
|
120
|
+
d.n = 2;
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
case 0:
|
|
125
|
+
switch (EnumUtil.getEnumValue(NativeUIInputDisplayType_$type, c)) {
|
|
126
|
+
case 1:
|
|
127
|
+
d.d = 2;
|
|
128
|
+
break;
|
|
129
|
+
case 2:
|
|
130
|
+
d.d = 1;
|
|
131
|
+
break;
|
|
132
|
+
case 0:
|
|
133
|
+
d.d = 0;
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
break;
|
|
137
|
+
case 16:
|
|
138
|
+
d.j = EnumUtil.getEnumValue(BaseControlTheme_$type, c);
|
|
139
|
+
break;
|
|
140
|
+
case 17:
|
|
141
|
+
switch (EnumUtil.getEnumValue(NativeUIInputType_$type, c)) {
|
|
142
|
+
case 0:
|
|
143
|
+
e.b6 = "text";
|
|
144
|
+
break;
|
|
145
|
+
case 1:
|
|
146
|
+
e.b6 = "number";
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
getTargetForProperty(a, b) {
|
|
153
|
+
switch (a) {
|
|
154
|
+
case 9:
|
|
155
|
+
case 10: return b;
|
|
156
|
+
}
|
|
157
|
+
return super.getTargetForProperty(a, b);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
XInputBridge.$t = /*@__PURE__*/ markType(XInputBridge, 'XInputBridge', XComponentBridge.$);
|
|
161
|
+
return XInputBridge;
|
|
162
|
+
})();
|