igniteui-webcomponents-inputs 4.2.4-alpha → 4.3.0-beta.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/bundles/igniteui-webcomponents-inputs.umd.js +10205 -7880
- package/bundles/igniteui-webcomponents-inputs.umd.min.js +1 -1
- package/esm2015/lib/ButtonGroupView_combined.js +98 -98
- package/esm2015/lib/ButtonView_combined.js +2206 -1799
- package/esm2015/lib/CalendarView_combined.js +156 -156
- package/esm2015/lib/CheckboxView_combined.js +532 -458
- package/esm2015/lib/DatePickerView_combined.js +398 -364
- package/esm2015/lib/IconView_combined.js +553 -355
- package/esm2015/lib/InputGroupView_combined.js +2432 -2152
- package/esm2015/lib/NativeUIXInputsFactory.js +65 -23
- package/esm2015/lib/RippleView_combined.js +1 -1
- package/esm2015/lib/Theme.js +48 -0
- package/esm2015/lib/ThemeResolver.js +131 -7
- package/esm2015/lib/XButtonBridge.js +218 -22
- package/esm2015/lib/XCheckboxBridge.js +25 -16
- package/esm2015/lib/XComponentBridge.js +20 -6
- package/esm2015/lib/XIconBridge.js +93 -0
- package/esm2015/lib/XIconButtonBridge.js +45 -33
- package/esm2015/lib/XInputBridge.js +91 -38
- package/esm2015/lib/XPopupBridge.js +287 -0
- package/esm2015/lib/igc-date-picker-component.js +60 -58
- package/esm2015/lib/igc-x-button-component.js +694 -546
- package/esm2015/lib/igc-x-button-group-component.js +28 -28
- package/esm2015/lib/igc-x-calendar-component.js +16 -16
- package/esm2015/lib/igc-x-checkbox-component.js +77 -77
- package/esm2015/lib/igc-x-icon-component.js +239 -118
- package/esm2015/lib/igc-x-input-component.js +61 -43
- package/esm2015/lib/igc-x-input-group-component.js +576 -576
- package/esm2015/lib/igc-x-input-group-item-component.js +18 -18
- package/esm2015/lib/igc-x-ripple-component.js +35 -35
- package/esm2015/public_api.js +3 -0
- package/esm5/lib/ButtonClickEventArgs.js +2 -2
- package/esm5/lib/ButtonGroupSelectionChangedEventArgs.js +2 -2
- package/esm5/lib/ButtonGroupView_combined.js +176 -176
- package/esm5/lib/ButtonGroupVisualModelExport.js +2 -2
- package/esm5/lib/ButtonView_combined.js +2259 -1808
- package/esm5/lib/ButtonVisualModelExport.js +2 -2
- package/esm5/lib/CalendarView_combined.js +181 -181
- package/esm5/lib/CalendarVisualModelExport.js +2 -2
- package/esm5/lib/CheckboxChangeEventArgs.js +4 -4
- package/esm5/lib/CheckboxView_combined.js +561 -483
- package/esm5/lib/CheckboxVisualModelExport.js +2 -2
- package/esm5/lib/DatePickerView_combined.js +421 -383
- package/esm5/lib/DatePickerVisualModelExport.js +2 -2
- package/esm5/lib/DateTimeValueFormatter.js +2 -2
- package/esm5/lib/DayInfo.js +2 -2
- package/esm5/lib/ElevationHelper.js +2 -2
- package/esm5/lib/GotFocusEventArgs.js +2 -2
- package/esm5/lib/IconClickedEventArgs.js +2 -2
- package/esm5/lib/IconView_combined.js +600 -362
- package/esm5/lib/IconVisualModelExport.js +3 -3
- package/esm5/lib/InputChangeEventArgs.js +4 -4
- package/esm5/lib/InputGroupView_combined.js +2534 -2246
- package/esm5/lib/InputGroupVisualModelExport.js +2 -2
- package/esm5/lib/InputVisualModelExport.js +2 -2
- package/esm5/lib/LabelVisualModelExport.js +2 -2
- package/esm5/lib/LostFocusEventArgs.js +2 -2
- package/esm5/lib/MaskOptions.js +2 -2
- package/esm5/lib/MaskParsingService.js +5 -5
- package/esm5/lib/NativeUIXInputsFactory.js +69 -27
- package/esm5/lib/PrefixVisualModelExport.js +2 -2
- package/esm5/lib/Replaced.js +2 -2
- package/esm5/lib/RippleView_combined.js +17 -17
- package/esm5/lib/RippleVisualModelExport.js +2 -2
- package/esm5/lib/SelectedValueChangedEventArgs.js +4 -4
- package/esm5/lib/SuffixVisualModelExport.js +2 -2
- package/esm5/lib/TextElementsVisualModelExport.js +2 -2
- package/esm5/lib/Theme.js +58 -0
- package/esm5/lib/ThemeResolver.js +137 -11
- package/esm5/lib/XButtonBridge.js +220 -24
- package/esm5/lib/XButtonGroupButtonCollection.js +2 -2
- package/esm5/lib/XCheckboxBridge.js +27 -18
- package/esm5/lib/XComponentBridge.js +26 -8
- package/esm5/lib/XIconBridge.js +95 -0
- package/esm5/lib/XIconButtonBridge.js +47 -35
- package/esm5/lib/XInputBridge.js +93 -40
- package/esm5/lib/XPopupBridge.js +289 -0
- package/esm5/lib/igc-button-click-event-args.js +1 -1
- package/esm5/lib/igc-button-group-selection-changed-event-args.js +1 -1
- package/esm5/lib/igc-checkbox-change-event-args.js +3 -3
- package/esm5/lib/igc-date-picker-component.js +80 -78
- package/esm5/lib/igc-got-focus-event-args.js +1 -1
- package/esm5/lib/igc-input-change-event-args.js +3 -3
- package/esm5/lib/igc-lost-focus-event-args.js +1 -1
- package/esm5/lib/igc-selected-value-changed-event-args.js +3 -3
- package/esm5/lib/igc-x-button-component.js +908 -710
- package/esm5/lib/igc-x-button-group-button-collection.js +2 -2
- package/esm5/lib/igc-x-button-group-component.js +73 -73
- package/esm5/lib/igc-x-calendar-component.js +30 -30
- package/esm5/lib/igc-x-checkbox-component.js +117 -117
- package/esm5/lib/igc-x-icon-component.js +297 -136
- package/esm5/lib/igc-x-input-component.js +104 -78
- package/esm5/lib/igc-x-input-group-component.js +716 -716
- package/esm5/lib/igc-x-input-group-input-collection.js +2 -2
- package/esm5/lib/igc-x-input-group-item-component.js +6 -6
- package/esm5/lib/igc-x-label-component.js +30 -30
- package/esm5/lib/igc-x-prefix-component.js +9 -9
- package/esm5/lib/igc-x-ripple-component.js +19 -19
- package/esm5/lib/igc-x-suffix-component.js +9 -9
- package/esm5/public_api.js +3 -0
- package/fesm2015/igniteui-webcomponents-inputs.js +9194 -7084
- package/fesm5/igniteui-webcomponents-inputs.js +10090 -7768
- package/lib/ButtonGroupView_combined.d.ts +136 -70
- package/lib/ButtonView_combined.d.ts +609 -583
- package/lib/CalendarView_combined.d.ts +43 -22
- package/lib/CheckboxChangeEventArgs.d.ts +4 -2
- package/lib/CheckboxView_combined.d.ts +150 -117
- package/lib/DatePickerView_combined.d.ts +109 -81
- package/lib/IconView_combined.d.ts +164 -93
- package/lib/IconVisualModelExport.d.ts +2 -1
- package/lib/InputChangeEventArgs.d.ts +4 -2
- package/lib/InputGroupView_combined.d.ts +771 -771
- package/lib/NativeUIXInputsFactory.d.ts +6 -4
- package/lib/RippleView_combined.d.ts +19 -10
- package/lib/SelectedValueChangedEventArgs.d.ts +4 -2
- package/lib/Theme.d.ts +15 -0
- package/lib/ThemeResolver.d.ts +44 -6
- package/lib/XButtonBridge.d.ts +23 -5
- package/lib/XCheckboxBridge.d.ts +3 -3
- package/lib/XComponentBridge.d.ts +2 -1
- package/lib/XIconBridge.d.ts +14 -0
- package/lib/XIconButtonBridge.d.ts +4 -4
- package/lib/XInputBridge.d.ts +11 -7
- package/lib/XPopupBridge.d.ts +52 -0
- package/lib/igc-button-click-event-args.d.ts +1 -1
- package/lib/igc-button-group-selection-changed-event-args.d.ts +1 -1
- package/lib/igc-checkbox-change-event-args.d.ts +5 -3
- package/lib/igc-date-picker-component.d.ts +65 -34
- package/lib/igc-got-focus-event-args.d.ts +1 -1
- package/lib/igc-input-change-event-args.d.ts +5 -3
- package/lib/igc-lost-focus-event-args.d.ts +1 -1
- package/lib/igc-selected-value-changed-event-args.d.ts +5 -3
- package/lib/igc-x-button-component.d.ts +399 -173
- package/lib/igc-x-button-group-component.d.ts +136 -70
- package/lib/igc-x-calendar-component.d.ts +53 -28
- package/lib/igc-x-checkbox-component.d.ts +71 -37
- package/lib/igc-x-icon-component.d.ts +140 -44
- package/lib/igc-x-input-component.d.ts +69 -32
- package/lib/igc-x-input-group-component.d.ts +325 -165
- package/lib/igc-x-input-group-item-component.d.ts +5 -4
- package/lib/igc-x-label-component.d.ts +52 -27
- package/lib/igc-x-prefix-component.d.ts +10 -6
- package/lib/igc-x-ripple-component.d.ts +31 -17
- package/lib/igc-x-suffix-component.d.ts +10 -6
- package/package.json +2 -2
- package/public_api.d.ts +3 -0
|
@@ -18,8 +18,11 @@ import { XCheckbox } from "./XCheckbox";
|
|
|
18
18
|
import { XCheckboxBridge } from "./XCheckboxBridge";
|
|
19
19
|
import { NativeUICheckbox } from "igniteui-webcomponents-core";
|
|
20
20
|
import { XIcon } from "./XIcon";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
21
|
+
import { XIconBridge } from "./XIconBridge";
|
|
22
|
+
import { NativeUIIcon } from "igniteui-webcomponents-core";
|
|
23
|
+
import { XPopupBridge } from "./XPopupBridge";
|
|
24
|
+
import { NativeUIPopup } from "igniteui-webcomponents-core";
|
|
25
|
+
import { Popup } from "igniteui-webcomponents-core";
|
|
23
26
|
/**
|
|
24
27
|
* @hidden
|
|
25
28
|
*/
|
|
@@ -35,8 +38,8 @@ export let NativeUIXInputsFactory = /*@__PURE__*/ (() => {
|
|
|
35
38
|
}
|
|
36
39
|
return NativeUIXInputsFactory.a;
|
|
37
40
|
}
|
|
38
|
-
static
|
|
39
|
-
NativeUIComponent.
|
|
41
|
+
static j() {
|
|
42
|
+
NativeUIComponent.ap(NativeUIXInputsFactory.b);
|
|
40
43
|
}
|
|
41
44
|
get flavor() {
|
|
42
45
|
return this.c;
|
|
@@ -50,10 +53,16 @@ export let NativeUIXInputsFactory = /*@__PURE__*/ (() => {
|
|
|
50
53
|
this.e(a, c);
|
|
51
54
|
break;
|
|
52
55
|
case 10:
|
|
53
|
-
this.
|
|
56
|
+
this.g(a, c);
|
|
54
57
|
break;
|
|
55
58
|
case 2:
|
|
56
|
-
this.
|
|
59
|
+
this.h(a, c);
|
|
60
|
+
break;
|
|
61
|
+
case 11:
|
|
62
|
+
this.f(a, c);
|
|
63
|
+
break;
|
|
64
|
+
case 12:
|
|
65
|
+
this.i(a, c);
|
|
57
66
|
break;
|
|
58
67
|
}
|
|
59
68
|
}
|
|
@@ -66,10 +75,12 @@ export let NativeUIXInputsFactory = /*@__PURE__*/ (() => {
|
|
|
66
75
|
case 6: return true;
|
|
67
76
|
case 10: return true;
|
|
68
77
|
case 2: return true;
|
|
78
|
+
case 11: return true;
|
|
79
|
+
case 12: return true;
|
|
69
80
|
}
|
|
70
81
|
return false;
|
|
71
82
|
}
|
|
72
|
-
|
|
83
|
+
h(a, b) {
|
|
73
84
|
let c = a;
|
|
74
85
|
let d = c.createElement("div");
|
|
75
86
|
let e = c.getSubRenderer(d);
|
|
@@ -86,7 +97,7 @@ export let NativeUIXInputsFactory = /*@__PURE__*/ (() => {
|
|
|
86
97
|
f.inputs.add(j);
|
|
87
98
|
let l = new XInputBridge(f);
|
|
88
99
|
let m = new NativeUIInput();
|
|
89
|
-
m.
|
|
100
|
+
m.al = d;
|
|
90
101
|
m.d = l;
|
|
91
102
|
b(m);
|
|
92
103
|
}
|
|
@@ -96,10 +107,11 @@ export let NativeUIXInputsFactory = /*@__PURE__*/ (() => {
|
|
|
96
107
|
let e = c.getSubRenderer(d);
|
|
97
108
|
let f = new XButton();
|
|
98
109
|
f.provideContainer(e);
|
|
110
|
+
f.ff = "none";
|
|
99
111
|
let g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
100
112
|
let h = new XButtonBridge(f);
|
|
101
113
|
let i = new NativeUIButton();
|
|
102
|
-
i.
|
|
114
|
+
i.al = d;
|
|
103
115
|
i.d = h;
|
|
104
116
|
b(i);
|
|
105
117
|
}
|
|
@@ -112,29 +124,59 @@ export let NativeUIXInputsFactory = /*@__PURE__*/ (() => {
|
|
|
112
124
|
let g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
113
125
|
let h = new XCheckboxBridge(f);
|
|
114
126
|
let i = new NativeUICheckbox();
|
|
115
|
-
i.
|
|
127
|
+
i.al = d;
|
|
116
128
|
i.d = h;
|
|
117
129
|
b(i);
|
|
118
130
|
}
|
|
131
|
+
g(a, b) {
|
|
132
|
+
let c = a;
|
|
133
|
+
let d = c.createElement("div");
|
|
134
|
+
let e = c.getSubRenderer(d);
|
|
135
|
+
let f = new XIcon();
|
|
136
|
+
f.provideContainer(e);
|
|
137
|
+
let g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
138
|
+
let h = new XIconBridge(f);
|
|
139
|
+
let i = new NativeUIIcon();
|
|
140
|
+
i.al = d;
|
|
141
|
+
i.d = h;
|
|
142
|
+
let j = c.createElement("div");
|
|
143
|
+
let k = c.getSubRenderer(j);
|
|
144
|
+
let l = new XButton();
|
|
145
|
+
l.provideContainer(k);
|
|
146
|
+
l.e = 4;
|
|
147
|
+
l.ff = "none";
|
|
148
|
+
let m = k.getExternal(l, k.rootWrapper, k.getExternal(l, null, null));
|
|
149
|
+
let n = new XButtonBridge(l);
|
|
150
|
+
let o = new NativeUIButton();
|
|
151
|
+
o.al = j;
|
|
152
|
+
o.d = n;
|
|
153
|
+
o.bj = i;
|
|
154
|
+
b(o);
|
|
155
|
+
}
|
|
119
156
|
f(a, b) {
|
|
120
157
|
let c = a;
|
|
121
158
|
let d = c.createElement("div");
|
|
122
159
|
let e = c.getSubRenderer(d);
|
|
123
|
-
let f = new
|
|
160
|
+
let f = new XIcon();
|
|
124
161
|
f.provideContainer(e);
|
|
125
|
-
f.e = 4;
|
|
126
162
|
let g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
127
|
-
let h =
|
|
128
|
-
let i =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
let
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
163
|
+
let h = new XIconBridge(f);
|
|
164
|
+
let i = new NativeUIIcon();
|
|
165
|
+
i.al = d;
|
|
166
|
+
i.d = h;
|
|
167
|
+
b(i);
|
|
168
|
+
}
|
|
169
|
+
i(a, b) {
|
|
170
|
+
let c = a;
|
|
171
|
+
let d = c.createElement("div");
|
|
172
|
+
let e = c.getSubRenderer(d);
|
|
173
|
+
let f = new Popup();
|
|
174
|
+
f.provideRenderer(e);
|
|
175
|
+
let g = new XPopupBridge(f);
|
|
176
|
+
let h = new NativeUIPopup();
|
|
177
|
+
h.al = d;
|
|
178
|
+
h.d = g;
|
|
179
|
+
b(h);
|
|
138
180
|
}
|
|
139
181
|
}
|
|
140
182
|
NativeUIXInputsFactory.$t = /*@__PURE__*/ markType(NativeUIXInputsFactory, 'NativeUIXInputsFactory', Base.$, [INativeUIElementFactory_$type]);
|
|
@@ -104,7 +104,7 @@ export let RippleView = /*@__PURE__*/ (() => {
|
|
|
104
104
|
d.setStyleProperty("pointer-events", "none");
|
|
105
105
|
d.setStyleProperty("border-radius", c + "px");
|
|
106
106
|
d.setStyleProperty("opacity", ".5");
|
|
107
|
-
NativeUI.
|
|
107
|
+
NativeUI.ad(d, ((() => {
|
|
108
108
|
let $ret = new ScaleTransform();
|
|
109
109
|
$ret.l = 0.3;
|
|
110
110
|
$ret.m = 0.3;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export let Theme = /*@__PURE__*/ (() => {
|
|
12
|
+
class Theme extends Base {
|
|
13
|
+
get c() {
|
|
14
|
+
return this.a;
|
|
15
|
+
}
|
|
16
|
+
constructor(a, ..._rest) {
|
|
17
|
+
super();
|
|
18
|
+
this.b = null;
|
|
19
|
+
this.a = null;
|
|
20
|
+
a = (a == void 0) ? 0 : a;
|
|
21
|
+
switch (a) {
|
|
22
|
+
case 0:
|
|
23
|
+
{
|
|
24
|
+
let c = _rest[0];
|
|
25
|
+
this.b = c;
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
28
|
+
case 1:
|
|
29
|
+
{
|
|
30
|
+
let c = _rest[0];
|
|
31
|
+
let d = _rest[1];
|
|
32
|
+
let e = [c];
|
|
33
|
+
{
|
|
34
|
+
let g = e[0];
|
|
35
|
+
this.b = g;
|
|
36
|
+
}
|
|
37
|
+
this.a = d;
|
|
38
|
+
}
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
item(a) {
|
|
43
|
+
return this.b.item(a);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Theme.$t = /*@__PURE__*/ markType(Theme, 'Theme');
|
|
47
|
+
return Theme;
|
|
48
|
+
})();
|
|
@@ -4,48 +4,172 @@ https://www.infragistics.com/legal/license/igultimate-la
|
|
|
4
4
|
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
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
6
|
*/
|
|
7
|
-
import { Base, markType } from "igniteui-webcomponents-core";
|
|
7
|
+
import { Base, typeGetValue, EnumUtil, markType } from "igniteui-webcomponents-core";
|
|
8
|
+
import { ElevationMode_$type } from "igniteui-webcomponents-core";
|
|
9
|
+
import { Theme } from "./Theme";
|
|
8
10
|
/**
|
|
9
11
|
* @hidden
|
|
10
12
|
*/
|
|
11
13
|
export let ThemeResolver = /*@__PURE__*/ (() => {
|
|
12
14
|
class ThemeResolver extends Base {
|
|
13
|
-
static
|
|
15
|
+
static ah(a, b, c) {
|
|
14
16
|
if (a == 1) {
|
|
15
17
|
return c;
|
|
16
18
|
}
|
|
17
19
|
return b;
|
|
18
20
|
}
|
|
19
|
-
static
|
|
21
|
+
static r(a, b, c) {
|
|
20
22
|
if (a == 1) {
|
|
21
23
|
return c;
|
|
22
24
|
}
|
|
23
25
|
return b;
|
|
24
26
|
}
|
|
25
|
-
static
|
|
27
|
+
static m(a, b, c) {
|
|
26
28
|
if (a == 1) {
|
|
27
29
|
return c;
|
|
28
30
|
}
|
|
29
31
|
return b;
|
|
30
32
|
}
|
|
31
|
-
static
|
|
33
|
+
static ac(a, b, c) {
|
|
32
34
|
if (a == 1) {
|
|
33
35
|
return c;
|
|
34
36
|
}
|
|
35
37
|
return b;
|
|
36
38
|
}
|
|
37
|
-
static
|
|
39
|
+
static am(a, b, c) {
|
|
38
40
|
if (a == 1) {
|
|
39
41
|
return c;
|
|
40
42
|
}
|
|
41
43
|
return b;
|
|
42
44
|
}
|
|
43
|
-
static
|
|
45
|
+
static g(a, b, c) {
|
|
44
46
|
if (a == 1) {
|
|
45
47
|
return c;
|
|
46
48
|
}
|
|
47
49
|
return b;
|
|
48
50
|
}
|
|
51
|
+
static a(a) {
|
|
52
|
+
return new Theme(0, a);
|
|
53
|
+
}
|
|
54
|
+
static ag(a, b, c) {
|
|
55
|
+
return b.ae(a, c);
|
|
56
|
+
}
|
|
57
|
+
static af(a, b, c, d) {
|
|
58
|
+
return b.ad(a, c, d);
|
|
59
|
+
}
|
|
60
|
+
static q(a, b, c) {
|
|
61
|
+
return b.o(a, c);
|
|
62
|
+
}
|
|
63
|
+
static p(a, b, c, d) {
|
|
64
|
+
return b.n(a, c, d);
|
|
65
|
+
}
|
|
66
|
+
static l(a, b, c) {
|
|
67
|
+
return b.j(a, c);
|
|
68
|
+
}
|
|
69
|
+
static k(a, b, c, d) {
|
|
70
|
+
return b.i(a, c, d);
|
|
71
|
+
}
|
|
72
|
+
static x(a, b, c) {
|
|
73
|
+
return b.v(a, c);
|
|
74
|
+
}
|
|
75
|
+
static w(a, b, c, d) {
|
|
76
|
+
return b.u(a, c, d);
|
|
77
|
+
}
|
|
78
|
+
static f(a, b, c) {
|
|
79
|
+
return b.d(a, c);
|
|
80
|
+
}
|
|
81
|
+
static e(a, b, c, d) {
|
|
82
|
+
return b.c(a, c, d);
|
|
83
|
+
}
|
|
84
|
+
static ab(a, b, c) {
|
|
85
|
+
return b.z(a, c);
|
|
86
|
+
}
|
|
87
|
+
static aa(a, b, c, d) {
|
|
88
|
+
return b.y(a, c, d);
|
|
89
|
+
}
|
|
90
|
+
static al(a, b, c) {
|
|
91
|
+
return b.aj(a, c);
|
|
92
|
+
}
|
|
93
|
+
static ak(a, b, c, d) {
|
|
94
|
+
return b.ai(a, c, d);
|
|
95
|
+
}
|
|
96
|
+
constructor(a, ..._rest) {
|
|
97
|
+
super();
|
|
98
|
+
this.b = 0;
|
|
99
|
+
this.h = null;
|
|
100
|
+
a = (a == void 0) ? 0 : a;
|
|
101
|
+
switch (a) {
|
|
102
|
+
case 0: break;
|
|
103
|
+
case 1:
|
|
104
|
+
{
|
|
105
|
+
let c = _rest[0];
|
|
106
|
+
let d = _rest[1];
|
|
107
|
+
this.h = c;
|
|
108
|
+
this.b = d;
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
t(a, b) {
|
|
114
|
+
if (this.h.containsKey(a)) {
|
|
115
|
+
return this.h.item(a).item(b);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return this.h.item(this.b).item(b);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
s(a, b, c) {
|
|
122
|
+
if (this.h.containsKey(a)) {
|
|
123
|
+
let d = this.h.item(a).c;
|
|
124
|
+
return d.item(b).item(c);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
let e = this.h.item(this.b).c;
|
|
128
|
+
return e.item(b).item(c);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
ae(a, b) {
|
|
132
|
+
return this.t(a, b);
|
|
133
|
+
}
|
|
134
|
+
ad(a, b, c) {
|
|
135
|
+
return this.s(a, b, c);
|
|
136
|
+
}
|
|
137
|
+
o(a, b) {
|
|
138
|
+
return typeGetValue(this.t(a, b));
|
|
139
|
+
}
|
|
140
|
+
n(a, b, c) {
|
|
141
|
+
return typeGetValue(this.s(a, b, c));
|
|
142
|
+
}
|
|
143
|
+
j(a, b) {
|
|
144
|
+
return this.t(a, b);
|
|
145
|
+
}
|
|
146
|
+
i(a, b, c) {
|
|
147
|
+
return this.s(a, b, c);
|
|
148
|
+
}
|
|
149
|
+
v(a, b) {
|
|
150
|
+
return this.t(a, b);
|
|
151
|
+
}
|
|
152
|
+
u(a, b, c) {
|
|
153
|
+
return this.s(a, b, c);
|
|
154
|
+
}
|
|
155
|
+
d(a, b) {
|
|
156
|
+
return EnumUtil.getEnumValue(ElevationMode_$type, this.t(a, b));
|
|
157
|
+
}
|
|
158
|
+
c(a, b, c) {
|
|
159
|
+
return EnumUtil.getEnumValue(ElevationMode_$type, this.s(a, b, c));
|
|
160
|
+
}
|
|
161
|
+
z(a, b) {
|
|
162
|
+
return this.t(a, b);
|
|
163
|
+
}
|
|
164
|
+
y(a, b, c) {
|
|
165
|
+
return this.s(a, b, c);
|
|
166
|
+
}
|
|
167
|
+
aj(a, b) {
|
|
168
|
+
return this.t(a, b);
|
|
169
|
+
}
|
|
170
|
+
ai(a, b, c) {
|
|
171
|
+
return this.s(a, b, c);
|
|
172
|
+
}
|
|
49
173
|
}
|
|
50
174
|
ThemeResolver.$t = /*@__PURE__*/ markType(ThemeResolver, 'ThemeResolver');
|
|
51
175
|
return ThemeResolver;
|
|
@@ -8,7 +8,12 @@ import { XComponentBridge } from "./XComponentBridge";
|
|
|
8
8
|
import { runOn, delegateCombine, delegateRemove, typeCast, EnumUtil, enumGetBox, markType } from "igniteui-webcomponents-core";
|
|
9
9
|
import { NativeUIComponent } from "igniteui-webcomponents-core";
|
|
10
10
|
import { NativeUIButtonClickedEventArgs } from "igniteui-webcomponents-core";
|
|
11
|
+
import { NativeUIMouseEventArgs } from "igniteui-webcomponents-core";
|
|
12
|
+
import { NativeUIFocusEventArgs } from "igniteui-webcomponents-core";
|
|
11
13
|
import { NativeUIDisplayDensity_$type } from "igniteui-webcomponents-core";
|
|
14
|
+
import { NativeUIButtonDisplayType_$type } from "igniteui-webcomponents-core";
|
|
15
|
+
import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
|
|
16
|
+
import { Thickness } from "igniteui-webcomponents-core";
|
|
12
17
|
/**
|
|
13
18
|
* @hidden
|
|
14
19
|
*/
|
|
@@ -16,18 +21,46 @@ export let XButtonBridge = /*@__PURE__*/ (() => {
|
|
|
16
21
|
class XButtonBridge extends XComponentBridge {
|
|
17
22
|
constructor(a) {
|
|
18
23
|
super(a);
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
24
|
+
this.ac = null;
|
|
25
|
+
this.aa = null;
|
|
26
|
+
this.u = null;
|
|
27
|
+
this.z = null;
|
|
28
|
+
this.x = null;
|
|
29
|
+
this.ae = null;
|
|
30
|
+
this.y = null;
|
|
31
|
+
this.af = null;
|
|
32
|
+
this.v = null;
|
|
33
|
+
this.ab = null;
|
|
34
|
+
this.w = null;
|
|
35
|
+
this.ad = null;
|
|
23
36
|
}
|
|
24
37
|
addHandler(a, b, c, d) {
|
|
25
38
|
let e = a;
|
|
26
39
|
switch (c) {
|
|
27
40
|
case 1:
|
|
28
|
-
e.clicked = delegateCombine(e.clicked, runOn(this, this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
41
|
+
e.clicked = delegateCombine(e.clicked, runOn(this, this.ag));
|
|
42
|
+
this.u = d;
|
|
43
|
+
this.z = b;
|
|
44
|
+
break;
|
|
45
|
+
case 7:
|
|
46
|
+
e.mouseEnter = delegateCombine(e.mouseEnter, runOn(this, this.aj));
|
|
47
|
+
this.x = d;
|
|
48
|
+
this.ae = b;
|
|
49
|
+
break;
|
|
50
|
+
case 8:
|
|
51
|
+
e.mouseLeave = delegateCombine(e.mouseLeave, runOn(this, this.ak));
|
|
52
|
+
this.y = d;
|
|
53
|
+
this.af = b;
|
|
54
|
+
break;
|
|
55
|
+
case 12:
|
|
56
|
+
e.gotFocus = delegateCombine(e.gotFocus, runOn(this, this.ah));
|
|
57
|
+
this.v = d;
|
|
58
|
+
this.ab = b;
|
|
59
|
+
break;
|
|
60
|
+
case 13:
|
|
61
|
+
e.lostFocus = delegateCombine(e.lostFocus, runOn(this, this.ai));
|
|
62
|
+
this.w = d;
|
|
63
|
+
this.ad = b;
|
|
31
64
|
break;
|
|
32
65
|
}
|
|
33
66
|
}
|
|
@@ -35,16 +68,52 @@ export let XButtonBridge = /*@__PURE__*/ (() => {
|
|
|
35
68
|
let e = a;
|
|
36
69
|
switch (c) {
|
|
37
70
|
case 1:
|
|
38
|
-
e.clicked = delegateRemove(e.clicked, runOn(this, this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
71
|
+
e.clicked = delegateRemove(e.clicked, runOn(this, this.ag));
|
|
72
|
+
this.u = null;
|
|
73
|
+
this.z = null;
|
|
74
|
+
break;
|
|
75
|
+
case 7:
|
|
76
|
+
e.mouseEnter = delegateRemove(e.mouseEnter, runOn(this, this.aj));
|
|
77
|
+
this.x = null;
|
|
78
|
+
this.ae = null;
|
|
79
|
+
break;
|
|
80
|
+
case 8:
|
|
81
|
+
e.mouseLeave = delegateRemove(e.mouseLeave, runOn(this, this.ak));
|
|
82
|
+
this.y = null;
|
|
83
|
+
this.af = null;
|
|
41
84
|
break;
|
|
42
85
|
}
|
|
43
86
|
}
|
|
44
|
-
|
|
45
|
-
if (this.
|
|
87
|
+
ag(a, b) {
|
|
88
|
+
if (this.u != null) {
|
|
46
89
|
let c = new NativeUIButtonClickedEventArgs();
|
|
47
|
-
this.
|
|
90
|
+
this.u(this.z, c);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
aj(a, b) {
|
|
94
|
+
if (this.x != null) {
|
|
95
|
+
let c = new NativeUIMouseEventArgs();
|
|
96
|
+
this.x(this.ae, c);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
ak(a, b) {
|
|
100
|
+
if (this.y != null) {
|
|
101
|
+
let c = new NativeUIMouseEventArgs();
|
|
102
|
+
this.y(this.af, c);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
ah(a, b) {
|
|
106
|
+
if (this.v != null) {
|
|
107
|
+
this.v(this.ab, new NativeUIFocusEventArgs());
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
ai(a, b) {
|
|
111
|
+
if (this.w != null) {
|
|
112
|
+
this.w(this.ad, ((() => {
|
|
113
|
+
let $ret = new NativeUIFocusEventArgs();
|
|
114
|
+
$ret.a = b.a;
|
|
115
|
+
return $ret;
|
|
116
|
+
})()));
|
|
48
117
|
}
|
|
49
118
|
}
|
|
50
119
|
setValue(a, b, c) {
|
|
@@ -53,48 +122,175 @@ export let XButtonBridge = /*@__PURE__*/ (() => {
|
|
|
53
122
|
case 3:
|
|
54
123
|
d.clearButtonContent();
|
|
55
124
|
if (typeCast(NativeUIComponent.$, c) !== null) {
|
|
56
|
-
this.
|
|
57
|
-
d.appendButtonContent(this.
|
|
125
|
+
this.ac = c;
|
|
126
|
+
d.appendButtonContent(this.ac.al);
|
|
58
127
|
}
|
|
59
128
|
else {
|
|
129
|
+
this.ac = c;
|
|
60
130
|
let e = d.view.k.createElement("span");
|
|
61
|
-
e.setText(
|
|
131
|
+
e.setText(this.ac == null ? null : this.ac.toString());
|
|
62
132
|
d.appendButtonContent(e);
|
|
63
133
|
}
|
|
64
134
|
break;
|
|
65
135
|
case 1:
|
|
66
136
|
switch (EnumUtil.getEnumValue(NativeUIDisplayDensity_$type, c)) {
|
|
67
137
|
case 0:
|
|
68
|
-
d.
|
|
138
|
+
d.r = 0;
|
|
69
139
|
break;
|
|
70
140
|
case 1:
|
|
71
|
-
d.
|
|
141
|
+
d.r = 1;
|
|
72
142
|
break;
|
|
73
143
|
case 2:
|
|
74
|
-
d.
|
|
144
|
+
d.r = 3;
|
|
75
145
|
break;
|
|
76
146
|
case 3:
|
|
77
|
-
d.
|
|
147
|
+
d.r = 2;
|
|
78
148
|
break;
|
|
79
149
|
}
|
|
80
150
|
break;
|
|
151
|
+
case 18:
|
|
152
|
+
d.n = EnumUtil.getEnumValue(BaseControlTheme_$type, c);
|
|
153
|
+
break;
|
|
154
|
+
case 54:
|
|
155
|
+
if (typeCast(NativeUIComponent.$, c) !== null) {
|
|
156
|
+
this.aa = c;
|
|
157
|
+
d.appendButtonContent(this.aa.al);
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
case 0:
|
|
161
|
+
switch (EnumUtil.getEnumValue(NativeUIButtonDisplayType_$type, c)) {
|
|
162
|
+
case 3:
|
|
163
|
+
d.e = 3;
|
|
164
|
+
break;
|
|
165
|
+
case 1:
|
|
166
|
+
d.e = 1;
|
|
167
|
+
break;
|
|
168
|
+
case 4:
|
|
169
|
+
d.e = 4;
|
|
170
|
+
break;
|
|
171
|
+
case 2:
|
|
172
|
+
d.e = 2;
|
|
173
|
+
break;
|
|
174
|
+
case 0:
|
|
175
|
+
d.e = 0;
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
break;
|
|
179
|
+
case 4:
|
|
180
|
+
d.at = c;
|
|
181
|
+
break;
|
|
182
|
+
case 32:
|
|
183
|
+
d.disabled = c;
|
|
184
|
+
break;
|
|
185
|
+
case 5:
|
|
186
|
+
d.ar = c;
|
|
187
|
+
break;
|
|
188
|
+
case 6:
|
|
189
|
+
d.az = !c;
|
|
190
|
+
break;
|
|
191
|
+
case 24:
|
|
192
|
+
d.p7 = c;
|
|
193
|
+
break;
|
|
194
|
+
case 55:
|
|
195
|
+
d.bi = c.left;
|
|
196
|
+
d.bk = c.top;
|
|
197
|
+
d.bj = c.right;
|
|
198
|
+
d.bh = c.bottom;
|
|
199
|
+
break;
|
|
200
|
+
case 57:
|
|
201
|
+
d.av = c;
|
|
202
|
+
break;
|
|
203
|
+
case 56:
|
|
204
|
+
d.as = c;
|
|
205
|
+
break;
|
|
206
|
+
case 58:
|
|
207
|
+
d.aq = c;
|
|
208
|
+
break;
|
|
81
209
|
}
|
|
82
210
|
}
|
|
83
211
|
getValue(a, b) {
|
|
84
212
|
let c = a;
|
|
85
213
|
switch (b) {
|
|
86
|
-
case 3:
|
|
214
|
+
case 3: return this.ac;
|
|
215
|
+
case 54: return this.aa;
|
|
87
216
|
case 1:
|
|
88
|
-
switch (c.
|
|
217
|
+
switch (c.r) {
|
|
89
218
|
case 0: return enumGetBox(NativeUIDisplayDensity_$type, 0);
|
|
90
219
|
case 1: return enumGetBox(NativeUIDisplayDensity_$type, 1);
|
|
91
220
|
case 3: return enumGetBox(NativeUIDisplayDensity_$type, 2);
|
|
92
221
|
case 2: return enumGetBox(NativeUIDisplayDensity_$type, 3);
|
|
93
222
|
}
|
|
94
223
|
break;
|
|
224
|
+
case 18: return enumGetBox(BaseControlTheme_$type, c.n);
|
|
225
|
+
case 0:
|
|
226
|
+
switch (c.e) {
|
|
227
|
+
case 3: return enumGetBox(NativeUIButtonDisplayType_$type, 3);
|
|
228
|
+
case 1: return enumGetBox(NativeUIButtonDisplayType_$type, 1);
|
|
229
|
+
case 4: return enumGetBox(NativeUIButtonDisplayType_$type, 4);
|
|
230
|
+
case 2: return enumGetBox(NativeUIButtonDisplayType_$type, 2);
|
|
231
|
+
case 0: return enumGetBox(NativeUIButtonDisplayType_$type, 0);
|
|
232
|
+
}
|
|
233
|
+
return enumGetBox(NativeUIButtonDisplayType_$type, 0);
|
|
234
|
+
case 4: return c.at;
|
|
235
|
+
case 32: return c.disabled;
|
|
236
|
+
case 5: return c.ar;
|
|
237
|
+
case 6: return !c.az;
|
|
238
|
+
case 24: return c.p7;
|
|
239
|
+
case 55: return new Thickness(1, c.bi, c.bk, c.bj, c.bh);
|
|
240
|
+
case 57: return c.av;
|
|
241
|
+
case 56: return c.as;
|
|
242
|
+
case 58: return c.aq;
|
|
95
243
|
}
|
|
96
244
|
return null;
|
|
97
245
|
}
|
|
246
|
+
setHorizontalContentAlignment(a, b) {
|
|
247
|
+
switch (b) {
|
|
248
|
+
case 1:
|
|
249
|
+
this.t.k5 = 1;
|
|
250
|
+
break;
|
|
251
|
+
case 0:
|
|
252
|
+
this.t.k5 = 0;
|
|
253
|
+
break;
|
|
254
|
+
case 2:
|
|
255
|
+
this.t.k5 = 2;
|
|
256
|
+
break;
|
|
257
|
+
case 3:
|
|
258
|
+
this.t.k5 = 3;
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
getHorizontalContentAlignment(a) {
|
|
263
|
+
switch (this.t.k5) {
|
|
264
|
+
case 1: return 1;
|
|
265
|
+
case 0: return 0;
|
|
266
|
+
case 2: return 2;
|
|
267
|
+
default: return 3;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
setVerticalContentAlignment(a, b) {
|
|
271
|
+
switch (b) {
|
|
272
|
+
case 2:
|
|
273
|
+
this.t.q9 = 2;
|
|
274
|
+
break;
|
|
275
|
+
case 1:
|
|
276
|
+
this.t.q9 = 1;
|
|
277
|
+
break;
|
|
278
|
+
case 3:
|
|
279
|
+
this.t.q9 = 3;
|
|
280
|
+
break;
|
|
281
|
+
case 0:
|
|
282
|
+
this.t.q9 = 0;
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
getVerticalContentAlignment(a) {
|
|
287
|
+
switch (this.t.q9) {
|
|
288
|
+
case 2: return 2;
|
|
289
|
+
case 1: return 1;
|
|
290
|
+
case 0: return 0;
|
|
291
|
+
default: return 3;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
98
294
|
}
|
|
99
295
|
XButtonBridge.$t = /*@__PURE__*/ markType(XButtonBridge, 'XButtonBridge', XComponentBridge.$);
|
|
100
296
|
return XButtonBridge;
|