avo 1.22.2 → 1.22.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/javascript/js/application.js +1 -1
- data/app/javascript/js/controllers/action_controller.js +1 -1
- data/app/javascript/js/controllers/actions_picker_controller.js +1 -1
- data/app/javascript/js/controllers/alerts_controller.js +1 -1
- data/app/javascript/js/controllers/attachments_controller.js +1 -1
- data/app/javascript/js/controllers/fields/belongs_to_field_controller.js +1 -1
- data/app/javascript/js/controllers/fields/code_field_controller.js +1 -1
- data/app/javascript/js/controllers/fields/date_field_controller.js +1 -1
- data/app/javascript/js/controllers/fields/key_value_controller.js +3 -3
- data/app/javascript/js/controllers/fields/simple_mde_controller.js +1 -1
- data/app/javascript/js/controllers/fields/trix_field_controller.js +1 -1
- data/app/javascript/js/controllers/filter_controller.js +3 -7
- data/app/javascript/js/controllers/hidden_input_controller.js +1 -1
- data/app/javascript/js/controllers/item_select_all_controller.js +4 -4
- data/app/javascript/js/controllers/item_selector_controller.js +1 -1
- data/app/javascript/js/controllers/loading_button_controller.js +1 -1
- data/app/javascript/js/controllers/modal_controller.js +1 -1
- data/app/javascript/js/controllers/per_page_controller.js +1 -1
- data/app/javascript/js/controllers/search_controller.js +1 -1
- data/app/javascript/js/controllers/tippy_controller.js +1 -1
- data/app/javascript/js/controllers/toggle_panel_controller.js +1 -1
- data/lib/avo/version.rb +1 -1
- data/public/avo-assets/avo.js +2570 -1938
- data/public/avo-assets/avo.js.map +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0638fa0ab76323be01a732489a1ba96def10bde4897fd4231c7a1f4c41ece424'
|
4
|
+
data.tar.gz: 394c86583f0219b3f9c5d2cf1017db4348105ae8bc26cfbac1f5ca56e9ace62a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 292f817a4cc4498a4db69268def16be6ac719e5eee1178deb8cad7a26181aacb73ec5cbd9145fea1a0dc627a52f4bc7b9a3e61e5e6099946148239227b313e4d
|
7
|
+
data.tar.gz: bad4042ec546cb0c56e209a8c42b59a74a655a5bd8278c7f98baf5025f81d3457b566316fc4f7247d51e68d4add071d6207996e922449106ce3627357e1a2545
|
data/Gemfile.lock
CHANGED
@@ -14,7 +14,7 @@ import 'codemirror/mode/vue/vue'
|
|
14
14
|
import 'codemirror/mode/xml/xml'
|
15
15
|
import 'codemirror/mode/yaml/yaml'
|
16
16
|
|
17
|
-
import { Controller } from 'stimulus'
|
17
|
+
import { Controller } from '@hotwired/stimulus'
|
18
18
|
import CodeMirror from 'codemirror'
|
19
19
|
|
20
20
|
import { castBoolean } from '../../helpers/cast_boolean'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* eslint-disable max-len */
|
2
|
-
import { Controller } from 'stimulus'
|
2
|
+
import { Controller } from '@hotwired/stimulus'
|
3
3
|
import { castBoolean } from '../../helpers/cast_boolean'
|
4
4
|
|
5
5
|
export default class extends Controller {
|
@@ -39,7 +39,7 @@ export default class extends Controller {
|
|
39
39
|
|
40
40
|
deleteRow(event) {
|
41
41
|
if (this.options.disable_deleting_rows || !this.options.editable) return
|
42
|
-
const { index } = event.
|
42
|
+
const { index } = event.params
|
43
43
|
this.fieldValue.splice(index, 1)
|
44
44
|
this.updateTextareaInput()
|
45
45
|
this.updateKeyValueComponent()
|
@@ -93,7 +93,7 @@ export default class extends Controller {
|
|
93
93
|
if (this.options.editable) {
|
94
94
|
result += `<a
|
95
95
|
href="javascript:void(0);"
|
96
|
-
data-index="${index}"
|
96
|
+
data-key-value-index-param="${index}"
|
97
97
|
data-action="click->key-value#deleteRow"
|
98
98
|
title="${this.options.delete_text}"
|
99
99
|
data-tippy="tooltip"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Controller } from 'stimulus'
|
1
|
+
import { Controller } from '@hotwired/stimulus'
|
2
2
|
import URI from 'urijs'
|
3
3
|
|
4
4
|
export default class extends Controller {
|
@@ -26,16 +26,12 @@ export default class extends Controller {
|
|
26
26
|
// then we convert the percent encodings into raw bytes which
|
27
27
|
// can be fed into btoa.
|
28
28
|
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,
|
29
|
-
|
30
|
-
return String.fromCharCode('0x' + p1);
|
31
|
-
}));
|
29
|
+
(match, p1) => String.fromCharCode(`0x${p1}`)))
|
32
30
|
}
|
33
31
|
|
34
32
|
b64DecodeUnicode(str) {
|
35
33
|
// Going backwards: from bytestream, to percent-encoding, to original string.
|
36
|
-
return decodeURIComponent(atob(str).split('').map(
|
37
|
-
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
38
|
-
}).join(''));
|
34
|
+
return decodeURIComponent(atob(str).split('').map((c) => `%${(`00${c.charCodeAt(0).toString(16)}`).slice(-2)}`).join(''))
|
39
35
|
}
|
40
36
|
|
41
37
|
changeFilter() {
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import { Controller } from 'stimulus'
|
1
|
+
import { Controller } from '@hotwired/stimulus'
|
2
2
|
|
3
3
|
export default class extends Controller {
|
4
|
-
static targets = [
|
4
|
+
static targets = ['itemCheckbox', 'checkbox']
|
5
5
|
|
6
6
|
connect() {
|
7
7
|
this.resourceName = this.element.dataset.resourceName
|
8
8
|
}
|
9
9
|
|
10
10
|
toggle(event) {
|
11
|
-
|
11
|
+
const value = !!event.target.checked
|
12
12
|
document.querySelectorAll(`[data-controller="item-selector"][data-resource-name="${this.resourceName}"] input[type=checkbox]`)
|
13
13
|
.forEach((checkbox) => checkbox.checked != value && checkbox.click())
|
14
14
|
}
|
15
15
|
|
16
16
|
update() {
|
17
|
-
|
17
|
+
let allSelected = true
|
18
18
|
this.itemCheckboxTargets.forEach((checkbox) => allSelected = allSelected && checkbox.checked)
|
19
19
|
this.checkboxTarget.checked = allSelected
|
20
20
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* eslint-disable no-underscore-dangle */
|
2
2
|
import * as Mousetrap from 'mousetrap'
|
3
|
-
import { Controller } from 'stimulus'
|
3
|
+
import { Controller } from '@hotwired/stimulus'
|
4
4
|
import { Turbo } from '@hotwired/turbo-rails'
|
5
5
|
import { autocomplete } from '@algolia/autocomplete-js'
|
6
6
|
import URI from 'urijs'
|
data/lib/avo/version.rb
CHANGED