@exakt/ui 0.0.53 → 0.0.54

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "exakt-ui",
3
3
  "configKey": "exakt",
4
- "version": "0.0.53"
4
+ "version": "0.0.54"
5
5
  }
@@ -178,6 +178,9 @@ const currentItem = computed({
178
178
  const select = (i: number) => {
179
179
  visibleComputed.value = false;
180
180
  currentItem.value = i;
181
+ if(props.items[i].callback){
182
+ props.items[i].callback();
183
+ }
181
184
  };
182
185
 
183
186
  const onActivatorClick = () => {
@@ -85,9 +85,11 @@ const focus = () => {
85
85
  input.value.focus();
86
86
  };
87
87
 
88
+ const internalText = ref('')
89
+
88
90
  const currentText = computed({
89
- get: () => props.modelValue,
90
- set: (value) => emit("update:modelValue", value),
91
+ get: () => props.modelValue ? props.modelValue : internalText.value,
92
+ set: (value) => { if (props.modelValue) { emit("update:modelValue", value) } else { internalText.value = value } },
91
93
  });
92
94
 
93
95
  const props = withDefaults(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exakt/ui",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "A UI library for Nuxt.js",
5
5
  "license": "MIT",
6
6
  "type": "module",