@webitel/ui-sdk 24.12.145 → 24.12.146

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-sdk",
3
- "version": "24.12.145",
3
+ "version": "24.12.146",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -3,6 +3,7 @@
3
3
  :close-on-select="false"
4
4
  :label="t('webitelUI.filters.filterValue')"
5
5
  :search-method="searchMethod"
6
+ :v="v$.model"
6
7
  :value="model"
7
8
  multiple
8
9
  use-value-from-options-by-prop="id"
@@ -52,5 +53,4 @@ const handleInput = (value: ModelValue) => {
52
53
  };
53
54
  </script>
54
55
 
55
- <style lang="scss" scoped>
56
- </style>
56
+ <style lang="scss" scoped></style>
@@ -21,12 +21,12 @@
21
21
  <script lang="ts" setup>
22
22
  import { useVuelidate } from '@vuelidate/core';
23
23
  import { requiredIf } from '@vuelidate/validators';
24
- import { computed, watch, onMounted } from 'vue';
24
+ import { computed, onMounted, watch } from 'vue';
25
25
  import { useI18n } from 'vue-i18n';
26
26
 
27
+ import WtCheckbox from '../../../../../../../components/wt-checkbox/wt-checkbox.vue';
27
28
  import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
28
29
  import { searchMethod } from './config.js';
29
- import WtCheckbox from "../../../../../../../components/wt-checkbox/wt-checkbox.vue";
30
30
 
31
31
  type ModelValue = {
32
32
  list: string[];
@@ -41,20 +41,20 @@ const emit = defineEmits<{
41
41
  const { t } = useI18n();
42
42
 
43
43
  const initModel = () => {
44
- if(!model.value) {
44
+ if (!model.value) {
45
45
  model.value = {
46
46
  list: [],
47
47
  unassigned: false,
48
48
  };
49
49
  }
50
- }
50
+ };
51
51
  onMounted(() => initModel());
52
52
 
53
53
  const v$ = useVuelidate(
54
54
  computed(() => ({
55
55
  model: {
56
56
  list: { requiredIf: requiredIf(() => !model.value.unassigned) },
57
- unassigned: { required: requiredIf(() => !model.value.list.length)},
57
+ unassigned: { required: requiredIf(() => !model.value.list.length) },
58
58
  },
59
59
  })),
60
60
  { model },
@@ -3,6 +3,7 @@
3
3
  :close-on-select="false"
4
4
  :label="t('webitelUI.filters.filterValue')"
5
5
  :search-method="searchMethod"
6
+ :v="v$.model"
6
7
  :value="model"
7
8
  multiple
8
9
  use-value-from-options-by-prop="id"
@@ -52,5 +53,4 @@ const handleInput = (value: ModelValue) => {
52
53
  };
53
54
  </script>
54
55
 
55
- <style lang="scss" scoped>
56
- </style>
56
+ <style lang="scss" scoped></style>
@@ -3,6 +3,7 @@
3
3
  :close-on-select="false"
4
4
  :label="t('webitelUI.filters.filterValue')"
5
5
  :search-method="searchMethod"
6
+ :v="v$.model"
6
7
  :value="model"
7
8
  multiple
8
9
  use-value-from-options-by-prop="id"
@@ -53,5 +54,4 @@ const handleInput = (value: ModelValue) => {
53
54
  };
54
55
  </script>
55
56
 
56
- <style lang="scss" scoped>
57
- </style>
57
+ <style lang="scss" scoped></style>
@@ -3,6 +3,7 @@
3
3
  :close-on-select="false"
4
4
  :label="t('webitelUI.filters.filterValue')"
5
5
  :search-method="searchMethod"
6
+ :v="v$.model"
6
7
  :value="model"
7
8
  multiple
8
9
  use-value-from-options-by-prop="id"
@@ -52,5 +53,4 @@ const handleInput = (value: ModelValue) => {
52
53
  };
53
54
  </script>
54
55
 
55
- <style lang="scss" scoped>
56
- </style>
56
+ <style lang="scss" scoped></style>
@@ -3,6 +3,7 @@
3
3
  :close-on-select="false"
4
4
  :label="t('webitelUI.filters.filterValue')"
5
5
  :search-method="searchMethod"
6
+ :v="v$.model"
6
7
  :value="model"
7
8
  multiple
8
9
  use-value-from-options-by-prop="id"
@@ -53,5 +54,4 @@ const handleInput = (value: ModelValue) => {
53
54
  };
54
55
  </script>
55
56
 
56
- <style lang="scss" scoped>
57
- </style>
57
+ <style lang="scss" scoped></style>
@@ -3,6 +3,7 @@
3
3
  :close-on-select="false"
4
4
  :label="t('webitelUI.filters.filterValue')"
5
5
  :search-method="searchMethod"
6
+ :v="v$.model"
6
7
  :value="model"
7
8
  multiple
8
9
  use-value-from-options-by-prop="id"
@@ -53,5 +54,4 @@ const handleInput = (value: ModelValue) => {
53
54
  };
54
55
  </script>
55
56
 
56
- <style lang="scss" scoped>
57
- </style>
57
+ <style lang="scss" scoped></style>