@syncfusion/ej2-querybuilder 21.2.4 → 22.1.34
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/.eslintrc.json +1 -0
- package/CHANGELOG.md +0 -9
- package/dist/ej2-querybuilder.min.js +2 -2
- package/dist/ej2-querybuilder.umd.min.js +2 -2
- package/dist/ej2-querybuilder.umd.min.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es2015.js +3 -3
- package/dist/es6/ej2-querybuilder.es2015.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es5.js +3 -3
- package/dist/es6/ej2-querybuilder.es5.js.map +1 -1
- package/dist/global/ej2-querybuilder.min.js +2 -2
- package/dist/global/ej2-querybuilder.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/query-builder/query-builder-model.d.ts +6 -3
- package/src/query-builder/query-builder.d.ts +6 -3
- package/src/query-builder/query-builder.js +3 -3
- package/styles/material3-dark.css +815 -0
- package/styles/material3-dark.scss +3 -0
- package/styles/material3.css +871 -0
- package/styles/material3.scss +3 -0
- package/styles/query-builder/_layout.scss +71 -13
- package/styles/query-builder/_material3-dark-definition.scss +1 -0
- package/styles/query-builder/_material3-definition.scss +110 -0
- package/styles/query-builder/icons/_material3-dark.scss +1 -0
- package/styles/query-builder/material3-dark.css +815 -0
- package/styles/query-builder/material3-dark.scss +16 -0
- package/styles/query-builder/material3.css +871 -0
- package/styles/query-builder/material3.scss +16 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 22.1.34
|
|
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
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-querybuilder@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-querybuilder@
|
|
3
|
+
"_id": "@syncfusion/ej2-querybuilder@18.24.1",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-dnkNGldsTgLr67ZY2I6RDOBw4ox4YWjryIXdUv0N90OlnNbIWFplRDsA2orB9lQ6lGwTG6wINbXO0gVX0+ErBA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-querybuilder",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-querybuilder",
|
|
24
24
|
"/@syncfusion/ej2-vue-querybuilder"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-18.24.1.tgz",
|
|
27
|
+
"_shasum": "4e0221fd832db21a21411029f3386f41bb9c9e5d",
|
|
28
28
|
"_spec": "@syncfusion/ej2-querybuilder@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~
|
|
36
|
-
"@syncfusion/ej2-buttons": "~
|
|
37
|
-
"@syncfusion/ej2-calendars": "~
|
|
38
|
-
"@syncfusion/ej2-dropdowns": "~
|
|
39
|
-
"@syncfusion/ej2-inputs": "~
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~
|
|
35
|
+
"@syncfusion/ej2-base": "~22.1.34",
|
|
36
|
+
"@syncfusion/ej2-buttons": "~22.1.34",
|
|
37
|
+
"@syncfusion/ej2-calendars": "~22.1.34",
|
|
38
|
+
"@syncfusion/ej2-dropdowns": "~22.1.34",
|
|
39
|
+
"@syncfusion/ej2-inputs": "~22.1.34",
|
|
40
|
+
"@syncfusion/ej2-splitbuttons": "~22.1.34"
|
|
41
41
|
},
|
|
42
42
|
"deprecated": false,
|
|
43
43
|
"description": "Essential JS 2 QueryBuilder",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/querybuilder"
|
|
67
67
|
},
|
|
68
68
|
"typings": "index.d.ts",
|
|
69
|
-
"version": "
|
|
69
|
+
"version": "22.1.34",
|
|
70
70
|
"sideEffects": false,
|
|
71
71
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
72
72
|
}
|
|
@@ -46,15 +46,17 @@ export interface ColumnsModel {
|
|
|
46
46
|
* Specifies the rule template for the field with any other widgets.
|
|
47
47
|
*
|
|
48
48
|
* @default null
|
|
49
|
+
* @aspType string
|
|
49
50
|
*/
|
|
50
|
-
ruleTemplate?: string;
|
|
51
|
+
ruleTemplate?: string | Function;
|
|
51
52
|
|
|
52
53
|
/**
|
|
53
54
|
* Specifies the template for value field such as slider or any other widgets.
|
|
54
55
|
*
|
|
55
56
|
* @default null
|
|
57
|
+
* @aspType string
|
|
56
58
|
*/
|
|
57
|
-
template?: TemplateColumn | string;
|
|
59
|
+
template?: TemplateColumn | string | Function;
|
|
58
60
|
|
|
59
61
|
/**
|
|
60
62
|
* Specifies the validation for columns (text, number and date).
|
|
@@ -350,8 +352,9 @@ export interface QueryBuilderModel extends ComponentModel{
|
|
|
350
352
|
* Specifies the template for the header with any other widgets.
|
|
351
353
|
*
|
|
352
354
|
* @default null
|
|
355
|
+
* @aspType string
|
|
353
356
|
*/
|
|
354
|
-
headerTemplate?: string;
|
|
357
|
+
headerTemplate?: string | Function;
|
|
355
358
|
|
|
356
359
|
/**
|
|
357
360
|
* Defines class or multiple classes, which are separated by a space in the QueryBuilder element.
|
|
@@ -51,14 +51,16 @@ export declare class Columns extends ChildProperty<Columns> {
|
|
|
51
51
|
* Specifies the rule template for the field with any other widgets.
|
|
52
52
|
*
|
|
53
53
|
* @default null
|
|
54
|
+
* @aspType string
|
|
54
55
|
*/
|
|
55
|
-
ruleTemplate: string;
|
|
56
|
+
ruleTemplate: string | Function;
|
|
56
57
|
/**
|
|
57
58
|
* Specifies the template for value field such as slider or any other widgets.
|
|
58
59
|
*
|
|
59
60
|
* @default null
|
|
61
|
+
* @aspType string
|
|
60
62
|
*/
|
|
61
|
-
template: TemplateColumn | string;
|
|
63
|
+
template: TemplateColumn | string | Function;
|
|
62
64
|
/**
|
|
63
65
|
* Specifies the validation for columns (text, number and date).
|
|
64
66
|
*
|
|
@@ -395,8 +397,9 @@ export declare class QueryBuilder extends Component<HTMLDivElement> implements I
|
|
|
395
397
|
* Specifies the template for the header with any other widgets.
|
|
396
398
|
*
|
|
397
399
|
* @default null
|
|
400
|
+
* @aspType string
|
|
398
401
|
*/
|
|
399
|
-
headerTemplate: string;
|
|
402
|
+
headerTemplate: string | Function;
|
|
400
403
|
/**
|
|
401
404
|
* Defines class or multiple classes, which are separated by a space in the QueryBuilder element.
|
|
402
405
|
* You can add custom styles to the QueryBuilder using the cssClass property.
|
|
@@ -2064,7 +2064,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
2064
2064
|
getValue(template.write, window)({ elements: tempElements.length > 1 ? tempElements : tempElements[0], values: rule.value,
|
|
2065
2065
|
operator: tempRule.operator, field: column.field, dataSource: column.values });
|
|
2066
2066
|
}
|
|
2067
|
-
else {
|
|
2067
|
+
else if (typeof itemData.template !== 'function') {
|
|
2068
2068
|
itemData.template.write({ elements: tempElements.length > 1 ? tempElements : tempElements[0],
|
|
2069
2069
|
values: rule.value, operator: tempRule.operator, field: column.field, dataSource: column.values });
|
|
2070
2070
|
}
|
|
@@ -2556,7 +2556,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
2556
2556
|
QueryBuilder.prototype.actionBeginSuccessCallBack = function (args, itemData, ruleID, field, target) {
|
|
2557
2557
|
if (args.renderTemplate) {
|
|
2558
2558
|
var valElem = void 0;
|
|
2559
|
-
this.columnTemplateFn = this.templateParser(itemData.template);
|
|
2559
|
+
this.columnTemplateFn = this.templateParser(typeof itemData.template === 'function' ? itemData.template : itemData.template);
|
|
2560
2560
|
var templateID = this.element.id + field;
|
|
2561
2561
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2562
2562
|
if (this.isReact) {
|
|
@@ -3427,7 +3427,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
3427
3427
|
QueryBuilder.prototype.templateParser = function (template) {
|
|
3428
3428
|
if (template) {
|
|
3429
3429
|
try {
|
|
3430
|
-
if (document.querySelectorAll(template).length) {
|
|
3430
|
+
if (typeof template !== 'function' && document.querySelectorAll(template).length) {
|
|
3431
3431
|
return templateCompiler(document.querySelector(template).innerHTML.trim());
|
|
3432
3432
|
}
|
|
3433
3433
|
else {
|