igniteui-webcomponents-inputs 4.0.3 → 4.2.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.
Files changed (51) hide show
  1. package/bundles/igniteui-webcomponents-inputs.umd.js +2781 -2143
  2. package/bundles/igniteui-webcomponents-inputs.umd.min.js +1 -1
  3. package/esm2015/lib/ButtonGroupView_combined.js +17 -17
  4. package/esm2015/lib/ButtonView_combined.js +945 -939
  5. package/esm2015/lib/CalendarView_combined.js +80 -80
  6. package/esm2015/lib/DatePickerView_combined.js +82 -64
  7. package/esm2015/lib/IconView_combined.js +250 -238
  8. package/esm2015/lib/InputGroupView_combined.js +368 -357
  9. package/esm2015/lib/NativeUIXInputsFactory.js +143 -0
  10. package/esm2015/lib/XButtonBridge.js +101 -0
  11. package/esm2015/lib/XCheckboxBridge.js +69 -0
  12. package/esm2015/lib/XComponentBridge.js +34 -0
  13. package/esm2015/lib/XIconButtonBridge.js +65 -0
  14. package/esm2015/lib/XInputBridge.js +162 -0
  15. package/esm2015/lib/igc-x-button-component.js +366 -366
  16. package/esm2015/lib/igc-x-icon-component.js +74 -63
  17. package/esm2015/lib/igc-x-input-component.js +65 -54
  18. package/esm2015/public_api.js +6 -0
  19. package/esm5/lib/ButtonGroupView_combined.js +17 -17
  20. package/esm5/lib/ButtonView_combined.js +941 -935
  21. package/esm5/lib/CalendarView_combined.js +80 -80
  22. package/esm5/lib/DatePickerView_combined.js +82 -64
  23. package/esm5/lib/IconView_combined.js +240 -224
  24. package/esm5/lib/InputGroupView_combined.js +353 -338
  25. package/esm5/lib/NativeUIXInputsFactory.js +153 -0
  26. package/esm5/lib/XButtonBridge.js +103 -0
  27. package/esm5/lib/XCheckboxBridge.js +71 -0
  28. package/esm5/lib/XComponentBridge.js +36 -0
  29. package/esm5/lib/XIconButtonBridge.js +67 -0
  30. package/esm5/lib/XInputBridge.js +164 -0
  31. package/esm5/lib/igc-x-button-component.js +366 -366
  32. package/esm5/lib/igc-x-icon-component.js +79 -64
  33. package/esm5/lib/igc-x-input-component.js +70 -55
  34. package/esm5/public_api.js +6 -0
  35. package/fesm2015/igniteui-webcomponents-inputs.js +2785 -2178
  36. package/fesm5/igniteui-webcomponents-inputs.js +2772 -2141
  37. package/lib/ButtonView_combined.d.ts +262 -260
  38. package/lib/DatePickerView_combined.d.ts +22 -21
  39. package/lib/DatePickerVisualModelExport.d.ts +1 -1
  40. package/lib/IconView_combined.d.ts +59 -56
  41. package/lib/InputGroupView_combined.d.ts +91 -89
  42. package/lib/NativeUIXInputsFactory.d.ts +22 -0
  43. package/lib/XButtonBridge.d.ts +21 -0
  44. package/lib/XCheckboxBridge.d.ts +19 -0
  45. package/lib/XComponentBridge.d.ts +17 -0
  46. package/lib/XIconButtonBridge.d.ts +16 -0
  47. package/lib/XInputBridge.d.ts +24 -0
  48. package/lib/igc-x-icon-component.d.ts +6 -1
  49. package/lib/igc-x-input-component.d.ts +6 -1
  50. package/package.json +2 -2
  51. package/public_api.d.ts +6 -0
@@ -10,7 +10,7 @@ import { XLabel } from "./XLabel";
10
10
  import { XInput } from "./XInput";
11
11
  import { XSuffix } from "./XSuffix";
12
12
  import { XIcon } from "./XIcon";
13
- import { Popup } from "igniteui-webcomponents-layouts";
13
+ import { Popup } from "igniteui-webcomponents-core";
14
14
  import { XCalendar } from "./XCalendar";
15
15
  import { Rect } from "igniteui-webcomponents-core";
16
16
  import { SRProvider } from "igniteui-webcomponents-core";
@@ -49,12 +49,12 @@ export let DatePickerView = /*@__PURE__*/ (() => {
49
49
  this.i = null;
50
50
  this.h = null;
51
51
  }
52
- ag() {
52
+ ah() {
53
53
  }
54
54
  get n() {
55
55
  return this.e;
56
56
  }
57
- af(a) {
57
+ ag(a) {
58
58
  if (a == null) {
59
59
  this.d = null;
60
60
  return;
@@ -62,15 +62,15 @@ export let DatePickerView = /*@__PURE__*/ (() => {
62
62
  this.d = a;
63
63
  let b = Math.round(a.rootWrapper.width());
64
64
  let c = Math.round(a.rootWrapper.height());
65
- this.z();
66
65
  this.aa();
66
+ this.ab();
67
67
  let d = this.d.rootWrapper.getChildAt(0);
68
68
  d.listen("keydown", runOn(this, this.x));
69
69
  d.listen("focusin", runOn(this, this.v));
70
70
  d.listen("focusout", runOn(this, this.w));
71
- document.addEventListener("click", runOn(this, this.ab), false);
71
+ document.addEventListener("click", runOn(this, this.ac), false);
72
72
  }
73
- z() {
73
+ aa() {
74
74
  if (this.d != null) {
75
75
  this.k = this.d.rootWrapper.getChildAt(0);
76
76
  this.k.setAttribute("tabIndex", "0");
@@ -93,39 +93,39 @@ export let DatePickerView = /*@__PURE__*/ (() => {
93
93
  this.f.setStyleProperty("width", "16px");
94
94
  this.h.setStyleProperty("height", "16px");
95
95
  this.h.setStyleProperty("width", "16px");
96
- this.f.listen("click", runOn(this, this.y));
97
- this.h.listen("click", runOn(this, this.ac));
96
+ this.f.listen("click", runOn(this, this.z));
97
+ this.h.listen("click", runOn(this, this.ad));
98
98
  }
99
99
  }
100
- aj(a) {
100
+ ak(a) {
101
101
  if (this.d != null) {
102
102
  let b = this.d.getSubRenderer(this.k);
103
103
  a.provideContainer(b);
104
104
  let c = this.d.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
105
105
  }
106
106
  }
107
- al(a) {
107
+ am(a) {
108
108
  if (this.d != null) {
109
109
  let b = this.d.getSubRenderer(this.l);
110
110
  a.provideContainer(b);
111
111
  let c = this.d.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
112
112
  }
113
113
  }
114
- ak(a) {
114
+ al(a) {
115
115
  if (this.d != null) {
116
116
  let b = this.d.getSubRenderer(this.j);
117
117
  a.provideContainer(b);
118
118
  let c = this.d.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
119
119
  }
120
120
  }
121
- an(a, b) {
121
+ ao(a, b) {
122
122
  if (this.d != null) {
123
123
  let c = this.d.getSubRenderer(b);
124
124
  a.provideContainer(c);
125
125
  let d = this.d.getExternal(a, c.rootWrapper, this.d.getExternal(this.b, null, null));
126
126
  }
127
127
  }
128
- ai(a, b) {
128
+ aj(a, b) {
129
129
  if (this.d != null) {
130
130
  let c = this.d.getSubRenderer(b);
131
131
  a.provideContainer(c);
@@ -150,7 +150,7 @@ export let DatePickerView = /*@__PURE__*/ (() => {
150
150
  r() {
151
151
  return this.h;
152
152
  }
153
- ap(a) {
153
+ aq(a) {
154
154
  if (this.j != null) {
155
155
  if (a) {
156
156
  this.j.getChildAt(0).setAttribute("aria-expanded", "true");
@@ -160,7 +160,7 @@ export let DatePickerView = /*@__PURE__*/ (() => {
160
160
  }
161
161
  }
162
162
  }
163
- aq(a) {
163
+ ar(a) {
164
164
  if (a != null && a != "") {
165
165
  this.j.getChildAt(0).setAttribute("aria-label", a);
166
166
  }
@@ -168,7 +168,7 @@ export let DatePickerView = /*@__PURE__*/ (() => {
168
168
  this.j.getChildAt(0).setAttribute("aria-label", "Select a date");
169
169
  }
170
170
  }
171
- ao() {
171
+ ap() {
172
172
  if (this.f != null) {
173
173
  if (this.b.as == true) {
174
174
  this.f.show();
@@ -178,12 +178,12 @@ export let DatePickerView = /*@__PURE__*/ (() => {
178
178
  }
179
179
  }
180
180
  }
181
- ad() {
181
+ ae() {
182
182
  if (this.f != null) {
183
183
  this.f.hide();
184
184
  }
185
185
  }
186
- aa() {
186
+ ab() {
187
187
  if (this.d != null) {
188
188
  this.m = this.d.rootWrapper.getChildAt(1);
189
189
  this.e = this.d.createElement("div");
@@ -199,21 +199,37 @@ export let DatePickerView = /*@__PURE__*/ (() => {
199
199
  this.e.parent().parent().setStyleProperty("max-width", "232px");
200
200
  }
201
201
  if (this.b.at == true) {
202
- this.e.parent().parent().setStyleProperty("height", "270px");
202
+ this.e.parent().parent().setStyleProperty("min-height", "270px");
203
203
  }
204
204
  else {
205
- this.e.parent().parent().setStyleProperty("height", "234px");
205
+ this.e.parent().parent().setStyleProperty("min-height", "234px");
206
206
  }
207
207
  }
208
208
  }
209
- am(a) {
209
+ y() {
210
+ if (this.d != null) {
211
+ if (this.b.au == true) {
212
+ this.e.parent().parent().setStyleProperty("max-width", "245px");
213
+ }
214
+ else {
215
+ this.e.parent().parent().setStyleProperty("max-width", "232px");
216
+ }
217
+ if (this.b.at == true) {
218
+ this.e.parent().parent().setStyleProperty("min-height", "270px");
219
+ }
220
+ else {
221
+ this.e.parent().parent().setStyleProperty("min-height", "234px");
222
+ }
223
+ }
224
+ }
225
+ an(a) {
210
226
  if (this.d != null) {
211
227
  let b = this.d.getSubRenderer(this.m);
212
228
  a.provideRenderer(b);
213
229
  let c = b.getExternal(a, b.rootWrapper, b.getExternal(this.b, null, null));
214
230
  }
215
231
  }
216
- ah(a) {
232
+ ai(a) {
217
233
  if (this.d != null) {
218
234
  let b = this.d.getSubRenderer(this.e);
219
235
  a.provideContainer(b);
@@ -223,7 +239,7 @@ export let DatePickerView = /*@__PURE__*/ (() => {
223
239
  o() {
224
240
  return this.e;
225
241
  }
226
- y(a) {
242
+ z(a) {
227
243
  if (this.b.aq == true) {
228
244
  return;
229
245
  }
@@ -232,7 +248,7 @@ export let DatePickerView = /*@__PURE__*/ (() => {
232
248
  this.f.hide();
233
249
  }
234
250
  }
235
- ac(a) {
251
+ ad(a) {
236
252
  a.stopPropagation();
237
253
  this.b.cj();
238
254
  }
@@ -256,13 +272,13 @@ export let DatePickerView = /*@__PURE__*/ (() => {
256
272
  this.b.cq();
257
273
  }
258
274
  }
259
- ab(a) {
275
+ ac(a) {
260
276
  let b = a.target;
261
277
  if (!this.c(b)) {
262
278
  this.b.cc();
263
279
  }
264
280
  }
265
- ar() {
281
+ as() {
266
282
  if (this.d != null) {
267
283
  let a = this.d.rootWrapper.getNativeElement();
268
284
  let b = a.getBoundingClientRect();
@@ -287,7 +303,7 @@ export let DatePickerView = /*@__PURE__*/ (() => {
287
303
  let c = this.e.getNativeElement();
288
304
  return b.contains(a) || c.contains(a);
289
305
  }
290
- ae() {
306
+ af() {
291
307
  }
292
308
  }
293
309
  DatePickerView.$t = /*@__PURE__*/ markType(DatePickerView, 'DatePickerView');
@@ -351,7 +367,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
351
367
  let a = new DatePickerView();
352
368
  a.b = this;
353
369
  this.h = a;
354
- this.h.ag();
370
+ this.h.ah();
355
371
  this.ca();
356
372
  }
357
373
  cv(a, b) {
@@ -371,7 +387,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
371
387
  this.cz();
372
388
  }
373
389
  notifySizeChanged() {
374
- this.h.ae();
390
+ this.h.af();
375
391
  }
376
392
  destroy() {
377
393
  if (this.c != null) {
@@ -383,7 +399,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
383
399
  this.provideContainer(null);
384
400
  }
385
401
  provideContainer(a) {
386
- this.h.af(a);
402
+ this.h.ag(a);
387
403
  }
388
404
  setName(a) {
389
405
  this.o.e = a;
@@ -669,8 +685,8 @@ export let DatePicker = /*@__PURE__*/ (() => {
669
685
  break;
670
686
  case "Placeholder":
671
687
  if (this.o != null) {
672
- this.o.cb = this.bz;
673
- this.h.aq(this.bz);
688
+ this.o.ce = this.bz;
689
+ this.h.ar(this.bz);
674
690
  }
675
691
  break;
676
692
  case "Today":
@@ -710,8 +726,8 @@ export let DatePicker = /*@__PURE__*/ (() => {
710
726
  break;
711
727
  case "ShowClearButton":
712
728
  if (this.o != null) {
713
- if (this.o.cj != "") {
714
- this.h.ao();
729
+ if (this.o.cm != "") {
730
+ this.h.ap();
715
731
  }
716
732
  }
717
733
  break;
@@ -724,6 +740,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
724
740
  case "ShowTodayButton":
725
741
  if (this.c != null) {
726
742
  this.c.ae = this.at;
743
+ this.h.y();
727
744
  }
728
745
  break;
729
746
  case "AllowTextInput":
@@ -748,6 +765,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
748
765
  case "ShowWeekNumbers":
749
766
  if (this.c != null) {
750
767
  this.c.af = this.au;
768
+ this.h.y();
751
769
  }
752
770
  break;
753
771
  case "FirstWeekOfYear":
@@ -856,7 +874,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
856
874
  }
857
875
  c6() {
858
876
  if (this.o != null) {
859
- this.o.dy = this.de;
877
+ this.o.d1 = this.de;
860
878
  }
861
879
  if (this.m != null) {
862
880
  this.m.fill = this.dc;
@@ -875,17 +893,17 @@ export let DatePicker = /*@__PURE__*/ (() => {
875
893
  }
876
894
  c5() {
877
895
  if (this.aa != null) {
878
- this.o.ad = this.aa;
896
+ this.o.af = this.aa;
879
897
  }
880
898
  }
881
899
  cd() {
882
900
  this.q = new XInputGroup();
883
- this.h.aj(this.q);
901
+ this.h.ak(this.q);
884
902
  this.q.d = 0;
885
903
  this.q.j = this.w;
886
904
  this.q.n = this.y;
887
905
  this.r = new XLabel();
888
- this.h.al(this.r);
906
+ this.h.am(this.r);
889
907
  this.r.df = this.dd;
890
908
  this.r.y = this.ac;
891
909
  this.q.appendContentChild(this.h.u());
@@ -894,17 +912,17 @@ export let DatePicker = /*@__PURE__*/ (() => {
894
912
  this.q.inputs.add(this.r);
895
913
  }
896
914
  this.o = new XInput();
897
- this.h.ak(this.o);
898
- this.o.b3 = "text";
915
+ this.h.al(this.o);
916
+ this.o.b6 = "text";
899
917
  if (this.aa != null) {
900
- this.o.ad = this.aa;
918
+ this.o.af = this.aa;
901
919
  }
902
920
  this.o.disabled = !this.ap;
903
- this.o.dy = this.de;
921
+ this.o.d1 = this.de;
904
922
  this.q.appendContentChild(this.h.t());
905
923
  this.q.inputs.add(this.o);
906
- this.o.cb = this.bz;
907
- this.h.aq(this.bz);
924
+ this.o.ce = this.bz;
925
+ this.h.ar(this.bz);
908
926
  let a = this.o;
909
927
  a.change = delegateCombine(a.change, runOn(this, this.ck));
910
928
  let b = this.o;
@@ -912,9 +930,9 @@ export let DatePicker = /*@__PURE__*/ (() => {
912
930
  let c = this.o;
913
931
  c.keyDown = delegateCombine(c.keyDown, runOn(this, this.cm));
914
932
  let d = new XSuffix();
915
- this.h.an(d, this.h.q());
933
+ this.h.ao(d, this.h.q());
916
934
  this.m = new XIcon();
917
- this.h.ai(this.m, this.h.p());
935
+ this.h.aj(this.m, this.h.p());
918
936
  this.m.svgPath = DatePicker.bh;
919
937
  this.m.fill = this.dc;
920
938
  d.appendContentChild(this.h.p());
@@ -922,9 +940,9 @@ export let DatePicker = /*@__PURE__*/ (() => {
922
940
  this.q.inputs.add(d);
923
941
  this.c4();
924
942
  let e = new XSuffix();
925
- this.h.an(e, this.h.s());
943
+ this.h.ao(e, this.h.s());
926
944
  this.n = new XIcon();
927
- this.h.ai(this.n, this.h.r());
945
+ this.h.aj(this.n, this.h.r());
928
946
  this.n.svgPath = DatePicker.bg;
929
947
  this.n.fill = this.dc;
930
948
  e.appendContentChild(this.h.r());
@@ -942,7 +960,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
942
960
  case 9:
943
961
  this.an = true;
944
962
  if (!this.ao) {
945
- this.c8(this.o.cj);
963
+ this.c8(this.o.cm);
946
964
  }
947
965
  this.ah = true;
948
966
  this.cc();
@@ -951,7 +969,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
951
969
  case 13:
952
970
  this.an = true;
953
971
  if (!this.ao) {
954
- this.c8(this.o.cj);
972
+ this.c8(this.o.cm);
955
973
  }
956
974
  this.ah = true;
957
975
  this.cc();
@@ -973,10 +991,10 @@ export let DatePicker = /*@__PURE__*/ (() => {
973
991
  cl(a, b) {
974
992
  this.co(b);
975
993
  if (b.value.length > 0) {
976
- this.h.ao();
994
+ this.h.ap();
977
995
  }
978
996
  else {
979
- this.h.ad();
997
+ this.h.ae();
980
998
  }
981
999
  }
982
1000
  ck(a, b) {
@@ -1107,7 +1125,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
1107
1125
  }
1108
1126
  else {
1109
1127
  this.c7(ag);
1110
- this.h.ao();
1128
+ this.h.ap();
1111
1129
  }
1112
1130
  }
1113
1131
  else {
@@ -1303,12 +1321,12 @@ export let DatePicker = /*@__PURE__*/ (() => {
1303
1321
  }
1304
1322
  }
1305
1323
  }
1306
- this.o.cj = a;
1307
- this.h.ao();
1324
+ this.o.cm = a;
1325
+ this.h.ap();
1308
1326
  }
1309
1327
  else {
1310
- this.o.cj = "";
1311
- this.h.ad();
1328
+ this.o.cm = "";
1329
+ this.h.ae();
1312
1330
  }
1313
1331
  }
1314
1332
  }
@@ -1317,16 +1335,16 @@ export let DatePicker = /*@__PURE__*/ (() => {
1317
1335
  return;
1318
1336
  }
1319
1337
  if (this.o != null) {
1320
- this.o.cj = "";
1338
+ this.o.cm = "";
1321
1339
  }
1322
1340
  this.value = dateMinValue();
1323
1341
  this.c.ch();
1324
1342
  }
1325
1343
  ce() {
1326
1344
  this.u = new Popup();
1327
- this.h.am(this.u);
1345
+ this.h.an(this.u);
1328
1346
  this.c = new XCalendar();
1329
- this.h.ah(this.c);
1347
+ this.h.ai(this.c);
1330
1348
  if (+(this.a1) != +(dateMinValue())) {
1331
1349
  this.c.au = this.a1;
1332
1350
  }
@@ -1373,7 +1391,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
1373
1391
  return;
1374
1392
  }
1375
1393
  if (this.u != null) {
1376
- let a = this.h.ar();
1394
+ let a = this.h.as();
1377
1395
  let b = new Rect(0, a.left + window.pageXOffset, a.top + window.pageYOffset, a.width, a.height);
1378
1396
  let c = this.h.a()[1];
1379
1397
  let d = 240;
@@ -1393,7 +1411,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
1393
1411
  else {
1394
1412
  this.u.showRelativeToExclusionRect(b, 1, 0);
1395
1413
  }
1396
- this.h.ap(true);
1414
+ this.h.aq(true);
1397
1415
  }
1398
1416
  }
1399
1417
  cc() {
@@ -1403,7 +1421,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
1403
1421
  if (this.c != null) {
1404
1422
  this.c.cy();
1405
1423
  }
1406
- this.h.ap(false);
1424
+ this.h.aq(false);
1407
1425
  this.ah = false;
1408
1426
  }
1409
1427
  focus(a = false) {
@@ -1435,7 +1453,7 @@ export let DatePicker = /*@__PURE__*/ (() => {
1435
1453
  }
1436
1454
  cz() {
1437
1455
  if (this.o != null) {
1438
- this.o.dg();
1456
+ this.o.dj();
1439
1457
  }
1440
1458
  }
1441
1459
  ch() {