igniteui-angular-inputs 18.1.1 → 18.2.0-beta.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 (224) hide show
  1. package/bundles/igniteui-angular-inputs.umd.js +16857 -7563
  2. package/bundles/igniteui-angular-inputs.umd.min.js +1 -1
  3. package/esm2015/lib/ButtonGroupView_combined.js +19 -19
  4. package/esm2015/lib/ButtonView_combined.js +820 -790
  5. package/esm2015/lib/CalendarView_combined.js +82 -82
  6. package/esm2015/lib/ColorEditor.js +7 -0
  7. package/esm2015/lib/ColorEditorBridge.js +7 -0
  8. package/esm2015/lib/ColorEditorGotFocusEventArgs.js +16 -0
  9. package/esm2015/lib/ColorEditorLostFocusEventArgs.js +16 -0
  10. package/esm2015/lib/ColorEditorPanel.js +7 -0
  11. package/esm2015/lib/ColorEditorPanelClosedEventArgs.js +16 -0
  12. package/esm2015/lib/ColorEditorPanelSelectedValueChangedEventArgs.js +33 -0
  13. package/esm2015/lib/ColorEditorPanelView.js +7 -0
  14. package/esm2015/lib/ColorEditorView.js +7 -0
  15. package/esm2015/lib/DatePickerView_combined.js +18 -18
  16. package/esm2015/lib/DefaultMultiSliderTrackBarVisual.js +113 -0
  17. package/esm2015/lib/DefaultMultiSliderTrackRangeVisual.js +208 -0
  18. package/esm2015/lib/DefaultMultiSliderTrackThumbCalloutVisual.js +170 -0
  19. package/esm2015/lib/DefaultMultiSliderTrackThumbVisual.js +193 -0
  20. package/esm2015/lib/DefaultMultiTrackShadeVisual.js +172 -0
  21. package/esm2015/lib/IMultiSliderTrackBarVisual.js +11 -0
  22. package/esm2015/lib/IMultiSliderTrackRangeVisual.js +11 -0
  23. package/esm2015/lib/IMultiSliderTrackShadeVisual.js +11 -0
  24. package/esm2015/lib/IMultiSliderTrackThumbCalloutVisual.js +11 -0
  25. package/esm2015/lib/IMultiSliderTrackThumbVisual.js +11 -0
  26. package/esm2015/lib/ISliderTrackOwner.js +11 -0
  27. package/esm2015/lib/IconClickedEventArgs.js +10 -0
  28. package/esm2015/lib/IconView_combined.js +345 -314
  29. package/esm2015/lib/InputGroupView_combined.js +456 -355
  30. package/esm2015/lib/MultiSlider.js +7 -0
  31. package/esm2015/lib/MultiSliderBridge.js +165 -0
  32. package/esm2015/lib/MultiSliderCursor.js +11 -0
  33. package/esm2015/lib/MultiSliderHitInfo.js +22 -0
  34. package/esm2015/lib/MultiSliderOrientation.js +17 -0
  35. package/esm2015/lib/MultiSliderResolvingToolTipValueEventArgs.js +33 -0
  36. package/esm2015/lib/MultiSliderThumb.js +7 -0
  37. package/esm2015/lib/MultiSliderThumbCollection.js +21 -0
  38. package/esm2015/lib/MultiSliderThumbRangePosition.js +16 -0
  39. package/esm2015/lib/MultiSliderThumbValueChangingEventArgs.js +21 -0
  40. package/esm2015/lib/MultiSliderThumb_combined.js +297 -0
  41. package/esm2015/lib/MultiSliderTrackShadeOrientation.js +11 -0
  42. package/esm2015/lib/MultiSliderTrackThumbRange.js +7 -0
  43. package/esm2015/lib/MultiSliderView.js +7 -0
  44. package/esm2015/lib/MultiSliderView_combined.js +1785 -0
  45. package/esm2015/lib/MultiSliderVisualArea.js +11 -0
  46. package/esm2015/lib/MultiSliderYValueChangingEventArgs.js +20 -0
  47. package/esm2015/lib/NativeUIXInputsFactory.js +1 -179
  48. package/esm2015/lib/NativeUIXInputsFactory_combined.js +2113 -0
  49. package/esm2015/lib/XButtonBridge.js +25 -20
  50. package/esm2015/lib/XButtonGroupBridge.js +177 -0
  51. package/esm2015/lib/XComponentBridge.js +3 -0
  52. package/esm2015/lib/XIconBridge.js +20 -16
  53. package/esm2015/lib/XInputBridge.js +274 -26
  54. package/esm2015/lib/XPopupBridge.js +117 -98
  55. package/esm2015/lib/igx-color-editor-component.js +470 -0
  56. package/esm2015/lib/igx-color-editor-dynamic-module.js +45 -0
  57. package/esm2015/lib/igx-color-editor-got-focus-event-args.js +27 -0
  58. package/esm2015/lib/igx-color-editor-lost-focus-event-args.js +27 -0
  59. package/esm2015/lib/igx-color-editor-module.js +39 -0
  60. package/esm2015/lib/igx-color-editor-panel-closed-event-args.js +27 -0
  61. package/esm2015/lib/igx-color-editor-panel-component.js +376 -0
  62. package/esm2015/lib/igx-color-editor-panel-dynamic-module.js +66 -0
  63. package/esm2015/lib/igx-color-editor-panel-module.js +60 -0
  64. package/esm2015/lib/igx-color-editor-panel-selected-value-changed-event-args.js +40 -0
  65. package/esm2015/lib/igx-multi-slider-component.js +642 -0
  66. package/esm2015/lib/igx-multi-slider-dynamic-module.js +38 -0
  67. package/esm2015/lib/igx-multi-slider-module.js +36 -0
  68. package/esm2015/lib/igx-multi-slider-resolving-tool-tip-value-event-args.js +39 -0
  69. package/esm2015/lib/igx-multi-slider-thumb-collection.js +53 -0
  70. package/esm2015/lib/igx-multi-slider-thumb-value-changing-event-args.js +56 -0
  71. package/esm2015/lib/igx-multi-slider-thumb.js +111 -0
  72. package/esm2015/lib/igx-multi-slider-track-thumb-range.js +119 -0
  73. package/esm2015/lib/igx-multi-slider-y-value-changing-event-args.js +33 -0
  74. package/esm2015/lib/igx-x-button-component.js +262 -262
  75. package/esm2015/lib/igx-x-icon-component.js +66 -55
  76. package/esm2015/lib/igx-x-input-group-component.js +48 -48
  77. package/esm2015/lib/igx-x-label-component.js +41 -40
  78. package/esm2015/public_api.js +55 -0
  79. package/esm5/lib/ButtonGroupView_combined.js +19 -19
  80. package/esm5/lib/ButtonView_combined.js +765 -735
  81. package/esm5/lib/CalendarView_combined.js +82 -82
  82. package/esm5/lib/ColorEditor.js +7 -0
  83. package/esm5/lib/ColorEditorBridge.js +7 -0
  84. package/esm5/lib/ColorEditorGotFocusEventArgs.js +20 -0
  85. package/esm5/lib/ColorEditorLostFocusEventArgs.js +20 -0
  86. package/esm5/lib/ColorEditorPanel.js +7 -0
  87. package/esm5/lib/ColorEditorPanelClosedEventArgs.js +20 -0
  88. package/esm5/lib/ColorEditorPanelSelectedValueChangedEventArgs.js +43 -0
  89. package/esm5/lib/ColorEditorPanelView.js +7 -0
  90. package/esm5/lib/ColorEditorView.js +7 -0
  91. package/esm5/lib/DatePickerView_combined.js +18 -18
  92. package/esm5/lib/DefaultMultiSliderTrackBarVisual.js +139 -0
  93. package/esm5/lib/DefaultMultiSliderTrackRangeVisual.js +242 -0
  94. package/esm5/lib/DefaultMultiSliderTrackThumbCalloutVisual.js +212 -0
  95. package/esm5/lib/DefaultMultiSliderTrackThumbVisual.js +227 -0
  96. package/esm5/lib/DefaultMultiTrackShadeVisual.js +206 -0
  97. package/esm5/lib/IMultiSliderTrackBarVisual.js +11 -0
  98. package/esm5/lib/IMultiSliderTrackRangeVisual.js +11 -0
  99. package/esm5/lib/IMultiSliderTrackShadeVisual.js +11 -0
  100. package/esm5/lib/IMultiSliderTrackThumbCalloutVisual.js +11 -0
  101. package/esm5/lib/IMultiSliderTrackThumbVisual.js +11 -0
  102. package/esm5/lib/ISliderTrackOwner.js +11 -0
  103. package/esm5/lib/IconClickedEventArgs.js +13 -1
  104. package/esm5/lib/IconView_combined.js +336 -301
  105. package/esm5/lib/InputGroupView_combined.js +444 -343
  106. package/esm5/lib/MultiSlider.js +7 -0
  107. package/esm5/lib/MultiSliderBridge.js +167 -0
  108. package/esm5/lib/MultiSliderCursor.js +11 -0
  109. package/esm5/lib/MultiSliderHitInfo.js +24 -0
  110. package/esm5/lib/MultiSliderOrientation.js +17 -0
  111. package/esm5/lib/MultiSliderResolvingToolTipValueEventArgs.js +43 -0
  112. package/esm5/lib/MultiSliderThumb.js +7 -0
  113. package/esm5/lib/MultiSliderThumbCollection.js +22 -0
  114. package/esm5/lib/MultiSliderThumbRangePosition.js +16 -0
  115. package/esm5/lib/MultiSliderThumbValueChangingEventArgs.js +23 -0
  116. package/esm5/lib/MultiSliderThumb_combined.js +352 -0
  117. package/esm5/lib/MultiSliderTrackShadeOrientation.js +11 -0
  118. package/esm5/lib/MultiSliderTrackThumbRange.js +7 -0
  119. package/esm5/lib/MultiSliderView.js +7 -0
  120. package/esm5/lib/MultiSliderView_combined.js +2006 -0
  121. package/esm5/lib/MultiSliderVisualArea.js +11 -0
  122. package/esm5/lib/MultiSliderYValueChangingEventArgs.js +22 -0
  123. package/esm5/lib/NativeUIXInputsFactory.js +1 -189
  124. package/esm5/lib/NativeUIXInputsFactory_combined.js +2298 -0
  125. package/esm5/lib/XButtonBridge.js +25 -20
  126. package/esm5/lib/XButtonGroupBridge.js +179 -0
  127. package/esm5/lib/XComponentBridge.js +3 -0
  128. package/esm5/lib/XIconBridge.js +20 -16
  129. package/esm5/lib/XInputBridge.js +274 -26
  130. package/esm5/lib/XPopupBridge.js +117 -98
  131. package/esm5/lib/igx-color-editor-component.js +555 -0
  132. package/esm5/lib/igx-color-editor-dynamic-module.js +44 -0
  133. package/esm5/lib/igx-color-editor-got-focus-event-args.js +33 -0
  134. package/esm5/lib/igx-color-editor-lost-focus-event-args.js +33 -0
  135. package/esm5/lib/igx-color-editor-module.js +38 -0
  136. package/esm5/lib/igx-color-editor-panel-closed-event-args.js +33 -0
  137. package/esm5/lib/igx-color-editor-panel-component.js +435 -0
  138. package/esm5/lib/igx-color-editor-panel-dynamic-module.js +65 -0
  139. package/esm5/lib/igx-color-editor-panel-module.js +59 -0
  140. package/esm5/lib/igx-color-editor-panel-selected-value-changed-event-args.js +54 -0
  141. package/esm5/lib/igx-multi-slider-component.js +842 -0
  142. package/esm5/lib/igx-multi-slider-dynamic-module.js +37 -0
  143. package/esm5/lib/igx-multi-slider-module.js +35 -0
  144. package/esm5/lib/igx-multi-slider-resolving-tool-tip-value-event-args.js +53 -0
  145. package/esm5/lib/igx-multi-slider-thumb-collection.js +58 -0
  146. package/esm5/lib/igx-multi-slider-thumb-value-changing-event-args.js +70 -0
  147. package/esm5/lib/igx-multi-slider-thumb.js +134 -0
  148. package/esm5/lib/igx-multi-slider-track-thumb-range.js +149 -0
  149. package/esm5/lib/igx-multi-slider-y-value-changing-event-args.js +43 -0
  150. package/esm5/lib/igx-x-button-component.js +262 -262
  151. package/esm5/lib/igx-x-icon-component.js +70 -55
  152. package/esm5/lib/igx-x-input-group-component.js +48 -48
  153. package/esm5/lib/igx-x-label-component.js +41 -40
  154. package/esm5/public_api.js +55 -0
  155. package/fesm2015/igniteui-angular-inputs.js +15626 -7466
  156. package/fesm5/igniteui-angular-inputs.js +16802 -7565
  157. package/lib/ButtonView_combined.d.ts +243 -241
  158. package/lib/ColorEditor.d.ts +1 -0
  159. package/lib/ColorEditorBridge.d.ts +1 -0
  160. package/lib/ColorEditorGotFocusEventArgs.d.ts +7 -0
  161. package/lib/ColorEditorLostFocusEventArgs.d.ts +7 -0
  162. package/lib/ColorEditorPanel.d.ts +1 -0
  163. package/lib/ColorEditorPanelClosedEventArgs.d.ts +7 -0
  164. package/lib/ColorEditorPanelSelectedValueChangedEventArgs.d.ts +14 -0
  165. package/lib/ColorEditorPanelView.d.ts +1 -0
  166. package/lib/ColorEditorView.d.ts +1 -0
  167. package/lib/DefaultMultiSliderTrackBarVisual.d.ts +34 -0
  168. package/lib/DefaultMultiSliderTrackRangeVisual.d.ts +43 -0
  169. package/lib/DefaultMultiSliderTrackThumbCalloutVisual.d.ts +49 -0
  170. package/lib/DefaultMultiSliderTrackThumbVisual.d.ts +45 -0
  171. package/lib/DefaultMultiTrackShadeVisual.d.ts +42 -0
  172. package/lib/IMultiSliderTrackBarVisual.d.ts +21 -0
  173. package/lib/IMultiSliderTrackRangeVisual.d.ts +25 -0
  174. package/lib/IMultiSliderTrackShadeVisual.d.ts +24 -0
  175. package/lib/IMultiSliderTrackThumbCalloutVisual.d.ts +27 -0
  176. package/lib/IMultiSliderTrackThumbVisual.d.ts +27 -0
  177. package/lib/ISliderTrackOwner.d.ts +15 -0
  178. package/lib/IconClickedEventArgs.d.ts +3 -0
  179. package/lib/IconView_combined.d.ts +88 -84
  180. package/lib/InputGroupView_combined.d.ts +120 -113
  181. package/lib/MultiSlider.d.ts +1 -0
  182. package/lib/MultiSliderBridge.d.ts +24 -0
  183. package/lib/MultiSliderCursor.d.ts +15 -0
  184. package/lib/MultiSliderHitInfo.d.ts +13 -0
  185. package/lib/MultiSliderOrientation.d.ts +10 -0
  186. package/lib/MultiSliderResolvingToolTipValueEventArgs.d.ts +13 -0
  187. package/lib/MultiSliderThumb.d.ts +1 -0
  188. package/lib/MultiSliderThumbCollection.d.ts +10 -0
  189. package/lib/MultiSliderThumbRangePosition.d.ts +9 -0
  190. package/lib/MultiSliderThumbValueChangingEventArgs.d.ts +10 -0
  191. package/lib/MultiSliderThumb_combined.d.ts +76 -0
  192. package/lib/MultiSliderTrackShadeOrientation.d.ts +14 -0
  193. package/lib/MultiSliderTrackThumbRange.d.ts +1 -0
  194. package/lib/MultiSliderView.d.ts +1 -0
  195. package/lib/MultiSliderView_combined.d.ts +298 -0
  196. package/lib/MultiSliderVisualArea.d.ts +14 -0
  197. package/lib/MultiSliderYValueChangingEventArgs.d.ts +8 -0
  198. package/lib/NativeUIXInputsFactory.d.ts +1 -24
  199. package/lib/NativeUIXInputsFactory_combined.d.ts +393 -0
  200. package/lib/XButtonGroupBridge.d.ts +29 -0
  201. package/lib/XInputBridge.d.ts +29 -5
  202. package/lib/XPopupBridge.d.ts +12 -9
  203. package/lib/igx-color-editor-component.d.ts +161 -0
  204. package/lib/igx-color-editor-dynamic-module.d.ts +10 -0
  205. package/lib/igx-color-editor-got-focus-event-args.d.ts +12 -0
  206. package/lib/igx-color-editor-lost-focus-event-args.d.ts +12 -0
  207. package/lib/igx-color-editor-module.d.ts +10 -0
  208. package/lib/igx-color-editor-panel-closed-event-args.d.ts +12 -0
  209. package/lib/igx-color-editor-panel-component.d.ts +125 -0
  210. package/lib/igx-color-editor-panel-dynamic-module.d.ts +13 -0
  211. package/lib/igx-color-editor-panel-module.d.ts +13 -0
  212. package/lib/igx-color-editor-panel-selected-value-changed-event-args.d.ts +16 -0
  213. package/lib/igx-multi-slider-component.d.ts +200 -0
  214. package/lib/igx-multi-slider-dynamic-module.d.ts +9 -0
  215. package/lib/igx-multi-slider-module.d.ts +9 -0
  216. package/lib/igx-multi-slider-resolving-tool-tip-value-event-args.d.ts +17 -0
  217. package/lib/igx-multi-slider-thumb-collection.d.ts +8 -0
  218. package/lib/igx-multi-slider-thumb-value-changing-event-args.d.ts +18 -0
  219. package/lib/igx-multi-slider-thumb.d.ts +33 -0
  220. package/lib/igx-multi-slider-track-thumb-range.d.ts +32 -0
  221. package/lib/igx-multi-slider-y-value-changing-event-args.d.ts +15 -0
  222. package/lib/igx-x-icon-component.d.ts +6 -1
  223. package/package.json +2 -2
  224. package/public_api.d.ts +55 -0
@@ -0,0 +1,2006 @@
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 { __extends, __values } from "tslib";
8
+ import { Base, runOn, delegateCombine, delegateRemove, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox, fromEn } from "igniteui-angular-core";
9
+ import { List$1 } from "igniteui-angular-core";
10
+ import { IMultiSliderTrackThumbVisual_$type } from "./IMultiSliderTrackThumbVisual";
11
+ import { IMultiSliderTrackRangeVisual_$type } from "./IMultiSliderTrackRangeVisual";
12
+ import { IMultiSliderTrackThumbCalloutVisual_$type } from "./IMultiSliderTrackThumbCalloutVisual";
13
+ import { RenderingContext } from "igniteui-angular-core";
14
+ import { DefaultMultiSliderTrackBarVisual } from "./DefaultMultiSliderTrackBarVisual";
15
+ import { FontInfo } from "igniteui-angular-core";
16
+ import { Rect } from "igniteui-angular-core";
17
+ import { TranslateTransform } from "igniteui-angular-core";
18
+ import { CanvasViewRenderer } from "igniteui-angular-core";
19
+ import { CanvasGestureDOMEventProxy } from "igniteui-angular-core";
20
+ import { FontUtil } from "igniteui-angular-core";
21
+ import { Size } from "igniteui-angular-core";
22
+ import { DefaultMultiSliderTrackThumbVisual } from "./DefaultMultiSliderTrackThumbVisual";
23
+ import { MultiSliderTrackThumbRange } from "./MultiSliderTrackThumbRange";
24
+ import { NotImplementedException } from "igniteui-angular-core";
25
+ import { DefaultMultiSliderTrackThumbCalloutVisual } from "./DefaultMultiSliderTrackThumbCalloutVisual";
26
+ import { truncate, isNaN_ } from "igniteui-angular-core";
27
+ import { ISliderTrackOwner_$type } from "./ISliderTrackOwner";
28
+ import { MultiSliderThumbCollection } from "./MultiSliderThumbCollection";
29
+ import { MultiSliderHitInfo } from "./MultiSliderHitInfo";
30
+ import { MultiSliderOrientation_$type } from "./MultiSliderOrientation";
31
+ import { MultiSliderResolvingToolTipValueEventArgs } from "./MultiSliderResolvingToolTipValueEventArgs";
32
+ import { MultiSliderThumbValueChangingEventArgs } from "./MultiSliderThumbValueChangingEventArgs";
33
+ import { MultiSliderYValueChangingEventArgs } from "./MultiSliderYValueChangingEventArgs";
34
+ import { Thickness } from "igniteui-angular-core";
35
+ /**
36
+ * @hidden
37
+ */
38
+ var MultiSliderView = /** @class */ /*@__PURE__*/ (function (_super) {
39
+ __extends(MultiSliderView, _super);
40
+ function MultiSliderView(a) {
41
+ var _this = _super.call(this) || this;
42
+ _this.n = false;
43
+ _this.r = null;
44
+ _this.q = null;
45
+ _this.b = null;
46
+ _this.p = null;
47
+ _this.g = null;
48
+ _this.u = null;
49
+ _this.v = null;
50
+ _this.l = null;
51
+ _this.t = 0;
52
+ _this.o = false;
53
+ _this.x = 0;
54
+ _this.w = 0;
55
+ _this.j = null;
56
+ _this.a = null;
57
+ _this.i = null;
58
+ _this.y = -1;
59
+ _this.s = 10;
60
+ _this.h = 0;
61
+ _this.z = -1;
62
+ _this.m = true;
63
+ _this.g = a;
64
+ _this.r = new List$1(IMultiSliderTrackThumbVisual_$type, 0);
65
+ _this.q = new List$1(IMultiSliderTrackRangeVisual_$type, 0);
66
+ _this.b = new DefaultMultiSliderTrackBarVisual();
67
+ _this.p = new List$1(IMultiSliderTrackThumbCalloutVisual_$type, 0);
68
+ _this.j = _this.k();
69
+ _this.ap();
70
+ return _this;
71
+ }
72
+ MultiSliderView.prototype.at = function () {
73
+ this.m = true;
74
+ this.ap();
75
+ if (this.a != null) {
76
+ this.a.at(this.u.rootWrapper, "");
77
+ }
78
+ if (this.z == -1) {
79
+ this.z = this.u.setTimeout(runOn(this, this.an), 200);
80
+ }
81
+ };
82
+ MultiSliderView.prototype.au = function () {
83
+ this.m = false;
84
+ if (this.a != null && this.u != null) {
85
+ this.a.bh(this.u.rootWrapper, "");
86
+ }
87
+ if (this.z != -1) {
88
+ window.clearTimeout(this.z);
89
+ this.z = -1;
90
+ }
91
+ };
92
+ MultiSliderView.prototype.aq = function () {
93
+ if (!this.n) {
94
+ if (this.u != null) {
95
+ this.n = true;
96
+ this.u.setTimeout(runOn(this, this.a6), 0);
97
+ }
98
+ }
99
+ };
100
+ MultiSliderView.prototype.ak = function () {
101
+ this.a6();
102
+ };
103
+ MultiSliderView.prototype.a6 = function () {
104
+ if (!this.n) {
105
+ return;
106
+ }
107
+ this.n = false;
108
+ this.g.d8();
109
+ this.a0();
110
+ };
111
+ MultiSliderView.prototype.a0 = function () {
112
+ if (this.l == null) {
113
+ return;
114
+ }
115
+ var a = this.g.e0.width;
116
+ var b = this.g.e0.height;
117
+ var c = Math.round(a * this.t);
118
+ var d = Math.round(b * this.t);
119
+ if (this.x != c || this.w != d) {
120
+ this.v.setAttribute("width", c.toString());
121
+ this.v.setAttribute("height", d.toString());
122
+ this.v.setStyleProperty("width", a.toString() + "px");
123
+ this.v.setStyleProperty("height", b.toString() + "px");
124
+ this.x = truncate(Math.round(c));
125
+ this.w = truncate(Math.round(d));
126
+ }
127
+ if (this.l.d && this.t != 1) {
128
+ this.l.aa();
129
+ this.l.ab(this.t, this.t);
130
+ }
131
+ this.l.l(this.g.e0.left, this.g.e0.top, this.g.e0.width, this.g.e0.height);
132
+ for (var e = 0; e < this.r.count; e++) {
133
+ this.a4(this.r._inner[e].allPaths, this.r._inner[e].translateX, this.r._inner[e].translateY);
134
+ }
135
+ for (var f = 0; f < this.q.count; f++) {
136
+ this.a4(this.q._inner[f].allPaths, this.q._inner[f].translateX, this.q._inner[f].translateY);
137
+ }
138
+ this.a4(this.b.allPaths, this.b.translateX, this.b.translateY);
139
+ for (var g = 0; g < this.p.count; g++) {
140
+ this.a4(this.p._inner[g].allPaths, this.p._inner[g].translateX, this.p._inner[g].translateY);
141
+ this.a5(this.p._inner[g].calloutText, this.p._inner[g].textTranslateX, this.p._inner[g].textTranslateY);
142
+ }
143
+ this.a1(this.b.allPaths);
144
+ for (var h = 0; h < this.q.count; h++) {
145
+ this.a1(this.q._inner[h].allPaths);
146
+ }
147
+ for (var i = 0; i < this.r.count; i++) {
148
+ this.a1(this.r._inner[i].allPaths);
149
+ }
150
+ if (this.l.d && this.t != 1) {
151
+ this.l.z();
152
+ }
153
+ };
154
+ MultiSliderView.prototype.a2 = function (a) {
155
+ if (a.j != null) {
156
+ this.l.aa();
157
+ }
158
+ this.l.k(a.j);
159
+ this.l.x(a);
160
+ if (a.j != null) {
161
+ this.l.z();
162
+ }
163
+ };
164
+ MultiSliderView.prototype.a1 = function (a) {
165
+ for (var b = 0; b < a.count; b++) {
166
+ var c = a.item(b);
167
+ if (c.j != null) {
168
+ this.l.aa();
169
+ }
170
+ this.l.k(c.j);
171
+ this.l.t(c);
172
+ if (c.j != null) {
173
+ this.l.z();
174
+ }
175
+ }
176
+ };
177
+ MultiSliderView.prototype.a5 = function (a, b, c) {
178
+ if (a.j == null) {
179
+ a.j = new TranslateTransform();
180
+ }
181
+ var d = a.j;
182
+ d.j = b;
183
+ d.k = c;
184
+ };
185
+ MultiSliderView.prototype.a4 = function (a, b, c) {
186
+ for (var d = 0; d < a.count; d++) {
187
+ var e = a.item(d);
188
+ if (e.j == null) {
189
+ e.j = new TranslateTransform();
190
+ }
191
+ var f = e.j;
192
+ f.j = b;
193
+ f.k = c;
194
+ }
195
+ };
196
+ MultiSliderView.prototype.ap = function () {
197
+ var a = this.g.bh;
198
+ var b = this.g.a9;
199
+ if (!isNaN_(a) && a != 0) {
200
+ return;
201
+ }
202
+ if (window.devicePixelRatio != undefined && window.devicePixelRatio != b) {
203
+ this.g.a9 = window.devicePixelRatio;
204
+ }
205
+ };
206
+ MultiSliderView.prototype.ax = function (a) {
207
+ var _this = this;
208
+ if (a == null) {
209
+ var b = this.u;
210
+ this.v = null;
211
+ this.u = null;
212
+ this.l = null;
213
+ this.ab();
214
+ if (this.z != -1) {
215
+ if (b != null) {
216
+ b.clearTimeout(this.z);
217
+ }
218
+ else {
219
+ window.clearTimeout(this.z);
220
+ }
221
+ this.z = -1;
222
+ }
223
+ return;
224
+ }
225
+ this.t = (isNaN_(this.g.bh) ? this.g.a9 : this.g.bh);
226
+ var c = a;
227
+ this.u = c;
228
+ this.u.rootWrapper.setStyleProperty("min-height", (this.g.bm + 5) + "px");
229
+ this.u.rootWrapper.setStyleProperty("min-width", (this.g.bo + 5) + "px");
230
+ this.u.rootWrapper.addClass("ui-MultiSlider-container");
231
+ var d = this.t;
232
+ var e = Math.round(c.rootWrapper.width());
233
+ var f = Math.round(c.rootWrapper.height());
234
+ var g = e * d;
235
+ var h = f * d;
236
+ this.u.rootWrapper.setStyleProperty("position", "relative");
237
+ var i = this.u.createElement("canvas");
238
+ i.setStyleProperty("position", "absolute");
239
+ this.u.append(i);
240
+ this.x = truncate(Math.round(g));
241
+ this.w = truncate(Math.round(h));
242
+ i.setAttribute("width", g.toString());
243
+ i.setAttribute("height", h.toString());
244
+ i.setStyleProperty("width", e.toString() + "px");
245
+ i.setStyleProperty("height", f.toString() + "px");
246
+ this.v = i;
247
+ var j = this.u.get2DCanvasContext(this.v);
248
+ this.l = new RenderingContext(new CanvasViewRenderer(), j);
249
+ this.l.ad(this.j);
250
+ this.ab();
251
+ this.a = new CanvasGestureDOMEventProxy(this.u.rootWrapper, this.u, false);
252
+ this.a.bl = this.g.e0;
253
+ var k = this.a;
254
+ k.onContactStarted = delegateCombine(k.onContactStarted, runOn(this, this.aj));
255
+ var l = this.a;
256
+ l.onContactMoved = delegateCombine(l.onContactMoved, runOn(this, this.ai));
257
+ var m = this.a;
258
+ m.onContactCompleted = delegateCombine(m.onContactCompleted, runOn(this, this.ah));
259
+ this.a.ao = function (n) { return _this.g.ey.containsPoint(n); };
260
+ this.g.ds(0, 0, e, f);
261
+ this.s = FontUtil.getCurrentFontHeight(this.u, this.j);
262
+ this.g.trackDirty();
263
+ this.z = this.u.setTimeout(runOn(this, this.an), 200);
264
+ };
265
+ MultiSliderView.prototype.ah = function (a, b) {
266
+ this.g.dh(a, b);
267
+ };
268
+ MultiSliderView.prototype.ai = function (a, b) {
269
+ this.g.di(a);
270
+ };
271
+ MultiSliderView.prototype.aj = function (a, b) {
272
+ this.g.af(a, b);
273
+ };
274
+ MultiSliderView.prototype.ab = function () {
275
+ if (this.a != null) {
276
+ var a = this.a;
277
+ a.onContactStarted = delegateRemove(a.onContactStarted, runOn(this, this.aj));
278
+ var b = this.a;
279
+ b.onContactMoved = delegateRemove(b.onContactMoved, runOn(this, this.ai));
280
+ var c = this.a;
281
+ c.onContactCompleted = delegateRemove(c.onContactCompleted, runOn(this, this.ah));
282
+ this.a.ao = null;
283
+ this.a.av();
284
+ }
285
+ };
286
+ MultiSliderView.prototype.ay = function () {
287
+ };
288
+ MultiSliderView.prototype.ar = function () {
289
+ this.as(true);
290
+ };
291
+ MultiSliderView.prototype.as = function (a) {
292
+ if (this.u == null || this.u.rootWrapper == null) {
293
+ return;
294
+ }
295
+ this.ap();
296
+ var b = Math.round(this.u.rootWrapper.width());
297
+ var c = Math.round(this.u.rootWrapper.height());
298
+ var d = b != this.g.e0.width || c != this.g.e0.height;
299
+ if (a || d) {
300
+ this.g.ds(0, 0, b, c);
301
+ if (this.a != null) {
302
+ this.a.bl = this.g.e0;
303
+ }
304
+ }
305
+ };
306
+ MultiSliderView.prototype.am = function () {
307
+ };
308
+ MultiSliderView.prototype.k = function () {
309
+ return ((function () {
310
+ var $ret = new FontInfo();
311
+ $ret.q = "Verdana";
312
+ $ret.f = 10;
313
+ return $ret;
314
+ })());
315
+ };
316
+ MultiSliderView.prototype.a7 = function (a, b, c) {
317
+ if (a.al != b) {
318
+ a.al = b;
319
+ }
320
+ if (this.i != c) {
321
+ this.i = c;
322
+ this.j = this.i;
323
+ this.s = FontUtil.getCurrentFontHeight(this.u, this.j);
324
+ this.l.ad(this.i);
325
+ this.g.trackDirty();
326
+ }
327
+ };
328
+ MultiSliderView.prototype.ae = function () {
329
+ if (this.h != 4) {
330
+ this.h = 4;
331
+ this.u.rootWrapper.setStyleProperty("cursor", "move");
332
+ }
333
+ };
334
+ MultiSliderView.prototype.ag = function () {
335
+ if (this.h != 3) {
336
+ this.h = 3;
337
+ this.u.rootWrapper.setStyleProperty("cursor", "ns-resize");
338
+ }
339
+ };
340
+ MultiSliderView.prototype.ad = function () {
341
+ if (this.h != 0) {
342
+ this.h = 0;
343
+ this.u.rootWrapper.setStyleProperty("cursor", "inherit");
344
+ }
345
+ };
346
+ MultiSliderView.prototype.af = function () {
347
+ if (this.h != 1) {
348
+ this.h = 1;
349
+ this.u.rootWrapper.setStyleProperty("cursor", "ew-resize");
350
+ }
351
+ };
352
+ MultiSliderView.prototype.ac = function () {
353
+ if (this.h != 2) {
354
+ this.h = 2;
355
+ this.u.rootWrapper.setStyleProperty("cursor", "move");
356
+ }
357
+ };
358
+ MultiSliderView.prototype.a8 = function (a) {
359
+ var b = this.s;
360
+ var c = this.l.g(a.al);
361
+ return new Size(1, c, b);
362
+ };
363
+ MultiSliderView.prototype.aw = function () {
364
+ this.t = this.g.a9;
365
+ this.aq();
366
+ };
367
+ MultiSliderView.prototype.a3 = function () {
368
+ if (this.u == null || this.u.rootWrapper == null) {
369
+ return;
370
+ }
371
+ this.u.rootWrapper.show();
372
+ };
373
+ MultiSliderView.prototype.ao = function () {
374
+ if (this.u == null || this.u.rootWrapper == null) {
375
+ return;
376
+ }
377
+ this.u.rootWrapper.hide();
378
+ };
379
+ MultiSliderView.prototype.an = function () {
380
+ this.z = -1;
381
+ if (this.u == null) {
382
+ return;
383
+ }
384
+ if (!this.m) {
385
+ return;
386
+ }
387
+ this.as(false);
388
+ this.z = this.u.setTimeout(runOn(this, this.an), 200);
389
+ };
390
+ MultiSliderView.prototype.av = function () {
391
+ };
392
+ MultiSliderView.prototype.f = function (a) {
393
+ return a.c;
394
+ };
395
+ MultiSliderView.prototype.az = function (a) {
396
+ if (a.c != null) {
397
+ this.r.remove(a.c);
398
+ a.c = null;
399
+ }
400
+ if (a.b != null) {
401
+ this.p.remove(a.b);
402
+ a.b = null;
403
+ }
404
+ };
405
+ MultiSliderView.prototype.e = function (a, b) {
406
+ var c = new DefaultMultiSliderTrackThumbVisual();
407
+ this.r.insert(b, c);
408
+ return c;
409
+ };
410
+ MultiSliderView.prototype.c = function (a) {
411
+ throw new NotImplementedException(0);
412
+ };
413
+ MultiSliderView.prototype.d = function (a) {
414
+ if (a.b == null) {
415
+ a.b = new DefaultMultiSliderTrackThumbCalloutVisual();
416
+ this.p.add(a.b);
417
+ return a.b;
418
+ }
419
+ return a.b;
420
+ };
421
+ MultiSliderView.prototype.al = function (a) {
422
+ for (var b = 0; b < this.p.count; b++) {
423
+ a(this.p._inner[b]);
424
+ }
425
+ };
426
+ MultiSliderView.$t = markType(MultiSliderView, 'MultiSliderView');
427
+ return MultiSliderView;
428
+ }(Base));
429
+ export { MultiSliderView };
430
+ /**
431
+ * @hidden
432
+ */
433
+ var MultiSlider = /** @class */ /*@__PURE__*/ (function (_super) {
434
+ __extends(MultiSlider, _super);
435
+ function MultiSlider() {
436
+ var _this = _super.call(this) || this;
437
+ _this.g = new MultiSliderThumbCollection();
438
+ _this.ag = new List$1(MultiSliderTrackThumbRange.$, 0);
439
+ _this.k = null;
440
+ _this.propertyChanged = null;
441
+ _this.b1 = 500;
442
+ _this.as = 0;
443
+ _this.ar = 100;
444
+ _this.aw = NaN;
445
+ _this.a2 = 100;
446
+ _this.a3 = 0;
447
+ _this.a5 = NaN;
448
+ _this.at = NaN;
449
+ _this.ai = 1;
450
+ _this.resolvingToolTipValue = null;
451
+ _this.ex = new Rect(0, 0, 0, 1, 1);
452
+ _this.x = false;
453
+ _this.a8 = 0;
454
+ _this.a4 = 0;
455
+ _this.aj = 0;
456
+ _this.b = null;
457
+ _this.a = null;
458
+ _this.ew = null;
459
+ _this.ev = null;
460
+ _this.e2 = new Thickness(1, 5, 5, 5, 5);
461
+ _this.e0 = null;
462
+ _this.ey = null;
463
+ _this.ez = null;
464
+ _this.av = 0;
465
+ _this.ap = 0;
466
+ _this.a1 = 15;
467
+ _this.a0 = 15;
468
+ _this.a7 = 15;
469
+ _this.a6 = 15;
470
+ _this.ak = 10;
471
+ _this.d = 0;
472
+ _this.eh = null;
473
+ _this.ay = 1;
474
+ _this.ei = null;
475
+ _this.az = 22;
476
+ _this.ax = 22;
477
+ _this.d9 = null;
478
+ _this.ea = null;
479
+ _this.al = 0;
480
+ _this.ee = null;
481
+ _this.ef = null;
482
+ _this.au = 1;
483
+ _this.eg = null;
484
+ _this.ej = null;
485
+ _this.eb = null;
486
+ _this.ed = null;
487
+ _this.ec = null;
488
+ _this.am = 1;
489
+ _this.t = false;
490
+ _this.n = null;
491
+ _this.p = null;
492
+ _this.q = false;
493
+ _this.r = false;
494
+ _this.ao = 0;
495
+ _this.an = 0;
496
+ _this.aq = 0;
497
+ _this.s = false;
498
+ _this.thumbValueChanging = null;
499
+ _this.thumbValueChanged = null;
500
+ _this.yValueChanging = null;
501
+ _this.yValueChanged = null;
502
+ var a = _this.thumbs;
503
+ a.collectionChanged = delegateCombine(a.collectionChanged, runOn(_this, _this.dz));
504
+ _this.a = ((function () {
505
+ var $ret = new MultiSliderHitInfo();
506
+ $ret.c = 3;
507
+ return $ret;
508
+ })());
509
+ _this.e0 = Rect.empty;
510
+ _this.ey = Rect.empty;
511
+ _this.ez = Rect.empty;
512
+ _this.k = new MultiSliderView(_this);
513
+ _this.n = _this.k.k();
514
+ return _this;
515
+ }
516
+ Object.defineProperty(MultiSlider.prototype, "thumbs", {
517
+ get: function () {
518
+ return this.g;
519
+ },
520
+ enumerable: false,
521
+ configurable: true
522
+ });
523
+ Object.defineProperty(MultiSlider.prototype, "ah", {
524
+ get: function () {
525
+ return this.ag;
526
+ },
527
+ enumerable: false,
528
+ configurable: true
529
+ });
530
+ MultiSlider.prototype.onDetachedFromUI = function () {
531
+ this.k.au();
532
+ };
533
+ MultiSlider.prototype.onAttachedToUI = function () {
534
+ this.k.at();
535
+ };
536
+ Object.defineProperty(MultiSlider.prototype, "bg", {
537
+ get: function () {
538
+ return this.as;
539
+ },
540
+ set: function (a) {
541
+ var b = this.as;
542
+ this.as = a;
543
+ if (b != this.as) {
544
+ this.dl("Min", b, this.as);
545
+ }
546
+ },
547
+ enumerable: false,
548
+ configurable: true
549
+ });
550
+ Object.defineProperty(MultiSlider.prototype, "bf", {
551
+ get: function () {
552
+ return this.ar;
553
+ },
554
+ set: function (a) {
555
+ var b = this.ar;
556
+ this.ar = a;
557
+ if (b != this.ar) {
558
+ this.dl("Max", b, this.ar);
559
+ }
560
+ },
561
+ enumerable: false,
562
+ configurable: true
563
+ });
564
+ Object.defineProperty(MultiSlider.prototype, "bl", {
565
+ get: function () {
566
+ return this.aw;
567
+ },
568
+ set: function (a) {
569
+ var b = this.aw;
570
+ this.aw = a;
571
+ if (b != this.aw) {
572
+ this.dl("Step", b, this.aw);
573
+ }
574
+ },
575
+ enumerable: false,
576
+ configurable: true
577
+ });
578
+ Object.defineProperty(MultiSlider.prototype, "bu", {
579
+ get: function () {
580
+ return this.a2;
581
+ },
582
+ set: function (a) {
583
+ var b = this.a2;
584
+ this.a2 = a;
585
+ if (b != this.a2) {
586
+ this.dl("YMax", b, this.a2);
587
+ }
588
+ },
589
+ enumerable: false,
590
+ configurable: true
591
+ });
592
+ Object.defineProperty(MultiSlider.prototype, "bv", {
593
+ get: function () {
594
+ return this.a3;
595
+ },
596
+ set: function (a) {
597
+ var b = this.a3;
598
+ this.a3 = a;
599
+ if (b != this.a3) {
600
+ this.dl("YMin", b, this.a3);
601
+ }
602
+ },
603
+ enumerable: false,
604
+ configurable: true
605
+ });
606
+ Object.defineProperty(MultiSlider.prototype, "bx", {
607
+ get: function () {
608
+ return this.a5;
609
+ },
610
+ set: function (a) {
611
+ var b = this.a5;
612
+ this.a5 = a;
613
+ if (b != this.a5) {
614
+ this.dl("YStep", b, this.a5);
615
+ }
616
+ },
617
+ enumerable: false,
618
+ configurable: true
619
+ });
620
+ Object.defineProperty(MultiSlider.prototype, "bh", {
621
+ get: function () {
622
+ return this.at;
623
+ },
624
+ set: function (a) {
625
+ var b = this.at;
626
+ this.at = a;
627
+ if (b != this.at) {
628
+ this.dl("PixelScalingRatio", b, this.at);
629
+ }
630
+ },
631
+ enumerable: false,
632
+ configurable: true
633
+ });
634
+ Object.defineProperty(MultiSlider.prototype, "a9", {
635
+ get: function () {
636
+ return this.ai;
637
+ },
638
+ set: function (a) {
639
+ var b = this.ai;
640
+ this.ai = a;
641
+ if (b != this.ai) {
642
+ this.dl("ActualPixelScalingRatio", b, this.ai);
643
+ }
644
+ },
645
+ enumerable: false,
646
+ configurable: true
647
+ });
648
+ MultiSlider.prototype.ds = function (a, b, c, d) {
649
+ this.e0 = new Rect(0, a, b, c, d);
650
+ if (this.e == 0) {
651
+ var e = Math.max(0, this.e0.width - (this.bk + this.be));
652
+ this.ey = new Rect(0, this.e0.left + this.bk, this.e0.top, e, this.e0.height);
653
+ var f = Math.max(0, this.ey.width - (this.bq + this.bp));
654
+ this.ez = new Rect(0, this.ey.left + this.bq, this.ey.top, f, this.ey.height);
655
+ }
656
+ else if (this.e == 2) {
657
+ var g = Math.max(0, this.e0.width - (this.bk + this.be));
658
+ this.ey = new Rect(0, this.e0.left + this.bk, this.e0.top, g, this.e0.height);
659
+ var h = Math.max(0, this.ey.width - (this.bq + this.bp));
660
+ var i = Math.max(0, this.ey.height - (this.bz + this.by));
661
+ this.ez = new Rect(0, this.ey.left + this.bq, this.ey.top + this.bz, h, i);
662
+ }
663
+ else {
664
+ this.ey = new Rect(0, this.e0.left, this.e0.top + this.bk, this.e0.width, this.e0.height - (this.bk + this.be));
665
+ this.ez = new Rect(0, this.ey.left, this.ey.top + this.bq, this.ey.width, this.ey.height - (this.bq + this.bp));
666
+ }
667
+ this.trackDirty();
668
+ };
669
+ MultiSlider.prototype.d8 = function () {
670
+ if (!this.s) {
671
+ return;
672
+ }
673
+ this.s = false;
674
+ var a = this.k.b;
675
+ for (var b = 0; b < this.thumbs.count; b++) {
676
+ this.d5(this.k.f(this.thumbs._inner[b]), this.thumbs._inner[b]);
677
+ }
678
+ for (var c = 0; c < this.ah.count; c++) {
679
+ this.d3(this.k.c(this.ah._inner[c]), this.ah._inner[c]);
680
+ }
681
+ this.d0(a);
682
+ };
683
+ Object.defineProperty(MultiSlider.prototype, "e1", {
684
+ get: function () {
685
+ return this.ex;
686
+ },
687
+ set: function (a) {
688
+ var b = this.ex;
689
+ this.ex = a;
690
+ if (Rect.l_op_Inequality(b, this.ex)) {
691
+ this.dl("WindowRect", b, this.ex);
692
+ }
693
+ },
694
+ enumerable: false,
695
+ configurable: true
696
+ });
697
+ Object.defineProperty(MultiSlider.prototype, "b0", {
698
+ get: function () {
699
+ return this.a8;
700
+ },
701
+ set: function (a) {
702
+ var b = this.a8;
703
+ this.a8 = a;
704
+ if (b != this.a8) {
705
+ this.dl("YValue", b, this.a8);
706
+ }
707
+ },
708
+ enumerable: false,
709
+ configurable: true
710
+ });
711
+ Object.defineProperty(MultiSlider.prototype, "bw", {
712
+ get: function () {
713
+ return this.a4;
714
+ },
715
+ set: function (a) {
716
+ var b = this.a4;
717
+ this.a4 = a;
718
+ if (b != this.a4) {
719
+ this.dl("YPosition", b, this.a4);
720
+ }
721
+ },
722
+ enumerable: false,
723
+ configurable: true
724
+ });
725
+ Object.defineProperty(MultiSlider.prototype, "ba", {
726
+ get: function () {
727
+ return this.aj;
728
+ },
729
+ set: function (a) {
730
+ var b = this.aj;
731
+ this.aj = a;
732
+ if (b != this.aj) {
733
+ this.dl("ActualYPosition", b, this.aj);
734
+ }
735
+ },
736
+ enumerable: false,
737
+ configurable: true
738
+ });
739
+ MultiSlider.prototype.dh = function (a, b) {
740
+ var c = null;
741
+ if (this.a != null && this.a.c != 3) {
742
+ if (this.a.c == 0) {
743
+ c = this.a.a;
744
+ }
745
+ this.k.ay();
746
+ }
747
+ if (c != null) {
748
+ if (this.thumbValueChanging != null) {
749
+ this.thumbValueChanging(this, ((function () {
750
+ var $ret = new MultiSliderThumbValueChangingEventArgs();
751
+ $ret.b = c.s;
752
+ $ret.a = c;
753
+ return $ret;
754
+ })()));
755
+ }
756
+ if (this.thumbValueChanged != null) {
757
+ this.thumbValueChanged(this, ((function () {
758
+ var $ret = new MultiSliderThumbValueChangingEventArgs();
759
+ $ret.b = c.s;
760
+ $ret.a = c;
761
+ return $ret;
762
+ })()));
763
+ }
764
+ if (this.e == 2) {
765
+ if (this.yValueChanging != null) {
766
+ this.yValueChanging(this, ((function () {
767
+ var $ret = new MultiSliderYValueChangingEventArgs();
768
+ $ret.a = c.s;
769
+ return $ret;
770
+ })()));
771
+ }
772
+ if (this.yValueChanged != null) {
773
+ this.yValueChanged(this, ((function () {
774
+ var $ret = new MultiSliderYValueChangingEventArgs();
775
+ $ret.a = c.s;
776
+ return $ret;
777
+ })()));
778
+ }
779
+ }
780
+ }
781
+ this.b = this.c(a, b);
782
+ this.a = ((function () {
783
+ var $ret = new MultiSliderHitInfo();
784
+ $ret.c = 3;
785
+ return $ret;
786
+ })());
787
+ this.c5();
788
+ };
789
+ MultiSlider.prototype.c5 = function () {
790
+ this.k.al(function (a) { return a.isVisible = false; });
791
+ this.k.aq();
792
+ };
793
+ MultiSlider.prototype.dj = function (a, b) {
794
+ this.b = this.c(a, false);
795
+ };
796
+ MultiSlider.prototype.af = function (a, b) {
797
+ this.b = this.c(a, b);
798
+ if (this.b == null || this.b.c == 3) {
799
+ return false;
800
+ }
801
+ if (this.ad(this.b)) {
802
+ this.dy(a, this.b);
803
+ this.k.am();
804
+ return true;
805
+ }
806
+ if (this.y(this.b)) {
807
+ return this.ae(a, this.b);
808
+ }
809
+ return false;
810
+ };
811
+ MultiSlider.prototype.ae = function (a, b) {
812
+ if (b == null) {
813
+ return false;
814
+ }
815
+ switch (b.c) {
816
+ case 2: return false;
817
+ }
818
+ return false;
819
+ };
820
+ MultiSlider.prototype.dy = function (a, b) {
821
+ this.a = b;
822
+ this.ew = a;
823
+ this.ev = a;
824
+ };
825
+ MultiSlider.prototype.ad = function (a) {
826
+ if (a == null) {
827
+ return false;
828
+ }
829
+ switch (a.c) {
830
+ case 0:
831
+ case 1: return true;
832
+ }
833
+ return false;
834
+ };
835
+ MultiSlider.prototype.y = function (a) {
836
+ if (a == null) {
837
+ return false;
838
+ }
839
+ switch (a.c) {
840
+ case 2: return false;
841
+ }
842
+ return false;
843
+ };
844
+ MultiSlider.prototype.di = function (a) {
845
+ this.b = this.c(a, false);
846
+ if (this.a != null && this.a.c != 3) {
847
+ if (this.e == 0) {
848
+ this.dd(a);
849
+ }
850
+ else if (this.e == 2) {
851
+ this.dq(a);
852
+ }
853
+ else {
854
+ this.dr(a);
855
+ }
856
+ }
857
+ else {
858
+ this.c6();
859
+ }
860
+ };
861
+ MultiSlider.prototype.dq = function (a) {
862
+ var b = a.x - this.ev.x;
863
+ var c = a.y - this.ev.y;
864
+ this.ev = a;
865
+ b = b / this.ez.width;
866
+ c = c / this.ez.height;
867
+ if (this.a == null) {
868
+ return;
869
+ }
870
+ switch (this.a.c) {
871
+ case 0:
872
+ this.a.a.r(b);
873
+ this.bi(c);
874
+ this.d6(this.a.a);
875
+ this.c7();
876
+ break;
877
+ case 1:
878
+ this.a.b.o(b);
879
+ this.bi(c);
880
+ this.d6(this.a.b.f);
881
+ this.d6(this.a.b.e);
882
+ this.c7();
883
+ break;
884
+ }
885
+ };
886
+ MultiSlider.prototype.bi = function (a) {
887
+ if (this.bw + a > 1) {
888
+ a = 1 - this.bw;
889
+ }
890
+ if (this.bw + a < 0) {
891
+ a = -this.bw;
892
+ }
893
+ this.bw += a;
894
+ return a;
895
+ };
896
+ MultiSlider.prototype.c6 = function () {
897
+ if (this.b != null && this.b.c == 1) {
898
+ this.k.ae();
899
+ }
900
+ else if (this.b != null && this.b.c == 0) {
901
+ if (this.e == 1) {
902
+ this.k.ag();
903
+ }
904
+ else if (this.e == 2) {
905
+ this.k.ac();
906
+ }
907
+ else {
908
+ this.k.af();
909
+ }
910
+ }
911
+ else {
912
+ this.k.ad();
913
+ }
914
+ };
915
+ MultiSlider.prototype.dr = function (a) {
916
+ var b = a.y - this.ev.y;
917
+ b = b / this.ez.height;
918
+ this.ev = a;
919
+ if (this.a == null) {
920
+ return;
921
+ }
922
+ switch (this.a.c) {
923
+ case 0:
924
+ this.a.a.r(b);
925
+ this.d6(this.a.a);
926
+ this.c7();
927
+ break;
928
+ case 1:
929
+ this.a.b.o(b);
930
+ this.d6(this.a.b.f);
931
+ this.d6(this.a.b.e);
932
+ this.c7();
933
+ break;
934
+ }
935
+ };
936
+ MultiSlider.prototype.d6 = function (a) {
937
+ var b;
938
+ var c;
939
+ if (this.e == 0 || this.e == 2) {
940
+ b = a.p;
941
+ c = a.p * this.ez.width + this.ez.left;
942
+ if (this.t) {
943
+ var d_1 = b;
944
+ if (this.resolvingToolTipValue != null) {
945
+ var e = ((function () {
946
+ var $ret = new MultiSliderResolvingToolTipValueEventArgs();
947
+ $ret.position = b;
948
+ $ret.value = d_1;
949
+ return $ret;
950
+ })());
951
+ this.resolvingToolTipValue(this, e);
952
+ d_1 = e.value;
953
+ }
954
+ this.dx(a, c, d_1);
955
+ }
956
+ }
957
+ else {
958
+ b = a.p;
959
+ c = a.p * this.ez.height + this.ez.top;
960
+ if (this.t) {
961
+ var f_1 = b;
962
+ if (this.resolvingToolTipValue != null) {
963
+ var g = ((function () {
964
+ var $ret = new MultiSliderResolvingToolTipValueEventArgs();
965
+ $ret.position = b;
966
+ $ret.value = f_1;
967
+ return $ret;
968
+ })());
969
+ this.resolvingToolTipValue(this, g);
970
+ f_1 = g.value;
971
+ }
972
+ this.dx(a, c, f_1);
973
+ }
974
+ }
975
+ };
976
+ MultiSlider.prototype.dx = function (a, b, c) {
977
+ var d = this.k.d(a);
978
+ d.isVisible = true;
979
+ var e = "";
980
+ if (c != null) {
981
+ e = c.toString();
982
+ }
983
+ this.k.a7(d.calloutText, e, this.o());
984
+ var f = this.k.a8(d.calloutText);
985
+ var g = this.e3();
986
+ f = new Size(1, f.width + g.left + g.right, f.height + g.top + g.bottom);
987
+ var h = a.p * this.ez.width + this.ez.left;
988
+ var i = a.p * this.ez.width + this.ez.left;
989
+ var j = 0;
990
+ var k = 0;
991
+ if ((this.e0.right - h) <= f.width) {
992
+ j = h - f.width;
993
+ }
994
+ else {
995
+ j = h;
996
+ }
997
+ if (j < i) {
998
+ k = this.ez.top;
999
+ }
1000
+ else {
1001
+ k = this.ez.bottom - f.height;
1002
+ }
1003
+ d.width = f.width;
1004
+ d.height = f.height;
1005
+ d.translateX = j;
1006
+ d.translateY = k;
1007
+ d.textTranslateX = j + g.left;
1008
+ d.textTranslateY = k + g.top;
1009
+ };
1010
+ MultiSlider.prototype.e3 = function () {
1011
+ return this.e2;
1012
+ };
1013
+ MultiSlider.prototype.o = function () {
1014
+ if (this.p != null) {
1015
+ return this.p;
1016
+ }
1017
+ return this.n;
1018
+ };
1019
+ MultiSlider.prototype.dd = function (a) {
1020
+ var b = a.x - this.ev.x;
1021
+ this.ev = a;
1022
+ b = b / this.ez.width;
1023
+ if (this.a == null) {
1024
+ return;
1025
+ }
1026
+ switch (this.a.c) {
1027
+ case 0:
1028
+ this.a.a.r(b);
1029
+ this.d6(this.a.a);
1030
+ this.c7();
1031
+ break;
1032
+ case 1:
1033
+ this.a.b.o(b);
1034
+ this.d6(this.a.b.f);
1035
+ this.d6(this.a.b.e);
1036
+ this.c7();
1037
+ break;
1038
+ }
1039
+ };
1040
+ MultiSlider.prototype.df = function (a) {
1041
+ this.b = this.c(a, false);
1042
+ };
1043
+ MultiSlider.prototype.dg = function (a) {
1044
+ this.b = this.c(a, false);
1045
+ };
1046
+ MultiSlider.prototype.c = function (a, b) {
1047
+ var _loop_1 = function (c) {
1048
+ var d = this_1.thumbs._inner[c];
1049
+ if (this_1.w(a, d, this_1.k.f(d), b)) {
1050
+ return { value: ((function () {
1051
+ var $ret = new MultiSliderHitInfo();
1052
+ $ret.a = d;
1053
+ $ret.c = 0;
1054
+ return $ret;
1055
+ })()) };
1056
+ }
1057
+ };
1058
+ var this_1 = this;
1059
+ for (var c = 0; c < this.thumbs.count; c++) {
1060
+ var state_1 = _loop_1(c);
1061
+ if (typeof state_1 === "object")
1062
+ return state_1.value;
1063
+ }
1064
+ var _loop_2 = function (e) {
1065
+ var f = this_2.ah._inner[e];
1066
+ if (this_2.v(a, f, this_2.k.c(f))) {
1067
+ return { value: ((function () {
1068
+ var $ret = new MultiSliderHitInfo();
1069
+ $ret.b = f;
1070
+ $ret.c = 1;
1071
+ return $ret;
1072
+ })()) };
1073
+ }
1074
+ };
1075
+ var this_2 = this;
1076
+ for (var e = 0; e < this.ah.count; e++) {
1077
+ var state_2 = _loop_2(e);
1078
+ if (typeof state_2 === "object")
1079
+ return state_2.value;
1080
+ }
1081
+ if (this.u(a)) {
1082
+ return ((function () {
1083
+ var $ret = new MultiSliderHitInfo();
1084
+ $ret.c = 2;
1085
+ return $ret;
1086
+ })());
1087
+ }
1088
+ return ((function () {
1089
+ var $ret = new MultiSliderHitInfo();
1090
+ $ret.c = 3;
1091
+ return $ret;
1092
+ })());
1093
+ };
1094
+ MultiSlider.prototype.u = function (a) {
1095
+ if (this.e == 0) {
1096
+ if (a.y > this.ez.bottom && a.x >= this.ez.left && a.x <= this.ez.right && a.y <= this.ey.bottom) {
1097
+ return true;
1098
+ }
1099
+ }
1100
+ else if (this.e == 2) {
1101
+ if (a.y > this.ez.bottom && a.x >= this.ez.left && a.x <= this.ez.right && a.y <= this.ey.bottom) {
1102
+ return true;
1103
+ }
1104
+ }
1105
+ else {
1106
+ if (a.x > this.ez.right && a.y >= this.ez.top && a.y <= this.ez.bottom && a.x <= this.ey.right) {
1107
+ return true;
1108
+ }
1109
+ }
1110
+ return false;
1111
+ };
1112
+ MultiSlider.prototype.v = function (a, b, c) {
1113
+ if (this.e == 0) {
1114
+ var d = (b.n) * this.ez.width + this.ez.left;
1115
+ var e = d - c.width / 2;
1116
+ var f = d + c.width / 2;
1117
+ if (a.y >= this.ey.top && a.y <= this.ey.bottom && a.x >= e && a.x <= f) {
1118
+ return true;
1119
+ }
1120
+ }
1121
+ else {
1122
+ var g = (b.n) * this.ez.height + this.ez.top;
1123
+ var h = g - c.height / 2;
1124
+ var i = g + c.height / 2;
1125
+ if (a.x >= this.ey.left && a.x <= this.ey.right && a.y >= h && a.y <= i) {
1126
+ return true;
1127
+ }
1128
+ }
1129
+ return false;
1130
+ };
1131
+ MultiSlider.prototype.w = function (a, b, c, d) {
1132
+ var e = 40;
1133
+ if (this.e == 0) {
1134
+ var f = b.p * this.ez.width + this.ez.left;
1135
+ var g = this.ez.top + this.ez.height / 2;
1136
+ var h = new Rect(0, f - c.width / 2, g - c.height / 2, c.width, c.height);
1137
+ if (d) {
1138
+ if (h.width < e) {
1139
+ h.inflate((e - h.width) / 2, 0);
1140
+ }
1141
+ if (h.height < e) {
1142
+ h.inflate(0, (e - h.height) / 2);
1143
+ }
1144
+ }
1145
+ if (h.containsPoint(a)) {
1146
+ return true;
1147
+ }
1148
+ }
1149
+ else if (this.e == 2) {
1150
+ var i = b.p * this.ez.width + this.ez.left;
1151
+ var j = this.ez.top + (this.ba * this.ez.height);
1152
+ var k = new Rect(0, i - c.width / 2, j - c.height / 2, c.width, c.height);
1153
+ if (d) {
1154
+ if (k.width < e) {
1155
+ k.inflate((e - k.width) / 2, 0);
1156
+ }
1157
+ if (k.height < e) {
1158
+ k.inflate(0, (e - k.height) / 2);
1159
+ }
1160
+ }
1161
+ if (k.containsPoint(a)) {
1162
+ return true;
1163
+ }
1164
+ }
1165
+ else {
1166
+ var l = b.p * this.ez.height + this.ez.top;
1167
+ var m = this.ez.left + this.ez.width / 2;
1168
+ var n = new Rect(0, m - c.width / 2, l - c.height / 2, c.width, c.height);
1169
+ if (d) {
1170
+ if (n.width < e) {
1171
+ n.inflate((e - n.width) / 2, 0);
1172
+ }
1173
+ if (n.height < e) {
1174
+ n.inflate(0, (e - n.height) / 2);
1175
+ }
1176
+ }
1177
+ if (n.containsPoint(a)) {
1178
+ return true;
1179
+ }
1180
+ }
1181
+ return false;
1182
+ };
1183
+ MultiSlider.prototype.d3 = function (a, b) {
1184
+ if (this.e == 0) {
1185
+ a.orientation = this.e;
1186
+ a.width = Math.max(15, this.ez.width * b.r);
1187
+ a.height = this.bb;
1188
+ a.translateX = (this.ez.left + this.ez.width * b.n);
1189
+ a.translateY = this.ez.bottom + this.bb / 2;
1190
+ }
1191
+ else if (this.e == 2) {
1192
+ a.orientation = this.e;
1193
+ a.width = Math.max(15, this.ez.width * b.r);
1194
+ a.height = this.bb;
1195
+ a.translateX = (this.ez.left + this.ez.width * b.n);
1196
+ a.translateY = this.ez.bottom + this.bb / 2;
1197
+ }
1198
+ else {
1199
+ a.orientation = this.e;
1200
+ a.height = Math.max(15, this.ez.height * b.r);
1201
+ a.width = this.bb;
1202
+ a.translateY = (this.ez.top + this.ez.height * b.n);
1203
+ a.translateX = this.ez.right + this.bb / 2;
1204
+ }
1205
+ };
1206
+ MultiSlider.prototype.d0 = function (a) {
1207
+ if (this.e == 0) {
1208
+ a.height = this.bb;
1209
+ a.width = this.ez.width;
1210
+ a.translateX = this.ez.left + this.ez.width / 2;
1211
+ a.translateY = ((this.ey.top + this.ey.bottom) / 2);
1212
+ }
1213
+ else if (this.e == 2) {
1214
+ a.height = this.bb;
1215
+ a.width = this.ez.width;
1216
+ a.translateX = this.ez.left + this.ez.width / 2;
1217
+ a.translateY = this.ez.top + (this.ba * this.ez.height);
1218
+ }
1219
+ else {
1220
+ a.width = this.bb;
1221
+ a.height = this.ez.height;
1222
+ a.translateY = this.ez.top + this.ez.height / 2;
1223
+ a.translateX = ((this.ey.left + this.ey.right) / 2);
1224
+ }
1225
+ };
1226
+ MultiSlider.prototype.d5 = function (a, b) {
1227
+ if (this.e == 0) {
1228
+ a.orientation = this.e;
1229
+ a.translateX = this.ez.left + this.ez.width * b.p;
1230
+ a.translateY = this.ez.top + this.ez.height / 2;
1231
+ }
1232
+ else if (this.e == 2) {
1233
+ a.orientation = this.e;
1234
+ a.translateX = this.ez.left + this.ez.width * b.p;
1235
+ a.translateY = this.ez.top + this.ez.height * this.ba;
1236
+ }
1237
+ else {
1238
+ a.orientation = this.e;
1239
+ a.translateY = this.ez.top + this.ez.height * b.p;
1240
+ a.translateX = this.ez.left + this.ez.width / 2;
1241
+ }
1242
+ };
1243
+ Object.defineProperty(MultiSlider.prototype, "bk", {
1244
+ get: function () {
1245
+ return this.av;
1246
+ },
1247
+ set: function (a) {
1248
+ var b = this.av;
1249
+ this.av = a;
1250
+ if (b != this.av) {
1251
+ this.dl("StartInset", b, this.av);
1252
+ }
1253
+ },
1254
+ enumerable: false,
1255
+ configurable: true
1256
+ });
1257
+ Object.defineProperty(MultiSlider.prototype, "be", {
1258
+ get: function () {
1259
+ return this.ap;
1260
+ },
1261
+ set: function (a) {
1262
+ var b = this.ap;
1263
+ this.ap = a;
1264
+ if (b != this.ap) {
1265
+ this.dl("EndInset", b, this.ap);
1266
+ }
1267
+ },
1268
+ enumerable: false,
1269
+ configurable: true
1270
+ });
1271
+ Object.defineProperty(MultiSlider.prototype, "bq", {
1272
+ get: function () {
1273
+ return this.a1;
1274
+ },
1275
+ set: function (a) {
1276
+ var b = this.a1;
1277
+ this.a1 = a;
1278
+ if (b != this.a1) {
1279
+ this.dl("TrackStartInset", b, this.a1);
1280
+ }
1281
+ },
1282
+ enumerable: false,
1283
+ configurable: true
1284
+ });
1285
+ Object.defineProperty(MultiSlider.prototype, "bp", {
1286
+ get: function () {
1287
+ return this.a0;
1288
+ },
1289
+ set: function (a) {
1290
+ var b = this.a0;
1291
+ this.a0 = a;
1292
+ if (b != this.a0) {
1293
+ this.dl("TrackEndInset", b, this.a0);
1294
+ }
1295
+ },
1296
+ enumerable: false,
1297
+ configurable: true
1298
+ });
1299
+ Object.defineProperty(MultiSlider.prototype, "bz", {
1300
+ get: function () {
1301
+ return this.a7;
1302
+ },
1303
+ set: function (a) {
1304
+ var b = this.a7;
1305
+ this.a7 = a;
1306
+ if (b != this.a7) {
1307
+ this.dl("YTrackStartInset", b, this.a7);
1308
+ }
1309
+ },
1310
+ enumerable: false,
1311
+ configurable: true
1312
+ });
1313
+ Object.defineProperty(MultiSlider.prototype, "by", {
1314
+ get: function () {
1315
+ return this.a6;
1316
+ },
1317
+ set: function (a) {
1318
+ var b = this.a6;
1319
+ this.a6 = a;
1320
+ if (b != this.a6) {
1321
+ this.dl("YTrackEndInset", b, this.a6);
1322
+ }
1323
+ },
1324
+ enumerable: false,
1325
+ configurable: true
1326
+ });
1327
+ Object.defineProperty(MultiSlider.prototype, "bb", {
1328
+ get: function () {
1329
+ return this.ak;
1330
+ },
1331
+ set: function (a) {
1332
+ var b = this.ak;
1333
+ this.ak = a;
1334
+ if (b != this.ak) {
1335
+ this.dl("BarExtent", b, this.ak);
1336
+ }
1337
+ },
1338
+ enumerable: false,
1339
+ configurable: true
1340
+ });
1341
+ Object.defineProperty(MultiSlider.prototype, "e", {
1342
+ get: function () {
1343
+ return this.d;
1344
+ },
1345
+ set: function (a) {
1346
+ var b = this.d;
1347
+ this.d = a;
1348
+ if (b != this.d) {
1349
+ this.dl("Orientation", enumGetBox(MultiSliderOrientation_$type, b), enumGetBox(MultiSliderOrientation_$type, this.d));
1350
+ }
1351
+ },
1352
+ enumerable: false,
1353
+ configurable: true
1354
+ });
1355
+ Object.defineProperty(MultiSlider.prototype, "es", {
1356
+ get: function () {
1357
+ return this.eh;
1358
+ },
1359
+ set: function (a) {
1360
+ var b = this.eh;
1361
+ this.eh = a;
1362
+ if (b != this.eh) {
1363
+ this.dl("ThumbBrush", b, this.eh);
1364
+ }
1365
+ },
1366
+ enumerable: false,
1367
+ configurable: true
1368
+ });
1369
+ Object.defineProperty(MultiSlider.prototype, "bn", {
1370
+ get: function () {
1371
+ return this.ay;
1372
+ },
1373
+ set: function (a) {
1374
+ var b = this.ay;
1375
+ this.ay = a;
1376
+ if (b != this.ay) {
1377
+ this.dl("ThumbStrokeThickness", b, this.ay);
1378
+ }
1379
+ },
1380
+ enumerable: false,
1381
+ configurable: true
1382
+ });
1383
+ Object.defineProperty(MultiSlider.prototype, "et", {
1384
+ get: function () {
1385
+ return this.ei;
1386
+ },
1387
+ set: function (a) {
1388
+ var b = this.ei;
1389
+ this.ei = a;
1390
+ if (b != this.ei) {
1391
+ this.dl("ThumbOutline", b, this.ei);
1392
+ }
1393
+ },
1394
+ enumerable: false,
1395
+ configurable: true
1396
+ });
1397
+ Object.defineProperty(MultiSlider.prototype, "bo", {
1398
+ get: function () {
1399
+ return this.az;
1400
+ },
1401
+ set: function (a) {
1402
+ var b = this.az;
1403
+ this.az = a;
1404
+ if (b != this.az) {
1405
+ this.dl("ThumbWidth", b, this.az);
1406
+ }
1407
+ },
1408
+ enumerable: false,
1409
+ configurable: true
1410
+ });
1411
+ Object.defineProperty(MultiSlider.prototype, "bm", {
1412
+ get: function () {
1413
+ return this.ax;
1414
+ },
1415
+ set: function (a) {
1416
+ var b = this.ax;
1417
+ this.ax = a;
1418
+ if (b != this.ax) {
1419
+ this.dl("ThumbHeight", b, this.ax);
1420
+ }
1421
+ },
1422
+ enumerable: false,
1423
+ configurable: true
1424
+ });
1425
+ MultiSlider.prototype.destroy = function () {
1426
+ this.provideContainer(null);
1427
+ };
1428
+ Object.defineProperty(MultiSlider.prototype, "ek", {
1429
+ get: function () {
1430
+ return this.d9;
1431
+ },
1432
+ set: function (a) {
1433
+ var b = this.d9;
1434
+ this.d9 = a;
1435
+ if (b != this.d9) {
1436
+ this.dl("BarBrush", b, this.d9);
1437
+ }
1438
+ },
1439
+ enumerable: false,
1440
+ configurable: true
1441
+ });
1442
+ Object.defineProperty(MultiSlider.prototype, "el", {
1443
+ get: function () {
1444
+ return this.ea;
1445
+ },
1446
+ set: function (a) {
1447
+ var b = this.ea;
1448
+ this.ea = a;
1449
+ if (b != this.ea) {
1450
+ this.dl("BarOutline", b, this.ea);
1451
+ }
1452
+ },
1453
+ enumerable: false,
1454
+ configurable: true
1455
+ });
1456
+ Object.defineProperty(MultiSlider.prototype, "bc", {
1457
+ get: function () {
1458
+ return this.al;
1459
+ },
1460
+ set: function (a) {
1461
+ var b = this.al;
1462
+ this.al = a;
1463
+ if (b != this.al) {
1464
+ this.dl("BarStrokeThickness", b, this.al);
1465
+ }
1466
+ },
1467
+ enumerable: false,
1468
+ configurable: true
1469
+ });
1470
+ Object.defineProperty(MultiSlider.prototype, "ep", {
1471
+ get: function () {
1472
+ return this.ee;
1473
+ },
1474
+ set: function (a) {
1475
+ var b = this.ee;
1476
+ this.ee = a;
1477
+ if (b != this.ee) {
1478
+ this.dl("RangeThumbBrush", b, this.ee);
1479
+ }
1480
+ },
1481
+ enumerable: false,
1482
+ configurable: true
1483
+ });
1484
+ Object.defineProperty(MultiSlider.prototype, "eq", {
1485
+ get: function () {
1486
+ return this.ef;
1487
+ },
1488
+ set: function (a) {
1489
+ var b = this.ef;
1490
+ this.ef = a;
1491
+ if (b != this.ef) {
1492
+ this.dl("RangeThumbOutline", b, this.ef);
1493
+ }
1494
+ },
1495
+ enumerable: false,
1496
+ configurable: true
1497
+ });
1498
+ Object.defineProperty(MultiSlider.prototype, "bj", {
1499
+ get: function () {
1500
+ return this.au;
1501
+ },
1502
+ set: function (a) {
1503
+ var b = this.au;
1504
+ this.au = a;
1505
+ if (b != this.au) {
1506
+ this.dl("RangeThumbStrokeThickness", b, this.au);
1507
+ }
1508
+ },
1509
+ enumerable: false,
1510
+ configurable: true
1511
+ });
1512
+ Object.defineProperty(MultiSlider.prototype, "er", {
1513
+ get: function () {
1514
+ return this.eg;
1515
+ },
1516
+ set: function (a) {
1517
+ var b = this.eg;
1518
+ this.eg = a;
1519
+ if (b != this.eg) {
1520
+ this.dl("RangeThumbRidgesBrush", b, this.eg);
1521
+ }
1522
+ },
1523
+ enumerable: false,
1524
+ configurable: true
1525
+ });
1526
+ Object.defineProperty(MultiSlider.prototype, "eu", {
1527
+ get: function () {
1528
+ return this.ej;
1529
+ },
1530
+ set: function (a) {
1531
+ var b = this.ej;
1532
+ this.ej = a;
1533
+ if (b != this.ej) {
1534
+ this.dl("ThumbRidgesBrush", b, this.ej);
1535
+ }
1536
+ },
1537
+ enumerable: false,
1538
+ configurable: true
1539
+ });
1540
+ Object.defineProperty(MultiSlider.prototype, "em", {
1541
+ get: function () {
1542
+ return this.eb;
1543
+ },
1544
+ set: function (a) {
1545
+ var b = this.eb;
1546
+ this.eb = a;
1547
+ if (b != this.eb) {
1548
+ this.dl("CalloutBrush", b, this.eb);
1549
+ }
1550
+ },
1551
+ enumerable: false,
1552
+ configurable: true
1553
+ });
1554
+ Object.defineProperty(MultiSlider.prototype, "eo", {
1555
+ get: function () {
1556
+ return this.ed;
1557
+ },
1558
+ set: function (a) {
1559
+ var b = this.ed;
1560
+ this.ed = a;
1561
+ if (b != this.ed) {
1562
+ this.dl("CalloutTextColor", b, this.ed);
1563
+ }
1564
+ },
1565
+ enumerable: false,
1566
+ configurable: true
1567
+ });
1568
+ Object.defineProperty(MultiSlider.prototype, "en", {
1569
+ get: function () {
1570
+ return this.ec;
1571
+ },
1572
+ set: function (a) {
1573
+ var b = this.ec;
1574
+ this.ec = a;
1575
+ if (b != this.ec) {
1576
+ this.dl("CalloutOutline", b, this.ec);
1577
+ }
1578
+ },
1579
+ enumerable: false,
1580
+ configurable: true
1581
+ });
1582
+ Object.defineProperty(MultiSlider.prototype, "bd", {
1583
+ get: function () {
1584
+ return this.am;
1585
+ },
1586
+ set: function (a) {
1587
+ var b = this.am;
1588
+ this.am = a;
1589
+ if (b != this.am) {
1590
+ this.dl("CalloutStrokeThickness", b, this.am);
1591
+ }
1592
+ },
1593
+ enumerable: false,
1594
+ configurable: true
1595
+ });
1596
+ Object.defineProperty(MultiSlider.prototype, "ac", {
1597
+ get: function () {
1598
+ return false;
1599
+ },
1600
+ enumerable: false,
1601
+ configurable: true
1602
+ });
1603
+ Object.defineProperty(MultiSlider.prototype, "aa", {
1604
+ get: function () {
1605
+ return false;
1606
+ },
1607
+ enumerable: false,
1608
+ configurable: true
1609
+ });
1610
+ Object.defineProperty(MultiSlider.prototype, "z", {
1611
+ get: function () {
1612
+ return false;
1613
+ },
1614
+ enumerable: false,
1615
+ configurable: true
1616
+ });
1617
+ Object.defineProperty(MultiSlider.prototype, "ab", {
1618
+ get: function () {
1619
+ return false;
1620
+ },
1621
+ enumerable: false,
1622
+ configurable: true
1623
+ });
1624
+ MultiSlider.prototype.dl = function (a, b, c) {
1625
+ this.du(a, b, c);
1626
+ if (this.propertyChanged != null) {
1627
+ this.propertyChanged(this, new PropertyChangedEventArgs(a));
1628
+ }
1629
+ };
1630
+ MultiSlider.prototype.du = function (a, b, c) {
1631
+ switch (a) {
1632
+ case "PixelScalingRatio":
1633
+ this.a9 = this.bh;
1634
+ break;
1635
+ case "ActualPixelScalingRatio":
1636
+ if (this.k != null) {
1637
+ this.k.aw();
1638
+ }
1639
+ break;
1640
+ case "YPosition":
1641
+ {
1642
+ this.q = true;
1643
+ this.ba = this.br(b, c);
1644
+ this.trackDirty();
1645
+ if (!this.r) {
1646
+ this.b0 = this.bt(this.ba);
1647
+ }
1648
+ this.q = false;
1649
+ }
1650
+ break;
1651
+ case "YValue":
1652
+ {
1653
+ this.r = true;
1654
+ if (!this.q) {
1655
+ this.bw = this.bs(this.b0);
1656
+ this.ba = this.br(this.bw, this.bw);
1657
+ this.trackDirty();
1658
+ }
1659
+ this.dt(this, b, c);
1660
+ this.r = false;
1661
+ }
1662
+ break;
1663
+ case "Orientation":
1664
+ this.dk();
1665
+ this.trackDirty();
1666
+ break;
1667
+ case "TrackStartInset":
1668
+ case "TrackEndInset":
1669
+ case "StartInset":
1670
+ case "EndInset":
1671
+ this.de();
1672
+ this.trackDirty();
1673
+ break;
1674
+ case "Min":
1675
+ case "Max":
1676
+ this.dm();
1677
+ this.trackDirty();
1678
+ break;
1679
+ case "ThumbBrush":
1680
+ case "ThumbOutline":
1681
+ case "ThumbRidgesBrush":
1682
+ case "ThumbStrokeThickness":
1683
+ this.d7();
1684
+ this.k.aq();
1685
+ break;
1686
+ case "ThumbWidth":
1687
+ case "ThumbHeight":
1688
+ for (var d = 0; d < this.thumbs.count; d++) {
1689
+ var e = this.thumbs._inner[d];
1690
+ var f = this.k.f(e);
1691
+ f.width = this.bo;
1692
+ f.height = this.bm;
1693
+ }
1694
+ this.trackDirty();
1695
+ break;
1696
+ case "RangeThumbBrush":
1697
+ case "RangeThumbOutline":
1698
+ case "RangeThumbRidgesBrush":
1699
+ case "RangeThumbStrokeThickness":
1700
+ this.d4();
1701
+ this.k.aq();
1702
+ break;
1703
+ case "BarBrush":
1704
+ case "BarOutline":
1705
+ case "BarStrokeThickness":
1706
+ this.d1();
1707
+ this.k.aq();
1708
+ break;
1709
+ case "CalloutBrush":
1710
+ case "CalloutOutline":
1711
+ case "CalloutTextColor":
1712
+ case "CalloutStrokeThickness":
1713
+ this.d2();
1714
+ this.k.aq();
1715
+ break;
1716
+ }
1717
+ };
1718
+ MultiSlider.prototype.d1 = function () {
1719
+ var a = this.k.b;
1720
+ if (this.ek == null) {
1721
+ a.barBox._fill = a.getBarBoxDefaultBrush();
1722
+ }
1723
+ else {
1724
+ a.barBox._fill = this.ek;
1725
+ }
1726
+ if (this.el == null) {
1727
+ a.barBox._stroke = a.getBarBoxDefaultOutline();
1728
+ }
1729
+ else {
1730
+ a.barBox._stroke = this.el;
1731
+ }
1732
+ if (isNaN_(this.bc)) {
1733
+ a.barBox.ad = a.getBarBoxDefaultStrokeThickness();
1734
+ }
1735
+ else {
1736
+ a.barBox.ad = this.bc;
1737
+ }
1738
+ };
1739
+ MultiSlider.prototype.d2 = function () {
1740
+ for (var a = 0; a < this.thumbs.count; a++) {
1741
+ var b = this.k.d(this.thumbs._inner[a]);
1742
+ if (this.em == null) {
1743
+ b.calloutBox._fill = b.getCalloutBoxDefaultBrush();
1744
+ }
1745
+ else {
1746
+ b.calloutBox._fill = this.em;
1747
+ }
1748
+ if (this.en == null) {
1749
+ b.calloutBox._stroke = b.getCalloutBoxDefaultStroke();
1750
+ }
1751
+ else {
1752
+ b.calloutBox._stroke = this.en;
1753
+ }
1754
+ if (this.eo == null) {
1755
+ b.calloutText.ao = b.getCalloutTextDefaultBrush();
1756
+ }
1757
+ else {
1758
+ b.calloutText.ao = this.eo;
1759
+ }
1760
+ if (isNaN_(this.bd)) {
1761
+ b.calloutBox.ad = b.getCalloutBoxDefaultStrokeThickness();
1762
+ }
1763
+ else {
1764
+ b.calloutBox.ad = this.bd;
1765
+ }
1766
+ }
1767
+ };
1768
+ MultiSlider.prototype.d7 = function () {
1769
+ for (var a = 0; a < this.thumbs.count; a++) {
1770
+ var b = this.k.f(this.thumbs._inner[a]);
1771
+ if (this.es == null) {
1772
+ b.thumbBox._fill = b.getThumbBoxDefaultBrush();
1773
+ }
1774
+ else {
1775
+ b.thumbBox._fill = this.es;
1776
+ }
1777
+ if (this.et == null) {
1778
+ b.thumbBox._stroke = b.getThumbBoxDefaultStroke();
1779
+ }
1780
+ else {
1781
+ b.thumbBox._stroke = this.et;
1782
+ }
1783
+ if (this.eu == null) {
1784
+ b.thumbRidges._stroke = b.getThumbRidgesDefaultStroke();
1785
+ }
1786
+ else {
1787
+ b.thumbRidges._stroke = this.eu;
1788
+ }
1789
+ if (isNaN_(this.bn)) {
1790
+ b.thumbBox.ad = b.getThumbBoxDefaultStrokeThickness();
1791
+ }
1792
+ else {
1793
+ b.thumbBox.ad = this.bn;
1794
+ }
1795
+ }
1796
+ };
1797
+ MultiSlider.prototype.d4 = function () {
1798
+ for (var a = 0; a < this.ah.count; a++) {
1799
+ var b = this.k.c(this.ah._inner[a]);
1800
+ if (this.ep == null) {
1801
+ b.thumbBox._fill = b.getThumbBoxDefaultBrush();
1802
+ }
1803
+ else {
1804
+ b.thumbBox._fill = this.ep;
1805
+ }
1806
+ if (this.eq == null) {
1807
+ b.thumbBox._stroke = b.getThumbBoxDefaultStroke();
1808
+ }
1809
+ else {
1810
+ b.thumbBox._stroke = this.eq;
1811
+ }
1812
+ if (this.er == null) {
1813
+ b.thumbRidges._stroke = b.getThumbRidgesDefaultStroke();
1814
+ }
1815
+ else {
1816
+ b.thumbRidges._stroke = this.er;
1817
+ }
1818
+ if (isNaN_(this.bj)) {
1819
+ b.thumbBox.ad = b.getThumbBoxDefaultStrokeThickness();
1820
+ }
1821
+ else {
1822
+ b.thumbBox.ad = this.bj;
1823
+ }
1824
+ }
1825
+ };
1826
+ MultiSlider.prototype.dm = function () {
1827
+ };
1828
+ MultiSlider.prototype.de = function () {
1829
+ if (this.e0.isEmpty) {
1830
+ return;
1831
+ }
1832
+ this.ds(this.e0.left, this.e0.top, this.e0.width, this.e0.height);
1833
+ };
1834
+ MultiSlider.prototype.dk = function () {
1835
+ if (this.e == 0) {
1836
+ for (var a = 0; a < this.thumbs.count; a++) {
1837
+ var b = this.k.f(this.thumbs._inner[a]);
1838
+ b.width = this.bo;
1839
+ b.height = this.bm;
1840
+ }
1841
+ }
1842
+ else if (this.e == 2) {
1843
+ for (var c = 0; c < this.thumbs.count; c++) {
1844
+ var d = this.k.f(this.thumbs._inner[c]);
1845
+ d.width = this.bo;
1846
+ d.height = this.bm;
1847
+ }
1848
+ }
1849
+ else {
1850
+ for (var e = 0; e < this.thumbs.count; e++) {
1851
+ var f = this.k.f(this.thumbs._inner[e]);
1852
+ f.width = this.bo;
1853
+ f.height = this.bm;
1854
+ }
1855
+ }
1856
+ if (this.e0.isEmpty) {
1857
+ return;
1858
+ }
1859
+ this.ds(this.e0.left, this.e0.top, this.e0.width, this.e0.height);
1860
+ };
1861
+ MultiSlider.prototype.provideContainer = function (a) {
1862
+ this.k.ax(a);
1863
+ };
1864
+ MultiSlider.prototype.notifySizeChanged = function () {
1865
+ this.k.ar();
1866
+ };
1867
+ MultiSlider.prototype.dz = function (a, b) {
1868
+ var e_1, _a, e_2, _b;
1869
+ if (b.oldItems != null) {
1870
+ try {
1871
+ for (var _c = __values(fromEn(b.oldItems)), _d = _c.next(); !_d.done; _d = _c.next()) {
1872
+ var c = _d.value;
1873
+ if (c != null) {
1874
+ c.propertyUpdated = delegateRemove(c.propertyUpdated, runOn(this, this.c9));
1875
+ }
1876
+ this.dp(c);
1877
+ }
1878
+ }
1879
+ catch (e_1_1) {
1880
+ e_1 = { error: e_1_1 };
1881
+ }
1882
+ finally {
1883
+ try {
1884
+ if (_d && !_d.done && (_a = _c.return))
1885
+ _a.call(_c);
1886
+ }
1887
+ finally {
1888
+ if (e_1)
1889
+ throw e_1.error;
1890
+ }
1891
+ }
1892
+ }
1893
+ if (b.newItems != null) {
1894
+ try {
1895
+ for (var _e = __values(fromEn(b.newItems)), _f = _e.next(); !_f.done; _f = _e.next()) {
1896
+ var d = _f.value;
1897
+ if (d != null) {
1898
+ d.propertyUpdated = delegateCombine(d.propertyUpdated, runOn(this, this.c9));
1899
+ }
1900
+ this.dn(d);
1901
+ }
1902
+ }
1903
+ catch (e_2_1) {
1904
+ e_2 = { error: e_2_1 };
1905
+ }
1906
+ finally {
1907
+ try {
1908
+ if (_f && !_f.done && (_b = _e.return))
1909
+ _b.call(_e);
1910
+ }
1911
+ finally {
1912
+ if (e_2)
1913
+ throw e_2.error;
1914
+ }
1915
+ }
1916
+ }
1917
+ this.trackDirty();
1918
+ };
1919
+ MultiSlider.prototype.dn = function (a) {
1920
+ a.e = this;
1921
+ a.c = this.k.e(a, this.thumbs.indexOf(a));
1922
+ };
1923
+ MultiSlider.prototype.dp = function (a) {
1924
+ a.e = null;
1925
+ this.k.az(a);
1926
+ };
1927
+ MultiSlider.prototype.c9 = function (a, b) {
1928
+ this.trackDirty();
1929
+ };
1930
+ MultiSlider.prototype.c7 = function () {
1931
+ this.k.ak();
1932
+ };
1933
+ MultiSlider.prototype.trackDirty = function () {
1934
+ this.s = true;
1935
+ if (this.k == null) {
1936
+ return;
1937
+ }
1938
+ this.k.aq();
1939
+ };
1940
+ MultiSlider.prototype.updateActualPosition = function (a, b) {
1941
+ if (isNaN_(this.bl)) {
1942
+ return b;
1943
+ }
1944
+ var c = this.bg + b * (this.bf - this.bg);
1945
+ var d = c / this.bl;
1946
+ d = Math.round(d);
1947
+ var e = d * this.bl;
1948
+ var f = (e - this.bg) / (this.bf - this.bg);
1949
+ return f;
1950
+ };
1951
+ MultiSlider.prototype.updateThumbValue = function (a) {
1952
+ return this.bg + a * (this.bf - this.bg);
1953
+ };
1954
+ MultiSlider.prototype.updateThumbPosition = function (a) {
1955
+ return (a - this.bg) / (this.bf - this.bg);
1956
+ };
1957
+ MultiSlider.prototype.br = function (a, b) {
1958
+ if (isNaN_(this.bl)) {
1959
+ return b;
1960
+ }
1961
+ var c = this.bv + b * (this.bu - this.bv);
1962
+ var d = c / this.bl;
1963
+ d = Math.round(d);
1964
+ var e = d * this.bl;
1965
+ var f = (e - this.bv) / (this.bu - this.bv);
1966
+ return f;
1967
+ };
1968
+ MultiSlider.prototype.bt = function (a) {
1969
+ return this.bv + a * (this.bu - this.bv);
1970
+ };
1971
+ MultiSlider.prototype.bs = function (a) {
1972
+ return (a - this.bv) / (this.bu - this.bv);
1973
+ };
1974
+ MultiSlider.prototype.onThumbValueUpdated = function (a, b, c) {
1975
+ if (this.thumbValueChanging != null) {
1976
+ this.thumbValueChanging(this, ((function () {
1977
+ var $ret = new MultiSliderThumbValueChangingEventArgs();
1978
+ $ret.b = c;
1979
+ $ret.a = a;
1980
+ return $ret;
1981
+ })()));
1982
+ }
1983
+ };
1984
+ MultiSlider.prototype.dt = function (a, b, c) {
1985
+ if (this.yValueChanging != null) {
1986
+ this.yValueChanging(this, ((function () {
1987
+ var $ret = new MultiSliderYValueChangingEventArgs();
1988
+ $ret.a = c;
1989
+ return $ret;
1990
+ })()));
1991
+ }
1992
+ };
1993
+ MultiSlider.prototype.dw = function () {
1994
+ if (this.k != null) {
1995
+ this.k.a3();
1996
+ }
1997
+ };
1998
+ MultiSlider.prototype.c8 = function () {
1999
+ if (this.k != null) {
2000
+ this.k.ao();
2001
+ }
2002
+ };
2003
+ MultiSlider.$t = markType(MultiSlider, 'MultiSlider', Base.$, [ISliderTrackOwner_$type, INotifyPropertyChanged_$type]);
2004
+ return MultiSlider;
2005
+ }(Base));
2006
+ export { MultiSlider };