CoreFiles by mySites.guru
joomla-toolbar-button-es5.min.js4 lines, 3,057 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
4bad347bb983fb606c1b36b1f365bb71
sha1
7c7d8113551eb30fa6aeb57ab0b755a2d610d121
sha256
92e5a08c298df7a1a6dcd03e72da5277c3a81a7fdcdc72f883f7901292d6475b
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict';var _createClass=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function _possibleConstructorReturn(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function _inherits(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}(function(a){'use strict';var b=function(a){function b(){_classCallCheck(this,b);var a=_possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return a.buttonElement=a.querySelector('button'),a.disabled=!1,a.listSelection&&a.setDisabled(!0),a.addEventListener('click',function(b){return a.executeTask(b)}),a}return _inherits(b,a),_createClass(b,[{key:'task',get:function get(){return this.getAttribute('task')}},{key:'listSelection',get:function get(){return this.hasAttribute('list-selection')}},{key:'form',get:function get(){return this.getAttribute('form')}},{key:'formValidation',get:function get(){return this.hasAttribute('form-validation')}},{key:'confirmMessage',get:function get(){return this.getAttribute('confirm-message')}}]),_createClass(b,[{key:'connectedCallback',value:function connectedCallback(){var a=this,b=this.form||'adminForm';if(this.formElement=document.getElementById(b),this.listSelection){if(!this.formElement)throw new Error('The form "'+b+'" is required to perform the task, but the form not found on the page.');this.formElement.boxchecked.addEventListener('change',function(b){a.setDisabled(1>b.target.value)})}}},{key:'setDisabled',value:function setDisabled(a){this.disabled=!!a,this.buttonElement&&(this.disabled?this.buttonElement.setAttribute('disabled',!0):this.buttonElement.removeAttribute('disabled'))}},{key:'executeTask',value:function executeTask(){return!this.disabled&&(!this.confirmMessage||confirm(this.confirmMessage))&&(this.task&&Joomla.submitbutton(this.task,this.form,this.formValidation),!0)}}]),b}(HTMLElement);a.define('joomla-toolbar-button',b)})(customElements);

},{}]},{},[1]);

No other release has this exact content. See every version of this file.