@onereach/ui-components 2.62.3-beta.1899.0 → 2.62.3-beta.1900.0
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/{OrConfirm-d561bf82.js → OrConfirm-8d149ece.js} +1 -1
- package/dist/v2/{OrIconButton-1b34f3fa.js → OrIconButton-5883eba0.js} +1 -1
- package/dist/v2/{OrInlineInput-e754cb9f.js → OrInlineInput-16a343c1.js} +1 -1
- package/dist/v2/{OrInlineTextarea-7dc58bb1.js → OrInlineTextarea-f154bdf5.js} +1 -1
- package/dist/v2/{OrInput-0dcfba2a.js → OrInput-4a50fe57.js} +1 -1
- package/dist/v2/{OrModal-1ed53441.js → OrModal-64c5ae2e.js} +1 -1
- package/dist/v2/{OrNotification-e2d510b3.js → OrNotification-9c164908.js} +1 -1
- package/dist/v2/{OrSearch-45ea8c33.js → OrSearch-a247f072.js} +1 -1
- package/dist/v2/{OrSelect-b44cac14.js → OrSelect-bb223cce.js} +33 -13
- package/dist/v2/{OrTag-c42c3f9c.js → OrTag-ab03c4f7.js} +1 -1
- 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 +11 -12
- package/dist/v2/index2.js +11 -12
- package/dist/v2/index20.js +3 -3
- package/dist/v2/index31.js +1 -1
- package/dist/v2/index34.js +2 -2
- package/dist/v2/index36.js +2 -2
- package/dist/v2/index38.js +2 -2
- package/dist/v2/index50.js +2 -2
- package/dist/v2/index52.js +2 -2
- package/dist/v2/index62.js +3 -3
- package/dist/v2/index64.js +4 -5
- package/dist/v2/index79.js +2 -2
- package/dist/v2/index87.js +2 -2
- package/dist/v2/index91.js +6 -1
- package/dist/v2/index92.js +1 -5
- package/dist/v2/{types-8ea6482d.js → types-fb93ea4e.js} +1 -1
- package/dist/v3/{OrConfirm-a9d3f157.js → OrConfirm-456ddee1.js} +1 -1
- package/dist/v3/{OrIconButton-f9226adf.js → OrIconButton-b8066b5d.js} +1 -1
- package/dist/v3/{OrInlineInput-8f473205.js → OrInlineInput-280768ba.js} +1 -1
- package/dist/v3/{OrInlineTextarea-86f4506d.js → OrInlineTextarea-0f63f344.js} +1 -1
- package/dist/v3/{OrInput-f51916d4.js → OrInput-3eef7945.js} +1 -1
- package/dist/v3/{OrModal-0713f927.js → OrModal-f67d37d3.js} +1 -1
- package/dist/v3/{OrNotification-7ef1b4e7.js → OrNotification-fefa1cb4.js} +1 -1
- package/dist/v3/{OrSearch-e27cadbf.js → OrSearch-15a70678.js} +1 -1
- package/dist/v3/{OrSelect-9d821ef2.js → OrSelect-63ada65d.js} +32 -12
- package/dist/v3/{OrTag-60585386.js → OrTag-144b4ab8.js} +1 -1
- 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 +11 -12
- package/dist/v3/index2.js +11 -12
- package/dist/v3/index20.js +3 -3
- package/dist/v3/index31.js +1 -1
- package/dist/v3/index34.js +2 -2
- package/dist/v3/index36.js +2 -2
- package/dist/v3/index38.js +2 -2
- package/dist/v3/index50.js +2 -2
- package/dist/v3/index52.js +2 -2
- package/dist/v3/index62.js +3 -3
- package/dist/v3/index64.js +4 -5
- package/dist/v3/index79.js +2 -2
- package/dist/v3/index87.js +2 -2
- package/dist/v3/index91.js +6 -1
- package/dist/v3/index92.js +1 -5
- package/dist/v3/{types-e4403486.js → types-a2a8f948.js} +1 -1
- package/package.json +1 -1
- package/src/components/or-icon-button-v3/styles.ts +1 -0
- 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,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
-
import { s as script$2 } from './OrIconButton-
|
|
4
|
+
import { s as script$2 } from './OrIconButton-b8066b5d.js';
|
|
5
5
|
import { s as script$1 } from './OrIcon-b3906e35.js';
|
|
6
6
|
import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, createVNode, renderSlot, withModifiers } from 'vue';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
|
-
import { s as script$1 } from './OrInput-
|
|
4
|
+
import { s as script$1 } from './OrInput-3eef7945.js';
|
|
5
5
|
import { a as InputBoxSize } from './OrInputBox-634230b1.js';
|
|
6
6
|
import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
|
|
7
7
|
|
|
@@ -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';
|
|
@@ -9,13 +8,38 @@ import { s as script$3 } from './OrExpansionPanel-1e2a6375.js';
|
|
|
9
8
|
import { s as script$4 } from './OrHint-73835593.js';
|
|
10
9
|
import { s as script$5 } from './OrIcon-b3906e35.js';
|
|
11
10
|
import { s as script$7, a as InputBoxSize } from './OrInputBox-634230b1.js';
|
|
12
|
-
import { s as script$6 } from './OrInput-
|
|
11
|
+
import { s as script$6 } from './OrInput-3eef7945.js';
|
|
13
12
|
import { s as script$8 } from './OrLabel-7d4fe80b.js';
|
|
14
13
|
import { s as script$9 } from './OrMenuItem-8773d073.js';
|
|
15
14
|
import { s as script$a } from './OrPopover-3525c670.js';
|
|
16
|
-
import { s as script$b } from './OrTag-
|
|
15
|
+
import { s as script$b } from './OrTag-144b4ab8.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
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watchPostEffect, unref } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
-
import { s as script$1 } from './OrIconButton-
|
|
4
|
+
import { s as script$1 } from './OrIconButton-b8066b5d.js';
|
|
5
5
|
import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, createBlock, normalizeClass, withModifiers, createCommentVNode } from 'vue';
|
|
6
6
|
|
|
7
7
|
var TagVariant;
|
|
@@ -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
|
@@ -15,7 +15,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-feeec003.js';
|
|
|
15
15
|
export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
|
|
16
16
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-0a944d25.js';
|
|
17
17
|
export { s as OrConfirm } from './OrConfirm-00134f53.js';
|
|
18
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
18
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-456ddee1.js';
|
|
19
19
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-6c79a764.js';
|
|
20
20
|
export { s as OrError } from './OrError-f90296db.js';
|
|
21
21
|
export { s as OrErrorTagV3 } from './OrErrorTag-ceefd643.js';
|
|
@@ -26,14 +26,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
|
|
|
26
26
|
export { s as OrHint } from './OrHint-1414c530.js';
|
|
27
27
|
export { s as OrHintV3 } from './OrHint-73835593.js';
|
|
28
28
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-e23028f8.js';
|
|
29
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
29
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-b8066b5d.js';
|
|
30
30
|
export { a as IconSize, I as IconVariant, s as OrIconV3 } from './OrIcon-b3906e35.js';
|
|
31
31
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-1b473796.js';
|
|
32
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
32
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-280768ba.js';
|
|
33
33
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-455a2d64.js';
|
|
34
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
34
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-0f63f344.js';
|
|
35
35
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-634230b1.js';
|
|
36
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
36
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-3eef7945.js';
|
|
37
37
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-2874026c.js';
|
|
38
38
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
39
39
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-7d4fe80b.js';
|
|
@@ -46,9 +46,9 @@ export { s as OrMenuItemV3 } from './OrMenuItem-8773d073.js';
|
|
|
46
46
|
export { s as OrMenuV3 } from './OrMenu-75ef8635.js';
|
|
47
47
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-3525c670.js';
|
|
48
48
|
export { s as OrModal, O as OrModalSizes } from './OrModal-75c8e5b6.js';
|
|
49
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
49
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-f67d37d3.js';
|
|
50
50
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-38664729.js';
|
|
51
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
51
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-fefa1cb4.js';
|
|
52
52
|
export { s as OrOverflowMenu } from './OrOverflowMenu-7a177537.js';
|
|
53
53
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
54
54
|
export { s as OrOverlayV3 } from './OrOverlay-27050c19.js';
|
|
@@ -57,9 +57,9 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
57
57
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
58
58
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
59
59
|
export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
|
|
60
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
60
|
+
export { s as OrSearchV3 } from './OrSearch-15a70678.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-63ada65d.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';
|
|
@@ -74,7 +74,7 @@ export { s as OrTabV3 } from './OrTab-97044946.js';
|
|
|
74
74
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
75
75
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
|
|
76
76
|
export { s as OrTag } from './OrTag-7e24fdbc.js';
|
|
77
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
77
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-144b4ab8.js';
|
|
78
78
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
79
79
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
80
80
|
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
|
@@ -82,11 +82,10 @@ export { s as OrTextareaV3 } from './OrTextarea-09aa33dc.js';
|
|
|
82
82
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
|
|
83
83
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
|
|
84
84
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
85
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
85
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-a2a8f948.js';
|
|
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
|
@@ -15,7 +15,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-feeec003.js';
|
|
|
15
15
|
export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
|
|
16
16
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-0a944d25.js';
|
|
17
17
|
export { s as OrConfirm } from './OrConfirm-00134f53.js';
|
|
18
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
18
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-456ddee1.js';
|
|
19
19
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-6c79a764.js';
|
|
20
20
|
export { s as OrError } from './OrError-f90296db.js';
|
|
21
21
|
export { s as OrErrorTagV3 } from './OrErrorTag-ceefd643.js';
|
|
@@ -26,14 +26,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
|
|
|
26
26
|
export { s as OrHint } from './OrHint-1414c530.js';
|
|
27
27
|
export { s as OrHintV3 } from './OrHint-73835593.js';
|
|
28
28
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-e23028f8.js';
|
|
29
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
29
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-b8066b5d.js';
|
|
30
30
|
export { a as IconSize, I as IconVariant, s as OrIconV3 } from './OrIcon-b3906e35.js';
|
|
31
31
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-1b473796.js';
|
|
32
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
32
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-280768ba.js';
|
|
33
33
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-455a2d64.js';
|
|
34
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
34
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-0f63f344.js';
|
|
35
35
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-634230b1.js';
|
|
36
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
36
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-3eef7945.js';
|
|
37
37
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-2874026c.js';
|
|
38
38
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
39
39
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-7d4fe80b.js';
|
|
@@ -46,9 +46,9 @@ export { s as OrMenuItemV3 } from './OrMenuItem-8773d073.js';
|
|
|
46
46
|
export { s as OrMenuV3 } from './OrMenu-75ef8635.js';
|
|
47
47
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-3525c670.js';
|
|
48
48
|
export { s as OrModal, O as OrModalSizes } from './OrModal-75c8e5b6.js';
|
|
49
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
49
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-f67d37d3.js';
|
|
50
50
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-38664729.js';
|
|
51
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
51
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-fefa1cb4.js';
|
|
52
52
|
export { s as OrOverflowMenu } from './OrOverflowMenu-7a177537.js';
|
|
53
53
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
54
54
|
export { s as OrOverlayV3 } from './OrOverlay-27050c19.js';
|
|
@@ -57,9 +57,9 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
57
57
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
58
58
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
59
59
|
export { s as OrRadioV3 } from './OrRadio-0c1883f2.js';
|
|
60
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
60
|
+
export { s as OrSearchV3 } from './OrSearch-15a70678.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-63ada65d.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';
|
|
@@ -74,7 +74,7 @@ export { s as OrTabV3 } from './OrTab-97044946.js';
|
|
|
74
74
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
75
75
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-194ca950.js';
|
|
76
76
|
export { s as OrTag } from './OrTag-7e24fdbc.js';
|
|
77
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
77
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-144b4ab8.js';
|
|
78
78
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
79
79
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
80
80
|
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
|
@@ -82,7 +82,7 @@ export { s as OrTextareaV3 } from './OrTextarea-09aa33dc.js';
|
|
|
82
82
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
|
|
83
83
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
|
|
84
84
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
85
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
85
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-a2a8f948.js';
|
|
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';
|
|
@@ -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/index20.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-456ddee1.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './OrButton-12b36e89.js';
|
|
4
4
|
import './useClassAttribute-47fdb016.js';
|
|
@@ -8,10 +8,10 @@ import 'vue';
|
|
|
8
8
|
import './OrOverlay-27050c19.js';
|
|
9
9
|
import './useElevation-0e973238.js';
|
|
10
10
|
import './OrTeleport.vue3-8099178c.js';
|
|
11
|
-
import './OrInput-
|
|
11
|
+
import './OrInput-3eef7945.js';
|
|
12
12
|
import './OrError-19a62a18.js';
|
|
13
13
|
import './OrHint-73835593.js';
|
|
14
|
-
import './OrIconButton-
|
|
14
|
+
import './OrIconButton-b8066b5d.js';
|
|
15
15
|
import './OrIcon-b3906e35.js';
|
|
16
16
|
import './OrTooltip-30e05f9e.js';
|
|
17
17
|
import './OrPopover-3525c670.js';
|
package/dist/v3/index31.js
CHANGED
package/dist/v3/index34.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
1
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-280768ba.js';
|
|
2
2
|
export { I as InlineInputSize } from './OrInlineInputBox-1b473796.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './useClassAttribute-47fdb016.js';
|
|
@@ -6,7 +6,7 @@ import '@vueuse/core';
|
|
|
6
6
|
import './OrError-19a62a18.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import './OrHint-73835593.js';
|
|
9
|
-
import './OrIconButton-
|
|
9
|
+
import './OrIconButton-b8066b5d.js';
|
|
10
10
|
import './OrIcon-b3906e35.js';
|
|
11
11
|
import './OrTooltip-30e05f9e.js';
|
|
12
12
|
import './OrPopover-3525c670.js';
|
package/dist/v3/index36.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
1
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-0f63f344.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import './OrError-19a62a18.js';
|
|
6
6
|
import 'vue';
|
|
7
7
|
import './OrHint-73835593.js';
|
|
8
|
-
import './OrIconButton-
|
|
8
|
+
import './OrIconButton-b8066b5d.js';
|
|
9
9
|
import './OrIcon-b3906e35.js';
|
|
10
10
|
import './OrTooltip-30e05f9e.js';
|
|
11
11
|
import './OrPopover-3525c670.js';
|
package/dist/v3/index38.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
1
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-3eef7945.js';
|
|
2
2
|
export { a as InputSize } from './OrInputBox-634230b1.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './useClassAttribute-47fdb016.js';
|
|
@@ -6,7 +6,7 @@ import '@vueuse/core';
|
|
|
6
6
|
import './OrError-19a62a18.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import './OrHint-73835593.js';
|
|
9
|
-
import './OrIconButton-
|
|
9
|
+
import './OrIconButton-b8066b5d.js';
|
|
10
10
|
import './OrIcon-b3906e35.js';
|
|
11
11
|
import './OrTooltip-30e05f9e.js';
|
|
12
12
|
import './OrPopover-3525c670.js';
|
package/dist/v3/index50.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
1
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-f67d37d3.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import './OrIconButton-
|
|
5
|
+
import './OrIconButton-b8066b5d.js';
|
|
6
6
|
import './OrIcon-b3906e35.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import './OrTooltip-30e05f9e.js';
|
package/dist/v3/index52.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
1
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-fefa1cb4.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import './OrIconButton-
|
|
5
|
+
import './OrIconButton-b8066b5d.js';
|
|
6
6
|
import './OrIcon-b3906e35.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import './OrTooltip-30e05f9e.js';
|
package/dist/v3/index62.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
1
|
+
export { s as OrSearchV3 } from './OrSearch-15a70678.js';
|
|
2
2
|
export { a as SearchSize } from './OrInputBox-634230b1.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import './useClassAttribute-47fdb016.js';
|
|
6
|
-
import './OrInput-
|
|
6
|
+
import './OrInput-3eef7945.js';
|
|
7
7
|
import './OrError-19a62a18.js';
|
|
8
8
|
import 'vue';
|
|
9
9
|
import './OrHint-73835593.js';
|
|
10
|
-
import './OrIconButton-
|
|
10
|
+
import './OrIconButton-b8066b5d.js';
|
|
11
11
|
import './OrIcon-b3906e35.js';
|
|
12
12
|
import './OrTooltip-30e05f9e.js';
|
|
13
13
|
import './OrPopover-3525c670.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-63ada65d.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';
|
|
@@ -13,8 +12,8 @@ import './OrError-19a62a18.js';
|
|
|
13
12
|
import './OrExpansionPanel-1e2a6375.js';
|
|
14
13
|
import './OrIcon-b3906e35.js';
|
|
15
14
|
import './OrHint-73835593.js';
|
|
16
|
-
import './OrInput-
|
|
17
|
-
import './OrIconButton-
|
|
15
|
+
import './OrInput-3eef7945.js';
|
|
16
|
+
import './OrIconButton-b8066b5d.js';
|
|
18
17
|
import './OrTooltip-30e05f9e.js';
|
|
19
18
|
import './OrPopover-3525c670.js';
|
|
20
19
|
import '@floating-ui/dom';
|
|
@@ -24,4 +23,4 @@ import './OrBottomSheet-9de57dd0.js';
|
|
|
24
23
|
import './OrOverlay-27050c19.js';
|
|
25
24
|
import './OrTeleport.vue3-8099178c.js';
|
|
26
25
|
import './OrMenuItem-8773d073.js';
|
|
27
|
-
import './OrTag-
|
|
26
|
+
import './OrTag-144b4ab8.js';
|
package/dist/v3/index79.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
1
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-144b4ab8.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import './useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import './OrIconButton-
|
|
5
|
+
import './OrIconButton-b8066b5d.js';
|
|
6
6
|
import './OrIcon-b3906e35.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import './OrTooltip-30e05f9e.js';
|
package/dist/v3/index87.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
1
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-a2a8f948.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import './OrTeleport.vue3-8099178c.js';
|
|
6
6
|
import 'vue';
|
|
7
|
-
import './OrIconButton-
|
|
7
|
+
import './OrIconButton-b8066b5d.js';
|
|
8
8
|
import './useClassAttribute-47fdb016.js';
|
|
9
9
|
import './OrIcon-b3906e35.js';
|
|
10
10
|
import './OrTooltip-30e05f9e.js';
|
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';
|
|
@@ -2,7 +2,7 @@ import { useToggle } from '@vueuse/core';
|
|
|
2
2
|
import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
|
|
3
3
|
import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
|
|
4
4
|
import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
|
|
5
|
-
import { s as script$2 } from './OrIconButton-
|
|
5
|
+
import { s as script$2 } from './OrIconButton-b8066b5d.js';
|
|
6
6
|
import { s as script$3 } from './OrLoader-60943812.js';
|
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, createElementVNode, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
package/package.json
CHANGED
|
@@ -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 };
|