Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

adminlte-index.js 26KB

před 3 roky
před 3 roky
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. (self["webpackChunk"] = self["webpackChunk"] || []).push([["adminlte-index"],{
  2. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/app.index.js":
  3. /*!**********************************************************************************!*\
  4. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/app.index.js ***!
  5. \**********************************************************************************/
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. "use strict";
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/index.js");
  10. /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_js__WEBPACK_IMPORTED_MODULE_0__);
  11. /* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/index.scss");
  12. /***/ }),
  13. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/index.js":
  14. /*!******************************************************************************!*\
  15. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/index.js ***!
  16. \******************************************************************************/
  17. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  18. __webpack_require__(/*! core-js/modules/es.date.to-string.js */ "./node_modules/core-js/modules/es.date.to-string.js");
  19. __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
  20. __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
  21. __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
  22. __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
  23. __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");
  24. __webpack_require__(/*! core-js/modules/es.array.index-of.js */ "./node_modules/core-js/modules/es.array.index-of.js");
  25. __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
  26. __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");
  27. __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");
  28. $(document).ready(function () {
  29. lcCrudIndexToggle();
  30. lcCrudIndexBatchActions();
  31. });
  32. function lcCrudIndexToggle() {
  33. var toggles = document.querySelectorAll('.custom-switch input[type="checkbox"]');
  34. for (i = 0; i < toggles.length; i++) {
  35. toggles[i].addEventListener('change', function () {
  36. var toggle = this;
  37. var newValue = this.checked;
  38. var oldValue = !newValue;
  39. var toggleUrl = this.closest('.custom-switch').dataset.url + "&newValue=" + newValue.toString();
  40. var toggleRequest = $.ajax({
  41. type: "POST",
  42. url: toggleUrl,
  43. data: {},
  44. dataType: 'json'
  45. });
  46. toggleRequest.done(function (response) {
  47. Notification.add('success', 'La propriété a bien été mise à jour.');
  48. });
  49. toggleRequest.fail(function () {
  50. toggle.checked = oldValue;
  51. toggle.disabled = true;
  52. toggle.closest('.checkbox-switch').classList.add('disabled');
  53. Notification.add('error', 'Une erreur est survenue.');
  54. });
  55. });
  56. }
  57. }
  58. function lcCrudIndexBatchActions() {
  59. var titleContent = $('.content-header-title > .title').html();
  60. $(document).on('click', '.deselect-batch-button', function () {
  61. $(this).closest('.content').find(':checkbox.form-batch-checkbox-all').prop('checked', false).trigger('change');
  62. });
  63. $(document).on('change', '.form-batch-checkbox-all', function () {
  64. $(this).closest('.content').find(':checkbox.form-batch-checkbox').prop('checked', $(this).prop('checked')).trigger('change');
  65. });
  66. $(document).on('change', '.form-batch-checkbox', function () {
  67. var $content = $(this).closest('.content-wrapper');
  68. var $input = $content.find(':hidden#batch_form_entityIds');
  69. var ids = $input.val() ? $input.val().split(',') : [];
  70. var id = $(this).val();
  71. if ($(this).prop('checked')) {
  72. $(this).closest('tr').addClass('selected-row');
  73. if (-1 === ids.indexOf(id)) {
  74. ids.push(id);
  75. }
  76. } else {
  77. $(this).closest('tr').removeClass('selected-row');
  78. ids = ids.filter(function (value) {
  79. return value !== id;
  80. });
  81. $content.find(':checkbox.form-batch-checkbox-all').prop('checked', false);
  82. }
  83. if (0 === ids.length) {
  84. $content.find('.global-actions').show();
  85. $content.find('.batch-actions').hide();
  86. $content.find('table').removeClass('table-batch');
  87. } else {
  88. $content.find('.batch-actions').show();
  89. $content.find('.global-actions').hide();
  90. $content.find('table').addClass('table-batch');
  91. }
  92. $input.val(ids.join(','));
  93. $content.find('.content-header-title > .title').html(0 === ids.length ? titleContent : '');
  94. });
  95. var modalTitle = $('#batch-action-confirmation-title');
  96. var titleContentWithPlaceholders = modalTitle.text();
  97. $('[data-action-batch]').on('click', function (event) {
  98. event.preventDefault();
  99. event.stopPropagation();
  100. var $actionElement = $(this);
  101. var actionName = $actionElement.attr('data-action-name');
  102. var selectedItems = $('input[type="checkbox"].form-batch-checkbox:checked');
  103. modalTitle.text(titleContentWithPlaceholders.replace('%action_name%', actionName).replace('%num_items%', selectedItems.length));
  104. $('#modal-batch-action').modal({
  105. backdrop: true,
  106. keyboard: true
  107. }).off('click', '#modal-batch-action-button').on('click', '#modal-batch-action-button', function () {
  108. $actionElement.unbind('click');
  109. $form = document.createElement('form');
  110. $form.setAttribute('action', $actionElement.attr('data-action-url'));
  111. $form.setAttribute('method', 'POST');
  112. $actionNameInput = document.createElement('input');
  113. $actionNameInput.setAttribute('type', 'hidden');
  114. $actionNameInput.setAttribute('name', 'batchActionName');
  115. $actionNameInput.setAttribute('value', $actionElement.attr('data-action-name'));
  116. $form.appendChild($actionNameInput);
  117. $entityFqcnInput = document.createElement('input');
  118. $entityFqcnInput.setAttribute('type', 'hidden');
  119. $entityFqcnInput.setAttribute('name', 'entityFqcn');
  120. $entityFqcnInput.setAttribute('value', $actionElement.attr('data-entity-fqcn'));
  121. $form.appendChild($entityFqcnInput);
  122. $actionUrlInput = document.createElement('input');
  123. $actionUrlInput.setAttribute('type', 'hidden');
  124. $actionUrlInput.setAttribute('name', 'batchActionUrl');
  125. $actionUrlInput.setAttribute('value', $actionElement.attr('data-action-url'));
  126. $form.appendChild($actionUrlInput);
  127. $csrfTokenInput = document.createElement('input');
  128. $csrfTokenInput.setAttribute('type', 'hidden');
  129. $csrfTokenInput.setAttribute('name', 'batchActionCsrfToken');
  130. $csrfTokenInput.setAttribute('value', $actionElement.attr('data-action-csrf-token'));
  131. $form.appendChild($csrfTokenInput);
  132. selectedItems.each(function (i, item) {
  133. $entityIdInput = document.createElement('input');
  134. $entityIdInput.setAttribute('type', 'hidden');
  135. $entityIdInput.setAttribute('name', "batchActionEntityIds[".concat(i, "]"));
  136. $entityIdInput.setAttribute('value', item.value);
  137. $form.appendChild($entityIdInput);
  138. });
  139. document.body.appendChild($form); //modalTitle.text(titleContentWithPlaceholders);
  140. $form.submit();
  141. });
  142. });
  143. }
  144. /***/ }),
  145. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/index.scss":
  146. /*!********************************************************************************!*\
  147. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/index.scss ***!
  148. \********************************************************************************/
  149. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  150. "use strict";
  151. __webpack_require__.r(__webpack_exports__);
  152. // extracted by mini-css-extract-plugin
  153. /***/ })
  154. },
  155. /******/ __webpack_require__ => { // webpackRuntimeModules
  156. /******/ "use strict";
  157. /******/
  158. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  159. /******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_a-function_js-node_modules_core-js_internals_export_js","vendors-node_modules_core-js_modules_es_array_find_js","vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0","vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-87c47e"], () => (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/adminlte/index/app.index.js")));
  160. /******/ var __webpack_exports__ = __webpack_require__.O();
  161. /******/ }
  162. ]);
  163. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9pbmRleC9hcHAuaW5kZXguanMiLCJ3ZWJwYWNrOi8vLy4uL0xhQ2xpY0J1bmRsZS9Tb3ZCdW5kbGUvUmVzb3VyY2VzL2Fzc2V0cy9hcHAvYWRtaW5sdGUvaW5kZXgvaW5kZXguanMiLCJ3ZWJwYWNrOi8vLy4uL0xhQ2xpY0J1bmRsZS9Tb3ZCdW5kbGUvUmVzb3VyY2VzL2Fzc2V0cy9hcHAvYWRtaW5sdGUvaW5kZXgvaW5kZXguc2NzcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImxjQ3J1ZEluZGV4VG9nZ2xlIiwibGNDcnVkSW5kZXhCYXRjaEFjdGlvbnMiLCJ0b2dnbGVzIiwicXVlcnlTZWxlY3RvckFsbCIsImkiLCJsZW5ndGgiLCJhZGRFdmVudExpc3RlbmVyIiwidG9nZ2xlIiwibmV3VmFsdWUiLCJjaGVja2VkIiwib2xkVmFsdWUiLCJ0b2dnbGVVcmw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ZCcsICQodGhpcykucHJvcCgnY2hlY2tlZCcpKS50cmlnZ2VyKCdjaGFuZ2UnKTtcbiAgICB9KTtcbiAgICAkKGRvY3VtZW50KS5vbignY2hhbmdlJywgJy5mb3JtLWJhdGNoLWNoZWNrYm94JywgZnVuY3Rpb24gKCkge1xuICAgICAgICBjb25zdCAkY29udGVudCA9ICQodGhpcykuY2xvc2VzdCgnLmNvbnRlbnQtd3JhcHBlcicpO1xuICAgICAgICBsZXQgJGlucHV0ID0gJGNvbnRlbnQuZmluZCgnOmhpZGRlbiNiYXRjaF9mb3JtX2VudGl0eUlkcycpO1xuICAgICAgICBsZXQgaWRzID0gJGlucHV0LnZhbCgpID8gJGlucHV0LnZhbCgpLnNwbGl0KCcsJykgOiBbXTtcbiAgICAgICAgY29uc3QgaWQgPSAkKHRoaXMpLnZhbCgpO1xuXG4gICAgICAgIGlmICgkKHRoaXMpLnByb3AoJ2NoZWNrZWQnKSkge1xuICAgICAgICAgICAgJCh0aGlzKS5jbG9zZXN0KCd0cicpLmFkZENsYXNzKCdzZWxlY3RlZC1yb3cnKTtcbiAgICAgICAgICAgIGlmICgtMSA9PT0gaWRzLmluZGV4T2YoaWQpKSB7XG4gICAgICAgICAgICAgICAgaWRzLnB1c2goaWQpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgJCh0aGlzKS5jbG9zZXN0KCd0cicpLnJlbW92ZUNsYXNzKCdzZWxlY3RlZC1yb3cnKTtcbiAgICAgICAgICAgIGlkcyA9IGlkcy5maWx0ZXIoZnVuY3Rpb24gKHZhbHVlKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlICE9PSBpZFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAkY29udGVudC5maW5kKCc6Y2hlY2tib3guZm9ybS1iYXRjaC1jaGVja2JveC1hbGwnKS5wcm9wKCdjaGVja2VkJywgZmFsc2UpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYg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