@indice/ng-components 0.2.173-beta.16 → 0.2.173-beta.18

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.
@@ -5,8 +5,19 @@ import * as i0 from "@angular/core";
5
5
  export declare class AdvancedSearchComponent implements OnInit {
6
6
  advancedSearchChanged: EventEmitter<FilterClause[]>;
7
7
  searchOptions: SearchOption[];
8
+ operatorsDisabled: boolean;
8
9
  filters: FilterClause[];
9
10
  menuOptions: MenuOption[];
11
+ operatorMenuOptions: MenuOption[];
12
+ operatorOptions: import("./models").IDictionary<{
13
+ label: string;
14
+ value: string;
15
+ description?: string | undefined;
16
+ }[]>;
17
+ operators: {
18
+ [key: string]: MenuOption[];
19
+ };
20
+ selectedOperator?: string;
10
21
  selectedField?: SearchOption;
11
22
  fieldValue?: string;
12
23
  fieldValueDateFrom: any;
@@ -17,10 +28,13 @@ export declare class AdvancedSearchComponent implements OnInit {
17
28
  constructor();
18
29
  ngOnInit(): void;
19
30
  selectedFieldChanged(field: string): void;
31
+ selectedOperatorChanged(operator: any): void;
20
32
  selectedFieldValueChanged(fieldValue: string): void;
21
33
  search(): void;
22
34
  removeFilter(index: number): void;
35
+ isDateValueUnpicked(): boolean;
36
+ isFieldAndOperatorUnpicked(): boolean;
23
37
  clear(): void;
24
38
  static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSearchComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedSearchComponent, "lib-advanced-search", never, { "searchOptions": "search-options"; "filters": "filters"; }, { "advancedSearchChanged": "advancedSearchChanged"; }, never, never, false>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedSearchComponent, "lib-advanced-search", never, { "searchOptions": "search-options"; "operatorsDisabled": "operators-disabled"; "filters": "filters"; }, { "advancedSearchChanged": "advancedSearchChanged"; }, never, never, false>;
26
40
  }
@@ -69,6 +69,14 @@ export declare namespace FilterClause {
69
69
  type Op = 'eq' | 'neq' | 'gt' | 'lt' | 'gte' | 'lte' | 'contains' | 'in';
70
70
  type Dt = 'string' | 'integer' | 'number' | 'boolean' | 'datetime' | 'array' | 'daterange' | undefined;
71
71
  }
72
+ export interface IDictionary<T> {
73
+ [key: string]: T;
74
+ }
75
+ export declare const OperatorOptions: IDictionary<{
76
+ label: string;
77
+ value: string;
78
+ description?: string;
79
+ }[]>;
72
80
  export declare class FilterClause {
73
81
  member: string;
74
82
  value: any;
@@ -5,10 +5,11 @@ export declare class ToggleButtonsListComponent implements OnInit {
5
5
  icon: string | undefined;
6
6
  options: MenuOption[] | undefined;
7
7
  value: any | undefined;
8
+ compact: boolean;
8
9
  valueChange: EventEmitter<any>;
9
10
  constructor();
10
11
  ngOnInit(): void;
11
12
  selectOption(optionValue: any): void;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButtonsListComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButtonsListComponent, "lib-toggle-buttons-list", never, { "icon": "icon"; "options": "options"; "value": "value"; }, { "valueChange": "valueChange"; }, never, never, false>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButtonsListComponent, "lib-toggle-buttons-list", never, { "icon": "icon"; "options": "options"; "value": "value"; "compact": "compact"; }, { "valueChange": "valueChange"; }, never, never, false>;
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indice/ng-components",
3
- "version": "0.2.173-beta.16",
3
+ "version": "0.2.173-beta.18",
4
4
  "description": "Indice common components for Angular v12",
5
5
  "repository": {
6
6
  "type": "git",