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