@webitel/ui-datalist 26.8.14 → 26.8.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-datalist",
3
- "version": "26.8.14",
3
+ "version": "26.8.15",
4
4
  "description": "Toolkit for building data lists in webitel ui system",
5
5
  "scripts": {
6
6
  "build:types": "vue-tsc -b tsconfig.build.json",
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <ul v-if="value?.length">
2
+ <ul v-if="tags.length">
3
3
  <li
4
- v-for="(tag, index) of value"
4
+ v-for="(tag, index) of tags"
5
5
  :key="index"
6
6
  >
7
7
  {{ tag }}
@@ -10,10 +10,15 @@
10
10
  </template>
11
11
 
12
12
  <script lang="ts" setup>
13
- defineProps<{
14
- /** tag names — this filter stores strings, not lookup objects */
15
- value?: string[];
13
+ import { computed } from 'vue';
14
+
15
+ import type { IFilter } from '../../../../classes/Filter';
16
+
17
+ const props = defineProps<{
18
+ filter: IFilter;
16
19
  }>();
20
+
21
+ const tags = computed(() => (props.filter.value as string[] | undefined) ?? []);
17
22
  </script>
18
23
 
19
24
  <style scoped></style>