ngx-angular-query-builder 16.0.0 → 18.0.0

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.
Files changed (49) hide show
  1. package/README.md +2 -1
  2. package/esm2022/lib/ngx-angular-query-builder.module.mjs +68 -0
  3. package/esm2022/lib/query-builder/query-arrow-icon.directive.mjs +14 -0
  4. package/esm2022/lib/query-builder/query-builder.component.mjs +758 -0
  5. package/esm2022/lib/query-builder/query-builder.interfaces.mjs +2 -0
  6. package/esm2022/lib/query-builder/query-button-group.directive.mjs +14 -0
  7. package/esm2022/lib/query-builder/query-empty-warning.directive.mjs +14 -0
  8. package/esm2022/lib/query-builder/query-entity.directive.mjs +14 -0
  9. package/esm2022/lib/query-builder/query-field.directive.mjs +14 -0
  10. package/esm2022/lib/query-builder/query-input.directive.mjs +28 -0
  11. package/esm2022/lib/query-builder/query-operator.directive.mjs +14 -0
  12. package/esm2022/lib/query-builder/query-remove-button.directive.mjs +14 -0
  13. package/esm2022/lib/query-builder/query-switch-group.directive.mjs +14 -0
  14. package/{esm2020 → esm2022}/ngx-angular-query-builder.mjs +4 -4
  15. package/esm2022/public-api.mjs +16 -0
  16. package/fesm2022/ngx-angular-query-builder.mjs +937 -0
  17. package/fesm2022/ngx-angular-query-builder.mjs.map +1 -0
  18. package/index.d.ts +5 -5
  19. package/lib/ngx-angular-query-builder.module.d.ts +18 -18
  20. package/lib/query-builder/query-arrow-icon.directive.d.ts +8 -8
  21. package/lib/query-builder/query-builder.component.d.ts +129 -129
  22. package/lib/query-builder/query-builder.interfaces.d.ts +143 -143
  23. package/lib/query-builder/query-button-group.directive.d.ts +8 -8
  24. package/lib/query-builder/query-empty-warning.directive.d.ts +8 -8
  25. package/lib/query-builder/query-entity.directive.d.ts +8 -8
  26. package/lib/query-builder/query-field.directive.d.ts +8 -8
  27. package/lib/query-builder/query-input.directive.d.ts +12 -12
  28. package/lib/query-builder/query-operator.directive.d.ts +8 -8
  29. package/lib/query-builder/query-remove-button.directive.d.ts +8 -8
  30. package/lib/query-builder/query-switch-group.directive.d.ts +8 -8
  31. package/package.json +7 -13
  32. package/public-api.d.ts +12 -12
  33. package/esm2020/lib/ngx-angular-query-builder.module.mjs +0 -73
  34. package/esm2020/lib/query-builder/query-arrow-icon.directive.mjs +0 -14
  35. package/esm2020/lib/query-builder/query-builder.component.mjs +0 -748
  36. package/esm2020/lib/query-builder/query-builder.interfaces.mjs +0 -2
  37. package/esm2020/lib/query-builder/query-button-group.directive.mjs +0 -14
  38. package/esm2020/lib/query-builder/query-empty-warning.directive.mjs +0 -14
  39. package/esm2020/lib/query-builder/query-entity.directive.mjs +0 -14
  40. package/esm2020/lib/query-builder/query-field.directive.mjs +0 -14
  41. package/esm2020/lib/query-builder/query-input.directive.mjs +0 -26
  42. package/esm2020/lib/query-builder/query-operator.directive.mjs +0 -14
  43. package/esm2020/lib/query-builder/query-remove-button.directive.mjs +0 -14
  44. package/esm2020/lib/query-builder/query-switch-group.directive.mjs +0 -14
  45. package/esm2020/public-api.mjs +0 -16
  46. package/fesm2015/ngx-angular-query-builder.mjs +0 -931
  47. package/fesm2015/ngx-angular-query-builder.mjs.map +0 -1
  48. package/fesm2020/ngx-angular-query-builder.mjs +0 -930
  49. package/fesm2020/ngx-angular-query-builder.mjs.map +0 -1
@@ -1,143 +1,143 @@
1
- export interface RuleSet {
2
- condition: string;
3
- rules: Array<RuleSet | Rule | any>;
4
- collapsed?: boolean;
5
- isChild?: boolean;
6
- }
7
- export interface Rule {
8
- field: string;
9
- value?: any;
10
- operator?: string;
11
- entity?: string;
12
- }
13
- export interface Option {
14
- name: string;
15
- value: any;
16
- }
17
- export interface FieldMap {
18
- [key: string]: Field;
19
- }
20
- export interface Field {
21
- name: string;
22
- value?: string;
23
- type: string;
24
- nullable?: boolean;
25
- options?: Option[];
26
- operators?: string[];
27
- defaultValue?: any;
28
- defaultOperator?: any;
29
- entity?: string;
30
- validator?: (rule: Rule, parent: RuleSet) => any | null;
31
- }
32
- export interface LocalRuleMeta {
33
- ruleset: boolean;
34
- invalid: boolean;
35
- }
36
- export interface EntityMap {
37
- [key: string]: Entity;
38
- }
39
- export interface Entity {
40
- name: string;
41
- value?: string;
42
- defaultField?: any;
43
- }
44
- export interface QueryBuilderClassNames {
45
- arrowIconButton?: string;
46
- arrowIcon?: string;
47
- removeIcon?: string;
48
- addIcon?: string;
49
- button?: string;
50
- buttonGroup?: string;
51
- removeButton?: string;
52
- removeButtonSize?: string;
53
- switchRow?: string;
54
- switchGroup?: string;
55
- switchLabel?: string;
56
- switchRadio?: string;
57
- switchControl?: string;
58
- rightAlign?: string;
59
- transition?: string;
60
- collapsed?: string;
61
- treeContainer?: string;
62
- tree?: string;
63
- row?: string;
64
- connector?: string;
65
- rule?: string;
66
- ruleSet?: string;
67
- invalidRuleSet?: string;
68
- emptyWarning?: string;
69
- fieldControl?: string;
70
- fieldControlSize?: string;
71
- entityControl?: string;
72
- entityControlSize?: string;
73
- operatorControl?: string;
74
- operatorControlSize?: string;
75
- inputControl?: string;
76
- inputControlSize?: string;
77
- }
78
- export interface QueryBuilderConfig {
79
- fields: FieldMap;
80
- entities?: EntityMap;
81
- allowEmptyRulesets?: boolean;
82
- getOperators?: (fieldName: string, field: Field) => string[];
83
- getInputType?: (field: string, operator: string) => string;
84
- getOptions?: (field: string) => Option[];
85
- addRuleSet?: (parent: RuleSet) => void;
86
- addRule?: (parent: RuleSet) => void;
87
- removeRuleSet?: (ruleset: RuleSet, parent?: RuleSet) => void;
88
- removeRule?: (rule: Rule, parent: RuleSet) => void;
89
- coerceValueForOperator?: (operator: string, value: any, rule: Rule) => any;
90
- calculateFieldChangeValue?: (currentField: Field, nextField: Field, currentValue: any) => any;
91
- }
92
- export interface SwitchGroupContext {
93
- onChange: (conditionValue: string) => void;
94
- getDisabledState: () => boolean;
95
- $implicit: RuleSet;
96
- }
97
- export interface EmptyWarningContext {
98
- getDisabledState: () => boolean;
99
- message: string;
100
- $implicit: RuleSet;
101
- }
102
- export interface ArrowIconContext {
103
- getDisabledState: () => boolean;
104
- $implicit: RuleSet;
105
- }
106
- export interface EntityContext {
107
- onChange: (entityValue: string, rule: Rule) => void;
108
- getDisabledState: () => boolean;
109
- entities: Entity[];
110
- $implicit: Rule;
111
- }
112
- export interface FieldContext {
113
- onChange: (fieldValue: string, rule: Rule) => void;
114
- getFields: (entityName: string) => void;
115
- getDisabledState: () => boolean;
116
- fields: Field[];
117
- $implicit: Rule;
118
- }
119
- export interface OperatorContext {
120
- onChange: () => void;
121
- getDisabledState: () => boolean;
122
- operators: string[];
123
- $implicit: Rule;
124
- }
125
- export interface InputContext {
126
- onChange: () => void;
127
- getDisabledState: () => boolean;
128
- options: Option[];
129
- field: Field;
130
- $implicit: Rule;
131
- }
132
- export interface ButtonGroupContext {
133
- addRule: () => void;
134
- addRuleSet: () => void;
135
- removeRuleSet: () => void;
136
- getDisabledState: () => boolean;
137
- $implicit: RuleSet;
138
- }
139
- export interface RemoveButtonContext {
140
- removeRule: (rule: Rule) => void;
141
- getDisabledState: () => boolean;
142
- $implicit: Rule;
143
- }
1
+ export interface RuleSet {
2
+ condition: string;
3
+ rules: Array<RuleSet | Rule | any>;
4
+ collapsed?: boolean;
5
+ isChild?: boolean;
6
+ }
7
+ export interface Rule {
8
+ field: string;
9
+ value?: any;
10
+ operator?: string;
11
+ entity?: string;
12
+ }
13
+ export interface Option {
14
+ name: string;
15
+ value: any;
16
+ }
17
+ export interface FieldMap {
18
+ [key: string]: Field;
19
+ }
20
+ export interface Field {
21
+ name: string;
22
+ value?: string;
23
+ type: string;
24
+ nullable?: boolean;
25
+ options?: Option[];
26
+ operators?: string[];
27
+ defaultValue?: any;
28
+ defaultOperator?: any;
29
+ entity?: string;
30
+ validator?: (rule: Rule, parent: RuleSet) => any | null;
31
+ }
32
+ export interface LocalRuleMeta {
33
+ ruleset: boolean;
34
+ invalid: boolean;
35
+ }
36
+ export interface EntityMap {
37
+ [key: string]: Entity;
38
+ }
39
+ export interface Entity {
40
+ name: string;
41
+ value?: string;
42
+ defaultField?: any;
43
+ }
44
+ export interface QueryBuilderClassNames {
45
+ arrowIconButton?: string;
46
+ arrowIcon?: string;
47
+ removeIcon?: string;
48
+ addIcon?: string;
49
+ button?: string;
50
+ buttonGroup?: string;
51
+ removeButton?: string;
52
+ removeButtonSize?: string;
53
+ switchRow?: string;
54
+ switchGroup?: string;
55
+ switchLabel?: string;
56
+ switchRadio?: string;
57
+ switchControl?: string;
58
+ rightAlign?: string;
59
+ transition?: string;
60
+ collapsed?: string;
61
+ treeContainer?: string;
62
+ tree?: string;
63
+ row?: string;
64
+ connector?: string;
65
+ rule?: string;
66
+ ruleSet?: string;
67
+ invalidRuleSet?: string;
68
+ emptyWarning?: string;
69
+ fieldControl?: string;
70
+ fieldControlSize?: string;
71
+ entityControl?: string;
72
+ entityControlSize?: string;
73
+ operatorControl?: string;
74
+ operatorControlSize?: string;
75
+ inputControl?: string;
76
+ inputControlSize?: string;
77
+ }
78
+ export interface QueryBuilderConfig {
79
+ fields: FieldMap;
80
+ entities?: EntityMap;
81
+ allowEmptyRulesets?: boolean;
82
+ getOperators?: (fieldName: string, field: Field) => string[];
83
+ getInputType?: (field: string, operator: string) => string;
84
+ getOptions?: (field: string) => Option[];
85
+ addRuleSet?: (parent: RuleSet) => void;
86
+ addRule?: (parent: RuleSet) => void;
87
+ removeRuleSet?: (ruleset: RuleSet, parent?: RuleSet) => void;
88
+ removeRule?: (rule: Rule, parent: RuleSet) => void;
89
+ coerceValueForOperator?: (operator: string, value: any, rule: Rule) => any;
90
+ calculateFieldChangeValue?: (currentField: Field, nextField: Field, currentValue: any) => any;
91
+ }
92
+ export interface SwitchGroupContext {
93
+ onChange: (conditionValue: string) => void;
94
+ getDisabledState: () => boolean;
95
+ $implicit: RuleSet;
96
+ }
97
+ export interface EmptyWarningContext {
98
+ getDisabledState: () => boolean;
99
+ message: string;
100
+ $implicit: RuleSet;
101
+ }
102
+ export interface ArrowIconContext {
103
+ getDisabledState: () => boolean;
104
+ $implicit: RuleSet;
105
+ }
106
+ export interface EntityContext {
107
+ onChange: (entityValue: string, rule: Rule) => void;
108
+ getDisabledState: () => boolean;
109
+ entities: Entity[];
110
+ $implicit: Rule;
111
+ }
112
+ export interface FieldContext {
113
+ onChange: (fieldValue: string, rule: Rule) => void;
114
+ getFields: (entityName: string) => void;
115
+ getDisabledState: () => boolean;
116
+ fields: Field[];
117
+ $implicit: Rule;
118
+ }
119
+ export interface OperatorContext {
120
+ onChange: () => void;
121
+ getDisabledState: () => boolean;
122
+ operators: string[];
123
+ $implicit: Rule;
124
+ }
125
+ export interface InputContext {
126
+ onChange: () => void;
127
+ getDisabledState: () => boolean;
128
+ options: Option[];
129
+ field: Field;
130
+ $implicit: Rule;
131
+ }
132
+ export interface ButtonGroupContext {
133
+ addRule: () => void;
134
+ addRuleSet: () => void;
135
+ removeRuleSet: () => void;
136
+ getDisabledState: () => boolean;
137
+ $implicit: RuleSet;
138
+ }
139
+ export interface RemoveButtonContext {
140
+ removeRule: (rule: Rule) => void;
141
+ getDisabledState: () => boolean;
142
+ $implicit: Rule;
143
+ }
@@ -1,8 +1,8 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QueryButtonGroupDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryButtonGroupDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<QueryButtonGroupDirective, "[queryButtonGroup]", never, {}, {}, never, never, false, never>;
8
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class QueryButtonGroupDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryButtonGroupDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryButtonGroupDirective, "[queryButtonGroup]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,8 +1,8 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QueryEmptyWarningDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryEmptyWarningDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<QueryEmptyWarningDirective, "[queryEmptyWarning]", never, {}, {}, never, never, false, never>;
8
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class QueryEmptyWarningDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryEmptyWarningDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryEmptyWarningDirective, "[queryEmptyWarning]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,8 +1,8 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QueryEntityDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryEntityDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<QueryEntityDirective, "[queryEntity]", never, {}, {}, never, never, false, never>;
8
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class QueryEntityDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryEntityDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryEntityDirective, "[queryEntity]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,8 +1,8 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QueryFieldDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryFieldDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<QueryFieldDirective, "[queryField]", never, {}, {}, never, never, false, never>;
8
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class QueryFieldDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryFieldDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryFieldDirective, "[queryField]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,12 +1,12 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QueryInputDirective {
4
- template: TemplateRef<any>;
5
- /** Unique name for query input type. */
6
- get queryInputType(): string;
7
- set queryInputType(value: string);
8
- private _type;
9
- constructor(template: TemplateRef<any>);
10
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryInputDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<QueryInputDirective, "[queryInput]", never, { "queryInputType": "queryInputType"; }, {}, never, never, false, never>;
12
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class QueryInputDirective {
4
+ template: TemplateRef<any>;
5
+ /** Unique name for query input type. */
6
+ get queryInputType(): string;
7
+ set queryInputType(value: string);
8
+ private _type;
9
+ constructor(template: TemplateRef<any>);
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryInputDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryInputDirective, "[queryInput]", never, { "queryInputType": { "alias": "queryInputType"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -1,8 +1,8 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QueryOperatorDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryOperatorDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<QueryOperatorDirective, "[queryOperator]", never, {}, {}, never, never, false, never>;
8
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class QueryOperatorDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryOperatorDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryOperatorDirective, "[queryOperator]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,8 +1,8 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QueryRemoveButtonDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryRemoveButtonDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<QueryRemoveButtonDirective, "[queryRemoveButton]", never, {}, {}, never, never, false, never>;
8
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class QueryRemoveButtonDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryRemoveButtonDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryRemoveButtonDirective, "[queryRemoveButton]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,8 +1,8 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QuerySwitchGroupDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<QuerySwitchGroupDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<QuerySwitchGroupDirective, "[querySwitchGroup]", never, {}, {}, never, never, false, never>;
8
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class QuerySwitchGroupDirective {
4
+ template: TemplateRef<any>;
5
+ constructor(template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuerySwitchGroupDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QuerySwitchGroupDirective, "[querySwitchGroup]", never, {}, {}, never, never, false, never>;
8
+ }
package/package.json CHANGED
@@ -1,20 +1,16 @@
1
1
  {
2
2
  "name": "ngx-angular-query-builder",
3
- "version": "16.0.0",
3
+ "version": "18.0.0",
4
4
  "description": "Port of angular2-query-builder from github.com/designermanjeets/Angular-QueryBuilder in order to support angular 12+",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
7
- "@angular/common": "^16.0.0",
8
- "@angular/core": "^16.0.0"
7
+ "@angular/common": "^18.0.3",
8
+ "@angular/core": "^18.0.3"
9
9
  },
10
10
  "dependencies": {
11
11
  "tslib": "^2.3.0"
12
12
  },
13
- "module": "fesm2015/ngx-angular-query-builder.mjs",
14
- "es2020": "fesm2020/ngx-angular-query-builder.mjs",
15
- "esm2020": "esm2020/ngx-angular-query-builder.mjs",
16
- "fesm2020": "fesm2020/ngx-angular-query-builder.mjs",
17
- "fesm2015": "fesm2015/ngx-angular-query-builder.mjs",
13
+ "module": "fesm2022/ngx-angular-query-builder.mjs",
18
14
  "typings": "index.d.ts",
19
15
  "exports": {
20
16
  "./package.json": {
@@ -22,11 +18,9 @@
22
18
  },
23
19
  ".": {
24
20
  "types": "./index.d.ts",
25
- "esm2020": "./esm2020/ngx-angular-query-builder.mjs",
26
- "es2020": "./fesm2020/ngx-angular-query-builder.mjs",
27
- "es2015": "./fesm2015/ngx-angular-query-builder.mjs",
28
- "node": "./fesm2015/ngx-angular-query-builder.mjs",
29
- "default": "./fesm2020/ngx-angular-query-builder.mjs"
21
+ "esm2022": "./esm2022/ngx-angular-query-builder.mjs",
22
+ "esm": "./esm2022/ngx-angular-query-builder.mjs",
23
+ "default": "./fesm2022/ngx-angular-query-builder.mjs"
30
24
  }
31
25
  },
32
26
  "sideEffects": false
package/public-api.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export * from './lib/query-builder/query-builder.interfaces';
2
- export * from './lib/query-builder/query-builder.component';
3
- export * from './lib/query-builder/query-button-group.directive';
4
- export * from './lib/query-builder/query-entity.directive';
5
- export * from './lib/query-builder/query-field.directive';
6
- export * from './lib/query-builder/query-input.directive';
7
- export * from './lib/query-builder/query-operator.directive';
8
- export * from './lib/query-builder/query-switch-group.directive';
9
- export * from './lib/query-builder/query-remove-button.directive';
10
- export * from './lib/query-builder/query-empty-warning.directive';
11
- export * from './lib/query-builder/query-arrow-icon.directive';
12
- export * from './lib/ngx-angular-query-builder.module';
1
+ export * from "./lib/query-builder/query-builder.interfaces";
2
+ export * from "./lib/query-builder/query-builder.component";
3
+ export * from "./lib/query-builder/query-button-group.directive";
4
+ export * from "./lib/query-builder/query-entity.directive";
5
+ export * from "./lib/query-builder/query-field.directive";
6
+ export * from "./lib/query-builder/query-input.directive";
7
+ export * from "./lib/query-builder/query-operator.directive";
8
+ export * from "./lib/query-builder/query-switch-group.directive";
9
+ export * from "./lib/query-builder/query-remove-button.directive";
10
+ export * from "./lib/query-builder/query-empty-warning.directive";
11
+ export * from "./lib/query-builder/query-arrow-icon.directive";
12
+ export * from "./lib/ngx-angular-query-builder.module";
@@ -1,73 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormsModule, } from '@angular/forms';
4
- import { QueryBuilderComponent } from './query-builder/query-builder.component';
5
- import { QueryArrowIconDirective } from './query-builder/query-arrow-icon.directive';
6
- import { QueryFieldDirective } from './query-builder/query-field.directive';
7
- import { QueryInputDirective } from './query-builder/query-input.directive';
8
- import { QueryEntityDirective } from './query-builder/query-entity.directive';
9
- import { QueryOperatorDirective } from './query-builder/query-operator.directive';
10
- import { QueryButtonGroupDirective } from './query-builder/query-button-group.directive';
11
- import { QuerySwitchGroupDirective } from './query-builder/query-switch-group.directive';
12
- import { QueryRemoveButtonDirective } from './query-builder/query-remove-button.directive';
13
- import { QueryEmptyWarningDirective } from './query-builder/query-empty-warning.directive';
14
- import * as i0 from "@angular/core";
15
- export class NgxAngularQueryBuilderModule {
16
- }
17
- NgxAngularQueryBuilderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgxAngularQueryBuilderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
18
- NgxAngularQueryBuilderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.0", ngImport: i0, type: NgxAngularQueryBuilderModule, declarations: [QueryBuilderComponent,
19
- QueryInputDirective,
20
- QueryOperatorDirective,
21
- QueryFieldDirective,
22
- QueryEntityDirective,
23
- QueryButtonGroupDirective,
24
- QuerySwitchGroupDirective,
25
- QueryRemoveButtonDirective,
26
- QueryEmptyWarningDirective,
27
- QueryArrowIconDirective], imports: [CommonModule,
28
- FormsModule], exports: [QueryBuilderComponent,
29
- QueryInputDirective,
30
- QueryOperatorDirective,
31
- QueryFieldDirective,
32
- QueryEntityDirective,
33
- QueryButtonGroupDirective,
34
- QuerySwitchGroupDirective,
35
- QueryRemoveButtonDirective,
36
- QueryEmptyWarningDirective,
37
- QueryArrowIconDirective] });
38
- NgxAngularQueryBuilderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgxAngularQueryBuilderModule, imports: [CommonModule,
39
- FormsModule] });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: NgxAngularQueryBuilderModule, decorators: [{
41
- type: NgModule,
42
- args: [{
43
- imports: [
44
- CommonModule,
45
- FormsModule
46
- ],
47
- declarations: [
48
- QueryBuilderComponent,
49
- QueryInputDirective,
50
- QueryOperatorDirective,
51
- QueryFieldDirective,
52
- QueryEntityDirective,
53
- QueryButtonGroupDirective,
54
- QuerySwitchGroupDirective,
55
- QueryRemoveButtonDirective,
56
- QueryEmptyWarningDirective,
57
- QueryArrowIconDirective
58
- ],
59
- exports: [
60
- QueryBuilderComponent,
61
- QueryInputDirective,
62
- QueryOperatorDirective,
63
- QueryFieldDirective,
64
- QueryEntityDirective,
65
- QueryButtonGroupDirective,
66
- QuerySwitchGroupDirective,
67
- QueryRemoveButtonDirective,
68
- QueryEmptyWarningDirective,
69
- QueryArrowIconDirective
70
- ]
71
- }]
72
- }] });
73
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWFuZ3VsYXItcXVlcnktYnVpbGRlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtYW5ndWxhci1xdWVyeS1idWlsZGVyL3NyYy9saWIvbmd4LWFuZ3VsYXItcXVlcnktYnVpbGRlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsR0FBRyxNQUFNLGdCQUFnQixDQUFDO0FBRTlDLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBRWhGLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDRDQUE0QyxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBQzVFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBQzVFLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO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b25EaXJlY3RpdmUsXG4gICAgUXVlcnlFbXB0eVdhcm5pbmdEaXJlY3RpdmUsXG4gICAgUXVlcnlBcnJvd0ljb25EaXJlY3RpdmVcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIFF1ZXJ5QnVpbGRlckNvbXBvbmVudCxcbiAgICBRdWVyeUlucHV0RGlyZWN0aXZlLFxuICAgIFF1ZXJ5T3BlcmF0b3JEaXJlY3RpdmUsXG4gICAgUXVlcnlGaWVsZERpcmVjdGl2ZSxcbiAgICBRdWVyeUVudGl0eURpcmVjdGl2ZSxcbiAgICBRdWVyeUJ1dHRvbkdyb3VwRGlyZWN0aXZlLFxuICAgIFF1ZXJ5U3dpdGNoR3JvdXBEaXJlY3RpdmUsXG4gICAgUXVlcnlSZW1vdmVCdXR0b25EaXJlY3RpdmUsXG4gICAgUXVlcnlFbXB0eVdhcm5pbmdEaXJlY3RpdmUsXG4gICAgUXVlcnlBcnJvd0ljb25EaXJlY3RpdmVcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBOZ3hBbmd1bGFyUXVlcnlCdWlsZGVyTW9kdWxlIHsgfVxuIl19
@@ -1,14 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class QueryArrowIconDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- }
8
- QueryArrowIconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: QueryArrowIconDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
9
- QueryArrowIconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.0", type: QueryArrowIconDirective, selector: "[queryArrowIcon]", ngImport: i0 });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: QueryArrowIconDirective, decorators: [{
11
- type: Directive,
12
- args: [{ selector: '[queryArrowIcon]' }]
13
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktYXJyb3ctaWNvbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtYW5ndWxhci1xdWVyeS1idWlsZGVyL3NyYy9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1hcnJvdy1pY29uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFlLE1BQU0sZUFBZSxDQUFDOztBQUd2RCxNQUFNLE9BQU8sdUJBQXVCO0lBQ2xDLFlBQW1CLFFBQTBCO1FBQTFCLGFBQVEsR0FBUixRQUFRLENBQWtCO0lBQUcsQ0FBQzs7b0hBRHRDLHVCQUF1Qjt3R0FBdkIsdUJBQXVCOzJGQUF2Qix1QkFBdUI7a0JBRG5DLFNBQVM7bUJBQUMsRUFBQyxRQUFRLEVBQUUsa0JBQWtCLEVBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUsIFRlbXBsYXRlUmVmIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBEaXJlY3RpdmUoe3NlbGVjdG9yOiAnW3F1ZXJ5QXJyb3dJY29uXSd9KVxuZXhwb3J0IGNsYXNzIFF1ZXJ5QXJyb3dJY29uRGlyZWN0aXZlIHtcbiAgY29uc3RydWN0b3IocHVibGljIHRlbXBsYXRlOiBUZW1wbGF0ZVJlZjxhbnk+KSB7fVxufVxuIl19