wijmo 5.20261.45-nightly.d20251218.t163151 → 5.20261.45-nightly.d20260105.t163143
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.
- package/cultures/wijmo.culture.ar-AE.d.ts +1 -1
- package/cultures/wijmo.culture.ar-AE.js +1 -1
- package/cultures/wijmo.culture.ar-SA.d.ts +1 -1
- package/cultures/wijmo.culture.ar-SA.js +1 -1
- package/cultures/wijmo.culture.bg.d.ts +1 -1
- package/cultures/wijmo.culture.bg.js +1 -1
- package/cultures/wijmo.culture.ca.d.ts +1 -1
- package/cultures/wijmo.culture.ca.js +1 -1
- package/cultures/wijmo.culture.cs.d.ts +1 -1
- package/cultures/wijmo.culture.cs.js +1 -1
- package/cultures/wijmo.culture.da.d.ts +1 -1
- package/cultures/wijmo.culture.da.js +1 -1
- package/cultures/wijmo.culture.de-CH.d.ts +1 -1
- package/cultures/wijmo.culture.de-CH.js +1 -1
- package/cultures/wijmo.culture.de.d.ts +1 -1
- package/cultures/wijmo.culture.de.js +1 -1
- package/cultures/wijmo.culture.el.d.ts +1 -1
- package/cultures/wijmo.culture.el.js +1 -1
- package/cultures/wijmo.culture.en-CA.d.ts +1 -1
- package/cultures/wijmo.culture.en-CA.js +1 -1
- package/cultures/wijmo.culture.en-GB.d.ts +1 -1
- package/cultures/wijmo.culture.en-GB.js +1 -1
- package/cultures/wijmo.culture.en.d.ts +1 -1
- package/cultures/wijmo.culture.en.js +1 -1
- package/cultures/wijmo.culture.es-419.d.ts +1 -1
- package/cultures/wijmo.culture.es-419.js +1 -1
- package/cultures/wijmo.culture.es-MX.d.ts +1 -1
- package/cultures/wijmo.culture.es-MX.js +1 -1
- package/cultures/wijmo.culture.es.d.ts +1 -1
- package/cultures/wijmo.culture.es.js +1 -1
- package/cultures/wijmo.culture.et.d.ts +1 -1
- package/cultures/wijmo.culture.et.js +1 -1
- package/cultures/wijmo.culture.eu.d.ts +1 -1
- package/cultures/wijmo.culture.eu.js +1 -1
- package/cultures/wijmo.culture.fi.d.ts +1 -1
- package/cultures/wijmo.culture.fi.js +1 -1
- package/cultures/wijmo.culture.fr-CA.d.ts +1 -1
- package/cultures/wijmo.culture.fr-CA.js +1 -1
- package/cultures/wijmo.culture.fr.d.ts +1 -1
- package/cultures/wijmo.culture.fr.js +1 -1
- package/cultures/wijmo.culture.gl.d.ts +1 -1
- package/cultures/wijmo.culture.gl.js +1 -1
- package/cultures/wijmo.culture.he.d.ts +1 -1
- package/cultures/wijmo.culture.he.js +1 -1
- package/cultures/wijmo.culture.hi.d.ts +1 -1
- package/cultures/wijmo.culture.hi.js +1 -1
- package/cultures/wijmo.culture.hr.d.ts +1 -1
- package/cultures/wijmo.culture.hr.js +1 -1
- package/cultures/wijmo.culture.hu.d.ts +1 -1
- package/cultures/wijmo.culture.hu.js +1 -1
- package/cultures/wijmo.culture.id.d.ts +1 -1
- package/cultures/wijmo.culture.id.js +1 -1
- package/cultures/wijmo.culture.it.d.ts +1 -1
- package/cultures/wijmo.culture.it.js +1 -1
- package/cultures/wijmo.culture.ja.d.ts +1 -1
- package/cultures/wijmo.culture.ja.js +1 -1
- package/cultures/wijmo.culture.kk.d.ts +1 -1
- package/cultures/wijmo.culture.kk.js +1 -1
- package/cultures/wijmo.culture.ko.d.ts +1 -1
- package/cultures/wijmo.culture.ko.js +1 -1
- package/cultures/wijmo.culture.lt.d.ts +1 -1
- package/cultures/wijmo.culture.lt.js +1 -1
- package/cultures/wijmo.culture.lv.d.ts +1 -1
- package/cultures/wijmo.culture.lv.js +1 -1
- package/cultures/wijmo.culture.mn-MN.d.ts +1 -1
- package/cultures/wijmo.culture.mn-MN.js +1 -1
- package/cultures/wijmo.culture.nl.d.ts +1 -1
- package/cultures/wijmo.culture.nl.js +1 -1
- package/cultures/wijmo.culture.no.d.ts +1 -1
- package/cultures/wijmo.culture.no.js +1 -1
- package/cultures/wijmo.culture.pl.d.ts +1 -1
- package/cultures/wijmo.culture.pl.js +1 -1
- package/cultures/wijmo.culture.pt.d.ts +1 -1
- package/cultures/wijmo.culture.pt.js +1 -1
- package/cultures/wijmo.culture.ro.d.ts +1 -1
- package/cultures/wijmo.culture.ro.js +1 -1
- package/cultures/wijmo.culture.ru.d.ts +1 -1
- package/cultures/wijmo.culture.ru.js +1 -1
- package/cultures/wijmo.culture.sk.d.ts +1 -1
- package/cultures/wijmo.culture.sk.js +1 -1
- package/cultures/wijmo.culture.sl.d.ts +1 -1
- package/cultures/wijmo.culture.sl.js +1 -1
- package/cultures/wijmo.culture.sr.d.ts +1 -1
- package/cultures/wijmo.culture.sr.js +1 -1
- package/cultures/wijmo.culture.sv.d.ts +1 -1
- package/cultures/wijmo.culture.sv.js +1 -1
- package/cultures/wijmo.culture.th.d.ts +1 -1
- package/cultures/wijmo.culture.th.js +1 -1
- package/cultures/wijmo.culture.tr.d.ts +1 -1
- package/cultures/wijmo.culture.tr.js +1 -1
- package/cultures/wijmo.culture.uk.d.ts +1 -1
- package/cultures/wijmo.culture.uk.js +1 -1
- package/cultures/wijmo.culture.vi.d.ts +1 -1
- package/cultures/wijmo.culture.vi.js +1 -1
- package/cultures/wijmo.culture.zh-HK.d.ts +1 -1
- package/cultures/wijmo.culture.zh-HK.js +1 -1
- package/cultures/wijmo.culture.zh-TW.d.ts +1 -1
- package/cultures/wijmo.culture.zh-TW.js +1 -1
- package/cultures/wijmo.culture.zh.d.ts +1 -1
- package/cultures/wijmo.culture.zh.js +1 -1
- package/package.json +1 -1
- package/styles/misc/_constants.scss +1 -1
- package/styles/misc/_glyphs.scss +257 -255
- package/styles/misc/_mixins.scss +70 -74
- package/styles/misc/_variables.scss +13 -13
- package/styles/parts/_barcode.scss +26 -27
- package/styles/parts/_chart.scss +109 -107
- package/styles/parts/_chart_finance.scss +6 -6
- package/styles/parts/_chart_hierarchical.scss +4 -4
- package/styles/parts/_chart_interaction.scss +224 -219
- package/styles/parts/_chart_map.scss +7 -7
- package/styles/parts/_core.scss +115 -116
- package/styles/parts/_gauge.scss +40 -39
- package/styles/parts/_grid.scss +447 -410
- package/styles/parts/_grid_cellmaker.scss +92 -86
- package/styles/parts/_grid_filter.scss +157 -161
- package/styles/parts/_grid_grouppanel.scss +74 -74
- package/styles/parts/_grid_multirow.scss +65 -64
- package/styles/parts/_grid_search.scss +27 -26
- package/styles/parts/_grid_selector.scss +12 -12
- package/styles/parts/_grid_sheet.scss +176 -176
- package/styles/parts/_grid_transposed_multirow.scss +9 -10
- package/styles/parts/_input.scss +812 -810
- package/styles/parts/_labeled_input.scss +198 -194
- package/styles/parts/_nav.scss +263 -259
- package/styles/parts/_olap.scss +230 -224
- package/styles/parts/_viewer.scss +1005 -989
- package/styles/themes/material/wijmo.theme.material.amber-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.amber-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.amber-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.blue_grey-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.blue_grey-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.brown-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.brown-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.cyan-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.cyan-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_orange-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_orange-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.deep_purple-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.deep_purple-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.green-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.green-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.grey-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.grey-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.indigo-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.indigo-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_blue-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_blue-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.light_green-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.light_green-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.lime-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.lime-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.orange-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.orange-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.pink-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.pink-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.purple-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.purple-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-teal.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.red-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.red-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.teal-yellow.css +1 -1
- package/styles/themes/material/wijmo.theme.material.teal-yellow.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-amber.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-amber.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-cyan.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-cyan.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-deep_orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-deep_orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-deep_purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-deep_purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-indigo.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-indigo.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-light_blue.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-light_blue.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-light_green.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-light_green.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-lime.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-lime.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-orange.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-orange.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-pink.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-pink.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-purple.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-purple.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-red.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-red.scss +1 -2
- package/styles/themes/material/wijmo.theme.material.yellow-teal.css +1 -1
- package/styles/themes/material/wijmo.theme.material.yellow-teal.scss +1 -2
- package/styles/themes/wijmo.theme.cerulean.css +1 -1
- package/styles/themes/wijmo.theme.cerulean.scss +1 -2
- package/styles/themes/wijmo.theme.cleandark.css +1 -1
- package/styles/themes/wijmo.theme.cleandark.scss +2 -3
- package/styles/themes/wijmo.theme.cleanlight.css +1 -1
- package/styles/themes/wijmo.theme.cleanlight.scss +3 -4
- package/styles/themes/wijmo.theme.cocoa.css +1 -1
- package/styles/themes/wijmo.theme.cocoa.scss +1 -2
- package/styles/themes/wijmo.theme.coral.css +1 -1
- package/styles/themes/wijmo.theme.coral.scss +1 -2
- package/styles/themes/wijmo.theme.cyborg.css +1 -1
- package/styles/themes/wijmo.theme.cyborg.scss +1 -2
- package/styles/themes/wijmo.theme.dark.css +1 -1
- package/styles/themes/wijmo.theme.dark.scss +1 -2
- package/styles/themes/wijmo.theme.darkly.css +1 -1
- package/styles/themes/wijmo.theme.darkly.scss +1 -1
- package/styles/themes/wijmo.theme.flatly.css +1 -1
- package/styles/themes/wijmo.theme.flatly.scss +2 -3
- package/styles/themes/wijmo.theme.grayscale.css +1 -1
- package/styles/themes/wijmo.theme.grayscale.scss +1 -1
- package/styles/themes/wijmo.theme.highcontrast.css +1 -1
- package/styles/themes/wijmo.theme.highcontrast.scss +9 -9
- package/styles/themes/wijmo.theme.light.css +1 -1
- package/styles/themes/wijmo.theme.light.scss +1 -1
- package/styles/themes/wijmo.theme.material.amber-indigo.css +1 -1
- package/styles/themes/wijmo.theme.material.amber-indigo.scss +1 -2
- package/styles/themes/wijmo.theme.material.css +1 -1
- package/styles/themes/wijmo.theme.material.indigo-orange.css +1 -1
- package/styles/themes/wijmo.theme.material.indigo-orange.scss +1 -1
- package/styles/themes/wijmo.theme.material.scss +33 -29
- package/styles/themes/wijmo.theme.material.vars.css +1 -1
- package/styles/themes/wijmo.theme.material.vars.scss +1 -1
- package/styles/themes/wijmo.theme.midnight.css +1 -1
- package/styles/themes/wijmo.theme.midnight.scss +1 -1
- package/styles/themes/wijmo.theme.minimal.css +1 -1
- package/styles/themes/wijmo.theme.minimal.scss +1 -1
- package/styles/themes/wijmo.theme.modern.css +1 -1
- package/styles/themes/wijmo.theme.modern.scss +1 -1
- package/styles/themes/wijmo.theme.office.css +1 -1
- package/styles/themes/wijmo.theme.office.scss +1 -1
- package/styles/themes/wijmo.theme.organic.css +1 -1
- package/styles/themes/wijmo.theme.organic.scss +2 -2
- package/styles/themes/wijmo.theme.paper.css +1 -1
- package/styles/themes/wijmo.theme.paper.scss +1 -1
- package/styles/themes/wijmo.theme.simplex.css +1 -1
- package/styles/themes/wijmo.theme.simplex.scss +1 -1
- package/styles/themes/wijmo.theme.slate.css +1 -1
- package/styles/themes/wijmo.theme.slate.scss +1 -1
- package/styles/themes/wijmo.theme.superhero.css +1 -1
- package/styles/themes/wijmo.theme.superhero.scss +1 -1
- package/styles/themes/wijmo.theme.trust.css +1 -1
- package/styles/themes/wijmo.theme.trust.scss +1 -1
- package/styles/themes/wijmo.theme.zen.css +1 -1
- package/styles/themes/wijmo.theme.zen.scss +1 -1
- package/styles/wijmo-core.css +1 -1
- package/styles/wijmo-core.scss +5 -5
- package/styles/wijmo.css +1 -1
- package/styles/wijmo.scss +1 -1
- package/wijmo.angular.base.d.ts +1 -1
- package/wijmo.angular.base.js +1 -1
- package/wijmo.angular.chart.analytics.d.ts +1 -1
- package/wijmo.angular.chart.analytics.js +1 -1
- package/wijmo.angular.chart.animation.d.ts +1 -1
- package/wijmo.angular.chart.animation.js +1 -1
- package/wijmo.angular.chart.annotation.d.ts +1 -1
- package/wijmo.angular.chart.annotation.js +1 -1
- package/wijmo.angular.chart.d.ts +1 -1
- package/wijmo.angular.chart.finance.analytics.d.ts +1 -1
- package/wijmo.angular.chart.finance.analytics.js +1 -1
- package/wijmo.angular.chart.finance.d.ts +1 -1
- package/wijmo.angular.chart.finance.js +1 -1
- package/wijmo.angular.chart.hierarchical.d.ts +1 -1
- package/wijmo.angular.chart.hierarchical.js +1 -1
- package/wijmo.angular.chart.interaction.d.ts +1 -1
- package/wijmo.angular.chart.interaction.js +1 -1
- package/wijmo.angular.chart.js +1 -1
- package/wijmo.angular.chart.radar.d.ts +1 -1
- package/wijmo.angular.chart.radar.js +1 -1
- package/wijmo.angular.core.d.ts +1 -1
- package/wijmo.angular.core.js +1 -1
- package/wijmo.angular.gauge.d.ts +1 -1
- package/wijmo.angular.gauge.js +1 -1
- package/wijmo.angular.grid.d.ts +1 -1
- package/wijmo.angular.grid.detail.d.ts +1 -1
- package/wijmo.angular.grid.detail.js +1 -1
- package/wijmo.angular.grid.filter.d.ts +1 -1
- package/wijmo.angular.grid.filter.js +1 -1
- package/wijmo.angular.grid.grouppanel.d.ts +1 -1
- package/wijmo.angular.grid.grouppanel.js +1 -1
- package/wijmo.angular.grid.js +1 -1
- package/wijmo.angular.grid.multirow.d.ts +1 -1
- package/wijmo.angular.grid.multirow.js +1 -1
- package/wijmo.angular.grid.sheet.d.ts +1 -1
- package/wijmo.angular.grid.sheet.js +1 -1
- package/wijmo.angular.input.d.ts +1 -1
- package/wijmo.angular.input.js +1 -1
- package/wijmo.angular.nav.d.ts +1 -1
- package/wijmo.angular.nav.js +1 -1
- package/wijmo.angular.olap.d.ts +1 -1
- package/wijmo.angular.olap.js +1 -1
- package/wijmo.angular.viewer.d.ts +1 -1
- package/wijmo.angular.viewer.js +1 -1
- package/wijmo.angular2.barcode.common.d.ts +30 -30
- package/wijmo.angular2.barcode.common.js +1 -1
- package/wijmo.angular2.barcode.composite.d.ts +28 -28
- package/wijmo.angular2.barcode.composite.js +1 -1
- package/wijmo.angular2.barcode.specialized.d.ts +24 -24
- package/wijmo.angular2.barcode.specialized.js +1 -1
- package/wijmo.angular2.chart.analytics.d.ts +26 -26
- package/wijmo.angular2.chart.analytics.js +1 -1
- package/wijmo.angular2.chart.animation.d.ts +26 -26
- package/wijmo.angular2.chart.animation.js +1 -1
- package/wijmo.angular2.chart.annotation.d.ts +45 -45
- package/wijmo.angular2.chart.annotation.js +1 -1
- package/wijmo.angular2.chart.d.ts +42 -42
- package/wijmo.angular2.chart.finance.analytics.d.ts +36 -36
- package/wijmo.angular2.chart.finance.analytics.js +1 -1
- package/wijmo.angular2.chart.finance.d.ts +26 -26
- package/wijmo.angular2.chart.finance.js +1 -1
- package/wijmo.angular2.chart.finance.metadata.json +1 -1
- package/wijmo.angular2.chart.hierarchical.d.ts +25 -25
- package/wijmo.angular2.chart.hierarchical.js +1 -1
- package/wijmo.angular2.chart.interaction.d.ts +28 -28
- package/wijmo.angular2.chart.interaction.js +1 -1
- package/wijmo.angular2.chart.js +1 -1
- package/wijmo.angular2.chart.map.d.ts +20 -20
- package/wijmo.angular2.chart.map.js +1 -1
- package/wijmo.angular2.chart.map.metadata.json +1 -1
- package/wijmo.angular2.chart.metadata.json +1 -1
- package/wijmo.angular2.chart.radar.d.ts +28 -28
- package/wijmo.angular2.chart.radar.js +1 -1
- package/wijmo.angular2.chart.radar.metadata.json +1 -1
- package/wijmo.angular2.core.d.ts +47 -47
- package/wijmo.angular2.core.js +2 -2
- package/wijmo.angular2.core.metadata.json +1 -1
- package/wijmo.angular2.directiveBase.d.ts +67 -68
- package/wijmo.angular2.directiveBase.js +2 -2
- package/wijmo.angular2.directiveBase.metadata.json +1 -1
- package/wijmo.angular2.gauge.d.ts +27 -27
- package/wijmo.angular2.gauge.js +1 -1
- package/wijmo.angular2.gauge.metadata.json +1 -1
- package/wijmo.angular2.grid.d.ts +45 -45
- package/wijmo.angular2.grid.detail.d.ts +39 -39
- package/wijmo.angular2.grid.detail.js +2 -2
- package/wijmo.angular2.grid.filter.d.ts +25 -25
- package/wijmo.angular2.grid.filter.js +1 -1
- package/wijmo.angular2.grid.grouppanel.d.ts +28 -28
- package/wijmo.angular2.grid.grouppanel.js +1 -1
- package/wijmo.angular2.grid.js +2 -2
- package/wijmo.angular2.grid.multirow.d.ts +24 -24
- package/wijmo.angular2.grid.multirow.js +1 -1
- package/wijmo.angular2.grid.multirow.metadata.json +1 -1
- package/wijmo.angular2.grid.search.d.ts +12 -12
- package/wijmo.angular2.grid.search.js +1 -1
- package/wijmo.angular2.grid.sheet.d.ts +22 -22
- package/wijmo.angular2.grid.sheet.js +1 -1
- package/wijmo.angular2.grid.sheet.metadata.json +1 -1
- package/wijmo.angular2.grid.transposed.d.ts +14 -14
- package/wijmo.angular2.grid.transposed.js +2 -2
- package/wijmo.angular2.grid.transposedmultirow.d.ts +12 -12
- package/wijmo.angular2.grid.transposedmultirow.js +1 -1
- package/wijmo.angular2.input.d.ts +97 -97
- package/wijmo.angular2.input.js +2 -2
- package/wijmo.angular2.input.metadata.json +1 -1
- package/wijmo.angular2.nav.d.ts +31 -31
- package/wijmo.angular2.nav.js +1 -1
- package/wijmo.angular2.nav.metadata.json +1 -1
- package/wijmo.angular2.olap.d.ts +27 -27
- package/wijmo.angular2.olap.js +1 -1
- package/wijmo.angular2.viewer.d.ts +25 -25
- package/wijmo.angular2.viewer.js +1 -1
- package/wijmo.angular2.viewer.metadata.json +1 -1
- package/wijmo.barcode.common.d.ts +36 -36
- package/wijmo.barcode.common.js +2 -2
- package/wijmo.barcode.composite.d.ts +18 -19
- package/wijmo.barcode.composite.js +2 -2
- package/wijmo.barcode.d.ts +19 -19
- package/wijmo.barcode.js +2 -2
- package/wijmo.barcode.specialized.d.ts +5 -6
- package/wijmo.barcode.specialized.js +2 -2
- package/wijmo.chart.analytics.d.ts +7 -8
- package/wijmo.chart.analytics.js +2 -2
- package/wijmo.chart.animation.d.ts +2 -2
- package/wijmo.chart.animation.js +2 -2
- package/wijmo.chart.annotation.d.ts +21 -21
- package/wijmo.chart.annotation.js +2 -2
- package/wijmo.chart.d.ts +442 -453
- package/wijmo.chart.finance.analytics.d.ts +10 -10
- package/wijmo.chart.finance.analytics.js +2 -2
- package/wijmo.chart.finance.d.ts +10 -10
- package/wijmo.chart.finance.js +2 -2
- package/wijmo.chart.hierarchical.d.ts +16 -19
- package/wijmo.chart.hierarchical.js +2 -2
- package/wijmo.chart.interaction.d.ts +37 -38
- package/wijmo.chart.interaction.js +2 -2
- package/wijmo.chart.js +2 -2
- package/wijmo.chart.map.d.ts +59 -60
- package/wijmo.chart.map.js +2 -2
- package/wijmo.chart.radar.d.ts +7 -8
- package/wijmo.chart.radar.js +2 -2
- package/wijmo.chart.render.d.ts +14 -14
- package/wijmo.chart.render.js +2 -2
- package/wijmo.chart.webgl.d.ts +3 -6
- package/wijmo.chart.webgl.js +2 -2
- package/wijmo.cloud.d.ts +1 -1
- package/wijmo.cloud.js +2 -2
- package/wijmo.d.ts +44 -44
- package/wijmo.gauge.d.ts +4 -4
- package/wijmo.gauge.js +2 -2
- package/wijmo.grid.cellmaker.d.ts +1 -1
- package/wijmo.grid.cellmaker.js +2 -2
- package/wijmo.grid.d.ts +104 -106
- package/wijmo.grid.detail.d.ts +5 -5
- package/wijmo.grid.detail.js +2 -2
- package/wijmo.grid.filter.d.ts +30 -30
- package/wijmo.grid.filter.js +2 -2
- package/wijmo.grid.grouppanel.d.ts +7 -7
- package/wijmo.grid.grouppanel.js +2 -2
- package/wijmo.grid.immutable.d.ts +2 -2
- package/wijmo.grid.immutable.js +2 -2
- package/wijmo.grid.js +2 -2
- package/wijmo.grid.multirow.d.ts +3 -3
- package/wijmo.grid.multirow.js +2 -2
- package/wijmo.grid.pdf.d.ts +243 -243
- package/wijmo.grid.pdf.js +2 -2
- package/wijmo.grid.search.d.ts +1 -1
- package/wijmo.grid.search.js +1 -1
- package/wijmo.grid.selector.d.ts +5 -6
- package/wijmo.grid.selector.js +2 -2
- package/wijmo.grid.sheet.d.ts +27 -28
- package/wijmo.grid.sheet.js +2 -2
- package/wijmo.grid.style.d.ts +19 -19
- package/wijmo.grid.style.js +1 -1
- package/wijmo.grid.transposed.d.ts +2 -2
- package/wijmo.grid.transposed.js +2 -2
- package/wijmo.grid.transposedmultirow.d.ts +2 -2
- package/wijmo.grid.transposedmultirow.js +1 -1
- package/wijmo.grid.xlsx.d.ts +1 -1
- package/wijmo.grid.xlsx.js +2 -2
- package/wijmo.input.d.ts +17 -17
- package/wijmo.input.js +2 -2
- package/wijmo.interop.grid.d.ts +5 -7
- package/wijmo.interop.grid.js +2 -2
- package/wijmo.js +2 -2
- package/wijmo.knockout.base.d.ts +1 -1
- package/wijmo.knockout.base.js +1 -1
- package/wijmo.knockout.chart.analytics.d.ts +1 -1
- package/wijmo.knockout.chart.analytics.js +1 -1
- package/wijmo.knockout.chart.animation.d.ts +1 -1
- package/wijmo.knockout.chart.animation.js +1 -1
- package/wijmo.knockout.chart.annotation.d.ts +1 -1
- package/wijmo.knockout.chart.annotation.js +1 -1
- package/wijmo.knockout.chart.d.ts +1 -1
- package/wijmo.knockout.chart.finance.analytics.d.ts +1 -1
- package/wijmo.knockout.chart.finance.analytics.js +1 -1
- package/wijmo.knockout.chart.finance.d.ts +1 -1
- package/wijmo.knockout.chart.finance.js +1 -1
- package/wijmo.knockout.chart.interaction.d.ts +1 -1
- package/wijmo.knockout.chart.interaction.js +1 -1
- package/wijmo.knockout.chart.js +1 -1
- package/wijmo.knockout.core.d.ts +1 -1
- package/wijmo.knockout.core.js +1 -1
- package/wijmo.knockout.gauge.d.ts +1 -1
- package/wijmo.knockout.gauge.js +1 -1
- package/wijmo.knockout.grid.d.ts +1 -1
- package/wijmo.knockout.grid.filter.d.ts +1 -1
- package/wijmo.knockout.grid.filter.js +1 -1
- package/wijmo.knockout.grid.grouppanel.d.ts +1 -1
- package/wijmo.knockout.grid.grouppanel.js +1 -1
- package/wijmo.knockout.grid.js +1 -1
- package/wijmo.knockout.grid.multirow.d.ts +1 -1
- package/wijmo.knockout.grid.multirow.js +1 -1
- package/wijmo.knockout.grid.sheet.d.ts +1 -1
- package/wijmo.knockout.grid.sheet.js +1 -1
- package/wijmo.knockout.input.d.ts +1 -1
- package/wijmo.knockout.input.js +1 -1
- package/wijmo.knockout.nav.d.ts +1 -1
- package/wijmo.knockout.nav.js +1 -1
- package/wijmo.knockout.olap.d.ts +1 -1
- package/wijmo.knockout.olap.js +1 -1
- package/wijmo.meta.d.ts +2 -2
- package/wijmo.meta.js +2 -2
- package/wijmo.nav.d.ts +8 -8
- package/wijmo.nav.js +2 -2
- package/wijmo.odata.d.ts +25 -27
- package/wijmo.odata.js +2 -2
- package/wijmo.olap.d.ts +10 -12
- package/wijmo.olap.js +2 -2
- package/wijmo.pdf.d.ts +1562 -1563
- package/wijmo.pdf.js +2 -2
- package/wijmo.pdf.security.d.ts +2 -2
- package/wijmo.pdf.security.js +2 -2
- package/wijmo.react.barcode.base.d.ts +1 -1
- package/wijmo.react.barcode.base.js +1 -1
- package/wijmo.react.barcode.common.d.ts +1 -1
- package/wijmo.react.barcode.common.js +1 -1
- package/wijmo.react.barcode.composite.d.ts +1 -1
- package/wijmo.react.barcode.composite.js +1 -1
- package/wijmo.react.barcode.specialized.d.ts +1 -1
- package/wijmo.react.barcode.specialized.js +1 -1
- package/wijmo.react.base.d.ts +50 -50
- package/wijmo.react.base.js +1 -1
- package/wijmo.react.chart.analytics.d.ts +1 -1
- package/wijmo.react.chart.analytics.js +1 -1
- package/wijmo.react.chart.animation.d.ts +1 -1
- package/wijmo.react.chart.animation.js +1 -1
- package/wijmo.react.chart.annotation.d.ts +18 -18
- package/wijmo.react.chart.annotation.js +1 -1
- package/wijmo.react.chart.d.ts +4 -4
- package/wijmo.react.chart.finance.analytics.d.ts +1 -1
- package/wijmo.react.chart.finance.analytics.js +1 -1
- package/wijmo.react.chart.finance.d.ts +1 -1
- package/wijmo.react.chart.finance.js +1 -1
- package/wijmo.react.chart.hierarchical.d.ts +1 -1
- package/wijmo.react.chart.hierarchical.js +1 -1
- package/wijmo.react.chart.interaction.d.ts +2 -2
- package/wijmo.react.chart.interaction.js +1 -1
- package/wijmo.react.chart.js +1 -1
- package/wijmo.react.chart.map.d.ts +1 -1
- package/wijmo.react.chart.map.js +1 -1
- package/wijmo.react.chart.radar.d.ts +1 -1
- package/wijmo.react.chart.radar.js +1 -1
- package/wijmo.react.gauge.d.ts +1 -1
- package/wijmo.react.gauge.js +1 -1
- package/wijmo.react.grid.d.ts +5 -5
- package/wijmo.react.grid.detail.d.ts +2 -3
- package/wijmo.react.grid.detail.js +2 -2
- package/wijmo.react.grid.filter.d.ts +1 -1
- package/wijmo.react.grid.filter.js +1 -1
- package/wijmo.react.grid.grouppanel.d.ts +1 -1
- package/wijmo.react.grid.grouppanel.js +1 -1
- package/wijmo.react.grid.immutable.d.ts +1 -1
- package/wijmo.react.grid.immutable.js +1 -1
- package/wijmo.react.grid.js +2 -2
- package/wijmo.react.grid.multirow.d.ts +1 -1
- package/wijmo.react.grid.multirow.js +1 -1
- package/wijmo.react.grid.search.d.ts +1 -1
- package/wijmo.react.grid.search.js +1 -1
- package/wijmo.react.grid.sheet.d.ts +1 -1
- package/wijmo.react.grid.sheet.js +1 -1
- package/wijmo.react.grid.transposed.d.ts +1 -1
- package/wijmo.react.grid.transposed.js +1 -1
- package/wijmo.react.grid.transposedmultirow.d.ts +1 -1
- package/wijmo.react.grid.transposedmultirow.js +1 -1
- package/wijmo.react.input.d.ts +2 -3
- package/wijmo.react.input.js +2 -2
- package/wijmo.react.nav.d.ts +3 -3
- package/wijmo.react.nav.js +1 -1
- package/wijmo.react.olap.d.ts +1 -1
- package/wijmo.react.olap.js +1 -1
- package/wijmo.react.viewer.d.ts +1 -1
- package/wijmo.react.viewer.js +1 -1
- package/wijmo.rest.d.ts +28 -28
- package/wijmo.rest.js +2 -2
- package/wijmo.touch.d.ts +1 -2
- package/wijmo.touch.js +2 -2
- package/wijmo.undo.d.ts +4 -4
- package/wijmo.undo.js +2 -2
- package/wijmo.viewer.d.ts +388 -407
- package/wijmo.viewer.js +2 -2
- package/wijmo.vue2.barcode.common.d.ts +1 -1
- package/wijmo.vue2.barcode.common.js +1 -1
- package/wijmo.vue2.barcode.composite.d.ts +1 -1
- package/wijmo.vue2.barcode.composite.js +1 -1
- package/wijmo.vue2.barcode.specialized.d.ts +1 -1
- package/wijmo.vue2.barcode.specialized.js +1 -1
- package/wijmo.vue2.base.d.ts +1 -2
- package/wijmo.vue2.base.js +2 -2
- package/wijmo.vue2.chart.analytics.d.ts +1 -1
- package/wijmo.vue2.chart.analytics.js +1 -1
- package/wijmo.vue2.chart.animation.d.ts +1 -1
- package/wijmo.vue2.chart.animation.js +1 -1
- package/wijmo.vue2.chart.annotation.d.ts +1 -1
- package/wijmo.vue2.chart.annotation.js +1 -1
- package/wijmo.vue2.chart.d.ts +1 -1
- package/wijmo.vue2.chart.finance.analytics.d.ts +1 -1
- package/wijmo.vue2.chart.finance.analytics.js +1 -1
- package/wijmo.vue2.chart.finance.d.ts +1 -1
- package/wijmo.vue2.chart.finance.js +1 -1
- package/wijmo.vue2.chart.hierarchical.d.ts +1 -1
- package/wijmo.vue2.chart.hierarchical.js +1 -1
- package/wijmo.vue2.chart.interaction.d.ts +1 -1
- package/wijmo.vue2.chart.interaction.js +1 -1
- package/wijmo.vue2.chart.js +1 -1
- package/wijmo.vue2.chart.map.d.ts +1 -1
- package/wijmo.vue2.chart.map.js +1 -1
- package/wijmo.vue2.chart.radar.d.ts +1 -1
- package/wijmo.vue2.chart.radar.js +1 -1
- package/wijmo.vue2.core.d.ts +33 -33
- package/wijmo.vue2.core.js +1 -1
- package/wijmo.vue2.gauge.d.ts +1 -1
- package/wijmo.vue2.gauge.js +1 -1
- package/wijmo.vue2.grid.d.ts +280 -280
- package/wijmo.vue2.grid.detail.d.ts +1 -1
- package/wijmo.vue2.grid.detail.js +1 -1
- package/wijmo.vue2.grid.filter.d.ts +1 -1
- package/wijmo.vue2.grid.filter.js +1 -1
- package/wijmo.vue2.grid.grouppanel.d.ts +1 -1
- package/wijmo.vue2.grid.grouppanel.js +1 -1
- package/wijmo.vue2.grid.js +2 -2
- package/wijmo.vue2.grid.multirow.d.ts +245 -245
- package/wijmo.vue2.grid.multirow.js +1 -1
- package/wijmo.vue2.grid.search.d.ts +1 -1
- package/wijmo.vue2.grid.search.js +1 -1
- package/wijmo.vue2.grid.sheet.d.ts +1 -1
- package/wijmo.vue2.grid.sheet.js +1 -1
- package/wijmo.vue2.grid.transposed.d.ts +1 -1
- package/wijmo.vue2.grid.transposed.js +1 -1
- package/wijmo.vue2.grid.transposedmultirow.d.ts +1 -1
- package/wijmo.vue2.grid.transposedmultirow.js +1 -1
- package/wijmo.vue2.input.d.ts +1 -1
- package/wijmo.vue2.input.js +1 -1
- package/wijmo.vue2.nav.d.ts +1 -1
- package/wijmo.vue2.nav.js +1 -1
- package/wijmo.vue2.olap.d.ts +1 -1
- package/wijmo.vue2.olap.js +1 -1
- package/wijmo.vue2.viewer.d.ts +1 -1
- package/wijmo.vue2.viewer.js +1 -1
- package/wijmo.webcomponents.barcode.common.d.ts +1 -1
- package/wijmo.webcomponents.barcode.common.js +1 -1
- package/wijmo.webcomponents.barcode.composite.d.ts +1 -1
- package/wijmo.webcomponents.barcode.composite.js +1 -1
- package/wijmo.webcomponents.barcode.specialized.d.ts +1 -1
- package/wijmo.webcomponents.barcode.specialized.js +1 -1
- package/wijmo.webcomponents.base.d.ts +1 -1
- package/wijmo.webcomponents.base.js +1 -1
- package/wijmo.webcomponents.chart.analytics.d.ts +1 -1
- package/wijmo.webcomponents.chart.analytics.js +1 -1
- package/wijmo.webcomponents.chart.animation.d.ts +1 -1
- package/wijmo.webcomponents.chart.animation.js +1 -1
- package/wijmo.webcomponents.chart.d.ts +1 -1
- package/wijmo.webcomponents.chart.finance.analytics.d.ts +1 -1
- package/wijmo.webcomponents.chart.finance.analytics.js +1 -1
- package/wijmo.webcomponents.chart.finance.d.ts +1 -1
- package/wijmo.webcomponents.chart.finance.js +1 -1
- package/wijmo.webcomponents.chart.hierarchical.d.ts +1 -1
- package/wijmo.webcomponents.chart.hierarchical.js +1 -1
- package/wijmo.webcomponents.chart.interaction.d.ts +1 -1
- package/wijmo.webcomponents.chart.interaction.js +1 -1
- package/wijmo.webcomponents.chart.js +1 -1
- package/wijmo.webcomponents.chart.map.d.ts +1 -1
- package/wijmo.webcomponents.chart.map.js +1 -1
- package/wijmo.webcomponents.chart.radar.d.ts +1 -1
- package/wijmo.webcomponents.chart.radar.js +1 -1
- package/wijmo.webcomponents.gauge.d.ts +1 -1
- package/wijmo.webcomponents.gauge.js +1 -1
- package/wijmo.webcomponents.grid.d.ts +1 -1
- package/wijmo.webcomponents.grid.filter.d.ts +1 -1
- package/wijmo.webcomponents.grid.filter.js +1 -1
- package/wijmo.webcomponents.grid.grouppanel.d.ts +1 -1
- package/wijmo.webcomponents.grid.grouppanel.js +1 -1
- package/wijmo.webcomponents.grid.js +1 -1
- package/wijmo.webcomponents.grid.multirow.d.ts +1 -1
- package/wijmo.webcomponents.grid.multirow.js +1 -1
- package/wijmo.webcomponents.grid.search.d.ts +1 -1
- package/wijmo.webcomponents.grid.search.js +1 -1
- package/wijmo.webcomponents.grid.sheet.d.ts +1 -1
- package/wijmo.webcomponents.grid.sheet.js +1 -1
- package/wijmo.webcomponents.grid.transposed.d.ts +1 -1
- package/wijmo.webcomponents.grid.transposed.js +1 -1
- package/wijmo.webcomponents.grid.transposedmultirow.d.ts +1 -1
- package/wijmo.webcomponents.grid.transposedmultirow.js +1 -1
- package/wijmo.webcomponents.input.d.ts +1 -1
- package/wijmo.webcomponents.input.js +1 -1
- package/wijmo.webcomponents.nav.d.ts +1 -1
- package/wijmo.webcomponents.nav.js +1 -1
- package/wijmo.webcomponents.olap.d.ts +1 -1
- package/wijmo.webcomponents.olap.js +1 -1
- package/wijmo.webcomponents.viewer.d.ts +1 -1
- package/wijmo.webcomponents.viewer.js +1 -1
- package/wijmo.xlsx.d.ts +4704 -4711
- package/wijmo.xlsx.js +2 -2
package/wijmo.chart.render.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t163143
|
|
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):
|
|
54
|
-
drawRect(x: number, y: number, w: number, h: number, className?: string, style?: any, clipPath?: string):
|
|
55
|
-
drawLine(x1: number, y1: number, x2: number, y2: number, className?: string, style?: any):
|
|
56
|
-
drawLines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string, num?: number):
|
|
57
|
-
drawSplines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string, num?: number):
|
|
58
|
-
drawPolygon(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string):
|
|
59
|
-
drawPieSegment(cx: number, cy: number, r: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string):
|
|
60
|
-
drawDonutSegment(cx: number, cy: number, radius: number, innerRadius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string):
|
|
61
|
-
drawString(s: string, pt: Point, className?: string, style?: any):
|
|
62
|
-
drawStringRotated(s: string, pt: Point, center: Point, angle: number, className?: string, style?: 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):
|
|
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):
|
|
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;
|
package/wijmo.chart.render.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t163143
|
|
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);
|
package/wijmo.chart.webgl.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t163143
|
|
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[],
|
|
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;
|
package/wijmo.chart.webgl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t163143
|
|
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
package/wijmo.cloud.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t163143
|
|
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);
|