@sankhyalabs/sankhyablocks 5.7.0 → 5.8.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.
Files changed (78) hide show
  1. package/dist/cjs/{SnkMessageBuilder-056d1c24.js → SnkMessageBuilder-1760d2c9.js} +7 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  4. package/dist/cjs/snk-application.cjs.entry.js +1 -1
  5. package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
  6. package/dist/cjs/{snk-data-unit-289081c4.js → snk-data-unit-f27603c9.js} +1 -1
  7. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  8. package/dist/cjs/snk-detail-view.cjs.entry.js +1 -1
  9. package/dist/cjs/snk-filter-bar.cjs.entry.js +1 -1
  10. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +19 -15
  11. package/dist/cjs/snk-filter-detail.cjs.entry.js +4 -9
  12. package/dist/cjs/snk-filter-item.cjs.entry.js +35 -7
  13. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +4 -3
  14. package/dist/cjs/snk-filter-modal.cjs.entry.js +2 -2
  15. package/dist/cjs/snk-filter-period.cjs.entry.js +8 -1
  16. package/dist/cjs/snk-grid.cjs.entry.js +8 -1
  17. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +19 -35
  18. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +23 -1
  19. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +5 -10
  20. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +36 -8
  21. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +1 -0
  22. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +1 -1
  23. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css +5 -1
  24. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +3 -2
  25. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +1 -1
  26. package/dist/collection/components/snk-grid/snk-grid.js +8 -1
  27. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +7 -0
  28. package/dist/components/SnkMessageBuilder.js +7 -0
  29. package/dist/components/snk-filter-bar2.js +1 -1
  30. package/dist/components/snk-filter-binary-select.js +20 -17
  31. package/dist/components/snk-filter-detail2.js +5 -10
  32. package/dist/components/snk-filter-item2.js +36 -8
  33. package/dist/components/snk-filter-modal-item2.js +4 -3
  34. package/dist/components/snk-filter-modal.js +2 -2
  35. package/dist/components/snk-filter-period.js +9 -1
  36. package/dist/components/snk-grid2.js +8 -1
  37. package/dist/esm/{SnkMessageBuilder-23272e07.js → SnkMessageBuilder-4caf8b4f.js} +7 -0
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/sankhyablocks.js +1 -1
  40. package/dist/esm/snk-application.entry.js +1 -1
  41. package/dist/esm/snk-data-exporter.entry.js +2 -2
  42. package/dist/esm/{snk-data-unit-34dc5371.js → snk-data-unit-640399b3.js} +1 -1
  43. package/dist/esm/snk-data-unit.entry.js +2 -2
  44. package/dist/esm/snk-detail-view.entry.js +1 -1
  45. package/dist/esm/snk-filter-bar.entry.js +1 -1
  46. package/dist/esm/snk-filter-binary-select.entry.js +19 -15
  47. package/dist/esm/snk-filter-detail.entry.js +5 -10
  48. package/dist/esm/snk-filter-item.entry.js +36 -8
  49. package/dist/esm/snk-filter-modal-item.entry.js +4 -3
  50. package/dist/esm/snk-filter-modal.entry.js +2 -2
  51. package/dist/esm/snk-filter-period.entry.js +8 -1
  52. package/dist/esm/snk-grid.entry.js +8 -1
  53. package/dist/sankhyablocks/p-08779202.entry.js +1 -0
  54. package/dist/sankhyablocks/{p-7695c404.entry.js → p-1465f132.entry.js} +1 -1
  55. package/dist/sankhyablocks/{p-0110b7da.entry.js → p-21c2b733.entry.js} +1 -1
  56. package/dist/sankhyablocks/p-29c1889f.js +1 -0
  57. package/dist/sankhyablocks/p-355e7ab0.entry.js +1 -0
  58. package/dist/sankhyablocks/p-3794686e.entry.js +1 -0
  59. package/dist/sankhyablocks/{p-64b03506.entry.js → p-4181c36d.entry.js} +1 -1
  60. package/dist/sankhyablocks/{p-c1ab16d0.entry.js → p-57b74971.entry.js} +2 -2
  61. package/dist/sankhyablocks/p-59705471.entry.js +1 -0
  62. package/dist/sankhyablocks/{p-3db1d3de.js → p-6981c03e.js} +1 -1
  63. package/dist/sankhyablocks/p-80e52e85.entry.js +1 -0
  64. package/dist/sankhyablocks/{p-df8f13b4.entry.js → p-9c3f0caf.entry.js} +1 -1
  65. package/dist/sankhyablocks/p-9cbc3925.entry.js +1 -0
  66. package/dist/sankhyablocks/p-b9fb86fe.entry.js +1 -0
  67. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  68. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +8 -1
  69. package/dist/types/components.d.ts +8 -4
  70. package/package.json +1 -1
  71. package/dist/sankhyablocks/p-45ee8b22.entry.js +0 -1
  72. package/dist/sankhyablocks/p-82bc97da.entry.js +0 -1
  73. package/dist/sankhyablocks/p-a1c58536.entry.js +0 -1
  74. package/dist/sankhyablocks/p-bdbb2672.entry.js +0 -1
  75. package/dist/sankhyablocks/p-ed3d6ab4.entry.js +0 -1
  76. package/dist/sankhyablocks/p-ee1381f4.entry.js +0 -1
  77. package/dist/sankhyablocks/p-f5f36fbb.js +0 -1
  78. package/dist/sankhyablocks/p-ffac37d5.entry.js +0 -1
@@ -4,6 +4,8 @@ import FilterItemType from '../filter-item-type.enum';
4
4
  import { EPresentationMode } from './enum/presentationMode';
5
5
  export class SnkFilterBinarySelect {
6
6
  constructor() {
7
+ this._noOptionValue = 'NO_VALUE';
8
+ this._radioButtonValue = undefined;
7
9
  this.value = undefined;
8
10
  this.config = undefined;
9
11
  this.presentationMode = EPresentationMode.CHIP;
@@ -15,15 +17,15 @@ export class SnkFilterBinarySelect {
15
17
  * Emitido quando acontece a alteração de valor do componente snk-filter-binary-select
16
18
  */
17
19
  ezChangeListener(evt) {
18
- if (!evt.detail) {
19
- this.assertCheckedOption(evt.target);
20
- }
21
- this.updateValue();
22
- }
23
- componentDidLoad() {
24
- if (this._element) {
25
- ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
20
+ if (this.presentationMode === EPresentationMode.MODAL) {
21
+ if (!evt.detail) {
22
+ this.assertCheckedOption(evt.target);
23
+ }
24
+ this.updateValue();
25
+ return;
26
26
  }
27
+ this.value = evt.detail === this._noOptionValue ? undefined : evt.detail;
28
+ this._radioButtonValue = evt.detail;
27
29
  }
28
30
  assertCheckedOption(updatingCheck) {
29
31
  if (updatingCheck === this._checkOne) {
@@ -43,11 +45,13 @@ export class SnkFilterBinarySelect {
43
45
  }
44
46
  this.valueChanged.emit(this.value);
45
47
  }
46
- /**
47
- * Exibe o componente snk-filter-binary-select
48
- */
49
- async show() {
50
- this._checkOne.setFocus();
48
+ componentDidLoad() {
49
+ if (this._element) {
50
+ ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
51
+ }
52
+ }
53
+ componentWillLoad() {
54
+ this._radioButtonValue = this.value || this._noOptionValue;
51
55
  }
52
56
  render() {
53
57
  if (!this.config || this.config.type !== FilterItemType.BINARY_SELECT) {
@@ -55,9 +59,9 @@ export class SnkFilterBinarySelect {
55
59
  }
56
60
  const [optOne, optTwo] = this.config.props.options;
57
61
  if (this.presentationMode === EPresentationMode.MODAL) {
58
- return (h(Host, null, h("div", { class: "ez-flex ez-flex--row ez-flex--align-items-center" }, h("label", { class: "ez-text ez-text--medium ez-text--primary", style: { flex: '1 1 0', width: '0px' } }, this.config.detailModal), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) }))));
62
+ return (h(Host, null, h("div", { class: "ez-flex ez-flex--row ez-flex--align-items-center" }, h("label", { class: "ez-text ez-title--small ez-title--primary", style: { flex: '1 1 0', width: '0px' } }, this.config.detailModal), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) }))));
59
63
  }
60
- return (h(Host, null, h("ez-check", { id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
64
+ return (h(Host, null, h("ez-radio-button", { value: this._radioButtonValue }, h("ez-radio-button-option", { id: `${this.config.id}_${optOne.name || "option1"}`, class: "sc-snk-filter-bar editor__ez-check", label: optOne.label, value: optOne.name }), h("ez-radio-button-option", { id: `${this.config.id}_${optTwo.name || "option2"}`, class: "sc-snk-filter-bar editor__ez-check", label: optTwo.label, value: optTwo.name }), h("ez-radio-button-option", { id: `${this.config.id}_option3`, class: "sc-snk-filter-bar editor__ez-check", label: `${optOne.label} + ${optTwo.label}`, value: this._noOptionValue }))));
61
65
  }
62
66
  static get is() { return "snk-filter-binary-select"; }
63
67
  static get properties() {
@@ -142,26 +146,6 @@ export class SnkFilterBinarySelect {
142
146
  }
143
147
  }];
144
148
  }
145
- static get methods() {
146
- return {
147
- "show": {
148
- "complexType": {
149
- "signature": "() => Promise<void>",
150
- "parameters": [],
151
- "references": {
152
- "Promise": {
153
- "location": "global"
154
- }
155
- },
156
- "return": "Promise<void>"
157
- },
158
- "docs": {
159
- "text": "Exibe o componente snk-filter-binary-select",
160
- "tags": []
161
- }
162
- }
163
- };
164
- }
165
149
  static get elementRef() { return "_element"; }
166
150
  static get listeners() {
167
151
  return [{
@@ -4,7 +4,10 @@ import FilterItemType from '../filter-item-type.enum';
4
4
  import { EPresentationMode } from './enum/presentationMode';
5
5
  export class SnkFilterPeriod {
6
6
  constructor() {
7
+ this._startDateLabel = 'Inicial';
8
+ this._endDateLabel = 'Final';
7
9
  this.config = undefined;
10
+ this.getMessage = undefined;
8
11
  this.value = undefined;
9
12
  this.presentationMode = EPresentationMode.CHIP;
10
13
  }
@@ -45,11 +48,15 @@ export class SnkFilterPeriod {
45
48
  return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9");
46
49
  }
47
50
  }
51
+ componentWillLoad() {
52
+ this._startDateLabel = this.getMessage('snkFilterBar.labelStartDatePeriod');
53
+ this._endDateLabel = this.getMessage('snkFilterBar.labelEndDatePeriod');
54
+ }
48
55
  render() {
49
56
  if (!this.config || this.config.type !== FilterItemType.PERIOD) {
50
57
  return undefined;
51
58
  }
52
- return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { id: `${this.config.id}_start`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--small' : '', label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), this.buildLabel(), h("ez-date-input", { id: `${this.config.id}_end`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--small' : '', label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
59
+ return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { id: `${this.config.id}_start`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--small' : '', label: this._startDateLabel, ref: ref => this._startDate = ref, value: this.getDate("start") }), this.buildLabel(), h("ez-date-input", { id: `${this.config.id}_end`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--small' : '', label: this._endDateLabel, ref: ref => this._endDate = ref, value: this.getDate("end") })));
53
60
  }
54
61
  static get is() { return "snk-filter-period"; }
55
62
  static get properties() {
@@ -74,6 +81,21 @@ export class SnkFilterPeriod {
74
81
  "text": "Define as configura\u00E7\u00F5es do componente snk-filter-period"
75
82
  }
76
83
  },
84
+ "getMessage": {
85
+ "type": "unknown",
86
+ "mutable": false,
87
+ "complexType": {
88
+ "original": "(key: string, props?: any) => string",
89
+ "resolved": "(key: string, props?: any) => string",
90
+ "references": {}
91
+ },
92
+ "required": false,
93
+ "optional": false,
94
+ "docs": {
95
+ "tags": [],
96
+ "text": "Usado pra flexibilizar os verbetes e mensagens de acordo com o SnkMessageBuilder."
97
+ }
98
+ },
77
99
  "value": {
78
100
  "type": "any",
79
101
  "mutable": false,
@@ -1,4 +1,4 @@
1
- import { h, Host } from '@stencil/core';
1
+ import { h, Host, Fragment } from '@stencil/core';
2
2
  import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
3
3
  import FilterItemType from './filter-item-type.enum';
4
4
  import { ElementIDUtils, DataType } from '@sankhyalabs/core';
@@ -11,7 +11,8 @@ export class SnkFilterDetail {
11
11
  * Exibe o componente snk-filter-detail.
12
12
  */
13
13
  async show() {
14
- this._editor["show"]();
14
+ var _a, _b;
15
+ (_b = (_a = this._editor)["show"]) === null || _b === void 0 ? void 0 : _b.call(_a);
15
16
  }
16
17
  componentDidLoad() {
17
18
  if (this._element) {
@@ -44,13 +45,7 @@ export class SnkFilterDetail {
44
45
  this.changeConfig(Object.assign(Object.assign({}, this.config), { visible: false, fixed: false, value: undefined }));
45
46
  }
46
47
  getPopUpHeaderButtons() {
47
- if (this.config.hardFixed) {
48
- return undefined;
49
- }
50
- return ([
51
- this.buildIcon(this.getMessage("snkFilterBar.removeFilter"), "delete", () => this.removeItem()),
52
- this.buildIcon(this.getMessage(this.config.fixed ? "snkFilterBar.unpinFilter" : "snkFilterBar.pinFilter"), this.config.fixed ? "un-pin" : "push-pin", () => this.changeConfig(Object.assign(Object.assign({}, this.config), { fixed: !this.config.fixed })))
53
- ]);
48
+ return (h(Fragment, null, !this.config.removalBlocked && this.buildIcon(this.getMessage("snkFilterBar.removeFilter"), "delete", () => this.removeItem()), !this.config.hardFixed && this.buildIcon(this.getMessage(this.config.fixed ? "snkFilterBar.unpinFilter" : "snkFilterBar.pinFilter"), this.config.fixed ? "un-pin" : "push-pin", () => this.changeConfig(Object.assign(Object.assign({}, this.config), { fixed: !this.config.fixed })))));
54
49
  }
55
50
  buildIcon(title, iconName, action) {
56
51
  return (h("button", { onClick: () => action(), class: "sc-snk-filter-bar snk-filter-item__editor-header-button", ref: elem => elem && this.buildIdButton(elem, title) }, h("ez-icon", Object.assign({ title: title, iconName: iconName }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo(`_${title}`)}` }))));
@@ -122,7 +117,7 @@ export class SnkFilterDetail {
122
117
  }
123
118
  render() {
124
119
  const ContentEditor = this.getContentEditor();
125
- return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, onKeyDown: evt => this.onKeyDonwListener(evt), "data-element-id": this._idContentEditor }), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), h("ez-button", { ref: ref => this._applyButton = ref, label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
120
+ return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, onKeyDown: evt => this.onKeyDonwListener(evt), "data-element-id": this._idContentEditor, getMessage: this.getMessage }), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), h("ez-button", { ref: ref => this._applyButton = ref, label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
126
121
  }
127
122
  static get is() { return "snk-filter-detail"; }
128
123
  static get properties() {
@@ -1,4 +1,4 @@
1
- import { ElementIDUtils, FloatingManager } from '@sankhyalabs/core';
1
+ import { ElementIDUtils, FloatingManager, DateUtils } from '@sankhyalabs/core';
2
2
  import { h, Host } from '@stencil/core';
3
3
  import FilterItemType from './filter-item-type.enum';
4
4
  export class SnkFilterItem {
@@ -110,16 +110,17 @@ export class SnkFilterItem {
110
110
  evt.stopPropagation();
111
111
  }
112
112
  }
113
- getLabel() {
113
+ getLabel(isTooltipLabel = false) {
114
114
  const { type, value, label, props } = this.config;
115
115
  if (value) {
116
116
  if (type === FilterItemType.BINARY_SELECT) {
117
117
  const [optOne, optTwo] = props.options;
118
+ const tooltip = this.getMessage('snkFilterBar.binarySelectTooltip');
118
119
  if (optOne.name === value) {
119
- return optOne.label;
120
+ return isTooltipLabel ? `${tooltip} ${String(optOne.label).toLowerCase()}` : optOne.label;
120
121
  }
121
122
  if (optTwo.name === value) {
122
- return optTwo.label;
123
+ return isTooltipLabel ? `${tooltip} ${String(optTwo.label).toLowerCase()}` : optTwo.label;
123
124
  }
124
125
  }
125
126
  if (type === FilterItemType.MULTI_SELECT) {
@@ -138,14 +139,21 @@ export class SnkFilterItem {
138
139
  }
139
140
  const dateFormater = new Intl.DateTimeFormat("pt-BR");
140
141
  if (end && start) {
141
- return `${label}: ${dateFormater.format(start)} a ${dateFormater.format(end)}`;
142
+ const isSameYear = start.getFullYear() === end.getFullYear();
143
+ const formatOptions = Object.assign({ day: '2-digit', month: '2-digit' }, ((!isSameYear || isTooltipLabel) && { year: '2-digit' }));
144
+ const startLabel = DateUtils.formatDate(start, formatOptions);
145
+ const endLabel = DateUtils.formatDate(end, formatOptions);
146
+ if (isTooltipLabel) {
147
+ return this.getMessage('snkFilterBar.fullPeriodTooltip', { LABEL: label, START_LABEL: startLabel, END_LABEL: endLabel });
148
+ }
149
+ return `${label}: ${startLabel} \u2192 ${endLabel}`;
142
150
  }
143
151
  else {
144
152
  if (start) {
145
- return `${label}: A partir de ${dateFormater.format(start)}`;
153
+ return `${label}: ${this.getMessage('snkFilterBar.onlyStartPeriodToltip')} ${dateFormater.format(start)}`;
146
154
  }
147
155
  else if (end) {
148
- return `${label}: Até ${dateFormater.format(end)}`;
156
+ return `${label}: ${this.getMessage('snkFilterBar.onlyEndPeriodToltip')} ${dateFormater.format(end)}`;
149
157
  }
150
158
  else {
151
159
  return label;
@@ -158,10 +166,30 @@ export class SnkFilterItem {
158
166
  if (type === FilterItemType.PERSONALIZED) {
159
167
  return label;
160
168
  }
169
+ if (type === FilterItemType.MULTI_LIST) {
170
+ const selectedOptions = value.filter(item => item.check);
171
+ const checkedAmount = selectedOptions.length;
172
+ if (checkedAmount > 1) {
173
+ if (isTooltipLabel) {
174
+ const selectedOptionsDescrptions = selectedOptions.map(item => item.description);
175
+ return `${label}: ${selectedOptionsDescrptions.join(',')}`;
176
+ }
177
+ return `${label}: ${checkedAmount} ${this.getMessage('snkFilterBar.multiListToltip')}`;
178
+ }
179
+ return `${label}: ${value.description}`;
180
+ }
161
181
  return `${label}: ${value}`;
162
182
  }
163
183
  return label;
164
184
  }
185
+ applyTooltip() {
186
+ if (!this.config.value)
187
+ return undefined;
188
+ return {
189
+ 'data-tooltip': this.getLabel(true),
190
+ 'data-flow': 'bottom'
191
+ };
192
+ }
165
193
  componentDidLoad() {
166
194
  if (this._filterItemElement) {
167
195
  ElementIDUtils.addIDInfo(this._filterItemElement);
@@ -199,7 +227,7 @@ export class SnkFilterItem {
199
227
  }
200
228
  render() {
201
229
  const leftIcon = this.getLeftIconName();
202
- return (h(Host, null, h("ez-chip", { ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.config.value != undefined, id: this.config.id }, leftIcon ? h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail }))));
230
+ return (h(Host, Object.assign({}, this.applyTooltip()), h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.config.value != undefined }, leftIcon ? h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail }))));
203
231
  }
204
232
  static get is() { return "snk-filter-item"; }
205
233
  static get properties() {
@@ -29,6 +29,7 @@ ez-modal {
29
29
  .snk-filter__modal-collapsible-box{
30
30
  border: 1px solid #DCE0E8;
31
31
  border-radius: var(--border--radius-medium);
32
+ padding: 12px 6px;
32
33
  }
33
34
 
34
35
 
@@ -74,7 +74,7 @@ export class SnkFilterModal {
74
74
  return null;
75
75
  const appliedFilters = listItems.filter(filterItem => !!filterItem.value).length;
76
76
  const lines = this.mountFiltersLines(listItems);
77
- return (h("ez-collapsible-box", { className: "snk-filter__modal-collapsible-box ez-padding--medium", headerSize: "medium", value: true, label: label }, !!appliedFilters && (h("ez-badge", { className: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters })), lines.map(this.renderFilterLine.bind(this)), h("div", { class: "ez-flex ez-flex--justify-end grow" }, h("ez-button", { className: "ez-button--tertiary", size: "medium", label: "Limpar", onClick: () => this.handleClearFilters(listItems) }))));
77
+ return (h("ez-collapsible-box", { className: "snk-filter__modal-collapsible-box", headerSize: "medium", value: true, label: label }, !!appliedFilters && (h("ez-badge", { className: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters })), lines.map(this.renderFilterLine.bind(this)), h("div", { class: "ez-flex ez-flex--justify-end grow" }, h("ez-button", { className: "ez-button--tertiary", size: "medium", label: "Limpar", onClick: () => this.handleClearFilters(listItems) }))));
78
78
  }
79
79
  componentWillRender() {
80
80
  this._modalTitle = this.getCustomMessage('title');
@@ -1,4 +1,8 @@
1
1
 
2
2
  .grow{
3
3
  flex-grow: 1;
4
- }
4
+ }
5
+
6
+ .gap{
7
+ gap: 4px;
8
+ }
@@ -31,7 +31,8 @@ export class SnkFilterModalItem {
31
31
  return { tag: "snk-filter-text" };
32
32
  }
33
33
  updateFilterValue(newValue) {
34
- this.filterItem = Object.assign(Object.assign({}, this.filterItem), { value: newValue });
34
+ const isVisble = !this.filterItem.visible ? newValue !== undefined : true;
35
+ this.filterItem = Object.assign(Object.assign({}, this.filterItem), { value: newValue, visible: isVisble });
35
36
  }
36
37
  canShowDetailModal() {
37
38
  return this.filterItem.filterType !== FilterType.OTHER_FILTERS && this.filterItem.type !== FilterItemType.BINARY_SELECT;
@@ -45,7 +46,7 @@ export class SnkFilterModalItem {
45
46
  }
46
47
  render() {
47
48
  const { tag: ContentEditor, variations } = this.getContentEditorConfig();
48
- return (h(Host, null, h("div", { class: "ez-flex ez-flex--column grow" }, this.canShowDetailModal() && (h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.filterItem.detailModal))), h(ContentEditor, Object.assign({ config: this.filterItem, value: this.filterItem.value, onValueChanged: (event) => this.updateFilterValue(event.detail), "data-element-id": this._idContentEditor }, variations)))));
49
+ return (h(Host, null, h("div", { class: "ez-flex ez-flex--column grow" }, this.canShowDetailModal() && (h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-title ez-title--small ez-title--primary grow" }, this.filterItem.detailModal))), h(ContentEditor, Object.assign({ config: this.filterItem, value: this.filterItem.value, onValueChanged: (event) => this.updateFilterValue(event.detail), "data-element-id": this._idContentEditor }, variations)))));
49
50
  }
50
51
  static get is() { return "snk-filter-modal-item"; }
51
52
  static get originalStyleUrls() {
@@ -232,7 +232,7 @@ export class SnkFilterBar {
232
232
  }
233
233
  async showFilterModal() {
234
234
  const callbackOnApplyFilter = (filters) => {
235
- this.filterConfig = filters.map(this.normalizeItem);
235
+ this.filterConfig = filters.map(this.normalizeItem).sort((a, b) => this._filtersComparator(a, b));
236
236
  };
237
237
  const factoryParams = {
238
238
  filterConfig: this.filterConfig,
@@ -213,10 +213,12 @@ export class SnkGrid {
213
213
  if (!this._dataUnit) {
214
214
  this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
215
215
  this._dataUnit = evt.detail;
216
+ this._dataUnitLoadLockerResolver = this._dataUnit.addLoadingLocker();
216
217
  this.addElementID();
217
218
  });
218
219
  }
219
220
  else {
221
+ this._dataUnitLoadLockerResolver = this._dataUnit.addLoadingLocker();
220
222
  this.addElementID();
221
223
  }
222
224
  this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
@@ -266,13 +268,18 @@ export class SnkGrid {
266
268
  getPrimaryButton() {
267
269
  return this.presentationMode === PresentationMode.PRIMARY ? "INSERT" : "";
268
270
  }
271
+ onEzGridReady() {
272
+ var _a;
273
+ (_a = this._dataUnitLoadLockerResolver) === null || _a === void 0 ? void 0 : _a.call(this);
274
+ this._dataUnitLoadLockerResolver = undefined;
275
+ }
269
276
  render() {
270
277
  var _a, _b;
271
278
  if (!this._dataUnit) {
272
279
  return undefined;
273
280
  }
274
281
  return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder }), ((_b = (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.filterConfig) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
275
- h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton() })), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.actionsList })), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig() }))));
282
+ h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton() })), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, onComponentReady: () => this.onEzGridReady() }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.actionsList })), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig() }))));
276
283
  }
277
284
  static get is() { return "snk-grid"; }
278
285
  static get encapsulation() { return "scoped"; }
@@ -26,6 +26,13 @@ const snkFilterBarMessages = {
26
26
  "modalInfoTextCreateEditPersonalized": "Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",
27
27
  "modalOkButtonLabel": "Aplicar",
28
28
  "modalCancelButtonLabel": "Limpar",
29
+ "binarySelectTooltip": "Exibindo registros",
30
+ "multiListToltip": "selecionado(a)s",
31
+ "onlyStartPeriodToltip": "A partir de",
32
+ "onlyEndPeriodToltip": "Até",
33
+ "fullPeriodTooltip": "Data de {{LABEL}}: {{START_LABEL}} até {{END_LABEL}}",
34
+ "labelStartDatePeriod": "Inicial",
35
+ "labelEndDatePeriod": "Final",
29
36
  "filters": "Filtros",
30
37
  "filterModal": {
31
38
  "title": "Filtros",
@@ -57,6 +57,13 @@ const snkFilterBarMessages = {
57
57
  "modalInfoTextCreateEditPersonalized": "Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",
58
58
  "modalOkButtonLabel": "Aplicar",
59
59
  "modalCancelButtonLabel": "Limpar",
60
+ "binarySelectTooltip": "Exibindo registros",
61
+ "multiListToltip": "selecionado(a)s",
62
+ "onlyStartPeriodToltip": "A partir de",
63
+ "onlyEndPeriodToltip": "Até",
64
+ "fullPeriodTooltip": "Data de {{LABEL}}: {{START_LABEL}} até {{END_LABEL}}",
65
+ "labelStartDatePeriod": "Inicial",
66
+ "labelEndDatePeriod": "Final",
60
67
  "filters": "Filtros",
61
68
  "filterModal": {
62
69
  "title": "Filtros",
@@ -371,7 +371,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
371
371
  }
372
372
  async showFilterModal() {
373
373
  const callbackOnApplyFilter = (filters) => {
374
- this.filterConfig = filters.map(this.normalizeItem);
374
+ this.filterConfig = filters.map(this.normalizeItem).sort((a, b) => this._filtersComparator(a, b));
375
375
  };
376
376
  const factoryParams = {
377
377
  filterConfig: this.filterConfig,
@@ -8,6 +8,8 @@ const SnkFilterBinarySelect$1 = /*@__PURE__*/ proxyCustomElement(class extends H
8
8
  super();
9
9
  this.__registerHost();
10
10
  this.valueChanged = createEvent(this, "valueChanged", 7);
11
+ this._noOptionValue = 'NO_VALUE';
12
+ this._radioButtonValue = undefined;
11
13
  this.value = undefined;
12
14
  this.config = undefined;
13
15
  this.presentationMode = EPresentationMode.CHIP;
@@ -19,15 +21,15 @@ const SnkFilterBinarySelect$1 = /*@__PURE__*/ proxyCustomElement(class extends H
19
21
  * Emitido quando acontece a alteração de valor do componente snk-filter-binary-select
20
22
  */
21
23
  ezChangeListener(evt) {
22
- if (!evt.detail) {
23
- this.assertCheckedOption(evt.target);
24
- }
25
- this.updateValue();
26
- }
27
- componentDidLoad() {
28
- if (this._element) {
29
- ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
24
+ if (this.presentationMode === EPresentationMode.MODAL) {
25
+ if (!evt.detail) {
26
+ this.assertCheckedOption(evt.target);
27
+ }
28
+ this.updateValue();
29
+ return;
30
30
  }
31
+ this.value = evt.detail === this._noOptionValue ? undefined : evt.detail;
32
+ this._radioButtonValue = evt.detail;
31
33
  }
32
34
  assertCheckedOption(updatingCheck) {
33
35
  if (updatingCheck === this._checkOne) {
@@ -47,11 +49,13 @@ const SnkFilterBinarySelect$1 = /*@__PURE__*/ proxyCustomElement(class extends H
47
49
  }
48
50
  this.valueChanged.emit(this.value);
49
51
  }
50
- /**
51
- * Exibe o componente snk-filter-binary-select
52
- */
53
- async show() {
54
- this._checkOne.setFocus();
52
+ componentDidLoad() {
53
+ if (this._element) {
54
+ ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
55
+ }
56
+ }
57
+ componentWillLoad() {
58
+ this._radioButtonValue = this.value || this._noOptionValue;
55
59
  }
56
60
  render() {
57
61
  if (!this.config || this.config.type !== FilterItemType.BINARY_SELECT) {
@@ -59,16 +63,15 @@ const SnkFilterBinarySelect$1 = /*@__PURE__*/ proxyCustomElement(class extends H
59
63
  }
60
64
  const [optOne, optTwo] = this.config.props.options;
61
65
  if (this.presentationMode === EPresentationMode.MODAL) {
62
- return (h(Host, null, h("div", { class: "ez-flex ez-flex--row ez-flex--align-items-center" }, h("label", { class: "ez-text ez-text--medium ez-text--primary", style: { flex: '1 1 0', width: '0px' } }, this.config.detailModal), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) }))));
66
+ return (h(Host, null, h("div", { class: "ez-flex ez-flex--row ez-flex--align-items-center" }, h("label", { class: "ez-text ez-title--small ez-title--primary", style: { flex: '1 1 0', width: '0px' } }, this.config.detailModal), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) }))));
63
67
  }
64
- return (h(Host, null, h("ez-check", { id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
68
+ return (h(Host, null, h("ez-radio-button", { value: this._radioButtonValue }, h("ez-radio-button-option", { id: `${this.config.id}_${optOne.name || "option1"}`, class: "sc-snk-filter-bar editor__ez-check", label: optOne.label, value: optOne.name }), h("ez-radio-button-option", { id: `${this.config.id}_${optTwo.name || "option2"}`, class: "sc-snk-filter-bar editor__ez-check", label: optTwo.label, value: optTwo.name }), h("ez-radio-button-option", { id: `${this.config.id}_option3`, class: "sc-snk-filter-bar editor__ez-check", label: `${optOne.label} + ${optTwo.label}`, value: this._noOptionValue }))));
65
69
  }
66
70
  get _element() { return this; }
67
71
  }, [0, "snk-filter-binary-select", {
68
72
  "value": [1544],
69
73
  "config": [16],
70
- "presentationMode": [2, "presentation-mode"],
71
- "show": [64]
74
+ "presentationMode": [2, "presentation-mode"]
72
75
  }, [[0, "ezChange", "ezChangeListener"]]]);
73
76
  function defineCustomElement$1() {
74
77
  if (typeof customElements === "undefined") {
@@ -1,4 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
2
2
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
3
3
  import { F as FilterItemType } from './filter-item-type.enum.js';
4
4
  import { ElementIDUtils, DataType } from '@sankhyalabs/core';
@@ -15,7 +15,8 @@ const SnkFilterDetail = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
15
15
  * Exibe o componente snk-filter-detail.
16
16
  */
17
17
  async show() {
18
- this._editor["show"]();
18
+ var _a, _b;
19
+ (_b = (_a = this._editor)["show"]) === null || _b === void 0 ? void 0 : _b.call(_a);
19
20
  }
20
21
  componentDidLoad() {
21
22
  if (this._element) {
@@ -48,13 +49,7 @@ const SnkFilterDetail = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
48
49
  this.changeConfig(Object.assign(Object.assign({}, this.config), { visible: false, fixed: false, value: undefined }));
49
50
  }
50
51
  getPopUpHeaderButtons() {
51
- if (this.config.hardFixed) {
52
- return undefined;
53
- }
54
- return ([
55
- this.buildIcon(this.getMessage("snkFilterBar.removeFilter"), "delete", () => this.removeItem()),
56
- this.buildIcon(this.getMessage(this.config.fixed ? "snkFilterBar.unpinFilter" : "snkFilterBar.pinFilter"), this.config.fixed ? "un-pin" : "push-pin", () => this.changeConfig(Object.assign(Object.assign({}, this.config), { fixed: !this.config.fixed })))
57
- ]);
52
+ return (h(Fragment, null, !this.config.removalBlocked && this.buildIcon(this.getMessage("snkFilterBar.removeFilter"), "delete", () => this.removeItem()), !this.config.hardFixed && this.buildIcon(this.getMessage(this.config.fixed ? "snkFilterBar.unpinFilter" : "snkFilterBar.pinFilter"), this.config.fixed ? "un-pin" : "push-pin", () => this.changeConfig(Object.assign(Object.assign({}, this.config), { fixed: !this.config.fixed })))));
58
53
  }
59
54
  buildIcon(title, iconName, action) {
60
55
  return (h("button", { onClick: () => action(), class: "sc-snk-filter-bar snk-filter-item__editor-header-button", ref: elem => elem && this.buildIdButton(elem, title) }, h("ez-icon", Object.assign({ title: title, iconName: iconName }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo(`_${title}`)}` }))));
@@ -126,7 +121,7 @@ const SnkFilterDetail = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
126
121
  }
127
122
  render() {
128
123
  const ContentEditor = this.getContentEditor();
129
- return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, onKeyDown: evt => this.onKeyDonwListener(evt), "data-element-id": this._idContentEditor }), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), h("ez-button", { ref: ref => this._applyButton = ref, label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
124
+ return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, onKeyDown: evt => this.onKeyDonwListener(evt), "data-element-id": this._idContentEditor, getMessage: this.getMessage }), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), h("ez-button", { ref: ref => this._applyButton = ref, label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
130
125
  }
131
126
  get _element() { return this; }
132
127
  }, [0, "snk-filter-detail", {