@ezeep/ezeep-js 1.0.254 → 1.0.255
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/ezp-auth_15.cjs.entry.js +5 -1
- package/dist/collection/components/ezp-upload/ezp-upload.js +5 -1
- package/dist/custom-elements/index.js +5 -1
- package/dist/esm/ezp-auth_15.entry.js +5 -1
- package/dist/esm-es5/ezp-auth_15.entry.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/{p-8805b23a.entry.js → p-2b1073ca.entry.js} +1 -1
- package/dist/ezeep/{p-79f371df.system.entry.js → p-2e022662.system.entry.js} +1 -1
- package/dist/ezeep/p-84bd195a.system.js +1 -1
- package/dist/types/components/ezp-upload/ezp-upload.d.ts +1 -0
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/{p-8805b23a.entry.js → p-2b1073ca.entry.js} +1 -1
- package/www/build/{p-79f371df.system.entry.js → p-2e022662.system.entry.js} +1 -1
- package/www/build/p-84bd195a.system.js +1 -1
|
@@ -34320,6 +34320,10 @@ let EzpUpload = class {
|
|
|
34320
34320
|
this.selectedFiles = [...this.selectedFiles, ...files];
|
|
34321
34321
|
this.uploadFile.emit(this.selectedFiles);
|
|
34322
34322
|
};
|
|
34323
|
+
this.removeFile = (index) => {
|
|
34324
|
+
this.selectedFiles = this.selectedFiles.filter((_, i) => i !== index);
|
|
34325
|
+
this.uploadFile.emit(this.selectedFiles);
|
|
34326
|
+
};
|
|
34323
34327
|
}
|
|
34324
34328
|
/**
|
|
34325
34329
|
*
|
|
@@ -34356,7 +34360,7 @@ let EzpUpload = class {
|
|
|
34356
34360
|
*
|
|
34357
34361
|
*/
|
|
34358
34362
|
render() {
|
|
34359
|
-
return (index.h(index.Host, { class: { dragging: this.dragging } }, index.h("form", { id: "form", ref: (form) => (this.form = form) }, index.h("div", { id: "header" }, index.h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), index.h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), index.h("div", { id: "meta" }, index.h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), index.h("label", { htmlFor: "input", id: "select" }, index.h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), index.h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), index.h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (index.h(index.Fragment, null, index.h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }), this.selectedFiles.map((file, index$1) => (index.h("ezp-label", { key: index$1, level: "tertiary", text: file.name })))))))));
|
|
34363
|
+
return (index.h(index.Host, { class: { dragging: this.dragging } }, index.h("form", { id: "form", ref: (form) => (this.form = form) }, index.h("div", { id: "header" }, index.h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), index.h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), index.h("div", { id: "meta" }, index.h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), index.h("label", { htmlFor: "input", id: "select" }, index.h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), index.h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), index.h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (index.h(index.Fragment, null, index.h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }), this.selectedFiles.map((file, index$1) => (index.h("ezp-label", { key: index$1, level: "tertiary", text: `${file.name} ✕`, onClick: () => this.removeFile(index$1), style: { cursor: 'pointer' } })))))))));
|
|
34360
34364
|
}
|
|
34361
34365
|
};
|
|
34362
34366
|
EzpUpload.style = ezpUploadCss;
|
|
@@ -20,6 +20,10 @@ export class EzpUpload {
|
|
|
20
20
|
this.selectedFiles = [...this.selectedFiles, ...files];
|
|
21
21
|
this.uploadFile.emit(this.selectedFiles);
|
|
22
22
|
};
|
|
23
|
+
this.removeFile = (index) => {
|
|
24
|
+
this.selectedFiles = this.selectedFiles.filter((_, i) => i !== index);
|
|
25
|
+
this.uploadFile.emit(this.selectedFiles);
|
|
26
|
+
};
|
|
23
27
|
}
|
|
24
28
|
/**
|
|
25
29
|
*
|
|
@@ -69,7 +73,7 @@ export class EzpUpload {
|
|
|
69
73
|
h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })),
|
|
70
74
|
this.selectedFiles.length > 0 && (h(Fragment, null,
|
|
71
75
|
h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }),
|
|
72
|
-
this.selectedFiles.map((file, index) => (h("ezp-label", { key: index, level: "tertiary", text: file.name })))))))));
|
|
76
|
+
this.selectedFiles.map((file, index) => (h("ezp-label", { key: index, level: "tertiary", text: `${file.name} ✕`, onClick: () => this.removeFile(index), style: { cursor: 'pointer' } })))))))));
|
|
73
77
|
}
|
|
74
78
|
static get is() { return "ezp-upload"; }
|
|
75
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34357,6 +34357,10 @@ let EzpUpload$1 = class extends HTMLElement {
|
|
|
34357
34357
|
this.selectedFiles = [...this.selectedFiles, ...files];
|
|
34358
34358
|
this.uploadFile.emit(this.selectedFiles);
|
|
34359
34359
|
};
|
|
34360
|
+
this.removeFile = (index) => {
|
|
34361
|
+
this.selectedFiles = this.selectedFiles.filter((_, i) => i !== index);
|
|
34362
|
+
this.uploadFile.emit(this.selectedFiles);
|
|
34363
|
+
};
|
|
34360
34364
|
}
|
|
34361
34365
|
/**
|
|
34362
34366
|
*
|
|
@@ -34393,7 +34397,7 @@ let EzpUpload$1 = class extends HTMLElement {
|
|
|
34393
34397
|
*
|
|
34394
34398
|
*/
|
|
34395
34399
|
render() {
|
|
34396
|
-
return (h(Host, { class: { dragging: this.dragging } }, h("form", { id: "form", ref: (form) => (this.form = form) }, h("div", { id: "header" }, h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), h("div", { id: "meta" }, h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), h("label", { htmlFor: "input", id: "select" }, h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (h(Fragment, null, h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }), this.selectedFiles.map((file, index) => (h("ezp-label", { key: index, level: "tertiary", text: file.name })))))))));
|
|
34400
|
+
return (h(Host, { class: { dragging: this.dragging } }, h("form", { id: "form", ref: (form) => (this.form = form) }, h("div", { id: "header" }, h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), h("div", { id: "meta" }, h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), h("label", { htmlFor: "input", id: "select" }, h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (h(Fragment, null, h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }), this.selectedFiles.map((file, index) => (h("ezp-label", { key: index, level: "tertiary", text: `${file.name} ✕`, onClick: () => this.removeFile(index), style: { cursor: 'pointer' } })))))))));
|
|
34397
34401
|
}
|
|
34398
34402
|
static get style() { return ezpUploadCss; }
|
|
34399
34403
|
};
|
|
@@ -34316,6 +34316,10 @@ let EzpUpload = class {
|
|
|
34316
34316
|
this.selectedFiles = [...this.selectedFiles, ...files];
|
|
34317
34317
|
this.uploadFile.emit(this.selectedFiles);
|
|
34318
34318
|
};
|
|
34319
|
+
this.removeFile = (index) => {
|
|
34320
|
+
this.selectedFiles = this.selectedFiles.filter((_, i) => i !== index);
|
|
34321
|
+
this.uploadFile.emit(this.selectedFiles);
|
|
34322
|
+
};
|
|
34319
34323
|
}
|
|
34320
34324
|
/**
|
|
34321
34325
|
*
|
|
@@ -34352,7 +34356,7 @@ let EzpUpload = class {
|
|
|
34352
34356
|
*
|
|
34353
34357
|
*/
|
|
34354
34358
|
render() {
|
|
34355
|
-
return (h(Host, { class: { dragging: this.dragging } }, h("form", { id: "form", ref: (form) => (this.form = form) }, h("div", { id: "header" }, h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), h("div", { id: "meta" }, h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), h("label", { htmlFor: "input", id: "select" }, h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (h(Fragment, null, h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }), this.selectedFiles.map((file, index) => (h("ezp-label", { key: index, level: "tertiary", text: file.name })))))))));
|
|
34359
|
+
return (h(Host, { class: { dragging: this.dragging } }, h("form", { id: "form", ref: (form) => (this.form = form) }, h("div", { id: "header" }, h("ezp-icon", { name: "drag-drop", size: "huge", framed: true }), h("ezp-label", { weight: "strong", text: i18next.t('upload.description') }), h("div", { id: "meta" }, h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_leading') }), h("label", { htmlFor: "input", id: "select" }, h("ezp-label", { level: "tertiary", weight: "strong", text: i18next.t('upload.meta_select') })), h("input", { type: "file", name: "input", id: "input", multiple: true, ref: (input) => (this.input = input), onInput: this.handleInput }), h("ezp-label", { level: "tertiary", text: i18next.t('upload.meta_trailing') })), this.selectedFiles.length > 0 && (h(Fragment, null, h("ezp-label", { level: "secondary", text: i18next.t('upload.selected_files') }), this.selectedFiles.map((file, index) => (h("ezp-label", { key: index, level: "tertiary", text: `${file.name} ✕`, onClick: () => this.removeFile(index), style: { cursor: 'pointer' } })))))))));
|
|
34356
34360
|
}
|
|
34357
34361
|
};
|
|
34358
34362
|
EzpUpload.style = ezpUploadCss;
|