@zeedhi/teknisa-components-vuetify 1.97.3 → 1.97.6

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.
@@ -1153,9 +1153,10 @@ let TekGrid$1 = class TekGrid extends ZdGridEditable {
1153
1153
  this.instanceType = TekGrid$3;
1154
1154
  this.visibleRowsLength = 0;
1155
1155
  this.debouncedDatasourceGet = debounce((instance) => {
1156
- if (instance.events.beforeApplyFilter) {
1157
- instance.events.beforeApplyFilter({ component: instance });
1158
- }
1156
+ const event = new Event('change', { cancelable: true });
1157
+ instance.callEvent('beforeApplyFilter', { component: instance, event });
1158
+ if (event.defaultPrevented)
1159
+ return;
1159
1160
  const { datasource } = instance;
1160
1161
  if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
1161
1162
  datasource.updateDynamicFilter();
@@ -1153,9 +1153,10 @@
1153
1153
  this.instanceType = teknisaComponentsCommon.TekGrid;
1154
1154
  this.visibleRowsLength = 0;
1155
1155
  this.debouncedDatasourceGet = debounce__default["default"]((instance) => {
1156
- if (instance.events.beforeApplyFilter) {
1157
- instance.events.beforeApplyFilter({ component: instance });
1158
- }
1156
+ const event = new Event('change', { cancelable: true });
1157
+ instance.callEvent('beforeApplyFilter', { component: instance, event });
1158
+ if (event.defaultPrevented)
1159
+ return;
1159
1160
  const { datasource } = instance;
1160
1161
  if (datasource instanceof teknisaComponentsCommon.TekRestDatasource || datasource instanceof teknisaComponentsCommon.TekMemoryDatasource) {
1161
1162
  datasource.updateDynamicFilter();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/teknisa-components-vuetify",
3
- "version": "1.97.3",
3
+ "version": "1.97.6",
4
4
  "description": "Teknisa Components based on Vuetify",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -44,5 +44,5 @@
44
44
  "vue": "2.7.*",
45
45
  "vuetify": "2.6.*"
46
46
  },
47
- "gitHead": "2aea0238fb3917e862b21fd096f2851f74e44337"
47
+ "gitHead": "8f016098621c6cc389bb9a761fe52d8f169d07e2"
48
48
  }