igniteui-webcomponents-inputs 7.1.0-alpha.3 → 7.1.0-beta.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.
@@ -674,18 +674,19 @@ let ColorEditorView = /*@__PURE__*/ (() => {
674
674
  constructor() {
675
675
  super();
676
676
  this.a = null;
677
- this.h = null;
677
+ this.i = null;
678
678
  this.d = null;
679
679
  this.g = new List$1(Delegate_$type, 0);
680
680
  this.e = true;
681
+ this._createColorEditorPanel = null;
681
682
  this.b = null;
682
683
  }
683
- q() {
684
+ r() {
684
685
  }
685
686
  f() {
686
687
  return true;
687
688
  }
688
- o(a) {
689
+ p(a) {
689
690
  if (a == null) {
690
691
  for (let b of fromEnum(this.g)) {
691
692
  b();
@@ -696,45 +697,57 @@ let ColorEditorView = /*@__PURE__*/ (() => {
696
697
  if (this.a.a == null) {
697
698
  this.a.a = new DOMExecutionContext(a);
698
699
  }
699
- this.h = a;
700
+ this.i = a;
700
701
  this.a.bj();
701
702
  }
702
- m() {
703
+ n() {
703
704
  if (KeyFrameAnimationFactory.h == null) {
704
- KeyFrameAnimationFactory.h = this.h;
705
+ KeyFrameAnimationFactory.h = this.i;
705
706
  }
706
707
  }
707
- n() {
708
+ o() {
708
709
  this.e = true;
709
710
  }
710
- p() {
711
+ q() {
711
712
  this.e = false;
712
713
  }
714
+ k() {
715
+ return this.i;
716
+ }
717
+ get createColorEditorPanel() {
718
+ return this._createColorEditorPanel;
719
+ }
720
+ set createColorEditorPanel(a) {
721
+ this._createColorEditorPanel = a;
722
+ }
713
723
  j() {
714
- return this.h;
715
- }
716
- i() {
717
- let a = new ColorEditorPanel();
718
- this.b = a;
719
- let b = this.h.createElement("div");
720
- let c = this.h.getSubRenderer(b);
721
- a.provideContainer(c);
722
- let d = this.h.getExternal(a, null, null);
723
- return b;
724
+ if (this.createColorEditorPanel != null) {
725
+ let a = this.createColorEditorPanel();
726
+ let b = this.i.getWrapper(a);
727
+ this.b = (a.i);
728
+ return a;
729
+ }
730
+ let c = new ColorEditorPanel();
731
+ this.b = c;
732
+ let d = this.i.createElement("div");
733
+ let e = this.i.getSubRenderer(d);
734
+ c.provideContainer(e);
735
+ let f = this.i.getExternal(c, null, null);
736
+ return d;
724
737
  }
725
- k(a, b) {
738
+ l(a, b) {
726
739
  let c = a.ao;
727
- c.append(this.h.getWrapper(b));
740
+ c.append(this.i.getWrapper(b));
728
741
  }
729
- l(a) {
730
- this.h.append(this.h.getWrapper(a.ao));
742
+ m(a) {
743
+ this.i.append(this.i.getWrapper(a.ao));
731
744
  }
732
745
  c(a) {
733
746
  return this.b;
734
747
  }
735
- r(a) {
736
- if (this.h != null) {
737
- let b = this.h.rootWrapper.getNativeElement();
748
+ s(a) {
749
+ if (this.i != null) {
750
+ let b = this.i.rootWrapper.getNativeElement();
738
751
  let c = (b.getBoundingClientRect());
739
752
  if (a) {
740
753
  c = new Rect(0, c.left + window.pageXOffset, c.top + window.pageYOffset, c.width, c.height);
@@ -743,7 +756,7 @@ let ColorEditorView = /*@__PURE__*/ (() => {
743
756
  }
744
757
  return null;
745
758
  }
746
- s() {
759
+ t() {
747
760
  return new Size(1, NaN, NaN);
748
761
  }
749
762
  }
@@ -753,9 +766,15 @@ let ColorEditorView = /*@__PURE__*/ (() => {
753
766
  export { ColorEditorView };
754
767
  let ColorEditor = /*@__PURE__*/ (() => {
755
768
  class ColorEditor extends Base {
769
+ get view() {
770
+ return this._view;
771
+ }
772
+ set view(a) {
773
+ this._view = a;
774
+ }
756
775
  constructor() {
757
776
  super();
758
- this.h = null;
777
+ this._view = null;
759
778
  this.s = null;
760
779
  this.r = null;
761
780
  this.e = null;
@@ -793,14 +812,14 @@ let ColorEditor = /*@__PURE__*/ (() => {
793
812
  NativeUIXInputsFactory.m();
794
813
  let a = new ColorEditorView();
795
814
  a.a = this;
796
- this.h = a;
797
- this.h.q();
815
+ this.view = a;
816
+ this.view.r();
798
817
  }
799
818
  onAttachedToUI() {
800
- this.h.n();
819
+ this.view.o();
801
820
  }
802
821
  onDetachedFromUI() {
803
- this.h.p();
822
+ this.view.q();
804
823
  }
805
824
  b4(a, b) {
806
825
  if (this.valueChanging != null) {
@@ -820,11 +839,11 @@ let ColorEditor = /*@__PURE__*/ (() => {
820
839
  this.provideContainer(null);
821
840
  }
822
841
  provideContainer(a) {
823
- this.h.o(a);
842
+ this.view.p(a);
824
843
  }
825
844
  get u() {
826
845
  if (this.t == null) {
827
- this.t = new SRProvider(this.h.h);
846
+ this.t = new SRProvider(this.view.i);
828
847
  this.t.cb("ColorEditor");
829
848
  }
830
849
  return this.t;
@@ -1091,8 +1110,8 @@ let ColorEditor = /*@__PURE__*/ (() => {
1091
1110
  this.aa = false;
1092
1111
  }
1093
1112
  br() {
1094
- NativeUIWindow.h(15, runOn(this, this.b7), this.h.h);
1095
- NativeUIWindow.h(9, runOn(this, this.b6), this.h.h);
1113
+ NativeUIWindow.h(15, runOn(this, this.b7), this.view.i);
1114
+ NativeUIWindow.h(9, runOn(this, this.b6), this.view.i);
1096
1115
  }
1097
1116
  bv() {
1098
1117
  NativeUIWindow.i(15, runOn(this, this.b7));
@@ -1113,16 +1132,16 @@ let ColorEditor = /*@__PURE__*/ (() => {
1113
1132
  }
1114
1133
  }
1115
1134
  bj() {
1116
- NativeUIComponent.aw(this.h.j(), [12, 2, 7, 0], [2, 2, 2, 2], (a) => {
1135
+ NativeUIComponent.aw(this.view.k(), [12, 2, 7, 0], [2, 2, 2, 2], (a) => {
1117
1136
  let b = a[0];
1118
1137
  let c = a[1];
1119
1138
  let d = a[2];
1120
1139
  let e = a[3];
1121
- let f = this.h.i();
1122
- this.h.k(e, f);
1140
+ let f = this.view.j();
1141
+ this.view.l(e, f);
1123
1142
  b.bo(d);
1124
1143
  d.bo(e);
1125
- this.h.l(c);
1144
+ this.view.m(c);
1126
1145
  b.ci = BrushUtil.l(255, 255, 255, 255);
1127
1146
  b.cb = 150;
1128
1147
  b.b9 = 8;
@@ -1139,7 +1158,7 @@ let ColorEditor = /*@__PURE__*/ (() => {
1139
1158
  this.r.o = runOn(this, this.b0);
1140
1159
  this.r.cc = BrushUtil.l(255, 0, 0, 255);
1141
1160
  this.s = b;
1142
- this.e = this.h.c(f);
1161
+ this.e = this.view.c(f);
1143
1162
  this.e.value = this.value;
1144
1163
  let g = this.e;
1145
1164
  g.closed = delegateCombine(g.closed, runOn(this, this.bf));
@@ -1204,8 +1223,8 @@ let ColorEditor = /*@__PURE__*/ (() => {
1204
1223
  return;
1205
1224
  }
1206
1225
  if (this.s != null) {
1207
- let a = this.h.r(false);
1208
- let b = this.h.s();
1226
+ let a = this.view.s(false);
1227
+ let b = this.view.t();
1209
1228
  let c = b.height;
1210
1229
  let d = 240;
1211
1230
  let e = a.bottom + d;
@@ -1225,7 +1244,7 @@ let ColorEditor = /*@__PURE__*/ (() => {
1225
1244
  }
1226
1245
  ce(a, b) {
1227
1246
  {
1228
- let c = this.h.r(true);
1247
+ let c = this.view.s(true);
1229
1248
  this.s.cg(c, a, b);
1230
1249
  }
1231
1250
  }
@@ -52,6 +52,9 @@ let IgcColorEditorComponent = /*@__PURE__*/ (() => {
52
52
  this._wrapper = this._renderer;
53
53
  var colorEditor = this.i;
54
54
  this._colorEditor = colorEditor;
55
+ colorEditor.view.createColorEditorPanel = () => {
56
+ return document.createElement("igc-color-editor-panel");
57
+ };
55
58
  colorEditor.provideContainer(this._renderer);
56
59
  this._onChildrenChanged();
57
60
  //Checkbox.notifySizeChanged();
@@ -709,19 +709,20 @@ export var ColorEditorView = /** @class */ /*@__PURE__*/ (function (_super) {
709
709
  function ColorEditorView() {
710
710
  var _this = _super.call(this) || this;
711
711
  _this.a = null;
712
- _this.h = null;
712
+ _this.i = null;
713
713
  _this.d = null;
714
714
  _this.g = new List$1(Delegate_$type, 0);
715
715
  _this.e = true;
716
+ _this._createColorEditorPanel = null;
716
717
  _this.b = null;
717
718
  return _this;
718
719
  }
719
- ColorEditorView.prototype.q = function () {
720
+ ColorEditorView.prototype.r = function () {
720
721
  };
721
722
  ColorEditorView.prototype.f = function () {
722
723
  return true;
723
724
  };
724
- ColorEditorView.prototype.o = function (a) {
725
+ ColorEditorView.prototype.p = function (a) {
725
726
  var e_2, _a;
726
727
  if (a == null) {
727
728
  try {
@@ -749,45 +750,61 @@ export var ColorEditorView = /** @class */ /*@__PURE__*/ (function (_super) {
749
750
  if (this.a.a == null) {
750
751
  this.a.a = new DOMExecutionContext(a);
751
752
  }
752
- this.h = a;
753
+ this.i = a;
753
754
  this.a.bj();
754
755
  };
755
- ColorEditorView.prototype.m = function () {
756
+ ColorEditorView.prototype.n = function () {
756
757
  if (KeyFrameAnimationFactory.h == null) {
757
- KeyFrameAnimationFactory.h = this.h;
758
+ KeyFrameAnimationFactory.h = this.i;
758
759
  }
759
760
  };
760
- ColorEditorView.prototype.n = function () {
761
+ ColorEditorView.prototype.o = function () {
761
762
  this.e = true;
762
763
  };
763
- ColorEditorView.prototype.p = function () {
764
+ ColorEditorView.prototype.q = function () {
764
765
  this.e = false;
765
766
  };
766
- ColorEditorView.prototype.j = function () {
767
- return this.h;
768
- };
769
- ColorEditorView.prototype.i = function () {
770
- var a = new ColorEditorPanel();
771
- this.b = a;
772
- var b = this.h.createElement("div");
773
- var c = this.h.getSubRenderer(b);
774
- a.provideContainer(c);
775
- var d = this.h.getExternal(a, null, null);
776
- return b;
767
+ ColorEditorView.prototype.k = function () {
768
+ return this.i;
777
769
  };
778
- ColorEditorView.prototype.k = function (a, b) {
770
+ Object.defineProperty(ColorEditorView.prototype, "createColorEditorPanel", {
771
+ get: function () {
772
+ return this._createColorEditorPanel;
773
+ },
774
+ set: function (a) {
775
+ this._createColorEditorPanel = a;
776
+ },
777
+ enumerable: false,
778
+ configurable: true
779
+ });
780
+ ColorEditorView.prototype.j = function () {
781
+ if (this.createColorEditorPanel != null) {
782
+ var a = this.createColorEditorPanel();
783
+ var b = this.i.getWrapper(a);
784
+ this.b = (a.i);
785
+ return a;
786
+ }
787
+ var c = new ColorEditorPanel();
788
+ this.b = c;
789
+ var d = this.i.createElement("div");
790
+ var e = this.i.getSubRenderer(d);
791
+ c.provideContainer(e);
792
+ var f = this.i.getExternal(c, null, null);
793
+ return d;
794
+ };
795
+ ColorEditorView.prototype.l = function (a, b) {
779
796
  var c = a.ao;
780
- c.append(this.h.getWrapper(b));
797
+ c.append(this.i.getWrapper(b));
781
798
  };
782
- ColorEditorView.prototype.l = function (a) {
783
- this.h.append(this.h.getWrapper(a.ao));
799
+ ColorEditorView.prototype.m = function (a) {
800
+ this.i.append(this.i.getWrapper(a.ao));
784
801
  };
785
802
  ColorEditorView.prototype.c = function (a) {
786
803
  return this.b;
787
804
  };
788
- ColorEditorView.prototype.r = function (a) {
789
- if (this.h != null) {
790
- var b = this.h.rootWrapper.getNativeElement();
805
+ ColorEditorView.prototype.s = function (a) {
806
+ if (this.i != null) {
807
+ var b = this.i.rootWrapper.getNativeElement();
791
808
  var c = (b.getBoundingClientRect());
792
809
  if (a) {
793
810
  c = new Rect(0, c.left + window.pageXOffset, c.top + window.pageYOffset, c.width, c.height);
@@ -796,7 +813,7 @@ export var ColorEditorView = /** @class */ /*@__PURE__*/ (function (_super) {
796
813
  }
797
814
  return null;
798
815
  };
799
- ColorEditorView.prototype.s = function () {
816
+ ColorEditorView.prototype.t = function () {
800
817
  return new Size(1, NaN, NaN);
801
818
  };
802
819
  ColorEditorView.$t = markType(ColorEditorView, 'ColorEditorView');
@@ -809,7 +826,7 @@ export var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
809
826
  __extends(ColorEditor, _super);
810
827
  function ColorEditor() {
811
828
  var _this = _super.call(this) || this;
812
- _this.h = null;
829
+ _this._view = null;
813
830
  _this.s = null;
814
831
  _this.r = null;
815
832
  _this.e = null;
@@ -847,15 +864,25 @@ export var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
847
864
  NativeUIXInputsFactory.m();
848
865
  var a = new ColorEditorView();
849
866
  a.a = _this;
850
- _this.h = a;
851
- _this.h.q();
867
+ _this.view = a;
868
+ _this.view.r();
852
869
  return _this;
853
870
  }
871
+ Object.defineProperty(ColorEditor.prototype, "view", {
872
+ get: function () {
873
+ return this._view;
874
+ },
875
+ set: function (a) {
876
+ this._view = a;
877
+ },
878
+ enumerable: false,
879
+ configurable: true
880
+ });
854
881
  ColorEditor.prototype.onAttachedToUI = function () {
855
- this.h.n();
882
+ this.view.o();
856
883
  };
857
884
  ColorEditor.prototype.onDetachedFromUI = function () {
858
- this.h.p();
885
+ this.view.q();
859
886
  };
860
887
  ColorEditor.prototype.b4 = function (a, b) {
861
888
  if (this.valueChanging != null) {
@@ -875,12 +902,12 @@ export var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
875
902
  this.provideContainer(null);
876
903
  };
877
904
  ColorEditor.prototype.provideContainer = function (a) {
878
- this.h.o(a);
905
+ this.view.p(a);
879
906
  };
880
907
  Object.defineProperty(ColorEditor.prototype, "u", {
881
908
  get: function () {
882
909
  if (this.t == null) {
883
- this.t = new SRProvider(this.h.h);
910
+ this.t = new SRProvider(this.view.i);
884
911
  this.t.cb("ColorEditor");
885
912
  }
886
913
  return this.t;
@@ -1218,8 +1245,8 @@ export var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
1218
1245
  this.aa = false;
1219
1246
  };
1220
1247
  ColorEditor.prototype.br = function () {
1221
- NativeUIWindow.h(15, runOn(this, this.b7), this.h.h);
1222
- NativeUIWindow.h(9, runOn(this, this.b6), this.h.h);
1248
+ NativeUIWindow.h(15, runOn(this, this.b7), this.view.i);
1249
+ NativeUIWindow.h(9, runOn(this, this.b6), this.view.i);
1223
1250
  };
1224
1251
  ColorEditor.prototype.bv = function () {
1225
1252
  NativeUIWindow.i(15, runOn(this, this.b7));
@@ -1241,16 +1268,16 @@ export var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
1241
1268
  };
1242
1269
  ColorEditor.prototype.bj = function () {
1243
1270
  var _this = this;
1244
- NativeUIComponent.aw(this.h.j(), [12, 2, 7, 0], [2, 2, 2, 2], function (a) {
1271
+ NativeUIComponent.aw(this.view.k(), [12, 2, 7, 0], [2, 2, 2, 2], function (a) {
1245
1272
  var b = a[0];
1246
1273
  var c = a[1];
1247
1274
  var d = a[2];
1248
1275
  var e = a[3];
1249
- var f = _this.h.i();
1250
- _this.h.k(e, f);
1276
+ var f = _this.view.j();
1277
+ _this.view.l(e, f);
1251
1278
  b.bo(d);
1252
1279
  d.bo(e);
1253
- _this.h.l(c);
1280
+ _this.view.m(c);
1254
1281
  b.ci = BrushUtil.l(255, 255, 255, 255);
1255
1282
  b.cb = 150;
1256
1283
  b.b9 = 8;
@@ -1267,7 +1294,7 @@ export var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
1267
1294
  _this.r.o = runOn(_this, _this.b0);
1268
1295
  _this.r.cc = BrushUtil.l(255, 0, 0, 255);
1269
1296
  _this.s = b;
1270
- _this.e = _this.h.c(f);
1297
+ _this.e = _this.view.c(f);
1271
1298
  _this.e.value = _this.value;
1272
1299
  var g = _this.e;
1273
1300
  g.closed = delegateCombine(g.closed, runOn(_this, _this.bf));
@@ -1332,8 +1359,8 @@ export var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
1332
1359
  return;
1333
1360
  }
1334
1361
  if (this.s != null) {
1335
- var a = this.h.r(false);
1336
- var b = this.h.s();
1362
+ var a = this.view.s(false);
1363
+ var b = this.view.t();
1337
1364
  var c = b.height;
1338
1365
  var d = 240;
1339
1366
  var e = a.bottom + d;
@@ -1353,7 +1380,7 @@ export var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
1353
1380
  };
1354
1381
  ColorEditor.prototype.ce = function (a, b) {
1355
1382
  {
1356
- var c = this.h.r(true);
1383
+ var c = this.view.s(true);
1357
1384
  this.s.cg(c, a, b);
1358
1385
  }
1359
1386
  };
@@ -53,6 +53,9 @@ export var IgcColorEditorComponent = /** @class */ /*@__PURE__*/ (function (_sup
53
53
  _this._wrapper = _this._renderer;
54
54
  var colorEditor = _this.i;
55
55
  _this._colorEditor = colorEditor;
56
+ colorEditor.view.createColorEditorPanel = function () {
57
+ return document.createElement("igc-color-editor-panel");
58
+ };
56
59
  colorEditor.provideContainer(_this._renderer);
57
60
  _this._onChildrenChanged();
58
61
  //Checkbox.notifySizeChanged();