igniteui-webcomponents-layouts 1.4.1 → 3.2.1

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