unika-components 1.2.4 → 1.2.6
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/assets/css/invite.css +712 -0
- package/dist/index.html +53 -0
- package/dist/js/app.js +3325 -0
- package/dist/js/chunk-vendors.js +1638 -0
- package/dist/src/components/UniCall/UniCall.vue.d.ts +11 -1
- package/dist/src/components/UniCountdown/UniCountdown.vue.d.ts +12 -1
- package/dist/src/components/UniFormInput/UniFormInput.vue.d.ts +13 -1
- package/dist/src/components/UniImage/UniImage.vue.d.ts +0 -3
- package/dist/src/components/UniInvite/UniInvite.vue.d.ts +57 -0
- package/dist/src/components/UniInvite/index.d.ts +2 -0
- package/dist/src/components/UniMap/UniMap.vue.d.ts +11 -1
- package/dist/src/components/WorkRender/WorkRender.vue.d.ts +1 -0
- package/dist/src/composables/inviteManager.d.ts +13 -0
- package/dist/src/constants/invitePhrases.d.ts +3 -0
- package/dist/src/constants/inviteProps.d.ts +4 -0
- package/dist/src/constants/inviteTemplates.d.ts +5 -0
- package/dist/src/defaultProps.d.ts +49 -0
- package/dist/src/index.d.ts +22 -1
- package/dist/src/utils/inviteAnimation.d.ts +3 -0
- package/dist/src/utils/inviteTemplate.d.ts +4 -0
- package/dist/src/utils/resolveInviteRender.d.ts +12 -0
- package/dist/unika-components.css +1984 -1251
- package/dist/unika-components.esm.js +1673 -545
- package/dist/unika-components.umd.js +1723 -571
- package/package.json +4 -3
- package/dist/.DS_Store +0 -0
- package/dist/src/components/LongPage/LongPage.vue.d.ts +0 -20
- package/dist/src/components/LongPage/index.d.ts +0 -2
- package/dist/src/components/SwiperPage/SwiperAnimate.d.ts +0 -3
- package/dist/src/components/SwiperPage/SwiperPage.vue.d.ts +0 -36
- package/dist/src/components/SwiperPage/index.d.ts +0 -2
- package/dist/src/components/UniBackground/UniBackground.vue.d.ts +0 -11
- package/dist/src/components/UniBackground/index.d.ts +0 -2
- package/dist/src/components/UniBulidUp/UniBulidUp.vue.d.ts +0 -12
- package/dist/src/components/UniBulidUp/index.d.ts +0 -2
- package/dist/src/components/UniCalendar/Calendar.vue.d.ts +0 -165
- package/dist/src/components/UniEffect/sonw.d.ts +0 -2
- package/dist/src/components/UniFormMultiple/validators.d.ts +0 -20
- package/dist/src/components/UniFormSelect/validators.d.ts +0 -1
- package/dist/src/components/UniFormSingle/validators.d.ts +0 -20
- package/dist/src/components/UniLike/UniLike.vue.d.ts +0 -14
- package/dist/src/components/UniLike/index.d.ts +0 -2
- package/dist/src/components/UniLotties/UniLotties.vue.d.ts +0 -340
- package/dist/src/components/UniLotties/index.d.ts +0 -2
- package/dist/src/components/UniRegisterForm/UniRegisterForm.vue.d.ts +0 -28
- package/dist/src/components/UniRegisterForm/index.d.ts +0 -2
- package/dist/src/components/UniSvg/UniSvg.vue.d.ts +0 -12
- package/dist/src/components/UniSvg/index.d.ts +0 -2
- package/dist/src/components/UniSwiper/UniSwiper.vue.d.ts +0 -12
- package/dist/src/components/UniSwiper/index.d.ts +0 -2
- package/dist/src/components/UniTanmu/Barrage.vue.d.ts +0 -76
- package/dist/src/components/UniTanmu/UniTanmu.vue.d.ts +0 -59
- package/dist/src/components/UniTanmu/index.d.ts +0 -2
- package/dist/src/components/UniTest/index.d.ts +0 -2
- package/dist/src/components/UniTextBk/index.d.ts +0 -2
- package/dist/src/components/WorkRender/DynamicElement.vue.d.ts +0 -59
- package/dist/src/components/WorkRender/PageIndicator.vue.d.ts +0 -110
- package/dist/src/components/WorkRender/SwiperAnimate.d.ts +0 -3
- package/dist/src/components/WorkRender/WorkRenderer.vue.d.ts +0 -59
- package/dist/src/components/WorkRenderLong/test.vue.d.ts +0 -72
- package/dist/src/composables/useElementProps.d.ts +0 -8
- package/dist/src/composables/useElementStyle.d.ts +0 -18
- package/dist/src/constants/countdown.d.ts +0 -65
- package/dist/src/constants/toolbar.d.ts +0 -13
- package/dist/src/hooks/useComponentClick.d.ts +0 -2
- package/dist/src/hooks/useStylePick.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unika-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/unika-components.umd.js",
|
|
6
6
|
"module": "dist/unika-components.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
7
|
+
"types": "dist/src/index.d.ts",
|
|
8
8
|
"description": "Unika Vue3 components library",
|
|
9
9
|
"author": "Jim Yu",
|
|
10
10
|
"license": "MIT",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
20
|
"serve": "vue-cli-service serve",
|
|
21
|
-
"build": "npm run build:es && npm run build:umd",
|
|
21
|
+
"build": "npm run build:es && npm run build:umd && npm run build:assets",
|
|
22
|
+
"build:assets": "mkdir -p dist/assets/css && cp src/assets/css/invite.css dist/assets/css/invite.css",
|
|
22
23
|
"lint": "vue-cli-service lint",
|
|
23
24
|
"build:es": "rollup --config build/rollup.esm.config.js",
|
|
24
25
|
"build:umd": "rollup --config build/rollup.umd.config.js",
|
package/dist/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { ElementData, WorkData } from '../../defaultProps';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
work: {
|
|
5
|
-
type: PropType<WorkData>;
|
|
6
|
-
};
|
|
7
|
-
components: {
|
|
8
|
-
type: PropType<ElementData[]>;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
-
work: {
|
|
13
|
-
type: PropType<WorkData>;
|
|
14
|
-
};
|
|
15
|
-
components: {
|
|
16
|
-
type: PropType<ElementData[]>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
}>>, {}, {}>;
|
|
20
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { ComponentData, WorkData } from '../../defaultProps';
|
|
3
|
-
import 'swiper/swiper-bundle.css';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
work: {
|
|
6
|
-
type: PropType<WorkData>;
|
|
7
|
-
require: boolean;
|
|
8
|
-
};
|
|
9
|
-
components: {
|
|
10
|
-
type: PropType<ComponentData[]>;
|
|
11
|
-
};
|
|
12
|
-
}, {
|
|
13
|
-
controlledSwiper: import("vue").Ref<any>;
|
|
14
|
-
refs: import("vue").Ref<Map<any, any> & Omit<Map<any, any>, keyof Map<any, any>>>;
|
|
15
|
-
componentRefs: import("vue").Ref<Map<any, any> & Omit<Map<any, any>, keyof Map<any, any>>>;
|
|
16
|
-
setComponentRef: (el: any, key: string) => void;
|
|
17
|
-
setAnimationRef: (el: any) => void;
|
|
18
|
-
onSlideChange: (swiper: any) => void;
|
|
19
|
-
onSwiper: (swiper: any) => void;
|
|
20
|
-
modules: import("swiper/types").SwiperComponent[];
|
|
21
|
-
Controller: import("swiper/types").SwiperComponent;
|
|
22
|
-
direction: string;
|
|
23
|
-
upArrow: import("vue").Ref<boolean>;
|
|
24
|
-
slideClasses: (index: number) => string[];
|
|
25
|
-
filterProps: (props: Record<string, any>, keysToFilter: string[], isFilter: true) => Record<string, any>;
|
|
26
|
-
switchPage: (index: number) => void;
|
|
27
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
-
work: {
|
|
29
|
-
type: PropType<WorkData>;
|
|
30
|
-
require: boolean;
|
|
31
|
-
};
|
|
32
|
-
components: {
|
|
33
|
-
type: PropType<ComponentData[]>;
|
|
34
|
-
};
|
|
35
|
-
}>>, {}, {}>;
|
|
36
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
}, {
|
|
4
|
-
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
5
|
-
handleClick: () => void;
|
|
6
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
}>>, {
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
}, {}>;
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const defaultStyles: string[];
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
}, {
|
|
5
|
-
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
6
|
-
handleClick: () => void;
|
|
7
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}>>, {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}, {}>;
|
|
12
|
-
export default _default;
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
dayTextsEn: {
|
|
3
|
-
type: ArrayConstructor;
|
|
4
|
-
default: () => string[];
|
|
5
|
-
};
|
|
6
|
-
dayTextsTh: {
|
|
7
|
-
type: ArrayConstructor;
|
|
8
|
-
default: () => string[];
|
|
9
|
-
};
|
|
10
|
-
monthTexts: {
|
|
11
|
-
type: ArrayConstructor;
|
|
12
|
-
default: () => string[];
|
|
13
|
-
};
|
|
14
|
-
format: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
weddingDate: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
backgroundColor: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
themeColor: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
borderRadius: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
borderStyle: {
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
borderWidth: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
dateColor: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
heartColor: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
themeStyle: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
language: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
}, {
|
|
59
|
-
cp: string;
|
|
60
|
-
currentYearAndMonth: import("vue").ComputedRef<string>;
|
|
61
|
-
currentMonth: import("vue").ComputedRef<string>;
|
|
62
|
-
currentYear: import("vue").ComputedRef<string>;
|
|
63
|
-
itemDays: import("vue").ComputedRef<{
|
|
64
|
-
currentMonth: number;
|
|
65
|
-
day: number;
|
|
66
|
-
date: string;
|
|
67
|
-
month: string;
|
|
68
|
-
days: string;
|
|
69
|
-
valueOf: number;
|
|
70
|
-
}[]>;
|
|
71
|
-
currentDate: import("vue").ComputedRef<string>;
|
|
72
|
-
afterStyle: import("vue").ComputedRef<{
|
|
73
|
-
'--after-haert-color': string;
|
|
74
|
-
}>;
|
|
75
|
-
dayTexts: import("vue").ComputedRef<unknown[]>;
|
|
76
|
-
getHeart: (db: {
|
|
77
|
-
currentMonth: number;
|
|
78
|
-
date: string | number;
|
|
79
|
-
}) => boolean | "";
|
|
80
|
-
getDayItem: (i: number, j: number) => {
|
|
81
|
-
currentMonth: number;
|
|
82
|
-
day: number;
|
|
83
|
-
date: string;
|
|
84
|
-
month: string;
|
|
85
|
-
days: string;
|
|
86
|
-
valueOf: number;
|
|
87
|
-
};
|
|
88
|
-
getClass: (db: {
|
|
89
|
-
currentMonth: number;
|
|
90
|
-
date: string | number;
|
|
91
|
-
}) => string;
|
|
92
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
93
|
-
dayTextsEn: {
|
|
94
|
-
type: ArrayConstructor;
|
|
95
|
-
default: () => string[];
|
|
96
|
-
};
|
|
97
|
-
dayTextsTh: {
|
|
98
|
-
type: ArrayConstructor;
|
|
99
|
-
default: () => string[];
|
|
100
|
-
};
|
|
101
|
-
monthTexts: {
|
|
102
|
-
type: ArrayConstructor;
|
|
103
|
-
default: () => string[];
|
|
104
|
-
};
|
|
105
|
-
format: {
|
|
106
|
-
type: StringConstructor;
|
|
107
|
-
default: string;
|
|
108
|
-
};
|
|
109
|
-
weddingDate: {
|
|
110
|
-
type: StringConstructor;
|
|
111
|
-
default: string;
|
|
112
|
-
};
|
|
113
|
-
backgroundColor: {
|
|
114
|
-
type: StringConstructor;
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
themeColor: {
|
|
118
|
-
type: StringConstructor;
|
|
119
|
-
default: string;
|
|
120
|
-
};
|
|
121
|
-
borderRadius: {
|
|
122
|
-
type: StringConstructor;
|
|
123
|
-
default: string;
|
|
124
|
-
};
|
|
125
|
-
borderStyle: {
|
|
126
|
-
type: StringConstructor;
|
|
127
|
-
default: string;
|
|
128
|
-
};
|
|
129
|
-
borderWidth: {
|
|
130
|
-
type: StringConstructor;
|
|
131
|
-
default: string;
|
|
132
|
-
};
|
|
133
|
-
dateColor: {
|
|
134
|
-
type: StringConstructor;
|
|
135
|
-
default: string;
|
|
136
|
-
};
|
|
137
|
-
heartColor: {
|
|
138
|
-
type: StringConstructor;
|
|
139
|
-
default: string;
|
|
140
|
-
};
|
|
141
|
-
themeStyle: {
|
|
142
|
-
type: StringConstructor;
|
|
143
|
-
default: string;
|
|
144
|
-
};
|
|
145
|
-
language: {
|
|
146
|
-
type: StringConstructor;
|
|
147
|
-
default: string;
|
|
148
|
-
};
|
|
149
|
-
}>> & {}, {
|
|
150
|
-
dayTextsEn: unknown[];
|
|
151
|
-
dayTextsTh: unknown[];
|
|
152
|
-
monthTexts: unknown[];
|
|
153
|
-
format: string;
|
|
154
|
-
weddingDate: string;
|
|
155
|
-
backgroundColor: string;
|
|
156
|
-
themeColor: string;
|
|
157
|
-
borderRadius: string;
|
|
158
|
-
borderStyle: string;
|
|
159
|
-
borderWidth: string;
|
|
160
|
-
dateColor: string;
|
|
161
|
-
heartColor: string;
|
|
162
|
-
themeStyle: string;
|
|
163
|
-
language: string;
|
|
164
|
-
}, {}>;
|
|
165
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const Validators: {
|
|
2
|
-
text: {
|
|
3
|
-
pattern: RegExp;
|
|
4
|
-
message: string;
|
|
5
|
-
};
|
|
6
|
-
name: {
|
|
7
|
-
pattern: RegExp;
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
10
|
-
phone: {
|
|
11
|
-
pattern: RegExp;
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
number: {
|
|
15
|
-
pattern: RegExp;
|
|
16
|
-
message: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare function validateInput(value: string, type: keyof typeof Validators): string | true;
|
|
20
|
-
export type ValidatorType = keyof typeof Validators;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function validateSelect(value: string): string | true;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const Validators: {
|
|
2
|
-
text: {
|
|
3
|
-
pattern: RegExp;
|
|
4
|
-
message: string;
|
|
5
|
-
};
|
|
6
|
-
name: {
|
|
7
|
-
pattern: RegExp;
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
10
|
-
phone: {
|
|
11
|
-
pattern: RegExp;
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
number: {
|
|
15
|
-
pattern: RegExp;
|
|
16
|
-
message: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare function validateInput(value: string, type: keyof typeof Validators): string | true;
|
|
20
|
-
export type ValidatorType = keyof typeof Validators;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
}, {
|
|
4
|
-
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
5
|
-
handleClick: () => void;
|
|
6
|
-
toggleLike: () => void;
|
|
7
|
-
liked: import("vue").Ref<boolean>;
|
|
8
|
-
likeCount: import("vue").Ref<number>;
|
|
9
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}>>, {
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
}, {}>;
|
|
14
|
-
export default _default;
|