import { createAttachmentFromFile } from "./Entry";
import { listenToCkeditor } from "../Ckeditor/Event";
-// This import has the side effect of registering the `<woltlab-core-file>`
-// element. Do not remove!
-import "../File/woltlab-core-file";
-
function fileToAttachment(fileList: HTMLElement, file: WoltlabCoreFileElement, editor: HTMLElement): void {
fileList.append(createAttachmentFromFile(file, editor));
}
import { getPhrase } from "WoltLabSuite/Core/Language";
import { formatFilesize } from "WoltLabSuite/Core/FileUtil";
+// This import has the side effect of registering the `<woltlab-core-file>`
+// element. Do not remove!
+import "WoltLabSuite/Core/Component/File/woltlab-core-file";
+
export function trackUploadProgress(element: HTMLElement, file: WoltlabCoreFileElement): void {
const progress = document.createElement("progress");
progress.classList.add("fileList__item__progress__bar");
-define(["require", "exports", "./Entry", "../Ckeditor/Event", "../File/woltlab-core-file"], function (require, exports, Entry_1, Event_1) {
+define(["require", "exports", "./Entry", "../Ckeditor/Event"], function (require, exports, Entry_1, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setup = void 0;
-define(["require", "exports", "WoltLabSuite/Core/Language", "WoltLabSuite/Core/FileUtil"], function (require, exports, Language_1, FileUtil_1) {
+define(["require", "exports", "WoltLabSuite/Core/Language", "WoltLabSuite/Core/FileUtil", "WoltLabSuite/Core/Component/File/woltlab-core-file"], function (require, exports, Language_1, FileUtil_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.insertFileInformation = exports.fileInitializationFailed = exports.removeUploadProgress = exports.trackUploadProgress = void 0;