igniteui-webcomponents-layouts 3.2.2 → 3.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/bundles/igniteui-webcomponents-layouts.umd.js +6913 -146
  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 +100 -100
  24. package/esm2015/lib/PropertyEditorTreeTransformer.js +8 -8
  25. package/esm2015/lib/ToolAction.js +7 -0
  26. package/esm2015/lib/ToolActionCheckbox.js +7 -0
  27. package/esm2015/lib/ToolActionCollection.js +7 -0
  28. package/esm2015/lib/ToolActionEventDetail.js +7 -0
  29. package/esm2015/lib/ToolActionEventDetailCollection.js +7 -0
  30. package/esm2015/lib/ToolActionGroupHeader.js +7 -0
  31. package/esm2015/lib/ToolActionIconButton.js +7 -0
  32. package/esm2015/lib/ToolActionIconMenu.js +7 -0
  33. package/esm2015/lib/ToolActionMeasurementContext.js +31 -0
  34. package/esm2015/lib/ToolActionMenuBase.js +7 -0
  35. package/esm2015/lib/ToolActionNumberInput.js +7 -0
  36. package/esm2015/lib/ToolActionPerformedEventArgs.js +7 -0
  37. package/esm2015/lib/ToolActionSeparator.js +7 -0
  38. package/esm2015/lib/ToolCommandEventArgs.js +20 -0
  39. package/esm2015/lib/ToolPanel.js +7 -0
  40. package/esm2015/lib/ToolPanelContentRefreshedEventArgs.js +19 -0
  41. package/esm2015/lib/ToolPanelOrientation.js +16 -0
  42. package/esm2015/lib/ToolPanelView.js +7 -0
  43. package/esm2015/lib/ToolPanelView_combined.js +1515 -0
  44. package/esm2015/lib/Toolbar.js +7 -0
  45. package/esm2015/lib/ToolbarIconManager.js +40 -0
  46. package/esm2015/lib/ToolbarOrientation.js +16 -0
  47. package/esm2015/lib/ToolbarView.js +7 -0
  48. package/esm2015/lib/ToolbarView_combined.js +387 -0
  49. package/esm2015/lib/igc-list-panel-component.js +457 -0
  50. package/esm2015/lib/igc-list-panel-content-refreshed-event-args.js +24 -0
  51. package/esm2015/lib/igc-list-panel-item-model.js +52 -0
  52. package/esm2015/lib/igc-list-panel-module.js +17 -0
  53. package/esm2015/lib/igc-list-panel-template-height-requested-event-args.js +42 -0
  54. package/esm2015/lib/igc-list-panel-template-item-updating-event-args.js +45 -0
  55. package/esm2015/lib/igc-list-panel-template-width-requested-event-args.js +42 -0
  56. package/esm2015/lib/igc-property-editor-panel-component.js +1 -5
  57. package/esm2015/lib/igc-tool-action-checkbox-component.js +49 -0
  58. package/esm2015/lib/igc-tool-action-checkbox-module.js +16 -0
  59. package/esm2015/lib/igc-tool-action-collection.js +48 -0
  60. package/esm2015/lib/igc-tool-action-component.js +312 -0
  61. package/esm2015/lib/igc-tool-action-event-detail-collection.js +48 -0
  62. package/esm2015/lib/igc-tool-action-event-detail.js +85 -0
  63. package/esm2015/lib/igc-tool-action-group-header-component.js +49 -0
  64. package/esm2015/lib/igc-tool-action-group-header-module.js +16 -0
  65. package/esm2015/lib/igc-tool-action-icon-button-component.js +49 -0
  66. package/esm2015/lib/igc-tool-action-icon-button-module.js +16 -0
  67. package/esm2015/lib/igc-tool-action-icon-menu-component.js +49 -0
  68. package/esm2015/lib/igc-tool-action-icon-menu-module.js +16 -0
  69. package/esm2015/lib/igc-tool-action-menu-base-component.js +89 -0
  70. package/esm2015/lib/igc-tool-action-module.js +16 -0
  71. package/esm2015/lib/igc-tool-action-number-input-component.js +49 -0
  72. package/esm2015/lib/igc-tool-action-number-input-module.js +16 -0
  73. package/esm2015/lib/igc-tool-action-performed-event-args.js +80 -0
  74. package/esm2015/lib/igc-tool-action-separator-component.js +49 -0
  75. package/esm2015/lib/igc-tool-action-separator-module.js +16 -0
  76. package/esm2015/lib/igc-tool-command-event-args.js +30 -0
  77. package/esm2015/lib/igc-tool-panel-component.js +379 -0
  78. package/esm2015/lib/igc-tool-panel-content-refreshed-event-args.js +24 -0
  79. package/esm2015/lib/igc-tool-panel-module.js +29 -0
  80. package/esm2015/lib/igc-toolbar-component.js +412 -0
  81. package/esm2015/lib/igc-toolbar-module.js +19 -0
  82. package/esm2015/public_api.js +73 -0
  83. package/esm5/lib/IExternalListPanel.js +11 -0
  84. package/esm5/lib/IExternalToolPanel.js +11 -0
  85. package/esm5/lib/IExternalToolbar.js +11 -0
  86. package/esm5/lib/IListPanelView.js +11 -0
  87. package/esm5/lib/IPropertyEditorPanelView.js +11 -0
  88. package/esm5/lib/IToolPanelView.js +11 -0
  89. package/esm5/lib/IToolbarView.js +11 -0
  90. package/esm5/lib/ListPanel.js +7 -0
  91. package/esm5/lib/ListPanelContentRefreshedEventArgs.js +20 -0
  92. package/esm5/lib/ListPanelDataBindingEventArgs.js +24 -0
  93. package/esm5/lib/ListPanelDataSourceNotificationBridge.js +7 -0
  94. package/esm5/lib/ListPanelItemModel.js +80 -0
  95. package/esm5/lib/ListPanelItemPresenter.js +22 -0
  96. package/esm5/lib/ListPanelLayoutPanel.js +7 -0
  97. package/esm5/lib/ListPanelOrientation.js +16 -0
  98. package/esm5/lib/ListPanelTemplateHeightRequestedEventArgs.js +24 -0
  99. package/esm5/lib/ListPanelTemplateItemUpdatingEventArgs.js +24 -0
  100. package/esm5/lib/ListPanelTemplateWidthRequestedEventArgs.js +24 -0
  101. package/esm5/lib/ListPanelView.js +7 -0
  102. package/esm5/lib/ListPanelView_combined.js +1045 -0
  103. package/esm5/lib/PropertyEditorPanelView_combined.js +100 -100
  104. package/esm5/lib/PropertyEditorTreeTransformer.js +8 -8
  105. package/esm5/lib/ToolAction.js +7 -0
  106. package/esm5/lib/ToolActionCheckbox.js +7 -0
  107. package/esm5/lib/ToolActionCollection.js +7 -0
  108. package/esm5/lib/ToolActionEventDetail.js +7 -0
  109. package/esm5/lib/ToolActionEventDetailCollection.js +7 -0
  110. package/esm5/lib/ToolActionGroupHeader.js +7 -0
  111. package/esm5/lib/ToolActionIconButton.js +7 -0
  112. package/esm5/lib/ToolActionIconMenu.js +7 -0
  113. package/esm5/lib/ToolActionMeasurementContext.js +33 -0
  114. package/esm5/lib/ToolActionMenuBase.js +7 -0
  115. package/esm5/lib/ToolActionNumberInput.js +7 -0
  116. package/esm5/lib/ToolActionPerformedEventArgs.js +7 -0
  117. package/esm5/lib/ToolActionSeparator.js +7 -0
  118. package/esm5/lib/ToolCommandEventArgs.js +22 -0
  119. package/esm5/lib/ToolPanel.js +7 -0
  120. package/esm5/lib/ToolPanelContentRefreshedEventArgs.js +20 -0
  121. package/esm5/lib/ToolPanelOrientation.js +16 -0
  122. package/esm5/lib/ToolPanelView.js +7 -0
  123. package/esm5/lib/ToolPanelView_combined.js +1663 -0
  124. package/esm5/lib/Toolbar.js +7 -0
  125. package/esm5/lib/ToolbarIconManager.js +44 -0
  126. package/esm5/lib/ToolbarOrientation.js +16 -0
  127. package/esm5/lib/ToolbarView.js +7 -0
  128. package/esm5/lib/ToolbarView_combined.js +459 -0
  129. package/esm5/lib/igc-list-panel-component.js +535 -0
  130. package/esm5/lib/igc-list-panel-content-refreshed-event-args.js +30 -0
  131. package/esm5/lib/igc-list-panel-item-model.js +74 -0
  132. package/esm5/lib/igc-list-panel-module.js +21 -0
  133. package/esm5/lib/igc-list-panel-template-height-requested-event-args.js +60 -0
  134. package/esm5/lib/igc-list-panel-template-item-updating-event-args.js +59 -0
  135. package/esm5/lib/igc-list-panel-template-width-requested-event-args.js +60 -0
  136. package/esm5/lib/igc-property-editor-panel-component.js +1 -5
  137. package/esm5/lib/igc-tool-action-checkbox-component.js +58 -0
  138. package/esm5/lib/igc-tool-action-checkbox-module.js +20 -0
  139. package/esm5/lib/igc-tool-action-collection.js +53 -0
  140. package/esm5/lib/igc-tool-action-component.js +388 -0
  141. package/esm5/lib/igc-tool-action-event-detail-collection.js +53 -0
  142. package/esm5/lib/igc-tool-action-event-detail.js +119 -0
  143. package/esm5/lib/igc-tool-action-group-header-component.js +58 -0
  144. package/esm5/lib/igc-tool-action-group-header-module.js +20 -0
  145. package/esm5/lib/igc-tool-action-icon-button-component.js +58 -0
  146. package/esm5/lib/igc-tool-action-icon-button-module.js +20 -0
  147. package/esm5/lib/igc-tool-action-icon-menu-component.js +58 -0
  148. package/esm5/lib/igc-tool-action-icon-menu-module.js +20 -0
  149. package/esm5/lib/igc-tool-action-menu-base-component.js +103 -0
  150. package/esm5/lib/igc-tool-action-module.js +20 -0
  151. package/esm5/lib/igc-tool-action-number-input-component.js +58 -0
  152. package/esm5/lib/igc-tool-action-number-input-module.js +20 -0
  153. package/esm5/lib/igc-tool-action-performed-event-args.js +98 -0
  154. package/esm5/lib/igc-tool-action-separator-component.js +58 -0
  155. package/esm5/lib/igc-tool-action-separator-module.js +20 -0
  156. package/esm5/lib/igc-tool-command-event-args.js +40 -0
  157. package/esm5/lib/igc-tool-panel-component.js +449 -0
  158. package/esm5/lib/igc-tool-panel-content-refreshed-event-args.js +30 -0
  159. package/esm5/lib/igc-tool-panel-module.js +33 -0
  160. package/esm5/lib/igc-toolbar-component.js +484 -0
  161. package/esm5/lib/igc-toolbar-module.js +23 -0
  162. package/esm5/public_api.js +73 -0
  163. package/fesm2015/igniteui-webcomponents-layouts.js +6038 -148
  164. package/fesm5/igniteui-webcomponents-layouts.js +6839 -148
  165. package/lib/IExternalListPanel.d.ts +13 -0
  166. package/lib/IExternalToolPanel.d.ts +13 -0
  167. package/lib/IExternalToolbar.d.ts +13 -0
  168. package/lib/IListPanelView.d.ts +25 -0
  169. package/lib/IPropertyEditorPanelView.d.ts +26 -0
  170. package/lib/IToolPanelView.d.ts +25 -0
  171. package/lib/IToolbarView.d.ts +25 -0
  172. package/lib/ListPanel.d.ts +1 -0
  173. package/lib/ListPanelContentRefreshedEventArgs.d.ts +8 -0
  174. package/lib/ListPanelDataBindingEventArgs.d.ts +10 -0
  175. package/lib/ListPanelDataSourceNotificationBridge.d.ts +1 -0
  176. package/lib/ListPanelItemModel.d.ts +22 -0
  177. package/lib/ListPanelItemPresenter.d.ts +9 -0
  178. package/lib/ListPanelLayoutPanel.d.ts +1 -0
  179. package/lib/ListPanelOrientation.d.ts +9 -0
  180. package/lib/ListPanelTemplateHeightRequestedEventArgs.d.ts +10 -0
  181. package/lib/ListPanelTemplateItemUpdatingEventArgs.d.ts +12 -0
  182. package/lib/ListPanelTemplateWidthRequestedEventArgs.d.ts +10 -0
  183. package/lib/ListPanelView.d.ts +1 -0
  184. package/lib/ListPanelView_combined.d.ts +197 -0
  185. package/lib/PropertyEditorPanelView_combined.d.ts +1 -1
  186. package/lib/ToolAction.d.ts +1 -0
  187. package/lib/ToolActionCheckbox.d.ts +1 -0
  188. package/lib/ToolActionCollection.d.ts +1 -0
  189. package/lib/ToolActionEventDetail.d.ts +1 -0
  190. package/lib/ToolActionEventDetailCollection.d.ts +1 -0
  191. package/lib/ToolActionGroupHeader.d.ts +1 -0
  192. package/lib/ToolActionIconButton.d.ts +1 -0
  193. package/lib/ToolActionIconMenu.d.ts +1 -0
  194. package/lib/ToolActionMeasurementContext.d.ts +16 -0
  195. package/lib/ToolActionMenuBase.d.ts +1 -0
  196. package/lib/ToolActionNumberInput.d.ts +1 -0
  197. package/lib/ToolActionPerformedEventArgs.d.ts +1 -0
  198. package/lib/ToolActionSeparator.d.ts +1 -0
  199. package/lib/ToolCommandEventArgs.d.ts +10 -0
  200. package/lib/ToolPanel.d.ts +1 -0
  201. package/lib/ToolPanelContentRefreshedEventArgs.d.ts +8 -0
  202. package/lib/ToolPanelOrientation.d.ts +9 -0
  203. package/lib/ToolPanelView.d.ts +1 -0
  204. package/lib/ToolPanelView_combined.d.ts +328 -0
  205. package/lib/Toolbar.d.ts +1 -0
  206. package/lib/ToolbarIconManager.d.ts +10 -0
  207. package/lib/ToolbarOrientation.d.ts +9 -0
  208. package/lib/ToolbarView.d.ts +1 -0
  209. package/lib/ToolbarView_combined.d.ts +98 -0
  210. package/lib/igc-list-panel-component.d.ts +122 -0
  211. package/lib/igc-list-panel-content-refreshed-event-args.d.ts +12 -0
  212. package/lib/igc-list-panel-item-model.d.ts +17 -0
  213. package/lib/igc-list-panel-module.d.ts +3 -0
  214. package/lib/igc-list-panel-template-height-requested-event-args.d.ts +15 -0
  215. package/lib/igc-list-panel-template-item-updating-event-args.d.ts +15 -0
  216. package/lib/igc-list-panel-template-width-requested-event-args.d.ts +15 -0
  217. package/lib/igc-property-editor-panel-component.d.ts +0 -2
  218. package/lib/igc-tool-action-checkbox-component.d.ts +16 -0
  219. package/lib/igc-tool-action-checkbox-module.d.ts +3 -0
  220. package/lib/igc-tool-action-collection.d.ts +8 -0
  221. package/lib/igc-tool-action-component.d.ts +64 -0
  222. package/lib/igc-tool-action-event-detail-collection.d.ts +8 -0
  223. package/lib/igc-tool-action-event-detail.d.ts +22 -0
  224. package/lib/igc-tool-action-group-header-component.d.ts +16 -0
  225. package/lib/igc-tool-action-group-header-module.d.ts +3 -0
  226. package/lib/igc-tool-action-icon-button-component.d.ts +16 -0
  227. package/lib/igc-tool-action-icon-button-module.d.ts +3 -0
  228. package/lib/igc-tool-action-icon-menu-component.d.ts +16 -0
  229. package/lib/igc-tool-action-icon-menu-module.d.ts +3 -0
  230. package/lib/igc-tool-action-menu-base-component.d.ts +24 -0
  231. package/lib/igc-tool-action-module.d.ts +3 -0
  232. package/lib/igc-tool-action-number-input-component.d.ts +16 -0
  233. package/lib/igc-tool-action-number-input-module.d.ts +3 -0
  234. package/lib/igc-tool-action-performed-event-args.d.ts +18 -0
  235. package/lib/igc-tool-action-separator-component.d.ts +16 -0
  236. package/lib/igc-tool-action-separator-module.d.ts +3 -0
  237. package/lib/igc-tool-command-event-args.d.ts +14 -0
  238. package/lib/igc-tool-panel-component.d.ts +83 -0
  239. package/lib/igc-tool-panel-content-refreshed-event-args.d.ts +12 -0
  240. package/lib/igc-tool-panel-module.d.ts +3 -0
  241. package/lib/igc-toolbar-component.d.ts +89 -0
  242. package/lib/igc-toolbar-module.d.ts +3 -0
  243. package/package.json +3 -3
  244. package/public_api.d.ts +73 -0
@@ -0,0 +1,1663 @@
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 { BrushUtil } from "igniteui-webcomponents-core";
32
+ import { Thickness } 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.a9);
122
+ NativeUI.k(b, this.c.a6);
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 ToolActionNumberInput();
591
+ break;
592
+ case 5:
593
+ b = new ToolActionSeparator();
594
+ break;
595
+ case 6:
596
+ b = new ToolActionIconMenu();
597
+ break;
598
+ case 0: return null;
599
+ }
600
+ b.a6(a);
601
+ return b;
602
+ };
603
+ ToolAction.prototype.a6 = function (a) {
604
+ this.ar = a.name;
605
+ this.ap = a.label;
606
+ this.af = a.commandArgument;
607
+ this.v = a.commandArgumentValue;
608
+ this.ai = a.commandId;
609
+ this.am = a.iconName;
610
+ this.ak = a.iconCollectionName;
611
+ this.r = a.paddingLeft;
612
+ this.s = a.paddingRight;
613
+ this.t = a.paddingTop;
614
+ this.q = a.paddingBottom;
615
+ this.ax = a.parentId;
616
+ };
617
+ ToolAction.$t = markType(ToolAction, 'ToolAction', Base.$, [INotifyPropertyChanged_$type]);
618
+ return ToolAction;
619
+ }(Base));
620
+ export { ToolAction };
621
+ /**
622
+ * @hidden
623
+ */
624
+ var ToolActionSeparator = /** @class */ /*@__PURE__*/ (function (_super) {
625
+ tslib_1.__extends(ToolActionSeparator, _super);
626
+ function ToolActionSeparator() {
627
+ return _super !== null && _super.apply(this, arguments) || this;
628
+ }
629
+ ToolActionSeparator.prototype.get_f = function () {
630
+ return 5;
631
+ };
632
+ ToolActionSeparator.prototype.a5 = function (a, b) {
633
+ _super.prototype.a5.call(this, a, b);
634
+ if (b.a == 1) {
635
+ b.d = 2;
636
+ }
637
+ else {
638
+ b.c = 2;
639
+ }
640
+ };
641
+ ToolActionSeparator.prototype.be = function (a, b, c, d, e, f) {
642
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
643
+ a.a0 = b;
644
+ if (f.a == 1) {
645
+ b.d = 0;
646
+ b.e = 3;
647
+ }
648
+ else {
649
+ b.d = 3;
650
+ }
651
+ }
652
+ if (f.a == 1) {
653
+ b.n = DeviceUtils.g(2);
654
+ }
655
+ else {
656
+ b.h = DeviceUtils.g(2);
657
+ }
658
+ b.aj = BrushUtil.g(255, 200, 200, 200);
659
+ b.ak = BrushUtil.g(255, 80, 80, 80);
660
+ };
661
+ ToolActionSeparator.prototype.bb = function (a, b, c, d) {
662
+ var _this = this;
663
+ _super.prototype.bb.call(this, a, b, c, d);
664
+ var e = c.b;
665
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
666
+ NativeUIComponent.ab(b.l.r(), [7], function (f) {
667
+ var g = f[0];
668
+ e.a0 = g;
669
+ _this.be(e, g, a, b, c, d);
670
+ });
671
+ }
672
+ else {
673
+ var f = e.a0;
674
+ this.be(e, f, a, b, c, d);
675
+ }
676
+ };
677
+ ToolActionSeparator.$t = markType(ToolActionSeparator, 'ToolActionSeparator', ToolAction.$);
678
+ return ToolActionSeparator;
679
+ }(ToolAction));
680
+ export { ToolActionSeparator };
681
+ /**
682
+ * @hidden
683
+ */
684
+ var ToolActionIconButton = /** @class */ /*@__PURE__*/ (function (_super) {
685
+ tslib_1.__extends(ToolActionIconButton, _super);
686
+ function ToolActionIconButton() {
687
+ var _this = _super !== null && _super.apply(this, arguments) || this;
688
+ _this.be = null;
689
+ return _this;
690
+ }
691
+ ToolActionIconButton.prototype.get_f = function () {
692
+ return 3;
693
+ };
694
+ ToolActionIconButton.prototype.g = function () {
695
+ return null;
696
+ };
697
+ ToolActionIconButton.prototype.b = function (a) {
698
+ var b = new ToolActionEventDetail();
699
+ b.a = this;
700
+ b.b = this.f;
701
+ b.d = a;
702
+ return b;
703
+ };
704
+ ToolActionIconButton.prototype.o = function (a, b) {
705
+ return 30;
706
+ };
707
+ ToolActionIconButton.prototype.bg = function (a, b, c, d, e, f, g) {
708
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
709
+ a.a0 = b;
710
+ if (g.a == 1) {
711
+ b.d = 0;
712
+ }
713
+ else {
714
+ b.d = 3;
715
+ }
716
+ b.a5(0, 2, 1);
717
+ b.a4(0, 1, isNaN_(g.f) ? 0 : g.f);
718
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
719
+ if (b.av == 0) {
720
+ b.aw(c);
721
+ }
722
+ b.a9(c, 0);
723
+ b.a8(c, 0);
724
+ this.be = c;
725
+ this.be.av = 2;
726
+ this.be.au = runOn(this, this.bf);
727
+ }
728
+ this.be.ay = this.am;
729
+ this.be.ax = this.ak;
730
+ b.h = f.a.j;
731
+ };
732
+ ToolActionIconButton.prototype.bf = function (a, b) {
733
+ this.a9(this.b(true), this);
734
+ };
735
+ ToolActionIconButton.prototype.bb = function (a, b, c, d) {
736
+ var _this = this;
737
+ _super.prototype.bb.call(this, a, b, c, d);
738
+ var e = c.b;
739
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
740
+ NativeUIComponent.ab(b.l.r(), [7, 10], function (f) {
741
+ var g = f[0];
742
+ var h = f[1];
743
+ e.a0 = g;
744
+ _this.bg(e, g, h, a, b, c, d);
745
+ });
746
+ }
747
+ else {
748
+ var f = e.a0;
749
+ var g = f.au(0);
750
+ this.bg(e, f, g, a, b, c, d);
751
+ }
752
+ };
753
+ ToolActionIconButton.$t = markType(ToolActionIconButton, 'ToolActionIconButton', ToolAction.$);
754
+ return ToolActionIconButton;
755
+ }(ToolAction));
756
+ export { ToolActionIconButton };
757
+ /**
758
+ * @hidden
759
+ */
760
+ var ToolActionGroupHeader = /** @class */ /*@__PURE__*/ (function (_super) {
761
+ tslib_1.__extends(ToolActionGroupHeader, _super);
762
+ function ToolActionGroupHeader() {
763
+ return _super !== null && _super.apply(this, arguments) || this;
764
+ }
765
+ ToolActionGroupHeader.prototype.get_f = function () {
766
+ return 1;
767
+ };
768
+ ToolActionGroupHeader.prototype.be = function (a, b, c, d, e, f, g) {
769
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
770
+ a.a0 = b;
771
+ if (g.a == 1) {
772
+ b.d = 0;
773
+ }
774
+ else {
775
+ b.d = 3;
776
+ }
777
+ b.a5(0, 2, 1);
778
+ b.a4(0, 1, isNaN_(g.e) ? 0 : g.e);
779
+ b.a4(1, 2, 1);
780
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
781
+ if (b.av == 0) {
782
+ b.aw(c);
783
+ }
784
+ c.e = 1;
785
+ }
786
+ b.h = f.a.j;
787
+ b.aj = BrushUtil.g(255, 200, 200, 200);
788
+ b.ak = BrushUtil.g(255, 80, 80, 80);
789
+ b.aq = new Thickness(1, 0, 0, 0, 2);
790
+ c.au = this.ap;
791
+ c.al = BrushUtil.g(255, 20, 20, 20);
792
+ b.a9(c, 0);
793
+ b.a8(c, 1);
794
+ };
795
+ ToolActionGroupHeader.prototype.bb = function (a, b, c, d) {
796
+ var _this = this;
797
+ _super.prototype.bb.call(this, a, b, c, d);
798
+ var e = c.b;
799
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
800
+ NativeUIComponent.ab(b.l.r(), [7, 3], function (f) {
801
+ var g = f[0];
802
+ var h = f[1];
803
+ e.a0 = g;
804
+ _this.be(e, g, h, a, b, c, d);
805
+ });
806
+ }
807
+ else {
808
+ var f = e.a0;
809
+ var g = f.au(0);
810
+ this.be(e, f, g, a, b, c, d);
811
+ }
812
+ };
813
+ ToolActionGroupHeader.$t = markType(ToolActionGroupHeader, 'ToolActionGroupHeader', ToolAction.$);
814
+ return ToolActionGroupHeader;
815
+ }(ToolAction));
816
+ export { ToolActionGroupHeader };
817
+ /**
818
+ * @hidden
819
+ */
820
+ var ToolActionMenuBase = /** @class */ /*@__PURE__*/ (function (_super) {
821
+ tslib_1.__extends(ToolActionMenuBase, _super);
822
+ function ToolActionMenuBase() {
823
+ var _this = _super.call(this) || this;
824
+ _this.bh = new ToolActionCollection();
825
+ _this.bm = false;
826
+ _this.be = null;
827
+ _this.bk = null;
828
+ _this.bl = false;
829
+ _this.bj = null;
830
+ _this.bo = false;
831
+ _this.bn = false;
832
+ var a = _this.bh;
833
+ a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.bq));
834
+ return _this;
835
+ }
836
+ ToolActionMenuBase.prototype.g = function () {
837
+ return null;
838
+ };
839
+ ToolActionMenuBase.prototype.a6 = function (a) {
840
+ _super.prototype.a6.call(this, a);
841
+ var b = a;
842
+ if (b.actions != null) {
843
+ for (var c = 0; c < b.actions.length; c++) {
844
+ this.bh.add(ToolAction.a(b.actions[c]));
845
+ }
846
+ }
847
+ };
848
+ ToolActionMenuBase.prototype.bq = function (a, b) {
849
+ this.bv();
850
+ };
851
+ ToolActionMenuBase.prototype.bv = function () {
852
+ };
853
+ Object.defineProperty(ToolActionMenuBase.prototype, "actions", {
854
+ get: function () {
855
+ return this.bh;
856
+ },
857
+ set: function (a) {
858
+ var b = this.bh;
859
+ this.bh = a;
860
+ if (b != this.bh) {
861
+ this.a8("Actions", b, this.bh);
862
+ }
863
+ },
864
+ enumerable: true,
865
+ configurable: true
866
+ });
867
+ ToolActionMenuBase.prototype.b = function (a) {
868
+ var b = new ToolActionEventDetail();
869
+ b.a = this;
870
+ b.b = this.f;
871
+ b.d = a;
872
+ return b;
873
+ };
874
+ ToolActionMenuBase.prototype.bw = function () {
875
+ this.bt();
876
+ this.bs();
877
+ this.bu();
878
+ if (this.be.t || this.bn) {
879
+ if (this.bn) {
880
+ this.bn = false;
881
+ }
882
+ else {
883
+ this.be.ao();
884
+ }
885
+ }
886
+ else {
887
+ if (this.bo) {
888
+ this.bx();
889
+ }
890
+ else {
891
+ this.bn = true;
892
+ }
893
+ }
894
+ };
895
+ ToolActionMenuBase.prototype.bx = function () {
896
+ this.be.showRelativeToExclusionRect(this.by(), this.bg(), this.bf());
897
+ };
898
+ ToolActionMenuBase.prototype.bf = function () {
899
+ return 1;
900
+ };
901
+ ToolActionMenuBase.prototype.bg = function () {
902
+ return 1;
903
+ };
904
+ ToolActionMenuBase.prototype.bu = function () {
905
+ if (!this.bl) {
906
+ this.bl = true;
907
+ this.be.appendPopupContent(this.bk.v);
908
+ }
909
+ };
910
+ ToolActionMenuBase.prototype.bt = function () {
911
+ if (this.be == null) {
912
+ if (this.e == null) {
913
+ return;
914
+ }
915
+ this.be = this.e.l.a();
916
+ }
917
+ };
918
+ ToolActionMenuBase.prototype.bs = function () {
919
+ var _this = this;
920
+ if (this.bk == null) {
921
+ NativeUIContent.ac(this.e.l.r(), 0, function (a) { return _this.bk = a; });
922
+ this.bj = this.e.l.b(this.bk);
923
+ var a = this.bj;
924
+ a.contentRefreshed = delegateCombine(a.contentRefreshed, runOn(this, this.br));
925
+ this.bj.actions = this.actions;
926
+ }
927
+ };
928
+ ToolActionMenuBase.prototype.br = function (a, b) {
929
+ this.bo = true;
930
+ this.be.ar();
931
+ if (this.bn) {
932
+ this.bn = false;
933
+ this.bx();
934
+ }
935
+ };
936
+ ToolActionMenuBase.$t = markType(ToolActionMenuBase, 'ToolActionMenuBase', ToolAction.$);
937
+ return ToolActionMenuBase;
938
+ }(ToolAction));
939
+ export { ToolActionMenuBase };
940
+ /**
941
+ * @hidden
942
+ */
943
+ var ToolActionIconMenu = /** @class */ /*@__PURE__*/ (function (_super) {
944
+ tslib_1.__extends(ToolActionIconMenu, _super);
945
+ function ToolActionIconMenu() {
946
+ var _this = _super !== null && _super.apply(this, arguments) || this;
947
+ _this.bz = null;
948
+ return _this;
949
+ }
950
+ ToolActionIconMenu.prototype.get_f = function () {
951
+ return 3;
952
+ };
953
+ ToolActionIconMenu.prototype.o = function (a, b) {
954
+ return 30;
955
+ };
956
+ ToolActionIconMenu.prototype.by = function () {
957
+ return this.e.l.ac(this.bz.v);
958
+ };
959
+ ToolActionIconMenu.prototype.b1 = function (a, b, c, d, e, f, g) {
960
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
961
+ a.a0 = b;
962
+ if (g.a == 1) {
963
+ b.d = 0;
964
+ }
965
+ else {
966
+ b.d = 3;
967
+ }
968
+ b.a5(0, 2, 1);
969
+ b.a4(0, 1, isNaN_(g.f) ? 0 : g.f);
970
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
971
+ if (b.av == 0) {
972
+ b.aw(c);
973
+ }
974
+ b.a9(c, 0);
975
+ b.a8(c, 0);
976
+ this.bz = c;
977
+ this.bz.av = 2;
978
+ this.bz.au = runOn(this, this.b0);
979
+ }
980
+ this.bz.ay = this.am;
981
+ this.bz.ax = this.ak;
982
+ b.h = f.a.j;
983
+ };
984
+ ToolActionIconMenu.prototype.b0 = function (a, b) {
985
+ this.bw();
986
+ };
987
+ ToolActionIconMenu.prototype.bb = function (a, b, c, d) {
988
+ var _this = this;
989
+ _super.prototype.bb.call(this, a, b, c, d);
990
+ var e = c.b;
991
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
992
+ NativeUIComponent.ab(b.l.r(), [7, 10], function (f) {
993
+ var g = f[0];
994
+ var h = f[1];
995
+ e.a0 = g;
996
+ _this.b1(e, g, h, a, b, c, d);
997
+ });
998
+ }
999
+ else {
1000
+ var f = e.a0;
1001
+ var g = f.au(0);
1002
+ this.b1(e, f, g, a, b, c, d);
1003
+ }
1004
+ };
1005
+ ToolActionIconMenu.$t = markType(ToolActionIconMenu, 'ToolActionIconMenu', ToolActionMenuBase.$);
1006
+ return ToolActionIconMenu;
1007
+ }(ToolActionMenuBase));
1008
+ export { ToolActionIconMenu };
1009
+ /**
1010
+ * @hidden
1011
+ */
1012
+ var ToolActionCheckbox = /** @class */ /*@__PURE__*/ (function (_super) {
1013
+ tslib_1.__extends(ToolActionCheckbox, _super);
1014
+ function ToolActionCheckbox() {
1015
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1016
+ _this.be = null;
1017
+ return _this;
1018
+ }
1019
+ ToolActionCheckbox.prototype.get_f = function () {
1020
+ return 2;
1021
+ };
1022
+ ToolActionCheckbox.prototype.b = function (a) {
1023
+ var b = new ToolActionEventDetail();
1024
+ b.a = this;
1025
+ b.b = this.f;
1026
+ b.d = a;
1027
+ if (this.be != null) {
1028
+ b.c = this.be.aw;
1029
+ }
1030
+ return b;
1031
+ };
1032
+ ToolActionCheckbox.prototype.x = function () {
1033
+ return this.be.aw;
1034
+ };
1035
+ ToolActionCheckbox.prototype.o = function (a, b) {
1036
+ return 30;
1037
+ };
1038
+ ToolActionCheckbox.prototype.bg = function (a, b, c, d, e, f, g, h) {
1039
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
1040
+ a.a0 = b;
1041
+ if (h.a == 1) {
1042
+ b.d = 0;
1043
+ }
1044
+ else {
1045
+ b.d = 3;
1046
+ }
1047
+ b.a5(0, 2, 1);
1048
+ b.a4(0, 1, isNaN_(h.e) ? 0 : h.e);
1049
+ b.a4(1, 1, isNaN_(h.g) ? 0 : h.g);
1050
+ b.a4(1, 2, 1);
1051
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
1052
+ if (b.av == 0) {
1053
+ b.aw(c);
1054
+ b.aw(d);
1055
+ }
1056
+ b.a9(c, 0);
1057
+ b.a8(c, 1);
1058
+ b.a9(d, 0);
1059
+ b.a8(d, 2);
1060
+ this.be = d;
1061
+ d.av = true;
1062
+ d.d = 2;
1063
+ d.e = 1;
1064
+ d.au = runOn(this, this.bf);
1065
+ c.e = 1;
1066
+ }
1067
+ b.h = g.a.j;
1068
+ c.au = this.ap;
1069
+ c.al = BrushUtil.g(255, 20, 20, 20);
1070
+ };
1071
+ ToolActionCheckbox.prototype.bf = function (a, b) {
1072
+ this.a9(this.b(true), this);
1073
+ };
1074
+ ToolActionCheckbox.prototype.bb = function (a, b, c, d) {
1075
+ var _this = this;
1076
+ _super.prototype.bb.call(this, a, b, c, d);
1077
+ var e = c.b;
1078
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
1079
+ NativeUIComponent.ab(b.l.r(), [7, 3, 6], function (f) {
1080
+ var g = f[0];
1081
+ var h = f[1];
1082
+ var i = f[2];
1083
+ e.a0 = g;
1084
+ _this.bg(e, g, h, i, a, b, c, d);
1085
+ });
1086
+ }
1087
+ else {
1088
+ var f = e.a0;
1089
+ var g = f.au(0);
1090
+ var h = f.au(1);
1091
+ this.bg(e, f, g, h, a, b, c, d);
1092
+ }
1093
+ };
1094
+ ToolActionCheckbox.$t = markType(ToolActionCheckbox, 'ToolActionCheckbox', ToolAction.$);
1095
+ return ToolActionCheckbox;
1096
+ }(ToolAction));
1097
+ export { ToolActionCheckbox };
1098
+ /**
1099
+ * @hidden
1100
+ */
1101
+ var ToolActionNumberInput = /** @class */ /*@__PURE__*/ (function (_super) {
1102
+ tslib_1.__extends(ToolActionNumberInput, _super);
1103
+ function ToolActionNumberInput() {
1104
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1105
+ _this.be = null;
1106
+ return _this;
1107
+ }
1108
+ ToolActionNumberInput.prototype.get_f = function () {
1109
+ return 4;
1110
+ };
1111
+ ToolActionNumberInput.prototype.x = function () {
1112
+ return this.bf();
1113
+ };
1114
+ ToolActionNumberInput.prototype.o = function (a, b) {
1115
+ return 100;
1116
+ };
1117
+ ToolActionNumberInput.prototype.bh = function (a, b, c, d, e, f, g, h) {
1118
+ if (a.w == null || EnumUtil.getEnumValue(ToolActionType_$type, a.w) != this.f) {
1119
+ a.a0 = b;
1120
+ if (h.a == 1) {
1121
+ b.d = 0;
1122
+ }
1123
+ else {
1124
+ b.d = 3;
1125
+ }
1126
+ b.a5(0, 2, 1);
1127
+ b.a4(0, 1, isNaN_(h.e) ? 0 : h.e);
1128
+ b.a4(1, 1, isNaN_(h.g) ? 0 : h.g);
1129
+ b.a4(1, 2, 1);
1130
+ b.as = new Thickness(1, this.r, this.t, this.s, this.q);
1131
+ if (b.av == 0) {
1132
+ b.aw(c);
1133
+ b.aw(d);
1134
+ }
1135
+ b.a9(c, 0);
1136
+ b.a8(c, 1);
1137
+ b.a9(d, 0);
1138
+ b.a8(d, 2);
1139
+ this.be = d;
1140
+ d.n = 100;
1141
+ d.au = 2;
1142
+ d.ax = 1;
1143
+ d.d = 2;
1144
+ d.e = 1;
1145
+ d.aw = runOn(this, this.bg);
1146
+ c.e = 1;
1147
+ }
1148
+ b.h = g.a.j;
1149
+ c.au = this.ap;
1150
+ c.al = BrushUtil.g(255, 20, 20, 20);
1151
+ };
1152
+ ToolActionNumberInput.prototype.bf = function () {
1153
+ var _this = this;
1154
+ var a;
1155
+ a = NaN;
1156
+ if (this.be != null && ((function () { var b = tryParseNumber(_this.be.ay, a); a = b.p1; return b.ret; })())) {
1157
+ }
1158
+ return a;
1159
+ };
1160
+ ToolActionNumberInput.prototype.b = function (a) {
1161
+ var b = new ToolActionEventDetail();
1162
+ b.a = this;
1163
+ b.d = a;
1164
+ b.b = this.f;
1165
+ var c;
1166
+ b.f = this.bf();
1167
+ return b;
1168
+ };
1169
+ ToolActionNumberInput.prototype.bg = function (a, b) {
1170
+ var c = a;
1171
+ var d = this.b(true);
1172
+ this.a9(d, this);
1173
+ };
1174
+ ToolActionNumberInput.prototype.bb = function (a, b, c, d) {
1175
+ var _this = this;
1176
+ _super.prototype.bb.call(this, a, b, c, d);
1177
+ var e = c.b;
1178
+ if (e.a0 == null || (e.w == null || EnumUtil.getEnumValue(ToolActionType_$type, e.w) != this.f)) {
1179
+ NativeUIComponent.ab(b.l.r(), [7, 3, 2], function (f) {
1180
+ var g = f[0];
1181
+ var h = f[1];
1182
+ var i = f[2];
1183
+ e.a0 = g;
1184
+ _this.bh(e, g, h, i, a, b, c, d);
1185
+ });
1186
+ }
1187
+ else {
1188
+ var f = e.a0;
1189
+ var g = f.au(0);
1190
+ var h = f.au(1);
1191
+ this.bh(e, f, g, h, a, b, c, d);
1192
+ }
1193
+ };
1194
+ ToolActionNumberInput.$t = markType(ToolActionNumberInput, 'ToolActionNumberInput', ToolAction.$);
1195
+ return ToolActionNumberInput;
1196
+ }(ToolAction));
1197
+ export { ToolActionNumberInput };
1198
+ /**
1199
+ * @hidden
1200
+ */
1201
+ var ToolActionCollection = /** @class */ /*@__PURE__*/ (function (_super) {
1202
+ tslib_1.__extends(ToolActionCollection, _super);
1203
+ function ToolActionCollection() {
1204
+ return _super.call(this, ToolAction.$, 0) || this;
1205
+ }
1206
+ ToolActionCollection.$t = markType(ToolActionCollection, 'ToolActionCollection', ObservableCollection$1.$.specialize(ToolAction.$));
1207
+ return ToolActionCollection;
1208
+ }(ObservableCollection$1));
1209
+ export { ToolActionCollection };
1210
+ /**
1211
+ * @hidden
1212
+ */
1213
+ var ToolActionPerformedEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
1214
+ tslib_1.__extends(ToolActionPerformedEventArgs, _super);
1215
+ function ToolActionPerformedEventArgs() {
1216
+ var _this = _super.call(this) || this;
1217
+ _this.c = false;
1218
+ _this.a = null;
1219
+ _this.b = null;
1220
+ _this.b = new ToolActionEventDetailCollection();
1221
+ return _this;
1222
+ }
1223
+ ToolActionPerformedEventArgs.$t = markType(ToolActionPerformedEventArgs, 'ToolActionPerformedEventArgs');
1224
+ return ToolActionPerformedEventArgs;
1225
+ }(Base));
1226
+ export { ToolActionPerformedEventArgs };
1227
+ /**
1228
+ * @hidden
1229
+ */
1230
+ var ToolActionEventDetail = /** @class */ /*@__PURE__*/ (function (_super) {
1231
+ tslib_1.__extends(ToolActionEventDetail, _super);
1232
+ function ToolActionEventDetail() {
1233
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1234
+ _this.a = null;
1235
+ _this.b = 0;
1236
+ _this.d = false;
1237
+ _this.c = false;
1238
+ _this.f = 0;
1239
+ _this.e = new Date();
1240
+ _this.g = null;
1241
+ return _this;
1242
+ }
1243
+ ToolActionEventDetail.$t = markType(ToolActionEventDetail, 'ToolActionEventDetail');
1244
+ return ToolActionEventDetail;
1245
+ }(Base));
1246
+ export { ToolActionEventDetail };
1247
+ /**
1248
+ * @hidden
1249
+ */
1250
+ var ToolActionEventDetailCollection = /** @class */ /*@__PURE__*/ (function (_super) {
1251
+ tslib_1.__extends(ToolActionEventDetailCollection, _super);
1252
+ function ToolActionEventDetailCollection() {
1253
+ return _super.call(this, ToolActionEventDetail.$, 0) || this;
1254
+ }
1255
+ ToolActionEventDetailCollection.$t = markType(ToolActionEventDetailCollection, 'ToolActionEventDetailCollection', ObservableCollection$1.$.specialize(ToolActionEventDetail.$));
1256
+ return ToolActionEventDetailCollection;
1257
+ }(ObservableCollection$1));
1258
+ export { ToolActionEventDetailCollection };
1259
+ /**
1260
+ * @hidden
1261
+ */
1262
+ var ToolPanel = /** @class */ /*@__PURE__*/ (function (_super) {
1263
+ tslib_1.__extends(ToolPanel, _super);
1264
+ function ToolPanel() {
1265
+ var _this = _super.call(this) || this;
1266
+ _this.l = null;
1267
+ _this.p = null;
1268
+ _this.s = false;
1269
+ _this.q = null;
1270
+ _this.f = new ToolActionMeasurementContext();
1271
+ _this.propertyChanged = null;
1272
+ _this.d = new ToolActionCollection();
1273
+ _this.contentRefreshed = null;
1274
+ _this.t = false;
1275
+ _this.w = new Dictionary$2(String_$type, List$1.$.specialize(ToolAction.$), 0);
1276
+ _this.x = new Dictionary$2(String_$type, List$1.$.specialize(ToolAction.$), 0);
1277
+ _this.v = new Dictionary$2(String_$type, ToolAction.$, 0);
1278
+ _this.m = null;
1279
+ _this.a = null;
1280
+ _this.a4 = ToolPanel.a7;
1281
+ _this.a5 = ToolPanel.a8;
1282
+ _this.b = null;
1283
+ _this.z = Number.POSITIVE_INFINITY;
1284
+ _this.i = ToolPanel.j;
1285
+ _this.onCommand = null;
1286
+ var a = _this.actions;
1287
+ a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.ak));
1288
+ NativeUIInputsFactory.m();
1289
+ var b = new ToolPanelView();
1290
+ b.c = _this;
1291
+ _this.l = b;
1292
+ _this.l.x();
1293
+ return _this;
1294
+ }
1295
+ Object.defineProperty(ToolPanel.prototype, "r", {
1296
+ get: function () {
1297
+ if (this.q == null) {
1298
+ this.q = new SRProvider(this.l.k);
1299
+ this.q.cb("Layouts");
1300
+ }
1301
+ return this.q;
1302
+ },
1303
+ enumerable: true,
1304
+ configurable: true
1305
+ });
1306
+ ToolPanel.prototype.aq = function (a) {
1307
+ this.b = a;
1308
+ var b = this.b;
1309
+ b.rowUpdating = delegateCombine(b.rowUpdating, runOn(this, this.aj));
1310
+ var c = this.b;
1311
+ c.contentRefreshed = delegateCombine(c.contentRefreshed, runOn(this, this.ag));
1312
+ this.b.k = this.k;
1313
+ this.b.ai = true;
1314
+ var d = this.b;
1315
+ d.itemHeightRequested = delegateCombine(d.itemHeightRequested, runOn(this, this.ah));
1316
+ var e = this.b;
1317
+ e.itemWidthRequested = delegateCombine(e.itemWidthRequested, runOn(this, this.ai));
1318
+ };
1319
+ ToolPanel.prototype.ag = function (a, b) {
1320
+ if (this.contentRefreshed != null) {
1321
+ this.contentRefreshed(this, new ToolPanelContentRefreshedEventArgs());
1322
+ }
1323
+ };
1324
+ ToolPanel.prototype.ah = function (a, b) {
1325
+ var c = b.c;
1326
+ var d = new ToolActionMeasurementContext();
1327
+ this.az(d);
1328
+ c.a4(this, d);
1329
+ if (!isNaN_(d.c)) {
1330
+ b.a = d.c;
1331
+ }
1332
+ else {
1333
+ b.a = this.b.av;
1334
+ }
1335
+ };
1336
+ ToolPanel.prototype.ai = function (a, b) {
1337
+ var c = b.c;
1338
+ var d = new ToolActionMeasurementContext();
1339
+ this.az(d);
1340
+ c.a4(this, d);
1341
+ if (!isNaN_(d.d)) {
1342
+ b.a = d.d;
1343
+ }
1344
+ else {
1345
+ }
1346
+ };
1347
+ ToolPanel.prototype.aj = function (a, b) {
1348
+ var c = b.a.n;
1349
+ var d = a;
1350
+ if (this.k == 1) {
1351
+ var e = new ToolActionMeasurementContext();
1352
+ this.az(e);
1353
+ c.a4(this, e);
1354
+ c.ba(d, this, b, e);
1355
+ }
1356
+ else {
1357
+ c.ba(d, this, b, this.f);
1358
+ }
1359
+ };
1360
+ ToolPanel.prototype.aw = function (a) {
1361
+ this.z = a.width;
1362
+ this.a2();
1363
+ };
1364
+ Object.defineProperty(ToolPanel.prototype, "actions", {
1365
+ get: function () {
1366
+ return this.d;
1367
+ },
1368
+ set: function (a) {
1369
+ var b = this.d;
1370
+ this.d = a;
1371
+ if (b != this.d) {
1372
+ this.ax("Actions", b, this.d);
1373
+ }
1374
+ },
1375
+ enumerable: true,
1376
+ configurable: true
1377
+ });
1378
+ ToolPanel.prototype.ak = function (a, b) {
1379
+ var e_1, _a, e_2, _b;
1380
+ if (b.oldItems != null) {
1381
+ try {
1382
+ for (var _c = tslib_1.__values(fromEn(b.oldItems)), _d = _c.next(); !_d.done; _d = _c.next()) {
1383
+ var c = _d.value;
1384
+ if (typeCast(INotifyPropertyChanged_$type, c) !== null) {
1385
+ var d = c;
1386
+ d.propertyChanged = delegateRemove(d.propertyChanged, runOn(this, this.ar));
1387
+ }
1388
+ }
1389
+ }
1390
+ catch (e_1_1) {
1391
+ e_1 = { error: e_1_1 };
1392
+ }
1393
+ finally {
1394
+ try {
1395
+ if (_d && !_d.done && (_a = _c.return))
1396
+ _a.call(_c);
1397
+ }
1398
+ finally {
1399
+ if (e_1)
1400
+ throw e_1.error;
1401
+ }
1402
+ }
1403
+ }
1404
+ if (b.newItems != null) {
1405
+ try {
1406
+ for (var _e = tslib_1.__values(fromEn(b.newItems)), _f = _e.next(); !_f.done; _f = _e.next()) {
1407
+ var e = _f.value;
1408
+ if (typeCast(INotifyPropertyChanged_$type, e) !== null) {
1409
+ var f = e;
1410
+ f.propertyChanged = delegateCombine(f.propertyChanged, runOn(this, this.ar));
1411
+ }
1412
+ }
1413
+ }
1414
+ catch (e_2_1) {
1415
+ e_2 = { error: e_2_1 };
1416
+ }
1417
+ finally {
1418
+ try {
1419
+ if (_f && !_f.done && (_b = _e.return))
1420
+ _b.call(_e);
1421
+ }
1422
+ finally {
1423
+ if (e_2)
1424
+ throw e_2.error;
1425
+ }
1426
+ }
1427
+ }
1428
+ this.av();
1429
+ };
1430
+ ToolPanel.prototype.av = function () {
1431
+ this.a2();
1432
+ };
1433
+ ToolPanel.prototype.a2 = function () {
1434
+ if (this.t) {
1435
+ return;
1436
+ }
1437
+ this.t = true;
1438
+ this.a.enqueueAction(runOn(this, this.an));
1439
+ };
1440
+ ToolPanel.prototype.an = function () {
1441
+ if (!this.t) {
1442
+ return;
1443
+ }
1444
+ this.t = false;
1445
+ this.al();
1446
+ this.a3();
1447
+ for (var a = 0; a < this.d.count; a++) {
1448
+ this.as(this.d._inner[a]);
1449
+ }
1450
+ this.ao();
1451
+ };
1452
+ ToolPanel.prototype.al = function () {
1453
+ this.w.clear();
1454
+ this.x.clear();
1455
+ this.v.clear();
1456
+ for (var a = 0; a < this.d.count; a++) {
1457
+ this.d._inner[a].e = this;
1458
+ if (this.d._inner[a].ao != null) {
1459
+ this.v.item(this.d._inner[a].ao, this.d._inner[a]);
1460
+ }
1461
+ }
1462
+ for (var b = 0; b < this.d.count; b++) {
1463
+ if (this.d._inner[b].ax != null) {
1464
+ if (this.v.containsKey(this.d._inner[b].ax)) {
1465
+ if (!this.w.containsKey(this.d._inner[b].ax)) {
1466
+ this.w.item(this.d._inner[b].ax, new List$1(ToolAction.$, 0));
1467
+ }
1468
+ var c = this.w.item(this.d._inner[b].ax);
1469
+ c.add(this.d._inner[b]);
1470
+ }
1471
+ }
1472
+ }
1473
+ };
1474
+ ToolPanel.prototype.u = function (a) {
1475
+ if (a.ao == null) {
1476
+ return false;
1477
+ }
1478
+ return this.w.containsKey(a.ao);
1479
+ };
1480
+ ToolPanel.prototype.c = function (a) {
1481
+ if (this.v.containsKey(a)) {
1482
+ return this.v.item(a);
1483
+ }
1484
+ return null;
1485
+ };
1486
+ ToolPanel.prototype.y = function (a) {
1487
+ if (a.ao == null) {
1488
+ return null;
1489
+ }
1490
+ if (this.w.containsKey(a.ao)) {
1491
+ return this.w.item(a.ao);
1492
+ }
1493
+ return null;
1494
+ };
1495
+ ToolPanel.prototype.as = function (a) {
1496
+ var b = new ToolActionMeasurementContext();
1497
+ this.az(b);
1498
+ a.a4(this, b);
1499
+ this.at(this.f, b);
1500
+ };
1501
+ ToolPanel.prototype.az = function (a) {
1502
+ a.a = this.k;
1503
+ a.b = this.z;
1504
+ };
1505
+ ToolPanel.prototype.at = function (a, b) {
1506
+ if (!isNaN_(b.e)) {
1507
+ if (isNaN_(a.e)) {
1508
+ a.e = b.e;
1509
+ }
1510
+ else {
1511
+ a.e = Math.max(a.e, b.e);
1512
+ }
1513
+ }
1514
+ if (!isNaN_(b.g)) {
1515
+ if (isNaN_(a.g)) {
1516
+ a.g = b.g;
1517
+ }
1518
+ else {
1519
+ a.g = Math.max(a.g, b.g);
1520
+ }
1521
+ }
1522
+ };
1523
+ ToolPanel.prototype.a3 = function () {
1524
+ this.f = new ToolActionMeasurementContext();
1525
+ this.f.a = this.k;
1526
+ this.f.b = this.z;
1527
+ };
1528
+ ToolPanel.prototype.ao = function () {
1529
+ if (this.b.itemsSource != this.actions) {
1530
+ this.b.itemsSource = this.actions;
1531
+ }
1532
+ };
1533
+ ToolPanel.prototype.ap = function () {
1534
+ if (this.t) {
1535
+ this.an();
1536
+ }
1537
+ if (this.b != null) {
1538
+ this.b.bt();
1539
+ }
1540
+ };
1541
+ ToolPanel.prototype.ar = function (a, b) {
1542
+ this.av();
1543
+ };
1544
+ ToolPanel.prototype.notifySizeChanged = function () {
1545
+ this.l.u();
1546
+ };
1547
+ ToolPanel.prototype.destroy = function () {
1548
+ this.provideContainer(null);
1549
+ };
1550
+ ToolPanel.prototype.provideContainer = function (a) {
1551
+ this.l.v(a);
1552
+ };
1553
+ Object.defineProperty(ToolPanel.prototype, "n", {
1554
+ get: function () {
1555
+ return this.m;
1556
+ },
1557
+ set: function (a) {
1558
+ var b = this.m;
1559
+ this.m = a;
1560
+ if (b != this.m) {
1561
+ this.ax("CellTextStyle", b, this.m);
1562
+ }
1563
+ },
1564
+ enumerable: true,
1565
+ configurable: true
1566
+ });
1567
+ ToolPanel.prototype.o = function () {
1568
+ if (this.n == null) {
1569
+ return this.l.f();
1570
+ }
1571
+ return this.n;
1572
+ };
1573
+ ToolPanel.prototype.ax = function (a, b, c) {
1574
+ if (this.propertyChanged != null) {
1575
+ this.propertyChanged(this, new PropertyChangedEventArgs(a));
1576
+ }
1577
+ this.a0(a, b, c);
1578
+ };
1579
+ ToolPanel.prototype.a0 = function (a, b, c) {
1580
+ switch (a) {
1581
+ case "CellTextStyle":
1582
+ this.a2();
1583
+ break;
1584
+ case "BackgroundColor":
1585
+ case "TextColor":
1586
+ this.a2();
1587
+ break;
1588
+ case "Orientation":
1589
+ if (this.b != null) {
1590
+ this.b.k = this.k;
1591
+ }
1592
+ break;
1593
+ case "Actions":
1594
+ if (b != null) {
1595
+ var d = b;
1596
+ d.collectionChanged = delegateRemove(d.collectionChanged, runOn(this, this.ak));
1597
+ }
1598
+ if (c != null) {
1599
+ var e = c;
1600
+ e.collectionChanged = delegateCombine(e.collectionChanged, runOn(this, this.ak));
1601
+ }
1602
+ this.a2();
1603
+ break;
1604
+ }
1605
+ };
1606
+ Object.defineProperty(ToolPanel.prototype, "a6", {
1607
+ get: function () {
1608
+ return this.a4;
1609
+ },
1610
+ set: function (a) {
1611
+ var b = this.a4;
1612
+ this.a4 = a;
1613
+ if (b != this.a4) {
1614
+ this.ax("BackgroundColor", b, a);
1615
+ }
1616
+ },
1617
+ enumerable: true,
1618
+ configurable: true
1619
+ });
1620
+ Object.defineProperty(ToolPanel.prototype, "a9", {
1621
+ get: function () {
1622
+ return this.a5;
1623
+ },
1624
+ set: function (a) {
1625
+ var b = this.a5;
1626
+ this.a5 = a;
1627
+ if (b != this.a5) {
1628
+ this.ax("TextColor", b, a);
1629
+ }
1630
+ },
1631
+ enumerable: true,
1632
+ configurable: true
1633
+ });
1634
+ Object.defineProperty(ToolPanel.prototype, "k", {
1635
+ get: function () {
1636
+ return this.i;
1637
+ },
1638
+ set: function (a) {
1639
+ var b = this.i;
1640
+ this.i = a;
1641
+ if (b != this.i) {
1642
+ this.ax("Orientation", enumGetBox(ToolPanelOrientation_$type, b), enumGetBox(ToolPanelOrientation_$type, a));
1643
+ }
1644
+ },
1645
+ enumerable: true,
1646
+ configurable: true
1647
+ });
1648
+ ToolPanel.prototype.ay = function (a, b) {
1649
+ if (this.onCommand != null) {
1650
+ this.onCommand(this, ((function () {
1651
+ var $ret = new ToolCommandEventArgs();
1652
+ $ret.a = b;
1653
+ return $ret;
1654
+ })()));
1655
+ }
1656
+ };
1657
+ ToolPanel.$t = markType(ToolPanel, 'ToolPanel', Base.$, [INotifyPropertyChanged_$type]);
1658
+ ToolPanel.a7 = BrushUtil.g(255, 248, 248, 248);
1659
+ ToolPanel.a8 = BrushUtil.g(255, 24, 29, 31);
1660
+ ToolPanel.j = 0;
1661
+ return ToolPanel;
1662
+ }(Base));
1663
+ export { ToolPanel };