@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-55889.0 → 0.0.0-bugfix-dev-kb-0224.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{RecordValidationProcessor-10846595.js → RecordValidationProcessor-4c893e04.js} +1 -7
- 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 +6 -12
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +5 -14
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +2 -2
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/ez-grid.cjs.entry.js +24 -282
- 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 +2 -2
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +2 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
- package/dist/cjs/ez-search.cjs.entry.js +6 -7
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- 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-button/ez-button.css +2 -13
- package/dist/collection/components/ez-button/ez-button.js +6 -12
- package/dist/collection/components/ez-card-item/ez-card-item.css +10 -60
- package/dist/collection/components/ez-card-item/ez-card-item.js +3 -30
- package/dist/collection/components/ez-check/ez-check.css +6 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -106
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +5 -83
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +6 -57
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +1 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +0 -1
- package/dist/collection/components/ez-grid/ez-grid.css +7 -17
- package/dist/collection/components/ez-grid/ez-grid.js +5 -87
- package/dist/collection/components/ez-list/ez-list.css +1 -2
- package/dist/collection/components/ez-modal/ez-modal.css +1 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
- package/dist/collection/components/ez-scroller/ez-scroller.css +0 -1
- package/dist/collection/components/ez-search/ez-search.css +8 -19
- package/dist/collection/components/ez-search/ez-search.js +7 -26
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +0 -3
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +1 -3
- package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
- package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +0 -1
- package/dist/collection/utils/form/DataBinder.js +1 -1
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +1 -7
- package/dist/custom-elements/index.js +54 -334
- package/dist/esm/{RecordValidationProcessor-9c6cc267.js → RecordValidationProcessor-b00b8b77.js} +1 -7
- 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 +6 -12
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +5 -14
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +2 -2
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-custom-form-input_2.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/ez-grid.entry.js +24 -282
- 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 +2 -2
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +2 -2
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +4 -4
- package/dist/esm/ez-search.entry.js +6 -7
- package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +3 -3
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- 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-04f24913.js +1 -0
- package/dist/ezui/{p-82ac8b06.entry.js → p-072e6347.entry.js} +1 -1
- package/dist/ezui/p-08061683.entry.js +1 -0
- 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-13d2fe2d.entry.js +1 -0
- 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-34b6916c.entry.js +1 -0
- package/dist/ezui/{p-4b5f83a4.entry.js → p-3b4eeeb6.entry.js} +1 -1
- package/dist/ezui/p-3faa2b46.entry.js +1 -0
- package/dist/ezui/{p-e03c2774.entry.js → p-42533ea4.entry.js} +1 -1
- 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-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-2d9b10ce.entry.js → p-669f875f.entry.js} +2 -2
- 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-784fe207.entry.js +1 -0
- package/dist/ezui/{p-2af4e2de.entry.js → p-7922142b.entry.js} +1 -1
- package/dist/ezui/p-7af81663.entry.js +1 -0
- package/dist/ezui/{p-3f8c33e0.entry.js → p-7bc07c31.entry.js} +1 -1
- package/dist/ezui/{p-bef7daac.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-b0e71d23.entry.js → p-9050d2cd.entry.js} +1 -1
- package/dist/ezui/{p-e7395eae.entry.js → p-922ac38b.entry.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a31b9c90.entry.js +1 -0
- 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-bf79aaa1.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/{p-7946f2d4.entry.js → p-c36b7c56.entry.js} +1 -1
- package/dist/ezui/{p-52100a6e.entry.js → p-cdc472cc.entry.js} +1 -1
- package/dist/ezui/p-e26f12dd.entry.js +1 -0
- package/dist/ezui/{p-36180f4d.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/ezui/p-ecc2c1ec.entry.js +1 -0
- package/dist/ezui/{p-a7490128.entry.js → p-fcf0acce.entry.js} +1 -1
- package/dist/types/components/ez-button/ez-button.d.ts +1 -2
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +0 -5
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +4 -32
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -19
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +0 -18
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +2 -13
- package/dist/types/components/ez-grid/ez-grid.d.ts +0 -16
- package/dist/types/components/ez-search/ez-search.d.ts +2 -6
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
- package/dist/types/components.d.ts +12 -52
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
- package/package.json +1 -1
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +0 -1
- package/dist/ezui/p-2480e948.entry.js +0 -1
- package/dist/ezui/p-554522db.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-70f1c812.entry.js +0 -1
- package/dist/ezui/p-a921e3e7.entry.js +0 -1
- package/dist/ezui/p-b858fc6e.entry.js +0 -1
- package/dist/ezui/p-b9fa2526.entry.js +0 -1
- package/dist/ezui/p-c17540c0.entry.js +0 -1
- package/dist/ezui/p-d6b29f38.entry.js +0 -1
- package/dist/ezui/p-e18d9e6a.entry.js +0 -1
- package/dist/ezui/p-f42855b9.js +0 -1
- package/dist/ezui/p-ff233029.entry.js +0 -1
- package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +0 -5
|
@@ -96,7 +96,7 @@ export class EzMuiltiSelectionList {
|
|
|
96
96
|
}
|
|
97
97
|
async searchWithDataSource(searchArgument, fieldName) {
|
|
98
98
|
const { argument, mode } = searchArgument;
|
|
99
|
-
if (mode !== 'PRELOAD'
|
|
99
|
+
if (mode !== 'PRELOAD') {
|
|
100
100
|
return this.dataSource.fetchData(argument, fieldName);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -135,10 +135,10 @@ ez-icon {
|
|
|
135
135
|
background-color: var(--ez-search--background-color--xlight);
|
|
136
136
|
border-radius: var(--ez-search--border-radius);
|
|
137
137
|
box-shadow: var(--shadow, 0px 0px 16px 0px #000);
|
|
138
|
+
padding: var(--ez-search--space--small);
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
.list-options {
|
|
141
|
-
margin-top: 0px;
|
|
142
142
|
box-sizing: border-box;
|
|
143
143
|
width: 100%;
|
|
144
144
|
height: 100%;
|
|
@@ -146,24 +146,20 @@ ez-icon {
|
|
|
146
146
|
display: flex;
|
|
147
147
|
flex-direction: column;
|
|
148
148
|
scroll-behavior: smooth;
|
|
149
|
-
overflow
|
|
150
|
-
overflow-x: hidden;
|
|
149
|
+
overflow: auto;
|
|
151
150
|
scrollbar-width: thin;
|
|
151
|
+
gap: 3px;
|
|
152
152
|
|
|
153
153
|
/*public*/
|
|
154
154
|
scrollbar-color: var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background);
|
|
155
|
-
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
.list-options::-webkit-scrollbar {
|
|
159
158
|
/*public*/
|
|
160
|
-
background-color: var(--
|
|
161
|
-
width: var(--
|
|
162
|
-
max-width: var(--
|
|
163
|
-
min-width: var(--
|
|
164
|
-
height: var(--space--small);
|
|
165
|
-
max-height: var(--space--small);
|
|
166
|
-
min-height: var(--space--small);
|
|
159
|
+
background-color: var(--ez-search__scrollbar--color-background);
|
|
160
|
+
width: var(--ez-search__scrollbar--width);
|
|
161
|
+
max-width: var(--ez-search__scrollbar--width);
|
|
162
|
+
min-width: var(--ez-search__scrollbar--width);
|
|
167
163
|
}
|
|
168
164
|
|
|
169
165
|
.list-options::-webkit-scrollbar-track {
|
|
@@ -200,6 +196,7 @@ ez-icon {
|
|
|
200
196
|
|
|
201
197
|
/*public*/
|
|
202
198
|
border-radius: var(--ez-search--border-radius-small);
|
|
199
|
+
padding: var(--ez-search--space--small);
|
|
203
200
|
gap: var(--space--small, 6px);
|
|
204
201
|
}
|
|
205
202
|
|
|
@@ -334,12 +331,4 @@ ez-text-input:hover .btn__close, ez-text-input:focus .btn__close {
|
|
|
334
331
|
@keyframes spin {
|
|
335
332
|
0% { transform: rotate(0deg); }
|
|
336
333
|
100% { transform: rotate(360deg); }
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
@supports not (scrollbar-width: thin) {
|
|
340
|
-
/* Estilos para navegadores que NÃO suportam scrollbar-width */
|
|
341
|
-
.item {
|
|
342
|
-
/* Estilos alternativos, por exemplo, para navegadores que não suportam scrollbar-width */
|
|
343
|
-
padding-right: 8px;
|
|
344
|
-
}
|
|
345
334
|
}
|
|
@@ -35,8 +35,7 @@ export class EzSearch {
|
|
|
35
35
|
this.ignoreLimitCharsToSearch = false;
|
|
36
36
|
this.options = undefined;
|
|
37
37
|
this.suppressSearch = false;
|
|
38
|
-
this.
|
|
39
|
-
this.suppressPreLoad = false;
|
|
38
|
+
this.fromGrid = false;
|
|
40
39
|
}
|
|
41
40
|
observeErrorMessage() {
|
|
42
41
|
var _a;
|
|
@@ -69,7 +68,7 @@ export class EzSearch {
|
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
observeOptions(newOptions, oldOptions) {
|
|
72
|
-
if (!newOptions.length && this.
|
|
71
|
+
if (!newOptions.length && this.fromGrid)
|
|
73
72
|
return;
|
|
74
73
|
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
75
74
|
return;
|
|
@@ -271,7 +270,7 @@ export class EzSearch {
|
|
|
271
270
|
title: opt.label,
|
|
272
271
|
details: opt.details
|
|
273
272
|
};
|
|
274
|
-
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card
|
|
273
|
+
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
|
|
275
274
|
}
|
|
276
275
|
showOptions() {
|
|
277
276
|
if (!this.enabled)
|
|
@@ -663,7 +662,7 @@ export class EzSearch {
|
|
|
663
662
|
render() {
|
|
664
663
|
var _a;
|
|
665
664
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
666
|
-
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.
|
|
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)
|
|
667
666
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
668
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
|
|
669
668
|
&& this._visibleOptions.length === 0
|
|
@@ -989,7 +988,7 @@ export class EzSearch {
|
|
|
989
988
|
"reflect": false,
|
|
990
989
|
"defaultValue": "false"
|
|
991
990
|
},
|
|
992
|
-
"
|
|
991
|
+
"fromGrid": {
|
|
993
992
|
"type": "boolean",
|
|
994
993
|
"mutable": false,
|
|
995
994
|
"complexType": {
|
|
@@ -1001,27 +1000,9 @@ export class EzSearch {
|
|
|
1001
1000
|
"optional": false,
|
|
1002
1001
|
"docs": {
|
|
1003
1002
|
"tags": [],
|
|
1004
|
-
"text": "
|
|
1003
|
+
"text": "Informa se o componente est\u00E1 instanciado de dentro de uma grade"
|
|
1005
1004
|
},
|
|
1006
|
-
"attribute": "
|
|
1007
|
-
"reflect": false,
|
|
1008
|
-
"defaultValue": "false"
|
|
1009
|
-
},
|
|
1010
|
-
"suppressPreLoad": {
|
|
1011
|
-
"type": "boolean",
|
|
1012
|
-
"mutable": false,
|
|
1013
|
-
"complexType": {
|
|
1014
|
-
"original": "boolean",
|
|
1015
|
-
"resolved": "boolean",
|
|
1016
|
-
"references": {}
|
|
1017
|
-
},
|
|
1018
|
-
"required": false,
|
|
1019
|
-
"optional": false,
|
|
1020
|
-
"docs": {
|
|
1021
|
-
"tags": [],
|
|
1022
|
-
"text": "Se true, desabilita pr\u00E9-load das op\u00E7\u00F5es ao carregar componente"
|
|
1023
|
-
},
|
|
1024
|
-
"attribute": "suppress-pre-load",
|
|
1005
|
+
"attribute": "from-grid",
|
|
1025
1006
|
"reflect": false,
|
|
1026
1007
|
"defaultValue": "false"
|
|
1027
1008
|
}
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
--ez-sidebar-button--hover--width: 12px;
|
|
9
9
|
/*@doc Define a altura do span do botão.*/
|
|
10
10
|
--ez-sidebar-button--height: 96px;
|
|
11
|
-
/*@doc Define a camada em que o componente será exibido.*/
|
|
12
|
-
--ez-sidebar-navigator-button--z-index: var(--elevation--20, 20);
|
|
13
11
|
|
|
14
12
|
/* cor */
|
|
15
13
|
/*@doc Define a cor de fundo do botão.*/
|
|
@@ -37,7 +35,6 @@
|
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
button {
|
|
40
|
-
z-index: var(--ez-sidebar-navigator-button--z-index);
|
|
41
38
|
position: absolute;
|
|
42
39
|
display: flex;
|
|
43
40
|
background: var(--ez-sidebar-button--background-color--xlight);
|
|
@@ -11,7 +11,7 @@ export class EzSidebarButton {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right"
|
|
14
|
+
return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right" })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "ez-sidebar-button"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
--ez-sidebar-navigator--border-radius: 0px var(--border--radius-medium) var(--border--radius-medium) 0px;
|
|
15
15
|
/*@doc Força uma altura especifica para o sidebar, o padrão é 100% da tela*/
|
|
16
16
|
--ez-sidebar-navigator--height: calc(100vh - var(--space--lg, 24px));
|
|
17
|
-
/*@doc Define a camada em que o componente será exibido.*/
|
|
18
|
-
--ez-sidebar-navigator--z-index: var(--elevation--20, 20);
|
|
19
17
|
|
|
20
18
|
/*Labels Header */
|
|
21
19
|
/*@doc Define o espaçamento entre os componente do cabeçalho*/
|
|
@@ -126,7 +124,7 @@
|
|
|
126
124
|
|
|
127
125
|
.dynamic {
|
|
128
126
|
position: absolute;
|
|
129
|
-
z-index: var(--
|
|
127
|
+
z-index: var(--most-visible , 4);
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
.fixed {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/*@doc Define a cor do label.*/
|
|
24
24
|
--ez-split-button--color: var(--title--primary, #FFF);
|
|
25
25
|
/*@doc Define o tamanho do label.*/
|
|
26
|
-
--ez-split-button--font-size: var(--text--
|
|
26
|
+
--ez-split-button--font-size: var(--text--medium, 14px);
|
|
27
27
|
/*@doc Define a família da fonte do label.*/
|
|
28
28
|
--ez-split-button--font-family: var(--font-pattern, Arial);
|
|
29
29
|
/*@doc Define o peso da fonte do label.*/
|
|
@@ -42,7 +42,7 @@ export class EzSplitButton {
|
|
|
42
42
|
}
|
|
43
43
|
getIconSize(sizeParam = 'medium') {
|
|
44
44
|
var _a;
|
|
45
|
-
const sizeList = ['
|
|
45
|
+
const sizeList = ['medium', 'large'];
|
|
46
46
|
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
47
47
|
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
48
48
|
}
|
|
@@ -311,8 +311,8 @@ export class EzSplitButton {
|
|
|
311
311
|
"type": "string",
|
|
312
312
|
"mutable": false,
|
|
313
313
|
"complexType": {
|
|
314
|
-
"original": "'
|
|
315
|
-
"resolved": "\"large\" | \"medium\"
|
|
314
|
+
"original": "'medium' | 'large'",
|
|
315
|
+
"resolved": "\"large\" | \"medium\"",
|
|
316
316
|
"references": {}
|
|
317
317
|
},
|
|
318
318
|
"required": false,
|
|
@@ -69,7 +69,7 @@ export default class DataBinder {
|
|
|
69
69
|
this._recordValidatorProcessor = new RecordValidationProcessor(this._dataUnit, {
|
|
70
70
|
getRequiredFields: () => this._formMetadata.getRequiredFields(),
|
|
71
71
|
markAsInvalid: field => this.markInvalid(field),
|
|
72
|
-
getMessageForField: field => this.getErrorMessage(field)
|
|
72
|
+
getMessageForField: field => this.getErrorMessage(field)
|
|
73
73
|
}, recordsValidator);
|
|
74
74
|
}
|
|
75
75
|
disconnectDataUnit() {
|
|
@@ -5,7 +5,7 @@ export class RecordValidationProcessor {
|
|
|
5
5
|
this._validationSource = validationSource;
|
|
6
6
|
this._validator = validator;
|
|
7
7
|
}
|
|
8
|
-
validate(
|
|
8
|
+
validate() {
|
|
9
9
|
return new Promise((accept, reject) => {
|
|
10
10
|
const records = this._dataUnit.getModifiedRecords();
|
|
11
11
|
for (let i = 0; i < records.length; i++) {
|
|
@@ -22,11 +22,6 @@ export class RecordValidationProcessor {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
if (invalidResults.length > 0) {
|
|
25
|
-
if (!isSaving && invalidResults[0].invalidFields.length > 0) {
|
|
26
|
-
this._validationSource.markAsInvalid(invalidResults[0].invalidFields[0], record.__record__id__);
|
|
27
|
-
reject();
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
25
|
this.processValidationResult(invalidResults, record.__record__id__);
|
|
31
26
|
reject();
|
|
32
27
|
break;
|
|
@@ -58,7 +53,6 @@ export class RecordValidationProcessor {
|
|
|
58
53
|
processValidationResult(validationResult, recordId) {
|
|
59
54
|
validationResult.forEach(invalidResult => {
|
|
60
55
|
const invalidFields = invalidResult.invalidFields;
|
|
61
|
-
this._dataUnit.savingCanceled(invalidFields, recordId);
|
|
62
56
|
if (invalidFields) {
|
|
63
57
|
invalidFields.forEach(field => {
|
|
64
58
|
this.markAsInvalid(field, recordId);
|