oa-componentbook 1.0.1-stage.44 → 1.0.1-stage.440
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/build/components/oa-component-accordion/Accordion.js +123 -43
- package/build/components/oa-component-accordion/styles.js +2 -2
- package/build/components/oa-component-button/CustomButton.js +24 -19
- package/build/components/oa-component-button/styles.js +1 -1
- package/build/components/oa-component-checkbox/CustomCheckBox.js +20 -17
- package/build/components/oa-component-checkbox/styles.js +1 -1
- package/build/components/oa-component-datepicker/CustomDatePicker.js +37 -26
- package/build/components/oa-component-drawer/CustomDrawer.js +2 -0
- package/build/components/oa-component-dropdown/CustomDropdown.js +16 -4
- package/build/components/oa-component-icons/MaterialIcon.js +1 -1
- package/build/components/oa-component-modal/CustomModal.js +59 -48
- package/build/components/oa-component-modal/styles.js +3 -2
- package/build/components/oa-component-pagination/CustomPagination.js +111 -0
- package/build/components/oa-component-pagination/styles.js +12 -0
- package/build/components/oa-component-progress-bar/CustomProgressBar.js +8 -4
- package/build/components/oa-component-select/CustomSelect.js +130 -56
- package/build/components/oa-component-steps/CustomSteps.js +117 -0
- package/build/components/oa-component-steps/styles.js +12 -0
- package/build/components/oa-component-table/CustomTable.js +28 -5
- package/build/components/oa-component-table/CustomTableV1.js +613 -0
- package/build/components/oa-component-table/styles.js +1 -1
- package/build/components/oa-component-table/stylesV1.js +19 -0
- package/build/components/oa-component-tabs/CustomTabs.js +1 -1
- package/build/components/oa-component-tag/CustomTag.js +29 -11
- package/build/components/oa-component-tag/styles.js +30 -3
- package/build/components/oa-component-textarea/CustomTextArea.js +161 -0
- package/build/components/oa-component-textarea/constants.js +39 -0
- package/build/components/oa-component-textarea/styles.js +12 -3
- package/build/components/oa-component-tooltip/CustomTooltip.js +8 -4
- package/build/components/oa-component-upload/CustomUpload.js +129 -42
- package/build/components/oa-component-viewer/CustomViewer.js +17 -11
- package/build/dev/oa-component-document-viewer/CustomDocumentViewer.js +367 -0
- package/build/dev/oa-component-document-viewer/styles.js +12 -0
- package/build/dev/oa-component-upload/CustomUpload.js +116 -29
- package/build/dev/oa-component-upload/styles.js +2 -2
- package/build/dev/oa-widget-document-modal/DocumentSideModal.js +166 -0
- package/build/dev/oa-widget-document-modal/styles.js +12 -0
- package/build/dev/oa-widget-document-side-drawer/DocumentSideDrawer.js +196 -0
- package/build/dev/oa-widget-document-side-drawer/styles.js +12 -0
- package/build/global-css/GlobalCss.js +2 -1
- package/build/global-css/GridLayout.js +1 -1
- package/build/global-css/commonStyles.js +11 -0
- package/build/images/Car.png +0 -0
- package/build/images/TwoWheeler.png +0 -0
- package/build/images/astronaut_emptystate.png +0 -0
- package/build/images/exportGrp01.png +0 -0
- package/build/images/exportGrp02.png +0 -0
- package/build/images/exportGrp03.png +0 -0
- package/build/images/outOfStock.png +0 -0
- package/build/index.js +114 -2
- package/build/layout/DetailDataLayout/DetailDataLayout.js +20 -0
- package/build/layout/DetailDataLayout/components/Form.js +22 -0
- package/build/layout/DetailDataLayout/components/Header.js +32 -0
- package/build/layout/DetailDataLayout/style.css +9 -0
- package/build/layout/DetailDataLayout/styles.js +12 -0
- package/build/layout/EntityOverviewLayout/EntityOverviewLayout.js +403 -0
- package/build/layout/EntityOverviewLayout/reducer/entityOverviewLayoutReducer.js +85 -0
- package/build/layout/EntityOverviewLayout/styles.js +13 -0
- package/build/layout/GenricLayOut/GenricLayOut.js +2421 -0
- package/build/layout/GenricLayOut/components/AppliedFilters.js +90 -0
- package/build/layout/GenricLayOut/components/CardList.js +34 -0
- package/build/layout/GenricLayOut/components/DropdownSearch.js +48 -0
- package/build/layout/GenricLayOut/components/Header.js +74 -0
- package/build/layout/GenricLayOut/components/Modal.js +96 -0
- package/build/layout/GenricLayOut/components/ProfileSection.js +219 -0
- package/build/layout/GenricLayOut/components/Search.js +51 -0
- package/build/layout/GenricLayOut/components/StaticFilter.css +73 -0
- package/build/layout/GenricLayOut/components/StaticFilter.js +37 -0
- package/build/layout/GenricLayOut/reducer/layoutReducer.js +310 -0
- package/build/layout/GenricLayOut/resolver/staticConfigResolver.js +98 -0
- package/build/layout/GenricLayOut/styles.js +42 -0
- package/build/utils/download-file.js +23 -0
- package/build/widgets/oa-form-widget/FormWidget.js +577 -0
- package/build/widgets/oa-form-widget/FormWidgetStyle.js +18 -0
- package/build/widgets/oa-widget-add-spare-part/AddSparePartCollapseWidget.js +80 -16
- package/build/widgets/oa-widget-add-spare-part/AddSparePartWidget.js +50 -7
- package/build/widgets/oa-widget-address/AddressWidget.js +12 -17
- package/build/widgets/oa-widget-approval/ApprovalWidget.js +19 -11
- package/build/widgets/oa-widget-approval/ApprovalWidgetNew.js +492 -0
- package/build/widgets/oa-widget-approval/styles.js +2 -2
- package/build/widgets/oa-widget-chat/ChatWidget.js +5 -5
- package/build/widgets/oa-widget-close-claim/CloseClaimWidget.js +17 -5
- package/build/widgets/oa-widget-collapsible-key-value/CollapsibleKeyValueWidget.js +396 -0
- package/build/widgets/oa-widget-collapsible-key-value/styles.js +16 -0
- package/build/widgets/oa-widget-content-panel/ContentPanel.js +82 -0
- package/build/widgets/oa-widget-content-panel/styles.js +12 -0
- package/build/widgets/oa-widget-customer-rating-card/CustomerRatingCard.js +5 -5
- package/build/widgets/oa-widget-detailcard/styles.js +1 -1
- package/build/widgets/oa-widget-document-upload/DocUploadWidget.js +6 -9
- package/build/widgets/oa-widget-dropdown-search-input/DropdownSearchInput.js +53 -19
- package/build/widgets/oa-widget-dropdown-search-input/styles.js +1 -1
- package/build/widgets/oa-widget-guide/GuideWidget.js +70 -0
- package/build/widgets/oa-widget-guide/GuideWidgetStyle.js +12 -0
- package/build/widgets/oa-widget-hub-automation-modal/HubAutomationDeleteBiker.js +24 -0
- package/build/widgets/oa-widget-hub-automation-modal/HubAutomationModal.js +34 -0
- package/build/widgets/oa-widget-hub-automation-modal/HubAutomationModalStyle.js +13 -0
- package/build/widgets/oa-widget-image-carousel/ImageCarouselWidget.js +256 -0
- package/build/widgets/oa-widget-image-carousel/styles.js +23 -0
- package/build/widgets/oa-widget-image-gallery/FullscreenViewer.js +169 -0
- package/build/widgets/oa-widget-image-gallery/ImageGallery.js +87 -0
- package/build/widgets/oa-widget-image-gallery/ThumbnailGrid.js +146 -0
- package/build/widgets/oa-widget-image-gallery/imageCache.js +15 -0
- package/build/widgets/oa-widget-image-gallery/imageGalleryStyle.js +16 -0
- package/build/widgets/oa-widget-item-info-card/InfoCardListWidget.js +60 -0
- package/build/widgets/oa-widget-item-info-card/ItemInfoCardWidget.js +83 -0
- package/build/widgets/oa-widget-item-info-card/styles.css +50 -0
- package/build/widgets/oa-widget-item-info-card/styles.js +14 -0
- package/build/widgets/oa-widget-key-value/KeyValueWidget.js +46 -12
- package/build/widgets/oa-widget-key-value/styles.js +1 -1
- package/build/widgets/oa-widget-kpi/KPICardWidget.js +86 -0
- package/build/widgets/oa-widget-kpi/styles.js +12 -0
- package/build/widgets/oa-widget-map-base-location/AddressDetails.js +21 -7
- package/build/widgets/oa-widget-map-base-location/AddressForm.js +32 -5
- package/build/widgets/oa-widget-map-base-location/MapBaseLocation.js +9 -3
- package/build/widgets/oa-widget-map-base-location/MapComponent.js +17 -2
- package/build/widgets/oa-widget-membershipcard/MembershipCard.js +14 -3
- package/build/widgets/oa-widget-membershipcard/styles.js +1 -1
- package/build/widgets/oa-widget-notes/NotesWidget.js +32 -30
- package/build/widgets/oa-widget-notes/styles.js +4 -3
- package/build/widgets/oa-widget-profile-data/ProfileDataWidget.js +165 -0
- package/build/widgets/oa-widget-profile-data/styles.js +13 -0
- package/build/widgets/oa-widget-progressive-steps/ProgressiveStepsWidget.js +362 -0
- package/build/widgets/oa-widget-progressive-steps/styles.js +12 -0
- package/build/widgets/oa-widget-reimbursement-breakup/ReimbursementBreakupWidget.js +18 -9
- package/build/widgets/oa-widget-reimbursement-breakup/styles.js +1 -1
- package/build/widgets/oa-widget-reupload-drawer/ReUploadDrawer.js +164 -0
- package/build/widgets/oa-widget-select-list-item-modal/SelectListItemModal.js +91 -0
- package/build/widgets/oa-widget-sidebar/SidebarWidget.js +175 -0
- package/build/widgets/oa-widget-sidebar/components/Header.js +33 -0
- package/build/widgets/oa-widget-sidebar/styles.js +13 -0
- package/build/widgets/oa-widget-spare-part/SparePartsWidget.js +63 -35
- package/build/widgets/oa-widget-track-shipment-list/fn.js +16 -4
- package/build/widgets/oa-widget-user-management/UserManagementWidget.js +407 -0
- package/build/widgets/oa-widget-user-management/styles.js +15 -0
- package/package.json +4 -2
- package/build/components/oa-component-textarea/TextArea.js +0 -74
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.quick-filter-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
margin: 16px 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
ul.quick-filter-buttons {
|
|
9
|
+
list-style: none;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
gap: 16px;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ul.quick-filter-buttons li {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
border: solid 1px #014fc5;
|
|
20
|
+
padding: 10px 24px;
|
|
21
|
+
color: #014fc5;
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
line-height: 20px;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
border-radius: 24px;
|
|
29
|
+
background: #fff;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
ul.quick-filter-buttons li.selected {
|
|
33
|
+
background: #014fc5;
|
|
34
|
+
border: none;
|
|
35
|
+
color: #fff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.appliedFiltersContainer {
|
|
39
|
+
border-radius: 8px;
|
|
40
|
+
padding: 12px;
|
|
41
|
+
width: 100%;
|
|
42
|
+
background: #f6f6f6;
|
|
43
|
+
margin-bottom: 8px;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
gap: 8px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.appliedFilterTag {
|
|
50
|
+
border-radius: 8px;
|
|
51
|
+
border: 1px solid #e0e0e0;
|
|
52
|
+
padding: 8px;
|
|
53
|
+
background: #fff;
|
|
54
|
+
display: flex;
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@media only screen and (max-width: 600px) {
|
|
60
|
+
.quick-filter-container {
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
margin: 0 0 16px 0;
|
|
63
|
+
align-items: flex-start;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
ul.quick-filter-buttons {
|
|
68
|
+
overflow-x: scroll;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
require("./StaticFilter.css");
|
|
9
|
+
var _Typography = _interopRequireDefault(require("../../../components/oa-component-typography/Typography"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
|
|
13
|
+
// You'll need to create this CSS file
|
|
14
|
+
|
|
15
|
+
function StaticFilter(_ref) {
|
|
16
|
+
var _staticFilter$data;
|
|
17
|
+
let {
|
|
18
|
+
staticFilter,
|
|
19
|
+
onFilterSelect
|
|
20
|
+
} = _ref;
|
|
21
|
+
if (!(staticFilter !== null && staticFilter !== void 0 && staticFilter.visible) || !(staticFilter !== null && staticFilter !== void 0 && (_staticFilter$data = staticFilter.data) !== null && _staticFilter$data !== void 0 && _staticFilter$data.length)) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
+
className: "quick-filter-container"
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
27
|
+
color: "primary-content",
|
|
28
|
+
typography: "type-b2-400"
|
|
29
|
+
}, "Quick Filters:"), /*#__PURE__*/_react.default.createElement("ul", {
|
|
30
|
+
className: "quick-filter-buttons"
|
|
31
|
+
}, staticFilter.data.map(filter => /*#__PURE__*/_react.default.createElement("li", {
|
|
32
|
+
key: filter.value,
|
|
33
|
+
onClick: () => onFilterSelect(filter.value),
|
|
34
|
+
className: "quick-filter-btn ".concat(filter.selected ? "selected" : "")
|
|
35
|
+
}, filter.label))));
|
|
36
|
+
}
|
|
37
|
+
var _default = exports.default = StaticFilter;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.initialState = exports.genericLayoutReducer = exports.actionTypes = void 0;
|
|
7
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
8
|
+
require("core-js/modules/es.symbol.description.js");
|
|
9
|
+
var _immer = require("immer");
|
|
10
|
+
var _staticConfigResolver = require("../resolver/staticConfigResolver");
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable */
|
|
16
|
+
const initialState = exports.initialState = {};
|
|
17
|
+
const actionTypes = exports.actionTypes = {
|
|
18
|
+
INIT: "INIT",
|
|
19
|
+
SET_LOADING: "SET_LOADING",
|
|
20
|
+
SET_DROPDOWN_SEARCH_VALUE: "SET_DROPDOWN_SEARCH_VALUE",
|
|
21
|
+
SET_DROPDOWN_SEARCH_ERROR: "SET_DROPDOWN_SEARCH_ERROR",
|
|
22
|
+
SET_INPUT_SEARCH_VALUE: "SET_INPUT_SEARCH_VALUE",
|
|
23
|
+
SET_INPUT_SEARCH_ERROR: "SET_INPUT_SEARCH_ERROR",
|
|
24
|
+
SET_DROPDOWN_SEARCH_OPTION: "SET_DROPDOWN_SEARCH_OPTION",
|
|
25
|
+
SET_DRAWER: "SET_DRAWER",
|
|
26
|
+
SET_NESTED_DRAWER: "SET_NESTED_DRAWER",
|
|
27
|
+
TOGGLE_IMAGE_VIEW: "TOGGLE_IMAGE_VIEW",
|
|
28
|
+
SET_TABLE_DATA: "SET_TABLE_DATA",
|
|
29
|
+
SET_TABLE_EMPTY: "SET_TABLE_EMPTY",
|
|
30
|
+
SET_PAGINATION: "SET_PAGINATION",
|
|
31
|
+
SET_SORTING: "SET_SORTING",
|
|
32
|
+
TAB_CLICK: "TAB_CLICK",
|
|
33
|
+
TOGGLE_DRAWER: "TOGGLE_DRAWER",
|
|
34
|
+
CLOSE_DRAWER: "CLOSE_DRAWER",
|
|
35
|
+
NESTED_DRAWER_OPEN: "NESTED_DRAWER_OPEN",
|
|
36
|
+
NESTED_DRAWER_CLOSED: "NESTED_DRAWER_CLOSED",
|
|
37
|
+
TABLE_FOOTER_TOGGLE: "TABLE_FOOTER_TOGGLE",
|
|
38
|
+
// Use to show hide the footer of the table
|
|
39
|
+
TABLE_ROW_SELECTED_DATA: "TABLE_ROW_SELECTED_DATA",
|
|
40
|
+
// Use to store the selected rows of the table
|
|
41
|
+
TOGGLE_MODAL: "TOGGLE_MODAL",
|
|
42
|
+
// Use to show hide the modal
|
|
43
|
+
SET_MODAL: "SET_MODAL",
|
|
44
|
+
SET_TABLE_FILTER: "SET_TABLE_FILTER",
|
|
45
|
+
SET_CUSTOM_DRAWER_DATA_SELECT: "SET_CUSTOM_DRAWER_DATA_SELECT",
|
|
46
|
+
SET_SUBHEADING_SELECTED_CONFIG: "SET_SUBHEADING_SELECTED_CONFIG",
|
|
47
|
+
SET_CUSTOM_DRAWER: "SET_CUSTOM_DRAWER",
|
|
48
|
+
CUSTOM_DRAWER_OPEN: "CUSTOM_DRAWER_OPEN",
|
|
49
|
+
CUSTOM_DRAWER_CLOSED: "CUSTOM_DRAWER_CLOSED",
|
|
50
|
+
UPDATE_FILTER_DEFAULT_VALUES: "UPDATE_FILTER_DEFAULT_VALUES",
|
|
51
|
+
SET_STATIC_FILTER_SELECTION: "SET_STATIC_FILTER_SELECTION",
|
|
52
|
+
SET_STATIC_FILTER_VISIBILITY: "SET_STATIC_FILTER_VISIBILITY",
|
|
53
|
+
SET_TABLE_COLUMNS_RESET: "SET_TABLE_COLUMNS_RESET",
|
|
54
|
+
SET_APPLIED_FILTERS: "SET_APPLIED_FILTERS",
|
|
55
|
+
REMOVE_APPLIED_FILTER: "REMOVE_APPLIED_FILTER",
|
|
56
|
+
CLEAR_ALL_APPLIED_FILTERS: "CLEAR_ALL_APPLIED_FILTERS",
|
|
57
|
+
UPDATE_FILTER_FORM_VALUES: "UPDATE_FILTER_FORM_VALUES",
|
|
58
|
+
SET_STATIC_FILTER: "SET_STATIC_FILTER",
|
|
59
|
+
SET_PROFILE_DATA: "SET_PROFILE_DATA",
|
|
60
|
+
CHANGE_ROW: "CHANGE_ROW"
|
|
61
|
+
};
|
|
62
|
+
function getFieldDefaultValue(widget) {
|
|
63
|
+
switch (widget) {
|
|
64
|
+
case "select":
|
|
65
|
+
case "radio":
|
|
66
|
+
return undefined;
|
|
67
|
+
case "date":
|
|
68
|
+
return "";
|
|
69
|
+
case "input":
|
|
70
|
+
case "textArea":
|
|
71
|
+
return "";
|
|
72
|
+
default:
|
|
73
|
+
return "";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const genericLayoutReducer = exports.genericLayoutReducer = (0, _immer.produce)((draft, action) => {
|
|
77
|
+
var _draft$imageViewer, _action$payload, _action$payload2, _draft$tabs, _draft$customDrawer$d, _draft$tables, _action$payload3, _action$payload4, _action$payload5, _draft$tabs$active, _draft$tabs2, _action$payload6, _action$payload7, _action$payload8, _draft$staticFilter, _draft$tables2, _draft$customDrawer$d2, _draft$customDrawer$d3, _draft$customDrawer$d4;
|
|
78
|
+
switch (action.type) {
|
|
79
|
+
case actionTypes.INIT:
|
|
80
|
+
return (0, _staticConfigResolver.removeHidden)(action.payload);
|
|
81
|
+
case actionTypes.SET_LOADING:
|
|
82
|
+
draft.isLoading = action.payload;
|
|
83
|
+
break;
|
|
84
|
+
case actionTypes.SET_DROPDOWN_SEARCH_VALUE:
|
|
85
|
+
draft.dropdownSearch.value = action.payload;
|
|
86
|
+
draft.dropdownSearch.error = null;
|
|
87
|
+
break;
|
|
88
|
+
case actionTypes.SET_DROPDOWN_SEARCH_ERROR:
|
|
89
|
+
draft.dropdownSearch.error = action.payload;
|
|
90
|
+
break;
|
|
91
|
+
case actionTypes.TOGGLE_IMAGE_VIEW:
|
|
92
|
+
draft.imageViewer.visible = !((_draft$imageViewer = draft.imageViewer) !== null && _draft$imageViewer !== void 0 && _draft$imageViewer.visible);
|
|
93
|
+
draft.imageViewer.content = action === null || action === void 0 ? void 0 : action.payload;
|
|
94
|
+
break;
|
|
95
|
+
case actionTypes.SET_INPUT_SEARCH_VALUE:
|
|
96
|
+
draft.inputSearch.value = action.payload;
|
|
97
|
+
draft.inputSearch.error = null;
|
|
98
|
+
break;
|
|
99
|
+
case actionTypes.SET_INPUT_SEARCH_ERROR:
|
|
100
|
+
draft.inputSearch.error = action.payload;
|
|
101
|
+
break;
|
|
102
|
+
case actionTypes.SET_TABLE_EMPTY:
|
|
103
|
+
draft.tables.data = [];
|
|
104
|
+
case actionTypes.SET_DROPDOWN_SEARCH_OPTION:
|
|
105
|
+
draft.dropdownSearch.selectedOption = action === null || action === void 0 ? void 0 : action.payload;
|
|
106
|
+
draft.dropdownSearch.value = null;
|
|
107
|
+
draft.dropdownSearch.error = null;
|
|
108
|
+
break;
|
|
109
|
+
case actionTypes.SET_TABLE_DATA:
|
|
110
|
+
draft.tables.data = (_action$payload = action.payload) === null || _action$payload === void 0 ? void 0 : _action$payload.dataSource;
|
|
111
|
+
draft.tables.pagination = _objectSpread(_objectSpread({}, draft.tables.pagination), {}, {
|
|
112
|
+
total: (_action$payload2 = action.payload) === null || _action$payload2 === void 0 ? void 0 : _action$payload2.totalRecords
|
|
113
|
+
});
|
|
114
|
+
(_draft$tabs = draft.tabs) === null || _draft$tabs === void 0 || (_draft$tabs = _draft$tabs.list) === null || _draft$tabs === void 0 || _draft$tabs.map(l => {
|
|
115
|
+
l.value = action.payload[l === null || l === void 0 ? void 0 : l.tabKey];
|
|
116
|
+
return l;
|
|
117
|
+
});
|
|
118
|
+
break;
|
|
119
|
+
case actionTypes.SET_PAGINATION:
|
|
120
|
+
draft.tables.pagination = _objectSpread(_objectSpread({}, draft.tables.pagination), action.payload);
|
|
121
|
+
break;
|
|
122
|
+
case actionTypes.SET_TABLE_FILTER:
|
|
123
|
+
draft.tables.filter = _objectSpread(_objectSpread({}, draft.tables.filter), action.payload);
|
|
124
|
+
break;
|
|
125
|
+
case actionTypes.UPDATE_FILTER_DEFAULT_VALUES:
|
|
126
|
+
if ((_draft$customDrawer$d = draft.customDrawer.data) !== null && _draft$customDrawer$d !== void 0 && (_draft$customDrawer$d = _draft$customDrawer$d.groups) !== null && _draft$customDrawer$d !== void 0 && (_draft$customDrawer$d = _draft$customDrawer$d[0]) !== null && _draft$customDrawer$d !== void 0 && _draft$customDrawer$d.items) {
|
|
127
|
+
draft.customDrawer.data.groups[0].items.forEach(item => {
|
|
128
|
+
if (action.payload[item.name] !== undefined) {
|
|
129
|
+
item.defaultValue = action.payload[item.name];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
break;
|
|
134
|
+
case actionTypes.SET_SORTING:
|
|
135
|
+
draft.tables.sorting = _objectSpread(_objectSpread({}, (_draft$tables = draft.tables) === null || _draft$tables === void 0 ? void 0 : _draft$tables.sorting), action.payload);
|
|
136
|
+
break;
|
|
137
|
+
case actionTypes.TAB_CLICK:
|
|
138
|
+
draft.tabs.active = (_action$payload3 = action.payload) === null || _action$payload3 === void 0 ? void 0 : _action$payload3.active;
|
|
139
|
+
const shouldShowStaticFilter = ((_action$payload4 = action.payload) === null || _action$payload4 === void 0 ? void 0 : _action$payload4.active) === "HR-CANCELLED" || ((_action$payload5 = action.payload) === null || _action$payload5 === void 0 ? void 0 : _action$payload5.active) === "FINANCIER-CANCELLED";
|
|
140
|
+
if (draft.staticFilter) {
|
|
141
|
+
draft.staticFilter.visible = shouldShowStaticFilter;
|
|
142
|
+
}
|
|
143
|
+
break;
|
|
144
|
+
case actionTypes.SET_DRAWER:
|
|
145
|
+
draft.drawer.data[(_draft$tabs$active = draft === null || draft === void 0 || (_draft$tabs2 = draft.tabs) === null || _draft$tabs2 === void 0 ? void 0 : _draft$tabs2.active) !== null && _draft$tabs$active !== void 0 ? _draft$tabs$active : "default"][(_action$payload6 = action.payload) === null || _action$payload6 === void 0 ? void 0 : _action$payload6.active] = action.payload.dynamicConfig;
|
|
146
|
+
break;
|
|
147
|
+
case actionTypes.SET_MODAL:
|
|
148
|
+
draft.modal.modalContent = (_action$payload7 = action.payload) === null || _action$payload7 === void 0 || (_action$payload7 = _action$payload7.modalData) === null || _action$payload7 === void 0 ? void 0 : _action$payload7.modalContent;
|
|
149
|
+
draft.modal.value = (_action$payload8 = action.payload) === null || _action$payload8 === void 0 || (_action$payload8 = _action$payload8.modalData) === null || _action$payload8 === void 0 ? void 0 : _action$payload8.value;
|
|
150
|
+
break;
|
|
151
|
+
case actionTypes.SET_NESTED_DRAWER:
|
|
152
|
+
draft.nestedDrawer.data.cancelOrder = action.payload;
|
|
153
|
+
break;
|
|
154
|
+
case actionTypes.TOGGLE_DRAWER:
|
|
155
|
+
draft.drawer.visible = true;
|
|
156
|
+
draft.drawer.active = action.payload;
|
|
157
|
+
break;
|
|
158
|
+
case actionTypes.NESTED_DRAWER_OPEN:
|
|
159
|
+
draft.nestedDrawer.visible = true;
|
|
160
|
+
break;
|
|
161
|
+
case actionTypes.NESTED_DRAWER_CLOSED:
|
|
162
|
+
draft.nestedDrawer.visible = false;
|
|
163
|
+
break;
|
|
164
|
+
case actionTypes.SET_CUSTOM_DRAWER:
|
|
165
|
+
draft.customDrawer.data = action.payload;
|
|
166
|
+
break;
|
|
167
|
+
case actionTypes.CUSTOM_DRAWER_OPEN:
|
|
168
|
+
draft.customDrawer.visible = true;
|
|
169
|
+
break;
|
|
170
|
+
case actionTypes.CUSTOM_DRAWER_CLOSED:
|
|
171
|
+
draft.customDrawer.visible = false;
|
|
172
|
+
break;
|
|
173
|
+
case actionTypes.CLOSE_DRAWER:
|
|
174
|
+
draft.drawer.visible = false;
|
|
175
|
+
break;
|
|
176
|
+
case actionTypes.TABLE_FOOTER_TOGGLE:
|
|
177
|
+
draft.tables.tableFooter.visible = action.payload;
|
|
178
|
+
break;
|
|
179
|
+
case actionTypes.TABLE_ROW_SELECTED_DATA:
|
|
180
|
+
draft.tables.selectedRowKeys = action.payload;
|
|
181
|
+
break;
|
|
182
|
+
case actionTypes.TOGGLE_MODAL:
|
|
183
|
+
draft.modal.visible = action.payload;
|
|
184
|
+
break;
|
|
185
|
+
case actionTypes.SET_CUSTOM_DRAWER_DATA_SELECT:
|
|
186
|
+
{
|
|
187
|
+
var _draft$tabs$active2, _draft$tabs3, _draft$drawer;
|
|
188
|
+
const tabKey = (_draft$tabs$active2 = draft === null || draft === void 0 || (_draft$tabs3 = draft.tabs) === null || _draft$tabs3 === void 0 ? void 0 : _draft$tabs3.active) !== null && _draft$tabs$active2 !== void 0 ? _draft$tabs$active2 : "default";
|
|
189
|
+
const record = draft === null || draft === void 0 || (_draft$drawer = draft.drawer) === null || _draft$drawer === void 0 || (_draft$drawer = _draft$drawer.data) === null || _draft$drawer === void 0 || (_draft$drawer = _draft$drawer[tabKey]) === null || _draft$drawer === void 0 ? void 0 : _draft$drawer[action.payload.key];
|
|
190
|
+
if (!(record !== null && record !== void 0 && record.groups)) break;
|
|
191
|
+
|
|
192
|
+
// Loop through all groups
|
|
193
|
+
for (const group of record.groups) {
|
|
194
|
+
// Look for a `keyValue` type item containing `Billing Address`
|
|
195
|
+
const targetItem = (group.items || []).find(item => (item === null || item === void 0 ? void 0 : item.type) === "keyValue" && (item === null || item === void 0 ? void 0 : item.value) && Object.prototype.hasOwnProperty.call(item.value, "Billing Address"));
|
|
196
|
+
|
|
197
|
+
// If found, update the value
|
|
198
|
+
if (targetItem) {
|
|
199
|
+
targetItem.value["Billing Address"] = action.payload.value;
|
|
200
|
+
break; // Stop after updating
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
case actionTypes.SET_SUBHEADING_SELECTED_CONFIG:
|
|
206
|
+
draft.header.subHeading.jsxConfig.value = action.payload;
|
|
207
|
+
draft.dropdownSearch.error = null;
|
|
208
|
+
break;
|
|
209
|
+
case actionTypes.SET_STATIC_FILTER_SELECTION:
|
|
210
|
+
if ((_draft$staticFilter = draft.staticFilter) !== null && _draft$staticFilter !== void 0 && _draft$staticFilter.data) {
|
|
211
|
+
var _draft$staticFilter2;
|
|
212
|
+
if (draft.staticFilter.deSelectOption) {
|
|
213
|
+
if (action.source === "click") {
|
|
214
|
+
const selectedFilter = draft.staticFilter.data.find(filter => filter.value === action.payload);
|
|
215
|
+
if (selectedFilter) selectedFilter.selected = !selectedFilter.selected;
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
draft.staticFilter.data = draft.staticFilter.data.map(filter => _objectSpread(_objectSpread({}, filter), {}, {
|
|
219
|
+
selected: filter.value === action.payload
|
|
220
|
+
}));
|
|
221
|
+
}
|
|
222
|
+
if ((_draft$staticFilter2 = draft.staticFilter) !== null && _draft$staticFilter2 !== void 0 && _draft$staticFilter2.multiSelectValue) {
|
|
223
|
+
var _draft$staticFilter$d;
|
|
224
|
+
draft.staticFilter.multiSelectValue = (_draft$staticFilter$d = draft.staticFilter.data.filter(item => item.selected)) === null || _draft$staticFilter$d === void 0 ? void 0 : _draft$staticFilter$d.map(item => item.value);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
break;
|
|
228
|
+
case actionTypes.SET_STATIC_FILTER:
|
|
229
|
+
draft.staticFilter.data = action.payload;
|
|
230
|
+
break;
|
|
231
|
+
case actionTypes.SET_STATIC_FILTER_VISIBILITY:
|
|
232
|
+
if (draft.staticFilter) {
|
|
233
|
+
draft.staticFilter.visible = action.payload;
|
|
234
|
+
}
|
|
235
|
+
break;
|
|
236
|
+
case actionTypes.SET_TABLE_COLUMNS_RESET:
|
|
237
|
+
if ((_draft$tables2 = draft.tables) !== null && _draft$tables2 !== void 0 && (_draft$tables2 = _draft$tables2.columns) !== null && _draft$tables2 !== void 0 && _draft$tables2[action.payload.tabKey]) {
|
|
238
|
+
draft.tables.columns[action.payload.tabKey] = action.payload.columns;
|
|
239
|
+
}
|
|
240
|
+
break;
|
|
241
|
+
case actionTypes.SET_APPLIED_FILTERS:
|
|
242
|
+
draft.customDrawer.appliedFilters = action.payload;
|
|
243
|
+
break;
|
|
244
|
+
case actionTypes.REMOVE_APPLIED_FILTER:
|
|
245
|
+
const {
|
|
246
|
+
filterKey
|
|
247
|
+
} = action.payload;
|
|
248
|
+
if (draft.customDrawer.appliedFilters[filterKey]) {
|
|
249
|
+
delete draft.customDrawer.appliedFilters[filterKey];
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Reset the corresponding form field in custom drawer
|
|
253
|
+
if ((_draft$customDrawer$d2 = draft.customDrawer.data) !== null && _draft$customDrawer$d2 !== void 0 && _draft$customDrawer$d2.groups) {
|
|
254
|
+
draft.customDrawer.data.groups.forEach(group => {
|
|
255
|
+
group.items.forEach(item => {
|
|
256
|
+
if (item.name === filterKey) {
|
|
257
|
+
// Reset to original default value based on widget type
|
|
258
|
+
item.defaultValue = getFieldDefaultValue(item.widget);
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
break;
|
|
264
|
+
case actionTypes.CLEAR_ALL_APPLIED_FILTERS:
|
|
265
|
+
draft.customDrawer.appliedFilters = {};
|
|
266
|
+
|
|
267
|
+
// Reset all form fields to original default values
|
|
268
|
+
if ((_draft$customDrawer$d3 = draft.customDrawer.data) !== null && _draft$customDrawer$d3 !== void 0 && _draft$customDrawer$d3.groups) {
|
|
269
|
+
draft.customDrawer.data.groups.forEach(group => {
|
|
270
|
+
group.items.forEach(item => {
|
|
271
|
+
if (item.name === "filterBy") {
|
|
272
|
+
item.defaultValue = draft.customDrawer.defaultAppliedFilter; // Reset to default
|
|
273
|
+
} else if (item.name === "fromDate" || item.name === "toDate") {
|
|
274
|
+
item.defaultValue = ""; // Reset dates to empty
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
break;
|
|
280
|
+
case actionTypes.UPDATE_FILTER_FORM_VALUES:
|
|
281
|
+
if ((_draft$customDrawer$d4 = draft.customDrawer.data) !== null && _draft$customDrawer$d4 !== void 0 && _draft$customDrawer$d4.groups) {
|
|
282
|
+
const {
|
|
283
|
+
formValues
|
|
284
|
+
} = action.payload;
|
|
285
|
+
draft.customDrawer.data.groups.forEach(group => {
|
|
286
|
+
group.items.forEach(item => {
|
|
287
|
+
if (item.name && formValues.hasOwnProperty(item.name)) {
|
|
288
|
+
item.defaultValue = formValues[item.name];
|
|
289
|
+
} else if (item.name && !formValues.hasOwnProperty(item.name)) {
|
|
290
|
+
// Reset to original default if not in applied filters
|
|
291
|
+
if (item.name === "filterBy") {
|
|
292
|
+
item.defaultValue = draft.customDrawer.defaultAppliedFilter;
|
|
293
|
+
} else {
|
|
294
|
+
item.defaultValue = "";
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
break;
|
|
301
|
+
case actionTypes.SET_PROFILE_DATA:
|
|
302
|
+
draft.profileData = _objectSpread(_objectSpread({}, draft.profileData), action.payload);
|
|
303
|
+
break;
|
|
304
|
+
case actionTypes.CHANGE_ROW:
|
|
305
|
+
draft.tables = action.payload.tables;
|
|
306
|
+
break;
|
|
307
|
+
default:
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
exports.removeHidden = removeHidden;
|
|
8
|
+
require("core-js/modules/es.string.trim.js");
|
|
9
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
10
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
11
|
+
require("core-js/modules/es.string.match.js");
|
|
12
|
+
require("core-js/modules/es.string.replace.js");
|
|
13
|
+
require("core-js/modules/es.array.includes.js");
|
|
14
|
+
require("core-js/modules/es.string.includes.js");
|
|
15
|
+
/* eslint-disable */
|
|
16
|
+
function replaceVariables(config) {
|
|
17
|
+
for (var _len = arguments.length, dataSources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
18
|
+
dataSources[_key - 1] = arguments[_key];
|
|
19
|
+
}
|
|
20
|
+
// Resolve value from multiple data sources using dot notation
|
|
21
|
+
const getValueFromSources = key => {
|
|
22
|
+
const path = key.trim().split(".");
|
|
23
|
+
for (const dataSource of dataSources) {
|
|
24
|
+
let current = dataSource;
|
|
25
|
+
for (const segment of path) {
|
|
26
|
+
if (current && typeof current === "object" && segment in current) {
|
|
27
|
+
current = current[segment];
|
|
28
|
+
} else {
|
|
29
|
+
current = undefined;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (current !== undefined) {
|
|
34
|
+
return current;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return undefined; // ← Don't default to ""
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// Replace placeholders in a string
|
|
41
|
+
const replacePlaceholders = value => {
|
|
42
|
+
const fullMatch = value.match(/^{{\s*([^}]+)\s*}}$/);
|
|
43
|
+
if (fullMatch) {
|
|
44
|
+
const replacement = getValueFromSources(fullMatch[1]);
|
|
45
|
+
return replacement !== undefined ? replacement : ""; // ← Keep original if not found
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Inline replacements: convert only primitive values
|
|
49
|
+
return value.replace(/{{\s*([^}]+)\s*}}/g, (_, key) => {
|
|
50
|
+
const replacement = getValueFromSources(key);
|
|
51
|
+
if (replacement === undefined || typeof replacement === "object" || typeof replacement === "function") {
|
|
52
|
+
return ""; // ← Keep the placeholder intact
|
|
53
|
+
}
|
|
54
|
+
return String(replacement);
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// Recursively process entire config object
|
|
59
|
+
const processValue = value => {
|
|
60
|
+
if (Array.isArray(value)) {
|
|
61
|
+
return value.map(processValue);
|
|
62
|
+
}
|
|
63
|
+
if (typeof value === "object" && value !== null) {
|
|
64
|
+
const newObj = {};
|
|
65
|
+
for (const key in value) {
|
|
66
|
+
if (Object.hasOwn(value, key)) {
|
|
67
|
+
newObj[key] = processValue(value[key]);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return newObj;
|
|
71
|
+
}
|
|
72
|
+
if (typeof value === "string" && value.includes("{{")) {
|
|
73
|
+
return replacePlaceholders(value);
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
};
|
|
77
|
+
return processValue(config);
|
|
78
|
+
}
|
|
79
|
+
function removeHidden(obj) {
|
|
80
|
+
if (typeof obj !== "object" || obj === null) return obj;
|
|
81
|
+
|
|
82
|
+
// If the object has isShow: false, remove it entirely
|
|
83
|
+
if (obj.isShow === false) return undefined;
|
|
84
|
+
|
|
85
|
+
// Create a new object to hold filtered keys
|
|
86
|
+
const result = Array.isArray(obj) ? [] : {};
|
|
87
|
+
for (const key in obj) {
|
|
88
|
+
const value = obj[key];
|
|
89
|
+
const cleanedValue = removeHidden(value);
|
|
90
|
+
|
|
91
|
+
// Only add if cleanedValue is not undefined
|
|
92
|
+
if (cleanedValue !== undefined) {
|
|
93
|
+
result[key] = cleanedValue;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
var _default = exports.default = replaceVariables;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.weak-map.js");
|
|
4
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.Tooltip = exports.TableDataStyle = exports.ProfileSectionContainer = exports.ProfileNameContainer = exports.ProfileInfoContainer = exports.ProfileIcon = exports.ProfileContainerOverlay = exports.ProfileContainerModal = exports.ProfileAvatar = exports.OapageWithDataStyle = exports.ListofDamageParts = exports.IncidentListParts = exports.FormWidgetStyle = exports.EnterpriseSection = exports.EnterpriseList = exports.EnterpriseItem = exports.EnterpriseContent = exports.EnterpriseAvatar = exports.EnterpriseArrow = exports.DrawerWithOutFooter = exports.CurrentProfileSection = void 0;
|
|
9
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// styles.js
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
16
|
+
const DrawerWithOutFooter = exports.DrawerWithOutFooter = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.hubAutomationContainer .fullPageLayout {padding: 0 !important; background: #fff !important;}\n.hubAutomationContainer .fullPageLayout .oaRightLayouts{\n max-width: 1154px;\n margin: 24px auto;\n padding: 0 16px;\n box-shadow: none;}\n.oaDrawer div + div.ant-drawer-body{padding-bottom:100px !important;}\n\n.ant-checkbox-indeterminate .ant-checkbox-inner:after {\n background-color: #014fc5;\n}\n\n.ant-form-item .ant-form-item-label >label.ant-form-item-required::before {display:none;}\n.ant-form-item .ant-form-item-label >label.ant-form-item-required::after{ content: \"*\"; color: #DE350B; visibility: visible !important;}\n\n\n.cstUplaodWithFullWidth{margin-bottom:24px;}\n.cstUplaodWithFullWidth:last-child{margin-bottom:0;}\n.cstUplaodWithFullWidth .uploadDiv{width:100%;}\n.cstUplaodWithFullWidth .uploadDiv .ant-upload-list-item-container, .cstUplaodWithFullWidth .uploadDiv .ant-upload-wrapper .ant-upload-list-picture-card .ant-upload-select, .cstUplaodWithFullWidth .uploadDiv .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container {\n width: 100%; \n height: 120px;\n}\n\n\n\n\n.oaDrawer .ant-form-item .ant-form-item-explain-error {\n color: #DE350B;\n font-size: 12px;\n margin: 4px 0 0 0;\n}\n.bottomSelectedSecion{background: #F6F6F6; padding: 16px 36px; position: fixed; bottom: 0; left: 0; right: 0;\nbox-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.14);\n display: flex; z-index: 2;\n align-items: center;\n justify-content: end;\n gap: 24px;}\n\n\n\n.listOfItems{ border-radius: 12px;\n border: 1px solid #E0E0E0;\n padding: 24px;\n margin: 24px 0 0 0;}\n modalSubheading{\n padding: 24px;\n margin: 24px 0 0 0;}\n\n.listOfItemsWithoutBorder{\n padding: 24px 0;\n margin: 24px 0 0 0;}\n\n modalSubheading{\n padding: 24px;\n margin: 24px 0 0 0;}\n\n\n\n\n.modalIconAndTextBox{display:flex; flex-direction:row; align-items: center; margin: 0 0 16px 0; gap:4px;}\n\n/* Select List Item Styles */\n.select-list-container {\n padding: 0;\n margin: 16px 0 0 0;\n}\n\n.select-list-item {\n display: flex;\n align-items: center;\n padding: 16px 0;\n cursor: pointer;\n transition: background-color 0.2s ease;\n border-bottom: 1px solid #f0f0f0;\n position: relative;\n}\n\n.select-list-item:hover {\n background-color: #f8f9fa;\n}\n\n.select-list-item:last-child {\n border-bottom: none;\n}\n\n.item-avatar {\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background-color: #f0f0f0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n font-size: 28px;\n font-weight: 500;\n color: #333;\n flex-shrink: 0;\n}\n\n/* Different avatar colors for different items */\n.select-list-item:nth-child(1) .item-avatar {\n background-color: #717171;\n color: #fff;\n}\n\n.select-list-item:nth-child(2) .item-avatar {\n background-color: #014fc5;\n color: #fff;\n}\n\n.item-content {\n flex: 1;\n min-width: 0;\n}\n\n.item-arrow {\n flex-shrink: 0;\n margin-left: 8px;\n color: #014fc5;\n}\n"])));
|
|
17
|
+
const FormWidgetStyle = exports.FormWidgetStyle = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .formBottomAction {\n position: absolute;\n bottom: 0px;\n background-color: rgb(249, 249, 249);\n box-shadow: rgba(0, 0, 0, 0.1) 0px -2px 8px;\n padding: 16px;\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n z-index: 10;\n left: 0;\n right: 0;\n }\n\n .formBottomAction .ant-form-item {\n margin-bottom: 0px;\n }\n\n .searchErrorMsg {\n font-size: 12px;\n }\n .searchErrorMsg {\n font-size: 12px;\n }\n"])));
|
|
18
|
+
const TableDataStyle = exports.TableDataStyle = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .tableContainerList th,\n button {\n white-space: nowrap;\n }\n .tableContainerList th,\n button {\n white-space: nowrap;\n }\n"])));
|
|
19
|
+
const OapageWithDataStyle = exports.OapageWithDataStyle = _styledComponents.default.aside(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .oaTopHeaderAndBtnSec {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n .headerContent {\n display: flex;\n align-items: flex-start; // Changed from 'center' to 'flex-start'\n justify-content: space-between;\n width: 100%;\n\n .headerLeft {\n flex: 1;\n }\n\n .headerRight {\n display: flex;\n align-items: flex-start; // Changed from 'center' to 'flex-start'\n justify-content: flex-end;\n }\n }\n }\n\n .fullPageLayout {\n display: flex;\n padding: 8px;\n background: #f6f6f6;\n }\n .ant-pagination {\n padding: 0 16px;\n justify-content: end;\n }\n .layoutHeadingPage {\n display: flex;\n gap: 8px;\n margin: 0 0 32px 0;\n flex-direction: column;\n justify-content: flex-start;\n }\n\n .topHadingWithIcon span {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n }\n\n .subHadingText {\n margin: 0 0 0 36px;\n }\n\n .subHading1Text {\n margin: 0 0 ", " 40px;\n }\n\n .marginNone {\n margin: 0 !important;\n }\n\n .subHadingText > span {\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n }\n\n .oaRightLayouts {\n width: 100%;\n min-height: calc(100vh - 16px);\n padding: 76px 48px;\n overflow-y: auto;\n border-radius: 16px;\n background: #fff;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.14);\n }\n\n .oaheaderSearchAndFilter {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 16px 0;\n gap: 16px;\n }\n\n .oaRightLayouts .iconAndTextSecBox {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n }\n .inLine {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 4px;\n }\n\n .customeSelectDropdown {\n margin: 4px 0 0 8px;\n }\n\n .cardData {\n padding: 28px 0 48px 0;\n }\n\n .ant-carousel .slick-dots {\n position: static;\n margin: 20px auto 12px 0;\n }\n .ant-carousel .slick-dots li {\n width: 8px;\n height: 8px;\n }\n .ant-carousel .slick-dots li button {\n width: 8px;\n height: 8px;\n background: #cacaca;\n border-radius: 50%;\n opacity: 0.5;\n }\n .ant-carousel .slick-dots li.slick-active {\n width: 8px;\n height: 8px;\n }\n .ant-carousel .slick-dots li.slick-active button {\n width: 8px;\n height: 8px;\n opacity: 1;\n }\n .ant-carousel .slick-dots li::after {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n opacity: 1;\n background: #717171;\n }\n\n .oaTabs .ant-tabs-nav {\n border-top: 1px solid #e0e0e0;\n border-left: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n padding: 12px 22px 0 22px;\n margin: 0 0 8px 0;\n background: #fff;\n border-radius: 4px 4px 0 0;\n }\n .ant-card-body {\n padding: 24px 16px !important;\n border-radius: 16px;\n background: #f6f6f6;\n }\n .cardContainer {\n display: flex;\n gap: 24px;\n }\n .selectAndSearch .noClear {\n border-radius: 0 4px 4px 0;\n width: 320px;\n }\n\n .searchErrorMsg {\n font-size: 12px;\n margin: 4px 0px 0px;\n color: #de350b;\n }\n .searchOnly {\n margin: 0px 0px 16px;\n position: relative;\n }\n .searchOnly .ant-input-affix-wrapper {\n border-radius: 4px;\n max-width: 420px;\n padding-left: 44px;\n }\n .searchOnly .cstSearchIcon {\n position: absolute;\n left: 16px;\n top: 14px;\n z-index: 2;\n }\n\n .selectAndSearch .ant-input-affix-wrapper {\n border-radius: 0 4px 4px 0;\n width: 320px;\n }\n\n .selectAndSearch {\n flex-shrink: 0;\n }\n\n .customeSelectDropdown .ant-select-selector {\n border: none;\n padding: 0;\n max-width: 83vw;\n }\n .customeSelectDropdown .ant-select-selection-item > span {\n font-size: 24px;\n font-weight: 500;\n line-height: 32px;\n }\n\n .customeSelectDropdown .ant-select {\n margin: 0 0 0 32px;\n }\n\n .customeSelectDropdown .ant-select .ant-select-arrow {\n color: #014fc5;\n inset-inline-end: -6px;\n }\n\n .customeSelectDropdown .ant-select-selector {\n box-shadow: none !important;\n }\n\n .customeSelectDropdown .ant-select-selection-item {\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n vertical-align: bottom;\n }\n\n .oaheaderButtons {\n display: flex;\n gap: 24px;\n align-items: center;\n position: relative;\n flex-grow: 1;\n justify-content: space-between;\n }\n\n .oaheaderButtons.single-child {\n justify-content: flex-end;\n }\n\n .oaheaderButtonsRight {\n display: flex;\n flex-direction: row;\n gap: 16px;\n }\n\n .oaheaderButtons .notifyDot {\n width: 12px;\n height: 12px;\n background: #de350b;\n position: absolute;\n top: -4px;\n right: -4px;\n border-radius: 50%;\n }\n\n @media only screen and (max-width: 600px) {\n .selectAndSearch .ant-input-affix-wrapper {\n width: calc(100% - 84px);\n }\n .oaheaderSearchAndFilter .dropDownSearchContainer {\n width: 100%;\n }\n\n .oaheaderSearchAndFilter {\n align-items: flex-end;\n flex-direction: column;\n gap: 16px;\n }\n\n .inLine {\n flex-direction: column;\n gap: 0;\n align-items: flex-start;\n }\n\n .subHadingText > span {\n flex-direction: column;\n align-items: flex-start;\n }\n\n .customeSelectDropdown {\n margin: 4px 0 0 0;\n }\n\n .customeSelectDropdown .ant-select {\n margin: 0 0 0 0;\n }\n\n .fullPageLayout {\n flex-direction: column;\n padding: 0;\n }\n .oaRightLayouts {\n padding: 16px;\n border-radius: 0;\n background: #fff;\n box-shadow: none;\n height: auto;\n background: #f6f6f6;\n }\n .oaTabs .ant-tabs-nav {\n margin: 0 0 28px 0;\n padding: 12px 0 0 0;\n }\n .layoutHeadingPage {\n margin: 0 0 16px 0;\n background: #fff;\n padding: 16px;\n border-radius: 8px;\n width: 100%;\n }\n .layoutHeadingAndSearch {\n background: #fff;\n padding: 20px 16px;\n margin: 0;\n width: 100%;\n border-radius: 8px;\n }\n\n /* Hide profile section on mobile when sidebar has profile icon */\n .hideProfileOnMobile {\n display: none !important;\n }\n }\n"])), _ref => {
|
|
20
|
+
let {
|
|
21
|
+
marginBottom
|
|
22
|
+
} = _ref;
|
|
23
|
+
return marginBottom || "0";
|
|
24
|
+
});
|
|
25
|
+
const ListofDamageParts = exports.ListofDamageParts = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ul.damagedParts {\n display: flex;\n flex-direction: column;\n margin: 8px 0 0 16px;\n list-style-type: disc;\n }\n ul.damagedParts li {\n padding: 4px 0;\n width: 100%;\n }\n ul.damagedParts li::marker {\n color: #717171;\n font-size: 20px;\n }\n"])));
|
|
26
|
+
const IncidentListParts = exports.IncidentListParts = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n .qaSec dl {\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n }\n .qaSec dl dt {\n display: flex;\n flex-direction: column;\n margin: 16px 0 0 0;\n }\n .qaSec dl dt:first-child {\n margin-top: 8px;\n }\n"])));
|
|
27
|
+
const ProfileSectionContainer = exports.ProfileSectionContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n margin-left: auto;\n\n .profile-icon-container {\n position: relative;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"])));
|
|
28
|
+
const ProfileIcon = exports.ProfileIcon = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 48px;\n height: 48px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.2s ease;\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--color-primary);\n\n &:hover {\n transform: scale(1.05);\n }\n"])));
|
|
29
|
+
const Tooltip = exports.Tooltip = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n right: 0;\n margin-top: 8px;\n background: #000000;\n color: #ffffff;\n padding: 8px 12px;\n border-radius: 6px;\n font-size: 12px;\n white-space: nowrap;\n z-index: 1000;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\n &::before {\n content: \"\";\n position: absolute;\n top: -4px;\n right: 12px;\n width: 0;\n height: 0;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid #000000;\n }\n"])));
|
|
30
|
+
const ProfileContainerOverlay = exports.ProfileContainerOverlay = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n z-index: 1000;\n display: flex;\n justify-content: flex-end;\n align-items: flex-start;\n padding-top: 150px;\n padding-right: 53px;\n pointer-events: auto;\n"])));
|
|
31
|
+
const ProfileContainerModal = exports.ProfileContainerModal = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n background-color: white;\n border-radius: 8px;\n padding: 16px;\n width: 380px;\n height: auto;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n position: relative;\n border: 1px solid #e0e0e0;\n pointer-events: auto;\n"])));
|
|
32
|
+
const CurrentProfileSection = exports.CurrentProfileSection = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-bottom: 24px;\n"])));
|
|
33
|
+
const ProfileInfoContainer = exports.ProfileInfoContainer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n margin-bottom: 16px;\n"])));
|
|
34
|
+
const ProfileNameContainer = exports.ProfileNameContainer = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n width: calc(100% - 60px);\n"])));
|
|
35
|
+
const ProfileAvatar = exports.ProfileAvatar = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 64px;\n height: 64px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n"])));
|
|
36
|
+
const EnterpriseSection = exports.EnterpriseSection = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-top: 24px;\n padding-top: 24px;\n border-top: 1px solid #e0e0e0;\n"])));
|
|
37
|
+
const EnterpriseList = exports.EnterpriseList = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-top: 12px;\n"])));
|
|
38
|
+
const EnterpriseItem = exports.EnterpriseItem = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n padding: 16px 0px 16px 16px;\n cursor: pointer;\n border-radius: 4px;\n margin-bottom: 8px;\n transition: background-color 0.2s ease;\n background-color: #f8f9fa;\n\n &:hover {\n background-color: #e9ecef;\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
|
|
39
|
+
const EnterpriseAvatar = exports.EnterpriseAvatar = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: 48px;\n height: 48px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n flex-shrink: 0;\n"])));
|
|
40
|
+
const EnterpriseContent = exports.EnterpriseContent = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n flex: 1;\n min-width: 0;\n"])));
|
|
41
|
+
const EnterpriseArrow = exports.EnterpriseArrow = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n flex-shrink: 0;\n margin-left: 8px;\n color: #1890ff;\n"])));
|
|
42
|
+
var _default = exports.default = {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
8
|
+
require("core-js/modules/web.url.js");
|
|
9
|
+
require("core-js/modules/web.url-search-params.js");
|
|
10
|
+
const downloadFileData = function downloadFileData(data) {
|
|
11
|
+
let fileName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'file.xlsx';
|
|
12
|
+
const blob = new Blob([data], {
|
|
13
|
+
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
14
|
+
});
|
|
15
|
+
const fileURL = (window.URL || window.webkitURL).createObjectURL(blob);
|
|
16
|
+
const link = document.createElement('a');
|
|
17
|
+
link.href = fileURL;
|
|
18
|
+
link.download = fileName; // fallback, since headers are not available
|
|
19
|
+
document.body.appendChild(link);
|
|
20
|
+
link.click();
|
|
21
|
+
document.body.removeChild(link);
|
|
22
|
+
};
|
|
23
|
+
var _default = exports.default = downloadFileData;
|