@visns-studio/visns-components 5.11.21 → 5.12.0
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 +5 -5
- package/src/components/{crm/Autocomplete.jsx → Autocomplete.jsx} +1 -1
- package/src/components/{crm/BusinessCardOcr.jsx → BusinessCardOcr.jsx} +1 -1
- package/src/components/{crm/DataGrid.jsx → DataGrid.jsx} +57 -9
- package/src/components/{crm/Download.jsx → Download.jsx} +1 -1
- package/src/components/{cms/DropZone.jsx → DropZone.jsx} +1 -1
- package/src/components/{crm/Field.jsx → Field.jsx} +2 -2
- package/src/components/{crm/Form.jsx → Form.jsx} +65 -30
- package/src/components/{crm/auth → auth}/ClientLogin.jsx +2 -2
- package/src/components/{crm/auth → auth}/ClientOTPVerify.jsx +2 -2
- package/src/components/{crm/auth → auth}/Login.jsx +2 -2
- package/src/components/{crm/auth → auth}/Profile.jsx +3 -3
- package/src/components/{crm/auth → auth}/Reset.jsx +2 -2
- package/src/components/{crm/auth → auth}/TwoFactorAuth.jsx +2 -2
- package/src/components/{crm/auth → auth}/Verify.jsx +2 -2
- package/src/components/{crm/client → client}/ClientDashboard.jsx +1 -1
- package/src/components/{crm/client → client}/ClientPortal.jsx +1 -1
- package/src/components/{crm/columns → columns}/ColumnRenderers.jsx +31 -20
- package/src/components/{crm/generic → generic}/ActionButtons.jsx +1 -1
- package/src/components/{crm/generic → generic}/AlternativeActionModal.jsx +2 -2
- package/src/components/{crm/generic → generic}/AuditLog.jsx +1 -1
- package/src/components/{crm/generic → generic}/AuditLogs.jsx +1 -1
- package/src/components/{cms/generic → generic}/CmsDetail.jsx +2 -2
- package/src/components/{cms/generic → generic}/CmsSort.jsx +1 -1
- package/src/components/{crm/generic → generic}/ConfirmationDialog.jsx +1 -1
- package/src/components/{crm/generic → generic}/ContactSelectorModal.jsx +2 -2
- package/src/components/{crm/generic → generic}/DatePickerDialog.jsx +2 -2
- package/src/components/{crm/generic → generic}/DateRangeSelectorModal.jsx +2 -2
- package/src/components/{crm/generic → generic}/GenericClientPortal.jsx +1 -1
- package/src/components/{crm/generic → generic}/GenericDashboard.jsx +4 -4
- package/src/components/{crm/generic → generic}/GenericDetail.jsx +5 -5
- package/src/components/{crm/generic → generic}/GenericDynamic.jsx +1 -1
- package/src/components/{crm/generic → generic}/GenericEditableTable.jsx +1 -1
- package/src/components/{crm/generic → generic}/GenericFormBuilder.jsx +2 -2
- package/src/components/{crm/generic → generic}/GenericGrid.jsx +2 -2
- package/src/components/{crm/generic → generic}/GenericIndex.jsx +2 -2
- package/src/components/{crm/generic → generic}/GenericMain.jsx +2 -2
- package/src/components/{crm/generic → generic}/GenericQuote.jsx +4 -4
- package/src/components/{crm/generic → generic}/GenericReport.jsx +2 -2
- package/src/components/{crm/generic → generic}/GenericReportForm.jsx +1 -1
- package/src/components/{crm/generic → generic}/GenericSort.jsx +2 -2
- package/src/components/{crm/generic → generic}/NotificationList.jsx +1 -1
- package/src/components/{crm/generic → generic}/ReasonCollectorModal.jsx +2 -2
- package/src/components/{crm/generic → generic}/SortableQuoteItems.jsx +1 -1
- package/src/components/proposal/SectionEditor.jsx +1 -1
- package/src/components/{crm/sorting → sorting}/Item.jsx +1 -1
- package/src/components/{crm/sorting → sorting}/List.jsx +1 -1
- package/src/index.js +57 -59
- package/src/utils/{ConfirmDialog.js → ConfirmDialog.jsx} +1 -1
- package/src/components/cms/DataGrid.jsx +0 -1652
- package/src/components/cms/Field.jsx +0 -802
- package/src/components/cms/Form.jsx +0 -475
- package/src/components/cms/sorting/Item.jsx +0 -121
- package/src/components/cms/sorting/List.jsx +0 -32
- package/src/components/cms/sorting/styles/Item.module.scss +0 -38
- package/src/components/crm/sorting/styles/List.module.scss +0 -74
- /package/src/components/{crm/AssociationManager.jsx → AssociationManager.jsx} +0 -0
- /package/src/components/{crm/AsyncSelect.jsx → AsyncSelect.jsx} +0 -0
- /package/src/components/{crm/Breadcrumb.jsx → Breadcrumb.jsx} +0 -0
- /package/src/components/{crm/Call.jsx → Call.jsx} +0 -0
- /package/src/components/{crm/ClientAssociationManager.jsx → ClientAssociationManager.jsx} +0 -0
- /package/src/components/{crm/Fetch.jsx → Fetch.jsx} +0 -0
- /package/src/components/{cms/Gallery.jsx → Gallery.jsx} +0 -0
- /package/src/components/{crm/Loader.jsx → Loader.jsx} +0 -0
- /package/src/components/{crm/MergeEntity.jsx → MergeEntity.jsx} +0 -0
- /package/src/components/{crm/MultiSelect.jsx → MultiSelect.jsx} +0 -0
- /package/src/components/{crm/Navigation.jsx → Navigation.jsx} +0 -0
- /package/src/components/{crm/Notification.jsx → Notification.jsx} +0 -0
- /package/src/components/{crm/QrCode.jsx → QrCode.jsx} +0 -0
- /package/src/components/{crm/QuickAction.jsx → QuickAction.jsx} +0 -0
- /package/src/components/{crm/SectionHeader.jsx → SectionHeader.jsx} +0 -0
- /package/src/components/{crm/Select.jsx → Select.jsx} +0 -0
- /package/src/components/{crm/SelectList.jsx → SelectList.jsx} +0 -0
- /package/src/components/{crm/SwitchAccount.jsx → SwitchAccount.jsx} +0 -0
- /package/src/components/{crm/TableFilter.jsx → TableFilter.jsx} +0 -0
- /package/src/components/{crm/cells → cells}/CellWithTooltip.jsx +0 -0
- /package/src/components/{crm/controls → controls}/AudioPlayer.jsx +0 -0
- /package/src/components/{crm/controls → controls}/AutoRefreshControls.jsx +0 -0
- /package/src/components/{crm/controls → controls}/DataGridSearch.jsx +0 -0
- /package/src/components/{crm/examples → examples}/FilterExample.jsx +0 -0
- /package/src/components/{crm/examples → examples}/FormStylingGuide.md +0 -0
- /package/src/components/{crm/examples → examples}/FormWithSectionHeaders.jsx +0 -0
- /package/src/components/{crm/examples → examples}/README.md +0 -0
- /package/src/components/{cms/generic → generic}/CmsIndex.jsx +0 -0
- /package/src/components/{crm/generic → generic}/GenericAuth.jsx +0 -0
- /package/src/components/{crm/generic → generic}/shared/formatters.js +0 -0
- /package/src/components/{crm/generic → generic}/shared/gridUtils.js +0 -0
- /package/src/components/{crm/generic → generic}/utils/formatters.js +0 -0
- /package/src/components/{crm/modals → modals}/GalleryModal.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/SketchField.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/arrow.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/circle.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/default-tool.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/fabrictool.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/history.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/json/config.json +0 -0
- /package/src/components/{crm/sketch → sketch}/line.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/pan.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/pencil.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/rectangle-label-object.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/rectangle-label.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/rectangle.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/select.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/tools.jsx +0 -0
- /package/src/components/{crm/sketch → sketch}/utils.jsx +0 -0
- /package/src/components/{crm/generic/styles → styles}/ActionButtons.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/AlternativeActionModal.css +0 -0
- /package/src/components/{crm/styles → styles}/AssociationManager.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/AsyncSelect.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/AuditLog.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/AuditLogs.module.scss +0 -0
- /package/src/components/{crm/auth/styles → styles}/AuthForm.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/Autocomplete.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/BusinessCardOcr.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/ClientAssociationManager.module.scss +0 -0
- /package/src/components/{crm/auth/styles → styles}/ClientAuth.module.scss +0 -0
- /package/src/components/{crm/client/styles → styles}/ClientDashboard.module.scss +0 -0
- /package/src/components/{crm/client/styles → styles}/ClientPortal.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/ContactSelectorModal.css +0 -0
- /package/src/components/{crm/styles → styles}/DataGrid.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/DatePickerDialog.css +0 -0
- /package/src/components/{crm/generic/styles → styles}/DateRangeSelectorModal.css +0 -0
- /package/src/components/{cms/styles → styles}/DropZone.module.css +0 -0
- /package/src/components/{crm/styles → styles}/Field.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/Form.module.scss +0 -0
- /package/src/components/{cms/styles → styles}/Gallery.module.css +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericClientPortal.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericDashboard.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericDetail.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericDynamic.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericEditableTable.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericFormBuilder.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericIndex.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericMain.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericQuote.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericReport.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/GenericSort.module.scss +0 -0
- /package/src/components/{crm/sorting/styles → styles}/Item.module.scss +0 -0
- /package/src/components/{cms/sorting/styles → styles}/List.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/Loader.module.scss +0 -0
- /package/src/components/{crm/auth/styles → styles}/Login.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/MergeEntity.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/MultiSelect.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/Navigation.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/Notification.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/NotificationList.module.scss +0 -0
- /package/src/components/{crm/auth/styles → styles}/Profile.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/QrCode.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/QuickAction.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/ReasonCollectorModal.css +0 -0
- /package/src/components/{crm/generic/styles → styles}/ReportForm.module.scss +0 -0
- /package/src/components/{crm/auth/styles → styles}/Reset.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/SortableQuoteItems.module.scss +0 -0
- /package/src/components/{crm/generic/styles → styles}/SweetAlert.module.css +0 -0
- /package/src/components/{crm/styles → styles}/SwitchAccount.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/TableFilter.module.scss +0 -0
- /package/src/components/{crm/auth/styles → styles}/TwoFactorAuth.module.scss +0 -0
- /package/src/components/{crm/auth/styles → styles}/Verify.module.scss +0 -0
- /package/src/components/{crm/styles → styles}/global-datagrid.css +0 -0
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useParams, useNavigate, useLocation } from 'react-router-dom';
|
|
3
3
|
import Reveal from 'react-reveal/Reveal';
|
|
4
4
|
import { ToastContainer } from 'react-toastify';
|
|
5
|
-
import
|
|
5
|
+
import Form from '../Form';
|
|
6
6
|
|
|
7
7
|
function CmsDetail({ setting }) {
|
|
8
8
|
const { dataId } = useParams();
|
|
@@ -14,7 +14,7 @@ function CmsDetail({ setting }) {
|
|
|
14
14
|
<div className="grid">
|
|
15
15
|
<div className="grid__row">
|
|
16
16
|
<div className="grid__full">
|
|
17
|
-
<
|
|
17
|
+
<Form
|
|
18
18
|
dataId={dataId}
|
|
19
19
|
navigate={navigate}
|
|
20
20
|
form={form}
|
|
@@ -3,7 +3,7 @@ import { useLocation } from 'react-router-dom';
|
|
|
3
3
|
import Reveal from 'react-reveal/Reveal';
|
|
4
4
|
import { arrayMoveImmutable } from 'array-move';
|
|
5
5
|
import { toast } from 'react-toastify';
|
|
6
|
-
import CustomFetch from '
|
|
6
|
+
import CustomFetch from '../Fetch';
|
|
7
7
|
import SortableList from '../sorting/List';
|
|
8
8
|
|
|
9
9
|
const ChildSort = ({ item, url }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import Swal from 'sweetalert2';
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
3
|
+
import '../styles/SweetAlert.module.css';
|
|
4
|
+
import '../styles/ContactSelectorModal.css';
|
|
5
5
|
import CustomFetch from '../Fetch';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Swal from 'sweetalert2';
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
3
|
+
import '../styles/SweetAlert.module.css';
|
|
4
|
+
import '../styles/DatePickerDialog.css';
|
|
5
5
|
import moment from 'moment';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Swal from 'sweetalert2';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
3
|
+
import '../styles/SweetAlert.module.css';
|
|
4
|
+
import '../styles/DateRangeSelectorModal.css';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Show a date range selector modal for selecting start and end dates
|
|
@@ -5,7 +5,7 @@ import { LogOut as SignOut } from 'lucide-react';
|
|
|
5
5
|
|
|
6
6
|
import CustomFetch from '../Fetch';
|
|
7
7
|
|
|
8
|
-
import styles from '
|
|
8
|
+
import styles from '../styles/GenericClientPortal.module.scss';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* GenericClientPortal - A wrapper component for client portal content
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../styles/global.css';
|
|
2
2
|
import React, { useState, useEffect, useRef } from 'react';
|
|
3
3
|
import { Link, useNavigate } from 'react-router-dom';
|
|
4
4
|
import { ResponsiveBar } from '@nivo/bar';
|
|
@@ -11,10 +11,10 @@ import { createSwapy } from 'swapy';
|
|
|
11
11
|
import { X, Minus, Plus, Star, Trash2 } from 'lucide-react';
|
|
12
12
|
import { confirmDialog } from '../../utils/ConfirmDialog';
|
|
13
13
|
|
|
14
|
-
import CustomFetch from '
|
|
15
|
-
import MultiSelect from '
|
|
14
|
+
import CustomFetch from '../Fetch';
|
|
15
|
+
import MultiSelect from '../MultiSelect';
|
|
16
16
|
|
|
17
|
-
import styles from '
|
|
17
|
+
import styles from '../styles/GenericDashboard.module.scss';
|
|
18
18
|
|
|
19
19
|
const toSnakeCase = (str) => str.replace(/[\s-]+/g, '_').toLowerCase();
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../styles/global.css';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* GenericDetail Component
|
|
@@ -47,7 +47,7 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
|
47
47
|
import { saveAs } from 'file-saver';
|
|
48
48
|
import { toast } from 'react-toastify';
|
|
49
49
|
import imageCompression from 'browser-image-compression';
|
|
50
|
-
import fetchUtil from '
|
|
50
|
+
import fetchUtil from '../../utils/fetchUtil';
|
|
51
51
|
import {
|
|
52
52
|
CheckCircle as CircleCheck,
|
|
53
53
|
Copy,
|
|
@@ -75,10 +75,10 @@ import Table from '../DataGrid';
|
|
|
75
75
|
import TableFilter from '../TableFilter';
|
|
76
76
|
|
|
77
77
|
// Proposal components
|
|
78
|
-
import ProposalTemplateSectionManager from '
|
|
79
|
-
import ProposalTemplatePreview from '
|
|
78
|
+
import ProposalTemplateSectionManager from '../proposal/ProposalTemplateSectionManager';
|
|
79
|
+
import ProposalTemplatePreview from '../proposal/ProposalTemplatePreview';
|
|
80
80
|
|
|
81
|
-
import styles from '
|
|
81
|
+
import styles from '../styles/GenericDetail.module.scss';
|
|
82
82
|
|
|
83
83
|
const localizer = momentLocalizer(moment);
|
|
84
84
|
const DnDCalendar = withDragAndDrop(Calendar);
|
|
@@ -9,7 +9,7 @@ import { confirmDialog } from '../../utils/ConfirmDialog';
|
|
|
9
9
|
import CustomFetch from '../Fetch';
|
|
10
10
|
import Download from '../Download';
|
|
11
11
|
import Field from '../Field';
|
|
12
|
-
import styles from '
|
|
12
|
+
import styles from '../styles/GenericDynamic.module.scss';
|
|
13
13
|
|
|
14
14
|
const updateField = (fields, name, value) => {
|
|
15
15
|
if (Array.isArray(fields)) {
|
|
@@ -8,7 +8,7 @@ import { confirmDialog } from '../../utils/ConfirmDialog';
|
|
|
8
8
|
|
|
9
9
|
import CustomFetch from '../Fetch';
|
|
10
10
|
import MultiSelect from '../MultiSelect';
|
|
11
|
-
import styles from '
|
|
11
|
+
import styles from '../styles/GenericEditableTable.module.scss';
|
|
12
12
|
|
|
13
13
|
// Updated ColourPicker with an expanded pastel palette
|
|
14
14
|
const ColourPicker = ({ value, columnId, keyCounter, onChange }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../styles/global.css';
|
|
2
2
|
|
|
3
3
|
import React, { useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { useParams } from 'react-router-dom';
|
|
@@ -43,7 +43,7 @@ import Breadcrumb from '../Breadcrumb';
|
|
|
43
43
|
import CustomFetch from '../Fetch';
|
|
44
44
|
import SketchConfig from '../sketch/json/config.json';
|
|
45
45
|
|
|
46
|
-
import styles from '
|
|
46
|
+
import styles from '../styles/GenericFormBuilder.module.scss'; // Import the CSS module
|
|
47
47
|
|
|
48
48
|
function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
49
49
|
const editorRef = useRef(null);
|
|
@@ -13,8 +13,8 @@ import { showContactSelectorModal } from './ContactSelectorModal';
|
|
|
13
13
|
import { showDateRangeSelectorModal } from './DateRangeSelectorModal';
|
|
14
14
|
import { showAlternativeActionModal } from './AlternativeActionModal';
|
|
15
15
|
import { showReasonCollectorModal } from './ReasonCollectorModal';
|
|
16
|
-
import { processGridHeaders, getColumnHeaderClasses, getColumnHeaderStyles, getColumnHeaderTooltip, getColumnCellClasses, getColumnCellStyles } from '
|
|
17
|
-
import styles from '
|
|
16
|
+
import { processGridHeaders, getColumnHeaderClasses, getColumnHeaderStyles, getColumnHeaderTooltip, getColumnCellClasses, getColumnCellStyles } from '../../utils/columnsMetadataUtils';
|
|
17
|
+
import styles from '../styles/GenericIndex.module.scss';
|
|
18
18
|
|
|
19
19
|
// ContactTooltip component for enhanced contact display
|
|
20
20
|
const ContactTooltip = ({ contacts, children }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../styles/global.css';
|
|
2
2
|
|
|
3
3
|
import React, {
|
|
4
4
|
useCallback,
|
|
@@ -22,7 +22,7 @@ import TableFilter from '../TableFilter';
|
|
|
22
22
|
import GenericGrid from './GenericGrid';
|
|
23
23
|
import GenericReportForm from './GenericReportForm';
|
|
24
24
|
|
|
25
|
-
import styles from '
|
|
25
|
+
import styles from '../styles/GenericIndex.module.scss';
|
|
26
26
|
|
|
27
27
|
function useWindowHeight() {
|
|
28
28
|
const [windowHeight, setWindowHeight] = useState(window.innerHeight);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../styles/global.css';
|
|
2
2
|
|
|
3
3
|
import React, { useState, useEffect, useCallback } from 'react';
|
|
4
4
|
import {
|
|
@@ -15,7 +15,7 @@ import Loader from '../Loader';
|
|
|
15
15
|
import Navigation from '../Navigation';
|
|
16
16
|
import QuickAction from '../QuickAction';
|
|
17
17
|
|
|
18
|
-
import styles from '
|
|
18
|
+
import styles from '../styles/GenericMain.module.scss';
|
|
19
19
|
|
|
20
20
|
const GenericMain = ({
|
|
21
21
|
layout = 'full',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../styles/global.css';
|
|
2
2
|
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { useParams, useNavigate } from 'react-router-dom';
|
|
@@ -12,13 +12,13 @@ import { showConfirmDialog } from './ConfirmationDialog';
|
|
|
12
12
|
import { FileText, DollarSign, Clock, Eye, X, Edit3, FileEdit, Save, Settings } from 'lucide-react';
|
|
13
13
|
import { Editor } from '@tinymce/tinymce-react';
|
|
14
14
|
|
|
15
|
-
import CustomFetch from '
|
|
15
|
+
import CustomFetch from '../Fetch';
|
|
16
16
|
import ActionButtons from './ActionButtons';
|
|
17
|
-
import Form from '
|
|
17
|
+
import Form from '../Form';
|
|
18
18
|
import { formatCurrency } from './utils/formatters';
|
|
19
19
|
import SortableTableBody from './SortableQuoteItems';
|
|
20
20
|
|
|
21
|
-
import styles from '
|
|
21
|
+
import styles from '../styles/GenericQuote.module.scss';
|
|
22
22
|
|
|
23
23
|
// Isolated Proposal Preview Component
|
|
24
24
|
function ProposalPreviewFrame({ content }) {
|
|
@@ -34,8 +34,8 @@ import CustomFetch from '../Fetch';
|
|
|
34
34
|
import Download from '../Download';
|
|
35
35
|
import { saveAs } from 'file-saver';
|
|
36
36
|
import Swal from 'sweetalert2';
|
|
37
|
-
import styles from '
|
|
38
|
-
import '
|
|
37
|
+
import styles from '../styles/GenericReport.module.scss';
|
|
38
|
+
import '../styles/SweetAlert.module.css';
|
|
39
39
|
|
|
40
40
|
// Icon mapping for common table types
|
|
41
41
|
const tableIcons = {
|
|
@@ -6,7 +6,7 @@ import { Download as CloudDownload } from 'lucide-react';
|
|
|
6
6
|
import Download from '../Download';
|
|
7
7
|
import Field from '../Field';
|
|
8
8
|
|
|
9
|
-
import reportStyles from '
|
|
9
|
+
import reportStyles from '../styles/ReportForm.module.scss';
|
|
10
10
|
|
|
11
11
|
const GenericReportForm = ({ config, userProfile, onExport, onFormChange }) => {
|
|
12
12
|
const [formData, setFormData] = useState({});
|
|
@@ -2,10 +2,10 @@ import React, { useState, useEffect } from 'react';
|
|
|
2
2
|
import { useLocation, useParams } from 'react-router-dom';
|
|
3
3
|
import { arrayMoveImmutable } from 'array-move';
|
|
4
4
|
import { toast } from 'react-toastify';
|
|
5
|
-
import CustomFetch from '
|
|
5
|
+
import CustomFetch from '../Fetch';
|
|
6
6
|
import SortableList from '../sorting/List';
|
|
7
7
|
import Breadcrumb from '../Breadcrumb';
|
|
8
|
-
import styles from '
|
|
8
|
+
import styles from '../styles/GenericSort.module.scss';
|
|
9
9
|
|
|
10
10
|
// Utility function to convert camelCase to space-separated words with uppercase first letters
|
|
11
11
|
function camelCaseToUcFirst(str) {
|
|
@@ -4,7 +4,7 @@ import Table from '../DataGrid';
|
|
|
4
4
|
import { Bell, Check, ArrowLeft } from 'lucide-react';
|
|
5
5
|
import { toast } from 'react-toastify';
|
|
6
6
|
import CustomFetch from '../Fetch';
|
|
7
|
-
import styles from '
|
|
7
|
+
import styles from '../styles/NotificationList.module.scss';
|
|
8
8
|
|
|
9
9
|
const NotificationList = () => {
|
|
10
10
|
const navigate = useNavigate();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Swal from 'sweetalert2';
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
2
|
+
import '../styles/SweetAlert.module.css';
|
|
3
|
+
import '../styles/ReasonCollectorModal.css';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Show a reason collector modal for collecting "not sent" reasons
|
|
@@ -8,7 +8,7 @@ import { GripVertical, Pencil, Trash2 } from 'lucide-react';
|
|
|
8
8
|
import get from 'lodash/get';
|
|
9
9
|
import { formatCurrency } from './utils/formatters';
|
|
10
10
|
|
|
11
|
-
import styles from '
|
|
11
|
+
import styles from '../styles/SortableQuoteItems.module.scss';
|
|
12
12
|
|
|
13
13
|
// Drag handle component
|
|
14
14
|
const DragHandle = sortableHandle(() => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { X, Save, Tag, Settings, Eye } from 'lucide-react';
|
|
3
|
-
import Field from '../
|
|
3
|
+
import Field from '../Field';
|
|
4
4
|
import VariableInserter from './VariableInserter';
|
|
5
5
|
import './SectionEditor.css';
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { SortableElement, sortableHandle } from 'react-sortable-hoc';
|
|
3
3
|
import { GripVertical, Pencil, Trash2 } from 'lucide-react';
|
|
4
4
|
|
|
5
|
-
import styles from '
|
|
5
|
+
import styles from '../styles/Item.module.scss';
|
|
6
6
|
|
|
7
7
|
const DragHandle = sortableHandle(() => (
|
|
8
8
|
<GripVertical className="drag-handle" strokeWidth={1} size={22} />
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import VisnsSortableItem from './Item';
|
|
3
3
|
import { SortableContainer } from 'react-sortable-hoc';
|
|
4
4
|
|
|
5
|
-
import styles from '
|
|
5
|
+
import styles from '../styles/List.module.scss';
|
|
6
6
|
|
|
7
7
|
const SortableList = ({
|
|
8
8
|
handleClick,
|
package/src/index.js
CHANGED
|
@@ -1,69 +1,68 @@
|
|
|
1
1
|
/** CMS Components */
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import SortableList from './components/cms/sorting/List';
|
|
2
|
+
import DataGrid from './components/DataGrid';
|
|
3
|
+
import DropZone from './components/DropZone';
|
|
4
|
+
import SortableList from './components/sorting/List';
|
|
6
5
|
|
|
7
6
|
/** CRM Components */
|
|
8
|
-
import AsyncSelect from './components/
|
|
9
|
-
import AssociationManager from './components/
|
|
10
|
-
import Autocomplete from './components/
|
|
11
|
-
import Breadcrumb from './components/
|
|
12
|
-
import BusinessCardOcr from './components/
|
|
13
|
-
import Call from './components/
|
|
14
|
-
import ClientAssociationManager from './components/
|
|
15
|
-
import CustomFetch from './components/
|
|
16
|
-
import Download from './components/
|
|
17
|
-
import Field from './components/
|
|
18
|
-
import Form from './components/
|
|
19
|
-
import Loader from './components/
|
|
20
|
-
import MergeEntity from './components/
|
|
21
|
-
import MultiSelect from './components/
|
|
22
|
-
import Navigation from './components/
|
|
23
|
-
import Notification from './components/
|
|
24
|
-
import SelectList from './components/
|
|
25
|
-
import Select from './components/
|
|
26
|
-
import Table from './components/
|
|
27
|
-
import TableFilter from './components/
|
|
28
|
-
import CellWithTooltip from './components/
|
|
29
|
-
import DataGridSearch from './components/
|
|
30
|
-
import AutoRefreshControls from './components/
|
|
31
|
-
import AudioPlayer from './components/
|
|
32
|
-
import GalleryModal from './components/
|
|
33
|
-
export * from './components/
|
|
7
|
+
import AsyncSelect from './components/AsyncSelect';
|
|
8
|
+
import AssociationManager from './components/AssociationManager';
|
|
9
|
+
import Autocomplete from './components/Autocomplete';
|
|
10
|
+
import Breadcrumb from './components/Breadcrumb';
|
|
11
|
+
import BusinessCardOcr from './components/BusinessCardOcr';
|
|
12
|
+
import Call from './components/Call';
|
|
13
|
+
import ClientAssociationManager from './components/ClientAssociationManager';
|
|
14
|
+
import CustomFetch from './components/Fetch';
|
|
15
|
+
import Download from './components/Download';
|
|
16
|
+
import Field from './components/Field';
|
|
17
|
+
import Form from './components/Form';
|
|
18
|
+
import Loader from './components/Loader';
|
|
19
|
+
import MergeEntity from './components/MergeEntity';
|
|
20
|
+
import MultiSelect from './components/MultiSelect';
|
|
21
|
+
import Navigation from './components/Navigation';
|
|
22
|
+
import Notification from './components/Notification';
|
|
23
|
+
import SelectList from './components/SelectList';
|
|
24
|
+
import Select from './components/Select';
|
|
25
|
+
import Table from './components/DataGrid';
|
|
26
|
+
import TableFilter from './components/TableFilter';
|
|
27
|
+
import CellWithTooltip from './components/cells/CellWithTooltip';
|
|
28
|
+
import DataGridSearch from './components/controls/DataGridSearch';
|
|
29
|
+
import AutoRefreshControls from './components/controls/AutoRefreshControls';
|
|
30
|
+
import AudioPlayer from './components/controls/AudioPlayer';
|
|
31
|
+
import GalleryModal from './components/modals/GalleryModal';
|
|
32
|
+
export * from './components/columns/ColumnRenderers.jsx';
|
|
34
33
|
|
|
35
34
|
/** Auth Specific Components */
|
|
36
|
-
import Login from './components/
|
|
37
|
-
import Profile from './components/
|
|
38
|
-
import Reset from './components/
|
|
39
|
-
import Verify from './components/
|
|
40
|
-
import ClientLogin from './components/
|
|
41
|
-
import ClientOTPVerify from './components/
|
|
42
|
-
import ClientPortal from './components/
|
|
43
|
-
import ClientDashboard from './components/
|
|
35
|
+
import Login from './components/auth/Login';
|
|
36
|
+
import Profile from './components/auth/Profile';
|
|
37
|
+
import Reset from './components/auth/Reset';
|
|
38
|
+
import Verify from './components/auth/Verify';
|
|
39
|
+
import ClientLogin from './components/auth/ClientLogin';
|
|
40
|
+
import ClientOTPVerify from './components/auth/ClientOTPVerify';
|
|
41
|
+
import ClientPortal from './components/client/ClientPortal';
|
|
42
|
+
import ClientDashboard from './components/client/ClientDashboard';
|
|
44
43
|
|
|
45
44
|
/** CMS Generic Components */
|
|
46
|
-
import CmsDetail from './components/
|
|
47
|
-
import CmsIndex from './components/
|
|
48
|
-
import CmsSort from './components/
|
|
45
|
+
import CmsDetail from './components/generic/CmsDetail';
|
|
46
|
+
import CmsIndex from './components/generic/CmsIndex';
|
|
47
|
+
import CmsSort from './components/generic/CmsSort';
|
|
49
48
|
|
|
50
49
|
/** CRM Generic Components */
|
|
51
|
-
import AuditLog from './components/
|
|
52
|
-
import AuditLogs from './components/
|
|
53
|
-
import GenericAuth from './components/
|
|
54
|
-
import GenericClientPortal from './components/
|
|
55
|
-
import GenericDashboard from './components/
|
|
56
|
-
import GenericDetail from './components/
|
|
57
|
-
import GenericDynamic from './components/
|
|
58
|
-
import GenericFormBuilder from './components/
|
|
59
|
-
import GenericIndex from './components/
|
|
60
|
-
import GenericGrid from './components/
|
|
61
|
-
import GenericReportForm from './components/
|
|
62
|
-
import GenericMain from './components/
|
|
63
|
-
import GenericQuote from './components/
|
|
64
|
-
import GenericReport from './components/
|
|
65
|
-
import GenericSort from './components/
|
|
66
|
-
import NotificationList from './components/
|
|
50
|
+
import AuditLog from './components/generic/AuditLog';
|
|
51
|
+
import AuditLogs from './components/generic/AuditLogs';
|
|
52
|
+
import GenericAuth from './components/generic/GenericAuth';
|
|
53
|
+
import GenericClientPortal from './components/generic/GenericClientPortal';
|
|
54
|
+
import GenericDashboard from './components/generic/GenericDashboard';
|
|
55
|
+
import GenericDetail from './components/generic/GenericDetail';
|
|
56
|
+
import GenericDynamic from './components/generic/GenericDynamic';
|
|
57
|
+
import GenericFormBuilder from './components/generic/GenericFormBuilder';
|
|
58
|
+
import GenericIndex from './components/generic/GenericIndex';
|
|
59
|
+
import GenericGrid from './components/generic/GenericGrid';
|
|
60
|
+
import GenericReportForm from './components/generic/GenericReportForm';
|
|
61
|
+
import GenericMain from './components/generic/GenericMain';
|
|
62
|
+
import GenericQuote from './components/generic/GenericQuote';
|
|
63
|
+
import GenericReport from './components/generic/GenericReport';
|
|
64
|
+
import GenericSort from './components/generic/GenericSort';
|
|
65
|
+
import NotificationList from './components/generic/NotificationList';
|
|
67
66
|
|
|
68
67
|
/** Proposal Components */
|
|
69
68
|
import ProposalTemplateSectionManager from './components/proposal/ProposalTemplateSectionManager';
|
|
@@ -91,7 +90,6 @@ export {
|
|
|
91
90
|
ClientPortal,
|
|
92
91
|
ClientDashboard,
|
|
93
92
|
CmsDetail,
|
|
94
|
-
CmsForm,
|
|
95
93
|
CmsIndex,
|
|
96
94
|
CmsSort,
|
|
97
95
|
CustomFetch,
|
|
@@ -135,4 +133,4 @@ export {
|
|
|
135
133
|
TableFilter,
|
|
136
134
|
VariableInserter,
|
|
137
135
|
Verify,
|
|
138
|
-
};
|
|
136
|
+
};
|