@limetech/lime-crm-building-blocks 1.100.0 → 1.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +177 -204
- package/dist/cjs/{limebb-lime-query-filter-builder_3.cjs.entry.js → limebb-lime-query-filter-builder_4.cjs.entry.js} +86 -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-lime-query-order-by-item.cjs.entry.js +51 -0
- 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 +2 -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-builder.css +2 -5
- package/dist/collection/components/lime-query-builder/lime-query-builder.js +19 -19
- package/dist/collection/components/lime-query-builder/lime-query-validation.js +160 -26
- 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/lime-query-builder/order-by/order-by-editor.css +72 -0
- package/dist/collection/components/lime-query-builder/order-by/order-by-editor.js +252 -0
- package/dist/collection/components/lime-query-builder/order-by/order-by-item.css +45 -0
- package/dist/collection/components/lime-query-builder/order-by/order-by-item.js +173 -0
- 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 +3 -3
- package/dist/components/limebb-lime-query-builder.js +201 -215
- package/dist/components/limebb-lime-query-order-by-editor.d.ts +11 -0
- package/dist/components/limebb-lime-query-order-by-editor.js +6 -0
- package/dist/components/limebb-lime-query-order-by-item.d.ts +11 -0
- package/dist/components/limebb-lime-query-order-by-item.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/order-by-editor.js +123 -0
- package/dist/components/order-by-item.js +73 -0
- package/dist/components/property-selector.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 +179 -206
- package/dist/esm/{limebb-lime-query-filter-builder_3.entry.js → limebb-lime-query-filter-builder_4.entry.js} +86 -2
- 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-lime-query-order-by-item.entry.js +47 -0
- 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/esm/{property-resolution-fde2375e.js → property-resolution-c21a1369.js} +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-631ca5a5.entry.js → p-0cd036ed.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-2725671e.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-9cac4de2.entry.js → p-425eaba2.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e8946134.entry.js → p-5cf4898d.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-67c174d0.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-6aa216ec.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-93cadc1e.entry.js → p-8601eab5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-b9b954d9.entry.js → p-8c2fb1c9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3122ea05.entry.js → p-92dfc5f8.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-569c86b5.entry.js → p-a1ee8990.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-abfc7815.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-e0ab1554.js → p-b748c770.js} +1 -1
- package/dist/lime-crm-building-blocks/p-ccf34631.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-36ea13c0.entry.js → p-d84874dc.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-f9efca1d.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-builder.d.ts +9 -6
- package/dist/types/components/lime-query-builder/lime-query.types.d.ts +0 -72
- package/dist/types/components/lime-query-builder/order-by/order-by-editor.d.ts +58 -0
- package/dist/types/components/lime-query-builder/order-by/order-by-item.d.ts +37 -0
- package/dist/types/components.d.ts +165 -205
- 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-6d119dab.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, OrderByItem, 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, OrderByItem, 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.
|
|
@@ -1218,36 +1180,58 @@ export namespace Components {
|
|
|
1218
1180
|
"platform": LimeWebComponentPlatform;
|
|
1219
1181
|
}
|
|
1220
1182
|
/**
|
|
1221
|
-
*
|
|
1222
|
-
*
|
|
1223
|
-
*
|
|
1224
|
-
*
|
|
1225
|
-
*
|
|
1226
|
-
* -
|
|
1227
|
-
* -
|
|
1228
|
-
* -
|
|
1229
|
-
*
|
|
1183
|
+
* Order By Editor Component
|
|
1184
|
+
* Allows users to specify the order in which query results should be sorted.
|
|
1185
|
+
* Supports sorting by multiple properties with ascending or descending order.
|
|
1186
|
+
* Features:
|
|
1187
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
1188
|
+
* - **Sort direction**: Toggle between ascending (ASC) and descending (DESC)
|
|
1189
|
+
* - **Multiple sort fields**: Add multiple properties to create complex sorting
|
|
1190
|
+
* - **Order matters**: Properties are sorted in the order they appear in the list
|
|
1191
|
+
* - **Dynamic list**: Add/remove sort fields
|
|
1192
|
+
* The component generates an `OrderByItem[]` array where each item specifies
|
|
1193
|
+
* a property path and sort direction.
|
|
1230
1194
|
* @private
|
|
1231
1195
|
*/
|
|
1232
|
-
interface
|
|
1233
|
-
/**
|
|
1234
|
-
* The limetype of the active object (for %activeObject% placeholders)
|
|
1235
|
-
*/
|
|
1236
|
-
"activeLimetype"?: string;
|
|
1196
|
+
interface LimebbLimeQueryOrderByEditor {
|
|
1237
1197
|
/**
|
|
1238
1198
|
* Component context
|
|
1239
1199
|
*/
|
|
1240
1200
|
"context": LimeWebComponentContext;
|
|
1241
1201
|
/**
|
|
1242
|
-
*
|
|
1202
|
+
* Optional label
|
|
1243
1203
|
*/
|
|
1244
|
-
"
|
|
1204
|
+
"label": string;
|
|
1245
1205
|
/**
|
|
1246
|
-
*
|
|
1206
|
+
* The limetype to select properties from
|
|
1247
1207
|
*/
|
|
1248
|
-
"
|
|
1208
|
+
"limetype": string;
|
|
1249
1209
|
/**
|
|
1250
|
-
*
|
|
1210
|
+
* Platform service provider
|
|
1211
|
+
*/
|
|
1212
|
+
"platform": LimeWebComponentPlatform;
|
|
1213
|
+
/**
|
|
1214
|
+
* Current order by specification
|
|
1215
|
+
*/
|
|
1216
|
+
"value"?: OrderByItem[];
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Order By Item Component
|
|
1220
|
+
* Represents a single order by specification with property selection and direction toggle
|
|
1221
|
+
* Part of the order by editor
|
|
1222
|
+
* @private
|
|
1223
|
+
*/
|
|
1224
|
+
interface LimebbLimeQueryOrderByItem {
|
|
1225
|
+
/**
|
|
1226
|
+
* Component context
|
|
1227
|
+
*/
|
|
1228
|
+
"context": LimeWebComponentContext;
|
|
1229
|
+
/**
|
|
1230
|
+
* The order by item (e.g., { "company.name": "ASC" })
|
|
1231
|
+
*/
|
|
1232
|
+
"item": OrderByItem;
|
|
1233
|
+
/**
|
|
1234
|
+
* The limetype to select properties from
|
|
1251
1235
|
*/
|
|
1252
1236
|
"limetype": string;
|
|
1253
1237
|
/**
|
|
@@ -1295,7 +1279,7 @@ export namespace Components {
|
|
|
1295
1279
|
/**
|
|
1296
1280
|
* The operator being used
|
|
1297
1281
|
*/
|
|
1298
|
-
"operator":
|
|
1282
|
+
"operator": Operator;
|
|
1299
1283
|
/**
|
|
1300
1284
|
* Platform service provider
|
|
1301
1285
|
*/
|
|
@@ -2152,10 +2136,6 @@ export interface LimebbLimeQueryBuilderCustomEvent<T> extends CustomEvent<T> {
|
|
|
2152
2136
|
detail: T;
|
|
2153
2137
|
target: HTMLLimebbLimeQueryBuilderElement;
|
|
2154
2138
|
}
|
|
2155
|
-
export interface LimebbLimeQueryFilterAndCustomEvent<T> extends CustomEvent<T> {
|
|
2156
|
-
detail: T;
|
|
2157
|
-
target: HTMLLimebbLimeQueryFilterAndElement;
|
|
2158
|
-
}
|
|
2159
2139
|
export interface LimebbLimeQueryFilterBuilderCustomEvent<T> extends CustomEvent<T> {
|
|
2160
2140
|
detail: T;
|
|
2161
2141
|
target: HTMLLimebbLimeQueryFilterBuilderElement;
|
|
@@ -2176,9 +2156,13 @@ export interface LimebbLimeQueryFilterNotCustomEvent<T> extends CustomEvent<T> {
|
|
|
2176
2156
|
detail: T;
|
|
2177
2157
|
target: HTMLLimebbLimeQueryFilterNotElement;
|
|
2178
2158
|
}
|
|
2179
|
-
export interface
|
|
2159
|
+
export interface LimebbLimeQueryOrderByEditorCustomEvent<T> extends CustomEvent<T> {
|
|
2160
|
+
detail: T;
|
|
2161
|
+
target: HTMLLimebbLimeQueryOrderByEditorElement;
|
|
2162
|
+
}
|
|
2163
|
+
export interface LimebbLimeQueryOrderByItemCustomEvent<T> extends CustomEvent<T> {
|
|
2180
2164
|
detail: T;
|
|
2181
|
-
target:
|
|
2165
|
+
target: HTMLLimebbLimeQueryOrderByItemElement;
|
|
2182
2166
|
}
|
|
2183
2167
|
export interface LimebbLimeQueryValueInputCustomEvent<T> extends CustomEvent<T> {
|
|
2184
2168
|
detail: T;
|
|
@@ -2882,35 +2866,6 @@ declare global {
|
|
|
2882
2866
|
prototype: HTMLLimebbLimeQueryBuilderElement;
|
|
2883
2867
|
new (): HTMLLimebbLimeQueryBuilderElement;
|
|
2884
2868
|
};
|
|
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
2869
|
interface HTMLLimebbLimeQueryFilterBuilderElementEventMap {
|
|
2915
2870
|
"expressionChange": Expression | undefined;
|
|
2916
2871
|
}
|
|
@@ -3060,34 +3015,59 @@ declare global {
|
|
|
3060
3015
|
prototype: HTMLLimebbLimeQueryFilterNotElement;
|
|
3061
3016
|
new (): HTMLLimebbLimeQueryFilterNotElement;
|
|
3062
3017
|
};
|
|
3063
|
-
interface
|
|
3064
|
-
"
|
|
3018
|
+
interface HTMLLimebbLimeQueryOrderByEditorElementEventMap {
|
|
3019
|
+
"change": OrderByItem[];
|
|
3065
3020
|
}
|
|
3066
3021
|
/**
|
|
3067
|
-
*
|
|
3068
|
-
*
|
|
3069
|
-
*
|
|
3070
|
-
*
|
|
3071
|
-
*
|
|
3072
|
-
* -
|
|
3073
|
-
* -
|
|
3074
|
-
* -
|
|
3075
|
-
*
|
|
3022
|
+
* Order By Editor Component
|
|
3023
|
+
* Allows users to specify the order in which query results should be sorted.
|
|
3024
|
+
* Supports sorting by multiple properties with ascending or descending order.
|
|
3025
|
+
* Features:
|
|
3026
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
3027
|
+
* - **Sort direction**: Toggle between ascending (ASC) and descending (DESC)
|
|
3028
|
+
* - **Multiple sort fields**: Add multiple properties to create complex sorting
|
|
3029
|
+
* - **Order matters**: Properties are sorted in the order they appear in the list
|
|
3030
|
+
* - **Dynamic list**: Add/remove sort fields
|
|
3031
|
+
* The component generates an `OrderByItem[]` array where each item specifies
|
|
3032
|
+
* a property path and sort direction.
|
|
3033
|
+
* @private
|
|
3034
|
+
*/
|
|
3035
|
+
interface HTMLLimebbLimeQueryOrderByEditorElement extends Components.LimebbLimeQueryOrderByEditor, HTMLStencilElement {
|
|
3036
|
+
addEventListener<K extends keyof HTMLLimebbLimeQueryOrderByEditorElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryOrderByEditorElement, ev: LimebbLimeQueryOrderByEditorCustomEvent<HTMLLimebbLimeQueryOrderByEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3037
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3038
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3039
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3040
|
+
removeEventListener<K extends keyof HTMLLimebbLimeQueryOrderByEditorElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryOrderByEditorElement, ev: LimebbLimeQueryOrderByEditorCustomEvent<HTMLLimebbLimeQueryOrderByEditorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3041
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3042
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3043
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3044
|
+
}
|
|
3045
|
+
var HTMLLimebbLimeQueryOrderByEditorElement: {
|
|
3046
|
+
prototype: HTMLLimebbLimeQueryOrderByEditorElement;
|
|
3047
|
+
new (): HTMLLimebbLimeQueryOrderByEditorElement;
|
|
3048
|
+
};
|
|
3049
|
+
interface HTMLLimebbLimeQueryOrderByItemElementEventMap {
|
|
3050
|
+
"itemChange": OrderByItem | null;
|
|
3051
|
+
}
|
|
3052
|
+
/**
|
|
3053
|
+
* Order By Item Component
|
|
3054
|
+
* Represents a single order by specification with property selection and direction toggle
|
|
3055
|
+
* Part of the order by editor
|
|
3076
3056
|
* @private
|
|
3077
3057
|
*/
|
|
3078
|
-
interface
|
|
3079
|
-
addEventListener<K extends keyof
|
|
3058
|
+
interface HTMLLimebbLimeQueryOrderByItemElement extends Components.LimebbLimeQueryOrderByItem, HTMLStencilElement {
|
|
3059
|
+
addEventListener<K extends keyof HTMLLimebbLimeQueryOrderByItemElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryOrderByItemElement, ev: LimebbLimeQueryOrderByItemCustomEvent<HTMLLimebbLimeQueryOrderByItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3080
3060
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3081
3061
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3082
3062
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3083
|
-
removeEventListener<K extends keyof
|
|
3063
|
+
removeEventListener<K extends keyof HTMLLimebbLimeQueryOrderByItemElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryOrderByItemElement, ev: LimebbLimeQueryOrderByItemCustomEvent<HTMLLimebbLimeQueryOrderByItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3084
3064
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3085
3065
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3086
3066
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3087
3067
|
}
|
|
3088
|
-
var
|
|
3089
|
-
prototype:
|
|
3090
|
-
new ():
|
|
3068
|
+
var HTMLLimebbLimeQueryOrderByItemElement: {
|
|
3069
|
+
prototype: HTMLLimebbLimeQueryOrderByItemElement;
|
|
3070
|
+
new (): HTMLLimebbLimeQueryOrderByItemElement;
|
|
3091
3071
|
};
|
|
3092
3072
|
interface HTMLLimebbLimeQueryValueInputElementEventMap {
|
|
3093
3073
|
"change": any;
|
|
@@ -3628,13 +3608,13 @@ declare global {
|
|
|
3628
3608
|
"limebb-kanban-group": HTMLLimebbKanbanGroupElement;
|
|
3629
3609
|
"limebb-kanban-item": HTMLLimebbKanbanItemElement;
|
|
3630
3610
|
"limebb-lime-query-builder": HTMLLimebbLimeQueryBuilderElement;
|
|
3631
|
-
"limebb-lime-query-filter-and": HTMLLimebbLimeQueryFilterAndElement;
|
|
3632
3611
|
"limebb-lime-query-filter-builder": HTMLLimebbLimeQueryFilterBuilderElement;
|
|
3633
3612
|
"limebb-lime-query-filter-comparison": HTMLLimebbLimeQueryFilterComparisonElement;
|
|
3634
3613
|
"limebb-lime-query-filter-expression": HTMLLimebbLimeQueryFilterExpressionElement;
|
|
3635
3614
|
"limebb-lime-query-filter-group": HTMLLimebbLimeQueryFilterGroupElement;
|
|
3636
3615
|
"limebb-lime-query-filter-not": HTMLLimebbLimeQueryFilterNotElement;
|
|
3637
|
-
"limebb-lime-query-
|
|
3616
|
+
"limebb-lime-query-order-by-editor": HTMLLimebbLimeQueryOrderByEditorElement;
|
|
3617
|
+
"limebb-lime-query-order-by-item": HTMLLimebbLimeQueryOrderByItemElement;
|
|
3638
3618
|
"limebb-lime-query-value-input": HTMLLimebbLimeQueryValueInputElement;
|
|
3639
3619
|
"limebb-limeobject-file-viewer": HTMLLimebbLimeobjectFileViewerElement;
|
|
3640
3620
|
"limebb-limetype-field": HTMLLimebbLimetypeFieldElement;
|
|
@@ -4703,48 +4683,6 @@ declare namespace LocalJSX {
|
|
|
4703
4683
|
*/
|
|
4704
4684
|
"value"?: LimeQuery;
|
|
4705
4685
|
}
|
|
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
4686
|
/**
|
|
4749
4687
|
* Lime Query Filter Builder
|
|
4750
4688
|
* Entry component for building Lime Query filter expressions.
|
|
@@ -4952,42 +4890,68 @@ declare namespace LocalJSX {
|
|
|
4952
4890
|
"platform"?: LimeWebComponentPlatform;
|
|
4953
4891
|
}
|
|
4954
4892
|
/**
|
|
4955
|
-
*
|
|
4956
|
-
*
|
|
4957
|
-
*
|
|
4958
|
-
*
|
|
4959
|
-
*
|
|
4960
|
-
* -
|
|
4961
|
-
* -
|
|
4962
|
-
* -
|
|
4963
|
-
*
|
|
4893
|
+
* Order By Editor Component
|
|
4894
|
+
* Allows users to specify the order in which query results should be sorted.
|
|
4895
|
+
* Supports sorting by multiple properties with ascending or descending order.
|
|
4896
|
+
* Features:
|
|
4897
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
4898
|
+
* - **Sort direction**: Toggle between ascending (ASC) and descending (DESC)
|
|
4899
|
+
* - **Multiple sort fields**: Add multiple properties to create complex sorting
|
|
4900
|
+
* - **Order matters**: Properties are sorted in the order they appear in the list
|
|
4901
|
+
* - **Dynamic list**: Add/remove sort fields
|
|
4902
|
+
* The component generates an `OrderByItem[]` array where each item specifies
|
|
4903
|
+
* a property path and sort direction.
|
|
4964
4904
|
* @private
|
|
4965
4905
|
*/
|
|
4966
|
-
interface
|
|
4967
|
-
/**
|
|
4968
|
-
* The limetype of the active object (for %activeObject% placeholders)
|
|
4969
|
-
*/
|
|
4970
|
-
"activeLimetype"?: string;
|
|
4906
|
+
interface LimebbLimeQueryOrderByEditor {
|
|
4971
4907
|
/**
|
|
4972
4908
|
* Component context
|
|
4973
4909
|
*/
|
|
4974
4910
|
"context"?: LimeWebComponentContext;
|
|
4975
4911
|
/**
|
|
4976
|
-
*
|
|
4912
|
+
* Optional label
|
|
4977
4913
|
*/
|
|
4978
|
-
"
|
|
4914
|
+
"label"?: string;
|
|
4979
4915
|
/**
|
|
4980
|
-
*
|
|
4916
|
+
* The limetype to select properties from
|
|
4981
4917
|
*/
|
|
4982
|
-
"
|
|
4918
|
+
"limetype"?: string;
|
|
4983
4919
|
/**
|
|
4984
|
-
*
|
|
4920
|
+
* Emitted when the order by specification changes
|
|
4921
|
+
*/
|
|
4922
|
+
"onChange"?: (event: LimebbLimeQueryOrderByEditorCustomEvent<OrderByItem[]>) => void;
|
|
4923
|
+
/**
|
|
4924
|
+
* Platform service provider
|
|
4925
|
+
*/
|
|
4926
|
+
"platform"?: LimeWebComponentPlatform;
|
|
4927
|
+
/**
|
|
4928
|
+
* Current order by specification
|
|
4929
|
+
*/
|
|
4930
|
+
"value"?: OrderByItem[];
|
|
4931
|
+
}
|
|
4932
|
+
/**
|
|
4933
|
+
* Order By Item Component
|
|
4934
|
+
* Represents a single order by specification with property selection and direction toggle
|
|
4935
|
+
* Part of the order by editor
|
|
4936
|
+
* @private
|
|
4937
|
+
*/
|
|
4938
|
+
interface LimebbLimeQueryOrderByItem {
|
|
4939
|
+
/**
|
|
4940
|
+
* Component context
|
|
4941
|
+
*/
|
|
4942
|
+
"context"?: LimeWebComponentContext;
|
|
4943
|
+
/**
|
|
4944
|
+
* The order by item (e.g., { "company.name": "ASC" })
|
|
4945
|
+
*/
|
|
4946
|
+
"item"?: OrderByItem;
|
|
4947
|
+
/**
|
|
4948
|
+
* The limetype to select properties from
|
|
4985
4949
|
*/
|
|
4986
4950
|
"limetype"?: string;
|
|
4987
4951
|
/**
|
|
4988
|
-
* Emitted when the
|
|
4952
|
+
* Emitted when the item changes or should be removed
|
|
4989
4953
|
*/
|
|
4990
|
-
"
|
|
4954
|
+
"onItemChange"?: (event: LimebbLimeQueryOrderByItemCustomEvent<OrderByItem | null>) => void;
|
|
4991
4955
|
/**
|
|
4992
4956
|
* Platform service provider
|
|
4993
4957
|
*/
|
|
@@ -5037,7 +5001,7 @@ declare namespace LocalJSX {
|
|
|
5037
5001
|
/**
|
|
5038
5002
|
* The operator being used
|
|
5039
5003
|
*/
|
|
5040
|
-
"operator"?:
|
|
5004
|
+
"operator"?: Operator;
|
|
5041
5005
|
/**
|
|
5042
5006
|
* Platform service provider
|
|
5043
5007
|
*/
|
|
@@ -5892,13 +5856,13 @@ declare namespace LocalJSX {
|
|
|
5892
5856
|
"limebb-kanban-group": LimebbKanbanGroup;
|
|
5893
5857
|
"limebb-kanban-item": LimebbKanbanItem;
|
|
5894
5858
|
"limebb-lime-query-builder": LimebbLimeQueryBuilder;
|
|
5895
|
-
"limebb-lime-query-filter-and": LimebbLimeQueryFilterAnd;
|
|
5896
5859
|
"limebb-lime-query-filter-builder": LimebbLimeQueryFilterBuilder;
|
|
5897
5860
|
"limebb-lime-query-filter-comparison": LimebbLimeQueryFilterComparison;
|
|
5898
5861
|
"limebb-lime-query-filter-expression": LimebbLimeQueryFilterExpression;
|
|
5899
5862
|
"limebb-lime-query-filter-group": LimebbLimeQueryFilterGroup;
|
|
5900
5863
|
"limebb-lime-query-filter-not": LimebbLimeQueryFilterNot;
|
|
5901
|
-
"limebb-lime-query-
|
|
5864
|
+
"limebb-lime-query-order-by-editor": LimebbLimeQueryOrderByEditor;
|
|
5865
|
+
"limebb-lime-query-order-by-item": LimebbLimeQueryOrderByItem;
|
|
5902
5866
|
"limebb-lime-query-value-input": LimebbLimeQueryValueInput;
|
|
5903
5867
|
"limebb-limeobject-file-viewer": LimebbLimeobjectFileViewer;
|
|
5904
5868
|
"limebb-limetype-field": LimebbLimetypeField;
|
|
@@ -6219,19 +6183,6 @@ declare module "@stencil/core" {
|
|
|
6219
6183
|
* @private
|
|
6220
6184
|
*/
|
|
6221
6185
|
"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
6186
|
/**
|
|
6236
6187
|
* Lime Query Filter Builder
|
|
6237
6188
|
* Entry component for building Lime Query filter expressions.
|
|
@@ -6302,18 +6253,27 @@ declare module "@stencil/core" {
|
|
|
6302
6253
|
*/
|
|
6303
6254
|
"limebb-lime-query-filter-not": LocalJSX.LimebbLimeQueryFilterNot & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryFilterNotElement>;
|
|
6304
6255
|
/**
|
|
6305
|
-
*
|
|
6306
|
-
*
|
|
6307
|
-
*
|
|
6308
|
-
*
|
|
6309
|
-
*
|
|
6310
|
-
* -
|
|
6311
|
-
* -
|
|
6312
|
-
* -
|
|
6313
|
-
*
|
|
6256
|
+
* Order By Editor Component
|
|
6257
|
+
* Allows users to specify the order in which query results should be sorted.
|
|
6258
|
+
* Supports sorting by multiple properties with ascending or descending order.
|
|
6259
|
+
* Features:
|
|
6260
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
6261
|
+
* - **Sort direction**: Toggle between ascending (ASC) and descending (DESC)
|
|
6262
|
+
* - **Multiple sort fields**: Add multiple properties to create complex sorting
|
|
6263
|
+
* - **Order matters**: Properties are sorted in the order they appear in the list
|
|
6264
|
+
* - **Dynamic list**: Add/remove sort fields
|
|
6265
|
+
* The component generates an `OrderByItem[]` array where each item specifies
|
|
6266
|
+
* a property path and sort direction.
|
|
6267
|
+
* @private
|
|
6268
|
+
*/
|
|
6269
|
+
"limebb-lime-query-order-by-editor": LocalJSX.LimebbLimeQueryOrderByEditor & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryOrderByEditorElement>;
|
|
6270
|
+
/**
|
|
6271
|
+
* Order By Item Component
|
|
6272
|
+
* Represents a single order by specification with property selection and direction toggle
|
|
6273
|
+
* Part of the order by editor
|
|
6314
6274
|
* @private
|
|
6315
6275
|
*/
|
|
6316
|
-
"limebb-lime-query-
|
|
6276
|
+
"limebb-lime-query-order-by-item": LocalJSX.LimebbLimeQueryOrderByItem & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryOrderByItemElement>;
|
|
6317
6277
|
/**
|
|
6318
6278
|
* Query Value Input Component
|
|
6319
6279
|
* 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;
|