unika-components 1.0.12 → 1.0.14

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.
@@ -0,0 +1,85 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ dayTexts: {
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
+ start: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ weddingDate: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ }, {
27
+ cp: string;
28
+ isFirstMonth: import("vue").ComputedRef<boolean>;
29
+ currentYearAndMonth: import("vue").ComputedRef<string>;
30
+ itemDays: import("vue").ComputedRef<{
31
+ currentMonth: number;
32
+ day: number;
33
+ date: string;
34
+ month: string;
35
+ days: string;
36
+ valueOf: number;
37
+ }[]>;
38
+ getDayItem: (i: number, j: number) => {
39
+ currentMonth: number;
40
+ day: number;
41
+ date: string;
42
+ month: string;
43
+ days: string;
44
+ valueOf: number;
45
+ };
46
+ getClass: (db: {
47
+ currentMonth: number;
48
+ date: string | number;
49
+ }) => string;
50
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change-month"[], "change-month", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
51
+ title: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ dayTexts: {
56
+ type: ArrayConstructor;
57
+ default: () => string[];
58
+ };
59
+ monthTexts: {
60
+ type: ArrayConstructor;
61
+ default: () => string[];
62
+ };
63
+ format: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ start: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ weddingDate: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ }>> & {
76
+ "onChange-month"?: ((...args: any[]) => any) | undefined;
77
+ }, {
78
+ title: string;
79
+ dayTexts: unknown[];
80
+ monthTexts: unknown[];
81
+ format: string;
82
+ start: string;
83
+ weddingDate: string;
84
+ }, {}>;
85
+ export default _default;
@@ -0,0 +1,24 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ weddingDate: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }, {
7
+ styleProps: import("vue").ComputedRef<Pick<any, string>>;
8
+ dataList: import("vue").Ref<{
9
+ date: string;
10
+ value: string;
11
+ }[]>;
12
+ checkItem: (date: string) => boolean;
13
+ handleClick: () => void;
14
+ getItemNumber: (date: string) => string | undefined;
15
+ getMonthData: (date: any) => void;
16
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ weddingDate: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>>, {
22
+ weddingDate: string;
23
+ }, {}>;
24
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import UniCalendar from './UniCalendar.vue';
2
+ export default UniCalendar;
@@ -0,0 +1,9 @@
1
+ declare const getItemDays: (now: Date | undefined, formatType: any) => {
2
+ currentMonth: number;
3
+ day: number;
4
+ date: string;
5
+ month: string;
6
+ days: string;
7
+ valueOf: number;
8
+ }[];
9
+ export { getItemDays };
@@ -234,6 +234,26 @@ export declare const videoDefaultProps: {
234
234
  videoSrc: string;
235
235
  isPlaying: boolean;
236
236
  };
237
+ export declare const calendarDefaultProps: {
238
+ actionType: string;
239
+ url: string;
240
+ height: string;
241
+ width: string;
242
+ paddingLeft: string;
243
+ paddingRight: string;
244
+ paddingTop: string;
245
+ paddingBottom: string;
246
+ borderStyle: string;
247
+ borderColor: string;
248
+ borderWidth: string;
249
+ borderRadius: string;
250
+ boxShadow: string;
251
+ opacity: number;
252
+ position: string;
253
+ left: string;
254
+ top: string;
255
+ right: string;
256
+ };
237
257
  export declare const componentsDefaultProps: {
238
258
  'uni-text': {
239
259
  props: {
@@ -375,6 +395,28 @@ export declare const componentsDefaultProps: {
375
395
  isPlaying: boolean;
376
396
  };
377
397
  };
398
+ 'uni-calendar': {
399
+ props: {
400
+ actionType: string;
401
+ url: string;
402
+ height: string;
403
+ width: string;
404
+ paddingLeft: string;
405
+ paddingRight: string;
406
+ paddingTop: string;
407
+ paddingBottom: string;
408
+ borderStyle: string;
409
+ borderColor: string;
410
+ borderWidth: string;
411
+ borderRadius: string;
412
+ boxShadow: string;
413
+ opacity: number;
414
+ position: string;
415
+ left: string;
416
+ top: string;
417
+ right: string;
418
+ };
419
+ };
378
420
  };
379
421
  export declare const isEditingProp: {
380
422
  isEditing: {
@@ -7,8 +7,9 @@ import SwiperPage from './components/SwiperPage';
7
7
  import UniBackground from './components/UniBackground';
8
8
  import UniMusic from './components/UniMusic';
9
9
  import UniVideo from './components/UniVideo';
10
+ import UniCalendar from './components/UniCalendar';
10
11
  declare const install: (app: App) => void;
11
- export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, install };
12
+ export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, install };
12
13
  declare const _default: {
13
14
  install: (app: App<any>) => void;
14
15
  };
@@ -3,39 +3,6 @@
3
3
  max-width: 100%;
4
4
  }
5
5
 
6
- .uni-video-component {
7
- position: relative;
8
- text-align: center;
9
- }
10
- .play-pause-button {
11
- position: absolute;
12
- top: 50%;
13
- left: 50%;
14
- transform: translate(-50%, -50%);
15
- cursor: pointer;
16
- font-size: 2rem;
17
- color: #fff;
18
- background: rgba(0, 0, 0, 0.6);
19
- border-radius: 50%;
20
- padding: 10px;
21
- transition: background 0.3s;
22
- }
23
- .play-pause-button:hover {
24
- background: rgba(0, 0, 0, 0.8);
25
- }
26
-
27
- h2.uni-text-component, p.uni-text-component {
28
- margin-bottom: 0;
29
- }
30
- button.uni-text-component {
31
- padding: 5px 10px;
32
- cursor: pointer;
33
- }
34
- .uni-text-component {
35
- box-sizing: border-box;
36
- white-space: pre-wrap;
37
- }
38
-
39
6
  #audio {
40
7
  position: absolute;
41
8
  right: 10px;
@@ -130,6 +97,42 @@ button.uni-text-component {
130
97
  -webkit-transform: rotate(360deg);
131
98
  }
132
99
  }
100
+
101
+ .uni-background-component {
102
+ width: 100%;
103
+ }
104
+ .bg-img {
105
+ width: 100%;
106
+ height: 100%;
107
+ object-fit: cover;
108
+ z-index:1;
109
+ }
110
+ .watermark {
111
+ height: 100%;
112
+ position: absolute;
113
+ top: 0;
114
+ left: 0;
115
+ right: 0;
116
+ bottom: 0;
117
+ }
118
+ .watermark-div {
119
+ height: 100%;
120
+ width:100%;
121
+ position:absolute;
122
+ z-index:99999999;
123
+ }
124
+ body:before{
125
+ content: '';
126
+ position: fixed;
127
+ top: 0;
128
+ bottom: 0;
129
+ left: 0;
130
+ right: 0;
131
+ z-index: -1;
132
+ /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
133
+ background-position: center;
134
+ opacity: 0.1;
135
+ }
133
136
 
134
137
  .slide-guide {
135
138
  position: absolute;
@@ -203,42 +206,47 @@ body, html {
203
206
  transform: translate3d(-50%, -50%, 0);
204
207
  }
205
208
  }
209
+
210
+ h2.uni-text-component, p.uni-text-component {
211
+ margin-bottom: 0;
212
+ }
213
+ button.uni-text-component {
214
+ padding: 5px 10px;
215
+ cursor: pointer;
216
+ }
217
+ .uni-text-component {
218
+ box-sizing: border-box;
219
+ white-space: pre-wrap;
220
+ }
206
221
 
207
- .uni-background-component {
208
- width: 100%;
209
- }
210
- .bg-img {
211
- width: 100%;
212
- height: 100%;
213
- object-fit: cover;
214
- z-index:1;
222
+ .slot-number {
223
+ position: absolute;
224
+ bottom: 2px;
225
+ left: 7px;
226
+ font-size: 12px;
227
+ color: #666
228
+ }
229
+
230
+ .uni-video-component {
231
+ position: relative;
232
+ text-align: center;
215
233
  }
216
- .watermark {
217
- height: 100%;
234
+ .play-pause-button {
218
235
  position: absolute;
219
- top: 0;
220
- left: 0;
221
- right: 0;
222
- bottom: 0;
236
+ top: 50%;
237
+ left: 50%;
238
+ transform: translate(-50%, -50%);
239
+ cursor: pointer;
240
+ font-size: 2rem;
241
+ color: #fff;
242
+ background: rgba(0, 0, 0, 0.6);
243
+ border-radius: 50%;
244
+ padding: 10px;
245
+ transition: background 0.3s;
223
246
  }
224
- .watermark-div {
225
- height: 100%;
226
- width:100%;
227
- position:absolute;
228
- z-index:99999999;
247
+ .play-pause-button:hover {
248
+ background: rgba(0, 0, 0, 0.8);
229
249
  }
230
- body:before{
231
- content: '';
232
- position: fixed;
233
- top: 0;
234
- bottom: 0;
235
- left: 0;
236
- right: 0;
237
- z-index: -1;
238
- /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
239
- background-position: center;
240
- opacity: 0.1;
241
- }
242
250
  /**
243
251
  * Swiper 6.8.4
244
252
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -786,3 +794,92 @@ button.swiper-pagination-bullet {
786
794
  -webkit-backface-visibility: hidden;
787
795
  backface-visibility: hidden;
788
796
  }
797
+
798
+ .unika-calendar-title {
799
+ flex: 1;
800
+ margin-right: 50px;
801
+ white-space: nowrap;
802
+ overflow: hidden;
803
+ text-overflow: ellipsis;
804
+ font-size: 16px;
805
+ font-weight: bold;
806
+ color: #333;
807
+ }
808
+ .unika-calendar-header {
809
+ display: flex;
810
+ justify-content: space-between;
811
+ align-items: center;
812
+ padding: 12px 0;
813
+ border-bottom: 1px solid #F3F3F3;
814
+ user-select: none;
815
+ }
816
+ .unika-calendar-header .disabled {
817
+ pointer-events: none;
818
+ color: #f0f0f0;
819
+ }
820
+ .unika-calendar-th {
821
+ display: flex;
822
+ padding: 16px 10px;
823
+ }
824
+ .unika-calendar-th > * {
825
+ flex: 1;
826
+ padding: 0 7px;
827
+ font-size: 12px;
828
+ text-align: center;
829
+ color: #666;
830
+ }
831
+ .unika-calendar-th > *:not(:first-child) {
832
+ margin-left: 10px;
833
+ }
834
+ .unika-calendar-body {
835
+ background-color: #F6FAFF;
836
+ padding: 10px;
837
+ }
838
+ .unika-calendar-editor {
839
+ font-size: 14px;
840
+ font-weight: bold;
841
+ display: flex;
842
+ }
843
+ .unika-calendar-editor span {
844
+ display: inline-block;
845
+ min-width: 80px;
846
+ text-align: center;
847
+ }
848
+ .unika-calendar-day {
849
+ display: inline-block;
850
+ width: 24px;
851
+ height: 24px;
852
+ line-height: 24px;
853
+ text-align: center;
854
+ font-size: 14px;
855
+ border-radius: 50%;
856
+ }
857
+ .unika-calendar-row {
858
+ display: flex;
859
+ }
860
+ .unika-calendar-row:not(:last-child) {
861
+ margin-bottom: 10px;
862
+ }
863
+ .unika-calendar-row > * {
864
+ flex: 1;
865
+ padding: 2px;
866
+ height: 28px;
867
+ box-sizing: border-box;
868
+ position: relative;
869
+ }
870
+ .unika-calendar-row > *.color-grey {
871
+ background-color: #EBF1F9;
872
+ }
873
+ .unika-calendar-row > *.color-purple {
874
+ background-color: #D5C3FF;
875
+ }
876
+ .unika-calendar-row > *.color-green {
877
+ background-color: #AFF0C8;
878
+ }
879
+ .unika-calendar-row > *.color-today .unika-calendar-day {
880
+ background-color: #fff;
881
+ font-weight: bold;
882
+ }
883
+ .unika-calendar-row > *:not(:first-child) {
884
+ margin-left: 10px;
885
+ }