@kopexa/filter 0.0.2
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/LICENSE +201 -0
- package/dist/chunk-3WNAREG6.mjs +29 -0
- package/dist/chunk-63P4ITVP.mjs +263 -0
- package/dist/chunk-7KY2PDNL.mjs +136 -0
- package/dist/chunk-7QP7FRID.mjs +47 -0
- package/dist/chunk-EF4VI36D.mjs +36 -0
- package/dist/chunk-I3Z2T4N2.mjs +14 -0
- package/dist/chunk-PTJ7HZPA.mjs +164 -0
- package/dist/chunk-TBHYZZSX.mjs +139 -0
- package/dist/chunk-URDCG5NI.mjs +111 -0
- package/dist/filter-active.d.mts +13 -0
- package/dist/filter-active.d.ts +13 -0
- package/dist/filter-active.js +538 -0
- package/dist/filter-active.mjs +12 -0
- package/dist/filter-context.d.mts +28 -0
- package/dist/filter-context.d.ts +28 -0
- package/dist/filter-context.js +39 -0
- package/dist/filter-context.mjs +10 -0
- package/dist/filter-i18n.d.mts +20 -0
- package/dist/filter-i18n.d.ts +20 -0
- package/dist/filter-i18n.js +52 -0
- package/dist/filter-i18n.mjs +7 -0
- package/dist/filter-menu.d.mts +65 -0
- package/dist/filter-menu.d.ts +65 -0
- package/dist/filter-menu.js +169 -0
- package/dist/filter-menu.mjs +15 -0
- package/dist/filter-trigger.d.mts +14 -0
- package/dist/filter-trigger.d.ts +14 -0
- package/dist/filter-trigger.js +170 -0
- package/dist/filter-trigger.mjs +10 -0
- package/dist/filter-types.d.mts +60 -0
- package/dist/filter-types.d.ts +60 -0
- package/dist/filter-types.js +72 -0
- package/dist/filter-types.mjs +11 -0
- package/dist/filter-value-editor.d.mts +11 -0
- package/dist/filter-value-editor.d.ts +11 -0
- package/dist/filter-value-editor.js +414 -0
- package/dist/filter-value-editor.mjs +11 -0
- package/dist/filter.d.mts +24 -0
- package/dist/filter.d.ts +24 -0
- package/dist/filter.js +242 -0
- package/dist/filter.mjs +11 -0
- package/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +909 -0
- package/dist/index.mjs +39 -0
- package/dist/messages.d.mts +104 -0
- package/dist/messages.d.ts +104 -0
- package/dist/messages.js +134 -0
- package/dist/messages.mjs +7 -0
- package/package.json +69 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
FilterActive
|
|
4
|
+
} from "./chunk-7KY2PDNL.mjs";
|
|
5
|
+
import {
|
|
6
|
+
FilterGroup,
|
|
7
|
+
FilterItem,
|
|
8
|
+
FilterMenu,
|
|
9
|
+
FilterMenuSeparator
|
|
10
|
+
} from "./chunk-TBHYZZSX.mjs";
|
|
11
|
+
import {
|
|
12
|
+
FilterTrigger
|
|
13
|
+
} from "./chunk-EF4VI36D.mjs";
|
|
14
|
+
import {
|
|
15
|
+
FilterValueEditor
|
|
16
|
+
} from "./chunk-63P4ITVP.mjs";
|
|
17
|
+
import {
|
|
18
|
+
messages
|
|
19
|
+
} from "./chunk-URDCG5NI.mjs";
|
|
20
|
+
import {
|
|
21
|
+
Filter
|
|
22
|
+
} from "./chunk-PTJ7HZPA.mjs";
|
|
23
|
+
import "./chunk-3WNAREG6.mjs";
|
|
24
|
+
import {
|
|
25
|
+
useFilterContext
|
|
26
|
+
} from "./chunk-I3Z2T4N2.mjs";
|
|
27
|
+
import "./chunk-7QP7FRID.mjs";
|
|
28
|
+
export {
|
|
29
|
+
Filter,
|
|
30
|
+
FilterActive,
|
|
31
|
+
FilterGroup,
|
|
32
|
+
FilterItem,
|
|
33
|
+
FilterMenu,
|
|
34
|
+
FilterMenuSeparator,
|
|
35
|
+
FilterTrigger,
|
|
36
|
+
FilterValueEditor,
|
|
37
|
+
messages as filterMessages,
|
|
38
|
+
useFilterContext
|
|
39
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
add_filter: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
clear_all: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
no_fields: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
apply: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
cancel: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
select_value: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
enter_value: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
op_equals: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
op_not_equals: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
op_contains: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
op_not_contains: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
op_starts_with: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
op_ends_with: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
op_gt: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
op_lt: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
op_gte: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
op_lte: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
op_between: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
op_is_empty: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
op_is_not_empty: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export { messages };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
add_filter: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
clear_all: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
no_fields: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
apply: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
cancel: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
select_value: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
enter_value: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
op_equals: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
op_not_equals: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
op_contains: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
op_not_contains: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
op_starts_with: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
op_ends_with: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
op_gt: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
op_lt: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
op_gte: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
op_lte: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
op_between: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
op_is_empty: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
op_is_not_empty: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export { messages };
|
package/dist/messages.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/messages.ts
|
|
22
|
+
var messages_exports = {};
|
|
23
|
+
__export(messages_exports, {
|
|
24
|
+
messages: () => messages
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(messages_exports);
|
|
27
|
+
var import_i18n = require("@kopexa/i18n");
|
|
28
|
+
var messages = (0, import_i18n.defineMessages)({
|
|
29
|
+
add_filter: {
|
|
30
|
+
id: "filter.add_filter",
|
|
31
|
+
defaultMessage: "Add Filter",
|
|
32
|
+
description: "Button text for adding a new filter"
|
|
33
|
+
},
|
|
34
|
+
clear_all: {
|
|
35
|
+
id: "filter.clear_all",
|
|
36
|
+
defaultMessage: "Clear all",
|
|
37
|
+
description: "Button text for clearing all filters"
|
|
38
|
+
},
|
|
39
|
+
no_fields: {
|
|
40
|
+
id: "filter.no_fields",
|
|
41
|
+
defaultMessage: "No filter options available",
|
|
42
|
+
description: "Message when no filter fields are configured"
|
|
43
|
+
},
|
|
44
|
+
apply: {
|
|
45
|
+
id: "filter.apply",
|
|
46
|
+
defaultMessage: "Apply",
|
|
47
|
+
description: "Button text for applying a filter value"
|
|
48
|
+
},
|
|
49
|
+
cancel: {
|
|
50
|
+
id: "filter.cancel",
|
|
51
|
+
defaultMessage: "Cancel",
|
|
52
|
+
description: "Button text for canceling filter editing"
|
|
53
|
+
},
|
|
54
|
+
select_value: {
|
|
55
|
+
id: "filter.select_value",
|
|
56
|
+
defaultMessage: "Select value...",
|
|
57
|
+
description: "Placeholder for value selection"
|
|
58
|
+
},
|
|
59
|
+
enter_value: {
|
|
60
|
+
id: "filter.enter_value",
|
|
61
|
+
defaultMessage: "Enter value...",
|
|
62
|
+
description: "Placeholder for value input"
|
|
63
|
+
},
|
|
64
|
+
// Operators
|
|
65
|
+
op_equals: {
|
|
66
|
+
id: "filter.operator.equals",
|
|
67
|
+
defaultMessage: "is",
|
|
68
|
+
description: "Operator: equals"
|
|
69
|
+
},
|
|
70
|
+
op_not_equals: {
|
|
71
|
+
id: "filter.operator.not_equals",
|
|
72
|
+
defaultMessage: "is not",
|
|
73
|
+
description: "Operator: not equals"
|
|
74
|
+
},
|
|
75
|
+
op_contains: {
|
|
76
|
+
id: "filter.operator.contains",
|
|
77
|
+
defaultMessage: "contains",
|
|
78
|
+
description: "Operator: contains"
|
|
79
|
+
},
|
|
80
|
+
op_not_contains: {
|
|
81
|
+
id: "filter.operator.not_contains",
|
|
82
|
+
defaultMessage: "does not contain",
|
|
83
|
+
description: "Operator: does not contain"
|
|
84
|
+
},
|
|
85
|
+
op_starts_with: {
|
|
86
|
+
id: "filter.operator.starts_with",
|
|
87
|
+
defaultMessage: "starts with",
|
|
88
|
+
description: "Operator: starts with"
|
|
89
|
+
},
|
|
90
|
+
op_ends_with: {
|
|
91
|
+
id: "filter.operator.ends_with",
|
|
92
|
+
defaultMessage: "ends with",
|
|
93
|
+
description: "Operator: ends with"
|
|
94
|
+
},
|
|
95
|
+
op_gt: {
|
|
96
|
+
id: "filter.operator.gt",
|
|
97
|
+
defaultMessage: "greater than",
|
|
98
|
+
description: "Operator: greater than"
|
|
99
|
+
},
|
|
100
|
+
op_lt: {
|
|
101
|
+
id: "filter.operator.lt",
|
|
102
|
+
defaultMessage: "less than",
|
|
103
|
+
description: "Operator: less than"
|
|
104
|
+
},
|
|
105
|
+
op_gte: {
|
|
106
|
+
id: "filter.operator.gte",
|
|
107
|
+
defaultMessage: "greater or equal",
|
|
108
|
+
description: "Operator: greater than or equal"
|
|
109
|
+
},
|
|
110
|
+
op_lte: {
|
|
111
|
+
id: "filter.operator.lte",
|
|
112
|
+
defaultMessage: "less or equal",
|
|
113
|
+
description: "Operator: less than or equal"
|
|
114
|
+
},
|
|
115
|
+
op_between: {
|
|
116
|
+
id: "filter.operator.between",
|
|
117
|
+
defaultMessage: "between",
|
|
118
|
+
description: "Operator: between"
|
|
119
|
+
},
|
|
120
|
+
op_is_empty: {
|
|
121
|
+
id: "filter.operator.is_empty",
|
|
122
|
+
defaultMessage: "is empty",
|
|
123
|
+
description: "Operator: is empty"
|
|
124
|
+
},
|
|
125
|
+
op_is_not_empty: {
|
|
126
|
+
id: "filter.operator.is_not_empty",
|
|
127
|
+
defaultMessage: "is not empty",
|
|
128
|
+
description: "Operator: is not empty"
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
132
|
+
0 && (module.exports = {
|
|
133
|
+
messages
|
|
134
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kopexa/filter",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "A filter component for building complex filtering interfaces",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"filter",
|
|
7
|
+
"filters",
|
|
8
|
+
"search",
|
|
9
|
+
"query"
|
|
10
|
+
],
|
|
11
|
+
"author": "Kopexa <hello@kopexa.com>",
|
|
12
|
+
"homepage": "https://kopexa.com",
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
|
+
"main": "dist/index.js",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/kopexa-grc/sight.git",
|
|
25
|
+
"directory": "packages/components/filter"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/kopexa-grc/sight/issues"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": ">=19.0.0-rc.0",
|
|
32
|
+
"react-dom": ">=19.0.0-rc.0",
|
|
33
|
+
"@kopexa/theme": "17.6.0"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@kopexa/react-utils": "17.0.12",
|
|
37
|
+
"@kopexa/shared-utils": "17.0.12",
|
|
38
|
+
"@kopexa/use-controllable-state": "17.0.12",
|
|
39
|
+
"@kopexa/i18n": "17.1.0",
|
|
40
|
+
"@kopexa/icons": "17.2.0",
|
|
41
|
+
"@kopexa/select": "17.0.12",
|
|
42
|
+
"@kopexa/combobox": "17.1.1",
|
|
43
|
+
"@kopexa/input": "17.0.12",
|
|
44
|
+
"@kopexa/calendar": "17.0.12",
|
|
45
|
+
"@kopexa/popover": "17.0.12",
|
|
46
|
+
"@kopexa/button": "17.0.12",
|
|
47
|
+
"@kopexa/dropdown-menu": "17.0.12",
|
|
48
|
+
"@kopexa/checkbox": "17.0.12"
|
|
49
|
+
},
|
|
50
|
+
"clean-package": "../../../clean-package.config.json",
|
|
51
|
+
"module": "dist/index.mjs",
|
|
52
|
+
"types": "dist/index.d.ts",
|
|
53
|
+
"exports": {
|
|
54
|
+
".": {
|
|
55
|
+
"types": "./dist/index.d.ts",
|
|
56
|
+
"import": "./dist/index.mjs",
|
|
57
|
+
"require": "./dist/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./package.json": "./package.json"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsup src --dts",
|
|
63
|
+
"build:fast": "tsup src",
|
|
64
|
+
"dev": "pnpm build:fast --watch",
|
|
65
|
+
"clean": "rimraf dist .turbo",
|
|
66
|
+
"typecheck": "tsc --noEmit",
|
|
67
|
+
"i18n:extract": "formatjs extract \"src/**/*.{ts,tsx}\" --ignore \"**/*.test.*\" \"**/*.stories.*\" --format simple --out-file ../../core/i18n/tmp/$npm_package_name.en.json"
|
|
68
|
+
}
|
|
69
|
+
}
|