ngx-angular-query-builder 18.0.0 → 20.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 (31) hide show
  1. package/fesm2022/ngx-angular-query-builder.mjs +72 -45
  2. package/fesm2022/ngx-angular-query-builder.mjs.map +1 -1
  3. package/index.d.ts +342 -5
  4. package/package.json +4 -5
  5. package/esm2022/lib/ngx-angular-query-builder.module.mjs +0 -68
  6. package/esm2022/lib/query-builder/query-arrow-icon.directive.mjs +0 -14
  7. package/esm2022/lib/query-builder/query-builder.component.mjs +0 -758
  8. package/esm2022/lib/query-builder/query-builder.interfaces.mjs +0 -2
  9. package/esm2022/lib/query-builder/query-button-group.directive.mjs +0 -14
  10. package/esm2022/lib/query-builder/query-empty-warning.directive.mjs +0 -14
  11. package/esm2022/lib/query-builder/query-entity.directive.mjs +0 -14
  12. package/esm2022/lib/query-builder/query-field.directive.mjs +0 -14
  13. package/esm2022/lib/query-builder/query-input.directive.mjs +0 -28
  14. package/esm2022/lib/query-builder/query-operator.directive.mjs +0 -14
  15. package/esm2022/lib/query-builder/query-remove-button.directive.mjs +0 -14
  16. package/esm2022/lib/query-builder/query-switch-group.directive.mjs +0 -14
  17. package/esm2022/ngx-angular-query-builder.mjs +0 -5
  18. package/esm2022/public-api.mjs +0 -16
  19. package/lib/ngx-angular-query-builder.module.d.ts +0 -18
  20. package/lib/query-builder/query-arrow-icon.directive.d.ts +0 -8
  21. package/lib/query-builder/query-builder.component.d.ts +0 -129
  22. package/lib/query-builder/query-builder.interfaces.d.ts +0 -143
  23. package/lib/query-builder/query-button-group.directive.d.ts +0 -8
  24. package/lib/query-builder/query-empty-warning.directive.d.ts +0 -8
  25. package/lib/query-builder/query-entity.directive.d.ts +0 -8
  26. package/lib/query-builder/query-field.directive.d.ts +0 -8
  27. package/lib/query-builder/query-input.directive.d.ts +0 -12
  28. package/lib/query-builder/query-operator.directive.d.ts +0 -8
  29. package/lib/query-builder/query-remove-button.directive.d.ts +0 -8
  30. package/lib/query-builder/query-switch-group.directive.d.ts +0 -8
  31. package/public-api.d.ts +0 -12
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktYnVpbGRlci5pbnRlcmZhY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWFuZ3VsYXItcXVlcnktYnVpbGRlci9zcmMvbGliL3F1ZXJ5LWJ1aWxkZXIvcXVlcnktYnVpbGRlci5pbnRlcmZhY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBWYWxpZGF0aW9uRXJyb3JzIH0gZnJvbSBcIkBhbmd1bGFyL2Zvcm1zXCI7XG5cbmV4cG9ydCBpbnRlcmZhY2UgUnVsZVNldCB7XG4gIGNvbmRpdGlvbjogc3RyaW5nO1xuICBydWxlczogQXJyYXk8UnVsZVNldCB8IFJ1bGUgfCBhbnk+O1xuICBjb2xsYXBzZWQ/OiBib29sZWFuO1xuICBpc0NoaWxkPzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSdWxlIHtcbiAgZmllbGQ6IHN0cmluZztcbiAgdmFsdWU/OiBhbnk7XG4gIG9wZXJhdG9yPzogc3RyaW5nO1xuICBlbnRpdHk/OiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgT3B0aW9uIHtcbiAgbmFtZTogc3RyaW5nO1xuICB2YWx1ZTogYW55O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEZpZWxkTWFwIHtcbiAgW2tleTogc3RyaW5nXTogRmllbGQ7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgRmllbGQge1xuICBuYW1lOiBzdHJpbmc7XG4gIHZhbHVlPzogc3RyaW5nO1xuICB0e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xuICByZW1vdmVSdWxlOiAocnVsZTogUnVsZSkgPT4gdm9pZDtcbiAgZ2V0RGlzYWJsZWRTdGF0ZTogKCkgPT4gYm9vbGVhbjtcbiAgJGltcGxpY2l0OiBSdWxlO1xufVxuIl19
@@ -1,14 +0,0 @@
1
- import { Directive } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class QueryButtonGroupDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryButtonGroupDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.3", type: QueryButtonGroupDirective, selector: "[queryButtonGroup]", ngImport: i0 }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryButtonGroupDirective, decorators: [{
11
- type: Directive,
12
- args: [{ selector: "[queryButtonGroup]" }]
13
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktYnV0dG9uLWdyb3VwLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1hbmd1bGFyLXF1ZXJ5LWJ1aWxkZXIvc3JjL2xpYi9xdWVyeS1idWlsZGVyL3F1ZXJ5LWJ1dHRvbi1ncm91cC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBZSxNQUFNLGVBQWUsQ0FBQzs7QUFHdkQsTUFBTSxPQUFPLHlCQUF5QjtJQUNwQyxZQUFtQixRQUEwQjtRQUExQixhQUFRLEdBQVIsUUFBUSxDQUFrQjtJQUFHLENBQUM7OEdBRHRDLHlCQUF5QjtrR0FBekIseUJBQXlCOzsyRkFBekIseUJBQXlCO2tCQURyQyxTQUFTO21CQUFDLEVBQUUsUUFBUSxFQUFFLG9CQUFvQixFQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGlyZWN0aXZlLCBUZW1wbGF0ZVJlZiB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XG5cbkBEaXJlY3RpdmUoeyBzZWxlY3RvcjogXCJbcXVlcnlCdXR0b25Hcm91cF1cIiB9KVxuZXhwb3J0IGNsYXNzIFF1ZXJ5QnV0dG9uR3JvdXBEaXJlY3RpdmUge1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgdGVtcGxhdGU6IFRlbXBsYXRlUmVmPGFueT4pIHt9XG59XG4iXX0=
@@ -1,14 +0,0 @@
1
- import { Directive } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class QueryEmptyWarningDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryEmptyWarningDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.3", type: QueryEmptyWarningDirective, selector: "[queryEmptyWarning]", ngImport: i0 }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryEmptyWarningDirective, decorators: [{
11
- type: Directive,
12
- args: [{ selector: "[queryEmptyWarning]" }]
13
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktZW1wdHktd2FybmluZy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtYW5ndWxhci1xdWVyeS1idWlsZGVyL3NyYy9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1lbXB0eS13YXJuaW5nLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFlLE1BQU0sZUFBZSxDQUFDOztBQUd2RCxNQUFNLE9BQU8sMEJBQTBCO0lBQ3JDLFlBQW1CLFFBQTBCO1FBQTFCLGFBQVEsR0FBUixRQUFRLENBQWtCO0lBQUcsQ0FBQzs4R0FEdEMsMEJBQTBCO2tHQUExQiwwQkFBMEI7OzJGQUExQiwwQkFBMEI7a0JBRHRDLFNBQVM7bUJBQUMsRUFBRSxRQUFRLEVBQUUscUJBQXFCLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUsIFRlbXBsYXRlUmVmIH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcblxuQERpcmVjdGl2ZSh7IHNlbGVjdG9yOiBcIltxdWVyeUVtcHR5V2FybmluZ11cIiB9KVxuZXhwb3J0IGNsYXNzIFF1ZXJ5RW1wdHlXYXJuaW5nRGlyZWN0aXZlIHtcbiAgY29uc3RydWN0b3IocHVibGljIHRlbXBsYXRlOiBUZW1wbGF0ZVJlZjxhbnk+KSB7fVxufVxuIl19
@@ -1,14 +0,0 @@
1
- import { Directive } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class QueryEntityDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryEntityDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.3", type: QueryEntityDirective, selector: "[queryEntity]", ngImport: i0 }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryEntityDirective, decorators: [{
11
- type: Directive,
12
- args: [{ selector: "[queryEntity]" }]
13
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktZW50aXR5LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1hbmd1bGFyLXF1ZXJ5LWJ1aWxkZXIvc3JjL2xpYi9xdWVyeS1idWlsZGVyL3F1ZXJ5LWVudGl0eS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBZSxNQUFNLGVBQWUsQ0FBQzs7QUFHdkQsTUFBTSxPQUFPLG9CQUFvQjtJQUMvQixZQUFtQixRQUEwQjtRQUExQixhQUFRLEdBQVIsUUFBUSxDQUFrQjtJQUFHLENBQUM7OEdBRHRDLG9CQUFvQjtrR0FBcEIsb0JBQW9COzsyRkFBcEIsb0JBQW9CO2tCQURoQyxTQUFTO21CQUFDLEVBQUUsUUFBUSxFQUFFLGVBQWUsRUFBRSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSwgVGVtcGxhdGVSZWYgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuXG5ARGlyZWN0aXZlKHsgc2VsZWN0b3I6IFwiW3F1ZXJ5RW50aXR5XVwiIH0pXG5leHBvcnQgY2xhc3MgUXVlcnlFbnRpdHlEaXJlY3RpdmUge1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgdGVtcGxhdGU6IFRlbXBsYXRlUmVmPGFueT4pIHt9XG59XG4iXX0=
@@ -1,14 +0,0 @@
1
- import { Directive } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class QueryFieldDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryFieldDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.3", type: QueryFieldDirective, selector: "[queryField]", ngImport: i0 }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryFieldDirective, decorators: [{
11
- type: Directive,
12
- args: [{ selector: "[queryField]" }]
13
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktZmllbGQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWFuZ3VsYXItcXVlcnktYnVpbGRlci9zcmMvbGliL3F1ZXJ5LWJ1aWxkZXIvcXVlcnktZmllbGQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWUsTUFBTSxlQUFlLENBQUM7O0FBR3ZELE1BQU0sT0FBTyxtQkFBbUI7SUFDOUIsWUFBbUIsUUFBMEI7UUFBMUIsYUFBUSxHQUFSLFFBQVEsQ0FBa0I7SUFBRyxDQUFDOzhHQUR0QyxtQkFBbUI7a0dBQW5CLG1CQUFtQjs7MkZBQW5CLG1CQUFtQjtrQkFEL0IsU0FBUzttQkFBQyxFQUFFLFFBQVEsRUFBRSxjQUFjLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUsIFRlbXBsYXRlUmVmIH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcblxuQERpcmVjdGl2ZSh7IHNlbGVjdG9yOiBcIltxdWVyeUZpZWxkXVwiIH0pXG5leHBvcnQgY2xhc3MgUXVlcnlGaWVsZERpcmVjdGl2ZSB7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyB0ZW1wbGF0ZTogVGVtcGxhdGVSZWY8YW55Pikge31cbn1cbiJdfQ==
@@ -1,28 +0,0 @@
1
- import { Directive, Input } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class QueryInputDirective {
4
- /** Unique name for query input type. */
5
- get queryInputType() {
6
- return this._type;
7
- }
8
- set queryInputType(value) {
9
- // If the directive is set without a type (updated programatically), then this setter will
10
- // trigger with an empty string and should not overwrite the programatically set value.
11
- if (!value) {
12
- return;
13
- }
14
- this._type = value;
15
- }
16
- constructor(template) {
17
- this.template = template;
18
- }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryInputDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
20
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.3", type: QueryInputDirective, selector: "[queryInput]", inputs: { queryInputType: "queryInputType" }, ngImport: i0 }); }
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryInputDirective, decorators: [{
23
- type: Directive,
24
- args: [{ selector: "[queryInput]" }]
25
- }], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { queryInputType: [{
26
- type: Input
27
- }] } });
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktaW5wdXQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWFuZ3VsYXItcXVlcn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GUoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5fdHlwZTtcbiAgfVxuICBzZXQgcXVlcnlJbnB1dFR5cGUodmFsdWU6IHN0cmluZykge1xuICAgIC8vIElmIHRoZSBkaXJlY3RpdmUgaXMgc2V0IHdpdGhvdXQgYSB0eXBlICh1cGRhdGVkIHByb2dyYW1hdGljYWxseSksIHRoZW4gdGhpcyBzZXR0ZXIgd2lsbFxuICAgIC8vIHRyaWdnZXIgd2l0aCBhbiBlbXB0eSBzdHJpbmcgYW5kIHNob3VsZCBub3Qgb3ZlcndyaXRlIHRoZSBwcm9ncmFtYXRpY2FsbHkgc2V0IHZhbHVlLlxuICAgIGlmICghdmFsdWUpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgdGhpcy5fdHlwZSA9IHZhbHVlO1xuICB9XG4gIHByaXZhdGUgX3R5cGUhOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IocHVibGljIHRlbXBsYXRlOiBUZW1wbGF0ZVJlZjxhbnk+KSB7fVxufVxuIl19
@@ -1,14 +0,0 @@
1
- import { Directive } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class QueryOperatorDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryOperatorDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.3", type: QueryOperatorDirective, selector: "[queryOperator]", ngImport: i0 }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryOperatorDirective, decorators: [{
11
- type: Directive,
12
- args: [{ selector: "[queryOperator]" }]
13
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktb3BlcmF0b3IuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWFuZ3VsYXItcXVlcnktYnVpbGRlci9zcmMvbGliL3F1ZXJ5LWJ1aWxkZXIvcXVlcnktb3BlcmF0b3IuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWUsTUFBTSxlQUFlLENBQUM7O0FBR3ZELE1BQU0sT0FBTyxzQkFBc0I7SUFDakMsWUFBbUIsUUFBMEI7UUFBMUIsYUFBUSxHQUFSLFFBQVEsQ0FBa0I7SUFBRyxDQUFDOzhHQUR0QyxzQkFBc0I7a0dBQXRCLHNCQUFzQjs7MkZBQXRCLHNCQUFzQjtrQkFEbEMsU0FBUzttQkFBQyxFQUFFLFFBQVEsRUFBRSxpQkFBaUIsRUFBRSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSwgVGVtcGxhdGVSZWYgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuXG5ARGlyZWN0aXZlKHsgc2VsZWN0b3I6IFwiW3F1ZXJ5T3BlcmF0b3JdXCIgfSlcbmV4cG9ydCBjbGFzcyBRdWVyeU9wZXJhdG9yRGlyZWN0aXZlIHtcbiAgY29uc3RydWN0b3IocHVibGljIHRlbXBsYXRlOiBUZW1wbGF0ZVJlZjxhbnk+KSB7fVxufVxuIl19
@@ -1,14 +0,0 @@
1
- import { Directive } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class QueryRemoveButtonDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryRemoveButtonDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.3", type: QueryRemoveButtonDirective, selector: "[queryRemoveButton]", ngImport: i0 }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QueryRemoveButtonDirective, decorators: [{
11
- type: Directive,
12
- args: [{ selector: "[queryRemoveButton]" }]
13
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktcmVtb3ZlLWJ1dHRvbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtYW5ndWxhci1xdWVyeS1idWlsZGVyL3NyYy9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1yZW1vdmUtYnV0dG9uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFlLE1BQU0sZUFBZSxDQUFDOztBQUd2RCxNQUFNLE9BQU8sMEJBQTBCO0lBQ3JDLFlBQW1CLFFBQTBCO1FBQTFCLGFBQVEsR0FBUixRQUFRLENBQWtCO0lBQUcsQ0FBQzs4R0FEdEMsMEJBQTBCO2tHQUExQiwwQkFBMEI7OzJGQUExQiwwQkFBMEI7a0JBRHRDLFNBQVM7bUJBQUMsRUFBRSxRQUFRLEVBQUUscUJBQXFCLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUsIFRlbXBsYXRlUmVmIH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcblxuQERpcmVjdGl2ZSh7IHNlbGVjdG9yOiBcIltxdWVyeVJlbW92ZUJ1dHRvbl1cIiB9KVxuZXhwb3J0IGNsYXNzIFF1ZXJ5UmVtb3ZlQnV0dG9uRGlyZWN0aXZlIHtcbiAgY29uc3RydWN0b3IocHVibGljIHRlbXBsYXRlOiBUZW1wbGF0ZVJlZjxhbnk+KSB7fVxufVxuIl19
@@ -1,14 +0,0 @@
1
- import { Directive } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export class QuerySwitchGroupDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QuerySwitchGroupDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.3", type: QuerySwitchGroupDirective, selector: "[querySwitchGroup]", ngImport: i0 }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: QuerySwitchGroupDirective, decorators: [{
11
- type: Directive,
12
- args: [{ selector: "[querySwitchGroup]" }]
13
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktc3dpdGNoLWdyb3VwLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1hbmd1bGFyLXF1ZXJ5LWJ1aWxkZXIvc3JjL2xpYi9xdWVyeS1idWlsZGVyL3F1ZXJ5LXN3aXRjaC1ncm91cC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBZSxNQUFNLGVBQWUsQ0FBQzs7QUFHdkQsTUFBTSxPQUFPLHlCQUF5QjtJQUNwQyxZQUFtQixRQUEwQjtRQUExQixhQUFRLEdBQVIsUUFBUSxDQUFrQjtJQUFHLENBQUM7OEdBRHRDLHlCQUF5QjtrR0FBekIseUJBQXlCOzsyRkFBekIseUJBQXlCO2tCQURyQyxTQUFTO21CQUFDLEVBQUUsUUFBUSxFQUFFLG9CQUFvQixFQUFFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGlyZWN0aXZlLCBUZW1wbGF0ZVJlZiB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XG5cbkBEaXJlY3RpdmUoeyBzZWxlY3RvcjogXCJbcXVlcnlTd2l0Y2hHcm91cF1cIiB9KVxuZXhwb3J0IGNsYXNzIFF1ZXJ5U3dpdGNoR3JvdXBEaXJlY3RpdmUge1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgdGVtcGxhdGU6IFRlbXBsYXRlUmVmPGFueT4pIHt9XG59XG4iXX0=
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWFuZ3VsYXItcXVlcnktYnVpbGRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1hbmd1bGFyLXF1ZXJ5LWJ1aWxkZXIvc3JjL25neC1hbmd1bGFyLXF1ZXJ5LWJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,16 +0,0 @@
1
- /*
2
- * Public API Surface of ngx-angular-query-builder
3
- */
4
- export * from "./lib/query-builder/query-builder.interfaces";
5
- export * from "./lib/query-builder/query-builder.component";
6
- export * from "./lib/query-builder/query-button-group.directive";
7
- export * from "./lib/query-builder/query-entity.directive";
8
- export * from "./lib/query-builder/query-field.directive";
9
- export * from "./lib/query-builder/query-input.directive";
10
- export * from "./lib/query-builder/query-operator.directive";
11
- export * from "./lib/query-builder/query-switch-group.directive";
12
- export * from "./lib/query-builder/query-remove-button.directive";
13
- export * from "./lib/query-builder/query-empty-warning.directive";
14
- export * from "./lib/query-builder/query-arrow-icon.directive";
15
- export * from "./lib/ngx-angular-query-builder.module";
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1hbmd1bGFyLXF1ZXJ5LWJ1aWxkZXIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDhDQUE4QyxDQUFDO0FBRTdELGNBQWMsNkNBQTZDLENBQUM7QUFFNUQsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLDRDQUE0QyxDQUFDO0FBQzNELGNBQWMsMkNBQTJDLENBQUM7QUFDMUQsY0FBYywyQ0FBMkMsQ0FBQztBQUMxRCxjQUFjLDhDQUE4QyxDQUFDO0FBQzdELGNBQWMsa0RBQWtELENBQUM7QUFDakUsY0FBYyxtREFBbUQsQ0FBQztBQUNsRSxjQUFjLG1EQUFtRCxDQUFDO0FBQ2xFLGNBQWMsZ0RBQWdELENBQUM7QUFFL0QsY0FBYyx3Q0FBd0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LWFuZ3VsYXItcXVlcnktYnVpbGRlclxuICovXG5cbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9xdWVyeS1idWlsZGVyL3F1ZXJ5LWJ1aWxkZXIuaW50ZXJmYWNlc1wiO1xuXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1idWlsZGVyLmNvbXBvbmVudFwiO1xuXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1idXR0b24tZ3JvdXAuZGlyZWN0aXZlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1lbnRpdHkuZGlyZWN0aXZlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1maWVsZC5kaXJlY3RpdmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9xdWVyeS1idWlsZGVyL3F1ZXJ5LWlucHV0LmRpcmVjdGl2ZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL3F1ZXJ5LWJ1aWxkZXIvcXVlcnktb3BlcmF0b3IuZGlyZWN0aXZlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1zd2l0Y2gtZ3JvdXAuZGlyZWN0aXZlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1yZW1vdmUtYnV0dG9uLmRpcmVjdGl2ZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL3F1ZXJ5LWJ1aWxkZXIvcXVlcnktZW1wdHktd2FybmluZy5kaXJlY3RpdmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9xdWVyeS1idWlsZGVyL3F1ZXJ5LWFycm93LWljb24uZGlyZWN0aXZlXCI7XG5cbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9uZ3gtYW5ndWxhci1xdWVyeS1idWlsZGVyLm1vZHVsZVwiO1xuIl19
@@ -1,18 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./query-builder/query-builder.component";
3
- import * as i2 from "./query-builder/query-input.directive";
4
- import * as i3 from "./query-builder/query-operator.directive";
5
- import * as i4 from "./query-builder/query-field.directive";
6
- import * as i5 from "./query-builder/query-entity.directive";
7
- import * as i6 from "./query-builder/query-button-group.directive";
8
- import * as i7 from "./query-builder/query-switch-group.directive";
9
- import * as i8 from "./query-builder/query-remove-button.directive";
10
- import * as i9 from "./query-builder/query-empty-warning.directive";
11
- import * as i10 from "./query-builder/query-arrow-icon.directive";
12
- import * as i11 from "@angular/common";
13
- import * as i12 from "@angular/forms";
14
- export declare class NgxAngularQueryBuilderModule {
15
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxAngularQueryBuilderModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxAngularQueryBuilderModule, [typeof i1.QueryBuilderComponent, typeof i2.QueryInputDirective, typeof i3.QueryOperatorDirective, typeof i4.QueryFieldDirective, typeof i5.QueryEntityDirective, typeof i6.QueryButtonGroupDirective, typeof i7.QuerySwitchGroupDirective, typeof i8.QueryRemoveButtonDirective, typeof i9.QueryEmptyWarningDirective, typeof i10.QueryArrowIconDirective], [typeof i11.CommonModule, typeof i12.FormsModule], [typeof i1.QueryBuilderComponent, typeof i2.QueryInputDirective, typeof i3.QueryOperatorDirective, typeof i4.QueryFieldDirective, typeof i5.QueryEntityDirective, typeof i6.QueryButtonGroupDirective, typeof i7.QuerySwitchGroupDirective, typeof i8.QueryRemoveButtonDirective, typeof i9.QueryEmptyWarningDirective, typeof i10.QueryArrowIconDirective]>;
17
- static ɵinj: i0.ɵɵInjectorDeclaration<NgxAngularQueryBuilderModule>;
18
- }
@@ -1,8 +0,0 @@
1
- import { TemplateRef } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export declare class QueryArrowIconDirective {
4
- template: TemplateRef<any>;
5
- constructor(template: TemplateRef<any>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryArrowIconDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<QueryArrowIconDirective, "[queryArrowIcon]", never, {}, {}, never, never, false, never>;
8
- }
@@ -1,129 +0,0 @@
1
- import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms";
2
- import { QueryOperatorDirective } from "./query-operator.directive";
3
- import { QueryFieldDirective } from "./query-field.directive";
4
- import { QueryEntityDirective } from "./query-entity.directive";
5
- import { QuerySwitchGroupDirective } from "./query-switch-group.directive";
6
- import { QueryButtonGroupDirective } from "./query-button-group.directive";
7
- import { QueryInputDirective } from "./query-input.directive";
8
- import { QueryRemoveButtonDirective } from "./query-remove-button.directive";
9
- import { QueryEmptyWarningDirective } from "./query-empty-warning.directive";
10
- import { QueryArrowIconDirective } from "./query-arrow-icon.directive";
11
- import { ButtonGroupContext, Entity, Field, SwitchGroupContext, EntityContext, FieldContext, InputContext, LocalRuleMeta, OperatorContext, Option, QueryBuilderClassNames, QueryBuilderConfig, RemoveButtonContext, ArrowIconContext, Rule, RuleSet, EmptyWarningContext } from "./query-builder.interfaces";
12
- import { ChangeDetectorRef, OnChanges, QueryList, SimpleChanges, TemplateRef, ElementRef } from "@angular/core";
13
- import * as i0 from "@angular/core";
14
- export declare const CONTROL_VALUE_ACCESSOR: any;
15
- export declare const VALIDATOR: any;
16
- export declare class QueryBuilderComponent implements OnChanges, ControlValueAccessor, Validator {
17
- private changeDetectorRef;
18
- fields: Field[];
19
- filterFields: Field[];
20
- entities: Entity[];
21
- defaultClassNames: QueryBuilderClassNames;
22
- defaultOperatorMap: {
23
- [key: string]: string[];
24
- };
25
- disabled: boolean;
26
- data: RuleSet;
27
- get condition(): string;
28
- onChangeCallback: () => void;
29
- onTouchedCallback: () => any;
30
- allowRuleset: boolean;
31
- allowCollapse: boolean;
32
- emptyMessage: string;
33
- classNames: QueryBuilderClassNames;
34
- operatorMap: {
35
- [key: string]: string[];
36
- };
37
- parentValue?: RuleSet;
38
- config: QueryBuilderConfig;
39
- parentArrowIconTemplate: QueryArrowIconDirective;
40
- parentInputTemplates: QueryList<QueryInputDirective>;
41
- parentOperatorTemplate: QueryOperatorDirective;
42
- parentFieldTemplate: QueryFieldDirective;
43
- parentEntityTemplate: QueryEntityDirective;
44
- parentSwitchGroupTemplate: QuerySwitchGroupDirective;
45
- parentButtonGroupTemplate: QueryButtonGroupDirective;
46
- parentRemoveButtonTemplate: QueryRemoveButtonDirective;
47
- parentEmptyWarningTemplate: QueryEmptyWarningDirective;
48
- parentChangeCallback: () => void;
49
- parentTouchedCallback: () => void;
50
- persistValueOnFieldChange: boolean;
51
- treeContainer: ElementRef;
52
- buttonGroupTemplate: QueryButtonGroupDirective;
53
- switchGroupTemplate: QuerySwitchGroupDirective;
54
- fieldTemplate: QueryFieldDirective;
55
- entityTemplate: QueryEntityDirective;
56
- operatorTemplate: QueryOperatorDirective;
57
- removeButtonTemplate: QueryRemoveButtonDirective;
58
- emptyWarningTemplate: QueryEmptyWarningDirective;
59
- inputTemplates: QueryList<QueryInputDirective>;
60
- arrowIconTemplate: QueryArrowIconDirective;
61
- private defaultTemplateTypes;
62
- private defaultPersistValueTypes;
63
- private defaultEmptyList;
64
- private operatorsCache;
65
- private inputContextCache;
66
- private operatorContextCache;
67
- private fieldContextCache;
68
- private entityContextCache;
69
- private removeButtonContextCache;
70
- private buttonGroupContext;
71
- constructor(changeDetectorRef: ChangeDetectorRef);
72
- ngOnChanges(changes: SimpleChanges): void;
73
- validate(control: AbstractControl): ValidationErrors | null;
74
- get value(): RuleSet;
75
- set value(value: RuleSet);
76
- writeValue(obj: any): void;
77
- registerOnChange(fn: any): void;
78
- registerOnTouched(fn: any): void;
79
- setDisabledState(isDisabled: boolean): void;
80
- getDisabledState: () => boolean;
81
- findTemplateForRule(rule: Rule): TemplateRef<any> | any;
82
- findQueryInput(type: string): QueryInputDirective;
83
- getOperators(field: string): string[];
84
- getFields(entity: string): Field[];
85
- getInputType(field: string, operator: string): string | null;
86
- getOptions(field: string): Option[];
87
- getClassNames(...args: string[]): any | string[];
88
- getDefaultField(entity: Entity): Field | null;
89
- getDefaultOperator(field: Field): string | null;
90
- addRule(parent?: RuleSet): void;
91
- removeRule(rule: Rule, parent?: RuleSet): void;
92
- addRuleSet(parent?: RuleSet): void;
93
- removeRuleSet(ruleset?: RuleSet, parent?: RuleSet): void;
94
- transitionEnd(e: Event): void;
95
- toggleCollapse(): void;
96
- computedTreeContainerHeight(): void;
97
- changeCondition(value: string): void;
98
- changeOperator(rule: Rule): void;
99
- coerceValueForOperator(operator: string, value: any, rule: Rule): any;
100
- changeInput(): void;
101
- changeField(fieldValue: string, rule: Rule): void;
102
- changeEntity(entityValue: string, rule: Rule, index: number, data: RuleSet): void;
103
- getDefaultValue(defaultValue: any): any;
104
- getOperatorTemplate(): TemplateRef<any> | null;
105
- getFieldTemplate(): TemplateRef<any> | null;
106
- getEntityTemplate(): TemplateRef<any> | null;
107
- getArrowIconTemplate(): TemplateRef<any> | null;
108
- getButtonGroupTemplate(): TemplateRef<any> | null;
109
- getSwitchGroupTemplate(): TemplateRef<any> | null;
110
- getRemoveButtonTemplate(): TemplateRef<any> | null;
111
- getEmptyWarningTemplate(): TemplateRef<any> | null;
112
- getQueryItemClassName(local: LocalRuleMeta): string;
113
- getButtonGroupContext(): ButtonGroupContext;
114
- getRemoveButtonContext(rule: Rule): RemoveButtonContext;
115
- getFieldContext(rule: Rule): FieldContext;
116
- getEntityContext(rule: Rule): EntityContext;
117
- getSwitchGroupContext(): SwitchGroupContext;
118
- getArrowIconContext(): ArrowIconContext;
119
- getEmptyWarningContext(): EmptyWarningContext;
120
- getOperatorContext(rule: Rule): OperatorContext;
121
- getInputContext(rule: Rule): InputContext;
122
- private calculateFieldChangeValue;
123
- private checkEmptyRuleInRuleset;
124
- private validateRulesInRuleset;
125
- private handleDataChange;
126
- private handleTouched;
127
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryBuilderComponent, never>;
128
- static ɵcmp: i0.ɵɵComponentDeclaration<QueryBuilderComponent, "query-builder", never, { "disabled": { "alias": "disabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; "allowRuleset": { "alias": "allowRuleset"; "required": false; }; "allowCollapse": { "alias": "allowCollapse"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "classNames": { "alias": "classNames"; "required": false; }; "operatorMap": { "alias": "operatorMap"; "required": false; }; "parentValue": { "alias": "parentValue"; "required": false; }; "config": { "alias": "config"; "required": false; }; "parentArrowIconTemplate": { "alias": "parentArrowIconTemplate"; "required": false; }; "parentInputTemplates": { "alias": "parentInputTemplates"; "required": false; }; "parentOperatorTemplate": { "alias": "parentOperatorTemplate"; "required": false; }; "parentFieldTemplate": { "alias": "parentFieldTemplate"; "required": false; }; "parentEntityTemplate": { "alias": "parentEntityTemplate"; "required": false; }; "parentSwitchGroupTemplate": { "alias": "parentSwitchGroupTemplate"; "required": false; }; "parentButtonGroupTemplate": { "alias": "parentButtonGroupTemplate"; "required": false; }; "parentRemoveButtonTemplate": { "alias": "parentRemoveButtonTemplate"; "required": false; }; "parentEmptyWarningTemplate": { "alias": "parentEmptyWarningTemplate"; "required": false; }; "parentChangeCallback": { "alias": "parentChangeCallback"; "required": false; }; "parentTouchedCallback": { "alias": "parentTouchedCallback"; "required": false; }; "persistValueOnFieldChange": { "alias": "persistValueOnFieldChange"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, ["buttonGroupTemplate", "switchGroupTemplate", "fieldTemplate", "entityTemplate", "operatorTemplate", "removeButtonTemplate", "emptyWarningTemplate", "arrowIconTemplate", "inputTemplates"], never, false, never>;
129
- }
@@ -1,143 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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/public-api.d.ts DELETED
@@ -1,12 +0,0 @@
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";