@sankhyalabs/ezui 1.1.100 → 1.1.101
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-button_3.cjs.entry.js +16 -4
- package/dist/cjs/ez-calendar_16.cjs.entry.js +81 -2
- package/dist/cjs/ez-grid.cjs.entry.js +13 -0
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-button/ez-button.js +51 -5
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +47 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +47 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +47 -1
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +7 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +6 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +47 -1
- package/dist/collection/components/ez-search/ez-search.js +47 -1
- package/dist/collection/components/ez-upload/ez-upload.css +5 -0
- package/dist/collection/components/ez-upload/ez-upload.js +45 -1
- package/dist/collection/components/test-du/test-du.js +7 -0
- package/dist/custom-elements/index.js +110 -6
- package/dist/esm/ez-button_3.entry.js +16 -4
- package/dist/esm/ez-calendar_16.entry.js +81 -2
- package/dist/esm/ez-grid.entry.js +13 -0
- 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-6b257393.entry.js +1 -0
- package/dist/ezui/p-b9982bf0.entry.js +1 -0
- package/dist/ezui/{p-18de871c.entry.js → p-cae8b8a2.entry.js} +1 -1
- package/dist/types/components/ez-button/ez-button.d.ts +9 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +8 -0
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +8 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +8 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
- package/dist/types/components/ez-search/ez-search.d.ts +8 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +8 -0
- package/dist/types/components.d.ts +56 -0
- package/package.json +1 -1
- package/dist/ezui/p-3ea01b00.entry.js +0 -1
- package/dist/ezui/p-d7c80eac.entry.js +0 -1
|
@@ -22,6 +22,18 @@ let EzButton = class {
|
|
|
22
22
|
*/
|
|
23
23
|
this.size = "medium";
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Realiza o foco no botão
|
|
27
|
+
*/
|
|
28
|
+
async setFocus() {
|
|
29
|
+
this._button.focus();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Remove o foco no botão
|
|
33
|
+
*/
|
|
34
|
+
async setBlur() {
|
|
35
|
+
this._button.blur();
|
|
36
|
+
}
|
|
25
37
|
getIconSize() {
|
|
26
38
|
return this.size;
|
|
27
39
|
}
|
|
@@ -43,22 +55,22 @@ let EzButton = class {
|
|
|
43
55
|
}
|
|
44
56
|
render() {
|
|
45
57
|
if (this.mode == "icon") {
|
|
46
|
-
return (index.h("button", { class: "icon " + this.size, type: "button", disabled: !this.enabled }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize(), onClick: evt => {
|
|
58
|
+
return (index.h("button", { class: "icon " + this.size, type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize(), onClick: evt => {
|
|
47
59
|
if (!this.enabled)
|
|
48
60
|
evt.stopPropagation();
|
|
49
61
|
} })));
|
|
50
62
|
}
|
|
51
63
|
else if (this.mode == "label-icon") {
|
|
52
|
-
return (index.h("div", { class: "label-icon" }, index.h("button", { class: "icon", type: "button", disabled: !this.enabled }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: "large", onClick: evt => {
|
|
64
|
+
return (index.h("div", { class: "label-icon" }, index.h("button", { class: "icon", type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: "large", onClick: evt => {
|
|
53
65
|
if (!this.enabled)
|
|
54
66
|
evt.stopPropagation();
|
|
55
67
|
} })), index.h("label", { title: this.label }, this.label)));
|
|
56
68
|
}
|
|
57
69
|
else if (this.mode == "link") {
|
|
58
|
-
return (index.h("a", { class: this.size }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
70
|
+
return (index.h("a", { class: this.size, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
59
71
|
}
|
|
60
72
|
else {
|
|
61
|
-
return (index.h("button", { type: "button", disabled: !this.enabled }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
73
|
+
return (index.h("button", { type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
62
74
|
}
|
|
63
75
|
}
|
|
64
76
|
};
|
|
@@ -440,6 +440,18 @@ let EzComboBox = class {
|
|
|
440
440
|
this._preSelection = undefined;
|
|
441
441
|
this.updateVisibleOptions();
|
|
442
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* Realiza o foco no componente de seleção
|
|
445
|
+
*/
|
|
446
|
+
async setFocus() {
|
|
447
|
+
this._inputElement.setFocus();
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Remove o foco no componente de seleção
|
|
451
|
+
*/
|
|
452
|
+
async setBlur() {
|
|
453
|
+
this._inputElement.setBlur();
|
|
454
|
+
}
|
|
443
455
|
getText() {
|
|
444
456
|
let text = "";
|
|
445
457
|
const selected = this.getSelectedOption();
|
|
@@ -683,6 +695,18 @@ let EzDateInput = class {
|
|
|
683
695
|
this._textInput.value = this.getTextValue(this.value);
|
|
684
696
|
}
|
|
685
697
|
}
|
|
698
|
+
/**
|
|
699
|
+
* Realiza o foco no componente de data
|
|
700
|
+
*/
|
|
701
|
+
async setFocus() {
|
|
702
|
+
this._textInput.setFocus();
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Remove o foco no componente de data
|
|
706
|
+
*/
|
|
707
|
+
async setBlur() {
|
|
708
|
+
this._textInput.setBlur();
|
|
709
|
+
}
|
|
686
710
|
changeValue(newValue) {
|
|
687
711
|
newValue = newValue == null ? null : DateUtils.clearTime(newValue);
|
|
688
712
|
this._textInput.errorMessage = "";
|
|
@@ -766,6 +790,18 @@ let EzDateTimeInput = class {
|
|
|
766
790
|
this._textInput.value = this.getTextValue(this.value);
|
|
767
791
|
}
|
|
768
792
|
}
|
|
793
|
+
/**
|
|
794
|
+
* Realiza o foco no componente de datetime
|
|
795
|
+
*/
|
|
796
|
+
async setFocus() {
|
|
797
|
+
this._textInput.setFocus();
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Remove o foco no componente de datetime
|
|
801
|
+
*/
|
|
802
|
+
async setBlur() {
|
|
803
|
+
this._textInput.setBlur();
|
|
804
|
+
}
|
|
769
805
|
onChangeKeyDown(ev) {
|
|
770
806
|
const input = this._textInput.shadowRoot.querySelector('input');
|
|
771
807
|
if (ev.key === "H" || ev.key === "h") {
|
|
@@ -1719,6 +1755,18 @@ let EzNumberInput = class {
|
|
|
1719
1755
|
this._textInput.value = this.getTextValue(this.value);
|
|
1720
1756
|
}
|
|
1721
1757
|
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Realiza o foco no componente de input
|
|
1760
|
+
*/
|
|
1761
|
+
async setFocus() {
|
|
1762
|
+
this._textInput.setFocus();
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Remove o foco no componente de input
|
|
1766
|
+
*/
|
|
1767
|
+
async setBlur() {
|
|
1768
|
+
this._textInput.setBlur();
|
|
1769
|
+
}
|
|
1722
1770
|
changeValue(newValue) {
|
|
1723
1771
|
this.errorMessage = "";
|
|
1724
1772
|
if (newValue && newValue !== this.value) {
|
|
@@ -1787,6 +1835,18 @@ let EzSearch = class {
|
|
|
1787
1835
|
this._comboElement.value = this.value;
|
|
1788
1836
|
}
|
|
1789
1837
|
}
|
|
1838
|
+
/**
|
|
1839
|
+
* Realiza o foco no componente de pesquisa
|
|
1840
|
+
*/
|
|
1841
|
+
async setFocus() {
|
|
1842
|
+
this._comboElement.setFocus();
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* Remove o foco no componente de pesquisa
|
|
1846
|
+
*/
|
|
1847
|
+
async setBlur() {
|
|
1848
|
+
this._comboElement.setBlur();
|
|
1849
|
+
}
|
|
1790
1850
|
onComboChange(evt) {
|
|
1791
1851
|
evt.stopPropagation();
|
|
1792
1852
|
this.value = evt.detail;
|
|
@@ -2495,7 +2555,7 @@ class RemoteFile {
|
|
|
2495
2555
|
}
|
|
2496
2556
|
}
|
|
2497
2557
|
|
|
2498
|
-
const ezUploadCss = ":host{--ez-upload--height:42px;--ez-upload--width:100%;--ez-upload__icon--width:48px;--ez-upload__container--background-color:var(--background--medium, #d2dce9);--ez-upload__color--primary:var(--color--primary, #008561);--ez-upload--padding--extra-small:var(--space--extra-small, 3px);--ez-upload--padding--small:var(--space--small, 6px);--ez-upload--padding--medium:var(--space--medium, 12px);--ez-upload--padding--large:var(--space--large, 24px);--ez-upload__border--color:var(--color-strokes, #DCE0E8);--ez-upload--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-upload--text--primary:var(--text-primary, #626e82);--ez-upload--font-size:var(--text--medium, 14px);--ez-upload--font-family:var(--font-pattern, Arial);--ez-upload--font-weight:var(--text-weight--large, 500);--ez-upload__btn__cancel-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"8x\" width=\"8px\"><path d=\"M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z\"/></svg>');--ez-upload__file-icon-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"11x\" width=\"9px\"><path d=\"M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z\"/></svg>');display:flex;flex-wrap:wrap;position:relative;font-family:var(--ez-upload--font-family);font-size:var(--ez-upload--font-size);width:var(--ez-upload--width);font-weight:var(--ez-upload--font-weight)}.iu{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:var(--ez-upload--padding--small);width:100%;border-radius:12px;box-sizing:border-box}.iu__container{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.iu__footer{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;padding:0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);box-sizing:border-box}.iu__item{display:flex;width:100%;justify-content:flex-start;align-items:center;align-self:center;padding-bottom:var(--ez-upload--padding--extra-small);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iu__item-label{display:flex;max-width:80%;align-self:stretch;align-items:center}.file__name{font-weight:200}.box__content{width:100%;justify-content:center;align-items:center;height:100%;border:1px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.box__container{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:6px;width:100%;border-radius:12px}a:-webkit-any-link{color:#008561;fill:#008561;cursor:pointer;text-decoration:none}progress[value]{display:flex;width:100%;appearance:none;border:1px solid var(--ez-upload__border--color);height:12px;justify-content:flex-start;align-items:center;border-radius:3px;position:relative}progress[value]::-webkit-progress-bar{display:flex;-webkit-appearance:none;width:100%;background-color:rgb(255, 255, 255);border-radius:2px;padding:2px}progress[value]::-webkit-progress-value{display:flex;width:100%;background-color:var(--ez-upload__color--primary)}.text--center{text-align:center}.align--middle{align-self:center;align-items:center}.text{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent}.text--primary{color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text--medium{font-size:14px}.text--small{font-size:12px}.btn-cancel{outline:none;border:none;background-color:unset;cursor:pointer}.btn-cancel::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:8px;height:8px;-webkit-mask-image:var(--ez-upload__btn__cancel-image);mask-image:var(--ez-upload__btn__cancel-image)}.iu_header{display:flex;flex-direction:column;width:100%}.iu__label{padding:var(--space--small);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-upload--font-family);font-size:var(--text--extra-small);font-weight:var(--ez-upload--font-weight);color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.iu__file-icon{outline:none;border:none;background-color:unset;cursor:pointer}.iu__file-icon:disabled{cursor:unset}.iu__file-icon::after{content:'';display:flex;background-color:var(--text--primary, #626e82);width:9px;height:11px;-webkit-mask-image:var(--ez-upload__file-icon-image);mask-image:var(--ez-upload__file-icon-image)}.iu__file-icon:disabled::after{background-color:var(--text--disable, #AFB6C0)}.iu__icon-label{justify-content:center;display:flex;cursor:pointer;padding:var(--ez-upload--padding--large) 0px;box-sizing:border-box}.background--disabled{background-color:var(--color--disable-secondary, #F2F5F8)}.text--disabled{color:var(--text--disable, #AFB6C0)}.mouse-pointer--disabled{cursor:unset}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
2558
|
+
const ezUploadCss = ":host{--ez-upload--height:42px;--ez-upload--width:100%;--ez-upload__icon--width:48px;--ez-upload__container--background-color:var(--background--medium, #d2dce9);--ez-upload__color--primary:var(--color--primary, #008561);--ez-upload--padding--extra-small:var(--space--extra-small, 3px);--ez-upload--padding--small:var(--space--small, 6px);--ez-upload--padding--medium:var(--space--medium, 12px);--ez-upload--padding--large:var(--space--large, 24px);--ez-upload__border--color:var(--color-strokes, #DCE0E8);--ez-upload--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-upload--text--primary:var(--text-primary, #626e82);--ez-upload--font-size:var(--text--medium, 14px);--ez-upload--font-family:var(--font-pattern, Arial);--ez-upload--font-weight:var(--text-weight--large, 500);--ez-upload__btn__cancel-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"8x\" width=\"8px\"><path d=\"M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z\"/></svg>');--ez-upload__file-icon-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"11x\" width=\"9px\"><path d=\"M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z\"/></svg>');display:flex;flex-wrap:wrap;position:relative;font-family:var(--ez-upload--font-family);font-size:var(--ez-upload--font-size);width:var(--ez-upload--width);font-weight:var(--ez-upload--font-weight)}.iu{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:var(--ez-upload--padding--small);width:100%;border-radius:12px;box-sizing:border-box}.iu__container{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.iu__footer{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;padding:0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);box-sizing:border-box}.iu__item{display:flex;width:100%;justify-content:flex-start;align-items:center;align-self:center;padding-bottom:var(--ez-upload--padding--extra-small);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iu__item-label{display:flex;max-width:80%;align-self:stretch;align-items:center}.file__name{font-weight:200}.box__content{width:100%;justify-content:center;align-items:center;height:100%;border:1px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.box__container{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:6px;width:100%;border-radius:12px}a:-webkit-any-link{color:#008561;fill:#008561;cursor:pointer;text-decoration:none}progress[value]{display:flex;width:100%;appearance:none;border:1px solid var(--ez-upload__border--color);height:12px;justify-content:flex-start;align-items:center;border-radius:3px;position:relative}progress[value]::-webkit-progress-bar{display:flex;-webkit-appearance:none;width:100%;background-color:rgb(255, 255, 255);border-radius:2px;padding:2px}progress[value]::-webkit-progress-value{display:flex;width:100%;background-color:var(--ez-upload__color--primary)}.text--center{text-align:center}.align--middle{align-self:center;align-items:center}.text{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent}.text--primary{color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text--medium{font-size:14px}.text--small{font-size:12px}.btn-cancel{outline:none;border:none;background-color:unset;cursor:pointer}.btn-cancel::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:8px;height:8px;-webkit-mask-image:var(--ez-upload__btn__cancel-image);mask-image:var(--ez-upload__btn__cancel-image)}.iu_header{display:flex;flex-direction:column;width:100%}.iu__label{padding:var(--space--small);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-upload--font-family);font-size:var(--text--extra-small);font-weight:var(--ez-upload--font-weight);color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.iu__file-icon{outline:none;border:none;background-color:unset;cursor:pointer}.iu__file-icon:disabled{cursor:unset}.iu__file-icon::after{content:'';display:flex;background-color:var(--text--primary, #626e82);width:9px;height:11px;-webkit-mask-image:var(--ez-upload__file-icon-image);mask-image:var(--ez-upload__file-icon-image)}.iu__file-icon:disabled::after{background-color:var(--text--disable, #AFB6C0)}.iu__icon-label{justify-content:center;display:flex;cursor:pointer;padding:var(--ez-upload--padding--large) 0px;box-sizing:border-box}.background--disabled{background-color:var(--color--disable-secondary, #F2F5F8)}.text--disabled{color:var(--text--disable, #AFB6C0)}.mouse-pointer--disabled{cursor:unset}.appearanceNone{width:0px;height:0px}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
2499
2559
|
|
|
2500
2560
|
let EzUpload = class {
|
|
2501
2561
|
constructor(hostRef) {
|
|
@@ -2556,6 +2616,18 @@ let EzUpload = class {
|
|
|
2556
2616
|
}
|
|
2557
2617
|
Array.prototype.forEach.call(files, this.addFile.bind(this));
|
|
2558
2618
|
}
|
|
2619
|
+
/**
|
|
2620
|
+
* Realiza o foco no componente de upload
|
|
2621
|
+
*/
|
|
2622
|
+
async setFocus() {
|
|
2623
|
+
this._fileInput.focus();
|
|
2624
|
+
}
|
|
2625
|
+
/**
|
|
2626
|
+
* Remove o foco no componente de upload
|
|
2627
|
+
*/
|
|
2628
|
+
async setBlur() {
|
|
2629
|
+
this._fileInput.blur();
|
|
2630
|
+
}
|
|
2559
2631
|
async addFile(file) {
|
|
2560
2632
|
const oldFile = this._filePointers.get(file.name);
|
|
2561
2633
|
if (oldFile) {
|
|
@@ -2705,7 +2777,7 @@ let EzUpload = class {
|
|
|
2705
2777
|
}
|
|
2706
2778
|
}
|
|
2707
2779
|
render() {
|
|
2708
|
-
return (index.h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, index.h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, index.h("div", { class: "iu_header" }, this.label ? index.h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, index.h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, index.h("button", { class: "iu__file-icon", disabled: !this.enabled }), index.h("div", { class: this.evalDisabledClass("text text--center text--medium text--primary", "text--disabled") }, this.enabled ? "Arraste e solte ou clique para adicionar arquivos" : "Somente leitura"))), this.buildFooter()), index.h("input", { ref: (el) => this._fileInput = el, onChange: (ev) => this.onFileInputChange(ev), type: "file", multiple: true,
|
|
2780
|
+
return (index.h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, index.h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, index.h("div", { class: "iu_header" }, this.label ? index.h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, index.h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, index.h("button", { class: "iu__file-icon", disabled: !this.enabled }), index.h("div", { class: this.evalDisabledClass("text text--center text--medium text--primary", "text--disabled") }, this.enabled ? "Arraste e solte ou clique para adicionar arquivos" : "Somente leitura"))), this.buildFooter()), index.h("input", { ref: (el) => this._fileInput = el, onChange: (ev) => this.onFileInputChange(ev), type: "file", multiple: true, class: "appearanceNone" })));
|
|
2709
2781
|
}
|
|
2710
2782
|
buildFooter() {
|
|
2711
2783
|
if (this._filePointers.size === 0) {
|
|
@@ -2747,6 +2819,13 @@ let TestDu = class {
|
|
|
2747
2819
|
constructor(hostRef) {
|
|
2748
2820
|
index.registerInstance(this, hostRef);
|
|
2749
2821
|
}
|
|
2822
|
+
/*private _ezButton// : HTMLEzButton;
|
|
2823
|
+
private _ezComboBox// : HTMLEzComboBox;
|
|
2824
|
+
private _ezDateInput// : HTMLEzDateInput;
|
|
2825
|
+
private _ezDateTimeInput// : HTMLEzDateTimeInput;
|
|
2826
|
+
private _ezNumberInput// : HTMLEzNumberInput
|
|
2827
|
+
private _ezSearch// : HTMLEzSearch
|
|
2828
|
+
private _ezUpload// : HTMLEzUpload*/
|
|
2750
2829
|
componentWillLoad() {
|
|
2751
2830
|
this.dataUnit = new UnitMetadata.DataUnit("testes_com_formulario");
|
|
2752
2831
|
this.dataUnit.metadata = {
|
|
@@ -110139,6 +110139,12 @@ class AgGridController {
|
|
|
110139
110139
|
}
|
|
110140
110140
|
this._gridOptions.api.setRowData(data);
|
|
110141
110141
|
}
|
|
110142
|
+
refresh() {
|
|
110143
|
+
if (this._grid === undefined) {
|
|
110144
|
+
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
110145
|
+
}
|
|
110146
|
+
this._gridOptions.api.refreshServerSideStore({ purge: false });
|
|
110147
|
+
}
|
|
110142
110148
|
setColumnsDef(cols, showCheckSelection) {
|
|
110143
110149
|
if (this._grid === undefined) {
|
|
110144
110150
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
@@ -110332,6 +110338,13 @@ class DataUnitBridge {
|
|
|
110332
110338
|
case UnitMetadata.Action.METADATA_LOADED:
|
|
110333
110339
|
this._gridController.setColumnsDef(this.buildColumnDefs(), true);
|
|
110334
110340
|
break;
|
|
110341
|
+
case UnitMetadata.Action.RECORDS_REMOVED:
|
|
110342
|
+
case UnitMetadata.Action.EDITION_CANCELED:
|
|
110343
|
+
case UnitMetadata.Action.RECORDS_ADDED:
|
|
110344
|
+
case UnitMetadata.Action.RECORDS_COPIED:
|
|
110345
|
+
case UnitMetadata.Action.DATA_SAVED:
|
|
110346
|
+
this._gridController.refresh();
|
|
110347
|
+
break;
|
|
110335
110348
|
}
|
|
110336
110349
|
}
|
|
110337
110350
|
buildColumnDefs() {
|
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"]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}],[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"]}],[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"]}],[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]}],[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]}],[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]}]]],["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"],"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"]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}],[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"]}],[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"]}],[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]}],[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]}],[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]}]]],["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"],"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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, h, Prop } from '@stencil/core';
|
|
1
|
+
import { Component, h, Prop, Method } from '@stencil/core';
|
|
2
2
|
export class EzButton {
|
|
3
3
|
constructor() {
|
|
4
4
|
/**
|
|
@@ -14,6 +14,18 @@ export class EzButton {
|
|
|
14
14
|
*/
|
|
15
15
|
this.size = "medium";
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Realiza o foco no botão
|
|
19
|
+
*/
|
|
20
|
+
async setFocus() {
|
|
21
|
+
this._button.focus();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Remove o foco no botão
|
|
25
|
+
*/
|
|
26
|
+
async setBlur() {
|
|
27
|
+
this._button.blur();
|
|
28
|
+
}
|
|
17
29
|
getIconSize() {
|
|
18
30
|
return this.size;
|
|
19
31
|
}
|
|
@@ -35,25 +47,25 @@ export class EzButton {
|
|
|
35
47
|
}
|
|
36
48
|
render() {
|
|
37
49
|
if (this.mode == "icon") {
|
|
38
|
-
return (h("button", { class: "icon " + this.size, type: "button", disabled: !this.enabled },
|
|
50
|
+
return (h("button", { class: "icon " + this.size, type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
|
|
39
51
|
h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize(), onClick: evt => { if (!this.enabled)
|
|
40
52
|
evt.stopPropagation(); } })));
|
|
41
53
|
}
|
|
42
54
|
else if (this.mode == "label-icon") {
|
|
43
55
|
return (h("div", { class: "label-icon" },
|
|
44
|
-
h("button", { class: "icon", type: "button", disabled: !this.enabled },
|
|
56
|
+
h("button", { class: "icon", type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
|
|
45
57
|
h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: "large", onClick: evt => { if (!this.enabled)
|
|
46
58
|
evt.stopPropagation(); } })),
|
|
47
59
|
h("label", { title: this.label }, this.label)));
|
|
48
60
|
}
|
|
49
61
|
else if (this.mode == "link") {
|
|
50
|
-
return (h("a", { class: this.size },
|
|
62
|
+
return (h("a", { class: this.size, ref: (el) => this._button = el },
|
|
51
63
|
h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
|
|
52
64
|
this.label,
|
|
53
65
|
h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
54
66
|
}
|
|
55
67
|
else {
|
|
56
|
-
return (h("button", { type: "button", disabled: !this.enabled },
|
|
68
|
+
return (h("button", { type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
|
|
57
69
|
h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
|
|
58
70
|
this.label,
|
|
59
71
|
h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
@@ -174,4 +186,38 @@ export class EzButton {
|
|
|
174
186
|
"defaultValue": "\"medium\""
|
|
175
187
|
}
|
|
176
188
|
}; }
|
|
189
|
+
static get methods() { return {
|
|
190
|
+
"setFocus": {
|
|
191
|
+
"complexType": {
|
|
192
|
+
"signature": "() => Promise<void>",
|
|
193
|
+
"parameters": [],
|
|
194
|
+
"references": {
|
|
195
|
+
"Promise": {
|
|
196
|
+
"location": "global"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"return": "Promise<void>"
|
|
200
|
+
},
|
|
201
|
+
"docs": {
|
|
202
|
+
"text": "Realiza o foco no bot\u00E3o",
|
|
203
|
+
"tags": []
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"setBlur": {
|
|
207
|
+
"complexType": {
|
|
208
|
+
"signature": "() => Promise<void>",
|
|
209
|
+
"parameters": [],
|
|
210
|
+
"references": {
|
|
211
|
+
"Promise": {
|
|
212
|
+
"location": "global"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"return": "Promise<void>"
|
|
216
|
+
},
|
|
217
|
+
"docs": {
|
|
218
|
+
"text": "Remove o foco no bot\u00E3o",
|
|
219
|
+
"tags": []
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}; }
|
|
177
223
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingManager } from "@sankhyalabs/core";
|
|
2
|
-
import { Component, h, Host, Prop, State, Event, Element, Watch } from "@stencil/core";
|
|
2
|
+
import { Component, h, Host, Prop, State, Event, Element, Watch, Method } from "@stencil/core";
|
|
3
3
|
import CSSVarsUtils from "../../utils/CSSVarsUtils";
|
|
4
4
|
export class EzComboBox {
|
|
5
5
|
constructor() {
|
|
@@ -33,6 +33,18 @@ export class EzComboBox {
|
|
|
33
33
|
this._preSelection = undefined;
|
|
34
34
|
this.updateVisibleOptions();
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Realiza o foco no componente de seleção
|
|
38
|
+
*/
|
|
39
|
+
async setFocus() {
|
|
40
|
+
this._inputElement.setFocus();
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Remove o foco no componente de seleção
|
|
44
|
+
*/
|
|
45
|
+
async setBlur() {
|
|
46
|
+
this._inputElement.setBlur();
|
|
47
|
+
}
|
|
36
48
|
getText() {
|
|
37
49
|
let text = "";
|
|
38
50
|
const selected = this.getSelectedOption();
|
|
@@ -489,6 +501,40 @@ export class EzComboBox {
|
|
|
489
501
|
}
|
|
490
502
|
}
|
|
491
503
|
}]; }
|
|
504
|
+
static get methods() { return {
|
|
505
|
+
"setFocus": {
|
|
506
|
+
"complexType": {
|
|
507
|
+
"signature": "() => Promise<void>",
|
|
508
|
+
"parameters": [],
|
|
509
|
+
"references": {
|
|
510
|
+
"Promise": {
|
|
511
|
+
"location": "global"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"return": "Promise<void>"
|
|
515
|
+
},
|
|
516
|
+
"docs": {
|
|
517
|
+
"text": "Realiza o foco no componente de sele\u00E7\u00E3o",
|
|
518
|
+
"tags": []
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"setBlur": {
|
|
522
|
+
"complexType": {
|
|
523
|
+
"signature": "() => Promise<void>",
|
|
524
|
+
"parameters": [],
|
|
525
|
+
"references": {
|
|
526
|
+
"Promise": {
|
|
527
|
+
"location": "global"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
"return": "Promise<void>"
|
|
531
|
+
},
|
|
532
|
+
"docs": {
|
|
533
|
+
"text": "Remove o foco no componente de sele\u00E7\u00E3o",
|
|
534
|
+
"tags": []
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}; }
|
|
492
538
|
static get elementRef() { return "el"; }
|
|
493
539
|
static get watchers() { return [{
|
|
494
540
|
"propName": "value",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Element, Host, h, Prop, Watch, Event } from '@stencil/core';
|
|
1
|
+
import { Component, Element, Host, h, Prop, Watch, Event, Method } from '@stencil/core';
|
|
2
2
|
import { DateUtils } from '@sankhyalabs/core';
|
|
3
3
|
import CSSVarsUtils from '../../utils/CSSVarsUtils';
|
|
4
4
|
export class EzDateInput {
|
|
@@ -19,6 +19,18 @@ export class EzDateInput {
|
|
|
19
19
|
this._textInput.value = this.getTextValue(this.value);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Realiza o foco no componente de data
|
|
24
|
+
*/
|
|
25
|
+
async setFocus() {
|
|
26
|
+
this._textInput.setFocus();
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Remove o foco no componente de data
|
|
30
|
+
*/
|
|
31
|
+
async setBlur() {
|
|
32
|
+
this._textInput.setBlur();
|
|
33
|
+
}
|
|
22
34
|
changeValue(newValue) {
|
|
23
35
|
newValue = newValue == null ? null : DateUtils.clearTime(newValue);
|
|
24
36
|
this._textInput.errorMessage = "";
|
|
@@ -165,6 +177,40 @@ export class EzDateInput {
|
|
|
165
177
|
"references": {}
|
|
166
178
|
}
|
|
167
179
|
}]; }
|
|
180
|
+
static get methods() { return {
|
|
181
|
+
"setFocus": {
|
|
182
|
+
"complexType": {
|
|
183
|
+
"signature": "() => Promise<void>",
|
|
184
|
+
"parameters": [],
|
|
185
|
+
"references": {
|
|
186
|
+
"Promise": {
|
|
187
|
+
"location": "global"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"return": "Promise<void>"
|
|
191
|
+
},
|
|
192
|
+
"docs": {
|
|
193
|
+
"text": "Realiza o foco no componente de data",
|
|
194
|
+
"tags": []
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"setBlur": {
|
|
198
|
+
"complexType": {
|
|
199
|
+
"signature": "() => Promise<void>",
|
|
200
|
+
"parameters": [],
|
|
201
|
+
"references": {
|
|
202
|
+
"Promise": {
|
|
203
|
+
"location": "global"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"return": "Promise<void>"
|
|
207
|
+
},
|
|
208
|
+
"docs": {
|
|
209
|
+
"text": "Remove o foco no componente de data",
|
|
210
|
+
"tags": []
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}; }
|
|
168
214
|
static get elementRef() { return "_elem"; }
|
|
169
215
|
static get watchers() { return [{
|
|
170
216
|
"propName": "label",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Element, Host, h, Prop, Watch, Event } from '@stencil/core';
|
|
1
|
+
import { Component, Element, Host, h, Prop, Watch, Event, Method } from '@stencil/core';
|
|
2
2
|
import { DateUtils, TimeFormatter } from '@sankhyalabs/core';
|
|
3
3
|
import CSSVarsUtils from '../../utils/CSSVarsUtils';
|
|
4
4
|
export class EzDateTimeInput {
|
|
@@ -23,6 +23,18 @@ export class EzDateTimeInput {
|
|
|
23
23
|
this._textInput.value = this.getTextValue(this.value);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Realiza o foco no componente de datetime
|
|
28
|
+
*/
|
|
29
|
+
async setFocus() {
|
|
30
|
+
this._textInput.setFocus();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Remove o foco no componente de datetime
|
|
34
|
+
*/
|
|
35
|
+
async setBlur() {
|
|
36
|
+
this._textInput.setBlur();
|
|
37
|
+
}
|
|
26
38
|
onChangeKeyDown(ev) {
|
|
27
39
|
const input = this._textInput.shadowRoot.querySelector('input');
|
|
28
40
|
if (ev.key === "H" || ev.key === "h") {
|
|
@@ -229,6 +241,40 @@ export class EzDateTimeInput {
|
|
|
229
241
|
"references": {}
|
|
230
242
|
}
|
|
231
243
|
}]; }
|
|
244
|
+
static get methods() { return {
|
|
245
|
+
"setFocus": {
|
|
246
|
+
"complexType": {
|
|
247
|
+
"signature": "() => Promise<void>",
|
|
248
|
+
"parameters": [],
|
|
249
|
+
"references": {
|
|
250
|
+
"Promise": {
|
|
251
|
+
"location": "global"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"return": "Promise<void>"
|
|
255
|
+
},
|
|
256
|
+
"docs": {
|
|
257
|
+
"text": "Realiza o foco no componente de datetime",
|
|
258
|
+
"tags": []
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"setBlur": {
|
|
262
|
+
"complexType": {
|
|
263
|
+
"signature": "() => Promise<void>",
|
|
264
|
+
"parameters": [],
|
|
265
|
+
"references": {
|
|
266
|
+
"Promise": {
|
|
267
|
+
"location": "global"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"return": "Promise<void>"
|
|
271
|
+
},
|
|
272
|
+
"docs": {
|
|
273
|
+
"text": "Remove o foco no componente de datetime",
|
|
274
|
+
"tags": []
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}; }
|
|
232
278
|
static get elementRef() { return "_elem"; }
|
|
233
279
|
static get watchers() { return [{
|
|
234
280
|
"propName": "label",
|
|
@@ -10,6 +10,13 @@ export default class DataUnitBridge {
|
|
|
10
10
|
case Action.METADATA_LOADED:
|
|
11
11
|
this._gridController.setColumnsDef(this.buildColumnDefs(), true);
|
|
12
12
|
break;
|
|
13
|
+
case Action.RECORDS_REMOVED:
|
|
14
|
+
case Action.EDITION_CANCELED:
|
|
15
|
+
case Action.RECORDS_ADDED:
|
|
16
|
+
case Action.RECORDS_COPIED:
|
|
17
|
+
case Action.DATA_SAVED:
|
|
18
|
+
this._gridController.refresh();
|
|
19
|
+
break;
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
22
|
buildColumnDefs() {
|
|
@@ -87,6 +87,12 @@ export default class AgGridController {
|
|
|
87
87
|
}
|
|
88
88
|
this._gridOptions.api.setRowData(data);
|
|
89
89
|
}
|
|
90
|
+
refresh() {
|
|
91
|
+
if (this._grid === undefined) {
|
|
92
|
+
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
93
|
+
}
|
|
94
|
+
this._gridOptions.api.refreshServerSideStore({ purge: false });
|
|
95
|
+
}
|
|
90
96
|
setColumnsDef(cols, showCheckSelection) {
|
|
91
97
|
if (this._grid === undefined) {
|
|
92
98
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|