@factorearth/component-library 5.4.28-alpha.0 → 5.4.29-alpha.0
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.
|
@@ -6,7 +6,11 @@ interface DateFieldPickerProps {
|
|
|
6
6
|
handleBlur: (e: any) => void;
|
|
7
7
|
handleChange: (e: any) => void;
|
|
8
8
|
setOpenToast: (open: boolean) => void;
|
|
9
|
-
setToastInfo: (info:
|
|
9
|
+
setToastInfo: (info: {
|
|
10
|
+
message: string;
|
|
11
|
+
title: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
10
14
|
handleClickAndSubmit: (e: any) => void;
|
|
11
15
|
value: string | null;
|
|
12
16
|
placeholder?: string;
|
|
@@ -101,7 +101,6 @@ const DateFieldContainer = styled.div `
|
|
|
101
101
|
`;
|
|
102
102
|
const KeyboardEventHandler = React.forwardRef(({ onEnter, onChange, ...rest }, ref) => (React.createElement("input", { ...rest, ref: ref, onKeyDown: (e) => {
|
|
103
103
|
if (e.key === "Enter") {
|
|
104
|
-
console.log(`enter was pressed!! `, e.key);
|
|
105
104
|
if (onEnter)
|
|
106
105
|
onEnter(e);
|
|
107
106
|
}
|
|
@@ -111,7 +110,6 @@ const KeyboardEventHandler = React.forwardRef(({ onEnter, onChange, ...rest }, r
|
|
|
111
110
|
} })));
|
|
112
111
|
export const DateFieldPicker = ({ colorPalette, handleBlur, handleChange, handleClickAndSubmit, setOpenToast, setToastInfo, value, placeholder, moreHorizon, }) => {
|
|
113
112
|
const [selectedDate, setSelectedDate] = useState(null);
|
|
114
|
-
const [inputValue, setInputValue] = useState(value || "");
|
|
115
113
|
const datePickerRef = useRef(null);
|
|
116
114
|
useEffect(() => {
|
|
117
115
|
if (value) {
|
|
@@ -127,175 +125,15 @@ export const DateFieldPicker = ({ colorPalette, handleBlur, handleChange, handle
|
|
|
127
125
|
datePickerRef.current.setOpen(true);
|
|
128
126
|
}
|
|
129
127
|
};
|
|
130
|
-
/**
|
|
131
|
-
* This is to help handle parsing out a partial date.
|
|
132
|
-
* @param input from the element
|
|
133
|
-
* @returns year month and day
|
|
134
|
-
*/
|
|
135
|
-
function parsePartialDate(input) {
|
|
136
|
-
// Remove non-digits
|
|
137
|
-
const digits = input.replace(/\D/g, "");
|
|
138
|
-
let year, month, day;
|
|
139
|
-
if (digits.length >= 4) {
|
|
140
|
-
year = digits.slice(0, 4);
|
|
141
|
-
}
|
|
142
|
-
if (digits.length >= 6) {
|
|
143
|
-
month = digits.slice(4, 6);
|
|
144
|
-
}
|
|
145
|
-
if (digits.length >= 8) {
|
|
146
|
-
day = digits.slice(6, 8);
|
|
147
|
-
}
|
|
148
|
-
return { year, month, day };
|
|
149
|
-
}
|
|
150
|
-
// Get it into a correct format
|
|
151
|
-
function formatPartialDate({ year, month, day }) {
|
|
152
|
-
let result = "";
|
|
153
|
-
if (year)
|
|
154
|
-
result += year;
|
|
155
|
-
if (month)
|
|
156
|
-
result += "-" + month;
|
|
157
|
-
if (day)
|
|
158
|
-
result += "-" + day;
|
|
159
|
-
return result;
|
|
160
|
-
}
|
|
161
|
-
// const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
162
|
-
// const raw = e.target.value;
|
|
163
|
-
// setInputValue(raw);
|
|
164
|
-
// // Normalize 8-digit input to YYYY-MM-DD
|
|
165
|
-
// const normalized = raw.replace(/[-\/]/g, "");
|
|
166
|
-
// let dateObj: Date | null = null;
|
|
167
|
-
// if (/^\d{8}$/.test(normalized)) {
|
|
168
|
-
// const year = normalized.slice(0, 4);
|
|
169
|
-
// const month = normalized.slice(4, 6);
|
|
170
|
-
// const day = normalized.slice(6, 8);
|
|
171
|
-
// const dateStr = `${year}-${month}-${day}`;
|
|
172
|
-
// dateObj = new Date(dateStr);
|
|
173
|
-
// } else if (/^\d{4}[-\/]\d{2}[-\/]\d{2}$/.test(raw)) {
|
|
174
|
-
// dateObj = new Date(raw.replace(/\//g, "-"));
|
|
175
|
-
// }
|
|
176
|
-
// console.log(`the dateObj: `, dateObj);
|
|
177
|
-
// if (dateObj && !isNaN(dateObj.getTime())) {
|
|
178
|
-
// setSelectedDate(dateObj);
|
|
179
|
-
// } else {
|
|
180
|
-
// setSelectedDate(null);
|
|
181
|
-
// }
|
|
182
|
-
// };
|
|
183
|
-
// const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
184
|
-
// const raw = e.target.value;
|
|
185
|
-
// setInputValue(raw);
|
|
186
|
-
// let {year, month, day} = parsePartialDate(raw);
|
|
187
|
-
// // const stringOfDate = formatPartialDate(parsedPartial);
|
|
188
|
-
// // Only create a Date object if all parts are present
|
|
189
|
-
// if(year){
|
|
190
|
-
// if(!month) {
|
|
191
|
-
// month = "01";
|
|
192
|
-
// }
|
|
193
|
-
// if(!day) {
|
|
194
|
-
// day = "01";
|
|
195
|
-
// }
|
|
196
|
-
// }
|
|
197
|
-
// if (year && month && day) {
|
|
198
|
-
// const dateStr = `${year}-${month}-${day}`;
|
|
199
|
-
// const dateObj = new Date(dateStr + "T00:00:00");
|
|
200
|
-
// if (!isNaN(dateObj.getTime())) {
|
|
201
|
-
// setSelectedDate(dateObj);
|
|
202
|
-
// } else {
|
|
203
|
-
// setSelectedDate(null);
|
|
204
|
-
// }
|
|
205
|
-
// } else {
|
|
206
|
-
// setSelectedDate(null); // Or keep previous date, depending on UX
|
|
207
|
-
// }
|
|
208
|
-
// // // Only create a Date object if all parts are present
|
|
209
|
-
// // if (stringOfDate) {
|
|
210
|
-
// // // const dateStr = `${year}-${month}-${day}`;
|
|
211
|
-
// // const dateObj = new Date(stringOfDate + "T00:00:00");
|
|
212
|
-
// // if (!isNaN(dateObj.getTime())) {
|
|
213
|
-
// // setSelectedDate(dateObj);
|
|
214
|
-
// // } else {
|
|
215
|
-
// // setSelectedDate(null);
|
|
216
|
-
// // }
|
|
217
|
-
// // } else {
|
|
218
|
-
// // setSelectedDate(null); // Or keep previous date, depending on UX
|
|
219
|
-
// // }
|
|
220
|
-
// };
|
|
221
|
-
const handleInputChange = (raw) => {
|
|
222
|
-
console.log(`the handle input change: `, raw);
|
|
223
|
-
// const raw = e.target.value;
|
|
224
|
-
setInputValue(raw);
|
|
225
|
-
// Remove non-digits for normalization
|
|
226
|
-
const digits = raw.replace(/\D/g, "");
|
|
227
|
-
const { year, month, day } = parsePartialDate(raw);
|
|
228
|
-
console.log(`the year, month and day `, year, month, day);
|
|
229
|
-
if (digits.length === 8) {
|
|
230
|
-
// Only parse if we have exactly 8 digits
|
|
231
|
-
const year = digits.slice(0, 4);
|
|
232
|
-
const month = digits.slice(4, 6);
|
|
233
|
-
const day = digits.slice(6, 8);
|
|
234
|
-
const dateStr = `${year}-${month}-${day}`;
|
|
235
|
-
const dateObj = new Date(dateStr + "T00:00:00");
|
|
236
|
-
if (!isNaN(dateObj.getTime())) {
|
|
237
|
-
setSelectedDate(dateObj);
|
|
238
|
-
setInputValue(dateObj ? dateObj.toISOString().slice(0, 10) : "");
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
setSelectedDate(null);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
else if (/^(\d{4}[-\/]?(0?[1-9]|1[0-2])[-\/]?(0?[1-9]|[12]\d|3[01]))$/.test(raw)) {
|
|
245
|
-
// Also allow YYYY-MM-DD or YYYY/MM/DD
|
|
246
|
-
const dateObj = new Date(raw.replace(/\//g, "-") + "T00:00:00");
|
|
247
|
-
if (!isNaN(dateObj.getTime())) {
|
|
248
|
-
setSelectedDate(dateObj);
|
|
249
|
-
setInputValue(dateObj ? dateObj.toISOString().slice(0, 10) : "");
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
setSelectedDate(null);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
// Not a full date, don't parse
|
|
257
|
-
setSelectedDate(null);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
// const handleBlurredOut = (e: React.FocusEvent<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement>) => {
|
|
261
|
-
// let newValue = (e?.target as HTMLInputElement)?.value;
|
|
262
|
-
// const match = newValue.trim().match(
|
|
263
|
-
// /^(\d{4}[-\/]?(0?[1-9]|1[0-2])[-\/]?(0?[1-9]|[12]\d|3[01]))$/
|
|
264
|
-
// );
|
|
265
|
-
// if (
|
|
266
|
-
// match
|
|
267
|
-
// ) {
|
|
268
|
-
// newValue = newValue.replace(/\//g, '-')
|
|
269
|
-
// console.log(`handle blur happened: `, newValue);
|
|
270
|
-
// const typedDate = new Date(newValue + "T00:00:00");
|
|
271
|
-
// handleBlur({ target: { value: newValue } });
|
|
272
|
-
// setSelectedDate(typedDate);
|
|
273
|
-
// } else if (newValue === "") {
|
|
274
|
-
// handleBlur({ target: { value: "" } });
|
|
275
|
-
// setSelectedDate(null);
|
|
276
|
-
// } else {
|
|
277
|
-
// console.log("Invalid date format attempted to be submitted.");
|
|
278
|
-
// }
|
|
279
|
-
// }
|
|
280
|
-
// const handleBlurredOut = () => {
|
|
281
|
-
// console.log(`BLURRING (the inputVlaue!! `, inputValue);
|
|
282
|
-
// }
|
|
283
|
-
// const handleBlurredOut = (e: React.FocusEventHandler<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement>) => {
|
|
284
128
|
const handleBlurredOut = (e) => {
|
|
285
129
|
let newValue = e?.target?.value;
|
|
286
|
-
console.log(`the NEW VALUE COMING IN: `, newValue);
|
|
287
130
|
const match = newValue.trim().match(/^\d{4}[-\/](0[1-9]|1[0-2])[-\/](0[1-9]|[12]\d|3[01])$/);
|
|
288
131
|
if (match) {
|
|
289
132
|
newValue = newValue.replace(/\//g, '-');
|
|
290
|
-
console.log(`the new value being typed: `, newValue);
|
|
291
133
|
const typedDate = new Date(newValue).toISOString().split("T")[0];
|
|
292
|
-
console.log(`the typed date??? `, typedDate);
|
|
293
134
|
handleBlur({ target: { value: typedDate } });
|
|
294
|
-
// setSelectedDate(typedDate);
|
|
295
135
|
}
|
|
296
136
|
else {
|
|
297
|
-
console.log(`invalid date format: `, newValue);
|
|
298
|
-
console.log("Invalid date format");
|
|
299
137
|
setOpenToast(true);
|
|
300
138
|
setToastInfo({
|
|
301
139
|
title: "Date Format Error",
|
|
@@ -308,14 +146,12 @@ export const DateFieldPicker = ({ colorPalette, handleBlur, handleChange, handle
|
|
|
308
146
|
React.createElement(DatePicker, { placeholderText: placeholder, selected: selectedDate, customInput: React.createElement(KeyboardEventHandler, { onEnter: (e) => {
|
|
309
147
|
handleBlurredOut(e);
|
|
310
148
|
} }), onChange: (date, e) => {
|
|
311
|
-
console.log(`the e.type: `, e?.type);
|
|
312
149
|
if (date && e?.type === "click") {
|
|
313
150
|
const year = date.getFullYear();
|
|
314
151
|
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
315
152
|
const day = String(date.getDate()).padStart(2, "0");
|
|
316
153
|
const dateString = `${year}-${month}-${day}`;
|
|
317
154
|
handleClickAndSubmit({ target: { value: dateString } });
|
|
318
|
-
// setInputValue(dateString);
|
|
319
155
|
setSelectedDate(date);
|
|
320
156
|
if (datePickerRef.current)
|
|
321
157
|
datePickerRef.current.setOpen(false);
|
|
@@ -326,19 +162,11 @@ export const DateFieldPicker = ({ colorPalette, handleBlur, handleChange, handle
|
|
|
326
162
|
if (match) {
|
|
327
163
|
newValue = newValue.replace(/\//g, '-');
|
|
328
164
|
const typedDate = new Date(newValue + "T00:00:00");
|
|
329
|
-
// setInputValue(newValue);
|
|
330
|
-
// handleChange({ target: { value: newValue } });
|
|
331
165
|
setSelectedDate(typedDate);
|
|
332
166
|
}
|
|
333
167
|
else if (newValue === "") {
|
|
334
|
-
// handleChange({ target: { value: "" } });
|
|
335
|
-
// setInputValue("");
|
|
336
168
|
setSelectedDate(null);
|
|
337
169
|
}
|
|
338
|
-
// else {
|
|
339
|
-
// console.log(`invalid date format in THE ONCHANGE : `, newValue);
|
|
340
|
-
// console.log("Invalid date format");
|
|
341
|
-
// }
|
|
342
170
|
}
|
|
343
171
|
}, onBlur: handleBlurredOut, ref: datePickerRef, dateFormat: "yyyy-MM-dd" }),
|
|
344
172
|
React.createElement(DateIcon, { colorpalette: colorPalette, onClick: handleIconClick, morehorizon: moreHorizon ? "true" : "false" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateField.js","sourceRoot":"","sources":["../../../lib/Atoms/DateField/DateField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,4CAA4C,CAAC;AAEpD,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAGjC;UACQ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO;eAC1C,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO;;;iBAGnD,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO;;;;;;;GAO/D,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CACrB,WAAW,KAAK,MAAM,IAAI,yCAAyC;CACpE,CAAC;AAEF,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAA0B;;eAEhD,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO;;;;;;;kBAOlD,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO;gBACnD,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO;;;;;;;;;kBASnD,CAAC,EAAE,YAAY,EAAE,EAAE,E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IAAI,WAAW,CACP,CACrB,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.29-alpha.0",
|
|
4
4
|
"description": " A storybook component library for FactorEarth",
|
|
5
5
|
"author": "madtrx <marlin.makori@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/FactorEarth/RecordMiddleware#readme",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b83445c6fe41c938747d7ebbb46ccfa0c078e251",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|