@onereach/ui-components-vue2 21.0.1 → 21.1.1
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.
|
@@ -22,12 +22,12 @@ import '@onereach/styles/tailwind.config.json';
|
|
|
22
22
|
import '../../constants-2e3ea701.js';
|
|
23
23
|
import '../or-icon-v3/index.js';
|
|
24
24
|
import '../or-tooltip-v3/index.js';
|
|
25
|
+
import '../../style-inject.es-87955792.js';
|
|
25
26
|
import '@floating-ui/dom';
|
|
26
27
|
import '../or-bottom-sheet-v3/index.js';
|
|
27
28
|
import '../or-overlay-v3/index.js';
|
|
28
29
|
import '../or-teleport-v3/index.js';
|
|
29
30
|
import 'portal-vue';
|
|
30
|
-
import '../../style-inject.es-87955792.js';
|
|
31
31
|
import '../or-tag-v3/index.js';
|
|
32
32
|
import '../or-button-v3/index.js';
|
|
33
33
|
import '../../props-bba3dca8.js';
|
|
@@ -22,14 +22,14 @@ import '../../constants-2e3ea701.js';
|
|
|
22
22
|
import '../../props-bba3dca8.js';
|
|
23
23
|
import '../or-loader-v3/index.js';
|
|
24
24
|
import '../or-menu-v3/index.js';
|
|
25
|
+
import '../or-menu-item-v3/index.js';
|
|
26
|
+
import '../or-tooltip-v3/index.js';
|
|
25
27
|
import '@floating-ui/dom';
|
|
26
28
|
import '../../utils-72d9c2bb.js';
|
|
27
29
|
import '../or-bottom-sheet-v3/index.js';
|
|
28
30
|
import '../or-overlay-v3/index.js';
|
|
29
31
|
import '../or-teleport-v3/index.js';
|
|
30
32
|
import 'portal-vue';
|
|
31
|
-
import '../or-menu-item-v3/index.js';
|
|
32
|
-
import '../or-tooltip-v3/index.js';
|
|
33
33
|
|
|
34
34
|
const DatePicker = [
|
|
35
35
|
// Layout
|
|
@@ -813,7 +813,7 @@ var script = defineComponent({
|
|
|
813
813
|
}
|
|
814
814
|
},
|
|
815
815
|
emits: ['update:modelValue', 'focus', 'blur', 'search'],
|
|
816
|
-
expose: ['root', 'open', 'close', 'toggle', 'toggleOption', 'popover', 'popoverState'],
|
|
816
|
+
expose: ['root', 'open', 'close', 'toggle', 'toggleOption', 'resetSearch', 'popover', 'popoverState'],
|
|
817
817
|
setup(props, context) {
|
|
818
818
|
var _a;
|
|
819
819
|
const currentInstance = getCurrentInstance();
|
|
@@ -950,7 +950,7 @@ var script = defineComponent({
|
|
|
950
950
|
} else {
|
|
951
951
|
proxyModelValue.value = value;
|
|
952
952
|
}
|
|
953
|
-
|
|
953
|
+
resetSearch();
|
|
954
954
|
}
|
|
955
955
|
function deselectOption(value) {
|
|
956
956
|
if (props.multiple) {
|
|
@@ -970,6 +970,9 @@ var script = defineComponent({
|
|
|
970
970
|
} else {
|
|
971
971
|
proxyModelValue.value = proxyModelValue.value !== value ? value : undefined;
|
|
972
972
|
}
|
|
973
|
+
resetSearch();
|
|
974
|
+
}
|
|
975
|
+
function resetSearch() {
|
|
973
976
|
searchText.value = '';
|
|
974
977
|
}
|
|
975
978
|
// Utils
|
|
@@ -1011,6 +1014,7 @@ var script = defineComponent({
|
|
|
1011
1014
|
selectOption,
|
|
1012
1015
|
deselectOption,
|
|
1013
1016
|
toggleOption,
|
|
1017
|
+
resetSearch,
|
|
1014
1018
|
isDesktop,
|
|
1015
1019
|
isMobile
|
|
1016
1020
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.1.1",
|
|
4
4
|
"description": "Vue components library for v2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@codemirror/view": "^6",
|
|
40
40
|
"@floating-ui/dom": "1.5.3",
|
|
41
41
|
"@lezer/highlight": "*",
|
|
42
|
-
"@onereach/styles": "^21.
|
|
43
|
-
"@onereach/ui-components-common": "^21.
|
|
42
|
+
"@onereach/styles": "^21.1.1",
|
|
43
|
+
"@onereach/ui-components-common": "^21.1.1",
|
|
44
44
|
"@splidejs/splide": "4.0.6",
|
|
45
45
|
"@tiptap/core": "2.0.3",
|
|
46
46
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"access": "public"
|
|
105
105
|
},
|
|
106
106
|
"npmUnpacked": "4.15.2",
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "19e2edac2a6a8b813c7cb3de10e538ef86504934"
|
|
108
108
|
}
|