@sankhyalabs/ezui 1.1.113 → 1.1.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ez-combo-box.cjs.entry.js +13 -4
- package/dist/cjs/ez-date-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-filter-input.cjs.entry.js +73 -0
- package/dist/cjs/ez-grid.cjs.entry.js +74 -12
- package/dist/cjs/ez-number-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-search.cjs.entry.js +17 -13
- package/dist/cjs/ez-text-area.cjs.entry.js +28 -9
- package/dist/cjs/ez-text-input.cjs.entry.js +11 -6
- package/dist/cjs/ez-time-input.cjs.entry.js +7 -2
- package/dist/cjs/ez-toast.cjs.entry.js +3 -2
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/test-du.cjs.entry.js +2 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +31 -4
- package/dist/collection/components/ez-date-input/ez-date-input.js +24 -2
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +24 -2
- package/dist/collection/components/ez-filter-input/ez-filter-input.css +4 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +248 -0
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +14 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +60 -11
- package/dist/collection/components/ez-number-input/ez-number-input.js +23 -1
- package/dist/collection/components/ez-search/ez-search.js +35 -13
- package/dist/collection/components/ez-text-area/ez-text-area.css +71 -1
- package/dist/collection/components/ez-text-area/ez-text-area.js +67 -9
- package/dist/collection/components/ez-text-input/ez-text-input.css +78 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js +29 -6
- package/dist/collection/components/ez-time-input/ez-time-input.js +25 -2
- package/dist/collection/components/ez-toast/ez-toast.css +1 -1
- package/dist/collection/components/ez-toast/ez-toast.js +2 -1
- package/dist/collection/components/test-du/test-du.js +2 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +250 -63
- package/dist/esm/ez-combo-box.entry.js +13 -4
- package/dist/esm/ez-date-input.entry.js +6 -2
- package/dist/esm/ez-date-time-input.entry.js +6 -2
- package/dist/esm/ez-filter-input.entry.js +69 -0
- package/dist/esm/ez-grid.entry.js +74 -12
- package/dist/esm/ez-number-input.entry.js +5 -1
- package/dist/esm/ez-search.entry.js +17 -13
- package/dist/esm/ez-text-area.entry.js +28 -9
- package/dist/esm/ez-text-input.entry.js +11 -6
- package/dist/esm/ez-time-input.entry.js +7 -2
- package/dist/esm/ez-toast.entry.js +3 -2
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/test-du.entry.js +2 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-01169201.entry.js +1 -0
- package/dist/ezui/p-055f1b6a.entry.js +1 -0
- package/dist/ezui/p-2f14fe3d.entry.js +1 -0
- package/dist/ezui/{p-a038e7a5.entry.js → p-3cd17150.entry.js} +1 -1
- package/dist/ezui/p-43feac7d.entry.js +1 -0
- package/dist/ezui/p-6f39077b.entry.js +1 -0
- package/dist/ezui/p-7247379d.entry.js +1 -0
- package/dist/ezui/p-83d5f1ca.entry.js +1 -0
- package/dist/ezui/p-8c447785.entry.js +1 -0
- package/dist/ezui/p-8f2d46f8.entry.js +1 -0
- package/dist/ezui/p-d3d3e2ac.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -0
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +52 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +16 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
- package/dist/types/components/ez-search/ez-search.d.ts +24 -20
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +11 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
- package/dist/types/components/ez-toast/ez-toast.d.ts +1 -0
- package/dist/types/components.d.ts +153 -0
- package/package.json +6 -5
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-25e87823.entry.js +0 -1
- package/dist/ezui/p-3a8bf0a8.entry.js +0 -1
- package/dist/ezui/p-44d4f8d6.entry.js +0 -1
- package/dist/ezui/p-65893e25.entry.js +0 -1
- package/dist/ezui/p-9aecc079.entry.js +0 -1
- package/dist/ezui/p-9ea5b22e.entry.js +0 -1
- package/dist/ezui/p-bc2834fa.entry.js +0 -1
- package/dist/ezui/p-c27495d9.entry.js +0 -1
- package/dist/ezui/p-fb73f557.entry.js +0 -1
|
@@ -493,6 +493,10 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
493
493
|
* Permite exibir a mensagem de erro.
|
|
494
494
|
*/
|
|
495
495
|
this.canShowError = true;
|
|
496
|
+
/**
|
|
497
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
498
|
+
*/
|
|
499
|
+
this.mode = "regular";
|
|
496
500
|
}
|
|
497
501
|
internalUpdate() {
|
|
498
502
|
if (this._inputElement) {
|
|
@@ -552,7 +556,7 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
552
556
|
//FIXME: Provavelmente isso fará com que o popup abra em uma
|
|
553
557
|
//posição errada no futuro. Preferi fazer simples no começo,
|
|
554
558
|
//porque não quis onerar o text input com essa funcionalidade...
|
|
555
|
-
const top = (this.errorMessage || !this.canShowError) ? "0px" : "-
|
|
559
|
+
const top = (this.errorMessage || !this.canShowError || this.mode == "slim") ? "0px" : "-19px";
|
|
556
560
|
this._floatingID = FloatingManager.float(this._optionsList, this._listContainer, { autoClose: true, top });
|
|
557
561
|
window.requestAnimationFrame(() => {
|
|
558
562
|
this._optionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
@@ -619,8 +623,13 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
619
623
|
this.updateVisibleOptions();
|
|
620
624
|
}
|
|
621
625
|
else {
|
|
622
|
-
|
|
623
|
-
|
|
626
|
+
if (Array.isArray(source)) {
|
|
627
|
+
this._source = source;
|
|
628
|
+
this.updateVisibleOptions();
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
this.value = source;
|
|
632
|
+
}
|
|
624
633
|
}
|
|
625
634
|
}
|
|
626
635
|
loadOptions(mode, argument = "") {
|
|
@@ -724,7 +733,7 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
724
733
|
this.cancelPreselection();
|
|
725
734
|
}
|
|
726
735
|
render() {
|
|
727
|
-
return (h(Host, null, h("ez-text-input", { ref: elem => this._inputElement = elem, enabled: this.enabled, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage }, this.searchMode ?
|
|
736
|
+
return (h(Host, null, h("ez-text-input", { ref: elem => this._inputElement = elem, enabled: this.enabled, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, this.searchMode ?
|
|
728
737
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-search", onClick: () => { this.loadOptions("ADVANCED"); }, slot: "leftIcon" })
|
|
729
738
|
:
|
|
730
739
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-options", slot: "rightIcon", onClick: () => this.showOptions() })), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "options-list", ref: elem => this._optionsList = elem }, this._visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
|
|
@@ -748,6 +757,10 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
748
757
|
* Deixa o campo disponível ou não para uso.
|
|
749
758
|
*/
|
|
750
759
|
this.enabled = true;
|
|
760
|
+
/**
|
|
761
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
762
|
+
*/
|
|
763
|
+
this.mode = "regular";
|
|
751
764
|
}
|
|
752
765
|
setLabel() {
|
|
753
766
|
this._textInput.label = this.label;
|
|
@@ -788,7 +801,7 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
788
801
|
//FIXME: Provavelmente isso fará com que o popup abra em uma
|
|
789
802
|
//posição errada no futuro. Preferi fazer simples no começo,
|
|
790
803
|
//porque não quis onerar o text input com essa funcionalidade...
|
|
791
|
-
const top = this._textInput.errorMessage ? 0 : -
|
|
804
|
+
const top = this._textInput.errorMessage || this.mode == "slim" ? 0 : -19;
|
|
792
805
|
this._calendar.fitVertical(top, this._elem.clientHeight);
|
|
793
806
|
}
|
|
794
807
|
hideCalendar() {
|
|
@@ -820,7 +833,7 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
820
833
|
return (h(Host, null, h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => {
|
|
821
834
|
if (event.key === "H" || event.key === "h")
|
|
822
835
|
this.changeValue(new Date());
|
|
823
|
-
}, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem })));
|
|
836
|
+
}, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem })));
|
|
824
837
|
}
|
|
825
838
|
get _elem() { return this; }
|
|
826
839
|
static get watchers() { return {
|
|
@@ -847,6 +860,10 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
847
860
|
* Exibe ou não os segundos no input
|
|
848
861
|
*/
|
|
849
862
|
this.showSeconds = false;
|
|
863
|
+
/**
|
|
864
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
865
|
+
*/
|
|
866
|
+
this.mode = "regular";
|
|
850
867
|
}
|
|
851
868
|
setLabel() {
|
|
852
869
|
this._textInput.label = this.label;
|
|
@@ -919,7 +936,7 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
919
936
|
}
|
|
920
937
|
}
|
|
921
938
|
showCalendar() {
|
|
922
|
-
const top = this._textInput.errorMessage ? 0 : -
|
|
939
|
+
const top = this._textInput.errorMessage || this.mode == "slim" ? 0 : -19;
|
|
923
940
|
this._calendar.fitVertical(top, this._elem.clientHeight);
|
|
924
941
|
this._calendar.style.visibility = 'inherit';
|
|
925
942
|
}
|
|
@@ -958,7 +975,7 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
958
975
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
959
976
|
}
|
|
960
977
|
render() {
|
|
961
|
-
return (h(Host, null, h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { this.onChangeKeyDown(event); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, onFocus: () => this.onFocused(), onClick: () => this.onClicked() }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { onEzChange: (event) => { this.changeValue(this._calendar.value); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
|
|
978
|
+
return (h(Host, null, h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { this.onChangeKeyDown(event); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onFocus: () => this.onFocused(), onClick: () => this.onClicked() }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { onEzChange: (event) => { this.changeValue(this._calendar.value); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
|
|
962
979
|
}
|
|
963
980
|
get _elem() { return this; }
|
|
964
981
|
static get watchers() { return {
|
|
@@ -1053,6 +1070,73 @@ let EzDialog$1 = class extends HTMLElement$1 {
|
|
|
1053
1070
|
static get style() { return ezDialogCss; }
|
|
1054
1071
|
};
|
|
1055
1072
|
|
|
1073
|
+
const ezFilterInputCss = ":host{display:block;width:100%}";
|
|
1074
|
+
|
|
1075
|
+
let EzFilterInput$1 = class extends HTMLElement$1 {
|
|
1076
|
+
constructor() {
|
|
1077
|
+
super();
|
|
1078
|
+
this.__registerHost();
|
|
1079
|
+
this.__attachShadow();
|
|
1080
|
+
this.ezChange = createEvent(this, "ezChange", 7);
|
|
1081
|
+
/**
|
|
1082
|
+
* Deixa o campo disponível ou não para uso.
|
|
1083
|
+
*/
|
|
1084
|
+
this.enabled = true;
|
|
1085
|
+
/**
|
|
1086
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
1087
|
+
*/
|
|
1088
|
+
this.mode = "regular";
|
|
1089
|
+
}
|
|
1090
|
+
setLabel() {
|
|
1091
|
+
if (this._textInput) {
|
|
1092
|
+
this._textInput.label = this.label;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
setErrorMessage() {
|
|
1096
|
+
if (this._textInput) {
|
|
1097
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
applyValueToInput() {
|
|
1101
|
+
if (this._textInput) {
|
|
1102
|
+
this._textInput.value = this.value;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Realiza o foco no componente de input
|
|
1107
|
+
*/
|
|
1108
|
+
async setFocus() {
|
|
1109
|
+
this._textInput.setFocus();
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* Remove o foco no componente de input
|
|
1113
|
+
*/
|
|
1114
|
+
async setBlur() {
|
|
1115
|
+
this._textInput.setBlur();
|
|
1116
|
+
}
|
|
1117
|
+
changeValue(evt) {
|
|
1118
|
+
const newValue = evt.detail;
|
|
1119
|
+
this.errorMessage = "";
|
|
1120
|
+
if (newValue !== this.value) {
|
|
1121
|
+
this.value = newValue;
|
|
1122
|
+
this.ezChange.emit(this.value);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
componentDidLoad() {
|
|
1126
|
+
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
1127
|
+
}
|
|
1128
|
+
render() {
|
|
1129
|
+
return (h("ez-text-input", { ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.changeValue(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, loading: this.loading, mode: this.mode }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
1130
|
+
}
|
|
1131
|
+
get _elem() { return this; }
|
|
1132
|
+
static get watchers() { return {
|
|
1133
|
+
"label": ["setLabel"],
|
|
1134
|
+
"errorMessage": ["setErrorMessage"],
|
|
1135
|
+
"value": ["applyValueToInput"]
|
|
1136
|
+
}; }
|
|
1137
|
+
static get style() { return ezFilterInputCss; }
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1056
1140
|
const buildTextArea = ({ name, label, readOnly }) => {
|
|
1057
1141
|
return (h("div", { class: "col col--sd-12 padding-horizontal--small", key: name },
|
|
1058
1142
|
h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
|
|
@@ -111921,11 +112005,14 @@ class DataSource {
|
|
|
111921
112005
|
class AgGridController {
|
|
111922
112006
|
constructor(enterprise) {
|
|
111923
112007
|
this._menuItems = [];
|
|
112008
|
+
this._idAttribName = "__record__id__";
|
|
111924
112009
|
this._enterprise = enterprise;
|
|
111925
112010
|
}
|
|
111926
112011
|
getSort() {
|
|
111927
112012
|
const sortedColumns = [];
|
|
111928
|
-
this._gridOptions.
|
|
112013
|
+
this._gridOptions.columnApi.getColumnState()
|
|
112014
|
+
.sort((colA, colB) => colA.sortIndex - colB.sortIndex)
|
|
112015
|
+
.forEach(({ colId, sort }) => {
|
|
111929
112016
|
if (sort) {
|
|
111930
112017
|
const field = this._dataUnit.getField(colId);
|
|
111931
112018
|
const mode = sort === "asc" ? SortMode.ASC : SortMode.DESC;
|
|
@@ -111950,10 +112037,9 @@ class AgGridController {
|
|
|
111950
112037
|
this._gridOptions = {
|
|
111951
112038
|
localeText: gridTerms,
|
|
111952
112039
|
rowModelType: "serverSide",
|
|
111953
|
-
serverSideStoreType: "partial",
|
|
111954
112040
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
111955
112041
|
serverSideDatasource: new DataSource(this._dataUnit, this._serverURL),
|
|
111956
|
-
getRowNodeId: (params) => params.
|
|
112042
|
+
getRowNodeId: (params) => typeof params === "string" ? params : params[this._idAttribName],
|
|
111957
112043
|
getMainMenuItems: (params) => {
|
|
111958
112044
|
const column = params.column;
|
|
111959
112045
|
const items = [column.isPinned() ? "clearPinned" : "pinLeft", "separator"];
|
|
@@ -111963,14 +112049,9 @@ class AgGridController {
|
|
|
111963
112049
|
}));
|
|
111964
112050
|
return items;
|
|
111965
112051
|
},
|
|
111966
|
-
onViewportChanged: (
|
|
111967
|
-
if (this.
|
|
111968
|
-
|
|
111969
|
-
this._dataUnit.getSelection().forEach(id => {
|
|
111970
|
-
let node = evt.api.getRowNode(id);
|
|
111971
|
-
node.setSelected(true);
|
|
111972
|
-
});
|
|
111973
|
-
}
|
|
112052
|
+
onViewportChanged: () => {
|
|
112053
|
+
if (this._dataUnit) {
|
|
112054
|
+
this.selectRows(this._dataUnit.getSelection());
|
|
111974
112055
|
}
|
|
111975
112056
|
}
|
|
111976
112057
|
};
|
|
@@ -112011,6 +112092,58 @@ class AgGridController {
|
|
|
112011
112092
|
}
|
|
112012
112093
|
this._gridOptions.api.setRowData(data);
|
|
112013
112094
|
}
|
|
112095
|
+
addRows(rows) {
|
|
112096
|
+
if (this._grid === undefined) {
|
|
112097
|
+
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
112098
|
+
}
|
|
112099
|
+
this._gridOptions.api.applyServerSideTransaction({ add: rows });
|
|
112100
|
+
}
|
|
112101
|
+
selectRows(rowIds) {
|
|
112102
|
+
if (this._grid === undefined) {
|
|
112103
|
+
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
112104
|
+
}
|
|
112105
|
+
if (rowIds && rowIds.length > 0) {
|
|
112106
|
+
rowIds.forEach(rowId => {
|
|
112107
|
+
const row = this._gridOptions.api.getRowNode(rowId);
|
|
112108
|
+
if (row) {
|
|
112109
|
+
row.setSelected(true);
|
|
112110
|
+
}
|
|
112111
|
+
});
|
|
112112
|
+
}
|
|
112113
|
+
}
|
|
112114
|
+
removeRows(rowIds) {
|
|
112115
|
+
if (this._grid === undefined) {
|
|
112116
|
+
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
112117
|
+
}
|
|
112118
|
+
this._gridOptions.api.applyServerSideTransaction({ remove: rowIds });
|
|
112119
|
+
}
|
|
112120
|
+
changeValues(changes, rowIds) {
|
|
112121
|
+
if (this._grid === undefined) {
|
|
112122
|
+
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
112123
|
+
}
|
|
112124
|
+
if (changes) {
|
|
112125
|
+
let rowNodes;
|
|
112126
|
+
if (rowIds) {
|
|
112127
|
+
rowNodes = [];
|
|
112128
|
+
rowIds.forEach(id => {
|
|
112129
|
+
const rowNode = this._gridOptions.api.getRowNode(id);
|
|
112130
|
+
if (rowNode) {
|
|
112131
|
+
rowNodes.push(rowNode);
|
|
112132
|
+
}
|
|
112133
|
+
});
|
|
112134
|
+
}
|
|
112135
|
+
else {
|
|
112136
|
+
rowNodes = this._gridOptions.api.getSelectedNodes();
|
|
112137
|
+
}
|
|
112138
|
+
rowNodes.forEach(r => {
|
|
112139
|
+
const data = r.data;
|
|
112140
|
+
Object.entries(changes).forEach(([field, value]) => {
|
|
112141
|
+
data[field] = value;
|
|
112142
|
+
});
|
|
112143
|
+
r.setData(data);
|
|
112144
|
+
});
|
|
112145
|
+
}
|
|
112146
|
+
}
|
|
112014
112147
|
refresh() {
|
|
112015
112148
|
if (this._grid === undefined) {
|
|
112016
112149
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
@@ -112218,12 +112351,25 @@ class DataUnitBridge {
|
|
|
112218
112351
|
this._gridController.setColumnsDef(this.buildColumnDefs(), true);
|
|
112219
112352
|
break;
|
|
112220
112353
|
case Action.RECORDS_REMOVED:
|
|
112221
|
-
|
|
112354
|
+
const { records } = action.payload;
|
|
112355
|
+
this._gridController.removeRows(records);
|
|
112356
|
+
break;
|
|
112222
112357
|
case Action.RECORDS_ADDED:
|
|
112223
112358
|
case Action.RECORDS_COPIED:
|
|
112359
|
+
this._gridController.addRows(action.payload);
|
|
112360
|
+
break;
|
|
112361
|
+
case Action.EDITION_CANCELED:
|
|
112224
112362
|
case Action.DATA_SAVED:
|
|
112225
112363
|
this._gridController.refresh();
|
|
112226
112364
|
break;
|
|
112365
|
+
case Action.SELECTION_CHANGED:
|
|
112366
|
+
const { selection } = action.payload;
|
|
112367
|
+
this._gridController.selectRows(selection);
|
|
112368
|
+
break;
|
|
112369
|
+
case Action.DATA_CHANGED:
|
|
112370
|
+
const changes = Object.assign({}, action.payload);
|
|
112371
|
+
delete changes.records;
|
|
112372
|
+
this._gridController.changeValues(changes, action.payload.records);
|
|
112227
112373
|
}
|
|
112228
112374
|
}
|
|
112229
112375
|
buildColumnDefs() {
|
|
@@ -113060,6 +113206,10 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
113060
113206
|
* Deixa o campo disponível ou não para uso.
|
|
113061
113207
|
*/
|
|
113062
113208
|
this.enabled = true;
|
|
113209
|
+
/**
|
|
113210
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
113211
|
+
*/
|
|
113212
|
+
this.mode = "regular";
|
|
113063
113213
|
}
|
|
113064
113214
|
setLabel() {
|
|
113065
113215
|
this._textInput.label = this.label;
|
|
@@ -113116,7 +113266,7 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
113116
113266
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
113117
113267
|
}
|
|
113118
113268
|
render() {
|
|
113119
|
-
return (h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage }));
|
|
113269
|
+
return (h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode }));
|
|
113120
113270
|
}
|
|
113121
113271
|
get _elem() { return this; }
|
|
113122
113272
|
static get watchers() { return {
|
|
@@ -113294,21 +113444,25 @@ let EzSearch$1 = class extends HTMLElement$1 {
|
|
|
113294
113444
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
113295
113445
|
this.showPopup = createEvent(this, "showPopup", 7);
|
|
113296
113446
|
/**
|
|
113297
|
-
|
|
113298
|
-
|
|
113447
|
+
* Deixa o campo disponível ou não.
|
|
113448
|
+
*/
|
|
113299
113449
|
this.enabled = true;
|
|
113300
113450
|
/**
|
|
113301
|
-
|
|
113302
|
-
|
|
113451
|
+
* Ajusta a opção de mostrar o "value" ao selecionar uma opção.
|
|
113452
|
+
*/
|
|
113303
113453
|
this.showSelectedValue = true;
|
|
113304
113454
|
/**
|
|
113305
|
-
|
|
113306
|
-
|
|
113455
|
+
* Ajusta a opção de mostrar o "value" para cada opção.
|
|
113456
|
+
*/
|
|
113307
113457
|
this.showOptionValue = true;
|
|
113308
113458
|
/**
|
|
113309
|
-
|
|
113310
|
-
|
|
113459
|
+
* Remove a opção vazia da lista de opções
|
|
113460
|
+
*/
|
|
113311
113461
|
this.suppressEmptyOption = false;
|
|
113462
|
+
/**
|
|
113463
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
113464
|
+
*/
|
|
113465
|
+
this.mode = "regular";
|
|
113312
113466
|
}
|
|
113313
113467
|
updateValue() {
|
|
113314
113468
|
if (this._comboElement) {
|
|
@@ -113316,14 +113470,14 @@ let EzSearch$1 = class extends HTMLElement$1 {
|
|
|
113316
113470
|
}
|
|
113317
113471
|
}
|
|
113318
113472
|
/**
|
|
113319
|
-
|
|
113320
|
-
|
|
113473
|
+
* Realiza o foco no componente de pesquisa
|
|
113474
|
+
*/
|
|
113321
113475
|
async setFocus() {
|
|
113322
113476
|
this._comboElement.setFocus();
|
|
113323
113477
|
}
|
|
113324
113478
|
/**
|
|
113325
|
-
|
|
113326
|
-
|
|
113479
|
+
* Remove o foco no componente de pesquisa
|
|
113480
|
+
*/
|
|
113327
113481
|
async setBlur() {
|
|
113328
113482
|
this._comboElement.setBlur();
|
|
113329
113483
|
}
|
|
@@ -113336,7 +113490,7 @@ let EzSearch$1 = class extends HTMLElement$1 {
|
|
|
113336
113490
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
|
|
113337
113491
|
}
|
|
113338
113492
|
render() {
|
|
113339
|
-
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, suppressEmptyOption: this.suppressEmptyOption }));
|
|
113493
|
+
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, suppressEmptyOption: this.suppressEmptyOption, mode: this.mode }));
|
|
113340
113494
|
}
|
|
113341
113495
|
;
|
|
113342
113496
|
get _elem() { return this; }
|
|
@@ -113539,7 +113693,7 @@ let EzTabselector$1 = class extends HTMLElement$1 {
|
|
|
113539
113693
|
static get style() { return ezTabselectorCss; }
|
|
113540
113694
|
};
|
|
113541
113695
|
|
|
113542
|
-
const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--
|
|
113696
|
+
const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #000);--text-area__input--background-color:var(--background--medium, #e0e0e0);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--text-area__input--background-color);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-area__input--disabled--color:var(--text--disable, #AFB6C0);--text-area__input--error--border-color:#CC2936;--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color--error, #FF0000);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;margin-top:calc(var(--space--medium, 12px) + 4px);width:100%;font-weight:var(--text-weight--large, 600);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);padding:0;background:none}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color)}.textarea{width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color)}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-ms-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color)}";
|
|
113543
113697
|
|
|
113544
113698
|
let EzTextArea$1 = class extends HTMLElement$1 {
|
|
113545
113699
|
constructor() {
|
|
@@ -113552,19 +113706,24 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
113552
113706
|
*/
|
|
113553
113707
|
this.enabled = true;
|
|
113554
113708
|
/**
|
|
113555
|
-
*
|
|
113709
|
+
* Permite exibir a mensagem de erro.
|
|
113556
113710
|
*/
|
|
113557
|
-
this.
|
|
113711
|
+
this.canShowError = true;
|
|
113712
|
+
/**
|
|
113713
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
113714
|
+
*/
|
|
113715
|
+
this.mode = "regular";
|
|
113558
113716
|
}
|
|
113559
113717
|
showError() {
|
|
113718
|
+
var _a, _b;
|
|
113560
113719
|
const hasError = typeof this.errorMessage === 'string' && this.errorMessage !== '';
|
|
113561
113720
|
if (hasError) {
|
|
113562
113721
|
this._container.classList.add('hasError');
|
|
113563
|
-
this._messageBoxElem.classList.add('hasError');
|
|
113722
|
+
(_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add('hasError');
|
|
113564
113723
|
}
|
|
113565
113724
|
else {
|
|
113566
113725
|
this._container.classList.remove('hasError');
|
|
113567
|
-
this._messageBoxElem.classList.remove('hasError');
|
|
113726
|
+
(_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove('hasError');
|
|
113568
113727
|
}
|
|
113569
113728
|
}
|
|
113570
113729
|
updateInputValue() {
|
|
@@ -113573,8 +113732,18 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
113573
113732
|
this.adjustFloatingLabel();
|
|
113574
113733
|
this.ezChange.emit(this.value);
|
|
113575
113734
|
}
|
|
113735
|
+
adjustRowsForMode() {
|
|
113736
|
+
if (this._initialRows == undefined) {
|
|
113737
|
+
this._initialRows = this.rows > 0 ? this.rows : undefined;
|
|
113738
|
+
}
|
|
113739
|
+
this.rows = this._initialRows > 0 ? this._initialRows : this.mode != "slim" ? 4 : 2;
|
|
113740
|
+
}
|
|
113741
|
+
adjustRowsValue() {
|
|
113742
|
+
this.rows = this.rows > 0 ? this.rows : this.mode != "slim" ? 4 : 2;
|
|
113743
|
+
this._initialRows = this.rows;
|
|
113744
|
+
}
|
|
113576
113745
|
adjustFloatingLabel() {
|
|
113577
|
-
if (this.label) {
|
|
113746
|
+
if (this.label && this._labelElem) {
|
|
113578
113747
|
const hasValue = this.value && this.value.toString().length > 0;
|
|
113579
113748
|
const containsFloatedClass = this._labelElem.classList.contains("textarea__label--floated");
|
|
113580
113749
|
if (hasValue || this.isFocused()) {
|
|
@@ -113634,21 +113803,25 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
113634
113803
|
componentDidLoad() {
|
|
113635
113804
|
this.showError();
|
|
113636
113805
|
this.adjustFloatingLabel();
|
|
113806
|
+
this.adjustRowsForMode();
|
|
113637
113807
|
}
|
|
113638
113808
|
render() {
|
|
113639
|
-
return (h(Host, null, h("div", { class: "textarea", ref: (el) => this._container = el }, this.label ?
|
|
113809
|
+
return (h(Host, null, h("div", { class: "textarea", ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
|
|
113640
113810
|
h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "textarea__label" : "textarea__label textarea__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
113641
|
-
: null, h("textarea", { onFocus: () => this.handleFocus(), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, onKeyDown: event => event.stopPropagation(), rows: this.rows })),
|
|
113811
|
+
: null, h("textarea", { onFocus: () => this.handleFocus(), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: this.mode == "slim" ? "textarea--slim" : "", placeholder: this.mode == "slim" && this.label ? this.label : "", onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, onKeyDown: event => event.stopPropagation(), rows: this.rows })), this.canShowError && this.mode != "slim" &&
|
|
113812
|
+
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
113642
113813
|
}
|
|
113643
113814
|
get _hostElement() { return this; }
|
|
113644
113815
|
static get watchers() { return {
|
|
113645
113816
|
"errorMessage": ["showError"],
|
|
113646
|
-
"value": ["updateInputValue"]
|
|
113817
|
+
"value": ["updateInputValue"],
|
|
113818
|
+
"mode": ["adjustRowsForMode"],
|
|
113819
|
+
"rows": ["adjustRowsValue"]
|
|
113647
113820
|
}; }
|
|
113648
113821
|
static get style() { return ezTextAreaCss; }
|
|
113649
113822
|
};
|
|
113650
113823
|
|
|
113651
|
-
const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #000);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}input{width:100%;box-sizing:border-box;padding:var(--space--medium, 6px);font-weight:var(--text-weight--large, 600);height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input.text--right{text-align:right}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}";
|
|
113824
|
+
const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--height--slim:32px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #000);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}input{width:100%;box-sizing:border-box;padding:var(--space--medium, 6px);font-weight:var(--text-weight--large, 600);height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input--slim::-webkit-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-ms-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:disabled::-webkit-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-ms-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}";
|
|
113652
113825
|
|
|
113653
113826
|
let EzTextInput$1 = class extends HTMLElement$1 {
|
|
113654
113827
|
constructor() {
|
|
@@ -113664,16 +113837,21 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
113664
113837
|
* Permite exibir a mensagem de erro.
|
|
113665
113838
|
*/
|
|
113666
113839
|
this.canShowError = true;
|
|
113840
|
+
/**
|
|
113841
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
113842
|
+
*/
|
|
113843
|
+
this.mode = "regular";
|
|
113667
113844
|
}
|
|
113668
113845
|
showError() {
|
|
113846
|
+
var _a, _b;
|
|
113669
113847
|
const hasError = typeof this.errorMessage === "string" && this.errorMessage !== "";
|
|
113670
113848
|
if (hasError) {
|
|
113671
113849
|
this._inputElem.classList.add("hasError");
|
|
113672
|
-
this._messageBoxElem.classList.add("hasError");
|
|
113850
|
+
(_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
|
|
113673
113851
|
}
|
|
113674
113852
|
else {
|
|
113675
113853
|
this._inputElem.classList.remove("hasError");
|
|
113676
|
-
this._messageBoxElem.classList.remove("hasError");
|
|
113854
|
+
(_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
|
|
113677
113855
|
}
|
|
113678
113856
|
}
|
|
113679
113857
|
prepareMask() {
|
|
@@ -113778,7 +113956,7 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
113778
113956
|
content.style.overflow = "hidden";
|
|
113779
113957
|
content.style.top = "0px";
|
|
113780
113958
|
content.style.width = "var(--ez-text-input__icon--width)";
|
|
113781
|
-
content.style.height = "var(--ez-text-input--height)";
|
|
113959
|
+
content.style.height = this.mode != "slim" ? "var(--ez-text-input--height)" : "var(--ez-text-input--height--slim)";
|
|
113782
113960
|
if (slot.name == "leftIcon") {
|
|
113783
113961
|
content.style.left = "0px";
|
|
113784
113962
|
content.style.borderRadius = "var(--ez-text-input--border-radius) 0 0 var(--ez-text-input--border-radius)";
|
|
@@ -113829,9 +114007,9 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
113829
114007
|
}
|
|
113830
114008
|
}
|
|
113831
114009
|
render() {
|
|
113832
|
-
return (h(Host, null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label ?
|
|
114010
|
+
return (h(Host, null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
|
|
113833
114011
|
h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "input__label" : "input__label input__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
113834
|
-
: null, h("input", { onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: "text", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError &&
|
|
114012
|
+
: null, h("input", { onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: "text", class: this.mode == "slim" ? "input--slim" : "", placeholder: this.mode == "slim" && this.label ? this.label : "", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError && this.mode != "slim" &&
|
|
113835
114013
|
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
113836
114014
|
}
|
|
113837
114015
|
get _hostElement() { return this; }
|
|
@@ -113877,6 +114055,10 @@ let EzTimeInput$1 = class extends HTMLElement$1 {
|
|
|
113877
114055
|
* Define se o componente irá ou não considerar os segundos
|
|
113878
114056
|
*/
|
|
113879
114057
|
this.showSeconds = false;
|
|
114058
|
+
/**
|
|
114059
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
114060
|
+
*/
|
|
114061
|
+
this.mode = "regular";
|
|
113880
114062
|
}
|
|
113881
114063
|
prepareMask() {
|
|
113882
114064
|
if (this.showSeconds) {
|
|
@@ -113938,7 +114120,8 @@ let EzTimeInput$1 = class extends HTMLElement$1 {
|
|
|
113938
114120
|
}
|
|
113939
114121
|
}
|
|
113940
114122
|
clearField() {
|
|
113941
|
-
this.viewValue =
|
|
114123
|
+
this.viewValue = '';
|
|
114124
|
+
this.value = undefined;
|
|
113942
114125
|
}
|
|
113943
114126
|
handleChange() {
|
|
113944
114127
|
this.viewValue = this._inputElem.value;
|
|
@@ -113961,7 +114144,7 @@ let EzTimeInput$1 = class extends HTMLElement$1 {
|
|
|
113961
114144
|
}
|
|
113962
114145
|
}
|
|
113963
114146
|
render() {
|
|
113964
|
-
return (h(Host, null, h("ez-text-input", { ref: (el) => this._inputElem = el, value: this.viewValue, enabled: this.enabled, label: this.label, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, errorMessage: this.errorMessage }, h("ez-icon", { slot: "leftIcon", href: getSpritePath("timer-outline") }))));
|
|
114147
|
+
return (h(Host, null, h("ez-text-input", { ref: (el) => this._inputElem = el, value: this.viewValue, enabled: this.enabled, label: this.label, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, errorMessage: this.errorMessage, mode: this.mode }, h("ez-icon", { slot: "leftIcon", href: getSpritePath("timer-outline") }))));
|
|
113965
114148
|
}
|
|
113966
114149
|
static get assetsDirs() { return ["../assets"]; }
|
|
113967
114150
|
get _elem() { return this; }
|
|
@@ -113972,13 +114155,14 @@ let EzTimeInput$1 = class extends HTMLElement$1 {
|
|
|
113972
114155
|
static get style() { return ezTimeInputCss; }
|
|
113973
114156
|
};
|
|
113974
114157
|
|
|
113975
|
-
const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container-z-index:var(--more-visible, 2);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;bottom:100px;z-index:var(--ez-toast__container-z-index);left:100px;width:280px;box-sizing:border-box;background-color:var(--ez-toast__container--background-color);border-radius:6px;align-items:center;padding:12px;visibility:hidden}.message__container{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;
|
|
114158
|
+
const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container-z-index:var(--more-visible, 2);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;bottom:100px;z-index:var(--ez-toast__container-z-index);left:100px;width:280px;box-sizing:border-box;background-color:var(--ez-toast__container--background-color);border-radius:6px;align-items:center;padding:12px;visibility:hidden}.message__container{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;text-overflow:ellipsis}.message__conteiner--icon{padding-left:var(--ez-toast__icon--padding-left);width:80%}.btn-close{margin-top:3px;display:flex;justify-content:flex-end;align-self:flex-start;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--oppened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@-webkit-keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}";
|
|
113976
114159
|
|
|
113977
114160
|
let EzToast$1 = class extends HTMLElement$1 {
|
|
113978
114161
|
constructor() {
|
|
113979
114162
|
super();
|
|
113980
114163
|
this.__registerHost();
|
|
113981
114164
|
this.__attachShadow();
|
|
114165
|
+
this._lang = "pt"; // Controla qual idioma será usado para definir a regras de hifenização.
|
|
113982
114166
|
/**
|
|
113983
114167
|
* Controla o tempo de exibição do componente em milissegundos.
|
|
113984
114168
|
*/
|
|
@@ -114005,7 +114189,7 @@ let EzToast$1 = class extends HTMLElement$1 {
|
|
|
114005
114189
|
}
|
|
114006
114190
|
render() {
|
|
114007
114191
|
return (h("div", { ref: (el) => this.container = el, class: "toast__container" }, this.useIcon &&
|
|
114008
|
-
h("slot", { name: "icon" }), h("div", { class: this.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this.message, innerHTML: this.message }), this.canClose &&
|
|
114192
|
+
h("slot", { name: "icon" }), h("div", { lang: this._lang, class: this.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this.message, innerHTML: this.message }), this.canClose &&
|
|
114009
114193
|
h("button", { class: "btn-close", onClick: () => { this.container.classList.remove("toast__container--oppened"); this.container.style.animation = `none`; } })));
|
|
114010
114194
|
}
|
|
114011
114195
|
static get style() { return ezToastCss; }
|
|
@@ -114640,7 +114824,8 @@ let TestDu$1 = class extends HTMLElement$1 {
|
|
|
114640
114824
|
private _ezDateTimeInput// : HTMLEzDateTimeInput;
|
|
114641
114825
|
private _ezNumberInput// : HTMLEzNumberInput
|
|
114642
114826
|
private _ezSearch// : HTMLEzSearch
|
|
114643
|
-
private _ezUpload// : HTMLEzUpload
|
|
114827
|
+
private _ezUpload// : HTMLEzUpload
|
|
114828
|
+
private _ezFilterInput// : HTMLEzFilterInput*/
|
|
114644
114829
|
componentWillLoad() {
|
|
114645
114830
|
this.dataUnit = new DataUnit("testes_com_formulario");
|
|
114646
114831
|
this.dataUnit.metadata = {
|
|
@@ -114702,24 +114887,25 @@ const EzButton = /*@__PURE__*/proxyCustomElement(EzButton$1, [1,"ez-button",{"la
|
|
|
114702
114887
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]}]);
|
|
114703
114888
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513]}]);
|
|
114704
114889
|
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"]}]);
|
|
114705
|
-
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"_preSelection":[32],"_visibleOptions":[32]}]);
|
|
114706
|
-
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"]}]);
|
|
114707
|
-
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"]}]);
|
|
114890
|
+
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"_preSelection":[32],"_visibleOptions":[32]}]);
|
|
114891
|
+
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513]}]);
|
|
114892
|
+
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]}]);
|
|
114708
114893
|
const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"]}]);
|
|
114894
|
+
const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513]}]);
|
|
114709
114895
|
const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [0,"ez-form",{"dataUnit":[1040],"config":[16]}]);
|
|
114710
114896
|
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32]}]);
|
|
114711
114897
|
const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
|
|
114712
114898
|
const EzLabelChip = /*@__PURE__*/proxyCustomElement(EzLabelChip$1, [1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540]}]);
|
|
114713
114899
|
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
114714
114900
|
const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]);
|
|
114715
|
-
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"]}]);
|
|
114901
|
+
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513]}]);
|
|
114716
114902
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540]}]);
|
|
114717
114903
|
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]);
|
|
114718
|
-
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"]}]);
|
|
114904
|
+
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513]}]);
|
|
114719
114905
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]);
|
|
114720
|
-
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538]}]);
|
|
114721
|
-
const EzTextInput = /*@__PURE__*/proxyCustomElement(EzTextInput$1, [1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1]}]);
|
|
114722
|
-
const EzTimeInput = /*@__PURE__*/proxyCustomElement(EzTimeInput$1, [1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}]);
|
|
114906
|
+
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513]}]);
|
|
114907
|
+
const EzTextInput = /*@__PURE__*/proxyCustomElement(EzTextInput$1, [1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513]}]);
|
|
114908
|
+
const EzTimeInput = /*@__PURE__*/proxyCustomElement(EzTimeInput$1, [1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513]}]);
|
|
114723
114909
|
const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"]}]);
|
|
114724
114910
|
const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040]}]);
|
|
114725
114911
|
const GridConfig = /*@__PURE__*/proxyCustomElement(GridConfig$1, [2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]);
|
|
@@ -114738,6 +114924,7 @@ const defineCustomElements = (opts) => {
|
|
|
114738
114924
|
EzDateInput,
|
|
114739
114925
|
EzDateTimeInput,
|
|
114740
114926
|
EzDialog,
|
|
114927
|
+
EzFilterInput,
|
|
114741
114928
|
EzForm,
|
|
114742
114929
|
EzGrid,
|
|
114743
114930
|
EzIcon,
|
|
@@ -114765,4 +114952,4 @@ const defineCustomElements = (opts) => {
|
|
|
114765
114952
|
}
|
|
114766
114953
|
};
|
|
114767
114954
|
|
|
114768
|
-
export { EzActionChip, EzApplication, EzButton, EzCalendar, EzCheck, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzForm, EzGrid, EzIcon, EzLabelChip, EzList, EzModal, EzNumberInput, EzPopover, EzPopup, EzSearch, EzTabselector, EzTextArea, EzTextInput, EzTimeInput, EzToast, EzUpload, GridConfig, SelectBox, TestDu, defineCustomElements };
|
|
114955
|
+
export { EzActionChip, EzApplication, EzButton, EzCalendar, EzCheck, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzFilterInput, EzForm, EzGrid, EzIcon, EzLabelChip, EzList, EzModal, EzNumberInput, EzPopover, EzPopup, EzSearch, EzTabselector, EzTextArea, EzTextInput, EzTimeInput, EzToast, EzUpload, GridConfig, SelectBox, TestDu, defineCustomElements };
|