import Input from "@ui5/webcomponents/dist/Input.js"; import type UploadCollectionItem from "./UploadCollectionItem.js"; import type { ListItemHooks } from "@ui5/webcomponents/dist/ListItemTemplate.js"; import ListItemTemplate from "@ui5/webcomponents/dist/ListItemTemplate.js"; import Link from "@ui5/webcomponents/dist/Link.js"; import ProgressIndicator from "@ui5/webcomponents/dist/ProgressIndicator.js"; import Label from "@ui5/webcomponents/dist/Label.js"; import Button from "@ui5/webcomponents/dist/Button.js"; import refreshIcon from "@ui5/webcomponents-icons/dist/refresh.js"; import stopIcon from "@ui5/webcomponents-icons/dist/stop.js"; import editIcon from "@ui5/webcomponents-icons/dist/edit.js"; import declineIcon from "@ui5/webcomponents-icons/dist/decline.js"; const predefinedHooks: Partial = { listItemContent, }; export default function UploadCollectionItemTemplate(this: UploadCollectionItem, hooks?: Partial) { const currentHooks = { ...predefinedHooks, ...hooks }; return ListItemTemplate.call(this, currentHooks); } function listItemContent(this: UploadCollectionItem) { return <>
{this._editing ? (
{this._fileExtension}
) : ( this.fileNameClickable ? ( {this.fileName} ) : ( {this.fileName} ) )}
{this._showProgressIndicator && (
)}
{this._editing ? ( <> ) : ( <> {this._showRetry && (
; }