avo 3.18.0.tw4 → 3.18.1.tw4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/app/assets/builds/avo.base.css +10455 -12994
- data/app/assets/builds/avo.base.js +11 -8
- data/app/assets/builds/avo.base.js.map +2 -2
- data/app/views/avo/partials/distribution_chart.html.erb +1 -1
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/locales/avo.ar.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.de.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.en.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.es.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.fr.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.it.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.ja.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.nb.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.nl.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.nn.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.pl.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.pt-BR.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.pt.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.ro.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.ru.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.tr.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.uk.yml +2 -0
- data/lib/generators/avo/templates/locales/avo.zh.yml +2 -0
- data/public/avo-assets/avo.base.css +11 -17
- metadata +2 -2
@@ -115746,7 +115746,7 @@
|
|
115746
115746
|
|
115747
115747
|
// app/javascript/js/controllers/action_controller.js
|
115748
115748
|
var action_controller_default = class extends Controller {
|
115749
|
-
static targets = ["resourceIds", "form", "
|
115749
|
+
static targets = ["resourceIds", "form", "selectedAll", "indexQuery"];
|
115750
115750
|
static values = {
|
115751
115751
|
noConfirmation: Boolean,
|
115752
115752
|
resourceName: String
|
@@ -115755,8 +115755,9 @@
|
|
115755
115755
|
if (this.resourceIdsTarget.value === "") {
|
115756
115756
|
this.resourceIdsTarget.value = this.resourceIds;
|
115757
115757
|
}
|
115758
|
-
|
115759
|
-
|
115758
|
+
this.selectedAllTarget.value = this.selectionOptions.itemSelectAllSelectedAllValue;
|
115759
|
+
if (this.selectionOptions.itemSelectAllSelectedAllQueryValue) {
|
115760
|
+
this.indexQueryTarget.value = this.selectionOptions.itemSelectAllSelectedAllQueryValue;
|
115760
115761
|
}
|
115761
115762
|
if (this.noConfirmationValue) {
|
115762
115763
|
this.formTarget.requestSubmit();
|
@@ -125224,8 +125225,10 @@
|
|
125224
125225
|
Array.from(url.searchParams.keys()).filter((key) => key.startsWith("fields[")).forEach((key) => url.searchParams.delete(key));
|
125225
125226
|
if (param === "resourceIds") {
|
125226
125227
|
url.searchParams.set("fields[avo_resource_ids]", resourceIds);
|
125228
|
+
url.searchParams.set("fields[avo_selected_all]", "false");
|
125227
125229
|
} else if (param === "selectedQuery") {
|
125228
|
-
url.searchParams.set("fields[
|
125230
|
+
url.searchParams.set("fields[avo_index_query]", selectedQuery);
|
125231
|
+
url.searchParams.set("fields[avo_selected_all]", "true");
|
125229
125232
|
}
|
125230
125233
|
link.href = url.toString();
|
125231
125234
|
} catch (error2) {
|
@@ -128615,7 +128618,7 @@
|
|
128615
128618
|
inputField(id = "key", index3, key, value) {
|
128616
128619
|
const inputValue = id === "key" ? key : value;
|
128617
128620
|
return `<input
|
128618
|
-
class="${this.options.inputClasses} focus:bg-gray-100 !rounded-none border-gray-600 border-r border-l-0 border-b-0 border-t-0 focus:border-gray-300 w-1/2 focus:outline-
|
128621
|
+
class="${this.options.inputClasses} focus:bg-gray-100 !rounded-none border-gray-600 border-r border-l-0 border-b-0 border-t-0 focus:border-gray-300 w-1/2 focus:outline-hidden outline-hidden key-value-input-${id}"
|
128619
128622
|
data-action="input->key-value#${id}FieldUpdated"
|
128620
128623
|
placeholder="${this.options[`${id}_label`]}"
|
128621
128624
|
data-index="${index3}"
|
@@ -134515,7 +134518,7 @@
|
|
134515
134518
|
classes = "rounded-full";
|
134516
134519
|
break;
|
134517
134520
|
case "rounded":
|
134518
|
-
classes = "rounded";
|
134521
|
+
classes = "rounded-sm";
|
134519
134522
|
break;
|
134520
134523
|
case "square":
|
134521
134524
|
classes = "rounded-none";
|
@@ -134525,7 +134528,7 @@
|
|
134525
134528
|
createElement2("img", {
|
134526
134529
|
src: item._avatar,
|
134527
134530
|
alt: item._label,
|
134528
|
-
class: `
|
134531
|
+
class: `shrink-0 w-8 h-8 my-[2px] inline mr-2 ${classes}`
|
134529
134532
|
})
|
134530
134533
|
);
|
134531
134534
|
}
|
@@ -136537,7 +136540,7 @@
|
|
136537
136540
|
tabindex="0"
|
136538
136541
|
role="option">
|
136539
136542
|
${tagData.avatar ? `
|
136540
|
-
<div class='rounded w-8 h-8 block mr-2'>
|
136543
|
+
<div class='rounded-sm w-8 h-8 block mr-2'>
|
136541
136544
|
<img onerror="this.style.visibility='hidden'" class="w-full" src="${tagData.avatar}">
|
136542
136545
|
</div>` : ""}
|
136543
136546
|
<span>${tagData.label}</span>
|