@limetech/lime-crm-building-blocks 1.98.0 → 1.100.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/{index.esm-a894ac76.js → index.esm-d785eb6e.js} +2 -0
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/limebb-browser.cjs.entry.js +1 -1
- package/dist/cjs/limebb-chat-item_2.cjs.entry.js +1 -1
- package/dist/cjs/limebb-chat-list.cjs.entry.js +1 -1
- package/dist/cjs/limebb-component-config.cjs.entry.js +1 -1
- package/dist/cjs/limebb-component-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-currency-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-feed.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limebb-kanban-group.cjs.entry.js +1 -1
- package/dist/cjs/limebb-kanban-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +68 -179
- package/dist/cjs/limebb-lime-query-filter-and.cjs.entry.js +80 -0
- package/dist/cjs/{limebb-limetype-field_2.cjs.entry.js → limebb-lime-query-filter-builder_3.cjs.entry.js} +108 -6
- package/dist/cjs/limebb-lime-query-filter-comparison_5.cjs.entry.js +705 -0
- package/dist/cjs/limebb-lime-query-filter-expression.cjs.entry.js +45 -0
- package/dist/cjs/limebb-lime-query-filter-or.cjs.entry.js +68 -0
- package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limebb-live-docs-info.cjs.entry.js +2 -2
- package/dist/cjs/limebb-loader.cjs.entry.js +1 -1
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +2 -2
- package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +2 -2
- package/dist/cjs/limebb-mention.cjs.entry.js +1 -1
- package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +3 -3
- package/dist/cjs/limebb-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/limebb-notification-list.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 +3 -3
- package/dist/cjs/limebb-trend-indicator.cjs.entry.js +1 -1
- package/dist/cjs/{limetype-1fe0207f.js → limetype-f2e4376e.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-and.js +41 -49
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-builder.css +5 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-builder.js +225 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +77 -41
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.js +35 -46
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.css +130 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.js +269 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +19 -25
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.js +34 -34
- package/dist/collection/components/lime-query-builder/lime-query-builder.js +11 -26
- package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +1 -1
- package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
- package/dist/collection/components/locale-picker/locale-picker.js +1 -1
- package/dist/collection/components/notification-list/notification-item/notification-item.js +1 -1
- package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +2 -2
- package/dist/collection/components/summary-popover/summary-popover.js +3 -3
- package/dist/collection/components/text-editor/mention-group-counter.js +2 -2
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/trend-indicator/trend-indicator.js +1 -1
- package/dist/components/index.esm.js +2 -1
- package/dist/components/lime-query-filter-builder.js +129 -0
- package/dist/components/lime-query-filter-comparison.js +32 -45
- package/dist/components/lime-query-filter-expression.js +315 -0
- package/dist/components/limebb-lime-query-builder.js +73 -182
- package/dist/components/limebb-lime-query-filter-and.js +130 -1
- package/dist/components/limebb-lime-query-filter-builder.d.ts +11 -0
- package/dist/components/limebb-lime-query-filter-builder.js +6 -0
- package/dist/components/limebb-lime-query-filter-comparison.js +1 -1
- package/dist/components/limebb-lime-query-filter-expression.js +1 -1
- package/dist/components/limebb-lime-query-filter-group.d.ts +11 -0
- package/dist/components/limebb-lime-query-filter-group.js +6 -0
- package/dist/components/limebb-lime-query-filter-not.js +1 -1
- package/dist/components/limebb-lime-query-filter-or.js +118 -1
- 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 +34 -2
- package/dist/components/live-docs-info.js +2 -2
- package/dist/components/notification-item.js +1 -1
- package/dist/components/summary-popover.js +3 -3
- package/dist/esm/{index.esm-d8fdeb18.js → index.esm-bb569663.js} +2 -1
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/limebb-browser.entry.js +1 -1
- package/dist/esm/limebb-chat-item_2.entry.js +1 -1
- package/dist/esm/limebb-chat-list.entry.js +1 -1
- package/dist/esm/limebb-component-config.entry.js +1 -1
- package/dist/esm/limebb-component-picker.entry.js +1 -1
- package/dist/esm/limebb-currency-picker.entry.js +1 -1
- package/dist/esm/limebb-date-picker.entry.js +1 -1
- package/dist/esm/limebb-feed-timeline-item.entry.js +1 -1
- package/dist/esm/limebb-feed.entry.js +1 -1
- package/dist/esm/limebb-info-tile.entry.js +1 -1
- package/dist/esm/limebb-kanban-group.entry.js +1 -1
- package/dist/esm/limebb-kanban-item.entry.js +1 -1
- package/dist/esm/limebb-lime-query-builder.entry.js +67 -178
- package/dist/esm/limebb-lime-query-filter-and.entry.js +76 -0
- package/dist/esm/{limebb-limetype-field_2.entry.js → limebb-lime-query-filter-builder_3.entry.js} +107 -6
- package/dist/esm/limebb-lime-query-filter-comparison_5.entry.js +697 -0
- package/dist/esm/limebb-lime-query-filter-expression.entry.js +41 -0
- package/dist/esm/limebb-lime-query-filter-or.entry.js +64 -0
- package/dist/esm/limebb-limeobject-file-viewer.entry.js +1 -1
- package/dist/esm/limebb-live-docs-info.entry.js +2 -2
- package/dist/esm/limebb-loader.entry.js +1 -1
- package/dist/esm/limebb-locale-picker.entry.js +2 -2
- package/dist/esm/limebb-mention-group-counter.entry.js +2 -2
- package/dist/esm/limebb-mention.entry.js +1 -1
- package/dist/esm/limebb-navigation-button_2.entry.js +3 -3
- package/dist/esm/limebb-notification-item.entry.js +2 -2
- package/dist/esm/limebb-notification-list.entry.js +1 -1
- package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
- package/dist/esm/limebb-text-editor.entry.js +3 -3
- package/dist/esm/limebb-trend-indicator.entry.js +1 -1
- package/dist/esm/{limetype-6e7552a7.js → limetype-c0e041f7.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-a1818969.entry.js → p-03af0e66.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-f402184f.entry.js → p-098ee6c1.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-42e52b50.entry.js → p-1be0eec7.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-2aa18c2b.entry.js → p-206575e4.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-20bfca36.js +1 -0
- package/dist/lime-crm-building-blocks/p-24aeb928.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-82d33d43.entry.js → p-2faaacbc.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-d4016891.entry.js → p-2fdcb868.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-f52125a0.entry.js → p-3122ea05.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-baf4e428.entry.js → p-3175883d.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-8c8b7115.entry.js → p-32534eb7.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-6c1146ca.entry.js → p-36ea13c0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-422f6d51.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-1fba0ade.js → p-4838284a.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-5e4ba110.entry.js → p-5464f0de.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e9d23ef7.entry.js → p-569c86b5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-90e1716a.entry.js → p-5dc574a3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-00da9b24.entry.js → p-631ca5a5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-67dbaa4c.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-6d119dab.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-beb0d164.entry.js → p-7271f47a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-34357744.entry.js → p-9031f136.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-91732502.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-8c4eb49f.entry.js → p-93cadc1e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3932077b.entry.js → p-9cac4de2.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-79d4668a.entry.js → p-a200954f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-b198194a.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-d89c44ad.entry.js → p-b9b954d9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3a620226.entry.js → p-cfa1a4ad.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-ef8a5266.entry.js → p-e8946134.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9d9f25da.entry.js → p-eb81bceb.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-50d3d61a.entry.js → p-ee1b00b9.entry.js} +1 -1
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-and.d.ts +5 -4
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-builder.d.ts +50 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-comparison.d.ts +6 -4
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-expression.d.ts +10 -14
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-group.d.ts +60 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-not.d.ts +4 -4
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-or.d.ts +5 -4
- package/dist/types/components/lime-query-builder/lime-query-builder.d.ts +1 -0
- package/dist/types/components/lime-query-builder/lime-query.types.d.ts +2 -1
- package/dist/types/components.d.ts +293 -65
- package/package.json +1 -1
- package/dist/cjs/isEqual-e77cce75.js +0 -37
- package/dist/cjs/lime-query.types-bcb63a22.js +0 -61
- package/dist/cjs/limebb-lime-query-filter-and_5.cjs.entry.js +0 -278
- package/dist/cjs/limebb-lime-query-value-input.cjs.entry.js +0 -239
- package/dist/cjs/limebb-property-selector.cjs.entry.js +0 -234
- package/dist/components/isEqual.js +0 -35
- package/dist/components/lime-query-filter-and.js +0 -408
- package/dist/esm/isEqual-57d0c223.js +0 -35
- package/dist/esm/lime-query.types-f72355e1.js +0 -59
- package/dist/esm/limebb-lime-query-filter-and_5.entry.js +0 -270
- package/dist/esm/limebb-lime-query-value-input.entry.js +0 -235
- package/dist/esm/limebb-property-selector.entry.js +0 -230
- package/dist/lime-crm-building-blocks/p-02c0cc04.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-0957b2a6.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-3b0a15ec.js +0 -1
- package/dist/lime-crm-building-blocks/p-5a6d2e7f.js +0 -1
- package/dist/lime-crm-building-blocks/p-60971d64.js +0 -1
- package/dist/lime-crm-building-blocks/p-70a28b93.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-96beaabc.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-f99c611d.entry.js +0 -1
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Operator, } from "@limetech/lime-web-components";
|
|
3
|
+
/**
|
|
4
|
+
* Lime Query Filter Group Component
|
|
5
|
+
*
|
|
6
|
+
* Renders a group of filter expressions with AND/OR logic that can be toggled.
|
|
7
|
+
* Users can click the header to toggle between "All conditions" (AND) and
|
|
8
|
+
* "Any condition" (OR).
|
|
9
|
+
*
|
|
10
|
+
* This component displays:
|
|
11
|
+
* - A clickable header showing the current logic (AND/OR)
|
|
12
|
+
* - A list of child expressions (which can be comparisons or nested groups)
|
|
13
|
+
* - An "Add" button to add more expressions
|
|
14
|
+
*
|
|
15
|
+
* Clicking the header toggles between AND and OR logic.
|
|
16
|
+
* If a child component emits an ExpressionChange event with undefined, the
|
|
17
|
+
* child is removed from the group.
|
|
18
|
+
*
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
export class LimeQueryFilterGroupComponent {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.renderChildExpression = (expression, childIndex) => (h("li", null, h("limebb-lime-query-filter-expression", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, expression: expression, onExpressionChange: this.handleExpressionChange(childIndex) })));
|
|
24
|
+
this.handleToggleOperator = () => {
|
|
25
|
+
const newOperator = this.expression.op === Operator.AND ? Operator.OR : Operator.AND;
|
|
26
|
+
this.expressionChange.emit({
|
|
27
|
+
op: newOperator,
|
|
28
|
+
exp: this.expression.exp,
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
this.handleAddChildExpression = () => {
|
|
32
|
+
// Always add a new comparison directly to the list
|
|
33
|
+
const newChild = {
|
|
34
|
+
key: '',
|
|
35
|
+
op: Operator.EQUALS,
|
|
36
|
+
exp: '',
|
|
37
|
+
};
|
|
38
|
+
this.expressionChange.emit({
|
|
39
|
+
op: this.expression.op,
|
|
40
|
+
exp: [...this.expression.exp, newChild],
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
this.handleAddChildGroup = () => {
|
|
44
|
+
// Add a nested group of the opposite type
|
|
45
|
+
const oppositeOp = this.expression.op === Operator.AND ? Operator.OR : Operator.AND;
|
|
46
|
+
const newChild = {
|
|
47
|
+
op: oppositeOp,
|
|
48
|
+
exp: [
|
|
49
|
+
{
|
|
50
|
+
key: '',
|
|
51
|
+
op: Operator.EQUALS,
|
|
52
|
+
exp: '',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
this.expressionChange.emit({
|
|
57
|
+
op: this.expression.op,
|
|
58
|
+
exp: [...this.expression.exp, newChild],
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
this.handleExpressionChange = (updatedChildIndex) => (event) => {
|
|
62
|
+
event.stopPropagation();
|
|
63
|
+
const updatedExpression = event.detail;
|
|
64
|
+
const expressions = [...this.expression.exp];
|
|
65
|
+
if (updatedExpression === undefined) {
|
|
66
|
+
// Deletion - remove the child and potentially unwrap
|
|
67
|
+
expressions.splice(updatedChildIndex, 1);
|
|
68
|
+
if (expressions.length === 0) {
|
|
69
|
+
this.expressionChange.emit(undefined);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (expressions.length === 1) {
|
|
73
|
+
// Unwrap when only one child remains after deletion
|
|
74
|
+
this.expressionChange.emit(expressions[0]);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
// Update - replace the child, don't unwrap
|
|
80
|
+
expressions[updatedChildIndex] = updatedExpression;
|
|
81
|
+
}
|
|
82
|
+
this.expressionChange.emit({
|
|
83
|
+
op: this.expression.op,
|
|
84
|
+
exp: expressions,
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
const subheading = this.getSubheading();
|
|
90
|
+
return (h("div", { key: '43a1d99fd896e3ad49dd97594e54bccaf74c3aa0', class: "expression" }, subheading && (h("limel-header", { key: '534eb0a3db2f0194e8a28e2fb071beb545f38458', subheading: subheading, onClick: this.handleToggleOperator, class: "clickable-header" })), h("ul", { key: '9d29d98ab034bf2878e7dc19828bc045dbdd492f' }, this.expression.exp.map(this.renderChildExpression), h("li", { key: '44b266c8aeb390b8a68b3e08a51a0760a6421f93', class: "add-button" }, this.renderAddButton(), this.renderAddGroupButton()))));
|
|
91
|
+
}
|
|
92
|
+
getSubheading() {
|
|
93
|
+
if (this.expression.exp.length <= 1) {
|
|
94
|
+
return '';
|
|
95
|
+
}
|
|
96
|
+
return this.expression.op === Operator.AND
|
|
97
|
+
? 'All of these conditions are true'
|
|
98
|
+
: 'Any of these conditions are true';
|
|
99
|
+
}
|
|
100
|
+
renderAddButton() {
|
|
101
|
+
const label = this.getAddButtonLabel();
|
|
102
|
+
return (h("limel-button", { label: label, icon: "plus_math", onClick: this.handleAddChildExpression }));
|
|
103
|
+
}
|
|
104
|
+
renderAddGroupButton() {
|
|
105
|
+
const label = this.getAddGroupButtonLabel();
|
|
106
|
+
return (h("limel-button", { label: label, icon: "tree_structure", onClick: this.handleAddChildGroup }));
|
|
107
|
+
}
|
|
108
|
+
getAddButtonLabel() {
|
|
109
|
+
const isAnd = this.expression.op === Operator.AND;
|
|
110
|
+
if (this.expression.exp.length === 0) {
|
|
111
|
+
return 'Add a condition';
|
|
112
|
+
}
|
|
113
|
+
return isAnd ? 'Add another condition' : 'Add alternative';
|
|
114
|
+
}
|
|
115
|
+
getAddGroupButtonLabel() {
|
|
116
|
+
const isAnd = this.expression.op === Operator.AND;
|
|
117
|
+
if (this.expression.exp.length === 0) {
|
|
118
|
+
return 'Add a group';
|
|
119
|
+
}
|
|
120
|
+
return isAnd ? 'Add another group' : 'Add alternative group';
|
|
121
|
+
}
|
|
122
|
+
static get is() { return "limebb-lime-query-filter-group"; }
|
|
123
|
+
static get encapsulation() { return "shadow"; }
|
|
124
|
+
static get originalStyleUrls() {
|
|
125
|
+
return {
|
|
126
|
+
"$": ["lime-query-filter-group.scss"]
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static get styleUrls() {
|
|
130
|
+
return {
|
|
131
|
+
"$": ["lime-query-filter-group.css"]
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
static get properties() {
|
|
135
|
+
return {
|
|
136
|
+
"platform": {
|
|
137
|
+
"type": "unknown",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "LimeWebComponentPlatform",
|
|
141
|
+
"resolved": "LimeWebComponentPlatform",
|
|
142
|
+
"references": {
|
|
143
|
+
"LimeWebComponentPlatform": {
|
|
144
|
+
"location": "import",
|
|
145
|
+
"path": "@limetech/lime-web-components",
|
|
146
|
+
"id": "node_modules::LimeWebComponentPlatform"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Platform service provider"
|
|
155
|
+
},
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false
|
|
158
|
+
},
|
|
159
|
+
"context": {
|
|
160
|
+
"type": "unknown",
|
|
161
|
+
"mutable": false,
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "LimeWebComponentContext",
|
|
164
|
+
"resolved": "LimeWebComponentContext",
|
|
165
|
+
"references": {
|
|
166
|
+
"LimeWebComponentContext": {
|
|
167
|
+
"location": "import",
|
|
168
|
+
"path": "@limetech/lime-web-components",
|
|
169
|
+
"id": "node_modules::LimeWebComponentContext"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": "Component context"
|
|
178
|
+
},
|
|
179
|
+
"getter": false,
|
|
180
|
+
"setter": false
|
|
181
|
+
},
|
|
182
|
+
"limetype": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "string",
|
|
187
|
+
"resolved": "string",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": "The limetype being queried (e.g., \"deal\", \"company\")"
|
|
195
|
+
},
|
|
196
|
+
"getter": false,
|
|
197
|
+
"setter": false,
|
|
198
|
+
"attribute": "limetype",
|
|
199
|
+
"reflect": false
|
|
200
|
+
},
|
|
201
|
+
"activeLimetype": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "string",
|
|
206
|
+
"resolved": "string | undefined",
|
|
207
|
+
"references": {}
|
|
208
|
+
},
|
|
209
|
+
"required": false,
|
|
210
|
+
"optional": true,
|
|
211
|
+
"docs": {
|
|
212
|
+
"tags": [],
|
|
213
|
+
"text": "The limetype of the active object (for %activeObject% placeholders)"
|
|
214
|
+
},
|
|
215
|
+
"getter": false,
|
|
216
|
+
"setter": false,
|
|
217
|
+
"attribute": "active-limetype",
|
|
218
|
+
"reflect": false
|
|
219
|
+
},
|
|
220
|
+
"expression": {
|
|
221
|
+
"type": "unknown",
|
|
222
|
+
"mutable": false,
|
|
223
|
+
"complexType": {
|
|
224
|
+
"original": "AndOrExpression",
|
|
225
|
+
"resolved": "{ op: Operator.AND | Operator.OR; exp: Expression[]; }",
|
|
226
|
+
"references": {
|
|
227
|
+
"AndOrExpression": {
|
|
228
|
+
"location": "import",
|
|
229
|
+
"path": "@limetech/lime-web-components",
|
|
230
|
+
"id": "node_modules::AndOrExpression"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": false,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": "The group expression (AND or OR)"
|
|
239
|
+
},
|
|
240
|
+
"getter": false,
|
|
241
|
+
"setter": false
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
static get events() {
|
|
246
|
+
return [{
|
|
247
|
+
"method": "expressionChange",
|
|
248
|
+
"name": "expressionChange",
|
|
249
|
+
"bubbles": true,
|
|
250
|
+
"cancelable": true,
|
|
251
|
+
"composed": true,
|
|
252
|
+
"docs": {
|
|
253
|
+
"tags": [],
|
|
254
|
+
"text": "Emitted when the group expression changes\nEmits undefined when expression should be removed\nCan emit any Expression type when unwrapping (single child)"
|
|
255
|
+
},
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "Expression | undefined",
|
|
258
|
+
"resolved": "undefined | { key: string; op: BasicOperator; exp: ExpressionValue; } | { key: string; op: Operator.IN; exp: ExpressionValue[]; } | { op: Operator.AND | Operator.OR; exp: Expression[]; } | { op: Operator.NOT; exp: Expression; } | { type: \"filter\"; key: string; op: Operator.IN; exp: string; }",
|
|
259
|
+
"references": {
|
|
260
|
+
"Expression": {
|
|
261
|
+
"location": "import",
|
|
262
|
+
"path": "@limetech/lime-web-components",
|
|
263
|
+
"id": "node_modules::Expression"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}];
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { Operator, } from "@limetech/lime-web-components";
|
|
3
3
|
/**
|
|
4
4
|
* Lime Query Filter NOT Component
|
|
5
5
|
*
|
|
@@ -21,22 +21,21 @@ import { isEqual } from "lodash-es";
|
|
|
21
21
|
export class LimeQueryFilterNotComponent {
|
|
22
22
|
constructor() {
|
|
23
23
|
this.handleExpressionChange = (event) => {
|
|
24
|
+
var _a;
|
|
24
25
|
event.stopPropagation();
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (isEqual(event.detail, missingExpression)) {
|
|
29
|
-
this.expressionChange.emit(missingExpression);
|
|
26
|
+
const updatedExpression = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
27
|
+
if (updatedExpression === undefined) {
|
|
28
|
+
this.expressionChange.emit(undefined);
|
|
30
29
|
return;
|
|
31
30
|
}
|
|
32
31
|
this.expressionChange.emit({
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
op: Operator.NOT,
|
|
33
|
+
exp: updatedExpression,
|
|
35
34
|
});
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
render() {
|
|
39
|
-
return (h("div", { key: '
|
|
38
|
+
return (h("div", { key: 'f1dfd7fd4ec7dc1873841d1c8b3d2bb6677634fd', class: "expression" }, this.label && h("limel-header", { key: '91e1b754f6e45c70f49bf2a770898a590defaf22', heading: this.label }), h("limebb-lime-query-filter-expression", { key: 'bf42f3c71521a413e5ecc49a8e0d6401b34384a2', platform: this.platform, context: this.context, label: "Not", limetype: this.limetype, activeLimetype: this.activeLimetype, expression: this.expression.exp, onExpressionChange: this.handleExpressionChange })));
|
|
40
39
|
}
|
|
41
40
|
static get is() { return "limebb-lime-query-filter-not"; }
|
|
42
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -159,13 +158,13 @@ export class LimeQueryFilterNotComponent {
|
|
|
159
158
|
"type": "unknown",
|
|
160
159
|
"mutable": false,
|
|
161
160
|
"complexType": {
|
|
162
|
-
"original": "
|
|
163
|
-
"resolved": "
|
|
161
|
+
"original": "NotExpression",
|
|
162
|
+
"resolved": "{ op: Operator.NOT; exp: Expression; }",
|
|
164
163
|
"references": {
|
|
165
|
-
"
|
|
164
|
+
"NotExpression": {
|
|
166
165
|
"location": "import",
|
|
167
|
-
"path": "
|
|
168
|
-
"id": "
|
|
166
|
+
"path": "@limetech/lime-web-components",
|
|
167
|
+
"id": "node_modules::NotExpression"
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
},
|
|
@@ -189,21 +188,16 @@ export class LimeQueryFilterNotComponent {
|
|
|
189
188
|
"composed": true,
|
|
190
189
|
"docs": {
|
|
191
190
|
"tags": [],
|
|
192
|
-
"text": "Emitted when the NOT expression changes (child expression modified or removed)"
|
|
191
|
+
"text": "Emitted when the NOT expression changes (child expression modified or removed)\nEmits undefined when the expression should be removed"
|
|
193
192
|
},
|
|
194
193
|
"complexType": {
|
|
195
|
-
"original": "
|
|
196
|
-
"resolved": "
|
|
194
|
+
"original": "NotExpression | undefined",
|
|
195
|
+
"resolved": "undefined | { op: Operator.NOT; exp: Expression; }",
|
|
197
196
|
"references": {
|
|
198
|
-
"
|
|
199
|
-
"location": "import",
|
|
200
|
-
"path": "../lime-query.types",
|
|
201
|
-
"id": "src/components/lime-query-builder/lime-query.types.ts::LimeQueryFilterNot"
|
|
202
|
-
},
|
|
203
|
-
"LimeQueryFilterMissing": {
|
|
197
|
+
"NotExpression": {
|
|
204
198
|
"location": "import",
|
|
205
|
-
"path": "
|
|
206
|
-
"id": "
|
|
199
|
+
"path": "@limetech/lime-web-components",
|
|
200
|
+
"id": "node_modules::NotExpression"
|
|
207
201
|
}
|
|
208
202
|
}
|
|
209
203
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { Operator, } from "@limetech/lime-web-components";
|
|
3
3
|
/**
|
|
4
4
|
* Lime Query Filter OR Component
|
|
5
5
|
*
|
|
@@ -19,46 +19,51 @@ import { isEqual } from "lodash-es";
|
|
|
19
19
|
export class LimeQueryFilterOrComponent {
|
|
20
20
|
constructor() {
|
|
21
21
|
this.renderChildExpression = (expression, childIndex) => {
|
|
22
|
-
const label = this.expression.
|
|
22
|
+
const label = this.expression.exp.length === 1 ? this.label : undefined;
|
|
23
23
|
return (h("li", null, h("limebb-lime-query-filter-expression", { platform: this.platform, context: this.context, label: label, limetype: this.limetype, activeLimetype: this.activeLimetype, expression: expression, onExpressionChange: this.handleExpressionChange(childIndex) })));
|
|
24
24
|
};
|
|
25
25
|
this.handleExpressionChange = (updatedChildIndex) => (event) => {
|
|
26
|
+
var _a;
|
|
26
27
|
event.stopPropagation();
|
|
27
|
-
const updatedExpression = event.detail;
|
|
28
|
-
const expressions = [...this.expression.
|
|
29
|
-
|
|
30
|
-
filter_type: '',
|
|
31
|
-
};
|
|
32
|
-
if (isEqual(updatedExpression, missingExpression)) {
|
|
28
|
+
const updatedExpression = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
29
|
+
const expressions = [...this.expression.exp];
|
|
30
|
+
if (updatedExpression === undefined) {
|
|
33
31
|
expressions.splice(updatedChildIndex, 1);
|
|
34
32
|
}
|
|
35
33
|
else {
|
|
36
34
|
expressions[updatedChildIndex] = updatedExpression;
|
|
37
35
|
}
|
|
38
36
|
if (expressions.length === 0) {
|
|
39
|
-
this.expressionChange.emit(
|
|
37
|
+
this.expressionChange.emit(undefined);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (expressions.length === 1) {
|
|
41
|
+
this.expressionChange.emit(expressions[0]);
|
|
40
42
|
return;
|
|
41
43
|
}
|
|
42
44
|
this.expressionChange.emit({
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
op: Operator.OR,
|
|
46
|
+
exp: expressions,
|
|
45
47
|
});
|
|
46
48
|
};
|
|
47
49
|
this.handleAddChildExpression = () => {
|
|
50
|
+
const newComparison = {
|
|
51
|
+
key: '',
|
|
52
|
+
op: Operator.EQUALS,
|
|
53
|
+
exp: '',
|
|
54
|
+
};
|
|
48
55
|
const updatedExpressionsList = [
|
|
49
|
-
...this.expression.
|
|
50
|
-
|
|
51
|
-
filter_type: '',
|
|
52
|
-
},
|
|
56
|
+
...this.expression.exp,
|
|
57
|
+
newComparison,
|
|
53
58
|
];
|
|
54
59
|
this.expressionChange.emit({
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
op: Operator.OR,
|
|
61
|
+
exp: updatedExpressionsList,
|
|
57
62
|
});
|
|
58
63
|
};
|
|
59
64
|
}
|
|
60
65
|
render() {
|
|
61
|
-
return (h("div", { key: '
|
|
66
|
+
return (h("div", { key: '8efd3bba832388365d89313ebc007514fd3478e0', class: "expression" }, this.expression.exp.length > 1 && (h("limel-header", { key: 'eb65924d2e9b7e0e4e47f769b3af76773ae98266', heading: this.label, subheading: "Any of these conditions is true" })), h("ul", { key: 'cc6a4c9d7532096f054e9e20d54e67d14d45a038' }, this.expression.exp.map(this.renderChildExpression), h("li", { key: 'ad876db1e6435657d2263351b75ae4acb3a6a234', class: "add-button" }, this.renderAddChildExpression()))));
|
|
62
67
|
}
|
|
63
68
|
renderAddChildExpression() {
|
|
64
69
|
return (h("limel-icon-button", { label: "Add alternative", icon: "plus_math", onClick: this.handleAddChildExpression }));
|
|
@@ -184,13 +189,13 @@ export class LimeQueryFilterOrComponent {
|
|
|
184
189
|
"type": "unknown",
|
|
185
190
|
"mutable": false,
|
|
186
191
|
"complexType": {
|
|
187
|
-
"original": "
|
|
188
|
-
"resolved": "
|
|
192
|
+
"original": "AndOrExpression",
|
|
193
|
+
"resolved": "{ op: Operator.AND | Operator.OR; exp: Expression[]; }",
|
|
189
194
|
"references": {
|
|
190
|
-
"
|
|
195
|
+
"AndOrExpression": {
|
|
191
196
|
"location": "import",
|
|
192
|
-
"path": "
|
|
193
|
-
"id": "
|
|
197
|
+
"path": "@limetech/lime-web-components",
|
|
198
|
+
"id": "node_modules::AndOrExpression"
|
|
194
199
|
}
|
|
195
200
|
}
|
|
196
201
|
},
|
|
@@ -214,21 +219,16 @@ export class LimeQueryFilterOrComponent {
|
|
|
214
219
|
"composed": true,
|
|
215
220
|
"docs": {
|
|
216
221
|
"tags": [],
|
|
217
|
-
"text": "Emitted when the OR expression changes (expressions added/removed/modified)"
|
|
222
|
+
"text": "Emitted when the OR expression changes (expressions added/removed/modified)\nEmits undefined when expression should be removed\nCan emit any Expression type when unwrapping (single child)"
|
|
218
223
|
},
|
|
219
224
|
"complexType": {
|
|
220
|
-
"original": "
|
|
221
|
-
"resolved": "
|
|
225
|
+
"original": "Expression | undefined",
|
|
226
|
+
"resolved": "undefined | { key: string; op: BasicOperator; exp: ExpressionValue; } | { key: string; op: Operator.IN; exp: ExpressionValue[]; } | { op: Operator.AND | Operator.OR; exp: Expression[]; } | { op: Operator.NOT; exp: Expression; } | { type: \"filter\"; key: string; op: Operator.IN; exp: string; }",
|
|
222
227
|
"references": {
|
|
223
|
-
"
|
|
228
|
+
"Expression": {
|
|
224
229
|
"location": "import",
|
|
225
|
-
"path": "
|
|
226
|
-
"id": "
|
|
227
|
-
},
|
|
228
|
-
"LimeQueryFilterMissing": {
|
|
229
|
-
"location": "import",
|
|
230
|
-
"path": "../lime-query.types",
|
|
231
|
-
"id": "src/components/lime-query-builder/lime-query.types.ts::LimeQueryFilterMissing"
|
|
230
|
+
"path": "@limetech/lime-web-components",
|
|
231
|
+
"id": "node_modules::Expression"
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -10,7 +10,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
10
|
};
|
|
11
11
|
import { h } from "@stencil/core";
|
|
12
12
|
import { SelectLimeTypes as Limetypes, } from "@limetech/lime-web-components";
|
|
13
|
-
import { guiFilterToLimeQuery, limeQueryToGuiFilter, normalizeLimeQueryFilterForGui, } from "./filter-conversion";
|
|
14
13
|
import { isLimeQuerySupported, } from "./lime-query-validation";
|
|
15
14
|
/**
|
|
16
15
|
* Lime Query Builder Component
|
|
@@ -38,6 +37,7 @@ import { isLimeQuerySupported, } from "./lime-query-validation";
|
|
|
38
37
|
* (e.g., `%activeObject%.company` references the company of the active object).
|
|
39
38
|
*
|
|
40
39
|
* @exampleComponent limebb-example-lime-query-builder-basic
|
|
40
|
+
* @exampleComponent limebb-example-lime-query-builder-with-active-limetype
|
|
41
41
|
* @private
|
|
42
42
|
*/
|
|
43
43
|
export class LimeQueryBuilder {
|
|
@@ -45,18 +45,11 @@ export class LimeQueryBuilder {
|
|
|
45
45
|
this.mode = 'gui';
|
|
46
46
|
this.codeValue = '';
|
|
47
47
|
this.limetype = '';
|
|
48
|
-
this.filter = {
|
|
49
|
-
filter_type: 'AND',
|
|
50
|
-
expressions: [],
|
|
51
|
-
};
|
|
52
48
|
this.handleLimetypeChange = (event) => {
|
|
53
49
|
event.stopPropagation();
|
|
54
50
|
this.limetype = event.detail;
|
|
55
51
|
// Reset filter when limetype changes
|
|
56
|
-
this.filter =
|
|
57
|
-
filter_type: 'AND',
|
|
58
|
-
expressions: [],
|
|
59
|
-
};
|
|
52
|
+
this.filter = undefined;
|
|
60
53
|
// Reset response format when limetype changes
|
|
61
54
|
this.internalResponseFormat = {
|
|
62
55
|
object: {
|
|
@@ -66,17 +59,9 @@ export class LimeQueryBuilder {
|
|
|
66
59
|
this.emitChange();
|
|
67
60
|
};
|
|
68
61
|
this.handleFilterChange = (event) => {
|
|
62
|
+
var _a;
|
|
69
63
|
event.stopPropagation();
|
|
70
|
-
|
|
71
|
-
if (event.detail.filter_type === '') {
|
|
72
|
-
this.filter = {
|
|
73
|
-
filter_type: 'AND',
|
|
74
|
-
expressions: [],
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
this.filter = event.detail;
|
|
79
|
-
}
|
|
64
|
+
this.filter = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
80
65
|
this.emitChange();
|
|
81
66
|
};
|
|
82
67
|
this.handleResponseFormatChange = (event) => {
|
|
@@ -102,7 +87,7 @@ export class LimeQueryBuilder {
|
|
|
102
87
|
}
|
|
103
88
|
// Update internal state from parsed query
|
|
104
89
|
this.limetype = parsed.limetype || '';
|
|
105
|
-
this.filter =
|
|
90
|
+
this.filter = parsed.filter;
|
|
106
91
|
this.internalResponseFormat = parsed.responseFormat;
|
|
107
92
|
this.limit = parsed.limit;
|
|
108
93
|
this.mode = 'gui';
|
|
@@ -143,7 +128,7 @@ export class LimeQueryBuilder {
|
|
|
143
128
|
}
|
|
144
129
|
if (this.value) {
|
|
145
130
|
this.limetype = this.value.limetype || '';
|
|
146
|
-
this.filter =
|
|
131
|
+
this.filter = this.value.filter;
|
|
147
132
|
this.internalResponseFormat = this.value.responseFormat;
|
|
148
133
|
this.limit = this.value.limit;
|
|
149
134
|
}
|
|
@@ -158,7 +143,7 @@ export class LimeQueryBuilder {
|
|
|
158
143
|
render() {
|
|
159
144
|
const guiSupported = this.checkGuiSupport();
|
|
160
145
|
const showCodeMode = !this.guiModeEnabled || this.mode === 'code';
|
|
161
|
-
return (h("div", { key: '
|
|
146
|
+
return (h("div", { key: '0b4d2bb5b4d503a775d8d3215e1e4c74fdb1eceb', class: "lime-query-builder" }, this.renderLabel(), this.renderModeControls(guiSupported), showCodeMode
|
|
162
147
|
? this.renderCodeMode(guiSupported)
|
|
163
148
|
: this.renderGuiMode()));
|
|
164
149
|
}
|
|
@@ -179,7 +164,7 @@ export class LimeQueryBuilder {
|
|
|
179
164
|
const limeQuery = {
|
|
180
165
|
limetype: this.limetype,
|
|
181
166
|
responseFormat: responseFormat,
|
|
182
|
-
filter:
|
|
167
|
+
filter: this.filter,
|
|
183
168
|
};
|
|
184
169
|
if (this.limit !== undefined && this.limit > 0) {
|
|
185
170
|
limeQuery.limit = this.limit;
|
|
@@ -200,7 +185,7 @@ export class LimeQueryBuilder {
|
|
|
200
185
|
const limeQuery = {
|
|
201
186
|
limetype: this.limetype,
|
|
202
187
|
responseFormat: responseFormat,
|
|
203
|
-
filter:
|
|
188
|
+
filter: this.filter,
|
|
204
189
|
};
|
|
205
190
|
if (this.limit !== undefined && this.limit > 0) {
|
|
206
191
|
limeQuery.limit = this.limit;
|
|
@@ -251,7 +236,7 @@ export class LimeQueryBuilder {
|
|
|
251
236
|
queryToCheck = {
|
|
252
237
|
limetype: this.limetype,
|
|
253
238
|
responseFormat: responseFormat,
|
|
254
|
-
filter:
|
|
239
|
+
filter: this.filter,
|
|
255
240
|
};
|
|
256
241
|
if (this.limit !== undefined && this.limit > 0) {
|
|
257
242
|
queryToCheck.limit = this.limit;
|
|
@@ -283,7 +268,7 @@ export class LimeQueryBuilder {
|
|
|
283
268
|
if (!this.limetype) {
|
|
284
269
|
return;
|
|
285
270
|
}
|
|
286
|
-
return (h("div", { class: "filter-section" }, h("h4", { class: "section-label" }, "Filter Conditions"), h("limebb-lime-query-filter-
|
|
271
|
+
return (h("div", { class: "filter-section" }, h("h4", { class: "section-label" }, "Filter Conditions"), h("limebb-lime-query-filter-builder", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, expression: this.filter, onExpressionChange: this.handleFilterChange })));
|
|
287
272
|
}
|
|
288
273
|
renderQueryOptionsSection() {
|
|
289
274
|
var _a;
|
|
@@ -78,7 +78,7 @@ export class LimetypeField {
|
|
|
78
78
|
value: '',
|
|
79
79
|
};
|
|
80
80
|
options.unshift(emptyOption);
|
|
81
|
-
return (h("limel-select", { key: '
|
|
81
|
+
return (h("limel-select", { key: 'cf27b83c4751838e85436af443a275b3d7c9dfee', label: this.label, options: options, value: selectedOption, required: this.required, helperText: this.helperText, invalid: invalid, disabled: this.disabled || this.readonly, onChange: this.handleChange }));
|
|
82
82
|
}
|
|
83
83
|
componentWillRender() {
|
|
84
84
|
this.updatePropertyFields(this.value || '');
|
|
@@ -5,8 +5,8 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
export class LiveDocsInfo {
|
|
6
6
|
render() {
|
|
7
7
|
return [
|
|
8
|
-
h("div", { key: '
|
|
9
|
-
h("p", { key: '
|
|
8
|
+
h("div", { key: '849694495956b6afbdfeac8aa7de680e1ab03450', class: "header" }, h("limel-icon", { key: '84117fdfff949d6b41b9ec3f2b3ec73f21e5be7b', name: "not_showing_video_frames" }), h("h2", { key: '90f1738815699808c6353707b4f366d8a2c661ac' }, "Viewing this file type requires ", h("em", { key: 'ef09921e893851f06b756e1e2777847a7e4bd563' }, "Live Docs"))),
|
|
9
|
+
h("p", { key: 'a835a0e1cabd84d7509167b3331878807b083130' }, h("em", { key: '3f9ce9e473f33b89adfeb3b143e46cabb6feb1d4' }, "Live Docs"), " not only enables you to view many file formats such as Microsoft Office documents, but it also empowers you to edit them right in the CRM. No need to download anything on your device!", h("a", { key: 'f3e683b041ddd66e6f23514d9bb5f3faf80f4c3a', target: "_blank", href: "https://www.lime-technologies.com/en/lime-crm/live-docs/" }, "Learn more")),
|
|
10
10
|
];
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "limebb-live-docs-info"; }
|
|
@@ -53,7 +53,7 @@ export class LocalePicker {
|
|
|
53
53
|
const value = this.value;
|
|
54
54
|
selectedOptions = options.find((option) => option.value === value);
|
|
55
55
|
}
|
|
56
|
-
return (h("limel-select", { key: '
|
|
56
|
+
return (h("limel-select", { key: '5b3491e9dd6725186c4a2795e7893de43457e147', value: selectedOptions, options: sortBy(options, 'text'), helperText: this.helperText, label: this.label, required: this.required, disabled: this.disabled, readonly: this.readonly, onChange: this.handleChange, multiple: this.multipleChoice }));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "limebb-locale-picker"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,7 +56,7 @@ export class NotificationListItem {
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b;
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '39801fd8e10f1dc228741df48561cad3c59d81d7', id: this.item.id, class: {
|
|
60
60
|
'is-clickable': this.isItemClickable(),
|
|
61
61
|
'is-read': !!((_a = this.item) === null || _a === void 0 ? void 0 : _a.read),
|
|
62
62
|
'is-selected': !!((_b = this.item) === null || _b === void 0 ? void 0 : _b.selected),
|