@sankhyalabs/ezui 3.0.0 → 3.0.2
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-actions-button.cjs.entry.js +12 -26
- package/dist/cjs/ez-alert.cjs.entry.js +2 -5
- package/dist/cjs/ez-application.cjs.entry.js +2 -2
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +2 -5
- package/dist/cjs/ez-button.cjs.entry.js +6 -8
- package/dist/cjs/ez-calendar.cjs.entry.js +2 -14
- package/dist/cjs/ez-card-item.cjs.entry.js +3 -2
- package/dist/cjs/ez-check.cjs.entry.js +5 -8
- package/dist/cjs/ez-chip.cjs.entry.js +8 -11
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -20
- package/dist/cjs/ez-combo-box.cjs.entry.js +11 -23
- package/dist/cjs/ez-date-input.cjs.entry.js +5 -8
- package/dist/cjs/ez-date-time-input.cjs.entry.js +5 -11
- package/dist/cjs/ez-dialog.cjs.entry.js +7 -9
- package/dist/cjs/ez-dropdown.cjs.entry.js +4 -5
- package/dist/cjs/ez-file-item.cjs.entry.js +5 -8
- package/dist/cjs/ez-filter-input_4.cjs.entry.js +14 -23
- package/dist/cjs/ez-form-view.cjs.entry.js +3 -2
- package/dist/cjs/ez-form.cjs.entry.js +26 -20
- package/dist/cjs/ez-grid.cjs.entry.js +11131 -6779
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +3 -11
- package/dist/cjs/ez-icon.cjs.entry.js +4 -5
- package/dist/cjs/ez-list.cjs.entry.js +4 -15
- package/dist/cjs/ez-loading-bar.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal-container.cjs.entry.js +8 -5
- package/dist/cjs/ez-modal.cjs.entry.js +7 -14
- package/dist/cjs/ez-number-input.cjs.entry.js +7 -8
- package/dist/cjs/ez-popover.cjs.entry.js +11 -30
- package/dist/cjs/ez-popup.cjs.entry.js +3 -14
- package/dist/cjs/ez-radio-button.cjs.entry.js +4 -11
- package/dist/cjs/ez-search.cjs.entry.js +6 -17
- package/dist/cjs/ez-tabselector.cjs.entry.js +6 -2
- package/dist/cjs/ez-text-area.cjs.entry.js +5 -14
- package/dist/cjs/ez-text-edit.cjs.entry.js +5 -2
- package/dist/cjs/ez-text-input.cjs.entry.js +7 -14
- package/dist/cjs/ez-time-input.cjs.entry.js +5 -11
- package/dist/cjs/ez-toast.cjs.entry.js +3 -11
- package/dist/cjs/ez-upload.cjs.entry.js +9 -5
- package/dist/cjs/ez-view-stack.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +6 -2
- package/dist/cjs/{index-5e208fa5.js → index-892780f1.js} +588 -248
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +248 -256
- package/dist/collection/components/ez-alert/ez-alert.js +34 -36
- package/dist/collection/components/ez-application/ez-application.js +29 -23
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js +61 -60
- package/dist/collection/components/ez-button/ez-button.js +159 -159
- package/dist/collection/components/ez-calendar/ez-calendar.js +214 -244
- package/dist/collection/components/ez-card-item/ez-card-item.js +60 -58
- package/dist/collection/components/ez-check/ez-check.js +164 -157
- package/dist/collection/components/ez-chip/ez-chip.css +4 -0
- package/dist/collection/components/ez-chip/ez-chip.js +192 -188
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +282 -293
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +348 -361
- package/dist/collection/components/ez-date-input/ez-date-input.js +213 -207
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +233 -228
- package/dist/collection/components/ez-dialog/ez-dialog.js +203 -209
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +128 -127
- package/dist/collection/components/ez-dropdown/structure/DropdownItem.js +1 -4
- package/dist/collection/components/ez-file-item/ez-file-item.js +144 -142
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +197 -188
- package/dist/collection/components/ez-form/DataBinder.js +12 -6
- package/dist/collection/components/ez-form/ez-form.js +191 -177
- package/dist/collection/components/ez-form-view/ez-form-view.js +38 -29
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +20 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +1 -1
- package/dist/collection/components/ez-grid/ez-grid.js +366 -352
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +120 -125
- package/dist/collection/components/ez-icon/ez-icon.js +68 -64
- package/dist/collection/components/ez-list/ez-list.js +246 -266
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.js +49 -42
- package/dist/collection/components/ez-modal/ez-modal.js +143 -143
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +153 -155
- package/dist/collection/components/ez-number-input/ez-number-input.js +246 -233
- package/dist/collection/components/ez-popover/ez-popover.js +273 -283
- package/dist/collection/components/ez-popup/ez-popup.js +121 -133
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +123 -126
- package/dist/collection/components/ez-scroller/ez-scroller.js +104 -100
- package/dist/collection/components/ez-search/ez-search.js +260 -259
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +30 -25
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +115 -106
- package/dist/collection/components/ez-text-area/ez-text-area.js +217 -218
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +109 -96
- package/dist/collection/components/ez-text-input/ez-text-input.js +248 -248
- package/dist/collection/components/ez-time-input/ez-time-input.js +227 -223
- package/dist/collection/components/ez-toast/ez-toast.js +117 -121
- package/dist/collection/components/ez-tree/ez-tree.js +289 -275
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +7 -11
- package/dist/collection/components/ez-upload/ez-upload.js +283 -281
- package/dist/collection/components/ez-view-stack/ez-view-stack.js +46 -40
- package/dist/custom-elements/index.js +11121 -6945
- package/dist/esm/ez-actions-button.entry.js +12 -26
- package/dist/esm/ez-alert.entry.js +2 -5
- package/dist/esm/ez-application.entry.js +2 -2
- package/dist/esm/ez-breadcrumb.entry.js +2 -5
- package/dist/esm/ez-button.entry.js +6 -8
- package/dist/esm/ez-calendar.entry.js +2 -14
- package/dist/esm/ez-card-item.entry.js +3 -2
- package/dist/esm/ez-check.entry.js +5 -8
- package/dist/esm/ez-chip.entry.js +8 -11
- package/dist/esm/ez-collapsible-box.entry.js +4 -20
- package/dist/esm/ez-combo-box.entry.js +11 -23
- package/dist/esm/ez-date-input.entry.js +5 -8
- package/dist/esm/ez-date-time-input.entry.js +5 -11
- package/dist/esm/ez-dialog.entry.js +7 -9
- package/dist/esm/ez-dropdown.entry.js +4 -5
- package/dist/esm/ez-file-item.entry.js +5 -8
- package/dist/esm/ez-filter-input_4.entry.js +14 -23
- package/dist/esm/ez-form-view.entry.js +3 -2
- package/dist/esm/ez-form.entry.js +26 -20
- package/dist/esm/ez-grid.entry.js +11131 -6779
- package/dist/esm/ez-guide-navigator.entry.js +3 -11
- package/dist/esm/ez-icon.entry.js +4 -5
- package/dist/esm/ez-list.entry.js +4 -15
- package/dist/esm/ez-loading-bar.entry.js +2 -2
- package/dist/esm/ez-modal-container.entry.js +8 -5
- package/dist/esm/ez-modal.entry.js +7 -14
- package/dist/esm/ez-number-input.entry.js +7 -8
- package/dist/esm/ez-popover.entry.js +11 -30
- package/dist/esm/ez-popup.entry.js +3 -14
- package/dist/esm/ez-radio-button.entry.js +4 -11
- package/dist/esm/ez-search.entry.js +6 -17
- package/dist/esm/ez-tabselector.entry.js +6 -2
- package/dist/esm/ez-text-area.entry.js +5 -14
- package/dist/esm/ez-text-edit.entry.js +5 -2
- package/dist/esm/ez-text-input.entry.js +7 -14
- package/dist/esm/ez-time-input.entry.js +5 -11
- package/dist/esm/ez-toast.entry.js +3 -11
- package/dist/esm/ez-upload.entry.js +9 -5
- package/dist/esm/ez-view-stack.entry.js +2 -2
- package/dist/esm/ezui.js +3 -2
- package/dist/esm/{index-c5203f95.js → index-de655f48.js} +588 -249
- package/dist/esm/loader.js +3 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-06b3e801.entry.js +1 -0
- package/dist/ezui/p-07b99b94.entry.js +1 -0
- package/dist/ezui/p-0c7e81fe.entry.js +1 -0
- package/dist/ezui/p-1581fece.entry.js +1 -0
- package/dist/ezui/p-1b95836f.entry.js +1 -0
- package/dist/ezui/p-36f7ec68.entry.js +1 -0
- package/dist/ezui/p-37b4bf04.entry.js +1 -0
- package/dist/ezui/p-493e2af4.entry.js +1 -0
- package/dist/ezui/p-4bfed869.entry.js +1 -0
- package/dist/ezui/p-600f1732.entry.js +1 -0
- package/dist/ezui/p-62481744.entry.js +1 -0
- package/dist/ezui/p-6818dd0a.entry.js +1 -0
- package/dist/ezui/p-695facd0.entry.js +1 -0
- package/dist/ezui/p-7ffd12e7.js +2 -0
- package/dist/ezui/p-82db6de7.entry.js +1 -0
- package/dist/ezui/p-86d29565.entry.js +1 -0
- package/dist/ezui/p-8ca4750d.entry.js +1 -0
- package/dist/ezui/p-9613fae6.entry.js +1 -0
- package/dist/ezui/{p-fc97f773.entry.js → p-a323b415.entry.js} +1 -1
- package/dist/ezui/p-a4b281ca.entry.js +1 -0
- package/dist/ezui/p-a67e056f.entry.js +1 -0
- package/dist/ezui/p-a8c7355e.entry.js +1 -0
- package/dist/ezui/p-ada6e6b0.entry.js +1 -0
- package/dist/ezui/p-b1e4ccf4.entry.js +1 -0
- package/dist/ezui/p-b3c7b243.entry.js +1 -0
- package/dist/ezui/p-b405d9b6.entry.js +304 -0
- package/dist/ezui/p-b941aeee.entry.js +1 -0
- package/dist/ezui/p-c0184982.entry.js +1 -0
- package/dist/ezui/p-c1300e84.entry.js +1 -0
- package/dist/ezui/p-c98e571a.entry.js +1 -0
- package/dist/ezui/p-cc40fcb3.entry.js +1 -0
- package/dist/ezui/p-cc5cfcb7.entry.js +1 -0
- package/dist/ezui/p-d6dd32b2.entry.js +1 -0
- package/dist/ezui/p-db131605.entry.js +1 -0
- package/dist/ezui/{p-ba03ac61.entry.js → p-e0d756d9.entry.js} +1 -1
- package/dist/ezui/p-eceb9382.entry.js +1 -0
- package/dist/ezui/p-f18d39e6.entry.js +1 -0
- package/dist/ezui/p-f670bd32.entry.js +1 -0
- package/dist/ezui/p-fcf6cf57.entry.js +1 -0
- package/dist/ezui/p-fd87638e.entry.js +1 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +5 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -0
- package/dist/types/components.d.ts +195 -63
- package/dist/types/stencil-public-runtime.d.ts +79 -7
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +4 -4
- package/react/components.d.ts +0 -1
- package/dist/ezui/p-0cd0545d.entry.js +0 -1
- package/dist/ezui/p-1a27bb9f.entry.js +0 -1
- package/dist/ezui/p-1b94b9dc.entry.js +0 -1
- package/dist/ezui/p-20c01161.entry.js +0 -1
- package/dist/ezui/p-24717f87.entry.js +0 -1
- package/dist/ezui/p-3320768e.entry.js +0 -1
- package/dist/ezui/p-368037b9.entry.js +0 -1
- package/dist/ezui/p-47bcc678.entry.js +0 -1
- package/dist/ezui/p-47ca5e09.entry.js +0 -1
- package/dist/ezui/p-4c444816.entry.js +0 -1
- package/dist/ezui/p-608d13e8.entry.js +0 -1
- package/dist/ezui/p-626b8940.entry.js +0 -1
- package/dist/ezui/p-6414e7cb.entry.js +0 -1
- package/dist/ezui/p-6630eca2.entry.js +0 -1
- package/dist/ezui/p-67b9a2cb.entry.js +0 -1
- package/dist/ezui/p-6f9aba86.entry.js +0 -1
- package/dist/ezui/p-7b80df03.js +0 -1
- package/dist/ezui/p-7d42065a.entry.js +0 -1
- package/dist/ezui/p-97d2d2f6.entry.js +0 -1
- package/dist/ezui/p-99aea44b.entry.js +0 -1
- package/dist/ezui/p-a4b4645d.entry.js +0 -1
- package/dist/ezui/p-ab5eee38.entry.js +0 -1
- package/dist/ezui/p-ad7151e0.entry.js +0 -1
- package/dist/ezui/p-ad8b7412.entry.js +0 -1
- package/dist/ezui/p-ae168e45.entry.js +0 -1
- package/dist/ezui/p-b2e861cb.entry.js +0 -1
- package/dist/ezui/p-b2efb22c.entry.js +0 -1
- package/dist/ezui/p-b5557d33.entry.js +0 -1
- package/dist/ezui/p-bc324ee8.entry.js +0 -304
- package/dist/ezui/p-bd9792e2.entry.js +0 -1
- package/dist/ezui/p-bf8a633d.entry.js +0 -1
- package/dist/ezui/p-c071db26.entry.js +0 -1
- package/dist/ezui/p-c3529df3.entry.js +0 -1
- package/dist/ezui/p-c53b2db8.entry.js +0 -1
- package/dist/ezui/p-ca7435a6.entry.js +0 -1
- package/dist/ezui/p-cc038b32.entry.js +0 -1
- package/dist/ezui/p-e203c89f.entry.js +0 -1
- package/dist/ezui/p-f08de60b.entry.js +0 -1
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, forceUpdate } from "@stencil/core";
|
|
2
2
|
import ApplicationUtils from "../../utils/ApplicationUtils";
|
|
3
3
|
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
4
4
|
import RemoteFile from "./RemoteFile";
|
|
5
5
|
export class EzUpload {
|
|
6
6
|
constructor() {
|
|
7
7
|
this._filePointers = new Map();
|
|
8
|
-
|
|
9
|
-
* Se false o usuário não pode interagir com o campo.
|
|
10
|
-
*/
|
|
8
|
+
this.label = undefined;
|
|
11
9
|
this.enabled = true;
|
|
10
|
+
this.maxFileSize = undefined;
|
|
11
|
+
this.maxFiles = undefined;
|
|
12
|
+
this.requestHeaders = undefined;
|
|
13
|
+
this.urlUpload = undefined;
|
|
14
|
+
this.urlDelete = undefined;
|
|
15
|
+
this.value = undefined;
|
|
12
16
|
}
|
|
13
17
|
observeValue(newValue, oldValue) {
|
|
14
18
|
//Observamos o mundo externo, se um novo valor foi atribuído,
|
|
@@ -242,15 +246,7 @@ export class EzUpload {
|
|
|
242
246
|
}
|
|
243
247
|
}
|
|
244
248
|
render() {
|
|
245
|
-
return (h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") },
|
|
246
|
-
h("div", { class: "iu__container", onClick: () => this.openFilesDialog() },
|
|
247
|
-
h("div", { class: "iu_header" },
|
|
248
|
-
this.label ? h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null,
|
|
249
|
-
h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") },
|
|
250
|
-
h("button", { class: "iu__file-icon", disabled: !this.enabled }),
|
|
251
|
-
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"))),
|
|
252
|
-
this.buildFooter()),
|
|
253
|
-
h("input", { ref: (el) => this._fileInput = el, onChange: (ev) => this.onFileInputChange(ev), type: "file", multiple: true, class: "appearanceNone" })));
|
|
249
|
+
return (h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, h("div", { class: "iu_header" }, this.label ? h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, h("button", { class: "iu__file-icon", disabled: !this.enabled }), 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()), h("input", { ref: (el) => this._fileInput = el, onChange: (ev) => this.onFileInputChange(ev), type: "file", multiple: true, class: "appearanceNone" })));
|
|
254
250
|
}
|
|
255
251
|
buildFooter() {
|
|
256
252
|
if (this._filePointers.size === 0) {
|
|
@@ -265,300 +261,306 @@ export class EzUpload {
|
|
|
265
261
|
const progress = Number(item["progress"]);
|
|
266
262
|
const downloadURL = item["downloadURL"];
|
|
267
263
|
const label = `${fileName} (${this.formatBytes(item.size)})`;
|
|
268
|
-
return (h("div", { class: "iu__item", key: fileName, onClick: evt => evt.stopPropagation() },
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
:
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
this.enabled
|
|
278
|
-
?
|
|
279
|
-
h("div", { class: "col col--stretch align--middle" },
|
|
280
|
-
h("button", { class: "btn-cancel ", onClick: () => this.removeFile(fileName) }))
|
|
281
|
-
:
|
|
282
|
-
null));
|
|
264
|
+
return (h("div", { class: "iu__item", key: fileName, onClick: evt => evt.stopPropagation() }, h("div", { class: "iu__item-label modificador" }, h("div", { title: label, class: "col--stretch align--middle file__name text text--primary text--small text--ellipsis align--middle" }, downloadURL ? h("a", { href: downloadURL, download: true }, label) : label)), isNaN(progress)
|
|
265
|
+
?
|
|
266
|
+
null
|
|
267
|
+
:
|
|
268
|
+
h("div", { class: "col col--sd-4 col--stretch align--middle" }, h("progress", { id: this.buildProgressId(item), value: progress, max: "100" })), this.enabled
|
|
269
|
+
?
|
|
270
|
+
h("div", { class: "col col--stretch align--middle" }, h("button", { class: "btn-cancel ", onClick: () => this.removeFile(fileName) }))
|
|
271
|
+
:
|
|
272
|
+
null));
|
|
283
273
|
}
|
|
284
274
|
evalDisabledClass(regularClasses, disabledClass) {
|
|
285
275
|
return this.enabled ? regularClasses : `${regularClasses} ${disabledClass}`;
|
|
286
276
|
}
|
|
287
277
|
static get is() { return "ez-upload"; }
|
|
288
278
|
static get encapsulation() { return "shadow"; }
|
|
289
|
-
static get originalStyleUrls() {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
"
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
"original": "boolean",
|
|
318
|
-
"resolved": "boolean",
|
|
319
|
-
"references": {}
|
|
320
|
-
},
|
|
321
|
-
"required": false,
|
|
322
|
-
"optional": false,
|
|
323
|
-
"docs": {
|
|
324
|
-
"tags": [],
|
|
325
|
-
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
|
|
326
|
-
},
|
|
327
|
-
"attribute": "enabled",
|
|
328
|
-
"reflect": false,
|
|
329
|
-
"defaultValue": "true"
|
|
330
|
-
},
|
|
331
|
-
"maxFileSize": {
|
|
332
|
-
"type": "number",
|
|
333
|
-
"mutable": false,
|
|
334
|
-
"complexType": {
|
|
335
|
-
"original": "number",
|
|
336
|
-
"resolved": "number",
|
|
337
|
-
"references": {}
|
|
338
|
-
},
|
|
339
|
-
"required": false,
|
|
340
|
-
"optional": false,
|
|
341
|
-
"docs": {
|
|
342
|
-
"tags": [],
|
|
343
|
-
"text": "Define o tamanho m\u00E1ximo (em bytes) de cada arquivo que pode ser transferido"
|
|
344
|
-
},
|
|
345
|
-
"attribute": "max-file-size",
|
|
346
|
-
"reflect": false
|
|
347
|
-
},
|
|
348
|
-
"maxFiles": {
|
|
349
|
-
"type": "number",
|
|
350
|
-
"mutable": false,
|
|
351
|
-
"complexType": {
|
|
352
|
-
"original": "number",
|
|
353
|
-
"resolved": "number",
|
|
354
|
-
"references": {}
|
|
355
|
-
},
|
|
356
|
-
"required": false,
|
|
357
|
-
"optional": false,
|
|
358
|
-
"docs": {
|
|
359
|
-
"tags": [],
|
|
360
|
-
"text": "Define um limite para a quantidade de arquivos"
|
|
279
|
+
static get originalStyleUrls() {
|
|
280
|
+
return {
|
|
281
|
+
"$": ["ez-upload.css"]
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
static get styleUrls() {
|
|
285
|
+
return {
|
|
286
|
+
"$": ["ez-upload.css"]
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
static get properties() {
|
|
290
|
+
return {
|
|
291
|
+
"label": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"mutable": false,
|
|
294
|
+
"complexType": {
|
|
295
|
+
"original": "string",
|
|
296
|
+
"resolved": "string",
|
|
297
|
+
"references": {}
|
|
298
|
+
},
|
|
299
|
+
"required": false,
|
|
300
|
+
"optional": false,
|
|
301
|
+
"docs": {
|
|
302
|
+
"tags": [],
|
|
303
|
+
"text": "Texto a ser apresentado como t\u00EDtulo do campo."
|
|
304
|
+
},
|
|
305
|
+
"attribute": "label",
|
|
306
|
+
"reflect": false
|
|
361
307
|
},
|
|
362
|
-
"
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
"
|
|
371
|
-
"
|
|
308
|
+
"enabled": {
|
|
309
|
+
"type": "boolean",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "boolean",
|
|
313
|
+
"resolved": "boolean",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
|
|
321
|
+
},
|
|
322
|
+
"attribute": "enabled",
|
|
323
|
+
"reflect": false,
|
|
324
|
+
"defaultValue": "true"
|
|
372
325
|
},
|
|
373
|
-
"
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
"
|
|
377
|
-
|
|
326
|
+
"maxFileSize": {
|
|
327
|
+
"type": "number",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "number",
|
|
331
|
+
"resolved": "number",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": "Define o tamanho m\u00E1ximo (em bytes) de cada arquivo que pode ser transferido"
|
|
339
|
+
},
|
|
340
|
+
"attribute": "max-file-size",
|
|
341
|
+
"reflect": false
|
|
378
342
|
},
|
|
379
|
-
"
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
"
|
|
388
|
-
"
|
|
343
|
+
"maxFiles": {
|
|
344
|
+
"type": "number",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "number",
|
|
348
|
+
"resolved": "number",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Define um limite para a quantidade de arquivos"
|
|
356
|
+
},
|
|
357
|
+
"attribute": "max-files",
|
|
358
|
+
"reflect": false
|
|
389
359
|
},
|
|
390
|
-
"
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
"
|
|
394
|
-
|
|
360
|
+
"requestHeaders": {
|
|
361
|
+
"type": "any",
|
|
362
|
+
"mutable": false,
|
|
363
|
+
"complexType": {
|
|
364
|
+
"original": "any",
|
|
365
|
+
"resolved": "any",
|
|
366
|
+
"references": {}
|
|
367
|
+
},
|
|
368
|
+
"required": false,
|
|
369
|
+
"optional": false,
|
|
370
|
+
"docs": {
|
|
371
|
+
"tags": [],
|
|
372
|
+
"text": "Headers para a requisi\u00E7\u00E3o Http"
|
|
373
|
+
},
|
|
374
|
+
"attribute": "request-headers",
|
|
375
|
+
"reflect": false
|
|
395
376
|
},
|
|
396
|
-
"
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
"
|
|
405
|
-
"
|
|
377
|
+
"urlUpload": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"mutable": false,
|
|
380
|
+
"complexType": {
|
|
381
|
+
"original": "string",
|
|
382
|
+
"resolved": "string",
|
|
383
|
+
"references": {}
|
|
384
|
+
},
|
|
385
|
+
"required": false,
|
|
386
|
+
"optional": false,
|
|
387
|
+
"docs": {
|
|
388
|
+
"tags": [],
|
|
389
|
+
"text": "Define a URL de upload"
|
|
390
|
+
},
|
|
391
|
+
"attribute": "url-upload",
|
|
392
|
+
"reflect": false
|
|
406
393
|
},
|
|
407
|
-
"
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
"
|
|
411
|
-
|
|
394
|
+
"urlDelete": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"mutable": false,
|
|
397
|
+
"complexType": {
|
|
398
|
+
"original": "string",
|
|
399
|
+
"resolved": "string",
|
|
400
|
+
"references": {}
|
|
401
|
+
},
|
|
402
|
+
"required": false,
|
|
403
|
+
"optional": false,
|
|
404
|
+
"docs": {
|
|
405
|
+
"tags": [],
|
|
406
|
+
"text": "Define a URL de dele\u00E7\u00E3o"
|
|
407
|
+
},
|
|
408
|
+
"attribute": "url-delete",
|
|
409
|
+
"reflect": false
|
|
412
410
|
},
|
|
413
|
-
"
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
"EzFile": {
|
|
427
|
-
"location": "local"
|
|
411
|
+
"value": {
|
|
412
|
+
"type": "unknown",
|
|
413
|
+
"mutable": true,
|
|
414
|
+
"complexType": {
|
|
415
|
+
"original": "Array<EzFile>",
|
|
416
|
+
"resolved": "EzFile[]",
|
|
417
|
+
"references": {
|
|
418
|
+
"Array": {
|
|
419
|
+
"location": "global"
|
|
420
|
+
},
|
|
421
|
+
"EzFile": {
|
|
422
|
+
"location": "local"
|
|
423
|
+
}
|
|
428
424
|
}
|
|
425
|
+
},
|
|
426
|
+
"required": false,
|
|
427
|
+
"optional": false,
|
|
428
|
+
"docs": {
|
|
429
|
+
"tags": [],
|
|
430
|
+
"text": "Define o valor do campo."
|
|
429
431
|
}
|
|
430
|
-
},
|
|
431
|
-
"required": false,
|
|
432
|
-
"optional": false,
|
|
433
|
-
"docs": {
|
|
434
|
-
"tags": [],
|
|
435
|
-
"text": "Define o valor do campo."
|
|
436
432
|
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
static get events() {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
"
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
"
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
"
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
static get events() {
|
|
436
|
+
return [{
|
|
437
|
+
"method": "ezChange",
|
|
438
|
+
"name": "ezChange",
|
|
439
|
+
"bubbles": true,
|
|
440
|
+
"cancelable": true,
|
|
441
|
+
"composed": true,
|
|
442
|
+
"docs": {
|
|
443
|
+
"tags": [],
|
|
444
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
|
|
445
|
+
},
|
|
446
|
+
"complexType": {
|
|
447
|
+
"original": "Array<EzFile>",
|
|
448
|
+
"resolved": "EzFile[]",
|
|
449
|
+
"references": {
|
|
450
|
+
"Array": {
|
|
451
|
+
"location": "global"
|
|
452
|
+
},
|
|
453
|
+
"EzFile": {
|
|
454
|
+
"location": "local"
|
|
455
|
+
}
|
|
458
456
|
}
|
|
459
457
|
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
458
|
+
}, {
|
|
459
|
+
"method": "ezStartChange",
|
|
460
|
+
"name": "ezStartChange",
|
|
461
|
+
"bubbles": true,
|
|
462
|
+
"cancelable": true,
|
|
463
|
+
"composed": true,
|
|
464
|
+
"docs": {
|
|
465
|
+
"tags": [],
|
|
466
|
+
"text": "Emitido ao iniciar a altera\u00E7\u00E3o (remover ou adicionar um arquivo)."
|
|
467
|
+
},
|
|
468
|
+
"complexType": {
|
|
469
|
+
"original": "WaitingChange",
|
|
470
|
+
"resolved": "WaitingChange",
|
|
471
|
+
"references": {
|
|
472
|
+
"WaitingChange": {
|
|
473
|
+
"location": "import",
|
|
474
|
+
"path": "@sankhyalabs/core"
|
|
475
|
+
}
|
|
478
476
|
}
|
|
479
477
|
}
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
static get methods() {
|
|
498
|
-
|
|
499
|
-
"
|
|
500
|
-
"
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
"
|
|
507
|
-
"
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
"
|
|
478
|
+
}, {
|
|
479
|
+
"method": "ezCancelWaitingChange",
|
|
480
|
+
"name": "ezCancelWaitingChange",
|
|
481
|
+
"bubbles": true,
|
|
482
|
+
"cancelable": true,
|
|
483
|
+
"composed": true,
|
|
484
|
+
"docs": {
|
|
485
|
+
"tags": [],
|
|
486
|
+
"text": "Emitido quando n\u00E3o foi poss\u00EDvel completar a altera\u00E7\u00E3o entre o evento ezStartChange e ezChange."
|
|
487
|
+
},
|
|
488
|
+
"complexType": {
|
|
489
|
+
"original": "void",
|
|
490
|
+
"resolved": "void",
|
|
491
|
+
"references": {}
|
|
492
|
+
}
|
|
493
|
+
}];
|
|
494
|
+
}
|
|
495
|
+
static get methods() {
|
|
496
|
+
return {
|
|
497
|
+
"addFiles": {
|
|
498
|
+
"complexType": {
|
|
499
|
+
"signature": "(files: Array<File>) => Promise<void>",
|
|
500
|
+
"parameters": [{
|
|
501
|
+
"tags": [],
|
|
502
|
+
"text": ""
|
|
503
|
+
}],
|
|
504
|
+
"references": {
|
|
505
|
+
"Promise": {
|
|
506
|
+
"location": "global"
|
|
507
|
+
},
|
|
508
|
+
"Array": {
|
|
509
|
+
"location": "global"
|
|
510
|
+
},
|
|
511
|
+
"File": {
|
|
512
|
+
"location": "global"
|
|
513
|
+
}
|
|
511
514
|
},
|
|
512
|
-
"
|
|
513
|
-
"location": "global"
|
|
514
|
-
}
|
|
515
|
+
"return": "Promise<void>"
|
|
515
516
|
},
|
|
516
|
-
"
|
|
517
|
+
"docs": {
|
|
518
|
+
"text": "Adiciona arquivos.",
|
|
519
|
+
"tags": []
|
|
520
|
+
}
|
|
517
521
|
},
|
|
518
|
-
"
|
|
519
|
-
"
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
"Promise": {
|
|
529
|
-
"location": "global"
|
|
530
|
-
}
|
|
522
|
+
"setFocus": {
|
|
523
|
+
"complexType": {
|
|
524
|
+
"signature": "() => Promise<void>",
|
|
525
|
+
"parameters": [],
|
|
526
|
+
"references": {
|
|
527
|
+
"Promise": {
|
|
528
|
+
"location": "global"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"return": "Promise<void>"
|
|
531
532
|
},
|
|
532
|
-
"
|
|
533
|
+
"docs": {
|
|
534
|
+
"text": "Aplica o foco no campo.",
|
|
535
|
+
"tags": []
|
|
536
|
+
}
|
|
533
537
|
},
|
|
534
|
-
"
|
|
535
|
-
"
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
"Promise": {
|
|
545
|
-
"location": "global"
|
|
546
|
-
}
|
|
538
|
+
"setBlur": {
|
|
539
|
+
"complexType": {
|
|
540
|
+
"signature": "() => Promise<void>",
|
|
541
|
+
"parameters": [],
|
|
542
|
+
"references": {
|
|
543
|
+
"Promise": {
|
|
544
|
+
"location": "global"
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"return": "Promise<void>"
|
|
547
548
|
},
|
|
548
|
-
"
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
"tags": []
|
|
549
|
+
"docs": {
|
|
550
|
+
"text": "Remove o foco do campo.",
|
|
551
|
+
"tags": []
|
|
552
|
+
}
|
|
553
553
|
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
556
|
static get elementRef() { return "_host"; }
|
|
557
|
-
static get watchers() {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
557
|
+
static get watchers() {
|
|
558
|
+
return [{
|
|
559
|
+
"propName": "value",
|
|
560
|
+
"methodName": "observeValue"
|
|
561
|
+
}, {
|
|
562
|
+
"propName": "requestHeaders",
|
|
563
|
+
"methodName": "observeRequestHeaders"
|
|
564
|
+
}];
|
|
565
|
+
}
|
|
564
566
|
}
|