wijmo 5.20252.44 → 5.20261.45-nightly.d20260105.t014601
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -454
- 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.grid.filter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t014601
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
"use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var FilterType,FilterMode,wijmo_grid_1=require("wijmo/wijmo.grid"),wijmo_1=require("wijmo/wijmo"),wijmo_input_1=require("wijmo/wijmo.input"),wijmo_nav_1=require("wijmo/wijmo.nav"),input=__importStar(require("wijmo/wijmo.input")),selfModule=__importStar(require("wijmo/wijmo.grid.filter"));exports.ColumnFilterEditorClsNames={filterType:"wj-filtertype",hostElement:"wj-columnfiltereditor",sortButtons:"wj-sort-buttons",filterHeader:"wj-filter-header"};exports.ConditionFilterEditorClsNames={hostElement:"wj-conditionfilter-editor"};exports.FlexGridFilterClsNames={elemFilter:"wj-elem-filter",filter:"wj-filter",filterOff:"wj-filter-off",filterOn:"wj-filter-on",hostElement:"wj-columnfiltereditor",filterTopBorder:"wj-filter-tabPanel-top-border"};exports.ValueFilterEditorClsNames={hostElement:"wj-valuefilter-editor",customModalText:"wj-custom-modal-text",modalFooter:"wj-valuefilter-modal-footer",filterOptions:"wj-filter-options"};!function(e){e[e.None=0]="None";e[e.Condition=1]="Condition";e[e.Value=2]="Value";e[e.Both=3]="Both"}(FilterType=exports.FilterType||(exports.FilterType={}));!function(e){e[e.SingleFilter=0]="SingleFilter";e[e.MultiFilter=1]="MultiFilter"}(FilterMode=exports.FilterMode||(exports.FilterMode={}));var FlexGridFilter=function(){function FlexGridFilter(e,t){this._showIcons=!0;this._showSort=!0;this._defFilterType=FilterType.Both;this._defFilterMode=FilterMode.SingleFilter;this._xValueSearch=!0;this._includeUpdatedRowsInFilter=!1;this._showIncludeSelection=!1;this.filterApplied=new wijmo_1.Event;this.editingFilter=new wijmo_1.Event;this.filterChanging=new wijmo_1.Event;this.filterChanged=new wijmo_1.Event;this.exclusiveValueSearchChanged=new wijmo_1.Event;this._showIncludeSelectionChanged=new wijmo_1.Event;this._filters=[];this._g=wijmo_1.asType(e,wijmo_grid_1.FlexGrid,!1);this._g.formatItem.addHandler(this._formatItem.bind(this));this._g.itemsSourceChanged.addHandler(this.clear.bind(this));this._g.columns.collectionChanged.addHandler(this._adjustBindingColumns,this);var i=this._g.hostElement;e.addEventListener(i,"mousedown",this._mousedown.bind(this),!0);e.addEventListener(i,"click",this._click.bind(this),!0);e.addEventListener(i,"keydown",this._keydown.bind(this),!0);this._g.invalidate();wijmo_1.copy(this,t);this._init()}FlexGridFilter.prototype._init=function(){var e=this,t=this.grid,_excludeRowFromFilter=function(t){var i=e.grid,l=e.excludedRowsSet;if(null!=i&&i.rows.length>t)if(i.itemsSource)if(i.rows[t]instanceof wijmo_grid_1._NewRowTemplate){var r=i.editableCollectionView.currentAddItem||i.rows[t].dataItem;r&&l.add(r)}else i.rows[t].dataItem&&l.add(i.rows[t].dataItem);else i.rows[t]&&l.add(i.rows[t])};t.rowChanged&&t.rowChanged.addHandler((function(e,t){t.added&&_excludeRowFromFilter(t.index)}));t.rowEditEnding.addHandler((function(e,t){_excludeRowFromFilter(t.row)}));t.cellEditEnded.addHandler((function(e,t){_excludeRowFromFilter(t.row)}))};Object.defineProperty(FlexGridFilter.prototype,"excludedRowsSet",{get:function(){var e=this.grid;e.selectedSheet&&(e=e.selectedSheet);e._newAddedRowsSet||(e._newAddedRowsSet=new WeakSet);return e._newAddedRowsSet},set:function(e){var t=this.grid;t.selectedSheet&&(t=t.selectedSheet);t._newAddedRowsSet=e},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"filterColumns",{get:function(){return this._filterColumns},set:function(e){this._filterColumns=wijmo_1.asArray(e);this.clear()},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"showFilterIcons",{get:function(){return this._showIcons},set:function(e){if(e!=this.showFilterIcons){this._showIcons=wijmo_1.asBoolean(e);this._g&&this._g.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"showSortButtons",{get:function(){return this._showSort},set:function(e){this._showSort=wijmo_1.asBoolean(e)},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"reApplyFilterOnUpdate",{get:function(){return this._includeUpdatedRowsInFilter},set:function(e){e!==this._includeUpdatedRowsInFilter&&(this._includeUpdatedRowsInFilter=wijmo_1.asBoolean(e))},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"showIncludeSelection",{get:function(){return this._showIncludeSelection},set:function(e){if(e!=this._showIncludeSelection){this._showIncludeSelection=wijmo_1.asBoolean(e,!1);this._onShowIncludeSelectionChanged()}},enumerable:!0,configurable:!0});FlexGridFilter.prototype.getColumnFilter=function(e,t){void 0===t&&(t=!0);if(e=this._asColumn(e)){for(var i=0;i<this._filters.length;i++)if(wijmo_1._ENV_TOOLS.isSameInstance(this._filters[i].column,e))return this._filters[i];if(t&&e.binding){var l=new ColumnFilter(this,e);this._filters.push(l);return l}}return null};Object.defineProperty(FlexGridFilter.prototype,"defaultFilterType",{get:function(){return this._defFilterType},set:function(e){if((e=wijmo_1.asEnum(e,FilterType,!1))!=this.defaultFilterType){this._defFilterType=e;this._g.invalidate();this.clear()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"defaultFilterMode",{get:function(){return this._defFilterMode},set:function(e){if((e=wijmo_1.asEnum(e,FilterMode,!1))!=this._defFilterMode){this._defFilterMode=e;this._g.invalidate();this.clear()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"exclusiveValueSearch",{get:function(){return this._xValueSearch},set:function(e){if((e=wijmo_1.asBoolean(e))!==this._xValueSearch){this._xValueSearch=e;this.onExclusiveValueSearchChanged()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"filterDefinition",{get:function(){var e=this,t={defaultFilterType:this.defaultFilterType,filters:[]};this._filters.forEach((function(i){var l=i.conditionFilter,r=i.valueFilter,n=r.uniqueValues&&r.uniqueValues.length;if(i&&i.column&&i.column.binding&&(i.isActive||n||i.filterType!=e.defaultFilterType)){var o={binding:i.column.binding};if(l.isActive){var a=l.condition1,s=l.condition2;o={binding:i.column.binding,type:"condition",condition1:{operator:a.operator,value:a.value},and:l.and,condition2:{operator:s.operator,value:s.value}}}else(r.isActive||n)&&(o={binding:i.column.binding,type:"value",uniqueValues:r.uniqueValues,sortValues:r.sortValues,maxValues:r.maxValues,exclusiveValueSearch:r.exclusiveValueSearch,showValues:r.showValues});i.filterType!=e.defaultFilterType&&(o.filterType=i.filterType);t.filters.push(o)}}));return JSON.stringify(t)},set:function(e){e=wijmo_1.asString(e);this.clear();if(e){var t=JSON.parse(e);this.defaultFilterType=t.defaultFilterType;for(var _loop_1=function(e){var l=t.filters[e],r=i._asColumn(l.binding);r||(r=new wijmo_grid_1.Column({binding:l.binding}));var n=i.getColumnFilter(r,!0);if(n){null!=l.filterType&&(n.filterType=wijmo_1.asEnum(l.filterType,FilterType));switch(l.type){case"condition":var o=n.conditionFilter;o.condition1.value=r.dataType==wijmo_1.DataType.Date?wijmo_1.changeType(l.condition1.value,r.dataType,null):l.condition1.value;o.condition1.operator=l.condition1.operator;o.and=l.and;o.condition2.value=r.dataType==wijmo_1.DataType.Date?wijmo_1.changeType(l.condition2.value,r.dataType,null):l.condition2.value;o.condition2.operator=l.condition2.operator;break;case"value":var a=n.valueFilter;a.uniqueValues=l.uniqueValues;["sortValues","maxValues","exclusiveValueSearch"].forEach((function(e){null!=l[e]&&(a[e]=l[e])}));a.showValues=l.showValues}}},i=this,l=0;l<t.filters.length;l++)_loop_1(l)}this.apply()},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"activeEditor",{get:function(){return wijmo_1.Control.getControl(this._divEdt)},enumerable:!0,configurable:!0});FlexGridFilter.prototype.editColumnFilter=function(e,t,i){var l=this,r=this._g;this.closeEditor();e=this._asColumn(e);var n=new wijmo_grid_1.CellRangeEventArgs(r.cells,new wijmo_grid_1.CellRange(-1,e.index));if(this.onEditingFilter(n)){var o=wijmo_1.createElement('<div class="'+wijmo_input_1.DropDownClsNames.dropDownPanel+'"></div>'),a=this.getColumnFilter(e),s=new ColumnFilterEditor(o,a,this.showSortButtons);this._divEdt=o;this._edtCol=e;r.rightToLeft&&(o.dir="rtl");if(this.onFilterChanging(n)){n.cancel=!0;s.filterChanged.addHandler((function(){n.cancel=!1;setTimeout((function(){n.cancel||l.apply()}),s._edtVal&&s._edtVal._isFiltering?wijmo_1.Control._SEARCH_DELAY+200:0)}));s.buttonClicked.addHandler((function(){l.closeEditor();r.focus();l.onFilterChanged(n)}));s.lostFocus.addHandler((function(){setTimeout((function(){var e=wijmo_1.Control.getControl(l._divEdt);e&&!e.containsFocus()&&l.closeEditor()}),10)}));var d=t?t.col:e.index,u=r.columns[d];t||u&&u.binding==e.binding||(d=r.selection.leftCol);r._edtHdl._commitRowEdits();r.scrollIntoView(-1,d,!0);var c=r.columnHeaders,p=t&&t.panel&&c&&t.panel._uid==c._uid?t.row:c.rows.length-1,_=d,h=i||c.getCellElement(p,_),m=h?null:c.getCellBoundingRect(p,_);h?wijmo_1.showPopup(o,h,!1,!1,!1):wijmo_1.showPopup(o,m);var f=e.header,F=wijmo_1.format(wijmo_1.culture.FlexGridFilter.accessibilityHelperMessage.filter.filterColumn,{name:f});r.announceShortcut(F);this._adjustTabPanelStyle(a);this._setAriaExpanded(h,!0);this._setAriaExpanded(r.cells.getCellElement(-1,_),!0);for(var b=s.hostElement.querySelectorAll("input"),v=0;v<b.length;v++){var g=b[v];if(g.offsetHeight>0&&g.tabIndex>-1&&!g.disabled){g.focus();break}}s.containsFocus()||s.focus()}else this._divEdt=this._edtCol=null}};FlexGridFilter.prototype._setAriaExpanded=function(e,t){if(e){var i=e.querySelector("."+FlexGridFilter._WJC_FILTER);wijmo_1.setAttribute(i,"aria-expanded",t)}};FlexGridFilter.prototype.closeEditor=function(){var e=this._g,t=wijmo_1.Control.getControl(this._divEdt),i=this._edtCol;if(t){wijmo_1.hidePopup(t.hostElement,(function(){t.dispose()}));var l=wijmo_1.culture.FlexGridFilter.accessibilityHelperMessage.filter.closeFilterDialog;e.announceShortcut(l)}if(i){var r=e.columnHeaders,n=r.rows.length?r.getCellElement(r.rows.length-1,i.index):null;this._setAriaExpanded(n,!1);n=e.cells.getCellElement(-1,i.index);this._setAriaExpanded(n,!1)}this._divEdt=null;this._edtCol=null};FlexGridFilter.prototype.apply=function(){var e=this._g.collectionView;if(e){var t=this._g.editableCollectionView;if(t){t.commitEdit();t.commitNew()}this.excludedRowsSet=null;e.filter=this._filter.bind(this)}var i=e?e.updateFilterDefinition:null;wijmo_1.isFunction(i)&&i.call(e,this);this.onFilterApplied()};FlexGridFilter.prototype.clear=function(){if(this._filters.length){this._filters=[];this.apply()}};FlexGridFilter.prototype.onFilterApplied=function(e){this.filterApplied.raise(this,e)};FlexGridFilter.prototype.onEditingFilter=function(e){this.editingFilter.raise(this,e);return!e.cancel};FlexGridFilter.prototype.onFilterChanging=function(e){this.filterChanging.raise(this,e);return!e.cancel};FlexGridFilter.prototype.onFilterChanged=function(e){this.filterChanged.raise(this,e)};FlexGridFilter.prototype.onExclusiveValueSearchChanged=function(e){this.exclusiveValueSearchChanged.raise(this,e)};FlexGridFilter.prototype._onShowIncludeSelectionChanged=function(e){this._showIncludeSelectionChanged.raise(this,e)};FlexGridFilter.prototype._asColumn=function(e){return wijmo_1.isString(e)?this._g.getColumn(e,!0):wijmo_1.isNumber(e)?this._g.columns[e]:wijmo_1.asType(e,wijmo_grid_1.Column,!1)};FlexGridFilter.prototype._filter=function(e){var t=this.excludedRowsSet;if(!this.reApplyFilterOnUpdate&&t.has(e))return!0;for(var i=this._filters,l=0;l<i.length;l++){var r=i[l];if(r.column!=FlexGridFilter._skipColumn&&!r.apply(e))return!1}return!0};FlexGridFilter.prototype._adjustTabPanelStyle=function(e){if(e){var t=e.filterType!==FilterType.Both,i=document.querySelector('[wj-part="tabpanes"]');t&&i&&wijmo_1.toggleClass(i,exports.FlexGridFilterClsNames.filterTopBorder)}};FlexGridFilter.prototype._formatItem=function(e,t){if(t.panel==e.columnHeaders){var i=this._g,l=i.getMergedRange(t.panel,t.row,t.col)||new wijmo_grid_1.CellRange(t.row,t.col),r=i.columns[l.col],n=i._getBindingColumn(t.panel,t.row,r),o=t.cell;if(l.row2==t.panel.rows.length-1||r!=n){var a=this.getColumnFilter(n,this.defaultFilterType!=FilterType.None),s=this._filterColumns;s&&s.length&&s.indexOf(n.binding)<0&&s.indexOf(n.name)<0&&(a=null);if(a){wijmo_1.toggleClass(o,exports.FlexGridFilterClsNames.filterOn,a.isActive);wijmo_1.toggleClass(o,exports.FlexGridFilterClsNames.filterOff,!a.isActive)}else{wijmo_1.removeClass(o,exports.FlexGridFilterClsNames.filterOn);wijmo_1.removeClass(o,exports.FlexGridFilterClsNames.filterOff)}if(a&&a.filterType!=FilterType.None){this._showIcons&&this._addFilterButton(n,a,o);0==t.row&&(o=i.cells.getCellElement(-1,t.col))&&this._addFilterButton(r,a,o)}}}};FlexGridFilter.prototype._addFilterButton=function(e,t,i){var l=FlexGridFilter._WJC_FILTER,r=wijmo_1.createElement('<button class="'+wijmo_1.InputFormElementsClsNames.btn+" "+wijmo_1.GlyphClsNames.btnGlyph+" "+wijmo_1.UtilitesClsNames.right+" "+l+'" type="button" tabindex="-1"><span class='+wijmo_1.GlyphClsNames.filter+"></span></button>");wijmo_1.setAriaLabel(r,wijmo_1.culture.FlexGridFilter.ariaLabels.edit+" "+e.header);wijmo_1.setAttribute(r,"aria-haspopup","dialog");wijmo_1.setAttribute(r,"aria-expanded",!1);wijmo_1.setAttribute(r,"aria-describedby",e.describedById);wijmo_1.setAttribute(r,"aria-pressed",t.isActive);if(!i.querySelector("."+l)){1==i.children.length&&(i=i.querySelector("div")||i);i.insertBefore(r,i.firstChild)}};FlexGridFilter.prototype._mousedown=function(e){this._edtColPrev=this._edtCol};FlexGridFilter.prototype._click=function(e){if(this._toggleEditor(e)){e.stopPropagation();e.preventDefault()}};FlexGridFilter.prototype._toggleEditor=function(e){var t=this;if(!e.defaultPrevented&&0==e.button)if(wijmo_1.closestClass(e.target,FlexGridFilter._WJC_FILTER)){var i=this._g,l=i.hitTest(e.target);l.panel||(l=i.hitTest(e));if(l.panel&&i.columnHeaders&&i.cells&&(l.panel._uid==i.columnHeaders._uid||l.panel._uid==i.cells._uid&&-1==l.row)){var r=i.getMergedRange(l.panel,l.row,l.col)||new wijmo_grid_1.CellRange(l.row,l.col),n=i.columns[r.col],o=i._getBindingColumn(l.panel,l.row,n);if(this._divEdt&&this._edtCol==o){this.closeEditor();i.focus()}else o!=this._edtColPrev&&setTimeout((function(){t.editColumnFilter(o,l)}),this._divEdt?100:0);return!0}}else this.closeEditor();return!1};FlexGridFilter.prototype._keydown=function(e){var t=e.ctrlKey||e.metaKey,i=!e.defaultPrevented&&!t&&e.altKey,l=i&&e.keyCode===wijmo_1.Key.Up,r=i&&e.keyCode===wijmo_1.Key.Down,n=!e.defaultPrevented&&t&&e.shiftKey&&e.keyCode===wijmo_1.Key.F;if(l||r||n){var o=this.grid,a=o.selection,s=a.col>-1?o.columns[a.col]:null,d=s?o._getBindingColumn(o.cells,a.row,s):null,u=d&&d.dataMap&&d.dataMapEditor==wijmo_grid_1.DataMapEditor.DropDownList;if(this.filterColumns&&this.filterColumns.length>0&&!this.filterColumns.includes(d._binding._path)){e.preventDefault();return!1}if(o.activePanelType!=wijmo_grid_1.CellType.Cell&&o.activePanelType!=wijmo_grid_1.CellType.ColumnHeader){e.preventDefault();return!1}d&&d.editor instanceof wijmo_input_1.DropDown&&(u=!0);if(d&&(!u||n)){var c=this.getColumnFilter(d,!1);if(c&&c.filterType!=FilterType.None){this.editColumnFilter(d);e.preventDefault();e.stopPropagation()}}}};FlexGridFilter.prototype._removeFilter=function(e){this._filters.splice(e,1)};FlexGridFilter.prototype._adjustBindingColumns=function(e,t){if(t.action==wijmo_1.NotifyCollectionChangedAction.Reset){var i=this._filters;if(i&&i.length>0)for(var l=i.length-1;l>=0;l--){var r=i[l],n=r.column;if(n.binding){var o=this._asColumn(n.binding);o?o!==n&&r._setColumn(o):this._removeFilter(l)}}}};FlexGridFilter._WJC_FILTER=exports.FlexGridFilterClsNames.elemFilter;return FlexGridFilter}();exports.FlexGridFilter=FlexGridFilter;exports.empty={};var ValueFilterSearchKind,ColumnFilter=function(){function ColumnFilter(e,t){var i=this;this._ariaLabel=wijmo_1.culture.FlexGridFilter.ariaLabels.dialog;this._owner=e;this._col=t;this._valueFilter=new ValueFilter(t);this._valueFilter.setColumnFilter(this);this._valueFilter.exclusiveValueSearch=e.exclusiveValueSearch;this._valueFilter.showIncludeSelection=e.showIncludeSelection;this._conditionFilter=new ConditionFilter(t);this._conditionFilter.setColumnFilter(this);e.exclusiveValueSearchChanged.addHandler((function(e){i._valueFilter.exclusiveValueSearch=e.exclusiveValueSearch}));e._showIncludeSelectionChanged.addHandler((function(e){i._valueFilter.showIncludeSelection=e.showIncludeSelection}))}Object.defineProperty(ColumnFilter.prototype,"filterType",{get:function(){return null!=this._filterType?this._filterType:this._owner.defaultFilterType},set:function(e){if((e=wijmo_1.asEnum(e,FilterType,!0))!=this._filterType){var t=this.isActive;this.clear();this._filterType=e;t?this._owner.apply():this._col.grid&&this._col.grid.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"filterMode",{get:function(){return null!=this._filterMode?this._filterMode:this._owner.defaultFilterMode},set:function(e){if((e=wijmo_1.asEnum(e,FilterMode,!0))!=this._filterMode){var t=this.isActive;this.clear();this._filterMode=e;t?this._owner.apply():this._col.grid&&this._col.grid.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"dataMap",{get:function(){return this.conditionFilter.dataMap||this.valueFilter.dataMap},set:function(e){this.conditionFilter.dataMap=e;this.valueFilter.dataMap=e},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"valueFilter",{get:function(){return this._valueFilter},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"conditionFilter",{get:function(){return this._conditionFilter},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0});ColumnFilter.prototype._setColumn=function(e){this._col=e;this._valueFilter&&this._valueFilter._setColumn(e);this._conditionFilter&&this._conditionFilter._setColumn(e)};Object.defineProperty(ColumnFilter.prototype,"ariaLabel",{get:function(){return this._ariaLabel},set:function(e){e!=this._ariaLabel&&(this._ariaLabel=e)},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"isActive",{get:function(){return this._conditionFilter.isActive||this._valueFilter.isActive},enumerable:!0,configurable:!0});ColumnFilter.prototype.apply=function(e){var t=this._conditionFilter.apply(e);this._valueFilter._cancelFilter||(t=t&&this._valueFilter.apply(e));return t};ColumnFilter.prototype.clear=function(){this._valueFilter.clear();this._conditionFilter.clear()};ColumnFilter.prototype.implementsInterface=function(e){return"IColumnFilter"==e};return ColumnFilter}();exports.ColumnFilter=ColumnFilter;!function(e){e[e.Text=0]="Text";e[e.Regex=1]="Regex";e[e.Excel=2]="Excel"}(ValueFilterSearchKind=exports.ValueFilterSearchKind||(exports.ValueFilterSearchKind={}));var ValueFilter=function(){function ValueFilter(e){this._values=null;this._filterText=null;this._xValueSearch=!0;this._maxValues=250;this._uniqueValues=null;this._sortValues=!0;this._searchType=ValueFilterSearchKind.Excel;this._showIncludeSelection=!1;this._allValues=null;this._col=e}Object.defineProperty(ValueFilter.prototype,"searchType",{get:function(){return this._searchType},set:function(e){this._searchType=wijmo_1.asEnum(e,ValueFilterSearchKind)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"showValues",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"filterText",{get:function(){return this._filterText},set:function(e){this._filterText=wijmo_1.asString(e)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"exclusiveValueSearch",{get:function(){return this._xValueSearch},set:function(e){if((e=wijmo_1.asBoolean(e))!==this._xValueSearch){this._xValueSearch=wijmo_1.asBoolean(e);e&&(this._filterText="")}},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"maxValues",{get:function(){return this._maxValues},set:function(e){this._maxValues=wijmo_1.asNumber(e,!1,!0)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"uniqueValues",{get:function(){return this._uniqueValues},set:function(e){this._uniqueValues=wijmo_1.asArray(e)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"sortValues",{get:function(){return this._sortValues},set:function(e){this._sortValues=wijmo_1.asBoolean(e)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"dataMap",{get:function(){return this._map},set:function(e){this._map=wijmo_1.asType(e,wijmo_grid_1.DataMap,!0)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"showIncludeSelection",{get:function(){return this._showIncludeSelection},set:function(e){e!=this._showIncludeSelection&&(this._showIncludeSelection=wijmo_1.asBoolean(e,!1))},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0});ValueFilter.prototype._setColumn=function(e){this._col=e};Object.defineProperty(ValueFilter.prototype,"isActive",{get:function(){var e=null!=this._values;return this._columnFilter&&this._columnFilter.filterMode===FilterMode.MultiFilter?e:e&&Object.keys(this._values).length>0},enumerable:!0,configurable:!0});ValueFilter.prototype.apply=function(e){var t=this.column;if(!t||!t._binding||!this.isActive)return!0;e=t._binding.getValue(e);e=this.dataMap?this.dataMap.getDisplayValue(e)||"":t.dataMap?t.dataMap.getDisplayValue(e)||"":wijmo_1.Globalize.format(e,t.format);return null!=this._values[e]};ValueFilter.prototype.clear=function(){this.showValues=null;this.filterText=null};ValueFilter.prototype.getUniqueValues=function(e){void 0===e&&(e=!0);var t=[],i=this.column,l=wijmo_1.Globalize.format;if(this.uniqueValues){this.uniqueValues.forEach((function(e){t.push({value:e,text:l(e,i.format)})}));return t}var r={},n=i.collectionView,o=n?n.sourceCollection:[];if(e&&n&&n.sourceCollection&&n.filter)try{this._columnFilter&&this._columnFilter.filterMode===FilterMode.MultiFilter&&this._columnFilter.conditionFilter.isActive?this._cancelFilter=!0:FlexGridFilter._skipColumn=this._col;for(var a=[],s=0;s<o.length;s++)n.filter(o[s])&&a.push(o[s]);o=a}finally{this._cancelFilter=!1;FlexGridFilter._skipColumn=null}for(s=0;s<o.length;s++){var d=i._binding.getValue(o[s]),u=this.dataMap?this.dataMap.getDisplayValue(d)||"":i.dataMap?i.dataMap.getDisplayValue(d)||"":l(d,i.format);if(!r[u]){r[u]=!0;t.push({value:d,text:u})}}return t};ValueFilter.prototype.implementsInterface=function(e){return"IColumnFilter"==e};ValueFilter.prototype.setColumnFilter=function(e){this._columnFilter=e};ValueFilter.prototype.updateShowStatus=function(e){if(this.showValues&&0!=Object.keys(this.showValues).length){for(var t in this.showValues)for(var i=0;i<e.length;i++)if(e[i].text==t){e[i].show=!0;break}}else e.forEach((function(e){return e.show=!0}));return e};ValueFilter.prototype.setInitialAllValues=function(){var e=this.getUniqueValues(!1);this._allValues=this.updateShowStatus(e)};return ValueFilter}();exports.ValueFilter=ValueFilter;var ValueFilterEditor=function(e){__extends(ValueFilterEditor,e);function ValueFilterEditor(t,i){var l=e.call(this,t)||this;l._canApply=!1;l._isFiltering=!1;l._filterTextChangedBnd=l._filterTextChanged.bind(l);l._cbSelectAllClickedBnd=l._cbSelectAllClicked.bind(l);l.canApplyChanged=new wijmo_1.Event;l._filter=wijmo_1.asType(i,ValueFilter,!1);var r=l.getTemplate();l.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+exports.ValueFilterEditorClsNames.hostElement,r,{_divFilter:"div-filter",_cbSelectAll:"cb-select-all",_spSelectAll:"sp-select-all",_cbIncludeSel:"cb-include-sel",_spIncludeSel:"sp-include-sel",_lblIncludeSel:"lbl-include-sel",_divOptions:"div-options",_divValues:"div-values",_divExceeds:"div-exceeds",_aExceeds:"a-exceeds"});l._cbSelectAll.tabIndex=0;l._cbIncludeSel.tabIndex=0;l._divExceeds.tabIndex=0;var n=wijmo_1.culture.FlexGridFilter;wijmo_1.setText(l._spSelectAll,n.selectAll);wijmo_1.setText(l._spIncludeSel,n.includeSelection);wijmo_1.setText(l._aExceeds,n.exceedsMaxValues);wijmo_1.setAttribute(l._divValues,"aria-live","polite");var o=l._view=new wijmo_1.CollectionView(null,{sortNulls:wijmo_1.SortNulls.First,filter:l._filterValues.bind(l)});if(i.sortValues){var a=i.column.dataMap||i.dataMap?"text":"value",s=i.column.dataType!=wijmo_1.DataType.Boolean;o.sortDescriptions.push(new wijmo_1.SortDescription(a,s))}o.collectionChanged.addHandler(l._updateSelectAllCheck,l);l._filterText="";l._rxFilter=null;l._cmbFilter=new input.ComboBox(l._divFilter,{trimText:!1,isRequired:!1,placeholder:n.search,keyActionPrintCharacters:0,keyActionTab:0});l._cmbFilter.isEditable=!0;var d=l._divFilter.querySelector(".wj-input-group");if(d){var u=document.createElement("span");u.classList.add("wj-glyph-search");d.insertBefore(u,d.firstChild)}l._lbValues=new input.ListBox(l._divValues,{displayMemberPath:"text",checkedMemberPath:"show",itemsSource:l._view,itemFormatter:function(e,t){return t||n.null},checkedItemsChanged:function(e){return l._updateSelectAllCheck()}});l._lbValues._isNeedUpdateBnd=l._isSingleFilterMode();wijmo_1.setAttribute(l._divValues,"aria-label",wijmo_1.culture.FlexGridFilter.ariaLabels.listBox);wijmo_1.setAriaLabel(l._cmbFilter.inputElement,n.ariaLabels.search);wijmo_1.setAttribute(l._lbValues.hostElement,"aria-multiselectable",!0);l._cmbFilter.inputElement.addEventListener("input",l._filterTextChangedBnd);l._cbSelectAll.addEventListener("click",l._cbSelectAllClickedBnd);if(!l._popup){l._initPopup();l._aExceeds&&l.addEventListener(l._aExceeds,"click",(function(e){e.preventDefault();l._popup.show(!0)}))}l.updateEditor();wijmo_1.setAttribute(l._lbValues.hostElement,"tabindex","-1");l._filter.showValues?l._initialItems=o.sourceCollection.filter((function(e){return l._filter.showValues[e.text||e.value]||!1})):l._initialItems=l._lbValues.checkedItems;l._isSingleFilterMode()||l._filter.setInitialAllValues();return l}Object.defineProperty(ValueFilterEditor,"controlTemplate",{get:function(){ValueFilterEditor._ctrlTemplate||(ValueFilterEditor._ctrlTemplate='<div><div wj-part="div-filter"></div><div wj-part="div-options" class="'+input.ListBoxClsNames.listBoxItem+" "+exports.ValueFilterEditorClsNames.filterOptions+'"><label wj-part="select-all-container"><input wj-part="cb-select-all" type="checkbox" class="wj-custom-checkbox"> <span wj-part="sp-select-all"></span></label><br /><label wj-part="lbl-include-sel"><input wj-part="cb-include-sel" type="checkbox" class="wj-custom-checkbox"> <span wj-part="sp-include-sel"></span></label></div><div wj-part="div-values"></div><div wj-part="div-exceeds"><a wj-part="a-exceeds"></a></div></div>');return ValueFilterEditor._ctrlTemplate},set:function(e){ValueFilterEditor._ctrlTemplate=e},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilterEditor.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilterEditor.prototype,"canApply",{get:function(){return this._canApply},set:function(e){if(e!=this._canApply){this._canApply=e;this.onCanApplyChanged()}},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilterEditor.prototype,"_shouldIncludeSelection",{get:function(){return this._filter.showIncludeSelection&&this._cbIncludeSel.checked},enumerable:!0,configurable:!0});ValueFilterEditor.prototype.updateEditor=function(){var e=this,t=this._filter.column,i=this._filter.getUniqueValues(!0);this._lbValues.isContentHtml=t.isContentHtml;var l=this._filter.showValues;if(!l||0==Object.keys(l).length&&this._isSingleFilterMode())i.forEach((function(e){return e.show=!0}));else for(var r in l)for(var n=0;n<i.length;n++)if(i[n].text==r){i[n].show=!0;break}var o=this._filter.filterText||"",a=this._getCaseSensitive();this._cmbFilter.text=o;this._filterText=a?o:o.toLowerCase();this._rxFilter=this._getSearchExp(o,a);this._filter.showIncludeSelection&&!this.hostElement.contains(this._lblIncludeSel)?this._divOptions.appendChild(this._lblIncludeSel):this._filter.showIncludeSelection||this._lblIncludeSel.remove();var s=this._view;s.pageSize=this._filter.maxValues;s.sourceCollection=i;this._adjustWidthsTimer=setTimeout((function(){e._adjustWidths()}),0);this._updateExceedsMaxValuesDisplay()};ValueFilterEditor.prototype.clearEditor=function(e){void 0===e&&(e=!0);this._cmbFilter.text="";this._filterText="";this._rxFilter=null;var t=this._view;t.pageSize=0;t.items.forEach((function(t){t.show=e}));t.moveCurrentTo(-1);t.refresh();t.pageSize=this._filter.maxValues};Object.defineProperty(ValueFilterEditor.prototype,"isEditorClear",{get:function(){return!this._filterText&&!this._cbSelectAll.indeterminate},enumerable:!0,configurable:!0});ValueFilterEditor.prototype._updateFilter=function(){var e,t=this._filter,i=null;e=this._isSingleFilterMode()?this._getItems():this._filter._allValues=wijmo_1.replaceItems(this._filter._allValues,this._view.sourceCollection);if(!this._isSingleFilterMode()||this._filterText||this._cbSelectAll.indeterminate){i=this._shouldIncludeSelection&&this._filter.showValues||{};for(var l=0;l<e.length;l++){var r=e[l];r.show&&(i[r.text]=!0)}}t.showValues=i;t.filterText=this._filterText};ValueFilterEditor.prototype.updateFilter=function(){var e=this;this._isFiltering?this._updateFilterTimer=setTimeout((function(){e._updateFilter()}),wijmo_1.Control._SEARCH_DELAY+100):this._updateFilter()};ValueFilterEditor.prototype.onCanApplyChanged=function(e){this.canApplyChanged.raise(this,e)};ValueFilterEditor.prototype._getCaseSensitive=function(){var e=this._filter.column,t=e?e.grid:null;return t&&t.caseSensitiveSearch};ValueFilterEditor.prototype._getItems=function(){return this._filter.exclusiveValueSearch?this._view.items:this._view.sourceCollection};ValueFilterEditor.prototype._filterTextChanged=function(){var e=this;""===this._filterText&&this._cbSelectAll.checked||this._filter.exclusiveValueSearch?this._lbValues._addMode=!1:this._lbValues._addMode=!0;this._toFilter&&clearTimeout(this._toFilter);this._isFiltering=!0;this._toFilter=setTimeout((function(){var t=e._cmbFilter.text,i=e._getCaseSensitive();i||(t=t.toLowerCase());if(t!=e._filterText){e._filterText=t;e._rxFilter=e._getSearchExp(t,i);e._view.refresh();e._updateExceedsMaxValuesDisplay();if(e._isSingleFilterMode()){if(!t){var l=e._initialItems;if(l.length&&e._view.sourceCollection.indexOf(l[0])>-1){e._lbValues.checkedItems=e._initialItems;e._updateSelectAllCheck();e._isFiltering=!1;return}}}else e._filter.filterText=t;if(e._filter.exclusiveValueSearch){e._cbSelectAll.checked=!1;e._cbSelectAll.click()}else e._updateSelectAllCheck()}e._isFiltering=!1}),wijmo_1.Control._SEARCH_DELAY)};ValueFilterEditor.prototype._getSearchExp=function(e,t){if(!e)return null;switch(this._filter.searchType){case ValueFilterSearchKind.Text:return this._getTextSearchExp(e,t);case ValueFilterSearchKind.Regex:return this._getRegexSearchExp(e,t);case ValueFilterSearchKind.Excel:return this._getExcelSearchExp(e,t)}};ValueFilterEditor.prototype._getTextSearchExp=function(e,t){return new RegExp(wijmo_1.escapeRegExp(e),t?"":"i")};ValueFilterEditor.prototype._getRegexSearchExp=function(e,t){try{return new RegExp(e,t?"s":"is")}catch(e){return new RegExp("(?!)",t?"s":"is")}};ValueFilterEditor.prototype._getExcelSearchExp=function(e,t){var i=e;i=(i=(i=(i=(i=(i=(i=(i=i.replace(/([.+^$[\]\\(){}|-])/g,"\\$1")).replace(/~~/g,"__`$0`__")).replace(/~\?/g,"__`$1`__")).replace(/~\*/g,"__`$2`__")).replace(/~(.)/g,"$1")).replace(/(\?+)/g,(function(e,t){return Array.from(t).map((function(e){return"."})).join("")}))).replace(/(\*+)/g,(function(e,t){return Array.from(t).map((function(e){return".*"})).join("")}))).replace(/__`\$(\d)`__/g,(function(e,t){switch(t){case"0":return"~";case"1":return"\\?";case"2":return"\\*"}}));/([^~]|^)[?*]/g.test(e)&&(i="^"+i+"$");("~"===e||e&&!i.length)&&(i="$a^");return new RegExp(i,t?"s":"is")};ValueFilterEditor.prototype._filterValues=function(e){var t=this._rxFilter;return null==t||null==e||t.test(e.text)};ValueFilterEditor.prototype._getActualItems=function(){return this._isSingleFilterMode()?this._getItems():this.exceedsMaxValues?this._view._view:this._view.items};ValueFilterEditor.prototype._cbSelectAllClicked=function(){for(var e=this,t=this._cbSelectAll.checked,i=this._divValues.scrollTop,l=this._getActualItems(),r=0;r<l.length;r++)l[r].show=t;this._view.refresh();this._divValues.scrollTop=i;this._adjustWidthsTimer=setTimeout((function(){e._adjustWidths()}),0)};ValueFilterEditor.prototype._updateSelectAllCheck=function(){for(var e=this._getActualItems(),t=0,i=0,l=0;l<e.length;l++){e[l].show?t++:i++;if(t&&i)break}var r=t&&i?null:t>0;wijmo_1.setChecked(this._cbSelectAll,r);null==r?this._cbSelectAll.setAttribute("data-indeterminate","true"):this._cbSelectAll.removeAttribute("data-indeterminate");this.canApply=t>0};ValueFilterEditor.prototype._adjustWidths=function(){var e=this._lbValues.hostElement;if(e&&e.offsetHeight>0){var t=0,i=e.querySelectorAll("."+input.ListBoxClsNames.listBoxItem);if(i.length){for(var l=0;l<i.length;l++)t=Math.max(t,i[l].scrollWidth);if(t){var r=e.querySelectorAll("."+input.ListBoxClsNames.listBoxItem);if(r.length)for(l=0;l<r.length;l++)r[l].style.width=t+"px"}}}};Object.defineProperty(ValueFilterEditor.prototype,"exceedsMaxValues",{get:function(){return!(!this._view||!this._view._view)&&this._view._view.length>this.filter.maxValues},enumerable:!0,configurable:!0});ValueFilterEditor.prototype._updateExceedsMaxValuesDisplay=function(){this._divExceeds.style.display=this.exceedsMaxValues?"":"none"};ValueFilterEditor.prototype._initPopup=function(){var e=document.createElement("div"),t=this.hostElement.getAttribute("lang");e.innerHTML='\n <div role="dialog" aria-modal="true" aria-describedby="dialogDesc" '+(t?'lang="'+t+'"':"")+"><div class="+input.PopupClsNames.dialogBody+"><div class="+exports.ValueFilterEditorClsNames.customModalText+'><p id="dialogDesc">'+wijmo_1.culture.FlexGridFilter.popupBody+'</p></div></div><div class="'+input.PopupClsNames.dialogFooter+" "+exports.ValueFilterEditorClsNames.modalFooter+'" ><button class="btn btn-primary '+wijmo_1.UtilitesClsNames.hideOk+'">'+wijmo_1.culture.FlexGridFilter.popupOkButton+"</button></div></div>";this._popup=new input.Popup(e,{modal:!0,fadeIn:!0,fadeOut:!0})};ValueFilterEditor.prototype._isSingleFilterMode=function(){return!this._filter._columnFilter||this._filter._columnFilter.filterMode==FilterMode.SingleFilter};ValueFilterEditor.prototype.dispose=function(){if(this._lbValues){this._lbValues.dispose();this._lbValues=null}this._cbSelectAll&&this._cbSelectAll.removeEventListener("click",this._cbSelectAllClickedBnd);if(this._cmbFilter){this._cmbFilter.inputElement&&this._cmbFilter.inputElement.removeEventListener("input",this._filterTextChangedBnd);this._cmbFilter.dispose();this._cmbFilter=null}if(this._view){this._view.collectionChanged.removeHandler(this._updateSelectAllCheck,this);this._view=null}if(this._adjustWidthsTimer){clearTimeout(this._adjustWidthsTimer);this._adjustWidthsTimer=null}if(this._updateFilterTimer){clearTimeout(this._updateFilterTimer);this._updateFilterTimer=null}if(this._toFilter){clearTimeout(this._toFilter);this._toFilter=null}if(this._popup&&!this._popup.isVisible){this._popup.dispose();this._popup=null}this._filter=null;this._initialItems=null;this._rxFilter=null;this._filterText=null;e.prototype.dispose.call(this)};ValueFilterEditor._ctrlTemplate="";return ValueFilterEditor}(wijmo_1.Control);exports.ValueFilterEditor=ValueFilterEditor;var ConditionFilter=function(){function ConditionFilter(e){this._c1=new FilterCondition(this);this._c2=new FilterCondition(this);this._and=!0;this._col=e}Object.defineProperty(ConditionFilter.prototype,"condition1",{get:function(){return this._c1},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilter.prototype,"condition2",{get:function(){return this._c2},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilter.prototype,"and",{get:function(){return this._and},set:function(e){this._and=wijmo_1.asBoolean(e)},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilter.prototype,"dataMap",{get:function(){return this._map},set:function(e){this._map=wijmo_1.asType(e,wijmo_grid_1.DataMap,!0)},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilter.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0});ConditionFilter.prototype._setColumn=function(e){this._col=e};Object.defineProperty(ConditionFilter.prototype,"isActive",{get:function(){return this._c1.isActive||this._c2.isActive},enumerable:!0,configurable:!0});ConditionFilter.prototype.apply=function(e){var t=this._col,i=this._c1,l=this._c2,r=!1,n=!1;if(!t||!t._binding||!this.isActive)return!0;e=t._binding.getValue(e);var o=this.dataMap||t.dataMap;if(o)e=o.getDisplayValue(e);else if(wijmo_1.isDate(e)){r=!this._hasTimePart();n=!this._hasDatePart();var a=FilterCondition._refDateTime;r?e=wijmo_1.DateTime.fromDateTime(e,a):n&&(e=wijmo_1.DateTime.fromDateTime(a,e))}else if(wijmo_1.isNumber(e)){var s=wijmo_1.Globalize,d=t.format,u=s.formatNumber(e,d);e=s.parseFloat(u,d)}var c=i.apply(e,r,n),p=l.apply(e,r,n);return i.isActive&&l.isActive?this._and?c&&p:c||p:i.isActive?c:!l.isActive||p};ConditionFilter.prototype.clear=function(){this._c1.clear();this._c2.clear();this.and=!0};ConditionFilter.prototype._hasDatePart=function(){var e=this._col.format;if(!e)return!0;e=wijmo_1.culture.Globalize.calendar.patterns[e]||e;return/[yMd]+/.test(e)};ConditionFilter.prototype._hasTimePart=function(){var e=this._col.format;if(!e)return!1;e=wijmo_1.culture.Globalize.calendar.patterns[e]||e;return/[Hmst]+/.test(e)};ConditionFilter.prototype.implementsInterface=function(e){return"IColumnFilter"==e};ConditionFilter.prototype.setColumnFilter=function(e){this._columnFilter=e};return ConditionFilter}();exports.ConditionFilter=ConditionFilter;var Operator,FilterCondition=function(){function FilterCondition(e){this._op=null;this._filter=e}Object.defineProperty(FilterCondition.prototype,"operator",{get:function(){return this._op},set:function(e){this._op=wijmo_1.asEnum(e,Operator,!0)},enumerable:!0,configurable:!0});Object.defineProperty(FilterCondition.prototype,"value",{get:function(){return this._val},set:function(e){this._val=e;this._strVal=wijmo_1.isString(e)?this._getCaseString(e):null},enumerable:!0,configurable:!0});Object.defineProperty(FilterCondition.prototype,"isActive",{get:function(){if(this._filter._columnFilter&&this._filter._columnFilter.filterMode==FilterMode.MultiFilter)switch(this._op){case null:return!1;case Operator.BLANK:case Operator.NOTBLANK:return!0;default:return""!==this._val&&null!==this._val}else switch(this._op){case null:return!1;case Operator.EQ:case Operator.NE:return!0;default:return null!=this._val||null!=this._strVal}},enumerable:!0,configurable:!0});FilterCondition.prototype.clear=function(){this.operator=null;this.value=null};FilterCondition.prototype.apply=function(e,t,i){var l=this._strVal||this._val;wijmo_1.isString(e)&&(e=this._getCaseString(e));wijmo_1.isString(l)&&null==e&&(e="");wijmo_1.isDate(l)&&(t?l=wijmo_1.DateTime.fromDateTime(l,FilterCondition._refDateTime):i&&(l=wijmo_1.DateTime.fromDateTime(FilterCondition._refDateTime,l)));var r=Operator;switch(this._op){case null:return!0;case r.EQ:return null!=e&&null!=l?e.valueOf()==l.valueOf():e==l;case r.NE:return null!=e&&null!=l?e.valueOf()!=l.valueOf():e!=l;case r.GT:return e>l;case r.GE:return e>=l;case r.LT:return e<l;case r.LE:return e<=l;case r.BW:return!(null==this._strVal||!wijmo_1.isString(e))&&0==e.indexOf(this._strVal);case r.EW:return!!(null!=this._strVal&&wijmo_1.isString(e)&&e.length>=this._strVal.length)&&e.substr(e.length-this._strVal.length)==l;case r.CT:return!(null==this._strVal||!wijmo_1.isString(e))&&e.indexOf(this._strVal)>-1;case r.NC:return!(null==this._strVal||!wijmo_1.isString(e))&&e.indexOf(this._strVal)<0;case r.NBW:return!(null==this._strVal||!wijmo_1.isString(e))&&0!==e.indexOf(this._strVal);case r.NEW:return!(null==this._strVal||!wijmo_1.isString(e))&&e.substring(e.length-this._strVal.length)!==l;case r.BLANK:return isBlankValue(e);case r.NOTBLANK:return!isBlankValue(e)}throw"Unknown operator"};FilterCondition.prototype._getCaseString=function(e){var t=this._filter.column,i=t?t.grid:null;return i&&i.caseSensitiveSearch?e:e.toLowerCase()};FilterCondition._refDateTime=new Date(2e3,0,1,0,0,0);return FilterCondition}();exports.FilterCondition=FilterCondition;!function(e){e[e.EQ=0]="EQ";e[e.NE=1]="NE";e[e.GT=2]="GT";e[e.GE=3]="GE";e[e.LT=4]="LT";e[e.LE=5]="LE";e[e.BW=6]="BW";e[e.EW=7]="EW";e[e.CT=8]="CT";e[e.NC=9]="NC";e[e.NBW=10]="NBW";e[e.NEW=11]="NEW";e[e.BLANK=100]="BLANK";e[e.NOTBLANK=101]="NOTBLANK"}(Operator=exports.Operator||(exports.Operator={}));function isBlankValue(e){return null==e||""===e}var ConditionFilterEditor=function(e){__extends(ConditionFilterEditor,e);function ConditionFilterEditor(t,i){var l=e.call(this,t)||this;l._canApply=!1;l.canApplyChanged=new wijmo_1.Event;l._filter=wijmo_1.asType(i,ConditionFilter,!1);var r=l.getTemplate();l.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+exports.ConditionFilterEditorClsNames.hostElement,r,{_divHdr:"div-hdr",_divCmb1:"div-cmb1",_divVal1:"div-val1",_btnAnd:"btn-and",_btnOr:"btn-or",_spAnd:"sp-and",_spOr:"sp-or",_divCmb2:"div-cmb2",_divVal2:"div-val2",_lblVal:"lbl-val",_divHdr2:"div-hdr-second",_lblVal2:"lbl-val-second"});var n=wijmo_1.culture.FlexGridFilter,o=n.ariaLabels;wijmo_1.setAriaLabel(l._btnAnd,o.and);wijmo_1.setAriaLabel(l._btnOr,o.or);wijmo_1.setAttribute(l._btnAnd,"aria-describedby","filterAndDesc");wijmo_1.setAttribute(l._btnOr,"aria-describedby","filterOrDesc");l._spAnd.id="filterAndDesc";l._spOr.id="filterOrDesc";wijmo_1.setText(l._divHdr,n.header);wijmo_1.setText(l._spAnd,n.and);wijmo_1.setText(l._spOr,n.or);wijmo_1.setText(l._lblVal,o.val1);wijmo_1.setText(l._divHdr2,n.header);wijmo_1.setText(l._lblVal2,o.val2);l._linkLabelToInput(l._divHdr,l._divCmb1,"cmb1");l._linkLabelToInput(l._divHdr2,l._divCmb2,"cmb2");l._cmb1=l._createOperatorCombo(l._divCmb1,o.op1);l._val1=l._createValueInput(l._divVal1,o.val1);l._cmb2=l._createOperatorCombo(l._divCmb2,o.op2);l._val2=l._createValueInput(l._divVal2,o.val2);l._val1.hostElement.style.display="none";l._lblVal.style.display="none";l._cmb1.selectedIndexChanged.addHandler((function(e,t){var i=null==e.selectedValue||l._isShowConditionValuePart(e.selectedValue);l._val1.hostElement.style.display=i?"none":"";l._lblVal.style.display=i?"none":"";wijmo_1.setAttribute(l._val1.hostElement,"aria-hidden",i.toString());l.canApply=!i||"none"!==l._val2.hostElement.style.display}));l._val2.hostElement.style.display="none";l._lblVal2.style.display="none";l._cmb2.selectedIndexChanged.addHandler((function(e,t){var i=null==e.selectedValue||l._isShowConditionValuePart(e.selectedValue);l._val2.hostElement.style.display=i?"none":"";l._lblVal2.style.display=i?"none":"";wijmo_1.setAttribute(l._val2.hostElement,"aria-hidden",i.toString());l.canApply="none"!==l._val1.hostElement.style.display||!i}));l.addEventListener(l._lblVal,"click",(function(e){return l._onLabelClick(e,l._val1)}));l.addEventListener(l._lblVal2,"click",(function(e){return l._onLabelClick(e,l._val2)}));var a=l.hostElement;l.addEventListener(a,"change",l._btnAndOrChanged.bind(l));l.addEventListener(a,"keydown",l._keydown.bind(l));l.updateEditor();return l}Object.defineProperty(ConditionFilterEditor,"controlTemplate",{get:function(){ConditionFilterEditor._ctrlTemplate||(ConditionFilterEditor._ctrlTemplate='<div><label wj-part="div-hdr"></label><div wj-part="div-cmb1"></div><br/><label wj-part="lbl-val"></label><div wj-part="div-val1"></div><br/><div role="radiogroup" style="text-align:center"><label><input wj-part="btn-and" type="radio" role="radio"> <span wj-part="sp-and"></span> </label> <label><input wj-part="btn-or" type="radio" role="radio"> <span wj-part="sp-or"></span> </label></div><label wj-part="div-hdr-second"></label><div wj-part="div-cmb2"></div><br/><label wj-part="lbl-val-second"></label><div wj-part="div-val2"></div><br/></div>');return ConditionFilterEditor._ctrlTemplate},set:function(e){ConditionFilterEditor._ctrlTemplate=e},enumerable:!0,configurable:!0});ConditionFilterEditor.prototype._isShowConditionValuePart=function(e){return e==Operator.BLANK||e==Operator.NOTBLANK};ConditionFilterEditor.prototype._linkLabelToInput=function(e,t,i){var l=wijmo_1.getUniqueId(i);e.htmlFor=l;t.id=l};Object.defineProperty(ConditionFilterEditor.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilterEditor.prototype,"canApply",{get:function(){return this._canApply},set:function(e){if(e!=this._canApply){this._canApply=e;this.onCanApplyChanged()}},enumerable:!0,configurable:!0});ConditionFilterEditor.prototype.updateEditor=function(){var e=this._filter.condition1,t=this._filter.condition2;this._cmb1.selectedValue=e.operator;this._cmb2.selectedValue=t.operator;if(this._val1 instanceof input.ComboBox&&!(this._val1 instanceof input.InputTime)){this._val1.text=wijmo_1.changeType(e.value,wijmo_1.DataType.String);this._val2.text=wijmo_1.changeType(t.value,wijmo_1.DataType.String)}else{this._val1.value=e.value;this._val2.value=t.value}var i=this._filter.and;this._checkRadio(this._btnAnd,i);this._checkRadio(this._btnOr,!i)};ConditionFilterEditor.prototype.clearEditor=function(){this._cmb1.selectedValue=this._cmb2.selectedValue=null;this._val1.text=this._val2.text=null;this._checkRadio(this._btnAnd,!0);this._checkRadio(this._btnOr,!1)};Object.defineProperty(ConditionFilterEditor.prototype,"isEditorClear",{get:function(){return null==this._cmb1.selectedValue&&!this._val1.text&&null==this._cmb2.selectedValue&&!this._val2.text},enumerable:!0,configurable:!0});ConditionFilterEditor.prototype.updateFilter=function(){var e=this._filter.condition1,t=this._filter.condition2;e.operator=this._cmb1.selectedValue;t.operator=this._cmb2.selectedValue;if("value"in this._val1)if(!this._isSingleFilterMode()&&this._val1._cal&&this._val1._getParsedValue){e.value=this._val1._getParsedValue();t.value=this._val2._getParsedValue()}else{e.value=this._val1.value;t.value=this._val2.value}else{e.value=this._getComboValue(this._val1);t.value=this._getComboValue(this._val2)}this._filter.and=this._btnAnd.checked};ConditionFilterEditor.prototype.onCanApplyChanged=function(e){this.canApplyChanged.raise(this,e)};ConditionFilterEditor.prototype._getComboValue=function(e){return e.selectedIndex>-1?e.selectedValue:e.text};ConditionFilterEditor.prototype._createOperatorCombo=function(e,t){var i=this._filter.column,l=wijmo_1.culture.FlexGridFilter,r=l.stringOperators,n=wijmo_1.DataType;this._filter.dataMap||i.dataMap||(i.dataType==n.Date?r=l.dateOperators:i.dataType==n.Number?r=l.numberOperators:i.dataType==n.Boolean&&(r=l.booleanOperators));this._isSingleFilterMode()||(r=r.concat(l.multiFilterBlankOperators));var o=new input.ComboBox(e,{itemsSource:r,displayMemberPath:"name",selectedValuePath:"op",keyActionPrintCharacters:0});wijmo_1.setAriaLabel(o.inputElement,t);return o};ConditionFilterEditor.prototype._createValueInput=function(e,t){var i=this._filter,l=i.column,r=i.dataMap||l.dataMap,n=null,o=wijmo_1.DataType;if(l.dataType==o.Date)(n=i._hasDatePart()?i._hasTimePart()?new input.InputDateTime(e):new input.InputDate(e):new input.InputTime(e,{keyActionPrintCharacters:0})).format=l.format;else if(l.dataType!=o.Number||r){(n=new input.ComboBox(e)).isEditable=!0;n.trimText=!1;n.keyActionPrintCharacters=0;if(r){n.itemsSource=r.getDisplayValues();n.caseSensitiveSearch=!!l.grid&&l.grid.caseSensitiveSearch}else l.dataType==o.Boolean&&(n.itemsSource=[!0,!1])}else{(n=new input.InputNumber(e)).step=1;n.format=l.format}n.isRequired=!1;wijmo_1.setAriaLabel(n.inputElement,t);return n};ConditionFilterEditor.prototype._btnAndOrChanged=function(e){var t=e.target==this._btnAnd,i=e.target==this._btnOr;if(t||i){this._checkRadio(this._btnAnd,t);this._checkRadio(this._btnOr,i)}};ConditionFilterEditor.prototype._checkRadio=function(e,t){e.checked=t;wijmo_1.setAttribute(e,"aria-checked",t.toString());wijmo_1.setAttribute(e,"tabindex",t?null:"-1")};ConditionFilterEditor.prototype._keydown=function(e){var t=e.target==this._btnAnd,i=e.target==this._btnOr;if(t||i)switch(e.keyCode){case wijmo_1.Key.Left:case wijmo_1.Key.Right:case wijmo_1.Key.Up:case wijmo_1.Key.Down:var l=t?this._btnOr:this._btnAnd;l.click();l.focus();e.preventDefault()}};ConditionFilterEditor.prototype._onLabelClick=function(e,t){t.focus()};ConditionFilterEditor.prototype._isSingleFilterMode=function(){return!this._filter._columnFilter||this._filter._columnFilter.filterMode==FilterMode.SingleFilter};ConditionFilterEditor._ctrlTemplate="";return ConditionFilterEditor}(wijmo_1.Control);exports.ConditionFilterEditor=ConditionFilterEditor;wijmo_1._addCultureInfo("FlexGridFilter",{ariaLabels:{edit:"Edit Filter for Column",dialog:"Filter Editor for Column",asc:"Sort Column in Ascending Order",dsc:"Sort Column in Descending Order",search:"Search Item List",op1:"First Condition Operator",val1:"First Condition Value",and:"Require both Conditions",or:"Require either Condition",op2:"Second Condition Operator",val2:"Second Condition Value",active:"active",listBox:"List of options available for filtering"},accessibilityHelperMessage:{filter:{filterColumn:"Show column {name} filter dialog",closeFilterDialog:"Close Filter dialog"}},ascending:"↑ Ascending",descending:"↓ Descending",apply:"Apply",cancel:"Cancel",clear:"Clear",conditions:"Filter by Condition",values:"Filter by Value",search:"Search",selectAll:"Select All",includeSelection:"Include Current Selection",null:"(nothing)",exceedsMaxValues:"Not all items showing",popupBody:"This column has more than 250 unique items. Only the first 250 unique items are displayed.",popupOkButton:"OK",header:"Show items where the value",and:"And",or:"Or",stringOperators:[{name:"(not set)",op:null},{name:"Equals",op:Operator.EQ},{name:"Does not equal",op:Operator.NE},{name:"Begins with",op:Operator.BW},{name:"Does not begin with",op:Operator.NBW},{name:"Ends with",op:Operator.EW},{name:"Does not end with",op:Operator.NEW},{name:"Contains",op:Operator.CT},{name:"Does not contain",op:Operator.NC}],multiFilterBlankOperators:[{name:"Nothing",op:Operator.BLANK},{name:"Not Nothing",op:Operator.NOTBLANK}],numberOperators:[{name:"(not set)",op:null},{name:"Equals",op:Operator.EQ},{name:"Does not equal",op:Operator.NE},{name:"Is Greater than",op:Operator.GT},{name:"Is Greater than or equal to",op:Operator.GE},{name:"Is Less than",op:Operator.LT},{name:"Is Less than or equal to",op:Operator.LE}],dateOperators:[{name:"(not set)",op:null},{name:"Equals",op:Operator.EQ},{name:"Is Before",op:Operator.LT},{name:"Is After",op:Operator.GT}],booleanOperators:[{name:"(not set)",op:null},{name:"Equals",op:Operator.EQ},{name:"Does not equal",op:Operator.NE}]});var ColumnFilterEditor=function(e){__extends(ColumnFilterEditor,e);function ColumnFilterEditor(t,i,l){void 0===l&&(l=!0);var r=e.call(this,t,null,!0)||this;r._disallowedControls=new Set(["TransposedGrid","WjTransposedGrid","TransposedMultiRow","WjTransposedMultiRow"]);r._btnClickedHandle=r._btnClicked.bind(r);r._cbSelectAllClickedHandle=r._cbSelectAllClicked.bind(r);r._andOrChangedHandle=r._andOrChanged.bind(r);r._isConditionFilterChanged=!1;r.filterChanged=new wijmo_1.Event;r.buttonClicked=new wijmo_1.Event;r._filter=wijmo_1.asType(i,ColumnFilter);ColumnFilterEditor.isCustomedTemplate(ColumnFilterEditor.controlTemplate)&&(r._filter.filterMode===FilterMode.MultiFilter?ColumnFilterEditor.controlTemplate=ColumnFilterEditor._multiFilterTemplate:ColumnFilterEditor.controlTemplate=ColumnFilterEditor._singleFilterTemplate);var n=r.getTemplate();r._filter.filterMode===FilterMode.MultiFilter?r.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+wijmo_1.ControlClsNames.content+" "+wijmo_1.ControlClsNames.content+" "+exports.ColumnFilterEditorClsNames.hostElement,n,{_divSort:"div-sort",_btnAsc:"btn-asc",_btnDsc:"btn-dsc",_divEdtVal:"div-edt-val",_divEdtCnd:"div-edt-cnd",_btnClear:"btn-clear"}):r.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+wijmo_1.ControlClsNames.content+" "+wijmo_1.ControlClsNames.content+" "+exports.ColumnFilterEditorClsNames.hostElement,n,{_divSort:"div-sort",_btnAsc:"btn-asc",_btnDsc:"btn-dsc",_divType:"div-type",_tVal:"t-val",_tCnd:"t-cnd",_divEdtVal:"div-edt-val",_divEdtCnd:"div-edt-cnd",_btnApply:"btn-apply",_btnCancel:"btn-cancel",_btnClear:"btn-clear"});var o=wijmo_1.culture.FlexGridFilter,a=o.ariaLabels,s=r.hostElement,d=r.filter.column,u=d.grid.collectionView;wijmo_1.setAttribute(s,"role","dialog");wijmo_1.setAttribute(s,"aria-label",r._filter._ariaLabel);wijmo_1.setAriaLabel(r._btnAsc,a.asc);wijmo_1.setAriaLabel(r._btnDsc,a.dsc);wijmo_1.setText(r._btnAsc,o.ascending);wijmo_1.setText(r._btnDsc,o.descending);wijmo_1.setText(r._btnClear,o.clear);if(r._filter.filterMode===FilterMode.SingleFilter){wijmo_1.setText(r._tVal,o.values);wijmo_1.setText(r._tCnd,o.conditions);wijmo_1.setText(r._btnApply,o.apply);wijmo_1.setText(r._btnCancel,o.cancel);r._tabPanel=new wijmo_nav_1.TabPanel(r._divType.querySelector(".wj-tabpanel"),{isAnimated:!1,autoSwitch:!0,selectedIndexChanged:function(e){if(r.filter.filterType===FilterType.Both)if(e._isInitialized){var t=r.getActiveFilterType(i);e.selectedIndex=t===FilterType.Value?0:1;r._showFilter(t)}else r._showFilter(0===e.selectedIndex?FilterType.Value:FilterType.Condition);else{e.selectedIndex=r.filter.filterType===FilterType.Value?0:1;r._showFilter(r.filter.filterType)}}});r._showFilter(r.getActiveFilterType(i))}else r._showFilter();if(!d.allowSorting||r._disallowedControls.has(d.grid.constructor.name)){wijmo_1.enable(r._btnAsc,!1);wijmo_1.enable(r._btnDsc,!1)}l&&u&&u.canSort||(r._divSort.style.display="none");r._updateSortButtonState();r._btnApply&&r._btnApply.addEventListener("click",r._btnClickedHandle);r._btnCancel&&r._btnCancel.addEventListener("click",r._btnClickedHandle);r._btnClear.addEventListener("click",r._btnClickedHandle);r._btnAsc.addEventListener("click",r._btnClickedHandle);r._btnDsc.addEventListener("click",r._btnClickedHandle);r.addEventListener(s,"keydown",(function(e){if(!e.defaultPrevented){var t=e.target.tagName.match(/^(a|button)$/i);switch(e.keyCode){case wijmo_1.Key.Space:if(t){r._btnClicked(e);e.preventDefault()}break;case wijmo_1.Key.Enter:if(t)r._btnClicked(e);else{r.updateFilter();r.onFilterChanged();r.onButtonClicked()}e.preventDefault();break;case wijmo_1.Key.Escape:r.onButtonClicked();e.preventDefault();break;case wijmo_1.Key.Tab:wijmo_1.moveFocus(r.hostElement,e.shiftKey?-1:1);e.preventDefault()}}}));r.addEventListener(window,"resize",(function(){if(!r.isTouching&&!r._wasTouching)if(r.filter.filterMode===FilterMode.SingleFilter)r.onButtonClicked();else{var e=r.filter.column,t=e.grid.columnHeaders,i=t.rows.length-1,l=e.index,n=t.getCellElement(i,l),o=n?null:t.getCellBoundingRect(i,l);n?wijmo_1._updatePopupPosition(r.hostElement,n,wijmo_1.PopupPosition.BelowLeft):wijmo_1._updatePopupPosition(r.hostElement,o,wijmo_1.PopupPosition.BelowLeft)}}));return r}Object.defineProperty(ColumnFilterEditor,"controlTemplate",{get:function(){ColumnFilterEditor._ctrlTemplate||(ColumnFilterEditor._ctrlTemplate=ColumnFilterEditor._singleFilterTemplate);return ColumnFilterEditor._ctrlTemplate},set:function(e){ColumnFilterEditor._ctrlTemplate=e},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilterEditor,"_multiFilterTemplate",{get:function(){var e='\n <div wj-part="div-multi-filter">\n <div wj-part="div-edt-cnd" tabindex="-1"></div>\n <div wj-part="div-edt-val" tabindex="-1"></div>\n '+('\n <div style="text-align:right;margin-top:10px">\n <button wj-part="btn-clear" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button>\n </div>\n ')+"\n </div>\n ";return"\n <div>\n "+('\n <div wj-part="div-sort" class="'+exports.ColumnFilterEditorClsNames.sortButtons+'">\n <button wj-part="btn-asc" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button> \n <button wj-part="btn-dsc" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button>\n </div>\n ')+"\n "+e+"\n </div>\n "},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilterEditor,"_singleFilterTemplate",{get:function(){var e='\n <div style="text-align:right;margin-top:10px">\n <button wj-part="btn-apply" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button> \n <button wj-part="btn-cancel" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button> \n <button wj-part="btn-clear" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button>\n </div>\n ',t='\n <div wj-part="div-type">\n <div class="wj-tabpanel">\n <div>\n <div wj-part="t-val" class="'+exports.ColumnFilterEditorClsNames.filterHeader+'"></div>\n <div>\n <div wj-part="div-edt-val" tabindex="-1"></div>\n </div>\n </div>\n <div>\n <div wj-part="t-cnd" class="'+exports.ColumnFilterEditorClsNames.filterHeader+'"></div>\n <div>\n <div wj-part="div-edt-cnd" tabindex="-1"></div>\n </div>\n </div>\n </div>\n '+e+"\n </div>\n ";return"\n <div>\n "+('\n <div wj-part="div-sort" class="'+exports.ColumnFilterEditorClsNames.sortButtons+'">\n <button wj-part="btn-asc" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button> \n <button wj-part="btn-dsc" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button>\n </div>\n ')+"\n "+t+"\n </div>\n "},enumerable:!0,configurable:!0});ColumnFilterEditor.isCustomedTemplate=function(e){return e===ColumnFilterEditor._multiFilterTemplate||e===ColumnFilterEditor._singleFilterTemplate};Object.defineProperty(ColumnFilterEditor.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0});ColumnFilterEditor.prototype.updateEditor=function(){this._edtVal&&this._edtVal.updateEditor();this._edtCnd&&this._edtCnd.updateEditor()};ColumnFilterEditor.prototype.updateFilter=function(){var e=this.filter.filterMode;if(e==FilterMode.SingleFilter)switch(this._getFilterType()){case FilterType.Value:this._edtVal.updateFilter();this.filter.conditionFilter.clear();break;case FilterType.Condition:this._edtCnd.updateFilter();this.filter.valueFilter.clear()}else if(e==FilterMode.MultiFilter){this._edtVal&&this._edtVal.updateFilter();this._edtCnd&&this._edtCnd.updateFilter()}};ColumnFilterEditor.prototype.onFilterChanged=function(e){this.filterChanged.raise(this,e)};ColumnFilterEditor.prototype.onButtonClicked=function(e){this.buttonClicked.raise(this,e)};ColumnFilterEditor.prototype._showFilter=function(e){var t=this;this._wasTouching=this.isTouching;if(this._filter.filterMode!==FilterMode.MultiFilter){if(e==FilterType.Value&&null==this._edtVal){this._edtVal=new ValueFilterEditor(this._divEdtVal,this.filter.valueFilter);this._edtVal.canApplyChanged.addHandler((function(e){wijmo_1.enable(t._btnApply,t._edtVal.canApply)}))}if(e==FilterType.Condition&&null==this._edtCnd){this._edtCnd=new ConditionFilterEditor(this._divEdtCnd,this.filter.conditionFilter);this._edtCnd.canApplyChanged.addHandler((function(e){wijmo_1.enable(t._btnApply,t._edtCnd.canApply)}))}if(0!=(e&this.filter.filterType))if(e==FilterType.Value){this._divEdtVal.style.display="";this._divEdtCnd.style.display="none";this._edtVal.focus();this._edtVal._updateExceedsMaxValuesDisplay();wijmo_1.enable(this._btnApply,this._edtVal.canApply)}else{this._divEdtVal.style.display="none";this._divEdtCnd.style.display="";this._edtCnd.focus();wijmo_1.enable(this._btnApply,this._edtCnd.canApply)}var i=[this._tCnd,this._tVal];switch(this.filter.filterType){case FilterType.None:case FilterType.Condition:case FilterType.Value:i.forEach((function(e){e.style.display="none"}));break;default:i.forEach((function(e){e.style.display=""}))}}else{this._edtCnd||(this._edtCnd=new ConditionFilterEditor(this._divEdtCnd,this.filter.conditionFilter));this._edtVal||(this._edtVal=new ValueFilterEditor(this._divEdtVal,this.filter.valueFilter));this._edtVal._updateExceedsMaxValuesDisplay();this.bindEventsForMultiFilter()}};ColumnFilterEditor.prototype.getActiveFilterType=function(e){return this.filter.conditionFilter.isActive||0==(e.filterType&FilterType.Value)?FilterType.Condition:FilterType.Value};ColumnFilterEditor.prototype.raiseFilterChangedHandler=function(){var e=this.filter._owner;e.onFilterChanged(new wijmo_grid_1.CellRangeEventArgs(e.grid.cells,new wijmo_grid_1.CellRange(-1,this.filter.column.index)))};ColumnFilterEditor.prototype.bindEventsForMultiFilter=function(){var e=this,t=this._edtCnd,i=this._edtVal;t._cmb1.selectedIndexChanged.addHandler((function(i,l){e.setConditionFilterChanged(t._val1);e._cmb1Timer=e.updateConditionEditorAndTirggerFilterChanged()}));t._cmb2.selectedIndexChanged.addHandler((function(i,l){e.setConditionFilterChanged(t._val2);e._cmb2Timer=e.updateConditionEditorAndTirggerFilterChanged()}));t._val1.textChanged.addHandler((function(){e._isConditionFilterChanged=!0;e._val1Timer=e.updateConditionEditorAndTirggerFilterChanged()}));t._val2.textChanged.addHandler((function(){e._isConditionFilterChanged=!0;e._val2Timer=e.updateConditionEditorAndTirggerFilterChanged()}));t.hostElement.addEventListener("change",this._andOrChangedHandle);i._lbValues.itemChecked.addHandler((function(){i.updateFilter();e.raiseFilterChangedHandler();e.onFilterChanged()}));i._cbSelectAll.addEventListener("click",this._cbSelectAllClickedHandle);this._filterAppliedHandler=function(){if(e._isConditionFilterChanged){e._edtVal.updateEditor();e._isConditionFilterChanged=!1}};this._filter._owner.filterApplied.addHandler(this._filterAppliedHandler)};ColumnFilterEditor.prototype.updateConditionEditorAndTirggerFilterChanged=function(){var e=this;return setTimeout((function(){e.raiseFilterChangedHandler();e._edtCnd.updateFilter();e._isConditionFilterChanged&&e.onFilterChanged()}),wijmo_1.Control._SEARCH_DELAY+100)};ColumnFilterEditor.prototype._cbSelectAllClicked=function(){this._edtVal.updateFilter();this.raiseFilterChangedHandler();this.onFilterChanged()};ColumnFilterEditor.prototype._andOrChanged=function(e){var t=e.target==this._edtCnd._btnAnd,i=e.target==this._edtCnd._btnOr;if(t||i){this.filter.conditionFilter.isActive&&(this._isConditionFilterChanged=!0);this._andOrTimer=this.updateConditionEditorAndTirggerFilterChanged()}};ColumnFilterEditor.prototype._updateSortButtonState=function(){var e=this.filter.column,t=e?e.currentSort:"",i=wijmo_1.ControlStateClsNames.active,l=wijmo_1.culture.FlexGridFilter.ariaLabels;if("+"===t){wijmo_1.addClass(this._btnAsc,i);this._btnAsc.setAttribute("aria-label",l.asc+" "+l.active)}else if("-"===t){wijmo_1.addClass(this._btnDsc,i);this._btnDsc.setAttribute("aria-label",l.dsc+" "+l.active)}};ColumnFilterEditor.prototype._getFilterType=function(){var e=FilterType;return"none"!=this._divEdtVal.style.display?e.Value:e.Condition};ColumnFilterEditor.prototype.setConditionFilterChanged=function(e){isValueInputDisplay(e.hostElement)?e.text&&(this._isConditionFilterChanged=!0):this._isConditionFilterChanged=!0};ColumnFilterEditor.prototype._btnClicked=function(e){var t=this,i=e.target;e.preventDefault();e.stopPropagation();if(!wijmo_1.hasClass(i,wijmo_1.ControlStateClsNames.disabled)){if(i==this._btnAsc||i==this._btnDsc){var l=this.filter.column.grid,r=this.filter.column,n=r.sortMemberPath||r.binding,o=r.grid.collectionView.sortDescriptions,a=this.hostElement["$WJ-OWNR"]&&this.hostElement["$WJ-OWNR"]["wj-cell-index"];if(a){var s=a.panel,d=a.rng;null==d&&(d=new wijmo_grid_1.CellRange(a.row,a.col,a.row,a.col));var u=new wijmo_grid_1.CellRangeEventArgs(s,d,e);if(l.onSortingColumn(u)){o.deferUpdate((function(){o.clear();o.push(new wijmo_1.SortDescription(n,e.target==t._btnAsc))}));this._updateSortButtonState();l.onSortedColumn(u)}}}if(i==this._btnApply){this.updateFilter();this.onFilterChanged()}else if(i==this._btnClear){var c=this.filter.isActive;this.filter.clear();c&&this.onFilterChanged()}else this.updateEditor();this.onButtonClicked()}};ColumnFilterEditor.prototype.dispose=function(){this._filterAppliedHandler&&this._filter._owner.filterApplied.removeHandler(this._filterAppliedHandler);if(this._cmb1Timer){clearTimeout(this._cmb1Timer);this._cmb1Timer=null}if(this._cmb2Timer){clearTimeout(this._cmb2Timer);this._cmb2Timer=null}if(this._val1Timer){clearTimeout(this._val1Timer);this._val1Timer=null}if(this._val2Timer){clearTimeout(this._val2Timer);this._val2Timer=null}if(this._andOrTimer){clearTimeout(this._andOrTimer);this._andOrTimer=null}this._btnApply&&this._btnApply.removeEventListener("click",this._btnClickedHandle);this._btnCancel&&this._btnCancel.removeEventListener("click",this._btnClickedHandle);this._btnClear&&this._btnClear.removeEventListener("click",this._btnClickedHandle);this._btnAsc&&this._btnAsc.removeEventListener("click",this._btnClickedHandle);this._btnDsc&&this._btnDsc.removeEventListener("click",this._btnClickedHandle);this._edtCnd&&this._andOrChangedHandle&&this._edtCnd.hostElement.removeEventListener("change",this._andOrChangedHandle);this._edtVal&&this._edtVal._cbSelectAll&&this._edtVal._cbSelectAll.removeEventListener("click",this._cbSelectAllClickedHandle);if(this._edtVal){this._edtVal.dispose();this._edtVal=null}if(this._edtCnd){this._edtCnd.dispose();this._edtCnd=null}if(this._tabPanel){this._tabPanel.dispose();this._tabPanel=null}e.prototype.dispose.call(this)};ColumnFilterEditor._ctrlTemplate="";return ColumnFilterEditor}(wijmo_1.Control);exports.ColumnFilterEditor=ColumnFilterEditor;function isValueInputDisplay(e){return"none"!==e.style.display}wijmo_1._registerModule("wijmo.grid.filter",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 i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var FilterType,FilterMode,wijmo_grid_1=require("wijmo/wijmo.grid"),wijmo_1=require("wijmo/wijmo"),wijmo_input_1=require("wijmo/wijmo.input"),wijmo_nav_1=require("wijmo/wijmo.nav"),input=__importStar(require("wijmo/wijmo.input")),selfModule=__importStar(require("wijmo/wijmo.grid.filter"));exports.ColumnFilterEditorClsNames={filterType:"wj-filtertype",hostElement:"wj-columnfiltereditor",sortButtons:"wj-sort-buttons",filterHeader:"wj-filter-header"};exports.ConditionFilterEditorClsNames={hostElement:"wj-conditionfilter-editor"};exports.FlexGridFilterClsNames={elemFilter:"wj-elem-filter",filter:"wj-filter",filterOff:"wj-filter-off",filterOn:"wj-filter-on",hostElement:"wj-columnfiltereditor",filterTopBorder:"wj-filter-tabPanel-top-border"};exports.ValueFilterEditorClsNames={hostElement:"wj-valuefilter-editor",customModalText:"wj-custom-modal-text",modalFooter:"wj-valuefilter-modal-footer",filterOptions:"wj-filter-options"};!function(e){e[e.None=0]="None";e[e.Condition=1]="Condition";e[e.Value=2]="Value";e[e.Both=3]="Both"}(FilterType=exports.FilterType||(exports.FilterType={}));!function(e){e[e.SingleFilter=0]="SingleFilter";e[e.MultiFilter=1]="MultiFilter"}(FilterMode=exports.FilterMode||(exports.FilterMode={}));var FlexGridFilter=function(){function FlexGridFilter(e,t){this._showIcons=!0;this._showSort=!0;this._defFilterType=FilterType.Both;this._defFilterMode=FilterMode.SingleFilter;this._xValueSearch=!0;this._includeUpdatedRowsInFilter=!1;this._showIncludeSelection=!1;this.filterApplied=new wijmo_1.Event;this.editingFilter=new wijmo_1.Event;this.filterChanging=new wijmo_1.Event;this.filterChanged=new wijmo_1.Event;this.exclusiveValueSearchChanged=new wijmo_1.Event;this._showIncludeSelectionChanged=new wijmo_1.Event;this._filters=[];this._g=wijmo_1.asType(e,wijmo_grid_1.FlexGrid,!1);this._g.formatItem.addHandler(this._formatItem.bind(this));this._g.itemsSourceChanged.addHandler(this.clear.bind(this));this._g.columns.collectionChanged.addHandler(this._adjustBindingColumns,this);var i=this._g.hostElement;e.addEventListener(i,"mousedown",this._mousedown.bind(this),!0);e.addEventListener(i,"click",this._click.bind(this),!0);e.addEventListener(i,"keydown",this._keydown.bind(this),!0);this._g.invalidate();wijmo_1.copy(this,t);this._init()}FlexGridFilter.prototype._init=function(){var e=this,t=this.grid,_excludeRowFromFilter=function(t){var i=e.grid,l=e.excludedRowsSet;if(null!=i&&i.rows.length>t)if(i.itemsSource)if(i.rows[t]instanceof wijmo_grid_1._NewRowTemplate){var r=i.editableCollectionView.currentAddItem||i.rows[t].dataItem;r&&l.add(r)}else i.rows[t].dataItem&&l.add(i.rows[t].dataItem);else i.rows[t]&&l.add(i.rows[t])};t.rowChanged&&t.rowChanged.addHandler((function(e,t){t.added&&_excludeRowFromFilter(t.index)}));t.rowEditEnding.addHandler((function(e,t){_excludeRowFromFilter(t.row)}));t.cellEditEnded.addHandler((function(e,t){_excludeRowFromFilter(t.row)}))};Object.defineProperty(FlexGridFilter.prototype,"excludedRowsSet",{get:function(){var e=this.grid;e.selectedSheet&&(e=e.selectedSheet);e._newAddedRowsSet||(e._newAddedRowsSet=new WeakSet);return e._newAddedRowsSet},set:function(e){var t=this.grid;t.selectedSheet&&(t=t.selectedSheet);t._newAddedRowsSet=e},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"filterColumns",{get:function(){return this._filterColumns},set:function(e){this._filterColumns=wijmo_1.asArray(e);this.clear()},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"showFilterIcons",{get:function(){return this._showIcons},set:function(e){if(e!=this.showFilterIcons){this._showIcons=wijmo_1.asBoolean(e);this._g&&this._g.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"showSortButtons",{get:function(){return this._showSort},set:function(e){this._showSort=wijmo_1.asBoolean(e)},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"reApplyFilterOnUpdate",{get:function(){return this._includeUpdatedRowsInFilter},set:function(e){e!==this._includeUpdatedRowsInFilter&&(this._includeUpdatedRowsInFilter=wijmo_1.asBoolean(e))},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"showIncludeSelection",{get:function(){return this._showIncludeSelection},set:function(e){if(e!=this._showIncludeSelection){this._showIncludeSelection=wijmo_1.asBoolean(e,!1);this._onShowIncludeSelectionChanged()}},enumerable:!0,configurable:!0});FlexGridFilter.prototype.getColumnFilter=function(e,t){void 0===t&&(t=!0);if(e=this._asColumn(e)){for(var i=0;i<this._filters.length;i++)if(wijmo_1._ENV_TOOLS.isSameInstance(this._filters[i].column,e))return this._filters[i];if(t&&e.binding){var l=new ColumnFilter(this,e);this._filters.push(l);return l}}return null};Object.defineProperty(FlexGridFilter.prototype,"defaultFilterType",{get:function(){return this._defFilterType},set:function(e){if((e=wijmo_1.asEnum(e,FilterType,!1))!=this.defaultFilterType){this._defFilterType=e;this._g.invalidate();this.clear()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"defaultFilterMode",{get:function(){return this._defFilterMode},set:function(e){if((e=wijmo_1.asEnum(e,FilterMode,!1))!=this._defFilterMode){this._defFilterMode=e;this._g.invalidate();this.clear()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"exclusiveValueSearch",{get:function(){return this._xValueSearch},set:function(e){if((e=wijmo_1.asBoolean(e))!==this._xValueSearch){this._xValueSearch=e;this.onExclusiveValueSearchChanged()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"filterDefinition",{get:function(){var e=this,t={defaultFilterType:this.defaultFilterType,filters:[]};this._filters.forEach((function(i){var l=i.conditionFilter,r=i.valueFilter,n=r.uniqueValues&&r.uniqueValues.length;if(i&&i.column&&i.column.binding&&(i.isActive||n||i.filterType!=e.defaultFilterType)){var o={binding:i.column.binding};if(l.isActive){var a=l.condition1,s=l.condition2;o={binding:i.column.binding,type:"condition",condition1:{operator:a.operator,value:a.value},and:l.and,condition2:{operator:s.operator,value:s.value}}}else(r.isActive||n)&&(o={binding:i.column.binding,type:"value",uniqueValues:r.uniqueValues,sortValues:r.sortValues,maxValues:r.maxValues,exclusiveValueSearch:r.exclusiveValueSearch,showValues:r.showValues});i.filterType!=e.defaultFilterType&&(o.filterType=i.filterType);t.filters.push(o)}}));return JSON.stringify(t)},set:function(e){e=wijmo_1.asString(e);this.clear();if(e){var t=JSON.parse(e);this.defaultFilterType=t.defaultFilterType;for(var _loop_1=function(e){var l=t.filters[e],r=i._asColumn(l.binding);r||(r=new wijmo_grid_1.Column({binding:l.binding}));var n=i.getColumnFilter(r,!0);if(n){null!=l.filterType&&(n.filterType=wijmo_1.asEnum(l.filterType,FilterType));switch(l.type){case"condition":var o=n.conditionFilter;o.condition1.value=r.dataType==wijmo_1.DataType.Date?wijmo_1.changeType(l.condition1.value,r.dataType,null):l.condition1.value;o.condition1.operator=l.condition1.operator;o.and=l.and;o.condition2.value=r.dataType==wijmo_1.DataType.Date?wijmo_1.changeType(l.condition2.value,r.dataType,null):l.condition2.value;o.condition2.operator=l.condition2.operator;break;case"value":var a=n.valueFilter;a.uniqueValues=l.uniqueValues;["sortValues","maxValues","exclusiveValueSearch"].forEach((function(e){null!=l[e]&&(a[e]=l[e])}));a.showValues=l.showValues}}},i=this,l=0;l<t.filters.length;l++)_loop_1(l)}this.apply()},enumerable:!0,configurable:!0});Object.defineProperty(FlexGridFilter.prototype,"activeEditor",{get:function(){return wijmo_1.Control.getControl(this._divEdt)},enumerable:!0,configurable:!0});FlexGridFilter.prototype.editColumnFilter=function(e,t,i){var l=this,r=this._g;this.closeEditor();e=this._asColumn(e);var n=new wijmo_grid_1.CellRangeEventArgs(r.cells,new wijmo_grid_1.CellRange(-1,e.index));if(this.onEditingFilter(n)){var o=wijmo_1.createElement('<div class="'+wijmo_input_1.DropDownClsNames.dropDownPanel+'"></div>'),a=this.getColumnFilter(e),s=new ColumnFilterEditor(o,a,this.showSortButtons);this._divEdt=o;this._edtCol=e;r.rightToLeft&&(o.dir="rtl");if(this.onFilterChanging(n)){n.cancel=!0;s.filterChanged.addHandler((function(){n.cancel=!1;setTimeout((function(){n.cancel||l.apply()}),s._edtVal&&s._edtVal._isFiltering?wijmo_1.Control._SEARCH_DELAY+200:0)}));s.buttonClicked.addHandler((function(){l.closeEditor();r.focus();l.onFilterChanged(n)}));s.lostFocus.addHandler((function(){setTimeout((function(){var e=wijmo_1.Control.getControl(l._divEdt);e&&!e.containsFocus()&&l.closeEditor()}),10)}));var d=t?t.col:e.index,u=r.columns[d];t||u&&u.binding==e.binding||(d=r.selection.leftCol);r._edtHdl._commitRowEdits();r.scrollIntoView(-1,d,!0);var c=r.columnHeaders,p=t&&t.panel&&c&&t.panel._uid==c._uid?t.row:c.rows.length-1,_=d,h=i||c.getCellElement(p,_),m=h?null:c.getCellBoundingRect(p,_);h?wijmo_1.showPopup(o,h,!1,!1,!1):wijmo_1.showPopup(o,m);var f=e.header,F=wijmo_1.format(wijmo_1.culture.FlexGridFilter.accessibilityHelperMessage.filter.filterColumn,{name:f});r.announceShortcut(F);this._adjustTabPanelStyle(a);this._setAriaExpanded(h,!0);this._setAriaExpanded(r.cells.getCellElement(-1,_),!0);for(var b=s.hostElement.querySelectorAll("input"),v=0;v<b.length;v++){var g=b[v];if(g.offsetHeight>0&&g.tabIndex>-1&&!g.disabled){g.focus();break}}s.containsFocus()||s.focus()}else this._divEdt=this._edtCol=null}};FlexGridFilter.prototype._setAriaExpanded=function(e,t){if(e){var i=e.querySelector("."+FlexGridFilter._WJC_FILTER);wijmo_1.setAttribute(i,"aria-expanded",t)}};FlexGridFilter.prototype.closeEditor=function(){var e=this._g,t=wijmo_1.Control.getControl(this._divEdt),i=this._edtCol;if(t){wijmo_1.hidePopup(t.hostElement,(function(){t.dispose()}));var l=wijmo_1.culture.FlexGridFilter.accessibilityHelperMessage.filter.closeFilterDialog;e.announceShortcut(l)}if(i){var r=e.columnHeaders,n=r.rows.length?r.getCellElement(r.rows.length-1,i.index):null;this._setAriaExpanded(n,!1);n=e.cells.getCellElement(-1,i.index);this._setAriaExpanded(n,!1)}this._divEdt=null;this._edtCol=null};FlexGridFilter.prototype.apply=function(){var e=this._g.collectionView;if(e){var t=this._g.editableCollectionView;if(t){t.commitEdit();t.commitNew()}this.excludedRowsSet=null;e.filter=this._filter.bind(this)}var i=e?e.updateFilterDefinition:null;wijmo_1.isFunction(i)&&i.call(e,this);this.onFilterApplied()};FlexGridFilter.prototype.clear=function(){if(this._filters.length){this._filters=[];this.apply()}};FlexGridFilter.prototype.onFilterApplied=function(e){this.filterApplied.raise(this,e)};FlexGridFilter.prototype.onEditingFilter=function(e){this.editingFilter.raise(this,e);return!e.cancel};FlexGridFilter.prototype.onFilterChanging=function(e){this.filterChanging.raise(this,e);return!e.cancel};FlexGridFilter.prototype.onFilterChanged=function(e){this.filterChanged.raise(this,e)};FlexGridFilter.prototype.onExclusiveValueSearchChanged=function(e){this.exclusiveValueSearchChanged.raise(this,e)};FlexGridFilter.prototype._onShowIncludeSelectionChanged=function(e){this._showIncludeSelectionChanged.raise(this,e)};FlexGridFilter.prototype._asColumn=function(e){return wijmo_1.isString(e)?this._g.getColumn(e,!0):wijmo_1.isNumber(e)?this._g.columns[e]:wijmo_1.asType(e,wijmo_grid_1.Column,!1)};FlexGridFilter.prototype._filter=function(e){var t=this.excludedRowsSet;if(!this.reApplyFilterOnUpdate&&t.has(e))return!0;for(var i=this._filters,l=0;l<i.length;l++){var r=i[l];if(r.column!=FlexGridFilter._skipColumn&&!r.apply(e))return!1}return!0};FlexGridFilter.prototype._adjustTabPanelStyle=function(e){if(e){var t=e.filterType!==FilterType.Both,i=document.querySelector('[wj-part="tabpanes"]');t&&i&&wijmo_1.toggleClass(i,exports.FlexGridFilterClsNames.filterTopBorder)}};FlexGridFilter.prototype._formatItem=function(e,t){if(t.panel==e.columnHeaders){var i=this._g,l=i.getMergedRange(t.panel,t.row,t.col)||new wijmo_grid_1.CellRange(t.row,t.col),r=i.columns[l.col],n=i._getBindingColumn(t.panel,t.row,r),o=t.cell;if(l.row2==t.panel.rows.length-1||r!=n){var a=this.getColumnFilter(n,this.defaultFilterType!=FilterType.None),s=this._filterColumns;s&&s.length&&s.indexOf(n.binding)<0&&s.indexOf(n.name)<0&&(a=null);if(a){wijmo_1.toggleClass(o,exports.FlexGridFilterClsNames.filterOn,a.isActive);wijmo_1.toggleClass(o,exports.FlexGridFilterClsNames.filterOff,!a.isActive)}else{wijmo_1.removeClass(o,exports.FlexGridFilterClsNames.filterOn);wijmo_1.removeClass(o,exports.FlexGridFilterClsNames.filterOff)}if(a&&a.filterType!=FilterType.None){this._showIcons&&this._addFilterButton(n,a,o);0==t.row&&(o=i.cells.getCellElement(-1,t.col))&&this._addFilterButton(r,a,o)}}}};FlexGridFilter.prototype._addFilterButton=function(e,t,i){var l=FlexGridFilter._WJC_FILTER,r=wijmo_1.createElement('<button class="'+wijmo_1.InputFormElementsClsNames.btn+" "+wijmo_1.GlyphClsNames.btnGlyph+" "+wijmo_1.UtilitesClsNames.right+" "+l+'" type="button" tabindex="-1"><span class='+wijmo_1.GlyphClsNames.filter+"></span></button>");wijmo_1.setAriaLabel(r,wijmo_1.culture.FlexGridFilter.ariaLabels.edit+" "+e.header);wijmo_1.setAttribute(r,"aria-haspopup","dialog");wijmo_1.setAttribute(r,"aria-expanded",!1);wijmo_1.setAttribute(r,"aria-describedby",e.describedById);wijmo_1.setAttribute(r,"aria-pressed",t.isActive);if(!i.querySelector("."+l)){1==i.children.length&&(i=i.querySelector("div")||i);i.insertBefore(r,i.firstChild)}};FlexGridFilter.prototype._mousedown=function(e){this._edtColPrev=this._edtCol};FlexGridFilter.prototype._click=function(e){if(this._toggleEditor(e)){e.stopPropagation();e.preventDefault()}};FlexGridFilter.prototype._toggleEditor=function(e){var t=this;if(!e.defaultPrevented&&0==e.button)if(wijmo_1.closestClass(e.target,FlexGridFilter._WJC_FILTER)){var i=this._g,l=i.hitTest(e.target);l.panel||(l=i.hitTest(e));if(l.panel&&i.columnHeaders&&i.cells&&(l.panel._uid==i.columnHeaders._uid||l.panel._uid==i.cells._uid&&-1==l.row)){var r=i.getMergedRange(l.panel,l.row,l.col)||new wijmo_grid_1.CellRange(l.row,l.col),n=i.columns[r.col],o=i._getBindingColumn(l.panel,l.row,n);if(this._divEdt&&this._edtCol==o){this.closeEditor();i.focus()}else o!=this._edtColPrev&&setTimeout((function(){t.editColumnFilter(o,l)}),this._divEdt?100:0);return!0}}else this.closeEditor();return!1};FlexGridFilter.prototype._keydown=function(e){var t=e.ctrlKey||e.metaKey,i=!e.defaultPrevented&&!t&&e.altKey,l=i&&e.keyCode===wijmo_1.Key.Up,r=i&&e.keyCode===wijmo_1.Key.Down,n=!e.defaultPrevented&&t&&e.shiftKey&&e.keyCode===wijmo_1.Key.F;if(l||r||n){var o=this.grid,a=o.selection,s=a.col>-1?o.columns[a.col]:null,d=s?o._getBindingColumn(o.cells,a.row,s):null,u=d&&d.dataMap&&d.dataMapEditor==wijmo_grid_1.DataMapEditor.DropDownList;if(this.filterColumns&&this.filterColumns.length>0&&!this.filterColumns.includes(d._binding._path)){e.preventDefault();return!1}if(o.activePanelType!=wijmo_grid_1.CellType.Cell&&o.activePanelType!=wijmo_grid_1.CellType.ColumnHeader){e.preventDefault();return!1}d&&d.editor instanceof wijmo_input_1.DropDown&&(u=!0);if(d&&(!u||n)){var c=this.getColumnFilter(d,!1);if(c&&c.filterType!=FilterType.None){this.editColumnFilter(d);e.preventDefault();e.stopPropagation()}}}};FlexGridFilter.prototype._removeFilter=function(e){this._filters.splice(e,1)};FlexGridFilter.prototype._adjustBindingColumns=function(e,t){if(t.action==wijmo_1.NotifyCollectionChangedAction.Reset){var i=this._filters;if(i&&i.length>0)for(var l=i.length-1;l>=0;l--){var r=i[l],n=r.column;if(n.binding){var o=this._asColumn(n.binding);o?o!==n&&r._setColumn(o):this._removeFilter(l)}}}};FlexGridFilter._WJC_FILTER=exports.FlexGridFilterClsNames.elemFilter;return FlexGridFilter}();exports.FlexGridFilter=FlexGridFilter;exports.empty={};var ValueFilterSearchKind,ColumnFilter=function(){function ColumnFilter(e,t){var i=this;this._ariaLabel=wijmo_1.culture.FlexGridFilter.ariaLabels.dialog;this._owner=e;this._col=t;this._valueFilter=new ValueFilter(t);this._valueFilter.setColumnFilter(this);this._valueFilter.exclusiveValueSearch=e.exclusiveValueSearch;this._valueFilter.showIncludeSelection=e.showIncludeSelection;this._conditionFilter=new ConditionFilter(t);this._conditionFilter.setColumnFilter(this);e.exclusiveValueSearchChanged.addHandler((function(e){i._valueFilter.exclusiveValueSearch=e.exclusiveValueSearch}));e._showIncludeSelectionChanged.addHandler((function(e){i._valueFilter.showIncludeSelection=e.showIncludeSelection}))}Object.defineProperty(ColumnFilter.prototype,"filterType",{get:function(){return null!=this._filterType?this._filterType:this._owner.defaultFilterType},set:function(e){if((e=wijmo_1.asEnum(e,FilterType,!0))!=this._filterType){var t=this.isActive;this.clear();this._filterType=e;t?this._owner.apply():this._col.grid&&this._col.grid.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"filterMode",{get:function(){return null!=this._filterMode?this._filterMode:this._owner.defaultFilterMode},set:function(e){if((e=wijmo_1.asEnum(e,FilterMode,!0))!=this._filterMode){var t=this.isActive;this.clear();this._filterMode=e;t?this._owner.apply():this._col.grid&&this._col.grid.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"dataMap",{get:function(){return this.conditionFilter.dataMap||this.valueFilter.dataMap},set:function(e){this.conditionFilter.dataMap=e;this.valueFilter.dataMap=e},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"valueFilter",{get:function(){return this._valueFilter},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"conditionFilter",{get:function(){return this._conditionFilter},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0});ColumnFilter.prototype._setColumn=function(e){this._col=e;this._valueFilter&&this._valueFilter._setColumn(e);this._conditionFilter&&this._conditionFilter._setColumn(e)};Object.defineProperty(ColumnFilter.prototype,"ariaLabel",{get:function(){return this._ariaLabel},set:function(e){e!=this._ariaLabel&&(this._ariaLabel=e)},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilter.prototype,"isActive",{get:function(){return this._conditionFilter.isActive||this._valueFilter.isActive},enumerable:!0,configurable:!0});ColumnFilter.prototype.apply=function(e){var t=this._conditionFilter.apply(e);this._valueFilter._cancelFilter||(t=t&&this._valueFilter.apply(e));return t};ColumnFilter.prototype.clear=function(){this._valueFilter.clear();this._conditionFilter.clear()};ColumnFilter.prototype.implementsInterface=function(e){return"IColumnFilter"==e};return ColumnFilter}();exports.ColumnFilter=ColumnFilter;!function(e){e[e.Text=0]="Text";e[e.Regex=1]="Regex";e[e.Excel=2]="Excel"}(ValueFilterSearchKind=exports.ValueFilterSearchKind||(exports.ValueFilterSearchKind={}));var ValueFilter=function(){function ValueFilter(e){this._values=null;this._filterText=null;this._xValueSearch=!0;this._maxValues=250;this._uniqueValues=null;this._sortValues=!0;this._searchType=ValueFilterSearchKind.Excel;this._showIncludeSelection=!1;this._allValues=null;this._col=e}Object.defineProperty(ValueFilter.prototype,"searchType",{get:function(){return this._searchType},set:function(e){this._searchType=wijmo_1.asEnum(e,ValueFilterSearchKind)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"showValues",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"filterText",{get:function(){return this._filterText},set:function(e){this._filterText=wijmo_1.asString(e)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"exclusiveValueSearch",{get:function(){return this._xValueSearch},set:function(e){if((e=wijmo_1.asBoolean(e))!==this._xValueSearch){this._xValueSearch=wijmo_1.asBoolean(e);e&&(this._filterText="")}},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"maxValues",{get:function(){return this._maxValues},set:function(e){this._maxValues=wijmo_1.asNumber(e,!1,!0)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"uniqueValues",{get:function(){return this._uniqueValues},set:function(e){this._uniqueValues=wijmo_1.asArray(e)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"sortValues",{get:function(){return this._sortValues},set:function(e){this._sortValues=wijmo_1.asBoolean(e)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"dataMap",{get:function(){return this._map},set:function(e){this._map=wijmo_1.asType(e,wijmo_grid_1.DataMap,!0)},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"showIncludeSelection",{get:function(){return this._showIncludeSelection},set:function(e){e!=this._showIncludeSelection&&(this._showIncludeSelection=wijmo_1.asBoolean(e,!1))},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilter.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0});ValueFilter.prototype._setColumn=function(e){this._col=e};Object.defineProperty(ValueFilter.prototype,"isActive",{get:function(){var e=null!=this._values;return this._columnFilter&&this._columnFilter.filterMode===FilterMode.MultiFilter?e:e&&Object.keys(this._values).length>0},enumerable:!0,configurable:!0});ValueFilter.prototype.apply=function(e){var t=this.column;if(!t||!t._binding||!this.isActive)return!0;e=t._binding.getValue(e);e=this.dataMap?this.dataMap.getDisplayValue(e)||"":t.dataMap?t.dataMap.getDisplayValue(e)||"":wijmo_1.Globalize.format(e,t.format);return null!=this._values[e]};ValueFilter.prototype.clear=function(){this.showValues=null;this.filterText=null};ValueFilter.prototype.getUniqueValues=function(e){void 0===e&&(e=!0);var t=[],i=this.column,l=wijmo_1.Globalize.format;if(this.uniqueValues){this.uniqueValues.forEach((function(e){t.push({value:e,text:l(e,i.format)})}));return t}var r={},n=i.collectionView,o=n?n.sourceCollection:[];if(e&&n&&n.sourceCollection&&n.filter)try{this._columnFilter&&this._columnFilter.filterMode===FilterMode.MultiFilter&&this._columnFilter.conditionFilter.isActive?this._cancelFilter=!0:FlexGridFilter._skipColumn=this._col;for(var a=[],s=0;s<o.length;s++)n.filter(o[s])&&a.push(o[s]);o=a}finally{this._cancelFilter=!1;FlexGridFilter._skipColumn=null}for(s=0;s<o.length;s++){var d=i._binding.getValue(o[s]),u=this.dataMap?this.dataMap.getDisplayValue(d)||"":i.dataMap?i.dataMap.getDisplayValue(d)||"":l(d,i.format);if(!r[u]){r[u]=!0;t.push({value:d,text:u})}}return t};ValueFilter.prototype.implementsInterface=function(e){return"IColumnFilter"==e};ValueFilter.prototype.setColumnFilter=function(e){this._columnFilter=e};ValueFilter.prototype.updateShowStatus=function(e){if(this.showValues&&0!=Object.keys(this.showValues).length){for(var t in this.showValues)for(var i=0;i<e.length;i++)if(e[i].text==t){e[i].show=!0;break}}else e.forEach((function(e){e.show=!0}));return e};ValueFilter.prototype.setInitialAllValues=function(){var e=this.getUniqueValues(!1);this._allValues=this.updateShowStatus(e)};return ValueFilter}();exports.ValueFilter=ValueFilter;var ValueFilterEditor=function(e){__extends(ValueFilterEditor,e);function ValueFilterEditor(t,i){var l=e.call(this,t)||this;l._canApply=!1;l._isFiltering=!1;l._filterTextChangedBnd=l._filterTextChanged.bind(l);l._cbSelectAllClickedBnd=l._cbSelectAllClicked.bind(l);l.canApplyChanged=new wijmo_1.Event;l._filter=wijmo_1.asType(i,ValueFilter,!1);var r=l.getTemplate();l.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+exports.ValueFilterEditorClsNames.hostElement,r,{_divFilter:"div-filter",_cbSelectAll:"cb-select-all",_spSelectAll:"sp-select-all",_cbIncludeSel:"cb-include-sel",_spIncludeSel:"sp-include-sel",_lblIncludeSel:"lbl-include-sel",_divOptions:"div-options",_divValues:"div-values",_divExceeds:"div-exceeds",_aExceeds:"a-exceeds"});l._cbSelectAll.tabIndex=0;l._cbIncludeSel.tabIndex=0;l._divExceeds.tabIndex=0;var n=wijmo_1.culture.FlexGridFilter;wijmo_1.setText(l._spSelectAll,n.selectAll);wijmo_1.setText(l._spIncludeSel,n.includeSelection);wijmo_1.setText(l._aExceeds,n.exceedsMaxValues);wijmo_1.setAttribute(l._divValues,"aria-live","polite");l._view=new wijmo_1.CollectionView(null,{sortNulls:wijmo_1.SortNulls.First,filter:l._filterValues.bind(l)});var o=l._view;if(i.sortValues){var a=i.column.dataMap||i.dataMap?"text":"value",s=i.column.dataType!=wijmo_1.DataType.Boolean;o.sortDescriptions.push(new wijmo_1.SortDescription(a,s))}o.collectionChanged.addHandler(l._updateSelectAllCheck,l);l._filterText="";l._rxFilter=null;l._cmbFilter=new input.ComboBox(l._divFilter,{trimText:!1,isRequired:!1,placeholder:n.search,keyActionPrintCharacters:0,keyActionTab:0});l._cmbFilter.isEditable=!0;var d=l._divFilter.querySelector(".wj-input-group");if(d){var u=document.createElement("span");u.classList.add("wj-glyph-search");d.insertBefore(u,d.firstChild)}l._lbValues=new input.ListBox(l._divValues,{displayMemberPath:"text",checkedMemberPath:"show",itemsSource:l._view,itemFormatter:function(e,t){return t||n.null},checkedItemsChanged:function(e){return l._updateSelectAllCheck()}});l._lbValues._isNeedUpdateBnd=l._isSingleFilterMode();wijmo_1.setAttribute(l._divValues,"aria-label",wijmo_1.culture.FlexGridFilter.ariaLabels.listBox);wijmo_1.setAriaLabel(l._cmbFilter.inputElement,n.ariaLabels.search);wijmo_1.setAttribute(l._lbValues.hostElement,"aria-multiselectable",!0);l._cmbFilter.inputElement.addEventListener("input",l._filterTextChangedBnd);l._cbSelectAll.addEventListener("click",l._cbSelectAllClickedBnd);if(!l._popup){l._initPopup();l._aExceeds&&l.addEventListener(l._aExceeds,"click",(function(e){e.preventDefault();l._popup.show(!0)}))}l.updateEditor();wijmo_1.setAttribute(l._lbValues.hostElement,"tabindex","-1");l._filter.showValues?l._initialItems=o.sourceCollection.filter((function(e){return l._filter.showValues[e.text||e.value]||!1})):l._initialItems=l._lbValues.checkedItems;l._isSingleFilterMode()||l._filter.setInitialAllValues();return l}Object.defineProperty(ValueFilterEditor,"controlTemplate",{get:function(){ValueFilterEditor._ctrlTemplate||(ValueFilterEditor._ctrlTemplate='<div><div wj-part="div-filter"></div><div wj-part="div-options" class="'+input.ListBoxClsNames.listBoxItem+" "+exports.ValueFilterEditorClsNames.filterOptions+'"><label wj-part="select-all-container"><input wj-part="cb-select-all" type="checkbox" class="wj-custom-checkbox"> <span wj-part="sp-select-all"></span></label><br /><label wj-part="lbl-include-sel"><input wj-part="cb-include-sel" type="checkbox" class="wj-custom-checkbox"> <span wj-part="sp-include-sel"></span></label></div><div wj-part="div-values"></div><div wj-part="div-exceeds"><a wj-part="a-exceeds"></a></div></div>');return ValueFilterEditor._ctrlTemplate},set:function(e){ValueFilterEditor._ctrlTemplate=e},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilterEditor.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilterEditor.prototype,"canApply",{get:function(){return this._canApply},set:function(e){if(e!=this._canApply){this._canApply=e;this.onCanApplyChanged()}},enumerable:!0,configurable:!0});Object.defineProperty(ValueFilterEditor.prototype,"_shouldIncludeSelection",{get:function(){return this._filter.showIncludeSelection&&this._cbIncludeSel.checked},enumerable:!0,configurable:!0});ValueFilterEditor.prototype.updateEditor=function(){var e=this,t=this._filter.column,i=this._filter.getUniqueValues(!0);this._lbValues.isContentHtml=t.isContentHtml;var l=this._filter.showValues;if(!l||0==Object.keys(l).length&&this._isSingleFilterMode())i.forEach((function(e){e.show=!0}));else for(var r in l)for(var n=0;n<i.length;n++)if(i[n].text==r){i[n].show=!0;break}var o=this._filter.filterText||"",a=this._getCaseSensitive();this._cmbFilter.text=o;this._filterText=a?o:o.toLowerCase();this._rxFilter=this._getSearchExp(o,a);this._filter.showIncludeSelection&&!this.hostElement.contains(this._lblIncludeSel)?this._divOptions.appendChild(this._lblIncludeSel):this._filter.showIncludeSelection||this._lblIncludeSel.remove();var s=this._view;s.pageSize=this._filter.maxValues;s.sourceCollection=i;this._adjustWidthsTimer=setTimeout((function(){e._adjustWidths()}),0);this._updateExceedsMaxValuesDisplay()};ValueFilterEditor.prototype.clearEditor=function(e){void 0===e&&(e=!0);this._cmbFilter.text="";this._filterText="";this._rxFilter=null;var t=this._view;t.pageSize=0;t.items.forEach((function(t){t.show=e}));t.moveCurrentTo(-1);t.refresh();t.pageSize=this._filter.maxValues};Object.defineProperty(ValueFilterEditor.prototype,"isEditorClear",{get:function(){return!this._filterText&&!this._cbSelectAll.indeterminate},enumerable:!0,configurable:!0});ValueFilterEditor.prototype._updateFilter=function(){var e,t=this._filter,i=null;e=this._isSingleFilterMode()?this._getItems():this._filter._allValues=wijmo_1.replaceItems(this._filter._allValues,this._view.sourceCollection);if(!this._isSingleFilterMode()||this._filterText||this._cbSelectAll.indeterminate){i=this._shouldIncludeSelection&&this._filter.showValues||{};for(var l=0;l<e.length;l++){var r=e[l];r.show&&(i[r.text]=!0)}}t.showValues=i;t.filterText=this._filterText};ValueFilterEditor.prototype.updateFilter=function(){var e=this;this._isFiltering?this._updateFilterTimer=setTimeout((function(){e._updateFilter()}),wijmo_1.Control._SEARCH_DELAY+100):this._updateFilter()};ValueFilterEditor.prototype.onCanApplyChanged=function(e){this.canApplyChanged.raise(this,e)};ValueFilterEditor.prototype._getCaseSensitive=function(){var e=this._filter.column,t=e?e.grid:null;return t&&t.caseSensitiveSearch};ValueFilterEditor.prototype._getItems=function(){return this._filter.exclusiveValueSearch?this._view.items:this._view.sourceCollection};ValueFilterEditor.prototype._filterTextChanged=function(){var e=this;""===this._filterText&&this._cbSelectAll.checked||this._filter.exclusiveValueSearch?this._lbValues._addMode=!1:this._lbValues._addMode=!0;this._toFilter&&clearTimeout(this._toFilter);this._isFiltering=!0;this._toFilter=setTimeout((function(){var t=e._cmbFilter.text,i=e._getCaseSensitive();i||(t=t.toLowerCase());if(t!=e._filterText){e._filterText=t;e._rxFilter=e._getSearchExp(t,i);e._view.refresh();e._updateExceedsMaxValuesDisplay();if(e._isSingleFilterMode()){if(!t){var l=e._initialItems;if(l.length&&e._view.sourceCollection.indexOf(l[0])>-1){e._lbValues.checkedItems=e._initialItems;e._updateSelectAllCheck();e._isFiltering=!1;return}}}else e._filter.filterText=t;if(e._filter.exclusiveValueSearch){e._cbSelectAll.checked=!1;e._cbSelectAll.click()}else e._updateSelectAllCheck()}e._isFiltering=!1}),wijmo_1.Control._SEARCH_DELAY)};ValueFilterEditor.prototype._getSearchExp=function(e,t){if(!e)return null;switch(this._filter.searchType){case ValueFilterSearchKind.Text:return this._getTextSearchExp(e,t);case ValueFilterSearchKind.Regex:return this._getRegexSearchExp(e,t);case ValueFilterSearchKind.Excel:return this._getExcelSearchExp(e,t)}};ValueFilterEditor.prototype._getTextSearchExp=function(e,t){return new RegExp(wijmo_1.escapeRegExp(e),t?"":"i")};ValueFilterEditor.prototype._getRegexSearchExp=function(e,t){try{return new RegExp(e,t?"s":"is")}catch(e){return new RegExp("(?!)",t?"s":"is")}};ValueFilterEditor.prototype._getExcelSearchExp=function(e,t){var i=e;i=(i=(i=(i=(i=(i=(i=(i=i.replace(/([.+^$[\]\\(){}|-])/g,"\\$1")).replace(/~~/g,"__`$0`__")).replace(/~\?/g,"__`$1`__")).replace(/~\*/g,"__`$2`__")).replace(/~(.)/g,"$1")).replace(/(\?+)/g,(function(e,t){return Array.from(t).map((function(e){return"."})).join("")}))).replace(/(\*+)/g,(function(e,t){return Array.from(t).map((function(e){return".*"})).join("")}))).replace(/__`\$(\d)`__/g,(function(e,t){switch(t){case"0":return"~";case"1":return"\\?";case"2":return"\\*"}}));/([^~]|^)[?*]/g.test(e)&&(i="^"+i+"$");("~"===e||e&&!i.length)&&(i="$a^");return new RegExp(i,t?"s":"is")};ValueFilterEditor.prototype._filterValues=function(e){var t=this._rxFilter;return null==t||null==e||t.test(e.text)};ValueFilterEditor.prototype._getActualItems=function(){return this._isSingleFilterMode()?this._getItems():this.exceedsMaxValues?this._view._view:this._view.items};ValueFilterEditor.prototype._cbSelectAllClicked=function(){for(var e=this,t=this._cbSelectAll.checked,i=this._divValues.scrollTop,l=this._getActualItems(),r=0;r<l.length;r++)l[r].show=t;this._view.refresh();this._divValues.scrollTop=i;this._adjustWidthsTimer=setTimeout((function(){e._adjustWidths()}),0)};ValueFilterEditor.prototype._updateSelectAllCheck=function(){for(var e=this._getActualItems(),t=0,i=0,l=0;l<e.length;l++){e[l].show?t++:i++;if(t&&i)break}var r=t&&i?null:t>0;wijmo_1.setChecked(this._cbSelectAll,r);null==r?this._cbSelectAll.setAttribute("data-indeterminate","true"):this._cbSelectAll.removeAttribute("data-indeterminate");this.canApply=t>0};ValueFilterEditor.prototype._adjustWidths=function(){var e=this._lbValues.hostElement;if(e&&e.offsetHeight>0){var t=0,i=e.querySelectorAll("."+input.ListBoxClsNames.listBoxItem);if(i.length){for(var l=0;l<i.length;l++)t=Math.max(t,i[l].scrollWidth);if(t){var r=e.querySelectorAll("."+input.ListBoxClsNames.listBoxItem);if(r.length)for(l=0;l<r.length;l++)r[l].style.width=t+"px"}}}};Object.defineProperty(ValueFilterEditor.prototype,"exceedsMaxValues",{get:function(){return!(!this._view||!this._view._view)&&this._view._view.length>this.filter.maxValues},enumerable:!0,configurable:!0});ValueFilterEditor.prototype._updateExceedsMaxValuesDisplay=function(){this._divExceeds.style.display=this.exceedsMaxValues?"":"none"};ValueFilterEditor.prototype._initPopup=function(){var e=document.createElement("div"),t=this.hostElement.getAttribute("lang");e.innerHTML='\n <div role="dialog" aria-modal="true" aria-describedby="dialogDesc" '+(t?'lang="'+t+'"':"")+"><div class="+input.PopupClsNames.dialogBody+"><div class="+exports.ValueFilterEditorClsNames.customModalText+'><p id="dialogDesc">'+wijmo_1.culture.FlexGridFilter.popupBody+'</p></div></div><div class="'+input.PopupClsNames.dialogFooter+" "+exports.ValueFilterEditorClsNames.modalFooter+'" ><button class="btn btn-primary '+wijmo_1.UtilitesClsNames.hideOk+'">'+wijmo_1.culture.FlexGridFilter.popupOkButton+"</button></div></div>";this._popup=new input.Popup(e,{modal:!0,fadeIn:!0,fadeOut:!0})};ValueFilterEditor.prototype._isSingleFilterMode=function(){return!this._filter._columnFilter||this._filter._columnFilter.filterMode==FilterMode.SingleFilter};ValueFilterEditor.prototype.dispose=function(){if(this._lbValues){this._lbValues.dispose();this._lbValues=null}this._cbSelectAll&&this._cbSelectAll.removeEventListener("click",this._cbSelectAllClickedBnd);if(this._cmbFilter){this._cmbFilter.inputElement&&this._cmbFilter.inputElement.removeEventListener("input",this._filterTextChangedBnd);this._cmbFilter.dispose();this._cmbFilter=null}if(this._view){this._view.collectionChanged.removeHandler(this._updateSelectAllCheck,this);this._view=null}if(this._adjustWidthsTimer){clearTimeout(this._adjustWidthsTimer);this._adjustWidthsTimer=null}if(this._updateFilterTimer){clearTimeout(this._updateFilterTimer);this._updateFilterTimer=null}if(this._toFilter){clearTimeout(this._toFilter);this._toFilter=null}if(this._popup&&!this._popup.isVisible){this._popup.dispose();this._popup=null}this._filter=null;this._initialItems=null;this._rxFilter=null;this._filterText=null;e.prototype.dispose.call(this)};ValueFilterEditor._ctrlTemplate="";return ValueFilterEditor}(wijmo_1.Control);exports.ValueFilterEditor=ValueFilterEditor;var ConditionFilter=function(){function ConditionFilter(e){this._c1=new FilterCondition(this);this._c2=new FilterCondition(this);this._and=!0;this._col=e}Object.defineProperty(ConditionFilter.prototype,"condition1",{get:function(){return this._c1},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilter.prototype,"condition2",{get:function(){return this._c2},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilter.prototype,"and",{get:function(){return this._and},set:function(e){this._and=wijmo_1.asBoolean(e)},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilter.prototype,"dataMap",{get:function(){return this._map},set:function(e){this._map=wijmo_1.asType(e,wijmo_grid_1.DataMap,!0)},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilter.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0});ConditionFilter.prototype._setColumn=function(e){this._col=e};Object.defineProperty(ConditionFilter.prototype,"isActive",{get:function(){return this._c1.isActive||this._c2.isActive},enumerable:!0,configurable:!0});ConditionFilter.prototype.apply=function(e){var t=this._col,i=this._c1,l=this._c2,r=!1,n=!1;if(!t||!t._binding||!this.isActive)return!0;e=t._binding.getValue(e);var o=this.dataMap||t.dataMap;if(o)e=o.getDisplayValue(e);else if(wijmo_1.isDate(e)){r=!this._hasTimePart();n=!this._hasDatePart();var a=FilterCondition._refDateTime;r?e=wijmo_1.DateTime.fromDateTime(e,a):n&&(e=wijmo_1.DateTime.fromDateTime(a,e))}else if(wijmo_1.isNumber(e)){var s=wijmo_1.Globalize,d=t.format,u=s.formatNumber(e,d);e=s.parseFloat(u,d)}var c=i.apply(e,r,n),p=l.apply(e,r,n);return i.isActive&&l.isActive?this._and?c&&p:c||p:i.isActive?c:!l.isActive||p};ConditionFilter.prototype.clear=function(){this._c1.clear();this._c2.clear();this.and=!0};ConditionFilter.prototype._hasDatePart=function(){var e=this._col.format;if(!e)return!0;e=wijmo_1.culture.Globalize.calendar.patterns[e]||e;return/[yMd]+/.test(e)};ConditionFilter.prototype._hasTimePart=function(){var e=this._col.format;if(!e)return!1;e=wijmo_1.culture.Globalize.calendar.patterns[e]||e;return/[Hmst]+/.test(e)};ConditionFilter.prototype.implementsInterface=function(e){return"IColumnFilter"==e};ConditionFilter.prototype.setColumnFilter=function(e){this._columnFilter=e};return ConditionFilter}();exports.ConditionFilter=ConditionFilter;var Operator,FilterCondition=function(){function FilterCondition(e){this._op=null;this._filter=e}Object.defineProperty(FilterCondition.prototype,"operator",{get:function(){return this._op},set:function(e){this._op=wijmo_1.asEnum(e,Operator,!0)},enumerable:!0,configurable:!0});Object.defineProperty(FilterCondition.prototype,"value",{get:function(){return this._val},set:function(e){this._val=e;this._strVal=wijmo_1.isString(e)?this._getCaseString(e):null},enumerable:!0,configurable:!0});Object.defineProperty(FilterCondition.prototype,"isActive",{get:function(){if(this._filter._columnFilter&&this._filter._columnFilter.filterMode==FilterMode.MultiFilter)switch(this._op){case null:return!1;case Operator.BLANK:case Operator.NOTBLANK:return!0;default:return""!==this._val&&null!==this._val}else switch(this._op){case null:return!1;case Operator.EQ:case Operator.NE:return!0;default:return null!=this._val||null!=this._strVal}},enumerable:!0,configurable:!0});FilterCondition.prototype.clear=function(){this.operator=null;this.value=null};FilterCondition.prototype.apply=function(e,t,i){var l=this._strVal||this._val;wijmo_1.isString(e)&&(e=this._getCaseString(e));wijmo_1.isString(l)&&null==e&&(e="");wijmo_1.isDate(l)&&(t?l=wijmo_1.DateTime.fromDateTime(l,FilterCondition._refDateTime):i&&(l=wijmo_1.DateTime.fromDateTime(FilterCondition._refDateTime,l)));var r=Operator;switch(this._op){case null:return!0;case r.EQ:return null!=e&&null!=l?e.valueOf()==l.valueOf():e==l;case r.NE:return null!=e&&null!=l?e.valueOf()!=l.valueOf():e!=l;case r.GT:return e>l;case r.GE:return e>=l;case r.LT:return e<l;case r.LE:return e<=l;case r.BW:return!(null==this._strVal||!wijmo_1.isString(e))&&0==e.indexOf(this._strVal);case r.EW:return!!(null!=this._strVal&&wijmo_1.isString(e)&&e.length>=this._strVal.length)&&e.substr(e.length-this._strVal.length)==l;case r.CT:return!(null==this._strVal||!wijmo_1.isString(e))&&e.indexOf(this._strVal)>-1;case r.NC:return!(null==this._strVal||!wijmo_1.isString(e))&&e.indexOf(this._strVal)<0;case r.NBW:return!(null==this._strVal||!wijmo_1.isString(e))&&0!==e.indexOf(this._strVal);case r.NEW:return!(null==this._strVal||!wijmo_1.isString(e))&&e.substring(e.length-this._strVal.length)!==l;case r.BLANK:return isBlankValue(e);case r.NOTBLANK:return!isBlankValue(e)}throw"Unknown operator"};FilterCondition.prototype._getCaseString=function(e){var t=this._filter.column,i=t?t.grid:null;return i&&i.caseSensitiveSearch?e:e.toLowerCase()};FilterCondition._refDateTime=new Date(2e3,0,1,0,0,0);return FilterCondition}();exports.FilterCondition=FilterCondition;!function(e){e[e.EQ=0]="EQ";e[e.NE=1]="NE";e[e.GT=2]="GT";e[e.GE=3]="GE";e[e.LT=4]="LT";e[e.LE=5]="LE";e[e.BW=6]="BW";e[e.EW=7]="EW";e[e.CT=8]="CT";e[e.NC=9]="NC";e[e.NBW=10]="NBW";e[e.NEW=11]="NEW";e[e.BLANK=100]="BLANK";e[e.NOTBLANK=101]="NOTBLANK"}(Operator=exports.Operator||(exports.Operator={}));function isBlankValue(e){return null==e||""===e}var ConditionFilterEditor=function(e){__extends(ConditionFilterEditor,e);function ConditionFilterEditor(t,i){var l=e.call(this,t)||this;l._canApply=!1;l.canApplyChanged=new wijmo_1.Event;l._filter=wijmo_1.asType(i,ConditionFilter,!1);var r=l.getTemplate();l.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+exports.ConditionFilterEditorClsNames.hostElement,r,{_divHdr:"div-hdr",_divCmb1:"div-cmb1",_divVal1:"div-val1",_btnAnd:"btn-and",_btnOr:"btn-or",_spAnd:"sp-and",_spOr:"sp-or",_divCmb2:"div-cmb2",_divVal2:"div-val2",_lblVal:"lbl-val",_divHdr2:"div-hdr-second",_lblVal2:"lbl-val-second"});var n=wijmo_1.culture.FlexGridFilter,o=n.ariaLabels;wijmo_1.setAriaLabel(l._btnAnd,o.and);wijmo_1.setAriaLabel(l._btnOr,o.or);wijmo_1.setAttribute(l._btnAnd,"aria-describedby","filterAndDesc");wijmo_1.setAttribute(l._btnOr,"aria-describedby","filterOrDesc");l._spAnd.id="filterAndDesc";l._spOr.id="filterOrDesc";wijmo_1.setText(l._divHdr,n.header);wijmo_1.setText(l._spAnd,n.and);wijmo_1.setText(l._spOr,n.or);wijmo_1.setText(l._lblVal,o.val1);wijmo_1.setText(l._divHdr2,n.header);wijmo_1.setText(l._lblVal2,o.val2);l._linkLabelToInput(l._divHdr,l._divCmb1,"cmb1");l._linkLabelToInput(l._divHdr2,l._divCmb2,"cmb2");l._cmb1=l._createOperatorCombo(l._divCmb1,o.op1);l._val1=l._createValueInput(l._divVal1,o.val1);l._cmb2=l._createOperatorCombo(l._divCmb2,o.op2);l._val2=l._createValueInput(l._divVal2,o.val2);l._val1.hostElement.style.display="none";l._lblVal.style.display="none";l._cmb1.selectedIndexChanged.addHandler((function(e,t){var i=null==e.selectedValue||l._isShowConditionValuePart(e.selectedValue);l._val1.hostElement.style.display=i?"none":"";l._lblVal.style.display=i?"none":"";wijmo_1.setAttribute(l._val1.hostElement,"aria-hidden",i.toString());l.canApply=!i||"none"!==l._val2.hostElement.style.display}));l._val2.hostElement.style.display="none";l._lblVal2.style.display="none";l._cmb2.selectedIndexChanged.addHandler((function(e,t){var i=null==e.selectedValue||l._isShowConditionValuePart(e.selectedValue);l._val2.hostElement.style.display=i?"none":"";l._lblVal2.style.display=i?"none":"";wijmo_1.setAttribute(l._val2.hostElement,"aria-hidden",i.toString());l.canApply="none"!==l._val1.hostElement.style.display||!i}));l.addEventListener(l._lblVal,"click",(function(e){return l._onLabelClick(e,l._val1)}));l.addEventListener(l._lblVal2,"click",(function(e){return l._onLabelClick(e,l._val2)}));var a=l.hostElement;l.addEventListener(a,"change",l._btnAndOrChanged.bind(l));l.addEventListener(a,"keydown",l._keydown.bind(l));l.updateEditor();return l}Object.defineProperty(ConditionFilterEditor,"controlTemplate",{get:function(){ConditionFilterEditor._ctrlTemplate||(ConditionFilterEditor._ctrlTemplate='<div><label wj-part="div-hdr"></label><div wj-part="div-cmb1"></div><br/><label wj-part="lbl-val"></label><div wj-part="div-val1"></div><br/><div role="radiogroup" style="text-align:center"><label><input wj-part="btn-and" type="radio" role="radio"> <span wj-part="sp-and"></span> </label> <label><input wj-part="btn-or" type="radio" role="radio"> <span wj-part="sp-or"></span> </label></div><label wj-part="div-hdr-second"></label><div wj-part="div-cmb2"></div><br/><label wj-part="lbl-val-second"></label><div wj-part="div-val2"></div><br/></div>');return ConditionFilterEditor._ctrlTemplate},set:function(e){ConditionFilterEditor._ctrlTemplate=e},enumerable:!0,configurable:!0});ConditionFilterEditor.prototype._isShowConditionValuePart=function(e){return e==Operator.BLANK||e==Operator.NOTBLANK};ConditionFilterEditor.prototype._linkLabelToInput=function(e,t,i){var l=wijmo_1.getUniqueId(i);e.htmlFor=l;t.id=l};Object.defineProperty(ConditionFilterEditor.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0});Object.defineProperty(ConditionFilterEditor.prototype,"canApply",{get:function(){return this._canApply},set:function(e){if(e!=this._canApply){this._canApply=e;this.onCanApplyChanged()}},enumerable:!0,configurable:!0});ConditionFilterEditor.prototype.updateEditor=function(){var e=this._filter.condition1,t=this._filter.condition2;this._cmb1.selectedValue=e.operator;this._cmb2.selectedValue=t.operator;if(this._val1 instanceof input.ComboBox&&!(this._val1 instanceof input.InputTime)){this._val1.text=wijmo_1.changeType(e.value,wijmo_1.DataType.String);this._val2.text=wijmo_1.changeType(t.value,wijmo_1.DataType.String)}else{this._val1.value=e.value;this._val2.value=t.value}var i=this._filter.and;this._checkRadio(this._btnAnd,i);this._checkRadio(this._btnOr,!i)};ConditionFilterEditor.prototype.clearEditor=function(){this._cmb1.selectedValue=this._cmb2.selectedValue=null;this._val1.text=this._val2.text=null;this._checkRadio(this._btnAnd,!0);this._checkRadio(this._btnOr,!1)};Object.defineProperty(ConditionFilterEditor.prototype,"isEditorClear",{get:function(){return null==this._cmb1.selectedValue&&!this._val1.text&&null==this._cmb2.selectedValue&&!this._val2.text},enumerable:!0,configurable:!0});ConditionFilterEditor.prototype.updateFilter=function(){var e=this._filter.condition1,t=this._filter.condition2;e.operator=this._cmb1.selectedValue;t.operator=this._cmb2.selectedValue;if("value"in this._val1)if(!this._isSingleFilterMode()&&this._val1._cal&&this._val1._getParsedValue){e.value=this._val1._getParsedValue();t.value=this._val2._getParsedValue()}else{e.value=this._val1.value;t.value=this._val2.value}else{e.value=this._getComboValue(this._val1);t.value=this._getComboValue(this._val2)}this._filter.and=this._btnAnd.checked};ConditionFilterEditor.prototype.onCanApplyChanged=function(e){this.canApplyChanged.raise(this,e)};ConditionFilterEditor.prototype._getComboValue=function(e){return e.selectedIndex>-1?e.selectedValue:e.text};ConditionFilterEditor.prototype._createOperatorCombo=function(e,t){var i=this._filter.column,l=wijmo_1.culture.FlexGridFilter,r=l.stringOperators,n=wijmo_1.DataType;this._filter.dataMap||i.dataMap||(i.dataType==n.Date?r=l.dateOperators:i.dataType==n.Number?r=l.numberOperators:i.dataType==n.Boolean&&(r=l.booleanOperators));this._isSingleFilterMode()||(r=r.concat(l.multiFilterBlankOperators));var o=new input.ComboBox(e,{itemsSource:r,displayMemberPath:"name",selectedValuePath:"op",keyActionPrintCharacters:0});wijmo_1.setAriaLabel(o.inputElement,t);return o};ConditionFilterEditor.prototype._createValueInput=function(e,t){var i=this._filter,l=i.column,r=i.dataMap||l.dataMap,n=null,o=wijmo_1.DataType;if(l.dataType==o.Date)(n=i._hasDatePart()?i._hasTimePart()?new input.InputDateTime(e):new input.InputDate(e):new input.InputTime(e,{keyActionPrintCharacters:0})).format=l.format;else if(l.dataType!=o.Number||r){(n=new input.ComboBox(e)).isEditable=!0;n.trimText=!1;n.keyActionPrintCharacters=0;if(r){n.itemsSource=r.getDisplayValues();n.caseSensitiveSearch=!!l.grid&&l.grid.caseSensitiveSearch}else l.dataType==o.Boolean&&(n.itemsSource=[!0,!1])}else{(n=new input.InputNumber(e)).step=1;n.format=l.format}n.isRequired=!1;wijmo_1.setAriaLabel(n.inputElement,t);return n};ConditionFilterEditor.prototype._btnAndOrChanged=function(e){var t=e.target==this._btnAnd,i=e.target==this._btnOr;if(t||i){this._checkRadio(this._btnAnd,t);this._checkRadio(this._btnOr,i)}};ConditionFilterEditor.prototype._checkRadio=function(e,t){e.checked=t;wijmo_1.setAttribute(e,"aria-checked",t.toString());wijmo_1.setAttribute(e,"tabindex",t?null:"-1")};ConditionFilterEditor.prototype._keydown=function(e){var t=e.target==this._btnAnd,i=e.target==this._btnOr;if(t||i)switch(e.keyCode){case wijmo_1.Key.Left:case wijmo_1.Key.Right:case wijmo_1.Key.Up:case wijmo_1.Key.Down:var l=t?this._btnOr:this._btnAnd;l.click();l.focus();e.preventDefault()}};ConditionFilterEditor.prototype._onLabelClick=function(e,t){t.focus()};ConditionFilterEditor.prototype._isSingleFilterMode=function(){return!this._filter._columnFilter||this._filter._columnFilter.filterMode==FilterMode.SingleFilter};ConditionFilterEditor._ctrlTemplate="";return ConditionFilterEditor}(wijmo_1.Control);exports.ConditionFilterEditor=ConditionFilterEditor;wijmo_1._addCultureInfo("FlexGridFilter",{ariaLabels:{edit:"Edit Filter for Column",dialog:"Filter Editor for Column",asc:"Sort Column in Ascending Order",dsc:"Sort Column in Descending Order",search:"Search Item List",op1:"First Condition Operator",val1:"First Condition Value",and:"Require both Conditions",or:"Require either Condition",op2:"Second Condition Operator",val2:"Second Condition Value",active:"active",listBox:"List of options available for filtering"},accessibilityHelperMessage:{filter:{filterColumn:"Show column {name} filter dialog",closeFilterDialog:"Close Filter dialog"}},ascending:"↑ Ascending",descending:"↓ Descending",apply:"Apply",cancel:"Cancel",clear:"Clear",conditions:"Filter by Condition",values:"Filter by Value",search:"Search",selectAll:"Select All",includeSelection:"Include Current Selection",null:"(nothing)",exceedsMaxValues:"Not all items showing",popupBody:"This column has more than 250 unique items. Only the first 250 unique items are displayed.",popupOkButton:"OK",header:"Show items where the value",and:"And",or:"Or",stringOperators:[{name:"(not set)",op:null},{name:"Equals",op:Operator.EQ},{name:"Does not equal",op:Operator.NE},{name:"Begins with",op:Operator.BW},{name:"Does not begin with",op:Operator.NBW},{name:"Ends with",op:Operator.EW},{name:"Does not end with",op:Operator.NEW},{name:"Contains",op:Operator.CT},{name:"Does not contain",op:Operator.NC}],multiFilterBlankOperators:[{name:"Nothing",op:Operator.BLANK},{name:"Not Nothing",op:Operator.NOTBLANK}],numberOperators:[{name:"(not set)",op:null},{name:"Equals",op:Operator.EQ},{name:"Does not equal",op:Operator.NE},{name:"Is Greater than",op:Operator.GT},{name:"Is Greater than or equal to",op:Operator.GE},{name:"Is Less than",op:Operator.LT},{name:"Is Less than or equal to",op:Operator.LE}],dateOperators:[{name:"(not set)",op:null},{name:"Equals",op:Operator.EQ},{name:"Is Before",op:Operator.LT},{name:"Is After",op:Operator.GT}],booleanOperators:[{name:"(not set)",op:null},{name:"Equals",op:Operator.EQ},{name:"Does not equal",op:Operator.NE}]});var ColumnFilterEditor=function(e){__extends(ColumnFilterEditor,e);function ColumnFilterEditor(t,i,l){void 0===l&&(l=!0);var r=e.call(this,t,null,!0)||this;r._disallowedControls=new Set(["TransposedGrid","WjTransposedGrid","TransposedMultiRow","WjTransposedMultiRow"]);r._btnClickedHandle=r._btnClicked.bind(r);r._cbSelectAllClickedHandle=r._cbSelectAllClicked.bind(r);r._andOrChangedHandle=r._andOrChanged.bind(r);r._isConditionFilterChanged=!1;r.filterChanged=new wijmo_1.Event;r.buttonClicked=new wijmo_1.Event;r._filter=wijmo_1.asType(i,ColumnFilter);ColumnFilterEditor.isCustomedTemplate(ColumnFilterEditor.controlTemplate)&&(r._filter.filterMode===FilterMode.MultiFilter?ColumnFilterEditor.controlTemplate=ColumnFilterEditor._multiFilterTemplate:ColumnFilterEditor.controlTemplate=ColumnFilterEditor._singleFilterTemplate);var n=r.getTemplate();r._filter.filterMode===FilterMode.MultiFilter?r.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+wijmo_1.ControlClsNames.content+" "+wijmo_1.ControlClsNames.content+" "+exports.ColumnFilterEditorClsNames.hostElement,n,{_divSort:"div-sort",_btnAsc:"btn-asc",_btnDsc:"btn-dsc",_divEdtVal:"div-edt-val",_divEdtCnd:"div-edt-cnd",_btnClear:"btn-clear"}):r.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+wijmo_1.ControlClsNames.content+" "+wijmo_1.ControlClsNames.content+" "+exports.ColumnFilterEditorClsNames.hostElement,n,{_divSort:"div-sort",_btnAsc:"btn-asc",_btnDsc:"btn-dsc",_divType:"div-type",_tVal:"t-val",_tCnd:"t-cnd",_divEdtVal:"div-edt-val",_divEdtCnd:"div-edt-cnd",_btnApply:"btn-apply",_btnCancel:"btn-cancel",_btnClear:"btn-clear"});var o=wijmo_1.culture.FlexGridFilter,a=o.ariaLabels,s=r.hostElement,d=r.filter.column,u=d.grid.collectionView;wijmo_1.setAttribute(s,"role","dialog");wijmo_1.setAttribute(s,"aria-label",r._filter._ariaLabel);wijmo_1.setAriaLabel(r._btnAsc,a.asc);wijmo_1.setAriaLabel(r._btnDsc,a.dsc);wijmo_1.setText(r._btnAsc,o.ascending);wijmo_1.setText(r._btnDsc,o.descending);wijmo_1.setText(r._btnClear,o.clear);if(r._filter.filterMode===FilterMode.SingleFilter){wijmo_1.setText(r._tVal,o.values);wijmo_1.setText(r._tCnd,o.conditions);wijmo_1.setText(r._btnApply,o.apply);wijmo_1.setText(r._btnCancel,o.cancel);r._tabPanel=new wijmo_nav_1.TabPanel(r._divType.querySelector(".wj-tabpanel"),{isAnimated:!1,autoSwitch:!0,selectedIndexChanged:function(e){if(r.filter.filterType===FilterType.Both)if(e._isInitialized){var t=r.getActiveFilterType(i);e.selectedIndex=t===FilterType.Value?0:1;r._showFilter(t)}else r._showFilter(0===e.selectedIndex?FilterType.Value:FilterType.Condition);else{e.selectedIndex=r.filter.filterType===FilterType.Value?0:1;r._showFilter(r.filter.filterType)}}});r._showFilter(r.getActiveFilterType(i))}else r._showFilter();if(!d.allowSorting||r._disallowedControls.has(d.grid.constructor.name)){wijmo_1.enable(r._btnAsc,!1);wijmo_1.enable(r._btnDsc,!1)}l&&u&&u.canSort||(r._divSort.style.display="none");r._updateSortButtonState();r._btnApply&&r._btnApply.addEventListener("click",r._btnClickedHandle);r._btnCancel&&r._btnCancel.addEventListener("click",r._btnClickedHandle);r._btnClear.addEventListener("click",r._btnClickedHandle);r._btnAsc.addEventListener("click",r._btnClickedHandle);r._btnDsc.addEventListener("click",r._btnClickedHandle);r.addEventListener(s,"keydown",(function(e){if(!e.defaultPrevented){var t=e.target.tagName.match(/^(a|button)$/i);switch(e.keyCode){case wijmo_1.Key.Space:if(t){r._btnClicked(e);e.preventDefault()}break;case wijmo_1.Key.Enter:if(t)r._btnClicked(e);else{r.updateFilter();r.onFilterChanged();r.onButtonClicked()}e.preventDefault();break;case wijmo_1.Key.Escape:r.onButtonClicked();e.preventDefault();break;case wijmo_1.Key.Tab:wijmo_1.moveFocus(r.hostElement,e.shiftKey?-1:1);e.preventDefault()}}}));r.addEventListener(window,"resize",(function(){if(!r.isTouching&&!r._wasTouching)if(r.filter.filterMode===FilterMode.SingleFilter)r.onButtonClicked();else{var e=r.filter.column,t=e.grid.columnHeaders,i=t.rows.length-1,l=e.index,n=t.getCellElement(i,l),o=n?null:t.getCellBoundingRect(i,l);n?wijmo_1._updatePopupPosition(r.hostElement,n,wijmo_1.PopupPosition.BelowLeft):wijmo_1._updatePopupPosition(r.hostElement,o,wijmo_1.PopupPosition.BelowLeft)}}));return r}Object.defineProperty(ColumnFilterEditor,"controlTemplate",{get:function(){ColumnFilterEditor._ctrlTemplate||(ColumnFilterEditor._ctrlTemplate=ColumnFilterEditor._singleFilterTemplate);return ColumnFilterEditor._ctrlTemplate},set:function(e){ColumnFilterEditor._ctrlTemplate=e},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilterEditor,"_multiFilterTemplate",{get:function(){var e='\n <div wj-part="div-multi-filter">\n <div wj-part="div-edt-cnd" tabindex="-1"></div>\n <div wj-part="div-edt-val" tabindex="-1"></div>\n '+('\n <div style="text-align:right;margin-top:10px">\n <button wj-part="btn-clear" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button>\n </div>\n ')+"\n </div>\n ";return"\n <div>\n "+('\n <div wj-part="div-sort" class="'+exports.ColumnFilterEditorClsNames.sortButtons+'">\n <button wj-part="btn-asc" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button> \n <button wj-part="btn-dsc" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button>\n </div>\n ')+"\n "+e+"\n </div>\n "},enumerable:!0,configurable:!0});Object.defineProperty(ColumnFilterEditor,"_singleFilterTemplate",{get:function(){var e='\n <div style="text-align:right;margin-top:10px">\n <button wj-part="btn-apply" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button> \n <button wj-part="btn-cancel" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button> \n <button wj-part="btn-clear" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button>\n </div>\n ',t='\n <div wj-part="div-type">\n <div class="wj-tabpanel">\n <div>\n <div wj-part="t-val" class="'+exports.ColumnFilterEditorClsNames.filterHeader+'"></div>\n <div>\n <div wj-part="div-edt-val" tabindex="-1"></div>\n </div>\n </div>\n <div>\n <div wj-part="t-cnd" class="'+exports.ColumnFilterEditorClsNames.filterHeader+'"></div>\n <div>\n <div wj-part="div-edt-cnd" tabindex="-1"></div>\n </div>\n </div>\n </div>\n '+e+"\n </div>\n ";return"\n <div>\n "+('\n <div wj-part="div-sort" class="'+exports.ColumnFilterEditorClsNames.sortButtons+'">\n <button wj-part="btn-asc" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button> \n <button wj-part="btn-dsc" class="'+wijmo_1.InputFormElementsClsNames.btn+'"></button>\n </div>\n ')+"\n "+t+"\n </div>\n "},enumerable:!0,configurable:!0});ColumnFilterEditor.isCustomedTemplate=function(e){return e===ColumnFilterEditor._multiFilterTemplate||e===ColumnFilterEditor._singleFilterTemplate};Object.defineProperty(ColumnFilterEditor.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0});ColumnFilterEditor.prototype.updateEditor=function(){this._edtVal&&this._edtVal.updateEditor();this._edtCnd&&this._edtCnd.updateEditor()};ColumnFilterEditor.prototype.updateFilter=function(){var e=this.filter.filterMode;if(e==FilterMode.SingleFilter)switch(this._getFilterType()){case FilterType.Value:this._edtVal.updateFilter();this.filter.conditionFilter.clear();break;case FilterType.Condition:this._edtCnd.updateFilter();this.filter.valueFilter.clear()}else if(e==FilterMode.MultiFilter){this._edtVal&&this._edtVal.updateFilter();this._edtCnd&&this._edtCnd.updateFilter()}};ColumnFilterEditor.prototype.onFilterChanged=function(e){this.filterChanged.raise(this,e)};ColumnFilterEditor.prototype.onButtonClicked=function(e){this.buttonClicked.raise(this,e)};ColumnFilterEditor.prototype._showFilter=function(e){var t=this;this._wasTouching=this.isTouching;if(this._filter.filterMode!==FilterMode.MultiFilter){if(e==FilterType.Value&&null==this._edtVal){this._edtVal=new ValueFilterEditor(this._divEdtVal,this.filter.valueFilter);this._edtVal.canApplyChanged.addHandler((function(e){wijmo_1.enable(t._btnApply,t._edtVal.canApply)}))}if(e==FilterType.Condition&&null==this._edtCnd){this._edtCnd=new ConditionFilterEditor(this._divEdtCnd,this.filter.conditionFilter);this._edtCnd.canApplyChanged.addHandler((function(e){wijmo_1.enable(t._btnApply,t._edtCnd.canApply)}))}if(0!=(e&this.filter.filterType))if(e==FilterType.Value){this._divEdtVal.style.display="";this._divEdtCnd.style.display="none";this._edtVal.focus();this._edtVal._updateExceedsMaxValuesDisplay();wijmo_1.enable(this._btnApply,this._edtVal.canApply)}else{this._divEdtVal.style.display="none";this._divEdtCnd.style.display="";this._edtCnd.focus();wijmo_1.enable(this._btnApply,this._edtCnd.canApply)}var i=[this._tCnd,this._tVal];switch(this.filter.filterType){case FilterType.None:case FilterType.Condition:case FilterType.Value:i.forEach((function(e){e.style.display="none"}));break;default:i.forEach((function(e){e.style.display=""}))}}else{this._edtCnd||(this._edtCnd=new ConditionFilterEditor(this._divEdtCnd,this.filter.conditionFilter));this._edtVal||(this._edtVal=new ValueFilterEditor(this._divEdtVal,this.filter.valueFilter));this._edtVal._updateExceedsMaxValuesDisplay();this.bindEventsForMultiFilter()}};ColumnFilterEditor.prototype.getActiveFilterType=function(e){return this.filter.conditionFilter.isActive||0==(e.filterType&FilterType.Value)?FilterType.Condition:FilterType.Value};ColumnFilterEditor.prototype.raiseFilterChangedHandler=function(){var e=this.filter._owner;e.onFilterChanged(new wijmo_grid_1.CellRangeEventArgs(e.grid.cells,new wijmo_grid_1.CellRange(-1,this.filter.column.index)))};ColumnFilterEditor.prototype.bindEventsForMultiFilter=function(){var e=this,t=this._edtCnd,i=this._edtVal;t._cmb1.selectedIndexChanged.addHandler((function(i,l){e.setConditionFilterChanged(t._val1);e._cmb1Timer=e.updateConditionEditorAndTirggerFilterChanged()}));t._cmb2.selectedIndexChanged.addHandler((function(i,l){e.setConditionFilterChanged(t._val2);e._cmb2Timer=e.updateConditionEditorAndTirggerFilterChanged()}));t._val1.textChanged.addHandler((function(){e._isConditionFilterChanged=!0;e._val1Timer=e.updateConditionEditorAndTirggerFilterChanged()}));t._val2.textChanged.addHandler((function(){e._isConditionFilterChanged=!0;e._val2Timer=e.updateConditionEditorAndTirggerFilterChanged()}));t.hostElement.addEventListener("change",this._andOrChangedHandle);i._lbValues.itemChecked.addHandler((function(){i.updateFilter();e.raiseFilterChangedHandler();e.onFilterChanged()}));i._cbSelectAll.addEventListener("click",this._cbSelectAllClickedHandle);this._filterAppliedHandler=function(){if(e._isConditionFilterChanged){e._edtVal.updateEditor();e._isConditionFilterChanged=!1}};this._filter._owner.filterApplied.addHandler(this._filterAppliedHandler)};ColumnFilterEditor.prototype.updateConditionEditorAndTirggerFilterChanged=function(){var e=this;return setTimeout((function(){e.raiseFilterChangedHandler();e._edtCnd.updateFilter();e._isConditionFilterChanged&&e.onFilterChanged()}),wijmo_1.Control._SEARCH_DELAY+100)};ColumnFilterEditor.prototype._cbSelectAllClicked=function(){this._edtVal.updateFilter();this.raiseFilterChangedHandler();this.onFilterChanged()};ColumnFilterEditor.prototype._andOrChanged=function(e){var t=e.target==this._edtCnd._btnAnd,i=e.target==this._edtCnd._btnOr;if(t||i){this.filter.conditionFilter.isActive&&(this._isConditionFilterChanged=!0);this._andOrTimer=this.updateConditionEditorAndTirggerFilterChanged()}};ColumnFilterEditor.prototype._updateSortButtonState=function(){var e=this.filter.column,t=e?e.currentSort:"",i=wijmo_1.ControlStateClsNames.active,l=wijmo_1.culture.FlexGridFilter.ariaLabels;if("+"===t){wijmo_1.addClass(this._btnAsc,i);this._btnAsc.setAttribute("aria-label",l.asc+" "+l.active)}else if("-"===t){wijmo_1.addClass(this._btnDsc,i);this._btnDsc.setAttribute("aria-label",l.dsc+" "+l.active)}};ColumnFilterEditor.prototype._getFilterType=function(){var e=FilterType;return"none"!=this._divEdtVal.style.display?e.Value:e.Condition};ColumnFilterEditor.prototype.setConditionFilterChanged=function(e){isValueInputDisplay(e.hostElement)?e.text&&(this._isConditionFilterChanged=!0):this._isConditionFilterChanged=!0};ColumnFilterEditor.prototype._btnClicked=function(e){var t=this,i=e.target;e.preventDefault();e.stopPropagation();if(!wijmo_1.hasClass(i,wijmo_1.ControlStateClsNames.disabled)){if(i==this._btnAsc||i==this._btnDsc){var l=this.filter.column.grid,r=this.filter.column,n=r.sortMemberPath||r.binding,o=r.grid.collectionView.sortDescriptions,a=this.hostElement["$WJ-OWNR"]&&this.hostElement["$WJ-OWNR"]["wj-cell-index"];if(a){var s=a.panel,d=a.rng;null==d&&(d=new wijmo_grid_1.CellRange(a.row,a.col,a.row,a.col));var u=new wijmo_grid_1.CellRangeEventArgs(s,d,e);if(l.onSortingColumn(u)){o.deferUpdate((function(){o.clear();o.push(new wijmo_1.SortDescription(n,e.target==t._btnAsc))}));this._updateSortButtonState();l.onSortedColumn(u)}}}if(i==this._btnApply){this.updateFilter();this.onFilterChanged()}else if(i==this._btnClear){var c=this.filter.isActive;this.filter.clear();c&&this.onFilterChanged()}else this.updateEditor();this.onButtonClicked()}};ColumnFilterEditor.prototype.dispose=function(){this._filterAppliedHandler&&this._filter._owner.filterApplied.removeHandler(this._filterAppliedHandler);if(this._cmb1Timer){clearTimeout(this._cmb1Timer);this._cmb1Timer=null}if(this._cmb2Timer){clearTimeout(this._cmb2Timer);this._cmb2Timer=null}if(this._val1Timer){clearTimeout(this._val1Timer);this._val1Timer=null}if(this._val2Timer){clearTimeout(this._val2Timer);this._val2Timer=null}if(this._andOrTimer){clearTimeout(this._andOrTimer);this._andOrTimer=null}this._btnApply&&this._btnApply.removeEventListener("click",this._btnClickedHandle);this._btnCancel&&this._btnCancel.removeEventListener("click",this._btnClickedHandle);this._btnClear&&this._btnClear.removeEventListener("click",this._btnClickedHandle);this._btnAsc&&this._btnAsc.removeEventListener("click",this._btnClickedHandle);this._btnDsc&&this._btnDsc.removeEventListener("click",this._btnClickedHandle);this._edtCnd&&this._andOrChangedHandle&&this._edtCnd.hostElement.removeEventListener("change",this._andOrChangedHandle);this._edtVal&&this._edtVal._cbSelectAll&&this._edtVal._cbSelectAll.removeEventListener("click",this._cbSelectAllClickedHandle);if(this._edtVal){this._edtVal.dispose();this._edtVal=null}if(this._edtCnd){this._edtCnd.dispose();this._edtCnd=null}if(this._tabPanel){this._tabPanel.dispose();this._tabPanel=null}e.prototype.dispose.call(this)};ColumnFilterEditor._ctrlTemplate="";return ColumnFilterEditor}(wijmo_1.Control);exports.ColumnFilterEditor=ColumnFilterEditor;function isValueInputDisplay(e){return"none"!==e.style.display}wijmo_1._registerModule("wijmo.grid.filter",selfModule);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t014601
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -231,18 +231,18 @@ export declare class GroupPanel<T = any> extends Control {
|
|
|
231
231
|
_removeGroupByColumn(col: Column): void;
|
|
232
232
|
_editFilter(marker: HTMLElement): void;
|
|
233
233
|
_addGroup(col: Column, e?: MouseEvent): void;
|
|
234
|
-
_moveGroup(
|
|
234
|
+
_moveGroup(_marker: HTMLElement, e: MouseEvent): void;
|
|
235
235
|
_removeGroup(index: number, groups?: ObservableArray<GroupDescription>): void;
|
|
236
236
|
_getIndex(e: MouseEvent): number;
|
|
237
237
|
_getElementIndex(e: HTMLElement): number;
|
|
238
|
-
_draggingColumn(
|
|
239
|
-
_itemsSourceChanging(
|
|
240
|
-
_itemsSourceChanged(
|
|
241
|
-
_collectionChanged(
|
|
238
|
+
_draggingColumn(_s: FlexGrid, e: CellRangeEventArgs): void;
|
|
239
|
+
_itemsSourceChanging(_s: FlexGrid, _e: EventArgs): void;
|
|
240
|
+
_itemsSourceChanged(_s: FlexGrid, _e: EventArgs): void;
|
|
241
|
+
_collectionChanged(_sender: any, e: NotifyCollectionChangedEventArgs): void;
|
|
242
242
|
_dragStart(e: DragEvent): void;
|
|
243
243
|
_dragOver(e: DragEvent): void;
|
|
244
244
|
_drop(e: DragEvent): void;
|
|
245
|
-
_dragEnd(
|
|
245
|
+
_dragEnd(_e: DragEvent): void;
|
|
246
246
|
_keyDown(e: KeyboardEvent): void;
|
|
247
247
|
_click(e: MouseEvent): void;
|
|
248
248
|
_updateSort(e: MouseEvent, marker: HTMLElement): void;
|
package/wijmo.grid.grouppanel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t014601
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
"use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,r){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};return function(e,r){extendStatics(e,r);function __(){this.constructor=e}e.prototype=null===r?Object.create(r):(__.prototype=r.prototype,new __)}}(),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);r.default=e;return r};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),wijmo_grid_1=require("wijmo/wijmo.grid"),selfModule=__importStar(require("wijmo/wijmo.grid.grouppanel"));exports.GroupPanelClsNames={groupMarker:"wj-groupmarker",hostElement:"wj-grouppanel",groupPlaceholder:"wj-groupplaceholder"};function softGridFilter(){return wijmo_1._getModule("wijmo.grid.filter")}exports.softGridFilter=softGridFilter;wijmo_1._addCultureInfo("GroupPanel",{dragDrop:"Drag and Drop columns here to create Groups.",groupPanel:"Grouped columns panel",groupDescription:"Grouped by {0}{1}",groupAction:"Activate to toggle sort or remove group.",sortedAsc:", sorted ascending",sortedDesc:", sorted descending",sortedAscStatus:"{0} ascending",sortedDescStatus:"{0} descending",remove:"Remove group",added:"Added group {0}"});var GroupPanel=function(e){__extends(GroupPanel,e);function GroupPanel(r,t){var i=e.call(this,r)||this;i._hideGroupedCols=!0;i._showDragGlyphs=!0;i._maxGroups=6;i._hiddenCols=[];i._placeholder=null;i._dragEndBnd=i._dragEnd.bind(i);i._keyDownBnd=i._keyDown.bind(i);i._focusGd=null;i._ariaLabel=wijmo_1.culture.GroupPanel.groupPanel;var o=i.getTemplate();i.applyTemplate(exports.GroupPanelClsNames.hostElement+" "+wijmo_1.ControlClsNames.hostElement,o,{_divMarkers:"div-markers",_divPH:"div-ph",_groupStatus:"group-status"});wijmo_1.setCss(i._divMarkers.parentElement,{width:"100%",height:"100%",minHeight:"1em",overflow:"hidden",cursor:"default"});var n=i.hostElement,l=i.addEventListener.bind(i);l(n,"dragstart",i._dragStart.bind(i));l(n,"dragover",i._dragOver.bind(i));l(n,"drop",i._drop.bind(i));l(n,"dragend",i._dragEndBnd);wijmo_1.setAttribute(n,"role","region");wijmo_1.setAttribute(n,"aria-label",i._ariaLabel);l(n,"click",i._click.bind(i));i.initialize(t);return i}Object.defineProperty(GroupPanel,"controlTemplate",{get:function(){GroupPanel._ctrlTemplate||(GroupPanel._ctrlTemplate='<div><div wj-part="div-ph" class="'+exports.GroupPanelClsNames.groupPlaceholder+'"></div><div wj-part="div-markers"></div><div wj-part="group-status" aria-live="polite" class="'+wijmo_grid_1.FlexGridClsNames.screenReaderOnly+'"></div></div>');return GroupPanel._ctrlTemplate},set:function(e){GroupPanel._ctrlTemplate=e},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"hideGroupedColumns",{get:function(){return this._hideGroupedCols},set:function(e){e!=this._hideGroupedCols&&(this._hideGroupedCols=wijmo_1.asBoolean(e))},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"showDragGlyphs",{get:function(){return this._showDragGlyphs},set:function(e){if(e!=this._showDragGlyphs){this._showDragGlyphs=wijmo_1.asBoolean(e);this.refresh()}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"maxGroups",{get:function(){return this._maxGroups},set:function(e){if(e!=this._maxGroups){this._maxGroups=wijmo_1.asNumber(e);var r=this._gds,t=this._maxGroups;r&&t>-1&&t<r.length&&r.splice(t,r.length-t)}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(e!=this._placeholder){this._placeholder=e;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"grid",{get:function(){return this._g},set:function(e){if((e=wijmo_1.asType(e,wijmo_grid_1.FlexGrid,!0))!=this._g){var r=this._g;this._removeEventForGrid();r=this._g=e;this._hiddenCols=[];if(r){r.draggingColumn.addHandler(this._draggingColumn,this);r.itemsSourceChanging.addHandler(this._itemsSourceChanging,this);r.itemsSourceChanged.addHandler(this._itemsSourceChanged,this);r.columns.collectionChanged.addHandler(this._itemsSourceChanged,this);r.addEventListener(r.hostElement,"dragend",this._dragEndBnd);r.addEventListener(r.hostElement,"keydown",this._keyDownBnd)}this._itemsSourceChanged(r,null)}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"collectionView",{get:function(){return this._g?this._g.collectionView:null},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"filter",{get:function(){return this._filter},set:function(e){if((e=wijmo_1.asType(e,softGridFilter().FlexGridFilter,!0))!=this._filter){var r=this._filter;if(r){r.filterApplied.removeHandler(this.refresh,this);r.filterChanged.removeHandler(this._filterChanged,this)}if(r=this._filter=e){r.filterApplied.addHandler(this.refresh,this);r.filterChanged.addHandler(this._filterChanged,this)}this.refresh()}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"groupDescriptionCreator",{get:function(){return this._gdc},set:function(e){this._gdc=e},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"ariaLabel",{get:function(){return this._ariaLabel},set:function(e){if(e!=this._ariaLabel){this._ariaLabel=e;wijmo_1.setAttribute(this.hostElement,"aria-label",this._ariaLabel)}},enumerable:!0,configurable:!0});GroupPanel.prototype.refresh=function(){var r=this;e.prototype.refresh.call(this);this._divMarkers.innerHTML="";this._dragMarker=this._dragCol=null;if(this._gds){var t=0===this._gds.length?"0":"-1";wijmo_1.setAttribute(this.hostElement,"tabindex",t);this._orgTabIndex=+t;for(var i,o=this._g,n=o.columnHeaders,_loop_1=function(e){var t=l._gds[e],s=-1,a=-1;if(t instanceof wijmo_1.PropertyGroupDescription)for(var u=n.rows.length-1;u>=0&&a<0;u--)for(var d=0;d<n.columns.length&&a<0;d++){if((c=o._getBindingColumn(n,u,n.columns[d]))&&c.binding==t.propertyName){a=d;s=u;break}}if(a>-1&&s>-1){var _=document.createElement("button");_.dataset.groupPanel="true";o.cellFactory.updateCell(l._g.columnHeaders,s,a,_);delete _.dataset.groupPanel;wijmo_1.setAttribute(_,"class",wijmo_grid_1.FlexGridClsNames.cell+" "+wijmo_grid_1.FlexGridClsNames.header+" "+exports.GroupPanelClsNames.groupMarker);wijmo_1.setAttribute(_,"role","button");wijmo_1.setAttribute(_,"tabindex","0");_.removeAttribute("aria-sort");_.removeAttribute("aria-readonly");_.removeAttribute("aria-required");var p=t instanceof wijmo_1.PropertyGroupDescription?t.propertyName:"";l._markerFocusHandler=function(){r._focusGd=t};_.addEventListener("focus",l._markerFocusHandler);l._focusGd===t&&l._focus&&(l._mkfocus=setTimeout((function(){_.focus()}),50));l._markerKeydownHandler=function(e){if((wijmo_1._isMacOS()?e.metaKey:e.ctrlKey)&&("ArrowLeft"===e.key||"ArrowRight"===e.key)){e.preventDefault();var t=Array.from(r._divMarkers.children),i=(n=t.indexOf(_))+("ArrowLeft"===e.key?-1:1);if(i>=0&&i<t.length){r._moveGroupByIndex(n,i);r._newMkFocus=setTimeout((function(){var e=r._divMarkers.children[i];e&&e.focus()}),0)}}var o=Array.from(r._divMarkers.children);if("Delete"!==e.key||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey){var n=o.indexOf(_);switch(e.key){case"ArrowLeft":n>0&&o[n-1].focus();break;case"ArrowRight":n<o.length-1&&o[n+1].focus();break;case"Home":(s=o[0])&&s.focus();e.preventDefault();break;case"End":var l=o[o.length-1];l&&l.focus();e.preventDefault()}}else{var s,a=e.target,u=wijmo_1.closest(a,"."+wijmo_grid_1.FlexGridClsNames.cell),d=r._getElementIndex(u),c=r._getColumnInfoByProperty(p).displayName;r._removeGroup(d);r._announceToScreenReader(wijmo_1.culture.GroupPanel.remove+" "+c);r._filterMarker=null;(s=o[0===d?1:0])?s.focus():r.hostElement.focus()}};_.addEventListener("keydown",l._markerKeydownHandler);wijmo_1.setCss(_,{position:"static",display:"inline-block",verticalAlign:"top",left:"",right:"",top:"",width:"",height:"",paddingLeft:"",paddingRight:""});wijmo_1.removeChild(_.querySelector(".wj-elem-filter"));wijmo_1.removeChild(_.querySelector(".wj-column-selector"));if(l.showDragGlyphs){i=wijmo_1.createElement("<span class="+wijmo_1.GlyphClsNames.drag+' aria-hidden="true"></span>');_.insertBefore(i,_.firstChild)}var c,h=(c=o._getBindingColumn(n,s,n.columns[a]))?l._getColumnDisplayName(c):p,g=l._getSortStateDescription(p,n,a),m=h;p!==h&&(m+=", grouped by "+p);m+=g;_.setAttribute("aria-label",m+". "+wijmo_1.culture.GroupPanel.groupAction);var f=l._getColumnFilter(c);if(f){var v=wijmo_1.createElement('<span class="wj-filter '+wijmo_1.GlyphClsNames.filter+'"></span>',_);wijmo_1.toggleClass(v,"wj-filter-on",f.isActive);wijmo_1.toggleClass(v,"wj-filter-off",!f.isActive)}wijmo_1.createElement('<span class="'+wijmo_1.UtilitesClsNames.remove+'" aria-hidden="true">×</span>',_);l._divMarkers.appendChild(_);if(c&&l.hideGroupedColumns){var w=[];if(l.grid.layoutDefinition){l.grid.layoutDefinition.forEach((function(e){return e.cells.forEach((function(e){return w.push(e.binding)}))}))}if(!w.includes(c._binding.path)){c.visible=!1;l._hiddenCols.push(c)}}_[GroupPanel._INDEX_KEY]={row:s,col:a,panel:l}}},l=this,s=0;s<this._gds.length;s++)_loop_1(s);this._divPH.textContent=null!=this._placeholder?this._placeholder:wijmo_1.culture.GroupPanel.dragDrop;var a=this._divMarkers.children.length>0;this._divPH.style.display=a?"none":"";this._divMarkers.style.display=a?"":"none"}};GroupPanel.prototype.hitTest=function(e){var r=e instanceof HTMLElement?e:e instanceof MouseEvent?e.target:null;wijmo_1.assert(null!=r,"MouseEvent or Element expected");var t=wijmo_1.closest(r,"."+wijmo_grid_1.FlexGridClsNames.cell);if(wijmo_1.hasClass(t,wijmo_grid_1.FlexGridClsNames.cell)){var i=this._getElementIndex(t);return this._gds&&i>-1?this._gds[i]:null}return null};GroupPanel.prototype._filterChanged=function(){this._filterMarker=null};GroupPanel.prototype._getColumnFilter=function(e){var r=this._filter,t=null;r&&(t=r.filterColumns&&r.filterColumns.indexOf(e.binding)<0?null:r.getColumnFilter(e));return t};GroupPanel.prototype._getColumnDisplayName=function(e){return e?e.header||e.binding:""};GroupPanel.prototype._getColumnInfoByProperty=function(e){var r=e?this._g.columns.getColumn(e):null;return{col:r,displayName:r?this._getColumnDisplayName(r):e}};GroupPanel.prototype._announceToScreenReader=function(e){this._groupStatus&&(this._groupStatus.textContent=e)};GroupPanel.prototype._getSortStateDescription=function(e,r,t){var i="";if(this._view){var o=this._view.sortDescriptions.find((function(r){return r.property===e}));if(o){i=o.ascending?wijmo_1.culture.GroupPanel.sortedAsc:wijmo_1.culture.GroupPanel.sortedDesc;if(this._view.sortDescriptions.length>1){var n=r.columns[t]&&r.columns[t].currentSortIndex;n>-1&&(i+=" "+wijmo_1.culture.FlexGrid.ariaLabels.sortIndex+" "+(n+1))}}}return i};GroupPanel.prototype._moveGroupByIndex=function(e,r){var t=this,i=this._gds;i&&e>=0&&r>=0&&e<i.length&&r<i.length&&i.deferUpdate((function(){var o=i[e];i.removeAt(e);i.insert(r,o);t.refresh()}))};GroupPanel.prototype._removeGroupByColumn=function(e){for(var r=e.binding,t=this._gds,i=t.length-1;i>=0;i--){var o=t[i];o instanceof wijmo_1.PropertyGroupDescription&&o.propertyName===r&&this._removeGroup(i)}};GroupPanel.prototype._editFilter=function(e){var r=this._gds,t=this._getElementIndex(e),i=r&&t>-1?r[t]:null,o=i instanceof wijmo_1.PropertyGroupDescription?i.propertyName:null,n=o?this._g.getColumn(o):null;n&&this._filter.editColumnFilter(n,null,e)};GroupPanel.prototype._addGroup=function(e,r){var t=this._gds,i=this._maxGroups,o=this._divMarkers.children.length;if(r){o=this._getIndex(r);for(var n=0;n<t.length;n++){var l=t[n];if(l instanceof wijmo_1.PropertyGroupDescription&&l.propertyName==e.binding){t.removeAt(n);n<o&&o--;break}}if(i>-1)for(n=i-1;n<t.length;n++){this._removeGroup(n,t);n<o&&o--}}if(i<0||t.length<i){var s=this._gdc?this._gdc(e.binding):null;s||(s=new wijmo_1.PropertyGroupDescription(e.binding));t.insert(o,s);if(e&&this.hideGroupedColumns){e.visible=!1;this._hiddenCols.push(e)}var a=this._getColumnDisplayName(e);this._announceToScreenReader(format(wijmo_1.culture.GroupPanel.added,a))}};GroupPanel.prototype._moveGroup=function(e,r){var t=this._gds,i=this._getElementIndex(this._dragMarker),o=this._getIndex(r);o>i&&o--;o>=this._gds.length&&(o=this._gds.length);i!=o&&t.deferUpdate((function(){var e=t[i];t.removeAt(i);t.insert(o,e)}))};GroupPanel.prototype._removeGroup=function(e,r){void 0===r&&(r=this._gds);var t=r&&e>-1?r[e]:null,i=t instanceof wijmo_1.PropertyGroupDescription?t.propertyName:null,o=i?this._g.columns.getColumn(i):null;if(o){o.visible=!0;var n=this._hiddenCols,l=n.indexOf(o);l>-1&&n.splice(l,1)}t&&r.removeAt(e)};GroupPanel.prototype._getIndex=function(e){for(var r=e.clientX,t=this._divMarkers.children,i=0;i<t.length;i++){var o=t[i].getBoundingClientRect();if((r-o.left)*(r-o.right)<0)return i}return t.length};GroupPanel.prototype._getElementIndex=function(e){if(e&&e.parentElement)for(var r=e.parentElement.children,t=0;t<r.length;t++)if(r[t]==e)return t;return-1};GroupPanel.prototype._draggingColumn=function(e,r){var t=this._g,i=t._getBindingColumn(r.panel,r.row,t.columns[r.col]);this._dragCol=i.binding?i:null};GroupPanel.prototype._itemsSourceChanging=function(e,r){this._hiddenCols.forEach((function(e){e.visible=!0}));this._hiddenCols=[]};GroupPanel.prototype._itemsSourceChanged=function(e,r){this._view&&this._view.collectionChanged.removeHandler(this._collectionChanged);this._view=this._g?this._g.collectionView:null;this._gds=this._view?this._view.groupDescriptions:null;this._view&&this._view.collectionChanged.addHandler(this._collectionChanged,this);this.invalidate()};GroupPanel.prototype._collectionChanged=function(e,r){r.action==wijmo_1.NotifyCollectionChangedAction.Reset&&this.invalidate()};GroupPanel.prototype._dragStart=function(e){wijmo_1._startDrag(e.dataTransfer,"move");this._dragMarker=e.target;this._dragCol=null};GroupPanel.prototype._dragOver=function(e){if(this._dragCol||this._dragMarker){e.dataTransfer.dropEffect="move";e.preventDefault();e.stopPropagation()}};GroupPanel.prototype._drop=function(e){this._dragMarker?this._moveGroup(this._dragMarker,e):this._dragCol&&this._addGroup(this._dragCol,e)};GroupPanel.prototype._dragEnd=function(e){this._dragMarker=this._dragCol=null};GroupPanel.prototype._keyDown=function(e){if(e.altKey){var r=this._g.selection,t=this._g.columns[r.col],i=this._g.rows[r.row]instanceof wijmo_grid_1.GroupRow;if(t&&"KeyG"===e.code&&!0!==this.isDisabled&&!i){this._addGroup(t,e);e.preventDefault()}}};GroupPanel.prototype._click=function(e){var r=e.target,t=wijmo_1.closest(r,"."+wijmo_grid_1.FlexGridClsNames.cell);if(wijmo_1.hasClass(t,wijmo_grid_1.FlexGridClsNames.cell))if(wijmo_1.hasClass(r,"wj-filter")){if(t!=this._filterMarker){this._editFilter(t);this._filterMarker=t;return}}else if(wijmo_1.hasClass(r,wijmo_1.UtilitesClsNames.remove)){var i=this._getElementIndex(t),o=this._gds&&i>-1?this._gds[i]:null,n=o instanceof wijmo_1.PropertyGroupDescription?o.propertyName:null,l=this._getColumnInfoByProperty(n).displayName;this._removeGroup(i);l&&this._announceToScreenReader(wijmo_1.culture.GroupPanel.remove+" "+l)}else this._updateSort(e,t);this._filterMarker=null};GroupPanel.prototype._updateSort=function(e,r){var t=this._g,i=t.collectionView;if(i&&i.canSort&&t.allowSorting!=wijmo_grid_1.AllowSorting.None){var o=this._getElementIndex(r),n=this._gds[o],l=n instanceof wijmo_1.PropertyGroupDescription?n.propertyName:null,s=l?t.getColumn(l):null;if(s&&s.allowSorting){for(var a=s.sortMemberPath||s.binding,u=-1,d=i.sortDescriptions,_=0;_<d.length;_++)if(d[_].property==a){u=_;break}var p=new wijmo_grid_1.CellRangeEventArgs(t.columnHeaders,new wijmo_grid_1.CellRange(0,s.index),e);if(t.onSortingColumn(p)){var c=e.ctrlKey||e.metaKey,h=e.shiftKey;d.deferUpdate((function(){if(c&&h)d.clear();else if(u<0){t.allowSorting!=wijmo_grid_1.AllowSorting.MultiColumn&&d.clear();var e=null==s.sortOrder?t.sortOrder==wijmo_grid_1.SortOrder.AscDesc||t.sortOrder==wijmo_grid_1.SortOrder.AscDescNone:s.sortOrder==wijmo_grid_1.SortOrder.AscDesc||s.sortOrder==wijmo_grid_1.SortOrder.AscDescNone,r=new wijmo_1.SortDescription(a,e);d.push(r)}else{e=d[u].ascending;var i=null!=s.sortOrder?s.sortOrder:t.sortOrder;if(c||e&&(i===wijmo_grid_1.SortOrder.DescAscNone||t.isTouching&&i===wijmo_grid_1.SortOrder.DescAsc)||!e&&(i===wijmo_grid_1.SortOrder.AscDescNone||t.isTouching&&i===wijmo_grid_1.SortOrder.AscDesc))d.splice(u,1);else{r=new wijmo_1.SortDescription(a,!e);d.splice(u,1,r)}}}));t.onSortedColumn(p)}}}};GroupPanel.prototype._removeEventForGrid=function(){var e=this._g;if(e){e.draggingColumn.removeHandler(this._draggingColumn);e.itemsSourceChanging.removeHandler(this._itemsSourceChanging);e.itemsSourceChanged.removeHandler(this._itemsSourceChanged);e.columns.collectionChanged.removeHandler(this._itemsSourceChanged);e.removeEventListener(e.hostElement,"dragend",this._dragEndBnd);e.removeEventListener(e.hostElement,"keydown",this._keyDownBnd)}};GroupPanel.prototype.dispose=function(){var r=this;this._removeEventForGrid();this._g=null;this._divMarkers.querySelectorAll("."+wijmo_grid_1.FlexGridClsNames.cell).forEach((function(e){e.removeEventListener("keydown",r._markerKeydownHandler);e.removeEventListener("focus",r._markerFocusHandler);e.removeAttribute("draggable")}));this._view&&this._view.collectionChanged.removeHandler(this._collectionChanged);this._focusGd=null;this._dragMarker=null;this._dragCol=null;this._filterMarker=null;this._divPH=null;this._groupStatus=null;if(this._divMarkers){this._divMarkers.innerHTML="";this._divMarkers=null}if(this._mkfocus){clearTimeout(this._mkfocus);this._mkfocus=null}if(this._newMkFocus){clearTimeout(this._newMkFocus);this._newMkFocus=null}e.prototype.dispose.call(this)};GroupPanel._ctrlTemplate="";GroupPanel._INDEX_KEY=wijmo_grid_1.FlexGridClsNames.cellIndex;return GroupPanel}(wijmo_1.Control);exports.GroupPanel=GroupPanel;function format(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce((function(e,r,t){return e.replace(new RegExp("\\{"+t+"\\}","g"),r)}),e)}wijmo_1._registerModule("wijmo.grid.grouppanel",selfModule);
|
|
14
|
+
"use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,r){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};return function(e,r){extendStatics(e,r);function __(){this.constructor=e}e.prototype=null===r?Object.create(r):(__.prototype=r.prototype,new __)}}(),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);r.default=e;return r};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),wijmo_grid_1=require("wijmo/wijmo.grid"),selfModule=__importStar(require("wijmo/wijmo.grid.grouppanel"));exports.GroupPanelClsNames={groupMarker:"wj-groupmarker",hostElement:"wj-grouppanel",groupPlaceholder:"wj-groupplaceholder"};function softGridFilter(){return wijmo_1._getModule("wijmo.grid.filter")}exports.softGridFilter=softGridFilter;wijmo_1._addCultureInfo("GroupPanel",{dragDrop:"Drag and Drop columns here to create Groups.",groupPanel:"Grouped columns panel",groupDescription:"Grouped by {0}{1}",groupAction:"Activate to toggle sort or remove group.",sortedAsc:", sorted ascending",sortedDesc:", sorted descending",sortedAscStatus:"{0} ascending",sortedDescStatus:"{0} descending",remove:"Remove group",added:"Added group {0}"});var GroupPanel=function(e){__extends(GroupPanel,e);function GroupPanel(r,t){var i=e.call(this,r)||this;i._hideGroupedCols=!0;i._showDragGlyphs=!0;i._maxGroups=6;i._hiddenCols=[];i._placeholder=null;i._dragEndBnd=i._dragEnd.bind(i);i._keyDownBnd=i._keyDown.bind(i);i._focusGd=null;i._ariaLabel=wijmo_1.culture.GroupPanel.groupPanel;var o=i.getTemplate();i.applyTemplate(exports.GroupPanelClsNames.hostElement+" "+wijmo_1.ControlClsNames.hostElement,o,{_divMarkers:"div-markers",_divPH:"div-ph",_groupStatus:"group-status"});wijmo_1.setCss(i._divMarkers.parentElement,{width:"100%",height:"100%",minHeight:"1em",overflow:"hidden",cursor:"default"});var n=i.hostElement,l=i.addEventListener.bind(i);l(n,"dragstart",i._dragStart.bind(i));l(n,"dragover",i._dragOver.bind(i));l(n,"drop",i._drop.bind(i));l(n,"dragend",i._dragEndBnd);wijmo_1.setAttribute(n,"role","region");wijmo_1.setAttribute(n,"aria-label",i._ariaLabel);l(n,"click",i._click.bind(i));i.initialize(t);return i}Object.defineProperty(GroupPanel,"controlTemplate",{get:function(){GroupPanel._ctrlTemplate||(GroupPanel._ctrlTemplate='<div><div wj-part="div-ph" class="'+exports.GroupPanelClsNames.groupPlaceholder+'"></div><div wj-part="div-markers"></div><div wj-part="group-status" aria-live="polite" class="'+wijmo_grid_1.FlexGridClsNames.screenReaderOnly+'"></div></div>');return GroupPanel._ctrlTemplate},set:function(e){GroupPanel._ctrlTemplate=e},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"hideGroupedColumns",{get:function(){return this._hideGroupedCols},set:function(e){e!=this._hideGroupedCols&&(this._hideGroupedCols=wijmo_1.asBoolean(e))},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"showDragGlyphs",{get:function(){return this._showDragGlyphs},set:function(e){if(e!=this._showDragGlyphs){this._showDragGlyphs=wijmo_1.asBoolean(e);this.refresh()}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"maxGroups",{get:function(){return this._maxGroups},set:function(e){if(e!=this._maxGroups){this._maxGroups=wijmo_1.asNumber(e);var r=this._gds,t=this._maxGroups;r&&t>-1&&t<r.length&&r.splice(t,r.length-t)}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(e!=this._placeholder){this._placeholder=e;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"grid",{get:function(){return this._g},set:function(e){if((e=wijmo_1.asType(e,wijmo_grid_1.FlexGrid,!0))!=this._g){var r=this._g;this._removeEventForGrid();r=this._g=e;this._hiddenCols=[];if(r){r.draggingColumn.addHandler(this._draggingColumn,this);r.itemsSourceChanging.addHandler(this._itemsSourceChanging,this);r.itemsSourceChanged.addHandler(this._itemsSourceChanged,this);r.columns.collectionChanged.addHandler(this._itemsSourceChanged,this);r.addEventListener(r.hostElement,"dragend",this._dragEndBnd);r.addEventListener(r.hostElement,"keydown",this._keyDownBnd)}this._itemsSourceChanged(r,null)}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"collectionView",{get:function(){return this._g?this._g.collectionView:null},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"filter",{get:function(){return this._filter},set:function(e){if((e=wijmo_1.asType(e,softGridFilter().FlexGridFilter,!0))!=this._filter){var r=this._filter;if(r){r.filterApplied.removeHandler(this.refresh,this);r.filterChanged.removeHandler(this._filterChanged,this)}if(r=this._filter=e){r.filterApplied.addHandler(this.refresh,this);r.filterChanged.addHandler(this._filterChanged,this)}this.refresh()}},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"groupDescriptionCreator",{get:function(){return this._gdc},set:function(e){this._gdc=e},enumerable:!0,configurable:!0});Object.defineProperty(GroupPanel.prototype,"ariaLabel",{get:function(){return this._ariaLabel},set:function(e){if(e!=this._ariaLabel){this._ariaLabel=e;wijmo_1.setAttribute(this.hostElement,"aria-label",this._ariaLabel)}},enumerable:!0,configurable:!0});GroupPanel.prototype.refresh=function(){var r=this;e.prototype.refresh.call(this);this._divMarkers.innerHTML="";this._dragMarker=this._dragCol=null;if(this._gds){var t=0===this._gds.length?"0":"-1";wijmo_1.setAttribute(this.hostElement,"tabindex",t);this._orgTabIndex=+t;for(var i=this._g,o=i.columnHeaders,_loop_1=function(e){var t=n._gds[e],l=-1,s=-1;if(t instanceof wijmo_1.PropertyGroupDescription)for(var a=o.rows.length-1;a>=0&&s<0;a--)for(var u=0;u<o.columns.length&&s<0;u++){if((c=i._getBindingColumn(o,a,o.columns[u]))&&c.binding==t.propertyName){s=u;l=a;break}}if(s>-1&&l>-1){var d=document.createElement("button");d.dataset.groupPanel="true";i.cellFactory.updateCell(n._g.columnHeaders,l,s,d);delete d.dataset.groupPanel;wijmo_1.setAttribute(d,"class",wijmo_grid_1.FlexGridClsNames.cell+" "+wijmo_grid_1.FlexGridClsNames.header+" "+exports.GroupPanelClsNames.groupMarker);wijmo_1.setAttribute(d,"role","button");wijmo_1.setAttribute(d,"tabindex","0");d.removeAttribute("aria-sort");d.removeAttribute("aria-readonly");d.removeAttribute("aria-required");var _=t instanceof wijmo_1.PropertyGroupDescription?t.propertyName:"";n._markerFocusHandler=function(){r._focusGd=t};d.addEventListener("focus",n._markerFocusHandler);n._focusGd===t&&n._focus&&(n._mkfocus=setTimeout((function(){d.focus()}),50));n._markerKeydownHandler=function(e){if((wijmo_1._isMacOS()?e.metaKey:e.ctrlKey)&&("ArrowLeft"===e.key||"ArrowRight"===e.key)){e.preventDefault();var t=Array.from(r._divMarkers.children),i=(n=t.indexOf(d))+("ArrowLeft"===e.key?-1:1);if(i>=0&&i<t.length){r._moveGroupByIndex(n,i);r._newMkFocus=setTimeout((function(){var e=r._divMarkers.children[i];e&&e.focus()}),0)}}var o=Array.from(r._divMarkers.children);if("Delete"!==e.key||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey){var n=o.indexOf(d);switch(e.key){case"ArrowLeft":n>0&&o[n-1].focus();break;case"ArrowRight":n<o.length-1&&o[n+1].focus();break;case"Home":(s=o[0])&&s.focus();e.preventDefault();break;case"End":var l=o[o.length-1];l&&l.focus();e.preventDefault()}}else{var s,a=e.target,u=wijmo_1.closest(a,"."+wijmo_grid_1.FlexGridClsNames.cell),p=r._getElementIndex(u),c=r._getColumnInfoByProperty(_).displayName;r._removeGroup(p);r._announceToScreenReader(wijmo_1.culture.GroupPanel.remove+" "+c);r._filterMarker=null;(s=o[0===p?1:0])?s.focus():r.hostElement.focus()}};d.addEventListener("keydown",n._markerKeydownHandler);wijmo_1.setCss(d,{position:"static",display:"inline-block",verticalAlign:"top",left:"",right:"",top:"",width:"",height:"",paddingLeft:"",paddingRight:""});wijmo_1.removeChild(d.querySelector(".wj-elem-filter"));wijmo_1.removeChild(d.querySelector(".wj-column-selector"));if(n.showDragGlyphs){var p=wijmo_1.createElement("<span class="+wijmo_1.GlyphClsNames.drag+' aria-hidden="true"></span>');d.insertBefore(p,d.firstChild)}var c,h=(c=i._getBindingColumn(o,l,o.columns[s]))?n._getColumnDisplayName(c):_,g=n._getSortStateDescription(_,o,s),m=h;_!==h&&(m+=", grouped by "+_);m+=g;d.setAttribute("aria-label",m+". "+wijmo_1.culture.GroupPanel.groupAction);var f=n._getColumnFilter(c);if(f){var v=wijmo_1.createElement('<span class="wj-filter '+wijmo_1.GlyphClsNames.filter+'"></span>',d);wijmo_1.toggleClass(v,"wj-filter-on",f.isActive);wijmo_1.toggleClass(v,"wj-filter-off",!f.isActive)}wijmo_1.createElement('<span class="'+wijmo_1.UtilitesClsNames.remove+'" aria-hidden="true">×</span>',d);n._divMarkers.appendChild(d);if(c&&n.hideGroupedColumns){var w=[];if(n.grid.layoutDefinition){n.grid.layoutDefinition.forEach((function(e){e.cells.forEach((function(e){w.push(e.binding)}))}))}if(!w.includes(c._binding.path)){c.visible=!1;n._hiddenCols.push(c)}}d[GroupPanel._INDEX_KEY]={row:l,col:s,panel:n}}},n=this,l=0;l<this._gds.length;l++)_loop_1(l);this._divPH.textContent=null!=this._placeholder?this._placeholder:wijmo_1.culture.GroupPanel.dragDrop;var s=this._divMarkers.children.length>0;this._divPH.style.display=s?"none":"";this._divMarkers.style.display=s?"":"none"}};GroupPanel.prototype.hitTest=function(e){var r=e instanceof HTMLElement?e:e instanceof MouseEvent?e.target:null;wijmo_1.assert(null!=r,"MouseEvent or Element expected");var t=wijmo_1.closest(r,"."+wijmo_grid_1.FlexGridClsNames.cell);if(wijmo_1.hasClass(t,wijmo_grid_1.FlexGridClsNames.cell)){var i=this._getElementIndex(t);return this._gds&&i>-1?this._gds[i]:null}return null};GroupPanel.prototype._filterChanged=function(){this._filterMarker=null};GroupPanel.prototype._getColumnFilter=function(e){var r=this._filter,t=null;r&&(t=r.filterColumns&&r.filterColumns.indexOf(e.binding)<0?null:r.getColumnFilter(e));return t};GroupPanel.prototype._getColumnDisplayName=function(e){return e?e.header||e.binding:""};GroupPanel.prototype._getColumnInfoByProperty=function(e){var r=e?this._g.columns.getColumn(e):null;return{col:r,displayName:r?this._getColumnDisplayName(r):e}};GroupPanel.prototype._announceToScreenReader=function(e){this._groupStatus&&(this._groupStatus.textContent=e)};GroupPanel.prototype._getSortStateDescription=function(e,r,t){var i="";if(this._view){var o=this._view.sortDescriptions.find((function(r){return r.property===e}));if(o){i=o.ascending?wijmo_1.culture.GroupPanel.sortedAsc:wijmo_1.culture.GroupPanel.sortedDesc;if(this._view.sortDescriptions.length>1){var n=r.columns[t]&&r.columns[t].currentSortIndex;n>-1&&(i+=" "+wijmo_1.culture.FlexGrid.ariaLabels.sortIndex+" "+(n+1))}}}return i};GroupPanel.prototype._moveGroupByIndex=function(e,r){var t=this,i=this._gds;i&&e>=0&&r>=0&&e<i.length&&r<i.length&&i.deferUpdate((function(){var o=i[e];i.removeAt(e);i.insert(r,o);t.refresh()}))};GroupPanel.prototype._removeGroupByColumn=function(e){for(var r=e.binding,t=this._gds,i=t.length-1;i>=0;i--){var o=t[i];o instanceof wijmo_1.PropertyGroupDescription&&o.propertyName===r&&this._removeGroup(i)}};GroupPanel.prototype._editFilter=function(e){var r=this._gds,t=this._getElementIndex(e),i=r&&t>-1?r[t]:null,o=i instanceof wijmo_1.PropertyGroupDescription?i.propertyName:null,n=o?this._g.getColumn(o):null;n&&this._filter.editColumnFilter(n,null,e)};GroupPanel.prototype._addGroup=function(e,r){var t=this._gds,i=this._maxGroups,o=this._divMarkers.children.length;if(r){o=this._getIndex(r);for(var n=0;n<t.length;n++){var l=t[n];if(l instanceof wijmo_1.PropertyGroupDescription&&l.propertyName==e.binding){t.removeAt(n);n<o&&o--;break}}if(i>-1)for(n=i-1;n<t.length;n++){this._removeGroup(n,t);n<o&&o--}}if(i<0||t.length<i){var s=this._gdc?this._gdc(e.binding):null;s||(s=new wijmo_1.PropertyGroupDescription(e.binding));t.insert(o,s);if(e&&this.hideGroupedColumns){e.visible=!1;this._hiddenCols.push(e)}var a=this._getColumnDisplayName(e);this._announceToScreenReader(format(wijmo_1.culture.GroupPanel.added,a))}};GroupPanel.prototype._moveGroup=function(e,r){var t=this._gds,i=this._getElementIndex(this._dragMarker),o=this._getIndex(r);o>i&&o--;o>=this._gds.length&&(o=this._gds.length);i!=o&&t.deferUpdate((function(){var e=t[i];t.removeAt(i);t.insert(o,e)}))};GroupPanel.prototype._removeGroup=function(e,r){void 0===r&&(r=this._gds);var t=r&&e>-1?r[e]:null,i=t instanceof wijmo_1.PropertyGroupDescription?t.propertyName:null,o=i?this._g.columns.getColumn(i):null;if(o){o.visible=!0;var n=this._hiddenCols,l=n.indexOf(o);l>-1&&n.splice(l,1)}t&&r.removeAt(e)};GroupPanel.prototype._getIndex=function(e){for(var r=e.clientX,t=this._divMarkers.children,i=0;i<t.length;i++){var o=t[i].getBoundingClientRect();if((r-o.left)*(r-o.right)<0)return i}return t.length};GroupPanel.prototype._getElementIndex=function(e){if(e&&e.parentElement)for(var r=e.parentElement.children,t=0;t<r.length;t++)if(r[t]==e)return t;return-1};GroupPanel.prototype._draggingColumn=function(e,r){var t=this._g,i=t._getBindingColumn(r.panel,r.row,t.columns[r.col]);this._dragCol=i.binding?i:null};GroupPanel.prototype._itemsSourceChanging=function(e,r){this._hiddenCols.forEach((function(e){e.visible=!0}));this._hiddenCols=[]};GroupPanel.prototype._itemsSourceChanged=function(e,r){this._view&&this._view.collectionChanged.removeHandler(this._collectionChanged);this._view=this._g?this._g.collectionView:null;this._gds=this._view?this._view.groupDescriptions:null;this._view&&this._view.collectionChanged.addHandler(this._collectionChanged,this);this.invalidate()};GroupPanel.prototype._collectionChanged=function(e,r){r.action==wijmo_1.NotifyCollectionChangedAction.Reset&&this.invalidate()};GroupPanel.prototype._dragStart=function(e){wijmo_1._startDrag(e.dataTransfer,"move");this._dragMarker=e.target;this._dragCol=null};GroupPanel.prototype._dragOver=function(e){if(this._dragCol||this._dragMarker){e.dataTransfer.dropEffect="move";e.preventDefault();e.stopPropagation()}};GroupPanel.prototype._drop=function(e){this._dragMarker?this._moveGroup(this._dragMarker,e):this._dragCol&&this._addGroup(this._dragCol,e)};GroupPanel.prototype._dragEnd=function(e){this._dragMarker=this._dragCol=null};GroupPanel.prototype._keyDown=function(e){if(e.altKey){var r=this._g.selection,t=this._g.columns[r.col],i=this._g.rows[r.row]instanceof wijmo_grid_1.GroupRow;if(t&&"KeyG"===e.code&&!0!==this.isDisabled&&!i){this._addGroup(t,e);e.preventDefault()}}};GroupPanel.prototype._click=function(e){var r=e.target,t=wijmo_1.closest(r,"."+wijmo_grid_1.FlexGridClsNames.cell);if(wijmo_1.hasClass(t,wijmo_grid_1.FlexGridClsNames.cell))if(wijmo_1.hasClass(r,"wj-filter")){if(t!=this._filterMarker){this._editFilter(t);this._filterMarker=t;return}}else if(wijmo_1.hasClass(r,wijmo_1.UtilitesClsNames.remove)){var i=this._getElementIndex(t),o=this._gds&&i>-1?this._gds[i]:null,n=o instanceof wijmo_1.PropertyGroupDescription?o.propertyName:null,l=this._getColumnInfoByProperty(n).displayName;this._removeGroup(i);l&&this._announceToScreenReader(wijmo_1.culture.GroupPanel.remove+" "+l)}else this._updateSort(e,t);this._filterMarker=null};GroupPanel.prototype._updateSort=function(e,r){var t=this._g,i=t.collectionView;if(i&&i.canSort&&t.allowSorting!=wijmo_grid_1.AllowSorting.None){var o=this._getElementIndex(r),n=this._gds[o],l=n instanceof wijmo_1.PropertyGroupDescription?n.propertyName:null,s=l?t.getColumn(l):null;if(s&&s.allowSorting){for(var a=s.sortMemberPath||s.binding,u=-1,d=i.sortDescriptions,_=0;_<d.length;_++)if(d[_].property==a){u=_;break}var p=new wijmo_grid_1.CellRangeEventArgs(t.columnHeaders,new wijmo_grid_1.CellRange(0,s.index),e);if(t.onSortingColumn(p)){var c=e.ctrlKey||e.metaKey,h=e.shiftKey;d.deferUpdate((function(){if(c&&h)d.clear();else if(u<0){t.allowSorting!=wijmo_grid_1.AllowSorting.MultiColumn&&d.clear();var e=null==s.sortOrder?t.sortOrder==wijmo_grid_1.SortOrder.AscDesc||t.sortOrder==wijmo_grid_1.SortOrder.AscDescNone:s.sortOrder==wijmo_grid_1.SortOrder.AscDesc||s.sortOrder==wijmo_grid_1.SortOrder.AscDescNone,r=new wijmo_1.SortDescription(a,e);d.push(r)}else{e=d[u].ascending;var i=null!=s.sortOrder?s.sortOrder:t.sortOrder;if(c||e&&(i===wijmo_grid_1.SortOrder.DescAscNone||t.isTouching&&i===wijmo_grid_1.SortOrder.DescAsc)||!e&&(i===wijmo_grid_1.SortOrder.AscDescNone||t.isTouching&&i===wijmo_grid_1.SortOrder.AscDesc))d.splice(u,1);else{r=new wijmo_1.SortDescription(a,!e);d.splice(u,1,r)}}}));t.onSortedColumn(p)}}}};GroupPanel.prototype._removeEventForGrid=function(){var e=this._g;if(e){e.draggingColumn.removeHandler(this._draggingColumn);e.itemsSourceChanging.removeHandler(this._itemsSourceChanging);e.itemsSourceChanged.removeHandler(this._itemsSourceChanged);e.columns.collectionChanged.removeHandler(this._itemsSourceChanged);e.removeEventListener(e.hostElement,"dragend",this._dragEndBnd);e.removeEventListener(e.hostElement,"keydown",this._keyDownBnd)}};GroupPanel.prototype.dispose=function(){var r=this;this._removeEventForGrid();this._g=null;this._divMarkers.querySelectorAll("."+wijmo_grid_1.FlexGridClsNames.cell).forEach((function(e){e.removeEventListener("keydown",r._markerKeydownHandler);e.removeEventListener("focus",r._markerFocusHandler);e.removeAttribute("draggable")}));this._view&&this._view.collectionChanged.removeHandler(this._collectionChanged);this._focusGd=null;this._dragMarker=null;this._dragCol=null;this._filterMarker=null;this._divPH=null;this._groupStatus=null;if(this._divMarkers){this._divMarkers.innerHTML="";this._divMarkers=null}if(this._mkfocus){clearTimeout(this._mkfocus);this._mkfocus=null}if(this._newMkFocus){clearTimeout(this._newMkFocus);this._newMkFocus=null}e.prototype.dispose.call(this)};GroupPanel._ctrlTemplate="";GroupPanel._INDEX_KEY=wijmo_grid_1.FlexGridClsNames.cellIndex;return GroupPanel}(wijmo_1.Control);exports.GroupPanel=GroupPanel;function format(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce((function(e,r,t){return e.replace(new RegExp("\\{"+t+"\\}","g"),r)}),e)}wijmo_1._registerModule("wijmo.grid.grouppanel",selfModule);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t014601
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -260,7 +260,7 @@ export declare class ImmutabilityProvider<T = any> {
|
|
|
260
260
|
/**
|
|
261
261
|
* Removes all items from the target array, and adds items into it from the source array.
|
|
262
262
|
* Returns the target array.
|
|
263
|
-
|
|
263
|
+
*/
|
|
264
264
|
private _replaceItems;
|
|
265
265
|
private _cloneItem;
|
|
266
266
|
private _cloneBindings;
|
package/wijmo.grid.immutable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t014601
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
"use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var 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 DataChangeAction,wijmo_1=require("wijmo/wijmo"),wijmo_grid_1=require("wijmo/wijmo.grid"),selfModule=__importStar(require("wijmo/wijmo.grid.immutable")),DataChangeEventArgs=function(t){__extends(DataChangeEventArgs,t);function DataChangeEventArgs(e,i,n,r){var o=t.call(this)||this;o.action=e;o.oldItem=i;o.newItem=n;o.itemIndex=r;return o}return DataChangeEventArgs}(wijmo_1.EventArgs);exports.DataChangeEventArgs=DataChangeEventArgs;!function(t){t[t.Add=0]="Add";t[t.Remove=1]="Remove";t[t.Change=2]="Change"}(DataChangeAction=exports.DataChangeAction||(exports.DataChangeAction={}));var CloningItemEventArgs=function(t){__extends(CloningItemEventArgs,t);function CloningItemEventArgs(e){var i=t.call(this)||this;i._originalItem=e;return i}Object.defineProperty(CloningItemEventArgs.prototype,"originalItem",{get:function(){return this._originalItem},enumerable:!0,configurable:!0});return CloningItemEventArgs}(wijmo_1.EventArgs);exports.CloningItemEventArgs=CloningItemEventArgs;var ImmutabilityProvider=function(){function ImmutabilityProvider(t,e){this._isAddNew=!1;this._isPasting=!1;this.dataChanged=new wijmo_1.Event;this.cloningItem=new wijmo_1.Event;wijmo_1.assert(t instanceof wijmo_grid_1.FlexGrid,"FlexGrid component is not specified.");this._grid=t;if(!this._isTransposedGrid()){
|
|
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 DataChangeAction,wijmo_1=require("wijmo/wijmo"),wijmo_grid_1=require("wijmo/wijmo.grid"),selfModule=__importStar(require("wijmo/wijmo.grid.immutable")),DataChangeEventArgs=function(t){__extends(DataChangeEventArgs,t);function DataChangeEventArgs(e,i,n,r){var o=t.call(this)||this;o.action=e;o.oldItem=i;o.newItem=n;o.itemIndex=r;return o}return DataChangeEventArgs}(wijmo_1.EventArgs);exports.DataChangeEventArgs=DataChangeEventArgs;!function(t){t[t.Add=0]="Add";t[t.Remove=1]="Remove";t[t.Change=2]="Change"}(DataChangeAction=exports.DataChangeAction||(exports.DataChangeAction={}));var CloningItemEventArgs=function(t){__extends(CloningItemEventArgs,t);function CloningItemEventArgs(e){var i=t.call(this)||this;i._originalItem=e;return i}Object.defineProperty(CloningItemEventArgs.prototype,"originalItem",{get:function(){return this._originalItem},enumerable:!0,configurable:!0});return CloningItemEventArgs}(wijmo_1.EventArgs);exports.CloningItemEventArgs=CloningItemEventArgs;var ImmutabilityProvider=function(){function ImmutabilityProvider(t,e){this._isAddNew=!1;this._isPasting=!1;this.dataChanged=new wijmo_1.Event;this.cloningItem=new wijmo_1.Event;wijmo_1.assert(t instanceof wijmo_grid_1.FlexGrid,"FlexGrid component is not specified.");this._grid=t;if(!this._isTransposedGrid()){this._cv=new wijmo_1.CollectionView([]);t.itemsSource=this._cv}t.rowAdded.addHandler(this._gridRowAdded,this);t.deletingRow.addHandler(this._gridDeletingRow,this);t.deletedRow.addHandler(this._gridDeletedRow,this);t.beginningEdit.addHandler(this._gridBeginningEdit,this);t.rowEditEnded.addHandler(this._gridRowEditEnded,this);t.pasting.addHandler(this._gridPasting,this);t.pasted.addHandler(this._gridPasted,this);wijmo_1.copy(this,e)}ImmutabilityProvider.prototype._clearChg=function(){this._isAddNew=this._isPasting=!1;this._chg=this._iChg=null};Object.defineProperty(ImmutabilityProvider.prototype,"grid",{get:function(){return this._grid},enumerable:!0,configurable:!0});Object.defineProperty(ImmutabilityProvider.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0});Object.defineProperty(ImmutabilityProvider.prototype,"itemsSource",{get:function(){return this._items},set:function(t){wijmo_1.assert(null==t||wijmo_1.isArray(t),"Not an array");if(t!==this._items){this._items=t;if(this._isTransposedGrid()){var e=this._grid.selection.clone();this._grid.itemsSource=t;this._cv=this._grid.collectionView;this._grid.selection=e}else{var i=this._cv,n=i.sourceCollection,r=i.currentPosition,o=i.currentItem;this._replaceItems(n,t);i.refresh();if(r===i.currentPosition&&o!==i.currentItem){var s=new wijmo_1.CancelEventArgs;i.onCurrentChanging(s);i.onCurrentChanged(s)}}}},enumerable:!0,configurable:!0});ImmutabilityProvider.prototype.onDataChanged=function(t){this.dataChanged.raise(this,t)};ImmutabilityProvider.prototype.onCloningItem=function(t){this.cloningItem.raise(this,t)};ImmutabilityProvider.prototype._gridRowAdded=function(t,e){this._isPasting||(this._isAddNew=!0)};ImmutabilityProvider.prototype._gridDeletingRow=function(t,e){if(!this._isAddNew){var i,n;if(!this._isTransposedGrid()){var r=e.getRow();i=r.dataItem;(n=this._dataIndex(r))>-1&&null!=i&&(this._iChg={oldItem:i,index:n})}}};ImmutabilityProvider.prototype._gridDeletedRow=function(t,e){var i=this._iChg,n=this._isAddNew;if(i){this._clearChg();n||this.onDataChanged(new DataChangeEventArgs(DataChangeAction.Remove,i.oldItem,null,i.index))}};ImmutabilityProvider.prototype._gridBeginningEdit=function(t,e){if(!this._isAddNew){var i,n,r=e.getRow();if(this._isTransposedGrid()){var o=this._getTransposedItemAndIndex(e);i=o.item;n=o.index}else{i=r.dataItem;n=this._cv.sourceCollection.indexOf(i)}if(!(n<0||null==i)){var s=this._chg;if(s){if(s.changedItems[n])return}else s=this._chg={changedItems:{}};this._addItemChange(r.index,n)}}};ImmutabilityProvider.prototype._gridRowEditEnded=function(t,e){this._isPasting||this._doRowEditEnded(t,e)};ImmutabilityProvider.prototype._doRowEditEnded=function(t,e){var i=this._isAddNew,n=this._chg;this._clearChg();if(i){if(!e.cancel){var r=this._cv.sourceCollection,o=r[r.length-1];this.onDataChanged(new DataChangeEventArgs(DataChangeAction.Add,null,o,r.length-1))}}else if(n)if(e.cancel)if(this._isTransposedGrid()){var s=n.changedItems,a=this._getSourceItems();for(var d in s){a[(c=s[d]).index]=c.oldItem}this._grid.invalidate()}else{var l=e.getRow();this._swapBatchedItems(l,n.changedItems)>1&&this._cv.refresh()}else{s=n.changedItems;for(var d in s){var c=s[d];this.onDataChanged(new DataChangeEventArgs(DataChangeAction.Change,c.oldItem,c.newItem,c.index))}}};ImmutabilityProvider.prototype._gridPasting=function(t,e){this._isPasting=!0;var i=e.range.rowSpan;if(this._isTransposedGrid()&&1!==i){e.cancel=!0;this._isPasting=!1}else if(this._chg&&1!==i)e.cancel=!0;else if(1!==i){var n=this._grid.rows,r=e.range.topRow,o=e.range.bottomRow,s=Math.min(n.length-1,o),a=this._cv.sourceCollection;this._chg={changedItems:{},cvLength:a.length};for(var d=r;d<=s;d++){var l=this._dataIndex(n[d]);l>-1&&this._addItemChange(d,l)}}else{this._isPasting=!1;e.getRow()instanceof wijmo_grid_1._NewRowTemplate||this._gridBeginningEdit(t,e)}};ImmutabilityProvider.prototype._gridPasted=function(t,e){var i=this._chg;if(i&&1!==e.range.rowSpan){var n=this._cv.sourceCollection,r=i.cvLength,o=n.slice(r,n.length);this._doRowEditEnded(t,e);for(var s=0;s<o.length;s++)this.onDataChanged(new DataChangeEventArgs(DataChangeAction.Add,null,o[s],r+s))}};ImmutabilityProvider.prototype._swapItem=function(t,e,i,n){var r=t;r&&r.dataItem===n||this._grid.rows.some((function(t){return t.dataItem===n&&!!(r=t)}));var o=this._cv,s=o.sourceCollection.indexOf(n),a=o.items.indexOf(n);e.dataItem=i;r&&(r.dataItem=i);o.sourceCollection[s]=i;o.items[a]=i;return s};ImmutabilityProvider.prototype._swapBatchedItems=function(t,e){var i=Object.keys(e),n=i.length;n>1&&(t=null);for(var r=0,o=i;r<o.length;r++){var s=e[o[r]];this._swapItem(t,s.row,s.oldItem,s.newItem)}return n};ImmutabilityProvider.prototype._addItemChange=function(t,e){if(this._isTransposedGrid()){var i=this._getSourceItems(),n=i[e],r=this._cloneItem(n);this._chg.changedItems[e]={row:null,oldItem:n,newItem:r,index:e};i[e]=r;this._grid.invalidate()}else{var o=this._grid.rows[t];n=o.dataItem,r=this._cloneItem(n);null==e&&(e=this._cv.sourceCollection.indexOf(n));this._chg.changedItems[e]={row:o,oldItem:n,newItem:r,index:e};this._swapItem(o,o,r,n)}};ImmutabilityProvider.prototype._dataIndex=function(t){var e=t.dataItem;return e&&!(t instanceof wijmo_grid_1.GroupRow||t instanceof wijmo_grid_1._NewRowTemplate)?this._cv.sourceCollection.indexOf(e):-1};ImmutabilityProvider.prototype._isTransposedGrid=function(){return this._grid._isTransposed()};ImmutabilityProvider.prototype._getSourceItems=function(){if(this._isTransposedGrid()){var t=this._grid;if(t._sourceItems){if(wijmo_1.isArray(t._sourceItems))return t._sourceItems;var e=wijmo_1.tryCast(t._sourceItems,"ICollectionView");if(e)return e.items}}return this._cv.sourceCollection};ImmutabilityProvider.prototype._getTransposedItemAndIndex=function(t){var e=t.col,i=this._getSourceItems();return e<0||e>=i.length?{item:null,index:-1}:{item:i[e],index:e}};ImmutabilityProvider.prototype._replaceItems=function(t,e){t.splice(0,t.length);t.length=e.length;for(var i=e.length,n=0;n<i;n++)t[n]=e[n];return t};ImmutabilityProvider.prototype._cloneItem=function(t){var e=new CloningItemEventArgs(t);this.onCloningItem(e);var i=e.clonedItem;null==i&&(i=this._cloneBindings(t));return i};ImmutabilityProvider.prototype._cloneBindings=function(t){for(var e=copyObject({},t),i={},n=0,r=this.grid.columns;n<r.length;n++){var o=r[n]._binding,s=o&&o._parts;if(s&&s.length>1)for(var a=s.length-2,d=i,l=0;l<=a;l++){var c=s[l];d[c]||(d[c]={});d=d[c]}}this._cloneProps(e,i);return e};ImmutabilityProvider.prototype._cloneProps=function(t,e){for(var i in e){var n=t[i];if(null!=n)if(wijmo_1.isArray(n)){var r=[].concat(n);t[i]=r;this._cloneProps(r,e[i])}else if(wijmo_1.isObject(n)){r=copyObject({},n);t[i]=r;this._cloneProps(r,e[i])}}};return ImmutabilityProvider}();exports.ImmutabilityProvider=ImmutabilityProvider;function copyObject(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return _copyImpl.apply(void 0,[t].concat(e))}exports.copyObject=copyObject;var _copyImpl="function"==typeof Object.assign?Object.assign:function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var n=0,r=e;n<r.length;n++){var o=r[n];if(null!=o)for(var s in o){var a=Object.getOwnPropertyDescriptor(t,s);a&&!a.writable||(t[s]=o[s])}}return t};wijmo_1._registerModule("wijmo.grid.immutable",selfModule);
|