igniteui-angular-inputs 18.1.1 → 18.2.0-beta.1
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 +16857 -7563
- package/bundles/igniteui-angular-inputs.umd.min.js +1 -1
- package/esm2015/lib/ButtonGroupView_combined.js +19 -19
- package/esm2015/lib/ButtonView_combined.js +820 -790
- package/esm2015/lib/CalendarView_combined.js +82 -82
- package/esm2015/lib/ColorEditor.js +7 -0
- package/esm2015/lib/ColorEditorBridge.js +7 -0
- package/esm2015/lib/ColorEditorGotFocusEventArgs.js +16 -0
- package/esm2015/lib/ColorEditorLostFocusEventArgs.js +16 -0
- package/esm2015/lib/ColorEditorPanel.js +7 -0
- package/esm2015/lib/ColorEditorPanelClosedEventArgs.js +16 -0
- package/esm2015/lib/ColorEditorPanelSelectedValueChangedEventArgs.js +33 -0
- package/esm2015/lib/ColorEditorPanelView.js +7 -0
- package/esm2015/lib/ColorEditorView.js +7 -0
- package/esm2015/lib/DatePickerView_combined.js +18 -18
- package/esm2015/lib/DefaultMultiSliderTrackBarVisual.js +113 -0
- package/esm2015/lib/DefaultMultiSliderTrackRangeVisual.js +208 -0
- package/esm2015/lib/DefaultMultiSliderTrackThumbCalloutVisual.js +170 -0
- package/esm2015/lib/DefaultMultiSliderTrackThumbVisual.js +193 -0
- package/esm2015/lib/DefaultMultiTrackShadeVisual.js +172 -0
- package/esm2015/lib/IMultiSliderTrackBarVisual.js +11 -0
- package/esm2015/lib/IMultiSliderTrackRangeVisual.js +11 -0
- package/esm2015/lib/IMultiSliderTrackShadeVisual.js +11 -0
- package/esm2015/lib/IMultiSliderTrackThumbCalloutVisual.js +11 -0
- package/esm2015/lib/IMultiSliderTrackThumbVisual.js +11 -0
- package/esm2015/lib/ISliderTrackOwner.js +11 -0
- package/esm2015/lib/IconClickedEventArgs.js +10 -0
- package/esm2015/lib/IconView_combined.js +345 -314
- package/esm2015/lib/InputGroupView_combined.js +456 -355
- package/esm2015/lib/MultiSlider.js +7 -0
- package/esm2015/lib/MultiSliderBridge.js +165 -0
- package/esm2015/lib/MultiSliderCursor.js +11 -0
- package/esm2015/lib/MultiSliderHitInfo.js +22 -0
- package/esm2015/lib/MultiSliderOrientation.js +17 -0
- package/esm2015/lib/MultiSliderResolvingToolTipValueEventArgs.js +33 -0
- package/esm2015/lib/MultiSliderThumb.js +7 -0
- package/esm2015/lib/MultiSliderThumbCollection.js +21 -0
- package/esm2015/lib/MultiSliderThumbRangePosition.js +16 -0
- package/esm2015/lib/MultiSliderThumbValueChangingEventArgs.js +21 -0
- package/esm2015/lib/MultiSliderThumb_combined.js +297 -0
- package/esm2015/lib/MultiSliderTrackShadeOrientation.js +11 -0
- package/esm2015/lib/MultiSliderTrackThumbRange.js +7 -0
- package/esm2015/lib/MultiSliderView.js +7 -0
- package/esm2015/lib/MultiSliderView_combined.js +1785 -0
- package/esm2015/lib/MultiSliderVisualArea.js +11 -0
- package/esm2015/lib/MultiSliderYValueChangingEventArgs.js +20 -0
- package/esm2015/lib/NativeUIXInputsFactory.js +1 -179
- package/esm2015/lib/NativeUIXInputsFactory_combined.js +2113 -0
- package/esm2015/lib/XButtonBridge.js +25 -20
- package/esm2015/lib/XButtonGroupBridge.js +177 -0
- package/esm2015/lib/XComponentBridge.js +3 -0
- package/esm2015/lib/XIconBridge.js +20 -16
- package/esm2015/lib/XInputBridge.js +274 -26
- package/esm2015/lib/XPopupBridge.js +117 -98
- package/esm2015/lib/igx-color-editor-component.js +470 -0
- package/esm2015/lib/igx-color-editor-dynamic-module.js +45 -0
- package/esm2015/lib/igx-color-editor-got-focus-event-args.js +27 -0
- package/esm2015/lib/igx-color-editor-lost-focus-event-args.js +27 -0
- package/esm2015/lib/igx-color-editor-module.js +39 -0
- package/esm2015/lib/igx-color-editor-panel-closed-event-args.js +27 -0
- package/esm2015/lib/igx-color-editor-panel-component.js +376 -0
- package/esm2015/lib/igx-color-editor-panel-dynamic-module.js +66 -0
- package/esm2015/lib/igx-color-editor-panel-module.js +60 -0
- package/esm2015/lib/igx-color-editor-panel-selected-value-changed-event-args.js +40 -0
- package/esm2015/lib/igx-multi-slider-component.js +642 -0
- package/esm2015/lib/igx-multi-slider-dynamic-module.js +38 -0
- package/esm2015/lib/igx-multi-slider-module.js +36 -0
- package/esm2015/lib/igx-multi-slider-resolving-tool-tip-value-event-args.js +39 -0
- package/esm2015/lib/igx-multi-slider-thumb-collection.js +53 -0
- package/esm2015/lib/igx-multi-slider-thumb-value-changing-event-args.js +56 -0
- package/esm2015/lib/igx-multi-slider-thumb.js +111 -0
- package/esm2015/lib/igx-multi-slider-track-thumb-range.js +119 -0
- package/esm2015/lib/igx-multi-slider-y-value-changing-event-args.js +33 -0
- package/esm2015/lib/igx-x-button-component.js +262 -262
- package/esm2015/lib/igx-x-icon-component.js +66 -55
- package/esm2015/lib/igx-x-input-group-component.js +48 -48
- package/esm2015/lib/igx-x-label-component.js +41 -40
- package/esm2015/public_api.js +55 -0
- package/esm5/lib/ButtonGroupView_combined.js +19 -19
- package/esm5/lib/ButtonView_combined.js +765 -735
- package/esm5/lib/CalendarView_combined.js +82 -82
- package/esm5/lib/ColorEditor.js +7 -0
- package/esm5/lib/ColorEditorBridge.js +7 -0
- package/esm5/lib/ColorEditorGotFocusEventArgs.js +20 -0
- package/esm5/lib/ColorEditorLostFocusEventArgs.js +20 -0
- package/esm5/lib/ColorEditorPanel.js +7 -0
- package/esm5/lib/ColorEditorPanelClosedEventArgs.js +20 -0
- package/esm5/lib/ColorEditorPanelSelectedValueChangedEventArgs.js +43 -0
- package/esm5/lib/ColorEditorPanelView.js +7 -0
- package/esm5/lib/ColorEditorView.js +7 -0
- package/esm5/lib/DatePickerView_combined.js +18 -18
- package/esm5/lib/DefaultMultiSliderTrackBarVisual.js +139 -0
- package/esm5/lib/DefaultMultiSliderTrackRangeVisual.js +242 -0
- package/esm5/lib/DefaultMultiSliderTrackThumbCalloutVisual.js +212 -0
- package/esm5/lib/DefaultMultiSliderTrackThumbVisual.js +227 -0
- package/esm5/lib/DefaultMultiTrackShadeVisual.js +206 -0
- package/esm5/lib/IMultiSliderTrackBarVisual.js +11 -0
- package/esm5/lib/IMultiSliderTrackRangeVisual.js +11 -0
- package/esm5/lib/IMultiSliderTrackShadeVisual.js +11 -0
- package/esm5/lib/IMultiSliderTrackThumbCalloutVisual.js +11 -0
- package/esm5/lib/IMultiSliderTrackThumbVisual.js +11 -0
- package/esm5/lib/ISliderTrackOwner.js +11 -0
- package/esm5/lib/IconClickedEventArgs.js +13 -1
- package/esm5/lib/IconView_combined.js +336 -301
- package/esm5/lib/InputGroupView_combined.js +444 -343
- package/esm5/lib/MultiSlider.js +7 -0
- package/esm5/lib/MultiSliderBridge.js +167 -0
- package/esm5/lib/MultiSliderCursor.js +11 -0
- package/esm5/lib/MultiSliderHitInfo.js +24 -0
- package/esm5/lib/MultiSliderOrientation.js +17 -0
- package/esm5/lib/MultiSliderResolvingToolTipValueEventArgs.js +43 -0
- package/esm5/lib/MultiSliderThumb.js +7 -0
- package/esm5/lib/MultiSliderThumbCollection.js +22 -0
- package/esm5/lib/MultiSliderThumbRangePosition.js +16 -0
- package/esm5/lib/MultiSliderThumbValueChangingEventArgs.js +23 -0
- package/esm5/lib/MultiSliderThumb_combined.js +352 -0
- package/esm5/lib/MultiSliderTrackShadeOrientation.js +11 -0
- package/esm5/lib/MultiSliderTrackThumbRange.js +7 -0
- package/esm5/lib/MultiSliderView.js +7 -0
- package/esm5/lib/MultiSliderView_combined.js +2006 -0
- package/esm5/lib/MultiSliderVisualArea.js +11 -0
- package/esm5/lib/MultiSliderYValueChangingEventArgs.js +22 -0
- package/esm5/lib/NativeUIXInputsFactory.js +1 -189
- package/esm5/lib/NativeUIXInputsFactory_combined.js +2298 -0
- package/esm5/lib/XButtonBridge.js +25 -20
- package/esm5/lib/XButtonGroupBridge.js +179 -0
- package/esm5/lib/XComponentBridge.js +3 -0
- package/esm5/lib/XIconBridge.js +20 -16
- package/esm5/lib/XInputBridge.js +274 -26
- package/esm5/lib/XPopupBridge.js +117 -98
- package/esm5/lib/igx-color-editor-component.js +555 -0
- package/esm5/lib/igx-color-editor-dynamic-module.js +44 -0
- package/esm5/lib/igx-color-editor-got-focus-event-args.js +33 -0
- package/esm5/lib/igx-color-editor-lost-focus-event-args.js +33 -0
- package/esm5/lib/igx-color-editor-module.js +38 -0
- package/esm5/lib/igx-color-editor-panel-closed-event-args.js +33 -0
- package/esm5/lib/igx-color-editor-panel-component.js +435 -0
- package/esm5/lib/igx-color-editor-panel-dynamic-module.js +65 -0
- package/esm5/lib/igx-color-editor-panel-module.js +59 -0
- package/esm5/lib/igx-color-editor-panel-selected-value-changed-event-args.js +54 -0
- package/esm5/lib/igx-multi-slider-component.js +842 -0
- package/esm5/lib/igx-multi-slider-dynamic-module.js +37 -0
- package/esm5/lib/igx-multi-slider-module.js +35 -0
- package/esm5/lib/igx-multi-slider-resolving-tool-tip-value-event-args.js +53 -0
- package/esm5/lib/igx-multi-slider-thumb-collection.js +58 -0
- package/esm5/lib/igx-multi-slider-thumb-value-changing-event-args.js +70 -0
- package/esm5/lib/igx-multi-slider-thumb.js +134 -0
- package/esm5/lib/igx-multi-slider-track-thumb-range.js +149 -0
- package/esm5/lib/igx-multi-slider-y-value-changing-event-args.js +43 -0
- package/esm5/lib/igx-x-button-component.js +262 -262
- package/esm5/lib/igx-x-icon-component.js +70 -55
- package/esm5/lib/igx-x-input-group-component.js +48 -48
- package/esm5/lib/igx-x-label-component.js +41 -40
- package/esm5/public_api.js +55 -0
- package/fesm2015/igniteui-angular-inputs.js +15626 -7466
- package/fesm5/igniteui-angular-inputs.js +16802 -7565
- package/lib/ButtonView_combined.d.ts +243 -241
- package/lib/ColorEditor.d.ts +1 -0
- package/lib/ColorEditorBridge.d.ts +1 -0
- package/lib/ColorEditorGotFocusEventArgs.d.ts +7 -0
- package/lib/ColorEditorLostFocusEventArgs.d.ts +7 -0
- package/lib/ColorEditorPanel.d.ts +1 -0
- package/lib/ColorEditorPanelClosedEventArgs.d.ts +7 -0
- package/lib/ColorEditorPanelSelectedValueChangedEventArgs.d.ts +14 -0
- package/lib/ColorEditorPanelView.d.ts +1 -0
- package/lib/ColorEditorView.d.ts +1 -0
- package/lib/DefaultMultiSliderTrackBarVisual.d.ts +34 -0
- package/lib/DefaultMultiSliderTrackRangeVisual.d.ts +43 -0
- package/lib/DefaultMultiSliderTrackThumbCalloutVisual.d.ts +49 -0
- package/lib/DefaultMultiSliderTrackThumbVisual.d.ts +45 -0
- package/lib/DefaultMultiTrackShadeVisual.d.ts +42 -0
- package/lib/IMultiSliderTrackBarVisual.d.ts +21 -0
- package/lib/IMultiSliderTrackRangeVisual.d.ts +25 -0
- package/lib/IMultiSliderTrackShadeVisual.d.ts +24 -0
- package/lib/IMultiSliderTrackThumbCalloutVisual.d.ts +27 -0
- package/lib/IMultiSliderTrackThumbVisual.d.ts +27 -0
- package/lib/ISliderTrackOwner.d.ts +15 -0
- package/lib/IconClickedEventArgs.d.ts +3 -0
- package/lib/IconView_combined.d.ts +88 -84
- package/lib/InputGroupView_combined.d.ts +120 -113
- package/lib/MultiSlider.d.ts +1 -0
- package/lib/MultiSliderBridge.d.ts +24 -0
- package/lib/MultiSliderCursor.d.ts +15 -0
- package/lib/MultiSliderHitInfo.d.ts +13 -0
- package/lib/MultiSliderOrientation.d.ts +10 -0
- package/lib/MultiSliderResolvingToolTipValueEventArgs.d.ts +13 -0
- package/lib/MultiSliderThumb.d.ts +1 -0
- package/lib/MultiSliderThumbCollection.d.ts +10 -0
- package/lib/MultiSliderThumbRangePosition.d.ts +9 -0
- package/lib/MultiSliderThumbValueChangingEventArgs.d.ts +10 -0
- package/lib/MultiSliderThumb_combined.d.ts +76 -0
- package/lib/MultiSliderTrackShadeOrientation.d.ts +14 -0
- package/lib/MultiSliderTrackThumbRange.d.ts +1 -0
- package/lib/MultiSliderView.d.ts +1 -0
- package/lib/MultiSliderView_combined.d.ts +298 -0
- package/lib/MultiSliderVisualArea.d.ts +14 -0
- package/lib/MultiSliderYValueChangingEventArgs.d.ts +8 -0
- package/lib/NativeUIXInputsFactory.d.ts +1 -24
- package/lib/NativeUIXInputsFactory_combined.d.ts +393 -0
- package/lib/XButtonGroupBridge.d.ts +29 -0
- package/lib/XInputBridge.d.ts +29 -5
- package/lib/XPopupBridge.d.ts +12 -9
- package/lib/igx-color-editor-component.d.ts +161 -0
- package/lib/igx-color-editor-dynamic-module.d.ts +10 -0
- package/lib/igx-color-editor-got-focus-event-args.d.ts +12 -0
- package/lib/igx-color-editor-lost-focus-event-args.d.ts +12 -0
- package/lib/igx-color-editor-module.d.ts +10 -0
- package/lib/igx-color-editor-panel-closed-event-args.d.ts +12 -0
- package/lib/igx-color-editor-panel-component.d.ts +125 -0
- package/lib/igx-color-editor-panel-dynamic-module.d.ts +13 -0
- package/lib/igx-color-editor-panel-module.d.ts +13 -0
- package/lib/igx-color-editor-panel-selected-value-changed-event-args.d.ts +16 -0
- package/lib/igx-multi-slider-component.d.ts +200 -0
- package/lib/igx-multi-slider-dynamic-module.d.ts +9 -0
- package/lib/igx-multi-slider-module.d.ts +9 -0
- package/lib/igx-multi-slider-resolving-tool-tip-value-event-args.d.ts +17 -0
- package/lib/igx-multi-slider-thumb-collection.d.ts +8 -0
- package/lib/igx-multi-slider-thumb-value-changing-event-args.d.ts +18 -0
- package/lib/igx-multi-slider-thumb.d.ts +33 -0
- package/lib/igx-multi-slider-track-thumb-range.d.ts +32 -0
- package/lib/igx-multi-slider-y-value-changing-event-args.d.ts +15 -0
- package/lib/igx-x-icon-component.d.ts +6 -1
- package/package.json +2 -2
- package/public_api.d.ts +55 -0
|
@@ -0,0 +1,2298 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { __extends, __values } from "tslib";
|
|
8
|
+
import { Base, markType, runOn, delegateCombine, delegateRemove, Delegate_$type, fromEnum, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox } from "igniteui-angular-core";
|
|
9
|
+
import { INativeUIElementFactory_$type } from "igniteui-angular-core";
|
|
10
|
+
import { NativeUIComponent } from "igniteui-angular-core";
|
|
11
|
+
import { XInputGroup } from "./XInputGroup";
|
|
12
|
+
import { XInput } from "./XInput";
|
|
13
|
+
import { XInputBridge } from "./XInputBridge";
|
|
14
|
+
import { NativeUIInput } from "igniteui-angular-core";
|
|
15
|
+
import { List$1 } from "igniteui-angular-core";
|
|
16
|
+
import { XButton } from "./XButton";
|
|
17
|
+
import { XButtonBridge } from "./XButtonBridge";
|
|
18
|
+
import { NativeUIButton } from "igniteui-angular-core";
|
|
19
|
+
import { MultiSlider } from "./MultiSlider";
|
|
20
|
+
import { MultiSliderThumb } from "./MultiSliderThumb";
|
|
21
|
+
import { MultiSliderBridge } from "./MultiSliderBridge";
|
|
22
|
+
import { NativeUISlider } from "igniteui-angular-core";
|
|
23
|
+
import { XButtonGroup } from "./XButtonGroup";
|
|
24
|
+
import { XButtonGroupBridge } from "./XButtonGroupBridge";
|
|
25
|
+
import { NativeUIButtonGroup } from "igniteui-angular-core";
|
|
26
|
+
import { NativeUIColorEditor } from "igniteui-angular-core";
|
|
27
|
+
import { XCheckbox } from "./XCheckbox";
|
|
28
|
+
import { XCheckboxBridge } from "./XCheckboxBridge";
|
|
29
|
+
import { NativeUICheckbox } from "igniteui-angular-core";
|
|
30
|
+
import { XIcon } from "./XIcon";
|
|
31
|
+
import { XIconBridge } from "./XIconBridge";
|
|
32
|
+
import { NativeUIIcon } from "igniteui-angular-core";
|
|
33
|
+
import { Popup } from "igniteui-angular-core";
|
|
34
|
+
import { XPopupBridge } from "./XPopupBridge";
|
|
35
|
+
import { NativeUIPopup } from "igniteui-angular-core";
|
|
36
|
+
import { XComponentBridge } from "./XComponentBridge";
|
|
37
|
+
import { ColorEditorPanelSelectedValueChangedEventArgs } from "./ColorEditorPanelSelectedValueChangedEventArgs";
|
|
38
|
+
import { NativeUIColorEditorValueChangedEventArgs } from "igniteui-angular-core";
|
|
39
|
+
import { KeyFrameAnimationFactory } from "igniteui-angular-core";
|
|
40
|
+
import { Size } from "igniteui-angular-core";
|
|
41
|
+
import { NativeUIContent } from "igniteui-angular-core";
|
|
42
|
+
import { truncate, isNaN_, intDivide } from "igniteui-angular-core";
|
|
43
|
+
import { DOMExecutionContext } from "igniteui-angular-core";
|
|
44
|
+
import { Rect } from "igniteui-angular-core";
|
|
45
|
+
import { SRProvider } from "igniteui-angular-core";
|
|
46
|
+
import { ControlDisplayDensity_$type } from "igniteui-angular-core";
|
|
47
|
+
import { BaseControlTheme_$type } from "igniteui-angular-core";
|
|
48
|
+
import { BrushUtil } from "igniteui-angular-core";
|
|
49
|
+
import { NativeUIInputsFactory } from "igniteui-angular-core";
|
|
50
|
+
import { NativeUIWindow } from "igniteui-angular-core";
|
|
51
|
+
import { ColorEditorPanelClosedEventArgs } from "./ColorEditorPanelClosedEventArgs";
|
|
52
|
+
import { ColorEditorGotFocusEventArgs } from "./ColorEditorGotFocusEventArgs";
|
|
53
|
+
import { ColorEditorLostFocusEventArgs } from "./ColorEditorLostFocusEventArgs";
|
|
54
|
+
import { Color } from "igniteui-angular-core";
|
|
55
|
+
import { ColorUtil } from "igniteui-angular-core";
|
|
56
|
+
import { Thickness } from "igniteui-angular-core";
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
var NativeUIXInputsFactory = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
61
|
+
__extends(NativeUIXInputsFactory, _super);
|
|
62
|
+
function NativeUIXInputsFactory() {
|
|
63
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
_this.c = 2;
|
|
65
|
+
return _this;
|
|
66
|
+
}
|
|
67
|
+
Object.defineProperty(NativeUIXInputsFactory, "b", {
|
|
68
|
+
get: function () {
|
|
69
|
+
if (NativeUIXInputsFactory.a == null) {
|
|
70
|
+
NativeUIXInputsFactory.a = new NativeUIXInputsFactory();
|
|
71
|
+
}
|
|
72
|
+
return NativeUIXInputsFactory.a;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
NativeUIXInputsFactory.m = function () {
|
|
78
|
+
NativeUIComponent.as(NativeUIXInputsFactory.b);
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(NativeUIXInputsFactory.prototype, "flavor", {
|
|
81
|
+
get: function () {
|
|
82
|
+
return this.c;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
NativeUIXInputsFactory.prototype.createComponent = function (a, b, c) {
|
|
88
|
+
switch (b) {
|
|
89
|
+
case 1:
|
|
90
|
+
this.d(a, c);
|
|
91
|
+
break;
|
|
92
|
+
case 6:
|
|
93
|
+
this.f(a, c);
|
|
94
|
+
break;
|
|
95
|
+
case 10:
|
|
96
|
+
this.i(a, c);
|
|
97
|
+
break;
|
|
98
|
+
case 2:
|
|
99
|
+
this.j(a, c);
|
|
100
|
+
break;
|
|
101
|
+
case 11:
|
|
102
|
+
this.h(a, c);
|
|
103
|
+
break;
|
|
104
|
+
case 12:
|
|
105
|
+
this.k(a, c);
|
|
106
|
+
break;
|
|
107
|
+
case 17:
|
|
108
|
+
this.e(a, c);
|
|
109
|
+
break;
|
|
110
|
+
case 20:
|
|
111
|
+
this.g(a, c);
|
|
112
|
+
break;
|
|
113
|
+
case 5:
|
|
114
|
+
this.l(a, c);
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
NativeUIXInputsFactory.prototype.createComponentSync = function (a, b, c) {
|
|
119
|
+
this.createComponent(a, b, c);
|
|
120
|
+
};
|
|
121
|
+
NativeUIXInputsFactory.prototype.supportsComponent = function (a) {
|
|
122
|
+
switch (a) {
|
|
123
|
+
case 1: return true;
|
|
124
|
+
case 6: return true;
|
|
125
|
+
case 10: return true;
|
|
126
|
+
case 2: return true;
|
|
127
|
+
case 11: return true;
|
|
128
|
+
case 12: return true;
|
|
129
|
+
case 17: return true;
|
|
130
|
+
case 20: return true;
|
|
131
|
+
case 5: return true;
|
|
132
|
+
}
|
|
133
|
+
return false;
|
|
134
|
+
};
|
|
135
|
+
NativeUIXInputsFactory.prototype.j = function (a, b) {
|
|
136
|
+
var c = a;
|
|
137
|
+
var d = c.createElement("div");
|
|
138
|
+
var e = c.getSubRenderer(d);
|
|
139
|
+
var f = new XInputGroup();
|
|
140
|
+
f.provideContainer(e);
|
|
141
|
+
var g = e.getExternal(f, e.rootWrapper, null);
|
|
142
|
+
var h = c.createElement("div");
|
|
143
|
+
h.setRawStyleProperty("width", "100%");
|
|
144
|
+
var i = c.getSubRenderer(h);
|
|
145
|
+
var j = new XInput();
|
|
146
|
+
j.provideContainer(i);
|
|
147
|
+
var k = e.getExternal(j, i.rootWrapper, null);
|
|
148
|
+
f.appendContentChild(h);
|
|
149
|
+
f.inputs.add(j);
|
|
150
|
+
var l = new XInputBridge(f);
|
|
151
|
+
var m = new NativeUIInput();
|
|
152
|
+
m.an = d;
|
|
153
|
+
m.d = l;
|
|
154
|
+
b(m);
|
|
155
|
+
};
|
|
156
|
+
NativeUIXInputsFactory.prototype.d = function (a, b) {
|
|
157
|
+
var c = a;
|
|
158
|
+
var d = c.createElement("div");
|
|
159
|
+
var e = c.getSubRenderer(d);
|
|
160
|
+
var f = new XButton();
|
|
161
|
+
f.provideContainer(e);
|
|
162
|
+
f.ff = "none";
|
|
163
|
+
var g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
164
|
+
var h = new XButtonBridge(f);
|
|
165
|
+
var i = new NativeUIButton();
|
|
166
|
+
i.an = d;
|
|
167
|
+
i.d = h;
|
|
168
|
+
b(i);
|
|
169
|
+
};
|
|
170
|
+
NativeUIXInputsFactory.prototype.l = function (a, b) {
|
|
171
|
+
var c = a;
|
|
172
|
+
var d = c.createElement("div");
|
|
173
|
+
var e = c.getSubRenderer(d);
|
|
174
|
+
var f = new MultiSlider();
|
|
175
|
+
var g = new MultiSliderThumb();
|
|
176
|
+
f.provideContainer(e);
|
|
177
|
+
f.thumbs.add(g);
|
|
178
|
+
var h = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
179
|
+
var i = new MultiSliderBridge(f);
|
|
180
|
+
var j = new NativeUISlider();
|
|
181
|
+
j.an = d;
|
|
182
|
+
j.d = i;
|
|
183
|
+
b(j);
|
|
184
|
+
};
|
|
185
|
+
NativeUIXInputsFactory.prototype.e = function (a, b) {
|
|
186
|
+
var c = a;
|
|
187
|
+
var d = c.createElement("div");
|
|
188
|
+
var e = c.getSubRenderer(d);
|
|
189
|
+
var f = new XButtonGroup();
|
|
190
|
+
f.provideContainer(e);
|
|
191
|
+
var g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
192
|
+
var h = new XButtonGroupBridge(f);
|
|
193
|
+
var i = new NativeUIButtonGroup();
|
|
194
|
+
i.an = d;
|
|
195
|
+
i.d = h;
|
|
196
|
+
b(i);
|
|
197
|
+
};
|
|
198
|
+
NativeUIXInputsFactory.prototype.g = function (a, b) {
|
|
199
|
+
var c = a;
|
|
200
|
+
var d = c.createElement("div");
|
|
201
|
+
var e = c.getSubRenderer(d);
|
|
202
|
+
var f = new ColorEditor();
|
|
203
|
+
f.provideContainer(e);
|
|
204
|
+
var g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
205
|
+
var h = new ColorEditorBridge(f);
|
|
206
|
+
var i = new NativeUIColorEditor();
|
|
207
|
+
i.an = d;
|
|
208
|
+
i.d = h;
|
|
209
|
+
b(i);
|
|
210
|
+
};
|
|
211
|
+
NativeUIXInputsFactory.prototype.f = function (a, b) {
|
|
212
|
+
var c = a;
|
|
213
|
+
var d = c.createElement("div");
|
|
214
|
+
var e = c.getSubRenderer(d);
|
|
215
|
+
var f = new XCheckbox();
|
|
216
|
+
f.provideContainer(e);
|
|
217
|
+
var g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
218
|
+
var h = new XCheckboxBridge(f);
|
|
219
|
+
var i = new NativeUICheckbox();
|
|
220
|
+
i.an = d;
|
|
221
|
+
i.d = h;
|
|
222
|
+
b(i);
|
|
223
|
+
};
|
|
224
|
+
NativeUIXInputsFactory.prototype.i = function (a, b) {
|
|
225
|
+
var c = a;
|
|
226
|
+
var d = c.createElement("div");
|
|
227
|
+
var e = c.getSubRenderer(d);
|
|
228
|
+
var f = new XIcon();
|
|
229
|
+
f.provideContainer(e);
|
|
230
|
+
var g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
231
|
+
var h = new XIconBridge(f);
|
|
232
|
+
var i = new NativeUIIcon();
|
|
233
|
+
i.an = d;
|
|
234
|
+
i.d = h;
|
|
235
|
+
var j = c.createElement("div");
|
|
236
|
+
var k = c.getSubRenderer(j);
|
|
237
|
+
var l = new XButton();
|
|
238
|
+
l.provideContainer(k);
|
|
239
|
+
l.e = 4;
|
|
240
|
+
l.ff = "none";
|
|
241
|
+
var m = k.getExternal(l, k.rootWrapper, k.getExternal(l, null, null));
|
|
242
|
+
var n = new XButtonBridge(l);
|
|
243
|
+
var o = new NativeUIButton();
|
|
244
|
+
o.an = j;
|
|
245
|
+
o.d = n;
|
|
246
|
+
o.bo = i;
|
|
247
|
+
b(o);
|
|
248
|
+
};
|
|
249
|
+
NativeUIXInputsFactory.prototype.h = function (a, b) {
|
|
250
|
+
var c = a;
|
|
251
|
+
var d = c.createElement("div");
|
|
252
|
+
var e = c.getSubRenderer(d);
|
|
253
|
+
var f = new XIcon();
|
|
254
|
+
f.provideContainer(e);
|
|
255
|
+
var g = e.getExternal(f, e.rootWrapper, e.getExternal(f, null, null));
|
|
256
|
+
var h = new XIconBridge(f);
|
|
257
|
+
var i = new NativeUIIcon();
|
|
258
|
+
i.an = d;
|
|
259
|
+
i.d = h;
|
|
260
|
+
b(i);
|
|
261
|
+
};
|
|
262
|
+
NativeUIXInputsFactory.prototype.k = function (a, b) {
|
|
263
|
+
var c = a;
|
|
264
|
+
var d = c.createElement("div");
|
|
265
|
+
var e = c.getSubRenderer(d);
|
|
266
|
+
var f = new Popup();
|
|
267
|
+
f.provideRenderer(e);
|
|
268
|
+
var g = new XPopupBridge(f);
|
|
269
|
+
var h = new NativeUIPopup();
|
|
270
|
+
h.an = d;
|
|
271
|
+
h.d = g;
|
|
272
|
+
b(h);
|
|
273
|
+
};
|
|
274
|
+
NativeUIXInputsFactory.$t = markType(NativeUIXInputsFactory, 'NativeUIXInputsFactory', Base.$, [INativeUIElementFactory_$type]);
|
|
275
|
+
NativeUIXInputsFactory.a = null;
|
|
276
|
+
return NativeUIXInputsFactory;
|
|
277
|
+
}(Base));
|
|
278
|
+
export { NativeUIXInputsFactory };
|
|
279
|
+
/**
|
|
280
|
+
* @hidden
|
|
281
|
+
*/
|
|
282
|
+
var ColorEditorBridge = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
283
|
+
__extends(ColorEditorBridge, _super);
|
|
284
|
+
function ColorEditorBridge(a) {
|
|
285
|
+
var _this = _super.call(this, a) || this;
|
|
286
|
+
_this.u = null;
|
|
287
|
+
_this.w = null;
|
|
288
|
+
_this.v = null;
|
|
289
|
+
_this.x = null;
|
|
290
|
+
return _this;
|
|
291
|
+
}
|
|
292
|
+
ColorEditorBridge.prototype.addHandler = function (a, b, c, d) {
|
|
293
|
+
switch (c) {
|
|
294
|
+
case 0:
|
|
295
|
+
var e = a;
|
|
296
|
+
e.valueChanging = delegateCombine(e.valueChanging, runOn(this, this.z));
|
|
297
|
+
this.v = d;
|
|
298
|
+
this.x = b;
|
|
299
|
+
break;
|
|
300
|
+
case 4:
|
|
301
|
+
var f = a;
|
|
302
|
+
f.valueChanged = delegateCombine(f.valueChanged, runOn(this, this.y));
|
|
303
|
+
this.u = d;
|
|
304
|
+
this.w = b;
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
ColorEditorBridge.prototype.y = function (a, b) {
|
|
309
|
+
if (this.u != null) {
|
|
310
|
+
var c = new NativeUIColorEditorValueChangedEventArgs();
|
|
311
|
+
this.u(this.w, c);
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
ColorEditorBridge.prototype.z = function (a, b) {
|
|
315
|
+
if (this.v != null) {
|
|
316
|
+
var c = new NativeUIColorEditorValueChangedEventArgs();
|
|
317
|
+
this.v(this.x, c);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
ColorEditorBridge.prototype.getValue = function (a, b) {
|
|
321
|
+
switch (b) {
|
|
322
|
+
case 2: return a.value;
|
|
323
|
+
}
|
|
324
|
+
return null;
|
|
325
|
+
};
|
|
326
|
+
ColorEditorBridge.prototype.removeHandler = function (a, b, c, d) {
|
|
327
|
+
switch (c) {
|
|
328
|
+
case 0:
|
|
329
|
+
var e = a;
|
|
330
|
+
e.valueChanging = delegateRemove(e.valueChanging, runOn(this, this.z));
|
|
331
|
+
this.v = null;
|
|
332
|
+
this.x = null;
|
|
333
|
+
break;
|
|
334
|
+
case 4:
|
|
335
|
+
var f = a;
|
|
336
|
+
f.valueChanged = delegateRemove(f.valueChanged, runOn(this, this.y));
|
|
337
|
+
this.u = null;
|
|
338
|
+
this.w = null;
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
ColorEditorBridge.prototype.setValue = function (a, b, c) {
|
|
343
|
+
switch (b) {
|
|
344
|
+
case 2:
|
|
345
|
+
a.value = c;
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
ColorEditorBridge.$t = markType(ColorEditorBridge, 'ColorEditorBridge', XComponentBridge.$);
|
|
350
|
+
return ColorEditorBridge;
|
|
351
|
+
}(XComponentBridge));
|
|
352
|
+
export { ColorEditorBridge };
|
|
353
|
+
/**
|
|
354
|
+
* @hidden
|
|
355
|
+
*/
|
|
356
|
+
var ColorEditorPanelView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
357
|
+
__extends(ColorEditorPanelView, _super);
|
|
358
|
+
function ColorEditorPanelView() {
|
|
359
|
+
var _this = _super.call(this) || this;
|
|
360
|
+
_this.a = null;
|
|
361
|
+
_this.aa = null;
|
|
362
|
+
_this.c = null;
|
|
363
|
+
_this.g = new List$1(Delegate_$type, 0);
|
|
364
|
+
_this.d = true;
|
|
365
|
+
_this.af = null;
|
|
366
|
+
_this.o = NaN;
|
|
367
|
+
_this.n = NaN;
|
|
368
|
+
_this.ab = null;
|
|
369
|
+
_this.b = null;
|
|
370
|
+
_this.ac = null;
|
|
371
|
+
_this.a1 = null;
|
|
372
|
+
_this.ag = null;
|
|
373
|
+
_this.ae = null;
|
|
374
|
+
_this.m = -1;
|
|
375
|
+
_this.l = -1;
|
|
376
|
+
_this.au = -1;
|
|
377
|
+
_this.at = -1;
|
|
378
|
+
_this.a3 = null;
|
|
379
|
+
_this.k = -1;
|
|
380
|
+
_this.j = -1;
|
|
381
|
+
_this.h = -1;
|
|
382
|
+
_this.i = -1;
|
|
383
|
+
_this.a2 = null;
|
|
384
|
+
_this.t = -1;
|
|
385
|
+
_this.p = -1;
|
|
386
|
+
_this.aw = -1;
|
|
387
|
+
_this.av = -1;
|
|
388
|
+
_this.z = -1;
|
|
389
|
+
_this.v = -1;
|
|
390
|
+
_this.a0 = -1;
|
|
391
|
+
_this.az = -1;
|
|
392
|
+
_this.u = -1;
|
|
393
|
+
_this.a6 = null;
|
|
394
|
+
_this.ai = null;
|
|
395
|
+
_this.w = -1;
|
|
396
|
+
_this.s = -1;
|
|
397
|
+
_this.r = -1;
|
|
398
|
+
_this.ay = -1;
|
|
399
|
+
_this.ax = -1;
|
|
400
|
+
_this.a5 = null;
|
|
401
|
+
_this.y = -1;
|
|
402
|
+
_this.x = -1;
|
|
403
|
+
_this.ad = null;
|
|
404
|
+
_this.ak = null;
|
|
405
|
+
_this.ao = null;
|
|
406
|
+
_this.as = -1;
|
|
407
|
+
_this.ar = -1;
|
|
408
|
+
_this.aj = null;
|
|
409
|
+
_this.an = null;
|
|
410
|
+
_this.ah = null;
|
|
411
|
+
_this.al = null;
|
|
412
|
+
_this.ap = null;
|
|
413
|
+
_this.am = null;
|
|
414
|
+
_this.aq = null;
|
|
415
|
+
_this.a4 = null;
|
|
416
|
+
_this.q = -1;
|
|
417
|
+
_this.e = false;
|
|
418
|
+
return _this;
|
|
419
|
+
}
|
|
420
|
+
ColorEditorPanelView.prototype.bj = function () {
|
|
421
|
+
};
|
|
422
|
+
ColorEditorPanelView.prototype.f = function () {
|
|
423
|
+
return true;
|
|
424
|
+
};
|
|
425
|
+
ColorEditorPanelView.prototype.bh = function (a) {
|
|
426
|
+
var e_1, _a;
|
|
427
|
+
if (a == null) {
|
|
428
|
+
try {
|
|
429
|
+
for (var _b = __values(fromEnum(this.g)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
430
|
+
var b = _c.value;
|
|
431
|
+
b();
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
catch (e_1_1) {
|
|
435
|
+
e_1 = { error: e_1_1 };
|
|
436
|
+
}
|
|
437
|
+
finally {
|
|
438
|
+
try {
|
|
439
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
440
|
+
_a.call(_b);
|
|
441
|
+
}
|
|
442
|
+
finally {
|
|
443
|
+
if (e_1)
|
|
444
|
+
throw e_1.error;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
this.g.clear();
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
this.aa = a;
|
|
451
|
+
if (isNaN_(this.a.ae)) {
|
|
452
|
+
this.a.ab = window.devicePixelRatio;
|
|
453
|
+
}
|
|
454
|
+
this.a.a4();
|
|
455
|
+
};
|
|
456
|
+
ColorEditorPanelView.prototype.bd = function () {
|
|
457
|
+
if (KeyFrameAnimationFactory.h == null) {
|
|
458
|
+
KeyFrameAnimationFactory.h = this.aa;
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
ColorEditorPanelView.prototype.bg = function () {
|
|
462
|
+
this.d = true;
|
|
463
|
+
};
|
|
464
|
+
ColorEditorPanelView.prototype.bi = function () {
|
|
465
|
+
this.d = false;
|
|
466
|
+
};
|
|
467
|
+
ColorEditorPanelView.prototype.a7 = function () {
|
|
468
|
+
return this.aa;
|
|
469
|
+
};
|
|
470
|
+
ColorEditorPanelView.prototype.bf = function (a) {
|
|
471
|
+
};
|
|
472
|
+
ColorEditorPanelView.prototype.a8 = function (a) {
|
|
473
|
+
this.aa.append(this.aa.getWrapper(a.an));
|
|
474
|
+
};
|
|
475
|
+
ColorEditorPanelView.prototype.be = function (a, b, c, d, e, f, g) {
|
|
476
|
+
var h = truncate(Math.round(f * this.a.ab));
|
|
477
|
+
var i = truncate(Math.round(g * this.a.ab));
|
|
478
|
+
if (f != b || g != c || h != d || i != e) {
|
|
479
|
+
a.setProperty("width", h);
|
|
480
|
+
a.setProperty("height", i);
|
|
481
|
+
a.setStyleProperty("width", f + "px");
|
|
482
|
+
a.setStyleProperty("height", g + "px");
|
|
483
|
+
b = f;
|
|
484
|
+
c = g;
|
|
485
|
+
d = h;
|
|
486
|
+
e = i;
|
|
487
|
+
}
|
|
488
|
+
return {
|
|
489
|
+
p1: b,
|
|
490
|
+
p2: c,
|
|
491
|
+
p3: d,
|
|
492
|
+
p4: e
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
ColorEditorPanelView.prototype.ba = function (a) {
|
|
496
|
+
if (this.ae == null || a.ao == null) {
|
|
497
|
+
a.ao = "image";
|
|
498
|
+
var b = this.aa.createElement("canvas");
|
|
499
|
+
this.ae = b;
|
|
500
|
+
var c = this.be(this.ae, this.m, this.l, this.au, this.at, 148, 148);
|
|
501
|
+
this.m = c.p1;
|
|
502
|
+
this.l = c.p2;
|
|
503
|
+
this.au = c.p3;
|
|
504
|
+
this.at = c.p4;
|
|
505
|
+
this.ae.setStyleProperty("justify-self", "center");
|
|
506
|
+
this.ae.setStyleProperty("align-self", "center");
|
|
507
|
+
var d = a.an;
|
|
508
|
+
d.append(this.ae);
|
|
509
|
+
this.bm(this.a.ad());
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
ColorEditorPanelView.prototype.bm = function (a) {
|
|
513
|
+
if (this.k == a && !this.e) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
if (this.ae != null) {
|
|
517
|
+
this.k = a;
|
|
518
|
+
var b = this.be(this.ae, this.m, this.l, this.au, this.at, 148, 148);
|
|
519
|
+
this.m = b.p1;
|
|
520
|
+
this.l = b.p2;
|
|
521
|
+
this.au = b.p3;
|
|
522
|
+
this.at = b.p4;
|
|
523
|
+
var c = this.au;
|
|
524
|
+
var d = this.at;
|
|
525
|
+
var e = this.a3;
|
|
526
|
+
if (this.ak == null) {
|
|
527
|
+
var f = (this.ae.getNativeElement());
|
|
528
|
+
var g = f.getContext("2d");
|
|
529
|
+
this.ak = g;
|
|
530
|
+
}
|
|
531
|
+
if (e == null || e.length != (c * d) * 4) {
|
|
532
|
+
this.ao = this.ak.getImageData(0, 0, c, d);
|
|
533
|
+
e = this.ao.data;
|
|
534
|
+
this.a3 = e;
|
|
535
|
+
}
|
|
536
|
+
this.a.a0(e, c, d);
|
|
537
|
+
this.ak.putImageData(this.ao, 0, 0);
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
ColorEditorPanelView.prototype.a9 = function (a) {
|
|
541
|
+
if (this.ad == null || a.ao == null) {
|
|
542
|
+
a.ao = "image";
|
|
543
|
+
var b = this.aa.createElement("canvas");
|
|
544
|
+
this.ad = b;
|
|
545
|
+
var c = this.be(this.ad, this.j, this.h, this.as, this.ar, 248, 19);
|
|
546
|
+
this.j = c.p1;
|
|
547
|
+
this.h = c.p2;
|
|
548
|
+
this.as = c.p3;
|
|
549
|
+
this.ar = c.p4;
|
|
550
|
+
this.ad.setStyleProperty("justify-self", "center");
|
|
551
|
+
this.ad.setStyleProperty("align-self", "center");
|
|
552
|
+
var d = a.an;
|
|
553
|
+
d.append(this.ad);
|
|
554
|
+
this.bl(0);
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
ColorEditorPanelView.prototype.bl = function (a) {
|
|
558
|
+
if (a == this.i && !this.e) {
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
if (this.ad != null) {
|
|
562
|
+
this.i = a;
|
|
563
|
+
var b = this.be(this.ad, this.j, this.h, this.as, this.ar, 248, 19);
|
|
564
|
+
this.j = b.p1;
|
|
565
|
+
this.h = b.p2;
|
|
566
|
+
this.as = b.p3;
|
|
567
|
+
this.ar = b.p4;
|
|
568
|
+
var c = this.as;
|
|
569
|
+
var d = this.ar;
|
|
570
|
+
var e = this.a2;
|
|
571
|
+
if (this.aj == null) {
|
|
572
|
+
var f = (this.ad.getNativeElement());
|
|
573
|
+
var g = f.getContext("2d");
|
|
574
|
+
this.aj = g;
|
|
575
|
+
}
|
|
576
|
+
if (e == null || e.length != (c * d) * 4) {
|
|
577
|
+
this.an = this.aj.getImageData(0, 0, c, d);
|
|
578
|
+
e = this.an.data;
|
|
579
|
+
this.a2 = e;
|
|
580
|
+
}
|
|
581
|
+
this.a.az(e, c, d);
|
|
582
|
+
this.aj.putImageData(this.an, 0, 0);
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
ColorEditorPanelView.prototype.bb = function (a) {
|
|
586
|
+
var b = a.an;
|
|
587
|
+
if (b.getChildCount() == 1) {
|
|
588
|
+
a.ao = "image";
|
|
589
|
+
var c = this.aa.createElement("canvas");
|
|
590
|
+
this.ah = c;
|
|
591
|
+
var d = this.be(this.ah, this.t, this.p, this.aw, this.av, 85, 148);
|
|
592
|
+
this.t = d.p1;
|
|
593
|
+
this.p = d.p2;
|
|
594
|
+
this.aw = d.p3;
|
|
595
|
+
this.av = d.p4;
|
|
596
|
+
this.ah.setStyleProperty("margin-left", "5px");
|
|
597
|
+
this.ah.setStyleProperty("margin-top", "16px");
|
|
598
|
+
this.ah.setStyleProperty("margin-right", "0px");
|
|
599
|
+
this.ah.setStyleProperty("margin-bottom", "11px");
|
|
600
|
+
this.ah.setStyleProperty("grid-row-start", "1");
|
|
601
|
+
this.ah.setStyleProperty("grid-row-end", "2");
|
|
602
|
+
this.ah.setStyleProperty("grid-column-start", "1");
|
|
603
|
+
this.ah.setStyleProperty("grid-column-end", "2");
|
|
604
|
+
this.bn(0);
|
|
605
|
+
var e = b.getChildAt(0);
|
|
606
|
+
e.before(c);
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
ColorEditorPanelView.prototype.bc = function (a) {
|
|
610
|
+
if (this.ai == null || a.ao == null) {
|
|
611
|
+
a.ao = "image";
|
|
612
|
+
var b = this.aa.createElement("canvas");
|
|
613
|
+
this.ai = b;
|
|
614
|
+
var c = this.be(this.ai, this.z, this.v, this.aw, this.av, 25, 148);
|
|
615
|
+
this.z = c.p1;
|
|
616
|
+
this.v = c.p2;
|
|
617
|
+
this.aw = c.p3;
|
|
618
|
+
this.av = c.p4;
|
|
619
|
+
this.ai.setStyleProperty("justify-self", "center");
|
|
620
|
+
this.ai.setStyleProperty("align-self", "center");
|
|
621
|
+
var d = a.an;
|
|
622
|
+
d.append(this.ai);
|
|
623
|
+
this.bo(0, 1, 0.5);
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
ColorEditorPanelView.prototype.bn = function (a) {
|
|
627
|
+
if (this.q == a && !this.e) {
|
|
628
|
+
return;
|
|
629
|
+
}
|
|
630
|
+
if (this.ah != null) {
|
|
631
|
+
this.q = a;
|
|
632
|
+
var b = this.be(this.ah, this.s, this.r, this.ay, this.ax, 85, 148);
|
|
633
|
+
this.s = b.p1;
|
|
634
|
+
this.r = b.p2;
|
|
635
|
+
this.ay = b.p3;
|
|
636
|
+
this.ax = b.p4;
|
|
637
|
+
var c = this.ay;
|
|
638
|
+
var d = this.ax;
|
|
639
|
+
var e = this.a4;
|
|
640
|
+
if (this.al == null) {
|
|
641
|
+
var f = (this.ah.getNativeElement());
|
|
642
|
+
var g = f.getContext("2d");
|
|
643
|
+
this.al = g;
|
|
644
|
+
}
|
|
645
|
+
if (e == null || e.length != (c * d) * 4) {
|
|
646
|
+
this.ap = this.al.getImageData(0, 0, c, d);
|
|
647
|
+
e = this.ap.data;
|
|
648
|
+
this.a4 = e;
|
|
649
|
+
}
|
|
650
|
+
this.a.a1(e, c, d);
|
|
651
|
+
this.al.putImageData(this.ap, 0, 0);
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
ColorEditorPanelView.prototype.bo = function (a, b, c) {
|
|
655
|
+
if (this.w == a && this.y == b && this.x == c && !this.e) {
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
658
|
+
if (this.ai != null) {
|
|
659
|
+
this.w = a;
|
|
660
|
+
this.y = b;
|
|
661
|
+
this.x = c;
|
|
662
|
+
var d = this.be(this.ai, this.z, this.v, this.a0, this.az, 25, 148);
|
|
663
|
+
this.z = d.p1;
|
|
664
|
+
this.v = d.p2;
|
|
665
|
+
this.a0 = d.p3;
|
|
666
|
+
this.az = d.p4;
|
|
667
|
+
var e = this.a0;
|
|
668
|
+
var f = this.az;
|
|
669
|
+
var g = this.a5;
|
|
670
|
+
if (this.am == null) {
|
|
671
|
+
var h = (this.ai.getNativeElement());
|
|
672
|
+
var i = h.getContext("2d");
|
|
673
|
+
this.am = i;
|
|
674
|
+
}
|
|
675
|
+
if (g == null || g.length != (e * f) * 4) {
|
|
676
|
+
this.aq = this.am.getImageData(0, 0, e, f);
|
|
677
|
+
g = this.aq.data;
|
|
678
|
+
this.a5 = g;
|
|
679
|
+
}
|
|
680
|
+
this.a.a2(g, e, f);
|
|
681
|
+
this.am.putImageData(this.aq, 0, 0);
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
ColorEditorPanelView.prototype.bk = function () {
|
|
685
|
+
this.e = true;
|
|
686
|
+
this.bm(this.k);
|
|
687
|
+
this.bl(this.i);
|
|
688
|
+
this.bn(this.q);
|
|
689
|
+
this.bo(this.u, this.y, this.x);
|
|
690
|
+
this.e = false;
|
|
691
|
+
};
|
|
692
|
+
ColorEditorPanelView.$t = markType(ColorEditorPanelView, 'ColorEditorPanelView');
|
|
693
|
+
return ColorEditorPanelView;
|
|
694
|
+
}(Base));
|
|
695
|
+
export { ColorEditorPanelView };
|
|
696
|
+
/**
|
|
697
|
+
* @hidden
|
|
698
|
+
*/
|
|
699
|
+
var ColorEditorView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
700
|
+
__extends(ColorEditorView, _super);
|
|
701
|
+
function ColorEditorView() {
|
|
702
|
+
var _this = _super.call(this) || this;
|
|
703
|
+
_this.a = null;
|
|
704
|
+
_this.h = null;
|
|
705
|
+
_this.d = null;
|
|
706
|
+
_this.g = new List$1(Delegate_$type, 0);
|
|
707
|
+
_this.e = true;
|
|
708
|
+
_this.b = null;
|
|
709
|
+
return _this;
|
|
710
|
+
}
|
|
711
|
+
ColorEditorView.prototype.q = function () {
|
|
712
|
+
};
|
|
713
|
+
ColorEditorView.prototype.f = function () {
|
|
714
|
+
return true;
|
|
715
|
+
};
|
|
716
|
+
ColorEditorView.prototype.o = function (a) {
|
|
717
|
+
var e_2, _a;
|
|
718
|
+
if (a == null) {
|
|
719
|
+
try {
|
|
720
|
+
for (var _b = __values(fromEnum(this.g)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
721
|
+
var b = _c.value;
|
|
722
|
+
b();
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
catch (e_2_1) {
|
|
726
|
+
e_2 = { error: e_2_1 };
|
|
727
|
+
}
|
|
728
|
+
finally {
|
|
729
|
+
try {
|
|
730
|
+
if (_c && !_c.done && (_a = _b.return))
|
|
731
|
+
_a.call(_b);
|
|
732
|
+
}
|
|
733
|
+
finally {
|
|
734
|
+
if (e_2)
|
|
735
|
+
throw e_2.error;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
this.g.clear();
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
if (this.a.a == null) {
|
|
742
|
+
this.a.a = new DOMExecutionContext(a);
|
|
743
|
+
}
|
|
744
|
+
this.h = a;
|
|
745
|
+
this.a.bg();
|
|
746
|
+
};
|
|
747
|
+
ColorEditorView.prototype.m = function () {
|
|
748
|
+
if (KeyFrameAnimationFactory.h == null) {
|
|
749
|
+
KeyFrameAnimationFactory.h = this.h;
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
ColorEditorView.prototype.n = function () {
|
|
753
|
+
this.e = true;
|
|
754
|
+
};
|
|
755
|
+
ColorEditorView.prototype.p = function () {
|
|
756
|
+
this.e = false;
|
|
757
|
+
};
|
|
758
|
+
ColorEditorView.prototype.j = function () {
|
|
759
|
+
return this.h;
|
|
760
|
+
};
|
|
761
|
+
ColorEditorView.prototype.i = function () {
|
|
762
|
+
var a = new ColorEditorPanel();
|
|
763
|
+
this.b = a;
|
|
764
|
+
var b = this.h.createElement("div");
|
|
765
|
+
var c = this.h.getSubRenderer(b);
|
|
766
|
+
a.provideContainer(c);
|
|
767
|
+
var d = this.h.getExternal(a, null, null);
|
|
768
|
+
return b;
|
|
769
|
+
};
|
|
770
|
+
ColorEditorView.prototype.k = function (a, b) {
|
|
771
|
+
var c = a.an;
|
|
772
|
+
c.append(this.h.getWrapper(b));
|
|
773
|
+
};
|
|
774
|
+
ColorEditorView.prototype.l = function (a) {
|
|
775
|
+
this.h.append(this.h.getWrapper(a.an));
|
|
776
|
+
};
|
|
777
|
+
ColorEditorView.prototype.c = function (a) {
|
|
778
|
+
return this.b;
|
|
779
|
+
};
|
|
780
|
+
ColorEditorView.prototype.r = function (a) {
|
|
781
|
+
if (this.h != null) {
|
|
782
|
+
var b = this.h.rootWrapper.getNativeElement();
|
|
783
|
+
var c = (b.getBoundingClientRect());
|
|
784
|
+
if (a) {
|
|
785
|
+
c = new Rect(0, c.left + window.pageXOffset, c.top + window.pageYOffset, c.width, c.height);
|
|
786
|
+
}
|
|
787
|
+
return c;
|
|
788
|
+
}
|
|
789
|
+
return null;
|
|
790
|
+
};
|
|
791
|
+
ColorEditorView.prototype.s = function () {
|
|
792
|
+
return new Size(1, NaN, NaN);
|
|
793
|
+
};
|
|
794
|
+
ColorEditorView.$t = markType(ColorEditorView, 'ColorEditorView');
|
|
795
|
+
return ColorEditorView;
|
|
796
|
+
}(Base));
|
|
797
|
+
export { ColorEditorView };
|
|
798
|
+
/**
|
|
799
|
+
* @hidden
|
|
800
|
+
*/
|
|
801
|
+
var ColorEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
802
|
+
__extends(ColorEditor, _super);
|
|
803
|
+
function ColorEditor() {
|
|
804
|
+
var _this = _super.call(this) || this;
|
|
805
|
+
_this.g = null;
|
|
806
|
+
_this.r = null;
|
|
807
|
+
_this.q = null;
|
|
808
|
+
_this.d = null;
|
|
809
|
+
_this.v = false;
|
|
810
|
+
_this.af = false;
|
|
811
|
+
_this.ad = false;
|
|
812
|
+
_this.cj = BrushUtil.h(0, 0, 0, 0);
|
|
813
|
+
_this.w = false;
|
|
814
|
+
_this.propertyChanged = null;
|
|
815
|
+
_this.valueChanged = null;
|
|
816
|
+
_this.valueChanging = null;
|
|
817
|
+
_this.s = null;
|
|
818
|
+
_this.a = null;
|
|
819
|
+
_this.cl = BrushUtil.h(255, 0, 0, 255);
|
|
820
|
+
_this.ar = "";
|
|
821
|
+
_this.ci = BrushUtil.h(255, 24, 29, 31);
|
|
822
|
+
_this.l = null;
|
|
823
|
+
_this.j = 2;
|
|
824
|
+
_this.h = 1;
|
|
825
|
+
_this.m = null;
|
|
826
|
+
_this.ck = BrushUtil.h(255, 24, 29, 31);
|
|
827
|
+
_this.ch = BrushUtil.h(255, 163, 172, 184);
|
|
828
|
+
_this.ac = true;
|
|
829
|
+
_this.u = true;
|
|
830
|
+
_this.ab = true;
|
|
831
|
+
_this.x = false;
|
|
832
|
+
_this.ap = 0;
|
|
833
|
+
_this.y = false;
|
|
834
|
+
_this.aa = false;
|
|
835
|
+
_this.ae = false;
|
|
836
|
+
_this.z = false;
|
|
837
|
+
_this.gotFocus = null;
|
|
838
|
+
_this.lostFocus = null;
|
|
839
|
+
NativeUIInputsFactory.n();
|
|
840
|
+
NativeUIXInputsFactory.m();
|
|
841
|
+
var a = new ColorEditorView();
|
|
842
|
+
a.a = _this;
|
|
843
|
+
_this.g = a;
|
|
844
|
+
_this.g.q();
|
|
845
|
+
return _this;
|
|
846
|
+
}
|
|
847
|
+
ColorEditor.prototype.onAttachedToUI = function () {
|
|
848
|
+
this.g.n();
|
|
849
|
+
};
|
|
850
|
+
ColorEditor.prototype.onDetachedFromUI = function () {
|
|
851
|
+
this.g.p();
|
|
852
|
+
};
|
|
853
|
+
ColorEditor.prototype.b1 = function (a, b) {
|
|
854
|
+
if (this.valueChanging != null) {
|
|
855
|
+
this.valueChanging(this, ((function () {
|
|
856
|
+
var $ret = new ColorEditorPanelSelectedValueChangedEventArgs();
|
|
857
|
+
$ret.oldValue = a;
|
|
858
|
+
$ret.newValue = b;
|
|
859
|
+
return $ret;
|
|
860
|
+
})()));
|
|
861
|
+
}
|
|
862
|
+
if (this.w) {
|
|
863
|
+
}
|
|
864
|
+
};
|
|
865
|
+
ColorEditor.prototype.notifySizeChanged = function () {
|
|
866
|
+
};
|
|
867
|
+
ColorEditor.prototype.destroy = function () {
|
|
868
|
+
this.provideContainer(null);
|
|
869
|
+
};
|
|
870
|
+
ColorEditor.prototype.provideContainer = function (a) {
|
|
871
|
+
this.g.o(a);
|
|
872
|
+
};
|
|
873
|
+
Object.defineProperty(ColorEditor.prototype, "t", {
|
|
874
|
+
get: function () {
|
|
875
|
+
if (this.s == null) {
|
|
876
|
+
this.s = new SRProvider(this.g.h);
|
|
877
|
+
this.s.cb("ColorEditor");
|
|
878
|
+
}
|
|
879
|
+
return this.s;
|
|
880
|
+
},
|
|
881
|
+
enumerable: false,
|
|
882
|
+
configurable: true
|
|
883
|
+
});
|
|
884
|
+
Object.defineProperty(ColorEditor.prototype, "value", {
|
|
885
|
+
get: function () {
|
|
886
|
+
return this.cl;
|
|
887
|
+
},
|
|
888
|
+
set: function (a) {
|
|
889
|
+
var b = this.cl;
|
|
890
|
+
this.cj = b;
|
|
891
|
+
this.cl = a;
|
|
892
|
+
if (b != this.cl) {
|
|
893
|
+
this.b0("Value", b, this.cl);
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
enumerable: false,
|
|
897
|
+
configurable: true
|
|
898
|
+
});
|
|
899
|
+
Object.defineProperty(ColorEditor.prototype, "az", {
|
|
900
|
+
get: function () {
|
|
901
|
+
return this.ar;
|
|
902
|
+
},
|
|
903
|
+
set: function (a) {
|
|
904
|
+
var b = this.ar;
|
|
905
|
+
this.ar = a;
|
|
906
|
+
if (b != this.ar) {
|
|
907
|
+
this.b0("Label", b, this.ar);
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
enumerable: false,
|
|
911
|
+
configurable: true
|
|
912
|
+
});
|
|
913
|
+
Object.defineProperty(ColorEditor.prototype, "cn", {
|
|
914
|
+
get: function () {
|
|
915
|
+
return this.ci;
|
|
916
|
+
},
|
|
917
|
+
set: function (a) {
|
|
918
|
+
var b = this.ci;
|
|
919
|
+
this.ci = a;
|
|
920
|
+
if (b != this.ci) {
|
|
921
|
+
this.b0("LabelTextColor", b, a);
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
enumerable: false,
|
|
925
|
+
configurable: true
|
|
926
|
+
});
|
|
927
|
+
Object.defineProperty(ColorEditor.prototype, "o", {
|
|
928
|
+
get: function () {
|
|
929
|
+
return this.l;
|
|
930
|
+
},
|
|
931
|
+
set: function (a) {
|
|
932
|
+
var b = this.l;
|
|
933
|
+
this.l = a;
|
|
934
|
+
if (b != this.l) {
|
|
935
|
+
this.b0("LabelTextStyle", b, this.l);
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
enumerable: false,
|
|
939
|
+
configurable: true
|
|
940
|
+
});
|
|
941
|
+
Object.defineProperty(ColorEditor.prototype, "k", {
|
|
942
|
+
get: function () {
|
|
943
|
+
return this.j;
|
|
944
|
+
},
|
|
945
|
+
set: function (a) {
|
|
946
|
+
var b = this.j;
|
|
947
|
+
this.j = a;
|
|
948
|
+
if (b != this.j) {
|
|
949
|
+
this.b0("Density", enumGetBox(ControlDisplayDensity_$type, b), enumGetBox(ControlDisplayDensity_$type, this.j));
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
enumerable: false,
|
|
953
|
+
configurable: true
|
|
954
|
+
});
|
|
955
|
+
Object.defineProperty(ColorEditor.prototype, "i", {
|
|
956
|
+
get: function () {
|
|
957
|
+
return this.h;
|
|
958
|
+
},
|
|
959
|
+
set: function (a) {
|
|
960
|
+
var b = this.h;
|
|
961
|
+
this.h = a;
|
|
962
|
+
if (b != this.h) {
|
|
963
|
+
this.b0("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, this.h));
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
enumerable: false,
|
|
967
|
+
configurable: true
|
|
968
|
+
});
|
|
969
|
+
Object.defineProperty(ColorEditor.prototype, "p", {
|
|
970
|
+
get: function () {
|
|
971
|
+
return this.m;
|
|
972
|
+
},
|
|
973
|
+
set: function (a) {
|
|
974
|
+
var b = this.m;
|
|
975
|
+
this.m = a;
|
|
976
|
+
if (b != this.m) {
|
|
977
|
+
this.b0("TextStyle", b, this.m);
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
enumerable: false,
|
|
981
|
+
configurable: true
|
|
982
|
+
});
|
|
983
|
+
Object.defineProperty(ColorEditor.prototype, "co", {
|
|
984
|
+
get: function () {
|
|
985
|
+
return this.ck;
|
|
986
|
+
},
|
|
987
|
+
set: function (a) {
|
|
988
|
+
var b = this.ck;
|
|
989
|
+
this.ck = a;
|
|
990
|
+
if (b != this.ck) {
|
|
991
|
+
this.b0("TextColor", b, this.ck);
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
enumerable: false,
|
|
995
|
+
configurable: true
|
|
996
|
+
});
|
|
997
|
+
Object.defineProperty(ColorEditor.prototype, "cm", {
|
|
998
|
+
get: function () {
|
|
999
|
+
return this.ch;
|
|
1000
|
+
},
|
|
1001
|
+
set: function (a) {
|
|
1002
|
+
var b = this.ch;
|
|
1003
|
+
this.ch = a;
|
|
1004
|
+
if (b != this.ch) {
|
|
1005
|
+
this.b0("IconColor", b, this.ch);
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
enumerable: false,
|
|
1009
|
+
configurable: true
|
|
1010
|
+
});
|
|
1011
|
+
Object.defineProperty(ColorEditor.prototype, "am", {
|
|
1012
|
+
get: function () {
|
|
1013
|
+
return this.ac;
|
|
1014
|
+
},
|
|
1015
|
+
set: function (a) {
|
|
1016
|
+
var b = this.ac;
|
|
1017
|
+
this.ac = a;
|
|
1018
|
+
if (b != this.ac) {
|
|
1019
|
+
this.b0("ShowClearButton", b, this.ac);
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
enumerable: false,
|
|
1023
|
+
configurable: true
|
|
1024
|
+
});
|
|
1025
|
+
Object.defineProperty(ColorEditor.prototype, "ag", {
|
|
1026
|
+
get: function () {
|
|
1027
|
+
return this.u;
|
|
1028
|
+
},
|
|
1029
|
+
set: function (a) {
|
|
1030
|
+
var b = this.u;
|
|
1031
|
+
this.u = a;
|
|
1032
|
+
if (b != this.u) {
|
|
1033
|
+
this.b0("AllowTextInput", b, this.u);
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
enumerable: false,
|
|
1037
|
+
configurable: true
|
|
1038
|
+
});
|
|
1039
|
+
Object.defineProperty(ColorEditor.prototype, "ak", {
|
|
1040
|
+
get: function () {
|
|
1041
|
+
return this.ab;
|
|
1042
|
+
},
|
|
1043
|
+
set: function (a) {
|
|
1044
|
+
var b = this.ab;
|
|
1045
|
+
this.ab = a;
|
|
1046
|
+
if (b != this.ab) {
|
|
1047
|
+
this.b0("OpenOnFocus", b, this.ab);
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
enumerable: false,
|
|
1051
|
+
configurable: true
|
|
1052
|
+
});
|
|
1053
|
+
Object.defineProperty(ColorEditor.prototype, "ah", {
|
|
1054
|
+
get: function () {
|
|
1055
|
+
return this.x;
|
|
1056
|
+
},
|
|
1057
|
+
set: function (a) {
|
|
1058
|
+
var b = this.x;
|
|
1059
|
+
this.x = a;
|
|
1060
|
+
if (b != this.x) {
|
|
1061
|
+
this.b0("IsDisabled", b, this.x);
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
enumerable: false,
|
|
1065
|
+
configurable: true
|
|
1066
|
+
});
|
|
1067
|
+
Object.defineProperty(ColorEditor.prototype, "aq", {
|
|
1068
|
+
get: function () {
|
|
1069
|
+
return this.ap;
|
|
1070
|
+
},
|
|
1071
|
+
set: function (a) {
|
|
1072
|
+
var b = this.ap;
|
|
1073
|
+
this.ap = a;
|
|
1074
|
+
if (b != this.ap) {
|
|
1075
|
+
this.b0("TabIndex", b, this.ap);
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
enumerable: false,
|
|
1079
|
+
configurable: true
|
|
1080
|
+
});
|
|
1081
|
+
Object.defineProperty(ColorEditor.prototype, "ai", {
|
|
1082
|
+
get: function () {
|
|
1083
|
+
return this.y;
|
|
1084
|
+
},
|
|
1085
|
+
set: function (a) {
|
|
1086
|
+
var b = this.y;
|
|
1087
|
+
this.y = a;
|
|
1088
|
+
if (b != this.y) {
|
|
1089
|
+
this.b0("IsFixed", b, this.y);
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
enumerable: false,
|
|
1093
|
+
configurable: true
|
|
1094
|
+
});
|
|
1095
|
+
Object.defineProperty(ColorEditor.prototype, "aj", {
|
|
1096
|
+
get: function () {
|
|
1097
|
+
return this.aa;
|
|
1098
|
+
},
|
|
1099
|
+
set: function (a) {
|
|
1100
|
+
var b = this.aa;
|
|
1101
|
+
this.aa = a;
|
|
1102
|
+
if (b != this.aa) {
|
|
1103
|
+
this.b0("OpenAsChild", b, this.aa);
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
enumerable: false,
|
|
1107
|
+
configurable: true
|
|
1108
|
+
});
|
|
1109
|
+
Object.defineProperty(ColorEditor.prototype, "an", {
|
|
1110
|
+
get: function () {
|
|
1111
|
+
return this.ae;
|
|
1112
|
+
},
|
|
1113
|
+
set: function (a) {
|
|
1114
|
+
var b = this.ae;
|
|
1115
|
+
this.ae = a;
|
|
1116
|
+
if (b != this.ae) {
|
|
1117
|
+
this.b0("UseTopLayer", b, this.ae);
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
enumerable: false,
|
|
1121
|
+
configurable: true
|
|
1122
|
+
});
|
|
1123
|
+
ColorEditor.prototype.b0 = function (a, b, c) {
|
|
1124
|
+
if (this.propertyChanged != null) {
|
|
1125
|
+
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
1126
|
+
}
|
|
1127
|
+
this.b6(a, b, c);
|
|
1128
|
+
};
|
|
1129
|
+
ColorEditor.prototype.b6 = function (a, b, c) {
|
|
1130
|
+
switch (a) {
|
|
1131
|
+
case "Density":
|
|
1132
|
+
this.b9();
|
|
1133
|
+
break;
|
|
1134
|
+
case "BaseTheme":
|
|
1135
|
+
this.ca();
|
|
1136
|
+
break;
|
|
1137
|
+
case "Value":
|
|
1138
|
+
this.b1(this.cj, this.value);
|
|
1139
|
+
this.cj = this.value;
|
|
1140
|
+
if (this.d != null && !this.w) {
|
|
1141
|
+
this.d.value = this.value;
|
|
1142
|
+
}
|
|
1143
|
+
break;
|
|
1144
|
+
case "Label":
|
|
1145
|
+
if (this.q != null) {
|
|
1146
|
+
this.q.b5 = this.az;
|
|
1147
|
+
}
|
|
1148
|
+
break;
|
|
1149
|
+
case "TextStyle":
|
|
1150
|
+
this.cf();
|
|
1151
|
+
break;
|
|
1152
|
+
case "ShowClearButton":
|
|
1153
|
+
if (this.q != null) {
|
|
1154
|
+
if (this.q.b7 != "") {
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
break;
|
|
1158
|
+
case "LabelTextColor":
|
|
1159
|
+
case "LabelTextStyle":
|
|
1160
|
+
case "TextColor":
|
|
1161
|
+
case "IconColor":
|
|
1162
|
+
this.cg();
|
|
1163
|
+
break;
|
|
1164
|
+
case "AllowTextInput":
|
|
1165
|
+
if (this.q != null) {
|
|
1166
|
+
this.q.b0 = this.al();
|
|
1167
|
+
}
|
|
1168
|
+
break;
|
|
1169
|
+
case "OpenOnFocus": break;
|
|
1170
|
+
case "IsDisabled":
|
|
1171
|
+
{
|
|
1172
|
+
if (this.q != null) {
|
|
1173
|
+
this.q.b0 = this.al();
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
break;
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
ColorEditor.prototype.al = function () {
|
|
1180
|
+
return this.ah || !this.ag;
|
|
1181
|
+
};
|
|
1182
|
+
ColorEditor.prototype.cg = function () {
|
|
1183
|
+
if (this.q != null) {
|
|
1184
|
+
this.q.ce = this.co;
|
|
1185
|
+
}
|
|
1186
|
+
};
|
|
1187
|
+
ColorEditor.prototype.ce = function () {
|
|
1188
|
+
if (this.q != null) {
|
|
1189
|
+
}
|
|
1190
|
+
};
|
|
1191
|
+
ColorEditor.prototype.cf = function () {
|
|
1192
|
+
if (this.m != null) {
|
|
1193
|
+
this.q.bk = this.m;
|
|
1194
|
+
}
|
|
1195
|
+
};
|
|
1196
|
+
ColorEditor.prototype.be = function () {
|
|
1197
|
+
if (this.ah == true) {
|
|
1198
|
+
return;
|
|
1199
|
+
}
|
|
1200
|
+
if (this.q != null) {
|
|
1201
|
+
this.q.b7 = "";
|
|
1202
|
+
}
|
|
1203
|
+
this.value = BrushUtil.h(0, 0, 0, 0);
|
|
1204
|
+
this.d.ax();
|
|
1205
|
+
this.z = false;
|
|
1206
|
+
};
|
|
1207
|
+
ColorEditor.prototype.by = function () {
|
|
1208
|
+
this.z = true;
|
|
1209
|
+
};
|
|
1210
|
+
ColorEditor.prototype.bz = function () {
|
|
1211
|
+
this.z = false;
|
|
1212
|
+
};
|
|
1213
|
+
ColorEditor.prototype.bo = function () {
|
|
1214
|
+
NativeUIWindow.h(15, runOn(this, this.b4), this.g.h);
|
|
1215
|
+
NativeUIWindow.h(9, runOn(this, this.b3), this.g.h);
|
|
1216
|
+
};
|
|
1217
|
+
ColorEditor.prototype.bs = function () {
|
|
1218
|
+
NativeUIWindow.i(15, runOn(this, this.b4));
|
|
1219
|
+
NativeUIWindow.i(9, runOn(this, this.b3));
|
|
1220
|
+
};
|
|
1221
|
+
ColorEditor.prototype.b3 = function (a) {
|
|
1222
|
+
var b = a;
|
|
1223
|
+
if (this.q != null) {
|
|
1224
|
+
if (this.r.b6 && !this.r.t(b.b) && !this.q.t(b.b)) {
|
|
1225
|
+
this.bf();
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
ColorEditor.prototype.b4 = function (a) {
|
|
1230
|
+
if (this.q != null) {
|
|
1231
|
+
var b = this.q.be();
|
|
1232
|
+
this.r.cd(b);
|
|
1233
|
+
}
|
|
1234
|
+
};
|
|
1235
|
+
ColorEditor.prototype.bg = function () {
|
|
1236
|
+
var _this = this;
|
|
1237
|
+
NativeUIComponent.av(this.g.j(), [12, 2, 7, 0], [2, 2, 2, 2], function (a) {
|
|
1238
|
+
var b = a[0];
|
|
1239
|
+
var c = a[1];
|
|
1240
|
+
var d = a[2];
|
|
1241
|
+
var e = a[3];
|
|
1242
|
+
var f = _this.g.i();
|
|
1243
|
+
_this.g.k(e, f);
|
|
1244
|
+
b.bn(d);
|
|
1245
|
+
d.bn(e);
|
|
1246
|
+
_this.g.l(c);
|
|
1247
|
+
b.cf = BrushUtil.h(255, 255, 255, 255);
|
|
1248
|
+
b.b9 = 150;
|
|
1249
|
+
b.b7 = 8;
|
|
1250
|
+
b.ca = 4;
|
|
1251
|
+
b.b1 = true;
|
|
1252
|
+
_this.q = c;
|
|
1253
|
+
_this.q.c = _this.i;
|
|
1254
|
+
_this.q.bp = _this.k;
|
|
1255
|
+
_this.q.b6 = ColorEditor.a5;
|
|
1256
|
+
_this.q.cc = BrushUtil.h(255, 255, 255, 255);
|
|
1257
|
+
_this.q.cd = BrushUtil.h(255, 0, 0, 0);
|
|
1258
|
+
_this.q.bn = runOn(_this, _this.cc);
|
|
1259
|
+
_this.q.n = runOn(_this, _this.bv);
|
|
1260
|
+
_this.q.o = runOn(_this, _this.bx);
|
|
1261
|
+
_this.q.cb = BrushUtil.h(255, 0, 0, 255);
|
|
1262
|
+
_this.r = b;
|
|
1263
|
+
_this.d = _this.g.c(f);
|
|
1264
|
+
_this.d.value = _this.value;
|
|
1265
|
+
var g = _this.d;
|
|
1266
|
+
g.closed = delegateCombine(g.closed, runOn(_this, _this.bc));
|
|
1267
|
+
var h = _this.d;
|
|
1268
|
+
h.valueChanged = delegateCombine(h.valueChanged, runOn(_this, _this.bd));
|
|
1269
|
+
d.o = runOn(_this, _this.bx);
|
|
1270
|
+
var i = _this.d;
|
|
1271
|
+
i.valueChanged = delegateCombine(i.valueChanged, runOn(_this, _this.bj));
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1274
|
+
ColorEditor.prototype.bd = function (a, b) {
|
|
1275
|
+
if (this.valueChanged != null) {
|
|
1276
|
+
this.valueChanged(this, b);
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
ColorEditor.prototype.bc = function (a, b) {
|
|
1280
|
+
this.bi(a);
|
|
1281
|
+
};
|
|
1282
|
+
ColorEditor.prototype.bx = function (a, b) {
|
|
1283
|
+
if (!this.r.t(b.b) && !this.q.t(b.b) && !(this.q.an == b.b)) {
|
|
1284
|
+
this.bm();
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
ColorEditor.prototype.bv = function (a, b) {
|
|
1288
|
+
this.focus();
|
|
1289
|
+
};
|
|
1290
|
+
ColorEditor.prototype.cc = function (a, b) {
|
|
1291
|
+
this.cd();
|
|
1292
|
+
};
|
|
1293
|
+
ColorEditor.prototype.bj = function (a, b) {
|
|
1294
|
+
this.w = true;
|
|
1295
|
+
this.value = b.newValue;
|
|
1296
|
+
this.w = false;
|
|
1297
|
+
this.b2(b.oldValue, b.newValue);
|
|
1298
|
+
};
|
|
1299
|
+
ColorEditor.prototype.b2 = function (a, b) {
|
|
1300
|
+
if (this.q != null) {
|
|
1301
|
+
this.q.cb = b;
|
|
1302
|
+
}
|
|
1303
|
+
};
|
|
1304
|
+
ColorEditor.prototype.bi = function (a) {
|
|
1305
|
+
if (this.r.b6) {
|
|
1306
|
+
this.v = true;
|
|
1307
|
+
this.bf();
|
|
1308
|
+
}
|
|
1309
|
+
};
|
|
1310
|
+
ColorEditor.prototype.cd = function () {
|
|
1311
|
+
if (this.v == false) {
|
|
1312
|
+
if (this.r.b6) {
|
|
1313
|
+
this.bf();
|
|
1314
|
+
}
|
|
1315
|
+
else {
|
|
1316
|
+
this.b5();
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
else {
|
|
1320
|
+
this.v = false;
|
|
1321
|
+
}
|
|
1322
|
+
};
|
|
1323
|
+
ColorEditor.prototype.b5 = function () {
|
|
1324
|
+
if (this.ah) {
|
|
1325
|
+
return;
|
|
1326
|
+
}
|
|
1327
|
+
if (this.r != null) {
|
|
1328
|
+
var a = this.g.r(false);
|
|
1329
|
+
var b = this.g.s();
|
|
1330
|
+
var c = b.height;
|
|
1331
|
+
var d = 240;
|
|
1332
|
+
var e = a.bottom + d;
|
|
1333
|
+
if (!isNaN_(c) && c < e) {
|
|
1334
|
+
var f = a.top - d;
|
|
1335
|
+
if (f < 0) {
|
|
1336
|
+
this.cb(1, 0);
|
|
1337
|
+
}
|
|
1338
|
+
else {
|
|
1339
|
+
this.cb(2, 0);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
else {
|
|
1343
|
+
this.cb(1, 0);
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
};
|
|
1347
|
+
ColorEditor.prototype.cb = function (a, b) {
|
|
1348
|
+
{
|
|
1349
|
+
var c = this.g.r(true);
|
|
1350
|
+
this.r.ce(c, a, b);
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1353
|
+
ColorEditor.prototype.bf = function () {
|
|
1354
|
+
var _this = this;
|
|
1355
|
+
if (this.r != null) {
|
|
1356
|
+
this.a.executeDelayed(function () { return _this.r.cb(); }, 0);
|
|
1357
|
+
}
|
|
1358
|
+
if (this.d != null) {
|
|
1359
|
+
this.d.bg();
|
|
1360
|
+
}
|
|
1361
|
+
this.v = false;
|
|
1362
|
+
};
|
|
1363
|
+
ColorEditor.prototype.focus = function (a) {
|
|
1364
|
+
var _this = this;
|
|
1365
|
+
if (a === void 0) {
|
|
1366
|
+
a = false;
|
|
1367
|
+
}
|
|
1368
|
+
if (this.q != null) {
|
|
1369
|
+
this.q.a0();
|
|
1370
|
+
}
|
|
1371
|
+
if (!this.r.b6 && this.ak == true) {
|
|
1372
|
+
if (this.v == false) {
|
|
1373
|
+
if (this.z) {
|
|
1374
|
+
return;
|
|
1375
|
+
}
|
|
1376
|
+
if (this.ag == false) {
|
|
1377
|
+
this.b5();
|
|
1378
|
+
this.v = true;
|
|
1379
|
+
this.a.executeDelayed(function () { return _this.bl(); }, 0);
|
|
1380
|
+
}
|
|
1381
|
+
else {
|
|
1382
|
+
if (this.ak == true && this.ad == false) {
|
|
1383
|
+
this.b5();
|
|
1384
|
+
this.v = true;
|
|
1385
|
+
this.a.executeDelayed(function () { return _this.bl(); }, 0);
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
else {
|
|
1390
|
+
this.v = false;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
};
|
|
1394
|
+
ColorEditor.prototype.bm = function () {
|
|
1395
|
+
this.v = false;
|
|
1396
|
+
};
|
|
1397
|
+
ColorEditor.prototype.b8 = function () {
|
|
1398
|
+
if (this.q != null) {
|
|
1399
|
+
this.q.b9();
|
|
1400
|
+
}
|
|
1401
|
+
};
|
|
1402
|
+
ColorEditor.prototype.bl = function () {
|
|
1403
|
+
this.d.a3();
|
|
1404
|
+
};
|
|
1405
|
+
ColorEditor.prototype.bq = function () {
|
|
1406
|
+
var a = new ColorEditorGotFocusEventArgs();
|
|
1407
|
+
this.bu(a);
|
|
1408
|
+
};
|
|
1409
|
+
ColorEditor.prototype.br = function () {
|
|
1410
|
+
var a = new ColorEditorLostFocusEventArgs();
|
|
1411
|
+
this.bw(a);
|
|
1412
|
+
};
|
|
1413
|
+
ColorEditor.prototype.ca = function () {
|
|
1414
|
+
};
|
|
1415
|
+
ColorEditor.prototype.b9 = function () {
|
|
1416
|
+
};
|
|
1417
|
+
ColorEditor.prototype.bu = function (a) {
|
|
1418
|
+
if (null != this.gotFocus) {
|
|
1419
|
+
this.gotFocus(this, a);
|
|
1420
|
+
}
|
|
1421
|
+
};
|
|
1422
|
+
ColorEditor.prototype.bw = function (a) {
|
|
1423
|
+
if (null != this.lostFocus) {
|
|
1424
|
+
this.lostFocus(this, a);
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
ColorEditor.$t = markType(ColorEditor, 'ColorEditor', Base.$, [INotifyPropertyChanged_$type]);
|
|
1428
|
+
ColorEditor.a5 = "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";
|
|
1429
|
+
ColorEditor.n = null;
|
|
1430
|
+
return ColorEditor;
|
|
1431
|
+
}(Base));
|
|
1432
|
+
export { ColorEditor };
|
|
1433
|
+
/**
|
|
1434
|
+
* @hidden
|
|
1435
|
+
*/
|
|
1436
|
+
var ColorEditorPanel = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1437
|
+
__extends(ColorEditorPanel, _super);
|
|
1438
|
+
function ColorEditorPanel() {
|
|
1439
|
+
var _this = _super.call(this) || this;
|
|
1440
|
+
_this.d = null;
|
|
1441
|
+
_this.bv = BrushUtil.h(0, 0, 0, 0);
|
|
1442
|
+
_this.bo = null;
|
|
1443
|
+
_this.bs = BrushUtil.h(0, 0, 0, 0);
|
|
1444
|
+
_this.propertyChanged = null;
|
|
1445
|
+
_this.closed = null;
|
|
1446
|
+
_this.valueChanged = null;
|
|
1447
|
+
_this.valueChanging = null;
|
|
1448
|
+
_this.v = null;
|
|
1449
|
+
_this.bx = BrushUtil.h(255, 0, 0, 255);
|
|
1450
|
+
_this.g = 3;
|
|
1451
|
+
_this.e = 1;
|
|
1452
|
+
_this.bp = BrushUtil.h(0, 255, 255, 255);
|
|
1453
|
+
_this.bt = BrushUtil.h(255, 33, 150, 243);
|
|
1454
|
+
_this.bu = BrushUtil.h(255, 21, 112, 184);
|
|
1455
|
+
_this.bq = BrushUtil.h(76, 33, 150, 243);
|
|
1456
|
+
_this.br = BrushUtil.h(50, 186, 191, 199);
|
|
1457
|
+
_this.bw = BrushUtil.h(255, 24, 29, 31);
|
|
1458
|
+
_this.i = null;
|
|
1459
|
+
_this.n = null;
|
|
1460
|
+
_this.s = null;
|
|
1461
|
+
_this.u = null;
|
|
1462
|
+
_this.m = null;
|
|
1463
|
+
_this.t = null;
|
|
1464
|
+
_this.o = null;
|
|
1465
|
+
_this.r = null;
|
|
1466
|
+
_this.q = null;
|
|
1467
|
+
_this.l = null;
|
|
1468
|
+
_this.k = null;
|
|
1469
|
+
_this.p = null;
|
|
1470
|
+
_this.aa = NaN;
|
|
1471
|
+
_this.z = 1;
|
|
1472
|
+
_this.y = false;
|
|
1473
|
+
_this.x = false;
|
|
1474
|
+
NativeUIInputsFactory.n();
|
|
1475
|
+
NativeUIXInputsFactory.m();
|
|
1476
|
+
_this.bo = BrushUtil.h(0, 0, 0, 0);
|
|
1477
|
+
var a = new ColorEditorPanelView();
|
|
1478
|
+
a.a = _this;
|
|
1479
|
+
_this.d = a;
|
|
1480
|
+
_this.d.bj();
|
|
1481
|
+
return _this;
|
|
1482
|
+
}
|
|
1483
|
+
ColorEditorPanel.prototype.a8 = function () {
|
|
1484
|
+
if (this.closed != null) {
|
|
1485
|
+
this.closed(this, new ColorEditorPanelClosedEventArgs());
|
|
1486
|
+
}
|
|
1487
|
+
};
|
|
1488
|
+
ColorEditorPanel.prototype.bc = function (a) {
|
|
1489
|
+
var b = this.bx;
|
|
1490
|
+
this.bx = a;
|
|
1491
|
+
if (this.valueChanged != null) {
|
|
1492
|
+
this.valueChanged(this, ((function () {
|
|
1493
|
+
var $ret = new ColorEditorPanelSelectedValueChangedEventArgs();
|
|
1494
|
+
$ret.oldValue = b;
|
|
1495
|
+
$ret.newValue = a;
|
|
1496
|
+
return $ret;
|
|
1497
|
+
})()));
|
|
1498
|
+
}
|
|
1499
|
+
this.bv = this.value;
|
|
1500
|
+
};
|
|
1501
|
+
ColorEditorPanel.prototype.notifySizeChanged = function (a) {
|
|
1502
|
+
this.d.bf(a);
|
|
1503
|
+
};
|
|
1504
|
+
ColorEditorPanel.prototype.destroy = function () {
|
|
1505
|
+
this.provideContainer(null);
|
|
1506
|
+
};
|
|
1507
|
+
ColorEditorPanel.prototype.provideContainer = function (a) {
|
|
1508
|
+
this.d.bh(a);
|
|
1509
|
+
};
|
|
1510
|
+
Object.defineProperty(ColorEditorPanel.prototype, "w", {
|
|
1511
|
+
get: function () {
|
|
1512
|
+
if (this.v == null) {
|
|
1513
|
+
this.v = new SRProvider(this.d.aa);
|
|
1514
|
+
this.v.cb("ColorEditorPanel");
|
|
1515
|
+
}
|
|
1516
|
+
return this.v;
|
|
1517
|
+
},
|
|
1518
|
+
enumerable: false,
|
|
1519
|
+
configurable: true
|
|
1520
|
+
});
|
|
1521
|
+
Object.defineProperty(ColorEditorPanel.prototype, "value", {
|
|
1522
|
+
get: function () {
|
|
1523
|
+
return this.bx;
|
|
1524
|
+
},
|
|
1525
|
+
set: function (a) {
|
|
1526
|
+
var b = this.bx;
|
|
1527
|
+
this.bs = b;
|
|
1528
|
+
this.bx = a;
|
|
1529
|
+
if (b != this.bx) {
|
|
1530
|
+
this.bb("Value", b, this.bx);
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
enumerable: false,
|
|
1534
|
+
configurable: true
|
|
1535
|
+
});
|
|
1536
|
+
Object.defineProperty(ColorEditorPanel.prototype, "h", {
|
|
1537
|
+
get: function () {
|
|
1538
|
+
return this.g;
|
|
1539
|
+
},
|
|
1540
|
+
set: function (a) {
|
|
1541
|
+
var b = this.g;
|
|
1542
|
+
this.g = a;
|
|
1543
|
+
if (b != this.g) {
|
|
1544
|
+
this.bb("Density", enumGetBox(ControlDisplayDensity_$type, b), enumGetBox(ControlDisplayDensity_$type, this.g));
|
|
1545
|
+
}
|
|
1546
|
+
},
|
|
1547
|
+
enumerable: false,
|
|
1548
|
+
configurable: true
|
|
1549
|
+
});
|
|
1550
|
+
Object.defineProperty(ColorEditorPanel.prototype, "f", {
|
|
1551
|
+
get: function () {
|
|
1552
|
+
return this.e;
|
|
1553
|
+
},
|
|
1554
|
+
set: function (a) {
|
|
1555
|
+
var b = this.e;
|
|
1556
|
+
this.e = a;
|
|
1557
|
+
if (b != this.e) {
|
|
1558
|
+
this.bb("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, this.e));
|
|
1559
|
+
}
|
|
1560
|
+
},
|
|
1561
|
+
enumerable: false,
|
|
1562
|
+
configurable: true
|
|
1563
|
+
});
|
|
1564
|
+
Object.defineProperty(ColorEditorPanel.prototype, "by", {
|
|
1565
|
+
get: function () {
|
|
1566
|
+
return this.bp;
|
|
1567
|
+
},
|
|
1568
|
+
set: function (a) {
|
|
1569
|
+
var b = this.bp;
|
|
1570
|
+
this.bp = a;
|
|
1571
|
+
if (b != this.bp) {
|
|
1572
|
+
this.bb("BackgroundColor", b, this.bp);
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
enumerable: false,
|
|
1576
|
+
configurable: true
|
|
1577
|
+
});
|
|
1578
|
+
Object.defineProperty(ColorEditorPanel.prototype, "b1", {
|
|
1579
|
+
get: function () {
|
|
1580
|
+
return this.bt;
|
|
1581
|
+
},
|
|
1582
|
+
set: function (a) {
|
|
1583
|
+
var b = this.bt;
|
|
1584
|
+
this.bt = a;
|
|
1585
|
+
if (b != this.bt) {
|
|
1586
|
+
this.bb("SelectedColorBorderColor", b, this.bt);
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
enumerable: false,
|
|
1590
|
+
configurable: true
|
|
1591
|
+
});
|
|
1592
|
+
Object.defineProperty(ColorEditorPanel.prototype, "b2", {
|
|
1593
|
+
get: function () {
|
|
1594
|
+
return this.bu;
|
|
1595
|
+
},
|
|
1596
|
+
set: function (a) {
|
|
1597
|
+
var b = this.bu;
|
|
1598
|
+
this.bu = a;
|
|
1599
|
+
if (b != this.bu) {
|
|
1600
|
+
this.bb("SelectedFocusColorBorderColor", b, this.bu);
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1603
|
+
enumerable: false,
|
|
1604
|
+
configurable: true
|
|
1605
|
+
});
|
|
1606
|
+
Object.defineProperty(ColorEditorPanel.prototype, "bz", {
|
|
1607
|
+
get: function () {
|
|
1608
|
+
return this.bq;
|
|
1609
|
+
},
|
|
1610
|
+
set: function (a) {
|
|
1611
|
+
var b = this.bq;
|
|
1612
|
+
this.bq = a;
|
|
1613
|
+
if (b != this.bq) {
|
|
1614
|
+
this.bb("FocusColorBorderColor", b, this.bq);
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
enumerable: false,
|
|
1618
|
+
configurable: true
|
|
1619
|
+
});
|
|
1620
|
+
Object.defineProperty(ColorEditorPanel.prototype, "b0", {
|
|
1621
|
+
get: function () {
|
|
1622
|
+
return this.br;
|
|
1623
|
+
},
|
|
1624
|
+
set: function (a) {
|
|
1625
|
+
var b = this.br;
|
|
1626
|
+
this.br = a;
|
|
1627
|
+
if (b != this.br) {
|
|
1628
|
+
this.bb("HoverBackgroundColor", b, this.br);
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
enumerable: false,
|
|
1632
|
+
configurable: true
|
|
1633
|
+
});
|
|
1634
|
+
Object.defineProperty(ColorEditorPanel.prototype, "b3", {
|
|
1635
|
+
get: function () {
|
|
1636
|
+
return this.bw;
|
|
1637
|
+
},
|
|
1638
|
+
set: function (a) {
|
|
1639
|
+
var b = this.bw;
|
|
1640
|
+
this.bw = a;
|
|
1641
|
+
if (b != this.bw) {
|
|
1642
|
+
this.bb("TextColor", b, this.bw);
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1645
|
+
enumerable: false,
|
|
1646
|
+
configurable: true
|
|
1647
|
+
});
|
|
1648
|
+
Object.defineProperty(ColorEditorPanel.prototype, "j", {
|
|
1649
|
+
get: function () {
|
|
1650
|
+
return this.i;
|
|
1651
|
+
},
|
|
1652
|
+
set: function (a) {
|
|
1653
|
+
var b = this.i;
|
|
1654
|
+
this.i = a;
|
|
1655
|
+
if (b != this.i) {
|
|
1656
|
+
this.bb("TextStyle", b, this.i);
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
enumerable: false,
|
|
1660
|
+
configurable: true
|
|
1661
|
+
});
|
|
1662
|
+
Object.defineProperty(ColorEditorPanel.prototype, "ae", {
|
|
1663
|
+
get: function () {
|
|
1664
|
+
return this.aa;
|
|
1665
|
+
},
|
|
1666
|
+
set: function (a) {
|
|
1667
|
+
var b = this.aa;
|
|
1668
|
+
this.aa = a;
|
|
1669
|
+
if (b != this.aa) {
|
|
1670
|
+
this.bb("PixelScalingRatio", b, a);
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
enumerable: false,
|
|
1674
|
+
configurable: true
|
|
1675
|
+
});
|
|
1676
|
+
Object.defineProperty(ColorEditorPanel.prototype, "ab", {
|
|
1677
|
+
get: function () {
|
|
1678
|
+
return this.z;
|
|
1679
|
+
},
|
|
1680
|
+
set: function (a) {
|
|
1681
|
+
var b = this.z;
|
|
1682
|
+
this.z = a;
|
|
1683
|
+
if (b != this.z) {
|
|
1684
|
+
this.bb("ActualPixelScalingRatio", b, a);
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1687
|
+
enumerable: false,
|
|
1688
|
+
configurable: true
|
|
1689
|
+
});
|
|
1690
|
+
ColorEditorPanel.prototype.bb = function (a, b, c) {
|
|
1691
|
+
if (this.propertyChanged != null) {
|
|
1692
|
+
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
1693
|
+
}
|
|
1694
|
+
this.bd(a, b, c);
|
|
1695
|
+
};
|
|
1696
|
+
ColorEditorPanel.prototype.bd = function (a, b, c) {
|
|
1697
|
+
switch (a) {
|
|
1698
|
+
case "Density":
|
|
1699
|
+
this.bi();
|
|
1700
|
+
break;
|
|
1701
|
+
case "BaseTheme":
|
|
1702
|
+
this.bj();
|
|
1703
|
+
break;
|
|
1704
|
+
case "Value":
|
|
1705
|
+
this.bs = this.value;
|
|
1706
|
+
this.bv = this.value;
|
|
1707
|
+
if (b != null && c != null) {
|
|
1708
|
+
if (BrushUtil.d(b, c)) {
|
|
1709
|
+
break;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
this.bf();
|
|
1713
|
+
this.bc(this.value);
|
|
1714
|
+
break;
|
|
1715
|
+
case "TextColor":
|
|
1716
|
+
case "BackgroundColor":
|
|
1717
|
+
case "FocusColorBorderColor":
|
|
1718
|
+
case "SelectedFocusColorBorderColor":
|
|
1719
|
+
case "SelectedColorBorderColor":
|
|
1720
|
+
case "HoverBackgroundColor":
|
|
1721
|
+
this.bk();
|
|
1722
|
+
break;
|
|
1723
|
+
case "TextStyle":
|
|
1724
|
+
this.bl();
|
|
1725
|
+
break;
|
|
1726
|
+
case "PixelScalingRatio":
|
|
1727
|
+
if (!isNaN_(c)) {
|
|
1728
|
+
this.ab = c;
|
|
1729
|
+
}
|
|
1730
|
+
break;
|
|
1731
|
+
case "ActualPixelScalingRatio":
|
|
1732
|
+
if (this.d != null) {
|
|
1733
|
+
this.d.bk();
|
|
1734
|
+
}
|
|
1735
|
+
break;
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
ColorEditorPanel.prototype.a4 = function () {
|
|
1739
|
+
var _this = this;
|
|
1740
|
+
NativeUIContent.av(this.d.a7(), [7, 7, 0, 5, 0, 5, 0, 5, 2, 7, 1, 1, 7, 2, 7], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], function (a) {
|
|
1741
|
+
var b = a[0];
|
|
1742
|
+
var c = a[1];
|
|
1743
|
+
var d = a[2];
|
|
1744
|
+
var e = a[3];
|
|
1745
|
+
var f = a[4];
|
|
1746
|
+
var g = a[5];
|
|
1747
|
+
var h = a[6];
|
|
1748
|
+
var i = a[7];
|
|
1749
|
+
var j = a[8];
|
|
1750
|
+
var k = a[9];
|
|
1751
|
+
var l = a[10];
|
|
1752
|
+
var m = a[11];
|
|
1753
|
+
var n = a[12];
|
|
1754
|
+
var o = a[13];
|
|
1755
|
+
var p = a[14];
|
|
1756
|
+
e.bk = 2;
|
|
1757
|
+
i.bk = 0;
|
|
1758
|
+
g.bk = 1;
|
|
1759
|
+
e.bw = BrushUtil.h(0, 0, 0, 0);
|
|
1760
|
+
i.bw = BrushUtil.h(0, 0, 0, 0);
|
|
1761
|
+
g.bw = BrushUtil.h(0, 0, 0, 0);
|
|
1762
|
+
g.bh = new Thickness(1, 0, 5, 5, 0);
|
|
1763
|
+
f.bh = new Thickness(1, 0, 5, 5, 0);
|
|
1764
|
+
l.by = "Ok";
|
|
1765
|
+
l.c = _this.f;
|
|
1766
|
+
m.by = "Cancel";
|
|
1767
|
+
m.c = _this.f;
|
|
1768
|
+
i.bh = new Thickness(1, 5, 0, 5, 2);
|
|
1769
|
+
h.bh = new Thickness(1, 5, 0, 5, 2);
|
|
1770
|
+
e.bh = new Thickness(1, 5, 5, 5, 0);
|
|
1771
|
+
d.bh = new Thickness(1, 5, 5, 5, 0);
|
|
1772
|
+
p.bh = new Thickness(1, 5, 16, 0, 11);
|
|
1773
|
+
p.a8 = BrushUtil.h(255, 255, 0, 0);
|
|
1774
|
+
c.cc(p, 0);
|
|
1775
|
+
c.ca(p, 0);
|
|
1776
|
+
c.bn(p);
|
|
1777
|
+
n.b2(0, 2, 1);
|
|
1778
|
+
n.b2(1, 2, 1);
|
|
1779
|
+
n.bh = new Thickness(1, 5, 2, 5, 2);
|
|
1780
|
+
n.ca(j, 0);
|
|
1781
|
+
j.bh = new Thickness(1, 0, 0, 2, 0);
|
|
1782
|
+
j.bu = 1;
|
|
1783
|
+
j.bp = _this.h;
|
|
1784
|
+
j.c = _this.f;
|
|
1785
|
+
j.b5 = "rgba";
|
|
1786
|
+
o.bh = new Thickness(1, 0, 0, 2, 0);
|
|
1787
|
+
o.bu = 1;
|
|
1788
|
+
o.bp = _this.h;
|
|
1789
|
+
o.c = _this.f;
|
|
1790
|
+
o.b5 = "hex";
|
|
1791
|
+
n.ca(o, 1);
|
|
1792
|
+
n.bn(j);
|
|
1793
|
+
n.bn(o);
|
|
1794
|
+
l.bh = new Thickness(1, 5, 2, 5, 2);
|
|
1795
|
+
m.bh = new Thickness(1, 5, 2, 5, 2);
|
|
1796
|
+
l.bp = _this.h;
|
|
1797
|
+
m.bp = _this.h;
|
|
1798
|
+
l.bm = runOn(_this, _this.a6);
|
|
1799
|
+
m.bm = runOn(_this, _this.bh);
|
|
1800
|
+
b.b4(0, 1, 175);
|
|
1801
|
+
b.b4(1, 0, 0);
|
|
1802
|
+
b.b4(2, 0, 0);
|
|
1803
|
+
b.b4(3, 0, 0);
|
|
1804
|
+
b.b2(0, 1, 90);
|
|
1805
|
+
b.b2(1, 1, 175);
|
|
1806
|
+
b.b2(2, 1, 25);
|
|
1807
|
+
b.cc(c, 0);
|
|
1808
|
+
b.ca(c, 0);
|
|
1809
|
+
b.cc(d, 0);
|
|
1810
|
+
b.ca(d, 1);
|
|
1811
|
+
b.cc(e, 0);
|
|
1812
|
+
b.ca(e, 1);
|
|
1813
|
+
b.cc(f, 0);
|
|
1814
|
+
b.ca(f, 3);
|
|
1815
|
+
b.cc(g, 0);
|
|
1816
|
+
b.ca(g, 3);
|
|
1817
|
+
b.cc(h, 1);
|
|
1818
|
+
b.ca(h, 0);
|
|
1819
|
+
b.cb(h, 3);
|
|
1820
|
+
b.cc(i, 1);
|
|
1821
|
+
b.ca(i, 0);
|
|
1822
|
+
b.cb(i, 3);
|
|
1823
|
+
b.cc(n, 2);
|
|
1824
|
+
b.ca(n, 0);
|
|
1825
|
+
b.cb(n, 3);
|
|
1826
|
+
b.cc(k, 3);
|
|
1827
|
+
b.ca(k, 0);
|
|
1828
|
+
b.cb(k, 3);
|
|
1829
|
+
k.b2(0, 2, 1);
|
|
1830
|
+
k.b2(1, 2, 1);
|
|
1831
|
+
k.ca(l, 0);
|
|
1832
|
+
k.ca(m, 1);
|
|
1833
|
+
k.bn(l);
|
|
1834
|
+
k.bn(m);
|
|
1835
|
+
b.bn(c);
|
|
1836
|
+
b.bn(d);
|
|
1837
|
+
b.bn(e);
|
|
1838
|
+
b.bn(f);
|
|
1839
|
+
b.bn(g);
|
|
1840
|
+
b.bn(h);
|
|
1841
|
+
b.bn(i);
|
|
1842
|
+
b.bn(n);
|
|
1843
|
+
b.bn(k);
|
|
1844
|
+
_this.d.a8(b);
|
|
1845
|
+
_this.n = b;
|
|
1846
|
+
_this.n.bw = true;
|
|
1847
|
+
_this.s = i;
|
|
1848
|
+
_this.u = g;
|
|
1849
|
+
_this.m = f;
|
|
1850
|
+
_this.t = e;
|
|
1851
|
+
_this.o = p;
|
|
1852
|
+
_this.r = j;
|
|
1853
|
+
_this.q = o;
|
|
1854
|
+
_this.s.bq = 0;
|
|
1855
|
+
_this.s.bp = 360;
|
|
1856
|
+
_this.s.by = BrushUtil.h(255, 255, 255, 255);
|
|
1857
|
+
_this.s.bz = BrushUtil.h(255, 255, 255, 255);
|
|
1858
|
+
_this.u.bq = 0;
|
|
1859
|
+
_this.u.bp = 1;
|
|
1860
|
+
_this.t.by = BrushUtil.h(255, 155, 155, 155);
|
|
1861
|
+
_this.t.bz = BrushUtil.h(255, 255, 255, 255);
|
|
1862
|
+
_this.t.bq = 0;
|
|
1863
|
+
_this.t.bp = 1;
|
|
1864
|
+
_this.t.bu = 0;
|
|
1865
|
+
_this.t.bt = 1;
|
|
1866
|
+
_this.s.bo = runOn(_this, _this.au);
|
|
1867
|
+
_this.s.bn = runOn(_this, _this.au);
|
|
1868
|
+
_this.u.bo = runOn(_this, _this.aw);
|
|
1869
|
+
_this.u.bn = runOn(_this, _this.aw);
|
|
1870
|
+
_this.t.bo = runOn(_this, _this.av);
|
|
1871
|
+
_this.t.bn = runOn(_this, _this.av);
|
|
1872
|
+
_this.l = d;
|
|
1873
|
+
_this.k = h;
|
|
1874
|
+
_this.p = c;
|
|
1875
|
+
_this.ba();
|
|
1876
|
+
});
|
|
1877
|
+
};
|
|
1878
|
+
ColorEditorPanel.prototype.bh = function (a, b) {
|
|
1879
|
+
this.value = this.bs;
|
|
1880
|
+
this.a8();
|
|
1881
|
+
};
|
|
1882
|
+
ColorEditorPanel.prototype.a6 = function (a, b) {
|
|
1883
|
+
var _this = this;
|
|
1884
|
+
this.bs = this.value;
|
|
1885
|
+
if (this.valueChanged != null) {
|
|
1886
|
+
this.valueChanged(this, ((function () {
|
|
1887
|
+
var $ret = new ColorEditorPanelSelectedValueChangedEventArgs();
|
|
1888
|
+
$ret.oldValue = _this.bs;
|
|
1889
|
+
$ret.newValue = _this.value;
|
|
1890
|
+
return $ret;
|
|
1891
|
+
})()));
|
|
1892
|
+
}
|
|
1893
|
+
this.a8();
|
|
1894
|
+
};
|
|
1895
|
+
ColorEditorPanel.prototype.av = function (a, b) {
|
|
1896
|
+
this.bn();
|
|
1897
|
+
};
|
|
1898
|
+
ColorEditorPanel.prototype.aw = function (a, b) {
|
|
1899
|
+
this.bn();
|
|
1900
|
+
};
|
|
1901
|
+
ColorEditorPanel.prototype.bn = function () {
|
|
1902
|
+
if (this.y) {
|
|
1903
|
+
return;
|
|
1904
|
+
}
|
|
1905
|
+
var a = Color.u(0, 0, 0, 0);
|
|
1906
|
+
var b = Color.u(255, 255, 0, 0);
|
|
1907
|
+
if (this.s != null) {
|
|
1908
|
+
var c = this.s.bs;
|
|
1909
|
+
var d = this.t.bs;
|
|
1910
|
+
var e = 1 - this.t.bv;
|
|
1911
|
+
var f = 1 - this.u.bs;
|
|
1912
|
+
b = ColorUtil.r(1, c, 1, 0.5);
|
|
1913
|
+
a = ColorUtil.r(f, c, d, e);
|
|
1914
|
+
this.s.bx = BrushUtil.h(b.l, b.o, b.n, b.m);
|
|
1915
|
+
this.t.bx = BrushUtil.h(a.l, a.o, a.n, a.m);
|
|
1916
|
+
this.o.a8 = BrushUtil.h(a.l, a.o, a.n, a.m);
|
|
1917
|
+
this.d.bm(this.s.bs);
|
|
1918
|
+
this.d.bn(0);
|
|
1919
|
+
this.d.bo(this.s.bs, this.t.bs, 1 - this.t.bv);
|
|
1920
|
+
}
|
|
1921
|
+
if (this.r != null) {
|
|
1922
|
+
var g = a.o + ", " + a.n + ", " + a.m + ", " + Math.round((a.l / 255) * 1000) / 1000;
|
|
1923
|
+
this.r.b7 = g;
|
|
1924
|
+
}
|
|
1925
|
+
if (this.q != null) {
|
|
1926
|
+
var h = ColorUtil.k(a, false);
|
|
1927
|
+
this.q.b7 = h;
|
|
1928
|
+
}
|
|
1929
|
+
this.bx = BrushUtil.h(a.l, a.o, a.n, a.m);
|
|
1930
|
+
this.bc(this.value);
|
|
1931
|
+
};
|
|
1932
|
+
ColorEditorPanel.prototype.au = function (a, b) {
|
|
1933
|
+
this.bn();
|
|
1934
|
+
};
|
|
1935
|
+
ColorEditorPanel.prototype.bk = function () {
|
|
1936
|
+
};
|
|
1937
|
+
ColorEditorPanel.prototype.bl = function () {
|
|
1938
|
+
};
|
|
1939
|
+
ColorEditorPanel.prototype.a3 = function () {
|
|
1940
|
+
this.n.az();
|
|
1941
|
+
};
|
|
1942
|
+
ColorEditorPanel.prototype.onAttachedToUI = function () {
|
|
1943
|
+
this.d.bg();
|
|
1944
|
+
};
|
|
1945
|
+
ColorEditorPanel.prototype.onDetachedFromUI = function () {
|
|
1946
|
+
this.d.bi();
|
|
1947
|
+
};
|
|
1948
|
+
ColorEditorPanel.prototype.bj = function () {
|
|
1949
|
+
};
|
|
1950
|
+
ColorEditorPanel.prototype.bi = function () {
|
|
1951
|
+
};
|
|
1952
|
+
ColorEditorPanel.prototype.ax = function () {
|
|
1953
|
+
this.value = BrushUtil.h(0, 0, 0, 0);
|
|
1954
|
+
};
|
|
1955
|
+
Object.defineProperty(ColorEditorPanel.prototype, "b5", {
|
|
1956
|
+
get: function () {
|
|
1957
|
+
var a = ColorUtil.p(this.value);
|
|
1958
|
+
if (a.c) {
|
|
1959
|
+
return a.d;
|
|
1960
|
+
}
|
|
1961
|
+
return Color.u(255, 0, 0, 255);
|
|
1962
|
+
},
|
|
1963
|
+
enumerable: false,
|
|
1964
|
+
configurable: true
|
|
1965
|
+
});
|
|
1966
|
+
ColorEditorPanel.prototype.bf = function () {
|
|
1967
|
+
var a = this.b5;
|
|
1968
|
+
var b = ColorUtil.a(a);
|
|
1969
|
+
this.y = true;
|
|
1970
|
+
this.s.bs = b[1] == -1 ? 0 : b[1];
|
|
1971
|
+
this.u.bs = 1 - b[0];
|
|
1972
|
+
this.t.bs = b[2];
|
|
1973
|
+
this.t.bv = 1 - b[3];
|
|
1974
|
+
this.y = false;
|
|
1975
|
+
if (this.x) {
|
|
1976
|
+
this.bn();
|
|
1977
|
+
}
|
|
1978
|
+
};
|
|
1979
|
+
ColorEditorPanel.prototype.bm = function () {
|
|
1980
|
+
};
|
|
1981
|
+
ColorEditorPanel.prototype.bg = function () {
|
|
1982
|
+
};
|
|
1983
|
+
ColorEditorPanel.prototype.ba = function () {
|
|
1984
|
+
this.x = true;
|
|
1985
|
+
this.d.ba(this.l);
|
|
1986
|
+
this.d.a9(this.k);
|
|
1987
|
+
this.d.bb(this.p);
|
|
1988
|
+
this.d.bc(this.m);
|
|
1989
|
+
this.bf();
|
|
1990
|
+
this.bn();
|
|
1991
|
+
};
|
|
1992
|
+
ColorEditorPanel.prototype.a0 = function (a, b, c) {
|
|
1993
|
+
var d = this.s.bs;
|
|
1994
|
+
var e = 1;
|
|
1995
|
+
var f = 255;
|
|
1996
|
+
for (var g = 0; g < c; g++) {
|
|
1997
|
+
var h = g / c;
|
|
1998
|
+
for (var i = 0; i < b; i++) {
|
|
1999
|
+
var j = i / b;
|
|
2000
|
+
var k = j;
|
|
2001
|
+
var l = 1 - h;
|
|
2002
|
+
var m = void 0;
|
|
2003
|
+
var n = void 0;
|
|
2004
|
+
var o = void 0;
|
|
2005
|
+
if (k == 0) {
|
|
2006
|
+
m = l;
|
|
2007
|
+
n = l;
|
|
2008
|
+
o = l;
|
|
2009
|
+
}
|
|
2010
|
+
else {
|
|
2011
|
+
var p = l < 0.5 ? l * (1 + k) : l + k - (l * k);
|
|
2012
|
+
var q = 2 * l - p;
|
|
2013
|
+
var r = d / 360;
|
|
2014
|
+
var s = r + 1 / 3;
|
|
2015
|
+
s = s < 0 ? s + 1 : s > 1 ? s - 1 : s;
|
|
2016
|
+
if (s < 1 / 6) {
|
|
2017
|
+
m = q + ((p - q) * 6 * s);
|
|
2018
|
+
}
|
|
2019
|
+
else if (s < 1 / 2) {
|
|
2020
|
+
m = p;
|
|
2021
|
+
}
|
|
2022
|
+
else if (s < 2 / 3) {
|
|
2023
|
+
m = q + ((p - q) * 6 * (2 / 3 - s));
|
|
2024
|
+
}
|
|
2025
|
+
else {
|
|
2026
|
+
m = q;
|
|
2027
|
+
}
|
|
2028
|
+
s = r;
|
|
2029
|
+
s = s < 0 ? s + 1 : s > 1 ? s - 1 : s;
|
|
2030
|
+
if (s < 1 / 6) {
|
|
2031
|
+
n = q + ((p - q) * 6 * s);
|
|
2032
|
+
}
|
|
2033
|
+
else if (s < 1 / 2) {
|
|
2034
|
+
n = p;
|
|
2035
|
+
}
|
|
2036
|
+
else if (s < 2 / 3) {
|
|
2037
|
+
n = q + ((p - q) * 6 * (2 / 3 - s));
|
|
2038
|
+
}
|
|
2039
|
+
else {
|
|
2040
|
+
n = q;
|
|
2041
|
+
}
|
|
2042
|
+
s = r - 1 / 3;
|
|
2043
|
+
s = s < 0 ? s + 1 : s > 1 ? s - 1 : s;
|
|
2044
|
+
if (s < 1 / 6) {
|
|
2045
|
+
o = q + ((p - q) * 6 * s);
|
|
2046
|
+
}
|
|
2047
|
+
else if (s < 1 / 2) {
|
|
2048
|
+
o = p;
|
|
2049
|
+
}
|
|
2050
|
+
else if (s < 2 / 3) {
|
|
2051
|
+
o = q + ((p - q) * 6 * (2 / 3 - s));
|
|
2052
|
+
}
|
|
2053
|
+
else {
|
|
2054
|
+
o = q;
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
m = m * 255;
|
|
2058
|
+
n = n * 255;
|
|
2059
|
+
o = o * 255;
|
|
2060
|
+
var t = truncate((m * e));
|
|
2061
|
+
var u = truncate((n * e));
|
|
2062
|
+
var v = truncate((o * e));
|
|
2063
|
+
var w = ((g * b) + i) * 4;
|
|
2064
|
+
a[w + 0] = t;
|
|
2065
|
+
a[w + 1] = u;
|
|
2066
|
+
a[w + 2] = v;
|
|
2067
|
+
a[w + 3] = f;
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
};
|
|
2071
|
+
ColorEditorPanel.prototype.az = function (a, b, c) {
|
|
2072
|
+
var d = 1;
|
|
2073
|
+
var e = 255;
|
|
2074
|
+
for (var f = 0; f < c; f++) {
|
|
2075
|
+
var g = f / c;
|
|
2076
|
+
for (var h = 0; h < b; h++) {
|
|
2077
|
+
var i = h / b;
|
|
2078
|
+
var j = 1;
|
|
2079
|
+
var k = 0.5;
|
|
2080
|
+
var l = 360 * i;
|
|
2081
|
+
var m = void 0;
|
|
2082
|
+
var n = void 0;
|
|
2083
|
+
var o = void 0;
|
|
2084
|
+
if (j == 0) {
|
|
2085
|
+
m = k;
|
|
2086
|
+
n = k;
|
|
2087
|
+
o = k;
|
|
2088
|
+
}
|
|
2089
|
+
else {
|
|
2090
|
+
var p = k < 0.5 ? k * (1 + j) : k + j - (k * j);
|
|
2091
|
+
var q = 2 * k - p;
|
|
2092
|
+
var r = l / 360;
|
|
2093
|
+
var s = r + 1 / 3;
|
|
2094
|
+
s = s < 0 ? s + 1 : s > 1 ? s - 1 : s;
|
|
2095
|
+
if (s < 1 / 6) {
|
|
2096
|
+
m = q + ((p - q) * 6 * s);
|
|
2097
|
+
}
|
|
2098
|
+
else if (s < 1 / 2) {
|
|
2099
|
+
m = p;
|
|
2100
|
+
}
|
|
2101
|
+
else if (s < 2 / 3) {
|
|
2102
|
+
m = q + ((p - q) * 6 * (2 / 3 - s));
|
|
2103
|
+
}
|
|
2104
|
+
else {
|
|
2105
|
+
m = q;
|
|
2106
|
+
}
|
|
2107
|
+
s = r;
|
|
2108
|
+
s = s < 0 ? s + 1 : s > 1 ? s - 1 : s;
|
|
2109
|
+
if (s < 1 / 6) {
|
|
2110
|
+
n = q + ((p - q) * 6 * s);
|
|
2111
|
+
}
|
|
2112
|
+
else if (s < 1 / 2) {
|
|
2113
|
+
n = p;
|
|
2114
|
+
}
|
|
2115
|
+
else if (s < 2 / 3) {
|
|
2116
|
+
n = q + ((p - q) * 6 * (2 / 3 - s));
|
|
2117
|
+
}
|
|
2118
|
+
else {
|
|
2119
|
+
n = q;
|
|
2120
|
+
}
|
|
2121
|
+
s = r - 1 / 3;
|
|
2122
|
+
s = s < 0 ? s + 1 : s > 1 ? s - 1 : s;
|
|
2123
|
+
if (s < 1 / 6) {
|
|
2124
|
+
o = q + ((p - q) * 6 * s);
|
|
2125
|
+
}
|
|
2126
|
+
else if (s < 1 / 2) {
|
|
2127
|
+
o = p;
|
|
2128
|
+
}
|
|
2129
|
+
else if (s < 2 / 3) {
|
|
2130
|
+
o = q + ((p - q) * 6 * (2 / 3 - s));
|
|
2131
|
+
}
|
|
2132
|
+
else {
|
|
2133
|
+
o = q;
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
m = m * 255;
|
|
2137
|
+
n = n * 255;
|
|
2138
|
+
o = o * 255;
|
|
2139
|
+
var t = truncate((m * d));
|
|
2140
|
+
var u = truncate((n * d));
|
|
2141
|
+
var v = truncate((o * d));
|
|
2142
|
+
var w = ((f * b) + h) * 4;
|
|
2143
|
+
a[w + 0] = t;
|
|
2144
|
+
a[w + 1] = u;
|
|
2145
|
+
a[w + 2] = v;
|
|
2146
|
+
a[w + 3] = e;
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
};
|
|
2150
|
+
ColorEditorPanel.prototype.ad = function () {
|
|
2151
|
+
if (this.s != null) {
|
|
2152
|
+
return this.s.bs;
|
|
2153
|
+
}
|
|
2154
|
+
return 0;
|
|
2155
|
+
};
|
|
2156
|
+
ColorEditorPanel.prototype.a1 = function (a, b, c) {
|
|
2157
|
+
var d = this.s.bs;
|
|
2158
|
+
var e = 1;
|
|
2159
|
+
var f = 255;
|
|
2160
|
+
for (var g = 0; g < c; g++) {
|
|
2161
|
+
var h = g / c;
|
|
2162
|
+
for (var i = 0; i < b; i++) {
|
|
2163
|
+
var j = i / b;
|
|
2164
|
+
var k = ((intDivide(i, 10)) + (intDivide(g, 10))) % 2 == 0;
|
|
2165
|
+
var l = 100;
|
|
2166
|
+
var m = 100;
|
|
2167
|
+
var n = 100;
|
|
2168
|
+
if (!k) {
|
|
2169
|
+
l = 255;
|
|
2170
|
+
m = 255;
|
|
2171
|
+
n = 255;
|
|
2172
|
+
}
|
|
2173
|
+
var o = truncate((l));
|
|
2174
|
+
var p = truncate((m));
|
|
2175
|
+
var q = truncate((n));
|
|
2176
|
+
if (o > 255) {
|
|
2177
|
+
o = 255;
|
|
2178
|
+
}
|
|
2179
|
+
if (p > 255) {
|
|
2180
|
+
p = 255;
|
|
2181
|
+
}
|
|
2182
|
+
if (q > 255) {
|
|
2183
|
+
q = 255;
|
|
2184
|
+
}
|
|
2185
|
+
var r = ((g * b) + i) * 4;
|
|
2186
|
+
a[r + 0] = o;
|
|
2187
|
+
a[r + 1] = p;
|
|
2188
|
+
a[r + 2] = q;
|
|
2189
|
+
a[r + 3] = f;
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
};
|
|
2193
|
+
ColorEditorPanel.prototype.a2 = function (a, b, c) {
|
|
2194
|
+
var d = this.s.bs;
|
|
2195
|
+
var e = 1;
|
|
2196
|
+
var f = 255;
|
|
2197
|
+
var g = 1 - this.t.bv;
|
|
2198
|
+
var h = this.t.bs;
|
|
2199
|
+
for (var i = 0; i < c; i++) {
|
|
2200
|
+
var j = i / c;
|
|
2201
|
+
for (var k = 0; k < b; k++) {
|
|
2202
|
+
var l = k / b;
|
|
2203
|
+
var m = h;
|
|
2204
|
+
var n = g;
|
|
2205
|
+
var o = void 0;
|
|
2206
|
+
var p = void 0;
|
|
2207
|
+
var q = void 0;
|
|
2208
|
+
if (m == 0) {
|
|
2209
|
+
o = n;
|
|
2210
|
+
p = n;
|
|
2211
|
+
q = n;
|
|
2212
|
+
}
|
|
2213
|
+
else {
|
|
2214
|
+
var r = n < 0.5 ? n * (1 + m) : n + m - (n * m);
|
|
2215
|
+
var s = 2 * n - r;
|
|
2216
|
+
var t = d / 360;
|
|
2217
|
+
var u = t + 1 / 3;
|
|
2218
|
+
u = u < 0 ? u + 1 : u > 1 ? u - 1 : u;
|
|
2219
|
+
if (u < 1 / 6) {
|
|
2220
|
+
o = s + ((r - s) * 6 * u);
|
|
2221
|
+
}
|
|
2222
|
+
else if (u < 1 / 2) {
|
|
2223
|
+
o = r;
|
|
2224
|
+
}
|
|
2225
|
+
else if (u < 2 / 3) {
|
|
2226
|
+
o = s + ((r - s) * 6 * (2 / 3 - u));
|
|
2227
|
+
}
|
|
2228
|
+
else {
|
|
2229
|
+
o = s;
|
|
2230
|
+
}
|
|
2231
|
+
u = t;
|
|
2232
|
+
u = u < 0 ? u + 1 : u > 1 ? u - 1 : u;
|
|
2233
|
+
if (u < 1 / 6) {
|
|
2234
|
+
p = s + ((r - s) * 6 * u);
|
|
2235
|
+
}
|
|
2236
|
+
else if (u < 1 / 2) {
|
|
2237
|
+
p = r;
|
|
2238
|
+
}
|
|
2239
|
+
else if (u < 2 / 3) {
|
|
2240
|
+
p = s + ((r - s) * 6 * (2 / 3 - u));
|
|
2241
|
+
}
|
|
2242
|
+
else {
|
|
2243
|
+
p = s;
|
|
2244
|
+
}
|
|
2245
|
+
u = t - 1 / 3;
|
|
2246
|
+
u = u < 0 ? u + 1 : u > 1 ? u - 1 : u;
|
|
2247
|
+
if (u < 1 / 6) {
|
|
2248
|
+
q = s + ((r - s) * 6 * u);
|
|
2249
|
+
}
|
|
2250
|
+
else if (u < 1 / 2) {
|
|
2251
|
+
q = r;
|
|
2252
|
+
}
|
|
2253
|
+
else if (u < 2 / 3) {
|
|
2254
|
+
q = s + ((r - s) * 6 * (2 / 3 - u));
|
|
2255
|
+
}
|
|
2256
|
+
else {
|
|
2257
|
+
q = s;
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
o = o * 255;
|
|
2261
|
+
p = p * 255;
|
|
2262
|
+
q = q * 255;
|
|
2263
|
+
var v = e * (1 - j);
|
|
2264
|
+
var w = ((intDivide(k, 10)) + (intDivide(i, 10))) % 2 == 0;
|
|
2265
|
+
var x = 100;
|
|
2266
|
+
var y = 100;
|
|
2267
|
+
var z = 100;
|
|
2268
|
+
if (!w) {
|
|
2269
|
+
x = 255;
|
|
2270
|
+
y = 255;
|
|
2271
|
+
z = 255;
|
|
2272
|
+
}
|
|
2273
|
+
var aa = truncate((o * v + x * (1 - v)));
|
|
2274
|
+
var ab = truncate((p * v + x * (1 - v)));
|
|
2275
|
+
var ac = truncate((q * v + x * (1 - v)));
|
|
2276
|
+
if (aa > 255) {
|
|
2277
|
+
aa = 255;
|
|
2278
|
+
}
|
|
2279
|
+
if (ab > 255) {
|
|
2280
|
+
ab = 255;
|
|
2281
|
+
}
|
|
2282
|
+
if (ac > 255) {
|
|
2283
|
+
ac = 255;
|
|
2284
|
+
}
|
|
2285
|
+
var ad = ((i * b) + k) * 4;
|
|
2286
|
+
a[ad + 0] = aa;
|
|
2287
|
+
a[ad + 1] = ab;
|
|
2288
|
+
a[ad + 2] = ac;
|
|
2289
|
+
a[ad + 3] = f;
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
};
|
|
2293
|
+
ColorEditorPanel.$t = markType(ColorEditorPanel, 'ColorEditorPanel', Base.$, [INotifyPropertyChanged_$type]);
|
|
2294
|
+
ColorEditorPanel.ag = "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z";
|
|
2295
|
+
ColorEditorPanel.ah = "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z";
|
|
2296
|
+
return ColorEditorPanel;
|
|
2297
|
+
}(Base));
|
|
2298
|
+
export { ColorEditorPanel };
|