@milaboratories/uikit 2.10.23 → 2.10.25

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.10.23",
3
+ "version": "2.10.25",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -32,8 +32,8 @@
32
32
  "resize-observer-polyfill": "^1.5.1",
33
33
  "sortablejs": "^1.15.6",
34
34
  "vue": "^3.5.24",
35
- "@milaboratories/helpers": "1.13.4",
36
- "@platforma-sdk/model": "1.54.10"
35
+ "@platforma-sdk/model": "1.54.13",
36
+ "@milaboratories/helpers": "1.13.5"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@vitest/coverage-istanbul": "^4.0.16",
@@ -41,9 +41,9 @@
41
41
  "svgo": "^3.3.2",
42
42
  "typescript": "~5.6.3",
43
43
  "vitest": "^4.0.16",
44
- "@milaboratories/ts-configs": "1.2.1",
45
44
  "@milaboratories/ts-builder": "1.2.10",
46
- "@milaboratories/build-configs": "1.4.4"
45
+ "@milaboratories/build-configs": "1.4.4",
46
+ "@milaboratories/ts-configs": "1.2.1"
47
47
  },
48
48
  "scripts": {
49
49
  "dev": "ts-builder serve --target browser-lib --build-config ./build.browser-lib.config.js",
@@ -212,7 +212,7 @@ const emit = defineEmits<{
212
212
  flex-direction: row;
213
213
  flex: 1 1 0;
214
214
  gap: 8px;
215
- text-overflow: ellipsis;
215
+ overflow: hidden;
216
216
  }
217
217
 
218
218
  .body {
@@ -1,7 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import { PlIcon16 } from "../PlIcon16";
3
3
  import { PlIcon24 } from "../PlIcon24";
4
- import { computed, ref } from "vue";
4
+ import { computed } from "vue";
5
5
 
6
6
  const emit = defineEmits(["update:modelValue"]);
7
7
 
@@ -12,9 +12,6 @@ const props = defineProps<{
12
12
  disabled?: boolean;
13
13
  }>();
14
14
 
15
- const root = ref<HTMLInputElement | undefined>(undefined);
16
- const input = ref<HTMLInputElement | undefined>();
17
-
18
15
  const value = computed({
19
16
  get() {
20
17
  return props.modelValue ?? "";
@@ -36,8 +33,8 @@ const clear = () => emit("update:modelValue", "");
36
33
  ref="input"
37
34
  v-model="value"
38
35
  :disabled="disabled"
39
- type="text"
40
36
  :placeholder="placeholder || 'Find...'"
37
+ type="text"
41
38
  spellcheck="false"
42
39
  />
43
40
  <PlIcon16
@@ -67,11 +64,11 @@ const clear = () => emit("update:modelValue", "");
67
64
 
68
65
  input {
69
66
  margin-left: 8px;
67
+ width: 100%;
70
68
  height: 20px;
71
69
  border: none;
72
70
  outline: none;
73
71
  background-color: transparent;
74
- caret-color: var(--txt-focus);
75
72
  font-size: 14px;
76
73
  font-weight: 500;
77
74
  line-height: 20px;
@@ -51,14 +51,9 @@ export function computedCached<T>(
51
51
  if (setter) {
52
52
  return computed({
53
53
  get: () => cachedValue.value,
54
- set: (newValue) => {
55
- if (!isJsonEqual(newValue, cachedValue.value)) {
56
- cachedValue.value = newValue;
57
- setter(newValue);
58
- }
59
- },
54
+ set: setter,
60
55
  });
61
56
  } else {
62
- return computed(() => cachedValue.value);
57
+ return cachedValue;
63
58
  }
64
59
  }