@super-green/query-builder 0.7.2 → 0.8.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 (32) hide show
  1. package/dist/query-builder/fesm2022/query-builder.mjs +72 -45
  2. package/dist/query-builder/fesm2022/query-builder.mjs.map +1 -1
  3. package/dist/query-builder/types/query-builder.d.ts +342 -0
  4. package/package.json +56 -56
  5. package/dist/query-builder/esm2022/lib/query-builder/query-arrow-icon.directive.mjs +0 -15
  6. package/dist/query-builder/esm2022/lib/query-builder/query-builder.component.mjs +0 -769
  7. package/dist/query-builder/esm2022/lib/query-builder/query-builder.interfaces.mjs +0 -2
  8. package/dist/query-builder/esm2022/lib/query-builder/query-button-group.directive.mjs +0 -15
  9. package/dist/query-builder/esm2022/lib/query-builder/query-empty-warning.directive.mjs +0 -15
  10. package/dist/query-builder/esm2022/lib/query-builder/query-entity.directive.mjs +0 -15
  11. package/dist/query-builder/esm2022/lib/query-builder/query-field.directive.mjs +0 -15
  12. package/dist/query-builder/esm2022/lib/query-builder/query-input.directive.mjs +0 -28
  13. package/dist/query-builder/esm2022/lib/query-builder/query-operator.directive.mjs +0 -15
  14. package/dist/query-builder/esm2022/lib/query-builder/query-remove-button.directive.mjs +0 -15
  15. package/dist/query-builder/esm2022/lib/query-builder/query-switch-group.directive.mjs +0 -15
  16. package/dist/query-builder/esm2022/lib/query-builder.module.mjs +0 -73
  17. package/dist/query-builder/esm2022/public-api.mjs +0 -16
  18. package/dist/query-builder/esm2022/query-builder.mjs +0 -5
  19. package/dist/query-builder/index.d.ts +0 -5
  20. package/dist/query-builder/lib/query-builder/query-arrow-icon.directive.d.ts +0 -8
  21. package/dist/query-builder/lib/query-builder/query-builder.component.d.ts +0 -129
  22. package/dist/query-builder/lib/query-builder/query-builder.interfaces.d.ts +0 -143
  23. package/dist/query-builder/lib/query-builder/query-button-group.directive.d.ts +0 -8
  24. package/dist/query-builder/lib/query-builder/query-empty-warning.directive.d.ts +0 -8
  25. package/dist/query-builder/lib/query-builder/query-entity.directive.d.ts +0 -8
  26. package/dist/query-builder/lib/query-builder/query-field.directive.d.ts +0 -8
  27. package/dist/query-builder/lib/query-builder/query-input.directive.d.ts +0 -12
  28. package/dist/query-builder/lib/query-builder/query-operator.directive.d.ts +0 -8
  29. package/dist/query-builder/lib/query-builder/query-remove-button.directive.d.ts +0 -8
  30. package/dist/query-builder/lib/query-builder/query-switch-group.directive.d.ts +0 -8
  31. package/dist/query-builder/lib/query-builder.module.d.ts +0 -18
  32. package/dist/query-builder/public-api.d.ts +0 -12
@@ -0,0 +1,342 @@
1
+ import * as i12 from '@angular/forms';
2
+ import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
3
+ import * as i0 from '@angular/core';
4
+ import { TemplateRef, OnInit, OnChanges, QueryList, ElementRef, ChangeDetectorRef, SimpleChanges } from '@angular/core';
5
+ import * as i11 from '@angular/common';
6
+
7
+ interface RuleSet {
8
+ condition: string;
9
+ rules: Array<RuleSet | Rule>;
10
+ collapsed?: boolean;
11
+ isChild?: boolean;
12
+ }
13
+ interface Rule {
14
+ field: string;
15
+ value?: any;
16
+ operator?: string;
17
+ entity?: string;
18
+ }
19
+ interface Option {
20
+ name: string;
21
+ value: any;
22
+ }
23
+ interface FieldMap {
24
+ [key: string]: Field;
25
+ }
26
+ interface Field {
27
+ name: string;
28
+ value?: string;
29
+ type: string;
30
+ nullable?: boolean;
31
+ options?: Option[];
32
+ operators?: string[];
33
+ defaultValue?: any;
34
+ defaultOperator?: any;
35
+ entity?: string;
36
+ validator?: (rule: Rule, parent: RuleSet) => any | null;
37
+ }
38
+ interface LocalRuleMeta {
39
+ ruleset: boolean;
40
+ invalid: boolean;
41
+ }
42
+ interface EntityMap {
43
+ [key: string]: Entity;
44
+ }
45
+ interface Entity {
46
+ name: string;
47
+ value?: string;
48
+ defaultField?: any;
49
+ }
50
+ interface QueryBuilderClassNames {
51
+ arrowIconButton?: string;
52
+ arrowIcon?: string;
53
+ removeIcon?: string;
54
+ addIcon?: string;
55
+ button?: string;
56
+ buttonGroup?: string;
57
+ removeButton?: string;
58
+ removeButtonSize?: string;
59
+ switchRow?: string;
60
+ switchGroup?: string;
61
+ switchLabel?: string;
62
+ switchRadio?: string;
63
+ switchControl?: string;
64
+ rightAlign?: string;
65
+ transition?: string;
66
+ collapsed?: string;
67
+ treeContainer?: string;
68
+ tree?: string;
69
+ row?: string;
70
+ connector?: string;
71
+ rule?: string;
72
+ ruleSet?: string;
73
+ invalidRuleSet?: string;
74
+ emptyWarning?: string;
75
+ fieldControl?: string;
76
+ fieldControlSize?: string;
77
+ entityControl?: string;
78
+ entityControlSize?: string;
79
+ operatorControl?: string;
80
+ operatorControlSize?: string;
81
+ inputControl?: string;
82
+ inputControlSize?: string;
83
+ }
84
+ interface QueryBuilderConfig {
85
+ fields: FieldMap;
86
+ entities?: EntityMap;
87
+ allowEmptyRulesets?: boolean;
88
+ getOperators?: (fieldName: string, field: Field) => string[];
89
+ getInputType?: (field: string, operator: string) => string;
90
+ getOptions?: (field: string) => Option[];
91
+ addRuleSet?: (parent: RuleSet) => void;
92
+ addRule?: (parent: RuleSet) => void;
93
+ removeRuleSet?: (ruleset: RuleSet, parent: RuleSet) => void;
94
+ removeRule?: (rule: Rule, parent: RuleSet) => void;
95
+ coerceValueForOperator?: (operator: string, value: any, rule: Rule) => any;
96
+ calculateFieldChangeValue?: (currentField: Field, nextField: Field, currentValue: any) => any;
97
+ }
98
+ interface SwitchGroupContext {
99
+ onChange: (conditionValue: string) => void;
100
+ getDisabledState: () => boolean;
101
+ $implicit: RuleSet;
102
+ }
103
+ interface EmptyWarningContext {
104
+ getDisabledState: () => boolean;
105
+ message: string;
106
+ $implicit: RuleSet;
107
+ }
108
+ interface ArrowIconContext {
109
+ getDisabledState: () => boolean;
110
+ $implicit: RuleSet;
111
+ }
112
+ interface EntityContext {
113
+ onChange: (entityValue: string, rule: Rule) => void;
114
+ getDisabledState: () => boolean;
115
+ entities: Entity[];
116
+ $implicit: Rule;
117
+ }
118
+ interface FieldContext {
119
+ onChange: (fieldValue: string, rule: Rule) => void;
120
+ getFields: (entityName: string) => void;
121
+ getDisabledState: () => boolean;
122
+ fields: Field[];
123
+ $implicit: Rule;
124
+ }
125
+ interface OperatorContext {
126
+ onChange: () => void;
127
+ getDisabledState: () => boolean;
128
+ operators: string[];
129
+ $implicit: Rule;
130
+ }
131
+ interface InputContext {
132
+ onChange: () => void;
133
+ getDisabledState: () => boolean;
134
+ options: Option[];
135
+ field: Field;
136
+ $implicit: Rule;
137
+ }
138
+ interface ButtonGroupContext {
139
+ addRule: () => void;
140
+ addRuleSet: () => void;
141
+ removeRuleSet: () => void;
142
+ getDisabledState: () => boolean;
143
+ $implicit: RuleSet;
144
+ }
145
+ interface RemoveButtonContext {
146
+ removeRule: (rule: Rule) => void;
147
+ getDisabledState: () => boolean;
148
+ $implicit: Rule;
149
+ }
150
+
151
+ declare class QueryOperatorDirective {
152
+ template: TemplateRef<any>;
153
+ constructor(template: TemplateRef<any>);
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryOperatorDirective, never>;
155
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryOperatorDirective, "[queryOperator]", never, {}, {}, never, never, false, never>;
156
+ }
157
+
158
+ declare class QueryFieldDirective {
159
+ template: TemplateRef<any>;
160
+ constructor(template: TemplateRef<any>);
161
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryFieldDirective, never>;
162
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryFieldDirective, "[queryField]", never, {}, {}, never, never, false, never>;
163
+ }
164
+
165
+ declare class QueryEntityDirective {
166
+ template: TemplateRef<any>;
167
+ constructor(template: TemplateRef<any>);
168
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryEntityDirective, never>;
169
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryEntityDirective, "[queryEntity]", never, {}, {}, never, never, false, never>;
170
+ }
171
+
172
+ declare class QuerySwitchGroupDirective {
173
+ template: TemplateRef<any>;
174
+ constructor(template: TemplateRef<any>);
175
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuerySwitchGroupDirective, never>;
176
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QuerySwitchGroupDirective, "[querySwitchGroup]", never, {}, {}, never, never, false, never>;
177
+ }
178
+
179
+ declare class QueryButtonGroupDirective {
180
+ template: TemplateRef<any>;
181
+ constructor(template: TemplateRef<any>);
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryButtonGroupDirective, never>;
183
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryButtonGroupDirective, "[queryButtonGroup]", never, {}, {}, never, never, false, never>;
184
+ }
185
+
186
+ declare class QueryInputDirective {
187
+ template: TemplateRef<any>;
188
+ /** Unique name for query input type. */
189
+ get queryInputType(): string;
190
+ set queryInputType(value: string);
191
+ private _type;
192
+ constructor(template: TemplateRef<any>);
193
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryInputDirective, never>;
194
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryInputDirective, "[queryInput]", never, { "queryInputType": { "alias": "queryInputType"; "required": false; }; }, {}, never, never, false, never>;
195
+ }
196
+
197
+ declare class QueryRemoveButtonDirective {
198
+ template: TemplateRef<any>;
199
+ constructor(template: TemplateRef<any>);
200
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryRemoveButtonDirective, never>;
201
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryRemoveButtonDirective, "[queryRemoveButton]", never, {}, {}, never, never, false, never>;
202
+ }
203
+
204
+ declare class QueryEmptyWarningDirective {
205
+ template: TemplateRef<any>;
206
+ constructor(template: TemplateRef<any>);
207
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryEmptyWarningDirective, never>;
208
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryEmptyWarningDirective, "[queryEmptyWarning]", never, {}, {}, never, never, false, never>;
209
+ }
210
+
211
+ declare class QueryArrowIconDirective {
212
+ template: TemplateRef<any>;
213
+ constructor(template: TemplateRef<any>);
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryArrowIconDirective, never>;
215
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QueryArrowIconDirective, "[queryArrowIcon]", never, {}, {}, never, never, false, never>;
216
+ }
217
+
218
+ declare const CONTROL_VALUE_ACCESSOR: any;
219
+ declare const VALIDATOR: any;
220
+ declare class QueryBuilderComponent implements OnInit, OnChanges, ControlValueAccessor, Validator {
221
+ private changeDetectorRef;
222
+ fields: Field[];
223
+ filterFields: Field[];
224
+ entities: Entity[];
225
+ defaultClassNames: QueryBuilderClassNames;
226
+ defaultOperatorMap: {
227
+ [key: string]: string[];
228
+ };
229
+ disabled: boolean;
230
+ data: RuleSet;
231
+ onChangeCallback: () => void;
232
+ onTouchedCallback: () => any;
233
+ allowRuleset: boolean;
234
+ allowCollapse: boolean;
235
+ emptyMessage: string;
236
+ classNames: QueryBuilderClassNames;
237
+ operatorMap: {
238
+ [key: string]: string[];
239
+ };
240
+ parentValue: RuleSet;
241
+ config: QueryBuilderConfig;
242
+ parentArrowIconTemplate: QueryArrowIconDirective;
243
+ parentInputTemplates: QueryList<QueryInputDirective>;
244
+ parentOperatorTemplate: QueryOperatorDirective;
245
+ parentFieldTemplate: QueryFieldDirective;
246
+ parentEntityTemplate: QueryEntityDirective;
247
+ parentSwitchGroupTemplate: QuerySwitchGroupDirective;
248
+ parentButtonGroupTemplate: QueryButtonGroupDirective;
249
+ parentRemoveButtonTemplate: QueryRemoveButtonDirective;
250
+ parentEmptyWarningTemplate: QueryEmptyWarningDirective;
251
+ parentChangeCallback: () => void;
252
+ parentTouchedCallback: () => void;
253
+ persistValueOnFieldChange: boolean;
254
+ treeContainer: ElementRef;
255
+ buttonGroupTemplate: QueryButtonGroupDirective;
256
+ switchGroupTemplate: QuerySwitchGroupDirective;
257
+ fieldTemplate: QueryFieldDirective;
258
+ entityTemplate: QueryEntityDirective;
259
+ operatorTemplate: QueryOperatorDirective;
260
+ removeButtonTemplate: QueryRemoveButtonDirective;
261
+ emptyWarningTemplate: QueryEmptyWarningDirective;
262
+ inputTemplates: QueryList<QueryInputDirective>;
263
+ arrowIconTemplate: QueryArrowIconDirective;
264
+ private defaultTemplateTypes;
265
+ private defaultPersistValueTypes;
266
+ private defaultEmptyList;
267
+ private operatorsCache;
268
+ private inputContextCache;
269
+ private operatorContextCache;
270
+ private fieldContextCache;
271
+ private entityContextCache;
272
+ private removeButtonContextCache;
273
+ private buttonGroupContext;
274
+ constructor(changeDetectorRef: ChangeDetectorRef);
275
+ ngOnInit(): void;
276
+ ngOnChanges(changes: SimpleChanges): void;
277
+ validate(control: AbstractControl): ValidationErrors | null;
278
+ get value(): RuleSet;
279
+ set value(value: RuleSet);
280
+ writeValue(obj: any): void;
281
+ registerOnChange(fn: any): void;
282
+ registerOnTouched(fn: any): void;
283
+ setDisabledState(isDisabled: boolean): void;
284
+ getDisabledState: () => boolean;
285
+ findTemplateForRule(rule: Rule): TemplateRef<any>;
286
+ findQueryInput(type: string): QueryInputDirective;
287
+ getOperators(field: string): string[];
288
+ getFields(entity: string): Field[];
289
+ getInputType(field: string, operator: string): string;
290
+ getOptions(field: string): Option[];
291
+ getClassNames(...args: any[]): string;
292
+ getDefaultField(entity: Entity): Field;
293
+ getDefaultOperator(field: Field): string;
294
+ addRule(parent?: RuleSet): void;
295
+ removeRule(rule: Rule, parent?: RuleSet): void;
296
+ addRuleSet(parent?: RuleSet): void;
297
+ removeRuleSet(ruleset?: RuleSet, parent?: RuleSet): void;
298
+ transitionEnd(e: Event): void;
299
+ toggleCollapse(): void;
300
+ computedTreeContainerHeight(): void;
301
+ changeCondition(value: string): void;
302
+ changeOperator(rule: Rule): void;
303
+ coerceValueForOperator(operator: string, value: any, rule: Rule): any;
304
+ changeInput(): void;
305
+ changeField(fieldValue: string, rule: Rule): void;
306
+ changeEntity(entityValue: string, rule: Rule, index: number, data: RuleSet): void;
307
+ getDefaultValue(defaultValue: any): any;
308
+ getOperatorTemplate(): TemplateRef<any>;
309
+ getFieldTemplate(): TemplateRef<any>;
310
+ getEntityTemplate(): TemplateRef<any>;
311
+ getArrowIconTemplate(): TemplateRef<any>;
312
+ getButtonGroupTemplate(): TemplateRef<any>;
313
+ getSwitchGroupTemplate(): TemplateRef<any>;
314
+ getRemoveButtonTemplate(): TemplateRef<any>;
315
+ getEmptyWarningTemplate(): TemplateRef<any>;
316
+ getQueryItemClassName(local: LocalRuleMeta): string;
317
+ getButtonGroupContext(): ButtonGroupContext;
318
+ getRemoveButtonContext(rule: Rule): RemoveButtonContext;
319
+ getFieldContext(rule: Rule): FieldContext;
320
+ getEntityContext(rule: Rule): EntityContext;
321
+ getSwitchGroupContext(): SwitchGroupContext;
322
+ getArrowIconContext(): ArrowIconContext;
323
+ getEmptyWarningContext(): EmptyWarningContext;
324
+ getOperatorContext(rule: Rule): OperatorContext;
325
+ getInputContext(rule: Rule): InputContext;
326
+ private calculateFieldChangeValue;
327
+ private checkEmptyRuleInRuleset;
328
+ private validateRulesInRuleset;
329
+ private handleDataChange;
330
+ private handleTouched;
331
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryBuilderComponent, never>;
332
+ 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>;
333
+ }
334
+
335
+ declare class QueryBuilderModule {
336
+ static ɵfac: i0.ɵɵFactoryDeclaration<QueryBuilderModule, never>;
337
+ static ɵmod: i0.ɵɵNgModuleDeclaration<QueryBuilderModule, [typeof QueryBuilderComponent, typeof QueryInputDirective, typeof QueryOperatorDirective, typeof QueryFieldDirective, typeof QueryEntityDirective, typeof QueryButtonGroupDirective, typeof QuerySwitchGroupDirective, typeof QueryRemoveButtonDirective, typeof QueryEmptyWarningDirective, typeof QueryArrowIconDirective], [typeof i11.CommonModule, typeof i12.FormsModule], [typeof QueryBuilderComponent, typeof QueryInputDirective, typeof QueryOperatorDirective, typeof QueryFieldDirective, typeof QueryEntityDirective, typeof QueryButtonGroupDirective, typeof QuerySwitchGroupDirective, typeof QueryRemoveButtonDirective, typeof QueryEmptyWarningDirective, typeof QueryArrowIconDirective]>;
338
+ static ɵinj: i0.ɵɵInjectorDeclaration<QueryBuilderModule>;
339
+ }
340
+
341
+ export { CONTROL_VALUE_ACCESSOR, QueryArrowIconDirective, QueryBuilderComponent, QueryBuilderModule, QueryButtonGroupDirective, QueryEmptyWarningDirective, QueryEntityDirective, QueryFieldDirective, QueryInputDirective, QueryOperatorDirective, QueryRemoveButtonDirective, QuerySwitchGroupDirective, VALIDATOR };
342
+ export type { ArrowIconContext, ButtonGroupContext, EmptyWarningContext, Entity, EntityContext, EntityMap, Field, FieldContext, FieldMap, InputContext, LocalRuleMeta, OperatorContext, Option, QueryBuilderClassNames, QueryBuilderConfig, RemoveButtonContext, Rule, RuleSet, SwitchGroupContext };
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "@super-green/query-builder",
3
- "version": "0.7.2",
4
- "scripts": {
5
- "build": "ng build query-builder --configuration production",
6
- "publish-to-npm": "npm publish --access public"
7
- },
8
- "dependencies": {
9
- "@angular/animations": "^18.1.0",
10
- "@angular/common": "^18.1.0",
11
- "@angular/compiler": "^18.1.0",
12
- "@angular/core": "^18.1.0",
13
- "@angular/forms": "^18.1.0",
14
- "@angular/platform-browser": "^18.1.0",
15
- "@angular/platform-browser-dynamic": "^18.1.0",
16
- "@angular/router": "^18.1.0",
17
- "rxjs": "~7.8.0",
18
- "tslib": "^2.3.0",
19
- "zone.js": "~0.14.3"
20
- },
21
- "devDependencies": {
22
- "@angular-devkit/build-angular": "^18.1.2",
23
- "@angular/cli": "^18.1.2",
24
- "@angular/compiler-cli": "^18.1.0",
25
- "@types/jasmine": "~5.1.0",
26
- "jasmine-core": "~5.1.0",
27
- "karma": "~6.4.0",
28
- "karma-chrome-launcher": "~3.2.0",
29
- "karma-coverage": "~2.2.0",
30
- "karma-jasmine": "~5.1.0",
31
- "karma-jasmine-html-reporter": "~2.1.0",
32
- "ng-packagr": "^18.1.0",
33
- "typescript": "~5.5.2"
34
- },
35
- "description": "Package forked from angular2-query-builder with updated Angular 18 support",
36
- "module": "dist/query-builder/esm2022/query-builder.mjs",
37
- "fesm2022": "dist/query-builder/fesm2022/query-builder.mjs",
38
- "typings": "dist/query-builder/index.d.ts",
39
- "files": [
40
- "dist/query-builder/**/*"
41
- ],
42
- "repository": {
43
- "type": "git",
44
- "url": "git+https://github.com/PiotrekBroniec/query-builder.git"
45
- },
46
- "keywords": [
47
- "query-builder",
48
- "angular"
49
- ],
50
- "author": "Originally created by zebzhao forked by PiotrekBroniec",
51
- "license": "MIT",
52
- "bugs": {
53
- "url": "https://github.com/PiotrekBroniec/query-builder/issues"
54
- },
55
- "homepage": "https://github.com/PiotrekBroniec/query-builder#readme"
56
- }
1
+ {
2
+ "name": "@super-green/query-builder",
3
+ "version": "0.8.0",
4
+ "scripts": {
5
+ "build": "ng build query-builder --configuration production",
6
+ "publish-to-npm": "npm publish --access public"
7
+ },
8
+ "dependencies": {
9
+ "@angular/animations": "^21.1.3",
10
+ "@angular/common": "^21.1.3",
11
+ "@angular/compiler": "^21.1.3",
12
+ "@angular/core": "^21.1.3",
13
+ "@angular/forms": "^21.1.3",
14
+ "@angular/platform-browser": "^21.1.3",
15
+ "@angular/platform-browser-dynamic": "^21.1.3",
16
+ "@angular/router": "^21.1.3",
17
+ "rxjs": "~7.8.2",
18
+ "tslib": "^2.8.1",
19
+ "zone.js": "~0.16.0"
20
+ },
21
+ "devDependencies": {
22
+ "@angular-devkit/build-angular": "^21.1.3",
23
+ "@angular/cli": "^21.1.3",
24
+ "@angular/compiler-cli": "^21.1.3",
25
+ "@types/jasmine": "~6.0.0",
26
+ "jasmine-core": "~6.0.1",
27
+ "karma": "~6.4.4",
28
+ "karma-chrome-launcher": "~3.2.0",
29
+ "karma-coverage": "~2.2.1",
30
+ "karma-jasmine": "~5.1.0",
31
+ "karma-jasmine-html-reporter": "~2.2.0",
32
+ "ng-packagr": "^21.1.0",
33
+ "typescript": "~5.9.3"
34
+ },
35
+ "description": "Package forked from angular2-query-builder with updated Angular 18 support",
36
+ "module": "dist/query-builder/esm2022/query-builder.mjs",
37
+ "fesm2022": "dist/query-builder/fesm2022/query-builder.mjs",
38
+ "typings": "dist/query-builder/index.d.ts",
39
+ "files": [
40
+ "dist/query-builder/**/*"
41
+ ],
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/PiotrekBroniec/query-builder.git"
45
+ },
46
+ "keywords": [
47
+ "query-builder",
48
+ "angular"
49
+ ],
50
+ "author": "Originally created by zebzhao forked by PiotrekBroniec",
51
+ "license": "MIT",
52
+ "bugs": {
53
+ "url": "https://github.com/PiotrekBroniec/query-builder/issues"
54
+ },
55
+ "homepage": "https://github.com/PiotrekBroniec/query-builder#readme"
56
+ }
@@ -1,15 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class QueryArrowIconDirective {
4
- template;
5
- constructor(template) {
6
- this.template = template;
7
- }
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: QueryArrowIconDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
9
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.2", type: QueryArrowIconDirective, selector: "[queryArrowIcon]", ngImport: i0 });
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: QueryArrowIconDirective, decorators: [{
12
- type: Directive,
13
- args: [{ selector: '[queryArrowIcon]' }]
14
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktYXJyb3ctaWNvbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9xdWVyeS1idWlsZGVyL3NyYy9saWIvcXVlcnktYnVpbGRlci9xdWVyeS1hcnJvdy1pY29uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFlLE1BQU0sZUFBZSxDQUFDOztBQUd2RCxNQUFNLE9BQU8sdUJBQXVCO0lBQ2Y7SUFBbkIsWUFBbUIsUUFBMEI7UUFBMUIsYUFBUSxHQUFSLFFBQVEsQ0FBa0I7SUFBRyxDQUFDO3VHQUR0Qyx1QkFBdUI7MkZBQXZCLHVCQUF1Qjs7MkZBQXZCLHVCQUF1QjtrQkFEbkMsU0FBUzttQkFBQyxFQUFDLFFBQVEsRUFBRSxrQkFBa0IsRUFBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSwgVGVtcGxhdGVSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBEaXJlY3RpdmUoe3NlbGVjdG9yOiAnW3F1ZXJ5QXJyb3dJY29uXSd9KVxyXG5leHBvcnQgY2xhc3MgUXVlcnlBcnJvd0ljb25EaXJlY3RpdmUge1xyXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyB0ZW1wbGF0ZTogVGVtcGxhdGVSZWY8YW55Pikge31cclxufVxyXG4iXX0=