@dataloop-ai/components 0.19.188 → 0.19.190
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
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
removeLeadingExpression
|
|
149
149
|
} from '../../../../../hooks/use-suggestions'
|
|
150
150
|
import { parseSmartQuery, stringifySmartQuery } from '../../../../../utils'
|
|
151
|
-
import { stateManager } from '../../../../../StateManager'
|
|
151
|
+
import { StateManager, stateManager } from '../../../../../StateManager'
|
|
152
152
|
|
|
153
153
|
export default defineComponent({
|
|
154
154
|
components: {
|
|
@@ -617,7 +617,7 @@ export default defineComponent({
|
|
|
617
617
|
e.preventDefault()
|
|
618
618
|
e.stopPropagation()
|
|
619
619
|
|
|
620
|
-
onEnterKey()
|
|
620
|
+
onEnterKey.value()
|
|
621
621
|
return
|
|
622
622
|
}
|
|
623
623
|
|
|
@@ -716,7 +716,7 @@ export default defineComponent({
|
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
const
|
|
719
|
+
const handleEnterKey = (options: { fromSuggestion?: boolean } = {}) => {
|
|
720
720
|
const { fromSuggestion } = options
|
|
721
721
|
|
|
722
722
|
if (
|
|
@@ -748,6 +748,13 @@ export default defineComponent({
|
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
|
|
751
|
+
const onEnterKey = computed(() => {
|
|
752
|
+
if (StateManager.instance.disableDebounce) {
|
|
753
|
+
return handleEnterKey
|
|
754
|
+
}
|
|
755
|
+
return debounce(handleEnterKey, inputDebounce.value ?? 100)
|
|
756
|
+
})
|
|
757
|
+
|
|
751
758
|
const onEscapeKey = () => {
|
|
752
759
|
if (!focused.value) {
|
|
753
760
|
return
|
|
@@ -96,10 +96,14 @@ export default defineComponent({
|
|
|
96
96
|
? stringStyleToRecord(styles.value)
|
|
97
97
|
: styles.value
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
if (isSVG.value) {
|
|
100
|
+
return Object.assign({}, generatedStyles, {
|
|
101
|
+
width: size.value,
|
|
102
|
+
height: size.value
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return generatedStyles
|
|
103
107
|
})
|
|
104
108
|
|
|
105
109
|
const cssIconVars = computed<Record<string, string>>(() => {
|