@syncfusion/ej2-angular-querybuilder 32.1.23-ngcc → 32.1.23
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.
- package/CHANGELOG.md +791 -0
- package/README.md +9 -2
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/src/index.mjs +6 -0
- package/esm2020/src/query-builder/columns.directive.mjs +72 -0
- package/esm2020/src/query-builder/querybuilder-all.module.mjs +29 -0
- package/esm2020/src/query-builder/querybuilder.component.mjs +78 -0
- package/esm2020/src/query-builder/querybuilder.module.mjs +34 -0
- package/esm2020/syncfusion-ej2-angular-querybuilder.mjs +5 -0
- package/fesm2015/syncfusion-ej2-angular-querybuilder.mjs +204 -0
- package/fesm2015/syncfusion-ej2-angular-querybuilder.mjs.map +1 -0
- package/fesm2020/syncfusion-ej2-angular-querybuilder.mjs +204 -0
- package/fesm2020/syncfusion-ej2-angular-querybuilder.mjs.map +1 -0
- package/package.json +28 -46
- package/src/query-builder/columns.directive.d.ts +5 -0
- package/src/query-builder/querybuilder-all.module.d.ts +6 -0
- package/src/query-builder/querybuilder.component.d.ts +4 -0
- package/src/query-builder/querybuilder.module.d.ts +7 -0
- package/styles/bds-lite.scss +1 -1
- package/styles/bds.scss +1 -1
- package/styles/bootstrap-dark-lite.scss +1 -1
- package/styles/bootstrap-dark.scss +1 -1
- package/styles/bootstrap-lite.scss +1 -1
- package/styles/bootstrap.scss +1 -1
- package/styles/bootstrap4-lite.scss +1 -1
- package/styles/bootstrap4.scss +1 -1
- package/styles/bootstrap5-dark-lite.scss +1 -1
- package/styles/bootstrap5-dark.scss +1 -1
- package/styles/bootstrap5-lite.scss +1 -1
- package/styles/bootstrap5.3-lite.scss +1 -1
- package/styles/bootstrap5.3.scss +1 -1
- package/styles/bootstrap5.scss +1 -1
- package/styles/fabric-dark-lite.scss +1 -1
- package/styles/fabric-dark.scss +1 -1
- package/styles/fabric-lite.scss +1 -1
- package/styles/fabric.scss +1 -1
- package/styles/fluent-dark-lite.scss +1 -1
- package/styles/fluent-dark.scss +1 -1
- package/styles/fluent-lite.scss +1 -1
- package/styles/fluent.scss +1 -1
- package/styles/fluent2-lite.scss +1 -1
- package/styles/fluent2.scss +1 -1
- package/styles/highcontrast-light-lite.scss +1 -1
- package/styles/highcontrast-light.scss +1 -1
- package/styles/highcontrast-lite.scss +1 -1
- package/styles/highcontrast.scss +1 -1
- package/styles/material-dark-lite.scss +1 -1
- package/styles/material-dark.scss +1 -1
- package/styles/material-lite.scss +1 -1
- package/styles/material.scss +1 -1
- package/styles/material3-dark-lite.scss +1 -1
- package/styles/material3-dark.scss +1 -2
- package/styles/material3-lite.scss +1 -1
- package/styles/material3.scss +1 -2
- package/styles/query-builder/bds.scss +1 -1
- package/styles/query-builder/bootstrap-dark.scss +1 -1
- package/styles/query-builder/bootstrap.scss +1 -1
- package/styles/query-builder/bootstrap4.scss +1 -1
- package/styles/query-builder/bootstrap5-dark.scss +1 -1
- package/styles/query-builder/bootstrap5.3.scss +1 -1
- package/styles/query-builder/bootstrap5.scss +1 -1
- package/styles/query-builder/fabric-dark.scss +1 -1
- package/styles/query-builder/fabric.scss +1 -1
- package/styles/query-builder/fluent-dark.scss +1 -1
- package/styles/query-builder/fluent.scss +1 -1
- package/styles/query-builder/fluent2.scss +1 -1
- package/styles/query-builder/highcontrast-light.scss +1 -1
- package/styles/query-builder/highcontrast.scss +1 -1
- package/styles/query-builder/material-dark.scss +1 -1
- package/styles/query-builder/material.scss +1 -1
- package/styles/query-builder/material3-dark.scss +1 -2
- package/styles/query-builder/material3.scss +1 -2
- package/styles/query-builder/tailwind-dark.scss +1 -1
- package/styles/query-builder/tailwind.scss +1 -1
- package/styles/query-builder/tailwind3.scss +1 -1
- package/styles/tailwind-dark-lite.scss +1 -1
- package/styles/tailwind-dark.scss +1 -1
- package/styles/tailwind-lite.scss +1 -1
- package/styles/tailwind.scss +1 -1
- package/styles/tailwind3-lite.scss +1 -1
- package/styles/tailwind3.scss +1 -1
- package/syncfusion-ej2-angular-querybuilder.d.ts +5 -0
- package/@syncfusion/ej2-angular-querybuilder.es5.js +0 -277
- package/@syncfusion/ej2-angular-querybuilder.es5.js.map +0 -1
- package/@syncfusion/ej2-angular-querybuilder.js +0 -249
- package/@syncfusion/ej2-angular-querybuilder.js.map +0 -1
- package/dist/ej2-angular-querybuilder.umd.js +0 -301
- package/dist/ej2-angular-querybuilder.umd.js.map +0 -1
- package/dist/ej2-angular-querybuilder.umd.min.js +0 -11
- package/dist/ej2-angular-querybuilder.umd.min.js.map +0 -1
- package/ej2-angular-querybuilder.d.ts +0 -5
- package/ej2-angular-querybuilder.metadata.json +0 -1
- package/license +0 -10
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, ElementRef, Injector, NgModule, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { ArrayBase, ComplexBase, ComponentBase, ComponentMixins, Template, setValue } from '@syncfusion/ej2-angular-base';
|
|
3
|
-
import { QueryBuilder, QueryLibrary } from '@syncfusion/ej2-querybuilder';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
|
|
6
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
-
};
|
|
12
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
13
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14
|
-
};
|
|
15
|
-
let input = ['category', 'columns', 'field', 'format', 'label', 'operators', 'ruleTemplate', 'step', 'template', 'type', 'validation', 'value', 'values'];
|
|
16
|
-
let outputs = [];
|
|
17
|
-
/**
|
|
18
|
-
* `e-column` directive represent a column of the Angular QueryBuilder.
|
|
19
|
-
* It must be contained in a QueryBuilder component(`ejs-querybuilder`).
|
|
20
|
-
* ```html
|
|
21
|
-
* <ejs-querybuilder [dataSource]='data'>
|
|
22
|
-
* <e-columns>
|
|
23
|
-
* <e-column field='ID' label='ID' type='number'></e-column>
|
|
24
|
-
* <e-column field='Date' label='Date' type='date' format='dd/MM/yyyy'></e-column>
|
|
25
|
-
* </e-columns>
|
|
26
|
-
* </ejs-querybuilder>
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
class ColumnDirective extends ComplexBase {
|
|
30
|
-
/**
|
|
31
|
-
* @param {?} viewContainerRef
|
|
32
|
-
*/
|
|
33
|
-
constructor(viewContainerRef) {
|
|
34
|
-
super();
|
|
35
|
-
this.viewContainerRef = viewContainerRef;
|
|
36
|
-
setValue('currentInstance', this, this.viewContainerRef);
|
|
37
|
-
this.registerEvents(outputs);
|
|
38
|
-
this.directivePropList = input;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
ColumnDirective.decorators = [
|
|
42
|
-
{ type: Directive, args: [{
|
|
43
|
-
selector: 'ejs-querybuilder>e-columns>e-column',
|
|
44
|
-
inputs: input,
|
|
45
|
-
outputs: outputs,
|
|
46
|
-
queries: {}
|
|
47
|
-
},] },
|
|
48
|
-
];
|
|
49
|
-
/**
|
|
50
|
-
* @nocollapse
|
|
51
|
-
*/
|
|
52
|
-
ColumnDirective.ctorParameters = () => [
|
|
53
|
-
{ type: ViewContainerRef, },
|
|
54
|
-
];
|
|
55
|
-
ColumnDirective.propDecorators = {
|
|
56
|
-
'ruleTemplate': [{ type: ContentChild, args: ['ruleTemplate',] },],
|
|
57
|
-
'template': [{ type: ContentChild, args: ['template',] },],
|
|
58
|
-
};
|
|
59
|
-
__decorate([
|
|
60
|
-
Template(),
|
|
61
|
-
__metadata("design:type", Object)
|
|
62
|
-
], ColumnDirective.prototype, "ruleTemplate", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
Template(),
|
|
65
|
-
__metadata("design:type", Object)
|
|
66
|
-
], ColumnDirective.prototype, "template", void 0);
|
|
67
|
-
/**
|
|
68
|
-
* Column Array Directive
|
|
69
|
-
*/
|
|
70
|
-
class ColumnsDirective extends ArrayBase {
|
|
71
|
-
constructor() {
|
|
72
|
-
super('columns');
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
ColumnsDirective.decorators = [
|
|
76
|
-
{ type: Directive, args: [{
|
|
77
|
-
selector: 'ejs-querybuilder>e-columns',
|
|
78
|
-
queries: {
|
|
79
|
-
children: new ContentChildren(ColumnDirective)
|
|
80
|
-
},
|
|
81
|
-
},] },
|
|
82
|
-
];
|
|
83
|
-
/**
|
|
84
|
-
* @nocollapse
|
|
85
|
-
*/
|
|
86
|
-
ColumnsDirective.ctorParameters = () => [];
|
|
87
|
-
|
|
88
|
-
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
89
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
90
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
91
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
92
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
93
|
-
};
|
|
94
|
-
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
95
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
96
|
-
};
|
|
97
|
-
const inputs = ['addRuleToNewGroups', 'allowDragAndDrop', 'allowValidation', 'autoSelectField', 'autoSelectOperator', 'columns', 'cssClass', 'dataSource', 'displayMode', 'enableNotCondition', 'enablePersistence', 'enableRtl', 'enableSeparateConnector', 'fieldMode', 'fieldModel', 'headerTemplate', 'height', 'immediateModeDelay', 'locale', 'matchCase', 'maxGroupCount', 'operatorModel', 'readonly', 'rule', 'separator', 'showButtons', 'sortDirection', 'summaryView', 'valueModel', 'width'];
|
|
98
|
-
const outputs$1 = ['actionBegin', 'beforeChange', 'change', 'created', 'dataBound', 'ruleChange', 'drag', 'dragStart', 'drop'];
|
|
99
|
-
const twoWays = [''];
|
|
100
|
-
/**
|
|
101
|
-
* Represents the EJ2 Angular QueryBuilder Component.
|
|
102
|
-
* ```html
|
|
103
|
-
* <ejs-querybuilder></ejs-querybuilder>
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
let QueryBuilderComponent = class QueryBuilderComponent extends QueryBuilder {
|
|
107
|
-
/**
|
|
108
|
-
* @param {?} ngEle
|
|
109
|
-
* @param {?} srenderer
|
|
110
|
-
* @param {?} viewContainerRef
|
|
111
|
-
* @param {?} injector
|
|
112
|
-
*/
|
|
113
|
-
constructor(ngEle, srenderer, viewContainerRef, injector) {
|
|
114
|
-
super();
|
|
115
|
-
this.ngEle = ngEle;
|
|
116
|
-
this.srenderer = srenderer;
|
|
117
|
-
this.viewContainerRef = viewContainerRef;
|
|
118
|
-
this.injector = injector;
|
|
119
|
-
this.tags = ['columns'];
|
|
120
|
-
this.element = this.ngEle.nativeElement;
|
|
121
|
-
this.injectedModules = this.injectedModules || [];
|
|
122
|
-
try {
|
|
123
|
-
let mod = this.injector.get('QueryBuilderQueryLibrary');
|
|
124
|
-
if (this.injectedModules.indexOf(mod) === -1) {
|
|
125
|
-
this.injectedModules.push(mod);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
catch (_a) { }
|
|
129
|
-
this.registerEvents(outputs$1);
|
|
130
|
-
this.addTwoWay.call(this, twoWays);
|
|
131
|
-
setValue('currentInstance', this, this.viewContainerRef);
|
|
132
|
-
this.context = new ComponentBase();
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* @return {?}
|
|
136
|
-
*/
|
|
137
|
-
ngOnInit() {
|
|
138
|
-
this.context.ngOnInit(this);
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* @return {?}
|
|
142
|
-
*/
|
|
143
|
-
ngAfterViewInit() {
|
|
144
|
-
this.context.ngAfterViewInit(this);
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* @return {?}
|
|
148
|
-
*/
|
|
149
|
-
ngOnDestroy() {
|
|
150
|
-
this.context.ngOnDestroy(this);
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* @return {?}
|
|
154
|
-
*/
|
|
155
|
-
ngAfterContentChecked() {
|
|
156
|
-
this.tagObjects[0].instance = this.childColumns;
|
|
157
|
-
this.context.ngAfterContentChecked(this);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
QueryBuilderComponent.decorators = [
|
|
161
|
-
{ type: Component, args: [{
|
|
162
|
-
selector: 'ejs-querybuilder',
|
|
163
|
-
inputs: inputs,
|
|
164
|
-
outputs: outputs$1,
|
|
165
|
-
template: '',
|
|
166
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
167
|
-
queries: {
|
|
168
|
-
childColumns: new ContentChild(ColumnsDirective)
|
|
169
|
-
}
|
|
170
|
-
},] },
|
|
171
|
-
];
|
|
172
|
-
/**
|
|
173
|
-
* @nocollapse
|
|
174
|
-
*/
|
|
175
|
-
QueryBuilderComponent.ctorParameters = () => [
|
|
176
|
-
{ type: ElementRef, },
|
|
177
|
-
{ type: Renderer2, },
|
|
178
|
-
{ type: ViewContainerRef, },
|
|
179
|
-
{ type: Injector, },
|
|
180
|
-
];
|
|
181
|
-
QueryBuilderComponent.propDecorators = {
|
|
182
|
-
'headerTemplate': [{ type: ContentChild, args: ['headerTemplate',] },],
|
|
183
|
-
};
|
|
184
|
-
__decorate$1([
|
|
185
|
-
Template(),
|
|
186
|
-
__metadata$1("design:type", Object)
|
|
187
|
-
], QueryBuilderComponent.prototype, "headerTemplate", void 0);
|
|
188
|
-
QueryBuilderComponent = __decorate$1([
|
|
189
|
-
ComponentMixins([ComponentBase]),
|
|
190
|
-
__metadata$1("design:paramtypes", [ElementRef,
|
|
191
|
-
Renderer2,
|
|
192
|
-
ViewContainerRef,
|
|
193
|
-
Injector])
|
|
194
|
-
], QueryBuilderComponent);
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* NgModule definition for the QueryBuilder component.
|
|
198
|
-
*/
|
|
199
|
-
class QueryBuilderModule {
|
|
200
|
-
}
|
|
201
|
-
QueryBuilderModule.decorators = [
|
|
202
|
-
{ type: NgModule, args: [{
|
|
203
|
-
imports: [CommonModule],
|
|
204
|
-
declarations: [
|
|
205
|
-
QueryBuilderComponent,
|
|
206
|
-
ColumnDirective,
|
|
207
|
-
ColumnsDirective
|
|
208
|
-
],
|
|
209
|
-
exports: [
|
|
210
|
-
QueryBuilderComponent,
|
|
211
|
-
ColumnDirective,
|
|
212
|
-
ColumnsDirective
|
|
213
|
-
]
|
|
214
|
-
},] },
|
|
215
|
-
];
|
|
216
|
-
/**
|
|
217
|
-
* @nocollapse
|
|
218
|
-
*/
|
|
219
|
-
QueryBuilderModule.ctorParameters = () => [];
|
|
220
|
-
|
|
221
|
-
const QueryLibraryService = { provide: 'QueryBuilderQueryLibrary', useValue: QueryLibrary };
|
|
222
|
-
/**
|
|
223
|
-
* NgModule definition for the QueryBuilder component with providers.
|
|
224
|
-
*/
|
|
225
|
-
class QueryBuilderAllModule {
|
|
226
|
-
}
|
|
227
|
-
QueryBuilderAllModule.decorators = [
|
|
228
|
-
{ type: NgModule, args: [{
|
|
229
|
-
imports: [CommonModule, QueryBuilderModule],
|
|
230
|
-
exports: [
|
|
231
|
-
QueryBuilderModule
|
|
232
|
-
],
|
|
233
|
-
providers: [
|
|
234
|
-
QueryLibraryService
|
|
235
|
-
]
|
|
236
|
-
},] },
|
|
237
|
-
];
|
|
238
|
-
/**
|
|
239
|
-
* @nocollapse
|
|
240
|
-
*/
|
|
241
|
-
QueryBuilderAllModule.ctorParameters = () => [];
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Generated bundle index. Do not edit.
|
|
245
|
-
*/
|
|
246
|
-
|
|
247
|
-
export { ColumnDirective, ColumnsDirective, QueryBuilderComponent, QueryBuilderModule, QueryBuilderAllModule, QueryLibraryService, inputs as ɵa, outputs$1 as ɵb };
|
|
248
|
-
export { Columns, Rule, Value, ShowButtons, QueryBuilder, QueryLibrary } from '@syncfusion/ej2-querybuilder';
|
|
249
|
-
//# sourceMappingURL=ej2-angular-querybuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-angular-querybuilder.js","sources":["~/@syncfusion/ej2-angular-querybuilder/ej2-angular-querybuilder.ts","~/@syncfusion/ej2-angular-querybuilder/src/query-builder/querybuilder-all.module.ts","~/@syncfusion/ej2-angular-querybuilder/src/query-builder/querybuilder.module.ts","~/@syncfusion/ej2-angular-querybuilder/src/query-builder/querybuilder.component.ts","~/@syncfusion/ej2-angular-querybuilder/src/query-builder/columns.directive.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport {ColumnDirective,ColumnsDirective,QueryBuilderComponent,QueryBuilderModule,QueryBuilderAllModule,QueryLibraryService,Columns,Rule,Value,ShowButtons,FormatObject,FieldMode,DisplayMode,SortDirection,QueryBuilder,Level,TemplateColumn,Validation,ChangeEventArgs,RuleChangeEventArgs,ActionEventArgs,ParameterizedSql,ParameterizedNamedSql,DragEventArgs,DropEventArgs,ColumnsModel,RuleModel,ValueModel,ShowButtonsModel,QueryBuilderModel,QueryLibrary} from './public_api';\n\nexport {inputs as ɵa,outputs as ɵb} from './src/query-builder/querybuilder.component';","import { NgModule, ValueProvider } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ColumnDirective, ColumnsDirective } from './columns.directive';\nimport { QueryBuilderComponent } from './querybuilder.component';\nimport { QueryBuilderModule } from './querybuilder.module';\nimport {QueryLibrary} from '@syncfusion/ej2-querybuilder';\n\n\nexport const /** @type {?} */ QueryLibraryService: ValueProvider = { provide: 'QueryBuilderQueryLibrary', useValue: QueryLibrary};\n/**\n * NgModule definition for the QueryBuilder component with providers.\n */\nexport class QueryBuilderAllModule { static decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n imports: [CommonModule, QueryBuilderModule],\n exports: [\n QueryBuilderModule\n ],\n providers:[\n QueryLibraryService\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction QueryBuilderAllModule_tsickle_Closure_declarations() {\n/** @type {?} */\nQueryBuilderAllModule.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nQueryBuilderAllModule.ctorParameters;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ColumnDirective, ColumnsDirective } from './columns.directive';\nimport { QueryBuilderComponent } from './querybuilder.component';\n/**\n * NgModule definition for the QueryBuilder component.\n */\nexport class QueryBuilderModule { static decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n imports: [CommonModule],\n declarations: [\n QueryBuilderComponent,\n ColumnDirective,\n ColumnsDirective\n ],\n exports: [\n QueryBuilderComponent,\n ColumnDirective,\n ColumnsDirective\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction QueryBuilderModule_tsickle_Closure_declarations() {\n/** @type {?} */\nQueryBuilderModule.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nQueryBuilderModule.ctorParameters;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, QueryList, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';\nimport { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';\nimport { QueryBuilder } from '@syncfusion/ej2-querybuilder';\nimport { Template } from '@syncfusion/ej2-angular-base';\nimport { ColumnsDirective } from './columns.directive';\n\nexport const /** @type {?} */ inputs: string[] = ['addRuleToNewGroups','allowDragAndDrop','allowValidation','autoSelectField','autoSelectOperator','columns','cssClass','dataSource','displayMode','enableNotCondition','enablePersistence','enableRtl','enableSeparateConnector','fieldMode','fieldModel','headerTemplate','height','immediateModeDelay','locale','matchCase','maxGroupCount','operatorModel','readonly','rule','separator','showButtons','sortDirection','summaryView','valueModel','width'];\nexport const /** @type {?} */ outputs: string[] = ['actionBegin','beforeChange','change','created','dataBound','ruleChange','drag','dragStart','drop'];\nexport const /** @type {?} */ twoWays: string[] = [''];\n/**\n * Represents the EJ2 Angular QueryBuilder Component.\n * ```html\n * <ejs-querybuilder></ejs-querybuilder>\n * ```\n */\n@ComponentMixins([ComponentBase])\nexport class QueryBuilderComponent extends QueryBuilder implements IComponentBase {\npublic context : any;\npublic tagObjects: any;\n\tactionBegin: any;\n\tbeforeChange: any;\n\tchange: any;\n\tcreated: any;\n\tdataBound: any;\n\truleChange: any;\n\tdrag: any;\n\tdragStart: any;\npublic drop: any;\npublic childColumns: QueryList<ColumnsDirective>;\npublic tags: string[] = ['columns'];\n/**\n * Specifies the template for the header with any other widgets.\n * \\@default null\n * \\@asptype string\n */\n@Template()\n public headerTemplate: any;\n/**\n * @param {?} ngEle\n * @param {?} srenderer\n * @param {?} viewContainerRef\n * @param {?} injector\n */\nconstructor(private ngEle: ElementRef,\nprivate srenderer: Renderer2,\nprivate viewContainerRef:ViewContainerRef,\nprivate injector: Injector) {\n super();\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n try {\n let mod = this.injector.get('QueryBuilderQueryLibrary');\n if(this.injectedModules.indexOf(mod) === -1) {\n this.injectedModules.push(mod)\n }\n } catch { }\n\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n/**\n * @return {?}\n */\npublic ngOnInit() {\n this.context.ngOnInit(this);\n }\n/**\n * @return {?}\n */\npublic ngAfterViewInit(): void {\n this.context.ngAfterViewInit(this);\n }\n/**\n * @return {?}\n */\npublic ngOnDestroy(): void {\n this.context.ngOnDestroy(this);\n }\n/**\n * @return {?}\n */\npublic ngAfterContentChecked(): void {\n this.tagObjects[0].instance = this.childColumns;\n this.context.ngAfterContentChecked(this);\n }\npublic registerEvents: (eventList: string[]) => void;\npublic addTwoWay: (propList: string[]) => void;\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'ejs-querybuilder',\n inputs: inputs,\n outputs: outputs,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n queries: {\n childColumns: new ContentChild(ColumnsDirective)\n }\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: ElementRef, },\n{type: Renderer2, },\n{type: ViewContainerRef, },\n{type: Injector, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'headerTemplate': [{ type: ContentChild, args: ['headerTemplate', ] },],\n};\n}\n\nfunction QueryBuilderComponent_tsickle_Closure_declarations() {\n/** @type {?} */\nQueryBuilderComponent.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nQueryBuilderComponent.ctorParameters;\n/** @type {?} */\nQueryBuilderComponent.propDecorators;\n/** @type {?} */\nQueryBuilderComponent.prototype.context;\n/** @type {?} */\nQueryBuilderComponent.prototype.tagObjects;\n/** @type {?} */\nQueryBuilderComponent.prototype.actionBegin;\n/** @type {?} */\nQueryBuilderComponent.prototype.beforeChange;\n/** @type {?} */\nQueryBuilderComponent.prototype.change;\n/** @type {?} */\nQueryBuilderComponent.prototype.created;\n/** @type {?} */\nQueryBuilderComponent.prototype.dataBound;\n/** @type {?} */\nQueryBuilderComponent.prototype.ruleChange;\n/** @type {?} */\nQueryBuilderComponent.prototype.drag;\n/** @type {?} */\nQueryBuilderComponent.prototype.dragStart;\n/** @type {?} */\nQueryBuilderComponent.prototype.drop;\n/** @type {?} */\nQueryBuilderComponent.prototype.childColumns;\n/** @type {?} */\nQueryBuilderComponent.prototype.tags;\n/**\n * Specifies the template for the header with any other widgets.\n * \\@default null\n * \\@asptype string\n * @type {?}\n */\nQueryBuilderComponent.prototype.headerTemplate;\n/** @type {?} */\nQueryBuilderComponent.prototype.registerEvents;\n/** @type {?} */\nQueryBuilderComponent.prototype.addTwoWay;\n/** @type {?} */\nQueryBuilderComponent.prototype.ngEle;\n/** @type {?} */\nQueryBuilderComponent.prototype.srenderer;\n/** @type {?} */\nQueryBuilderComponent.prototype.viewContainerRef;\n/** @type {?} */\nQueryBuilderComponent.prototype.injector;\n}\n\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import { Directive, ViewContainerRef, ContentChildren, ContentChild } from '@angular/core';\nimport { ComplexBase, ArrayBase, setValue } from '@syncfusion/ej2-angular-base';\nimport { Template } from '@syncfusion/ej2-angular-base';\n\n\nlet /** @type {?} */ input: string[] = ['category', 'columns', 'field', 'format', 'label', 'operators', 'ruleTemplate', 'step', 'template', 'type', 'validation', 'value', 'values'];\nlet /** @type {?} */ outputs: string[] = [];\n/**\n * `e-column` directive represent a column of the Angular QueryBuilder. \n * It must be contained in a QueryBuilder component(`ejs-querybuilder`). \n * ```html\n * <ejs-querybuilder [dataSource]='data'> \n * <e-columns>\n * <e-column field='ID' label='ID' type='number'></e-column>\n * <e-column field='Date' label='Date' type='date' format='dd/MM/yyyy'></e-column>\n * </e-columns>\n * </ejs-querybuilder>\n * ```\n */\nexport class ColumnDirective extends ComplexBase<ColumnDirective> {\npublic directivePropList: any;\n/**\n * Specifies the types in columns field.\n * \\@default null\n */\npublic type: any;\n/**\n * Specifies the category for columns.\n * \\@default null\n */\npublic category: any;\n/**\n * Specifies the sub fields in columns.\n * \\@default null\n */\npublic columns: any;\n/**\n * Specifies the fields in columns.\n * \\@default null\n */\npublic field: any;\n/**\n * Specifies the date format for columns.\n * \\@asptype string\n * \\@blazortype string\n * \\@default null\n */\npublic format: any;\n/**\n * Specifies the labels name in columns.\n * \\@default null\n */\npublic label: any;\n/**\n * Specifies the operators in columns.\n * \\@default null\n */\npublic operators: any;\n/**\n * Specifies the step value(numeric textbox) for columns.\n * \\@default null\n */\npublic step: any;\n/**\n * Specifies the validation for columns (text, number and date).\n * \\@default { isRequired: true , min: 0, max: Number.MAX_VALUE }\n */\npublic validation: any;\n/**\n * Specifies the default value for columns.\n * \\@default null\n */\npublic value: any;\n/**\n * Specifies the values in columns or bind the values from sub controls.\n * \\@default null\n */\npublic values: any;\n/**\n * Specifies the rule template for the field with any other widgets.\n * \\@default null\n * \\@asptype string\n */\n@Template()\n public ruleTemplate: any;\n/**\n * Specifies the template for value field such as slider or any other widgets.\n * \\@default null\n */\n@Template()\n public template: any;\n/**\n * @param {?} viewContainerRef\n */\nconstructor(private viewContainerRef:ViewContainerRef) {\n super();\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs);\n this.directivePropList = input;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n selector: 'ejs-querybuilder>e-columns>e-column',\n inputs: input,\n outputs: outputs, \n queries: {\n\n }\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: ViewContainerRef, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'ruleTemplate': [{ type: ContentChild, args: ['ruleTemplate', ] },],\n'template': [{ type: ContentChild, args: ['template', ] },],\n};\n}\n\nfunction ColumnDirective_tsickle_Closure_declarations() {\n/** @type {?} */\nColumnDirective.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nColumnDirective.ctorParameters;\n/** @type {?} */\nColumnDirective.propDecorators;\n/** @type {?} */\nColumnDirective.prototype.directivePropList;\n/**\n * Specifies the types in columns field.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.type;\n/**\n * Specifies the category for columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.category;\n/**\n * Specifies the sub fields in columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.columns;\n/**\n * Specifies the fields in columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.field;\n/**\n * Specifies the date format for columns.\n * \\@asptype string\n * \\@blazortype string\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.format;\n/**\n * Specifies the labels name in columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.label;\n/**\n * Specifies the operators in columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.operators;\n/**\n * Specifies the step value(numeric textbox) for columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.step;\n/**\n * Specifies the validation for columns (text, number and date).\n * \\@default { isRequired: true , min: 0, max: Number.MAX_VALUE }\n * @type {?}\n */\nColumnDirective.prototype.validation;\n/**\n * Specifies the default value for columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.value;\n/**\n * Specifies the values in columns or bind the values from sub controls.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.values;\n/**\n * Specifies the rule template for the field with any other widgets.\n * \\@default null\n * \\@asptype string\n * @type {?}\n */\nColumnDirective.prototype.ruleTemplate;\n/**\n * Specifies the template for value field such as slider or any other widgets.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.template;\n/** @type {?} */\nColumnDirective.prototype.viewContainerRef;\n}\n\n/**\n * Column Array Directive\n */\nexport class ColumnsDirective extends ArrayBase<ColumnsDirective> {\nconstructor() {\n super('columns');\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n selector: 'ejs-querybuilder>e-columns',\n queries: {\n children: new ContentChildren(ColumnDirective)\n },\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction ColumnsDirective_tsickle_Closure_declarations() {\n/** @type {?} */\nColumnsDirective.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nColumnsDirective.ctorParameters;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"],"names":["__metadata","__decorate","outputs"],"mappings":";;;;;;;;;;;;;;AIAA,AAKA,IAAI,KAAA,GAAkB,CAAA,UAAE,EAAW,SAAA,EAAW,OAAA,EAAS,QAAA,EAAU,OAAA,EAAS,WAAA,EAAa,cAAA,EAAgB,MAAA,EAAQ,UAAA,EAAY,MAAA,EAAQ,YAAA,EAAc,OAAA,EAAS,QAAA,CAAS,CAAC;AACpK,IAAI,OAAA,GAAoB,EAAA,CAAG;;;;;;;;;;;;;AAa3B,AAAA,MAAA,eACC,SAAA,WAAA,CADD;;;;IA2EA,WAAA,CAIwB,gBAAkB,EAJ1C;QACQ,KAAK,EAAE,CAAC;QAGQ,IAAxB,CAAA,gBAAwB,GAAA,gBAAA,CAAkB;QAFlC,QAAQ,CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACzD,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC7B,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;KAClC;;AAKE,eAAP,CAAA,UAAO,GAAoC;IAH3C,EAIE,IAAA,EAAM,SAAA,EAAW,IAAA,EAAM,CAAA;gBAHrB,QAAQ,EAIE,qCAAA;gBAHV,MAAM,EAIE,KAAA;gBAHR,OAAO,EAIE,OAAA;gBAHT,OAAO,EAIE,EAFR;aACJ,EAIC,EAAG;CAHJ,CAIC;;;;AAED,eAAD,CAAA,cAAC,GAAA,MAAA;IADD,EAAC,IAAI,EA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,CAAA,cAAC,GAAA,MAAA,EACA,CAAC;;AD3BF;;GAEG;;;;;"}
|
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: ej2-angular-querybuilder.umd.js
|
|
3
|
-
* version : 32.1.23
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
|
-
(function (global, factory) {
|
|
11
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@syncfusion/ej2-angular-base'), require('@syncfusion/ej2-querybuilder'), require('@angular/common')) :
|
|
12
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@syncfusion/ej2-angular-base', '@syncfusion/ej2-querybuilder', '@angular/common'], factory) :
|
|
13
|
-
(factory((global['ej2-angular-querybuilder'] = {}),global.ng.core,global.ej2.angular.base,global.ej2.querybuilder,global.ng.common));
|
|
14
|
-
}(this, (function (exports,core,ej2AngularBase,ej2Querybuilder,common) { 'use strict';
|
|
15
|
-
|
|
16
|
-
var __extends = (this && this.__extends) || (function () {
|
|
17
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20
|
-
return function (d, b) {
|
|
21
|
-
extendStatics(d, b);
|
|
22
|
-
function __() { this.constructor = d; }
|
|
23
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24
|
-
};
|
|
25
|
-
})();
|
|
26
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
27
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
29
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
30
|
-
else
|
|
31
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
32
|
-
if (d = decorators[i])
|
|
33
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
34
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
-
};
|
|
36
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
37
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
38
|
-
return Reflect.metadata(k, v);
|
|
39
|
-
};
|
|
40
|
-
var input = ['category', 'columns', 'field', 'format', 'label', 'operators', 'ruleTemplate', 'step', 'template', 'type', 'validation', 'value', 'values'];
|
|
41
|
-
var outputs = [];
|
|
42
|
-
/**
|
|
43
|
-
* `e-column` directive represent a column of the Angular QueryBuilder.
|
|
44
|
-
* It must be contained in a QueryBuilder component(`ejs-querybuilder`).
|
|
45
|
-
* ```html
|
|
46
|
-
* <ejs-querybuilder [dataSource]='data'>
|
|
47
|
-
* <e-columns>
|
|
48
|
-
* <e-column field='ID' label='ID' type='number'></e-column>
|
|
49
|
-
* <e-column field='Date' label='Date' type='date' format='dd/MM/yyyy'></e-column>
|
|
50
|
-
* </e-columns>
|
|
51
|
-
* </ejs-querybuilder>
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
var ColumnDirective = /** @class */ (function (_super) {
|
|
55
|
-
__extends(ColumnDirective, _super);
|
|
56
|
-
/**
|
|
57
|
-
* @param {?} viewContainerRef
|
|
58
|
-
*/
|
|
59
|
-
function ColumnDirective(viewContainerRef) {
|
|
60
|
-
var _this = _super.call(this) || this;
|
|
61
|
-
_this.viewContainerRef = viewContainerRef;
|
|
62
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
63
|
-
_this.registerEvents(outputs);
|
|
64
|
-
_this.directivePropList = input;
|
|
65
|
-
return _this;
|
|
66
|
-
}
|
|
67
|
-
return ColumnDirective;
|
|
68
|
-
}(ej2AngularBase.ComplexBase));
|
|
69
|
-
ColumnDirective.decorators = [
|
|
70
|
-
{ type: core.Directive, args: [{
|
|
71
|
-
selector: 'ejs-querybuilder>e-columns>e-column',
|
|
72
|
-
inputs: input,
|
|
73
|
-
outputs: outputs,
|
|
74
|
-
queries: {}
|
|
75
|
-
},] },
|
|
76
|
-
];
|
|
77
|
-
/**
|
|
78
|
-
* @nocollapse
|
|
79
|
-
*/
|
|
80
|
-
ColumnDirective.ctorParameters = function () { return [
|
|
81
|
-
{ type: core.ViewContainerRef, },
|
|
82
|
-
]; };
|
|
83
|
-
ColumnDirective.propDecorators = {
|
|
84
|
-
'ruleTemplate': [{ type: core.ContentChild, args: ['ruleTemplate',] },],
|
|
85
|
-
'template': [{ type: core.ContentChild, args: ['template',] },],
|
|
86
|
-
};
|
|
87
|
-
__decorate([
|
|
88
|
-
ej2AngularBase.Template(),
|
|
89
|
-
__metadata("design:type", Object)
|
|
90
|
-
], ColumnDirective.prototype, "ruleTemplate", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
ej2AngularBase.Template(),
|
|
93
|
-
__metadata("design:type", Object)
|
|
94
|
-
], ColumnDirective.prototype, "template", void 0);
|
|
95
|
-
/**
|
|
96
|
-
* Column Array Directive
|
|
97
|
-
*/
|
|
98
|
-
var ColumnsDirective = /** @class */ (function (_super) {
|
|
99
|
-
__extends(ColumnsDirective, _super);
|
|
100
|
-
function ColumnsDirective() {
|
|
101
|
-
return _super.call(this, 'columns') || this;
|
|
102
|
-
}
|
|
103
|
-
return ColumnsDirective;
|
|
104
|
-
}(ej2AngularBase.ArrayBase));
|
|
105
|
-
ColumnsDirective.decorators = [
|
|
106
|
-
{ type: core.Directive, args: [{
|
|
107
|
-
selector: 'ejs-querybuilder>e-columns',
|
|
108
|
-
queries: {
|
|
109
|
-
children: new core.ContentChildren(ColumnDirective)
|
|
110
|
-
},
|
|
111
|
-
},] },
|
|
112
|
-
];
|
|
113
|
-
/**
|
|
114
|
-
* @nocollapse
|
|
115
|
-
*/
|
|
116
|
-
ColumnsDirective.ctorParameters = function () { return []; };
|
|
117
|
-
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
118
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
119
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
120
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
121
|
-
else
|
|
122
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
123
|
-
if (d = decorators[i])
|
|
124
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
125
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
126
|
-
};
|
|
127
|
-
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
128
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
129
|
-
return Reflect.metadata(k, v);
|
|
130
|
-
};
|
|
131
|
-
var inputs = ['addRuleToNewGroups', 'allowDragAndDrop', 'allowValidation', 'autoSelectField', 'autoSelectOperator', 'columns', 'cssClass', 'dataSource', 'displayMode', 'enableNotCondition', 'enablePersistence', 'enableRtl', 'enableSeparateConnector', 'fieldMode', 'fieldModel', 'headerTemplate', 'height', 'immediateModeDelay', 'locale', 'matchCase', 'maxGroupCount', 'operatorModel', 'readonly', 'rule', 'separator', 'showButtons', 'sortDirection', 'summaryView', 'valueModel', 'width'];
|
|
132
|
-
var outputs$1 = ['actionBegin', 'beforeChange', 'change', 'created', 'dataBound', 'ruleChange', 'drag', 'dragStart', 'drop'];
|
|
133
|
-
var twoWays = [''];
|
|
134
|
-
/**
|
|
135
|
-
* Represents the EJ2 Angular QueryBuilder Component.
|
|
136
|
-
* ```html
|
|
137
|
-
* <ejs-querybuilder></ejs-querybuilder>
|
|
138
|
-
* ```
|
|
139
|
-
*/
|
|
140
|
-
exports.QueryBuilderComponent = /** @class */ (function (_super) {
|
|
141
|
-
__extends(QueryBuilderComponent, _super);
|
|
142
|
-
/**
|
|
143
|
-
* @param {?} ngEle
|
|
144
|
-
* @param {?} srenderer
|
|
145
|
-
* @param {?} viewContainerRef
|
|
146
|
-
* @param {?} injector
|
|
147
|
-
*/
|
|
148
|
-
function QueryBuilderComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
149
|
-
var _this = _super.call(this) || this;
|
|
150
|
-
_this.ngEle = ngEle;
|
|
151
|
-
_this.srenderer = srenderer;
|
|
152
|
-
_this.viewContainerRef = viewContainerRef;
|
|
153
|
-
_this.injector = injector;
|
|
154
|
-
_this.tags = ['columns'];
|
|
155
|
-
_this.element = _this.ngEle.nativeElement;
|
|
156
|
-
_this.injectedModules = _this.injectedModules || [];
|
|
157
|
-
try {
|
|
158
|
-
var mod = _this.injector.get('QueryBuilderQueryLibrary');
|
|
159
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
160
|
-
_this.injectedModules.push(mod);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
catch (_a) { }
|
|
164
|
-
_this.registerEvents(outputs$1);
|
|
165
|
-
_this.addTwoWay.call(_this, twoWays);
|
|
166
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
167
|
-
_this.context = new ej2AngularBase.ComponentBase();
|
|
168
|
-
return _this;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* @return {?}
|
|
172
|
-
*/
|
|
173
|
-
QueryBuilderComponent.prototype.ngOnInit = function () {
|
|
174
|
-
this.context.ngOnInit(this);
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* @return {?}
|
|
178
|
-
*/
|
|
179
|
-
QueryBuilderComponent.prototype.ngAfterViewInit = function () {
|
|
180
|
-
this.context.ngAfterViewInit(this);
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* @return {?}
|
|
184
|
-
*/
|
|
185
|
-
QueryBuilderComponent.prototype.ngOnDestroy = function () {
|
|
186
|
-
this.context.ngOnDestroy(this);
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* @return {?}
|
|
190
|
-
*/
|
|
191
|
-
QueryBuilderComponent.prototype.ngAfterContentChecked = function () {
|
|
192
|
-
this.tagObjects[0].instance = this.childColumns;
|
|
193
|
-
this.context.ngAfterContentChecked(this);
|
|
194
|
-
};
|
|
195
|
-
return QueryBuilderComponent;
|
|
196
|
-
}(ej2Querybuilder.QueryBuilder));
|
|
197
|
-
exports.QueryBuilderComponent.decorators = [
|
|
198
|
-
{ type: core.Component, args: [{
|
|
199
|
-
selector: 'ejs-querybuilder',
|
|
200
|
-
inputs: inputs,
|
|
201
|
-
outputs: outputs$1,
|
|
202
|
-
template: '',
|
|
203
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
204
|
-
queries: {
|
|
205
|
-
childColumns: new core.ContentChild(ColumnsDirective)
|
|
206
|
-
}
|
|
207
|
-
},] },
|
|
208
|
-
];
|
|
209
|
-
/**
|
|
210
|
-
* @nocollapse
|
|
211
|
-
*/
|
|
212
|
-
exports.QueryBuilderComponent.ctorParameters = function () { return [
|
|
213
|
-
{ type: core.ElementRef, },
|
|
214
|
-
{ type: core.Renderer2, },
|
|
215
|
-
{ type: core.ViewContainerRef, },
|
|
216
|
-
{ type: core.Injector, },
|
|
217
|
-
]; };
|
|
218
|
-
exports.QueryBuilderComponent.propDecorators = {
|
|
219
|
-
'headerTemplate': [{ type: core.ContentChild, args: ['headerTemplate',] },],
|
|
220
|
-
};
|
|
221
|
-
__decorate$1([
|
|
222
|
-
ej2AngularBase.Template(),
|
|
223
|
-
__metadata$1("design:type", Object)
|
|
224
|
-
], exports.QueryBuilderComponent.prototype, "headerTemplate", void 0);
|
|
225
|
-
exports.QueryBuilderComponent = __decorate$1([
|
|
226
|
-
ej2AngularBase.ComponentMixins([ej2AngularBase.ComponentBase]),
|
|
227
|
-
__metadata$1("design:paramtypes", [core.ElementRef,
|
|
228
|
-
core.Renderer2,
|
|
229
|
-
core.ViewContainerRef,
|
|
230
|
-
core.Injector])
|
|
231
|
-
], exports.QueryBuilderComponent);
|
|
232
|
-
/**
|
|
233
|
-
* NgModule definition for the QueryBuilder component.
|
|
234
|
-
*/
|
|
235
|
-
var QueryBuilderModule = /** @class */ (function () {
|
|
236
|
-
function QueryBuilderModule() {
|
|
237
|
-
}
|
|
238
|
-
return QueryBuilderModule;
|
|
239
|
-
}());
|
|
240
|
-
QueryBuilderModule.decorators = [
|
|
241
|
-
{ type: core.NgModule, args: [{
|
|
242
|
-
imports: [common.CommonModule],
|
|
243
|
-
declarations: [
|
|
244
|
-
exports.QueryBuilderComponent,
|
|
245
|
-
ColumnDirective,
|
|
246
|
-
ColumnsDirective
|
|
247
|
-
],
|
|
248
|
-
exports: [
|
|
249
|
-
exports.QueryBuilderComponent,
|
|
250
|
-
ColumnDirective,
|
|
251
|
-
ColumnsDirective
|
|
252
|
-
]
|
|
253
|
-
},] },
|
|
254
|
-
];
|
|
255
|
-
/**
|
|
256
|
-
* @nocollapse
|
|
257
|
-
*/
|
|
258
|
-
QueryBuilderModule.ctorParameters = function () { return []; };
|
|
259
|
-
var QueryLibraryService = { provide: 'QueryBuilderQueryLibrary', useValue: ej2Querybuilder.QueryLibrary };
|
|
260
|
-
/**
|
|
261
|
-
* NgModule definition for the QueryBuilder component with providers.
|
|
262
|
-
*/
|
|
263
|
-
var QueryBuilderAllModule = /** @class */ (function () {
|
|
264
|
-
function QueryBuilderAllModule() {
|
|
265
|
-
}
|
|
266
|
-
return QueryBuilderAllModule;
|
|
267
|
-
}());
|
|
268
|
-
QueryBuilderAllModule.decorators = [
|
|
269
|
-
{ type: core.NgModule, args: [{
|
|
270
|
-
imports: [common.CommonModule, QueryBuilderModule],
|
|
271
|
-
exports: [
|
|
272
|
-
QueryBuilderModule
|
|
273
|
-
],
|
|
274
|
-
providers: [
|
|
275
|
-
QueryLibraryService
|
|
276
|
-
]
|
|
277
|
-
},] },
|
|
278
|
-
];
|
|
279
|
-
/**
|
|
280
|
-
* @nocollapse
|
|
281
|
-
*/
|
|
282
|
-
QueryBuilderAllModule.ctorParameters = function () { return []; };
|
|
283
|
-
|
|
284
|
-
exports.ColumnDirective = ColumnDirective;
|
|
285
|
-
exports.ColumnsDirective = ColumnsDirective;
|
|
286
|
-
exports.QueryBuilderModule = QueryBuilderModule;
|
|
287
|
-
exports.QueryBuilderAllModule = QueryBuilderAllModule;
|
|
288
|
-
exports.QueryLibraryService = QueryLibraryService;
|
|
289
|
-
exports.ɵa = inputs;
|
|
290
|
-
exports.ɵb = outputs$1;
|
|
291
|
-
exports.Columns = ej2Querybuilder.Columns;
|
|
292
|
-
exports.Rule = ej2Querybuilder.Rule;
|
|
293
|
-
exports.Value = ej2Querybuilder.Value;
|
|
294
|
-
exports.ShowButtons = ej2Querybuilder.ShowButtons;
|
|
295
|
-
exports.QueryBuilder = ej2Querybuilder.QueryBuilder;
|
|
296
|
-
exports.QueryLibrary = ej2Querybuilder.QueryLibrary;
|
|
297
|
-
|
|
298
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
299
|
-
|
|
300
|
-
})));
|
|
301
|
-
//# sourceMappingURL=ej2-angular-querybuilder.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-angular-querybuilder.umd.js","sources":["~/@syncfusion/ej2-angular-querybuilder/src/query-builder/querybuilder-all.module.ts","~/@syncfusion/ej2-angular-querybuilder/src/query-builder/querybuilder.module.ts","~/@syncfusion/ej2-angular-querybuilder/src/query-builder/querybuilder.component.ts","~/@syncfusion/ej2-angular-querybuilder/src/query-builder/columns.directive.ts"],"sourcesContent":["import { NgModule, ValueProvider } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ColumnDirective, ColumnsDirective } from './columns.directive';\nimport { QueryBuilderComponent } from './querybuilder.component';\nimport { QueryBuilderModule } from './querybuilder.module';\nimport {QueryLibrary} from '@syncfusion/ej2-querybuilder';\n\n\nexport const /** @type {?} */ QueryLibraryService: ValueProvider = { provide: 'QueryBuilderQueryLibrary', useValue: QueryLibrary};\n/**\n * NgModule definition for the QueryBuilder component with providers.\n */\nexport class QueryBuilderAllModule { static decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n imports: [CommonModule, QueryBuilderModule],\n exports: [\n QueryBuilderModule\n ],\n providers:[\n QueryLibraryService\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction QueryBuilderAllModule_tsickle_Closure_declarations() {\n/** @type {?} */\nQueryBuilderAllModule.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nQueryBuilderAllModule.ctorParameters;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ColumnDirective, ColumnsDirective } from './columns.directive';\nimport { QueryBuilderComponent } from './querybuilder.component';\n/**\n * NgModule definition for the QueryBuilder component.\n */\nexport class QueryBuilderModule { static decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n imports: [CommonModule],\n declarations: [\n QueryBuilderComponent,\n ColumnDirective,\n ColumnsDirective\n ],\n exports: [\n QueryBuilderComponent,\n ColumnDirective,\n ColumnsDirective\n ]\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction QueryBuilderModule_tsickle_Closure_declarations() {\n/** @type {?} */\nQueryBuilderModule.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nQueryBuilderModule.ctorParameters;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, QueryList, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';\nimport { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';\nimport { QueryBuilder } from '@syncfusion/ej2-querybuilder';\nimport { Template } from '@syncfusion/ej2-angular-base';\nimport { ColumnsDirective } from './columns.directive';\n\nexport const /** @type {?} */ inputs: string[] = ['addRuleToNewGroups','allowDragAndDrop','allowValidation','autoSelectField','autoSelectOperator','columns','cssClass','dataSource','displayMode','enableNotCondition','enablePersistence','enableRtl','enableSeparateConnector','fieldMode','fieldModel','headerTemplate','height','immediateModeDelay','locale','matchCase','maxGroupCount','operatorModel','readonly','rule','separator','showButtons','sortDirection','summaryView','valueModel','width'];\nexport const /** @type {?} */ outputs: string[] = ['actionBegin','beforeChange','change','created','dataBound','ruleChange','drag','dragStart','drop'];\nexport const /** @type {?} */ twoWays: string[] = [''];\n/**\n * Represents the EJ2 Angular QueryBuilder Component.\n * ```html\n * <ejs-querybuilder></ejs-querybuilder>\n * ```\n */\n@ComponentMixins([ComponentBase])\nexport class QueryBuilderComponent extends QueryBuilder implements IComponentBase {\npublic context : any;\npublic tagObjects: any;\n\tactionBegin: any;\n\tbeforeChange: any;\n\tchange: any;\n\tcreated: any;\n\tdataBound: any;\n\truleChange: any;\n\tdrag: any;\n\tdragStart: any;\npublic drop: any;\npublic childColumns: QueryList<ColumnsDirective>;\npublic tags: string[] = ['columns'];\n/**\n * Specifies the template for the header with any other widgets.\n * \\@default null\n * \\@asptype string\n */\n@Template()\n public headerTemplate: any;\n/**\n * @param {?} ngEle\n * @param {?} srenderer\n * @param {?} viewContainerRef\n * @param {?} injector\n */\nconstructor(private ngEle: ElementRef,\nprivate srenderer: Renderer2,\nprivate viewContainerRef:ViewContainerRef,\nprivate injector: Injector) {\n super();\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n try {\n let mod = this.injector.get('QueryBuilderQueryLibrary');\n if(this.injectedModules.indexOf(mod) === -1) {\n this.injectedModules.push(mod)\n }\n } catch { }\n\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n/**\n * @return {?}\n */\npublic ngOnInit() {\n this.context.ngOnInit(this);\n }\n/**\n * @return {?}\n */\npublic ngAfterViewInit(): void {\n this.context.ngAfterViewInit(this);\n }\n/**\n * @return {?}\n */\npublic ngOnDestroy(): void {\n this.context.ngOnDestroy(this);\n }\n/**\n * @return {?}\n */\npublic ngAfterContentChecked(): void {\n this.tagObjects[0].instance = this.childColumns;\n this.context.ngAfterContentChecked(this);\n }\npublic registerEvents: (eventList: string[]) => void;\npublic addTwoWay: (propList: string[]) => void;\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'ejs-querybuilder',\n inputs: inputs,\n outputs: outputs,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n queries: {\n childColumns: new ContentChild(ColumnsDirective)\n }\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: ElementRef, },\n{type: Renderer2, },\n{type: ViewContainerRef, },\n{type: Injector, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'headerTemplate': [{ type: ContentChild, args: ['headerTemplate', ] },],\n};\n}\n\nfunction QueryBuilderComponent_tsickle_Closure_declarations() {\n/** @type {?} */\nQueryBuilderComponent.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nQueryBuilderComponent.ctorParameters;\n/** @type {?} */\nQueryBuilderComponent.propDecorators;\n/** @type {?} */\nQueryBuilderComponent.prototype.context;\n/** @type {?} */\nQueryBuilderComponent.prototype.tagObjects;\n/** @type {?} */\nQueryBuilderComponent.prototype.actionBegin;\n/** @type {?} */\nQueryBuilderComponent.prototype.beforeChange;\n/** @type {?} */\nQueryBuilderComponent.prototype.change;\n/** @type {?} */\nQueryBuilderComponent.prototype.created;\n/** @type {?} */\nQueryBuilderComponent.prototype.dataBound;\n/** @type {?} */\nQueryBuilderComponent.prototype.ruleChange;\n/** @type {?} */\nQueryBuilderComponent.prototype.drag;\n/** @type {?} */\nQueryBuilderComponent.prototype.dragStart;\n/** @type {?} */\nQueryBuilderComponent.prototype.drop;\n/** @type {?} */\nQueryBuilderComponent.prototype.childColumns;\n/** @type {?} */\nQueryBuilderComponent.prototype.tags;\n/**\n * Specifies the template for the header with any other widgets.\n * \\@default null\n * \\@asptype string\n * @type {?}\n */\nQueryBuilderComponent.prototype.headerTemplate;\n/** @type {?} */\nQueryBuilderComponent.prototype.registerEvents;\n/** @type {?} */\nQueryBuilderComponent.prototype.addTwoWay;\n/** @type {?} */\nQueryBuilderComponent.prototype.ngEle;\n/** @type {?} */\nQueryBuilderComponent.prototype.srenderer;\n/** @type {?} */\nQueryBuilderComponent.prototype.viewContainerRef;\n/** @type {?} */\nQueryBuilderComponent.prototype.injector;\n}\n\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","import { Directive, ViewContainerRef, ContentChildren, ContentChild } from '@angular/core';\nimport { ComplexBase, ArrayBase, setValue } from '@syncfusion/ej2-angular-base';\nimport { Template } from '@syncfusion/ej2-angular-base';\n\n\nlet /** @type {?} */ input: string[] = ['category', 'columns', 'field', 'format', 'label', 'operators', 'ruleTemplate', 'step', 'template', 'type', 'validation', 'value', 'values'];\nlet /** @type {?} */ outputs: string[] = [];\n/**\n * `e-column` directive represent a column of the Angular QueryBuilder. \n * It must be contained in a QueryBuilder component(`ejs-querybuilder`). \n * ```html\n * <ejs-querybuilder [dataSource]='data'> \n * <e-columns>\n * <e-column field='ID' label='ID' type='number'></e-column>\n * <e-column field='Date' label='Date' type='date' format='dd/MM/yyyy'></e-column>\n * </e-columns>\n * </ejs-querybuilder>\n * ```\n */\nexport class ColumnDirective extends ComplexBase<ColumnDirective> {\npublic directivePropList: any;\n/**\n * Specifies the types in columns field.\n * \\@default null\n */\npublic type: any;\n/**\n * Specifies the category for columns.\n * \\@default null\n */\npublic category: any;\n/**\n * Specifies the sub fields in columns.\n * \\@default null\n */\npublic columns: any;\n/**\n * Specifies the fields in columns.\n * \\@default null\n */\npublic field: any;\n/**\n * Specifies the date format for columns.\n * \\@asptype string\n * \\@blazortype string\n * \\@default null\n */\npublic format: any;\n/**\n * Specifies the labels name in columns.\n * \\@default null\n */\npublic label: any;\n/**\n * Specifies the operators in columns.\n * \\@default null\n */\npublic operators: any;\n/**\n * Specifies the step value(numeric textbox) for columns.\n * \\@default null\n */\npublic step: any;\n/**\n * Specifies the validation for columns (text, number and date).\n * \\@default { isRequired: true , min: 0, max: Number.MAX_VALUE }\n */\npublic validation: any;\n/**\n * Specifies the default value for columns.\n * \\@default null\n */\npublic value: any;\n/**\n * Specifies the values in columns or bind the values from sub controls.\n * \\@default null\n */\npublic values: any;\n/**\n * Specifies the rule template for the field with any other widgets.\n * \\@default null\n * \\@asptype string\n */\n@Template()\n public ruleTemplate: any;\n/**\n * Specifies the template for value field such as slider or any other widgets.\n * \\@default null\n */\n@Template()\n public template: any;\n/**\n * @param {?} viewContainerRef\n */\nconstructor(private viewContainerRef:ViewContainerRef) {\n super();\n setValue('currentInstance', this, this.viewContainerRef);\n this.registerEvents(outputs);\n this.directivePropList = input;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n selector: 'ejs-querybuilder>e-columns>e-column',\n inputs: input,\n outputs: outputs, \n queries: {\n\n }\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: ViewContainerRef, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'ruleTemplate': [{ type: ContentChild, args: ['ruleTemplate', ] },],\n'template': [{ type: ContentChild, args: ['template', ] },],\n};\n}\n\nfunction ColumnDirective_tsickle_Closure_declarations() {\n/** @type {?} */\nColumnDirective.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nColumnDirective.ctorParameters;\n/** @type {?} */\nColumnDirective.propDecorators;\n/** @type {?} */\nColumnDirective.prototype.directivePropList;\n/**\n * Specifies the types in columns field.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.type;\n/**\n * Specifies the category for columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.category;\n/**\n * Specifies the sub fields in columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.columns;\n/**\n * Specifies the fields in columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.field;\n/**\n * Specifies the date format for columns.\n * \\@asptype string\n * \\@blazortype string\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.format;\n/**\n * Specifies the labels name in columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.label;\n/**\n * Specifies the operators in columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.operators;\n/**\n * Specifies the step value(numeric textbox) for columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.step;\n/**\n * Specifies the validation for columns (text, number and date).\n * \\@default { isRequired: true , min: 0, max: Number.MAX_VALUE }\n * @type {?}\n */\nColumnDirective.prototype.validation;\n/**\n * Specifies the default value for columns.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.value;\n/**\n * Specifies the values in columns or bind the values from sub controls.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.values;\n/**\n * Specifies the rule template for the field with any other widgets.\n * \\@default null\n * \\@asptype string\n * @type {?}\n */\nColumnDirective.prototype.ruleTemplate;\n/**\n * Specifies the template for value field such as slider or any other widgets.\n * \\@default null\n * @type {?}\n */\nColumnDirective.prototype.template;\n/** @type {?} */\nColumnDirective.prototype.viewContainerRef;\n}\n\n/**\n * Column Array Directive\n */\nexport class ColumnsDirective extends ArrayBase<ColumnsDirective> {\nconstructor() {\n super('columns');\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n selector: 'ejs-querybuilder>e-columns',\n queries: {\n children: new ContentChildren(ColumnDirective)\n },\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction ColumnsDirective_tsickle_Closure_declarations() {\n/** @type {?} */\nColumnsDirective.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nColumnsDirective.ctorParameters;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"],"names":["CommonModule","NgModule","QueryLibrary","QueryBuilderComponent","Injector","ViewContainerRef","Renderer2","__metadata","ElementRef","ComponentMixins","ComponentBase","__decorate","Template","ContentChild","ChangeDetectionStrategy","outputs","Component","QueryBuilder","setValue","ContentChildren","Directive","ArrayBase","ComplexBase"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,IAKI,KAAA,GAAkB,CAAA,UAAE,EAAW,SAAA,EAAW,OAAA,EAAS,QAAA,EAAU,OAAA,EAAS,WAAA,EAAa,cAAA,EAAgB,MAAA,EAAQ,UAAA,EAAY,MAAA,EAAQ,YAAA,EAAc,OAAA,EAAS,QAAA,CAAS,CAAC;AACpK,IAAI,OAAA,GAAoB,EAAA,CAAG;;;;;;;;;;;;;AAa3B,IAAA,eAAA,kBAAA,UAAA,MAAA,EAAA;IACC,SAAD,CAAA,eAAA,EAAA,MAAA,CAAA,CAAC;;;;IA0ED,SAAA,eAAA,CAIwB,gBAAkB,EAJ1C;QAAA,IAAA,KAAA,GACQ,MADR,CAAA,IAAA,CAAA,IAAA,CACe,IADf,IAAA,CAKK;QADmB,KAAxB,CAAA,gBAAwB,GAAA,gBAAA,CAAkB;QAFlCkB,uBAAQ,CAAC,iBAAiB,EAAE,KAAI,EAAE,KAAI,CAAC,gBAAgB,CAAC,CAAC;QACzD,KAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC7B,KAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;;KAClC;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