@limetech/lime-crm-building-blocks 1.100.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 +7 -0
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +45 -178
- package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +147 -0
- package/dist/cjs/{limebb-lime-query-filter-comparison_5.cjs.entry.js → limebb-lime-query-filter-group_3.cjs.entry.js} +5 -333
- 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 +0 -2
- 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-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-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 +46 -179
- 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 +46 -179
- package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +1 -1
- package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +142 -0
- package/dist/esm/{limebb-lime-query-filter-comparison_5.entry.js → limebb-lime-query-filter-group_3.entry.js} +7 -333
- 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-6d119dab.entry.js → p-323c49bc.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-631ca5a5.entry.js → p-58782467.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6aa216ec.entry.js +1 -0
- 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-value-input.d.ts +2 -3
- package/dist/types/components/lime-query-builder/lime-query.types.d.ts +0 -72
- package/dist/types/components.d.ts +6 -262
- 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-expression.cjs.entry.js +0 -45
- 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-and.js +0 -249
- 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-expression.entry.js +0 -41
- package/dist/esm/limebb-lime-query-filter-or.entry.js +0 -64
- package/dist/lime-crm-building-blocks/p-24aeb928.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-422f6d51.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/lime-crm-building-blocks/p-b198194a.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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { AggregateOperator, AndOrExpression, Expression, LimeFileUrlType, LimeType, LimeWebComponentContext, LimeWebComponentPlatform, NotExpression } from "@limetech/lime-web-components";
|
|
8
|
+
import { AggregateOperator, AndOrExpression, Expression, LimeFileUrlType, LimeType, LimeWebComponentContext, LimeWebComponentPlatform, NotExpression, Operator } from "@limetech/lime-web-components";
|
|
9
9
|
import { BrowserItem } from "./components/browser/browser-item.types";
|
|
10
10
|
import { ActionBarItem, CustomElementDefinition, DateType, EditorUiType, FormInfo, Icon, Image, Languages, ListItem, ListSeparator, OpenDirection } from "@limetech/lime-elements";
|
|
11
11
|
import { ChatItem } from "./components/chat-list/chat-item/chat-item.types";
|
|
@@ -17,14 +17,14 @@ import { DateTimeFormat, NumberFormat, RelativeDateTimeFormat } from "./componen
|
|
|
17
17
|
import { InfoTile } from "./components/info-tile/info-tile";
|
|
18
18
|
import { KanbanGroup } from "./components/kanban/kanban-group/kanban-group.types";
|
|
19
19
|
import { KanbanItem } from "./components/kanban/kanban-item/kanban-item.types";
|
|
20
|
-
import {
|
|
20
|
+
import { LimeQuery, ResponseFormat } from "./components/lime-query-builder/lime-query.types";
|
|
21
21
|
import { LanguagePickerType } from "./components/locale-picker/language-picker.types";
|
|
22
22
|
import { NavigationButtonType } from "./components/navigation-button/navigation-button.types";
|
|
23
23
|
import { NotificationItem } from "./components/notification-list/notification-item/notification-item.types";
|
|
24
24
|
import { PropertySelectionItem } from "./components/lime-query-builder/property-selection-format";
|
|
25
25
|
import { TriggerMap } from "./components/text-editor/text-editor.types";
|
|
26
26
|
import { EnhancedEditorMetadata } from "./components/text-editor/uploader/building-blocks-upload-handler";
|
|
27
|
-
export { AggregateOperator, AndOrExpression, Expression, LimeFileUrlType, LimeType, LimeWebComponentContext, LimeWebComponentPlatform, NotExpression } from "@limetech/lime-web-components";
|
|
27
|
+
export { AggregateOperator, AndOrExpression, Expression, LimeFileUrlType, LimeType, LimeWebComponentContext, LimeWebComponentPlatform, NotExpression, Operator } from "@limetech/lime-web-components";
|
|
28
28
|
export { BrowserItem } from "./components/browser/browser-item.types";
|
|
29
29
|
export { ActionBarItem, CustomElementDefinition, DateType, EditorUiType, FormInfo, Icon, Image, Languages, ListItem, ListSeparator, OpenDirection } from "@limetech/lime-elements";
|
|
30
30
|
export { ChatItem } from "./components/chat-list/chat-item/chat-item.types";
|
|
@@ -36,7 +36,7 @@ export { DateTimeFormat, NumberFormat, RelativeDateTimeFormat } from "./componen
|
|
|
36
36
|
export { InfoTile } from "./components/info-tile/info-tile";
|
|
37
37
|
export { KanbanGroup } from "./components/kanban/kanban-group/kanban-group.types";
|
|
38
38
|
export { KanbanItem } from "./components/kanban/kanban-item/kanban-item.types";
|
|
39
|
-
export {
|
|
39
|
+
export { LimeQuery, ResponseFormat } from "./components/lime-query-builder/lime-query.types";
|
|
40
40
|
export { LanguagePickerType } from "./components/locale-picker/language-picker.types";
|
|
41
41
|
export { NavigationButtonType } from "./components/navigation-button/navigation-button.types";
|
|
42
42
|
export { NotificationItem } from "./components/notification-list/notification-item/notification-item.types";
|
|
@@ -993,44 +993,6 @@ export namespace Components {
|
|
|
993
993
|
*/
|
|
994
994
|
"value": LimeQuery;
|
|
995
995
|
}
|
|
996
|
-
/**
|
|
997
|
-
* Lime Query Filter AND Component
|
|
998
|
-
* Renders a group of filter expressions where **all conditions must be true**.
|
|
999
|
-
* Users can add multiple child expressions, and a record must match all of them
|
|
1000
|
-
* to be included in the result set.
|
|
1001
|
-
* This component displays:
|
|
1002
|
-
* - A header with "All of these conditions are true" when there are multiple conditions
|
|
1003
|
-
* - A list of child expressions (which can be comparisons or nested AND/OR/NOT groups)
|
|
1004
|
-
* - An "Add another condition" button to add more expressions
|
|
1005
|
-
* Clicking the trash icon on a child expression removes it from the AND group.
|
|
1006
|
-
* @private
|
|
1007
|
-
*/
|
|
1008
|
-
interface LimebbLimeQueryFilterAnd {
|
|
1009
|
-
/**
|
|
1010
|
-
* The limetype of the active object (for %activeObject% placeholders)
|
|
1011
|
-
*/
|
|
1012
|
-
"activeLimetype"?: string;
|
|
1013
|
-
/**
|
|
1014
|
-
* Component context
|
|
1015
|
-
*/
|
|
1016
|
-
"context": LimeWebComponentContext;
|
|
1017
|
-
/**
|
|
1018
|
-
* The AND expression containing child expressions
|
|
1019
|
-
*/
|
|
1020
|
-
"expression": AndOrExpression;
|
|
1021
|
-
/**
|
|
1022
|
-
* Optional label for the AND group
|
|
1023
|
-
*/
|
|
1024
|
-
"label": string;
|
|
1025
|
-
/**
|
|
1026
|
-
* The limetype being queried (e.g., "deal", "company")
|
|
1027
|
-
*/
|
|
1028
|
-
"limetype": string;
|
|
1029
|
-
/**
|
|
1030
|
-
* Platform service provider
|
|
1031
|
-
*/
|
|
1032
|
-
"platform": LimeWebComponentPlatform;
|
|
1033
|
-
}
|
|
1034
996
|
/**
|
|
1035
997
|
* Lime Query Filter Builder
|
|
1036
998
|
* Entry component for building Lime Query filter expressions.
|
|
@@ -1217,44 +1179,6 @@ export namespace Components {
|
|
|
1217
1179
|
*/
|
|
1218
1180
|
"platform": LimeWebComponentPlatform;
|
|
1219
1181
|
}
|
|
1220
|
-
/**
|
|
1221
|
-
* Lime Query Filter OR Component
|
|
1222
|
-
* Renders a group of filter expressions where **at least one condition must be true**.
|
|
1223
|
-
* Users can add multiple alternative expressions, and a record only needs to match
|
|
1224
|
-
* one of them to be included in the result set.
|
|
1225
|
-
* This component displays:
|
|
1226
|
-
* - A header with "Any of these conditions is true" when there are multiple conditions
|
|
1227
|
-
* - A list of child expressions (which can be comparisons or nested AND/OR/NOT groups)
|
|
1228
|
-
* - An "Add alternative" button to add more options
|
|
1229
|
-
* Clicking the trash icon on a child expression removes it from the OR group.
|
|
1230
|
-
* @private
|
|
1231
|
-
*/
|
|
1232
|
-
interface LimebbLimeQueryFilterOr {
|
|
1233
|
-
/**
|
|
1234
|
-
* The limetype of the active object (for %activeObject% placeholders)
|
|
1235
|
-
*/
|
|
1236
|
-
"activeLimetype"?: string;
|
|
1237
|
-
/**
|
|
1238
|
-
* Component context
|
|
1239
|
-
*/
|
|
1240
|
-
"context": LimeWebComponentContext;
|
|
1241
|
-
/**
|
|
1242
|
-
* The OR expression containing child expressions
|
|
1243
|
-
*/
|
|
1244
|
-
"expression": AndOrExpression;
|
|
1245
|
-
/**
|
|
1246
|
-
* Optional label for the OR group
|
|
1247
|
-
*/
|
|
1248
|
-
"label": string;
|
|
1249
|
-
/**
|
|
1250
|
-
* The limetype being queried (e.g., "deal", "company")
|
|
1251
|
-
*/
|
|
1252
|
-
"limetype": string;
|
|
1253
|
-
/**
|
|
1254
|
-
* Platform service provider
|
|
1255
|
-
*/
|
|
1256
|
-
"platform": LimeWebComponentPlatform;
|
|
1257
|
-
}
|
|
1258
1182
|
/**
|
|
1259
1183
|
* Query Value Input Component
|
|
1260
1184
|
* Renders an appropriate input control based on the property type and operator.
|
|
@@ -1295,7 +1219,7 @@ export namespace Components {
|
|
|
1295
1219
|
/**
|
|
1296
1220
|
* The operator being used
|
|
1297
1221
|
*/
|
|
1298
|
-
"operator":
|
|
1222
|
+
"operator": Operator;
|
|
1299
1223
|
/**
|
|
1300
1224
|
* Platform service provider
|
|
1301
1225
|
*/
|
|
@@ -2152,10 +2076,6 @@ export interface LimebbLimeQueryBuilderCustomEvent<T> extends CustomEvent<T> {
|
|
|
2152
2076
|
detail: T;
|
|
2153
2077
|
target: HTMLLimebbLimeQueryBuilderElement;
|
|
2154
2078
|
}
|
|
2155
|
-
export interface LimebbLimeQueryFilterAndCustomEvent<T> extends CustomEvent<T> {
|
|
2156
|
-
detail: T;
|
|
2157
|
-
target: HTMLLimebbLimeQueryFilterAndElement;
|
|
2158
|
-
}
|
|
2159
2079
|
export interface LimebbLimeQueryFilterBuilderCustomEvent<T> extends CustomEvent<T> {
|
|
2160
2080
|
detail: T;
|
|
2161
2081
|
target: HTMLLimebbLimeQueryFilterBuilderElement;
|
|
@@ -2176,10 +2096,6 @@ export interface LimebbLimeQueryFilterNotCustomEvent<T> extends CustomEvent<T> {
|
|
|
2176
2096
|
detail: T;
|
|
2177
2097
|
target: HTMLLimebbLimeQueryFilterNotElement;
|
|
2178
2098
|
}
|
|
2179
|
-
export interface LimebbLimeQueryFilterOrCustomEvent<T> extends CustomEvent<T> {
|
|
2180
|
-
detail: T;
|
|
2181
|
-
target: HTMLLimebbLimeQueryFilterOrElement;
|
|
2182
|
-
}
|
|
2183
2099
|
export interface LimebbLimeQueryValueInputCustomEvent<T> extends CustomEvent<T> {
|
|
2184
2100
|
detail: T;
|
|
2185
2101
|
target: HTMLLimebbLimeQueryValueInputElement;
|
|
@@ -2882,35 +2798,6 @@ declare global {
|
|
|
2882
2798
|
prototype: HTMLLimebbLimeQueryBuilderElement;
|
|
2883
2799
|
new (): HTMLLimebbLimeQueryBuilderElement;
|
|
2884
2800
|
};
|
|
2885
|
-
interface HTMLLimebbLimeQueryFilterAndElementEventMap {
|
|
2886
|
-
"expressionChange": Expression | undefined;
|
|
2887
|
-
}
|
|
2888
|
-
/**
|
|
2889
|
-
* Lime Query Filter AND Component
|
|
2890
|
-
* Renders a group of filter expressions where **all conditions must be true**.
|
|
2891
|
-
* Users can add multiple child expressions, and a record must match all of them
|
|
2892
|
-
* to be included in the result set.
|
|
2893
|
-
* This component displays:
|
|
2894
|
-
* - A header with "All of these conditions are true" when there are multiple conditions
|
|
2895
|
-
* - A list of child expressions (which can be comparisons or nested AND/OR/NOT groups)
|
|
2896
|
-
* - An "Add another condition" button to add more expressions
|
|
2897
|
-
* Clicking the trash icon on a child expression removes it from the AND group.
|
|
2898
|
-
* @private
|
|
2899
|
-
*/
|
|
2900
|
-
interface HTMLLimebbLimeQueryFilterAndElement extends Components.LimebbLimeQueryFilterAnd, HTMLStencilElement {
|
|
2901
|
-
addEventListener<K extends keyof HTMLLimebbLimeQueryFilterAndElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryFilterAndElement, ev: LimebbLimeQueryFilterAndCustomEvent<HTMLLimebbLimeQueryFilterAndElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2902
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2903
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2904
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2905
|
-
removeEventListener<K extends keyof HTMLLimebbLimeQueryFilterAndElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryFilterAndElement, ev: LimebbLimeQueryFilterAndCustomEvent<HTMLLimebbLimeQueryFilterAndElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2906
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2907
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2908
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2909
|
-
}
|
|
2910
|
-
var HTMLLimebbLimeQueryFilterAndElement: {
|
|
2911
|
-
prototype: HTMLLimebbLimeQueryFilterAndElement;
|
|
2912
|
-
new (): HTMLLimebbLimeQueryFilterAndElement;
|
|
2913
|
-
};
|
|
2914
2801
|
interface HTMLLimebbLimeQueryFilterBuilderElementEventMap {
|
|
2915
2802
|
"expressionChange": Expression | undefined;
|
|
2916
2803
|
}
|
|
@@ -3060,35 +2947,6 @@ declare global {
|
|
|
3060
2947
|
prototype: HTMLLimebbLimeQueryFilterNotElement;
|
|
3061
2948
|
new (): HTMLLimebbLimeQueryFilterNotElement;
|
|
3062
2949
|
};
|
|
3063
|
-
interface HTMLLimebbLimeQueryFilterOrElementEventMap {
|
|
3064
|
-
"expressionChange": Expression | undefined;
|
|
3065
|
-
}
|
|
3066
|
-
/**
|
|
3067
|
-
* Lime Query Filter OR Component
|
|
3068
|
-
* Renders a group of filter expressions where **at least one condition must be true**.
|
|
3069
|
-
* Users can add multiple alternative expressions, and a record only needs to match
|
|
3070
|
-
* one of them to be included in the result set.
|
|
3071
|
-
* This component displays:
|
|
3072
|
-
* - A header with "Any of these conditions is true" when there are multiple conditions
|
|
3073
|
-
* - A list of child expressions (which can be comparisons or nested AND/OR/NOT groups)
|
|
3074
|
-
* - An "Add alternative" button to add more options
|
|
3075
|
-
* Clicking the trash icon on a child expression removes it from the OR group.
|
|
3076
|
-
* @private
|
|
3077
|
-
*/
|
|
3078
|
-
interface HTMLLimebbLimeQueryFilterOrElement extends Components.LimebbLimeQueryFilterOr, HTMLStencilElement {
|
|
3079
|
-
addEventListener<K extends keyof HTMLLimebbLimeQueryFilterOrElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryFilterOrElement, ev: LimebbLimeQueryFilterOrCustomEvent<HTMLLimebbLimeQueryFilterOrElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3080
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3081
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3082
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3083
|
-
removeEventListener<K extends keyof HTMLLimebbLimeQueryFilterOrElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryFilterOrElement, ev: LimebbLimeQueryFilterOrCustomEvent<HTMLLimebbLimeQueryFilterOrElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3084
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3085
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3086
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3087
|
-
}
|
|
3088
|
-
var HTMLLimebbLimeQueryFilterOrElement: {
|
|
3089
|
-
prototype: HTMLLimebbLimeQueryFilterOrElement;
|
|
3090
|
-
new (): HTMLLimebbLimeQueryFilterOrElement;
|
|
3091
|
-
};
|
|
3092
2950
|
interface HTMLLimebbLimeQueryValueInputElementEventMap {
|
|
3093
2951
|
"change": any;
|
|
3094
2952
|
}
|
|
@@ -3628,13 +3486,11 @@ declare global {
|
|
|
3628
3486
|
"limebb-kanban-group": HTMLLimebbKanbanGroupElement;
|
|
3629
3487
|
"limebb-kanban-item": HTMLLimebbKanbanItemElement;
|
|
3630
3488
|
"limebb-lime-query-builder": HTMLLimebbLimeQueryBuilderElement;
|
|
3631
|
-
"limebb-lime-query-filter-and": HTMLLimebbLimeQueryFilterAndElement;
|
|
3632
3489
|
"limebb-lime-query-filter-builder": HTMLLimebbLimeQueryFilterBuilderElement;
|
|
3633
3490
|
"limebb-lime-query-filter-comparison": HTMLLimebbLimeQueryFilterComparisonElement;
|
|
3634
3491
|
"limebb-lime-query-filter-expression": HTMLLimebbLimeQueryFilterExpressionElement;
|
|
3635
3492
|
"limebb-lime-query-filter-group": HTMLLimebbLimeQueryFilterGroupElement;
|
|
3636
3493
|
"limebb-lime-query-filter-not": HTMLLimebbLimeQueryFilterNotElement;
|
|
3637
|
-
"limebb-lime-query-filter-or": HTMLLimebbLimeQueryFilterOrElement;
|
|
3638
3494
|
"limebb-lime-query-value-input": HTMLLimebbLimeQueryValueInputElement;
|
|
3639
3495
|
"limebb-limeobject-file-viewer": HTMLLimebbLimeobjectFileViewerElement;
|
|
3640
3496
|
"limebb-limetype-field": HTMLLimebbLimetypeFieldElement;
|
|
@@ -4703,48 +4559,6 @@ declare namespace LocalJSX {
|
|
|
4703
4559
|
*/
|
|
4704
4560
|
"value"?: LimeQuery;
|
|
4705
4561
|
}
|
|
4706
|
-
/**
|
|
4707
|
-
* Lime Query Filter AND Component
|
|
4708
|
-
* Renders a group of filter expressions where **all conditions must be true**.
|
|
4709
|
-
* Users can add multiple child expressions, and a record must match all of them
|
|
4710
|
-
* to be included in the result set.
|
|
4711
|
-
* This component displays:
|
|
4712
|
-
* - A header with "All of these conditions are true" when there are multiple conditions
|
|
4713
|
-
* - A list of child expressions (which can be comparisons or nested AND/OR/NOT groups)
|
|
4714
|
-
* - An "Add another condition" button to add more expressions
|
|
4715
|
-
* Clicking the trash icon on a child expression removes it from the AND group.
|
|
4716
|
-
* @private
|
|
4717
|
-
*/
|
|
4718
|
-
interface LimebbLimeQueryFilterAnd {
|
|
4719
|
-
/**
|
|
4720
|
-
* The limetype of the active object (for %activeObject% placeholders)
|
|
4721
|
-
*/
|
|
4722
|
-
"activeLimetype"?: string;
|
|
4723
|
-
/**
|
|
4724
|
-
* Component context
|
|
4725
|
-
*/
|
|
4726
|
-
"context"?: LimeWebComponentContext;
|
|
4727
|
-
/**
|
|
4728
|
-
* The AND expression containing child expressions
|
|
4729
|
-
*/
|
|
4730
|
-
"expression"?: AndOrExpression;
|
|
4731
|
-
/**
|
|
4732
|
-
* Optional label for the AND group
|
|
4733
|
-
*/
|
|
4734
|
-
"label"?: string;
|
|
4735
|
-
/**
|
|
4736
|
-
* The limetype being queried (e.g., "deal", "company")
|
|
4737
|
-
*/
|
|
4738
|
-
"limetype"?: string;
|
|
4739
|
-
/**
|
|
4740
|
-
* Emitted when the AND expression changes (expressions added/removed/modified) Emits undefined when expression should be removed Can emit any Expression type when unwrapping (single child)
|
|
4741
|
-
*/
|
|
4742
|
-
"onExpressionChange"?: (event: LimebbLimeQueryFilterAndCustomEvent<Expression | undefined>) => void;
|
|
4743
|
-
/**
|
|
4744
|
-
* Platform service provider
|
|
4745
|
-
*/
|
|
4746
|
-
"platform"?: LimeWebComponentPlatform;
|
|
4747
|
-
}
|
|
4748
4562
|
/**
|
|
4749
4563
|
* Lime Query Filter Builder
|
|
4750
4564
|
* Entry component for building Lime Query filter expressions.
|
|
@@ -4951,48 +4765,6 @@ declare namespace LocalJSX {
|
|
|
4951
4765
|
*/
|
|
4952
4766
|
"platform"?: LimeWebComponentPlatform;
|
|
4953
4767
|
}
|
|
4954
|
-
/**
|
|
4955
|
-
* Lime Query Filter OR Component
|
|
4956
|
-
* Renders a group of filter expressions where **at least one condition must be true**.
|
|
4957
|
-
* Users can add multiple alternative expressions, and a record only needs to match
|
|
4958
|
-
* one of them to be included in the result set.
|
|
4959
|
-
* This component displays:
|
|
4960
|
-
* - A header with "Any of these conditions is true" when there are multiple conditions
|
|
4961
|
-
* - A list of child expressions (which can be comparisons or nested AND/OR/NOT groups)
|
|
4962
|
-
* - An "Add alternative" button to add more options
|
|
4963
|
-
* Clicking the trash icon on a child expression removes it from the OR group.
|
|
4964
|
-
* @private
|
|
4965
|
-
*/
|
|
4966
|
-
interface LimebbLimeQueryFilterOr {
|
|
4967
|
-
/**
|
|
4968
|
-
* The limetype of the active object (for %activeObject% placeholders)
|
|
4969
|
-
*/
|
|
4970
|
-
"activeLimetype"?: string;
|
|
4971
|
-
/**
|
|
4972
|
-
* Component context
|
|
4973
|
-
*/
|
|
4974
|
-
"context"?: LimeWebComponentContext;
|
|
4975
|
-
/**
|
|
4976
|
-
* The OR expression containing child expressions
|
|
4977
|
-
*/
|
|
4978
|
-
"expression"?: AndOrExpression;
|
|
4979
|
-
/**
|
|
4980
|
-
* Optional label for the OR group
|
|
4981
|
-
*/
|
|
4982
|
-
"label"?: string;
|
|
4983
|
-
/**
|
|
4984
|
-
* The limetype being queried (e.g., "deal", "company")
|
|
4985
|
-
*/
|
|
4986
|
-
"limetype"?: string;
|
|
4987
|
-
/**
|
|
4988
|
-
* Emitted when the OR expression changes (expressions added/removed/modified) Emits undefined when expression should be removed Can emit any Expression type when unwrapping (single child)
|
|
4989
|
-
*/
|
|
4990
|
-
"onExpressionChange"?: (event: LimebbLimeQueryFilterOrCustomEvent<Expression | undefined>) => void;
|
|
4991
|
-
/**
|
|
4992
|
-
* Platform service provider
|
|
4993
|
-
*/
|
|
4994
|
-
"platform"?: LimeWebComponentPlatform;
|
|
4995
|
-
}
|
|
4996
4768
|
/**
|
|
4997
4769
|
* Query Value Input Component
|
|
4998
4770
|
* Renders an appropriate input control based on the property type and operator.
|
|
@@ -5037,7 +4809,7 @@ declare namespace LocalJSX {
|
|
|
5037
4809
|
/**
|
|
5038
4810
|
* The operator being used
|
|
5039
4811
|
*/
|
|
5040
|
-
"operator"?:
|
|
4812
|
+
"operator"?: Operator;
|
|
5041
4813
|
/**
|
|
5042
4814
|
* Platform service provider
|
|
5043
4815
|
*/
|
|
@@ -5892,13 +5664,11 @@ declare namespace LocalJSX {
|
|
|
5892
5664
|
"limebb-kanban-group": LimebbKanbanGroup;
|
|
5893
5665
|
"limebb-kanban-item": LimebbKanbanItem;
|
|
5894
5666
|
"limebb-lime-query-builder": LimebbLimeQueryBuilder;
|
|
5895
|
-
"limebb-lime-query-filter-and": LimebbLimeQueryFilterAnd;
|
|
5896
5667
|
"limebb-lime-query-filter-builder": LimebbLimeQueryFilterBuilder;
|
|
5897
5668
|
"limebb-lime-query-filter-comparison": LimebbLimeQueryFilterComparison;
|
|
5898
5669
|
"limebb-lime-query-filter-expression": LimebbLimeQueryFilterExpression;
|
|
5899
5670
|
"limebb-lime-query-filter-group": LimebbLimeQueryFilterGroup;
|
|
5900
5671
|
"limebb-lime-query-filter-not": LimebbLimeQueryFilterNot;
|
|
5901
|
-
"limebb-lime-query-filter-or": LimebbLimeQueryFilterOr;
|
|
5902
5672
|
"limebb-lime-query-value-input": LimebbLimeQueryValueInput;
|
|
5903
5673
|
"limebb-limeobject-file-viewer": LimebbLimeobjectFileViewer;
|
|
5904
5674
|
"limebb-limetype-field": LimebbLimetypeField;
|
|
@@ -6219,19 +5989,6 @@ declare module "@stencil/core" {
|
|
|
6219
5989
|
* @private
|
|
6220
5990
|
*/
|
|
6221
5991
|
"limebb-lime-query-builder": LocalJSX.LimebbLimeQueryBuilder & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryBuilderElement>;
|
|
6222
|
-
/**
|
|
6223
|
-
* Lime Query Filter AND Component
|
|
6224
|
-
* Renders a group of filter expressions where **all conditions must be true**.
|
|
6225
|
-
* Users can add multiple child expressions, and a record must match all of them
|
|
6226
|
-
* to be included in the result set.
|
|
6227
|
-
* This component displays:
|
|
6228
|
-
* - A header with "All of these conditions are true" when there are multiple conditions
|
|
6229
|
-
* - A list of child expressions (which can be comparisons or nested AND/OR/NOT groups)
|
|
6230
|
-
* - An "Add another condition" button to add more expressions
|
|
6231
|
-
* Clicking the trash icon on a child expression removes it from the AND group.
|
|
6232
|
-
* @private
|
|
6233
|
-
*/
|
|
6234
|
-
"limebb-lime-query-filter-and": LocalJSX.LimebbLimeQueryFilterAnd & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryFilterAndElement>;
|
|
6235
5992
|
/**
|
|
6236
5993
|
* Lime Query Filter Builder
|
|
6237
5994
|
* Entry component for building Lime Query filter expressions.
|
|
@@ -6301,19 +6058,6 @@ declare module "@stencil/core" {
|
|
|
6301
6058
|
* @private
|
|
6302
6059
|
*/
|
|
6303
6060
|
"limebb-lime-query-filter-not": LocalJSX.LimebbLimeQueryFilterNot & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryFilterNotElement>;
|
|
6304
|
-
/**
|
|
6305
|
-
* Lime Query Filter OR Component
|
|
6306
|
-
* Renders a group of filter expressions where **at least one condition must be true**.
|
|
6307
|
-
* Users can add multiple alternative expressions, and a record only needs to match
|
|
6308
|
-
* one of them to be included in the result set.
|
|
6309
|
-
* This component displays:
|
|
6310
|
-
* - A header with "Any of these conditions is true" when there are multiple conditions
|
|
6311
|
-
* - A list of child expressions (which can be comparisons or nested AND/OR/NOT groups)
|
|
6312
|
-
* - An "Add alternative" button to add more options
|
|
6313
|
-
* Clicking the trash icon on a child expression removes it from the OR group.
|
|
6314
|
-
* @private
|
|
6315
|
-
*/
|
|
6316
|
-
"limebb-lime-query-filter-or": LocalJSX.LimebbLimeQueryFilterOr & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryFilterOrElement>;
|
|
6317
6061
|
/**
|
|
6318
6062
|
* Query Value Input Component
|
|
6319
6063
|
* Renders an appropriate input control based on the property type and operator.
|
package/package.json
CHANGED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-ff255a0d.js');
|
|
6
|
-
const index_esm = require('./index.esm-d785eb6e.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 = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.expressionChange = index.createEvent(this, "expressionChange", 7);
|
|
15
|
-
this.renderChildExpression = (expression, childIndex) => (index.h("li", null, index.h("limebb-lime-query-filter-expression", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, expression: expression, onExpressionChange: this.handleExpressionChange(childIndex) })));
|
|
16
|
-
this.handleAddChildExpression = () => {
|
|
17
|
-
const newOrGroup = {
|
|
18
|
-
op: index_esm.Zt.OR,
|
|
19
|
-
exp: [
|
|
20
|
-
{
|
|
21
|
-
key: '',
|
|
22
|
-
op: index_esm.Zt.EQUALS,
|
|
23
|
-
exp: '',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
};
|
|
27
|
-
const updatedExpressionsList = [
|
|
28
|
-
...this.expression.exp,
|
|
29
|
-
newOrGroup,
|
|
30
|
-
];
|
|
31
|
-
this.expressionChange.emit({
|
|
32
|
-
op: index_esm.Zt.AND,
|
|
33
|
-
exp: updatedExpressionsList,
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
this.handleExpressionChange = (updatedChildIndex) => (event) => {
|
|
37
|
-
var _a;
|
|
38
|
-
event.stopPropagation();
|
|
39
|
-
const updatedExpression = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
40
|
-
const expressions = [...this.expression.exp];
|
|
41
|
-
if (updatedExpression === undefined) {
|
|
42
|
-
expressions.splice(updatedChildIndex, 1);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
expressions[updatedChildIndex] = updatedExpression;
|
|
46
|
-
}
|
|
47
|
-
if (expressions.length === 0) {
|
|
48
|
-
this.expressionChange.emit(undefined);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
if (expressions.length === 1) {
|
|
52
|
-
this.expressionChange.emit(expressions[0]);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
this.expressionChange.emit({
|
|
56
|
-
op: index_esm.Zt.AND,
|
|
57
|
-
exp: expressions,
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
let subheading = 'All of these conditions are true';
|
|
63
|
-
if (this.expression.exp.length <= 1) {
|
|
64
|
-
subheading = '';
|
|
65
|
-
}
|
|
66
|
-
return (index.h("div", { key: 'f07c53808d6be8d846f5a45223abb5c94b1a0b16', class: "expression" }, (this.label || subheading) && (index.h("limel-header", { key: '229f0d58ff15743fbb12da53ad9c593bfba801d1', heading: this.label, subheading: subheading })), index.h("ul", { key: '2600c2bee2b958036ea606141bcfcac0e277114c' }, this.expression.exp.map(this.renderChildExpression), index.h("li", { key: '6395e605ee8f454a820ac73601da89b19686187a', class: "add-button" }, this.renderAddChildExpression()))));
|
|
67
|
-
}
|
|
68
|
-
renderAddChildExpression() {
|
|
69
|
-
return (index.h("limel-button", { label: this.getAddButtonLabel(), icon: "plus_math", onClick: this.handleAddChildExpression }));
|
|
70
|
-
}
|
|
71
|
-
getAddButtonLabel() {
|
|
72
|
-
if (this.expression.exp.length === 0) {
|
|
73
|
-
return 'Add a condition';
|
|
74
|
-
}
|
|
75
|
-
return 'Add another condition';
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
LimeQueryFilterAndComponent.style = LimebbLimeQueryFilterAndStyle0;
|
|
79
|
-
|
|
80
|
-
exports.limebb_lime_query_filter_and = LimeQueryFilterAndComponent;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-ff255a0d.js');
|
|
6
|
-
const index_esm = require('./index.esm-d785eb6e.js');
|
|
7
|
-
|
|
8
|
-
const limeQueryFilterExpressionCss = "@charset \"UTF-8\";.expression{display:flex;flex-direction:column;margin-bottom:1rem;gap:1rem}";
|
|
9
|
-
const LimebbLimeQueryFilterExpressionStyle0 = limeQueryFilterExpressionCss;
|
|
10
|
-
|
|
11
|
-
const LimeQueryFilterExpressionComponent = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.expressionChange = index.createEvent(this, "expressionChange", 7);
|
|
15
|
-
this.handleExpressionChange = (event) => {
|
|
16
|
-
event.stopPropagation();
|
|
17
|
-
this.expressionChange.emit(event.detail);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
if (!this.expression) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const props = {
|
|
25
|
-
platform: this.platform,
|
|
26
|
-
context: this.context,
|
|
27
|
-
label: this.label,
|
|
28
|
-
limetype: this.limetype,
|
|
29
|
-
activeLimetype: this.activeLimetype,
|
|
30
|
-
};
|
|
31
|
-
if ('key' in this.expression) {
|
|
32
|
-
return (index.h("limebb-lime-query-filter-comparison", Object.assign({}, props, { expression: this.expression, onExpressionChange: this.handleExpressionChange })));
|
|
33
|
-
}
|
|
34
|
-
if (this.expression.op === index_esm.Zt.AND ||
|
|
35
|
-
this.expression.op === index_esm.Zt.OR) {
|
|
36
|
-
return (index.h("limebb-lime-query-filter-group", Object.assign({}, props, { expression: this.expression, onExpressionChange: this.handleExpressionChange })));
|
|
37
|
-
}
|
|
38
|
-
if (this.expression.op === index_esm.Zt.NOT) {
|
|
39
|
-
return (index.h("limebb-lime-query-filter-not", Object.assign({}, props, { expression: this.expression, onExpressionChange: this.handleExpressionChange })));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
LimeQueryFilterExpressionComponent.style = LimebbLimeQueryFilterExpressionStyle0;
|
|
44
|
-
|
|
45
|
-
exports.limebb_lime_query_filter_expression = LimeQueryFilterExpressionComponent;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-ff255a0d.js');
|
|
6
|
-
const index_esm = require('./index.esm-d785eb6e.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 = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.expressionChange = index.createEvent(this, "expressionChange", 7);
|
|
15
|
-
this.renderChildExpression = (expression, childIndex) => {
|
|
16
|
-
const label = this.expression.exp.length === 1 ? this.label : undefined;
|
|
17
|
-
return (index.h("li", null, index.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) })));
|
|
18
|
-
};
|
|
19
|
-
this.handleExpressionChange = (updatedChildIndex) => (event) => {
|
|
20
|
-
var _a;
|
|
21
|
-
event.stopPropagation();
|
|
22
|
-
const updatedExpression = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
23
|
-
const expressions = [...this.expression.exp];
|
|
24
|
-
if (updatedExpression === undefined) {
|
|
25
|
-
expressions.splice(updatedChildIndex, 1);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
expressions[updatedChildIndex] = updatedExpression;
|
|
29
|
-
}
|
|
30
|
-
if (expressions.length === 0) {
|
|
31
|
-
this.expressionChange.emit(undefined);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
if (expressions.length === 1) {
|
|
35
|
-
this.expressionChange.emit(expressions[0]);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
this.expressionChange.emit({
|
|
39
|
-
op: index_esm.Zt.OR,
|
|
40
|
-
exp: expressions,
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
this.handleAddChildExpression = () => {
|
|
44
|
-
const newComparison = {
|
|
45
|
-
key: '',
|
|
46
|
-
op: index_esm.Zt.EQUALS,
|
|
47
|
-
exp: '',
|
|
48
|
-
};
|
|
49
|
-
const updatedExpressionsList = [
|
|
50
|
-
...this.expression.exp,
|
|
51
|
-
newComparison,
|
|
52
|
-
];
|
|
53
|
-
this.expressionChange.emit({
|
|
54
|
-
op: index_esm.Zt.OR,
|
|
55
|
-
exp: updatedExpressionsList,
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
return (index.h("div", { key: '8efd3bba832388365d89313ebc007514fd3478e0', class: "expression" }, this.expression.exp.length > 1 && (index.h("limel-header", { key: 'eb65924d2e9b7e0e4e47f769b3af76773ae98266', heading: this.label, subheading: "Any of these conditions is true" })), index.h("ul", { key: 'cc6a4c9d7532096f054e9e20d54e67d14d45a038' }, this.expression.exp.map(this.renderChildExpression), index.h("li", { key: 'ad876db1e6435657d2263351b75ae4acb3a6a234', class: "add-button" }, this.renderAddChildExpression()))));
|
|
61
|
-
}
|
|
62
|
-
renderAddChildExpression() {
|
|
63
|
-
return (index.h("limel-icon-button", { label: "Add alternative", icon: "plus_math", onClick: this.handleAddChildExpression }));
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
LimeQueryFilterOrComponent.style = LimebbLimeQueryFilterOrStyle0;
|
|
67
|
-
|
|
68
|
-
exports.limebb_lime_query_filter_or = LimeQueryFilterOrComponent;
|