@bygd/nc-report-ui 0.1.8 → 0.1.9
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/app/esm/index.js
CHANGED
|
@@ -627,7 +627,7 @@ var reactIs$2 = {exports: {}};
|
|
|
627
627
|
|
|
628
628
|
var reactIs_production_min$1 = {};
|
|
629
629
|
|
|
630
|
-
/** @license React
|
|
630
|
+
/** @license React v16.13.1
|
|
631
631
|
* react-is.production.min.js
|
|
632
632
|
*
|
|
633
633
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -641,12 +641,12 @@ var hasRequiredReactIs_production_min$1;
|
|
|
641
641
|
function requireReactIs_production_min$1 () {
|
|
642
642
|
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
643
643
|
hasRequiredReactIs_production_min$1 = 1;
|
|
644
|
-
var b=
|
|
645
|
-
|
|
646
|
-
function
|
|
647
|
-
reactIs_production_min$1.Suspense=
|
|
648
|
-
reactIs_production_min$1.
|
|
649
|
-
reactIs_production_min$1.
|
|
644
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
645
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
646
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$1.AsyncMode=l;reactIs_production_min$1.ConcurrentMode=m;reactIs_production_min$1.ContextConsumer=k;reactIs_production_min$1.ContextProvider=h;reactIs_production_min$1.Element=c;reactIs_production_min$1.ForwardRef=n;reactIs_production_min$1.Fragment=e;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r;reactIs_production_min$1.Portal=d;
|
|
647
|
+
reactIs_production_min$1.Profiler=g;reactIs_production_min$1.StrictMode=f;reactIs_production_min$1.Suspense=p;reactIs_production_min$1.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$1.isConcurrentMode=A;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n};reactIs_production_min$1.isFragment=function(a){return z(a)===e};reactIs_production_min$1.isLazy=function(a){return z(a)===t};
|
|
648
|
+
reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d};reactIs_production_min$1.isProfiler=function(a){return z(a)===g};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f};reactIs_production_min$1.isSuspense=function(a){return z(a)===p};
|
|
649
|
+
reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$1.typeOf=z;
|
|
650
650
|
return reactIs_production_min$1;
|
|
651
651
|
}
|
|
652
652
|
|
|
@@ -11339,6 +11339,10 @@ const apiClient = axios.create({
|
|
|
11339
11339
|
}
|
|
11340
11340
|
});
|
|
11341
11341
|
const Api = {
|
|
11342
|
+
setAuth(token) {
|
|
11343
|
+
if (!token) return;
|
|
11344
|
+
apiClient.defaults.headers.common['Authorization'] = `Bearer ${token}`;
|
|
11345
|
+
},
|
|
11342
11346
|
getDashboard: async ({
|
|
11343
11347
|
id
|
|
11344
11348
|
}) => {
|
|
@@ -45014,7 +45018,7 @@ var Container$1 = withStyles(styles, {
|
|
|
45014
45018
|
})(Container);
|
|
45015
45019
|
|
|
45016
45020
|
function Dashboard({
|
|
45017
|
-
id,
|
|
45021
|
+
id = "sample_dashboard",
|
|
45018
45022
|
auth,
|
|
45019
45023
|
params
|
|
45020
45024
|
}) {
|
|
@@ -45026,6 +45030,8 @@ function Dashboard({
|
|
|
45026
45030
|
const channel = useChannel();
|
|
45027
45031
|
useFilterManager(channel);
|
|
45028
45032
|
const init = async () => {
|
|
45033
|
+
Api.setAuth(auth?.access_token);
|
|
45034
|
+
|
|
45029
45035
|
// get dashboard entity
|
|
45030
45036
|
const dashboardTemp = await Api.getDashboard({
|
|
45031
45037
|
id: id
|
|
@@ -143,6 +143,10 @@ const apiClient = axios__default.default.create({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
const Api = {
|
|
146
|
+
setAuth(token) {
|
|
147
|
+
if (!token) return;
|
|
148
|
+
apiClient.defaults.headers.common['Authorization'] = `Bearer ${token}`;
|
|
149
|
+
},
|
|
146
150
|
getDashboard: async ({
|
|
147
151
|
id
|
|
148
152
|
}) => {
|
|
@@ -977,7 +981,7 @@ var Chart = ({
|
|
|
977
981
|
};
|
|
978
982
|
|
|
979
983
|
function Dashboard({
|
|
980
|
-
id,
|
|
984
|
+
id = "sample_dashboard",
|
|
981
985
|
auth,
|
|
982
986
|
params
|
|
983
987
|
}) {
|
|
@@ -989,6 +993,8 @@ function Dashboard({
|
|
|
989
993
|
const channel = useChannel();
|
|
990
994
|
useFilterManager(channel);
|
|
991
995
|
const init = async () => {
|
|
996
|
+
Api.setAuth(auth?.access_token);
|
|
997
|
+
|
|
992
998
|
// get dashboard entity
|
|
993
999
|
const dashboardTemp = await Api.getDashboard({
|
|
994
1000
|
id: id
|
|
@@ -99,6 +99,10 @@ const apiClient = axios.create({
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
const Api = {
|
|
102
|
+
setAuth(token) {
|
|
103
|
+
if (!token) return;
|
|
104
|
+
apiClient.defaults.headers.common['Authorization'] = `Bearer ${token}`;
|
|
105
|
+
},
|
|
102
106
|
getDashboard: async ({
|
|
103
107
|
id
|
|
104
108
|
}) => {
|
|
@@ -933,7 +937,7 @@ var Chart = ({
|
|
|
933
937
|
};
|
|
934
938
|
|
|
935
939
|
function Dashboard({
|
|
936
|
-
id,
|
|
940
|
+
id = "sample_dashboard",
|
|
937
941
|
auth,
|
|
938
942
|
params
|
|
939
943
|
}) {
|
|
@@ -945,6 +949,8 @@ function Dashboard({
|
|
|
945
949
|
const channel = useChannel();
|
|
946
950
|
useFilterManager(channel);
|
|
947
951
|
const init = async () => {
|
|
952
|
+
Api.setAuth(auth?.access_token);
|
|
953
|
+
|
|
948
954
|
// get dashboard entity
|
|
949
955
|
const dashboardTemp = await Api.getDashboard({
|
|
950
956
|
id: id
|
|
@@ -202,7 +202,7 @@ var _BYGD_NC_REPORT_UI = (function () {
|
|
|
202
202
|
|
|
203
203
|
var reactIs_production_min$1 = {};
|
|
204
204
|
|
|
205
|
-
/** @license React
|
|
205
|
+
/** @license React v16.13.1
|
|
206
206
|
* react-is.production.min.js
|
|
207
207
|
*
|
|
208
208
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -216,12 +216,12 @@ var _BYGD_NC_REPORT_UI = (function () {
|
|
|
216
216
|
function requireReactIs_production_min$1 () {
|
|
217
217
|
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
218
218
|
hasRequiredReactIs_production_min$1 = 1;
|
|
219
|
-
var b=
|
|
220
|
-
|
|
221
|
-
function
|
|
222
|
-
reactIs_production_min$1.Suspense=
|
|
223
|
-
reactIs_production_min$1.
|
|
224
|
-
reactIs_production_min$1.
|
|
219
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
220
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
221
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$1.AsyncMode=l;reactIs_production_min$1.ConcurrentMode=m;reactIs_production_min$1.ContextConsumer=k;reactIs_production_min$1.ContextProvider=h;reactIs_production_min$1.Element=c;reactIs_production_min$1.ForwardRef=n;reactIs_production_min$1.Fragment=e;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r;reactIs_production_min$1.Portal=d;
|
|
222
|
+
reactIs_production_min$1.Profiler=g;reactIs_production_min$1.StrictMode=f;reactIs_production_min$1.Suspense=p;reactIs_production_min$1.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$1.isConcurrentMode=A;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n};reactIs_production_min$1.isFragment=function(a){return z(a)===e};reactIs_production_min$1.isLazy=function(a){return z(a)===t};
|
|
223
|
+
reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d};reactIs_production_min$1.isProfiler=function(a){return z(a)===g};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f};reactIs_production_min$1.isSuspense=function(a){return z(a)===p};
|
|
224
|
+
reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$1.typeOf=z;
|
|
225
225
|
return reactIs_production_min$1;
|
|
226
226
|
}
|
|
227
227
|
|
|
@@ -10914,6 +10914,10 @@ var _BYGD_NC_REPORT_UI = (function () {
|
|
|
10914
10914
|
}
|
|
10915
10915
|
});
|
|
10916
10916
|
const Api = {
|
|
10917
|
+
setAuth(token) {
|
|
10918
|
+
if (!token) return;
|
|
10919
|
+
apiClient.defaults.headers.common['Authorization'] = `Bearer ${token}`;
|
|
10920
|
+
},
|
|
10917
10921
|
getDashboard: async ({
|
|
10918
10922
|
id
|
|
10919
10923
|
}) => {
|
|
@@ -44999,7 +45003,7 @@ export default theme;`;
|
|
|
44999
45003
|
})(Container);
|
|
45000
45004
|
|
|
45001
45005
|
function Dashboard({
|
|
45002
|
-
id,
|
|
45006
|
+
id = "sample_dashboard",
|
|
45003
45007
|
auth,
|
|
45004
45008
|
params
|
|
45005
45009
|
}) {
|
|
@@ -45011,6 +45015,8 @@ export default theme;`;
|
|
|
45011
45015
|
const channel = useChannel();
|
|
45012
45016
|
useFilterManager(channel);
|
|
45013
45017
|
const init = async () => {
|
|
45018
|
+
Api.setAuth(auth?.access_token);
|
|
45019
|
+
|
|
45014
45020
|
// get dashboard entity
|
|
45015
45021
|
const dashboardTemp = await Api.getDashboard({
|
|
45016
45022
|
id: id
|