@bobbykim/mcl-forms 0.3.0 → 0.5.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/CHANGELOG.md +26 -0
- package/lib/assets/CaretDown.vue.d.ts +1 -1
- package/lib/common/InputHighlight.vue.d.ts +1 -1
- package/lib/mcl-form-group/MclFormGroup.vue.d.ts +1 -1
- package/lib/mcl-input-file/MclInputFile.vue.d.ts +3 -3
- package/lib/mcl-input-radio/MclInputRadio.vue +6 -7
- package/lib/mcl-input-radio/MclInputRadio.vue.d.ts +3 -3
- package/lib/mcl-input-radio/index.types.d.ts +0 -4
- package/lib/mcl-input-radio/index.types.ts +0 -5
- package/lib/mcl-input-switch/MclInputSwitch.vue.d.ts +1 -1
- package/lib/mcl-input-text/MclInputText.vue.d.ts +3 -3
- package/lib/mcl-select/MclSelect.vue.d.ts +3 -3
- package/lib/mcl-text-area/MclTextArea.vue.d.ts +3 -3
- package/package.json +4 -4
- package/tsconfig.json +3 -7
- package/tsconfig.ts.json +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.5.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/mcl-forms@0.3.0...@bobbykim/mcl-forms@0.5.0) (2024-03-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* build and release ([a372086](https://github.com/bobbykim89/manguito-component-library/commit/a3720861fb40dd6ec1d0e3dda1f06e2479967432))
|
|
12
|
+
* **components/*:** prepublish build ([c8eb95a](https://github.com/bobbykim89/manguito-component-library/commit/c8eb95a0ede6727bf183d2e9ad634ae64af1411d))
|
|
13
|
+
* **mcl-header:** move deprecated items to deprecated folder in root dir, update configs, init mcl-header-b component ([19aa842](https://github.com/bobbykim89/manguito-component-library/commit/19aa842faa7f1594f7be030b97d5093014efe7cb))
|
|
14
|
+
* tsconfig update, slots and emits update ([c30ff80](https://github.com/bobbykim89/manguito-component-library/commit/c30ff804c961d205ac097e20cd51285a15ca8966))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# [0.4.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/mcl-forms@0.3.0...@bobbykim/mcl-forms@0.4.0) (2024-03-21)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **mcl-header:** move deprecated items to deprecated folder in root dir, update configs, init mcl-header-b component ([19aa842](https://github.com/bobbykim89/manguito-component-library/commit/19aa842faa7f1594f7be030b97d5093014efe7cb))
|
|
26
|
+
* tsconfig update, slots and emits update ([c30ff80](https://github.com/bobbykim89/manguito-component-library/commit/c30ff804c961d205ac097e20cd51285a15ca8966))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
6
32
|
# [0.3.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/mcl-forms@0.2.0...@bobbykim/mcl-forms@0.3.0) (2024-02-27)
|
|
7
33
|
|
|
8
34
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
8
|
color: string;
|
|
9
9
|
rounded: boolean;
|
|
10
10
|
offset: number;
|
|
11
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
12
|
color?: ColorPalette | undefined;
|
|
13
13
|
rounded?: boolean | undefined;
|
|
14
14
|
offset?: OffsetType | undefined;
|
|
@@ -9,7 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
textColor: string;
|
|
10
10
|
textSize: string;
|
|
11
11
|
textBold: boolean;
|
|
12
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
13
|
labelFor: string;
|
|
14
14
|
textColor?: ColorPalette | undefined;
|
|
15
15
|
textSize?: BodyText | undefined;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
29
29
|
accept: string;
|
|
30
30
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
31
|
"update:modelValue": (...args: any[]) => void;
|
|
32
|
-
}, string, import("vue").
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
33
33
|
id: string;
|
|
34
34
|
displayBorder?: boolean | undefined;
|
|
35
35
|
borderColor?: ColorPalette | undefined;
|
|
@@ -62,10 +62,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
62
62
|
}, {
|
|
63
63
|
textColor: ColorPalette;
|
|
64
64
|
accept: string;
|
|
65
|
-
rounded: boolean;
|
|
66
65
|
displayBorder: boolean;
|
|
67
|
-
borderColor: ColorPalette;
|
|
68
66
|
bgColor: ColorPalette;
|
|
67
|
+
rounded: boolean;
|
|
68
|
+
borderColor: ColorPalette;
|
|
69
69
|
buttonText: string;
|
|
70
70
|
buttonTextColor: ColorPalette;
|
|
71
71
|
buttonColor: ColorPalette;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { ColorPalette } from '@bobbykim/manguito-theme'
|
|
3
3
|
import generateClass from '@bobbykim/manguito-theme'
|
|
4
4
|
import { computed, ref } from 'vue'
|
|
5
|
-
import type {
|
|
5
|
+
import type { RadioSizeType } from './index.types'
|
|
6
6
|
|
|
7
7
|
const props = withDefaults(
|
|
8
8
|
defineProps<{
|
|
@@ -25,7 +25,9 @@ const props = withDefaults(
|
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
const radioRef = ref<HTMLInputElement>()
|
|
28
|
-
const emit = defineEmits
|
|
28
|
+
const emit = defineEmits<{
|
|
29
|
+
(e: 'change', event: Event, value: string | number): void
|
|
30
|
+
}>()
|
|
29
31
|
|
|
30
32
|
const radioClick = () => {
|
|
31
33
|
radioRef.value?.click()
|
|
@@ -64,11 +66,8 @@ const getColorClass = computed(() => {
|
|
|
64
66
|
})
|
|
65
67
|
|
|
66
68
|
const handleChange = (e: Event) => {
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
value: (e.target as HTMLInputElement).value,
|
|
70
|
-
}
|
|
71
|
-
emit('change', customEvent)
|
|
69
|
+
const value = (e.target as HTMLInputElement).value
|
|
70
|
+
emit('change', e, value)
|
|
72
71
|
}
|
|
73
72
|
</script>
|
|
74
73
|
|
|
@@ -16,8 +16,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
16
|
value: string;
|
|
17
17
|
checked: boolean;
|
|
18
18
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
-
change: (
|
|
20
|
-
}, string, import("vue").
|
|
19
|
+
change: (event: Event, value: string | number) => void;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
21
21
|
id: string;
|
|
22
22
|
radioSize?: RadioSizeType | undefined;
|
|
23
23
|
bgColor?: ColorPalette | undefined;
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
33
33
|
value: string;
|
|
34
34
|
checked: boolean;
|
|
35
35
|
}>>> & {
|
|
36
|
-
onChange?: ((
|
|
36
|
+
onChange?: ((event: Event, value: string | number) => any) | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
checked: boolean;
|
|
39
39
|
value: string | number;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
16
|
rounded: boolean;
|
|
17
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
"update:modelValue": (...args: any[]) => void;
|
|
19
|
-
}, string, import("vue").
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
20
|
id: string;
|
|
21
21
|
sliderColor?: ColorPalette | undefined;
|
|
22
22
|
onColor?: ColorPalette | undefined;
|
|
@@ -31,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
31
|
required: boolean;
|
|
32
32
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
33
|
"update:modelValue": (...args: any[]) => void;
|
|
34
|
-
}, string, import("vue").
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
35
|
id: string;
|
|
36
36
|
displayBorder?: boolean | undefined;
|
|
37
37
|
borderColor?: ColorPalette | undefined;
|
|
@@ -67,10 +67,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
67
67
|
type: InputType;
|
|
68
68
|
required: boolean;
|
|
69
69
|
placeholder: string;
|
|
70
|
-
rounded: boolean;
|
|
71
70
|
displayBorder: boolean;
|
|
72
|
-
borderColor: ColorPalette;
|
|
73
71
|
bgColor: ColorPalette;
|
|
72
|
+
rounded: boolean;
|
|
73
|
+
borderColor: ColorPalette;
|
|
74
74
|
displayShadow: boolean;
|
|
75
75
|
displayHighlight: boolean;
|
|
76
76
|
highlightColor: ColorPalette;
|
|
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
33
|
invalidFeedback: string;
|
|
34
34
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
35
|
"update:modelValue": (...args: any[]) => void;
|
|
36
|
-
}, string, import("vue").
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
37
37
|
id: string;
|
|
38
38
|
displayBorder?: boolean | undefined;
|
|
39
39
|
borderColor?: ColorPalette | undefined;
|
|
@@ -69,10 +69,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
69
69
|
}, {
|
|
70
70
|
required: boolean;
|
|
71
71
|
placeholder: string;
|
|
72
|
-
rounded: boolean;
|
|
73
72
|
displayBorder: boolean;
|
|
74
|
-
borderColor: ColorPalette;
|
|
75
73
|
bgColor: ColorPalette;
|
|
74
|
+
rounded: boolean;
|
|
75
|
+
borderColor: ColorPalette;
|
|
76
76
|
displayShadow: boolean;
|
|
77
77
|
displayHighlight: boolean;
|
|
78
78
|
highlightColor: ColorPalette;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
27
27
|
rows: number;
|
|
28
28
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
29
|
"update:modelValue": (...args: any[]) => void;
|
|
30
|
-
}, string, import("vue").
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
31
31
|
id: string;
|
|
32
32
|
displayBorder?: boolean | undefined;
|
|
33
33
|
borderColor?: ColorPalette | undefined;
|
|
@@ -58,10 +58,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
58
58
|
}, {
|
|
59
59
|
required: boolean;
|
|
60
60
|
placeholder: string;
|
|
61
|
-
rounded: boolean;
|
|
62
61
|
displayBorder: boolean;
|
|
63
|
-
borderColor: ColorPalette;
|
|
64
62
|
bgColor: ColorPalette;
|
|
63
|
+
rounded: boolean;
|
|
64
|
+
borderColor: ColorPalette;
|
|
65
65
|
displayShadow: boolean;
|
|
66
66
|
displayHighlight: boolean;
|
|
67
67
|
highlightColor: ColorPalette;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobbykim/mcl-forms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "vue-tsc --project tsconfig.vue.json && tsc"
|
|
8
|
+
"build": "vue-tsc --project tsconfig.vue.json && tsc --project tsconfig.ts.json"
|
|
9
9
|
},
|
|
10
10
|
"author": {
|
|
11
11
|
"name": "Bobby Kim",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@bobbykim/manguito-theme": "^0.
|
|
24
|
+
"@bobbykim/manguito-theme": "^0.17.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "f4be01699f747aba1f831a1f796f8e41e6fcd676"
|
|
27
27
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../../tsconfig.json",
|
|
3
|
-
"include": ["./**/*.ts"],
|
|
4
|
-
"exclude": ["node_modules", "./**/*.vue.d.ts"
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"declaration": true
|
|
8
|
-
}
|
|
2
|
+
"extends": "../../../tsconfig.json",
|
|
3
|
+
"include": ["./**/*.ts", "./**/*.vue"],
|
|
4
|
+
"exclude": ["node_modules", "./**/*.vue.d.ts"]
|
|
9
5
|
}
|