@syncfusion/ej2-querybuilder 25.1.35 → 25.1.37
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 +8 -0
- 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 +13 -9
- package/dist/es6/ej2-querybuilder.es2015.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es5.js +13 -9
- 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 +9 -9
- package/src/query-builder/query-builder.js +13 -9
- package/styles/bootstrap5-dark.css +3 -1
- package/styles/bootstrap5.css +3 -1
- package/styles/fluent-dark.css +4 -2
- package/styles/fluent.css +4 -2
- package/styles/material-dark.css +9 -0
- package/styles/material.css +9 -0
- package/styles/query-builder/_theme.scss +3 -1
- package/styles/query-builder/bootstrap5-dark.css +3 -1
- package/styles/query-builder/bootstrap5.css +3 -1
- package/styles/query-builder/fluent-dark.css +4 -2
- package/styles/query-builder/fluent.css +4 -2
- package/styles/query-builder/material-dark.css +9 -0
- package/styles/query-builder/material.css +9 -0
|
@@ -2122,17 +2122,11 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
2122
2122
|
if (!this.dataColl.length && values.length) {
|
|
2123
2123
|
isValues = true;
|
|
2124
2124
|
}
|
|
2125
|
-
let fieldValue = this.selectedRule.field;
|
|
2126
|
-
const isNested = this.selectedRule.field.indexOf(this.separator);
|
|
2127
|
-
if (isNested !== 0 && this.fieldMode !== 'DropdownTree') {
|
|
2128
|
-
const nest = this.selectedRule.field.split(this.separator);
|
|
2129
|
-
fieldValue = nest[nest.length - 1];
|
|
2130
|
-
}
|
|
2131
2125
|
let multiSelectValue;
|
|
2132
2126
|
multiSelectValue = {
|
|
2133
2127
|
dataSource: isValues ? values : (isFetched ? ds : this.dataManager),
|
|
2134
2128
|
query: new Query([rule.field]),
|
|
2135
|
-
fields: { text:
|
|
2129
|
+
fields: { text: this.selectedRule.field, value: this.selectedRule.field },
|
|
2136
2130
|
placeholder: this.l10n.getConstant('SelectValue'),
|
|
2137
2131
|
value: selectedValue,
|
|
2138
2132
|
mode: 'CheckBox',
|
|
@@ -5050,6 +5044,7 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
5050
5044
|
*/
|
|
5051
5045
|
cloneRule(ruleID, groupID, index) {
|
|
5052
5046
|
const getRule = this.getRule(ruleID.replace(this.element.id + '_', ''));
|
|
5047
|
+
let isCloneRule = this.showButtons.cloneRule;
|
|
5053
5048
|
groupID = groupID.replace(this.element.id + '_', '');
|
|
5054
5049
|
this.ruleIndex = index;
|
|
5055
5050
|
this.cloneRuleBtnClick = true;
|
|
@@ -5060,7 +5055,8 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
5060
5055
|
}], groupID);
|
|
5061
5056
|
this.ruleIndex = -1;
|
|
5062
5057
|
this.cloneRuleBtnClick = false;
|
|
5063
|
-
this.showButtons.cloneRule =
|
|
5058
|
+
this.showButtons.cloneRule = isCloneRule;
|
|
5059
|
+
isCloneRule = false;
|
|
5064
5060
|
}
|
|
5065
5061
|
/**
|
|
5066
5062
|
* Clones the group based on the group ID to the specific group.
|
|
@@ -5073,6 +5069,7 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
5073
5069
|
cloneGroup(groupID, parentGroupID, index) {
|
|
5074
5070
|
parentGroupID = parentGroupID.replace(this.element.id + '_', '');
|
|
5075
5071
|
const group = this.getGroup(parentGroupID);
|
|
5072
|
+
let isCloneGroup = this.showButtons.cloneGroup;
|
|
5076
5073
|
groupID = groupID.replace(this.element.id + '_', '');
|
|
5077
5074
|
this.groupIndex = index;
|
|
5078
5075
|
this.cloneGrpBtnClick = true;
|
|
@@ -5080,7 +5077,8 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
5080
5077
|
this.addGroups([{ 'condition': group.condition, 'not': group.not, 'rules': group.rules }], groupID);
|
|
5081
5078
|
this.groupIndex = -1;
|
|
5082
5079
|
this.cloneGrpBtnClick = false;
|
|
5083
|
-
this.showButtons.cloneGroup =
|
|
5080
|
+
this.showButtons.cloneGroup = isCloneGroup;
|
|
5081
|
+
isCloneGroup = false;
|
|
5084
5082
|
}
|
|
5085
5083
|
/**
|
|
5086
5084
|
* Locks the rule based on the rule ID.
|
|
@@ -5089,6 +5087,9 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
5089
5087
|
* @returns {void}
|
|
5090
5088
|
*/
|
|
5091
5089
|
lockRule(ruleID) {
|
|
5090
|
+
if (ruleID.indexOf(this.element.id) < 0) {
|
|
5091
|
+
ruleID = this.element.id + '_' + ruleID;
|
|
5092
|
+
}
|
|
5092
5093
|
const target = document.getElementById(ruleID).querySelectorAll('.e-lock-rule-btn')[0];
|
|
5093
5094
|
this.ruleLock(target);
|
|
5094
5095
|
}
|
|
@@ -5099,6 +5100,9 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
5099
5100
|
* @returns {void}
|
|
5100
5101
|
*/
|
|
5101
5102
|
lockGroup(groupID) {
|
|
5103
|
+
if (groupID.indexOf(this.element.id) < 0) {
|
|
5104
|
+
groupID = this.element.id + '_' + groupID;
|
|
5105
|
+
}
|
|
5102
5106
|
const target = document.getElementById(groupID).querySelectorAll('.e-lock-grp-btn')[0];
|
|
5103
5107
|
this.groupLock(target);
|
|
5104
5108
|
}
|