zartui 2.0.47 → 2.0.48

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,73 @@
1
+ export default {
2
+ methods: {
3
+ onClick: function onClick(event) {
4
+ this.$emit('click', event);
5
+ }
6
+ },
7
+ render: function render() {
8
+ var h = arguments[0];
9
+ return h("svg", {
10
+ "attrs": {
11
+ "xmlns": "http://www.w3.org/2000/svg",
12
+ "viewBox": "0 0 16 16",
13
+ "version": "1.1",
14
+ "width": "16px",
15
+ "height": "16px"
16
+ },
17
+ "on": {
18
+ "click": this.onClick
19
+ }
20
+ }, [h("g", {
21
+ "attrs": {
22
+ "stroke": "none",
23
+ "stroke-width": "1",
24
+ "fill": "none",
25
+ "fill-rule": "evenodd"
26
+ }
27
+ }, [h("g", {
28
+ "attrs": {
29
+ "transform": "translate(-32.000000, -320.000000)",
30
+ "fill": "#0091FA",
31
+ "fill-rule": "nonzero"
32
+ }
33
+ }, [h("g", {
34
+ "attrs": {
35
+ "transform": "translate(0.000000, 70.000000)"
36
+ }
37
+ }, [h("g", {
38
+ "attrs": {
39
+ "transform": "translate(0.000000, 236.000000)"
40
+ }
41
+ }, [h("g", {
42
+ "attrs": {
43
+ "transform": "translate(32.000000, 12.000000)"
44
+ }
45
+ }, [h("g", {
46
+ "attrs": {
47
+ "transform": "translate(8.000000, 10.000000) scale(-1, 1) translate(-8.000000, -10.000000) translate(0.000000, 2.000000)"
48
+ }
49
+ }, [h("g", {
50
+ "attrs": {
51
+ "transform": "translate(0.500000, 2.000000)"
52
+ }
53
+ }, [h("path", {
54
+ "attrs": {
55
+ "d": "M6.79659726,4.25543258 L3.35183004,7.88886609 C3.14952477,8.10225141 2.77635057,8.13960837 2.51832213,7.9723052 C2.48075622,7.94794782 2.4468797,7.91993249 2.41742642,7.88886609 L-1.02734079,4.25543258 C-1.22964607,4.04204726 -1.18447352,3.73343826 -0.926445085,3.56613509 C-0.821927664,3.49836699 -0.69295109,3.46153846 -0.560138985,3.46153846 L6.32939545,3.46153846 C6.65727667,3.46153846 6.92307692,3.68135095 6.92307692,3.95250339 C6.92307692,4.06233684 6.87854337,4.16899837 6.79659726,4.25543258 Z",
56
+ "opacity": "0.3",
57
+ "transform": "translate(2.884615, 5.769231) rotate(-90.000000) translate(-2.884615, -5.769231) "
58
+ }
59
+ }), h("path", {
60
+ "attrs": {
61
+ "d": "M12.5116225,3.49853348 L7.59052644,8.94868375 C7.3015189,9.26876173 6.7684129,9.32479717 6.39980085,9.07384242 C6.34613526,9.03730635 6.29774023,8.99528335 6.25566412,8.94868375 L1.3345681,3.49853348 C1.04556056,3.1784555 1.11009277,2.715542 1.47870482,2.46458724 C1.62801542,2.3629351 1.81226767,2.30769231 2.00199925,2.30769231 L11.8441913,2.30769231 C12.3125931,2.30769231 12.6923077,2.63741103 12.6923077,3.0441397 C12.6923077,3.20888987 12.6286883,3.36888217 12.5116225,3.49853348 Z",
62
+ "opacity": "0.8",
63
+ "transform": "translate(6.923077, 5.769231) rotate(-90.000000) translate(-6.923077, -5.769231) "
64
+ }
65
+ }), h("path", {
66
+ "attrs": {
67
+ "d": "M17.1270071,3.49853348 L12.2059111,8.94868375 C11.9169035,9.26876173 11.3837975,9.32479717 11.0151855,9.07384242 C10.9615199,9.03730635 10.9131248,8.99528335 10.8710487,8.94868375 L5.94995271,3.49853348 C5.66094518,3.1784555 5.72547739,2.715542 6.09408944,2.46458724 C6.24340004,2.3629351 6.42765229,2.30769231 6.61738387,2.30769231 L16.4595759,2.30769231 C16.9279777,2.30769231 17.3076923,2.63741103 17.3076923,3.0441397 C17.3076923,3.20888987 17.2440729,3.36888217 17.1270071,3.49853348 Z",
68
+ "opacity": "0.8",
69
+ "transform": "translate(11.538462, 5.769231) rotate(-90.000000) translate(-11.538462, -5.769231) "
70
+ }
71
+ })])])])])])])])]);
72
+ }
73
+ };
@@ -0,0 +1,67 @@
1
+ export default {
2
+ methods: {
3
+ onClick: function onClick(event) {
4
+ this.$emit('click', event);
5
+ }
6
+ },
7
+ render: function render() {
8
+ var h = arguments[0];
9
+ return h("svg", {
10
+ "attrs": {
11
+ "xmlns": "http://www.w3.org/2000/svg",
12
+ "viewBox": "0 0 16 16",
13
+ "version": "1.1",
14
+ "width": "16px",
15
+ "height": "16px"
16
+ },
17
+ "on": {
18
+ "click": this.onClick
19
+ }
20
+ }, [h("g", {
21
+ "attrs": {
22
+ "stroke": "none",
23
+ "stroke-width": "1",
24
+ "fill": "none",
25
+ "fill-rule": "evenodd"
26
+ }
27
+ }, [h("g", {
28
+ "attrs": {
29
+ "transform": "translate(-80.000000, -320.000000)",
30
+ "fill": "#0091FA",
31
+ "fill-rule": "nonzero"
32
+ }
33
+ }, [h("g", {
34
+ "attrs": {
35
+ "transform": "translate(0.000000, 70.000000)"
36
+ }
37
+ }, [h("g", {
38
+ "attrs": {
39
+ "transform": "translate(0.000000, 236.000000)"
40
+ }
41
+ }, [h("g", {
42
+ "attrs": {
43
+ "transform": "translate(32.000000, 12.000000)"
44
+ }
45
+ }, [h("g", {
46
+ "attrs": {
47
+ "transform": "translate(56.000000, 10.000000) scale(-1, 1) translate(-56.000000, -10.000000) translate(48.000000, 2.000000)"
48
+ }
49
+ }, [h("g", {
50
+ "attrs": {
51
+ "transform": "translate(3.000000, 2.000000)"
52
+ }
53
+ }, [h("path", {
54
+ "attrs": {
55
+ "d": "M7.06846115,4.42564988 L3.48590324,8.20442073 C3.27550576,8.42634147 2.88740459,8.46519271 2.61905502,8.29119741 C2.57998647,8.26586573 2.54475489,8.23672979 2.51412348,8.20442073 L-1.06843443,4.42564988 C-1.27883191,4.20372915 -1.23185246,3.88277579 -0.963502888,3.70878049 C-0.854804771,3.63830167 -0.720669133,3.6 -0.582544544,3.6 L6.58257127,3.6 C6.92356774,3.6 7.2,3.82860498 7.2,4.11060352 C7.2,4.22483031 7.1536851,4.3357583 7.06846115,4.42564988 Z",
56
+ "opacity": "0.3",
57
+ "transform": "translate(3.000000, 6.000000) rotate(-90.000000) translate(-3.000000, -6.000000) "
58
+ }
59
+ }), h("path", {
60
+ "attrs": {
61
+ "d": "M13.0120874,3.63847482 L7.89414749,9.3066311 C7.59357966,9.6395122 7.03914942,9.69778906 6.65579288,9.43679611 C6.59998067,9.3987986 6.54964984,9.35509469 6.50589069,9.3066311 L1.38795082,3.63847482 C1.08738299,3.30559372 1.15449649,2.82416368 1.53785302,2.56317073 C1.69313604,2.4574525 1.88475838,2.4 2.08207922,2.4 L12.317959,2.4 C12.8050968,2.4 13.2,2.74290748 13.2,3.16590528 C13.2,3.33724547 13.1338359,3.50363746 13.0120874,3.63847482 Z",
62
+ "opacity": "0.8",
63
+ "transform": "translate(7.200000, 6.000000) rotate(-90.000000) translate(-7.200000, -6.000000) "
64
+ }
65
+ })])])])])])])])]);
66
+ }
67
+ };
@@ -1,5 +1,7 @@
1
1
  import { createNamespace } from '../../utils';
2
2
  import { t, bem } from '../utils';
3
+ import FastForwardImg from "../FastForwardImg";
4
+ import SlowForwardImg from "../SlowForwardImg";
3
5
 
4
6
  var _createNamespace = createNamespace('calendar-header'),
5
7
  createComponent = _createNamespace[0];
@@ -11,7 +13,11 @@ export default createComponent({
11
13
  subtitle: String,
12
14
  showTitle: Boolean,
13
15
  showSubtitle: Boolean,
14
- firstDayOfWeek: Number
16
+ firstDayOfWeek: Number,
17
+ yearPreEnable: Boolean,
18
+ monthPreEnable: Boolean,
19
+ yearNextEnable: Boolean,
20
+ monthNextEnable: Boolean
15
21
  },
16
22
  methods: {
17
23
  genTitle: function genTitle() {
@@ -24,13 +30,71 @@ export default createComponent({
24
30
  }, [title]);
25
31
  }
26
32
  },
33
+ onClickPreIcon: function onClickPreIcon(isMonth, isYear) {
34
+ if (isMonth && !this.monthPreEnable || isYear && !this.yearPreEnable) {
35
+ return;
36
+ }
37
+
38
+ this.$emit('clickPreIcon', isMonth, isYear);
39
+ },
40
+ onClickNextIcon: function onClickNextIcon(isMonth, isYear) {
41
+ if (isMonth && !this.monthNextEnable || isYear && !this.yearNextEnable) {
42
+ return;
43
+ }
44
+
45
+ this.$emit('clickNextIcon', isMonth, isYear);
46
+ },
27
47
  genSubtitle: function genSubtitle() {
48
+ var _this = this;
49
+
28
50
  var h = this.$createElement;
29
51
 
30
52
  if (this.showSubtitle) {
31
53
  return h("div", {
32
54
  "class": bem('header-subtitle')
33
- }, [this.subtitle]);
55
+ }, [h("div", {
56
+ "class": bem('header-subtitle', ['opt', this.yearPreEnable ? '' : 'unenable']),
57
+ "attrs": {
58
+ "tabindex": "1"
59
+ },
60
+ "on": {
61
+ "click": function click() {
62
+ return _this.onClickPreIcon(false, true);
63
+ }
64
+ }
65
+ }, [h(FastForwardImg)]), h("div", {
66
+ "class": bem('header-subtitle', ['opt', this.monthPreEnable ? '' : 'unenable']),
67
+ "attrs": {
68
+ "tabindex": "1"
69
+ },
70
+ "on": {
71
+ "click": function click() {
72
+ return _this.onClickPreIcon(true, false);
73
+ }
74
+ }
75
+ }, [h(SlowForwardImg)]), h("label", {
76
+ "class": bem('header-subtitle-text')
77
+ }, [this.subtitle]), h("div", {
78
+ "class": bem('header-subtitle', ['opt', 'right', [this.monthNextEnable ? '' : 'unenable']]),
79
+ "attrs": {
80
+ "tabindex": "1"
81
+ },
82
+ "on": {
83
+ "click": function click() {
84
+ return _this.onClickNextIcon(true, false);
85
+ }
86
+ }
87
+ }, [h(SlowForwardImg)]), h("div", {
88
+ "class": bem('header-subtitle', ['opt', 'right', [this.yearNextEnable ? '' : 'unenable']]),
89
+ "attrs": {
90
+ "tabindex": "1"
91
+ },
92
+ "on": {
93
+ "click": function click() {
94
+ return _this.onClickNextIcon(false, true);
95
+ }
96
+ }
97
+ }, [h(FastForwardImg)])]);
34
98
  }
35
99
  },
36
100
  genWeekDays: function genWeekDays() {
@@ -1,6 +1,7 @@
1
1
  import { createNamespace, addUnit } from '../../utils';
2
2
  import { setScrollTop } from '../../utils/dom/scroll';
3
3
  import { t, bem, compareDay, getPrevDay, getNextDay, formatMonthTitle } from '../utils';
4
+ import { CalendarShowType, CalendarDayType, CalendarTotalDay } from '../types';
4
5
  import { getMonthEndDay } from '../../datetime-picker/utils';
5
6
 
6
7
  var _createNamespace = createNamespace('calendar-month'),
@@ -8,6 +9,7 @@ var _createNamespace = createNamespace('calendar-month'),
8
9
 
9
10
  export default createComponent({
10
11
  props: {
12
+ showType: String,
11
13
  date: Date,
12
14
  type: String,
13
15
  color: String,
@@ -21,7 +23,8 @@ export default createComponent({
21
23
  allowSameDay: Boolean,
22
24
  showSubtitle: Boolean,
23
25
  showMonthTitle: Boolean,
24
- firstDayOfWeek: Number
26
+ firstDayOfWeek: Number,
27
+ disabledDate: Function
25
28
  },
26
29
  data: function data() {
27
30
  return {
@@ -68,21 +71,65 @@ export default createComponent({
68
71
  var year = this.date.getFullYear();
69
72
  var month = this.date.getMonth();
70
73
 
71
- for (var day = 1; day <= this.totalDay; day++) {
72
- var date = new Date(year, month, day);
73
- var type = this.getDayType(date);
74
- var config = {
75
- date: date,
76
- type: type,
77
- text: day,
78
- bottomInfo: this.getBottomInfo(type)
74
+ if (this.showType && this.showType === CalendarShowType.INLINE) {
75
+ for (var day = this.offset - 1; day >= 0; day--) {
76
+ var date = new Date(year, month, -day);
77
+ var type = this.getDayType(date, CalendarDayType.PREVIEW);
78
+ var config = {
79
+ date: date,
80
+ type: type,
81
+ text: date.getDate(),
82
+ bottomInfo: this.getBottomInfo(type)
83
+ };
84
+
85
+ if (this.formatter) {
86
+ config = this.formatter(config);
87
+ }
88
+
89
+ days.push(config);
90
+ }
91
+ }
92
+
93
+ for (var _day = 1; _day <= this.totalDay; _day++) {
94
+ var _date = new Date(year, month, _day);
95
+
96
+ var _type = this.getDayType(_date);
97
+
98
+ var _config = {
99
+ date: _date,
100
+ type: _type,
101
+ text: _day,
102
+ bottomInfo: this.getBottomInfo(_type)
79
103
  };
80
104
 
81
105
  if (this.formatter) {
82
- config = this.formatter(config);
106
+ _config = this.formatter(_config);
83
107
  }
84
108
 
85
- days.push(config);
109
+ days.push(_config);
110
+ }
111
+
112
+ if (this.showType && this.showType === CalendarShowType.INLINE && days && days.length < CalendarTotalDay) {
113
+ var nextMonthsLength = days.length;
114
+
115
+ for (var _day2 = 1; _day2 <= CalendarTotalDay - nextMonthsLength; _day2++) {
116
+ var _date2 = new Date(year, month + 1, _day2);
117
+
118
+ var _type2 = this.getDayType(_date2, CalendarDayType.PREVIEW);
119
+
120
+ var _config2 = {
121
+ date: _date2,
122
+ type: _type2,
123
+ text: _date2.getDate(),
124
+ bottomInfo: this.getBottomInfo(_type2)
125
+ };
126
+
127
+ if (this.formatter) {
128
+ _config2 = this.formatter(_config2);
129
+ }
130
+
131
+ days.push(_config2);
132
+ }
86
133
  }
87
134
 
88
135
  return days;
@@ -168,16 +215,21 @@ export default createComponent({
168
215
  return 'middle';
169
216
  }
170
217
  },
171
- getDayType: function getDayType(day) {
218
+ getDayType: function getDayType(day, defaultType) {
172
219
  var type = this.type,
173
220
  minDate = this.minDate,
174
221
  maxDate = this.maxDate,
175
222
  currentDate = this.currentDate;
176
223
 
177
- if (compareDay(day, minDate) < 0 || compareDay(day, maxDate) > 0) {
224
+ if (minDate && compareDay(day, minDate) < 0 || maxDate && compareDay(day, maxDate) > 0 || this.disabledDate && this.disabledDate(day)) {
178
225
  return 'disabled';
179
226
  }
180
227
 
228
+ if (defaultType) {
229
+ // 仅考虑disable以及defaultType
230
+ return defaultType;
231
+ }
232
+
181
233
  if (currentDate === null) {
182
234
  return;
183
235
  }
@@ -207,7 +259,7 @@ export default createComponent({
207
259
  }
208
260
  }
209
261
  },
210
- getDayStyle: function getDayStyle(type, index) {
262
+ getDayStyle: function getDayStyle(type, index, text) {
211
263
  var style = {
212
264
  height: this.rowHeightWithUnit
213
265
  };
@@ -217,7 +269,7 @@ export default createComponent({
217
269
  return style;
218
270
  }
219
271
 
220
- if (index === 0) {
272
+ if (index === 0 && text && +text === 1) {
221
273
  style.marginLeft = 100 * this.offset / 7 + "%";
222
274
  }
223
275
 
@@ -285,8 +337,9 @@ export default createComponent({
285
337
  var _this2 = this;
286
338
 
287
339
  var h = this.$createElement;
288
- var type = item.type;
289
- var style = this.getDayStyle(type, index);
340
+ var type = item.type,
341
+ text = item.text;
342
+ var style = this.getDayStyle(type, index, text);
290
343
  var disabled = type === 'disabled';
291
344
 
292
345
  var onClick = function onClick() {
@@ -1 +1 @@
1
- .zt2-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff;color:#2d4b73}.zt2-calendar__popup.zt2-popup--bottom,.zt2-calendar__popup.zt2-popup--top{height:80%}.zt2-calendar__popup.zt2-popup--left,.zt2-calendar__popup.zt2-popup--right{height:100%}.zt2-calendar__popup .zt2-popup__close-icon{top:11px}.zt2-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt2-calendar__header-title{height:44px;font-weight:400;line-height:44px;position:relative;color:#2d4b73;font-size:14px;line-height:20px;opacity:.4;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid rgba(45,75,115,.1)}.zt2-calendar__header-title .hint-block{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt2-calendar__header-title::after{top:44px;left:0;content:'';position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt2-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center}.zt2-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt2-calendar__header-subtitle{font-size:14px}.zt2-calendar__month-title{font-size:14px}.zt2-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt2-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt2-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt2-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt2-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt2-calendar__day,.zt2-calendar__selected-day{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}.zt2-calendar__day{position:relative;width:14.285%;height:14.285vw;margin-bottom:10px;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle,.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start,.zt2-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}@media (pointer:coarse){.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle{margin-left:-1px}}.zt2-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--middle{color:#000}.zt2-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt2-calendar__day--disabled{color:#c8c9cc;cursor:default}.zt2-calendar__bottom-info,.zt2-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;line-height:14px}@media (max-width:350px){.zt2-calendar__bottom-info,.zt2-calendar__top-info{font-size:9px}}.zt2-calendar__top-info{top:6px}.zt2-calendar__bottom-info{display:none;bottom:6px}.zt2-calendar__selected-day{font-weight:700;width:14.285vw;height:14.285vw;color:#fff;background-color:#0091fa;border-radius:calc(14.285vw / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__footer{box-sizing:content-box;-webkit-flex-shrink:0;flex-shrink:0;display:-webkit-box;display:-webkit-flex;display:flex;padding:8px 16px 8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt2-calendar__footer--unfit{padding-bottom:0}
1
+ .zt2-calendar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;background-color:#fff;color:#2d4b73}.zt2-calendar__popup.zt2-popup--bottom,.zt2-calendar__popup.zt2-popup--top{height:80%}.zt2-calendar__popup.zt2-popup--left,.zt2-calendar__popup.zt2-popup--right{height:100%}.zt2-calendar__popup .zt2-popup__close-icon{top:11px}.zt2-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 4px 8px 0 rgba(0,0,0,.1);margin-bottom:8px}.zt2-calendar__header-title{height:44px;font-weight:400;line-height:44px;position:relative;color:#2d4b73;font-size:14px;line-height:20px;opacity:.4;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid rgba(45,75,115,.1)}.zt2-calendar__header-title .hint-block{position:absolute;content:'';top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt2-calendar__header-title::after{top:44px;left:0;content:'';position:absolute;box-sizing:border-box;content:' ';pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zt2-calendar__header-subtitle{height:44px;font-weight:400;line-height:44px;text-align:center;padding:0 16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.zt2-calendar__header-subtitle--img{width:16px;height:16px}.zt2-calendar__header-subtitle--opt{width:32px;height:32px;line-height:32px;border-radius:50%;padding:0;margin:0 8px}.zt2-calendar__header-subtitle--opt:active{border-radius:50%;background-color:rgba(45,75,115,.1);opacity:.7}.zt2-calendar__header-subtitle--right{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.zt2-calendar__header-subtitle--unenable{opacity:.2}.zt2-calendar__header-subtitle-text{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.zt2-calendar__month-title{height:44px;font-weight:400;line-height:44px;text-align:center}.zt2-calendar__header-subtitle{font-size:14px}.zt2-calendar__month-title{font-size:14px}.zt2-calendar__weekdays{display:-webkit-box;display:-webkit-flex;display:flex;background-color:rgba(0,0,0,.02)}.zt2-calendar__weekday{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:12px;line-height:30px;font-weight:700;text-align:center}.zt2-calendar__body{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:#fff}.zt2-calendar__days{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt2-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:rgba(242,243,245,.8);font-size:160px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none}.zt2-calendar__day,.zt2-calendar__selected-day{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}.zt2-calendar__day{position:relative;width:14.285%;height:14.285vw;margin-bottom:4px;font-size:16px;font-weight:400;cursor:pointer;outline:0}.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle,.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start,.zt2-calendar__day--start-end{font-weight:700;color:#fff;background-color:#0091fa;box-shadow:0 0 0 3px rgba(0,145,250,.1)}@media (pointer:coarse){.zt2-calendar__day--end,.zt2-calendar__day--multiple-middle{margin-left:-1px}}.zt2-calendar__day--start{font-weight:700;border-radius:7.143vw 0 0 7.143vw;border-right:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--end{font-weight:700;border-radius:0 7.143vw 7.143vw 0;border-left:none;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--multiple-selected,.zt2-calendar__day--start-end{font-weight:700;border-radius:7.143vw;box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__day--middle{color:#000}.zt2-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;color:#0091fa;background-color:currentColor;opacity:.11;content:''}.zt2-calendar__day--disabled,.zt2-calendar__day--preview{color:#c8c9cc;cursor:default}.zt2-calendar__bottom-info,.zt2-calendar__top-info{position:absolute;right:0;left:0;font-size:10px;line-height:14px}@media (max-width:350px){.zt2-calendar__bottom-info,.zt2-calendar__top-info{font-size:9px}}.zt2-calendar__top-info{top:6px}.zt2-calendar__bottom-info{display:none;bottom:6px}.zt2-calendar__selected-day{font-weight:700;width:14.285vw;height:14.285vw;color:#fff;background-color:#0091fa;border-radius:calc(14.285vw / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt2-calendar__footer{box-sizing:content-box;-webkit-flex-shrink:0;flex-shrink:0;display:-webkit-box;display:-webkit-flex;display:flex;padding:8px 16px 8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt2-calendar__footer--unfit{padding-bottom:0}