@milaboratories/uikit 2.2.62 → 2.2.63

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": "@milaboratories/uikit",
3
- "version": "2.2.62",
3
+ "version": "2.2.63",
4
4
  "type": "module",
5
5
  "main": "dist/pl-uikit.umd.js",
6
6
  "module": "dist/pl-uikit.js",
@@ -35,8 +35,8 @@
35
35
  "svgo": "^3.3.2",
36
36
  "@types/d3": "^7.4.3",
37
37
  "@milaboratories/helpers": "^1.6.11",
38
- "@milaboratories/eslint-config": "^1.0.4",
39
- "@platforma-sdk/model": "^1.27.10"
38
+ "@platforma-sdk/model": "^1.27.10",
39
+ "@milaboratories/eslint-config": "^1.0.4"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "vite",
@@ -99,14 +99,16 @@ const placeholderRef = computed(() => {
99
99
  return props.modelValue.length > 0 ? '' : props.placeholder;
100
100
  });
101
101
 
102
+ const normalizedOptionsRef = computed(() => normalizeListOptions(props.options ?? []));
103
+
102
104
  const selectedOptionsRef = computed(() => {
103
- return normalizeListOptions(props.options ?? []).filter((opt) => deepIncludes(selectedValuesRef.value, opt.value));
105
+ return selectedValuesRef.value.map((v) => normalizedOptionsRef.value.find((opt) => deepEqual(opt.value, v))).filter((v) => v !== undefined);
104
106
  });
105
107
 
106
108
  const filteredOptionsRef = computed(() => {
107
109
  const selectedValues = unref(selectedValuesRef);
108
110
 
109
- const options = normalizeListOptions(props.options ?? []);
111
+ const options = unref(normalizedOptionsRef);
110
112
 
111
113
  return (
112
114
  data.search
@@ -1,5 +1,7 @@
1
1
  <script lang="ts">
2
- /** Component for one-line string data manipulation */
2
+ /**
3
+ * Component for one-line string data manipulation
4
+ */
3
5
  export default {
4
6
  name: 'PlTextField',
5
7
  };