unika-components 1.0.133 → 1.0.134
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/src/components/UniCalendar/Calendar.vue.d.ts +9 -0
- package/dist/src/components/UniCalendar/UniCalendar.vue.d.ts +1 -0
- package/dist/src/defaultProps.d.ts +2 -2
- package/dist/unika-components.css +38 -38
- package/dist/unika-components.esm.js +24 -6
- package/dist/unika-components.umd.js +24 -6
- package/package.json +1 -1
|
@@ -55,6 +55,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
type: StringConstructor;
|
|
56
56
|
default: string;
|
|
57
57
|
};
|
|
58
|
+
size: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
58
62
|
}, {
|
|
59
63
|
cp: string;
|
|
60
64
|
currentYearAndMonth: import("vue").ComputedRef<string>;
|
|
@@ -146,6 +150,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
150
|
type: StringConstructor;
|
|
147
151
|
default: string;
|
|
148
152
|
};
|
|
153
|
+
size: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
149
157
|
}>> & {}, {
|
|
150
158
|
dayTextsEn: unknown[];
|
|
151
159
|
dayTextsTh: unknown[];
|
|
@@ -161,5 +169,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
161
169
|
heartColor: string;
|
|
162
170
|
themeStyle: string;
|
|
163
171
|
language: string;
|
|
172
|
+
size: string;
|
|
164
173
|
}, {}>;
|
|
165
174
|
export default _default;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
handleClick: () => void;
|
|
12
12
|
getItemNumber: (date: string) => string | undefined;
|
|
13
13
|
getMonthData: (date: any) => void;
|
|
14
|
+
size: import("vue").ComputedRef<"scale(0.855)" | "scale(1)" | "scale(0.75)">;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
[x: string]: any;
|
|
16
17
|
}>>, {
|
|
@@ -237,7 +237,7 @@ export declare const videoDefaultProps: {
|
|
|
237
237
|
export declare const calendarDefaultProps: {
|
|
238
238
|
left: string;
|
|
239
239
|
top: string;
|
|
240
|
-
|
|
240
|
+
size: string;
|
|
241
241
|
opacity: number;
|
|
242
242
|
position: string;
|
|
243
243
|
backgroundColor: string;
|
|
@@ -547,7 +547,7 @@ export declare const componentsDefaultProps: {
|
|
|
547
547
|
props: {
|
|
548
548
|
left: string;
|
|
549
549
|
top: string;
|
|
550
|
-
|
|
550
|
+
size: string;
|
|
551
551
|
opacity: number;
|
|
552
552
|
position: string;
|
|
553
553
|
backgroundColor: string;
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
h2.uni-text-component, p.uni-text-component {
|
|
3
|
-
margin-bottom: 0;
|
|
4
|
-
}
|
|
5
|
-
button.uni-text-component {
|
|
6
|
-
padding: 5px 10px;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
}
|
|
9
|
-
.uni-text-component {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
white-space: pre-wrap;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
2
|
.uni-image-component {
|
|
15
3
|
max-width: 100%;
|
|
16
4
|
}
|
|
@@ -87,6 +75,18 @@ body, html {
|
|
|
87
75
|
transform: translate3d(-50%, -50%, 0);
|
|
88
76
|
}
|
|
89
77
|
}
|
|
78
|
+
|
|
79
|
+
h2.uni-text-component, p.uni-text-component {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
button.uni-text-component {
|
|
83
|
+
padding: 5px 10px;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
.uni-text-component {
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
white-space: pre-wrap;
|
|
89
|
+
}
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
.uni-calendar-component {
|
|
@@ -100,27 +100,6 @@ body, html {
|
|
|
100
100
|
color: #666
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.uni-video-component {
|
|
104
|
-
position: relative;
|
|
105
|
-
text-align: center;
|
|
106
|
-
}
|
|
107
|
-
.play-pause-button {
|
|
108
|
-
position: absolute;
|
|
109
|
-
top: 50%;
|
|
110
|
-
left: 50%;
|
|
111
|
-
transform: translate(-50%, -50%);
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
font-size: 2rem;
|
|
114
|
-
color: #fff;
|
|
115
|
-
background: rgba(0, 0, 0, 0.6);
|
|
116
|
-
border-radius: 50%;
|
|
117
|
-
padding: 10px;
|
|
118
|
-
transition: background 0.3s;
|
|
119
|
-
}
|
|
120
|
-
.play-pause-button:hover {
|
|
121
|
-
background: rgba(0, 0, 0, 0.8);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
103
|
.like-button {
|
|
125
104
|
display: flex;
|
|
126
105
|
flex-direction: column;
|
|
@@ -143,6 +122,32 @@ body, html {
|
|
|
143
122
|
color: #333;
|
|
144
123
|
}
|
|
145
124
|
|
|
125
|
+
.effect {
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.uni-video-component {
|
|
131
|
+
position: relative;
|
|
132
|
+
text-align: center;
|
|
133
|
+
}
|
|
134
|
+
.play-pause-button {
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 50%;
|
|
137
|
+
left: 50%;
|
|
138
|
+
transform: translate(-50%, -50%);
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
font-size: 2rem;
|
|
141
|
+
color: #fff;
|
|
142
|
+
background: rgba(0, 0, 0, 0.6);
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
padding: 10px;
|
|
145
|
+
transition: background 0.3s;
|
|
146
|
+
}
|
|
147
|
+
.play-pause-button:hover {
|
|
148
|
+
background: rgba(0, 0, 0, 0.8);
|
|
149
|
+
}
|
|
150
|
+
|
|
146
151
|
.ant-input-number {
|
|
147
152
|
box-sizing: border-box;
|
|
148
153
|
margin: 0;
|
|
@@ -191,11 +196,6 @@ body, html {
|
|
|
191
196
|
max-width: 100%;
|
|
192
197
|
max-height: 100%;
|
|
193
198
|
}
|
|
194
|
-
|
|
195
|
-
.effect {
|
|
196
|
-
width: 100%;
|
|
197
|
-
height: 100%;
|
|
198
|
-
}
|
|
199
199
|
/**
|
|
200
200
|
* Swiper 6.8.4
|
|
201
201
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -5064,7 +5064,7 @@ const videoDefaultProps = {
|
|
|
5064
5064
|
const calendarDefaultProps = {
|
|
5065
5065
|
left: '25px',
|
|
5066
5066
|
top: '204.5px',
|
|
5067
|
-
|
|
5067
|
+
size: 'middle',
|
|
5068
5068
|
opacity: 1,
|
|
5069
5069
|
position: 'absolute',
|
|
5070
5070
|
backgroundColor: 'rgb(255, 255, 255)',
|
|
@@ -15779,6 +15779,10 @@ var script$c = defineComponent({
|
|
|
15779
15779
|
type: String,
|
|
15780
15780
|
default: 'en'
|
|
15781
15781
|
},
|
|
15782
|
+
size: {
|
|
15783
|
+
type: String,
|
|
15784
|
+
default: 'scale(0.855)'
|
|
15785
|
+
},
|
|
15782
15786
|
},
|
|
15783
15787
|
components: {},
|
|
15784
15788
|
emits: [],
|
|
@@ -15883,7 +15887,8 @@ const _hoisted_5$1 = {
|
|
|
15883
15887
|
|
|
15884
15888
|
function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15885
15889
|
return (openBlock(), createElementBlock("div", {
|
|
15886
|
-
class: normalizeClass(`${_ctx.cp}-box`)
|
|
15890
|
+
class: normalizeClass(`${_ctx.cp}-box`),
|
|
15891
|
+
style: normalizeStyle$1({ transform: _ctx.size })
|
|
15887
15892
|
}, [
|
|
15888
15893
|
(_ctx.themeStyle == '1')
|
|
15889
15894
|
? (openBlock(), createElementBlock("div", {
|
|
@@ -16015,7 +16020,7 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16015
16020
|
}), 128 /* KEYED_FRAGMENT */))
|
|
16016
16021
|
], 6 /* CLASS, STYLE */)
|
|
16017
16022
|
])
|
|
16018
|
-
],
|
|
16023
|
+
], 6 /* CLASS, STYLE */))
|
|
16019
16024
|
}
|
|
16020
16025
|
|
|
16021
16026
|
script$c.render = render$d;
|
|
@@ -16060,13 +16065,25 @@ var script$b = defineComponent({
|
|
|
16060
16065
|
// todo axios for get data
|
|
16061
16066
|
console.log(date);
|
|
16062
16067
|
};
|
|
16068
|
+
const size = computed(() => {
|
|
16069
|
+
if (props.size == 'middle') {
|
|
16070
|
+
return "scale(0.855)";
|
|
16071
|
+
}
|
|
16072
|
+
else if (props.size == 'large') {
|
|
16073
|
+
return "scale(1)";
|
|
16074
|
+
}
|
|
16075
|
+
else {
|
|
16076
|
+
return "scale(0.75)";
|
|
16077
|
+
}
|
|
16078
|
+
});
|
|
16063
16079
|
return {
|
|
16064
16080
|
styleProps,
|
|
16065
16081
|
dataList,
|
|
16066
16082
|
checkItem,
|
|
16067
16083
|
handleClick,
|
|
16068
16084
|
getItemNumber,
|
|
16069
|
-
getMonthData
|
|
16085
|
+
getMonthData,
|
|
16086
|
+
size
|
|
16070
16087
|
};
|
|
16071
16088
|
}
|
|
16072
16089
|
});
|
|
@@ -16095,7 +16112,8 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16095
16112
|
dateColor: _ctx.dateColor,
|
|
16096
16113
|
heartColor: _ctx.heartColor,
|
|
16097
16114
|
themeStyle: _ctx.themeStyle,
|
|
16098
|
-
language: _ctx.language
|
|
16115
|
+
language: _ctx.language,
|
|
16116
|
+
size: _ctx.size
|
|
16099
16117
|
}, {
|
|
16100
16118
|
default: withCtx((slotProps) => [
|
|
16101
16119
|
(_ctx.checkItem(slotProps.item.date))
|
|
@@ -16103,7 +16121,7 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16103
16121
|
: createCommentVNode("v-if", true)
|
|
16104
16122
|
]),
|
|
16105
16123
|
_: 1 /* STABLE */
|
|
16106
|
-
}, 8 /* PROPS */, ["weddingDate", "backgroundColor", "themeColor", "borderRadius", "borderStyle", "borderWidth", "dateColor", "heartColor", "themeStyle", "language"])
|
|
16124
|
+
}, 8 /* PROPS */, ["weddingDate", "backgroundColor", "themeColor", "borderRadius", "borderStyle", "borderWidth", "dateColor", "heartColor", "themeStyle", "language", "size"])
|
|
16107
16125
|
], 4 /* STYLE */))
|
|
16108
16126
|
}
|
|
16109
16127
|
|
|
@@ -5071,7 +5071,7 @@
|
|
|
5071
5071
|
const calendarDefaultProps = {
|
|
5072
5072
|
left: '25px',
|
|
5073
5073
|
top: '204.5px',
|
|
5074
|
-
|
|
5074
|
+
size: 'middle',
|
|
5075
5075
|
opacity: 1,
|
|
5076
5076
|
position: 'absolute',
|
|
5077
5077
|
backgroundColor: 'rgb(255, 255, 255)',
|
|
@@ -15786,6 +15786,10 @@
|
|
|
15786
15786
|
type: String,
|
|
15787
15787
|
default: 'en'
|
|
15788
15788
|
},
|
|
15789
|
+
size: {
|
|
15790
|
+
type: String,
|
|
15791
|
+
default: 'scale(0.855)'
|
|
15792
|
+
},
|
|
15789
15793
|
},
|
|
15790
15794
|
components: {},
|
|
15791
15795
|
emits: [],
|
|
@@ -15890,7 +15894,8 @@
|
|
|
15890
15894
|
|
|
15891
15895
|
function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15892
15896
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
15893
|
-
class: vue.normalizeClass(`${_ctx.cp}-box`)
|
|
15897
|
+
class: vue.normalizeClass(`${_ctx.cp}-box`),
|
|
15898
|
+
style: vue.normalizeStyle({ transform: _ctx.size })
|
|
15894
15899
|
}, [
|
|
15895
15900
|
(_ctx.themeStyle == '1')
|
|
15896
15901
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -16022,7 +16027,7 @@
|
|
|
16022
16027
|
}), 128 /* KEYED_FRAGMENT */))
|
|
16023
16028
|
], 6 /* CLASS, STYLE */)
|
|
16024
16029
|
])
|
|
16025
|
-
],
|
|
16030
|
+
], 6 /* CLASS, STYLE */))
|
|
16026
16031
|
}
|
|
16027
16032
|
|
|
16028
16033
|
script$c.render = render$d;
|
|
@@ -16067,13 +16072,25 @@
|
|
|
16067
16072
|
// todo axios for get data
|
|
16068
16073
|
console.log(date);
|
|
16069
16074
|
};
|
|
16075
|
+
const size = vue.computed(() => {
|
|
16076
|
+
if (props.size == 'middle') {
|
|
16077
|
+
return "scale(0.855)";
|
|
16078
|
+
}
|
|
16079
|
+
else if (props.size == 'large') {
|
|
16080
|
+
return "scale(1)";
|
|
16081
|
+
}
|
|
16082
|
+
else {
|
|
16083
|
+
return "scale(0.75)";
|
|
16084
|
+
}
|
|
16085
|
+
});
|
|
16070
16086
|
return {
|
|
16071
16087
|
styleProps,
|
|
16072
16088
|
dataList,
|
|
16073
16089
|
checkItem,
|
|
16074
16090
|
handleClick,
|
|
16075
16091
|
getItemNumber,
|
|
16076
|
-
getMonthData
|
|
16092
|
+
getMonthData,
|
|
16093
|
+
size
|
|
16077
16094
|
};
|
|
16078
16095
|
}
|
|
16079
16096
|
});
|
|
@@ -16102,7 +16119,8 @@
|
|
|
16102
16119
|
dateColor: _ctx.dateColor,
|
|
16103
16120
|
heartColor: _ctx.heartColor,
|
|
16104
16121
|
themeStyle: _ctx.themeStyle,
|
|
16105
|
-
language: _ctx.language
|
|
16122
|
+
language: _ctx.language,
|
|
16123
|
+
size: _ctx.size
|
|
16106
16124
|
}, {
|
|
16107
16125
|
default: vue.withCtx((slotProps) => [
|
|
16108
16126
|
(_ctx.checkItem(slotProps.item.date))
|
|
@@ -16110,7 +16128,7 @@
|
|
|
16110
16128
|
: vue.createCommentVNode("v-if", true)
|
|
16111
16129
|
]),
|
|
16112
16130
|
_: 1 /* STABLE */
|
|
16113
|
-
}, 8 /* PROPS */, ["weddingDate", "backgroundColor", "themeColor", "borderRadius", "borderStyle", "borderWidth", "dateColor", "heartColor", "themeStyle", "language"])
|
|
16131
|
+
}, 8 /* PROPS */, ["weddingDate", "backgroundColor", "themeColor", "borderRadius", "borderStyle", "borderWidth", "dateColor", "heartColor", "themeStyle", "language", "size"])
|
|
16114
16132
|
], 4 /* STYLE */))
|
|
16115
16133
|
}
|
|
16116
16134
|
|