@kopexa/filter 0.0.25 → 0.0.26

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 (51) hide show
  1. package/dist/chunk-6TRAIAKS.mjs +178 -0
  2. package/dist/chunk-I7WCYMXD.mjs +133 -0
  3. package/dist/{chunk-45QJL74L.mjs → chunk-JSRGUDCG.mjs} +49 -24
  4. package/dist/chunk-NUDUXOHP.mjs +243 -0
  5. package/dist/chunk-ON2UFJ3Y.mjs +32 -0
  6. package/dist/{chunk-RFCPJLIQ.mjs → chunk-SJXRD3RO.mjs} +6 -1
  7. package/dist/{chunk-EF4VI36D.mjs → chunk-UBTUCPOG.mjs} +1 -1
  8. package/dist/{chunk-3ZBNWXRA.mjs → chunk-WD7YU6IN.mjs} +17 -14
  9. package/dist/chunk-XCWKWXBW.mjs +602 -0
  10. package/dist/{chunk-URDCG5NI.mjs → chunk-YTYOFT33.mjs} +52 -0
  11. package/dist/filter-active.js +108 -28
  12. package/dist/filter-active.mjs +4 -4
  13. package/dist/filter-bar-internal.d.mts +25 -0
  14. package/dist/filter-bar-internal.d.ts +25 -0
  15. package/dist/filter-bar-internal.js +648 -0
  16. package/dist/filter-bar-internal.mjs +11 -0
  17. package/dist/filter-bar-messages.d.mts +124 -0
  18. package/dist/filter-bar-messages.d.ts +124 -0
  19. package/dist/filter-bar-messages.js +156 -0
  20. package/dist/filter-bar-messages.mjs +7 -0
  21. package/dist/filter-bar-types.d.mts +112 -0
  22. package/dist/filter-bar-types.d.ts +112 -0
  23. package/dist/filter-bar-types.js +56 -0
  24. package/dist/filter-bar-types.mjs +8 -0
  25. package/dist/filter-bar.d.mts +29 -0
  26. package/dist/filter-bar.d.ts +29 -0
  27. package/dist/filter-bar.js +942 -0
  28. package/dist/filter-bar.mjs +11 -0
  29. package/dist/filter-menu.js +161 -1
  30. package/dist/filter-menu.mjs +2 -1
  31. package/dist/filter-trigger.js +52 -0
  32. package/dist/filter-trigger.mjs +2 -2
  33. package/dist/filter-value-editor.js +65 -10
  34. package/dist/filter-value-editor.mjs +3 -3
  35. package/dist/filter.d.mts +6 -0
  36. package/dist/filter.d.ts +6 -0
  37. package/dist/filter.mjs +2 -2
  38. package/dist/index.d.mts +4 -0
  39. package/dist/index.d.ts +4 -0
  40. package/dist/index.js +1263 -31
  41. package/dist/index.mjs +28 -14
  42. package/dist/messages.d.mts +50 -0
  43. package/dist/messages.d.ts +50 -0
  44. package/dist/messages.js +52 -0
  45. package/dist/messages.mjs +1 -1
  46. package/dist/search-filter-bar.d.mts +44 -0
  47. package/dist/search-filter-bar.d.ts +44 -0
  48. package/dist/search-filter-bar.js +1007 -0
  49. package/dist/search-filter-bar.mjs +11 -0
  50. package/package.json +19 -16
  51. package/dist/{chunk-SH7DBK54.mjs → chunk-LWDVRMCI.mjs} +3 -3
@@ -0,0 +1,124 @@
1
+ declare const filterBarMessages: {
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_results: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ search_placeholder: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ select_value: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ enter_value: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ apply: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ cancel: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ op_equals: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ op_not_equals: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
52
+ op_contains: {
53
+ id: string;
54
+ defaultMessage: string;
55
+ description: string;
56
+ };
57
+ op_not_contains: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
62
+ op_starts_with: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ op_ends_with: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ op_gt: {
73
+ id: string;
74
+ defaultMessage: string;
75
+ description: string;
76
+ };
77
+ op_lt: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ description: string;
81
+ };
82
+ op_gte: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ description: string;
86
+ };
87
+ op_lte: {
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
+ remove_filter: {
103
+ id: string;
104
+ defaultMessage: string;
105
+ description: string;
106
+ };
107
+ operator_label: {
108
+ id: string;
109
+ defaultMessage: string;
110
+ description: string;
111
+ };
112
+ value_label: {
113
+ id: string;
114
+ defaultMessage: string;
115
+ description: string;
116
+ };
117
+ selected_count: {
118
+ id: string;
119
+ defaultMessage: string;
120
+ description: string;
121
+ };
122
+ };
123
+
124
+ export { filterBarMessages };
@@ -0,0 +1,124 @@
1
+ declare const filterBarMessages: {
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_results: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ search_placeholder: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ select_value: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ enter_value: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ apply: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ cancel: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ op_equals: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ op_not_equals: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
52
+ op_contains: {
53
+ id: string;
54
+ defaultMessage: string;
55
+ description: string;
56
+ };
57
+ op_not_contains: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
62
+ op_starts_with: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ op_ends_with: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ op_gt: {
73
+ id: string;
74
+ defaultMessage: string;
75
+ description: string;
76
+ };
77
+ op_lt: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ description: string;
81
+ };
82
+ op_gte: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ description: string;
86
+ };
87
+ op_lte: {
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
+ remove_filter: {
103
+ id: string;
104
+ defaultMessage: string;
105
+ description: string;
106
+ };
107
+ operator_label: {
108
+ id: string;
109
+ defaultMessage: string;
110
+ description: string;
111
+ };
112
+ value_label: {
113
+ id: string;
114
+ defaultMessage: string;
115
+ description: string;
116
+ };
117
+ selected_count: {
118
+ id: string;
119
+ defaultMessage: string;
120
+ description: string;
121
+ };
122
+ };
123
+
124
+ export { filterBarMessages };
@@ -0,0 +1,156 @@
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/filter-bar-messages.ts
22
+ var filter_bar_messages_exports = {};
23
+ __export(filter_bar_messages_exports, {
24
+ filterBarMessages: () => filterBarMessages
25
+ });
26
+ module.exports = __toCommonJS(filter_bar_messages_exports);
27
+ var import_i18n = require("@kopexa/i18n");
28
+ var filterBarMessages = (0, import_i18n.defineMessages)({
29
+ add_filter: {
30
+ id: "filter-bar.add_filter",
31
+ defaultMessage: "Add Filter",
32
+ description: "Button text for adding a new filter"
33
+ },
34
+ clear_all: {
35
+ id: "filter-bar.clear_all",
36
+ defaultMessage: "Clear all",
37
+ description: "Button text for clearing all filters"
38
+ },
39
+ no_results: {
40
+ id: "filter-bar.no_results",
41
+ defaultMessage: "No results found",
42
+ description: "Message when search returns no results"
43
+ },
44
+ search_placeholder: {
45
+ id: "filter-bar.search_placeholder",
46
+ defaultMessage: "Search...",
47
+ description: "Placeholder for search input"
48
+ },
49
+ select_value: {
50
+ id: "filter-bar.select_value",
51
+ defaultMessage: "Select value...",
52
+ description: "Placeholder for value selection"
53
+ },
54
+ enter_value: {
55
+ id: "filter-bar.enter_value",
56
+ defaultMessage: "Enter value...",
57
+ description: "Placeholder for value input"
58
+ },
59
+ apply: {
60
+ id: "filter-bar.apply",
61
+ defaultMessage: "Apply",
62
+ description: "Button text for applying a filter value"
63
+ },
64
+ cancel: {
65
+ id: "filter-bar.cancel",
66
+ defaultMessage: "Cancel",
67
+ description: "Button text for canceling"
68
+ },
69
+ // Operators
70
+ op_equals: {
71
+ id: "filter-bar.operator.equals",
72
+ defaultMessage: "is",
73
+ description: "Operator: equals"
74
+ },
75
+ op_not_equals: {
76
+ id: "filter-bar.operator.not_equals",
77
+ defaultMessage: "is not",
78
+ description: "Operator: not equals"
79
+ },
80
+ op_contains: {
81
+ id: "filter-bar.operator.contains",
82
+ defaultMessage: "contains",
83
+ description: "Operator: contains"
84
+ },
85
+ op_not_contains: {
86
+ id: "filter-bar.operator.not_contains",
87
+ defaultMessage: "does not contain",
88
+ description: "Operator: does not contain"
89
+ },
90
+ op_starts_with: {
91
+ id: "filter-bar.operator.starts_with",
92
+ defaultMessage: "starts with",
93
+ description: "Operator: starts with"
94
+ },
95
+ op_ends_with: {
96
+ id: "filter-bar.operator.ends_with",
97
+ defaultMessage: "ends with",
98
+ description: "Operator: ends with"
99
+ },
100
+ op_gt: {
101
+ id: "filter-bar.operator.gt",
102
+ defaultMessage: "greater than",
103
+ description: "Operator: greater than"
104
+ },
105
+ op_lt: {
106
+ id: "filter-bar.operator.lt",
107
+ defaultMessage: "less than",
108
+ description: "Operator: less than"
109
+ },
110
+ op_gte: {
111
+ id: "filter-bar.operator.gte",
112
+ defaultMessage: "greater or equal",
113
+ description: "Operator: greater than or equal"
114
+ },
115
+ op_lte: {
116
+ id: "filter-bar.operator.lte",
117
+ defaultMessage: "less or equal",
118
+ description: "Operator: less than or equal"
119
+ },
120
+ op_is_empty: {
121
+ id: "filter-bar.operator.is_empty",
122
+ defaultMessage: "is empty",
123
+ description: "Operator: is empty"
124
+ },
125
+ op_is_not_empty: {
126
+ id: "filter-bar.operator.is_not_empty",
127
+ defaultMessage: "is not empty",
128
+ description: "Operator: is not empty"
129
+ },
130
+ // Accessibility
131
+ remove_filter: {
132
+ id: "filter-bar.remove_filter",
133
+ defaultMessage: "Remove {field} filter",
134
+ description: "Accessibility label for remove filter button"
135
+ },
136
+ operator_label: {
137
+ id: "filter-bar.operator_label",
138
+ defaultMessage: "{field} operator",
139
+ description: "Accessibility label for operator dropdown"
140
+ },
141
+ value_label: {
142
+ id: "filter-bar.value_label",
143
+ defaultMessage: "{field} value",
144
+ description: "Accessibility label for value editor"
145
+ },
146
+ // Multiselect
147
+ selected_count: {
148
+ id: "filter-bar.selected_count",
149
+ defaultMessage: "{count} selected",
150
+ description: "Display text for multiselect with multiple selections"
151
+ }
152
+ });
153
+ // Annotate the CommonJS export names for ESM import in node:
154
+ 0 && (module.exports = {
155
+ filterBarMessages
156
+ });
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ filterBarMessages
4
+ } from "./chunk-I7WCYMXD.mjs";
5
+ export {
6
+ filterBarMessages
7
+ };
@@ -0,0 +1,112 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ /**
4
+ * Supported field types for FilterBar
5
+ */
6
+ type FilterBarFieldType = "select" | "multiselect" | "text" | "number" | "custom";
7
+ /**
8
+ * Supported operators for FilterBar
9
+ */
10
+ type FilterBarOperator = "equals" | "not_equals" | "contains" | "not_contains" | "starts_with" | "ends_with" | "gt" | "lt" | "gte" | "lte" | "is_empty" | "is_not_empty";
11
+ /**
12
+ * A single option for select/multiselect fields
13
+ */
14
+ interface FilterBarOption {
15
+ label: string;
16
+ value: string;
17
+ icon?: ReactNode;
18
+ description?: string;
19
+ }
20
+ /**
21
+ * Validation configuration for a field
22
+ */
23
+ interface FilterBarValidation {
24
+ /** Regex pattern string */
25
+ pattern?: string;
26
+ /** Error message when validation fails */
27
+ message?: string;
28
+ /** Custom validation function */
29
+ validate?: (value: FilterBarInputValue) => boolean | string;
30
+ }
31
+ /**
32
+ * Configuration for a filter field
33
+ */
34
+ interface FilterBarFieldConfig {
35
+ /** Unique identifier for the field */
36
+ id: string;
37
+ /** Display label */
38
+ label: string;
39
+ /** Icon to display */
40
+ icon?: ReactNode;
41
+ /** Field type */
42
+ type: FilterBarFieldType;
43
+ /** Available options for select/multiselect */
44
+ options?: FilterBarOption[];
45
+ /** Available operators (defaults based on type) */
46
+ operators?: FilterBarOperator[];
47
+ /** Default operator */
48
+ defaultOperator?: FilterBarOperator;
49
+ /** Placeholder text */
50
+ placeholder?: string;
51
+ /** Whether the field is disabled */
52
+ disabled?: boolean;
53
+ /** Grouping label */
54
+ group?: string;
55
+ /** Min value for number fields */
56
+ min?: number;
57
+ /** Max value for number fields */
58
+ max?: number;
59
+ /** Step value for number fields */
60
+ step?: number;
61
+ /** Validation configuration */
62
+ validation?: FilterBarValidation;
63
+ /** Custom renderer for the editor */
64
+ customRenderer?: (props: FilterBarCustomRendererProps) => ReactNode;
65
+ }
66
+ /**
67
+ * Props passed to custom renderers
68
+ */
69
+ interface FilterBarCustomRendererProps {
70
+ field: FilterBarFieldConfig;
71
+ value: FilterBarInputValue;
72
+ onChange: (value: FilterBarInputValue) => void;
73
+ }
74
+ /**
75
+ * Possible input value types
76
+ */
77
+ type FilterBarInputValue = string | string[] | number | null;
78
+ /**
79
+ * A single active filter value
80
+ */
81
+ interface FilterBarValue {
82
+ /** Unique filter instance ID */
83
+ id: string;
84
+ /** Field ID this filter applies to */
85
+ fieldId: string;
86
+ /** Selected operator */
87
+ operator: FilterBarOperator;
88
+ /** Filter value */
89
+ value: FilterBarInputValue;
90
+ }
91
+ /**
92
+ * Default operators by field type
93
+ */
94
+ declare const DEFAULT_FILTER_BAR_OPERATORS: Record<FilterBarFieldType, FilterBarOperator[]>;
95
+ /**
96
+ * I18n configuration for FilterBar
97
+ */
98
+ interface FilterBarI18nConfig {
99
+ addFilter: string;
100
+ clearAll: string;
101
+ noResults: string;
102
+ searchPlaceholder: string;
103
+ selectValue: string;
104
+ enterValue: string;
105
+ operators: Record<FilterBarOperator, string>;
106
+ validation?: {
107
+ required?: string;
108
+ invalid?: string;
109
+ };
110
+ }
111
+
112
+ export { DEFAULT_FILTER_BAR_OPERATORS, type FilterBarCustomRendererProps, type FilterBarFieldConfig, type FilterBarFieldType, type FilterBarI18nConfig, type FilterBarInputValue, type FilterBarOperator, type FilterBarOption, type FilterBarValidation, type FilterBarValue };
@@ -0,0 +1,112 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ /**
4
+ * Supported field types for FilterBar
5
+ */
6
+ type FilterBarFieldType = "select" | "multiselect" | "text" | "number" | "custom";
7
+ /**
8
+ * Supported operators for FilterBar
9
+ */
10
+ type FilterBarOperator = "equals" | "not_equals" | "contains" | "not_contains" | "starts_with" | "ends_with" | "gt" | "lt" | "gte" | "lte" | "is_empty" | "is_not_empty";
11
+ /**
12
+ * A single option for select/multiselect fields
13
+ */
14
+ interface FilterBarOption {
15
+ label: string;
16
+ value: string;
17
+ icon?: ReactNode;
18
+ description?: string;
19
+ }
20
+ /**
21
+ * Validation configuration for a field
22
+ */
23
+ interface FilterBarValidation {
24
+ /** Regex pattern string */
25
+ pattern?: string;
26
+ /** Error message when validation fails */
27
+ message?: string;
28
+ /** Custom validation function */
29
+ validate?: (value: FilterBarInputValue) => boolean | string;
30
+ }
31
+ /**
32
+ * Configuration for a filter field
33
+ */
34
+ interface FilterBarFieldConfig {
35
+ /** Unique identifier for the field */
36
+ id: string;
37
+ /** Display label */
38
+ label: string;
39
+ /** Icon to display */
40
+ icon?: ReactNode;
41
+ /** Field type */
42
+ type: FilterBarFieldType;
43
+ /** Available options for select/multiselect */
44
+ options?: FilterBarOption[];
45
+ /** Available operators (defaults based on type) */
46
+ operators?: FilterBarOperator[];
47
+ /** Default operator */
48
+ defaultOperator?: FilterBarOperator;
49
+ /** Placeholder text */
50
+ placeholder?: string;
51
+ /** Whether the field is disabled */
52
+ disabled?: boolean;
53
+ /** Grouping label */
54
+ group?: string;
55
+ /** Min value for number fields */
56
+ min?: number;
57
+ /** Max value for number fields */
58
+ max?: number;
59
+ /** Step value for number fields */
60
+ step?: number;
61
+ /** Validation configuration */
62
+ validation?: FilterBarValidation;
63
+ /** Custom renderer for the editor */
64
+ customRenderer?: (props: FilterBarCustomRendererProps) => ReactNode;
65
+ }
66
+ /**
67
+ * Props passed to custom renderers
68
+ */
69
+ interface FilterBarCustomRendererProps {
70
+ field: FilterBarFieldConfig;
71
+ value: FilterBarInputValue;
72
+ onChange: (value: FilterBarInputValue) => void;
73
+ }
74
+ /**
75
+ * Possible input value types
76
+ */
77
+ type FilterBarInputValue = string | string[] | number | null;
78
+ /**
79
+ * A single active filter value
80
+ */
81
+ interface FilterBarValue {
82
+ /** Unique filter instance ID */
83
+ id: string;
84
+ /** Field ID this filter applies to */
85
+ fieldId: string;
86
+ /** Selected operator */
87
+ operator: FilterBarOperator;
88
+ /** Filter value */
89
+ value: FilterBarInputValue;
90
+ }
91
+ /**
92
+ * Default operators by field type
93
+ */
94
+ declare const DEFAULT_FILTER_BAR_OPERATORS: Record<FilterBarFieldType, FilterBarOperator[]>;
95
+ /**
96
+ * I18n configuration for FilterBar
97
+ */
98
+ interface FilterBarI18nConfig {
99
+ addFilter: string;
100
+ clearAll: string;
101
+ noResults: string;
102
+ searchPlaceholder: string;
103
+ selectValue: string;
104
+ enterValue: string;
105
+ operators: Record<FilterBarOperator, string>;
106
+ validation?: {
107
+ required?: string;
108
+ invalid?: string;
109
+ };
110
+ }
111
+
112
+ export { DEFAULT_FILTER_BAR_OPERATORS, type FilterBarCustomRendererProps, type FilterBarFieldConfig, type FilterBarFieldType, type FilterBarI18nConfig, type FilterBarInputValue, type FilterBarOperator, type FilterBarOption, type FilterBarValidation, type FilterBarValue };
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/filter-bar-types.ts
23
+ var filter_bar_types_exports = {};
24
+ __export(filter_bar_types_exports, {
25
+ DEFAULT_FILTER_BAR_OPERATORS: () => DEFAULT_FILTER_BAR_OPERATORS
26
+ });
27
+ module.exports = __toCommonJS(filter_bar_types_exports);
28
+ var DEFAULT_FILTER_BAR_OPERATORS = {
29
+ select: ["equals", "not_equals", "is_empty", "is_not_empty"],
30
+ multiselect: ["equals", "not_equals", "is_empty", "is_not_empty"],
31
+ text: [
32
+ "equals",
33
+ "not_equals",
34
+ "contains",
35
+ "not_contains",
36
+ "starts_with",
37
+ "ends_with",
38
+ "is_empty",
39
+ "is_not_empty"
40
+ ],
41
+ number: [
42
+ "equals",
43
+ "not_equals",
44
+ "gt",
45
+ "lt",
46
+ "gte",
47
+ "lte",
48
+ "is_empty",
49
+ "is_not_empty"
50
+ ],
51
+ custom: ["equals", "not_equals"]
52
+ };
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ DEFAULT_FILTER_BAR_OPERATORS
56
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ DEFAULT_FILTER_BAR_OPERATORS
5
+ } from "./chunk-ON2UFJ3Y.mjs";
6
+ export {
7
+ DEFAULT_FILTER_BAR_OPERATORS
8
+ };