選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

359 行
32KB

  1. (self["webpackChunk"] = self["webpackChunk"] || []).push([["adminlte-sort"],{
  2. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/app.sort.js":
  3. /*!********************************************************************************!*\
  4. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/app.sort.js ***!
  5. \********************************************************************************/
  6. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7. "use strict";
  8. __webpack_require__.r(__webpack_exports__);
  9. /* harmony import */ var jquery_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery-ui */ "./node_modules/jquery-ui-dist/jquery-ui.js");
  10. /* harmony import */ var jquery_ui__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery_ui__WEBPACK_IMPORTED_MODULE_0__);
  11. /* harmony import */ var _sort_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sort.js */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.js");
  12. /* harmony import */ var _sort_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_sort_js__WEBPACK_IMPORTED_MODULE_1__);
  13. /* harmony import */ var _sort_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sort.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.scss");
  14. /***/ }),
  15. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.js":
  16. /*!****************************************************************************!*\
  17. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.js ***!
  18. \****************************************************************************/
  19. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  20. __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
  21. __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");
  22. __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
  23. __webpack_require__(/*! core-js/modules/es.string.pad-start.js */ "./node_modules/core-js/modules/es.string.pad-start.js");
  24. __webpack_require__(/*! core-js/modules/es.date.to-string.js */ "./node_modules/core-js/modules/es.date.to-string.js");
  25. __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
  26. __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
  27. jQuery(document).ready(function () {
  28. initSovSortableList();
  29. });
  30. function initSovSortableList() {
  31. if ($('.sov-sortable').length > 0) {
  32. $('.sov-sortable tbody').sortable({
  33. placeholder: "ui-state-highlight"
  34. });
  35. $('.sov-sortable tbody').on("sortupdate", function (event, ui) {
  36. prototype = $('#form_entities').data('prototype');
  37. $('.sov-sortable tr.sov-draggable').each(function (index, li) {
  38. // instead be a number based on how many items we have
  39. var newForm = prototype.replace(/__name__/g, index); // Replace '__name__' in the prototype's HTML to
  40. $(li).find('div:last-child').remove();
  41. $(li).append(newForm);
  42. $(li).find('#form_entities_' + index + '_id').val($(li).data('id'));
  43. if ($('.sov-sortable').data('parent-position') !== '') {
  44. //Ajout d'un 0 initial pour les nuémros <10
  45. indexAsString = index.toString().padStart(2, '0');
  46. val = $('.sov-sortable').data('parent-position') + '.' + indexAsString;
  47. } else {
  48. val = index;
  49. }
  50. $(li).find('#form_entities_' + index + '_position').val(val);
  51. });
  52. });
  53. }
  54. }
  55. /***/ }),
  56. /***/ "./node_modules/core-js/internals/classof.js":
  57. /*!***************************************************!*\
  58. !*** ./node_modules/core-js/internals/classof.js ***!
  59. \***************************************************/
  60. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  61. var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
  62. var classofRaw = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
  63. var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
  64. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  65. // ES3 wrong here
  66. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  67. // fallback for IE11 Script Access Denied error
  68. var tryGet = function (it, key) {
  69. try {
  70. return it[key];
  71. } catch (error) { /* empty */ }
  72. };
  73. // getting tag from ES6+ `Object.prototype.toString`
  74. module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  75. var O, tag, result;
  76. return it === undefined ? 'Undefined' : it === null ? 'Null'
  77. // @@toStringTag case
  78. : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
  79. // builtinTag case
  80. : CORRECT_ARGUMENTS ? classofRaw(O)
  81. // ES3 arguments fallback
  82. : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
  83. };
  84. /***/ }),
  85. /***/ "./node_modules/core-js/internals/object-to-string.js":
  86. /*!************************************************************!*\
  87. !*** ./node_modules/core-js/internals/object-to-string.js ***!
  88. \************************************************************/
  89. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  90. "use strict";
  91. var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
  92. var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js");
  93. // `Object.prototype.toString` method implementation
  94. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  95. module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  96. return '[object ' + classof(this) + ']';
  97. };
  98. /***/ }),
  99. /***/ "./node_modules/core-js/internals/string-pad-webkit-bug.js":
  100. /*!*****************************************************************!*\
  101. !*** ./node_modules/core-js/internals/string-pad-webkit-bug.js ***!
  102. \*****************************************************************/
  103. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  104. // https://github.com/zloirock/core-js/issues/280
  105. var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
  106. // eslint-disable-next-line unicorn/no-unsafe-regex -- safe
  107. module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
  108. /***/ }),
  109. /***/ "./node_modules/core-js/internals/string-pad.js":
  110. /*!******************************************************!*\
  111. !*** ./node_modules/core-js/internals/string-pad.js ***!
  112. \******************************************************/
  113. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  114. // https://github.com/tc39/proposal-string-pad-start-end
  115. var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
  116. var repeat = __webpack_require__(/*! ../internals/string-repeat */ "./node_modules/core-js/internals/string-repeat.js");
  117. var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
  118. var ceil = Math.ceil;
  119. // `String.prototype.{ padStart, padEnd }` methods implementation
  120. var createMethod = function (IS_END) {
  121. return function ($this, maxLength, fillString) {
  122. var S = String(requireObjectCoercible($this));
  123. var stringLength = S.length;
  124. var fillStr = fillString === undefined ? ' ' : String(fillString);
  125. var intMaxLength = toLength(maxLength);
  126. var fillLen, stringFiller;
  127. if (intMaxLength <= stringLength || fillStr == '') return S;
  128. fillLen = intMaxLength - stringLength;
  129. stringFiller = repeat.call(fillStr, ceil(fillLen / fillStr.length));
  130. if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
  131. return IS_END ? S + stringFiller : stringFiller + S;
  132. };
  133. };
  134. module.exports = {
  135. // `String.prototype.padStart` method
  136. // https://tc39.es/ecma262/#sec-string.prototype.padstart
  137. start: createMethod(false),
  138. // `String.prototype.padEnd` method
  139. // https://tc39.es/ecma262/#sec-string.prototype.padend
  140. end: createMethod(true)
  141. };
  142. /***/ }),
  143. /***/ "./node_modules/core-js/internals/string-repeat.js":
  144. /*!*********************************************************!*\
  145. !*** ./node_modules/core-js/internals/string-repeat.js ***!
  146. \*********************************************************/
  147. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  148. "use strict";
  149. var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
  150. var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
  151. // `String.prototype.repeat` method implementation
  152. // https://tc39.es/ecma262/#sec-string.prototype.repeat
  153. module.exports = function repeat(count) {
  154. var str = String(requireObjectCoercible(this));
  155. var result = '';
  156. var n = toInteger(count);
  157. if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
  158. for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
  159. return result;
  160. };
  161. /***/ }),
  162. /***/ "./node_modules/core-js/internals/to-string-tag-support.js":
  163. /*!*****************************************************************!*\
  164. !*** ./node_modules/core-js/internals/to-string-tag-support.js ***!
  165. \*****************************************************************/
  166. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  167. var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
  168. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  169. var test = {};
  170. test[TO_STRING_TAG] = 'z';
  171. module.exports = String(test) === '[object z]';
  172. /***/ }),
  173. /***/ "./node_modules/core-js/modules/es.date.to-string.js":
  174. /*!***********************************************************!*\
  175. !*** ./node_modules/core-js/modules/es.date.to-string.js ***!
  176. \***********************************************************/
  177. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  178. var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
  179. var DatePrototype = Date.prototype;
  180. var INVALID_DATE = 'Invalid Date';
  181. var TO_STRING = 'toString';
  182. var nativeDateToString = DatePrototype[TO_STRING];
  183. var getTime = DatePrototype.getTime;
  184. // `Date.prototype.toString` method
  185. // https://tc39.es/ecma262/#sec-date.prototype.tostring
  186. if (new Date(NaN) + '' != INVALID_DATE) {
  187. redefine(DatePrototype, TO_STRING, function toString() {
  188. var value = getTime.call(this);
  189. // eslint-disable-next-line no-self-compare -- NaN check
  190. return value === value ? nativeDateToString.call(this) : INVALID_DATE;
  191. });
  192. }
  193. /***/ }),
  194. /***/ "./node_modules/core-js/modules/es.object.to-string.js":
  195. /*!*************************************************************!*\
  196. !*** ./node_modules/core-js/modules/es.object.to-string.js ***!
  197. \*************************************************************/
  198. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  199. var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js");
  200. var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
  201. var toString = __webpack_require__(/*! ../internals/object-to-string */ "./node_modules/core-js/internals/object-to-string.js");
  202. // `Object.prototype.toString` method
  203. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  204. if (!TO_STRING_TAG_SUPPORT) {
  205. redefine(Object.prototype, 'toString', toString, { unsafe: true });
  206. }
  207. /***/ }),
  208. /***/ "./node_modules/core-js/modules/es.regexp.to-string.js":
  209. /*!*************************************************************!*\
  210. !*** ./node_modules/core-js/modules/es.regexp.to-string.js ***!
  211. \*************************************************************/
  212. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  213. "use strict";
  214. var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
  215. var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
  216. var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
  217. var flags = __webpack_require__(/*! ../internals/regexp-flags */ "./node_modules/core-js/internals/regexp-flags.js");
  218. var TO_STRING = 'toString';
  219. var RegExpPrototype = RegExp.prototype;
  220. var nativeToString = RegExpPrototype[TO_STRING];
  221. var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
  222. // FF44- RegExp#toString has a wrong name
  223. var INCORRECT_NAME = nativeToString.name != TO_STRING;
  224. // `RegExp.prototype.toString` method
  225. // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
  226. if (NOT_GENERIC || INCORRECT_NAME) {
  227. redefine(RegExp.prototype, TO_STRING, function toString() {
  228. var R = anObject(this);
  229. var p = String(R.source);
  230. var rf = R.flags;
  231. var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
  232. return '/' + p + '/' + f;
  233. }, { unsafe: true });
  234. }
  235. /***/ }),
  236. /***/ "./node_modules/core-js/modules/es.string.pad-start.js":
  237. /*!*************************************************************!*\
  238. !*** ./node_modules/core-js/modules/es.string.pad-start.js ***!
  239. \*************************************************************/
  240. /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
  241. "use strict";
  242. var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
  243. var $padStart = __webpack_require__(/*! ../internals/string-pad */ "./node_modules/core-js/internals/string-pad.js").start;
  244. var WEBKIT_BUG = __webpack_require__(/*! ../internals/string-pad-webkit-bug */ "./node_modules/core-js/internals/string-pad-webkit-bug.js");
  245. // `String.prototype.padStart` method
  246. // https://tc39.es/ecma262/#sec-string.prototype.padstart
  247. $({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
  248. padStart: function padStart(maxLength /* , fillString = ' ' */) {
  249. return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
  250. }
  251. });
  252. /***/ }),
  253. /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.scss":
  254. /*!******************************************************************************!*\
  255. !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/sort.scss ***!
  256. \******************************************************************************/
  257. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  258. "use strict";
  259. __webpack_require__.r(__webpack_exports__);
  260. // extracted by mini-css-extract-plugin
  261. /***/ })
  262. },
  263. /******/ __webpack_require__ => { // webpackRuntimeModules
  264. /******/ "use strict";
  265. /******/
  266. /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
  267. /******/ __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_jquery_src_jquery_js","vendors-node_modules_core-js_modules_es_string_replace_js-node_modules_jquery-ui-dist_jquery-ui_js"], () => (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/adminlte/sort/app.sort.js")));
  268. /******/ var __webpack_exports__ = __webpack_require__.O();
  269. /******/ }
  270. ]);
  271. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9zb3J0L2FwcC5zb3J0LmpzIiwid2VicGFjazovLy8uLi9MYUNsaWNCdW5kbGUvU292QnVuZGxlL1Jlc291cmNlcy9hc3NldHMvYXBwL2FkbWlubHRlL3NvcnQvc29ydC5qcyIsIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvY2xhc3NvZi5qcyIsIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LXRvLXN0cmluZy5qcyIsIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvc3Rya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