/**
* Data handler for a wysiwyg attachment form builder field that stores the temporary hash.
*
- * @author Matthias Schmidt
- * @copyright 2001-2019 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @module WoltLabSuite/Core/Form/Builder/Field/Checked
- * @since 5.2
+ * @author Matthias Schmidt
+ * @copyright 2001-2020 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @module WoltLabSuite/Core/Form/Builder/Field/Field/Wysiwyg/Attachment
+ * @since 5.2
*/
-define(['Core', '../Value'], function (Core, FormBuilderFieldValue) {
+define(["require", "exports", "tslib", "../Value", "../../../../Core"], function (require, exports, tslib_1, Value_1, Core) {
"use strict";
- /**
- * @constructor
- */
- function FormBuilderFieldAttachment(fieldId) {
- this.init(fieldId + '_tmpHash');
+ Value_1 = tslib_1.__importDefault(Value_1);
+ Core = tslib_1.__importStar(Core);
+ class Attachment extends Value_1.default {
+ constructor(fieldId) {
+ super(fieldId + "_tmpHash");
+ }
}
- ;
- Core.inherit(FormBuilderFieldAttachment, FormBuilderFieldValue, {});
- return FormBuilderFieldAttachment;
+ Core.enableLegacyInheritance(Attachment);
+ return Attachment;
});
+++ /dev/null
-/**
- * Data handler for a wysiwyg attachment form builder field that stores the temporary hash.
- *
- * @author Matthias Schmidt
- * @copyright 2001-2019 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @module WoltLabSuite/Core/Form/Builder/Field/Checked
- * @since 5.2
- */
-define(['Core', '../Value'], function(Core, FormBuilderFieldValue) {
- "use strict";
-
- /**
- * @constructor
- */
- function FormBuilderFieldAttachment(fieldId) {
- this.init(fieldId + '_tmpHash');
- };
- Core.inherit(FormBuilderFieldAttachment, FormBuilderFieldValue, {});
-
- return FormBuilderFieldAttachment;
-});
--- /dev/null
+/**
+ * Data handler for a wysiwyg attachment form builder field that stores the temporary hash.
+ *
+ * @author Matthias Schmidt
+ * @copyright 2001-2020 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @module WoltLabSuite/Core/Form/Builder/Field/Field/Wysiwyg/Attachment
+ * @since 5.2
+ */
+
+import Value from "../Value";
+import * as Core from "../../../../Core";
+
+class Attachment extends Value {
+ constructor(fieldId: string) {
+ super(fieldId + "_tmpHash");
+ }
+}
+
+Core.enableLegacyInheritance(Attachment);
+
+export = Attachment;