igniteui-webcomponents-inputs 4.3.3-beta.1 → 4.6.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.
@@ -26154,6 +26154,7 @@
26154
26154
  _this.h = null;
26155
26155
  _this.o = null;
26156
26156
  _this.document_Click = _this.document_Click.bind(_this);
26157
+ _this.window_Resize = _this.window_Resize.bind(_this);
26157
26158
  return _this;
26158
26159
  }
26159
26160
  DatePickerView.prototype.am = function () {
@@ -26172,6 +26173,7 @@
26172
26173
  var b = this.d.rootWrapper.getChildAt(0);
26173
26174
  b.unlistenAll();
26174
26175
  document.removeEventListener("click", this.document_Click, false);
26176
+ window.removeEventListener("resize", this.window_Resize, false);
26175
26177
  }
26176
26178
  this.d = null;
26177
26179
  return;
@@ -26186,6 +26188,7 @@
26186
26188
  e.listen("focusin", igniteuiWebcomponentsCore.runOn(this, this.w));
26187
26189
  e.listen("focusout", igniteuiWebcomponentsCore.runOn(this, this.x));
26188
26190
  document.addEventListener("click", this.document_Click, false);
26191
+ window.addEventListener("resize", this.window_Resize, false);
26189
26192
  this.o = new MutationObserver(igniteuiWebcomponentsCore.runOn(this, this.al));
26190
26193
  };
26191
26194
  DatePickerView.prototype.ad = function () {
@@ -26412,7 +26415,10 @@
26412
26415
  this.b.cq();
26413
26416
  }
26414
26417
  };
26415
- DatePickerView.prototype.az = function (a) {
26418
+ DatePickerView.prototype.window_Resize = function (a) {
26419
+ this.b.dm();
26420
+ };
26421
+ DatePickerView.prototype.a0 = function (a) {
26416
26422
  if (this.d != null) {
26417
26423
  var b = this.d.rootWrapper.getNativeElement();
26418
26424
  var c = (b.getBoundingClientRect());
@@ -26475,7 +26481,7 @@
26475
26481
  _this.a7 = igniteuiWebcomponentsCore.dateMinValue();
26476
26482
  _this.a6 = igniteuiWebcomponentsCore.dateMinValue();
26477
26483
  _this.bj = "";
26478
- _this.ds = igniteuiWebcomponentsCore.BrushUtil.g(255, 24, 29, 31);
26484
+ _this.dt = igniteuiWebcomponentsCore.BrushUtil.g(255, 24, 29, 31);
26479
26485
  _this.z = null;
26480
26486
  _this.bl = "";
26481
26487
  _this.a4 = igniteuiWebcomponentsCore.dateMinValue();
@@ -26483,8 +26489,8 @@
26483
26489
  _this.x = 2;
26484
26490
  _this.v = 1;
26485
26491
  _this.aa = null;
26486
- _this.dt = igniteuiWebcomponentsCore.BrushUtil.g(255, 24, 29, 31);
26487
- _this.dr = igniteuiWebcomponentsCore.BrushUtil.g(255, 163, 172, 184);
26492
+ _this.du = igniteuiWebcomponentsCore.BrushUtil.g(255, 24, 29, 31);
26493
+ _this.ds = igniteuiWebcomponentsCore.BrushUtil.g(255, 163, 172, 184);
26488
26494
  _this.ao = true;
26489
26495
  _this.ap = false;
26490
26496
  _this.ag = true;
@@ -26602,14 +26608,14 @@
26602
26608
  enumerable: false,
26603
26609
  configurable: true
26604
26610
  });
26605
- Object.defineProperty(DatePicker.prototype, "dv", {
26611
+ Object.defineProperty(DatePicker.prototype, "dw", {
26606
26612
  get: function () {
26607
- return this.ds;
26613
+ return this.dt;
26608
26614
  },
26609
26615
  set: function (a) {
26610
- var b = this.ds;
26611
- this.ds = a;
26612
- if (b != this.ds) {
26616
+ var b = this.dt;
26617
+ this.dt = a;
26618
+ if (b != this.dt) {
26613
26619
  this.da("LabelTextColor", b, a);
26614
26620
  }
26615
26621
  },
@@ -26714,29 +26720,29 @@
26714
26720
  enumerable: false,
26715
26721
  configurable: true
26716
26722
  });
26717
- Object.defineProperty(DatePicker.prototype, "dw", {
26723
+ Object.defineProperty(DatePicker.prototype, "dx", {
26718
26724
  get: function () {
26719
- return this.dt;
26725
+ return this.du;
26720
26726
  },
26721
26727
  set: function (a) {
26722
- var b = this.dt;
26723
- this.dt = a;
26724
- if (b != this.dt) {
26725
- this.da("TextColor", b, this.dt);
26728
+ var b = this.du;
26729
+ this.du = a;
26730
+ if (b != this.du) {
26731
+ this.da("TextColor", b, this.du);
26726
26732
  }
26727
26733
  },
26728
26734
  enumerable: false,
26729
26735
  configurable: true
26730
26736
  });
26731
- Object.defineProperty(DatePicker.prototype, "du", {
26737
+ Object.defineProperty(DatePicker.prototype, "dv", {
26732
26738
  get: function () {
26733
- return this.dr;
26739
+ return this.ds;
26734
26740
  },
26735
26741
  set: function (a) {
26736
- var b = this.dr;
26737
- this.dr = a;
26738
- if (b != this.dr) {
26739
- this.da("IconColor", b, this.dr);
26742
+ var b = this.ds;
26743
+ this.ds = a;
26744
+ if (b != this.ds) {
26745
+ this.da("IconColor", b, this.ds);
26740
26746
  }
26741
26747
  },
26742
26748
  enumerable: false,
@@ -27024,7 +27030,7 @@
27024
27030
  }
27025
27031
  break;
27026
27032
  case "TextStyle":
27027
- this.dm();
27033
+ this.dn();
27028
27034
  break;
27029
27035
  case "ShowClearButton":
27030
27036
  if (this.o != null) {
@@ -27037,7 +27043,7 @@
27037
27043
  case "LabelTextStyle":
27038
27044
  case "TextColor":
27039
27045
  case "IconColor":
27040
- this.dn();
27046
+ this.dp();
27041
27047
  break;
27042
27048
  case "ShowTodayButton":
27043
27049
  if (this.c != null) {
@@ -27187,18 +27193,18 @@
27187
27193
  }
27188
27194
  }
27189
27195
  };
27190
- DatePicker.prototype.dn = function () {
27196
+ DatePicker.prototype.dp = function () {
27191
27197
  if (this.o != null) {
27192
- this.o.d8 = this.dw;
27198
+ this.o.d8 = this.dx;
27193
27199
  }
27194
27200
  if (this.m != null) {
27195
- this.m.fill = this.du;
27201
+ this.m.fill = this.dv;
27196
27202
  }
27197
27203
  if (this.n != null) {
27198
- this.n.fill = this.du;
27204
+ this.n.fill = this.dv;
27199
27205
  }
27200
27206
  if (this.r != null) {
27201
- this.r.df = this.dv;
27207
+ this.r.df = this.dw;
27202
27208
  this.r.y = this.ac;
27203
27209
  }
27204
27210
  };
@@ -27206,7 +27212,7 @@
27206
27212
  if (this.q != null) {
27207
27213
  }
27208
27214
  };
27209
- DatePicker.prototype.dm = function () {
27215
+ DatePicker.prototype.dn = function () {
27210
27216
  if (this.aa != null) {
27211
27217
  this.o.af = this.aa;
27212
27218
  }
@@ -27219,7 +27225,7 @@
27219
27225
  this.q.t = this.y;
27220
27226
  this.r = new XLabel();
27221
27227
  this.h.as(this.r);
27222
- this.r.df = this.dv;
27228
+ this.r.df = this.dw;
27223
27229
  this.r.y = this.ac;
27224
27230
  this.q.appendContentChild(this.h.v());
27225
27231
  if (this.b3 != null && this.b3 != "") {
@@ -27233,7 +27239,7 @@
27233
27239
  this.o.af = this.aa;
27234
27240
  }
27235
27241
  this.o.disabled = !this.au;
27236
- this.o.d8 = this.dw;
27242
+ this.o.d8 = this.dx;
27237
27243
  this.q.appendContentChild(this.h.u());
27238
27244
  this.q.inputs.add(this.o);
27239
27245
  this.o.cg = this.cb;
@@ -27249,7 +27255,7 @@
27249
27255
  this.m = new XIcon();
27250
27256
  this.h.ap(this.m, this.h.q());
27251
27257
  this.m.svgPath = DatePicker.br;
27252
- this.m.fill = this.du;
27258
+ this.m.fill = this.dv;
27253
27259
  d.appendContentChild(this.h.q());
27254
27260
  this.q.appendContentChild(this.h.r());
27255
27261
  this.q.inputs.add(d);
@@ -27259,7 +27265,7 @@
27259
27265
  this.n = new XIcon();
27260
27266
  this.h.ap(this.n, this.h.s());
27261
27267
  this.n.svgPath = DatePicker.bq;
27262
- this.n.fill = this.du;
27268
+ this.n.fill = this.dv;
27263
27269
  e.appendContentChild(this.h.s());
27264
27270
  this.q.appendContentChild(this.h.t());
27265
27271
  this.q.inputs.add(e);
@@ -27275,7 +27281,7 @@
27275
27281
  case 9:
27276
27282
  this.ar = true;
27277
27283
  if (!this.at) {
27278
- this.dq(this.o.cq);
27284
+ this.dr(this.o.cq);
27279
27285
  }
27280
27286
  this.ah = true;
27281
27287
  this.cq();
@@ -27284,7 +27290,7 @@
27284
27290
  case 13:
27285
27291
  this.ar = true;
27286
27292
  if (!this.at) {
27287
- this.dq(this.o.cq);
27293
+ this.dr(this.o.cq);
27288
27294
  }
27289
27295
  this.ah = true;
27290
27296
  this.cq();
@@ -27314,10 +27320,10 @@
27314
27320
  };
27315
27321
  DatePicker.prototype.cy = function (a, b) {
27316
27322
  this.at = true;
27317
- this.dq(b.value);
27323
+ this.dr(b.value);
27318
27324
  this.at = false;
27319
27325
  };
27320
- DatePicker.prototype.dq = function (a) {
27326
+ DatePicker.prototype.dr = function (a) {
27321
27327
  var b = ['/', '-', ' ', '.', ','];
27322
27328
  var c = igniteuiWebcomponentsCore.stringSplit(a, b, 1);
27323
27329
  var d = 0;
@@ -27439,7 +27445,7 @@
27439
27445
  this.dl();
27440
27446
  }
27441
27447
  else {
27442
- this.dp(ag);
27448
+ this.dq(ag);
27443
27449
  this.h.av();
27444
27450
  }
27445
27451
  }
@@ -27452,7 +27458,7 @@
27452
27458
  }
27453
27459
  }
27454
27460
  };
27455
- DatePicker.prototype.dp = function (a) {
27461
+ DatePicker.prototype.dq = function (a) {
27456
27462
  var b = this.value;
27457
27463
  this.value = a;
27458
27464
  };
@@ -27719,7 +27725,7 @@
27719
27725
  return;
27720
27726
  }
27721
27727
  if (this.u != null) {
27722
- var a = this.h.az(false);
27728
+ var a = this.h.a0(false);
27723
27729
  var b = this.h.a()[1];
27724
27730
  var c = 240;
27725
27731
  if (this.a0 == true) {
@@ -27747,10 +27753,43 @@
27747
27753
  this.u.cn(this.h.d.rootWrapper.getNativeElement(), a, b);
27748
27754
  }
27749
27755
  else {
27750
- var c = this.h.az(true);
27756
+ var c = this.h.a0(true);
27751
27757
  this.u.showRelativeToExclusionRect(c, a, b);
27752
27758
  }
27753
27759
  };
27760
+ DatePicker.prototype.dm = function () {
27761
+ if (this.u.aw) {
27762
+ var a = this.h.a0(false);
27763
+ var b = new igniteuiWebcomponentsCore.Rect(0, a.left + window.pageXOffset, a.top + window.pageYOffset, a.width, a.height);
27764
+ var c = this.h.a()[1];
27765
+ var d = 240;
27766
+ if (this.a0 == true) {
27767
+ d = 270;
27768
+ }
27769
+ var e = a.bottom + d;
27770
+ if (c < e) {
27771
+ var f = a.top - d;
27772
+ if (f < 0) {
27773
+ if (this.u.r != 1) {
27774
+ this.u.r = 1;
27775
+ this.u.b7(b);
27776
+ }
27777
+ }
27778
+ else {
27779
+ if (this.u.r != 2) {
27780
+ this.u.r = 2;
27781
+ this.u.b7(b);
27782
+ }
27783
+ }
27784
+ }
27785
+ else {
27786
+ if (this.u.r != 1) {
27787
+ this.u.r = 1;
27788
+ this.u.b7(b);
27789
+ }
27790
+ }
27791
+ }
27792
+ };
27754
27793
  DatePicker.prototype.cq = function () {
27755
27794
  var _this = this;
27756
27795
  if (this.u != null) {
@@ -28208,11 +28247,11 @@
28208
28247
  * Gets or sets the color to use for the text.
28209
28248
  */
28210
28249
  get: function () {
28211
- return igniteuiWebcomponentsCore.brushToString(this.i.dv);
28250
+ return igniteuiWebcomponentsCore.brushToString(this.i.dw);
28212
28251
  },
28213
28252
  set: function (v) {
28214
- this.i.dv = igniteuiWebcomponentsCore.stringToBrush(v);
28215
- this._a("labelTextColor", igniteuiWebcomponentsCore.brushToString(this.i.dv));
28253
+ this.i.dw = igniteuiWebcomponentsCore.stringToBrush(v);
28254
+ this._a("labelTextColor", igniteuiWebcomponentsCore.brushToString(this.i.dw));
28216
28255
  },
28217
28256
  enumerable: false,
28218
28257
  configurable: true
@@ -28327,11 +28366,11 @@
28327
28366
  * Gets or Sets the text color
28328
28367
  */
28329
28368
  get: function () {
28330
- return igniteuiWebcomponentsCore.brushToString(this.i.dw);
28369
+ return igniteuiWebcomponentsCore.brushToString(this.i.dx);
28331
28370
  },
28332
28371
  set: function (v) {
28333
- this.i.dw = igniteuiWebcomponentsCore.stringToBrush(v);
28334
- this._a("textColor", igniteuiWebcomponentsCore.brushToString(this.i.dw));
28372
+ this.i.dx = igniteuiWebcomponentsCore.stringToBrush(v);
28373
+ this._a("textColor", igniteuiWebcomponentsCore.brushToString(this.i.dx));
28335
28374
  },
28336
28375
  enumerable: false,
28337
28376
  configurable: true
@@ -28341,11 +28380,11 @@
28341
28380
  * Gets or Sets the text color
28342
28381
  */
28343
28382
  get: function () {
28344
- return igniteuiWebcomponentsCore.brushToString(this.i.du);
28383
+ return igniteuiWebcomponentsCore.brushToString(this.i.dv);
28345
28384
  },
28346
28385
  set: function (v) {
28347
- this.i.du = igniteuiWebcomponentsCore.stringToBrush(v);
28348
- this._a("iconColor", igniteuiWebcomponentsCore.brushToString(this.i.du));
28386
+ this.i.dv = igniteuiWebcomponentsCore.stringToBrush(v);
28387
+ this._a("iconColor", igniteuiWebcomponentsCore.brushToString(this.i.dv));
28349
28388
  },
28350
28389
  enumerable: false,
28351
28390
  configurable: true