@syncfusion/ej2-vue-querybuilder 19.2.51 → 19.3.43

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-vue-querybuilder@*",
3
- "_id": "@syncfusion/ej2-vue-querybuilder@19.2.46",
3
+ "_id": "@syncfusion/ej2-vue-querybuilder@18.17.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-0jLyWIcq+ICmbJ6qwhS82Ssu3UYnyzAneUfoNUFcxHb+jVso6fgkbFnvRgcLBRvKnDACw6qaoaEC8Yv0Oiu7Gg==",
5
+ "_integrity": "sha512-zwyGkVL3ZWZUO6t6pMuFv0SzRkUJyWG/TIwoh4hRKTldcynDj1JVQo5TNekUfpbTL+wr3UbLlJ6GWUXBRjE91Q==",
6
6
  "_location": "/@syncfusion/ej2-vue-querybuilder",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,8 +19,8 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-vue-querybuilder/-/ej2-vue-querybuilder-19.2.46.tgz",
23
- "_shasum": "9df00a9612df47a16366c0e6ad9e80c0209afd24",
22
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-querybuilder/-/ej2-vue-querybuilder-18.17.0.tgz",
23
+ "_shasum": "735acb9e18bc89435504c34c3402097806b6c337",
24
24
  "_spec": "@syncfusion/ej2-vue-querybuilder@*",
25
25
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
26
26
  "author": {
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "bundleDependencies": false,
33
33
  "dependencies": {
34
- "@syncfusion/ej2-base": "~19.2.51",
35
- "@syncfusion/ej2-querybuilder": "19.2.51",
36
- "@syncfusion/ej2-vue-base": "~19.2.49"
34
+ "@syncfusion/ej2-base": "~19.3.43",
35
+ "@syncfusion/ej2-querybuilder": "19.3.43",
36
+ "@syncfusion/ej2-vue-base": "~19.3.43"
37
37
  },
38
38
  "deprecated": false,
39
39
  "description": "Essential JS 2 QueryBuilder for Vue",
@@ -64,6 +64,6 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/syncfusion/ej2-vue-ui-components.git"
66
66
  },
67
- "version": "19.2.51",
67
+ "version": "19.3.43",
68
68
  "sideEffects": false
69
69
  }
@@ -23,7 +23,9 @@ export declare class QueryBuilderComponent extends ComponentBase {
23
23
  };
24
24
  tagNameMapper: Object;
25
25
  isVue3: boolean;
26
+ templateCollection: any;
26
27
  constructor();
28
+ clearTemplate(templateNames?: string[]): any;
27
29
  setProperties(prop: any, muteOnChange: boolean): void;
28
30
  render(createElement: any): any;
29
31
  addGroups(groups: Object[], groupID: string): void;
@@ -18,11 +18,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { ComponentBase, EJComponentDecorator, getProps, gh } from '@syncfusion/ej2-vue-base';
21
- import { isNullOrUndefined } from '@syncfusion/ej2-base';
21
+ import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
22
22
  import { QueryBuilder } from '@syncfusion/ej2-querybuilder';
23
23
  import { ColumnsDirective, ColumnDirective, ColumnsPlugin, ColumnPlugin } from './columns.directive';
24
24
  import { Options } from 'vue-class-component';
25
- export var properties = ['allowValidation', 'columns', 'cssClass', 'dataSource', 'displayMode', 'enableNotCondition', 'enablePersistence', 'enableRtl', 'fieldModel', 'headerTemplate', 'height', 'immediateModeDelay', 'locale', 'matchCase', 'maxGroupCount', 'operatorModel', 'readonly', 'rule', 'separator', 'showButtons', 'sortDirection', 'summaryView', 'valueModel', 'width', 'actionBegin', 'beforeChange', 'change', 'created', 'dataBound', 'ruleChange'];
25
+ export var properties = ['allowValidation', 'columns', 'cssClass', 'dataSource', 'displayMode', 'enableNotCondition', 'enablePersistence', 'enableRtl', 'fieldMode', 'fieldModel', 'headerTemplate', 'height', 'immediateModeDelay', 'locale', 'matchCase', 'maxGroupCount', 'operatorModel', 'readonly', 'rule', 'separator', 'showButtons', 'sortDirection', 'summaryView', 'valueModel', 'width', 'actionBegin', 'beforeChange', 'change', 'created', 'dataBound', 'ruleChange'];
26
26
  export var modelProps = [];
27
27
  export var testProp = getProps({ props: properties });
28
28
  export var props = testProp[0];
@@ -55,8 +55,33 @@ var QueryBuilderComponent = /** @class */ (function (_super) {
55
55
  _this.bindProperties();
56
56
  _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
57
57
  _this.ej2Instances.setProperties = _this.setProperties;
58
+ _this.ej2Instances.clearTemplate = _this.clearTemplate;
58
59
  return _this;
59
60
  }
61
+ QueryBuilderComponent.prototype.clearTemplate = function (templateNames) {
62
+ if (!templateNames) {
63
+ templateNames = Object.keys(this.templateCollection || {});
64
+ }
65
+ if (templateNames.length && this.templateCollection) {
66
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
67
+ var tempName = templateNames_1[_i];
68
+ var elementCollection = this.templateCollection[tempName];
69
+ if (elementCollection && elementCollection.length) {
70
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
71
+ var ele = elementCollection_1[_a];
72
+ var destroy = getValue('__vue__.$destroy', ele);
73
+ if (destroy) {
74
+ ele.__vue__.$destroy();
75
+ }
76
+ if (ele.innerHTML) {
77
+ ele.innerHTML = '';
78
+ }
79
+ }
80
+ delete this.templateCollection[tempName];
81
+ }
82
+ }
83
+ }
84
+ };
60
85
  QueryBuilderComponent.prototype.setProperties = function (prop, muteOnChange) {
61
86
  var _this = this;
62
87
  if (this.isVue3) {
@@ -74,6 +99,7 @@ var QueryBuilderComponent = /** @class */ (function (_super) {
74
99
  }
75
100
  else {
76
101
  _this.$emit('update:' + key, prop[key]);
102
+ _this.$emit('modelchanged', prop[key]);
77
103
  }
78
104
  }
79
105
  });