@sankhyalabs/ezui 1.1.40 → 1.1.41
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_16.cjs.entry.js +253 -204
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-form/subcomponents/form-metadata.js +1 -5
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +2 -3
- package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +1 -8
- package/dist/collection/components/ez-upload/RemoteFile.js +89 -0
- package/dist/collection/components/ez-upload/ez-upload.css +16 -1
- package/dist/collection/components/ez-upload/ez-upload.js +241 -295
- package/dist/custom-elements/index.js +254 -205
- package/dist/esm/ez-button_16.entry.js +253 -204
- 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-e930ba53.entry.js → p-e9784201.entry.js} +1 -1
- package/dist/types/components/ez-upload/RemoteFile.d.ts +14 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +49 -57
- package/dist/types/components.d.ts +36 -40
- package/package.json +1 -1
|
@@ -1,82 +1,74 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
|
|
2
|
+
import RemoteFile from './RemoteFile';
|
|
3
|
+
export interface EzFile {
|
|
3
4
|
name: string;
|
|
4
5
|
size: number;
|
|
5
|
-
downloadURL?: string;
|
|
6
6
|
lastModifiedDate?: Date;
|
|
7
|
-
|
|
8
|
-
xhr?: XMLHttpRequest;
|
|
9
|
-
error?: boolean;
|
|
7
|
+
downloadURL?: string;
|
|
10
8
|
properties?: Array<any>;
|
|
11
9
|
}
|
|
12
10
|
export declare class EzUpload {
|
|
11
|
+
private _host;
|
|
12
|
+
private _dropZone;
|
|
13
|
+
private _fileInput;
|
|
14
|
+
private _filePointers;
|
|
15
|
+
private _requestHeaders;
|
|
16
|
+
private _updatingValue;
|
|
13
17
|
/**
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
maxFileSize: number;
|
|
17
|
-
/**
|
|
18
|
-
* Headers da requisição XMLHttpRequest que será montada para fazer o upload
|
|
19
|
-
*/
|
|
20
|
-
headers: any;
|
|
21
|
-
/**
|
|
22
|
-
* Define o tempo permitido para realizar a requisição, após esse período é disparado um erro
|
|
18
|
+
* Label é o título do campo
|
|
23
19
|
*/
|
|
24
|
-
|
|
20
|
+
label: string;
|
|
25
21
|
/**
|
|
26
|
-
*
|
|
22
|
+
* Deixa o campo disponível ou não para digitação.
|
|
27
23
|
*/
|
|
28
|
-
|
|
24
|
+
enabled: boolean;
|
|
29
25
|
/**
|
|
30
|
-
* Define
|
|
26
|
+
* Define o tamanho máximo (em bytes) de cada arquivo que pode ser transferido
|
|
31
27
|
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Define a URL do servidor de destino
|
|
35
|
-
*/
|
|
36
|
-
target: string;
|
|
28
|
+
maxfilesize: number;
|
|
37
29
|
/**
|
|
38
|
-
*
|
|
30
|
+
* Define um limite para a quantidade de arquivos
|
|
39
31
|
*/
|
|
40
|
-
|
|
32
|
+
maxfiles: number;
|
|
41
33
|
/**
|
|
42
|
-
*
|
|
34
|
+
* Headers para a requisição Http
|
|
43
35
|
*/
|
|
44
|
-
|
|
45
|
-
isValid: boolean;
|
|
46
|
-
fileName: string;
|
|
47
|
-
}>;
|
|
36
|
+
requestheaders: any;
|
|
48
37
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
* Define a URL de upload
|
|
39
|
+
*/
|
|
40
|
+
urlupload: string;
|
|
41
|
+
/**
|
|
42
|
+
* Define a URL do deleção
|
|
43
|
+
*/
|
|
44
|
+
urldelete: string;
|
|
52
45
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
isValid: boolean;
|
|
57
|
-
fileName: string;
|
|
58
|
-
}>;
|
|
46
|
+
* Lista de arquivos que sera tráfegada entre cliente e servidor
|
|
47
|
+
*/
|
|
48
|
+
value: Array<EzFile>;
|
|
59
49
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
ezChange: EventEmitter<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
_configureXhr(xhr: any): void;
|
|
50
|
+
* Evento emitido ao finalizar o upload de um arquivo
|
|
51
|
+
*/
|
|
52
|
+
ezChange: EventEmitter<Array<EzFile>>;
|
|
53
|
+
updatePointers(newValue: Array<EzFile>): void;
|
|
54
|
+
normalizeRequestHeaders(): void;
|
|
55
|
+
addFiles(files: Array<File>): Promise<void>;
|
|
56
|
+
addFile(file: File): Promise<void>;
|
|
57
|
+
doAddFile(file: File): Promise<void>;
|
|
58
|
+
finishUpload(ezFile: EzFile): void;
|
|
59
|
+
updateValue(): void;
|
|
60
|
+
buildProgressId(uploading: RemoteFile): string;
|
|
61
|
+
updateFeedback(uf: RemoteFile): void;
|
|
62
|
+
validateFile(file: File): boolean;
|
|
63
|
+
showError(message: string): void;
|
|
75
64
|
formatBytes(bytes: any, decimals?: number): string;
|
|
76
65
|
onFileInputChange(event: any): void;
|
|
77
|
-
|
|
66
|
+
isRemoteFile(item: EzFile | RemoteFile): boolean;
|
|
67
|
+
removeFromList(name: any): void;
|
|
68
|
+
removeFile(name: any): void;
|
|
78
69
|
componentDidLoad(): void;
|
|
79
|
-
|
|
80
|
-
removeFileFromServer(name: any, donwloadURL: any): void;
|
|
70
|
+
openFilesDialog(): void;
|
|
81
71
|
render(): any;
|
|
72
|
+
buildFooter(): any;
|
|
73
|
+
buildFileItem(item: EzFile | RemoteFile): any;
|
|
82
74
|
}
|
|
@@ -9,7 +9,7 @@ import { ClickOptions } from "puppeteer";
|
|
|
9
9
|
import { Option } from "./components/ez-combo-box/ez-combo-box";
|
|
10
10
|
import { Form } from "./components/ez-form/subcomponents/FormMetadata";
|
|
11
11
|
import { Option as Option1 } from "./components/ez-combo-box/ez-combo-box";
|
|
12
|
-
import {
|
|
12
|
+
import { EzFile } from "./components/ez-upload/ez-upload";
|
|
13
13
|
export namespace Components {
|
|
14
14
|
interface EzActionChip {
|
|
15
15
|
/**
|
|
@@ -540,35 +540,39 @@ export namespace Components {
|
|
|
540
540
|
"useIcon": boolean;
|
|
541
541
|
}
|
|
542
542
|
interface EzUpload {
|
|
543
|
-
"addFiles": (files:
|
|
543
|
+
"addFiles": (files: Array<File>) => Promise<void>;
|
|
544
544
|
/**
|
|
545
|
-
*
|
|
545
|
+
* Deixa o campo disponível ou não para digitação.
|
|
546
546
|
*/
|
|
547
|
-
"
|
|
547
|
+
"enabled": boolean;
|
|
548
548
|
/**
|
|
549
|
-
*
|
|
549
|
+
* Label é o título do campo
|
|
550
550
|
*/
|
|
551
|
-
"
|
|
551
|
+
"label": string;
|
|
552
552
|
/**
|
|
553
|
-
* Define
|
|
553
|
+
* Define um limite para a quantidade de arquivos
|
|
554
554
|
*/
|
|
555
|
-
"
|
|
555
|
+
"maxfiles": number;
|
|
556
556
|
/**
|
|
557
|
-
* Define
|
|
557
|
+
* Define o tamanho máximo (em bytes) de cada arquivo que pode ser transferido
|
|
558
558
|
*/
|
|
559
|
-
"
|
|
559
|
+
"maxfilesize": number;
|
|
560
560
|
/**
|
|
561
|
-
*
|
|
561
|
+
* Headers para a requisição Http
|
|
562
562
|
*/
|
|
563
|
-
"
|
|
563
|
+
"requestheaders": any;
|
|
564
564
|
/**
|
|
565
|
-
*
|
|
565
|
+
* Define a URL do deleção
|
|
566
566
|
*/
|
|
567
|
-
"
|
|
567
|
+
"urldelete": string;
|
|
568
568
|
/**
|
|
569
|
-
* Define
|
|
569
|
+
* Define a URL de upload
|
|
570
570
|
*/
|
|
571
|
-
"
|
|
571
|
+
"urlupload": string;
|
|
572
|
+
/**
|
|
573
|
+
* Lista de arquivos que sera tráfegada entre cliente e servidor
|
|
574
|
+
*/
|
|
575
|
+
"value": Array<EzFile>;
|
|
572
576
|
}
|
|
573
577
|
interface FormMetadata {
|
|
574
578
|
"autoload": boolean;
|
|
@@ -1246,49 +1250,41 @@ declare namespace LocalJSX {
|
|
|
1246
1250
|
}
|
|
1247
1251
|
interface EzUpload {
|
|
1248
1252
|
/**
|
|
1249
|
-
*
|
|
1253
|
+
* Deixa o campo disponível ou não para digitação.
|
|
1250
1254
|
*/
|
|
1251
|
-
"
|
|
1255
|
+
"enabled"?: boolean;
|
|
1252
1256
|
/**
|
|
1253
|
-
*
|
|
1257
|
+
* Label é o título do campo
|
|
1254
1258
|
*/
|
|
1255
|
-
"
|
|
1259
|
+
"label"?: string;
|
|
1256
1260
|
/**
|
|
1257
|
-
* Define
|
|
1261
|
+
* Define um limite para a quantidade de arquivos
|
|
1258
1262
|
*/
|
|
1259
|
-
"
|
|
1263
|
+
"maxfiles"?: number;
|
|
1260
1264
|
/**
|
|
1261
|
-
*
|
|
1265
|
+
* Define o tamanho máximo (em bytes) de cada arquivo que pode ser transferido
|
|
1262
1266
|
*/
|
|
1263
|
-
"
|
|
1267
|
+
"maxfilesize"?: number;
|
|
1264
1268
|
/**
|
|
1265
1269
|
* Evento emitido ao finalizar o upload de um arquivo
|
|
1266
1270
|
*/
|
|
1267
|
-
"
|
|
1271
|
+
"onEzChange"?: (event: CustomEvent<Array<EzFile>>) => void;
|
|
1268
1272
|
/**
|
|
1269
|
-
*
|
|
1273
|
+
* Headers para a requisição Http
|
|
1270
1274
|
*/
|
|
1271
|
-
"
|
|
1275
|
+
"requestheaders"?: any;
|
|
1272
1276
|
/**
|
|
1273
|
-
*
|
|
1277
|
+
* Define a URL do deleção
|
|
1274
1278
|
*/
|
|
1275
|
-
"
|
|
1279
|
+
"urldelete"?: string;
|
|
1276
1280
|
/**
|
|
1277
|
-
* Define a URL
|
|
1281
|
+
* Define a URL de upload
|
|
1278
1282
|
*/
|
|
1279
|
-
"
|
|
1280
|
-
/**
|
|
1281
|
-
* Define o tempo permitido para realizar a requisição, após esse período é disparado um erro
|
|
1282
|
-
*/
|
|
1283
|
-
"timeout"?: number;
|
|
1283
|
+
"urlupload"?: string;
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Lista de arquivos que sera tráfegada entre cliente e servidor
|
|
1286
1286
|
*/
|
|
1287
|
-
"value"?: Array<
|
|
1288
|
-
/**
|
|
1289
|
-
* Define se a requisição deve ou não utilizar credenciais
|
|
1290
|
-
*/
|
|
1291
|
-
"withCredentials"?: boolean;
|
|
1287
|
+
"value"?: Array<EzFile>;
|
|
1292
1288
|
}
|
|
1293
1289
|
interface FormMetadata {
|
|
1294
1290
|
"autoload"?: boolean;
|