@erpsquad/common 1.8.22 → 1.8.24
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/_virtual/ArrowBack/index.esm.js +5 -0
- package/dist/_virtual/ArrowBack/index.esm.js.map +1 -0
- package/dist/_virtual/ArrowBack/index.js +2 -0
- package/dist/_virtual/ArrowBack/index.js.map +1 -0
- package/dist/_virtual/ArrowForward/index.esm.js +5 -0
- package/dist/_virtual/ArrowForward/index.esm.js.map +1 -0
- package/dist/_virtual/ArrowForward/index.js +2 -0
- package/dist/_virtual/ArrowForward/index.js.map +1 -0
- package/dist/_virtual/IndeterminateCheckBox/index.esm.js +5 -0
- package/dist/_virtual/IndeterminateCheckBox/index.esm.js.map +1 -0
- package/dist/_virtual/IndeterminateCheckBox/index.js +2 -0
- package/dist/_virtual/IndeterminateCheckBox/index.js.map +1 -0
- package/dist/_virtual/NorthEast/index.esm.js +5 -0
- package/dist/_virtual/NorthEast/index.esm.js.map +1 -0
- package/dist/_virtual/NorthEast/index.js +2 -0
- package/dist/_virtual/NorthEast/index.js.map +1 -0
- package/dist/_virtual/Visibility/index.esm.js +5 -0
- package/dist/_virtual/Visibility/index.esm.js.map +1 -0
- package/dist/_virtual/Visibility/index.js +2 -0
- package/dist/_virtual/Visibility/index.js.map +1 -0
- package/dist/_virtual/index/index.esm.js +2 -4
- package/dist/_virtual/index/index.esm.js.map +1 -1
- package/dist/_virtual/index/index.esm2.js +2 -2
- package/dist/_virtual/index/index.esm3.js +4 -2
- package/dist/_virtual/index/index.esm3.js.map +1 -1
- package/dist/_virtual/index/index.js +1 -1
- package/dist/_virtual/index/index3.js +1 -1
- package/dist/components/charts/line-chart/area-line-chart/index.esm.js +40 -0
- package/dist/components/charts/line-chart/area-line-chart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/area-line-chart/index.js +2 -0
- package/dist/components/charts/line-chart/area-line-chart/index.js.map +1 -0
- package/dist/components/filter/fields/index.esm.js +180 -0
- package/dist/components/filter/fields/index.esm.js.map +1 -0
- package/dist/components/filter/fields/index.js +2 -0
- package/dist/components/filter/fields/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.esm.js +5 -1
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.esm.js +10 -0
- package/dist/components/material-table/aggregation-fns/index/index.esm.js.map +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.js +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.js.map +1 -1
- package/dist/components/material-table/components/number-aggregation/index.esm.js +133 -0
- package/dist/components/material-table/components/number-aggregation/index.esm.js.map +1 -0
- package/dist/components/material-table/components/number-aggregation/index.js +5 -0
- package/dist/components/material-table/components/number-aggregation/index.js.map +1 -0
- package/dist/index.esm.js +6 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
- package/dist/node_modules/@glideapps/glide-data-grid/dist/js/index/index.esm.js +32 -0
- package/dist/node_modules/@glideapps/glide-data-grid/dist/js/index/index.esm.js.map +1 -1
- package/dist/node_modules/@glideapps/glide-data-grid/dist/js/index/index.js +36 -36
- package/dist/node_modules/@glideapps/glide-data-grid/dist/js/index/index.js.map +1 -1
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/NorthEast/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/NorthEast/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/Visibility/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/Visibility/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js.map +1 -1
- package/dist/node_modules/prop-types/index/index.esm.js +1 -1
- package/dist/node_modules/prop-types/index/index.js +1 -1
- package/dist/node_modules/prop-types/index/index.js.map +1 -1
- package/dist/style.css +3 -3
- package/dist/views/beforeAuth/components/activity-tag-data/activity-tag-data/index.esm.js +48 -0
- package/dist/views/beforeAuth/components/activity-tag-data/activity-tag-data/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/activity-tag-data/activity-tag-data/index.js +2 -0
- package/dist/views/beforeAuth/components/activity-tag-data/activity-tag-data/index.js.map +1 -0
- package/dist/views/beforeAuth/components/calendar-data/calendar-data/index.esm.js +50 -0
- package/dist/views/beforeAuth/components/calendar-data/calendar-data/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/calendar-data/calendar-data/index.js +2 -0
- package/dist/views/beforeAuth/components/calendar-data/calendar-data/index.js.map +1 -0
- package/dist/views/beforeAuth/components/gantt-data/gantt-data/index.esm.js +57 -0
- package/dist/views/beforeAuth/components/gantt-data/gantt-data/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/gantt-data/gantt-data/index.js +2 -0
- package/dist/views/beforeAuth/components/gantt-data/gantt-data/index.js.map +1 -0
- package/dist/views/beforeAuth/components/grid-data/grid-data/index.esm.js +41 -0
- package/dist/views/beforeAuth/components/grid-data/grid-data/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/grid-data/grid-data/index.js +2 -0
- package/dist/views/beforeAuth/components/grid-data/grid-data/index.js.map +1 -0
- package/dist/views/beforeAuth/components/index/index.esm.js +1144 -0
- package/dist/views/beforeAuth/components/index/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/index/index.js +206 -0
- package/dist/views/beforeAuth/components/index/index.js.map +1 -0
- package/dist/views/beforeAuth/components/kanbann-content/kanbann-raw/index.esm.js +72 -0
- package/dist/views/beforeAuth/components/kanbann-content/kanbann-raw/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/kanbann-content/kanbann-raw/index.js +2 -0
- package/dist/views/beforeAuth/components/kanbann-content/kanbann-raw/index.js.map +1 -0
- package/dist/views/beforeAuth/components/list-content/column-raw/index.esm.js +54 -0
- package/dist/views/beforeAuth/components/list-content/column-raw/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/list-content/column-raw/index.js +2 -0
- package/dist/views/beforeAuth/components/list-content/column-raw/index.js.map +1 -0
- package/dist/views/beforeAuth/components/list-content/list-data/index.esm.js +61 -0
- package/dist/views/beforeAuth/components/list-content/list-data/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/list-content/list-data/index.js +2 -0
- package/dist/views/beforeAuth/components/list-content/list-data/index.js.map +1 -0
- package/dist/views/beforeAuth/components/multiline-data/multiline-data/index.esm.js +21 -0
- package/dist/views/beforeAuth/components/multiline-data/multiline-data/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/multiline-data/multiline-data/index.js +2 -0
- package/dist/views/beforeAuth/components/multiline-data/multiline-data/index.js.map +1 -0
- package/dist/views/beforeAuth/components/tabs-data/tabs-data/index.esm.js +21 -0
- package/dist/views/beforeAuth/components/tabs-data/tabs-data/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/tabs-data/tabs-data/index.js +2 -0
- package/dist/views/beforeAuth/components/tabs-data/tabs-data/index.js.map +1 -0
- package/dist/views/beforeAuth/components/user-dropdown-data/user-dropdown-data/index.esm.js +306 -0
- package/dist/views/beforeAuth/components/user-dropdown-data/user-dropdown-data/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/components/user-dropdown-data/user-dropdown-data/index.js +2 -0
- package/dist/views/beforeAuth/components/user-dropdown-data/user-dropdown-data/index.js.map +1 -0
- package/dist/views/index.esm.js +2 -0
- package/dist/views/index.esm.js.map +1 -1
- package/dist/views/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1144 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import default_1$5 from "../../../../node_modules/@mui/icons-material/Close/index.esm.js";
|
|
4
|
+
import default_1$7 from "../../../../node_modules/@mui/icons-material/NorthEast/index.esm.js";
|
|
5
|
+
import HrLine from "../../../../components/hr-line/hr-line/index.esm.js";
|
|
6
|
+
import List from "../../../../components/list/list/index.esm.js";
|
|
7
|
+
import { BoardWrapper } from "../../../../components/board/board/index.esm.js";
|
|
8
|
+
import { CalendarWrapper } from "../../../../components/calendar/calendar/index.esm.js";
|
|
9
|
+
import GridCard from "../../../../components/grid/grid-card/grid-card/index.esm.js";
|
|
10
|
+
import { tableData } from "../list-content/list-data/index.esm.js";
|
|
11
|
+
import { column } from "../list-content/column-raw/index.esm.js";
|
|
12
|
+
import { board } from "../kanbann-content/kanbann-raw/index.esm.js";
|
|
13
|
+
import { calendarData } from "../calendar-data/calendar-data/index.esm.js";
|
|
14
|
+
import data$1 from "../grid-data/grid-data/index.esm.js";
|
|
15
|
+
import { activityTag } from "../activity-tag-data/activity-tag-data/index.esm.js";
|
|
16
|
+
import { userData } from "../user-dropdown-data/user-dropdown-data/index.esm.js";
|
|
17
|
+
import { Typography } from "../../../../components/typography/typography/index.esm.js";
|
|
18
|
+
import TextField from "../../../../components/text-field/text-field/index.esm.js";
|
|
19
|
+
import Button from "../../../../components/button/button/index.esm.js";
|
|
20
|
+
import default_1$3 from "../../../../node_modules/@mui/icons-material/ArrowForward/index.esm.js";
|
|
21
|
+
import default_1$2 from "../../../../node_modules/@mui/icons-material/ArrowBack/index.esm.js";
|
|
22
|
+
import Radio from "../../../../components/radio/radio/index.esm.js";
|
|
23
|
+
import Checkbox from "../../../../components/checkbox/checkbox/index.esm.js";
|
|
24
|
+
import Select from "../../../../components/select/select/index.esm.js";
|
|
25
|
+
import default_1$4 from "../../../../node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js";
|
|
26
|
+
import Toggle from "../../../../components/toggle/toggle/index.esm.js";
|
|
27
|
+
import Chip from "../../../../components/chip/chip/index.esm.js";
|
|
28
|
+
import default_1$6 from "../../../../node_modules/@mui/icons-material/FilterList/index.esm.js";
|
|
29
|
+
import BreadCrumb from "../../../../components/bread-crumb/bread-crumb/index.esm.js";
|
|
30
|
+
import GridWrapper from "../../../../components/grid/grid-wrapper/grid-wrapper/index.esm.js";
|
|
31
|
+
import ConfirmPopUp from "../../../../components/confirm-modal/confirm-modal/index.esm.js";
|
|
32
|
+
import Toast from "../../../../components/toast/toast/index.esm.js";
|
|
33
|
+
import MaterialTable from "../../../../components/material-table/material-table/index.esm.js";
|
|
34
|
+
import CardWrapper from "../../../../components/card-wrapper/card-wrapper/index.esm.js";
|
|
35
|
+
import Tooltip from "../../../../components/tooltip/Tooltip/index.esm.js";
|
|
36
|
+
import { Avatar } from "../../../../components/avatar/avatar/index.esm.js";
|
|
37
|
+
import { ActivityTag } from "../../../../components/activity-tag/activity-tag/index.esm.js";
|
|
38
|
+
import MultiLine from "../../../../components/mulitline/multiline/index.esm.js";
|
|
39
|
+
import { multilineData } from "../multiline-data/multiline-data/index.esm.js";
|
|
40
|
+
import TabBar from "../../../../components/tabs/tabs/index.esm.js";
|
|
41
|
+
import { tabsData } from "../tabs-data/tabs-data/index.esm.js";
|
|
42
|
+
import SharePopUp from "../../../../components/share-modal/share-modal/index.esm.js";
|
|
43
|
+
import { userRoles } from "../share-modal-data/share-modal-data/index.esm.js";
|
|
44
|
+
import { images } from "../../../../images/index.esm.js";
|
|
45
|
+
import ActionBar from "../../../../components/action-bar/action-bar/index.esm.js";
|
|
46
|
+
import viewTypes from "../../../../constants/action-bar/index.esm.js";
|
|
47
|
+
import { UserDropdown } from "../../../../components/user-dropdown/user-dropdown/index.esm.js";
|
|
48
|
+
import PhoneInput from "../../../../components/phone-input/phone-input/index.esm.js";
|
|
49
|
+
import SearchBar from "../../../../components/search-bar/search-bar/index.esm.js";
|
|
50
|
+
import NumberAggregation from "../../../../components/material-table/components/number-aggregation/index.esm.js";
|
|
51
|
+
import Alert from "../../../../components/alert/alert/index.esm.js";
|
|
52
|
+
import CountrySelect from "../../../../components/country-select/country-select/index.esm.js";
|
|
53
|
+
import default_1 from "../../../../node_modules/@mui/icons-material/Visibility/index.esm.js";
|
|
54
|
+
import default_1$1 from "../../../../node_modules/@mui/icons-material/VisibilityOff/index.esm.js";
|
|
55
|
+
import TextArea from "../../../../components/text-area/text-area/index.esm.js";
|
|
56
|
+
import GanttChart from "../../../../components/gantt/gantt/index.esm.js";
|
|
57
|
+
import ganttData from "../gantt-data/gantt-data/index.esm.js";
|
|
58
|
+
import SaveFilterModal from "../../../../components/save-filter-modal/save-filter-modal/index.esm.js";
|
|
59
|
+
import DateRangePicker from "../../../../components/date-range-picker/date-range-picker/index.esm.js";
|
|
60
|
+
import TimeRangePicker from "../../../../components/time-range-picker/time-range-picker/index.esm.js";
|
|
61
|
+
import Upload from "../../../../components/upload/upload/index.esm.js";
|
|
62
|
+
import DatePicker from "../../../../components/date-picker/date-picker/index.esm.js";
|
|
63
|
+
import TimePicker from "../../../../components/time-picker/time-picker/index.esm.js";
|
|
64
|
+
import UploadMedia from "../../../../components/upload-media/upload-media/index.esm.js";
|
|
65
|
+
import InfoCard from "../../../../components/info-card/info-card/index.esm.js";
|
|
66
|
+
import BarChart from "../../../../components/charts/bar-chart/bar-chart/index.esm.js";
|
|
67
|
+
import LineChart from "../../../../components/charts/line-chart/line-chart/index.esm.js";
|
|
68
|
+
import ValueField from "../../../../components/value-field/value-field/index.esm.js";
|
|
69
|
+
import Accordion from "../../../../components/accordion/accordion/index.esm.js";
|
|
70
|
+
import DonutChart from "../../../../components/charts/donut-chart/donut-chart/index.esm.js";
|
|
71
|
+
import AreaLineChart from "../../../../components/charts/line-chart/area-line-chart/index.esm.js";
|
|
72
|
+
import Box from "../../../../node_modules/@mui/material/Box/Box/index.esm.js";
|
|
73
|
+
import InputAdornment from "../../../../node_modules/@mui/material/InputAdornment/InputAdornment/index.esm.js";
|
|
74
|
+
import IconButton from "../../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
|
|
75
|
+
import FormControlLabel from "../../../../node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js";
|
|
76
|
+
import MenuItem from "../../../../node_modules/@mui/material/MenuItem/MenuItem/index.esm.js";
|
|
77
|
+
const data = [
|
|
78
|
+
{ label: "Hello", value: 500 },
|
|
79
|
+
{ label: "2025", value: 1e3 },
|
|
80
|
+
{ label: "2023-2024", value: 1600 },
|
|
81
|
+
{ label: "12-01-27", value: 2500 }
|
|
82
|
+
];
|
|
83
|
+
const donutChartData = [
|
|
84
|
+
{
|
|
85
|
+
label: "HR",
|
|
86
|
+
value: 50
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: "Frontend Developer",
|
|
90
|
+
value: 50
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
label: "Sales",
|
|
94
|
+
value: 50
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: "manager",
|
|
98
|
+
value: 50
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: "In-Active Users",
|
|
102
|
+
value: 50
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: "Others",
|
|
106
|
+
value: 50
|
|
107
|
+
}
|
|
108
|
+
];
|
|
109
|
+
const areaLineGraph = [
|
|
110
|
+
{ label: "user1", value: 65 },
|
|
111
|
+
{ label: "user2", value: 70 },
|
|
112
|
+
{ label: "user3", value: 70 },
|
|
113
|
+
{ label: "user4", value: 60 },
|
|
114
|
+
{ label: "user5", value: 70 },
|
|
115
|
+
{ label: "user6", value: 80 },
|
|
116
|
+
{ label: "user7", value: 75 },
|
|
117
|
+
{ label: "user8", value: 70 },
|
|
118
|
+
{ label: "user9", value: 67 },
|
|
119
|
+
{ label: "user10", value: 72 },
|
|
120
|
+
{ label: "user11", value: 75 },
|
|
121
|
+
{ label: "user12", value: 60 },
|
|
122
|
+
{ label: "user13", value: 100 },
|
|
123
|
+
{ label: "user14", value: 70 },
|
|
124
|
+
{ label: "user15", value: 65 },
|
|
125
|
+
{ label: "user16", value: 60 },
|
|
126
|
+
{ label: "user17", value: 65 },
|
|
127
|
+
{ label: "user18", value: 65 },
|
|
128
|
+
{ label: "user19", value: 60 },
|
|
129
|
+
{ label: "user20", value: 70 },
|
|
130
|
+
{ label: "user21", value: 67 },
|
|
131
|
+
{ label: "user22", value: 60 },
|
|
132
|
+
{ label: "user23", value: 72 },
|
|
133
|
+
{ label: "user24", value: 68 },
|
|
134
|
+
{ label: "user25", value: 65 },
|
|
135
|
+
{ label: "user26", value: 65 }
|
|
136
|
+
];
|
|
137
|
+
const breadCrumbPath = [
|
|
138
|
+
{
|
|
139
|
+
link: "/",
|
|
140
|
+
label: "MUI"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
link: "/",
|
|
144
|
+
label: "Core"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
link: "",
|
|
148
|
+
label: "Breadcrumb"
|
|
149
|
+
}
|
|
150
|
+
];
|
|
151
|
+
const dayArr = [
|
|
152
|
+
{
|
|
153
|
+
label: "Sun",
|
|
154
|
+
selected: false
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
label: "Mon",
|
|
158
|
+
selected: false
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
label: "Tue",
|
|
162
|
+
selected: false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
label: "Wed",
|
|
166
|
+
selected: true
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
label: "Thu",
|
|
170
|
+
selected: true
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
label: "Fri",
|
|
174
|
+
selected: true
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
label: "Sat",
|
|
178
|
+
selected: false
|
|
179
|
+
}
|
|
180
|
+
];
|
|
181
|
+
const rows = [
|
|
182
|
+
{
|
|
183
|
+
role: "Head of Engineering",
|
|
184
|
+
status: "Enabled",
|
|
185
|
+
role_type: "Admin",
|
|
186
|
+
role_level: 0,
|
|
187
|
+
created_date: "13 Nov, 2023",
|
|
188
|
+
company_name: "ABC",
|
|
189
|
+
location: "Gujarat",
|
|
190
|
+
email: "kishan@gmail.com",
|
|
191
|
+
icon: "ada"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
role: "Visual Designer",
|
|
195
|
+
status: "Enabled",
|
|
196
|
+
role_type: "Manager",
|
|
197
|
+
role_level: 1,
|
|
198
|
+
created_date: "13 Nov, 2023",
|
|
199
|
+
company_name: "XYZ",
|
|
200
|
+
location: "Mumbai",
|
|
201
|
+
email: "xyz@gmail.com"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
role: "Product Analyst",
|
|
205
|
+
status: "Enabled",
|
|
206
|
+
role_type: "Admin",
|
|
207
|
+
role_level: 0,
|
|
208
|
+
created_date: "13 Nov, 2023",
|
|
209
|
+
company_name: "ABC",
|
|
210
|
+
location: "Valsad",
|
|
211
|
+
email: "abc@gmail.com"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
role: "Senior Interaction Designer",
|
|
215
|
+
status: "Enabled",
|
|
216
|
+
role_type: "Executive",
|
|
217
|
+
role_level: 3,
|
|
218
|
+
created_date: "13 Nov, 2023",
|
|
219
|
+
company_name: "ABC",
|
|
220
|
+
location: "Gujarat",
|
|
221
|
+
email: "kishan@gmail.com"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
role: "Senior Product Manager",
|
|
225
|
+
status: "Enabled",
|
|
226
|
+
role_type: "Support",
|
|
227
|
+
role_level: 4,
|
|
228
|
+
created_date: "13 Nov, 2023",
|
|
229
|
+
company_name: "ABC",
|
|
230
|
+
location: "Gujarat",
|
|
231
|
+
email: "kishan@gmail.com"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
role: "Design Manager",
|
|
235
|
+
status: "Enabled",
|
|
236
|
+
role_type: "Support",
|
|
237
|
+
role_level: 5,
|
|
238
|
+
created_date: "13 Nov, 2023",
|
|
239
|
+
company_name: "ABC",
|
|
240
|
+
location: "Gujarat",
|
|
241
|
+
email: "kishan@gmail.com"
|
|
242
|
+
}
|
|
243
|
+
];
|
|
244
|
+
const columns = [
|
|
245
|
+
{
|
|
246
|
+
accessorKey: "role",
|
|
247
|
+
header: "Role",
|
|
248
|
+
visible: true,
|
|
249
|
+
size: 150,
|
|
250
|
+
muiTableBodyCellProps: {
|
|
251
|
+
sx: {
|
|
252
|
+
fontWeight: "500"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
Footer: ({ footer }) => {
|
|
256
|
+
return /* @__PURE__ */ jsx(NumberAggregation, { data: rows, column: footer.column.id, type: "string" });
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
accessorKey: "status",
|
|
261
|
+
header: "Status",
|
|
262
|
+
visible: true,
|
|
263
|
+
size: 150,
|
|
264
|
+
muiTableBodyCellProps: {
|
|
265
|
+
sx: {
|
|
266
|
+
fontWeight: "500"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
Footer: ({ footer }) => {
|
|
270
|
+
return /* @__PURE__ */ jsx(NumberAggregation, { data: rows, column: footer.column.id, type: "string" });
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
accessorKey: "role_type",
|
|
275
|
+
header: "Role Type",
|
|
276
|
+
visible: true,
|
|
277
|
+
size: 150,
|
|
278
|
+
Footer: ({ footer }) => {
|
|
279
|
+
return /* @__PURE__ */ jsx(NumberAggregation, { data: rows, column: footer.column.id, type: "string" });
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
accessorKey: "role_level",
|
|
284
|
+
//simple recommended way to define a column
|
|
285
|
+
header: "Role Level",
|
|
286
|
+
visible: true,
|
|
287
|
+
size: 150,
|
|
288
|
+
muiEditTextFieldProps: {
|
|
289
|
+
type: "number"
|
|
290
|
+
},
|
|
291
|
+
Footer: ({ footer }) => {
|
|
292
|
+
return /* @__PURE__ */ jsx(NumberAggregation, { data: rows, column: footer.column.id, type: "number" });
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
accessorKey: "created_date",
|
|
297
|
+
//simple recommended way to define a column
|
|
298
|
+
header: "Date Created",
|
|
299
|
+
visible: true,
|
|
300
|
+
size: 150,
|
|
301
|
+
muiEditTextFieldProps: {
|
|
302
|
+
type: "date"
|
|
303
|
+
},
|
|
304
|
+
Footer: ({ footer }) => {
|
|
305
|
+
return /* @__PURE__ */ jsx(NumberAggregation, { data: rows, column: footer.column.id, type: "string" });
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
accessorKey: "company_name",
|
|
310
|
+
header: "Company Name",
|
|
311
|
+
visible: false,
|
|
312
|
+
size: 150,
|
|
313
|
+
muiTableBodyCellProps: {
|
|
314
|
+
sx: {
|
|
315
|
+
fontWeight: "500"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
Footer: ({ footer }) => {
|
|
319
|
+
return /* @__PURE__ */ jsx(NumberAggregation, { data: rows, column: footer.column.id, type: "string" });
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
accessorKey: "location",
|
|
324
|
+
header: "Location",
|
|
325
|
+
visible: false,
|
|
326
|
+
size: 150,
|
|
327
|
+
muiTableBodyCellProps: {
|
|
328
|
+
sx: {
|
|
329
|
+
fontWeight: "500"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
Footer: ({ footer }) => {
|
|
333
|
+
return /* @__PURE__ */ jsx(NumberAggregation, { data: rows, column: footer.column.id, type: "string" });
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
accessorKey: "email",
|
|
338
|
+
header: "Email",
|
|
339
|
+
visible: false,
|
|
340
|
+
size: 150,
|
|
341
|
+
muiTableBodyCellProps: {
|
|
342
|
+
sx: {
|
|
343
|
+
fontWeight: "500"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
Footer: ({ footer }) => {
|
|
347
|
+
return /* @__PURE__ */ jsx(NumberAggregation, { data: rows, column: footer.column.id, type: "string" });
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
];
|
|
351
|
+
const initialOrder = [
|
|
352
|
+
"role",
|
|
353
|
+
"status",
|
|
354
|
+
"role_type",
|
|
355
|
+
"role_level",
|
|
356
|
+
"created_date",
|
|
357
|
+
"company_name",
|
|
358
|
+
"location",
|
|
359
|
+
"email"
|
|
360
|
+
];
|
|
361
|
+
const Components = () => {
|
|
362
|
+
var _a;
|
|
363
|
+
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
364
|
+
const [isShareModalOpen, setIsShareModalOpen] = useState(false);
|
|
365
|
+
const [isNormalToastOpen, setIsNormalToastOpen] = useState(false);
|
|
366
|
+
const [isAlertToastOpen, setIsAlertToastOpen] = useState(false);
|
|
367
|
+
const [commentValue, setCommentValue] = useState("");
|
|
368
|
+
const [activityTagData, setActivityTagData] = useState(activityTag);
|
|
369
|
+
const [isAlertWithUndoOpen, setIsAlertWithUndoOpen] = useState(false);
|
|
370
|
+
const [isNormalWithUndoOpen, setIsNormalWithUndoOpen] = useState(false);
|
|
371
|
+
const [userDropdownData, setUserDropdownData] = useState({
|
|
372
|
+
isRoleVisible: true,
|
|
373
|
+
selectedUsers: []
|
|
374
|
+
});
|
|
375
|
+
const [isUploadModalOpen, setIsUploadModalOpen] = useState(false);
|
|
376
|
+
useEffect(() => {
|
|
377
|
+
}, [userDropdownData]);
|
|
378
|
+
const [isToggled, setIsToggled] = useState(false);
|
|
379
|
+
const [isInfoAlertOpen, setIsInfoAlertOpen] = useState(true);
|
|
380
|
+
const [isErrorAlertOpen, setIsErrorAlertOpen] = useState(true);
|
|
381
|
+
const [isSuccessAlertOpen, setIsSuccessAlertOpen] = useState(true);
|
|
382
|
+
const [country, setCountry] = useState("");
|
|
383
|
+
const [showPassword, setShowPassword] = useState(false);
|
|
384
|
+
const [actionBarData, setActionBarData] = useState([]);
|
|
385
|
+
const [actionBarActiveTab, setActionBarActiveTab] = useState("");
|
|
386
|
+
const [dayArray, setDayArray] = useState(dayArr);
|
|
387
|
+
const [openSaveFilter, setIsOpenSaveFilter] = useState(false);
|
|
388
|
+
const handleOpenNormalToast = () => setIsNormalToastOpen(true);
|
|
389
|
+
const handleCloseNormalToast = () => setIsNormalToastOpen(false);
|
|
390
|
+
const handleOpenAlertToast = () => setIsAlertToastOpen(true);
|
|
391
|
+
const handleCloseAlertToast = () => setIsAlertToastOpen(false);
|
|
392
|
+
const handleCommentSubmit = () => {
|
|
393
|
+
const currentDate = /* @__PURE__ */ new Date();
|
|
394
|
+
const formattedDate = currentDate.toLocaleString("en-US", {
|
|
395
|
+
year: "numeric",
|
|
396
|
+
month: "2-digit",
|
|
397
|
+
day: "2-digit",
|
|
398
|
+
hour: "2-digit",
|
|
399
|
+
minute: "2-digit",
|
|
400
|
+
second: "2-digit"
|
|
401
|
+
});
|
|
402
|
+
const comment = {
|
|
403
|
+
name: "You",
|
|
404
|
+
dateTime: formattedDate,
|
|
405
|
+
text: commentValue
|
|
406
|
+
};
|
|
407
|
+
setActivityTagData((prevData) => {
|
|
408
|
+
const updatedData = {
|
|
409
|
+
...prevData,
|
|
410
|
+
comments: [...prevData.comments, comment]
|
|
411
|
+
};
|
|
412
|
+
return updatedData;
|
|
413
|
+
});
|
|
414
|
+
setCommentValue("");
|
|
415
|
+
};
|
|
416
|
+
const handleCommentChange = (event) => {
|
|
417
|
+
setCommentValue(event.target.value);
|
|
418
|
+
};
|
|
419
|
+
const handleOpenNormalWithUndo = () => setIsNormalWithUndoOpen(true);
|
|
420
|
+
const handleCloseNormalWithUndo = () => setIsNormalWithUndoOpen(false);
|
|
421
|
+
const handleOpenAlertWithUndo = () => setIsAlertWithUndoOpen(true);
|
|
422
|
+
const handleCloseAlertWithUndo = () => setIsAlertWithUndoOpen(false);
|
|
423
|
+
const [columnOrder, setColumnOrder] = useState(initialOrder);
|
|
424
|
+
const handleColumnOrdering = (colOrder) => {
|
|
425
|
+
setColumnOrder(colOrder.slice(1));
|
|
426
|
+
};
|
|
427
|
+
const handleToggle = () => {
|
|
428
|
+
setIsToggled((prev) => !prev);
|
|
429
|
+
alert("Toggled");
|
|
430
|
+
};
|
|
431
|
+
const handleUndo = () => {
|
|
432
|
+
window.alert("Undo clicked");
|
|
433
|
+
};
|
|
434
|
+
const handleToggleChange = () => {
|
|
435
|
+
setUserDropdownData((prevSettings) => ({
|
|
436
|
+
...prevSettings,
|
|
437
|
+
isRoleVisible: !prevSettings.isRoleVisible,
|
|
438
|
+
selectedUsers: []
|
|
439
|
+
}));
|
|
440
|
+
};
|
|
441
|
+
const handleCheckboxChange = (values) => {
|
|
442
|
+
setUserDropdownData((prevSettings) => ({
|
|
443
|
+
...prevSettings,
|
|
444
|
+
selectedUsers: values
|
|
445
|
+
}));
|
|
446
|
+
};
|
|
447
|
+
const handleCountry = (code) => {
|
|
448
|
+
setCountry(code);
|
|
449
|
+
};
|
|
450
|
+
const handleClick = (index) => {
|
|
451
|
+
const tempArr = dayArray;
|
|
452
|
+
tempArr[index].selected = !tempArr[index].selected;
|
|
453
|
+
setDayArray([...tempArr]);
|
|
454
|
+
};
|
|
455
|
+
const handleTimeRangePicker = (timeRanges) => {
|
|
456
|
+
console.log("timeRanges", timeRanges);
|
|
457
|
+
};
|
|
458
|
+
const handleDateRangePicker = (dateRanges) => {
|
|
459
|
+
console.log("dateRanges", dateRanges);
|
|
460
|
+
};
|
|
461
|
+
const handleUploadFiles = (files) => {
|
|
462
|
+
console.log("Uploaded files", files);
|
|
463
|
+
};
|
|
464
|
+
return /* @__PURE__ */ jsxs("div", { className: "components-wrapper", children: [
|
|
465
|
+
/* @__PURE__ */ jsx(HrLine, { title: "HR Line" }),
|
|
466
|
+
/* @__PURE__ */ jsx(List, { header: column, tableData }),
|
|
467
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
468
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
469
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
470
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
471
|
+
/* @__PURE__ */ jsx(Typography, { type: "h1", children: "This is heading 1" }),
|
|
472
|
+
/* @__PURE__ */ jsx(Typography, { type: "h2", children: "This is heading 2" }),
|
|
473
|
+
/* @__PURE__ */ jsx(Typography, { type: "h3", children: "This is heading 3" }),
|
|
474
|
+
/* @__PURE__ */ jsx(Typography, { type: "h4", children: "This is heading 4" }),
|
|
475
|
+
/* @__PURE__ */ jsx(Typography, { type: "h5", children: "This is heading 5" }),
|
|
476
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
477
|
+
/* @__PURE__ */ jsx(Typography, { type: "s1", children: "This is sub-heading 1" }),
|
|
478
|
+
/* @__PURE__ */ jsx(Typography, { type: "s2", children: "This is sub-heading 2" }),
|
|
479
|
+
/* @__PURE__ */ jsx(Typography, { type: "s3", children: "This is sub-heading 3" }),
|
|
480
|
+
/* @__PURE__ */ jsx(Typography, { type: "s4", children: "This is sub-heading 4" }),
|
|
481
|
+
/* @__PURE__ */ jsx(Typography, { type: "s5", children: "This is sub-heading 5" }),
|
|
482
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
483
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
484
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
485
|
+
/* @__PURE__ */ jsx(Typography, { mb: 1, children: "Text Field" }),
|
|
486
|
+
/* @__PURE__ */ jsxs(Box, { mb: 4, display: "flex", gap: 2, children: [
|
|
487
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(TextField, { label: "Name", placeholder: "Write your name" }) }),
|
|
488
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
489
|
+
TextField,
|
|
490
|
+
{
|
|
491
|
+
label: "Error",
|
|
492
|
+
placeholder: "Write your name",
|
|
493
|
+
error: true,
|
|
494
|
+
helperText: "Type a valid name"
|
|
495
|
+
}
|
|
496
|
+
) }),
|
|
497
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
498
|
+
TextField,
|
|
499
|
+
{
|
|
500
|
+
label: "Number",
|
|
501
|
+
placeholder: "Enter number",
|
|
502
|
+
type: "number",
|
|
503
|
+
helperText: "Please Enter a number"
|
|
504
|
+
}
|
|
505
|
+
) }),
|
|
506
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
507
|
+
TextField,
|
|
508
|
+
{
|
|
509
|
+
label: "Number",
|
|
510
|
+
placeholder: "Enter number",
|
|
511
|
+
type: "number",
|
|
512
|
+
value: "3224",
|
|
513
|
+
helperText: "Please Enter a number",
|
|
514
|
+
disabled: true
|
|
515
|
+
}
|
|
516
|
+
) }),
|
|
517
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
518
|
+
TextField,
|
|
519
|
+
{
|
|
520
|
+
label: "Password",
|
|
521
|
+
placeholder: "Enter Password",
|
|
522
|
+
type: showPassword ? "text" : "password",
|
|
523
|
+
InputProps: {
|
|
524
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
525
|
+
IconButton,
|
|
526
|
+
{
|
|
527
|
+
"aria-label": "toggle password visibility",
|
|
528
|
+
onClick: () => setShowPassword(!showPassword),
|
|
529
|
+
edge: "end",
|
|
530
|
+
children: showPassword ? /* @__PURE__ */ jsx(default_1, {}) : /* @__PURE__ */ jsx(default_1$1, {})
|
|
531
|
+
}
|
|
532
|
+
) })
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
) })
|
|
536
|
+
] }),
|
|
537
|
+
/* @__PURE__ */ jsxs(Box, { mb: 4, display: "flex", gap: 2, children: [
|
|
538
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
539
|
+
TextArea,
|
|
540
|
+
{
|
|
541
|
+
placeholder: "Placeholder",
|
|
542
|
+
label: "Placeholder",
|
|
543
|
+
error: true,
|
|
544
|
+
helperText: "please enter a valid value"
|
|
545
|
+
}
|
|
546
|
+
) }),
|
|
547
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
548
|
+
TextArea,
|
|
549
|
+
{
|
|
550
|
+
placeholder: "Placeholder",
|
|
551
|
+
label: "Placeholder",
|
|
552
|
+
helperText: "please enter a valid value"
|
|
553
|
+
}
|
|
554
|
+
) }),
|
|
555
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
556
|
+
TextArea,
|
|
557
|
+
{
|
|
558
|
+
placeholder: "Placeholder",
|
|
559
|
+
disabled: true,
|
|
560
|
+
defaultValue: "this is a text area",
|
|
561
|
+
label: "Placeholder"
|
|
562
|
+
}
|
|
563
|
+
) }),
|
|
564
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
565
|
+
TextArea,
|
|
566
|
+
{
|
|
567
|
+
placeholder: "Placeholder",
|
|
568
|
+
defaultValue: "this is a text area",
|
|
569
|
+
label: "Placeholder"
|
|
570
|
+
}
|
|
571
|
+
) })
|
|
572
|
+
] })
|
|
573
|
+
] }),
|
|
574
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
575
|
+
/* @__PURE__ */ jsxs(Box, { mb: 4, className: "button-wrapper", children: [
|
|
576
|
+
/* @__PURE__ */ jsx(Typography, { children: "Buttons" }),
|
|
577
|
+
/* @__PURE__ */ jsxs(Box, { display: "flex", gap: 2, mt: 2, className: "button-wrapper-variants", children: [
|
|
578
|
+
/* @__PURE__ */ jsx(Button, { variant: "contained", children: "Contained" }),
|
|
579
|
+
/* @__PURE__ */ jsx(Button, { variant: "contained", disabled: true, children: "Disabled" }),
|
|
580
|
+
/* @__PURE__ */ jsx(Button, { variant: "text", children: "Text" }),
|
|
581
|
+
/* @__PURE__ */ jsx(Button, { variant: "outlined", children: "Outlined" }),
|
|
582
|
+
/* @__PURE__ */ jsx(Button, { variant: "contained", startIcon: /* @__PURE__ */ jsx(default_1$2, {}), children: "Contained" }),
|
|
583
|
+
/* @__PURE__ */ jsx(Button, { variant: "contained", endIcon: /* @__PURE__ */ jsx(default_1$3, {}), children: "Contained" }),
|
|
584
|
+
/* @__PURE__ */ jsx(Button, { color: "error", children: "Error" })
|
|
585
|
+
] })
|
|
586
|
+
] }),
|
|
587
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
588
|
+
/* @__PURE__ */ jsx(Typography, { children: "Radio / Checkbox" }),
|
|
589
|
+
/* @__PURE__ */ jsxs(Box, { mt: 2, children: [
|
|
590
|
+
/* @__PURE__ */ jsx(FormControlLabel, { control: /* @__PURE__ */ jsx(Radio, {}), label: "Radio" }),
|
|
591
|
+
/* @__PURE__ */ jsx(FormControlLabel, { control: /* @__PURE__ */ jsx(Checkbox, {}), label: "Checkbox" }),
|
|
592
|
+
/* @__PURE__ */ jsx(
|
|
593
|
+
FormControlLabel,
|
|
594
|
+
{
|
|
595
|
+
control: /* @__PURE__ */ jsx(Checkbox, { checkedIcon: /* @__PURE__ */ jsx(default_1$4, {}) }),
|
|
596
|
+
label: "Indeterminate Checkbox"
|
|
597
|
+
}
|
|
598
|
+
)
|
|
599
|
+
] }),
|
|
600
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
601
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Select" }),
|
|
602
|
+
/* @__PURE__ */ jsx(Box, { mb: 4, width: 200, children: /* @__PURE__ */ jsxs(
|
|
603
|
+
Select,
|
|
604
|
+
{
|
|
605
|
+
fullWidth: true,
|
|
606
|
+
placeholder: "Placeholder",
|
|
607
|
+
label: "Select",
|
|
608
|
+
size: "small",
|
|
609
|
+
variant: "outlined",
|
|
610
|
+
children: [
|
|
611
|
+
/* @__PURE__ */ jsx(MenuItem, { value: 1, children: "option 1" }),
|
|
612
|
+
/* @__PURE__ */ jsx(MenuItem, { value: 2, children: "option 2" })
|
|
613
|
+
]
|
|
614
|
+
}
|
|
615
|
+
) }),
|
|
616
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
617
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Multi Select" }),
|
|
618
|
+
/* @__PURE__ */ jsxs(Box, { mb: 4, width: 200, children: [
|
|
619
|
+
/* @__PURE__ */ jsxs(
|
|
620
|
+
Select,
|
|
621
|
+
{
|
|
622
|
+
multiple: true,
|
|
623
|
+
value: ["option1", "option2"],
|
|
624
|
+
fullWidth: true,
|
|
625
|
+
placeholder: "Placeholder",
|
|
626
|
+
label: "Multi Select",
|
|
627
|
+
handleSearch: () => {
|
|
628
|
+
},
|
|
629
|
+
size: "small",
|
|
630
|
+
variant: "outlined",
|
|
631
|
+
children: [
|
|
632
|
+
/* @__PURE__ */ jsx(MenuItem, { value: "option1", children: "option 1" }),
|
|
633
|
+
/* @__PURE__ */ jsx(MenuItem, { value: "option2", children: "option 2" })
|
|
634
|
+
]
|
|
635
|
+
}
|
|
636
|
+
),
|
|
637
|
+
/* @__PURE__ */ jsx(Box, { mt: 1, display: "flex", gap: 1, children: (_a = ["option1", "option2"]) == null ? void 0 : _a.map((selectedOp, index) => /* @__PURE__ */ jsx(
|
|
638
|
+
Chip,
|
|
639
|
+
{
|
|
640
|
+
label: selectedOp,
|
|
641
|
+
deleteIcon: /* @__PURE__ */ jsx(default_1$5, {}),
|
|
642
|
+
onDelete: () => {
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
index
|
|
646
|
+
)) })
|
|
647
|
+
] }),
|
|
648
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
649
|
+
/* @__PURE__ */ jsx(Box, { display: "flex", gap: 2, my: 2, className: "chip-wrapper-variants", children: dayArray == null ? void 0 : dayArray.map((days, index) => /* @__PURE__ */ jsx(
|
|
650
|
+
Chip,
|
|
651
|
+
{
|
|
652
|
+
variant: "outlined",
|
|
653
|
+
type: "normal",
|
|
654
|
+
label: days.label,
|
|
655
|
+
active: days.selected,
|
|
656
|
+
onClick: () => handleClick(index)
|
|
657
|
+
}
|
|
658
|
+
)) }),
|
|
659
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
660
|
+
/* @__PURE__ */ jsx(Typography, { children: "Chip Component" }),
|
|
661
|
+
/* @__PURE__ */ jsxs(Box, { display: "flex", gap: 2, my: 2, className: "chip-wrapper-variants", children: [
|
|
662
|
+
/* @__PURE__ */ jsx(
|
|
663
|
+
Chip,
|
|
664
|
+
{
|
|
665
|
+
variant: "outlined",
|
|
666
|
+
label: "Outlined Round",
|
|
667
|
+
icon: /* @__PURE__ */ jsx(default_1$6, {})
|
|
668
|
+
}
|
|
669
|
+
),
|
|
670
|
+
/* @__PURE__ */ jsx(
|
|
671
|
+
Chip,
|
|
672
|
+
{
|
|
673
|
+
variant: "outlined",
|
|
674
|
+
type: "normal",
|
|
675
|
+
label: "Outlined Normal",
|
|
676
|
+
icon: /* @__PURE__ */ jsx(default_1$6, {})
|
|
677
|
+
}
|
|
678
|
+
),
|
|
679
|
+
/* @__PURE__ */ jsx(
|
|
680
|
+
Chip,
|
|
681
|
+
{
|
|
682
|
+
variant: "filled",
|
|
683
|
+
type: "normal",
|
|
684
|
+
label: "Normal Fill",
|
|
685
|
+
icon: /* @__PURE__ */ jsx(default_1$6, {})
|
|
686
|
+
}
|
|
687
|
+
),
|
|
688
|
+
/* @__PURE__ */ jsx(
|
|
689
|
+
Chip,
|
|
690
|
+
{
|
|
691
|
+
variant: "filled",
|
|
692
|
+
type: "rounded",
|
|
693
|
+
label: "Rounded Fill",
|
|
694
|
+
icon: /* @__PURE__ */ jsx(default_1$6, {})
|
|
695
|
+
}
|
|
696
|
+
),
|
|
697
|
+
/* @__PURE__ */ jsx(
|
|
698
|
+
Chip,
|
|
699
|
+
{
|
|
700
|
+
type: "normal",
|
|
701
|
+
label: "Normal Selected",
|
|
702
|
+
active: true,
|
|
703
|
+
icon: /* @__PURE__ */ jsx(default_1$6, {})
|
|
704
|
+
}
|
|
705
|
+
),
|
|
706
|
+
/* @__PURE__ */ jsx(
|
|
707
|
+
Chip,
|
|
708
|
+
{
|
|
709
|
+
type: "rounded",
|
|
710
|
+
label: "Round Selected",
|
|
711
|
+
active: true,
|
|
712
|
+
icon: /* @__PURE__ */ jsx(default_1$6, {})
|
|
713
|
+
}
|
|
714
|
+
)
|
|
715
|
+
] }),
|
|
716
|
+
/* @__PURE__ */ jsx(Box, { my: 2, children: /* @__PURE__ */ jsx(
|
|
717
|
+
Chip,
|
|
718
|
+
{
|
|
719
|
+
type: "rounded",
|
|
720
|
+
label: "Round Outlined Selected",
|
|
721
|
+
active: true,
|
|
722
|
+
variant: "outlined",
|
|
723
|
+
icon: /* @__PURE__ */ jsx(default_1$6, {})
|
|
724
|
+
}
|
|
725
|
+
) }),
|
|
726
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
727
|
+
/* @__PURE__ */ jsx(Typography, { className: "pt-1 pb-1", children: "Switch Component" }),
|
|
728
|
+
/* @__PURE__ */ jsx(Toggle, { checked: isToggled, onChange: handleToggle }),
|
|
729
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
730
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
731
|
+
/* @__PURE__ */ jsx(Typography, { className: "pt-1 pb-1", children: "Breadcrumb Component" }),
|
|
732
|
+
/* @__PURE__ */ jsx(BreadCrumb, { path: breadCrumbPath }),
|
|
733
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
734
|
+
/* @__PURE__ */ jsxs(Box, { my: 2, display: "flex", gap: 2, children: [
|
|
735
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Modal" }),
|
|
736
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setIsModalOpen(true), children: "Open" }),
|
|
737
|
+
/* @__PURE__ */ jsx(
|
|
738
|
+
ConfirmPopUp,
|
|
739
|
+
{
|
|
740
|
+
open: isModalOpen,
|
|
741
|
+
onClose: () => setIsModalOpen(false),
|
|
742
|
+
onConfirm: () => setIsModalOpen(false),
|
|
743
|
+
title: "Delete Confirmation?",
|
|
744
|
+
description: "Are you sure you want to delete this [object] ?"
|
|
745
|
+
}
|
|
746
|
+
),
|
|
747
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setIsShareModalOpen(true), children: "Open Share Modal" }),
|
|
748
|
+
/* @__PURE__ */ jsx(
|
|
749
|
+
SharePopUp,
|
|
750
|
+
{
|
|
751
|
+
open: isShareModalOpen,
|
|
752
|
+
onClose: () => setIsShareModalOpen(false),
|
|
753
|
+
title: "Share page Page_Name",
|
|
754
|
+
roles: userRoles,
|
|
755
|
+
toggleSwitch: true,
|
|
756
|
+
onSubmit: (selectedUsers) => {
|
|
757
|
+
console.log(selectedUsers);
|
|
758
|
+
setIsShareModalOpen(false);
|
|
759
|
+
},
|
|
760
|
+
isPeopleAccessVisible: true
|
|
761
|
+
}
|
|
762
|
+
),
|
|
763
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setIsOpenSaveFilter(true), children: "Open Save Filter Modal" }),
|
|
764
|
+
/* @__PURE__ */ jsx(
|
|
765
|
+
SaveFilterModal,
|
|
766
|
+
{
|
|
767
|
+
open: openSaveFilter,
|
|
768
|
+
onClose: () => setIsOpenSaveFilter(false),
|
|
769
|
+
handleSubmit: (name) => console.log(name)
|
|
770
|
+
}
|
|
771
|
+
)
|
|
772
|
+
] }),
|
|
773
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
774
|
+
/* @__PURE__ */ jsxs(Box, { m: 2, display: "flex", gap: 2, children: [
|
|
775
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleOpenNormalToast, children: "Normal Toast" }),
|
|
776
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleOpenAlertToast, children: "Alert Toast" }),
|
|
777
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleOpenNormalWithUndo, children: "Normal Undo" }),
|
|
778
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleOpenAlertWithUndo, children: "Alert Undo" }),
|
|
779
|
+
/* @__PURE__ */ jsx(
|
|
780
|
+
Toast,
|
|
781
|
+
{
|
|
782
|
+
open: isNormalToastOpen,
|
|
783
|
+
type: "normal",
|
|
784
|
+
message: "This is a normal toast!",
|
|
785
|
+
handleClose: handleCloseNormalToast
|
|
786
|
+
}
|
|
787
|
+
),
|
|
788
|
+
/* @__PURE__ */ jsx(
|
|
789
|
+
Toast,
|
|
790
|
+
{
|
|
791
|
+
open: isAlertToastOpen,
|
|
792
|
+
type: "alert",
|
|
793
|
+
message: "This is a alert toast!",
|
|
794
|
+
handleClose: handleCloseAlertToast
|
|
795
|
+
}
|
|
796
|
+
),
|
|
797
|
+
/* @__PURE__ */ jsx(
|
|
798
|
+
Toast,
|
|
799
|
+
{
|
|
800
|
+
open: isNormalWithUndoOpen,
|
|
801
|
+
type: "normal",
|
|
802
|
+
message: "This is a normal toast!",
|
|
803
|
+
handleClose: handleCloseNormalWithUndo,
|
|
804
|
+
handleUndo
|
|
805
|
+
}
|
|
806
|
+
),
|
|
807
|
+
/* @__PURE__ */ jsx(
|
|
808
|
+
Toast,
|
|
809
|
+
{
|
|
810
|
+
open: isAlertWithUndoOpen,
|
|
811
|
+
type: "alert",
|
|
812
|
+
message: "This is a alert toast!",
|
|
813
|
+
handleClose: handleCloseAlertWithUndo,
|
|
814
|
+
handleUndo
|
|
815
|
+
}
|
|
816
|
+
)
|
|
817
|
+
] }),
|
|
818
|
+
/* @__PURE__ */ jsx(HrLine, {}),
|
|
819
|
+
/* @__PURE__ */ jsx(
|
|
820
|
+
MaterialTable,
|
|
821
|
+
{
|
|
822
|
+
enablePagination: true,
|
|
823
|
+
columnOrder: ["mrt-row-select", ...columnOrder],
|
|
824
|
+
handleColumnOrdering,
|
|
825
|
+
rows,
|
|
826
|
+
columns,
|
|
827
|
+
totalPages: 20,
|
|
828
|
+
paginationModel: { pageNo: 1, limit: 10 }
|
|
829
|
+
}
|
|
830
|
+
),
|
|
831
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
832
|
+
/* @__PURE__ */ jsxs(Box, { m: 2, children: [
|
|
833
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Card Wrapper" }),
|
|
834
|
+
/* @__PURE__ */ jsxs(CardWrapper, { children: [
|
|
835
|
+
/* @__PURE__ */ jsxs(
|
|
836
|
+
Box,
|
|
837
|
+
{
|
|
838
|
+
display: "flex",
|
|
839
|
+
justifyContent: "space-between",
|
|
840
|
+
alignItems: "center",
|
|
841
|
+
mb: 2,
|
|
842
|
+
children: [
|
|
843
|
+
/* @__PURE__ */ jsx(
|
|
844
|
+
IconButton,
|
|
845
|
+
{
|
|
846
|
+
style: {
|
|
847
|
+
border: "1px solid #F5F6F5"
|
|
848
|
+
},
|
|
849
|
+
"aria-label": "open drawer",
|
|
850
|
+
children: /* @__PURE__ */ jsx(default_1$7, {})
|
|
851
|
+
}
|
|
852
|
+
),
|
|
853
|
+
/* @__PURE__ */ jsx(IconButton, { color: "inherit", size: "small", children: /* @__PURE__ */ jsx("img", { src: images.more, alt: "more icon" }) })
|
|
854
|
+
]
|
|
855
|
+
}
|
|
856
|
+
),
|
|
857
|
+
/* @__PURE__ */ jsx(Typography, { type: "s4", color: "theme.secondary.800", children: "Total Users" }),
|
|
858
|
+
/* @__PURE__ */ jsx(Typography, { type: "h2", weight: "medium", color: "theme.secondary.1000", children: "300" })
|
|
859
|
+
] })
|
|
860
|
+
] }),
|
|
861
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
862
|
+
/* @__PURE__ */ jsxs(Box, { m: 2, children: [
|
|
863
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Tooltip Component" }),
|
|
864
|
+
/* @__PURE__ */ jsx(Tooltip, { arrow: true, title: "This is a Tooltip description", children: /* @__PURE__ */ jsx("span", { children: "Tooltip" }) })
|
|
865
|
+
] }),
|
|
866
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
867
|
+
/* @__PURE__ */ jsxs(Box, { m: 2, children: [
|
|
868
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Phone Input Component" }),
|
|
869
|
+
/* @__PURE__ */ jsx(PhoneInput, { name: "phoneNumber", label: "Phone Number" })
|
|
870
|
+
] }),
|
|
871
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
872
|
+
/* @__PURE__ */ jsxs(Box, { p: 2, mb: 2, children: [
|
|
873
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Search Bar Component" }),
|
|
874
|
+
/* @__PURE__ */ jsx(Box, { width: 200, children: /* @__PURE__ */ jsx(
|
|
875
|
+
SearchBar,
|
|
876
|
+
{
|
|
877
|
+
placeholder: "Search User",
|
|
878
|
+
handleSearch: (val) => alert(val)
|
|
879
|
+
}
|
|
880
|
+
) })
|
|
881
|
+
] }),
|
|
882
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
883
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
884
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
885
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Avatar" }),
|
|
886
|
+
/* @__PURE__ */ jsxs(Box, { display: "flex", gap: 2, my: 2, children: [
|
|
887
|
+
/* @__PURE__ */ jsx(Avatar, { size: 32, alt: "Person", icon: true }),
|
|
888
|
+
/* @__PURE__ */ jsx(
|
|
889
|
+
Avatar,
|
|
890
|
+
{
|
|
891
|
+
size: 32,
|
|
892
|
+
alt: "Person",
|
|
893
|
+
sx: {
|
|
894
|
+
color: "theme.primary.800",
|
|
895
|
+
backgroundColor: "theme.primary.200"
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
),
|
|
899
|
+
/* @__PURE__ */ jsx(
|
|
900
|
+
Avatar,
|
|
901
|
+
{
|
|
902
|
+
size: 32,
|
|
903
|
+
alt: "Person Name",
|
|
904
|
+
sx: {
|
|
905
|
+
color: "theme.primary.800",
|
|
906
|
+
backgroundColor: "theme.primary.200"
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
),
|
|
910
|
+
/* @__PURE__ */ jsx(Avatar, { src: images.avatar, size: 32, alt: "Person" }),
|
|
911
|
+
/* @__PURE__ */ jsx(Avatar, { badge: true, src: images.avatar, size: 32, alt: "Person Name" })
|
|
912
|
+
] }),
|
|
913
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
914
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
915
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Activity Tag" }),
|
|
916
|
+
/* @__PURE__ */ jsxs(Box, { display: "flex", gap: 2, my: 2, sx: { backgroundColor: "#e3e3e3" }, children: [
|
|
917
|
+
/* @__PURE__ */ jsx(
|
|
918
|
+
Box,
|
|
919
|
+
{
|
|
920
|
+
display: "flex",
|
|
921
|
+
gap: 2,
|
|
922
|
+
my: 2,
|
|
923
|
+
mx: 2,
|
|
924
|
+
sx: { backgroundColor: "#ffffff", width: "352px" },
|
|
925
|
+
children: /* @__PURE__ */ jsx(
|
|
926
|
+
ActivityTag,
|
|
927
|
+
{
|
|
928
|
+
data: activityTag.activities,
|
|
929
|
+
placeholder: "Type a reply / Comment",
|
|
930
|
+
type: "activity"
|
|
931
|
+
}
|
|
932
|
+
)
|
|
933
|
+
}
|
|
934
|
+
),
|
|
935
|
+
/* @__PURE__ */ jsx(
|
|
936
|
+
Box,
|
|
937
|
+
{
|
|
938
|
+
display: "flex",
|
|
939
|
+
gap: 2,
|
|
940
|
+
my: 2,
|
|
941
|
+
sx: { backgroundColor: "#ffffff", width: "352px", height: "500px" },
|
|
942
|
+
children: /* @__PURE__ */ jsx(
|
|
943
|
+
ActivityTag,
|
|
944
|
+
{
|
|
945
|
+
data: activityTagData.comments,
|
|
946
|
+
placeholder: "Type a reply / Comment",
|
|
947
|
+
type: "comments",
|
|
948
|
+
textfield: true,
|
|
949
|
+
textfieldTitle: "Write comments",
|
|
950
|
+
onCommentSubmit: handleCommentSubmit,
|
|
951
|
+
onChange: handleCommentChange,
|
|
952
|
+
value: commentValue
|
|
953
|
+
}
|
|
954
|
+
)
|
|
955
|
+
}
|
|
956
|
+
)
|
|
957
|
+
] }),
|
|
958
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
959
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Multiline Component" }),
|
|
960
|
+
/* @__PURE__ */ jsx(Box, { my: 2, children: /* @__PURE__ */ jsx(MultiLine, { options: multilineData }) }),
|
|
961
|
+
/* @__PURE__ */ jsx(Typography, { m: 2, children: "Alert Component" }),
|
|
962
|
+
/* @__PURE__ */ jsxs(Box, { display: "flex", flexDirection: "column", gap: 2, m: 2, children: [
|
|
963
|
+
isInfoAlertOpen && /* @__PURE__ */ jsx(Alert, { severity: "info", onClose: () => setIsInfoAlertOpen(false), children: "This is a normal alert" }),
|
|
964
|
+
isSuccessAlertOpen && /* @__PURE__ */ jsx(
|
|
965
|
+
Alert,
|
|
966
|
+
{
|
|
967
|
+
severity: "success",
|
|
968
|
+
onClose: () => setIsSuccessAlertOpen(false),
|
|
969
|
+
children: "This is a success alert"
|
|
970
|
+
}
|
|
971
|
+
),
|
|
972
|
+
isErrorAlertOpen && /* @__PURE__ */ jsx(Alert, { severity: "error", onClose: () => setIsErrorAlertOpen(false), children: "This is a error alert" })
|
|
973
|
+
] }),
|
|
974
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
975
|
+
/* @__PURE__ */ jsxs(Box, { m: 2, width: 300, children: [
|
|
976
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Country Select Component" }),
|
|
977
|
+
/* @__PURE__ */ jsx(CountrySelect, { country, handleCountry })
|
|
978
|
+
] }),
|
|
979
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
980
|
+
/* @__PURE__ */ jsxs(Box, { mb: 2, children: [
|
|
981
|
+
/* @__PURE__ */ jsx(Typography, { className: "pt-1 pb-1", children: "Tabs Component" }),
|
|
982
|
+
/* @__PURE__ */ jsx(TabBar, { tabs: tabsData })
|
|
983
|
+
] }),
|
|
984
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
985
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
986
|
+
/* @__PURE__ */ jsx(
|
|
987
|
+
ActionBar,
|
|
988
|
+
{
|
|
989
|
+
title: "User",
|
|
990
|
+
data: actionBarData,
|
|
991
|
+
setData: setActionBarData,
|
|
992
|
+
active: actionBarActiveTab,
|
|
993
|
+
setActive: setActionBarActiveTab,
|
|
994
|
+
handleAddButton: () => console.log("button clicked")
|
|
995
|
+
}
|
|
996
|
+
),
|
|
997
|
+
actionBarActiveTab === viewTypes.TABLE && /* @__PURE__ */ jsx(
|
|
998
|
+
MaterialTable,
|
|
999
|
+
{
|
|
1000
|
+
enablePagination: false,
|
|
1001
|
+
columnOrder: ["mrt-row-select", ...columnOrder],
|
|
1002
|
+
handleColumnOrdering,
|
|
1003
|
+
rows,
|
|
1004
|
+
columns,
|
|
1005
|
+
totalPages: 20,
|
|
1006
|
+
paginationModel: { pageNo: 1, limit: 10 }
|
|
1007
|
+
}
|
|
1008
|
+
),
|
|
1009
|
+
actionBarActiveTab === viewTypes.GANTT && /* @__PURE__ */ jsx(GanttChart, { data: ganttData }),
|
|
1010
|
+
actionBarActiveTab === viewTypes.GRID && /* @__PURE__ */ jsx(GridWrapper, { children: /* @__PURE__ */ jsx(GridCard, { data: data$1 }) }),
|
|
1011
|
+
actionBarActiveTab === viewTypes.CALENDAR && /* @__PURE__ */ jsx(CalendarWrapper, { data: calendarData }),
|
|
1012
|
+
actionBarActiveTab === viewTypes.KANBAN && /* @__PURE__ */ jsx(BoardWrapper, { data: board }),
|
|
1013
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
1014
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
1015
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "Upload" }),
|
|
1016
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setIsUploadModalOpen(true), children: "Upload Documents" }),
|
|
1017
|
+
/* @__PURE__ */ jsx(
|
|
1018
|
+
Upload,
|
|
1019
|
+
{
|
|
1020
|
+
open: isUploadModalOpen,
|
|
1021
|
+
onClose: () => setIsUploadModalOpen(false),
|
|
1022
|
+
onConfirm: () => setIsUploadModalOpen(true),
|
|
1023
|
+
onSubmit: handleUploadFiles,
|
|
1024
|
+
title: "Upload",
|
|
1025
|
+
multiple: true
|
|
1026
|
+
}
|
|
1027
|
+
),
|
|
1028
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
1029
|
+
/* @__PURE__ */ jsx(Typography, { mb: 2, children: "User Dropdown" }),
|
|
1030
|
+
/* @__PURE__ */ jsx(Box, { gap: 2, py: 2, px: 2, sx: { backgroundColor: "#e3e3e3" }, children: /* @__PURE__ */ jsx(
|
|
1031
|
+
Box,
|
|
1032
|
+
{
|
|
1033
|
+
display: "flex",
|
|
1034
|
+
gap: 2,
|
|
1035
|
+
my: 2,
|
|
1036
|
+
mx: 2,
|
|
1037
|
+
sx: { width: "472px", maxHeight: "267px", overflowY: "auto" },
|
|
1038
|
+
children: /* @__PURE__ */ jsx(
|
|
1039
|
+
UserDropdown,
|
|
1040
|
+
{
|
|
1041
|
+
data: userData,
|
|
1042
|
+
value: userDropdownData,
|
|
1043
|
+
onToggleChange: handleToggleChange,
|
|
1044
|
+
onCheckboxChange: handleCheckboxChange
|
|
1045
|
+
}
|
|
1046
|
+
)
|
|
1047
|
+
}
|
|
1048
|
+
) }),
|
|
1049
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1050
|
+
/* @__PURE__ */ jsx(Typography, { children: "with task list" }),
|
|
1051
|
+
/* @__PURE__ */ jsx(GanttChart, { data: ganttData, showList: true, progressChange: true, dateChange: true }),
|
|
1052
|
+
/* @__PURE__ */ jsx(Typography, { children: "without task list" }),
|
|
1053
|
+
/* @__PURE__ */ jsx(GanttChart, { data: ganttData })
|
|
1054
|
+
] }),
|
|
1055
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
1056
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
1057
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1058
|
+
/* @__PURE__ */ jsx(Typography, { type: "s1", children: "Date Range Picker" }),
|
|
1059
|
+
/* @__PURE__ */ jsx(Box, { sx: { width: "250px" }, children: /* @__PURE__ */ jsx(
|
|
1060
|
+
DateRangePicker,
|
|
1061
|
+
{
|
|
1062
|
+
startYear: "2000",
|
|
1063
|
+
start: "2024/02/05",
|
|
1064
|
+
end: "2024/02/15",
|
|
1065
|
+
dateFormat: "yyyy/MM/dd",
|
|
1066
|
+
onDateRangeChange: handleDateRangePicker
|
|
1067
|
+
}
|
|
1068
|
+
) }),
|
|
1069
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
1070
|
+
/* @__PURE__ */ jsx(Box, { sx: { width: "250px" }, children: /* @__PURE__ */ jsx(
|
|
1071
|
+
TimeRangePicker,
|
|
1072
|
+
{
|
|
1073
|
+
hour12: true,
|
|
1074
|
+
startTime: "08:00 AM",
|
|
1075
|
+
endTime: "08:00 PM",
|
|
1076
|
+
onTimeRangeChange: handleTimeRangePicker
|
|
1077
|
+
}
|
|
1078
|
+
) })
|
|
1079
|
+
] }),
|
|
1080
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
1081
|
+
/* @__PURE__ */ jsxs(Box, { gap: 8, display: "flex", flexWrap: "wrap", children: [
|
|
1082
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(DatePicker, { label: "Select Date" }) }),
|
|
1083
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(TimePicker, { label: "Select Time" }) }),
|
|
1084
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(UploadMedia, { label: "Upload Media" }) }),
|
|
1085
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(UploadMedia, { label: "Upload Image", type: "image" }) }),
|
|
1086
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(InfoCard, { label: "Info" }) })
|
|
1087
|
+
] }),
|
|
1088
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
1089
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
1090
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
1091
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1092
|
+
/* @__PURE__ */ jsx(Typography, { type: "s1", children: "Bar Chart" }),
|
|
1093
|
+
/* @__PURE__ */ jsx(
|
|
1094
|
+
BarChart,
|
|
1095
|
+
{
|
|
1096
|
+
data,
|
|
1097
|
+
line: true,
|
|
1098
|
+
numOfLines: 5,
|
|
1099
|
+
width: 562,
|
|
1100
|
+
height: 366
|
|
1101
|
+
}
|
|
1102
|
+
)
|
|
1103
|
+
] }),
|
|
1104
|
+
/* @__PURE__ */ jsx("hr", {}),
|
|
1105
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1106
|
+
/* @__PURE__ */ jsx(Typography, { type: "s1", children: "Line Chart" }),
|
|
1107
|
+
/* @__PURE__ */ jsx(LineChart, { data, numOfLines: 10, width: 562, height: 366 })
|
|
1108
|
+
] }),
|
|
1109
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1110
|
+
/* @__PURE__ */ jsx(Typography, { type: "s1", children: "Line Area Chart" }),
|
|
1111
|
+
/* @__PURE__ */ jsx(AreaLineChart, { data: areaLineGraph, width: 250, height: 100 })
|
|
1112
|
+
] }),
|
|
1113
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1114
|
+
/* @__PURE__ */ jsx(ValueField, { label: "full name", children: "Muskan" }),
|
|
1115
|
+
/* @__PURE__ */ jsx(Accordion, { title: "Accordion" })
|
|
1116
|
+
] }),
|
|
1117
|
+
/* @__PURE__ */ jsx(Typography, { type: "s1", children: "Donut Chart" }),
|
|
1118
|
+
/* @__PURE__ */ jsx(Box, { marginLeft: 10, marginTop: 5, marginBottom: 5, children: /* @__PURE__ */ jsx(DonutChart, { data: donutChartData, legend: false }) }),
|
|
1119
|
+
/* @__PURE__ */ jsx(Typography, { type: "s1", children: "Donut Chart with horizontal legend" }),
|
|
1120
|
+
/* @__PURE__ */ jsx(Box, { width: 700, marginTop: 5, marginBottom: 5, children: /* @__PURE__ */ jsx(DonutChart, { data: donutChartData }) }),
|
|
1121
|
+
/* @__PURE__ */ jsx(Typography, { type: "s1", children: "Donut Chart with vertical legend" }),
|
|
1122
|
+
/* @__PURE__ */ jsx(Box, { width: 350, marginTop: 5, marginBottom: 5, children: /* @__PURE__ */ jsx(
|
|
1123
|
+
DonutChart,
|
|
1124
|
+
{
|
|
1125
|
+
direction: "vertical",
|
|
1126
|
+
data: [
|
|
1127
|
+
{
|
|
1128
|
+
label: "Active User",
|
|
1129
|
+
value: 250
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
label: "In-Active User",
|
|
1133
|
+
value: 50
|
|
1134
|
+
}
|
|
1135
|
+
]
|
|
1136
|
+
}
|
|
1137
|
+
) })
|
|
1138
|
+
] });
|
|
1139
|
+
};
|
|
1140
|
+
export {
|
|
1141
|
+
Components,
|
|
1142
|
+
Components as default
|
|
1143
|
+
};
|
|
1144
|
+
//# sourceMappingURL=index.esm.js.map
|