wijmo 5.20252.44 → 5.20261.45-nightly.d20260105.t014601

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 (1175) hide show
  1. package/cultures/wijmo.culture.ar-AE.d.ts +1 -1
  2. package/cultures/wijmo.culture.ar-AE.js +1 -1
  3. package/cultures/wijmo.culture.ar-SA.d.ts +1 -1
  4. package/cultures/wijmo.culture.ar-SA.js +1 -1
  5. package/cultures/wijmo.culture.bg.d.ts +1 -1
  6. package/cultures/wijmo.culture.bg.js +1 -1
  7. package/cultures/wijmo.culture.ca.d.ts +1 -1
  8. package/cultures/wijmo.culture.ca.js +1 -1
  9. package/cultures/wijmo.culture.cs.d.ts +1 -1
  10. package/cultures/wijmo.culture.cs.js +1 -1
  11. package/cultures/wijmo.culture.da.d.ts +1 -1
  12. package/cultures/wijmo.culture.da.js +1 -1
  13. package/cultures/wijmo.culture.de-CH.d.ts +1 -1
  14. package/cultures/wijmo.culture.de-CH.js +1 -1
  15. package/cultures/wijmo.culture.de.d.ts +1 -1
  16. package/cultures/wijmo.culture.de.js +1 -1
  17. package/cultures/wijmo.culture.el.d.ts +1 -1
  18. package/cultures/wijmo.culture.el.js +1 -1
  19. package/cultures/wijmo.culture.en-CA.d.ts +1 -1
  20. package/cultures/wijmo.culture.en-CA.js +1 -1
  21. package/cultures/wijmo.culture.en-GB.d.ts +1 -1
  22. package/cultures/wijmo.culture.en-GB.js +1 -1
  23. package/cultures/wijmo.culture.en.d.ts +1 -1
  24. package/cultures/wijmo.culture.en.js +1 -1
  25. package/cultures/wijmo.culture.es-419.d.ts +1 -1
  26. package/cultures/wijmo.culture.es-419.js +1 -1
  27. package/cultures/wijmo.culture.es-MX.d.ts +1 -1
  28. package/cultures/wijmo.culture.es-MX.js +1 -1
  29. package/cultures/wijmo.culture.es.d.ts +1 -1
  30. package/cultures/wijmo.culture.es.js +1 -1
  31. package/cultures/wijmo.culture.et.d.ts +1 -1
  32. package/cultures/wijmo.culture.et.js +1 -1
  33. package/cultures/wijmo.culture.eu.d.ts +1 -1
  34. package/cultures/wijmo.culture.eu.js +1 -1
  35. package/cultures/wijmo.culture.fi.d.ts +1 -1
  36. package/cultures/wijmo.culture.fi.js +1 -1
  37. package/cultures/wijmo.culture.fr-CA.d.ts +1 -1
  38. package/cultures/wijmo.culture.fr-CA.js +1 -1
  39. package/cultures/wijmo.culture.fr.d.ts +1 -1
  40. package/cultures/wijmo.culture.fr.js +1 -1
  41. package/cultures/wijmo.culture.gl.d.ts +1 -1
  42. package/cultures/wijmo.culture.gl.js +1 -1
  43. package/cultures/wijmo.culture.he.d.ts +1 -1
  44. package/cultures/wijmo.culture.he.js +1 -1
  45. package/cultures/wijmo.culture.hi.d.ts +1 -1
  46. package/cultures/wijmo.culture.hi.js +1 -1
  47. package/cultures/wijmo.culture.hr.d.ts +1 -1
  48. package/cultures/wijmo.culture.hr.js +1 -1
  49. package/cultures/wijmo.culture.hu.d.ts +1 -1
  50. package/cultures/wijmo.culture.hu.js +1 -1
  51. package/cultures/wijmo.culture.id.d.ts +1 -1
  52. package/cultures/wijmo.culture.id.js +1 -1
  53. package/cultures/wijmo.culture.it.d.ts +1 -1
  54. package/cultures/wijmo.culture.it.js +1 -1
  55. package/cultures/wijmo.culture.ja.d.ts +1 -1
  56. package/cultures/wijmo.culture.ja.js +1 -1
  57. package/cultures/wijmo.culture.kk.d.ts +1 -1
  58. package/cultures/wijmo.culture.kk.js +1 -1
  59. package/cultures/wijmo.culture.ko.d.ts +1 -1
  60. package/cultures/wijmo.culture.ko.js +1 -1
  61. package/cultures/wijmo.culture.lt.d.ts +1 -1
  62. package/cultures/wijmo.culture.lt.js +1 -1
  63. package/cultures/wijmo.culture.lv.d.ts +1 -1
  64. package/cultures/wijmo.culture.lv.js +1 -1
  65. package/cultures/wijmo.culture.mn-MN.d.ts +1 -1
  66. package/cultures/wijmo.culture.mn-MN.js +1 -1
  67. package/cultures/wijmo.culture.nl.d.ts +1 -1
  68. package/cultures/wijmo.culture.nl.js +1 -1
  69. package/cultures/wijmo.culture.no.d.ts +1 -1
  70. package/cultures/wijmo.culture.no.js +1 -1
  71. package/cultures/wijmo.culture.pl.d.ts +1 -1
  72. package/cultures/wijmo.culture.pl.js +1 -1
  73. package/cultures/wijmo.culture.pt.d.ts +1 -1
  74. package/cultures/wijmo.culture.pt.js +1 -1
  75. package/cultures/wijmo.culture.ro.d.ts +1 -1
  76. package/cultures/wijmo.culture.ro.js +1 -1
  77. package/cultures/wijmo.culture.ru.d.ts +1 -1
  78. package/cultures/wijmo.culture.ru.js +1 -1
  79. package/cultures/wijmo.culture.sk.d.ts +1 -1
  80. package/cultures/wijmo.culture.sk.js +1 -1
  81. package/cultures/wijmo.culture.sl.d.ts +1 -1
  82. package/cultures/wijmo.culture.sl.js +1 -1
  83. package/cultures/wijmo.culture.sr.d.ts +1 -1
  84. package/cultures/wijmo.culture.sr.js +1 -1
  85. package/cultures/wijmo.culture.sv.d.ts +1 -1
  86. package/cultures/wijmo.culture.sv.js +1 -1
  87. package/cultures/wijmo.culture.th.d.ts +1 -1
  88. package/cultures/wijmo.culture.th.js +1 -1
  89. package/cultures/wijmo.culture.tr.d.ts +1 -1
  90. package/cultures/wijmo.culture.tr.js +1 -1
  91. package/cultures/wijmo.culture.uk.d.ts +1 -1
  92. package/cultures/wijmo.culture.uk.js +1 -1
  93. package/cultures/wijmo.culture.vi.d.ts +1 -1
  94. package/cultures/wijmo.culture.vi.js +1 -1
  95. package/cultures/wijmo.culture.zh-HK.d.ts +1 -1
  96. package/cultures/wijmo.culture.zh-HK.js +1 -1
  97. package/cultures/wijmo.culture.zh-TW.d.ts +1 -1
  98. package/cultures/wijmo.culture.zh-TW.js +1 -1
  99. package/cultures/wijmo.culture.zh.d.ts +1 -1
  100. package/cultures/wijmo.culture.zh.js +1 -1
  101. package/package.json +1 -1
  102. package/styles/misc/_constants.scss +1 -1
  103. package/styles/misc/_glyphs.scss +257 -255
  104. package/styles/misc/_mixins.scss +70 -74
  105. package/styles/misc/_variables.scss +13 -13
  106. package/styles/parts/_barcode.scss +26 -27
  107. package/styles/parts/_chart.scss +109 -107
  108. package/styles/parts/_chart_finance.scss +6 -6
  109. package/styles/parts/_chart_hierarchical.scss +4 -4
  110. package/styles/parts/_chart_interaction.scss +224 -219
  111. package/styles/parts/_chart_map.scss +7 -7
  112. package/styles/parts/_core.scss +115 -116
  113. package/styles/parts/_gauge.scss +40 -39
  114. package/styles/parts/_grid.scss +447 -410
  115. package/styles/parts/_grid_cellmaker.scss +92 -86
  116. package/styles/parts/_grid_filter.scss +157 -161
  117. package/styles/parts/_grid_grouppanel.scss +74 -74
  118. package/styles/parts/_grid_multirow.scss +65 -64
  119. package/styles/parts/_grid_search.scss +27 -26
  120. package/styles/parts/_grid_selector.scss +12 -12
  121. package/styles/parts/_grid_sheet.scss +176 -176
  122. package/styles/parts/_grid_transposed_multirow.scss +9 -10
  123. package/styles/parts/_input.scss +812 -810
  124. package/styles/parts/_labeled_input.scss +198 -194
  125. package/styles/parts/_nav.scss +263 -259
  126. package/styles/parts/_olap.scss +230 -224
  127. package/styles/parts/_viewer.scss +1005 -989
  128. package/styles/themes/material/wijmo.theme.material.amber-blue.css +1 -1
  129. package/styles/themes/material/wijmo.theme.material.amber-blue.scss +1 -2
  130. package/styles/themes/material/wijmo.theme.material.amber-cyan.css +1 -1
  131. package/styles/themes/material/wijmo.theme.material.amber-cyan.scss +1 -2
  132. package/styles/themes/material/wijmo.theme.material.amber-deep_orange.css +1 -1
  133. package/styles/themes/material/wijmo.theme.material.amber-deep_orange.scss +1 -2
  134. package/styles/themes/material/wijmo.theme.material.amber-deep_purple.css +1 -1
  135. package/styles/themes/material/wijmo.theme.material.amber-deep_purple.scss +1 -2
  136. package/styles/themes/material/wijmo.theme.material.amber-green.css +1 -1
  137. package/styles/themes/material/wijmo.theme.material.amber-green.scss +1 -2
  138. package/styles/themes/material/wijmo.theme.material.amber-indigo.css +1 -1
  139. package/styles/themes/material/wijmo.theme.material.amber-indigo.scss +1 -2
  140. package/styles/themes/material/wijmo.theme.material.amber-light_blue.css +1 -1
  141. package/styles/themes/material/wijmo.theme.material.amber-light_blue.scss +1 -2
  142. package/styles/themes/material/wijmo.theme.material.amber-light_green.css +1 -1
  143. package/styles/themes/material/wijmo.theme.material.amber-light_green.scss +1 -2
  144. package/styles/themes/material/wijmo.theme.material.amber-lime.css +1 -1
  145. package/styles/themes/material/wijmo.theme.material.amber-lime.scss +1 -2
  146. package/styles/themes/material/wijmo.theme.material.amber-orange.css +1 -1
  147. package/styles/themes/material/wijmo.theme.material.amber-orange.scss +1 -2
  148. package/styles/themes/material/wijmo.theme.material.amber-pink.css +1 -1
  149. package/styles/themes/material/wijmo.theme.material.amber-pink.scss +1 -2
  150. package/styles/themes/material/wijmo.theme.material.amber-purple.css +1 -1
  151. package/styles/themes/material/wijmo.theme.material.amber-purple.scss +1 -2
  152. package/styles/themes/material/wijmo.theme.material.amber-red.css +1 -1
  153. package/styles/themes/material/wijmo.theme.material.amber-red.scss +1 -2
  154. package/styles/themes/material/wijmo.theme.material.amber-teal.css +1 -1
  155. package/styles/themes/material/wijmo.theme.material.amber-teal.scss +1 -2
  156. package/styles/themes/material/wijmo.theme.material.amber-yellow.css +1 -1
  157. package/styles/themes/material/wijmo.theme.material.amber-yellow.scss +1 -2
  158. package/styles/themes/material/wijmo.theme.material.blue-amber.css +1 -1
  159. package/styles/themes/material/wijmo.theme.material.blue-amber.scss +1 -2
  160. package/styles/themes/material/wijmo.theme.material.blue-cyan.css +1 -1
  161. package/styles/themes/material/wijmo.theme.material.blue-cyan.scss +1 -2
  162. package/styles/themes/material/wijmo.theme.material.blue-deep_orange.css +1 -1
  163. package/styles/themes/material/wijmo.theme.material.blue-deep_orange.scss +1 -2
  164. package/styles/themes/material/wijmo.theme.material.blue-deep_purple.css +1 -1
  165. package/styles/themes/material/wijmo.theme.material.blue-deep_purple.scss +1 -2
  166. package/styles/themes/material/wijmo.theme.material.blue-green.css +1 -1
  167. package/styles/themes/material/wijmo.theme.material.blue-green.scss +1 -2
  168. package/styles/themes/material/wijmo.theme.material.blue-indigo.css +1 -1
  169. package/styles/themes/material/wijmo.theme.material.blue-indigo.scss +1 -2
  170. package/styles/themes/material/wijmo.theme.material.blue-light_blue.css +1 -1
  171. package/styles/themes/material/wijmo.theme.material.blue-light_blue.scss +1 -2
  172. package/styles/themes/material/wijmo.theme.material.blue-light_green.css +1 -1
  173. package/styles/themes/material/wijmo.theme.material.blue-light_green.scss +1 -2
  174. package/styles/themes/material/wijmo.theme.material.blue-lime.css +1 -1
  175. package/styles/themes/material/wijmo.theme.material.blue-lime.scss +1 -2
  176. package/styles/themes/material/wijmo.theme.material.blue-orange.css +1 -1
  177. package/styles/themes/material/wijmo.theme.material.blue-orange.scss +1 -2
  178. package/styles/themes/material/wijmo.theme.material.blue-pink.css +1 -1
  179. package/styles/themes/material/wijmo.theme.material.blue-pink.scss +1 -2
  180. package/styles/themes/material/wijmo.theme.material.blue-purple.css +1 -1
  181. package/styles/themes/material/wijmo.theme.material.blue-purple.scss +1 -2
  182. package/styles/themes/material/wijmo.theme.material.blue-red.css +1 -1
  183. package/styles/themes/material/wijmo.theme.material.blue-red.scss +1 -2
  184. package/styles/themes/material/wijmo.theme.material.blue-teal.css +1 -1
  185. package/styles/themes/material/wijmo.theme.material.blue-teal.scss +1 -2
  186. package/styles/themes/material/wijmo.theme.material.blue-yellow.css +1 -1
  187. package/styles/themes/material/wijmo.theme.material.blue-yellow.scss +1 -2
  188. package/styles/themes/material/wijmo.theme.material.blue_grey-amber.css +1 -1
  189. package/styles/themes/material/wijmo.theme.material.blue_grey-amber.scss +1 -2
  190. package/styles/themes/material/wijmo.theme.material.blue_grey-blue.css +1 -1
  191. package/styles/themes/material/wijmo.theme.material.blue_grey-blue.scss +1 -2
  192. package/styles/themes/material/wijmo.theme.material.blue_grey-cyan.css +1 -1
  193. package/styles/themes/material/wijmo.theme.material.blue_grey-cyan.scss +1 -2
  194. package/styles/themes/material/wijmo.theme.material.blue_grey-deep_orange.css +1 -1
  195. package/styles/themes/material/wijmo.theme.material.blue_grey-deep_orange.scss +1 -2
  196. package/styles/themes/material/wijmo.theme.material.blue_grey-deep_purple.css +1 -1
  197. package/styles/themes/material/wijmo.theme.material.blue_grey-deep_purple.scss +1 -2
  198. package/styles/themes/material/wijmo.theme.material.blue_grey-green.css +1 -1
  199. package/styles/themes/material/wijmo.theme.material.blue_grey-green.scss +1 -2
  200. package/styles/themes/material/wijmo.theme.material.blue_grey-indigo.css +1 -1
  201. package/styles/themes/material/wijmo.theme.material.blue_grey-indigo.scss +1 -2
  202. package/styles/themes/material/wijmo.theme.material.blue_grey-light_blue.css +1 -1
  203. package/styles/themes/material/wijmo.theme.material.blue_grey-light_blue.scss +1 -2
  204. package/styles/themes/material/wijmo.theme.material.blue_grey-light_green.css +1 -1
  205. package/styles/themes/material/wijmo.theme.material.blue_grey-light_green.scss +1 -2
  206. package/styles/themes/material/wijmo.theme.material.blue_grey-lime.css +1 -1
  207. package/styles/themes/material/wijmo.theme.material.blue_grey-lime.scss +1 -2
  208. package/styles/themes/material/wijmo.theme.material.blue_grey-orange.css +1 -1
  209. package/styles/themes/material/wijmo.theme.material.blue_grey-orange.scss +1 -2
  210. package/styles/themes/material/wijmo.theme.material.blue_grey-pink.css +1 -1
  211. package/styles/themes/material/wijmo.theme.material.blue_grey-pink.scss +1 -2
  212. package/styles/themes/material/wijmo.theme.material.blue_grey-purple.css +1 -1
  213. package/styles/themes/material/wijmo.theme.material.blue_grey-purple.scss +1 -2
  214. package/styles/themes/material/wijmo.theme.material.blue_grey-red.css +1 -1
  215. package/styles/themes/material/wijmo.theme.material.blue_grey-red.scss +1 -2
  216. package/styles/themes/material/wijmo.theme.material.blue_grey-teal.css +1 -1
  217. package/styles/themes/material/wijmo.theme.material.blue_grey-teal.scss +1 -2
  218. package/styles/themes/material/wijmo.theme.material.blue_grey-yellow.css +1 -1
  219. package/styles/themes/material/wijmo.theme.material.blue_grey-yellow.scss +1 -2
  220. package/styles/themes/material/wijmo.theme.material.brown-amber.css +1 -1
  221. package/styles/themes/material/wijmo.theme.material.brown-amber.scss +1 -2
  222. package/styles/themes/material/wijmo.theme.material.brown-blue.css +1 -1
  223. package/styles/themes/material/wijmo.theme.material.brown-blue.scss +1 -2
  224. package/styles/themes/material/wijmo.theme.material.brown-cyan.css +1 -1
  225. package/styles/themes/material/wijmo.theme.material.brown-cyan.scss +1 -2
  226. package/styles/themes/material/wijmo.theme.material.brown-deep_orange.css +1 -1
  227. package/styles/themes/material/wijmo.theme.material.brown-deep_orange.scss +1 -2
  228. package/styles/themes/material/wijmo.theme.material.brown-deep_purple.css +1 -1
  229. package/styles/themes/material/wijmo.theme.material.brown-deep_purple.scss +1 -2
  230. package/styles/themes/material/wijmo.theme.material.brown-green.css +1 -1
  231. package/styles/themes/material/wijmo.theme.material.brown-green.scss +1 -2
  232. package/styles/themes/material/wijmo.theme.material.brown-indigo.css +1 -1
  233. package/styles/themes/material/wijmo.theme.material.brown-indigo.scss +1 -2
  234. package/styles/themes/material/wijmo.theme.material.brown-light_blue.css +1 -1
  235. package/styles/themes/material/wijmo.theme.material.brown-light_blue.scss +1 -2
  236. package/styles/themes/material/wijmo.theme.material.brown-light_green.css +1 -1
  237. package/styles/themes/material/wijmo.theme.material.brown-light_green.scss +1 -2
  238. package/styles/themes/material/wijmo.theme.material.brown-lime.css +1 -1
  239. package/styles/themes/material/wijmo.theme.material.brown-lime.scss +1 -2
  240. package/styles/themes/material/wijmo.theme.material.brown-orange.css +1 -1
  241. package/styles/themes/material/wijmo.theme.material.brown-orange.scss +1 -2
  242. package/styles/themes/material/wijmo.theme.material.brown-pink.css +1 -1
  243. package/styles/themes/material/wijmo.theme.material.brown-pink.scss +1 -2
  244. package/styles/themes/material/wijmo.theme.material.brown-purple.css +1 -1
  245. package/styles/themes/material/wijmo.theme.material.brown-purple.scss +1 -2
  246. package/styles/themes/material/wijmo.theme.material.brown-red.css +1 -1
  247. package/styles/themes/material/wijmo.theme.material.brown-red.scss +1 -2
  248. package/styles/themes/material/wijmo.theme.material.brown-teal.css +1 -1
  249. package/styles/themes/material/wijmo.theme.material.brown-teal.scss +1 -2
  250. package/styles/themes/material/wijmo.theme.material.brown-yellow.css +1 -1
  251. package/styles/themes/material/wijmo.theme.material.brown-yellow.scss +1 -2
  252. package/styles/themes/material/wijmo.theme.material.cyan-amber.css +1 -1
  253. package/styles/themes/material/wijmo.theme.material.cyan-amber.scss +1 -2
  254. package/styles/themes/material/wijmo.theme.material.cyan-blue.css +1 -1
  255. package/styles/themes/material/wijmo.theme.material.cyan-blue.scss +1 -2
  256. package/styles/themes/material/wijmo.theme.material.cyan-deep_orange.css +1 -1
  257. package/styles/themes/material/wijmo.theme.material.cyan-deep_orange.scss +1 -2
  258. package/styles/themes/material/wijmo.theme.material.cyan-deep_purple.css +1 -1
  259. package/styles/themes/material/wijmo.theme.material.cyan-deep_purple.scss +1 -2
  260. package/styles/themes/material/wijmo.theme.material.cyan-green.css +1 -1
  261. package/styles/themes/material/wijmo.theme.material.cyan-green.scss +1 -2
  262. package/styles/themes/material/wijmo.theme.material.cyan-indigo.css +1 -1
  263. package/styles/themes/material/wijmo.theme.material.cyan-indigo.scss +1 -2
  264. package/styles/themes/material/wijmo.theme.material.cyan-light_blue.css +1 -1
  265. package/styles/themes/material/wijmo.theme.material.cyan-light_blue.scss +1 -2
  266. package/styles/themes/material/wijmo.theme.material.cyan-light_green.css +1 -1
  267. package/styles/themes/material/wijmo.theme.material.cyan-light_green.scss +1 -2
  268. package/styles/themes/material/wijmo.theme.material.cyan-lime.css +1 -1
  269. package/styles/themes/material/wijmo.theme.material.cyan-lime.scss +1 -2
  270. package/styles/themes/material/wijmo.theme.material.cyan-orange.css +1 -1
  271. package/styles/themes/material/wijmo.theme.material.cyan-orange.scss +1 -2
  272. package/styles/themes/material/wijmo.theme.material.cyan-pink.css +1 -1
  273. package/styles/themes/material/wijmo.theme.material.cyan-pink.scss +1 -2
  274. package/styles/themes/material/wijmo.theme.material.cyan-purple.css +1 -1
  275. package/styles/themes/material/wijmo.theme.material.cyan-purple.scss +1 -2
  276. package/styles/themes/material/wijmo.theme.material.cyan-red.css +1 -1
  277. package/styles/themes/material/wijmo.theme.material.cyan-red.scss +1 -2
  278. package/styles/themes/material/wijmo.theme.material.cyan-teal.css +1 -1
  279. package/styles/themes/material/wijmo.theme.material.cyan-teal.scss +1 -2
  280. package/styles/themes/material/wijmo.theme.material.cyan-yellow.css +1 -1
  281. package/styles/themes/material/wijmo.theme.material.cyan-yellow.scss +1 -2
  282. package/styles/themes/material/wijmo.theme.material.deep_orange-amber.css +1 -1
  283. package/styles/themes/material/wijmo.theme.material.deep_orange-amber.scss +1 -2
  284. package/styles/themes/material/wijmo.theme.material.deep_orange-blue.css +1 -1
  285. package/styles/themes/material/wijmo.theme.material.deep_orange-blue.scss +1 -2
  286. package/styles/themes/material/wijmo.theme.material.deep_orange-cyan.css +1 -1
  287. package/styles/themes/material/wijmo.theme.material.deep_orange-cyan.scss +1 -2
  288. package/styles/themes/material/wijmo.theme.material.deep_orange-deep_purple.css +1 -1
  289. package/styles/themes/material/wijmo.theme.material.deep_orange-deep_purple.scss +1 -2
  290. package/styles/themes/material/wijmo.theme.material.deep_orange-green.css +1 -1
  291. package/styles/themes/material/wijmo.theme.material.deep_orange-green.scss +1 -2
  292. package/styles/themes/material/wijmo.theme.material.deep_orange-indigo.css +1 -1
  293. package/styles/themes/material/wijmo.theme.material.deep_orange-indigo.scss +1 -2
  294. package/styles/themes/material/wijmo.theme.material.deep_orange-light_blue.css +1 -1
  295. package/styles/themes/material/wijmo.theme.material.deep_orange-light_blue.scss +1 -2
  296. package/styles/themes/material/wijmo.theme.material.deep_orange-light_green.css +1 -1
  297. package/styles/themes/material/wijmo.theme.material.deep_orange-light_green.scss +1 -2
  298. package/styles/themes/material/wijmo.theme.material.deep_orange-lime.css +1 -1
  299. package/styles/themes/material/wijmo.theme.material.deep_orange-lime.scss +1 -2
  300. package/styles/themes/material/wijmo.theme.material.deep_orange-orange.css +1 -1
  301. package/styles/themes/material/wijmo.theme.material.deep_orange-orange.scss +1 -2
  302. package/styles/themes/material/wijmo.theme.material.deep_orange-pink.css +1 -1
  303. package/styles/themes/material/wijmo.theme.material.deep_orange-pink.scss +1 -2
  304. package/styles/themes/material/wijmo.theme.material.deep_orange-purple.css +1 -1
  305. package/styles/themes/material/wijmo.theme.material.deep_orange-purple.scss +1 -2
  306. package/styles/themes/material/wijmo.theme.material.deep_orange-red.css +1 -1
  307. package/styles/themes/material/wijmo.theme.material.deep_orange-red.scss +1 -2
  308. package/styles/themes/material/wijmo.theme.material.deep_orange-teal.css +1 -1
  309. package/styles/themes/material/wijmo.theme.material.deep_orange-teal.scss +1 -2
  310. package/styles/themes/material/wijmo.theme.material.deep_orange-yellow.css +1 -1
  311. package/styles/themes/material/wijmo.theme.material.deep_orange-yellow.scss +1 -2
  312. package/styles/themes/material/wijmo.theme.material.deep_purple-amber.css +1 -1
  313. package/styles/themes/material/wijmo.theme.material.deep_purple-amber.scss +1 -2
  314. package/styles/themes/material/wijmo.theme.material.deep_purple-blue.css +1 -1
  315. package/styles/themes/material/wijmo.theme.material.deep_purple-blue.scss +1 -2
  316. package/styles/themes/material/wijmo.theme.material.deep_purple-cyan.css +1 -1
  317. package/styles/themes/material/wijmo.theme.material.deep_purple-cyan.scss +1 -2
  318. package/styles/themes/material/wijmo.theme.material.deep_purple-deep_orange.css +1 -1
  319. package/styles/themes/material/wijmo.theme.material.deep_purple-deep_orange.scss +1 -2
  320. package/styles/themes/material/wijmo.theme.material.deep_purple-green.css +1 -1
  321. package/styles/themes/material/wijmo.theme.material.deep_purple-green.scss +1 -2
  322. package/styles/themes/material/wijmo.theme.material.deep_purple-indigo.css +1 -1
  323. package/styles/themes/material/wijmo.theme.material.deep_purple-indigo.scss +1 -2
  324. package/styles/themes/material/wijmo.theme.material.deep_purple-light_blue.css +1 -1
  325. package/styles/themes/material/wijmo.theme.material.deep_purple-light_blue.scss +1 -2
  326. package/styles/themes/material/wijmo.theme.material.deep_purple-light_green.css +1 -1
  327. package/styles/themes/material/wijmo.theme.material.deep_purple-light_green.scss +1 -2
  328. package/styles/themes/material/wijmo.theme.material.deep_purple-lime.css +1 -1
  329. package/styles/themes/material/wijmo.theme.material.deep_purple-lime.scss +1 -2
  330. package/styles/themes/material/wijmo.theme.material.deep_purple-orange.css +1 -1
  331. package/styles/themes/material/wijmo.theme.material.deep_purple-orange.scss +1 -2
  332. package/styles/themes/material/wijmo.theme.material.deep_purple-pink.css +1 -1
  333. package/styles/themes/material/wijmo.theme.material.deep_purple-pink.scss +1 -2
  334. package/styles/themes/material/wijmo.theme.material.deep_purple-purple.css +1 -1
  335. package/styles/themes/material/wijmo.theme.material.deep_purple-purple.scss +1 -2
  336. package/styles/themes/material/wijmo.theme.material.deep_purple-red.css +1 -1
  337. package/styles/themes/material/wijmo.theme.material.deep_purple-red.scss +1 -2
  338. package/styles/themes/material/wijmo.theme.material.deep_purple-teal.css +1 -1
  339. package/styles/themes/material/wijmo.theme.material.deep_purple-teal.scss +1 -2
  340. package/styles/themes/material/wijmo.theme.material.deep_purple-yellow.css +1 -1
  341. package/styles/themes/material/wijmo.theme.material.deep_purple-yellow.scss +1 -2
  342. package/styles/themes/material/wijmo.theme.material.green-amber.css +1 -1
  343. package/styles/themes/material/wijmo.theme.material.green-amber.scss +1 -2
  344. package/styles/themes/material/wijmo.theme.material.green-blue.css +1 -1
  345. package/styles/themes/material/wijmo.theme.material.green-blue.scss +1 -2
  346. package/styles/themes/material/wijmo.theme.material.green-cyan.css +1 -1
  347. package/styles/themes/material/wijmo.theme.material.green-cyan.scss +1 -2
  348. package/styles/themes/material/wijmo.theme.material.green-deep_orange.css +1 -1
  349. package/styles/themes/material/wijmo.theme.material.green-deep_orange.scss +1 -2
  350. package/styles/themes/material/wijmo.theme.material.green-deep_purple.css +1 -1
  351. package/styles/themes/material/wijmo.theme.material.green-deep_purple.scss +1 -2
  352. package/styles/themes/material/wijmo.theme.material.green-indigo.css +1 -1
  353. package/styles/themes/material/wijmo.theme.material.green-indigo.scss +1 -2
  354. package/styles/themes/material/wijmo.theme.material.green-light_blue.css +1 -1
  355. package/styles/themes/material/wijmo.theme.material.green-light_blue.scss +1 -2
  356. package/styles/themes/material/wijmo.theme.material.green-light_green.css +1 -1
  357. package/styles/themes/material/wijmo.theme.material.green-light_green.scss +1 -2
  358. package/styles/themes/material/wijmo.theme.material.green-lime.css +1 -1
  359. package/styles/themes/material/wijmo.theme.material.green-lime.scss +1 -2
  360. package/styles/themes/material/wijmo.theme.material.green-orange.css +1 -1
  361. package/styles/themes/material/wijmo.theme.material.green-orange.scss +1 -2
  362. package/styles/themes/material/wijmo.theme.material.green-pink.css +1 -1
  363. package/styles/themes/material/wijmo.theme.material.green-pink.scss +1 -2
  364. package/styles/themes/material/wijmo.theme.material.green-purple.css +1 -1
  365. package/styles/themes/material/wijmo.theme.material.green-purple.scss +1 -2
  366. package/styles/themes/material/wijmo.theme.material.green-red.css +1 -1
  367. package/styles/themes/material/wijmo.theme.material.green-red.scss +1 -2
  368. package/styles/themes/material/wijmo.theme.material.green-teal.css +1 -1
  369. package/styles/themes/material/wijmo.theme.material.green-teal.scss +1 -2
  370. package/styles/themes/material/wijmo.theme.material.green-yellow.css +1 -1
  371. package/styles/themes/material/wijmo.theme.material.green-yellow.scss +1 -2
  372. package/styles/themes/material/wijmo.theme.material.grey-amber.css +1 -1
  373. package/styles/themes/material/wijmo.theme.material.grey-amber.scss +1 -2
  374. package/styles/themes/material/wijmo.theme.material.grey-blue.css +1 -1
  375. package/styles/themes/material/wijmo.theme.material.grey-blue.scss +1 -2
  376. package/styles/themes/material/wijmo.theme.material.grey-cyan.css +1 -1
  377. package/styles/themes/material/wijmo.theme.material.grey-cyan.scss +1 -2
  378. package/styles/themes/material/wijmo.theme.material.grey-deep_orange.css +1 -1
  379. package/styles/themes/material/wijmo.theme.material.grey-deep_orange.scss +1 -2
  380. package/styles/themes/material/wijmo.theme.material.grey-deep_purple.css +1 -1
  381. package/styles/themes/material/wijmo.theme.material.grey-deep_purple.scss +1 -2
  382. package/styles/themes/material/wijmo.theme.material.grey-green.css +1 -1
  383. package/styles/themes/material/wijmo.theme.material.grey-green.scss +1 -2
  384. package/styles/themes/material/wijmo.theme.material.grey-indigo.css +1 -1
  385. package/styles/themes/material/wijmo.theme.material.grey-indigo.scss +1 -2
  386. package/styles/themes/material/wijmo.theme.material.grey-light_blue.css +1 -1
  387. package/styles/themes/material/wijmo.theme.material.grey-light_blue.scss +1 -2
  388. package/styles/themes/material/wijmo.theme.material.grey-light_green.css +1 -1
  389. package/styles/themes/material/wijmo.theme.material.grey-light_green.scss +1 -2
  390. package/styles/themes/material/wijmo.theme.material.grey-lime.css +1 -1
  391. package/styles/themes/material/wijmo.theme.material.grey-lime.scss +1 -2
  392. package/styles/themes/material/wijmo.theme.material.grey-orange.css +1 -1
  393. package/styles/themes/material/wijmo.theme.material.grey-orange.scss +1 -2
  394. package/styles/themes/material/wijmo.theme.material.grey-pink.css +1 -1
  395. package/styles/themes/material/wijmo.theme.material.grey-pink.scss +1 -2
  396. package/styles/themes/material/wijmo.theme.material.grey-purple.css +1 -1
  397. package/styles/themes/material/wijmo.theme.material.grey-purple.scss +1 -2
  398. package/styles/themes/material/wijmo.theme.material.grey-red.css +1 -1
  399. package/styles/themes/material/wijmo.theme.material.grey-red.scss +1 -2
  400. package/styles/themes/material/wijmo.theme.material.grey-teal.css +1 -1
  401. package/styles/themes/material/wijmo.theme.material.grey-teal.scss +1 -2
  402. package/styles/themes/material/wijmo.theme.material.grey-yellow.css +1 -1
  403. package/styles/themes/material/wijmo.theme.material.grey-yellow.scss +1 -2
  404. package/styles/themes/material/wijmo.theme.material.indigo-amber.css +1 -1
  405. package/styles/themes/material/wijmo.theme.material.indigo-amber.scss +1 -2
  406. package/styles/themes/material/wijmo.theme.material.indigo-blue.css +1 -1
  407. package/styles/themes/material/wijmo.theme.material.indigo-blue.scss +1 -2
  408. package/styles/themes/material/wijmo.theme.material.indigo-cyan.css +1 -1
  409. package/styles/themes/material/wijmo.theme.material.indigo-cyan.scss +1 -2
  410. package/styles/themes/material/wijmo.theme.material.indigo-deep_orange.css +1 -1
  411. package/styles/themes/material/wijmo.theme.material.indigo-deep_orange.scss +1 -2
  412. package/styles/themes/material/wijmo.theme.material.indigo-deep_purple.css +1 -1
  413. package/styles/themes/material/wijmo.theme.material.indigo-deep_purple.scss +1 -2
  414. package/styles/themes/material/wijmo.theme.material.indigo-green.css +1 -1
  415. package/styles/themes/material/wijmo.theme.material.indigo-green.scss +1 -2
  416. package/styles/themes/material/wijmo.theme.material.indigo-light_blue.css +1 -1
  417. package/styles/themes/material/wijmo.theme.material.indigo-light_blue.scss +1 -2
  418. package/styles/themes/material/wijmo.theme.material.indigo-light_green.css +1 -1
  419. package/styles/themes/material/wijmo.theme.material.indigo-light_green.scss +1 -2
  420. package/styles/themes/material/wijmo.theme.material.indigo-lime.css +1 -1
  421. package/styles/themes/material/wijmo.theme.material.indigo-lime.scss +1 -2
  422. package/styles/themes/material/wijmo.theme.material.indigo-orange.css +1 -1
  423. package/styles/themes/material/wijmo.theme.material.indigo-orange.scss +1 -2
  424. package/styles/themes/material/wijmo.theme.material.indigo-pink.css +1 -1
  425. package/styles/themes/material/wijmo.theme.material.indigo-pink.scss +1 -2
  426. package/styles/themes/material/wijmo.theme.material.indigo-purple.css +1 -1
  427. package/styles/themes/material/wijmo.theme.material.indigo-purple.scss +1 -2
  428. package/styles/themes/material/wijmo.theme.material.indigo-red.css +1 -1
  429. package/styles/themes/material/wijmo.theme.material.indigo-red.scss +1 -2
  430. package/styles/themes/material/wijmo.theme.material.indigo-teal.css +1 -1
  431. package/styles/themes/material/wijmo.theme.material.indigo-teal.scss +1 -2
  432. package/styles/themes/material/wijmo.theme.material.indigo-yellow.css +1 -1
  433. package/styles/themes/material/wijmo.theme.material.indigo-yellow.scss +1 -2
  434. package/styles/themes/material/wijmo.theme.material.light_blue-amber.css +1 -1
  435. package/styles/themes/material/wijmo.theme.material.light_blue-amber.scss +1 -2
  436. package/styles/themes/material/wijmo.theme.material.light_blue-blue.css +1 -1
  437. package/styles/themes/material/wijmo.theme.material.light_blue-blue.scss +1 -2
  438. package/styles/themes/material/wijmo.theme.material.light_blue-cyan.css +1 -1
  439. package/styles/themes/material/wijmo.theme.material.light_blue-cyan.scss +1 -2
  440. package/styles/themes/material/wijmo.theme.material.light_blue-deep_orange.css +1 -1
  441. package/styles/themes/material/wijmo.theme.material.light_blue-deep_orange.scss +1 -2
  442. package/styles/themes/material/wijmo.theme.material.light_blue-deep_purple.css +1 -1
  443. package/styles/themes/material/wijmo.theme.material.light_blue-deep_purple.scss +1 -2
  444. package/styles/themes/material/wijmo.theme.material.light_blue-green.css +1 -1
  445. package/styles/themes/material/wijmo.theme.material.light_blue-green.scss +1 -2
  446. package/styles/themes/material/wijmo.theme.material.light_blue-indigo.css +1 -1
  447. package/styles/themes/material/wijmo.theme.material.light_blue-indigo.scss +1 -2
  448. package/styles/themes/material/wijmo.theme.material.light_blue-light_green.css +1 -1
  449. package/styles/themes/material/wijmo.theme.material.light_blue-light_green.scss +1 -2
  450. package/styles/themes/material/wijmo.theme.material.light_blue-lime.css +1 -1
  451. package/styles/themes/material/wijmo.theme.material.light_blue-lime.scss +1 -2
  452. package/styles/themes/material/wijmo.theme.material.light_blue-orange.css +1 -1
  453. package/styles/themes/material/wijmo.theme.material.light_blue-orange.scss +1 -2
  454. package/styles/themes/material/wijmo.theme.material.light_blue-pink.css +1 -1
  455. package/styles/themes/material/wijmo.theme.material.light_blue-pink.scss +1 -2
  456. package/styles/themes/material/wijmo.theme.material.light_blue-purple.css +1 -1
  457. package/styles/themes/material/wijmo.theme.material.light_blue-purple.scss +1 -2
  458. package/styles/themes/material/wijmo.theme.material.light_blue-red.css +1 -1
  459. package/styles/themes/material/wijmo.theme.material.light_blue-red.scss +1 -2
  460. package/styles/themes/material/wijmo.theme.material.light_blue-teal.css +1 -1
  461. package/styles/themes/material/wijmo.theme.material.light_blue-teal.scss +1 -2
  462. package/styles/themes/material/wijmo.theme.material.light_blue-yellow.css +1 -1
  463. package/styles/themes/material/wijmo.theme.material.light_blue-yellow.scss +1 -2
  464. package/styles/themes/material/wijmo.theme.material.light_green-amber.css +1 -1
  465. package/styles/themes/material/wijmo.theme.material.light_green-amber.scss +1 -2
  466. package/styles/themes/material/wijmo.theme.material.light_green-blue.css +1 -1
  467. package/styles/themes/material/wijmo.theme.material.light_green-blue.scss +1 -2
  468. package/styles/themes/material/wijmo.theme.material.light_green-cyan.css +1 -1
  469. package/styles/themes/material/wijmo.theme.material.light_green-cyan.scss +1 -2
  470. package/styles/themes/material/wijmo.theme.material.light_green-deep_orange.css +1 -1
  471. package/styles/themes/material/wijmo.theme.material.light_green-deep_orange.scss +1 -2
  472. package/styles/themes/material/wijmo.theme.material.light_green-deep_purple.css +1 -1
  473. package/styles/themes/material/wijmo.theme.material.light_green-deep_purple.scss +1 -2
  474. package/styles/themes/material/wijmo.theme.material.light_green-green.css +1 -1
  475. package/styles/themes/material/wijmo.theme.material.light_green-green.scss +1 -2
  476. package/styles/themes/material/wijmo.theme.material.light_green-indigo.css +1 -1
  477. package/styles/themes/material/wijmo.theme.material.light_green-indigo.scss +1 -2
  478. package/styles/themes/material/wijmo.theme.material.light_green-light_blue.css +1 -1
  479. package/styles/themes/material/wijmo.theme.material.light_green-light_blue.scss +1 -2
  480. package/styles/themes/material/wijmo.theme.material.light_green-lime.css +1 -1
  481. package/styles/themes/material/wijmo.theme.material.light_green-lime.scss +1 -2
  482. package/styles/themes/material/wijmo.theme.material.light_green-orange.css +1 -1
  483. package/styles/themes/material/wijmo.theme.material.light_green-orange.scss +1 -2
  484. package/styles/themes/material/wijmo.theme.material.light_green-pink.css +1 -1
  485. package/styles/themes/material/wijmo.theme.material.light_green-pink.scss +1 -2
  486. package/styles/themes/material/wijmo.theme.material.light_green-purple.css +1 -1
  487. package/styles/themes/material/wijmo.theme.material.light_green-purple.scss +1 -2
  488. package/styles/themes/material/wijmo.theme.material.light_green-red.css +1 -1
  489. package/styles/themes/material/wijmo.theme.material.light_green-red.scss +1 -2
  490. package/styles/themes/material/wijmo.theme.material.light_green-teal.css +1 -1
  491. package/styles/themes/material/wijmo.theme.material.light_green-teal.scss +1 -2
  492. package/styles/themes/material/wijmo.theme.material.light_green-yellow.css +1 -1
  493. package/styles/themes/material/wijmo.theme.material.light_green-yellow.scss +1 -2
  494. package/styles/themes/material/wijmo.theme.material.lime-amber.css +1 -1
  495. package/styles/themes/material/wijmo.theme.material.lime-amber.scss +1 -2
  496. package/styles/themes/material/wijmo.theme.material.lime-blue.css +1 -1
  497. package/styles/themes/material/wijmo.theme.material.lime-blue.scss +1 -2
  498. package/styles/themes/material/wijmo.theme.material.lime-cyan.css +1 -1
  499. package/styles/themes/material/wijmo.theme.material.lime-cyan.scss +1 -2
  500. package/styles/themes/material/wijmo.theme.material.lime-deep_orange.css +1 -1
  501. package/styles/themes/material/wijmo.theme.material.lime-deep_orange.scss +1 -2
  502. package/styles/themes/material/wijmo.theme.material.lime-deep_purple.css +1 -1
  503. package/styles/themes/material/wijmo.theme.material.lime-deep_purple.scss +1 -2
  504. package/styles/themes/material/wijmo.theme.material.lime-green.css +1 -1
  505. package/styles/themes/material/wijmo.theme.material.lime-green.scss +1 -2
  506. package/styles/themes/material/wijmo.theme.material.lime-indigo.css +1 -1
  507. package/styles/themes/material/wijmo.theme.material.lime-indigo.scss +1 -2
  508. package/styles/themes/material/wijmo.theme.material.lime-light_blue.css +1 -1
  509. package/styles/themes/material/wijmo.theme.material.lime-light_blue.scss +1 -2
  510. package/styles/themes/material/wijmo.theme.material.lime-light_green.css +1 -1
  511. package/styles/themes/material/wijmo.theme.material.lime-light_green.scss +1 -2
  512. package/styles/themes/material/wijmo.theme.material.lime-orange.css +1 -1
  513. package/styles/themes/material/wijmo.theme.material.lime-orange.scss +1 -2
  514. package/styles/themes/material/wijmo.theme.material.lime-pink.css +1 -1
  515. package/styles/themes/material/wijmo.theme.material.lime-pink.scss +1 -2
  516. package/styles/themes/material/wijmo.theme.material.lime-purple.css +1 -1
  517. package/styles/themes/material/wijmo.theme.material.lime-purple.scss +1 -2
  518. package/styles/themes/material/wijmo.theme.material.lime-red.css +1 -1
  519. package/styles/themes/material/wijmo.theme.material.lime-red.scss +1 -2
  520. package/styles/themes/material/wijmo.theme.material.lime-teal.css +1 -1
  521. package/styles/themes/material/wijmo.theme.material.lime-teal.scss +1 -2
  522. package/styles/themes/material/wijmo.theme.material.lime-yellow.css +1 -1
  523. package/styles/themes/material/wijmo.theme.material.lime-yellow.scss +1 -2
  524. package/styles/themes/material/wijmo.theme.material.orange-amber.css +1 -1
  525. package/styles/themes/material/wijmo.theme.material.orange-amber.scss +1 -2
  526. package/styles/themes/material/wijmo.theme.material.orange-blue.css +1 -1
  527. package/styles/themes/material/wijmo.theme.material.orange-blue.scss +1 -2
  528. package/styles/themes/material/wijmo.theme.material.orange-cyan.css +1 -1
  529. package/styles/themes/material/wijmo.theme.material.orange-cyan.scss +1 -2
  530. package/styles/themes/material/wijmo.theme.material.orange-deep_orange.css +1 -1
  531. package/styles/themes/material/wijmo.theme.material.orange-deep_orange.scss +1 -2
  532. package/styles/themes/material/wijmo.theme.material.orange-deep_purple.css +1 -1
  533. package/styles/themes/material/wijmo.theme.material.orange-deep_purple.scss +1 -2
  534. package/styles/themes/material/wijmo.theme.material.orange-green.css +1 -1
  535. package/styles/themes/material/wijmo.theme.material.orange-green.scss +1 -2
  536. package/styles/themes/material/wijmo.theme.material.orange-indigo.css +1 -1
  537. package/styles/themes/material/wijmo.theme.material.orange-indigo.scss +1 -2
  538. package/styles/themes/material/wijmo.theme.material.orange-light_blue.css +1 -1
  539. package/styles/themes/material/wijmo.theme.material.orange-light_blue.scss +1 -2
  540. package/styles/themes/material/wijmo.theme.material.orange-light_green.css +1 -1
  541. package/styles/themes/material/wijmo.theme.material.orange-light_green.scss +1 -2
  542. package/styles/themes/material/wijmo.theme.material.orange-lime.css +1 -1
  543. package/styles/themes/material/wijmo.theme.material.orange-lime.scss +1 -2
  544. package/styles/themes/material/wijmo.theme.material.orange-pink.css +1 -1
  545. package/styles/themes/material/wijmo.theme.material.orange-pink.scss +1 -2
  546. package/styles/themes/material/wijmo.theme.material.orange-purple.css +1 -1
  547. package/styles/themes/material/wijmo.theme.material.orange-purple.scss +1 -2
  548. package/styles/themes/material/wijmo.theme.material.orange-red.css +1 -1
  549. package/styles/themes/material/wijmo.theme.material.orange-red.scss +1 -2
  550. package/styles/themes/material/wijmo.theme.material.orange-teal.css +1 -1
  551. package/styles/themes/material/wijmo.theme.material.orange-teal.scss +1 -2
  552. package/styles/themes/material/wijmo.theme.material.orange-yellow.css +1 -1
  553. package/styles/themes/material/wijmo.theme.material.orange-yellow.scss +1 -2
  554. package/styles/themes/material/wijmo.theme.material.pink-amber.css +1 -1
  555. package/styles/themes/material/wijmo.theme.material.pink-amber.scss +1 -2
  556. package/styles/themes/material/wijmo.theme.material.pink-blue.css +1 -1
  557. package/styles/themes/material/wijmo.theme.material.pink-blue.scss +1 -2
  558. package/styles/themes/material/wijmo.theme.material.pink-cyan.css +1 -1
  559. package/styles/themes/material/wijmo.theme.material.pink-cyan.scss +1 -2
  560. package/styles/themes/material/wijmo.theme.material.pink-deep_orange.css +1 -1
  561. package/styles/themes/material/wijmo.theme.material.pink-deep_orange.scss +1 -2
  562. package/styles/themes/material/wijmo.theme.material.pink-deep_purple.css +1 -1
  563. package/styles/themes/material/wijmo.theme.material.pink-deep_purple.scss +1 -2
  564. package/styles/themes/material/wijmo.theme.material.pink-green.css +1 -1
  565. package/styles/themes/material/wijmo.theme.material.pink-green.scss +1 -2
  566. package/styles/themes/material/wijmo.theme.material.pink-indigo.css +1 -1
  567. package/styles/themes/material/wijmo.theme.material.pink-indigo.scss +1 -2
  568. package/styles/themes/material/wijmo.theme.material.pink-light_blue.css +1 -1
  569. package/styles/themes/material/wijmo.theme.material.pink-light_blue.scss +1 -2
  570. package/styles/themes/material/wijmo.theme.material.pink-light_green.css +1 -1
  571. package/styles/themes/material/wijmo.theme.material.pink-light_green.scss +1 -2
  572. package/styles/themes/material/wijmo.theme.material.pink-lime.css +1 -1
  573. package/styles/themes/material/wijmo.theme.material.pink-lime.scss +1 -2
  574. package/styles/themes/material/wijmo.theme.material.pink-orange.css +1 -1
  575. package/styles/themes/material/wijmo.theme.material.pink-orange.scss +1 -2
  576. package/styles/themes/material/wijmo.theme.material.pink-purple.css +1 -1
  577. package/styles/themes/material/wijmo.theme.material.pink-purple.scss +1 -2
  578. package/styles/themes/material/wijmo.theme.material.pink-red.css +1 -1
  579. package/styles/themes/material/wijmo.theme.material.pink-red.scss +1 -2
  580. package/styles/themes/material/wijmo.theme.material.pink-teal.css +1 -1
  581. package/styles/themes/material/wijmo.theme.material.pink-teal.scss +1 -2
  582. package/styles/themes/material/wijmo.theme.material.pink-yellow.css +1 -1
  583. package/styles/themes/material/wijmo.theme.material.pink-yellow.scss +1 -2
  584. package/styles/themes/material/wijmo.theme.material.purple-amber.css +1 -1
  585. package/styles/themes/material/wijmo.theme.material.purple-amber.scss +1 -2
  586. package/styles/themes/material/wijmo.theme.material.purple-blue.css +1 -1
  587. package/styles/themes/material/wijmo.theme.material.purple-blue.scss +1 -2
  588. package/styles/themes/material/wijmo.theme.material.purple-cyan.css +1 -1
  589. package/styles/themes/material/wijmo.theme.material.purple-cyan.scss +1 -2
  590. package/styles/themes/material/wijmo.theme.material.purple-deep_orange.css +1 -1
  591. package/styles/themes/material/wijmo.theme.material.purple-deep_orange.scss +1 -2
  592. package/styles/themes/material/wijmo.theme.material.purple-deep_purple.css +1 -1
  593. package/styles/themes/material/wijmo.theme.material.purple-deep_purple.scss +1 -2
  594. package/styles/themes/material/wijmo.theme.material.purple-green.css +1 -1
  595. package/styles/themes/material/wijmo.theme.material.purple-green.scss +1 -2
  596. package/styles/themes/material/wijmo.theme.material.purple-indigo.css +1 -1
  597. package/styles/themes/material/wijmo.theme.material.purple-indigo.scss +1 -2
  598. package/styles/themes/material/wijmo.theme.material.purple-light_blue.css +1 -1
  599. package/styles/themes/material/wijmo.theme.material.purple-light_blue.scss +1 -2
  600. package/styles/themes/material/wijmo.theme.material.purple-light_green.css +1 -1
  601. package/styles/themes/material/wijmo.theme.material.purple-light_green.scss +1 -2
  602. package/styles/themes/material/wijmo.theme.material.purple-lime.css +1 -1
  603. package/styles/themes/material/wijmo.theme.material.purple-lime.scss +1 -2
  604. package/styles/themes/material/wijmo.theme.material.purple-orange.css +1 -1
  605. package/styles/themes/material/wijmo.theme.material.purple-orange.scss +1 -2
  606. package/styles/themes/material/wijmo.theme.material.purple-pink.css +1 -1
  607. package/styles/themes/material/wijmo.theme.material.purple-pink.scss +1 -2
  608. package/styles/themes/material/wijmo.theme.material.purple-red.css +1 -1
  609. package/styles/themes/material/wijmo.theme.material.purple-red.scss +1 -2
  610. package/styles/themes/material/wijmo.theme.material.purple-teal.css +1 -1
  611. package/styles/themes/material/wijmo.theme.material.purple-teal.scss +1 -2
  612. package/styles/themes/material/wijmo.theme.material.purple-yellow.css +1 -1
  613. package/styles/themes/material/wijmo.theme.material.purple-yellow.scss +1 -2
  614. package/styles/themes/material/wijmo.theme.material.red-amber.css +1 -1
  615. package/styles/themes/material/wijmo.theme.material.red-amber.scss +1 -2
  616. package/styles/themes/material/wijmo.theme.material.red-blue.css +1 -1
  617. package/styles/themes/material/wijmo.theme.material.red-blue.scss +1 -2
  618. package/styles/themes/material/wijmo.theme.material.red-cyan.css +1 -1
  619. package/styles/themes/material/wijmo.theme.material.red-cyan.scss +1 -2
  620. package/styles/themes/material/wijmo.theme.material.red-deep_orange.css +1 -1
  621. package/styles/themes/material/wijmo.theme.material.red-deep_orange.scss +1 -2
  622. package/styles/themes/material/wijmo.theme.material.red-deep_purple.css +1 -1
  623. package/styles/themes/material/wijmo.theme.material.red-deep_purple.scss +1 -2
  624. package/styles/themes/material/wijmo.theme.material.red-green.css +1 -1
  625. package/styles/themes/material/wijmo.theme.material.red-green.scss +1 -2
  626. package/styles/themes/material/wijmo.theme.material.red-indigo.css +1 -1
  627. package/styles/themes/material/wijmo.theme.material.red-indigo.scss +1 -2
  628. package/styles/themes/material/wijmo.theme.material.red-light_blue.css +1 -1
  629. package/styles/themes/material/wijmo.theme.material.red-light_blue.scss +1 -2
  630. package/styles/themes/material/wijmo.theme.material.red-light_green.css +1 -1
  631. package/styles/themes/material/wijmo.theme.material.red-light_green.scss +1 -2
  632. package/styles/themes/material/wijmo.theme.material.red-lime.css +1 -1
  633. package/styles/themes/material/wijmo.theme.material.red-lime.scss +1 -2
  634. package/styles/themes/material/wijmo.theme.material.red-orange.css +1 -1
  635. package/styles/themes/material/wijmo.theme.material.red-orange.scss +1 -2
  636. package/styles/themes/material/wijmo.theme.material.red-pink.css +1 -1
  637. package/styles/themes/material/wijmo.theme.material.red-pink.scss +1 -2
  638. package/styles/themes/material/wijmo.theme.material.red-purple.css +1 -1
  639. package/styles/themes/material/wijmo.theme.material.red-purple.scss +1 -2
  640. package/styles/themes/material/wijmo.theme.material.red-teal.css +1 -1
  641. package/styles/themes/material/wijmo.theme.material.red-teal.scss +1 -2
  642. package/styles/themes/material/wijmo.theme.material.red-yellow.css +1 -1
  643. package/styles/themes/material/wijmo.theme.material.red-yellow.scss +1 -2
  644. package/styles/themes/material/wijmo.theme.material.teal-amber.css +1 -1
  645. package/styles/themes/material/wijmo.theme.material.teal-amber.scss +1 -2
  646. package/styles/themes/material/wijmo.theme.material.teal-blue.css +1 -1
  647. package/styles/themes/material/wijmo.theme.material.teal-blue.scss +1 -2
  648. package/styles/themes/material/wijmo.theme.material.teal-cyan.css +1 -1
  649. package/styles/themes/material/wijmo.theme.material.teal-cyan.scss +1 -2
  650. package/styles/themes/material/wijmo.theme.material.teal-deep_orange.css +1 -1
  651. package/styles/themes/material/wijmo.theme.material.teal-deep_orange.scss +1 -2
  652. package/styles/themes/material/wijmo.theme.material.teal-deep_purple.css +1 -1
  653. package/styles/themes/material/wijmo.theme.material.teal-deep_purple.scss +1 -2
  654. package/styles/themes/material/wijmo.theme.material.teal-green.css +1 -1
  655. package/styles/themes/material/wijmo.theme.material.teal-green.scss +1 -2
  656. package/styles/themes/material/wijmo.theme.material.teal-indigo.css +1 -1
  657. package/styles/themes/material/wijmo.theme.material.teal-indigo.scss +1 -2
  658. package/styles/themes/material/wijmo.theme.material.teal-light_blue.css +1 -1
  659. package/styles/themes/material/wijmo.theme.material.teal-light_blue.scss +1 -2
  660. package/styles/themes/material/wijmo.theme.material.teal-light_green.css +1 -1
  661. package/styles/themes/material/wijmo.theme.material.teal-light_green.scss +1 -2
  662. package/styles/themes/material/wijmo.theme.material.teal-lime.css +1 -1
  663. package/styles/themes/material/wijmo.theme.material.teal-lime.scss +1 -2
  664. package/styles/themes/material/wijmo.theme.material.teal-orange.css +1 -1
  665. package/styles/themes/material/wijmo.theme.material.teal-orange.scss +1 -2
  666. package/styles/themes/material/wijmo.theme.material.teal-pink.css +1 -1
  667. package/styles/themes/material/wijmo.theme.material.teal-pink.scss +1 -2
  668. package/styles/themes/material/wijmo.theme.material.teal-purple.css +1 -1
  669. package/styles/themes/material/wijmo.theme.material.teal-purple.scss +1 -2
  670. package/styles/themes/material/wijmo.theme.material.teal-red.css +1 -1
  671. package/styles/themes/material/wijmo.theme.material.teal-red.scss +1 -2
  672. package/styles/themes/material/wijmo.theme.material.teal-yellow.css +1 -1
  673. package/styles/themes/material/wijmo.theme.material.teal-yellow.scss +1 -2
  674. package/styles/themes/material/wijmo.theme.material.yellow-amber.css +1 -1
  675. package/styles/themes/material/wijmo.theme.material.yellow-amber.scss +1 -2
  676. package/styles/themes/material/wijmo.theme.material.yellow-blue.css +1 -1
  677. package/styles/themes/material/wijmo.theme.material.yellow-blue.scss +1 -2
  678. package/styles/themes/material/wijmo.theme.material.yellow-cyan.css +1 -1
  679. package/styles/themes/material/wijmo.theme.material.yellow-cyan.scss +1 -2
  680. package/styles/themes/material/wijmo.theme.material.yellow-deep_orange.css +1 -1
  681. package/styles/themes/material/wijmo.theme.material.yellow-deep_orange.scss +1 -2
  682. package/styles/themes/material/wijmo.theme.material.yellow-deep_purple.css +1 -1
  683. package/styles/themes/material/wijmo.theme.material.yellow-deep_purple.scss +1 -2
  684. package/styles/themes/material/wijmo.theme.material.yellow-green.css +1 -1
  685. package/styles/themes/material/wijmo.theme.material.yellow-green.scss +1 -2
  686. package/styles/themes/material/wijmo.theme.material.yellow-indigo.css +1 -1
  687. package/styles/themes/material/wijmo.theme.material.yellow-indigo.scss +1 -2
  688. package/styles/themes/material/wijmo.theme.material.yellow-light_blue.css +1 -1
  689. package/styles/themes/material/wijmo.theme.material.yellow-light_blue.scss +1 -2
  690. package/styles/themes/material/wijmo.theme.material.yellow-light_green.css +1 -1
  691. package/styles/themes/material/wijmo.theme.material.yellow-light_green.scss +1 -2
  692. package/styles/themes/material/wijmo.theme.material.yellow-lime.css +1 -1
  693. package/styles/themes/material/wijmo.theme.material.yellow-lime.scss +1 -2
  694. package/styles/themes/material/wijmo.theme.material.yellow-orange.css +1 -1
  695. package/styles/themes/material/wijmo.theme.material.yellow-orange.scss +1 -2
  696. package/styles/themes/material/wijmo.theme.material.yellow-pink.css +1 -1
  697. package/styles/themes/material/wijmo.theme.material.yellow-pink.scss +1 -2
  698. package/styles/themes/material/wijmo.theme.material.yellow-purple.css +1 -1
  699. package/styles/themes/material/wijmo.theme.material.yellow-purple.scss +1 -2
  700. package/styles/themes/material/wijmo.theme.material.yellow-red.css +1 -1
  701. package/styles/themes/material/wijmo.theme.material.yellow-red.scss +1 -2
  702. package/styles/themes/material/wijmo.theme.material.yellow-teal.css +1 -1
  703. package/styles/themes/material/wijmo.theme.material.yellow-teal.scss +1 -2
  704. package/styles/themes/wijmo.theme.cerulean.css +1 -1
  705. package/styles/themes/wijmo.theme.cerulean.scss +1 -2
  706. package/styles/themes/wijmo.theme.cleandark.css +1 -1
  707. package/styles/themes/wijmo.theme.cleandark.scss +2 -3
  708. package/styles/themes/wijmo.theme.cleanlight.css +1 -1
  709. package/styles/themes/wijmo.theme.cleanlight.scss +3 -4
  710. package/styles/themes/wijmo.theme.cocoa.css +1 -1
  711. package/styles/themes/wijmo.theme.cocoa.scss +1 -2
  712. package/styles/themes/wijmo.theme.coral.css +1 -1
  713. package/styles/themes/wijmo.theme.coral.scss +1 -2
  714. package/styles/themes/wijmo.theme.cyborg.css +1 -1
  715. package/styles/themes/wijmo.theme.cyborg.scss +1 -2
  716. package/styles/themes/wijmo.theme.dark.css +1 -1
  717. package/styles/themes/wijmo.theme.dark.scss +1 -2
  718. package/styles/themes/wijmo.theme.darkly.css +1 -1
  719. package/styles/themes/wijmo.theme.darkly.scss +1 -1
  720. package/styles/themes/wijmo.theme.flatly.css +1 -1
  721. package/styles/themes/wijmo.theme.flatly.scss +2 -3
  722. package/styles/themes/wijmo.theme.grayscale.css +1 -1
  723. package/styles/themes/wijmo.theme.grayscale.scss +1 -1
  724. package/styles/themes/wijmo.theme.highcontrast.css +1 -1
  725. package/styles/themes/wijmo.theme.highcontrast.scss +9 -9
  726. package/styles/themes/wijmo.theme.light.css +1 -1
  727. package/styles/themes/wijmo.theme.light.scss +1 -1
  728. package/styles/themes/wijmo.theme.material.amber-indigo.css +1 -1
  729. package/styles/themes/wijmo.theme.material.amber-indigo.scss +1 -2
  730. package/styles/themes/wijmo.theme.material.css +1 -1
  731. package/styles/themes/wijmo.theme.material.indigo-orange.css +1 -1
  732. package/styles/themes/wijmo.theme.material.indigo-orange.scss +1 -1
  733. package/styles/themes/wijmo.theme.material.scss +33 -29
  734. package/styles/themes/wijmo.theme.material.vars.css +1 -1
  735. package/styles/themes/wijmo.theme.material.vars.scss +1 -1
  736. package/styles/themes/wijmo.theme.midnight.css +1 -1
  737. package/styles/themes/wijmo.theme.midnight.scss +1 -1
  738. package/styles/themes/wijmo.theme.minimal.css +1 -1
  739. package/styles/themes/wijmo.theme.minimal.scss +1 -1
  740. package/styles/themes/wijmo.theme.modern.css +1 -1
  741. package/styles/themes/wijmo.theme.modern.scss +1 -1
  742. package/styles/themes/wijmo.theme.office.css +1 -1
  743. package/styles/themes/wijmo.theme.office.scss +1 -1
  744. package/styles/themes/wijmo.theme.organic.css +1 -1
  745. package/styles/themes/wijmo.theme.organic.scss +2 -2
  746. package/styles/themes/wijmo.theme.paper.css +1 -1
  747. package/styles/themes/wijmo.theme.paper.scss +1 -1
  748. package/styles/themes/wijmo.theme.simplex.css +1 -1
  749. package/styles/themes/wijmo.theme.simplex.scss +1 -1
  750. package/styles/themes/wijmo.theme.slate.css +1 -1
  751. package/styles/themes/wijmo.theme.slate.scss +1 -1
  752. package/styles/themes/wijmo.theme.superhero.css +1 -1
  753. package/styles/themes/wijmo.theme.superhero.scss +1 -1
  754. package/styles/themes/wijmo.theme.trust.css +1 -1
  755. package/styles/themes/wijmo.theme.trust.scss +1 -1
  756. package/styles/themes/wijmo.theme.zen.css +1 -1
  757. package/styles/themes/wijmo.theme.zen.scss +1 -1
  758. package/styles/wijmo-core.css +1 -1
  759. package/styles/wijmo-core.scss +5 -5
  760. package/styles/wijmo.css +1 -1
  761. package/styles/wijmo.scss +1 -1
  762. package/wijmo.angular.base.d.ts +1 -1
  763. package/wijmo.angular.base.js +1 -1
  764. package/wijmo.angular.chart.analytics.d.ts +1 -1
  765. package/wijmo.angular.chart.analytics.js +1 -1
  766. package/wijmo.angular.chart.animation.d.ts +1 -1
  767. package/wijmo.angular.chart.animation.js +1 -1
  768. package/wijmo.angular.chart.annotation.d.ts +1 -1
  769. package/wijmo.angular.chart.annotation.js +1 -1
  770. package/wijmo.angular.chart.d.ts +1 -1
  771. package/wijmo.angular.chart.finance.analytics.d.ts +1 -1
  772. package/wijmo.angular.chart.finance.analytics.js +1 -1
  773. package/wijmo.angular.chart.finance.d.ts +1 -1
  774. package/wijmo.angular.chart.finance.js +1 -1
  775. package/wijmo.angular.chart.hierarchical.d.ts +1 -1
  776. package/wijmo.angular.chart.hierarchical.js +1 -1
  777. package/wijmo.angular.chart.interaction.d.ts +1 -1
  778. package/wijmo.angular.chart.interaction.js +1 -1
  779. package/wijmo.angular.chart.js +1 -1
  780. package/wijmo.angular.chart.radar.d.ts +1 -1
  781. package/wijmo.angular.chart.radar.js +1 -1
  782. package/wijmo.angular.core.d.ts +1 -1
  783. package/wijmo.angular.core.js +1 -1
  784. package/wijmo.angular.gauge.d.ts +1 -1
  785. package/wijmo.angular.gauge.js +1 -1
  786. package/wijmo.angular.grid.d.ts +1 -1
  787. package/wijmo.angular.grid.detail.d.ts +1 -1
  788. package/wijmo.angular.grid.detail.js +1 -1
  789. package/wijmo.angular.grid.filter.d.ts +1 -1
  790. package/wijmo.angular.grid.filter.js +1 -1
  791. package/wijmo.angular.grid.grouppanel.d.ts +1 -1
  792. package/wijmo.angular.grid.grouppanel.js +1 -1
  793. package/wijmo.angular.grid.js +1 -1
  794. package/wijmo.angular.grid.multirow.d.ts +1 -1
  795. package/wijmo.angular.grid.multirow.js +1 -1
  796. package/wijmo.angular.grid.sheet.d.ts +1 -1
  797. package/wijmo.angular.grid.sheet.js +1 -1
  798. package/wijmo.angular.input.d.ts +1 -1
  799. package/wijmo.angular.input.js +1 -1
  800. package/wijmo.angular.nav.d.ts +1 -1
  801. package/wijmo.angular.nav.js +1 -1
  802. package/wijmo.angular.olap.d.ts +1 -1
  803. package/wijmo.angular.olap.js +1 -1
  804. package/wijmo.angular.viewer.d.ts +1 -1
  805. package/wijmo.angular.viewer.js +1 -1
  806. package/wijmo.angular2.barcode.common.d.ts +30 -30
  807. package/wijmo.angular2.barcode.common.js +1 -1
  808. package/wijmo.angular2.barcode.composite.d.ts +28 -28
  809. package/wijmo.angular2.barcode.composite.js +1 -1
  810. package/wijmo.angular2.barcode.specialized.d.ts +24 -24
  811. package/wijmo.angular2.barcode.specialized.js +1 -1
  812. package/wijmo.angular2.chart.analytics.d.ts +26 -26
  813. package/wijmo.angular2.chart.analytics.js +1 -1
  814. package/wijmo.angular2.chart.animation.d.ts +26 -26
  815. package/wijmo.angular2.chart.animation.js +1 -1
  816. package/wijmo.angular2.chart.annotation.d.ts +45 -45
  817. package/wijmo.angular2.chart.annotation.js +1 -1
  818. package/wijmo.angular2.chart.d.ts +42 -42
  819. package/wijmo.angular2.chart.finance.analytics.d.ts +36 -36
  820. package/wijmo.angular2.chart.finance.analytics.js +1 -1
  821. package/wijmo.angular2.chart.finance.d.ts +26 -26
  822. package/wijmo.angular2.chart.finance.js +1 -1
  823. package/wijmo.angular2.chart.finance.metadata.json +1 -1
  824. package/wijmo.angular2.chart.hierarchical.d.ts +25 -25
  825. package/wijmo.angular2.chart.hierarchical.js +1 -1
  826. package/wijmo.angular2.chart.interaction.d.ts +28 -28
  827. package/wijmo.angular2.chart.interaction.js +1 -1
  828. package/wijmo.angular2.chart.js +1 -1
  829. package/wijmo.angular2.chart.map.d.ts +20 -20
  830. package/wijmo.angular2.chart.map.js +1 -1
  831. package/wijmo.angular2.chart.map.metadata.json +1 -1
  832. package/wijmo.angular2.chart.metadata.json +1 -1
  833. package/wijmo.angular2.chart.radar.d.ts +28 -28
  834. package/wijmo.angular2.chart.radar.js +1 -1
  835. package/wijmo.angular2.chart.radar.metadata.json +1 -1
  836. package/wijmo.angular2.core.d.ts +47 -47
  837. package/wijmo.angular2.core.js +2 -2
  838. package/wijmo.angular2.core.metadata.json +1 -1
  839. package/wijmo.angular2.directiveBase.d.ts +67 -68
  840. package/wijmo.angular2.directiveBase.js +2 -2
  841. package/wijmo.angular2.directiveBase.metadata.json +1 -1
  842. package/wijmo.angular2.gauge.d.ts +27 -27
  843. package/wijmo.angular2.gauge.js +1 -1
  844. package/wijmo.angular2.gauge.metadata.json +1 -1
  845. package/wijmo.angular2.grid.d.ts +45 -45
  846. package/wijmo.angular2.grid.detail.d.ts +39 -39
  847. package/wijmo.angular2.grid.detail.js +2 -2
  848. package/wijmo.angular2.grid.filter.d.ts +25 -25
  849. package/wijmo.angular2.grid.filter.js +1 -1
  850. package/wijmo.angular2.grid.grouppanel.d.ts +28 -28
  851. package/wijmo.angular2.grid.grouppanel.js +1 -1
  852. package/wijmo.angular2.grid.js +2 -2
  853. package/wijmo.angular2.grid.multirow.d.ts +24 -24
  854. package/wijmo.angular2.grid.multirow.js +1 -1
  855. package/wijmo.angular2.grid.multirow.metadata.json +1 -1
  856. package/wijmo.angular2.grid.search.d.ts +12 -12
  857. package/wijmo.angular2.grid.search.js +1 -1
  858. package/wijmo.angular2.grid.sheet.d.ts +22 -22
  859. package/wijmo.angular2.grid.sheet.js +1 -1
  860. package/wijmo.angular2.grid.sheet.metadata.json +1 -1
  861. package/wijmo.angular2.grid.transposed.d.ts +14 -14
  862. package/wijmo.angular2.grid.transposed.js +2 -2
  863. package/wijmo.angular2.grid.transposedmultirow.d.ts +12 -12
  864. package/wijmo.angular2.grid.transposedmultirow.js +1 -1
  865. package/wijmo.angular2.input.d.ts +97 -97
  866. package/wijmo.angular2.input.js +2 -2
  867. package/wijmo.angular2.input.metadata.json +1 -1
  868. package/wijmo.angular2.nav.d.ts +31 -31
  869. package/wijmo.angular2.nav.js +1 -1
  870. package/wijmo.angular2.nav.metadata.json +1 -1
  871. package/wijmo.angular2.olap.d.ts +27 -27
  872. package/wijmo.angular2.olap.js +1 -1
  873. package/wijmo.angular2.viewer.d.ts +25 -25
  874. package/wijmo.angular2.viewer.js +1 -1
  875. package/wijmo.angular2.viewer.metadata.json +1 -1
  876. package/wijmo.barcode.common.d.ts +36 -36
  877. package/wijmo.barcode.common.js +2 -2
  878. package/wijmo.barcode.composite.d.ts +18 -19
  879. package/wijmo.barcode.composite.js +2 -2
  880. package/wijmo.barcode.d.ts +19 -19
  881. package/wijmo.barcode.js +2 -2
  882. package/wijmo.barcode.specialized.d.ts +5 -6
  883. package/wijmo.barcode.specialized.js +2 -2
  884. package/wijmo.chart.analytics.d.ts +7 -8
  885. package/wijmo.chart.analytics.js +2 -2
  886. package/wijmo.chart.animation.d.ts +2 -2
  887. package/wijmo.chart.animation.js +2 -2
  888. package/wijmo.chart.annotation.d.ts +21 -21
  889. package/wijmo.chart.annotation.js +2 -2
  890. package/wijmo.chart.d.ts +442 -454
  891. package/wijmo.chart.finance.analytics.d.ts +10 -10
  892. package/wijmo.chart.finance.analytics.js +2 -2
  893. package/wijmo.chart.finance.d.ts +10 -10
  894. package/wijmo.chart.finance.js +2 -2
  895. package/wijmo.chart.hierarchical.d.ts +16 -19
  896. package/wijmo.chart.hierarchical.js +2 -2
  897. package/wijmo.chart.interaction.d.ts +37 -38
  898. package/wijmo.chart.interaction.js +2 -2
  899. package/wijmo.chart.js +2 -2
  900. package/wijmo.chart.map.d.ts +59 -60
  901. package/wijmo.chart.map.js +2 -2
  902. package/wijmo.chart.radar.d.ts +7 -8
  903. package/wijmo.chart.radar.js +2 -2
  904. package/wijmo.chart.render.d.ts +14 -14
  905. package/wijmo.chart.render.js +2 -2
  906. package/wijmo.chart.webgl.d.ts +3 -6
  907. package/wijmo.chart.webgl.js +2 -2
  908. package/wijmo.cloud.d.ts +1 -1
  909. package/wijmo.cloud.js +2 -2
  910. package/wijmo.d.ts +44 -44
  911. package/wijmo.gauge.d.ts +4 -4
  912. package/wijmo.gauge.js +2 -2
  913. package/wijmo.grid.cellmaker.d.ts +1 -1
  914. package/wijmo.grid.cellmaker.js +2 -2
  915. package/wijmo.grid.d.ts +104 -106
  916. package/wijmo.grid.detail.d.ts +5 -5
  917. package/wijmo.grid.detail.js +2 -2
  918. package/wijmo.grid.filter.d.ts +30 -30
  919. package/wijmo.grid.filter.js +2 -2
  920. package/wijmo.grid.grouppanel.d.ts +7 -7
  921. package/wijmo.grid.grouppanel.js +2 -2
  922. package/wijmo.grid.immutable.d.ts +2 -2
  923. package/wijmo.grid.immutable.js +2 -2
  924. package/wijmo.grid.js +2 -2
  925. package/wijmo.grid.multirow.d.ts +3 -3
  926. package/wijmo.grid.multirow.js +2 -2
  927. package/wijmo.grid.pdf.d.ts +243 -243
  928. package/wijmo.grid.pdf.js +2 -2
  929. package/wijmo.grid.search.d.ts +1 -1
  930. package/wijmo.grid.search.js +1 -1
  931. package/wijmo.grid.selector.d.ts +5 -6
  932. package/wijmo.grid.selector.js +2 -2
  933. package/wijmo.grid.sheet.d.ts +27 -28
  934. package/wijmo.grid.sheet.js +2 -2
  935. package/wijmo.grid.style.d.ts +19 -19
  936. package/wijmo.grid.style.js +1 -1
  937. package/wijmo.grid.transposed.d.ts +2 -2
  938. package/wijmo.grid.transposed.js +2 -2
  939. package/wijmo.grid.transposedmultirow.d.ts +2 -2
  940. package/wijmo.grid.transposedmultirow.js +1 -1
  941. package/wijmo.grid.xlsx.d.ts +1 -1
  942. package/wijmo.grid.xlsx.js +2 -2
  943. package/wijmo.input.d.ts +17 -17
  944. package/wijmo.input.js +2 -2
  945. package/wijmo.interop.grid.d.ts +5 -7
  946. package/wijmo.interop.grid.js +2 -2
  947. package/wijmo.js +2 -2
  948. package/wijmo.knockout.base.d.ts +1 -1
  949. package/wijmo.knockout.base.js +1 -1
  950. package/wijmo.knockout.chart.analytics.d.ts +1 -1
  951. package/wijmo.knockout.chart.analytics.js +1 -1
  952. package/wijmo.knockout.chart.animation.d.ts +1 -1
  953. package/wijmo.knockout.chart.animation.js +1 -1
  954. package/wijmo.knockout.chart.annotation.d.ts +1 -1
  955. package/wijmo.knockout.chart.annotation.js +1 -1
  956. package/wijmo.knockout.chart.d.ts +1 -1
  957. package/wijmo.knockout.chart.finance.analytics.d.ts +1 -1
  958. package/wijmo.knockout.chart.finance.analytics.js +1 -1
  959. package/wijmo.knockout.chart.finance.d.ts +1 -1
  960. package/wijmo.knockout.chart.finance.js +1 -1
  961. package/wijmo.knockout.chart.interaction.d.ts +1 -1
  962. package/wijmo.knockout.chart.interaction.js +1 -1
  963. package/wijmo.knockout.chart.js +1 -1
  964. package/wijmo.knockout.core.d.ts +1 -1
  965. package/wijmo.knockout.core.js +1 -1
  966. package/wijmo.knockout.gauge.d.ts +1 -1
  967. package/wijmo.knockout.gauge.js +1 -1
  968. package/wijmo.knockout.grid.d.ts +1 -1
  969. package/wijmo.knockout.grid.filter.d.ts +1 -1
  970. package/wijmo.knockout.grid.filter.js +1 -1
  971. package/wijmo.knockout.grid.grouppanel.d.ts +1 -1
  972. package/wijmo.knockout.grid.grouppanel.js +1 -1
  973. package/wijmo.knockout.grid.js +1 -1
  974. package/wijmo.knockout.grid.multirow.d.ts +1 -1
  975. package/wijmo.knockout.grid.multirow.js +1 -1
  976. package/wijmo.knockout.grid.sheet.d.ts +1 -1
  977. package/wijmo.knockout.grid.sheet.js +1 -1
  978. package/wijmo.knockout.input.d.ts +1 -1
  979. package/wijmo.knockout.input.js +1 -1
  980. package/wijmo.knockout.nav.d.ts +1 -1
  981. package/wijmo.knockout.nav.js +1 -1
  982. package/wijmo.knockout.olap.d.ts +1 -1
  983. package/wijmo.knockout.olap.js +1 -1
  984. package/wijmo.meta.d.ts +2 -2
  985. package/wijmo.meta.js +2 -2
  986. package/wijmo.nav.d.ts +8 -8
  987. package/wijmo.nav.js +2 -2
  988. package/wijmo.odata.d.ts +25 -27
  989. package/wijmo.odata.js +2 -2
  990. package/wijmo.olap.d.ts +10 -12
  991. package/wijmo.olap.js +2 -2
  992. package/wijmo.pdf.d.ts +1562 -1563
  993. package/wijmo.pdf.js +2 -2
  994. package/wijmo.pdf.security.d.ts +2 -2
  995. package/wijmo.pdf.security.js +2 -2
  996. package/wijmo.react.barcode.base.d.ts +1 -1
  997. package/wijmo.react.barcode.base.js +1 -1
  998. package/wijmo.react.barcode.common.d.ts +1 -1
  999. package/wijmo.react.barcode.common.js +1 -1
  1000. package/wijmo.react.barcode.composite.d.ts +1 -1
  1001. package/wijmo.react.barcode.composite.js +1 -1
  1002. package/wijmo.react.barcode.specialized.d.ts +1 -1
  1003. package/wijmo.react.barcode.specialized.js +1 -1
  1004. package/wijmo.react.base.d.ts +50 -50
  1005. package/wijmo.react.base.js +1 -1
  1006. package/wijmo.react.chart.analytics.d.ts +1 -1
  1007. package/wijmo.react.chart.analytics.js +1 -1
  1008. package/wijmo.react.chart.animation.d.ts +1 -1
  1009. package/wijmo.react.chart.animation.js +1 -1
  1010. package/wijmo.react.chart.annotation.d.ts +18 -18
  1011. package/wijmo.react.chart.annotation.js +1 -1
  1012. package/wijmo.react.chart.d.ts +4 -4
  1013. package/wijmo.react.chart.finance.analytics.d.ts +1 -1
  1014. package/wijmo.react.chart.finance.analytics.js +1 -1
  1015. package/wijmo.react.chart.finance.d.ts +1 -1
  1016. package/wijmo.react.chart.finance.js +1 -1
  1017. package/wijmo.react.chart.hierarchical.d.ts +1 -1
  1018. package/wijmo.react.chart.hierarchical.js +1 -1
  1019. package/wijmo.react.chart.interaction.d.ts +2 -2
  1020. package/wijmo.react.chart.interaction.js +1 -1
  1021. package/wijmo.react.chart.js +1 -1
  1022. package/wijmo.react.chart.map.d.ts +1 -1
  1023. package/wijmo.react.chart.map.js +1 -1
  1024. package/wijmo.react.chart.radar.d.ts +1 -1
  1025. package/wijmo.react.chart.radar.js +1 -1
  1026. package/wijmo.react.gauge.d.ts +1 -1
  1027. package/wijmo.react.gauge.js +1 -1
  1028. package/wijmo.react.grid.d.ts +5 -5
  1029. package/wijmo.react.grid.detail.d.ts +2 -3
  1030. package/wijmo.react.grid.detail.js +2 -2
  1031. package/wijmo.react.grid.filter.d.ts +1 -1
  1032. package/wijmo.react.grid.filter.js +1 -1
  1033. package/wijmo.react.grid.grouppanel.d.ts +1 -1
  1034. package/wijmo.react.grid.grouppanel.js +1 -1
  1035. package/wijmo.react.grid.immutable.d.ts +1 -1
  1036. package/wijmo.react.grid.immutable.js +1 -1
  1037. package/wijmo.react.grid.js +2 -2
  1038. package/wijmo.react.grid.multirow.d.ts +1 -1
  1039. package/wijmo.react.grid.multirow.js +1 -1
  1040. package/wijmo.react.grid.search.d.ts +1 -1
  1041. package/wijmo.react.grid.search.js +1 -1
  1042. package/wijmo.react.grid.sheet.d.ts +1 -1
  1043. package/wijmo.react.grid.sheet.js +1 -1
  1044. package/wijmo.react.grid.transposed.d.ts +1 -1
  1045. package/wijmo.react.grid.transposed.js +1 -1
  1046. package/wijmo.react.grid.transposedmultirow.d.ts +1 -1
  1047. package/wijmo.react.grid.transposedmultirow.js +1 -1
  1048. package/wijmo.react.input.d.ts +2 -3
  1049. package/wijmo.react.input.js +2 -2
  1050. package/wijmo.react.nav.d.ts +3 -3
  1051. package/wijmo.react.nav.js +1 -1
  1052. package/wijmo.react.olap.d.ts +1 -1
  1053. package/wijmo.react.olap.js +1 -1
  1054. package/wijmo.react.viewer.d.ts +1 -1
  1055. package/wijmo.react.viewer.js +1 -1
  1056. package/wijmo.rest.d.ts +28 -28
  1057. package/wijmo.rest.js +2 -2
  1058. package/wijmo.touch.d.ts +1 -2
  1059. package/wijmo.touch.js +2 -2
  1060. package/wijmo.undo.d.ts +4 -4
  1061. package/wijmo.undo.js +2 -2
  1062. package/wijmo.viewer.d.ts +388 -407
  1063. package/wijmo.viewer.js +2 -2
  1064. package/wijmo.vue2.barcode.common.d.ts +1 -1
  1065. package/wijmo.vue2.barcode.common.js +1 -1
  1066. package/wijmo.vue2.barcode.composite.d.ts +1 -1
  1067. package/wijmo.vue2.barcode.composite.js +1 -1
  1068. package/wijmo.vue2.barcode.specialized.d.ts +1 -1
  1069. package/wijmo.vue2.barcode.specialized.js +1 -1
  1070. package/wijmo.vue2.base.d.ts +1 -2
  1071. package/wijmo.vue2.base.js +2 -2
  1072. package/wijmo.vue2.chart.analytics.d.ts +1 -1
  1073. package/wijmo.vue2.chart.analytics.js +1 -1
  1074. package/wijmo.vue2.chart.animation.d.ts +1 -1
  1075. package/wijmo.vue2.chart.animation.js +1 -1
  1076. package/wijmo.vue2.chart.annotation.d.ts +1 -1
  1077. package/wijmo.vue2.chart.annotation.js +1 -1
  1078. package/wijmo.vue2.chart.d.ts +1 -1
  1079. package/wijmo.vue2.chart.finance.analytics.d.ts +1 -1
  1080. package/wijmo.vue2.chart.finance.analytics.js +1 -1
  1081. package/wijmo.vue2.chart.finance.d.ts +1 -1
  1082. package/wijmo.vue2.chart.finance.js +1 -1
  1083. package/wijmo.vue2.chart.hierarchical.d.ts +1 -1
  1084. package/wijmo.vue2.chart.hierarchical.js +1 -1
  1085. package/wijmo.vue2.chart.interaction.d.ts +1 -1
  1086. package/wijmo.vue2.chart.interaction.js +1 -1
  1087. package/wijmo.vue2.chart.js +1 -1
  1088. package/wijmo.vue2.chart.map.d.ts +1 -1
  1089. package/wijmo.vue2.chart.map.js +1 -1
  1090. package/wijmo.vue2.chart.radar.d.ts +1 -1
  1091. package/wijmo.vue2.chart.radar.js +1 -1
  1092. package/wijmo.vue2.core.d.ts +33 -33
  1093. package/wijmo.vue2.core.js +1 -1
  1094. package/wijmo.vue2.gauge.d.ts +1 -1
  1095. package/wijmo.vue2.gauge.js +1 -1
  1096. package/wijmo.vue2.grid.d.ts +280 -280
  1097. package/wijmo.vue2.grid.detail.d.ts +1 -1
  1098. package/wijmo.vue2.grid.detail.js +1 -1
  1099. package/wijmo.vue2.grid.filter.d.ts +1 -1
  1100. package/wijmo.vue2.grid.filter.js +1 -1
  1101. package/wijmo.vue2.grid.grouppanel.d.ts +1 -1
  1102. package/wijmo.vue2.grid.grouppanel.js +1 -1
  1103. package/wijmo.vue2.grid.js +2 -2
  1104. package/wijmo.vue2.grid.multirow.d.ts +245 -245
  1105. package/wijmo.vue2.grid.multirow.js +1 -1
  1106. package/wijmo.vue2.grid.search.d.ts +1 -1
  1107. package/wijmo.vue2.grid.search.js +1 -1
  1108. package/wijmo.vue2.grid.sheet.d.ts +1 -1
  1109. package/wijmo.vue2.grid.sheet.js +1 -1
  1110. package/wijmo.vue2.grid.transposed.d.ts +1 -1
  1111. package/wijmo.vue2.grid.transposed.js +1 -1
  1112. package/wijmo.vue2.grid.transposedmultirow.d.ts +1 -1
  1113. package/wijmo.vue2.grid.transposedmultirow.js +1 -1
  1114. package/wijmo.vue2.input.d.ts +1 -1
  1115. package/wijmo.vue2.input.js +1 -1
  1116. package/wijmo.vue2.nav.d.ts +1 -1
  1117. package/wijmo.vue2.nav.js +1 -1
  1118. package/wijmo.vue2.olap.d.ts +1 -1
  1119. package/wijmo.vue2.olap.js +1 -1
  1120. package/wijmo.vue2.viewer.d.ts +1 -1
  1121. package/wijmo.vue2.viewer.js +1 -1
  1122. package/wijmo.webcomponents.barcode.common.d.ts +1 -1
  1123. package/wijmo.webcomponents.barcode.common.js +1 -1
  1124. package/wijmo.webcomponents.barcode.composite.d.ts +1 -1
  1125. package/wijmo.webcomponents.barcode.composite.js +1 -1
  1126. package/wijmo.webcomponents.barcode.specialized.d.ts +1 -1
  1127. package/wijmo.webcomponents.barcode.specialized.js +1 -1
  1128. package/wijmo.webcomponents.base.d.ts +1 -1
  1129. package/wijmo.webcomponents.base.js +1 -1
  1130. package/wijmo.webcomponents.chart.analytics.d.ts +1 -1
  1131. package/wijmo.webcomponents.chart.analytics.js +1 -1
  1132. package/wijmo.webcomponents.chart.animation.d.ts +1 -1
  1133. package/wijmo.webcomponents.chart.animation.js +1 -1
  1134. package/wijmo.webcomponents.chart.d.ts +1 -1
  1135. package/wijmo.webcomponents.chart.finance.analytics.d.ts +1 -1
  1136. package/wijmo.webcomponents.chart.finance.analytics.js +1 -1
  1137. package/wijmo.webcomponents.chart.finance.d.ts +1 -1
  1138. package/wijmo.webcomponents.chart.finance.js +1 -1
  1139. package/wijmo.webcomponents.chart.hierarchical.d.ts +1 -1
  1140. package/wijmo.webcomponents.chart.hierarchical.js +1 -1
  1141. package/wijmo.webcomponents.chart.interaction.d.ts +1 -1
  1142. package/wijmo.webcomponents.chart.interaction.js +1 -1
  1143. package/wijmo.webcomponents.chart.js +1 -1
  1144. package/wijmo.webcomponents.chart.map.d.ts +1 -1
  1145. package/wijmo.webcomponents.chart.map.js +1 -1
  1146. package/wijmo.webcomponents.chart.radar.d.ts +1 -1
  1147. package/wijmo.webcomponents.chart.radar.js +1 -1
  1148. package/wijmo.webcomponents.gauge.d.ts +1 -1
  1149. package/wijmo.webcomponents.gauge.js +1 -1
  1150. package/wijmo.webcomponents.grid.d.ts +1 -1
  1151. package/wijmo.webcomponents.grid.filter.d.ts +1 -1
  1152. package/wijmo.webcomponents.grid.filter.js +1 -1
  1153. package/wijmo.webcomponents.grid.grouppanel.d.ts +1 -1
  1154. package/wijmo.webcomponents.grid.grouppanel.js +1 -1
  1155. package/wijmo.webcomponents.grid.js +1 -1
  1156. package/wijmo.webcomponents.grid.multirow.d.ts +1 -1
  1157. package/wijmo.webcomponents.grid.multirow.js +1 -1
  1158. package/wijmo.webcomponents.grid.search.d.ts +1 -1
  1159. package/wijmo.webcomponents.grid.search.js +1 -1
  1160. package/wijmo.webcomponents.grid.sheet.d.ts +1 -1
  1161. package/wijmo.webcomponents.grid.sheet.js +1 -1
  1162. package/wijmo.webcomponents.grid.transposed.d.ts +1 -1
  1163. package/wijmo.webcomponents.grid.transposed.js +1 -1
  1164. package/wijmo.webcomponents.grid.transposedmultirow.d.ts +1 -1
  1165. package/wijmo.webcomponents.grid.transposedmultirow.js +1 -1
  1166. package/wijmo.webcomponents.input.d.ts +1 -1
  1167. package/wijmo.webcomponents.input.js +1 -1
  1168. package/wijmo.webcomponents.nav.d.ts +1 -1
  1169. package/wijmo.webcomponents.nav.js +1 -1
  1170. package/wijmo.webcomponents.olap.d.ts +1 -1
  1171. package/wijmo.webcomponents.olap.js +1 -1
  1172. package/wijmo.webcomponents.viewer.d.ts +1 -1
  1173. package/wijmo.webcomponents.viewer.js +1 -1
  1174. package/wijmo.xlsx.d.ts +4704 -4711
  1175. package/wijmo.xlsx.js +2 -2
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -14,7 +14,7 @@
14
14
  * {@module wijmo.chart.render}
15
15
  * Provides various render engines to render flex-chart.
16
16
  * Add this module on page to support chart export in IE browsers.
17
- */
17
+ */
18
18
  /**
19
19
  *
20
20
  */
@@ -50,20 +50,20 @@ export declare class _CanvasRenderEngine implements IRenderEngine {
50
50
  cssPriority: boolean;
51
51
  readOnly: boolean;
52
52
  addClipRect(clipRect: Rect, id: string): void;
53
- drawEllipse(cx: number, cy: number, rx: number, ry: number, className?: string, style?: any): any;
54
- drawRect(x: number, y: number, w: number, h: number, className?: string, style?: any, clipPath?: string): any;
55
- drawLine(x1: number, y1: number, x2: number, y2: number, className?: string, style?: any): any;
56
- drawLines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string, num?: number): any;
57
- drawSplines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string, num?: number): any;
58
- drawPolygon(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): any;
59
- drawPieSegment(cx: number, cy: number, r: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): any;
60
- drawDonutSegment(cx: number, cy: number, radius: number, innerRadius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): any;
61
- drawString(s: string, pt: Point, className?: string, style?: any): any;
62
- drawStringRotated(s: string, pt: Point, center: Point, angle: number, className?: string, style?: any): any;
53
+ drawEllipse(cx: number, cy: number, rx: number, ry: number, className?: string, style?: any): SVGElement;
54
+ drawRect(x: number, y: number, w: number, h: number, className?: string, style?: any, clipPath?: string): SVGElement;
55
+ drawLine(x1: number, y1: number, x2: number, y2: number, className?: string, style?: any): SVGElement;
56
+ drawLines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string, num?: number): SVGElement;
57
+ drawSplines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string, num?: number): SVGElement;
58
+ drawPolygon(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): SVGElement;
59
+ drawPieSegment(cx: number, cy: number, r: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): SVGElement;
60
+ drawDonutSegment(cx: number, cy: number, radius: number, innerRadius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): SVGElement;
61
+ drawString(s: string, pt: Point, className?: string, style?: any): SVGElement;
62
+ drawStringRotated(s: string, pt: Point, center: Point, angle: number, className?: string, style?: any): SVGElement;
63
63
  measureString(s: string, className?: string, groupName?: string, style?: any): Size;
64
- startGroup(className?: string, clipPath?: string, createTransform?: boolean): any;
64
+ startGroup(className?: string, clipPath?: string, createTransform?: boolean): SVGElement;
65
65
  endGroup(): void;
66
- drawImage(imageHref: string, x: number, y: number, w: number, h: number): any;
66
+ drawImage(imageHref: string, x: number, y: number, w: number, h: number): SVGElement;
67
67
  private _applyCanvasClip;
68
68
  private _getOpacityColor;
69
69
  private _applyCanvasStyles;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -11,4 +11,4 @@
11
11
  *
12
12
  */
13
13
 
14
- "use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),wijmo_chart_1=require("wijmo/wijmo.chart"),selfModule=__importStar(require("wijmo/wijmo.chart.render")),_CanvasRenderEngine=function(){function _CanvasRenderEngine(e,t){void 0===t&&(t=!1);this._strokeWidth=1;this._fontSize=null;this._fontFamily=null;this._cssPriority=!0;this._readOnly=!1;this._applyCanvasClip=function(e,t){var n=this._canvasRect[t];if(n){e.beginPath();e.rect(n.left,n.top,n.width,n.height);e.clip();e.closePath()}};this._applyCanvasStyles=function(e,t,n,i,a){var r,s,o,l=this._canvas.getContext("2d"),h=this.stroke,p=this.fill,_=this.strokeWidth;t&&void 0!==t.stroke&&(h=t.stroke);t&&void 0!==t.fill&&(p=this._getOpacityColor(t.fill,t["fill-opacity"]));if(e){s=window.getComputedStyle(e);o=e.getBBox()}if(a){if(s){l.fillStyle=s.fill;r=s.fontStyle+" "+s.fontWeight+" "+s.fontSize+" "+s.fontFamily;l.font=r}else if(this.fontSize){l.fillStyle=this.textFill;l.font=this.fontSize+" "+(this.fontFamily||"sans-serif")}else if(this._canvasDefaultFont){l.fillStyle=this._canvasDefaultFont.textFill;r=this._canvasDefaultFont.fontSize+" "+this._canvasDefaultFont.fontFamily;l.font=r;if(l.font.replace(/\"/g,"'")!==r.replace(/\"/g,"'")){r=this._canvasDefaultFont.fontSize+" "+(l.font.split(" ")[1]||"sans-serif");l.font=r}}}else{if(s){h=s.stroke&&"none"!==s.stroke?s.stroke:h;p=s.fill&&"none"!==s.fill?this._getOpacityColor(s.fill,s["fill-opacity"]):p;_=s.strokeWidth?s.strokeWidth:_}if("none"!==h&&null!=h){this._applyColor("strokeStyle",h,o);l.lineWidth=+_.replace(/px/g,"");l.stroke()}if(i&&null!=p&&"transparent"!==p&&"none"!==p){this._applyColor("fillStyle",p,o);l.fill()}}};this._element=e;this._canvas=document.createElement("canvas");this._svgEngine=new wijmo_chart_1._SvgRenderEngine(e);this._element.appendChild(this._canvas);this._applyCSSStyles=t}_CanvasRenderEngine.prototype.beginRender=function(){var e,t=this._svgEngine.element,n=this._element;if(this._applyCSSStyles){this._svgEngine.beginRender();n=t}this._element.appendChild(t);this._canvasRect={};e=window.getComputedStyle(n);this._canvasDefaultFont={fontSize:e.fontSize,fontFamily:e.fontFamily,textFill:e.color}};_CanvasRenderEngine.prototype.endRender=function(){this._applyCSSStyles&&this._svgEngine.endRender();this._svgEngine.element.parentNode.removeChild(this._svgEngine.element)};_CanvasRenderEngine.prototype.setViewportSize=function(e,t){var n=this._canvas;n.getContext("2d"),this.fill;this._applyCSSStyles&&this._svgEngine.setViewportSize(e,t);n.width=e;n.height=t};Object.defineProperty(_CanvasRenderEngine.prototype,"element",{get:function(){return this._canvas},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"fill",{get:function(){return this._fill},set:function(e){this._svgEngine.fill=e;this._fill=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._svgEngine.fontSize=e;var t=null==e||isNaN(e)?e:e+"px";this._fontSize=t},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this._svgEngine.fontFamily=e;this._fontFamily=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._svgEngine.stroke=e;this._stroke=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._svgEngine.strokeWidth=e;this._strokeWidth=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"textFill",{get:function(){return this._textFill},set:function(e){this._svgEngine.textFill=e;this._textFill=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"cssPriority",{get:function(){return this._cssPriority},set:function(e){this._svgEngine.cssPriority=e;this._cssPriority=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"readOnly",{get:function(){return this._readOnly},set:function(e){this._readOnly=e},enumerable:!0,configurable:!0});_CanvasRenderEngine.prototype.addClipRect=function(e,t){if(e&&t){this._applyCSSStyles&&this._svgEngine.addClipRect(e,t);this._canvasRect[t]=e.clone()}};_CanvasRenderEngine.prototype.drawEllipse=function(e,t,n,i,a,r){if(!this.readOnly){var s,o=this._canvas.getContext("2d");this._applyCSSStyles&&(s=this._svgEngine.drawEllipse(e,t,n,i,a,r));o.save();o.beginPath();if(o.ellipse)o.ellipse(e,t,n,i,0,0,2*Math.PI);else{o.translate(e,t);o.scale(1,i/n);o.translate(-e,-t);o.arc(e,t,n,0,2*Math.PI);o.scale(1,1)}this._applyCanvasStyles(s,r,a,!0);o.restore();return s}};_CanvasRenderEngine.prototype.drawRect=function(e,t,n,i,a,r,s){if(!this.readOnly){var o,l=this._canvas.getContext("2d");this._applyCSSStyles&&(o=this._svgEngine.drawRect(e,t,n,i,a,r,s));l.save();this._applyCanvasClip(l,s);l.beginPath();l.rect(e,t,n,i);this._applyCanvasStyles(o,r,a,!0);l.restore();return o}};_CanvasRenderEngine.prototype.drawLine=function(e,t,n,i,a,r){if(!this.readOnly){var s,o=this._canvas.getContext("2d");this._applyCSSStyles&&(s=this._svgEngine.drawLine(e,t,n,i,a,r));o.save();o.beginPath();o.moveTo(e,t);o.lineTo(n,i);this._applyCanvasStyles(s,r,a);o.restore();return s}};_CanvasRenderEngine.prototype.drawLines=function(e,t,n,i,a,r){if(e&&t&&0!==e.length&&0!==t.length&&!this.readOnly){var s,o,l=this._canvas.getContext("2d"),h=r||Math.min(e.length,t.length);this._applyCSSStyles&&(s=this._svgEngine.drawLines([0,1],[1,0],n,i,a));l.save();this._applyCanvasClip(l,a);l.beginPath();l.moveTo(e[0],t[0]);for(o=1;o<h;o++)l.lineTo(e[o],t[o]);this._applyCanvasStyles(s,i,n);l.restore();return s}};_CanvasRenderEngine.prototype.drawSplines=function(e,t,n,i,a,r){if(e&&t&&0!==e.length&&0!==t.length&&!this.readOnly){var s,o,l=this._canvas.getContext("2d"),h=new wijmo_chart_1._Spline(e,t,r).calculate(),p=h.xs,_=h.ys,f=Math.min(p.length,_.length);this._applyCSSStyles&&(s=this._svgEngine.drawSplines([0,1],[1,0],n,i,a));l.save();this._applyCanvasClip(l,a);l.beginPath();l.moveTo(p[0],_[0]);for(o=1;o<f;o++)l.lineTo(p[o],_[o]);this._applyCanvasStyles(s,i,n);l.restore();return s}};_CanvasRenderEngine.prototype.drawPolygon=function(e,t,n,i,a){if(e&&t&&0!==e.length&&0!==t.length&&!this.readOnly){var r,s,o=this._canvas.getContext("2d"),l=Math.min(e.length,t.length);this._applyCSSStyles&&(r=this._svgEngine.drawPolygon(e,t,n,i,a));o.save();this._applyCanvasClip(o,a);o.beginPath();o.moveTo(e[0],t[0]);for(s=1;s<l;s++)o.lineTo(e[s],t[s]);o.closePath();this._applyCanvasStyles(r,i,n,!0);o.restore();return r}};_CanvasRenderEngine.prototype.drawPieSegment=function(e,t,n,i,a,r,s,o){if(!this.readOnly){var l,h=this._canvas.getContext("2d"),p=i,_=i+a;this._applyCSSStyles&&(l=this._svgEngine.drawPieSegment(e,t,n,i,a,r,s,o));h.save();this._applyCanvasClip(h,o);h.beginPath();h.moveTo(e,t);h.arc(e,t,n,p,_,!1);h.lineTo(e,t);this._applyCanvasStyles(l,s,r,!0);h.restore();return l}};_CanvasRenderEngine.prototype.drawDonutSegment=function(e,t,n,i,a,r,s,o,l){if(!this.readOnly){var h,p,_,f=this._canvas.getContext("2d"),g=a,y=a+r;this._applyCSSStyles&&(h=this._svgEngine.drawDonutSegment(e,t,n,i,a,r,s,o,l));(p=new wijmo_1.Point(e,t)).x+=i*Math.cos(g);p.y+=i*Math.sin(g);(_=new wijmo_1.Point(e,t)).x+=i*Math.cos(y);_.y+=i*Math.sin(y);f.save();this._applyCanvasClip(f,l);f.beginPath();f.moveTo(p.x,p.y);f.arc(e,t,n,g,y,!1);f.lineTo(_.x,_.y);f.arc(e,t,i,y,g,!0);this._applyCanvasStyles(h,o,s,!0);f.restore();return h}};_CanvasRenderEngine.prototype.drawString=function(e,t,n,i){if(!this.readOnly){var a,r=this._canvas.getContext("2d");this._applyCSSStyles&&(a=this._svgEngine.drawString(e,t,n,i));r.save();r.textBaseline="bottom";this._applyCanvasStyles(a,i,n,!0,!0);r.fillText(e,t.x,t.y);r.restore();return a}};_CanvasRenderEngine.prototype.drawStringRotated=function(e,t,n,i,a,r){if(!this.readOnly){var s,o=this._canvas.getContext("2d");o.measureText(e);this._applyCSSStyles&&(s=this._svgEngine.drawStringRotated(e,t,n,i,a,r));o.save();o.textBaseline="bottom";o.translate(n.x,n.y);o.rotate(Math.PI/180*i);o.translate(-n.x,-n.y);this._applyCanvasStyles(s,r,a,!0,!0);o.fillText(e,t.x,t.y);o.restore();return s}};_CanvasRenderEngine.prototype.measureString=function(e,t,n,i){var a,r=r=this._canvas.getContext("2d");if(this._applyCSSStyles)return this._svgEngine.measureString(e,t,n,i);this._applyCanvasStyles(null,null,t,!0,!0);a=r.measureText(e).width;return new wijmo_1.Size(a,1.5*parseInt(r.font))};_CanvasRenderEngine.prototype.startGroup=function(e,t,n){void 0===n&&(n=!1);var i,a=this._canvas.getContext("2d");this._applyCSSStyles&&(i=this._svgEngine.startGroup(e,t,n));a.save();this._applyCanvasClip(a,t);return i};_CanvasRenderEngine.prototype.endGroup=function(){this._applyCSSStyles&&this._svgEngine.endGroup();this._canvas.getContext("2d").restore()};_CanvasRenderEngine.prototype.drawImage=function(e,t,n,i,a){if(!this.readOnly){var r,s=this._canvas.getContext("2d"),o=new Image;this._applyCSSStyles&&(r=this._svgEngine.drawImage(e,t,n,i,a));o.onload=function(){s.drawImage(o,t,n,i,a)};o.src=e;return r}};_CanvasRenderEngine.prototype._getOpacityColor=function(e,t){var n=new wijmo_1.Color(e);if(e.indexOf("url")>-1)return this.fill;if(e.indexOf("-")>-1){this.fill=e;return e}null!=t&&1===n.a&&(n.a=isNaN(t)?1:Number(t));return n.toString()};_CanvasRenderEngine.prototype._applyColor=function(e,t,n){var i=_GradientColorUtil.tryParse(t),a=this._canvas.getContext("2d");if(null!=i)if(wijmo_1.isString(i)||null==n)a[e]=i;else{var r;if(null!=i.x1)r=i.relative?a.createLinearGradient(n.x+i.x1*n.width,n.y+i.y1*n.height,n.x+i.x2*n.width,n.y+i.y2*n.height):a.createLinearGradient(i.x1,i.y1,i.x2,i.y2);else if(null!=i.r)if(i.relative){var s=n.x+i.cx*n.width,o=n.y+i.cy*n.height,l=i.r*n.width,h=i.r*n.height/l,p=n.x+(null==i.fx?i.cx:i.fx)*n.width,_=n.y+(null==i.fy?i.cy:i.fy)*n.height,f=(null==i.fr?0:i.fr)*n.width,g=(null==i.fr?0:i.fr)*n.height,y=Math.min(f,g);r=a.createRadialGradient(p,_/h,y,s,o/h,l);a.setTransform(1,0,0,h,0,0)}else r=a.createRadialGradient(null==i.fx?i.cx:i.fx,null==i.fy?i.cy:i.fy,i.fr||0,i.cx,i.cy,i.r);i.colors&&i.colors.length>0&&null!=r&&i.colors.forEach((function(e){var t=new wijmo_1.Color("#000000");null!=e.color&&(t=e.color);null!=e.opacity&&(t.a=e.opacity);r.addColorStop(e.offset,t.toString())}));a[e]=r}};return _CanvasRenderEngine}();exports._CanvasRenderEngine=_CanvasRenderEngine;var _GradientColorUtil=function(){function _GradientColorUtil(){}_GradientColorUtil.tryParse=function(e){if(_GradientColorUtil.parsedColor[e])return _GradientColorUtil.parsedColor[e];if(null==e||-1===e.indexOf("-"))return e;var t,n=e.replace(/\s+/g,"").split(/\-/g),i=n[0][0],a=!1,r=n[0].match(/\(\S+\)/)[0].replace(/[\(\\)]/g,"").split(/\,/g);if("l"===i||"L"===i){t={x1:"0",y1:"0",x2:"0",y2:"0",colors:[]};"l"===i&&(a=!0);["x1","y1","x2","y2"].forEach((function(e,n){null!=r[n]&&(t[e]=+r[n])}))}else if("r"===i||"R"===i){t={cx:"0",cy:"0",r:"0",colors:[]};"r"===i&&(a=!0);["cx","cy","r","fx","fy","fr"].forEach((function(e,n){null!=r[n]&&""!==r[n]&&(t[e]=+r[n])}))}t.relative=a;_GradientColorUtil.parsedColor[e]=t;var s=n.length-1;n.forEach((function(e,n){e.indexOf(")")>-1&&(e=e.match(/\)\S+/)[0].replace(")",""));var i=e.split(":"),a={color:new wijmo_1.Color("#000000")};null!=i[0]&&(a.color=wijmo_1.Color.fromString(i[0]));null!=i[1]?a.offset=+i[1]:a.offset=n/s;null!=i[2]&&(a.opacity=+i[2]);t.colors.push(a)}));return t};_GradientColorUtil.parsedColor={};return _GradientColorUtil}();if(wijmo_chart_1.FlexChartBase&&wijmo_chart_1.FlexChartBase.prototype&&wijmo_chart_1.FlexChartBase.prototype._exportToImage&&wijmo_1.isIE()){var _exportFn_1=wijmo_chart_1.FlexChartBase.prototype._exportToImage;wijmo_chart_1.FlexChartBase.prototype._exportToImage=function(e,t){if("svg"!==e){var n=this._bgColor(this.hostElement);this._isTransparent(n)&&(n="#ffffff");var i,a,r=new _CanvasRenderEngine(this.hostElement,!0);this._render(r,!1,n);i=(a=r.element).toDataURL("image/"+e);a.parentNode.removeChild(a);t.call(null,i);a=null;r=null}else _exportFn_1.call(this,e,t)}}wijmo_1._registerModule("wijmo.chart.render",selfModule);
14
+ "use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),wijmo_chart_1=require("wijmo/wijmo.chart"),selfModule=__importStar(require("wijmo/wijmo.chart.render")),_CanvasRenderEngine=function(){function _CanvasRenderEngine(e,t){void 0===t&&(t=!1);this._strokeWidth=1;this._fontSize=null;this._fontFamily=null;this._cssPriority=!0;this._readOnly=!1;this._applyCanvasClip=function(e,t){var n=this._canvasRect[t];if(n){e.beginPath();e.rect(n.left,n.top,n.width,n.height);e.clip();e.closePath()}};this._applyCanvasStyles=function(e,t,n,i,a){var r,s,o,l=this._canvas.getContext("2d"),h=this.stroke,p=this.fill,_=this.strokeWidth;t&&void 0!==t.stroke&&(h=t.stroke);t&&void 0!==t.fill&&(p=this._getOpacityColor(t.fill,t["fill-opacity"]));if(e){s=window.getComputedStyle(e);o=e.getBBox()}if(a){if(s){l.fillStyle=s.fill;r=s.fontStyle+" "+s.fontWeight+" "+s.fontSize+" "+s.fontFamily;l.font=r}else if(this.fontSize){l.fillStyle=this.textFill;l.font=this.fontSize+" "+(this.fontFamily||"sans-serif")}else if(this._canvasDefaultFont){l.fillStyle=this._canvasDefaultFont.textFill;r=this._canvasDefaultFont.fontSize+" "+this._canvasDefaultFont.fontFamily;l.font=r;if(l.font.replace(/"/g,"'")!==r.replace(/"/g,"'")){r=this._canvasDefaultFont.fontSize+" "+(l.font.split(" ")[1]||"sans-serif");l.font=r}}}else{if(s){h=s.stroke&&"none"!==s.stroke?s.stroke:h;p=s.fill&&"none"!==s.fill?this._getOpacityColor(s.fill,s["fill-opacity"]):p;_=s.strokeWidth?s.strokeWidth:_}if("none"!==h&&null!=h){this._applyColor("strokeStyle",h,o);l.lineWidth=+_.replace(/px/g,"");l.stroke()}if(i&&null!=p&&"transparent"!==p&&"none"!==p){this._applyColor("fillStyle",p,o);l.fill()}}};this._element=e;this._canvas=document.createElement("canvas");this._svgEngine=new wijmo_chart_1._SvgRenderEngine(e);this._element.appendChild(this._canvas);this._applyCSSStyles=t}_CanvasRenderEngine.prototype.beginRender=function(){var e,t=this._svgEngine.element,n=this._element;if(this._applyCSSStyles){this._svgEngine.beginRender();n=t}this._element.appendChild(t);this._canvasRect={};e=window.getComputedStyle(n);this._canvasDefaultFont={fontSize:e.fontSize,fontFamily:e.fontFamily,textFill:e.color}};_CanvasRenderEngine.prototype.endRender=function(){this._applyCSSStyles&&this._svgEngine.endRender();this._svgEngine.element.parentNode.removeChild(this._svgEngine.element)};_CanvasRenderEngine.prototype.setViewportSize=function(e,t){var n=this._canvas;n.getContext("2d"),this.fill;this._applyCSSStyles&&this._svgEngine.setViewportSize(e,t);n.width=e;n.height=t};Object.defineProperty(_CanvasRenderEngine.prototype,"element",{get:function(){return this._canvas},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"fill",{get:function(){return this._fill},set:function(e){this._svgEngine.fill=e;this._fill=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._svgEngine.fontSize=e;var t=null==e||isNaN(e)?e:e+"px";this._fontSize=t},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this._svgEngine.fontFamily=e;this._fontFamily=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._svgEngine.stroke=e;this._stroke=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._svgEngine.strokeWidth=e;this._strokeWidth=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"textFill",{get:function(){return this._textFill},set:function(e){this._svgEngine.textFill=e;this._textFill=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"cssPriority",{get:function(){return this._cssPriority},set:function(e){this._svgEngine.cssPriority=e;this._cssPriority=e},enumerable:!0,configurable:!0});Object.defineProperty(_CanvasRenderEngine.prototype,"readOnly",{get:function(){return this._readOnly},set:function(e){this._readOnly=e},enumerable:!0,configurable:!0});_CanvasRenderEngine.prototype.addClipRect=function(e,t){if(e&&t){this._applyCSSStyles&&this._svgEngine.addClipRect(e,t);this._canvasRect[t]=e.clone()}};_CanvasRenderEngine.prototype.drawEllipse=function(e,t,n,i,a,r){if(!this.readOnly){var s,o=this._canvas.getContext("2d");this._applyCSSStyles&&(s=this._svgEngine.drawEllipse(e,t,n,i,a,r));o.save();o.beginPath();if(o.ellipse)o.ellipse(e,t,n,i,0,0,2*Math.PI);else{o.translate(e,t);o.scale(1,i/n);o.translate(-e,-t);o.arc(e,t,n,0,2*Math.PI);o.scale(1,1)}this._applyCanvasStyles(s,r,a,!0);o.restore();return s}};_CanvasRenderEngine.prototype.drawRect=function(e,t,n,i,a,r,s){if(!this.readOnly){var o,l=this._canvas.getContext("2d");this._applyCSSStyles&&(o=this._svgEngine.drawRect(e,t,n,i,a,r,s));l.save();this._applyCanvasClip(l,s);l.beginPath();l.rect(e,t,n,i);this._applyCanvasStyles(o,r,a,!0);l.restore();return o}};_CanvasRenderEngine.prototype.drawLine=function(e,t,n,i,a,r){if(!this.readOnly){var s,o=this._canvas.getContext("2d");this._applyCSSStyles&&(s=this._svgEngine.drawLine(e,t,n,i,a,r));o.save();o.beginPath();o.moveTo(e,t);o.lineTo(n,i);this._applyCanvasStyles(s,r,a);o.restore();return s}};_CanvasRenderEngine.prototype.drawLines=function(e,t,n,i,a,r){if(e&&t&&0!==e.length&&0!==t.length&&!this.readOnly){var s,o,l=this._canvas.getContext("2d"),h=r||Math.min(e.length,t.length);this._applyCSSStyles&&(s=this._svgEngine.drawLines([0,1],[1,0],n,i,a));l.save();this._applyCanvasClip(l,a);l.beginPath();l.moveTo(e[0],t[0]);for(o=1;o<h;o++)l.lineTo(e[o],t[o]);this._applyCanvasStyles(s,i,n);l.restore();return s}};_CanvasRenderEngine.prototype.drawSplines=function(e,t,n,i,a,r){if(e&&t&&0!==e.length&&0!==t.length&&!this.readOnly){var s,o,l=this._canvas.getContext("2d"),h=new wijmo_chart_1._Spline(e,t,r).calculate(),p=h.xs,_=h.ys,f=Math.min(p.length,_.length);this._applyCSSStyles&&(s=this._svgEngine.drawSplines([0,1],[1,0],n,i,a));l.save();this._applyCanvasClip(l,a);l.beginPath();l.moveTo(p[0],_[0]);for(o=1;o<f;o++)l.lineTo(p[o],_[o]);this._applyCanvasStyles(s,i,n);l.restore();return s}};_CanvasRenderEngine.prototype.drawPolygon=function(e,t,n,i,a){if(e&&t&&0!==e.length&&0!==t.length&&!this.readOnly){var r,s,o=this._canvas.getContext("2d"),l=Math.min(e.length,t.length);this._applyCSSStyles&&(r=this._svgEngine.drawPolygon(e,t,n,i,a));o.save();this._applyCanvasClip(o,a);o.beginPath();o.moveTo(e[0],t[0]);for(s=1;s<l;s++)o.lineTo(e[s],t[s]);o.closePath();this._applyCanvasStyles(r,i,n,!0);o.restore();return r}};_CanvasRenderEngine.prototype.drawPieSegment=function(e,t,n,i,a,r,s,o){if(!this.readOnly){var l,h=this._canvas.getContext("2d"),p=i,_=i+a;this._applyCSSStyles&&(l=this._svgEngine.drawPieSegment(e,t,n,i,a,r,s,o));h.save();this._applyCanvasClip(h,o);h.beginPath();h.moveTo(e,t);h.arc(e,t,n,p,_,!1);h.lineTo(e,t);this._applyCanvasStyles(l,s,r,!0);h.restore();return l}};_CanvasRenderEngine.prototype.drawDonutSegment=function(e,t,n,i,a,r,s,o,l){if(!this.readOnly){var h,p,_,f=this._canvas.getContext("2d"),g=a,y=a+r;this._applyCSSStyles&&(h=this._svgEngine.drawDonutSegment(e,t,n,i,a,r,s,o,l));(p=new wijmo_1.Point(e,t)).x+=i*Math.cos(g);p.y+=i*Math.sin(g);(_=new wijmo_1.Point(e,t)).x+=i*Math.cos(y);_.y+=i*Math.sin(y);f.save();this._applyCanvasClip(f,l);f.beginPath();f.moveTo(p.x,p.y);f.arc(e,t,n,g,y,!1);f.lineTo(_.x,_.y);f.arc(e,t,i,y,g,!0);this._applyCanvasStyles(h,o,s,!0);f.restore();return h}};_CanvasRenderEngine.prototype.drawString=function(e,t,n,i){if(!this.readOnly){var a,r=this._canvas.getContext("2d");this._applyCSSStyles&&(a=this._svgEngine.drawString(e,t,n,i));r.save();r.textBaseline="bottom";this._applyCanvasStyles(a,i,n,!0,!0);r.fillText(e,t.x,t.y);r.restore();return a}};_CanvasRenderEngine.prototype.drawStringRotated=function(e,t,n,i,a,r){if(!this.readOnly){var s,o=this._canvas.getContext("2d");o.measureText(e);this._applyCSSStyles&&(s=this._svgEngine.drawStringRotated(e,t,n,i,a,r));o.save();o.textBaseline="bottom";o.translate(n.x,n.y);o.rotate(Math.PI/180*i);o.translate(-n.x,-n.y);this._applyCanvasStyles(s,r,a,!0,!0);o.fillText(e,t.x,t.y);o.restore();return s}};_CanvasRenderEngine.prototype.measureString=function(e,t,n,i){var a,r=this._canvas.getContext("2d");if(this._applyCSSStyles)return this._svgEngine.measureString(e,t,n,i);this._applyCanvasStyles(null,null,t,!0,!0);a=r.measureText(e).width;return new wijmo_1.Size(a,1.5*parseInt(r.font))};_CanvasRenderEngine.prototype.startGroup=function(e,t,n){void 0===n&&(n=!1);var i,a=this._canvas.getContext("2d");this._applyCSSStyles&&(i=this._svgEngine.startGroup(e,t,n));a.save();this._applyCanvasClip(a,t);return i};_CanvasRenderEngine.prototype.endGroup=function(){this._applyCSSStyles&&this._svgEngine.endGroup();this._canvas.getContext("2d").restore()};_CanvasRenderEngine.prototype.drawImage=function(e,t,n,i,a){if(!this.readOnly){var r,s=this._canvas.getContext("2d"),o=new Image;this._applyCSSStyles&&(r=this._svgEngine.drawImage(e,t,n,i,a));o.onload=function(){s.drawImage(o,t,n,i,a)};o.src=e;return r}};_CanvasRenderEngine.prototype._getOpacityColor=function(e,t){var n=new wijmo_1.Color(e);if(e.indexOf("url")>-1)return this.fill;if(e.indexOf("-")>-1){this.fill=e;return e}null!=t&&1===n.a&&(n.a=isNaN(t)?1:Number(t));return n.toString()};_CanvasRenderEngine.prototype._applyColor=function(e,t,n){var i=_GradientColorUtil.tryParse(t),a=this._canvas.getContext("2d");if(null!=i)if(wijmo_1.isString(i)||null==n)a[e]=i;else{var r;if(null!=i.x1)r=i.relative?a.createLinearGradient(n.x+i.x1*n.width,n.y+i.y1*n.height,n.x+i.x2*n.width,n.y+i.y2*n.height):a.createLinearGradient(i.x1,i.y1,i.x2,i.y2);else if(null!=i.r)if(i.relative){var s=n.x+i.cx*n.width,o=n.y+i.cy*n.height,l=i.r*n.width,h=i.r*n.height/l,p=n.x+(null==i.fx?i.cx:i.fx)*n.width,_=n.y+(null==i.fy?i.cy:i.fy)*n.height,f=(null==i.fr?0:i.fr)*n.width,g=(null==i.fr?0:i.fr)*n.height,y=Math.min(f,g);r=a.createRadialGradient(p,_/h,y,s,o/h,l);a.setTransform(1,0,0,h,0,0)}else r=a.createRadialGradient(null==i.fx?i.cx:i.fx,null==i.fy?i.cy:i.fy,i.fr||0,i.cx,i.cy,i.r);i.colors&&i.colors.length>0&&null!=r&&i.colors.forEach((function(e){var t=new wijmo_1.Color("#000000");null!=e.color&&(t=e.color);null!=e.opacity&&(t.a=e.opacity);r.addColorStop(e.offset,t.toString())}));a[e]=r}};return _CanvasRenderEngine}();exports._CanvasRenderEngine=_CanvasRenderEngine;var _GradientColorUtil=function(){function _GradientColorUtil(){}_GradientColorUtil.tryParse=function(e){if(_GradientColorUtil.parsedColor[e])return _GradientColorUtil.parsedColor[e];if(null==e||-1===e.indexOf("-"))return e;var t,n=e.replace(/\s+/g,"").split(/-/g),i=n[0][0],a=!1,r=n[0].match(/\(\S+\)/)[0].replace(/[(\\)]/g,"").split(/,/g);if("l"===i||"L"===i){t={x1:"0",y1:"0",x2:"0",y2:"0",colors:[]};"l"===i&&(a=!0);["x1","y1","x2","y2"].forEach((function(e,n){null!=r[n]&&(t[e]=+r[n])}))}else if("r"===i||"R"===i){t={cx:"0",cy:"0",r:"0",colors:[]};"r"===i&&(a=!0);["cx","cy","r","fx","fy","fr"].forEach((function(e,n){null!=r[n]&&""!==r[n]&&(t[e]=+r[n])}))}t.relative=a;_GradientColorUtil.parsedColor[e]=t;var s=n.length-1;n.forEach((function(e,n){e.indexOf(")")>-1&&(e=e.match(/\)\S+/)[0].replace(")",""));var i=e.split(":"),a={color:new wijmo_1.Color("#000000")};null!=i[0]&&(a.color=wijmo_1.Color.fromString(i[0]));null!=i[1]?a.offset=+i[1]:a.offset=n/s;null!=i[2]&&(a.opacity=+i[2]);t.colors.push(a)}));return t};_GradientColorUtil.parsedColor={};return _GradientColorUtil}();if(wijmo_chart_1.FlexChartBase&&wijmo_chart_1.FlexChartBase.prototype&&wijmo_chart_1.FlexChartBase.prototype._exportToImage&&wijmo_1.isIE()){var _exportFn_1=wijmo_chart_1.FlexChartBase.prototype._exportToImage;wijmo_chart_1.FlexChartBase.prototype._exportToImage=function(e,t){if("svg"!==e){var n=this._bgColor(this.hostElement);this._isTransparent(n)&&(n="#ffffff");var i,a,r=new _CanvasRenderEngine(this.hostElement,!0);this._render(r,!1,n);i=(a=r.element).toDataURL("image/"+e);a.parentNode.removeChild(a);t.call(null,i);a=null;r=null}else _exportFn_1.call(this,e,t)}}wijmo_1._registerModule("wijmo.chart.render",selfModule);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -13,7 +13,7 @@
13
13
  /**
14
14
  * {@module wijmo.chart.webgl}
15
15
  * Includes WebGL rendering engine for FlexChart.
16
- */
16
+ */
17
17
  /**
18
18
  *
19
19
  */
@@ -51,9 +51,7 @@ export declare class _EarCut {
51
51
  private splitPolygon;
52
52
  private insertNode;
53
53
  private removeNode;
54
- private deviation;
55
54
  private signedArea;
56
- private flatten;
57
55
  }
58
56
  /**
59
57
  * High performance rendering engine for a {@link FlexChart} control.
@@ -75,7 +73,6 @@ export declare class WebGLRenderEngine extends chart._SvgRenderEngine {
75
73
  private gl;
76
74
  private rdraw;
77
75
  private edraw;
78
- private pdraw;
79
76
  private ldraw;
80
77
  private adraw;
81
78
  private primitives;
@@ -89,7 +86,7 @@ export declare class WebGLRenderEngine extends chart._SvgRenderEngine {
89
86
  drawEllipse(cx: number, cy: number, rx: number, ry: number, className?: string, style?: any): SVGElement;
90
87
  _getGroupClipRect(e?: Element): core.Rect;
91
88
  drawRect(x: number, y: number, w: number, h: number, className?: string, style?: any, clipPath?: string): SVGElement;
92
- drawLines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string, num?: number): SVGElement;
89
+ drawLines(xs: number[], ys: number[], _className?: string, _style?: any, clipPath?: string, num?: number): SVGElement;
93
90
  drawPolygon(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): SVGElement;
94
91
  addClipRect(clipRect: core.Rect, id: string): void;
95
92
  private init;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -11,4 +11,4 @@
11
11
  *
12
12
  */
13
13
 
14
- "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};return function(t,e){extendStatics(t,e);function __(){this.constructor=t}t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}(),__importStar=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);e.default=t;return e};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),core=__importStar(require("wijmo/wijmo")),chart=__importStar(require("wijmo/wijmo.chart")),selfModule=__importStar(require("wijmo/wijmo.chart.webgl")),_EarCut=function(){function _EarCut(){}_EarCut.prototype.earcut=function(t,e,r){void 0===e&&(e=null);void 0===r&&(r=null);r=r||2;var i,n,o,s,a,h,u,l=e&&e.length,f=l?e[0]*r:t.length,p=this.linkedList(t,0,f,r,!0),c=[];if(!p||p.next===p.prev)return c;l&&(p=this.eliminateHoles(t,e,p,r));if(t.length>80*r){i=o=t[0];n=s=t[1];for(var v=r;v<f;v+=r){(a=t[v])<i&&(i=a);(h=t[v+1])<n&&(n=h);a>o&&(o=a);h>s&&(s=h)}u=0!==(u=Math.max(o-i,s-n))?1/u:0}this.earcutLinked(p,c,r,i,n,u);return c};_EarCut.prototype.linkedList=function(t,e,r,i,n){var o,s;if(n===this.signedArea(t,e,r,i)>0)for(o=e;o<r;o+=i)s=this.insertNode(o,t[o],t[o+1],s);else for(o=r-i;o>=e;o-=i)s=this.insertNode(o,t[o],t[o+1],s);if(s&&this.equals(s,s.next)){this.removeNode(s);s=s.next}return s};_EarCut.prototype.filterPoints=function(t,e){void 0===e&&(e=null);if(!t)return t;e||(e=t);var r,i=t;do{r=!1;if(i.steiner||!this.equals(i,i.next)&&0!==this.area(i.prev,i,i.next))i=i.next;else{this.removeNode(i);if((i=e=i.prev)===i.next)break;r=!0}}while(r||i!==e);return e};_EarCut.prototype.earcutLinked=function(t,e,r,i,n,o,s){void 0===s&&(s=null);if(t){!s&&o&&this.indexCurve(t,i,n,o);for(var a,h,u=t;t.prev!==t.next;){a=t.prev;h=t.next;if(o?this.isEarHashed(t,i,n,o):this.isEar(t)){e.push(a.i/r);e.push(t.i/r);e.push(h.i/r);this.removeNode(t);t=h.next;u=h.next}else if((t=h)===u){if(s)if(1===s){t=this.cureLocalIntersections(this.filterPoints(t),e,r);this.earcutLinked(t,e,r,i,n,o,2)}else 2===s&&this.splitEarcut(t,e,r,i,n,o);else this.earcutLinked(this.filterPoints(t),e,r,i,n,o,1);break}}}};_EarCut.prototype.isEar=function(t){var e=t.prev,r=t,i=t.next;if(this.area(e,r,i)>=0)return!1;for(var n=t.next.next;n!==t.prev;){if(this.pointInTriangle(e.x,e.y,r.x,r.y,i.x,i.y,n.x,n.y)&&this.area(n.prev,n,n.next)>=0)return!1;n=n.next}return!0};_EarCut.prototype.isEarHashed=function(t,e,r,i){var n=t.prev,o=t,s=t.next;if(this.area(n,o,s)>=0)return!1;for(var a=n.x<o.x?n.x<s.x?n.x:s.x:o.x<s.x?o.x:s.x,h=n.y<o.y?n.y<s.y?n.y:s.y:o.y<s.y?o.y:s.y,u=n.x>o.x?n.x>s.x?n.x:s.x:o.x>s.x?o.x:s.x,l=n.y>o.y?n.y>s.y?n.y:s.y:o.y>s.y?o.y:s.y,f=this.zOrder(a,h,e,r,i),p=this.zOrder(u,l,e,r,i),c=t.prevZ,v=t.nextZ;c&&c.z>=f&&v&&v.z<=p;){if(c!==t.prev&&c!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,c.x,c.y)&&this.area(c.prev,c,c.next)>=0)return!1;c=c.prevZ;if(v!==t.prev&&v!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,v.x,v.y)&&this.area(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;c&&c.z>=f;){if(c!==t.prev&&c!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,c.x,c.y)&&this.area(c.prev,c,c.next)>=0)return!1;c=c.prevZ}for(;v&&v.z<=p;){if(v!==t.prev&&v!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,v.x,v.y)&&this.area(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0};_EarCut.prototype.cureLocalIntersections=function(t,e,r){var i=t;do{var n=i.prev,o=i.next.next;if(!this.equals(n,o)&&this.intersects(n,i,i.next,o)&&this.locallyInside(n,o)&&this.locallyInside(o,n)){e.push(n.i/r);e.push(i.i/r);e.push(o.i/r);this.removeNode(i);this.removeNode(i.next);i=t=o}i=i.next}while(i!==t);return this.filterPoints(i)};_EarCut.prototype.splitEarcut=function(t,e,r,i,n,o){var s=t;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&this.isValidDiagonal(s,a)){var h=this.splitPolygon(s,a);s=this.filterPoints(s,s.next);h=this.filterPoints(h,h.next);this.earcutLinked(s,e,r,i,n,o);this.earcutLinked(h,e,r,i,n,o);return}a=a.next}s=s.next}while(s!==t)};_EarCut.prototype.eliminateHoles=function(t,e,r,i){var n,o,s,a,h,u=[];for(n=0,o=e.length;n<o;n++){s=e[n]*i;a=n<o-1?e[n+1]*i:t.length;(h=this.linkedList(t,s,a,i,!1))===h.next&&(h.steiner=!0);u.push(this.getLeftmost(h))}u.sort(this.compareX);for(n=0;n<u.length;n++){this.eliminateHole(u[n],r);r=this.filterPoints(r,r.next)}return r};_EarCut.prototype.compareX=function(t,e){return t.x-e.x};_EarCut.prototype.eliminateHole=function(t,e){if(e=this.findHoleBridge(t,e)){var r=this.splitPolygon(e,t);this.filterPoints(e,e.next);this.filterPoints(r,r.next)}};_EarCut.prototype.findHoleBridge=function(t,e){var r,i=e,n=t.x,o=t.y,s=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var a=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(a<=n&&a>s){s=a;if(a===n){if(o===i.y)return i;if(o===i.next.y)return i.next}r=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!r)return null;if(n===s)return r;var h,u=r,l=r.x,f=r.y,p=1/0;i=r;do{if(n>=i.x&&i.x>=l&&n!==i.x&&this.pointInTriangle(o<f?n:s,o,l,f,o<f?s:n,o,i.x,i.y)){h=Math.abs(o-i.y)/(n-i.x);if(this.locallyInside(i,t)&&(h<p||h===p&&(i.x>r.x||i.x===r.x&&this.sectorContainsSector(r,i)))){r=i;p=h}}i=i.next}while(i!==u);return r};_EarCut.prototype.sectorContainsSector=function(t,e){return this.area(t.prev,t,e.prev)<0&&this.area(e.next,t,t.next)<0};_EarCut.prototype.indexCurve=function(t,e,r,i){var n=t;do{null===n.z&&(n.z=this.zOrder(n.x,n.y,e,r,i));n.prevZ=n.prev;n.nextZ=n.next;n=n.next}while(n!==t);n.prevZ.nextZ=null;n.prevZ=null;this.sortLinked(n)};_EarCut.prototype.sortLinked=function(t){var e,r,i,n,o,s,a,h,u=1;do{r=t;t=null;o=null;s=0;for(;r;){s++;i=r;a=0;for(e=0;e<u;e++){a++;if(!(i=i.nextZ))break}h=u;for(;a>0||h>0&&i;){if(0!==a&&(0===h||!i||r.z<=i.z)){n=r;r=r.nextZ;a--}else{n=i;i=i.nextZ;h--}o?o.nextZ=n:t=n;n.prevZ=o;o=n}r=i}o.nextZ=null;u*=2}while(s>1);return t};_EarCut.prototype.zOrder=function(t,e,r,i,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*n)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*n)|e<<8))|e<<4))|e<<2))|e<<1))<<1};_EarCut.prototype.getLeftmost=function(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e);e=e.next}while(e!==t);return r};_EarCut.prototype.pointInTriangle=function(t,e,r,i,n,o,s,a){return(n-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(i-a)-(r-s)*(e-a)>=0&&(r-s)*(o-a)-(n-s)*(i-a)>=0};_EarCut.prototype.isValidDiagonal=function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!this.intersectsPolygon(t,e)&&(this.locallyInside(t,e)&&this.locallyInside(e,t)&&this.middleInside(t,e)&&(this.area(t.prev,t,e.prev)||this.area(t,e.prev,e))||this.equals(t,e)&&this.area(t.prev,t,t.next)>0&&this.area(e.prev,e,e.next)>0)};_EarCut.prototype.area=function(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)};_EarCut.prototype.equals=function(t,e){return t.x===e.x&&t.y===e.y};_EarCut.prototype.intersects=function(t,e,r,i){var n=this.sign(this.area(t,e,r)),o=this.sign(this.area(t,e,i)),s=this.sign(this.area(r,i,t)),a=this.sign(this.area(r,i,e));return n!==o&&s!==a||(!(0!==n||!this.onSegment(t,r,e))||(!(0!==o||!this.onSegment(t,i,e))||(!(0!==s||!this.onSegment(r,t,i))||!(0!==a||!this.onSegment(r,e,i)))))};_EarCut.prototype.onSegment=function(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)};_EarCut.prototype.sign=function(t){return t>0?1:t<0?-1:0};_EarCut.prototype.intersectsPolygon=function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&this.intersects(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1};_EarCut.prototype.locallyInside=function(t,e){return this.area(t.prev,t,t.next)<0?this.area(t,e,t.next)>=0&&this.area(t,t.prev,e)>=0:this.area(t,e,t.prev)<0||this.area(t,t.next,e)<0};_EarCut.prototype.middleInside=function(t,e){var r=t,i=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do{r.y>o!=r.next.y>o&&r.next.y!==r.y&&n<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(i=!i);r=r.next}while(r!==t);return i};_EarCut.prototype.splitPolygon=function(t,e){var r=new Node(t.i,t.x,t.y),i=new Node(e.i,e.x,e.y),n=t.next,o=e.prev;t.next=e;e.prev=t;r.next=n;n.prev=r;i.next=r;r.prev=i;o.next=i;i.prev=o;return i};_EarCut.prototype.insertNode=function(t,e,r,i){var n=new Node(t,e,r);if(i){n.next=i.next;n.prev=i;i.next.prev=n;i.next=n}else{n.prev=n;n.next=n}return n};_EarCut.prototype.removeNode=function(t){t.next.prev=t.prev;t.prev.next=t.next;t.prevZ&&(t.prevZ.nextZ=t.nextZ);t.nextZ&&(t.nextZ.prevZ=t.prevZ)};_EarCut.prototype.deviation=function(t,e,r,i){var n=e&&e.length,o=n?e[0]*r:t.length,s=Math.abs(this.signedArea(t,0,o,r));if(n)for(var a=0,h=e.length;a<h;a++){var u=e[a]*r,l=a<h-1?e[a+1]*r:t.length;s-=Math.abs(this.signedArea(t,u,l,r))}var f=0;for(a=0;a<i.length;a+=3){var p=i[a]*r,c=i[a+1]*r,v=i[a+2]*r;f+=Math.abs((t[p]-t[v])*(t[c+1]-t[p+1])-(t[p]-t[c])*(t[v+1]-t[p+1]))}return 0===s&&0===f?0:Math.abs((f-s)/s)};_EarCut.prototype.signedArea=function(t,e,r,i){for(var n=0,o=e,s=r-i;o<r;o+=i){n+=(t[s]-t[o])*(t[o+1]+t[s+1]);s=o}return n};_EarCut.prototype.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},i=0,n=0;n<t.length;n++){for(var o=0;o<t[n].length;o++)for(var s=0;s<e;s++)r.vertices.push(t[n][o][s]);if(n>0){i+=t[n-1].length;r.holes.push(i)}}return r};return _EarCut}();exports._EarCut=_EarCut;var Node=function Node(t,e,r){this.i=t;this.x=e;this.y=r;this.prev=null;this.next=null;this.z=null;this.prevZ=null;this.nextZ=null;this.steiner=!1},WebGLRenderEngine=function(t){__extends(WebGLRenderEngine,t);function WebGLRenderEngine(e){var r=t.call(this,e)||this;r.primitives=[];r.clipRects={};r.init();return r}WebGLRenderEngine.prototype.beginRender=function(){t.prototype.beginRender.call(this);this.isIE?this.element.appendChild(this.canvas):this.element.appendChild(this.foCanvas);var e=this.gl;e.viewport(0,0,e.canvas.width,e.canvas.height);e.clearColor(0,0,0,0);e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT);e.enable(e.BLEND);e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);this.primitives.forEach((function(t){return t.beginRender()}));this.clipRects={}};WebGLRenderEngine.prototype.setViewportSize=function(e,r){t.prototype.setViewportSize.call(this,e,r);if(this.foCanvas){this.foCanvas.setAttribute("width",e.toString());this.foCanvas.setAttribute("height",r.toString())}var i=this.gl;i.canvas.width=e;i.canvas.height=r};WebGLRenderEngine.prototype.endRender=function(){this.primitives.forEach((function(t){return t.endRender()}));t.prototype.endRender.call(this);if(this.isIE){var e=document.createElementNS(WebGLRenderEngine.svgns,"image");e.setAttribute("width",this.gl.canvas.width);e.setAttribute("height",this.gl.canvas.height);e.setAttribute("href",this.canvas.toDataURL());this.element.appendChild(e);this.canvas.parentNode==this.element&&this.element.removeChild(this.canvas)}};WebGLRenderEngine.prototype.drawEllipse=function(e,r,i,n,o,s){if(this.useSvg)return t.prototype.drawEllipse.call(this,e,r,i,n,o,s);this.edraw.drawEllipse(new core.Rect(e-i,r-n,2*i,2*n),this.fill);return null};WebGLRenderEngine.prototype._getGroupClipRect=function(t){void 0===t&&(t=null);var e=t||this.group;if(e){var r=e.getAttribute("clip-path");if(r){var i=r.substring(5,r.length-1);return this.clipRects[i]}if(e.parentElement)return this._getGroupClipRect(e.parentElement)}return null};WebGLRenderEngine.prototype.drawRect=function(e,r,i,n,o,s,a){if(this._groupCls==chart.FlexChartClsNames.plotArea||this.useSvg)return t.prototype.drawRect.call(this,e,r,i,n,o,s,a);var h=a?this.clipRects[a]:this._getGroupClipRect();this.rdraw.drawRect(new core.Rect(e,r,i,n),this.fill,h);return null};WebGLRenderEngine.prototype.drawLines=function(t,e,r,i,n,o){this.ldraw.drawLines(t,e,o,this.stroke,n?this.clipRects[n]:null);return null};WebGLRenderEngine.prototype.drawPolygon=function(e,r,i,n,o){if(this.useSvg)return t.prototype.drawPolygon.call(this,e,r,i,n,o);var s=o?this.clipRects[o]:this._getGroupClipRect();this.adraw.drawPolygon(e,r,this.fill,s);return null};WebGLRenderEngine.prototype.addClipRect=function(e,r){t.prototype.addClipRect.call(this,e,r);e&&r&&(this.clipRects[r]=e)};WebGLRenderEngine.prototype.init=function(){this.canvas=document.createElement("canvas");this.gl=this.canvas.getContext("webgl",{preserveDrawingBuffer:!0});if(this.gl){core.setCss(this.canvas,{margin:"0px",padding:"0px",border:"none"});var t=document.createElementNS("http://www.w3.org/1999/xhtml","div");core.setCss(t,{margin:"0px",padding:"0px",border:"none"});this.foCanvas=document.createElementNS(WebGLRenderEngine.svgns,"foreignObject");t.appendChild(this.canvas);this.foCanvas.appendChild(t)}else{this.gl=this.canvas.getContext("experimental-webgl");this.isIE=!0;core.setCss(this.canvas,{visibility:"hidden",position:"absolute",top:"-1000px",margin:"0px",padding:"0px",border:"none"})}this.rdraw=new _GLDrawRect(this.gl);this.edraw=new _GLDrawEllipse(this.gl);this.ldraw=new _GLDrawLines(this.gl);this.adraw=new _GLDrawAreas(this.gl);this.primitives.push(this.rdraw,this.edraw,this.ldraw,this.adraw)};WebGLRenderEngine.svgns="http://www.w3.org/2000/svg";return WebGLRenderEngine}(chart._SvgRenderEngine);exports.WebGLRenderEngine=WebGLRenderEngine;var _GLDrawBase=function(){function _GLDrawBase(t){this._vsSource="\n attribute vec2 a_position;\n \n uniform vec2 u_resolution;\n \n void main() {\n vec2 zeroToOne = a_position / u_resolution;\n vec2 zeroToTwo = zeroToOne * 2.0;\n vec2 clipSpace = zeroToTwo - 1.0;\n gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n }\n ";this._fsSource="\n precision mediump float;\n uniform vec4 u_color;\n void main() {\n gl_FragColor = u_color;\n }\n ";this.gl=t}_GLDrawBase.prototype.init=function(){var t=this.gl;this.shaderProgram=this.initShaderProgram(this.vsSource,this.fsSource);this.positionAttributeLocation=t.getAttribLocation(this.shaderProgram,"a_position");this.resolutionUniformLocation=t.getUniformLocation(this.shaderProgram,"u_resolution");this.colorLocation=t.getUniformLocation(this.shaderProgram,"u_color");t.useProgram(this.shaderProgram);this.positionBuffer=t.createBuffer()};_GLDrawBase.prototype.beginRender=function(){var t=this.gl;t.useProgram(this.shaderProgram);t.uniform2f(this.resolutionUniformLocation,t.canvas.width,t.canvas.height)};_GLDrawBase.prototype.endRender=function(){this.flush()};_GLDrawBase.prototype.flush=function(){};_GLDrawBase.prototype.initShaderProgram=function(t,e){var r=this.gl,i=this.loadShader(r.VERTEX_SHADER,t),n=this.loadShader(r.FRAGMENT_SHADER,e),o=r.createProgram();r.attachShader(o,i);r.attachShader(o,n);r.linkProgram(o);if(!r.getProgramParameter(o,r.LINK_STATUS)){alert("Unable to initialize the shader program: "+r.getProgramInfoLog(o));return null}return o};_GLDrawBase.prototype.loadShader=function(t,e){var r=this.gl,i=r.createShader(t);r.shaderSource(i,e);r.compileShader(i);if(!r.getShaderParameter(i,r.COMPILE_STATUS)){alert("An error occurred compiling the shaders: "+r.getShaderInfoLog(i));r.deleteShader(i);return null}return i};Object.defineProperty(_GLDrawBase.prototype,"vsSource",{get:function(){return this._vsSource},enumerable:!0,configurable:!0});Object.defineProperty(_GLDrawBase.prototype,"fsSource",{get:function(){return this._fsSource},enumerable:!0,configurable:!0});return _GLDrawBase}(),_GLDrawRect=function(t){__extends(_GLDrawRect,t);function _GLDrawRect(e){var r=t.call(this,e)||this;r.BUFFER_SIZE=1e4;r.bufRects=[];r.bufLen=0;r.init();return r}_GLDrawRect.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(12*this.BUFFER_SIZE);this.bufRects=new Array(this.BUFFER_SIZE);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}};_GLDrawRect.prototype.drawRect=function(t,e,r){void 0===r&&(r=null);this.initBuffers();var i=!1;r!==this.previousClip&&(i=null===r||null===this.previousClip||!r.equals(this.previousClip));if(e!==this.previousFill||i){this.flush();this.previousFill=e;this.previousClip=r}this.bufRects[this.bufLen++]=t;this.bufLen>=this.BUFFER_SIZE&&this.flush()};_GLDrawRect.prototype.flush=function(){if(0!=this.bufLen){var t=this.gl;t.useProgram(this.shaderProgram);var e=this.previousClip;if(e){t.enable(t.SCISSOR_TEST);t.scissor(e.left,t.canvas.height-e.bottom,e.width+1,e.height+1)}var r=new core.Color(this.previousFill);t.uniform4f(this.colorLocation,r.r/255,r.g/255,r.b/255,r.a);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);this.setData();t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.drawArrays(t.TRIANGLES,0,6*this.bufLen);e&&t.disable(t.SCISSOR_TEST);this.bufLen=0}};_GLDrawRect.prototype.setData=function(){for(var t=this.gl,e=this.bufLen,r=this.buffer,i=0;i<e;i++){var n=this.bufRects[i],o=n.left,s=n.right,a=n.top,h=n.bottom,u=12*i;r[u]=o;r[u+1]=a;r[u+2]=s;r[u+3]=a;r[u+4]=o;r[u+5]=h;r[u+6]=o;r[u+7]=h;r[u+8]=s;r[u+9]=a;r[u+10]=s;r[u+11]=h}t.bufferSubData(t.ARRAY_BUFFER,0,r.subarray(0,12*e))};return _GLDrawRect}(_GLDrawBase),_GLDrawEllipse=function(t){__extends(_GLDrawEllipse,t);function _GLDrawEllipse(e){var r=t.call(this,e)||this;r.NTRIANGLES=12;r.BUFFER_SIZE=1e4;r.bufRects=new Array(r.BUFFER_SIZE);r.bufLen=0;r.sin1=new Float32Array(r.NTRIANGLES);r.sin2=new Float32Array(r.NTRIANGLES);r.cos1=new Float32Array(r.NTRIANGLES);r.cos2=new Float32Array(r.NTRIANGLES);r.data=new Float32Array(r.BUFFER_SIZE*r.NTRIANGLES*6);for(var i=2*Math.PI/r.NTRIANGLES,n=0;n<r.NTRIANGLES;n++){var o=i*n;r.sin1[n]=Math.sin(o);r.cos1[n]=Math.cos(o);r.sin2[n]=Math.sin(o+i);r.cos2[n]=Math.cos(o+i)}r.init();e.enableVertexAttribArray(r.positionAttributeLocation);e.bindBuffer(e.ARRAY_BUFFER,r.positionBuffer);e.vertexAttribPointer(r.positionAttributeLocation,2,e.FLOAT,!1,0,0);e.bufferData(e.ARRAY_BUFFER,4*r.data.length,e.DYNAMIC_DRAW);return r}_GLDrawEllipse.prototype.drawEllipse=function(t,e){if(e!==this.previousFill){this.flush();this.previousFill=e}this.bufRects[this.bufLen++]=t;this.bufLen>=this.BUFFER_SIZE&&this.flush()};_GLDrawEllipse.prototype.flush=function(){if(0!=this.bufLen){var t=this.gl;t.useProgram(this.shaderProgram);var e=new core.Color(this.previousFill);t.uniform4f(this.colorLocation,e.r/255,e.g/255,e.b/255,e.a);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);this.setData();t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.drawArrays(t.TRIANGLES,0,this.bufLen*this.NTRIANGLES*3);this.bufLen=0}};_GLDrawEllipse.prototype.setData=function(){for(var t=this.gl,e=this.bufLen,r=this.data,i=0,n=0;n<e;n++)for(var o=this.bufRects[n],s=.5*o.width,a=.5*o.height,h=o.left+s,u=o.top+a,l=0;l<this.NTRIANGLES;l++){r[i=6*(n*this.NTRIANGLES+l)]=h;r[i+1]=u;r[i+2]=h+s*this.sin1[l];r[i+3]=u+a*this.cos1[l];r[i+4]=h+s*this.sin2[l];r[i+5]=u+a*this.cos2[l]}t.bufferSubData(t.ARRAY_BUFFER,0,r.subarray(0,i+6))};return _GLDrawEllipse}(_GLDrawBase),_GLDrawPoints=function(t){__extends(_GLDrawPoints,t);function _GLDrawPoints(e){var r=t.call(this,e)||this;r.BUFFER_SIZE=1e5;r.bufferLen=0;r._vsSource1="\n attribute vec2 a_position;\n uniform vec2 u_resolution;\n void main() {\n vec2 zeroToOne = a_position / u_resolution;\n vec2 zeroToTwo = zeroToOne * 2.0;\n vec2 clipSpace = zeroToTwo - 1.0;\n gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n gl_PointSize = 5.0;\n }\n ";r.init();return r}_GLDrawPoints.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(this.BUFFER_SIZE);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}};_GLDrawPoints.prototype.drawPoint=function(t,e){this.initBuffers();if(e!==this.previousFill){this.flush();this.previousFill=e}this.buffer[this.bufferLen++]=t.x;this.buffer[this.bufferLen++]=t.y;this.bufferLen>=this.BUFFER_SIZE&&this.flush()};_GLDrawPoints.prototype.flush=function(){if(0!=this.bufferLen){var t=this.gl;t.useProgram(this.shaderProgram);var e=new core.Color(this.previousFill);t.uniform4f(this.colorLocation,e.r/255,e.g/255,e.b/255,e.a>0?1:0);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferSubData(t.ARRAY_BUFFER,0,this.buffer.subarray(0,this.bufferLen));t.drawArrays(t.POINTS,0,this.bufferLen/2);this.bufferLen=0}};Object.defineProperty(_GLDrawPoints.prototype,"vsSource",{get:function(){return this._vsSource1},enumerable:!0,configurable:!0});return _GLDrawPoints}(_GLDrawBase),_GLDrawLines=function(t){__extends(_GLDrawLines,t);function _GLDrawLines(e){var r=t.call(this,e)||this;r.BUFFER_SIZE=1e6;r.init();return r}_GLDrawLines.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(4*this.BUFFER_SIZE);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}};_GLDrawLines.prototype.drawLines=function(t,e,r,i,n){void 0===n&&(n=null);this.initBuffers();var o=r||t.length,s=this.gl;s.useProgram(this.shaderProgram);if(n){s.enable(s.SCISSOR_TEST);s.scissor(n.left,s.canvas.height-n.bottom,n.width+1,n.height+1)}var a=new core.Color(i);s.uniform4f(this.colorLocation,a.r/255,a.g/255,a.b/255,a.a>0?1:0);s.enableVertexAttribArray(this.positionAttributeLocation);s.bindBuffer(s.ARRAY_BUFFER,this.positionBuffer);s.vertexAttribPointer(this.positionAttributeLocation,2,s.FLOAT,!1,0,0);for(var h=0;h<o;h++){this.buffer[2*h]=t[h];this.buffer[2*h+1]=e[h]}s.bufferSubData(s.ARRAY_BUFFER,0,this.buffer.subarray(0,2*o));s.enableVertexAttribArray(this.positionAttributeLocation);s.bindBuffer(s.ARRAY_BUFFER,this.positionBuffer);s.vertexAttribPointer(this.positionAttributeLocation,2,s.FLOAT,!1,0,0);s.drawArrays(s.LINE_STRIP,0,o);n&&s.disable(s.SCISSOR_TEST)};return _GLDrawLines}(_GLDrawBase),_GLDrawAreas=function(t){__extends(_GLDrawAreas,t);function _GLDrawAreas(e){var r=t.call(this,e)||this;r.earcut=new _EarCut;r.BUFFER_SIZE=1e6;r.init();return r}_GLDrawAreas.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(4*this.BUFFER_SIZE);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}};_GLDrawAreas.prototype.drawPolygon=function(t,e,r,i){void 0===i&&(i=null);this.initBuffers();for(var n=t.length,o=[],s=0;s<n;s++){o.push(t[s]);o.push(e[s])}var a=this.earcut.earcut(o),h=this.gl;h.useProgram(this.shaderProgram);if(i){h.enable(h.SCISSOR_TEST);h.scissor(i.left,h.canvas.height-i.bottom,i.width,i.height)}var u=new core.Color(r);h.uniform4f(this.colorLocation,u.r/255,u.g/255,u.b/255,u.a>0?1:0);h.enableVertexAttribArray(this.positionAttributeLocation);h.bindBuffer(h.ARRAY_BUFFER,this.positionBuffer);h.vertexAttribPointer(this.positionAttributeLocation,2,h.FLOAT,!1,0,0);var l=0;for(s=0;s<a.length;s++){this.buffer[l++]=o[2*a[s]];this.buffer[l++]=o[2*a[s]+1]}h.bufferSubData(h.ARRAY_BUFFER,0,this.buffer.subarray(0,l));h.enableVertexAttribArray(this.positionAttributeLocation);h.bindBuffer(h.ARRAY_BUFFER,this.positionBuffer);h.vertexAttribPointer(this.positionAttributeLocation,2,h.FLOAT,!1,0,0);h.drawArrays(h.TRIANGLES,0,a.length);i&&h.disable(h.SCISSOR_TEST)};return _GLDrawAreas}(_GLDrawBase);wijmo_1._registerModule("wijmo.chart.webgl",selfModule);
14
+ "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){extendStatics(t,e);function __(){this.constructor=t}t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}(),__importStar=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=t[i]);e.default=t;return e};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),core=__importStar(require("wijmo/wijmo")),chart=__importStar(require("wijmo/wijmo.chart")),selfModule=__importStar(require("wijmo/wijmo.chart.webgl")),_EarCut=function(){function _EarCut(){}_EarCut.prototype.earcut=function(t,e,i){void 0===e&&(e=null);void 0===i&&(i=null);i=i||2;var r,n,o,s,a,u,h,f=e&&e.length,l=f?e[0]*i:t.length,p=this.linkedList(t,0,l,i,!0),c=[];if(!p||p.next===p.prev)return c;f&&(p=this.eliminateHoles(t,e,p,i));if(t.length>80*i){r=o=t[0];n=s=t[1];for(var d=i;d<l;d+=i){(a=t[d])<r&&(r=a);(u=t[d+1])<n&&(n=u);a>o&&(o=a);u>s&&(s=u)}h=0!==(h=Math.max(o-r,s-n))?1/h:0}this.earcutLinked(p,c,i,r,n,h);return c};_EarCut.prototype.linkedList=function(t,e,i,r,n){var o,s;if(n===this.signedArea(t,e,i,r)>0)for(o=e;o<i;o+=r)s=this.insertNode(o,t[o],t[o+1],s);else for(o=i-r;o>=e;o-=r)s=this.insertNode(o,t[o],t[o+1],s);if(s&&this.equals(s,s.next)){this.removeNode(s);s=s.next}return s};_EarCut.prototype.filterPoints=function(t,e){void 0===e&&(e=null);if(!t)return t;e||(e=t);var i,r=t;do{i=!1;if(r.steiner||!this.equals(r,r.next)&&0!==this.area(r.prev,r,r.next))r=r.next;else{this.removeNode(r);if((r=e=r.prev)===r.next)break;i=!0}}while(i||r!==e);return e};_EarCut.prototype.earcutLinked=function(t,e,i,r,n,o,s){void 0===s&&(s=null);if(t){!s&&o&&this.indexCurve(t,r,n,o);for(var a,u,h=t;t.prev!==t.next;){a=t.prev;u=t.next;if(o?this.isEarHashed(t,r,n,o):this.isEar(t)){e.push(a.i/i);e.push(t.i/i);e.push(u.i/i);this.removeNode(t);t=u.next;h=u.next}else if((t=u)===h){if(s)if(1===s){t=this.cureLocalIntersections(this.filterPoints(t),e,i);this.earcutLinked(t,e,i,r,n,o,2)}else 2===s&&this.splitEarcut(t,e,i,r,n,o);else this.earcutLinked(this.filterPoints(t),e,i,r,n,o,1);break}}}};_EarCut.prototype.isEar=function(t){var e=t.prev,i=t,r=t.next;if(this.area(e,i,r)>=0)return!1;for(var n=t.next.next;n!==t.prev;){if(this.pointInTriangle(e.x,e.y,i.x,i.y,r.x,r.y,n.x,n.y)&&this.area(n.prev,n,n.next)>=0)return!1;n=n.next}return!0};_EarCut.prototype.isEarHashed=function(t,e,i,r){var n=t.prev,o=t,s=t.next;if(this.area(n,o,s)>=0)return!1;for(var a=n.x<o.x?n.x<s.x?n.x:s.x:o.x<s.x?o.x:s.x,u=n.y<o.y?n.y<s.y?n.y:s.y:o.y<s.y?o.y:s.y,h=n.x>o.x?n.x>s.x?n.x:s.x:o.x>s.x?o.x:s.x,f=n.y>o.y?n.y>s.y?n.y:s.y:o.y>s.y?o.y:s.y,l=this.zOrder(a,u,e,i,r),p=this.zOrder(h,f,e,i,r),c=t.prevZ,d=t.nextZ;c&&c.z>=l&&d&&d.z<=p;){if(c!==t.prev&&c!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,c.x,c.y)&&this.area(c.prev,c,c.next)>=0)return!1;c=c.prevZ;if(d!==t.prev&&d!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,d.x,d.y)&&this.area(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;c&&c.z>=l;){if(c!==t.prev&&c!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,c.x,c.y)&&this.area(c.prev,c,c.next)>=0)return!1;c=c.prevZ}for(;d&&d.z<=p;){if(d!==t.prev&&d!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,d.x,d.y)&&this.area(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0};_EarCut.prototype.cureLocalIntersections=function(t,e,i){var r=t;do{var n=r.prev,o=r.next.next;if(!this.equals(n,o)&&this.intersects(n,r,r.next,o)&&this.locallyInside(n,o)&&this.locallyInside(o,n)){e.push(n.i/i);e.push(r.i/i);e.push(o.i/i);this.removeNode(r);this.removeNode(r.next);r=t=o}r=r.next}while(r!==t);return this.filterPoints(r)};_EarCut.prototype.splitEarcut=function(t,e,i,r,n,o){var s=t;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&this.isValidDiagonal(s,a)){var u=this.splitPolygon(s,a);s=this.filterPoints(s,s.next);u=this.filterPoints(u,u.next);this.earcutLinked(s,e,i,r,n,o);this.earcutLinked(u,e,i,r,n,o);return}a=a.next}s=s.next}while(s!==t)};_EarCut.prototype.eliminateHoles=function(t,e,i,r){var n,o,s,a,u,h=[];for(n=0,o=e.length;n<o;n++){s=e[n]*r;a=n<o-1?e[n+1]*r:t.length;(u=this.linkedList(t,s,a,r,!1))===u.next&&(u.steiner=!0);h.push(this.getLeftmost(u))}h.sort(this.compareX);for(n=0;n<h.length;n++){this.eliminateHole(h[n],i);i=this.filterPoints(i,i.next)}return i};_EarCut.prototype.compareX=function(t,e){return t.x-e.x};_EarCut.prototype.eliminateHole=function(t,e){if(e=this.findHoleBridge(t,e)){var i=this.splitPolygon(e,t);this.filterPoints(e,e.next);this.filterPoints(i,i.next)}};_EarCut.prototype.findHoleBridge=function(t,e){var i,r=e,n=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=n&&a>s){s=a;if(a===n){if(o===r.y)return r;if(o===r.next.y)return r.next}i=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!i)return null;if(n===s)return i;var u,h=i,f=i.x,l=i.y,p=1/0;r=i;do{if(n>=r.x&&r.x>=f&&n!==r.x&&this.pointInTriangle(o<l?n:s,o,f,l,o<l?s:n,o,r.x,r.y)){u=Math.abs(o-r.y)/(n-r.x);if(this.locallyInside(r,t)&&(u<p||u===p&&(r.x>i.x||r.x===i.x&&this.sectorContainsSector(i,r)))){i=r;p=u}}r=r.next}while(r!==h);return i};_EarCut.prototype.sectorContainsSector=function(t,e){return this.area(t.prev,t,e.prev)<0&&this.area(e.next,t,t.next)<0};_EarCut.prototype.indexCurve=function(t,e,i,r){var n=t;do{null===n.z&&(n.z=this.zOrder(n.x,n.y,e,i,r));n.prevZ=n.prev;n.nextZ=n.next;n=n.next}while(n!==t);n.prevZ.nextZ=null;n.prevZ=null;this.sortLinked(n)};_EarCut.prototype.sortLinked=function(t){var e,i,r,n,o,s,a,u,h=1;do{i=t;t=null;o=null;s=0;for(;i;){s++;r=i;a=0;for(e=0;e<h;e++){a++;if(!(r=r.nextZ))break}u=h;for(;a>0||u>0&&r;){if(0!==a&&(0===u||!r||i.z<=r.z)){n=i;i=i.nextZ;a--}else{n=r;r=r.nextZ;u--}o?o.nextZ=n:t=n;n.prevZ=o;o=n}i=r}o.nextZ=null;h*=2}while(s>1);return t};_EarCut.prototype.zOrder=function(t,e,i,r,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*n)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*n)|e<<8))|e<<4))|e<<2))|e<<1))<<1};_EarCut.prototype.getLeftmost=function(t){var e=t,i=t;do{(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e);e=e.next}while(e!==t);return i};_EarCut.prototype.pointInTriangle=function(t,e,i,r,n,o,s,a){return(n-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(i-s)*(e-a)>=0&&(i-s)*(o-a)-(n-s)*(r-a)>=0};_EarCut.prototype.isValidDiagonal=function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!this.intersectsPolygon(t,e)&&(this.locallyInside(t,e)&&this.locallyInside(e,t)&&this.middleInside(t,e)&&(this.area(t.prev,t,e.prev)||this.area(t,e.prev,e))||this.equals(t,e)&&this.area(t.prev,t,t.next)>0&&this.area(e.prev,e,e.next)>0)};_EarCut.prototype.area=function(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)};_EarCut.prototype.equals=function(t,e){return t.x===e.x&&t.y===e.y};_EarCut.prototype.intersects=function(t,e,i,r){var n=this.sign(this.area(t,e,i)),o=this.sign(this.area(t,e,r)),s=this.sign(this.area(i,r,t)),a=this.sign(this.area(i,r,e));return n!==o&&s!==a||(!(0!==n||!this.onSegment(t,i,e))||(!(0!==o||!this.onSegment(t,r,e))||(!(0!==s||!this.onSegment(i,t,r))||!(0!==a||!this.onSegment(i,e,r)))))};_EarCut.prototype.onSegment=function(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)};_EarCut.prototype.sign=function(t){return t>0?1:t<0?-1:0};_EarCut.prototype.intersectsPolygon=function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&this.intersects(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1};_EarCut.prototype.locallyInside=function(t,e){return this.area(t.prev,t,t.next)<0?this.area(t,e,t.next)>=0&&this.area(t,t.prev,e)>=0:this.area(t,e,t.prev)<0||this.area(t,t.next,e)<0};_EarCut.prototype.middleInside=function(t,e){var i=t,r=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(r=!r);i=i.next}while(i!==t);return r};_EarCut.prototype.splitPolygon=function(t,e){var i=new Node(t.i,t.x,t.y),r=new Node(e.i,e.x,e.y),n=t.next,o=e.prev;t.next=e;e.prev=t;i.next=n;n.prev=i;r.next=i;i.prev=r;o.next=r;r.prev=o;return r};_EarCut.prototype.insertNode=function(t,e,i,r){var n=new Node(t,e,i);if(r){n.next=r.next;n.prev=r;r.next.prev=n;r.next=n}else{n.prev=n;n.next=n}return n};_EarCut.prototype.removeNode=function(t){t.next.prev=t.prev;t.prev.next=t.next;t.prevZ&&(t.prevZ.nextZ=t.nextZ);t.nextZ&&(t.nextZ.prevZ=t.prevZ)};_EarCut.prototype.signedArea=function(t,e,i,r){for(var n=0,o=e,s=i-r;o<i;o+=r){n+=(t[s]-t[o])*(t[o+1]+t[s+1]);s=o}return n};return _EarCut}();exports._EarCut=_EarCut;var Node=function Node(t,e,i){this.i=t;this.x=e;this.y=i;this.prev=null;this.next=null;this.z=null;this.prevZ=null;this.nextZ=null;this.steiner=!1},WebGLRenderEngine=function(t){__extends(WebGLRenderEngine,t);function WebGLRenderEngine(e){var i=t.call(this,e)||this;i.primitives=[];i.clipRects={};i.init();return i}WebGLRenderEngine.prototype.beginRender=function(){t.prototype.beginRender.call(this);this.isIE?this.element.appendChild(this.canvas):this.element.appendChild(this.foCanvas);var e=this.gl;e.viewport(0,0,e.canvas.width,e.canvas.height);e.clearColor(0,0,0,0);e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT);e.enable(e.BLEND);e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);this.primitives.forEach((function(t){t.beginRender()}));this.clipRects={}};WebGLRenderEngine.prototype.setViewportSize=function(e,i){t.prototype.setViewportSize.call(this,e,i);if(this.foCanvas){this.foCanvas.setAttribute("width",e.toString());this.foCanvas.setAttribute("height",i.toString())}var r=this.gl;r.canvas.width=e;r.canvas.height=i};WebGLRenderEngine.prototype.endRender=function(){this.primitives.forEach((function(t){t.endRender()}));t.prototype.endRender.call(this);if(this.isIE){var e=document.createElementNS(WebGLRenderEngine.svgns,"image");e.setAttribute("width",this.gl.canvas.width);e.setAttribute("height",this.gl.canvas.height);e.setAttribute("href",this.canvas.toDataURL());this.element.appendChild(e);this.canvas.parentNode==this.element&&this.element.removeChild(this.canvas)}};WebGLRenderEngine.prototype.drawEllipse=function(e,i,r,n,o,s){if(this.useSvg)return t.prototype.drawEllipse.call(this,e,i,r,n,o,s);this.edraw.drawEllipse(new core.Rect(e-r,i-n,2*r,2*n),this.fill);return null};WebGLRenderEngine.prototype._getGroupClipRect=function(t){void 0===t&&(t=null);var e=t||this.group;if(e){var i=e.getAttribute("clip-path");if(i){var r=i.substring(5,i.length-1);return this.clipRects[r]}if(e.parentElement)return this._getGroupClipRect(e.parentElement)}return null};WebGLRenderEngine.prototype.drawRect=function(e,i,r,n,o,s,a){if(this._groupCls==chart.FlexChartClsNames.plotArea||this.useSvg)return t.prototype.drawRect.call(this,e,i,r,n,o,s,a);var u=a?this.clipRects[a]:this._getGroupClipRect();this.rdraw.drawRect(new core.Rect(e,i,r,n),this.fill,u);return null};WebGLRenderEngine.prototype.drawLines=function(t,e,i,r,n,o){this.ldraw.drawLines(t,e,o,this.stroke,n?this.clipRects[n]:null);return null};WebGLRenderEngine.prototype.drawPolygon=function(e,i,r,n,o){if(this.useSvg)return t.prototype.drawPolygon.call(this,e,i,r,n,o);var s=o?this.clipRects[o]:this._getGroupClipRect();this.adraw.drawPolygon(e,i,this.fill,s);return null};WebGLRenderEngine.prototype.addClipRect=function(e,i){t.prototype.addClipRect.call(this,e,i);e&&i&&(this.clipRects[i]=e)};WebGLRenderEngine.prototype.init=function(){this.canvas=document.createElement("canvas");this.gl=this.canvas.getContext("webgl",{preserveDrawingBuffer:!0});if(this.gl){core.setCss(this.canvas,{margin:"0px",padding:"0px",border:"none"});var t=document.createElementNS("http://www.w3.org/1999/xhtml","div");core.setCss(t,{margin:"0px",padding:"0px",border:"none"});this.foCanvas=document.createElementNS(WebGLRenderEngine.svgns,"foreignObject");t.appendChild(this.canvas);this.foCanvas.appendChild(t)}else{this.gl=this.canvas.getContext("experimental-webgl");this.isIE=!0;core.setCss(this.canvas,{visibility:"hidden",position:"absolute",top:"-1000px",margin:"0px",padding:"0px",border:"none"})}this.rdraw=new _GLDrawRect(this.gl);this.edraw=new _GLDrawEllipse(this.gl);this.ldraw=new _GLDrawLines(this.gl);this.adraw=new _GLDrawAreas(this.gl);this.primitives.push(this.rdraw,this.edraw,this.ldraw,this.adraw)};WebGLRenderEngine.svgns="http://www.w3.org/2000/svg";return WebGLRenderEngine}(chart._SvgRenderEngine);exports.WebGLRenderEngine=WebGLRenderEngine;var _GLDrawBase=function(){function _GLDrawBase(t){this._vsSource="\n attribute vec2 a_position;\n \n uniform vec2 u_resolution;\n \n void main() {\n vec2 zeroToOne = a_position / u_resolution;\n vec2 zeroToTwo = zeroToOne * 2.0;\n vec2 clipSpace = zeroToTwo - 1.0;\n gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n }\n ";this._fsSource="\n precision mediump float;\n uniform vec4 u_color;\n void main() {\n gl_FragColor = u_color;\n }\n ";this.gl=t}_GLDrawBase.prototype.init=function(){var t=this.gl;this.shaderProgram=this.initShaderProgram(this.vsSource,this.fsSource);this.positionAttributeLocation=t.getAttribLocation(this.shaderProgram,"a_position");this.resolutionUniformLocation=t.getUniformLocation(this.shaderProgram,"u_resolution");this.colorLocation=t.getUniformLocation(this.shaderProgram,"u_color");t.useProgram(this.shaderProgram);this.positionBuffer=t.createBuffer()};_GLDrawBase.prototype.beginRender=function(){var t=this.gl;t.useProgram(this.shaderProgram);t.uniform2f(this.resolutionUniformLocation,t.canvas.width,t.canvas.height)};_GLDrawBase.prototype.endRender=function(){this.flush()};_GLDrawBase.prototype.flush=function(){};_GLDrawBase.prototype.initShaderProgram=function(t,e){var i=this.gl,r=this.loadShader(i.VERTEX_SHADER,t),n=this.loadShader(i.FRAGMENT_SHADER,e),o=i.createProgram();i.attachShader(o,r);i.attachShader(o,n);i.linkProgram(o);if(!i.getProgramParameter(o,i.LINK_STATUS)){alert("Unable to initialize the shader program: "+i.getProgramInfoLog(o));return null}return o};_GLDrawBase.prototype.loadShader=function(t,e){var i=this.gl,r=i.createShader(t);i.shaderSource(r,e);i.compileShader(r);if(!i.getShaderParameter(r,i.COMPILE_STATUS)){alert("An error occurred compiling the shaders: "+i.getShaderInfoLog(r));i.deleteShader(r);return null}return r};Object.defineProperty(_GLDrawBase.prototype,"vsSource",{get:function(){return this._vsSource},enumerable:!0,configurable:!0});Object.defineProperty(_GLDrawBase.prototype,"fsSource",{get:function(){return this._fsSource},enumerable:!0,configurable:!0});return _GLDrawBase}(),_GLDrawRect=function(t){__extends(_GLDrawRect,t);function _GLDrawRect(e){var i=t.call(this,e)||this;i.BUFFER_SIZE=1e4;i.bufRects=[];i.bufLen=0;i.init();return i}_GLDrawRect.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(12*this.BUFFER_SIZE);this.bufRects=new Array(this.BUFFER_SIZE);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}};_GLDrawRect.prototype.drawRect=function(t,e,i){void 0===i&&(i=null);this.initBuffers();var r=!1;i!==this.previousClip&&(r=null===i||null===this.previousClip||!i.equals(this.previousClip));if(e!==this.previousFill||r){this.flush();this.previousFill=e;this.previousClip=i}this.bufRects[this.bufLen++]=t;this.bufLen>=this.BUFFER_SIZE&&this.flush()};_GLDrawRect.prototype.flush=function(){if(0!=this.bufLen){var t=this.gl;t.useProgram(this.shaderProgram);var e=this.previousClip;if(e){t.enable(t.SCISSOR_TEST);t.scissor(e.left,t.canvas.height-e.bottom,e.width+1,e.height+1)}var i=new core.Color(this.previousFill);t.uniform4f(this.colorLocation,i.r/255,i.g/255,i.b/255,i.a);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);this.setData();t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.drawArrays(t.TRIANGLES,0,6*this.bufLen);e&&t.disable(t.SCISSOR_TEST);this.bufLen=0}};_GLDrawRect.prototype.setData=function(){for(var t=this.gl,e=this.bufLen,i=this.buffer,r=0;r<e;r++){var n=this.bufRects[r],o=n.left,s=n.right,a=n.top,u=n.bottom,h=12*r;i[h]=o;i[h+1]=a;i[h+2]=s;i[h+3]=a;i[h+4]=o;i[h+5]=u;i[h+6]=o;i[h+7]=u;i[h+8]=s;i[h+9]=a;i[h+10]=s;i[h+11]=u}t.bufferSubData(t.ARRAY_BUFFER,0,i.subarray(0,12*e))};return _GLDrawRect}(_GLDrawBase),_GLDrawEllipse=function(t){__extends(_GLDrawEllipse,t);function _GLDrawEllipse(e){var i=t.call(this,e)||this;i.NTRIANGLES=12;i.BUFFER_SIZE=1e4;i.bufRects=new Array(i.BUFFER_SIZE);i.bufLen=0;i.sin1=new Float32Array(i.NTRIANGLES);i.sin2=new Float32Array(i.NTRIANGLES);i.cos1=new Float32Array(i.NTRIANGLES);i.cos2=new Float32Array(i.NTRIANGLES);i.data=new Float32Array(i.BUFFER_SIZE*i.NTRIANGLES*6);for(var r=2*Math.PI/i.NTRIANGLES,n=0;n<i.NTRIANGLES;n++){var o=r*n;i.sin1[n]=Math.sin(o);i.cos1[n]=Math.cos(o);i.sin2[n]=Math.sin(o+r);i.cos2[n]=Math.cos(o+r)}i.init();e.enableVertexAttribArray(i.positionAttributeLocation);e.bindBuffer(e.ARRAY_BUFFER,i.positionBuffer);e.vertexAttribPointer(i.positionAttributeLocation,2,e.FLOAT,!1,0,0);e.bufferData(e.ARRAY_BUFFER,4*i.data.length,e.DYNAMIC_DRAW);return i}_GLDrawEllipse.prototype.drawEllipse=function(t,e){if(e!==this.previousFill){this.flush();this.previousFill=e}this.bufRects[this.bufLen++]=t;this.bufLen>=this.BUFFER_SIZE&&this.flush()};_GLDrawEllipse.prototype.flush=function(){if(0!=this.bufLen){var t=this.gl;t.useProgram(this.shaderProgram);var e=new core.Color(this.previousFill);t.uniform4f(this.colorLocation,e.r/255,e.g/255,e.b/255,e.a);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);this.setData();t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.drawArrays(t.TRIANGLES,0,this.bufLen*this.NTRIANGLES*3);this.bufLen=0}};_GLDrawEllipse.prototype.setData=function(){for(var t=this.gl,e=this.bufLen,i=this.data,r=0,n=0;n<e;n++)for(var o=this.bufRects[n],s=.5*o.width,a=.5*o.height,u=o.left+s,h=o.top+a,f=0;f<this.NTRIANGLES;f++){i[r=6*(n*this.NTRIANGLES+f)]=u;i[r+1]=h;i[r+2]=u+s*this.sin1[f];i[r+3]=h+a*this.cos1[f];i[r+4]=u+s*this.sin2[f];i[r+5]=h+a*this.cos2[f]}t.bufferSubData(t.ARRAY_BUFFER,0,i.subarray(0,r+6))};return _GLDrawEllipse}(_GLDrawBase),_GLDrawPoints=function(t){__extends(_GLDrawPoints,t);function _GLDrawPoints(e){var i=t.call(this,e)||this;i.BUFFER_SIZE=1e5;i.bufferLen=0;i._vsSource1="\n attribute vec2 a_position;\n uniform vec2 u_resolution;\n void main() {\n vec2 zeroToOne = a_position / u_resolution;\n vec2 zeroToTwo = zeroToOne * 2.0;\n vec2 clipSpace = zeroToTwo - 1.0;\n gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n gl_PointSize = 5.0;\n }\n ";i.init();return i}_GLDrawPoints.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(this.BUFFER_SIZE);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}};_GLDrawPoints.prototype.drawPoint=function(t,e){this.initBuffers();if(e!==this.previousFill){this.flush();this.previousFill=e}this.buffer[this.bufferLen++]=t.x;this.buffer[this.bufferLen++]=t.y;this.bufferLen>=this.BUFFER_SIZE&&this.flush()};_GLDrawPoints.prototype.flush=function(){if(0!=this.bufferLen){var t=this.gl;t.useProgram(this.shaderProgram);var e=new core.Color(this.previousFill);t.uniform4f(this.colorLocation,e.r/255,e.g/255,e.b/255,e.a>0?1:0);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferSubData(t.ARRAY_BUFFER,0,this.buffer.subarray(0,this.bufferLen));t.drawArrays(t.POINTS,0,this.bufferLen/2);this.bufferLen=0}};Object.defineProperty(_GLDrawPoints.prototype,"vsSource",{get:function(){return this._vsSource1},enumerable:!0,configurable:!0});return _GLDrawPoints}(_GLDrawBase),_GLDrawLines=function(t){__extends(_GLDrawLines,t);function _GLDrawLines(e){var i=t.call(this,e)||this;i.BUFFER_SIZE=1e6;i.init();return i}_GLDrawLines.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(4*this.BUFFER_SIZE);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}};_GLDrawLines.prototype.drawLines=function(t,e,i,r,n){void 0===n&&(n=null);this.initBuffers();var o=i||t.length,s=this.gl;s.useProgram(this.shaderProgram);if(n){s.enable(s.SCISSOR_TEST);s.scissor(n.left,s.canvas.height-n.bottom,n.width+1,n.height+1)}var a=new core.Color(r);s.uniform4f(this.colorLocation,a.r/255,a.g/255,a.b/255,a.a>0?1:0);s.enableVertexAttribArray(this.positionAttributeLocation);s.bindBuffer(s.ARRAY_BUFFER,this.positionBuffer);s.vertexAttribPointer(this.positionAttributeLocation,2,s.FLOAT,!1,0,0);for(var u=0;u<o;u++){this.buffer[2*u]=t[u];this.buffer[2*u+1]=e[u]}s.bufferSubData(s.ARRAY_BUFFER,0,this.buffer.subarray(0,2*o));s.enableVertexAttribArray(this.positionAttributeLocation);s.bindBuffer(s.ARRAY_BUFFER,this.positionBuffer);s.vertexAttribPointer(this.positionAttributeLocation,2,s.FLOAT,!1,0,0);s.drawArrays(s.LINE_STRIP,0,o);n&&s.disable(s.SCISSOR_TEST)};return _GLDrawLines}(_GLDrawBase),_GLDrawAreas=function(t){__extends(_GLDrawAreas,t);function _GLDrawAreas(e){var i=t.call(this,e)||this;i.earcut=new _EarCut;i.BUFFER_SIZE=1e6;i.init();return i}_GLDrawAreas.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(4*this.BUFFER_SIZE);t.enableVertexAttribArray(this.positionAttributeLocation);t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer);t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0);t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}};_GLDrawAreas.prototype.drawPolygon=function(t,e,i,r){void 0===r&&(r=null);this.initBuffers();for(var n=t.length,o=[],s=0;s<n;s++){o.push(t[s]);o.push(e[s])}var a=this.earcut.earcut(o),u=this.gl;u.useProgram(this.shaderProgram);if(r){u.enable(u.SCISSOR_TEST);u.scissor(r.left,u.canvas.height-r.bottom,r.width,r.height)}var h=new core.Color(i);u.uniform4f(this.colorLocation,h.r/255,h.g/255,h.b/255,h.a>0?1:0);u.enableVertexAttribArray(this.positionAttributeLocation);u.bindBuffer(u.ARRAY_BUFFER,this.positionBuffer);u.vertexAttribPointer(this.positionAttributeLocation,2,u.FLOAT,!1,0,0);var f=0;for(s=0;s<a.length;s++){this.buffer[f++]=o[2*a[s]];this.buffer[f++]=o[2*a[s]+1]}u.bufferSubData(u.ARRAY_BUFFER,0,this.buffer.subarray(0,f));u.enableVertexAttribArray(this.positionAttributeLocation);u.bindBuffer(u.ARRAY_BUFFER,this.positionBuffer);u.vertexAttribPointer(this.positionAttributeLocation,2,u.FLOAT,!1,0,0);u.drawArrays(u.TRIANGLES,0,a.length);r&&u.disable(u.SCISSOR_TEST)};return _GLDrawAreas}(_GLDrawBase);wijmo_1._registerModule("wijmo.chart.webgl",selfModule);
package/wijmo.cloud.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
package/wijmo.cloud.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -11,4 +11,4 @@
11
11
  *
12
12
  */
13
13
 
14
- "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)},__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),selfModule=__importStar(require("wijmo/wijmo.cloud")),OAuth2=function(){function OAuth2(e,t,o,r){var i=this;this.userChanged=new wijmo_1.Event;this.error=new wijmo_1.Event;this._gapi=window.gapi;if(this._gapi)this._gapiLoaded(e,t,o);else{var n=document.createElement("script");n.src="https://apis.google.com/js/api.js";n.onload=function(){return i._gapiLoaded(e,t,o)};document.head.appendChild(n)}wijmo_1.copy(this,r)}Object.defineProperty(OAuth2.prototype,"user",{get:function(){var e=this._auth();if(e&&e.isSignedIn.get()){var t=e.currentUser.get().getBasicProfile();return{id:t.getId(),name:t.getName(),firstName:t.getGivenName(),lastName:t.getFamilyName(),imageUrl:t.getImageUrl(),eMail:t.getEmail()}}return null},enumerable:!0,configurable:!0});Object.defineProperty(OAuth2.prototype,"accessToken",{get:function(){var e=this._gapi.auth.getToken();return e?e.access_token:null},enumerable:!0,configurable:!0});Object.defineProperty(OAuth2.prototype,"idToken",{get:function(){var e=this._gapi.auth.getToken();return e?e.id_token:null},enumerable:!0,configurable:!0});OAuth2.prototype.signIn=function(){var e=this;this._auth().signIn().then((function(e){}),(function(t){"popup_closed_by_user"!=t&&e.onError(new OAuthError(t))}))};OAuth2.prototype.signOut=function(){this._auth().signOut()};OAuth2.prototype.onUserChanged=function(e){this.userChanged.raise(this,e)};OAuth2.prototype.onError=function(e){this.error.raise(this,e)};OAuth2.prototype._gapiLoaded=function(e,t,o){var r=this,i=this._gapi=window.gapi;wijmo_1.assert(i,"Failed to load google gapi.");i.load("client:auth2",(function(){var n=o&&o.length?o.join(" "):"";n=n||"https://www.googleapis.com/auth/userinfo.email";i.client.init({apiKey:e,clientId:t,scope:n}).then((function(){r._auth().isSignedIn.listen((function(){r.onUserChanged()}));r.onUserChanged()}),(function(e){r.onError(new OAuthError(e))}))}))};OAuth2.prototype._auth=function(){return this._gapi&&this._gapi.auth2?this._gapi.auth2.getAuthInstance():null};return OAuth2}();exports.OAuth2=OAuth2;var OAuthError=function(e){__extends(OAuthError,e);function OAuthError(t){var o=e.call(this)||this;o._error=t;return o}Object.defineProperty(OAuthError.prototype,"error",{get:function(){return this._error},enumerable:!0,configurable:!0});return OAuthError}(wijmo_1.EventArgs);exports.OAuthError=OAuthError;var Snapshot=function(e){__extends(Snapshot,e);function Snapshot(t,o){var r=e.call(this)||this;r._loading=!1;r._deferCommits=!1;r._hasPendingChanges=!1;r.loading=new wijmo_1.Event;r.loaded=new wijmo_1.Event;r.error=new wijmo_1.Event;r.hasPendingChangesChanged=new wijmo_1.Event;r._checkType("CollectionReference",t,"firestore","doc","onSnapshot");r._collection=t;wijmo_1.copy(r,o);r.itemsEdited.collectionChanged.addHandler(r._updateHasChanges,r);r.itemsAdded.collectionChanged.addHandler(r._updateHasChanges,r);r.itemsRemoved.collectionChanged.addHandler(r._updateHasChanges,r);r._getData();return r}Object.defineProperty(Snapshot.prototype,"query",{get:function(){return this._query},set:function(e){if(e!=this._query){this._checkType("Query",e,"firestore","onSnapshot");this._query=e;this._getData()}},enumerable:!0,configurable:!0});Object.defineProperty(Snapshot.prototype,"deferCommits",{get:function(){return this._deferCommits},set:function(e){this._deferCommits=wijmo_1.asBoolean(e);this.deferCommits&&(this.trackChanges=!0)},enumerable:!0,configurable:!0});Snapshot.prototype.commitChanges=function(){var e=this;if(this.deferCommits&&this.hasPendingChanges){var t=this._collection.firestore.batch();this.itemsEdited.forEach((function(o){var r=e._getItemDoc(o),i=e._getItemData(o);t.update(r,i)}));this.itemsAdded.forEach((function(o){var r=e._getItemDoc(o),i=e._getItemData(o);t.set(r,i)}));this.itemsRemoved.forEach((function(o){var r=e._getItemDoc(o);t.delete(r)}));t.commit().then((function(){e.clearChanges();e._getData(!0)})).catch((function(t){return e._raiseError(t,!0)}))}};Snapshot.prototype.cancelChanges=function(){if(this.deferCommits){this.clearChanges();this._getData(!0)}};Object.defineProperty(Snapshot.prototype,"hasPendingChanges",{get:function(){return!!this.deferCommits&&(this.itemsAdded.length>0||this.itemsEdited.length>0||this.itemsRemoved.length>0)},enumerable:!0,configurable:!0});Object.defineProperty(Snapshot.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0});Snapshot.prototype.load=function(e){this._getData(e)};Snapshot.prototype.onLoading=function(e){this.loading.raise(this,e);return!e.cancel};Snapshot.prototype.onLoaded=function(e){this.loaded.raise(this,e)};Snapshot.prototype.onError=function(e){if(this._loading){this._loading=!1;this.onLoaded()}this.error.raise(this,e);return!e.cancel};Snapshot.prototype.onHasPendingChangesChanged=function(e){this.hasPendingChangesChanged.raise(this,e)};Snapshot.prototype.commitNew=function(){var t=this;if(!this.deferCommits){var o=this.currentAddItem;o&&this._collection.add(this._getItemData(o)).catch((function(e){return t._raiseError(e,!0)}))}e.prototype.commitNew.call(this)};Snapshot.prototype.commitEdit=function(){var t=this;if(!this.deferCommits){var o=this.currentEditItem;if(o&&!this.currentAddItem&&this._getChangedFields(o,this._edtClone)){var r=this._getItemDoc(o),i=this._getItemData(o);r.update(i).catch((function(e){return t._raiseError(e,!0)}))}}e.prototype.commitEdit.call(this)};Snapshot.prototype.remove=function(t){var o=this;if(!this.deferCommits&&t&&t!=this.currentAddItem){this._getItemDoc(t).delete().catch((function(e){return o._raiseError(e,!0)}))}e.prototype.remove.call(this,t)};Snapshot.prototype._raiseError=function(e,t){this.onError(new FirestoreErrorEventArgs(e));t&&this._getData(!0)};Snapshot.prototype._updateHasChanges=function(){var e=this.hasPendingChanges;if(e!=this._hasPendingChanges){this._hasPendingChanges=e;this.onHasPendingChangesChanged()}};Snapshot.prototype._getItemDoc=function(e){var t=e&&e.$META?e.$META.id:this._generateID();return this._collection.doc(t)};Snapshot.prototype._getItemData=function(e){var t={},o=this.calculatedFields;for(var r in e)o&&r in o||"$META"!=r&&(t[r]=e[r]);return t};Snapshot.prototype._getData=function(e){var t=this;this._toGetData&&clearTimeout(this._toGetData);this._toGetData=setTimeout((function(){t._toGetData=null;t._loading=!0;if(t.onLoading(new wijmo_1.CancelEventArgs)){t._unsubscribe&&t._unsubscribe();t._unsubscribe=t._getQuery().onSnapshot((function(o){var r=[],i=e||!t._loading?t.currentPosition:null;o.forEach((function(e){r.push(__assign({$META:{id:e.id}},e.data()))}));t.sourceCollection=r;null!=i&&t.moveCurrentToPosition(i);if(t._loading){t._loading=!1;t.onLoaded()}}),(function(e){return t._raiseError(e,!0)}))}}),wijmo_1.Control._REFRESH_INTERVAL)};Snapshot.prototype._generateID=function(){for(var e="";e.length<20;)e+=Math.random().toString(36).substr(2,5);return e};Snapshot.prototype._checkType=function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];if(null!=t)for(var i=0;i<o.length;i++){var n=o[i];null==t[n]&&wijmo_1.assert(!1,'Expected "'+e+'" but the value does not have "'+n+'".')}};Snapshot.prototype._getQuery=function(){return this._query||this._collection};return Snapshot}(wijmo_1.CollectionView);exports.Snapshot=Snapshot;var FirestoreErrorEventArgs=function(e){__extends(FirestoreErrorEventArgs,e);function FirestoreErrorEventArgs(t){var o=e.call(this)||this;o._error=t;return o}Object.defineProperty(FirestoreErrorEventArgs.prototype,"error",{get:function(){return this._error},enumerable:!0,configurable:!0});Object.defineProperty(FirestoreErrorEventArgs.prototype,"message",{get:function(){return this._error.message},enumerable:!0,configurable:!0});return FirestoreErrorEventArgs}(wijmo_1.CancelEventArgs);exports.FirestoreErrorEventArgs=FirestoreErrorEventArgs;var Sheet=function(e){__extends(Sheet,e);function Sheet(t,o,r){var i=e.call(this)||this;i._loading=!1;i.loading=new wijmo_1.Event;i.loaded=new wijmo_1.Event;i.error=new wijmo_1.Event;i._gSheet=t;i._title=o;i._id=r;i._getData();t.accessTokenChanged.addHandler((function(){t.accessToken&&!i.items.length&&i._getData(!0)}));return i}Object.defineProperty(Sheet.prototype,"googleSheet",{get:function(){return this._gSheet},enumerable:!0,configurable:!0});Object.defineProperty(Sheet.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0});Sheet.prototype.load=function(e){this._getData(e)};Object.defineProperty(Sheet.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0});Sheet.prototype.onLoading=function(e){this.loading.raise(this,e);return!e.cancel};Sheet.prototype.onLoaded=function(e){this.loaded.raise(this,e)};Sheet.prototype.onError=function(e){if(this._loading){this._loading=!1;this.onLoaded()}this.error.raise(this,e);return!e.cancel};Sheet.prototype.commitNew=function(){var t=this.currentAddItem;t&&this._saveItem(t);e.prototype.commitNew.call(this)};Sheet.prototype.commitEdit=function(){var t=this.currentEditItem;t&&!this.currentAddItem&&this._getChangedFields(t,this._edtClone)&&this._saveItem(t);e.prototype.commitEdit.call(this)};Sheet.prototype.remove=function(t){var o=this;if(t&&t!=this.currentAddItem){var r=this.sourceCollection.indexOf(t);wijmo_1.assert(r>-1,"Item not found.");var i=r+1;wijmo_1.assert(null!=this._id,"Sheet doesn't have an ID ? ");var n=this.googleSheet,s=n._getUrl(":batchUpdate");wijmo_1.httpRequest(s,{method:"POST",requestHeaders:n._getRequestHeaders(),data:{requests:[{deleteDimension:{range:{sheetId:this._id,dimension:"ROWS",startIndex:i,endIndex:i+1}}}]},error:function(e){return o._handleError(e,!1)}})}e.prototype.remove.call(this,t)};Sheet.prototype._getData=function(e){var t=this;this._toGetData&&clearTimeout(this._toGetData);this._toGetData=setTimeout((function(){t._loading=!0;t._itemKeys=null;if(t.onLoading(new wijmo_1.CancelEventArgs)){var o=t.currentPosition,r=t.googleSheet,i=r._getUrl("/values/"+t.title+"!2:2");wijmo_1.httpRequest(i,{requestHeaders:r._getRequestHeaders(),data:{valueRenderOption:"UNFORMATTED_VALUE",dateTimeRenderOption:"FORMATTED_STRING"},success:function(i){var n=JSON.parse(i.responseText).values[0],s=r._getUrl("/values/"+t.title);wijmo_1.httpRequest(s,{requestHeaders:r._getRequestHeaders(),data:{valueRenderOption:"UNFORMATTED_VALUE",dateTimeRenderOption:"SERIAL_NUMBER"},success:function(r){var i=JSON.parse(r.responseText).values;t.sourceCollection=t._parseData(i,n);e&&t.moveCurrentToPosition(o);t._loading=!1;t.onLoaded()},error:function(e){return t._handleError(e,!1)}})},error:function(e){return t._handleError(e,!1)}})}}),wijmo_1.Control._REFRESH_INTERVAL)};Sheet.prototype._parseData=function(e,t){for(var o=[],r=e[0],i=!0,n=0;n<r.length&&i;n++){var s=r[n];s&&wijmo_1.isString(s)&&r.indexOf(s)==n||(i=!1)}if(i)e.splice(0,1);else{var a=[];for(n=0;n<r.length;n++)a.push(this._toSheetHeader(n));r=a}this._itemKeys=r;var l=[],h=this._gSheet.columnDataTypes,c=wijmo_1.DataType;r.forEach((function(e){var t=c.Object;h&&h.forEach((function(o){o.pattern.test(e)&&(t=o.dataType)}));l.push(t)}));e.forEach((function(e){var i={};r.forEach((function(o,r){var n=e[r],s=t[r],a=l[r];a==c.Object&&wijmo_1.isNumber(n)&&wijmo_1.isString(s)&&s.length&&(a=c.Date);a!=c.Object&&(n=a==c.Date&&wijmo_1.isNumber(n)?new Date(86400*(n-25568)*1e3):wijmo_1.changeType(n,a));i[o]=n}));o.push(i)}));return o};Sheet.prototype._toSheetHeader=function(e){return e<26?String.fromCharCode(65+e):this._toSheetHeader(Math.floor(e/26)-1)+this._toSheetHeader(e%26)};Sheet.prototype._saveItem=function(e){var t=this,o=this.sourceCollection.indexOf(e);wijmo_1.assert(o>-1,"Item not found?");var r=[];this._itemKeys.forEach((function(t){var o=e[t];r.push(null!=o?o.toString():"")}));var i=this.googleSheet,n=(o+2).toString(),s=this.title+"!A"+n+":Z"+n,a=i._getUrl("/values/"+s);a+=(a.indexOf("?key=")>-1?"&":"?")+"valueInputOption=USER_ENTERED";wijmo_1.httpRequest(a,{method:"PUT",requestHeaders:i._getRequestHeaders(),data:{range:s,values:[r]},error:function(e){return t._handleError(e,!0)}})};Sheet.prototype._handleError=function(e,t){this.onError(new wijmo_1.RequestErrorEventArgs(e));t&&this._getData(!0)};return Sheet}(wijmo_1.CollectionView);exports.Sheet=Sheet;var GoogleSheet=function(){function GoogleSheet(e,t,o){this._sheetId="";this._accessToken="";this._apiKey="";this._loading=!1;this._sheets=new wijmo_1.ObservableArray;this.loading=new wijmo_1.Event;this.loaded=new wijmo_1.Event;this.error=new wijmo_1.Event;this.accessTokenChanged=new wijmo_1.Event;this._sheetId=wijmo_1.asString(e,!1);this._apiKey=wijmo_1.asString(t,!1);wijmo_1.copy(this,o);this._getSheetInfo()}Object.defineProperty(GoogleSheet.prototype,"sheetId",{get:function(){return this._sheetId},enumerable:!0,configurable:!0});Object.defineProperty(GoogleSheet.prototype,"apiKey",{get:function(){return this._apiKey},enumerable:!0,configurable:!0});Object.defineProperty(GoogleSheet.prototype,"accessToken",{get:function(){return this._accessToken},set:function(e){if(e!=this._accessToken){this._accessToken=wijmo_1.asString(e);this.onAccessTokenChanged()}},enumerable:!0,configurable:!0});Object.defineProperty(GoogleSheet.prototype,"columnDataTypes",{get:function(){return this._colTypes},set:function(e){this._colTypes=e},enumerable:!0,configurable:!0});Object.defineProperty(GoogleSheet.prototype,"sheets",{get:function(){return this._sheets},enumerable:!0,configurable:!0});GoogleSheet.prototype.getSheet=function(e){for(var t=0;t<this._sheets.length;t++){var o=this._sheets[t];if(o.title==e)return o}return null};Object.defineProperty(GoogleSheet.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0});GoogleSheet.prototype.onLoading=function(e){this.loading.raise(this,e)};GoogleSheet.prototype.onLoaded=function(e){this.loaded.raise(this,e)};GoogleSheet.prototype.onError=function(e){if(this._loading){this._loading=!1;this.onLoaded()}this.error.raise(this,e);return!e.cancel};GoogleSheet.prototype.onAccessTokenChanged=function(e){this.accessTokenChanged.raise(this,e)};GoogleSheet.prototype._copy=function(e,t){var o=this;if("sheets"==e&&wijmo_1.isArray(t)){t.forEach((function(e){var t=new Sheet(o,e);o.sheets.push(t)}));return!0}return!1};GoogleSheet.prototype._getUrl=function(e){var t="https://sheets.googleapis.com/v4/spreadsheets/"+this.sheetId;e&&(t+=e);this.apiKey&&(t+="?key="+this.apiKey);return t};GoogleSheet.prototype._getRequestHeaders=function(){var e={"Content-Type":"application/json"};this.accessToken&&(e.Authorization="Bearer "+this.accessToken);return e};GoogleSheet.prototype._getSheetInfo=function(){var e=this;this._loading=!0;this.onLoading();wijmo_1.httpRequest(this._getUrl(),{requestHeaders:this._getRequestHeaders(),data:{fields:"sheets.properties"},success:function(t){var o=JSON.parse(t.responseText),r=o.sheets;e.sheets.length?e.sheets.forEach((function(e){for(var t=0;t<r.length;t++){var o=r[t].properties;if(o.title==e.title){e._id=o.sheetId;break}}wijmo_1.assert(null!=e._id,'Could not find sheet "'+e.title+'".')})):o.sheets.forEach((function(t){var o=t.properties;if("GRID"==o.sheetType){var r=new Sheet(e,o.title,o.sheetId);e.sheets.push(r)}}))},error:function(t){e.onError(new wijmo_1.RequestErrorEventArgs(t))},complete:function(t){e._loading=!1;e.onLoaded()}})};return GoogleSheet}();exports.GoogleSheet=GoogleSheet;var Firestore=function(){function Firestore(e,t,o){this._projectId="";this._collections=new wijmo_1.ObservableArray;this._accessToken="";this._idToken="";this._fbToken="";this._apiKey="";this.accessTokenChanged=new wijmo_1.Event;this._projectId=wijmo_1.asString(e,!1);this._apiKey=wijmo_1.asString(t,!1);wijmo_1.copy(this,o)}Object.defineProperty(Firestore.prototype,"projectId",{get:function(){return this._projectId},enumerable:!0,configurable:!0});Object.defineProperty(Firestore.prototype,"apiKey",{get:function(){return this._apiKey},enumerable:!0,configurable:!0});Object.defineProperty(Firestore.prototype,"accessToken",{get:function(){return this._accessToken},set:function(e){if(e!=this._accessToken){this._accessToken=wijmo_1.asString(e);this.onAccessTokenChanged()}},enumerable:!0,configurable:!0});Object.defineProperty(Firestore.prototype,"idToken",{get:function(){return this._idToken},set:function(e){var t=this;if(e!=this._idToken){this._idToken=wijmo_1.asString(e);if(this._idToken){var o="https://identitytoolkit.googleapis.com/v1/accounts:signInWithIdp?key="+this._apiKey;wijmo_1.httpRequest(o,{method:"POST",data:{requestUri:window.location.href,postBody:"id_token="+this._idToken+"&providerId=google.com",returnSecureToken:!0,returnIdpCredential:!0},success:function(e){var o=JSON.parse(e.responseText);t._fbToken=o.idToken;t.onAccessTokenChanged()},error:function(e){t._fbToken="";t.onAccessTokenChanged()}})}else{this._fbToken="";this.onAccessTokenChanged()}}},enumerable:!0,configurable:!0});Object.defineProperty(Firestore.prototype,"collections",{get:function(){return this._collections},enumerable:!0,configurable:!0});Firestore.prototype.getCollection=function(e){for(var t=this._collections,o=0;o<t.length;o++){var r=t[o];if(r.name==e)return r}return null};Firestore.prototype.onAccessTokenChanged=function(e){this.accessTokenChanged.raise(this,e)};Firestore.prototype._copy=function(e,t){var o=this;if("collections"==e&&wijmo_1.isArray(t)){t.forEach((function(e){var t=new Collection(o,e);o.collections.push(t)}));return!0}return!1};return Firestore}();exports.Firestore=Firestore;function softGridFilter(){return wijmo_1._getModule("wijmo.grid.filter")}exports.softGridFilter=softGridFilter;var Collection=function(e){__extends(Collection,e);function Collection(t,o,r){var i=e.call(this)||this;i._loading=!1;i._sortOnServer=!1;i._pageOnServer=!1;i._filterOnServer=!1;i._deferCommits=!1;i._hasPendingChanges=!1;i._orderBy=[];i._fieldFilters=[];i._limit=0;i.loading=new wijmo_1.Event;i.loaded=new wijmo_1.Event;i.error=new wijmo_1.Event;i.hasPendingChangesChanged=new wijmo_1.Event;i._store=t;i._name=o;wijmo_1.copy(i,r);i.sortDescriptions.collectionChanged.addHandler((function(){i.sortOnServer&&!i.hasPendingChanges&&i._getData(!0)}));t.accessTokenChanged.addHandler((function(){t.accessToken&&!i.items.length&&i.load()}));i.itemsEdited.collectionChanged.addHandler(i._updateHasChanges,i);i.itemsAdded.collectionChanged.addHandler(i._updateHasChanges,i);i.itemsRemoved.collectionChanged.addHandler(i._updateHasChanges,i);i._getData();return i}Object.defineProperty(Collection.prototype,"store",{get:function(){return this._store},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"fields",{get:function(){return this._fields},set:function(e){if(e!=this._fields){this._fields=wijmo_1.asArray(e);this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"limit",{get:function(){return this._limit},set:function(e){if(e!=this._limit){this._limit=wijmo_1.asInt(e);this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"sortOnServer",{get:function(){return this._sortOnServer},set:function(e){if(e!=this._sortOnServer){this._sortOnServer=wijmo_1.asBoolean(e);this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"pageOnServer",{get:function(){return this._pageOnServer},set:function(e){if(e!=this._pageOnServer){this._pageOnServer=wijmo_1.asBoolean(e);this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"filterOnServer",{get:function(){return this._filterOnServer},set:function(e){if(e!=this._filterOnServer){this._filterOnServer=wijmo_1.asBoolean(e);if(softGridFilter()){null==Collection._filterCulture&&(Collection._filterCulture=wijmo_1.culture.FlexGridFilter);if(this._filterOnServer){var t=wijmo_1.culture.FlexGridFilter;t.stringOperators=t.numberOperators}else wijmo_1.culture.FlexGridFilter=Collection._filterCulture}this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"deferCommits",{get:function(){return this._deferCommits},set:function(e){this._deferCommits=wijmo_1.asBoolean(e);this.deferCommits&&(this.trackChanges=!0)},enumerable:!0,configurable:!0});Collection.prototype.commitChanges=function(e){var t=this;if(this.deferCommits){var o=[];this.itemsEdited.forEach((function(e){o.push({update:t._itemToDoc(e)})}));this.itemsAdded.forEach((function(e){var r=t._itemToDoc(e);r.name="projects/"+t.store.projectId+"/databases/(default)/documents/"+t.name+"/"+t._generateID();o.push({update:r})}));this.itemsRemoved.forEach((function(e){o.push({delete:e.$META.name})}));o.length&&wijmo_1.httpRequest(this._getUrl(":beginTransaction"),{method:"POST",requestHeaders:this._getRequestHeaders(),success:function(r){var i=JSON.parse(r.responseText);wijmo_1.httpRequest(t._getUrl(":commit"),{method:"POST",data:{writes:o,transaction:i.transaction},requestHeaders:t._getRequestHeaders(),success:function(e){t.clearChanges();t.load()},complete:function(t){wijmo_1.isFunction(e)&&e(t)},error:function(e){return t._raiseError(e,!0)}})},error:function(e){return t._raiseError(e,!0)}})}};Collection.prototype.cancelChanges=function(){if(this.deferCommits){this.clearChanges();this.load()}};Object.defineProperty(Collection.prototype,"hasPendingChanges",{get:function(){return!!this.deferCommits&&(this.itemsAdded.length>0||this.itemsEdited.length>0||this.itemsRemoved.length>0)},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0});Collection.prototype.load=function(e){this._getData(e)};Collection.prototype.select=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.fields=e;return this};Collection.prototype.orderBy=function(e,t){void 0===t&&(t=!0);e?this._orderBy.push(new wijmo_1.SortDescription(wijmo_1.asString(e),wijmo_1.asBoolean(t))):this._orderBy=[];this._getData(!1);return this};Collection.prototype.where=function(e,t,o){if(e){switch(t.toUpperCase()){case"==":t="EQUAL";break;case"!=":t="NOT_EQUAL";break;case">":t="GREATER_THAN";break;case">=":t="GREATER_THAN_OR_EQUAL";break;case"<":t="LESS_THAN";break;case"<=":t="LESS_THAN_OR_EQUAL";break;case"IN":t="IN";wijmo_1.assert(wijmo_1.isArray(o),"IN operator requires array values.");break;default:wijmo_1.assert(!1,"Unknown operator (should be ==, !=, >, >=, <, <=, or IN).")}for(var r=0;r<this._fieldFilters.length;r++){var i=this._fieldFilters[r].fieldFilter;if(i.field.fieldPath==e&&i.op==t){this._fieldFilters.splice(r,1);break}}this._fieldFilters.push({fieldFilter:{field:{fieldPath:e},op:t,value:this._getValueObject(o)}})}else this._fieldFilters=[];this._getData(!1);return this};Collection.prototype.getSubCollection=function(e,t,o){wijmo_1.assert(wijmo_1.isObject(e)&&null!=e.$META,"invalid parent item");var r=new Collection(this.store,t,o);r._parentItem=e;return r};Collection.prototype.onLoading=function(e){this.loading.raise(this,e);return!e.cancel};Collection.prototype.onLoaded=function(e){this.loaded.raise(this,e)};Collection.prototype.onError=function(e){if(this._loading){this._loading=!1;this.onLoaded()}this.error.raise(this,e);return!e.cancel};Collection.prototype.onHasPendingChangesChanged=function(e){this.hasPendingChangesChanged.raise(this,e)};Object.defineProperty(Collection.prototype,"totalItemCount",{get:function(){var e=this._totalCount;return this.pageOnServer?null!=e?e:1e9:this._view?this._view.length:0},set:function(e){this._totalCount=wijmo_1.asInt(e)},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"pageCount",{get:function(){return this.pageSize?Math.ceil(this.totalItemCount/this.pageSize):1},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"pageSize",{get:function(){return this._pgSz},set:function(e){if(e!=this._pgSz){this._pgSz=wijmo_1.asInt(e);if(this.pageOnServer){this._pgIdx=wijmo_1.clamp(this._pgIdx,0,this.pageCount-1);this._getData(!0)}else this.refresh()}},enumerable:!0,configurable:!0});Collection.prototype.onPageChanging=function(t){e.prototype.onPageChanging.call(this,t);!t.cancel&&this.pageOnServer&&(0==this.pageIndex&&0==this.items.length?t.cancel=!0:this._getData(!0));return!t.cancel};Collection.prototype.commitNew=function(){var t=this;if(!this.deferCommits){var o=this.currentAddItem;if(o){var r=this._itemToDoc(o);wijmo_1.httpRequest(this._getUrl(),{method:"POST",data:{fields:r.fields},requestHeaders:this._getRequestHeaders(),success:function(e){var r=JSON.parse(e.responseText);t._saveDocName(r,o);wijmo_1.isNumber(t._totalCount)&&t._totalCount++},error:function(e){return t._raiseError(e,!0)}})}}e.prototype.commitNew.call(this)};Collection.prototype.commitEdit=function(){var t=this;if(!this.deferCommits){var o=this.currentEditItem;if(o&&!this.currentAddItem&&this._getChangedFields(o,this._edtClone)){var r=this._itemToDoc(o);wijmo_1.httpRequest(this._getUrl(r),{method:"PATCH",data:{fields:r.fields},requestHeaders:this._getRequestHeaders(),error:function(e){return t._raiseError(e,!0)}})}}e.prototype.commitEdit.call(this)};Collection.prototype.remove=function(t){var o=this;if(!this.deferCommits&&t&&t!=this.currentAddItem){var r=this._itemToDoc(t);wijmo_1.httpRequest(this._getUrl(r),{method:"DELETE",requestHeaders:this._getRequestHeaders(),success:function(e){wijmo_1.isNumber(o._totalCount)&&o._totalCount--},error:function(e){return o._raiseError(e,!0)}})}e.prototype.remove.call(this,t)};Collection.prototype.updateFilterDefinition=function(e){this._filterProvider=null;if(this.filterOnServer&&softGridFilter()&&e instanceof softGridFilter().FlexGridFilter){this._filterProvider=e;this._totalCount=null;this.moveCurrentToFirst();this._getData(!0)}};Collection.prototype._getPageView=function(){return this.pageOnServer?this._view:e.prototype._getPageView.call(this)};Collection.prototype._generateID=function(){for(var e="";e.length<20;)e+=Math.random().toString(36).substr(2,5);return e};Collection.prototype._updateHasChanges=function(){var e=this.hasPendingChanges;if(e!=this._hasPendingChanges){this._hasPendingChanges=e;this.onHasPendingChangesChanged()}};Collection.prototype._getData=function(e){var t=this;this._toGetData&&clearTimeout(this._toGetData);this._toGetData=setTimeout((function(){t._toGetData=null;t._loading=!0;if(t.onLoading(new wijmo_1.CancelEventArgs)){var o=t.currentPosition;wijmo_1.httpRequest(t._getUrl(":runQuery"),{method:"POST",data:t._getQuery(),requestHeaders:t._getRequestHeaders(),success:function(r){var i=JSON.parse(r.responseText),n=t._parseData(i),s=t.pageSize;if(t.pageOnServer&&s&&n.length<s){var a=i[0].skippedResults||0;t._totalCount=a+n.length;if(0==n.length&&t.pageIndex>0){t.moveToLastPage();return}}t.sourceCollection=n;e&&t.moveCurrentToPosition(o);t._loading=!1;t.onLoaded()},error:function(e){return t._raiseError(e,!1)}})}}),wijmo_1.Control._REFRESH_INTERVAL)};Collection.prototype._getQuery=function(){var e={from:[{collectionId:this.name}]};this.fields&&this.fields.length&&(e.select={fields:this.fields.map((function(e){return{fieldPath:e}}))});var t=this._fieldFilters;!t.length&&this._filterProvider&&this.filterOnServer&&(t=this._getQueryFilters());t&&t.length&&(e.where=1==t.length?t[0]:{compositeFilter:{filters:t,op:"AND"}});var o=[];t&&t.length&&t.forEach((function(e){var t=e.fieldFilter;"IN"!=t.op&&"EQUAL"!=t.op&&o.push({field:t.field.fieldPath,asc:!0})}));this._orderBy.forEach((function(e){o.push({field:e.property,asc:e.ascending})}));!o.length&&this.sortOnServer&&this.sortDescriptions.forEach((function(e){o.push({field:e.property,asc:e.ascending})}));o.length&&(e.orderBy=o.map((function(e){return{field:{fieldPath:e.field},direction:e.asc?"ASCENDING":"DESCENDING"}})));var r=this.pageSize;if(this.pageOnServer&&r){e.limit=r;e.offset=r*this.pageIndex}!e.limit&&this.limit>0&&(e.limit=this.limit);return{structuredQuery:e}};Collection.prototype._parseData=function(e){var t=this,o=[];wijmo_1.isArray(e)&&e.forEach((function(e){var r=t._docToItem(e);r&&o.push(r)}));return o};Collection.prototype._raiseError=function(e,t){this.onError(new wijmo_1.RequestErrorEventArgs(e));t&&this._getData(!0)};Collection.prototype._saveDocName=function(e,t){if(e.name&&!t.$META){t.$META={name:e.name};return!0}return!1};Collection.prototype._docToItem=function(e){e.name||(e=e.document);if(!e||!e.name)return null;var t={};this._saveDocName(e,t);for(var o in e.fields)t[o]=this._getDocValue(e.fields[o]);return t};Collection.prototype._getDocValue=function(e){var t=this,o=null;for(var r in e){o=e[r];switch(r){case"integerValue":o=parseInt(o);break;case"timestampValue":o=new Date(o);break;case"mapValue":var i={};for(var n in o.fields)i[n]=this._getDocValue(o.fields[n]);o=i;break;case"arrayValue":o=o.values?o.values.map((function(e){return t._getDocValue(e)})):[]}}return o};Collection.prototype._itemToDoc=function(e){var t={},o=e.$META,r=this.calculatedFields;o&&o.name&&(t.name=o.name);t.fields={};for(var i in e)r&&i in r||"$META"!=i&&(t.fields[i]=this._getValueObject(e[i]));return t};Collection.prototype._getValueObject=function(e){var t=this,o={},r=wijmo_1.DataType;switch(wijmo_1.getType(e)){case r.String:o.stringValue=e;break;case r.Boolean:o.booleanValue=e;break;case r.Date:o.timestampValue=e.toJSON();break;case r.Number:e==Math.round(e)?o.integerValue=e.toString():o.doubleValue=e;break;case r.Array:o.arrayValue={values:e.map((function(e){return t._getValueObject(e)}))};break;case r.Object:var i={};for(var n in e)i[n]=this._getValueObject(e[n]);o.mapValue={fields:i};break;default:wijmo_1.assert(!1,"failed to create value object.")}return o};Collection.prototype._getRequestHeaders=function(){var e={},t=this.store._fbToken||this.store.accessToken;t&&(e.Authorization="Bearer "+t);return e};Collection.prototype._getUrl=function(e){var t="https://firestore.googleapis.com/v1/";if(wijmo_1.isObject(e)&&e.name)return t+e.name;e||(e="/"+this.name);return t+(this._parentItem?this._parentItem.$META.name:"projects/"+this.store.projectId+"/databases/(default)/documents")+e};Collection.prototype._getQueryFilters=function(){var e=[],t=this._filterProvider;if(softGridFilter()&&t instanceof softGridFilter().FlexGridFilter)for(var o=0;o<t.grid.columns.length;o++){var r=t.grid.columns[o],i=t.getColumnFilter(r,!1);if(i&&i.isActive){i.conditionFilter&&i.conditionFilter.isActive?this._getQueryConditionFilter(e,i.conditionFilter):i.valueFilter&&i.valueFilter.isActive&&this._getQueryValueFilter(e,i.valueFilter);break}}return e};Collection.prototype._getQueryConditionFilter=function(e,t){var o=t.column.binding,r=this._getQuerySimpleFilter(t.condition1,o),i=this._getQuerySimpleFilter(t.condition2,o);r&&i&&t.and?e.push({compositeFilter:{op:t.and?"AND":"OR",filters:[r,i]}}):r?e.push(r):i&&e.push(i)};Collection.prototype._getQuerySimpleFilter=function(e,t){if(e.isActive){var o=softGridFilter().Operator;return e.operator==o.BW?{compositeFilter:{op:"AND",filters:[{fieldFilter:{field:{fieldPath:t},op:"GREATER_THAN_OR_EQUAL",value:this._getValueObject(e.value)}},{fieldFilter:{field:{fieldPath:t},op:"LESS_THAN",value:this._getValueObject(e.value+"")}}]}}:{fieldFilter:{field:{fieldPath:t},op:this._getFilterOperator(e.operator),value:this._getValueObject(e.value)}}}return null};Collection.prototype._getFilterOperator=function(e){var t=softGridFilter().Operator;switch(e){case t.EQ:return"EQUAL";case t.NE:return"NOT_EQUAL";case t.GE:return"GREATER_THAN_OR_EQUAL";case t.GT:return"GREATER_THAN";case t.LE:return"LESS_THAN_OR_EQUAL";case t.LT:return"LESS_THAN"}wijmo_1.assert(!1,t[e]+" operator not supported (use EQ, NE, GT, GE, LT, or LE)")};Collection.prototype._getQueryValueFilter=function(e,t){var o=t.column,r=o.dataMap,i=[];for(var n in t.showValues){var s=wijmo_1.changeType(n,o.dataType,o.format);r&&wijmo_1.isString(s)&&(s=r.getKeyValue(s));i.push(s);if(i.length>=10)break}i.length&&e.push({fieldFilter:{field:{fieldPath:o.binding},op:"IN",value:this._getValueObject(i)}})};Collection._filterCulture=null;return Collection}(wijmo_1.CollectionView);exports.Collection=Collection;wijmo_1._registerModule("wijmo.cloud",selfModule);
14
+ "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)},__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),selfModule=__importStar(require("wijmo/wijmo.cloud")),OAuth2=function(){function OAuth2(e,t,o,r){var i=this;this.userChanged=new wijmo_1.Event;this.error=new wijmo_1.Event;this._gapi=window.gapi;if(this._gapi)this._gapiLoaded(e,t,o);else{var n=document.createElement("script");n.src="https://apis.google.com/js/api.js";n.onload=function(){return i._gapiLoaded(e,t,o)};document.head.appendChild(n)}wijmo_1.copy(this,r)}Object.defineProperty(OAuth2.prototype,"user",{get:function(){var e=this._auth();if(e&&e.isSignedIn.get()){var t=e.currentUser.get().getBasicProfile();return{id:t.getId(),name:t.getName(),firstName:t.getGivenName(),lastName:t.getFamilyName(),imageUrl:t.getImageUrl(),eMail:t.getEmail()}}return null},enumerable:!0,configurable:!0});Object.defineProperty(OAuth2.prototype,"accessToken",{get:function(){var e=this._gapi.auth.getToken();return e?e.access_token:null},enumerable:!0,configurable:!0});Object.defineProperty(OAuth2.prototype,"idToken",{get:function(){var e=this._gapi.auth.getToken();return e?e.id_token:null},enumerable:!0,configurable:!0});OAuth2.prototype.signIn=function(){var e=this;this._auth().signIn().then((function(e){}),(function(t){"popup_closed_by_user"!=t&&e.onError(new OAuthError(t))}))};OAuth2.prototype.signOut=function(){this._auth().signOut()};OAuth2.prototype.onUserChanged=function(e){this.userChanged.raise(this,e)};OAuth2.prototype.onError=function(e){this.error.raise(this,e)};OAuth2.prototype._gapiLoaded=function(e,t,o){var r=this;this._gapi=window.gapi;var i=this._gapi;wijmo_1.assert(i,"Failed to load google gapi.");i.load("client:auth2",(function(){var n=o&&o.length?o.join(" "):"";n=n||"https://www.googleapis.com/auth/userinfo.email";i.client.init({apiKey:e,clientId:t,scope:n}).then((function(){r._auth().isSignedIn.listen((function(){r.onUserChanged()}));r.onUserChanged()}),(function(e){r.onError(new OAuthError(e))}))}))};OAuth2.prototype._auth=function(){return this._gapi&&this._gapi.auth2?this._gapi.auth2.getAuthInstance():null};return OAuth2}();exports.OAuth2=OAuth2;var OAuthError=function(e){__extends(OAuthError,e);function OAuthError(t){var o=e.call(this)||this;o._error=t;return o}Object.defineProperty(OAuthError.prototype,"error",{get:function(){return this._error},enumerable:!0,configurable:!0});return OAuthError}(wijmo_1.EventArgs);exports.OAuthError=OAuthError;var Snapshot=function(e){__extends(Snapshot,e);function Snapshot(t,o){var r=e.call(this)||this;r._loading=!1;r._deferCommits=!1;r._hasPendingChanges=!1;r.loading=new wijmo_1.Event;r.loaded=new wijmo_1.Event;r.error=new wijmo_1.Event;r.hasPendingChangesChanged=new wijmo_1.Event;r._checkType("CollectionReference",t,"firestore","doc","onSnapshot");r._collection=t;wijmo_1.copy(r,o);r.itemsEdited.collectionChanged.addHandler(r._updateHasChanges,r);r.itemsAdded.collectionChanged.addHandler(r._updateHasChanges,r);r.itemsRemoved.collectionChanged.addHandler(r._updateHasChanges,r);r._getData();return r}Object.defineProperty(Snapshot.prototype,"query",{get:function(){return this._query},set:function(e){if(e!=this._query){this._checkType("Query",e,"firestore","onSnapshot");this._query=e;this._getData()}},enumerable:!0,configurable:!0});Object.defineProperty(Snapshot.prototype,"deferCommits",{get:function(){return this._deferCommits},set:function(e){this._deferCommits=wijmo_1.asBoolean(e);this.deferCommits&&(this.trackChanges=!0)},enumerable:!0,configurable:!0});Snapshot.prototype.commitChanges=function(){var e=this;if(this.deferCommits&&this.hasPendingChanges){var t=this._collection.firestore.batch();this.itemsEdited.forEach((function(o){var r=e._getItemDoc(o),i=e._getItemData(o);t.update(r,i)}));this.itemsAdded.forEach((function(o){var r=e._getItemDoc(o),i=e._getItemData(o);t.set(r,i)}));this.itemsRemoved.forEach((function(o){var r=e._getItemDoc(o);t.delete(r)}));t.commit().then((function(){e.clearChanges();e._getData(!0)})).catch((function(t){return e._raiseError(t,!0)}))}};Snapshot.prototype.cancelChanges=function(){if(this.deferCommits){this.clearChanges();this._getData(!0)}};Object.defineProperty(Snapshot.prototype,"hasPendingChanges",{get:function(){return!!this.deferCommits&&(this.itemsAdded.length>0||this.itemsEdited.length>0||this.itemsRemoved.length>0)},enumerable:!0,configurable:!0});Object.defineProperty(Snapshot.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0});Snapshot.prototype.load=function(e){this._getData(e)};Snapshot.prototype.onLoading=function(e){this.loading.raise(this,e);return!e.cancel};Snapshot.prototype.onLoaded=function(e){this.loaded.raise(this,e)};Snapshot.prototype.onError=function(e){if(this._loading){this._loading=!1;this.onLoaded()}this.error.raise(this,e);return!e.cancel};Snapshot.prototype.onHasPendingChangesChanged=function(e){this.hasPendingChangesChanged.raise(this,e)};Snapshot.prototype.commitNew=function(){var t=this;if(!this.deferCommits){var o=this.currentAddItem;o&&this._collection.add(this._getItemData(o)).catch((function(e){return t._raiseError(e,!0)}))}e.prototype.commitNew.call(this)};Snapshot.prototype.commitEdit=function(){var t=this;if(!this.deferCommits){var o=this.currentEditItem;if(o&&!this.currentAddItem&&this._getChangedFields(o,this._edtClone)){var r=this._getItemDoc(o),i=this._getItemData(o);r.update(i).catch((function(e){return t._raiseError(e,!0)}))}}e.prototype.commitEdit.call(this)};Snapshot.prototype.remove=function(t){var o=this;if(!this.deferCommits&&t&&t!=this.currentAddItem){this._getItemDoc(t).delete().catch((function(e){return o._raiseError(e,!0)}))}e.prototype.remove.call(this,t)};Snapshot.prototype._raiseError=function(e,t){this.onError(new FirestoreErrorEventArgs(e));t&&this._getData(!0)};Snapshot.prototype._updateHasChanges=function(){var e=this.hasPendingChanges;if(e!=this._hasPendingChanges){this._hasPendingChanges=e;this.onHasPendingChangesChanged()}};Snapshot.prototype._getItemDoc=function(e){var t=e&&e.$META?e.$META.id:this._generateID();return this._collection.doc(t)};Snapshot.prototype._getItemData=function(e){var t={},o=this.calculatedFields;for(var r in e)o&&r in o||"$META"!=r&&(t[r]=e[r]);return t};Snapshot.prototype._getData=function(e){var t=this;this._toGetData&&clearTimeout(this._toGetData);this._toGetData=setTimeout((function(){t._toGetData=null;t._loading=!0;if(t.onLoading(new wijmo_1.CancelEventArgs)){t._unsubscribe&&t._unsubscribe();t._unsubscribe=t._getQuery().onSnapshot((function(o){var r=[],i=e||!t._loading?t.currentPosition:null;o.forEach((function(e){r.push(__assign({$META:{id:e.id}},e.data()))}));t.sourceCollection=r;null!=i&&t.moveCurrentToPosition(i);if(t._loading){t._loading=!1;t.onLoaded()}}),(function(e){return t._raiseError(e,!0)}))}}),wijmo_1.Control._REFRESH_INTERVAL)};Snapshot.prototype._generateID=function(){for(var e="";e.length<20;)e+=Math.random().toString(36).substr(2,5);return e};Snapshot.prototype._checkType=function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];if(null!=t)for(var i=0;i<o.length;i++){var n=o[i];null==t[n]&&wijmo_1.assert(!1,'Expected "'+e+'" but the value does not have "'+n+'".')}};Snapshot.prototype._getQuery=function(){return this._query||this._collection};return Snapshot}(wijmo_1.CollectionView);exports.Snapshot=Snapshot;var FirestoreErrorEventArgs=function(e){__extends(FirestoreErrorEventArgs,e);function FirestoreErrorEventArgs(t){var o=e.call(this)||this;o._error=t;return o}Object.defineProperty(FirestoreErrorEventArgs.prototype,"error",{get:function(){return this._error},enumerable:!0,configurable:!0});Object.defineProperty(FirestoreErrorEventArgs.prototype,"message",{get:function(){return this._error.message},enumerable:!0,configurable:!0});return FirestoreErrorEventArgs}(wijmo_1.CancelEventArgs);exports.FirestoreErrorEventArgs=FirestoreErrorEventArgs;var Sheet=function(e){__extends(Sheet,e);function Sheet(t,o,r){var i=e.call(this)||this;i._loading=!1;i.loading=new wijmo_1.Event;i.loaded=new wijmo_1.Event;i.error=new wijmo_1.Event;i._gSheet=t;i._title=o;i._id=r;i._getData();t.accessTokenChanged.addHandler((function(){t.accessToken&&!i.items.length&&i._getData(!0)}));return i}Object.defineProperty(Sheet.prototype,"googleSheet",{get:function(){return this._gSheet},enumerable:!0,configurable:!0});Object.defineProperty(Sheet.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0});Sheet.prototype.load=function(e){this._getData(e)};Object.defineProperty(Sheet.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0});Sheet.prototype.onLoading=function(e){this.loading.raise(this,e);return!e.cancel};Sheet.prototype.onLoaded=function(e){this.loaded.raise(this,e)};Sheet.prototype.onError=function(e){if(this._loading){this._loading=!1;this.onLoaded()}this.error.raise(this,e);return!e.cancel};Sheet.prototype.commitNew=function(){var t=this.currentAddItem;t&&this._saveItem(t);e.prototype.commitNew.call(this)};Sheet.prototype.commitEdit=function(){var t=this.currentEditItem;t&&!this.currentAddItem&&this._getChangedFields(t,this._edtClone)&&this._saveItem(t);e.prototype.commitEdit.call(this)};Sheet.prototype.remove=function(t){var o=this;if(t&&t!=this.currentAddItem){var r=this.sourceCollection.indexOf(t);wijmo_1.assert(r>-1,"Item not found.");var i=r+1;wijmo_1.assert(null!=this._id,"Sheet doesn't have an ID ? ");var n=this.googleSheet,s=n._getUrl(":batchUpdate");wijmo_1.httpRequest(s,{method:"POST",requestHeaders:n._getRequestHeaders(),data:{requests:[{deleteDimension:{range:{sheetId:this._id,dimension:"ROWS",startIndex:i,endIndex:i+1}}}]},error:function(e){return o._handleError(e,!1)}})}e.prototype.remove.call(this,t)};Sheet.prototype._getData=function(e){var t=this;this._toGetData&&clearTimeout(this._toGetData);this._toGetData=setTimeout((function(){t._loading=!0;t._itemKeys=null;if(t.onLoading(new wijmo_1.CancelEventArgs)){var o=t.currentPosition,r=t.googleSheet,i=r._getUrl("/values/"+t.title+"!2:2");wijmo_1.httpRequest(i,{requestHeaders:r._getRequestHeaders(),data:{valueRenderOption:"UNFORMATTED_VALUE",dateTimeRenderOption:"FORMATTED_STRING"},success:function(i){var n=JSON.parse(i.responseText).values[0],s=r._getUrl("/values/"+t.title);wijmo_1.httpRequest(s,{requestHeaders:r._getRequestHeaders(),data:{valueRenderOption:"UNFORMATTED_VALUE",dateTimeRenderOption:"SERIAL_NUMBER"},success:function(r){var i=JSON.parse(r.responseText).values;t.sourceCollection=t._parseData(i,n);e&&t.moveCurrentToPosition(o);t._loading=!1;t.onLoaded()},error:function(e){return t._handleError(e,!1)}})},error:function(e){return t._handleError(e,!1)}})}}),wijmo_1.Control._REFRESH_INTERVAL)};Sheet.prototype._parseData=function(e,t){for(var o=[],r=e[0],i=!0,n=0;n<r.length&&i;n++){var s=r[n];s&&wijmo_1.isString(s)&&r.indexOf(s)==n||(i=!1)}if(i)e.splice(0,1);else{var a=[];for(n=0;n<r.length;n++)a.push(this._toSheetHeader(n));r=a}this._itemKeys=r;var l=[],h=this._gSheet.columnDataTypes,c=wijmo_1.DataType;r.forEach((function(e){var t=c.Object;h&&h.forEach((function(o){o.pattern.test(e)&&(t=o.dataType)}));l.push(t)}));e.forEach((function(e){var i={};r.forEach((function(o,r){var n=e[r],s=t[r],a=l[r];a==c.Object&&wijmo_1.isNumber(n)&&wijmo_1.isString(s)&&s.length&&(a=c.Date);a!=c.Object&&(n=a==c.Date&&wijmo_1.isNumber(n)?new Date(86400*(n-25568)*1e3):wijmo_1.changeType(n,a));i[o]=n}));o.push(i)}));return o};Sheet.prototype._toSheetHeader=function(e){return e<26?String.fromCharCode(65+e):this._toSheetHeader(Math.floor(e/26)-1)+this._toSheetHeader(e%26)};Sheet.prototype._saveItem=function(e){var t=this,o=this.sourceCollection.indexOf(e);wijmo_1.assert(o>-1,"Item not found?");var r=[];this._itemKeys.forEach((function(t){var o=e[t];r.push(null!=o?o.toString():"")}));var i=this.googleSheet,n=(o+2).toString(),s=this.title+"!A"+n+":Z"+n,a=i._getUrl("/values/"+s);a+=(a.indexOf("?key=")>-1?"&":"?")+"valueInputOption=USER_ENTERED";wijmo_1.httpRequest(a,{method:"PUT",requestHeaders:i._getRequestHeaders(),data:{range:s,values:[r]},error:function(e){return t._handleError(e,!0)}})};Sheet.prototype._handleError=function(e,t){this.onError(new wijmo_1.RequestErrorEventArgs(e));t&&this._getData(!0)};return Sheet}(wijmo_1.CollectionView);exports.Sheet=Sheet;var GoogleSheet=function(){function GoogleSheet(e,t,o){this._sheetId="";this._accessToken="";this._apiKey="";this._loading=!1;this._sheets=new wijmo_1.ObservableArray;this.loading=new wijmo_1.Event;this.loaded=new wijmo_1.Event;this.error=new wijmo_1.Event;this.accessTokenChanged=new wijmo_1.Event;this._sheetId=wijmo_1.asString(e,!1);this._apiKey=wijmo_1.asString(t,!1);wijmo_1.copy(this,o);this._getSheetInfo()}Object.defineProperty(GoogleSheet.prototype,"sheetId",{get:function(){return this._sheetId},enumerable:!0,configurable:!0});Object.defineProperty(GoogleSheet.prototype,"apiKey",{get:function(){return this._apiKey},enumerable:!0,configurable:!0});Object.defineProperty(GoogleSheet.prototype,"accessToken",{get:function(){return this._accessToken},set:function(e){if(e!=this._accessToken){this._accessToken=wijmo_1.asString(e);this.onAccessTokenChanged()}},enumerable:!0,configurable:!0});Object.defineProperty(GoogleSheet.prototype,"columnDataTypes",{get:function(){return this._colTypes},set:function(e){this._colTypes=e},enumerable:!0,configurable:!0});Object.defineProperty(GoogleSheet.prototype,"sheets",{get:function(){return this._sheets},enumerable:!0,configurable:!0});GoogleSheet.prototype.getSheet=function(e){for(var t=0;t<this._sheets.length;t++){var o=this._sheets[t];if(o.title==e)return o}return null};Object.defineProperty(GoogleSheet.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0});GoogleSheet.prototype.onLoading=function(e){this.loading.raise(this,e)};GoogleSheet.prototype.onLoaded=function(e){this.loaded.raise(this,e)};GoogleSheet.prototype.onError=function(e){if(this._loading){this._loading=!1;this.onLoaded()}this.error.raise(this,e);return!e.cancel};GoogleSheet.prototype.onAccessTokenChanged=function(e){this.accessTokenChanged.raise(this,e)};GoogleSheet.prototype._copy=function(e,t){var o=this;if("sheets"==e&&wijmo_1.isArray(t)){t.forEach((function(e){var t=new Sheet(o,e);o.sheets.push(t)}));return!0}return!1};GoogleSheet.prototype._getUrl=function(e){var t="https://sheets.googleapis.com/v4/spreadsheets/"+this.sheetId;e&&(t+=e);this.apiKey&&(t+="?key="+this.apiKey);return t};GoogleSheet.prototype._getRequestHeaders=function(){var e={"Content-Type":"application/json"};this.accessToken&&(e.Authorization="Bearer "+this.accessToken);return e};GoogleSheet.prototype._getSheetInfo=function(){var e=this;this._loading=!0;this.onLoading();wijmo_1.httpRequest(this._getUrl(),{requestHeaders:this._getRequestHeaders(),data:{fields:"sheets.properties"},success:function(t){var o=JSON.parse(t.responseText),r=o.sheets;e.sheets.length?e.sheets.forEach((function(e){for(var t=0;t<r.length;t++){var o=r[t].properties;if(o.title==e.title){e._id=o.sheetId;break}}wijmo_1.assert(null!=e._id,'Could not find sheet "'+e.title+'".')})):o.sheets.forEach((function(t){var o=t.properties;if("GRID"==o.sheetType){var r=new Sheet(e,o.title,o.sheetId);e.sheets.push(r)}}))},error:function(t){e.onError(new wijmo_1.RequestErrorEventArgs(t))},complete:function(t){e._loading=!1;e.onLoaded()}})};return GoogleSheet}();exports.GoogleSheet=GoogleSheet;var Firestore=function(){function Firestore(e,t,o){this._projectId="";this._collections=new wijmo_1.ObservableArray;this._accessToken="";this._idToken="";this._fbToken="";this._apiKey="";this.accessTokenChanged=new wijmo_1.Event;this._projectId=wijmo_1.asString(e,!1);this._apiKey=wijmo_1.asString(t,!1);wijmo_1.copy(this,o)}Object.defineProperty(Firestore.prototype,"projectId",{get:function(){return this._projectId},enumerable:!0,configurable:!0});Object.defineProperty(Firestore.prototype,"apiKey",{get:function(){return this._apiKey},enumerable:!0,configurable:!0});Object.defineProperty(Firestore.prototype,"accessToken",{get:function(){return this._accessToken},set:function(e){if(e!=this._accessToken){this._accessToken=wijmo_1.asString(e);this.onAccessTokenChanged()}},enumerable:!0,configurable:!0});Object.defineProperty(Firestore.prototype,"idToken",{get:function(){return this._idToken},set:function(e){var t=this;if(e!=this._idToken){this._idToken=wijmo_1.asString(e);if(this._idToken){var o="https://identitytoolkit.googleapis.com/v1/accounts:signInWithIdp?key="+this._apiKey;wijmo_1.httpRequest(o,{method:"POST",data:{requestUri:window.location.href,postBody:"id_token="+this._idToken+"&providerId=google.com",returnSecureToken:!0,returnIdpCredential:!0},success:function(e){var o=JSON.parse(e.responseText);t._fbToken=o.idToken;t.onAccessTokenChanged()},error:function(e){t._fbToken="";t.onAccessTokenChanged()}})}else{this._fbToken="";this.onAccessTokenChanged()}}},enumerable:!0,configurable:!0});Object.defineProperty(Firestore.prototype,"collections",{get:function(){return this._collections},enumerable:!0,configurable:!0});Firestore.prototype.getCollection=function(e){for(var t=this._collections,o=0;o<t.length;o++){var r=t[o];if(r.name==e)return r}return null};Firestore.prototype.onAccessTokenChanged=function(e){this.accessTokenChanged.raise(this,e)};Firestore.prototype._copy=function(e,t){var o=this;if("collections"==e&&wijmo_1.isArray(t)){t.forEach((function(e){var t=new Collection(o,e);o.collections.push(t)}));return!0}return!1};return Firestore}();exports.Firestore=Firestore;function softGridFilter(){return wijmo_1._getModule("wijmo.grid.filter")}exports.softGridFilter=softGridFilter;var Collection=function(e){__extends(Collection,e);function Collection(t,o,r){var i=e.call(this)||this;i._loading=!1;i._sortOnServer=!1;i._pageOnServer=!1;i._filterOnServer=!1;i._deferCommits=!1;i._hasPendingChanges=!1;i._orderBy=[];i._fieldFilters=[];i._limit=0;i.loading=new wijmo_1.Event;i.loaded=new wijmo_1.Event;i.error=new wijmo_1.Event;i.hasPendingChangesChanged=new wijmo_1.Event;i._store=t;i._name=o;wijmo_1.copy(i,r);i.sortDescriptions.collectionChanged.addHandler((function(){i.sortOnServer&&!i.hasPendingChanges&&i._getData(!0)}));t.accessTokenChanged.addHandler((function(){t.accessToken&&!i.items.length&&i.load()}));i.itemsEdited.collectionChanged.addHandler(i._updateHasChanges,i);i.itemsAdded.collectionChanged.addHandler(i._updateHasChanges,i);i.itemsRemoved.collectionChanged.addHandler(i._updateHasChanges,i);i._getData();return i}Object.defineProperty(Collection.prototype,"store",{get:function(){return this._store},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"fields",{get:function(){return this._fields},set:function(e){if(e!=this._fields){this._fields=wijmo_1.asArray(e);this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"limit",{get:function(){return this._limit},set:function(e){if(e!=this._limit){this._limit=wijmo_1.asInt(e);this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"sortOnServer",{get:function(){return this._sortOnServer},set:function(e){if(e!=this._sortOnServer){this._sortOnServer=wijmo_1.asBoolean(e);this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"pageOnServer",{get:function(){return this._pageOnServer},set:function(e){if(e!=this._pageOnServer){this._pageOnServer=wijmo_1.asBoolean(e);this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"filterOnServer",{get:function(){return this._filterOnServer},set:function(e){if(e!=this._filterOnServer){this._filterOnServer=wijmo_1.asBoolean(e);if(softGridFilter()){null==Collection._filterCulture&&(Collection._filterCulture=wijmo_1.culture.FlexGridFilter);if(this._filterOnServer){var t=wijmo_1.culture.FlexGridFilter;t.stringOperators=t.numberOperators}else wijmo_1.culture.FlexGridFilter=Collection._filterCulture}this._getData(!0)}},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"deferCommits",{get:function(){return this._deferCommits},set:function(e){this._deferCommits=wijmo_1.asBoolean(e);this.deferCommits&&(this.trackChanges=!0)},enumerable:!0,configurable:!0});Collection.prototype.commitChanges=function(e){var t=this;if(this.deferCommits){var o=[];this.itemsEdited.forEach((function(e){o.push({update:t._itemToDoc(e)})}));this.itemsAdded.forEach((function(e){var r=t._itemToDoc(e);r.name="projects/"+t.store.projectId+"/databases/(default)/documents/"+t.name+"/"+t._generateID();o.push({update:r})}));this.itemsRemoved.forEach((function(e){o.push({delete:e.$META.name})}));o.length&&wijmo_1.httpRequest(this._getUrl(":beginTransaction"),{method:"POST",requestHeaders:this._getRequestHeaders(),success:function(r){var i=JSON.parse(r.responseText);wijmo_1.httpRequest(t._getUrl(":commit"),{method:"POST",data:{writes:o,transaction:i.transaction},requestHeaders:t._getRequestHeaders(),success:function(e){t.clearChanges();t.load()},complete:function(t){wijmo_1.isFunction(e)&&e(t)},error:function(e){return t._raiseError(e,!0)}})},error:function(e){return t._raiseError(e,!0)}})}};Collection.prototype.cancelChanges=function(){if(this.deferCommits){this.clearChanges();this.load()}};Object.defineProperty(Collection.prototype,"hasPendingChanges",{get:function(){return!!this.deferCommits&&(this.itemsAdded.length>0||this.itemsEdited.length>0||this.itemsRemoved.length>0)},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0});Collection.prototype.load=function(e){this._getData(e)};Collection.prototype.select=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.fields=e;return this};Collection.prototype.orderBy=function(e,t){void 0===t&&(t=!0);e?this._orderBy.push(new wijmo_1.SortDescription(wijmo_1.asString(e),wijmo_1.asBoolean(t))):this._orderBy=[];this._getData(!1);return this};Collection.prototype.where=function(e,t,o){if(e){switch(t.toUpperCase()){case"==":t="EQUAL";break;case"!=":t="NOT_EQUAL";break;case">":t="GREATER_THAN";break;case">=":t="GREATER_THAN_OR_EQUAL";break;case"<":t="LESS_THAN";break;case"<=":t="LESS_THAN_OR_EQUAL";break;case"IN":t="IN";wijmo_1.assert(wijmo_1.isArray(o),"IN operator requires array values.");break;default:wijmo_1.assert(!1,"Unknown operator (should be ==, !=, >, >=, <, <=, or IN).")}for(var r=0;r<this._fieldFilters.length;r++){var i=this._fieldFilters[r].fieldFilter;if(i.field.fieldPath==e&&i.op==t){this._fieldFilters.splice(r,1);break}}this._fieldFilters.push({fieldFilter:{field:{fieldPath:e},op:t,value:this._getValueObject(o)}})}else this._fieldFilters=[];this._getData(!1);return this};Collection.prototype.getSubCollection=function(e,t,o){wijmo_1.assert(wijmo_1.isObject(e)&&null!=e.$META,"invalid parent item");var r=new Collection(this.store,t,o);r._parentItem=e;return r};Collection.prototype.onLoading=function(e){this.loading.raise(this,e);return!e.cancel};Collection.prototype.onLoaded=function(e){this.loaded.raise(this,e)};Collection.prototype.onError=function(e){if(this._loading){this._loading=!1;this.onLoaded()}this.error.raise(this,e);return!e.cancel};Collection.prototype.onHasPendingChangesChanged=function(e){this.hasPendingChangesChanged.raise(this,e)};Object.defineProperty(Collection.prototype,"totalItemCount",{get:function(){var e=this._totalCount;return this.pageOnServer?null!=e?e:1e9:this._view?this._view.length:0},set:function(e){this._totalCount=wijmo_1.asInt(e)},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"pageCount",{get:function(){return this.pageSize?Math.ceil(this.totalItemCount/this.pageSize):1},enumerable:!0,configurable:!0});Object.defineProperty(Collection.prototype,"pageSize",{get:function(){return this._pgSz},set:function(e){if(e!=this._pgSz){this._pgSz=wijmo_1.asInt(e);if(this.pageOnServer){this._pgIdx=wijmo_1.clamp(this._pgIdx,0,this.pageCount-1);this._getData(!0)}else this.refresh()}},enumerable:!0,configurable:!0});Collection.prototype.onPageChanging=function(t){e.prototype.onPageChanging.call(this,t);!t.cancel&&this.pageOnServer&&(0==this.pageIndex&&0==this.items.length?t.cancel=!0:this._getData(!0));return!t.cancel};Collection.prototype.commitNew=function(){var t=this;if(!this.deferCommits){var o=this.currentAddItem;if(o){var r=this._itemToDoc(o);wijmo_1.httpRequest(this._getUrl(),{method:"POST",data:{fields:r.fields},requestHeaders:this._getRequestHeaders(),success:function(e){var r=JSON.parse(e.responseText);t._saveDocName(r,o);wijmo_1.isNumber(t._totalCount)&&t._totalCount++},error:function(e){return t._raiseError(e,!0)}})}}e.prototype.commitNew.call(this)};Collection.prototype.commitEdit=function(){var t=this;if(!this.deferCommits){var o=this.currentEditItem;if(o&&!this.currentAddItem&&this._getChangedFields(o,this._edtClone)){var r=this._itemToDoc(o);wijmo_1.httpRequest(this._getUrl(r),{method:"PATCH",data:{fields:r.fields},requestHeaders:this._getRequestHeaders(),error:function(e){return t._raiseError(e,!0)}})}}e.prototype.commitEdit.call(this)};Collection.prototype.remove=function(t){var o=this;if(!this.deferCommits&&t&&t!=this.currentAddItem){var r=this._itemToDoc(t);wijmo_1.httpRequest(this._getUrl(r),{method:"DELETE",requestHeaders:this._getRequestHeaders(),success:function(e){wijmo_1.isNumber(o._totalCount)&&o._totalCount--},error:function(e){return o._raiseError(e,!0)}})}e.prototype.remove.call(this,t)};Collection.prototype.updateFilterDefinition=function(e){this._filterProvider=null;if(this.filterOnServer&&softGridFilter()&&e instanceof softGridFilter().FlexGridFilter){this._filterProvider=e;this._totalCount=null;this.moveCurrentToFirst();this._getData(!0)}};Collection.prototype._getPageView=function(){return this.pageOnServer?this._view:e.prototype._getPageView.call(this)};Collection.prototype._generateID=function(){for(var e="";e.length<20;)e+=Math.random().toString(36).substr(2,5);return e};Collection.prototype._updateHasChanges=function(){var e=this.hasPendingChanges;if(e!=this._hasPendingChanges){this._hasPendingChanges=e;this.onHasPendingChangesChanged()}};Collection.prototype._getData=function(e){var t=this;this._toGetData&&clearTimeout(this._toGetData);this._toGetData=setTimeout((function(){t._toGetData=null;t._loading=!0;if(t.onLoading(new wijmo_1.CancelEventArgs)){var o=t.currentPosition;wijmo_1.httpRequest(t._getUrl(":runQuery"),{method:"POST",data:t._getQuery(),requestHeaders:t._getRequestHeaders(),success:function(r){var i=JSON.parse(r.responseText),n=t._parseData(i),s=t.pageSize;if(t.pageOnServer&&s&&n.length<s){var a=i[0].skippedResults||0;t._totalCount=a+n.length;if(0==n.length&&t.pageIndex>0){t.moveToLastPage();return}}t.sourceCollection=n;e&&t.moveCurrentToPosition(o);t._loading=!1;t.onLoaded()},error:function(e){return t._raiseError(e,!1)}})}}),wijmo_1.Control._REFRESH_INTERVAL)};Collection.prototype._getQuery=function(){var e={from:[{collectionId:this.name}]};this.fields&&this.fields.length&&(e.select={fields:this.fields.map((function(e){return{fieldPath:e}}))});var t=this._fieldFilters;!t.length&&this._filterProvider&&this.filterOnServer&&(t=this._getQueryFilters());t&&t.length&&(e.where=1==t.length?t[0]:{compositeFilter:{filters:t,op:"AND"}});var o=[];t&&t.length&&t.forEach((function(e){var t=e.fieldFilter;"IN"!=t.op&&"EQUAL"!=t.op&&o.push({field:t.field.fieldPath,asc:!0})}));this._orderBy.forEach((function(e){o.push({field:e.property,asc:e.ascending})}));!o.length&&this.sortOnServer&&this.sortDescriptions.forEach((function(e){o.push({field:e.property,asc:e.ascending})}));o.length&&(e.orderBy=o.map((function(e){return{field:{fieldPath:e.field},direction:e.asc?"ASCENDING":"DESCENDING"}})));var r=this.pageSize;if(this.pageOnServer&&r){e.limit=r;e.offset=r*this.pageIndex}!e.limit&&this.limit>0&&(e.limit=this.limit);return{structuredQuery:e}};Collection.prototype._parseData=function(e){var t=this,o=[];wijmo_1.isArray(e)&&e.forEach((function(e){var r=t._docToItem(e);r&&o.push(r)}));return o};Collection.prototype._raiseError=function(e,t){this.onError(new wijmo_1.RequestErrorEventArgs(e));t&&this._getData(!0)};Collection.prototype._saveDocName=function(e,t){if(e.name&&!t.$META){t.$META={name:e.name};return!0}return!1};Collection.prototype._docToItem=function(e){e.name||(e=e.document);if(!e||!e.name)return null;var t={};this._saveDocName(e,t);for(var o in e.fields)t[o]=this._getDocValue(e.fields[o]);return t};Collection.prototype._getDocValue=function(e){var t=this,o=null;for(var r in e){o=e[r];switch(r){case"integerValue":o=parseInt(o);break;case"timestampValue":o=new Date(o);break;case"mapValue":var i={};for(var n in o.fields)i[n]=this._getDocValue(o.fields[n]);o=i;break;case"arrayValue":o=o.values?o.values.map((function(e){return t._getDocValue(e)})):[]}}return o};Collection.prototype._itemToDoc=function(e){var t={},o=e.$META,r=this.calculatedFields;o&&o.name&&(t.name=o.name);t.fields={};for(var i in e)r&&i in r||"$META"!=i&&(t.fields[i]=this._getValueObject(e[i]));return t};Collection.prototype._getValueObject=function(e){var t=this,o={},r=wijmo_1.DataType;switch(wijmo_1.getType(e)){case r.String:o.stringValue=e;break;case r.Boolean:o.booleanValue=e;break;case r.Date:o.timestampValue=e.toJSON();break;case r.Number:e==Math.round(e)?o.integerValue=e.toString():o.doubleValue=e;break;case r.Array:o.arrayValue={values:e.map((function(e){return t._getValueObject(e)}))};break;case r.Object:var i={};for(var n in e)i[n]=this._getValueObject(e[n]);o.mapValue={fields:i};break;default:wijmo_1.assert(!1,"failed to create value object.")}return o};Collection.prototype._getRequestHeaders=function(){var e={},t=this.store._fbToken||this.store.accessToken;t&&(e.Authorization="Bearer "+t);return e};Collection.prototype._getUrl=function(e){var t="https://firestore.googleapis.com/v1/";if(wijmo_1.isObject(e)&&e.name)return t+e.name;e||(e="/"+this.name);return t+(this._parentItem?this._parentItem.$META.name:"projects/"+this.store.projectId+"/databases/(default)/documents")+e};Collection.prototype._getQueryFilters=function(){var e=[],t=this._filterProvider;if(softGridFilter()&&t instanceof softGridFilter().FlexGridFilter)for(var o=0;o<t.grid.columns.length;o++){var r=t.grid.columns[o],i=t.getColumnFilter(r,!1);if(i&&i.isActive){i.conditionFilter&&i.conditionFilter.isActive?this._getQueryConditionFilter(e,i.conditionFilter):i.valueFilter&&i.valueFilter.isActive&&this._getQueryValueFilter(e,i.valueFilter);break}}return e};Collection.prototype._getQueryConditionFilter=function(e,t){var o=t.column.binding,r=this._getQuerySimpleFilter(t.condition1,o),i=this._getQuerySimpleFilter(t.condition2,o);r&&i&&t.and?e.push({compositeFilter:{op:t.and?"AND":"OR",filters:[r,i]}}):r?e.push(r):i&&e.push(i)};Collection.prototype._getQuerySimpleFilter=function(e,t){if(e.isActive){var o=softGridFilter().Operator;return e.operator==o.BW?{compositeFilter:{op:"AND",filters:[{fieldFilter:{field:{fieldPath:t},op:"GREATER_THAN_OR_EQUAL",value:this._getValueObject(e.value)}},{fieldFilter:{field:{fieldPath:t},op:"LESS_THAN",value:this._getValueObject(e.value+"")}}]}}:{fieldFilter:{field:{fieldPath:t},op:this._getFilterOperator(e.operator),value:this._getValueObject(e.value)}}}return null};Collection.prototype._getFilterOperator=function(e){var t=softGridFilter().Operator;switch(e){case t.EQ:return"EQUAL";case t.NE:return"NOT_EQUAL";case t.GE:return"GREATER_THAN_OR_EQUAL";case t.GT:return"GREATER_THAN";case t.LE:return"LESS_THAN_OR_EQUAL";case t.LT:return"LESS_THAN"}wijmo_1.assert(!1,t[e]+" operator not supported (use EQ, NE, GT, GE, LT, or LE)")};Collection.prototype._getQueryValueFilter=function(e,t){var o=t.column,r=o.dataMap,i=[];for(var n in t.showValues){var s=wijmo_1.changeType(n,o.dataType,o.format);r&&wijmo_1.isString(s)&&(s=r.getKeyValue(s));i.push(s);if(i.length>=10)break}i.length&&e.push({fieldFilter:{field:{fieldPath:o.binding},op:"IN",value:this._getValueObject(i)}})};Collection._filterCulture=null;return Collection}(wijmo_1.CollectionView);exports.Collection=Collection;wijmo_1._registerModule("wijmo.cloud",selfModule);