@syncfusion/ej2-angular-querybuilder 31.2.16-ngcc → 32.1.19-ngcc

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.
@@ -3,245 +3,245 @@ import { ArrayBase, ComplexBase, ComponentBase, ComponentMixins, Template, setVa
3
3
  import { QueryBuilder, QueryLibrary } from '@syncfusion/ej2-querybuilder';
4
4
  import { CommonModule } from '@angular/common';
5
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
- */
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
86
  ColumnsDirective.ctorParameters = () => [];
87
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])
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
194
  ], QueryBuilderComponent);
195
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
- */
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
219
  QueryBuilderModule.ctorParameters = () => [];
220
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
- */
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
241
  QueryBuilderAllModule.ctorParameters = () => [];
242
242
 
243
- /**
244
- * Generated bundle index. Do not edit.
243
+ /**
244
+ * Generated bundle index. Do not edit.
245
245
  */
246
246
 
247
247
  export { ColumnDirective, ColumnsDirective, QueryBuilderComponent, QueryBuilderModule, QueryBuilderAllModule, QueryLibraryService, inputs as ɵa, outputs$1 as ɵb };