aloha-vue 1.2.86 → 1.2.87
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.
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
} from "vue";
|
|
6
6
|
|
|
7
7
|
import AButton from "../../AButton/AButton";
|
|
8
|
+
import ACloak from "../../ACloak/ACloak";
|
|
8
9
|
import ACheckboxRadioGroup from "../ACheckboxRadioGroups/ACheckboxRadioGroups";
|
|
9
10
|
import AErrorsText from "../AErrorsText/AErrorsText";
|
|
10
11
|
import AFormHelpText from "../AFormHelpText/AFormHelpText";
|
|
@@ -719,7 +720,6 @@ export default {
|
|
|
719
720
|
type: "submit",
|
|
720
721
|
iconLeft: "Search",
|
|
721
722
|
loadingAlign: "left",
|
|
722
|
-
loading: this.loadingSearchApi,
|
|
723
723
|
}),
|
|
724
724
|
]),
|
|
725
725
|
]),
|
|
@@ -778,6 +778,9 @@ export default {
|
|
|
778
778
|
class: "a_select__divider",
|
|
779
779
|
ariaHidden: true,
|
|
780
780
|
}),
|
|
781
|
+
(this.loadingLocal || this.loadingSearchApi) ?
|
|
782
|
+
h(ACloak) :
|
|
783
|
+
"",
|
|
781
784
|
this.hasDataExtra && h("div", {}, [
|
|
782
785
|
...this.dataExtraLocal.map((item, itemIndex) => {
|
|
783
786
|
return h(ASelectElement, {
|
|
@@ -153,7 +153,7 @@ export default function UiDataFromServerAPI(props, {
|
|
|
153
153
|
url: url.value,
|
|
154
154
|
params: {
|
|
155
155
|
...(urlParams.value || {}),
|
|
156
|
-
searchApiKey: search,
|
|
156
|
+
[searchApiKey.value]: search,
|
|
157
157
|
},
|
|
158
158
|
}).then(
|
|
159
159
|
response => {
|
|
@@ -174,6 +174,7 @@ export default function UiDataFromServerAPI(props, {
|
|
|
174
174
|
!modelArrayWithoutDataExtra.value.length) {
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
|
+
loadingDataFromServer.value = true;
|
|
177
178
|
const URL_PARAMS = {
|
|
178
179
|
...urlParams.value,
|
|
179
180
|
...{
|
|
@@ -188,7 +189,9 @@ export default function UiDataFromServerAPI(props, {
|
|
|
188
189
|
response => {
|
|
189
190
|
dataFromServer.value = response || [];
|
|
190
191
|
}
|
|
191
|
-
)
|
|
192
|
+
).finally(() => {
|
|
193
|
+
loadingDataFromServer.value = false;
|
|
194
|
+
});
|
|
192
195
|
};
|
|
193
196
|
|
|
194
197
|
return {
|