@revolist/revogrid 3.0.98 → 3.0.99
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/custom-element/index.js +61 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/revo-grid.cjs.js +1 -1
- package/dist/cjs/revo-grid_11.cjs.entry.js +37 -13
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +23 -5
- package/dist/collection/components/data/revogr-data-style.css +8 -0
- package/dist/collection/components/header/revogr-header-style.css +8 -0
- package/dist/collection/components/overlay/editors/text.js +1 -1
- package/dist/collection/components/overlay/revogr-edit-style.css +8 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +8 -0
- package/dist/collection/components/revo-grid/revo-grid-style.css +8 -0
- package/dist/collection/components/revo-grid/revo-grid.js +30 -3
- package/dist/collection/components/revo-grid/viewport.service.js +3 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +8 -0
- package/dist/collection/components/scrollable/revogr-scroll-style.css +8 -0
- package/dist/collection/components/selection-focus/revogr-focus-style.css +8 -0
- package/dist/collection/components/selection-temp-range/revogr-temp-range-style.css +8 -0
- package/dist/collection/plugins/filter/conditions/equal.js +1 -1
- package/dist/collection/plugins/filter/filter.plugin.js +11 -1
- package/dist/collection/plugins/filter/filter.pop.js +46 -6
- package/dist/collection/plugins/filter/filter.style.css +14 -1
- package/dist/collection/services/selection.store.connector.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/revo-grid.js +1 -1
- package/dist/esm/revo-grid_11.entry.js +37 -13
- package/dist/esm/revogr-filter-panel.entry.js +23 -5
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/revo-grid.js +1 -1
- package/dist/esm-es5/revo-grid_11.entry.js +1 -1
- package/dist/esm-es5/revogr-filter-panel.entry.js +1 -1
- package/dist/revo-grid/revo-grid.esm.js +1 -1
- package/dist/revo-grid/revo-grid.system.js +1 -1
- package/dist/revo-grid/revo-grid_11.entry.js +1 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
- package/dist/revo-grid/revogr-filter-panel.system.entry.js +1 -1
- package/dist/types/components/revo-grid/revo-grid.d.ts +5 -1
- package/dist/types/components/revo-grid/viewport.service.d.ts +1 -0
- package/dist/types/components.d.ts +8 -2
- package/dist/types/plugins/filter/filter.plugin.d.ts +12 -0
- package/dist/types/plugins/filter/filter.pop.d.ts +5 -0
- package/dist/types/services/selection.store.connector.d.ts +1 -0
- package/package.json +1 -1
|
@@ -28,13 +28,19 @@ const RevoButton = (props, children) => {
|
|
|
28
28
|
}
|
|
29
29
|
})();
|
|
30
30
|
|
|
31
|
-
const filterStyleCss = ".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-filter-panel{position:absolute;display:block;top:0;left:0;z-index:100;opacity:1;transform:none;background-color:#fff;transform-origin:62px 0px;box-shadow:0 5px 18px -2px rgba(0, 0, 0, 0.2);padding:10px;border-radius:4px;min-width:150px;text-align:left}revogr-filter-panel label{color:gray;font-size:13px;font-weight:600;display:block;padding:8px 0}revogr-filter-panel select{width:100%}revogr-filter-panel input[type=text]{border:0;min-height:34px;margin:5px 0;background:#f3f3f3;border-radius:5px;padding:0 10px;box-sizing:border-box}revogr-filter-panel button{margin-top:10px;margin-right:5px}.rgHeaderCell:hover .rv-filter{transition:opacity 267ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 178ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.rgHeaderCell:hover .rv-filter,.rgHeaderCell .rv-filter.active{opacity:1}.rgHeaderCell .rv-filter{height:24px;width:24px;background:none;border:0;opacity:0;visibility:visible;cursor:pointer;border-radius:4px}.rgHeaderCell .rv-filter.active{color:#10224a}.rgHeaderCell .rv-filter .filter-img{color:gray;width:11px}.select-css{display:block;font-family:sans-serif;font-weight:600;color:#444;line-height:1.3;padding:0.6em 1.4em 0.5em 0.8em;width:100%;max-width:100%;box-sizing:border-box;margin:0;border:1px solid #f1f1f1;box-shadow:transparent;border-radius:0.5em;appearance:none;background-color:#fff;background-image:url(\"data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E\"), linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);background-repeat:no-repeat, repeat;background-position:right 0.7em top 50%, 0 0;background-size:0.65em auto, 100%;}.select-css::-ms-expand{display:none}.select-css:hover{border-color:#c5c5c5}.select-css:focus{border-color:#f1f1f1;box-shadow:0 0 1px 3px rgba(59, 153, 252, 0.7);box-shadow:0 0 0 3px -moz-mac-focusring;color:#222;outline:none}.select-css option{font-weight:normal}.select-css:disabled,.select-css[aria-disabled=true]{color:gray;background-image:url(\"data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E\"), linear-gradient(to bottom, #ffffff 0%, #ffffff 100%)}.select-css:disabled:hover,.select-css[aria-disabled=true]{border-color:#f1f1f1}";
|
|
31
|
+
const filterStyleCss = ".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-filter-panel{position:absolute;display:block;top:0;left:0;z-index:100;opacity:1;transform:none;background-color:#fff;transform-origin:62px 0px;box-shadow:0 5px 18px -2px rgba(0, 0, 0, 0.2);padding:10px;border-radius:4px;min-width:220px;text-align:left}revogr-filter-panel label{color:gray;font-size:13px;font-weight:600;display:block;padding:8px 0}revogr-filter-panel select{width:100%}revogr-filter-panel input[type=text]{border:0;min-height:34px;margin:5px 0;background:#f3f3f3;border-radius:5px;padding:0 10px;box-sizing:border-box;width:100%}revogr-filter-panel button{margin-top:10px;margin-right:5px}.rgHeaderCell:hover .rv-filter{transition:opacity 267ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 178ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.rgHeaderCell:hover .rv-filter,.rgHeaderCell .rv-filter.active{opacity:1}.rgHeaderCell .rv-filter{height:24px;width:24px;background:none;border:0;opacity:0;visibility:visible;cursor:pointer;border-radius:4px}.rgHeaderCell .rv-filter.active{color:#10224a}.rgHeaderCell .rv-filter .filter-img{color:gray;width:11px}.center{text-align:center}.select-css{display:block;font-family:sans-serif;font-weight:600;color:#444;line-height:1.3;padding:0.6em 1.4em 0.5em 0.8em;width:100%;max-width:100%;box-sizing:border-box;margin:0;border:1px solid #f1f1f1;box-shadow:transparent;border-radius:0.5em;appearance:none;background-color:#fff;background-image:url(\"data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E\"), linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);background-repeat:no-repeat, repeat;background-position:right 0.7em top 50%, 0 0;background-size:0.65em auto, 100%;}.select-css::-ms-expand{display:none}.select-css:hover{border-color:#c5c5c5}.select-css:focus{border-color:#f1f1f1;box-shadow:0 0 1px 3px rgba(59, 153, 252, 0.7);box-shadow:0 0 0 3px -moz-mac-focusring;color:#222;outline:none}.select-css option{font-weight:normal}.select-css:disabled,.select-css[aria-disabled=true]{color:gray;background-image:url(\"data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E\"), linear-gradient(to bottom, #ffffff 0%, #ffffff 100%)}.select-css:disabled:hover,.select-css[aria-disabled=true]{border-color:#f1f1f1}";
|
|
32
32
|
|
|
33
33
|
const defaultType = 'none';
|
|
34
34
|
const FilterPanel = class {
|
|
35
35
|
constructor(hostRef) {
|
|
36
36
|
index.registerInstance(this, hostRef);
|
|
37
37
|
this.filterChange = index.createEvent(this, "filterChange", 7);
|
|
38
|
+
this.filterCaptionsInternal = {
|
|
39
|
+
title: "Filter by condition",
|
|
40
|
+
save: "Save",
|
|
41
|
+
reset: "Reset",
|
|
42
|
+
cancel: "Cancel",
|
|
43
|
+
};
|
|
38
44
|
this.filterTypes = {};
|
|
39
45
|
this.filterNames = {};
|
|
40
46
|
this.filterEntities = {};
|
|
@@ -83,7 +89,8 @@ const FilterPanel = class {
|
|
|
83
89
|
left: `${this.changes.x}px`,
|
|
84
90
|
top: `${this.changes.y}px`,
|
|
85
91
|
};
|
|
86
|
-
|
|
92
|
+
const capts = Object.assign(this.filterCaptionsInternal, this.filterCaptions);
|
|
93
|
+
return (index.h(index.Host, { style: style }, index.h("label", null, capts.title), index.h("select", { class: "select-css", onChange: e => this.onFilterChange(e) }, this.renderConditions(this.changes.type)), index.h("div", null, this.renderExtra(this.filterEntities[this.changes.type].extra, this.changes.value)), index.h("div", { class: "center" }, index.h(RevoButton, { class: { green: true }, onClick: () => this.onSave() }, capts.save), index.h(RevoButton, { class: { red: true }, onClick: () => this.onReset() }, capts.reset), index.h(RevoButton, { class: { light: true }, onClick: () => this.onCancel() }, capts.cancel))));
|
|
87
94
|
}
|
|
88
95
|
onFilterChange(e) {
|
|
89
96
|
if (!this.changes) {
|
|
@@ -110,9 +117,7 @@ const FilterPanel = class {
|
|
|
110
117
|
}
|
|
111
118
|
onSave() {
|
|
112
119
|
var _a, _b;
|
|
113
|
-
|
|
114
|
-
throw new Error('Changes required per edit');
|
|
115
|
-
}
|
|
120
|
+
this.assertChanges();
|
|
116
121
|
this.filterChange.emit({
|
|
117
122
|
prop: this.changes.prop,
|
|
118
123
|
type: this.changes.type,
|
|
@@ -120,6 +125,19 @@ const FilterPanel = class {
|
|
|
120
125
|
});
|
|
121
126
|
this.changes = undefined;
|
|
122
127
|
}
|
|
128
|
+
onReset() {
|
|
129
|
+
this.assertChanges();
|
|
130
|
+
this.filterChange.emit({
|
|
131
|
+
prop: this.changes.prop,
|
|
132
|
+
type: "none",
|
|
133
|
+
});
|
|
134
|
+
this.changes = void 0;
|
|
135
|
+
}
|
|
136
|
+
assertChanges() {
|
|
137
|
+
if (!this.changes) {
|
|
138
|
+
throw new Error('Changes required per edit');
|
|
139
|
+
}
|
|
140
|
+
}
|
|
123
141
|
isOutside(e) {
|
|
124
142
|
if (e.classList.contains(`[uuid="${this.uuid}"]`)) {
|
|
125
143
|
return false;
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -53,6 +53,14 @@
|
|
|
53
53
|
background-color: #2ee072;
|
|
54
54
|
border: 1px solid #20d565;
|
|
55
55
|
}
|
|
56
|
+
.revo-button.red {
|
|
57
|
+
background-color: #E0662E;
|
|
58
|
+
border: 1px solid #d55920;
|
|
59
|
+
}
|
|
60
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
61
|
+
cursor: not-allowed !important;
|
|
62
|
+
filter: opacity(0.35) !important;
|
|
63
|
+
}
|
|
56
64
|
.revo-button.light {
|
|
57
65
|
border: 2px solid #cedefa;
|
|
58
66
|
line-height: 32px;
|
|
@@ -18,7 +18,7 @@ export class TextEditor {
|
|
|
18
18
|
onKeyDown(e) {
|
|
19
19
|
const isEnter = isEnterKey(e.code);
|
|
20
20
|
const isKeyTab = isTab(e.code);
|
|
21
|
-
if ((isKeyTab || isEnter) && e.target && this.saveCallback) {
|
|
21
|
+
if ((isKeyTab || isEnter) && e.target && this.saveCallback && !e.isComposing) {
|
|
22
22
|
// blur is needed to avoid autoscroll
|
|
23
23
|
this.editInput.blur();
|
|
24
24
|
// request callback which will close cell after all
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -273,12 +273,19 @@ export class RevoGridComponent {
|
|
|
273
273
|
return [...this.internalPlugins];
|
|
274
274
|
}
|
|
275
275
|
/**
|
|
276
|
-
* Get
|
|
276
|
+
* Get the currently focused cell.
|
|
277
277
|
*/
|
|
278
278
|
async getFocused() {
|
|
279
279
|
var _a;
|
|
280
280
|
return (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getFocused();
|
|
281
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* Get the currently selected Range.
|
|
284
|
+
*/
|
|
285
|
+
async getSelectedRange() {
|
|
286
|
+
var _a;
|
|
287
|
+
return (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getSelectedRange();
|
|
288
|
+
}
|
|
282
289
|
// --------------------------------------------------------------------------
|
|
283
290
|
//
|
|
284
291
|
// Listeners outside scope
|
|
@@ -965,7 +972,7 @@ export class RevoGridComponent {
|
|
|
965
972
|
"mutable": false,
|
|
966
973
|
"complexType": {
|
|
967
974
|
"original": "boolean | ColumnFilterConfig",
|
|
968
|
-
"resolved": "boolean | { collection?: FilterCollection; include?: string[]; customFilters?: Record<string, CustomFilter>; }",
|
|
975
|
+
"resolved": "boolean | { collection?: FilterCollection; include?: string[]; customFilters?: Record<string, CustomFilter>; localization?: FilterLocalization; }",
|
|
969
976
|
"references": {
|
|
970
977
|
"ColumnFilterConfig": {
|
|
971
978
|
"location": "import",
|
|
@@ -2061,7 +2068,27 @@ export class RevoGridComponent {
|
|
|
2061
2068
|
"return": "Promise<FocusedData>"
|
|
2062
2069
|
},
|
|
2063
2070
|
"docs": {
|
|
2064
|
-
"text": "Get
|
|
2071
|
+
"text": "Get the currently focused cell.",
|
|
2072
|
+
"tags": []
|
|
2073
|
+
}
|
|
2074
|
+
},
|
|
2075
|
+
"getSelectedRange": {
|
|
2076
|
+
"complexType": {
|
|
2077
|
+
"signature": "() => Promise<Selection.RangeArea | null>",
|
|
2078
|
+
"parameters": [],
|
|
2079
|
+
"references": {
|
|
2080
|
+
"Promise": {
|
|
2081
|
+
"location": "global"
|
|
2082
|
+
},
|
|
2083
|
+
"Selection": {
|
|
2084
|
+
"location": "import",
|
|
2085
|
+
"path": "../../interfaces"
|
|
2086
|
+
}
|
|
2087
|
+
},
|
|
2088
|
+
"return": "Promise<RangeArea>"
|
|
2089
|
+
},
|
|
2090
|
+
"docs": {
|
|
2091
|
+
"text": "Get the currently selected Range.",
|
|
2065
2092
|
"tags": []
|
|
2066
2093
|
}
|
|
2067
2094
|
}
|
|
@@ -194,6 +194,9 @@ export default class ViewportService {
|
|
|
194
194
|
rowType
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
+
getSelectedRange() {
|
|
198
|
+
return this.sv.selectionStoreConnector.selectedRange;
|
|
199
|
+
}
|
|
197
200
|
setEdit(rowIndex, colIndex, colType, rowType) {
|
|
198
201
|
var _a;
|
|
199
202
|
const stores = this.storesByType;
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -5,7 +5,7 @@ const eq = (value, extra) => {
|
|
|
5
5
|
if (typeof value !== 'string') {
|
|
6
6
|
value = JSON.stringify(value);
|
|
7
7
|
}
|
|
8
|
-
return value.toLocaleLowerCase() === extra;
|
|
8
|
+
return value.toLocaleLowerCase() === extra.toString().toLocaleLowerCase();
|
|
9
9
|
};
|
|
10
10
|
export const notEq = (value, extra) => !eq(value, extra);
|
|
11
11
|
notEq.extra = 'input';
|
|
@@ -5,6 +5,7 @@ import { filterEntities, filterNames, filterTypes } from './filter.service';
|
|
|
5
5
|
export const FILTER_TRIMMED_TYPE = 'filter';
|
|
6
6
|
export default class FilterPlugin extends BasePlugin {
|
|
7
7
|
constructor(revogrid, uiid, config) {
|
|
8
|
+
var _a;
|
|
8
9
|
super(revogrid);
|
|
9
10
|
this.revogrid = revogrid;
|
|
10
11
|
this.filterCollection = {};
|
|
@@ -23,7 +24,7 @@ export default class FilterPlugin extends BasePlugin {
|
|
|
23
24
|
this.addEventListener('headerclick', headerclick);
|
|
24
25
|
this.addEventListener('aftersourceset', aftersourceset);
|
|
25
26
|
this.revogrid.registerVNode([
|
|
26
|
-
h("revogr-filter-panel", { uuid: `filter-${uiid}`, filterNames: this.possibleFilterNames, filterEntities: this.possibleFilterEntities, onFilterChange: e => this.onFilterChange(e.detail), ref: e => (this.pop = e) }),
|
|
27
|
+
h("revogr-filter-panel", { uuid: `filter-${uiid}`, filterNames: this.possibleFilterNames, filterEntities: this.possibleFilterEntities, filterCaptions: (_a = config.localization) === null || _a === void 0 ? void 0 : _a.captions, onFilterChange: e => this.onFilterChange(e.detail), ref: e => (this.pop = e) }),
|
|
27
28
|
]);
|
|
28
29
|
}
|
|
29
30
|
initConfig(config) {
|
|
@@ -59,6 +60,15 @@ export default class FilterPlugin extends BasePlugin {
|
|
|
59
60
|
this.possibleFilters = filters;
|
|
60
61
|
}
|
|
61
62
|
}
|
|
63
|
+
if (config.localization) {
|
|
64
|
+
if (config.localization.filterNames) {
|
|
65
|
+
Object.entries(config.localization.filterNames).forEach(([k, v]) => {
|
|
66
|
+
if (this.possibleFilterNames[k] != void 0) {
|
|
67
|
+
this.possibleFilterNames[k] = v;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
62
72
|
}
|
|
63
73
|
async headerclick(e) {
|
|
64
74
|
var _a;
|
|
@@ -5,6 +5,12 @@ import '../../utils/closestPolifill';
|
|
|
5
5
|
const defaultType = 'none';
|
|
6
6
|
export class FilterPanel {
|
|
7
7
|
constructor() {
|
|
8
|
+
this.filterCaptionsInternal = {
|
|
9
|
+
title: "Filter by condition",
|
|
10
|
+
save: "Save",
|
|
11
|
+
reset: "Reset",
|
|
12
|
+
cancel: "Cancel",
|
|
13
|
+
};
|
|
8
14
|
this.filterTypes = {};
|
|
9
15
|
this.filterNames = {};
|
|
10
16
|
this.filterEntities = {};
|
|
@@ -53,12 +59,15 @@ export class FilterPanel {
|
|
|
53
59
|
left: `${this.changes.x}px`,
|
|
54
60
|
top: `${this.changes.y}px`,
|
|
55
61
|
};
|
|
62
|
+
const capts = Object.assign(this.filterCaptionsInternal, this.filterCaptions);
|
|
56
63
|
return (h(Host, { style: style },
|
|
57
|
-
h("label", null,
|
|
64
|
+
h("label", null, capts.title),
|
|
58
65
|
h("select", { class: "select-css", onChange: e => this.onFilterChange(e) }, this.renderConditions(this.changes.type)),
|
|
59
66
|
h("div", null, this.renderExtra(this.filterEntities[this.changes.type].extra, this.changes.value)),
|
|
60
|
-
h(
|
|
61
|
-
|
|
67
|
+
h("div", { class: "center" },
|
|
68
|
+
h(RevoButton, { class: { green: true }, onClick: () => this.onSave() }, capts.save),
|
|
69
|
+
h(RevoButton, { class: { red: true }, onClick: () => this.onReset() }, capts.reset),
|
|
70
|
+
h(RevoButton, { class: { light: true }, onClick: () => this.onCancel() }, capts.cancel))));
|
|
62
71
|
}
|
|
63
72
|
onFilterChange(e) {
|
|
64
73
|
if (!this.changes) {
|
|
@@ -85,9 +94,7 @@ export class FilterPanel {
|
|
|
85
94
|
}
|
|
86
95
|
onSave() {
|
|
87
96
|
var _a, _b;
|
|
88
|
-
|
|
89
|
-
throw new Error('Changes required per edit');
|
|
90
|
-
}
|
|
97
|
+
this.assertChanges();
|
|
91
98
|
this.filterChange.emit({
|
|
92
99
|
prop: this.changes.prop,
|
|
93
100
|
type: this.changes.type,
|
|
@@ -95,6 +102,19 @@ export class FilterPanel {
|
|
|
95
102
|
});
|
|
96
103
|
this.changes = undefined;
|
|
97
104
|
}
|
|
105
|
+
onReset() {
|
|
106
|
+
this.assertChanges();
|
|
107
|
+
this.filterChange.emit({
|
|
108
|
+
prop: this.changes.prop,
|
|
109
|
+
type: "none",
|
|
110
|
+
});
|
|
111
|
+
this.changes = void 0;
|
|
112
|
+
}
|
|
113
|
+
assertChanges() {
|
|
114
|
+
if (!this.changes) {
|
|
115
|
+
throw new Error('Changes required per edit');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
98
118
|
isOutside(e) {
|
|
99
119
|
if (e.classList.contains(`[uuid="${this.uuid}"]`)) {
|
|
100
120
|
return false;
|
|
@@ -189,6 +209,26 @@ export class FilterPanel {
|
|
|
189
209
|
"text": ""
|
|
190
210
|
},
|
|
191
211
|
"defaultValue": "{}"
|
|
212
|
+
},
|
|
213
|
+
"filterCaptions": {
|
|
214
|
+
"type": "unknown",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "FilterCaptions | undefined",
|
|
218
|
+
"resolved": "{ title: string; save: string; reset: string; cancel: string; }",
|
|
219
|
+
"references": {
|
|
220
|
+
"FilterCaptions": {
|
|
221
|
+
"location": "import",
|
|
222
|
+
"path": "./filter.plugin"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": ""
|
|
231
|
+
}
|
|
192
232
|
}
|
|
193
233
|
}; }
|
|
194
234
|
static get states() { return {
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
background-color: #2ee072;
|
|
53
53
|
border: 1px solid #20d565;
|
|
54
54
|
}
|
|
55
|
+
.revo-button.red {
|
|
56
|
+
background-color: #E0662E;
|
|
57
|
+
border: 1px solid #d55920;
|
|
58
|
+
}
|
|
59
|
+
.revo-button:disabled, .revo-button[disabled] {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
filter: opacity(0.35) !important;
|
|
62
|
+
}
|
|
55
63
|
.revo-button.light {
|
|
56
64
|
border: 2px solid #cedefa;
|
|
57
65
|
line-height: 32px;
|
|
@@ -73,7 +81,7 @@ revogr-filter-panel {
|
|
|
73
81
|
box-shadow: 0 5px 18px -2px rgba(0, 0, 0, 0.2);
|
|
74
82
|
padding: 10px;
|
|
75
83
|
border-radius: 4px;
|
|
76
|
-
min-width:
|
|
84
|
+
min-width: 220px;
|
|
77
85
|
text-align: left;
|
|
78
86
|
}
|
|
79
87
|
revogr-filter-panel label {
|
|
@@ -94,6 +102,7 @@ revogr-filter-panel input[type=text] {
|
|
|
94
102
|
border-radius: 5px;
|
|
95
103
|
padding: 0 10px;
|
|
96
104
|
box-sizing: border-box;
|
|
105
|
+
width: 100%;
|
|
97
106
|
}
|
|
98
107
|
revogr-filter-panel button {
|
|
99
108
|
margin-top: 10px;
|
|
@@ -125,6 +134,10 @@ revogr-filter-panel button {
|
|
|
125
134
|
width: 11px;
|
|
126
135
|
}
|
|
127
136
|
|
|
137
|
+
.center {
|
|
138
|
+
text-align: center;
|
|
139
|
+
}
|
|
140
|
+
|
|
128
141
|
.select-css {
|
|
129
142
|
display: block;
|
|
130
143
|
font-family: sans-serif;
|
|
@@ -37,6 +37,10 @@ export default class SelectionStoreConnector {
|
|
|
37
37
|
var _a;
|
|
38
38
|
return (_a = this.focusedStore) === null || _a === void 0 ? void 0 : _a.entity.store.get('focus');
|
|
39
39
|
}
|
|
40
|
+
get selectedRange() {
|
|
41
|
+
var _a;
|
|
42
|
+
return (_a = this.focusedStore) === null || _a === void 0 ? void 0 : _a.entity.store.get('range');
|
|
43
|
+
}
|
|
40
44
|
registerSection(e) {
|
|
41
45
|
if (!e) {
|
|
42
46
|
this.sections.length = 0;
|
package/dist/esm/loader.js
CHANGED
|
@@ -24,7 +24,7 @@ const patchEsm = () => {
|
|
|
24
24
|
const defineCustomElements = (win, options) => {
|
|
25
25
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
26
26
|
return patchEsm().then(() => {
|
|
27
|
-
return bootstrapLazy([["revogr-clipboard",[[0,"revogr-clipboard",{"doCopy":[64]},[[4,"paste","onPaste"],[4,"copy","copyStarted"]]]]],["revogr-filter-panel",[[0,"revogr-filter-panel",{"uuid":[1537],"filterTypes":[16],"filterNames":[16],"filterEntities":[16],"changes":[32],"show":[64],"getChanges":[64]},[[5,"mousedown","onMouseDown"]]]]],["revo-grid_11",[[0,"revo-grid",{"rowHeaders":[4,"row-headers"],"frameSize":[2,"frame-size"],"rowSize":[2,"row-size"],"colSize":[2,"col-size"],"range":[4],"readonly":[4],"resize":[4],"canFocus":[4,"can-focus"],"useClipboard":[4,"use-clipboard"],"columns":[16],"source":[16],"pinnedTopSource":[16],"pinnedBottomSource":[16],"rowDefinitions":[16],"editors":[16],"plugins":[16],"columnTypes":[16],"theme":[1537],"rowClass":[513,"row-class"],"autoSizeColumn":[4,"auto-size-column"],"filter":[4],"trimmedRows":[16],"exporting":[4],"grouping":[16],"stretch":[8],"extraElements":[32],"refresh":[64],"scrollToRow":[64],"scrollToColumnIndex":[64],"scrollToColumnProp":[64],"updateColumns":[64],"addTrimmed":[64],"scrollToCoordinate":[64],"setCellEdit":[64],"registerVNode":[64],"getSource":[64],"getVisibleSource":[64],"getSourceStore":[64],"getColumnStore":[64],"updateColumnSorting":[64],"clearSorting":[64],"getColumns":[64],"clearFocus":[64],"getPlugins":[64],"getFocused":[64]},[[0,"internalRowDragStart","onRowDragStarted"],[0,"internalRowDragEnd","onRowDragEnd"],[0,"internalRowDrag","onRowDrag"],[0,"internalRowMouseMove","onRowMouseMove"],[0,"internalCellEdit","onBeforeEdit"],[0,"internalRangeDataApply","onBeforeRangeEdit"],[0,"internalSelectionChanged","onRangeChanged"],[0,"initialRowDropped","onRowDropped"],[0,"initialHeaderClick","onHeaderClick"],[0,"internalFocusCell","onCellFocus"]]],[0,"revogr-row-headers",{"height":[2],"dataPorts":[16],"headerProp":[16],"uiid":[1],"resize":[4],"rowHeaderColumn":[16]}],[4,"revogr-overlay-selection",{"readonly":[4],"range":[4],"canDrag":[4,"can-drag"],"useClipboard":[4,"use-clipboard"],"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16],"dataStore":[16],"colData":[16],"lastCell":[16],"editors":[16]},[[5,"mousemove","onMouseMove"],[5,"mouseleave","onMouseOut"],[5,"mouseup","onMouseUp"],[0,"dragStartCell","onCellDrag"],[4,"keyup","onKeyUp"],[4,"keydown","onKeyDown"]]],[0,"revogr-focus",{"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16]}],[0,"revogr-scroll-virtual",{"dimension":[1],"viewportStore":[16],"dimensionStore":[16],"setScroll":[64],"changeScroll":[64]}],[0,"revogr-temp-range",{"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16]}],[0,"revogr-data",{"readonly":[4],"range":[4],"canDrag":[4,"can-drag"],"rowClass":[1,"row-class"],"rowSelectionStore":[16],"viewportRow":[16],"viewportCol":[16],"dimensionRow":[16],"colData":[16],"dataStore":[16]}],[0,"revogr-edit",{"editCell":[16],"column":[16],"editor":[16]}],[0,"revogr-header",{"viewportCol":[16],"dimensionCol":[16],"selectionStore":[16],"parent":[1],"groups":[16],"groupingDepth":[2,"grouping-depth"],"canResize":[4,"can-resize"],"colData":[16],"columnFilter":[4,"column-filter"]}],[0,"revogr-order-editor",{"parent":[16],"dimensionRow":[16],"dimensionCol":[16],"dataStore":[16],"dragStart":[64],"endOrder":[64],"clearOrder":[64]},[[5,"mouseleave","onMouseOut"],[5,"mouseup","onMouseUp"]]],[4,"revogr-viewport-scroll",{"contentWidth":[2,"content-width"],"contentHeight":[2,"content-height"],"setScroll":[64],"changeScroll":[64]}]]]], options);
|
|
27
|
+
return bootstrapLazy([["revogr-clipboard",[[0,"revogr-clipboard",{"doCopy":[64]},[[4,"paste","onPaste"],[4,"copy","copyStarted"]]]]],["revogr-filter-panel",[[0,"revogr-filter-panel",{"uuid":[1537],"filterTypes":[16],"filterNames":[16],"filterEntities":[16],"filterCaptions":[16],"changes":[32],"show":[64],"getChanges":[64]},[[5,"mousedown","onMouseDown"]]]]],["revo-grid_11",[[0,"revo-grid",{"rowHeaders":[4,"row-headers"],"frameSize":[2,"frame-size"],"rowSize":[2,"row-size"],"colSize":[2,"col-size"],"range":[4],"readonly":[4],"resize":[4],"canFocus":[4,"can-focus"],"useClipboard":[4,"use-clipboard"],"columns":[16],"source":[16],"pinnedTopSource":[16],"pinnedBottomSource":[16],"rowDefinitions":[16],"editors":[16],"plugins":[16],"columnTypes":[16],"theme":[1537],"rowClass":[513,"row-class"],"autoSizeColumn":[4,"auto-size-column"],"filter":[4],"trimmedRows":[16],"exporting":[4],"grouping":[16],"stretch":[8],"extraElements":[32],"refresh":[64],"scrollToRow":[64],"scrollToColumnIndex":[64],"scrollToColumnProp":[64],"updateColumns":[64],"addTrimmed":[64],"scrollToCoordinate":[64],"setCellEdit":[64],"registerVNode":[64],"getSource":[64],"getVisibleSource":[64],"getSourceStore":[64],"getColumnStore":[64],"updateColumnSorting":[64],"clearSorting":[64],"getColumns":[64],"clearFocus":[64],"getPlugins":[64],"getFocused":[64],"getSelectedRange":[64]},[[0,"internalRowDragStart","onRowDragStarted"],[0,"internalRowDragEnd","onRowDragEnd"],[0,"internalRowDrag","onRowDrag"],[0,"internalRowMouseMove","onRowMouseMove"],[0,"internalCellEdit","onBeforeEdit"],[0,"internalRangeDataApply","onBeforeRangeEdit"],[0,"internalSelectionChanged","onRangeChanged"],[0,"initialRowDropped","onRowDropped"],[0,"initialHeaderClick","onHeaderClick"],[0,"internalFocusCell","onCellFocus"]]],[0,"revogr-row-headers",{"height":[2],"dataPorts":[16],"headerProp":[16],"uiid":[1],"resize":[4],"rowHeaderColumn":[16]}],[4,"revogr-overlay-selection",{"readonly":[4],"range":[4],"canDrag":[4,"can-drag"],"useClipboard":[4,"use-clipboard"],"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16],"dataStore":[16],"colData":[16],"lastCell":[16],"editors":[16]},[[5,"mousemove","onMouseMove"],[5,"mouseleave","onMouseOut"],[5,"mouseup","onMouseUp"],[0,"dragStartCell","onCellDrag"],[4,"keyup","onKeyUp"],[4,"keydown","onKeyDown"]]],[0,"revogr-focus",{"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16]}],[0,"revogr-scroll-virtual",{"dimension":[1],"viewportStore":[16],"dimensionStore":[16],"setScroll":[64],"changeScroll":[64]}],[0,"revogr-temp-range",{"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16]}],[0,"revogr-data",{"readonly":[4],"range":[4],"canDrag":[4,"can-drag"],"rowClass":[1,"row-class"],"rowSelectionStore":[16],"viewportRow":[16],"viewportCol":[16],"dimensionRow":[16],"colData":[16],"dataStore":[16]}],[0,"revogr-edit",{"editCell":[16],"column":[16],"editor":[16]}],[0,"revogr-header",{"viewportCol":[16],"dimensionCol":[16],"selectionStore":[16],"parent":[1],"groups":[16],"groupingDepth":[2,"grouping-depth"],"canResize":[4,"can-resize"],"colData":[16],"columnFilter":[4,"column-filter"]}],[0,"revogr-order-editor",{"parent":[16],"dimensionRow":[16],"dimensionCol":[16],"dataStore":[16],"dragStart":[64],"endOrder":[64],"clearOrder":[64]},[[5,"mouseleave","onMouseOut"],[5,"mouseup","onMouseUp"]]],[4,"revogr-viewport-scroll",{"contentWidth":[2,"content-width"],"contentHeight":[2,"content-height"],"setScroll":[64],"changeScroll":[64]}]]]], options);
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
|
package/dist/esm/revo-grid.js
CHANGED
|
@@ -67,5 +67,5 @@ const patchDynamicImport = (base, orgScriptElm) => {
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
patchBrowser().then(options => {
|
|
70
|
-
return bootstrapLazy([["revogr-clipboard",[[0,"revogr-clipboard",{"doCopy":[64]},[[4,"paste","onPaste"],[4,"copy","copyStarted"]]]]],["revogr-filter-panel",[[0,"revogr-filter-panel",{"uuid":[1537],"filterTypes":[16],"filterNames":[16],"filterEntities":[16],"changes":[32],"show":[64],"getChanges":[64]},[[5,"mousedown","onMouseDown"]]]]],["revo-grid_11",[[0,"revo-grid",{"rowHeaders":[4,"row-headers"],"frameSize":[2,"frame-size"],"rowSize":[2,"row-size"],"colSize":[2,"col-size"],"range":[4],"readonly":[4],"resize":[4],"canFocus":[4,"can-focus"],"useClipboard":[4,"use-clipboard"],"columns":[16],"source":[16],"pinnedTopSource":[16],"pinnedBottomSource":[16],"rowDefinitions":[16],"editors":[16],"plugins":[16],"columnTypes":[16],"theme":[1537],"rowClass":[513,"row-class"],"autoSizeColumn":[4,"auto-size-column"],"filter":[4],"trimmedRows":[16],"exporting":[4],"grouping":[16],"stretch":[8],"extraElements":[32],"refresh":[64],"scrollToRow":[64],"scrollToColumnIndex":[64],"scrollToColumnProp":[64],"updateColumns":[64],"addTrimmed":[64],"scrollToCoordinate":[64],"setCellEdit":[64],"registerVNode":[64],"getSource":[64],"getVisibleSource":[64],"getSourceStore":[64],"getColumnStore":[64],"updateColumnSorting":[64],"clearSorting":[64],"getColumns":[64],"clearFocus":[64],"getPlugins":[64],"getFocused":[64]},[[0,"internalRowDragStart","onRowDragStarted"],[0,"internalRowDragEnd","onRowDragEnd"],[0,"internalRowDrag","onRowDrag"],[0,"internalRowMouseMove","onRowMouseMove"],[0,"internalCellEdit","onBeforeEdit"],[0,"internalRangeDataApply","onBeforeRangeEdit"],[0,"internalSelectionChanged","onRangeChanged"],[0,"initialRowDropped","onRowDropped"],[0,"initialHeaderClick","onHeaderClick"],[0,"internalFocusCell","onCellFocus"]]],[0,"revogr-row-headers",{"height":[2],"dataPorts":[16],"headerProp":[16],"uiid":[1],"resize":[4],"rowHeaderColumn":[16]}],[4,"revogr-overlay-selection",{"readonly":[4],"range":[4],"canDrag":[4,"can-drag"],"useClipboard":[4,"use-clipboard"],"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16],"dataStore":[16],"colData":[16],"lastCell":[16],"editors":[16]},[[5,"mousemove","onMouseMove"],[5,"mouseleave","onMouseOut"],[5,"mouseup","onMouseUp"],[0,"dragStartCell","onCellDrag"],[4,"keyup","onKeyUp"],[4,"keydown","onKeyDown"]]],[0,"revogr-focus",{"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16]}],[0,"revogr-scroll-virtual",{"dimension":[1],"viewportStore":[16],"dimensionStore":[16],"setScroll":[64],"changeScroll":[64]}],[0,"revogr-temp-range",{"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16]}],[0,"revogr-data",{"readonly":[4],"range":[4],"canDrag":[4,"can-drag"],"rowClass":[1,"row-class"],"rowSelectionStore":[16],"viewportRow":[16],"viewportCol":[16],"dimensionRow":[16],"colData":[16],"dataStore":[16]}],[0,"revogr-edit",{"editCell":[16],"column":[16],"editor":[16]}],[0,"revogr-header",{"viewportCol":[16],"dimensionCol":[16],"selectionStore":[16],"parent":[1],"groups":[16],"groupingDepth":[2,"grouping-depth"],"canResize":[4,"can-resize"],"colData":[16],"columnFilter":[4,"column-filter"]}],[0,"revogr-order-editor",{"parent":[16],"dimensionRow":[16],"dimensionCol":[16],"dataStore":[16],"dragStart":[64],"endOrder":[64],"clearOrder":[64]},[[5,"mouseleave","onMouseOut"],[5,"mouseup","onMouseUp"]]],[4,"revogr-viewport-scroll",{"contentWidth":[2,"content-width"],"contentHeight":[2,"content-height"],"setScroll":[64],"changeScroll":[64]}]]]], options);
|
|
70
|
+
return bootstrapLazy([["revogr-clipboard",[[0,"revogr-clipboard",{"doCopy":[64]},[[4,"paste","onPaste"],[4,"copy","copyStarted"]]]]],["revogr-filter-panel",[[0,"revogr-filter-panel",{"uuid":[1537],"filterTypes":[16],"filterNames":[16],"filterEntities":[16],"filterCaptions":[16],"changes":[32],"show":[64],"getChanges":[64]},[[5,"mousedown","onMouseDown"]]]]],["revo-grid_11",[[0,"revo-grid",{"rowHeaders":[4,"row-headers"],"frameSize":[2,"frame-size"],"rowSize":[2,"row-size"],"colSize":[2,"col-size"],"range":[4],"readonly":[4],"resize":[4],"canFocus":[4,"can-focus"],"useClipboard":[4,"use-clipboard"],"columns":[16],"source":[16],"pinnedTopSource":[16],"pinnedBottomSource":[16],"rowDefinitions":[16],"editors":[16],"plugins":[16],"columnTypes":[16],"theme":[1537],"rowClass":[513,"row-class"],"autoSizeColumn":[4,"auto-size-column"],"filter":[4],"trimmedRows":[16],"exporting":[4],"grouping":[16],"stretch":[8],"extraElements":[32],"refresh":[64],"scrollToRow":[64],"scrollToColumnIndex":[64],"scrollToColumnProp":[64],"updateColumns":[64],"addTrimmed":[64],"scrollToCoordinate":[64],"setCellEdit":[64],"registerVNode":[64],"getSource":[64],"getVisibleSource":[64],"getSourceStore":[64],"getColumnStore":[64],"updateColumnSorting":[64],"clearSorting":[64],"getColumns":[64],"clearFocus":[64],"getPlugins":[64],"getFocused":[64],"getSelectedRange":[64]},[[0,"internalRowDragStart","onRowDragStarted"],[0,"internalRowDragEnd","onRowDragEnd"],[0,"internalRowDrag","onRowDrag"],[0,"internalRowMouseMove","onRowMouseMove"],[0,"internalCellEdit","onBeforeEdit"],[0,"internalRangeDataApply","onBeforeRangeEdit"],[0,"internalSelectionChanged","onRangeChanged"],[0,"initialRowDropped","onRowDropped"],[0,"initialHeaderClick","onHeaderClick"],[0,"internalFocusCell","onCellFocus"]]],[0,"revogr-row-headers",{"height":[2],"dataPorts":[16],"headerProp":[16],"uiid":[1],"resize":[4],"rowHeaderColumn":[16]}],[4,"revogr-overlay-selection",{"readonly":[4],"range":[4],"canDrag":[4,"can-drag"],"useClipboard":[4,"use-clipboard"],"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16],"dataStore":[16],"colData":[16],"lastCell":[16],"editors":[16]},[[5,"mousemove","onMouseMove"],[5,"mouseleave","onMouseOut"],[5,"mouseup","onMouseUp"],[0,"dragStartCell","onCellDrag"],[4,"keyup","onKeyUp"],[4,"keydown","onKeyDown"]]],[0,"revogr-focus",{"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16]}],[0,"revogr-scroll-virtual",{"dimension":[1],"viewportStore":[16],"dimensionStore":[16],"setScroll":[64],"changeScroll":[64]}],[0,"revogr-temp-range",{"selectionStore":[16],"dimensionRow":[16],"dimensionCol":[16]}],[0,"revogr-data",{"readonly":[4],"range":[4],"canDrag":[4,"can-drag"],"rowClass":[1,"row-class"],"rowSelectionStore":[16],"viewportRow":[16],"viewportCol":[16],"dimensionRow":[16],"colData":[16],"dataStore":[16]}],[0,"revogr-edit",{"editCell":[16],"column":[16],"editor":[16]}],[0,"revogr-header",{"viewportCol":[16],"dimensionCol":[16],"selectionStore":[16],"parent":[1],"groups":[16],"groupingDepth":[2,"grouping-depth"],"canResize":[4,"can-resize"],"colData":[16],"columnFilter":[4,"column-filter"]}],[0,"revogr-order-editor",{"parent":[16],"dimensionRow":[16],"dimensionCol":[16],"dataStore":[16],"dragStart":[64],"endOrder":[64],"clearOrder":[64]},[[5,"mouseleave","onMouseOut"],[5,"mouseup","onMouseUp"]]],[4,"revogr-viewport-scroll",{"contentWidth":[2,"content-width"],"contentHeight":[2,"content-height"],"setScroll":[64],"changeScroll":[64]}]]]], options);
|
|
71
71
|
});
|