@bygd/nc-report-ui 0.1.8 → 0.1.10
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 +17 -8
- package/dist/default/cjs/index.cjs +10 -1
- package/dist/default/esm/index.js +10 -1
- package/dist/default/iife/index.js +17 -8
- package/package.json +1 -1
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,13 @@ const apiClient = axios.create({
|
|
|
11339
11339
|
}
|
|
11340
11340
|
});
|
|
11341
11341
|
const Api = {
|
|
11342
|
+
setAuth(auth) {
|
|
11343
|
+
this.auth = auth;
|
|
11344
|
+
const token = auth?.token;
|
|
11345
|
+
const accessToken = token?.accessToken;
|
|
11346
|
+
if (!accessToken) return;
|
|
11347
|
+
apiClient.defaults.headers.common['Authorization'] = `Bearer ${accessToken}`;
|
|
11348
|
+
},
|
|
11342
11349
|
getDashboard: async ({
|
|
11343
11350
|
id
|
|
11344
11351
|
}) => {
|
|
@@ -45014,7 +45021,7 @@ var Container$1 = withStyles(styles, {
|
|
|
45014
45021
|
})(Container);
|
|
45015
45022
|
|
|
45016
45023
|
function Dashboard({
|
|
45017
|
-
id,
|
|
45024
|
+
id = "sample_dashboard",
|
|
45018
45025
|
auth,
|
|
45019
45026
|
params
|
|
45020
45027
|
}) {
|
|
@@ -45026,6 +45033,8 @@ function Dashboard({
|
|
|
45026
45033
|
const channel = useChannel();
|
|
45027
45034
|
useFilterManager(channel);
|
|
45028
45035
|
const init = async () => {
|
|
45036
|
+
Api.setAuth(auth);
|
|
45037
|
+
|
|
45029
45038
|
// get dashboard entity
|
|
45030
45039
|
const dashboardTemp = await Api.getDashboard({
|
|
45031
45040
|
id: id
|
|
@@ -143,6 +143,13 @@ const apiClient = axios__default.default.create({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
const Api = {
|
|
146
|
+
setAuth(auth) {
|
|
147
|
+
this.auth = auth;
|
|
148
|
+
const token = auth?.token;
|
|
149
|
+
const accessToken = token?.accessToken;
|
|
150
|
+
if (!accessToken) return;
|
|
151
|
+
apiClient.defaults.headers.common['Authorization'] = `Bearer ${accessToken}`;
|
|
152
|
+
},
|
|
146
153
|
getDashboard: async ({
|
|
147
154
|
id
|
|
148
155
|
}) => {
|
|
@@ -977,7 +984,7 @@ var Chart = ({
|
|
|
977
984
|
};
|
|
978
985
|
|
|
979
986
|
function Dashboard({
|
|
980
|
-
id,
|
|
987
|
+
id = "sample_dashboard",
|
|
981
988
|
auth,
|
|
982
989
|
params
|
|
983
990
|
}) {
|
|
@@ -989,6 +996,8 @@ function Dashboard({
|
|
|
989
996
|
const channel = useChannel();
|
|
990
997
|
useFilterManager(channel);
|
|
991
998
|
const init = async () => {
|
|
999
|
+
Api.setAuth(auth);
|
|
1000
|
+
|
|
992
1001
|
// get dashboard entity
|
|
993
1002
|
const dashboardTemp = await Api.getDashboard({
|
|
994
1003
|
id: id
|
|
@@ -99,6 +99,13 @@ const apiClient = axios.create({
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
const Api = {
|
|
102
|
+
setAuth(auth) {
|
|
103
|
+
this.auth = auth;
|
|
104
|
+
const token = auth?.token;
|
|
105
|
+
const accessToken = token?.accessToken;
|
|
106
|
+
if (!accessToken) return;
|
|
107
|
+
apiClient.defaults.headers.common['Authorization'] = `Bearer ${accessToken}`;
|
|
108
|
+
},
|
|
102
109
|
getDashboard: async ({
|
|
103
110
|
id
|
|
104
111
|
}) => {
|
|
@@ -933,7 +940,7 @@ var Chart = ({
|
|
|
933
940
|
};
|
|
934
941
|
|
|
935
942
|
function Dashboard({
|
|
936
|
-
id,
|
|
943
|
+
id = "sample_dashboard",
|
|
937
944
|
auth,
|
|
938
945
|
params
|
|
939
946
|
}) {
|
|
@@ -945,6 +952,8 @@ function Dashboard({
|
|
|
945
952
|
const channel = useChannel();
|
|
946
953
|
useFilterManager(channel);
|
|
947
954
|
const init = async () => {
|
|
955
|
+
Api.setAuth(auth);
|
|
956
|
+
|
|
948
957
|
// get dashboard entity
|
|
949
958
|
const dashboardTemp = await Api.getDashboard({
|
|
950
959
|
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,13 @@ var _BYGD_NC_REPORT_UI = (function () {
|
|
|
10914
10914
|
}
|
|
10915
10915
|
});
|
|
10916
10916
|
const Api = {
|
|
10917
|
+
setAuth(auth) {
|
|
10918
|
+
this.auth = auth;
|
|
10919
|
+
const token = auth?.token;
|
|
10920
|
+
const accessToken = token?.accessToken;
|
|
10921
|
+
if (!accessToken) return;
|
|
10922
|
+
apiClient.defaults.headers.common['Authorization'] = `Bearer ${accessToken}`;
|
|
10923
|
+
},
|
|
10917
10924
|
getDashboard: async ({
|
|
10918
10925
|
id
|
|
10919
10926
|
}) => {
|
|
@@ -44999,7 +45006,7 @@ export default theme;`;
|
|
|
44999
45006
|
})(Container);
|
|
45000
45007
|
|
|
45001
45008
|
function Dashboard({
|
|
45002
|
-
id,
|
|
45009
|
+
id = "sample_dashboard",
|
|
45003
45010
|
auth,
|
|
45004
45011
|
params
|
|
45005
45012
|
}) {
|
|
@@ -45011,6 +45018,8 @@ export default theme;`;
|
|
|
45011
45018
|
const channel = useChannel();
|
|
45012
45019
|
useFilterManager(channel);
|
|
45013
45020
|
const init = async () => {
|
|
45021
|
+
Api.setAuth(auth);
|
|
45022
|
+
|
|
45014
45023
|
// get dashboard entity
|
|
45015
45024
|
const dashboardTemp = await Api.getDashboard({
|
|
45016
45025
|
id: id
|