datastake-daf 0.6.700 → 0.6.701
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 +448 -428
- package/dist/hooks/index.js +5328 -58
- package/dist/layouts/index.js +448 -428
- package/dist/pages/index.js +12767 -0
- package/dist/services/index.js +60 -0
- package/dist/utils/index.js +448 -428
- package/package.json +1 -1
- package/rollup.config.js +20 -0
- package/src/@daf/core/components/Icon/configs/Onboarding.js +12 -0
- package/src/@daf/core/components/Icon/configs/index.js +2 -0
- package/src/@daf/hooks/useSources.js +29 -0
- package/src/@daf/hooks/useWidgetFetch.js +44 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/ChartsContainer/components/GenderDistribution/config.js +17 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/ChartsContainer/components/GenderDistribution/index.js +128 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/ChartsContainer/components/Identification/hook.js +79 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/ChartsContainer/components/Identification/index.js +64 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/ChartsContainer/components/Locations/config.js +9 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/ChartsContainer/components/Locations/index.js +103 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/ChartsContainer/index.js +82 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/KeyIndicators/config.js +88 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/KeyIndicators/index.js +54 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/SupplyChainMap/index.js +70 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/TradeRelationships/index.js +48 -0
- package/src/@daf/pages/dashboards/SupplyChain/config.js +216 -0
- package/src/@daf/pages/dashboards/SupplyChain/index.jsx +96 -0
- package/src/@daf/services/DashboardService.js +14 -0
- package/src/@daf/services/SourceService.js +36 -0
- package/src/hooks.js +3 -2
- package/src/pages.js +1 -0
- package/src/services.js +3 -1
- package/dist/style/datastake/mapbox-gl.css +0 -330
package/dist/services/index.js
CHANGED
|
@@ -1146,16 +1146,76 @@ class UserService extends BaseService {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
var UserService$1 = createLazyService(UserService);
|
|
1148
1148
|
|
|
1149
|
+
class SourceService extends BaseService {
|
|
1150
|
+
get(tab, filters) {
|
|
1151
|
+
const {
|
|
1152
|
+
page,
|
|
1153
|
+
pageSize,
|
|
1154
|
+
search,
|
|
1155
|
+
searchParams,
|
|
1156
|
+
...rest
|
|
1157
|
+
} = filters;
|
|
1158
|
+
const params = {
|
|
1159
|
+
filters: rest,
|
|
1160
|
+
pagination: {
|
|
1161
|
+
skip: page,
|
|
1162
|
+
take: pageSize
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
if (search && searchParams.length > 0) {
|
|
1166
|
+
params.search = {
|
|
1167
|
+
qs: search,
|
|
1168
|
+
fields: searchParams
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
return this.apiGet({
|
|
1172
|
+
url: "/partner",
|
|
1173
|
+
isApp: true,
|
|
1174
|
+
params
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
getSources({
|
|
1178
|
+
type,
|
|
1179
|
+
id
|
|
1180
|
+
}) {
|
|
1181
|
+
return this.apiGet({
|
|
1182
|
+
url: `/${type}/sources-for-subject/${id}`
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
var SourceService$1 = createLazyService(SourceService);
|
|
1187
|
+
|
|
1188
|
+
class DashboardService extends BaseService {
|
|
1189
|
+
getWidget({
|
|
1190
|
+
url,
|
|
1191
|
+
params = {},
|
|
1192
|
+
filters = {},
|
|
1193
|
+
basepath = "dashboard"
|
|
1194
|
+
}) {
|
|
1195
|
+
return this.apiGet({
|
|
1196
|
+
url: `/${basepath}${url}`,
|
|
1197
|
+
params: {
|
|
1198
|
+
...params,
|
|
1199
|
+
...filters
|
|
1200
|
+
},
|
|
1201
|
+
isApp: true
|
|
1202
|
+
});
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
var DashboardService$1 = createLazyService(DashboardService);
|
|
1206
|
+
|
|
1149
1207
|
exports.AdminService = AdminService$1;
|
|
1150
1208
|
exports.AuthenticationService = AuthenticationService$1;
|
|
1151
1209
|
exports.BaseHTTPService = BaseHTTPService;
|
|
1152
1210
|
exports.BaseService = BaseService;
|
|
1153
1211
|
exports.ChannelsService = ChannelsService$1;
|
|
1212
|
+
exports.DashboardService = DashboardService$1;
|
|
1154
1213
|
exports.DataStoreService = DataStoreService$1;
|
|
1155
1214
|
exports.ErrorHandler = ErrorHandler;
|
|
1156
1215
|
exports.ErrorService = ErrorService;
|
|
1157
1216
|
exports.NotificationService = NotificationService$1;
|
|
1158
1217
|
exports.QueryService = QueryService$1;
|
|
1218
|
+
exports.SourceService = SourceService$1;
|
|
1159
1219
|
exports.UserService = UserService$1;
|
|
1160
1220
|
exports.configureServices = configureServices;
|
|
1161
1221
|
exports.createLazyService = createLazyService;
|