@destyler/combobox 0.0.4 → 0.0.5
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/component.cjs +5 -10
- package/dist/component.d.cts +2 -2
- package/dist/component.d.mts +2 -2
- package/dist/component.d.ts +2 -2
- package/dist/component.mjs +1 -2
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +0 -1
- package/dist/shared/{combobox.2a62f7db.d.cts → combobox.d5de67c5.d.cts} +9 -3
- package/dist/shared/{combobox.2a62f7db.d.mts → combobox.d5de67c5.d.mts} +9 -3
- package/dist/shared/{combobox.2a62f7db.d.ts → combobox.d5de67c5.d.ts} +9 -3
- package/package.json +11 -12
package/dist/component.cjs
CHANGED
|
@@ -6,7 +6,6 @@ const composition = require('@destyler/composition');
|
|
|
6
6
|
const popper = require('@destyler/popper');
|
|
7
7
|
const component$2 = require('@destyler/popper/component');
|
|
8
8
|
const shared = require('@destyler/shared');
|
|
9
|
-
const isEqual = require('fast-deep-equal');
|
|
10
9
|
const component = require('@destyler/visually-hidden/component');
|
|
11
10
|
const composition$1 = require('@destyler/collection/composition');
|
|
12
11
|
const collection = require('@destyler/collection');
|
|
@@ -16,10 +15,6 @@ const directives = require('@destyler/directives');
|
|
|
16
15
|
const presence = require('@destyler/presence');
|
|
17
16
|
const teleport = require('@destyler/teleport');
|
|
18
17
|
|
|
19
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
20
|
-
|
|
21
|
-
const isEqual__default = /*#__PURE__*/_interopDefaultCompat(isEqual);
|
|
22
|
-
|
|
23
18
|
const comboboxAnchorProps = {
|
|
24
19
|
...primitive.primitiveProps
|
|
25
20
|
};
|
|
@@ -206,7 +201,7 @@ const ComboboxRoot = vue.defineComponent({
|
|
|
206
201
|
}
|
|
207
202
|
function onValueChange(val) {
|
|
208
203
|
if (Array.isArray(modelValue.value) && multiple.value) {
|
|
209
|
-
const index = modelValue.value.findIndex((i) =>
|
|
204
|
+
const index = modelValue.value.findIndex((i) => shared.isEqual(i, val));
|
|
210
205
|
index === -1 ? modelValue.value.push(val) : modelValue.value.splice(index, 1);
|
|
211
206
|
} else {
|
|
212
207
|
modelValue.value = val;
|
|
@@ -239,7 +234,7 @@ const ComboboxRoot = vue.defineComponent({
|
|
|
239
234
|
searchTerm.value = "";
|
|
240
235
|
}
|
|
241
236
|
}
|
|
242
|
-
const activeIndex = vue.computed(() => filteredOptions.value.findIndex((i) =>
|
|
237
|
+
const activeIndex = vue.computed(() => filteredOptions.value.findIndex((i) => shared.isEqual(i, selectedValue.value)));
|
|
243
238
|
const selectedElement = vue.computed(() => {
|
|
244
239
|
return reactiveItems.value.find((i) => i.value === selectedValue.value)?.ref;
|
|
245
240
|
});
|
|
@@ -806,11 +801,11 @@ const ComboboxItem = vue.defineComponent({
|
|
|
806
801
|
injectComboboxGroupContext({ id: "", options: vue.ref([]) });
|
|
807
802
|
const { forwardRef } = composition.useForwardExpose();
|
|
808
803
|
const isSelected = vue.computed(
|
|
809
|
-
() => rootContext.multiple.value && Array.isArray(rootContext.modelValue.value) ? rootContext.modelValue.value?.some((val) =>
|
|
804
|
+
() => rootContext.multiple.value && Array.isArray(rootContext.modelValue.value) ? rootContext.modelValue.value?.some((val) => shared.isEqual(val, props.value)) : shared.isEqual(rootContext.modelValue?.value, props.value)
|
|
810
805
|
);
|
|
811
|
-
const isFocused = vue.computed(() =>
|
|
806
|
+
const isFocused = vue.computed(() => shared.isEqual(rootContext.selectedValue.value, props.value));
|
|
812
807
|
const textId = composition.useId(void 0, "destyler-combobox-item");
|
|
813
|
-
const isInOption = vue.computed(() => rootContext.isUserInputted.value ? rootContext.searchTerm.value === "" || !!rootContext.filteredOptions.value.find((i) =>
|
|
808
|
+
const isInOption = vue.computed(() => rootContext.isUserInputted.value ? rootContext.searchTerm.value === "" || !!rootContext.filteredOptions.value.find((i) => shared.isEqual(i, props.value)) : true);
|
|
814
809
|
async function handleSelect(ev) {
|
|
815
810
|
emit("select", ev);
|
|
816
811
|
if (ev?.defaultPrevented)
|
package/dist/component.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ComboboxRootContext, A as AcceptableValue } from './shared/combobox.
|
|
2
|
-
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, l as comboboxContentEmits, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, y as comboboxItemEmits, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, N as comboboxRootEmits, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.
|
|
1
|
+
import { C as ComboboxRootContext, A as AcceptableValue } from './shared/combobox.d5de67c5.cjs';
|
|
2
|
+
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, l as comboboxContentEmits, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, y as comboboxItemEmits, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, N as comboboxRootEmits, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.d5de67c5.cjs';
|
|
3
3
|
import * as _destyler_primitive from '@destyler/primitive';
|
|
4
4
|
import * as vue from 'vue';
|
|
5
5
|
import { PropType } from 'vue';
|
package/dist/component.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ComboboxRootContext, A as AcceptableValue } from './shared/combobox.
|
|
2
|
-
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, l as comboboxContentEmits, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, y as comboboxItemEmits, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, N as comboboxRootEmits, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.
|
|
1
|
+
import { C as ComboboxRootContext, A as AcceptableValue } from './shared/combobox.d5de67c5.mjs';
|
|
2
|
+
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, l as comboboxContentEmits, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, y as comboboxItemEmits, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, N as comboboxRootEmits, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.d5de67c5.mjs';
|
|
3
3
|
import * as _destyler_primitive from '@destyler/primitive';
|
|
4
4
|
import * as vue from 'vue';
|
|
5
5
|
import { PropType } from 'vue';
|
package/dist/component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ComboboxRootContext, A as AcceptableValue } from './shared/combobox.
|
|
2
|
-
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, l as comboboxContentEmits, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, y as comboboxItemEmits, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, N as comboboxRootEmits, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.
|
|
1
|
+
import { C as ComboboxRootContext, A as AcceptableValue } from './shared/combobox.d5de67c5.js';
|
|
2
|
+
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, l as comboboxContentEmits, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, y as comboboxItemEmits, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, N as comboboxRootEmits, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.d5de67c5.js';
|
|
3
3
|
import * as _destyler_primitive from '@destyler/primitive';
|
|
4
4
|
import * as vue from 'vue';
|
|
5
5
|
import { PropType } from 'vue';
|
package/dist/component.mjs
CHANGED
|
@@ -3,8 +3,7 @@ import { primitiveProps, Primitive } from '@destyler/primitive';
|
|
|
3
3
|
import { useForwardExpose, useDirection, useVModel, useFormControl, useBodyScrollLock, useHideOthers, useForwardProps, useForwardPropsEmits, useId, useMutationObserver } from '@destyler/composition';
|
|
4
4
|
import { PopperAnchor, PopperRoot, popperContentProps, PopperContent, PopperArrow } from '@destyler/popper';
|
|
5
5
|
import { popperArrowProps } from '@destyler/popper/component';
|
|
6
|
-
import { createContext, handleAndDispatchCustomEvent } from '@destyler/shared';
|
|
7
|
-
import isEqual from 'fast-deep-equal';
|
|
6
|
+
import { createContext, isEqual, handleAndDispatchCustomEvent } from '@destyler/shared';
|
|
8
7
|
import { VisuallyHiddenInput } from '@destyler/visually-hidden/component';
|
|
9
8
|
import { createCollection } from '@destyler/collection/composition';
|
|
10
9
|
import { CollectionSlot, CollectionItem } from '@destyler/collection';
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,6 @@ require('@destyler/composition');
|
|
|
7
7
|
require('@destyler/popper');
|
|
8
8
|
require('@destyler/popper/component');
|
|
9
9
|
require('@destyler/shared');
|
|
10
|
-
require('fast-deep-equal');
|
|
11
10
|
require('@destyler/visually-hidden/component');
|
|
12
11
|
require('@destyler/collection/composition');
|
|
13
12
|
require('@destyler/collection');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.
|
|
1
|
+
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.d5de67c5.cjs';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@destyler/primitive';
|
|
4
4
|
import '@destyler/shared';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.
|
|
1
|
+
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.d5de67c5.mjs';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@destyler/primitive';
|
|
4
4
|
import '@destyler/shared';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.
|
|
1
|
+
export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.d5de67c5.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@destyler/primitive';
|
|
4
4
|
import '@destyler/shared';
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@ import '@destyler/composition';
|
|
|
5
5
|
import '@destyler/popper';
|
|
6
6
|
import '@destyler/popper/component';
|
|
7
7
|
import '@destyler/shared';
|
|
8
|
-
import 'fast-deep-equal';
|
|
9
8
|
import '@destyler/visually-hidden/component';
|
|
10
9
|
import '@destyler/collection/composition';
|
|
11
10
|
import '@destyler/collection';
|
|
@@ -1361,7 +1361,9 @@ declare const comboboxItemProps: {
|
|
|
1361
1361
|
readonly type: PropType<boolean>;
|
|
1362
1362
|
readonly required: false;
|
|
1363
1363
|
readonly default: false;
|
|
1364
|
-
};
|
|
1364
|
+
}; /**
|
|
1365
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1366
|
+
*/
|
|
1365
1367
|
};
|
|
1366
1368
|
type ComboboxItemProps = ExtractPublicPropTypes<typeof comboboxItemProps>;
|
|
1367
1369
|
declare const comboboxItemEmits: {
|
|
@@ -1398,7 +1400,9 @@ declare const ComboboxItem: vue.DefineComponent<{
|
|
|
1398
1400
|
readonly type: PropType<boolean>;
|
|
1399
1401
|
readonly required: false;
|
|
1400
1402
|
readonly default: false;
|
|
1401
|
-
};
|
|
1403
|
+
}; /**
|
|
1404
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1405
|
+
*/
|
|
1402
1406
|
}, {
|
|
1403
1407
|
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
1404
1408
|
textId: string;
|
|
@@ -1437,7 +1441,9 @@ declare const ComboboxItem: vue.DefineComponent<{
|
|
|
1437
1441
|
readonly type: PropType<boolean>;
|
|
1438
1442
|
readonly required: false;
|
|
1439
1443
|
readonly default: false;
|
|
1440
|
-
};
|
|
1444
|
+
}; /**
|
|
1445
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1446
|
+
*/
|
|
1441
1447
|
}>> & {
|
|
1442
1448
|
onSelect?: ((_ev: SelectEvent<AcceptableValue>) => any) | undefined;
|
|
1443
1449
|
}, {
|
|
@@ -1361,7 +1361,9 @@ declare const comboboxItemProps: {
|
|
|
1361
1361
|
readonly type: PropType<boolean>;
|
|
1362
1362
|
readonly required: false;
|
|
1363
1363
|
readonly default: false;
|
|
1364
|
-
};
|
|
1364
|
+
}; /**
|
|
1365
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1366
|
+
*/
|
|
1365
1367
|
};
|
|
1366
1368
|
type ComboboxItemProps = ExtractPublicPropTypes<typeof comboboxItemProps>;
|
|
1367
1369
|
declare const comboboxItemEmits: {
|
|
@@ -1398,7 +1400,9 @@ declare const ComboboxItem: vue.DefineComponent<{
|
|
|
1398
1400
|
readonly type: PropType<boolean>;
|
|
1399
1401
|
readonly required: false;
|
|
1400
1402
|
readonly default: false;
|
|
1401
|
-
};
|
|
1403
|
+
}; /**
|
|
1404
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1405
|
+
*/
|
|
1402
1406
|
}, {
|
|
1403
1407
|
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
1404
1408
|
textId: string;
|
|
@@ -1437,7 +1441,9 @@ declare const ComboboxItem: vue.DefineComponent<{
|
|
|
1437
1441
|
readonly type: PropType<boolean>;
|
|
1438
1442
|
readonly required: false;
|
|
1439
1443
|
readonly default: false;
|
|
1440
|
-
};
|
|
1444
|
+
}; /**
|
|
1445
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1446
|
+
*/
|
|
1441
1447
|
}>> & {
|
|
1442
1448
|
onSelect?: ((_ev: SelectEvent<AcceptableValue>) => any) | undefined;
|
|
1443
1449
|
}, {
|
|
@@ -1361,7 +1361,9 @@ declare const comboboxItemProps: {
|
|
|
1361
1361
|
readonly type: PropType<boolean>;
|
|
1362
1362
|
readonly required: false;
|
|
1363
1363
|
readonly default: false;
|
|
1364
|
-
};
|
|
1364
|
+
}; /**
|
|
1365
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1366
|
+
*/
|
|
1365
1367
|
};
|
|
1366
1368
|
type ComboboxItemProps = ExtractPublicPropTypes<typeof comboboxItemProps>;
|
|
1367
1369
|
declare const comboboxItemEmits: {
|
|
@@ -1398,7 +1400,9 @@ declare const ComboboxItem: vue.DefineComponent<{
|
|
|
1398
1400
|
readonly type: PropType<boolean>;
|
|
1399
1401
|
readonly required: false;
|
|
1400
1402
|
readonly default: false;
|
|
1401
|
-
};
|
|
1403
|
+
}; /**
|
|
1404
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1405
|
+
*/
|
|
1402
1406
|
}, {
|
|
1403
1407
|
forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
|
|
1404
1408
|
textId: string;
|
|
@@ -1437,7 +1441,9 @@ declare const ComboboxItem: vue.DefineComponent<{
|
|
|
1437
1441
|
readonly type: PropType<boolean>;
|
|
1438
1442
|
readonly required: false;
|
|
1439
1443
|
readonly default: false;
|
|
1440
|
-
};
|
|
1444
|
+
}; /**
|
|
1445
|
+
* When true, prevents the user from interacting with the `item`.
|
|
1446
|
+
*/
|
|
1441
1447
|
}>> & {
|
|
1442
1448
|
onSelect?: ((_ev: SelectEvent<AcceptableValue>) => any) | undefined;
|
|
1443
1449
|
}, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/combobox",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"description": "autocomplete input and command palette with a list of suggestions.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -31,17 +31,16 @@
|
|
|
31
31
|
"vue": ">=3.4.21"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"
|
|
35
|
-
"@destyler/
|
|
36
|
-
"@destyler/
|
|
37
|
-
"@destyler/
|
|
38
|
-
"@destyler/
|
|
39
|
-
"@destyler/
|
|
40
|
-
"@destyler/
|
|
41
|
-
"@destyler/
|
|
42
|
-
"@destyler/
|
|
43
|
-
"@destyler/
|
|
44
|
-
"@destyler/visually-hidden": "0.0.4"
|
|
34
|
+
"@destyler/collection": "0.0.5",
|
|
35
|
+
"@destyler/dismissable-layer": "0.0.5",
|
|
36
|
+
"@destyler/composition": "0.0.5",
|
|
37
|
+
"@destyler/directives": "0.0.5",
|
|
38
|
+
"@destyler/presence": "0.0.5",
|
|
39
|
+
"@destyler/primitive": "0.0.5",
|
|
40
|
+
"@destyler/shared": "0.0.5",
|
|
41
|
+
"@destyler/teleport": "0.0.5",
|
|
42
|
+
"@destyler/visually-hidden": "0.0.5",
|
|
43
|
+
"@destyler/popper": "0.0.5"
|
|
45
44
|
},
|
|
46
45
|
"scripts": {
|
|
47
46
|
"clear": "rimraf ./dist",
|