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
|
@@ -4,7 +4,7 @@ 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
|
|
7
|
+
import { __extends } from "tslib";
|
|
8
8
|
import { Base, runOn, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, delegateRemove, enumGetBox, delegateCombine } from "igniteui-webcomponents-core";
|
|
9
9
|
import { XInputGroup } from "./XInputGroup";
|
|
10
10
|
import { XLabel } from "./XLabel";
|
|
@@ -35,7 +35,7 @@ import { isNaN_ } from "igniteui-webcomponents-core";
|
|
|
35
35
|
* @hidden
|
|
36
36
|
*/
|
|
37
37
|
var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
38
|
-
|
|
38
|
+
__extends(DatePickerView, _super);
|
|
39
39
|
function DatePickerView() {
|
|
40
40
|
var _this = _super.call(this) || this;
|
|
41
41
|
_this.b = null;
|
|
@@ -49,6 +49,7 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
49
49
|
_this.f = null;
|
|
50
50
|
_this.i = null;
|
|
51
51
|
_this.h = null;
|
|
52
|
+
_this.document_Click = _this.document_Click.bind(_this);
|
|
52
53
|
return _this;
|
|
53
54
|
}
|
|
54
55
|
DatePickerView.prototype.ah = function () {
|
|
@@ -57,29 +58,34 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
57
58
|
get: function () {
|
|
58
59
|
return this.e;
|
|
59
60
|
},
|
|
60
|
-
enumerable:
|
|
61
|
+
enumerable: false,
|
|
61
62
|
configurable: true
|
|
62
63
|
});
|
|
63
64
|
DatePickerView.prototype.ag = function (a) {
|
|
64
65
|
if (a == null) {
|
|
66
|
+
if (this.d != null) {
|
|
67
|
+
var b = this.d.rootWrapper.getChildAt(0);
|
|
68
|
+
b.unlistenAll();
|
|
69
|
+
document.removeEventListener("click", this.document_Click, false);
|
|
70
|
+
}
|
|
65
71
|
this.d = null;
|
|
66
72
|
return;
|
|
67
73
|
}
|
|
68
74
|
this.d = a;
|
|
69
|
-
var
|
|
70
|
-
var
|
|
75
|
+
var c = Math.round(a.rootWrapper.width());
|
|
76
|
+
var d = Math.round(a.rootWrapper.height());
|
|
71
77
|
this.aa();
|
|
72
78
|
this.ab();
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
document.addEventListener("click",
|
|
79
|
+
var e = this.d.rootWrapper.getChildAt(0);
|
|
80
|
+
e.listen("keydown", runOn(this, this.x));
|
|
81
|
+
e.listen("focusin", runOn(this, this.v));
|
|
82
|
+
e.listen("focusout", runOn(this, this.w));
|
|
83
|
+
document.addEventListener("click", this.document_Click, false);
|
|
78
84
|
};
|
|
79
85
|
DatePickerView.prototype.aa = function () {
|
|
80
86
|
if (this.d != null) {
|
|
81
87
|
this.k = this.d.rootWrapper.getChildAt(0);
|
|
82
|
-
this.k.setAttribute("tabIndex",
|
|
88
|
+
this.k.setAttribute("tabIndex", this.b.a7.toString());
|
|
83
89
|
this.k.setStyleProperty("display", "flex");
|
|
84
90
|
this.k.setStyleProperty("height", "100%");
|
|
85
91
|
this.l = this.d.createElement("div");
|
|
@@ -92,7 +98,7 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
92
98
|
this.i = this.d.createElement("div");
|
|
93
99
|
this.i.setAttribute("aria-hidden", "true");
|
|
94
100
|
this.h = this.d.createElement("div");
|
|
95
|
-
this.b.
|
|
101
|
+
this.b.ch();
|
|
96
102
|
this.j.getChildAt(0).setAttribute("aria-expanded", "fasle");
|
|
97
103
|
this.j.getChildAt(0).setAttribute("aria-invalid", "false");
|
|
98
104
|
this.f.setStyleProperty("height", "16px");
|
|
@@ -107,35 +113,35 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
107
113
|
if (this.d != null) {
|
|
108
114
|
var b = this.d.getSubRenderer(this.k);
|
|
109
115
|
a.provideContainer(b);
|
|
110
|
-
var c =
|
|
116
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
111
117
|
}
|
|
112
118
|
};
|
|
113
119
|
DatePickerView.prototype.am = function (a) {
|
|
114
120
|
if (this.d != null) {
|
|
115
121
|
var b = this.d.getSubRenderer(this.l);
|
|
116
122
|
a.provideContainer(b);
|
|
117
|
-
var c =
|
|
123
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
118
124
|
}
|
|
119
125
|
};
|
|
120
126
|
DatePickerView.prototype.al = function (a) {
|
|
121
127
|
if (this.d != null) {
|
|
122
128
|
var b = this.d.getSubRenderer(this.j);
|
|
123
129
|
a.provideContainer(b);
|
|
124
|
-
var c =
|
|
130
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
125
131
|
}
|
|
126
132
|
};
|
|
127
133
|
DatePickerView.prototype.ao = function (a, b) {
|
|
128
134
|
if (this.d != null) {
|
|
129
135
|
var c = this.d.getSubRenderer(b);
|
|
130
136
|
a.provideContainer(c);
|
|
131
|
-
var d =
|
|
137
|
+
var d = c.getExternal(a, c.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
132
138
|
}
|
|
133
139
|
};
|
|
134
140
|
DatePickerView.prototype.aj = function (a, b) {
|
|
135
141
|
if (this.d != null) {
|
|
136
142
|
var c = this.d.getSubRenderer(b);
|
|
137
143
|
a.provideContainer(c);
|
|
138
|
-
var d =
|
|
144
|
+
var d = c.getExternal(a, c.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
139
145
|
}
|
|
140
146
|
};
|
|
141
147
|
DatePickerView.prototype.u = function () {
|
|
@@ -166,7 +172,7 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
166
172
|
}
|
|
167
173
|
}
|
|
168
174
|
};
|
|
169
|
-
DatePickerView.prototype.
|
|
175
|
+
DatePickerView.prototype.as = function (a) {
|
|
170
176
|
if (a != null && a != "") {
|
|
171
177
|
this.j.getChildAt(0).setAttribute("aria-label", a);
|
|
172
178
|
}
|
|
@@ -176,7 +182,7 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
176
182
|
};
|
|
177
183
|
DatePickerView.prototype.ap = function () {
|
|
178
184
|
if (this.f != null) {
|
|
179
|
-
if (this.b.
|
|
185
|
+
if (this.b.at == true) {
|
|
180
186
|
this.f.show();
|
|
181
187
|
}
|
|
182
188
|
else {
|
|
@@ -189,6 +195,9 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
189
195
|
this.f.hide();
|
|
190
196
|
}
|
|
191
197
|
};
|
|
198
|
+
DatePickerView.prototype.ar = function () {
|
|
199
|
+
this.k.setAttribute("tabIndex", this.b.a7.toString());
|
|
200
|
+
};
|
|
192
201
|
DatePickerView.prototype.ab = function () {
|
|
193
202
|
if (this.d != null) {
|
|
194
203
|
this.m = this.d.rootWrapper.getChildAt(1);
|
|
@@ -196,15 +205,15 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
196
205
|
this.e.setStyleProperty("width", "100%");
|
|
197
206
|
this.e.setStyleProperty("height", "100%");
|
|
198
207
|
this.e.setStyleProperty("display", "flex");
|
|
199
|
-
this.b.
|
|
208
|
+
this.b.ci();
|
|
200
209
|
this.e.parent().setStyleProperty("height", "100%");
|
|
201
|
-
if (this.b.
|
|
210
|
+
if (this.b.av == true) {
|
|
202
211
|
this.e.parent().parent().setStyleProperty("max-width", "245px");
|
|
203
212
|
}
|
|
204
213
|
else {
|
|
205
214
|
this.e.parent().parent().setStyleProperty("max-width", "232px");
|
|
206
215
|
}
|
|
207
|
-
if (this.b.
|
|
216
|
+
if (this.b.au == true) {
|
|
208
217
|
this.e.parent().parent().setStyleProperty("min-height", "270px");
|
|
209
218
|
}
|
|
210
219
|
else {
|
|
@@ -214,13 +223,13 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
214
223
|
};
|
|
215
224
|
DatePickerView.prototype.y = function () {
|
|
216
225
|
if (this.d != null) {
|
|
217
|
-
if (this.b.
|
|
226
|
+
if (this.b.av == true) {
|
|
218
227
|
this.e.parent().parent().setStyleProperty("max-width", "245px");
|
|
219
228
|
}
|
|
220
229
|
else {
|
|
221
230
|
this.e.parent().parent().setStyleProperty("max-width", "232px");
|
|
222
231
|
}
|
|
223
|
-
if (this.b.
|
|
232
|
+
if (this.b.au == true) {
|
|
224
233
|
this.e.parent().parent().setStyleProperty("min-height", "270px");
|
|
225
234
|
}
|
|
226
235
|
else {
|
|
@@ -232,59 +241,59 @@ var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
232
241
|
if (this.d != null) {
|
|
233
242
|
var b = this.d.getSubRenderer(this.m);
|
|
234
243
|
a.provideRenderer(b);
|
|
235
|
-
var c = b.getExternal(a, b.rootWrapper,
|
|
244
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
236
245
|
}
|
|
237
246
|
};
|
|
238
247
|
DatePickerView.prototype.ai = function (a) {
|
|
239
248
|
if (this.d != null) {
|
|
240
249
|
var b = this.d.getSubRenderer(this.e);
|
|
241
250
|
a.provideContainer(b);
|
|
242
|
-
var c =
|
|
251
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
243
252
|
}
|
|
244
253
|
};
|
|
245
254
|
DatePickerView.prototype.o = function () {
|
|
246
255
|
return this.e;
|
|
247
256
|
};
|
|
248
257
|
DatePickerView.prototype.z = function (a) {
|
|
249
|
-
if (this.b.
|
|
258
|
+
if (this.b.ar == true) {
|
|
250
259
|
return;
|
|
251
260
|
}
|
|
252
|
-
this.b.
|
|
261
|
+
this.b.cf();
|
|
253
262
|
if (this.f != null) {
|
|
254
263
|
this.f.hide();
|
|
255
264
|
}
|
|
256
265
|
};
|
|
257
266
|
DatePickerView.prototype.ad = function (a) {
|
|
258
267
|
a.stopPropagation();
|
|
259
|
-
this.b.
|
|
268
|
+
this.b.cn();
|
|
260
269
|
};
|
|
261
270
|
DatePickerView.prototype.x = function (a) {
|
|
262
271
|
var b = a.which;
|
|
263
272
|
if (b == 27) {
|
|
264
|
-
this.b.
|
|
273
|
+
this.b.cg();
|
|
265
274
|
}
|
|
266
275
|
};
|
|
267
276
|
DatePickerView.prototype.v = function (a) {
|
|
268
277
|
this.b.focus();
|
|
269
278
|
var b = (a.originalEvent.relatedTarget);
|
|
270
279
|
if (!this.c(b)) {
|
|
271
|
-
this.b.
|
|
280
|
+
this.b.ct();
|
|
272
281
|
}
|
|
273
282
|
};
|
|
274
283
|
DatePickerView.prototype.w = function (a) {
|
|
275
284
|
var b = (a.originalEvent.relatedTarget);
|
|
276
285
|
if (!this.c(b)) {
|
|
277
|
-
this.b.
|
|
278
|
-
this.b.
|
|
286
|
+
this.b.cm();
|
|
287
|
+
this.b.cu();
|
|
279
288
|
}
|
|
280
289
|
};
|
|
281
|
-
DatePickerView.prototype.
|
|
290
|
+
DatePickerView.prototype.document_Click = function (a) {
|
|
282
291
|
var b = a.target;
|
|
283
292
|
if (!this.c(b)) {
|
|
284
|
-
this.b.
|
|
293
|
+
this.b.cg();
|
|
285
294
|
}
|
|
286
295
|
};
|
|
287
|
-
DatePickerView.prototype.
|
|
296
|
+
DatePickerView.prototype.at = function () {
|
|
288
297
|
if (this.d != null) {
|
|
289
298
|
var a = this.d.rootWrapper.getNativeElement();
|
|
290
299
|
var b = a.getBoundingClientRect();
|
|
@@ -319,7 +328,7 @@ export { DatePickerView };
|
|
|
319
328
|
* @hidden
|
|
320
329
|
*/
|
|
321
330
|
var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
322
|
-
|
|
331
|
+
__extends(DatePicker, _super);
|
|
323
332
|
function DatePicker() {
|
|
324
333
|
var _this = _super.call(this) || this;
|
|
325
334
|
_this.h = null;
|
|
@@ -330,42 +339,44 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
330
339
|
_this.m = null;
|
|
331
340
|
_this.n = null;
|
|
332
341
|
_this.c = null;
|
|
333
|
-
_this.
|
|
334
|
-
_this.
|
|
335
|
-
_this.
|
|
336
|
-
_this.
|
|
337
|
-
_this.
|
|
342
|
+
_this.a9 = "dd";
|
|
343
|
+
_this.bd = "mm";
|
|
344
|
+
_this.bg = "yyyy";
|
|
345
|
+
_this.ba = "mdy";
|
|
346
|
+
_this.bf = "/";
|
|
338
347
|
_this.ah = false;
|
|
348
|
+
_this.ap = false;
|
|
339
349
|
_this.ao = false;
|
|
340
|
-
_this.
|
|
341
|
-
_this.
|
|
350
|
+
_this.ay = dateMinValue();
|
|
351
|
+
_this.ai = false;
|
|
342
352
|
_this.propertyChanged = null;
|
|
343
353
|
_this.selectedValueChanged = null;
|
|
344
354
|
_this.ae = null;
|
|
355
|
+
_this.a0 = dateMinValue();
|
|
345
356
|
_this.az = dateMinValue();
|
|
346
|
-
_this.
|
|
347
|
-
_this.
|
|
348
|
-
_this.da = BrushUtil.g(255, 24, 29, 31);
|
|
357
|
+
_this.bc = "";
|
|
358
|
+
_this.de = BrushUtil.g(255, 24, 29, 31);
|
|
349
359
|
_this.z = null;
|
|
350
|
-
_this.
|
|
351
|
-
_this.
|
|
352
|
-
_this.
|
|
360
|
+
_this.be = "";
|
|
361
|
+
_this.ax = dateMinValue();
|
|
362
|
+
_this.aw = dateMaxValue();
|
|
353
363
|
_this.x = 2;
|
|
354
364
|
_this.v = 1;
|
|
355
365
|
_this.aa = null;
|
|
356
|
-
_this.
|
|
357
|
-
_this.
|
|
358
|
-
_this.
|
|
359
|
-
_this.
|
|
366
|
+
_this.df = BrushUtil.g(255, 24, 29, 31);
|
|
367
|
+
_this.dd = BrushUtil.g(255, 163, 172, 184);
|
|
368
|
+
_this.al = true;
|
|
369
|
+
_this.am = false;
|
|
360
370
|
_this.ag = true;
|
|
361
|
-
_this.
|
|
371
|
+
_this.ak = true;
|
|
362
372
|
_this.i = 0;
|
|
363
373
|
_this.k = 0;
|
|
364
|
-
_this.
|
|
374
|
+
_this.an = false;
|
|
365
375
|
_this.a = new DateTimeValueFormatter();
|
|
366
376
|
_this.d = 0;
|
|
367
|
-
_this.
|
|
368
|
-
_this.
|
|
377
|
+
_this.bb = null;
|
|
378
|
+
_this.aj = false;
|
|
379
|
+
_this.a6 = 0;
|
|
369
380
|
_this.gotFocus = null;
|
|
370
381
|
_this.lostFocus = null;
|
|
371
382
|
_this.keyDown = null;
|
|
@@ -374,15 +385,15 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
374
385
|
a.b = _this;
|
|
375
386
|
_this.h = a;
|
|
376
387
|
_this.h.ah();
|
|
377
|
-
_this.
|
|
388
|
+
_this.ce();
|
|
378
389
|
return _this;
|
|
379
390
|
}
|
|
380
|
-
DatePicker.prototype.
|
|
391
|
+
DatePicker.prototype.cz = function (a, b) {
|
|
381
392
|
if (this.u != null) {
|
|
382
393
|
this.ah = true;
|
|
383
|
-
this.
|
|
394
|
+
this.cg();
|
|
384
395
|
}
|
|
385
|
-
this.
|
|
396
|
+
this.c8();
|
|
386
397
|
if (this.selectedValueChanged != null) {
|
|
387
398
|
this.selectedValueChanged(this, ((function () {
|
|
388
399
|
var $ret = new SelectedValueChangedEventArgs();
|
|
@@ -391,7 +402,9 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
391
402
|
return $ret;
|
|
392
403
|
})()));
|
|
393
404
|
}
|
|
394
|
-
this.
|
|
405
|
+
if (this.ai) {
|
|
406
|
+
this.c3();
|
|
407
|
+
}
|
|
395
408
|
};
|
|
396
409
|
DatePicker.prototype.notifySizeChanged = function () {
|
|
397
410
|
this.h.af();
|
|
@@ -399,9 +412,9 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
399
412
|
DatePicker.prototype.destroy = function () {
|
|
400
413
|
if (this.c != null) {
|
|
401
414
|
var a = this.c;
|
|
402
|
-
a.selectedValueChanged = delegateRemove(a.selectedValueChanged, runOn(this, this.
|
|
415
|
+
a.selectedValueChanged = delegateRemove(a.selectedValueChanged, runOn(this, this.cd));
|
|
403
416
|
var b = this.c;
|
|
404
|
-
b.close = delegateRemove(b.close, runOn(this, this.
|
|
417
|
+
b.close = delegateRemove(b.close, runOn(this, this.cc));
|
|
405
418
|
}
|
|
406
419
|
this.provideContainer(null);
|
|
407
420
|
};
|
|
@@ -419,64 +432,64 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
419
432
|
}
|
|
420
433
|
return this.ae;
|
|
421
434
|
},
|
|
422
|
-
enumerable:
|
|
435
|
+
enumerable: false,
|
|
423
436
|
configurable: true
|
|
424
437
|
});
|
|
425
438
|
Object.defineProperty(DatePicker.prototype, "value", {
|
|
426
439
|
get: function () {
|
|
427
|
-
return this.
|
|
440
|
+
return this.a0;
|
|
428
441
|
},
|
|
429
442
|
set: function (a) {
|
|
430
|
-
var b = this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
if (+b != +(this.
|
|
434
|
-
this.
|
|
443
|
+
var b = this.a0;
|
|
444
|
+
this.ay = b;
|
|
445
|
+
this.a0 = a;
|
|
446
|
+
if (+b != +(this.a0)) {
|
|
447
|
+
this.cy("Value", b, this.a0);
|
|
435
448
|
}
|
|
436
449
|
},
|
|
437
|
-
enumerable:
|
|
450
|
+
enumerable: false,
|
|
438
451
|
configurable: true
|
|
439
452
|
});
|
|
440
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
453
|
+
Object.defineProperty(DatePicker.prototype, "a3", {
|
|
441
454
|
get: function () {
|
|
442
|
-
return this.
|
|
455
|
+
return this.az;
|
|
443
456
|
},
|
|
444
457
|
set: function (a) {
|
|
445
|
-
var b = this.
|
|
446
|
-
this.
|
|
447
|
-
if (+b != +(this.
|
|
448
|
-
this.
|
|
458
|
+
var b = this.az;
|
|
459
|
+
this.az = a;
|
|
460
|
+
if (+b != +(this.az)) {
|
|
461
|
+
this.cy("Today", b, this.az);
|
|
449
462
|
}
|
|
450
463
|
},
|
|
451
|
-
enumerable:
|
|
464
|
+
enumerable: false,
|
|
452
465
|
configurable: true
|
|
453
466
|
});
|
|
454
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
467
|
+
Object.defineProperty(DatePicker.prototype, "bv", {
|
|
455
468
|
get: function () {
|
|
456
|
-
return this.
|
|
469
|
+
return this.bc;
|
|
457
470
|
},
|
|
458
471
|
set: function (a) {
|
|
459
|
-
var b = this.
|
|
460
|
-
this.
|
|
461
|
-
if (b != this.
|
|
462
|
-
this.
|
|
472
|
+
var b = this.bc;
|
|
473
|
+
this.bc = a;
|
|
474
|
+
if (b != this.bc) {
|
|
475
|
+
this.cy("Label", b, this.bc);
|
|
463
476
|
}
|
|
464
477
|
},
|
|
465
|
-
enumerable:
|
|
478
|
+
enumerable: false,
|
|
466
479
|
configurable: true
|
|
467
480
|
});
|
|
468
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
481
|
+
Object.defineProperty(DatePicker.prototype, "dh", {
|
|
469
482
|
get: function () {
|
|
470
|
-
return this.
|
|
483
|
+
return this.de;
|
|
471
484
|
},
|
|
472
485
|
set: function (a) {
|
|
473
|
-
var b = this.
|
|
474
|
-
this.
|
|
475
|
-
if (b != this.
|
|
476
|
-
this.
|
|
486
|
+
var b = this.de;
|
|
487
|
+
this.de = a;
|
|
488
|
+
if (b != this.de) {
|
|
489
|
+
this.cy("LabelTextColor", b, a);
|
|
477
490
|
}
|
|
478
491
|
},
|
|
479
|
-
enumerable:
|
|
492
|
+
enumerable: false,
|
|
480
493
|
configurable: true
|
|
481
494
|
});
|
|
482
495
|
Object.defineProperty(DatePicker.prototype, "ac", {
|
|
@@ -487,52 +500,52 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
487
500
|
var b = this.z;
|
|
488
501
|
this.z = a;
|
|
489
502
|
if (b != this.z) {
|
|
490
|
-
this.
|
|
503
|
+
this.cy("LabelTextStyle", b, this.z);
|
|
491
504
|
}
|
|
492
505
|
},
|
|
493
|
-
enumerable:
|
|
506
|
+
enumerable: false,
|
|
494
507
|
configurable: true
|
|
495
508
|
});
|
|
496
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
509
|
+
Object.defineProperty(DatePicker.prototype, "b2", {
|
|
497
510
|
get: function () {
|
|
498
|
-
return this.
|
|
511
|
+
return this.be;
|
|
499
512
|
},
|
|
500
513
|
set: function (a) {
|
|
501
|
-
var b = this.
|
|
502
|
-
this.
|
|
503
|
-
if (b != this.
|
|
504
|
-
this.
|
|
514
|
+
var b = this.be;
|
|
515
|
+
this.be = a;
|
|
516
|
+
if (b != this.be) {
|
|
517
|
+
this.cy("Placeholder", b, this.be);
|
|
505
518
|
}
|
|
506
519
|
},
|
|
507
|
-
enumerable:
|
|
520
|
+
enumerable: false,
|
|
508
521
|
configurable: true
|
|
509
522
|
});
|
|
510
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
523
|
+
Object.defineProperty(DatePicker.prototype, "a2", {
|
|
511
524
|
get: function () {
|
|
512
|
-
return this.
|
|
525
|
+
return this.ax;
|
|
513
526
|
},
|
|
514
527
|
set: function (a) {
|
|
515
|
-
var b = this.
|
|
516
|
-
this.
|
|
517
|
-
if (+b != +(this.
|
|
518
|
-
this.
|
|
528
|
+
var b = this.ax;
|
|
529
|
+
this.ax = a;
|
|
530
|
+
if (+b != +(this.ax)) {
|
|
531
|
+
this.cy("MinDate", b, this.ax);
|
|
519
532
|
}
|
|
520
533
|
},
|
|
521
|
-
enumerable:
|
|
534
|
+
enumerable: false,
|
|
522
535
|
configurable: true
|
|
523
536
|
});
|
|
524
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
537
|
+
Object.defineProperty(DatePicker.prototype, "a1", {
|
|
525
538
|
get: function () {
|
|
526
|
-
return this.
|
|
539
|
+
return this.aw;
|
|
527
540
|
},
|
|
528
541
|
set: function (a) {
|
|
529
|
-
var b = this.
|
|
530
|
-
this.
|
|
531
|
-
if (+b != +(this.
|
|
532
|
-
this.
|
|
542
|
+
var b = this.aw;
|
|
543
|
+
this.aw = a;
|
|
544
|
+
if (+b != +(this.aw)) {
|
|
545
|
+
this.cy("MaxDate", b, this.aw);
|
|
533
546
|
}
|
|
534
547
|
},
|
|
535
|
-
enumerable:
|
|
548
|
+
enumerable: false,
|
|
536
549
|
configurable: true
|
|
537
550
|
});
|
|
538
551
|
Object.defineProperty(DatePicker.prototype, "y", {
|
|
@@ -543,10 +556,10 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
543
556
|
var b = this.x;
|
|
544
557
|
this.x = a;
|
|
545
558
|
if (b != this.x) {
|
|
546
|
-
this.
|
|
559
|
+
this.cy("Density", enumGetBox(ControlDisplayDensity_$type, b), enumGetBox(ControlDisplayDensity_$type, this.x));
|
|
547
560
|
}
|
|
548
561
|
},
|
|
549
|
-
enumerable:
|
|
562
|
+
enumerable: false,
|
|
550
563
|
configurable: true
|
|
551
564
|
});
|
|
552
565
|
Object.defineProperty(DatePicker.prototype, "w", {
|
|
@@ -557,10 +570,10 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
557
570
|
var b = this.v;
|
|
558
571
|
this.v = a;
|
|
559
572
|
if (b != this.v) {
|
|
560
|
-
this.
|
|
573
|
+
this.cy("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, this.v));
|
|
561
574
|
}
|
|
562
575
|
},
|
|
563
|
-
enumerable:
|
|
576
|
+
enumerable: false,
|
|
564
577
|
configurable: true
|
|
565
578
|
});
|
|
566
579
|
Object.defineProperty(DatePicker.prototype, "ad", {
|
|
@@ -571,69 +584,69 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
571
584
|
var b = this.aa;
|
|
572
585
|
this.aa = a;
|
|
573
586
|
if (b != this.aa) {
|
|
574
|
-
this.
|
|
587
|
+
this.cy("TextStyle", b, this.aa);
|
|
575
588
|
}
|
|
576
589
|
},
|
|
577
|
-
enumerable:
|
|
590
|
+
enumerable: false,
|
|
578
591
|
configurable: true
|
|
579
592
|
});
|
|
580
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
593
|
+
Object.defineProperty(DatePicker.prototype, "di", {
|
|
581
594
|
get: function () {
|
|
582
|
-
return this.
|
|
595
|
+
return this.df;
|
|
583
596
|
},
|
|
584
597
|
set: function (a) {
|
|
585
|
-
var b = this.
|
|
586
|
-
this.
|
|
587
|
-
if (b != this.
|
|
588
|
-
this.
|
|
598
|
+
var b = this.df;
|
|
599
|
+
this.df = a;
|
|
600
|
+
if (b != this.df) {
|
|
601
|
+
this.cy("TextColor", b, this.df);
|
|
589
602
|
}
|
|
590
603
|
},
|
|
591
|
-
enumerable:
|
|
604
|
+
enumerable: false,
|
|
592
605
|
configurable: true
|
|
593
606
|
});
|
|
594
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
607
|
+
Object.defineProperty(DatePicker.prototype, "dg", {
|
|
595
608
|
get: function () {
|
|
596
|
-
return this.
|
|
609
|
+
return this.dd;
|
|
597
610
|
},
|
|
598
611
|
set: function (a) {
|
|
599
|
-
var b = this.
|
|
600
|
-
this.
|
|
601
|
-
if (b != this.
|
|
602
|
-
this.
|
|
612
|
+
var b = this.dd;
|
|
613
|
+
this.dd = a;
|
|
614
|
+
if (b != this.dd) {
|
|
615
|
+
this.cy("IconColor", b, this.dd);
|
|
603
616
|
}
|
|
604
617
|
},
|
|
605
|
-
enumerable:
|
|
618
|
+
enumerable: false,
|
|
606
619
|
configurable: true
|
|
607
620
|
});
|
|
608
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
621
|
+
Object.defineProperty(DatePicker.prototype, "at", {
|
|
609
622
|
get: function () {
|
|
610
|
-
return this.
|
|
623
|
+
return this.al;
|
|
611
624
|
},
|
|
612
625
|
set: function (a) {
|
|
613
|
-
var b = this.
|
|
614
|
-
this.
|
|
615
|
-
if (b != this.
|
|
616
|
-
this.
|
|
626
|
+
var b = this.al;
|
|
627
|
+
this.al = a;
|
|
628
|
+
if (b != this.al) {
|
|
629
|
+
this.cy("ShowClearButton", b, this.al);
|
|
617
630
|
}
|
|
618
631
|
},
|
|
619
|
-
enumerable:
|
|
632
|
+
enumerable: false,
|
|
620
633
|
configurable: true
|
|
621
634
|
});
|
|
622
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
635
|
+
Object.defineProperty(DatePicker.prototype, "au", {
|
|
623
636
|
get: function () {
|
|
624
|
-
return this.
|
|
637
|
+
return this.am;
|
|
625
638
|
},
|
|
626
639
|
set: function (a) {
|
|
627
|
-
var b = this.
|
|
628
|
-
this.
|
|
629
|
-
if (b != this.
|
|
630
|
-
this.
|
|
640
|
+
var b = this.am;
|
|
641
|
+
this.am = a;
|
|
642
|
+
if (b != this.am) {
|
|
643
|
+
this.cy("ShowTodayButton", b, this.am);
|
|
631
644
|
}
|
|
632
645
|
},
|
|
633
|
-
enumerable:
|
|
646
|
+
enumerable: false,
|
|
634
647
|
configurable: true
|
|
635
648
|
});
|
|
636
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
649
|
+
Object.defineProperty(DatePicker.prototype, "aq", {
|
|
637
650
|
get: function () {
|
|
638
651
|
return this.ag;
|
|
639
652
|
},
|
|
@@ -641,24 +654,24 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
641
654
|
var b = this.ag;
|
|
642
655
|
this.ag = a;
|
|
643
656
|
if (b != this.ag) {
|
|
644
|
-
this.
|
|
657
|
+
this.cy("AllowTextInput", b, this.ag);
|
|
645
658
|
}
|
|
646
659
|
},
|
|
647
|
-
enumerable:
|
|
660
|
+
enumerable: false,
|
|
648
661
|
configurable: true
|
|
649
662
|
});
|
|
650
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
663
|
+
Object.defineProperty(DatePicker.prototype, "as", {
|
|
651
664
|
get: function () {
|
|
652
|
-
return this.
|
|
665
|
+
return this.ak;
|
|
653
666
|
},
|
|
654
667
|
set: function (a) {
|
|
655
|
-
var b = this.
|
|
656
|
-
this.
|
|
657
|
-
if (b != this.
|
|
658
|
-
this.
|
|
668
|
+
var b = this.ak;
|
|
669
|
+
this.ak = a;
|
|
670
|
+
if (b != this.ak) {
|
|
671
|
+
this.cy("OpenOnFocus", b, this.ak);
|
|
659
672
|
}
|
|
660
673
|
},
|
|
661
|
-
enumerable:
|
|
674
|
+
enumerable: false,
|
|
662
675
|
configurable: true
|
|
663
676
|
});
|
|
664
677
|
Object.defineProperty(DatePicker.prototype, "j", {
|
|
@@ -669,10 +682,10 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
669
682
|
var b = this.i;
|
|
670
683
|
this.i = a;
|
|
671
684
|
if (b != this.i) {
|
|
672
|
-
this.
|
|
685
|
+
this.cy("FirstDayOfWeek", enumGetBox(DayOfWeek_$type, b), enumGetBox(DayOfWeek_$type, this.i));
|
|
673
686
|
}
|
|
674
687
|
},
|
|
675
|
-
enumerable:
|
|
688
|
+
enumerable: false,
|
|
676
689
|
configurable: true
|
|
677
690
|
});
|
|
678
691
|
Object.defineProperty(DatePicker.prototype, "l", {
|
|
@@ -683,24 +696,24 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
683
696
|
var b = this.k;
|
|
684
697
|
this.k = a;
|
|
685
698
|
if (b != this.k) {
|
|
686
|
-
this.
|
|
699
|
+
this.cy("FirstWeekOfYear", enumGetBox(FirstWeek_$type, b), enumGetBox(FirstWeek_$type, this.k));
|
|
687
700
|
}
|
|
688
701
|
},
|
|
689
|
-
enumerable:
|
|
702
|
+
enumerable: false,
|
|
690
703
|
configurable: true
|
|
691
704
|
});
|
|
692
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
705
|
+
Object.defineProperty(DatePicker.prototype, "av", {
|
|
693
706
|
get: function () {
|
|
694
|
-
return this.
|
|
707
|
+
return this.an;
|
|
695
708
|
},
|
|
696
709
|
set: function (a) {
|
|
697
|
-
var b = this.
|
|
698
|
-
this.
|
|
699
|
-
if (b != this.
|
|
700
|
-
this.
|
|
710
|
+
var b = this.an;
|
|
711
|
+
this.an = a;
|
|
712
|
+
if (b != this.an) {
|
|
713
|
+
this.cy("ShowWeekNumbers", b, this.an);
|
|
701
714
|
}
|
|
702
715
|
},
|
|
703
|
-
enumerable:
|
|
716
|
+
enumerable: false,
|
|
704
717
|
configurable: true
|
|
705
718
|
});
|
|
706
719
|
Object.defineProperty(DatePicker.prototype, "e", {
|
|
@@ -711,70 +724,86 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
711
724
|
var b = this.d;
|
|
712
725
|
this.d = a;
|
|
713
726
|
if (this.d != b) {
|
|
714
|
-
this.
|
|
727
|
+
this.cy("DateFormat", enumGetBox(DateFormats_$type, b), enumGetBox(DateFormats_$type, this.d));
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
enumerable: false,
|
|
731
|
+
configurable: true
|
|
732
|
+
});
|
|
733
|
+
Object.defineProperty(DatePicker.prototype, "br", {
|
|
734
|
+
get: function () {
|
|
735
|
+
return this.bb;
|
|
736
|
+
},
|
|
737
|
+
set: function (a) {
|
|
738
|
+
var b = this.bb;
|
|
739
|
+
this.bb = a;
|
|
740
|
+
if (b != this.bb) {
|
|
741
|
+
this.cy("FormatString", b, this.bb);
|
|
715
742
|
}
|
|
716
743
|
},
|
|
717
|
-
enumerable:
|
|
744
|
+
enumerable: false,
|
|
718
745
|
configurable: true
|
|
719
746
|
});
|
|
720
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
747
|
+
Object.defineProperty(DatePicker.prototype, "ar", {
|
|
721
748
|
get: function () {
|
|
722
|
-
return this.
|
|
749
|
+
return this.aj;
|
|
723
750
|
},
|
|
724
751
|
set: function (a) {
|
|
725
|
-
var b = this.
|
|
726
|
-
this.
|
|
727
|
-
if (b != this.
|
|
728
|
-
this.
|
|
752
|
+
var b = this.aj;
|
|
753
|
+
this.aj = a;
|
|
754
|
+
if (b != this.aj) {
|
|
755
|
+
this.cy("IsDisabled", b, this.aj);
|
|
729
756
|
}
|
|
730
757
|
},
|
|
731
|
-
enumerable:
|
|
758
|
+
enumerable: false,
|
|
732
759
|
configurable: true
|
|
733
760
|
});
|
|
734
|
-
Object.defineProperty(DatePicker.prototype, "
|
|
761
|
+
Object.defineProperty(DatePicker.prototype, "a7", {
|
|
735
762
|
get: function () {
|
|
736
|
-
return this.
|
|
763
|
+
return this.a6;
|
|
737
764
|
},
|
|
738
765
|
set: function (a) {
|
|
739
|
-
var b = this.
|
|
740
|
-
this.
|
|
741
|
-
if (b != this.
|
|
742
|
-
this.
|
|
766
|
+
var b = this.a6;
|
|
767
|
+
this.a6 = a;
|
|
768
|
+
if (b != this.a6) {
|
|
769
|
+
this.cy("TabIndex", b, this.a6);
|
|
743
770
|
}
|
|
744
771
|
},
|
|
745
|
-
enumerable:
|
|
772
|
+
enumerable: false,
|
|
746
773
|
configurable: true
|
|
747
774
|
});
|
|
748
|
-
DatePicker.prototype.
|
|
775
|
+
DatePicker.prototype.cy = function (a, b, c) {
|
|
749
776
|
if (this.propertyChanged != null) {
|
|
750
777
|
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
751
778
|
}
|
|
752
|
-
this.
|
|
779
|
+
this.c1(a, b, c);
|
|
753
780
|
};
|
|
754
|
-
DatePicker.prototype.
|
|
781
|
+
DatePicker.prototype.c1 = function (a, b, c) {
|
|
755
782
|
switch (a) {
|
|
756
783
|
case "Density":
|
|
757
|
-
this.
|
|
784
|
+
this.c4();
|
|
758
785
|
break;
|
|
759
786
|
case "BaseTheme":
|
|
760
|
-
this.
|
|
787
|
+
this.c6();
|
|
761
788
|
break;
|
|
762
789
|
case "Value":
|
|
763
790
|
if (+(this.value) != +(dateMinValue())) {
|
|
764
|
-
if (dateGetDate(this.value) < dateGetDate(this.
|
|
765
|
-
this.
|
|
791
|
+
if (dateGetDate(this.value) < dateGetDate(this.a2) || dateGetDate(this.value) > dateGetDate(this.a1)) {
|
|
792
|
+
this.ai = true;
|
|
793
|
+
this.value = this.ay;
|
|
794
|
+
this.ai = false;
|
|
766
795
|
}
|
|
767
796
|
}
|
|
768
|
-
this.
|
|
769
|
-
this.
|
|
797
|
+
this.cz(this.ay, this.value);
|
|
798
|
+
this.ay = this.value;
|
|
770
799
|
if (this.c != null) {
|
|
771
800
|
this.c.value = this.value;
|
|
772
801
|
}
|
|
773
802
|
break;
|
|
774
803
|
case "Label":
|
|
775
804
|
if (this.r != null) {
|
|
776
|
-
this.r.text = this.
|
|
777
|
-
if (this.
|
|
805
|
+
this.r.text = this.bv;
|
|
806
|
+
if (this.bv != null && this.bv != "") {
|
|
778
807
|
if (!this.q.inputs.contains(this.r)) {
|
|
779
808
|
this.q.inputs.insert(0, this.r);
|
|
780
809
|
}
|
|
@@ -788,48 +817,52 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
788
817
|
break;
|
|
789
818
|
case "Placeholder":
|
|
790
819
|
if (this.o != null) {
|
|
791
|
-
this.o.
|
|
792
|
-
this.h.
|
|
820
|
+
this.o.cg = this.b2;
|
|
821
|
+
this.h.as(this.b2);
|
|
793
822
|
}
|
|
794
823
|
break;
|
|
795
824
|
case "Today":
|
|
796
825
|
if (this.c != null) {
|
|
797
|
-
this.c.av = this.
|
|
826
|
+
this.c.av = this.a3;
|
|
798
827
|
}
|
|
799
828
|
break;
|
|
800
829
|
case "MaxDate":
|
|
801
830
|
if (this.c != null) {
|
|
802
|
-
var d = Base.compareSimple(this.
|
|
831
|
+
var d = Base.compareSimple(this.a2, this.a1);
|
|
803
832
|
if (d >= 0) {
|
|
804
|
-
this.
|
|
833
|
+
this.a1 = dateMaxValue();
|
|
805
834
|
}
|
|
806
|
-
this.c.at = this.
|
|
835
|
+
this.c.at = this.aw;
|
|
807
836
|
}
|
|
808
|
-
if (dateGetDate(this.value) > dateGetDate(this.
|
|
809
|
-
this.
|
|
837
|
+
if (dateGetDate(this.value) > dateGetDate(this.a1)) {
|
|
838
|
+
this.ay = dateMinValue();
|
|
839
|
+
this.ai = true;
|
|
810
840
|
this.value = dateMinValue();
|
|
841
|
+
this.ai = false;
|
|
811
842
|
}
|
|
812
843
|
break;
|
|
813
844
|
case "MinDate":
|
|
814
845
|
if (this.c != null) {
|
|
815
|
-
this.c.au = this.
|
|
816
|
-
var e = Base.compareSimple(this.
|
|
846
|
+
this.c.au = this.ax;
|
|
847
|
+
var e = Base.compareSimple(this.a2, this.a1);
|
|
817
848
|
if (e >= 0) {
|
|
818
|
-
this.
|
|
819
|
-
this.c.at = this.
|
|
849
|
+
this.ay = dateMaxValue();
|
|
850
|
+
this.c.at = this.a1;
|
|
820
851
|
}
|
|
821
852
|
}
|
|
822
|
-
if (dateGetDate(this.value) < dateGetDate(this.
|
|
823
|
-
this.
|
|
853
|
+
if (dateGetDate(this.value) < dateGetDate(this.a2)) {
|
|
854
|
+
this.ay = dateMinValue();
|
|
855
|
+
this.ai = true;
|
|
824
856
|
this.value = dateMinValue();
|
|
857
|
+
this.ai = false;
|
|
825
858
|
}
|
|
826
859
|
break;
|
|
827
860
|
case "TextStyle":
|
|
828
|
-
this.
|
|
861
|
+
this.c9();
|
|
829
862
|
break;
|
|
830
863
|
case "ShowClearButton":
|
|
831
864
|
if (this.o != null) {
|
|
832
|
-
if (this.o.
|
|
865
|
+
if (this.o.cq != "") {
|
|
833
866
|
this.h.ap();
|
|
834
867
|
}
|
|
835
868
|
}
|
|
@@ -838,27 +871,27 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
838
871
|
case "LabelTextStyle":
|
|
839
872
|
case "TextColor":
|
|
840
873
|
case "IconColor":
|
|
841
|
-
this.
|
|
874
|
+
this.da();
|
|
842
875
|
break;
|
|
843
876
|
case "ShowTodayButton":
|
|
844
877
|
if (this.c != null) {
|
|
845
|
-
this.c.ae = this.
|
|
878
|
+
this.c.ae = this.au;
|
|
846
879
|
this.h.y();
|
|
847
880
|
}
|
|
848
881
|
break;
|
|
849
882
|
case "AllowTextInput":
|
|
850
883
|
if (this.o != null) {
|
|
851
|
-
this.o.disabled = !this.
|
|
884
|
+
this.o.disabled = !this.aq;
|
|
852
885
|
}
|
|
853
886
|
break;
|
|
854
887
|
case "OpenOnFocus": break;
|
|
855
888
|
case "DateFormat":
|
|
856
889
|
this.a.k(this.e);
|
|
857
|
-
this.
|
|
890
|
+
this.c8();
|
|
858
891
|
break;
|
|
859
892
|
case "FormatString":
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
893
|
+
this.ce();
|
|
894
|
+
this.c8();
|
|
862
895
|
break;
|
|
863
896
|
case "FirstDayOfWeek":
|
|
864
897
|
if (this.c != null) {
|
|
@@ -867,7 +900,7 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
867
900
|
break;
|
|
868
901
|
case "ShowWeekNumbers":
|
|
869
902
|
if (this.c != null) {
|
|
870
|
-
this.c.af = this.
|
|
903
|
+
this.c.af = this.av;
|
|
871
904
|
this.h.y();
|
|
872
905
|
}
|
|
873
906
|
break;
|
|
@@ -879,18 +912,21 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
879
912
|
case "IsDisabled":
|
|
880
913
|
{
|
|
881
914
|
if (this.q != null) {
|
|
882
|
-
this.q.disabled = this.
|
|
915
|
+
this.q.disabled = this.ar;
|
|
883
916
|
}
|
|
884
917
|
if (this.o != null) {
|
|
885
|
-
this.o.disabled = this.
|
|
918
|
+
this.o.disabled = this.ar;
|
|
886
919
|
}
|
|
887
920
|
}
|
|
888
921
|
break;
|
|
922
|
+
case "TabIndex":
|
|
923
|
+
this.h.ar();
|
|
924
|
+
break;
|
|
889
925
|
}
|
|
890
926
|
};
|
|
891
|
-
DatePicker.prototype.
|
|
927
|
+
DatePicker.prototype.ce = function () {
|
|
892
928
|
var a = '/';
|
|
893
|
-
var b = this.
|
|
929
|
+
var b = this.br != null ? this.br.toLowerCase() : this.a.j();
|
|
894
930
|
if (stringContains(b, "/")) {
|
|
895
931
|
a = '/';
|
|
896
932
|
}
|
|
@@ -906,7 +942,7 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
906
942
|
else if (stringContains(b, ",")) {
|
|
907
943
|
a = ',';
|
|
908
944
|
}
|
|
909
|
-
this.
|
|
945
|
+
this.bf = a.toString();
|
|
910
946
|
var c = b.split(a);
|
|
911
947
|
if (c.length == 3) {
|
|
912
948
|
var d = "";
|
|
@@ -915,19 +951,19 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
915
951
|
d += "d";
|
|
916
952
|
switch (c[e]) {
|
|
917
953
|
case "d":
|
|
918
|
-
this.
|
|
954
|
+
this.a9 = c[e];
|
|
919
955
|
break;
|
|
920
956
|
case "dd":
|
|
921
|
-
this.
|
|
957
|
+
this.a9 = c[e];
|
|
922
958
|
break;
|
|
923
959
|
case "ddd":
|
|
924
|
-
this.
|
|
960
|
+
this.a9 = c[e];
|
|
925
961
|
break;
|
|
926
962
|
case "dddd":
|
|
927
|
-
this.
|
|
963
|
+
this.a9 = c[e];
|
|
928
964
|
break;
|
|
929
965
|
default:
|
|
930
|
-
this.
|
|
966
|
+
this.a9 = "dd";
|
|
931
967
|
break;
|
|
932
968
|
}
|
|
933
969
|
}
|
|
@@ -935,125 +971,125 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
935
971
|
d += "m";
|
|
936
972
|
switch (c[e]) {
|
|
937
973
|
case "m":
|
|
938
|
-
this.
|
|
974
|
+
this.bd = c[e];
|
|
939
975
|
break;
|
|
940
976
|
case "mm":
|
|
941
|
-
this.
|
|
977
|
+
this.bd = c[e];
|
|
942
978
|
break;
|
|
943
979
|
case "mmm":
|
|
944
|
-
this.
|
|
980
|
+
this.bd = c[e];
|
|
945
981
|
break;
|
|
946
982
|
case "mmmm":
|
|
947
|
-
this.
|
|
983
|
+
this.bd = c[e];
|
|
948
984
|
break;
|
|
949
985
|
default:
|
|
950
|
-
this.
|
|
986
|
+
this.bd = "mm";
|
|
951
987
|
break;
|
|
952
988
|
}
|
|
953
|
-
this.
|
|
989
|
+
this.bd = c[e];
|
|
954
990
|
}
|
|
955
991
|
else if (stringContains(c[e], "y")) {
|
|
956
992
|
d += "y";
|
|
957
993
|
switch (c[e]) {
|
|
958
994
|
case "yy":
|
|
959
|
-
this.
|
|
995
|
+
this.bg = c[e];
|
|
960
996
|
break;
|
|
961
997
|
case "yyyy":
|
|
962
|
-
this.
|
|
998
|
+
this.bg = c[e];
|
|
963
999
|
break;
|
|
964
1000
|
default:
|
|
965
|
-
this.
|
|
1001
|
+
this.bg = "yyyy";
|
|
966
1002
|
break;
|
|
967
1003
|
}
|
|
968
1004
|
}
|
|
969
1005
|
}
|
|
970
1006
|
if (d == "dmy" || d == "mdy" || d == "ymd") {
|
|
971
|
-
this.
|
|
1007
|
+
this.ba = d;
|
|
972
1008
|
}
|
|
973
1009
|
else {
|
|
974
|
-
this.
|
|
1010
|
+
this.ba = "mdy";
|
|
975
1011
|
}
|
|
976
1012
|
}
|
|
977
1013
|
};
|
|
978
|
-
DatePicker.prototype.
|
|
1014
|
+
DatePicker.prototype.da = function () {
|
|
979
1015
|
if (this.o != null) {
|
|
980
|
-
this.o.
|
|
1016
|
+
this.o.d8 = this.di;
|
|
981
1017
|
}
|
|
982
1018
|
if (this.m != null) {
|
|
983
|
-
this.m.fill = this.
|
|
1019
|
+
this.m.fill = this.dg;
|
|
984
1020
|
}
|
|
985
1021
|
if (this.n != null) {
|
|
986
|
-
this.n.fill = this.
|
|
1022
|
+
this.n.fill = this.dg;
|
|
987
1023
|
}
|
|
988
1024
|
if (this.r != null) {
|
|
989
|
-
this.r.df = this.
|
|
1025
|
+
this.r.df = this.dh;
|
|
990
1026
|
this.r.y = this.ac;
|
|
991
1027
|
}
|
|
992
1028
|
};
|
|
993
|
-
DatePicker.prototype.
|
|
1029
|
+
DatePicker.prototype.c7 = function () {
|
|
994
1030
|
if (this.q != null) {
|
|
995
1031
|
}
|
|
996
1032
|
};
|
|
997
|
-
DatePicker.prototype.
|
|
1033
|
+
DatePicker.prototype.c9 = function () {
|
|
998
1034
|
if (this.aa != null) {
|
|
999
1035
|
this.o.af = this.aa;
|
|
1000
1036
|
}
|
|
1001
1037
|
};
|
|
1002
|
-
DatePicker.prototype.
|
|
1038
|
+
DatePicker.prototype.ch = function () {
|
|
1003
1039
|
this.q = new XInputGroup();
|
|
1004
1040
|
this.h.ak(this.q);
|
|
1005
1041
|
this.q.d = 0;
|
|
1006
|
-
this.q.
|
|
1007
|
-
this.q.
|
|
1042
|
+
this.q.p = this.w;
|
|
1043
|
+
this.q.t = this.y;
|
|
1008
1044
|
this.r = new XLabel();
|
|
1009
1045
|
this.h.am(this.r);
|
|
1010
|
-
this.r.df = this.
|
|
1046
|
+
this.r.df = this.dh;
|
|
1011
1047
|
this.r.y = this.ac;
|
|
1012
1048
|
this.q.appendContentChild(this.h.u());
|
|
1013
|
-
if (this.
|
|
1014
|
-
this.r.text = this.
|
|
1049
|
+
if (this.bv != null && this.bv != "") {
|
|
1050
|
+
this.r.text = this.bv;
|
|
1015
1051
|
this.q.inputs.add(this.r);
|
|
1016
1052
|
}
|
|
1017
1053
|
this.o = new XInput();
|
|
1018
1054
|
this.h.al(this.o);
|
|
1019
|
-
this.o.
|
|
1055
|
+
this.o.b8 = "text";
|
|
1020
1056
|
if (this.aa != null) {
|
|
1021
1057
|
this.o.af = this.aa;
|
|
1022
1058
|
}
|
|
1023
|
-
this.o.disabled = !this.
|
|
1024
|
-
this.o.
|
|
1059
|
+
this.o.disabled = !this.aq;
|
|
1060
|
+
this.o.d8 = this.di;
|
|
1025
1061
|
this.q.appendContentChild(this.h.t());
|
|
1026
1062
|
this.q.inputs.add(this.o);
|
|
1027
|
-
this.o.
|
|
1028
|
-
this.h.
|
|
1063
|
+
this.o.cg = this.b2;
|
|
1064
|
+
this.h.as(this.b2);
|
|
1029
1065
|
var a = this.o;
|
|
1030
|
-
a.change = delegateCombine(a.change, runOn(this, this.
|
|
1066
|
+
a.change = delegateCombine(a.change, runOn(this, this.co));
|
|
1031
1067
|
var b = this.o;
|
|
1032
|
-
b.changing = delegateCombine(b.changing, runOn(this, this.
|
|
1068
|
+
b.changing = delegateCombine(b.changing, runOn(this, this.cp));
|
|
1033
1069
|
var c = this.o;
|
|
1034
|
-
c.keyDown = delegateCombine(c.keyDown, runOn(this, this.
|
|
1070
|
+
c.keyDown = delegateCombine(c.keyDown, runOn(this, this.cq));
|
|
1035
1071
|
var d = new XSuffix();
|
|
1036
1072
|
this.h.ao(d, this.h.q());
|
|
1037
1073
|
this.m = new XIcon();
|
|
1038
1074
|
this.h.aj(this.m, this.h.p());
|
|
1039
|
-
this.m.svgPath = DatePicker.
|
|
1040
|
-
this.m.fill = this.
|
|
1075
|
+
this.m.svgPath = DatePicker.bk;
|
|
1076
|
+
this.m.fill = this.dg;
|
|
1041
1077
|
d.appendContentChild(this.h.p());
|
|
1042
1078
|
this.q.appendContentChild(this.h.q());
|
|
1043
1079
|
this.q.inputs.add(d);
|
|
1044
|
-
this.
|
|
1080
|
+
this.c8();
|
|
1045
1081
|
var e = new XSuffix();
|
|
1046
1082
|
this.h.ao(e, this.h.s());
|
|
1047
1083
|
this.n = new XIcon();
|
|
1048
1084
|
this.h.aj(this.n, this.h.r());
|
|
1049
|
-
this.n.svgPath = DatePicker.
|
|
1050
|
-
this.n.fill = this.
|
|
1085
|
+
this.n.svgPath = DatePicker.bj;
|
|
1086
|
+
this.n.fill = this.dg;
|
|
1051
1087
|
e.appendContentChild(this.h.r());
|
|
1052
1088
|
this.q.appendContentChild(this.h.s());
|
|
1053
1089
|
this.q.inputs.add(e);
|
|
1054
1090
|
};
|
|
1055
|
-
DatePicker.prototype.
|
|
1056
|
-
this.
|
|
1091
|
+
DatePicker.prototype.cq = function (a, b) {
|
|
1092
|
+
this.cw(b);
|
|
1057
1093
|
if (b.defaultPrevented) {
|
|
1058
1094
|
return;
|
|
1059
1095
|
}
|
|
@@ -1061,38 +1097,38 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1061
1097
|
var d = b.modifiers;
|
|
1062
1098
|
switch (c) {
|
|
1063
1099
|
case 9:
|
|
1064
|
-
this.
|
|
1065
|
-
if (!this.
|
|
1066
|
-
this.
|
|
1100
|
+
this.ao = true;
|
|
1101
|
+
if (!this.ap) {
|
|
1102
|
+
this.dc(this.o.cq);
|
|
1067
1103
|
}
|
|
1068
1104
|
this.ah = true;
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1105
|
+
this.cg();
|
|
1106
|
+
this.ao = false;
|
|
1071
1107
|
break;
|
|
1072
1108
|
case 13:
|
|
1073
|
-
this.
|
|
1074
|
-
if (!this.
|
|
1075
|
-
this.
|
|
1109
|
+
this.ao = true;
|
|
1110
|
+
if (!this.ap) {
|
|
1111
|
+
this.dc(this.o.cq);
|
|
1076
1112
|
}
|
|
1077
1113
|
this.ah = true;
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1114
|
+
this.cg();
|
|
1115
|
+
this.ao = false;
|
|
1080
1116
|
break;
|
|
1081
1117
|
case 40:
|
|
1082
1118
|
if (d == 1) {
|
|
1083
|
-
this.
|
|
1084
|
-
this.
|
|
1119
|
+
this.c0();
|
|
1120
|
+
this.cl();
|
|
1085
1121
|
}
|
|
1086
1122
|
break;
|
|
1087
1123
|
case 38:
|
|
1088
1124
|
if (d == 1) {
|
|
1089
|
-
this.
|
|
1125
|
+
this.cg();
|
|
1090
1126
|
}
|
|
1091
1127
|
break;
|
|
1092
1128
|
}
|
|
1093
1129
|
};
|
|
1094
|
-
DatePicker.prototype.
|
|
1095
|
-
this.
|
|
1130
|
+
DatePicker.prototype.cp = function (a, b) {
|
|
1131
|
+
this.cs(b);
|
|
1096
1132
|
if (b.value.length > 0) {
|
|
1097
1133
|
this.h.ap();
|
|
1098
1134
|
}
|
|
@@ -1100,12 +1136,12 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1100
1136
|
this.h.ae();
|
|
1101
1137
|
}
|
|
1102
1138
|
};
|
|
1103
|
-
DatePicker.prototype.
|
|
1104
|
-
this.
|
|
1105
|
-
this.
|
|
1106
|
-
this.
|
|
1139
|
+
DatePicker.prototype.co = function (a, b) {
|
|
1140
|
+
this.ap = true;
|
|
1141
|
+
this.dc(b.value);
|
|
1142
|
+
this.ap = false;
|
|
1107
1143
|
};
|
|
1108
|
-
DatePicker.prototype.
|
|
1144
|
+
DatePicker.prototype.dc = function (a) {
|
|
1109
1145
|
var b = ['/', '-', ' ', '.', ','];
|
|
1110
1146
|
var c = stringSplit(a, b, 1);
|
|
1111
1147
|
var d = 0;
|
|
@@ -1116,17 +1152,17 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1116
1152
|
if (c[0].length == 0 || c[1].length == 0 || c[2].length == 0) {
|
|
1117
1153
|
g = false;
|
|
1118
1154
|
}
|
|
1119
|
-
if (this.
|
|
1155
|
+
if (this.ba == "dmy") {
|
|
1120
1156
|
d = parseInt(c[0]);
|
|
1121
1157
|
e = parseInt(c[1]);
|
|
1122
1158
|
f = parseInt(c[2]);
|
|
1123
1159
|
}
|
|
1124
|
-
else if (this.
|
|
1160
|
+
else if (this.ba == "mdy") {
|
|
1125
1161
|
e = parseInt(c[0]);
|
|
1126
1162
|
d = parseInt(c[1]);
|
|
1127
1163
|
f = parseInt(c[2]);
|
|
1128
1164
|
}
|
|
1129
|
-
else if (this.
|
|
1165
|
+
else if (this.ba == "ymd") {
|
|
1130
1166
|
f = parseInt(c[0]);
|
|
1131
1167
|
e = parseInt(c[1]);
|
|
1132
1168
|
d = parseInt(c[2]);
|
|
@@ -1139,13 +1175,13 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1139
1175
|
}
|
|
1140
1176
|
if (isNaN_(e)) {
|
|
1141
1177
|
var h = "";
|
|
1142
|
-
if (this.
|
|
1178
|
+
if (this.ba == "dmy") {
|
|
1143
1179
|
h = c[1].toLowerCase();
|
|
1144
1180
|
}
|
|
1145
|
-
else if (this.
|
|
1181
|
+
else if (this.ba == "mdy") {
|
|
1146
1182
|
h = c[0].toLowerCase();
|
|
1147
1183
|
}
|
|
1148
|
-
else if (this.
|
|
1184
|
+
else if (this.ba == "ymd") {
|
|
1149
1185
|
h = c[1].toLowerCase();
|
|
1150
1186
|
}
|
|
1151
1187
|
var i = !stringIsNullOrWhiteSpace(this.af.b1("January_Full")) ? this.af.b1("January_Full").toLowerCase() : "january";
|
|
@@ -1221,45 +1257,45 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1221
1257
|
}
|
|
1222
1258
|
if (g) {
|
|
1223
1259
|
var ag = dateFromValues(f, e, d, 0, 0, 0, 0);
|
|
1224
|
-
var ah = Base.compareSimple(ag, this.
|
|
1225
|
-
var ai = Base.compareSimple(ag, this.
|
|
1260
|
+
var ah = Base.compareSimple(ag, this.a2);
|
|
1261
|
+
var ai = Base.compareSimple(ag, this.a1);
|
|
1226
1262
|
if (ah < 0 || ai > 0) {
|
|
1227
|
-
this.
|
|
1263
|
+
this.c8();
|
|
1228
1264
|
}
|
|
1229
1265
|
else {
|
|
1230
|
-
this.
|
|
1266
|
+
this.db(ag);
|
|
1231
1267
|
this.h.ap();
|
|
1232
1268
|
}
|
|
1233
1269
|
}
|
|
1234
1270
|
else {
|
|
1235
1271
|
if (stringIsNullOrEmpty(a)) {
|
|
1236
|
-
this.
|
|
1272
|
+
this.cf();
|
|
1237
1273
|
}
|
|
1238
1274
|
else {
|
|
1239
|
-
this.
|
|
1275
|
+
this.c8();
|
|
1240
1276
|
}
|
|
1241
1277
|
}
|
|
1242
1278
|
};
|
|
1243
|
-
DatePicker.prototype.
|
|
1279
|
+
DatePicker.prototype.db = function (a) {
|
|
1244
1280
|
var b = this.value;
|
|
1245
1281
|
this.value = a;
|
|
1246
1282
|
};
|
|
1247
|
-
DatePicker.prototype.
|
|
1283
|
+
DatePicker.prototype.c8 = function () {
|
|
1248
1284
|
if (this.o != null) {
|
|
1249
|
-
if (+(this.
|
|
1285
|
+
if (+(this.a0) != +(dateMinValue())) {
|
|
1250
1286
|
var a = "";
|
|
1251
|
-
if (this.
|
|
1287
|
+
if (this.br == null) {
|
|
1252
1288
|
a = this.a.i(this.value);
|
|
1253
1289
|
}
|
|
1254
1290
|
else {
|
|
1255
1291
|
var b = this.value.getDate().toString();
|
|
1256
1292
|
var c = b;
|
|
1257
|
-
if (this.
|
|
1293
|
+
if (this.a9 == "dd") {
|
|
1258
1294
|
if (this.value.getDate() < 10) {
|
|
1259
1295
|
b = "0" + b;
|
|
1260
1296
|
}
|
|
1261
1297
|
}
|
|
1262
|
-
else if (this.
|
|
1298
|
+
else if (this.a9 == "ddd") {
|
|
1263
1299
|
switch (this.value.getDay()) {
|
|
1264
1300
|
case 0:
|
|
1265
1301
|
b = !stringIsNullOrWhiteSpace(this.af.b1("Sunday_Short")) ? this.af.b1("Sunday_Short") : "Sun";
|
|
@@ -1284,7 +1320,7 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1284
1320
|
break;
|
|
1285
1321
|
}
|
|
1286
1322
|
}
|
|
1287
|
-
else if (this.
|
|
1323
|
+
else if (this.a9 == "dddd") {
|
|
1288
1324
|
switch (this.value.getDay()) {
|
|
1289
1325
|
case 0:
|
|
1290
1326
|
b = !stringIsNullOrWhiteSpace(this.af.b1("Sunday_Full")) ? this.af.b1("Sunday_Full") : "Sunday";
|
|
@@ -1310,12 +1346,12 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1310
1346
|
}
|
|
1311
1347
|
}
|
|
1312
1348
|
var d = dateGetMonth(this.value).toString();
|
|
1313
|
-
if (this.
|
|
1349
|
+
if (this.bd == "mm") {
|
|
1314
1350
|
if (dateGetMonth(this.value) < 10) {
|
|
1315
1351
|
d = "0" + d;
|
|
1316
1352
|
}
|
|
1317
1353
|
}
|
|
1318
|
-
else if (this.
|
|
1354
|
+
else if (this.bd == "mmm") {
|
|
1319
1355
|
switch (dateGetMonth(this.value)) {
|
|
1320
1356
|
case 1:
|
|
1321
1357
|
d = !stringIsNullOrWhiteSpace(this.af.b1("January_Short")) ? this.af.b1("January_Short") : "Jan";
|
|
@@ -1355,7 +1391,7 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1355
1391
|
break;
|
|
1356
1392
|
}
|
|
1357
1393
|
}
|
|
1358
|
-
else if (this.
|
|
1394
|
+
else if (this.bd == "mmmm") {
|
|
1359
1395
|
switch (dateGetMonth(this.value)) {
|
|
1360
1396
|
case 1:
|
|
1361
1397
|
d = !stringIsNullOrWhiteSpace(this.af.b1("January_Full")) ? this.af.b1("January_Full") : "January";
|
|
@@ -1396,109 +1432,111 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1396
1432
|
}
|
|
1397
1433
|
}
|
|
1398
1434
|
var e = this.value.getFullYear().toString();
|
|
1399
|
-
if (this.
|
|
1435
|
+
if (this.bg == "yy") {
|
|
1400
1436
|
e = e.substr(2);
|
|
1401
1437
|
}
|
|
1402
|
-
if (this.
|
|
1403
|
-
if (this.
|
|
1404
|
-
a = b + this.
|
|
1438
|
+
if (this.ba == "dmy") {
|
|
1439
|
+
if (this.a9 == "ddd" || this.a9 == "dddd") {
|
|
1440
|
+
a = b + this.bf + d + " " + c + this.bf + e;
|
|
1405
1441
|
}
|
|
1406
1442
|
else {
|
|
1407
|
-
a = b + this.
|
|
1443
|
+
a = b + this.bf + d + this.bf + e;
|
|
1408
1444
|
}
|
|
1409
1445
|
}
|
|
1410
|
-
else if (this.
|
|
1411
|
-
if (this.
|
|
1412
|
-
a = d + " " + c + this.
|
|
1446
|
+
else if (this.ba == "mdy") {
|
|
1447
|
+
if (this.a9 == "ddd" || this.a9 == "dddd") {
|
|
1448
|
+
a = d + " " + c + this.bf + b + this.bf + e;
|
|
1413
1449
|
}
|
|
1414
1450
|
else {
|
|
1415
|
-
a = d + this.
|
|
1451
|
+
a = d + this.bf + b + this.bf + e;
|
|
1416
1452
|
}
|
|
1417
1453
|
}
|
|
1418
|
-
else if (this.
|
|
1419
|
-
if (this.
|
|
1420
|
-
a = e + this.
|
|
1454
|
+
else if (this.ba == "ymd") {
|
|
1455
|
+
if (this.a9 == "ddd" || this.a9 == "dddd") {
|
|
1456
|
+
a = e + this.bf + d + " " + c + this.bf + b;
|
|
1421
1457
|
}
|
|
1422
1458
|
else {
|
|
1423
|
-
a = e + this.
|
|
1459
|
+
a = e + this.bf + d + this.bf + b;
|
|
1424
1460
|
}
|
|
1425
1461
|
}
|
|
1426
1462
|
}
|
|
1427
|
-
this.o.
|
|
1463
|
+
this.o.cq = a;
|
|
1428
1464
|
this.h.ap();
|
|
1429
1465
|
}
|
|
1430
1466
|
else {
|
|
1431
|
-
this.o.
|
|
1467
|
+
this.o.cq = "";
|
|
1432
1468
|
this.h.ae();
|
|
1433
1469
|
}
|
|
1434
1470
|
}
|
|
1435
1471
|
};
|
|
1436
|
-
DatePicker.prototype.
|
|
1437
|
-
if (this.
|
|
1472
|
+
DatePicker.prototype.cf = function () {
|
|
1473
|
+
if (this.ar == true) {
|
|
1438
1474
|
return;
|
|
1439
1475
|
}
|
|
1440
1476
|
if (this.o != null) {
|
|
1441
|
-
this.o.
|
|
1477
|
+
this.o.cq = "";
|
|
1442
1478
|
}
|
|
1443
1479
|
this.value = dateMinValue();
|
|
1444
1480
|
this.c.ch();
|
|
1445
1481
|
};
|
|
1446
|
-
DatePicker.prototype.
|
|
1482
|
+
DatePicker.prototype.ci = function () {
|
|
1447
1483
|
this.u = new Popup();
|
|
1448
1484
|
this.h.an(this.u);
|
|
1449
1485
|
this.c = new XCalendar();
|
|
1450
1486
|
this.h.ai(this.c);
|
|
1451
|
-
if (+(this.
|
|
1452
|
-
this.c.au = this.
|
|
1487
|
+
if (+(this.a2) != +(dateMinValue())) {
|
|
1488
|
+
this.c.au = this.a2;
|
|
1453
1489
|
}
|
|
1454
|
-
if (+(this.
|
|
1455
|
-
this.c.at = this.
|
|
1490
|
+
if (+(this.a1) != +(dateMaxValue())) {
|
|
1491
|
+
this.c.at = this.a1;
|
|
1456
1492
|
}
|
|
1457
|
-
if (+(this.
|
|
1458
|
-
this.c.av = this.
|
|
1493
|
+
if (+(this.a3) != +(dateMinValue())) {
|
|
1494
|
+
this.c.av = this.a3;
|
|
1459
1495
|
}
|
|
1460
|
-
this.c.ae = this.
|
|
1496
|
+
this.c.ae = this.au;
|
|
1461
1497
|
this.c.l = this.j;
|
|
1462
|
-
this.c.af = this.
|
|
1498
|
+
this.c.af = this.av;
|
|
1463
1499
|
this.c.o = this.l;
|
|
1464
1500
|
var a = this.c;
|
|
1465
|
-
a.selectedValueChanged = delegateCombine(a.selectedValueChanged, runOn(this, this.
|
|
1501
|
+
a.selectedValueChanged = delegateCombine(a.selectedValueChanged, runOn(this, this.cd));
|
|
1466
1502
|
var b = this.c;
|
|
1467
|
-
b.close = delegateCombine(b.close, runOn(this, this.
|
|
1503
|
+
b.close = delegateCombine(b.close, runOn(this, this.cc));
|
|
1468
1504
|
this.u.appendPopupContent(this.h.o());
|
|
1469
1505
|
};
|
|
1470
|
-
DatePicker.prototype.
|
|
1506
|
+
DatePicker.prototype.cd = function (a, b) {
|
|
1507
|
+
this.ai = true;
|
|
1471
1508
|
this.value = b.newValue;
|
|
1509
|
+
this.ai = false;
|
|
1472
1510
|
};
|
|
1473
|
-
DatePicker.prototype.
|
|
1474
|
-
if (this.u.
|
|
1511
|
+
DatePicker.prototype.cc = function (a) {
|
|
1512
|
+
if (this.u.ao) {
|
|
1475
1513
|
this.ah = true;
|
|
1476
|
-
this.
|
|
1514
|
+
this.cg();
|
|
1477
1515
|
}
|
|
1478
1516
|
};
|
|
1479
|
-
DatePicker.prototype.
|
|
1517
|
+
DatePicker.prototype.cn = function () {
|
|
1480
1518
|
if (this.ah == false) {
|
|
1481
|
-
if (this.u.
|
|
1482
|
-
this.
|
|
1519
|
+
if (this.u.ao) {
|
|
1520
|
+
this.cg();
|
|
1483
1521
|
}
|
|
1484
1522
|
else {
|
|
1485
|
-
this.
|
|
1523
|
+
this.c0();
|
|
1486
1524
|
}
|
|
1487
1525
|
}
|
|
1488
1526
|
else {
|
|
1489
1527
|
this.ah = false;
|
|
1490
1528
|
}
|
|
1491
1529
|
};
|
|
1492
|
-
DatePicker.prototype.
|
|
1493
|
-
if (this.
|
|
1530
|
+
DatePicker.prototype.c0 = function () {
|
|
1531
|
+
if (this.ar) {
|
|
1494
1532
|
return;
|
|
1495
1533
|
}
|
|
1496
1534
|
if (this.u != null) {
|
|
1497
|
-
var a = this.h.
|
|
1535
|
+
var a = this.h.at();
|
|
1498
1536
|
var b = new Rect(0, a.left + window.pageXOffset, a.top + window.pageYOffset, a.width, a.height);
|
|
1499
1537
|
var c = this.h.a()[1];
|
|
1500
1538
|
var d = 240;
|
|
1501
|
-
if (this.
|
|
1539
|
+
if (this.au == true) {
|
|
1502
1540
|
d = 270;
|
|
1503
1541
|
}
|
|
1504
1542
|
var e = a.bottom + d;
|
|
@@ -1517,10 +1555,10 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1517
1555
|
this.h.aq(true);
|
|
1518
1556
|
}
|
|
1519
1557
|
};
|
|
1520
|
-
DatePicker.prototype.
|
|
1558
|
+
DatePicker.prototype.cg = function () {
|
|
1521
1559
|
var _this = this;
|
|
1522
1560
|
if (this.u != null) {
|
|
1523
|
-
window.setTimeout(function () { return _this.u.
|
|
1561
|
+
window.setTimeout(function () { return _this.u.bj(); }, 0);
|
|
1524
1562
|
}
|
|
1525
1563
|
if (this.c != null) {
|
|
1526
1564
|
this.c.cy();
|
|
@@ -1536,18 +1574,18 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1536
1574
|
if (this.o != null) {
|
|
1537
1575
|
this.o.focus(a);
|
|
1538
1576
|
}
|
|
1539
|
-
if (!this.u.
|
|
1577
|
+
if (!this.u.ao && this.as == true) {
|
|
1540
1578
|
if (this.ah == false) {
|
|
1541
|
-
if (this.
|
|
1542
|
-
this.
|
|
1579
|
+
if (this.aq == false) {
|
|
1580
|
+
this.c0();
|
|
1543
1581
|
this.ah = true;
|
|
1544
|
-
window.setTimeout(function () { return _this.
|
|
1582
|
+
window.setTimeout(function () { return _this.cl(); }, 0);
|
|
1545
1583
|
}
|
|
1546
1584
|
else {
|
|
1547
|
-
if (this.
|
|
1548
|
-
this.
|
|
1585
|
+
if (this.as == true && this.ao == false) {
|
|
1586
|
+
this.c0();
|
|
1549
1587
|
this.ah = true;
|
|
1550
|
-
window.setTimeout(function () { return _this.
|
|
1588
|
+
window.setTimeout(function () { return _this.cl(); }, 0);
|
|
1551
1589
|
}
|
|
1552
1590
|
}
|
|
1553
1591
|
}
|
|
@@ -1556,33 +1594,33 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1556
1594
|
}
|
|
1557
1595
|
}
|
|
1558
1596
|
};
|
|
1559
|
-
DatePicker.prototype.
|
|
1597
|
+
DatePicker.prototype.cm = function () {
|
|
1560
1598
|
this.ah = false;
|
|
1561
1599
|
};
|
|
1562
|
-
DatePicker.prototype.
|
|
1600
|
+
DatePicker.prototype.c3 = function () {
|
|
1563
1601
|
if (this.o != null) {
|
|
1564
|
-
this.o.
|
|
1602
|
+
this.o.dp();
|
|
1565
1603
|
}
|
|
1566
1604
|
};
|
|
1567
|
-
DatePicker.prototype.
|
|
1605
|
+
DatePicker.prototype.cl = function () {
|
|
1568
1606
|
this.c.cq();
|
|
1569
1607
|
};
|
|
1570
|
-
DatePicker.prototype.
|
|
1608
|
+
DatePicker.prototype.ct = function () {
|
|
1571
1609
|
var a = new GotFocusEventArgs();
|
|
1572
|
-
this.
|
|
1610
|
+
this.cv(a);
|
|
1573
1611
|
};
|
|
1574
|
-
DatePicker.prototype.
|
|
1612
|
+
DatePicker.prototype.cu = function () {
|
|
1575
1613
|
var a = new LostFocusEventArgs();
|
|
1576
|
-
this.
|
|
1614
|
+
this.cx(a);
|
|
1577
1615
|
};
|
|
1578
|
-
DatePicker.prototype.
|
|
1616
|
+
DatePicker.prototype.c6 = function () {
|
|
1579
1617
|
};
|
|
1580
|
-
DatePicker.prototype.
|
|
1618
|
+
DatePicker.prototype.c4 = function () {
|
|
1581
1619
|
};
|
|
1582
|
-
DatePicker.prototype.
|
|
1620
|
+
DatePicker.prototype.a8 = function () {
|
|
1583
1621
|
return this.b();
|
|
1584
1622
|
};
|
|
1585
|
-
DatePicker.prototype.
|
|
1623
|
+
DatePicker.prototype.bo = function () {
|
|
1586
1624
|
var a = this.b();
|
|
1587
1625
|
return a.g();
|
|
1588
1626
|
};
|
|
@@ -1590,8 +1628,8 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1590
1628
|
var a = new DatePickerVisualModelExport();
|
|
1591
1629
|
a.e = this.y;
|
|
1592
1630
|
a.d = this.w;
|
|
1593
|
-
a.c = this.u.
|
|
1594
|
-
a.b = this.q.
|
|
1631
|
+
a.c = this.u.ay();
|
|
1632
|
+
a.b = this.q.fe();
|
|
1595
1633
|
a.a = this.c.bj();
|
|
1596
1634
|
if (this.ad != null) {
|
|
1597
1635
|
var b = this.ad;
|
|
@@ -1623,29 +1661,29 @@ var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1623
1661
|
}
|
|
1624
1662
|
return a;
|
|
1625
1663
|
};
|
|
1626
|
-
DatePicker.prototype.
|
|
1664
|
+
DatePicker.prototype.cv = function (a) {
|
|
1627
1665
|
if (null != this.gotFocus) {
|
|
1628
1666
|
this.gotFocus(this, a);
|
|
1629
1667
|
}
|
|
1630
1668
|
};
|
|
1631
|
-
DatePicker.prototype.
|
|
1669
|
+
DatePicker.prototype.cx = function (a) {
|
|
1632
1670
|
if (null != this.lostFocus) {
|
|
1633
1671
|
this.lostFocus(this, a);
|
|
1634
1672
|
}
|
|
1635
1673
|
};
|
|
1636
|
-
DatePicker.prototype.
|
|
1674
|
+
DatePicker.prototype.cw = function (a) {
|
|
1637
1675
|
if (null != this.keyDown) {
|
|
1638
1676
|
this.keyDown(this, a);
|
|
1639
1677
|
}
|
|
1640
1678
|
};
|
|
1641
|
-
DatePicker.prototype.
|
|
1679
|
+
DatePicker.prototype.cs = function (a) {
|
|
1642
1680
|
if (null != this.changing) {
|
|
1643
1681
|
this.changing(this, a);
|
|
1644
1682
|
}
|
|
1645
1683
|
};
|
|
1646
1684
|
DatePicker.$t = markType(DatePicker, 'DatePicker', Base.$, [INotifyPropertyChanged_$type]);
|
|
1647
|
-
DatePicker.
|
|
1648
|
-
DatePicker.
|
|
1685
|
+
DatePicker.bj = "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z";
|
|
1686
|
+
DatePicker.bk = "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z";
|
|
1649
1687
|
DatePicker.ab = null;
|
|
1650
1688
|
return DatePicker;
|
|
1651
1689
|
}(Base));
|