@flamingo-stack/openframe-frontend-core 0.0.192 → 0.0.193
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/{chunk-CDR4RZ5N.js → chunk-E6VCRL42.js} +70 -27
- package/dist/{chunk-CDR4RZ5N.js.map → chunk-E6VCRL42.js.map} +1 -1
- package/dist/{chunk-TANAJ7YD.cjs → chunk-GMC5VU7X.cjs} +70 -27
- package/dist/chunk-GMC5VU7X.cjs.map +1 -0
- package/dist/components/features/board/board.d.ts.map +1 -1
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/features/board/board.tsx +64 -25
- package/dist/chunk-TANAJ7YD.cjs.map +0 -1
|
@@ -32657,7 +32657,6 @@ function WaitlistForm({
|
|
|
32657
32657
|
}
|
|
32658
32658
|
|
|
32659
32659
|
// src/components/features/board/board.tsx
|
|
32660
|
-
init_cn();
|
|
32661
32660
|
import * as React102 from "react";
|
|
32662
32661
|
import {
|
|
32663
32662
|
DndContext,
|
|
@@ -32671,6 +32670,7 @@ import {
|
|
|
32671
32670
|
useSensors
|
|
32672
32671
|
} from "@dnd-kit/core";
|
|
32673
32672
|
import { arrayMove, sortableKeyboardCoordinates } from "@dnd-kit/sortable";
|
|
32673
|
+
init_cn();
|
|
32674
32674
|
|
|
32675
32675
|
// src/components/features/board/board-column.tsx
|
|
32676
32676
|
import { useDroppable } from "@dnd-kit/core";
|
|
@@ -33110,6 +33110,18 @@ function Board({
|
|
|
33110
33110
|
className
|
|
33111
33111
|
}) {
|
|
33112
33112
|
const { collapsed, toggle } = useBoardCollapse(collapseStorageKey);
|
|
33113
|
+
const {
|
|
33114
|
+
scrollRef,
|
|
33115
|
+
trackRef,
|
|
33116
|
+
thumbRef,
|
|
33117
|
+
thumbRatio,
|
|
33118
|
+
onScroll,
|
|
33119
|
+
onTrackClick,
|
|
33120
|
+
onTrackWheel,
|
|
33121
|
+
onThumbPointerDown,
|
|
33122
|
+
onThumbPointerMove,
|
|
33123
|
+
onThumbPointerUp
|
|
33124
|
+
} = useHorizontalScrollbar();
|
|
33113
33125
|
const [items, setItems] = React102.useState(columns);
|
|
33114
33126
|
const isDraggingRef = React102.useRef(false);
|
|
33115
33127
|
React102.useEffect(() => {
|
|
@@ -33262,31 +33274,62 @@ function Board({
|
|
|
33262
33274
|
onDragEnd: handleDragEnd,
|
|
33263
33275
|
onDragCancel: handleDragCancel,
|
|
33264
33276
|
children: [
|
|
33265
|
-
/* @__PURE__ */
|
|
33266
|
-
|
|
33267
|
-
|
|
33268
|
-
|
|
33269
|
-
|
|
33270
|
-
|
|
33271
|
-
|
|
33272
|
-
|
|
33273
|
-
|
|
33274
|
-
|
|
33275
|
-
|
|
33276
|
-
column
|
|
33277
|
-
|
|
33278
|
-
|
|
33279
|
-
|
|
33280
|
-
|
|
33281
|
-
|
|
33282
|
-
|
|
33283
|
-
|
|
33284
|
-
|
|
33285
|
-
|
|
33286
|
-
|
|
33287
|
-
|
|
33288
|
-
|
|
33289
|
-
|
|
33277
|
+
/* @__PURE__ */ jsxs246("div", { className: cn("flex flex-col h-full", className), children: [
|
|
33278
|
+
/* @__PURE__ */ jsx299(
|
|
33279
|
+
"div",
|
|
33280
|
+
{
|
|
33281
|
+
ref: scrollRef,
|
|
33282
|
+
onScroll,
|
|
33283
|
+
className: "flex flex-1 min-h-0 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
33284
|
+
children: items.map((column, i) => {
|
|
33285
|
+
const prev = items[i - 1];
|
|
33286
|
+
const next = items[i + 1];
|
|
33287
|
+
const joinLeft = !!(column.system && prev?.system);
|
|
33288
|
+
const joinRight = !!(column.system && next?.system);
|
|
33289
|
+
const showGap = i > 0 && !joinLeft;
|
|
33290
|
+
return /* @__PURE__ */ jsxs246(React102.Fragment, { children: [
|
|
33291
|
+
showGap && /* @__PURE__ */ jsx299("div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
|
|
33292
|
+
/* @__PURE__ */ jsx299(
|
|
33293
|
+
BoardColumn,
|
|
33294
|
+
{
|
|
33295
|
+
column,
|
|
33296
|
+
collapsed: !!collapsed[column.id],
|
|
33297
|
+
onToggleCollapse: () => toggle(column.id),
|
|
33298
|
+
onAddTicket,
|
|
33299
|
+
getTicketHref,
|
|
33300
|
+
renderAssignSlot,
|
|
33301
|
+
onLoadMore,
|
|
33302
|
+
loadMoreRootMargin,
|
|
33303
|
+
joinLeft,
|
|
33304
|
+
joinRight
|
|
33305
|
+
}
|
|
33306
|
+
)
|
|
33307
|
+
] }, column.id);
|
|
33308
|
+
})
|
|
33309
|
+
}
|
|
33310
|
+
),
|
|
33311
|
+
thumbRatio > 0 && /* @__PURE__ */ jsx299(
|
|
33312
|
+
"div",
|
|
33313
|
+
{
|
|
33314
|
+
ref: trackRef,
|
|
33315
|
+
onClick: onTrackClick,
|
|
33316
|
+
onWheel: onTrackWheel,
|
|
33317
|
+
className: "relative h-2 mt-[var(--spacing-system-mf)] rounded-full bg-ods-border cursor-pointer shrink-0",
|
|
33318
|
+
children: /* @__PURE__ */ jsx299(
|
|
33319
|
+
"div",
|
|
33320
|
+
{
|
|
33321
|
+
ref: thumbRef,
|
|
33322
|
+
"data-scrollbar-thumb": true,
|
|
33323
|
+
className: "absolute top-0 h-full rounded-full bg-ods-text-secondary transition-colors",
|
|
33324
|
+
style: { width: `${thumbRatio * 100}%`, cursor: "grab" },
|
|
33325
|
+
onPointerDown: onThumbPointerDown,
|
|
33326
|
+
onPointerMove: onThumbPointerMove,
|
|
33327
|
+
onPointerUp: onThumbPointerUp
|
|
33328
|
+
}
|
|
33329
|
+
)
|
|
33330
|
+
}
|
|
33331
|
+
)
|
|
33332
|
+
] }),
|
|
33290
33333
|
/* @__PURE__ */ jsx299(DragOverlay, { dropAnimation: null, children: activeTicket ? /* @__PURE__ */ jsx299(TicketCard, { ticket: activeTicket.ticket, columnId: activeTicket.columnId, isOverlay: true }) : null })
|
|
33291
33334
|
]
|
|
33292
33335
|
}
|
|
@@ -33965,4 +34008,4 @@ export {
|
|
|
33965
34008
|
TMCG_SOCIAL_PLATFORMS,
|
|
33966
34009
|
assets
|
|
33967
34010
|
};
|
|
33968
|
-
//# sourceMappingURL=chunk-
|
|
34011
|
+
//# sourceMappingURL=chunk-E6VCRL42.js.map
|