@limetech/lime-crm-building-blocks 1.102.4 → 1.103.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 CHANGED
@@ -1,3 +1,14 @@
1
+ ## [1.103.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.102.4...v1.103.0) (2025-11-12)
2
+
3
+ ### Features
4
+
5
+
6
+ * **lime-query-builder:** translate expression operator labels ([1c2e0cd](https://github.com/Lundalogik/lime-crm-building-blocks/commit/1c2e0cddf78a1b458347f34a97f12279b1a5f537))
7
+ ### Bug Fixes
8
+
9
+
10
+ * **lime-query-builder:** use correct icons for operators in expressions ([7ffd5ab](https://github.com/Lundalogik/lime-crm-building-blocks/commit/7ffd5ab7f9ac1ca2532d077137a0b0699c393464)), closes [Lundalogik/crm-insights-and-intelligence#126](https://github.com/Lundalogik/crm-insights-and-intelligence/issues/126)
11
+
1
12
  ## [1.102.4](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.102.3...v1.102.4) (2025-11-12)
2
13
 
3
14
  ### Bug Fixes
@@ -9,49 +9,61 @@ const limeQueryFilterComparisonCss = ".expression-container{display:flex;flex-di
9
9
  const LimebbLimeQueryFilterComparisonStyle0 = limeQueryFilterComparisonCss;
10
10
 
11
11
  const LIME_QUERY_OPERATORS = [
12
- { value: index_esm.Zt.EQUALS, label: 'Equals', icon: 'equals' },
13
- { value: index_esm.Zt.NOT_EQUALS, label: 'Not Equals', icon: 'not-equal' },
12
+ {
13
+ value: index_esm.Zt.EQUALS,
14
+ label: 'webclient.operator.equals',
15
+ icon: '-lime-filter-equal',
16
+ },
17
+ {
18
+ value: index_esm.Zt.NOT_EQUALS,
19
+ label: 'webclient.operator.not-equals',
20
+ icon: '-lime-filter-equal-not',
21
+ },
14
22
  {
15
23
  value: index_esm.Zt.GREATER,
16
- label: 'Greater Than',
17
- icon: 'greater-than',
24
+ label: 'webclient.operator.greater-than',
25
+ icon: '-lime-filter-greater',
18
26
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
19
27
  },
20
28
  {
21
29
  value: index_esm.Zt.GREATER_OR_EQUAL,
22
- label: 'Greater or Equal',
23
- icon: 'greater-or-equal',
30
+ label: 'webclient.operator.greater-than-or-equal-to',
31
+ icon: '-lime-filter-greater-equal',
24
32
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
25
33
  },
26
34
  {
27
35
  value: index_esm.Zt.LESS,
28
- label: 'Less Than',
29
- icon: 'less-than',
36
+ label: 'webclient.operator.less-than',
37
+ icon: '-lime-filter-less',
30
38
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
31
39
  },
32
40
  {
33
41
  value: index_esm.Zt.LESS_OR_EQUAL,
34
- label: 'Less or Equal',
35
- icon: 'less-or-equal',
42
+ label: 'webclient.operator.less-than-or-equal-to',
43
+ icon: '-lime-filter-less-equal',
36
44
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
37
45
  },
38
- { value: index_esm.Zt.IN, label: 'In List', icon: 'list' },
46
+ {
47
+ value: index_esm.Zt.IN,
48
+ label: 'webclient.operator.in-filter',
49
+ icon: '-lime-filter-set-included',
50
+ },
39
51
  {
40
52
  value: index_esm.Zt.LIKE,
41
- label: 'Contains',
53
+ label: 'webclient.operator.contains',
42
54
  icon: '-lime-filter-contain',
43
55
  applicableTypes: ['string', 'text'],
44
56
  },
45
57
  {
46
58
  value: index_esm.Zt.BEGINS,
47
- label: 'Begins With',
48
- icon: '-lime-filter-begin',
59
+ label: 'webclient.operator.begins-with',
60
+ icon: '-lime-filter-starts-with',
49
61
  applicableTypes: ['string', 'text'],
50
62
  },
51
63
  {
52
64
  value: index_esm.Zt.ENDS,
53
- label: 'Ends With',
54
- icon: '-lime-filter-end',
65
+ label: 'webclient.operator.ends-with',
66
+ icon: '-lime-filter-ends-with',
55
67
  applicableTypes: ['string', 'text'],
56
68
  },
57
69
  ];
@@ -82,18 +94,21 @@ const LimeQueryFilterComparisonComponent = class {
82
94
  };
83
95
  }
84
96
  render() {
85
- return (index.h("div", { key: '41fc60ed4ce76de8bbed05ee8cc658a188347cbd', class: "expression" }, this.label && index.h("limel-header", { key: '95cb9b556e2e0f2c8f3fd8ebe3909c402a844fe3', heading: this.label }), index.h("div", { key: 'feac7dcf059a0a20ad499d1549fa45d775d6bec8', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), index.h("limel-icon-button", { key: '0fee01518c1c4a29c347a47ce1ce7856b32dfa8f', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
97
+ return (index.h("div", { key: 'cc82394cb254423d27e3f3fd946155f59d4df995', class: "expression" }, this.label && index.h("limel-header", { key: '11b988d6f57b7f6c0f1df70b5ef28f6c328c2326', heading: this.label }), index.h("div", { key: '2ead8a31fd0af9e049096b3eb489eed809435f1a', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), index.h("limel-icon-button", { key: '3f14064d07045c45321b59c2e41bc4f788dee0f8', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
86
98
  }
87
99
  renderPropertySelector() {
88
100
  return (index.h("limebb-property-selector", { platform: this.platform, context: this.context, label: "Property", limetype: this.limetype, value: this.expression.key, required: true, onChange: this.handlePropertyChange }));
89
101
  }
90
102
  renderOperator() {
91
103
  const operatorHasBeenSet = !!this.expression.op;
92
- const options = LIME_QUERY_OPERATORS.map((op) => ({
93
- text: op.label,
94
- value: op.value,
95
- icon: op.icon ? { name: op.icon } : undefined,
96
- }));
104
+ const options = LIME_QUERY_OPERATORS.map((op) => {
105
+ var _a, _b;
106
+ return ({
107
+ text: (_b = (_a = this.translator) === null || _a === void 0 ? void 0 : _a.get(op.label)) !== null && _b !== void 0 ? _b : op.label,
108
+ value: op.value,
109
+ icon: op.icon ? { name: op.icon } : undefined,
110
+ });
111
+ });
97
112
  const selectedOption = options.find((o) => o.value === this.expression.op);
98
113
  return (index.h("limel-select", { class: "operator", label: "Operator", value: selectedOption, options: options, disabled: !operatorHasBeenSet && !this.expression.key, onChange: this.handleOperatorChange }));
99
114
  }
@@ -103,6 +118,10 @@ const LimeQueryFilterComparisonComponent = class {
103
118
  }
104
119
  return (index.h("limebb-lime-query-value-input", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, propertyPath: this.expression.key, operator: this.expression.op, value: this.expression.exp, onChange: this.handleValueChange }));
105
120
  }
121
+ get translator() {
122
+ var _a;
123
+ return (_a = this.platform) === null || _a === void 0 ? void 0 : _a.get(index_esm.c.Translate);
124
+ }
106
125
  };
107
126
  LimeQueryFilterComparisonComponent.style = LimebbLimeQueryFilterComparisonStyle0;
108
127
 
@@ -1,49 +1,61 @@
1
- import { Operator, } from "@limetech/lime-web-components";
1
+ import { Operator, PlatformServiceName, } from "@limetech/lime-web-components";
2
2
  import { h } from "@stencil/core";
3
3
  const LIME_QUERY_OPERATORS = [
4
- { value: Operator.EQUALS, label: 'Equals', icon: 'equals' },
5
- { value: Operator.NOT_EQUALS, label: 'Not Equals', icon: 'not-equal' },
4
+ {
5
+ value: Operator.EQUALS,
6
+ label: 'webclient.operator.equals',
7
+ icon: '-lime-filter-equal',
8
+ },
9
+ {
10
+ value: Operator.NOT_EQUALS,
11
+ label: 'webclient.operator.not-equals',
12
+ icon: '-lime-filter-equal-not',
13
+ },
6
14
  {
7
15
  value: Operator.GREATER,
8
- label: 'Greater Than',
9
- icon: 'greater-than',
16
+ label: 'webclient.operator.greater-than',
17
+ icon: '-lime-filter-greater',
10
18
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
11
19
  },
12
20
  {
13
21
  value: Operator.GREATER_OR_EQUAL,
14
- label: 'Greater or Equal',
15
- icon: 'greater-or-equal',
22
+ label: 'webclient.operator.greater-than-or-equal-to',
23
+ icon: '-lime-filter-greater-equal',
16
24
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
17
25
  },
18
26
  {
19
27
  value: Operator.LESS,
20
- label: 'Less Than',
21
- icon: 'less-than',
28
+ label: 'webclient.operator.less-than',
29
+ icon: '-lime-filter-less',
22
30
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
23
31
  },
24
32
  {
25
33
  value: Operator.LESS_OR_EQUAL,
26
- label: 'Less or Equal',
27
- icon: 'less-or-equal',
34
+ label: 'webclient.operator.less-than-or-equal-to',
35
+ icon: '-lime-filter-less-equal',
28
36
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
29
37
  },
30
- { value: Operator.IN, label: 'In List', icon: 'list' },
38
+ {
39
+ value: Operator.IN,
40
+ label: 'webclient.operator.in-filter',
41
+ icon: '-lime-filter-set-included',
42
+ },
31
43
  {
32
44
  value: Operator.LIKE,
33
- label: 'Contains',
45
+ label: 'webclient.operator.contains',
34
46
  icon: '-lime-filter-contain',
35
47
  applicableTypes: ['string', 'text'],
36
48
  },
37
49
  {
38
50
  value: Operator.BEGINS,
39
- label: 'Begins With',
40
- icon: '-lime-filter-begin',
51
+ label: 'webclient.operator.begins-with',
52
+ icon: '-lime-filter-starts-with',
41
53
  applicableTypes: ['string', 'text'],
42
54
  },
43
55
  {
44
56
  value: Operator.ENDS,
45
- label: 'Ends With',
46
- icon: '-lime-filter-end',
57
+ label: 'webclient.operator.ends-with',
58
+ icon: '-lime-filter-ends-with',
47
59
  applicableTypes: ['string', 'text'],
48
60
  },
49
61
  ];
@@ -94,18 +106,21 @@ export class LimeQueryFilterComparisonComponent {
94
106
  };
95
107
  }
96
108
  render() {
97
- return (h("div", { key: '41fc60ed4ce76de8bbed05ee8cc658a188347cbd', class: "expression" }, this.label && h("limel-header", { key: '95cb9b556e2e0f2c8f3fd8ebe3909c402a844fe3', heading: this.label }), h("div", { key: 'feac7dcf059a0a20ad499d1549fa45d775d6bec8', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), h("limel-icon-button", { key: '0fee01518c1c4a29c347a47ce1ce7856b32dfa8f', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
109
+ return (h("div", { key: 'cc82394cb254423d27e3f3fd946155f59d4df995', class: "expression" }, this.label && h("limel-header", { key: '11b988d6f57b7f6c0f1df70b5ef28f6c328c2326', heading: this.label }), h("div", { key: '2ead8a31fd0af9e049096b3eb489eed809435f1a', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), h("limel-icon-button", { key: '3f14064d07045c45321b59c2e41bc4f788dee0f8', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
98
110
  }
99
111
  renderPropertySelector() {
100
112
  return (h("limebb-property-selector", { platform: this.platform, context: this.context, label: "Property", limetype: this.limetype, value: this.expression.key, required: true, onChange: this.handlePropertyChange }));
101
113
  }
102
114
  renderOperator() {
103
115
  const operatorHasBeenSet = !!this.expression.op;
104
- const options = LIME_QUERY_OPERATORS.map((op) => ({
105
- text: op.label,
106
- value: op.value,
107
- icon: op.icon ? { name: op.icon } : undefined,
108
- }));
116
+ const options = LIME_QUERY_OPERATORS.map((op) => {
117
+ var _a, _b;
118
+ return ({
119
+ text: (_b = (_a = this.translator) === null || _a === void 0 ? void 0 : _a.get(op.label)) !== null && _b !== void 0 ? _b : op.label,
120
+ value: op.value,
121
+ icon: op.icon ? { name: op.icon } : undefined,
122
+ });
123
+ });
109
124
  const selectedOption = options.find((o) => o.value === this.expression.op);
110
125
  return (h("limel-select", { class: "operator", label: "Operator", value: selectedOption, options: options, disabled: !operatorHasBeenSet && !this.expression.key, onChange: this.handleOperatorChange }));
111
126
  }
@@ -115,6 +130,10 @@ export class LimeQueryFilterComparisonComponent {
115
130
  }
116
131
  return (h("limebb-lime-query-value-input", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, propertyPath: this.expression.key, operator: this.expression.op, value: this.expression.exp, onChange: this.handleValueChange }));
117
132
  }
133
+ get translator() {
134
+ var _a;
135
+ return (_a = this.platform) === null || _a === void 0 ? void 0 : _a.get(PlatformServiceName.Translate);
136
+ }
118
137
  static get is() { return "limebb-lime-query-filter-comparison"; }
119
138
  static get encapsulation() { return "shadow"; }
120
139
  static get originalStyleUrls() {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Zt } from './index.esm.js';
2
+ import { c, Z as Zt } from './index.esm.js';
3
3
  import { d as defineCustomElement$2 } from './lime-query-value-input.js';
4
4
  import { d as defineCustomElement$1 } from './property-selector.js';
5
5
 
@@ -7,49 +7,61 @@ const limeQueryFilterComparisonCss = ".expression-container{display:flex;flex-di
7
7
  const LimebbLimeQueryFilterComparisonStyle0 = limeQueryFilterComparisonCss;
8
8
 
9
9
  const LIME_QUERY_OPERATORS = [
10
- { value: Zt.EQUALS, label: 'Equals', icon: 'equals' },
11
- { value: Zt.NOT_EQUALS, label: 'Not Equals', icon: 'not-equal' },
10
+ {
11
+ value: Zt.EQUALS,
12
+ label: 'webclient.operator.equals',
13
+ icon: '-lime-filter-equal',
14
+ },
15
+ {
16
+ value: Zt.NOT_EQUALS,
17
+ label: 'webclient.operator.not-equals',
18
+ icon: '-lime-filter-equal-not',
19
+ },
12
20
  {
13
21
  value: Zt.GREATER,
14
- label: 'Greater Than',
15
- icon: 'greater-than',
22
+ label: 'webclient.operator.greater-than',
23
+ icon: '-lime-filter-greater',
16
24
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
17
25
  },
18
26
  {
19
27
  value: Zt.GREATER_OR_EQUAL,
20
- label: 'Greater or Equal',
21
- icon: 'greater-or-equal',
28
+ label: 'webclient.operator.greater-than-or-equal-to',
29
+ icon: '-lime-filter-greater-equal',
22
30
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
23
31
  },
24
32
  {
25
33
  value: Zt.LESS,
26
- label: 'Less Than',
27
- icon: 'less-than',
34
+ label: 'webclient.operator.less-than',
35
+ icon: '-lime-filter-less',
28
36
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
29
37
  },
30
38
  {
31
39
  value: Zt.LESS_OR_EQUAL,
32
- label: 'Less or Equal',
33
- icon: 'less-or-equal',
40
+ label: 'webclient.operator.less-than-or-equal-to',
41
+ icon: '-lime-filter-less-equal',
34
42
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
35
43
  },
36
- { value: Zt.IN, label: 'In List', icon: 'list' },
44
+ {
45
+ value: Zt.IN,
46
+ label: 'webclient.operator.in-filter',
47
+ icon: '-lime-filter-set-included',
48
+ },
37
49
  {
38
50
  value: Zt.LIKE,
39
- label: 'Contains',
51
+ label: 'webclient.operator.contains',
40
52
  icon: '-lime-filter-contain',
41
53
  applicableTypes: ['string', 'text'],
42
54
  },
43
55
  {
44
56
  value: Zt.BEGINS,
45
- label: 'Begins With',
46
- icon: '-lime-filter-begin',
57
+ label: 'webclient.operator.begins-with',
58
+ icon: '-lime-filter-starts-with',
47
59
  applicableTypes: ['string', 'text'],
48
60
  },
49
61
  {
50
62
  value: Zt.ENDS,
51
- label: 'Ends With',
52
- icon: '-lime-filter-end',
63
+ label: 'webclient.operator.ends-with',
64
+ icon: '-lime-filter-ends-with',
53
65
  applicableTypes: ['string', 'text'],
54
66
  },
55
67
  ];
@@ -82,18 +94,21 @@ const LimeQueryFilterComparisonComponent = /*@__PURE__*/ proxyCustomElement(clas
82
94
  };
83
95
  }
84
96
  render() {
85
- return (h("div", { key: '41fc60ed4ce76de8bbed05ee8cc658a188347cbd', class: "expression" }, this.label && h("limel-header", { key: '95cb9b556e2e0f2c8f3fd8ebe3909c402a844fe3', heading: this.label }), h("div", { key: 'feac7dcf059a0a20ad499d1549fa45d775d6bec8', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), h("limel-icon-button", { key: '0fee01518c1c4a29c347a47ce1ce7856b32dfa8f', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
97
+ return (h("div", { key: 'cc82394cb254423d27e3f3fd946155f59d4df995', class: "expression" }, this.label && h("limel-header", { key: '11b988d6f57b7f6c0f1df70b5ef28f6c328c2326', heading: this.label }), h("div", { key: '2ead8a31fd0af9e049096b3eb489eed809435f1a', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), h("limel-icon-button", { key: '3f14064d07045c45321b59c2e41bc4f788dee0f8', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
86
98
  }
87
99
  renderPropertySelector() {
88
100
  return (h("limebb-property-selector", { platform: this.platform, context: this.context, label: "Property", limetype: this.limetype, value: this.expression.key, required: true, onChange: this.handlePropertyChange }));
89
101
  }
90
102
  renderOperator() {
91
103
  const operatorHasBeenSet = !!this.expression.op;
92
- const options = LIME_QUERY_OPERATORS.map((op) => ({
93
- text: op.label,
94
- value: op.value,
95
- icon: op.icon ? { name: op.icon } : undefined,
96
- }));
104
+ const options = LIME_QUERY_OPERATORS.map((op) => {
105
+ var _a, _b;
106
+ return ({
107
+ text: (_b = (_a = this.translator) === null || _a === void 0 ? void 0 : _a.get(op.label)) !== null && _b !== void 0 ? _b : op.label,
108
+ value: op.value,
109
+ icon: op.icon ? { name: op.icon } : undefined,
110
+ });
111
+ });
97
112
  const selectedOption = options.find((o) => o.value === this.expression.op);
98
113
  return (h("limel-select", { class: "operator", label: "Operator", value: selectedOption, options: options, disabled: !operatorHasBeenSet && !this.expression.key, onChange: this.handleOperatorChange }));
99
114
  }
@@ -103,6 +118,10 @@ const LimeQueryFilterComparisonComponent = /*@__PURE__*/ proxyCustomElement(clas
103
118
  }
104
119
  return (h("limebb-lime-query-value-input", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, propertyPath: this.expression.key, operator: this.expression.op, value: this.expression.exp, onChange: this.handleValueChange }));
105
120
  }
121
+ get translator() {
122
+ var _a;
123
+ return (_a = this.platform) === null || _a === void 0 ? void 0 : _a.get(c.Translate);
124
+ }
106
125
  static get style() { return LimebbLimeQueryFilterComparisonStyle0; }
107
126
  }, [1, "limebb-lime-query-filter-comparison", {
108
127
  "platform": [16],
@@ -1,53 +1,65 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-96dd111f.js';
2
- import { Z as Zt } from './index.esm-bb569663.js';
2
+ import { c, Z as Zt } from './index.esm-bb569663.js';
3
3
 
4
4
  const limeQueryFilterComparisonCss = ".expression-container{display:flex;flex-direction:row;align-items:flex-start;gap:1rem;flex-wrap:wrap}.expression-container>*{flex-grow:2;width:30%;max-width:calc(100% - 3.25rem)}.expression-container>.operator{flex-grow:1;width:calc(30% + 1rem);min-width:4rem}.expression-container>.remove{flex-grow:0;width:auto;margin-left:auto}@media (max-width: 768px){.expression-container{flex-direction:column}.expression-container>*{width:100%;max-width:100%}.expression-container>.operator{width:100%}.expression-container>.remove{margin-left:0;align-self:flex-end}}";
5
5
  const LimebbLimeQueryFilterComparisonStyle0 = limeQueryFilterComparisonCss;
6
6
 
7
7
  const LIME_QUERY_OPERATORS = [
8
- { value: Zt.EQUALS, label: 'Equals', icon: 'equals' },
9
- { value: Zt.NOT_EQUALS, label: 'Not Equals', icon: 'not-equal' },
8
+ {
9
+ value: Zt.EQUALS,
10
+ label: 'webclient.operator.equals',
11
+ icon: '-lime-filter-equal',
12
+ },
13
+ {
14
+ value: Zt.NOT_EQUALS,
15
+ label: 'webclient.operator.not-equals',
16
+ icon: '-lime-filter-equal-not',
17
+ },
10
18
  {
11
19
  value: Zt.GREATER,
12
- label: 'Greater Than',
13
- icon: 'greater-than',
20
+ label: 'webclient.operator.greater-than',
21
+ icon: '-lime-filter-greater',
14
22
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
15
23
  },
16
24
  {
17
25
  value: Zt.GREATER_OR_EQUAL,
18
- label: 'Greater or Equal',
19
- icon: 'greater-or-equal',
26
+ label: 'webclient.operator.greater-than-or-equal-to',
27
+ icon: '-lime-filter-greater-equal',
20
28
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
21
29
  },
22
30
  {
23
31
  value: Zt.LESS,
24
- label: 'Less Than',
25
- icon: 'less-than',
32
+ label: 'webclient.operator.less-than',
33
+ icon: '-lime-filter-less',
26
34
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
27
35
  },
28
36
  {
29
37
  value: Zt.LESS_OR_EQUAL,
30
- label: 'Less or Equal',
31
- icon: 'less-or-equal',
38
+ label: 'webclient.operator.less-than-or-equal-to',
39
+ icon: '-lime-filter-less-equal',
32
40
  applicableTypes: ['integer', 'decimal', 'date', 'time'],
33
41
  },
34
- { value: Zt.IN, label: 'In List', icon: 'list' },
42
+ {
43
+ value: Zt.IN,
44
+ label: 'webclient.operator.in-filter',
45
+ icon: '-lime-filter-set-included',
46
+ },
35
47
  {
36
48
  value: Zt.LIKE,
37
- label: 'Contains',
49
+ label: 'webclient.operator.contains',
38
50
  icon: '-lime-filter-contain',
39
51
  applicableTypes: ['string', 'text'],
40
52
  },
41
53
  {
42
54
  value: Zt.BEGINS,
43
- label: 'Begins With',
44
- icon: '-lime-filter-begin',
55
+ label: 'webclient.operator.begins-with',
56
+ icon: '-lime-filter-starts-with',
45
57
  applicableTypes: ['string', 'text'],
46
58
  },
47
59
  {
48
60
  value: Zt.ENDS,
49
- label: 'Ends With',
50
- icon: '-lime-filter-end',
61
+ label: 'webclient.operator.ends-with',
62
+ icon: '-lime-filter-ends-with',
51
63
  applicableTypes: ['string', 'text'],
52
64
  },
53
65
  ];
@@ -78,18 +90,21 @@ const LimeQueryFilterComparisonComponent = class {
78
90
  };
79
91
  }
80
92
  render() {
81
- return (h("div", { key: '41fc60ed4ce76de8bbed05ee8cc658a188347cbd', class: "expression" }, this.label && h("limel-header", { key: '95cb9b556e2e0f2c8f3fd8ebe3909c402a844fe3', heading: this.label }), h("div", { key: 'feac7dcf059a0a20ad499d1549fa45d775d6bec8', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), h("limel-icon-button", { key: '0fee01518c1c4a29c347a47ce1ce7856b32dfa8f', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
93
+ return (h("div", { key: 'cc82394cb254423d27e3f3fd946155f59d4df995', class: "expression" }, this.label && h("limel-header", { key: '11b988d6f57b7f6c0f1df70b5ef28f6c328c2326', heading: this.label }), h("div", { key: '2ead8a31fd0af9e049096b3eb489eed809435f1a', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), h("limel-icon-button", { key: '3f14064d07045c45321b59c2e41bc4f788dee0f8', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
82
94
  }
83
95
  renderPropertySelector() {
84
96
  return (h("limebb-property-selector", { platform: this.platform, context: this.context, label: "Property", limetype: this.limetype, value: this.expression.key, required: true, onChange: this.handlePropertyChange }));
85
97
  }
86
98
  renderOperator() {
87
99
  const operatorHasBeenSet = !!this.expression.op;
88
- const options = LIME_QUERY_OPERATORS.map((op) => ({
89
- text: op.label,
90
- value: op.value,
91
- icon: op.icon ? { name: op.icon } : undefined,
92
- }));
100
+ const options = LIME_QUERY_OPERATORS.map((op) => {
101
+ var _a, _b;
102
+ return ({
103
+ text: (_b = (_a = this.translator) === null || _a === void 0 ? void 0 : _a.get(op.label)) !== null && _b !== void 0 ? _b : op.label,
104
+ value: op.value,
105
+ icon: op.icon ? { name: op.icon } : undefined,
106
+ });
107
+ });
93
108
  const selectedOption = options.find((o) => o.value === this.expression.op);
94
109
  return (h("limel-select", { class: "operator", label: "Operator", value: selectedOption, options: options, disabled: !operatorHasBeenSet && !this.expression.key, onChange: this.handleOperatorChange }));
95
110
  }
@@ -99,6 +114,10 @@ const LimeQueryFilterComparisonComponent = class {
99
114
  }
100
115
  return (h("limebb-lime-query-value-input", { platform: this.platform, context: this.context, limetype: this.limetype, activeLimetype: this.activeLimetype, propertyPath: this.expression.key, operator: this.expression.op, value: this.expression.exp, onChange: this.handleValueChange }));
101
116
  }
117
+ get translator() {
118
+ var _a;
119
+ return (_a = this.platform) === null || _a === void 0 ? void 0 : _a.get(c.Translate);
120
+ }
102
121
  };
103
122
  LimeQueryFilterComparisonComponent.style = LimebbLimeQueryFilterComparisonStyle0;
104
123
 
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-1556b545.js";export{s as setNonce}from"./p-1556b545.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t(JSON.parse('[["p-3384f1ee",[[1,"limebb-lime-query-builder",{"platform":[16],"context":[16],"value":[16],"label":[1],"activeLimetype":[1,"active-limetype"],"limetypes":[32],"mode":[32],"codeValue":[32],"limetype":[32],"filter":[32],"internalResponseFormat":[32],"limit":[32],"orderBy":[32]}]]],["p-ee1b00b9",[[1,"limebb-feed",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"heading":[1],"loading":[4],"minutesOfProximity":[2,"minutes-of-proximity"],"totalCount":[2,"total-count"],"direction":[513],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"highlightedItemId":[8,"highlighted-item-id"]},null,{"highlightedItemId":["highlightedItemIdChanged"]}]]],["p-3a406a20",[[1,"limebb-kanban",{"platform":[16],"context":[16],"groups":[16]}]]],["p-2d5f83bc",[[1,"limebb-lime-query-response-format-builder",{"platform":[16],"context":[16],"limetype":[1],"value":[16],"label":[1],"limetypes":[32],"mode":[32],"codeValue":[32],"internalValue":[32]}]]],["p-32534eb7",[[1,"limebb-chat-list",{"platform":[16],"context":[16],"items":[16],"loading":[516],"isTypingIndicatorVisible":[516,"is-typing-indicator-visible"],"lastVisitedTimestamp":[513,"last-visited-timestamp"],"order":[513]},null,{"items":["handleItemsChange"]}]]],["p-03af0e66",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["p-6f6fed59",[[1,"limebb-text-editor",{"platform":[16],"context":[16],"allowMentioning":[4,"allow-mentioning"],"contentType":[1,"content-type"],"language":[513],"disabled":[516],"readonly":[516],"helperText":[513,"helper-text"],"placeholder":[513],"label":[513],"invalid":[516],"required":[516],"selectedContext":[16],"ui":[513],"allowResize":[4,"allow-resize"],"value":[1],"draftIdentifier":[1,"draft-identifier"],"triggerMap":[16],"customElements":[16],"allowInlineImages":[4,"allow-inline-images"],"items":[32],"highlightedItemIndex":[32],"editorPickerQuery":[32],"searchableLimetypes":[32],"isPickerOpen":[32],"isSearching":[32]},null,{"isPickerOpen":["watchOpen"],"editorPickerQuery":["watchQuery"]}]]],["p-8491aaa1",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["p-4a82410e",[[1,"limebb-document-picker",{"platform":[16],"context":[16],"items":[16],"label":[513],"helperText":[513,"helper-text"],"invalid":[516],"required":[516],"type":[513]}]]],["p-568b7520",[[1,"limebb-info-tile-currency-format",{"platform":[16],"context":[16],"value":[16]}]]],["p-2fdcb868",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"loading":[4],"lastVisitedTimestamp":[1,"last-visited-timestamp"]},null,{"items":["handleItemsChange"]}]]],["p-5464f0de",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["p-3175883d",[[1,"limebb-component-config",{"platform":[16],"context":[16],"value":[16],"required":[4],"readonly":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"formInfo":[16],"type":[1],"nameField":[1,"name-field"],"configComponent":[32],"configViewType":[32]},null,{"formInfo":["watchFormInfo"],"configComponent":["watchconfigComponent"]}]]],["p-1be0eec7",[[1,"limebb-component-picker",{"platform":[16],"context":[16],"type":[1],"tags":[16],"value":[1],"copyLabel":[1,"copy-label"],"hideCopyButton":[4,"hide-copy-button"],"required":[4],"readonly":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["p-10ac8b3e",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["p-e35299e0",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["p-a200954f",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[513,"filter-id"],"disabled":[4],"icon":[513],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"format":[16],"config":[32],"filters":[32],"value":[32],"loading":[32],"error":[32]},null,{"filterId":["watchFilterId"],"propertyName":["watchPropertyName"],"aggregateOperator":["watchAggregateOperator"]}]]],["p-01cff04f",[[1,"limebb-info-tile-date-format",{"value":[16]}]]],["p-4caa8bbe",[[1,"limebb-info-tile-decimal-format",{"value":[16]}]]],["p-ff0b244b",[[1,"limebb-info-tile-format",{"platform":[16],"context":[16],"type":[1],"value":[16]}]]],["p-25e1a434",[[1,"limebb-info-tile-relative-date-format",{"value":[16]}]]],["p-6c56121c",[[1,"limebb-info-tile-unit-format",{"value":[16]}]]],["p-206575e4",[[1,"limebb-loader",{"platform":[16],"context":[16]}]]],["p-0de79b7f",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["p-cfa1a4ad",[[1,"limebb-mention",{"limetype":[1],"objectid":[2],"limeobject":[32]}]]],["p-d0721b22",[[1,"limebb-mention-group-counter",{"count":[2],"limetype":[16],"helperLabel":[1,"helper-label"]}]]],["p-3d1be1c9",[[1,"limebb-percentage-visualizer",{"platform":[16],"context":[16],"value":[520],"rangeMax":[514,"range-max"],"rangeMin":[514,"range-min"],"multiplier":[514],"label":[513],"invalid":[516],"required":[516],"helperText":[513,"helper-text"],"reducePresence":[516,"reduce-presence"],"displayPercentageColors":[516,"display-percentage-colors"]},null,{"value":["valueChanged"]}]]],["p-577d8909",[[1,"limebb-trend-indicator",{"platform":[16],"context":[16],"value":[520],"formerValue":[514,"former-value"],"suffix":[513],"label":[513],"invalid":[516],"required":[516],"helperText":[513,"helper-text"],"reducePresence":[516,"reduce-presence"]},null,{"value":["valueChanged"]}]]],["p-7271f47a",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"helperText":[1,"helper-text"],"hasError":[516,"has-error"],"isBundled":[516,"is-bundled"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["p-eb81bceb",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["p-2faaacbc",[[1,"limebb-kanban-group",{"platform":[16],"context":[16],"identifier":[1],"heading":[513],"help":[1],"items":[16],"summary":[1],"loading":[516],"totalCount":[514,"total-count"]}]]],["p-218b7f38",[[1,"limebb-text-editor-picker",{"items":[16],"open":[516],"isSearching":[4,"is-searching"],"emptyMessage":[1,"empty-message"]},null,{"open":["watchOpen"]}]]],["p-9031f136",[[1,"limebb-currency-picker",{"platform":[16],"context":[16],"label":[513],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"value":[1]}]]],["p-098ee6c1",[[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]],["p-9d25ed5a",[[17,"limebb-document-item",{"platform":[16],"context":[16],"item":[16],"type":[513]}]]],["p-a9ac501f",[[1,"limebb-live-docs-info"]]],["p-0f7135ff",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]],["p-5c693302",[[1,"limebb-lime-query-order-by-item",{"platform":[16],"context":[16],"limetype":[1],"item":[16]}]]],["p-5dc574a3",[[1,"limebb-chat-item",{"platform":[16],"context":[16],"item":[16],"helperText":[1,"helper-text"],"hasError":[516,"has-error"]}],[1,"limebb-typing-indicator"]]],["p-61282e1a",[[1,"limebb-feed-item-thumbnail-file-info",{"description":[1]}]]],["p-8917c472",[[1,"limebb-lime-query-filter-builder",{"platform":[16],"context":[16],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}],[1,"limebb-lime-query-order-by-editor",{"platform":[16],"context":[16],"limetype":[1],"value":[16],"label":[1],"items":[32]},null,{"value":["handleValueChange"]}],[0,"limebb-limetype-field",{"platform":[16],"context":[16],"label":[513],"required":[516],"readonly":[516],"disabled":[516],"value":[513],"helperText":[513,"helper-text"],"invalid":[4],"limetypes":[16],"propertyFields":[16],"fieldName":[1,"field-name"],"formInfo":[16]}]]],["p-292631ea",[[1,"limebb-empty-state",{"heading":[513],"value":[513],"icon":[16]}]]],["p-d8696b23",[[1,"limebb-property-selector",{"platform":[16],"context":[16],"limetype":[1],"value":[1],"label":[1],"required":[4],"helperText":[1,"helper-text"],"limetypes":[32],"isOpen":[32],"navigationPath":[32]}]]],["p-9167bc6c",[[1,"limebb-lime-query-response-format-editor",{"platform":[16],"context":[16],"limetype":[1],"value":[16],"label":[1],"items":[32]}],[1,"limebb-lime-query-response-format-item",{"platform":[16],"context":[16],"limetype":[1],"item":[16],"showAliasInput":[32],"showDescriptionInput":[32]}]]],["p-7e5528f6",[[1,"limebb-summary-popover",{"triggerDelay":[514,"trigger-delay"],"heading":[513],"subheading":[513],"image":[16],"icon":[513],"value":[1],"openDirection":[513,"open-direction"],"popoverMaxWidth":[513,"popover-max-width"],"popoverMaxHeight":[513,"popover-max-height"],"actions":[16],"isPopoverOpen":[32]}],[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["p-1f76540e",[[1,"limebb-lime-query-value-input",{"platform":[16],"context":[16],"limetype":[1],"activeLimetype":[1,"active-limetype"],"propertyPath":[1,"property-path"],"operator":[1],"value":[8],"label":[1],"limetypes":[32],"inputMode":[32]}],[1,"limebb-lime-query-filter-group",{"platform":[16],"context":[16],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}],[1,"limebb-lime-query-filter-not",{"platform":[16],"context":[16],"label":[1],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}]]],["p-186e9f1a",[[1,"limebb-lime-query-filter-expression",{"platform":[16],"context":[16],"label":[1],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}],[1,"limebb-lime-query-filter-comparison",{"platform":[16],"context":[16],"label":[1],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}]]]]'),e))));
1
+ import{p as e,b as t}from"./p-1556b545.js";export{s as setNonce}from"./p-1556b545.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t(JSON.parse('[["p-3384f1ee",[[1,"limebb-lime-query-builder",{"platform":[16],"context":[16],"value":[16],"label":[1],"activeLimetype":[1,"active-limetype"],"limetypes":[32],"mode":[32],"codeValue":[32],"limetype":[32],"filter":[32],"internalResponseFormat":[32],"limit":[32],"orderBy":[32]}]]],["p-ee1b00b9",[[1,"limebb-feed",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"heading":[1],"loading":[4],"minutesOfProximity":[2,"minutes-of-proximity"],"totalCount":[2,"total-count"],"direction":[513],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"highlightedItemId":[8,"highlighted-item-id"]},null,{"highlightedItemId":["highlightedItemIdChanged"]}]]],["p-3a406a20",[[1,"limebb-kanban",{"platform":[16],"context":[16],"groups":[16]}]]],["p-2d5f83bc",[[1,"limebb-lime-query-response-format-builder",{"platform":[16],"context":[16],"limetype":[1],"value":[16],"label":[1],"limetypes":[32],"mode":[32],"codeValue":[32],"internalValue":[32]}]]],["p-32534eb7",[[1,"limebb-chat-list",{"platform":[16],"context":[16],"items":[16],"loading":[516],"isTypingIndicatorVisible":[516,"is-typing-indicator-visible"],"lastVisitedTimestamp":[513,"last-visited-timestamp"],"order":[513]},null,{"items":["handleItemsChange"]}]]],["p-03af0e66",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["p-6f6fed59",[[1,"limebb-text-editor",{"platform":[16],"context":[16],"allowMentioning":[4,"allow-mentioning"],"contentType":[1,"content-type"],"language":[513],"disabled":[516],"readonly":[516],"helperText":[513,"helper-text"],"placeholder":[513],"label":[513],"invalid":[516],"required":[516],"selectedContext":[16],"ui":[513],"allowResize":[4,"allow-resize"],"value":[1],"draftIdentifier":[1,"draft-identifier"],"triggerMap":[16],"customElements":[16],"allowInlineImages":[4,"allow-inline-images"],"items":[32],"highlightedItemIndex":[32],"editorPickerQuery":[32],"searchableLimetypes":[32],"isPickerOpen":[32],"isSearching":[32]},null,{"isPickerOpen":["watchOpen"],"editorPickerQuery":["watchQuery"]}]]],["p-8491aaa1",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["p-4a82410e",[[1,"limebb-document-picker",{"platform":[16],"context":[16],"items":[16],"label":[513],"helperText":[513,"helper-text"],"invalid":[516],"required":[516],"type":[513]}]]],["p-568b7520",[[1,"limebb-info-tile-currency-format",{"platform":[16],"context":[16],"value":[16]}]]],["p-2fdcb868",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"loading":[4],"lastVisitedTimestamp":[1,"last-visited-timestamp"]},null,{"items":["handleItemsChange"]}]]],["p-5464f0de",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["p-3175883d",[[1,"limebb-component-config",{"platform":[16],"context":[16],"value":[16],"required":[4],"readonly":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"formInfo":[16],"type":[1],"nameField":[1,"name-field"],"configComponent":[32],"configViewType":[32]},null,{"formInfo":["watchFormInfo"],"configComponent":["watchconfigComponent"]}]]],["p-1be0eec7",[[1,"limebb-component-picker",{"platform":[16],"context":[16],"type":[1],"tags":[16],"value":[1],"copyLabel":[1,"copy-label"],"hideCopyButton":[4,"hide-copy-button"],"required":[4],"readonly":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["p-10ac8b3e",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["p-e35299e0",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["p-a200954f",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[513,"filter-id"],"disabled":[4],"icon":[513],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"format":[16],"config":[32],"filters":[32],"value":[32],"loading":[32],"error":[32]},null,{"filterId":["watchFilterId"],"propertyName":["watchPropertyName"],"aggregateOperator":["watchAggregateOperator"]}]]],["p-01cff04f",[[1,"limebb-info-tile-date-format",{"value":[16]}]]],["p-4caa8bbe",[[1,"limebb-info-tile-decimal-format",{"value":[16]}]]],["p-ff0b244b",[[1,"limebb-info-tile-format",{"platform":[16],"context":[16],"type":[1],"value":[16]}]]],["p-25e1a434",[[1,"limebb-info-tile-relative-date-format",{"value":[16]}]]],["p-6c56121c",[[1,"limebb-info-tile-unit-format",{"value":[16]}]]],["p-206575e4",[[1,"limebb-loader",{"platform":[16],"context":[16]}]]],["p-0de79b7f",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["p-cfa1a4ad",[[1,"limebb-mention",{"limetype":[1],"objectid":[2],"limeobject":[32]}]]],["p-d0721b22",[[1,"limebb-mention-group-counter",{"count":[2],"limetype":[16],"helperLabel":[1,"helper-label"]}]]],["p-3d1be1c9",[[1,"limebb-percentage-visualizer",{"platform":[16],"context":[16],"value":[520],"rangeMax":[514,"range-max"],"rangeMin":[514,"range-min"],"multiplier":[514],"label":[513],"invalid":[516],"required":[516],"helperText":[513,"helper-text"],"reducePresence":[516,"reduce-presence"],"displayPercentageColors":[516,"display-percentage-colors"]},null,{"value":["valueChanged"]}]]],["p-577d8909",[[1,"limebb-trend-indicator",{"platform":[16],"context":[16],"value":[520],"formerValue":[514,"former-value"],"suffix":[513],"label":[513],"invalid":[516],"required":[516],"helperText":[513,"helper-text"],"reducePresence":[516,"reduce-presence"]},null,{"value":["valueChanged"]}]]],["p-7271f47a",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"helperText":[1,"helper-text"],"hasError":[516,"has-error"],"isBundled":[516,"is-bundled"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["p-eb81bceb",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["p-2faaacbc",[[1,"limebb-kanban-group",{"platform":[16],"context":[16],"identifier":[1],"heading":[513],"help":[1],"items":[16],"summary":[1],"loading":[516],"totalCount":[514,"total-count"]}]]],["p-218b7f38",[[1,"limebb-text-editor-picker",{"items":[16],"open":[516],"isSearching":[4,"is-searching"],"emptyMessage":[1,"empty-message"]},null,{"open":["watchOpen"]}]]],["p-9031f136",[[1,"limebb-currency-picker",{"platform":[16],"context":[16],"label":[513],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"value":[1]}]]],["p-098ee6c1",[[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]],["p-9d25ed5a",[[17,"limebb-document-item",{"platform":[16],"context":[16],"item":[16],"type":[513]}]]],["p-a9ac501f",[[1,"limebb-live-docs-info"]]],["p-0f7135ff",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]],["p-5c693302",[[1,"limebb-lime-query-order-by-item",{"platform":[16],"context":[16],"limetype":[1],"item":[16]}]]],["p-5dc574a3",[[1,"limebb-chat-item",{"platform":[16],"context":[16],"item":[16],"helperText":[1,"helper-text"],"hasError":[516,"has-error"]}],[1,"limebb-typing-indicator"]]],["p-61282e1a",[[1,"limebb-feed-item-thumbnail-file-info",{"description":[1]}]]],["p-8917c472",[[1,"limebb-lime-query-filter-builder",{"platform":[16],"context":[16],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}],[1,"limebb-lime-query-order-by-editor",{"platform":[16],"context":[16],"limetype":[1],"value":[16],"label":[1],"items":[32]},null,{"value":["handleValueChange"]}],[0,"limebb-limetype-field",{"platform":[16],"context":[16],"label":[513],"required":[516],"readonly":[516],"disabled":[516],"value":[513],"helperText":[513,"helper-text"],"invalid":[4],"limetypes":[16],"propertyFields":[16],"fieldName":[1,"field-name"],"formInfo":[16]}]]],["p-292631ea",[[1,"limebb-empty-state",{"heading":[513],"value":[513],"icon":[16]}]]],["p-d8696b23",[[1,"limebb-property-selector",{"platform":[16],"context":[16],"limetype":[1],"value":[1],"label":[1],"required":[4],"helperText":[1,"helper-text"],"limetypes":[32],"isOpen":[32],"navigationPath":[32]}]]],["p-9167bc6c",[[1,"limebb-lime-query-response-format-editor",{"platform":[16],"context":[16],"limetype":[1],"value":[16],"label":[1],"items":[32]}],[1,"limebb-lime-query-response-format-item",{"platform":[16],"context":[16],"limetype":[1],"item":[16],"showAliasInput":[32],"showDescriptionInput":[32]}]]],["p-7e5528f6",[[1,"limebb-summary-popover",{"triggerDelay":[514,"trigger-delay"],"heading":[513],"subheading":[513],"image":[16],"icon":[513],"value":[1],"openDirection":[513,"open-direction"],"popoverMaxWidth":[513,"popover-max-width"],"popoverMaxHeight":[513,"popover-max-height"],"actions":[16],"isPopoverOpen":[32]}],[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["p-1f76540e",[[1,"limebb-lime-query-value-input",{"platform":[16],"context":[16],"limetype":[1],"activeLimetype":[1,"active-limetype"],"propertyPath":[1,"property-path"],"operator":[1],"value":[8],"label":[1],"limetypes":[32],"inputMode":[32]}],[1,"limebb-lime-query-filter-group",{"platform":[16],"context":[16],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}],[1,"limebb-lime-query-filter-not",{"platform":[16],"context":[16],"label":[1],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}]]],["p-18e9e1bc",[[1,"limebb-lime-query-filter-expression",{"platform":[16],"context":[16],"label":[1],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}],[1,"limebb-lime-query-filter-comparison",{"platform":[16],"context":[16],"label":[1],"limetype":[1],"activeLimetype":[1,"active-limetype"],"expression":[16]}]]]]'),e))));
@@ -0,0 +1 @@
1
+ import{r as e,c as i,h as t}from"./p-1556b545.js";import{c as r,Z as l}from"./p-4838284a.js";const s=[{value:l.EQUALS,label:"webclient.operator.equals",icon:"-lime-filter-equal"},{value:l.NOT_EQUALS,label:"webclient.operator.not-equals",icon:"-lime-filter-equal-not"},{value:l.GREATER,label:"webclient.operator.greater-than",icon:"-lime-filter-greater",applicableTypes:["integer","decimal","date","time"]},{value:l.GREATER_OR_EQUAL,label:"webclient.operator.greater-than-or-equal-to",icon:"-lime-filter-greater-equal",applicableTypes:["integer","decimal","date","time"]},{value:l.LESS,label:"webclient.operator.less-than",icon:"-lime-filter-less",applicableTypes:["integer","decimal","date","time"]},{value:l.LESS_OR_EQUAL,label:"webclient.operator.less-than-or-equal-to",icon:"-lime-filter-less-equal",applicableTypes:["integer","decimal","date","time"]},{value:l.IN,label:"webclient.operator.in-filter",icon:"-lime-filter-set-included"},{value:l.LIKE,label:"webclient.operator.contains",icon:"-lime-filter-contain",applicableTypes:["string","text"]},{value:l.BEGINS,label:"webclient.operator.begins-with",icon:"-lime-filter-starts-with",applicableTypes:["string","text"]},{value:l.ENDS,label:"webclient.operator.ends-with",icon:"-lime-filter-ends-with",applicableTypes:["string","text"]}],a=class{constructor(t){e(this,t),this.expressionChange=i(this,"expressionChange",7),this.handlePropertyChange=e=>{e.stopPropagation(),this.expressionChange.emit(Object.assign(Object.assign({},this.expression),{key:e.detail}))},this.handleOperatorChange=e=>{e.stopPropagation(),this.expressionChange.emit({key:this.expression.key,op:e.detail.value,exp:this.expression.exp})},this.handleValueChange=e=>{e.stopPropagation(),this.expressionChange.emit(Object.assign(Object.assign({},this.expression),{exp:e.detail}))},this.removeExpression=()=>{this.expressionChange.emit(void 0)}}render(){return t("div",{key:"cc82394cb254423d27e3f3fd946155f59d4df995",class:"expression"},this.label&&t("limel-header",{key:"11b988d6f57b7f6c0f1df70b5ef28f6c328c2326",heading:this.label}),t("div",{key:"2ead8a31fd0af9e049096b3eb489eed809435f1a",class:"expression-container"},this.renderPropertySelector(),this.renderOperator(),this.renderValueInput(),t("limel-icon-button",{key:"3f14064d07045c45321b59c2e41bc4f788dee0f8",class:"remove",icon:"trash",label:"Remove condition",onClick:this.removeExpression})))}renderPropertySelector(){return t("limebb-property-selector",{platform:this.platform,context:this.context,label:"Property",limetype:this.limetype,value:this.expression.key,required:!0,onChange:this.handlePropertyChange})}renderOperator(){const e=!!this.expression.op,i=s.map((e=>{var i,t;return{text:null!==(t=null===(i=this.translator)||void 0===i?void 0:i.get(e.label))&&void 0!==t?t:e.label,value:e.value,icon:e.icon?{name:e.icon}:void 0}})),r=i.find((e=>e.value===this.expression.op));return t("limel-select",{class:"operator",label:"Operator",value:r,options:i,disabled:!e&&!this.expression.key,onChange:this.handleOperatorChange})}renderValueInput(){return this.expression.op?t("limebb-lime-query-value-input",{platform:this.platform,context:this.context,limetype:this.limetype,activeLimetype:this.activeLimetype,propertyPath:this.expression.key,operator:this.expression.op,value:this.expression.exp,onChange:this.handleValueChange}):null}get translator(){var e;return null===(e=this.platform)||void 0===e?void 0:e.get(r.Translate)}};a.style=".expression-container{display:flex;flex-direction:row;align-items:flex-start;gap:1rem;flex-wrap:wrap}.expression-container>*{flex-grow:2;width:30%;max-width:calc(100% - 3.25rem)}.expression-container>.operator{flex-grow:1;width:calc(30% + 1rem);min-width:4rem}.expression-container>.remove{flex-grow:0;width:auto;margin-left:auto}@media (max-width: 768px){.expression-container{flex-direction:column}.expression-container>*{width:100%;max-width:100%}.expression-container>.operator{width:100%}.expression-container>.remove{margin-left:0;align-self:flex-end}}";const o=class{constructor(t){e(this,t),this.expressionChange=i(this,"expressionChange",7),this.handleExpressionChange=e=>{e.stopPropagation(),this.expressionChange.emit(e.detail)}}render(){if(!this.expression)return;const e={platform:this.platform,context:this.context,label:this.label,limetype:this.limetype,activeLimetype:this.activeLimetype};return"key"in this.expression?t("limebb-lime-query-filter-comparison",Object.assign({},e,{expression:this.expression,onExpressionChange:this.handleExpressionChange})):this.expression.op===l.AND||this.expression.op===l.OR?t("limebb-lime-query-filter-group",Object.assign({},e,{expression:this.expression,onExpressionChange:this.handleExpressionChange})):this.expression.op===l.NOT?t("limebb-lime-query-filter-not",Object.assign({},e,{expression:this.expression,onExpressionChange:this.handleExpressionChange})):void 0}};o.style='@charset "UTF-8";.expression{display:flex;flex-direction:column;margin-bottom:1rem;gap:1rem}';export{a as limebb_lime_query_filter_comparison,o as limebb_lime_query_filter_expression}
@@ -61,6 +61,7 @@ export declare class LimeQueryFilterComparisonComponent {
61
61
  private handleOperatorChange;
62
62
  private handleValueChange;
63
63
  private removeExpression;
64
+ private get translator();
64
65
  }
65
66
  export {};
66
67
  //# sourceMappingURL=lime-query-filter-comparison.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-crm-building-blocks",
3
- "version": "1.102.4",
3
+ "version": "1.103.0",
4
4
  "description": "A home for shared components meant for use with Lime CRM",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{r as e,c as i,h as t}from"./p-1556b545.js";import{Z as s}from"./p-4838284a.js";const a=[{value:s.EQUALS,label:"Equals",icon:"equals"},{value:s.NOT_EQUALS,label:"Not Equals",icon:"not-equal"},{value:s.GREATER,label:"Greater Than",icon:"greater-than",applicableTypes:["integer","decimal","date","time"]},{value:s.GREATER_OR_EQUAL,label:"Greater or Equal",icon:"greater-or-equal",applicableTypes:["integer","decimal","date","time"]},{value:s.LESS,label:"Less Than",icon:"less-than",applicableTypes:["integer","decimal","date","time"]},{value:s.LESS_OR_EQUAL,label:"Less or Equal",icon:"less-or-equal",applicableTypes:["integer","decimal","date","time"]},{value:s.IN,label:"In List",icon:"list"},{value:s.LIKE,label:"Contains",icon:"-lime-filter-contain",applicableTypes:["string","text"]},{value:s.BEGINS,label:"Begins With",icon:"-lime-filter-begin",applicableTypes:["string","text"]},{value:s.ENDS,label:"Ends With",icon:"-lime-filter-end",applicableTypes:["string","text"]}],r=class{constructor(t){e(this,t),this.expressionChange=i(this,"expressionChange",7),this.handlePropertyChange=e=>{e.stopPropagation(),this.expressionChange.emit(Object.assign(Object.assign({},this.expression),{key:e.detail}))},this.handleOperatorChange=e=>{e.stopPropagation(),this.expressionChange.emit({key:this.expression.key,op:e.detail.value,exp:this.expression.exp})},this.handleValueChange=e=>{e.stopPropagation(),this.expressionChange.emit(Object.assign(Object.assign({},this.expression),{exp:e.detail}))},this.removeExpression=()=>{this.expressionChange.emit(void 0)}}render(){return t("div",{key:"41fc60ed4ce76de8bbed05ee8cc658a188347cbd",class:"expression"},this.label&&t("limel-header",{key:"95cb9b556e2e0f2c8f3fd8ebe3909c402a844fe3",heading:this.label}),t("div",{key:"feac7dcf059a0a20ad499d1549fa45d775d6bec8",class:"expression-container"},this.renderPropertySelector(),this.renderOperator(),this.renderValueInput(),t("limel-icon-button",{key:"0fee01518c1c4a29c347a47ce1ce7856b32dfa8f",class:"remove",icon:"trash",label:"Remove condition",onClick:this.removeExpression})))}renderPropertySelector(){return t("limebb-property-selector",{platform:this.platform,context:this.context,label:"Property",limetype:this.limetype,value:this.expression.key,required:!0,onChange:this.handlePropertyChange})}renderOperator(){const e=!!this.expression.op,i=a.map((e=>({text:e.label,value:e.value,icon:e.icon?{name:e.icon}:void 0}))),s=i.find((e=>e.value===this.expression.op));return t("limel-select",{class:"operator",label:"Operator",value:s,options:i,disabled:!e&&!this.expression.key,onChange:this.handleOperatorChange})}renderValueInput(){return this.expression.op?t("limebb-lime-query-value-input",{platform:this.platform,context:this.context,limetype:this.limetype,activeLimetype:this.activeLimetype,propertyPath:this.expression.key,operator:this.expression.op,value:this.expression.exp,onChange:this.handleValueChange}):null}};r.style=".expression-container{display:flex;flex-direction:row;align-items:flex-start;gap:1rem;flex-wrap:wrap}.expression-container>*{flex-grow:2;width:30%;max-width:calc(100% - 3.25rem)}.expression-container>.operator{flex-grow:1;width:calc(30% + 1rem);min-width:4rem}.expression-container>.remove{flex-grow:0;width:auto;margin-left:auto}@media (max-width: 768px){.expression-container{flex-direction:column}.expression-container>*{width:100%;max-width:100%}.expression-container>.operator{width:100%}.expression-container>.remove{margin-left:0;align-self:flex-end}}";const l=class{constructor(t){e(this,t),this.expressionChange=i(this,"expressionChange",7),this.handleExpressionChange=e=>{e.stopPropagation(),this.expressionChange.emit(e.detail)}}render(){if(!this.expression)return;const e={platform:this.platform,context:this.context,label:this.label,limetype:this.limetype,activeLimetype:this.activeLimetype};return"key"in this.expression?t("limebb-lime-query-filter-comparison",Object.assign({},e,{expression:this.expression,onExpressionChange:this.handleExpressionChange})):this.expression.op===s.AND||this.expression.op===s.OR?t("limebb-lime-query-filter-group",Object.assign({},e,{expression:this.expression,onExpressionChange:this.handleExpressionChange})):this.expression.op===s.NOT?t("limebb-lime-query-filter-not",Object.assign({},e,{expression:this.expression,onExpressionChange:this.handleExpressionChange})):void 0}};l.style='@charset "UTF-8";.expression{display:flex;flex-direction:column;margin-bottom:1rem;gap:1rem}';export{r as limebb_lime_query_filter_comparison,l as limebb_lime_query_filter_expression}