@syncfusion/ej2-querybuilder 21.2.3 → 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,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.3
3
+ * version : 21.2.4
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@21.1.37",
3
+ "_id": "@syncfusion/ej2-querybuilder@21.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ny2QXKDRqq0cfM56tG/wJ3MG4CGu/dWW/+Z0ahLbMCUFZiCvswLLsPZr339M4AUMipUmS2Kj8mqOwhxmIW7hFA==",
5
+ "_integrity": "sha512-OHwQTyMyPmtJw0BPHVBQrc0jigTbxjWa+78HafNPROaXb5gb1XMi6kqr9oYuxDh9SfEkgAOcoG0swwXR/Kchiw==",
6
6
  "_location": "/@syncfusion/ej2-querybuilder",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,10 +18,13 @@
18
18
  },
19
19
  "_requiredBy": [
20
20
  "/",
21
- "/@syncfusion/ej2"
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-querybuilder",
23
+ "/@syncfusion/ej2-react-querybuilder",
24
+ "/@syncfusion/ej2-vue-querybuilder"
22
25
  ],
23
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-21.1.37.tgz",
24
- "_shasum": "deb5baca8711386d33cd39b631d01be91d84f158",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-21.2.3.tgz",
27
+ "_shasum": "88f4c6542e5620ea68abcb53f607e0a071d9307d",
25
28
  "_spec": "@syncfusion/ej2-querybuilder@*",
26
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
27
30
  "author": {
@@ -31,9 +34,9 @@
31
34
  "dependencies": {
32
35
  "@syncfusion/ej2-base": "~21.2.3",
33
36
  "@syncfusion/ej2-buttons": "~21.2.3",
34
- "@syncfusion/ej2-calendars": "~21.2.3",
35
- "@syncfusion/ej2-dropdowns": "~21.2.3",
36
- "@syncfusion/ej2-inputs": "~21.2.3",
37
+ "@syncfusion/ej2-calendars": "~21.2.4",
38
+ "@syncfusion/ej2-dropdowns": "~21.2.4",
39
+ "@syncfusion/ej2-inputs": "~21.2.4",
37
40
  "@syncfusion/ej2-splitbuttons": "~21.2.3"
38
41
  },
39
42
  "deprecated": false,
@@ -63,7 +66,7 @@
63
66
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/querybuilder"
64
67
  },
65
68
  "typings": "index.d.ts",
66
- "version": "21.2.3",
69
+ "version": "21.2.4",
67
70
  "sideEffects": false,
68
71
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
69
72
  }
@@ -1,4 +1,4 @@
1
- import { Component, INotifyPropertyChanged, NotifyPropertyChanges, getComponent, MouseEventArgs, Browser, compile } from '@syncfusion/ej2-base';import { Property, ChildProperty, Complex, L10n, closest, extend, isNullOrUndefined, Collection, cldrData } from '@syncfusion/ej2-base';import { getInstance, addClass, removeClass, rippleEffect, detach, classList } from '@syncfusion/ej2-base';import { Internationalization, DateFormatOptions, KeyboardEventArgs, getUniqueID, select } from '@syncfusion/ej2-base';import { Button, CheckBox, RadioButton, ChangeEventArgs as ButtonChangeEventArgs, RadioButtonModel } from '@syncfusion/ej2-buttons';import { DropDownList, ChangeEventArgs as DropDownChangeEventArgs, FieldSettingsModel, CheckBoxSelection, DropDownTreeModel, DropDownTree } from '@syncfusion/ej2-dropdowns';import { MultiSelect, MultiSelectChangeEventArgs, PopupEventArgs, MultiSelectModel, DropDownListModel } from '@syncfusion/ej2-dropdowns';import { EmitType, Event, EventHandler, getValue, Animation, BaseEventArgs } from '@syncfusion/ej2-base';import { Query, Predicate, DataManager, Deferred } from '@syncfusion/ej2-data';import { TextBox, NumericTextBox, InputEventArgs, ChangeEventArgs as InputChangeEventArgs } from '@syncfusion/ej2-inputs';import { TextBoxModel, NumericTextBoxModel } from '@syncfusion/ej2-inputs';import { DatePicker, ChangeEventArgs as CalendarChangeEventArgs, DatePickerModel } from '@syncfusion/ej2-calendars';import { DropDownButton, ItemModel, MenuEventArgs } from '@syncfusion/ej2-splitbuttons';import { Tooltip, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { compile as templateCompiler } from '@syncfusion/ej2-base';
1
+ import { Component, INotifyPropertyChanged, NotifyPropertyChanges, getComponent, MouseEventArgs, Browser, compile, append } from '@syncfusion/ej2-base';import { Property, ChildProperty, Complex, L10n, closest, extend, isNullOrUndefined, Collection, cldrData } from '@syncfusion/ej2-base';import { getInstance, addClass, removeClass, rippleEffect, detach, classList } from '@syncfusion/ej2-base';import { Internationalization, DateFormatOptions, KeyboardEventArgs, getUniqueID, select } from '@syncfusion/ej2-base';import { Button, CheckBox, RadioButton, ChangeEventArgs as ButtonChangeEventArgs, RadioButtonModel } from '@syncfusion/ej2-buttons';import { DropDownList, ChangeEventArgs as DropDownChangeEventArgs, FieldSettingsModel, CheckBoxSelection, DropDownTreeModel, DropDownTree } from '@syncfusion/ej2-dropdowns';import { MultiSelect, MultiSelectChangeEventArgs, PopupEventArgs, MultiSelectModel, DropDownListModel } from '@syncfusion/ej2-dropdowns';import { EmitType, Event, EventHandler, getValue, Animation, BaseEventArgs } from '@syncfusion/ej2-base';import { Query, Predicate, DataManager, Deferred } from '@syncfusion/ej2-data';import { TextBox, NumericTextBox, InputEventArgs, ChangeEventArgs as InputChangeEventArgs } from '@syncfusion/ej2-inputs';import { TextBoxModel, NumericTextBoxModel } from '@syncfusion/ej2-inputs';import { DatePicker, ChangeEventArgs as CalendarChangeEventArgs, DatePickerModel } from '@syncfusion/ej2-calendars';import { DropDownButton, ItemModel, MenuEventArgs } from '@syncfusion/ej2-splitbuttons';import { Tooltip, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { compile as templateCompiler } from '@syncfusion/ej2-base';
2
2
  import {TemplateColumn,Validation,FormatObject,ActionEventArgs,ChangeEventArgs,RuleChangeEventArgs,FieldMode,DisplayMode,SortDirection} from "./query-builder";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -31,7 +31,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
31
31
  /**
32
32
  * Query Builder Source
33
33
  */
34
- import { Component, NotifyPropertyChanges, getComponent, Browser, compile } from '@syncfusion/ej2-base';
34
+ import { Component, NotifyPropertyChanges, getComponent, Browser, compile, append } from '@syncfusion/ej2-base';
35
35
  import { Property, ChildProperty, Complex, L10n, closest, extend, isNullOrUndefined, Collection, cldrData } from '@syncfusion/ej2-base';
36
36
  import { getInstance, addClass, removeClass, rippleEffect, detach, classList } from '@syncfusion/ej2-base';
37
37
  import { Internationalization, getUniqueID, select } from '@syncfusion/ej2-base';
@@ -576,22 +576,37 @@ var QueryBuilder = /** @class */ (function (_super) {
576
576
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
577
577
  if (this.isReact) {
578
578
  template = this.ruleTemplateFn(args, this, ruleElem.id, templateID)[0];
579
+ elem = template;
580
+ elem.className += ' e-rule-field';
581
+ ruleElem.appendChild(elem);
579
582
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
580
583
  }
581
584
  else if (this.isAngular) {
582
585
  var templateColl = this.ruleTemplateFn(args, this, ruleElem.id, templateID);
583
586
  template = (templateColl[0].nodeType === 3) ? templateColl[1] : templateColl[0];
587
+ elem = template;
588
+ elem.className += ' e-rule-field';
589
+ ruleElem.appendChild(elem);
590
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
591
+ }
592
+ else if (this.isVue3) {
593
+ template = this.ruleTemplateFn(args, this, 'Template', templateID);
594
+ elem = template;
595
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
596
+ append(elem, ruleElem);
597
+ ruleElem.children[ruleElem.children.length - 1].className += ' e-rule-field';
584
598
  }
585
599
  else {
586
600
  template = this.ruleTemplateFn(args, this, 'Template', templateID)[0];
601
+ elem = template;
602
+ elem.className += ' e-rule-field';
603
+ ruleElem.appendChild(elem);
587
604
  }
588
- elem = template;
589
- elem.className += ' e-rule-field';
590
605
  }
591
606
  else {
592
607
  elem = this.ruleElem.querySelector('.e-rule-field').cloneNode(true);
608
+ ruleElem.appendChild(elem);
593
609
  }
594
- ruleElem.appendChild(elem);
595
610
  if (column && column.ruleTemplate && rule) {
596
611
  this.renderReactTemplates();
597
612
  }
@@ -1125,16 +1140,24 @@ var QueryBuilder = /** @class */ (function (_super) {
1125
1140
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1126
1141
  if (this.isReact) {
1127
1142
  template = this.headerFn(args, this, groupElem.id, templateID)[0];
1143
+ groupHdr.appendChild(template);
1128
1144
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1129
1145
  }
1130
1146
  else if (this.isAngular) {
1131
1147
  var templateColl = this.headerFn(args, this, groupElem.id, templateID);
1132
1148
  template = (templateColl[0].nodeType === 3) ? templateColl[1] : templateColl[0];
1149
+ groupHdr.appendChild(template);
1150
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1151
+ }
1152
+ else if (this.isVue3) {
1153
+ template = this.headerFn(args, this, groupElem.id, templateID);
1154
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1155
+ append(template, groupHdr);
1133
1156
  }
1134
1157
  else {
1135
1158
  template = this.headerFn(args, this, 'Template', templateID)[0];
1159
+ groupHdr.appendChild(template);
1136
1160
  }
1137
- groupHdr.appendChild(template);
1138
1161
  this.renderReactTemplates();
1139
1162
  }
1140
1163
  return groupElem;