@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-65214.1 → 0.0.0-bugfix-dev-kb-67792.2
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/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +3 -31
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +5 -5
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +3 -2
- package/dist/cjs/ez-modal.cjs.entry.js +8 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +10 -3
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +5 -2
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +9 -3
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +0 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +2 -43
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +0 -4
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +1 -0
- package/dist/collection/components/ez-grid/ez-grid.js +3 -0
- package/dist/collection/components/ez-modal/ez-modal.js +25 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
- package/dist/collection/components/ez-popup/ez-popup.css +5 -1
- package/dist/collection/components/ez-popup/ez-popup.js +26 -1
- package/dist/collection/components/ez-search/ez-search.js +22 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +34 -2
- package/dist/custom-elements/index.js +39 -44
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-custom-form-input_2.entry.js +4 -32
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +5 -5
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +3 -2
- package/dist/esm/ez-modal.entry.js +8 -2
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +10 -3
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +5 -2
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +1 -1
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +9 -3
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +1 -3
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-82ac8b06.entry.js → p-072e6347.entry.js} +1 -1
- package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
- package/dist/ezui/{p-11b09aa1.entry.js → p-1285c902.entry.js} +1 -1
- package/dist/ezui/{p-f1c3f85d.entry.js → p-13d2fe2d.entry.js} +1 -1
- package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-de870657.entry.js → p-2097d0cf.entry.js} +1 -1
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/{p-b150ccd3.entry.js → p-32e553e5.entry.js} +2 -2
- package/dist/ezui/p-34b6916c.entry.js +1 -0
- package/dist/ezui/{p-81cffa53.entry.js → p-3b4eeeb6.entry.js} +1 -1
- package/dist/ezui/{p-9634631d.entry.js → p-3faa2b46.entry.js} +1 -1
- package/dist/ezui/p-42533ea4.entry.js +1 -0
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-f291db18.entry.js → p-49456b34.entry.js} +1 -1
- package/dist/ezui/p-4d5235f1.entry.js +1 -0
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
- package/dist/ezui/{p-c3b7a23e.entry.js → p-5bd5e68f.entry.js} +1 -1
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/{p-9c2e2d68.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/{p-2af4e2de.entry.js → p-7922142b.entry.js} +1 -1
- package/dist/ezui/{p-9a23d513.entry.js → p-7af81663.entry.js} +1 -1
- package/dist/ezui/{p-3f8c33e0.entry.js → p-7bc07c31.entry.js} +1 -1
- package/dist/ezui/{p-9aa27e69.entry.js → p-84e439b9.entry.js} +1 -1
- package/dist/ezui/{p-8eef0f70.entry.js → p-85c8baae.entry.js} +1 -1
- package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/p-8f0144f6.entry.js +1 -0
- package/dist/ezui/{p-b0e71d23.entry.js → p-9050d2cd.entry.js} +1 -1
- package/dist/ezui/{p-31674f8e.entry.js → p-922ac38b.entry.js} +1 -1
- package/dist/ezui/{p-a35b41e6.entry.js → p-9ab22a07.entry.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/{p-81f99ace.entry.js → p-a31b9c90.entry.js} +1 -1
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/{p-24ca32a3.entry.js → p-af95cd16.entry.js} +1 -1
- package/dist/ezui/{p-dbeee5aa.entry.js → p-bae4e180.entry.js} +1 -1
- package/dist/ezui/{p-30951bd7.entry.js → p-baf80b13.entry.js} +1 -1
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-868b56f7.entry.js → p-bcb53f27.entry.js} +1 -1
- package/dist/ezui/{p-33792b2b.entry.js → p-bf79aaa1.entry.js} +1 -1
- package/dist/ezui/p-c0d9c4f8.entry.js +1 -0
- package/dist/ezui/p-c36b7c56.entry.js +1 -0
- package/dist/ezui/{p-36180f4d.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/ezui/{p-752c4069.entry.js → p-ecc2c1ec.entry.js} +1 -1
- package/dist/ezui/{p-ee9315ff.entry.js → p-fcf0acce.entry.js} +1 -1
- package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +1 -7
- package/dist/types/components/ez-modal/ez-modal.d.ts +5 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +6 -0
- package/dist/types/components/ez-search/ez-search.d.ts +4 -0
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +2 -1
- package/dist/types/components.d.ts +33 -0
- package/package.json +1 -1
- package/dist/ezui/p-034e21ca.entry.js +0 -1
- package/dist/ezui/p-0eebdc88.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-9a11e223.entry.js +0 -1
- package/dist/ezui/p-c5a80844.entry.js +0 -1
- package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
- package/dist/ezui/p-e151e795.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { CustomEditorSource } from '../../../utils/customEditor/interfaces/ICustomEditor';
|
|
3
|
-
import { HTMLBuilder,
|
|
3
|
+
import { HTMLBuilder, StringUtils } from '@sankhyalabs/core';
|
|
4
4
|
export class EzCustomFormInput {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.gui = undefined;
|
|
@@ -11,26 +11,6 @@ export class EzCustomFormInput {
|
|
|
11
11
|
this.builderFallback = undefined;
|
|
12
12
|
this.selectedRecord = undefined;
|
|
13
13
|
}
|
|
14
|
-
watchValue() {
|
|
15
|
-
this.handleValue(this.gui);
|
|
16
|
-
}
|
|
17
|
-
watchCustomEditor() {
|
|
18
|
-
this.getContent();
|
|
19
|
-
}
|
|
20
|
-
watchFormViewField(newValue, oldValue) {
|
|
21
|
-
if (!ObjectUtils.equals(newValue, oldValue))
|
|
22
|
-
this.getContent();
|
|
23
|
-
}
|
|
24
|
-
watchDetailContext() {
|
|
25
|
-
this.getContent();
|
|
26
|
-
}
|
|
27
|
-
watchBuilderFallback() {
|
|
28
|
-
this.getContent();
|
|
29
|
-
}
|
|
30
|
-
watchSelectedRecord(newValue, oldValue) {
|
|
31
|
-
if (newValue['__record__id__'] != oldValue['__record__id__'])
|
|
32
|
-
this.getContent();
|
|
33
|
-
}
|
|
34
14
|
/**
|
|
35
15
|
* Aplica foco no campo.
|
|
36
16
|
*/
|
|
@@ -109,7 +89,7 @@ export class EzCustomFormInput {
|
|
|
109
89
|
child.$attrs$.value = this.value;
|
|
110
90
|
});
|
|
111
91
|
}
|
|
112
|
-
|
|
92
|
+
componentWillRender() {
|
|
113
93
|
this.getContent();
|
|
114
94
|
}
|
|
115
95
|
render() {
|
|
@@ -295,25 +275,4 @@ export class EzCustomFormInput {
|
|
|
295
275
|
}
|
|
296
276
|
};
|
|
297
277
|
}
|
|
298
|
-
static get watchers() {
|
|
299
|
-
return [{
|
|
300
|
-
"propName": "value",
|
|
301
|
-
"methodName": "watchValue"
|
|
302
|
-
}, {
|
|
303
|
-
"propName": "customEditor",
|
|
304
|
-
"methodName": "watchCustomEditor"
|
|
305
|
-
}, {
|
|
306
|
-
"propName": "formViewField",
|
|
307
|
-
"methodName": "watchFormViewField"
|
|
308
|
-
}, {
|
|
309
|
-
"propName": "detailContext",
|
|
310
|
-
"methodName": "watchDetailContext"
|
|
311
|
-
}, {
|
|
312
|
-
"propName": "builderFallback",
|
|
313
|
-
"methodName": "watchBuilderFallback"
|
|
314
|
-
}, {
|
|
315
|
-
"propName": "selectedRecord",
|
|
316
|
-
"methodName": "watchSelectedRecord"
|
|
317
|
-
}];
|
|
318
|
-
}
|
|
319
278
|
}
|
|
@@ -176,10 +176,6 @@ export default class AgGridController {
|
|
|
176
176
|
else {
|
|
177
177
|
this._grid = new Grid(container, this._gridOptions);
|
|
178
178
|
}
|
|
179
|
-
container.addEventListener('focusout', (event) => {
|
|
180
|
-
if (!container.contains(event.relatedTarget))
|
|
181
|
-
this._gridOptions.api.clearFocusedCell();
|
|
182
|
-
});
|
|
183
179
|
const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectionInfo();
|
|
184
180
|
if (selection === null || selection === void 0 ? void 0 : selection.isAllRecords()) {
|
|
185
181
|
this.selectAll(true);
|
package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js
CHANGED
|
@@ -9,6 +9,7 @@ export const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) =
|
|
|
9
9
|
/>`);
|
|
10
10
|
const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
|
|
11
11
|
ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
|
|
12
|
+
ezSearch.fromGrid = true;
|
|
12
13
|
ezSearch.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
|
|
13
14
|
ezSearch.valueGetter = () => ezSearch.getValueAsync();
|
|
14
15
|
return ezSearch;
|
|
@@ -8,6 +8,7 @@ export class EzModal {
|
|
|
8
8
|
this.opened = true;
|
|
9
9
|
this.closeEsc = false;
|
|
10
10
|
this.closeOutsideClick = false;
|
|
11
|
+
this.closeOutsideLeave = false;
|
|
11
12
|
this.scrim = "medium";
|
|
12
13
|
}
|
|
13
14
|
observeOpened() {
|
|
@@ -39,6 +40,11 @@ export class EzModal {
|
|
|
39
40
|
this.closeModal();
|
|
40
41
|
}
|
|
41
42
|
}
|
|
43
|
+
onMouseLeaveHandler() {
|
|
44
|
+
if (this.closeOutsideLeave) {
|
|
45
|
+
this.closeModal();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
42
48
|
render() {
|
|
43
49
|
const positionSufix = this.align === "left" ? "left" : "right";
|
|
44
50
|
const regularVerticalPaddingClass = this.heightMode === "regular" ? 'modal__vertical-padding' : '';
|
|
@@ -46,7 +52,7 @@ export class EzModal {
|
|
|
46
52
|
const scrimType = `modal__screen-${this.scrim}`;
|
|
47
53
|
return (h(Host, null, this.opened
|
|
48
54
|
?
|
|
49
|
-
h("div", { ref: ref => this._modalRef = ref, class: `modal ${scrimType} ${regularVerticalPaddingClass}`, onMouseDown: evt => this.onMouseDownHandler(evt), tabIndex: -1 }, h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, h("div", { class: `modal__content ${modalContentHeightMode} ${this.modalSize}` }, h("slot", null))))
|
|
55
|
+
h("div", { ref: ref => this._modalRef = ref, class: `modal ${scrimType} ${regularVerticalPaddingClass}`, onMouseDown: evt => this.onMouseDownHandler(evt), tabIndex: -1 }, h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, h("div", { onMouseLeave: () => this.onMouseLeaveHandler(), class: `modal__content ${modalContentHeightMode} ${this.modalSize}` }, h("slot", null))))
|
|
50
56
|
:
|
|
51
57
|
undefined));
|
|
52
58
|
}
|
|
@@ -174,6 +180,24 @@ export class EzModal {
|
|
|
174
180
|
"reflect": false,
|
|
175
181
|
"defaultValue": "false"
|
|
176
182
|
},
|
|
183
|
+
"closeOutsideLeave": {
|
|
184
|
+
"type": "boolean",
|
|
185
|
+
"mutable": false,
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "boolean",
|
|
188
|
+
"resolved": "boolean",
|
|
189
|
+
"references": {}
|
|
190
|
+
},
|
|
191
|
+
"required": false,
|
|
192
|
+
"optional": true,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": "Define se o modal ser\u00E1 fechado se o mouse sair para fora do conte\u00FAdo."
|
|
196
|
+
},
|
|
197
|
+
"attribute": "close-outside-leave",
|
|
198
|
+
"reflect": false,
|
|
199
|
+
"defaultValue": "false"
|
|
200
|
+
},
|
|
177
201
|
"scrim": {
|
|
178
202
|
"type": "string",
|
|
179
203
|
"mutable": false,
|
|
@@ -11,6 +11,7 @@ export class EzModalContainer {
|
|
|
11
11
|
this.okButtonLabel = undefined;
|
|
12
12
|
this.cancelButtonStatus = undefined;
|
|
13
13
|
this.okButtonStatus = undefined;
|
|
14
|
+
this.showCloseButton = true;
|
|
14
15
|
}
|
|
15
16
|
async handleEzModalAction(event) {
|
|
16
17
|
var _a;
|
|
@@ -47,7 +48,7 @@ export class EzModalContainer {
|
|
|
47
48
|
this._closeButton.focus();
|
|
48
49
|
}
|
|
49
50
|
render() {
|
|
50
|
-
return (h(Host, null, h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusLast() }), h("div", { ref: ref => this._modalRef = ref, tabIndex: -1, class: "ez-modal-container__header-container" }, this.showTitleBar && (h("div", { class: "ez-modal-container__header ez-margin-bottom--large" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle && (h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle))), h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction.CLOSE) }, h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" }))))), h("div", { class: "ez-modal-container__content" }, h("slot", null)), h("div", { class: "ez-modal-container__footer" }, this.cancelIsVisible() && (h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.CANCEL) })), this.okIsVisible() && (h("ez-button", { ref: ref => this._okButton = ref, class: "ez-button--primary", label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.OK) }))), h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusFirst() })));
|
|
51
|
+
return (h(Host, null, h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusLast() }), h("div", { ref: ref => this._modalRef = ref, tabIndex: -1, class: "ez-modal-container__header-container" }, this.showTitleBar && (h("div", { class: "ez-modal-container__header ez-margin-bottom--large" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle && (h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle))), (this.showCloseButton && h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction.CLOSE) }, h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" })))))), h("div", { class: "ez-modal-container__content" }, h("slot", null)), h("div", { class: "ez-modal-container__footer" }, this.cancelIsVisible() && (h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.CANCEL) })), this.okIsVisible() && (h("ez-button", { ref: ref => this._okButton = ref, class: "ez-button--primary", label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.OK) }))), h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusFirst() })));
|
|
51
52
|
}
|
|
52
53
|
static get is() { return "ez-modal-container"; }
|
|
53
54
|
static get encapsulation() { return "scoped"; }
|
|
@@ -182,6 +183,24 @@ export class EzModalContainer {
|
|
|
182
183
|
},
|
|
183
184
|
"attribute": "ok-button-status",
|
|
184
185
|
"reflect": false
|
|
186
|
+
},
|
|
187
|
+
"showCloseButton": {
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "boolean",
|
|
192
|
+
"resolved": "boolean",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Define a visibilidade do bot\u00E3o de fechar."
|
|
200
|
+
},
|
|
201
|
+
"attribute": "show-close-button",
|
|
202
|
+
"reflect": false,
|
|
203
|
+
"defaultValue": "true"
|
|
185
204
|
}
|
|
186
205
|
};
|
|
187
206
|
}
|
|
@@ -68,13 +68,17 @@
|
|
|
68
68
|
border-radius: 12px;
|
|
69
69
|
box-shadow: 0px 0px 16px rgba(0, 38, 111, 0.122);
|
|
70
70
|
box-sizing: border-box;
|
|
71
|
-
padding: var(--ez-popup__container--padding)
|
|
71
|
+
padding: var(--ez-popup__container--padding);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.popup__container--auto {
|
|
75
75
|
height: auto;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
.popup__overflow-y--auto {
|
|
79
|
+
overflow-y: auto;
|
|
80
|
+
}
|
|
81
|
+
|
|
78
82
|
.popup__content {
|
|
79
83
|
box-sizing: border-box;
|
|
80
84
|
height: 100%;
|
|
@@ -15,6 +15,7 @@ export class EzPopup {
|
|
|
15
15
|
this.useHeader = true;
|
|
16
16
|
this.heightMode = "full";
|
|
17
17
|
this.ezTitle = undefined;
|
|
18
|
+
this.enabledScroll = false;
|
|
18
19
|
}
|
|
19
20
|
observeConfig() {
|
|
20
21
|
this.manageOverflow();
|
|
@@ -52,11 +53,17 @@ export class EzPopup {
|
|
|
52
53
|
getGridSize() {
|
|
53
54
|
return this._sizeClasses[this.size] || this._sizeClasses["medium"];
|
|
54
55
|
}
|
|
56
|
+
handlePopupHeight() {
|
|
57
|
+
return this.heightMode === 'auto' ? 'popup__container--auto' : '';
|
|
58
|
+
}
|
|
59
|
+
handlePopupOverflowY() {
|
|
60
|
+
return this.enabledScroll ? 'popup__overflow-y--auto' : '';
|
|
61
|
+
}
|
|
55
62
|
componentDidRender() {
|
|
56
63
|
this.manageOverlay();
|
|
57
64
|
}
|
|
58
65
|
render() {
|
|
59
|
-
return (h(Host, null, this.opened ? (h("div", { class: "overlay", ref: ref => this._popupRef = ref, tabIndex: -1 }, h("div", { class: "popup col " + this.getGridSize() }, h("div", { class:
|
|
66
|
+
return (h(Host, null, this.opened ? (h("div", { class: "overlay", ref: ref => this._popupRef = ref, tabIndex: -1 }, h("div", { class: "popup col " + this.getGridSize() }, h("div", { class: `popup__container ${(this.handlePopupHeight())} ${this.handlePopupOverflowY()}` }, h("div", { class: "popup__content" }, h("div", { class: "popup__header " + (this.useHeader ? "popup__header--padding" : "") }, this.useHeader &&
|
|
60
67
|
h(Fragment, null, !!this.ezTitle && h("div", { class: "popup__title" }, this.ezTitle), h("button", { class: this.ezTitle ? "btn-close" : "btn-close btn-close--solo", onClick: () => { this.opened = false; this.ezClosePopup.emit(); } }))), h("div", { class: "popup__expandable-content" }, h("slot", null))))))) : undefined));
|
|
61
68
|
}
|
|
62
69
|
static get is() { return "ez-popup"; }
|
|
@@ -161,6 +168,24 @@ export class EzPopup {
|
|
|
161
168
|
},
|
|
162
169
|
"attribute": "ez-title",
|
|
163
170
|
"reflect": false
|
|
171
|
+
},
|
|
172
|
+
"enabledScroll": {
|
|
173
|
+
"type": "boolean",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "boolean",
|
|
177
|
+
"resolved": "boolean",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": "Possibilita scroll vertical no conte\u00FAdo interno do componente"
|
|
185
|
+
},
|
|
186
|
+
"attribute": "enabled-scroll",
|
|
187
|
+
"reflect": false,
|
|
188
|
+
"defaultValue": "false"
|
|
164
189
|
}
|
|
165
190
|
};
|
|
166
191
|
}
|
|
@@ -35,6 +35,7 @@ export class EzSearch {
|
|
|
35
35
|
this.ignoreLimitCharsToSearch = false;
|
|
36
36
|
this.options = undefined;
|
|
37
37
|
this.suppressSearch = false;
|
|
38
|
+
this.fromGrid = false;
|
|
38
39
|
}
|
|
39
40
|
observeErrorMessage() {
|
|
40
41
|
var _a;
|
|
@@ -67,6 +68,8 @@ export class EzSearch {
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
observeOptions(newOptions, oldOptions) {
|
|
71
|
+
if (!newOptions.length && this.fromGrid)
|
|
72
|
+
return;
|
|
70
73
|
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
71
74
|
return;
|
|
72
75
|
this.loadOptions(SearchMode.PRELOAD);
|
|
@@ -659,7 +662,7 @@ export class EzSearch {
|
|
|
659
662
|
render() {
|
|
660
663
|
var _a;
|
|
661
664
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
662
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
|
|
665
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.fromGrid)
|
|
663
666
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
664
667
|
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
665
668
|
&& this._visibleOptions.length === 0
|
|
@@ -984,6 +987,24 @@ export class EzSearch {
|
|
|
984
987
|
"attribute": "suppress-search",
|
|
985
988
|
"reflect": false,
|
|
986
989
|
"defaultValue": "false"
|
|
990
|
+
},
|
|
991
|
+
"fromGrid": {
|
|
992
|
+
"type": "boolean",
|
|
993
|
+
"mutable": false,
|
|
994
|
+
"complexType": {
|
|
995
|
+
"original": "boolean",
|
|
996
|
+
"resolved": "boolean",
|
|
997
|
+
"references": {}
|
|
998
|
+
},
|
|
999
|
+
"required": false,
|
|
1000
|
+
"optional": false,
|
|
1001
|
+
"docs": {
|
|
1002
|
+
"tags": [],
|
|
1003
|
+
"text": "Informa se o componente est\u00E1 instanciado de dentro de uma grade"
|
|
1004
|
+
},
|
|
1005
|
+
"attribute": "from-grid",
|
|
1006
|
+
"reflect": false,
|
|
1007
|
+
"defaultValue": "false"
|
|
987
1008
|
}
|
|
988
1009
|
};
|
|
989
1010
|
}
|
|
@@ -67,11 +67,17 @@ export class EzTabselector {
|
|
|
67
67
|
this.processesTabs();
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
async goToTab(tabIndex, silent = false) {
|
|
71
|
+
const tab = this._processedTabs.find(tab => tab.index === tabIndex);
|
|
72
|
+
this.handleTabClick(tab, !silent);
|
|
73
|
+
}
|
|
74
|
+
handleTabClick(tab, emitChange = true) {
|
|
71
75
|
this.selectedIndex = tab.index;
|
|
72
76
|
this._focusedIndex = undefined;
|
|
73
77
|
this.selectedTab = tab.tabKey;
|
|
74
|
-
|
|
78
|
+
if (emitChange) {
|
|
79
|
+
this.ezChange.emit(tab);
|
|
80
|
+
}
|
|
75
81
|
this.setFocusedBtn(false, tab.index);
|
|
76
82
|
}
|
|
77
83
|
componentWillLoad() {
|
|
@@ -316,6 +322,32 @@ export class EzTabselector {
|
|
|
316
322
|
}
|
|
317
323
|
}];
|
|
318
324
|
}
|
|
325
|
+
static get methods() {
|
|
326
|
+
return {
|
|
327
|
+
"goToTab": {
|
|
328
|
+
"complexType": {
|
|
329
|
+
"signature": "(tabIndex: number, silent?: boolean) => Promise<void>",
|
|
330
|
+
"parameters": [{
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": ""
|
|
333
|
+
}, {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": ""
|
|
336
|
+
}],
|
|
337
|
+
"references": {
|
|
338
|
+
"Promise": {
|
|
339
|
+
"location": "global"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"return": "Promise<void>"
|
|
343
|
+
},
|
|
344
|
+
"docs": {
|
|
345
|
+
"text": "",
|
|
346
|
+
"tags": []
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
}
|
|
319
351
|
static get elementRef() { return "_hostElem"; }
|
|
320
352
|
static get watchers() {
|
|
321
353
|
return [{
|