@progress/kendo-angular-filter 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +654 -0
  3. package/README.md +31 -0
  4. package/dist/cdn/js/kendo-angular-filter.js +150 -0
  5. package/dist/cdn/main.js +5 -0
  6. package/dist/es/aria-label.directive.js +30 -0
  7. package/dist/es/editors/boolean-editor.component.js +41 -0
  8. package/dist/es/editors/date-editor.component.js +45 -0
  9. package/dist/es/editors/numeric-editor.component.js +45 -0
  10. package/dist/es/editors/text-editor.component.js +45 -0
  11. package/dist/es/filter-expression-operators.component.js +48 -0
  12. package/dist/es/filter-expression.component.js +121 -0
  13. package/dist/es/filter-group.component.js +69 -0
  14. package/dist/es/filter.component.js +185 -0
  15. package/dist/es/filter.module.js +91 -0
  16. package/dist/es/filter.service.js +84 -0
  17. package/dist/es/index.js +21 -0
  18. package/dist/es/localization/custom-messages.component.js +44 -0
  19. package/dist/es/localization/localized-messages.directive.js +35 -0
  20. package/dist/es/localization/messages.js +166 -0
  21. package/dist/es/main.js +6 -0
  22. package/dist/es/model/filter-expression.js +7 -0
  23. package/dist/es/package-metadata.js +15 -0
  24. package/dist/es/shared.module.js +37 -0
  25. package/dist/es/util.js +129 -0
  26. package/dist/es2015/aria-label.directive.d.ts +15 -0
  27. package/dist/es2015/aria-label.directive.js +29 -0
  28. package/dist/es2015/editors/boolean-editor.component.d.ts +25 -0
  29. package/dist/es2015/editors/boolean-editor.component.js +53 -0
  30. package/dist/es2015/editors/date-editor.component.d.ts +20 -0
  31. package/dist/es2015/editors/date-editor.component.js +56 -0
  32. package/dist/es2015/editors/numeric-editor.component.d.ts +20 -0
  33. package/dist/es2015/editors/numeric-editor.component.js +56 -0
  34. package/dist/es2015/editors/text-editor.component.d.ts +20 -0
  35. package/dist/es2015/editors/text-editor.component.js +52 -0
  36. package/dist/es2015/filter-expression-operators.component.d.ts +24 -0
  37. package/dist/es2015/filter-expression-operators.component.js +59 -0
  38. package/dist/es2015/filter-expression.component.d.ts +40 -0
  39. package/dist/es2015/filter-expression.component.js +160 -0
  40. package/dist/es2015/filter-group.component.d.ts +29 -0
  41. package/dist/es2015/filter-group.component.js +131 -0
  42. package/dist/es2015/filter.component.d.ts +80 -0
  43. package/dist/es2015/filter.component.js +298 -0
  44. package/dist/es2015/filter.module.d.ts +37 -0
  45. package/dist/es2015/filter.module.js +88 -0
  46. package/dist/es2015/filter.service.d.ts +43 -0
  47. package/dist/es2015/filter.service.js +66 -0
  48. package/dist/es2015/index.d.ts +21 -0
  49. package/dist/es2015/index.js +21 -0
  50. package/dist/es2015/index.metadata.json +1 -0
  51. package/dist/es2015/localization/custom-messages.component.d.ts +15 -0
  52. package/dist/es2015/localization/custom-messages.component.js +36 -0
  53. package/dist/es2015/localization/localized-messages.directive.d.ts +13 -0
  54. package/dist/es2015/localization/localized-messages.directive.js +31 -0
  55. package/dist/es2015/localization/messages.d.ts +158 -0
  56. package/dist/es2015/localization/messages.js +160 -0
  57. package/dist/es2015/main.d.ts +7 -0
  58. package/dist/es2015/main.js +6 -0
  59. package/dist/es2015/model/filter-expression.d.ts +60 -0
  60. package/dist/es2015/model/filter-expression.js +7 -0
  61. package/dist/es2015/package-metadata.d.ts +9 -0
  62. package/dist/es2015/package-metadata.js +15 -0
  63. package/dist/es2015/shared.module.d.ts +9 -0
  64. package/dist/es2015/shared.module.js +34 -0
  65. package/dist/es2015/util.d.ts +140 -0
  66. package/dist/es2015/util.js +129 -0
  67. package/dist/fesm2015/index.js +1282 -0
  68. package/dist/fesm5/index.js +1058 -0
  69. package/dist/npm/aria-label.directive.js +32 -0
  70. package/dist/npm/editors/boolean-editor.component.js +43 -0
  71. package/dist/npm/editors/date-editor.component.js +47 -0
  72. package/dist/npm/editors/numeric-editor.component.js +47 -0
  73. package/dist/npm/editors/text-editor.component.js +47 -0
  74. package/dist/npm/filter-expression-operators.component.js +50 -0
  75. package/dist/npm/filter-expression.component.js +123 -0
  76. package/dist/npm/filter-group.component.js +71 -0
  77. package/dist/npm/filter.component.js +187 -0
  78. package/dist/npm/filter.module.js +93 -0
  79. package/dist/npm/filter.service.js +86 -0
  80. package/dist/npm/index.js +37 -0
  81. package/dist/npm/localization/custom-messages.component.js +46 -0
  82. package/dist/npm/localization/localized-messages.directive.js +37 -0
  83. package/dist/npm/localization/messages.js +168 -0
  84. package/dist/npm/main.js +10 -0
  85. package/dist/npm/model/filter-expression.js +9 -0
  86. package/dist/npm/package-metadata.js +17 -0
  87. package/dist/npm/shared.module.js +39 -0
  88. package/dist/npm/util.js +131 -0
  89. package/dist/systemjs/kendo-angular-filter.js +5 -0
  90. package/package.json +158 -0
  91. package/schematics/collection.json +12 -0
  92. package/schematics/ngAdd/index.js +12 -0
  93. package/schematics/ngAdd/index.js.map +1 -0
  94. package/schematics/ngAdd/schema.json +28 -0
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export const packageMetadata = {
9
+ name: '@progress/kendo-angular-filter',
10
+ productName: 'Kendo UI for Angular',
11
+ productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
+ publishDate: 1642514456,
13
+ version: '',
14
+ licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
+ };
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare class SharedModule {
9
+ }
@@ -0,0 +1,34 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as tslib_1 from "tslib";
6
+ import { CommonModule } from '@angular/common';
7
+ import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
8
+ import { InputsModule } from '@progress/kendo-angular-inputs';
9
+ import { LabelModule } from '@progress/kendo-angular-label';
10
+ import { NgModule } from '@angular/core';
11
+ import { ButtonsModule } from '@progress/kendo-angular-buttons';
12
+ import { FilterService } from './filter.service';
13
+ import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
14
+ const importedModules = [
15
+ CommonModule,
16
+ InputsModule,
17
+ LabelModule,
18
+ DropDownsModule,
19
+ ButtonsModule,
20
+ DateInputsModule
21
+ ];
22
+ /**
23
+ * @hidden
24
+ */
25
+ let SharedModule = class SharedModule {
26
+ };
27
+ SharedModule = tslib_1.__decorate([
28
+ NgModule({
29
+ imports: [...importedModules],
30
+ exports: [...importedModules],
31
+ providers: [FilterService]
32
+ })
33
+ ], SharedModule);
34
+ export { SharedModule };
@@ -0,0 +1,140 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const nullOperators: string[];
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const numericOperators: {
13
+ text: string;
14
+ value: string;
15
+ }[];
16
+ /**
17
+ * @hidden
18
+ */
19
+ export declare const stringOperators: {
20
+ text: string;
21
+ value: string;
22
+ }[];
23
+ /**
24
+ * @hidden
25
+ */
26
+ export declare const booleanOperators: {
27
+ text: string;
28
+ value: string;
29
+ }[];
30
+ /**
31
+ * @hidden
32
+ */
33
+ export declare const dateOperators: {
34
+ text: string;
35
+ value: string;
36
+ }[];
37
+ /**
38
+ * @hidden
39
+ */
40
+ export declare const isArray: Function;
41
+ /**
42
+ * @hidden
43
+ */
44
+ export declare const getKeyByValue: (object: object, value: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "isnull" | "isnotnull" | "contains" | "doesnotcontain" | "startswith" | "endswidth" | "isempty" | "isnotempty" | {
45
+ text: string;
46
+ value: string;
47
+ }) => string;
48
+ /**
49
+ * @hidden
50
+ */
51
+ export declare const defaultStringOperators: {
52
+ "filterEqOperator": string;
53
+ "filterNotEqOperator": string;
54
+ "filterContainsOperator": string;
55
+ "filterNotContainsOperator": string;
56
+ "filterStartsWithOperator": string;
57
+ "filterEndsWithOperator": string;
58
+ "filterIsNullOperator": string;
59
+ "filterIsNotNullOperator": string;
60
+ "filterIsEmptyOperator": string;
61
+ "filterIsNotEmptyOperator": string;
62
+ };
63
+ /**
64
+ * @hidden
65
+ */
66
+ export declare const defaultNumericOperators: {
67
+ "filterEqOperator": string;
68
+ "filterNotEqOperator": string;
69
+ "filterGteOperator": string;
70
+ "filterGtOperator": string;
71
+ "filterLteOperator": string;
72
+ "filterLtOperator": string;
73
+ "filterIsNullOperator": string;
74
+ "filterIsNotNullOperator": string;
75
+ };
76
+ /**
77
+ * @hidden
78
+ */
79
+ export declare const defaultDateOperators: {
80
+ "filterEqOperator": string;
81
+ "filterNotEqOperator": string;
82
+ "filterAfterOrEqualOperator": string;
83
+ "filterAfterOperator": string;
84
+ "filterBeforeOrEqualOperator": string;
85
+ "filterBeforeOperator": string;
86
+ "filterIsNullOperator": string;
87
+ "filterIsNotNullOperator": string;
88
+ };
89
+ /**
90
+ * @hidden
91
+ */
92
+ export declare const defaultOperators: {
93
+ string: {
94
+ "filterEqOperator": string;
95
+ "filterNotEqOperator": string;
96
+ "filterContainsOperator": string;
97
+ "filterNotContainsOperator": string;
98
+ "filterStartsWithOperator": string;
99
+ "filterEndsWithOperator": string;
100
+ "filterIsNullOperator": string;
101
+ "filterIsNotNullOperator": string;
102
+ "filterIsEmptyOperator": string;
103
+ "filterIsNotEmptyOperator": string;
104
+ };
105
+ number: {
106
+ "filterEqOperator": string;
107
+ "filterNotEqOperator": string;
108
+ "filterGteOperator": string;
109
+ "filterGtOperator": string;
110
+ "filterLteOperator": string;
111
+ "filterLtOperator": string;
112
+ "filterIsNullOperator": string;
113
+ "filterIsNotNullOperator": string;
114
+ };
115
+ date: {
116
+ "filterEqOperator": string;
117
+ "filterNotEqOperator": string;
118
+ "filterAfterOrEqualOperator": string;
119
+ "filterAfterOperator": string;
120
+ "filterBeforeOrEqualOperator": string;
121
+ "filterBeforeOperator": string;
122
+ "filterIsNullOperator": string;
123
+ "filterIsNotNullOperator": string;
124
+ };
125
+ };
126
+ /**
127
+ * @hidden
128
+ */
129
+ export declare const logicOperators: {
130
+ "filterAndLogic": string;
131
+ "filterOrLogic": string;
132
+ };
133
+ /**
134
+ * @hidden
135
+ */
136
+ export declare type Direction = 'rtl' | 'ltr';
137
+ /**
138
+ * @hidden
139
+ */
140
+ export declare const isFilterEditor: (editorType: string) => boolean;
@@ -0,0 +1,129 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export const nullOperators = ["isnull", "isnotnull", "isempty", "isnotempty"];
9
+ /**
10
+ * @hidden
11
+ */
12
+ export const numericOperators = [
13
+ { text: "Is equal to", value: "eq" },
14
+ { text: "Not equal to", value: "neq" },
15
+ { text: "Greater than or equal to", value: "gte" },
16
+ { text: "Greater than", value: "gt" },
17
+ { text: "Less than or equal to", value: "lte" },
18
+ { text: "Less than", value: "lt" },
19
+ { text: "Is null", value: "isnull" },
20
+ { text: "Is not null", value: "isnotnull" }
21
+ ];
22
+ /**
23
+ * @hidden
24
+ */
25
+ export const stringOperators = [
26
+ { text: "Is equal to", value: "eq" },
27
+ { text: "Not equal to", value: "neq" },
28
+ { text: "Contains", value: "contains" },
29
+ { text: "Does not contain", value: "doesnotcontain" },
30
+ { text: "Starts with", value: "startswith" },
31
+ { text: "Ends with", value: "endswith" },
32
+ { text: "Is null", value: "isnull" },
33
+ { text: "Is not null", value: "isnotnull" },
34
+ { text: "Is empty", value: "isempty" },
35
+ { text: "Is not empty", value: "isnotempty" }
36
+ ];
37
+ /**
38
+ * @hidden
39
+ */
40
+ export const booleanOperators = [
41
+ { text: "Is equal to", value: "eq" },
42
+ { text: "Is not equal to", value: "neq" }
43
+ ];
44
+ /**
45
+ * @hidden
46
+ */
47
+ export const dateOperators = [
48
+ { text: "Is equal to", value: "eq" },
49
+ { text: "Not equal to", value: "neq" },
50
+ { text: "Greater than or equal to", value: "gte" },
51
+ { text: "Greater than", value: "gt" },
52
+ { text: "Less than or equal to", value: "lte" },
53
+ { text: "Less than", value: "lt" },
54
+ { text: "Is null", value: "isnull" },
55
+ { text: "Is not null", value: "isnotnull" }
56
+ ];
57
+ /**
58
+ * @hidden
59
+ */
60
+ export const isArray = (value) => Array.isArray(value);
61
+ /**
62
+ * @hidden
63
+ */
64
+ export const getKeyByValue = (object, value) => {
65
+ return Object.keys(object).find(key => object[key] === value);
66
+ };
67
+ /**
68
+ * @hidden
69
+ */
70
+ export const defaultStringOperators = {
71
+ "filterEqOperator": "eq",
72
+ "filterNotEqOperator": "neq",
73
+ "filterContainsOperator": "contains",
74
+ "filterNotContainsOperator": "doesnotcontain",
75
+ "filterStartsWithOperator": "startswith",
76
+ "filterEndsWithOperator": "endswith",
77
+ "filterIsNullOperator": "isnull",
78
+ "filterIsNotNullOperator": "isnotnull",
79
+ "filterIsEmptyOperator": "isempty",
80
+ "filterIsNotEmptyOperator": "isnotempty"
81
+ };
82
+ /**
83
+ * @hidden
84
+ */
85
+ export const defaultNumericOperators = {
86
+ "filterEqOperator": "eq",
87
+ "filterNotEqOperator": "neq",
88
+ "filterGteOperator": "gte",
89
+ "filterGtOperator": "gt",
90
+ "filterLteOperator": "lte",
91
+ "filterLtOperator": "lt",
92
+ "filterIsNullOperator": "isnull",
93
+ "filterIsNotNullOperator": "isnotnull"
94
+ };
95
+ /**
96
+ * @hidden
97
+ */
98
+ export const defaultDateOperators = {
99
+ "filterEqOperator": "eq",
100
+ "filterNotEqOperator": "neq",
101
+ "filterAfterOrEqualOperator": "gte",
102
+ "filterAfterOperator": "gt",
103
+ "filterBeforeOrEqualOperator": "lte",
104
+ "filterBeforeOperator": "lt",
105
+ "filterIsNullOperator": "isnull",
106
+ "filterIsNotNullOperator": "isnotnull"
107
+ };
108
+ /**
109
+ * @hidden
110
+ */
111
+ export const defaultOperators = {
112
+ string: defaultStringOperators,
113
+ number: defaultNumericOperators,
114
+ date: defaultDateOperators
115
+ };
116
+ /**
117
+ * @hidden
118
+ */
119
+ export const logicOperators = {
120
+ "filterAndLogic": 'and',
121
+ "filterOrLogic": 'or'
122
+ };
123
+ /**
124
+ * @hidden
125
+ */
126
+ export const isFilterEditor = (editorType) => {
127
+ const supportedEditorTypes = ['string', 'number', 'boolean', 'date'];
128
+ return supportedEditorTypes.indexOf(editorType) >= 0;
129
+ };