@getflip/swirl-components 0.84.1 → 0.85.0
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/components.json +12 -2
- package/dist/cjs/swirl-icon-arrow-left_4.cjs.entry.js +2 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.js +23 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-thumbnail2.js +3 -2
- package/dist/esm/swirl-icon-arrow-left_4.entry.js +3 -2
- package/dist/swirl-components/p-d0f3a47a.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-thumbnail/swirl-thumbnail.d.ts +2 -0
- package/dist/types/components.d.ts +5 -0
- package/package.json +1 -1
- package/dist/swirl-components/p-198f5db0.entry.js +0 -1
|
@@ -18,7 +18,7 @@ export class SwirlThumbnail {
|
|
|
18
18
|
const className = classnames("thumbnail", `thumbnail--format-${this.format}`, `thumbnail--size-${this.size}`, {
|
|
19
19
|
"thumbnail--has-progress": this.progress !== undefined,
|
|
20
20
|
});
|
|
21
|
-
return (h(Host, null, h("span", { class: className, role: "group" }, h("img", { alt: this.alt, class: "thumbnail__image", loading: "lazy", src: this.src }), this.progress !== undefined && (h("span", { class: "thumbnail__progress-indicator" }, h("swirl-progress-indicator", { label: this.progressLabel, value: this.progress }))), showRemoveButton && (h("span", { class: "thumbnail__remove-button" }, h("swirl-button", { hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.removeButtonLabel, pill: true, variant: "on-image" }))), showTimestamp && (h("span", { class: "thumbnail__timestamp" }, this.timestamp)))));
|
|
21
|
+
return (h(Host, null, h("span", { class: className, role: "group" }, h("img", { alt: this.alt, class: "thumbnail__image", loading: "lazy", src: this.src }), this.progress !== undefined && (h("span", { class: "thumbnail__progress-indicator" }, h("swirl-progress-indicator", { label: this.progressLabel, value: this.progress }))), showRemoveButton && (h("span", { class: "thumbnail__remove-button" }, h("swirl-button", { hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit, pill: true, variant: "on-image" }))), showTimestamp && (h("span", { class: "thumbnail__timestamp" }, this.timestamp)))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "swirl-thumbnail"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -203,4 +203,26 @@ export class SwirlThumbnail {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
+
static get events() {
|
|
207
|
+
return [{
|
|
208
|
+
"method": "remove",
|
|
209
|
+
"name": "remove",
|
|
210
|
+
"bubbles": true,
|
|
211
|
+
"cancelable": true,
|
|
212
|
+
"composed": true,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": ""
|
|
216
|
+
},
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "MouseEvent",
|
|
219
|
+
"resolved": "MouseEvent",
|
|
220
|
+
"references": {
|
|
221
|
+
"MouseEvent": {
|
|
222
|
+
"location": "global"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}];
|
|
227
|
+
}
|
|
206
228
|
}
|