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