@sankhyalabs/ezui 1.1.76 → 1.1.79
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/AssetsUtils-02db4f46.js +24 -0
- package/dist/cjs/CSSVarsUtils-66e86394.js +18 -0
- package/dist/cjs/DateUtils-716769e0.js +46 -0
- package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +26 -0
- package/dist/cjs/ez-button_3.cjs.entry.js +520 -0
- package/dist/cjs/ez-calendar_13.cjs.entry.js +2417 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +133 -0
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +110375 -0
- package/dist/cjs/ez-icon.cjs.entry.js +30 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal_2.cjs.entry.js +370 -0
- package/dist/cjs/ez-popover.cjs.entry.js +3 -3
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +10 -28
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/{index-9431aeeb.js → index-2003dec4.js} +1 -15
- package/dist/cjs/index-a2266984.js +7417 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +8 -5
- package/dist/collection/components/ez-application/ez-application.css +3 -0
- package/dist/collection/components/ez-application/ez-application.js +35 -0
- package/dist/collection/components/ez-button/ez-button.css +16 -1
- package/dist/collection/components/ez-button/ez-button.js +27 -2
- package/dist/collection/components/ez-calendar/ez-calendar.css +70 -3
- package/dist/collection/components/ez-calendar/ez-calendar.js +173 -24
- package/dist/collection/components/ez-check/ez-check.css +78 -78
- package/dist/collection/components/ez-check/ez-check.js +3 -3
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +65 -54
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css +2 -2
- package/dist/collection/components/ez-date-input/ez-date-input.js +1 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +44 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +243 -0
- package/dist/collection/components/ez-form/DataBinder.js +44 -0
- package/dist/collection/components/ez-form/ez-form.css +1 -15
- package/dist/collection/components/ez-form/ez-form.js +109 -428
- package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +45 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +11 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +14 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +13 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +5 -0
- package/dist/collection/components/ez-form/store/form.slice.js +38 -0
- package/dist/collection/components/ez-form/structure/FormItem.js +11 -0
- package/dist/collection/components/ez-form/structure/FormSheet.js +5 -0
- package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +86 -0
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +21 -0
- package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +203 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +41 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/template/HeaderColumnTemplate.js +12 -0
- package/dist/collection/components/ez-grid/ez-grid.css +15 -0
- package/dist/collection/components/ez-grid/ez-grid.js +414 -0
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +105 -0
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +354 -0
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +7 -0
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +66 -0
- package/dist/collection/components/ez-icon/ez-icon.css +1 -1
- package/dist/collection/components/ez-list/ez-list.css +227 -44
- package/dist/collection/components/ez-list/ez-list.js +529 -149
- package/dist/collection/components/ez-modal/ez-modal.css +4 -4
- package/dist/collection/components/ez-modal/ez-modal.js +1 -1
- package/dist/collection/components/ez-number-input/ez-number-input.css +1 -165
- package/dist/collection/components/ez-number-input/ez-number-input.js +53 -339
- package/dist/collection/components/ez-popover/ez-popover.css +10 -6
- package/dist/collection/components/ez-popup/ez-popup.css +25 -27
- package/dist/collection/components/ez-search/ez-search.js +6 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +0 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +3 -3
- package/dist/collection/components/ez-text-area/ez-text-area.js +1 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js +1 -0
- package/dist/collection/components/ez-upload/ez-upload.js +3 -3
- package/dist/collection/components/test-du/test-du.css +3 -0
- package/dist/collection/components/test-du/test-du.js +87 -0
- package/dist/collection/servidor.js +94 -94
- package/dist/collection/utils/{Application.js → ApplicationUtils.js} +4 -4
- package/dist/collection/utils/CSSVarsUtils.js +6 -6
- package/dist/custom-elements/index.d.ts +32 -14
- package/dist/custom-elements/index.js +119419 -3209
- package/dist/esm/AssetsUtils-76ca41e1.js +22 -0
- package/dist/esm/CSSVarsUtils-aeee9825.js +16 -0
- package/dist/esm/DateUtils-0a1bbd7a.js +44 -0
- package/dist/esm/ez-action-chip.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +22 -0
- package/dist/esm/ez-button_3.entry.js +514 -0
- package/dist/esm/ez-calendar_13.entry.js +2401 -0
- package/dist/esm/ez-date-time-input.entry.js +129 -0
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +110371 -0
- package/dist/esm/ez-icon.entry.js +26 -0
- package/dist/esm/ez-label-chip.entry.js +1 -1
- package/dist/esm/ez-modal_2.entry.js +365 -0
- package/dist/esm/ez-popover.entry.js +3 -3
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-time-input.entry.js +4 -22
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/{index-fd3c8023.js → index-077c7fcf.js} +1 -15
- package/dist/esm/index-afe19542.js +7410 -0
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-00b837e2.js +1 -0
- package/dist/ezui/{p-a0b6eee2.entry.js → p-0a2056d9.entry.js} +1 -1
- package/dist/ezui/p-0d8368fc.entry.js +1 -0
- package/dist/ezui/p-1e36e3ff.entry.js +1 -0
- package/dist/ezui/p-446ec85b.js +1 -0
- package/dist/ezui/p-5509ee41.entry.js +369 -0
- package/dist/ezui/{p-d443f020.entry.js → p-57ea4b84.entry.js} +1 -1
- package/dist/ezui/{p-66954a04.entry.js → p-6d157776.entry.js} +1 -1
- package/dist/ezui/p-7a1f2e0e.entry.js +1 -0
- package/dist/ezui/p-7de3c95d.js +1 -0
- package/dist/ezui/p-857ead8e.entry.js +1 -0
- package/dist/ezui/p-8b099482.js +1 -0
- package/dist/ezui/p-920bb8c9.entry.js +1 -0
- package/dist/ezui/p-9be02ecf.entry.js +1 -0
- package/dist/ezui/p-a4a39579.entry.js +1 -0
- package/dist/ezui/p-c89629eb.js +1 -0
- package/dist/ezui/p-d5699f29.entry.js +1 -0
- package/dist/ezui/p-d64a3939.entry.js +1 -0
- package/dist/ezui/{p-823ff0a0.entry.js → p-da31cd21.entry.js} +1 -1
- package/dist/types/components/ez-application/ez-application.d.ts +10 -0
- package/dist/types/components/ez-button/ez-button.d.ts +5 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +21 -0
- package/dist/types/components/ez-check/ez-check.d.ts +1 -1
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +42 -0
- package/dist/types/components/ez-form/DataBinder.d.ts +10 -0
- package/dist/types/components/ez-form/ez-form.d.ts +24 -32
- package/dist/types/components/ez-form/fieldbuilder/FieldBuilder.d.ts +2 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.d.ts +3 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/DateInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/FileInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.d.ts +8 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/TextArea.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/TextInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/store/form.slice.d.ts +24 -0
- package/dist/types/components/ez-form/structure/FormItem.d.ts +9 -0
- package/dist/types/components/ez-form/structure/FormSheet.d.ts +9 -0
- package/dist/types/components/ez-form/structure/FormSheetMetadata.d.ts +27 -0
- package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +8 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +195 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +34 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +78 -0
- package/dist/types/components/ez-grid/subcomponents/gridconfig/grid-config.d.ts +30 -0
- package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +9 -0
- package/dist/types/components/ez-list/ez-list.d.ts +70 -17
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +29 -63
- package/dist/types/components/ez-search/ez-search.d.ts +2 -0
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +1 -1
- package/dist/types/components/test-du/test-du.d.ts +12 -0
- package/dist/types/components.d.ts +271 -175
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/{Application.d.ts → ApplicationUtils.d.ts} +1 -1
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -1
- package/package.json +10 -8
- package/react/components.d.ts +6 -3
- package/react/components.js +6 -3
- package/react/components.js.map +1 -1
- package/dist/cjs/CSSVarsUtils-f8827674.js +0 -18
- package/dist/cjs/RequestMetadata-2cd01e8a.js +0 -531
- package/dist/cjs/ez-button_16.cjs.entry.js +0 -4079
- package/dist/cjs/ez-list.cjs.entry.js +0 -174
- package/dist/cjs/ez-modal.cjs.entry.js +0 -65
- package/dist/cjs/ez-number-input.cjs.entry.js +0 -250
- package/dist/collection/components/ez-form/assets/trash-can-outline.svg +0 -3
- package/dist/collection/components/ez-form/store/Form.actions.js +0 -132
- package/dist/collection/components/ez-form/store/Form.reducer.js +0 -194
- package/dist/collection/components/ez-form/store/Form.selectors.js +0 -44
- package/dist/collection/components/ez-form/subcomponents/DataUnit.js +0 -301
- package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +0 -8
- package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +0 -24
- package/dist/collection/components/ez-form/subcomponents/form-metadata.js +0 -227
- package/dist/collection/components/ez-form/subcomponents/place-holder.js +0 -14
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +0 -95
- package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +0 -27
- package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +0 -41
- package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +0 -37
- package/dist/collection/components/ez-numeric-input/ez-numeric-input.css +0 -13
- package/dist/collection/components/ez-numeric-input/ez-numeric-input.js +0 -185
- package/dist/esm/CSSVarsUtils-e0128b01.js +0 -16
- package/dist/esm/RequestMetadata-c265c9d5.js +0 -527
- package/dist/esm/ez-button_16.entry.js +0 -4060
- package/dist/esm/ez-list.entry.js +0 -170
- package/dist/esm/ez-modal.entry.js +0 -61
- package/dist/esm/ez-number-input.entry.js +0 -246
- package/dist/ezui/assets/trash-can-outline.svg +0 -3
- package/dist/ezui/p-11ae4ae7.entry.js +0 -1
- package/dist/ezui/p-47fa3d6c.entry.js +0 -1
- package/dist/ezui/p-8ab6168f.entry.js +0 -1
- package/dist/ezui/p-9c1fb51c.entry.js +0 -1
- package/dist/ezui/p-9d85125b.entry.js +0 -1
- package/dist/ezui/p-9dfccb16.js +0 -1
- package/dist/ezui/p-a7b546b2.entry.js +0 -1
- package/dist/ezui/p-c833c94f.entry.js +0 -1
- package/dist/ezui/p-d1889704.js +0 -1
- package/dist/ezui/p-e0ab3746.js +0 -1
- package/dist/types/components/ez-form/store/Form.actions.d.ts +0 -111
- package/dist/types/components/ez-form/store/Form.reducer.d.ts +0 -20
- package/dist/types/components/ez-form/store/Form.selectors.d.ts +0 -14
- package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +0 -91
- package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +0 -24
- package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +0 -16
- package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +0 -3
- package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +0 -11
- package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +0 -13
- package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +0 -14
- package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +0 -19
- package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +0 -45
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Component, Event, h, Prop, Watch } from "@stencil/core";
|
|
1
|
+
import { Component, Event, h, Prop, Watch, Element } from "@stencil/core";
|
|
2
|
+
import CSSVarsUtils from "../../utils/CSSVarsUtils";
|
|
2
3
|
export class EzSearch {
|
|
3
4
|
constructor() {
|
|
4
5
|
/**
|
|
@@ -24,6 +25,9 @@ export class EzSearch {
|
|
|
24
25
|
this.value = evt.detail;
|
|
25
26
|
this.ezChange.emit(evt.detail);
|
|
26
27
|
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
|
|
30
|
+
}
|
|
27
31
|
render() {
|
|
28
32
|
return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue }));
|
|
29
33
|
}
|
|
@@ -203,6 +207,7 @@ export class EzSearch {
|
|
|
203
207
|
"references": {}
|
|
204
208
|
}
|
|
205
209
|
}]; }
|
|
210
|
+
static get elementRef() { return "_elem"; }
|
|
206
211
|
static get watchers() { return [{
|
|
207
212
|
"propName": "value",
|
|
208
213
|
"methodName": "updateValue"
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
position: relative;
|
|
14
14
|
width: 100%;
|
|
15
15
|
overflow: hidden;
|
|
16
|
-
margin-bottom: var(--space--large, 24px);
|
|
17
16
|
/* @doc Define a sombra do box da aba. */
|
|
18
17
|
/* --tabselector__box--box-shadow: var(--shadow, 0px 0px 8px 0px #000); */
|
|
19
18
|
/*@doc Contém o ícone de voltar para a aba anterior.*/
|
|
@@ -45,7 +45,7 @@ export class EzTabselector {
|
|
|
45
45
|
}
|
|
46
46
|
this.setFocusedBtn(true, this.focusedIndex);
|
|
47
47
|
this.setFocusedTab(this.focusedIndex);
|
|
48
|
-
this.ezChange.emit();
|
|
48
|
+
this.ezChange.emit(this.selectedTab);
|
|
49
49
|
}
|
|
50
50
|
else if (ev.key === "Tab" || ev.key === "Escape") {
|
|
51
51
|
this.focusedIndex = undefined;
|
|
@@ -61,7 +61,7 @@ export class EzTabselector {
|
|
|
61
61
|
this.selectedIndex = index.toString();
|
|
62
62
|
this.focusedIndex = undefined;
|
|
63
63
|
this.selectedTab = tab;
|
|
64
|
-
this.ezChange.emit();
|
|
64
|
+
this.ezChange.emit(this.selectedTab);
|
|
65
65
|
this.setFocusedBtn(false, this.selectedIndex);
|
|
66
66
|
}
|
|
67
67
|
componentWillRender() {
|
|
@@ -261,7 +261,7 @@ export class EzTabselector {
|
|
|
261
261
|
"composed": true,
|
|
262
262
|
"docs": {
|
|
263
263
|
"tags": [],
|
|
264
|
-
"text": "Evento emitido ao clicar para abrir o popup (
|
|
264
|
+
"text": "Evento emitido ao clicar para abrir o popup (ezChange)."
|
|
265
265
|
},
|
|
266
266
|
"complexType": {
|
|
267
267
|
"original": "string",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, h, Prop, Element, Event, Method, Watch, forceUpdate } from "@stencil/core";
|
|
2
|
-
import
|
|
2
|
+
import ApplicationUtils from "../../utils/ApplicationUtils";
|
|
3
3
|
import RemoteFile from "./RemoteFile";
|
|
4
4
|
export class EzUpload {
|
|
5
5
|
constructor() {
|
|
@@ -61,7 +61,7 @@ export class EzUpload {
|
|
|
61
61
|
async addFile(file) {
|
|
62
62
|
const oldFile = this._filePointers.get(file.name);
|
|
63
63
|
if (oldFile) {
|
|
64
|
-
|
|
64
|
+
ApplicationUtils.confirm("Substituir arquivo", `Já existe um arquivo chamado "${file.name}". Deseja substituí-lo?`)
|
|
65
65
|
.then(ok => {
|
|
66
66
|
if (ok) {
|
|
67
67
|
if (this.isRemoteFile(oldFile)) {
|
|
@@ -133,7 +133,7 @@ export class EzUpload {
|
|
|
133
133
|
return true;
|
|
134
134
|
}
|
|
135
135
|
showError(message) {
|
|
136
|
-
|
|
136
|
+
ApplicationUtils.alert("Enviando arquivo", message);
|
|
137
137
|
}
|
|
138
138
|
formatBytes(bytes, decimals = 1) {
|
|
139
139
|
if (bytes === 0)
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Component, h } from '@stencil/core';
|
|
2
|
+
import { DataUnit, DataType, UserInterface } from '@sankhyalabs/core';
|
|
3
|
+
export class TestDu {
|
|
4
|
+
componentWillLoad() {
|
|
5
|
+
this.dataUnit = new DataUnit("testes_com_formulario");
|
|
6
|
+
this.dataUnit.metadata = {
|
|
7
|
+
name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
|
|
8
|
+
label: "Parceiro",
|
|
9
|
+
fields: [
|
|
10
|
+
{
|
|
11
|
+
name: "CODPARC",
|
|
12
|
+
label: "Parceiro",
|
|
13
|
+
dataType: DataType.NUMBER,
|
|
14
|
+
userInterface: UserInterface.SEARCH,
|
|
15
|
+
required: true,
|
|
16
|
+
properties: {}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "RECDESP",
|
|
20
|
+
label: "Receita/Despesa",
|
|
21
|
+
dataType: DataType.TEXT,
|
|
22
|
+
userInterface: UserInterface.OPTIONSELECTOR,
|
|
23
|
+
required: true,
|
|
24
|
+
properties: { options: `{"-1": "Despesa", "1": "Receita"}` }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "P",
|
|
28
|
+
label: "pera",
|
|
29
|
+
dataType: DataType.TEXT,
|
|
30
|
+
userInterface: UserInterface.OPTIONSELECTOR,
|
|
31
|
+
properties: { options: `{"M": "Madura", "V": "Verde", "P": "Passada"}` }
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "ME",
|
|
35
|
+
label: "ME",
|
|
36
|
+
dataType: DataType.NUMBER,
|
|
37
|
+
userInterface: UserInterface.DECIMALNUMBER,
|
|
38
|
+
properties: { precision: 4, prettyPrecision: 1 }
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
this.formConfig = [
|
|
43
|
+
{ name: "CODPARC", label: "Parceiro" },
|
|
44
|
+
{ name: "NOMEPARC", label: "Mamão" },
|
|
45
|
+
{ name: "P", label: "Pêra", group: "Grupo 1" },
|
|
46
|
+
{ name: "ME", label: "Melancia", tab: "aba 1", group: "Grupo 2" },
|
|
47
|
+
{ name: "L", label: "Laranja", tab: "aba 1", group: "Grupo 1" },
|
|
48
|
+
{ name: "LI", label: "Limão", tab: "aba 1", group: "Grupo 2" }
|
|
49
|
+
];
|
|
50
|
+
this.dataUnit.records = [
|
|
51
|
+
{
|
|
52
|
+
__record__id__: "1321321321321321",
|
|
53
|
+
CODPARC: 10,
|
|
54
|
+
NOMEPARC: "Parceiro 10",
|
|
55
|
+
P: "M",
|
|
56
|
+
L: "Bagaço",
|
|
57
|
+
LI: "Azedo"
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
//return this.conteudoEstatico();
|
|
63
|
+
//return this.somenteDataUnit();
|
|
64
|
+
return this.configurado();
|
|
65
|
+
}
|
|
66
|
+
conteudoEstatico() {
|
|
67
|
+
return (h("div", null,
|
|
68
|
+
h("button", { onClick: () => this.form.validate() }, "Validate"),
|
|
69
|
+
h("ez-form", { ref: ref => this.form = ref },
|
|
70
|
+
h("div", null,
|
|
71
|
+
h("ez-text-input", { label: "Nome (Label est\u00E1tico)", "data-field-name": "NOMEPARC", "data-required": "true" }),
|
|
72
|
+
h("ez-text-input", { label: "C\u00F3d parc (Label est\u00E1tico)", "data-field-name": "CODPARC", "data-required": "true" })))));
|
|
73
|
+
}
|
|
74
|
+
somenteDataUnit() {
|
|
75
|
+
return (h("ez-form", { dataUnit: this.dataUnit }));
|
|
76
|
+
}
|
|
77
|
+
configurado() {
|
|
78
|
+
return (h("ez-form", { dataUnit: this.dataUnit, config: this.formConfig, ref: ref => this.form = ref }));
|
|
79
|
+
}
|
|
80
|
+
static get is() { return "test-du"; }
|
|
81
|
+
static get originalStyleUrls() { return {
|
|
82
|
+
"$": ["test-du.css"]
|
|
83
|
+
}; }
|
|
84
|
+
static get styleUrls() { return {
|
|
85
|
+
"$": ["test-du.css"]
|
|
86
|
+
}; }
|
|
87
|
+
}
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"record__id": "SURJTlNUUFJOPTc3MTYwMiZJRElOU1RUQVI9MCZDT0RSRUdJU1RSTz0xOutro",
|
|
22
|
-
"EDITAL": null,
|
|
23
|
-
"RESUMO": "Um resumicho",
|
|
24
|
-
"DTHAB": new Date(1988, 5, 18),
|
|
25
|
-
"COMITE": null,
|
|
26
|
-
"DEMANDA": null,
|
|
27
|
-
"DUVIDAS": null
|
|
28
|
-
}
|
|
29
|
-
]
|
|
1
|
+
function carregarMetadados() {
|
|
2
|
+
return [
|
|
3
|
+
{
|
|
4
|
+
"name": "AD_TWFSOLLICJUR",
|
|
5
|
+
"label": "Análise de Licitações",
|
|
6
|
+
"items": [],
|
|
7
|
+
"dataUnit": {
|
|
8
|
+
"name": "AD_TWFSOLLICJUR",
|
|
9
|
+
"cardinality": "N",
|
|
10
|
+
"records": [
|
|
11
|
+
{
|
|
12
|
+
"record__id": "SURJTlNUUFJOPTc3MTYwMiZJRElOU1RUQVI9MCZDT0RSRUdJU1RSTz0x",
|
|
13
|
+
"EDITAL": null,
|
|
14
|
+
"RESUMO": "algo escrito Pela NOVA lista de Tarefassdf",
|
|
15
|
+
"DTHAB": new Date(1978, 5, 18),
|
|
16
|
+
"COMITE": null,
|
|
17
|
+
"DEMANDA": null,
|
|
18
|
+
"DUVIDAS": null
|
|
30
19
|
},
|
|
31
|
-
|
|
20
|
+
{
|
|
21
|
+
"record__id": "SURJTlNUUFJOPTc3MTYwMiZJRElOU1RUQVI9MCZDT0RSRUdJU1RSTz0xOutro",
|
|
22
|
+
"EDITAL": null,
|
|
23
|
+
"RESUMO": "Um resumicho",
|
|
24
|
+
"DTHAB": new Date(1988, 5, 18),
|
|
25
|
+
"COMITE": null,
|
|
26
|
+
"DEMANDA": null,
|
|
27
|
+
"DUVIDAS": null
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"subForms": [
|
|
32
|
+
{
|
|
33
|
+
"name": "AD_TWFSOLLICJUR#Geral",
|
|
34
|
+
"label": "Geral",
|
|
35
|
+
"items": [
|
|
32
36
|
{
|
|
33
|
-
"name": "
|
|
34
|
-
"label": "
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"required": false,
|
|
77
|
-
"defaultValue": null,
|
|
78
|
-
"userInterface": "OPTIONSELECTOR",
|
|
79
|
-
"properties": [
|
|
80
|
-
{
|
|
81
|
-
"name": "options",
|
|
82
|
-
"value": "{\"SIM\":\"Sim\",\"NAO\":\"Não\"}"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
},
|
|
37
|
+
"name": "EDITAL",
|
|
38
|
+
"label": "Por gentileza, anexe o edital de licitação completo e outros anexos caso houver no formato .zip.",
|
|
39
|
+
"readOnly": false,
|
|
40
|
+
"required": false,
|
|
41
|
+
"defaultValue": null,
|
|
42
|
+
"userInterface": "IMAGE",
|
|
43
|
+
"properties": []
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "RESUMO",
|
|
47
|
+
"label": "Resumo do edital:",
|
|
48
|
+
"readOnly": false,
|
|
49
|
+
"required": false,
|
|
50
|
+
"defaultValue": null,
|
|
51
|
+
"userInterface": "LONGTEXT",
|
|
52
|
+
"properties": []
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "DTHAB",
|
|
56
|
+
"label": "Informe a data de habilitação do processo licitatório:",
|
|
57
|
+
"readOnly": false,
|
|
58
|
+
"required": false,
|
|
59
|
+
"defaultValue": null,
|
|
60
|
+
"userInterface": "DATE",
|
|
61
|
+
"properties": []
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "COMITE",
|
|
65
|
+
"label": "Necessário acionar comitê? Se sim, adicione os comentários relacionados ao comitê:",
|
|
66
|
+
"readOnly": false,
|
|
67
|
+
"required": false,
|
|
68
|
+
"defaultValue": null,
|
|
69
|
+
"userInterface": "LONGTEXT",
|
|
70
|
+
"properties": []
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "DEMANDA",
|
|
74
|
+
"label": "Duvidas se iremos conseguir atender as demandas?",
|
|
75
|
+
"readOnly": false,
|
|
76
|
+
"required": false,
|
|
77
|
+
"defaultValue": null,
|
|
78
|
+
"userInterface": "OPTIONSELECTOR",
|
|
79
|
+
"properties": [
|
|
86
80
|
{
|
|
87
|
-
"name": "
|
|
88
|
-
"
|
|
89
|
-
"readOnly": false,
|
|
90
|
-
"required": false,
|
|
91
|
-
"defaultValue": null,
|
|
92
|
-
"userInterface": "LONGTEXT",
|
|
93
|
-
"properties": []
|
|
81
|
+
"name": "options",
|
|
82
|
+
"value": "{\"SIM\":\"Sim\",\"NAO\":\"Não\"}"
|
|
94
83
|
}
|
|
95
|
-
]
|
|
96
|
-
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "DUVIDAS",
|
|
88
|
+
"label": "Informe as dúvidas que o executivo comercial deverá verificar com as áreas correspondentes:",
|
|
89
|
+
"readOnly": false,
|
|
90
|
+
"required": false,
|
|
91
|
+
"defaultValue": null,
|
|
92
|
+
"userInterface": "LONGTEXT",
|
|
93
|
+
"properties": []
|
|
97
94
|
}
|
|
98
|
-
]
|
|
95
|
+
],
|
|
96
|
+
"dataUnit": null
|
|
99
97
|
}
|
|
100
98
|
]
|
|
101
|
-
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default class
|
|
1
|
+
export default class ApplicationUtils {
|
|
2
2
|
static async showDialog(title, message, icon = null, confirm, critical = false) {
|
|
3
3
|
return new Promise(resolve => {
|
|
4
4
|
let dialog = document.querySelector("ez-dialog");
|
|
@@ -10,13 +10,13 @@ export default class Application {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
static async alert(title, message, icon = null) {
|
|
13
|
-
return
|
|
13
|
+
return ApplicationUtils.showDialog(title, message, icon, false, false);
|
|
14
14
|
}
|
|
15
15
|
static async error(title, message, icon = null) {
|
|
16
|
-
return
|
|
16
|
+
return ApplicationUtils.showDialog(title, message, icon, false, true);
|
|
17
17
|
}
|
|
18
18
|
static async confirm(title, message, icon = null, critical = false) {
|
|
19
|
-
return
|
|
19
|
+
return ApplicationUtils.showDialog(title, message, icon, true, critical);
|
|
20
20
|
}
|
|
21
21
|
static async info(message) {
|
|
22
22
|
let toast = document.querySelector("ez-toast");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export default class CSSVarsUtils {
|
|
2
|
-
static applyVarsTextInput(host,
|
|
3
|
-
if (
|
|
4
|
-
CSSVarsUtils.applyIfExists(host,
|
|
5
|
-
CSSVarsUtils.applyIfExists(host,
|
|
2
|
+
static applyVarsTextInput(host, child) {
|
|
3
|
+
if (child) {
|
|
4
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
|
|
5
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
static applyIfExists(host,
|
|
8
|
+
static applyIfExists(host, element, varName) {
|
|
9
9
|
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
10
10
|
if (prop) {
|
|
11
|
-
|
|
11
|
+
element.style.setProperty(varName, prop);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -8,6 +8,12 @@ export const EzActionChip: {
|
|
|
8
8
|
new (): EzActionChip;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
interface EzApplication extends Components.EzApplication, HTMLElement {}
|
|
12
|
+
export const EzApplication: {
|
|
13
|
+
prototype: EzApplication;
|
|
14
|
+
new (): EzApplication;
|
|
15
|
+
};
|
|
16
|
+
|
|
11
17
|
interface EzButton extends Components.EzButton, HTMLElement {}
|
|
12
18
|
export const EzButton: {
|
|
13
19
|
prototype: EzButton;
|
|
@@ -44,6 +50,12 @@ export const EzDateInput: {
|
|
|
44
50
|
new (): EzDateInput;
|
|
45
51
|
};
|
|
46
52
|
|
|
53
|
+
interface EzDateTimeInput extends Components.EzDateTimeInput, HTMLElement {}
|
|
54
|
+
export const EzDateTimeInput: {
|
|
55
|
+
prototype: EzDateTimeInput;
|
|
56
|
+
new (): EzDateTimeInput;
|
|
57
|
+
};
|
|
58
|
+
|
|
47
59
|
interface EzDialog extends Components.EzDialog, HTMLElement {}
|
|
48
60
|
export const EzDialog: {
|
|
49
61
|
prototype: EzDialog;
|
|
@@ -56,6 +68,12 @@ export const EzForm: {
|
|
|
56
68
|
new (): EzForm;
|
|
57
69
|
};
|
|
58
70
|
|
|
71
|
+
interface EzGrid extends Components.EzGrid, HTMLElement {}
|
|
72
|
+
export const EzGrid: {
|
|
73
|
+
prototype: EzGrid;
|
|
74
|
+
new (): EzGrid;
|
|
75
|
+
};
|
|
76
|
+
|
|
59
77
|
interface EzIcon extends Components.EzIcon, HTMLElement {}
|
|
60
78
|
export const EzIcon: {
|
|
61
79
|
prototype: EzIcon;
|
|
@@ -86,12 +104,6 @@ export const EzNumberInput: {
|
|
|
86
104
|
new (): EzNumberInput;
|
|
87
105
|
};
|
|
88
106
|
|
|
89
|
-
interface EzNumericInput extends Components.EzNumericInput, HTMLElement {}
|
|
90
|
-
export const EzNumericInput: {
|
|
91
|
-
prototype: EzNumericInput;
|
|
92
|
-
new (): EzNumericInput;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
107
|
interface EzPopover extends Components.EzPopover, HTMLElement {}
|
|
96
108
|
export const EzPopover: {
|
|
97
109
|
prototype: EzPopover;
|
|
@@ -146,16 +158,22 @@ export const EzUpload: {
|
|
|
146
158
|
new (): EzUpload;
|
|
147
159
|
};
|
|
148
160
|
|
|
149
|
-
interface
|
|
150
|
-
export const
|
|
151
|
-
prototype:
|
|
152
|
-
new ():
|
|
161
|
+
interface GridConfig extends Components.GridConfig, HTMLElement {}
|
|
162
|
+
export const GridConfig: {
|
|
163
|
+
prototype: GridConfig;
|
|
164
|
+
new (): GridConfig;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
interface SelectBox extends Components.SelectBox, HTMLElement {}
|
|
168
|
+
export const SelectBox: {
|
|
169
|
+
prototype: SelectBox;
|
|
170
|
+
new (): SelectBox;
|
|
153
171
|
};
|
|
154
172
|
|
|
155
|
-
interface
|
|
156
|
-
export const
|
|
157
|
-
prototype:
|
|
158
|
-
new ():
|
|
173
|
+
interface TestDu extends Components.TestDu, HTMLElement {}
|
|
174
|
+
export const TestDu: {
|
|
175
|
+
prototype: TestDu;
|
|
176
|
+
new (): TestDu;
|
|
159
177
|
};
|
|
160
178
|
|
|
161
179
|
/**
|