@limetech/lime-crm-building-blocks 1.100.1 → 1.102.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/lime-query-validation-6be10fa7.js +558 -0
- package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +22 -426
- package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +86 -243
- package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-filter-group_3.cjs.entry.js +2 -2
- package/dist/cjs/limebb-lime-query-order-by-item.cjs.entry.js +51 -0
- package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +242 -0
- package/dist/cjs/limebb-lime-query-response-format-editor_2.cjs.entry.js +322 -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-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 +5 -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/lime-query-builder.css +2 -5
- package/dist/collection/components/lime-query-builder/lime-query-builder.js +20 -20
- package/dist/collection/components/lime-query-builder/lime-query-response-format-builder.css +91 -0
- package/dist/collection/components/lime-query-builder/lime-query-response-format-builder.js +355 -0
- package/dist/collection/components/lime-query-builder/lime-query-validation.js +154 -7
- 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/lime-query-builder/{response-format-editor.css → response-format/response-format-editor.css} +1 -1
- package/dist/collection/components/lime-query-builder/{response-format-editor.js → response-format/response-format-editor.js} +5 -5
- package/dist/collection/components/lime-query-builder/response-format/response-format-helpers.js +92 -0
- package/dist/collection/components/lime-query-builder/{response-format-item.css → response-format/response-format-item.css} +1 -1
- package/dist/collection/components/lime-query-builder/{response-format-item.js → response-format/response-format-item.js} +6 -6
- 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-validation.js +555 -0
- package/dist/components/lime-query-value-input.js +1 -1
- package/dist/components/limebb-lime-query-builder.js +53 -444
- 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-lime-query-response-format-builder.d.ts +11 -0
- package/dist/components/limebb-lime-query-response-format-builder.js +283 -0
- package/dist/components/limebb-lime-query-response-format-editor.d.ts +11 -0
- package/dist/components/{limebb-response-format-editor.js → limebb-lime-query-response-format-editor.js} +2 -2
- package/dist/components/limebb-lime-query-response-format-item.d.ts +11 -0
- package/dist/components/{limebb-response-format-item.js → limebb-lime-query-response-format-item.js} +2 -2
- 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/response-format-editor.js +11 -11
- package/dist/components/response-format-item.js +9 -9
- package/dist/components/summary-popover.js +3 -3
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/lime-query-validation-573223a5.js +555 -0
- package/dist/esm/limebb-lime-query-builder.entry.js +22 -426
- package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +86 -243
- package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +1 -1
- package/dist/esm/limebb-lime-query-filter-group_3.entry.js +3 -3
- package/dist/esm/limebb-lime-query-order-by-item.entry.js +47 -0
- package/dist/esm/limebb-lime-query-response-format-builder.entry.js +238 -0
- package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +317 -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 +1 -1
- 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-79b8b09b.entry.js → p-0de79b7f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-1034b4a5.entry.js → p-0f7135ff.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-6aa216ec.entry.js → p-186e9f1a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-289ce8b9.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-3351395b.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-33e6d0ec.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-8581245a.entry.js → p-3d1be1c9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-b57dafef.entry.js → p-577d8909.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-89a6c396.entry.js → p-6579412e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-8fb2e192.entry.js → p-6f6fed59.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-58782467.entry.js → p-7e5528f6.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-2048ac67.entry.js → p-a9ac501f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-f79e354b.entry.js → p-abfc7815.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e0ab1554.js → p-b748c770.js} +1 -1
- package/dist/lime-crm-building-blocks/p-be845252.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-cb338753.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-76d81eee.entry.js → p-d0721b22.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-fa2da6bc.js +1 -0
- package/dist/types/components/lime-query-builder/lime-query-builder.d.ts +9 -6
- package/dist/types/components/lime-query-builder/lime-query-response-format-builder.d.ts +102 -0
- package/dist/types/components/lime-query-builder/lime-query-validation.d.ts +13 -0
- 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/lime-query-builder/{response-format-editor.d.ts → response-format/response-format-editor.d.ts} +2 -2
- package/dist/types/components/lime-query-builder/response-format/response-format-helpers.d.ts +42 -0
- package/dist/types/components/lime-query-builder/{response-format-item.d.ts → response-format/response-format-item.d.ts} +2 -2
- package/dist/types/components.d.ts +667 -279
- package/package.json +1 -1
- package/dist/cjs/limebb-response-format-item.cjs.entry.js +0 -80
- package/dist/components/limebb-response-format-editor.d.ts +0 -11
- package/dist/components/limebb-response-format-item.d.ts +0 -11
- package/dist/esm/limebb-response-format-item.entry.js +0 -76
- package/dist/lime-crm-building-blocks/p-244ee55b.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-323c49bc.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-f22b66f6.entry.js +0 -1
|
@@ -17,11 +17,11 @@ 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 { LimeQuery, ResponseFormat } from "./components/lime-query-builder/lime-query.types";
|
|
20
|
+
import { LimeQuery, OrderByItem, ResponseFormat } from "./components/lime-query-builder/lime-query.types";
|
|
21
|
+
import { PropertySelectionItem } from "./components/lime-query-builder/property-selection-format";
|
|
21
22
|
import { LanguagePickerType } from "./components/locale-picker/language-picker.types";
|
|
22
23
|
import { NavigationButtonType } from "./components/navigation-button/navigation-button.types";
|
|
23
24
|
import { NotificationItem } from "./components/notification-list/notification-item/notification-item.types";
|
|
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
27
|
export { AggregateOperator, AndOrExpression, Expression, LimeFileUrlType, LimeType, LimeWebComponentContext, LimeWebComponentPlatform, NotExpression, Operator } from "@limetech/lime-web-components";
|
|
@@ -36,11 +36,11 @@ 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 { LimeQuery, ResponseFormat } from "./components/lime-query-builder/lime-query.types";
|
|
39
|
+
export { LimeQuery, OrderByItem, ResponseFormat } from "./components/lime-query-builder/lime-query.types";
|
|
40
|
+
export { PropertySelectionItem } from "./components/lime-query-builder/property-selection-format";
|
|
40
41
|
export { LanguagePickerType } from "./components/locale-picker/language-picker.types";
|
|
41
42
|
export { NavigationButtonType } from "./components/navigation-button/navigation-button.types";
|
|
42
43
|
export { NotificationItem } from "./components/notification-list/notification-item/notification-item.types";
|
|
43
|
-
export { PropertySelectionItem } from "./components/lime-query-builder/property-selection-format";
|
|
44
44
|
export { TriggerMap } from "./components/text-editor/text-editor.types";
|
|
45
45
|
export { EnhancedEditorMetadata } from "./components/text-editor/uploader/building-blocks-upload-handler";
|
|
46
46
|
export namespace Components {
|
|
@@ -1179,6 +1179,174 @@ export namespace Components {
|
|
|
1179
1179
|
*/
|
|
1180
1180
|
"platform": LimeWebComponentPlatform;
|
|
1181
1181
|
}
|
|
1182
|
+
/**
|
|
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.
|
|
1194
|
+
* @private
|
|
1195
|
+
*/
|
|
1196
|
+
interface LimebbLimeQueryOrderByEditor {
|
|
1197
|
+
/**
|
|
1198
|
+
* Component context
|
|
1199
|
+
*/
|
|
1200
|
+
"context": LimeWebComponentContext;
|
|
1201
|
+
/**
|
|
1202
|
+
* Optional label
|
|
1203
|
+
*/
|
|
1204
|
+
"label": string;
|
|
1205
|
+
/**
|
|
1206
|
+
* The limetype to select properties from
|
|
1207
|
+
*/
|
|
1208
|
+
"limetype": string;
|
|
1209
|
+
/**
|
|
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
|
|
1235
|
+
*/
|
|
1236
|
+
"limetype": string;
|
|
1237
|
+
/**
|
|
1238
|
+
* Platform service provider
|
|
1239
|
+
*/
|
|
1240
|
+
"platform": LimeWebComponentPlatform;
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Response Format Builder
|
|
1244
|
+
* A focused component for editing Lime Query ResponseFormat in isolation.
|
|
1245
|
+
* Supports both GUI and code modes for maximum flexibility.
|
|
1246
|
+
* Use this component when you need to configure which properties to return
|
|
1247
|
+
* from a query, but don't need filter, limit, or other query parameters.
|
|
1248
|
+
* **Features**:
|
|
1249
|
+
* - **GUI Mode**: Visual property selector with relation navigation
|
|
1250
|
+
* - **Code Mode**: JSON editor for ResponseFormat structure
|
|
1251
|
+
* - **Validation**: Ensures JSON is valid ResponseFormat (rejects other fields)
|
|
1252
|
+
* - **Mode Toggle**: Switch between GUI and code modes seamlessly
|
|
1253
|
+
* - **Feature Flag**: Respects `useLimeQueryBuilderGuiMode` setting
|
|
1254
|
+
* @example ```tsx
|
|
1255
|
+
* <limebb-lime-query-response-format-builder
|
|
1256
|
+
* platform={this.platform}
|
|
1257
|
+
* context={this.context}
|
|
1258
|
+
* limetype="deal"
|
|
1259
|
+
* value={this.responseFormat}
|
|
1260
|
+
* label="Select Properties to Return"
|
|
1261
|
+
* onChange={this.handleChange}
|
|
1262
|
+
* />
|
|
1263
|
+
* ```
|
|
1264
|
+
* @exampleComponent limebb-example-response-format-builder-basic
|
|
1265
|
+
* @private
|
|
1266
|
+
*/
|
|
1267
|
+
interface LimebbLimeQueryResponseFormatBuilder {
|
|
1268
|
+
/**
|
|
1269
|
+
* Component context
|
|
1270
|
+
*/
|
|
1271
|
+
"context": LimeWebComponentContext;
|
|
1272
|
+
/**
|
|
1273
|
+
* Optional label for the builder
|
|
1274
|
+
*/
|
|
1275
|
+
"label": string;
|
|
1276
|
+
/**
|
|
1277
|
+
* The limetype to configure response format for This is fixed and not editable by the user
|
|
1278
|
+
*/
|
|
1279
|
+
"limetype": string;
|
|
1280
|
+
/**
|
|
1281
|
+
* Platform service provider
|
|
1282
|
+
*/
|
|
1283
|
+
"platform": LimeWebComponentPlatform;
|
|
1284
|
+
/**
|
|
1285
|
+
* Current response format value
|
|
1286
|
+
*/
|
|
1287
|
+
"value"?: ResponseFormat;
|
|
1288
|
+
}
|
|
1289
|
+
/**
|
|
1290
|
+
* Response Format Editor Component
|
|
1291
|
+
* Allows users to select which properties should be returned in the query response.
|
|
1292
|
+
* Supports selecting properties on both the main limetype and related limetypes
|
|
1293
|
+
* through belongsto relations.
|
|
1294
|
+
* Features:
|
|
1295
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
1296
|
+
* - **Nested properties**: Select properties on related objects (e.g., company.name)
|
|
1297
|
+
* - **Property aliases**: Optionally rename properties in the response
|
|
1298
|
+
* - **Dynamic list**: Add/remove property selections
|
|
1299
|
+
* - **Real-time updates**: Changes immediately update the responseFormat
|
|
1300
|
+
* The component generates a `ResponseFormat` object with the `object` field
|
|
1301
|
+
* containing the selected properties.
|
|
1302
|
+
* @private
|
|
1303
|
+
*/
|
|
1304
|
+
interface LimebbLimeQueryResponseFormatEditor {
|
|
1305
|
+
/**
|
|
1306
|
+
* Component context
|
|
1307
|
+
*/
|
|
1308
|
+
"context": LimeWebComponentContext;
|
|
1309
|
+
/**
|
|
1310
|
+
* Optional label
|
|
1311
|
+
*/
|
|
1312
|
+
"label": string;
|
|
1313
|
+
/**
|
|
1314
|
+
* The limetype to select properties from
|
|
1315
|
+
*/
|
|
1316
|
+
"limetype": string;
|
|
1317
|
+
/**
|
|
1318
|
+
* Platform service provider
|
|
1319
|
+
*/
|
|
1320
|
+
"platform": LimeWebComponentPlatform;
|
|
1321
|
+
/**
|
|
1322
|
+
* Current response format
|
|
1323
|
+
*/
|
|
1324
|
+
"value": ResponseFormat;
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Response Format Property Item Component
|
|
1328
|
+
* Represents a single property selection with optional alias and description
|
|
1329
|
+
* Part of the response format editor
|
|
1330
|
+
* @private
|
|
1331
|
+
*/
|
|
1332
|
+
interface LimebbLimeQueryResponseFormatItem {
|
|
1333
|
+
/**
|
|
1334
|
+
* Component context
|
|
1335
|
+
*/
|
|
1336
|
+
"context": LimeWebComponentContext;
|
|
1337
|
+
/**
|
|
1338
|
+
* The property selection item
|
|
1339
|
+
*/
|
|
1340
|
+
"item": PropertySelectionItem;
|
|
1341
|
+
/**
|
|
1342
|
+
* The limetype to select properties from
|
|
1343
|
+
*/
|
|
1344
|
+
"limetype": string;
|
|
1345
|
+
/**
|
|
1346
|
+
* Platform service provider
|
|
1347
|
+
*/
|
|
1348
|
+
"platform": LimeWebComponentPlatform;
|
|
1349
|
+
}
|
|
1182
1350
|
/**
|
|
1183
1351
|
* Query Value Input Component
|
|
1184
1352
|
* Renders an appropriate input control based on the property type and operator.
|
|
@@ -1660,67 +1828,6 @@ export namespace Components {
|
|
|
1660
1828
|
*/
|
|
1661
1829
|
"value": string;
|
|
1662
1830
|
}
|
|
1663
|
-
/**
|
|
1664
|
-
* Response Format Editor Component
|
|
1665
|
-
* Allows users to select which properties should be returned in the query response.
|
|
1666
|
-
* Supports selecting properties on both the main limetype and related limetypes
|
|
1667
|
-
* through belongsto relations.
|
|
1668
|
-
* Features:
|
|
1669
|
-
* - **Property selection**: Choose properties using dropdown navigation
|
|
1670
|
-
* - **Nested properties**: Select properties on related objects (e.g., company.name)
|
|
1671
|
-
* - **Property aliases**: Optionally rename properties in the response
|
|
1672
|
-
* - **Dynamic list**: Add/remove property selections
|
|
1673
|
-
* - **Real-time updates**: Changes immediately update the responseFormat
|
|
1674
|
-
* The component generates a `ResponseFormat` object with the `object` field
|
|
1675
|
-
* containing the selected properties.
|
|
1676
|
-
* @private
|
|
1677
|
-
*/
|
|
1678
|
-
interface LimebbResponseFormatEditor {
|
|
1679
|
-
/**
|
|
1680
|
-
* Component context
|
|
1681
|
-
*/
|
|
1682
|
-
"context": LimeWebComponentContext;
|
|
1683
|
-
/**
|
|
1684
|
-
* Optional label
|
|
1685
|
-
*/
|
|
1686
|
-
"label": string;
|
|
1687
|
-
/**
|
|
1688
|
-
* The limetype to select properties from
|
|
1689
|
-
*/
|
|
1690
|
-
"limetype": string;
|
|
1691
|
-
/**
|
|
1692
|
-
* Platform service provider
|
|
1693
|
-
*/
|
|
1694
|
-
"platform": LimeWebComponentPlatform;
|
|
1695
|
-
/**
|
|
1696
|
-
* Current response format
|
|
1697
|
-
*/
|
|
1698
|
-
"value": ResponseFormat;
|
|
1699
|
-
}
|
|
1700
|
-
/**
|
|
1701
|
-
* Response Format Property Item Component
|
|
1702
|
-
* Represents a single property selection with optional alias and description
|
|
1703
|
-
* Part of the response format editor
|
|
1704
|
-
* @private
|
|
1705
|
-
*/
|
|
1706
|
-
interface LimebbResponseFormatItem {
|
|
1707
|
-
/**
|
|
1708
|
-
* Component context
|
|
1709
|
-
*/
|
|
1710
|
-
"context": LimeWebComponentContext;
|
|
1711
|
-
/**
|
|
1712
|
-
* The property selection item
|
|
1713
|
-
*/
|
|
1714
|
-
"item": PropertySelectionItem;
|
|
1715
|
-
/**
|
|
1716
|
-
* The limetype to select properties from
|
|
1717
|
-
*/
|
|
1718
|
-
"limetype": string;
|
|
1719
|
-
/**
|
|
1720
|
-
* Platform service provider
|
|
1721
|
-
*/
|
|
1722
|
-
"platform": LimeWebComponentPlatform;
|
|
1723
|
-
}
|
|
1724
1831
|
/**
|
|
1725
1832
|
* This component uses
|
|
1726
1833
|
* [limel-popover](https://lundalogik.github.io/lime-elements/versions/latest/#/component/limel-popover/)
|
|
@@ -2096,6 +2203,26 @@ export interface LimebbLimeQueryFilterNotCustomEvent<T> extends CustomEvent<T> {
|
|
|
2096
2203
|
detail: T;
|
|
2097
2204
|
target: HTMLLimebbLimeQueryFilterNotElement;
|
|
2098
2205
|
}
|
|
2206
|
+
export interface LimebbLimeQueryOrderByEditorCustomEvent<T> extends CustomEvent<T> {
|
|
2207
|
+
detail: T;
|
|
2208
|
+
target: HTMLLimebbLimeQueryOrderByEditorElement;
|
|
2209
|
+
}
|
|
2210
|
+
export interface LimebbLimeQueryOrderByItemCustomEvent<T> extends CustomEvent<T> {
|
|
2211
|
+
detail: T;
|
|
2212
|
+
target: HTMLLimebbLimeQueryOrderByItemElement;
|
|
2213
|
+
}
|
|
2214
|
+
export interface LimebbLimeQueryResponseFormatBuilderCustomEvent<T> extends CustomEvent<T> {
|
|
2215
|
+
detail: T;
|
|
2216
|
+
target: HTMLLimebbLimeQueryResponseFormatBuilderElement;
|
|
2217
|
+
}
|
|
2218
|
+
export interface LimebbLimeQueryResponseFormatEditorCustomEvent<T> extends CustomEvent<T> {
|
|
2219
|
+
detail: T;
|
|
2220
|
+
target: HTMLLimebbLimeQueryResponseFormatEditorElement;
|
|
2221
|
+
}
|
|
2222
|
+
export interface LimebbLimeQueryResponseFormatItemCustomEvent<T> extends CustomEvent<T> {
|
|
2223
|
+
detail: T;
|
|
2224
|
+
target: HTMLLimebbLimeQueryResponseFormatItemElement;
|
|
2225
|
+
}
|
|
2099
2226
|
export interface LimebbLimeQueryValueInputCustomEvent<T> extends CustomEvent<T> {
|
|
2100
2227
|
detail: T;
|
|
2101
2228
|
target: HTMLLimebbLimeQueryValueInputElement;
|
|
@@ -2124,14 +2251,6 @@ export interface LimebbPropertySelectorCustomEvent<T> extends CustomEvent<T> {
|
|
|
2124
2251
|
detail: T;
|
|
2125
2252
|
target: HTMLLimebbPropertySelectorElement;
|
|
2126
2253
|
}
|
|
2127
|
-
export interface LimebbResponseFormatEditorCustomEvent<T> extends CustomEvent<T> {
|
|
2128
|
-
detail: T;
|
|
2129
|
-
target: HTMLLimebbResponseFormatEditorElement;
|
|
2130
|
-
}
|
|
2131
|
-
export interface LimebbResponseFormatItemCustomEvent<T> extends CustomEvent<T> {
|
|
2132
|
-
detail: T;
|
|
2133
|
-
target: HTMLLimebbResponseFormatItemElement;
|
|
2134
|
-
}
|
|
2135
2254
|
export interface LimebbSummaryPopoverCustomEvent<T> extends CustomEvent<T> {
|
|
2136
2255
|
detail: T;
|
|
2137
2256
|
target: HTMLLimebbSummaryPopoverElement;
|
|
@@ -2947,77 +3066,228 @@ declare global {
|
|
|
2947
3066
|
prototype: HTMLLimebbLimeQueryFilterNotElement;
|
|
2948
3067
|
new (): HTMLLimebbLimeQueryFilterNotElement;
|
|
2949
3068
|
};
|
|
2950
|
-
interface
|
|
2951
|
-
"change":
|
|
3069
|
+
interface HTMLLimebbLimeQueryOrderByEditorElementEventMap {
|
|
3070
|
+
"change": OrderByItem[];
|
|
2952
3071
|
}
|
|
2953
3072
|
/**
|
|
2954
|
-
*
|
|
2955
|
-
*
|
|
2956
|
-
*
|
|
2957
|
-
*
|
|
2958
|
-
*
|
|
2959
|
-
* - **
|
|
2960
|
-
* - **
|
|
2961
|
-
* - **
|
|
2962
|
-
* - **
|
|
2963
|
-
*
|
|
2964
|
-
*
|
|
2965
|
-
* - **IN operator**: Comma-separated input for multiple values (any type)
|
|
2966
|
-
* - **Placeholder mode**: Select properties from active object using %activeObject%
|
|
2967
|
-
* The component handles type conversions automatically:
|
|
2968
|
-
* - Numbers are parsed from string inputs
|
|
2969
|
-
* - Dates are converted to/from ISO strings
|
|
2970
|
-
* - Booleans are converted to/from strings for dropdown compatibility
|
|
3073
|
+
* Order By Editor Component
|
|
3074
|
+
* Allows users to specify the order in which query results should be sorted.
|
|
3075
|
+
* Supports sorting by multiple properties with ascending or descending order.
|
|
3076
|
+
* Features:
|
|
3077
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
3078
|
+
* - **Sort direction**: Toggle between ascending (ASC) and descending (DESC)
|
|
3079
|
+
* - **Multiple sort fields**: Add multiple properties to create complex sorting
|
|
3080
|
+
* - **Order matters**: Properties are sorted in the order they appear in the list
|
|
3081
|
+
* - **Dynamic list**: Add/remove sort fields
|
|
3082
|
+
* The component generates an `OrderByItem[]` array where each item specifies
|
|
3083
|
+
* a property path and sort direction.
|
|
2971
3084
|
* @private
|
|
2972
3085
|
*/
|
|
2973
|
-
interface
|
|
2974
|
-
addEventListener<K extends keyof
|
|
3086
|
+
interface HTMLLimebbLimeQueryOrderByEditorElement extends Components.LimebbLimeQueryOrderByEditor, HTMLStencilElement {
|
|
3087
|
+
addEventListener<K extends keyof HTMLLimebbLimeQueryOrderByEditorElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryOrderByEditorElement, ev: LimebbLimeQueryOrderByEditorCustomEvent<HTMLLimebbLimeQueryOrderByEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2975
3088
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2976
3089
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2977
3090
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2978
|
-
removeEventListener<K extends keyof
|
|
3091
|
+
removeEventListener<K extends keyof HTMLLimebbLimeQueryOrderByEditorElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryOrderByEditorElement, ev: LimebbLimeQueryOrderByEditorCustomEvent<HTMLLimebbLimeQueryOrderByEditorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2979
3092
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2980
3093
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2981
3094
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2982
3095
|
}
|
|
2983
|
-
var
|
|
2984
|
-
prototype:
|
|
2985
|
-
new ():
|
|
2986
|
-
};
|
|
2987
|
-
/**
|
|
2988
|
-
* Component for displaying the contents of an attached file on a limeobject
|
|
2989
|
-
* Example use case is to use it as a tab on the document card
|
|
2990
|
-
* @exampleComponent limebb-example-limeobject-file-viewer
|
|
2991
|
-
* @exampleComponent limebb-example-limeobject-file-viewer-not-found
|
|
2992
|
-
* @exampleComponent limebb-example-limeobject-file-viewer-live-docs
|
|
2993
|
-
* @beta
|
|
2994
|
-
*/
|
|
2995
|
-
interface HTMLLimebbLimeobjectFileViewerElement extends Components.LimebbLimeobjectFileViewer, HTMLStencilElement {
|
|
2996
|
-
}
|
|
2997
|
-
var HTMLLimebbLimeobjectFileViewerElement: {
|
|
2998
|
-
prototype: HTMLLimebbLimeobjectFileViewerElement;
|
|
2999
|
-
new (): HTMLLimebbLimeobjectFileViewerElement;
|
|
3096
|
+
var HTMLLimebbLimeQueryOrderByEditorElement: {
|
|
3097
|
+
prototype: HTMLLimebbLimeQueryOrderByEditorElement;
|
|
3098
|
+
new (): HTMLLimebbLimeQueryOrderByEditorElement;
|
|
3000
3099
|
};
|
|
3001
|
-
interface
|
|
3002
|
-
"
|
|
3100
|
+
interface HTMLLimebbLimeQueryOrderByItemElementEventMap {
|
|
3101
|
+
"itemChange": OrderByItem | null;
|
|
3003
3102
|
}
|
|
3004
3103
|
/**
|
|
3005
|
-
*
|
|
3006
|
-
*
|
|
3007
|
-
*
|
|
3008
|
-
* This component:
|
|
3009
|
-
* - Displays all limetypes with their icons and localized names
|
|
3010
|
-
* - Supports restricting to a specific list of limetypes
|
|
3011
|
-
* - Can update dependent property-path fields when selection changes
|
|
3012
|
-
* - Implements the FormComponent interface for use in forms
|
|
3013
|
-
* Common use cases:
|
|
3014
|
-
* - Selecting which object type to query in a lime query builder
|
|
3015
|
-
* - Choosing target limetype for relations
|
|
3016
|
-
* - Configuring limetype-dependent settings
|
|
3104
|
+
* Order By Item Component
|
|
3105
|
+
* Represents a single order by specification with property selection and direction toggle
|
|
3106
|
+
* Part of the order by editor
|
|
3017
3107
|
* @private
|
|
3018
3108
|
*/
|
|
3019
|
-
interface
|
|
3020
|
-
addEventListener<K extends keyof
|
|
3109
|
+
interface HTMLLimebbLimeQueryOrderByItemElement extends Components.LimebbLimeQueryOrderByItem, HTMLStencilElement {
|
|
3110
|
+
addEventListener<K extends keyof HTMLLimebbLimeQueryOrderByItemElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryOrderByItemElement, ev: LimebbLimeQueryOrderByItemCustomEvent<HTMLLimebbLimeQueryOrderByItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3111
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3112
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3113
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3114
|
+
removeEventListener<K extends keyof HTMLLimebbLimeQueryOrderByItemElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryOrderByItemElement, ev: LimebbLimeQueryOrderByItemCustomEvent<HTMLLimebbLimeQueryOrderByItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3115
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3116
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3117
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3118
|
+
}
|
|
3119
|
+
var HTMLLimebbLimeQueryOrderByItemElement: {
|
|
3120
|
+
prototype: HTMLLimebbLimeQueryOrderByItemElement;
|
|
3121
|
+
new (): HTMLLimebbLimeQueryOrderByItemElement;
|
|
3122
|
+
};
|
|
3123
|
+
interface HTMLLimebbLimeQueryResponseFormatBuilderElementEventMap {
|
|
3124
|
+
"change": ResponseFormat;
|
|
3125
|
+
}
|
|
3126
|
+
/**
|
|
3127
|
+
* Response Format Builder
|
|
3128
|
+
* A focused component for editing Lime Query ResponseFormat in isolation.
|
|
3129
|
+
* Supports both GUI and code modes for maximum flexibility.
|
|
3130
|
+
* Use this component when you need to configure which properties to return
|
|
3131
|
+
* from a query, but don't need filter, limit, or other query parameters.
|
|
3132
|
+
* **Features**:
|
|
3133
|
+
* - **GUI Mode**: Visual property selector with relation navigation
|
|
3134
|
+
* - **Code Mode**: JSON editor for ResponseFormat structure
|
|
3135
|
+
* - **Validation**: Ensures JSON is valid ResponseFormat (rejects other fields)
|
|
3136
|
+
* - **Mode Toggle**: Switch between GUI and code modes seamlessly
|
|
3137
|
+
* - **Feature Flag**: Respects `useLimeQueryBuilderGuiMode` setting
|
|
3138
|
+
* @example ```tsx
|
|
3139
|
+
* <limebb-lime-query-response-format-builder
|
|
3140
|
+
* platform={this.platform}
|
|
3141
|
+
* context={this.context}
|
|
3142
|
+
* limetype="deal"
|
|
3143
|
+
* value={this.responseFormat}
|
|
3144
|
+
* label="Select Properties to Return"
|
|
3145
|
+
* onChange={this.handleChange}
|
|
3146
|
+
* />
|
|
3147
|
+
* ```
|
|
3148
|
+
* @exampleComponent limebb-example-response-format-builder-basic
|
|
3149
|
+
* @private
|
|
3150
|
+
*/
|
|
3151
|
+
interface HTMLLimebbLimeQueryResponseFormatBuilderElement extends Components.LimebbLimeQueryResponseFormatBuilder, HTMLStencilElement {
|
|
3152
|
+
addEventListener<K extends keyof HTMLLimebbLimeQueryResponseFormatBuilderElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryResponseFormatBuilderElement, ev: LimebbLimeQueryResponseFormatBuilderCustomEvent<HTMLLimebbLimeQueryResponseFormatBuilderElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3153
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3154
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3155
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3156
|
+
removeEventListener<K extends keyof HTMLLimebbLimeQueryResponseFormatBuilderElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryResponseFormatBuilderElement, ev: LimebbLimeQueryResponseFormatBuilderCustomEvent<HTMLLimebbLimeQueryResponseFormatBuilderElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3157
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3158
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3159
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3160
|
+
}
|
|
3161
|
+
var HTMLLimebbLimeQueryResponseFormatBuilderElement: {
|
|
3162
|
+
prototype: HTMLLimebbLimeQueryResponseFormatBuilderElement;
|
|
3163
|
+
new (): HTMLLimebbLimeQueryResponseFormatBuilderElement;
|
|
3164
|
+
};
|
|
3165
|
+
interface HTMLLimebbLimeQueryResponseFormatEditorElementEventMap {
|
|
3166
|
+
"change": ResponseFormat;
|
|
3167
|
+
}
|
|
3168
|
+
/**
|
|
3169
|
+
* Response Format Editor Component
|
|
3170
|
+
* Allows users to select which properties should be returned in the query response.
|
|
3171
|
+
* Supports selecting properties on both the main limetype and related limetypes
|
|
3172
|
+
* through belongsto relations.
|
|
3173
|
+
* Features:
|
|
3174
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
3175
|
+
* - **Nested properties**: Select properties on related objects (e.g., company.name)
|
|
3176
|
+
* - **Property aliases**: Optionally rename properties in the response
|
|
3177
|
+
* - **Dynamic list**: Add/remove property selections
|
|
3178
|
+
* - **Real-time updates**: Changes immediately update the responseFormat
|
|
3179
|
+
* The component generates a `ResponseFormat` object with the `object` field
|
|
3180
|
+
* containing the selected properties.
|
|
3181
|
+
* @private
|
|
3182
|
+
*/
|
|
3183
|
+
interface HTMLLimebbLimeQueryResponseFormatEditorElement extends Components.LimebbLimeQueryResponseFormatEditor, HTMLStencilElement {
|
|
3184
|
+
addEventListener<K extends keyof HTMLLimebbLimeQueryResponseFormatEditorElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryResponseFormatEditorElement, ev: LimebbLimeQueryResponseFormatEditorCustomEvent<HTMLLimebbLimeQueryResponseFormatEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3185
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3186
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3187
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3188
|
+
removeEventListener<K extends keyof HTMLLimebbLimeQueryResponseFormatEditorElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryResponseFormatEditorElement, ev: LimebbLimeQueryResponseFormatEditorCustomEvent<HTMLLimebbLimeQueryResponseFormatEditorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3189
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3190
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3191
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3192
|
+
}
|
|
3193
|
+
var HTMLLimebbLimeQueryResponseFormatEditorElement: {
|
|
3194
|
+
prototype: HTMLLimebbLimeQueryResponseFormatEditorElement;
|
|
3195
|
+
new (): HTMLLimebbLimeQueryResponseFormatEditorElement;
|
|
3196
|
+
};
|
|
3197
|
+
interface HTMLLimebbLimeQueryResponseFormatItemElementEventMap {
|
|
3198
|
+
"itemChange": PropertySelectionItem | null;
|
|
3199
|
+
}
|
|
3200
|
+
/**
|
|
3201
|
+
* Response Format Property Item Component
|
|
3202
|
+
* Represents a single property selection with optional alias and description
|
|
3203
|
+
* Part of the response format editor
|
|
3204
|
+
* @private
|
|
3205
|
+
*/
|
|
3206
|
+
interface HTMLLimebbLimeQueryResponseFormatItemElement extends Components.LimebbLimeQueryResponseFormatItem, HTMLStencilElement {
|
|
3207
|
+
addEventListener<K extends keyof HTMLLimebbLimeQueryResponseFormatItemElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryResponseFormatItemElement, ev: LimebbLimeQueryResponseFormatItemCustomEvent<HTMLLimebbLimeQueryResponseFormatItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3208
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3209
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3210
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3211
|
+
removeEventListener<K extends keyof HTMLLimebbLimeQueryResponseFormatItemElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryResponseFormatItemElement, ev: LimebbLimeQueryResponseFormatItemCustomEvent<HTMLLimebbLimeQueryResponseFormatItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3212
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3213
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3214
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3215
|
+
}
|
|
3216
|
+
var HTMLLimebbLimeQueryResponseFormatItemElement: {
|
|
3217
|
+
prototype: HTMLLimebbLimeQueryResponseFormatItemElement;
|
|
3218
|
+
new (): HTMLLimebbLimeQueryResponseFormatItemElement;
|
|
3219
|
+
};
|
|
3220
|
+
interface HTMLLimebbLimeQueryValueInputElementEventMap {
|
|
3221
|
+
"change": any;
|
|
3222
|
+
}
|
|
3223
|
+
/**
|
|
3224
|
+
* Query Value Input Component
|
|
3225
|
+
* Renders an appropriate input control based on the property type and operator.
|
|
3226
|
+
* This component automatically adapts its UI to match the data type of the selected
|
|
3227
|
+
* property, providing a better user experience and data validation.
|
|
3228
|
+
* Supported input types:
|
|
3229
|
+
* - **String/Text**: Standard text input field
|
|
3230
|
+
* - **Integer/Decimal**: Number input with appropriate step values
|
|
3231
|
+
* - **Date**: Date picker returning ISO date strings
|
|
3232
|
+
* - **Time**: Time input field
|
|
3233
|
+
* - **Boolean (yesno)**: True/False dropdown
|
|
3234
|
+
* - **Option**: Dropdown populated with valid options from property definition
|
|
3235
|
+
* - **IN operator**: Comma-separated input for multiple values (any type)
|
|
3236
|
+
* - **Placeholder mode**: Select properties from active object using %activeObject%
|
|
3237
|
+
* The component handles type conversions automatically:
|
|
3238
|
+
* - Numbers are parsed from string inputs
|
|
3239
|
+
* - Dates are converted to/from ISO strings
|
|
3240
|
+
* - Booleans are converted to/from strings for dropdown compatibility
|
|
3241
|
+
* @private
|
|
3242
|
+
*/
|
|
3243
|
+
interface HTMLLimebbLimeQueryValueInputElement extends Components.LimebbLimeQueryValueInput, HTMLStencilElement {
|
|
3244
|
+
addEventListener<K extends keyof HTMLLimebbLimeQueryValueInputElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryValueInputElement, ev: LimebbLimeQueryValueInputCustomEvent<HTMLLimebbLimeQueryValueInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3245
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3246
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3247
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3248
|
+
removeEventListener<K extends keyof HTMLLimebbLimeQueryValueInputElementEventMap>(type: K, listener: (this: HTMLLimebbLimeQueryValueInputElement, ev: LimebbLimeQueryValueInputCustomEvent<HTMLLimebbLimeQueryValueInputElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3249
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3250
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3251
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3252
|
+
}
|
|
3253
|
+
var HTMLLimebbLimeQueryValueInputElement: {
|
|
3254
|
+
prototype: HTMLLimebbLimeQueryValueInputElement;
|
|
3255
|
+
new (): HTMLLimebbLimeQueryValueInputElement;
|
|
3256
|
+
};
|
|
3257
|
+
/**
|
|
3258
|
+
* Component for displaying the contents of an attached file on a limeobject
|
|
3259
|
+
* Example use case is to use it as a tab on the document card
|
|
3260
|
+
* @exampleComponent limebb-example-limeobject-file-viewer
|
|
3261
|
+
* @exampleComponent limebb-example-limeobject-file-viewer-not-found
|
|
3262
|
+
* @exampleComponent limebb-example-limeobject-file-viewer-live-docs
|
|
3263
|
+
* @beta
|
|
3264
|
+
*/
|
|
3265
|
+
interface HTMLLimebbLimeobjectFileViewerElement extends Components.LimebbLimeobjectFileViewer, HTMLStencilElement {
|
|
3266
|
+
}
|
|
3267
|
+
var HTMLLimebbLimeobjectFileViewerElement: {
|
|
3268
|
+
prototype: HTMLLimebbLimeobjectFileViewerElement;
|
|
3269
|
+
new (): HTMLLimebbLimeobjectFileViewerElement;
|
|
3270
|
+
};
|
|
3271
|
+
interface HTMLLimebbLimetypeFieldElementEventMap {
|
|
3272
|
+
"change": string;
|
|
3273
|
+
}
|
|
3274
|
+
/**
|
|
3275
|
+
* Limetype Field Component
|
|
3276
|
+
* A dropdown selector for choosing a limetype (object type) from the available
|
|
3277
|
+
* limetypes in the system.
|
|
3278
|
+
* This component:
|
|
3279
|
+
* - Displays all limetypes with their icons and localized names
|
|
3280
|
+
* - Supports restricting to a specific list of limetypes
|
|
3281
|
+
* - Can update dependent property-path fields when selection changes
|
|
3282
|
+
* - Implements the FormComponent interface for use in forms
|
|
3283
|
+
* Common use cases:
|
|
3284
|
+
* - Selecting which object type to query in a lime query builder
|
|
3285
|
+
* - Choosing target limetype for relations
|
|
3286
|
+
* - Configuring limetype-dependent settings
|
|
3287
|
+
* @private
|
|
3288
|
+
*/
|
|
3289
|
+
interface HTMLLimebbLimetypeFieldElement extends Components.LimebbLimetypeField, HTMLStencilElement {
|
|
3290
|
+
addEventListener<K extends keyof HTMLLimebbLimetypeFieldElementEventMap>(type: K, listener: (this: HTMLLimebbLimetypeFieldElement, ev: LimebbLimetypeFieldCustomEvent<HTMLLimebbLimetypeFieldElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3021
3291
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3022
3292
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3023
3293
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -3244,61 +3514,6 @@ declare global {
|
|
|
3244
3514
|
prototype: HTMLLimebbPropertySelectorElement;
|
|
3245
3515
|
new (): HTMLLimebbPropertySelectorElement;
|
|
3246
3516
|
};
|
|
3247
|
-
interface HTMLLimebbResponseFormatEditorElementEventMap {
|
|
3248
|
-
"change": ResponseFormat;
|
|
3249
|
-
}
|
|
3250
|
-
/**
|
|
3251
|
-
* Response Format Editor Component
|
|
3252
|
-
* Allows users to select which properties should be returned in the query response.
|
|
3253
|
-
* Supports selecting properties on both the main limetype and related limetypes
|
|
3254
|
-
* through belongsto relations.
|
|
3255
|
-
* Features:
|
|
3256
|
-
* - **Property selection**: Choose properties using dropdown navigation
|
|
3257
|
-
* - **Nested properties**: Select properties on related objects (e.g., company.name)
|
|
3258
|
-
* - **Property aliases**: Optionally rename properties in the response
|
|
3259
|
-
* - **Dynamic list**: Add/remove property selections
|
|
3260
|
-
* - **Real-time updates**: Changes immediately update the responseFormat
|
|
3261
|
-
* The component generates a `ResponseFormat` object with the `object` field
|
|
3262
|
-
* containing the selected properties.
|
|
3263
|
-
* @private
|
|
3264
|
-
*/
|
|
3265
|
-
interface HTMLLimebbResponseFormatEditorElement extends Components.LimebbResponseFormatEditor, HTMLStencilElement {
|
|
3266
|
-
addEventListener<K extends keyof HTMLLimebbResponseFormatEditorElementEventMap>(type: K, listener: (this: HTMLLimebbResponseFormatEditorElement, ev: LimebbResponseFormatEditorCustomEvent<HTMLLimebbResponseFormatEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3267
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3268
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3269
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3270
|
-
removeEventListener<K extends keyof HTMLLimebbResponseFormatEditorElementEventMap>(type: K, listener: (this: HTMLLimebbResponseFormatEditorElement, ev: LimebbResponseFormatEditorCustomEvent<HTMLLimebbResponseFormatEditorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3271
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3272
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3273
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3274
|
-
}
|
|
3275
|
-
var HTMLLimebbResponseFormatEditorElement: {
|
|
3276
|
-
prototype: HTMLLimebbResponseFormatEditorElement;
|
|
3277
|
-
new (): HTMLLimebbResponseFormatEditorElement;
|
|
3278
|
-
};
|
|
3279
|
-
interface HTMLLimebbResponseFormatItemElementEventMap {
|
|
3280
|
-
"itemChange": PropertySelectionItem | null;
|
|
3281
|
-
}
|
|
3282
|
-
/**
|
|
3283
|
-
* Response Format Property Item Component
|
|
3284
|
-
* Represents a single property selection with optional alias and description
|
|
3285
|
-
* Part of the response format editor
|
|
3286
|
-
* @private
|
|
3287
|
-
*/
|
|
3288
|
-
interface HTMLLimebbResponseFormatItemElement extends Components.LimebbResponseFormatItem, HTMLStencilElement {
|
|
3289
|
-
addEventListener<K extends keyof HTMLLimebbResponseFormatItemElementEventMap>(type: K, listener: (this: HTMLLimebbResponseFormatItemElement, ev: LimebbResponseFormatItemCustomEvent<HTMLLimebbResponseFormatItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3290
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3291
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3292
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3293
|
-
removeEventListener<K extends keyof HTMLLimebbResponseFormatItemElementEventMap>(type: K, listener: (this: HTMLLimebbResponseFormatItemElement, ev: LimebbResponseFormatItemCustomEvent<HTMLLimebbResponseFormatItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3294
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3295
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3296
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3297
|
-
}
|
|
3298
|
-
var HTMLLimebbResponseFormatItemElement: {
|
|
3299
|
-
prototype: HTMLLimebbResponseFormatItemElement;
|
|
3300
|
-
new (): HTMLLimebbResponseFormatItemElement;
|
|
3301
|
-
};
|
|
3302
3517
|
interface HTMLLimebbSummaryPopoverElementEventMap {
|
|
3303
3518
|
"actionSelected": ActionBarItem;
|
|
3304
3519
|
}
|
|
@@ -3491,6 +3706,11 @@ declare global {
|
|
|
3491
3706
|
"limebb-lime-query-filter-expression": HTMLLimebbLimeQueryFilterExpressionElement;
|
|
3492
3707
|
"limebb-lime-query-filter-group": HTMLLimebbLimeQueryFilterGroupElement;
|
|
3493
3708
|
"limebb-lime-query-filter-not": HTMLLimebbLimeQueryFilterNotElement;
|
|
3709
|
+
"limebb-lime-query-order-by-editor": HTMLLimebbLimeQueryOrderByEditorElement;
|
|
3710
|
+
"limebb-lime-query-order-by-item": HTMLLimebbLimeQueryOrderByItemElement;
|
|
3711
|
+
"limebb-lime-query-response-format-builder": HTMLLimebbLimeQueryResponseFormatBuilderElement;
|
|
3712
|
+
"limebb-lime-query-response-format-editor": HTMLLimebbLimeQueryResponseFormatEditorElement;
|
|
3713
|
+
"limebb-lime-query-response-format-item": HTMLLimebbLimeQueryResponseFormatItemElement;
|
|
3494
3714
|
"limebb-lime-query-value-input": HTMLLimebbLimeQueryValueInputElement;
|
|
3495
3715
|
"limebb-limeobject-file-viewer": HTMLLimebbLimeobjectFileViewerElement;
|
|
3496
3716
|
"limebb-limetype-field": HTMLLimebbLimetypeFieldElement;
|
|
@@ -3504,8 +3724,6 @@ declare global {
|
|
|
3504
3724
|
"limebb-notification-list": HTMLLimebbNotificationListElement;
|
|
3505
3725
|
"limebb-percentage-visualizer": HTMLLimebbPercentageVisualizerElement;
|
|
3506
3726
|
"limebb-property-selector": HTMLLimebbPropertySelectorElement;
|
|
3507
|
-
"limebb-response-format-editor": HTMLLimebbResponseFormatEditorElement;
|
|
3508
|
-
"limebb-response-format-item": HTMLLimebbResponseFormatItemElement;
|
|
3509
3727
|
"limebb-summary-popover": HTMLLimebbSummaryPopoverElement;
|
|
3510
3728
|
"limebb-text-editor": HTMLLimebbTextEditorElement;
|
|
3511
3729
|
"limebb-text-editor-picker": HTMLLimebbTextEditorPickerElement;
|
|
@@ -4765,6 +4983,194 @@ declare namespace LocalJSX {
|
|
|
4765
4983
|
*/
|
|
4766
4984
|
"platform"?: LimeWebComponentPlatform;
|
|
4767
4985
|
}
|
|
4986
|
+
/**
|
|
4987
|
+
* Order By Editor Component
|
|
4988
|
+
* Allows users to specify the order in which query results should be sorted.
|
|
4989
|
+
* Supports sorting by multiple properties with ascending or descending order.
|
|
4990
|
+
* Features:
|
|
4991
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
4992
|
+
* - **Sort direction**: Toggle between ascending (ASC) and descending (DESC)
|
|
4993
|
+
* - **Multiple sort fields**: Add multiple properties to create complex sorting
|
|
4994
|
+
* - **Order matters**: Properties are sorted in the order they appear in the list
|
|
4995
|
+
* - **Dynamic list**: Add/remove sort fields
|
|
4996
|
+
* The component generates an `OrderByItem[]` array where each item specifies
|
|
4997
|
+
* a property path and sort direction.
|
|
4998
|
+
* @private
|
|
4999
|
+
*/
|
|
5000
|
+
interface LimebbLimeQueryOrderByEditor {
|
|
5001
|
+
/**
|
|
5002
|
+
* Component context
|
|
5003
|
+
*/
|
|
5004
|
+
"context"?: LimeWebComponentContext;
|
|
5005
|
+
/**
|
|
5006
|
+
* Optional label
|
|
5007
|
+
*/
|
|
5008
|
+
"label"?: string;
|
|
5009
|
+
/**
|
|
5010
|
+
* The limetype to select properties from
|
|
5011
|
+
*/
|
|
5012
|
+
"limetype"?: string;
|
|
5013
|
+
/**
|
|
5014
|
+
* Emitted when the order by specification changes
|
|
5015
|
+
*/
|
|
5016
|
+
"onChange"?: (event: LimebbLimeQueryOrderByEditorCustomEvent<OrderByItem[]>) => void;
|
|
5017
|
+
/**
|
|
5018
|
+
* Platform service provider
|
|
5019
|
+
*/
|
|
5020
|
+
"platform"?: LimeWebComponentPlatform;
|
|
5021
|
+
/**
|
|
5022
|
+
* Current order by specification
|
|
5023
|
+
*/
|
|
5024
|
+
"value"?: OrderByItem[];
|
|
5025
|
+
}
|
|
5026
|
+
/**
|
|
5027
|
+
* Order By Item Component
|
|
5028
|
+
* Represents a single order by specification with property selection and direction toggle
|
|
5029
|
+
* Part of the order by editor
|
|
5030
|
+
* @private
|
|
5031
|
+
*/
|
|
5032
|
+
interface LimebbLimeQueryOrderByItem {
|
|
5033
|
+
/**
|
|
5034
|
+
* Component context
|
|
5035
|
+
*/
|
|
5036
|
+
"context"?: LimeWebComponentContext;
|
|
5037
|
+
/**
|
|
5038
|
+
* The order by item (e.g., { "company.name": "ASC" })
|
|
5039
|
+
*/
|
|
5040
|
+
"item"?: OrderByItem;
|
|
5041
|
+
/**
|
|
5042
|
+
* The limetype to select properties from
|
|
5043
|
+
*/
|
|
5044
|
+
"limetype"?: string;
|
|
5045
|
+
/**
|
|
5046
|
+
* Emitted when the item changes or should be removed
|
|
5047
|
+
*/
|
|
5048
|
+
"onItemChange"?: (event: LimebbLimeQueryOrderByItemCustomEvent<OrderByItem | null>) => void;
|
|
5049
|
+
/**
|
|
5050
|
+
* Platform service provider
|
|
5051
|
+
*/
|
|
5052
|
+
"platform"?: LimeWebComponentPlatform;
|
|
5053
|
+
}
|
|
5054
|
+
/**
|
|
5055
|
+
* Response Format Builder
|
|
5056
|
+
* A focused component for editing Lime Query ResponseFormat in isolation.
|
|
5057
|
+
* Supports both GUI and code modes for maximum flexibility.
|
|
5058
|
+
* Use this component when you need to configure which properties to return
|
|
5059
|
+
* from a query, but don't need filter, limit, or other query parameters.
|
|
5060
|
+
* **Features**:
|
|
5061
|
+
* - **GUI Mode**: Visual property selector with relation navigation
|
|
5062
|
+
* - **Code Mode**: JSON editor for ResponseFormat structure
|
|
5063
|
+
* - **Validation**: Ensures JSON is valid ResponseFormat (rejects other fields)
|
|
5064
|
+
* - **Mode Toggle**: Switch between GUI and code modes seamlessly
|
|
5065
|
+
* - **Feature Flag**: Respects `useLimeQueryBuilderGuiMode` setting
|
|
5066
|
+
* @example ```tsx
|
|
5067
|
+
* <limebb-lime-query-response-format-builder
|
|
5068
|
+
* platform={this.platform}
|
|
5069
|
+
* context={this.context}
|
|
5070
|
+
* limetype="deal"
|
|
5071
|
+
* value={this.responseFormat}
|
|
5072
|
+
* label="Select Properties to Return"
|
|
5073
|
+
* onChange={this.handleChange}
|
|
5074
|
+
* />
|
|
5075
|
+
* ```
|
|
5076
|
+
* @exampleComponent limebb-example-response-format-builder-basic
|
|
5077
|
+
* @private
|
|
5078
|
+
*/
|
|
5079
|
+
interface LimebbLimeQueryResponseFormatBuilder {
|
|
5080
|
+
/**
|
|
5081
|
+
* Component context
|
|
5082
|
+
*/
|
|
5083
|
+
"context"?: LimeWebComponentContext;
|
|
5084
|
+
/**
|
|
5085
|
+
* Optional label for the builder
|
|
5086
|
+
*/
|
|
5087
|
+
"label"?: string;
|
|
5088
|
+
/**
|
|
5089
|
+
* The limetype to configure response format for This is fixed and not editable by the user
|
|
5090
|
+
*/
|
|
5091
|
+
"limetype"?: string;
|
|
5092
|
+
/**
|
|
5093
|
+
* Emitted when the response format changes
|
|
5094
|
+
*/
|
|
5095
|
+
"onChange"?: (event: LimebbLimeQueryResponseFormatBuilderCustomEvent<ResponseFormat>) => void;
|
|
5096
|
+
/**
|
|
5097
|
+
* Platform service provider
|
|
5098
|
+
*/
|
|
5099
|
+
"platform"?: LimeWebComponentPlatform;
|
|
5100
|
+
/**
|
|
5101
|
+
* Current response format value
|
|
5102
|
+
*/
|
|
5103
|
+
"value"?: ResponseFormat;
|
|
5104
|
+
}
|
|
5105
|
+
/**
|
|
5106
|
+
* Response Format Editor Component
|
|
5107
|
+
* Allows users to select which properties should be returned in the query response.
|
|
5108
|
+
* Supports selecting properties on both the main limetype and related limetypes
|
|
5109
|
+
* through belongsto relations.
|
|
5110
|
+
* Features:
|
|
5111
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
5112
|
+
* - **Nested properties**: Select properties on related objects (e.g., company.name)
|
|
5113
|
+
* - **Property aliases**: Optionally rename properties in the response
|
|
5114
|
+
* - **Dynamic list**: Add/remove property selections
|
|
5115
|
+
* - **Real-time updates**: Changes immediately update the responseFormat
|
|
5116
|
+
* The component generates a `ResponseFormat` object with the `object` field
|
|
5117
|
+
* containing the selected properties.
|
|
5118
|
+
* @private
|
|
5119
|
+
*/
|
|
5120
|
+
interface LimebbLimeQueryResponseFormatEditor {
|
|
5121
|
+
/**
|
|
5122
|
+
* Component context
|
|
5123
|
+
*/
|
|
5124
|
+
"context"?: LimeWebComponentContext;
|
|
5125
|
+
/**
|
|
5126
|
+
* Optional label
|
|
5127
|
+
*/
|
|
5128
|
+
"label"?: string;
|
|
5129
|
+
/**
|
|
5130
|
+
* The limetype to select properties from
|
|
5131
|
+
*/
|
|
5132
|
+
"limetype"?: string;
|
|
5133
|
+
/**
|
|
5134
|
+
* Emitted when the response format changes
|
|
5135
|
+
*/
|
|
5136
|
+
"onChange"?: (event: LimebbLimeQueryResponseFormatEditorCustomEvent<ResponseFormat>) => void;
|
|
5137
|
+
/**
|
|
5138
|
+
* Platform service provider
|
|
5139
|
+
*/
|
|
5140
|
+
"platform"?: LimeWebComponentPlatform;
|
|
5141
|
+
/**
|
|
5142
|
+
* Current response format
|
|
5143
|
+
*/
|
|
5144
|
+
"value"?: ResponseFormat;
|
|
5145
|
+
}
|
|
5146
|
+
/**
|
|
5147
|
+
* Response Format Property Item Component
|
|
5148
|
+
* Represents a single property selection with optional alias and description
|
|
5149
|
+
* Part of the response format editor
|
|
5150
|
+
* @private
|
|
5151
|
+
*/
|
|
5152
|
+
interface LimebbLimeQueryResponseFormatItem {
|
|
5153
|
+
/**
|
|
5154
|
+
* Component context
|
|
5155
|
+
*/
|
|
5156
|
+
"context"?: LimeWebComponentContext;
|
|
5157
|
+
/**
|
|
5158
|
+
* The property selection item
|
|
5159
|
+
*/
|
|
5160
|
+
"item"?: PropertySelectionItem;
|
|
5161
|
+
/**
|
|
5162
|
+
* The limetype to select properties from
|
|
5163
|
+
*/
|
|
5164
|
+
"limetype"?: string;
|
|
5165
|
+
/**
|
|
5166
|
+
* Emitted when the item changes
|
|
5167
|
+
*/
|
|
5168
|
+
"onItemChange"?: (event: LimebbLimeQueryResponseFormatItemCustomEvent<PropertySelectionItem | null>) => void;
|
|
5169
|
+
/**
|
|
5170
|
+
* Platform service provider
|
|
5171
|
+
*/
|
|
5172
|
+
"platform"?: LimeWebComponentPlatform;
|
|
5173
|
+
}
|
|
4768
5174
|
/**
|
|
4769
5175
|
* Query Value Input Component
|
|
4770
5176
|
* Renders an appropriate input control based on the property type and operator.
|
|
@@ -5276,75 +5682,6 @@ declare namespace LocalJSX {
|
|
|
5276
5682
|
*/
|
|
5277
5683
|
"value"?: string;
|
|
5278
5684
|
}
|
|
5279
|
-
/**
|
|
5280
|
-
* Response Format Editor Component
|
|
5281
|
-
* Allows users to select which properties should be returned in the query response.
|
|
5282
|
-
* Supports selecting properties on both the main limetype and related limetypes
|
|
5283
|
-
* through belongsto relations.
|
|
5284
|
-
* Features:
|
|
5285
|
-
* - **Property selection**: Choose properties using dropdown navigation
|
|
5286
|
-
* - **Nested properties**: Select properties on related objects (e.g., company.name)
|
|
5287
|
-
* - **Property aliases**: Optionally rename properties in the response
|
|
5288
|
-
* - **Dynamic list**: Add/remove property selections
|
|
5289
|
-
* - **Real-time updates**: Changes immediately update the responseFormat
|
|
5290
|
-
* The component generates a `ResponseFormat` object with the `object` field
|
|
5291
|
-
* containing the selected properties.
|
|
5292
|
-
* @private
|
|
5293
|
-
*/
|
|
5294
|
-
interface LimebbResponseFormatEditor {
|
|
5295
|
-
/**
|
|
5296
|
-
* Component context
|
|
5297
|
-
*/
|
|
5298
|
-
"context"?: LimeWebComponentContext;
|
|
5299
|
-
/**
|
|
5300
|
-
* Optional label
|
|
5301
|
-
*/
|
|
5302
|
-
"label"?: string;
|
|
5303
|
-
/**
|
|
5304
|
-
* The limetype to select properties from
|
|
5305
|
-
*/
|
|
5306
|
-
"limetype"?: string;
|
|
5307
|
-
/**
|
|
5308
|
-
* Emitted when the response format changes
|
|
5309
|
-
*/
|
|
5310
|
-
"onChange"?: (event: LimebbResponseFormatEditorCustomEvent<ResponseFormat>) => void;
|
|
5311
|
-
/**
|
|
5312
|
-
* Platform service provider
|
|
5313
|
-
*/
|
|
5314
|
-
"platform"?: LimeWebComponentPlatform;
|
|
5315
|
-
/**
|
|
5316
|
-
* Current response format
|
|
5317
|
-
*/
|
|
5318
|
-
"value"?: ResponseFormat;
|
|
5319
|
-
}
|
|
5320
|
-
/**
|
|
5321
|
-
* Response Format Property Item Component
|
|
5322
|
-
* Represents a single property selection with optional alias and description
|
|
5323
|
-
* Part of the response format editor
|
|
5324
|
-
* @private
|
|
5325
|
-
*/
|
|
5326
|
-
interface LimebbResponseFormatItem {
|
|
5327
|
-
/**
|
|
5328
|
-
* Component context
|
|
5329
|
-
*/
|
|
5330
|
-
"context"?: LimeWebComponentContext;
|
|
5331
|
-
/**
|
|
5332
|
-
* The property selection item
|
|
5333
|
-
*/
|
|
5334
|
-
"item"?: PropertySelectionItem;
|
|
5335
|
-
/**
|
|
5336
|
-
* The limetype to select properties from
|
|
5337
|
-
*/
|
|
5338
|
-
"limetype"?: string;
|
|
5339
|
-
/**
|
|
5340
|
-
* Emitted when the item changes
|
|
5341
|
-
*/
|
|
5342
|
-
"onItemChange"?: (event: LimebbResponseFormatItemCustomEvent<PropertySelectionItem | null>) => void;
|
|
5343
|
-
/**
|
|
5344
|
-
* Platform service provider
|
|
5345
|
-
*/
|
|
5346
|
-
"platform"?: LimeWebComponentPlatform;
|
|
5347
|
-
}
|
|
5348
5685
|
/**
|
|
5349
5686
|
* This component uses
|
|
5350
5687
|
* [limel-popover](https://lundalogik.github.io/lime-elements/versions/latest/#/component/limel-popover/)
|
|
@@ -5669,6 +6006,11 @@ declare namespace LocalJSX {
|
|
|
5669
6006
|
"limebb-lime-query-filter-expression": LimebbLimeQueryFilterExpression;
|
|
5670
6007
|
"limebb-lime-query-filter-group": LimebbLimeQueryFilterGroup;
|
|
5671
6008
|
"limebb-lime-query-filter-not": LimebbLimeQueryFilterNot;
|
|
6009
|
+
"limebb-lime-query-order-by-editor": LimebbLimeQueryOrderByEditor;
|
|
6010
|
+
"limebb-lime-query-order-by-item": LimebbLimeQueryOrderByItem;
|
|
6011
|
+
"limebb-lime-query-response-format-builder": LimebbLimeQueryResponseFormatBuilder;
|
|
6012
|
+
"limebb-lime-query-response-format-editor": LimebbLimeQueryResponseFormatEditor;
|
|
6013
|
+
"limebb-lime-query-response-format-item": LimebbLimeQueryResponseFormatItem;
|
|
5672
6014
|
"limebb-lime-query-value-input": LimebbLimeQueryValueInput;
|
|
5673
6015
|
"limebb-limeobject-file-viewer": LimebbLimeobjectFileViewer;
|
|
5674
6016
|
"limebb-limetype-field": LimebbLimetypeField;
|
|
@@ -5682,8 +6024,6 @@ declare namespace LocalJSX {
|
|
|
5682
6024
|
"limebb-notification-list": LimebbNotificationList;
|
|
5683
6025
|
"limebb-percentage-visualizer": LimebbPercentageVisualizer;
|
|
5684
6026
|
"limebb-property-selector": LimebbPropertySelector;
|
|
5685
|
-
"limebb-response-format-editor": LimebbResponseFormatEditor;
|
|
5686
|
-
"limebb-response-format-item": LimebbResponseFormatItem;
|
|
5687
6027
|
"limebb-summary-popover": LimebbSummaryPopover;
|
|
5688
6028
|
"limebb-text-editor": LimebbTextEditor;
|
|
5689
6029
|
"limebb-text-editor-picker": LimebbTextEditorPicker;
|
|
@@ -6058,6 +6398,77 @@ declare module "@stencil/core" {
|
|
|
6058
6398
|
* @private
|
|
6059
6399
|
*/
|
|
6060
6400
|
"limebb-lime-query-filter-not": LocalJSX.LimebbLimeQueryFilterNot & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryFilterNotElement>;
|
|
6401
|
+
/**
|
|
6402
|
+
* Order By Editor Component
|
|
6403
|
+
* Allows users to specify the order in which query results should be sorted.
|
|
6404
|
+
* Supports sorting by multiple properties with ascending or descending order.
|
|
6405
|
+
* Features:
|
|
6406
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
6407
|
+
* - **Sort direction**: Toggle between ascending (ASC) and descending (DESC)
|
|
6408
|
+
* - **Multiple sort fields**: Add multiple properties to create complex sorting
|
|
6409
|
+
* - **Order matters**: Properties are sorted in the order they appear in the list
|
|
6410
|
+
* - **Dynamic list**: Add/remove sort fields
|
|
6411
|
+
* The component generates an `OrderByItem[]` array where each item specifies
|
|
6412
|
+
* a property path and sort direction.
|
|
6413
|
+
* @private
|
|
6414
|
+
*/
|
|
6415
|
+
"limebb-lime-query-order-by-editor": LocalJSX.LimebbLimeQueryOrderByEditor & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryOrderByEditorElement>;
|
|
6416
|
+
/**
|
|
6417
|
+
* Order By Item Component
|
|
6418
|
+
* Represents a single order by specification with property selection and direction toggle
|
|
6419
|
+
* Part of the order by editor
|
|
6420
|
+
* @private
|
|
6421
|
+
*/
|
|
6422
|
+
"limebb-lime-query-order-by-item": LocalJSX.LimebbLimeQueryOrderByItem & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryOrderByItemElement>;
|
|
6423
|
+
/**
|
|
6424
|
+
* Response Format Builder
|
|
6425
|
+
* A focused component for editing Lime Query ResponseFormat in isolation.
|
|
6426
|
+
* Supports both GUI and code modes for maximum flexibility.
|
|
6427
|
+
* Use this component when you need to configure which properties to return
|
|
6428
|
+
* from a query, but don't need filter, limit, or other query parameters.
|
|
6429
|
+
* **Features**:
|
|
6430
|
+
* - **GUI Mode**: Visual property selector with relation navigation
|
|
6431
|
+
* - **Code Mode**: JSON editor for ResponseFormat structure
|
|
6432
|
+
* - **Validation**: Ensures JSON is valid ResponseFormat (rejects other fields)
|
|
6433
|
+
* - **Mode Toggle**: Switch between GUI and code modes seamlessly
|
|
6434
|
+
* - **Feature Flag**: Respects `useLimeQueryBuilderGuiMode` setting
|
|
6435
|
+
* @example ```tsx
|
|
6436
|
+
* <limebb-lime-query-response-format-builder
|
|
6437
|
+
* platform={this.platform}
|
|
6438
|
+
* context={this.context}
|
|
6439
|
+
* limetype="deal"
|
|
6440
|
+
* value={this.responseFormat}
|
|
6441
|
+
* label="Select Properties to Return"
|
|
6442
|
+
* onChange={this.handleChange}
|
|
6443
|
+
* />
|
|
6444
|
+
* ```
|
|
6445
|
+
* @exampleComponent limebb-example-response-format-builder-basic
|
|
6446
|
+
* @private
|
|
6447
|
+
*/
|
|
6448
|
+
"limebb-lime-query-response-format-builder": LocalJSX.LimebbLimeQueryResponseFormatBuilder & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryResponseFormatBuilderElement>;
|
|
6449
|
+
/**
|
|
6450
|
+
* Response Format Editor Component
|
|
6451
|
+
* Allows users to select which properties should be returned in the query response.
|
|
6452
|
+
* Supports selecting properties on both the main limetype and related limetypes
|
|
6453
|
+
* through belongsto relations.
|
|
6454
|
+
* Features:
|
|
6455
|
+
* - **Property selection**: Choose properties using dropdown navigation
|
|
6456
|
+
* - **Nested properties**: Select properties on related objects (e.g., company.name)
|
|
6457
|
+
* - **Property aliases**: Optionally rename properties in the response
|
|
6458
|
+
* - **Dynamic list**: Add/remove property selections
|
|
6459
|
+
* - **Real-time updates**: Changes immediately update the responseFormat
|
|
6460
|
+
* The component generates a `ResponseFormat` object with the `object` field
|
|
6461
|
+
* containing the selected properties.
|
|
6462
|
+
* @private
|
|
6463
|
+
*/
|
|
6464
|
+
"limebb-lime-query-response-format-editor": LocalJSX.LimebbLimeQueryResponseFormatEditor & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryResponseFormatEditorElement>;
|
|
6465
|
+
/**
|
|
6466
|
+
* Response Format Property Item Component
|
|
6467
|
+
* Represents a single property selection with optional alias and description
|
|
6468
|
+
* Part of the response format editor
|
|
6469
|
+
* @private
|
|
6470
|
+
*/
|
|
6471
|
+
"limebb-lime-query-response-format-item": LocalJSX.LimebbLimeQueryResponseFormatItem & JSXBase.HTMLAttributes<HTMLLimebbLimeQueryResponseFormatItemElement>;
|
|
6061
6472
|
/**
|
|
6062
6473
|
* Query Value Input Component
|
|
6063
6474
|
* Renders an appropriate input control based on the property type and operator.
|
|
@@ -6213,29 +6624,6 @@ declare module "@stencil/core" {
|
|
|
6213
6624
|
* @private
|
|
6214
6625
|
*/
|
|
6215
6626
|
"limebb-property-selector": LocalJSX.LimebbPropertySelector & JSXBase.HTMLAttributes<HTMLLimebbPropertySelectorElement>;
|
|
6216
|
-
/**
|
|
6217
|
-
* Response Format Editor Component
|
|
6218
|
-
* Allows users to select which properties should be returned in the query response.
|
|
6219
|
-
* Supports selecting properties on both the main limetype and related limetypes
|
|
6220
|
-
* through belongsto relations.
|
|
6221
|
-
* Features:
|
|
6222
|
-
* - **Property selection**: Choose properties using dropdown navigation
|
|
6223
|
-
* - **Nested properties**: Select properties on related objects (e.g., company.name)
|
|
6224
|
-
* - **Property aliases**: Optionally rename properties in the response
|
|
6225
|
-
* - **Dynamic list**: Add/remove property selections
|
|
6226
|
-
* - **Real-time updates**: Changes immediately update the responseFormat
|
|
6227
|
-
* The component generates a `ResponseFormat` object with the `object` field
|
|
6228
|
-
* containing the selected properties.
|
|
6229
|
-
* @private
|
|
6230
|
-
*/
|
|
6231
|
-
"limebb-response-format-editor": LocalJSX.LimebbResponseFormatEditor & JSXBase.HTMLAttributes<HTMLLimebbResponseFormatEditorElement>;
|
|
6232
|
-
/**
|
|
6233
|
-
* Response Format Property Item Component
|
|
6234
|
-
* Represents a single property selection with optional alias and description
|
|
6235
|
-
* Part of the response format editor
|
|
6236
|
-
* @private
|
|
6237
|
-
*/
|
|
6238
|
-
"limebb-response-format-item": LocalJSX.LimebbResponseFormatItem & JSXBase.HTMLAttributes<HTMLLimebbResponseFormatItemElement>;
|
|
6239
6627
|
/**
|
|
6240
6628
|
* This component uses
|
|
6241
6629
|
* [limel-popover](https://lundalogik.github.io/lime-elements/versions/latest/#/component/limel-popover/)
|