datastake-daf 0.6.718 → 0.6.719
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/dist/components/index.js +442 -492
- package/dist/hooks/index.js +19 -4658
- package/dist/layouts/index.js +432 -455
- package/dist/pages/index.js +442 -492
- package/dist/style/datastake/mapbox-gl.css +330 -0
- package/dist/utils/index.js +432 -456
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Widget/index.jsx +5 -25
- package/src/@daf/core/components/Icon/configs/index.js +0 -4
- package/src/@daf/core/components/Icon/configs/partnerIcon.js +0 -8
- package/src/@daf/core/components/Icon/configs/userIcon.js +0 -8
package/package.json
CHANGED
|
@@ -35,7 +35,6 @@ export default function Widget({
|
|
|
35
35
|
|
|
36
36
|
expandable = false,
|
|
37
37
|
defaultExpanded,
|
|
38
|
-
isCollapsable = false,
|
|
39
38
|
defaultCollapsed = false,
|
|
40
39
|
onExpandChange,
|
|
41
40
|
description,
|
|
@@ -74,7 +73,7 @@ export default function Widget({
|
|
|
74
73
|
"flex-1",
|
|
75
74
|
className,
|
|
76
75
|
!!tabsConfig && "with-tabs",
|
|
77
|
-
|
|
76
|
+
isCollapsed && "collapsed-widget",
|
|
78
77
|
])}
|
|
79
78
|
>
|
|
80
79
|
{loading && fullWidgetLoading && <WidgetLoader background="white" />}
|
|
@@ -118,27 +117,11 @@ export default function Widget({
|
|
|
118
117
|
|
|
119
118
|
{addedHeaderFirst && addedHeader}
|
|
120
119
|
|
|
121
|
-
{isCollapsable && (
|
|
122
|
-
<div className="flex justify-content-end">
|
|
123
|
-
<Button
|
|
124
|
-
className="squareIconButton no-min-width"
|
|
125
|
-
style={{height: '32px', width: '32px'}}
|
|
126
|
-
onClick={handleCollapseToggle}
|
|
127
|
-
icon={
|
|
128
|
-
isCollapsed ? (
|
|
129
|
-
<RightOutlined style={{ width: 16 }} />
|
|
130
|
-
) : (
|
|
131
|
-
<DownOutlined style={{ width: 16 }} />
|
|
132
|
-
)
|
|
133
|
-
}
|
|
134
|
-
/>
|
|
135
|
-
</div>
|
|
136
|
-
)}
|
|
137
120
|
|
|
138
121
|
{expandable ? (
|
|
139
122
|
<div
|
|
140
123
|
className={formatClassname([
|
|
141
|
-
!(filtersConfig || addedHeaderFirst
|
|
124
|
+
!(filtersConfig || addedHeaderFirst) &&
|
|
142
125
|
"flex-1",
|
|
143
126
|
"flex justify-content-end",
|
|
144
127
|
])}
|
|
@@ -146,17 +129,15 @@ export default function Widget({
|
|
|
146
129
|
<div className="flex flex-column" {...getToggleProps()}>
|
|
147
130
|
<Button
|
|
148
131
|
className="squareIconButton no-min-width"
|
|
149
|
-
style={{height: '32px', width: '32px'}}
|
|
132
|
+
style={{height: '32px', width: '32px', justifyContent: 'center', alignItems: 'center', display: 'flex'}}
|
|
150
133
|
icon={
|
|
151
134
|
!isExpanded ? (
|
|
152
135
|
<RightOutlined
|
|
153
|
-
style={{ width: 16
|
|
136
|
+
style={{ width: 16 }}
|
|
154
137
|
/>
|
|
155
138
|
) : (
|
|
156
|
-
//<PlusOutlined style={{width: 10}} />
|
|
157
|
-
//<MinusOutlined style={{ width: 10 }} />
|
|
158
139
|
<DownOutlined
|
|
159
|
-
style={{ width: 16
|
|
140
|
+
style={{ width: 16 }}
|
|
160
141
|
/>
|
|
161
142
|
)
|
|
162
143
|
}
|
|
@@ -217,7 +198,6 @@ Widget.propTypes = {
|
|
|
217
198
|
expandable: PropTypes.any,
|
|
218
199
|
defaultExpanded: PropTypes.any,
|
|
219
200
|
addedHeaderFirst: PropTypes.bool,
|
|
220
|
-
isCollapsable: PropTypes.bool,
|
|
221
201
|
defaultCollapsed: PropTypes.bool,
|
|
222
202
|
onExpandChange: PropTypes.func,
|
|
223
203
|
description: PropTypes.string,
|
|
@@ -214,8 +214,6 @@ import ArcGis from "./ArcGis";
|
|
|
214
214
|
import AppAdmin from "./AppAdmin";
|
|
215
215
|
import Onboarding from "./Onboarding";
|
|
216
216
|
import UnderDev from "./UnderDev";
|
|
217
|
-
import userIcon from "./userIcon";
|
|
218
|
-
import partnerIcon from "./partnerIcon";
|
|
219
217
|
|
|
220
218
|
const config = {
|
|
221
219
|
AppAdmin,
|
|
@@ -434,8 +432,6 @@ const config = {
|
|
|
434
432
|
Straatos,
|
|
435
433
|
ArcGis,
|
|
436
434
|
UnderDev,
|
|
437
|
-
userIcon,
|
|
438
|
-
partnerIcon,
|
|
439
435
|
};
|
|
440
436
|
|
|
441
437
|
export default config;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
viewBox: "0 0 18 14",
|
|
3
|
-
children: (
|
|
4
|
-
<path d="M5.08333 2.53462H0.75V8.75H1.50141C2.09639 8.75 2.67622 8.93763 3.15841 9.2862L7.44192 12.3827C7.74723 12.6034 8.15773 12.6105 8.47051 12.4006C8.95317 12.0765 9.00645 11.3867 8.5793 10.9924L6.81667 9.36538L9.68494 11.9601C9.95925 12.2082 10.366 12.2412 10.6767 12.0404C11.0996 11.7672 11.1772 11.1801 10.8398 10.8064L9.15 8.93462L11.4946 11.4923C11.828 11.8561 12.3838 11.9055 12.7762 11.6063C13.2258 11.2635 13.2802 10.607 12.8932 10.1948L11.0167 8.19615L13.3903 10.686C13.711 11.0223 14.2308 11.0702 14.6075 10.7981C15.0685 10.4651 15.1251 9.79991 14.727 9.39379L14.2167 8.87308M16.75 8.57952V2.79983M16.75 8.57952C16.75 8.57952 16.75 5.25112 16.75 2.79983M16.75 8.57952C16.75 8.72136 16.662 8.85066 16.5235 8.91219L15.2216 9.49081C15.0608 9.56228 14.8682 9.52676 14.7494 9.40375L8.66241 3.09692C8.52364 2.95315 8.28848 2.93195 8.1222 3.04823L7.31667 3.61154C6.63455 4.08854 5.73081 4.19895 4.93775 3.90217L4.14065 3.60388C3.96864 3.53951 3.93837 3.32657 4.08656 3.22341L6.64053 1.44562C7.4038 0.914316 8.33376 0.75 9.28973 0.75H9.89529C10.373 0.75 10.8476 0.821816 11.3003 0.962629L16.4777 2.44993C16.6404 2.50054 16.75 2.64134 16.75 2.79983" stroke="#722ED1" strokeWidth="1.5" strokeLinejoin="round"/>
|
|
5
|
-
),
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default config;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
viewBox: "0 0 19 19",
|
|
3
|
-
children: (
|
|
4
|
-
<path d="M2.41669 17.2645C2.91883 17.4167 3.59708 17.4167 4.75 17.4167H13.4167C14.5696 17.4167 15.2478 17.4167 15.75 17.2645M2.41669 17.2645C2.30902 17.2319 2.20944 17.1923 2.11502 17.1442C1.64462 16.9045 1.26217 16.522 1.02248 16.0516C0.75 15.5169 0.75 14.8168 0.75 13.4167V4.75C0.75 3.34987 0.75 2.6498 1.02248 2.11502C1.26217 1.64462 1.64462 1.26217 2.11502 1.02248C2.6498 0.75 3.34987 0.75 4.75 0.75H13.4167C14.8168 0.75 15.5169 0.75 16.0516 1.02248C16.522 1.26217 16.9045 1.64462 17.1442 2.11502C17.4167 2.6498 17.4167 3.34987 17.4167 4.75V13.4167C17.4167 14.8168 17.4167 15.5169 17.1442 16.0516C16.9045 16.522 16.522 16.9045 16.0516 17.1442C15.9572 17.1923 15.8576 17.2319 15.75 17.2645M2.41669 17.2645C2.41696 16.5901 2.42101 16.2332 2.48072 15.933C2.74374 14.6107 3.7774 13.5771 5.0997 13.314C5.4217 13.25 5.80891 13.25 6.58333 13.25H11.5833C12.3578 13.25 12.745 13.25 13.067 13.314C14.3893 13.5771 15.4229 14.6107 15.686 15.933C15.7457 16.2332 15.7497 16.5901 15.75 17.2645M12.4167 7C12.4167 8.84095 10.9243 10.3333 9.08333 10.3333C7.24238 10.3333 5.75 8.84095 5.75 7C5.75 5.15905 7.24238 3.66667 9.08333 3.66667C10.9243 3.66667 12.4167 5.15905 12.4167 7Z" stroke="#08979C" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
|
|
5
|
-
),
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default config;
|