@visns-studio/visns-components 4.7.2 → 4.7.4
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 +15 -14
- 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 +1637 -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 +916 -0
- package/src/components/crm/generic/GenericFormBuilder.jsx +1909 -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/index.css +0 -2902
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -150
- 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,64 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Table from '../DataGrid';
|
|
3
|
+
|
|
4
|
+
const NotificationList = () => {
|
|
5
|
+
const ajaxSetting = {
|
|
6
|
+
url: '/ajax/notifications/table',
|
|
7
|
+
take: 25,
|
|
8
|
+
sortBy: 'id',
|
|
9
|
+
sort: 'desc',
|
|
10
|
+
where: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const form = {
|
|
14
|
+
primaryKey: 'id',
|
|
15
|
+
url: '/ajax/notifications',
|
|
16
|
+
create: {},
|
|
17
|
+
update: {},
|
|
18
|
+
fields: [],
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const columns = [
|
|
22
|
+
{
|
|
23
|
+
id: 'data',
|
|
24
|
+
jsonData: 'label',
|
|
25
|
+
label: 'Label',
|
|
26
|
+
type: 'json',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 'read_at',
|
|
30
|
+
label: 'Read At',
|
|
31
|
+
type: 'datetime',
|
|
32
|
+
minWidth: 200,
|
|
33
|
+
maxWidth: 200,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
const settings = [];
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<div>
|
|
41
|
+
<div className={styles.grid}>
|
|
42
|
+
<div className={styles.grid__row}>
|
|
43
|
+
<div className={`${styles.grid__full} ${styles.crmtitle}`}>
|
|
44
|
+
<h1>Notifications</h1>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div className={styles.grid}>
|
|
49
|
+
<div className={styles.grid__row}>
|
|
50
|
+
<div className={styles.grid__full}>
|
|
51
|
+
<Table
|
|
52
|
+
ajaxSetting={ajaxSetting}
|
|
53
|
+
form={form}
|
|
54
|
+
columns={columns}
|
|
55
|
+
settings={settings}
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export default NotificationList;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
.grid {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
flex-wrap: nowrap;
|
|
6
|
+
height: auto;
|
|
7
|
+
gap: 1rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.grid__row {
|
|
11
|
+
width: 100%;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
flex-wrap: nowrap;
|
|
15
|
+
height: auto;
|
|
16
|
+
gap: 1rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.grid__subrow {
|
|
20
|
+
width: 100%;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
height: auto;
|
|
24
|
+
gap: 0.5rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.grid__full {
|
|
28
|
+
width: 100%;
|
|
29
|
+
background: var(--item-color);
|
|
30
|
+
border-radius: var(--br);
|
|
31
|
+
border: 1px solid rgba(var(--item-color-rgb), 1.15);
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
overflow: visible;
|
|
34
|
+
position: relative;
|
|
35
|
+
padding: 2px;
|
|
36
|
+
margin: 8px 0;
|
|
37
|
+
box-shadow: 0 4px 0 rgba(var(--primary-color-rgb), 0.05);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.crmtitle {
|
|
41
|
+
border: none;
|
|
42
|
+
min-height: auto;
|
|
43
|
+
padding: 5px 20px;
|
|
44
|
+
margin: 0;
|
|
45
|
+
background: var(--primary-color);
|
|
46
|
+
border-radius: var(--br);
|
|
47
|
+
border: 1px solid rgba(var(--item-color-rgb), 1.15);
|
|
48
|
+
position: relative;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
|
|
52
|
+
h1 {
|
|
53
|
+
color: var(--background-color);
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
font-size: 1.15em;
|
|
56
|
+
margin: 0;
|
|
57
|
+
padding: 0.65rem 0;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: 0.25rem;
|
|
61
|
+
|
|
62
|
+
a {
|
|
63
|
+
text-decoration: none;
|
|
64
|
+
color: var(--secondary-color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
svg {
|
|
68
|
+
color: rgba(var(--tertiary-color-rgb), 0.5);
|
|
69
|
+
position: relative;
|
|
70
|
+
top: 0;
|
|
71
|
+
margin: 0 0.5rem;
|
|
72
|
+
max-width: 15px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.gridtxt__header {
|
|
78
|
+
width: 100%;
|
|
79
|
+
display: block;
|
|
80
|
+
background: rgba(var(--item-color-rgb), 1.05);
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
padding: 10px 20px;
|
|
83
|
+
border-radius: 0;
|
|
84
|
+
margin-bottom: 0;
|
|
85
|
+
font-weight: 700;
|
|
86
|
+
text-align: center;
|
|
87
|
+
color: var(--paragraph-color);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.gridtxt__header span {
|
|
91
|
+
font-weight: 700;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.gridtxt > ul {
|
|
95
|
+
width: 100%;
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: flex-start;
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
list-style: none;
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
padding: 0.85rem;
|
|
103
|
+
margin: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.gridtxt > ul li {
|
|
107
|
+
flex: 0 0 calc(50% - 10px);
|
|
108
|
+
padding: 0.85rem;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
border: 1px solid rgba(var(--primary-color-rgb), 0.15);
|
|
111
|
+
color: var(--paragraph-color);
|
|
112
|
+
background: rgba(var(--tertiary-color-rgb), 0.95);
|
|
113
|
+
margin: 5px;
|
|
114
|
+
border-radius: var(--br);
|
|
115
|
+
line-height: 1.45;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.gridtxt > ul .fw-grid-item {
|
|
119
|
+
flex: 0 0 calc(100% - 10px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.gridtxt > ul .notecolor {
|
|
123
|
+
border: 1px solid var(--secondary-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.customer__overview {
|
|
127
|
+
width: 100%;
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: flex-start;
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
list-style: none;
|
|
133
|
+
box-sizing: border-box;
|
|
134
|
+
padding: 1em;
|
|
135
|
+
margin: 0;
|
|
136
|
+
|
|
137
|
+
li {
|
|
138
|
+
width: 49%;
|
|
139
|
+
padding: 1em;
|
|
140
|
+
box-sizing: border-box;
|
|
141
|
+
border: 1px solid rgba(var(--primary-color-rgb), 0.15);
|
|
142
|
+
color: var(--paragraph-color);
|
|
143
|
+
background: rgba(#f4f4f4, 0.65);
|
|
144
|
+
margin: 5px;
|
|
145
|
+
border-radius: 5px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.grid {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
flex-wrap: nowrap;
|
|
6
|
+
height: auto;
|
|
7
|
+
gap: 1rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.grid__row {
|
|
11
|
+
width: 100%;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
flex-wrap: nowrap;
|
|
15
|
+
height: auto;
|
|
16
|
+
gap: 1rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.grid__full {
|
|
20
|
+
width: 100%;
|
|
21
|
+
background: var(--item-color);
|
|
22
|
+
border-radius: var(--br);
|
|
23
|
+
border: 1px solid rgba(var(--item-color-rgb), 1.15);
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
overflow: visible;
|
|
26
|
+
position: relative;
|
|
27
|
+
padding: 2px;
|
|
28
|
+
margin: 8px 0;
|
|
29
|
+
box-shadow: 0 4px 0 rgba(var(--primary-color-rgb), 0.05);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.crmtitle {
|
|
33
|
+
border: none;
|
|
34
|
+
min-height: auto;
|
|
35
|
+
padding: 10px 20px;
|
|
36
|
+
margin: 0;
|
|
37
|
+
background: var(--tertiary-color);
|
|
38
|
+
border-radius: var(--br);
|
|
39
|
+
border: 1px solid rgba(var(--item-color-rgb), 1.15);
|
|
40
|
+
position: relative;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.crmtitle h1 {
|
|
44
|
+
font-weight: 700;
|
|
45
|
+
font-size: 1.45em;
|
|
46
|
+
margin: 0;
|
|
47
|
+
padding: 0.65rem 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.crmtitle h1 a {
|
|
51
|
+
text-decoration: none;
|
|
52
|
+
color: rgba(var(--secondary-color-rgb), 1.1);
|
|
53
|
+
font-weight: 300;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.crmtitle h1 svg {
|
|
57
|
+
color: rgba(var(--primary-color-rgb), 0.25);
|
|
58
|
+
position: relative;
|
|
59
|
+
top: 2px;
|
|
60
|
+
margin: 0 0.25rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.crmtitleSimple {
|
|
64
|
+
border: none;
|
|
65
|
+
min-height: auto;
|
|
66
|
+
padding: 0.65rem 1rem;
|
|
67
|
+
margin-bottom: 0.15rem;
|
|
68
|
+
background: var(--tertiary-color);
|
|
69
|
+
border-radius: var(--br);
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-wrap: nowrap;
|
|
73
|
+
justify-content: space-between;
|
|
74
|
+
align-items: center;
|
|
75
|
+
|
|
76
|
+
h1 {
|
|
77
|
+
font-size: 1.25rem;
|
|
78
|
+
margin: 0;
|
|
79
|
+
padding: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.titleInfo {
|
|
84
|
+
position: absolute;
|
|
85
|
+
right: 2em;
|
|
86
|
+
top: 24px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.titleInfo span {
|
|
90
|
+
font-size: 0.875em;
|
|
91
|
+
color: rgba(var(--paragraph-color-rgb), 0.65);
|
|
92
|
+
}
|