5
5
* @export
6
6
*/
7
7
export class IgxFilteringOperand {
8
+ protected static _instance : IgxFilteringOperand = null ;
8
9
public operations : IFilteringOperation [ ] ;
9
10
10
11
public constructor ( ) {
@@ -25,6 +26,10 @@ export class IgxFilteringOperand {
25
26
} ] ;
26
27
}
27
28
29
+ public static instance ( ) : IgxFilteringOperand {
30
+ return this . _instance || ( this . _instance = new this ( ) ) ;
31
+ }
32
+
28
33
public conditionList ( ) : string [ ] {
29
34
return this . operations . map ( ( element ) => element . name ) ;
30
35
}
@@ -44,8 +49,6 @@ export class IgxFilteringOperand {
44
49
* @export
45
50
*/
46
51
export class IgxBooleanFilteringOperand extends IgxFilteringOperand {
47
- private static _instance : IgxBooleanFilteringOperand = null ;
48
-
49
52
protected constructor ( ) {
50
53
super ( ) ;
51
54
this . operations = [ {
@@ -85,10 +88,6 @@ export class IgxBooleanFilteringOperand extends IgxFilteringOperand {
85
88
}
86
89
} ] . concat ( this . operations ) ;
87
90
}
88
-
89
- public static instance ( ) : IgxBooleanFilteringOperand {
90
- return this . _instance || ( this . _instance = new this ( ) ) ;
91
- }
92
91
}
93
92
94
93
/**
@@ -97,8 +96,6 @@ export class IgxBooleanFilteringOperand extends IgxFilteringOperand {
97
96
* @export
98
97
*/
99
98
export class IgxDateFilteringOperand extends IgxFilteringOperand {
100
- private static _instance : IgxDateFilteringOperand = null ;
101
-
102
99
protected constructor ( ) {
103
100
super ( ) ;
104
101
this . operations = [ {
@@ -318,10 +315,6 @@ export class IgxDateFilteringOperand extends IgxFilteringOperand {
318
315
} ] . concat ( this . operations ) ;
319
316
}
320
317
321
- public static instance ( ) : IgxDateFilteringOperand {
322
- return this . _instance || ( this . _instance = new this ( ) ) ;
323
- }
324
-
325
318
/**
326
319
* Splits a Date object into parts
327
320
*
@@ -377,8 +370,6 @@ export class IgxDateFilteringOperand extends IgxFilteringOperand {
377
370
* @export
378
371
*/
379
372
export class IgxNumberFilteringOperand extends IgxFilteringOperand {
380
- private static _instance : IgxNumberFilteringOperand = null ;
381
-
382
373
protected constructor ( ) {
383
374
super ( ) ;
384
375
this . operations = [ {
@@ -439,10 +430,6 @@ export class IgxNumberFilteringOperand extends IgxFilteringOperand {
439
430
}
440
431
} ] . concat ( this . operations ) ;
441
432
}
442
-
443
- public static instance ( ) : IgxNumberFilteringOperand {
444
- return this . _instance || ( this . _instance = new this ( ) ) ;
445
- }
446
433
}
447
434
448
435
/**
@@ -451,8 +438,6 @@ export class IgxNumberFilteringOperand extends IgxFilteringOperand {
451
438
* @export
452
439
*/
453
440
export class IgxStringFilteringOperand extends IgxFilteringOperand {
454
- private static _instance : IgxStringFilteringOperand = null ;
455
-
456
441
protected constructor ( ) {
457
442
super ( ) ;
458
443
this . operations = [ {
@@ -526,10 +511,6 @@ export class IgxStringFilteringOperand extends IgxFilteringOperand {
526
511
} ] . concat ( this . operations ) ;
527
512
}
528
513
529
- public static instance ( ) : IgxStringFilteringOperand {
530
- return this . _instance || ( this . _instance = new this ( ) ) ;
531
- }
532
-
533
514
/**
534
515
* Applies case sensitivity on strings if provided
535
516
*
0 commit comments