@syncfusion/ej2-vue-querybuilder 20.4.48 → 21.1.35
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/CHANGELOG.md +0 -19
- package/dist/ej2-vue-querybuilder.umd.min.js +2 -2
- package/dist/ej2-vue-querybuilder.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-querybuilder.es2015.js +157 -213
- package/dist/es6/ej2-vue-querybuilder.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-querybuilder.es5.js +174 -247
- package/dist/es6/ej2-vue-querybuilder.es5.js.map +1 -1
- package/dist/global/ej2-vue-querybuilder.min.js +2 -2
- package/package.json +9 -9
- package/src/query-builder/columns.directive.d.ts +2 -12
- package/src/query-builder/columns.directive.js +22 -71
- package/src/query-builder/querybuilder.component.d.ts +3 -43
- package/src/query-builder/querybuilder.component.js +146 -175
- package/styles/bootstrap-dark.css +17 -9
- package/styles/bootstrap.css +9 -9
- package/styles/bootstrap4.css +10 -10
- package/styles/bootstrap5-dark.css +11 -11
- package/styles/bootstrap5.css +11 -11
- package/styles/fabric-dark.css +15 -9
- package/styles/fabric.css +9 -9
- package/styles/fluent-dark.css +12 -12
- package/styles/fluent.css +12 -12
- package/styles/highcontrast-light.css +9 -30
- package/styles/highcontrast.css +9 -9
- package/styles/material-dark.css +9 -9
- package/styles/material.css +9 -9
- package/styles/query-builder/bootstrap-dark.css +17 -9
- package/styles/query-builder/bootstrap.css +9 -9
- package/styles/query-builder/bootstrap4.css +10 -10
- package/styles/query-builder/bootstrap5-dark.css +11 -11
- package/styles/query-builder/bootstrap5.css +11 -11
- package/styles/query-builder/fabric-dark.css +15 -9
- package/styles/query-builder/fabric.css +9 -9
- package/styles/query-builder/fluent-dark.css +12 -12
- package/styles/query-builder/fluent.css +12 -12
- package/styles/query-builder/highcontrast-light.css +9 -30
- package/styles/query-builder/highcontrast.css +9 -9
- package/styles/query-builder/material-dark.css +9 -9
- package/styles/query-builder/material.css +9 -9
- package/styles/query-builder/tailwind-dark.css +9 -9
- package/styles/query-builder/tailwind.css +9 -9
- package/styles/tailwind-dark.css +9 -9
- package/styles/tailwind.css +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,25 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
-
## 20.4.42 (2023-01-04)
|
|
6
|
-
|
|
7
|
-
### QueryBuilder
|
|
8
|
-
|
|
9
|
-
#### Bug Fixes
|
|
10
|
-
|
|
11
|
-
- `#F31632` - Accessibility issue in Query Builder has been resolved.
|
|
12
|
-
|
|
13
|
-
## 20.4.40 (2022-12-28)
|
|
14
|
-
|
|
15
|
-
### QueryBuilder
|
|
16
|
-
|
|
17
|
-
#### Bug Fixes
|
|
18
|
-
|
|
19
|
-
- `#F178375` - Issue with Browser window get freezes when we set the Invalid SQL rule to query builder has been fixed.
|
|
20
|
-
- `#I423706` - Issue with Field Dropdown list popups get collapses when we use `validateFields` method in query builder has been fixed
|
|
21
|
-
|
|
22
|
-
## 20.4.38 (2022-12-21)
|
|
23
|
-
|
|
24
5
|
### QueryBuilder
|
|
25
6
|
|
|
26
7
|
#### Bug Fixes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-querybuilder.umd.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 21.1.35
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-querybuilder"),require("
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-querybuilder"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-querybuilder","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Querybuilder,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,s){"use strict";var i=n.vueDefineComponent({inject:{custom:{default:null}},render:function(e){if(!n.isExecute){var t=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",{class:"e-directive"},i)}},updated:function(){!n.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-columns"}}}),u={name:"e-columns",install:function(e){e.component(u.name,i)}},o=n.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-column"}}}),r={name:"e-column",install:function(e){e.component(r.name,o)}},a=["isLazyUpdate","plugins","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"],l=[],c=n.getProps({props:a}),d=c[0],h=c[1],f=Object.keys(h);f.push("modelchanged","update:modelValue");for(var m=0,p=l;m<p.length;m++){var g=p[m];f.push("update:"+g)}var j=n.vueDefineComponent({name:"QueryBuilderComponent",mixins:[n.ComponentBase],props:d,watch:h,emits:f,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.QueryBuilder({}),propKeys:a,models:l,hasChildDirective:!0,hasInjectedModules:!1,tagMapper:{"e-columns":"e-column"},tagNameMapper:{},isVue3:!n.isExecute,templateCollection:{}}},created:function(){this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=n.isExecute?e:n.gh,i=null;return s.isNullOrUndefined(this.$slots.default)||(i=n.isExecute?this.$slots.default:this.$slots.default()),t("div",i)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var i=n[t],u=this.templateCollection[i];if(u&&u.length){for(var o=0,r=u;o<r.length;o++){var a=r[o];s.getValue("__vue__.$destroy",a)&&a.__vue__.$destroy(),a.innerHTML&&(a.innerHTML="")}delete this.templateCollection[i]}}},setProperties:function(e,t){var n=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(s){t!==s||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},addGroups:function(e,t){return this.ej2Instances.addGroups(e,t)},addRules:function(e,t){return this.ej2Instances.addRules(e,t)},deleteGroup:function(e){return this.ej2Instances.deleteGroup(e)},deleteGroups:function(e){return this.ej2Instances.deleteGroups(e)},deleteRules:function(e){return this.ej2Instances.deleteRules(e)},getDataManagerQuery:function(e){return this.ej2Instances.getDataManagerQuery(e)},getFilteredRecords:function(){return this.ej2Instances.getFilteredRecords()},getGroup:function(e){return this.ej2Instances.getGroup(e)},getOperators:function(e){return this.ej2Instances.getOperators(e)},getPredicate:function(e){return this.ej2Instances.getPredicate(e)},getRule:function(e){return this.ej2Instances.getRule(e)},getRules:function(){return this.ej2Instances.getRules()},getRulesFromSql:function(e,t){return this.ej2Instances.getRulesFromSql(e,t)},getSqlFromRules:function(e,t,n){return this.ej2Instances.getSqlFromRules(e,t,n)},getValidRules:function(e){return this.ej2Instances.getValidRules(e)},getValues:function(e){return this.ej2Instances.getValues(e)},notifyChange:function(e,t,n){return this.ej2Instances.notifyChange(e,t,n)},reset:function(){return this.ej2Instances.reset()},setRules:function(e){return this.ej2Instances.setRules(e)},setRulesFromSql:function(e,t){return this.ej2Instances.setRulesFromSql(e,t)},validateFields:function(){return this.ej2Instances.validateFields()}}}),y={name:"ejs-querybuilder",install:function(e){e.component(y.name,j),e.component(r.name,o),e.component(u.name,i)}};e.ColumnsDirective=i,e.ColumnDirective=o,e.ColumnsPlugin=u,e.ColumnPlugin=r,e.QueryBuilderComponent=j,e.QueryBuilderPlugin=y,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
11
|
//# sourceMappingURL=ej2-vue-querybuilder.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-querybuilder.umd.min.js","sources":["../vue2/src/query-builder/columns.directive.js","../vue2/src/query-builder/querybuilder.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport Vue from 'vue';\nimport { EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nvar ColumnsDirective = /** @class */ (function (_super) {\n __extends(ColumnsDirective, _super);\n function ColumnsDirective() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ColumnsDirective.prototype.render = function () {\n return;\n };\n ColumnsDirective = __decorate([\n EJComponentDecorator({})\n ], ColumnsDirective);\n return ColumnsDirective;\n}(Vue));\nexport { ColumnsDirective };\nexport var ColumnsPlugin = {\n name: 'e-columns',\n install: function (Vue) {\n Vue.component(ColumnsPlugin.name, ColumnsDirective);\n }\n};\n/**\n * `e-column` directive represent a column of the VueJS QueryBuilder.\n * It must be contained in a QueryBuilder component(`ejs-querybuilder`).\n * ```vue\n * <ejs-querybuilder :dataSource='data'>\n * <e-columns>\n * <e-column field='ID' label='ID' type='number'/>\n * <e-column field='Date' label='Date' type='date' format='dd/MM/yyyy'/>\n * </e-columns>\n * </ejs-querybuilder>\n * ```\n */\nvar ColumnDirective = /** @class */ (function (_super) {\n __extends(ColumnDirective, _super);\n function ColumnDirective() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ColumnDirective.prototype.render = function () {\n return;\n };\n ColumnDirective = __decorate([\n EJComponentDecorator({})\n ], ColumnDirective);\n return ColumnDirective;\n}(Vue));\nexport { ColumnDirective };\nexport var ColumnPlugin = {\n name: 'e-column',\n install: function (Vue) {\n Vue.component(ColumnPlugin.name, ColumnDirective);\n }\n};\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nimport { getValue } from '@syncfusion/ej2-base';\nimport { QueryBuilder } from '@syncfusion/ej2-querybuilder';\nimport { ColumnsDirective, ColumnDirective, ColumnsPlugin, ColumnPlugin } from './columns.directive';\nexport var properties = ['isLazyUpdate', 'plugins', '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'];\nexport var modelProps = [];\n/**\n * Represents the VueJS QueryBuilder Component.\n * ```html\n * <ejs-querybuilder></ejs-querybuilder>\n * ```\n */\nvar QueryBuilderComponent = /** @class */ (function (_super) {\n __extends(QueryBuilderComponent, _super);\n function QueryBuilderComponent() {\n var _this = _super.call(this, arguments) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = true;\n _this.hasInjectedModules = false;\n _this.tagMapper = { \"e-columns\": \"e-column\" };\n _this.tagNameMapper = {};\n _this.ej2Instances = new QueryBuilder({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n _this.ej2Instances.clearTemplate = _this.clearTemplate;\n _this.updated = _this.updated;\n return _this;\n }\n QueryBuilderComponent.prototype.clearTemplate = function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n };\n QueryBuilderComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n _this.$emit('update:' + key, prop[key]);\n }\n });\n });\n }\n };\n QueryBuilderComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n QueryBuilderComponent.prototype.custom = function () {\n this.updated();\n };\n QueryBuilderComponent.prototype.addGroups = function (groups, groupID) {\n return this.ej2Instances.addGroups(groups, groupID);\n };\n QueryBuilderComponent.prototype.addRules = function (rule, groupID) {\n return this.ej2Instances.addRules(rule, groupID);\n };\n QueryBuilderComponent.prototype.deleteGroup = function (target) {\n return this.ej2Instances.deleteGroup(target);\n };\n QueryBuilderComponent.prototype.deleteGroups = function (groupIdColl) {\n return this.ej2Instances.deleteGroups(groupIdColl);\n };\n QueryBuilderComponent.prototype.deleteRules = function (ruleIdColl) {\n return this.ej2Instances.deleteRules(ruleIdColl);\n };\n QueryBuilderComponent.prototype.getDataManagerQuery = function (rule) {\n return this.ej2Instances.getDataManagerQuery(rule);\n };\n QueryBuilderComponent.prototype.getFilteredRecords = function () {\n return this.ej2Instances.getFilteredRecords();\n };\n QueryBuilderComponent.prototype.getGroup = function (target) {\n return this.ej2Instances.getGroup(target);\n };\n QueryBuilderComponent.prototype.getOperators = function (field) {\n return this.ej2Instances.getOperators(field);\n };\n QueryBuilderComponent.prototype.getPredicate = function (rule) {\n return this.ej2Instances.getPredicate(rule);\n };\n QueryBuilderComponent.prototype.getRule = function (elem) {\n return this.ej2Instances.getRule(elem);\n };\n QueryBuilderComponent.prototype.getRules = function () {\n return this.ej2Instances.getRules();\n };\n QueryBuilderComponent.prototype.getRulesFromSql = function (sqlString, sqlLocale) {\n return this.ej2Instances.getRulesFromSql(sqlString, sqlLocale);\n };\n QueryBuilderComponent.prototype.getSqlFromRules = function (rule, allowEscape, sqlLocale) {\n return this.ej2Instances.getSqlFromRules(rule, allowEscape, sqlLocale);\n };\n QueryBuilderComponent.prototype.getValidRules = function (currentRule) {\n return this.ej2Instances.getValidRules(currentRule);\n };\n QueryBuilderComponent.prototype.getValues = function (field) {\n return this.ej2Instances.getValues(field);\n };\n QueryBuilderComponent.prototype.notifyChange = function (value, element, type) {\n return this.ej2Instances.notifyChange(value, element, type);\n };\n QueryBuilderComponent.prototype.reset = function () {\n return this.ej2Instances.reset();\n };\n QueryBuilderComponent.prototype.setRules = function (rule) {\n return this.ej2Instances.setRules(rule);\n };\n QueryBuilderComponent.prototype.setRulesFromSql = function (sqlString, sqlLocale) {\n return this.ej2Instances.setRulesFromSql(sqlString, sqlLocale);\n };\n QueryBuilderComponent.prototype.validateFields = function () {\n return this.ej2Instances.validateFields();\n };\n QueryBuilderComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], QueryBuilderComponent);\n return QueryBuilderComponent;\n}(ComponentBase));\nexport { QueryBuilderComponent };\nexport var QueryBuilderPlugin = {\n name: 'ejs-querybuilder',\n install: function (Vue) {\n Vue.component(QueryBuilderPlugin.name, QueryBuilderComponent);\n Vue.component(ColumnPlugin.name, ColumnDirective);\n Vue.component(ColumnsPlugin.name, ColumnsDirective);\n }\n};\n"],"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","ColumnsDirective","_super","apply","render","EJComponentDecorator","Vue","ColumnsPlugin","name","install","component","ColumnDirective","ColumnPlugin","properties","modelProps","QueryBuilderComponent","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","e-columns","tagNameMapper","ej2Instances","QueryBuilder","bindProperties","_setProperties","setProperties","clearTemplate","updated","templateNames","keys","templateCollection","_i","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","map","model","test","$emit","createElement","$slots","default","custom","addGroups","groups","groupID","addRules","rule","deleteGroup","deleteGroups","groupIdColl","deleteRules","ruleIdColl","getDataManagerQuery","getFilteredRecords","getGroup","getOperators","field","getPredicate","getRule","elem","getRules","getRulesFromSql","sqlString","sqlLocale","getSqlFromRules","allowEscape","getValidRules","currentRule","getValues","notifyChange","value","element","type","reset","setRules","setRulesFromSql","validateFields","props","ComponentBase","QueryBuilderPlugin"],"mappings":"2eAAA,IAAIA,EAAwC,WACxC,IAAIC,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAE5B,OAAO,SAAUD,EAAGC,GAEhB,SAASO,IAAOC,KAAKC,YAAcV,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEW,UAAkB,OAANV,EAAaC,OAAOU,OAAOX,IAAMO,EAAGG,UAAYV,EAAEU,UAAW,IAAIH,IAV3C,GAaxCK,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HjB,EAAvHkB,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOf,OAAOoB,yB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GAClD,OAAOvF,KAAK0C,aAAayD,UAAUZ,IAEvCvD,EAAsB9B,UAAUkG,aAAe,SAAUC,EAAOC,EAASC,GACrE,OAAOvG,KAAK0C,aAAa0D,aAAaC,EAAOC,EAASC,IAE1DvE,EAAsB9B,UAAUsG,MAAQ,WACpC,OAAOxG,KAAK0C,aAAa8D,SAE7BxE,EAAsB9B,UAAUuG,SAAW,SAAU5B,GACjD,OAAO7E,KAAK0C,aAAa+D,SAAS5B,IAEtC7C,EAAsB9B,UAAUwG,gBAAkB,SAAUb,EAAWC,GACnE,OAAO9F,KAAK0C,aAAagE,gBAAgBb,EAAWC,IAExD9D,EAAsB9B,UAAUyG,eAAiB,WAC7C,OAAO3G,KAAK0C,aAAaiE,kBAE7B3E,EAAwB5B,GACpBkB,wBACIsF,MAAO9E,KAEZE,IAEL6E,iBAESC,GACPrF,KAAM,mBACNC,QAAS,SAAUH,GACfA,EAAII,UAAUmF,EAAmBrF,KAAMO,GACvCT,EAAII,UAAUE,EAAaJ,KAAMG,GACjCL,EAAII,UAAUH,EAAcC,KAAMP"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-querybuilder.umd.min.js","sources":["../src/query-builder/columns.directive.js","../src/query-builder/querybuilder.component.js"],"sourcesContent":["import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nexport var ColumnsDirective = vueDefineComponent({\n inject: { custom: { default: null } },\n render: function (createElement) {\n if (!isExecute) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', { class: 'e-directive' }, slots);\n }\n return;\n },\n updated: function () {\n if (!isExecute && this.custom) {\n this.custom();\n }\n },\n methods: {\n getTag: function () {\n return 'e-columns';\n }\n }\n});\nexport var ColumnsPlugin = {\n name: 'e-columns',\n install: function (Vue) {\n Vue.component(ColumnsPlugin.name, ColumnsDirective);\n }\n};\n/**\n * `e-column` directive represent a column of the VueJS QueryBuilder.\n * It must be contained in a QueryBuilder component(`ejs-querybuilder`).\n * ```vue\n * <ejs-querybuilder :dataSource='data'>\n * <e-columns>\n * <e-column field='ID' label='ID' type='number'/>\n * <e-column field='Date' label='Date' type='date' format='dd/MM/yyyy'/>\n * </e-columns>\n * </ejs-querybuilder>\n * ```\n */\nexport var ColumnDirective = vueDefineComponent({\n render: function () {\n return;\n },\n methods: {\n getTag: function () {\n return 'e-column';\n }\n }\n});\nexport var ColumnPlugin = {\n name: 'e-column',\n install: function (Vue) {\n Vue.component(ColumnPlugin.name, ColumnDirective);\n }\n};\n","import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { QueryBuilder } from '@syncfusion/ej2-querybuilder';\nimport { ColumnsDirective, ColumnDirective, ColumnsPlugin, ColumnPlugin } from './columns.directive';\nexport var properties = ['isLazyUpdate', 'plugins', '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'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents the VueJS QueryBuilder Component.\n * ```html\n * <ejs-querybuilder></ejs-querybuilder>\n * ```\n */\nexport var QueryBuilderComponent = vueDefineComponent({\n name: 'QueryBuilderComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new QueryBuilder({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: true,\n hasInjectedModules: false,\n tagMapper: { \"e-columns\": \"e-column\" },\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n addGroups: function (groups, groupID) {\n return this.ej2Instances.addGroups(groups, groupID);\n },\n addRules: function (rule, groupID) {\n return this.ej2Instances.addRules(rule, groupID);\n },\n deleteGroup: function (target) {\n return this.ej2Instances.deleteGroup(target);\n },\n deleteGroups: function (groupIdColl) {\n return this.ej2Instances.deleteGroups(groupIdColl);\n },\n deleteRules: function (ruleIdColl) {\n return this.ej2Instances.deleteRules(ruleIdColl);\n },\n getDataManagerQuery: function (rule) {\n return this.ej2Instances.getDataManagerQuery(rule);\n },\n getFilteredRecords: function () {\n return this.ej2Instances.getFilteredRecords();\n },\n getGroup: function (target) {\n return this.ej2Instances.getGroup(target);\n },\n getOperators: function (field) {\n return this.ej2Instances.getOperators(field);\n },\n getPredicate: function (rule) {\n return this.ej2Instances.getPredicate(rule);\n },\n getRule: function (elem) {\n return this.ej2Instances.getRule(elem);\n },\n getRules: function () {\n return this.ej2Instances.getRules();\n },\n getRulesFromSql: function (sqlString, sqlLocale) {\n return this.ej2Instances.getRulesFromSql(sqlString, sqlLocale);\n },\n getSqlFromRules: function (rule, allowEscape, sqlLocale) {\n return this.ej2Instances.getSqlFromRules(rule, allowEscape, sqlLocale);\n },\n getValidRules: function (currentRule) {\n return this.ej2Instances.getValidRules(currentRule);\n },\n getValues: function (field) {\n return this.ej2Instances.getValues(field);\n },\n notifyChange: function (value, element, type) {\n return this.ej2Instances.notifyChange(value, element, type);\n },\n reset: function () {\n return this.ej2Instances.reset();\n },\n setRules: function (rule) {\n return this.ej2Instances.setRules(rule);\n },\n setRulesFromSql: function (sqlString, sqlLocale) {\n return this.ej2Instances.setRulesFromSql(sqlString, sqlLocale);\n },\n validateFields: function () {\n return this.ej2Instances.validateFields();\n },\n }\n});\nexport var QueryBuilderPlugin = {\n name: 'ejs-querybuilder',\n install: function (Vue) {\n Vue.component(QueryBuilderPlugin.name, QueryBuilderComponent);\n Vue.component(ColumnPlugin.name, ColumnDirective);\n Vue.component(ColumnsPlugin.name, ColumnsDirective);\n }\n};\n"],"names":["ColumnsDirective","vueDefineComponent","inject","custom","default","render","createElement","isExecute","h","gh","slots","isNullOrUndefined","this","$slots","class","updated","methods","getTag","ColumnsPlugin","name","install","Vue","component","ColumnDirective","ColumnPlugin","properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","props_1","QueryBuilderComponent","mixins","ComponentBase","emits","provide","data","ej2Instances","QueryBuilder","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","e-columns","tagNameMapper","isVue3","templateCollection","created","bindProperties","_setProperties","setProperties","clearTemplate","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","addGroups","groups","groupID","addRules","rule","deleteGroup","target","deleteGroups","groupIdColl","deleteRules","ruleIdColl","getDataManagerQuery","getFilteredRecords","getGroup","getOperators","field","getPredicate","getRule","elem","getRules","getRulesFromSql","sqlString","sqlLocale","getSqlFromRules","allowEscape","getValidRules","currentRule","getValues","notifyChange","value","element","type","reset","setRules","setRulesFromSql","validateFields","QueryBuilderPlugin"],"mappings":"iaAEO,IAAIA,EAAmBC,sBAC1BC,QAAUC,QAAUC,QAAS,OAC7BC,OAAQ,SAAUC,GACd,IAAKC,YAAW,CACZ,IAAIC,EAAKD,YAAiBD,EAALG,KACjBC,EAAQ,KAIZ,OAHKC,oBAAkBC,KAAKC,OAAOT,WAC/BM,EAASH,YAAoCK,KAAKC,OAAOT,QAApCQ,KAAKC,OAAOT,WAE9BI,EAAE,OAASM,MAAO,eAAiBJ,KAIlDK,QAAS,YACAR,aAAaK,KAAKT,QACnBS,KAAKT,UAGba,SACIC,OAAQ,WACJ,MAAO,gBAIRC,GACPC,KAAM,YACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUJ,EA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5F,KAAKiC,aAAauE,gBAAgBb,EAAWC,IAExDa,eAAgB,WACZ,OAAOzG,KAAKiC,aAAawE,qBAI1BC,GACPnG,KAAM,mBACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUgG,EAAmBnG,KAAMoB,GACvClB,EAAIC,UAAUE,EAAaL,KAAMI,GACjCF,EAAIC,UAAUJ,EAAcC,KAAMnB"}
|
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import { QueryBuilder } from '@syncfusion/ej2-querybuilder';
|
|
2
|
-
import { ComponentBase,
|
|
3
|
-
import { Vue } from 'vue-class-component';
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
4
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
|
-
import Vue$1 from 'vue';
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
-
};
|
|
13
|
-
// {{VueImport}}
|
|
14
|
-
let vueImport;
|
|
15
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
16
|
-
vueImport = Vue;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
vueImport = Vue$1;
|
|
20
|
-
}
|
|
21
|
-
let ColumnsDirective =
|
|
22
|
-
/* Start Options({
|
|
23
|
-
inject: {
|
|
24
|
-
custom: {
|
|
25
|
-
default: null
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}) End */
|
|
29
|
-
class ColumnsDirective extends vueImport {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(arguments);
|
|
32
|
-
}
|
|
5
|
+
let ColumnsDirective = vueDefineComponent({
|
|
6
|
+
inject: { custom: { default: null } },
|
|
33
7
|
render(createElement) {
|
|
34
8
|
if (!isExecute) {
|
|
35
9
|
let h = !isExecute ? gh : createElement;
|
|
@@ -40,30 +14,22 @@ class ColumnsDirective extends vueImport {
|
|
|
40
14
|
return h('div', { class: 'e-directive' }, slots);
|
|
41
15
|
}
|
|
42
16
|
return;
|
|
43
|
-
}
|
|
17
|
+
},
|
|
44
18
|
updated() {
|
|
45
19
|
if (!isExecute && this.custom) {
|
|
46
20
|
this.custom();
|
|
47
21
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
ColumnsDirective = __decorate([
|
|
54
|
-
EJComponentDecorator({}, isExecute)
|
|
55
|
-
/* Start Options({
|
|
56
|
-
inject: {
|
|
57
|
-
custom: {
|
|
58
|
-
default: null
|
|
59
|
-
}
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
getTag() {
|
|
25
|
+
return 'e-columns';
|
|
60
26
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
27
|
+
}
|
|
28
|
+
});
|
|
63
29
|
const ColumnsPlugin = {
|
|
64
30
|
name: 'e-columns',
|
|
65
|
-
install(Vue
|
|
66
|
-
Vue
|
|
31
|
+
install(Vue) {
|
|
32
|
+
Vue.component(ColumnsPlugin.name, ColumnsDirective);
|
|
67
33
|
}
|
|
68
34
|
};
|
|
69
35
|
/**
|
|
@@ -78,31 +44,23 @@ const ColumnsPlugin = {
|
|
|
78
44
|
* </ejs-querybuilder>
|
|
79
45
|
* ```
|
|
80
46
|
*/
|
|
81
|
-
let ColumnDirective =
|
|
47
|
+
let ColumnDirective = vueDefineComponent({
|
|
82
48
|
render() {
|
|
83
49
|
return;
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
getTag() {
|
|
53
|
+
return 'e-column';
|
|
54
|
+
}
|
|
84
55
|
}
|
|
85
|
-
|
|
86
|
-
return 'e-column';
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
ColumnDirective = __decorate([
|
|
90
|
-
EJComponentDecorator({}, isExecute)
|
|
91
|
-
], ColumnDirective);
|
|
56
|
+
});
|
|
92
57
|
const ColumnPlugin = {
|
|
93
58
|
name: 'e-column',
|
|
94
|
-
install(Vue
|
|
95
|
-
Vue
|
|
59
|
+
install(Vue) {
|
|
60
|
+
Vue.component(ColumnPlugin.name, ColumnDirective);
|
|
96
61
|
}
|
|
97
62
|
};
|
|
98
63
|
|
|
99
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
100
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
101
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
102
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
103
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
104
|
-
};
|
|
105
|
-
// {{VueImport}}
|
|
106
64
|
const properties = ['isLazyUpdate', 'plugins', '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'];
|
|
107
65
|
const modelProps = [];
|
|
108
66
|
const testProp = getProps({ props: properties });
|
|
@@ -119,79 +77,33 @@ for (let props of modelProps) {
|
|
|
119
77
|
* <ejs-querybuilder></ejs-querybuilder>
|
|
120
78
|
* ```
|
|
121
79
|
*/
|
|
122
|
-
let QueryBuilderComponent =
|
|
123
|
-
|
|
80
|
+
let QueryBuilderComponent = vueDefineComponent({
|
|
81
|
+
name: 'QueryBuilderComponent',
|
|
82
|
+
mixins: [ComponentBase],
|
|
124
83
|
props: props,
|
|
125
84
|
watch: watch,
|
|
126
85
|
emits: emitProbs,
|
|
127
|
-
provide:
|
|
86
|
+
provide() { return { custom: this.custom }; },
|
|
87
|
+
data() {
|
|
128
88
|
return {
|
|
129
|
-
|
|
89
|
+
ej2Instances: new QueryBuilder({}),
|
|
90
|
+
propKeys: properties,
|
|
91
|
+
models: modelProps,
|
|
92
|
+
hasChildDirective: true,
|
|
93
|
+
hasInjectedModules: false,
|
|
94
|
+
tagMapper: { "e-columns": "e-column" },
|
|
95
|
+
tagNameMapper: {},
|
|
96
|
+
isVue3: !isExecute,
|
|
97
|
+
templateCollection: {},
|
|
130
98
|
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
class QueryBuilderComponent extends ComponentBase {
|
|
134
|
-
constructor() {
|
|
135
|
-
super(arguments);
|
|
136
|
-
this.propKeys = properties;
|
|
137
|
-
this.models = modelProps;
|
|
138
|
-
this.hasChildDirective = true;
|
|
139
|
-
this.hasInjectedModules = false;
|
|
140
|
-
this.tagMapper = { "e-columns": "e-column" };
|
|
141
|
-
this.tagNameMapper = {};
|
|
142
|
-
this.isVue3 = !isExecute;
|
|
143
|
-
this.ej2Instances = new QueryBuilder({});
|
|
99
|
+
},
|
|
100
|
+
created() {
|
|
144
101
|
this.bindProperties();
|
|
145
102
|
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
146
103
|
this.ej2Instances.setProperties = this.setProperties;
|
|
147
104
|
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
148
105
|
this.updated = this.updated;
|
|
149
|
-
}
|
|
150
|
-
clearTemplate(templateNames) {
|
|
151
|
-
if (!templateNames) {
|
|
152
|
-
templateNames = Object.keys(this.templateCollection || {});
|
|
153
|
-
}
|
|
154
|
-
if (templateNames.length && this.templateCollection) {
|
|
155
|
-
for (let tempName of templateNames) {
|
|
156
|
-
let elementCollection = this.templateCollection[tempName];
|
|
157
|
-
if (elementCollection && elementCollection.length) {
|
|
158
|
-
for (let ele of elementCollection) {
|
|
159
|
-
let destroy = getValue('__vue__.$destroy', ele);
|
|
160
|
-
if (destroy) {
|
|
161
|
-
ele.__vue__.$destroy();
|
|
162
|
-
}
|
|
163
|
-
if (ele.innerHTML) {
|
|
164
|
-
ele.innerHTML = '';
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
delete this.templateCollection[tempName];
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
setProperties(prop, muteOnChange) {
|
|
173
|
-
if (this.isVue3) {
|
|
174
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
175
|
-
}
|
|
176
|
-
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
177
|
-
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
178
|
-
}
|
|
179
|
-
if (prop && this.models && this.models.length) {
|
|
180
|
-
Object.keys(prop).map((key) => {
|
|
181
|
-
this.models.map((model) => {
|
|
182
|
-
if ((key === model) && !(/datasource/i.test(key))) {
|
|
183
|
-
if (this.isVue3) {
|
|
184
|
-
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
this.$emit('update:' + key, prop[key]);
|
|
188
|
-
this.$emit('modelchanged', prop[key]);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
}
|
|
106
|
+
},
|
|
195
107
|
render(createElement) {
|
|
196
108
|
let h = !isExecute ? gh : createElement;
|
|
197
109
|
let slots = null;
|
|
@@ -199,95 +111,127 @@ class QueryBuilderComponent extends ComponentBase {
|
|
|
199
111
|
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
200
112
|
}
|
|
201
113
|
return h('div', slots);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
114
|
+
},
|
|
115
|
+
methods: {
|
|
116
|
+
clearTemplate(templateNames) {
|
|
117
|
+
if (!templateNames) {
|
|
118
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
119
|
+
}
|
|
120
|
+
if (templateNames.length && this.templateCollection) {
|
|
121
|
+
for (let tempName of templateNames) {
|
|
122
|
+
let elementCollection = this.templateCollection[tempName];
|
|
123
|
+
if (elementCollection && elementCollection.length) {
|
|
124
|
+
for (let ele of elementCollection) {
|
|
125
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
126
|
+
if (destroy) {
|
|
127
|
+
ele.__vue__.$destroy();
|
|
128
|
+
}
|
|
129
|
+
if (ele.innerHTML) {
|
|
130
|
+
ele.innerHTML = '';
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
delete this.templateCollection[tempName];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
setProperties(prop, muteOnChange) {
|
|
139
|
+
if (this.isVue3) {
|
|
140
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
141
|
+
}
|
|
142
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
143
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
144
|
+
}
|
|
145
|
+
if (prop && this.models && this.models.length) {
|
|
146
|
+
Object.keys(prop).map((key) => {
|
|
147
|
+
this.models.map((model) => {
|
|
148
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
149
|
+
if (this.isVue3) {
|
|
150
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
this.$emit('update:' + key, prop[key]);
|
|
154
|
+
this.$emit('modelchanged', prop[key]);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
custom() {
|
|
162
|
+
this.updated();
|
|
163
|
+
},
|
|
164
|
+
addGroups(groups, groupID) {
|
|
165
|
+
return this.ej2Instances.addGroups(groups, groupID);
|
|
166
|
+
},
|
|
167
|
+
addRules(rule, groupID) {
|
|
168
|
+
return this.ej2Instances.addRules(rule, groupID);
|
|
169
|
+
},
|
|
170
|
+
deleteGroup(target) {
|
|
171
|
+
return this.ej2Instances.deleteGroup(target);
|
|
172
|
+
},
|
|
173
|
+
deleteGroups(groupIdColl) {
|
|
174
|
+
return this.ej2Instances.deleteGroups(groupIdColl);
|
|
175
|
+
},
|
|
176
|
+
deleteRules(ruleIdColl) {
|
|
177
|
+
return this.ej2Instances.deleteRules(ruleIdColl);
|
|
178
|
+
},
|
|
179
|
+
getDataManagerQuery(rule) {
|
|
180
|
+
return this.ej2Instances.getDataManagerQuery(rule);
|
|
181
|
+
},
|
|
182
|
+
getFilteredRecords() {
|
|
183
|
+
return this.ej2Instances.getFilteredRecords();
|
|
184
|
+
},
|
|
185
|
+
getGroup(target) {
|
|
186
|
+
return this.ej2Instances.getGroup(target);
|
|
187
|
+
},
|
|
188
|
+
getOperators(field) {
|
|
189
|
+
return this.ej2Instances.getOperators(field);
|
|
190
|
+
},
|
|
191
|
+
getPredicate(rule) {
|
|
192
|
+
return this.ej2Instances.getPredicate(rule);
|
|
193
|
+
},
|
|
194
|
+
getRule(elem) {
|
|
195
|
+
return this.ej2Instances.getRule(elem);
|
|
196
|
+
},
|
|
197
|
+
getRules() {
|
|
198
|
+
return this.ej2Instances.getRules();
|
|
199
|
+
},
|
|
200
|
+
getRulesFromSql(sqlString, sqlLocale) {
|
|
201
|
+
return this.ej2Instances.getRulesFromSql(sqlString, sqlLocale);
|
|
202
|
+
},
|
|
203
|
+
getSqlFromRules(rule, allowEscape, sqlLocale) {
|
|
204
|
+
return this.ej2Instances.getSqlFromRules(rule, allowEscape, sqlLocale);
|
|
205
|
+
},
|
|
206
|
+
getValidRules(currentRule) {
|
|
207
|
+
return this.ej2Instances.getValidRules(currentRule);
|
|
208
|
+
},
|
|
209
|
+
getValues(field) {
|
|
210
|
+
return this.ej2Instances.getValues(field);
|
|
211
|
+
},
|
|
212
|
+
notifyChange(value, element, type) {
|
|
213
|
+
return this.ej2Instances.notifyChange(value, element, type);
|
|
214
|
+
},
|
|
215
|
+
reset() {
|
|
216
|
+
return this.ej2Instances.reset();
|
|
217
|
+
},
|
|
218
|
+
setRules(rule) {
|
|
219
|
+
return this.ej2Instances.setRules(rule);
|
|
220
|
+
},
|
|
221
|
+
setRulesFromSql(sqlString, sqlLocale) {
|
|
222
|
+
return this.ej2Instances.setRulesFromSql(sqlString, sqlLocale);
|
|
223
|
+
},
|
|
224
|
+
validateFields() {
|
|
225
|
+
return this.ej2Instances.validateFields();
|
|
226
|
+
},
|
|
227
|
+
}
|
|
228
|
+
});
|
|
285
229
|
const QueryBuilderPlugin = {
|
|
286
230
|
name: 'ejs-querybuilder',
|
|
287
|
-
install(Vue
|
|
288
|
-
Vue
|
|
289
|
-
Vue
|
|
290
|
-
Vue
|
|
231
|
+
install(Vue) {
|
|
232
|
+
Vue.component(QueryBuilderPlugin.name, QueryBuilderComponent);
|
|
233
|
+
Vue.component(ColumnPlugin.name, ColumnDirective);
|
|
234
|
+
Vue.component(ColumnsPlugin.name, ColumnsDirective);
|
|
291
235
|
}
|
|
292
236
|
};
|
|
293
237
|
|