Browse Source

fix: aplica um lazy loading no sortable do jquery ui pelo evento mouseenter. (#3737)

* fix: aplica um lazy loading no sortable do jquery ui pelo evento mouseenter.

* fix: Frontend Assets
dependabot/npm_and_yarn/axios-1.7.4
joaohortsenado 4 months ago
committed by GitHub
parent
commit
ffe97d816d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 24
      frontend/src/__apps/compilacao/js/old/compilacao_edit.js
  2. 476
      frontend/webpack-stats.json
  3. 14525
      package-lock.json
  4. BIN
      sapl/static/sapl/frontend/css/chunk-vendors.045ec640.css.gz
  5. BIN
      sapl/static/sapl/frontend/css/compilacao.0baf3580.css.gz
  6. BIN
      sapl/static/sapl/frontend/css/global.45591136.css.gz
  7. BIN
      sapl/static/sapl/frontend/css/painel.e2b9504e.css.gz
  8. BIN
      sapl/static/sapl/frontend/fonts/fa-brands-400.5d18d427.ttf.gz
  9. BIN
      sapl/static/sapl/frontend/fonts/fa-regular-400.81482cd4.ttf.gz
  10. BIN
      sapl/static/sapl/frontend/fonts/fa-solid-900.69d3141a.ttf.gz
  11. BIN
      sapl/static/sapl/frontend/fonts/fa-v4compatibility.2c070fd2.ttf.gz
  12. BIN
      sapl/static/sapl/frontend/img/down_arrow_select.jpg.gz
  13. BIN
      sapl/static/sapl/frontend/js/chunk-vendors.e8ab4373.js.LICENSE.txt.gz
  14. BIN
      sapl/static/sapl/frontend/js/chunk-vendors.e8ab4373.js.gz
  15. 1
      sapl/static/sapl/frontend/js/compilacao.af24f12d.js
  16. BIN
      sapl/static/sapl/frontend/js/compilacao.af24f12d.js.gz
  17. 1
      sapl/static/sapl/frontend/js/compilacao.d3adb1c1.js
  18. BIN
      sapl/static/sapl/frontend/js/compilacao.d3adb1c1.js.gz
  19. BIN
      sapl/static/sapl/frontend/js/global.656a0d36.js.gz
  20. 2
      sapl/static/sapl/frontend/js/global.8ef6e932.js
  21. 0
      sapl/static/sapl/frontend/js/global.8ef6e932.js.LICENSE.txt
  22. BIN
      sapl/static/sapl/frontend/js/global.8ef6e932.js.gz
  23. BIN
      sapl/static/sapl/frontend/js/painel.4b2b2752.js.gz
  24. 0
      sapl/static/sapl/frontend/js/painel.73a4fb17.js
  25. BIN
      sapl/static/sapl/frontend/js/painel.73a4fb17.js.gz
  26. BIN
      sapl/static/sapl/frontend/js/parlamentar.9e5854a6.js.gz
  27. 0
      sapl/static/sapl/frontend/js/parlamentar.f0710dca.js
  28. BIN
      sapl/static/sapl/frontend/js/parlamentar.f0710dca.js.gz
  29. BIN
      sapl/static/sapl/frontend/js/skins/content/dark/content.css.gz
  30. BIN
      sapl/static/sapl/frontend/js/skins/content/dark/content.js.gz
  31. BIN
      sapl/static/sapl/frontend/js/skins/content/dark/content.min.css.gz
  32. BIN
      sapl/static/sapl/frontend/js/skins/content/default/content.css.gz
  33. BIN
      sapl/static/sapl/frontend/js/skins/content/default/content.js.gz
  34. BIN
      sapl/static/sapl/frontend/js/skins/content/default/content.min.css.gz
  35. BIN
      sapl/static/sapl/frontend/js/skins/content/document/content.css.gz
  36. BIN
      sapl/static/sapl/frontend/js/skins/content/document/content.js.gz
  37. BIN
      sapl/static/sapl/frontend/js/skins/content/document/content.min.css.gz
  38. BIN
      sapl/static/sapl/frontend/js/skins/content/tinymce-5-dark/content.css.gz
  39. BIN
      sapl/static/sapl/frontend/js/skins/content/tinymce-5-dark/content.js.gz
  40. BIN
      sapl/static/sapl/frontend/js/skins/content/tinymce-5-dark/content.min.css.gz
  41. BIN
      sapl/static/sapl/frontend/js/skins/content/tinymce-5/content.css.gz
  42. BIN
      sapl/static/sapl/frontend/js/skins/content/tinymce-5/content.js.gz
  43. BIN
      sapl/static/sapl/frontend/js/skins/content/tinymce-5/content.min.css.gz
  44. BIN
      sapl/static/sapl/frontend/js/skins/content/writer/content.css.gz
  45. BIN
      sapl/static/sapl/frontend/js/skins/content/writer/content.js.gz
  46. BIN
      sapl/static/sapl/frontend/js/skins/content/writer/content.min.css.gz
  47. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.css.gz
  48. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.inline.css.gz
  49. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.inline.js.gz
  50. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.inline.min.css.gz
  51. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.js.gz
  52. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.min.css.gz
  53. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.css.gz
  54. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.js.gz
  55. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.min.css.gz
  56. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.shadowdom.css.gz
  57. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.shadowdom.js.gz
  58. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.shadowdom.min.css.gz
  59. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/content.css.gz
  60. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/content.inline.css.gz
  61. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/content.inline.js.gz
  62. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/content.inline.min.css.gz
  63. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/content.js.gz
  64. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/content.min.css.gz
  65. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/skin.css.gz
  66. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/skin.js.gz
  67. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/skin.min.css.gz
  68. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/skin.shadowdom.css.gz
  69. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/skin.shadowdom.js.gz
  70. BIN
      sapl/static/sapl/frontend/js/skins/ui/oxide/skin.shadowdom.min.css.gz
  71. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.css.gz
  72. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.inline.css.gz
  73. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.inline.js.gz
  74. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.inline.min.css.gz
  75. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.js.gz
  76. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.min.css.gz
  77. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.css.gz
  78. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.js.gz
  79. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.min.css.gz
  80. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.shadowdom.css.gz
  81. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.shadowdom.js.gz
  82. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.gz
  83. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.css.gz
  84. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.inline.css.gz
  85. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.inline.js.gz
  86. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.inline.min.css.gz
  87. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.js.gz
  88. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.min.css.gz
  89. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.css.gz
  90. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.js.gz
  91. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.min.css.gz
  92. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.shadowdom.css.gz
  93. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.shadowdom.js.gz
  94. BIN
      sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.shadowdom.min.css.gz
  95. 1916
      yarn.lock

24
frontend/src/__apps/compilacao/js/old/compilacao_edit.js

@ -1,4 +1,3 @@
const _$ = window.$ const _$ = window.$
window.DispositivoEdit = function () { window.DispositivoEdit = function () {
@ -500,7 +499,11 @@ window.DispositivoEdit = function () {
} }
instance.reloadFunctionsDraggables = function () { instance.reloadFunctionsDraggables = function () {
_$('.dpt-alts').sortable({ const dptAlts = _$('.dpt-alts')
if (dptAlts.length > 0) {
dptAlts.sortable({
connectWith: '.dpt-alts',
items: '.sorting-initialize',
revert: true, revert: true,
distance: 15, distance: 15,
start: function (event, ui) { start: function (event, ui) {
@ -511,11 +514,14 @@ window.DispositivoEdit = function () {
const url = pk + '/refresh?action=json_drag_move_dpt_alterado&index=' + ui.item.index() + '&bloco_pk=' + bloco_pk const url = pk + '/refresh?action=json_drag_move_dpt_alterado&index=' + ui.item.index() + '&bloco_pk=' + bloco_pk
_$.get(url).done(function (data) { _$.get(url).done(function (data) {
// console.log(pk + ' - ' + bloco_pk) // handle data if needed
// reloadFunctionsForObjectsOfCompilacao();
}) })
} }
}) })
dptAlts.find('.dpt').one('mouseenter', function () {
$(this).addClass('sorting-initialize')
dptAlts.sortable('refresh')
})
_$('.dpt-alts .dpt').draggable({ _$('.dpt-alts .dpt').draggable({
connectToSortable: '.dpt-alts', connectToSortable: '.dpt-alts',
@ -523,7 +529,6 @@ window.DispositivoEdit = function () {
zIndex: 1, zIndex: 1,
distance: 15, distance: 15,
drag: function (event, ui) { drag: function (event, ui) {
// _$('.dpt-comp-selected').removeClass('dpt-comp-selected');
_$('.dpt-alts').addClass('drag') _$('.dpt-alts').addClass('drag')
}, },
stop: function (event, ui) { stop: function (event, ui) {
@ -531,7 +536,10 @@ window.DispositivoEdit = function () {
} }
}) })
_$('.dpt-alts').disableSelection() dptAlts.disableSelection()
} else {
console.warn("No '.dpt-alts' elements found to make sortable/draggable.")
}
} }
instance.scrollTo = function (dpt) { instance.scrollTo = function (dpt) {
try { try {
@ -570,7 +578,9 @@ window.DispositivoEdit = function () {
instance.triggerBtnDptEdit(href[1]) instance.triggerBtnDptEdit(href[1])
} }
_$('main').click(function (event) { _$('main').click(function (event) {
if (event.target === this || event.target === this.firstElementChild) { instance.clearEditSelected() } if (event.target === this || event.target === this.firstElementChild) {
instance.clearEditSelected()
}
}) })
instance.waitHide() instance.waitHide()
} }

476
frontend/webpack-stats.json

File diff suppressed because it is too large

14525
package-lock.json

File diff suppressed because it is too large

BIN
sapl/static/sapl/frontend/css/chunk-vendors.045ec640.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/css/compilacao.0baf3580.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/css/global.45591136.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/css/painel.e2b9504e.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/fonts/fa-brands-400.5d18d427.ttf.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/fonts/fa-regular-400.81482cd4.ttf.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/fonts/fa-solid-900.69d3141a.ttf.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/fonts/fa-v4compatibility.2c070fd2.ttf.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/img/down_arrow_select.jpg.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/chunk-vendors.e8ab4373.js.LICENSE.txt.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/chunk-vendors.e8ab4373.js.gz

Binary file not shown.

1
sapl/static/sapl/frontend/js/compilacao.af24f12d.js

File diff suppressed because one or more lines are too long

BIN
sapl/static/sapl/frontend/js/compilacao.af24f12d.js.gz

Binary file not shown.

1
sapl/static/sapl/frontend/js/compilacao.d3adb1c1.js

File diff suppressed because one or more lines are too long

BIN
sapl/static/sapl/frontend/js/compilacao.d3adb1c1.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/global.656a0d36.js.gz

Binary file not shown.

2
sapl/static/sapl/frontend/js/global.656a0d36.js → sapl/static/sapl/frontend/js/global.8ef6e932.js

File diff suppressed because one or more lines are too long

0
sapl/static/sapl/frontend/js/global.656a0d36.js.LICENSE.txt → sapl/static/sapl/frontend/js/global.8ef6e932.js.LICENSE.txt

BIN
sapl/static/sapl/frontend/js/global.8ef6e932.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/painel.4b2b2752.js.gz

Binary file not shown.

0
sapl/static/sapl/frontend/js/painel.4b2b2752.js → sapl/static/sapl/frontend/js/painel.73a4fb17.js

BIN
sapl/static/sapl/frontend/js/painel.73a4fb17.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/parlamentar.9e5854a6.js.gz

Binary file not shown.

0
sapl/static/sapl/frontend/js/parlamentar.9e5854a6.js → sapl/static/sapl/frontend/js/parlamentar.f0710dca.js

BIN
sapl/static/sapl/frontend/js/parlamentar.f0710dca.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/dark/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/dark/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/dark/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/default/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/default/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/default/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/document/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/document/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/document/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/tinymce-5-dark/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/tinymce-5-dark/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/tinymce-5-dark/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/tinymce-5/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/tinymce-5/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/tinymce-5/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/writer/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/writer/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/content/writer/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.inline.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.inline.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.inline.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.shadowdom.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.shadowdom.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide-dark/skin.shadowdom.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/content.inline.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/content.inline.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/content.inline.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/skin.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/skin.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/skin.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/skin.shadowdom.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/skin.shadowdom.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/oxide/skin.shadowdom.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.inline.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.inline.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.inline.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.shadowdom.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.shadowdom.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.inline.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.inline.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.inline.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/content.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.min.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.shadowdom.css.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.shadowdom.js.gz

Binary file not shown.

BIN
sapl/static/sapl/frontend/js/skins/ui/tinymce-5/skin.shadowdom.min.css.gz

Binary file not shown.

1916
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save