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