From 65c63fc494e76c298f5e552ded25ad0c4231418d Mon Sep 17 00:00:00 2001
From: Benjamin Franzke <ben@bnf.dev>
Date: Tue, 29 Aug 2023 08:24:22 +0200
Subject: [PATCH] [TASK] Remove stray JavaScript build files

Remove unused files that have been forgotten to be
removed when there respective TypeScript source files
where removed.

Resolves: #101786
Related: #101783
Releases: main, 12.4
Change-Id: I75a74996e9dc1f9f30fd3b2f08914e25452df06f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80685
Reviewed-by: Benjamin Franzke <ben@bnf.dev>
Tested-by: Benjamin Franzke <ben@bnf.dev>
Tested-by: core-ci <typo3@b13.com>
---
 .../Public/JavaScript/management-overview.js  |  13 --
 .../Public/JavaScript/editable-group-title.js | 117 ------------------
 2 files changed, 130 deletions(-)
 delete mode 100644 typo3/sysext/reactions/Resources/Public/JavaScript/management-overview.js
 delete mode 100644 typo3/sysext/scheduler/Resources/Public/JavaScript/editable-group-title.js

diff --git a/typo3/sysext/reactions/Resources/Public/JavaScript/management-overview.js b/typo3/sysext/reactions/Resources/Public/JavaScript/management-overview.js
deleted file mode 100644
index a67c5f2c8960..000000000000
--- a/typo3/sysext/reactions/Resources/Public/JavaScript/management-overview.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-import RegularEvent from"@typo3/core/event/regular-event.js";import Modal from"@typo3/backend/modal.js";import{SeverityEnum}from"@typo3/backend/enum/severity.js";import{MultiRecordSelectionSelectors}from"@typo3/backend/multi-record-selection.js";import AjaxDataHandler from"@typo3/backend/ajax-data-handler.js";import Severity from"@typo3/backend/severity.js";import Notification from"@typo3/backend/notification.js";class ManagementOverview{constructor(){this.registerEvents()}registerEvents(){new RegularEvent("multiRecordSelection:action:edit",this.editMultiple.bind(this)).bindTo(document),new RegularEvent("multiRecordSelection:action:delete",this.deleteMultiple.bind(this)).bindTo(document)}editMultiple(e){e.preventDefault();const t=e.detail,n=t.configuration.returnUrl||"",o=this.getEntityIdentifiers(t);o.length&&(window.location.href=top.TYPO3.settings.FormEngine.moduleUrl+"&edit[sys_reaction]["+o.join(",")+"]=edit&returnUrl="+encodeURIComponent(n))}deleteMultiple(e){e.preventDefault();const t=e.detail,n=t.configuration.returnUrl||"",o=this.getEntityIdentifiers(t);o.length&&Modal.advanced({title:t.configuration.title||"Delete",content:t.configuration.content||"Are you sure you want to delete those records?",severity:SeverityEnum.warning,buttons:[{text:t.configuration.cancel||TYPO3.lang["button.cancel"]||"Cancel",active:!0,btnClass:"btn-default",name:"cancel",trigger:(e,t)=>t.hideModal()},{text:t.configuration.ok||TYPO3.lang["button.delete"]||"OK",btnClass:"btn-"+Severity.getCssClass(SeverityEnum.warning),name:"delete",trigger:(e,t)=>{t.hideModal(),AjaxDataHandler.process("cmd[sys_reaction]["+o.join(",")+"][delete]=1").then((e=>{if(e.hasErrors)throw e.messages;""!==n?window.location.href=n:t.ownerDocument.location.reload()})).catch((()=>{Notification.error("Could not delete reactions")}))}}]})}getEntityIdentifiers(e){const t=[];return e.checkboxes.forEach((n=>{const o=n.closest(MultiRecordSelectionSelectors.elementSelector);null!==o&&o.dataset[e.configuration.idField]&&t.push(o.dataset[e.configuration.idField])})),t}}export default new ManagementOverview;
\ No newline at end of file
diff --git a/typo3/sysext/scheduler/Resources/Public/JavaScript/editable-group-title.js b/typo3/sysext/scheduler/Resources/Public/JavaScript/editable-group-title.js
deleted file mode 100644
index 862810e835da..000000000000
--- a/typo3/sysext/scheduler/Resources/Public/JavaScript/editable-group-title.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-var __decorate=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};import{lll}from"@typo3/core/lit-helper.js";import{html,css,LitElement}from"lit";import{customElement,property,state}from"lit/decorators.js";import"@typo3/backend/element/icon-element.js";import AjaxDataHandler from"@typo3/backend/ajax-data-handler.js";let EditableGroupName=class extends LitElement{constructor(){super(...arguments),this.groupName="",this.groupId=0,this.editable=!1,this._isEditing=!1,this._isSubmitting=!1}async startEditing(){this.isEditable()&&(this._isEditing=!0,await this.updateComplete,this.shadowRoot.querySelector("input")?.focus())}render(){if(""===this.groupName)return html``;if(!this.isEditable())return html`<div class="wrapper">${this.groupName}</div>`;let t;return t=this._isEditing?this.composeEditForm():html`
-        <div class="wrapper">
-          <span @dblclick="${()=>{this.startEditing()}}">${this.groupName}</span>
-          ${this.composeEditButton()}
-        </div>`,t}isEditable(){return this.editable&&this.groupId>0}endEditing(){this.isEditable()&&(this._isEditing=!1)}updateGroupName(t){t.preventDefault();const e=new FormData(t.target),i=Object.fromEntries(e).newGroupName.toString();if(this.groupName===i)return void this.endEditing();this._isSubmitting=!0;let o={},r=this.groupId;o.data={tx_scheduler_task_group:{[r]:{groupName:i}}},AjaxDataHandler.process(o).then((()=>{this.groupName=i})).finally((()=>{this.endEditing(),this._isSubmitting=!1}))}composeEditButton(){return html`
-      <button data-action="edit" type="button" aria-label="${lll("editGroupName")}" @click="${()=>{this.startEditing()}}">
-        <typo3-backend-icon identifier="actions-open" size="small"></typo3-backend-icon>
-      </button>`}composeEditForm(){return html`
-      <form class="wrapper" @submit="${this.updateGroupName}">
-        <input autocomplete="off" name="newGroupName" ?disabled="${this._isSubmitting}" value="${this.groupName}" @keydown="${t=>{"Escape"===t.key&&this.endEditing()}}">
-        <button data-action="save" type="submit" ?disabled="${this._isSubmitting}">
-          <typo3-backend-icon identifier="actions-check" size="small"></typo3-backend-icon>
-        </button>
-        <button data-action="close" type="button" ?disabled="${this._isSubmitting}" @click="${()=>{this.endEditing()}}">
-          <typo3-backend-icon identifier="actions-close" size="small"></typo3-backend-icon>
-        </button>
-      </form>`}};EditableGroupName.styles=css`
-    :host {
-      display: block;
-      --border-color: #bebebe;
-      --hover-bg: #cacaca;
-      --hover-border-color: #bebebe;
-      --focus-bg: #cacaca;
-      --focus-border-color: #bebebe;
-    }
-
-    input {
-      outline: none;
-      background: transparent;
-      font-weight: inherit;
-      font-size: inherit;
-      font-family: inherit;
-      line-height: inherit;
-      padding: 0;
-      border: 0;
-      border-top: 1px solid transparent;
-      border-bottom: 1px dashed var(--border-color);
-      margin: 0;
-    }
-
-    input:hover {
-      border-bottom: 1px dashed var(--hover-border-color);
-    }
-
-    input:focus {
-      border-bottom: 1px dashed var(--focus-border-color);
-    }
-
-    .wrapper {
-      position: relative;
-      margin: -1px 0;
-    }
-
-    div.wrapper {
-      padding-right: 1.5em;
-    }
-
-    form.wrapper {
-      padding-right: 2.5em;
-    }
-
-    button {
-      display: inline-flex;
-      align-items: center;
-      justify-content: center;
-      font-size: inherit;
-      line-height: inherit;
-      border: 0;
-      padding: 10px;
-      height: 1em;
-      width: 1em;
-      top: 0;
-      border-radius: 2px;
-      overflow: hidden;
-      outline: none;
-      border: 1px solid transparent;
-      background: transparent;
-      opacity: .3;
-      transition: all .2s ease-in-out;
-    }
-
-    button:hover {
-      opacity: 1;
-      background: var(--hover-bg);
-      border-color: var(--hover-border-color);
-    }
-
-    button:focus {
-      opacity: 1;
-      background: var(--focus-bg);
-      border-color: var(--focus-border-color);
-    }
-
-    button[data-action="edit"] {
-      right: 0;
-    }
-
-    button[data-action="save"] {
-      right: calc(1em + 10px);
-    }
-
-    button[data-action="close"] {
-      right: 0;
-    }
-    `,__decorate([property({type:String})],EditableGroupName.prototype,"groupName",void 0),__decorate([property({type:Number})],EditableGroupName.prototype,"groupId",void 0),__decorate([property({type:Boolean})],EditableGroupName.prototype,"editable",void 0),__decorate([state()],EditableGroupName.prototype,"_isEditing",void 0),__decorate([state()],EditableGroupName.prototype,"_isSubmitting",void 0),EditableGroupName=__decorate([customElement("typo3-scheduler-editable-group-title")],EditableGroupName);
\ No newline at end of file
-- 
GitLab