datastake-daf 0.6.715 → 0.6.717
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/favicon.ico +0 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/dist/components/index.js +84 -32
- package/dist/context/index.js +13 -10
- package/dist/hooks/index.js +4659 -23
- package/dist/layouts/index.js +75 -29
- package/dist/pages/index.js +67 -27
- package/dist/services/index.js +13 -10
- package/dist/style/datastake/datastake.css +2 -2
- package/dist/utils/index.js +66 -23
- package/package.json +1 -1
- package/public/assets/images/underDev.svg +7 -0
- package/src/@daf/core/components/AuthForm/index.jsx +7 -1
- package/src/@daf/core/components/Icon/configs/UnderDev.js +26 -11
- package/src/@daf/core/components/Screens/InformationUnavailable/InformationUnavailable.stories.js +0 -1
- package/src/@daf/core/components/Screens/InformationUnavailable/index.jsx +7 -3
- package/src/@daf/core/components/Screens/InformationUnavailable/style.js +2 -2
- package/src/@daf/layouts/AuthLayout/components/Navbar/index.jsx +3 -1
- package/src/@daf/layouts/AuthLayout/index.jsx +1 -1
- package/src/@daf/pages/dashboards/UserDashboard/config.js +27 -0
- package/src/@daf/pages/dashboards/UserDashboard/index.jsx +43 -0
- package/src/@daf/services/AuthenticationService.js +7 -3
- package/src/@daf/services/BaseService.js +1 -1
- package/src/@daf/services/helpers/BaseHTTPService.js +0 -3
- package/src/styles/datastake/datastake.css +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#000000",
|
|
24
|
+
"background_color": "#ffffff"
|
|
25
|
+
}
|
package/build/robots.txt
ADDED
package/dist/components/index.js
CHANGED
|
@@ -4313,29 +4313,72 @@ const config$5 = {
|
|
|
4313
4313
|
})
|
|
4314
4314
|
};
|
|
4315
4315
|
|
|
4316
|
-
const config$4 = {
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
fill: "
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4316
|
+
const config$4 = ({
|
|
4317
|
+
color = "black",
|
|
4318
|
+
currentColor
|
|
4319
|
+
} = {}) => {
|
|
4320
|
+
const strokeColor = currentColor || color;
|
|
4321
|
+
return {
|
|
4322
|
+
viewBox: "0 0 105 105",
|
|
4323
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
4324
|
+
width: "153",
|
|
4325
|
+
height: "116",
|
|
4326
|
+
viewBox: "0 0 153 116",
|
|
4327
|
+
fill: "none",
|
|
4328
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4329
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("g", {
|
|
4330
|
+
filter: "url(#filter0_f_60_283455)",
|
|
4331
|
+
children: /*#__PURE__*/jsxRuntime.jsx("ellipse", {
|
|
4332
|
+
cx: "76.2749",
|
|
4333
|
+
cy: "104.194",
|
|
4334
|
+
rx: "74.25",
|
|
4335
|
+
ry: "9.1125",
|
|
4336
|
+
fill: strokeColor,
|
|
4337
|
+
fillOpacity: "0.3"
|
|
4338
|
+
})
|
|
4339
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
4340
|
+
d: "M50.25 26.25L69.9375 45.9375L50.25 26.25Z",
|
|
4341
|
+
fill: "white"
|
|
4342
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
4343
|
+
d: "M37.125 8.75L50.25 13.125V26.25H37.125L32.75 13.125L37.125 8.75Z",
|
|
4344
|
+
fill: "white"
|
|
4345
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
4346
|
+
d: "M108.258 11.9919L96.7622 23.4878C95.0297 25.2203 94.1634 26.0866 93.8388 27.0856C93.5533 27.9642 93.5533 28.9108 93.8388 29.7894C94.1634 30.7884 95.0297 31.6547 96.7622 33.3872L97.8003 34.4253C99.5328 36.1578 100.399 37.0241 101.398 37.3487C102.277 37.6342 103.223 37.6342 104.102 37.3487C105.101 37.0241 105.967 36.1578 107.7 34.4253L118.453 23.6719C119.611 26.4901 120.25 29.5767 120.25 32.8125C120.25 46.1019 109.477 56.875 96.1875 56.875C94.5853 56.875 93.0197 56.7184 91.5052 56.4197C89.3783 56.0003 88.3149 55.7905 87.6702 55.8548C86.9848 55.923 86.647 56.0258 86.0397 56.3508C85.4685 56.6565 84.8955 57.2295 83.7495 58.3755L52.4375 89.6874C48.8131 93.3118 42.9369 93.3118 39.3125 89.6874C35.6881 86.0631 35.6881 80.1868 39.3125 76.5624L70.6245 45.2505C71.7705 44.1045 72.3435 43.5315 72.6492 42.9603C72.9742 42.353 73.077 42.0152 73.1452 41.3298C73.2095 40.6851 72.9997 39.6217 72.5803 37.4948C72.2816 35.9803 72.125 34.4147 72.125 32.8125C72.125 19.5231 82.8981 8.75 96.1875 8.75C100.587 8.75 104.71 9.93048 108.258 11.9919Z",
|
|
4347
|
+
fill: "white"
|
|
4348
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
4349
|
+
d: "M76.5002 65.6248L100.562 89.687C104.187 93.3114 110.063 93.3114 113.687 89.687C117.312 86.0627 117.312 80.1864 113.687 76.562L93.892 56.7669C92.4907 56.6343 91.1243 56.3815 89.8034 56.019C88.1013 55.5518 86.2341 55.8909 84.986 57.139L76.5002 65.6248Z",
|
|
4350
|
+
fill: "white"
|
|
4351
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
4352
|
+
d: "M50.25 26.25L69.9375 45.9375M50.25 26.25H37.125L32.75 13.125L37.125 8.75L50.25 13.125V26.25ZM108.258 11.9919L96.7622 23.4878C95.0297 25.2203 94.1634 26.0866 93.8388 27.0855C93.5533 27.9642 93.5533 28.9108 93.8388 29.7895C94.1634 30.7884 95.0297 31.6547 96.7622 33.3872L97.8003 34.4253C99.5328 36.1578 100.399 37.0241 101.398 37.3487C102.277 37.6342 103.223 37.6342 104.102 37.3487C105.101 37.0241 105.967 36.1578 107.7 34.4253L118.453 23.6719C119.611 26.4901 120.25 29.5767 120.25 32.8125C120.25 46.1019 109.477 56.875 96.1875 56.875C94.5853 56.875 93.0197 56.7184 91.5052 56.4197C89.3783 56.0003 88.3149 55.7905 87.6702 55.8548C86.9848 55.9231 86.647 56.0258 86.0397 56.3508C85.4685 56.6565 84.8955 57.2295 83.7495 58.3755L52.4375 89.6874C48.8131 93.3118 42.9369 93.3118 39.3125 89.6874C35.6881 86.0631 35.6881 80.1868 39.3125 76.5624L70.6245 45.2505C71.7705 44.1045 72.3435 43.5315 72.6492 42.9603C72.9742 42.353 73.0769 42.0152 73.1452 41.3298C73.2095 40.6851 72.9997 39.6217 72.5803 37.4948C72.2816 35.9803 72.125 34.4147 72.125 32.8125C72.125 19.5231 82.8981 8.75 96.1875 8.75C100.587 8.75 104.71 9.93048 108.258 11.9919ZM76.5002 65.6248L100.562 89.687C104.187 93.3114 110.063 93.3114 113.687 89.687C117.312 86.0627 117.312 80.1864 113.687 76.562L93.892 56.7669C92.4907 56.6343 91.1243 56.3815 89.8034 56.019C88.1013 55.5518 86.2341 55.8909 84.986 57.139L76.5002 65.6248Z",
|
|
4353
|
+
stroke: strokeColor,
|
|
4354
|
+
strokeWidth: "3.6",
|
|
4355
|
+
strokeLinecap: "round",
|
|
4356
|
+
strokeLinejoin: "round"
|
|
4357
|
+
}), /*#__PURE__*/jsxRuntime.jsx("defs", {
|
|
4358
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("filter", {
|
|
4359
|
+
id: "filter0_f_60_283455",
|
|
4360
|
+
x: "-9.75132e-05",
|
|
4361
|
+
y: "93.0561",
|
|
4362
|
+
width: "152.55",
|
|
4363
|
+
height: "22.2751",
|
|
4364
|
+
filterUnits: "userSpaceOnUse",
|
|
4365
|
+
colorInterpolationFilters: "sRGB",
|
|
4366
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("feFlood", {
|
|
4367
|
+
floodOpacity: "0",
|
|
4368
|
+
result: "BackgroundImageFix"
|
|
4369
|
+
}), /*#__PURE__*/jsxRuntime.jsx("feBlend", {
|
|
4370
|
+
mode: "normal",
|
|
4371
|
+
in: "SourceGraphic",
|
|
4372
|
+
in2: "BackgroundImageFix",
|
|
4373
|
+
result: "shape"
|
|
4374
|
+
}), /*#__PURE__*/jsxRuntime.jsx("feGaussianBlur", {
|
|
4375
|
+
stdDeviation: "1.0125",
|
|
4376
|
+
result: "effect1_foregroundBlur_60_283455"
|
|
4377
|
+
})]
|
|
4378
|
+
})
|
|
4379
|
+
})]
|
|
4380
|
+
})
|
|
4381
|
+
};
|
|
4339
4382
|
};
|
|
4340
4383
|
|
|
4341
4384
|
const config$3 = {
|
|
@@ -40625,7 +40668,13 @@ function AuthForm(_ref) {
|
|
|
40625
40668
|
console.error("Please fix the validation errors before continuing.");
|
|
40626
40669
|
}
|
|
40627
40670
|
};
|
|
40628
|
-
const prev = () =>
|
|
40671
|
+
const prev = () => {
|
|
40672
|
+
// Save current step's values before going back (without validation)
|
|
40673
|
+
const fieldNames = currentFields.map(f => f.name);
|
|
40674
|
+
const currentValues = formInstance.getFieldsValue(fieldNames);
|
|
40675
|
+
setAllFormValues(prev => _objectSpread2(_objectSpread2({}, prev), currentValues));
|
|
40676
|
+
setCurrentStep(prev => prev - 1);
|
|
40677
|
+
};
|
|
40629
40678
|
const handleSubmit = async values => {
|
|
40630
40679
|
try {
|
|
40631
40680
|
await formInstance.validateFields();
|
|
@@ -41118,12 +41167,9 @@ class BaseHTTPService {
|
|
|
41118
41167
|
this._axiosInitialized = false;
|
|
41119
41168
|
}
|
|
41120
41169
|
_ensureAxiosInitialized() {
|
|
41121
|
-
console.log('[BaseHTTPService] Checking axios initialization:', this._axiosInitialized);
|
|
41122
41170
|
if (!this._axiosInitialized) {
|
|
41123
|
-
console.log('[BaseHTTPService] Setting up axios...');
|
|
41124
41171
|
this.setupAxios();
|
|
41125
41172
|
this._axiosInitialized = true;
|
|
41126
|
-
console.log('[BaseHTTPService] Axios setup complete!');
|
|
41127
41173
|
}
|
|
41128
41174
|
}
|
|
41129
41175
|
setupAxios() {
|
|
@@ -41448,7 +41494,7 @@ class BaseService extends BaseHTTPService {
|
|
|
41448
41494
|
getHeaders: () => {
|
|
41449
41495
|
const config = getServicesConfig();
|
|
41450
41496
|
return {
|
|
41451
|
-
Language:
|
|
41497
|
+
Language: StorageManager.get('datastakeLng') || 'en',
|
|
41452
41498
|
'ngrok-skip-browser-warning': true,
|
|
41453
41499
|
Application: config.application
|
|
41454
41500
|
};
|
|
@@ -55167,7 +55213,7 @@ const Style$a = dt.div`
|
|
|
55167
55213
|
h1 {
|
|
55168
55214
|
font-size: 28px;
|
|
55169
55215
|
font-weight: 600;
|
|
55170
|
-
color: ${props => isUnderDevelopmentType(props.backgroundType) ? '#003435' : '#384250'};
|
|
55216
|
+
color: ${props => props.titleColor || (isUnderDevelopmentType(props.backgroundType) ? '#003435' : '#384250')};
|
|
55171
55217
|
margin-bottom: 6px;
|
|
55172
55218
|
line-height: 32px;
|
|
55173
55219
|
letter-spacing: 0%;
|
|
@@ -55175,7 +55221,7 @@ const Style$a = dt.div`
|
|
|
55175
55221
|
|
|
55176
55222
|
p {
|
|
55177
55223
|
font-size: 16px;
|
|
55178
|
-
color: ${props => isUnderDevelopmentType(props.backgroundType) ? '#016C6E' : '#6C737F'};
|
|
55224
|
+
color: ${props => props.contentColor || (isUnderDevelopmentType(props.backgroundType) ? '#016C6E' : '#6C737F')};
|
|
55179
55225
|
font-weight: 500;
|
|
55180
55226
|
line-height: 22px;
|
|
55181
55227
|
letter-spacing: 0%;
|
|
@@ -55188,7 +55234,9 @@ const InformationUnavailable = _ref => {
|
|
|
55188
55234
|
title,
|
|
55189
55235
|
content,
|
|
55190
55236
|
backgroundType = 'default',
|
|
55191
|
-
icon
|
|
55237
|
+
icon,
|
|
55238
|
+
titleColor,
|
|
55239
|
+
contentColor
|
|
55192
55240
|
} = _ref;
|
|
55193
55241
|
const developmentTypes = ['analysis', 'table', 'field', 'globe', 'chart', 'scout'];
|
|
55194
55242
|
const isUnderDevelopment = developmentTypes.includes(backgroundType);
|
|
@@ -55200,6 +55248,8 @@ const InformationUnavailable = _ref => {
|
|
|
55200
55248
|
return /*#__PURE__*/jsxRuntime.jsxs(Style$a, {
|
|
55201
55249
|
backgroundType: backgroundType,
|
|
55202
55250
|
backgroundImage: backgroundImage,
|
|
55251
|
+
titleColor: titleColor,
|
|
55252
|
+
contentColor: contentColor,
|
|
55203
55253
|
children: [/*#__PURE__*/jsxRuntime.jsx("img", {
|
|
55204
55254
|
src: icon,
|
|
55205
55255
|
alt: "information-unavailable"
|
|
@@ -55218,7 +55268,9 @@ InformationUnavailable.propTypes = {
|
|
|
55218
55268
|
title: PropTypes__default["default"].string.optional,
|
|
55219
55269
|
content: PropTypes__default["default"].string.optional,
|
|
55220
55270
|
backgroundType: PropTypes__default["default"].oneOf(['analysis', 'table', 'field', 'globe', 'chart', 'scout', 'default']),
|
|
55221
|
-
icon: PropTypes__default["default"].string
|
|
55271
|
+
icon: PropTypes__default["default"].string,
|
|
55272
|
+
titleColor: PropTypes__default["default"].string,
|
|
55273
|
+
contentColor: PropTypes__default["default"].string
|
|
55222
55274
|
};
|
|
55223
55275
|
|
|
55224
55276
|
function AIQuery() {
|
package/dist/context/index.js
CHANGED
|
@@ -580,12 +580,9 @@ class BaseHTTPService {
|
|
|
580
580
|
this._axiosInitialized = false;
|
|
581
581
|
}
|
|
582
582
|
_ensureAxiosInitialized() {
|
|
583
|
-
console.log('[BaseHTTPService] Checking axios initialization:', this._axiosInitialized);
|
|
584
583
|
if (!this._axiosInitialized) {
|
|
585
|
-
console.log('[BaseHTTPService] Setting up axios...');
|
|
586
584
|
this.setupAxios();
|
|
587
585
|
this._axiosInitialized = true;
|
|
588
|
-
console.log('[BaseHTTPService] Axios setup complete!');
|
|
589
586
|
}
|
|
590
587
|
}
|
|
591
588
|
setupAxios() {
|
|
@@ -910,7 +907,7 @@ class BaseService extends BaseHTTPService {
|
|
|
910
907
|
getHeaders: () => {
|
|
911
908
|
const config = getServicesConfig();
|
|
912
909
|
return {
|
|
913
|
-
Language:
|
|
910
|
+
Language: StorageManager$1.get('datastakeLng') || 'en',
|
|
914
911
|
'ngrok-skip-browser-warning': true,
|
|
915
912
|
Application: config.application
|
|
916
913
|
};
|
|
@@ -972,7 +969,7 @@ function createLazyService(ServiceClass) {
|
|
|
972
969
|
class AuthenticationService extends BaseService {
|
|
973
970
|
register(form) {
|
|
974
971
|
return this.apiPost({
|
|
975
|
-
url: '/
|
|
972
|
+
url: '/register',
|
|
976
973
|
data: form
|
|
977
974
|
});
|
|
978
975
|
}
|
|
@@ -1025,10 +1022,10 @@ class AuthenticationService extends BaseService {
|
|
|
1025
1022
|
});
|
|
1026
1023
|
}
|
|
1027
1024
|
verify(code) {
|
|
1028
|
-
return this.
|
|
1025
|
+
return this.apiGet({
|
|
1029
1026
|
url: '/register/confirm',
|
|
1030
|
-
|
|
1031
|
-
code
|
|
1027
|
+
params: {
|
|
1028
|
+
token: code
|
|
1032
1029
|
},
|
|
1033
1030
|
isDaf: true
|
|
1034
1031
|
});
|
|
@@ -1150,13 +1147,19 @@ class AuthenticationService extends BaseService {
|
|
|
1150
1147
|
});
|
|
1151
1148
|
}
|
|
1152
1149
|
getFormOptions({
|
|
1153
|
-
references = ['countries', 'categoriesOptions', 'subCategoriesOptions', 'locationCategoriesOptions', 'documentationTypesOptions']
|
|
1150
|
+
references = ['countries', 'categoriesOptions', 'subCategoriesOptions', 'locationCategoriesOptions', 'documentationTypesOptions'],
|
|
1151
|
+
language,
|
|
1152
|
+
...params
|
|
1154
1153
|
}) {
|
|
1154
|
+
console.log({
|
|
1155
|
+
language
|
|
1156
|
+
});
|
|
1155
1157
|
return this.apiPost({
|
|
1156
1158
|
url: '/query/form-options',
|
|
1157
1159
|
isDaf: true,
|
|
1158
1160
|
data: {
|
|
1159
|
-
references
|
|
1161
|
+
references,
|
|
1162
|
+
language
|
|
1160
1163
|
}
|
|
1161
1164
|
});
|
|
1162
1165
|
}
|