@syncfusion/ej2-querybuilder 21.1.37 → 21.2.4

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.
@@ -1,4 +1,4 @@
1
- import { Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, L10n, NotifyPropertyChanges, Property, addClass, classList, cldrData, closest, compile, detach, extend, getComponent, getInstance, getUniqueID, getValue, isNullOrUndefined, removeClass, rippleEffect, select } from '@syncfusion/ej2-base';
1
+ import { Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, L10n, NotifyPropertyChanges, Property, addClass, append, classList, cldrData, closest, compile, detach, extend, getComponent, getInstance, getUniqueID, getValue, isNullOrUndefined, removeClass, rippleEffect, select } from '@syncfusion/ej2-base';
2
2
  import { Button, RadioButton } from '@syncfusion/ej2-buttons';
3
3
  import { CheckBoxSelection, DropDownList, DropDownTree, MultiSelect } from '@syncfusion/ej2-dropdowns';
4
4
  import { DataManager, Deferred, Predicate, Query } from '@syncfusion/ej2-data';
@@ -516,22 +516,37 @@ let QueryBuilder = class QueryBuilder extends Component {
516
516
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
517
517
  if (this.isReact) {
518
518
  template = this.ruleTemplateFn(args, this, ruleElem.id, templateID)[0];
519
+ elem = template;
520
+ elem.className += ' e-rule-field';
521
+ ruleElem.appendChild(elem);
519
522
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
520
523
  }
521
524
  else if (this.isAngular) {
522
525
  const templateColl = this.ruleTemplateFn(args, this, ruleElem.id, templateID);
523
526
  template = (templateColl[0].nodeType === 3) ? templateColl[1] : templateColl[0];
527
+ elem = template;
528
+ elem.className += ' e-rule-field';
529
+ ruleElem.appendChild(elem);
530
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
531
+ }
532
+ else if (this.isVue3) {
533
+ template = this.ruleTemplateFn(args, this, 'Template', templateID);
534
+ elem = template;
535
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
536
+ append(elem, ruleElem);
537
+ ruleElem.children[ruleElem.children.length - 1].className += ' e-rule-field';
524
538
  }
525
539
  else {
526
540
  template = this.ruleTemplateFn(args, this, 'Template', templateID)[0];
541
+ elem = template;
542
+ elem.className += ' e-rule-field';
543
+ ruleElem.appendChild(elem);
527
544
  }
528
- elem = template;
529
- elem.className += ' e-rule-field';
530
545
  }
531
546
  else {
532
547
  elem = this.ruleElem.querySelector('.e-rule-field').cloneNode(true);
548
+ ruleElem.appendChild(elem);
533
549
  }
534
- ruleElem.appendChild(elem);
535
550
  if (column && column.ruleTemplate && rule) {
536
551
  this.renderReactTemplates();
537
552
  }
@@ -1063,16 +1078,24 @@ let QueryBuilder = class QueryBuilder extends Component {
1063
1078
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1064
1079
  if (this.isReact) {
1065
1080
  template = this.headerFn(args, this, groupElem.id, templateID)[0];
1081
+ groupHdr.appendChild(template);
1066
1082
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1067
1083
  }
1068
1084
  else if (this.isAngular) {
1069
1085
  const templateColl = this.headerFn(args, this, groupElem.id, templateID);
1070
1086
  template = (templateColl[0].nodeType === 3) ? templateColl[1] : templateColl[0];
1087
+ groupHdr.appendChild(template);
1088
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1089
+ }
1090
+ else if (this.isVue3) {
1091
+ template = this.headerFn(args, this, groupElem.id, templateID);
1092
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1093
+ append(template, groupHdr);
1071
1094
  }
1072
1095
  else {
1073
1096
  template = this.headerFn(args, this, 'Template', templateID)[0];
1097
+ groupHdr.appendChild(template);
1074
1098
  }
1075
- groupHdr.appendChild(template);
1076
1099
  this.renderReactTemplates();
1077
1100
  }
1078
1101
  return groupElem;