From: Alexander Ebert Date: Fri, 12 Aug 2022 16:16:14 +0000 (+0200) Subject: Update the compiled JS files X-Git-Tag: 6.0.0_Alpha_1~1039^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e41e9947f9206df59fa715cbd4e49a04b04acf3;p=GitHub%2FWoltLab%2FWCF.git Update the compiled JS files --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/CodeMirror/Media.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/CodeMirror/Media.js index e4427a3b3c..7aa6cc7429 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/CodeMirror/Media.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/CodeMirror/Media.js @@ -14,7 +14,7 @@ define(["require", "exports", "tslib", "../../../Media/Manager/Editor", "../../. } insert(mediaList, insertType, thumbnailSize) { switch (insertType) { - case "separate" /* Separate */: { + case "separate" /* MediaInsertType.Separate */: { let sizeArgument = ""; if (thumbnailSize) { sizeArgument = ` size="${thumbnailSize}"`; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Package/Update/Manager.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Package/Update/Manager.js index c8dd6bb9dd..9e4824cbba 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Package/Update/Manager.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Package/Update/Manager.js @@ -71,13 +71,13 @@ define(["require", "exports", "tslib", "../../../../Ajax", "../../../../Language this.submitButton.disabled = false; } switch (response.type) { - case "authorizationRequired" /* AuthorizationRequired */: + case "authorizationRequired" /* ResponseType.AuthorizationRequired */: this.promptCredentials(response.template); break; - case "conflict" /* Conflict */: + case "conflict" /* ResponseType.Conflict */: this.showConflict(response.template); break; - case "queue" /* Queue */: + case "queue" /* ResponseType.Queue */: this.startInstallation(response.queueID); break; default: diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js index 73fecc8a14..08cd92c5a5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js @@ -115,7 +115,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ if (element.closest(".popover") !== null) { this.cache.set(id, { content: null, - state: 0 /* None */, + state: 0 /* State.None */, }); return; } @@ -138,7 +138,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ if (!this.cache.has(cacheId)) { this.cache.set(cacheId, { content: null, - state: 0 /* None */, + state: 0 /* State.None */, }); } }); @@ -157,7 +157,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ fragment = Util_1.default.createFragmentFromHtml("

" + content + "

"); } data.content = fragment; - data.state = 2 /* Ready */; + data.state = 2 /* State.Ready */; if (this.activeId) { const activeElement = this.elements.get(this.activeId).element; if (activeElement.dataset.cacheId === cacheId) { @@ -187,7 +187,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ if (this.hoverId === id) { this.show(); } - }, 800 /* Show */); + }, 800 /* Delay.Show */); } /** * Handles the mouse leaving the popover-enabled element or the popover itself. @@ -197,7 +197,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ if (this.timerLeave) { return; } - this.timerLeave = window.setTimeout(() => this.hidePopover(), 500 /* Hide */); + this.timerLeave = window.setTimeout(() => this.hidePopover(), 500 /* Delay.Hide */); } /** * Handles the mouse start hovering the popover element. @@ -243,13 +243,13 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ const cacheId = elementData.element.dataset.cacheId; const data = this.cache.get(cacheId); switch (data.state) { - case 2 /* Ready */: { + case 2 /* State.Ready */: { this.popoverContent.appendChild(data.content); this.rebuild(); break; } - case 0 /* None */: { - data.state = 1 /* Loading */; + case 0 /* State.None */: { + data.state = 1 /* State.Loading */; const handler = this.handlers.get(elementData.identifier); if (handler.loadCallback) { handler.loadCallback(elementData.objectId, this, elementData.element); @@ -268,7 +268,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ } break; } - case 1 /* Loading */: { + case 1 /* State.Loading */: { // Do not interrupt inflight requests. break; } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Traverse.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Traverse.js index 069ed6f8d8..736c9ba16d 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Traverse.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Traverse.js @@ -12,10 +12,10 @@ define(["require", "exports"], function (require, exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.prevByTag = exports.prevByClass = exports.prevBySel = exports.prev = exports.nextByTag = exports.nextByClass = exports.nextBySel = exports.next = exports.parentByTag = exports.parentByClass = exports.parentBySel = exports.childrenByTag = exports.childrenByClass = exports.childrenBySel = exports.childByTag = exports.childByClass = exports.childBySel = void 0; const _test = new Map([ - [0 /* None */, () => true], - [1 /* Selector */, (element, selector) => element.matches(selector)], - [2 /* ClassName */, (element, className) => element.classList.contains(className)], - [3 /* TagName */, (element, tagName) => element.nodeName === tagName], + [0 /* Type.None */, () => true], + [1 /* Type.Selector */, (element, selector) => element.matches(selector)], + [2 /* Type.ClassName */, (element, className) => element.classList.contains(className)], + [3 /* Type.TagName */, (element, tagName) => element.nodeName === tagName], ]); function _getChildren(element, type, value) { if (!(element instanceof Element)) { @@ -60,57 +60,57 @@ define(["require", "exports"], function (require, exports) { * Examines child elements and returns the first child matching the given selector. */ function childBySel(element, selector) { - return _getChildren(element, 1 /* Selector */, selector)[0] || null; + return _getChildren(element, 1 /* Type.Selector */, selector)[0] || null; } exports.childBySel = childBySel; /** * Examines child elements and returns the first child that has the given CSS class set. */ function childByClass(element, className) { - return _getChildren(element, 2 /* ClassName */, className)[0] || null; + return _getChildren(element, 2 /* Type.ClassName */, className)[0] || null; } exports.childByClass = childByClass; function childByTag(element, tagName) { - return _getChildren(element, 3 /* TagName */, tagName)[0] || null; + return _getChildren(element, 3 /* Type.TagName */, tagName)[0] || null; } exports.childByTag = childByTag; /** * Examines child elements and returns all children matching the given selector. */ function childrenBySel(element, selector) { - return _getChildren(element, 1 /* Selector */, selector); + return _getChildren(element, 1 /* Type.Selector */, selector); } exports.childrenBySel = childrenBySel; /** * Examines child elements and returns all children that have the given CSS class set. */ function childrenByClass(element, className) { - return _getChildren(element, 2 /* ClassName */, className); + return _getChildren(element, 2 /* Type.ClassName */, className); } exports.childrenByClass = childrenByClass; function childrenByTag(element, tagName) { - return _getChildren(element, 3 /* TagName */, tagName); + return _getChildren(element, 3 /* Type.TagName */, tagName); } exports.childrenByTag = childrenByTag; /** * Examines parent nodes and returns the first parent that matches the given selector. */ function parentBySel(element, selector, untilElement) { - return _getParent(element, 1 /* Selector */, selector, untilElement); + return _getParent(element, 1 /* Type.Selector */, selector, untilElement); } exports.parentBySel = parentBySel; /** * Examines parent nodes and returns the first parent that has the given CSS class set. */ function parentByClass(element, className, untilElement) { - return _getParent(element, 2 /* ClassName */, className, untilElement); + return _getParent(element, 2 /* Type.ClassName */, className, untilElement); } exports.parentByClass = parentByClass; /** * Examines parent nodes and returns the first parent which equals the given tag. */ function parentByTag(element, tagName, untilElement) { - return _getParent(element, 3 /* TagName */, tagName, untilElement); + return _getParent(element, 3 /* Type.TagName */, tagName, untilElement); } exports.parentByTag = parentByTag; /** @@ -119,28 +119,28 @@ define(["require", "exports"], function (require, exports) { * @deprecated 5.4 Use `element.nextElementSibling` instead. */ function next(element) { - return _getSibling(element, "nextElementSibling", 0 /* None */, ""); + return _getSibling(element, "nextElementSibling", 0 /* Type.None */, ""); } exports.next = next; /** * Returns the next element sibling that matches the given selector. */ function nextBySel(element, selector) { - return _getSibling(element, "nextElementSibling", 1 /* Selector */, selector); + return _getSibling(element, "nextElementSibling", 1 /* Type.Selector */, selector); } exports.nextBySel = nextBySel; /** * Returns the next element sibling with given CSS class. */ function nextByClass(element, className) { - return _getSibling(element, "nextElementSibling", 2 /* ClassName */, className); + return _getSibling(element, "nextElementSibling", 2 /* Type.ClassName */, className); } exports.nextByClass = nextByClass; /** * Returns the next element sibling with given CSS class. */ function nextByTag(element, tagName) { - return _getSibling(element, "nextElementSibling", 3 /* TagName */, tagName); + return _getSibling(element, "nextElementSibling", 3 /* Type.TagName */, tagName); } exports.nextByTag = nextByTag; /** @@ -149,28 +149,28 @@ define(["require", "exports"], function (require, exports) { * @deprecated 5.4 Use `element.previousElementSibling` instead. */ function prev(element) { - return _getSibling(element, "previousElementSibling", 0 /* None */, ""); + return _getSibling(element, "previousElementSibling", 0 /* Type.None */, ""); } exports.prev = prev; /** * Returns the previous element sibling that matches the given selector. */ function prevBySel(element, selector) { - return _getSibling(element, "previousElementSibling", 1 /* Selector */, selector); + return _getSibling(element, "previousElementSibling", 1 /* Type.Selector */, selector); } exports.prevBySel = prevBySel; /** * Returns the previous element sibling with given CSS class. */ function prevByClass(element, className) { - return _getSibling(element, "previousElementSibling", 2 /* ClassName */, className); + return _getSibling(element, "previousElementSibling", 2 /* Type.ClassName */, className); } exports.prevByClass = prevByClass; /** * Returns the previous element sibling with given CSS class. */ function prevByTag(element, tagName) { - return _getSibling(element, "previousElementSibling", 3 /* TagName */, tagName); + return _getSibling(element, "previousElementSibling", 3 /* Type.TagName */, tagName); } exports.prevByTag = prevByTag; }); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js b/wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js index 80bebb5331..8065f69069 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js @@ -13,46 +13,46 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Afrikaans af(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Amharic am(n) { const i = Math.floor(Math.abs(n)); if (n == 1 || i === 0) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Arabic ar(n) { if (n == 0) { - return "zero" /* Zero */; + return "zero" /* Category.Zero */; } if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } if (n == 2) { - return "two" /* Two */; + return "two" /* Category.Two */; } const mod100 = n % 100; if (mod100 >= 3 && mod100 <= 10) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (mod100 >= 11 && mod100 <= 99) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Assamese as(n) { const i = Math.floor(Math.abs(n)); if (n == 1 || i === 0) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Azerbaijani az(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Belarusian @@ -60,26 +60,26 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo const mod10 = n % 10; const mod100 = n % 100; if (mod10 == 1 && mod100 != 11) { - return "one" /* One */; + return "one" /* Category.One */; } if (mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14)) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (mod10 == 0 || (mod10 >= 5 && mod10 <= 9) || (mod100 >= 11 && mod100 <= 14)) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Bulgarian bg(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Bengali bn(n) { const i = Math.floor(Math.abs(n)); if (n == 1 || i === 0) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Tibetan @@ -95,54 +95,54 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo const fMod10 = f % 10; const fMod100 = f % 100; if ((v == 0 && mod10 == 1 && mod100 != 11) || (fMod10 == 1 && fMod100 != 11)) { - return "one" /* One */; + return "one" /* Category.One */; } if ((v == 0 && mod10 >= 2 && mod10 <= 4 && mod100 >= 12 && mod100 <= 14) || (fMod10 >= 2 && fMod10 <= 4 && fMod100 >= 12 && fMod100 <= 14)) { - return "few" /* Few */; + return "few" /* Category.Few */; } }, // Czech cs(n) { const v = Plural.getV(n); if (n == 1 && v === 0) { - return "one" /* One */; + return "one" /* Category.One */; } if (n >= 2 && n <= 4 && v === 0) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (v === 0) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Welsh cy(n) { if (n == 0) { - return "zero" /* Zero */; + return "zero" /* Category.Zero */; } if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } if (n == 2) { - return "two" /* Two */; + return "two" /* Category.Two */; } if (n == 3) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (n == 6) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Danish da(n) { if (n > 0 && n < 2) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Greek el(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Catalan (ca) @@ -157,71 +157,71 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Urdu (ur) en(n) { if (n == 1 && Plural.getV(n) === 0) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Spanish es(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Basque eu(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Persian fa(n) { if (n >= 0 && n <= 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // French fr(n) { if (n >= 0 && n < 2) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Irish ga(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } if (n == 2) { - return "two" /* Two */; + return "two" /* Category.Two */; } if (n == 3 || n == 4 || n == 5 || n == 6) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (n == 7 || n == 8 || n == 9 || n == 10) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Gujarati gu(n) { if (n >= 0 && n <= 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Hebrew he(n) { const v = Plural.getV(n); if (n == 1 && v === 0) { - return "one" /* One */; + return "one" /* Category.One */; } if (n == 2 && v === 0) { - return "two" /* Two */; + return "two" /* Category.Two */; } if (n > 10 && v === 0 && n % 10 == 0) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Hindi hi(n) { if (n >= 0 && n <= 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Croatian @@ -232,13 +232,13 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Hungarian hu(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Armenian hy(n) { if (n >= 0 && n < 2) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Indonesian @@ -249,7 +249,7 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo is(n) { const f = Plural.getF(n); if ((f === 0 && n % 10 === 1 && !(n % 100 === 11)) || !(f === 0)) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Japanese @@ -263,13 +263,13 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Georgian ka(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Kazakh kk(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Khmer @@ -279,7 +279,7 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Kannada kn(n) { if (n >= 0 && n <= 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Korean @@ -289,19 +289,19 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Kurdish ku(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Kyrgyz ky(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Luxembourgish lb(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Lao @@ -313,13 +313,13 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo const mod10 = n % 10; const mod100 = n % 100; if (mod10 == 1 && !(mod100 >= 11 && mod100 <= 19)) { - return "one" /* One */; + return "one" /* Category.One */; } if (mod10 >= 2 && mod10 <= 9 && !(mod100 >= 11 && mod100 <= 19)) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (Plural.getF(n) != 0) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Latvian @@ -331,10 +331,10 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo const fMod10 = f % 10; const fMod100 = f % 100; if (mod10 == 0 || (mod100 >= 11 && mod100 <= 19) || (v == 2 && fMod100 >= 11 && fMod100 <= 19)) { - return "zero" /* Zero */; + return "zero" /* Category.Zero */; } if ((mod10 == 1 && mod100 != 11) || (v == 2 && fMod10 == 1 && fMod100 != 11) || (v != 2 && fMod10 == 1)) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Macedonian @@ -344,19 +344,19 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Malayalam ml(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Mongolian mn(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Marathi mr(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Malay @@ -367,13 +367,13 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo mt(n) { const mod100 = n % 100; if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } if (n == 0 || (mod100 >= 2 && mod100 <= 10)) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (mod100 >= 11 && mod100 <= 19) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Burmese @@ -383,25 +383,25 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Norwegian no(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Nepali ne(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Odia or(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Punjabi pa(n) { if (n == 1 || n == 0) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Polish @@ -410,26 +410,26 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo const mod10 = n % 10; const mod100 = n % 100; if (n == 1 && v == 0) { - return "one" /* One */; + return "one" /* Category.One */; } if (v == 0 && mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14)) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (v == 0 && ((n != 1 && mod10 >= 0 && mod10 <= 1) || (mod10 >= 5 && mod10 <= 9) || (mod100 >= 12 && mod100 <= 14))) { - return "many" /* Many */; + return "many" /* Category.Many */; } }, // Pashto ps(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Portuguese pt(n) { if (n >= 0 && n < 2) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Romanian @@ -437,10 +437,10 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo const v = Plural.getV(n); const mod100 = n % 100; if (n == 1 && v === 0) { - return "one" /* One */; + return "one" /* Category.One */; } if (v != 0 || n == 0 || (mod100 >= 2 && mod100 <= 19)) { - return "few" /* Few */; + return "few" /* Category.Few */; } }, // Russian @@ -449,26 +449,26 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo const mod100 = n % 100; if (Plural.getV(n) == 0) { if (mod10 == 1 && mod100 != 11) { - return "one" /* One */; + return "one" /* Category.One */; } if (mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14)) { - return "few" /* Few */; + return "few" /* Category.Few */; } if (mod10 == 0 || (mod10 >= 5 && mod10 <= 9) || (mod100 >= 11 && mod100 <= 14)) { - return "many" /* Many */; + return "many" /* Category.Many */; } } }, // Sindhi sd(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Sinhala si(n) { if (n == 0 || n == 1 || (Math.floor(n) == 0 && Plural.getF(n) == 1)) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Slovak @@ -481,19 +481,19 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo const v = Plural.getV(n); const mod100 = n % 100; if (v == 0 && mod100 == 1) { - return "one" /* One */; + return "one" /* Category.One */; } if (v == 0 && mod100 == 2) { - return "two" /* Two */; + return "two" /* Category.Two */; } if ((v == 0 && (mod100 == 3 || mod100 == 4)) || v != 0) { - return "few" /* Few */; + return "few" /* Category.Few */; } }, // Albanian sq(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Serbian @@ -504,13 +504,13 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Tamil ta(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Telugu te(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Tajik @@ -524,19 +524,19 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Turkmen tk(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Turkish tr(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Uyghur ug(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Ukrainian @@ -547,7 +547,7 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo // Uzbek uz(n) { if (n == 1) { - return "one" /* One */; + return "one" /* Category.One */; } }, // Vietnamese @@ -575,7 +575,7 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo if (category) { return category; } - return "other" /* Other */; + return "other" /* Category.Other */; }, /** * Returns the value for a `plural` element used in the template. @@ -602,7 +602,7 @@ define(["require", "exports", "tslib", "../StringUtil"], function (require, expo } let category = Plural.getCategory(value); if (!parameters[category]) { - category = "other" /* Other */; + category = "other" /* Category.Other */; } const string = parameters[category]; if (string.indexOf("#") !== -1) { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js index a99a090019..767e2a8ba5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Editor.js @@ -166,7 +166,7 @@ define(["require", "exports", "tslib", "./Base", "../../Core", "../../Event/Hand thumbnailSize = thumbnailSizeSelect.value; } if (this._options.callbackInsert !== null) { - this._options.callbackInsert(this._mediaToInsert, "separate" /* Separate */, thumbnailSize); + this._options.callbackInsert(this._mediaToInsert, "separate" /* MediaInsertType.Separate */, thumbnailSize); } else { this._options.editor.buffer.set(); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js index 8444c9b5ca..796986a561 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js @@ -236,8 +236,8 @@ define(["require", "exports", "tslib", "../Core", "../Dom/Traverse", "../Dom/Uti } } else if (options.pointerClassNames.length === 2) { - element.classList[top === "auto" ? "add" : "remove"](options.pointerClassNames[0 /* Bottom */]); - element.classList[left === "auto" ? "add" : "remove"](options.pointerClassNames[1 /* Right */]); + element.classList[top === "auto" ? "add" : "remove"](options.pointerClassNames[0 /* PointerClass.Bottom */]); + element.classList[left === "auto" ? "add" : "remove"](options.pointerClassNames[1 /* PointerClass.Right */]); } Util_1.default.setStyles(element, { bottom: bottom === "auto" ? bottom : Math.round(bottom).toString() + "px", diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Color/Picker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Color/Picker.js index 0bc7eef5c6..0447830077 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Color/Picker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Color/Picker.js @@ -106,19 +106,19 @@ define(["require", "exports", "tslib", "../../Core", "../Dialog", "../../Dom/Uti `, options: { onSetup: (content) => { - this.channels.set("r" /* R */, content.querySelector('input[data-channel="r"]')); - this.channels.set("g" /* G */, content.querySelector('input[data-channel="g"]')); - this.channels.set("b" /* B */, content.querySelector('input[data-channel="b"]')); - this.channels.set("a" /* A */, content.querySelector('input[data-channel="a"]')); + this.channels.set("r" /* Channel.R */, content.querySelector('input[data-channel="r"]')); + this.channels.set("g" /* Channel.G */, content.querySelector('input[data-channel="g"]')); + this.channels.set("b" /* Channel.B */, content.querySelector('input[data-channel="b"]')); + this.channels.set("a" /* Channel.A */, content.querySelector('input[data-channel="a"]')); this.channels.forEach((input) => { - input.addEventListener("input", () => this.updateColor("rgba" /* RGBA */)); + input.addEventListener("input", () => this.updateColor("rgba" /* ColorSource.RGBA */)); }); this.hslContainer = content.querySelector(".colorPickerHsvContainer"); - this.hsl.set("hue" /* Hue */, content.querySelector('input[data-coordinate="hue"]')); - this.hsl.set("saturation" /* Saturation */, content.querySelector('input[data-coordinate="saturation"]')); - this.hsl.set("lightness" /* Lightness */, content.querySelector('input[data-coordinate="lightness"]')); + this.hsl.set("hue" /* HSL.Hue */, content.querySelector('input[data-coordinate="hue"]')); + this.hsl.set("saturation" /* HSL.Saturation */, content.querySelector('input[data-coordinate="saturation"]')); + this.hsl.set("lightness" /* HSL.Lightness */, content.querySelector('input[data-coordinate="lightness"]')); this.hsl.forEach((input) => { - input.addEventListener("input", () => this.updateColor("hsl" /* HSL */)); + input.addEventListener("input", () => this.updateColor("hsl" /* ColorSource.HSL */)); }); this.newColor = content.querySelector(".colorPickerColorNew > span"); this.oldColor = content.querySelector(".colorPickerColorOld > span"); @@ -178,7 +178,7 @@ define(["require", "exports", "tslib", "../../Core", "../Dialog", "../../Dom/Uti return; } } - this.setColor(color, "hex" /* HEX */); + this.setColor(color, "hex" /* ColorSource.HEX */); } /** * Returns the current RGBA color set via the color and alpha input. @@ -186,18 +186,18 @@ define(["require", "exports", "tslib", "../../Core", "../Dialog", "../../Dom/Uti * @since 5.5 */ getColor(source) { - const a = parseFloat(this.channels.get("a" /* A */).value); - if (source === "hsl" /* HSL */) { - const rgb = ColorUtil.hslToRgb(parseInt(this.hsl.get("hue" /* Hue */).value, 10), parseInt(this.hsl.get("saturation" /* Saturation */).value, 10), parseInt(this.hsl.get("lightness" /* Lightness */).value, 10)); + const a = parseFloat(this.channels.get("a" /* Channel.A */).value); + if (source === "hsl" /* ColorSource.HSL */) { + const rgb = ColorUtil.hslToRgb(parseInt(this.hsl.get("hue" /* HSL.Hue */).value, 10), parseInt(this.hsl.get("saturation" /* HSL.Saturation */).value, 10), parseInt(this.hsl.get("lightness" /* HSL.Lightness */).value, 10)); return { ...rgb, a, }; } return { - r: parseInt(this.channels.get("r" /* R */).value, 10), - g: parseInt(this.channels.get("g" /* G */).value, 10), - b: parseInt(this.channels.get("b" /* B */).value, 10), + r: parseInt(this.channels.get("r" /* Channel.R */).value, 10), + g: parseInt(this.channels.get("g" /* Channel.G */).value, 10), + b: parseInt(this.channels.get("b" /* Channel.B */).value, 10), a, }; } @@ -220,22 +220,22 @@ define(["require", "exports", "tslib", "../../Core", "../Dialog", "../../Dom/Uti } const { r, g, b, a } = color; const { h, s, l } = ColorUtil.rgbToHsl(r, g, b); - if (source !== "hsl" /* HSL */) { - this.hsl.get("hue" /* Hue */).value = h.toString(); - this.hsl.get("saturation" /* Saturation */).value = s.toString(); - this.hsl.get("lightness" /* Lightness */).value = l.toString(); + if (source !== "hsl" /* ColorSource.HSL */) { + this.hsl.get("hue" /* HSL.Hue */).value = h.toString(); + this.hsl.get("saturation" /* HSL.Saturation */).value = s.toString(); + this.hsl.get("lightness" /* HSL.Lightness */).value = l.toString(); } - this.hslContainer.style.setProperty(`--${"hue" /* Hue */}`, `${h}`); - this.hslContainer.style.setProperty(`--${"saturation" /* Saturation */}`, `${s}%`); - this.hslContainer.style.setProperty(`--${"lightness" /* Lightness */}`, `${l}%`); - if (source !== "rgba" /* RGBA */) { - this.channels.get("r" /* R */).value = r.toString(); - this.channels.get("g" /* G */).value = g.toString(); - this.channels.get("b" /* B */).value = b.toString(); - this.channels.get("a" /* A */).value = a.toString(); + this.hslContainer.style.setProperty(`--${"hue" /* HSL.Hue */}`, `${h}`); + this.hslContainer.style.setProperty(`--${"saturation" /* HSL.Saturation */}`, `${s}%`); + this.hslContainer.style.setProperty(`--${"lightness" /* HSL.Lightness */}`, `${l}%`); + if (source !== "rgba" /* ColorSource.RGBA */) { + this.channels.get("r" /* Channel.R */).value = r.toString(); + this.channels.get("g" /* Channel.G */).value = g.toString(); + this.channels.get("b" /* Channel.B */).value = b.toString(); + this.channels.get("a" /* Channel.A */).value = a.toString(); } this.newColor.style.backgroundColor = ColorUtil.rgbaToString(color); - if (source !== "hex" /* HEX */) { + if (source !== "hex" /* ColorSource.HEX */) { this.colorTextInput.value = ColorUtil.rgbaToHex(color); } } @@ -248,7 +248,7 @@ define(["require", "exports", "tslib", "../../Core", "../Dialog", "../../Dom/Uti if (typeof color === "string") { color = ColorUtil.stringToRgba(color); } - this.setColor(color, "setup" /* Setup */); + this.setColor(color, "setup" /* ColorSource.Setup */); this.oldColor.style.backgroundColor = ColorUtil.rgbaToString(color); } /** @@ -257,7 +257,7 @@ define(["require", "exports", "tslib", "../../Core", "../Dialog", "../../Dom/Uti * @since 5.5 */ submitDialog() { - const color = this.getColor("rgba" /* RGBA */); + const color = this.getColor("rgba" /* ColorSource.RGBA */); const colorString = ColorUtil.rgbaToString(color); this.oldColor.style.backgroundColor = colorString; this.input.value = colorString; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js index bbcd539cf9..0fea94ba65 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Extended.js @@ -37,7 +37,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Date/Picker", "../.. this.form.addEventListener("submit", (event) => { event.preventDefault(); this.activePage = 1; - void this.search(0 /* Modify */); + void this.search(0 /* SearchAction.Modify */); }); this.typeInput.addEventListener("change", () => this.changeType()); window.addEventListener("popstate", () => { @@ -95,7 +95,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Date/Picker", "../.. updateQueryString(searchAction) { const url = new URL(this.form.action); url.search += url.search !== "" ? "&" : "?"; - if (searchAction !== 1 /* Navigation */) { + if (searchAction !== 1 /* SearchAction.Navigation */) { this.searchParameters = []; new FormData(this.form).forEach((value, key) => { if (value.toString().trim()) { @@ -108,7 +108,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Date/Picker", "../.. parameters.push(["pageNo", this.activePage.toString()]); } url.search += new URLSearchParams(parameters); - if (searchAction === 2 /* Init */) { + if (searchAction === 2 /* SearchAction.Init */) { window.history.replaceState({}, document.title, url.toString()); } else { @@ -178,7 +178,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Date/Picker", "../.. } }); this.typeInput.dispatchEvent(new Event("change")); - void this.search(2 /* Init */); + void this.search(2 /* SearchAction.Init */); } initPagination(position) { const wrapperDiv = document.createElement("div"); @@ -210,7 +210,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Date/Picker", "../.. this.activePage = pageNo; this.removeSearchResults(); this.showSearchResults(template); - this.updateQueryString(1 /* Navigation */); + this.updateQueryString(1 /* SearchAction.Navigation */); } removeSearchResults() { while (this.form.nextSibling !== null && this.form.nextSibling !== this.delimiter) {