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