@limetech/lime-crm-building-blocks 1.99.0 → 1.100.1
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/CHANGELOG.md +14 -0
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +52 -216
- package/dist/cjs/{limebb-limetype-field_2.cjs.entry.js → limebb-lime-query-filter-builder_3.cjs.entry.js} +72 -1
- package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +1 -1
- package/dist/cjs/{limebb-lime-query-filter-group_4.cjs.entry.js → limebb-lime-query-filter-group_3.cjs.entry.js} +5 -231
- package/dist/cjs/limebb-live-docs-info.cjs.entry.js +2 -2
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +2 -2
- package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +3 -3
- package/dist/cjs/limebb-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +2 -2
- package/dist/cjs/limebb-property-selector.cjs.entry.js +234 -0
- package/dist/cjs/limebb-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/limebb-trend-indicator.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-builder.css +5 -0
- package/dist/collection/components/lime-query-builder/expressions/{lime-query-filter-and.js → lime-query-filter-builder.js} +59 -83
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +1 -1
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.js +1 -1
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +1 -1
- package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.js +7 -7
- package/dist/collection/components/lime-query-builder/lime-query-builder.js +9 -39
- package/dist/collection/components/lime-query-builder/lime-query-validation.js +46 -19
- package/dist/collection/components/lime-query-builder/lime-query.types.js +1 -57
- package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +1 -1
- package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
- package/dist/collection/components/locale-picker/locale-picker.js +1 -1
- package/dist/collection/components/notification-list/notification-item/notification-item.js +1 -1
- package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +2 -2
- package/dist/collection/components/summary-popover/summary-popover.js +3 -3
- package/dist/collection/components/text-editor/mention-group-counter.js +2 -2
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/trend-indicator/trend-indicator.js +1 -1
- package/dist/components/lime-query-filter-builder.js +129 -0
- package/dist/components/lime-query-filter-comparison.js +1 -1
- package/dist/components/lime-query-filter-expression.js +2 -2
- package/dist/components/lime-query-value-input.js +2 -2
- package/dist/components/limebb-lime-query-builder.js +60 -218
- package/dist/components/limebb-lime-query-filter-builder.d.ts +11 -0
- package/dist/components/limebb-lime-query-filter-builder.js +6 -0
- package/dist/components/limebb-locale-picker.js +1 -1
- package/dist/components/limebb-mention-group-counter.js +2 -2
- package/dist/components/limebb-percentage-visualizer.js +2 -2
- package/dist/components/limebb-text-editor.js +1 -1
- package/dist/components/limebb-trend-indicator.js +1 -1
- package/dist/components/limetype-field.js +1 -1
- package/dist/components/live-docs-info.js +2 -2
- package/dist/components/notification-item.js +1 -1
- package/dist/components/summary-popover.js +3 -3
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/limebb-lime-query-builder.entry.js +53 -217
- package/dist/esm/{limebb-limetype-field_2.entry.js → limebb-lime-query-filter-builder_3.entry.js} +73 -3
- package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +1 -1
- package/dist/esm/{limebb-lime-query-filter-group_4.entry.js → limebb-lime-query-filter-group_3.entry.js} +7 -232
- package/dist/esm/limebb-live-docs-info.entry.js +2 -2
- package/dist/esm/limebb-locale-picker.entry.js +1 -1
- package/dist/esm/limebb-mention-group-counter.entry.js +2 -2
- package/dist/esm/limebb-navigation-button_2.entry.js +3 -3
- package/dist/esm/limebb-notification-item.entry.js +1 -1
- package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
- package/dist/esm/limebb-property-selector.entry.js +230 -0
- package/dist/esm/limebb-text-editor.entry.js +1 -1
- package/dist/esm/limebb-trend-indicator.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-b9b954d9.entry.js → p-1034b4a5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-93cadc1e.entry.js → p-2048ac67.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-323c49bc.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-631ca5a5.entry.js → p-58782467.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-aa646df7.entry.js → p-6aa216ec.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9cac4de2.entry.js → p-76d81eee.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e8946134.entry.js → p-79b8b09b.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-569c86b5.entry.js → p-8581245a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-89a6c396.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-36ea13c0.entry.js → p-8fb2e192.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3122ea05.entry.js → p-b57dafef.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-f22b66f6.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-f79e354b.entry.js +1 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-builder.d.ts +50 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-value-input.d.ts +2 -3
- package/dist/types/components/lime-query-builder/lime-query-builder.d.ts +1 -6
- package/dist/types/components/lime-query-builder/lime-query.types.d.ts +0 -72
- package/dist/types/components.d.ts +58 -198
- package/package.json +1 -1
- package/dist/cjs/limebb-lime-query-filter-and.cjs.entry.js +0 -80
- package/dist/cjs/limebb-lime-query-filter-or.cjs.entry.js +0 -68
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-and.css +0 -121
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.css +0 -123
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.js +0 -237
- package/dist/collection/components/lime-query-builder/filter-conversion.js +0 -255
- package/dist/components/limebb-lime-query-filter-and.d.ts +0 -11
- package/dist/components/limebb-lime-query-filter-and.js +0 -135
- package/dist/components/limebb-lime-query-filter-or.d.ts +0 -11
- package/dist/components/limebb-lime-query-filter-or.js +0 -123
- package/dist/esm/limebb-lime-query-filter-and.entry.js +0 -76
- package/dist/esm/limebb-lime-query-filter-or.entry.js +0 -64
- package/dist/lime-crm-building-blocks/p-03accd53.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-4715210d.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-5f7644b5.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-67dbaa4c.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-91732502.entry.js +0 -1
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-and.d.ts +0 -57
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-or.d.ts +0 -56
- package/dist/types/components/lime-query-builder/filter-conversion.d.ts +0 -31
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { LIME_QUERY_OPERATORS, } from "./lime-query.types";
|
|
2
|
-
/**
|
|
3
|
-
* Convert UI filter representation to Lime Query filter format
|
|
4
|
-
* @param filter
|
|
5
|
-
*/
|
|
6
|
-
export function guiFilterToLimeQuery(filter) {
|
|
7
|
-
if (filter.filter_type === '') {
|
|
8
|
-
return undefined;
|
|
9
|
-
}
|
|
10
|
-
if (filter.filter_type === 'comparison') {
|
|
11
|
-
return {
|
|
12
|
-
key: filter.property,
|
|
13
|
-
op: filter.operator,
|
|
14
|
-
exp: filter.value,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
if (filter.filter_type === 'AND') {
|
|
18
|
-
const expressions = filter.expressions
|
|
19
|
-
.map(guiFilterToLimeQuery)
|
|
20
|
-
.filter((f) => f !== undefined);
|
|
21
|
-
if (expressions.length === 0) {
|
|
22
|
-
return undefined;
|
|
23
|
-
}
|
|
24
|
-
if (expressions.length === 1) {
|
|
25
|
-
return expressions[0];
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
op: 'AND',
|
|
29
|
-
exp: expressions,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
if (filter.filter_type === 'OR') {
|
|
33
|
-
const expressions = filter.expressions
|
|
34
|
-
.map(guiFilterToLimeQuery)
|
|
35
|
-
.filter((f) => f !== undefined);
|
|
36
|
-
if (expressions.length === 0) {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
if (expressions.length === 1) {
|
|
40
|
-
return expressions[0];
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
op: 'OR',
|
|
44
|
-
exp: expressions,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
if (filter.filter_type === 'NOT') {
|
|
48
|
-
const innerFilter = guiFilterToLimeQuery(filter.expression);
|
|
49
|
-
if (innerFilter) {
|
|
50
|
-
return {
|
|
51
|
-
op: '!',
|
|
52
|
-
exp: innerFilter,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Validate and convert a FilterExpression (comparison filter)
|
|
60
|
-
* @param filter
|
|
61
|
-
*/
|
|
62
|
-
function validateAndConvertFilterExpression(filter) {
|
|
63
|
-
// Validate required properties exist
|
|
64
|
-
if (!('op' in filter) || !('exp' in filter)) {
|
|
65
|
-
throw new Error('Invalid filter: comparison must have key, op, and exp properties');
|
|
66
|
-
}
|
|
67
|
-
// Validate operator is supported
|
|
68
|
-
const supportedOps = LIME_QUERY_OPERATORS.map((o) => o.value);
|
|
69
|
-
if (!supportedOps.includes(filter.op)) {
|
|
70
|
-
throw new Error(`Unsupported filter operator: ${filter.op}`);
|
|
71
|
-
}
|
|
72
|
-
// Check for unexpected properties
|
|
73
|
-
// Note: 'type' property is allowed for filter references
|
|
74
|
-
const knownProps = new Set(['key', 'op', 'exp', 'type']);
|
|
75
|
-
const unexpectedProps = Object.keys(filter).filter((k) => !knownProps.has(k));
|
|
76
|
-
if (unexpectedProps.length > 0) {
|
|
77
|
-
throw new Error(`Unexpected properties in filter comparison: ${unexpectedProps.join(', ')}`);
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
filter_type: 'comparison',
|
|
81
|
-
property: filter.key,
|
|
82
|
-
operator: filter.op,
|
|
83
|
-
value: filter.exp,
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Validate and convert a FilterGroup (AND/OR/NOT filter)
|
|
88
|
-
* @param filter
|
|
89
|
-
*/
|
|
90
|
-
function validateAndConvertFilterGroup(filter) {
|
|
91
|
-
// Validate it has 'op' property
|
|
92
|
-
if (!('op' in filter)) {
|
|
93
|
-
throw new Error('Invalid filter: filter group must have op property');
|
|
94
|
-
}
|
|
95
|
-
// Validate it has 'exp' property
|
|
96
|
-
if (!('exp' in filter)) {
|
|
97
|
-
throw new Error('Invalid filter: filter group must have exp property');
|
|
98
|
-
}
|
|
99
|
-
// Check for unexpected properties in filter groups
|
|
100
|
-
const knownGroupProps = new Set(['op', 'exp']);
|
|
101
|
-
const unexpectedGroupProps = Object.keys(filter).filter((k) => !knownGroupProps.has(k));
|
|
102
|
-
if (unexpectedGroupProps.length > 0) {
|
|
103
|
-
throw new Error(`Unexpected properties in filter group: ${unexpectedGroupProps.join(', ')}`);
|
|
104
|
-
}
|
|
105
|
-
if (filter.op === '!') {
|
|
106
|
-
// NOT filter: exp should be a single expression (not array)
|
|
107
|
-
if (Array.isArray(filter.exp)) {
|
|
108
|
-
throw new TypeError('Invalid NOT filter: exp should be a single expression, not an array');
|
|
109
|
-
}
|
|
110
|
-
return {
|
|
111
|
-
filter_type: 'NOT',
|
|
112
|
-
expression: limeQueryToGuiFilter(filter.exp),
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
if (filter.op === 'AND') {
|
|
116
|
-
// AND filter: exp should be an array
|
|
117
|
-
if (!Array.isArray(filter.exp)) {
|
|
118
|
-
throw new TypeError('Invalid AND filter: exp must be an array');
|
|
119
|
-
}
|
|
120
|
-
return {
|
|
121
|
-
filter_type: 'AND',
|
|
122
|
-
expressions: filter.exp.map(limeQueryToGuiFilter),
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
if (filter.op === 'OR') {
|
|
126
|
-
// OR filter: exp should be an array
|
|
127
|
-
if (!Array.isArray(filter.exp)) {
|
|
128
|
-
throw new TypeError('Invalid OR filter: exp must be an array');
|
|
129
|
-
}
|
|
130
|
-
return {
|
|
131
|
-
filter_type: 'OR',
|
|
132
|
-
expressions: filter.exp.map(limeQueryToGuiFilter),
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
// If we reach here, the operator is unsupported
|
|
136
|
-
throw new Error(`Unsupported filter operator: ${filter.op}`);
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Convert Lime Query filter to UI filter representation
|
|
140
|
-
* Throws errors for unsupported filter structures
|
|
141
|
-
* @param filter
|
|
142
|
-
*/
|
|
143
|
-
export function limeQueryToGuiFilter(filter) {
|
|
144
|
-
if (!filter) {
|
|
145
|
-
// Return empty AND instead of missing expression
|
|
146
|
-
// This ensures users see the "Add a condition" button
|
|
147
|
-
return {
|
|
148
|
-
filter_type: 'AND',
|
|
149
|
-
expressions: [],
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
// Check if it's a FilterExpression (has 'key' property)
|
|
153
|
-
if ('key' in filter) {
|
|
154
|
-
return validateAndConvertFilterExpression(filter);
|
|
155
|
-
}
|
|
156
|
-
// It's a FilterGroup
|
|
157
|
-
return validateAndConvertFilterGroup(filter);
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Normalize filter for GUI mode by ensuring proper AND/OR wrapper structure.
|
|
161
|
-
* GUI mode requires filters to be wrapped in AND([OR(...)]) so users have
|
|
162
|
-
* access to add/remove buttons on the AND and OR components.
|
|
163
|
-
*
|
|
164
|
-
* This function ensures that:
|
|
165
|
-
* - Single comparisons are wrapped in AND([OR([comparison])])
|
|
166
|
-
* - OR groups are wrapped in AND([OR group])
|
|
167
|
-
* - AND groups have their comparison children wrapped in OR
|
|
168
|
-
* - Empty/undefined filters become AND([])
|
|
169
|
-
*
|
|
170
|
-
* When converting back to Lime Query JSON, limeQueryFilterToLimeQuery()
|
|
171
|
-
* automatically unwraps single-item AND/OR groups.
|
|
172
|
-
*
|
|
173
|
-
* @param filter The filter expression from limeQueryToLimeQueryFilter
|
|
174
|
-
* @returns Normalized filter suitable for GUI editing
|
|
175
|
-
*/
|
|
176
|
-
export function normalizeLimeQueryFilterForGui(filter) {
|
|
177
|
-
// Empty AND is already correct for GUI
|
|
178
|
-
if (filter.filter_type === 'AND' && filter.expressions.length === 0) {
|
|
179
|
-
return filter;
|
|
180
|
-
}
|
|
181
|
-
// Single comparison needs wrapping
|
|
182
|
-
if (filter.filter_type === 'comparison') {
|
|
183
|
-
return {
|
|
184
|
-
filter_type: 'AND',
|
|
185
|
-
expressions: [
|
|
186
|
-
{
|
|
187
|
-
filter_type: 'OR',
|
|
188
|
-
expressions: [filter],
|
|
189
|
-
},
|
|
190
|
-
],
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
// OR needs wrapping in AND
|
|
194
|
-
if (filter.filter_type === 'OR') {
|
|
195
|
-
return {
|
|
196
|
-
filter_type: 'AND',
|
|
197
|
-
expressions: [filter],
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
// NOT needs wrapping
|
|
201
|
-
if (filter.filter_type === 'NOT') {
|
|
202
|
-
return {
|
|
203
|
-
filter_type: 'AND',
|
|
204
|
-
expressions: [
|
|
205
|
-
{
|
|
206
|
-
filter_type: 'OR',
|
|
207
|
-
expressions: [filter],
|
|
208
|
-
},
|
|
209
|
-
],
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
// AND group - check if children need OR wrappers
|
|
213
|
-
if (filter.filter_type === 'AND') {
|
|
214
|
-
const normalizedChildren = filter.expressions.map((child) => {
|
|
215
|
-
// If child is already OR, keep it
|
|
216
|
-
if (child.filter_type === 'OR') {
|
|
217
|
-
return child;
|
|
218
|
-
}
|
|
219
|
-
// If child is NOT, keep it (NOT can be a direct child of AND)
|
|
220
|
-
if (child.filter_type === 'NOT') {
|
|
221
|
-
return child;
|
|
222
|
-
}
|
|
223
|
-
// If child is comparison, wrap in OR
|
|
224
|
-
if (child.filter_type === 'comparison') {
|
|
225
|
-
return {
|
|
226
|
-
filter_type: 'OR',
|
|
227
|
-
expressions: [child],
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
// If child is nested AND, recursively normalize and wrap in OR
|
|
231
|
-
if (child.filter_type === 'AND') {
|
|
232
|
-
return {
|
|
233
|
-
filter_type: 'OR',
|
|
234
|
-
expressions: [normalizeLimeQueryFilterForGui(child)],
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
// Unknown filter type, keep as is
|
|
238
|
-
return child;
|
|
239
|
-
});
|
|
240
|
-
return {
|
|
241
|
-
filter_type: 'AND',
|
|
242
|
-
expressions: normalizedChildren,
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
// Fallback: wrap in AND/OR structure
|
|
246
|
-
return {
|
|
247
|
-
filter_type: 'AND',
|
|
248
|
-
expressions: [
|
|
249
|
-
{
|
|
250
|
-
filter_type: 'OR',
|
|
251
|
-
expressions: [filter],
|
|
252
|
-
},
|
|
253
|
-
],
|
|
254
|
-
};
|
|
255
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface LimebbLimeQueryFilterAnd extends Components.LimebbLimeQueryFilterAnd, HTMLElement {}
|
|
4
|
-
export const LimebbLimeQueryFilterAnd: {
|
|
5
|
-
prototype: LimebbLimeQueryFilterAnd;
|
|
6
|
-
new (): LimebbLimeQueryFilterAnd;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { Z as Zt } from './index.esm.js';
|
|
3
|
-
import { d as defineCustomElement$7 } from './lime-query-filter-comparison.js';
|
|
4
|
-
import { d as defineCustomElement$4, a as defineCustomElement$5, b as defineCustomElement$6 } from './lime-query-filter-expression.js';
|
|
5
|
-
import { d as defineCustomElement$3 } from './lime-query-value-input.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './property-selector.js';
|
|
7
|
-
|
|
8
|
-
const limeQueryFilterAndCss = "@charset \"UTF-8\";.expression{display:flex;flex-direction:column;margin-bottom:1rem;gap:0;background-color:rgb(var(--contrast-100));border:1px solid rgb(var(--contrast-500));border-radius:0.75rem}.expression>ul{margin-top:0;margin-right:1rem;margin-bottom:1rem;margin-left:1rem;padding-left:1rem;list-style:disc}.expression>ul li{margin-top:1rem}.expression>ul li.add-button{list-style:none}";
|
|
9
|
-
const LimebbLimeQueryFilterAndStyle0 = limeQueryFilterAndCss;
|
|
10
|
-
|
|
11
|
-
const LimeQueryFilterAndComponent = /*@__PURE__*/ proxyCustomElement(class LimeQueryFilterAndComponent extends HTMLElement {
|
|
12
|
-
constructor() {
|
|
13
|
-
super();
|
|
14
|
-
this.__registerHost();
|
|
15
|
-
this.__attachShadow();
|
|
16
|
-
this.expressionChange = createEvent(this, "expressionChange", 7);
|
|
17
|
-
this.renderChildExpression = (expression, childIndex) => (h("li", null, h("limebb-lime-query-filter-expression", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, expression: expression, onExpressionChange: this.handleExpressionChange(childIndex) })));
|
|
18
|
-
this.handleAddChildExpression = () => {
|
|
19
|
-
const newOrGroup = {
|
|
20
|
-
op: Zt.OR,
|
|
21
|
-
exp: [
|
|
22
|
-
{
|
|
23
|
-
key: '',
|
|
24
|
-
op: Zt.EQUALS,
|
|
25
|
-
exp: '',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
};
|
|
29
|
-
const updatedExpressionsList = [
|
|
30
|
-
...this.expression.exp,
|
|
31
|
-
newOrGroup,
|
|
32
|
-
];
|
|
33
|
-
this.expressionChange.emit({
|
|
34
|
-
op: Zt.AND,
|
|
35
|
-
exp: updatedExpressionsList,
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
this.handleExpressionChange = (updatedChildIndex) => (event) => {
|
|
39
|
-
var _a;
|
|
40
|
-
event.stopPropagation();
|
|
41
|
-
const updatedExpression = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
42
|
-
const expressions = [...this.expression.exp];
|
|
43
|
-
if (updatedExpression === undefined) {
|
|
44
|
-
expressions.splice(updatedChildIndex, 1);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
expressions[updatedChildIndex] = updatedExpression;
|
|
48
|
-
}
|
|
49
|
-
if (expressions.length === 0) {
|
|
50
|
-
this.expressionChange.emit(undefined);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
if (expressions.length === 1) {
|
|
54
|
-
this.expressionChange.emit(expressions[0]);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
this.expressionChange.emit({
|
|
58
|
-
op: Zt.AND,
|
|
59
|
-
exp: expressions,
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
let subheading = 'All of these conditions are true';
|
|
65
|
-
if (this.expression.exp.length <= 1) {
|
|
66
|
-
subheading = '';
|
|
67
|
-
}
|
|
68
|
-
return (h("div", { key: 'f07c53808d6be8d846f5a45223abb5c94b1a0b16', class: "expression" }, (this.label || subheading) && (h("limel-header", { key: '229f0d58ff15743fbb12da53ad9c593bfba801d1', heading: this.label, subheading: subheading })), h("ul", { key: '2600c2bee2b958036ea606141bcfcac0e277114c' }, this.expression.exp.map(this.renderChildExpression), h("li", { key: '6395e605ee8f454a820ac73601da89b19686187a', class: "add-button" }, this.renderAddChildExpression()))));
|
|
69
|
-
}
|
|
70
|
-
renderAddChildExpression() {
|
|
71
|
-
return (h("limel-button", { label: this.getAddButtonLabel(), icon: "plus_math", onClick: this.handleAddChildExpression }));
|
|
72
|
-
}
|
|
73
|
-
getAddButtonLabel() {
|
|
74
|
-
if (this.expression.exp.length === 0) {
|
|
75
|
-
return 'Add a condition';
|
|
76
|
-
}
|
|
77
|
-
return 'Add another condition';
|
|
78
|
-
}
|
|
79
|
-
static get style() { return LimebbLimeQueryFilterAndStyle0; }
|
|
80
|
-
}, [1, "limebb-lime-query-filter-and", {
|
|
81
|
-
"platform": [16],
|
|
82
|
-
"context": [16],
|
|
83
|
-
"label": [1],
|
|
84
|
-
"limetype": [1],
|
|
85
|
-
"activeLimetype": [1, "active-limetype"],
|
|
86
|
-
"expression": [16]
|
|
87
|
-
}]);
|
|
88
|
-
function defineCustomElement$1() {
|
|
89
|
-
if (typeof customElements === "undefined") {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
const components = ["limebb-lime-query-filter-and", "limebb-lime-query-filter-comparison", "limebb-lime-query-filter-expression", "limebb-lime-query-filter-group", "limebb-lime-query-filter-not", "limebb-lime-query-value-input", "limebb-property-selector"];
|
|
93
|
-
components.forEach(tagName => { switch (tagName) {
|
|
94
|
-
case "limebb-lime-query-filter-and":
|
|
95
|
-
if (!customElements.get(tagName)) {
|
|
96
|
-
customElements.define(tagName, LimeQueryFilterAndComponent);
|
|
97
|
-
}
|
|
98
|
-
break;
|
|
99
|
-
case "limebb-lime-query-filter-comparison":
|
|
100
|
-
if (!customElements.get(tagName)) {
|
|
101
|
-
defineCustomElement$7();
|
|
102
|
-
}
|
|
103
|
-
break;
|
|
104
|
-
case "limebb-lime-query-filter-expression":
|
|
105
|
-
if (!customElements.get(tagName)) {
|
|
106
|
-
defineCustomElement$6();
|
|
107
|
-
}
|
|
108
|
-
break;
|
|
109
|
-
case "limebb-lime-query-filter-group":
|
|
110
|
-
if (!customElements.get(tagName)) {
|
|
111
|
-
defineCustomElement$5();
|
|
112
|
-
}
|
|
113
|
-
break;
|
|
114
|
-
case "limebb-lime-query-filter-not":
|
|
115
|
-
if (!customElements.get(tagName)) {
|
|
116
|
-
defineCustomElement$4();
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
case "limebb-lime-query-value-input":
|
|
120
|
-
if (!customElements.get(tagName)) {
|
|
121
|
-
defineCustomElement$3();
|
|
122
|
-
}
|
|
123
|
-
break;
|
|
124
|
-
case "limebb-property-selector":
|
|
125
|
-
if (!customElements.get(tagName)) {
|
|
126
|
-
defineCustomElement$2();
|
|
127
|
-
}
|
|
128
|
-
break;
|
|
129
|
-
} });
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const LimebbLimeQueryFilterAnd = LimeQueryFilterAndComponent;
|
|
133
|
-
const defineCustomElement = defineCustomElement$1;
|
|
134
|
-
|
|
135
|
-
export { LimebbLimeQueryFilterAnd, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface LimebbLimeQueryFilterOr extends Components.LimebbLimeQueryFilterOr, HTMLElement {}
|
|
4
|
-
export const LimebbLimeQueryFilterOr: {
|
|
5
|
-
prototype: LimebbLimeQueryFilterOr;
|
|
6
|
-
new (): LimebbLimeQueryFilterOr;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { Z as Zt } from './index.esm.js';
|
|
3
|
-
import { d as defineCustomElement$7 } from './lime-query-filter-comparison.js';
|
|
4
|
-
import { d as defineCustomElement$4, a as defineCustomElement$5, b as defineCustomElement$6 } from './lime-query-filter-expression.js';
|
|
5
|
-
import { d as defineCustomElement$3 } from './lime-query-value-input.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './property-selector.js';
|
|
7
|
-
|
|
8
|
-
const limeQueryFilterOrCss = "@charset \"UTF-8\";.expression{display:flex;flex-direction:column;margin-bottom:1rem;gap:0;background-color:rgb(var(--contrast-200));border:1px solid rgb(var(--contrast-600));border-radius:0.75rem}.expression>ul{margin-top:0;margin-right:1rem;margin-bottom:1rem;margin-left:1rem;padding-left:1rem;list-style:circle}.expression>ul li{margin-top:1rem}.expression>ul li.add-button{list-style:none;margin-top:0;text-align:right}";
|
|
9
|
-
const LimebbLimeQueryFilterOrStyle0 = limeQueryFilterOrCss;
|
|
10
|
-
|
|
11
|
-
const LimeQueryFilterOrComponent = /*@__PURE__*/ proxyCustomElement(class LimeQueryFilterOrComponent extends HTMLElement {
|
|
12
|
-
constructor() {
|
|
13
|
-
super();
|
|
14
|
-
this.__registerHost();
|
|
15
|
-
this.__attachShadow();
|
|
16
|
-
this.expressionChange = createEvent(this, "expressionChange", 7);
|
|
17
|
-
this.renderChildExpression = (expression, childIndex) => {
|
|
18
|
-
const label = this.expression.exp.length === 1 ? this.label : undefined;
|
|
19
|
-
return (h("li", null, h("limebb-lime-query-filter-expression", { platform: this.platform, context: this.context, label: label, limetype: this.limetype, activeLimetype: this.activeLimetype, expression: expression, onExpressionChange: this.handleExpressionChange(childIndex) })));
|
|
20
|
-
};
|
|
21
|
-
this.handleExpressionChange = (updatedChildIndex) => (event) => {
|
|
22
|
-
var _a;
|
|
23
|
-
event.stopPropagation();
|
|
24
|
-
const updatedExpression = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
25
|
-
const expressions = [...this.expression.exp];
|
|
26
|
-
if (updatedExpression === undefined) {
|
|
27
|
-
expressions.splice(updatedChildIndex, 1);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
expressions[updatedChildIndex] = updatedExpression;
|
|
31
|
-
}
|
|
32
|
-
if (expressions.length === 0) {
|
|
33
|
-
this.expressionChange.emit(undefined);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (expressions.length === 1) {
|
|
37
|
-
this.expressionChange.emit(expressions[0]);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
this.expressionChange.emit({
|
|
41
|
-
op: Zt.OR,
|
|
42
|
-
exp: expressions,
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
this.handleAddChildExpression = () => {
|
|
46
|
-
const newComparison = {
|
|
47
|
-
key: '',
|
|
48
|
-
op: Zt.EQUALS,
|
|
49
|
-
exp: '',
|
|
50
|
-
};
|
|
51
|
-
const updatedExpressionsList = [
|
|
52
|
-
...this.expression.exp,
|
|
53
|
-
newComparison,
|
|
54
|
-
];
|
|
55
|
-
this.expressionChange.emit({
|
|
56
|
-
op: Zt.OR,
|
|
57
|
-
exp: updatedExpressionsList,
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
return (h("div", { key: '8efd3bba832388365d89313ebc007514fd3478e0', class: "expression" }, this.expression.exp.length > 1 && (h("limel-header", { key: 'eb65924d2e9b7e0e4e47f769b3af76773ae98266', heading: this.label, subheading: "Any of these conditions is true" })), h("ul", { key: 'cc6a4c9d7532096f054e9e20d54e67d14d45a038' }, this.expression.exp.map(this.renderChildExpression), h("li", { key: 'ad876db1e6435657d2263351b75ae4acb3a6a234', class: "add-button" }, this.renderAddChildExpression()))));
|
|
63
|
-
}
|
|
64
|
-
renderAddChildExpression() {
|
|
65
|
-
return (h("limel-icon-button", { label: "Add alternative", icon: "plus_math", onClick: this.handleAddChildExpression }));
|
|
66
|
-
}
|
|
67
|
-
static get style() { return LimebbLimeQueryFilterOrStyle0; }
|
|
68
|
-
}, [1, "limebb-lime-query-filter-or", {
|
|
69
|
-
"platform": [16],
|
|
70
|
-
"context": [16],
|
|
71
|
-
"label": [1],
|
|
72
|
-
"limetype": [1],
|
|
73
|
-
"activeLimetype": [1, "active-limetype"],
|
|
74
|
-
"expression": [16]
|
|
75
|
-
}]);
|
|
76
|
-
function defineCustomElement$1() {
|
|
77
|
-
if (typeof customElements === "undefined") {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const components = ["limebb-lime-query-filter-or", "limebb-lime-query-filter-comparison", "limebb-lime-query-filter-expression", "limebb-lime-query-filter-group", "limebb-lime-query-filter-not", "limebb-lime-query-value-input", "limebb-property-selector"];
|
|
81
|
-
components.forEach(tagName => { switch (tagName) {
|
|
82
|
-
case "limebb-lime-query-filter-or":
|
|
83
|
-
if (!customElements.get(tagName)) {
|
|
84
|
-
customElements.define(tagName, LimeQueryFilterOrComponent);
|
|
85
|
-
}
|
|
86
|
-
break;
|
|
87
|
-
case "limebb-lime-query-filter-comparison":
|
|
88
|
-
if (!customElements.get(tagName)) {
|
|
89
|
-
defineCustomElement$7();
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
case "limebb-lime-query-filter-expression":
|
|
93
|
-
if (!customElements.get(tagName)) {
|
|
94
|
-
defineCustomElement$6();
|
|
95
|
-
}
|
|
96
|
-
break;
|
|
97
|
-
case "limebb-lime-query-filter-group":
|
|
98
|
-
if (!customElements.get(tagName)) {
|
|
99
|
-
defineCustomElement$5();
|
|
100
|
-
}
|
|
101
|
-
break;
|
|
102
|
-
case "limebb-lime-query-filter-not":
|
|
103
|
-
if (!customElements.get(tagName)) {
|
|
104
|
-
defineCustomElement$4();
|
|
105
|
-
}
|
|
106
|
-
break;
|
|
107
|
-
case "limebb-lime-query-value-input":
|
|
108
|
-
if (!customElements.get(tagName)) {
|
|
109
|
-
defineCustomElement$3();
|
|
110
|
-
}
|
|
111
|
-
break;
|
|
112
|
-
case "limebb-property-selector":
|
|
113
|
-
if (!customElements.get(tagName)) {
|
|
114
|
-
defineCustomElement$2();
|
|
115
|
-
}
|
|
116
|
-
break;
|
|
117
|
-
} });
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
const LimebbLimeQueryFilterOr = LimeQueryFilterOrComponent;
|
|
121
|
-
const defineCustomElement = defineCustomElement$1;
|
|
122
|
-
|
|
123
|
-
export { LimebbLimeQueryFilterOr, defineCustomElement };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-96dd111f.js';
|
|
2
|
-
import { Z as Zt } from './index.esm-bb569663.js';
|
|
3
|
-
|
|
4
|
-
const limeQueryFilterAndCss = "@charset \"UTF-8\";.expression{display:flex;flex-direction:column;margin-bottom:1rem;gap:0;background-color:rgb(var(--contrast-100));border:1px solid rgb(var(--contrast-500));border-radius:0.75rem}.expression>ul{margin-top:0;margin-right:1rem;margin-bottom:1rem;margin-left:1rem;padding-left:1rem;list-style:disc}.expression>ul li{margin-top:1rem}.expression>ul li.add-button{list-style:none}";
|
|
5
|
-
const LimebbLimeQueryFilterAndStyle0 = limeQueryFilterAndCss;
|
|
6
|
-
|
|
7
|
-
const LimeQueryFilterAndComponent = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.expressionChange = createEvent(this, "expressionChange", 7);
|
|
11
|
-
this.renderChildExpression = (expression, childIndex) => (h("li", null, h("limebb-lime-query-filter-expression", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, expression: expression, onExpressionChange: this.handleExpressionChange(childIndex) })));
|
|
12
|
-
this.handleAddChildExpression = () => {
|
|
13
|
-
const newOrGroup = {
|
|
14
|
-
op: Zt.OR,
|
|
15
|
-
exp: [
|
|
16
|
-
{
|
|
17
|
-
key: '',
|
|
18
|
-
op: Zt.EQUALS,
|
|
19
|
-
exp: '',
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
};
|
|
23
|
-
const updatedExpressionsList = [
|
|
24
|
-
...this.expression.exp,
|
|
25
|
-
newOrGroup,
|
|
26
|
-
];
|
|
27
|
-
this.expressionChange.emit({
|
|
28
|
-
op: Zt.AND,
|
|
29
|
-
exp: updatedExpressionsList,
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
this.handleExpressionChange = (updatedChildIndex) => (event) => {
|
|
33
|
-
var _a;
|
|
34
|
-
event.stopPropagation();
|
|
35
|
-
const updatedExpression = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
36
|
-
const expressions = [...this.expression.exp];
|
|
37
|
-
if (updatedExpression === undefined) {
|
|
38
|
-
expressions.splice(updatedChildIndex, 1);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
expressions[updatedChildIndex] = updatedExpression;
|
|
42
|
-
}
|
|
43
|
-
if (expressions.length === 0) {
|
|
44
|
-
this.expressionChange.emit(undefined);
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (expressions.length === 1) {
|
|
48
|
-
this.expressionChange.emit(expressions[0]);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this.expressionChange.emit({
|
|
52
|
-
op: Zt.AND,
|
|
53
|
-
exp: expressions,
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
let subheading = 'All of these conditions are true';
|
|
59
|
-
if (this.expression.exp.length <= 1) {
|
|
60
|
-
subheading = '';
|
|
61
|
-
}
|
|
62
|
-
return (h("div", { key: 'f07c53808d6be8d846f5a45223abb5c94b1a0b16', class: "expression" }, (this.label || subheading) && (h("limel-header", { key: '229f0d58ff15743fbb12da53ad9c593bfba801d1', heading: this.label, subheading: subheading })), h("ul", { key: '2600c2bee2b958036ea606141bcfcac0e277114c' }, this.expression.exp.map(this.renderChildExpression), h("li", { key: '6395e605ee8f454a820ac73601da89b19686187a', class: "add-button" }, this.renderAddChildExpression()))));
|
|
63
|
-
}
|
|
64
|
-
renderAddChildExpression() {
|
|
65
|
-
return (h("limel-button", { label: this.getAddButtonLabel(), icon: "plus_math", onClick: this.handleAddChildExpression }));
|
|
66
|
-
}
|
|
67
|
-
getAddButtonLabel() {
|
|
68
|
-
if (this.expression.exp.length === 0) {
|
|
69
|
-
return 'Add a condition';
|
|
70
|
-
}
|
|
71
|
-
return 'Add another condition';
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
LimeQueryFilterAndComponent.style = LimebbLimeQueryFilterAndStyle0;
|
|
75
|
-
|
|
76
|
-
export { LimeQueryFilterAndComponent as limebb_lime_query_filter_and };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-96dd111f.js';
|
|
2
|
-
import { Z as Zt } from './index.esm-bb569663.js';
|
|
3
|
-
|
|
4
|
-
const limeQueryFilterOrCss = "@charset \"UTF-8\";.expression{display:flex;flex-direction:column;margin-bottom:1rem;gap:0;background-color:rgb(var(--contrast-200));border:1px solid rgb(var(--contrast-600));border-radius:0.75rem}.expression>ul{margin-top:0;margin-right:1rem;margin-bottom:1rem;margin-left:1rem;padding-left:1rem;list-style:circle}.expression>ul li{margin-top:1rem}.expression>ul li.add-button{list-style:none;margin-top:0;text-align:right}";
|
|
5
|
-
const LimebbLimeQueryFilterOrStyle0 = limeQueryFilterOrCss;
|
|
6
|
-
|
|
7
|
-
const LimeQueryFilterOrComponent = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.expressionChange = createEvent(this, "expressionChange", 7);
|
|
11
|
-
this.renderChildExpression = (expression, childIndex) => {
|
|
12
|
-
const label = this.expression.exp.length === 1 ? this.label : undefined;
|
|
13
|
-
return (h("li", null, h("limebb-lime-query-filter-expression", { platform: this.platform, context: this.context, label: label, limetype: this.limetype, activeLimetype: this.activeLimetype, expression: expression, onExpressionChange: this.handleExpressionChange(childIndex) })));
|
|
14
|
-
};
|
|
15
|
-
this.handleExpressionChange = (updatedChildIndex) => (event) => {
|
|
16
|
-
var _a;
|
|
17
|
-
event.stopPropagation();
|
|
18
|
-
const updatedExpression = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
19
|
-
const expressions = [...this.expression.exp];
|
|
20
|
-
if (updatedExpression === undefined) {
|
|
21
|
-
expressions.splice(updatedChildIndex, 1);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
expressions[updatedChildIndex] = updatedExpression;
|
|
25
|
-
}
|
|
26
|
-
if (expressions.length === 0) {
|
|
27
|
-
this.expressionChange.emit(undefined);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (expressions.length === 1) {
|
|
31
|
-
this.expressionChange.emit(expressions[0]);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
this.expressionChange.emit({
|
|
35
|
-
op: Zt.OR,
|
|
36
|
-
exp: expressions,
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
this.handleAddChildExpression = () => {
|
|
40
|
-
const newComparison = {
|
|
41
|
-
key: '',
|
|
42
|
-
op: Zt.EQUALS,
|
|
43
|
-
exp: '',
|
|
44
|
-
};
|
|
45
|
-
const updatedExpressionsList = [
|
|
46
|
-
...this.expression.exp,
|
|
47
|
-
newComparison,
|
|
48
|
-
];
|
|
49
|
-
this.expressionChange.emit({
|
|
50
|
-
op: Zt.OR,
|
|
51
|
-
exp: updatedExpressionsList,
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
render() {
|
|
56
|
-
return (h("div", { key: '8efd3bba832388365d89313ebc007514fd3478e0', class: "expression" }, this.expression.exp.length > 1 && (h("limel-header", { key: 'eb65924d2e9b7e0e4e47f769b3af76773ae98266', heading: this.label, subheading: "Any of these conditions is true" })), h("ul", { key: 'cc6a4c9d7532096f054e9e20d54e67d14d45a038' }, this.expression.exp.map(this.renderChildExpression), h("li", { key: 'ad876db1e6435657d2263351b75ae4acb3a6a234', class: "add-button" }, this.renderAddChildExpression()))));
|
|
57
|
-
}
|
|
58
|
-
renderAddChildExpression() {
|
|
59
|
-
return (h("limel-icon-button", { label: "Add alternative", icon: "plus_math", onClick: this.handleAddChildExpression }));
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
LimeQueryFilterOrComponent.style = LimebbLimeQueryFilterOrStyle0;
|
|
63
|
-
|
|
64
|
-
export { LimeQueryFilterOrComponent as limebb_lime_query_filter_or };
|