@zohodesk/components 1.2.46 → 1.2.47
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/README.md +6 -0
- package/es/DateTime/CalendarView.js +9 -7
- package/lib/DateTime/CalendarView.js +9 -7
- package/package.json +3 -3
- package/result.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,12 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.2.47
|
|
36
|
+
|
|
37
|
+
- **DateTime**
|
|
38
|
+
|
|
39
|
+
- The issue of the dateTime_dateSelected string being duplicated in the data_id attribute when selecting the last day of the month has been resolved.
|
|
40
|
+
|
|
35
41
|
# 1.2.46
|
|
36
42
|
|
|
37
43
|
- **AppContainer (v1)**
|
|
@@ -62,6 +62,7 @@ export default class CalendarView extends React.PureComponent {
|
|
|
62
62
|
let output = null;
|
|
63
63
|
|
|
64
64
|
for (let i = 1; i < 8; i++) {
|
|
65
|
+
isSelectedDay = false;
|
|
65
66
|
let tdclass = `${style.datesStr} ${style.grid}`;
|
|
66
67
|
|
|
67
68
|
if (i === 1) {
|
|
@@ -102,8 +103,8 @@ export default class CalendarView extends React.PureComponent {
|
|
|
102
103
|
|
|
103
104
|
const prevMonthEnd = getMonthEnd(prevMonth, prevYear);
|
|
104
105
|
const prevDate = prevMonthEnd - (userSeeDay - 1) + incremleti; // isSelectedDay =
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
// prevDate === parseInt(date) && parseInt(month) === prevMonth && parseInt(year) === prevYear ? true : false;
|
|
107
|
+
// isToday = prevDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
|
|
107
108
|
|
|
108
109
|
output = /*#__PURE__*/React.createElement(Span, {
|
|
109
110
|
i: i //isActive={isSelectedDay}
|
|
@@ -113,7 +114,7 @@ export default class CalendarView extends React.PureComponent {
|
|
|
113
114
|
incremday: prevDate,
|
|
114
115
|
userSeeMonth: prevMonth,
|
|
115
116
|
userSeeYear: prevYear,
|
|
116
|
-
dataId:
|
|
117
|
+
dataId: `${dataId}_invalidDate` // isToday={isToday}
|
|
117
118
|
|
|
118
119
|
});
|
|
119
120
|
} else if (incremleti > monthEnd) {
|
|
@@ -125,9 +126,10 @@ export default class CalendarView extends React.PureComponent {
|
|
|
125
126
|
nextYear = userSeeYear + 1;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
|
-
const nextDate = incremleti - (userSeeDay - 1) - monthEnd; //
|
|
129
|
-
|
|
130
|
-
nextDate === parseInt(date) && parseInt(month) === nextMonth && parseInt(year) === nextYear ? true : false;
|
|
129
|
+
const nextDate = incremleti - (userSeeDay - 1) - monthEnd; // console.log('last dates',incremleti, monthEnd,'nextDate',nextDate,'monthEnd',monthEnd,'userSeeDay',userSeeDay)
|
|
130
|
+
// isSelectedDay =
|
|
131
|
+
// nextDate === parseInt(date) && parseInt(month) === nextMonth && parseInt(year) === nextYear ? true : false;
|
|
132
|
+
// isToday = nextDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
|
|
131
133
|
|
|
132
134
|
output = /*#__PURE__*/React.createElement(Span, {
|
|
133
135
|
i: i // isActive={isSelectedDay}
|
|
@@ -137,7 +139,7 @@ export default class CalendarView extends React.PureComponent {
|
|
|
137
139
|
incremday: nextDate,
|
|
138
140
|
userSeeMonth: nextMonth,
|
|
139
141
|
userSeeYear: nextYear,
|
|
140
|
-
dataId:
|
|
142
|
+
dataId: `${dataId}_invalidDate` //isToday={isToday}
|
|
141
143
|
|
|
142
144
|
});
|
|
143
145
|
} else {
|
|
@@ -110,6 +110,7 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
110
110
|
var output = null;
|
|
111
111
|
|
|
112
112
|
for (var i = 1; i < 8; i++) {
|
|
113
|
+
isSelectedDay = false;
|
|
113
114
|
var tdclass = "".concat(_DateTimeModule["default"].datesStr, " ").concat(_DateTimeModule["default"].grid);
|
|
114
115
|
|
|
115
116
|
if (i === 1) {
|
|
@@ -150,8 +151,8 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
150
151
|
|
|
151
152
|
var prevMonthEnd = (0, _common.getMonthEnd)(prevMonth, prevYear);
|
|
152
153
|
var prevDate = prevMonthEnd - (userSeeDay - 1) + incremleti; // isSelectedDay =
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
// prevDate === parseInt(date) && parseInt(month) === prevMonth && parseInt(year) === prevYear ? true : false;
|
|
155
|
+
// isToday = prevDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
|
|
155
156
|
|
|
156
157
|
output = /*#__PURE__*/_react["default"].createElement(Span, {
|
|
157
158
|
i: i //isActive={isSelectedDay}
|
|
@@ -161,7 +162,7 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
161
162
|
incremday: prevDate,
|
|
162
163
|
userSeeMonth: prevMonth,
|
|
163
164
|
userSeeYear: prevYear,
|
|
164
|
-
dataId:
|
|
165
|
+
dataId: "".concat(dataId, "_invalidDate") // isToday={isToday}
|
|
165
166
|
|
|
166
167
|
});
|
|
167
168
|
} else if (incremleti > monthEnd) {
|
|
@@ -173,9 +174,10 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
173
174
|
nextYear = userSeeYear + 1;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
|
-
var nextDate = incremleti - (userSeeDay - 1) - monthEnd; //
|
|
177
|
-
|
|
178
|
-
nextDate === parseInt(date) && parseInt(month) === nextMonth && parseInt(year) === nextYear ? true : false;
|
|
177
|
+
var nextDate = incremleti - (userSeeDay - 1) - monthEnd; // console.log('last dates',incremleti, monthEnd,'nextDate',nextDate,'monthEnd',monthEnd,'userSeeDay',userSeeDay)
|
|
178
|
+
// isSelectedDay =
|
|
179
|
+
// nextDate === parseInt(date) && parseInt(month) === nextMonth && parseInt(year) === nextYear ? true : false;
|
|
180
|
+
// isToday = nextDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
|
|
179
181
|
|
|
180
182
|
output = /*#__PURE__*/_react["default"].createElement(Span, {
|
|
181
183
|
i: i // isActive={isSelectedDay}
|
|
@@ -185,7 +187,7 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
185
187
|
incremday: nextDate,
|
|
186
188
|
userSeeMonth: nextMonth,
|
|
187
189
|
userSeeYear: nextYear,
|
|
188
|
-
dataId:
|
|
190
|
+
dataId: "".concat(dataId, "_invalidDate") //isToday={isToday}
|
|
189
191
|
|
|
190
192
|
});
|
|
191
193
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.47",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@zohodesk/a11y": "2.2.6",
|
|
72
72
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
73
73
|
"@zohodesk/hooks": "2.0.5",
|
|
74
|
-
"@zohodesk/icons": "1.0.
|
|
74
|
+
"@zohodesk/icons": "1.0.62",
|
|
75
75
|
"@zohodesk/svg": "1.1.19",
|
|
76
76
|
"@zohodesk/utils": "1.3.14",
|
|
77
77
|
"@zohodesk/variables": "1.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"selectn": "1.1.2"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@zohodesk/icons": "1.0.
|
|
89
|
+
"@zohodesk/icons": "1.0.62",
|
|
90
90
|
"@zohodesk/variables": "1.0.0",
|
|
91
91
|
"@zohodesk/svg": "1.1.19",
|
|
92
92
|
"@zohodesk/virtualizer": "1.0.3",
|