@volverjs/ui-vue 0.0.9-beta.9 → 0.0.10-beta.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/auto-imports.d.ts +2 -2
- package/dist/components/VvAccordion/VvAccordion.es.js +8 -7
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +8 -7
- package/dist/components/VvAction/VvAction.es.js +8 -7
- package/dist/components/VvAlert/VvAlert.es.js +8 -7
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +8 -7
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +6 -6
- package/dist/components/VvAlertGroup/index.d.ts +2 -2
- package/dist/components/VvAvatar/VvAvatar.es.js +8 -7
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +8 -7
- package/dist/components/VvBadge/VvBadge.es.js +8 -7
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +8 -7
- package/dist/components/VvButton/VvButton.es.js +11 -10
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +8 -7
- package/dist/components/VvCard/VvCard.es.js +8 -7
- package/dist/components/VvCheckbox/VvCheckbox.es.js +11 -10
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +13 -12
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +158 -140
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +306 -90
- package/dist/components/VvCombobox/index.d.ts +108 -31
- package/dist/components/VvDialog/VvDialog.es.js +16 -11
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +19 -16
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +299 -91
- package/dist/components/VvDropdown/index.d.ts +99 -30
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +8 -7
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +8 -7
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +8 -7
- package/dist/components/VvInputText/VvInputText.es.js +193 -103
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +19 -37
- package/dist/components/VvInputText/index.d.ts +15 -33
- package/dist/components/VvNav/VvNav.es.js +8 -7
- package/dist/components/VvProgress/VvProgress.es.js +8 -7
- package/dist/components/VvRadio/VvRadio.es.js +11 -10
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +13 -12
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +14 -13
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +1 -1
- package/dist/components/VvTab/VvTab.es.js +8 -7
- package/dist/components/VvTextarea/VvTextarea.es.js +16 -12
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.es.js +8 -7
- package/dist/components/index.es.js +359 -245
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/useOptions.d.ts +1 -1
- package/dist/constants.d.ts +4 -0
- package/dist/directives/index.es.js +8 -7
- package/dist/directives/v-tooltip.es.js +8 -7
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +100 -31
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +2 -2
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +18 -18
- package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
- package/dist/stories/Combobox/ComboboxOptions.stories.d.ts +1 -0
- package/dist/stories/InputText/InputText.settings.d.ts +31 -9
- package/dist/stories/InputText/InputText.stories.d.ts +0 -1
- package/dist/stories/InputText/InputTextMask.stories.d.ts +12 -0
- package/package.json +61 -60
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvCombobox/VvCombobox.vue +51 -42
- package/src/components/VvCombobox/index.ts +13 -0
- package/src/components/VvDialog/VvDialog.vue +6 -2
- package/src/components/VvDropdown/VvDropdown.vue +18 -16
- package/src/components/VvInputText/VvInputText.vue +170 -55
- package/src/components/VvInputText/index.ts +32 -34
- package/src/components/VvSelect/VvSelect.vue +4 -4
- package/src/components/VvTextarea/VvTextarea.vue +8 -5
- package/src/composables/useOptions.ts +2 -2
- package/src/constants.ts +5 -0
- package/src/props/index.ts +7 -11
- package/src/stories/Combobox/Combobox.settings.ts +8 -0
- package/src/stories/Combobox/Combobox.test.ts +1 -1
- package/src/stories/Combobox/ComboboxOptions.stories.ts +18 -0
- package/src/stories/InputText/InputText.settings.ts +36 -15
- package/src/stories/InputText/InputText.stories.ts +4 -12
- package/src/stories/InputText/InputText.test.ts +31 -15
- package/src/stories/InputText/InputTextMask.stories.ts +122 -0
- package/src/utils/ObjectUtilities.ts +3 -2
package/auto-imports.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
/* prettier-ignore */
|
|
3
3
|
// @ts-nocheck
|
|
4
|
+
// noinspection JSUnusedGlobalSymbols
|
|
4
5
|
// Generated by unplugin-auto-import
|
|
5
6
|
export {}
|
|
6
7
|
declare global {
|
|
7
8
|
const EffectScope: typeof import('vue')['EffectScope']
|
|
8
9
|
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
|
|
9
10
|
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
|
|
10
|
-
const composables: typeof import('./src/composables/index')['default']
|
|
11
11
|
const computed: typeof import('vue')['computed']
|
|
12
12
|
const computedAsync: typeof import('@vueuse/core')['computedAsync']
|
|
13
13
|
const computedEager: typeof import('@vueuse/core')['computedEager']
|
|
@@ -116,7 +116,7 @@ declare global {
|
|
|
116
116
|
const unrefElement: typeof import('@vueuse/core')['unrefElement']
|
|
117
117
|
const until: typeof import('@vueuse/core')['until']
|
|
118
118
|
const useActiveElement: typeof import('@vueuse/core')['useActiveElement']
|
|
119
|
-
const useAlert: typeof import('./src/composables/
|
|
119
|
+
const useAlert: typeof import('./src/composables/alert/useAlert')['useAlert']
|
|
120
120
|
const useAnimate: typeof import('@vueuse/core')['useAnimate']
|
|
121
121
|
const useArrayDifference: typeof import('@vueuse/core')['useArrayDifference']
|
|
122
122
|
const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery']
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { unref, inject, computed, toRef, toRefs, defineComponent, useAttrs, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { nanoid } from "nanoid";
|
|
3
3
|
import { useToggle } from "@vueuse/core";
|
|
4
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
5
|
+
Strategy2["absolute"] = "absolute";
|
|
6
|
+
Strategy2["fixed"] = "fixed";
|
|
7
|
+
return Strategy2;
|
|
8
|
+
})(Strategy || {});
|
|
4
9
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
5
10
|
Side2["left"] = "left";
|
|
6
11
|
Side2["right"] = "right";
|
|
@@ -117,19 +122,15 @@ const ModifiersProps = {
|
|
|
117
122
|
placement: {
|
|
118
123
|
type: String,
|
|
119
124
|
default: Side.bottom,
|
|
120
|
-
validator: (value) =>
|
|
121
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
122
|
-
}
|
|
125
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
123
126
|
},
|
|
124
127
|
/**
|
|
125
128
|
* Dropdown strategy
|
|
126
129
|
*/
|
|
127
130
|
strategy: {
|
|
128
131
|
type: String,
|
|
129
|
-
default:
|
|
130
|
-
validator: (value) =>
|
|
131
|
-
return ["fixed", "absolute"].includes(value);
|
|
132
|
-
}
|
|
132
|
+
default: void 0,
|
|
133
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
133
134
|
},
|
|
134
135
|
/**
|
|
135
136
|
* Dropdown show / hide transition name
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { unref, inject, computed, toRef, toRefs, defineComponent, useAttrs, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, isRef, provide, watchEffect, watch, Fragment, renderList, createBlock, mergeProps, withCtx } from "vue";
|
|
2
2
|
import { nanoid } from "nanoid";
|
|
3
3
|
import { useToggle, useStorage } from "@vueuse/core";
|
|
4
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
5
|
+
Strategy2["absolute"] = "absolute";
|
|
6
|
+
Strategy2["fixed"] = "fixed";
|
|
7
|
+
return Strategy2;
|
|
8
|
+
})(Strategy || {});
|
|
4
9
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
5
10
|
Side2["left"] = "left";
|
|
6
11
|
Side2["right"] = "right";
|
|
@@ -117,19 +122,15 @@ const ModifiersProps = {
|
|
|
117
122
|
placement: {
|
|
118
123
|
type: String,
|
|
119
124
|
default: Side.bottom,
|
|
120
|
-
validator: (value) =>
|
|
121
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
122
|
-
}
|
|
125
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
123
126
|
},
|
|
124
127
|
/**
|
|
125
128
|
* Dropdown strategy
|
|
126
129
|
*/
|
|
127
130
|
strategy: {
|
|
128
131
|
type: String,
|
|
129
|
-
default:
|
|
130
|
-
validator: (value) =>
|
|
131
|
-
return ["fixed", "absolute"].includes(value);
|
|
132
|
-
}
|
|
132
|
+
default: void 0,
|
|
133
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
133
134
|
},
|
|
134
135
|
/**
|
|
135
136
|
* Dropdown show / hide transition name
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { inject, defineComponent, ref, watch, computed, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
3
|
+
Strategy2["absolute"] = "absolute";
|
|
4
|
+
Strategy2["fixed"] = "fixed";
|
|
5
|
+
return Strategy2;
|
|
6
|
+
})(Strategy || {});
|
|
2
7
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
3
8
|
Side2["left"] = "left";
|
|
4
9
|
Side2["right"] = "right";
|
|
@@ -122,19 +127,15 @@ const LabelProps = {
|
|
|
122
127
|
placement: {
|
|
123
128
|
type: String,
|
|
124
129
|
default: Side.bottom,
|
|
125
|
-
validator: (value) =>
|
|
126
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
127
|
-
}
|
|
130
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
128
131
|
},
|
|
129
132
|
/**
|
|
130
133
|
* Dropdown strategy
|
|
131
134
|
*/
|
|
132
135
|
strategy: {
|
|
133
136
|
type: String,
|
|
134
|
-
default:
|
|
135
|
-
validator: (value) =>
|
|
136
|
-
return ["fixed", "absolute"].includes(value);
|
|
137
|
-
}
|
|
137
|
+
default: void 0,
|
|
138
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
138
139
|
},
|
|
139
140
|
/**
|
|
140
141
|
* Dropdown show / hide transition name
|
|
@@ -95,6 +95,11 @@ const VvIconProps = {
|
|
|
95
95
|
type: [String, Array]
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
99
|
+
Strategy2["absolute"] = "absolute";
|
|
100
|
+
Strategy2["fixed"] = "fixed";
|
|
101
|
+
return Strategy2;
|
|
102
|
+
})(Strategy || {});
|
|
98
103
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
99
104
|
Side2["left"] = "left";
|
|
100
105
|
Side2["right"] = "right";
|
|
@@ -343,19 +348,15 @@ const IdProps = {
|
|
|
343
348
|
placement: {
|
|
344
349
|
type: String,
|
|
345
350
|
default: Side.bottom,
|
|
346
|
-
validator: (value) =>
|
|
347
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
348
|
-
}
|
|
351
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
349
352
|
},
|
|
350
353
|
/**
|
|
351
354
|
* Dropdown strategy
|
|
352
355
|
*/
|
|
353
356
|
strategy: {
|
|
354
357
|
type: String,
|
|
355
|
-
default:
|
|
356
|
-
validator: (value) =>
|
|
357
|
-
return ["fixed", "absolute"].includes(value);
|
|
358
|
-
}
|
|
358
|
+
default: void 0,
|
|
359
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
359
360
|
},
|
|
360
361
|
/**
|
|
361
362
|
* Dropdown show / hide transition name
|
|
@@ -2,6 +2,11 @@ import { provide, computed, unref, inject, defineComponent, ref, toRefs, openBlo
|
|
|
2
2
|
import mitt from "mitt";
|
|
3
3
|
import { iconExists, Icon, addIcon } from "@iconify/vue";
|
|
4
4
|
import { nanoid } from "nanoid";
|
|
5
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
6
|
+
Strategy2["absolute"] = "absolute";
|
|
7
|
+
Strategy2["fixed"] = "fixed";
|
|
8
|
+
return Strategy2;
|
|
9
|
+
})(Strategy || {});
|
|
5
10
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
6
11
|
Side2["left"] = "left";
|
|
7
12
|
Side2["right"] = "right";
|
|
@@ -128,19 +133,15 @@ const IdProps = {
|
|
|
128
133
|
placement: {
|
|
129
134
|
type: String,
|
|
130
135
|
default: Side.bottom,
|
|
131
|
-
validator: (value) =>
|
|
132
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
133
|
-
}
|
|
136
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
134
137
|
},
|
|
135
138
|
/**
|
|
136
139
|
* Dropdown strategy
|
|
137
140
|
*/
|
|
138
141
|
strategy: {
|
|
139
142
|
type: String,
|
|
140
|
-
default:
|
|
141
|
-
validator: (value) =>
|
|
142
|
-
return ["fixed", "absolute"].includes(value);
|
|
143
|
-
}
|
|
143
|
+
default: void 0,
|
|
144
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
144
145
|
},
|
|
145
146
|
/**
|
|
146
147
|
* Dropdown show / hide transition name
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
18
|
inline: {
|
|
19
|
-
type: globalThis.PropType<"start" | "
|
|
19
|
+
type: globalThis.PropType<"start" | "end" | "middle">;
|
|
20
20
|
default: undefined;
|
|
21
21
|
};
|
|
22
22
|
block: {
|
|
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
24
|
default: undefined;
|
|
25
25
|
};
|
|
26
26
|
position: {
|
|
27
|
-
type: globalThis.PropType<"
|
|
27
|
+
type: globalThis.PropType<"absolute" | "fixed">;
|
|
28
28
|
default: undefined;
|
|
29
29
|
};
|
|
30
30
|
transition: {
|
|
@@ -50,7 +50,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
52
|
inline: {
|
|
53
|
-
type: globalThis.PropType<"start" | "
|
|
53
|
+
type: globalThis.PropType<"start" | "end" | "middle">;
|
|
54
54
|
default: undefined;
|
|
55
55
|
};
|
|
56
56
|
block: {
|
|
@@ -58,7 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
58
|
default: undefined;
|
|
59
59
|
};
|
|
60
60
|
position: {
|
|
61
|
-
type: globalThis.PropType<"
|
|
61
|
+
type: globalThis.PropType<"absolute" | "fixed">;
|
|
62
62
|
default: undefined;
|
|
63
63
|
};
|
|
64
64
|
transition: {
|
|
@@ -72,10 +72,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
72
72
|
reverse: boolean;
|
|
73
73
|
items: import(".").AlertItem[];
|
|
74
74
|
transition: string;
|
|
75
|
-
inline: "start" | "
|
|
75
|
+
inline: "start" | "end" | "middle";
|
|
76
76
|
stack: boolean;
|
|
77
77
|
block: "top" | "bottom" | "center";
|
|
78
|
-
position: "
|
|
78
|
+
position: "absolute" | "fixed";
|
|
79
79
|
}, {}>, {
|
|
80
80
|
before?(_: {}): any;
|
|
81
81
|
default?(_: {}): any;
|
|
@@ -29,7 +29,7 @@ export declare const VvAlertGroupProps: {
|
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
31
|
inline: {
|
|
32
|
-
type: globalThis.PropType<"start" | "
|
|
32
|
+
type: globalThis.PropType<"start" | "end" | "middle">;
|
|
33
33
|
default: undefined;
|
|
34
34
|
};
|
|
35
35
|
block: {
|
|
@@ -37,7 +37,7 @@ export declare const VvAlertGroupProps: {
|
|
|
37
37
|
default: undefined;
|
|
38
38
|
};
|
|
39
39
|
position: {
|
|
40
|
-
type: globalThis.PropType<"
|
|
40
|
+
type: globalThis.PropType<"absolute" | "fixed">;
|
|
41
41
|
default: undefined;
|
|
42
42
|
};
|
|
43
43
|
transition: {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { computed, unref, defineComponent, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode } from "vue";
|
|
2
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
3
|
+
Strategy2["absolute"] = "absolute";
|
|
4
|
+
Strategy2["fixed"] = "fixed";
|
|
5
|
+
return Strategy2;
|
|
6
|
+
})(Strategy || {});
|
|
2
7
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
3
8
|
Side2["left"] = "left";
|
|
4
9
|
Side2["right"] = "right";
|
|
@@ -114,19 +119,15 @@ const ModifiersProps = {
|
|
|
114
119
|
placement: {
|
|
115
120
|
type: String,
|
|
116
121
|
default: Side.bottom,
|
|
117
|
-
validator: (value) =>
|
|
118
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
119
|
-
}
|
|
122
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
120
123
|
},
|
|
121
124
|
/**
|
|
122
125
|
* Dropdown strategy
|
|
123
126
|
*/
|
|
124
127
|
strategy: {
|
|
125
128
|
type: String,
|
|
126
|
-
default:
|
|
127
|
-
validator: (value) =>
|
|
128
|
-
return ["fixed", "absolute"].includes(value);
|
|
129
|
-
}
|
|
129
|
+
default: void 0,
|
|
130
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
130
131
|
},
|
|
131
132
|
/**
|
|
132
133
|
* Dropdown show / hide transition name
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { computed, unref, defineComponent, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, Fragment, renderList, createBlock, mergeProps, withCtx, toDisplayString, createTextVNode } from "vue";
|
|
2
2
|
import { nanoid } from "nanoid";
|
|
3
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
4
|
+
Strategy2["absolute"] = "absolute";
|
|
5
|
+
Strategy2["fixed"] = "fixed";
|
|
6
|
+
return Strategy2;
|
|
7
|
+
})(Strategy || {});
|
|
3
8
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
4
9
|
Side2["left"] = "left";
|
|
5
10
|
Side2["right"] = "right";
|
|
@@ -115,19 +120,15 @@ const ModifiersProps = {
|
|
|
115
120
|
placement: {
|
|
116
121
|
type: String,
|
|
117
122
|
default: Side.bottom,
|
|
118
|
-
validator: (value) =>
|
|
119
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
120
|
-
}
|
|
123
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
121
124
|
},
|
|
122
125
|
/**
|
|
123
126
|
* Dropdown strategy
|
|
124
127
|
*/
|
|
125
128
|
strategy: {
|
|
126
129
|
type: String,
|
|
127
|
-
default:
|
|
128
|
-
validator: (value) =>
|
|
129
|
-
return ["fixed", "absolute"].includes(value);
|
|
130
|
-
}
|
|
130
|
+
default: void 0,
|
|
131
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
131
132
|
},
|
|
132
133
|
/**
|
|
133
134
|
* Dropdown show / hide transition name
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { computed, unref, defineComponent, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
3
|
+
Strategy2["absolute"] = "absolute";
|
|
4
|
+
Strategy2["fixed"] = "fixed";
|
|
5
|
+
return Strategy2;
|
|
6
|
+
})(Strategy || {});
|
|
2
7
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
3
8
|
Side2["left"] = "left";
|
|
4
9
|
Side2["right"] = "right";
|
|
@@ -114,19 +119,15 @@ const ModifiersProps = {
|
|
|
114
119
|
placement: {
|
|
115
120
|
type: String,
|
|
116
121
|
default: Side.bottom,
|
|
117
|
-
validator: (value) =>
|
|
118
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
119
|
-
}
|
|
122
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
120
123
|
},
|
|
121
124
|
/**
|
|
122
125
|
* Dropdown strategy
|
|
123
126
|
*/
|
|
124
127
|
strategy: {
|
|
125
128
|
type: String,
|
|
126
|
-
default:
|
|
127
|
-
validator: (value) =>
|
|
128
|
-
return ["fixed", "absolute"].includes(value);
|
|
129
|
-
}
|
|
129
|
+
default: void 0,
|
|
130
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
130
131
|
},
|
|
131
132
|
/**
|
|
132
133
|
* Dropdown show / hide transition name
|
|
@@ -22,6 +22,11 @@ function useModifiers(prefix, modifiers, others) {
|
|
|
22
22
|
return toReturn;
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
26
|
+
Strategy2["absolute"] = "absolute";
|
|
27
|
+
Strategy2["fixed"] = "fixed";
|
|
28
|
+
return Strategy2;
|
|
29
|
+
})(Strategy || {});
|
|
25
30
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
26
31
|
Side2["left"] = "left";
|
|
27
32
|
Side2["right"] = "right";
|
|
@@ -137,19 +142,15 @@ const ModifiersProps = {
|
|
|
137
142
|
placement: {
|
|
138
143
|
type: String,
|
|
139
144
|
default: Side.bottom,
|
|
140
|
-
validator: (value) =>
|
|
141
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
142
|
-
}
|
|
145
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
143
146
|
},
|
|
144
147
|
/**
|
|
145
148
|
* Dropdown strategy
|
|
146
149
|
*/
|
|
147
150
|
strategy: {
|
|
148
151
|
type: String,
|
|
149
|
-
default:
|
|
150
|
-
validator: (value) =>
|
|
151
|
-
return ["fixed", "absolute"].includes(value);
|
|
152
|
-
}
|
|
152
|
+
default: void 0,
|
|
153
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
153
154
|
},
|
|
154
155
|
/**
|
|
155
156
|
* Dropdown show / hide transition name
|
|
@@ -95,6 +95,11 @@ const VvIconProps = {
|
|
|
95
95
|
type: [String, Array]
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
99
|
+
Strategy2["absolute"] = "absolute";
|
|
100
|
+
Strategy2["fixed"] = "fixed";
|
|
101
|
+
return Strategy2;
|
|
102
|
+
})(Strategy || {});
|
|
98
103
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
99
104
|
Side2["left"] = "left";
|
|
100
105
|
Side2["right"] = "right";
|
|
@@ -373,19 +378,15 @@ const IdProps = {
|
|
|
373
378
|
placement: {
|
|
374
379
|
type: String,
|
|
375
380
|
default: Side.bottom,
|
|
376
|
-
validator: (value) =>
|
|
377
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
378
|
-
}
|
|
381
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
379
382
|
},
|
|
380
383
|
/**
|
|
381
384
|
* Dropdown strategy
|
|
382
385
|
*/
|
|
383
386
|
strategy: {
|
|
384
387
|
type: String,
|
|
385
|
-
default:
|
|
386
|
-
validator: (value) =>
|
|
387
|
-
return ["fixed", "absolute"].includes(value);
|
|
388
|
-
}
|
|
388
|
+
default: void 0,
|
|
389
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
389
390
|
},
|
|
390
391
|
/**
|
|
391
392
|
* Dropdown show / hide transition name
|
|
@@ -604,10 +605,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
604
605
|
}
|
|
605
606
|
});
|
|
606
607
|
function equals(obj1, obj2, field) {
|
|
607
|
-
if (field)
|
|
608
|
+
if (field) {
|
|
608
609
|
return resolveFieldData(obj1, field) === resolveFieldData(obj2, field);
|
|
609
|
-
|
|
610
|
-
|
|
610
|
+
}
|
|
611
|
+
return deepEquals(obj1, obj2);
|
|
611
612
|
}
|
|
612
613
|
function deepEquals(a, b) {
|
|
613
614
|
if (a === b)
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { isRef, provide, computed, unref, defineComponent, toRefs, watchEffect, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
3
|
+
Strategy2["absolute"] = "absolute";
|
|
4
|
+
Strategy2["fixed"] = "fixed";
|
|
5
|
+
return Strategy2;
|
|
6
|
+
})(Strategy || {});
|
|
2
7
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
3
8
|
Side2["left"] = "left";
|
|
4
9
|
Side2["right"] = "right";
|
|
@@ -121,19 +126,15 @@ const UnselectableProps = {
|
|
|
121
126
|
placement: {
|
|
122
127
|
type: String,
|
|
123
128
|
default: Side.bottom,
|
|
124
|
-
validator: (value) =>
|
|
125
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
126
|
-
}
|
|
129
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
127
130
|
},
|
|
128
131
|
/**
|
|
129
132
|
* Dropdown strategy
|
|
130
133
|
*/
|
|
131
134
|
strategy: {
|
|
132
135
|
type: String,
|
|
133
|
-
default:
|
|
134
|
-
validator: (value) =>
|
|
135
|
-
return ["fixed", "absolute"].includes(value);
|
|
136
|
-
}
|
|
136
|
+
default: void 0,
|
|
137
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
137
138
|
},
|
|
138
139
|
/**
|
|
139
140
|
* Dropdown show / hide transition name
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { computed, unref, defineComponent, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
3
|
+
Strategy2["absolute"] = "absolute";
|
|
4
|
+
Strategy2["fixed"] = "fixed";
|
|
5
|
+
return Strategy2;
|
|
6
|
+
})(Strategy || {});
|
|
2
7
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
3
8
|
Side2["left"] = "left";
|
|
4
9
|
Side2["right"] = "right";
|
|
@@ -114,19 +119,15 @@ const ModifiersProps = {
|
|
|
114
119
|
placement: {
|
|
115
120
|
type: String,
|
|
116
121
|
default: Side.bottom,
|
|
117
|
-
validator: (value) =>
|
|
118
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
119
|
-
}
|
|
122
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
120
123
|
},
|
|
121
124
|
/**
|
|
122
125
|
* Dropdown strategy
|
|
123
126
|
*/
|
|
124
127
|
strategy: {
|
|
125
128
|
type: String,
|
|
126
|
-
default:
|
|
127
|
-
validator: (value) =>
|
|
128
|
-
return ["fixed", "absolute"].includes(value);
|
|
129
|
-
}
|
|
129
|
+
default: void 0,
|
|
130
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
130
131
|
},
|
|
131
132
|
/**
|
|
132
133
|
* Dropdown show / hide transition name
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { unref, inject, computed, toRef, toRefs, isRef, defineComponent, h, useSlots, ref, watchEffect, watch, onMounted, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vModelCheckbox, renderSlot, createTextVNode, toDisplayString, createVNode, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { nanoid } from "nanoid";
|
|
3
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
4
|
+
Strategy2["absolute"] = "absolute";
|
|
5
|
+
Strategy2["fixed"] = "fixed";
|
|
6
|
+
return Strategy2;
|
|
7
|
+
})(Strategy || {});
|
|
3
8
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
4
9
|
Side2["left"] = "left";
|
|
5
10
|
Side2["right"] = "right";
|
|
@@ -173,19 +178,15 @@ const IdProps = {
|
|
|
173
178
|
placement: {
|
|
174
179
|
type: String,
|
|
175
180
|
default: Side.bottom,
|
|
176
|
-
validator: (value) =>
|
|
177
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
178
|
-
}
|
|
181
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
179
182
|
},
|
|
180
183
|
/**
|
|
181
184
|
* Dropdown strategy
|
|
182
185
|
*/
|
|
183
186
|
strategy: {
|
|
184
187
|
type: String,
|
|
185
|
-
default:
|
|
186
|
-
validator: (value) =>
|
|
187
|
-
return ["fixed", "absolute"].includes(value);
|
|
188
|
-
}
|
|
188
|
+
default: void 0,
|
|
189
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
189
190
|
},
|
|
190
191
|
/**
|
|
191
192
|
* Dropdown show / hide transition name
|
|
@@ -315,10 +316,10 @@ const CheckboxRadioProps = {
|
|
|
315
316
|
}
|
|
316
317
|
});
|
|
317
318
|
function equals(obj1, obj2, field) {
|
|
318
|
-
if (field)
|
|
319
|
+
if (field) {
|
|
319
320
|
return resolveFieldData(obj1, field) === resolveFieldData(obj2, field);
|
|
320
|
-
|
|
321
|
-
|
|
321
|
+
}
|
|
322
|
+
return deepEquals(obj1, obj2);
|
|
322
323
|
}
|
|
323
324
|
function deepEquals(a, b) {
|
|
324
325
|
if (a === b)
|
|
@@ -2,6 +2,11 @@ import { unref, computed, isRef, defineComponent, h, inject, toRef, toRefs, useS
|
|
|
2
2
|
import { nanoid } from "nanoid";
|
|
3
3
|
import { useVModel } from "@vueuse/core";
|
|
4
4
|
import { get } from "ts-dot-prop";
|
|
5
|
+
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
6
|
+
Strategy2["absolute"] = "absolute";
|
|
7
|
+
Strategy2["fixed"] = "fixed";
|
|
8
|
+
return Strategy2;
|
|
9
|
+
})(Strategy || {});
|
|
5
10
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
6
11
|
Side2["left"] = "left";
|
|
7
12
|
Side2["right"] = "right";
|
|
@@ -41,10 +46,10 @@ var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
|
|
|
41
46
|
const INJECTION_KEY_VOLVER = Symbol.for("volver");
|
|
42
47
|
const INJECTION_KEY_CHECK_GROUP = Symbol.for("checkGroup");
|
|
43
48
|
function equals(obj1, obj2, field) {
|
|
44
|
-
if (field)
|
|
49
|
+
if (field) {
|
|
45
50
|
return resolveFieldData(obj1, field) === resolveFieldData(obj2, field);
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
}
|
|
52
|
+
return deepEquals(obj1, obj2);
|
|
48
53
|
}
|
|
49
54
|
function deepEquals(a, b) {
|
|
50
55
|
if (a === b)
|
|
@@ -399,19 +404,15 @@ const IdProps = {
|
|
|
399
404
|
placement: {
|
|
400
405
|
type: String,
|
|
401
406
|
default: Side.bottom,
|
|
402
|
-
validator: (value) =>
|
|
403
|
-
return Object.values(Side).includes(value) || Object.values(Placement).includes(value);
|
|
404
|
-
}
|
|
407
|
+
validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
|
|
405
408
|
},
|
|
406
409
|
/**
|
|
407
410
|
* Dropdown strategy
|
|
408
411
|
*/
|
|
409
412
|
strategy: {
|
|
410
413
|
type: String,
|
|
411
|
-
default:
|
|
412
|
-
validator: (value) =>
|
|
413
|
-
return ["fixed", "absolute"].includes(value);
|
|
414
|
-
}
|
|
414
|
+
default: void 0,
|
|
415
|
+
validator: (value) => Object.values(Strategy).includes(value)
|
|
415
416
|
},
|
|
416
417
|
/**
|
|
417
418
|
* Dropdown show / hide transition name
|
|
@@ -943,7 +944,7 @@ function useOptions(props) {
|
|
|
943
944
|
return option;
|
|
944
945
|
return typeof valueKey.value === "function" ? valueKey.value(option) : get(option, valueKey.value);
|
|
945
946
|
};
|
|
946
|
-
const
|
|
947
|
+
const isOptionDisabled = (option) => {
|
|
947
948
|
if (typeof option !== "object" && option !== null)
|
|
948
949
|
return false;
|
|
949
950
|
return typeof disabledKey.value === "function" ? disabledKey.value(option) : get(option, disabledKey.value);
|
|
@@ -957,7 +958,7 @@ function useOptions(props) {
|
|
|
957
958
|
options,
|
|
958
959
|
getOptionLabel,
|
|
959
960
|
getOptionValue,
|
|
960
|
-
|
|
961
|
+
isOptionDisabled,
|
|
961
962
|
getOptionGrouped
|
|
962
963
|
};
|
|
963
964
|
}
|