igniteui-angular 18.3.0-beta.0 → 18.3.0-beta.1

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,5 +1,6 @@
1
+ import { EntityType, FieldType } from '../grids/common/grid.interface';
1
2
  import { IFilteringExpression } from './filtering-expression.interface';
2
- import { IFilteringExpressionsTree } from './filtering-expressions-tree';
3
+ import { IExpressionTree, IFilteringExpressionsTree } from './filtering-expressions-tree';
3
4
  export declare class ExpressionsTreeUtil {
4
5
  /**
5
6
  * Returns the filtering expression for a column with the provided tree and fieldName.
@@ -17,3 +18,25 @@ export declare class ExpressionsTreeUtil {
17
18
  static findIndex(tree: IFilteringExpressionsTree, fieldName: string): number;
18
19
  protected static isFilteringExpressionsTreeForColumn(expressionsTree: IFilteringExpressionsTree, fieldName: string): boolean;
19
20
  }
21
+ /**
22
+ * Checks if the given entry is an IExpressionTree.
23
+ * @param entry The entry to check.
24
+ * @returns True if the entry is an IExpressionTree, false otherwise.
25
+ */
26
+ export declare function isTree(entry: IExpressionTree | IFilteringExpression): entry is IExpressionTree;
27
+ /**
28
+ * Recreates the tree from a given array of entities by applying the correct operands
29
+ * for each expression and adjusting the search values to be the correct type.
30
+ * @param tree The expression tree to recreate.
31
+ * @param entities An array of entities to use for recreating the tree.
32
+ * @returns The recreated expression tree.
33
+ */
34
+ export declare function recreateTree(tree: IExpressionTree, entities: EntityType[]): IExpressionTree;
35
+ /**
36
+ * Recreates the tree from a given array of fields by applying the correct operands.
37
+ * It is recommended to use `recreateTree` if there will be multiple entities in the tree
38
+ * with potentially colliding field names.
39
+ * @param tree The expression tree to recreate.
40
+ * @param fields An array of fields to use for recreating the tree.
41
+ */
42
+ export declare function recreateTreeFromFields(tree: IExpressionTree, fields: FieldType[]): IExpressionTree;
@@ -168,13 +168,9 @@ export declare class IgxGridStateBaseDirective {
168
168
  */
169
169
  private restoreValues;
170
170
  /**
171
- * This method builds a FilteringExpressionsTree from a provided object.
171
+ * This method builds a rehydrated IExpressionTree from a provided object.
172
172
  */
173
173
  private createExpressionsTreeFromObject;
174
- /**
175
- * Returns the filtering logic function for a given dataType and condition (contains, greaterThan, etc.)
176
- */
177
- private generateFilteringCondition;
178
174
  protected stringifyCallback(key: string, val: any): any;
179
175
  private getColumnGroupKey;
180
176
  private getFeature;
@@ -10,6 +10,7 @@ import { FieldType, EntityType } from '../grids/common/grid.interface';
10
10
  import { IgxSelectComponent } from '../select/select.component';
11
11
  import { OverlaySettings } from '../services/overlay/utilities';
12
12
  import { IgxQueryBuilderHeaderComponent } from './query-builder-header.component';
13
+ import { IComboSelectionChangingEventArgs } from "../combo/combo.component";
13
14
  import { IChangeCheckboxEventArgs } from "../checkbox/checkbox.component";
14
15
  import { ISelectionEventArgs } from '../drop-down/drop-down.common';
15
16
  import { IgxQueryBuilderSearchValueTemplateDirective } from './query-builder.directives';
@@ -214,6 +215,8 @@ export declare class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDe
214
215
  get level(): number;
215
216
  private _positionSettings;
216
217
  private _overlaySettings;
218
+ /** @hidden */
219
+ protected isAdvancedFiltering(): boolean;
217
220
  constructor(cdr: ChangeDetectorRef, platform: PlatformUtil, el: ElementRef, elRef: ElementRef, _localeId: string);
218
221
  /**
219
222
  * @hidden @internal
@@ -451,6 +454,8 @@ export declare class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDe
451
454
  onInEditModeChanged(expressionItem: ExpressionOperandItem): void;
452
455
  getExpressionTreeCopy(expressionTree: IExpressionTree, shouldAssignInnerQueryExprTree?: boolean): IExpressionTree;
453
456
  onSelectAllClicked(_event: any): void;
457
+ onReturnFieldSelectChanging(event: IComboSelectionChangingEventArgs): void;
458
+ initExpressionTree(selectedEntityName: string, selectedReturnFields: string[]): void;
454
459
  getSearchValueTemplateContext(defaultSearchValueTemplate: any): any;
455
460
  private setFormat;
456
461
  private setFilters;
@@ -35,9 +35,15 @@ export declare class IgxQueryBuilderComponent implements OnDestroy {
35
35
  */
36
36
  showEntityChangeDialog: boolean;
37
37
  /**
38
- * Gets/sets the entities.
38
+ * Returns the entities.
39
+ * @hidden
40
+ */
41
+ get entities(): EntityType[];
42
+ /**
43
+ * Sets the entities.
44
+ * @hidden
39
45
  */
40
- entities: EntityType[];
46
+ set entities(entities: EntityType[]);
41
47
  /**
42
48
  * Returns the fields.
43
49
  * @hidden
@@ -96,6 +102,7 @@ export declare class IgxQueryBuilderComponent implements OnDestroy {
96
102
  private _resourceStrings;
97
103
  private _expressionTree;
98
104
  private _fields;
105
+ private _entities;
99
106
  private _shouldEmitTreeChange;
100
107
  constructor(iconService: IgxIconService);
101
108
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-angular",
3
- "version": "18.3.0-beta.0",
3
+ "version": "18.3.0-beta.1",
4
4
  "description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
5
5
  "author": "Infragistics",
6
6
  "license": "SEE LICENSE IN LICENSE",
package/public_api.d.ts CHANGED
@@ -36,7 +36,7 @@ export * from './lib/data-operations/filtering-expressions-tree';
36
36
  export * from './lib/data-operations/filtering-condition';
37
37
  export * from './lib/data-operations/filtering-state.interface';
38
38
  export * from './lib/data-operations/filtering-strategy';
39
- export * from './lib/data-operations/expressions-tree-util';
39
+ export { ExpressionsTreeUtil } from './lib/data-operations/expressions-tree-util';
40
40
  export * from './lib/data-operations/groupby-expand-state.interface';
41
41
  export * from './lib/data-operations/groupby-record.interface';
42
42
  export * from './lib/data-operations/groupby-state.interface';