sellmate-design-system-react 9.0.0-beta.62 → 9.0.0-beta.64
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/AGENTS.md +486 -131
- package/dist/components/SCalendarBoard/CalendarDayCard.d.ts +11 -3
- package/dist/components/SCalendarBoard/CalendarEventButton.d.ts +7 -2
- package/dist/components/SCalendarBoard/CalendarMoreButton.d.ts +2 -1
- package/dist/components/SCalendarBoard/README.md +11 -2
- package/dist/components/SCalendarBoard/SCalendarBoard.d.ts +4 -1
- package/dist/components/SCalendarBoard/calendar-board-layout.d.ts +49 -0
- package/dist/components/SCalendarBoard/types.d.ts +10 -1
- package/dist/components/SPage/README.md +19 -0
- package/dist/components/SPage/SPage.d.ts +11 -2
- package/dist/components/SPage/index.d.ts +1 -1
- package/dist/components/SPage/page.config.d.ts +8 -0
- package/dist/docs/RecipeGallery.d.ts +13 -0
- package/dist/index.cjs +168 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +168 -57
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +516 -133
- package/dist/llms.txt +486 -131
- package/dist/recipes/AppShell.d.ts +21 -0
- package/dist/recipes/ExcelFilePopupPage.d.ts +5 -0
- package/dist/recipes/LoginPage.d.ts +6 -0
- package/dist/recipes/ProductCreatePage.d.ts +1 -0
- package/dist/recipes/ProductCreateSectionsPage.d.ts +5 -0
- package/dist/recipes/ProductDetailInlineEditPage.d.ts +9 -0
- package/dist/recipes/ProductDetailPage.d.ts +1 -0
- package/dist/recipes/ProductListChipFilterPage.d.ts +1 -0
- package/dist/recipes/ProductListPage.d.ts +1 -0
- package/dist/recipes/TransferOrderPopupPage.d.ts +2 -0
- package/dist/recipes/api.d.ts +91 -0
- package/dist/recipes/recipe-story.d.ts +33 -0
- package/dist/recipes/router.d.ts +9 -0
- package/dist/styles.css +26 -3
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -12733,6 +12733,10 @@ var BACKGROUND_CLASS = {
|
|
|
12733
12733
|
neutral: "bg-[var(--sys-color-bg-neutralLight)]",
|
|
12734
12734
|
screen: "bg-[var(--sys-color-bg-screen)]"
|
|
12735
12735
|
};
|
|
12736
|
+
var PADDING_CLASS2 = {
|
|
12737
|
+
default: "p-[var(--cmp-pageBody-padding-default)]",
|
|
12738
|
+
none: "p-0"
|
|
12739
|
+
};
|
|
12736
12740
|
var NATIVE_SCROLLBAR_BACKGROUND_CLASS = {
|
|
12737
12741
|
frame: `${SCROLLBAR_TRACK_BORDER_CLASS} ${SCROLLBAR_TRACK_BG_CLASS}`,
|
|
12738
12742
|
neutral: `${SCROLLBAR_TRACK_BORDER_CLASS} ${SCROLLBAR_TRACK_BG_WHITE_CLASS}`,
|
|
@@ -12748,6 +12752,7 @@ var setForwardedRef = (ref, node) => {
|
|
|
12748
12752
|
var SPage = /* @__PURE__ */ forwardRef(function SPage2({
|
|
12749
12753
|
background = "frame",
|
|
12750
12754
|
scrollEndSpacing = false,
|
|
12755
|
+
padding = "default",
|
|
12751
12756
|
overlayScrollbar = false,
|
|
12752
12757
|
contentHeight = "auto",
|
|
12753
12758
|
contentWidth = "full",
|
|
@@ -12786,7 +12791,8 @@ var SPage = /* @__PURE__ */ forwardRef(function SPage2({
|
|
|
12786
12791
|
{
|
|
12787
12792
|
ref: setMainRef,
|
|
12788
12793
|
className: cn(
|
|
12789
|
-
"box-border min-h-0 min-w-0 flex-1 overflow-auto
|
|
12794
|
+
"box-border min-h-0 min-w-0 flex-1 overflow-auto",
|
|
12795
|
+
PADDING_CLASS2[padding],
|
|
12790
12796
|
overlayScrollbar && "h-full",
|
|
12791
12797
|
!fill && scrollEndSpacing && "pb-[var(--cmp-pageBody-padding-scrollEnd)]",
|
|
12792
12798
|
overlayScrollbar ? SCROLLBAR_HIDDEN_CLASS : `${SCROLLBAR_CLASS} ${NATIVE_SCROLLBAR_BACKGROUND_CLASS[background]}`,
|
|
@@ -12826,6 +12832,7 @@ var SPage = /* @__PURE__ */ forwardRef(function SPage2({
|
|
|
12826
12832
|
// src/components/SPage/page.config.ts
|
|
12827
12833
|
var PAGE_BACKGROUNDS = ["frame", "neutral", "screen"];
|
|
12828
12834
|
var PAGE_CONTENT_HEIGHTS = ["auto", "fill"];
|
|
12835
|
+
var PAGE_PADDINGS = ["default", "none"];
|
|
12829
12836
|
var PAGE_CONTENT_WIDTHS = ["full", "fixed", "fixedCenter"];
|
|
12830
12837
|
var PAGE_HEADER_VARIANTS = ["plain", "bar"];
|
|
12831
12838
|
var SPageHeader = /* @__PURE__ */ withDisplayName(
|
|
@@ -13682,6 +13689,98 @@ function monthCells(year, month) {
|
|
|
13682
13689
|
}
|
|
13683
13690
|
var WEEK_LABELS = ["\uC77C", "\uC6D4", "\uD654", "\uC218", "\uBAA9", "\uAE08", "\uD1A0"];
|
|
13684
13691
|
|
|
13692
|
+
// src/components/SCalendarBoard/calendar-board-layout.ts
|
|
13693
|
+
function eventEndDate(event) {
|
|
13694
|
+
const end = event.endDate;
|
|
13695
|
+
return end != null && end > event.date ? end : event.date;
|
|
13696
|
+
}
|
|
13697
|
+
function layoutCalendarBoard({
|
|
13698
|
+
cells,
|
|
13699
|
+
events,
|
|
13700
|
+
rowCapacity,
|
|
13701
|
+
blockedDates
|
|
13702
|
+
}) {
|
|
13703
|
+
const count = cells.length;
|
|
13704
|
+
const weekCount = Math.ceil(count / 7);
|
|
13705
|
+
const segmentsByCell = Array.from({ length: count }, () => []);
|
|
13706
|
+
const eventsByCell = Array.from({ length: count }, () => []);
|
|
13707
|
+
const hiddenCountByCell = new Array(count).fill(0);
|
|
13708
|
+
const moreLaneByWeek = new Array(weekCount).fill(-1);
|
|
13709
|
+
const runs = [];
|
|
13710
|
+
events.forEach((event, order) => {
|
|
13711
|
+
const start = event.date;
|
|
13712
|
+
const end = eventEndDate(event);
|
|
13713
|
+
let from = -1;
|
|
13714
|
+
let to = -1;
|
|
13715
|
+
for (let i = 0; i < count; i++) {
|
|
13716
|
+
const { date } = cells[i];
|
|
13717
|
+
if (date < start || date > end) continue;
|
|
13718
|
+
if (from < 0) from = i;
|
|
13719
|
+
to = i;
|
|
13720
|
+
if (!blockedDates.has(date)) eventsByCell[i].push(event);
|
|
13721
|
+
}
|
|
13722
|
+
if (from < 0) return;
|
|
13723
|
+
let runStart = -1;
|
|
13724
|
+
const flush = (endIndex) => {
|
|
13725
|
+
if (runStart < 0) return;
|
|
13726
|
+
runs.push({ event, order, startIndex: runStart, endIndex, lane: -1 });
|
|
13727
|
+
runStart = -1;
|
|
13728
|
+
};
|
|
13729
|
+
for (let i = from; i <= to; i++) {
|
|
13730
|
+
if (blockedDates.has(cells[i].date)) {
|
|
13731
|
+
flush(i - 1);
|
|
13732
|
+
continue;
|
|
13733
|
+
}
|
|
13734
|
+
if (runStart >= 0 && i % 7 === 0) flush(i - 1);
|
|
13735
|
+
if (runStart < 0) runStart = i;
|
|
13736
|
+
}
|
|
13737
|
+
flush(to);
|
|
13738
|
+
});
|
|
13739
|
+
runs.sort(
|
|
13740
|
+
(a, b) => a.startIndex - b.startIndex || b.endIndex - b.startIndex - (a.endIndex - a.startIndex) || a.order - b.order
|
|
13741
|
+
);
|
|
13742
|
+
const weekLanes = Array.from({ length: weekCount }, () => []);
|
|
13743
|
+
for (const run of runs) {
|
|
13744
|
+
const week = Math.floor(run.startIndex / 7);
|
|
13745
|
+
const fromDay = run.startIndex % 7;
|
|
13746
|
+
const toDay = run.endIndex % 7;
|
|
13747
|
+
const lanes = weekLanes[week];
|
|
13748
|
+
let lane = 0;
|
|
13749
|
+
for (; ; ) {
|
|
13750
|
+
if (lanes[lane] == null) lanes[lane] = new Array(7).fill(false);
|
|
13751
|
+
let free = true;
|
|
13752
|
+
for (let d = fromDay; d <= toDay && free; d++) if (lanes[lane][d]) free = false;
|
|
13753
|
+
if (free) break;
|
|
13754
|
+
lane += 1;
|
|
13755
|
+
}
|
|
13756
|
+
for (let d = fromDay; d <= toDay; d++) lanes[lane][d] = true;
|
|
13757
|
+
run.lane = lane;
|
|
13758
|
+
}
|
|
13759
|
+
for (let week = 0; week < weekCount; week++) {
|
|
13760
|
+
if (weekLanes[week].length > rowCapacity) moreLaneByWeek[week] = rowCapacity - 1;
|
|
13761
|
+
}
|
|
13762
|
+
for (const run of runs) {
|
|
13763
|
+
const week = Math.floor(run.startIndex / 7);
|
|
13764
|
+
const moreLane = moreLaneByWeek[week];
|
|
13765
|
+
const limit = moreLane < 0 ? rowCapacity : moreLane;
|
|
13766
|
+
if (run.lane >= limit) {
|
|
13767
|
+
for (let i = run.startIndex; i <= run.endIndex; i++) hiddenCountByCell[i] += 1;
|
|
13768
|
+
continue;
|
|
13769
|
+
}
|
|
13770
|
+
const { event } = run;
|
|
13771
|
+
segmentsByCell[run.startIndex].push({
|
|
13772
|
+
event,
|
|
13773
|
+
key: `${event.id ?? `${event.date}-${run.order}`}-${run.startIndex}`,
|
|
13774
|
+
startIndex: run.startIndex,
|
|
13775
|
+
span: run.endIndex - run.startIndex + 1,
|
|
13776
|
+
lane: run.lane,
|
|
13777
|
+
startsHere: cells[run.startIndex].date === event.date,
|
|
13778
|
+
endsHere: cells[run.endIndex].date === eventEndDate(event)
|
|
13779
|
+
});
|
|
13780
|
+
}
|
|
13781
|
+
return { segmentsByCell, eventsByCell, hiddenCountByCell, moreLaneByWeek };
|
|
13782
|
+
}
|
|
13783
|
+
|
|
13685
13784
|
// src/components/SCalendarBoard/calendarBoard.config.ts
|
|
13686
13785
|
var CALENDAR_BOARD_EVENT_COLORS = [
|
|
13687
13786
|
"default",
|
|
@@ -13726,7 +13825,10 @@ var CALENDAR_BOARD_DAY_BG = {
|
|
|
13726
13825
|
function CalendarEventButton({
|
|
13727
13826
|
event,
|
|
13728
13827
|
onSelect,
|
|
13729
|
-
|
|
13828
|
+
flatStart = false,
|
|
13829
|
+
flatEnd = false,
|
|
13830
|
+
className,
|
|
13831
|
+
style
|
|
13730
13832
|
}) {
|
|
13731
13833
|
const preset = CALENDAR_BOARD_EVENT_PRESETS[event.color ?? "default"];
|
|
13732
13834
|
const dot = event.dotColor ?? preset.dot;
|
|
@@ -13746,10 +13848,13 @@ function CalendarEventButton({
|
|
|
13746
13848
|
"h-(--cmp-calendarBoard-item-height) shrink-0 rounded-(--cmp-calendarBoard-item-radius)",
|
|
13747
13849
|
"gap-(--cmp-calendarBoard-eventButton-inline-gap) px-(--cmp-calendarBoard-item-paddingX)",
|
|
13748
13850
|
"bg-(--ceb-bg) text-(--cmp-calendarBoard-eventButton-text-color-default)",
|
|
13851
|
+
// 잘린 쪽은 평평하게 — 다음 조각과 이어 보면 한 막대가 주 경계에서 나뉜 모양이 된다.
|
|
13852
|
+
flatStart && "rounded-s-none",
|
|
13853
|
+
flatEnd && "rounded-e-none",
|
|
13749
13854
|
disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
13750
13855
|
className
|
|
13751
13856
|
),
|
|
13752
|
-
style: { "--ceb-bg": preset.bg },
|
|
13857
|
+
style: { ...style, "--ceb-bg": preset.bg },
|
|
13753
13858
|
onClick: (e) => {
|
|
13754
13859
|
if (disabled) return;
|
|
13755
13860
|
onSelect?.(event, e);
|
|
@@ -13759,7 +13864,7 @@ function CalendarEventButton({
|
|
|
13759
13864
|
"span",
|
|
13760
13865
|
{
|
|
13761
13866
|
"aria-hidden": true,
|
|
13762
|
-
className: "pointer-events-none absolute inset-0 rounded-
|
|
13867
|
+
className: "pointer-events-none absolute inset-0 rounded-[inherit] bg-(--cmp-calendarBoard-eventButton-hover-overlay-color) opacity-0 transition-opacity group-hover:opacity-(--cmp-calendarBoard-eventButton-hover-overlay-opacity)"
|
|
13763
13868
|
}
|
|
13764
13869
|
),
|
|
13765
13870
|
/* @__PURE__ */ jsx(SBadge, { "aria-hidden": true, color: dot, className: "shrink-0" }),
|
|
@@ -13793,7 +13898,7 @@ function CalendarEventButton({
|
|
|
13793
13898
|
}
|
|
13794
13899
|
);
|
|
13795
13900
|
}
|
|
13796
|
-
var CalendarMoreButton = /* @__PURE__ */ forwardRef(function CalendarMoreButton2({ count, label = "\uB354\uBCF4\uAE30", onClick, className }, ref) {
|
|
13901
|
+
var CalendarMoreButton = /* @__PURE__ */ forwardRef(function CalendarMoreButton2({ count, label = "\uB354\uBCF4\uAE30", onClick, className, style }, ref) {
|
|
13797
13902
|
return /* @__PURE__ */ jsxs(
|
|
13798
13903
|
"button",
|
|
13799
13904
|
{
|
|
@@ -13806,6 +13911,7 @@ var CalendarMoreButton = /* @__PURE__ */ forwardRef(function CalendarMoreButton2
|
|
|
13806
13911
|
"bg-(--cmp-calendarBoard-moreButton-bg)",
|
|
13807
13912
|
className
|
|
13808
13913
|
),
|
|
13914
|
+
style,
|
|
13809
13915
|
onClick,
|
|
13810
13916
|
children: [
|
|
13811
13917
|
/* @__PURE__ */ jsx(
|
|
@@ -13824,6 +13930,9 @@ var CalendarMoreButton = /* @__PURE__ */ forwardRef(function CalendarMoreButton2
|
|
|
13824
13930
|
}
|
|
13825
13931
|
);
|
|
13826
13932
|
});
|
|
13933
|
+
var HEADER_HEIGHT = "var(--cmp-calendarBoard-dayCard-header-paddingTop) + var(--cmp-calendarBoard-daySequence-size) + var(--cmp-calendarBoard-dayCard-header-paddingBottom)";
|
|
13934
|
+
var laneTop = (lane) => `calc(${HEADER_HEIGHT} + ${lane} * (var(--cmp-calendarBoard-item-height) + var(--cmp-calendarBoard-dayCard-grid-gap)))`;
|
|
13935
|
+
var spanWidth = (span) => `calc(${span} * 100% + ${span - 1}px - 2 * var(--cmp-calendarBoard-dayCard-paddingX))`;
|
|
13827
13936
|
var CalendarDayCard = /* @__PURE__ */ forwardRef(function CalendarDayCard2({
|
|
13828
13937
|
date,
|
|
13829
13938
|
day,
|
|
@@ -13832,9 +13941,11 @@ var CalendarDayCard = /* @__PURE__ */ forwardRef(function CalendarDayCard2({
|
|
|
13832
13941
|
isSelected,
|
|
13833
13942
|
selectable,
|
|
13834
13943
|
color,
|
|
13835
|
-
|
|
13944
|
+
segments,
|
|
13945
|
+
dayEventCount,
|
|
13836
13946
|
body,
|
|
13837
13947
|
hiddenCount,
|
|
13948
|
+
moreLane,
|
|
13838
13949
|
isOpen,
|
|
13839
13950
|
moreLabel,
|
|
13840
13951
|
onDaySelect,
|
|
@@ -13842,7 +13953,7 @@ var CalendarDayCard = /* @__PURE__ */ forwardRef(function CalendarDayCard2({
|
|
|
13842
13953
|
onOpenEvents,
|
|
13843
13954
|
...rest
|
|
13844
13955
|
}, ref) {
|
|
13845
|
-
const hasEvents =
|
|
13956
|
+
const hasEvents = dayEventCount > 0;
|
|
13846
13957
|
const interactive = selectable || hasEvents;
|
|
13847
13958
|
const activate = () => {
|
|
13848
13959
|
if (hasEvents) onOpenEvents?.();
|
|
@@ -13877,7 +13988,7 @@ var CalendarDayCard = /* @__PURE__ */ forwardRef(function CalendarDayCard2({
|
|
|
13877
13988
|
"span",
|
|
13878
13989
|
{
|
|
13879
13990
|
"aria-hidden": true,
|
|
13880
|
-
className: "pointer-events-none absolute inset-[1px] rounded-(--cmp-calendarBoard-dayCard-focus-border-radius) border-(length:--cmp-calendarBoard-dayCard-focus-border-width) border-solid border-(--cmp-calendarBoard-dayCard-focus-border-color)"
|
|
13991
|
+
className: "pointer-events-none absolute inset-[1px] z-20 rounded-(--cmp-calendarBoard-dayCard-focus-border-radius) border-(length:--cmp-calendarBoard-dayCard-focus-border-width) border-solid border-(--cmp-calendarBoard-dayCard-focus-border-color)"
|
|
13881
13992
|
}
|
|
13882
13993
|
),
|
|
13883
13994
|
/* @__PURE__ */ jsx("div", { className: "flex shrink-0 pt-(--cmp-calendarBoard-dayCard-header-paddingTop) pb-(--cmp-calendarBoard-dayCard-header-paddingBottom)", children: /* @__PURE__ */ jsx(
|
|
@@ -13896,39 +14007,41 @@ var CalendarDayCard = /* @__PURE__ */ forwardRef(function CalendarDayCard2({
|
|
|
13896
14007
|
children: day
|
|
13897
14008
|
}
|
|
13898
14009
|
) }),
|
|
13899
|
-
/* @__PURE__ */
|
|
13900
|
-
|
|
14010
|
+
body != null && /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 flex-col pb-(--cmp-calendarBoard-dayCard-grid-paddingBottom)", children: body }),
|
|
14011
|
+
body == null && segments.map((segment) => /* @__PURE__ */ jsx(
|
|
14012
|
+
CalendarEventButton,
|
|
13901
14013
|
{
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
|
|
13918
|
-
|
|
13919
|
-
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13923
|
-
|
|
13924
|
-
|
|
13925
|
-
|
|
13926
|
-
|
|
13927
|
-
|
|
13928
|
-
|
|
13929
|
-
|
|
13930
|
-
)
|
|
13931
|
-
|
|
14014
|
+
event: segment.event,
|
|
14015
|
+
flatStart: !segment.startsHere,
|
|
14016
|
+
flatEnd: !segment.endsHere,
|
|
14017
|
+
className: "absolute z-10",
|
|
14018
|
+
style: {
|
|
14019
|
+
top: laneTop(segment.lane),
|
|
14020
|
+
left: "var(--cmp-calendarBoard-dayCard-paddingX)",
|
|
14021
|
+
width: spanWidth(segment.span)
|
|
14022
|
+
},
|
|
14023
|
+
onSelect: (ev, e) => {
|
|
14024
|
+
e.stopPropagation();
|
|
14025
|
+
onEventClick?.(ev, e);
|
|
14026
|
+
}
|
|
14027
|
+
},
|
|
14028
|
+
segment.key
|
|
14029
|
+
)),
|
|
14030
|
+
body == null && hiddenCount > 0 && moreLane >= 0 && /* @__PURE__ */ jsx(
|
|
14031
|
+
CalendarMoreButton,
|
|
14032
|
+
{
|
|
14033
|
+
count: hiddenCount,
|
|
14034
|
+
label: moreLabel,
|
|
14035
|
+
className: "absolute z-10",
|
|
14036
|
+
style: {
|
|
14037
|
+
top: laneTop(moreLane),
|
|
14038
|
+
left: "var(--cmp-calendarBoard-dayCard-paddingX)",
|
|
14039
|
+
width: spanWidth(1)
|
|
14040
|
+
},
|
|
14041
|
+
onClick: (e) => {
|
|
14042
|
+
e.stopPropagation();
|
|
14043
|
+
onOpenEvents?.();
|
|
14044
|
+
}
|
|
13932
14045
|
}
|
|
13933
14046
|
)
|
|
13934
14047
|
]
|
|
@@ -14062,16 +14175,14 @@ function SCalendarBoard({
|
|
|
14062
14175
|
observer.observe(cell);
|
|
14063
14176
|
return () => observer.disconnect();
|
|
14064
14177
|
}, [rowCount]);
|
|
14065
|
-
const
|
|
14066
|
-
const
|
|
14067
|
-
|
|
14068
|
-
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
|
|
14073
|
-
}, [events]);
|
|
14074
|
-
const openEvents = openDate ? eventMap.get(openDate) ?? [] : [];
|
|
14178
|
+
const layout = useMemo(() => {
|
|
14179
|
+
const blockedDates = new Set(
|
|
14180
|
+
cells.filter((cell) => dayContent?.[cell.date] != null).map((cell) => cell.date)
|
|
14181
|
+
);
|
|
14182
|
+
return layoutCalendarBoard({ cells, events: events ?? [], rowCapacity, blockedDates });
|
|
14183
|
+
}, [cells, events, rowCapacity, dayContent]);
|
|
14184
|
+
const openIndex = openDate == null ? -1 : cells.findIndex((cell) => cell.date === openDate);
|
|
14185
|
+
const openEvents = openIndex < 0 ? [] : layout.eventsByCell[openIndex];
|
|
14075
14186
|
useLayoutEffect(() => {
|
|
14076
14187
|
if (openDate == null || panelEl == null) return;
|
|
14077
14188
|
const cell = gridRef.current?.querySelector(`[data-date="${openDate}"]`);
|
|
@@ -14212,11 +14323,9 @@ function SCalendarBoard({
|
|
|
14212
14323
|
// 행은 판 높이를 균등하게 나눠 갖는다 — 일정이 많은 주만 길어지면 격자가 깨진다.
|
|
14213
14324
|
gridTemplateRows: `repeat(${rowCount}, minmax(var(--cmp-calendarBoard-dayCard-minHeight), 1fr))`
|
|
14214
14325
|
},
|
|
14215
|
-
children: cells.map((cell) => {
|
|
14326
|
+
children: cells.map((cell, index) => {
|
|
14216
14327
|
const content = dayContent?.[cell.date];
|
|
14217
|
-
const list =
|
|
14218
|
-
const folded = list.length > rowCapacity;
|
|
14219
|
-
const visible = folded ? list.slice(0, rowCapacity - 1) : list;
|
|
14328
|
+
const list = layout.eventsByCell[index];
|
|
14220
14329
|
const card = /* @__PURE__ */ jsx(
|
|
14221
14330
|
CalendarDayCard,
|
|
14222
14331
|
{
|
|
@@ -14227,9 +14336,11 @@ function SCalendarBoard({
|
|
|
14227
14336
|
isSelected: value != null && value === cell.date,
|
|
14228
14337
|
selectable,
|
|
14229
14338
|
color: dayColors?.[cell.date] ?? "default",
|
|
14230
|
-
|
|
14339
|
+
segments: layout.segmentsByCell[index],
|
|
14340
|
+
dayEventCount: list.length,
|
|
14231
14341
|
body: content,
|
|
14232
|
-
hiddenCount:
|
|
14342
|
+
hiddenCount: layout.hiddenCountByCell[index],
|
|
14343
|
+
moreLane: layout.moreLaneByWeek[Math.floor(index / 7)],
|
|
14233
14344
|
isOpen: openDate === cell.date,
|
|
14234
14345
|
moreLabel,
|
|
14235
14346
|
onDaySelect: (date) => onValueChange?.(date, list),
|
|
@@ -26928,6 +27039,6 @@ function STimeRangePicker({
|
|
|
26928
27039
|
);
|
|
26929
27040
|
}
|
|
26930
27041
|
|
|
26931
|
-
export { ACCOUNT_LIST_BOX_ICONS, ACCOUNT_LIST_BOX_ITEM_TONES, ACCOUNT_LIST_BOX_LABELS, ACCOUNT_LIST_BOX_LAYOUT, ACCOUNT_LIST_BOX_TONE_CONFIG, BADGE_COLORS, BAR_GAP, BAR_SIZE_MAX, BAR_SIZE_MIN, BUTTON_COLORS, BUTTON_SIZES, CALENDAR_BOARD_DAY_BG, CALENDAR_BOARD_DAY_COLORS, CALENDAR_BOARD_EVENT_COLORS, CALENDAR_BOARD_EVENT_PRESETS, CALENDAR_BOARD_MAX_VISIBLE_EVENTS, CHAT_ATTACHED_FILE_CONFIG, CHAT_FILE_CONFIG, CHAT_MESSAGE_DIRECTIONS, CHAT_MESSAGE_READ_STATUSES, CHAT_MESSAGE_VARIANTS, CHIP_COLORS, COLOR_KEYS, FIELD_WIDTH_GRADES, GNB_COLORS, GNB_COMMON, GNB_FOLD_MS, GNB_FULL_LOGO_WIDTH, GNB_HEADER, GNB_MENU, GNB_MENU_WIDTH, GNB_RAIL, GNB_RAIL_WIDTH, GNB_SYSTEM_COLORS, GNB_SYSTEM_COLOR_CONFIG, GNB_SYSTEM_LAYOUT, GNB_SYSTEM_PLACEMENTS, GNB_SYSTEM_TOP_COLOR_CONFIG, ICONS, IMAGE_FITS, LAUNCHER_LIST_BOX_LAYOUT, LAUNCHER_LIST_BOX_LOGO_HEIGHT, LAUNCHER_LIST_BOX_LOGO_SERVICE_GAP, LAUNCHER_LIST_BOX_TRAILING_ICON, LAUNCHER_LIST_BOX_WIDTH, LAUNCHER_SERVICES, LAUNCHER_SERVICE_CATALOG, LOGO_DEFAULT_SIZE, LOGO_NAMES, PAGE_BACKGROUNDS, PAGE_CONTENT_HEIGHTS, PAGE_CONTENT_WIDTHS, PAGE_HEADER_VARIANTS, RangeCalendar, SAccountListBox, SActionModal, SBadge, SBarChart, SBarcodeInput, SButton, SCROLL_AREA_AXES, SCalendar, SCalendarBoard, SCallout, SCard, SChatAttachedFile2 as SChatAttachedFile, SChatFile2 as SChatFile, SChatInput2 as SChatInput, SChatMessage2 as SChatMessage, SChatSystemMessage2 as SChatSystemMessage, SCheckbox, SChip2 as SChip, SChipFilter, SChipInput, SCircleProgress, SConfirmModal, SDatePicker, SDatePickerMonthListbox, SDatePickerYearListbox, SDateRangePicker, SDivider, SDonutChart, SDraggableGroup, SDraggableItem2 as SDraggableItem, SDraggableList, SDraggableProvider, SDrawer, SDropdownButton2 as SDropdownButton, SEDITOR_DEFAULT_FONT_SIZE, SEDITOR_HEADING_LABELS, SEDITOR_HEADING_LEVELS, SEditor, SExpansionItem, SExpansionList2 as SExpansionList, SField, SFilePicker, SForm, SGhostButton, SGnb, SGnbSystem, SGnbSystemContext, SGuide, SIcon, SImage, SInput, SKeyValueTable, SLAYOUT_MIN_WIDTH, SLauncherListBox, SLayout, SLayoutContext, SLineChart, SLinearProgress, SList2 as SList, SListItem2 as SListItem, SLoadingContainer, SLoadingModal, SLoadingViewport, SLoginCard2 as SLoginCard, SLogo, SMeatballButton2 as SMeatballButton, SModal, SModalOutlet, SNumberInput, SPage, SPageHeader, SPagination, SPieChart, SPopover, SPopup, SPortal, SRadio, SRadioButton, SRadioCard, SRadioCardGroup, SRadioGroup, SSPLITTER_UNITS, SScrollArea, SSearchInput, SSectionHeaderCard2 as SSectionHeaderCard, SSelect2 as SSelect, SSplitter2 as SSplitter, SStepper, SSwitch, SSystemActionButton, STEPPER_SIZES, STable, STableBar, STabs, STag, STextLink, STextarea, STimePicker, STimeRangePicker, SToast, SToastContainer, SToggle, STooltip2 as STooltip, STree2 as STree, STreeItem2 as STreeItem, SYSTEM_ACTION_BUTTON_COLORS, SYSTEM_ACTION_BUTTON_COLOR_CONFIG, SYSTEM_ACTION_BUTTON_LAYOUT, SYSTEM_ACTION_BUTTON_TYPES, SYSTEM_ACTION_BUTTON_TYPE_CONFIG, TAG_COLORS, TAG_SHAPES, TAG_SIZES, TIMEPICKER_SIZES, TIMEPICKER_SIZE_CONFIG, buttonPreset, cn, fieldWidthValue, fileExtension, findGnbAncestors, findGnbRailValue, formatFileSize, isColorKey, isFieldWidthGrade, loading, normalizeExtension, resolveColor, useSLayout };
|
|
27042
|
+
export { ACCOUNT_LIST_BOX_ICONS, ACCOUNT_LIST_BOX_ITEM_TONES, ACCOUNT_LIST_BOX_LABELS, ACCOUNT_LIST_BOX_LAYOUT, ACCOUNT_LIST_BOX_TONE_CONFIG, BADGE_COLORS, BAR_GAP, BAR_SIZE_MAX, BAR_SIZE_MIN, BUTTON_COLORS, BUTTON_SIZES, CALENDAR_BOARD_DAY_BG, CALENDAR_BOARD_DAY_COLORS, CALENDAR_BOARD_EVENT_COLORS, CALENDAR_BOARD_EVENT_PRESETS, CALENDAR_BOARD_MAX_VISIBLE_EVENTS, CHAT_ATTACHED_FILE_CONFIG, CHAT_FILE_CONFIG, CHAT_MESSAGE_DIRECTIONS, CHAT_MESSAGE_READ_STATUSES, CHAT_MESSAGE_VARIANTS, CHIP_COLORS, COLOR_KEYS, FIELD_WIDTH_GRADES, GNB_COLORS, GNB_COMMON, GNB_FOLD_MS, GNB_FULL_LOGO_WIDTH, GNB_HEADER, GNB_MENU, GNB_MENU_WIDTH, GNB_RAIL, GNB_RAIL_WIDTH, GNB_SYSTEM_COLORS, GNB_SYSTEM_COLOR_CONFIG, GNB_SYSTEM_LAYOUT, GNB_SYSTEM_PLACEMENTS, GNB_SYSTEM_TOP_COLOR_CONFIG, ICONS, IMAGE_FITS, LAUNCHER_LIST_BOX_LAYOUT, LAUNCHER_LIST_BOX_LOGO_HEIGHT, LAUNCHER_LIST_BOX_LOGO_SERVICE_GAP, LAUNCHER_LIST_BOX_TRAILING_ICON, LAUNCHER_LIST_BOX_WIDTH, LAUNCHER_SERVICES, LAUNCHER_SERVICE_CATALOG, LOGO_DEFAULT_SIZE, LOGO_NAMES, PAGE_BACKGROUNDS, PAGE_CONTENT_HEIGHTS, PAGE_CONTENT_WIDTHS, PAGE_HEADER_VARIANTS, PAGE_PADDINGS, RangeCalendar, SAccountListBox, SActionModal, SBadge, SBarChart, SBarcodeInput, SButton, SCROLL_AREA_AXES, SCalendar, SCalendarBoard, SCallout, SCard, SChatAttachedFile2 as SChatAttachedFile, SChatFile2 as SChatFile, SChatInput2 as SChatInput, SChatMessage2 as SChatMessage, SChatSystemMessage2 as SChatSystemMessage, SCheckbox, SChip2 as SChip, SChipFilter, SChipInput, SCircleProgress, SConfirmModal, SDatePicker, SDatePickerMonthListbox, SDatePickerYearListbox, SDateRangePicker, SDivider, SDonutChart, SDraggableGroup, SDraggableItem2 as SDraggableItem, SDraggableList, SDraggableProvider, SDrawer, SDropdownButton2 as SDropdownButton, SEDITOR_DEFAULT_FONT_SIZE, SEDITOR_HEADING_LABELS, SEDITOR_HEADING_LEVELS, SEditor, SExpansionItem, SExpansionList2 as SExpansionList, SField, SFilePicker, SForm, SGhostButton, SGnb, SGnbSystem, SGnbSystemContext, SGuide, SIcon, SImage, SInput, SKeyValueTable, SLAYOUT_MIN_WIDTH, SLauncherListBox, SLayout, SLayoutContext, SLineChart, SLinearProgress, SList2 as SList, SListItem2 as SListItem, SLoadingContainer, SLoadingModal, SLoadingViewport, SLoginCard2 as SLoginCard, SLogo, SMeatballButton2 as SMeatballButton, SModal, SModalOutlet, SNumberInput, SPage, SPageHeader, SPagination, SPieChart, SPopover, SPopup, SPortal, SRadio, SRadioButton, SRadioCard, SRadioCardGroup, SRadioGroup, SSPLITTER_UNITS, SScrollArea, SSearchInput, SSectionHeaderCard2 as SSectionHeaderCard, SSelect2 as SSelect, SSplitter2 as SSplitter, SStepper, SSwitch, SSystemActionButton, STEPPER_SIZES, STable, STableBar, STabs, STag, STextLink, STextarea, STimePicker, STimeRangePicker, SToast, SToastContainer, SToggle, STooltip2 as STooltip, STree2 as STree, STreeItem2 as STreeItem, SYSTEM_ACTION_BUTTON_COLORS, SYSTEM_ACTION_BUTTON_COLOR_CONFIG, SYSTEM_ACTION_BUTTON_LAYOUT, SYSTEM_ACTION_BUTTON_TYPES, SYSTEM_ACTION_BUTTON_TYPE_CONFIG, TAG_COLORS, TAG_SHAPES, TAG_SIZES, TIMEPICKER_SIZES, TIMEPICKER_SIZE_CONFIG, buttonPreset, cn, fieldWidthValue, fileExtension, findGnbAncestors, findGnbRailValue, formatFileSize, isColorKey, isFieldWidthGrade, loading, normalizeExtension, resolveColor, useSLayout };
|
|
26932
27043
|
//# sourceMappingURL=index.js.map
|
|
26933
27044
|
//# sourceMappingURL=index.js.map
|