igniteui-angular-inputs 18.1.1 → 18.2.0-beta.0

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