orbcafe-ui 1.2.7 → 1.2.8
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/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +17 -17
- package/dist/index.mjs +15 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2160,6 +2160,7 @@ interface PlanningTaskRecord {
|
|
|
2160
2160
|
priority?: 'low' | 'medium' | 'high' | 'critical';
|
|
2161
2161
|
dependencyIds?: string[];
|
|
2162
2162
|
color?: string;
|
|
2163
|
+
reorderable?: boolean;
|
|
2163
2164
|
children?: PlanningTaskRecord[];
|
|
2164
2165
|
}
|
|
2165
2166
|
interface PlanningGanttColumn {
|
|
@@ -2186,6 +2187,11 @@ interface CPlanningGanttProps {
|
|
|
2186
2187
|
timelineEnd?: string;
|
|
2187
2188
|
selectedTaskId?: string;
|
|
2188
2189
|
onTaskSelect?: (task: PlanningTaskRecord) => void;
|
|
2190
|
+
enableRowReorder?: boolean;
|
|
2191
|
+
onTaskReorder?: (orderedTasks: PlanningTaskRecord[], context: {
|
|
2192
|
+
activeTask: PlanningTaskRecord;
|
|
2193
|
+
targetTask: PlanningTaskRecord;
|
|
2194
|
+
}) => void;
|
|
2189
2195
|
summaryItems?: PlanningGanttSummaryItem[];
|
|
2190
2196
|
emptyLabel?: string;
|
|
2191
2197
|
sx?: SxProps<Theme>;
|
|
@@ -2201,6 +2207,8 @@ interface UsePlanningGanttOptions {
|
|
|
2201
2207
|
filterTableKey?: string;
|
|
2202
2208
|
onFilterSearch?: () => void;
|
|
2203
2209
|
onFilterVariantLoad?: CSmartFilterProps['onVariantLoad'];
|
|
2210
|
+
enableRowReorder?: CPlanningGanttProps['enableRowReorder'];
|
|
2211
|
+
onTaskReorder?: CPlanningGanttProps['onTaskReorder'];
|
|
2204
2212
|
}
|
|
2205
2213
|
interface UsePlanningGanttResult {
|
|
2206
2214
|
scale: PlanningGanttScale;
|
|
@@ -2211,9 +2219,9 @@ interface UsePlanningGanttResult {
|
|
|
2211
2219
|
setFilters: (filters: Record<string, FilterValue>) => void;
|
|
2212
2220
|
filteredTasks: PlanningTaskRecord[];
|
|
2213
2221
|
smartFilterProps: Pick<CSmartFilterProps, 'fields' | 'filters' | 'onFilterChange' | 'onVariantLoad' | 'onSearch' | 'appId' | 'tableKey'>;
|
|
2214
|
-
planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'scale' | 'onScaleChange' | 'selectedTaskId' | 'onTaskSelect'>;
|
|
2222
|
+
planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'scale' | 'onScaleChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder'>;
|
|
2215
2223
|
}
|
|
2216
|
-
declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, onFilterSearch, onFilterVariantLoad, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
|
|
2224
|
+
declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
|
|
2217
2225
|
|
|
2218
2226
|
interface CPlanningLayoutProps {
|
|
2219
2227
|
filterProps: CSmartFilterProps;
|
|
@@ -2231,7 +2239,7 @@ interface UsePlanningLayoutResult extends UsePlanningGanttResult {
|
|
|
2231
2239
|
}
|
|
2232
2240
|
declare const usePlanningLayout: (options: UsePlanningLayoutOptions) => UsePlanningLayoutResult;
|
|
2233
2241
|
|
|
2234
|
-
declare const CPlanningGantt: ({ title, subtitle, extraTools, bodyHeight, tasks, scale, onScaleChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
|
|
2242
|
+
declare const CPlanningGantt: ({ title, subtitle, extraTools, bodyHeight, tasks, scale, onScaleChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
|
|
2235
2243
|
|
|
2236
2244
|
interface MarkdownRendererProps {
|
|
2237
2245
|
markdown?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2160,6 +2160,7 @@ interface PlanningTaskRecord {
|
|
|
2160
2160
|
priority?: 'low' | 'medium' | 'high' | 'critical';
|
|
2161
2161
|
dependencyIds?: string[];
|
|
2162
2162
|
color?: string;
|
|
2163
|
+
reorderable?: boolean;
|
|
2163
2164
|
children?: PlanningTaskRecord[];
|
|
2164
2165
|
}
|
|
2165
2166
|
interface PlanningGanttColumn {
|
|
@@ -2186,6 +2187,11 @@ interface CPlanningGanttProps {
|
|
|
2186
2187
|
timelineEnd?: string;
|
|
2187
2188
|
selectedTaskId?: string;
|
|
2188
2189
|
onTaskSelect?: (task: PlanningTaskRecord) => void;
|
|
2190
|
+
enableRowReorder?: boolean;
|
|
2191
|
+
onTaskReorder?: (orderedTasks: PlanningTaskRecord[], context: {
|
|
2192
|
+
activeTask: PlanningTaskRecord;
|
|
2193
|
+
targetTask: PlanningTaskRecord;
|
|
2194
|
+
}) => void;
|
|
2189
2195
|
summaryItems?: PlanningGanttSummaryItem[];
|
|
2190
2196
|
emptyLabel?: string;
|
|
2191
2197
|
sx?: SxProps<Theme>;
|
|
@@ -2201,6 +2207,8 @@ interface UsePlanningGanttOptions {
|
|
|
2201
2207
|
filterTableKey?: string;
|
|
2202
2208
|
onFilterSearch?: () => void;
|
|
2203
2209
|
onFilterVariantLoad?: CSmartFilterProps['onVariantLoad'];
|
|
2210
|
+
enableRowReorder?: CPlanningGanttProps['enableRowReorder'];
|
|
2211
|
+
onTaskReorder?: CPlanningGanttProps['onTaskReorder'];
|
|
2204
2212
|
}
|
|
2205
2213
|
interface UsePlanningGanttResult {
|
|
2206
2214
|
scale: PlanningGanttScale;
|
|
@@ -2211,9 +2219,9 @@ interface UsePlanningGanttResult {
|
|
|
2211
2219
|
setFilters: (filters: Record<string, FilterValue>) => void;
|
|
2212
2220
|
filteredTasks: PlanningTaskRecord[];
|
|
2213
2221
|
smartFilterProps: Pick<CSmartFilterProps, 'fields' | 'filters' | 'onFilterChange' | 'onVariantLoad' | 'onSearch' | 'appId' | 'tableKey'>;
|
|
2214
|
-
planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'scale' | 'onScaleChange' | 'selectedTaskId' | 'onTaskSelect'>;
|
|
2222
|
+
planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'scale' | 'onScaleChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder'>;
|
|
2215
2223
|
}
|
|
2216
|
-
declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, onFilterSearch, onFilterVariantLoad, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
|
|
2224
|
+
declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
|
|
2217
2225
|
|
|
2218
2226
|
interface CPlanningLayoutProps {
|
|
2219
2227
|
filterProps: CSmartFilterProps;
|
|
@@ -2231,7 +2239,7 @@ interface UsePlanningLayoutResult extends UsePlanningGanttResult {
|
|
|
2231
2239
|
}
|
|
2232
2240
|
declare const usePlanningLayout: (options: UsePlanningLayoutOptions) => UsePlanningLayoutResult;
|
|
2233
2241
|
|
|
2234
|
-
declare const CPlanningGantt: ({ title, subtitle, extraTools, bodyHeight, tasks, scale, onScaleChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
|
|
2242
|
+
declare const CPlanningGantt: ({ title, subtitle, extraTools, bodyHeight, tasks, scale, onScaleChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
|
|
2235
2243
|
|
|
2236
2244
|
interface MarkdownRendererProps {
|
|
2237
2245
|
markdown?: string;
|