PluginProbe
Elementor Website Builder – more than just a page builder / 3.26.2
Elementor Website Builder – more than just a page builder v3.26.2
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | assets/js/floating-elements-modal.js +15 -55 4.1.0-beta2 → 3.26.2 View file →
@@ -1,4 +1,5 @@
1 +/*! elementor - v3.26.0 - 19-12-2024 */
1 2 /******/ (() => { // webpackBootstrap
2 3 /******/ var __webpack_modules__ = ({
3 4
4 5 /***/ "../assets/dev/js/admin/floating-elements/layout.js":
@@ -25,9 +26,9 @@
25 26 var _view = _interopRequireDefault(__webpack_require__(/*! elementor-admin/floating-elements/view */ "../assets/dev/js/admin/floating-elements/view.js"));
26 27 var _layout = _interopRequireDefault(__webpack_require__(/*! elementor-common/views/modal/layout */ "../core/common/assets/js/views/modal/layout.js"));
27 28 function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
28 29 function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
29 -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
30 +function _superPropGet(t, e, o, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; }
30 31 var _default = exports["default"] = /*#__PURE__*/function (_ModalLayout) {
31 32 function _default() {
32 33 (0, _classCallCheck2.default)(this, _default);
33 34 return _callSuper(this, _default, arguments);
@@ -114,13 +115,8 @@
114 115 return _callSuper(this, _default, arguments);
115 116 }
116 117 (0, _inherits2.default)(_default, _Marionette$LayoutVie);
117 118 return (0, _createClass2.default)(_default, [{
118 - key: "tagName",
119 - value: function tagName() {
120 - return 'header';
121 - }
122 - }, {
123 119 key: "className",
124 120 value: function className() {
125 121 return 'elementor-templates-modal__header';
126 122 }
@@ -152,31 +148,8 @@
152 148 'click @ui.closeModal': 'onCloseModalClick'
153 149 };
154 150 }
155 151 }, {
156 - key: "onRender",
157 - value: function onRender() {
158 - this.bindEscapeKey();
159 - }
160 - }, {
161 - key: "bindEscapeKey",
162 - value: function bindEscapeKey() {
163 - var _this = this;
164 - this.onDocumentKeyDown = function (event) {
165 - if ('Escape' === event.key) {
166 - _this.onCloseModalClick();
167 - }
168 - };
169 - document.addEventListener('keydown', this.onDocumentKeyDown);
170 - }
171 - }, {
172 - key: "onDestroy",
173 - value: function onDestroy() {
174 - if (this.onDocumentKeyDown) {
175 - document.removeEventListener('keydown', this.onDocumentKeyDown);
176 - }
177 - }
178 - }, {
179 152 key: "templateHelpers",
180 153 value: function templateHelpers() {
181 154 return {
182 155 closeType: this.getOption('closeType')
@@ -185,11 +158,8 @@
185 158 }, {
186 159 key: "onCloseModalClick",
187 160 value: function onCloseModalClick() {
188 161 this._parent._parent._parent.hideModal();
189 - var documentType = this.getDocumentType();
190 - var customEvent = new CustomEvent("core/modal/close/".concat(documentType));
191 - window.dispatchEvent(customEvent);
192 162 if (this.isFloatingButtonLibraryClose()) {
193 163 $e.internal('document/save/set-is-modified', {
194 164 status: false
195 165 });
@@ -196,18 +166,8 @@
196 166 window.location.href = elementor.config.admin_floating_button_admin_url;
197 167 }
198 168 }
199 169 }, {
200 - key: "getDocumentType",
201 - value: function getDocumentType() {
202 - var _elementor$config$doc, _elementor;
203 - var DEFAULT_TYPE = 'default';
204 - if ('undefined' === typeof window.elementor) {
205 - return DEFAULT_TYPE;
206 - }
207 - return (_elementor$config$doc = (_elementor = elementor) === null || _elementor === void 0 || (_elementor = _elementor.config) === null || _elementor === void 0 || (_elementor = _elementor.document) === null || _elementor === void 0 ? void 0 : _elementor.type) !== null && _elementor$config$doc !== void 0 ? _elementor$config$doc : DEFAULT_TYPE;
208 - }
209 - }, {
210 170 key: "isFloatingButtonLibraryClose",
211 171 value: function isFloatingButtonLibraryClose() {
212 172 var _elementor$config, _elementor$config2;
213 173 return window.elementor && ((_elementor$config = elementor.config) === null || _elementor$config === void 0 ? void 0 : _elementor$config.admin_floating_button_admin_url) && 'floating-buttons' === ((_elementor$config2 = elementor.config) === null || _elementor$config2 === void 0 || (_elementor$config2 = _elementor$config2.document) === null || _elementor$config2 === void 0 ? void 0 : _elementor$config2.type) && (this.$el.closest('.dialog-lightbox-widget-content').find('.elementor-template-library-template-floating_button').length || this.$el.closest('.dialog-lightbox-widget-content').find('#elementor-template-library-preview').length || this.$el.closest('.dialog-lightbox-widget-content').find('#elementor-template-library-templates-empty').length);
@@ -465,8 +425,19 @@
465 425 }(Marionette.ItemView);
466 426
467 427 /***/ }),
468 428
429 +/***/ "@wordpress/i18n":
430 +/*!**************************!*\
431 + !*** external "wp.i18n" ***!
432 + \**************************/
433 +/***/ ((module) => {
434 +
435 +"use strict";
436 +module.exports = wp.i18n;
437 +
438 +/***/ }),
439 +
469 440 /***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
470 441 /*!***********************************************************************!*\
471 442 !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
472 443 \***********************************************************************/
@@ -688,19 +659,8 @@
688 659 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
689 660 }
690 661 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
691 662
692 -/***/ }),
693 -
694 -/***/ "@wordpress/i18n":
695 -/*!**************************!*\
696 - !*** external "wp.i18n" ***!
697 - \**************************/
698 -/***/ ((module) => {
699 -
700 -"use strict";
701 -module.exports = wp.i18n;
702 -
703 663 /***/ })
704 664
705 665 /******/ });
706 666 /************************************************************************/
@@ -729,9 +689,9 @@
729 689 /******/ }
730 690 /******/
731 691 /************************************************************************/
732 692 var __webpack_exports__ = {};
733 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
693 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
734 694 (() => {
735 695 "use strict";
736 696 /*!*************************************************************************!*\
737 697 !*** ../assets/dev/js/admin/floating-elements/new-floating-elements.js ***!
@@ -743,9 +703,9 @@
743 703 var NewFloatingElementsModule = elementorModules.ViewModule.extend({
744 704 getDefaultSettings: function getDefaultSettings() {
745 705 return {
746 706 selectors: {
747 - addButtonTopBar: 'a.page-title-action[href*="e-floating-buttons"]',
707 + addButtonTopBar: '.page-title-action',
748 708 addButtonAdminBar: '#wp-admin-bar-new-e-floating-buttons a',
749 709 addButtonEmptyTemplate: '#elementor-template-library-add-new'
750 710 }
751 711 };