Commit b4b6dbbd authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[BUGFIX] Update all npm packages

In order to fix most known vulnerabilities in development-related npm
packages, all packages have been updated to their respective latest
version.

Executed commands:

  yarn upgrade
  yarn build

Since packages related to minification and publicly used packages like
CodeMirror have been updated, this patch contains some more changed
files.

Resolves: #90496
Releases: master
Change-Id: I65a307dae58224c75b8d0fc8a34c28fc1db465f6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63379


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Benjamin Kott's avatarBenjamin Kott <benjamin.kott@outlook.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benjamin Kott's avatarBenjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 863691e7
This diff is collapsed.
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports","TYPO3/CMS/Core/Ajax/AjaxRequest","./Enum/Severity","jquery","./Icons","./Modal","./Notification","./Viewport"],(function(e,t,a,n,i,s,r,o,l){"use strict";var d;!function(e){e.hide=".t3js-record-hide",e.delete=".t3js-record-delete",e.icon=".t3js-icon"}(d||(d={}));class c{static refreshPageTree(){l.NavigationContainer&&l.NavigationContainer.PageTree&&l.NavigationContainer.PageTree.refreshTree()}static call(e){return new a(TYPO3.settings.ajaxUrls.record_process).withQueryArguments(e).get().then(async e=>await e.resolve())}constructor(){i(()=>{this.initialize()})}process(e){return c.call(e).then(e=>(e.hasErrors&&this.handleErrors(e),e))}initialize(){i(document).on("click",d.hide,e=>{e.preventDefault();const t=i(e.currentTarget),a=t.find(d.icon),n=t.closest("tr[data-uid]"),s=t.data("params");this._showSpinnerIcon(a),c.call(s).then(e=>{e.hasErrors?this.handleErrors(e):this.toggleRow(n)})}),i(document).on("click",d.delete,e=>{e.preventDefault();const t=i(e.currentTarget);t.tooltip("hide"),r.confirm(t.data("title"),t.data("message"),n.SeverityEnum.warning,[{text:t.data("button-close-text")||TYPO3.lang["button.cancel"]||"Cancel",active:!0,btnClass:"btn-default",name:"cancel"},{text:t.data("button-ok-text")||TYPO3.lang["button.delete"]||"Delete",btnClass:"btn-warning",name:"delete"}]).on("button.clicked",e=>{"cancel"===e.target.getAttribute("name")?r.dismiss():"delete"===e.target.getAttribute("name")&&(r.dismiss(),this.deleteRecord(t))})})}toggleRow(e){const t=e.find(d.hide),a=t.closest("table[data-table]").data("table"),n=t.data("params");let r,o,l;"hidden"===t.data("state")?(o="visible",r=n.replace("=0","=1"),l="actions-edit-hide"):(o="hidden",r=n.replace("=1","=0"),l="actions-edit-unhide"),t.data("state",o).data("params",r),t.tooltip("hide").one("hidden.bs.tooltip",()=>{const e=t.data("toggleTitle");t.data("toggleTitle",t.attr("data-original-title")).attr("data-original-title",e)});const h=t.find(d.icon);s.getIcon(l,s.sizes.small).then(e=>{h.replaceWith(e)});const g=e.find(".col-icon "+d.icon);"hidden"===o?s.getIcon("miscellaneous-placeholder",s.sizes.small,"overlay-hidden").then(e=>{g.append(i(e).find(".icon-overlay"))}):g.find(".icon-overlay").remove(),e.fadeTo("fast",.4,()=>{e.fadeTo("fast",1)}),"pages"===a&&c.refreshPageTree()}deleteRecord(e){const t=e.data("params");let a=e.find(d.icon);this._showSpinnerIcon(a),c.call(t).then(t=>{if(s.getIcon("actions-edit-delete",s.sizes.small).then(t=>{(a=e.find(d.icon)).replaceWith(t)}),t.hasErrors)this.handleErrors(t);else{const t=e.closest("table[data-table]"),a=e.closest(".panel"),n=a.find(".panel-heading"),i=t.data("table");let s=e.closest("tr[data-uid]");const r=s.data("uid"),o=t.find("[data-l10nparent="+r+"]").closest("tr[data-uid]");if((s=s.add(o)).fadeTo("slow",.4,()=>{s.slideUp("slow",()=>{s.remove(),0===t.find("tbody tr").length&&a.slideUp("slow")})}),"0"===e.data("l10parent")||""===e.data("l10parent")){const e=Number(n.find(".t3js-table-total-items").html());n.find(".t3js-table-total-items").text(e-1)}"pages"===i&&c.refreshPageTree()}})}handleErrors(e){i.each(e.messages,(e,t)=>{o.error(t.title,t.message)})}_showSpinnerIcon(e){s.getIcon("spinner-circle-dark",s.sizes.small).then(t=>{e.replaceWith(t)})}}return new c}));
\ No newline at end of file
define(["require","exports","TYPO3/CMS/Core/Ajax/AjaxRequest","./Enum/Severity","jquery","./Icons","./Modal","./Notification","./Viewport"],(function(e,t,a,n,i,s,r,o,l){"use strict";var d;!function(e){e.hide=".t3js-record-hide",e.delete=".t3js-record-delete",e.icon=".t3js-icon"}(d||(d={}));class c{static refreshPageTree(){l.NavigationContainer&&l.NavigationContainer.PageTree&&l.NavigationContainer.PageTree.refreshTree()}static call(e){return new a(TYPO3.settings.ajaxUrls.record_process).withQueryArguments(e).get().then(async e=>await e.resolve())}constructor(){i(()=>{this.initialize()})}process(e){return c.call(e).then(e=>(e.hasErrors&&this.handleErrors(e),e))}initialize(){i(document).on("click",d.hide,e=>{e.preventDefault();const t=i(e.currentTarget),a=t.find(d.icon),n=t.closest("tr[data-uid]"),s=t.data("params");this._showSpinnerIcon(a),c.call(s).then(e=>{e.hasErrors?this.handleErrors(e):this.toggleRow(n)})}),i(document).on("click",d.delete,e=>{e.preventDefault();const t=i(e.currentTarget);t.tooltip("hide"),r.confirm(t.data("title"),t.data("message"),n.SeverityEnum.warning,[{text:t.data("button-close-text")||TYPO3.lang["button.cancel"]||"Cancel",active:!0,btnClass:"btn-default",name:"cancel"},{text:t.data("button-ok-text")||TYPO3.lang["button.delete"]||"Delete",btnClass:"btn-warning",name:"delete"}]).on("button.clicked",e=>{"cancel"===e.target.getAttribute("name")?r.dismiss():"delete"===e.target.getAttribute("name")&&(r.dismiss(),this.deleteRecord(t))})})}toggleRow(e){const t=e.find(d.hide),a=t.closest("table[data-table]").data("table"),n=t.data("params");let r,o,l;"hidden"===t.data("state")?(o="visible",r=n.replace("=0","=1"),l="actions-edit-hide"):(o="hidden",r=n.replace("=1","=0"),l="actions-edit-unhide"),t.data("state",o).data("params",r),t.tooltip("hide").one("hidden.bs.tooltip",()=>{const e=t.data("toggleTitle");t.data("toggleTitle",t.attr("data-original-title")).attr("data-original-title",e)});const h=t.find(d.icon);s.getIcon(l,s.sizes.small).then(e=>{h.replaceWith(e)});const g=e.find(".col-icon "+d.icon);"hidden"===o?s.getIcon("miscellaneous-placeholder",s.sizes.small,"overlay-hidden").then(e=>{g.append(i(e).find(".icon-overlay"))}):g.find(".icon-overlay").remove(),e.fadeTo("fast",.4,()=>{e.fadeTo("fast",1)}),"pages"===a&&c.refreshPageTree()}deleteRecord(e){const t=e.data("params");let a=e.find(d.icon);this._showSpinnerIcon(a),c.call(t).then(t=>{if(s.getIcon("actions-edit-delete",s.sizes.small).then(t=>{a=e.find(d.icon),a.replaceWith(t)}),t.hasErrors)this.handleErrors(t);else{const t=e.closest("table[data-table]"),a=e.closest(".panel"),n=a.find(".panel-heading"),i=t.data("table");let s=e.closest("tr[data-uid]");const r=s.data("uid"),o=t.find("[data-l10nparent="+r+"]").closest("tr[data-uid]");if(s=s.add(o),s.fadeTo("slow",.4,()=>{s.slideUp("slow",()=>{s.remove(),0===t.find("tbody tr").length&&a.slideUp("slow")})}),"0"===e.data("l10parent")||""===e.data("l10parent")){const e=Number(n.find(".t3js-table-total-items").html());n.find(".t3js-table-total-items").text(e-1)}"pages"===i&&c.refreshPageTree()}})}handleErrors(e){i.each(e.messages,(e,t)=>{o.error(t.title,t.message)})}_showSpinnerIcon(e){s.getIcon("spinner-circle-dark",s.sizes.small).then(t=>{e.replaceWith(t)})}}return new c}));
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports","./InteractionRequest"],(function(e,t,r){"use strict";return class extends r{constructor(e,t=null){super(e,t)}concerns(e){if(this===e)return!0;let t=this;for(;t.parentRequest instanceof r;)if((t=t.parentRequest)===e)return!0;return!1}concernsTypes(e){if(e.includes(this.type))return!0;let t=this;for(;t.parentRequest instanceof r;)if(t=t.parentRequest,e.includes(t.type))return!0;return!1}}}));
\ No newline at end of file
define(["require","exports","./InteractionRequest"],(function(e,t,r){"use strict";return class extends r{constructor(e,t=null){super(e,t)}concerns(e){if(this===e)return!0;let t=this;for(;t.parentRequest instanceof r;)if(t=t.parentRequest,t===e)return!0;return!1}concernsTypes(e){if(e.includes(this.type))return!0;let t=this;for(;t.parentRequest instanceof r;)if(t=t.parentRequest,e.includes(t.type))return!0;return!1}}}));
\ No newline at end of file
......@@ -11,4 +11,4 @@
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports"],(function(t,e){"use strict";
/*! Based on http://www.webtoolkit.info/javascript_md5.html */class r{static hash(t){let e,d,n,a,i,o,s,H,F,G;for(t=r.utf8Encode(t),e=r.convertToWordArray(t),s=1732584193,H=4023233417,F=2562383102,G=271733878,d=0;d<e.length;d+=16)n=s,a=H,i=F,o=G,s=r.FF(s,H,F,G,e[d],7,3614090360),G=r.FF(G,s,H,F,e[d+1],12,3905402710),F=r.FF(F,G,s,H,e[d+2],17,606105819),H=r.FF(H,F,G,s,e[d+3],22,3250441966),s=r.FF(s,H,F,G,e[d+4],7,4118548399),G=r.FF(G,s,H,F,e[d+5],12,1200080426),F=r.FF(F,G,s,H,e[d+6],17,2821735955),H=r.FF(H,F,G,s,e[d+7],22,4249261313),s=r.FF(s,H,F,G,e[d+8],7,1770035416),G=r.FF(G,s,H,F,e[d+9],12,2336552879),F=r.FF(F,G,s,H,e[d+10],17,4294925233),H=r.FF(H,F,G,s,e[d+11],22,2304563134),s=r.FF(s,H,F,G,e[d+12],7,1804603682),G=r.FF(G,s,H,F,e[d+13],12,4254626195),F=r.FF(F,G,s,H,e[d+14],17,2792965006),H=r.FF(H,F,G,s,e[d+15],22,1236535329),s=r.GG(s,H,F,G,e[d+1],5,4129170786),G=r.GG(G,s,H,F,e[d+6],9,3225465664),F=r.GG(F,G,s,H,e[d+11],14,643717713),H=r.GG(H,F,G,s,e[d],20,3921069994),s=r.GG(s,H,F,G,e[d+5],5,3593408605),G=r.GG(G,s,H,F,e[d+10],9,38016083),F=r.GG(F,G,s,H,e[d+15],14,3634488961),H=r.GG(H,F,G,s,e[d+4],20,3889429448),s=r.GG(s,H,F,G,e[d+9],5,568446438),G=r.GG(G,s,H,F,e[d+14],9,3275163606),F=r.GG(F,G,s,H,e[d+3],14,4107603335),H=r.GG(H,F,G,s,e[d+8],20,1163531501),s=r.GG(s,H,F,G,e[d+13],5,2850285829),G=r.GG(G,s,H,F,e[d+2],9,4243563512),F=r.GG(F,G,s,H,e[d+7],14,1735328473),H=r.GG(H,F,G,s,e[d+12],20,2368359562),s=r.HH(s,H,F,G,e[d+5],4,4294588738),G=r.HH(G,s,H,F,e[d+8],11,2272392833),F=r.HH(F,G,s,H,e[d+11],16,1839030562),H=r.HH(H,F,G,s,e[d+14],23,4259657740),s=r.HH(s,H,F,G,e[d+1],4,2763975236),G=r.HH(G,s,H,F,e[d+4],11,1272893353),F=r.HH(F,G,s,H,e[d+7],16,4139469664),H=r.HH(H,F,G,s,e[d+10],23,3200236656),s=r.HH(s,H,F,G,e[d+13],4,681279174),G=r.HH(G,s,H,F,e[d],11,3936430074),F=r.HH(F,G,s,H,e[d+3],16,3572445317),H=r.HH(H,F,G,s,e[d+6],23,76029189),s=r.HH(s,H,F,G,e[d+9],4,3654602809),G=r.HH(G,s,H,F,e[d+12],11,3873151461),F=r.HH(F,G,s,H,e[d+15],16,530742520),H=r.HH(H,F,G,s,e[d+2],23,3299628645),s=r.II(s,H,F,G,e[d],6,4096336452),G=r.II(G,s,H,F,e[d+7],10,1126891415),F=r.II(F,G,s,H,e[d+14],15,2878612391),H=r.II(H,F,G,s,e[d+5],21,4237533241),s=r.II(s,H,F,G,e[d+12],6,1700485571),G=r.II(G,s,H,F,e[d+3],10,2399980690),F=r.II(F,G,s,H,e[d+10],15,4293915773),H=r.II(H,F,G,s,e[d+1],21,2240044497),s=r.II(s,H,F,G,e[d+8],6,1873313359),G=r.II(G,s,H,F,e[d+15],10,4264355552),F=r.II(F,G,s,H,e[d+6],15,2734768916),H=r.II(H,F,G,s,e[d+13],21,1309151649),s=r.II(s,H,F,G,e[d+4],6,4149444226),G=r.II(G,s,H,F,e[d+11],10,3174756917),F=r.II(F,G,s,H,e[d+2],15,718787259),H=r.II(H,F,G,s,e[d+9],21,3951481745),s=r.addUnsigned(s,n),H=r.addUnsigned(H,a),F=r.addUnsigned(F,i),G=r.addUnsigned(G,o);return(r.wordToHex(s)+r.wordToHex(H)+r.wordToHex(F)+r.wordToHex(G)).toLowerCase()}static rotateLeft(t,e){return t<<e|t>>>32-e}static addUnsigned(t,e){let r=2147483648&t,d=2147483648&e,n=1073741824&t,a=1073741824&e,i=(1073741823&t)+(1073741823&e);return n&a?2147483648^i^r^d:n|a?1073741824&i?3221225472^i^r^d:1073741824^i^r^d:i^r^d}static F(t,e,r){return t&e|~t&r}static G(t,e,r){return t&r|e&~r}static H(t,e,r){return t^e^r}static I(t,e,r){return e^(t|~r)}static FF(t,e,d,n,a,i,o){return t=r.addUnsigned(t,r.addUnsigned(r.addUnsigned(r.F(e,d,n),a),o)),r.addUnsigned(r.rotateLeft(t,i),e)}static GG(t,e,d,n,a,i,o){return t=r.addUnsigned(t,r.addUnsigned(r.addUnsigned(r.G(e,d,n),a),o)),r.addUnsigned(r.rotateLeft(t,i),e)}static HH(t,e,d,n,a,i,o){return t=r.addUnsigned(t,r.addUnsigned(r.addUnsigned(r.H(e,d,n),a),o)),r.addUnsigned(r.rotateLeft(t,i),e)}static II(t,e,d,n,a,i,o){return t=r.addUnsigned(t,r.addUnsigned(r.addUnsigned(r.I(e,d,n),a),o)),r.addUnsigned(r.rotateLeft(t,i),e)}static convertToWordArray(t){let e,r=t.length,d=r+8,n=16*((d-d%64)/64+1),a=Array(n-1),i=0,o=0;for(;o<r;)i=o%4*8,a[e=(o-o%4)/4]=a[e]|t.charCodeAt(o)<<i,o++;return i=o%4*8,a[e=(o-o%4)/4]=a[e]|128<<i,a[n-2]=r<<3,a[n-1]=r>>>29,a}static wordToHex(t){let e,r,d="",n="";for(r=0;r<=3;r++)d+=(n="0"+(e=t>>>8*r&255).toString(16)).substr(n.length-2,2);return d}static utf8Encode(t){t=t.replace(/\r\n/g,"\n");let e="";for(let r=0;r<t.length;r++){let d=t.charCodeAt(r);d<128?e+=String.fromCharCode(d):d>127&&d<2048?(e+=String.fromCharCode(d>>6|192),e+=String.fromCharCode(63&d|128)):(e+=String.fromCharCode(d>>12|224),e+=String.fromCharCode(d>>6&63|128),e+=String.fromCharCode(63&d|128))}return e}}return r}));
\ No newline at end of file
/*! Based on http://www.webtoolkit.info/javascript_md5.html */class r{static hash(t){let e,d,n,a,i,o,s,H,F,G;for(t=r.utf8Encode(t),e=r.convertToWordArray(t),s=1732584193,H=4023233417,F=2562383102,G=271733878,d=0;d<e.length;d+=16)n=s,a=H,i=F,o=G,s=r.FF(s,H,F,G,e[d],7,3614090360),G=r.FF(G,s,H,F,e[d+1],12,3905402710),F=r.FF(F,G,s,H,e[d+2],17,606105819),H=r.FF(H,F,G,s,e[d+3],22,3250441966),s=r.FF(s,H,F,G,e[d+4],7,4118548399),G=r.FF(G,s,H,F,e[d+5],12,1200080426),F=r.FF(F,G,s,H,e[d+6],17,2821735955),H=r.FF(H,F,G,s,e[d+7],22,4249261313),s=r.FF(s,H,F,G,e[d+8],7,1770035416),G=r.FF(G,s,H,F,e[d+9],12,2336552879),F=r.FF(F,G,s,H,e[d+10],17,4294925233),H=r.FF(H,F,G,s,e[d+11],22,2304563134),s=r.FF(s,H,F,G,e[d+12],7,1804603682),G=r.FF(G,s,H,F,e[d+13],12,4254626195),F=r.FF(F,G,s,H,e[d+14],17,2792965006),H=r.FF(H,F,G,s,e[d+15],22,1236535329),s=r.GG(s,H,F,G,e[d+1],5,4129170786),G=r.GG(G,s,H,F,e[d+6],9,3225465664),F=r.GG(F,G,s,H,e[d+11],14,643717713),H=r.GG(H,F,G,s,e[d],20,3921069994),s=r.GG(s,H,F,G,e[d+5],5,3593408605),G=r.GG(G,s,H,F,e[d+10],9,38016083),F=r.GG(F,G,s,H,e[d+15],14,3634488961),H=r.GG(H,F,G,s,e[d+4],20,3889429448),s=r.GG(s,H,F,G,e[d+9],5,568446438),G=r.GG(G,s,H,F,e[d+14],9,3275163606),F=r.GG(F,G,s,H,e[d+3],14,4107603335),H=r.GG(H,F,G,s,e[d+8],20,1163531501),s=r.GG(s,H,F,G,e[d+13],5,2850285829),G=r.GG(G,s,H,F,e[d+2],9,4243563512),F=r.GG(F,G,s,H,e[d+7],14,1735328473),H=r.GG(H,F,G,s,e[d+12],20,2368359562),s=r.HH(s,H,F,G,e[d+5],4,4294588738),G=r.HH(G,s,H,F,e[d+8],11,2272392833),F=r.HH(F,G,s,H,e[d+11],16,1839030562),H=r.HH(H,F,G,s,e[d+14],23,4259657740),s=r.HH(s,H,F,G,e[d+1],4,2763975236),G=r.HH(G,s,H,F,e[d+4],11,1272893353),F=r.HH(F,G,s,H,e[d+7],16,4139469664),H=r.HH(H,F,G,s,e[d+10],23,3200236656),s=r.HH(s,H,F,G,e[d+13],4,681279174),G=r.HH(G,s,H,F,e[d],11,3936430074),F=r.HH(F,G,s,H,e[d+3],16,3572445317),H=r.HH(H,F,G,s,e[d+6],23,76029189),s=r.HH(s,H,F,G,e[d+9],4,3654602809),G=r.HH(G,s,H,F,e[d+12],11,3873151461),F=r.HH(F,G,s,H,e[d+15],16,530742520),H=r.HH(H,F,G,s,e[d+2],23,3299628645),s=r.II(s,H,F,G,e[d],6,4096336452),G=r.II(G,s,H,F,e[d+7],10,1126891415),F=r.II(F,G,s,H,e[d+14],15,2878612391),H=r.II(H,F,G,s,e[d+5],21,4237533241),s=r.II(s,H,F,G,e[d+12],6,1700485571),G=r.II(G,s,H,F,e[d+3],10,2399980690),F=r.II(F,G,s,H,e[d+10],15,4293915773),H=r.II(H,F,G,s,e[d+1],21,2240044497),s=r.II(s,H,F,G,e[d+8],6,1873313359),G=r.II(G,s,H,F,e[d+15],10,4264355552),F=r.II(F,G,s,H,e[d+6],15,2734768916),H=r.II(H,F,G,s,e[d+13],21,1309151649),s=r.II(s,H,F,G,e[d+4],6,4149444226),G=r.II(G,s,H,F,e[d+11],10,3174756917),F=r.II(F,G,s,H,e[d+2],15,718787259),H=r.II(H,F,G,s,e[d+9],21,3951481745),s=r.addUnsigned(s,n),H=r.addUnsigned(H,a),F=r.addUnsigned(F,i),G=r.addUnsigned(G,o);return(r.wordToHex(s)+r.wordToHex(H)+r.wordToHex(F)+r.wordToHex(G)).toLowerCase()}static rotateLeft(t,e){return t<<e|t>>>32-e}static addUnsigned(t,e){let r=2147483648&t,d=2147483648&e,n=1073741824&t,a=1073741824&e,i=(1073741823&t)+(1073741823&e);return n&a?2147483648^i^r^d:n|a?1073741824&i?3221225472^i^r^d:1073741824^i^r^d:i^r^d}static F(t,e,r){return t&e|~t&r}static G(t,e,r){return t&r|e&~r}static H(t,e,r){return t^e^r}static I(t,e,r){return e^(t|~r)}static FF(t,e,d,n,a,i,o){return t=r.addUnsigned(t,r.addUnsigned(r.addUnsigned(r.F(e,d,n),a),o)),r.addUnsigned(r.rotateLeft(t,i),e)}static GG(t,e,d,n,a,i,o){return t=r.addUnsigned(t,r.addUnsigned(r.addUnsigned(r.G(e,d,n),a),o)),r.addUnsigned(r.rotateLeft(t,i),e)}static HH(t,e,d,n,a,i,o){return t=r.addUnsigned(t,r.addUnsigned(r.addUnsigned(r.H(e,d,n),a),o)),r.addUnsigned(r.rotateLeft(t,i),e)}static II(t,e,d,n,a,i,o){return t=r.addUnsigned(t,r.addUnsigned(r.addUnsigned(r.I(e,d,n),a),o)),r.addUnsigned(r.rotateLeft(t,i),e)}static convertToWordArray(t){let e,r=t.length,d=r+8,n=16*((d-d%64)/64+1),a=Array(n-1),i=0,o=0;for(;o<r;)e=(o-o%4)/4,i=o%4*8,a[e]=a[e]|t.charCodeAt(o)<<i,o++;return e=(o-o%4)/4,i=o%4*8,a[e]=a[e]|128<<i,a[n-2]=r<<3,a[n-1]=r>>>29,a}static wordToHex(t){let e,r,d="",n="";for(r=0;r<=3;r++)e=t>>>8*r&255,n="0"+e.toString(16),d+=n.substr(n.length-2,2);return d}static utf8Encode(t){t=t.replace(/\r\n/g,"\n");let e="";for(let r=0;r<t.length;r++){let d=t.charCodeAt(r);d<128?e+=String.fromCharCode(d):d>127&&d<2048?(e+=String.fromCharCode(d>>6|192),e+=String.fromCharCode(63&d|128)):(e+=String.fromCharCode(d>>12|224),e+=String.fromCharCode(d>>6&63|128),e+=String.fromCharCode(63&d|128))}return e}}return r}));
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports","jquery","../AjaxDataHandler","../Modal","../Severity"],(function(t,e,a,s,n,o){"use strict";class l{constructor(){this.elementIdentifier=".t3js-page-ce",a(()=>{a(".t3js-page-columns").length&&this.activatePasteIcons()})}static determineColumn(t){const e=t.closest("[data-colpos]");return e.length&&"undefined"!==e.data("colpos")?e.data("colpos"):0}activatePasteIcons(){const t=this;a(".t3-page-ce-wrapper-new-ce").each((e,s)=>{if(a(s).find(".t3js-toggle-new-content-element-wizard").length&&(a(".t3js-page-lang-column .t3-page-ce > .t3-page-ce").removeClass("t3js-page-ce"),top.pasteAfterLinkTemplate&&top.pasteIntoLinkTemplate)){a(s).parent().data("page")?a(s).append(top.pasteIntoLinkTemplate):a(s).append(top.pasteAfterLinkTemplate),a(s).find(".t3js-paste").on("click",e=>{e.preventDefault(),t.activatePasteModal(a(e.currentTarget))})}})}activatePasteModal(t){const e=this,s=a(t),l=s.data("url")||null,r=(TYPO3.lang["paste.modal.title.paste"]||"Paste record")+': "'+s.data("title")+'"',i=void 0!==top.TYPO3.Severity[s.data("severity")]?top.TYPO3.Severity[s.data("severity")]:top.TYPO3.Severity.info;let c="",d=[];if(s.hasClass("t3js-paste-copy")?(c=TYPO3.lang["paste.modal.pastecopy"]||"Do you want to copy the record to this position?",d=[{text:TYPO3.lang["paste.modal.button.cancel"]||"Cancel",active:!0,btnClass:"btn-default",trigger:()=>{n.currentModal.trigger("modal-dismiss")}},{text:TYPO3.lang["paste.modal.button.pastecopy"]||"Copy",btnClass:"btn-"+o.getCssClass(i),trigger:()=>{n.currentModal.trigger("modal-dismiss"),e.execute(s)}}]):(c=TYPO3.lang["paste.modal.paste"]||"Do you want to move the record to this position?",d=[{text:TYPO3.lang["paste.modal.button.cancel"]||"Cancel",active:!0,btnClass:"btn-default",trigger:()=>{n.currentModal.trigger("modal-dismiss")}},{text:TYPO3.lang["paste.modal.button.paste"]||"Move",btnClass:"btn-"+o.getCssClass(i),trigger:()=>{n.currentModal.trigger("modal-dismiss"),e.execute(s)}}]),null!==l){const t=l.contains("?")?"&":"?",e=a.param({data:s.data()});n.loadUrl(r,i,d,l+t+e)}else n.show(r,c,i,d)}execute(t){const e=l.determineColumn(t),a=t.closest(this.elementIdentifier),n=a.data("uid");let o;const r={CB:{paste:"tt_content|"+(o=void 0===n?parseInt(a.data("page"),10):0-parseInt(n,10)),update:{colPos:e,sys_language_uid:parseInt(t.closest("[data-language-uid]").data("language-uid"),10)}}};s.process(r).then(t=>{t.hasErrors||window.location.reload()})}}return new l}));
\ No newline at end of file
define(["require","exports","jquery","../AjaxDataHandler","../Modal","../Severity"],(function(t,e,a,s,n,o){"use strict";class l{constructor(){this.elementIdentifier=".t3js-page-ce",a(()=>{a(".t3js-page-columns").length&&this.activatePasteIcons()})}static determineColumn(t){const e=t.closest("[data-colpos]");return e.length&&"undefined"!==e.data("colpos")?e.data("colpos"):0}activatePasteIcons(){const t=this;a(".t3-page-ce-wrapper-new-ce").each((e,s)=>{if(a(s).find(".t3js-toggle-new-content-element-wizard").length&&(a(".t3js-page-lang-column .t3-page-ce > .t3-page-ce").removeClass("t3js-page-ce"),top.pasteAfterLinkTemplate&&top.pasteIntoLinkTemplate)){a(s).parent().data("page")?a(s).append(top.pasteIntoLinkTemplate):a(s).append(top.pasteAfterLinkTemplate),a(s).find(".t3js-paste").on("click",e=>{e.preventDefault(),t.activatePasteModal(a(e.currentTarget))})}})}activatePasteModal(t){const e=this,s=a(t),l=s.data("url")||null,r=(TYPO3.lang["paste.modal.title.paste"]||"Paste record")+': "'+s.data("title")+'"',i=void 0!==top.TYPO3.Severity[s.data("severity")]?top.TYPO3.Severity[s.data("severity")]:top.TYPO3.Severity.info;let c="",d=[];if(s.hasClass("t3js-paste-copy")?(c=TYPO3.lang["paste.modal.pastecopy"]||"Do you want to copy the record to this position?",d=[{text:TYPO3.lang["paste.modal.button.cancel"]||"Cancel",active:!0,btnClass:"btn-default",trigger:()=>{n.currentModal.trigger("modal-dismiss")}},{text:TYPO3.lang["paste.modal.button.pastecopy"]||"Copy",btnClass:"btn-"+o.getCssClass(i),trigger:()=>{n.currentModal.trigger("modal-dismiss"),e.execute(s)}}]):(c=TYPO3.lang["paste.modal.paste"]||"Do you want to move the record to this position?",d=[{text:TYPO3.lang["paste.modal.button.cancel"]||"Cancel",active:!0,btnClass:"btn-default",trigger:()=>{n.currentModal.trigger("modal-dismiss")}},{text:TYPO3.lang["paste.modal.button.paste"]||"Move",btnClass:"btn-"+o.getCssClass(i),trigger:()=>{n.currentModal.trigger("modal-dismiss"),e.execute(s)}}]),null!==l){const t=l.contains("?")?"&":"?",e=a.param({data:s.data()});n.loadUrl(r,i,d,l+t+e)}else n.show(r,c,i,d)}execute(t){const e=l.determineColumn(t),a=t.closest(this.elementIdentifier),n=a.data("uid");let o;o=void 0===n?parseInt(a.data("page"),10):0-parseInt(n,10);const r={CB:{paste:"tt_content|"+o,update:{colPos:e,sys_language_uid:parseInt(t.closest("[data-language-uid]").data("language-uid"),10)}}};s.process(r).then(t=>{t.hasErrors||window.location.reload()})}}return new l}));
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports","./Enum/Severity","jquery","./Modal","./Severity","./Icons"],(function(t,e,s,i,r,a,l){"use strict";class n{constructor(){this.setup={slides:[],settings:{},forceSelection:!0,$carousel:null},this.originalSetup=i.extend(!0,{},this.setup)}set(t,e){return this.setup.settings[t]=e,this}addSlide(t,e,i="",r=s.SeverityEnum.info,a,l){const n={identifier:t,title:e,content:i,severity:r,progressBarTitle:a,callback:l};return this.setup.slides.push(n),this}addFinalProcessingSlide(t){return t||(t=()=>{this.dismiss()}),l.getIcon("spinner-circle",l.sizes.default,null,null).then(e=>{let s=i("<div />",{class:"text-center"}).append(e);this.addSlide("final-processing-slide",top.TYPO3.lang["wizard.processing.title"],s[0].outerHTML,a.info,null,t)})}show(){let t=this.generateSlides(),e=this.setup.slides[0];r.confirm(e.title,t,e.severity,[{text:top.TYPO3.lang["wizard.button.cancel"],active:!0,btnClass:"btn-default pull-left",name:"cancel",trigger:()=>{this.getComponent().trigger("wizard-dismiss")}},{text:top.TYPO3.lang["wizard.button.prev"],btnClass:"btn-"+a.getCssClass(e.severity),name:"prev"},{text:top.TYPO3.lang["wizard.button.next"],btnClass:"btn-"+a.getCssClass(e.severity),name:"next"}],["modal-multi-step-wizard"]),this.addButtonContainer(),this.addProgressBar(),this.initializeEvents(),this.getComponent().on("wizard-visible",()=>{this.runSlideCallback(e,this.setup.$carousel.find(".item").first())}).on("wizard-dismissed",()=>{this.setup=i.extend(!0,{},this.originalSetup)})}getComponent(){return null===this.setup.$carousel&&this.generateSlides(),this.setup.$carousel}dismiss(){r.dismiss()}lockNextStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="next"]');return t.prop("disabled",!0),t}unlockNextStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="next"]');return t.prop("disabled",!1),t}lockPrevStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="prev"]');return t.prop("disabled",!0),t}unlockPrevStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="prev"]');return t.prop("disabled",!1),t}blurCancelStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="cancel"]');return t.blur(),t}initializeEvents(){let t=this.setup.$carousel.closest(".modal"),e=t.find(".modal-footer"),s=e.find('button[name="next"]'),a=e.find('button[name="prev"]');s.on("click",()=>{this.setup.$carousel.carousel("next")}),a.on("click",()=>{this.setup.$carousel.carousel("prev")}),this.setup.$carousel.on("slide.bs.carousel",e=>{"left"===e.direction?this.nextSlideChanges(t):this.prevSlideChanges(t)}).on("slid.bs.carousel",t=>{let e=this.setup.$carousel.data("currentIndex"),s=this.setup.slides[e];this.runSlideCallback(s,i(t.relatedTarget)),this.setup.forceSelection&&this.lockNextStep()});let l=this.getComponent();l.on("wizard-dismiss",this.dismiss),r.currentModal.on("hidden.bs.modal",()=>{l.trigger("wizard-dismissed")}).on("shown.bs.modal",()=>{l.trigger("wizard-visible")})}nextSlideChanges(t){let e=t.find(".modal-title"),s=t.find(".modal-footer"),i=t.find(".modal-btn-group"),r=s.find('button[name="next"]'),l=this.setup.$carousel.data("currentSlide")+1,n=this.setup.$carousel.data("currentIndex")+1;e.text(this.setup.slides[n].title),this.setup.$carousel.data("currentSlide",l),this.setup.$carousel.data("currentIndex",n),l>=this.setup.$carousel.data("realSlideCount")?(r.text(this.getProgressBarTitle(this.setup.$carousel.data("currentIndex"))),s.find(".progress-bar.first-step").width("100%").text(this.getProgressBarTitle(this.setup.$carousel.data("currentIndex"))),s.find(".progress-bar.last-step").width("0%").text(""),this.setup.forceSelection=!1):(s.find(".progress-bar.first-step").width(this.setup.$carousel.data("initialStep")*l+"%").text(this.getProgressBarTitle(n)),s.find(".progress-bar.step").width("0%").text(""),i.slideDown()),r.removeClass("btn-"+a.getCssClass(this.setup.slides[n-1].severity)).addClass("btn-"+a.getCssClass(this.setup.slides[n].severity)),t.removeClass("modal-severity-"+a.getCssClass(this.setup.slides[n-1].severity)).addClass("modal-severity-"+a.getCssClass(this.setup.slides[n].severity))}prevSlideChanges(t){let e=t.find(".modal-title"),s=t.find(".modal-footer"),i=t.find(".modal-btn-group"),r=s.find('button[name="next"]'),a=this.setup.$carousel.data("currentSlide")-1,l=this.setup.$carousel.data("currentIndex")-1;this.setup.$carousel.data("currentSlide",a),this.setup.$carousel.data("currentIndex",l),e.text(this.setup.slides[l].title),s.find(".progress-bar.last-step").width(this.setup.$carousel.data("initialStep")+"%").text(this.getProgressBarTitle(this.setup.$carousel.data("slideCount")-1)),r.text(top.TYPO3.lang["wizard.button.next"]),1===a?(s.find(".progress-bar.first-step").width(this.setup.$carousel.data("initialStep")*a+"%").text(this.getProgressBarTitle(0)),s.find(".progress-bar.step").width(this.setup.$carousel.data("initialStep")+"%").text(this.getProgressBarTitle(l+1)),i.slideUp()):(s.find(".progress-bar.first-step").width(this.setup.$carousel.data("initialStep")*a+"%").text(this.getProgressBarTitle(l)),this.setup.forceSelection=!0)}getProgressBarTitle(t){let e;return e=null===this.setup.slides[t].progressBarTitle?0===t?top.TYPO3.lang["wizard.progressStep.start"]:t>=this.setup.$carousel.data("slideCount")-1?top.TYPO3.lang["wizard.progressStep.finish"]:top.TYPO3.lang["wizard.progressStep"]+String(t+1):this.setup.slides[t].progressBarTitle}runSlideCallback(t,e){"function"==typeof t.callback&&t.callback(e,this.setup.settings,t.identifier)}addProgressBar(){let t,e=this.setup.$carousel.find(".item").length-1,s=Math.max(1,e),r=this.setup.$carousel.closest(".modal").find(".modal-footer");if(t=Math.round(100/s),this.setup.$carousel.data("initialStep",t).data("slideCount",s).data("realSlideCount",e).data("currentIndex",0).data("currentSlide",1),s>1){r.prepend(i("<div />",{class:"progress"}));for(let e=0;e<this.setup.slides.length;++e){let s;s=0===e?"progress-bar first-step":e===this.setup.$carousel.data("slideCount")-1?"progress-bar last-step inactive":"progress-bar step inactive",r.find(".progress").append(i("<div />",{role:"progressbar",class:s,"aria-valuemin":0,"aria-valuenow":t,"aria-valuemax":100}).width(t+"%").text(this.getProgressBarTitle(e)))}}}addButtonContainer(){this.setup.$carousel.closest(".modal").find(".modal-footer .btn").wrapAll('<div class="modal-btn-group" />')}generateSlides(){if(null!==this.setup.$carousel)return this.setup.$carousel;let t='<div class="carousel slide" data-ride="carousel" data-interval="false"><div class="carousel-inner" role="listbox">';for(let e=0;e<this.setup.slides.length;++e){let s=this.setup.slides[e],i=s.content;"object"==typeof i&&(i=i.html()),t+='<div class="item" data-slide="'+s.identifier+'" data-step="'+e+'">'+i+"</div>"}return t+="</div></div>",this.setup.$carousel=i(t),this.setup.$carousel.find(".item").first().addClass("active"),this.setup.$carousel}}let d;try{window.opener&&window.opener.TYPO3&&window.opener.TYPO3.MultiStepWizard&&(d=window.opener.TYPO3.MultiStepWizard),parent&&parent.window.TYPO3&&parent.window.TYPO3.MultiStepWizard&&(d=parent.window.TYPO3.MultiStepWizard),top&&top.TYPO3&&top.TYPO3.MultiStepWizard&&(d=top.TYPO3.MultiStepWizard)}catch(t){}return d||(d=new n,"undefined"!=typeof TYPO3&&(TYPO3.MultiStepWizard=d)),d}));
\ No newline at end of file
define(["require","exports","./Enum/Severity","jquery","./Modal","./Severity","./Icons"],(function(t,e,s,i,r,a,l){"use strict";class n{constructor(){this.setup={slides:[],settings:{},forceSelection:!0,$carousel:null},this.originalSetup=i.extend(!0,{},this.setup)}set(t,e){return this.setup.settings[t]=e,this}addSlide(t,e,i="",r=s.SeverityEnum.info,a,l){const n={identifier:t,title:e,content:i,severity:r,progressBarTitle:a,callback:l};return this.setup.slides.push(n),this}addFinalProcessingSlide(t){return t||(t=()=>{this.dismiss()}),l.getIcon("spinner-circle",l.sizes.default,null,null).then(e=>{let s=i("<div />",{class:"text-center"}).append(e);this.addSlide("final-processing-slide",top.TYPO3.lang["wizard.processing.title"],s[0].outerHTML,a.info,null,t)})}show(){let t=this.generateSlides(),e=this.setup.slides[0];r.confirm(e.title,t,e.severity,[{text:top.TYPO3.lang["wizard.button.cancel"],active:!0,btnClass:"btn-default pull-left",name:"cancel",trigger:()=>{this.getComponent().trigger("wizard-dismiss")}},{text:top.TYPO3.lang["wizard.button.prev"],btnClass:"btn-"+a.getCssClass(e.severity),name:"prev"},{text:top.TYPO3.lang["wizard.button.next"],btnClass:"btn-"+a.getCssClass(e.severity),name:"next"}],["modal-multi-step-wizard"]),this.addButtonContainer(),this.addProgressBar(),this.initializeEvents(),this.getComponent().on("wizard-visible",()=>{this.runSlideCallback(e,this.setup.$carousel.find(".item").first())}).on("wizard-dismissed",()=>{this.setup=i.extend(!0,{},this.originalSetup)})}getComponent(){return null===this.setup.$carousel&&this.generateSlides(),this.setup.$carousel}dismiss(){r.dismiss()}lockNextStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="next"]');return t.prop("disabled",!0),t}unlockNextStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="next"]');return t.prop("disabled",!1),t}lockPrevStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="prev"]');return t.prop("disabled",!0),t}unlockPrevStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="prev"]');return t.prop("disabled",!1),t}blurCancelStep(){let t=this.setup.$carousel.closest(".modal").find('button[name="cancel"]');return t.blur(),t}initializeEvents(){let t=this.setup.$carousel.closest(".modal"),e=t.find(".modal-footer"),s=e.find('button[name="next"]'),a=e.find('button[name="prev"]');s.on("click",()=>{this.setup.$carousel.carousel("next")}),a.on("click",()=>{this.setup.$carousel.carousel("prev")}),this.setup.$carousel.on("slide.bs.carousel",e=>{"left"===e.direction?this.nextSlideChanges(t):this.prevSlideChanges(t)}).on("slid.bs.carousel",t=>{let e=this.setup.$carousel.data("currentIndex"),s=this.setup.slides[e];this.runSlideCallback(s,i(t.relatedTarget)),this.setup.forceSelection&&this.lockNextStep()});let l=this.getComponent();l.on("wizard-dismiss",this.dismiss),r.currentModal.on("hidden.bs.modal",()=>{l.trigger("wizard-dismissed")}).on("shown.bs.modal",()=>{l.trigger("wizard-visible")})}nextSlideChanges(t){let e=t.find(".modal-title"),s=t.find(".modal-footer"),i=t.find(".modal-btn-group"),r=s.find('button[name="next"]'),l=this.setup.$carousel.data("currentSlide")+1,n=this.setup.$carousel.data("currentIndex")+1;e.text(this.setup.slides[n].title),this.setup.$carousel.data("currentSlide",l),this.setup.$carousel.data("currentIndex",n),l>=this.setup.$carousel.data("realSlideCount")?(r.text(this.getProgressBarTitle(this.setup.$carousel.data("currentIndex"))),s.find(".progress-bar.first-step").width("100%").text(this.getProgressBarTitle(this.setup.$carousel.data("currentIndex"))),s.find(".progress-bar.last-step").width("0%").text(""),this.setup.forceSelection=!1):(s.find(".progress-bar.first-step").width(this.setup.$carousel.data("initialStep")*l+"%").text(this.getProgressBarTitle(n)),s.find(".progress-bar.step").width("0%").text(""),i.slideDown()),r.removeClass("btn-"+a.getCssClass(this.setup.slides[n-1].severity)).addClass("btn-"+a.getCssClass(this.setup.slides[n].severity)),t.removeClass("modal-severity-"+a.getCssClass(this.setup.slides[n-1].severity)).addClass("modal-severity-"+a.getCssClass(this.setup.slides[n].severity))}prevSlideChanges(t){let e=t.find(".modal-title"),s=t.find(".modal-footer"),i=t.find(".modal-btn-group"),r=s.find('button[name="next"]'),a=this.setup.$carousel.data("currentSlide")-1,l=this.setup.$carousel.data("currentIndex")-1;this.setup.$carousel.data("currentSlide",a),this.setup.$carousel.data("currentIndex",l),e.text(this.setup.slides[l].title),s.find(".progress-bar.last-step").width(this.setup.$carousel.data("initialStep")+"%").text(this.getProgressBarTitle(this.setup.$carousel.data("slideCount")-1)),r.text(top.TYPO3.lang["wizard.button.next"]),1===a?(s.find(".progress-bar.first-step").width(this.setup.$carousel.data("initialStep")*a+"%").text(this.getProgressBarTitle(0)),s.find(".progress-bar.step").width(this.setup.$carousel.data("initialStep")+"%").text(this.getProgressBarTitle(l+1)),i.slideUp()):(s.find(".progress-bar.first-step").width(this.setup.$carousel.data("initialStep")*a+"%").text(this.getProgressBarTitle(l)),this.setup.forceSelection=!0)}getProgressBarTitle(t){let e;return e=null===this.setup.slides[t].progressBarTitle?0===t?top.TYPO3.lang["wizard.progressStep.start"]:t>=this.setup.$carousel.data("slideCount")-1?top.TYPO3.lang["wizard.progressStep.finish"]:top.TYPO3.lang["wizard.progressStep"]+String(t+1):this.setup.slides[t].progressBarTitle,e}runSlideCallback(t,e){"function"==typeof t.callback&&t.callback(e,this.setup.settings,t.identifier)}addProgressBar(){let t,e=this.setup.$carousel.find(".item").length-1,s=Math.max(1,e),r=this.setup.$carousel.closest(".modal").find(".modal-footer");if(t=Math.round(100/s),this.setup.$carousel.data("initialStep",t).data("slideCount",s).data("realSlideCount",e).data("currentIndex",0).data("currentSlide",1),s>1){r.prepend(i("<div />",{class:"progress"}));for(let e=0;e<this.setup.slides.length;++e){let s;s=0===e?"progress-bar first-step":e===this.setup.$carousel.data("slideCount")-1?"progress-bar last-step inactive":"progress-bar step inactive",r.find(".progress").append(i("<div />",{role:"progressbar",class:s,"aria-valuemin":0,"aria-valuenow":t,"aria-valuemax":100}).width(t+"%").text(this.getProgressBarTitle(e)))}}}addButtonContainer(){this.setup.$carousel.closest(".modal").find(".modal-footer .btn").wrapAll('<div class="modal-btn-group" />')}generateSlides(){if(null!==this.setup.$carousel)return this.setup.$carousel;let t='<div class="carousel slide" data-ride="carousel" data-interval="false"><div class="carousel-inner" role="listbox">';for(let e=0;e<this.setup.slides.length;++e){let s=this.setup.slides[e],i=s.content;"object"==typeof i&&(i=i.html()),t+='<div class="item" data-slide="'+s.identifier+'" data-step="'+e+'">'+i+"</div>"}return t+="</div></div>",this.setup.$carousel=i(t),this.setup.$carousel.find(".item").first().addClass("active"),this.setup.$carousel}}let d;try{window.opener&&window.opener.TYPO3&&window.opener.TYPO3.MultiStepWizard&&(d=window.opener.TYPO3.MultiStepWizard),parent&&parent.window.TYPO3&&parent.window.TYPO3.MultiStepWizard&&(d=parent.window.TYPO3.MultiStepWizard),top&&top.TYPO3&&top.TYPO3.MultiStepWizard&&(d=top.TYPO3.MultiStepWizard)}catch(t){}return d||(d=new n,"undefined"!=typeof TYPO3&&(TYPO3.MultiStepWizard=d)),d}));
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports","../Enum/Viewport/ScaffoldIdentifier","./AbstractContainer","jquery","../Event/ClientRequest","../Event/InteractionRequest","./Loader","../Utility","../Event/TriggerRequest"],(function(e,t,r,n,o,l,i,s,c,u){"use strict";class f extends n.AbstractContainer{get(){return o(r.ScaffoldIdentifierEnum.contentModuleIframe)[0].contentWindow}beforeSetUrl(e){return this.consumerScope.invoke(new u("typo3.beforeSetUrl",e))}setUrl(e,t){let n;return null===this.resolveIFrameElement()?((n=o.Deferred()).reject(),n):(t instanceof i||(t=new l("typo3.setUrl",null)),(n=this.consumerScope.invoke(new u("typo3.setUrl",t))).then(()=>{s.start(),o(r.ScaffoldIdentifierEnum.contentModuleIframe).attr("src",e).one("load",()=>{s.finish()})}),n)}getUrl(){return o(r.ScaffoldIdentifierEnum.contentModuleIframe).attr("src")}refresh(e){let t;const r=this.resolveIFrameElement();return null===r?((t=o.Deferred()).reject(),t):((t=this.consumerScope.invoke(new u("typo3.refresh",e))).then(()=>{r.contentWindow.location.reload()}),t)}getIdFromUrl(){return this.getUrl?parseInt(c.getParameterFromUrl(this.getUrl(),"id"),10):0}resolveIFrameElement(){const e=o(r.ScaffoldIdentifierEnum.contentModuleIframe+":first");return 0===e.length?null:e.get(0)}}return f}));
\ No newline at end of file
define(["require","exports","../Enum/Viewport/ScaffoldIdentifier","./AbstractContainer","jquery","../Event/ClientRequest","../Event/InteractionRequest","./Loader","../Utility","../Event/TriggerRequest"],(function(e,t,r,n,o,l,i,s,c,u){"use strict";class f extends n.AbstractContainer{get(){return o(r.ScaffoldIdentifierEnum.contentModuleIframe)[0].contentWindow}beforeSetUrl(e){return this.consumerScope.invoke(new u("typo3.beforeSetUrl",e))}setUrl(e,t){let n;return null===this.resolveIFrameElement()?(n=o.Deferred(),n.reject(),n):(t instanceof i||(t=new l("typo3.setUrl",null)),n=this.consumerScope.invoke(new u("typo3.setUrl",t)),n.then(()=>{s.start(),o(r.ScaffoldIdentifierEnum.contentModuleIframe).attr("src",e).one("load",()=>{s.finish()})}),n)}getUrl(){return o(r.ScaffoldIdentifierEnum.contentModuleIframe).attr("src")}refresh(e){let t;const r=this.resolveIFrameElement();return null===r?(t=o.Deferred(),t.reject(),t):(t=this.consumerScope.invoke(new u("typo3.refresh",e)),t.then(()=>{r.contentWindow.location.reload()}),t)}getIdFromUrl(){return this.getUrl?parseInt(c.getParameterFromUrl(this.getUrl(),"id"),10):0}resolveIFrameElement(){const e=o(r.ScaffoldIdentifierEnum.contentModuleIframe+":first");return 0===e.length?null:e.get(0)}}return f}));
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports","jquery","TYPO3/CMS/Core/Ajax/AjaxRequest"],(function(e,t,a,r){"use strict";let o=new class{constructor(){this.options={containerSelector:"#typo3-permissionList"},this.ajaxUrl=TYPO3.settings.ajaxUrls.user_access_permissions,this.initializeEvents()}setCheck(e,t){if(document.editform[t]){let a=document.editform[t].value;for(let t=1;t<=5;t++)document.editform[e+"["+t+"]"].checked=a&Math.pow(2,t-1)}}checkChange(e,t){let a=0;for(let t=1;t<=5;t++)document.editform[e+"["+t+"]"].checked&&(a|=Math.pow(2,t-1));document.editform[t].value=a|("tx_beuser_system_beusertxpermission[check][perms_user]"===e?1:0),this.setCheck(e,t)}setPermissions(e){let t=e.data("page"),o=e.data("who"),n="#"+t+"_"+o;new r(this.ajaxUrl).post({page:t,who:o,permissions:e.data("permissions"),mode:e.data("mode"),bits:e.data("bits")}).then(async e=>{const t=await e.resolve();a(n).replaceWith(t),a(n).find("span").tooltip()})}toggleEditLock(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"toggle_edit_lock",page:t,editLockState:e.data("lockstate")}).then(async e=>{a("#el_"+t).replaceWith(await e.resolve())})}changeOwner(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"change_owner",page:t,ownerUid:e.data("owner"),newOwnerUid:a("#new_page_owner").val()}).then(async e=>{a("#o_"+t).replaceWith(await e.resolve())})}showChangeOwnerSelector(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"show_change_owner_selector",page:t,ownerUid:e.data("owner"),username:e.data("username")}).then(async e=>{a("#o_"+t).replaceWith(await e.resolve())})}restoreOwner(e){let t=e.data("page"),r=e.data("username"),o=r;void 0===r&&(o=(r=a("<span>",{class:"not_set",text:"[not set]"})).html(),r=r.text());let n=a("<span/>",{id:"o_"+t}),s=a("<a/>",{class:"ug_selector changeowner","data-page":t,"data-owner":e.data("owner"),"data-username":o,text:r});n.append(s),a("#o_"+t).replaceWith(n)}changeGroup(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"change_group",page:t,groupUid:e.data("groupId"),newGroupUid:a("#new_page_group").val()}).then(async e=>{a("#g_"+t).replaceWith(await e.resolve())})}showChangeGroupSelector(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"show_change_group_selector",page:t,groupUid:e.data("groupId"),groupname:e.data("groupname")}).then(async e=>{a("#g_"+t).replaceWith(await e.resolve())})}restoreGroup(e){let t=e.data("page"),r=e.data("groupname"),o=r;void 0===r&&(o=(r=a("<span>",{class:"not_set",text:"[not set]"})).html(),r=r.text());let n=a("<span/>",{id:"g_"+t}),s=a("<a/>",{class:"ug_selector changegroup","data-page":t,"data-group":e.data("groupId"),"data-groupname":o,text:r});n.append(s),a("#g_"+t).replaceWith(n)}initializeEvents(){a(this.options.containerSelector).on("click",".change-permission",e=>{e.preventDefault(),this.setPermissions(a(e.currentTarget))}).on("click",".editlock",e=>{e.preventDefault(),this.toggleEditLock(a(e.currentTarget))}).on("click",".changeowner",e=>{e.preventDefault(),this.showChangeOwnerSelector(a(e.currentTarget))}).on("click",".changegroup",e=>{e.preventDefault(),this.showChangeGroupSelector(a(e.currentTarget))}).on("click",".restoreowner",e=>{e.preventDefault(),this.restoreOwner(a(e.currentTarget))}).on("click",".saveowner",e=>{e.preventDefault(),this.changeOwner(a(e.currentTarget))}).on("click",".restoregroup",e=>{e.preventDefault(),this.restoreGroup(a(e.currentTarget))}).on("click",".savegroup",e=>{e.preventDefault(),this.changeGroup(a(e.currentTarget))})}};return TYPO3.Permissions=o,o}));
\ No newline at end of file
define(["require","exports","jquery","TYPO3/CMS/Core/Ajax/AjaxRequest"],(function(e,t,a,r){"use strict";let o=new class{constructor(){this.options={containerSelector:"#typo3-permissionList"},this.ajaxUrl=TYPO3.settings.ajaxUrls.user_access_permissions,this.initializeEvents()}setCheck(e,t){if(document.editform[t]){let a=document.editform[t].value;for(let t=1;t<=5;t++)document.editform[e+"["+t+"]"].checked=a&Math.pow(2,t-1)}}checkChange(e,t){let a=0;for(let t=1;t<=5;t++)document.editform[e+"["+t+"]"].checked&&(a|=Math.pow(2,t-1));document.editform[t].value=a|("tx_beuser_system_beusertxpermission[check][perms_user]"===e?1:0),this.setCheck(e,t)}setPermissions(e){let t=e.data("page"),o=e.data("who"),n="#"+t+"_"+o;new r(this.ajaxUrl).post({page:t,who:o,permissions:e.data("permissions"),mode:e.data("mode"),bits:e.data("bits")}).then(async e=>{const t=await e.resolve();a(n).replaceWith(t),a(n).find("span").tooltip()})}toggleEditLock(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"toggle_edit_lock",page:t,editLockState:e.data("lockstate")}).then(async e=>{a("#el_"+t).replaceWith(await e.resolve())})}changeOwner(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"change_owner",page:t,ownerUid:e.data("owner"),newOwnerUid:a("#new_page_owner").val()}).then(async e=>{a("#o_"+t).replaceWith(await e.resolve())})}showChangeOwnerSelector(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"show_change_owner_selector",page:t,ownerUid:e.data("owner"),username:e.data("username")}).then(async e=>{a("#o_"+t).replaceWith(await e.resolve())})}restoreOwner(e){let t=e.data("page"),r=e.data("username"),o=r;void 0===r&&(r=a("<span>",{class:"not_set",text:"[not set]"}),o=r.html(),r=r.text());let n=a("<span/>",{id:"o_"+t}),s=a("<a/>",{class:"ug_selector changeowner","data-page":t,"data-owner":e.data("owner"),"data-username":o,text:r});n.append(s),a("#o_"+t).replaceWith(n)}changeGroup(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"change_group",page:t,groupUid:e.data("groupId"),newGroupUid:a("#new_page_group").val()}).then(async e=>{a("#g_"+t).replaceWith(await e.resolve())})}showChangeGroupSelector(e){let t=e.data("page");new r(this.ajaxUrl).post({action:"show_change_group_selector",page:t,groupUid:e.data("groupId"),groupname:e.data("groupname")}).then(async e=>{a("#g_"+t).replaceWith(await e.resolve())})}restoreGroup(e){let t=e.data("page"),r=e.data("groupname"),o=r;void 0===r&&(r=a("<span>",{class:"not_set",text:"[not set]"}),o=r.html(),r=r.text());let n=a("<span/>",{id:"g_"+t}),s=a("<a/>",{class:"ug_selector changegroup","data-page":t,"data-group":e.data("groupId"),"data-groupname":o,text:r});n.append(s),a("#g_"+t).replaceWith(n)}initializeEvents(){a(this.options.containerSelector).on("click",".change-permission",e=>{e.preventDefault(),this.setPermissions(a(e.currentTarget))}).on("click",".editlock",e=>{e.preventDefault(),this.toggleEditLock(a(e.currentTarget))}).on("click",".changeowner",e=>{e.preventDefault(),this.showChangeOwnerSelector(a(e.currentTarget))}).on("click",".changegroup",e=>{e.preventDefault(),this.showChangeGroupSelector(a(e.currentTarget))}).on("click",".restoreowner",e=>{e.preventDefault(),this.restoreOwner(a(e.currentTarget))}).on("click",".saveowner",e=>{e.preventDefault(),this.changeOwner(a(e.currentTarget))}).on("click",".restoregroup",e=>{e.preventDefault(),this.restoreGroup(a(e.currentTarget))}).on("click",".savegroup",e=>{e.preventDefault(),this.changeGroup(a(e.currentTarget))})}};return TYPO3.Permissions=o,o}));
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
.dashboard-modal-tabpanel .nav{margin:-15px -15px 0;padding:15px 15px 0}.dashboard-modal-items{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;margin-left:-10px;margin-right:-10px}.dashboard-modal-item{position:relative;width:100%;padding:10px}@media screen and (min-width:768px){.dashboard-modal-item{width:50%}}.dashboard-modal-item-block{display:-webkit-box;display:flex;font-weight:inherit;-webkit-box-align:center;align-items:center;height:100%;padding:20px;border:1px solid #cacaca;background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.15);cursor:pointer}.dashboard-modal-item-checkBox{position:absolute;width:0;height:0;opacity:0;cursor:pointer}.dashboard-modal-item-checkBox:checked~.dashboard-modal-item-block{border:1px solid #313131}.dashboard-modal-item-icon{margin-right:20px}.dashboard-modal-item-title{display:block;font-weight:700}
\ No newline at end of file
.dashboard-modal-tabpanel .nav{margin:-15px -15px 0;padding:15px 15px 0}.dashboard-modal-items{display:flex;flex-flow:row wrap;margin-left:-10px;margin-right:-10px}.dashboard-modal-item{position:relative;width:100%;padding:10px}@media screen and (min-width:768px){.dashboard-modal-item{width:50%}}.dashboard-modal-item-block{display:flex;font-weight:inherit;align-items:center;height:100%;padding:20px;border:1px solid #cacaca;background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.15);cursor:pointer}.dashboard-modal-item-checkBox{position:absolute;width:0;height:0;opacity:0;cursor:pointer}.dashboard-modal-item-checkBox:checked~.dashboard-modal-item-block{border:1px solid #313131}.dashboard-modal-item-icon{margin-right:20px}.dashboard-modal-item-title{display:block;font-weight:700}
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
.module.module{background-color:#eaeaea}.module.module h1{line-height:calc(48 / 32);margin-bottom:20px;font-weight:900;font-size:32px}.dashboard-header{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-align:center;align-items:center;-webkit-box-pack:justify;justify-content:space-between;margin:-24px -24px 24px;padding:24px 24px 0;background:#dadada;border-bottom:1px solid #cdcdcd}.dashboard-tabs{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-align:center;align-items:center}.dashboard-tab{border-radius:5px 5px 0 0;display:inline-block;padding:12px;margin-right:2px;background:#bababa;color:#000}.dashboard-tab:focus,.dashboard-tab:hover{text-decoration:none;background:#adadad;color:#000}.dashboard-tab--active{background:#ff8700;color:#fff}.dashboard-tab--active:focus,.dashboard-tab--active:hover{text-decoration:none;background:#e67a00;color:#f2f2f2}.dashboard-button-tab-add{margin:5px}.dashboard-configuration{padding:10px 0}.dashboard-configuration-button{margin-left:10px;color:#737373;text-decoration:none}.dashboard-configuration-button:focus,.dashboard-configuration-button:hover{color:#ff8700;text-decoration:none}.dashboard-configuration-button:active{color:#000;text-decoration:none}.dashboard-empty{position:relative}.dashboard-empty-content{background-color:rgba(0,0,0,.05);border:2px dashed rgba(0,0,0,.15);padding:2.5em;text-align:center}.dashboard-empty-content h3{font-size:1.5em;margin-bottom:.5em}.dashboard-empty-content p{font-size:1.25em;margin-bottom:1em}.dashboard-empty-content>:first-child{margin-top:0}.dashboard-empty-content>:last-child{margin-bottom:0}.dashboard-grid{position:relative;margin-right:-10px;margin-left:-10px}.dashboard-item{position:absolute;z-index:1;padding:10px;width:100%;height:auto}@media screen and (min-width:750px){.dashboard-item{width:50%;height:200px}}@media screen and (min-width:1285px){.dashboard-item{width:25%}}.dashboard-item.muuri-item-positioning{z-index:2}.dashboard-item.muuri-item-positioning .widget-remove{display:none}.dashboard-item.muuri-item-placeholder{z-index:2;margin:0;opacity:.5}.dashboard-item.muuri-item-placeholder .widget{border:1px dashed #737373}.dashboard-item.muuri-item-placeholder .widget-remove{display:none}.dashboard-item.muuri-item-dragging,.dashboard-item.muuri-item-releasing{z-index:9999}.dashboard-item.muuri-item-releasing .widget-remove{display:none}.dashboard-item.muuri-item-dragging{cursor:move}.dashboard-item.muuri-item-hidden{z-index:0}.dashboard-item.widget-waiting{line-height:200px}.dashboard-item--enableSelect{-webkit-user-select:auto!important;-moz-user-select:auto!important;-ms-user-select:auto!important;user-select:auto!important}@media screen and (min-width:750px){.dashboard-item--h4{height:400px}}@media screen and (min-width:750px){.dashboard-item--h6{height:600px}}.dashboard-item--w4{width:100%}@media screen and (min-width:1285px){.dashboard-item--w4{width:50%}}.dashboard-item-content{position:relative;width:100%;height:100%}.dashboard-button{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;border-radius:3px;background:#313131;color:#fff;padding:8px;text-decoration:none}.dashboard-button:focus,.dashboard-button:hover{text-decoration:none;background:#ff8700;color:#fff}.dashboard-button .dashboard-button-icon .icon{display:block}.dashboard-button .dashboard-button-icon+.dashboard-button-text{margin-left:.25em;margin-right:.25em}.dashboard-button-add{position:fixed;padding:16px;right:24px;bottom:24px;z-index:2}.widget{height:100%;border-radius:2px;overflow:hidden;background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.15);color:#000}.widget:hover .widget-actions{opacity:1}.widget-content{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;height:100%}.widget-content-title{padding:10px 20px;padding-right:76px;border-bottom:1px solid #d7d7d7;font-family:"Source Sans Pro",sans-serif;font-size:16px;font-weight:700;line-height:1.25}.widget-content-title span{overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis}.widget-content-main{-webkit-box-flex:1;flex-grow:1;overflow-y:auto;padding:20px}.widget-content-footer{padding:20px;padding-top:0}.widget-actions{position:absolute;display:-webkit-box;display:flex;top:calc(((16px * 1.25)/ 2) + (20px / 2));right:10px;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.widget-action{width:28px;height:28px;position:relative;color:#737373;text-align:center}.widget-action:focus,.widget-action:hover{color:#ff8700}.widget-action .icon{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.widget-action-move{cursor:-webkit-grab;cursor:grab}.widget-waiting{position:absolute;top:50%;left:50%;line-height:300px;margin-right:-50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.widget-error{padding:20px;position:absolute;top:50%;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#c83c3c}.widget-chart{width:100%;height:100%}.widget-edit{width:45px;text-align:center}.widget-editIcon{color:#000}.widget-editIcon:focus,.widget-editIcon:hover{color:#ff8700}.widget-table{width:100%;color:#000}.widget-table thead tr{background-color:transparent}.widget-table tr:nth-child(odd){background-color:transparent}.widget-table tr:nth-child(even){background-color:#f2f2f2}.widget-table tbody td,.widget-table tbody th{border-top:1px solid #e0e0e0}.widget-table tbody:first-child tr:first-child td,.widget-table tbody:first-child tr:first-child th{border-top:none}.widget-table td,.widget-table th{padding:10px}.widget-table td>:first-child,.widget-table th>:first-child{margin-top:0}.widget-table td>:last-child,.widget-table th>:last-child{margin-bottom:0}.widget-table th{font-weight:700}.widget-content-main .widget-table-wrapper{margin-top:-10px;margin-left:-20px;margin-right:-20px}.widget-content-main .widget-table-wrapper td:first-child,.widget-content-main .widget-table-wrapper th:first-child{padding-left:20px}.widget-content-main .widget-table-wrapper td:last-child,.widget-content-main .widget-table-wrapper th:last-child{padding-right:20px}.widget-cta{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;background-color:#313131;color:#fff;border-radius:3px;padding:8px}.widget-cta:focus,.widget-cta:hover{text-decoration:none;background:#ff8700;color:#fff}.widget-cta-icon{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:18px;height:18px;margin-right:12px;color:#fff}.widget-doughnut--value{line-height:1.3;font-weight:900;font-size:36px;text-align:center}.widget-doughnut--meta{margin-top:10px;font-style:italic;color:#737373;text-align:center}.dashboard-widget-number--icon{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:42px;margin-right:20px;color:#000}.dashboard-widget-number--content{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-pack:center;justify-content:center}.dashboard-widget-number--title{line-height:1.3;margin-bottom:5px;font-size:16px;color:#000}.dashboard-widget-number--number{line-height:1.3;font-weight:900;font-size:24px}
\ No newline at end of file
.module.module{background-color:#eaeaea}.module.module h1{line-height:calc(48 / 32);margin-bottom:20px;font-weight:900;font-size:32px}.dashboard-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:-24px -24px 24px;padding:24px 24px 0;background:#dadada;border-bottom:1px solid #cdcdcd}.dashboard-tabs{display:flex;flex-wrap:wrap;align-items:center}.dashboard-tab{border-radius:5px 5px 0 0;display:inline-block;padding:12px;margin-right:2px;background:#bababa;color:#000}.dashboard-tab:focus,.dashboard-tab:hover{text-decoration:none;background:#adadad;color:#000}.dashboard-tab--active{background:#ff8700;color:#fff}.dashboard-tab--active:focus,.dashboard-tab--active:hover{text-decoration:none;background:#e67a00;color:#f2f2f2}.dashboard-button-tab-add{margin:5px}.dashboard-configuration{padding:10px 0}.dashboard-configuration-button{margin-left:10px;color:#737373;text-decoration:none}.dashboard-configuration-button:focus,.dashboard-configuration-button:hover{color:#ff8700;text-decoration:none}.dashboard-configuration-button:active{color:#000;text-decoration:none}.dashboard-empty{position:relative}.dashboard-empty-content{background-color:rgba(0,0,0,.05);border:2px dashed rgba(0,0,0,.15);padding:2.5em;text-align:center}.dashboard-empty-content h3{font-size:1.5em;margin-bottom:.5em}.dashboard-empty-content p{font-size:1.25em;margin-bottom:1em}.dashboard-empty-content>:first-child{margin-top:0}.dashboard-empty-content>:last-child{margin-bottom:0}.dashboard-grid{position:relative;margin-right:-10px;margin-left:-10px}.dashboard-item{position:absolute;z-index:1;padding:10px;width:100%;height:auto}@media screen and (min-width:750px){.dashboard-item{width:50%;height:200px}}@media screen and (min-width:1285px){.dashboard-item{width:25%}}.dashboard-item.muuri-item-positioning{z-index:2}.dashboard-item.muuri-item-positioning .widget-remove{display:none}.dashboard-item.muuri-item-placeholder{z-index:2;margin:0;opacity:.5}.dashboard-item.muuri-item-placeholder .widget{border:1px dashed #737373}.dashboard-item.muuri-item-placeholder .widget-remove{display:none}.dashboard-item.muuri-item-dragging,.dashboard-item.muuri-item-releasing{z-index:9999}.dashboard-item.muuri-item-releasing .widget-remove{display:none}.dashboard-item.muuri-item-dragging{cursor:move}.dashboard-item.muuri-item-hidden{z-index:0}.dashboard-item.widget-waiting{line-height:200px}.dashboard-item--enableSelect{-webkit-user-select:auto!important;-moz-user-select:auto!important;-ms-user-select:auto!important;user-select:auto!important}@media screen and (min-width:750px){.dashboard-item--h4{height:400px}}@media screen and (min-width:750px){.dashboard-item--h6{height:600px}}.dashboard-item--w4{width:100%}@media screen and (min-width:1285px){.dashboard-item--w4{width:50%}}.dashboard-item-content{position:relative;width:100%;height:100%}.dashboard-button{display:inline-flex;align-items:center;border-radius:3px;background:#313131;color:#fff;padding:8px;text-decoration:none}.dashboard-button:focus,.dashboard-button:hover{text-decoration:none;background:#ff8700;color:#fff}.dashboard-button .dashboard-button-icon .icon{display:block}.dashboard-button .dashboard-button-icon+.dashboard-button-text{margin-left:.25em;margin-right:.25em}.dashboard-button-add{position:fixed;padding:16px;right:24px;bottom:24px;z-index:2}.widget{height:100%;border-radius:2px;overflow:hidden;background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.15);color:#000}.widget:hover .widget-actions{opacity:1}.widget-content{display:flex;flex-direction:column;height:100%}.widget-content-title{padding:10px 20px;padding-right:76px;border-bottom:1px solid #d7d7d7;font-family:"Source Sans Pro",sans-serif;font-size:16px;font-weight:700;line-height:1.25}.widget-content-title span{overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis}.widget-content-main{flex-grow:1;overflow-y:auto;padding:20px}.widget-content-footer{padding:20px;padding-top:0}.widget-actions{position:absolute;display:flex;top:calc(((16px * 1.25)/ 2) + (20px / 2));right:10px;transform:translate(0,-50%);opacity:0;transition:opacity .2s ease-in-out}.widget-action{width:28px;height:28px;position:relative;color:#737373;text-align:center}.widget-action:focus,.widget-action:hover{color:#ff8700}.widget-action .icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.widget-action-move{cursor:-webkit-grab;cursor:grab}.widget-waiting{position:absolute;top:50%;left:50%;line-height:300px;margin-right:-50%;transform:translate(-50%,-50%)}.widget-error{padding:20px;position:absolute;top:50%;text-align:center;transform:translateY(-50%);color:#c83c3c}.widget-chart{width:100%;height:100%}.widget-edit{width:45px;text-align:center}.widget-editIcon{color:#000}.widget-editIcon:focus,.widget-editIcon:hover{color:#ff8700}.widget-table{width:100%;color:#000}.widget-table thead tr{background-color:transparent}.widget-table tr:nth-child(odd){background-color:transparent}.widget-table tr:nth-child(even){background-color:#f2f2f2}.widget-table tbody td,.widget-table tbody th{border-top:1px solid #e0e0e0}.widget-table tbody:first-child tr:first-child td,.widget-table tbody:first-child tr:first-child th{border-top:none}.widget-table td,.widget-table th{padding:10px}.widget-table td>:first-child,.widget-table th>:first-child{margin-top:0}.widget-table td>:last-child,.widget-table th>:last-child{margin-bottom:0}.widget-table th{font-weight:700}.widget-content-main .widget-table-wrapper{margin-top:-10px;margin-left:-20px;margin-right:-20px}.widget-content-main .widget-table-wrapper td:first-child,.widget-content-main .widget-table-wrapper th:first-child{padding-left:20px}.widget-content-main .widget-table-wrapper td:last-child,.widget-content-main .widget-table-wrapper th:last-child{padding-right:20px}.widget-cta{display:flex;justify-content:center;align-items:center;background-color:#313131;color:#fff;border-radius:3px;padding:8px}.widget-cta:focus,.widget-cta:hover{text-decoration:none;background:#ff8700;color:#fff}.widget-cta-icon{display:flex;justify-content:center;align-items:center;width:18px;height:18px;margin-right:12px;color:#fff}.widget-doughnut--value{line-height:1.3;font-weight:900;font-size:36px;text-align:center}.widget-doughnut--meta{margin-top:10px;font-style:italic;color:#737373;text-align:center}.dashboard-widget-number--icon{display:flex;justify-content:center;align-items:center;width:42px;margin-right:20px;color:#000}.dashboard-widget-number--content{display:flex;flex-direction:column;justify-content:center}.dashboard-widget-number--title{line-height:1.3;margin-bottom:5px;font-size:16px;color:#000}.dashboard-widget-number--number{line-height:1.3;font-weight:900;font-size:24px}
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports","jquery","nprogress","TYPO3/CMS/Backend/Modal","TYPO3/CMS/Backend/Tooltip","TYPO3/CMS/Backend/Severity","TYPO3/CMS/Core/SecurityUtility","./Repository","./Update","./UploadForm","datatables","TYPO3/CMS/Backend/Input/Clearable"],(function(e,t,n,a,o,i,r,s,l,c,d){"use strict";const p=new s;var u;!function(e){e.extensionlist="#typo3-extension-list",e.searchField="#Tx_Extensionmanager_extensionkey"}(u||(u={}));class m{constructor(){this.bindExtensionListActions=()=>{n(".removeExtension").not(".transformed").each((e,t)=>{const a=n(t);a.data("href",a.attr("href")),a.attr("href","#"),a.addClass("transformed"),a.click(()=>{o.confirm(TYPO3.lang["extensionList.removalConfirmation.title"],TYPO3.lang["extensionList.removalConfirmation.question"],r.error,[{text:TYPO3.lang["button.cancel"],active:!0,btnClass:"btn-default",trigger:()=>{o.dismiss()}},{text:TYPO3.lang["button.remove"],btnClass:"btn-danger",trigger:()=>{this.removeExtensionFromDisk(a),o.dismiss()}}])})})},n(()=>{n.fn.dataTableExt.oSort["extension-asc"]=(e,t)=>m.extensionCompare(e,t),n.fn.dataTableExt.oSort["extension-desc"]=(e,t)=>{return-1*m.extensionCompare(e,t)},n.fn.dataTableExt.oSort["version-asc"]=(e,t)=>{return-1*m.versionCompare(e,t)},n.fn.dataTableExt.oSort["version-desc"]=(e,t)=>m.versionCompare(e,t),this.Update=new c,this.UploadForm=new d,this.Repository=new l;const e=this.manageExtensionListing();let t;n(document).on("click",".onClickMaskExtensionManager",()=>{a.start()}).on("click","a[data-action=update-extension]",e=>{e.preventDefault(),n.ajax({url:n(e.currentTarget).attr("href"),dataType:"json",beforeSend:()=>{a.start()},success:this.updateExtension})}).on("change","input[name=unlockDependencyIgnoreButton]",e=>{n(".t3js-dependencies").toggleClass("disabled",!n(e.currentTarget).prop("checked"))}),null!==(t=document.querySelector(u.searchField))&&t.clearable({onClear:()=>{e.search("").draw()}}),n(document).on("click",".t3-button-action-installdistribution",()=>{a.start()}),this.Repository.initDom(),this.Update.initializeEvents(),this.UploadForm.initializeEvents(),i.initialize("#typo3-extension-list [title]",{delay:{show:500,hide:100},trigger:"hover",container:"body"})})}static getUrlVars(){let e=[],t=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(let n of t){const[t,a]=n.split("=");e.push(t),e[t]=a}return e}static versionCompare(e,t){if(e===t)return 0;const n=e.split("."),a=t.split("."),o=Math.min(n.length,a.length);for(let e=0;e<o;e++){if(parseInt(n[e],10)>parseInt(a[e],10))return 1;if(parseInt(n[e],10)<parseInt(a[e],10))return-1}return n.length>a.length?1:n.length<a.length?-1:0}static extensionCompare(e,t){const n=document.createElement("div");n.innerHTML=e;const a=n.textContent||n.innerText||e;n.innerHTML=t;const o=n.textContent||n.innerText||t;return a.trim().localeCompare(o.trim())}manageExtensionListing(){const e=n(u.searchField),t=n(u.extensionlist).DataTable({paging:!1,dom:"lrtip",lengthChange:!1,pageLength:15,stateSave:!0,info:!1,drawCallback:this.bindExtensionListActions,columns:[null,null,{type:"extension"},null,{type:"version"},{orderable:!1},null,{orderable:!1}]});e.parents("form").on("submit",()=>!1);const a=m.getUrlVars(),o=a.search?a.search:t.search();return e.val(o),e.on("input",e=>{t.search(n(e.currentTarget).val()).draw()}),t}removeExtensionFromDisk(e){n.ajax({url:e.data("href"),beforeSend:()=>{a.start()},success:()=>{location.reload()},complete:()=>{a.done()}})}updateExtension(e){let t=0;const i=n("<form>");n.each(e.updateComments,(e,a)=>{const o=n("<input>").attr({type:"radio",name:"version"}).val(e);0===t&&o.attr("checked","checked"),i.append([n("<h3>").append([o," "+p.encodeHtml(e)]),n("<div>").append(a.replace(/(\r\n|\n\r|\r|\n)/g,"\n").split(/\n/).map(e=>p.encodeHtml(e)).join("<br>"))]),t++});const s=n("<div>").append([n("<h1>").text(TYPO3.lang["extensionList.updateConfirmation.title"]),n("<h2>").text(TYPO3.lang["extensionList.updateConfirmation.message"]),i]);a.done(),o.confirm(TYPO3.lang["extensionList.updateConfirmation.questionVersionComments"],s,r.warning,[{text:TYPO3.lang["button.cancel"],active:!0,btnClass:"btn-default",trigger:()=>{o.dismiss()}},{text:TYPO3.lang["button.updateExtension"],btnClass:"btn-warning",trigger:()=>{n.ajax({url:e.url,data:{tx_extensionmanager_tools_extensionmanagerextensionmanager:{version:n("input:radio[name=version]:checked",o.currentModal).val()}},dataType:"json",beforeSend:()=>{a.start()},complete:()=>{location.reload()}}),o.dismiss()}}])}}let g=new m;return void 0===TYPO3.ExtensionManager&&(TYPO3.ExtensionManager=g),g}));
\ No newline at end of file
define(["require","exports","jquery","nprogress","TYPO3/CMS/Backend/Modal","TYPO3/CMS/Backend/Tooltip","TYPO3/CMS/Backend/Severity","TYPO3/CMS/Core/SecurityUtility","./Repository","./Update","./UploadForm","datatables","TYPO3/CMS/Backend/Input/Clearable"],(function(e,t,n,a,o,i,r,s,l,c,d){"use strict";const p=new s;var m;!function(e){e.extensionlist="#typo3-extension-list",e.searchField="#Tx_Extensionmanager_extensionkey"}(m||(m={}));class u{constructor(){this.bindExtensionListActions=()=>{n(".removeExtension").not(".transformed").each((e,t)=>{const a=n(t);a.data("href",a.attr("href")),a.attr("href","#"),a.addClass("transformed"),a.click(()=>{o.confirm(TYPO3.lang["extensionList.removalConfirmation.title"],TYPO3.lang["extensionList.removalConfirmation.question"],r.error,[{text:TYPO3.lang["button.cancel"],active:!0,btnClass:"btn-default",trigger:()=>{o.dismiss()}},{text:TYPO3.lang["button.remove"],btnClass:"btn-danger",trigger:()=>{this.removeExtensionFromDisk(a),o.dismiss()}}])})})},n(()=>{n.fn.dataTableExt.oSort["extension-asc"]=(e,t)=>u.extensionCompare(e,t),n.fn.dataTableExt.oSort["extension-desc"]=(e,t)=>-1*u.extensionCompare(e,t),n.fn.dataTableExt.oSort["version-asc"]=(e,t)=>-1*u.versionCompare(e,t),n.fn.dataTableExt.oSort["version-desc"]=(e,t)=>u.versionCompare(e,t),this.Update=new c,this.UploadForm=new d,this.Repository=new l;const e=this.manageExtensionListing();let t;n(document).on("click",".onClickMaskExtensionManager",()=>{a.start()}).on("click","a[data-action=update-extension]",e=>{e.preventDefault(),n.ajax({url:n(e.currentTarget).attr("href"),dataType:"json",beforeSend:()=>{a.start()},success:this.updateExtension})}).on("change","input[name=unlockDependencyIgnoreButton]",e=>{n(".t3js-dependencies").toggleClass("disabled",!n(e.currentTarget).prop("checked"))}),null!==(t=document.querySelector(m.searchField))&&t.clearable({onClear:()=>{e.search("").draw()}}),n(document).on("click",".t3-button-action-installdistribution",()=>{a.start()}),this.Repository.initDom(),this.Update.initializeEvents(),this.UploadForm.initializeEvents(),i.initialize("#typo3-extension-list [title]",{delay:{show:500,hide:100},trigger:"hover",container:"body"})})}static getUrlVars(){let e=[],t=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(let n of t){const[t,a]=n.split("=");e.push(t),e[t]=a}return e}static versionCompare(e,t){if(e===t)return 0;const n=e.split("."),a=t.split("."),o=Math.min(n.length,a.length);for(let e=0;e<o;e++){if(parseInt(n[e],10)>parseInt(a[e],10))return 1;if(parseInt(n[e],10)<parseInt(a[e],10))return-1}return n.length>a.length?1:n.length<a.length?-1:0}static extensionCompare(e,t){const n=document.createElement("div");n.innerHTML=e;const a=n.textContent||n.innerText||e;n.innerHTML=t;const o=n.textContent||n.innerText||t;return a.trim().localeCompare(o.trim())}manageExtensionListing(){const e=n(m.searchField),t=n(m.extensionlist).DataTable({paging:!1,dom:"lrtip",lengthChange:!1,pageLength:15,stateSave:!0,info:!1,drawCallback:this.bindExtensionListActions,columns:[null,null,{type:"extension"},null,{type:"version"},{orderable:!1},null,{orderable:!1}]});e.parents("form").on("submit",()=>!1);const a=u.getUrlVars(),o=a.search?a.search:t.search();return e.val(o),e.on("input",e=>{t.search(n(e.currentTarget).val()).draw()}),t}removeExtensionFromDisk(e){n.ajax({url:e.data("href"),beforeSend:()=>{a.start()},success:()=>{location.reload()},complete:()=>{a.done()}})}updateExtension(e){let t=0;const i=n("<form>");n.each(e.updateComments,(e,a)=>{const o=n("<input>").attr({type:"radio",name:"version"}).val(e);0===t&&o.attr("checked","checked"),i.append([n("<h3>").append([o," "+p.encodeHtml(e)]),n("<div>").append(a.replace(/(\r\n|\n\r|\r|\n)/g,"\n").split(/\n/).map(e=>p.encodeHtml(e)).join("<br>"))]),t++});const s=n("<div>").append([n("<h1>").text(TYPO3.lang["extensionList.updateConfirmation.title"]),n("<h2>").text(TYPO3.lang["extensionList.updateConfirmation.message"]),i]);a.done(),o.confirm(TYPO3.lang["extensionList.updateConfirmation.questionVersionComments"],s,r.warning,[{text:TYPO3.lang["button.cancel"],active:!0,btnClass:"btn-default",trigger:()=>{o.dismiss()}},{text:TYPO3.lang["button.updateExtension"],btnClass:"btn-warning",trigger:()=>{n.ajax({url:e.url,data:{tx_extensionmanager_tools_extensionmanagerextensionmanager:{version:n("input:radio[name=version]:checked",o.currentModal).val()}},dataType:"json",beforeSend:()=>{a.start()},complete:()=>{location.reload()}}),o.dismiss()}}])}}let g=new u;return void 0===TYPO3.ExtensionManager&&(TYPO3.ExtensionManager=g),g}));
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment