@visns-studio/visns-components 4.7.1 → 4.7.3
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 +13 -9
- package/src/components/cms/DataGrid.jsx +1461 -0
- package/src/components/cms/DropZone.jsx +349 -0
- package/src/components/cms/Field.jsx +802 -0
- package/src/components/cms/Form.jsx +476 -0
- package/src/components/cms/generic/CmsDetail.jsx +36 -0
- package/src/components/cms/generic/CmsIndex.jsx +73 -0
- package/src/components/cms/generic/CmsSort.jsx +125 -0
- package/src/components/cms/sorting/Item.jsx +115 -0
- package/src/components/cms/sorting/List.jsx +30 -0
- package/src/components/crm/AsyncSelect.jsx +125 -0
- package/src/components/crm/Autocomplete.jsx +174 -0
- package/src/components/crm/Breadcrumb.jsx +52 -0
- package/src/components/crm/Call.jsx +220 -0
- package/src/components/crm/DataGrid.jsx +2701 -0
- package/src/components/crm/Download.jsx +101 -0
- package/src/components/crm/Fetch.jsx +119 -0
- package/src/components/crm/Field.jsx +1557 -0
- package/src/components/crm/Form.jsx +1409 -0
- package/src/components/crm/Loader.jsx +29 -0
- package/src/components/crm/MultiSelect.jsx +78 -0
- package/src/components/crm/Navigation.jsx +619 -0
- package/src/components/crm/Notification.jsx +197 -0
- package/src/components/crm/QrCode.jsx +83 -0
- package/src/components/crm/Select.jsx +58 -0
- package/src/components/crm/SelectList.jsx +21 -0
- package/src/components/crm/TableFilter.jsx +198 -0
- package/src/components/crm/auth/Login.jsx +223 -0
- package/src/components/crm/auth/Profile.jsx +280 -0
- package/src/components/crm/auth/Reset.jsx +111 -0
- package/src/components/crm/auth/Verify.jsx +174 -0
- package/src/components/crm/auth/styles/Login.module.scss +243 -0
- package/src/components/crm/auth/styles/Profile.module.scss +222 -0
- package/src/components/crm/auth/styles/Reset.module.scss +216 -0
- package/src/components/crm/auth/styles/Verify.module.scss +216 -0
- package/src/components/crm/generic/AuditLog.jsx +108 -0
- package/src/components/crm/generic/AuditLogs.jsx +115 -0
- package/src/components/crm/generic/GenericAuth.jsx +166 -0
- package/src/components/crm/generic/GenericDashboard.jsx +42 -0
- package/src/components/crm/generic/GenericDetail.jsx +1499 -0
- package/src/components/crm/generic/GenericDynamic.jsx +915 -0
- package/src/components/crm/generic/GenericFormBuilder.jsx +1765 -0
- package/src/components/crm/generic/GenericIndex.jsx +376 -0
- package/src/components/crm/generic/GenericMain.jsx +129 -0
- package/src/components/crm/generic/GenericSort.jsx +188 -0
- package/src/components/crm/generic/NotificationList.jsx +64 -0
- package/src/components/crm/generic/styles/AuditLog.module.scss +147 -0
- package/src/components/crm/generic/styles/AuditLogs.module.scss +92 -0
- package/src/components/crm/generic/styles/GenericDetail.module.scss +634 -0
- package/src/components/crm/generic/styles/GenericDynamic.module.scss +932 -0
- package/src/components/crm/generic/styles/GenericFormBuilder.module.scss +944 -0
- package/src/components/crm/generic/styles/GenericIndex.module.scss +247 -0
- package/src/components/crm/generic/styles/GenericMain.module.scss +91 -0
- package/src/components/crm/generic/styles/GenericSort.module.scss +123 -0
- package/src/components/crm/generic/styles/NotificationList.module.scss +67 -0
- package/src/components/crm/sorting/Item.jsx +117 -0
- package/src/components/crm/sorting/List.jsx +32 -0
- package/src/components/crm/sorting/styles/Item.module.scss +68 -0
- package/src/components/crm/sorting/styles/List.module.scss +68 -0
- package/src/components/crm/styles/AsyncSelect.module.scss +8 -0
- package/src/components/crm/styles/Autocomplete.module.scss +44 -0
- package/src/components/crm/styles/DataGrid.module.scss +210 -0
- package/src/components/crm/styles/Field.module.scss +311 -0
- package/src/components/crm/styles/Form.module.scss +499 -0
- package/src/components/crm/styles/Loader.module.scss +94 -0
- package/src/components/crm/styles/MultiSelect.module.scss +8 -0
- package/src/components/crm/styles/Navigation.module.scss +978 -0
- package/src/components/crm/styles/Notification.module.scss +147 -0
- package/src/components/crm/styles/QrCode.module.scss +87 -0
- package/src/components/crm/styles/TableFilter.module.scss +52 -0
- package/src/components/styles/global.css +73 -0
- package/src/index.js +86 -0
- package/dist/104e5636d8ddb791614c.woff2 +0 -0
- package/dist/11fe6a83d647de5daf95.woff +0 -0
- package/dist/141e2a8c7836495afe2a.woff +0 -0
- package/dist/2ba5877f7079830b5383.woff +0 -0
- package/dist/2d6836f45b2037be41f3.woff +0 -0
- package/dist/399.0a0f3e0d21be1057d599.css +0 -8
- package/dist/399.b8f57fa3f8c0c10119e4.js +0 -1
- package/dist/47d566c3b1293dfd9d77.woff +0 -0
- package/dist/6282a13cbba671a71913.woff2 +0 -0
- package/dist/78266f551031aa9db127.woff +0 -0
- package/dist/7b7da89f1e3fdcbfe36c.woff2 +0 -0
- package/dist/7e78e8338af7efeda712.woff2 +0 -0
- package/dist/7fa387951673abf164b1.woff2 +0 -0
- package/dist/819d59862c2d0640aad8.woff +0 -0
- package/dist/b615e1a6c838ea059a56.woff +0 -0
- package/dist/b9b1aa739c660c4ce67c.woff2 +0 -0
- package/dist/c5f3640b11df9414facb.woff +0 -0
- package/dist/da26d162ff5af71d6590.woff2 +0 -0
- package/dist/dd5b2912dbf896310865.woff2 +0 -0
- package/dist/f282b331272463c1aa6c.woff2 +0 -0
- package/dist/main.83b033670d64419bb497.css +0 -1
- package/dist/main.b1723d17cd2d3513ab62.js +0 -1
- package/dist/report.html +0 -39
- package/dist/runtime.33c276593b23f8035b8d.js +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { usePromiseTracker } from 'react-promise-tracker';
|
|
3
|
+
import styles from './styles/Loader.module.scss';
|
|
4
|
+
|
|
5
|
+
function VisnsLoader({}) {
|
|
6
|
+
const { promiseInProgress } = usePromiseTracker();
|
|
7
|
+
const [loaderStyle, setLoaderStyle] = useState({
|
|
8
|
+
opacity: 0,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
setLoaderStyle({
|
|
13
|
+
opacity: promiseInProgress === true ? 1 : 0,
|
|
14
|
+
});
|
|
15
|
+
}, [promiseInProgress]);
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div className={styles.preloader} style={loaderStyle}>
|
|
19
|
+
<div className={styles.preloader__icn}>
|
|
20
|
+
<div className={styles.preloader__cut}>
|
|
21
|
+
<div className={styles.preloader__donut}></div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<span>Processing Data</span>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default VisnsLoader;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import SelectList from './SelectList';
|
|
3
|
+
import Select, { createFilter } from 'react-select';
|
|
4
|
+
import styles from './styles/AsyncSelect.module.scss';
|
|
5
|
+
|
|
6
|
+
function MultiSelect({
|
|
7
|
+
className,
|
|
8
|
+
inputValue,
|
|
9
|
+
multi,
|
|
10
|
+
onChange,
|
|
11
|
+
options,
|
|
12
|
+
placeholder,
|
|
13
|
+
settings,
|
|
14
|
+
style,
|
|
15
|
+
}) {
|
|
16
|
+
const [selectOptions, setSelectOptions] = useState([]);
|
|
17
|
+
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
let _options = [];
|
|
20
|
+
|
|
21
|
+
if (options.length > 0) {
|
|
22
|
+
options.forEach((a) => {
|
|
23
|
+
let _optionItem = {
|
|
24
|
+
value: a.id,
|
|
25
|
+
label: a.label,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
Object.keys(a).forEach((b) => {
|
|
29
|
+
if (b !== 'id') {
|
|
30
|
+
_optionItem = {
|
|
31
|
+
..._optionItem,
|
|
32
|
+
[b]: a[b],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
_options.push(_optionItem);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
setSelectOptions(_options);
|
|
41
|
+
}
|
|
42
|
+
}, [options]);
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<Select
|
|
46
|
+
closeMenuOnSelect={multi ? false : true}
|
|
47
|
+
isClearable
|
|
48
|
+
isSearchable
|
|
49
|
+
isMulti={multi}
|
|
50
|
+
filterOption={createFilter({ ignoreAccents: false })}
|
|
51
|
+
components={{ SelectList }}
|
|
52
|
+
options={selectOptions}
|
|
53
|
+
onChange={(inputValue, action) => {
|
|
54
|
+
onChange(inputValue, action, settings.id);
|
|
55
|
+
}}
|
|
56
|
+
className={
|
|
57
|
+
className
|
|
58
|
+
? `${styles.visns__ms} ${className}`
|
|
59
|
+
: styles.visns__ms
|
|
60
|
+
}
|
|
61
|
+
classNamePrefix="visns-select"
|
|
62
|
+
styles={{
|
|
63
|
+
menu: (provided) => ({ ...provided, zIndex: 9999 }),
|
|
64
|
+
control: (base) => ({
|
|
65
|
+
...base,
|
|
66
|
+
minHeight:
|
|
67
|
+
style && style.multi_select_height
|
|
68
|
+
? style.multi_select_height
|
|
69
|
+
: '52px',
|
|
70
|
+
}),
|
|
71
|
+
}}
|
|
72
|
+
value={inputValue}
|
|
73
|
+
placeholder={placeholder ? placeholder : 'Select...'}
|
|
74
|
+
/>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export default MultiSelect;
|