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