orbcafe-ui 1.3.3 → 1.3.6

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 CHANGED
@@ -422,6 +422,10 @@ interface CTableHeadProps {
422
422
  visibleColumns: string[];
423
423
  order: 'asc' | 'desc';
424
424
  orderBy: string;
425
+ sortBy?: Array<{
426
+ field: string;
427
+ direction: 'asc' | 'desc';
428
+ }>;
425
429
  onRequestSort: (property: string) => void;
426
430
  onContextMenu?: (event: React.MouseEvent, columnId: string) => void;
427
431
  selectionMode?: 'single' | 'multiple';
@@ -433,6 +437,7 @@ interface CTableHeadProps {
433
437
  onSelectAllClick?: (event: React.ChangeEvent<HTMLInputElement>) => void;
434
438
  columnWidths?: Record<string, number>;
435
439
  onColumnResize?: (columnId: string, width: number) => void;
440
+ enableColumnReorder?: boolean;
436
441
  }
437
442
  interface CTableBodyProps {
438
443
  visibleRows: any[];
@@ -1341,6 +1346,21 @@ declare const en: {
1341
1346
  readonly 'table.group.expandAll': "Expand All Groups";
1342
1347
  readonly 'table.group.collapseAll': "Collapse All Groups";
1343
1348
  readonly 'table.mobile.notImplemented': "Mobile View Not Implemented";
1349
+ readonly 'table.headerMenu.sortAsc': "Sort Ascending";
1350
+ readonly 'table.headerMenu.sortDesc': "Sort Descending";
1351
+ readonly 'table.headerMenu.clearSort': "Clear Sort";
1352
+ readonly 'table.headerMenu.configureSort': "Configure Sort...";
1353
+ readonly 'table.headerMenu.group': "Group by this column";
1354
+ readonly 'table.headerMenu.ungroup': "Remove from grouping";
1355
+ readonly 'table.headerMenu.addSummary': "Include in Summary";
1356
+ readonly 'table.headerMenu.removeSummary': "Remove from Summary";
1357
+ readonly 'table.headerMenu.hideColumn': "Hide Column";
1358
+ readonly 'table.sortDialog.title': "Sort Settings";
1359
+ readonly 'table.sortDialog.empty': "No sort rules. Add one to start ordering rows.";
1360
+ readonly 'table.sortDialog.addRule': "Add Sort Rule";
1361
+ readonly 'table.sortDialog.clearAll': "Clear All";
1362
+ readonly 'table.sortDialog.asc': "Ascending";
1363
+ readonly 'table.sortDialog.desc': "Descending";
1344
1364
  readonly 'pivot.title.default': "Pivot Table Builder";
1345
1365
  readonly 'pivot.subtitle.default': "Drag fields to configure the pivot table.";
1346
1366
  readonly 'pivot.empty': "Drag at least one field into Values to render the pivot result.";
@@ -2224,6 +2244,12 @@ interface CPlanningGanttProps {
2224
2244
  columns?: PlanningGanttColumn[];
2225
2245
  scale?: PlanningGanttScale;
2226
2246
  onScaleChange?: (scale: PlanningGanttScale) => void;
2247
+ page?: number;
2248
+ rowsPerPage?: number;
2249
+ rowsPerPageOptions?: number[];
2250
+ count?: number;
2251
+ onPageChange?: (page: number) => void;
2252
+ onRowsPerPageChange?: (rowsPerPage: number) => void;
2227
2253
  timelineStart?: string;
2228
2254
  timelineEnd?: string;
2229
2255
  selectedTaskId?: string;
@@ -2247,6 +2273,12 @@ interface UsePlanningGanttOptions {
2247
2273
  filterAppId?: string;
2248
2274
  filterTableKey?: string;
2249
2275
  columns?: CPlanningGanttProps['columns'];
2276
+ page?: CPlanningGanttProps['page'];
2277
+ rowsPerPage?: CPlanningGanttProps['rowsPerPage'];
2278
+ rowsPerPageOptions?: CPlanningGanttProps['rowsPerPageOptions'];
2279
+ count?: CPlanningGanttProps['count'];
2280
+ onPageChange?: CPlanningGanttProps['onPageChange'];
2281
+ onRowsPerPageChange?: CPlanningGanttProps['onRowsPerPageChange'];
2250
2282
  onFilterSearch?: () => void;
2251
2283
  onFilterVariantLoad?: CSmartFilterProps['onVariantLoad'];
2252
2284
  enableRowReorder?: CPlanningGanttProps['enableRowReorder'];
@@ -2261,9 +2293,9 @@ interface UsePlanningGanttResult {
2261
2293
  setFilters: (filters: Record<string, FilterValue>) => void;
2262
2294
  filteredTasks: PlanningTaskRecord[];
2263
2295
  smartFilterProps: Pick<CSmartFilterProps, 'fields' | 'filters' | 'onFilterChange' | 'onVariantLoad' | 'onSearch' | 'appId' | 'tableKey'>;
2264
- planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'columns' | 'scale' | 'onScaleChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder'>;
2296
+ planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'columns' | 'scale' | 'onScaleChange' | 'page' | 'rowsPerPage' | 'rowsPerPageOptions' | 'count' | 'onPageChange' | 'onRowsPerPageChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder'>;
2265
2297
  }
2266
- declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, columns, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
2298
+ declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, columns, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
2267
2299
 
2268
2300
  interface CPlanningLayoutProps {
2269
2301
  filterProps: CSmartFilterProps;
@@ -2281,7 +2313,7 @@ interface UsePlanningLayoutResult extends UsePlanningGanttResult {
2281
2313
  }
2282
2314
  declare const usePlanningLayout: (options: UsePlanningLayoutOptions) => UsePlanningLayoutResult;
2283
2315
 
2284
- declare const CPlanningGantt: ({ title, subtitle, extraTools, bodyHeight, tasks, columns, scale, onScaleChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
2316
+ declare const CPlanningGantt: ({ title, extraTools, bodyHeight, tasks, columns, scale, onScaleChange, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
2285
2317
 
2286
2318
  interface MarkdownRendererProps {
2287
2319
  markdown?: string;
package/dist/index.d.ts CHANGED
@@ -422,6 +422,10 @@ interface CTableHeadProps {
422
422
  visibleColumns: string[];
423
423
  order: 'asc' | 'desc';
424
424
  orderBy: string;
425
+ sortBy?: Array<{
426
+ field: string;
427
+ direction: 'asc' | 'desc';
428
+ }>;
425
429
  onRequestSort: (property: string) => void;
426
430
  onContextMenu?: (event: React.MouseEvent, columnId: string) => void;
427
431
  selectionMode?: 'single' | 'multiple';
@@ -433,6 +437,7 @@ interface CTableHeadProps {
433
437
  onSelectAllClick?: (event: React.ChangeEvent<HTMLInputElement>) => void;
434
438
  columnWidths?: Record<string, number>;
435
439
  onColumnResize?: (columnId: string, width: number) => void;
440
+ enableColumnReorder?: boolean;
436
441
  }
437
442
  interface CTableBodyProps {
438
443
  visibleRows: any[];
@@ -1341,6 +1346,21 @@ declare const en: {
1341
1346
  readonly 'table.group.expandAll': "Expand All Groups";
1342
1347
  readonly 'table.group.collapseAll': "Collapse All Groups";
1343
1348
  readonly 'table.mobile.notImplemented': "Mobile View Not Implemented";
1349
+ readonly 'table.headerMenu.sortAsc': "Sort Ascending";
1350
+ readonly 'table.headerMenu.sortDesc': "Sort Descending";
1351
+ readonly 'table.headerMenu.clearSort': "Clear Sort";
1352
+ readonly 'table.headerMenu.configureSort': "Configure Sort...";
1353
+ readonly 'table.headerMenu.group': "Group by this column";
1354
+ readonly 'table.headerMenu.ungroup': "Remove from grouping";
1355
+ readonly 'table.headerMenu.addSummary': "Include in Summary";
1356
+ readonly 'table.headerMenu.removeSummary': "Remove from Summary";
1357
+ readonly 'table.headerMenu.hideColumn': "Hide Column";
1358
+ readonly 'table.sortDialog.title': "Sort Settings";
1359
+ readonly 'table.sortDialog.empty': "No sort rules. Add one to start ordering rows.";
1360
+ readonly 'table.sortDialog.addRule': "Add Sort Rule";
1361
+ readonly 'table.sortDialog.clearAll': "Clear All";
1362
+ readonly 'table.sortDialog.asc': "Ascending";
1363
+ readonly 'table.sortDialog.desc': "Descending";
1344
1364
  readonly 'pivot.title.default': "Pivot Table Builder";
1345
1365
  readonly 'pivot.subtitle.default': "Drag fields to configure the pivot table.";
1346
1366
  readonly 'pivot.empty': "Drag at least one field into Values to render the pivot result.";
@@ -2224,6 +2244,12 @@ interface CPlanningGanttProps {
2224
2244
  columns?: PlanningGanttColumn[];
2225
2245
  scale?: PlanningGanttScale;
2226
2246
  onScaleChange?: (scale: PlanningGanttScale) => void;
2247
+ page?: number;
2248
+ rowsPerPage?: number;
2249
+ rowsPerPageOptions?: number[];
2250
+ count?: number;
2251
+ onPageChange?: (page: number) => void;
2252
+ onRowsPerPageChange?: (rowsPerPage: number) => void;
2227
2253
  timelineStart?: string;
2228
2254
  timelineEnd?: string;
2229
2255
  selectedTaskId?: string;
@@ -2247,6 +2273,12 @@ interface UsePlanningGanttOptions {
2247
2273
  filterAppId?: string;
2248
2274
  filterTableKey?: string;
2249
2275
  columns?: CPlanningGanttProps['columns'];
2276
+ page?: CPlanningGanttProps['page'];
2277
+ rowsPerPage?: CPlanningGanttProps['rowsPerPage'];
2278
+ rowsPerPageOptions?: CPlanningGanttProps['rowsPerPageOptions'];
2279
+ count?: CPlanningGanttProps['count'];
2280
+ onPageChange?: CPlanningGanttProps['onPageChange'];
2281
+ onRowsPerPageChange?: CPlanningGanttProps['onRowsPerPageChange'];
2250
2282
  onFilterSearch?: () => void;
2251
2283
  onFilterVariantLoad?: CSmartFilterProps['onVariantLoad'];
2252
2284
  enableRowReorder?: CPlanningGanttProps['enableRowReorder'];
@@ -2261,9 +2293,9 @@ interface UsePlanningGanttResult {
2261
2293
  setFilters: (filters: Record<string, FilterValue>) => void;
2262
2294
  filteredTasks: PlanningTaskRecord[];
2263
2295
  smartFilterProps: Pick<CSmartFilterProps, 'fields' | 'filters' | 'onFilterChange' | 'onVariantLoad' | 'onSearch' | 'appId' | 'tableKey'>;
2264
- planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'columns' | 'scale' | 'onScaleChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder'>;
2296
+ planningGanttProps: Pick<CPlanningGanttProps, 'tasks' | 'columns' | 'scale' | 'onScaleChange' | 'page' | 'rowsPerPage' | 'rowsPerPageOptions' | 'count' | 'onPageChange' | 'onRowsPerPageChange' | 'selectedTaskId' | 'onTaskSelect' | 'enableRowReorder' | 'onTaskReorder'>;
2265
2297
  }
2266
- declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, columns, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
2298
+ declare const usePlanningGantt: ({ tasks, defaultScale, defaultSelectedTaskId, initialFilters, filterFields, filterAppId, filterTableKey, columns, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, onFilterSearch, onFilterVariantLoad, enableRowReorder, onTaskReorder, }: UsePlanningGanttOptions) => UsePlanningGanttResult;
2267
2299
 
2268
2300
  interface CPlanningLayoutProps {
2269
2301
  filterProps: CSmartFilterProps;
@@ -2281,7 +2313,7 @@ interface UsePlanningLayoutResult extends UsePlanningGanttResult {
2281
2313
  }
2282
2314
  declare const usePlanningLayout: (options: UsePlanningLayoutOptions) => UsePlanningLayoutResult;
2283
2315
 
2284
- declare const CPlanningGantt: ({ title, subtitle, extraTools, bodyHeight, tasks, columns, scale, onScaleChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
2316
+ declare const CPlanningGantt: ({ title, extraTools, bodyHeight, tasks, columns, scale, onScaleChange, page, rowsPerPage, rowsPerPageOptions, count, onPageChange, onRowsPerPageChange, timelineStart, timelineEnd, selectedTaskId, onTaskSelect, enableRowReorder, onTaskReorder, emptyLabel, sx, }: CPlanningGanttProps) => react_jsx_runtime.JSX.Element;
2285
2317
 
2286
2318
  interface MarkdownRendererProps {
2287
2319
  markdown?: string;