@syncfusion/ej2-querybuilder 20.3.56 → 20.4.38

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.
@@ -1,4 +1,4 @@
1
- import { Component, INotifyPropertyChanged, NotifyPropertyChanges, getComponent, MouseEventArgs, Browser, compile } from '@syncfusion/ej2-base'; import { Property, ChildProperty, Complex, L10n, closest, extend, isNullOrUndefined, Collection, cldrData } from '@syncfusion/ej2-base'; import { getInstance, addClass, removeClass, rippleEffect, detach, classList } from '@syncfusion/ej2-base'; import { Internationalization, DateFormatOptions, KeyboardEventArgs, getUniqueID, select } from '@syncfusion/ej2-base'; import { Button, CheckBox, RadioButton, ChangeEventArgs as ButtonChangeEventArgs, RadioButtonModel } from '@syncfusion/ej2-buttons'; import { DropDownList, ChangeEventArgs as DropDownChangeEventArgs, FieldSettingsModel, CheckBoxSelection, DropDownTreeModel, DropDownTree } from '@syncfusion/ej2-dropdowns'; import { MultiSelect, MultiSelectChangeEventArgs, PopupEventArgs, MultiSelectModel, DropDownListModel } from '@syncfusion/ej2-dropdowns'; import { EmitType, Event, EventHandler, getValue, Animation, BaseEventArgs } from '@syncfusion/ej2-base'; import { Query, Predicate, DataManager, Deferred } from '@syncfusion/ej2-data'; import { TextBox, NumericTextBox, InputEventArgs, ChangeEventArgs as InputChangeEventArgs } from '@syncfusion/ej2-inputs'; import { TextBoxModel, NumericTextBoxModel } from '@syncfusion/ej2-inputs'; import { DatePicker, ChangeEventArgs as CalendarChangeEventArgs, DatePickerModel } from '@syncfusion/ej2-calendars'; import { DropDownButton, ItemModel, MenuEventArgs } from '@syncfusion/ej2-splitbuttons'; import { Tooltip, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups'; import { compile as templateCompiler } from '@syncfusion/ej2-base';
1
+ import { Component, INotifyPropertyChanged, NotifyPropertyChanges, getComponent, MouseEventArgs, Browser, compile } from '@syncfusion/ej2-base';import { Property, ChildProperty, Complex, L10n, closest, extend, isNullOrUndefined, Collection, cldrData } from '@syncfusion/ej2-base';import { getInstance, addClass, removeClass, rippleEffect, detach, classList } from '@syncfusion/ej2-base';import { Internationalization, DateFormatOptions, KeyboardEventArgs, getUniqueID, select } from '@syncfusion/ej2-base';import { Button, CheckBox, RadioButton, ChangeEventArgs as ButtonChangeEventArgs, RadioButtonModel } from '@syncfusion/ej2-buttons';import { DropDownList, ChangeEventArgs as DropDownChangeEventArgs, FieldSettingsModel, CheckBoxSelection, DropDownTreeModel, DropDownTree } from '@syncfusion/ej2-dropdowns';import { MultiSelect, MultiSelectChangeEventArgs, PopupEventArgs, MultiSelectModel, DropDownListModel } from '@syncfusion/ej2-dropdowns';import { EmitType, Event, EventHandler, getValue, Animation, BaseEventArgs } from '@syncfusion/ej2-base';import { Query, Predicate, DataManager, Deferred } from '@syncfusion/ej2-data';import { TextBox, NumericTextBox, InputEventArgs, ChangeEventArgs as InputChangeEventArgs } from '@syncfusion/ej2-inputs';import { TextBoxModel, NumericTextBoxModel } from '@syncfusion/ej2-inputs';import { DatePicker, ChangeEventArgs as CalendarChangeEventArgs, DatePickerModel } from '@syncfusion/ej2-calendars';import { DropDownButton, ItemModel, MenuEventArgs } from '@syncfusion/ej2-splitbuttons';import { Tooltip, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { compile as templateCompiler } from '@syncfusion/ej2-base';
2
2
  import {TemplateColumn,Validation,FormatObject,ActionEventArgs,ChangeEventArgs,RuleChangeEventArgs,FieldMode,DisplayMode,SortDirection} from "./query-builder";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -8,97 +8,97 @@ import {ComponentModel} from '@syncfusion/ej2-base';
8
8
  export interface ColumnsModel {
9
9
 
10
10
  /**
11
- * Specifies the fields in columns.
12
- *
13
- * @default null
14
- */
11
+ * Specifies the fields in columns.
12
+ *
13
+ * @default null
14
+ */
15
15
  field?: string;
16
16
 
17
17
  /**
18
- * Specifies the labels name in columns.
19
- *
20
- * @default null
21
- */
18
+ * Specifies the labels name in columns.
19
+ *
20
+ * @default null
21
+ */
22
22
  label?: string;
23
23
 
24
24
  /**
25
- * Specifies the types in columns field.
26
- *
27
- * @default null
28
- */
25
+ * Specifies the types in columns field.
26
+ *
27
+ * @default null
28
+ */
29
29
  type?: string;
30
30
 
31
31
  /**
32
- * Specifies the values in columns or bind the values from sub controls.
33
- *
34
- * @default null
35
- */
32
+ * Specifies the values in columns or bind the values from sub controls.
33
+ *
34
+ * @default null
35
+ */
36
36
  values?: string[] | number[] | boolean[];
37
37
 
38
38
  /**
39
- * Specifies the operators in columns.
40
- *
41
- * @default null
42
- */
39
+ * Specifies the operators in columns.
40
+ *
41
+ * @default null
42
+ */
43
43
  operators?: { [key: string]: Object }[];
44
44
 
45
45
  /**
46
- * Specifies the rule template for the field with any other widgets.
47
- *
48
- * @default null
49
- */
46
+ * Specifies the rule template for the field with any other widgets.
47
+ *
48
+ * @default null
49
+ */
50
50
  ruleTemplate?: string;
51
51
 
52
52
  /**
53
- * Specifies the template for value field such as slider or any other widgets.
54
- *
55
- * @default null
56
- */
53
+ * Specifies the template for value field such as slider or any other widgets.
54
+ *
55
+ * @default null
56
+ */
57
57
  template?: TemplateColumn | string;
58
58
 
59
59
  /**
60
- * Specifies the validation for columns (text, number and date).
61
- *
62
- * @default { isRequired: true , min: 0, max: Number.MAX_VALUE }
63
- */
60
+ * Specifies the validation for columns (text, number and date).
61
+ *
62
+ * @default { isRequired: true , min: 0, max: Number.MAX_VALUE }
63
+ */
64
64
  validation?: Validation;
65
65
 
66
66
  /**
67
- * Specifies the date format for columns.
68
- *
69
- * @aspType string
70
- * @blazorType string
71
- * @default null
72
- */
67
+ * Specifies the date format for columns.
68
+ *
69
+ * @aspType string
70
+ * @blazorType string
71
+ * @default null
72
+ */
73
73
  format?: string | FormatObject;
74
74
 
75
75
  /**
76
- * Specifies the step value(numeric textbox) for columns.
77
- *
78
- * @default null
79
- */
76
+ * Specifies the step value(numeric textbox) for columns.
77
+ *
78
+ * @default null
79
+ */
80
80
  step?: number;
81
81
 
82
82
  /**
83
- * Specifies the default value for columns.
84
- *
85
- * @default null
86
- */
83
+ * Specifies the default value for columns.
84
+ *
85
+ * @default null
86
+ */
87
87
  value?: string[] | number[] | string | number | boolean | Date;
88
88
 
89
89
  /**
90
- * Specifies the category for columns.
91
- *
92
- * @default null
93
- */
90
+ * Specifies the category for columns.
91
+ *
92
+ * @default null
93
+ */
94
94
  category?: string;
95
95
 
96
96
  /**
97
- * Specifies the sub fields in columns.
98
- *
99
- * @default null
100
- *
101
- */
97
+ * Specifies the sub fields in columns.
98
+ *
99
+ * @default null
100
+ *
101
+ */
102
102
  columns?: ColumnsModel[];
103
103
 
104
104
  }
@@ -109,59 +109,59 @@ export interface ColumnsModel {
109
109
  export interface RuleModel {
110
110
 
111
111
  /**
112
- * Specifies the condition value in group.
113
- *
114
- * @default null
115
- */
112
+ * Specifies the condition value in group.
113
+ *
114
+ * @default null
115
+ */
116
116
  condition?: string;
117
117
 
118
118
  /**
119
- * Specifies the rules in group.
120
- *
121
- * @default []
122
- */
119
+ * Specifies the rules in group.
120
+ *
121
+ * @default []
122
+ */
123
123
  rules?: RuleModel[];
124
124
 
125
125
  /**
126
- * Specifies the field value in group.
127
- *
128
- * @default null
129
- */
126
+ * Specifies the field value in group.
127
+ *
128
+ * @default null
129
+ */
130
130
  field?: string;
131
131
 
132
132
  /**
133
- * Specifies the label value in group.
134
- *
135
- * @default null
136
- */
133
+ * Specifies the label value in group.
134
+ *
135
+ * @default null
136
+ */
137
137
  label?: string;
138
138
 
139
139
  /**
140
- * Specifies the type value in group.
141
- *
142
- * @default null
143
- */
140
+ * Specifies the type value in group.
141
+ *
142
+ * @default null
143
+ */
144
144
  type?: string;
145
145
 
146
146
  /**
147
- * Specifies the operator value in group.
148
- *
149
- * @default null
150
- */
147
+ * Specifies the operator value in group.
148
+ *
149
+ * @default null
150
+ */
151
151
  operator?: string;
152
152
 
153
153
  /**
154
- * Specifies the sub controls value in group.
155
- *
156
- * @default null
157
- */
154
+ * Specifies the sub controls value in group.
155
+ *
156
+ * @default null
157
+ */
158
158
  value?: string[] | number[] | string | number | boolean;
159
159
 
160
160
  /**
161
- * Specifies whether not condition is true/false.
162
- *
163
- * @default false
164
- */
161
+ * Specifies whether not condition is true/false.
162
+ *
163
+ * @default false
164
+ */
165
165
  not?: boolean;
166
166
 
167
167
  }
@@ -172,38 +172,38 @@ export interface RuleModel {
172
172
  export interface ValueModel {
173
173
 
174
174
  /**
175
- * Specifies the property for NumericTextBox value.
176
- *
177
- * @default null
178
- */
175
+ * Specifies the property for NumericTextBox value.
176
+ *
177
+ * @default null
178
+ */
179
179
  numericTextBoxModel?: NumericTextBoxModel;
180
180
 
181
181
  /**
182
- * Specifies the property for MultiSelect value.
183
- *
184
- * @default null
185
- */
182
+ * Specifies the property for MultiSelect value.
183
+ *
184
+ * @default null
185
+ */
186
186
  multiSelectModel?: MultiSelectModel;
187
187
 
188
188
  /**
189
- * Specifies the property for DatePicker value.
190
- *
191
- * @default null
192
- */
189
+ * Specifies the property for DatePicker value.
190
+ *
191
+ * @default null
192
+ */
193
193
  datePickerModel?: DatePickerModel;
194
194
 
195
195
  /**
196
- * Specifies the TextBox value.
197
- *
198
- * @default null
199
- */
196
+ * Specifies the TextBox value.
197
+ *
198
+ * @default null
199
+ */
200
200
  textBoxModel?: TextBoxModel;
201
201
 
202
202
  /**
203
- * Specifies the RadioButton value.
204
- *
205
- * @default null
206
- */
203
+ * Specifies the RadioButton value.
204
+ *
205
+ * @default null
206
+ */
207
207
  radioButtonModel?: RadioButtonModel;
208
208
 
209
209
  }
@@ -214,24 +214,24 @@ export interface ValueModel {
214
214
  export interface ShowButtonsModel {
215
215
 
216
216
  /**
217
- * Specifies the boolean value in ruleDelete that the enable/disable the buttons in rule.
218
- *
219
- * @default true
220
- */
217
+ * Specifies the boolean value in ruleDelete that the enable/disable the buttons in rule.
218
+ *
219
+ * @default true
220
+ */
221
221
  ruleDelete?: boolean;
222
222
 
223
223
  /**
224
- * Specifies the boolean value in groupInsert that the enable/disable the buttons in group.
225
- *
226
- * @default true
227
- */
224
+ * Specifies the boolean value in groupInsert that the enable/disable the buttons in group.
225
+ *
226
+ * @default true
227
+ */
228
228
  groupInsert?: boolean;
229
229
 
230
230
  /**
231
- * Specifies the boolean value in groupDelete that the enable/disable the buttons in group.
232
- *
233
- * @default true
234
- */
231
+ * Specifies the boolean value in groupDelete that the enable/disable the buttons in group.
232
+ *
233
+ * @default true
234
+ */
235
235
  groupDelete?: boolean;
236
236
 
237
237
  }
@@ -242,218 +242,218 @@ export interface ShowButtonsModel {
242
242
  export interface QueryBuilderModel extends ComponentModel{
243
243
 
244
244
  /**
245
-      * Triggers when the component is created.
246
- *
247
-      * @event created
248
- * @blazorProperty 'Created'
249
-      */
245
+     * Triggers when the component is created.
246
+ *
247
+     * @event created
248
+ * @blazorProperty 'Created'
249
+     */
250
250
  created?: EmitType<Event>;
251
251
 
252
252
  /**
253
- * Triggers when field, operator, value is change.
254
- *
255
- * @event actionBegin
256
- * @blazorProperty 'OnActionBegin'
257
- */
253
+ * Triggers when field, operator, value is change.
254
+ *
255
+ * @event actionBegin
256
+ * @blazorProperty 'OnActionBegin'
257
+ */
258
258
  actionBegin?: EmitType<ActionEventArgs>;
259
259
 
260
260
  /**
261
- * Triggers before the condition (And/Or), field, operator, value is changed.
262
- *
263
- * @event beforeChange
264
- * @blazorProperty 'OnValueChange'
265
- */
261
+ * Triggers before the condition (And/Or), field, operator, value is changed.
262
+ *
263
+ * @event beforeChange
264
+ * @blazorProperty 'OnValueChange'
265
+ */
266
266
  beforeChange?: EmitType<ChangeEventArgs>;
267
267
 
268
268
  /**
269
- * Triggers when changing the condition(AND/OR), field, value, operator is changed.
270
- *
271
- * @event change
272
- * @blazorProperty 'Changed'
273
- */
269
+ * Triggers when changing the condition(AND/OR), field, value, operator is changed.
270
+ *
271
+ * @event change
272
+ * @blazorProperty 'Changed'
273
+ */
274
274
  change?: EmitType<ChangeEventArgs>;
275
275
 
276
276
  /**
277
- * Triggers when dataBound to the Query Builder.
278
- *
279
- * @event dataBound
280
- * @blazorProperty 'dataBound'
281
- */
277
+ * Triggers when dataBound to the Query Builder.
278
+ *
279
+ * @event dataBound
280
+ * @blazorProperty 'dataBound'
281
+ */
282
282
  dataBound?: EmitType<Object>;
283
283
 
284
284
  /**
285
- * Triggers when changing the condition(AND/OR), field, value, operator is changed
286
- *
287
- * @event ruleChange
288
- * @blazorProperty 'RuleChanged'
289
- */
285
+ * Triggers when changing the condition(AND/OR), field, value, operator is changed
286
+ *
287
+ * @event ruleChange
288
+ * @blazorProperty 'RuleChanged'
289
+ */
290
290
  ruleChange?: EmitType<RuleChangeEventArgs>;
291
291
 
292
292
  /**
293
- * Specifies the showButtons settings of the query builder component.
294
- * The showButtons can be enable Enables or disables the ruleDelete, groupInsert, and groupDelete buttons.
295
- *
296
- * @default { ruleDelete: true , groupInsert: true, groupDelete: true }
297
- */
293
+ * Specifies the showButtons settings of the query builder component.
294
+ * The showButtons can be enable Enables or disables the ruleDelete, groupInsert, and groupDelete buttons.
295
+ *
296
+ * @default { ruleDelete: true , groupInsert: true, groupDelete: true }
297
+ */
298
298
  showButtons?: ShowButtonsModel;
299
299
 
300
300
  /**
301
- * Shows or hides the filtered query.
302
- *
303
- * @default false
304
- */
301
+ * Shows or hides the filtered query.
302
+ *
303
+ * @default false
304
+ */
305
305
  summaryView?: boolean;
306
306
 
307
307
  /**
308
- * Enables or disables the validation.
309
- *
310
- * @default false
311
- */
308
+ * Enables or disables the validation.
309
+ *
310
+ * @default false
311
+ */
312
312
  allowValidation?: boolean;
313
313
 
314
314
  /**
315
- * Specifies the fieldMode as DropDownList or DropDownTree.
316
- *
317
- * @default 'Default'
318
- */
315
+ * Specifies the fieldMode as DropDownList or DropDownTree.
316
+ *
317
+ * @default 'Default'
318
+ */
319
319
  fieldMode?: FieldMode;
320
320
 
321
321
  /**
322
- * Specifies columns to create filters.
323
- *
324
- * @default {}
325
- */
322
+ * Specifies columns to create filters.
323
+ *
324
+ * @default {}
325
+ */
326
326
  columns?: ColumnsModel[];
327
327
 
328
328
  /**
329
- * Specifies the property for field.
330
- *
331
- * @default null
332
- */
329
+ * Specifies the property for field.
330
+ *
331
+ * @default null
332
+ */
333
333
  fieldModel?: DropDownListModel | DropDownTreeModel;
334
334
 
335
335
  /**
336
- * Specifies the property for operator.
337
- *
338
- * @default null
339
- */
336
+ * Specifies the property for operator.
337
+ *
338
+ * @default null
339
+ */
340
340
  operatorModel?: DropDownListModel;
341
341
 
342
342
  /**
343
- * Specifies the property for value.
344
- *
345
- * @default null
346
- */
343
+ * Specifies the property for value.
344
+ *
345
+ * @default null
346
+ */
347
347
  valueModel?: ValueModel;
348
348
 
349
349
  /**
350
- * Specifies the template for the header with any other widgets.
351
- *
352
- * @default null
353
- */
350
+ * Specifies the template for the header with any other widgets.
351
+ *
352
+ * @default null
353
+ */
354
354
  headerTemplate?: string;
355
355
 
356
356
  /**
357
- * Defines class or multiple classes, which are separated by a space in the QueryBuilder element.
358
- * You can add custom styles to the QueryBuilder using the cssClass property.
359
- *
360
- * @default ''
361
- */
357
+ * Defines class or multiple classes, which are separated by a space in the QueryBuilder element.
358
+ * You can add custom styles to the QueryBuilder using the cssClass property.
359
+ *
360
+ * @default ''
361
+ */
362
362
  cssClass?: string;
363
363
 
364
364
  /**
365
- * Binds the column name from data source in query-builder.
366
- * The `dataSource` is an array of JavaScript objects.
367
- *
368
- * @default []
369
- */
365
+ * Binds the column name from data source in query-builder.
366
+ * The `dataSource` is an array of JavaScript objects.
367
+ *
368
+ * @default []
369
+ */
370
370
  dataSource?: Object[] | Object | DataManager;
371
371
 
372
372
  /**
373
- * Specifies the displayMode as Horizontal or Vertical.
374
- *
375
- * @default 'Horizontal'
376
- */
373
+ * Specifies the displayMode as Horizontal or Vertical.
374
+ *
375
+ * @default 'Horizontal'
376
+ */
377
377
  displayMode?: DisplayMode;
378
378
 
379
379
  /**
380
- * Enable or disable persisting component's state between page reloads.
381
- * If enabled, filter states will be persisted.
382
- *
383
- * @default false.
384
- */
380
+ * Enable or disable persisting component's state between page reloads.
381
+ * If enabled, filter states will be persisted.
382
+ *
383
+ * @default false.
384
+ */
385
385
  enablePersistence?: boolean;
386
386
 
387
387
  /**
388
- * Specifies the sort direction of the field names.
389
- *
390
- * @default 'Default'
391
- */
388
+ * Specifies the sort direction of the field names.
389
+ *
390
+ * @default 'Default'
391
+ */
392
392
  sortDirection?: SortDirection;
393
393
 
394
394
  /**
395
- * Specifies the maximum group count or restricts the group count.
396
- *
397
- * @default 5
398
- */
395
+ * Specifies the maximum group count or restricts the group count.
396
+ *
397
+ * @default 5
398
+ */
399
399
  maxGroupCount?: number;
400
400
 
401
401
  /**
402
- * Specifies the height of the query builder.
403
- *
404
- * @default 'auto'
405
- */
402
+ * Specifies the height of the query builder.
403
+ *
404
+ * @default 'auto'
405
+ */
406
406
  height?: string;
407
407
 
408
408
  /**
409
- * Specifies the width of the query builder.
410
- *
411
- * @default 'auto'
412
- */
409
+ * Specifies the width of the query builder.
410
+ *
411
+ * @default 'auto'
412
+ */
413
413
  width?: string;
414
414
 
415
415
  /**
416
- * If match case is set to true, the grid filters the records with exact match.
417
- * if false, it filters case insensitive records (uppercase and lowercase letters treated the same).
418
- *
419
- * @default false
420
- */
416
+ * If match case is set to true, the grid filters the records with exact match.
417
+ * if false, it filters case insensitive records (uppercase and lowercase letters treated the same).
418
+ *
419
+ * @default false
420
+ */
421
421
  matchCase?: boolean;
422
422
 
423
423
  /**
424
- * If immediateModeDelay is set by particular number, the rule Change event is triggered after that period.
425
- *
426
- * @default 0
427
- */
424
+ * If immediateModeDelay is set by particular number, the rule Change event is triggered after that period.
425
+ *
426
+ * @default 0
427
+ */
428
428
  immediateModeDelay?: number;
429
429
 
430
430
  /**
431
- * Enables/Disables the not group condition in query builder.
432
- *
433
- * @default false
434
- */
431
+ * Enables/Disables the not group condition in query builder.
432
+ *
433
+ * @default false
434
+ */
435
435
  enableNotCondition?: boolean;
436
436
 
437
437
  /**
438
- * When set to true, the user interactions on the component are disabled.
439
- *
440
- * @default false
441
- */
438
+ * When set to true, the user interactions on the component are disabled.
439
+ *
440
+ * @default false
441
+ */
442
442
  readonly?: boolean;
443
443
 
444
444
  /**
445
- * Specifies the separator string for column.
446
- *
447
- * @default ''
448
- */
445
+ * Specifies the separator string for column.
446
+ *
447
+ * @default ''
448
+ */
449
449
  separator?: string;
450
450
 
451
451
  /**
452
- * Defines rules in the QueryBuilder.
453
- * Specifies the initial rule, which is JSON data.
454
- *
455
- * @default {}
456
- */
452
+ * Defines rules in the QueryBuilder.
453
+ * Specifies the initial rule, which is JSON data.
454
+ *
455
+ * @default {}
456
+ */
457
457
  rule?: RuleModel;
458
458
 
459
459
  }