@codezee/sixtify-brahma 0.2.34 → 0.2.36
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/package.json +1 -1
- package/packages/shared-components/dist/Actions/ExportIconAction.js +1 -1
- package/packages/shared-components/dist/Actions/FilterIconAction.js +1 -1
- package/packages/shared-components/dist/Actions/ImportIconAction.js +1 -1
- package/packages/shared-components/dist/ContentBox/ContentBox.d.ts +3 -0
- package/packages/shared-components/dist/ContentBox/ContentBox.d.ts.map +1 -0
- package/packages/shared-components/dist/ContentBox/ContentBox.js +18 -0
- package/packages/shared-components/dist/ContentBox/index.d.ts +2 -0
- package/packages/shared-components/dist/ContentBox/index.d.ts.map +1 -0
- package/packages/shared-components/dist/ContentBox/index.js +17 -0
- package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.d.ts.map +1 -1
- package/packages/shared-components/dist/Drawer/OpenDrawer/OpenDrawerMenuItemList.js +10 -6
- package/packages/shared-components/dist/FilterList/FilterListV2.d.ts.map +1 -1
- package/packages/shared-components/dist/FilterList/FilterListV2.js +15 -18
- package/packages/shared-components/dist/Svgs/SvgFilterList.d.ts.map +1 -1
- package/packages/shared-components/dist/Svgs/SvgFilterList.js +1 -1
- package/packages/shared-components/dist/index.d.ts +1 -0
- package/packages/shared-components/dist/index.d.ts.map +1 -1
- package/packages/shared-components/dist/index.js +1 -0
package/package.json
CHANGED
|
@@ -6,6 +6,6 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const Svgs_1 = require("../Svgs");
|
|
7
7
|
const Tooltip_1 = require("../Tooltip");
|
|
8
8
|
const ExportIconAction = (props) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Export", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgExport, {}) }) }));
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Export", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgExport, {}) }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.ExportIconAction = ExportIconAction;
|
|
@@ -6,6 +6,6 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const SvgFilterList_1 = require("../Svgs/SvgFilterList");
|
|
7
7
|
const Tooltip_1 = require("../Tooltip");
|
|
8
8
|
const FilterIconAction = (props) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Filter", children: (0, jsx_runtime_1.jsx)(SvgFilterList_1.SvgFilterList, {}) }) }));
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Filter", children: (0, jsx_runtime_1.jsx)(SvgFilterList_1.SvgFilterList, {}) }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.FilterIconAction = FilterIconAction;
|
|
@@ -6,6 +6,6 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const Svgs_1 = require("../Svgs");
|
|
7
7
|
const Tooltip_1 = require("../Tooltip");
|
|
8
8
|
const ImportIconAction = (props) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Import", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgImport, {}) }) }));
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Import", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgImport, {}) }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.ImportIconAction = ImportIconAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentBox.d.ts","sourceRoot":"","sources":["../../src/ContentBox/ContentBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,eAAO,MAAM,UAAU,GAAI,cAAc,iBAAiB,4CAkBzD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentBox = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const PadBox_1 = require("../PadBox");
|
|
7
|
+
const ContentBox = ({ children }) => {
|
|
8
|
+
const theme = (0, material_1.useTheme)();
|
|
9
|
+
const { iron, butterflyBlue } = theme.palette.app.color;
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
11
|
+
background: iron[600],
|
|
12
|
+
border: `1px solid ${butterflyBlue[300]}`,
|
|
13
|
+
borderRadius: "6px",
|
|
14
|
+
height: "100%",
|
|
15
|
+
width: "100%",
|
|
16
|
+
}, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px" }, children: children }) }));
|
|
17
|
+
};
|
|
18
|
+
exports.ContentBox = ContentBox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ContentBox/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ContentBox"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenDrawerMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/OpenDrawer/OpenDrawerMenuItemList.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C,KAAK,2BAA2B,GAAG;IACjC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAC3B,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EACnB,OAAO,GACP;SACG,IAAI,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,GAAG,eAAe;KACtD;CACN,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,eAAe,CAAC;IAC9B,eAAe,EAAE,CACf,KAAK,EAAE,eAAe,GAAG,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,CAAC,KAClE,IAAI,CAAC;IACV,mBAAmB,EAAE,eAAe,CAAC;CACtC,CAAC;
|
|
1
|
+
{"version":3,"file":"OpenDrawerMenuItemList.d.ts","sourceRoot":"","sources":["../../../src/Drawer/OpenDrawer/OpenDrawerMenuItemList.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C,KAAK,2BAA2B,GAAG;IACjC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAC3B,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EACnB,OAAO,GACP;SACG,IAAI,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,GAAG,eAAe;KACtD;CACN,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,eAAe,CAAC;IAC9B,eAAe,EAAE,CACf,KAAK,EAAE,eAAe,GAAG,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,CAAC,KAClE,IAAI,CAAC;IACV,mBAAmB,EAAE,eAAe,CAAC;CACtC,CAAC;AAsCF,eAAO,MAAM,wBAAwB,GACnC,OAAO,eAAe,EACtB,MAAM,MAAM,EAAE,KACb,OAUF,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,EAAE,MAAM,MAAM,EAAE,YAIhE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,sFAO/B,sBAAsB,wDAmGxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,iCAGpC,2BAA2B,8CAiC7B,CAAC"}
|
|
@@ -26,6 +26,15 @@ const getNestedMenuState = (state, path) => {
|
|
|
26
26
|
}
|
|
27
27
|
return getNestedMenuState(nextState, rest);
|
|
28
28
|
};
|
|
29
|
+
const checkCurrentSelectedPath = (obj) => {
|
|
30
|
+
if (obj === true) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
if (typeof obj !== "object" || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return Object.values(obj).every(checkCurrentSelectedPath);
|
|
37
|
+
};
|
|
29
38
|
const isPathInCurrentSelection = (state, path) => {
|
|
30
39
|
const result = path.reduce((acc, segment) => {
|
|
31
40
|
if (typeof acc !== "object" || acc === null || !(segment in acc)) {
|
|
@@ -33,12 +42,7 @@ const isPathInCurrentSelection = (state, path) => {
|
|
|
33
42
|
}
|
|
34
43
|
return acc[segment];
|
|
35
44
|
}, state);
|
|
36
|
-
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
return !!(typeof result === "object" &&
|
|
40
|
-
result !== null &&
|
|
41
|
-
Object.values(result).every((v) => v === true));
|
|
45
|
+
return checkCurrentSelectedPath(result);
|
|
42
46
|
};
|
|
43
47
|
exports.isPathInCurrentSelection = isPathInCurrentSelection;
|
|
44
48
|
const isMenuOpen = (state, path) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterListV2.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterListV2.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAenD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterListV2.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterListV2.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAenD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AACF,eAAO,MAAM,YAAY,GAAI,wFAQ1B,iBAAiB,4CAilBnB,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.FilterListV2 = void 0;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
@@ -26,6 +29,7 @@ const Tooltip_1 = require("../Tooltip");
|
|
|
26
29
|
const FilterPopupWrapper_1 = require("./FilterPopupWrapper");
|
|
27
30
|
const GetFilterPopupComponent_1 = require("./GetFilterPopupComponent");
|
|
28
31
|
const getFormData_1 = require("./getFormData");
|
|
32
|
+
const isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
29
33
|
const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onApply, onClear, onChange, dateKeys, }) => {
|
|
30
34
|
const theme = (0, material_1.useTheme)();
|
|
31
35
|
const { iron, slate } = theme.palette.app.color;
|
|
@@ -35,7 +39,6 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
35
39
|
const [openFilterPopup, setOpenFilterPopup] = (0, react_1.useState)(false);
|
|
36
40
|
const [datePickerPopup, setDatePickerPopup] = (0, react_1.useState)(false);
|
|
37
41
|
const [currentFilter, setCurrentFilter] = (0, react_1.useState)(null);
|
|
38
|
-
const [expandedKeys, setExpandedKeys] = (0, react_1.useState)([]);
|
|
39
42
|
const handleDateRange = (filter) => {
|
|
40
43
|
setCurrentFilter(filter);
|
|
41
44
|
setDatePickerPopup(true);
|
|
@@ -121,13 +124,6 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
121
124
|
const handleDateRangeSubmit = () => {
|
|
122
125
|
setDatePickerPopup(false);
|
|
123
126
|
};
|
|
124
|
-
const onError = (error) => {
|
|
125
|
-
const errorKeys = Object.keys(error);
|
|
126
|
-
const tabsToExpand = filterListItems
|
|
127
|
-
.filter((filter) => filter.required && errorKeys.includes(filter.key))
|
|
128
|
-
.map((filter) => filter.key);
|
|
129
|
-
setExpandedKeys(tabsToExpand);
|
|
130
|
-
};
|
|
131
127
|
const getFilterItem = (key) => {
|
|
132
128
|
return filterListItems.find((item) => item.key === key);
|
|
133
129
|
};
|
|
@@ -163,13 +159,14 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
163
159
|
}
|
|
164
160
|
}, [company_id]);
|
|
165
161
|
(0, react_1.useMemo)(() => {
|
|
166
|
-
if (business_unit_id
|
|
162
|
+
if (!(0, isEqual_1.default)(business_unit_id, filterListData?.business_unit_id) &&
|
|
167
163
|
!openFilterPopup) {
|
|
168
164
|
setValue("business_unit_location_id", null);
|
|
169
165
|
}
|
|
170
166
|
}, [business_unit_id]);
|
|
171
167
|
(0, react_1.useMemo)(() => {
|
|
172
|
-
if (department_id
|
|
168
|
+
if (!(0, isEqual_1.default)(department_id, filterListData?.department_id) &&
|
|
169
|
+
!openFilterPopup) {
|
|
173
170
|
setValue("sub_department_id", null);
|
|
174
171
|
}
|
|
175
172
|
}, [department_id]);
|
|
@@ -196,6 +193,10 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
196
193
|
, {
|
|
197
194
|
// eslint-disable-next-line sonarjs/no-base-to-string
|
|
198
195
|
toolTipLabel: `${keyValue}`, children: `${item?.label}: ${keyValue}` }), onDelete: () => handleDelete(key), onClick: (e) => {
|
|
196
|
+
if (key === "company_id" &&
|
|
197
|
+
filterListItems?.some(({ required }) => required)) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
199
200
|
setOpenFilterPopup(true);
|
|
200
201
|
filterPopupAnchorElm.current = e.currentTarget;
|
|
201
202
|
const item = getFilterItem(key);
|
|
@@ -221,7 +222,7 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
221
222
|
if (!shouldFormSubmit) {
|
|
222
223
|
handleSubmit((data) => {
|
|
223
224
|
onSubmit(data);
|
|
224
|
-
}
|
|
225
|
+
})();
|
|
225
226
|
}
|
|
226
227
|
}, onKeyDown: (e) => {
|
|
227
228
|
if (e.key === "Enter") {
|
|
@@ -229,7 +230,7 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
229
230
|
if (!shouldFormSubmit) {
|
|
230
231
|
handleSubmit((data) => {
|
|
231
232
|
onSubmit(data);
|
|
232
|
-
}
|
|
233
|
+
})();
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
}, children: (0, jsx_runtime_1.jsxs)(material_1.Drawer, { open: open, onClose: (_event, reason) => {
|
|
@@ -247,11 +248,7 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
247
248
|
}, children: [(0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px 30px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", width: "100%", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", children: "Filter" }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => {
|
|
248
249
|
reset();
|
|
249
250
|
handleClose();
|
|
250
|
-
}, children: (0, jsx_runtime_1.jsx)(icons_1.ClearIcon, {}) })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { width: "100%" } })] }), (0, jsx_runtime_1.jsx)(material_1.Stack, { flexGrow: 1, sx: { overflowX: "hidden" }, children: filterListItems.map((filter) => filter.type === "switch" ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", width: "80%", sx: { padding: "10px 5px 10px 20px ", margin: "auto" }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: filter.label }), (0, jsx_runtime_1.jsx)(Switch_1.Switch, { control: control, name: filter.key })] }, filter.key)) : ((0, jsx_runtime_1.jsxs)(material_1.Accordion, { defaultExpanded: !!filterListData?.[filter.key]
|
|
251
|
-
setExpandedKeys((prev) => prev.includes(filter.key)
|
|
252
|
-
? prev.filter((k) => k !== filter.key)
|
|
253
|
-
: [...prev, filter.key]);
|
|
254
|
-
}, sx: {
|
|
251
|
+
}, children: (0, jsx_runtime_1.jsx)(icons_1.ClearIcon, {}) })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { width: "100%" } })] }), (0, jsx_runtime_1.jsx)(material_1.Stack, { flexGrow: 1, sx: { overflowX: "hidden" }, children: filterListItems.map((filter) => filter.type === "switch" ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", width: "80%", sx: { padding: "10px 5px 10px 20px ", margin: "auto" }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: filter.label }), (0, jsx_runtime_1.jsx)(Switch_1.Switch, { control: control, name: filter.key })] }, filter.key)) : ((0, jsx_runtime_1.jsxs)(material_1.Accordion, { defaultExpanded: !!filterListData?.[filter.key] || filter.required, disabled: filter.isDisabled, sx: {
|
|
255
252
|
"&.MuiAccordion-root.Mui-expanded": {
|
|
256
253
|
margin: "0 !important",
|
|
257
254
|
},
|
|
@@ -296,7 +293,7 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
296
293
|
watch(filter.key)[1]
|
|
297
294
|
? luxon_1.DateTime.fromISO(watch(filter.key)[1]).toFormat(FormFields_1.dateFormats.dateWithEuropean)
|
|
298
295
|
: "End Date" }) })] })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, GetFilterPopupComponent_1.getFilterPopupComponent)(filter, control, errors)[filter.type] })) }) })] }, filter.key))) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { width: "100%", position: "absolute", bottom: "70px" } }), (0, jsx_runtime_1.jsx)(material_1.Stack, { height: "70px", children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", gap: "10px", sx: { position: "absolute", bottom: "15px" }, children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { type: "submit", disabled: shouldFormSubmit, variant: "contained", onClick: () => {
|
|
299
|
-
handleSubmit(onSubmit
|
|
296
|
+
handleSubmit(onSubmit)();
|
|
300
297
|
}, children: "Apply" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { type: "button", onClick: () => handlerReset(), disabled: Object.keys(formData).every((key) => !formData[key]), variant: "outlined", children: "Reset" })] }) }) })] }) }), currentFilter && ((0, jsx_runtime_1.jsx)(FilterPopupWrapper_1.FilterPopupWrapper, { open: openFilterPopup, onClose: handleCloseFilterPopup, onApply: () => {
|
|
301
298
|
handleSubmit(onSubmit)();
|
|
302
299
|
}, control: control, errors: errors, reset: reset, anchorEl: filterPopupAnchorElm.current, filterItem: currentFilter, currentFilterValue: currentFilterValue })), currentFilter && ((0, jsx_runtime_1.jsx)(FilterPopupWrapper_1.FilterPopUpDateRangeWrapper, { open: datePickerPopup, onClose: handleCloseDatePickerPopup, onApply: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SvgFilterList.d.ts","sourceRoot":"","sources":["../../src/Svgs/SvgFilterList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,aAAa,GAAI,OAAO,YAAY,
|
|
1
|
+
{"version":3,"file":"SvgFilterList.d.ts","sourceRoot":"","sources":["../../src/Svgs/SvgFilterList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,aAAa,GAAI,OAAO,YAAY,4CAkBhD,CAAC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SvgFilterList = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const SvgFilterList = (props) => ((0, jsx_runtime_1.jsxs)("svg", { width: "38", height: "38", viewBox: "0 0 36 36", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.5", y: "0.5", width: "
|
|
5
|
+
const SvgFilterList = (props) => ((0, jsx_runtime_1.jsxs)("svg", { width: "38", height: "38", viewBox: "0 0 36 36", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: "0.5", y: "0.5", width: "33", height: "33", rx: "3.5", stroke: "#BCBFC2" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.5 13.8333V11.5C10.5 10.9477 10.9478 10.5 11.5 10.5H24.5001C25.0524 10.5 25.5001 10.9477 25.5001 11.4999L25.5004 13.8333M10.5 13.8333L15.9842 18.534C16.2058 18.724 16.3334 19.0013 16.3334 19.2933V24.2192C16.3334 24.8698 16.9448 25.3472 17.5759 25.1894L18.9092 24.856C19.3544 24.7447 19.6667 24.3448 19.6667 23.8859V19.2933C19.6667 19.0014 19.7943 18.724 20.0159 18.534L25.5004 13.8333M10.5 13.8333H25.5004", stroke: "#151E28", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
6
6
|
exports.SvgFilterList = SvgFilterList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./Button"), exports);
|
|
|
22
22
|
__exportStar(require("./Card"), exports);
|
|
23
23
|
__exportStar(require("./Charts"), exports);
|
|
24
24
|
__exportStar(require("./Chips"), exports);
|
|
25
|
+
__exportStar(require("./ContentBox"), exports);
|
|
25
26
|
__exportStar(require("./Dialog"), exports);
|
|
26
27
|
__exportStar(require("./Drawer"), exports);
|
|
27
28
|
__exportStar(require("./FilterList"), exports);
|