@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-65210.0 → 0.0.0-bugfix-dev-KB-66441.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/README.md +1 -1
- 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 +4 -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 +3 -2
- package/dist/cjs/ez-form.cjs.entry.js +2 -2
- package/dist/cjs/ez-grid.cjs.entry.js +9 -4
- 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 +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +25 -14
- 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 +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-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/ez-form.js +1 -1
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +22 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js +22 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +2 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +4 -0
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +1 -1
- package/dist/collection/components/ez-search/ez-search.js +24 -13
- package/dist/custom-elements/index.js +39 -20
- 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 -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 +3 -2
- package/dist/esm/ez-form.entry.js +2 -2
- package/dist/esm/ez-grid.entry.js +9 -4
- 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 +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +25 -14
- 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 +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-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-c5a80844.entry.js → p-2dcb50d4.entry.js} +1 -1
- package/dist/ezui/{p-e151e795.entry.js → p-30775e7f.entry.js} +1 -1
- 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-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-4559c266.entry.js → p-5056284a.entry.js} +1 -1
- package/dist/ezui/p-5264876b.entry.js +1 -0
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.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-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-0e551dd4.entry.js → p-91f626d3.entry.js} +1 -1
- package/dist/ezui/{p-31674f8e.entry.js → p-922ac38b.entry.js} +1 -1
- package/dist/ezui/{p-23a796cc.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-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-b283351d.entry.js +1 -0
- 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-cd1a2e6b.entry.js → p-d9401ea0.entry.js} +1 -1
- package/dist/ezui/{p-c12dc894.entry.js → p-e252a728.entry.js} +2 -2
- package/dist/ezui/{p-36180f4d.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/ezui/{p-9a11e223.entry.js → p-f3c526cc.entry.js} +1 -1
- package/dist/ezui/{p-569a0b9a.entry.js → p-ffef392d.entry.js} +1 -1
- package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +5 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +5 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +3 -0
- package/dist/types/components/ez-search/ez-search.d.ts +2 -0
- package/dist/types/components.d.ts +17 -1
- package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
- package/package.json +1 -1
- package/dist/ezui/p-085babb4.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-d62ff380.entry.js +0 -1
|
@@ -6,6 +6,7 @@ export class EzFormView {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this._customEditors = new Map();
|
|
8
8
|
this.fields = undefined;
|
|
9
|
+
this.selectedRecord = undefined;
|
|
9
10
|
}
|
|
10
11
|
async showUp() {
|
|
11
12
|
this._element.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
@@ -69,7 +70,7 @@ export class EzFormView {
|
|
|
69
70
|
if (this._customEditors.has(item.name)) {
|
|
70
71
|
const value = (_a = this._formElements.map(el => ({ name: el.dataset.fieldName, value: el['value'] })).find(field => field.name === item.name)) === null || _a === void 0 ? void 0 : _a.value;
|
|
71
72
|
const customEditor = this._customEditors.get(item.name).customEditor;
|
|
72
|
-
return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: fieldBuilder, value: value }));
|
|
73
|
+
return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: fieldBuilder, value: value, selectedRecord: this.selectedRecord }));
|
|
73
74
|
}
|
|
74
75
|
return h("div", { class: classItem }, fieldBuilder(item));
|
|
75
76
|
}
|
|
@@ -128,6 +129,26 @@ export class EzFormView {
|
|
|
128
129
|
"tags": [],
|
|
129
130
|
"text": "Define a lista de metadados usada para criar os campos de user interface."
|
|
130
131
|
}
|
|
132
|
+
},
|
|
133
|
+
"selectedRecord": {
|
|
134
|
+
"type": "unknown",
|
|
135
|
+
"mutable": false,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "Record",
|
|
138
|
+
"resolved": "Record",
|
|
139
|
+
"references": {
|
|
140
|
+
"Record": {
|
|
141
|
+
"location": "import",
|
|
142
|
+
"path": "@sankhyalabs/core"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": "Define os registros da linha selecionada."
|
|
151
|
+
}
|
|
131
152
|
}
|
|
132
153
|
};
|
|
133
154
|
}
|
package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js
CHANGED
|
@@ -19,6 +19,7 @@ export default class EzGridCustomCellEditor extends EzCellEditor {
|
|
|
19
19
|
detailContext: params.customEditorsInfo.detailContext,
|
|
20
20
|
setValue: (value) => this.setValue(value),
|
|
21
21
|
getValue: () => this.getValue(),
|
|
22
|
+
record: super.getRecord(),
|
|
22
23
|
editorMetadata: {
|
|
23
24
|
hidden: ((_a = fieldMetadata.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
|
|
24
25
|
label: fieldMetadata.label,
|
|
@@ -26,7 +27,7 @@ export default class EzGridCustomCellEditor extends EzCellEditor {
|
|
|
26
27
|
props: fieldMetadata.props,
|
|
27
28
|
optionLoader: fieldMetadata.optionLoader,
|
|
28
29
|
options: ((_b = fieldMetadata.props) === null || _b === void 0 ? void 0 : _b.options) || {},
|
|
29
|
-
}
|
|
30
|
+
},
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
getDefaultGui() {
|
|
@@ -18,6 +18,7 @@ uiBuilders.set(UserInterface.LONGTEXT, buildTextAreaInput);
|
|
|
18
18
|
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
19
19
|
export default class EzCellEditor {
|
|
20
20
|
init(params) {
|
|
21
|
+
this._rowData = params.data;
|
|
21
22
|
const fieldName = params.column.getColId();
|
|
22
23
|
const dataUnit = params.context.dataUnit;
|
|
23
24
|
this._fieldMetadata = buildEditorMetadata(dataUnit.getField(fieldName), params.eGridCell, dataUnit, params.context.editionManager);
|
|
@@ -49,4 +50,7 @@ export default class EzCellEditor {
|
|
|
49
50
|
getFieldMetadata() {
|
|
50
51
|
return this._fieldMetadata;
|
|
51
52
|
}
|
|
53
|
+
getRecord() {
|
|
54
|
+
return this._rowData;
|
|
55
|
+
}
|
|
52
56
|
}
|
|
@@ -12,7 +12,7 @@ export const SelectionCounter = (props) => {
|
|
|
12
12
|
return !!paginationInfo && (currentPageSelected || allRecordSelected);
|
|
13
13
|
};
|
|
14
14
|
return (h("div", Object.assign({ class: "ez-box ez-box--shadow-small" }, getElementID("ezGridSelectionCounter")), h("div", { class: "ez-flex ez-flex--align-items-center ez-size-width--full ez-padding-horizontal--medium" }, h("div", { class: "ez-flex ez-flex--wrap ez-flex--align-items-baseline ez-flex--justify-center" }, h("label", Object.assign({ innerHTML: getText(selectionCount, allRecordSelected), class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium ez-margin-top--medium" }, getElementID("ezGridSelectionCounter_label"))), h("div", { class: "ez-flex ez-margin-right--medium" }, shouldRenderSelectionButton() &&
|
|
15
|
-
h("ez-button", Object.assign({ title: buildSelectAllTitle(total), enabled: enableSelectAll(total), class: "ez-margin-right--medium", label: buildSelectAllLabel(allRecordSelected, count, total), mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))), h("ez-button", Object.assign({ class: "grid__btn-clear", label: "Limpar Sele\u00E7\u00E3o", mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))), h("button", Object.assign({ class: "grid__btn-close", title: "Fechar", onClick: onClose }, getElementID("ezGridSelectionCounter_close")), h("ez-icon", { iconName: "close" })))));
|
|
15
|
+
h("ez-button", Object.assign({ key: "selectAllRecordsEzButton", title: buildSelectAllTitle(total), enabled: enableSelectAll(total), class: "ez-margin-right--medium", label: buildSelectAllLabel(allRecordSelected, count, total), mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))), h("ez-button", Object.assign({ key: "clearAllSelectionEzButton", class: "grid__btn-clear", label: "Limpar Sele\u00E7\u00E3o", mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))), h("button", Object.assign({ class: "grid__btn-close", title: "Fechar", onClick: onClose }, getElementID("ezGridSelectionCounter_close")), h("ez-icon", { iconName: "close" })))));
|
|
16
16
|
};
|
|
17
17
|
function getElementID(sufix) {
|
|
18
18
|
return {
|
|
@@ -41,25 +41,31 @@ export class EzSearch {
|
|
|
41
41
|
var _a;
|
|
42
42
|
if (this._textInput) {
|
|
43
43
|
this._textInput.errorMessage = this.errorMessage;
|
|
44
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
44
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim()) && this.errorMessage) {
|
|
45
45
|
this.setInputValue();
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
validateNewValue(newValue, oldValue) {
|
|
50
|
+
if (typeof newValue == 'string' && typeof oldValue == 'object' && newValue === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
51
|
+
return false;
|
|
52
|
+
if (typeof newValue == 'object' && typeof oldValue == 'string' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === oldValue)
|
|
53
|
+
return false;
|
|
54
|
+
if (typeof newValue == 'object' && typeof oldValue == 'object' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
49
58
|
async observeValue(newValue, oldValue) {
|
|
50
|
-
if (this._textInput && newValue != oldValue) {
|
|
59
|
+
if (this._textInput && newValue != oldValue && this.validateNewValue(newValue, oldValue)) {
|
|
51
60
|
try {
|
|
52
61
|
if (typeof newValue === "string") {
|
|
53
62
|
await this.handleValueAsString(newValue);
|
|
54
63
|
return;
|
|
55
64
|
}
|
|
56
65
|
const newValueSelected = this.getSelectedOption(newValue);
|
|
57
|
-
const
|
|
58
|
-
const currentValue = this.getSelectedOption(this.value);
|
|
66
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
59
67
|
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
60
|
-
this.
|
|
61
|
-
}
|
|
62
|
-
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
68
|
+
this._currentValue = newValueSelected;
|
|
63
69
|
this.setInputValue();
|
|
64
70
|
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
65
71
|
if (!this._lookupMode) {
|
|
@@ -143,7 +149,9 @@ export class EzSearch {
|
|
|
143
149
|
return;
|
|
144
150
|
}
|
|
145
151
|
await this.loadDescriptionValue(value);
|
|
152
|
+
this.setInputValue();
|
|
146
153
|
this.ezChange.emit(this.value);
|
|
154
|
+
this._currentValue = this.value;
|
|
147
155
|
}
|
|
148
156
|
updateListPosition() {
|
|
149
157
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -200,7 +208,7 @@ export class EzSearch {
|
|
|
200
208
|
return text;
|
|
201
209
|
}
|
|
202
210
|
getText() {
|
|
203
|
-
const currentValue = this.getSelectedOption(this.
|
|
211
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
204
212
|
const text = this.getFormattedText(currentValue);
|
|
205
213
|
if (text == undefined) {
|
|
206
214
|
return;
|
|
@@ -375,6 +383,7 @@ export class EzSearch {
|
|
|
375
383
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
376
384
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
377
385
|
this.value = adjustedOpt;
|
|
386
|
+
this._currentValue = adjustedOpt;
|
|
378
387
|
}
|
|
379
388
|
else {
|
|
380
389
|
this.setInputValue();
|
|
@@ -395,7 +404,7 @@ export class EzSearch {
|
|
|
395
404
|
}
|
|
396
405
|
}
|
|
397
406
|
cancelPreselection() {
|
|
398
|
-
if (!this._textInput.value && this.
|
|
407
|
+
if (!this._textInput.value && this._currentValue) {
|
|
399
408
|
this.selectOption(undefined);
|
|
400
409
|
}
|
|
401
410
|
else {
|
|
@@ -416,6 +425,7 @@ export class EzSearch {
|
|
|
416
425
|
}
|
|
417
426
|
clearSearch() {
|
|
418
427
|
this.value = null;
|
|
428
|
+
this._currentValue = null;
|
|
419
429
|
}
|
|
420
430
|
controlListWithOnlyOne() {
|
|
421
431
|
var _a, _b;
|
|
@@ -445,11 +455,11 @@ export class EzSearch {
|
|
|
445
455
|
if (StringUtils.isEmpty(this.value)) {
|
|
446
456
|
return;
|
|
447
457
|
}
|
|
448
|
-
|
|
449
|
-
if (typeof value === "object") {
|
|
458
|
+
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
450
459
|
return;
|
|
451
460
|
}
|
|
452
|
-
|
|
461
|
+
let value = this.value;
|
|
462
|
+
if (typeof value === "object") {
|
|
453
463
|
return;
|
|
454
464
|
}
|
|
455
465
|
this.loadDescriptionValue(value);
|
|
@@ -487,7 +497,8 @@ export class EzSearch {
|
|
|
487
497
|
return;
|
|
488
498
|
}
|
|
489
499
|
this._lookupMode = true;
|
|
490
|
-
this.
|
|
500
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
501
|
+
this.value = this._currentValue;
|
|
491
502
|
}
|
|
492
503
|
loadOptionValue(argument) {
|
|
493
504
|
var _a;
|
|
@@ -3394,6 +3394,7 @@ const EzCustomFormInput$1 = class extends HTMLElement$1 {
|
|
|
3394
3394
|
this.value = undefined;
|
|
3395
3395
|
this.detailContext = undefined;
|
|
3396
3396
|
this.builderFallback = undefined;
|
|
3397
|
+
this.selectedRecord = undefined;
|
|
3397
3398
|
}
|
|
3398
3399
|
/**
|
|
3399
3400
|
* Aplica foco no campo.
|
|
@@ -3428,6 +3429,7 @@ const EzCustomFormInput$1 = class extends HTMLElement$1 {
|
|
|
3428
3429
|
currentEditor: this.builderFallback(this.formViewField),
|
|
3429
3430
|
setValue: (value) => this.setValue(value),
|
|
3430
3431
|
getValue: this.getValue,
|
|
3432
|
+
record: this.selectedRecord,
|
|
3431
3433
|
editorMetadata: {
|
|
3432
3434
|
label: this.formViewField.label,
|
|
3433
3435
|
hidden: ((_a = this.formViewField.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
|
|
@@ -5243,7 +5245,7 @@ const EzForm$1 = class extends HTMLElement$1 {
|
|
|
5243
5245
|
}
|
|
5244
5246
|
this.ezFormSetFields.emit(fields);
|
|
5245
5247
|
const idFormSheet = `${StringUtils$1.replaceAccentuatedChars(StringUtils$1.toCamelCase(currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.label), false)}_selectorContainer`;
|
|
5246
|
-
return (h("div", { class: "dynamic-content", "data-element-id": idFormSheet }, h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields })));
|
|
5248
|
+
return (h("div", { class: "dynamic-content", "data-element-id": idFormSheet }, h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields, selectedRecord: this.dataUnit.getSelectedRecord() })));
|
|
5247
5249
|
}
|
|
5248
5250
|
processMetadata() {
|
|
5249
5251
|
if (this.bindFields() && this.dataUnit && this._store) {
|
|
@@ -5485,6 +5487,7 @@ const EzFormView$1 = class extends HTMLElement$1 {
|
|
|
5485
5487
|
this.formItemsReady = createEvent(this, "formItemsReady", 7);
|
|
5486
5488
|
this._customEditors = new Map();
|
|
5487
5489
|
this.fields = undefined;
|
|
5490
|
+
this.selectedRecord = undefined;
|
|
5488
5491
|
}
|
|
5489
5492
|
async showUp() {
|
|
5490
5493
|
this._element.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
@@ -5548,7 +5551,7 @@ const EzFormView$1 = class extends HTMLElement$1 {
|
|
|
5548
5551
|
if (this._customEditors.has(item.name)) {
|
|
5549
5552
|
const value = (_a = this._formElements.map(el => ({ name: el.dataset.fieldName, value: el['value'] })).find(field => field.name === item.name)) === null || _a === void 0 ? void 0 : _a.value;
|
|
5550
5553
|
const customEditor = this._customEditors.get(item.name).customEditor;
|
|
5551
|
-
return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: fieldBuilder, value: value }));
|
|
5554
|
+
return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: fieldBuilder, value: value, selectedRecord: this.selectedRecord }));
|
|
5552
5555
|
}
|
|
5553
5556
|
return h("div", { class: classItem }, fieldBuilder(item));
|
|
5554
5557
|
}
|
|
@@ -124986,6 +124989,7 @@ uiBuilders.set(UserInterface.LONGTEXT, buildTextAreaInput);
|
|
|
124986
124989
|
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
124987
124990
|
class EzCellEditor {
|
|
124988
124991
|
init(params) {
|
|
124992
|
+
this._rowData = params.data;
|
|
124989
124993
|
const fieldName = params.column.getColId();
|
|
124990
124994
|
const dataUnit = params.context.dataUnit;
|
|
124991
124995
|
this._fieldMetadata = buildEditorMetadata(dataUnit.getField(fieldName), params.eGridCell, dataUnit, params.context.editionManager);
|
|
@@ -125017,6 +125021,9 @@ class EzCellEditor {
|
|
|
125017
125021
|
getFieldMetadata() {
|
|
125018
125022
|
return this._fieldMetadata;
|
|
125019
125023
|
}
|
|
125024
|
+
getRecord() {
|
|
125025
|
+
return this._rowData;
|
|
125026
|
+
}
|
|
125020
125027
|
}
|
|
125021
125028
|
|
|
125022
125029
|
class EzGridCustomCellEditor extends EzCellEditor {
|
|
@@ -125037,6 +125044,7 @@ class EzGridCustomCellEditor extends EzCellEditor {
|
|
|
125037
125044
|
detailContext: params.customEditorsInfo.detailContext,
|
|
125038
125045
|
setValue: (value) => this.setValue(value),
|
|
125039
125046
|
getValue: () => this.getValue(),
|
|
125047
|
+
record: super.getRecord(),
|
|
125040
125048
|
editorMetadata: {
|
|
125041
125049
|
hidden: ((_a = fieldMetadata.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
|
|
125042
125050
|
label: fieldMetadata.label,
|
|
@@ -125044,7 +125052,7 @@ class EzGridCustomCellEditor extends EzCellEditor {
|
|
|
125044
125052
|
props: fieldMetadata.props,
|
|
125045
125053
|
optionLoader: fieldMetadata.optionLoader,
|
|
125046
125054
|
options: ((_b = fieldMetadata.props) === null || _b === void 0 ? void 0 : _b.options) || {},
|
|
125047
|
-
}
|
|
125055
|
+
},
|
|
125048
125056
|
};
|
|
125049
125057
|
}
|
|
125050
125058
|
getDefaultGui() {
|
|
@@ -126332,8 +126340,8 @@ const SelectionCounter = (props) => {
|
|
|
126332
126340
|
h("label", Object.assign({ innerHTML: getText(selectionCount, allRecordSelected), class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium ez-margin-top--medium" }, getElementID("ezGridSelectionCounter_label"))),
|
|
126333
126341
|
h("div", { class: "ez-flex ez-margin-right--medium" },
|
|
126334
126342
|
shouldRenderSelectionButton() &&
|
|
126335
|
-
h("ez-button", Object.assign({ title: buildSelectAllTitle(total), enabled: enableSelectAll(total), class: "ez-margin-right--medium", label: buildSelectAllLabel(allRecordSelected, count, total), mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))),
|
|
126336
|
-
h("ez-button", Object.assign({ class: "grid__btn-clear", label: "Limpar Sele\u00E7\u00E3o", mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))),
|
|
126343
|
+
h("ez-button", Object.assign({ key: "selectAllRecordsEzButton", title: buildSelectAllTitle(total), enabled: enableSelectAll(total), class: "ez-margin-right--medium", label: buildSelectAllLabel(allRecordSelected, count, total), mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))),
|
|
126344
|
+
h("ez-button", Object.assign({ key: "clearAllSelectionEzButton", class: "grid__btn-clear", label: "Limpar Sele\u00E7\u00E3o", mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))),
|
|
126337
126345
|
h("button", Object.assign({ class: "grid__btn-close", title: "Fechar", onClick: onClose }, getElementID("ezGridSelectionCounter_close")),
|
|
126338
126346
|
h("ez-icon", { iconName: "close" })))));
|
|
126339
126347
|
};
|
|
@@ -128708,25 +128716,31 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128708
128716
|
var _a;
|
|
128709
128717
|
if (this._textInput) {
|
|
128710
128718
|
this._textInput.errorMessage = this.errorMessage;
|
|
128711
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
128719
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim()) && this.errorMessage) {
|
|
128712
128720
|
this.setInputValue();
|
|
128713
128721
|
}
|
|
128714
128722
|
}
|
|
128715
128723
|
}
|
|
128724
|
+
validateNewValue(newValue, oldValue) {
|
|
128725
|
+
if (typeof newValue == 'string' && typeof oldValue == 'object' && newValue === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
128726
|
+
return false;
|
|
128727
|
+
if (typeof newValue == 'object' && typeof oldValue == 'string' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === oldValue)
|
|
128728
|
+
return false;
|
|
128729
|
+
if (typeof newValue == 'object' && typeof oldValue == 'object' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
128730
|
+
return false;
|
|
128731
|
+
return true;
|
|
128732
|
+
}
|
|
128716
128733
|
async observeValue(newValue, oldValue) {
|
|
128717
|
-
if (this._textInput && newValue != oldValue) {
|
|
128734
|
+
if (this._textInput && newValue != oldValue && this.validateNewValue(newValue, oldValue)) {
|
|
128718
128735
|
try {
|
|
128719
128736
|
if (typeof newValue === "string") {
|
|
128720
128737
|
await this.handleValueAsString(newValue);
|
|
128721
128738
|
return;
|
|
128722
128739
|
}
|
|
128723
128740
|
const newValueSelected = this.getSelectedOption(newValue);
|
|
128724
|
-
const
|
|
128725
|
-
const currentValue = this.getSelectedOption(this.value);
|
|
128741
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
128726
128742
|
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
128727
|
-
this.
|
|
128728
|
-
}
|
|
128729
|
-
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
128743
|
+
this._currentValue = newValueSelected;
|
|
128730
128744
|
this.setInputValue();
|
|
128731
128745
|
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
128732
128746
|
if (!this._lookupMode) {
|
|
@@ -128810,7 +128824,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128810
128824
|
return;
|
|
128811
128825
|
}
|
|
128812
128826
|
await this.loadDescriptionValue(value);
|
|
128827
|
+
this.setInputValue();
|
|
128813
128828
|
this.ezChange.emit(this.value);
|
|
128829
|
+
this._currentValue = this.value;
|
|
128814
128830
|
}
|
|
128815
128831
|
updateListPosition() {
|
|
128816
128832
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -128867,7 +128883,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128867
128883
|
return text;
|
|
128868
128884
|
}
|
|
128869
128885
|
getText() {
|
|
128870
|
-
const currentValue = this.getSelectedOption(this.
|
|
128886
|
+
const currentValue = this.getSelectedOption(this._currentValue);
|
|
128871
128887
|
const text = this.getFormattedText(currentValue);
|
|
128872
128888
|
if (text == undefined) {
|
|
128873
128889
|
return;
|
|
@@ -129042,6 +129058,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129042
129058
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
129043
129059
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
129044
129060
|
this.value = adjustedOpt;
|
|
129061
|
+
this._currentValue = adjustedOpt;
|
|
129045
129062
|
}
|
|
129046
129063
|
else {
|
|
129047
129064
|
this.setInputValue();
|
|
@@ -129062,7 +129079,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129062
129079
|
}
|
|
129063
129080
|
}
|
|
129064
129081
|
cancelPreselection() {
|
|
129065
|
-
if (!this._textInput.value && this.
|
|
129082
|
+
if (!this._textInput.value && this._currentValue) {
|
|
129066
129083
|
this.selectOption(undefined);
|
|
129067
129084
|
}
|
|
129068
129085
|
else {
|
|
@@ -129083,6 +129100,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129083
129100
|
}
|
|
129084
129101
|
clearSearch() {
|
|
129085
129102
|
this.value = null;
|
|
129103
|
+
this._currentValue = null;
|
|
129086
129104
|
}
|
|
129087
129105
|
controlListWithOnlyOne() {
|
|
129088
129106
|
var _a, _b;
|
|
@@ -129112,11 +129130,11 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129112
129130
|
if (StringUtils$1.isEmpty(this.value)) {
|
|
129113
129131
|
return;
|
|
129114
129132
|
}
|
|
129115
|
-
|
|
129116
|
-
if (typeof value === "object") {
|
|
129133
|
+
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
129117
129134
|
return;
|
|
129118
129135
|
}
|
|
129119
|
-
|
|
129136
|
+
let value = this.value;
|
|
129137
|
+
if (typeof value === "object") {
|
|
129120
129138
|
return;
|
|
129121
129139
|
}
|
|
129122
129140
|
this.loadDescriptionValue(value);
|
|
@@ -129154,7 +129172,8 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129154
129172
|
return;
|
|
129155
129173
|
}
|
|
129156
129174
|
this._lookupMode = true;
|
|
129157
|
-
this.
|
|
129175
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
129176
|
+
this.value = this._currentValue;
|
|
129158
129177
|
}
|
|
129159
129178
|
loadOptionValue(argument) {
|
|
129160
129179
|
var _a;
|
|
@@ -132689,7 +132708,7 @@ const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label
|
|
|
132689
132708
|
const EzChip = /*@__PURE__*/proxyCustomElement(EzChip$1, [1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"showNativeTooltip":[4,"show-native-tooltip"]}]);
|
|
132690
132709
|
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"boxBordered":[4,"box-bordered"],"label":[513],"subtitle":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"headerAlign":[513,"header-align"],"removable":[516],"editable":[516],"conditionalSave":[16],"_activeEditText":[32]}]);
|
|
132691
132710
|
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"limitCharsToSearch":[2,"limit-chars-to-search"],"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressSearch":[4,"suppress-search"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
132692
|
-
const EzCustomFormInput = /*@__PURE__*/proxyCustomElement(EzCustomFormInput$1, [2,"ez-custom-form-input",{"customEditor":[16],"formViewField":[16],"value":[1032],"detailContext":[1,"detail-context"],"builderFallback":[16],"gui":[32]}]);
|
|
132711
|
+
const EzCustomFormInput = /*@__PURE__*/proxyCustomElement(EzCustomFormInput$1, [2,"ez-custom-form-input",{"customEditor":[16],"formViewField":[16],"value":[1032],"detailContext":[1,"detail-context"],"builderFallback":[16],"selectedRecord":[16],"gui":[32]}]);
|
|
132693
132712
|
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"canShowError":[516,"can-show-error"]}]);
|
|
132694
132713
|
const EzDateTimeInput = /*@__PURE__*/proxyCustomElement(EzDateTimeInput$1, [1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"canShowError":[516,"can-show-error"]}]);
|
|
132695
132714
|
const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"beforeClose":[1040]},[[8,"keydown","handleKeyDown"]]]);
|
|
@@ -132697,7 +132716,7 @@ const EzDropdown = /*@__PURE__*/proxyCustomElement(EzDropdown$1, [1,"ez-dropdown
|
|
|
132697
132716
|
const EzFileItem = /*@__PURE__*/proxyCustomElement(EzFileItem$1, [1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]);
|
|
132698
132717
|
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"]}]);
|
|
132699
132718
|
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]}]);
|
|
132700
|
-
const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-view",{"fields":[16],"_customEditors":[32]}]);
|
|
132719
|
+
const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-view",{"fields":[16],"selectedRecord":[16],"_customEditors":[32]}]);
|
|
132701
132720
|
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"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"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32]},[[0,"ezSelectionChange","onSelectionChange"]]]);
|
|
132702
132721
|
const EzGuideNavigator = /*@__PURE__*/proxyCustomElement(EzGuideNavigator$1, [1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32]}]);
|
|
132703
132722
|
const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import './ApplicationUtils-eaf91331.js';
|
|
4
4
|
import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezAlertListCss = ":host {\n display: flex;\n\n /* Alert List */\n \n /*@doc Define a largura da lista minimizado */\n --ez-alert-list__container--width: 680px;\n /*@doc Define a altura da lista minimizado */\n --ez-alert-list__container--height: 220px;\n \n /*@doc Define a largura da lista maximizada */\n --ez-alert-list__container--width--expanded: 920px;\n /*@doc Define a altura da lista maximizada */\n --ez-alert-list__container--height--expanded: 540px;\n\n /* Title */\n /*@doc Define a fonte do título do componente */\n --ez-alert-list__title--font-family: var(--font-pattern, \"Roboto\");\n /*@doc Define o tamanho da fonte do título do popup.*/\n --ez-alert-list__title--font-size: var(--title--large, 20px);\n /*@doc Define a cor da fonte do título do popup.*/\n --ez-alert-list__title--color: var(--title--primary, #2b3a54);\n /*@doc Define o peso da fonte do título do popup.*/\n --ez-alert-list__title--font-weight: var(--text-weight--extra-large, 700);\n\n /* @doc Define a borda inferior do item da lista. */\n --ez-list__item--border-bottom: var(--border--small, 1px solid);\n\n /* @doc Define a cor da borda inferior do item da lista. */\n --ez-list__item--border-bottom-color: var(--color--strokes, #DCE0E8);\n\n /* @doc Define o tipo da quebra de linha do item da lista. */\n --ez-list__item--white-space: break-space;\n}\n\n.alert-list__content {\n display: flex;\n flex-direction: column;\n \n gap: var(--space--xs);\n margin: var(--space--large, 24px);\n width: 100%;\n}\n\n.alert-list__container {\n z-index: var(--ez-elevation--8, 8);\n display: flex;\n height: var(--ez-alert-list__container--height);\n width: var(--ez-alert-list__container--width);\n border-radius: var(--border--radius-medium);\n background-color: var(--background--xlight);\n box-shadow: var(--shadow--medium);\n\n &.expanded {\n height: var(--ez-alert-list__container--height--expanded);\n width: var(--ez-alert-list__container--width--expanded);\n }\n\n @media (max-height: 640px) {\n max-height: calc(100vh - var(--space--3xl));\n } \n}\n\n.alert-list__header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.alert-list__title {\n font-family: var(--ez-alert-list__title--font-family);\n font-size: var(--ez-alert-list__title--font-size);\n font-weight: var(--ez-alert-list__title--font-weight);\n color: var(--ez-alert-list__title--color);\n}\n\n.alert-list__header__buttons {\n display: flex;\n gap: var(--space--xs);\n}\n\n.alert-list__expandable-content {\n overflow-y: auto;\n scrollbar-width: thin;\n}\n\n";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezAlertCss = ":host{--ez-alert-alert-container--padding-up-down:var(--space--small, 6px);--ez-alert-alert-container--padding-right-left:var(--space--medium, 12px);--ez-alert-alert-container--gap:var(--space--medium, 12px);--ez-alert-alert-container--border-radius:var(--border--radius-medium, 12px);--ez-alert-alert-container--font-color-warn:var(--color--alert-warning-900, #8C6B00);--ez-alert-alert-container--icon-warn:var(--color--alert-warning-900, #8C6B00);--ez-alert-alert-container--background-color-warn:var(--color--alert-warning-200, #FFF7D5);--ez-alert-alert-container--font-color-critical:var(--color--alert-error, #BD0025);--ez-alert-alert-container--icon-critical:var(--color--alert-error, #BD0025);--ez-alert-alert-container--background-color-critical:var(--color--alert-error-200, #F7E0E5);--ez-alert-alert-container--font-color-success:var(--color--alert-success, #157A00);--ez-alert-alert-container--icon-success:var(--color--alert-success, #157A00);--ez-alert-alert-container--background-color-success:var(--color--alert-success-200, #E7F6E0);font-size:var(--text--small, 12px);font-family:var(--font-pattern, \"Roboto\");width:100%;hyphens:auto;display:block}.alert-container{display:flex;align-items:center;gap:var(--ez-alert-alert-container--gap);padding:var(--ez-alert-alert-container--padding-up-down) var(--ez-alert-alert-container--padding-right-left);border-radius:var(--ez-alert-alert-container--border-radius)}.warn{background-color:var(--ez-alert-alert-container--background-color-warn);color:var(--ez-alert-alert-container--font-color-warn)}.critical{background-color:var(--ez-alert-alert-container--background-color-critical);color:var(--ez-alert-alert-container--font-color-critical)}.success{background-color:var(--ez-alert-alert-container--background-color-success);color:var(--ez-alert-alert-container--font-color-success)}ez-icon{--ez-icon--color:inherit}.alert-container__icon-warn{--ez-icon--color:var(--ez-alert-alert-container--icon-warn)}.alert-container__icon-critical{--ez-icon--color:var(--ez-alert-alert-container--icon-critical)}.alert-container__icon-success{--ez-icon--color:var(--ez-alert-alert-container--icon-success)}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils, ObjectUtils, JSUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const BreadcrumbItem = (props) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600);--ez-button--hover--background-color:var(--background--medium, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--color--disable-primary, '#e5eaf0');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{display:flex;flex-direction:column;z-index:var(--more-visible, 2);background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:'';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset;color:var(--ez-calendar--color)}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;padding:0px;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto;scrollbar-width:none}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{display:flex;justify-content:space-between;padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CheckMode } from './CheckMode-bdb2ec19.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezChipCss = ":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container:focus{outline:var(--border--medium) var(--ez-label-chip__label__container--default--border-color--active)}.label__container--disabled:hover{cursor:default;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__content__icon{display:flex;cursor:pointer;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--row-reverse{flex-direction:row-reverse}.label__container .btn-close{padding:0px 0px 0px 8px}.label__container--row-reverse .btn-close{padding:0px 8px 0px 0px}.cursor-disable{cursor:default}ez-icon{--ez-icon--color:inherit}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
|
|
4
4
|
import './DialogType-54a62731.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ObjectUtils, FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import './ApplicationUtils-eaf91331.js';
|
|
4
4
|
import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
1
|
+
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { C as CustomEditorSource } from './ICustomRender-875b5a40.js';
|
|
3
3
|
import { HTMLBuilder, StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
4
4
|
import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
|
|
@@ -14,6 +14,7 @@ const EzCustomFormInput = class {
|
|
|
14
14
|
this.value = undefined;
|
|
15
15
|
this.detailContext = undefined;
|
|
16
16
|
this.builderFallback = undefined;
|
|
17
|
+
this.selectedRecord = undefined;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Aplica foco no campo.
|
|
@@ -48,6 +49,7 @@ const EzCustomFormInput = class {
|
|
|
48
49
|
currentEditor: this.builderFallback(this.formViewField),
|
|
49
50
|
setValue: (value) => this.setValue(value),
|
|
50
51
|
getValue: this.getValue,
|
|
52
|
+
record: this.selectedRecord,
|
|
51
53
|
editorMetadata: {
|
|
52
54
|
label: this.formViewField.label,
|
|
53
55
|
hidden: ((_a = this.formViewField.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
|
|
@@ -66,7 +68,7 @@ const EzCustomFormInput = class {
|
|
|
66
68
|
this.gui = gui;
|
|
67
69
|
return;
|
|
68
70
|
}
|
|
69
|
-
if (!(gui instanceof
|
|
71
|
+
if (!(gui instanceof HTMLElement) && typeof gui !== 'string') {
|
|
70
72
|
this.handleValue(gui);
|
|
71
73
|
this.gui = gui;
|
|
72
74
|
return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { DateUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { DateUtils, TimeFormatter, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { D as DialogType } from './DialogType-54a62731.js';
|
|
3
3
|
import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const DropdownItem = ({ item, hasIcon, hasChildren, isLockedLevels, onSubActionClick }) => {
|