@sankhyalabs/ezui 5.22.0-dev.73 → 5.22.0-dev.75
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/dist/cjs/{DataBinder-b4ef826a.js → DataBinder-e92314c2.js} +2 -2
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +8 -6
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +3 -2
- package/dist/cjs/ez-tree.cjs.entry.js +5 -4
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +3 -4
- package/dist/collection/components/ez-grid/ez-grid.js +41 -2
- package/dist/collection/components/ez-icon/ez-icon.css +70 -68
- package/dist/collection/components/ez-search/ez-search.js +22 -4
- package/dist/collection/components/ez-tree/ez-tree.js +21 -1
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
- package/dist/collection/utils/form/DataBinder.js +2 -2
- package/dist/custom-elements/index.js +20 -16
- package/dist/esm/{DataBinder-d2ecbb0f.js → DataBinder-9c877244.js} +2 -2
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +8 -6
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +3 -2
- package/dist/esm/ez-tree.entry.js +5 -4
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-708b196e.entry.js +1 -0
- package/dist/ezui/{p-cce6c015.entry.js → p-7d7ed9ac.entry.js} +1 -1
- package/dist/ezui/{p-ceadecd9.js → p-acddfb2e.js} +1 -1
- package/dist/ezui/{p-e0decc2b.entry.js → p-dbbf5572.entry.js} +2 -2
- package/dist/ezui/p-df07ae83.entry.js +1 -0
- package/dist/ezui/{p-397e3026.entry.js → p-f3e31f9f.entry.js} +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +10 -2
- package/dist/types/components/ez-search/ez-search.d.ts +5 -1
- package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
- package/dist/types/components.d.ts +32 -4
- package/package.json +1 -1
- package/dist/ezui/p-1b08bf3c.entry.js +0 -1
- package/dist/ezui/p-319d36b7.entry.js +0 -1
|
@@ -145,74 +145,76 @@ svg {
|
|
|
145
145
|
.ez-icon-handshake:before { content: "\ea58"; }
|
|
146
146
|
.ez-icon-help-inverted:before { content: "\ea59"; }
|
|
147
147
|
.ez-icon-help:before { content: "\ea5a"; }
|
|
148
|
-
.ez-icon-
|
|
149
|
-
.ez-icon-
|
|
150
|
-
.ez-icon-
|
|
151
|
-
.ez-icon-
|
|
152
|
-
.ez-icon-
|
|
153
|
-
.ez-icon-
|
|
154
|
-
.ez-icon-
|
|
155
|
-
.ez-icon-
|
|
156
|
-
.ez-icon-
|
|
157
|
-
.ez-icon-lock:before { content: "\ea64"; }
|
|
158
|
-
.ez-icon-
|
|
159
|
-
.ez-icon-
|
|
160
|
-
.ez-icon-
|
|
161
|
-
.ez-icon-
|
|
162
|
-
.ez-icon-money:before { content: "\ea69"; }
|
|
163
|
-
.ez-icon-
|
|
164
|
-
.ez-icon-
|
|
165
|
-
.ez-icon-
|
|
166
|
-
.ez-icon-
|
|
167
|
-
.ez-icon-
|
|
168
|
-
.ez-icon-
|
|
169
|
-
.ez-icon-
|
|
170
|
-
.ez-icon-ordem-
|
|
171
|
-
.ez-icon-
|
|
172
|
-
.ez-icon-
|
|
173
|
-
.ez-icon-
|
|
174
|
-
.ez-icon-
|
|
175
|
-
.ez-icon-
|
|
176
|
-
.ez-icon-
|
|
177
|
-
.ez-icon-
|
|
178
|
-
.ez-icon-
|
|
179
|
-
.ez-icon-
|
|
180
|
-
.ez-icon-
|
|
181
|
-
.ez-icon-
|
|
182
|
-
.ez-icon-
|
|
183
|
-
.ez-icon-
|
|
184
|
-
.ez-icon-
|
|
185
|
-
.ez-icon-
|
|
186
|
-
.ez-icon-
|
|
187
|
-
.ez-icon-
|
|
188
|
-
.ez-icon-
|
|
189
|
-
.ez-icon-
|
|
190
|
-
.ez-icon-
|
|
191
|
-
.ez-icon-
|
|
192
|
-
.ez-icon-
|
|
193
|
-
.ez-icon-settings:before { content: "\ea88"; }
|
|
194
|
-
.ez-icon-
|
|
195
|
-
.ez-icon-
|
|
196
|
-
.ez-icon-
|
|
197
|
-
.ez-icon-
|
|
198
|
-
.ez-icon-
|
|
199
|
-
.ez-icon-
|
|
200
|
-
.ez-icon-
|
|
201
|
-
.ez-icon-
|
|
202
|
-
.ez-icon-
|
|
203
|
-
.ez-icon-
|
|
204
|
-
.ez-icon-
|
|
205
|
-
.ez-icon-
|
|
206
|
-
.ez-icon-
|
|
207
|
-
.ez-icon-
|
|
208
|
-
.ez-icon-
|
|
209
|
-
.ez-icon-
|
|
210
|
-
.ez-icon-
|
|
211
|
-
.ez-icon-
|
|
212
|
-
.ez-icon-
|
|
213
|
-
.ez-icon-
|
|
214
|
-
.ez-icon-
|
|
215
|
-
.ez-icon-
|
|
148
|
+
.ez-icon-hide-list:before { content: "\ea5b"; }
|
|
149
|
+
.ez-icon-hide_menu:before { content: "\ea5c"; }
|
|
150
|
+
.ez-icon-home:before { content: "\ea5d"; }
|
|
151
|
+
.ez-icon-icons104:before { content: "\ea5e"; }
|
|
152
|
+
.ez-icon-language:before { content: "\ea5f"; }
|
|
153
|
+
.ez-icon-launch:before { content: "\ea60"; }
|
|
154
|
+
.ez-icon-lightbulb:before { content: "\ea61"; }
|
|
155
|
+
.ez-icon-list:before { content: "\ea62"; }
|
|
156
|
+
.ez-icon-location:before { content: "\ea63"; }
|
|
157
|
+
.ez-icon-lock-outline:before { content: "\ea64"; }
|
|
158
|
+
.ez-icon-lock:before { content: "\ea65"; }
|
|
159
|
+
.ez-icon-menu:before { content: "\ea66"; }
|
|
160
|
+
.ez-icon-mid:before { content: "\ea67"; }
|
|
161
|
+
.ez-icon-minus:before { content: "\ea68"; }
|
|
162
|
+
.ez-icon-money-off:before { content: "\ea69"; }
|
|
163
|
+
.ez-icon-money:before { content: "\ea6a"; }
|
|
164
|
+
.ez-icon-more:before { content: "\ea6b"; }
|
|
165
|
+
.ez-icon-mp3:before { content: "\ea6c"; }
|
|
166
|
+
.ez-icon-mp4:before { content: "\ea6d"; }
|
|
167
|
+
.ez-icon-multiple-files:before { content: "\ea6e"; }
|
|
168
|
+
.ez-icon-north-west:before { content: "\ea6f"; }
|
|
169
|
+
.ez-icon-number:before { content: "\ea70"; }
|
|
170
|
+
.ez-icon-ordem-ascendente:before { content: "\ea71"; }
|
|
171
|
+
.ez-icon-ordem-descendente:before { content: "\ea72"; }
|
|
172
|
+
.ez-icon-parcelar:before { content: "\ea73"; }
|
|
173
|
+
.ez-icon-pause:before { content: "\ea74"; }
|
|
174
|
+
.ez-icon-payments:before { content: "\ea75"; }
|
|
175
|
+
.ez-icon-pdf:before { content: "\ea76"; }
|
|
176
|
+
.ez-icon-play:before { content: "\ea77"; }
|
|
177
|
+
.ez-icon-plus:before { content: "\ea78"; }
|
|
178
|
+
.ez-icon-png:before { content: "\ea79"; }
|
|
179
|
+
.ez-icon-power:before { content: "\ea7a"; }
|
|
180
|
+
.ez-icon-pptx:before { content: "\ea7b"; }
|
|
181
|
+
.ez-icon-preview:before { content: "\ea7c"; }
|
|
182
|
+
.ez-icon-print:before { content: "\ea7d"; }
|
|
183
|
+
.ez-icon-push-pin:before { content: "\ea7e"; }
|
|
184
|
+
.ez-icon-rateio:before { content: "\ea7f"; }
|
|
185
|
+
.ez-icon-receipt:before { content: "\ea80"; }
|
|
186
|
+
.ez-icon-recolher_card:before { content: "\ea81"; }
|
|
187
|
+
.ez-icon-remove-from-cart:before { content: "\ea82"; }
|
|
188
|
+
.ez-icon-restore:before { content: "\ea83"; }
|
|
189
|
+
.ez-icon-return:before { content: "\ea84"; }
|
|
190
|
+
.ez-icon-sankhya-place:before { content: "\ea85"; }
|
|
191
|
+
.ez-icon-save:before { content: "\ea86"; }
|
|
192
|
+
.ez-icon-search:before { content: "\ea87"; }
|
|
193
|
+
.ez-icon-settings-inverted:before { content: "\ea88"; }
|
|
194
|
+
.ez-icon-settings:before { content: "\ea89"; }
|
|
195
|
+
.ez-icon-share:before { content: "\ea8a"; }
|
|
196
|
+
.ez-icon-shield:before { content: "\ea8b"; }
|
|
197
|
+
.ez-icon-show-list:before { content: "\ea8c"; }
|
|
198
|
+
.ez-icon-show_menu:before { content: "\ea8d"; }
|
|
199
|
+
.ez-icon-south-east:before { content: "\ea8e"; }
|
|
200
|
+
.ez-icon-sync:before { content: "\ea8f"; }
|
|
201
|
+
.ez-icon-table:before { content: "\ea90"; }
|
|
202
|
+
.ez-icon-tag_code:before { content: "\ea91"; }
|
|
203
|
+
.ez-icon-text:before { content: "\ea92"; }
|
|
204
|
+
.ez-icon-timeline:before { content: "\ea93"; }
|
|
205
|
+
.ez-icon-timer-outline:before { content: "\ea94"; }
|
|
206
|
+
.ez-icon-trending-up:before { content: "\ea95"; }
|
|
207
|
+
.ez-icon-tune:before { content: "\ea96"; }
|
|
208
|
+
.ez-icon-txt:before { content: "\ea97"; }
|
|
209
|
+
.ez-icon-un-pin:before { content: "\ea98"; }
|
|
210
|
+
.ez-icon-unfold_less:before { content: "\ea99"; }
|
|
211
|
+
.ez-icon-unfold_more:before { content: "\ea9a"; }
|
|
212
|
+
.ez-icon-user-circle:before { content: "\ea9b"; }
|
|
213
|
+
.ez-icon-warning-outline:before { content: "\ea9c"; }
|
|
214
|
+
.ez-icon-warning_triangle:before { content: "\ea9d"; }
|
|
215
|
+
.ez-icon-whatshot:before { content: "\ea9e"; }
|
|
216
|
+
.ez-icon-xlsx:before { content: "\ea9f"; }
|
|
217
|
+
.ez-icon-zip:before { content: "\eaa0"; }
|
|
216
218
|
/*
|
|
217
219
|
END CSS GENERATED BY EZ-DESIGN ICONS
|
|
218
220
|
*/
|
|
@@ -25,6 +25,7 @@ export class EzSearch {
|
|
|
25
25
|
this.enabled = true;
|
|
26
26
|
this.errorMessage = undefined;
|
|
27
27
|
this.optionLoader = undefined;
|
|
28
|
+
this.contextProperties = undefined;
|
|
28
29
|
this.showSelectedValue = true;
|
|
29
30
|
this.showOptionValue = true;
|
|
30
31
|
this.suppressEmptyOption = false;
|
|
@@ -416,7 +417,7 @@ export class EzSearch {
|
|
|
416
417
|
this._startLoading = true;
|
|
417
418
|
if (this.optionLoader) {
|
|
418
419
|
const searchArgument = { mode, argument };
|
|
419
|
-
this.updateSource(this.optionLoader(searchArgument));
|
|
420
|
+
this.updateSource(this.optionLoader(searchArgument, this.contextProperties));
|
|
420
421
|
}
|
|
421
422
|
else {
|
|
422
423
|
this.updateSource(this.options);
|
|
@@ -483,7 +484,7 @@ export class EzSearch {
|
|
|
483
484
|
mode: SearchMode.PREDICTIVE,
|
|
484
485
|
argument
|
|
485
486
|
};
|
|
486
|
-
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
487
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument, this.contextProperties));
|
|
487
488
|
if (source == undefined) {
|
|
488
489
|
return;
|
|
489
490
|
}
|
|
@@ -820,8 +821,8 @@ export class EzSearch {
|
|
|
820
821
|
"type": "unknown",
|
|
821
822
|
"mutable": false,
|
|
822
823
|
"complexType": {
|
|
823
|
-
"original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
|
|
824
|
-
"resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
|
|
824
|
+
"original": "(argument: ISearchArgument, ctxProperties?: any) => Promise<Array<IOption>> | Array<IOption> | IOption",
|
|
825
|
+
"resolved": "(argument: ISearchArgument, ctxProperties?: any) => IOption | IOption[] | Promise<IOption[]>",
|
|
825
826
|
"references": {
|
|
826
827
|
"ISearchArgument": {
|
|
827
828
|
"location": "local"
|
|
@@ -844,6 +845,23 @@ export class EzSearch {
|
|
|
844
845
|
"text": "Carrega as op\u00E7\u00F5es dinamicamente."
|
|
845
846
|
}
|
|
846
847
|
},
|
|
848
|
+
"contextProperties": {
|
|
849
|
+
"type": "any",
|
|
850
|
+
"mutable": false,
|
|
851
|
+
"complexType": {
|
|
852
|
+
"original": "any",
|
|
853
|
+
"resolved": "any",
|
|
854
|
+
"references": {}
|
|
855
|
+
},
|
|
856
|
+
"required": false,
|
|
857
|
+
"optional": true,
|
|
858
|
+
"docs": {
|
|
859
|
+
"tags": [],
|
|
860
|
+
"text": "Propriedades de contexto da aplica\u00E7\u00E3o."
|
|
861
|
+
},
|
|
862
|
+
"attribute": "context-properties",
|
|
863
|
+
"reflect": false
|
|
864
|
+
},
|
|
847
865
|
"showSelectedValue": {
|
|
848
866
|
"type": "boolean",
|
|
849
867
|
"mutable": false,
|
|
@@ -274,7 +274,7 @@ export class EzTree {
|
|
|
274
274
|
:
|
|
275
275
|
this._tree.getChildren().map(node => {
|
|
276
276
|
var _a;
|
|
277
|
-
return h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems });
|
|
277
|
+
return h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems, itemDoubleClick: (item) => this.ezDbClickItem.emit(item) });
|
|
278
278
|
})));
|
|
279
279
|
}
|
|
280
280
|
static get is() { return "ez-tree"; }
|
|
@@ -442,6 +442,26 @@ export class EzTree {
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
+
}, {
|
|
446
|
+
"method": "ezDbClickItem",
|
|
447
|
+
"name": "ezDbClickItem",
|
|
448
|
+
"bubbles": true,
|
|
449
|
+
"cancelable": true,
|
|
450
|
+
"composed": true,
|
|
451
|
+
"docs": {
|
|
452
|
+
"tags": [],
|
|
453
|
+
"text": "Emitido ao dar clique duplo em um item da \u00E1rvore."
|
|
454
|
+
},
|
|
455
|
+
"complexType": {
|
|
456
|
+
"original": "ITreeItem",
|
|
457
|
+
"resolved": "ITreeItem",
|
|
458
|
+
"references": {
|
|
459
|
+
"ITreeItem": {
|
|
460
|
+
"location": "import",
|
|
461
|
+
"path": "./interfaces/ITreeItem"
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
445
465
|
}];
|
|
446
466
|
}
|
|
447
467
|
static get methods() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
2
2
|
import { h } from "@stencil/core";
|
|
3
3
|
export const TreeItem = (props) => {
|
|
4
|
-
const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList } = props;
|
|
4
|
+
const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList, itemDoubleClick } = props;
|
|
5
5
|
if (!node.visible) {
|
|
6
6
|
return;
|
|
7
7
|
}
|
|
@@ -14,13 +14,13 @@ export const TreeItem = (props) => {
|
|
|
14
14
|
if (available) {
|
|
15
15
|
itemsList.push(treeItem);
|
|
16
16
|
}
|
|
17
|
-
return (h("ul", { class: level === 1 ? "first-level" : undefined }, h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem) }, {
|
|
17
|
+
return (h("ul", { class: level === 1 ? "first-level" : undefined }, h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem), onDblClick: () => available && itemDoubleClick(treeItem) }, {
|
|
18
18
|
disabled,
|
|
19
19
|
selected: treeItem.id === selectedId,
|
|
20
20
|
[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezTreeItem_${treeItem.id}`)
|
|
21
21
|
}), h("div", { class: "item-label-container" }, h("div", { class: "item-icon-box" }, expandable &&
|
|
22
22
|
h("ez-icon", { id: treeItem.id, class: "item-icon", size: "small", iconName: iconResolver(treeItem, expanded, level), onClick: () => available && iconClick(treeItem) })), h("label", { class: `item-label ${treeItem.bold ? "item-label--bold" : ""}` }, treeItem.label)), getBadgeElement(treeItem.id, treeItem.badge, treeItem.id === selectedId)), expanded
|
|
23
|
-
&& node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList }))));
|
|
23
|
+
&& node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList, itemDoubleClick: itemDoubleClick }))));
|
|
24
24
|
};
|
|
25
25
|
function getBadgeElement(itemId, badge, isSelectedItem) {
|
|
26
26
|
if (badge == undefined) {
|
|
@@ -231,8 +231,8 @@ export default class DataBinder {
|
|
|
231
231
|
if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] == undefined) {
|
|
232
232
|
const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
|
|
233
233
|
if (loader) {
|
|
234
|
-
field["optionLoader"] = (arg) => {
|
|
235
|
-
return loader(arg, fieldName, this._dataUnit);
|
|
234
|
+
field["optionLoader"] = (arg, ctxOptions) => {
|
|
235
|
+
return loader(arg, fieldName, this._dataUnit, ctxOptions);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
}
|
|
@@ -819,8 +819,8 @@ class DataBinder {
|
|
|
819
819
|
if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] == undefined) {
|
|
820
820
|
const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
|
|
821
821
|
if (loader) {
|
|
822
|
-
field["optionLoader"] = (arg) => {
|
|
823
|
-
return loader(arg, fieldName, this._dataUnit);
|
|
822
|
+
field["optionLoader"] = (arg, ctxOptions) => {
|
|
823
|
+
return loader(arg, fieldName, this._dataUnit, ctxOptions);
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
826
|
}
|
|
@@ -71274,7 +71274,7 @@ class AgGridController {
|
|
|
71274
71274
|
return status;
|
|
71275
71275
|
}
|
|
71276
71276
|
updateSelectionForAll(selectAll) {
|
|
71277
|
-
|
|
71277
|
+
selectAll ? this._dataUnit.selectAllRecords() : this._dataUnit.unSelectAllRecords();
|
|
71278
71278
|
}
|
|
71279
71279
|
setData(data) {
|
|
71280
71280
|
if (this._grid === undefined) {
|
|
@@ -71535,9 +71535,8 @@ class AgGridController {
|
|
|
71535
71535
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
71536
71536
|
}
|
|
71537
71537
|
setColumnsDef(cols) {
|
|
71538
|
-
const
|
|
71539
|
-
|
|
71540
|
-
];
|
|
71538
|
+
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: '', checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }));
|
|
71539
|
+
const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
|
|
71541
71540
|
if (this._statusResolver != undefined) {
|
|
71542
71541
|
newColDefs.push({
|
|
71543
71542
|
colId: this.STATUS_COL_ID,
|
|
@@ -72237,8 +72236,10 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
72237
72236
|
this.paginationCounterMode = 'show';
|
|
72238
72237
|
this.enableGridInsert = false;
|
|
72239
72238
|
this.enableContinuousInsert = true;
|
|
72239
|
+
this.suppressCheckboxColumn = false;
|
|
72240
72240
|
this.outlineMode = false;
|
|
72241
72241
|
this.enableRowTableStriped = true;
|
|
72242
|
+
this.compact = false;
|
|
72242
72243
|
}
|
|
72243
72244
|
/**
|
|
72244
72245
|
* Aplica a definição de colunas.
|
|
@@ -72597,6 +72598,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
72597
72598
|
autoFocus: this.autoFocus,
|
|
72598
72599
|
enableGridInsert: this.enableGridInsert,
|
|
72599
72600
|
enableContinuousInsert: this.enableContinuousInsert,
|
|
72601
|
+
suppressCheckBoxCol: this.suppressCheckboxColumn,
|
|
72600
72602
|
onRefresh: () => {
|
|
72601
72603
|
if (this.dataUnit) {
|
|
72602
72604
|
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
@@ -72719,7 +72721,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
72719
72721
|
}
|
|
72720
72722
|
render() {
|
|
72721
72723
|
var _a;
|
|
72722
|
-
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ${this.outlineMode ? 'outline-mode' : 'shadow-mode'}
|
|
72724
|
+
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ez-grid ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ${this.compact ? 'no-padding' : ""}`, ref: elem => (this._container = elem) }), h("div", { class: `ez-box ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-padding--small grid-header` }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
72723
72725
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
72724
72726
|
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
72725
72727
|
}
|
|
@@ -72828,7 +72830,7 @@ const EzGuideNavigator$1 = class extends HTMLElement$1 {
|
|
|
72828
72830
|
static get style() { return ezGuideNavigatorCss; }
|
|
72829
72831
|
};
|
|
72830
72832
|
|
|
72831
|
-
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-add-to-cart:before{content:\"\\ea06\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea07\"}.ez-icon-alert-circle:before{content:\"\\ea08\"}.ez-icon-alert-mail:before{content:\"\\ea09\"}.ez-icon-alert-popup:before{content:\"\\ea0a\"}.ez-icon-anexo:before{content:\"\\ea0b\"}.ez-icon-antecipação:before{content:\"\\ea0c\"}.ez-icon-apps:before{content:\"\\ea0d\"}.ez-icon-arrow-forward:before{content:\"\\ea0e\"}.ez-icon-arrow-upward:before{content:\"\\ea0f\"}.ez-icon-arrow_back:before{content:\"\\ea10\"}.ez-icon-arrow_downward:before{content:\"\\ea11\"}.ez-icon-baixa:before{content:\"\\ea12\"}.ez-icon-balance:before{content:\"\\ea13\"}.ez-icon-bell-inverted:before{content:\"\\ea14\"}.ez-icon-bell:before{content:\"\\ea15\"}.ez-icon-boleto:before{content:\"\\ea16\"}.ez-icon-boolean:before{content:\"\\ea17\"}.ez-icon-business-center:before{content:\"\\ea18\"}.ez-icon-calendar-clock:before{content:\"\\ea19\"}.ez-icon-calendar:before{content:\"\\ea1a\"}.ez-icon-cart-history:before{content:\"\\ea1b\"}.ez-icon-cash-remove:before{content:\"\\ea1c\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1d\"}.ez-icon-check-circle:before{content:\"\\ea1e\"}.ez-icon-check:before{content:\"\\ea1f\"}.ez-icon-chevron-down:before{content:\"\\ea20\"}.ez-icon-chevron-left:before{content:\"\\ea21\"}.ez-icon-chevron-right:before{content:\"\\ea22\"}.ez-icon-chevron-up:before{content:\"\\ea23\"}.ez-icon-circle--medium:before{content:\"\\ea24\"}.ez-icon-circle:before{content:\"\\ea25\"}.ez-icon-clean-cart:before{content:\"\\ea26\"}.ez-icon-cleaning:before{content:\"\\ea27\"}.ez-icon-clipboard:before{content:\"\\ea28\"}.ez-icon-clock-rotate-left:before{content:\"\\ea29\"}.ez-icon-close:before{content:\"\\ea2a\"}.ez-icon-cobrar:before{content:\"\\ea2b\"}.ez-icon-code:before{content:\"\\ea2c\"}.ez-icon-configuration:before{content:\"\\ea2d\"}.ez-icon-content-cut:before{content:\"\\ea2e\"}.ez-icon-copy:before{content:\"\\ea2f\"}.ez-icon-credit_card:before{content:\"\\ea30\"}.ez-icon-crop:before{content:\"\\ea31\"}.ez-icon-custom:before{content:\"\\ea32\"}.ez-icon-delete-file:before{content:\"\\ea33\"}.ez-icon-delete:before{content:\"\\ea34\"}.ez-icon-description:before{content:\"\\ea35\"}.ez-icon-dividir:before{content:\"\\ea36\"}.ez-icon-docx:before{content:\"\\ea37\"}.ez-icon-dot-notification:before{content:\"\\ea38\"}.ez-icon-dots-horizontal:before{content:\"\\ea39\"}.ez-icon-dots-vertical:before{content:\"\\ea3a\"}.ez-icon-drag-indicator:before{content:\"\\ea3b\"}.ez-icon-dual-chevron-down:before{content:\"\\ea3c\"}.ez-icon-dual-chevron-left:before{content:\"\\ea3d\"}.ez-icon-dual-chevron-right:before{content:\"\\ea3e\"}.ez-icon-dual-chevron-up:before{content:\"\\ea3f\"}.ez-icon-edit-file:before{content:\"\\ea40\"}.ez-icon-edit-table:before{content:\"\\ea41\"}.ez-icon-edit-time:before{content:\"\\ea42\"}.ez-icon-edit-value:before{content:\"\\ea43\"}.ez-icon-edit:before{content:\"\\ea44\"}.ez-icon-email:before{content:\"\\ea45\"}.ez-icon-estorno:before{content:\"\\ea46\"}.ez-icon-exe:before{content:\"\\ea47\"}.ez-icon-expand:before{content:\"\\ea48\"}.ez-icon-expandir_card:before{content:\"\\ea49\"}.ez-icon-extrato:before{content:\"\\ea4a\"}.ez-icon-eye-off:before{content:\"\\ea4b\"}.ez-icon-eye:before{content:\"\\ea4c\"}.ez-icon-favorite:before{content:\"\\ea4d\"}.ez-icon-figma:before{content:\"\\ea4e\"}.ez-icon-file-download:before{content:\"\\ea4f\"}.ez-icon-file-upload:before{content:\"\\ea50\"}.ez-icon-filter:before{content:\"\\ea51\"}.ez-icon-find-file:before{content:\"\\ea52\"}.ez-icon-find-page:before{content:\"\\ea53\"}.ez-icon-format-color-fill:before{content:\"\\ea54\"}.ez-icon-generic:before{content:\"\\ea55\"}.ez-icon-gif:before{content:\"\\ea56\"}.ez-icon-graph_bar:before{content:\"\\ea57\"}.ez-icon-handshake:before{content:\"\\ea58\"}.ez-icon-help-inverted:before{content:\"\\ea59\"}.ez-icon-help:before{content:\"\\ea5a\"}.ez-icon-
|
|
72833
|
+
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-add-to-cart:before{content:\"\\ea06\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea07\"}.ez-icon-alert-circle:before{content:\"\\ea08\"}.ez-icon-alert-mail:before{content:\"\\ea09\"}.ez-icon-alert-popup:before{content:\"\\ea0a\"}.ez-icon-anexo:before{content:\"\\ea0b\"}.ez-icon-antecipação:before{content:\"\\ea0c\"}.ez-icon-apps:before{content:\"\\ea0d\"}.ez-icon-arrow-forward:before{content:\"\\ea0e\"}.ez-icon-arrow-upward:before{content:\"\\ea0f\"}.ez-icon-arrow_back:before{content:\"\\ea10\"}.ez-icon-arrow_downward:before{content:\"\\ea11\"}.ez-icon-baixa:before{content:\"\\ea12\"}.ez-icon-balance:before{content:\"\\ea13\"}.ez-icon-bell-inverted:before{content:\"\\ea14\"}.ez-icon-bell:before{content:\"\\ea15\"}.ez-icon-boleto:before{content:\"\\ea16\"}.ez-icon-boolean:before{content:\"\\ea17\"}.ez-icon-business-center:before{content:\"\\ea18\"}.ez-icon-calendar-clock:before{content:\"\\ea19\"}.ez-icon-calendar:before{content:\"\\ea1a\"}.ez-icon-cart-history:before{content:\"\\ea1b\"}.ez-icon-cash-remove:before{content:\"\\ea1c\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1d\"}.ez-icon-check-circle:before{content:\"\\ea1e\"}.ez-icon-check:before{content:\"\\ea1f\"}.ez-icon-chevron-down:before{content:\"\\ea20\"}.ez-icon-chevron-left:before{content:\"\\ea21\"}.ez-icon-chevron-right:before{content:\"\\ea22\"}.ez-icon-chevron-up:before{content:\"\\ea23\"}.ez-icon-circle--medium:before{content:\"\\ea24\"}.ez-icon-circle:before{content:\"\\ea25\"}.ez-icon-clean-cart:before{content:\"\\ea26\"}.ez-icon-cleaning:before{content:\"\\ea27\"}.ez-icon-clipboard:before{content:\"\\ea28\"}.ez-icon-clock-rotate-left:before{content:\"\\ea29\"}.ez-icon-close:before{content:\"\\ea2a\"}.ez-icon-cobrar:before{content:\"\\ea2b\"}.ez-icon-code:before{content:\"\\ea2c\"}.ez-icon-configuration:before{content:\"\\ea2d\"}.ez-icon-content-cut:before{content:\"\\ea2e\"}.ez-icon-copy:before{content:\"\\ea2f\"}.ez-icon-credit_card:before{content:\"\\ea30\"}.ez-icon-crop:before{content:\"\\ea31\"}.ez-icon-custom:before{content:\"\\ea32\"}.ez-icon-delete-file:before{content:\"\\ea33\"}.ez-icon-delete:before{content:\"\\ea34\"}.ez-icon-description:before{content:\"\\ea35\"}.ez-icon-dividir:before{content:\"\\ea36\"}.ez-icon-docx:before{content:\"\\ea37\"}.ez-icon-dot-notification:before{content:\"\\ea38\"}.ez-icon-dots-horizontal:before{content:\"\\ea39\"}.ez-icon-dots-vertical:before{content:\"\\ea3a\"}.ez-icon-drag-indicator:before{content:\"\\ea3b\"}.ez-icon-dual-chevron-down:before{content:\"\\ea3c\"}.ez-icon-dual-chevron-left:before{content:\"\\ea3d\"}.ez-icon-dual-chevron-right:before{content:\"\\ea3e\"}.ez-icon-dual-chevron-up:before{content:\"\\ea3f\"}.ez-icon-edit-file:before{content:\"\\ea40\"}.ez-icon-edit-table:before{content:\"\\ea41\"}.ez-icon-edit-time:before{content:\"\\ea42\"}.ez-icon-edit-value:before{content:\"\\ea43\"}.ez-icon-edit:before{content:\"\\ea44\"}.ez-icon-email:before{content:\"\\ea45\"}.ez-icon-estorno:before{content:\"\\ea46\"}.ez-icon-exe:before{content:\"\\ea47\"}.ez-icon-expand:before{content:\"\\ea48\"}.ez-icon-expandir_card:before{content:\"\\ea49\"}.ez-icon-extrato:before{content:\"\\ea4a\"}.ez-icon-eye-off:before{content:\"\\ea4b\"}.ez-icon-eye:before{content:\"\\ea4c\"}.ez-icon-favorite:before{content:\"\\ea4d\"}.ez-icon-figma:before{content:\"\\ea4e\"}.ez-icon-file-download:before{content:\"\\ea4f\"}.ez-icon-file-upload:before{content:\"\\ea50\"}.ez-icon-filter:before{content:\"\\ea51\"}.ez-icon-find-file:before{content:\"\\ea52\"}.ez-icon-find-page:before{content:\"\\ea53\"}.ez-icon-format-color-fill:before{content:\"\\ea54\"}.ez-icon-generic:before{content:\"\\ea55\"}.ez-icon-gif:before{content:\"\\ea56\"}.ez-icon-graph_bar:before{content:\"\\ea57\"}.ez-icon-handshake:before{content:\"\\ea58\"}.ez-icon-help-inverted:before{content:\"\\ea59\"}.ez-icon-help:before{content:\"\\ea5a\"}.ez-icon-hide-list:before{content:\"\\ea5b\"}.ez-icon-hide_menu:before{content:\"\\ea5c\"}.ez-icon-home:before{content:\"\\ea5d\"}.ez-icon-icons104:before{content:\"\\ea5e\"}.ez-icon-language:before{content:\"\\ea5f\"}.ez-icon-launch:before{content:\"\\ea60\"}.ez-icon-lightbulb:before{content:\"\\ea61\"}.ez-icon-list:before{content:\"\\ea62\"}.ez-icon-location:before{content:\"\\ea63\"}.ez-icon-lock-outline:before{content:\"\\ea64\"}.ez-icon-lock:before{content:\"\\ea65\"}.ez-icon-menu:before{content:\"\\ea66\"}.ez-icon-mid:before{content:\"\\ea67\"}.ez-icon-minus:before{content:\"\\ea68\"}.ez-icon-money-off:before{content:\"\\ea69\"}.ez-icon-money:before{content:\"\\ea6a\"}.ez-icon-more:before{content:\"\\ea6b\"}.ez-icon-mp3:before{content:\"\\ea6c\"}.ez-icon-mp4:before{content:\"\\ea6d\"}.ez-icon-multiple-files:before{content:\"\\ea6e\"}.ez-icon-north-west:before{content:\"\\ea6f\"}.ez-icon-number:before{content:\"\\ea70\"}.ez-icon-ordem-ascendente:before{content:\"\\ea71\"}.ez-icon-ordem-descendente:before{content:\"\\ea72\"}.ez-icon-parcelar:before{content:\"\\ea73\"}.ez-icon-pause:before{content:\"\\ea74\"}.ez-icon-payments:before{content:\"\\ea75\"}.ez-icon-pdf:before{content:\"\\ea76\"}.ez-icon-play:before{content:\"\\ea77\"}.ez-icon-plus:before{content:\"\\ea78\"}.ez-icon-png:before{content:\"\\ea79\"}.ez-icon-power:before{content:\"\\ea7a\"}.ez-icon-pptx:before{content:\"\\ea7b\"}.ez-icon-preview:before{content:\"\\ea7c\"}.ez-icon-print:before{content:\"\\ea7d\"}.ez-icon-push-pin:before{content:\"\\ea7e\"}.ez-icon-rateio:before{content:\"\\ea7f\"}.ez-icon-receipt:before{content:\"\\ea80\"}.ez-icon-recolher_card:before{content:\"\\ea81\"}.ez-icon-remove-from-cart:before{content:\"\\ea82\"}.ez-icon-restore:before{content:\"\\ea83\"}.ez-icon-return:before{content:\"\\ea84\"}.ez-icon-sankhya-place:before{content:\"\\ea85\"}.ez-icon-save:before{content:\"\\ea86\"}.ez-icon-search:before{content:\"\\ea87\"}.ez-icon-settings-inverted:before{content:\"\\ea88\"}.ez-icon-settings:before{content:\"\\ea89\"}.ez-icon-share:before{content:\"\\ea8a\"}.ez-icon-shield:before{content:\"\\ea8b\"}.ez-icon-show-list:before{content:\"\\ea8c\"}.ez-icon-show_menu:before{content:\"\\ea8d\"}.ez-icon-south-east:before{content:\"\\ea8e\"}.ez-icon-sync:before{content:\"\\ea8f\"}.ez-icon-table:before{content:\"\\ea90\"}.ez-icon-tag_code:before{content:\"\\ea91\"}.ez-icon-text:before{content:\"\\ea92\"}.ez-icon-timeline:before{content:\"\\ea93\"}.ez-icon-timer-outline:before{content:\"\\ea94\"}.ez-icon-trending-up:before{content:\"\\ea95\"}.ez-icon-tune:before{content:\"\\ea96\"}.ez-icon-txt:before{content:\"\\ea97\"}.ez-icon-un-pin:before{content:\"\\ea98\"}.ez-icon-unfold_less:before{content:\"\\ea99\"}.ez-icon-unfold_more:before{content:\"\\ea9a\"}.ez-icon-user-circle:before{content:\"\\ea9b\"}.ez-icon-warning-outline:before{content:\"\\ea9c\"}.ez-icon-warning_triangle:before{content:\"\\ea9d\"}.ez-icon-whatshot:before{content:\"\\ea9e\"}.ez-icon-xlsx:before{content:\"\\ea9f\"}.ez-icon-zip:before{content:\"\\eaa0\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
|
|
72832
72834
|
|
|
72833
72835
|
const EzIcon$1 = class extends HTMLElement$1 {
|
|
72834
72836
|
constructor() {
|
|
@@ -74535,6 +74537,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
74535
74537
|
this.enabled = true;
|
|
74536
74538
|
this.errorMessage = undefined;
|
|
74537
74539
|
this.optionLoader = undefined;
|
|
74540
|
+
this.contextProperties = undefined;
|
|
74538
74541
|
this.showSelectedValue = true;
|
|
74539
74542
|
this.showOptionValue = true;
|
|
74540
74543
|
this.suppressEmptyOption = false;
|
|
@@ -74926,7 +74929,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
74926
74929
|
this._startLoading = true;
|
|
74927
74930
|
if (this.optionLoader) {
|
|
74928
74931
|
const searchArgument = { mode, argument };
|
|
74929
|
-
this.updateSource(this.optionLoader(searchArgument));
|
|
74932
|
+
this.updateSource(this.optionLoader(searchArgument, this.contextProperties));
|
|
74930
74933
|
}
|
|
74931
74934
|
else {
|
|
74932
74935
|
this.updateSource(this.options);
|
|
@@ -74993,7 +74996,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
74993
74996
|
mode: SearchMode.PREDICTIVE,
|
|
74994
74997
|
argument
|
|
74995
74998
|
};
|
|
74996
|
-
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
74999
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument, this.contextProperties));
|
|
74997
75000
|
if (source == undefined) {
|
|
74998
75001
|
return;
|
|
74999
75002
|
}
|
|
@@ -77768,7 +77771,7 @@ const defaultTooltipResolver = (item, _enabled, _level) => {
|
|
|
77768
77771
|
};
|
|
77769
77772
|
|
|
77770
77773
|
const TreeItem = (props) => {
|
|
77771
|
-
const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList } = props;
|
|
77774
|
+
const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList, itemDoubleClick } = props;
|
|
77772
77775
|
if (!node.visible) {
|
|
77773
77776
|
return;
|
|
77774
77777
|
}
|
|
@@ -77782,7 +77785,7 @@ const TreeItem = (props) => {
|
|
|
77782
77785
|
itemsList.push(treeItem);
|
|
77783
77786
|
}
|
|
77784
77787
|
return (h("ul", { class: level === 1 ? "first-level" : undefined },
|
|
77785
|
-
h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem) }, {
|
|
77788
|
+
h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem), onDblClick: () => available && itemDoubleClick(treeItem) }, {
|
|
77786
77789
|
disabled,
|
|
77787
77790
|
selected: treeItem.id === selectedId,
|
|
77788
77791
|
[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezTreeItem_${treeItem.id}`)
|
|
@@ -77793,7 +77796,7 @@ const TreeItem = (props) => {
|
|
|
77793
77796
|
h("label", { class: `item-label ${treeItem.bold ? "item-label--bold" : ""}` }, treeItem.label)),
|
|
77794
77797
|
getBadgeElement(treeItem.id, treeItem.badge, treeItem.id === selectedId)),
|
|
77795
77798
|
expanded
|
|
77796
|
-
&& node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList }))));
|
|
77799
|
+
&& node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList, itemDoubleClick: itemDoubleClick }))));
|
|
77797
77800
|
};
|
|
77798
77801
|
function getBadgeElement(itemId, badge, isSelectedItem) {
|
|
77799
77802
|
if (badge == undefined) {
|
|
@@ -78061,6 +78064,7 @@ const EzTree$1 = class extends HTMLElement$1 {
|
|
|
78061
78064
|
this.__attachShadow();
|
|
78062
78065
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
78063
78066
|
this.ezOpenItem = createEvent(this, "ezOpenItem", 7);
|
|
78067
|
+
this.ezDbClickItem = createEvent(this, "ezDbClickItem", 7);
|
|
78064
78068
|
this._onItemClick = (item) => {
|
|
78065
78069
|
this.value = item;
|
|
78066
78070
|
};
|
|
@@ -78330,7 +78334,7 @@ const EzTree$1 = class extends HTMLElement$1 {
|
|
|
78330
78334
|
:
|
|
78331
78335
|
this._tree.getChildren().map(node => {
|
|
78332
78336
|
var _a;
|
|
78333
|
-
return h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems });
|
|
78337
|
+
return h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems, itemDoubleClick: (item) => this.ezDbClickItem.emit(item) });
|
|
78334
78338
|
})));
|
|
78335
78339
|
}
|
|
78336
78340
|
get _element() { return this; }
|
|
@@ -79012,7 +79016,7 @@ const EzFileItem = /*@__PURE__*/proxyCustomElement(EzFileItem$1, [1,"ez-file-ite
|
|
|
79012
79016
|
const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"],"canShowError":[516,"can-show-error"],"autoFocus":[4,"auto-focus"],"noMargin":[4,"no-margin"]}]);
|
|
79013
79017
|
const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"],"onlyStaticFields":[4,"only-static-fields"],"_fieldsProps":[32]}]);
|
|
79014
79018
|
const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-view",{"fields":[16],"selectedRecord":[16],"_customEditors":[32]}]);
|
|
79015
|
-
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"enableLockManagerLoadingComp":[4,"enable-lock-manager-loading-comp"],"enableLockManagerTaskbarClick":[4,"enable-lock-manager-taskbar-click"],"multipleSelection":[4,"multiple-selection"],"config":[1040],"selectionToastConfig":[16],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"columnfilterDataSource":[16],"useEnterLikeTab":[4,"use-enter-like-tab"],"recordsValidator":[16],"canEdit":[4,"can-edit"],"autoFocus":[4,"auto-focus"],"paginationCounterMode":[1,"pagination-counter-mode"],"enableGridInsert":[4,"enable-grid-insert"],"enableContinuousInsert":[4,"enable-continuous-insert"],"outlineMode":[4,"outline-mode"],"enableRowTableStriped":[4,"enable-row-table-striped"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32]},[[0,"ezSelectionChange","onSelectionChange"],[2,"click","handleClick"]]]);
|
|
79019
|
+
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"enableLockManagerLoadingComp":[4,"enable-lock-manager-loading-comp"],"enableLockManagerTaskbarClick":[4,"enable-lock-manager-taskbar-click"],"multipleSelection":[4,"multiple-selection"],"config":[1040],"selectionToastConfig":[16],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"columnfilterDataSource":[16],"useEnterLikeTab":[4,"use-enter-like-tab"],"recordsValidator":[16],"canEdit":[4,"can-edit"],"autoFocus":[4,"auto-focus"],"paginationCounterMode":[1,"pagination-counter-mode"],"enableGridInsert":[4,"enable-grid-insert"],"enableContinuousInsert":[4,"enable-continuous-insert"],"suppressCheckboxColumn":[4,"suppress-checkbox-column"],"outlineMode":[4,"outline-mode"],"enableRowTableStriped":[4,"enable-row-table-striped"],"compact":[4],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32]},[[0,"ezSelectionChange","onSelectionChange"],[2,"click","handleClick"]]]);
|
|
79016
79020
|
const EzGuideNavigator = /*@__PURE__*/proxyCustomElement(EzGuideNavigator$1, [1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32]}]);
|
|
79017
79021
|
const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
|
|
79018
79022
|
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [2,"ez-list",{"dataSource":[1040],"listMode":[1,"list-mode"],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"itemLeftSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"enableMultipleSelection":[4,"enable-multiple-selection"],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
@@ -79025,7 +79029,7 @@ const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{
|
|
|
79025
79029
|
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"],"enabledScroll":[4,"enabled-scroll"]}]);
|
|
79026
79030
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
79027
79031
|
const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]);
|
|
79028
|
-
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"stopPropagateEnterKeyEvent":[4,"stop-propagate-enter-key-event"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"noMargin":[4,"no-margin"],"options":[1040],"suppressSearch":[4,"suppress-search"],"ensureClearButtonVisible":[4,"ensure-clear-button-visible"],"suppressPreLoad":[4,"suppress-pre-load"],"autoFocus":[4,"auto-focus"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_showLoadingDescription":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
79032
|
+
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"contextProperties":[8,"context-properties"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"stopPropagateEnterKeyEvent":[4,"stop-propagate-enter-key-event"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"noMargin":[4,"no-margin"],"options":[1040],"suppressSearch":[4,"suppress-search"],"ensureClearButtonVisible":[4,"ensure-clear-button-visible"],"suppressPreLoad":[4,"suppress-pre-load"],"autoFocus":[4,"auto-focus"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_showLoadingDescription":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
79029
79033
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
79030
79034
|
const EzSidebarNavigator = /*@__PURE__*/proxyCustomElement(EzSidebarNavigator$1, [1,"ez-sidebar-navigator",{"type":[1],"mode":[1025],"size":[1],"isResponsive":[4,"is-responsive"],"titleMenu":[1,"title-menu"],"showCollapseMenu":[4,"show-collapse-menu"],"showFixedButton":[4,"show-fixed-button"],"open":[32]}]);
|
|
79031
79035
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
@@ -333,8 +333,8 @@ class DataBinder {
|
|
|
333
333
|
if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] == undefined) {
|
|
334
334
|
const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
|
|
335
335
|
if (loader) {
|
|
336
|
-
field["optionLoader"] = (arg) => {
|
|
337
|
-
return loader(arg, fieldName, this._dataUnit);
|
|
336
|
+
field["optionLoader"] = (arg, ctxOptions) => {
|
|
337
|
+
return loader(arg, fieldName, this._dataUnit, ctxOptions);
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, f as forceUpdate, H as Host, g as getElement } from './index-5a720e56.js';
|
|
2
2
|
import { DateUtils, Action, StringUtils, DataUnit, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { b as buildFieldMetadata, D as DataBinder } from './DataBinder-
|
|
3
|
+
import { b as buildFieldMetadata, D as DataBinder } from './DataBinder-9c877244.js';
|
|
4
4
|
import './ApplicationUtils-eaf91331.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
|
|
@@ -6,7 +6,7 @@ import './DialogType-54a62731.js';
|
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
7
|
import { C as CustomEditorSource, a as CustomRenderSource } from './ICustomRender-875b5a40.js';
|
|
8
8
|
import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE } from './constants-4e0d35b7.js';
|
|
9
|
-
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder } from './DataBinder-
|
|
9
|
+
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder } from './DataBinder-9c877244.js';
|
|
10
10
|
import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -65126,7 +65126,7 @@ class AgGridController {
|
|
|
65126
65126
|
return status;
|
|
65127
65127
|
}
|
|
65128
65128
|
updateSelectionForAll(selectAll) {
|
|
65129
|
-
|
|
65129
|
+
selectAll ? this._dataUnit.selectAllRecords() : this._dataUnit.unSelectAllRecords();
|
|
65130
65130
|
}
|
|
65131
65131
|
setData(data) {
|
|
65132
65132
|
if (this._grid === undefined) {
|
|
@@ -65387,9 +65387,8 @@ class AgGridController {
|
|
|
65387
65387
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
65388
65388
|
}
|
|
65389
65389
|
setColumnsDef(cols) {
|
|
65390
|
-
const
|
|
65391
|
-
|
|
65392
|
-
];
|
|
65390
|
+
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: '', checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }));
|
|
65391
|
+
const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
|
|
65393
65392
|
if (this._statusResolver != undefined) {
|
|
65394
65393
|
newColDefs.push({
|
|
65395
65394
|
colId: this.STATUS_COL_ID,
|
|
@@ -66088,8 +66087,10 @@ const EzGrid = class {
|
|
|
66088
66087
|
this.paginationCounterMode = 'show';
|
|
66089
66088
|
this.enableGridInsert = false;
|
|
66090
66089
|
this.enableContinuousInsert = true;
|
|
66090
|
+
this.suppressCheckboxColumn = false;
|
|
66091
66091
|
this.outlineMode = false;
|
|
66092
66092
|
this.enableRowTableStriped = true;
|
|
66093
|
+
this.compact = false;
|
|
66093
66094
|
}
|
|
66094
66095
|
/**
|
|
66095
66096
|
* Aplica a definição de colunas.
|
|
@@ -66448,6 +66449,7 @@ const EzGrid = class {
|
|
|
66448
66449
|
autoFocus: this.autoFocus,
|
|
66449
66450
|
enableGridInsert: this.enableGridInsert,
|
|
66450
66451
|
enableContinuousInsert: this.enableContinuousInsert,
|
|
66452
|
+
suppressCheckBoxCol: this.suppressCheckboxColumn,
|
|
66451
66453
|
onRefresh: () => {
|
|
66452
66454
|
if (this.dataUnit) {
|
|
66453
66455
|
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
@@ -66570,7 +66572,7 @@ const EzGrid = class {
|
|
|
66570
66572
|
}
|
|
66571
66573
|
render() {
|
|
66572
66574
|
var _a;
|
|
66573
|
-
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ${this.outlineMode ? 'outline-mode' : 'shadow-mode'}
|
|
66575
|
+
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ez-grid ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ${this.compact ? 'no-padding' : ""}`, ref: elem => (this._container = elem) }), h("div", { class: `ez-box ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-padding--small grid-header` }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
66574
66576
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
66575
66577
|
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
66576
66578
|
}
|