@lazerlen/legend-calendar 1.2.0 → 1.4.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.
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-test.log +91 -91
- package/dist/index.d.mts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +216 -140
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +216 -140
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/CalendarItemDay.tsx +22 -0
- package/src/components/CalendarList.stories.tsx +51 -0
- package/src/components/CalendarList.tsx +41 -2
package/dist/index.mjs
CHANGED
|
@@ -759,7 +759,7 @@ var CalendarItemDay = /* @__PURE__ */ memo(function CalendarItemDay2(t0) {
|
|
|
759
759
|
return t7;
|
|
760
760
|
});
|
|
761
761
|
var CalendarItemDayContainer = /* @__PURE__ */ memo(function CalendarItemDayContainer2(t0) {
|
|
762
|
-
const $ = _c3(
|
|
762
|
+
const $ = _c3(29);
|
|
763
763
|
const {
|
|
764
764
|
children,
|
|
765
765
|
isStartOfWeek,
|
|
@@ -826,29 +826,65 @@ var CalendarItemDayContainer = /* @__PURE__ */ memo(function CalendarItemDayCont
|
|
|
826
826
|
}
|
|
827
827
|
const activeDayFiller = t5;
|
|
828
828
|
let t6;
|
|
829
|
-
if ($[15] !==
|
|
830
|
-
t6 =
|
|
829
|
+
if ($[15] !== metadata || $[16] !== theme) {
|
|
830
|
+
t6 = typeof (theme == null ? void 0 : theme.activeDayRangeBackground) === "function" && metadata ? theme.activeDayRangeBackground(metadata) : theme == null ? void 0 : theme.activeDayRangeBackground;
|
|
831
|
+
$[15] = metadata;
|
|
832
|
+
$[16] = theme;
|
|
833
|
+
$[17] = t6;
|
|
834
|
+
} else {
|
|
835
|
+
t6 = $[17];
|
|
836
|
+
}
|
|
837
|
+
const rangeBackgroundTheme = t6;
|
|
838
|
+
let t7;
|
|
839
|
+
if ($[18] !== rangeBackgroundTheme) {
|
|
840
|
+
t7 = rangeBackgroundTheme ? __spreadValues({
|
|
841
|
+
position: "absolute",
|
|
842
|
+
top: 0,
|
|
843
|
+
bottom: 0,
|
|
844
|
+
left: 0,
|
|
845
|
+
right: 0
|
|
846
|
+
}, rangeBackgroundTheme) : null;
|
|
847
|
+
$[18] = rangeBackgroundTheme;
|
|
848
|
+
$[19] = t7;
|
|
849
|
+
} else {
|
|
850
|
+
t7 = $[19];
|
|
851
|
+
}
|
|
852
|
+
const rangeBackground = t7;
|
|
853
|
+
let t8;
|
|
854
|
+
if ($[20] !== rangeBackground) {
|
|
855
|
+
t8 = rangeBackground ? /* @__PURE__ */ _jsx2(View, {
|
|
856
|
+
style: rangeBackground
|
|
857
|
+
}) : null;
|
|
858
|
+
$[20] = rangeBackground;
|
|
859
|
+
$[21] = t8;
|
|
860
|
+
} else {
|
|
861
|
+
t8 = $[21];
|
|
862
|
+
}
|
|
863
|
+
let t9;
|
|
864
|
+
if ($[22] !== activeDayFiller) {
|
|
865
|
+
t9 = activeDayFiller ? /* @__PURE__ */ _jsx2(View, {
|
|
831
866
|
style: activeDayFiller
|
|
832
867
|
}) : null;
|
|
833
|
-
$[
|
|
834
|
-
$[
|
|
868
|
+
$[22] = activeDayFiller;
|
|
869
|
+
$[23] = t9;
|
|
835
870
|
} else {
|
|
836
|
-
|
|
871
|
+
t9 = $[23];
|
|
837
872
|
}
|
|
838
|
-
let
|
|
839
|
-
if ($[
|
|
840
|
-
|
|
873
|
+
let t10;
|
|
874
|
+
if ($[24] !== children || $[25] !== spacerStyles || $[26] !== t8 || $[27] !== t9) {
|
|
875
|
+
t10 = /* @__PURE__ */ _jsxs(View, {
|
|
841
876
|
style: spacerStyles,
|
|
842
|
-
children: [
|
|
877
|
+
children: [t8, t9, children]
|
|
843
878
|
});
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
$[
|
|
847
|
-
$[
|
|
879
|
+
$[24] = children;
|
|
880
|
+
$[25] = spacerStyles;
|
|
881
|
+
$[26] = t8;
|
|
882
|
+
$[27] = t9;
|
|
883
|
+
$[28] = t10;
|
|
848
884
|
} else {
|
|
849
|
-
|
|
885
|
+
t10 = $[28];
|
|
850
886
|
}
|
|
851
|
-
return
|
|
887
|
+
return t10;
|
|
852
888
|
});
|
|
853
889
|
var CalendarItemDayWithContainer = /* @__PURE__ */ memo(function CalendarItemDayWithContainer2(t0) {
|
|
854
890
|
const $ = _c3(14);
|
|
@@ -1955,7 +1991,7 @@ import { jsx as _jsx10 } from "react/jsx-runtime";
|
|
|
1955
1991
|
var LegendList = LegendListBase;
|
|
1956
1992
|
var keyExtractor = (month) => month.id;
|
|
1957
1993
|
function CalendarList(t0) {
|
|
1958
|
-
const $ = _c12(
|
|
1994
|
+
const $ = _c12(49);
|
|
1959
1995
|
const _a = t0, {
|
|
1960
1996
|
ref
|
|
1961
1997
|
} = _a, props = __objRest(_a, [
|
|
@@ -1963,23 +1999,25 @@ function CalendarList(t0) {
|
|
|
1963
1999
|
]);
|
|
1964
2000
|
const _b = props, {
|
|
1965
2001
|
calendarInitialMonthId,
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
2002
|
+
calendarInitialScrollToActiveRange: t1,
|
|
2003
|
+
calendarPastScrollRangeInMonths: t2,
|
|
2004
|
+
calendarFutureScrollRangeInMonths: t3,
|
|
2005
|
+
calendarFirstDayOfWeek: t4,
|
|
1969
2006
|
calendarFormatLocale,
|
|
1970
|
-
calendarSpacing:
|
|
2007
|
+
calendarSpacing: t5,
|
|
1971
2008
|
calendarRowHorizontalSpacing,
|
|
1972
|
-
calendarRowVerticalSpacing:
|
|
1973
|
-
calendarMonthHeaderHeight:
|
|
1974
|
-
calendarDayHeight:
|
|
1975
|
-
calendarWeekHeaderHeight:
|
|
1976
|
-
calendarAdditionalHeight:
|
|
2009
|
+
calendarRowVerticalSpacing: t6,
|
|
2010
|
+
calendarMonthHeaderHeight: t7,
|
|
2011
|
+
calendarDayHeight: t8,
|
|
2012
|
+
calendarWeekHeaderHeight: t9,
|
|
2013
|
+
calendarAdditionalHeight: t10,
|
|
1977
2014
|
calendarColorScheme,
|
|
1978
2015
|
theme,
|
|
1979
2016
|
onEndReached,
|
|
1980
2017
|
onStartReached
|
|
1981
2018
|
} = _b, otherProps = __objRest(_b, [
|
|
1982
2019
|
"calendarInitialMonthId",
|
|
2020
|
+
"calendarInitialScrollToActiveRange",
|
|
1983
2021
|
"calendarPastScrollRangeInMonths",
|
|
1984
2022
|
"calendarFutureScrollRangeInMonths",
|
|
1985
2023
|
"calendarFirstDayOfWeek",
|
|
@@ -1996,15 +2034,16 @@ function CalendarList(t0) {
|
|
|
1996
2034
|
"onEndReached",
|
|
1997
2035
|
"onStartReached"
|
|
1998
2036
|
]);
|
|
1999
|
-
const
|
|
2000
|
-
const
|
|
2001
|
-
const
|
|
2002
|
-
const
|
|
2003
|
-
const
|
|
2004
|
-
const
|
|
2005
|
-
const
|
|
2006
|
-
const
|
|
2007
|
-
const
|
|
2037
|
+
const calendarInitialScrollToActiveRange = t1 === void 0 ? true : t1;
|
|
2038
|
+
const calendarPastScrollRangeInMonths = t2 === void 0 ? 12 : t2;
|
|
2039
|
+
const calendarFutureScrollRangeInMonths = t3 === void 0 ? 12 : t3;
|
|
2040
|
+
const calendarFirstDayOfWeek = t4 === void 0 ? "sunday" : t4;
|
|
2041
|
+
const calendarSpacing = t5 === void 0 ? 20 : t5;
|
|
2042
|
+
const calendarRowVerticalSpacing = t6 === void 0 ? 8 : t6;
|
|
2043
|
+
const calendarMonthHeaderHeight = t7 === void 0 ? 20 : t7;
|
|
2044
|
+
const calendarDayHeight = t8 === void 0 ? 32 : t8;
|
|
2045
|
+
const calendarWeekHeaderHeight = t9 === void 0 ? calendarDayHeight : t9;
|
|
2046
|
+
const calendarAdditionalHeight = t10 === void 0 ? 0 : t10;
|
|
2008
2047
|
const _c14 = otherProps, {
|
|
2009
2048
|
calendarActiveDateRanges,
|
|
2010
2049
|
calendarDisabledDateIds,
|
|
@@ -2065,50 +2104,87 @@ function CalendarList(t0) {
|
|
|
2065
2104
|
calendarMaxDateId,
|
|
2066
2105
|
calendarMinDateId
|
|
2067
2106
|
});
|
|
2068
|
-
|
|
2107
|
+
let computedInitialScrollIndex = initialMonthIndex;
|
|
2108
|
+
if (calendarInitialScrollToActiveRange && calendarActiveDateRanges) {
|
|
2109
|
+
const firstRange = calendarActiveDateRanges[0];
|
|
2110
|
+
if (firstRange == null ? void 0 : firstRange.startId) {
|
|
2111
|
+
let t112;
|
|
2112
|
+
if ($[0] !== firstRange.startId) {
|
|
2113
|
+
const startDate = fromDateId(firstRange.startId);
|
|
2114
|
+
t112 = toDateId(startOfMonth(startDate));
|
|
2115
|
+
$[0] = firstRange.startId;
|
|
2116
|
+
$[1] = t112;
|
|
2117
|
+
} else {
|
|
2118
|
+
t112 = $[1];
|
|
2119
|
+
}
|
|
2120
|
+
const monthId = t112;
|
|
2121
|
+
let t122;
|
|
2122
|
+
if ($[2] !== monthId || $[3] !== monthList) {
|
|
2123
|
+
let t132;
|
|
2124
|
+
if ($[5] !== monthId) {
|
|
2125
|
+
t132 = (month) => month.id === monthId;
|
|
2126
|
+
$[5] = monthId;
|
|
2127
|
+
$[6] = t132;
|
|
2128
|
+
} else {
|
|
2129
|
+
t132 = $[6];
|
|
2130
|
+
}
|
|
2131
|
+
t122 = monthList.findIndex(t132);
|
|
2132
|
+
$[2] = monthId;
|
|
2133
|
+
$[3] = monthList;
|
|
2134
|
+
$[4] = t122;
|
|
2135
|
+
} else {
|
|
2136
|
+
t122 = $[4];
|
|
2137
|
+
}
|
|
2138
|
+
const monthIndex = t122;
|
|
2139
|
+
if (monthIndex !== -1) {
|
|
2140
|
+
computedInitialScrollIndex = monthIndex;
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
const monthListWithCalendarProps = monthList.map((month_0) => __spreadProps(__spreadValues({}, month_0), {
|
|
2069
2145
|
calendarProps
|
|
2070
2146
|
}));
|
|
2071
|
-
let
|
|
2072
|
-
if ($[
|
|
2073
|
-
|
|
2147
|
+
let t11;
|
|
2148
|
+
if ($[7] !== appendMonths || $[8] !== calendarFutureScrollRangeInMonths || $[9] !== onEndReached) {
|
|
2149
|
+
t11 = (info) => {
|
|
2074
2150
|
appendMonths(calendarFutureScrollRangeInMonths);
|
|
2075
2151
|
onEndReached == null ? void 0 : onEndReached(info);
|
|
2076
2152
|
};
|
|
2077
|
-
$[
|
|
2078
|
-
$[
|
|
2079
|
-
$[
|
|
2080
|
-
$[
|
|
2153
|
+
$[7] = appendMonths;
|
|
2154
|
+
$[8] = calendarFutureScrollRangeInMonths;
|
|
2155
|
+
$[9] = onEndReached;
|
|
2156
|
+
$[10] = t11;
|
|
2081
2157
|
} else {
|
|
2082
|
-
|
|
2158
|
+
t11 = $[10];
|
|
2083
2159
|
}
|
|
2084
|
-
const handleOnEndReached =
|
|
2085
|
-
let
|
|
2086
|
-
if ($[
|
|
2087
|
-
|
|
2160
|
+
const handleOnEndReached = t11;
|
|
2161
|
+
let t12;
|
|
2162
|
+
if ($[11] !== calendarPastScrollRangeInMonths || $[12] !== onStartReached || $[13] !== prependMonths) {
|
|
2163
|
+
t12 = (info_0) => {
|
|
2088
2164
|
prependMonths(calendarPastScrollRangeInMonths);
|
|
2089
2165
|
onStartReached == null ? void 0 : onStartReached(info_0);
|
|
2090
2166
|
};
|
|
2091
|
-
$[
|
|
2092
|
-
$[
|
|
2093
|
-
$[
|
|
2094
|
-
$[
|
|
2167
|
+
$[11] = calendarPastScrollRangeInMonths;
|
|
2168
|
+
$[12] = onStartReached;
|
|
2169
|
+
$[13] = prependMonths;
|
|
2170
|
+
$[14] = t12;
|
|
2095
2171
|
} else {
|
|
2096
|
-
|
|
2172
|
+
t12 = $[14];
|
|
2097
2173
|
}
|
|
2098
|
-
const handleOnStartReached =
|
|
2099
|
-
let
|
|
2100
|
-
if ($[
|
|
2101
|
-
|
|
2102
|
-
const
|
|
2174
|
+
const handleOnStartReached = t12;
|
|
2175
|
+
let t13;
|
|
2176
|
+
if ($[15] !== addMissingMonths || $[16] !== calendarAdditionalHeight || $[17] !== calendarDayHeight || $[18] !== calendarMonthHeaderHeight || $[19] !== calendarRowVerticalSpacing || $[20] !== calendarSpacing || $[21] !== calendarWeekHeaderHeight || $[22] !== monthList) {
|
|
2177
|
+
t13 = (date) => {
|
|
2178
|
+
const monthId_0 = toDateId(startOfMonth(date));
|
|
2103
2179
|
let baseMonthList = monthList;
|
|
2104
|
-
let index = baseMonthList.findIndex((
|
|
2180
|
+
let index = baseMonthList.findIndex((month_1) => month_1.id === monthId_0);
|
|
2105
2181
|
if (index === -1) {
|
|
2106
|
-
baseMonthList = addMissingMonths(
|
|
2107
|
-
index = baseMonthList.findIndex((
|
|
2182
|
+
baseMonthList = addMissingMonths(monthId_0);
|
|
2183
|
+
index = baseMonthList.findIndex((month_2) => month_2.id === monthId_0);
|
|
2108
2184
|
}
|
|
2109
|
-
return baseMonthList.slice(0, index).reduce((acc,
|
|
2185
|
+
return baseMonthList.slice(0, index).reduce((acc, month_3) => {
|
|
2110
2186
|
const currentHeight = getHeightForMonth({
|
|
2111
|
-
calendarMonth:
|
|
2187
|
+
calendarMonth: month_3,
|
|
2112
2188
|
calendarSpacing,
|
|
2113
2189
|
calendarDayHeight,
|
|
2114
2190
|
calendarMonthHeaderHeight,
|
|
@@ -2119,30 +2195,30 @@ function CalendarList(t0) {
|
|
|
2119
2195
|
return acc + currentHeight;
|
|
2120
2196
|
}, 0);
|
|
2121
2197
|
};
|
|
2122
|
-
$[
|
|
2123
|
-
$[
|
|
2124
|
-
$[
|
|
2125
|
-
$[
|
|
2126
|
-
$[
|
|
2127
|
-
$[
|
|
2128
|
-
$[
|
|
2129
|
-
$[
|
|
2130
|
-
$[
|
|
2131
|
-
} else {
|
|
2132
|
-
|
|
2133
|
-
}
|
|
2134
|
-
const getScrollOffsetForMonth =
|
|
2198
|
+
$[15] = addMissingMonths;
|
|
2199
|
+
$[16] = calendarAdditionalHeight;
|
|
2200
|
+
$[17] = calendarDayHeight;
|
|
2201
|
+
$[18] = calendarMonthHeaderHeight;
|
|
2202
|
+
$[19] = calendarRowVerticalSpacing;
|
|
2203
|
+
$[20] = calendarSpacing;
|
|
2204
|
+
$[21] = calendarWeekHeaderHeight;
|
|
2205
|
+
$[22] = monthList;
|
|
2206
|
+
$[23] = t13;
|
|
2207
|
+
} else {
|
|
2208
|
+
t13 = $[23];
|
|
2209
|
+
}
|
|
2210
|
+
const getScrollOffsetForMonth = t13;
|
|
2135
2211
|
const legendListRef = useRef(null);
|
|
2136
|
-
let
|
|
2137
|
-
if ($[
|
|
2138
|
-
|
|
2139
|
-
scrollToMonth(date_0, animated,
|
|
2212
|
+
let t14;
|
|
2213
|
+
if ($[24] !== calendarDayHeight || $[25] !== calendarFirstDayOfWeek || $[26] !== calendarRowVerticalSpacing || $[27] !== calendarWeekHeaderHeight || $[28] !== getScrollOffsetForMonth) {
|
|
2214
|
+
t14 = () => ({
|
|
2215
|
+
scrollToMonth(date_0, animated, t152) {
|
|
2140
2216
|
const {
|
|
2141
|
-
additionalOffset:
|
|
2142
|
-
} =
|
|
2217
|
+
additionalOffset: t162
|
|
2218
|
+
} = t152 === void 0 ? {
|
|
2143
2219
|
additionalOffset: 0
|
|
2144
|
-
} :
|
|
2145
|
-
const additionalOffset =
|
|
2220
|
+
} : t152;
|
|
2221
|
+
const additionalOffset = t162 === void 0 ? 0 : t162;
|
|
2146
2222
|
setTimeout(() => {
|
|
2147
2223
|
var _a2;
|
|
2148
2224
|
(_a2 = legendListRef.current) == null ? void 0 : _a2.scrollToOffset({
|
|
@@ -2151,14 +2227,14 @@ function CalendarList(t0) {
|
|
|
2151
2227
|
});
|
|
2152
2228
|
}, 0);
|
|
2153
2229
|
},
|
|
2154
|
-
scrollToDate(date_1, animated_0,
|
|
2230
|
+
scrollToDate(date_1, animated_0, t172) {
|
|
2155
2231
|
var _a2;
|
|
2156
2232
|
const {
|
|
2157
|
-
additionalOffset:
|
|
2158
|
-
} =
|
|
2233
|
+
additionalOffset: t182
|
|
2234
|
+
} = t172 === void 0 ? {
|
|
2159
2235
|
additionalOffset: 0
|
|
2160
|
-
} :
|
|
2161
|
-
const additionalOffset_0 =
|
|
2236
|
+
} : t172;
|
|
2237
|
+
const additionalOffset_0 = t182 === void 0 ? 0 : t182;
|
|
2162
2238
|
const currentMonthOffset = getScrollOffsetForMonth(date_1);
|
|
2163
2239
|
const weekOfMonthIndex = getWeekOfMonth(date_1, calendarFirstDayOfWeek);
|
|
2164
2240
|
const rowHeight = calendarDayHeight + calendarRowVerticalSpacing;
|
|
@@ -2177,30 +2253,30 @@ function CalendarList(t0) {
|
|
|
2177
2253
|
});
|
|
2178
2254
|
}
|
|
2179
2255
|
});
|
|
2180
|
-
$[
|
|
2181
|
-
$[
|
|
2182
|
-
$[
|
|
2183
|
-
$[
|
|
2184
|
-
$[
|
|
2185
|
-
$[
|
|
2256
|
+
$[24] = calendarDayHeight;
|
|
2257
|
+
$[25] = calendarFirstDayOfWeek;
|
|
2258
|
+
$[26] = calendarRowVerticalSpacing;
|
|
2259
|
+
$[27] = calendarWeekHeaderHeight;
|
|
2260
|
+
$[28] = getScrollOffsetForMonth;
|
|
2261
|
+
$[29] = t14;
|
|
2186
2262
|
} else {
|
|
2187
|
-
|
|
2263
|
+
t14 = $[29];
|
|
2188
2264
|
}
|
|
2189
|
-
useImperativeHandle(ref,
|
|
2190
|
-
let
|
|
2191
|
-
if ($[
|
|
2192
|
-
|
|
2265
|
+
useImperativeHandle(ref, t14);
|
|
2266
|
+
let t15;
|
|
2267
|
+
if ($[30] !== calendarSpacing) {
|
|
2268
|
+
t15 = {
|
|
2193
2269
|
paddingBottom: calendarSpacing
|
|
2194
2270
|
};
|
|
2195
|
-
$[
|
|
2196
|
-
$[
|
|
2271
|
+
$[30] = calendarSpacing;
|
|
2272
|
+
$[31] = t15;
|
|
2197
2273
|
} else {
|
|
2198
|
-
|
|
2274
|
+
t15 = $[31];
|
|
2199
2275
|
}
|
|
2200
|
-
const calendarContainerStyle =
|
|
2201
|
-
let
|
|
2202
|
-
if ($[
|
|
2203
|
-
|
|
2276
|
+
const calendarContainerStyle = t15;
|
|
2277
|
+
let t16;
|
|
2278
|
+
if ($[32] !== calendarAdditionalHeight || $[33] !== calendarDayHeight || $[34] !== calendarMonthHeaderHeight || $[35] !== calendarRowVerticalSpacing || $[36] !== calendarSpacing || $[37] !== calendarWeekHeaderHeight) {
|
|
2279
|
+
t16 = (item) => getHeightForMonth({
|
|
2204
2280
|
calendarMonth: item,
|
|
2205
2281
|
calendarSpacing,
|
|
2206
2282
|
calendarDayHeight,
|
|
@@ -2209,23 +2285,23 @@ function CalendarList(t0) {
|
|
|
2209
2285
|
calendarWeekHeaderHeight,
|
|
2210
2286
|
calendarAdditionalHeight
|
|
2211
2287
|
});
|
|
2212
|
-
$[
|
|
2213
|
-
$[
|
|
2214
|
-
$[
|
|
2215
|
-
$[
|
|
2216
|
-
$[
|
|
2217
|
-
$[
|
|
2218
|
-
$[
|
|
2288
|
+
$[32] = calendarAdditionalHeight;
|
|
2289
|
+
$[33] = calendarDayHeight;
|
|
2290
|
+
$[34] = calendarMonthHeaderHeight;
|
|
2291
|
+
$[35] = calendarRowVerticalSpacing;
|
|
2292
|
+
$[36] = calendarSpacing;
|
|
2293
|
+
$[37] = calendarWeekHeaderHeight;
|
|
2294
|
+
$[38] = t16;
|
|
2219
2295
|
} else {
|
|
2220
|
-
|
|
2296
|
+
t16 = $[38];
|
|
2221
2297
|
}
|
|
2222
|
-
const getFixedItemSize =
|
|
2223
|
-
let
|
|
2224
|
-
if ($[
|
|
2225
|
-
|
|
2298
|
+
const getFixedItemSize = t16;
|
|
2299
|
+
let t17;
|
|
2300
|
+
if ($[39] !== calendarContainerStyle) {
|
|
2301
|
+
t17 = (t182) => {
|
|
2226
2302
|
const {
|
|
2227
2303
|
item: item_0
|
|
2228
|
-
} =
|
|
2304
|
+
} = t182;
|
|
2229
2305
|
return /* @__PURE__ */ _jsx10(View7, {
|
|
2230
2306
|
style: calendarContainerStyle,
|
|
2231
2307
|
children: /* @__PURE__ */ _jsx10(Calendar, __spreadValues({
|
|
@@ -2233,21 +2309,21 @@ function CalendarList(t0) {
|
|
|
2233
2309
|
}, item_0.calendarProps))
|
|
2234
2310
|
});
|
|
2235
2311
|
};
|
|
2236
|
-
$[
|
|
2237
|
-
$[
|
|
2312
|
+
$[39] = calendarContainerStyle;
|
|
2313
|
+
$[40] = t17;
|
|
2238
2314
|
} else {
|
|
2239
|
-
|
|
2315
|
+
t17 = $[40];
|
|
2240
2316
|
}
|
|
2241
|
-
const handleRenderItem =
|
|
2317
|
+
const handleRenderItem = t17;
|
|
2242
2318
|
const handleViewableItemsChanged = _temp;
|
|
2243
|
-
let
|
|
2244
|
-
if ($[
|
|
2245
|
-
|
|
2319
|
+
let t18;
|
|
2320
|
+
if ($[41] !== computedInitialScrollIndex || $[42] !== flatListProps || $[43] !== getFixedItemSize || $[44] !== handleOnEndReached || $[45] !== handleOnStartReached || $[46] !== handleRenderItem || $[47] !== monthListWithCalendarProps) {
|
|
2321
|
+
t18 = /* @__PURE__ */ _jsx10(LegendList, __spreadValues({
|
|
2246
2322
|
data: monthListWithCalendarProps,
|
|
2247
2323
|
drawDistance: 560,
|
|
2248
2324
|
estimatedItemSize: 273,
|
|
2249
2325
|
getFixedItemSize,
|
|
2250
|
-
initialScrollIndex:
|
|
2326
|
+
initialScrollIndex: computedInitialScrollIndex,
|
|
2251
2327
|
keyExtractor,
|
|
2252
2328
|
maintainVisibleContentPosition: true,
|
|
2253
2329
|
onEndReached: handleOnEndReached,
|
|
@@ -2259,18 +2335,18 @@ function CalendarList(t0) {
|
|
|
2259
2335
|
showsVerticalScrollIndicator: false,
|
|
2260
2336
|
style: styles8.container
|
|
2261
2337
|
}, flatListProps));
|
|
2262
|
-
$[
|
|
2263
|
-
$[
|
|
2264
|
-
$[
|
|
2265
|
-
$[
|
|
2266
|
-
$[
|
|
2267
|
-
$[
|
|
2268
|
-
$[
|
|
2269
|
-
$[
|
|
2270
|
-
} else {
|
|
2271
|
-
|
|
2272
|
-
}
|
|
2273
|
-
return
|
|
2338
|
+
$[41] = computedInitialScrollIndex;
|
|
2339
|
+
$[42] = flatListProps;
|
|
2340
|
+
$[43] = getFixedItemSize;
|
|
2341
|
+
$[44] = handleOnEndReached;
|
|
2342
|
+
$[45] = handleOnStartReached;
|
|
2343
|
+
$[46] = handleRenderItem;
|
|
2344
|
+
$[47] = monthListWithCalendarProps;
|
|
2345
|
+
$[48] = t18;
|
|
2346
|
+
} else {
|
|
2347
|
+
t18 = $[48];
|
|
2348
|
+
}
|
|
2349
|
+
return t18;
|
|
2274
2350
|
}
|
|
2275
2351
|
function _temp() {
|
|
2276
2352
|
}
|