@sankhyalabs/ezui 1.1.103 → 1.1.106
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-calendar_16.cjs.entry.js +23 -15
- package/dist/cjs/ez-grid.cjs.entry.js +19 -1
- package/dist/cjs/ez-toast.cjs.entry.js +8 -4
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-check/ez-check.js +3 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +3 -3
- package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-form/structure/FormSheet.js +2 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +20 -2
- package/dist/collection/components/ez-text-area/ez-text-area.css +1 -1
- package/dist/collection/components/ez-text-area/ez-text-area.js +1 -1
- package/dist/collection/components/ez-text-input/ez-text-input.css +1 -2
- package/dist/collection/components/ez-toast/ez-toast.css +8 -2
- package/dist/collection/components/ez-toast/ez-toast.js +27 -8
- package/dist/collection/utils/ApplicationUtils.js +6 -1
- package/dist/custom-elements/index.js +51 -21
- package/dist/esm/ez-calendar_16.entry.js +23 -15
- package/dist/esm/ez-grid.entry.js +20 -2
- package/dist/esm/ez-toast.entry.js +8 -4
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-42ae1620.entry.js +1 -0
- package/dist/ezui/{p-da0f5393.entry.js → p-48e18427.entry.js} +26 -26
- package/dist/ezui/p-9ea5b22e.entry.js +1 -0
- package/dist/types/components/ez-toast/ez-toast.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/ApplicationUtils.d.ts +5 -1
- package/package.json +3 -3
- package/dist/ezui/p-2259c926.entry.js +0 -1
- package/dist/ezui/p-b217f40b.entry.js +0 -1
|
@@ -329,6 +329,9 @@ let EzCheck = class {
|
|
|
329
329
|
this.adjustMode();
|
|
330
330
|
}
|
|
331
331
|
changeValue() {
|
|
332
|
+
if (!this.enabled) {
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
332
335
|
this.value = !this.value;
|
|
333
336
|
this.ezChange.emit(this.value);
|
|
334
337
|
}
|
|
@@ -903,12 +906,12 @@ let EzDateTimeInput = class {
|
|
|
903
906
|
EzDateTimeInput.style = ezDateTimeInputCss;
|
|
904
907
|
|
|
905
908
|
const buildTextArea = ({ name, label, readOnly }) => {
|
|
906
|
-
return (index.h("div", { class: "col col--sd-12 padding--small", key: name },
|
|
909
|
+
return (index.h("div", { class: "col col--sd-12 padding-horizontal--small", key: name },
|
|
907
910
|
index.h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
|
|
908
911
|
};
|
|
909
912
|
|
|
910
913
|
const buildTextInput = ({ name, label }) => {
|
|
911
|
-
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
914
|
+
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
912
915
|
index.h("ez-text-input", { label: label, "data-field-name": name, key: name })));
|
|
913
916
|
};
|
|
914
917
|
|
|
@@ -919,7 +922,7 @@ const buildCheckBox = (fieldConfig) => {
|
|
|
919
922
|
return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
|
|
920
923
|
};
|
|
921
924
|
function buildField$1(fieldName, fieldLabel, readOnly, switchMode = false) {
|
|
922
|
-
return (index.h("div", { class: "col col--sd-12 col--tb-3
|
|
925
|
+
return (index.h("div", { class: "col col--sd-12 col--tb-3 align--middle padding-horizontal--small padding-bottom--large" },
|
|
923
926
|
index.h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
|
|
924
927
|
}
|
|
925
928
|
|
|
@@ -933,30 +936,30 @@ const buildComboBox = ({ name, label, readOnly }, properties) => {
|
|
|
933
936
|
else {
|
|
934
937
|
options = prop;
|
|
935
938
|
}
|
|
936
|
-
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
939
|
+
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
937
940
|
index.h("ez-combo-box", { enabled: !readOnly, label: label, "data-field-name": name, key: name, options: options })));
|
|
938
941
|
};
|
|
939
942
|
|
|
940
943
|
const buildSearch = ({ name, label, readOnly }) => {
|
|
941
|
-
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
944
|
+
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
942
945
|
index.h("ez-search", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
943
946
|
};
|
|
944
947
|
|
|
945
948
|
const buildFile = ({ name, label, readOnly }) => {
|
|
946
|
-
return (index.h("div", { class: "col col--sd-12 padding--small" },
|
|
949
|
+
return (index.h("div", { class: "col col--sd-12 padding-horizontal--small" },
|
|
947
950
|
index.h("ez-upload", { enabled: !readOnly, label: label, urlUpload: "", requestHeaders: "", maxFiles: 10, "data-field-name": name, key: name })));
|
|
948
951
|
};
|
|
949
952
|
|
|
950
953
|
const buildDate = ({ name, label, readOnly }) => {
|
|
951
|
-
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
954
|
+
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
952
955
|
index.h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
953
956
|
};
|
|
954
957
|
const buildTime = ({ name, label }) => {
|
|
955
|
-
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
958
|
+
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
956
959
|
index.h("ez-time-input", { label: label, "data-field-name": name, key: name })));
|
|
957
960
|
};
|
|
958
961
|
const buildTimeDate = ({ name, label }) => {
|
|
959
|
-
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
962
|
+
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
960
963
|
index.h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
|
|
961
964
|
};
|
|
962
965
|
|
|
@@ -969,7 +972,7 @@ const buildInteger = ({ name, label, readOnly }) => {
|
|
|
969
972
|
return buildNumeric(name, label, readOnly, 0, 0);
|
|
970
973
|
};
|
|
971
974
|
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
|
|
972
|
-
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
975
|
+
return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
973
976
|
index.h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
|
|
974
977
|
}
|
|
975
978
|
|
|
@@ -1026,7 +1029,8 @@ const FormItem = ({ source }) => {
|
|
|
1026
1029
|
};
|
|
1027
1030
|
|
|
1028
1031
|
const FormSheet = ({ store, source }) => {
|
|
1029
|
-
return (index.h("div", { class: "box__container" },
|
|
1032
|
+
return (index.h("div", { class: "box__container" },
|
|
1033
|
+
index.h("div", { class: "row padding-vertical--small" }, source.items.map(item => index.h(FormItem, { store: store, source: item })))));
|
|
1030
1034
|
};
|
|
1031
1035
|
|
|
1032
1036
|
class FormMetadata {
|
|
@@ -1575,17 +1579,21 @@ class ApplicationUtils {
|
|
|
1575
1579
|
static async confirm(title, message, icon = null, critical = false) {
|
|
1576
1580
|
return ApplicationUtils.showDialog(title, message, icon, true, critical);
|
|
1577
1581
|
}
|
|
1578
|
-
static async info(message) {
|
|
1582
|
+
static async info(message, options = ApplicationUtils.defaultMessageOptions) {
|
|
1579
1583
|
let toast = document.querySelector("ez-toast");
|
|
1580
1584
|
if (!toast) {
|
|
1581
1585
|
toast = document.createElement("ez-toast");
|
|
1582
1586
|
window.document.body.appendChild(toast);
|
|
1583
1587
|
}
|
|
1588
|
+
toast.canClose = options.canClose;
|
|
1584
1589
|
toast.message = message;
|
|
1585
1590
|
toast.fadeTime = 4000;
|
|
1586
1591
|
toast.show();
|
|
1587
1592
|
}
|
|
1588
1593
|
}
|
|
1594
|
+
ApplicationUtils.defaultMessageOptions = {
|
|
1595
|
+
canClose: true
|
|
1596
|
+
};
|
|
1589
1597
|
|
|
1590
1598
|
const ezFormCss = "ez-form{display:flex;flex-direction:column;width:100%}";
|
|
1591
1599
|
|
|
@@ -2060,7 +2068,7 @@ let EzTabselector = class {
|
|
|
2060
2068
|
};
|
|
2061
2069
|
EzTabselector.style = ezTabselectorCss;
|
|
2062
2070
|
|
|
2063
|
-
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--large, 500);--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:
|
|
2071
|
+
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--large, 500);--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)}";
|
|
2064
2072
|
|
|
2065
2073
|
let EzTextArea = class {
|
|
2066
2074
|
constructor(hostRef) {
|
|
@@ -2087,7 +2095,7 @@ let EzTextArea = class {
|
|
|
2087
2095
|
}
|
|
2088
2096
|
}
|
|
2089
2097
|
updateInputValue() {
|
|
2090
|
-
this._inputElem.value = this.value;
|
|
2098
|
+
this._inputElem.value = this.value === undefined ? "" : this.value;
|
|
2091
2099
|
this.handleChange();
|
|
2092
2100
|
this.adjustFloatingLabel();
|
|
2093
2101
|
this.ezChange.emit(this.value);
|
|
@@ -2167,7 +2175,7 @@ let EzTextArea = class {
|
|
|
2167
2175
|
};
|
|
2168
2176
|
EzTextArea.style = ezTextAreaCss;
|
|
2169
2177
|
|
|
2170
|
-
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{
|
|
2178
|
+
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}";
|
|
2171
2179
|
|
|
2172
2180
|
let EzTextInput = class {
|
|
2173
2181
|
constructor(hostRef) {
|
|
@@ -110092,6 +110092,7 @@ class AgGridController {
|
|
|
110092
110092
|
serverSideStoreType: "partial",
|
|
110093
110093
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
110094
110094
|
serverSideDatasource: new DataSource(this._dataUnit, this._serverURL),
|
|
110095
|
+
getRowNodeId: (params) => params.__record__id__,
|
|
110095
110096
|
getMainMenuItems: (params) => {
|
|
110096
110097
|
const column = params.column;
|
|
110097
110098
|
const items = [column.isPinned() ? "clearPinned" : "pinLeft", "separator"];
|
|
@@ -110100,6 +110101,16 @@ class AgGridController {
|
|
|
110100
110101
|
action: () => m.action(column.getColId(), m.name)
|
|
110101
110102
|
}));
|
|
110102
110103
|
return items;
|
|
110104
|
+
},
|
|
110105
|
+
onViewportChanged: (evt) => {
|
|
110106
|
+
if (this._gridOptions && this._gridOptions.api && evt && evt.api) {
|
|
110107
|
+
if (this._dataUnit.getSelection()) {
|
|
110108
|
+
this._dataUnit.getSelection().forEach(id => {
|
|
110109
|
+
let node = evt.api.getRowNode(id);
|
|
110110
|
+
node.setSelected(true);
|
|
110111
|
+
});
|
|
110112
|
+
}
|
|
110113
|
+
}
|
|
110103
110114
|
}
|
|
110104
110115
|
};
|
|
110105
110116
|
this.setOptionsEvents(this._gridOptions);
|
|
@@ -110270,7 +110281,14 @@ class AgGridController {
|
|
|
110270
110281
|
}
|
|
110271
110282
|
}
|
|
110272
110283
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
110273
|
-
|
|
110284
|
+
if (params.value !== undefined) {
|
|
110285
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
110286
|
+
}
|
|
110287
|
+
}
|
|
110288
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UnitMetadata.UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UnitMetadata.UserInterface.DATETIME) {
|
|
110289
|
+
if (params.value !== undefined) {
|
|
110290
|
+
return params.value.toLocaleDateString();
|
|
110291
|
+
}
|
|
110274
110292
|
}
|
|
110275
110293
|
}
|
|
110276
110294
|
buildColState(source) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-88286449.js');
|
|
6
6
|
|
|
7
|
-
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:
|
|
7
|
+
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;word-break:break-all;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}}";
|
|
8
8
|
|
|
9
9
|
let EzToast = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -17,6 +17,10 @@ let EzToast = class {
|
|
|
17
17
|
* Adiciona ícone de check no componente.
|
|
18
18
|
*/
|
|
19
19
|
this.useIcon = false;
|
|
20
|
+
/**
|
|
21
|
+
* Controla o uso do icone de fechar o toast.
|
|
22
|
+
*/
|
|
23
|
+
this.canClose = true;
|
|
20
24
|
}
|
|
21
25
|
/**
|
|
22
26
|
* Exibe o componente na tela.
|
|
@@ -30,9 +34,9 @@ let EzToast = class {
|
|
|
30
34
|
}, this.fadeTime + 400);
|
|
31
35
|
}
|
|
32
36
|
render() {
|
|
33
|
-
return (index.h("div", { ref: (el) => this.container = el, class: "toast__container" }, this.useIcon
|
|
34
|
-
index.h("slot", { name: "icon" })
|
|
35
|
-
|
|
37
|
+
return (index.h("div", { ref: (el) => this.container = el, class: "toast__container" }, this.useIcon &&
|
|
38
|
+
index.h("slot", { name: "icon" }), index.h("div", { class: this.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this.message, innerHTML: this.message }), this.canClose &&
|
|
39
|
+
index.h("button", { class: "btn-close", onClick: () => { this.container.classList.remove("toast__container--oppened"); this.container.style.animation = `none`; } })));
|
|
36
40
|
}
|
|
37
41
|
};
|
|
38
42
|
EzToast.style = ezToastCss;
|
package/dist/cjs/ezui.cjs.js
CHANGED
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ez-grid.cjs",[[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],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"show":[64]}]]],["ez-calendar_16.cjs",[[0,"test-du"],[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}],[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[64]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}],[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"],"setFocus":[64],"setBlur":[64]}],[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}],[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"setFocus":[64],"setBlur":[64]}],[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[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],"addFiles":[64],"setFocus":[64],"setBlur":[64]}],[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[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],"setFocus":[64],"setBlur":[64]}],[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}],[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],"setFocus":[64],"setBlur":[64]}]]],["ez-button_3.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"setSelection":[64],"getSelection":[64],"getList":[64]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-modal_2.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}],[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["ez-grid.cjs",[[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],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-calendar_16.cjs",[[0,"test-du"],[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}],[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[64]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}],[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"],"setFocus":[64],"setBlur":[64]}],[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}],[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"setFocus":[64],"setBlur":[64]}],[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[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],"addFiles":[64],"setFocus":[64],"setBlur":[64]}],[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[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],"setFocus":[64],"setBlur":[64]}],[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}],[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],"setFocus":[64],"setBlur":[64]}]]],["ez-button_3.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"setSelection":[64],"getSelection":[64],"getList":[64]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-modal_2.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}],[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]]], options);
|
|
19
19
|
});
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ez-grid.cjs",[[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],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"show":[64]}]]],["ez-calendar_16.cjs",[[0,"test-du"],[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}],[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[64]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}],[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"],"setFocus":[64],"setBlur":[64]}],[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}],[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"setFocus":[64],"setBlur":[64]}],[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[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],"addFiles":[64],"setFocus":[64],"setBlur":[64]}],[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[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],"setFocus":[64],"setBlur":[64]}],[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}],[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],"setFocus":[64],"setBlur":[64]}]]],["ez-button_3.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"setSelection":[64],"getSelection":[64],"getList":[64]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-modal_2.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}],[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["ez-grid.cjs",[[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],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-calendar_16.cjs",[[0,"test-du"],[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}],[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[64]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}],[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"],"setFocus":[64],"setBlur":[64]}],[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}],[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"setFocus":[64],"setBlur":[64]}],[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[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],"addFiles":[64],"setFocus":[64],"setBlur":[64]}],[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[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],"setFocus":[64],"setBlur":[64]}],[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}],[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],"setFocus":[64],"setBlur":[64]}]]],["ez-button_3.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"setSelection":[64],"getSelection":[64],"getList":[64]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-modal_2.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}],[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -6,6 +6,6 @@ export const buildCheckBox = (fieldConfig) => {
|
|
|
6
6
|
return buildField(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
|
|
7
7
|
};
|
|
8
8
|
function buildField(fieldName, fieldLabel, readOnly, switchMode = false) {
|
|
9
|
-
return (h("div", { class: "col col--sd-12 col--tb-3
|
|
9
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 align--middle padding-horizontal--small padding-bottom--large" },
|
|
10
10
|
h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
|
|
11
11
|
}
|
|
@@ -9,6 +9,6 @@ export const buildComboBox = ({ name, label, readOnly }, properties) => {
|
|
|
9
9
|
else {
|
|
10
10
|
options = prop;
|
|
11
11
|
}
|
|
12
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
12
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
13
13
|
h("ez-combo-box", { enabled: !readOnly, label: label, "data-field-name": name, key: name, options: options })));
|
|
14
14
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export const buildDate = ({ name, label, readOnly }) => {
|
|
3
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
3
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
4
4
|
h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
5
5
|
};
|
|
6
6
|
export const buildTime = ({ name, label }) => {
|
|
7
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
7
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
8
8
|
h("ez-time-input", { label: label, "data-field-name": name, key: name })));
|
|
9
9
|
};
|
|
10
10
|
export const buildTimeDate = ({ name, label }) => {
|
|
11
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
11
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
12
12
|
h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export const buildFile = ({ name, label, readOnly }) => {
|
|
3
|
-
return (h("div", { class: "col col--sd-12 padding--small" },
|
|
3
|
+
return (h("div", { class: "col col--sd-12 padding-horizontal--small" },
|
|
4
4
|
h("ez-upload", { enabled: !readOnly, label: label, urlUpload: "", requestHeaders: "", maxFiles: 10, "data-field-name": name, key: name })));
|
|
5
5
|
};
|
|
@@ -8,6 +8,6 @@ export const buildInteger = ({ name, label, readOnly }) => {
|
|
|
8
8
|
return buildNumeric(name, label, readOnly, 0, 0);
|
|
9
9
|
};
|
|
10
10
|
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
|
|
11
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
11
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
12
12
|
h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export const buildSearch = ({ name, label, readOnly }) => {
|
|
3
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
3
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
4
4
|
h("ez-search", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export const buildTextArea = ({ name, label, readOnly }) => {
|
|
3
|
-
return (h("div", { class: "col col--sd-12 padding--small", key: name },
|
|
3
|
+
return (h("div", { class: "col col--sd-12 padding-horizontal--small", key: name },
|
|
4
4
|
h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export const buildTextInput = ({ name, label }) => {
|
|
3
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
3
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
4
4
|
h("ez-text-input", { label: label, "data-field-name": name, key: name })));
|
|
5
5
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { FormItem } from "./FormItem";
|
|
3
3
|
export const FormSheet = ({ store, source }) => {
|
|
4
|
-
return (h("div", { class: "box__container" },
|
|
4
|
+
return (h("div", { class: "box__container" },
|
|
5
|
+
h("div", { class: "row padding-vertical--small" }, source.items.map(item => h(FormItem, { store: store, source: item })))));
|
|
5
6
|
};
|
|
@@ -4,7 +4,7 @@ import gridTerms from "./i18n/pt-BR.js";
|
|
|
4
4
|
import HeaderColumnTemplate from "./template/HeaderColumnTemplate.js";
|
|
5
5
|
import DataSource from "./DataSource";
|
|
6
6
|
import { DataType } from "@sankhyalabs/core";
|
|
7
|
-
import { SortMode } from "@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";
|
|
7
|
+
import { SortMode, UserInterface } from "@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";
|
|
8
8
|
export default class AgGridController {
|
|
9
9
|
constructor(enterprise) {
|
|
10
10
|
this._menuItems = [];
|
|
@@ -40,6 +40,7 @@ export default class AgGridController {
|
|
|
40
40
|
serverSideStoreType: "partial",
|
|
41
41
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
42
42
|
serverSideDatasource: new DataSource(this._dataUnit, this._serverURL),
|
|
43
|
+
getRowNodeId: (params) => params.__record__id__,
|
|
43
44
|
getMainMenuItems: (params) => {
|
|
44
45
|
const column = params.column;
|
|
45
46
|
const items = [column.isPinned() ? "clearPinned" : "pinLeft", "separator"];
|
|
@@ -48,6 +49,16 @@ export default class AgGridController {
|
|
|
48
49
|
action: () => m.action(column.getColId(), m.name)
|
|
49
50
|
}));
|
|
50
51
|
return items;
|
|
52
|
+
},
|
|
53
|
+
onViewportChanged: (evt) => {
|
|
54
|
+
if (this._gridOptions && this._gridOptions.api && evt && evt.api) {
|
|
55
|
+
if (this._dataUnit.getSelection()) {
|
|
56
|
+
this._dataUnit.getSelection().forEach(id => {
|
|
57
|
+
let node = evt.api.getRowNode(id);
|
|
58
|
+
node.setSelected(true);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
51
62
|
}
|
|
52
63
|
};
|
|
53
64
|
this.setOptionsEvents(this._gridOptions);
|
|
@@ -218,7 +229,14 @@ export default class AgGridController {
|
|
|
218
229
|
}
|
|
219
230
|
}
|
|
220
231
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
221
|
-
|
|
232
|
+
if (params.value !== undefined) {
|
|
233
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATETIME) {
|
|
237
|
+
if (params.value !== undefined) {
|
|
238
|
+
return params.value.toLocaleDateString();
|
|
239
|
+
}
|
|
222
240
|
}
|
|
223
241
|
}
|
|
224
242
|
buildColState(source) {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
bottom: 100px;
|
|
22
22
|
z-index: var(--ez-toast__container-z-index);
|
|
23
23
|
left: 100px;
|
|
24
|
-
width:
|
|
24
|
+
width: 280px;
|
|
25
25
|
box-sizing: border-box;
|
|
26
26
|
background-color: var(--ez-toast__container--background-color);
|
|
27
27
|
border-radius: 6px;
|
|
@@ -37,7 +37,11 @@
|
|
|
37
37
|
font-size: 14px;
|
|
38
38
|
width: 90%;
|
|
39
39
|
overflow: hidden;
|
|
40
|
-
|
|
40
|
+
word-break: break-all;
|
|
41
|
+
height: auto;
|
|
42
|
+
-webkit-box-orient: vertical;
|
|
43
|
+
-webkit-line-clamp: 4;
|
|
44
|
+
display: -webkit-box;
|
|
41
45
|
text-overflow: ellipsis;
|
|
42
46
|
}
|
|
43
47
|
|
|
@@ -47,8 +51,10 @@
|
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
.btn-close {
|
|
54
|
+
margin-top: 3px;
|
|
50
55
|
display: flex;
|
|
51
56
|
justify-content: flex-end;
|
|
57
|
+
align-self: flex-start;
|
|
52
58
|
padding: 0;
|
|
53
59
|
outline: none;
|
|
54
60
|
width: 10%;
|
|
@@ -9,6 +9,10 @@ export class EzToast {
|
|
|
9
9
|
* Adiciona ícone de check no componente.
|
|
10
10
|
*/
|
|
11
11
|
this.useIcon = false;
|
|
12
|
+
/**
|
|
13
|
+
* Controla o uso do icone de fechar o toast.
|
|
14
|
+
*/
|
|
15
|
+
this.canClose = true;
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
14
18
|
* Exibe o componente na tela.
|
|
@@ -23,14 +27,11 @@ export class EzToast {
|
|
|
23
27
|
}
|
|
24
28
|
render() {
|
|
25
29
|
return (h("div", { ref: (el) => this.container = el, class: "toast__container" },
|
|
26
|
-
this.useIcon
|
|
27
|
-
h("slot", { name: "icon" })
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
" ",
|
|
31
|
-
this.message,
|
|
32
|
-
" "),
|
|
33
|
-
h("button", { class: "btn-close", onClick: () => { this.container.classList.remove("toast__container--oppened"); this.container.style.animation = `none`; } })));
|
|
30
|
+
this.useIcon &&
|
|
31
|
+
h("slot", { name: "icon" }),
|
|
32
|
+
h("div", { class: this.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this.message, innerHTML: this.message }),
|
|
33
|
+
this.canClose &&
|
|
34
|
+
h("button", { class: "btn-close", onClick: () => { this.container.classList.remove("toast__container--oppened"); this.container.style.animation = `none`; } })));
|
|
34
35
|
}
|
|
35
36
|
static get is() { return "ez-toast"; }
|
|
36
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,6 +94,24 @@ export class EzToast {
|
|
|
93
94
|
"attribute": "use-icon",
|
|
94
95
|
"reflect": false,
|
|
95
96
|
"defaultValue": "false"
|
|
97
|
+
},
|
|
98
|
+
"canClose": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"mutable": true,
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "boolean",
|
|
103
|
+
"resolved": "boolean",
|
|
104
|
+
"references": {}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": false,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": "Controla o uso do icone de fechar o toast."
|
|
111
|
+
},
|
|
112
|
+
"attribute": "can-close",
|
|
113
|
+
"reflect": false,
|
|
114
|
+
"defaultValue": "true"
|
|
96
115
|
}
|
|
97
116
|
}; }
|
|
98
117
|
static get methods() { return {
|