@datorama/core 22.8.2 → 22.9.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.
@@ -10,6 +10,7 @@ import { DatoGridMoreMenuActions } from '../grid-column-header-more-menu/grid-co
10
10
  import { HashMap } from '../../utils/types';
11
11
  import { CoreEventTypes } from '../../event-logger';
12
12
  import { DatoGridOverlayInput } from '../grid-no-data-overlay/grid-v2-no-data-overlay.types';
13
+ import { OperatorTypes } from '../../operator-toggler/operator-toggler.types';
13
14
  export declare const defaultEditableColumnRenderer: (params: any) => string;
14
15
  export declare const editableCellRendererWithSearchHighlight: (params: ICellRendererParams, searchTerm: string) => string;
15
16
  export declare const searchHighlightCellRenderer: (params: ICellRendererParams, searchTerm: string) => any;
@@ -49,6 +50,7 @@ export declare type DatoGridFilterConfig = {
49
50
  keepPredefinedListOriginalOrder?: boolean;
50
51
  showEmptyConditions?: boolean;
51
52
  showClearFiltersButton?: boolean;
53
+ inputConditionsOperator?: OperatorTypes;
52
54
  };
53
55
  export interface DatoGridDataChangedEvent extends AgGridEvent {
54
56
  type: 'ServerDataLoaded' | 'rowDataChanged' | 'rowDataUpdated';
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an Apache License 2.0 license that can be
6
6
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
7
7
  */
8
- import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
8
+ import { ChangeDetectorRef, ElementRef, OnDestroy, QueryList } from '@angular/core';
9
9
  import { DatoFilterConditions, DatoGridFilterSections, DatoGridFilterTypes, ListItem } from './grid-filter.types';
10
10
  import { AbstractControl, FormBuilder, FormControl, FormGroup } from '@angular/forms';
11
11
  import { PopoverRef } from '../../popover/popover-ref';
@@ -15,6 +15,7 @@ import { DatoTranslateService } from '../../services/translate.service';
15
15
  import { DatoColumnMenuData } from '../grid-column-header/grid-column-header.types';
16
16
  import { SortLabelType } from '../../pipes/search-results.pipe';
17
17
  import { HotKeyConfig } from '../../hotkeys/hotkey.types';
18
+ import { DatoTogglerComponent } from '../../toggler/toggler.component';
18
19
  declare type ConditionOption = {
19
20
  id: number;
20
21
  label: string;
@@ -26,6 +27,7 @@ export declare class DatoGridFilterComponent implements OnDestroy {
26
27
  private fb;
27
28
  private translate;
28
29
  private cdr;
30
+ set operatorToggler(togglers: QueryList<DatoTogglerComponent>);
29
31
  gridFilterTypes: typeof DatoGridFilterTypes;
30
32
  filterType: DatoGridFilterTypes;
31
33
  columnValues: (string | number)[];
@@ -55,6 +57,7 @@ export declare class DatoGridFilterComponent implements OnDestroy {
55
57
  private excludedValues;
56
58
  private byValueSubscription;
57
59
  private pivotColumn;
60
+ private inputConditionsOperator;
58
61
  constructor(host: ElementRef, popover: PopoverRef<DatoColumnMenuData>, fb: FormBuilder, translate: DatoTranslateService, cdr: ChangeDetectorRef);
59
62
  get byValueControl(): AbstractControl;
60
63
  get conditionsControls(): AbstractControl[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datorama/core",
3
- "version": "22.8.2",
3
+ "version": "22.9.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "8.2.14",
6
6
  "@angular/core": "8.2.14",