igniteui-webcomponents-inputs 7.1.1-beta.2 → 7.1.1-beta.4

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