aloha-vue 1.2.100 → 1.2.102

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
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.2.100",
17
+ "version": "1.2.102",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -3,8 +3,8 @@ import {
3
3
  toRef,
4
4
  } from "vue";
5
5
 
6
+ import AUiTypesWithData from "../../../../ui/const/AUiTypesWithData";
6
7
  import {
7
- isArray,
8
8
  isEmpty,
9
9
  } from "lodash-es";
10
10
 
@@ -13,13 +13,12 @@ export default function IsDataLoadingAPI(props, { emit }, {
13
13
  }) {
14
14
  const dataKeyByKeyIdPerFilter = toRef(props, "dataKeyByKeyIdPerFilter");
15
15
  const filter = toRef(props, "filter");
16
- const model = toRef(props, "model");
17
16
 
18
17
  const isFilterLoading = computed(() => {
19
18
  if (!hasCurrentFilter.value) {
20
19
  return false;
21
20
  }
22
- if (isArray(model.value) && model.value.length) {
21
+ if (AUiTypesWithData[filter.value.type]) {
23
22
  return isEmpty(dataKeyByKeyIdPerFilter.value[filter.value.id]);
24
23
  }
25
24
  return false;
@@ -176,6 +176,9 @@ export default {
176
176
  labelClass: "a_sr_only",
177
177
  isLabelTitle: true,
178
178
  "onUpdate:modelValue": this.toggleCheckbox,
179
+ onClick: $event => {
180
+ $event.stopPropagation();
181
+ },
179
182
  }),
180
183
  ]),
181
184
  CHILDREN,
@@ -0,0 +1,6 @@
1
+ export default {
2
+ checkbox: true,
3
+ multiselect: true,
4
+ radio: true,
5
+ select: true,
6
+ };