rez-table-listing-mui 2.0.14 → 2.0.15
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.ts +42 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/kanban/hooks/hooks.ts +18 -1
- package/src/listing/components/table-settings/components/lane.tsx +232 -120
- package/src/listing/components/table-settings/components/swim-lane.tsx +293 -109
- package/src/listing/components/table-settings/index.tsx +17 -1
- package/src/listing/libs/hooks/useCraftTableFilterSettings.tsx +5 -0
- package/src/listing/libs/hooks/useEntityTableAPI.tsx +12 -4
- package/src/listing/libs/utils/apiColumn.ts +13 -4
- package/src/listing/types/filter-settings.ts +29 -0
- package/src/listing/types/table-options.ts +3 -0
- package/src/view/KanbanView.tsx +65 -7
package/dist/index.d.ts
CHANGED
|
@@ -357,9 +357,19 @@ interface QuickFilterModalProps {
|
|
|
357
357
|
label: string;
|
|
358
358
|
value: string;
|
|
359
359
|
}[];
|
|
360
|
+
laneHideListData?: {
|
|
361
|
+
label: string;
|
|
362
|
+
value: string;
|
|
363
|
+
}[];
|
|
364
|
+
swimLaneHideListData?: {
|
|
365
|
+
label: string;
|
|
366
|
+
value: string;
|
|
367
|
+
}[];
|
|
368
|
+
onSaveKanbanSettingsData?: (data: KanbanSettingsDataProps) => void;
|
|
360
369
|
}
|
|
361
370
|
type SortingType = "asc" | "desc";
|
|
362
371
|
type QuickTabSortingType = "asc" | "dsc" | "count_asc" | "count_dsc" | "custom";
|
|
372
|
+
type KanbanSortingType = "asc" | "dsc" | "count_asc" | "count_dsc" | "custom" | "sort_by" | null;
|
|
363
373
|
interface QuickTabConfigProps {
|
|
364
374
|
attribute?: string;
|
|
365
375
|
sorting?: QuickTabSortingType;
|
|
@@ -374,6 +384,31 @@ interface QuickTabConfigProps {
|
|
|
374
384
|
isAllSelected?: boolean;
|
|
375
385
|
isCombineOther?: boolean;
|
|
376
386
|
}
|
|
387
|
+
interface LaneTabConfigProps {
|
|
388
|
+
attribute?: string;
|
|
389
|
+
sorting?: KanbanSortingType;
|
|
390
|
+
hide_list?: {
|
|
391
|
+
label: string;
|
|
392
|
+
value: string;
|
|
393
|
+
}[];
|
|
394
|
+
show_list?: {
|
|
395
|
+
label: string;
|
|
396
|
+
value: string;
|
|
397
|
+
}[];
|
|
398
|
+
isSubLane?: boolean;
|
|
399
|
+
}
|
|
400
|
+
interface SwimLameTabConfigProps {
|
|
401
|
+
attribute?: string;
|
|
402
|
+
sorting?: KanbanSortingType;
|
|
403
|
+
hide_list?: {
|
|
404
|
+
label: string;
|
|
405
|
+
value: string;
|
|
406
|
+
}[];
|
|
407
|
+
show_list?: {
|
|
408
|
+
label: string;
|
|
409
|
+
value: string;
|
|
410
|
+
}[];
|
|
411
|
+
}
|
|
377
412
|
interface ColumnItem {
|
|
378
413
|
label: string;
|
|
379
414
|
value: string;
|
|
@@ -417,6 +452,10 @@ interface SettingsDataProps {
|
|
|
417
452
|
column?: ColumnTabConfigProps;
|
|
418
453
|
sorting?: SortingConfigProps;
|
|
419
454
|
}
|
|
455
|
+
interface KanbanSettingsDataProps {
|
|
456
|
+
lane?: LaneTabConfigProps;
|
|
457
|
+
swim_lane?: SwimLameTabConfigProps;
|
|
458
|
+
}
|
|
420
459
|
interface SavedButtonErrorProps {
|
|
421
460
|
hasError: boolean;
|
|
422
461
|
messages: {
|
|
@@ -462,6 +501,8 @@ interface CraftTableOptionsProps {
|
|
|
462
501
|
interface craftTableFilterSettingsOptionsProps {
|
|
463
502
|
settingsData: SettingsDataProps;
|
|
464
503
|
setSettingsData: Dispatch<SetStateAction<SettingsDataProps>>;
|
|
504
|
+
kanbanSettingsData: KanbanSettingsDataProps;
|
|
505
|
+
setKanbanSettingsData: Dispatch<SetStateAction<KanbanSettingsDataProps>>;
|
|
465
506
|
showListViewSettings: boolean;
|
|
466
507
|
setShowListViewSettings: Dispatch<SetStateAction<boolean>>;
|
|
467
508
|
quickTabStates: QuickTabConfigProps;
|
|
@@ -611,7 +652,7 @@ declare function TableTabs({ loading, tabsData, activeTab, onClick, tableStates,
|
|
|
611
652
|
|
|
612
653
|
declare function TableFilter({ onClose, columnsData, tableStates, onDeleteFilter, onSaveFilter, onUpdateFilter, dropdownData, onChangeFunction, filterComponentOptions, isFlatJson, }: FilterDrawerProps): react_jsx_runtime.JSX.Element;
|
|
613
654
|
|
|
614
|
-
declare function QuickFilterSettings({ view, isFlatJson, show, filterSettingStates, onClose, columnsData, columnsDataLoading, quickTabAttributes, quickTabAttributesLoading, columnTabAttributes, columnTabAttributesLoading, sortingTabAttributes, sortingTabAttributesLoading, tabsApiData, tabsApiDataLoading, onSaveSettingsData, activeTab, selectAttributeData, selectSwinLandData, }: QuickFilterModalProps): react_jsx_runtime.JSX.Element;
|
|
655
|
+
declare function QuickFilterSettings({ view, isFlatJson, show, filterSettingStates, onClose, columnsData, columnsDataLoading, quickTabAttributes, quickTabAttributesLoading, columnTabAttributes, columnTabAttributesLoading, sortingTabAttributes, sortingTabAttributesLoading, tabsApiData, tabsApiDataLoading, onSaveSettingsData, activeTab, selectAttributeData, selectSwinLandData, laneHideListData, swimLaneHideListData, onSaveKanbanSettingsData, }: QuickFilterModalProps): react_jsx_runtime.JSX.Element;
|
|
615
656
|
|
|
616
657
|
interface TableSearchProps {
|
|
617
658
|
value: string;
|