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