igniteui-webcomponents-layouts 3.2.3 → 3.5.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 (279) hide show
  1. package/bundles/igniteui-webcomponents-layouts.umd.js +7675 -276
  2. package/bundles/igniteui-webcomponents-layouts.umd.min.js +1 -1
  3. package/esm2015/lib/IExternalListPanel.js +11 -0
  4. package/esm2015/lib/IExternalToolPanel.js +11 -0
  5. package/esm2015/lib/IExternalToolbar.js +11 -0
  6. package/esm2015/lib/IListPanelView.js +11 -0
  7. package/esm2015/lib/IPropertyEditorPanelView.js +11 -0
  8. package/esm2015/lib/IToolPanelView.js +11 -0
  9. package/esm2015/lib/IToolbarView.js +11 -0
  10. package/esm2015/lib/ListPanel.js +7 -0
  11. package/esm2015/lib/ListPanelContentRefreshedEventArgs.js +19 -0
  12. package/esm2015/lib/ListPanelDataBindingEventArgs.js +22 -0
  13. package/esm2015/lib/ListPanelDataSourceNotificationBridge.js +7 -0
  14. package/esm2015/lib/ListPanelItemModel.js +62 -0
  15. package/esm2015/lib/ListPanelItemPresenter.js +20 -0
  16. package/esm2015/lib/ListPanelLayoutPanel.js +7 -0
  17. package/esm2015/lib/ListPanelOrientation.js +16 -0
  18. package/esm2015/lib/ListPanelTemplateHeightRequestedEventArgs.js +22 -0
  19. package/esm2015/lib/ListPanelTemplateItemUpdatingEventArgs.js +22 -0
  20. package/esm2015/lib/ListPanelTemplateWidthRequestedEventArgs.js +22 -0
  21. package/esm2015/lib/ListPanelView.js +7 -0
  22. package/esm2015/lib/ListPanelView_combined.js +972 -0
  23. package/esm2015/lib/PropertyEditorPanelView_combined.js +106 -106
  24. package/esm2015/lib/PropertyEditorPropertyDescription_combined.js +84 -58
  25. package/esm2015/lib/PropertyEditorTreeTransformer.js +1 -0
  26. package/esm2015/lib/PropertyEditorValueType.js +2 -1
  27. package/esm2015/lib/ToolAction.js +7 -0
  28. package/esm2015/lib/ToolActionCheckbox.js +7 -0
  29. package/esm2015/lib/ToolActionCollection.js +7 -0
  30. package/esm2015/lib/ToolActionEventDetail.js +7 -0
  31. package/esm2015/lib/ToolActionEventDetailCollection.js +7 -0
  32. package/esm2015/lib/ToolActionGroupHeader.js +7 -0
  33. package/esm2015/lib/ToolActionIconButton.js +7 -0
  34. package/esm2015/lib/ToolActionIconMenu.js +7 -0
  35. package/esm2015/lib/ToolActionLabel.js +7 -0
  36. package/esm2015/lib/ToolActionMeasurementContext.js +31 -0
  37. package/esm2015/lib/ToolActionMenuBase.js +7 -0
  38. package/esm2015/lib/ToolActionNumberInput.js +7 -0
  39. package/esm2015/lib/ToolActionPerformedEventArgs.js +7 -0
  40. package/esm2015/lib/ToolActionRadio.js +7 -0
  41. package/esm2015/lib/ToolActionSeparator.js +7 -0
  42. package/esm2015/lib/ToolCommandEventArgs.js +20 -0
  43. package/esm2015/lib/ToolPanel.js +7 -0
  44. package/esm2015/lib/ToolPanelContentRefreshedEventArgs.js +19 -0
  45. package/esm2015/lib/ToolPanelOrientation.js +16 -0
  46. package/esm2015/lib/ToolPanelView.js +7 -0
  47. package/esm2015/lib/ToolPanelView_combined.js +1699 -0
  48. package/esm2015/lib/Toolbar.js +7 -0
  49. package/esm2015/lib/ToolbarIconManager.js +40 -0
  50. package/esm2015/lib/ToolbarOrientation.js +16 -0
  51. package/esm2015/lib/ToolbarView.js +7 -0
  52. package/esm2015/lib/ToolbarView_combined.js +387 -0
  53. package/esm2015/lib/igc-list-panel-component.js +466 -0
  54. package/esm2015/lib/igc-list-panel-content-refreshed-event-args.js +24 -0
  55. package/esm2015/lib/igc-list-panel-item-model.js +57 -0
  56. package/esm2015/lib/igc-list-panel-module.js +17 -0
  57. package/esm2015/lib/igc-list-panel-template-height-requested-event-args.js +42 -0
  58. package/esm2015/lib/igc-list-panel-template-item-updating-event-args.js +51 -0
  59. package/esm2015/lib/igc-list-panel-template-width-requested-event-args.js +42 -0
  60. package/esm2015/lib/igc-popup-component.js +7 -0
  61. package/esm2015/lib/igc-property-editor-data-source.js +7 -2
  62. package/esm2015/lib/igc-property-editor-description-object.js +5 -0
  63. package/esm2015/lib/igc-property-editor-panel-component.js +6 -5
  64. package/esm2015/lib/igc-property-editor-property-description-component.js +33 -5
  65. package/esm2015/lib/igc-tool-action-checkbox-component.js +63 -0
  66. package/esm2015/lib/igc-tool-action-checkbox-module.js +16 -0
  67. package/esm2015/lib/igc-tool-action-collection.js +48 -0
  68. package/esm2015/lib/igc-tool-action-component.js +333 -0
  69. package/esm2015/lib/igc-tool-action-event-detail-collection.js +48 -0
  70. package/esm2015/lib/igc-tool-action-event-detail.js +91 -0
  71. package/esm2015/lib/igc-tool-action-group-header-component.js +63 -0
  72. package/esm2015/lib/igc-tool-action-group-header-module.js +16 -0
  73. package/esm2015/lib/igc-tool-action-icon-button-component.js +63 -0
  74. package/esm2015/lib/igc-tool-action-icon-button-module.js +16 -0
  75. package/esm2015/lib/igc-tool-action-icon-menu-component.js +63 -0
  76. package/esm2015/lib/igc-tool-action-icon-menu-module.js +16 -0
  77. package/esm2015/lib/igc-tool-action-label-component.js +63 -0
  78. package/esm2015/lib/igc-tool-action-label-module.js +16 -0
  79. package/esm2015/lib/igc-tool-action-menu-base-component.js +103 -0
  80. package/esm2015/lib/igc-tool-action-module.js +16 -0
  81. package/esm2015/lib/igc-tool-action-number-input-component.js +63 -0
  82. package/esm2015/lib/igc-tool-action-number-input-module.js +16 -0
  83. package/esm2015/lib/igc-tool-action-performed-event-args.js +86 -0
  84. package/esm2015/lib/igc-tool-action-radio-component.js +69 -0
  85. package/esm2015/lib/igc-tool-action-radio-module.js +16 -0
  86. package/esm2015/lib/igc-tool-action-separator-component.js +63 -0
  87. package/esm2015/lib/igc-tool-action-separator-module.js +16 -0
  88. package/esm2015/lib/igc-tool-command-event-args.js +30 -0
  89. package/esm2015/lib/igc-tool-panel-component.js +386 -0
  90. package/esm2015/lib/igc-tool-panel-content-refreshed-event-args.js +24 -0
  91. package/esm2015/lib/igc-tool-panel-module.js +29 -0
  92. package/esm2015/lib/igc-toolbar-component.js +417 -0
  93. package/esm2015/lib/igc-toolbar-module.js +19 -0
  94. package/esm2015/lib/igc-x-expansion-panel-component.js +7 -0
  95. package/esm2015/public_api.js +79 -0
  96. package/esm5/lib/IExternalListPanel.js +11 -0
  97. package/esm5/lib/IExternalToolPanel.js +11 -0
  98. package/esm5/lib/IExternalToolbar.js +11 -0
  99. package/esm5/lib/IListPanelView.js +11 -0
  100. package/esm5/lib/IPropertyEditorPanelView.js +11 -0
  101. package/esm5/lib/IToolPanelView.js +11 -0
  102. package/esm5/lib/IToolbarView.js +11 -0
  103. package/esm5/lib/ListPanel.js +7 -0
  104. package/esm5/lib/ListPanelContentRefreshedEventArgs.js +20 -0
  105. package/esm5/lib/ListPanelDataBindingEventArgs.js +24 -0
  106. package/esm5/lib/ListPanelDataSourceNotificationBridge.js +7 -0
  107. package/esm5/lib/ListPanelItemModel.js +80 -0
  108. package/esm5/lib/ListPanelItemPresenter.js +22 -0
  109. package/esm5/lib/ListPanelLayoutPanel.js +7 -0
  110. package/esm5/lib/ListPanelOrientation.js +16 -0
  111. package/esm5/lib/ListPanelTemplateHeightRequestedEventArgs.js +24 -0
  112. package/esm5/lib/ListPanelTemplateItemUpdatingEventArgs.js +24 -0
  113. package/esm5/lib/ListPanelTemplateWidthRequestedEventArgs.js +24 -0
  114. package/esm5/lib/ListPanelView.js +7 -0
  115. package/esm5/lib/ListPanelView_combined.js +1045 -0
  116. package/esm5/lib/PropertyEditorPanelView_combined.js +106 -106
  117. package/esm5/lib/PropertyEditorPropertyDescription_combined.js +82 -57
  118. package/esm5/lib/PropertyEditorTreeTransformer.js +1 -0
  119. package/esm5/lib/PropertyEditorValueType.js +2 -1
  120. package/esm5/lib/ToolAction.js +7 -0
  121. package/esm5/lib/ToolActionCheckbox.js +7 -0
  122. package/esm5/lib/ToolActionCollection.js +7 -0
  123. package/esm5/lib/ToolActionEventDetail.js +7 -0
  124. package/esm5/lib/ToolActionEventDetailCollection.js +7 -0
  125. package/esm5/lib/ToolActionGroupHeader.js +7 -0
  126. package/esm5/lib/ToolActionIconButton.js +7 -0
  127. package/esm5/lib/ToolActionIconMenu.js +7 -0
  128. package/esm5/lib/ToolActionLabel.js +7 -0
  129. package/esm5/lib/ToolActionMeasurementContext.js +33 -0
  130. package/esm5/lib/ToolActionMenuBase.js +7 -0
  131. package/esm5/lib/ToolActionNumberInput.js +7 -0
  132. package/esm5/lib/ToolActionPerformedEventArgs.js +7 -0
  133. package/esm5/lib/ToolActionRadio.js +7 -0
  134. package/esm5/lib/ToolActionSeparator.js +7 -0
  135. package/esm5/lib/ToolCommandEventArgs.js +22 -0
  136. package/esm5/lib/ToolPanel.js +7 -0
  137. package/esm5/lib/ToolPanelContentRefreshedEventArgs.js +20 -0
  138. package/esm5/lib/ToolPanelOrientation.js +16 -0
  139. package/esm5/lib/ToolPanelView.js +7 -0
  140. package/esm5/lib/ToolPanelView_combined.js +1853 -0
  141. package/esm5/lib/Toolbar.js +7 -0
  142. package/esm5/lib/ToolbarIconManager.js +44 -0
  143. package/esm5/lib/ToolbarOrientation.js +16 -0
  144. package/esm5/lib/ToolbarView.js +7 -0
  145. package/esm5/lib/ToolbarView_combined.js +459 -0
  146. package/esm5/lib/igc-list-panel-component.js +544 -0
  147. package/esm5/lib/igc-list-panel-content-refreshed-event-args.js +30 -0
  148. package/esm5/lib/igc-list-panel-item-model.js +79 -0
  149. package/esm5/lib/igc-list-panel-module.js +21 -0
  150. package/esm5/lib/igc-list-panel-template-height-requested-event-args.js +60 -0
  151. package/esm5/lib/igc-list-panel-template-item-updating-event-args.js +65 -0
  152. package/esm5/lib/igc-list-panel-template-width-requested-event-args.js +60 -0
  153. package/esm5/lib/igc-popup-component.js +7 -0
  154. package/esm5/lib/igc-property-editor-data-source.js +7 -2
  155. package/esm5/lib/igc-property-editor-description-object.js +5 -0
  156. package/esm5/lib/igc-property-editor-panel-component.js +6 -5
  157. package/esm5/lib/igc-property-editor-property-description-component.js +33 -5
  158. package/esm5/lib/igc-tool-action-checkbox-component.js +72 -0
  159. package/esm5/lib/igc-tool-action-checkbox-module.js +20 -0
  160. package/esm5/lib/igc-tool-action-collection.js +53 -0
  161. package/esm5/lib/igc-tool-action-component.js +409 -0
  162. package/esm5/lib/igc-tool-action-event-detail-collection.js +53 -0
  163. package/esm5/lib/igc-tool-action-event-detail.js +125 -0
  164. package/esm5/lib/igc-tool-action-group-header-component.js +72 -0
  165. package/esm5/lib/igc-tool-action-group-header-module.js +20 -0
  166. package/esm5/lib/igc-tool-action-icon-button-component.js +72 -0
  167. package/esm5/lib/igc-tool-action-icon-button-module.js +20 -0
  168. package/esm5/lib/igc-tool-action-icon-menu-component.js +72 -0
  169. package/esm5/lib/igc-tool-action-icon-menu-module.js +20 -0
  170. package/esm5/lib/igc-tool-action-label-component.js +72 -0
  171. package/esm5/lib/igc-tool-action-label-module.js +20 -0
  172. package/esm5/lib/igc-tool-action-menu-base-component.js +117 -0
  173. package/esm5/lib/igc-tool-action-module.js +20 -0
  174. package/esm5/lib/igc-tool-action-number-input-component.js +72 -0
  175. package/esm5/lib/igc-tool-action-number-input-module.js +20 -0
  176. package/esm5/lib/igc-tool-action-performed-event-args.js +104 -0
  177. package/esm5/lib/igc-tool-action-radio-component.js +82 -0
  178. package/esm5/lib/igc-tool-action-radio-module.js +20 -0
  179. package/esm5/lib/igc-tool-action-separator-component.js +72 -0
  180. package/esm5/lib/igc-tool-action-separator-module.js +20 -0
  181. package/esm5/lib/igc-tool-command-event-args.js +40 -0
  182. package/esm5/lib/igc-tool-panel-component.js +456 -0
  183. package/esm5/lib/igc-tool-panel-content-refreshed-event-args.js +30 -0
  184. package/esm5/lib/igc-tool-panel-module.js +33 -0
  185. package/esm5/lib/igc-toolbar-component.js +489 -0
  186. package/esm5/lib/igc-toolbar-module.js +23 -0
  187. package/esm5/lib/igc-x-expansion-panel-component.js +7 -0
  188. package/esm5/public_api.js +79 -0
  189. package/fesm2015/igniteui-webcomponents-layouts.js +6751 -262
  190. package/fesm5/igniteui-webcomponents-layouts.js +7595 -278
  191. package/lib/IExternalListPanel.d.ts +13 -0
  192. package/lib/IExternalToolPanel.d.ts +13 -0
  193. package/lib/IExternalToolbar.d.ts +13 -0
  194. package/lib/IListPanelView.d.ts +25 -0
  195. package/lib/IPropertyEditorPanelView.d.ts +26 -0
  196. package/lib/IToolPanelView.d.ts +25 -0
  197. package/lib/IToolbarView.d.ts +25 -0
  198. package/lib/ListPanel.d.ts +1 -0
  199. package/lib/ListPanelContentRefreshedEventArgs.d.ts +8 -0
  200. package/lib/ListPanelDataBindingEventArgs.d.ts +10 -0
  201. package/lib/ListPanelDataSourceNotificationBridge.d.ts +1 -0
  202. package/lib/ListPanelItemModel.d.ts +22 -0
  203. package/lib/ListPanelItemPresenter.d.ts +9 -0
  204. package/lib/ListPanelLayoutPanel.d.ts +1 -0
  205. package/lib/ListPanelOrientation.d.ts +9 -0
  206. package/lib/ListPanelTemplateHeightRequestedEventArgs.d.ts +10 -0
  207. package/lib/ListPanelTemplateItemUpdatingEventArgs.d.ts +12 -0
  208. package/lib/ListPanelTemplateWidthRequestedEventArgs.d.ts +10 -0
  209. package/lib/ListPanelView.d.ts +1 -0
  210. package/lib/ListPanelView_combined.d.ts +197 -0
  211. package/lib/PropertyEditorPanelView_combined.d.ts +1 -1
  212. package/lib/PropertyEditorPropertyDescription_combined.d.ts +13 -10
  213. package/lib/PropertyEditorValueType.d.ts +2 -1
  214. package/lib/ToolAction.d.ts +1 -0
  215. package/lib/ToolActionCheckbox.d.ts +1 -0
  216. package/lib/ToolActionCollection.d.ts +1 -0
  217. package/lib/ToolActionEventDetail.d.ts +1 -0
  218. package/lib/ToolActionEventDetailCollection.d.ts +1 -0
  219. package/lib/ToolActionGroupHeader.d.ts +1 -0
  220. package/lib/ToolActionIconButton.d.ts +1 -0
  221. package/lib/ToolActionIconMenu.d.ts +1 -0
  222. package/lib/ToolActionLabel.d.ts +1 -0
  223. package/lib/ToolActionMeasurementContext.d.ts +16 -0
  224. package/lib/ToolActionMenuBase.d.ts +1 -0
  225. package/lib/ToolActionNumberInput.d.ts +1 -0
  226. package/lib/ToolActionPerformedEventArgs.d.ts +1 -0
  227. package/lib/ToolActionRadio.d.ts +1 -0
  228. package/lib/ToolActionSeparator.d.ts +1 -0
  229. package/lib/ToolCommandEventArgs.d.ts +10 -0
  230. package/lib/ToolPanel.d.ts +1 -0
  231. package/lib/ToolPanelContentRefreshedEventArgs.d.ts +8 -0
  232. package/lib/ToolPanelOrientation.d.ts +9 -0
  233. package/lib/ToolPanelView.d.ts +1 -0
  234. package/lib/ToolPanelView_combined.d.ts +355 -0
  235. package/lib/Toolbar.d.ts +1 -0
  236. package/lib/ToolbarIconManager.d.ts +10 -0
  237. package/lib/ToolbarOrientation.d.ts +9 -0
  238. package/lib/ToolbarView.d.ts +1 -0
  239. package/lib/ToolbarView_combined.d.ts +98 -0
  240. package/lib/igc-list-panel-component.d.ts +122 -0
  241. package/lib/igc-list-panel-content-refreshed-event-args.d.ts +12 -0
  242. package/lib/igc-list-panel-item-model.d.ts +17 -0
  243. package/lib/igc-list-panel-module.d.ts +3 -0
  244. package/lib/igc-list-panel-template-height-requested-event-args.d.ts +15 -0
  245. package/lib/igc-list-panel-template-item-updating-event-args.d.ts +15 -0
  246. package/lib/igc-list-panel-template-width-requested-event-args.d.ts +15 -0
  247. package/lib/igc-property-editor-panel-component.d.ts +0 -2
  248. package/lib/igc-property-editor-property-description-component.d.ts +1 -0
  249. package/lib/igc-tool-action-checkbox-component.d.ts +17 -0
  250. package/lib/igc-tool-action-checkbox-module.d.ts +3 -0
  251. package/lib/igc-tool-action-collection.d.ts +8 -0
  252. package/lib/igc-tool-action-component.d.ts +65 -0
  253. package/lib/igc-tool-action-event-detail-collection.d.ts +8 -0
  254. package/lib/igc-tool-action-event-detail.d.ts +22 -0
  255. package/lib/igc-tool-action-group-header-component.d.ts +17 -0
  256. package/lib/igc-tool-action-group-header-module.d.ts +3 -0
  257. package/lib/igc-tool-action-icon-button-component.d.ts +17 -0
  258. package/lib/igc-tool-action-icon-button-module.d.ts +3 -0
  259. package/lib/igc-tool-action-icon-menu-component.d.ts +17 -0
  260. package/lib/igc-tool-action-icon-menu-module.d.ts +3 -0
  261. package/lib/igc-tool-action-label-component.d.ts +17 -0
  262. package/lib/igc-tool-action-label-module.d.ts +3 -0
  263. package/lib/igc-tool-action-menu-base-component.d.ts +25 -0
  264. package/lib/igc-tool-action-module.d.ts +3 -0
  265. package/lib/igc-tool-action-number-input-component.d.ts +17 -0
  266. package/lib/igc-tool-action-number-input-module.d.ts +3 -0
  267. package/lib/igc-tool-action-performed-event-args.d.ts +18 -0
  268. package/lib/igc-tool-action-radio-component.d.ts +18 -0
  269. package/lib/igc-tool-action-radio-module.d.ts +3 -0
  270. package/lib/igc-tool-action-separator-component.d.ts +17 -0
  271. package/lib/igc-tool-action-separator-module.d.ts +3 -0
  272. package/lib/igc-tool-command-event-args.d.ts +14 -0
  273. package/lib/igc-tool-panel-component.d.ts +83 -0
  274. package/lib/igc-tool-panel-content-refreshed-event-args.d.ts +12 -0
  275. package/lib/igc-tool-panel-module.d.ts +3 -0
  276. package/lib/igc-toolbar-component.d.ts +89 -0
  277. package/lib/igc-toolbar-module.d.ts +3 -0
  278. package/package.json +3 -3
  279. package/public_api.d.ts +79 -0
@@ -0,0 +1,1853 @@
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 * as tslib_1 from "tslib";
8
+ import { Base, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, EnumUtil, runOn, delegateCombine, typeCast, delegateRemove, fromEn, String_$type, enumGetBox } from "igniteui-webcomponents-core";
9
+ import { RenderingContext } from "igniteui-webcomponents-core";
10
+ import { FontInfo } from "igniteui-webcomponents-core";
11
+ import { ListPanel } from "./ListPanel";
12
+ import { DOMExecutionContext } from "igniteui-webcomponents-core";
13
+ import { CanvasViewRenderer } from "igniteui-webcomponents-core";
14
+ import { Size } from "igniteui-webcomponents-core";
15
+ import { NativeUI } from "igniteui-webcomponents-core";
16
+ import { FontUtil } from "igniteui-webcomponents-core";
17
+ import { Popup } from "./Popup";
18
+ import { NativeUIContent } from "igniteui-webcomponents-core";
19
+ import { NativeUIComponent } from "igniteui-webcomponents-core";
20
+ import { Rect } from "igniteui-webcomponents-core";
21
+ import { ToolActionType_$type } from "igniteui-webcomponents-core";
22
+ import { ToolCommandArgument } from "igniteui-webcomponents-core";
23
+ import { ToolActionMeasurementContext } from "./ToolActionMeasurementContext";
24
+ import { ToolCommand } from "igniteui-webcomponents-core";
25
+ import { List$1 } from "igniteui-webcomponents-core";
26
+ import { ToolCommandEventArgs } from "./ToolCommandEventArgs";
27
+ import { DeviceUtils } from "igniteui-webcomponents-core";
28
+ import { ToolPanelOrientation_$type } from "./ToolPanelOrientation";
29
+ import { stringReplace } from "igniteui-webcomponents-core";
30
+ import { isNaN_, tryParseNumber } from "igniteui-webcomponents-core";
31
+ import { Thickness } from "igniteui-webcomponents-core";
32
+ import { BrushUtil } from "igniteui-webcomponents-core";
33
+ import { ObservableCollection$1 } from "igniteui-webcomponents-core";
34
+ import { ToolPanelContentRefreshedEventArgs } from "./ToolPanelContentRefreshedEventArgs";
35
+ import { SRProvider } from "igniteui-webcomponents-core";
36
+ import { Dictionary$2 } from "igniteui-webcomponents-core";
37
+ import { NativeUIInputsFactory } from "igniteui-webcomponents-core";
38
+ /**
39
+ * @hidden
40
+ */
41
+ var ToolPanelView = /** @class */ /*@__PURE__*/ (function (_super) {
42
+ tslib_1.__extends(ToolPanelView, _super);
43
+ function ToolPanelView() {
44
+ var _this = _super.call(this) || this;
45
+ _this.p = null;
46
+ _this.o = null;
47
+ _this.c = null;
48
+ _this.k = null;
49
+ _this.n = null;
50
+ _this.g = null;
51
+ _this.m = null;
52
+ _this.d = ((function () {
53
+ var $ret = new FontInfo();
54
+ $ret.n = "Verdana";
55
+ $ret.d = 13;
56
+ $ret.q = "Normal";
57
+ $ret.s = "Normal";
58
+ $ret.o = "Normal";
59
+ return $ret;
60
+ })());
61
+ _this.ad = new Size();
62
+ _this.e = null;
63
+ _this._gridExternal = null;
64
+ _this.h = false;
65
+ _this.l = null;
66
+ return _this;
67
+ }
68
+ ToolPanelView.prototype.r = function () {
69
+ return this.k;
70
+ };
71
+ ToolPanelView.prototype.x = function () {
72
+ };
73
+ ToolPanelView.prototype.v = function (a) {
74
+ if (a == null) {
75
+ this.k = null;
76
+ return;
77
+ }
78
+ this.c.a = new DOMExecutionContext(a);
79
+ this.k = a;
80
+ this.n = this.k.createElement("canvas");
81
+ this.g = new RenderingContext(new CanvasViewRenderer(), this.k.get2DCanvasContext(this.n));
82
+ this.m = this.k.createElement("div");
83
+ this.aa();
84
+ var b = new ListPanel();
85
+ var c = this.k.createElement("div");
86
+ c.setStyleProperty("width", "100%");
87
+ c.setStyleProperty("height", "100%");
88
+ this.k.append(c);
89
+ var d = this.k.getSubRenderer(c);
90
+ b.provideContainer(d);
91
+ var e = this.k.getExternal(b, this.k.rootWrapper, this.k.getExternal(this.c, null, null));
92
+ b.externalListPanel = e;
93
+ this.c.aq(b);
94
+ var f = Math.round(a.rootWrapper.width());
95
+ var g = Math.round(a.rootWrapper.height());
96
+ this.k.rootWrapper.setStyleProperty("position", "relative");
97
+ };
98
+ ToolPanelView.prototype.aa = function () {
99
+ };
100
+ ToolPanelView.prototype.z = function () {
101
+ if (this.k != null) {
102
+ }
103
+ };
104
+ ToolPanelView.prototype.u = function () {
105
+ if (this.k == null) {
106
+ return;
107
+ }
108
+ var a = this.k.rootWrapper.width();
109
+ var b = this.k.rootWrapper.height();
110
+ this.ad = new Size(1, a, b);
111
+ if (this.c.p != null) {
112
+ }
113
+ };
114
+ ToolPanelView.prototype.ab = function () {
115
+ var a = this.k;
116
+ if (null == a) {
117
+ return;
118
+ }
119
+ var b = a.rootWrapper;
120
+ if (null != b) {
121
+ NativeUI.o(b, this.c.ba);
122
+ NativeUI.k(b, this.c.a7);
123
+ }
124
+ };
125
+ ToolPanelView.prototype.f = function () {
126
+ return this.d;
127
+ };
128
+ ToolPanelView.prototype.w = function () {
129
+ };
130
+ ToolPanelView.prototype.y = function () {
131
+ };
132
+ ToolPanelView.prototype.t = function () {
133
+ };
134
+ ToolPanelView.prototype.i = function () {
135
+ return this.ad.width;
136
+ };
137
+ ToolPanelView.prototype.j = function (a) {
138
+ this.e = this.c.o();
139
+ return FontUtil.measureStringWidth(a, this.e, this.g);
140
+ };
141
+ ToolPanelView.prototype.s = function (a, b) {
142
+ if (this.l == null) {
143
+ this.l = this.k.createElement("div");
144
+ }
145
+ b(this.l.getNativeElement());
146
+ };
147
+ ToolPanelView.prototype.a = function () {
148
+ var a = new Popup();
149
+ var b = this.k.getExternal(a, this.k.rootWrapper, this.k.getExternal(this.c, null, null));
150
+ return a;
151
+ };
152
+ ToolPanelView.prototype.b = function (a) {
153
+ var b = new ToolPanel();
154
+ var c = this.k.getExternal(b, this.k.rootWrapper, this.k.getExternal(this.c, null, null));
155
+ var d = a.v;
156
+ d.appendChild(b.l.k.rootWrapper.getNativeElement());
157
+ return b;
158
+ };
159
+ ToolPanelView.prototype.ac = function (a) {
160
+ var ele_ = a;
161
+ var bounds_ = (ele_.getBoundingClientRect());
162
+ var b = bounds_["left"];
163
+ var c = bounds_["top"];
164
+ var d = bounds_["width"];
165
+ var e = bounds_["height"];
166
+ return new Rect(0, b, c, d, e);
167
+ };
168
+ ToolPanelView.$t = markType(ToolPanelView, 'ToolPanelView');
169
+ return ToolPanelView;
170
+ }(Base));
171
+ export { ToolPanelView };
172
+ /**
173
+ * @hidden
174
+ */
175
+ var ToolAction = /** @class */ /*@__PURE__*/ (function (_super) {
176
+ tslib_1.__extends(ToolAction, _super);
177
+ function ToolAction() {
178
+ var _this = _super !== null && _super.apply(this, arguments) || this;
179
+ _this.e = null;
180
+ _this.ae = null;
181
+ _this.z = null;
182
+ _this.y = null;
183
+ _this.u = null;
184
+ _this.k = DeviceUtils.g(5);
185
+ _this.l = DeviceUtils.g(5);
186
+ _this.j = DeviceUtils.g(2);
187
+ _this.m = DeviceUtils.g(2);
188
+ _this.ad = null;
189
+ _this.ac = null;
190
+ _this.ab = null;
191
+ _this.aa = null;
192
+ _this.propertyChanged = null;
193
+ _this.onCommand = null;
194
+ _this.performed = null;
195
+ return _this;
196
+ }
197
+ Object.defineProperty(ToolAction.prototype, "ao", {
198
+ get: function () {
199
+ if (this.ar != null) {
200
+ return this.ar;
201
+ }
202
+ if (this.ap != null) {
203
+ return this.a1(this.ap);
204
+ }
205
+ return null;
206
+ },
207
+ enumerable: true,
208
+ configurable: true
209
+ });
210
+ ToolAction.prototype.a1 = function (a) {
211
+ return stringReplace(a, " ", "_");
212
+ };
213
+ ToolAction.prototype.b = function (a) {
214
+ var _this = this;
215
+ return ((function () {
216
+ var $ret = new ToolActionEventDetail();
217
+ $ret.a = _this;
218
+ $ret.d = a;
219
+ return $ret;
220
+ })());
221
+ };
222
+ ToolAction.prototype.g = function () {
223
+ var _this = this;
224
+ return ((function () {
225
+ var $ret = new ToolCommandArgument();
226
+ $ret.argumentName = _this.az();
227
+ $ret.value = _this.w();
228
+ return $ret;
229
+ })());
230
+ };
231
+ ToolAction.prototype.az = function () {
232
+ if (this.af != null) {
233
+ return this.af;
234
+ }
235
+ return this.ao != null ? this.ao : "Unknown";
236
+ };
237
+ ToolAction.prototype.w = function () {
238
+ if (this.v != null) {
239
+ return this.v;
240
+ }
241
+ return this.x();
242
+ };
243
+ ToolAction.prototype.x = function () {
244
+ return null;
245
+ };
246
+ Object.defineProperty(ToolAction.prototype, "ax", {
247
+ get: function () {
248
+ return this.ae;
249
+ },
250
+ set: function (a) {
251
+ var b = this.ae;
252
+ this.ae = a;
253
+ if (b != this.ae) {
254
+ this.a8("ParentId", b, this.ae);
255
+ }
256
+ },
257
+ enumerable: true,
258
+ configurable: true
259
+ });
260
+ ToolAction.prototype.a0 = function () {
261
+ if (this.ai != null) {
262
+ return this.ai;
263
+ }
264
+ return this.ao;
265
+ };
266
+ Object.defineProperty(ToolAction.prototype, "ai", {
267
+ get: function () {
268
+ return this.z;
269
+ },
270
+ set: function (a) {
271
+ var b = this.z;
272
+ this.z = a;
273
+ if (b != this.z) {
274
+ this.a8("CommandId", b, this.z);
275
+ }
276
+ },
277
+ enumerable: true,
278
+ configurable: true
279
+ });
280
+ Object.defineProperty(ToolAction.prototype, "af", {
281
+ get: function () {
282
+ return this.y;
283
+ },
284
+ set: function (a) {
285
+ var b = this.y;
286
+ this.y = a;
287
+ if (b != this.y) {
288
+ this.a8("CommandArgument", b, this.y);
289
+ }
290
+ },
291
+ enumerable: true,
292
+ configurable: true
293
+ });
294
+ Object.defineProperty(ToolAction.prototype, "v", {
295
+ get: function () {
296
+ return this.u;
297
+ },
298
+ set: function (a) {
299
+ var b = this.u;
300
+ this.u = a;
301
+ if (b != this.u) {
302
+ this.a8("CommandArgumentValue", b, this.u);
303
+ }
304
+ },
305
+ enumerable: true,
306
+ configurable: true
307
+ });
308
+ Object.defineProperty(ToolAction.prototype, "r", {
309
+ get: function () {
310
+ return this.k;
311
+ },
312
+ set: function (a) {
313
+ var b = this.k;
314
+ this.k = a;
315
+ if (b != this.k) {
316
+ this.a8("PaddingLeft", b, this.k);
317
+ }
318
+ },
319
+ enumerable: true,
320
+ configurable: true
321
+ });
322
+ Object.defineProperty(ToolAction.prototype, "s", {
323
+ get: function () {
324
+ return this.l;
325
+ },
326
+ set: function (a) {
327
+ var b = this.l;
328
+ this.l = a;
329
+ if (b != this.l) {
330
+ this.a8("PaddingRight", b, this.l);
331
+ }
332
+ },
333
+ enumerable: true,
334
+ configurable: true
335
+ });
336
+ Object.defineProperty(ToolAction.prototype, "q", {
337
+ get: function () {
338
+ return this.j;
339
+ },
340
+ set: function (a) {
341
+ var b = this.j;
342
+ this.j = a;
343
+ if (b != this.j) {
344
+ this.a8("PaddingBottom", b, this.j);
345
+ }
346
+ },
347
+ enumerable: true,
348
+ configurable: true
349
+ });
350
+ Object.defineProperty(ToolAction.prototype, "t", {
351
+ get: function () {
352
+ return this.m;
353
+ },
354
+ set: function (a) {
355
+ var b = this.m;
356
+ this.m = a;
357
+ if (b != this.m) {
358
+ this.a8("PaddingTop", b, this.m);
359
+ }
360
+ },
361
+ enumerable: true,
362
+ configurable: true
363
+ });
364
+ Object.defineProperty(ToolAction.prototype, "i", {
365
+ get: function () {
366
+ return this.ax != null;
367
+ },
368
+ enumerable: true,
369
+ configurable: true
370
+ });
371
+ Object.defineProperty(ToolAction.prototype, "ar", {
372
+ get: function () {
373
+ return this.ad;
374
+ },
375
+ set: function (a) {
376
+ var b = this.ad;
377
+ this.ad = a;
378
+ if (b != this.ad) {
379
+ this.a8("Name", b, this.ad);
380
+ }
381
+ },
382
+ enumerable: true,
383
+ configurable: true
384
+ });
385
+ Object.defineProperty(ToolAction.prototype, "ap", {
386
+ get: function () {
387
+ return this.ac;
388
+ },
389
+ set: function (a) {
390
+ var b = this.ac;
391
+ this.ac = a;
392
+ if (b != this.ac) {
393
+ this.a8("Label", b, this.ac);
394
+ }
395
+ },
396
+ enumerable: true,
397
+ configurable: true
398
+ });
399
+ Object.defineProperty(ToolAction.prototype, "am", {
400
+ get: function () {
401
+ return this.ab;
402
+ },
403
+ set: function (a) {
404
+ var b = this.ab;
405
+ this.ab = a;
406
+ if (b != this.ab) {
407
+ this.a8("IconName", b, this.ab);
408
+ }
409
+ },
410
+ enumerable: true,
411
+ configurable: true
412
+ });
413
+ Object.defineProperty(ToolAction.prototype, "ak", {
414
+ get: function () {
415
+ return this.aa;
416
+ },
417
+ set: function (a) {
418
+ var b = this.aa;
419
+ this.aa = a;
420
+ if (b != this.aa) {
421
+ this.a8("IconCollectionName", b, this.aa);
422
+ }
423
+ },
424
+ enumerable: true,
425
+ configurable: true
426
+ });
427
+ ToolAction.prototype.a8 = function (a, b, c) {
428
+ if (this.propertyChanged != null) {
429
+ this.propertyChanged(this, new PropertyChangedEventArgs(a));
430
+ }
431
+ this.bc(a, b, c);
432
+ };
433
+ ToolAction.prototype.get_f = function () {
434
+ return 0;
435
+ };
436
+ Object.defineProperty(ToolAction.prototype, "f", {
437
+ get: function () {
438
+ return this.get_f();
439
+ },
440
+ enumerable: true,
441
+ configurable: true
442
+ });
443
+ ToolAction.prototype.bc = function (a, b, c) {
444
+ };
445
+ ToolAction.prototype.ba = function (a, b, c, d) {
446
+ this.bb(a, b, c, d);
447
+ };
448
+ ToolAction.prototype.bb = function (a, b, c, d) {
449
+ };
450
+ ToolAction.prototype.a4 = function (a, b) {
451
+ this.a5(a, b);
452
+ };
453
+ ToolAction.prototype.a5 = function (a, b) {
454
+ b.e = this.n(a, b);
455
+ b.g = this.p(a, b);
456
+ b.f = this.o(a, b);
457
+ if (b.a == 1) {
458
+ var c = 0;
459
+ if (!isNaN_(b.e)) {
460
+ c += b.e;
461
+ }
462
+ if (!isNaN_(b.g)) {
463
+ c += b.g;
464
+ }
465
+ if (!isNaN_(b.f)) {
466
+ c += b.f;
467
+ }
468
+ c += (this.r + this.s);
469
+ b.d = c;
470
+ }
471
+ };
472
+ ToolAction.prototype.o = function (a, b) {
473
+ return NaN;
474
+ };
475
+ ToolAction.prototype.p = function (a, b) {
476
+ if (this.ap == null) {
477
+ return NaN;
478
+ }
479
+ var c = a.l.j(this.ap);
480
+ return c;
481
+ };
482
+ ToolAction.prototype.n = function (a, b) {
483
+ return NaN;
484
+ };
485
+ ToolAction.prototype.a9 = function (a, b) {
486
+ this.bd();
487
+ if (this.i) {
488
+ var c = this.e.c(this.ax);
489
+ if (c != null) {
490
+ c.a7(this);
491
+ }
492
+ }
493
+ else {
494
+ if (this.e.u(this)) {
495
+ if (this.performed != null) {
496
+ var d_1 = new ToolActionEventDetailCollection();
497
+ this.a3(this, d_1, b);
498
+ this.performed(this, ((function () {
499
+ var $ret = new ToolActionPerformedEventArgs();
500
+ $ret.c = true;
501
+ $ret.b = d_1;
502
+ return $ret;
503
+ })()));
504
+ }
505
+ }
506
+ else {
507
+ if (this.performed != null) {
508
+ this.performed(this, ((function () {
509
+ var $ret = new ToolActionPerformedEventArgs();
510
+ $ret.c = false;
511
+ $ret.a = a;
512
+ return $ret;
513
+ })()));
514
+ }
515
+ }
516
+ }
517
+ };
518
+ ToolAction.prototype.bd = function () {
519
+ var a = this.a0();
520
+ if (a == null) {
521
+ return;
522
+ }
523
+ var b = new ToolCommand();
524
+ b.commandId = a;
525
+ var c = new List$1(ToolCommandArgument.$, 0);
526
+ this.a2(this, c);
527
+ b.argumentsList = c.toArray();
528
+ if (this.onCommand != null) {
529
+ this.onCommand(this, ((function () {
530
+ var $ret = new ToolCommandEventArgs();
531
+ $ret.a = b;
532
+ return $ret;
533
+ })()));
534
+ }
535
+ if (this.e != null) {
536
+ this.e.ay(this, b);
537
+ }
538
+ };
539
+ ToolAction.prototype.a2 = function (a, b) {
540
+ var c = a.g();
541
+ if (c != null) {
542
+ b.add(c);
543
+ }
544
+ var d = this.e.y(a);
545
+ if (d != null) {
546
+ for (var e = 0; e < d.count; e++) {
547
+ if (d._inner[e].h()) {
548
+ this.a2(d._inner[e], b);
549
+ }
550
+ }
551
+ }
552
+ };
553
+ ToolAction.prototype.h = function () {
554
+ return true;
555
+ };
556
+ ToolAction.prototype.a7 = function (a) {
557
+ if (this.i) {
558
+ var b = this.e.c(this.ax);
559
+ if (b != null) {
560
+ b.a7(a);
561
+ }
562
+ }
563
+ else {
564
+ this.a9(this.b(false), a);
565
+ }
566
+ };
567
+ ToolAction.prototype.a3 = function (a, b, c) {
568
+ var d = a.b(a == c);
569
+ b.add(d);
570
+ var e = this.e.y(a);
571
+ if (e != null) {
572
+ for (var f = 0; f < e.count; f++) {
573
+ this.a3(e._inner[f], b, c);
574
+ }
575
+ }
576
+ };
577
+ ToolAction.a = function (a) {
578
+ var b = null;
579
+ switch (a.a) {
580
+ case 2:
581
+ b = new ToolActionCheckbox();
582
+ break;
583
+ case 1:
584
+ b = new ToolActionGroupHeader();
585
+ break;
586
+ case 3:
587
+ b = new ToolActionIconButton();
588
+ break;
589
+ case 4:
590
+ b = new ToolActionLabel();
591
+ break;
592
+ case 5:
593
+ b = new ToolActionNumberInput();
594
+ break;
595
+ case 6:
596
+ b = new ToolActionRadio();
597
+ break;
598
+ case 7:
599
+ b = new ToolActionSeparator();
600
+ break;
601
+ case 8:
602
+ b = new ToolActionIconMenu();
603
+ break;
604
+ case 0: return null;
605
+ }
606
+ b.a6(a);
607
+ return b;
608
+ };
609
+ ToolAction.prototype.a6 = function (a) {
610
+ this.ar = a.name;
611
+ this.ap = a.label;
612
+ this.af = a.commandArgument;
613
+ this.v = a.commandArgumentValue;
614
+ this.ai = a.commandId;
615
+ this.am = a.iconName;
616
+ this.ak = a.iconCollectionName;
617
+ this.r = a.paddingLeft;
618
+ this.s = a.paddingRight;
619
+ this.t = a.paddingTop;
620
+ this.q = a.paddingBottom;
621
+ this.ax = a.parentId;
622
+ };
623
+ ToolAction.$t = markType(ToolAction, 'ToolAction', Base.$, [INotifyPropertyChanged_$type]);
624
+ return ToolAction;
625
+ }(Base));
626
+ export { ToolAction };
627
+ /**
628
+ * @hidden
629
+ */
630
+ var ToolActionLabel = /** @class */ /*@__PURE__*/ (function (_super) {
631
+ tslib_1.__extends(ToolActionLabel, _super);
632
+ function ToolActionLabel() {
633
+ return _super !== null && _super.apply(this, arguments) || this;
634
+ }
635
+ ToolActionLabel.prototype.get_f = function () {
636
+ return 4;
637
+ };
638
+ ToolActionLabel.prototype.bf = function (a, b, c, d, e, f, g) {
639
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
640
+ a.a0 = b;
641
+ if (g.a == 1) {
642
+ b.d = 0;
643
+ }
644
+ else {
645
+ b.d = 3;
646
+ }
647
+ b.a7(0, 2, 1);
648
+ b.a6(0, 1, isNaN_(g.e) ? 0 : g.e);
649
+ b.a6(1, 1, isNaN_(g.g) ? 0 : g.g);
650
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
651
+ if (b.av == 0) {
652
+ b.aw(c);
653
+ }
654
+ b.bb(c, 0);
655
+ b.ba(c, 1);
656
+ c.e = 1;
657
+ b.a1 = runOn(this, this.be);
658
+ }
659
+ b.h = f.a.j;
660
+ b.aj = BrushUtil.g(0, 0, 0, 0);
661
+ c.au = this.ap;
662
+ c.al = BrushUtil.g(255, 20, 20, 20);
663
+ };
664
+ ToolActionLabel.prototype.be = function (a, b) {
665
+ this.a9(this.b(false), this);
666
+ };
667
+ ToolActionLabel.prototype.bb = function (a, b, c, d) {
668
+ var _this = this;
669
+ _super.prototype.bb.call(this, a, b, c, d);
670
+ var e = c.b;
671
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
672
+ NativeUIComponent.ab(b.l.r(), [7, 3], function (f) {
673
+ var g = f[0];
674
+ var h = f[1];
675
+ e.a0 = g;
676
+ _this.bf(e, g, h, a, b, c, d);
677
+ });
678
+ ;
679
+ }
680
+ else {
681
+ var f = e.a0;
682
+ var g = f.au(0);
683
+ this.bf(e, f, g, a, b, c, d);
684
+ }
685
+ };
686
+ ToolActionLabel.$t = markType(ToolActionLabel, 'ToolActionLabel', ToolAction.$);
687
+ return ToolActionLabel;
688
+ }(ToolAction));
689
+ export { ToolActionLabel };
690
+ /**
691
+ * @hidden
692
+ */
693
+ var ToolActionRadio = /** @class */ /*@__PURE__*/ (function (_super) {
694
+ tslib_1.__extends(ToolActionRadio, _super);
695
+ function ToolActionRadio() {
696
+ var _this = _super !== null && _super.apply(this, arguments) || this;
697
+ _this.bf = null;
698
+ _this.be = null;
699
+ return _this;
700
+ }
701
+ ToolActionRadio.prototype.get_f = function () {
702
+ return 6;
703
+ };
704
+ ToolActionRadio.prototype.b = function (a) {
705
+ var b = new ToolActionEventDetail();
706
+ b.a = this;
707
+ b.b = this.f;
708
+ b.d = a;
709
+ if (this.be != null) {
710
+ b.c = this.be.aw;
711
+ }
712
+ return b;
713
+ };
714
+ ToolActionRadio.prototype.x = function () {
715
+ return this.be.aw;
716
+ };
717
+ ToolActionRadio.prototype.bg = function () {
718
+ if (this.be != null) {
719
+ this.be.aw = false;
720
+ }
721
+ };
722
+ ToolActionRadio.prototype.o = function (a, b) {
723
+ return 30;
724
+ };
725
+ ToolActionRadio.prototype.bi = function (a, b, c, d, e, f, g, h) {
726
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
727
+ a.a0 = b;
728
+ if (h.a == 1) {
729
+ b.d = 0;
730
+ }
731
+ else {
732
+ b.d = 3;
733
+ }
734
+ b.a7(0, 2, 1);
735
+ b.a6(0, 1, isNaN_(h.e) ? 0 : h.e);
736
+ b.a6(1, 1, isNaN_(h.g) ? 0 : h.g);
737
+ b.a6(1, 2, 1);
738
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
739
+ if (b.av == 0) {
740
+ b.aw(c);
741
+ b.aw(d);
742
+ }
743
+ b.bb(c, 0);
744
+ b.ba(c, 1);
745
+ b.bb(d, 0);
746
+ b.ba(d, 2);
747
+ this.be = d;
748
+ d.ax = 25;
749
+ d.av = true;
750
+ d.d = 2;
751
+ d.e = 1;
752
+ d.au = runOn(this, this.bh);
753
+ c.e = 1;
754
+ }
755
+ b.h = g.a.j;
756
+ c.au = this.ap;
757
+ c.al = BrushUtil.g(255, 20, 20, 20);
758
+ };
759
+ ToolActionRadio.prototype.bh = function (a, b) {
760
+ this.a9(this.b(true), this);
761
+ };
762
+ ToolActionRadio.prototype.bb = function (a, b, c, d) {
763
+ var _this = this;
764
+ _super.prototype.bb.call(this, a, b, c, d);
765
+ var e = c.b;
766
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
767
+ NativeUIComponent.ab(b.l.r(), [7, 3, 6], function (f) {
768
+ var g = f[0];
769
+ var h = f[1];
770
+ var i = f[2];
771
+ e.a0 = g;
772
+ _this.bi(e, g, h, i, a, b, c, d);
773
+ });
774
+ }
775
+ else {
776
+ var f = e.a0;
777
+ var g = f.au(0);
778
+ var h = f.au(1);
779
+ this.bi(e, f, g, h, a, b, c, d);
780
+ }
781
+ };
782
+ ToolActionRadio.$t = markType(ToolActionRadio, 'ToolActionRadio', ToolAction.$);
783
+ return ToolActionRadio;
784
+ }(ToolAction));
785
+ export { ToolActionRadio };
786
+ /**
787
+ * @hidden
788
+ */
789
+ var ToolActionSeparator = /** @class */ /*@__PURE__*/ (function (_super) {
790
+ tslib_1.__extends(ToolActionSeparator, _super);
791
+ function ToolActionSeparator() {
792
+ return _super !== null && _super.apply(this, arguments) || this;
793
+ }
794
+ ToolActionSeparator.prototype.get_f = function () {
795
+ return 7;
796
+ };
797
+ ToolActionSeparator.prototype.a5 = function (a, b) {
798
+ _super.prototype.a5.call(this, a, b);
799
+ if (b.a == 1) {
800
+ b.d = 2;
801
+ }
802
+ else {
803
+ b.c = 2;
804
+ }
805
+ };
806
+ ToolActionSeparator.prototype.be = function (a, b, c, d, e, f) {
807
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
808
+ a.a0 = b;
809
+ if (f.a == 1) {
810
+ b.d = 0;
811
+ b.e = 3;
812
+ }
813
+ else {
814
+ b.d = 3;
815
+ }
816
+ }
817
+ if (f.a == 1) {
818
+ b.n = DeviceUtils.g(2);
819
+ }
820
+ else {
821
+ b.h = DeviceUtils.g(2);
822
+ }
823
+ b.aj = BrushUtil.g(255, 200, 200, 200);
824
+ b.ak = BrushUtil.g(255, 80, 80, 80);
825
+ };
826
+ ToolActionSeparator.prototype.bb = function (a, b, c, d) {
827
+ var _this = this;
828
+ _super.prototype.bb.call(this, a, b, c, d);
829
+ var e = c.b;
830
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
831
+ NativeUIComponent.ab(b.l.r(), [7], function (f) {
832
+ var g = f[0];
833
+ e.a0 = g;
834
+ _this.be(e, g, a, b, c, d);
835
+ });
836
+ }
837
+ else {
838
+ var f = e.a0;
839
+ this.be(e, f, a, b, c, d);
840
+ }
841
+ };
842
+ ToolActionSeparator.$t = markType(ToolActionSeparator, 'ToolActionSeparator', ToolAction.$);
843
+ return ToolActionSeparator;
844
+ }(ToolAction));
845
+ export { ToolActionSeparator };
846
+ /**
847
+ * @hidden
848
+ */
849
+ var ToolActionIconButton = /** @class */ /*@__PURE__*/ (function (_super) {
850
+ tslib_1.__extends(ToolActionIconButton, _super);
851
+ function ToolActionIconButton() {
852
+ var _this = _super !== null && _super.apply(this, arguments) || this;
853
+ _this.be = null;
854
+ return _this;
855
+ }
856
+ ToolActionIconButton.prototype.get_f = function () {
857
+ return 3;
858
+ };
859
+ ToolActionIconButton.prototype.g = function () {
860
+ return null;
861
+ };
862
+ ToolActionIconButton.prototype.b = function (a) {
863
+ var b = new ToolActionEventDetail();
864
+ b.a = this;
865
+ b.b = this.f;
866
+ b.d = a;
867
+ return b;
868
+ };
869
+ ToolActionIconButton.prototype.o = function (a, b) {
870
+ return 30;
871
+ };
872
+ ToolActionIconButton.prototype.bg = function (a, b, c, d, e, f, g) {
873
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
874
+ a.a0 = b;
875
+ if (g.a == 1) {
876
+ b.d = 0;
877
+ }
878
+ else {
879
+ b.d = 3;
880
+ }
881
+ b.a7(0, 2, 1);
882
+ b.a6(0, 1, isNaN_(g.f) ? 0 : g.f);
883
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
884
+ if (b.av == 0) {
885
+ b.aw(c);
886
+ }
887
+ b.bb(c, 0);
888
+ b.ba(c, 0);
889
+ this.be = c;
890
+ this.be.av = 2;
891
+ this.be.au = runOn(this, this.bf);
892
+ }
893
+ this.be.ay = this.am;
894
+ this.be.ax = this.ak;
895
+ b.h = f.a.j;
896
+ };
897
+ ToolActionIconButton.prototype.bf = function (a, b) {
898
+ this.a9(this.b(true), this);
899
+ };
900
+ ToolActionIconButton.prototype.bb = function (a, b, c, d) {
901
+ var _this = this;
902
+ _super.prototype.bb.call(this, a, b, c, d);
903
+ var e = c.b;
904
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
905
+ NativeUIComponent.ab(b.l.r(), [7, 10], function (f) {
906
+ var g = f[0];
907
+ var h = f[1];
908
+ e.a0 = g;
909
+ _this.bg(e, g, h, a, b, c, d);
910
+ });
911
+ }
912
+ else {
913
+ var f = e.a0;
914
+ var g = f.au(0);
915
+ this.bg(e, f, g, a, b, c, d);
916
+ }
917
+ };
918
+ ToolActionIconButton.$t = markType(ToolActionIconButton, 'ToolActionIconButton', ToolAction.$);
919
+ return ToolActionIconButton;
920
+ }(ToolAction));
921
+ export { ToolActionIconButton };
922
+ /**
923
+ * @hidden
924
+ */
925
+ var ToolActionGroupHeader = /** @class */ /*@__PURE__*/ (function (_super) {
926
+ tslib_1.__extends(ToolActionGroupHeader, _super);
927
+ function ToolActionGroupHeader() {
928
+ return _super !== null && _super.apply(this, arguments) || this;
929
+ }
930
+ ToolActionGroupHeader.prototype.get_f = function () {
931
+ return 1;
932
+ };
933
+ ToolActionGroupHeader.prototype.be = function (a, b, c, d, e, f, g) {
934
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
935
+ a.a0 = b;
936
+ if (g.a == 1) {
937
+ b.d = 0;
938
+ }
939
+ else {
940
+ b.d = 3;
941
+ }
942
+ b.a7(0, 2, 1);
943
+ b.a6(0, 1, isNaN_(g.e) ? 0 : g.e);
944
+ b.a6(1, 2, 1);
945
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
946
+ if (b.av == 0) {
947
+ b.aw(c);
948
+ }
949
+ c.e = 1;
950
+ }
951
+ b.h = f.a.j;
952
+ b.aj = BrushUtil.g(255, 200, 200, 200);
953
+ b.ak = BrushUtil.g(255, 80, 80, 80);
954
+ b.aq = new Thickness(1, 0, 0, 0, 2);
955
+ c.au = this.ap;
956
+ c.al = BrushUtil.g(255, 20, 20, 20);
957
+ b.bb(c, 0);
958
+ b.ba(c, 1);
959
+ };
960
+ ToolActionGroupHeader.prototype.bb = function (a, b, c, d) {
961
+ var _this = this;
962
+ _super.prototype.bb.call(this, a, b, c, d);
963
+ var e = c.b;
964
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
965
+ NativeUIComponent.ab(b.l.r(), [7, 3], function (f) {
966
+ var g = f[0];
967
+ var h = f[1];
968
+ e.a0 = g;
969
+ _this.be(e, g, h, a, b, c, d);
970
+ });
971
+ }
972
+ else {
973
+ var f = e.a0;
974
+ var g = f.au(0);
975
+ this.be(e, f, g, a, b, c, d);
976
+ }
977
+ };
978
+ ToolActionGroupHeader.$t = markType(ToolActionGroupHeader, 'ToolActionGroupHeader', ToolAction.$);
979
+ return ToolActionGroupHeader;
980
+ }(ToolAction));
981
+ export { ToolActionGroupHeader };
982
+ /**
983
+ * @hidden
984
+ */
985
+ var ToolActionMenuBase = /** @class */ /*@__PURE__*/ (function (_super) {
986
+ tslib_1.__extends(ToolActionMenuBase, _super);
987
+ function ToolActionMenuBase() {
988
+ var _this = _super.call(this) || this;
989
+ _this.bh = new ToolActionCollection();
990
+ _this.bm = false;
991
+ _this.be = null;
992
+ _this.bk = null;
993
+ _this.bl = false;
994
+ _this.bj = null;
995
+ _this.bo = false;
996
+ _this.bn = false;
997
+ var a = _this.bh;
998
+ a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.bq));
999
+ return _this;
1000
+ }
1001
+ ToolActionMenuBase.prototype.g = function () {
1002
+ return null;
1003
+ };
1004
+ ToolActionMenuBase.prototype.a6 = function (a) {
1005
+ _super.prototype.a6.call(this, a);
1006
+ var b = a;
1007
+ if (b.actions != null) {
1008
+ for (var c = 0; c < b.actions.length; c++) {
1009
+ this.bh.add(ToolAction.a(b.actions[c]));
1010
+ }
1011
+ }
1012
+ };
1013
+ ToolActionMenuBase.prototype.bq = function (a, b) {
1014
+ this.bv();
1015
+ };
1016
+ ToolActionMenuBase.prototype.bv = function () {
1017
+ };
1018
+ Object.defineProperty(ToolActionMenuBase.prototype, "actions", {
1019
+ get: function () {
1020
+ return this.bh;
1021
+ },
1022
+ set: function (a) {
1023
+ var b = this.bh;
1024
+ this.bh = a;
1025
+ if (b != this.bh) {
1026
+ this.a8("Actions", b, this.bh);
1027
+ }
1028
+ },
1029
+ enumerable: true,
1030
+ configurable: true
1031
+ });
1032
+ ToolActionMenuBase.prototype.b = function (a) {
1033
+ var b = new ToolActionEventDetail();
1034
+ b.a = this;
1035
+ b.b = this.f;
1036
+ b.d = a;
1037
+ return b;
1038
+ };
1039
+ ToolActionMenuBase.prototype.bw = function () {
1040
+ this.bt();
1041
+ this.bs();
1042
+ this.bu();
1043
+ if (this.be.t || this.bn) {
1044
+ if (this.bn) {
1045
+ this.bn = false;
1046
+ }
1047
+ else {
1048
+ this.be.ao();
1049
+ }
1050
+ }
1051
+ else {
1052
+ if (this.bo) {
1053
+ this.bx();
1054
+ }
1055
+ else {
1056
+ this.bn = true;
1057
+ }
1058
+ }
1059
+ };
1060
+ ToolActionMenuBase.prototype.bx = function () {
1061
+ this.be.showRelativeToExclusionRect(this.by(), this.bg(), this.bf());
1062
+ };
1063
+ ToolActionMenuBase.prototype.bf = function () {
1064
+ return 1;
1065
+ };
1066
+ ToolActionMenuBase.prototype.bg = function () {
1067
+ return 1;
1068
+ };
1069
+ ToolActionMenuBase.prototype.bu = function () {
1070
+ if (!this.bl) {
1071
+ this.bl = true;
1072
+ this.be.appendPopupContent(this.bk.v);
1073
+ }
1074
+ };
1075
+ ToolActionMenuBase.prototype.bt = function () {
1076
+ if (this.be == null) {
1077
+ if (this.e == null) {
1078
+ return;
1079
+ }
1080
+ this.be = this.e.l.a();
1081
+ }
1082
+ };
1083
+ ToolActionMenuBase.prototype.bs = function () {
1084
+ var _this = this;
1085
+ if (this.bk == null) {
1086
+ NativeUIContent.ac(this.e.l.r(), 0, function (a) { return _this.bk = a; });
1087
+ this.bj = this.e.l.b(this.bk);
1088
+ var a = this.bj;
1089
+ a.contentRefreshed = delegateCombine(a.contentRefreshed, runOn(this, this.br));
1090
+ this.bj.actions = this.actions;
1091
+ }
1092
+ };
1093
+ ToolActionMenuBase.prototype.br = function (a, b) {
1094
+ this.bo = true;
1095
+ this.be.ar();
1096
+ if (this.bn) {
1097
+ this.bn = false;
1098
+ this.bx();
1099
+ }
1100
+ };
1101
+ ToolActionMenuBase.$t = markType(ToolActionMenuBase, 'ToolActionMenuBase', ToolAction.$);
1102
+ return ToolActionMenuBase;
1103
+ }(ToolAction));
1104
+ export { ToolActionMenuBase };
1105
+ /**
1106
+ * @hidden
1107
+ */
1108
+ var ToolActionIconMenu = /** @class */ /*@__PURE__*/ (function (_super) {
1109
+ tslib_1.__extends(ToolActionIconMenu, _super);
1110
+ function ToolActionIconMenu() {
1111
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1112
+ _this.bz = null;
1113
+ return _this;
1114
+ }
1115
+ ToolActionIconMenu.prototype.get_f = function () {
1116
+ return 3;
1117
+ };
1118
+ ToolActionIconMenu.prototype.o = function (a, b) {
1119
+ return 30;
1120
+ };
1121
+ ToolActionIconMenu.prototype.by = function () {
1122
+ return this.e.l.ac(this.bz.v);
1123
+ };
1124
+ ToolActionIconMenu.prototype.b1 = function (a, b, c, d, e, f, g) {
1125
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
1126
+ a.a0 = b;
1127
+ if (g.a == 1) {
1128
+ b.d = 0;
1129
+ }
1130
+ else {
1131
+ b.d = 3;
1132
+ }
1133
+ b.a7(0, 2, 1);
1134
+ b.a6(0, 1, isNaN_(g.f) ? 0 : g.f);
1135
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
1136
+ if (b.av == 0) {
1137
+ b.aw(c);
1138
+ }
1139
+ b.bb(c, 0);
1140
+ b.ba(c, 0);
1141
+ this.bz = c;
1142
+ this.bz.av = 2;
1143
+ this.bz.au = runOn(this, this.b0);
1144
+ }
1145
+ this.bz.ay = this.am;
1146
+ this.bz.ax = this.ak;
1147
+ b.h = f.a.j;
1148
+ };
1149
+ ToolActionIconMenu.prototype.b0 = function (a, b) {
1150
+ this.bw();
1151
+ };
1152
+ ToolActionIconMenu.prototype.bb = function (a, b, c, d) {
1153
+ var _this = this;
1154
+ _super.prototype.bb.call(this, a, b, c, d);
1155
+ var e = c.b;
1156
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
1157
+ NativeUIComponent.ab(b.l.r(), [7, 10], function (f) {
1158
+ var g = f[0];
1159
+ var h = f[1];
1160
+ e.a0 = g;
1161
+ _this.b1(e, g, h, a, b, c, d);
1162
+ });
1163
+ }
1164
+ else {
1165
+ var f = e.a0;
1166
+ var g = f.au(0);
1167
+ this.b1(e, f, g, a, b, c, d);
1168
+ }
1169
+ };
1170
+ ToolActionIconMenu.$t = markType(ToolActionIconMenu, 'ToolActionIconMenu', ToolActionMenuBase.$);
1171
+ return ToolActionIconMenu;
1172
+ }(ToolActionMenuBase));
1173
+ export { ToolActionIconMenu };
1174
+ /**
1175
+ * @hidden
1176
+ */
1177
+ var ToolActionCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
1178
+ tslib_1.__extends(ToolActionCheckbox, _super);
1179
+ function ToolActionCheckbox() {
1180
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1181
+ _this.be = null;
1182
+ return _this;
1183
+ }
1184
+ ToolActionCheckbox.prototype.get_f = function () {
1185
+ return 2;
1186
+ };
1187
+ ToolActionCheckbox.prototype.b = function (a) {
1188
+ var b = new ToolActionEventDetail();
1189
+ b.a = this;
1190
+ b.b = this.f;
1191
+ b.d = a;
1192
+ if (this.be != null) {
1193
+ b.c = this.be.aw;
1194
+ }
1195
+ return b;
1196
+ };
1197
+ ToolActionCheckbox.prototype.x = function () {
1198
+ return this.be.aw;
1199
+ };
1200
+ ToolActionCheckbox.prototype.o = function (a, b) {
1201
+ return 30;
1202
+ };
1203
+ ToolActionCheckbox.prototype.bg = function (a, b, c, d, e, f, g, h) {
1204
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
1205
+ a.a0 = b;
1206
+ if (h.a == 1) {
1207
+ b.d = 0;
1208
+ }
1209
+ else {
1210
+ b.d = 3;
1211
+ }
1212
+ b.a7(0, 2, 1);
1213
+ b.a6(0, 1, isNaN_(h.e) ? 0 : h.e);
1214
+ b.a6(1, 1, isNaN_(h.g) ? 0 : h.g);
1215
+ b.a6(1, 2, 1);
1216
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
1217
+ if (b.av == 0) {
1218
+ b.aw(c);
1219
+ b.aw(d);
1220
+ }
1221
+ b.bb(c, 0);
1222
+ b.ba(c, 1);
1223
+ b.bb(d, 0);
1224
+ b.ba(d, 2);
1225
+ this.be = d;
1226
+ d.av = true;
1227
+ d.d = 2;
1228
+ d.e = 1;
1229
+ d.au = runOn(this, this.bf);
1230
+ c.e = 1;
1231
+ }
1232
+ b.h = g.a.j;
1233
+ c.au = this.ap;
1234
+ c.al = BrushUtil.g(255, 20, 20, 20);
1235
+ };
1236
+ ToolActionCheckbox.prototype.bf = function (a, b) {
1237
+ this.a9(this.b(true), this);
1238
+ };
1239
+ ToolActionCheckbox.prototype.bb = function (a, b, c, d) {
1240
+ var _this = this;
1241
+ _super.prototype.bb.call(this, a, b, c, d);
1242
+ var e = c.b;
1243
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
1244
+ NativeUIComponent.ab(b.l.r(), [7, 3, 6], function (f) {
1245
+ var g = f[0];
1246
+ var h = f[1];
1247
+ var i = f[2];
1248
+ e.a0 = g;
1249
+ _this.bg(e, g, h, i, a, b, c, d);
1250
+ });
1251
+ }
1252
+ else {
1253
+ var f = e.a0;
1254
+ var g = f.au(0);
1255
+ var h = f.au(1);
1256
+ this.bg(e, f, g, h, a, b, c, d);
1257
+ }
1258
+ };
1259
+ ToolActionCheckbox.$t = markType(ToolActionCheckbox, 'ToolActionCheckbox', ToolAction.$);
1260
+ return ToolActionCheckbox;
1261
+ }(ToolAction));
1262
+ export { ToolActionCheckbox };
1263
+ /**
1264
+ * @hidden
1265
+ */
1266
+ var ToolActionNumberInput = /** @class */ /*@__PURE__*/ (function (_super) {
1267
+ tslib_1.__extends(ToolActionNumberInput, _super);
1268
+ function ToolActionNumberInput() {
1269
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1270
+ _this.be = null;
1271
+ return _this;
1272
+ }
1273
+ ToolActionNumberInput.prototype.get_f = function () {
1274
+ return 5;
1275
+ };
1276
+ ToolActionNumberInput.prototype.x = function () {
1277
+ return this.bf();
1278
+ };
1279
+ ToolActionNumberInput.prototype.o = function (a, b) {
1280
+ return 100;
1281
+ };
1282
+ ToolActionNumberInput.prototype.bh = function (a, b, c, d, e, f, g, h) {
1283
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
1284
+ a.a0 = b;
1285
+ if (h.a == 1) {
1286
+ b.d = 0;
1287
+ }
1288
+ else {
1289
+ b.d = 3;
1290
+ }
1291
+ b.a7(0, 2, 1);
1292
+ b.a6(0, 1, isNaN_(h.e) ? 0 : h.e);
1293
+ b.a6(1, 1, isNaN_(h.g) ? 0 : h.g);
1294
+ b.a6(1, 2, 1);
1295
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
1296
+ if (b.av == 0) {
1297
+ b.aw(c);
1298
+ b.aw(d);
1299
+ }
1300
+ b.bb(c, 0);
1301
+ b.ba(c, 1);
1302
+ b.bb(d, 0);
1303
+ b.ba(d, 2);
1304
+ this.be = d;
1305
+ d.n = 100;
1306
+ d.au = 2;
1307
+ d.ax = 1;
1308
+ d.d = 2;
1309
+ d.e = 1;
1310
+ d.aw = runOn(this, this.bg);
1311
+ c.e = 1;
1312
+ }
1313
+ b.h = g.a.j;
1314
+ c.au = this.ap;
1315
+ c.al = BrushUtil.g(255, 20, 20, 20);
1316
+ };
1317
+ ToolActionNumberInput.prototype.bf = function () {
1318
+ var _this = this;
1319
+ var a;
1320
+ a = NaN;
1321
+ if (this.be != null && ((function () { var b = tryParseNumber(_this.be.ay, a); a = b.p1; return b.ret; })())) {
1322
+ }
1323
+ return a;
1324
+ };
1325
+ ToolActionNumberInput.prototype.b = function (a) {
1326
+ var b = new ToolActionEventDetail();
1327
+ b.a = this;
1328
+ b.d = a;
1329
+ b.b = this.f;
1330
+ var c;
1331
+ b.f = this.bf();
1332
+ return b;
1333
+ };
1334
+ ToolActionNumberInput.prototype.bg = function (a, b) {
1335
+ var c = a;
1336
+ var d = this.b(true);
1337
+ this.a9(d, this);
1338
+ };
1339
+ ToolActionNumberInput.prototype.bb = function (a, b, c, d) {
1340
+ var _this = this;
1341
+ _super.prototype.bb.call(this, a, b, c, d);
1342
+ var e = c.b;
1343
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
1344
+ NativeUIComponent.ab(b.l.r(), [7, 3, 2], function (f) {
1345
+ var g = f[0];
1346
+ var h = f[1];
1347
+ var i = f[2];
1348
+ e.a0 = g;
1349
+ _this.bh(e, g, h, i, a, b, c, d);
1350
+ });
1351
+ }
1352
+ else {
1353
+ var f = e.a0;
1354
+ var g = f.au(0);
1355
+ var h = f.au(1);
1356
+ this.bh(e, f, g, h, a, b, c, d);
1357
+ }
1358
+ };
1359
+ ToolActionNumberInput.$t = markType(ToolActionNumberInput, 'ToolActionNumberInput', ToolAction.$);
1360
+ return ToolActionNumberInput;
1361
+ }(ToolAction));
1362
+ export { ToolActionNumberInput };
1363
+ /**
1364
+ * @hidden
1365
+ */
1366
+ var ToolActionCollection = /** @class */ /*@__PURE__*/ (function (_super) {
1367
+ tslib_1.__extends(ToolActionCollection, _super);
1368
+ function ToolActionCollection() {
1369
+ return _super.call(this, ToolAction.$, 0) || this;
1370
+ }
1371
+ ToolActionCollection.$t = markType(ToolActionCollection, 'ToolActionCollection', ObservableCollection$1.$.specialize(ToolAction.$));
1372
+ return ToolActionCollection;
1373
+ }(ObservableCollection$1));
1374
+ export { ToolActionCollection };
1375
+ /**
1376
+ * @hidden
1377
+ */
1378
+ var ToolActionPerformedEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
1379
+ tslib_1.__extends(ToolActionPerformedEventArgs, _super);
1380
+ function ToolActionPerformedEventArgs() {
1381
+ var _this = _super.call(this) || this;
1382
+ _this.c = false;
1383
+ _this.a = null;
1384
+ _this.b = null;
1385
+ _this.b = new ToolActionEventDetailCollection();
1386
+ return _this;
1387
+ }
1388
+ ToolActionPerformedEventArgs.$t = markType(ToolActionPerformedEventArgs, 'ToolActionPerformedEventArgs');
1389
+ return ToolActionPerformedEventArgs;
1390
+ }(Base));
1391
+ export { ToolActionPerformedEventArgs };
1392
+ /**
1393
+ * @hidden
1394
+ */
1395
+ var ToolActionEventDetail = /** @class */ /*@__PURE__*/ (function (_super) {
1396
+ tslib_1.__extends(ToolActionEventDetail, _super);
1397
+ function ToolActionEventDetail() {
1398
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1399
+ _this.a = null;
1400
+ _this.b = 0;
1401
+ _this.d = false;
1402
+ _this.c = false;
1403
+ _this.f = 0;
1404
+ _this.e = new Date();
1405
+ _this.g = null;
1406
+ return _this;
1407
+ }
1408
+ ToolActionEventDetail.$t = markType(ToolActionEventDetail, 'ToolActionEventDetail');
1409
+ return ToolActionEventDetail;
1410
+ }(Base));
1411
+ export { ToolActionEventDetail };
1412
+ /**
1413
+ * @hidden
1414
+ */
1415
+ var ToolActionEventDetailCollection = /** @class */ /*@__PURE__*/ (function (_super) {
1416
+ tslib_1.__extends(ToolActionEventDetailCollection, _super);
1417
+ function ToolActionEventDetailCollection() {
1418
+ return _super.call(this, ToolActionEventDetail.$, 0) || this;
1419
+ }
1420
+ ToolActionEventDetailCollection.$t = markType(ToolActionEventDetailCollection, 'ToolActionEventDetailCollection', ObservableCollection$1.$.specialize(ToolActionEventDetail.$));
1421
+ return ToolActionEventDetailCollection;
1422
+ }(ObservableCollection$1));
1423
+ export { ToolActionEventDetailCollection };
1424
+ /**
1425
+ * @hidden
1426
+ */
1427
+ var ToolPanel = /** @class */ /*@__PURE__*/ (function (_super) {
1428
+ tslib_1.__extends(ToolPanel, _super);
1429
+ function ToolPanel() {
1430
+ var _this = _super.call(this) || this;
1431
+ _this.l = null;
1432
+ _this.p = null;
1433
+ _this.s = false;
1434
+ _this.q = null;
1435
+ _this.f = new ToolActionMeasurementContext();
1436
+ _this.propertyChanged = null;
1437
+ _this.d = new ToolActionCollection();
1438
+ _this.contentRefreshed = null;
1439
+ _this.t = false;
1440
+ _this.w = new Dictionary$2(String_$type, List$1.$.specialize(ToolAction.$), 0);
1441
+ _this.x = new Dictionary$2(String_$type, List$1.$.specialize(ToolAction.$), 0);
1442
+ _this.v = new Dictionary$2(String_$type, ToolAction.$, 0);
1443
+ _this.m = null;
1444
+ _this.a = null;
1445
+ _this.a5 = ToolPanel.a8;
1446
+ _this.a6 = ToolPanel.a9;
1447
+ _this.b = null;
1448
+ _this.z = Number.POSITIVE_INFINITY;
1449
+ _this.i = ToolPanel.j;
1450
+ _this.onCommand = null;
1451
+ var a = _this.actions;
1452
+ a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.ak));
1453
+ NativeUIInputsFactory.m();
1454
+ var b = new ToolPanelView();
1455
+ b.c = _this;
1456
+ _this.l = b;
1457
+ _this.l.x();
1458
+ return _this;
1459
+ }
1460
+ Object.defineProperty(ToolPanel.prototype, "r", {
1461
+ get: function () {
1462
+ if (this.q == null) {
1463
+ this.q = new SRProvider(this.l.k);
1464
+ this.q.cb("Layouts");
1465
+ }
1466
+ return this.q;
1467
+ },
1468
+ enumerable: true,
1469
+ configurable: true
1470
+ });
1471
+ ToolPanel.prototype.aq = function (a) {
1472
+ this.b = a;
1473
+ var b = this.b;
1474
+ b.rowUpdating = delegateCombine(b.rowUpdating, runOn(this, this.aj));
1475
+ var c = this.b;
1476
+ c.contentRefreshed = delegateCombine(c.contentRefreshed, runOn(this, this.ag));
1477
+ this.b.k = this.k;
1478
+ this.b.ai = true;
1479
+ var d = this.b;
1480
+ d.itemHeightRequested = delegateCombine(d.itemHeightRequested, runOn(this, this.ah));
1481
+ var e = this.b;
1482
+ e.itemWidthRequested = delegateCombine(e.itemWidthRequested, runOn(this, this.ai));
1483
+ };
1484
+ ToolPanel.prototype.ag = function (a, b) {
1485
+ if (this.contentRefreshed != null) {
1486
+ this.contentRefreshed(this, new ToolPanelContentRefreshedEventArgs());
1487
+ }
1488
+ };
1489
+ ToolPanel.prototype.ah = function (a, b) {
1490
+ var c = b.c;
1491
+ var d = new ToolActionMeasurementContext();
1492
+ this.az(d);
1493
+ c.a4(this, d);
1494
+ if (!isNaN_(d.c)) {
1495
+ b.a = d.c;
1496
+ }
1497
+ else {
1498
+ b.a = this.b.av;
1499
+ }
1500
+ };
1501
+ ToolPanel.prototype.ai = function (a, b) {
1502
+ var c = b.c;
1503
+ var d = new ToolActionMeasurementContext();
1504
+ this.az(d);
1505
+ c.a4(this, d);
1506
+ if (!isNaN_(d.d)) {
1507
+ b.a = d.d;
1508
+ }
1509
+ else {
1510
+ }
1511
+ };
1512
+ ToolPanel.prototype.aj = function (a, b) {
1513
+ var c = b.a.n;
1514
+ var d = a;
1515
+ if (this.k == 1) {
1516
+ var e = new ToolActionMeasurementContext();
1517
+ this.az(e);
1518
+ c.a4(this, e);
1519
+ c.ba(d, this, b, e);
1520
+ }
1521
+ else {
1522
+ c.ba(d, this, b, this.f);
1523
+ }
1524
+ };
1525
+ ToolPanel.prototype.aw = function (a) {
1526
+ this.z = a.width;
1527
+ this.a2();
1528
+ };
1529
+ Object.defineProperty(ToolPanel.prototype, "actions", {
1530
+ get: function () {
1531
+ return this.d;
1532
+ },
1533
+ set: function (a) {
1534
+ var b = this.d;
1535
+ this.d = a;
1536
+ if (b != this.d) {
1537
+ this.ax("Actions", b, this.d);
1538
+ }
1539
+ },
1540
+ enumerable: true,
1541
+ configurable: true
1542
+ });
1543
+ ToolPanel.prototype.ak = function (a, b) {
1544
+ var e_1, _a, e_2, _b;
1545
+ if (b.oldItems != null) {
1546
+ try {
1547
+ for (var _c = tslib_1.__values(fromEn(b.oldItems)), _d = _c.next(); !_d.done; _d = _c.next()) {
1548
+ var c = _d.value;
1549
+ if (typeCast(INotifyPropertyChanged_$type, c) !== null) {
1550
+ var d = c;
1551
+ d.propertyChanged = delegateRemove(d.propertyChanged, runOn(this, this.ar));
1552
+ }
1553
+ }
1554
+ }
1555
+ catch (e_1_1) {
1556
+ e_1 = { error: e_1_1 };
1557
+ }
1558
+ finally {
1559
+ try {
1560
+ if (_d && !_d.done && (_a = _c.return))
1561
+ _a.call(_c);
1562
+ }
1563
+ finally {
1564
+ if (e_1)
1565
+ throw e_1.error;
1566
+ }
1567
+ }
1568
+ }
1569
+ if (b.newItems != null) {
1570
+ try {
1571
+ for (var _e = tslib_1.__values(fromEn(b.newItems)), _f = _e.next(); !_f.done; _f = _e.next()) {
1572
+ var e = _f.value;
1573
+ if (typeCast(INotifyPropertyChanged_$type, e) !== null) {
1574
+ var f = e;
1575
+ f.propertyChanged = delegateCombine(f.propertyChanged, runOn(this, this.ar));
1576
+ }
1577
+ }
1578
+ }
1579
+ catch (e_2_1) {
1580
+ e_2 = { error: e_2_1 };
1581
+ }
1582
+ finally {
1583
+ try {
1584
+ if (_f && !_f.done && (_b = _e.return))
1585
+ _b.call(_e);
1586
+ }
1587
+ finally {
1588
+ if (e_2)
1589
+ throw e_2.error;
1590
+ }
1591
+ }
1592
+ }
1593
+ this.av();
1594
+ };
1595
+ ToolPanel.prototype.av = function () {
1596
+ this.a2();
1597
+ };
1598
+ ToolPanel.prototype.a2 = function () {
1599
+ if (this.t) {
1600
+ return;
1601
+ }
1602
+ this.t = true;
1603
+ this.a.enqueueAction(runOn(this, this.an));
1604
+ };
1605
+ ToolPanel.prototype.an = function () {
1606
+ if (!this.t) {
1607
+ return;
1608
+ }
1609
+ this.t = false;
1610
+ this.al();
1611
+ this.a4();
1612
+ for (var a = 0; a < this.d.count; a++) {
1613
+ this.as(this.d._inner[a]);
1614
+ }
1615
+ this.ao();
1616
+ };
1617
+ ToolPanel.prototype.al = function () {
1618
+ this.w.clear();
1619
+ this.x.clear();
1620
+ this.v.clear();
1621
+ for (var a = 0; a < this.d.count; a++) {
1622
+ this.d._inner[a].e = this;
1623
+ if (this.d._inner[a].ao != null) {
1624
+ this.v.item(this.d._inner[a].ao, this.d._inner[a]);
1625
+ }
1626
+ }
1627
+ for (var b = 0; b < this.d.count; b++) {
1628
+ if (this.d._inner[b].ax != null) {
1629
+ if (this.v.containsKey(this.d._inner[b].ax)) {
1630
+ if (!this.w.containsKey(this.d._inner[b].ax)) {
1631
+ this.w.item(this.d._inner[b].ax, new List$1(ToolAction.$, 0));
1632
+ }
1633
+ var c = this.w.item(this.d._inner[b].ax);
1634
+ c.add(this.d._inner[b]);
1635
+ }
1636
+ }
1637
+ }
1638
+ for (var d = 0; d < this.d.count; d++) {
1639
+ if (this.d._inner[d].f == 6) {
1640
+ var e = this.d._inner[d].bf;
1641
+ if (!this.x.containsKey(e)) {
1642
+ this.x.item(e, new List$1(ToolAction.$, 0));
1643
+ }
1644
+ this.x.item(e).add(this.d._inner[d]);
1645
+ }
1646
+ }
1647
+ };
1648
+ ToolPanel.prototype.u = function (a) {
1649
+ if (a.ao == null) {
1650
+ return false;
1651
+ }
1652
+ return this.w.containsKey(a.ao);
1653
+ };
1654
+ ToolPanel.prototype.c = function (a) {
1655
+ if (this.v.containsKey(a)) {
1656
+ return this.v.item(a);
1657
+ }
1658
+ return null;
1659
+ };
1660
+ ToolPanel.prototype.y = function (a) {
1661
+ if (a.ao == null) {
1662
+ return null;
1663
+ }
1664
+ if (this.w.containsKey(a.ao)) {
1665
+ return this.w.item(a.ao);
1666
+ }
1667
+ return null;
1668
+ };
1669
+ ToolPanel.prototype.as = function (a) {
1670
+ var b = new ToolActionMeasurementContext();
1671
+ this.az(b);
1672
+ a.a4(this, b);
1673
+ this.at(this.f, b);
1674
+ };
1675
+ ToolPanel.prototype.az = function (a) {
1676
+ a.a = this.k;
1677
+ a.b = this.z;
1678
+ };
1679
+ ToolPanel.prototype.at = function (a, b) {
1680
+ if (!isNaN_(b.e)) {
1681
+ if (isNaN_(a.e)) {
1682
+ a.e = b.e;
1683
+ }
1684
+ else {
1685
+ a.e = Math.max(a.e, b.e);
1686
+ }
1687
+ }
1688
+ if (!isNaN_(b.g)) {
1689
+ if (isNaN_(a.g)) {
1690
+ a.g = b.g;
1691
+ }
1692
+ else {
1693
+ a.g = Math.max(a.g, b.g);
1694
+ }
1695
+ }
1696
+ };
1697
+ ToolPanel.prototype.a4 = function () {
1698
+ this.f = new ToolActionMeasurementContext();
1699
+ this.f.a = this.k;
1700
+ this.f.b = this.z;
1701
+ };
1702
+ ToolPanel.prototype.ao = function () {
1703
+ if (this.b.itemsSource != this.actions) {
1704
+ this.b.itemsSource = this.actions;
1705
+ }
1706
+ };
1707
+ ToolPanel.prototype.ap = function () {
1708
+ if (this.t) {
1709
+ this.an();
1710
+ }
1711
+ if (this.b != null) {
1712
+ this.b.bt();
1713
+ }
1714
+ };
1715
+ ToolPanel.prototype.a3 = function (a) {
1716
+ var b = a.bf;
1717
+ var c = a.ao;
1718
+ if (this.x != null) {
1719
+ if (this.x.containsKey(b)) {
1720
+ for (var d = 0; d < this.x.item(b).count; d++) {
1721
+ if (this.x.item(b)._inner[d].ao != c) {
1722
+ this.x.item(b)._inner[d].bg();
1723
+ }
1724
+ }
1725
+ }
1726
+ }
1727
+ };
1728
+ ToolPanel.prototype.ar = function (a, b) {
1729
+ this.av();
1730
+ };
1731
+ ToolPanel.prototype.notifySizeChanged = function () {
1732
+ this.l.u();
1733
+ };
1734
+ ToolPanel.prototype.destroy = function () {
1735
+ this.provideContainer(null);
1736
+ };
1737
+ ToolPanel.prototype.provideContainer = function (a) {
1738
+ this.l.v(a);
1739
+ };
1740
+ Object.defineProperty(ToolPanel.prototype, "n", {
1741
+ get: function () {
1742
+ return this.m;
1743
+ },
1744
+ set: function (a) {
1745
+ var b = this.m;
1746
+ this.m = a;
1747
+ if (b != this.m) {
1748
+ this.ax("CellTextStyle", b, this.m);
1749
+ }
1750
+ },
1751
+ enumerable: true,
1752
+ configurable: true
1753
+ });
1754
+ ToolPanel.prototype.o = function () {
1755
+ if (this.n == null) {
1756
+ return this.l.f();
1757
+ }
1758
+ return this.n;
1759
+ };
1760
+ ToolPanel.prototype.ax = function (a, b, c) {
1761
+ if (this.propertyChanged != null) {
1762
+ this.propertyChanged(this, new PropertyChangedEventArgs(a));
1763
+ }
1764
+ this.a0(a, b, c);
1765
+ };
1766
+ ToolPanel.prototype.a0 = function (a, b, c) {
1767
+ switch (a) {
1768
+ case "CellTextStyle":
1769
+ this.a2();
1770
+ break;
1771
+ case "BackgroundColor":
1772
+ case "TextColor":
1773
+ this.a2();
1774
+ break;
1775
+ case "Orientation":
1776
+ if (this.b != null) {
1777
+ this.b.k = this.k;
1778
+ }
1779
+ break;
1780
+ case "Actions":
1781
+ if (b != null) {
1782
+ var d = b;
1783
+ d.collectionChanged = delegateRemove(d.collectionChanged, runOn(this, this.ak));
1784
+ }
1785
+ if (c != null) {
1786
+ var e = c;
1787
+ e.collectionChanged = delegateCombine(e.collectionChanged, runOn(this, this.ak));
1788
+ }
1789
+ this.a2();
1790
+ break;
1791
+ }
1792
+ };
1793
+ Object.defineProperty(ToolPanel.prototype, "a7", {
1794
+ get: function () {
1795
+ return this.a5;
1796
+ },
1797
+ set: function (a) {
1798
+ var b = this.a5;
1799
+ this.a5 = a;
1800
+ if (b != this.a5) {
1801
+ this.ax("BackgroundColor", b, a);
1802
+ }
1803
+ },
1804
+ enumerable: true,
1805
+ configurable: true
1806
+ });
1807
+ Object.defineProperty(ToolPanel.prototype, "ba", {
1808
+ get: function () {
1809
+ return this.a6;
1810
+ },
1811
+ set: function (a) {
1812
+ var b = this.a6;
1813
+ this.a6 = a;
1814
+ if (b != this.a6) {
1815
+ this.ax("TextColor", b, a);
1816
+ }
1817
+ },
1818
+ enumerable: true,
1819
+ configurable: true
1820
+ });
1821
+ Object.defineProperty(ToolPanel.prototype, "k", {
1822
+ get: function () {
1823
+ return this.i;
1824
+ },
1825
+ set: function (a) {
1826
+ var b = this.i;
1827
+ this.i = a;
1828
+ if (b != this.i) {
1829
+ this.ax("Orientation", enumGetBox(ToolPanelOrientation_$type, b), enumGetBox(ToolPanelOrientation_$type, a));
1830
+ }
1831
+ },
1832
+ enumerable: true,
1833
+ configurable: true
1834
+ });
1835
+ ToolPanel.prototype.ay = function (a, b) {
1836
+ if (this.onCommand != null) {
1837
+ this.onCommand(this, ((function () {
1838
+ var $ret = new ToolCommandEventArgs();
1839
+ $ret.a = b;
1840
+ return $ret;
1841
+ })()));
1842
+ }
1843
+ if (a.f == 6) {
1844
+ this.a3(a);
1845
+ }
1846
+ };
1847
+ ToolPanel.$t = markType(ToolPanel, 'ToolPanel', Base.$, [INotifyPropertyChanged_$type]);
1848
+ ToolPanel.a8 = BrushUtil.g(255, 248, 248, 248);
1849
+ ToolPanel.a9 = BrushUtil.g(255, 24, 29, 31);
1850
+ ToolPanel.j = 0;
1851
+ return ToolPanel;
1852
+ }(Base));
1853
+ export { ToolPanel };