@povio/ui 3.2.0 → 3.2.2-rc.1
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/components/inputs/Checkbox/Checkbox.d.ts +4 -2
- package/dist/components/inputs/Checkbox/Checkbox.js +83 -69
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +23 -0
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +363 -0
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +62 -0
- package/dist/components/inputs/Checkbox/checkbox.cva.js +103 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +1 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +1 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DateField.js +167 -149
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +136 -132
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +1 -1
- package/dist/components/inputs/Input/TextArea/TextArea.js +2 -2
- package/dist/components/inputs/Input/TextInput/TextInput.js +1 -1
- package/dist/components/inputs/Input/shared/InputContent.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.d.ts +1 -0
- package/dist/components/inputs/Inputs/InputItem.js +2 -0
- package/dist/components/inputs/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectInput.js +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.js +2 -2
- package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
- package/dist/config/uiOverrides.context.d.ts +3 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -7
- package/dist/tw-ui-plugin.js +2 -0
- package/package.json +5 -5
|
@@ -5,22 +5,23 @@ import { Fragment, jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { useEffect, useImperativeHandle, useRef } from "react";
|
|
7
7
|
import { useDateField, useLocale } from "react-aria";
|
|
8
|
-
import { createCalendar } from "@internationalized/date";
|
|
8
|
+
import { CalendarDate, CalendarDateTime, createCalendar } from "@internationalized/date";
|
|
9
9
|
import { DateTime } from "luxon";
|
|
10
10
|
import { useDateFieldState } from "react-stately";
|
|
11
11
|
//#region src/components/inputs/DateTime/shared/DateField.tsx
|
|
12
12
|
var omitNullValue = ({ value: _value, ...props }) => props;
|
|
13
13
|
var DateField = (t0) => {
|
|
14
|
-
const $ = c(
|
|
15
|
-
const { ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity: t1, isTimeOptional: t2, format, timeZone, segmentGroup, ...props } = t0;
|
|
14
|
+
const $ = c(65);
|
|
15
|
+
const { ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity: t1, isTimeOptional: t2, format, timeZone, segmentGroup, shouldAutoFixYear: t3, ...props } = t0;
|
|
16
16
|
const dateGranularity = t1 === void 0 ? "day" : t1;
|
|
17
17
|
const isTimeOptional = t2 === void 0 ? false : t2;
|
|
18
|
+
const shouldAutoFixYear = t3 === void 0 ? false : t3;
|
|
18
19
|
const { locale } = useLocale();
|
|
19
20
|
const previousValueRef = useRef(props.value);
|
|
20
21
|
const dateFieldProps = props.value == null ? omitNullValue(props) : props;
|
|
21
|
-
let
|
|
22
|
+
let t4;
|
|
22
23
|
if ($[0] !== dateFieldProps || $[1] !== disableManualEntry || $[2] !== isDisabled || $[3] !== locale) {
|
|
23
|
-
|
|
24
|
+
t4 = {
|
|
24
25
|
...dateFieldProps,
|
|
25
26
|
isDisabled,
|
|
26
27
|
isReadOnly: disableManualEntry,
|
|
@@ -31,13 +32,13 @@ var DateField = (t0) => {
|
|
|
31
32
|
$[1] = disableManualEntry;
|
|
32
33
|
$[2] = isDisabled;
|
|
33
34
|
$[3] = locale;
|
|
34
|
-
$[4] =
|
|
35
|
-
} else
|
|
36
|
-
const state = useDateFieldState(
|
|
35
|
+
$[4] = t4;
|
|
36
|
+
} else t4 = $[4];
|
|
37
|
+
const state = useDateFieldState(t4);
|
|
37
38
|
const dataFieldRef = useRef(null);
|
|
38
|
-
let
|
|
39
|
+
let t5;
|
|
39
40
|
if ($[5] !== dateFieldProps || $[6] !== disableManualEntry || $[7] !== isDisabled) {
|
|
40
|
-
|
|
41
|
+
t5 = {
|
|
41
42
|
...dateFieldProps,
|
|
42
43
|
isDisabled,
|
|
43
44
|
isReadOnly: disableManualEntry
|
|
@@ -45,24 +46,24 @@ var DateField = (t0) => {
|
|
|
45
46
|
$[5] = dateFieldProps;
|
|
46
47
|
$[6] = disableManualEntry;
|
|
47
48
|
$[7] = isDisabled;
|
|
48
|
-
$[8] =
|
|
49
|
-
} else
|
|
50
|
-
const { fieldProps } = useDateField(
|
|
51
|
-
let
|
|
49
|
+
$[8] = t5;
|
|
50
|
+
} else t5 = $[8];
|
|
51
|
+
const { fieldProps } = useDateField(t5, state, dataFieldRef);
|
|
52
|
+
let t6;
|
|
52
53
|
if ($[9] !== dateGranularity) {
|
|
53
|
-
|
|
54
|
+
t6 = (segmentType) => {
|
|
54
55
|
if (dateGranularity === "day") return true;
|
|
55
56
|
if (dateGranularity === "month") return segmentType !== "day";
|
|
56
57
|
if (dateGranularity === "year") return segmentType === "year";
|
|
57
58
|
return true;
|
|
58
59
|
};
|
|
59
60
|
$[9] = dateGranularity;
|
|
60
|
-
$[10] =
|
|
61
|
-
} else
|
|
62
|
-
const isSegmentVisible =
|
|
63
|
-
let
|
|
61
|
+
$[10] = t6;
|
|
62
|
+
} else t6 = $[10];
|
|
63
|
+
const isSegmentVisible = t6;
|
|
64
|
+
let t7;
|
|
64
65
|
if ($[11] !== isSegmentVisible || $[12] !== state.segments) {
|
|
65
|
-
|
|
66
|
+
t7 = () => {
|
|
66
67
|
const segments = [];
|
|
67
68
|
for (const segment of state.segments) if (segment.type !== "literal") {
|
|
68
69
|
if (isSegmentVisible(segment.type)) segments.push(segment);
|
|
@@ -71,24 +72,25 @@ var DateField = (t0) => {
|
|
|
71
72
|
};
|
|
72
73
|
$[11] = isSegmentVisible;
|
|
73
74
|
$[12] = state.segments;
|
|
74
|
-
$[13] =
|
|
75
|
-
} else
|
|
76
|
-
const getSegmentsToRender =
|
|
77
|
-
let
|
|
75
|
+
$[13] = t7;
|
|
76
|
+
} else t7 = $[13];
|
|
77
|
+
const getSegmentsToRender = t7;
|
|
78
|
+
let t8;
|
|
78
79
|
if ($[14] !== getSegmentsToRender) {
|
|
79
|
-
|
|
80
|
+
t8 = getSegmentsToRender();
|
|
80
81
|
$[14] = getSegmentsToRender;
|
|
81
|
-
$[15] =
|
|
82
|
-
} else
|
|
83
|
-
const segmentsToRender =
|
|
84
|
-
|
|
82
|
+
$[15] = t8;
|
|
83
|
+
} else t8 = $[15];
|
|
84
|
+
const segmentsToRender = t8;
|
|
85
|
+
const getSegmentNumber = _temp;
|
|
86
|
+
let t9;
|
|
85
87
|
if ($[16] !== isTimeOptional || $[17] !== props || $[18] !== state) {
|
|
86
|
-
|
|
87
|
-
const monthSegment = state.segments.find(
|
|
88
|
-
const daySegment = state.segments.find(
|
|
89
|
-
const yearSegment = state.segments.find(
|
|
90
|
-
const hourSegment = state.segments.find(
|
|
91
|
-
const minuteSegment = state.segments.find(
|
|
88
|
+
t9 = () => {
|
|
89
|
+
const monthSegment = state.segments.find(_temp2);
|
|
90
|
+
const daySegment = state.segments.find(_temp3);
|
|
91
|
+
const yearSegment = state.segments.find(_temp4);
|
|
92
|
+
const hourSegment = state.segments.find(_temp5);
|
|
93
|
+
const minuteSegment = state.segments.find(_temp6);
|
|
92
94
|
const isMonthFilled = monthSegment && !monthSegment.isPlaceholder;
|
|
93
95
|
const isDayFilled = daySegment && !daySegment.isPlaceholder;
|
|
94
96
|
const isYearFilled = yearSegment && !yearSegment.isPlaceholder && yearSegment.text?.length > 0;
|
|
@@ -116,19 +118,27 @@ var DateField = (t0) => {
|
|
|
116
118
|
let year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
117
119
|
if (yearSegment?.text?.length && yearSegment?.text?.length === 2) year = parseInt(`20${yearSegment?.text}`);
|
|
118
120
|
state.setSegment("year", year);
|
|
119
|
-
|
|
121
|
+
let correctedValue = null;
|
|
122
|
+
const month = getSegmentNumber(monthSegment);
|
|
123
|
+
const day = getSegmentNumber(daySegment);
|
|
124
|
+
const hasDateSegments = month !== null && day !== null;
|
|
125
|
+
const hasTimeSegment = !!(hourSegment || minuteSegment);
|
|
126
|
+
if (state.value) correctedValue = state.value.set({ year });
|
|
127
|
+
else if (hasDateSegments && hasTimeSegment) correctedValue = new CalendarDateTime(year, month, day, getSegmentNumber(hourSegment) ?? 0, getSegmentNumber(minuteSegment) ?? 0);
|
|
128
|
+
else if (hasDateSegments) correctedValue = new CalendarDate(year, month, day);
|
|
120
129
|
if (correctedValue) props.onChange?.(correctedValue);
|
|
121
130
|
}
|
|
122
131
|
};
|
|
123
132
|
$[16] = isTimeOptional;
|
|
124
133
|
$[17] = props;
|
|
125
134
|
$[18] = state;
|
|
126
|
-
$[19] =
|
|
127
|
-
} else
|
|
128
|
-
const autoFixYear =
|
|
129
|
-
let
|
|
130
|
-
if ($[20] !==
|
|
131
|
-
|
|
135
|
+
$[19] = t9;
|
|
136
|
+
} else t9 = $[19];
|
|
137
|
+
const autoFixYear = t9;
|
|
138
|
+
let t10;
|
|
139
|
+
if ($[20] !== autoFixYear || $[21] !== fieldProps || $[22] !== props || $[23] !== shouldAutoFixYear || $[24] !== state) {
|
|
140
|
+
t10 = (e) => {
|
|
141
|
+
if (shouldAutoFixYear) autoFixYear();
|
|
132
142
|
fieldProps.onBlur?.(e);
|
|
133
143
|
if (!state.value) return;
|
|
134
144
|
const currentValue = state.value;
|
|
@@ -142,62 +152,64 @@ var DateField = (t0) => {
|
|
|
142
152
|
}
|
|
143
153
|
}
|
|
144
154
|
};
|
|
145
|
-
$[20] =
|
|
146
|
-
$[21] =
|
|
147
|
-
$[22] =
|
|
148
|
-
$[23] =
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
$[20] = autoFixYear;
|
|
156
|
+
$[21] = fieldProps;
|
|
157
|
+
$[22] = props;
|
|
158
|
+
$[23] = shouldAutoFixYear;
|
|
159
|
+
$[24] = state;
|
|
160
|
+
$[25] = t10;
|
|
161
|
+
} else t10 = $[25];
|
|
162
|
+
const handleBlur = t10;
|
|
163
|
+
let t11;
|
|
164
|
+
if ($[26] !== autoFixYear || $[27] !== state) {
|
|
165
|
+
t11 = () => ({
|
|
154
166
|
clearField: () => {
|
|
155
167
|
state.setValue(null);
|
|
156
168
|
},
|
|
157
169
|
autoFixYear
|
|
158
170
|
});
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
} else
|
|
163
|
-
useImperativeHandle(ref,
|
|
164
|
-
let
|
|
165
|
-
if ($[
|
|
166
|
-
|
|
171
|
+
$[26] = autoFixYear;
|
|
172
|
+
$[27] = state;
|
|
173
|
+
$[28] = t11;
|
|
174
|
+
} else t11 = $[28];
|
|
175
|
+
useImperativeHandle(ref, t11);
|
|
176
|
+
let t12;
|
|
177
|
+
if ($[29] !== previousValueRef || $[30] !== props.value || $[31] !== state) {
|
|
178
|
+
t12 = () => {
|
|
167
179
|
if (previousValueRef.current != null && props.value == null && state.value !== null) state.setValue(null);
|
|
168
180
|
previousValueRef.current = props.value;
|
|
169
181
|
};
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
} else
|
|
175
|
-
let t12;
|
|
176
|
-
if ($[31] !== props.value || $[32] !== state) {
|
|
177
|
-
t12 = [props.value, state];
|
|
178
|
-
$[31] = props.value;
|
|
179
|
-
$[32] = state;
|
|
180
|
-
$[33] = t12;
|
|
181
|
-
} else t12 = $[33];
|
|
182
|
-
useEffect(t11, t12);
|
|
182
|
+
$[29] = previousValueRef;
|
|
183
|
+
$[30] = props.value;
|
|
184
|
+
$[31] = state;
|
|
185
|
+
$[32] = t12;
|
|
186
|
+
} else t12 = $[32];
|
|
183
187
|
let t13;
|
|
188
|
+
if ($[33] !== props.value || $[34] !== state) {
|
|
189
|
+
t13 = [props.value, state];
|
|
190
|
+
$[33] = props.value;
|
|
191
|
+
$[34] = state;
|
|
192
|
+
$[35] = t13;
|
|
193
|
+
} else t13 = $[35];
|
|
194
|
+
useEffect(t12, t13);
|
|
184
195
|
let t14;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
196
|
+
let t15;
|
|
197
|
+
if ($[36] !== onClearChange || $[37] !== state.segments) {
|
|
198
|
+
t14 = () => {
|
|
199
|
+
onClearChange?.(state.segments.some(_temp7));
|
|
188
200
|
};
|
|
189
|
-
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
201
|
+
t15 = [state.segments, onClearChange];
|
|
202
|
+
$[36] = onClearChange;
|
|
203
|
+
$[37] = state.segments;
|
|
204
|
+
$[38] = t14;
|
|
205
|
+
$[39] = t15;
|
|
194
206
|
} else {
|
|
195
|
-
|
|
196
|
-
|
|
207
|
+
t14 = $[38];
|
|
208
|
+
t15 = $[39];
|
|
197
209
|
}
|
|
198
|
-
useEffect(
|
|
199
|
-
let
|
|
200
|
-
if ($[
|
|
210
|
+
useEffect(t14, t15);
|
|
211
|
+
let t16;
|
|
212
|
+
if ($[40] !== disableManualEntry || $[41] !== format || $[42] !== state.value || $[43] !== timeZone) {
|
|
201
213
|
const getFormattedDisplayValue = () => {
|
|
202
214
|
if (!disableManualEntry) return null;
|
|
203
215
|
if (!format) return null;
|
|
@@ -207,101 +219,107 @@ var DateField = (t0) => {
|
|
|
207
219
|
if (!formattedDate.isValid) return null;
|
|
208
220
|
return formattedDate.toFormat(format);
|
|
209
221
|
};
|
|
210
|
-
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
} else
|
|
217
|
-
const formattedDisplayValue =
|
|
218
|
-
let
|
|
219
|
-
if ($[
|
|
220
|
-
|
|
221
|
-
segment:
|
|
222
|
+
t16 = getFormattedDisplayValue();
|
|
223
|
+
$[40] = disableManualEntry;
|
|
224
|
+
$[41] = format;
|
|
225
|
+
$[42] = state.value;
|
|
226
|
+
$[43] = timeZone;
|
|
227
|
+
$[44] = t16;
|
|
228
|
+
} else t16 = $[44];
|
|
229
|
+
const formattedDisplayValue = t16;
|
|
230
|
+
let t17;
|
|
231
|
+
if ($[45] !== hidePlaceholder || $[46] !== isDisabled || $[47] !== segmentGroup || $[48] !== segmentsToRender || $[49] !== state) {
|
|
232
|
+
t17 = /* @__PURE__ */ jsx(Fragment, { children: segmentsToRender.map((segment_7, i) => /* @__PURE__ */ jsx(DateSegmentItem, {
|
|
233
|
+
segment: segment_7,
|
|
222
234
|
segmentGroup,
|
|
223
235
|
state,
|
|
224
236
|
isDisabled,
|
|
225
237
|
hidePlaceholder
|
|
226
238
|
}, i)) });
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
} else
|
|
234
|
-
let fieldContent =
|
|
239
|
+
$[45] = hidePlaceholder;
|
|
240
|
+
$[46] = isDisabled;
|
|
241
|
+
$[47] = segmentGroup;
|
|
242
|
+
$[48] = segmentsToRender;
|
|
243
|
+
$[49] = state;
|
|
244
|
+
$[50] = t17;
|
|
245
|
+
} else t17 = $[50];
|
|
246
|
+
let fieldContent = t17;
|
|
235
247
|
if (formattedDisplayValue) {
|
|
236
|
-
const
|
|
237
|
-
let t18;
|
|
238
|
-
if ($[49] !== t17) {
|
|
239
|
-
t18 = clsx("select-none", t17);
|
|
240
|
-
$[49] = t17;
|
|
241
|
-
$[50] = t18;
|
|
242
|
-
} else t18 = $[50];
|
|
248
|
+
const t18 = isDisabled && "text-interactive-text-secondary-disabled";
|
|
243
249
|
let t19;
|
|
244
|
-
if ($[51] !==
|
|
245
|
-
t19 =
|
|
246
|
-
|
|
250
|
+
if ($[51] !== t18) {
|
|
251
|
+
t19 = clsx("select-none", t18);
|
|
252
|
+
$[51] = t18;
|
|
253
|
+
$[52] = t19;
|
|
254
|
+
} else t19 = $[52];
|
|
255
|
+
let t20;
|
|
256
|
+
if ($[53] !== formattedDisplayValue || $[54] !== t19) {
|
|
257
|
+
t20 = /* @__PURE__ */ jsx("span", {
|
|
258
|
+
className: t19,
|
|
247
259
|
children: formattedDisplayValue
|
|
248
260
|
});
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
$[
|
|
252
|
-
} else
|
|
253
|
-
fieldContent =
|
|
261
|
+
$[53] = formattedDisplayValue;
|
|
262
|
+
$[54] = t19;
|
|
263
|
+
$[55] = t20;
|
|
264
|
+
} else t20 = $[55];
|
|
265
|
+
fieldContent = t20;
|
|
254
266
|
}
|
|
255
|
-
const
|
|
256
|
-
let t18;
|
|
257
|
-
if ($[54] !== t17) {
|
|
258
|
-
t18 = clsx("relative w-full", t17);
|
|
259
|
-
$[54] = t17;
|
|
260
|
-
$[55] = t18;
|
|
261
|
-
} else t18 = $[55];
|
|
267
|
+
const t18 = disableManualEntry && "pointer-events-none";
|
|
262
268
|
let t19;
|
|
263
|
-
if ($[56] !==
|
|
264
|
-
t19 =
|
|
265
|
-
|
|
266
|
-
children: fieldContent
|
|
267
|
-
});
|
|
268
|
-
$[56] = fieldContent;
|
|
269
|
+
if ($[56] !== t18) {
|
|
270
|
+
t19 = clsx("relative w-full", t18);
|
|
271
|
+
$[56] = t18;
|
|
269
272
|
$[57] = t19;
|
|
270
273
|
} else t19 = $[57];
|
|
271
274
|
let t20;
|
|
272
|
-
if ($[58] !==
|
|
275
|
+
if ($[58] !== fieldContent) {
|
|
273
276
|
t20 = /* @__PURE__ */ jsx("div", {
|
|
277
|
+
className: "flex",
|
|
278
|
+
children: fieldContent
|
|
279
|
+
});
|
|
280
|
+
$[58] = fieldContent;
|
|
281
|
+
$[59] = t20;
|
|
282
|
+
} else t20 = $[59];
|
|
283
|
+
let t21;
|
|
284
|
+
if ($[60] !== fieldProps || $[61] !== handleBlur || $[62] !== t19 || $[63] !== t20) {
|
|
285
|
+
t21 = /* @__PURE__ */ jsx("div", {
|
|
274
286
|
...fieldProps,
|
|
275
287
|
ref: dataFieldRef,
|
|
276
288
|
onBlur: handleBlur,
|
|
277
|
-
className:
|
|
278
|
-
children:
|
|
289
|
+
className: t19,
|
|
290
|
+
children: t20
|
|
279
291
|
});
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
} else
|
|
286
|
-
return
|
|
292
|
+
$[60] = fieldProps;
|
|
293
|
+
$[61] = handleBlur;
|
|
294
|
+
$[62] = t19;
|
|
295
|
+
$[63] = t20;
|
|
296
|
+
$[64] = t21;
|
|
297
|
+
} else t21 = $[64];
|
|
298
|
+
return t21;
|
|
287
299
|
};
|
|
288
300
|
function _temp(segment_0) {
|
|
289
|
-
|
|
301
|
+
if (!segment_0) return null;
|
|
302
|
+
if (typeof segment_0.value === "number" && !Number.isNaN(segment_0.value)) return segment_0.value;
|
|
303
|
+
const parsedValue = parseInt(segment_0.text ?? "");
|
|
304
|
+
return Number.isNaN(parsedValue) ? null : parsedValue;
|
|
290
305
|
}
|
|
291
306
|
function _temp2(segment_1) {
|
|
292
|
-
return segment_1.type === "
|
|
307
|
+
return segment_1.type === "month";
|
|
293
308
|
}
|
|
294
309
|
function _temp3(segment_2) {
|
|
295
|
-
return segment_2.type === "
|
|
310
|
+
return segment_2.type === "day";
|
|
296
311
|
}
|
|
297
312
|
function _temp4(segment_3) {
|
|
298
|
-
return segment_3.type === "
|
|
313
|
+
return segment_3.type === "year";
|
|
299
314
|
}
|
|
300
315
|
function _temp5(segment_4) {
|
|
301
|
-
return segment_4.type === "
|
|
316
|
+
return segment_4.type === "hour";
|
|
302
317
|
}
|
|
303
318
|
function _temp6(segment_5) {
|
|
304
|
-
return segment_5.type
|
|
319
|
+
return segment_5.type === "minute";
|
|
320
|
+
}
|
|
321
|
+
function _temp7(segment_6) {
|
|
322
|
+
return segment_6.type !== "literal" && segment_6.isPlaceholder === false;
|
|
305
323
|
}
|
|
306
324
|
//#endregion
|
|
307
325
|
export { DateField };
|