@havue/components 1.1.2 → 1.2.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/components.full.js +1096 -97
- package/dist/components.full.min.js +1 -1
- package/dist/components.full.min.js.map +1 -1
- package/dist/components.mjs +164 -0
- package/dist/components.umd.js +162 -2
- package/dist/style.css +1 -1
- package/dist/types/color-picker/src/color-picker-normal/ColorPicker.vue.d.ts +16 -0
- package/dist/types/color-picker/src/color-picker-normal/children/ColorArea/ColorArea.vue.d.ts +18 -0
- package/dist/types/color-picker/src/color-picker-normal/children/ColorArea/hooks/useInteraction.d.ts +9 -0
- package/dist/types/color-picker/src/color-picker-normal/children/ColorForm/ColorForm.vue.d.ts +11 -0
- package/dist/types/color-picker/src/color-picker-rainbow/ColorPicker.vue.d.ts +15 -0
- package/dist/types/color-picker/src/{children → color-picker-rainbow/children}/ColorForm/ColorForm.vue.d.ts +1 -0
- package/dist/types/color-picker/src/color-picker-rainbow/children/PresetColors/PresetColors.vue.d.ts +10 -0
- package/dist/types/color-picker/src/{hooks → color-picker-rainbow/hooks}/useOperateEvent.d.ts +4 -1
- package/dist/types/color-picker/src/{utils → color-picker-rainbow/utils}/color.d.ts +6 -6
- package/dist/types/color-picker/src/constants/index.d.ts +1 -0
- package/dist/types/color-picker/src/index.d.ts +24 -2
- package/dist/types/drag-and-drop/src/Draggable.vue.d.ts +2 -2
- package/dist/types/drag-and-drop/src/Droppable.vue.d.ts +1 -0
- package/dist/types/drag-and-drop/src/manager/index.d.ts +12 -14
- package/dist/types/ip-input/src/IpInput.vue.d.ts +13 -0
- package/dist/types/ip-input/src/index.d.ts +3 -0
- package/dist/types/ip-input/src/utils/index.d.ts +14 -0
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +5 -5
- package/dist/types/color-picker/src/ColorPicker.vue.d.ts +0 -18
- /package/dist/types/color-picker/src/{children → color-picker-normal/children}/PresetColors/PresetColors.vue.d.ts +0 -0
- /package/dist/types/color-picker/src/{hooks → color-picker-rainbow/hooks}/useColorArea.d.ts +0 -0
- /package/dist/types/color-picker/src/{utils → color-picker-rainbow/utils}/tools.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: string | undefined;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:model-value": (value: string) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:model-value"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
modelValue: string | undefined;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IP每一项值是否有效 | IP Whether each entry value is valid
|
|
3
|
+
* @param val 单个IP值 | Single IP value
|
|
4
|
+
*/
|
|
5
|
+
export declare function getValidIPItemValue(val: string | number): string;
|
|
6
|
+
/**
|
|
7
|
+
* 光标在输入框文本中的位置 | The position of the cursor within the text of the input field
|
|
8
|
+
* @param { HTMLInputElement } el
|
|
9
|
+
*/
|
|
10
|
+
export declare function getRange(el: HTMLInputElement): {
|
|
11
|
+
begin: number | null;
|
|
12
|
+
end: number | null;
|
|
13
|
+
result: string | null;
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@havue/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Some components for Vue3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"havue",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"url": "git+https://github.com/HappyPedestrian/havue.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@havue/shared": "^1.
|
|
18
|
-
"@havue/color-picker": "^1.
|
|
19
|
-
"@havue/drag-and-
|
|
20
|
-
"@havue/drag-and-
|
|
17
|
+
"@havue/shared": "^1.2.0",
|
|
18
|
+
"@havue/color-picker": "^1.2.0",
|
|
19
|
+
"@havue/drag-and-scale": "^1.2.0",
|
|
20
|
+
"@havue/drag-and-drop": "^1.2.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"vue": "^3.3.0"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
title?: string;
|
|
3
|
-
presetTitle?: string;
|
|
4
|
-
presetColors?: string[];
|
|
5
|
-
};
|
|
6
|
-
declare const color: import("vue").ModelRef<string, string, string, string>;
|
|
7
|
-
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
-
modelValue?: typeof color['value'];
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: string) => any;
|
|
12
|
-
} & {
|
|
13
|
-
"update:model-value": (value: string) => any;
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
|
-
"onUpdate:model-value"?: ((value: string) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|