igniteui-angular-inputs 20.1.0 → 20.2.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.
- package/bundles/igniteui-angular-inputs.umd.js +1322 -1128
- package/bundles/igniteui-angular-inputs.umd.min.js +1 -1
- package/esm2015/lib/ButtonGroupView_combined.js +1 -1
- package/esm2015/lib/ButtonGroupVisualModelExport.js +9 -1
- package/esm2015/lib/ButtonView_combined.js +315 -308
- package/esm2015/lib/CheckboxListVisualModelExport.js +43 -0
- package/esm2015/lib/CheckboxView_combined.js +179 -164
- package/esm2015/lib/CheckboxVisualModelExport.js +14 -6
- package/esm2015/lib/ColorEditorVisualModelExport.js +40 -0
- package/esm2015/lib/IconView_combined.js +27 -22
- package/esm2015/lib/InputGroupView_combined.js +274 -262
- package/esm2015/lib/InputGroupVisualModelExport.js +2 -2
- package/esm2015/lib/InputVisualModelExport.js +34 -32
- package/esm2015/lib/MultiSliderView_combined.js +2 -2
- package/esm2015/lib/NativeUIXInputsFactory_combined.js +324 -299
- package/esm2015/lib/XButtonBridge.js +1 -1
- package/esm2015/lib/XButtonGroupBridge.js +7 -1
- package/esm2015/lib/XCheckboxBridge.js +2 -1
- package/esm2015/lib/XIconBridge.js +2 -1
- package/esm2015/lib/XInputBridge.js +11 -1
- package/esm2015/lib/igx-color-editor-component.js +49 -33
- package/esm2015/public_api.js +2 -0
- package/esm5/lib/ButtonGroupView_combined.js +1 -1
- package/esm5/lib/ButtonGroupVisualModelExport.js +9 -1
- package/esm5/lib/ButtonView_combined.js +315 -308
- package/esm5/lib/CheckboxListVisualModelExport.js +45 -0
- package/esm5/lib/CheckboxView_combined.js +177 -162
- package/esm5/lib/CheckboxVisualModelExport.js +14 -6
- package/esm5/lib/ColorEditorVisualModelExport.js +42 -0
- package/esm5/lib/IconView_combined.js +32 -27
- package/esm5/lib/InputGroupView_combined.js +275 -263
- package/esm5/lib/InputGroupVisualModelExport.js +2 -2
- package/esm5/lib/InputVisualModelExport.js +34 -32
- package/esm5/lib/MultiSliderView_combined.js +2 -2
- package/esm5/lib/NativeUIXInputsFactory_combined.js +315 -290
- package/esm5/lib/XButtonBridge.js +1 -1
- package/esm5/lib/XButtonGroupBridge.js +7 -1
- package/esm5/lib/XCheckboxBridge.js +2 -1
- package/esm5/lib/XIconBridge.js +2 -1
- package/esm5/lib/XInputBridge.js +11 -1
- package/esm5/lib/igx-color-editor-component.js +49 -33
- package/esm5/public_api.js +2 -0
- package/fesm2015/igniteui-angular-inputs.js +1328 -1136
- package/fesm5/igniteui-angular-inputs.js +1322 -1130
- package/lib/ButtonGroupVisualModelExport.d.ts +5 -1
- package/lib/ButtonView_combined.d.ts +42 -41
- package/lib/CheckboxListVisualModelExport.d.ts +18 -0
- package/lib/CheckboxView_combined.d.ts +30 -29
- package/lib/CheckboxVisualModelExport.d.ts +7 -3
- package/lib/ColorEditorVisualModelExport.d.ts +17 -0
- package/lib/IconView_combined.d.ts +2 -0
- package/lib/InputGroupView_combined.d.ts +57 -56
- package/lib/InputVisualModelExport.d.ts +14 -12
- package/lib/NativeUIXInputsFactory_combined.d.ts +90 -85
- package/lib/igx-color-editor-component.d.ts +10 -0
- package/package.json +2 -2
- package/public_api.d.ts +2 -0
|
@@ -740,43 +740,43 @@ export let InputView = /*@__PURE__*/ (() => {
|
|
|
740
740
|
class InputView extends Base {
|
|
741
741
|
constructor() {
|
|
742
742
|
super();
|
|
743
|
-
this.b = null;
|
|
744
|
-
this.l = null;
|
|
745
743
|
this.c = null;
|
|
746
|
-
this.j = new List$1(Delegate_$type, 0);
|
|
747
|
-
this.g = false;
|
|
748
|
-
this.f = false;
|
|
749
|
-
this.r = null;
|
|
750
|
-
this.d = true;
|
|
751
744
|
this.m = null;
|
|
752
|
-
this.
|
|
745
|
+
this.d = null;
|
|
746
|
+
this.k = new List$1(Delegate_$type, 0);
|
|
747
|
+
this.h = false;
|
|
753
748
|
this.g = false;
|
|
749
|
+
this.s = null;
|
|
750
|
+
this.e = true;
|
|
751
|
+
this.n = null;
|
|
752
|
+
this.o = null;
|
|
753
|
+
this.h = false;
|
|
754
754
|
}
|
|
755
|
-
|
|
755
|
+
at() {
|
|
756
756
|
}
|
|
757
|
-
|
|
757
|
+
i() {
|
|
758
758
|
return true;
|
|
759
759
|
}
|
|
760
|
-
get
|
|
761
|
-
return this.
|
|
760
|
+
get r() {
|
|
761
|
+
return this.n;
|
|
762
762
|
}
|
|
763
|
-
get
|
|
763
|
+
get be() {
|
|
764
764
|
return null;
|
|
765
765
|
}
|
|
766
|
-
get
|
|
766
|
+
get j() {
|
|
767
767
|
return true;
|
|
768
768
|
}
|
|
769
|
-
|
|
769
|
+
aq(a) {
|
|
770
770
|
if (a == null) {
|
|
771
|
-
for (let b of fromEnum(this.
|
|
771
|
+
for (let b of fromEnum(this.k)) {
|
|
772
772
|
b();
|
|
773
773
|
}
|
|
774
|
-
this.
|
|
774
|
+
this.k.clear();
|
|
775
775
|
}
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
778
|
-
let c = this.
|
|
779
|
-
c.setAttribute("type", this.
|
|
776
|
+
this.m = a;
|
|
777
|
+
this.m.rootWrapper.setStyleProperty("display", "inline-block");
|
|
778
|
+
let c = this.m.createElement("input");
|
|
779
|
+
c.setAttribute("type", this.c.b8);
|
|
780
780
|
c.setStyleProperty("position", "relative");
|
|
781
781
|
c.setStyleProperty("box-sizing", "border-box");
|
|
782
782
|
c.setStyleProperty("display", "inline-block");
|
|
@@ -795,75 +795,75 @@ export let InputView = /*@__PURE__*/ (() => {
|
|
|
795
795
|
c.setStyleProperty("background-attachment", "initial");
|
|
796
796
|
c.setStyleProperty("background-origin", "initial");
|
|
797
797
|
c.setStyleProperty("background-color", "transparent");
|
|
798
|
-
NativeUI.q(c, this.
|
|
798
|
+
NativeUI.q(c, this.c.d4);
|
|
799
799
|
c.setStyleProperty("outline-style", "none");
|
|
800
800
|
c.setStyleProperty("box-shadow", "none");
|
|
801
801
|
c.setStyleProperty("border-top", "0.1875rem solid transparent");
|
|
802
802
|
c.setStyleProperty("padding-bottom", "0.1875rem");
|
|
803
|
-
c.setStyleProperty("text-align", this.
|
|
803
|
+
c.setStyleProperty("text-align", this.u(this.c.dy));
|
|
804
804
|
c.setStyleProperty("font-family", "Verdana");
|
|
805
805
|
c.setStyleProperty("font-size", "1rem");
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
809
|
-
this.
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
821
|
-
this.
|
|
822
|
-
this.
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
806
|
+
this.k.add(c.listen("change", runOn(this, this.z)));
|
|
807
|
+
this.k.add(c.listen("input", runOn(this, this.aa)));
|
|
808
|
+
this.k.add(c.listen("focus", runOn(this, this.af)));
|
|
809
|
+
this.k.add(c.listen("blur", runOn(this, this.y)));
|
|
810
|
+
this.k.add(c.listen("mouseenter", runOn(this, this.w)));
|
|
811
|
+
this.k.add(c.listen("mouseleave", runOn(this, this.x)));
|
|
812
|
+
this.k.add(c.listen("keydown", runOn(this, this.ag)));
|
|
813
|
+
this.k.add(c.listen("keyup", runOn(this, this.ai)));
|
|
814
|
+
this.k.add(c.listen("keypress", runOn(this, this.ah)));
|
|
815
|
+
this.k.add(c.listen("paste", runOn(this, this.al)));
|
|
816
|
+
this.k.add(c.listen("dragenter", runOn(this, this.ad)));
|
|
817
|
+
this.k.add(c.listen("dragleave", runOn(this, this.ae)));
|
|
818
|
+
this.k.add(c.listen("compositionstart", runOn(this, this.ac)));
|
|
819
|
+
this.k.add(c.listen("compositionend", runOn(this, this.ab)));
|
|
820
|
+
this.k.add(c.listen("mousedown", runOn(this, this.aj)));
|
|
821
|
+
this.k.add(c.listen("mouseup", runOn(this, this.ak)));
|
|
822
|
+
this.n = c;
|
|
823
|
+
this.m.append(this.n);
|
|
824
|
+
this.an();
|
|
825
|
+
this.c.dl();
|
|
826
826
|
}
|
|
827
|
-
|
|
827
|
+
a1(a) {
|
|
828
828
|
if (a) {
|
|
829
|
-
this.
|
|
829
|
+
this.n.setAttribute("readonly", a.toString());
|
|
830
830
|
}
|
|
831
831
|
else {
|
|
832
|
-
this.
|
|
832
|
+
this.n.getNativeElement().removeAttribute("readonly");
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
|
|
835
|
+
az(a) {
|
|
836
836
|
if (a) {
|
|
837
|
-
this.
|
|
837
|
+
this.n.setAttribute("disabled", "true");
|
|
838
838
|
}
|
|
839
839
|
else {
|
|
840
|
-
this.
|
|
840
|
+
this.n.getNativeElement().removeAttribute("disabled");
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
|
|
844
|
-
this.
|
|
843
|
+
a6(a) {
|
|
844
|
+
this.n.setStyleProperty("text-align", this.u(a));
|
|
845
845
|
}
|
|
846
|
-
|
|
846
|
+
a5(a) {
|
|
847
847
|
if (a) {
|
|
848
|
-
this.
|
|
848
|
+
this.n.removeClass("ig-input-hide-spinner");
|
|
849
849
|
}
|
|
850
850
|
else {
|
|
851
|
-
this.
|
|
851
|
+
this.n.addClass("ig-input-hide-spinner");
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
|
|
855
|
-
this.
|
|
856
|
-
this.
|
|
854
|
+
ac(a) {
|
|
855
|
+
this.h = true;
|
|
856
|
+
this.c.c3();
|
|
857
857
|
}
|
|
858
|
-
|
|
859
|
-
this.
|
|
858
|
+
ab(a) {
|
|
859
|
+
this.h = false;
|
|
860
860
|
let b = null;
|
|
861
861
|
if (a.originalEvent != null) {
|
|
862
862
|
b = (a.originalEvent.data);
|
|
863
863
|
}
|
|
864
|
-
this.
|
|
864
|
+
this.c.c2(b);
|
|
865
865
|
}
|
|
866
|
-
|
|
866
|
+
u(a) {
|
|
867
867
|
switch (a) {
|
|
868
868
|
case 0: return "left";
|
|
869
869
|
case 2: return "right";
|
|
@@ -871,53 +871,53 @@ export let InputView = /*@__PURE__*/ (() => {
|
|
|
871
871
|
}
|
|
872
872
|
return "left";
|
|
873
873
|
}
|
|
874
|
-
|
|
875
|
-
this.
|
|
876
|
-
if (this.
|
|
877
|
-
this.
|
|
874
|
+
ax() {
|
|
875
|
+
this.n.setAttribute("type", this.c.b8);
|
|
876
|
+
if (this.c.b8 == "date") {
|
|
877
|
+
this.n.setStyleProperty("line-height", "normal");
|
|
878
878
|
}
|
|
879
879
|
else {
|
|
880
|
-
this.
|
|
880
|
+
this.n.setStyleProperty("line-height", "0");
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
|
|
884
|
-
this.
|
|
883
|
+
av() {
|
|
884
|
+
this.n.setAttribute("placeholder", this.c.cg);
|
|
885
885
|
}
|
|
886
|
-
|
|
887
|
-
switch (this.
|
|
886
|
+
ba() {
|
|
887
|
+
switch (this.c.z) {
|
|
888
888
|
case 1:
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
889
|
+
this.n.setStyleProperty("height", "2rem");
|
|
890
|
+
this.n.setStyleProperty("font-size", "1rem");
|
|
891
891
|
break;
|
|
892
892
|
case 2:
|
|
893
|
-
this.
|
|
894
|
-
this.
|
|
893
|
+
this.n.setStyleProperty("height", "1.68421rem");
|
|
894
|
+
this.n.setStyleProperty("font-size", "1rem");
|
|
895
895
|
break;
|
|
896
896
|
case 3:
|
|
897
|
-
this.
|
|
898
|
-
this.
|
|
897
|
+
this.n.setStyleProperty("height", "1.45455rem");
|
|
898
|
+
this.n.setStyleProperty("font-size", ".95455rem");
|
|
899
899
|
break;
|
|
900
900
|
case 4:
|
|
901
|
-
this.
|
|
902
|
-
this.
|
|
901
|
+
this.n.setStyleProperty("height", "1.388445rem");
|
|
902
|
+
this.n.setStyleProperty("font-size", "0.91116rem");
|
|
903
903
|
break;
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
|
|
907
|
-
let a = this.
|
|
906
|
+
a9() {
|
|
907
|
+
let a = this.l();
|
|
908
908
|
if (isNaN_(a) || a == 0) {
|
|
909
|
-
if (!this.
|
|
910
|
-
this.
|
|
911
|
-
this.
|
|
912
|
-
this.
|
|
913
|
-
this.
|
|
909
|
+
if (!this.g) {
|
|
910
|
+
this.g = true;
|
|
911
|
+
this.m.setTimeout(() => {
|
|
912
|
+
this.g = false;
|
|
913
|
+
this.a9();
|
|
914
914
|
}, 100);
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
let b = new TransformGroup();
|
|
918
918
|
b.j.add(((() => {
|
|
919
919
|
let $ret = new TranslateTransform();
|
|
920
|
-
$ret.k = this.
|
|
920
|
+
$ret.k = this.c.o == 2 ? (this.l() * -0.25) : 0;
|
|
921
921
|
return $ret;
|
|
922
922
|
})()));
|
|
923
923
|
b.j.add(((() => {
|
|
@@ -926,194 +926,203 @@ export let InputView = /*@__PURE__*/ (() => {
|
|
|
926
926
|
$ret.m = 1;
|
|
927
927
|
return $ret;
|
|
928
928
|
})()));
|
|
929
|
-
NativeUI.af(this.
|
|
930
|
-
this.
|
|
929
|
+
NativeUI.af(this.m.rootWrapper, b);
|
|
930
|
+
this.m.rootWrapper.setStyleProperty("transform-origin", "0px 0px");
|
|
931
931
|
}
|
|
932
|
-
|
|
933
|
-
let a = this.
|
|
932
|
+
l() {
|
|
933
|
+
let a = this.m.rootWrapper.getStyleProperty("height");
|
|
934
934
|
let b = parseFloat(stringReplace(a, "px", ""));
|
|
935
935
|
return b;
|
|
936
936
|
}
|
|
937
|
-
|
|
938
|
-
this.
|
|
937
|
+
ay(a) {
|
|
938
|
+
this.n.setProperty("value", a);
|
|
939
939
|
}
|
|
940
|
-
|
|
941
|
-
this.
|
|
940
|
+
a0(a) {
|
|
941
|
+
this.n.setAttribute("name", a);
|
|
942
942
|
}
|
|
943
|
-
|
|
944
|
-
this.
|
|
943
|
+
y(a) {
|
|
944
|
+
this.c.cz();
|
|
945
945
|
}
|
|
946
|
-
|
|
947
|
-
this.
|
|
946
|
+
af(a) {
|
|
947
|
+
this.c.c7();
|
|
948
948
|
}
|
|
949
|
-
|
|
950
|
-
let b = this.
|
|
951
|
-
this.
|
|
949
|
+
aj(a) {
|
|
950
|
+
let b = this.bd(a);
|
|
951
|
+
this.c.dd(b);
|
|
952
952
|
if (b.handled) {
|
|
953
953
|
a.preventDefault();
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
|
|
957
|
-
let b = this.
|
|
958
|
-
this.
|
|
956
|
+
ak(a) {
|
|
957
|
+
let b = this.bd(a);
|
|
958
|
+
this.c.dg(b);
|
|
959
959
|
if (b.handled) {
|
|
960
960
|
a.preventDefault();
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
|
|
963
|
+
bd(a) {
|
|
964
964
|
let b = new MouseButtonEventArgs();
|
|
965
965
|
b.position = { $type: Point_$type, x: a.offsetX, y: a.offsetY };
|
|
966
966
|
return b;
|
|
967
967
|
}
|
|
968
|
-
y(a) {
|
|
969
|
-
this.b.c0();
|
|
970
|
-
}
|
|
971
968
|
z(a) {
|
|
972
|
-
this.
|
|
969
|
+
this.c.c0();
|
|
973
970
|
}
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
this.b.da(b);
|
|
971
|
+
aa(a) {
|
|
972
|
+
this.c.c1();
|
|
977
973
|
}
|
|
978
|
-
|
|
974
|
+
ag(a) {
|
|
979
975
|
let b = new KeyEventArgs(0, a);
|
|
980
|
-
this.
|
|
976
|
+
this.c.da(b);
|
|
981
977
|
}
|
|
982
|
-
|
|
978
|
+
ai(a) {
|
|
983
979
|
let b = new KeyEventArgs(0, a);
|
|
984
|
-
this.
|
|
980
|
+
this.c.dc(b);
|
|
985
981
|
}
|
|
986
|
-
|
|
987
|
-
|
|
982
|
+
ah(a) {
|
|
983
|
+
let b = new KeyEventArgs(0, a);
|
|
984
|
+
this.c.db(b);
|
|
988
985
|
}
|
|
989
|
-
|
|
990
|
-
this.
|
|
986
|
+
al(a) {
|
|
987
|
+
this.c.dh();
|
|
991
988
|
}
|
|
992
989
|
ad(a) {
|
|
993
|
-
this.
|
|
990
|
+
this.c.c5();
|
|
994
991
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
992
|
+
ae(a) {
|
|
993
|
+
this.c.c6();
|
|
994
|
+
}
|
|
995
|
+
bb(a) {
|
|
996
|
+
if (this.s != a) {
|
|
997
|
+
this.s = a;
|
|
998
|
+
if (this.o != null) {
|
|
999
|
+
this.o.setAttribute("d", this.s);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
|
-
|
|
1004
|
-
return this.
|
|
1003
|
+
t() {
|
|
1004
|
+
return this.n.getProperty("value");
|
|
1005
1005
|
}
|
|
1006
|
-
|
|
1006
|
+
v(a) {
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1009
|
-
if (this.
|
|
1010
|
-
if (this.
|
|
1011
|
-
this.
|
|
1008
|
+
a8() {
|
|
1009
|
+
if (this.i()) {
|
|
1010
|
+
if (this.c.as) {
|
|
1011
|
+
this.n.setAttribute("tabindex", this.c.be.toString());
|
|
1012
1012
|
}
|
|
1013
1013
|
else {
|
|
1014
|
-
this.
|
|
1014
|
+
this.n.getNativeElement().removeAttribute("tabindex");
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
|
|
1019
|
-
let a = this.
|
|
1018
|
+
q() {
|
|
1019
|
+
let a = this.n.getProperty("selectionStart");
|
|
1020
1020
|
return typeGetValue(a);
|
|
1021
1021
|
}
|
|
1022
|
-
|
|
1023
|
-
let a = this.
|
|
1022
|
+
p() {
|
|
1023
|
+
let a = this.n.getProperty("selectionEnd");
|
|
1024
1024
|
return typeGetValue(a);
|
|
1025
1025
|
}
|
|
1026
|
-
|
|
1027
|
-
this.
|
|
1026
|
+
a4(a) {
|
|
1027
|
+
this.n.setProperty("selectionStart", a);
|
|
1028
1028
|
}
|
|
1029
|
-
|
|
1030
|
-
this.
|
|
1029
|
+
a2(a) {
|
|
1030
|
+
this.n.setProperty("selectionEnd", a);
|
|
1031
1031
|
}
|
|
1032
|
-
|
|
1033
|
-
if (this.
|
|
1032
|
+
au() {
|
|
1033
|
+
if (this.i()) {
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
v(a) {
|
|
1037
|
-
this.b.de();
|
|
1038
|
-
}
|
|
1039
1036
|
w(a) {
|
|
1040
|
-
this.
|
|
1037
|
+
this.c.de();
|
|
1041
1038
|
}
|
|
1042
|
-
|
|
1043
|
-
this.
|
|
1044
|
-
this.j.add(this.m.listen("change", runOn(this, this.y)));
|
|
1045
|
-
this.j.add(this.m.listen("input", runOn(this, this.z)));
|
|
1046
|
-
this.j.add(this.m.listen("focus", runOn(this, this.ae)));
|
|
1047
|
-
this.j.add(this.m.listen("blur", runOn(this, this.x)));
|
|
1048
|
-
this.j.add(this.m.listen("mouseenter", runOn(this, this.v)));
|
|
1049
|
-
this.j.add(this.m.listen("mouseleave", runOn(this, this.w)));
|
|
1050
|
-
this.j.add(this.m.listen("keydown", runOn(this, this.af)));
|
|
1051
|
-
this.j.add(this.m.listen("paste", runOn(this, this.ak)));
|
|
1052
|
-
this.j.add(this.m.listen("dragenter", runOn(this, this.ac)));
|
|
1053
|
-
this.j.add(this.m.listen("dragleave", runOn(this, this.ad)));
|
|
1054
|
-
this.j.add(this.m.listen("compositionstart", runOn(this, this.ab)));
|
|
1055
|
-
this.j.add(this.m.listen("compositionend", runOn(this, this.aa)));
|
|
1056
|
-
this.j.add(this.m.listen("mousedown", runOn(this, this.ai)));
|
|
1057
|
-
this.j.add(this.m.listen("mouseup", runOn(this, this.aj)));
|
|
1039
|
+
x(a) {
|
|
1040
|
+
this.c.df();
|
|
1058
1041
|
}
|
|
1059
|
-
|
|
1060
|
-
this.
|
|
1061
|
-
|
|
1042
|
+
ao() {
|
|
1043
|
+
this.e = true;
|
|
1044
|
+
this.k.add(this.n.listen("change", runOn(this, this.z)));
|
|
1045
|
+
this.k.add(this.n.listen("input", runOn(this, this.aa)));
|
|
1046
|
+
this.k.add(this.n.listen("focus", runOn(this, this.af)));
|
|
1047
|
+
this.k.add(this.n.listen("blur", runOn(this, this.y)));
|
|
1048
|
+
this.k.add(this.n.listen("mouseenter", runOn(this, this.w)));
|
|
1049
|
+
this.k.add(this.n.listen("mouseleave", runOn(this, this.x)));
|
|
1050
|
+
this.k.add(this.n.listen("keydown", runOn(this, this.ag)));
|
|
1051
|
+
this.k.add(this.n.listen("paste", runOn(this, this.al)));
|
|
1052
|
+
this.k.add(this.n.listen("dragenter", runOn(this, this.ad)));
|
|
1053
|
+
this.k.add(this.n.listen("dragleave", runOn(this, this.ae)));
|
|
1054
|
+
this.k.add(this.n.listen("compositionstart", runOn(this, this.ac)));
|
|
1055
|
+
this.k.add(this.n.listen("compositionend", runOn(this, this.ab)));
|
|
1056
|
+
this.k.add(this.n.listen("mousedown", runOn(this, this.aj)));
|
|
1057
|
+
this.k.add(this.n.listen("mouseup", runOn(this, this.ak)));
|
|
1058
|
+
}
|
|
1059
|
+
ar() {
|
|
1060
|
+
this.e = false;
|
|
1061
|
+
for (let a of fromEnum(this.k)) {
|
|
1062
1062
|
a();
|
|
1063
1063
|
}
|
|
1064
|
-
this.
|
|
1064
|
+
this.k.clear();
|
|
1065
1065
|
}
|
|
1066
|
-
|
|
1066
|
+
bc(a) {
|
|
1067
1067
|
if (a != null) {
|
|
1068
|
-
this.
|
|
1068
|
+
this.n.setStyleProperty("font", a.fontString);
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
|
-
|
|
1071
|
+
a7() {
|
|
1072
1072
|
}
|
|
1073
|
-
|
|
1074
|
-
if (this.
|
|
1075
|
-
let a = this.
|
|
1073
|
+
ap() {
|
|
1074
|
+
if (this.n != null) {
|
|
1075
|
+
let a = this.n.getNativeElement();
|
|
1076
1076
|
a.blur();
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
|
-
|
|
1080
|
-
if (this.
|
|
1081
|
-
this.
|
|
1079
|
+
as(a) {
|
|
1080
|
+
if (this.n != null) {
|
|
1081
|
+
this.n.focus(a);
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
|
|
1085
|
-
if (this.
|
|
1086
|
-
let nativeInput_ = this.
|
|
1084
|
+
aw() {
|
|
1085
|
+
if (this.n != null) {
|
|
1086
|
+
let nativeInput_ = this.n;
|
|
1087
1087
|
nativeInput_.getNativeElement().select();
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
|
|
1091
|
-
if (this.
|
|
1092
|
-
let c = this.
|
|
1090
|
+
a3(a, b) {
|
|
1091
|
+
if (this.n != null) {
|
|
1092
|
+
let c = this.n.getNativeElement();
|
|
1093
1093
|
c.setSelectionRange(a, b);
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
|
-
|
|
1096
|
+
am() {
|
|
1097
1097
|
if (KeyFrameAnimationFactory.h == null) {
|
|
1098
|
-
KeyFrameAnimationFactory.h = this.
|
|
1098
|
+
KeyFrameAnimationFactory.h = this.m;
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
|
|
1102
|
-
return new AnimationKeyFrameEffect(0, this.
|
|
1101
|
+
b(a) {
|
|
1102
|
+
return new AnimationKeyFrameEffect(0, this.m.rootWrapper, 0, null, a);
|
|
1103
1103
|
}
|
|
1104
|
-
|
|
1105
|
-
if (InputView.
|
|
1104
|
+
an() {
|
|
1105
|
+
if (InputView.f) {
|
|
1106
1106
|
return;
|
|
1107
1107
|
}
|
|
1108
1108
|
let a = "\r\n.ig-input-hide-spinner::-webkit-outer-spin-button,\r\n.ig-input-hide-spinner::-webkit-inner-spin-button {\r\n -webkit-appearance: none;\r\n margin: 0;\r\n}";
|
|
1109
|
-
let b = this.
|
|
1109
|
+
let b = this.m.createElement("style");
|
|
1110
1110
|
b.setRawText(a);
|
|
1111
1111
|
document.head.appendChild(b.getNativeElement());
|
|
1112
|
-
InputView.
|
|
1112
|
+
InputView.f = true;
|
|
1113
|
+
}
|
|
1114
|
+
a() {
|
|
1115
|
+
let rect_ = this.n.getNativeElement().getBoundingClientRect();
|
|
1116
|
+
let a = (rect_.top);
|
|
1117
|
+
let b = (rect_.left);
|
|
1118
|
+
let c = new Array(2);
|
|
1119
|
+
c[0] = a;
|
|
1120
|
+
c[1] = b;
|
|
1121
|
+
return c;
|
|
1113
1122
|
}
|
|
1114
1123
|
}
|
|
1115
1124
|
InputView.$t = markType(InputView, 'InputView');
|
|
1116
|
-
InputView.
|
|
1125
|
+
InputView.f = false;
|
|
1117
1126
|
return InputView;
|
|
1118
1127
|
})();
|
|
1119
1128
|
/**
|
|
@@ -2165,7 +2174,7 @@ export let XInputGroup = /*@__PURE__*/ (() => {
|
|
|
2165
2174
|
return a;
|
|
2166
2175
|
}
|
|
2167
2176
|
onChildrenMutated() {
|
|
2168
|
-
this.jr((a) => a.view.
|
|
2177
|
+
this.jr((a) => a.view.a9());
|
|
2169
2178
|
this.js((a) => a.view.aj());
|
|
2170
2179
|
this.jt((a) => a.view.r());
|
|
2171
2180
|
this.ju((a) => a.view.r());
|
|
@@ -3613,7 +3622,7 @@ export let XInputGroup = /*@__PURE__*/ (() => {
|
|
|
3613
3622
|
this.view.ag();
|
|
3614
3623
|
}
|
|
3615
3624
|
ensureShift() {
|
|
3616
|
-
this.jr((a) => a.view.
|
|
3625
|
+
this.jr((a) => a.view.a9());
|
|
3617
3626
|
this.js((a) => a.view.aj());
|
|
3618
3627
|
this.jt((a) => a.view.r());
|
|
3619
3628
|
this.ju((a) => a.view.r());
|
|
@@ -4912,9 +4921,9 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
4912
4921
|
this.a0 = false;
|
|
4913
4922
|
this.u = new MaskParsingService();
|
|
4914
4923
|
let a = new InputView();
|
|
4915
|
-
a.
|
|
4924
|
+
a.c = this;
|
|
4916
4925
|
this.view = a;
|
|
4917
|
-
this.view.
|
|
4926
|
+
this.view.at();
|
|
4918
4927
|
XInput.ae = new FontInfo();
|
|
4919
4928
|
XInput.ae.q = "Verdana";
|
|
4920
4929
|
}
|
|
@@ -5022,7 +5031,7 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5022
5031
|
break;
|
|
5023
5032
|
case "Value":
|
|
5024
5033
|
if (!this.al) {
|
|
5025
|
-
this.view.
|
|
5034
|
+
this.view.ay(this.cq);
|
|
5026
5035
|
if (this.b != null) {
|
|
5027
5036
|
this.b.kh();
|
|
5028
5037
|
}
|
|
@@ -5032,14 +5041,14 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5032
5041
|
}
|
|
5033
5042
|
break;
|
|
5034
5043
|
case "Name":
|
|
5035
|
-
this.view.
|
|
5044
|
+
this.view.a0(this.e);
|
|
5036
5045
|
break;
|
|
5037
5046
|
case "Density":
|
|
5038
5047
|
this.z = this.aa == 0 ? 1 : this.aa;
|
|
5039
5048
|
break;
|
|
5040
5049
|
case "ActualDensity":
|
|
5050
|
+
this.view.ba();
|
|
5041
5051
|
this.view.a9();
|
|
5042
|
-
this.view.a8();
|
|
5043
5052
|
break;
|
|
5044
5053
|
case "InputGroup":
|
|
5045
5054
|
this.c8();
|
|
@@ -5062,33 +5071,33 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5062
5071
|
this.c9();
|
|
5063
5072
|
break;
|
|
5064
5073
|
case "IsDisabled":
|
|
5065
|
-
this.view.
|
|
5074
|
+
this.view.az(this.am);
|
|
5066
5075
|
break;
|
|
5067
5076
|
case "IsReadOnly":
|
|
5068
|
-
this.view.
|
|
5077
|
+
this.view.a1(this.ao);
|
|
5069
5078
|
break;
|
|
5070
5079
|
case "TextAlignment":
|
|
5071
|
-
this.view.
|
|
5080
|
+
this.view.a6(this.dy);
|
|
5072
5081
|
break;
|
|
5073
5082
|
case "ShowSpinner":
|
|
5074
|
-
this.view.
|
|
5083
|
+
this.view.a5(this.a1);
|
|
5075
5084
|
break;
|
|
5076
5085
|
case "TabIndex":
|
|
5077
|
-
this.view.
|
|
5086
|
+
this.view.a8();
|
|
5078
5087
|
break;
|
|
5079
5088
|
}
|
|
5080
5089
|
}
|
|
5081
5090
|
di() {
|
|
5082
|
-
this.view.
|
|
5091
|
+
this.view.av();
|
|
5083
5092
|
}
|
|
5084
5093
|
dk() {
|
|
5085
|
-
this.view.
|
|
5094
|
+
this.view.ax();
|
|
5086
5095
|
}
|
|
5087
5096
|
dj() {
|
|
5088
|
-
this.view.
|
|
5097
|
+
this.view.a9();
|
|
5089
5098
|
}
|
|
5090
5099
|
c8() {
|
|
5091
|
-
this.view.
|
|
5100
|
+
this.view.a9();
|
|
5092
5101
|
}
|
|
5093
5102
|
dv() {
|
|
5094
5103
|
this.d4 = this.d8 != null ? this.d8 : XInput.d6;
|
|
@@ -5097,10 +5106,10 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5097
5106
|
}
|
|
5098
5107
|
du() {
|
|
5099
5108
|
if (this.ad != null) {
|
|
5100
|
-
this.view.
|
|
5109
|
+
this.view.bc(this.ad);
|
|
5101
5110
|
}
|
|
5102
|
-
NativeUI.q(this.view.
|
|
5103
|
-
this.view.
|
|
5111
|
+
NativeUI.q(this.view.r, this.d4);
|
|
5112
|
+
this.view.a7();
|
|
5104
5113
|
}
|
|
5105
5114
|
get d4() {
|
|
5106
5115
|
return this.d0;
|
|
@@ -5214,12 +5223,12 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5214
5223
|
}
|
|
5215
5224
|
c0() {
|
|
5216
5225
|
this.al = true;
|
|
5217
|
-
this.cq = this.view.
|
|
5226
|
+
this.cq = this.view.t();
|
|
5218
5227
|
if (this.change != null) {
|
|
5219
5228
|
this.change(this, ((() => {
|
|
5220
5229
|
let $ret = new InputChangeEventArgs();
|
|
5221
5230
|
$ret.value = this.cq;
|
|
5222
|
-
$ret.isCompositionInProgress = this.view.
|
|
5231
|
+
$ret.isCompositionInProgress = this.view.h;
|
|
5223
5232
|
return $ret;
|
|
5224
5233
|
})()));
|
|
5225
5234
|
}
|
|
@@ -5227,7 +5236,7 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5227
5236
|
}
|
|
5228
5237
|
c1() {
|
|
5229
5238
|
this.al = true;
|
|
5230
|
-
this.cq = this.view.
|
|
5239
|
+
this.cq = this.view.t();
|
|
5231
5240
|
this.al = false;
|
|
5232
5241
|
if (this.ce != null) {
|
|
5233
5242
|
this.aq = true;
|
|
@@ -5270,7 +5279,7 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5270
5279
|
this.changing(this, ((() => {
|
|
5271
5280
|
let $ret = new InputChangeEventArgs();
|
|
5272
5281
|
$ret.value = this.cq;
|
|
5273
|
-
$ret.isCompositionInProgress = this.view.
|
|
5282
|
+
$ret.isCompositionInProgress = this.view.h;
|
|
5274
5283
|
return $ret;
|
|
5275
5284
|
})()));
|
|
5276
5285
|
}
|
|
@@ -5363,7 +5372,7 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5363
5372
|
cu() {
|
|
5364
5373
|
this.a9 = 0;
|
|
5365
5374
|
this.aj = false;
|
|
5366
|
-
this.view.
|
|
5375
|
+
this.view.a8();
|
|
5367
5376
|
}
|
|
5368
5377
|
get b2() {
|
|
5369
5378
|
return this.bl;
|
|
@@ -5441,83 +5450,86 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5441
5450
|
dl() {
|
|
5442
5451
|
}
|
|
5443
5452
|
onDetachedFromUI() {
|
|
5444
|
-
this.view.
|
|
5453
|
+
this.view.ar();
|
|
5445
5454
|
}
|
|
5446
5455
|
onAttachedToUI() {
|
|
5447
|
-
this.view.
|
|
5456
|
+
this.view.ao();
|
|
5448
5457
|
}
|
|
5449
5458
|
az() {
|
|
5450
|
-
return this.view.
|
|
5459
|
+
return this.view.i();
|
|
5451
5460
|
}
|
|
5452
5461
|
bg() {
|
|
5453
5462
|
return this.j();
|
|
5454
5463
|
}
|
|
5455
5464
|
b1() {
|
|
5456
5465
|
let a = this.j();
|
|
5457
|
-
return a.
|
|
5466
|
+
return a.p();
|
|
5458
5467
|
}
|
|
5459
5468
|
j() {
|
|
5460
5469
|
let a = new InputVisualModelExport();
|
|
5461
|
-
let b = this.view.
|
|
5462
|
-
|
|
5463
|
-
a.
|
|
5470
|
+
let b = this.view.r;
|
|
5471
|
+
let c = this.view.a();
|
|
5472
|
+
a.i = c[0];
|
|
5473
|
+
a.g = c[1];
|
|
5474
|
+
a.f = this.view.m.rootWrapper.height();
|
|
5475
|
+
a.j = this.view.m.rootWrapper.width();
|
|
5464
5476
|
a.b = this.o;
|
|
5465
5477
|
a.c = this.z;
|
|
5466
|
-
a.
|
|
5467
|
-
a.
|
|
5478
|
+
a.l = this.ce;
|
|
5479
|
+
a.o = this.ci;
|
|
5468
5480
|
a.d = this.au;
|
|
5469
5481
|
a.a = AppearanceHelper.a(NativeUI.al(b));
|
|
5470
|
-
a.
|
|
5471
|
-
a.
|
|
5482
|
+
a.k = this.b8;
|
|
5483
|
+
a.n = this.cg;
|
|
5472
5484
|
a.e = this.aw;
|
|
5473
|
-
a.
|
|
5474
|
-
a.
|
|
5485
|
+
a.v = this.cq;
|
|
5486
|
+
a.m = this.e;
|
|
5475
5487
|
if (this.ad != null) {
|
|
5476
|
-
let
|
|
5477
|
-
if (this.view != null &&
|
|
5478
|
-
let
|
|
5479
|
-
let
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5488
|
+
let d = this.ad;
|
|
5489
|
+
if (this.view != null && d.q == null) {
|
|
5490
|
+
let e = this.view.m;
|
|
5491
|
+
let f = FontUtil.getFontInfoFromString(e, d.fontString);
|
|
5492
|
+
d.q = f.q;
|
|
5493
|
+
d.f = f.f;
|
|
5494
|
+
d.r = f.r;
|
|
5495
|
+
d.t = f.t;
|
|
5496
|
+
d.u = f.u;
|
|
5497
|
+
d.v = f.v;
|
|
5486
5498
|
}
|
|
5487
|
-
if (
|
|
5488
|
-
a.
|
|
5499
|
+
if (d.q != null) {
|
|
5500
|
+
a.q = d.q;
|
|
5489
5501
|
}
|
|
5490
|
-
if (!isNaN_(
|
|
5491
|
-
a.
|
|
5502
|
+
if (!isNaN_(d.f)) {
|
|
5503
|
+
a.h = d.f;
|
|
5492
5504
|
}
|
|
5493
|
-
if (
|
|
5494
|
-
a.
|
|
5505
|
+
if (d.v != null) {
|
|
5506
|
+
a.u = d.v;
|
|
5495
5507
|
}
|
|
5496
|
-
if (
|
|
5497
|
-
a.
|
|
5508
|
+
if (d.t != null) {
|
|
5509
|
+
a.s = d.t;
|
|
5498
5510
|
}
|
|
5499
|
-
if (
|
|
5500
|
-
a.
|
|
5511
|
+
if (d.r != null) {
|
|
5512
|
+
a.r = d.t;
|
|
5501
5513
|
}
|
|
5502
5514
|
}
|
|
5503
5515
|
return a;
|
|
5504
5516
|
}
|
|
5505
5517
|
dr(a, b) {
|
|
5506
|
-
this.view.
|
|
5518
|
+
this.view.a3(a, b);
|
|
5507
5519
|
}
|
|
5508
5520
|
provideContainer(a) {
|
|
5509
|
-
this.view.
|
|
5521
|
+
this.view.aq(a);
|
|
5510
5522
|
}
|
|
5511
5523
|
ct() {
|
|
5512
5524
|
this.cz();
|
|
5513
|
-
this.view.
|
|
5525
|
+
this.view.ap();
|
|
5514
5526
|
}
|
|
5515
5527
|
focus(a = false) {
|
|
5516
5528
|
this.c7();
|
|
5517
|
-
this.view.
|
|
5529
|
+
this.view.as(a);
|
|
5518
5530
|
}
|
|
5519
5531
|
dp() {
|
|
5520
|
-
this.view.
|
|
5532
|
+
this.view.aw();
|
|
5521
5533
|
}
|
|
5522
5534
|
dt(a) {
|
|
5523
5535
|
this.aq = true;
|
|
@@ -5551,7 +5563,7 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5551
5563
|
this.changing(this, ((() => {
|
|
5552
5564
|
let $ret = new InputChangeEventArgs();
|
|
5553
5565
|
$ret.value = this.cq;
|
|
5554
|
-
$ret.isCompositionInProgress = this.view.
|
|
5566
|
+
$ret.isCompositionInProgress = this.view.h;
|
|
5555
5567
|
return $ret;
|
|
5556
5568
|
})()));
|
|
5557
5569
|
}
|
|
@@ -5564,24 +5576,24 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5564
5576
|
this.q = 0;
|
|
5565
5577
|
}
|
|
5566
5578
|
bb() {
|
|
5567
|
-
let a = this.view.
|
|
5568
|
-
let b = this.view.
|
|
5579
|
+
let a = this.view.q();
|
|
5580
|
+
let b = this.view.p();
|
|
5569
5581
|
return a == b && this.ai ? b - this.bk.length : a;
|
|
5570
5582
|
}
|
|
5571
5583
|
ba() {
|
|
5572
|
-
return this.view.
|
|
5584
|
+
return this.view.p();
|
|
5573
5585
|
}
|
|
5574
5586
|
get selectionStart() {
|
|
5575
5587
|
return this.bb();
|
|
5576
5588
|
}
|
|
5577
5589
|
set selectionStart(a) {
|
|
5578
|
-
this.view.
|
|
5590
|
+
this.view.a4(a);
|
|
5579
5591
|
}
|
|
5580
5592
|
get selectionEnd() {
|
|
5581
5593
|
return this.ba();
|
|
5582
5594
|
}
|
|
5583
5595
|
set selectionEnd(a) {
|
|
5584
|
-
this.view.
|
|
5596
|
+
this.view.a2(a);
|
|
5585
5597
|
}
|
|
5586
5598
|
get ay() {
|
|
5587
5599
|
return this.ap;
|
|
@@ -5612,9 +5624,9 @@ export let XInput = /*@__PURE__*/ (() => {
|
|
|
5612
5624
|
this.dm(this.ag, this.ay);
|
|
5613
5625
|
}
|
|
5614
5626
|
cw() {
|
|
5615
|
-
this.view.
|
|
5627
|
+
this.view.am();
|
|
5616
5628
|
if (this.ag == null) {
|
|
5617
|
-
this.ag = KeyFrameAnimationFactory.f.c(this.view.
|
|
5629
|
+
this.ag = KeyFrameAnimationFactory.f.c(this.view.b(this.i).m(new AnimationKeyFrameProperty(1, 0)).m(new AnimationKeyFrameProperty(1, 1)));
|
|
5618
5630
|
}
|
|
5619
5631
|
}
|
|
5620
5632
|
get i() {
|