@syncfusion/ej2-querybuilder 22.1.37 → 22.2.5

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 : 22.1.37
3
+ * version : 22.2.5
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@22.1.34",
3
+ "_id": "@syncfusion/ej2-querybuilder@22.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-MhknAfhNWtbOakNEX1Foq4XrOi0EZYGt2qCxp+fioDN407UXcCQ1kbJJ+ZgAHlT7Vji1IyMDUWvjXht0iYAdJg==",
5
+ "_integrity": "sha512-4S0ODcrkHeymm1iQODXWSgWGgafRnRJVLpFm3x800YjFBXF3Av6G73r8ZQ+OyQ8czxRzRe3zoja4TK0emKWGmg==",
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-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-22.1.34.tgz",
27
- "_shasum": "66b87d631445ea030acc569d1953449865e93558",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-22.1.38.tgz",
27
+ "_shasum": "20f0d5c313ed17555d147dbb15d61f9108aca1d7",
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": "~22.1.34",
36
- "@syncfusion/ej2-buttons": "~22.1.36",
37
- "@syncfusion/ej2-calendars": "~22.1.36",
38
- "@syncfusion/ej2-dropdowns": "~22.1.37",
39
- "@syncfusion/ej2-inputs": "~22.1.34",
40
- "@syncfusion/ej2-splitbuttons": "~22.1.37"
35
+ "@syncfusion/ej2-base": "~22.2.5",
36
+ "@syncfusion/ej2-buttons": "~22.2.5",
37
+ "@syncfusion/ej2-calendars": "~22.2.5",
38
+ "@syncfusion/ej2-dropdowns": "~22.2.5",
39
+ "@syncfusion/ej2-inputs": "~22.2.5",
40
+ "@syncfusion/ej2-splitbuttons": "~22.2.5"
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": "22.1.37",
69
+ "version": "22.2.5",
70
70
  "sideEffects": false,
71
71
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
72
72
  }
@@ -1,4 +1,4 @@
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';
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, DdtSelectEventArgs } 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
 
@@ -541,6 +541,7 @@ export declare class QueryBuilder extends Component<HTMLDivElement> implements I
541
541
  private filterValue;
542
542
  private changeValueSuccessCallBack;
543
543
  private fieldClose;
544
+ private onSelectField;
544
545
  private changeField;
545
546
  private changeRule;
546
547
  private changeFilter;
@@ -729,7 +729,7 @@ var QueryBuilder = /** @class */ (function (_super) {
729
729
  placeholder: this.l10n.getConstant('SelectField'), showClearButton: false,
730
730
  popupHeight: ((this.columns.length > 5) ? height : 'auto'), changeOnBlur: false,
731
731
  change: this.changeField.bind(this), value: !isNullOrUndefined(ddlValue) ? [ddlValue] : null,
732
- open: this.popupOpen.bind(this, false)
732
+ open: this.popupOpen.bind(this, false), treeSettings: { expandOn: 'Click' }, select: this.onSelectField
733
733
  };
734
734
  if (this.fieldModel) {
735
735
  ddlField = __assign({}, ddlField, this.fieldModel);
@@ -1403,6 +1403,12 @@ var QueryBuilder = /** @class */ (function (_super) {
1403
1403
  }
1404
1404
  this.isFieldChange = false;
1405
1405
  };
1406
+ QueryBuilder.prototype.onSelectField = function (args) {
1407
+ if (args.itemData.hasChildren) {
1408
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1409
+ this.showPopup();
1410
+ }
1411
+ };
1406
1412
  QueryBuilder.prototype.changeField = function (args) {
1407
1413
  if (args.isInteracted) {
1408
1414
  if (isNullOrUndefined(args.value)) {
@@ -1426,7 +1432,8 @@ var QueryBuilder = /** @class */ (function (_super) {
1426
1432
  }
1427
1433
  else {
1428
1434
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1429
- ddtElem.value = args.oldValue[0];
1435
+ var result = this.getLabelFromColumn(args.oldValue[0]);
1436
+ ddtElem.value = result;
1430
1437
  }
1431
1438
  return;
1432
1439
  }