igniteui-webcomponents-inputs 4.2.5 → 4.3.0-beta.1
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
|
@@ -0,0 +1,287 @@
|
|
|
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 { INativeUIPopupBridge_$type } from "igniteui-webcomponents-core";
|
|
9
|
+
import { List$1 } from "igniteui-webcomponents-core";
|
|
10
|
+
import { NativeUIComponent } from "igniteui-webcomponents-core";
|
|
11
|
+
import { runOn, delegateCombine, delegateRemove, enumGetBox, typeGetValue, EnumUtil, markType } from "igniteui-webcomponents-core";
|
|
12
|
+
import { NativeUIPopupOpenedEventArgs } from "igniteui-webcomponents-core";
|
|
13
|
+
import { NativeUIPopupClosedEventArgs } from "igniteui-webcomponents-core";
|
|
14
|
+
import { NativeUIMouseEventArgs } from "igniteui-webcomponents-core";
|
|
15
|
+
import { NativeUIFocusEventArgs } from "igniteui-webcomponents-core";
|
|
16
|
+
import { NativeUIPopupAnimationType_$type } from "igniteui-webcomponents-core";
|
|
17
|
+
import { NativeUIPopupPointerPosition_$type } from "igniteui-webcomponents-core";
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export let XPopupBridge = /*@__PURE__*/ (() => {
|
|
22
|
+
class XPopupBridge extends XComponentBridge {
|
|
23
|
+
constructor(a) {
|
|
24
|
+
super(a);
|
|
25
|
+
this.ai = null;
|
|
26
|
+
this.ad = null;
|
|
27
|
+
this.ag = null;
|
|
28
|
+
this.ah = null;
|
|
29
|
+
this.ae = null;
|
|
30
|
+
this.af = null;
|
|
31
|
+
this.ab = null;
|
|
32
|
+
this.aa = null;
|
|
33
|
+
this.y = null;
|
|
34
|
+
this.z = null;
|
|
35
|
+
this.w = null;
|
|
36
|
+
this.x = null;
|
|
37
|
+
this.ac = null;
|
|
38
|
+
this.ac = new List$1(NativeUIComponent.$, 0);
|
|
39
|
+
}
|
|
40
|
+
contains(a, b) {
|
|
41
|
+
let c = this.t;
|
|
42
|
+
return c.contains(b);
|
|
43
|
+
}
|
|
44
|
+
addHandler(a, b, c, d) {
|
|
45
|
+
let e = a;
|
|
46
|
+
switch (c) {
|
|
47
|
+
case 5:
|
|
48
|
+
e.onPopup = delegateCombine(e.onPopup, runOn(this, this.ao));
|
|
49
|
+
this.ab = d;
|
|
50
|
+
this.ai = b;
|
|
51
|
+
break;
|
|
52
|
+
case 6:
|
|
53
|
+
e.onClosed = delegateCombine(e.onClosed, runOn(this, this.aj));
|
|
54
|
+
this.aa = d;
|
|
55
|
+
this.ad = b;
|
|
56
|
+
break;
|
|
57
|
+
case 7:
|
|
58
|
+
e.popupMouseEnter = delegateCombine(e.popupMouseEnter, runOn(this, this.am));
|
|
59
|
+
this.y = d;
|
|
60
|
+
this.ag = b;
|
|
61
|
+
break;
|
|
62
|
+
case 8:
|
|
63
|
+
e.popupMouseLeave = delegateCombine(e.popupMouseLeave, runOn(this, this.an));
|
|
64
|
+
this.z = d;
|
|
65
|
+
this.ah = b;
|
|
66
|
+
break;
|
|
67
|
+
case 12:
|
|
68
|
+
e.popupGotFocus = delegateCombine(e.popupGotFocus, runOn(this, this.ak));
|
|
69
|
+
this.w = d;
|
|
70
|
+
this.ae = b;
|
|
71
|
+
break;
|
|
72
|
+
case 13:
|
|
73
|
+
e.popupLostFocus = delegateCombine(e.popupLostFocus, runOn(this, this.al));
|
|
74
|
+
this.x = d;
|
|
75
|
+
this.af = b;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
removeHandler(a, b, c, d) {
|
|
80
|
+
let e = a;
|
|
81
|
+
switch (c) {
|
|
82
|
+
case 5:
|
|
83
|
+
e.onPopup = delegateRemove(e.onPopup, runOn(this, this.ao));
|
|
84
|
+
this.ab = null;
|
|
85
|
+
this.ai = null;
|
|
86
|
+
break;
|
|
87
|
+
case 6:
|
|
88
|
+
e.onClosed = delegateRemove(e.onClosed, runOn(this, this.aj));
|
|
89
|
+
this.aa = null;
|
|
90
|
+
this.ad = null;
|
|
91
|
+
break;
|
|
92
|
+
case 7:
|
|
93
|
+
e.popupMouseEnter = delegateRemove(e.popupMouseEnter, runOn(this, this.am));
|
|
94
|
+
this.y = null;
|
|
95
|
+
this.ag = null;
|
|
96
|
+
break;
|
|
97
|
+
case 8:
|
|
98
|
+
e.popupMouseLeave = delegateRemove(e.popupMouseLeave, runOn(this, this.an));
|
|
99
|
+
this.z = null;
|
|
100
|
+
this.ah = null;
|
|
101
|
+
break;
|
|
102
|
+
case 12:
|
|
103
|
+
e.popupGotFocus = delegateRemove(e.popupGotFocus, runOn(this, this.ak));
|
|
104
|
+
this.w = null;
|
|
105
|
+
this.ae = null;
|
|
106
|
+
break;
|
|
107
|
+
case 13:
|
|
108
|
+
e.popupLostFocus = delegateRemove(e.popupLostFocus, runOn(this, this.al));
|
|
109
|
+
this.x = null;
|
|
110
|
+
this.af = null;
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
ao(a, b) {
|
|
115
|
+
if (this.ab != null) {
|
|
116
|
+
this.ab(this.ai, new NativeUIPopupOpenedEventArgs());
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
aj(a, b) {
|
|
120
|
+
if (this.aa != null) {
|
|
121
|
+
this.aa(this.ad, new NativeUIPopupClosedEventArgs());
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
am(a, b) {
|
|
125
|
+
if (this.y != null) {
|
|
126
|
+
this.y(this.ag, new NativeUIMouseEventArgs());
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
an(a, b) {
|
|
130
|
+
if (this.z != null) {
|
|
131
|
+
this.z(this.ah, new NativeUIMouseEventArgs());
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
ak(a, b) {
|
|
135
|
+
if (this.w != null) {
|
|
136
|
+
this.w(this.ae, new NativeUIFocusEventArgs());
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
al(a, b) {
|
|
140
|
+
if (this.x != null) {
|
|
141
|
+
this.x(this.af, ((() => {
|
|
142
|
+
let $ret = new NativeUIFocusEventArgs();
|
|
143
|
+
$ret.a = b.a;
|
|
144
|
+
return $ret;
|
|
145
|
+
})()));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
getValue(a, b) {
|
|
149
|
+
let c = a;
|
|
150
|
+
switch (b) {
|
|
151
|
+
case 22: return c.ao;
|
|
152
|
+
case 25: return c.ag;
|
|
153
|
+
case 26: return c.av;
|
|
154
|
+
case 17: return c.aq;
|
|
155
|
+
case 23: return c.b9;
|
|
156
|
+
case 35: switch (c.n) {
|
|
157
|
+
case 1: return enumGetBox(NativeUIPopupAnimationType_$type, 1);
|
|
158
|
+
default: return enumGetBox(NativeUIPopupAnimationType_$type, 0);
|
|
159
|
+
}
|
|
160
|
+
case 36: return c.al;
|
|
161
|
+
case 37: return c.ak;
|
|
162
|
+
case 40: return c.ax;
|
|
163
|
+
case 41: return c.am;
|
|
164
|
+
case 43: switch (c.q) {
|
|
165
|
+
case 0: return enumGetBox(NativeUIPopupPointerPosition_$type, 0);
|
|
166
|
+
default: return enumGetBox(NativeUIPopupPointerPosition_$type, 1);
|
|
167
|
+
}
|
|
168
|
+
case 42: return c.cd;
|
|
169
|
+
case 39: return c.ai;
|
|
170
|
+
}
|
|
171
|
+
return super.getValue(a, b);
|
|
172
|
+
}
|
|
173
|
+
setValue(a, b, c) {
|
|
174
|
+
let d = a;
|
|
175
|
+
switch (b) {
|
|
176
|
+
case 25:
|
|
177
|
+
d.ag = c;
|
|
178
|
+
break;
|
|
179
|
+
case 26:
|
|
180
|
+
d.av = typeGetValue(c);
|
|
181
|
+
break;
|
|
182
|
+
case 17:
|
|
183
|
+
d.aq = c;
|
|
184
|
+
break;
|
|
185
|
+
case 23:
|
|
186
|
+
d.b9 = c;
|
|
187
|
+
break;
|
|
188
|
+
case 35:
|
|
189
|
+
switch (EnumUtil.getEnumValue(NativeUIPopupAnimationType_$type, c)) {
|
|
190
|
+
case 1:
|
|
191
|
+
d.n = 1;
|
|
192
|
+
break;
|
|
193
|
+
default:
|
|
194
|
+
d.n = 0;
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
break;
|
|
198
|
+
case 36:
|
|
199
|
+
d.al = c;
|
|
200
|
+
break;
|
|
201
|
+
case 37:
|
|
202
|
+
d.ak = c;
|
|
203
|
+
break;
|
|
204
|
+
case 40:
|
|
205
|
+
d.ax = typeGetValue(c);
|
|
206
|
+
break;
|
|
207
|
+
case 41:
|
|
208
|
+
d.am = c;
|
|
209
|
+
break;
|
|
210
|
+
case 42:
|
|
211
|
+
d.cd = c;
|
|
212
|
+
break;
|
|
213
|
+
case 43:
|
|
214
|
+
switch (EnumUtil.getEnumValue(NativeUIPopupPointerPosition_$type, c)) {
|
|
215
|
+
case 0:
|
|
216
|
+
d.q = 0;
|
|
217
|
+
break;
|
|
218
|
+
case 1:
|
|
219
|
+
d.q = 1;
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
break;
|
|
223
|
+
case 39:
|
|
224
|
+
d.ai = c;
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
super.setValue(a, b, c);
|
|
228
|
+
}
|
|
229
|
+
showRelativeToExclusionRect(a, b, c, d) {
|
|
230
|
+
a.showRelativeToExclusionRect(b, this.v(c), this.u(d));
|
|
231
|
+
}
|
|
232
|
+
close(a) {
|
|
233
|
+
a.bj();
|
|
234
|
+
}
|
|
235
|
+
notifyContentSizeChanged(a) {
|
|
236
|
+
a.bm();
|
|
237
|
+
}
|
|
238
|
+
notifyExclusionRectChanged(a, b) {
|
|
239
|
+
a.bn(b);
|
|
240
|
+
}
|
|
241
|
+
v(a) {
|
|
242
|
+
switch (a) {
|
|
243
|
+
case 0: return 0;
|
|
244
|
+
case 1: return 1;
|
|
245
|
+
case 2: return 2;
|
|
246
|
+
default: return 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
u(a) {
|
|
250
|
+
switch (a) {
|
|
251
|
+
case 0: return 0;
|
|
252
|
+
case 2: return 2;
|
|
253
|
+
case 1: return 1;
|
|
254
|
+
case 3: return 3;
|
|
255
|
+
default: return 0;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
addChild(a, b) {
|
|
259
|
+
this.ac.add(b);
|
|
260
|
+
let c = a;
|
|
261
|
+
c.appendPopupContent(b.al);
|
|
262
|
+
}
|
|
263
|
+
insertChild(a, b, c) {
|
|
264
|
+
this.ac.add(c);
|
|
265
|
+
let d = a;
|
|
266
|
+
d.appendPopupContent(c.al);
|
|
267
|
+
}
|
|
268
|
+
getChildAt(a, b) {
|
|
269
|
+
return this.ac._inner[b];
|
|
270
|
+
}
|
|
271
|
+
getChildrenCount(a) {
|
|
272
|
+
return this.ac.count;
|
|
273
|
+
}
|
|
274
|
+
removeChild(a, b) {
|
|
275
|
+
let c = a;
|
|
276
|
+
c.removePopupContent(b.al);
|
|
277
|
+
this.ac.remove(b);
|
|
278
|
+
}
|
|
279
|
+
removeChildAt(a, b) {
|
|
280
|
+
let c = a;
|
|
281
|
+
c.removePopupContent(this.ac._inner[b].al);
|
|
282
|
+
this.ac.removeAt(b);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
XPopupBridge.$t = /*@__PURE__*/ markType(XPopupBridge, 'XPopupBridge', XComponentBridge.$, [INativeUIPopupBridge_$type]);
|
|
286
|
+
return XPopupBridge;
|
|
287
|
+
})();
|
|
@@ -18,6 +18,22 @@ import { FirstWeek_$type } from "./FirstWeek";
|
|
|
18
18
|
import { IgcHTMLElement } from "igniteui-webcomponents-core";
|
|
19
19
|
export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
20
20
|
class IgcDatePickerComponent extends IgcHTMLElement {
|
|
21
|
+
set height(value) {
|
|
22
|
+
this._height = value;
|
|
23
|
+
this.style.height = value;
|
|
24
|
+
this.i.notifySizeChanged();
|
|
25
|
+
}
|
|
26
|
+
get height() {
|
|
27
|
+
return this._height;
|
|
28
|
+
}
|
|
29
|
+
set width(value) {
|
|
30
|
+
this._width = value;
|
|
31
|
+
this.style.width = value;
|
|
32
|
+
this.i.notifySizeChanged();
|
|
33
|
+
}
|
|
34
|
+
get width() {
|
|
35
|
+
return this._width;
|
|
36
|
+
}
|
|
21
37
|
constructor() {
|
|
22
38
|
super();
|
|
23
39
|
this._disconnected = false;
|
|
@@ -47,6 +63,7 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
47
63
|
}
|
|
48
64
|
this._renderer = new WebComponentRenderer(this, document, true, null);
|
|
49
65
|
this._implementation = this.createImplementation();
|
|
66
|
+
this._implementation.externalObject = this;
|
|
50
67
|
this._container = this._renderer.createElement("div");
|
|
51
68
|
this._renderer.updateRoot(this._container);
|
|
52
69
|
//this._renderer.rootWrapper.append(this._container);
|
|
@@ -58,22 +75,6 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
58
75
|
this._datePicker.notifySizeChanged();
|
|
59
76
|
});
|
|
60
77
|
}
|
|
61
|
-
set height(value) {
|
|
62
|
-
this._height = value;
|
|
63
|
-
this.style.height = value;
|
|
64
|
-
this.i.notifySizeChanged();
|
|
65
|
-
}
|
|
66
|
-
get height() {
|
|
67
|
-
return this._height;
|
|
68
|
-
}
|
|
69
|
-
set width(value) {
|
|
70
|
-
this._width = value;
|
|
71
|
-
this.style.width = value;
|
|
72
|
-
this.i.notifySizeChanged();
|
|
73
|
-
}
|
|
74
|
-
get width() {
|
|
75
|
-
return this._width;
|
|
76
|
-
}
|
|
77
78
|
// supports angular themes or custom properties set in CSS
|
|
78
79
|
updateStyle() {
|
|
79
80
|
this._styling(this, this);
|
|
@@ -86,6 +87,7 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
86
87
|
}
|
|
87
88
|
disconnectedCallback() {
|
|
88
89
|
this._disconnected = true;
|
|
90
|
+
this._datePicker.provideContainer(null);
|
|
89
91
|
}
|
|
90
92
|
connectedCallback() {
|
|
91
93
|
if (this._disconnected) {
|
|
@@ -209,29 +211,29 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
209
211
|
* Gets or Sets the property name that contains the values.
|
|
210
212
|
*/
|
|
211
213
|
get today() {
|
|
212
|
-
return this.i.
|
|
214
|
+
return this.i.a3;
|
|
213
215
|
}
|
|
214
216
|
set today(v) {
|
|
215
|
-
this.i.
|
|
217
|
+
this.i.a3 = v;
|
|
216
218
|
}
|
|
217
219
|
/**
|
|
218
220
|
* Gets or Sets the property name that contains the label.
|
|
219
221
|
*/
|
|
220
222
|
get label() {
|
|
221
|
-
return this.i.
|
|
223
|
+
return this.i.bv;
|
|
222
224
|
}
|
|
223
225
|
set label(v) {
|
|
224
|
-
this.i.
|
|
226
|
+
this.i.bv = v;
|
|
225
227
|
}
|
|
226
228
|
/**
|
|
227
229
|
* Gets or sets the color to use for the text.
|
|
228
230
|
*/
|
|
229
231
|
get labelTextColor() {
|
|
230
|
-
return brushToString(this.i.
|
|
232
|
+
return brushToString(this.i.dh);
|
|
231
233
|
}
|
|
232
234
|
set labelTextColor(v) {
|
|
233
|
-
this.i.
|
|
234
|
-
this._a("labelTextColor", brushToString(this.i.
|
|
235
|
+
this.i.dh = stringToBrush(v);
|
|
236
|
+
this._a("labelTextColor", brushToString(this.i.dh));
|
|
235
237
|
}
|
|
236
238
|
/**
|
|
237
239
|
* Gets or sets the font to use for the combobox.
|
|
@@ -252,28 +254,28 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
252
254
|
* Gets or Sets the property name that contains the placeholder.
|
|
253
255
|
*/
|
|
254
256
|
get placeholder() {
|
|
255
|
-
return this.i.
|
|
257
|
+
return this.i.b2;
|
|
256
258
|
}
|
|
257
259
|
set placeholder(v) {
|
|
258
|
-
this.i.
|
|
260
|
+
this.i.b2 = v;
|
|
259
261
|
}
|
|
260
262
|
/**
|
|
261
263
|
* Gets or Sets the property name that contains the MinDate.
|
|
262
264
|
*/
|
|
263
265
|
get minDate() {
|
|
264
|
-
return this.i.
|
|
266
|
+
return this.i.a2;
|
|
265
267
|
}
|
|
266
268
|
set minDate(v) {
|
|
267
|
-
this.i.
|
|
269
|
+
this.i.a2 = v;
|
|
268
270
|
}
|
|
269
271
|
/**
|
|
270
272
|
* Gets or Sets the property name that contains the MaxDate.
|
|
271
273
|
*/
|
|
272
274
|
get maxDate() {
|
|
273
|
-
return this.i.
|
|
275
|
+
return this.i.a1;
|
|
274
276
|
}
|
|
275
277
|
set maxDate(v) {
|
|
276
|
-
this.i.
|
|
278
|
+
this.i.a1 = v;
|
|
277
279
|
}
|
|
278
280
|
/**
|
|
279
281
|
* Gets or sets the display density to use for the date pcicker.
|
|
@@ -314,61 +316,61 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
314
316
|
* Gets or Sets the text color
|
|
315
317
|
*/
|
|
316
318
|
get textColor() {
|
|
317
|
-
return brushToString(this.i.
|
|
319
|
+
return brushToString(this.i.di);
|
|
318
320
|
}
|
|
319
321
|
set textColor(v) {
|
|
320
|
-
this.i.
|
|
321
|
-
this._a("textColor", brushToString(this.i.
|
|
322
|
+
this.i.di = stringToBrush(v);
|
|
323
|
+
this._a("textColor", brushToString(this.i.di));
|
|
322
324
|
}
|
|
323
325
|
/**
|
|
324
326
|
* Gets or Sets the text color
|
|
325
327
|
*/
|
|
326
328
|
get iconColor() {
|
|
327
|
-
return brushToString(this.i.
|
|
329
|
+
return brushToString(this.i.dg);
|
|
328
330
|
}
|
|
329
331
|
set iconColor(v) {
|
|
330
|
-
this.i.
|
|
331
|
-
this._a("iconColor", brushToString(this.i.
|
|
332
|
+
this.i.dg = stringToBrush(v);
|
|
333
|
+
this._a("iconColor", brushToString(this.i.dg));
|
|
332
334
|
}
|
|
333
335
|
/**
|
|
334
336
|
* Gets or sets the ShowClearButton property to detirmine if the clear button is shown
|
|
335
337
|
*/
|
|
336
338
|
get showClearButton() {
|
|
337
|
-
return this.i.
|
|
339
|
+
return this.i.at;
|
|
338
340
|
}
|
|
339
341
|
set showClearButton(v) {
|
|
340
|
-
this.i.
|
|
341
|
-
this._a("showClearButton", this.i.
|
|
342
|
+
this.i.at = ensureBool(v);
|
|
343
|
+
this._a("showClearButton", this.i.at);
|
|
342
344
|
}
|
|
343
345
|
/**
|
|
344
346
|
* Gets or sets the ShowTodayButton property to detirmine if the today button is shown
|
|
345
347
|
*/
|
|
346
348
|
get showTodayButton() {
|
|
347
|
-
return this.i.
|
|
349
|
+
return this.i.au;
|
|
348
350
|
}
|
|
349
351
|
set showTodayButton(v) {
|
|
350
|
-
this.i.
|
|
351
|
-
this._a("showTodayButton", this.i.
|
|
352
|
+
this.i.au = ensureBool(v);
|
|
353
|
+
this._a("showTodayButton", this.i.au);
|
|
352
354
|
}
|
|
353
355
|
/**
|
|
354
356
|
* Gets or sets the AllowTextInput property to detirmine if entering text into the input is allowed
|
|
355
357
|
*/
|
|
356
358
|
get allowTextInput() {
|
|
357
|
-
return this.i.
|
|
359
|
+
return this.i.aq;
|
|
358
360
|
}
|
|
359
361
|
set allowTextInput(v) {
|
|
360
|
-
this.i.
|
|
361
|
-
this._a("allowTextInput", this.i.
|
|
362
|
+
this.i.aq = ensureBool(v);
|
|
363
|
+
this._a("allowTextInput", this.i.aq);
|
|
362
364
|
}
|
|
363
365
|
/**
|
|
364
366
|
* Gets or sets the AllowTextInput property to detirmine if entering text into the input is allowed
|
|
365
367
|
*/
|
|
366
368
|
get openOnFocus() {
|
|
367
|
-
return this.i.
|
|
369
|
+
return this.i.as;
|
|
368
370
|
}
|
|
369
371
|
set openOnFocus(v) {
|
|
370
|
-
this.i.
|
|
371
|
-
this._a("openOnFocus", this.i.
|
|
372
|
+
this.i.as = ensureBool(v);
|
|
373
|
+
this._a("openOnFocus", this.i.as);
|
|
372
374
|
}
|
|
373
375
|
/**
|
|
374
376
|
* Gets or sets the FirstDayOfWeek property to detirmine first day of the week
|
|
@@ -394,11 +396,11 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
394
396
|
* Gets or sets the ShowWeekNumbers property to detirmine if the week numbers are shown
|
|
395
397
|
*/
|
|
396
398
|
get showWeekNumbers() {
|
|
397
|
-
return this.i.
|
|
399
|
+
return this.i.av;
|
|
398
400
|
}
|
|
399
401
|
set showWeekNumbers(v) {
|
|
400
|
-
this.i.
|
|
401
|
-
this._a("showWeekNumbers", this.i.
|
|
402
|
+
this.i.av = ensureBool(v);
|
|
403
|
+
this._a("showWeekNumbers", this.i.av);
|
|
402
404
|
}
|
|
403
405
|
/**
|
|
404
406
|
* Gets or sets the date time format to use for this column. If FormatString is specificied this value is ignored.
|
|
@@ -414,17 +416,17 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
414
416
|
* Gets or sets the Format property to detirmine the format of the date in the input
|
|
415
417
|
*/
|
|
416
418
|
get formatString() {
|
|
417
|
-
return this.i.
|
|
419
|
+
return this.i.br;
|
|
418
420
|
}
|
|
419
421
|
set formatString(v) {
|
|
420
|
-
this.i.
|
|
422
|
+
this.i.br = v;
|
|
421
423
|
}
|
|
422
424
|
get isDisabled() {
|
|
423
|
-
return this.i.
|
|
425
|
+
return this.i.ar;
|
|
424
426
|
}
|
|
425
427
|
set isDisabled(v) {
|
|
426
|
-
this.i.
|
|
427
|
-
this._a("isDisabled", this.i.
|
|
428
|
+
this.i.ar = ensureBool(v);
|
|
429
|
+
this._a("isDisabled", this.i.ar);
|
|
428
430
|
}
|
|
429
431
|
get hasUserValues() {
|
|
430
432
|
return this._hasUserValues;
|
|
@@ -480,14 +482,14 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
480
482
|
this._inStyling = false;
|
|
481
483
|
}
|
|
482
484
|
select() {
|
|
483
|
-
this.i.
|
|
485
|
+
this.i.c3();
|
|
484
486
|
}
|
|
485
487
|
/**
|
|
486
488
|
* Exports visual information about the current state of the grid.
|
|
487
489
|
|
|
488
490
|
*/
|
|
489
491
|
exportVisualModel() {
|
|
490
|
-
let iv = this.i.
|
|
492
|
+
let iv = this.i.a8();
|
|
491
493
|
return (iv);
|
|
492
494
|
}
|
|
493
495
|
/**
|
|
@@ -495,7 +497,7 @@ export let IgcDatePickerComponent = /*@__PURE__*/ (() => {
|
|
|
495
497
|
|
|
496
498
|
*/
|
|
497
499
|
exportSerializedVisualModel() {
|
|
498
|
-
let iv = this.i.
|
|
500
|
+
let iv = this.i.bo();
|
|
499
501
|
return (iv);
|
|
500
502
|
}
|
|
501
503
|
/**
|