igniteui-webcomponents-inputs 6.2.2-alpha.3 → 6.3.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-webcomponents-inputs.umd.js +1336 -1142
- package/bundles/igniteui-webcomponents-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/igc-color-editor-component.js +63 -47
- 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/igc-color-editor-component.js +63 -47
- package/esm5/public_api.js +2 -0
- package/fesm2015/igniteui-webcomponents-inputs.js +1342 -1150
- package/fesm5/igniteui-webcomponents-inputs.js +1336 -1144
- 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/igc-color-editor-component.d.ts +10 -0
- package/package.json +2 -2
- package/public_api.d.ts +2 -0
|
@@ -35,12 +35,13 @@ import { NativeUIPopup } from "igniteui-webcomponents-core";
|
|
|
35
35
|
import { XComponentBridge } from "./XComponentBridge";
|
|
36
36
|
import { ColorEditorPanelSelectedValueChangedEventArgs } from "./ColorEditorPanelSelectedValueChangedEventArgs";
|
|
37
37
|
import { NativeUIColorEditorValueChangedEventArgs } from "igniteui-webcomponents-core";
|
|
38
|
+
import { ColorEditorVisualModelExport } from "./ColorEditorVisualModelExport";
|
|
39
|
+
import { Rect } from "igniteui-webcomponents-core";
|
|
38
40
|
import { KeyFrameAnimationFactory } from "igniteui-webcomponents-core";
|
|
39
41
|
import { Size } from "igniteui-webcomponents-core";
|
|
40
42
|
import { NativeUIContent } from "igniteui-webcomponents-core";
|
|
41
43
|
import { truncate, isNaN_, intDivide } from "igniteui-webcomponents-core";
|
|
42
44
|
import { DOMExecutionContext } from "igniteui-webcomponents-core";
|
|
43
|
-
import { Rect } from "igniteui-webcomponents-core";
|
|
44
45
|
import { SRProvider } from "igniteui-webcomponents-core";
|
|
45
46
|
import { ControlDisplayDensity_$type } from "igniteui-webcomponents-core";
|
|
46
47
|
import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
|
|
@@ -50,6 +51,7 @@ import { NativeUIWindow } from "igniteui-webcomponents-core";
|
|
|
50
51
|
import { ColorEditorPanelClosedEventArgs } from "./ColorEditorPanelClosedEventArgs";
|
|
51
52
|
import { ColorEditorGotFocusEventArgs } from "./ColorEditorGotFocusEventArgs";
|
|
52
53
|
import { ColorEditorLostFocusEventArgs } from "./ColorEditorLostFocusEventArgs";
|
|
54
|
+
import { AppearanceHelper } from "igniteui-webcomponents-core";
|
|
53
55
|
import { Color } from "igniteui-webcomponents-core";
|
|
54
56
|
import { ColorUtil } from "igniteui-webcomponents-core";
|
|
55
57
|
import { Thickness } from "igniteui-webcomponents-core";
|
|
@@ -335,6 +337,15 @@ export let ColorEditorBridge = /*@__PURE__*/ (() => {
|
|
|
335
337
|
break;
|
|
336
338
|
}
|
|
337
339
|
}
|
|
340
|
+
exportVisualData(a) {
|
|
341
|
+
let b = a.as();
|
|
342
|
+
let c = this.getBoundingRect(a);
|
|
343
|
+
b.e = c.left;
|
|
344
|
+
b.f = c.top;
|
|
345
|
+
b.g = c.width;
|
|
346
|
+
b.d = c.height;
|
|
347
|
+
return b;
|
|
348
|
+
}
|
|
338
349
|
}
|
|
339
350
|
ColorEditorBridge.$t = /*@__PURE__*/ markType(ColorEditorBridge, 'ColorEditorBridge', XComponentBridge.$);
|
|
340
351
|
return ColorEditorBridge;
|
|
@@ -695,7 +706,7 @@ export let ColorEditorView = /*@__PURE__*/ (() => {
|
|
|
695
706
|
this.a.a = new DOMExecutionContext(a);
|
|
696
707
|
}
|
|
697
708
|
this.h = a;
|
|
698
|
-
this.a.
|
|
709
|
+
this.a.bj();
|
|
699
710
|
}
|
|
700
711
|
m() {
|
|
701
712
|
if (KeyFrameAnimationFactory.h == null) {
|
|
@@ -755,54 +766,54 @@ export let ColorEditor = /*@__PURE__*/ (() => {
|
|
|
755
766
|
class ColorEditor extends Base {
|
|
756
767
|
constructor() {
|
|
757
768
|
super();
|
|
758
|
-
this.
|
|
769
|
+
this.h = null;
|
|
770
|
+
this.s = null;
|
|
759
771
|
this.r = null;
|
|
760
|
-
this.
|
|
761
|
-
this.d = null;
|
|
762
|
-
this.v = false;
|
|
763
|
-
this.af = false;
|
|
764
|
-
this.ad = false;
|
|
765
|
-
this.cj = BrushUtil.j(0, 0, 0, 0);
|
|
772
|
+
this.e = null;
|
|
766
773
|
this.w = false;
|
|
774
|
+
this.ag = false;
|
|
775
|
+
this.ae = false;
|
|
776
|
+
this.cm = BrushUtil.j(0, 0, 0, 0);
|
|
777
|
+
this.x = false;
|
|
767
778
|
this.propertyChanged = null;
|
|
768
779
|
this.valueChanged = null;
|
|
769
780
|
this.valueChanging = null;
|
|
770
|
-
this.
|
|
781
|
+
this.t = null;
|
|
771
782
|
this.a = null;
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
775
|
-
this.l = null;
|
|
776
|
-
this.j = 2;
|
|
777
|
-
this.h = 1;
|
|
783
|
+
this.co = BrushUtil.j(255, 0, 0, 255);
|
|
784
|
+
this.at = "";
|
|
785
|
+
this.cl = BrushUtil.j(255, 24, 29, 31);
|
|
778
786
|
this.m = null;
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
787
|
+
this.k = 2;
|
|
788
|
+
this.i = 1;
|
|
789
|
+
this.n = null;
|
|
790
|
+
this.cn = BrushUtil.j(255, 24, 29, 31);
|
|
791
|
+
this.ck = BrushUtil.j(255, 163, 172, 184);
|
|
792
|
+
this.ad = true;
|
|
793
|
+
this.v = true;
|
|
781
794
|
this.ac = true;
|
|
782
|
-
this.u = true;
|
|
783
|
-
this.ab = true;
|
|
784
|
-
this.x = false;
|
|
785
|
-
this.ap = 0;
|
|
786
795
|
this.y = false;
|
|
787
|
-
this.
|
|
788
|
-
this.ae = false;
|
|
796
|
+
this.aq = 0;
|
|
789
797
|
this.z = false;
|
|
798
|
+
this.ab = false;
|
|
799
|
+
this.af = false;
|
|
800
|
+
this.aa = false;
|
|
790
801
|
this.gotFocus = null;
|
|
791
802
|
this.lostFocus = null;
|
|
792
803
|
NativeUIInputsFactory.n();
|
|
793
804
|
NativeUIXInputsFactory.m();
|
|
794
805
|
let a = new ColorEditorView();
|
|
795
806
|
a.a = this;
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
807
|
+
this.h = a;
|
|
808
|
+
this.h.q();
|
|
798
809
|
}
|
|
799
810
|
onAttachedToUI() {
|
|
800
|
-
this.
|
|
811
|
+
this.h.n();
|
|
801
812
|
}
|
|
802
813
|
onDetachedFromUI() {
|
|
803
|
-
this.
|
|
814
|
+
this.h.p();
|
|
804
815
|
}
|
|
805
|
-
|
|
816
|
+
b4(a, b) {
|
|
806
817
|
if (this.valueChanging != null) {
|
|
807
818
|
this.valueChanging(this, ((() => {
|
|
808
819
|
let $ret = new ColorEditorPanelSelectedValueChangedEventArgs();
|
|
@@ -811,7 +822,7 @@ export let ColorEditor = /*@__PURE__*/ (() => {
|
|
|
811
822
|
return $ret;
|
|
812
823
|
})()));
|
|
813
824
|
}
|
|
814
|
-
if (this.
|
|
825
|
+
if (this.x) {
|
|
815
826
|
}
|
|
816
827
|
}
|
|
817
828
|
notifySizeChanged() {
|
|
@@ -820,74 +831,44 @@ export let ColorEditor = /*@__PURE__*/ (() => {
|
|
|
820
831
|
this.provideContainer(null);
|
|
821
832
|
}
|
|
822
833
|
provideContainer(a) {
|
|
823
|
-
this.
|
|
834
|
+
this.h.o(a);
|
|
824
835
|
}
|
|
825
|
-
get
|
|
826
|
-
if (this.
|
|
827
|
-
this.
|
|
828
|
-
this.
|
|
836
|
+
get u() {
|
|
837
|
+
if (this.t == null) {
|
|
838
|
+
this.t = new SRProvider(this.h.h);
|
|
839
|
+
this.t.cb("ColorEditor");
|
|
829
840
|
}
|
|
830
|
-
return this.
|
|
841
|
+
return this.t;
|
|
831
842
|
}
|
|
832
843
|
get value() {
|
|
833
|
-
return this.
|
|
844
|
+
return this.co;
|
|
834
845
|
}
|
|
835
846
|
set value(a) {
|
|
836
|
-
let b = this.
|
|
837
|
-
this.
|
|
838
|
-
this.
|
|
839
|
-
if (b != this.
|
|
840
|
-
this.
|
|
847
|
+
let b = this.co;
|
|
848
|
+
this.cm = b;
|
|
849
|
+
this.co = a;
|
|
850
|
+
if (b != this.co) {
|
|
851
|
+
this.b3("Value", b, this.co);
|
|
841
852
|
}
|
|
842
853
|
}
|
|
843
|
-
get
|
|
844
|
-
return this.
|
|
854
|
+
get a2() {
|
|
855
|
+
return this.at;
|
|
845
856
|
}
|
|
846
|
-
set
|
|
847
|
-
let b = this.
|
|
848
|
-
this.
|
|
849
|
-
if (b != this.
|
|
850
|
-
this.
|
|
857
|
+
set a2(a) {
|
|
858
|
+
let b = this.at;
|
|
859
|
+
this.at = a;
|
|
860
|
+
if (b != this.at) {
|
|
861
|
+
this.b3("Label", b, this.at);
|
|
851
862
|
}
|
|
852
863
|
}
|
|
853
|
-
get
|
|
854
|
-
return this.
|
|
855
|
-
}
|
|
856
|
-
set cn(a) {
|
|
857
|
-
let b = this.ci;
|
|
858
|
-
this.ci = a;
|
|
859
|
-
if (b != this.ci) {
|
|
860
|
-
this.b0("LabelTextColor", b, a);
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
get o() {
|
|
864
|
-
return this.l;
|
|
865
|
-
}
|
|
866
|
-
set o(a) {
|
|
867
|
-
let b = this.l;
|
|
868
|
-
this.l = a;
|
|
869
|
-
if (b != this.l) {
|
|
870
|
-
this.b0("LabelTextStyle", b, this.l);
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
get k() {
|
|
874
|
-
return this.j;
|
|
875
|
-
}
|
|
876
|
-
set k(a) {
|
|
877
|
-
let b = this.j;
|
|
878
|
-
this.j = a;
|
|
879
|
-
if (b != this.j) {
|
|
880
|
-
this.b0("Density", enumGetBox(ControlDisplayDensity_$type, b), enumGetBox(ControlDisplayDensity_$type, this.j));
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
get i() {
|
|
884
|
-
return this.h;
|
|
864
|
+
get cq() {
|
|
865
|
+
return this.cl;
|
|
885
866
|
}
|
|
886
|
-
set
|
|
887
|
-
let b = this.
|
|
888
|
-
this.
|
|
889
|
-
if (b != this.
|
|
890
|
-
this.
|
|
867
|
+
set cq(a) {
|
|
868
|
+
let b = this.cl;
|
|
869
|
+
this.cl = a;
|
|
870
|
+
if (b != this.cl) {
|
|
871
|
+
this.b3("LabelTextColor", b, a);
|
|
891
872
|
}
|
|
892
873
|
}
|
|
893
874
|
get p() {
|
|
@@ -897,77 +878,87 @@ export let ColorEditor = /*@__PURE__*/ (() => {
|
|
|
897
878
|
let b = this.m;
|
|
898
879
|
this.m = a;
|
|
899
880
|
if (b != this.m) {
|
|
900
|
-
this.
|
|
881
|
+
this.b3("LabelTextStyle", b, this.m);
|
|
901
882
|
}
|
|
902
883
|
}
|
|
903
|
-
get
|
|
904
|
-
return this.
|
|
884
|
+
get l() {
|
|
885
|
+
return this.k;
|
|
905
886
|
}
|
|
906
|
-
set
|
|
907
|
-
let b = this.
|
|
908
|
-
this.
|
|
909
|
-
if (b != this.
|
|
910
|
-
this.
|
|
887
|
+
set l(a) {
|
|
888
|
+
let b = this.k;
|
|
889
|
+
this.k = a;
|
|
890
|
+
if (b != this.k) {
|
|
891
|
+
this.b3("Density", enumGetBox(ControlDisplayDensity_$type, b), enumGetBox(ControlDisplayDensity_$type, this.k));
|
|
911
892
|
}
|
|
912
893
|
}
|
|
913
|
-
get
|
|
914
|
-
return this.
|
|
894
|
+
get j() {
|
|
895
|
+
return this.i;
|
|
915
896
|
}
|
|
916
|
-
set
|
|
917
|
-
let b = this.
|
|
918
|
-
this.
|
|
919
|
-
if (b != this.
|
|
920
|
-
this.
|
|
897
|
+
set j(a) {
|
|
898
|
+
let b = this.i;
|
|
899
|
+
this.i = a;
|
|
900
|
+
if (b != this.i) {
|
|
901
|
+
this.b3("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, this.i));
|
|
921
902
|
}
|
|
922
903
|
}
|
|
923
|
-
get
|
|
924
|
-
return this.
|
|
904
|
+
get q() {
|
|
905
|
+
return this.n;
|
|
925
906
|
}
|
|
926
|
-
set
|
|
927
|
-
let b = this.
|
|
928
|
-
this.
|
|
929
|
-
if (b != this.
|
|
930
|
-
this.
|
|
907
|
+
set q(a) {
|
|
908
|
+
let b = this.n;
|
|
909
|
+
this.n = a;
|
|
910
|
+
if (b != this.n) {
|
|
911
|
+
this.b3("TextStyle", b, this.n);
|
|
931
912
|
}
|
|
932
913
|
}
|
|
933
|
-
get
|
|
934
|
-
return this.
|
|
914
|
+
get cr() {
|
|
915
|
+
return this.cn;
|
|
935
916
|
}
|
|
936
|
-
set
|
|
937
|
-
let b = this.
|
|
938
|
-
this.
|
|
939
|
-
if (b != this.
|
|
940
|
-
this.
|
|
917
|
+
set cr(a) {
|
|
918
|
+
let b = this.cn;
|
|
919
|
+
this.cn = a;
|
|
920
|
+
if (b != this.cn) {
|
|
921
|
+
this.b3("TextColor", b, this.cn);
|
|
941
922
|
}
|
|
942
923
|
}
|
|
943
|
-
get
|
|
944
|
-
return this.
|
|
924
|
+
get cp() {
|
|
925
|
+
return this.ck;
|
|
945
926
|
}
|
|
946
|
-
set
|
|
947
|
-
let b = this.
|
|
948
|
-
this.
|
|
949
|
-
if (b != this.
|
|
950
|
-
this.
|
|
927
|
+
set cp(a) {
|
|
928
|
+
let b = this.ck;
|
|
929
|
+
this.ck = a;
|
|
930
|
+
if (b != this.ck) {
|
|
931
|
+
this.b3("IconColor", b, this.ck);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
get an() {
|
|
935
|
+
return this.ad;
|
|
936
|
+
}
|
|
937
|
+
set an(a) {
|
|
938
|
+
let b = this.ad;
|
|
939
|
+
this.ad = a;
|
|
940
|
+
if (b != this.ad) {
|
|
941
|
+
this.b3("ShowClearButton", b, this.ad);
|
|
951
942
|
}
|
|
952
943
|
}
|
|
953
944
|
get ah() {
|
|
954
|
-
return this.
|
|
945
|
+
return this.v;
|
|
955
946
|
}
|
|
956
947
|
set ah(a) {
|
|
957
|
-
let b = this.
|
|
958
|
-
this.
|
|
959
|
-
if (b != this.
|
|
960
|
-
this.
|
|
948
|
+
let b = this.v;
|
|
949
|
+
this.v = a;
|
|
950
|
+
if (b != this.v) {
|
|
951
|
+
this.b3("AllowTextInput", b, this.v);
|
|
961
952
|
}
|
|
962
953
|
}
|
|
963
|
-
get
|
|
964
|
-
return this.
|
|
954
|
+
get al() {
|
|
955
|
+
return this.ac;
|
|
965
956
|
}
|
|
966
|
-
set
|
|
967
|
-
let b = this.
|
|
968
|
-
this.
|
|
969
|
-
if (b != this.
|
|
970
|
-
this.
|
|
957
|
+
set al(a) {
|
|
958
|
+
let b = this.ac;
|
|
959
|
+
this.ac = a;
|
|
960
|
+
if (b != this.ac) {
|
|
961
|
+
this.b3("OpenOnFocus", b, this.ac);
|
|
971
962
|
}
|
|
972
963
|
}
|
|
973
964
|
get ai() {
|
|
@@ -977,61 +968,81 @@ export let ColorEditor = /*@__PURE__*/ (() => {
|
|
|
977
968
|
let b = this.y;
|
|
978
969
|
this.y = a;
|
|
979
970
|
if (b != this.y) {
|
|
980
|
-
this.
|
|
971
|
+
this.b3("IsDisabled", b, this.y);
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
get ar() {
|
|
975
|
+
return this.aq;
|
|
976
|
+
}
|
|
977
|
+
set ar(a) {
|
|
978
|
+
let b = this.aq;
|
|
979
|
+
this.aq = a;
|
|
980
|
+
if (b != this.aq) {
|
|
981
|
+
this.b3("TabIndex", b, this.aq);
|
|
981
982
|
}
|
|
982
983
|
}
|
|
983
984
|
get aj() {
|
|
984
|
-
return this.
|
|
985
|
+
return this.z;
|
|
985
986
|
}
|
|
986
987
|
set aj(a) {
|
|
987
|
-
let b = this.
|
|
988
|
-
this.
|
|
989
|
-
if (b != this.
|
|
990
|
-
this.
|
|
988
|
+
let b = this.z;
|
|
989
|
+
this.z = a;
|
|
990
|
+
if (b != this.z) {
|
|
991
|
+
this.b3("IsFixed", b, this.z);
|
|
991
992
|
}
|
|
992
993
|
}
|
|
993
|
-
get
|
|
994
|
-
return this.
|
|
994
|
+
get ak() {
|
|
995
|
+
return this.ab;
|
|
995
996
|
}
|
|
996
|
-
set
|
|
997
|
-
let b = this.
|
|
998
|
-
this.
|
|
999
|
-
if (b != this.
|
|
1000
|
-
this.
|
|
997
|
+
set ak(a) {
|
|
998
|
+
let b = this.ab;
|
|
999
|
+
this.ab = a;
|
|
1000
|
+
if (b != this.ab) {
|
|
1001
|
+
this.b3("OpenAsChild", b, this.ab);
|
|
1001
1002
|
}
|
|
1002
1003
|
}
|
|
1003
|
-
|
|
1004
|
+
get ao() {
|
|
1005
|
+
return this.af;
|
|
1006
|
+
}
|
|
1007
|
+
set ao(a) {
|
|
1008
|
+
let b = this.af;
|
|
1009
|
+
this.af = a;
|
|
1010
|
+
if (b != this.af) {
|
|
1011
|
+
this.b3("UseTopLayer", b, this.af);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
b3(a, b, c) {
|
|
1004
1015
|
if (this.propertyChanged != null) {
|
|
1005
1016
|
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
1006
1017
|
}
|
|
1007
|
-
this.
|
|
1018
|
+
this.b9(a, b, c);
|
|
1008
1019
|
}
|
|
1009
|
-
|
|
1020
|
+
b9(a, b, c) {
|
|
1010
1021
|
switch (a) {
|
|
1011
1022
|
case "Density":
|
|
1012
|
-
this.
|
|
1023
|
+
this.cc();
|
|
1013
1024
|
break;
|
|
1014
1025
|
case "BaseTheme":
|
|
1015
|
-
this.
|
|
1026
|
+
this.cd();
|
|
1016
1027
|
break;
|
|
1017
1028
|
case "Value":
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1020
|
-
if (this.
|
|
1021
|
-
this.
|
|
1029
|
+
this.b4(this.cm, this.value);
|
|
1030
|
+
this.cm = this.value;
|
|
1031
|
+
if (this.e != null && !this.x) {
|
|
1032
|
+
this.e.value = this.value;
|
|
1022
1033
|
}
|
|
1023
1034
|
break;
|
|
1024
1035
|
case "Label":
|
|
1025
|
-
if (this.
|
|
1026
|
-
this.
|
|
1036
|
+
if (this.r != null) {
|
|
1037
|
+
this.r.b5 = this.a2;
|
|
1027
1038
|
}
|
|
1028
1039
|
break;
|
|
1029
1040
|
case "TextStyle":
|
|
1030
|
-
this.
|
|
1041
|
+
this.ci();
|
|
1031
1042
|
break;
|
|
1032
1043
|
case "ShowClearButton":
|
|
1033
|
-
if (this.
|
|
1034
|
-
if (this.
|
|
1044
|
+
if (this.r != null) {
|
|
1045
|
+
if (this.r.b7 != "") {
|
|
1035
1046
|
}
|
|
1036
1047
|
}
|
|
1037
1048
|
break;
|
|
@@ -1039,269 +1050,283 @@ export let ColorEditor = /*@__PURE__*/ (() => {
|
|
|
1039
1050
|
case "LabelTextStyle":
|
|
1040
1051
|
case "TextColor":
|
|
1041
1052
|
case "IconColor":
|
|
1042
|
-
this.
|
|
1053
|
+
this.cj();
|
|
1043
1054
|
break;
|
|
1044
1055
|
case "AllowTextInput":
|
|
1045
|
-
if (this.
|
|
1046
|
-
this.
|
|
1056
|
+
if (this.r != null) {
|
|
1057
|
+
this.r.b0 = this.am();
|
|
1047
1058
|
}
|
|
1048
1059
|
break;
|
|
1049
1060
|
case "OpenOnFocus": break;
|
|
1050
1061
|
case "IsDisabled":
|
|
1051
1062
|
{
|
|
1052
|
-
if (this.
|
|
1053
|
-
this.
|
|
1063
|
+
if (this.r != null) {
|
|
1064
|
+
this.r.b0 = this.am();
|
|
1054
1065
|
}
|
|
1055
1066
|
}
|
|
1056
1067
|
break;
|
|
1057
1068
|
}
|
|
1058
1069
|
}
|
|
1059
|
-
|
|
1060
|
-
return this.
|
|
1070
|
+
am() {
|
|
1071
|
+
return this.ai || !this.ah;
|
|
1061
1072
|
}
|
|
1062
|
-
|
|
1063
|
-
if (this.
|
|
1064
|
-
this.
|
|
1073
|
+
cj() {
|
|
1074
|
+
if (this.r != null) {
|
|
1075
|
+
this.r.ce = this.cr;
|
|
1065
1076
|
}
|
|
1066
1077
|
}
|
|
1067
|
-
|
|
1068
|
-
if (this.
|
|
1078
|
+
ch() {
|
|
1079
|
+
if (this.r != null) {
|
|
1069
1080
|
}
|
|
1070
1081
|
}
|
|
1071
|
-
|
|
1072
|
-
if (this.
|
|
1073
|
-
this.
|
|
1082
|
+
ci() {
|
|
1083
|
+
if (this.n != null) {
|
|
1084
|
+
this.r.bk = this.n;
|
|
1074
1085
|
}
|
|
1075
1086
|
}
|
|
1076
|
-
|
|
1077
|
-
if (this.
|
|
1087
|
+
bh() {
|
|
1088
|
+
if (this.ai == true) {
|
|
1078
1089
|
return;
|
|
1079
1090
|
}
|
|
1080
|
-
if (this.
|
|
1081
|
-
this.
|
|
1091
|
+
if (this.r != null) {
|
|
1092
|
+
this.r.b7 = "";
|
|
1082
1093
|
}
|
|
1083
1094
|
this.value = BrushUtil.j(0, 0, 0, 0);
|
|
1084
|
-
this.
|
|
1085
|
-
this.
|
|
1095
|
+
this.e.ax();
|
|
1096
|
+
this.aa = false;
|
|
1086
1097
|
}
|
|
1087
|
-
|
|
1088
|
-
this.
|
|
1098
|
+
b1() {
|
|
1099
|
+
this.aa = true;
|
|
1089
1100
|
}
|
|
1090
|
-
|
|
1091
|
-
this.
|
|
1101
|
+
b2() {
|
|
1102
|
+
this.aa = false;
|
|
1092
1103
|
}
|
|
1093
|
-
|
|
1094
|
-
NativeUIWindow.h(15, runOn(this, this.
|
|
1095
|
-
NativeUIWindow.h(9, runOn(this, this.
|
|
1104
|
+
br() {
|
|
1105
|
+
NativeUIWindow.h(15, runOn(this, this.b7), this.h.h);
|
|
1106
|
+
NativeUIWindow.h(9, runOn(this, this.b6), this.h.h);
|
|
1096
1107
|
}
|
|
1097
|
-
|
|
1098
|
-
NativeUIWindow.i(15, runOn(this, this.
|
|
1099
|
-
NativeUIWindow.i(9, runOn(this, this.
|
|
1108
|
+
bv() {
|
|
1109
|
+
NativeUIWindow.i(15, runOn(this, this.b7));
|
|
1110
|
+
NativeUIWindow.i(9, runOn(this, this.b6));
|
|
1100
1111
|
}
|
|
1101
|
-
|
|
1112
|
+
b6(a) {
|
|
1102
1113
|
let b = a;
|
|
1103
|
-
if (this.
|
|
1104
|
-
if (this.
|
|
1105
|
-
this.
|
|
1114
|
+
if (this.r != null) {
|
|
1115
|
+
if (this.s.b6 && !this.s.t(b.b) && !this.r.t(b.b)) {
|
|
1116
|
+
this.bi();
|
|
1106
1117
|
}
|
|
1107
1118
|
}
|
|
1108
1119
|
}
|
|
1109
|
-
|
|
1110
|
-
if (this.
|
|
1111
|
-
let b = this.
|
|
1112
|
-
this.
|
|
1120
|
+
b7(a) {
|
|
1121
|
+
if (this.r != null) {
|
|
1122
|
+
let b = this.r.be();
|
|
1123
|
+
this.s.ce(b);
|
|
1113
1124
|
}
|
|
1114
1125
|
}
|
|
1115
|
-
|
|
1116
|
-
NativeUIComponent.av(this.
|
|
1126
|
+
bj() {
|
|
1127
|
+
NativeUIComponent.av(this.h.j(), [12, 2, 7, 0], [2, 2, 2, 2], (a) => {
|
|
1117
1128
|
let b = a[0];
|
|
1118
1129
|
let c = a[1];
|
|
1119
1130
|
let d = a[2];
|
|
1120
1131
|
let e = a[3];
|
|
1121
|
-
let f = this.
|
|
1122
|
-
this.
|
|
1132
|
+
let f = this.h.i();
|
|
1133
|
+
this.h.k(e, f);
|
|
1123
1134
|
b.bn(d);
|
|
1124
1135
|
d.bn(e);
|
|
1125
|
-
this.
|
|
1136
|
+
this.h.l(c);
|
|
1126
1137
|
b.ch = BrushUtil.j(255, 255, 255, 255);
|
|
1127
1138
|
b.ca = 150;
|
|
1128
1139
|
b.b8 = 8;
|
|
1129
1140
|
b.cb = 4;
|
|
1130
1141
|
b.b1 = true;
|
|
1131
|
-
this.
|
|
1132
|
-
this.
|
|
1133
|
-
this.
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1144
|
-
let g = this.
|
|
1145
|
-
g.closed = delegateCombine(g.closed, runOn(this, this.
|
|
1146
|
-
let h = this.
|
|
1147
|
-
h.valueChanged = delegateCombine(h.valueChanged, runOn(this, this.
|
|
1148
|
-
d.o = runOn(this, this.
|
|
1149
|
-
let i = this.
|
|
1150
|
-
i.valueChanged = delegateCombine(i.valueChanged, runOn(this, this.
|
|
1142
|
+
this.r = c;
|
|
1143
|
+
this.r.c = this.j;
|
|
1144
|
+
this.r.bp = this.l;
|
|
1145
|
+
this.r.b6 = ColorEditor.a8;
|
|
1146
|
+
this.r.cc = BrushUtil.j(255, 255, 255, 255);
|
|
1147
|
+
this.r.cd = BrushUtil.j(255, 0, 0, 0);
|
|
1148
|
+
this.r.bn = runOn(this, this.cf);
|
|
1149
|
+
this.r.n = runOn(this, this.by);
|
|
1150
|
+
this.r.o = runOn(this, this.b0);
|
|
1151
|
+
this.r.cb = BrushUtil.j(255, 0, 0, 255);
|
|
1152
|
+
this.s = b;
|
|
1153
|
+
this.e = this.h.c(f);
|
|
1154
|
+
this.e.value = this.value;
|
|
1155
|
+
let g = this.e;
|
|
1156
|
+
g.closed = delegateCombine(g.closed, runOn(this, this.bf));
|
|
1157
|
+
let h = this.e;
|
|
1158
|
+
h.valueChanged = delegateCombine(h.valueChanged, runOn(this, this.bg));
|
|
1159
|
+
d.o = runOn(this, this.b0);
|
|
1160
|
+
let i = this.e;
|
|
1161
|
+
i.valueChanged = delegateCombine(i.valueChanged, runOn(this, this.bm));
|
|
1151
1162
|
});
|
|
1152
1163
|
}
|
|
1153
|
-
|
|
1164
|
+
bg(a, b) {
|
|
1154
1165
|
if (this.valueChanged != null) {
|
|
1155
1166
|
this.valueChanged(this, b);
|
|
1156
1167
|
}
|
|
1157
1168
|
}
|
|
1158
|
-
|
|
1159
|
-
this.
|
|
1169
|
+
bf(a, b) {
|
|
1170
|
+
this.bl(a);
|
|
1160
1171
|
}
|
|
1161
|
-
|
|
1162
|
-
if (!this.
|
|
1163
|
-
this.
|
|
1172
|
+
b0(a, b) {
|
|
1173
|
+
if (!this.s.t(b.b) && !this.r.t(b.b) && !(this.r.an == b.b)) {
|
|
1174
|
+
this.bp();
|
|
1164
1175
|
}
|
|
1165
1176
|
}
|
|
1166
|
-
|
|
1177
|
+
by(a, b) {
|
|
1167
1178
|
this.focus();
|
|
1168
1179
|
}
|
|
1169
|
-
|
|
1170
|
-
this.
|
|
1180
|
+
cf(a, b) {
|
|
1181
|
+
this.cg();
|
|
1171
1182
|
}
|
|
1172
|
-
|
|
1173
|
-
this.
|
|
1183
|
+
bm(a, b) {
|
|
1184
|
+
this.x = true;
|
|
1174
1185
|
this.value = b.newValue;
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1186
|
+
this.x = false;
|
|
1187
|
+
this.b5(b.oldValue, b.newValue);
|
|
1177
1188
|
}
|
|
1178
|
-
|
|
1179
|
-
if (this.
|
|
1180
|
-
this.
|
|
1189
|
+
b5(a, b) {
|
|
1190
|
+
if (this.r != null) {
|
|
1191
|
+
this.r.cb = b;
|
|
1181
1192
|
}
|
|
1182
1193
|
}
|
|
1183
|
-
|
|
1184
|
-
if (this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1194
|
+
bl(a) {
|
|
1195
|
+
if (this.s.b6) {
|
|
1196
|
+
this.w = true;
|
|
1197
|
+
this.bi();
|
|
1187
1198
|
}
|
|
1188
1199
|
}
|
|
1189
|
-
|
|
1190
|
-
if (this.
|
|
1191
|
-
if (this.
|
|
1192
|
-
this.
|
|
1200
|
+
cg() {
|
|
1201
|
+
if (this.w == false) {
|
|
1202
|
+
if (this.s.b6) {
|
|
1203
|
+
this.bi();
|
|
1193
1204
|
}
|
|
1194
1205
|
else {
|
|
1195
|
-
this.
|
|
1206
|
+
this.b8();
|
|
1196
1207
|
}
|
|
1197
1208
|
}
|
|
1198
1209
|
else {
|
|
1199
|
-
this.
|
|
1210
|
+
this.w = false;
|
|
1200
1211
|
}
|
|
1201
1212
|
}
|
|
1202
|
-
|
|
1203
|
-
if (this.
|
|
1213
|
+
b8() {
|
|
1214
|
+
if (this.ai) {
|
|
1204
1215
|
return;
|
|
1205
1216
|
}
|
|
1206
|
-
if (this.
|
|
1207
|
-
let a = this.
|
|
1208
|
-
let b = this.
|
|
1217
|
+
if (this.s != null) {
|
|
1218
|
+
let a = this.h.r(false);
|
|
1219
|
+
let b = this.h.s();
|
|
1209
1220
|
let c = b.height;
|
|
1210
1221
|
let d = 240;
|
|
1211
1222
|
let e = a.bottom + d;
|
|
1212
1223
|
if (!isNaN_(c) && c < e) {
|
|
1213
1224
|
let f = a.top - d;
|
|
1214
1225
|
if (f < 0) {
|
|
1215
|
-
this.
|
|
1226
|
+
this.ce(1, 0);
|
|
1216
1227
|
}
|
|
1217
1228
|
else {
|
|
1218
|
-
this.
|
|
1229
|
+
this.ce(2, 0);
|
|
1219
1230
|
}
|
|
1220
1231
|
}
|
|
1221
1232
|
else {
|
|
1222
|
-
this.
|
|
1233
|
+
this.ce(1, 0);
|
|
1223
1234
|
}
|
|
1224
1235
|
}
|
|
1225
1236
|
}
|
|
1226
|
-
|
|
1237
|
+
ce(a, b) {
|
|
1227
1238
|
{
|
|
1228
|
-
let c = this.
|
|
1229
|
-
this.
|
|
1239
|
+
let c = this.h.r(true);
|
|
1240
|
+
this.s.cf(c, a, b);
|
|
1230
1241
|
}
|
|
1231
1242
|
}
|
|
1232
|
-
|
|
1233
|
-
if (this.
|
|
1234
|
-
this.a.executeDelayed(() => this.
|
|
1243
|
+
bi() {
|
|
1244
|
+
if (this.s != null) {
|
|
1245
|
+
this.a.executeDelayed(() => this.s.cc(), 0);
|
|
1235
1246
|
}
|
|
1236
|
-
if (this.
|
|
1237
|
-
this.
|
|
1247
|
+
if (this.e != null) {
|
|
1248
|
+
this.e.bg();
|
|
1238
1249
|
}
|
|
1239
|
-
this.
|
|
1250
|
+
this.w = false;
|
|
1240
1251
|
}
|
|
1241
1252
|
focus(a = false) {
|
|
1242
|
-
if (this.
|
|
1243
|
-
this.
|
|
1253
|
+
if (this.r != null) {
|
|
1254
|
+
this.r.a0();
|
|
1244
1255
|
}
|
|
1245
|
-
if (!this.
|
|
1246
|
-
if (this.
|
|
1247
|
-
if (this.
|
|
1256
|
+
if (!this.s.b6 && this.al == true) {
|
|
1257
|
+
if (this.w == false) {
|
|
1258
|
+
if (this.aa) {
|
|
1248
1259
|
return;
|
|
1249
1260
|
}
|
|
1250
|
-
if (this.
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1253
|
-
this.a.executeDelayed(() => this.
|
|
1261
|
+
if (this.ah == false) {
|
|
1262
|
+
this.b8();
|
|
1263
|
+
this.w = true;
|
|
1264
|
+
this.a.executeDelayed(() => this.bo(), 0);
|
|
1254
1265
|
}
|
|
1255
1266
|
else {
|
|
1256
|
-
if (this.
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1259
|
-
this.a.executeDelayed(() => this.
|
|
1267
|
+
if (this.al == true && this.ae == false) {
|
|
1268
|
+
this.b8();
|
|
1269
|
+
this.w = true;
|
|
1270
|
+
this.a.executeDelayed(() => this.bo(), 0);
|
|
1260
1271
|
}
|
|
1261
1272
|
}
|
|
1262
1273
|
}
|
|
1263
1274
|
else {
|
|
1264
|
-
this.
|
|
1275
|
+
this.w = false;
|
|
1265
1276
|
}
|
|
1266
1277
|
}
|
|
1267
1278
|
}
|
|
1268
|
-
|
|
1269
|
-
this.
|
|
1279
|
+
bp() {
|
|
1280
|
+
this.w = false;
|
|
1270
1281
|
}
|
|
1271
|
-
|
|
1272
|
-
if (this.
|
|
1273
|
-
this.
|
|
1282
|
+
cb() {
|
|
1283
|
+
if (this.r != null) {
|
|
1284
|
+
this.r.b9();
|
|
1274
1285
|
}
|
|
1275
1286
|
}
|
|
1276
|
-
|
|
1277
|
-
this.
|
|
1287
|
+
bo() {
|
|
1288
|
+
this.e.a3();
|
|
1278
1289
|
}
|
|
1279
|
-
|
|
1290
|
+
bt() {
|
|
1280
1291
|
let a = new ColorEditorGotFocusEventArgs();
|
|
1281
|
-
this.
|
|
1292
|
+
this.bx(a);
|
|
1282
1293
|
}
|
|
1283
|
-
|
|
1294
|
+
bu() {
|
|
1284
1295
|
let a = new ColorEditorLostFocusEventArgs();
|
|
1285
|
-
this.
|
|
1296
|
+
this.bz(a);
|
|
1297
|
+
}
|
|
1298
|
+
cd() {
|
|
1299
|
+
}
|
|
1300
|
+
cc() {
|
|
1301
|
+
}
|
|
1302
|
+
as() {
|
|
1303
|
+
return this.b();
|
|
1286
1304
|
}
|
|
1287
|
-
|
|
1305
|
+
ay() {
|
|
1306
|
+
let a = this.b();
|
|
1307
|
+
return a.h();
|
|
1288
1308
|
}
|
|
1289
|
-
|
|
1309
|
+
b() {
|
|
1310
|
+
let a = new ColorEditorVisualModelExport();
|
|
1311
|
+
a.b = this.j;
|
|
1312
|
+
a.a = AppearanceHelper.a(this.value);
|
|
1313
|
+
a.c = this.ai;
|
|
1314
|
+
return a;
|
|
1290
1315
|
}
|
|
1291
|
-
|
|
1316
|
+
bx(a) {
|
|
1292
1317
|
if (null != this.gotFocus) {
|
|
1293
1318
|
this.gotFocus(this, a);
|
|
1294
1319
|
}
|
|
1295
1320
|
}
|
|
1296
|
-
|
|
1321
|
+
bz(a) {
|
|
1297
1322
|
if (null != this.lostFocus) {
|
|
1298
1323
|
this.lostFocus(this, a);
|
|
1299
1324
|
}
|
|
1300
1325
|
}
|
|
1301
1326
|
}
|
|
1302
1327
|
ColorEditor.$t = /*@__PURE__*/ markType(ColorEditor, 'ColorEditor', Base.$, [INotifyPropertyChanged_$type]);
|
|
1303
|
-
ColorEditor.
|
|
1304
|
-
ColorEditor.
|
|
1328
|
+
ColorEditor.a8 = "M13.093 6.743a1.074 1.074 0 011.306.251l.237.237-6.4 6.4-.242-.231a1.074 1.074 0 01-.251-1.306c.446-.693 1.553-2.516.515-3.554-1.584-1.585-2.225-.94-3.809-2.528S2.714 3 3.354 2.354s2.073-.489 3.658 1.095.943 2.225 2.527 3.809c1.038 1.042 2.861-.069 3.554-.515zm6.93 5.874L15.31 7.9 8.9 14.31l4.433 4.433c-.039.159-.084.327-.137.508 0 0-.8 2.749.8 2.749s.8-2.749.8-2.749a10.75 10.75 0 01-.272-1.14L16.2 16.44a8.944 8.944 0 00-2.072-3.314s.555-.545 3.323 2.063l.811-.811-1.54-2.5 2.5 1.539z";
|
|
1329
|
+
ColorEditor.o = null;
|
|
1305
1330
|
return ColorEditor;
|
|
1306
1331
|
})();
|
|
1307
1332
|
/**
|