rez-table-listing-mui 1.2.12 → 1.2.14

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.
Files changed (127) hide show
  1. package/dist/index.d.ts +116 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/dist/index.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/src/App.tsx +47 -405
  8. package/src/assets/Satoshi/Satoshi-Black.ttf +0 -0
  9. package/src/assets/Satoshi/Satoshi-BlackItalic.ttf +0 -0
  10. package/src/assets/Satoshi/Satoshi-Bold.ttf +0 -0
  11. package/src/assets/Satoshi/Satoshi-BoldItalic.ttf +0 -0
  12. package/src/assets/Satoshi/Satoshi-Italic.ttf +0 -0
  13. package/src/assets/Satoshi/Satoshi-Light.ttf +0 -0
  14. package/src/assets/Satoshi/Satoshi-LightItalic.ttf +0 -0
  15. package/src/assets/Satoshi/Satoshi-Medium.ttf +0 -0
  16. package/src/assets/Satoshi/Satoshi-MediumItalic.ttf +0 -0
  17. package/src/assets/Satoshi/Satoshi-Regular.ttf +0 -0
  18. package/src/assets/Satoshi/Satoshi-Variable.ttf +0 -0
  19. package/src/assets/Satoshi/Satoshi-VariableItalic.ttf +0 -0
  20. package/src/assets/global.css +88 -0
  21. package/src/assets/variable.ts +15 -0
  22. package/src/index.ts +10 -9
  23. package/src/kanban/components/LeadCard.tsx +130 -0
  24. package/src/kanban/constants/kanban-constants.ts +249 -0
  25. package/src/kanban/hooks/hooks.ts +16 -0
  26. package/src/kanban/index.tsx +331 -0
  27. package/src/kanban/services/service.ts +11 -0
  28. package/src/kanban/styles/styles.tsx +256 -0
  29. package/src/kanban/types/types.ts +132 -0
  30. package/src/{components → listing/components}/column-visibility-modal/column-list-item.tsx +1 -1
  31. package/src/{components → listing/components}/column-visibility-modal/index.tsx +1 -1
  32. package/src/{components → listing/components}/common/index.scss +2 -1
  33. package/src/{components → listing/components}/filter/components/forms/components/Filter-criteria.tsx +1 -1
  34. package/src/{components → listing/components}/filter/components/forms/index.tsx +1 -1
  35. package/src/{components → listing/components}/filter/components/saved-filter.tsx +2 -2
  36. package/src/{components → listing/components}/filter/components/search/index.tsx +1 -1
  37. package/src/{components → listing/components}/filter/components/tabs/index.tsx +1 -1
  38. package/src/{components → listing/components}/index-table.tsx +1 -1
  39. package/src/{components → listing/components}/index.scss +1 -2
  40. package/src/{components → listing/components}/pagination/default/index.tsx +1 -1
  41. package/src/{components → listing/components}/search/index.tsx +1 -1
  42. package/src/{components → listing/components}/sorting-modal.tsx/index.tsx +1 -1
  43. package/src/{components → listing/components}/sorting-modal.tsx/sorting-item.tsx +1 -1
  44. package/src/{components → listing/components}/table-change-layout.tsx +1 -1
  45. package/src/{components → listing/components}/table-head-dnd-cell.tsx +1 -1
  46. package/src/{components → listing/components}/table-head-pin.tsx +1 -1
  47. package/src/{components → listing/components}/table-head-popover.tsx +1 -1
  48. package/src/{components → listing/components}/table-head.tsx +1 -1
  49. package/src/{components → listing/components}/table-settings/common/listing-values.tsx +1 -1
  50. package/src/{components → listing/components}/table-settings/components/sorting.tsx +1 -1
  51. package/src/{components → listing/components}/tabs/index.scss +2 -1
  52. package/src/{components → listing/components}/tabs/index.tsx +1 -1
  53. package/src/{components → listing/components}/topbar/index.tsx +7 -7
  54. package/src/{components → listing/components}/viewmore/index.tsx +1 -1
  55. package/src/{libs → listing/libs}/utils/common.ts +2 -2
  56. package/src/main.tsx +1 -0
  57. package/src/view/KanbanView.tsx +16 -0
  58. package/src/view/ListingView.tsx +423 -0
  59. /package/src/{components → listing/components}/column-visibility-modal/index.scss +0 -0
  60. /package/src/{components → listing/components}/common/confirm-modal/index.tsx +0 -0
  61. /package/src/{components → listing/components}/common/index.tsx +0 -0
  62. /package/src/{components → listing/components}/common/loader/loader.tsx +0 -0
  63. /package/src/{components → listing/components}/dropdown/index.scss +0 -0
  64. /package/src/{components → listing/components}/dropdown/index.tsx +0 -0
  65. /package/src/{components → listing/components}/filter/components/attributes-filter.tsx +0 -0
  66. /package/src/{components → listing/components}/filter/components/forms/components/Date.tsx +0 -0
  67. /package/src/{components → listing/components}/filter/components/forms/components/Dropdown.tsx +0 -0
  68. /package/src/{components → listing/components}/filter/components/forms/components/Multi-Select.tsx +0 -0
  69. /package/src/{components → listing/components}/filter/components/forms/components/Select.tsx +0 -0
  70. /package/src/{components → listing/components}/filter/components/forms/components/Textfield.tsx +0 -0
  71. /package/src/{components → listing/components}/filter/components/forms/components/styles.tsx +0 -0
  72. /package/src/{components → listing/components}/filter/components/main-filter.tsx +0 -0
  73. /package/src/{components → listing/components}/filter/components/saved-edit-filter.tsx +0 -0
  74. /package/src/{components → listing/components}/filter/components/tabs/custom-tab-panel.tsx +0 -0
  75. /package/src/{components → listing/components}/filter/index.tsx +0 -0
  76. /package/src/{components → listing/components}/filter/style.ts +0 -0
  77. /package/src/{components → listing/components}/inputs/checkbox/index.tsx +0 -0
  78. /package/src/{components → listing/components}/inputs/index.scss +0 -0
  79. /package/src/{components → listing/components}/inputs/switch.tsx +0 -0
  80. /package/src/{components → listing/components}/login/index.tsx +0 -0
  81. /package/src/{components → listing/components}/nestedcomponent/index.scss +0 -0
  82. /package/src/{components → listing/components}/nestedcomponent/index.tsx +0 -0
  83. /package/src/{components → listing/components}/pagination/default/index.scss +0 -0
  84. /package/src/{components → listing/components}/search/style.ts +0 -0
  85. /package/src/{components → listing/components}/table-body-dnd-cell.tsx +0 -0
  86. /package/src/{components → listing/components}/table-body.tsx +0 -0
  87. /package/src/{components → listing/components}/table-dnd.tsx +0 -0
  88. /package/src/{components → listing/components}/table-settings/common/draggable-listitem.tsx +0 -0
  89. /package/src/{components → listing/components}/table-settings/common/info-alert.tsx +0 -0
  90. /package/src/{components → listing/components}/table-settings/components/column.tsx +0 -0
  91. /package/src/{components → listing/components}/table-settings/components/custom-button.tsx +0 -0
  92. /package/src/{components → listing/components}/table-settings/components/custom-dialog.tsx +0 -0
  93. /package/src/{components → listing/components}/table-settings/components/quick-tab.tsx +0 -0
  94. /package/src/{components → listing/components}/table-settings/components/toggle-button-switch.tsx +0 -0
  95. /package/src/{components → listing/components}/table-settings/constants.ts +0 -0
  96. /package/src/{components → listing/components}/table-settings/index.tsx +0 -0
  97. /package/src/{components → listing/components}/table-settings/style.ts +0 -0
  98. /package/src/{components → listing/components}/table-settings/tabs/horizontal/index.tsx +0 -0
  99. /package/src/{components → listing/components}/table-settings/tabs/styles.ts +0 -0
  100. /package/src/{components → listing/components}/table-settings/tabs/vertical/custom-tab-panel.tsx +0 -0
  101. /package/src/{components → listing/components}/table-settings/tabs/vertical/index.tsx +0 -0
  102. /package/src/{components → listing/components}/table.tsx +0 -0
  103. /package/src/{components → listing/components}/tabs/styles.ts +0 -0
  104. /package/src/{components → listing/components}/topbar/index.scss +0 -0
  105. /package/src/{components → listing/components}/viewmore/index.scss +0 -0
  106. /package/src/{libs → listing/libs}/hooks/useCraftTable.tsx +0 -0
  107. /package/src/{libs → listing/libs}/hooks/useCraftTableFilterSettings.tsx +0 -0
  108. /package/src/{libs → listing/libs}/hooks/useDefaultColumns.tsx +0 -0
  109. /package/src/{libs → listing/libs}/hooks/useElementWidth.tsx +0 -0
  110. /package/src/{libs → listing/libs}/hooks/useEntityTableAPI.tsx +0 -0
  111. /package/src/{libs → listing/libs}/hooks/useEntityTableHooks.ts +0 -0
  112. /package/src/{libs → listing/libs}/hooks/useFullScreen.tsx +0 -0
  113. /package/src/{libs → listing/libs}/hooks/useOutsideClick.tsx +0 -0
  114. /package/src/{libs → listing/libs}/utils/Data-format.ts +0 -0
  115. /package/src/{libs → listing/libs}/utils/amount-format.ts +0 -0
  116. /package/src/{libs → listing/libs}/utils/apiColumn.ts +0 -0
  117. /package/src/{libs → listing/libs}/utils/date-format.ts +0 -0
  118. /package/src/{libs → listing/libs}/utils/debounce.ts +0 -0
  119. /package/src/{libs → listing/libs}/utils/make-data.ts +0 -0
  120. /package/src/{libs → listing/libs}/utils/make-hierar-data.ts +0 -0
  121. /package/src/{libs → listing/libs}/utils/make-nested-data.ts +0 -0
  122. /package/src/{libs → listing/libs}/utils/rows-data.ts +0 -0
  123. /package/src/{types → listing/types}/common.ts +0 -0
  124. /package/src/{types → listing/types}/filter-settings.ts +0 -0
  125. /package/src/{types → listing/types}/filter.ts +0 -0
  126. /package/src/{types → listing/types}/table-options.ts +0 -0
  127. /package/src/{types → listing/types}/table.ts +0 -0
@@ -0,0 +1,132 @@
1
+ export interface LeadCardProps {
2
+ key: string | number;
3
+ lead: LeadData;
4
+ }
5
+
6
+ export interface LeadData {
7
+ id: string | number;
8
+ entity_type: string;
9
+ name: string | null;
10
+ status: string;
11
+ parent_type: string | null;
12
+ parent_id: string | null;
13
+ primary_email: string | null;
14
+ primary_mobile: string | null;
15
+ code: string;
16
+ created_by: string;
17
+ created_date: string;
18
+ modified_by: string | null;
19
+ modified_date: string | null;
20
+ enterprise_id: number;
21
+ organization_id: number;
22
+ appcode: string | null;
23
+ level_id: string;
24
+ level_type: string;
25
+ campus: string | null;
26
+ first_name: string | null;
27
+ last_name: string | null;
28
+ relationship_student: string | null;
29
+ phone_number: string | null;
30
+ email: string | null;
31
+ pin_code: string | null;
32
+ first_name_std: string | null;
33
+ last_name_std: string | null;
34
+ gender: string | null;
35
+ academic_year: string | null;
36
+ curr_grade: string | null;
37
+ source: string | null;
38
+ stage: string | null;
39
+ lead_owner: string | null;
40
+ lead_owner_name: string | null;
41
+ profile: {
42
+ signedUrl: string;
43
+ fileName: string;
44
+ id: string | number;
45
+ };
46
+ lead_source: string | null;
47
+ school_code: string | null;
48
+ source_details: string | null;
49
+ lead_status: string;
50
+ assigned_counselor: string | null;
51
+ lead_priority: string | null;
52
+ lead_score: string | null;
53
+ conversion_probability: string | null;
54
+ expected_admission_year: string | null;
55
+ budget_range: string | null;
56
+ enrollment_timeline: string | null;
57
+ lead_temperature: string | null;
58
+ utm_source: string | null;
59
+ student_first_name: string;
60
+ student_middle_name: string;
61
+ student_last_name: string;
62
+ student_gender: string;
63
+ student_age: string | null;
64
+ current_grade: string;
65
+ admission_grade: string;
66
+ current_school: string | null;
67
+ number_input: string | null;
68
+ current_board: string | null;
69
+ special_needs: string | null;
70
+ special_needs_details: string | null;
71
+ previous_school_reason: string | null;
72
+ academic_performance: string | null;
73
+ interested_academic_year: string | null;
74
+ father_salutation: string | null;
75
+ father_first_name: string | null;
76
+ father_last_name: string | null;
77
+ father_mobile: string | null;
78
+ father_email: string | null;
79
+ father_qualification: string | null;
80
+ father_occupation: string | null;
81
+ father_designation: string | null;
82
+ father_company: string | null;
83
+ father_annual_income: string | null;
84
+ father_office_address: string | null;
85
+ mother_salutation: string | null;
86
+ mother_first_name: string | null;
87
+ mother_last_name: string | null;
88
+ mother_email: string | null;
89
+ mother_mobile: string | null;
90
+ mother_qualification: string | null;
91
+ mother_designation: string | null;
92
+ mother_company: string | null;
93
+ mother_annual_income: string | null;
94
+ mother_office_address: string | null;
95
+ mother_occupation: string | null;
96
+ how_did_you_hear: string | null;
97
+ specific_requirements: string | null;
98
+ parent_questions: string | null;
99
+ special_requirements: string | null;
100
+ comments: string | null;
101
+ lead_reasons: string | null;
102
+ referral_source: string | null;
103
+ campaign_code: string | null;
104
+ DOB: string | null;
105
+ date: string | null;
106
+ enquiry_date: string;
107
+ student_dob: string | null;
108
+ date_input: string | null;
109
+ sub_lane_id: number;
110
+ }
111
+
112
+ export interface Lane {
113
+ id: string;
114
+ name: string;
115
+ color: string | null;
116
+ darkColor: string | null;
117
+ }
118
+
119
+ export interface SwimLane {
120
+ id: string;
121
+ name: string;
122
+ sub_lanes: SubLane[];
123
+ count: number | string;
124
+ }
125
+
126
+ export interface SubLane {
127
+ id: number;
128
+ name: string;
129
+ color: string;
130
+ lane_id: number | string;
131
+ expanded: boolean;
132
+ }
@@ -4,7 +4,7 @@ import {
4
4
  DragandDrogIcon,
5
5
  VisibilityIcon,
6
6
  VisibilityOffIcon,
7
- } from "../../assets/svg";
7
+ } from "../../../assets/svg";
8
8
  import { CSS } from "@dnd-kit/utilities";
9
9
  import { camelCaseToTitle } from "../../types/common";
10
10
 
@@ -18,7 +18,7 @@ import { Popover, IconButton, Typography, Box } from "@mui/material";
18
18
  import { Table } from "@tanstack/react-table";
19
19
  import DraggableColumn from "./column-list-item";
20
20
  import "./index.scss";
21
- import { CloseIcon } from "../../assets/svg";
21
+ import { CloseIcon } from "../../../assets/svg";
22
22
 
23
23
  interface ColumnToggleProps<T> {
24
24
  anchorEl: HTMLElement | null;
@@ -6,6 +6,7 @@
6
6
  h3 {
7
7
  color: var(--grey-900);
8
8
  font-size: 2rem;
9
- font-family: var(--fira-700);
9
+ font-family: "Satoshi", sans-serif;
10
+ font-weight: 700;
10
11
  }
11
12
  }
@@ -8,7 +8,7 @@ import {
8
8
  ListItemText,
9
9
  } from "@mui/material";
10
10
  import { useRef } from "react";
11
- import { AddIcon } from "../../../../../assets/svg";
11
+ import { AddIcon } from "../../../../../../assets/svg";
12
12
  import {
13
13
  FilterColumnsDataProps,
14
14
  FilterColumnsListProps,
@@ -6,7 +6,7 @@ import {
6
6
  TextField,
7
7
  Typography,
8
8
  } from "@mui/material";
9
- import { CloseIcon, DeleteIcon } from "../../../../assets/svg";
9
+ import { CloseIcon, DeleteIcon } from "../../../../../assets/svg";
10
10
  import {
11
11
  FilterColumnsDataProps,
12
12
  FilterDropdownDataProps,
@@ -13,10 +13,10 @@ import {
13
13
  Typography,
14
14
  } from "@mui/material";
15
15
  import CustomSearch from "./search";
16
- import { DeleteIcon, EditIcon } from "../../../assets/svg";
16
+ import { DeleteIcon, EditIcon } from "../../../../assets/svg";
17
17
  import SavedFilterEditComponent from "./saved-edit-filter";
18
18
  import { filterStyles } from "../style";
19
- import { CheckBox } from "../../../assets/svg";
19
+ import { CheckBox } from "../../../../assets/svg";
20
20
 
21
21
  const SavedFilter = ({
22
22
  columnsData,
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
  import { TextField, InputAdornment, IconButton } from "@mui/material";
3
3
  import SearchIcon from "@mui/icons-material/Search";
4
- import { CloseIcon } from "../../../../assets/svg";
4
+ import { CloseIcon } from "../../../../../assets/svg";
5
5
 
6
6
  interface SearchInputProps {
7
7
  value: string;
@@ -1,6 +1,6 @@
1
1
  import { useState } from "react";
2
2
  import { Tabs, Tab, TabsProps, Box } from "@mui/material";
3
- import { CheckBox, CrossBox } from "../../../../assets/svg";
3
+ import { CheckBox, CrossBox } from "../../../../../assets/svg";
4
4
 
5
5
  export interface TabItem {
6
6
  label: string;
@@ -15,7 +15,7 @@ import {
15
15
  TopbarOptionsProps,
16
16
  } from "../types/table";
17
17
  import { CraftTableFeatureProps } from "../types/table-options";
18
- import { LoaderAnimation } from "../assets/svg";
18
+ import { LoaderAnimation } from "../../assets/svg";
19
19
  import Topbar from "./topbar";
20
20
  import DefaultPagination from "./pagination/default";
21
21
  import TableDND from "./table-dnd";
@@ -10,8 +10,7 @@
10
10
  --grey-900: #414042;
11
11
  --filter-width: 24rem;
12
12
 
13
- font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
14
- Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
13
+ font-family: "Satoshi", sans-serif;
15
14
 
16
15
  // set default styles for all elements
17
16
  & * {
@@ -4,7 +4,7 @@ import {
4
4
  TableLastPageIcon,
5
5
  // TableNextPageIcon,
6
6
  // TablePreviousPageIcon,
7
- } from "../../../assets/svg";
7
+ } from "../../../../assets/svg";
8
8
  import TablePreviousPageIcon from "@mui/icons-material/NavigateBeforeRounded";
9
9
  import TableNextPageIcon from "@mui/icons-material/NavigateNextRounded";
10
10
  import "./index.scss";
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useRef, useEffect, useCallback } from "react";
2
- import { SearchIcon } from "../../assets/svg";
2
+ import { SearchIcon } from "../../../assets/svg";
3
3
  import useOutsideClick from "../../libs/hooks/useOutsideClick";
4
4
  import { customDebounce } from "../../libs/utils/debounce";
5
5
  import { Box, IconButton, InputAdornment, TextField } from "@mui/material";
@@ -23,7 +23,7 @@ import {
23
23
  verticalListSortingStrategy,
24
24
  } from "@dnd-kit/sortable";
25
25
  import SortableItem from "./sorting-item";
26
- import { AddIcon, CloseIcon } from "../../assets/svg";
26
+ import { AddIcon, CloseIcon } from "../../../assets/svg";
27
27
 
28
28
  interface SortItem {
29
29
  id: string;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { useSortable } from "@dnd-kit/sortable";
3
3
  import { CSS } from "@dnd-kit/utilities";
4
- import { DragHandleIcon } from "../../assets/svg";
4
+ import { DragHandleIcon } from "../../../assets/svg";
5
5
 
6
6
  const SortableItem = ({
7
7
  id,
@@ -7,7 +7,7 @@ import {
7
7
  ListIcon,
8
8
  TableIcon,
9
9
  TimeLineIcon,
10
- } from "../assets/svg";
10
+ } from "../../assets/svg";
11
11
  import { Box, Typography, ButtonBase, Grid, IconButton } from "@mui/material";
12
12
 
13
13
  interface LayoutSelectorProps {
@@ -2,7 +2,7 @@ import { flexRender } from "@tanstack/react-table";
2
2
  import { useSortable } from "@dnd-kit/sortable";
3
3
  import { CSSProperties, useState } from "react";
4
4
  import { CSS } from "@dnd-kit/utilities";
5
- import { DownArrow, DragHandleIcon, UpArrow } from "../assets/svg";
5
+ import { DownArrow, DragHandleIcon, UpArrow } from "../../assets/svg";
6
6
  import {
7
7
  getColumnAlignment,
8
8
  getColumnPinningStyles,
@@ -1,4 +1,4 @@
1
- import { IconPinOffOutline } from "../assets/svg";
1
+ import { IconPinOffOutline } from "../../assets/svg";
2
2
  import { TableHeaderProps } from "../types/table";
3
3
 
4
4
  function TableHeadPin<T>({ header }: TableHeaderProps<T>) {
@@ -13,7 +13,7 @@ import {
13
13
  HideIcon,
14
14
  IconPinOffOutline,
15
15
  IconPinOutline,
16
- } from "../assets/svg";
16
+ } from "../../assets/svg";
17
17
  import { CraftTableOptionsProps } from "../types/table-options";
18
18
 
19
19
  type Props<T> = {
@@ -3,7 +3,7 @@ import {
3
3
  CraftTableFeatureProps,
4
4
  CraftTableOptionsProps,
5
5
  } from "../types/table-options";
6
- import { DownArrow, UpArrow } from "../assets/svg";
6
+ import { DownArrow, UpArrow } from "../../assets/svg";
7
7
  import { CSSProperties, useState } from "react";
8
8
  import {
9
9
  getColumnAlignment,
@@ -15,7 +15,7 @@ import { useDroppable } from "@dnd-kit/core";
15
15
  import DraggableListItem from "./draggable-listitem.tsx";
16
16
  import { listingValuesStyles } from "../style.ts";
17
17
  import Loader from "../../common/loader/loader.tsx";
18
- import { ClosedEyeIcon, EyeIcon } from "../../../assets/svg.tsx";
18
+ import { ClosedEyeIcon, EyeIcon } from "../../../../assets/svg.tsx";
19
19
  import InfoAlert from "./info-alert.tsx";
20
20
  import React from "react";
21
21
  ``;
@@ -28,7 +28,7 @@ import {
28
28
  SortableContext,
29
29
  verticalListSortingStrategy,
30
30
  } from "@dnd-kit/sortable";
31
- import { AddIcon, CloseIcon } from "../../../assets/svg";
31
+ import { AddIcon, CloseIcon } from "../../../../assets/svg";
32
32
 
33
33
  const Sorting = ({
34
34
  filterSettingStates,
@@ -19,7 +19,8 @@
19
19
  cursor: pointer;
20
20
  color: var(--grey-900);
21
21
  font-size: 0.875rem;
22
- font-family: var(--fira-700);
22
+ font-family: "Satoshi", sans-serif;
23
+ font-weight: 700;
23
24
 
24
25
  .tab__label {
25
26
  font-family: inherit;
@@ -5,7 +5,7 @@ import SettingsOutlinedIcon from "@mui/icons-material/SettingsOutlined";
5
5
  import { settingsOptionsProps } from "../../types/table";
6
6
  import { tableTabsStyles } from "./styles";
7
7
  import { useMemo } from "react";
8
- import { SettingIcon } from "../../assets/svg";
8
+ import { SettingIcon } from "../../../assets/svg";
9
9
 
10
10
  interface TabDataProps {
11
11
  tab_value: string | null;
@@ -4,16 +4,16 @@ import {
4
4
  SortingIcon,
5
5
  FilterationIcon,
6
6
  HideColumnIcon,
7
- } from "../../assets/svg";
7
+ } from "../../../assets/svg.tsx";
8
8
  import { Popover } from "@mui/material";
9
- import LayoutSelector from "../table-change-layout";
10
- import useOutsideClick from "../../libs/hooks/useOutsideClick";
9
+ import LayoutSelector from "../table-change-layout.tsx";
10
+ import useOutsideClick from "../../libs/hooks/useOutsideClick.tsx";
11
11
  import { Table } from "@tanstack/react-table";
12
- import { TopbarOptionsProps } from "../../types/table";
12
+ import { TopbarOptionsProps } from "../../types/table.ts";
13
13
  import "./index.scss";
14
- import ViewMore from "../viewmore";
15
- import { useFullscreenPopoverContainer } from "../../libs/hooks/useFullScreen";
16
- import SortPopover from "../sorting-modal.tsx";
14
+ import ViewMore from "../viewmore/index.tsx";
15
+ import { useFullscreenPopoverContainer } from "../../libs/hooks/useFullScreen.tsx";
16
+ import SortPopover from "../sorting-modal.tsx/index.tsx";
17
17
  import ColumnToggle from "../column-visibility-modal/index.tsx";
18
18
  import { CraftTableOptionsProps } from "../../types/table-options.ts";
19
19
  import { TableSearch } from "../search/index.tsx";
@@ -8,7 +8,7 @@ import {
8
8
  IconButton,
9
9
  Switch as MUISwitch,
10
10
  } from "@mui/material";
11
- import { CloseIcon, ViewMoreIcon } from "../../assets/svg";
11
+ import { CloseIcon, ViewMoreIcon } from "../../../assets/svg";
12
12
  import { useFullscreenPopoverContainer } from "../../libs/hooks/useFullScreen";
13
13
  import { CraftTableOptionsProps } from "../../types/table-options";
14
14
 
@@ -77,8 +77,8 @@ export function customDebounce<T extends (...args: any[]) => any>(
77
77
  }
78
78
 
79
79
  //ENTITY TYPE
80
- const ENVIRONMENT = "uat";
81
- export const ENTITY_TYPE = "ROL";
80
+ const ENVIRONMENT = "crm_dev";
81
+ export const ENTITY_TYPE = "UPR";
82
82
 
83
83
  const environments = {
84
84
  adm_dev: "http://localhost:4010/api",
package/src/main.tsx CHANGED
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import ReactDOM from "react-dom/client";
3
3
  import App from "./App.tsx";
4
4
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
5
+ import "./assets/global.css";
5
6
 
6
7
  ReactDOM.createRoot(document.getElementById("root")!).render(
7
8
  <QueryClientProvider
@@ -0,0 +1,16 @@
1
+ import Kanban from "../kanban";
2
+ import LeadCard from "../kanban/components/LeadCard";
3
+ import { useGetKanbanData } from "../kanban/hooks/hooks";
4
+
5
+ const KanbanView = () => {
6
+ const { rawData, isLoading } = useGetKanbanData("LEAD");
7
+ return (
8
+ <Kanban
9
+ rawData={rawData}
10
+ isLoading={isLoading}
11
+ KanbanCardComponent={LeadCard}
12
+ />
13
+ );
14
+ };
15
+
16
+ export default KanbanView;