@editora/ui-react 0.1.24 → 0.1.26

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/README.md CHANGED
@@ -406,7 +406,16 @@ export default function PlanningDemo() {
406
406
  - Dependency types: `e2s`, `s2s`, `e2e` and `s2e`. Bar designs: `solid`, `soft`, `striped`, `outline` and `glass`.
407
407
  - Also in the data: baselines, critical tasks, milestones, parent and child summaries, assignees, progress and split
408
408
  segments. Row virtualization turns on for large task sets; pass `virtualized={false}` for small custom layouts.
409
- - The types `GanttTask`, `GanttLink`, `GanttTaskChangeDetail` and `GanttLinkSelectDetail` are exported.
409
+ - Planner features are props: `zoom` (including `fit`), `weekStart`, `locale`, `labels`, `columns`, `gridWidth`, `fill`, `maxHeight`, `snap`,
410
+ `nonWorkingDays`, `holidays`, `autoSummary`, `cascade`, `schedule="auto"`, `criticalPath`, `linkable`, `creatable` and `initialScroll`.
411
+ The chart reports what the user does (`onBeforeTaskChange`, which can refuse a change with `preventDefault()`, `onTaskChange`,
412
+ `onTaskRename`, `onTaskCreate`, `onLinkCreate`, `onLinkDelete`, `onTaskToggle`, `onGridResize`) and your state stays the source of truth.
413
+ - A ref gives the element's methods: `scrollToDate`, `scrollToTask`, `toggleTask`, `expandAll`, `collapseAll` and `exportSvg`
414
+ (the whole chart as an SVG string). The chart also prints as a whole.
415
+ - The attribute-by-attribute guide, with a full planner example and screenshot, is in the
416
+ [`@editora/ui-core` README](https://github.com/ajaykr089/Editora/tree/main/packages/ui-core#gantt-chart); the props above are the same options.
417
+ - The types `GanttTask`, `GanttLink`, `GanttTaskChangeDetail`, `GanttLinkSelectDetail`, `GanttLabels`, `GanttColumn`,
418
+ `GanttBeforeTaskChangeDetail`, `GanttTaskRenameDetail`, `GanttTaskCreateDetail`, `GanttLinkCreateDetail` and `GanttElement` are exported.
410
419
 
411
420
  ## Floating layers
412
421
 
package/dist/Gantt.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react");require("@editora/ui-core/gantt");const k=require("./_createElement-DC52GmgH.js"),J=n=>n&&n.__esModule?n:{default:n},j=J(u),B=typeof window<"u"?u.useLayoutEffect:u.useEffect;function c(n){if(n instanceof Date){const l=n.getFullYear(),s=String(n.getMonth()+1).padStart(2,"0"),f=String(n.getDate()).padStart(2,"0");return`${l}-${s}-${f}`}return n}function F(n){return n?.length?JSON.stringify(n.map(l=>({...l,start:c(l.start),end:c(l.end),baselineStart:c(l.baselineStart),baselineEnd:c(l.baselineEnd),segments:l.segments?.map(s=>({...s,start:c(s.start),end:c(s.end)}))}))):null}const L=j.default.forwardRef(function({tasks:l,links:s,zoom:f,sort:E,barVariant:g,variant:h,readonly:v,showToolbar:y,showToday:p,filterText:S,virtualized:_,headless:b,children:N,onTaskChange:z,onTaskSelect:A,onTaskDelete:D,onLinkSelect:G,onZoomChange:M,onFilterChange:R,onSortChange:q,...O},$){const m=u.useRef(null);return u.useImperativeHandle($,()=>m.current),B(()=>{const e=m.current;if(!e)return;const r=(i,a)=>{const o=e.getAttribute(i);if(a==null){o!=null&&e.removeAttribute(i);return}o!==a&&e.setAttribute(i,a)},d=(i,a)=>{a?r(i,""):r(i,null)};r("tasks",F(l)),r("links",s?.length?JSON.stringify(s):null),r("zoom",f||null),r("sort",E&&E!=="none"?E:null),r("bar-variant",g&&g!=="solid"?g:null),r("variant",h&&h!=="default"?h:null),r("filter",S||null),d("readonly",v),d("show-toolbar",y),d("show-today",p),_===!1?r("virtualized","false"):r("virtualized",null),d("headless",b)},[l,s,f,E,g,h,v,y,p,S,_,b]),u.useEffect(()=>{const e=m.current;if(!e)return;const r=t=>z?.(t.detail,t),d=t=>A?.(t.detail,t),i=t=>D?.(t.detail,t),a=t=>G?.(t.detail,t),o=t=>M?.(t.detail,t),w=t=>R?.(t.detail,t),I=t=>q?.(t.detail,t);return e.addEventListener("taskchange",r),e.addEventListener("taskselect",d),e.addEventListener("taskdelete",i),e.addEventListener("linkselect",a),e.addEventListener("zoomchange",o),e.addEventListener("filterchange",w),e.addEventListener("sortchange",I),()=>{e.removeEventListener("taskchange",r),e.removeEventListener("taskselect",d),e.removeEventListener("taskdelete",i),e.removeEventListener("linkselect",a),e.removeEventListener("zoomchange",o),e.removeEventListener("filterchange",w),e.removeEventListener("sortchange",I)}},[z,A,D,G,M,R,q]),k.createUIElement("ui-gantt",{ref:m,...O},N)});L.displayName="Gantt";exports.Gantt=L;exports.default=L;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react");require("@editora/ui-core/gantt");const Ee=require("./_createElement-DC52GmgH.js"),Le=r=>r&&r.__esModule?r:{default:r},ge=Le(o),ve=typeof window<"u"?o.useLayoutEffect:o.useEffect;function c(r){if(r instanceof Date){const a=r.getFullYear(),i=String(r.getMonth()+1).padStart(2,"0"),L=String(r.getDate()).padStart(2,"0");return`${a}-${i}-${L}`}return r}function he(r){return r?.length?JSON.stringify(r.map(a=>({...a,start:c(a.start),end:c(a.end),baselineStart:c(a.baselineStart),baselineEnd:c(a.baselineEnd),segments:a.segments?.map(i=>({...i,start:c(i.start),end:c(i.end)}))}))):null}const w=ge.default.forwardRef(function({tasks:a,links:i,zoom:L,sort:g,barVariant:v,variant:h,readonly:J,showToolbar:A,showToday:G,filterText:M,virtualized:R,headless:$,weekStart:_,labels:z,locale:q,columns:N,gridWidth:y,fill:D,maxHeight:u,initialScroll:m,snap:p,creatable:I,autoSummary:j,cascade:B,schedule:k,criticalPath:F,linkable:U,nonWorkingDays:S,holidays:O,children:ue,onTaskChange:Y,onTaskSelect:C,onTaskDelete:K,onLinkSelect:P,onZoomChange:Q,onFilterChange:X,onSortChange:Z,onGridResize:T,onTaskToggle:V,onBeforeTaskChange:H,onTaskRename:x,onTaskCreate:W,onLinkCreate:ee,onLinkDelete:te,...oe},fe){const b=o.useRef(null);return o.useImperativeHandle(fe,()=>b.current),ve(()=>{const t=b.current;if(!t)return;const n=(l,d)=>{const E=t.getAttribute(l);if(d==null){E!=null&&t.removeAttribute(l);return}E!==d&&t.setAttribute(l,d)},s=(l,d)=>{d?n(l,""):n(l,null)},f=(l,d)=>{d===!1?n(l,"false"):s(l,d)};n("tasks",he(a)),n("links",i?.length?JSON.stringify(i):null),n("zoom",L||null),n("sort",g&&g!=="none"?g:null),n("bar-variant",v&&v!=="solid"?v:null),n("variant",h&&h!=="default"?h:null),n("filter",M||null),s("readonly",J),f("show-toolbar",A),f("show-today",G),R===!1?n("virtualized","false"):n("virtualized",null),s("headless",$),n("week-start",_==null?null:String(_)),n("labels",z?JSON.stringify(z):null),n("locale",q||null),n("columns",N?.length?JSON.stringify(N):null),n("grid-width",y!=null&&y>0?String(y):null),s("fill",D),s("creatable",I),s("auto-summary",j),s("cascade",B),s("critical-path",F),s("linkable",U),n("non-working-days",S==null?null:S==="weekend"?"":JSON.stringify(S)),n("holidays",O?.length?JSON.stringify(O.map(l=>l instanceof Date?c(l):l&&typeof l=="object"&&!(l instanceof Date)?{...l,date:c(l.date)}:l)):null),n("schedule",k&&k!=="warn"?k:null),n("snap",p&&p!=="day"?p:null),n("initial-scroll",m&&m!=="today"?m:null),n("max-height",u==null||u===""?null:typeof u=="number"?`${u}px`:u)},[a,i,L,g,v,h,J,A,G,M,R,$,_,z,q,N,y,D,u,m,p,I,j,B,k,F,U,S,O]),o.useEffect(()=>{const t=b.current;if(!t)return;const n=e=>Y?.(e.detail,e),s=e=>C?.(e.detail,e),f=e=>K?.(e.detail,e),l=e=>P?.(e.detail,e),d=e=>Q?.(e.detail,e),E=e=>X?.(e.detail,e),ne=e=>Z?.(e.detail,e);t.addEventListener("taskchange",n),t.addEventListener("taskselect",s),t.addEventListener("taskdelete",f),t.addEventListener("linkselect",l),t.addEventListener("zoomchange",d),t.addEventListener("filterchange",E);const le=e=>T?.(e.detail,e);t.addEventListener("sortchange",ne);const re=e=>V?.(e.detail,e);t.addEventListener("gridresize",le);const se=e=>H?.(e.detail,e);t.addEventListener("tasktoggle",re);const ae=e=>x?.(e.detail,e),de=e=>W?.(e.detail,e);t.addEventListener("beforetaskchange",se),t.addEventListener("taskrename",ae);const ie=e=>ee?.(e.detail,e),ce=e=>te?.(e.detail,e);return t.addEventListener("taskcreate",de),t.addEventListener("linkcreate",ie),t.addEventListener("linkdelete",ce),()=>{t.removeEventListener("linkcreate",ie),t.removeEventListener("linkdelete",ce),t.removeEventListener("taskrename",ae),t.removeEventListener("taskcreate",de),t.removeEventListener("beforetaskchange",se),t.removeEventListener("tasktoggle",re),t.removeEventListener("gridresize",le),t.removeEventListener("taskchange",n),t.removeEventListener("taskselect",s),t.removeEventListener("taskdelete",f),t.removeEventListener("linkselect",l),t.removeEventListener("zoomchange",d),t.removeEventListener("filterchange",E),t.removeEventListener("sortchange",ne)}},[Y,C,K,P,Q,X,Z,T,V,H,x,W,ee,te]),Ee.createUIElement("ui-gantt",{ref:b,...oe},ue)});w.displayName="Gantt";exports.Gantt=w;exports.default=w;
package/dist/Gantt.esm.js CHANGED
@@ -1,78 +1,114 @@
1
1
  'use client';
2
- import _, { useRef as B, useImperativeHandle as F, useEffect as $, useLayoutEffect as H } from "react";
2
+ import fe, { useRef as Ee, useImperativeHandle as Le, useEffect as ie, useLayoutEffect as ge } from "react";
3
3
  import "@editora/ui-core/gantt";
4
- import { c as M } from "./_createElement-DheOwG2B.mjs";
5
- const U = typeof window < "u" ? H : $;
6
- function c(l) {
7
- if (l instanceof Date) {
8
- const r = l.getFullYear(), s = String(l.getMonth() + 1).padStart(2, "0"), u = String(l.getDate()).padStart(2, "0");
9
- return `${r}-${s}-${u}`;
4
+ import { c as ve } from "./_createElement-DheOwG2B.mjs";
5
+ const he = typeof window < "u" ? ge : ie;
6
+ function c(d) {
7
+ if (d instanceof Date) {
8
+ const s = d.getFullYear(), i = String(d.getMonth() + 1).padStart(2, "0"), E = String(d.getDate()).padStart(2, "0");
9
+ return `${s}-${i}-${E}`;
10
10
  }
11
- return l;
11
+ return d;
12
12
  }
13
- function Y(l) {
14
- return l?.length ? JSON.stringify(l.map((r) => ({
15
- ...r,
16
- start: c(r.start),
17
- end: c(r.end),
18
- baselineStart: c(r.baselineStart),
19
- baselineEnd: c(r.baselineEnd),
20
- segments: r.segments?.map((s) => ({
21
- ...s,
22
- start: c(s.start),
23
- end: c(s.end)
13
+ function me(d) {
14
+ return d?.length ? JSON.stringify(d.map((s) => ({
15
+ ...s,
16
+ start: c(s.start),
17
+ end: c(s.end),
18
+ baselineStart: c(s.baselineStart),
19
+ baselineEnd: c(s.baselineEnd),
20
+ segments: s.segments?.map((i) => ({
21
+ ...i,
22
+ start: c(i.start),
23
+ end: c(i.end)
24
24
  }))
25
25
  }))) : null;
26
26
  }
27
- const j = _.forwardRef(function({
28
- tasks: r,
29
- links: s,
30
- zoom: u,
31
- sort: f,
32
- barVariant: h,
33
- variant: E,
34
- readonly: m,
35
- showToolbar: L,
36
- showToday: p,
37
- filterText: v,
38
- virtualized: y,
39
- headless: S,
40
- children: k,
41
- onTaskChange: b,
42
- onTaskSelect: z,
43
- onTaskDelete: A,
44
- onLinkSelect: w,
45
- onZoomChange: D,
46
- onFilterChange: G,
47
- onSortChange: I,
48
- ...J
49
- }, O) {
50
- const g = B(null);
51
- return F(O, () => g.current), U(() => {
52
- const e = g.current;
53
- if (!e) return;
54
- const n = (i, a) => {
55
- const o = e.getAttribute(i);
27
+ const ye = fe.forwardRef(function({
28
+ tasks: s,
29
+ links: i,
30
+ zoom: E,
31
+ sort: L,
32
+ barVariant: g,
33
+ variant: v,
34
+ readonly: J,
35
+ showToolbar: O,
36
+ showToday: A,
37
+ filterText: $,
38
+ virtualized: G,
39
+ headless: I,
40
+ weekStart: b,
41
+ labels: z,
42
+ locale: R,
43
+ columns: N,
44
+ gridWidth: h,
45
+ fill: D,
46
+ maxHeight: o,
47
+ initialScroll: m,
48
+ snap: y,
49
+ creatable: _,
50
+ autoSummary: j,
51
+ cascade: B,
52
+ schedule: p,
53
+ criticalPath: F,
54
+ linkable: M,
55
+ nonWorkingDays: k,
56
+ holidays: w,
57
+ children: ce,
58
+ onTaskChange: U,
59
+ onTaskSelect: Y,
60
+ onTaskDelete: q,
61
+ onLinkSelect: C,
62
+ onZoomChange: K,
63
+ onFilterChange: Q,
64
+ onSortChange: X,
65
+ onGridResize: Z,
66
+ onTaskToggle: P,
67
+ onBeforeTaskChange: T,
68
+ onTaskRename: V,
69
+ onTaskCreate: H,
70
+ onLinkCreate: x,
71
+ onLinkDelete: W,
72
+ ...oe
73
+ }, ue) {
74
+ const S = Ee(null);
75
+ return Le(ue, () => S.current), he(() => {
76
+ const t = S.current;
77
+ if (!t) return;
78
+ const n = (l, a) => {
79
+ const f = t.getAttribute(l);
56
80
  if (a == null) {
57
- o != null && e.removeAttribute(i);
81
+ f != null && t.removeAttribute(l);
58
82
  return;
59
83
  }
60
- o !== a && e.setAttribute(i, a);
61
- }, d = (i, a) => {
62
- a ? n(i, "") : n(i, null);
84
+ f !== a && t.setAttribute(l, a);
85
+ }, r = (l, a) => {
86
+ a ? n(l, "") : n(l, null);
87
+ }, u = (l, a) => {
88
+ a === !1 ? n(l, "false") : r(l, a);
63
89
  };
64
- n("tasks", Y(r)), n("links", s?.length ? JSON.stringify(s) : null), n("zoom", u || null), n("sort", f && f !== "none" ? f : null), n("bar-variant", h && h !== "solid" ? h : null), n("variant", E && E !== "default" ? E : null), n("filter", v || null), d("readonly", m), d("show-toolbar", L), d("show-today", p), y === !1 ? n("virtualized", "false") : n("virtualized", null), d("headless", S);
65
- }, [r, s, u, f, h, E, m, L, p, v, y, S]), $(() => {
66
- const e = g.current;
67
- if (!e) return;
68
- const n = (t) => b?.(t.detail, t), d = (t) => z?.(t.detail, t), i = (t) => A?.(t.detail, t), a = (t) => w?.(t.detail, t), o = (t) => D?.(t.detail, t), N = (t) => G?.(t.detail, t), R = (t) => I?.(t.detail, t);
69
- return e.addEventListener("taskchange", n), e.addEventListener("taskselect", d), e.addEventListener("taskdelete", i), e.addEventListener("linkselect", a), e.addEventListener("zoomchange", o), e.addEventListener("filterchange", N), e.addEventListener("sortchange", R), () => {
70
- e.removeEventListener("taskchange", n), e.removeEventListener("taskselect", d), e.removeEventListener("taskdelete", i), e.removeEventListener("linkselect", a), e.removeEventListener("zoomchange", o), e.removeEventListener("filterchange", N), e.removeEventListener("sortchange", R);
90
+ n("tasks", me(s)), n("links", i?.length ? JSON.stringify(i) : null), n("zoom", E || null), n("sort", L && L !== "none" ? L : null), n("bar-variant", g && g !== "solid" ? g : null), n("variant", v && v !== "default" ? v : null), n("filter", $ || null), r("readonly", J), u("show-toolbar", O), u("show-today", A), G === !1 ? n("virtualized", "false") : n("virtualized", null), r("headless", I), n("week-start", b == null ? null : String(b)), n("labels", z ? JSON.stringify(z) : null), n("locale", R || null), n("columns", N?.length ? JSON.stringify(N) : null), n("grid-width", h != null && h > 0 ? String(h) : null), r("fill", D), r("creatable", _), r("auto-summary", j), r("cascade", B), r("critical-path", F), r("linkable", M), n("non-working-days", k == null ? null : k === "weekend" ? "" : JSON.stringify(k)), n("holidays", w?.length ? JSON.stringify(w.map((l) => l instanceof Date ? c(l) : l && typeof l == "object" && !(l instanceof Date) ? { ...l, date: c(l.date) } : l)) : null), n("schedule", p && p !== "warn" ? p : null), n("snap", y && y !== "day" ? y : null), n("initial-scroll", m && m !== "today" ? m : null), n("max-height", o == null || o === "" ? null : typeof o == "number" ? `${o}px` : o);
91
+ }, [s, i, E, L, g, v, J, O, A, $, G, I, b, z, R, N, h, D, o, m, y, _, j, B, p, F, M, k, w]), ie(() => {
92
+ const t = S.current;
93
+ if (!t) return;
94
+ const n = (e) => U?.(e.detail, e), r = (e) => Y?.(e.detail, e), u = (e) => q?.(e.detail, e), l = (e) => C?.(e.detail, e), a = (e) => K?.(e.detail, e), f = (e) => Q?.(e.detail, e), ee = (e) => X?.(e.detail, e);
95
+ t.addEventListener("taskchange", n), t.addEventListener("taskselect", r), t.addEventListener("taskdelete", u), t.addEventListener("linkselect", l), t.addEventListener("zoomchange", a), t.addEventListener("filterchange", f);
96
+ const te = (e) => Z?.(e.detail, e);
97
+ t.addEventListener("sortchange", ee);
98
+ const ne = (e) => P?.(e.detail, e);
99
+ t.addEventListener("gridresize", te);
100
+ const le = (e) => T?.(e.detail, e);
101
+ t.addEventListener("tasktoggle", ne);
102
+ const re = (e) => V?.(e.detail, e), se = (e) => H?.(e.detail, e);
103
+ t.addEventListener("beforetaskchange", le), t.addEventListener("taskrename", re);
104
+ const ae = (e) => x?.(e.detail, e), de = (e) => W?.(e.detail, e);
105
+ return t.addEventListener("taskcreate", se), t.addEventListener("linkcreate", ae), t.addEventListener("linkdelete", de), () => {
106
+ t.removeEventListener("linkcreate", ae), t.removeEventListener("linkdelete", de), t.removeEventListener("taskrename", re), t.removeEventListener("taskcreate", se), t.removeEventListener("beforetaskchange", le), t.removeEventListener("tasktoggle", ne), t.removeEventListener("gridresize", te), t.removeEventListener("taskchange", n), t.removeEventListener("taskselect", r), t.removeEventListener("taskdelete", u), t.removeEventListener("linkselect", l), t.removeEventListener("zoomchange", a), t.removeEventListener("filterchange", f), t.removeEventListener("sortchange", ee);
71
107
  };
72
- }, [b, z, A, w, D, G, I]), M("ui-gantt", { ref: g, ...J }, k);
108
+ }, [U, Y, q, C, K, Q, X, Z, P, T, V, H, x, W]), ve("ui-gantt", { ref: S, ...oe }, ce);
73
109
  });
74
- j.displayName = "Gantt";
110
+ ye.displayName = "Gantt";
75
111
  export {
76
- j as Gantt,
77
- j as default
112
+ ye as Gantt,
113
+ ye as default
78
114
  };
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Z=require("react"),C=require("react-dom");require("@editora/ui-core/sortable");const s=require("./_internals-C6EP1OPI.js"),nt=require("./_createElement-DC52GmgH.js"),lt=r=>r&&r.__esModule?r:{default:r},f=lt(Z);function L(r){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(r):r.replace(/"/g,'\\"')}function Y(r){if(r==null||r==="")return null;if(typeof r=="number")return`${r}px`;switch(r){case"none":return"0px";case"sm":return"10px";case"md":return"16px";case"lg":return"20px";case"xl":return"28px";case"full":return"999px";default:return r}}function ct(r){if(r==null||r==="")return null;if(typeof r=="number")return`${r}px`;switch(r){case"xs":return"6px";case"sm":return"8px";case"md":return"10px";case"lg":return"14px";case"xl":return"18px";default:return r}}const dt=[],bt=[],M=f.default.forwardRef(function({lists:K,items:Q,selection:d,filterQuery:b,sort:l,persistKey:E,allowFilteredDrag:w,allowNesting:S,dropIndicatorVisibility:q,dropzoneStyle:V,dragPreviewSize:P,dragHandleMode:A,dragHandleSelector:m,itemRadius:k,handleRadius:B,listGap:J,itemSpacing:j,showSelectionBadge:_,disabled:g,renderItem:i,renderListHeader:y,renderEmptyState:h,onChange:D,onItemsChange:O,onSelectionChange:$,onPersistRequest:T,children:H,...tt},et){const n=K??dt,c=Q??bt,a=s.useForwardedHostRef(et),[v,rt]=f.default.useState(0),N=!!(i||y||h);Z.useEffect(()=>{s.warnIfElementNotRegistered("ui-sortable","Sortable")},[]),s.useElementEventListeners(a,[{type:"change",listener:D||O?(t=>{const e=s.getCustomEventDetail(t);e&&(D?.(e),O?.(e.items))}):void 0},{type:"selection-change",listener:$?(t=>{const e=s.getCustomEventDetail(t);e&&$(e)}):void 0},{type:"persist-request",listener:T?(t=>{const e=s.getCustomEventDetail(t);e&&T(e)}):void 0}],[D,O,$,T]),s.useElementAttributes(a,t=>{s.syncJsonAttribute(t,"lists",n),s.syncJsonAttribute(t,"items",c),s.syncJsonAttribute(t,"selection",d??null),s.syncStringAttribute(t,"filter-query",b??null),s.syncStringAttribute(t,"sort",l&&l!=="manual"?l:null),s.syncStringAttribute(t,"persist-key",E??null),s.syncBooleanAttribute(t,"allow-filtered-drag",w),S===!1?t.setAttribute("allow-nesting","false"):t.removeAttribute("allow-nesting"),q==="always"?t.setAttribute("drop-indicator-visibility","always"):t.removeAttribute("drop-indicator-visibility"),V==="container"?t.setAttribute("dropzone-style","container"):t.removeAttribute("dropzone-style"),P==="compact"?t.setAttribute("drag-preview-size","compact"):t.removeAttribute("drag-preview-size"),A==="item"?t.setAttribute("drag-handle-mode","item"):t.removeAttribute("drag-handle-mode"),s.syncStringAttribute(t,"drag-handle-selector",m??null);const e=Y(k);e?t.style.setProperty("--ui-sortable-item-radius",e):t.style.removeProperty("--ui-sortable-item-radius");const u=Y(B);u?t.style.setProperty("--ui-sortable-handle-radius",u):t.style.removeProperty("--ui-sortable-handle-radius");const o=ct(J??j);o?t.style.setProperty("--ui-sortable-list-gap",o):t.style.removeProperty("--ui-sortable-list-gap"),i?t.setAttribute("custom-item-rendering","true"):t.removeAttribute("custom-item-rendering"),_===!1?t.setAttribute("show-selection-badge","false"):t.removeAttribute("show-selection-badge"),s.syncBooleanAttribute(t,"disabled",g)},[n,c,d,b,l,E,w,S,q,V,P,A,m,k,B,J,j,i,_,g]),s.useIsomorphicLayoutEffect(()=>{if(!N)return;const t=a.current,e=t?.ownerDocument?.defaultView;if(!t||!e)return;let u=!1,o=!1,x=null,R=null;const I=[i&&c.length>0?".item-custom-content[data-item-content-target]":null,y&&n.length>0?".list-custom-header[data-list-header-target]":null,h&&n.length>0?".list-custom-empty[data-list-empty-target]":null].filter(Boolean).join(", "),W=()=>{u||o||(o=!0,queueMicrotask(()=>{o=!1,!u&&rt(p=>p+1)}))},ut=()=>{const p=a.current?.shadowRoot;return p?(R||(R=new MutationObserver(()=>W()),R.observe(p,{childList:!0,subtree:!0})),!0):!1},X=()=>{if(u)return;const p=a.current?.shadowRoot,it=!I||!!p?.querySelector(I);if(ut()&&it){W();return}x=e.requestAnimationFrame(X)};return X(),()=>{u=!0,x!==null&&e.cancelAnimationFrame(x),R?.disconnect()}},[a,N,c,n,d,b,l,E,w,S,q,P,A,m,_,g,i,y,h]),s.useIsomorphicLayoutEffect(()=>{const t=a.current,e=t?.shadowRoot;if(!t)return;if(!i||!e){t.removeAttribute("custom-item-rendering-ready"),t.removeAttribute("custom-item-rendering-pending");return}const u=e.querySelectorAll(".item-custom-content[data-item-content-target]"),o=e.querySelectorAll("[data-sortable-custom-item]");u.length>0&&o.length>=u.length?(t.setAttribute("custom-item-rendering-ready","true"),t.removeAttribute("custom-item-rendering-pending")):(t.removeAttribute("custom-item-rendering-ready"),t.setAttribute("custom-item-rendering-pending","true"))},[a,i,v,c,d,b,l,g]),s.useIsomorphicLayoutEffect(()=>{const t=a.current?.shadowRoot;t&&(t.querySelectorAll("[data-sortable-custom-handle]").forEach(e=>{e.removeAttribute("data-sortable-custom-handle"),e.removeAttribute("data-drag-trigger"),e.removeAttribute("data-id"),e.removeAttribute("draggable"),e.hasAttribute("data-sortable-handle-tabindex")&&(e.removeAttribute("data-sortable-handle-tabindex"),e.removeAttribute("tabindex"))}),!(!i||!m||A==="item")&&t.querySelectorAll("[data-sortable-custom-item][data-sortable-item-id]").forEach(e=>{const u=e.getAttribute("data-sortable-item-id");u&&e.querySelectorAll(m).forEach(o=>{o.setAttribute("data-sortable-custom-handle",""),o.setAttribute("data-drag-trigger","custom"),o.setAttribute("data-id",u),o.setAttribute("draggable","true"),o.hasAttribute("tabindex")||(o.setAttribute("tabindex","-1"),o.setAttribute("data-sortable-handle-tabindex",""))})}))},[a,i,m,A,v,c,d,b,l,g]);const z=new Map(n.map(t=>[t.id,t])),F=new Map(n.map(t=>[t.id,c.filter(e=>e.listId===t.id).length])),U=!!g||l==="label"||!!b&&!w,st=i?c.map(t=>{const e=a.current?.shadowRoot?.querySelector(`.item-custom-content[data-item-content-target="${L(t.id)}"]`);return e?C.createPortal(f.default.createElement("div",{"data-sortable-custom-item":"","data-sortable-item-id":t.id,"data-selected":d?.includes(t.id)?"true":"false","data-disabled":t.disabled?"true":"false","data-drag-disabled":t.dragDisabled?"true":"false"},i(t,{selected:d?.includes(t.id)??!1,disabled:!!t.disabled,dragDisabled:!!t.dragDisabled,cloneOnDrag:!!t.cloneOnDrag||!!z.get(t.listId)?.cloneOnDrag,list:z.get(t.listId)})),e,t.id):null}):null,ot=y?n.map(t=>{const e=a.current?.shadowRoot?.querySelector(`.list-custom-header[data-list-header-target="${L(t.id)}"]`);return e?C.createPortal(f.default.createElement("div",{"data-sortable-custom-list-header":"","data-sortable-list-id":t.id},y(t,{itemCount:F.get(t.id)??0,dragLocked:U})),e,`header-${t.id}`):null}):null,at=h?n.map(t=>{const e=a.current?.shadowRoot?.querySelector(`.list-custom-empty[data-list-empty-target="${L(t.id)}"]`);return e?C.createPortal(f.default.createElement("div",{"data-sortable-custom-empty":"","data-sortable-list-id":t.id},h(t,{itemCount:F.get(t.id)??0,dragLocked:U,filterQuery:b??""})),e,`empty-${t.id}`):null}):null,G={ref:a,...tt};return i&&(G["custom-item-rendering"]=""),f.default.createElement(f.default.Fragment,null,nt.createUIElement("ui-sortable",G,H),v>=0?st:null,v>=0?ot:null,v>=0?at:null)});M.displayName="Sortable";exports.Sortable=M;exports.default=M;
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ot=require("react"),N=require("react-dom");require("@editora/ui-core/sortable");const r=require("./_internals-C6EP1OPI.js"),gt=require("./_createElement-DC52GmgH.js"),yt=s=>s&&s.__esModule?s:{default:s},f=yt(ot);function B(s){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(s):s.replace(/"/g,'\\"')}function st(s){if(s==null||s==="")return null;if(typeof s=="number")return`${s}px`;switch(s){case"none":return"0px";case"sm":return"10px";case"md":return"16px";case"lg":return"20px";case"xl":return"28px";case"full":return"999px";default:return s}}function At(s){if(s==null||s==="")return null;if(typeof s=="number")return`${s}px`;switch(s){case"xs":return"6px";case"sm":return"8px";case"md":return"10px";case"lg":return"14px";case"xl":return"18px";default:return s}}const ht=[],vt=[],F=f.default.forwardRef(function({lists:ut,items:it,selection:d,filterQuery:b,sort:c,persistKey:_,allowFilteredDrag:S,allowNesting:O,nestTrigger:w,group:T,touchHoldDelay:x,listMaxHeight:E,dropIndicatorVisibility:D,dropzoneStyle:z,dragPreviewSize:$,dragHandleMode:y,dragHandleSelector:m,itemRadius:M,handleRadius:U,listGap:G,itemSpacing:I,canDrop:W,showSelectionBadge:L,labels:R,hideToolbar:X,disabled:p,renderItem:a,renderListHeader:A,renderEmptyState:h,onBeforeChange:k,onChange:C,onItemsChange:J,onSelectionChange:V,onPersistRequest:j,children:at,...nt},ct){const n=ut??ht,l=it??vt,u=r.useForwardedHostRef(ct),[v,lt]=f.default.useState(0),Y=!!(a||A||h);ot.useEffect(()=>{r.warnIfElementNotRegistered("ui-sortable","Sortable")},[]),r.useElementEventListeners(u,[{type:"before-change",listener:k?(t=>{const e=r.getCustomEventDetail(t);e&&k(e,t)===!1&&t.preventDefault()}):void 0},{type:"change",listener:C||J?(t=>{const e=r.getCustomEventDetail(t);e&&(C?.(e),J?.(e.items))}):void 0},{type:"selection-change",listener:V?(t=>{const e=r.getCustomEventDetail(t);e&&V(e)}):void 0},{type:"persist-request",listener:j?(t=>{const e=r.getCustomEventDetail(t);e&&j(e)}):void 0}],[k,C,J,V,j]),r.useElementAttributes(u,t=>{r.syncJsonAttribute(t,"lists",n),r.syncJsonAttribute(t,"items",l),r.syncJsonAttribute(t,"selection",d??null),r.syncStringAttribute(t,"filter-query",b??null),r.syncStringAttribute(t,"sort",c&&c!=="manual"?c:null),r.syncStringAttribute(t,"persist-key",_??null),r.syncBooleanAttribute(t,"allow-filtered-drag",S),O===!1?t.setAttribute("allow-nesting","false"):t.removeAttribute("allow-nesting"),r.syncStringAttribute(t,"nest-trigger",w&&w!=="gutter"?w:null),r.syncStringAttribute(t,"list-max-height",typeof E=="number"?String(E)+"px":E??null),r.syncStringAttribute(t,"group",T??null),r.syncStringAttribute(t,"touch-hold-delay",typeof x=="number"&&Number.isFinite(x)?String(x):null),D==="always"?t.setAttribute("drop-indicator-visibility","always"):t.removeAttribute("drop-indicator-visibility"),z==="container"?t.setAttribute("dropzone-style","container"):t.removeAttribute("dropzone-style"),$==="compact"?t.setAttribute("drag-preview-size","compact"):t.removeAttribute("drag-preview-size"),y==="item"?t.setAttribute("drag-handle-mode","item"):t.removeAttribute("drag-handle-mode"),r.syncStringAttribute(t,"drag-handle-selector",m??null);const e=st(M);e?t.style.setProperty("--ui-sortable-item-radius",e):t.style.removeProperty("--ui-sortable-item-radius");const i=st(U);i?t.style.setProperty("--ui-sortable-handle-radius",i):t.style.removeProperty("--ui-sortable-handle-radius");const o=At(G??I);o?t.style.setProperty("--ui-sortable-list-gap",o):t.style.removeProperty("--ui-sortable-list-gap"),a?t.setAttribute("custom-item-rendering","true"):t.removeAttribute("custom-item-rendering"),L===!1?t.setAttribute("show-selection-badge","false"):t.removeAttribute("show-selection-badge"),t.canDrop=W??null,r.syncJsonAttribute(t,"labels",R&&Object.keys(R).length?R:null),r.syncBooleanAttribute(t,"hide-toolbar",X),r.syncBooleanAttribute(t,"disabled",p)},[n,l,d,b,c,_,S,O,w,T,x,E,D,z,$,y,m,M,U,G,I,a,L,W,R,X,p]),r.useIsomorphicLayoutEffect(()=>{if(!Y)return;const t=u.current,e=t?.ownerDocument?.defaultView;if(!t||!e)return;let i=!1,o=!1,q=null,P=null;const tt=[a&&l.length>0?".item-custom-content[data-item-content-target]":null,A&&n.length>0?".list-custom-header[data-list-header-target]":null,h&&n.length>0?".list-custom-empty[data-list-empty-target]":null].filter(Boolean).join(", "),et=()=>{i||o||(o=!0,queueMicrotask(()=>{o=!1,!i&&lt(g=>g+1)}))},mt=()=>{const g=u.current?.shadowRoot;return g?(P||(P=new MutationObserver(()=>et()),P.observe(g,{childList:!0,subtree:!0})),!0):!1},rt=()=>{if(i)return;const g=u.current?.shadowRoot,pt=!tt||!!g?.querySelector(tt);if(mt()&&pt){et();return}q=e.requestAnimationFrame(rt)};return rt(),()=>{i=!0,q!==null&&e.cancelAnimationFrame(q),P?.disconnect()}},[u,Y,l,n,d,b,c,_,S,O,D,$,y,m,L,p,a,A,h]),r.useIsomorphicLayoutEffect(()=>{const t=u.current,e=t?.shadowRoot;if(!t)return;if(!a||!e){t.removeAttribute("custom-item-rendering-ready"),t.removeAttribute("custom-item-rendering-pending");return}const i=e.querySelectorAll(".item-custom-content[data-item-content-target]"),o=e.querySelectorAll("[data-sortable-custom-item]");i.length>0&&o.length>=i.length?(t.setAttribute("custom-item-rendering-ready","true"),t.removeAttribute("custom-item-rendering-pending")):(t.removeAttribute("custom-item-rendering-ready"),t.setAttribute("custom-item-rendering-pending","true"))},[u,a,v,l,d,b,c,p]),r.useIsomorphicLayoutEffect(()=>{const t=u.current?.shadowRoot;t&&(t.querySelectorAll("[data-sortable-custom-handle]").forEach(e=>{e.removeAttribute("data-sortable-custom-handle"),e.removeAttribute("data-drag-trigger"),e.removeAttribute("data-id"),e.removeAttribute("draggable"),e.hasAttribute("data-sortable-handle-tabindex")&&(e.removeAttribute("data-sortable-handle-tabindex"),e.removeAttribute("tabindex"))}),!(!a||!m||y==="item")&&t.querySelectorAll("[data-sortable-custom-item][data-sortable-item-id]").forEach(e=>{const i=e.getAttribute("data-sortable-item-id");i&&e.querySelectorAll(m).forEach(o=>{o.setAttribute("data-sortable-custom-handle",""),o.setAttribute("data-drag-trigger","custom"),o.setAttribute("data-id",i),o.hasAttribute("tabindex")||(o.setAttribute("tabindex","-1"),o.setAttribute("data-sortable-handle-tabindex",""))})}))},[u,a,m,y,v,l,d,b,c,p]);const Z=new Map(n.map(t=>[t.id,t])),K=new Map(n.map(t=>[t.id,l.filter(e=>e.listId===t.id).length])),Q=!!p||c==="label"||!!b&&!S,dt=a?l.map(t=>{const e=u.current?.shadowRoot?.querySelector(`.item-custom-content[data-item-content-target="${B(t.id)}"]`);return e?N.createPortal(f.default.createElement("div",{"data-sortable-custom-item":"","data-sortable-item-id":t.id,"data-selected":d?.includes(t.id)?"true":"false","data-disabled":t.disabled?"true":"false","data-drag-disabled":t.dragDisabled?"true":"false"},a(t,{selected:d?.includes(t.id)??!1,disabled:!!t.disabled,dragDisabled:!!t.dragDisabled,cloneOnDrag:!!t.cloneOnDrag||!!Z.get(t.listId)?.cloneOnDrag,list:Z.get(t.listId)})),e,t.id):null}):null,bt=A?n.map(t=>{const e=u.current?.shadowRoot?.querySelector(`.list-custom-header[data-list-header-target="${B(t.id)}"]`);return e?N.createPortal(f.default.createElement("div",{"data-sortable-custom-list-header":"","data-sortable-list-id":t.id},A(t,{itemCount:K.get(t.id)??0,dragLocked:Q})),e,`header-${t.id}`):null}):null,ft=h?n.map(t=>{const e=u.current?.shadowRoot?.querySelector(`.list-custom-empty[data-list-empty-target="${B(t.id)}"]`);return e?N.createPortal(f.default.createElement("div",{"data-sortable-custom-empty":"","data-sortable-list-id":t.id},h(t,{itemCount:K.get(t.id)??0,dragLocked:Q,filterQuery:b??""})),e,`empty-${t.id}`):null}):null,H={ref:u,...nt};return a&&(H["custom-item-rendering"]=""),f.default.createElement(f.default.Fragment,null,gt.createUIElement("ui-sortable",H,at),v>=0?dt:null,v>=0?bt:null,v>=0?ft:null)});F.displayName="Sortable";exports.Sortable=F;exports.default=F;
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import b, { useEffect as ct } from "react";
3
- import { createPortal as _ } from "react-dom";
2
+ import f, { useEffect as yt } from "react";
3
+ import { createPortal as J } from "react-dom";
4
4
  import "@editora/ui-core/sortable";
5
- import { u as dt, w as bt, a as ft, g as k, b as mt, f as C, s as R, c as K, h as L } from "./_internals-DnSIpvQ-.mjs";
6
- import { c as pt } from "./_createElement-DheOwG2B.mjs";
5
+ import { u as ht, w as vt, a as wt, g as O, b as xt, f as $, s as c, c as T, h as U } from "./_internals-DnSIpvQ-.mjs";
6
+ import { c as Rt } from "./_createElement-DheOwG2B.mjs";
7
7
  function B(r) {
8
8
  return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(r) : r.replace(/"/g, '\\"');
9
9
  }
10
- function Q(r) {
10
+ function it(r) {
11
11
  if (r == null || r === "") return null;
12
12
  if (typeof r == "number") return `${r}px`;
13
13
  switch (r) {
@@ -27,7 +27,7 @@ function Q(r) {
27
27
  return r;
28
28
  }
29
29
  }
30
- function gt(r) {
30
+ function St(r) {
31
31
  if (r == null || r === "") return null;
32
32
  if (typeof r == "number") return `${r}px`;
33
33
  switch (r) {
@@ -45,126 +45,141 @@ function gt(r) {
45
45
  return r;
46
46
  }
47
47
  }
48
- const At = [], ht = [], yt = b.forwardRef(function({
49
- lists: H,
50
- items: tt,
51
- selection: c,
52
- filterQuery: d,
48
+ const Et = [], qt = [], Pt = f.forwardRef(function({
49
+ lists: ut,
50
+ items: nt,
51
+ selection: d,
52
+ filterQuery: b,
53
53
  sort: n,
54
- persistKey: E,
55
- allowFilteredDrag: v,
56
- allowNesting: q,
57
- dropIndicatorVisibility: S,
58
- dropzoneStyle: N,
59
- dragPreviewSize: P,
60
- dragHandleMode: g,
61
- dragHandleSelector: f,
62
- itemRadius: j,
63
- handleRadius: z,
64
- listGap: F,
65
- itemSpacing: J,
66
- showSelectionBadge: O,
67
- disabled: m,
54
+ persistKey: k,
55
+ allowFilteredDrag: w,
56
+ allowNesting: V,
57
+ nestTrigger: x,
58
+ group: G,
59
+ touchHoldDelay: R,
60
+ listMaxHeight: S,
61
+ dropIndicatorVisibility: _,
62
+ dropzoneStyle: W,
63
+ dragPreviewSize: D,
64
+ dragHandleMode: A,
65
+ dragHandleSelector: m,
66
+ itemRadius: X,
67
+ handleRadius: Y,
68
+ listGap: Z,
69
+ itemSpacing: I,
70
+ canDrop: K,
71
+ showSelectionBadge: L,
72
+ labels: E,
73
+ hideToolbar: M,
74
+ disabled: p,
68
75
  renderItem: i,
69
- renderListHeader: A,
76
+ renderListHeader: y,
70
77
  renderEmptyState: h,
71
- onChange: $,
72
- onItemsChange: D,
73
- onSelectionChange: T,
74
- onPersistRequest: V,
75
- children: et,
76
- ...rt
77
- }, st) {
78
- const u = H ?? At, l = tt ?? ht, o = dt(st), [y, ot] = b.useState(0), M = !!(i || A || h);
79
- ct(() => {
80
- bt("ui-sortable", "Sortable");
81
- }, []), ft(
78
+ onBeforeChange: N,
79
+ onChange: j,
80
+ onItemsChange: F,
81
+ onSelectionChange: z,
82
+ onPersistRequest: C,
83
+ children: lt,
84
+ ...ct
85
+ }, dt) {
86
+ const u = ut ?? Et, l = nt ?? qt, o = ht(dt), [v, bt] = f.useState(0), Q = !!(i || y || h);
87
+ yt(() => {
88
+ vt("ui-sortable", "Sortable");
89
+ }, []), wt(
82
90
  o,
83
91
  [
92
+ {
93
+ type: "before-change",
94
+ listener: N ? ((t) => {
95
+ const e = O(t);
96
+ e && N(e, t) === !1 && t.preventDefault();
97
+ }) : void 0
98
+ },
84
99
  {
85
100
  type: "change",
86
- listener: $ || D ? ((t) => {
87
- const e = k(t);
88
- e && ($?.(e), D?.(e.items));
101
+ listener: j || F ? ((t) => {
102
+ const e = O(t);
103
+ e && (j?.(e), F?.(e.items));
89
104
  }) : void 0
90
105
  },
91
106
  {
92
107
  type: "selection-change",
93
- listener: T ? ((t) => {
94
- const e = k(t);
95
- e && T(e);
108
+ listener: z ? ((t) => {
109
+ const e = O(t);
110
+ e && z(e);
96
111
  }) : void 0
97
112
  },
98
113
  {
99
114
  type: "persist-request",
100
- listener: V ? ((t) => {
101
- const e = k(t);
102
- e && V(e);
115
+ listener: C ? ((t) => {
116
+ const e = O(t);
117
+ e && C(e);
103
118
  }) : void 0
104
119
  }
105
120
  ],
106
- [$, D, T, V]
107
- ), mt(
121
+ [N, j, F, z, C]
122
+ ), xt(
108
123
  o,
109
124
  (t) => {
110
- C(t, "lists", u), C(t, "items", l), C(t, "selection", c ?? null), R(t, "filter-query", d ?? null), R(t, "sort", n && n !== "manual" ? n : null), R(t, "persist-key", E ?? null), K(t, "allow-filtered-drag", v), q === !1 ? t.setAttribute("allow-nesting", "false") : t.removeAttribute("allow-nesting"), S === "always" ? t.setAttribute("drop-indicator-visibility", "always") : t.removeAttribute("drop-indicator-visibility"), N === "container" ? t.setAttribute("dropzone-style", "container") : t.removeAttribute("dropzone-style"), P === "compact" ? t.setAttribute("drag-preview-size", "compact") : t.removeAttribute("drag-preview-size"), g === "item" ? t.setAttribute("drag-handle-mode", "item") : t.removeAttribute("drag-handle-mode"), R(t, "drag-handle-selector", f ?? null);
111
- const e = Q(j);
125
+ $(t, "lists", u), $(t, "items", l), $(t, "selection", d ?? null), c(t, "filter-query", b ?? null), c(t, "sort", n && n !== "manual" ? n : null), c(t, "persist-key", k ?? null), T(t, "allow-filtered-drag", w), V === !1 ? t.setAttribute("allow-nesting", "false") : t.removeAttribute("allow-nesting"), c(t, "nest-trigger", x && x !== "gutter" ? x : null), c(t, "list-max-height", typeof S == "number" ? String(S) + "px" : S ?? null), c(t, "group", G ?? null), c(t, "touch-hold-delay", typeof R == "number" && Number.isFinite(R) ? String(R) : null), _ === "always" ? t.setAttribute("drop-indicator-visibility", "always") : t.removeAttribute("drop-indicator-visibility"), W === "container" ? t.setAttribute("dropzone-style", "container") : t.removeAttribute("dropzone-style"), D === "compact" ? t.setAttribute("drag-preview-size", "compact") : t.removeAttribute("drag-preview-size"), A === "item" ? t.setAttribute("drag-handle-mode", "item") : t.removeAttribute("drag-handle-mode"), c(t, "drag-handle-selector", m ?? null);
126
+ const e = it(X);
112
127
  e ? t.style.setProperty("--ui-sortable-item-radius", e) : t.style.removeProperty("--ui-sortable-item-radius");
113
- const a = Q(z);
128
+ const a = it(Y);
114
129
  a ? t.style.setProperty("--ui-sortable-handle-radius", a) : t.style.removeProperty("--ui-sortable-handle-radius");
115
- const s = gt(F ?? J);
116
- s ? t.style.setProperty("--ui-sortable-list-gap", s) : t.style.removeProperty("--ui-sortable-list-gap"), i ? t.setAttribute("custom-item-rendering", "true") : t.removeAttribute("custom-item-rendering"), O === !1 ? t.setAttribute("show-selection-badge", "false") : t.removeAttribute("show-selection-badge"), K(t, "disabled", m);
130
+ const s = St(Z ?? I);
131
+ s ? t.style.setProperty("--ui-sortable-list-gap", s) : t.style.removeProperty("--ui-sortable-list-gap"), i ? t.setAttribute("custom-item-rendering", "true") : t.removeAttribute("custom-item-rendering"), L === !1 ? t.setAttribute("show-selection-badge", "false") : t.removeAttribute("show-selection-badge"), t.canDrop = K ?? null, $(t, "labels", E && Object.keys(E).length ? E : null), T(t, "hide-toolbar", M), T(t, "disabled", p);
117
132
  },
118
- [u, l, c, d, n, E, v, q, S, N, P, g, f, j, z, F, J, i, O, m]
119
- ), L(() => {
120
- if (!M) return;
133
+ [u, l, d, b, n, k, w, V, x, G, R, S, _, W, D, A, m, X, Y, Z, I, i, L, K, E, M, p]
134
+ ), U(() => {
135
+ if (!Q) return;
121
136
  const t = o.current, e = t?.ownerDocument?.defaultView;
122
137
  if (!t || !e) return;
123
- let a = !1, s = !1, w = null, x = null;
124
- const Y = [
138
+ let a = !1, s = !1, q = null, P = null;
139
+ const st = [
125
140
  i && l.length > 0 ? ".item-custom-content[data-item-content-target]" : null,
126
- A && u.length > 0 ? ".list-custom-header[data-list-header-target]" : null,
141
+ y && u.length > 0 ? ".list-custom-header[data-list-header-target]" : null,
127
142
  h && u.length > 0 ? ".list-custom-empty[data-list-empty-target]" : null
128
- ].filter(Boolean).join(", "), Z = () => {
143
+ ].filter(Boolean).join(", "), ot = () => {
129
144
  a || s || (s = !0, queueMicrotask(() => {
130
- s = !1, !a && ot((p) => p + 1);
145
+ s = !1, !a && bt((g) => g + 1);
131
146
  }));
132
- }, nt = () => {
133
- const p = o.current?.shadowRoot;
134
- return p ? (x || (x = new MutationObserver(() => Z()), x.observe(p, { childList: !0, subtree: !0 })), !0) : !1;
135
- }, I = () => {
147
+ }, gt = () => {
148
+ const g = o.current?.shadowRoot;
149
+ return g ? (P || (P = new MutationObserver(() => ot()), P.observe(g, { childList: !0, subtree: !0 })), !0) : !1;
150
+ }, at = () => {
136
151
  if (a) return;
137
- const p = o.current?.shadowRoot, lt = !Y || !!p?.querySelector(Y);
138
- if (nt() && lt) {
139
- Z();
152
+ const g = o.current?.shadowRoot, At = !st || !!g?.querySelector(st);
153
+ if (gt() && At) {
154
+ ot();
140
155
  return;
141
156
  }
142
- w = e.requestAnimationFrame(I);
157
+ q = e.requestAnimationFrame(at);
143
158
  };
144
- return I(), () => {
145
- a = !0, w !== null && e.cancelAnimationFrame(w), x?.disconnect();
159
+ return at(), () => {
160
+ a = !0, q !== null && e.cancelAnimationFrame(q), P?.disconnect();
146
161
  };
147
162
  }, [
148
163
  o,
149
- M,
164
+ Q,
150
165
  l,
151
166
  u,
152
- c,
153
167
  d,
168
+ b,
154
169
  n,
155
- E,
156
- v,
157
- q,
158
- S,
159
- P,
160
- g,
161
- f,
162
- O,
170
+ k,
171
+ w,
172
+ V,
173
+ _,
174
+ D,
175
+ A,
163
176
  m,
177
+ L,
178
+ p,
164
179
  i,
165
- A,
180
+ y,
166
181
  h
167
- ]), L(() => {
182
+ ]), U(() => {
168
183
  const t = o.current, e = t?.shadowRoot;
169
184
  if (!t) return;
170
185
  if (!i || !e) {
@@ -173,72 +188,72 @@ const At = [], ht = [], yt = b.forwardRef(function({
173
188
  }
174
189
  const a = e.querySelectorAll(".item-custom-content[data-item-content-target]"), s = e.querySelectorAll("[data-sortable-custom-item]");
175
190
  a.length > 0 && s.length >= a.length ? (t.setAttribute("custom-item-rendering-ready", "true"), t.removeAttribute("custom-item-rendering-pending")) : (t.removeAttribute("custom-item-rendering-ready"), t.setAttribute("custom-item-rendering-pending", "true"));
176
- }, [o, i, y, l, c, d, n, m]), L(() => {
191
+ }, [o, i, v, l, d, b, n, p]), U(() => {
177
192
  const t = o.current?.shadowRoot;
178
193
  t && (t.querySelectorAll("[data-sortable-custom-handle]").forEach((e) => {
179
194
  e.removeAttribute("data-sortable-custom-handle"), e.removeAttribute("data-drag-trigger"), e.removeAttribute("data-id"), e.removeAttribute("draggable"), e.hasAttribute("data-sortable-handle-tabindex") && (e.removeAttribute("data-sortable-handle-tabindex"), e.removeAttribute("tabindex"));
180
- }), !(!i || !f || g === "item") && t.querySelectorAll("[data-sortable-custom-item][data-sortable-item-id]").forEach((e) => {
195
+ }), !(!i || !m || A === "item") && t.querySelectorAll("[data-sortable-custom-item][data-sortable-item-id]").forEach((e) => {
181
196
  const a = e.getAttribute("data-sortable-item-id");
182
- a && e.querySelectorAll(f).forEach((s) => {
183
- s.setAttribute("data-sortable-custom-handle", ""), s.setAttribute("data-drag-trigger", "custom"), s.setAttribute("data-id", a), s.setAttribute("draggable", "true"), s.hasAttribute("tabindex") || (s.setAttribute("tabindex", "-1"), s.setAttribute("data-sortable-handle-tabindex", ""));
197
+ a && e.querySelectorAll(m).forEach((s) => {
198
+ s.setAttribute("data-sortable-custom-handle", ""), s.setAttribute("data-drag-trigger", "custom"), s.setAttribute("data-id", a), s.hasAttribute("tabindex") || (s.setAttribute("tabindex", "-1"), s.setAttribute("data-sortable-handle-tabindex", ""));
184
199
  });
185
200
  }));
186
- }, [o, i, f, g, y, l, c, d, n, m]);
187
- const U = new Map(u.map((t) => [t.id, t])), G = new Map(u.map((t) => [t.id, l.filter((e) => e.listId === t.id).length])), W = !!m || n === "label" || !!d && !v, at = i ? l.map((t) => {
201
+ }, [o, i, m, A, v, l, d, b, n, p]);
202
+ const H = new Map(u.map((t) => [t.id, t])), tt = new Map(u.map((t) => [t.id, l.filter((e) => e.listId === t.id).length])), et = !!p || n === "label" || !!b && !w, ft = i ? l.map((t) => {
188
203
  const e = o.current?.shadowRoot?.querySelector(
189
204
  `.item-custom-content[data-item-content-target="${B(t.id)}"]`
190
205
  );
191
- return e ? _(
192
- /* @__PURE__ */ b.createElement(
206
+ return e ? J(
207
+ /* @__PURE__ */ f.createElement(
193
208
  "div",
194
209
  {
195
210
  "data-sortable-custom-item": "",
196
211
  "data-sortable-item-id": t.id,
197
- "data-selected": c?.includes(t.id) ? "true" : "false",
212
+ "data-selected": d?.includes(t.id) ? "true" : "false",
198
213
  "data-disabled": t.disabled ? "true" : "false",
199
214
  "data-drag-disabled": t.dragDisabled ? "true" : "false"
200
215
  },
201
216
  i(t, {
202
- selected: c?.includes(t.id) ?? !1,
217
+ selected: d?.includes(t.id) ?? !1,
203
218
  disabled: !!t.disabled,
204
219
  dragDisabled: !!t.dragDisabled,
205
- cloneOnDrag: !!t.cloneOnDrag || !!U.get(t.listId)?.cloneOnDrag,
206
- list: U.get(t.listId)
220
+ cloneOnDrag: !!t.cloneOnDrag || !!H.get(t.listId)?.cloneOnDrag,
221
+ list: H.get(t.listId)
207
222
  })
208
223
  ),
209
224
  e,
210
225
  t.id
211
226
  ) : null;
212
- }) : null, it = A ? u.map((t) => {
227
+ }) : null, mt = y ? u.map((t) => {
213
228
  const e = o.current?.shadowRoot?.querySelector(
214
229
  `.list-custom-header[data-list-header-target="${B(t.id)}"]`
215
230
  );
216
- return e ? _(
217
- /* @__PURE__ */ b.createElement("div", { "data-sortable-custom-list-header": "", "data-sortable-list-id": t.id }, A(t, {
218
- itemCount: G.get(t.id) ?? 0,
219
- dragLocked: W
231
+ return e ? J(
232
+ /* @__PURE__ */ f.createElement("div", { "data-sortable-custom-list-header": "", "data-sortable-list-id": t.id }, y(t, {
233
+ itemCount: tt.get(t.id) ?? 0,
234
+ dragLocked: et
220
235
  })),
221
236
  e,
222
237
  `header-${t.id}`
223
238
  ) : null;
224
- }) : null, ut = h ? u.map((t) => {
239
+ }) : null, pt = h ? u.map((t) => {
225
240
  const e = o.current?.shadowRoot?.querySelector(
226
241
  `.list-custom-empty[data-list-empty-target="${B(t.id)}"]`
227
242
  );
228
- return e ? _(
229
- /* @__PURE__ */ b.createElement("div", { "data-sortable-custom-empty": "", "data-sortable-list-id": t.id }, h(t, {
230
- itemCount: G.get(t.id) ?? 0,
231
- dragLocked: W,
232
- filterQuery: d ?? ""
243
+ return e ? J(
244
+ /* @__PURE__ */ f.createElement("div", { "data-sortable-custom-empty": "", "data-sortable-list-id": t.id }, h(t, {
245
+ itemCount: tt.get(t.id) ?? 0,
246
+ dragLocked: et,
247
+ filterQuery: b ?? ""
233
248
  })),
234
249
  e,
235
250
  `empty-${t.id}`
236
251
  ) : null;
237
- }) : null, X = { ref: o, ...rt };
238
- return i && (X["custom-item-rendering"] = ""), /* @__PURE__ */ b.createElement(b.Fragment, null, pt("ui-sortable", X, et), y >= 0 ? at : null, y >= 0 ? it : null, y >= 0 ? ut : null);
252
+ }) : null, rt = { ref: o, ...ct };
253
+ return i && (rt["custom-item-rendering"] = ""), /* @__PURE__ */ f.createElement(f.Fragment, null, Rt("ui-sortable", rt, lt), v >= 0 ? ft : null, v >= 0 ? mt : null, v >= 0 ? pt : null);
239
254
  });
240
- yt.displayName = "Sortable";
255
+ Pt.displayName = "Sortable";
241
256
  export {
242
- yt as Sortable,
243
- yt as default
257
+ Pt as Sortable,
258
+ Pt as default
244
259
  };
@@ -1,13 +1,15 @@
1
1
  import React from 'react';
2
2
  import '@editora/ui-core/gantt';
3
3
  export type GanttTaskType = 'task' | 'summary' | 'milestone';
4
- export type GanttZoom = 'day' | 'week' | 'month' | 'quarter' | 'year';
4
+ /** `fit` scales the whole project to the width of the chart; the others are fixed pixels-per-day scales. */
5
+ export type GanttZoom = 'day' | 'week' | 'month' | 'quarter' | 'year' | 'fit';
5
6
  export type GanttSort = 'none' | 'start' | 'end' | 'label' | 'progress';
6
7
  export type GanttBarVariant = 'solid' | 'soft' | 'striped' | 'outline' | 'glass';
7
8
  export type GanttTask = {
8
9
  id?: string;
9
10
  label: string;
10
- start: string | Date;
11
+ /** Required, except for a `type: 'summary'` parent while `autoSummary` is on: it takes its dates from its children. */
12
+ start?: string | Date;
11
13
  end?: string | Date;
12
14
  duration?: number;
13
15
  progress?: number;
@@ -32,18 +34,123 @@ export type GanttLink = {
32
34
  source: string;
33
35
  target: string;
34
36
  type?: 'e2s' | 's2s' | 'e2e' | 's2e';
37
+ /** Days the target must wait after what it follows; negative lets it overlap. Default 0. */
38
+ lag?: number;
35
39
  };
36
40
  export type GanttTaskChangeDetail = {
37
41
  id: string;
38
42
  start?: string;
39
43
  end?: string;
40
44
  };
45
+ export type GanttBeforeTaskChangeDetail = {
46
+ id: string;
47
+ start: string;
48
+ end: string;
49
+ previousStart: string;
50
+ previousEnd: string;
51
+ /** What moved it: a drag of the bar, a resize from a handle, or the keyboard. */
52
+ source: 'drag' | 'resize' | 'keyboard';
53
+ /** Other tasks the same change moves (empty unless cascade or scheduling is on). */
54
+ affected: Array<{
55
+ id: string;
56
+ start: string;
57
+ end: string;
58
+ previousStart: string;
59
+ previousEnd: string;
60
+ }>;
61
+ };
62
+ export type GanttTaskRenameDetail = {
63
+ id: string;
64
+ label: string;
65
+ previousLabel: string;
66
+ };
67
+ /** Where the user asked for a task: its dates (a week long) and the neighbour it was asked next to. */
68
+ export type GanttTaskCreateDetail = {
69
+ start: string;
70
+ end: string;
71
+ parent?: string;
72
+ after?: string;
73
+ };
74
+ export type GanttLinkCreateDetail = {
75
+ source: string;
76
+ target: string;
77
+ type: 'e2s' | 's2s' | 'e2e' | 's2e';
78
+ };
41
79
  export type GanttLinkSelectDetail = {
42
80
  id: string;
43
81
  source: string;
44
82
  target: string;
45
83
  type: GanttLink['type'];
46
84
  };
85
+ export type GanttColumnKey = 'label' | 'assignee' | 'owner' | 'dates' | 'start' | 'end' | 'duration' | 'progress';
86
+ /** A grid column: a key, or an object that also sets the header text and the width in px. */
87
+ export type GanttColumn = GanttColumnKey | {
88
+ key: GanttColumnKey;
89
+ label?: string;
90
+ width?: number;
91
+ };
92
+ /** Every word the chart shows or announces. `tasksCount` takes `{shown}` and `{total}`. */
93
+ export type GanttLabels = {
94
+ title: string;
95
+ tasksCount: string;
96
+ filterPlaceholder: string;
97
+ filterLabel: string;
98
+ sortLabel: string;
99
+ sortManual: string;
100
+ sortStart: string;
101
+ sortEnd: string;
102
+ sortName: string;
103
+ sortProgress: string;
104
+ zoomDay: string;
105
+ zoomWeek: string;
106
+ zoomMonth: string;
107
+ zoomQuarter: string;
108
+ zoomYear: string;
109
+ zoomFit: string;
110
+ zoomFitTitle: string;
111
+ columnTask: string;
112
+ columnOwner: string;
113
+ columnDates: string;
114
+ columnProgress: string;
115
+ columnStart: string;
116
+ columnEnd: string;
117
+ columnDuration: string;
118
+ splitter: string;
119
+ scrollToToday: string;
120
+ addTask: string;
121
+ rename: string;
122
+ linkViolated: string;
123
+ empty: string;
124
+ noMatches: string;
125
+ expand: string;
126
+ collapse: string;
127
+ timeline: string;
128
+ today: string;
129
+ summary: string;
130
+ milestone: string;
131
+ to: string;
132
+ complete: string;
133
+ assigned: string;
134
+ critical: string;
135
+ };
136
+ /** What `ref` gives you: the element, with the methods to move around the chart. */
137
+ export interface GanttElement extends HTMLElement {
138
+ /** Scroll the timeline to a date (`'YYYY-MM-DD'`, a `Date`, a timestamp or `'today'`). */
139
+ scrollToDate(date: string | number | Date, options?: {
140
+ behavior?: ScrollBehavior;
141
+ align?: 'center' | 'start';
142
+ }): void;
143
+ /** Open the branches above a task and bring its row and bar on screen. False when the task is not there or is filtered out. */
144
+ scrollToTask(id: string, options?: {
145
+ behavior?: ScrollBehavior;
146
+ }): boolean;
147
+ /** Open or close a branch (toggles when `open` is left out). */
148
+ toggleTask(id: string, open?: boolean): void;
149
+ expandAll(): void;
150
+ collapseAll(): void;
151
+ /** The whole chart as a standalone SVG string (rows follow the filter, sort and open branches; the scale is the one on screen). Empty when there is nothing to draw. */
152
+ exportSvg(): string;
153
+ }
47
154
  export type GanttProps = Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onSelect'> & {
48
155
  tasks?: GanttTask[];
49
156
  links?: GanttLink[];
@@ -57,6 +164,65 @@ export type GanttProps = Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'o
57
164
  filterText?: string;
58
165
  virtualized?: boolean;
59
166
  headless?: boolean;
167
+ /** First day of the week in the time header, as `Date#getDay` numbers it (0 is Sunday). Defaults to the locale's. */
168
+ weekStart?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
169
+ /** The task list's columns, in order. The name column is always first. Default: name, owner, dates, progress. */
170
+ columns?: GanttColumn[];
171
+ /** How dependencies are enforced: `'warn'` (the default) draws a link whose target is too early in the danger style, `'auto'` also pushes the tasks that follow a task that moves (later only, keeping their length), `'off'` does neither. */
172
+ schedule?: 'warn' | 'auto' | 'off';
173
+ /** Show a dot beside each bar that you can drag onto another bar to ask for a dependency (`onLinkCreate`). Off in a `readonly` chart. */
174
+ linkable?: boolean;
175
+ /** Mark the critical path from the links: the tasks with no slack on a tight chain of links (a task you flag `critical` stays). */
176
+ criticalPath?: boolean;
177
+ /** Weekdays that are not working days (0 is Sunday), or `'weekend'` for Saturday and Sunday. Shaded behind the rows where a day is wide enough to read. */
178
+ nonWorkingDays?: number[] | 'weekend';
179
+ /** Dates that are not working days: `'YYYY-MM-DD'` strings, `Date`s, or `{ date, label }`. Shaded apart from `nonWorkingDays`, and the label names them in the day header. */
180
+ holidays?: Array<string | Date | {
181
+ date: string | Date;
182
+ label?: string;
183
+ }>;
184
+ /** A parent's dates follow its children (the earliest start to the latest end), and so does its progress when it has none of its own. */
185
+ autoSummary?: boolean;
186
+ /** Moving a parent moves everything under it by the same days (a read-only task stays put). Makes parent bars draggable. */
187
+ cascade?: boolean;
188
+ /** Show a "+ Add task" button and let a double-click on empty timeline space ask for a task (`onTaskCreate`). Off in a `readonly` chart. */
189
+ creatable?: boolean;
190
+ /** How far a drag snaps: to whole `'day'`s (the default), `'week'`s or `'month'`s. Arrow keys still move a day at a time. */
191
+ snap?: 'day' | 'week' | 'month';
192
+ /** Where the chart opens: on `'today'` (the default, when today is not on the first screen) or at the `'start'`. */
193
+ initialScroll?: 'today' | 'start';
194
+ /** Fill the height of the container (which must have one): the toolbar keeps its height and the chart scrolls inside the rest. */
195
+ fill?: boolean;
196
+ /** Cap on the chart's height when it is not `fill`: a number (px) or a plain CSS length (`'60vh'`, `'none'`). Default 620px. */
197
+ maxHeight?: number | string;
198
+ /** Width of the task list in px. The user can also drag the splitter; see `onGridResize`. */
199
+ gridWidth?: number;
200
+ /** Translations: any subset of the labels. */
201
+ labels?: Partial<GanttLabels>;
202
+ /** BCP 47 locale for dates (month names, date formats, the week's first day). Defaults to the browser's. */
203
+ locale?: string;
204
+ /** Fired before a drag, resize or key changes dates. Call `event.preventDefault()` to refuse the change: nothing moves and `onTaskChange` does not fire. */
205
+ onBeforeTaskChange?: (detail: GanttBeforeTaskChangeDetail, event: CustomEvent<GanttBeforeTaskChangeDetail>) => void;
206
+ /** Fired when a name is edited in place (double-click it, or F2). Call `event.preventDefault()` to refuse. The component only keeps the new name until `tasks` is written again. */
207
+ onTaskRename?: (detail: GanttTaskRenameDetail, event: CustomEvent<GanttTaskRenameDetail>) => void;
208
+ /** Fired when the user asks for a new task (the Add button, or a double-click on empty timeline space). The host adds it. */
209
+ onTaskCreate?: (detail: GanttTaskCreateDetail, event: CustomEvent<GanttTaskCreateDetail>) => void;
210
+ /** Fired when a link is dropped on another task: the dot it started from (the source's start or end) and the half of the target it landed on give the type. The host adds the link. */
211
+ onLinkCreate?: (detail: GanttLinkCreateDetail, event: CustomEvent<GanttLinkCreateDetail>) => void;
212
+ /** Fired when Delete or Backspace is pressed on a selected link (click a link to select it). The host removes it. */
213
+ onLinkDelete?: (detail: GanttLinkSelectDetail, event: CustomEvent<GanttLinkSelectDetail>) => void;
214
+ onTaskToggle?: (detail: {
215
+ id: string;
216
+ open: boolean;
217
+ }, event: CustomEvent<{
218
+ id: string;
219
+ open: boolean;
220
+ }>) => void;
221
+ onGridResize?: (detail: {
222
+ width: number;
223
+ }, event: CustomEvent<{
224
+ width: number;
225
+ }>) => void;
60
226
  onTaskChange?: (detail: GanttTaskChangeDetail, event: CustomEvent<GanttTaskChangeDetail>) => void;
61
227
  onTaskSelect?: (detail: {
62
228
  id: string;
@@ -98,6 +264,65 @@ export declare const Gantt: React.ForwardRefExoticComponent<Omit<React.HTMLAttri
98
264
  filterText?: string;
99
265
  virtualized?: boolean;
100
266
  headless?: boolean;
267
+ /** First day of the week in the time header, as `Date#getDay` numbers it (0 is Sunday). Defaults to the locale's. */
268
+ weekStart?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
269
+ /** The task list's columns, in order. The name column is always first. Default: name, owner, dates, progress. */
270
+ columns?: GanttColumn[];
271
+ /** How dependencies are enforced: `'warn'` (the default) draws a link whose target is too early in the danger style, `'auto'` also pushes the tasks that follow a task that moves (later only, keeping their length), `'off'` does neither. */
272
+ schedule?: "warn" | "auto" | "off";
273
+ /** Show a dot beside each bar that you can drag onto another bar to ask for a dependency (`onLinkCreate`). Off in a `readonly` chart. */
274
+ linkable?: boolean;
275
+ /** Mark the critical path from the links: the tasks with no slack on a tight chain of links (a task you flag `critical` stays). */
276
+ criticalPath?: boolean;
277
+ /** Weekdays that are not working days (0 is Sunday), or `'weekend'` for Saturday and Sunday. Shaded behind the rows where a day is wide enough to read. */
278
+ nonWorkingDays?: number[] | "weekend";
279
+ /** Dates that are not working days: `'YYYY-MM-DD'` strings, `Date`s, or `{ date, label }`. Shaded apart from `nonWorkingDays`, and the label names them in the day header. */
280
+ holidays?: Array<string | Date | {
281
+ date: string | Date;
282
+ label?: string;
283
+ }>;
284
+ /** A parent's dates follow its children (the earliest start to the latest end), and so does its progress when it has none of its own. */
285
+ autoSummary?: boolean;
286
+ /** Moving a parent moves everything under it by the same days (a read-only task stays put). Makes parent bars draggable. */
287
+ cascade?: boolean;
288
+ /** Show a "+ Add task" button and let a double-click on empty timeline space ask for a task (`onTaskCreate`). Off in a `readonly` chart. */
289
+ creatable?: boolean;
290
+ /** How far a drag snaps: to whole `'day'`s (the default), `'week'`s or `'month'`s. Arrow keys still move a day at a time. */
291
+ snap?: "day" | "week" | "month";
292
+ /** Where the chart opens: on `'today'` (the default, when today is not on the first screen) or at the `'start'`. */
293
+ initialScroll?: "today" | "start";
294
+ /** Fill the height of the container (which must have one): the toolbar keeps its height and the chart scrolls inside the rest. */
295
+ fill?: boolean;
296
+ /** Cap on the chart's height when it is not `fill`: a number (px) or a plain CSS length (`'60vh'`, `'none'`). Default 620px. */
297
+ maxHeight?: number | string;
298
+ /** Width of the task list in px. The user can also drag the splitter; see `onGridResize`. */
299
+ gridWidth?: number;
300
+ /** Translations: any subset of the labels. */
301
+ labels?: Partial<GanttLabels>;
302
+ /** BCP 47 locale for dates (month names, date formats, the week's first day). Defaults to the browser's. */
303
+ locale?: string;
304
+ /** Fired before a drag, resize or key changes dates. Call `event.preventDefault()` to refuse the change: nothing moves and `onTaskChange` does not fire. */
305
+ onBeforeTaskChange?: (detail: GanttBeforeTaskChangeDetail, event: CustomEvent<GanttBeforeTaskChangeDetail>) => void;
306
+ /** Fired when a name is edited in place (double-click it, or F2). Call `event.preventDefault()` to refuse. The component only keeps the new name until `tasks` is written again. */
307
+ onTaskRename?: (detail: GanttTaskRenameDetail, event: CustomEvent<GanttTaskRenameDetail>) => void;
308
+ /** Fired when the user asks for a new task (the Add button, or a double-click on empty timeline space). The host adds it. */
309
+ onTaskCreate?: (detail: GanttTaskCreateDetail, event: CustomEvent<GanttTaskCreateDetail>) => void;
310
+ /** Fired when a link is dropped on another task: the dot it started from (the source's start or end) and the half of the target it landed on give the type. The host adds the link. */
311
+ onLinkCreate?: (detail: GanttLinkCreateDetail, event: CustomEvent<GanttLinkCreateDetail>) => void;
312
+ /** Fired when Delete or Backspace is pressed on a selected link (click a link to select it). The host removes it. */
313
+ onLinkDelete?: (detail: GanttLinkSelectDetail, event: CustomEvent<GanttLinkSelectDetail>) => void;
314
+ onTaskToggle?: (detail: {
315
+ id: string;
316
+ open: boolean;
317
+ }, event: CustomEvent<{
318
+ id: string;
319
+ open: boolean;
320
+ }>) => void;
321
+ onGridResize?: (detail: {
322
+ width: number;
323
+ }, event: CustomEvent<{
324
+ width: number;
325
+ }>) => void;
101
326
  onTaskChange?: (detail: GanttTaskChangeDetail, event: CustomEvent<GanttTaskChangeDetail>) => void;
102
327
  onTaskSelect?: (detail: {
103
328
  id: string;
@@ -125,6 +350,6 @@ export declare const Gantt: React.ForwardRefExoticComponent<Omit<React.HTMLAttri
125
350
  }, event: CustomEvent<{
126
351
  sort: GanttSort;
127
352
  }>) => void;
128
- } & React.RefAttributes<HTMLElement>>;
353
+ } & React.RefAttributes<GanttElement>>;
129
354
  export default Gantt;
130
355
  //# sourceMappingURL=Gantt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gantt.d.ts","sourceRoot":"","sources":["../../src/components/Gantt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkE,MAAM,OAAO,CAAC;AAEvF,OAAO,wBAAwB,CAAC;AAKhC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AACtE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEjF,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC7D,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,E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E,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,KAAK,IAAI;mBACpE,CAAC,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC,KAAK,IAAI;mBAClF,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,EAAE,KAAK,EAAE,WAAW,CAAC;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,KAAK,IAAI;qBAC5E,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,KAAK,EAAE,WAAW,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,KAAK,IAAI;mBAC9E,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,EAAE,KAAK,EAAE,WAAW,CAAC;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,KAAK,IAAI;sCAgM7F,CAAC;AAIH,eAAe,KAAK,CAAC"}
@@ -9,6 +9,9 @@ export type SortableDropIndicatorVisibility = 'active' | 'always';
9
9
  export type SortableDropzoneStyle = 'indicator' | 'container';
10
10
  export type SortableDragPreviewSize = 'match-item' | 'compact';
11
11
  export type SortableDragHandleMode = 'handle' | 'item';
12
+ export type SortableLabelKey = 'hintHandle' | 'hintItem' | 'hintCustom' | 'hintKeyboard' | 'hintNestGutter' | 'hintNestModifier' | 'hintNestArea' | 'hintPausedSort' | 'hintPausedFilter' | 'hintDisabled' | 'selectedOne' | 'selectedMany' | 'listReadOnly' | 'listClone' | 'listAccepts' | 'listFull' | 'emptyList' | 'dropHere' | 'nestHere' | 'badgeSelected' | 'badgeClone' | 'badgePinned' | 'dropPreview' | 'copyPreview' | 'releaseMove' | 'releaseMoveMany' | 'releaseCopy' | 'movingOne' | 'movingMany' | 'copyingOne' | 'copyingMany' | 'announceSelectedMany' | 'announceDragDisabled' | 'announceDragging' | 'announceDraggingMany' | 'announceDraggingCopy' | 'announceDraggingCopyMany' | 'announceCancelled' | 'announceRejected' | 'announceLifted' | 'announceLiftedMany' | 'announceLiftedHelp' | 'announceCopiedOne' | 'announceCopiedMany' | 'announceNestedOne' | 'announceNestedMany' | 'announceMovedOne' | 'announceMovedMany' | 'announceReorderedOne' | 'announceReorderedMany' | 'targetBefore' | 'targetInside' | 'targetEnd' | 'targetAfterChildren';
13
+ export type SortableLabels = Partial<Record<SortableLabelKey, string>>;
14
+ export type SortableNestTrigger = 'gutter' | 'modifier' | 'area';
12
15
  export type SortableRadiusPreset = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
13
16
  export type SortableRadius = SortableRadiusPreset | number | string;
14
17
  export type SortableSpacePreset = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -22,6 +25,12 @@ export type SortableList = {
22
25
  disabled?: boolean;
23
26
  cloneOnDrag?: boolean;
24
27
  accepts?: string[];
28
+ /** The most items the list can hold, at every nesting level. A move or copy that would go past it is refused. */
29
+ maxItems?: number;
30
+ /** The tallest the list's cards can be before the list scrolls on its own (a number of px, or a CSS length such as "20rem"). Overrides `listMaxHeight`. */
31
+ maxHeight?: number | string;
32
+ /** Anything of yours that is JSON-serialisable. It travels with the list and comes back in every event. */
33
+ data?: unknown;
25
34
  };
26
35
  export type SortableItem = {
27
36
  id: string;
@@ -34,6 +43,8 @@ export type SortableItem = {
34
43
  dragDisabled?: boolean;
35
44
  cloneOnDrag?: boolean;
36
45
  hidden?: boolean;
46
+ /** Anything of yours that is JSON-serialisable (a record, a price, a status). It travels with the item through moves and copies, and comes back in every event. */
47
+ data?: unknown;
37
48
  };
38
49
  export type SortableSelectionChangeDetail = {
39
50
  selection: string[];
@@ -49,6 +60,12 @@ export type SortablePersistenceSnapshot = {
49
60
  version: 1;
50
61
  records: SortablePersistenceRecord[];
51
62
  };
63
+ /** Set on the `change` of both sortables when items go from one to another (see `group`). */
64
+ export type SortableExternalMove = {
65
+ /** `in` on the sortable the items arrived in, `out` on the one they left. */
66
+ direction: 'in' | 'out';
67
+ peer: SortableElement;
68
+ };
52
69
  export type SortableChangeDetail = {
53
70
  items: SortableItem[];
54
71
  lists: SortableList[];
@@ -58,6 +75,8 @@ export type SortableChangeDetail = {
58
75
  source: SortableChangeSource;
59
76
  operation: SortableOperation;
60
77
  persistence: SortablePersistenceSnapshot;
78
+ /** Only when the items crossed between two sortables. */
79
+ external?: SortableExternalMove;
61
80
  };
62
81
  export type SortableRenderItemContext = {
63
82
  selected: boolean;
@@ -75,6 +94,28 @@ export type SortableRenderEmptyStateContext = {
75
94
  dragLocked: boolean;
76
95
  filterQuery: string;
77
96
  };
97
+ export type SortableDropInfo = {
98
+ /** The items being moved (not their children), as they are now. */
99
+ items: SortableItem[];
100
+ movedIds: string[];
101
+ targetListId: string;
102
+ parentId: string | null;
103
+ beforeId: string | null;
104
+ mode: SortableDropMode;
105
+ /** True when the items are copied rather than moved. */
106
+ clone: boolean;
107
+ /** The other sortable the items come from, when they are dropped across sortables (see `group`). */
108
+ from?: SortableElement;
109
+ };
110
+ export type SortableBeforeChangeDetail = SortableChangeDetail & {
111
+ target: {
112
+ listId: string;
113
+ parentId: string | null;
114
+ beforeId: string | null;
115
+ mode: SortableDropMode;
116
+ };
117
+ clone: boolean;
118
+ };
78
119
  export type SortableMoveOptions = {
79
120
  targetListId: string;
80
121
  beforeId?: string | null;
@@ -93,7 +134,10 @@ export type SortableElement = HTMLElement & {
93
134
  clearSelection(): void;
94
135
  cancelDrag(): void;
95
136
  focusItem(id: string): void;
96
- moveSelection(options: SortableMoveOptions): void;
137
+ moveSelection(options: SortableMoveOptions): boolean;
138
+ /** Moves (or copies) the selected items into another sortable, as if they were dragged there. */
139
+ moveSelectionTo(peer: SortableElement, options: SortableMoveOptions): boolean;
140
+ canDrop: ((info: SortableDropInfo) => boolean) | null;
97
141
  getPersistenceSnapshot(): SortablePersistenceSnapshot;
98
142
  };
99
143
  export type SortableProps = Omit<React.HTMLAttributes<SortableElement>, 'onChange'> & {
@@ -105,6 +149,13 @@ export type SortableProps = Omit<React.HTMLAttributes<SortableElement>, 'onChang
105
149
  persistKey?: string;
106
150
  allowFilteredDrag?: boolean;
107
151
  allowNesting?: boolean;
152
+ nestTrigger?: SortableNestTrigger;
153
+ /** Sortables with the same group can exchange items: drop a card on another one and both report it (`change`'s `external`). Ids must be unique across the group. */
154
+ group?: string;
155
+ /** Milliseconds a finger must rest on a card before it lifts (touch, dragging by the card). 0 lifts at once. Default 350. */
156
+ touchHoldDelay?: number;
157
+ /** The tallest the cards of a list can be before the list scrolls on its own: a number of px or a CSS length such as "20rem". A list's own `maxHeight` overrides it. */
158
+ listMaxHeight?: number | string;
108
159
  dropIndicatorVisibility?: SortableDropIndicatorVisibility;
109
160
  dropzoneStyle?: SortableDropzoneStyle;
110
161
  dragPreviewSize?: SortableDragPreviewSize;
@@ -114,11 +165,20 @@ export type SortableProps = Omit<React.HTMLAttributes<SortableElement>, 'onChang
114
165
  handleRadius?: SortableRadius;
115
166
  listGap?: SortableSpace;
116
167
  itemSpacing?: SortableSpace;
168
+ /** Decides whether items may go somewhere; return false to refuse. Asked on every pointer move, so keep it quick. */
169
+ canDrop?: (info: SortableDropInfo) => boolean;
117
170
  showSelectionBadge?: boolean;
171
+ labels?: SortableLabels;
172
+ hideToolbar?: boolean;
118
173
  disabled?: boolean;
119
174
  renderItem?: (item: SortableItem, context: SortableRenderItemContext) => React.ReactNode;
120
175
  renderListHeader?: (list: SortableList, context: SortableRenderListHeaderContext) => React.ReactNode;
121
176
  renderEmptyState?: (list: SortableList, context: SortableRenderEmptyStateContext) => React.ReactNode;
177
+ /**
178
+ * Called just before a move is applied, with the result it would have. Return `false` (or call
179
+ * `event.preventDefault()`) to cancel it: nothing changes and `onChange` does not fire.
180
+ */
181
+ onBeforeChange?: (detail: SortableBeforeChangeDetail, event: Event) => boolean | void;
122
182
  onChange?: (detail: SortableChangeDetail) => void;
123
183
  onItemsChange?: (items: SortableItem[]) => void;
124
184
  onSelectionChange?: (detail: SortableSelectionChangeDetail) => void;
@@ -133,6 +193,13 @@ export declare const Sortable: React.ForwardRefExoticComponent<Omit<React.HTMLAt
133
193
  persistKey?: string;
134
194
  allowFilteredDrag?: boolean;
135
195
  allowNesting?: boolean;
196
+ nestTrigger?: SortableNestTrigger;
197
+ /** Sortables with the same group can exchange items: drop a card on another one and both report it (`change`'s `external`). Ids must be unique across the group. */
198
+ group?: string;
199
+ /** Milliseconds a finger must rest on a card before it lifts (touch, dragging by the card). 0 lifts at once. Default 350. */
200
+ touchHoldDelay?: number;
201
+ /** The tallest the cards of a list can be before the list scrolls on its own: a number of px or a CSS length such as "20rem". A list's own `maxHeight` overrides it. */
202
+ listMaxHeight?: number | string;
136
203
  dropIndicatorVisibility?: SortableDropIndicatorVisibility;
137
204
  dropzoneStyle?: SortableDropzoneStyle;
138
205
  dragPreviewSize?: SortableDragPreviewSize;
@@ -142,11 +209,20 @@ export declare const Sortable: React.ForwardRefExoticComponent<Omit<React.HTMLAt
142
209
  handleRadius?: SortableRadius;
143
210
  listGap?: SortableSpace;
144
211
  itemSpacing?: SortableSpace;
212
+ /** Decides whether items may go somewhere; return false to refuse. Asked on every pointer move, so keep it quick. */
213
+ canDrop?: (info: SortableDropInfo) => boolean;
145
214
  showSelectionBadge?: boolean;
215
+ labels?: SortableLabels;
216
+ hideToolbar?: boolean;
146
217
  disabled?: boolean;
147
218
  renderItem?: (item: SortableItem, context: SortableRenderItemContext) => React.ReactNode;
148
219
  renderListHeader?: (list: SortableList, context: SortableRenderListHeaderContext) => React.ReactNode;
149
220
  renderEmptyState?: (list: SortableList, context: SortableRenderEmptyStateContext) => React.ReactNode;
221
+ /**
222
+ * Called just before a move is applied, with the result it would have. Return `false` (or call
223
+ * `event.preventDefault()`) to cancel it: nothing changes and `onChange` does not fire.
224
+ */
225
+ onBeforeChange?: (detail: SortableBeforeChangeDetail, event: Event) => boolean | void;
150
226
  onChange?: (detail: SortableChangeDetail) => void;
151
227
  onItemsChange?: (items: SortableItem[]) => void;
152
228
  onSelectionCh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yCAubzD,CAAC;AAIH,eAAe,QAAQ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -54,7 +54,7 @@ export { TimePicker } from './components/TimePicker';
54
54
  export { DateTimePicker } from './components/DateTimePicker';
55
55
  export { DateRangeTimePicker } from './components/DateRangeTimePicker';
56
56
  export { Gantt } from './components/Gantt';
57
- export type { GanttBarVariant, GanttLink, GanttLinkSelectDetail, GanttSort, GanttTask, GanttTaskChangeDetail, GanttTaskType, GanttZoom, } from './components/Gantt';
57
+ export type { GanttBarVariant, GanttBeforeTaskChangeDetail, GanttColumn, GanttColumnKey, GanttElement, GanttLabels, GanttLink, GanttLinkCreateDetail, GanttLinkSelectDetail, GanttSort, GanttTask, GanttTaskChangeDetail, GanttTaskCreateDetail, GanttTaskRenameDetail, GanttTaskType, GanttZoom, } from './components/Gantt';
58
58
  export { Stepper } from './components/Stepper';
59
59
  export { Wizard } from './components/Wizard';
60
60
  export { Rating } from './components/Rating';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClG,OAAO,EACL,QAAQ,EACR,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChI,OAAO,EAAE,aAAa,EAAE,MAAM,4B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c,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,GACjC,MAAM,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editora/ui-react",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "Enterprise React component library with SaaS UI components, modern design system patterns, and wrappers for Editora UI Core.",
5
5
  "homepage": "https://editora-ecosystem.netlify.app/docs/ui-react",
6
6
  "bugs": {
@@ -854,7 +854,7 @@
854
854
  },
855
855
  "dependencies": {
856
856
  "@editora/toast": "^2.0.10",
857
- "@editora/ui-core": "^0.1.23"
857
+ "@editora/ui-core": "^0.1.25"
858
858
  },
859
859
  "keywords": [
860
860
  "editora",