@onereach/ui-components 2.61.1-beta.1873.0 → 2.62.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.
- package/dist/v2/{OrSelect-b44cac14.js → OrSelect-21247104.js} +31 -11
- package/dist/v2/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/v2/index.d.ts +0 -1
- package/dist/v2/index.js +1 -2
- package/dist/v2/index2.js +1 -2
- package/dist/v2/index64.js +1 -2
- package/dist/v2/index91.js +6 -1
- package/dist/v2/index92.js +1 -5
- package/dist/v3/{OrSelect-9d821ef2.js → OrSelect-4cd90c6b.js} +30 -10
- package/dist/v3/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/v3/index.d.ts +0 -1
- package/dist/v3/index.js +1 -2
- package/dist/v3/index2.js +1 -2
- package/dist/v3/index64.js +1 -2
- package/dist/v3/index91.js +6 -1
- package/dist/v3/index92.js +1 -5
- package/package.json +8 -4
- package/src/components/or-select-v3/OrSelect.vue +6 -9
- package/src/index.ts +0 -1
- package/dist/v2/directives/index.d.ts +0 -2
- package/dist/v2/dropdown-open-0d314aa4.js +0 -28
- package/dist/v2/index93.js +0 -3
- package/dist/v3/directives/index.d.ts +0 -2
- package/dist/v3/dropdown-open-0d314aa4.js +0 -28
- package/dist/v3/index93.js +0 -3
- package/src/directives/index.ts +0 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
|
|
2
|
-
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
1
|
+
import { isVue3, defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
|
|
3
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
3
|
import { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
5
4
|
import '@vueuse/core';
|
|
@@ -16,6 +15,31 @@ import { _ as __vue_component__$a } from './OrPopover-9080fc00.js';
|
|
|
16
15
|
import { _ as __vue_component__$b } from './OrTag-c42c3f9c.js';
|
|
17
16
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
18
17
|
|
|
18
|
+
const created$1 = (element, binding) => {
|
|
19
|
+
element.addEventListener('keydown', event => {
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
if (['Escape'].includes(event.key)) {
|
|
22
|
+
binding.value(event);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const DropdownClose = {
|
|
27
|
+
[isVue3 ? 'created' : 'bind']: created$1
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const created = (element, binding) => {
|
|
31
|
+
element.addEventListener('keydown', event => {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
if (['Enter', ' '].includes(event.key)) {
|
|
34
|
+
binding.value(event);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
element.addEventListener('click', binding.value);
|
|
38
|
+
};
|
|
39
|
+
const DropdownOpen = {
|
|
40
|
+
[isVue3 ? 'created' : 'bind']: created
|
|
41
|
+
};
|
|
42
|
+
|
|
19
43
|
const SelectRoot = [
|
|
20
44
|
// Layout
|
|
21
45
|
'flex', 'flex-col',
|
|
@@ -223,15 +247,11 @@ var script = defineComponent({
|
|
|
223
247
|
};
|
|
224
248
|
});
|
|
225
249
|
// Methods
|
|
226
|
-
function
|
|
250
|
+
function open() {
|
|
227
251
|
if (!readonly.value && !props.disabled) {
|
|
228
252
|
const popoverInstance = popover.value;
|
|
229
253
|
if (popoverInstance) {
|
|
230
|
-
|
|
231
|
-
popoverInstance.close();
|
|
232
|
-
} else {
|
|
233
|
-
popoverInstance.open();
|
|
234
|
-
}
|
|
254
|
+
popoverInstance.open();
|
|
235
255
|
}
|
|
236
256
|
}
|
|
237
257
|
}
|
|
@@ -273,7 +293,7 @@ var script = defineComponent({
|
|
|
273
293
|
internalSearchOptions,
|
|
274
294
|
resolvedSearchOptions,
|
|
275
295
|
groupedOptions,
|
|
276
|
-
|
|
296
|
+
open,
|
|
277
297
|
close,
|
|
278
298
|
deselect,
|
|
279
299
|
innerItems,
|
|
@@ -311,8 +331,8 @@ var __vue_render__ = function () {
|
|
|
311
331
|
directives: [{
|
|
312
332
|
name: "dropdown-open",
|
|
313
333
|
rawName: "v-dropdown-open",
|
|
314
|
-
value: _vm.
|
|
315
|
-
expression: "
|
|
334
|
+
value: _vm.open,
|
|
335
|
+
expression: "open"
|
|
316
336
|
}, {
|
|
317
337
|
name: "dropdown-close",
|
|
318
338
|
rawName: "v-dropdown-close",
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
34
34
|
}[]>;
|
|
35
35
|
resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
|
|
36
36
|
groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
|
|
37
|
-
|
|
37
|
+
open: () => void;
|
|
38
38
|
close: () => void;
|
|
39
39
|
deselect: (option: SelectOption) => void;
|
|
40
40
|
innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
@@ -221,7 +221,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
221
221
|
}[]>;
|
|
222
222
|
resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
|
|
223
223
|
groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
|
|
224
|
-
|
|
224
|
+
open: () => void;
|
|
225
225
|
close: () => void;
|
|
226
226
|
deselect: (option: SelectOption) => void;
|
|
227
227
|
innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
package/dist/v2/index.d.ts
CHANGED
package/dist/v2/index.js
CHANGED
|
@@ -64,7 +64,7 @@ export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
|
|
|
64
64
|
export { _ as OrRadioV3 } from './OrRadio-4ba56887.js';
|
|
65
65
|
export { _ as OrSearchV3 } from './OrSearch-45ea8c33.js';
|
|
66
66
|
export { _ as OrSelect } from './OrSelect-ea27a70e.js';
|
|
67
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
67
|
+
export { _ as OrSelectV3 } from './OrSelect-21247104.js';
|
|
68
68
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
|
|
69
69
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-fabc7bc9.js';
|
|
70
70
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-38aef640.js';
|
|
@@ -92,7 +92,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-06654
|
|
|
92
92
|
export { _ as OrTooltip } from './OrTooltip-b31bd78d.js';
|
|
93
93
|
export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
|
|
94
94
|
export { _ as OrTooltipV3 } from './OrTooltip-caeac590.js';
|
|
95
|
-
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
96
95
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
97
96
|
export { u as useElevation } from './useElevation-0e973238.js';
|
|
98
97
|
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
package/dist/v2/index2.js
CHANGED
|
@@ -64,7 +64,7 @@ export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
|
|
|
64
64
|
export { _ as OrRadioV3 } from './OrRadio-4ba56887.js';
|
|
65
65
|
export { _ as OrSearchV3 } from './OrSearch-45ea8c33.js';
|
|
66
66
|
export { _ as OrSelect } from './OrSelect-ea27a70e.js';
|
|
67
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
67
|
+
export { _ as OrSelectV3 } from './OrSelect-21247104.js';
|
|
68
68
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
|
|
69
69
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-fabc7bc9.js';
|
|
70
70
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-38aef640.js';
|
|
@@ -117,7 +117,6 @@ import 'sortablejs';
|
|
|
117
117
|
import './useElevation-0e973238.js';
|
|
118
118
|
import './useResponsive-a02e95b7.js';
|
|
119
119
|
import '@vueuse/integrations/useFocusTrap';
|
|
120
|
-
import './dropdown-open-0d314aa4.js';
|
|
121
120
|
import './useOverflow-ac506c65.js';
|
|
122
121
|
import 'vue';
|
|
123
122
|
import 'portal-vue';
|
package/dist/v2/index64.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from './OrSelect-21247104.js';
|
|
2
2
|
export { a as SelectSize } from './OrInputBox-208dceac.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import './dropdown-open-0d314aa4.js';
|
|
5
4
|
import './useClassAttribute-47fdb016.js';
|
|
6
5
|
import './useOverflow-ac506c65.js';
|
|
7
6
|
import '@vueuse/core';
|
package/dist/v2/index91.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
2
|
+
export { u as useElevation } from './useElevation-0e973238.js';
|
|
3
|
+
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
4
|
+
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
|
+
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
2
6
|
import 'vue-demi';
|
|
7
|
+
import '@vueuse/core';
|
package/dist/v2/index92.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
2
|
-
export { u as useElevation } from './useElevation-0e973238.js';
|
|
3
|
-
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
4
1
|
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
|
-
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
6
|
-
import 'vue-demi';
|
|
7
2
|
import '@vueuse/core';
|
|
3
|
+
import 'vue-demi';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
|
|
2
|
-
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
1
|
+
import { isVue3, defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
|
|
3
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
3
|
import { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
5
4
|
import '@vueuse/core';
|
|
@@ -16,6 +15,31 @@ import { s as script$a } from './OrPopover-3525c670.js';
|
|
|
16
15
|
import { s as script$b } from './OrTag-60585386.js';
|
|
17
16
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, normalizeClass, createElementVNode, Fragment, renderList, createVNode, withModifiers } from 'vue';
|
|
18
17
|
|
|
18
|
+
const created$1 = (element, binding) => {
|
|
19
|
+
element.addEventListener('keydown', event => {
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
if (['Escape'].includes(event.key)) {
|
|
22
|
+
binding.value(event);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const DropdownClose = {
|
|
27
|
+
[isVue3 ? 'created' : 'bind']: created$1
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const created = (element, binding) => {
|
|
31
|
+
element.addEventListener('keydown', event => {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
if (['Enter', ' '].includes(event.key)) {
|
|
34
|
+
binding.value(event);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
element.addEventListener('click', binding.value);
|
|
38
|
+
};
|
|
39
|
+
const DropdownOpen = {
|
|
40
|
+
[isVue3 ? 'created' : 'bind']: created
|
|
41
|
+
};
|
|
42
|
+
|
|
19
43
|
const SelectRoot = [
|
|
20
44
|
// Layout
|
|
21
45
|
'flex', 'flex-col',
|
|
@@ -223,15 +247,11 @@ var script = defineComponent({
|
|
|
223
247
|
};
|
|
224
248
|
});
|
|
225
249
|
// Methods
|
|
226
|
-
function
|
|
250
|
+
function open() {
|
|
227
251
|
if (!readonly.value && !props.disabled) {
|
|
228
252
|
const popoverInstance = popover.value;
|
|
229
253
|
if (popoverInstance) {
|
|
230
|
-
|
|
231
|
-
popoverInstance.close();
|
|
232
|
-
} else {
|
|
233
|
-
popoverInstance.open();
|
|
234
|
-
}
|
|
254
|
+
popoverInstance.open();
|
|
235
255
|
}
|
|
236
256
|
}
|
|
237
257
|
}
|
|
@@ -273,7 +293,7 @@ var script = defineComponent({
|
|
|
273
293
|
internalSearchOptions,
|
|
274
294
|
resolvedSearchOptions,
|
|
275
295
|
groupedOptions,
|
|
276
|
-
|
|
296
|
+
open,
|
|
277
297
|
close,
|
|
278
298
|
deselect,
|
|
279
299
|
innerItems,
|
|
@@ -464,7 +484,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
464
484
|
_: 3 /* FORWARDED */
|
|
465
485
|
}, 8 /* PROPS */, ["class", "trigger"])]),
|
|
466
486
|
_: 3 /* FORWARDED */
|
|
467
|
-
}, 8 /* PROPS */, ["class", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.
|
|
487
|
+
}, 8 /* PROPS */, ["class", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.open], [_directive_dropdown_close, _ctx.close]]), !_ctx.invalid ? (openBlock(), createBlock(_component_OrHint, {
|
|
468
488
|
key: 1,
|
|
469
489
|
disabled: _ctx.disabled
|
|
470
490
|
}, {
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
34
34
|
}[]>;
|
|
35
35
|
resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
|
|
36
36
|
groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
|
|
37
|
-
|
|
37
|
+
open: () => void;
|
|
38
38
|
close: () => void;
|
|
39
39
|
deselect: (option: SelectOption) => void;
|
|
40
40
|
innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
@@ -221,7 +221,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
221
221
|
}[]>;
|
|
222
222
|
resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
|
|
223
223
|
groupedOptions: import("@vue/composition-api").ComputedRef<Record<string, SelectOption[]>>;
|
|
224
|
-
|
|
224
|
+
open: () => void;
|
|
225
225
|
close: () => void;
|
|
226
226
|
deselect: (option: SelectOption) => void;
|
|
227
227
|
innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
package/dist/v3/index.d.ts
CHANGED
package/dist/v3/index.js
CHANGED
|
@@ -59,7 +59,7 @@ export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
|
59
59
|
export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
|
|
60
60
|
export { s as OrSearchV3 } from './OrSearch-e27cadbf.js';
|
|
61
61
|
export { s as OrSelect } from './OrSelect-056731af.js';
|
|
62
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
62
|
+
export { s as OrSelectV3 } from './OrSelect-4cd90c6b.js';
|
|
63
63
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
64
64
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
65
65
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -86,7 +86,6 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-e
|
|
|
86
86
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
87
87
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-121eae2b.js';
|
|
88
88
|
export { s as OrTooltipV3 } from './OrTooltip-30e05f9e.js';
|
|
89
|
-
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
90
89
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
91
90
|
export { u as useElevation } from './useElevation-0e973238.js';
|
|
92
91
|
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
package/dist/v3/index2.js
CHANGED
|
@@ -59,7 +59,7 @@ export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
|
59
59
|
export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
|
|
60
60
|
export { s as OrSearchV3 } from './OrSearch-e27cadbf.js';
|
|
61
61
|
export { s as OrSelect } from './OrSelect-056731af.js';
|
|
62
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
62
|
+
export { s as OrSelectV3 } from './OrSelect-4cd90c6b.js';
|
|
63
63
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
64
64
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
65
65
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -111,5 +111,4 @@ import 'sortablejs';
|
|
|
111
111
|
import './useElevation-0e973238.js';
|
|
112
112
|
import './useResponsive-a02e95b7.js';
|
|
113
113
|
import '@vueuse/integrations/useFocusTrap';
|
|
114
|
-
import './dropdown-open-0d314aa4.js';
|
|
115
114
|
import './useOverflow-ac506c65.js';
|
package/dist/v3/index64.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from './OrSelect-4cd90c6b.js';
|
|
2
2
|
export { a as SelectSize } from './OrInputBox-634230b1.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import './dropdown-open-0d314aa4.js';
|
|
5
4
|
import './useClassAttribute-47fdb016.js';
|
|
6
5
|
import './useOverflow-ac506c65.js';
|
|
7
6
|
import '@vueuse/core';
|
package/dist/v3/index91.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
2
|
+
export { u as useElevation } from './useElevation-0e973238.js';
|
|
3
|
+
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
4
|
+
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
|
+
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
2
6
|
import 'vue-demi';
|
|
7
|
+
import '@vueuse/core';
|
package/dist/v3/index92.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
2
|
-
export { u as useElevation } from './useElevation-0e973238.js';
|
|
3
|
-
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
4
1
|
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
|
-
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
6
|
-
import 'vue-demi';
|
|
7
2
|
import '@vueuse/core';
|
|
3
|
+
import 'vue-demi';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.62.1",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "pnpm build:vue3 && pnpm build:vue2",
|
|
16
|
-
"dev": "pnpm switch:vue2",
|
|
17
16
|
"build:vue2": "pnpm switch:vue2 && npx rollup --config rollup.config.js",
|
|
18
17
|
"build:vue3": "pnpm switch:vue3 && npx rollup --config rollup.config.js",
|
|
18
|
+
"dev": "pnpm switch:vue2",
|
|
19
19
|
"dev:vue2": "pnpm switch:vue2 && ROLLUP_WATCH=true npx rollup --config rollup.config.js -w",
|
|
20
20
|
"dev:vue3": "pnpm switch:vue3 && ROLLUP_WATCH=true npx rollup --config rollup.config.js -w",
|
|
21
21
|
"postinstall": "node ./autoinstall.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@codemirror/lang-json": "6.0.0",
|
|
30
30
|
"@codemirror/lang-markdown": "6.0.1",
|
|
31
31
|
"@floating-ui/dom": "0.3.1",
|
|
32
|
-
"@onereach/styles": "^2.
|
|
32
|
+
"@onereach/styles": "^2.30.0",
|
|
33
33
|
"@splidejs/splide": "4.0.6",
|
|
34
34
|
"@types/lodash": "4.14.173",
|
|
35
35
|
"@types/sortablejs": "1.10.7",
|
|
@@ -75,5 +75,9 @@
|
|
|
75
75
|
"portal-vue": {
|
|
76
76
|
"optional": true
|
|
77
77
|
}
|
|
78
|
-
}
|
|
78
|
+
},
|
|
79
|
+
"publishConfig": {
|
|
80
|
+
"access": "public"
|
|
81
|
+
},
|
|
82
|
+
"gitHead": "ceb67be57fd04eb8031866ec511b31a0f03fcdab"
|
|
79
83
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
<OrInputBox
|
|
23
23
|
ref="inputBox"
|
|
24
|
-
v-dropdown-open="
|
|
24
|
+
v-dropdown-open="open"
|
|
25
25
|
v-dropdown-close="close"
|
|
26
26
|
:class="[popoverState === 'open' && 'rounded-b-0']"
|
|
27
27
|
:size="size"
|
|
@@ -208,7 +208,8 @@
|
|
|
208
208
|
|
|
209
209
|
<script lang="ts">
|
|
210
210
|
import { computed, defineComponent, getCurrentInstance, onMounted, PropType, ref, watch } from 'vue-demi';
|
|
211
|
-
import { DropdownClose
|
|
211
|
+
import { DropdownClose } from '../../directives/dropdown-close';
|
|
212
|
+
import { DropdownOpen } from '../../directives/dropdown-open';
|
|
212
213
|
import { useClassAttribute, useOverflow } from '../../hooks';
|
|
213
214
|
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3';
|
|
214
215
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
@@ -464,16 +465,12 @@ export default defineComponent({
|
|
|
464
465
|
});
|
|
465
466
|
|
|
466
467
|
// Methods
|
|
467
|
-
function
|
|
468
|
+
function open(): void {
|
|
468
469
|
if (!readonly.value && !props.disabled) {
|
|
469
470
|
const popoverInstance = popover.value;
|
|
470
471
|
|
|
471
472
|
if (popoverInstance) {
|
|
472
|
-
|
|
473
|
-
(popoverInstance.close as () => void)();
|
|
474
|
-
} else {
|
|
475
|
-
(popoverInstance.open as () => void)();
|
|
476
|
-
}
|
|
473
|
+
(popoverInstance.open as () => void)();
|
|
477
474
|
}
|
|
478
475
|
}
|
|
479
476
|
}
|
|
@@ -518,7 +515,7 @@ export default defineComponent({
|
|
|
518
515
|
internalSearchOptions,
|
|
519
516
|
resolvedSearchOptions,
|
|
520
517
|
groupedOptions,
|
|
521
|
-
|
|
518
|
+
open,
|
|
522
519
|
close,
|
|
523
520
|
deselect,
|
|
524
521
|
innerItems,
|
package/src/index.ts
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isVue3 } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
const created$1 = (element, binding) => {
|
|
4
|
-
element.addEventListener('keydown', event => {
|
|
5
|
-
event.preventDefault();
|
|
6
|
-
if (['Escape'].includes(event.key)) {
|
|
7
|
-
binding.value(event);
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
const DropdownClose = {
|
|
12
|
-
[isVue3 ? 'created' : 'bind']: created$1
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const created = (element, binding) => {
|
|
16
|
-
element.addEventListener('keydown', event => {
|
|
17
|
-
event.preventDefault();
|
|
18
|
-
if (['Enter', ' '].includes(event.key)) {
|
|
19
|
-
binding.value(event);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
element.addEventListener('click', binding.value);
|
|
23
|
-
};
|
|
24
|
-
const DropdownOpen = {
|
|
25
|
-
[isVue3 ? 'created' : 'bind']: created
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { DropdownClose as D, DropdownOpen as a };
|
package/dist/v2/index93.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isVue3 } from 'vue-demi';
|
|
2
|
-
|
|
3
|
-
const created$1 = (element, binding) => {
|
|
4
|
-
element.addEventListener('keydown', event => {
|
|
5
|
-
event.preventDefault();
|
|
6
|
-
if (['Escape'].includes(event.key)) {
|
|
7
|
-
binding.value(event);
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
const DropdownClose = {
|
|
12
|
-
[isVue3 ? 'created' : 'bind']: created$1
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const created = (element, binding) => {
|
|
16
|
-
element.addEventListener('keydown', event => {
|
|
17
|
-
event.preventDefault();
|
|
18
|
-
if (['Enter', ' '].includes(event.key)) {
|
|
19
|
-
binding.value(event);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
element.addEventListener('click', binding.value);
|
|
23
|
-
};
|
|
24
|
-
const DropdownOpen = {
|
|
25
|
-
[isVue3 ? 'created' : 'bind']: created
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { DropdownClose as D, DropdownOpen as a };
|
package/dist/v3/index93.js
DELETED
package/src/directives/index.ts
DELETED