@syncfusion/ej2-vue-querybuilder 20.3.56 → 20.4.38

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 CHANGED
@@ -2,24 +2,6 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
- ## 20.3.50 (2022-10-18)
6
-
7
- ### QueryBuilder
8
-
9
- #### Bug Fixes
10
-
11
- - `#I408324` - Issue with Script errors throwing in validating query builder fields while double click has been fixed.
12
-
13
- ## 20.3.49 (2022-10-11)
14
-
15
- ### QueryBuilder
16
-
17
- #### Bug Fixes
18
-
19
- - `#I408658` - Issue with Value getting removed while closing fields Dropdown without change the value when we set rule property of query builder has been fixed
20
-
21
- ## 20.3.47 (2022-09-29)
22
-
23
5
  ### QueryBuilder
24
6
 
25
7
  #### Bug Fixes
package/README.md CHANGED
@@ -1,65 +1,147 @@
1
- # ej2-vue-querybuilder
1
+ # Vue Query Builder Component (Vue Filter Component)
2
2
 
3
- The [Vue Query Builder](https://www.syncfusion.com/vue-ui-components/vue-query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm) is a rich and responsive UI for filtering large amounts of data by creating or editing conditions that can be combined with data visualization controls like DataGrid and Charts to view the filtered data. It outputs structured JSON filters that can be easily parsed to create SQL queries. It allows you to create conditions and group them using AND/OR logic.
3
+ The [Vue Query Builder](https://www.syncfusion.com/vue-ui-components/vue-query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm) is a rich and responsive UI for filtering large amounts of data by creating or editing conditions that can be combined with data visualization controls like DataGrid and Charts to view the filtered data. It outputs structured JSON that can be easily parsed to create SQL queries. It allows you to create conditions and group them using AND/OR logic.
4
4
 
5
- ![QueryBuilder](https://ej2.syncfusion.com/products/images/querybuilder/readme.gif)
5
+ <p align="center">
6
+ <a href="https://ej2.syncfusion.com/vue/documentation/query-builder/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm">Getting started</a> .
7
+ <a href="https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm#/bootstrap5/query-builder/default">Online demos</a> .
8
+ <a href="https://www.syncfusion.com/vue-components/vue-query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm">Learn more</a>
9
+ </p>
6
10
 
7
- > This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA (https://www.syncfusion.com/eula/es/). To acquire a license, you can purchase one at https://www.syncfusion.com/sales/products or start a free 30-day trial here (https://www.syncfusion.com/account/manage-trials/start-trials).
11
+ ![Vue Query Builder Component](https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/vue/vue-query-builder.png)
8
12
 
9
- > A free community license (https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
13
+ <p align="center">
14
+ Trusted by the world's leading companies
15
+ <a href="https://www.syncfusion.com">
16
+ <img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/syncfusion/syncfusion-trusted-companies.webp" alt="Bootstrap logo">
17
+ </a>
18
+ </p>
10
19
 
11
20
  ## Setup
12
21
 
13
- To install `QueryBuilder` and its dependent packages, use the following command
22
+ ### Create a Vue Application
14
23
 
15
- ```sh
16
- npm install @syncfusion/ej2-vue-querybuilder
24
+ You can use [`Vue CLI`](https://github.com/vuejs/vue-cli) to setup your Vue 2 application.To install Vue CLI use the following commands.
25
+
26
+ ```bash
27
+ npm install -g @vue/cli
28
+ vue create quickstart
29
+ cd quickstart
30
+ npm run serve
17
31
  ```
32
+ Initiating a new project prompts us to choose the type of project to be used for the current application. Select the option `Default ([Vue 2] babel, eslint)` from the menu.
18
33
 
19
- ## Components included
34
+ ### Adding Syncfusion Vue Query Builder package
20
35
 
21
- Following list of components are available in the package.
36
+ All Syncfusion Vue packages are published in [npmjs.com](https://www.npmjs.com/~syncfusionorg) registry. To install vue query builder package, use the following command.
22
37
 
23
- * QueryBuilder - `QueryBuilder` Query Builder component is a graphical user interface that allows users to create and edit filters. It outputs a structured JSON of filters that can be easily parsed to create SQL. It is integrated with Data Manager to communicate with data sources and returns the desired result based on the provided filter. It supports data binding, templates, validation, and horizontal and vertical orientation.
38
+ ```bash
39
+ npm install @syncfusion/ej2-vue-querybuilder --save
40
+ ```
24
41
 
25
- * [Getting Started](https://ej2.syncfusion.com/vue/documentation/querybuilder/getting-started?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
26
- * [View Online Demos](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm#/material/querybuilder/default.html)
27
- * [Product Page](https://www.syncfusion.com/vue-ui-components/vue-query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
42
+ ### Registering Vue Query Builder component
28
43
 
29
- ## Supported Frameworks
44
+ You can register the vue query builder component in your application by using the **Vue.use()**. Refer to the code example given below.
30
45
 
31
- These components are available in following list of frameworks.
46
+ ```typescript
47
+ import { QueryBuilderPlugin } from "@syncfusion/ej2-vue-querybuilder";
48
+ Vue.use(QueryBuilderPlugin);
49
+ ```
32
50
 
33
- 1. [Angular Query Builder](https://www.syncfusion.com/angular-ui-components/angular-query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
34
- 2. [React Query Builder](https://www.syncfusion.com/react-ui-components/react-query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
35
- 3. [JavaScript Query Builder](https://www.syncfusion.com/javascript-ui-controls/js-query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
36
- 4. [ASP.NET Core Query Builder](https://www.syncfusion.com/aspnet-core-ui-controls/query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
37
- 5. [ASP.NET MVC Query Builder](https://www.syncfusion.com/aspnet-mvc-ui-controls/query-builder?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
51
+ > Registering **QueryBuilderPlugin** in vue, will register the query builder component along with its required child directives globally.
38
52
 
39
- ## Key Features
53
+ ### Adding CSS references for Query Builder
40
54
 
41
- ### QueryBuilder
55
+ Add CSS references needed for Query Builder in **style** section of the **App.vue** file from **../node_modules/@syncfusion** package folder.
42
56
 
43
- - **Data binding**: It auto populates the data source and maps the data to the appropriate fields.
57
+ ```html
58
+ <style>
59
+ @import "../node_modules/@syncfusion/ej2-base/styles/bootstrap5.css";
60
+ @import "../node_modules/@syncfusion/ej2-buttons/styles/bootstrap5.css";
61
+ @import "../node_modules/@syncfusion/ej2-splitbuttons/styles/bootstrap5.css";
62
+ @import "../node_modules/@syncfusion/ej2-dropdowns/styles/bootstrap5.css";
63
+ @import "../node_modules/@syncfusion/ej2-inputs/styles/bootstrap5.css";
64
+ @import "../node_modules/@syncfusion/ej2-lists/styles/bootstrap5.css";
65
+ @import "../node_modules/@syncfusion/ej2-popups/styles/bootstrap5.css";
66
+ @import "../node_modules/@syncfusion/ej2-calendars/styles/bootstrap5.css";
67
+ @import "../node_modules/@syncfusion/ej2-vue-querybuilder/styles/bootstrap5.css";
68
+ </style>
69
+ ```
44
70
 
45
- - **Template**: Supports templates and it is applicable for all input components.
71
+ ## Add Syncfusion Vue Query Builder component
72
+
73
+ Add the Syncfusion Vue Query Builder by using **ejs-querybuilder** selector in **template** section of the **App.vue** file.
74
+
75
+ ```html
76
+ <template>
77
+ <div id="app">
78
+ <ejs-querybuilder width="70%">
79
+ <e-columns>
80
+ <e-column field='EmployeeID' label='Employee ID' type='number' />
81
+ <e-column field='FirstName' label='First Name' type='string' />
82
+ <e-column field='TitleOfCourtesy' label='Title Of Courtesy' type='boolean' :values="values"/>
83
+ <e-column field='Title' label='Title' type='string' />
84
+ <e-column field='HireDate' label='Hire Date' type='date' format='dd/MM/yyyy' />
85
+ <e-column field='Country' label='Country' type='string' />
86
+ <e-column field='City' label='City' type='string' />
87
+ </e-columns>
88
+ </ejs-querybuilder>
89
+ </div>
90
+ </template>
91
+ <script>
92
+ import Vue from "vue";
93
+ import { QueryBuilderPlugin } from "@syncfusion/ej2-vue-querybuilder";
94
+ Vue.use(QueryBuilderPlugin);
95
+ export default {
96
+ data() {
97
+ return {
98
+ values: ['Mr.', 'Mrs.']
99
+ };
100
+ },
101
+ }
102
+ </script>
103
+ ```
104
+ > Refer the [Getting started with Vue3](https://ej2.syncfusion.com/vue/documentation/query-builder/getting-started-vue/) for using Syncfusion Vue components in Vue 3 applications.
46
105
 
47
- - **Queries**: Queries supports JSON/SQL rules.
48
106
 
49
- ## Support
107
+ ## Supported frameworks
50
108
 
51
- Product support is available for through following mediums.
109
+ Query Builder component is offered in the following list of frameworks.
52
110
 
53
- * Creating incident in Syncfusion [Direct-trac](https://www.syncfusion.com/support/directtrac/incidents?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm) support system or [Community forum](https://www.syncfusion.com/forums?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm).
54
- * New [GitHub issue](https://github.com/syncfusion/ej2-vue-ui-components/issues/new?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm).
55
- * Ask your query in [Stack Overflow](https://stackoverflow.com/?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm) with tag `syncfusion`, `ej2`.
111
+ | [<img src="https://ej2.syncfusion.com/github/images/js.svg" height="50" />](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[JavaScript](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github)&nbsp;&nbsp;&nbsp;&nbsp; | [<img src="https://ej2.syncfusion.com/github/images/angular.svg" height="50" />](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Angular](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | [<img src="https://ej2.syncfusion.com/github/images/react.svg" height="50" />](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[React](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | [<img src="https://ej2.syncfusion.com/github/images/netcore.svg" height="50" />](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;[ASP.NET&nbsp;Core](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)&nbsp;&nbsp; | [<img src="https://ej2.syncfusion.com/github/images/netmvc.svg" height="50" />](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;[ASP.NET&nbsp;MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)&nbsp;&nbsp; |
112
+ | :-----: | :-----: | :-----: | :-----: | :-----: |
56
113
 
57
- ## License
114
+ ## Key features
58
115
 
59
- Check the license detail [here](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/license?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm).
116
+ * [Data Sources](https://ej2.syncfusion.com/vue/documentation/query-builder/data-binding): The Query Builder can be bound to a variety of data sources, including arrays of JSON objects, complex data structures such as nested objects or arrays, and Data Manager. This allows users to filter data from a wide range of sources.
117
+ * [Template](https://ej2.syncfusion.com/vue/documentation/query-builder/templates): The Query Builder offers templates that allow users to create custom user experiences by customizing the user interface for individual values, the entire rule, and the group header. This allows users to tailor the Query Builder to their specific needs and preferences.
118
+ * [Importing and Exporting](https://ej2.syncfusion.com/vue/documentation/query-builder/import-export): The Query Builder allows users to export filters or conditions as SQL and structured JSON, and to import these filters into the Query Builder for regeneration. This makes it easy for users to save and share their filters with others.
119
+ * [Model Binding](https://ej2.syncfusion.com/vue/documentation/query-builder/model-binding): The Query Builder allows users to bind properties for the components used in the field, operator, and value user interfaces, allowing users to define the behavior and appearance of these components.
120
+ * [RTL support](https://ej2.syncfusion.com/vue/documentation/query-builder/how-to/rtl): The Query Builder supports RTL (right-to-left) mode, which aligns content from right to left. This is useful for languages that are written in a right-to-left script, such as Arabic.
121
+ * [Localization](https://ej2.syncfusion.com/vue/documentation/query-builder/global-local): The Query Builder provides inherent support for localization, allowing users to easily translate the user interface into different languages. This makes the Query Builder more accessible to users who speak languages other than English.
122
+ * Rich and responsive UI: The Query Builder provides a user-friendly interface for creating and editing conditions, making it easy for users to filter large amounts of data.
123
+ * AND/OR logic: The Query Builder allows users to group conditions using AND/OR logic, giving them greater control over the filtered data.
124
+ * Integration with data visualization controls: The Query Builder can be used in conjunction with data visualization controls like DataGrid and Charts to view the filtered data, providing a more comprehensive view of the data.
125
+ * Easy to use: The Query Builder is easy to use and can be easily integrated into any project, making it a convenient and powerful tool for filtering data.
126
+
127
+ ## Support
128
+
129
+ Product support is available through the following mediums.
130
+
131
+ * [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
132
+ * [Community forum](https://www.syncfusion.com/forums?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
133
+ * [GitHub issues](https://github.com/syncfusion/ej2-vue-ui-components/issues/new?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
134
+ * [Request feature or report bug](https://www.syncfusion.com/feedback/vue?utm_source=npm&utm_medium=listing&utm_campaign=react-query-builder-npm)
135
+ * Live chat
60
136
 
61
137
  ## Changelog
62
138
 
63
- Check the changelog [here](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/components/querybuilder/CHANGELOG.md?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm)
139
+ Check the changelog [here](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/components/querybuilder/CHANGELOG.md?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm). Get minor improvements and bug fixes every week to stay up to date with frequent updates.
140
+
141
+ ## License and copyright
142
+
143
+ > This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 80+ [Vue UI components](https://www.syncfusion.com/vue-components), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).
144
+ > A free community [license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
145
+ See [LICENSE FILE](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/license?utm_source=npm&utm_medium=listing&utm_campaign=vue-query-builder-npm) for more info.
64
146
 
65
147
  © Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * filename: ej2-vue-querybuilder.umd.min.js
3
- * version : 20.3.56
3
+ * version : 20.4.38
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("vue"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-querybuilder","vue","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Querybuilder,e.Vue,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,o,r){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;var s=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),u=function(e,t,n,o){var r,s=arguments.length,u=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(u=(s<3?r(u):s>3?r(t,n,u):r(t,n))||u);return s>3&&u&&Object.defineProperty(t,n,u),u},i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){},t=u([o.EJComponentDecorator({})],t)}(n),a={name:"e-columns",install:function(e){e.component(a.name,i)}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){},t=u([o.EJComponentDecorator({})],t)}(n),l={name:"e-column",install:function(e){e.component(l.name,c)}},p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),f=function(e,t,n,o){var r,s=arguments.length,u=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(u=(s<3?r(u):s>3?r(t,n,u):r(t,n))||u);return s>3&&u&&Object.defineProperty(t,n,u),u},d=["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"],y=[],h=function(e){function n(){var n=e.call(this,arguments)||this;return n.propKeys=d,n.models=y,n.hasChildDirective=!0,n.hasInjectedModules=!1,n.tagMapper={"e-columns":"e-column"},n.tagNameMapper={},n.ej2Instances=new t.QueryBuilder({}),n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n.ej2Instances.clearTemplate=n.clearTemplate,n.updated=n.updated,n}return p(n,e),n.prototype.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 o=n[t],s=this.templateCollection[o];if(s&&s.length){for(var u=0,i=s;u<i.length;u++){var a=i[u];r.getValue("__vue__.$destroy",a)&&a.__vue__.$destroy(),a.innerHTML&&(a.innerHTML="")}delete this.templateCollection[o]}}},n.prototype.setProperties=function(e,t){var n=this;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(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},n.prototype.render=function(e){return e("div",this.$slots.default)},n.prototype.custom=function(){this.updated()},n.prototype.addGroups=function(e,t){return this.ej2Instances.addGroups(e,t)},n.prototype.addRules=function(e,t){return this.ej2Instances.addRules(e,t)},n.prototype.deleteGroup=function(e){return this.ej2Instances.deleteGroup(e)},n.prototype.deleteGroups=function(e){return this.ej2Instances.deleteGroups(e)},n.prototype.deleteRules=function(e){return this.ej2Instances.deleteRules(e)},n.prototype.getDataManagerQuery=function(e){return this.ej2Instances.getDataManagerQuery(e)},n.prototype.getFilteredRecords=function(){return this.ej2Instances.getFilteredRecords()},n.prototype.getGroup=function(e){return this.ej2Instances.getGroup(e)},n.prototype.getOperators=function(e){return this.ej2Instances.getOperators(e)},n.prototype.getPredicate=function(e){return this.ej2Instances.getPredicate(e)},n.prototype.getRule=function(e){return this.ej2Instances.getRule(e)},n.prototype.getRules=function(){return this.ej2Instances.getRules()},n.prototype.getRulesFromSql=function(e){return this.ej2Instances.getRulesFromSql(e)},n.prototype.getSqlFromRules=function(e,t){return this.ej2Instances.getSqlFromRules(e,t)},n.prototype.getValidRules=function(e){return this.ej2Instances.getValidRules(e)},n.prototype.getValues=function(e){return this.ej2Instances.getValues(e)},n.prototype.notifyChange=function(e,t,n){return this.ej2Instances.notifyChange(e,t,n)},n.prototype.reset=function(){return this.ej2Instances.reset()},n.prototype.setRules=function(e){return this.ej2Instances.setRules(e)},n.prototype.setRulesFromSql=function(e){return this.ej2Instances.setRulesFromSql(e)},n.prototype.validateFields=function(){return this.ej2Instances.validateFields()},n=f([o.EJComponentDecorator({props:d})],n)}(o.ComponentBase),m={name:"ejs-querybuilder",install:function(e){e.component(m.name,h),e.component(l.name,c),e.component(a.name,i)}};e.ColumnsDirective=i,e.ColumnDirective=c,e.ColumnsPlugin=a,e.ColumnPlugin=l,e.QueryBuilderComponent=h,e.QueryBuilderPlugin=m,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
10
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-querybuilder"),require("vue"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-querybuilder","vue","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Querybuilder,e.Vue,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,o,r){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;var s=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),u=function(e,t,n,o){var r,s=arguments.length,u=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(u=(s<3?r(u):s>3?r(t,n,u):r(t,n))||u);return s>3&&u&&Object.defineProperty(t,n,u),u},i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){},t=u([o.EJComponentDecorator({})],t)}(n),a={name:"e-columns",install:function(e){e.component(a.name,i)}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){},t=u([o.EJComponentDecorator({})],t)}(n),l={name:"e-column",install:function(e){e.component(l.name,c)}},p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),f=function(e,t,n,o){var r,s=arguments.length,u=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,o);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(u=(s<3?r(u):s>3?r(t,n,u):r(t,n))||u);return s>3&&u&&Object.defineProperty(t,n,u),u},d=["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"],y=[],h=function(e){function n(){var n=e.call(this,arguments)||this;return n.propKeys=d,n.models=y,n.hasChildDirective=!0,n.hasInjectedModules=!1,n.tagMapper={"e-columns":"e-column"},n.tagNameMapper={},n.ej2Instances=new t.QueryBuilder({}),n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n.ej2Instances.clearTemplate=n.clearTemplate,n.updated=n.updated,n}return p(n,e),n.prototype.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 o=n[t],s=this.templateCollection[o];if(s&&s.length){for(var u=0,i=s;u<i.length;u++){var a=i[u];r.getValue("__vue__.$destroy",a)&&a.__vue__.$destroy(),a.innerHTML&&(a.innerHTML="")}delete this.templateCollection[o]}}},n.prototype.setProperties=function(e,t){var n=this;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(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},n.prototype.render=function(e){return e("div",this.$slots.default)},n.prototype.custom=function(){this.updated()},n.prototype.addGroups=function(e,t){return this.ej2Instances.addGroups(e,t)},n.prototype.addRules=function(e,t){return this.ej2Instances.addRules(e,t)},n.prototype.deleteGroup=function(e){return this.ej2Instances.deleteGroup(e)},n.prototype.deleteGroups=function(e){return this.ej2Instances.deleteGroups(e)},n.prototype.deleteRules=function(e){return this.ej2Instances.deleteRules(e)},n.prototype.getDataManagerQuery=function(e){return this.ej2Instances.getDataManagerQuery(e)},n.prototype.getFilteredRecords=function(){return this.ej2Instances.getFilteredRecords()},n.prototype.getGroup=function(e){return this.ej2Instances.getGroup(e)},n.prototype.getOperators=function(e){return this.ej2Instances.getOperators(e)},n.prototype.getPredicate=function(e){return this.ej2Instances.getPredicate(e)},n.prototype.getRule=function(e){return this.ej2Instances.getRule(e)},n.prototype.getRules=function(){return this.ej2Instances.getRules()},n.prototype.getRulesFromSql=function(e,t){return this.ej2Instances.getRulesFromSql(e,t)},n.prototype.getSqlFromRules=function(e,t,n){return this.ej2Instances.getSqlFromRules(e,t,n)},n.prototype.getValidRules=function(e){return this.ej2Instances.getValidRules(e)},n.prototype.getValues=function(e){return this.ej2Instances.getValues(e)},n.prototype.notifyChange=function(e,t,n){return this.ej2Instances.notifyChange(e,t,n)},n.prototype.reset=function(){return this.ej2Instances.reset()},n.prototype.setRules=function(e){return this.ej2Instances.setRules(e)},n.prototype.setRulesFromSql=function(e,t){return this.ej2Instances.setRulesFromSql(e,t)},n.prototype.validateFields=function(){return this.ej2Instances.validateFields()},n=f([o.EJComponentDecorator({props:d})],n)}(o.ComponentBase),m={name:"ejs-querybuilder",install:function(e){e.component(m.name,h),e.component(l.name,c),e.component(a.name,i)}};e.ColumnsDirective=i,e.ColumnDirective=c,e.ColumnsPlugin=a,e.ColumnPlugin=l,e.QueryBuilderComponent=h,e.QueryBuilderPlugin=m,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) {\n return this.ej2Instances.getRulesFromSql(sqlString);\n };\n QueryBuilderComponent.prototype.getSqlFromRules = function (rule, allowEscape) {\n return this.ej2Instances.getSqlFromRules(rule, allowEscape);\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) {\n return this.ej2Instances.setRulesFromSql(sqlString);\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","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,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,OAAO/F,KAAK0C,aAAaoD,gBAAgBjB,EAAMkB,IAEnD/D,EAAsB9B,UAAU8F,cAAgB,SAAUC,GACtD,OAAOjG,KAAK0C,aAAasD,cAAcC,IAE3CjE,EAAsB9B,UAAUgG,UAAY,SAAUX,GAClD,OAAOvF,KAAK0C,aAAawD,UAAUX,IAEvCvD,EAAsB9B,UAAUiG,aAAe,SAAUC,EAAOC,EAASC,GACrE,OAAOtG,KAAK0C,aAAayD,aAAaC,EAAOC,EAASC,IAE1DtE,EAAsB9B,UAAUqG,MAAQ,WACpC,OAAOvG,KAAK0C,aAAa6D,SAE7BvE,EAAsB9B,UAAUsG,SAAW,SAAU3B,GACjD,OAAO7E,KAAK0C,aAAa8D,SAAS3B,IAEtC7C,EAAsB9B,UAAUuG,gBAAkB,SAAUZ,GACxD,OAAO7F,KAAK0C,aAAa+D,gBAAgBZ,IAE7C7D,EAAsB9B,UAAUwG,eAAiB,WAC7C,OAAO1G,KAAK0C,aAAagE,kBAE7B1E,EAAwB5B,GACpBkB,wBACIqF,MAAO7E,KAEZE,IAEL4E,iBAESC,GACPpF,KAAM,mBACNC,QAAS,SAAUH,GACfA,EAAII,UAAUkF,EAAmBpF,KAAMO,GACvCT,EAAII,UAAUE,EAAaJ,KAAMG,GACjCL,EAAII,UAAUH,EAAcC,KAAMP"}
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,KAA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AQC,IAErC1D,EAAsB9B,UAAUyF,SAAW,WACvC,OAAO3F,KAAK0C,aAAaiD,YAE7B3D,EAAsB9B,UAAU0F,gBAAkB,SAAUC,EAAWC,GACnE,OAAO9F,KAAK0C,aAAakD,gBAAgBC,EAAWC,IAExD9D,EAAsB9B,UAAU6F,gBAAkB,SAAUlB,EAAMmB,EAAaF,GAC3E,OAAO9F,KAAK0C,aAAaqD,gBAAgBlB,EAAMmB,EAAaF,IAEhE9D,EAAsB9B,UAAU+F,cAAgB,SAAUC,GACtD,OAAOlG,KAAK0C,aAAauD,cAAcC,IAE3ClE,EAAsB9B,UAAUiG,UAAY,SAAUZ,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"}
@@ -239,11 +239,11 @@ class QueryBuilderComponent extends ComponentBase {
239
239
  getRules() {
240
240
  return this.ej2Instances.getRules();
241
241
  }
242
- getRulesFromSql(sqlString) {
243
- return this.ej2Instances.getRulesFromSql(sqlString);
242
+ getRulesFromSql(sqlString, sqlLocale) {
243
+ return this.ej2Instances.getRulesFromSql(sqlString, sqlLocale);
244
244
  }
245
- getSqlFromRules(rule, allowEscape) {
246
- return this.ej2Instances.getSqlFromRules(rule, allowEscape);
245
+ getSqlFromRules(rule, allowEscape, sqlLocale) {
246
+ return this.ej2Instances.getSqlFromRules(rule, allowEscape, sqlLocale);
247
247
  }
248
248
  getValidRules(currentRule) {
249
249
  return this.ej2Instances.getValidRules(currentRule);
@@ -260,8 +260,8 @@ class QueryBuilderComponent extends ComponentBase {
260
260
  setRules(rule) {
261
261
  return this.ej2Instances.setRules(rule);
262
262
  }
263
- setRulesFromSql(sqlString) {
264
- return this.ej2Instances.setRulesFromSql(sqlString);
263
+ setRulesFromSql(sqlString, sqlLocale) {
264
+ return this.ej2Instances.setRulesFromSql(sqlString, sqlLocale);
265
265
  }
266
266
  validateFields() {
267
267
  return this.ej2Instances.validateFields();
@@ -1 +1 @@
1
- {"version":3,"file":"ej2-vue-querybuilder.es2015.js","sources":["../src/es6/query-builder/columns.directive.js","../src/es6/query-builder/querybuilder.component.js"],"sourcesContent":["var __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 { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';\nimport * as Vue3 from 'vue-class-component';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport Vue from 'vue';\n// {{VueImport}}\nlet vueImport;\nif (!isExecute || parseInt(allVue.version) < 3) {\n vueImport = Vue3.Vue;\n}\nelse {\n vueImport = Vue;\n}\nlet ColumnsDirective = \n/* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n}) End */\nclass ColumnsDirective extends vueImport {\n constructor() {\n super(arguments);\n }\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let 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() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n }\n getTag() {\n return 'e-columns';\n }\n};\nColumnsDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n /* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n }) End */\n], ColumnsDirective);\nexport { ColumnsDirective };\nexport const ColumnsPlugin = {\n name: 'e-columns',\n install(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 */\nlet ColumnDirective = class ColumnDirective extends vueImport {\n render() {\n return;\n }\n getTag() {\n return 'e-column';\n }\n};\nColumnDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n], ColumnDirective);\nexport { ColumnDirective };\nexport const ColumnPlugin = {\n name: 'e-column',\n install(Vue) {\n Vue.component(ColumnPlugin.name, ColumnDirective);\n }\n};\n","var __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, getProps, gh, isExecute } 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';\n// {{VueImport}}\nexport 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'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * Represents the VueJS QueryBuilder Component.\n * ```html\n * <ejs-querybuilder></ejs-querybuilder>\n * ```\n */\nlet QueryBuilderComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n}) End */\nclass QueryBuilderComponent extends ComponentBase {\n constructor() {\n super(arguments);\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.isVue3 = !isExecute;\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 }\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let 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(prop, muteOnChange) {\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((key) => {\n this.models.map((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 render(createElement) {\n let h = !isExecute ? gh : createElement;\n let 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 custom() {\n this.updated();\n }\n addGroups(groups, groupID) {\n return this.ej2Instances.addGroups(groups, groupID);\n }\n addRules(rule, groupID) {\n return this.ej2Instances.addRules(rule, groupID);\n }\n deleteGroup(target) {\n return this.ej2Instances.deleteGroup(target);\n }\n deleteGroups(groupIdColl) {\n return this.ej2Instances.deleteGroups(groupIdColl);\n }\n deleteRules(ruleIdColl) {\n return this.ej2Instances.deleteRules(ruleIdColl);\n }\n getDataManagerQuery(rule) {\n return this.ej2Instances.getDataManagerQuery(rule);\n }\n getFilteredRecords() {\n return this.ej2Instances.getFilteredRecords();\n }\n getGroup(target) {\n return this.ej2Instances.getGroup(target);\n }\n getOperators(field) {\n return this.ej2Instances.getOperators(field);\n }\n getPredicate(rule) {\n return this.ej2Instances.getPredicate(rule);\n }\n getRule(elem) {\n return this.ej2Instances.getRule(elem);\n }\n getRules() {\n return this.ej2Instances.getRules();\n }\n getRulesFromSql(sqlString) {\n return this.ej2Instances.getRulesFromSql(sqlString);\n }\n getSqlFromRules(rule, allowEscape) {\n return this.ej2Instances.getSqlFromRules(rule, allowEscape);\n }\n getValidRules(currentRule) {\n return this.ej2Instances.getValidRules(currentRule);\n }\n getValues(field) {\n return this.ej2Instances.getValues(field);\n }\n notifyChange(value, element, type) {\n return this.ej2Instances.notifyChange(value, element, type);\n }\n reset() {\n return this.ej2Instances.reset();\n }\n setRules(rule) {\n return this.ej2Instances.setRules(rule);\n }\n setRulesFromSql(sqlString) {\n return this.ej2Instances.setRulesFromSql(sqlString);\n }\n validateFields() {\n return this.ej2Instances.validateFields();\n }\n};\nQueryBuilderComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n }) End */\n], QueryBuilderComponent);\nexport { QueryBuilderComponent };\nexport const QueryBuilderPlugin = {\n name: 'ejs-querybuilder',\n install(Vue) {\n Vue.component(QueryBuilderPlugin.name, QueryBuilderComponent);\n Vue.component(ColumnPlugin.name, ColumnDirective);\n Vue.component(ColumnsPlugin.name, ColumnsDirective);\n }\n};\n"],"names":["this","Vue3.Vue","Vue","__decorate"],"mappings":";;;;;;AAAA,IAAI,UAAU,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,UAAU,KAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;IACnF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,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ACO,MAAM,kBAAkB,GAAG;IAC9B,IAAI,EAAE,kBAAkB;IACxB,OAAO,CAACD,MAAG,EAAE;QACTA,MAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;QAC9DA,MAAG,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAClDA,MAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;KACvD;CACJ;;;;;"}
1
+ {"version":3,"file":"ej2-vue-querybuilder.es2015.js","sources":["../src/es6/query-builder/columns.directive.js","../src/es6/query-builder/querybuilder.component.js"],"sourcesContent":["var __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 { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';\nimport * as Vue3 from 'vue-class-component';\nimport { isNullOrUndefined } from '@syncfusion/ej2-base';\nimport Vue from 'vue';\n// {{VueImport}}\nlet vueImport;\nif (!isExecute || parseInt(allVue.version) < 3) {\n vueImport = Vue3.Vue;\n}\nelse {\n vueImport = Vue;\n}\nlet ColumnsDirective = \n/* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n}) End */\nclass ColumnsDirective extends vueImport {\n constructor() {\n super(arguments);\n }\n render(createElement) {\n if (!isExecute) {\n let h = !isExecute ? gh : createElement;\n let 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() {\n if (!isExecute && this.custom) {\n this.custom();\n }\n }\n getTag() {\n return 'e-columns';\n }\n};\nColumnsDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n /* Start Options({\n inject: {\n custom: {\n default: null\n }\n }\n }) End */\n], ColumnsDirective);\nexport { ColumnsDirective };\nexport const ColumnsPlugin = {\n name: 'e-columns',\n install(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 */\nlet ColumnDirective = class ColumnDirective extends vueImport {\n render() {\n return;\n }\n getTag() {\n return 'e-column';\n }\n};\nColumnDirective = __decorate([\n EJComponentDecorator({}, isExecute)\n], ColumnDirective);\nexport { ColumnDirective };\nexport const ColumnPlugin = {\n name: 'e-column',\n install(Vue) {\n Vue.component(ColumnPlugin.name, ColumnDirective);\n }\n};\n","var __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, getProps, gh, isExecute } 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';\n// {{VueImport}}\nexport 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'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * Represents the VueJS QueryBuilder Component.\n * ```html\n * <ejs-querybuilder></ejs-querybuilder>\n * ```\n */\nlet QueryBuilderComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n}) End */\nclass QueryBuilderComponent extends ComponentBase {\n constructor() {\n super(arguments);\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.isVue3 = !isExecute;\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 }\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let 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(prop, muteOnChange) {\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((key) => {\n this.models.map((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 render(createElement) {\n let h = !isExecute ? gh : createElement;\n let 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 custom() {\n this.updated();\n }\n addGroups(groups, groupID) {\n return this.ej2Instances.addGroups(groups, groupID);\n }\n addRules(rule, groupID) {\n return this.ej2Instances.addRules(rule, groupID);\n }\n deleteGroup(target) {\n return this.ej2Instances.deleteGroup(target);\n }\n deleteGroups(groupIdColl) {\n return this.ej2Instances.deleteGroups(groupIdColl);\n }\n deleteRules(ruleIdColl) {\n return this.ej2Instances.deleteRules(ruleIdColl);\n }\n getDataManagerQuery(rule) {\n return this.ej2Instances.getDataManagerQuery(rule);\n }\n getFilteredRecords() {\n return this.ej2Instances.getFilteredRecords();\n }\n getGroup(target) {\n return this.ej2Instances.getGroup(target);\n }\n getOperators(field) {\n return this.ej2Instances.getOperators(field);\n }\n getPredicate(rule) {\n return this.ej2Instances.getPredicate(rule);\n }\n getRule(elem) {\n return this.ej2Instances.getRule(elem);\n }\n getRules() {\n return this.ej2Instances.getRules();\n }\n getRulesFromSql(sqlString, sqlLocale) {\n return this.ej2Instances.getRulesFromSql(sqlString, sqlLocale);\n }\n getSqlFromRules(rule, allowEscape, sqlLocale) {\n return this.ej2Instances.getSqlFromRules(rule, allowEscape, sqlLocale);\n }\n getValidRules(currentRule) {\n return this.ej2Instances.getValidRules(currentRule);\n }\n getValues(field) {\n return this.ej2Instances.getValues(field);\n }\n notifyChange(value, element, type) {\n return this.ej2Instances.notifyChange(value, element, type);\n }\n reset() {\n return this.ej2Instances.reset();\n }\n setRules(rule) {\n return this.ej2Instances.setRules(rule);\n }\n setRulesFromSql(sqlString, sqlLocale) {\n return this.ej2Instances.setRulesFromSql(sqlString, sqlLocale);\n }\n validateFields() {\n return this.ej2Instances.validateFields();\n }\n};\nQueryBuilderComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n }) End */\n], QueryBuilderComponent);\nexport { QueryBuilderComponent };\nexport const QueryBuilderPlugin = {\n name: 'ejs-querybuilder',\n install(Vue) {\n Vue.component(QueryBuilderPlugin.name, QueryBuilderComponent);\n Vue.component(ColumnPlugin.name, ColumnDirective);\n Vue.component(ColumnsPlugin.name, ColumnsDirective);\n }\n};\n"],"names":["this","Vue3.Vue","Vue","__decorate"],"mappings":";;;;;;AAAA,IAAI,UAAU,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,UAAU,KAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;IACnF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,I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IAAI,EAAE,qBAAqB,CAAC,CAAC;QAC9DA,MAAG,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAClDA,MAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;KACvD;CACJ;;;;;"}
@@ -259,11 +259,11 @@ var QueryBuilderComponent = /** @__PURE__ @class */ (function (_super) {
259
259
  QueryBuilderComponent.prototype.getRules = function () {
260
260
  return this.ej2Instances.getRules();
261
261
  };
262
- QueryBuilderComponent.prototype.getRulesFromSql = function (sqlString) {
263
- return this.ej2Instances.getRulesFromSql(sqlString);
262
+ QueryBuilderComponent.prototype.getRulesFromSql = function (sqlString, sqlLocale) {
263
+ return this.ej2Instances.getRulesFromSql(sqlString, sqlLocale);
264
264
  };
265
- QueryBuilderComponent.prototype.getSqlFromRules = function (rule, allowEscape) {
266
- return this.ej2Instances.getSqlFromRules(rule, allowEscape);
265
+ QueryBuilderComponent.prototype.getSqlFromRules = function (rule, allowEscape, sqlLocale) {
266
+ return this.ej2Instances.getSqlFromRules(rule, allowEscape, sqlLocale);
267
267
  };
268
268
  QueryBuilderComponent.prototype.getValidRules = function (currentRule) {
269
269
  return this.ej2Instances.getValidRules(currentRule);
@@ -280,8 +280,8 @@ var QueryBuilderComponent = /** @__PURE__ @class */ (function (_super) {
280
280
  QueryBuilderComponent.prototype.setRules = function (rule) {
281
281
  return this.ej2Instances.setRules(rule);
282
282
  };
283
- QueryBuilderComponent.prototype.setRulesFromSql = function (sqlString) {
284
- return this.ej2Instances.setRulesFromSql(sqlString);
283
+ QueryBuilderComponent.prototype.setRulesFromSql = function (sqlString, sqlLocale) {
284
+ return this.ej2Instances.setRulesFromSql(sqlString, sqlLocale);
285
285
  };
286
286
  QueryBuilderComponent.prototype.validateFields = function () {
287
287
  return this.ej2Instances.validateFields();