@bizdoc/core 1.6.14 → 1.7.0-next.1
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/assets/bizdoc-schema.json +26 -19
- package/assets/fonts/LICENSE.txt +202 -0
- package/assets/fonts/MaterialIcons-Regular.ijmap +1 -0
- package/assets/fonts/MaterialIcons-Regular.svg +2373 -0
- package/assets/fonts/README.md +9 -0
- package/assets/fonts/Roboto-Black.ttf +0 -0
- package/assets/fonts/Roboto-BlackItalic.ttf +0 -0
- package/assets/fonts/Roboto-Bold.ttf +0 -0
- package/assets/fonts/Roboto-BoldItalic.ttf +0 -0
- package/assets/fonts/Roboto-Italic.ttf +0 -0
- package/assets/fonts/Roboto-Light.ttf +0 -0
- package/assets/fonts/Roboto-LightItalic.ttf +0 -0
- package/assets/fonts/Roboto-Medium.ttf +0 -0
- package/assets/fonts/Roboto-MediumItalic.ttf +0 -0
- package/assets/fonts/Roboto-Regular.ttf +0 -0
- package/assets/fonts/Roboto-Thin.ttf +0 -0
- package/assets/fonts/Roboto-ThinItalic.ttf +0 -0
- package/assets/fonts/codepoints +932 -0
- package/assets/fonts/material-icons.css +36 -0
- package/assets/themes/brown.min.css +80 -80
- package/assets/themes/dark.min.css +75 -75
- package/assets/themes/default.min.css +87 -87
- package/assets/themes/green.min.css +80 -80
- package/assets/themes/indigo.min.css +80 -80
- package/bundles/bizdoc-core.umd.js +364 -294
- package/bundles/bizdoc-core.umd.js.map +1 -1
- package/esm2015/lib/app.component.js +6 -2
- package/esm2015/lib/bizdoc.module.js +19 -22
- package/esm2015/lib/core/authentication.js +1 -98
- package/esm2015/lib/core/configuration.js +1 -1
- package/esm2015/lib/core/controls/combination-picker-body.js +2 -2
- package/esm2015/lib/core/http.interceptor.js +24 -18
- package/esm2015/lib/core/models.js +1 -1
- package/esm2015/lib/core/session.service.js +11 -21
- package/esm2015/lib/cube/chart/chart.component.js +8 -7
- package/esm2015/lib/cube/info/cube-info.service.js +2 -2
- package/esm2015/lib/dashboard/cube/accum-cube.widget.js +18 -8
- package/esm2015/lib/dashboard/cube/cube-analysis.base.js +18 -7
- package/esm2015/lib/dashboard/cube/cube-chart.widget.js +27 -12
- package/esm2015/lib/dashboard/score/peers-performance.widget.js +4 -2
- package/esm2015/lib/home/notifications/notifications.component.js +2 -2
- package/esm2015/lib/home/sign/sign.component.js +12 -3
- package/esm2015/lib/login/forgot/forgot.component.js +2 -2
- package/esm2015/lib/login/form.authentication.js +70 -0
- package/esm2015/lib/login/okta.authentication.js +40 -0
- package/esm2015/lib/login/okta.component.js +11 -14
- package/esm2015/lib/login/okta.interceptor.js +1 -1
- package/esm2015/lib/login/prompt/prompt.component.js +10 -4
- package/esm2015/lib/login/signin-info.service.js +1 -1
- package/esm2015/lib/shared.module.js +21 -10
- package/esm2015/lib/system.module.js +3 -3
- package/esm2015/public-api.js +4 -1
- package/fesm2015/bizdoc-core.js +340 -277
- package/fesm2015/bizdoc-core.js.map +1 -1
- package/lib/app.component.d.ts +1 -0
- package/lib/bizdoc.module.d.ts +1 -2
- package/lib/core/authentication.d.ts +2 -33
- package/lib/core/configuration.d.ts +6 -0
- package/lib/core/http.interceptor.d.ts +4 -2
- package/lib/core/models.d.ts +1 -0
- package/lib/core/session.service.d.ts +7 -9
- package/lib/cube/info/cube-info.service.d.ts +1 -1
- package/lib/dashboard/cube/accum-cube.widget.d.ts +4 -2
- package/lib/dashboard/cube/cube-analysis.base.d.ts +11 -3
- package/lib/dashboard/cube/cube-chart.widget.d.ts +4 -3
- package/lib/login/forgot/forgot.component.d.ts +1 -1
- package/lib/login/form.authentication.d.ts +30 -0
- package/lib/login/okta.authentication.d.ts +13 -0
- package/lib/login/okta.component.d.ts +2 -3
- package/lib/login/prompt/prompt.component.d.ts +2 -2
- package/lib/shared.module.d.ts +2 -1
- package/package.json +6 -6
- package/public-api.d.ts +3 -0
- package/src/assets/bizdoc-schema.json +26 -19
- package/src/assets/fonts/LICENSE.txt +202 -0
- package/src/assets/fonts/MaterialIcons-Regular.ijmap +1 -0
- package/src/assets/fonts/MaterialIcons-Regular.svg +2373 -0
- package/src/assets/fonts/README.md +9 -0
- package/src/assets/fonts/Roboto-Black.ttf +0 -0
- package/src/assets/fonts/Roboto-BlackItalic.ttf +0 -0
- package/src/assets/fonts/Roboto-Bold.ttf +0 -0
- package/src/assets/fonts/Roboto-BoldItalic.ttf +0 -0
- package/src/assets/fonts/Roboto-Italic.ttf +0 -0
- package/src/assets/fonts/Roboto-Light.ttf +0 -0
- package/src/assets/fonts/Roboto-LightItalic.ttf +0 -0
- package/src/assets/fonts/Roboto-Medium.ttf +0 -0
- package/src/assets/fonts/Roboto-MediumItalic.ttf +0 -0
- package/src/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/assets/fonts/Roboto-Thin.ttf +0 -0
- package/src/assets/fonts/Roboto-ThinItalic.ttf +0 -0
- package/src/assets/fonts/codepoints +932 -0
- package/src/assets/fonts/material-icons.css +36 -0
- package/src/assets/themes/brown.min.css +80 -80
- package/src/assets/themes/dark.min.css +75 -75
- package/src/assets/themes/default.min.css +87 -87
- package/src/assets/themes/green.min.css +80 -80
- package/src/assets/themes/indigo.min.css +80 -80
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/bidi'), require('@angular/platform-browser'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/progress-spinner'), require('@angular/common'), require('@angular/flex-layout/flex'), require('@angular/material/tooltip'), require('@angular/material/core'), require('@angular/material/stepper'), require('@angular/material/paginator'), require('@angular/material/datepicker'), require('@syncfusion/ej2-base'), require('moment'), require('@microsoft/signalr'), require('firebase/app'), require('firebase/messaging'), require('ngx-cookie-service'), require('@angular/material/dialog'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/form-field'), require('@angular/material/slide-toggle'), require('@angular/cdk/a11y'), require('brace'), require('brace/mode/javascript'), require('brace/theme/github'), require('brace/ext/language_tools'), require('@angular/material/select'), require('@angular/cdk/coercion'), require('@angular/material/autocomplete'), require('@angular/material/input'), require('@angular/cdk/text-field'), require('@syncfusion/ej2-angular-richtexteditor'), require('@angular/material/snack-bar'), require('@angular/material/menu'), require('@angular/material/divider'), require('@angular/platform-browser/animations'), require('@angular/router'), require('ngx-moment'), require('@angular/material/chips'), require('@angular/cdk/drag-drop'), require('@angular/cdk/layout'), require('@angular/material/expansion'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/tabs'), require('@angular/material/bottom-sheet'), require('@angular/material/sidenav'), require('@angular/material/card'), require('@angular/material/grid-list'), require('@angular/material/badge'), require('@angular/material/button-toggle'), require('@angular/material/progress-bar'), require('@angular/material/list'), require('@angular/material/toolbar'), require('@angular/material/radio'), require('@angular/flex-layout'), require('@angular/cdk/scrolling'), require('@angular/cdk/collections'), require('@angular/flex-layout/extended'), require('@angular/cdk/keycodes'), require('@ctrl/ngx-emoji-mart'), require('@syncfusion/ej2-angular-charts'), require('xlsx'), require('@syncfusion/ej2-charts'), require('@syncfusion/ej2-angular-grids'), require('@syncfusion/ej2-pivotview'), require('@syncfusion/ej2-angular-spreadsheet'), require('lottie-web/build/player/lottie'), require('@syncfusion/ej2-angular-diagrams'), require('@syncfusion/ej2-angular-schedule'), require('@okta/okta-
|
3
|
-
typeof define === 'function' && define.amd ? define('@bizdoc/core', ['exports', '@angular/animations', '@angular/core', '@angular/common/http', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/bidi', '@angular/platform-browser', '@angular/material/button', '@angular/material/icon', '@angular/material/progress-spinner', '@angular/common', '@angular/flex-layout/flex', '@angular/material/tooltip', '@angular/material/core', '@angular/material/stepper', '@angular/material/paginator', '@angular/material/datepicker', '@syncfusion/ej2-base', 'moment', '@microsoft/signalr', 'firebase/app', 'firebase/messaging', 'ngx-cookie-service', '@angular/material/dialog', '@angular/forms', '@angular/material/checkbox', '@angular/material/form-field', '@angular/material/slide-toggle', '@angular/cdk/a11y', 'brace', 'brace/mode/javascript', 'brace/theme/github', 'brace/ext/language_tools', '@angular/material/select', '@angular/cdk/coercion', '@angular/material/autocomplete', '@angular/material/input', '@angular/cdk/text-field', '@syncfusion/ej2-angular-richtexteditor', '@angular/material/snack-bar', '@angular/material/menu', '@angular/material/divider', '@angular/platform-browser/animations', '@angular/router', 'ngx-moment', '@angular/material/chips', '@angular/cdk/drag-drop', '@angular/cdk/layout', '@angular/material/expansion', '@angular/material/table', '@angular/material/sort', '@angular/material/tabs', '@angular/material/bottom-sheet', '@angular/material/sidenav', '@angular/material/card', '@angular/material/grid-list', '@angular/material/badge', '@angular/material/button-toggle', '@angular/material/progress-bar', '@angular/material/list', '@angular/material/toolbar', '@angular/material/radio', '@angular/flex-layout', '@angular/cdk/scrolling', '@angular/cdk/collections', '@angular/flex-layout/extended', '@angular/cdk/keycodes', '@ctrl/ngx-emoji-mart', '@syncfusion/ej2-angular-charts', 'xlsx', '@syncfusion/ej2-charts', '@syncfusion/ej2-angular-grids', '@syncfusion/ej2-pivotview', '@syncfusion/ej2-angular-spreadsheet', 'lottie-web/build/player/lottie', '@syncfusion/ej2-angular-diagrams', '@syncfusion/ej2-angular-schedule', '@okta/okta-
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bizdoc = global.bizdoc || {}, global.bizdoc.core = {}), global.ng.animations, global.ng.core, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.bidi, global.ng.platformBrowser, global.ng.material.button, global.ng.material.icon, global.ng.material.progressSpinner, global.ng.common, global.ng.flexLayout.flex, global.ng.material.tooltip, global.ng.material.core, global.ng.material.stepper, global.ng.material.paginator, global.ng.material.datepicker, global.ej2Base, global.moment$k, global.signalr, global.firebase, global.messaging, global.i2, global.ng.material.dialog, global.ng.forms, global.ng.material.checkbox, global.ng.material.formField, global.ng.material.slideToggle, global.ng.cdk.a11y, global.brace, null, null, null, global.ng.material.select, global.ng.cdk.coercion, global.ng.material.autocomplete, global.ng.material.input, global.ng.cdk.textField, global.i2$2, global.ng.material.snackBar, global.ng.material.menu, global.ng.material.divider, global.ng.platformBrowser.animations, global.ng.router, global.i14, global.ng.material.chips, global.ng.cdk.dragDrop, global.ng.cdk.layout, global.ng.material.expansion, global.ng.material.table, global.ng.material.sort, global.ng.material.tabs, global.ng.material.bottomSheet, global.ng.material.sidenav, global.ng.material.card, global.ng.material.gridList, global.ng.material.badge, global.ng.material.buttonToggle, global.ng.material.progressBar, global.ng.material.list, global.ng.material.toolbar, global.ng.material.radio, global.ng.flexLayout, global.ng.cdk.scrolling, global.ng.cdk.collections, global.ng.flexLayout.extended, global.ng.cdk.keycodes, global.ngxemojimart, global.ej2charts, global.xlsx, global.ej2charts1, global.ej2grids, global.ej2Pivotview, global.ej2spreadsheet, global.player, global.ej2diagrams, global.i8$2, global.
|
5
|
-
}(this, (function (exports, animations, i0, i1, rxjs, operators, i1$2, portal, i3$1, i1$1, i7, i8, i6$1, i10, i9$1, i12, i6, stepper, i9, i3, ej2Base, moment$k, signalr, firebase, messaging, i2, i7$2, i1$3, i7$1, i1$4, i1$5, i2$1, brace, javascript, github, language_tools, i4, coercion, i5, i9$2, i3$2, i2$2, i3$3, i9$3, i10$1, animations$1, i1$6, i14, i3$4, i20, layout, i6$3, i6$4, i6$5, i7$4, i2$4, i11$1, i7$3, i6$2, i13, i9$4, i5$1, i2$5, i6$6, radio, i2$3, i11, collections, i21, keycodes, i4$1, i7$5, XLSX, ej2Charts, i6$7, ej2Pivotview, i8$1, player, i11$2, i8$2,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/bidi'), require('@angular/platform-browser'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/material/progress-spinner'), require('@angular/common'), require('@angular/flex-layout/flex'), require('@angular/material/tooltip'), require('@angular/material/core'), require('@angular/material/stepper'), require('@angular/material/paginator'), require('@angular/material/datepicker'), require('@syncfusion/ej2-base'), require('moment'), require('@microsoft/signalr'), require('firebase/app'), require('firebase/messaging'), require('ngx-cookie-service'), require('@angular/material/dialog'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/form-field'), require('@angular/material/slide-toggle'), require('@angular/cdk/a11y'), require('brace'), require('brace/mode/javascript'), require('brace/theme/github'), require('brace/ext/language_tools'), require('@angular/material/select'), require('@angular/cdk/coercion'), require('@angular/material/autocomplete'), require('@angular/material/input'), require('@angular/cdk/text-field'), require('@syncfusion/ej2-angular-richtexteditor'), require('@angular/material/snack-bar'), require('@angular/material/menu'), require('@angular/material/divider'), require('@angular/platform-browser/animations'), require('@angular/router'), require('ngx-moment'), require('@angular/material/chips'), require('@angular/cdk/drag-drop'), require('@angular/cdk/layout'), require('@angular/material/expansion'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/tabs'), require('@angular/material/bottom-sheet'), require('@angular/material/sidenav'), require('@angular/material/card'), require('@angular/material/grid-list'), require('@angular/material/badge'), require('@angular/material/button-toggle'), require('@angular/material/progress-bar'), require('@angular/material/list'), require('@angular/material/toolbar'), require('@angular/material/radio'), require('@angular/flex-layout'), require('@angular/cdk/scrolling'), require('@angular/cdk/collections'), require('@angular/flex-layout/extended'), require('@angular/cdk/keycodes'), require('@ctrl/ngx-emoji-mart'), require('@syncfusion/ej2-angular-charts'), require('xlsx'), require('@syncfusion/ej2-charts'), require('@syncfusion/ej2-angular-grids'), require('@syncfusion/ej2-pivotview'), require('@syncfusion/ej2-angular-spreadsheet'), require('lottie-web/build/player/lottie'), require('@syncfusion/ej2-angular-diagrams'), require('@syncfusion/ej2-angular-schedule'), require('@okta/okta-signin-widget'), require('@okta/okta-angular'), require('@syncfusion/ej2-angular-circulargauge'), require('@syncfusion/ej2-angular-kanban'), require('@syncfusion/ej2-angular-pivotview'), require('@syncfusion/ej2-angular-lineargauge'), require('@okta/okta-auth-js')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@bizdoc/core', ['exports', '@angular/animations', '@angular/core', '@angular/common/http', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/bidi', '@angular/platform-browser', '@angular/material/button', '@angular/material/icon', '@angular/material/progress-spinner', '@angular/common', '@angular/flex-layout/flex', '@angular/material/tooltip', '@angular/material/core', '@angular/material/stepper', '@angular/material/paginator', '@angular/material/datepicker', '@syncfusion/ej2-base', 'moment', '@microsoft/signalr', 'firebase/app', 'firebase/messaging', 'ngx-cookie-service', '@angular/material/dialog', '@angular/forms', '@angular/material/checkbox', '@angular/material/form-field', '@angular/material/slide-toggle', '@angular/cdk/a11y', 'brace', 'brace/mode/javascript', 'brace/theme/github', 'brace/ext/language_tools', '@angular/material/select', '@angular/cdk/coercion', '@angular/material/autocomplete', '@angular/material/input', '@angular/cdk/text-field', '@syncfusion/ej2-angular-richtexteditor', '@angular/material/snack-bar', '@angular/material/menu', '@angular/material/divider', '@angular/platform-browser/animations', '@angular/router', 'ngx-moment', '@angular/material/chips', '@angular/cdk/drag-drop', '@angular/cdk/layout', '@angular/material/expansion', '@angular/material/table', '@angular/material/sort', '@angular/material/tabs', '@angular/material/bottom-sheet', '@angular/material/sidenav', '@angular/material/card', '@angular/material/grid-list', '@angular/material/badge', '@angular/material/button-toggle', '@angular/material/progress-bar', '@angular/material/list', '@angular/material/toolbar', '@angular/material/radio', '@angular/flex-layout', '@angular/cdk/scrolling', '@angular/cdk/collections', '@angular/flex-layout/extended', '@angular/cdk/keycodes', '@ctrl/ngx-emoji-mart', '@syncfusion/ej2-angular-charts', 'xlsx', '@syncfusion/ej2-charts', '@syncfusion/ej2-angular-grids', '@syncfusion/ej2-pivotview', '@syncfusion/ej2-angular-spreadsheet', 'lottie-web/build/player/lottie', '@syncfusion/ej2-angular-diagrams', '@syncfusion/ej2-angular-schedule', '@okta/okta-signin-widget', '@okta/okta-angular', '@syncfusion/ej2-angular-circulargauge', '@syncfusion/ej2-angular-kanban', '@syncfusion/ej2-angular-pivotview', '@syncfusion/ej2-angular-lineargauge', '@okta/okta-auth-js'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bizdoc = global.bizdoc || {}, global.bizdoc.core = {}), global.ng.animations, global.ng.core, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.bidi, global.ng.platformBrowser, global.ng.material.button, global.ng.material.icon, global.ng.material.progressSpinner, global.ng.common, global.ng.flexLayout.flex, global.ng.material.tooltip, global.ng.material.core, global.ng.material.stepper, global.ng.material.paginator, global.ng.material.datepicker, global.ej2Base, global.moment$k, global.signalr, global.firebase, global.messaging, global.i2, global.ng.material.dialog, global.ng.forms, global.ng.material.checkbox, global.ng.material.formField, global.ng.material.slideToggle, global.ng.cdk.a11y, global.brace, null, null, null, global.ng.material.select, global.ng.cdk.coercion, global.ng.material.autocomplete, global.ng.material.input, global.ng.cdk.textField, global.i2$2, global.ng.material.snackBar, global.ng.material.menu, global.ng.material.divider, global.ng.platformBrowser.animations, global.ng.router, global.i14, global.ng.material.chips, global.ng.cdk.dragDrop, global.ng.cdk.layout, global.ng.material.expansion, global.ng.material.table, global.ng.material.sort, global.ng.material.tabs, global.ng.material.bottomSheet, global.ng.material.sidenav, global.ng.material.card, global.ng.material.gridList, global.ng.material.badge, global.ng.material.buttonToggle, global.ng.material.progressBar, global.ng.material.list, global.ng.material.toolbar, global.ng.material.radio, global.ng.flexLayout, global.ng.cdk.scrolling, global.ng.cdk.collections, global.ng.flexLayout.extended, global.ng.cdk.keycodes, global.ngxemojimart, global.ej2charts, global.xlsx, global.ej2charts1, global.ej2grids, global.ej2Pivotview, global.ej2spreadsheet, global.player, global.ej2diagrams, global.i8$2, global.OktaSignIn, global.oktaAngular, global.ej2AngularCirculargauge, global.ej2kanban, global.ej2AngularPivotview, global.ej2AngularLineargauge, global.oktaAuthJs));
|
5
|
+
}(this, (function (exports, animations, i0, i1, rxjs, operators, i1$2, portal, i3$1, i1$1, i7, i8, i6$1, i10, i9$1, i12, i6, stepper, i9, i3, ej2Base, moment$k, signalr, firebase, messaging, i2, i7$2, i1$3, i7$1, i1$4, i1$5, i2$1, brace, javascript, github, language_tools, i4, coercion, i5, i9$2, i3$2, i2$2, i3$3, i9$3, i10$1, animations$1, i1$6, i14, i3$4, i20, layout, i6$3, i6$4, i6$5, i7$4, i2$4, i11$1, i7$3, i6$2, i13, i9$4, i5$1, i2$5, i6$6, radio, i2$3, i11, collections, i21, keycodes, i4$1, i7$5, XLSX, ej2Charts, i6$7, ej2Pivotview, i8$1, player, i11$2, i8$2, OktaSignIn, oktaAngular, ej2AngularCirculargauge, i9$5, ej2AngularPivotview, ej2AngularLineargauge, oktaAuthJs) { 'use strict';
|
6
6
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
8
8
|
|
@@ -1295,7 +1295,6 @@
|
|
1295
1295
|
this._themeChange = new rxjs.Subject();
|
1296
1296
|
this.loaded = this._loaded.asObservable();
|
1297
1297
|
this.themeChange = this._themeChange.asObservable();
|
1298
|
-
this._guide = new rxjs.Subject();
|
1299
1298
|
this._firebase = new FirebaseService(this._config ? this._config.firebase : null, this);
|
1300
1299
|
('serviceWorker' in navigator) && this._loadSw();
|
1301
1300
|
_config && _config.maps && this._loadMaps();
|
@@ -1471,7 +1470,9 @@
|
|
1471
1470
|
observe.next();
|
1472
1471
|
_this._loaded.next();
|
1473
1472
|
}
|
1474
|
-
_this.
|
1473
|
+
_this._hub.state !== signalr.HubConnectionState.Connected && _this._hub.start();
|
1474
|
+
_this._firebase.state !== FirebaseState.Activated &&
|
1475
|
+
_this._firebase.activate();
|
1475
1476
|
}, function () { return observe.error(); });
|
1476
1477
|
});
|
1477
1478
|
};
|
@@ -1481,43 +1482,29 @@
|
|
1481
1482
|
SessionService.prototype.registerDevice = function (type, token) {
|
1482
1483
|
return this._http.post('/api/account/registerDevice', { type: type, token: token });
|
1483
1484
|
};
|
1484
|
-
SessionService.prototype.
|
1485
|
-
var _this = this;
|
1486
|
-
this._profile = profile;
|
1487
|
-
this._connect();
|
1488
|
-
return this._changeTheme(this.theme).pipe(operators.tap(function () { return _this._loaded.next(); }));
|
1489
|
-
};
|
1490
|
-
SessionService.prototype._connect = function () {
|
1491
|
-
this._hub.state !== signalr.HubConnectionState.Connected && this._hub.start();
|
1492
|
-
this._firebase.state !== FirebaseState.Activated &&
|
1493
|
-
this._firebase.activate();
|
1494
|
-
};
|
1495
|
-
SessionService.prototype.mayImpersonate = function (search, credentials) {
|
1496
|
-
var _a = credentials || {}, username = _a.username, password = _a.password;
|
1485
|
+
SessionService.prototype.mayImpersonate = function (search) {
|
1497
1486
|
return this._http.put('/api/account/granted', {
|
1498
|
-
username: username,
|
1499
|
-
password: password,
|
1500
1487
|
search: search
|
1501
1488
|
});
|
1502
1489
|
};
|
1503
1490
|
SessionService.prototype.impersonate = function (userId) {
|
1504
|
-
return this._http.post('/api/account/
|
1491
|
+
return this._http.post('/api/account/impersonate', {
|
1505
1492
|
userId: userId
|
1506
1493
|
});
|
1507
1494
|
};
|
1508
1495
|
SessionService.prototype.inboxTouch = function () {
|
1509
1496
|
var _this = this;
|
1510
|
-
this._http.put('/api/account/inboxview', {}, { headers: { 'no-progress': 'true' } }).pipe(operators.tap(function (e) {
|
1497
|
+
return this._http.put('/api/account/inboxview', {}, { headers: { 'no-progress': 'true' } }).pipe(operators.tap(function (e) {
|
1511
1498
|
_this.profile.inboxCount = 0;
|
1512
1499
|
_this.profile.options.inboxView = e.time;
|
1513
|
-
})).
|
1500
|
+
})).toPromise();
|
1514
1501
|
};
|
1515
1502
|
SessionService.prototype.notificationsTouch = function () {
|
1516
1503
|
var _this = this;
|
1517
|
-
this._http.put('/api/account/notificationsView', {}, { headers: { 'no-progress': 'true' } }).pipe(operators.tap(function (e) {
|
1504
|
+
return this._http.put('/api/account/notificationsView', {}, { headers: { 'no-progress': 'true' } }).pipe(operators.tap(function (e) {
|
1518
1505
|
_this.profile.notificationsCount = 0;
|
1519
1506
|
_this.profile.options.notificationsView = e.time;
|
1520
|
-
})).
|
1507
|
+
})).toPromise();
|
1521
1508
|
};
|
1522
1509
|
SessionService.prototype._getBrowserLang = function () {
|
1523
1510
|
var lang = navigator.language;
|
@@ -10348,7 +10335,7 @@
|
|
10348
10335
|
/** */
|
10349
10336
|
CubeChartComponent.prototype._prepare = function () {
|
10350
10337
|
var _this = this;
|
10351
|
-
var
|
10338
|
+
var _a = this._info.view, chartType = _a.chartType, indexChartType = _a.indexChartType;
|
10352
10339
|
this.series = this._data.map(function (s) {
|
10353
10340
|
switch (s.type) {
|
10354
10341
|
case 'Index':
|
@@ -10360,8 +10347,9 @@
|
|
10360
10347
|
type: 'Spline',
|
10361
10348
|
width: 2,
|
10362
10349
|
fill: _this._session.getPrimery(),
|
10350
|
+
stackingGroup: 'index',
|
10363
10351
|
marker: {
|
10364
|
-
visible:
|
10352
|
+
visible: !indexChartType || indexChartType === 'Line' || indexChartType === 'Spline',
|
10365
10353
|
shape: 'Diamond',
|
10366
10354
|
height: 10,
|
10367
10355
|
width: 10
|
@@ -10375,7 +10363,7 @@
|
|
10375
10363
|
dataSource: s.points,
|
10376
10364
|
type: chartType || 'Column',
|
10377
10365
|
marker: {
|
10378
|
-
visible: chartType === 'Line' || chartType === 'Spline',
|
10366
|
+
visible: !chartType || chartType === 'Line' || chartType === 'Spline',
|
10379
10367
|
height: 10,
|
10380
10368
|
width: 10
|
10381
10369
|
}
|
@@ -10418,12 +10406,12 @@
|
|
10418
10406
|
;
|
10419
10407
|
CubeChartComponent.prototype.pointClick = function (evt) {
|
10420
10408
|
var _a = this._info.view, xAxis = _a.xAxis, series = _a.series;
|
10421
|
-
var axes = {}, serie = this._data[evt.seriesIndex], type = serie.type, name = serie.name;
|
10422
|
-
if (series && series.length
|
10409
|
+
var axes = {}, serie = this._data[evt.seriesIndex], type = serie.type, name = serie.name, points = serie.points;
|
10410
|
+
if (series && series.length)
|
10423
10411
|
for (var i = 0; i < series.length; i++)
|
10424
10412
|
axes[series[i]] = name.split(AXES_CODE_DIVIDER)[i];
|
10425
10413
|
for (var i = 0; i < xAxis.length; i++) {
|
10426
|
-
var x =
|
10414
|
+
var x = points[evt.pointIndex].x;
|
10427
10415
|
axes[xAxis[i]] = x.split(AXES_CODE_DIVIDER)[i];
|
10428
10416
|
}
|
10429
10417
|
this.explore.emit({ axes: axes, index: type === 'Index' ? name : null });
|
@@ -17036,79 +17024,48 @@
|
|
17036
17024
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' }
|
17037
17025
|
];
|
17038
17026
|
|
17039
|
-
var DEFAULT_SCOPES = ["openid", "profile", 'email'];
|
17040
17027
|
var AuthenticationImpl = /** @class */ (function () {
|
17041
17028
|
function AuthenticationImpl() {
|
17042
17029
|
}
|
17043
17030
|
return AuthenticationImpl;
|
17044
|
-
}());
|
17045
|
-
|
17046
|
-
__extends(OktaAuthentication, _super);
|
17047
|
-
function OktaAuthentication(_okta) {
|
17048
|
-
var _this = _super.call(this) || this;
|
17049
|
-
_this._okta = _okta;
|
17050
|
-
return _this;
|
17051
|
-
}
|
17052
|
-
OktaAuthentication.prototype.signIn = function (username, password, rememberMe, impersonate) {
|
17053
|
-
var _this = this;
|
17054
|
-
return rxjs.from(this._okta.oktaAuth.signInWithCredentials({ password: password, username: username, }).
|
17055
|
-
then(function (transaction) {
|
17056
|
-
if (transaction.status === 'SUCCESS') {
|
17057
|
-
_this._okta.oktaAuth.session.setCookieAndRedirect(transaction.sessionToken); // Sets a cookie on redirect
|
17058
|
-
//this._okta.oktaAuth.token.getWithRedirect({sessionToken: transaction.sessionToken, responseType: 'id_token'})
|
17059
|
-
}
|
17060
|
-
else {
|
17061
|
-
throw 'We cannot handle the ' + transaction.status + ' status';
|
17062
|
-
}
|
17063
|
-
}));
|
17064
|
-
};
|
17065
|
-
OktaAuthentication.prototype.signOut = function () {
|
17066
|
-
return rxjs.from(this._okta.oktaAuth.signOut());
|
17067
|
-
};
|
17068
|
-
return OktaAuthentication;
|
17069
|
-
}(AuthenticationImpl));
|
17070
|
-
OktaAuthentication.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaAuthentication, deps: [{ token: oktaAngular.OKTA_CONFIG }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
17071
|
-
OktaAuthentication.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaAuthentication });
|
17072
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaAuthentication, decorators: [{
|
17073
|
-
type: i0.Injectable
|
17074
|
-
}], ctorParameters: function () {
|
17075
|
-
return [{ type: undefined, decorators: [{
|
17076
|
-
type: i0.Inject,
|
17077
|
-
args: [oktaAngular.OKTA_CONFIG]
|
17078
|
-
}] }];
|
17079
|
-
} });
|
17031
|
+
}());
|
17032
|
+
|
17080
17033
|
var FormAuthentication = /** @class */ (function (_super) {
|
17081
17034
|
__extends(FormAuthentication, _super);
|
17082
|
-
function FormAuthentication(_http
|
17035
|
+
function FormAuthentication(_http) {
|
17083
17036
|
var _this = _super.call(this) || this;
|
17084
17037
|
_this._http = _http;
|
17085
|
-
_this._session = _session;
|
17086
17038
|
return _this;
|
17087
17039
|
}
|
17088
|
-
FormAuthentication.prototype.
|
17040
|
+
FormAuthentication.prototype.getAccessToken = function () {
|
17041
|
+
var accessToken = this._accessToken ||
|
17042
|
+
sessionStorage.getItem('token') ||
|
17043
|
+
localStorage.getItem('token');
|
17044
|
+
return accessToken;
|
17045
|
+
};
|
17046
|
+
FormAuthentication.prototype.authenticate = function (username, password, options) {
|
17089
17047
|
var _this = this;
|
17090
|
-
if (
|
17091
|
-
localStorage.clear();
|
17048
|
+
if (options === void 0) { options = {}; }
|
17092
17049
|
return new rxjs.Observable(function (observe) {
|
17093
|
-
_this._http.post('/api/
|
17050
|
+
_this._http.post('/api/aspidentity/login', {
|
17094
17051
|
username: username,
|
17095
|
-
password: password
|
17096
|
-
rememberMe: rememberMe,
|
17097
|
-
impersonate: impersonate !== '' ? impersonate : null
|
17052
|
+
password: password
|
17098
17053
|
}).subscribe(function (r) {
|
17099
|
-
if (rememberMe) {
|
17054
|
+
if (options.rememberMe) {
|
17055
|
+
localStorage.setItem('token', r.tokenId);
|
17100
17056
|
localStorage.setItem('username', username);
|
17101
17057
|
localStorage.setItem('displayName', r.name);
|
17102
17058
|
r.photo && localStorage.setItem('photo', r.photo);
|
17103
|
-
(r.
|
17059
|
+
(r.gender) && localStorage.setItem('gender', r.gender);
|
17104
17060
|
}
|
17105
|
-
|
17106
|
-
|
17107
|
-
|
17108
|
-
|
17061
|
+
else {
|
17062
|
+
sessionStorage.setItem('token', r.tokenId);
|
17063
|
+
}
|
17064
|
+
observe.next();
|
17065
|
+
observe.complete();
|
17109
17066
|
}, function (e) {
|
17110
17067
|
var reason;
|
17111
|
-
switch (e.
|
17068
|
+
switch (e.status) {
|
17112
17069
|
default:
|
17113
17070
|
reason = LoginResult.Failed;
|
17114
17071
|
}
|
@@ -17117,10 +17074,10 @@
|
|
17117
17074
|
});
|
17118
17075
|
};
|
17119
17076
|
FormAuthentication.prototype.signOut = function () {
|
17120
|
-
return this._http.post('/api/
|
17077
|
+
return this._http.post('/api/aspidentity/signout', null).toPromise();
|
17121
17078
|
};
|
17122
17079
|
FormAuthentication.prototype.forgot = function (email) {
|
17123
|
-
return this._http.post('/api/
|
17080
|
+
return this._http.post('/api/aspidentity/forgot', { email: email });
|
17124
17081
|
};
|
17125
17082
|
Object.defineProperty(FormAuthentication.prototype, "photo", {
|
17126
17083
|
get: function () {
|
@@ -17145,11 +17102,11 @@
|
|
17145
17102
|
});
|
17146
17103
|
return FormAuthentication;
|
17147
17104
|
}(AuthenticationImpl));
|
17148
|
-
FormAuthentication.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: FormAuthentication, deps: [{ token: i1__namespace.HttpClient }
|
17105
|
+
FormAuthentication.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: FormAuthentication, deps: [{ token: i1__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
17149
17106
|
FormAuthentication.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: FormAuthentication });
|
17150
17107
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: FormAuthentication, decorators: [{
|
17151
17108
|
type: i0.Injectable
|
17152
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.HttpClient }
|
17109
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.HttpClient }]; } });
|
17153
17110
|
var LoginResult;
|
17154
17111
|
(function (LoginResult) {
|
17155
17112
|
LoginResult[LoginResult["OK"] = 0] = "OK";
|
@@ -17249,7 +17206,7 @@
|
|
17249
17206
|
}
|
17250
17207
|
CredetialsComponent.prototype.ngOnInit = function () {
|
17251
17208
|
var _this = this;
|
17252
|
-
this.users$ = this.impersonate.valueChanges.pipe(operators.debounceTime(250), operators.takeUntil(this._destroy), operators.switchMap(function () { return _this.
|
17209
|
+
this.users$ = this.impersonate.valueChanges.pipe(operators.debounceTime(250), operators.takeUntil(this._destroy), operators.switchMap(function () { return _this._auth.authenticate(_this.username.value, _this.password.value); }), operators.switchMap(function () { return _this._session.mayImpersonate(''); }));
|
17253
17210
|
};
|
17254
17211
|
CredetialsComponent.prototype.toggleHide = function (evt) {
|
17255
17212
|
this.hide = !this.hide;
|
@@ -17279,7 +17236,13 @@
|
|
17279
17236
|
this.form.disable({ emitEvent: false });
|
17280
17237
|
this.loggingChange.emit(true);
|
17281
17238
|
var _a = this.form.value, username = _a.username, password = _a.password, rememberMe = _a.rememberMe, impersonate = _a.impersonate;
|
17282
|
-
this._auth.
|
17239
|
+
this._auth.authenticate(username, password, { rememberMe: rememberMe }).
|
17240
|
+
subscribe(function () {
|
17241
|
+
if (impersonate)
|
17242
|
+
_this._session.impersonate(impersonate).subscribe(function () { return _this.success.emit(); });
|
17243
|
+
else
|
17244
|
+
_this.success.emit();
|
17245
|
+
}, function (e) {
|
17283
17246
|
var message;
|
17284
17247
|
switch (e) {
|
17285
17248
|
default:
|
@@ -17480,6 +17443,48 @@
|
|
17480
17443
|
}]
|
17481
17444
|
}], ctorParameters: function () { return [{ type: i1__namespace$2.OverlayRef }, { type: SessionService }]; } });
|
17482
17445
|
|
17446
|
+
var DEFAULT_SCOPES = ["openid", "profile", 'email'];
|
17447
|
+
var OktaAuthentication = /** @class */ (function (_super) {
|
17448
|
+
__extends(OktaAuthentication, _super);
|
17449
|
+
function OktaAuthentication(_okta) {
|
17450
|
+
var _this = _super.call(this) || this;
|
17451
|
+
_this._okta = _okta;
|
17452
|
+
return _this;
|
17453
|
+
}
|
17454
|
+
OktaAuthentication.prototype.getAccessToken = function () {
|
17455
|
+
return this._okta.oktaAuth.getAccessToken();
|
17456
|
+
};
|
17457
|
+
OktaAuthentication.prototype.isAuthenticated = function () {
|
17458
|
+
return this._okta.oktaAuth.isAuthenticated();
|
17459
|
+
};
|
17460
|
+
//signIn(username: string, password: string, rememberMe: boolean): Observable<any> {
|
17461
|
+
// return from(this._okta.oktaAuth.signInWithCredentials({ password, username, }).
|
17462
|
+
// then(transaction => {
|
17463
|
+
// if (transaction.status === 'SUCCESS') {
|
17464
|
+
// this._okta.oktaAuth.session.setCookieAndRedirect(transaction.sessionToken); // Sets a cookie on redirect
|
17465
|
+
// //this._okta.oktaAuth.token.getWithRedirect({sessionToken: transaction.sessionToken, responseType: 'id_token'})
|
17466
|
+
// } else {
|
17467
|
+
// throw 'We cannot handle the ' + transaction.status + ' status';
|
17468
|
+
// }
|
17469
|
+
// }));
|
17470
|
+
//}
|
17471
|
+
OktaAuthentication.prototype.signOut = function () {
|
17472
|
+
return this._okta.oktaAuth.signOut();
|
17473
|
+
};
|
17474
|
+
return OktaAuthentication;
|
17475
|
+
}(AuthenticationImpl));
|
17476
|
+
OktaAuthentication.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaAuthentication, deps: [{ token: oktaAngular.OKTA_CONFIG }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
17477
|
+
OktaAuthentication.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaAuthentication });
|
17478
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaAuthentication, decorators: [{
|
17479
|
+
type: i0.Injectable
|
17480
|
+
}], ctorParameters: function () {
|
17481
|
+
return [{ type: undefined, decorators: [{
|
17482
|
+
type: i0.Inject,
|
17483
|
+
args: [oktaAngular.OKTA_CONFIG]
|
17484
|
+
}] }];
|
17485
|
+
} });
|
17486
|
+
|
17487
|
+
/** */
|
17483
17488
|
var OktaComponent = /** @class */ (function () {
|
17484
17489
|
//hide = true;
|
17485
17490
|
//readonly username = new FormControl(null, Validators.required);
|
@@ -17492,8 +17497,7 @@
|
|
17492
17497
|
//});
|
17493
17498
|
//@ViewChild('uname', { read: ElementRef }) usernameElement: ElementRef<HTMLInputElement>;
|
17494
17499
|
//signing: boolean;
|
17495
|
-
function OktaComponent(
|
17496
|
-
this._session = _session;
|
17500
|
+
function OktaComponent(_translate, _overlayRef, _config, _okta) {
|
17497
17501
|
this._translate = _translate;
|
17498
17502
|
this._overlayRef = _overlayRef;
|
17499
17503
|
this._config = _config;
|
@@ -17522,16 +17526,13 @@
|
|
17522
17526
|
'primaryauth.submit': this._translate.get('SignIn'),
|
17523
17527
|
},
|
17524
17528
|
},
|
17525
|
-
|
17526
|
-
issuer: "https://" + okta.domain + "/oauth2/" + (okta.serverId || 'default'),
|
17527
|
-
scopes: okta.scopes || DEFAULT_SCOPES
|
17528
|
-
},
|
17529
|
+
authClient: this._okta.oktaAuth,
|
17529
17530
|
useInteractionCodeFlow: false,
|
17530
17531
|
});
|
17531
17532
|
signIn.showSignInToGetTokens({
|
17532
17533
|
el: '#sign-in-widget',
|
17534
|
+
scopes: DEFAULT_SCOPES
|
17533
17535
|
}).then(function (tokens) { return __awaiter(_this, void 0, void 0, function () {
|
17534
|
-
var _this = this;
|
17535
17536
|
return __generator(this, function (_a) {
|
17536
17537
|
switch (_a.label) {
|
17537
17538
|
case 0:
|
@@ -17542,7 +17543,7 @@
|
|
17542
17543
|
case 1:
|
17543
17544
|
// In this flow the redirect to Okta occurs in a hidden iframe
|
17544
17545
|
_a.sent();
|
17545
|
-
this.
|
17546
|
+
this._overlayRef.detach();
|
17546
17547
|
return [2 /*return*/];
|
17547
17548
|
}
|
17548
17549
|
});
|
@@ -17556,13 +17557,13 @@
|
|
17556
17557
|
};
|
17557
17558
|
return OktaComponent;
|
17558
17559
|
}());
|
17559
|
-
OktaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaComponent, deps: [{ token:
|
17560
|
+
OktaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaComponent, deps: [{ token: TranslateService }, { token: i1__namespace$2.OverlayRef }, { token: BIZDOC_CONFIG }, { token: oktaAngular.OKTA_CONFIG }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
17560
17561
|
OktaComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: OktaComponent, selector: "ng-component", ngImport: i0__namespace, template: "<div id=\"sign-in-widget\"></div>", isInline: true });
|
17561
17562
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaComponent, decorators: [{
|
17562
17563
|
type: i0.Component,
|
17563
17564
|
args: [{ template: "<div id=\"sign-in-widget\"></div>" }]
|
17564
17565
|
}], ctorParameters: function () {
|
17565
|
-
return [{ type:
|
17566
|
+
return [{ type: TranslateService }, { type: i1__namespace$2.OverlayRef }, { type: undefined, decorators: [{
|
17566
17567
|
type: i0.Inject,
|
17567
17568
|
args: [BIZDOC_CONFIG]
|
17568
17569
|
}] }, { type: undefined, decorators: [{
|
@@ -18300,9 +18301,103 @@
|
|
18300
18301
|
args: [i7$5.AccumulationChartComponent]
|
18301
18302
|
}] } });
|
18302
18303
|
|
18304
|
+
/** opens cube preview and explore */
|
18305
|
+
var CubeInfo = /** @class */ (function () {
|
18306
|
+
function CubeInfo(_session, _service, _router, _popup, _cf) {
|
18307
|
+
this._session = _session;
|
18308
|
+
this._service = _service;
|
18309
|
+
this._router = _router;
|
18310
|
+
this._popup = _popup;
|
18311
|
+
this._cf = _cf;
|
18312
|
+
}
|
18313
|
+
CubeInfo.prototype.navigate = function (axes, options) {
|
18314
|
+
var _a = options || {}, cube = _a.cube, view = _a.view, serie = _a.serie, xAxis = _a.xAxis, filters = _a.filters, aggregate = _a.aggregate, indices = _a.indices, sum = _a.sum;
|
18315
|
+
var ccube = cube ? this._session.profile.cubes.find(function (c) { return c.name === cube; }) : this._session.profile.cubes[0];
|
18316
|
+
if (isArray(axes))
|
18317
|
+
axes = this._mapAxes(ccube, axes);
|
18318
|
+
if (view)
|
18319
|
+
this._router.navigate(['cube', ccube.name, 'v', view], {
|
18320
|
+
queryParams: axes
|
18321
|
+
});
|
18322
|
+
else {
|
18323
|
+
this._router.navigate(['cube', ccube.name, 'i', xAxis, serie], {
|
18324
|
+
queryParams: axes,
|
18325
|
+
state: { indices: indices, aggregate: aggregate, filters: filters, sum: sum }
|
18326
|
+
});
|
18327
|
+
}
|
18328
|
+
};
|
18329
|
+
/**
|
18330
|
+
*
|
18331
|
+
* @param axes
|
18332
|
+
* @param options
|
18333
|
+
*/
|
18334
|
+
CubeInfo.prototype.popup = function (axes, element, options) {
|
18335
|
+
var cube = options && options.cube ? this._session.profile.cubes.find(function (c) { return c.name === options.cube; }) : this._session.profile.cubes[0];
|
18336
|
+
var template = cube.template;
|
18337
|
+
if (isArray(axes))
|
18338
|
+
axes = this._mapAxes(cube, axes);
|
18339
|
+
if (template) {
|
18340
|
+
var comp = this._cf.component(template);
|
18341
|
+
this._open(comp, element, {
|
18342
|
+
axes: axes,
|
18343
|
+
options: options
|
18344
|
+
});
|
18345
|
+
}
|
18346
|
+
else {
|
18347
|
+
if (!options)
|
18348
|
+
throw 'no options';
|
18349
|
+
this._open(CubeInfoComponent, element, {
|
18350
|
+
axes: axes,
|
18351
|
+
options: options
|
18352
|
+
});
|
18353
|
+
}
|
18354
|
+
};
|
18355
|
+
/**
|
18356
|
+
*
|
18357
|
+
* @param axes
|
18358
|
+
* @param options
|
18359
|
+
*/
|
18360
|
+
CubeInfo.prototype.explore = function (axes, options) {
|
18361
|
+
var _a = options || {}, index = _a.index, base = _a.base, name = _a.cube, scope = _a.scope;
|
18362
|
+
var cube = name ? this._session.profile.cubes.find(function (c) { return c.name === name; }) : this._session.profile.cubes[0];
|
18363
|
+
if (isArray(axes))
|
18364
|
+
axes = this._mapAxes(cube, axes);
|
18365
|
+
base && this._service.base(cube.name, axes, base);
|
18366
|
+
this._router.navigate(['cube', cube.name, 'explore'], {
|
18367
|
+
queryParams: axes,
|
18368
|
+
state: {
|
18369
|
+
index: index,
|
18370
|
+
scope: scope
|
18371
|
+
}
|
18372
|
+
});
|
18373
|
+
};
|
18374
|
+
/**
|
18375
|
+
* axes as map
|
18376
|
+
* @param cube
|
18377
|
+
* @param axes
|
18378
|
+
*/
|
18379
|
+
CubeInfo.prototype._mapAxes = function (cube, axes) {
|
18380
|
+
var filters = {};
|
18381
|
+
axes.forEach(function (a, i) { return a && (filters[cube.axes[i].name] = a); });
|
18382
|
+
return filters;
|
18383
|
+
};
|
18384
|
+
CubeInfo.prototype._open = function (comp, element, data) {
|
18385
|
+
this._popup.open(comp, element, {
|
18386
|
+
data: data
|
18387
|
+
});
|
18388
|
+
};
|
18389
|
+
return CubeInfo;
|
18390
|
+
}());
|
18391
|
+
CubeInfo.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeInfo, deps: [{ token: SessionService }, { token: CubeService }, { token: RouterImpl }, { token: Popup }, { token: BizDocComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
18392
|
+
CubeInfo.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeInfo });
|
18393
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeInfo, decorators: [{
|
18394
|
+
type: i0.Injectable
|
18395
|
+
}], ctorParameters: function () { return [{ type: SessionService }, { type: CubeService }, { type: RouterImpl }, { type: Popup }, { type: BizDocComponentFactoryResolver }]; } });
|
18396
|
+
|
18303
18397
|
var CubeAnalysisBase = /** @class */ (function () {
|
18304
|
-
function CubeAnalysisBase(ref, _session, _ds, _service) {
|
18398
|
+
function CubeAnalysisBase(ref, _info, _session, _ds, _service) {
|
18305
18399
|
var _this = this;
|
18400
|
+
this._info = _info;
|
18306
18401
|
this._session = _session;
|
18307
18402
|
this._ds = _ds;
|
18308
18403
|
this._service = _service;
|
@@ -18332,6 +18427,23 @@
|
|
18332
18427
|
_this._data && _this.onResize(d);
|
18333
18428
|
});
|
18334
18429
|
}
|
18430
|
+
Object.defineProperty(CubeAnalysisBase.prototype, "series", {
|
18431
|
+
get: function () { return this._series; },
|
18432
|
+
enumerable: false,
|
18433
|
+
configurable: true
|
18434
|
+
});
|
18435
|
+
Object.defineProperty(CubeAnalysisBase.prototype, "xAxis", {
|
18436
|
+
get: function () { return this._xAxis; },
|
18437
|
+
enumerable: false,
|
18438
|
+
configurable: true
|
18439
|
+
});
|
18440
|
+
CubeAnalysisBase.prototype.explore = function (axes, options) {
|
18441
|
+
this._info.explore(axes, {
|
18442
|
+
cube: this._cube.name,
|
18443
|
+
index: options && options.index ? options.index : null,
|
18444
|
+
scope: this._options.scope
|
18445
|
+
});
|
18446
|
+
};
|
18335
18447
|
CubeAnalysisBase.prototype.onBind = function (data) {
|
18336
18448
|
var _this = this;
|
18337
18449
|
var observables = [];
|
@@ -18365,11 +18477,11 @@
|
|
18365
18477
|
return CubeAnalysisBase;
|
18366
18478
|
}());
|
18367
18479
|
CubeAnalysisBase.nextId = 0;
|
18368
|
-
CubeAnalysisBase.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeAnalysisBase, deps: [{ token: WidgetRef }, { token: SessionService }, { token: DatasourceService }, { token: CubeService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
18480
|
+
CubeAnalysisBase.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeAnalysisBase, deps: [{ token: WidgetRef }, { token: CubeInfo }, { token: SessionService }, { token: DatasourceService }, { token: CubeService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
18369
18481
|
CubeAnalysisBase.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: CubeAnalysisBase, ngImport: i0__namespace });
|
18370
18482
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeAnalysisBase, decorators: [{
|
18371
18483
|
type: i0.Directive
|
18372
|
-
}], ctorParameters: function () { return [{ type: WidgetRef }, { type: SessionService }, { type: DatasourceService }, { type: CubeService }]; } });
|
18484
|
+
}], ctorParameters: function () { return [{ type: WidgetRef }, { type: CubeInfo }, { type: SessionService }, { type: DatasourceService }, { type: CubeService }]; } });
|
18373
18485
|
|
18374
18486
|
i7$5.AccumulationChart.Inject(i7$5.AccumulationDataLabel, i7$5.AccumulationTooltip);
|
18375
18487
|
function cardColor() {
|
@@ -18378,8 +18490,8 @@
|
|
18378
18490
|
/** statistics component*/
|
18379
18491
|
var CubeAccumAnalysisWidget = /** @class */ (function (_super) {
|
18380
18492
|
__extends(CubeAccumAnalysisWidget, _super);
|
18381
|
-
function CubeAccumAnalysisWidget(ref, session, ds, cube, _elementRef) {
|
18382
|
-
var _this = _super.call(this, ref, session, ds, cube) || this;
|
18493
|
+
function CubeAccumAnalysisWidget(ref, info, session, ds, cube, _elementRef) {
|
18494
|
+
var _this = _super.call(this, ref, info, session, ds, cube) || this;
|
18383
18495
|
_this._elementRef = _elementRef;
|
18384
18496
|
_this.data = [];
|
18385
18497
|
_this.startAngle = 0;
|
@@ -18473,6 +18585,7 @@
|
|
18473
18585
|
background: 'transparent',
|
18474
18586
|
legendSettings: this.legend,
|
18475
18587
|
enableAnimation: true,
|
18588
|
+
pointClick: this.pointClick.bind(this),
|
18476
18589
|
tooltip: this.tooltip,
|
18477
18590
|
currencyCode: this.currencyCode,
|
18478
18591
|
tooltipRender: this.tooltipRender.bind(this),
|
@@ -18480,13 +18593,20 @@
|
|
18480
18593
|
series: series
|
18481
18594
|
}, this._elementRef.nativeElement);
|
18482
18595
|
};
|
18596
|
+
CubeAccumAnalysisWidget.prototype.pointClick = function (evt) {
|
18597
|
+
var axes = {};
|
18598
|
+
var x = evt.series.dataSource[evt.pointIndex].x.split(AXES_CODE_DIVIDER);
|
18599
|
+
for (var i = 0; i < this.xAxis.length; i++)
|
18600
|
+
axes[this.xAxis[i]] = x[i];
|
18601
|
+
this.explore(axes);
|
18602
|
+
};
|
18483
18603
|
CubeAccumAnalysisWidget.prototype.ngOnDestroy = function () {
|
18484
18604
|
this.chart && this.chart.destroy();
|
18485
18605
|
_super.prototype.ngOnDestroy.call(this);
|
18486
18606
|
};
|
18487
18607
|
return CubeAccumAnalysisWidget;
|
18488
18608
|
}(CubeAnalysisBase));
|
18489
|
-
CubeAccumAnalysisWidget.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeAccumAnalysisWidget, deps: [{ token: WidgetRef }, { token: SessionService }, { token: DatasourceService }, { token: CubeService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
18609
|
+
CubeAccumAnalysisWidget.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeAccumAnalysisWidget, deps: [{ token: WidgetRef }, { token: CubeInfo }, { token: SessionService }, { token: DatasourceService }, { token: CubeService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
18490
18610
|
CubeAccumAnalysisWidget.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: CubeAccumAnalysisWidget, selector: "bizdoc-accum-cube-analysis", host: { attributes: { "dir": "ltr" }, properties: { "id": "id" } }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
18491
18611
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeAccumAnalysisWidget, decorators: [{
|
18492
18612
|
type: i0.Component,
|
@@ -18499,14 +18619,14 @@
|
|
18499
18619
|
dir: 'ltr'
|
18500
18620
|
}
|
18501
18621
|
}]
|
18502
|
-
}], ctorParameters: function () { return [{ type: WidgetRef }, { type: SessionService }, { type: DatasourceService }, { type: CubeService }, { type: i0__namespace.ElementRef }]; } });
|
18622
|
+
}], ctorParameters: function () { return [{ type: WidgetRef }, { type: CubeInfo }, { type: SessionService }, { type: DatasourceService }, { type: CubeService }, { type: i0__namespace.ElementRef }]; } });
|
18503
18623
|
|
18504
18624
|
i7$5.Chart.Inject(i7$5.DateTime, i7$5.BarSeries, i7$5.AreaSeries, i7$5.BubbleSeries, i7$5.ColumnSeries, i7$5.LineSeries, i7$5.PolarSeries, i7$5.RadarSeries, i7$5.SplineSeries, i7$5.SplineAreaSeries, i7$5.ScatterSeries, i7$5.StackingLineSeries, i7$5.StackingAreaSeries, i7$5.StackingColumnSeries, i7$5.StackingBarSeries, i7$5.StepAreaSeries, i7$5.StepLineSeries);
|
18505
18625
|
/** statistics component*/
|
18506
18626
|
var CubeChartAnalysisWidget = /** @class */ (function (_super) {
|
18507
18627
|
__extends(CubeChartAnalysisWidget, _super);
|
18508
|
-
function CubeChartAnalysisWidget(ref, session, ds, cube, _elementRef, _translate) {
|
18509
|
-
var _this = _super.call(this, ref, session, ds, cube) || this;
|
18628
|
+
function CubeChartAnalysisWidget(ref, session, ds, cube, info, _elementRef, _translate) {
|
18629
|
+
var _this = _super.call(this, ref, info, session, ds, cube) || this;
|
18510
18630
|
_this._elementRef = _elementRef;
|
18511
18631
|
_this._translate = _translate;
|
18512
18632
|
_this.type = _this._options.chartType || 'Column';
|
@@ -18546,12 +18666,14 @@
|
|
18546
18666
|
}
|
18547
18667
|
CubeChartAnalysisWidget.prototype.onLoad = function (data) {
|
18548
18668
|
var _this = this;
|
18549
|
-
|
18669
|
+
var series = data.map(function (s) {
|
18550
18670
|
if (s.type === 'Index')
|
18551
18671
|
return {
|
18552
|
-
yName: 'y', xName: 'name',
|
18672
|
+
yName: 'y', xName: 'name',
|
18673
|
+
type: _this.indexType,
|
18553
18674
|
name: s.title,
|
18554
18675
|
width: 2,
|
18676
|
+
stackingGroup: 'index',
|
18555
18677
|
marker: {
|
18556
18678
|
shape: 'Diamond', width: 4
|
18557
18679
|
},
|
@@ -18567,7 +18689,7 @@
|
|
18567
18689
|
};
|
18568
18690
|
});
|
18569
18691
|
this.chart && this.chart.destroy();
|
18570
|
-
if (
|
18692
|
+
if (series.length)
|
18571
18693
|
this.chart = new i7$5.Chart({
|
18572
18694
|
width: '100%',
|
18573
18695
|
height: this.height,
|
@@ -18578,16 +18700,27 @@
|
|
18578
18700
|
primaryXAxis: this.primaryXAxis,
|
18579
18701
|
primaryYAxis: this.primaryYAxis,
|
18580
18702
|
tooltip: this.tooltip,
|
18581
|
-
//tooltipRender: this.tooltipRender.bind(this),
|
18582
18703
|
palettes: this.palettes,
|
18583
18704
|
currencyCode: this.currencyCode,
|
18584
|
-
series:
|
18705
|
+
series: series,
|
18706
|
+
pointClick: this.pointClick.bind(this),
|
18585
18707
|
legendSettings: {
|
18586
18708
|
isInversed: this._session.inverse,
|
18587
|
-
visible:
|
18709
|
+
visible: series.length > 1
|
18588
18710
|
}
|
18589
18711
|
}, this._elementRef.nativeElement);
|
18590
18712
|
};
|
18713
|
+
CubeChartAnalysisWidget.prototype.pointClick = function (evt) {
|
18714
|
+
var axes = {}, serie = this._data[evt.seriesIndex], type = serie.type, name = serie.name, points = serie.points;
|
18715
|
+
if (this.series.length && type !== 'Index')
|
18716
|
+
for (var i = 0; i < this.series.length; i++)
|
18717
|
+
axes[this.series[i]] = name.split(AXES_CODE_DIVIDER)[i];
|
18718
|
+
for (var i = 0; i < this.xAxis.length; i++) {
|
18719
|
+
var x = points[evt.pointIndex].x;
|
18720
|
+
axes[this.xAxis[i]] = x.split(AXES_CODE_DIVIDER)[i];
|
18721
|
+
}
|
18722
|
+
this.explore(axes, { index: type === 'Index' ? name : null });
|
18723
|
+
};
|
18591
18724
|
CubeChartAnalysisWidget.prototype.onThemeChange = function () {
|
18592
18725
|
this.onBind(this._data);
|
18593
18726
|
};
|
@@ -18609,7 +18742,7 @@
|
|
18609
18742
|
};
|
18610
18743
|
return CubeChartAnalysisWidget;
|
18611
18744
|
}(CubeAnalysisBase));
|
18612
|
-
CubeChartAnalysisWidget.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeChartAnalysisWidget, deps: [{ token: WidgetRef }, { token: SessionService }, { token: DatasourceService }, { token: CubeService }, { token: i0__namespace.ElementRef }, { token: TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
18745
|
+
CubeChartAnalysisWidget.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeChartAnalysisWidget, deps: [{ token: WidgetRef }, { token: SessionService }, { token: DatasourceService }, { token: CubeService }, { token: CubeInfo }, { token: i0__namespace.ElementRef }, { token: TranslateService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
18613
18746
|
CubeChartAnalysisWidget.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: CubeChartAnalysisWidget, selector: "bizdoc-cube-chart-analysis", host: { attributes: { "dir": "ltr" }, properties: { "id": "id" } }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
18614
18747
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeChartAnalysisWidget, decorators: [{
|
18615
18748
|
type: i0.Component,
|
@@ -18622,7 +18755,7 @@
|
|
18622
18755
|
dir: 'ltr'
|
18623
18756
|
}
|
18624
18757
|
}]
|
18625
|
-
}], ctorParameters: function () { return [{ type: WidgetRef }, { type: SessionService }, { type: DatasourceService }, { type: CubeService }, { type: i0__namespace.ElementRef }, { type: TranslateService }]; } });
|
18758
|
+
}], ctorParameters: function () { return [{ type: WidgetRef }, { type: SessionService }, { type: DatasourceService }, { type: CubeService }, { type: CubeInfo }, { type: i0__namespace.ElementRef }, { type: TranslateService }]; } });
|
18626
18759
|
|
18627
18760
|
exports.CubeAnalysisWidget = /** @class */ (function () {
|
18628
18761
|
function CubeAnalysisWidget(_ref, _resolver, _injector, _vc) {
|
@@ -19212,7 +19345,9 @@
|
|
19212
19345
|
this.tooltip = {
|
19213
19346
|
enable: true, type: ['Range', 'Pointer'], textStyle: {
|
19214
19347
|
fontFamily: FONT_FAMILY
|
19215
|
-
}
|
19348
|
+
},
|
19349
|
+
annotationSettings: {},
|
19350
|
+
showAtMousePosition: false
|
19216
19351
|
};
|
19217
19352
|
this.margin = { left: 0, top: 0, right: 0, bottom: 0 };
|
19218
19353
|
this._standardHigh = 0;
|
@@ -20836,8 +20971,9 @@
|
|
20836
20971
|
}] });
|
20837
20972
|
|
20838
20973
|
var AppHttpInterceptor = /** @class */ (function () {
|
20839
|
-
function AppHttpInterceptor(baseUrl, _session, _messaging) {
|
20974
|
+
function AppHttpInterceptor(baseUrl, _session, _auth, _messaging) {
|
20840
20975
|
this._session = _session;
|
20976
|
+
this._auth = _auth;
|
20841
20977
|
this._messaging = _messaging;
|
20842
20978
|
this._ongoing = new rxjs.Subject();
|
20843
20979
|
this.active$ = this._ongoing.asObservable().pipe(operators.map(function (c) { return c > 0; }));
|
@@ -20852,27 +20988,31 @@
|
|
20852
20988
|
}
|
20853
20989
|
AppHttpInterceptor.prototype.intercept = function (req, next) {
|
20854
20990
|
var _this = this;
|
20855
|
-
var url = this._baseUrl + req.url
|
20991
|
+
var url = this._baseUrl + req.url, connectionId = this._messaging.connectionId, headers = {
|
20992
|
+
'accept-language': this._session.language,
|
20993
|
+
};
|
20994
|
+
if (connectionId)
|
20995
|
+
headers['connection-id'] = connectionId;
|
20996
|
+
var accessToken = this._auth.getAccessToken();
|
20997
|
+
if (accessToken)
|
20998
|
+
headers['Authorization'] = "Bearer " + accessToken;
|
20856
20999
|
var request = req.clone({
|
20857
|
-
setHeaders:
|
20858
|
-
'accept-language': this._session.language,
|
20859
|
-
'connection-id': this._messaging.connectionId || ''
|
20860
|
-
},
|
21000
|
+
setHeaders: headers,
|
20861
21001
|
url: url
|
20862
21002
|
});
|
20863
|
-
var
|
20864
|
-
|
20865
|
-
}));
|
20866
|
-
if (!req.headers.has('no-progress')) {
|
21003
|
+
var noprogress = req.headers.has('no-progress');
|
21004
|
+
if (!noprogress) {
|
20867
21005
|
this._ongoing.next(1);
|
20868
|
-
return
|
21006
|
+
return next.handle(request)
|
21007
|
+
.pipe(operators.tap(function (event) { return event instanceof i1.HttpResponse
|
20869
21008
|
&& _this._ongoing.next(0); }, function () { return _this._ongoing.next(0); }));
|
20870
21009
|
}
|
20871
|
-
|
21010
|
+
else
|
21011
|
+
return next.handle(request);
|
20872
21012
|
};
|
20873
21013
|
return AppHttpInterceptor;
|
20874
21014
|
}());
|
20875
|
-
AppHttpInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AppHttpInterceptor, deps: [{ token: 'BASE_URL', optional: true }, { token: SessionService }, { token: HubService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
21015
|
+
AppHttpInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AppHttpInterceptor, deps: [{ token: 'BASE_URL', optional: true }, { token: SessionService }, { token: AuthenticationImpl }, { token: HubService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
20876
21016
|
AppHttpInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AppHttpInterceptor, providedIn: 'root' });
|
20877
21017
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AppHttpInterceptor, decorators: [{
|
20878
21018
|
type: i0.Injectable,
|
@@ -20883,7 +21023,7 @@
|
|
20883
21023
|
args: ['BASE_URL']
|
20884
21024
|
}, {
|
20885
21025
|
type: i0.Optional
|
20886
|
-
}] }, { type: SessionService }, { type: HubService }];
|
21026
|
+
}] }, { type: SessionService }, { type: AuthenticationImpl }, { type: HubService }];
|
20887
21027
|
} });
|
20888
21028
|
|
20889
21029
|
/** sign component*/
|
@@ -20898,10 +21038,19 @@
|
|
20898
21038
|
QuickSignComponent.prototype.signOut = function () {
|
20899
21039
|
var _this = this;
|
20900
21040
|
this._popupRef.close();
|
20901
|
-
|
21041
|
+
var task = function () {
|
20902
21042
|
_this._ps.mask('Goodbye');
|
20903
21043
|
location.assign('/');
|
20904
|
-
}
|
21044
|
+
};
|
21045
|
+
this._ps.ask('SignOutAsk', 'SignOut', { ok: 'Yes', cancel: 'No' }).subscribe(function (ok) {
|
21046
|
+
if (ok) {
|
21047
|
+
if (_this._auth.signOut)
|
21048
|
+
_this._auth.signOut().
|
21049
|
+
then(task);
|
21050
|
+
else
|
21051
|
+
task();
|
21052
|
+
}
|
21053
|
+
});
|
20905
21054
|
};
|
20906
21055
|
QuickSignComponent.prototype.impersonate = function () {
|
20907
21056
|
var _this = this;
|
@@ -21426,7 +21575,7 @@
|
|
21426
21575
|
return QuickNotificationsComponent;
|
21427
21576
|
}(NotificationsComponentBase));
|
21428
21577
|
QuickNotificationsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: QuickNotificationsComponent, deps: [{ token: PopupRef }, { token: PanesRouter }, { token: NotificationsService }, { token: SessionService }, { token: i0__namespace.Injector }, { token: OptionsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
21429
|
-
QuickNotificationsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: QuickNotificationsComponent, selector: "bizdoc-notifications", usesInheritance: true, ngImport: i0__namespace, template: "<mat-nav-list role=\"list\">\r\n <!--dense-->\r\n <mat-list-item role=\"listitem\" *ngFor=\"let n of notifications | sort: 'sent' : 'desc' | slice:0:9; let i=index\" class=\"item\" [class.read]=\"n.read\" (click)=\"open(n, $event)\">\r\n <h3 *ngComponentOutlet=\"n.comp; injector: n.injector\" matLine></h3>\r\n <p matLine><span [matTooltip]=\"n.sent | amCalendar\">{{n.sent | amTimeAgo }}</span></p>\r\n <button mat-icon-button [matMenuTriggerFor]=\"options\" [matMenuTriggerData]=\"{muted: false}\" class=\"tool\"><mat-icon>more_vert</mat-icon></button>\r\n <mat-menu #options>\r\n <ng-template matMenuContent let-muted=\"muted\">\r\n <button mat-menu-item (click)=\"mute(n, true)\">{{ (!(muted | async) ? 'Mute': 'Unmute') | translate}}</button>\r\n </ng-template>\r\n </mat-menu>\r\n </mat-list-item>\r\n</mat-nav-list>\r\n<div class=\"tools\">\r\n <a (click)=\"all()\">{{'ShowAll'|translate}}</a> \r\n <span class=\"divider\"></span>\r\n <a (click)='options()'>{{'Options'|translate}}</a>\r\n</div>\r\n", styles: [".item .tool{opacity:.1}.item:hover .tool{opacity:1}.tools{
|
21578
|
+
QuickNotificationsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: QuickNotificationsComponent, selector: "bizdoc-notifications", usesInheritance: true, ngImport: i0__namespace, template: "<mat-nav-list role=\"list\">\r\n <!--dense-->\r\n <mat-list-item role=\"listitem\" *ngFor=\"let n of notifications | sort: 'sent' : 'desc' | slice:0:9; let i=index\" class=\"item\" [class.read]=\"n.read\" (click)=\"open(n, $event)\">\r\n <h3 *ngComponentOutlet=\"n.comp; injector: n.injector\" matLine></h3>\r\n <p matLine><span [matTooltip]=\"n.sent | amCalendar\">{{n.sent | amTimeAgo }}</span></p>\r\n <button mat-icon-button [matMenuTriggerFor]=\"options\" [matMenuTriggerData]=\"{muted: false}\" class=\"tool\"><mat-icon>more_vert</mat-icon></button>\r\n <mat-menu #options>\r\n <ng-template matMenuContent let-muted=\"muted\">\r\n <button mat-menu-item (click)=\"mute(n, true)\">{{ (!(muted | async) ? 'Mute': 'Unmute') | translate}}</button>\r\n </ng-template>\r\n </mat-menu>\r\n </mat-list-item>\r\n</mat-nav-list>\r\n<div class=\"tools row\">\r\n <a (click)=\"all()\">{{'ShowAll'|translate}}</a> \r\n <span class=\"divider\"></span>\r\n <a (click)='options()'>{{'Options'|translate}}</a>\r\n</div>\r\n", styles: [".item .tool{opacity:.1}.item:hover .tool{opacity:1}.tools{font-feature-settings:\"smcp\",\"c2sc\";font-variant-caps:all-small-caps;font-size:medium;padding:8px}\n"], components: [{ type: i2__namespace$3.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: i2__namespace$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i7__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i8__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9__namespace$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i9__namespace$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10__namespace.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }, { type: i6__namespace$1.MatLine, selector: "[mat-line], [matLine]" }, { type: i12__namespace.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i9__namespace$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: i9__namespace$2.MatMenuContent, selector: "ng-template[matMenuContent]" }], pipes: { "slice": i10__namespace.SlicePipe, "sort": ArraySortPipe, "amCalendar": i14__namespace.CalendarPipe, "amTimeAgo": i14__namespace.TimeAgoPipe, "translate": TranslatePipe, "async": i10__namespace.AsyncPipe } });
|
21430
21579
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: QuickNotificationsComponent, decorators: [{
|
21431
21580
|
type: i0.Component,
|
21432
21581
|
args: [{
|
@@ -22943,7 +23092,6 @@
|
|
22943
23092
|
var REVISIT_TAB_REFRESH = 10000;
|
22944
23093
|
var BizDocApp = /** @class */ (function () {
|
22945
23094
|
function BizDocApp(_signIn, _vc, _cfr, _session, _messaging) {
|
22946
|
-
var _this = this;
|
22947
23095
|
this._signIn = _signIn;
|
22948
23096
|
this._vc = _vc;
|
22949
23097
|
this._cfr = _cfr;
|
@@ -22957,8 +23105,13 @@
|
|
22957
23105
|
document.dir = doc.dir = body.dir = this.dir = 'rtl';
|
22958
23106
|
ej2Base.enableRtl();
|
22959
23107
|
}
|
22960
|
-
this.
|
23108
|
+
this._connect();
|
22961
23109
|
}
|
23110
|
+
BizDocApp.prototype._connect = function () {
|
23111
|
+
var _this = this;
|
23112
|
+
this._session.refresh().subscribe(this._initialize.bind(this), function () { return _this._signIn.pop().
|
23113
|
+
subscribe(_this._connect.bind(_this)); });
|
23114
|
+
};
|
22962
23115
|
BizDocApp.prototype._initialize = function () {
|
22963
23116
|
var _this = this;
|
22964
23117
|
if (isMobile()) {
|
@@ -23623,99 +23776,6 @@
|
|
23623
23776
|
args: [i0.TemplateRef, { static: true }]
|
23624
23777
|
}] } });
|
23625
23778
|
|
23626
|
-
/** opens cube preview and explore */
|
23627
|
-
var CubeInfo = /** @class */ (function () {
|
23628
|
-
function CubeInfo(_session, _service, _router, _popup, _cf) {
|
23629
|
-
this._session = _session;
|
23630
|
-
this._service = _service;
|
23631
|
-
this._router = _router;
|
23632
|
-
this._popup = _popup;
|
23633
|
-
this._cf = _cf;
|
23634
|
-
}
|
23635
|
-
CubeInfo.prototype.navigate = function (axes, options) {
|
23636
|
-
var _a = options || {}, cube = _a.cube, view = _a.view, serie = _a.serie, xAxis = _a.xAxis, filters = _a.filters, aggregate = _a.aggregate, indices = _a.indices, sum = _a.sum;
|
23637
|
-
var ccube = cube ? this._session.profile.cubes.find(function (c) { return c.name === cube; }) : this._session.profile.cubes[0];
|
23638
|
-
if (isArray(axes))
|
23639
|
-
axes = this._mapAxes(ccube, axes);
|
23640
|
-
if (view)
|
23641
|
-
this._router.navigate(['cube', ccube.name, 'v', view], {
|
23642
|
-
queryParams: axes
|
23643
|
-
});
|
23644
|
-
else {
|
23645
|
-
this._router.navigate(['cube', ccube.name, 'i', xAxis, serie], {
|
23646
|
-
queryParams: axes,
|
23647
|
-
state: { indices: indices, aggregate: aggregate, filters: filters, sum: sum }
|
23648
|
-
});
|
23649
|
-
}
|
23650
|
-
};
|
23651
|
-
/**
|
23652
|
-
*
|
23653
|
-
* @param axes
|
23654
|
-
* @param options
|
23655
|
-
*/
|
23656
|
-
CubeInfo.prototype.open = function (axes, element, options) {
|
23657
|
-
var cube = options && options.cube ? this._session.profile.cubes.find(function (c) { return c.name === options.cube; }) : this._session.profile.cubes[0];
|
23658
|
-
var template = cube.template;
|
23659
|
-
if (isArray(axes))
|
23660
|
-
axes = this._mapAxes(cube, axes);
|
23661
|
-
if (template) {
|
23662
|
-
var comp = this._cf.component(template);
|
23663
|
-
this._open(comp, element, {
|
23664
|
-
axes: axes,
|
23665
|
-
options: options
|
23666
|
-
});
|
23667
|
-
}
|
23668
|
-
else {
|
23669
|
-
if (!options)
|
23670
|
-
throw 'no options';
|
23671
|
-
this._open(CubeInfoComponent, element, {
|
23672
|
-
axes: axes,
|
23673
|
-
options: options
|
23674
|
-
});
|
23675
|
-
}
|
23676
|
-
};
|
23677
|
-
/**
|
23678
|
-
*
|
23679
|
-
* @param axes
|
23680
|
-
* @param options
|
23681
|
-
*/
|
23682
|
-
CubeInfo.prototype.explore = function (axes, options) {
|
23683
|
-
var _a = options || {}, index = _a.index, base = _a.base, name = _a.cube, scope = _a.scope;
|
23684
|
-
var cube = name ? this._session.profile.cubes.find(function (c) { return c.name === name; }) : this._session.profile.cubes[0];
|
23685
|
-
if (isArray(axes))
|
23686
|
-
axes = this._mapAxes(cube, axes);
|
23687
|
-
base && this._service.base(cube.name, axes, base);
|
23688
|
-
this._router.navigate(['cube', cube.name, 'explore'], {
|
23689
|
-
queryParams: axes,
|
23690
|
-
state: {
|
23691
|
-
index: index,
|
23692
|
-
scope: scope
|
23693
|
-
}
|
23694
|
-
});
|
23695
|
-
};
|
23696
|
-
/**
|
23697
|
-
* axes as map
|
23698
|
-
* @param cube
|
23699
|
-
* @param axes
|
23700
|
-
*/
|
23701
|
-
CubeInfo.prototype._mapAxes = function (cube, axes) {
|
23702
|
-
var filters = {};
|
23703
|
-
axes.forEach(function (a, i) { return a && (filters[cube.axes[i].name] = a); });
|
23704
|
-
return filters;
|
23705
|
-
};
|
23706
|
-
CubeInfo.prototype._open = function (comp, element, data) {
|
23707
|
-
this._popup.open(comp, element, {
|
23708
|
-
data: data
|
23709
|
-
});
|
23710
|
-
};
|
23711
|
-
return CubeInfo;
|
23712
|
-
}());
|
23713
|
-
CubeInfo.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeInfo, deps: [{ token: SessionService }, { token: CubeService }, { token: RouterImpl }, { token: Popup }, { token: BizDocComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
23714
|
-
CubeInfo.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeInfo });
|
23715
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: CubeInfo, decorators: [{
|
23716
|
-
type: i0.Injectable
|
23717
|
-
}], ctorParameters: function () { return [{ type: SessionService }, { type: CubeService }, { type: RouterImpl }, { type: Popup }, { type: BizDocComponentFactoryResolver }]; } });
|
23718
|
-
|
23719
23779
|
var COMBINATION_PICKER_BODY = new i0.InjectionToken('combination_body');
|
23720
23780
|
/** */
|
23721
23781
|
var CombinationPickerBody = /** @class */ (function () {
|
@@ -23838,7 +23898,7 @@
|
|
23838
23898
|
var defaults = (this._data.exploreSettings || {}).defaults;
|
23839
23899
|
var axes = Object.assign({}, defaults);
|
23840
23900
|
codes.slice(0, this._axes.length).forEach(function (a, i) { return axes[_this._axes[i].name] = a; });
|
23841
|
-
this._accountInfo.
|
23901
|
+
this._accountInfo.popup(axes, evt.srcElement, Object.assign(Object.assign({}, this._data.exploreSettings), { cube: this._cube.name }));
|
23842
23902
|
evt.cancelBubble = true;
|
23843
23903
|
evt.preventDefault();
|
23844
23904
|
evt.stopPropagation();
|
@@ -24982,11 +25042,28 @@
|
|
24982
25042
|
var SharedModule = /** @class */ (function () {
|
24983
25043
|
function SharedModule() {
|
24984
25044
|
}
|
24985
|
-
SharedModule.forChild = function () {
|
25045
|
+
SharedModule.forChild = function (config) {
|
25046
|
+
var _a = config || {}, formats = _a.formats, maps = _a.maps;
|
24986
25047
|
registerComponents(CORE_COMPONENTS);
|
25048
|
+
var providers = [{
|
25049
|
+
provide: RouterImpl, useClass: !config || !config.routing || config.routing === 'ng' ? NgRouter : PaneRouter
|
25050
|
+
},
|
25051
|
+
{
|
25052
|
+
provide: i6.MAT_DATE_FORMATS, useValue: {
|
25053
|
+
parse: {
|
25054
|
+
dateInput: 'LL',
|
25055
|
+
},
|
25056
|
+
display: {
|
25057
|
+
dateInput: (formats || {}).date || 'll',
|
25058
|
+
monthYearLabel: 'MMM YYYY',
|
25059
|
+
dateA11yLabel: 'LL',
|
25060
|
+
monthYearA11yLabel: 'MMMM YYYY',
|
25061
|
+
}
|
25062
|
+
}
|
25063
|
+
}];
|
24987
25064
|
return {
|
24988
25065
|
ngModule: SharedModule,
|
24989
|
-
providers:
|
25066
|
+
providers: providers
|
24990
25067
|
};
|
24991
25068
|
};
|
24992
25069
|
return SharedModule;
|
@@ -25096,9 +25173,6 @@
|
|
25096
25173
|
GuideService, OptionsService,
|
25097
25174
|
BizDocComponentFactoryResolver, PromptService, TranslateService,
|
25098
25175
|
i2$2.ToolbarService, i2$2.HtmlEditorService,
|
25099
|
-
{
|
25100
|
-
provide: RouterImpl, useClass: isMobile() ? NgRouter : PaneRouter
|
25101
|
-
},
|
25102
25176
|
{ provide: i1.HTTP_INTERCEPTORS, useClass: AppHttpInterceptor, multi: true },
|
25103
25177
|
{ provide: i0.APP_INITIALIZER, useFactory: TranslateProviderFactory, deps: [TranslateService], multi: true },
|
25104
25178
|
], imports: [[
|
@@ -25211,9 +25285,6 @@
|
|
25211
25285
|
GuideService, OptionsService,
|
25212
25286
|
BizDocComponentFactoryResolver, PromptService, TranslateService,
|
25213
25287
|
i2$2.ToolbarService, i2$2.HtmlEditorService,
|
25214
|
-
{
|
25215
|
-
provide: RouterImpl, useClass: isMobile() ? NgRouter : PaneRouter
|
25216
|
-
},
|
25217
25288
|
{ provide: i1.HTTP_INTERCEPTORS, useClass: AppHttpInterceptor, multi: true },
|
25218
25289
|
{ provide: i0.APP_INITIALIZER, useFactory: TranslateProviderFactory, deps: [TranslateService], multi: true },
|
25219
25290
|
],
|
@@ -27620,7 +27691,7 @@
|
|
27620
27691
|
function SystemModule() {
|
27621
27692
|
}
|
27622
27693
|
SystemModule.forChild = function () {
|
27623
|
-
SYSTEM_COMPONENTS
|
27694
|
+
registerComponents(SYSTEM_COMPONENTS);
|
27624
27695
|
return {
|
27625
27696
|
ngModule: SystemModule,
|
27626
27697
|
providers: []
|
@@ -27889,58 +27960,18 @@
|
|
27889
27960
|
}]
|
27890
27961
|
}] });
|
27891
27962
|
|
27892
|
-
var OktaHttpInterceptor = /** @class */ (function () {
|
27893
|
-
function OktaHttpInterceptor(_okta) {
|
27894
|
-
this._okta = _okta;
|
27895
|
-
}
|
27896
|
-
OktaHttpInterceptor.prototype._isAuthenticated = function () {
|
27897
|
-
return rxjs.from(this._okta.oktaAuth.isAuthenticated());
|
27898
|
-
};
|
27899
|
-
OktaHttpInterceptor.prototype.intercept = function (req, next) {
|
27900
|
-
var _this = this;
|
27901
|
-
return this._isAuthenticated()
|
27902
|
-
.pipe(rxjs.switchMap(function (isAuthenticated) {
|
27903
|
-
if (!isAuthenticated)
|
27904
|
-
return next.handle(req);
|
27905
|
-
var accessToken = _this._okta.oktaAuth.getAccessToken();
|
27906
|
-
req = req.clone({
|
27907
|
-
setHeaders: {
|
27908
|
-
Authorization: "Bearer " + accessToken
|
27909
|
-
}
|
27910
|
-
});
|
27911
|
-
return next.handle(req);
|
27912
|
-
}));
|
27913
|
-
};
|
27914
|
-
return OktaHttpInterceptor;
|
27915
|
-
}());
|
27916
|
-
OktaHttpInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaHttpInterceptor, deps: [{ token: oktaAngular.OKTA_CONFIG }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
27917
|
-
OktaHttpInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaHttpInterceptor, providedIn: 'root' });
|
27918
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaHttpInterceptor, decorators: [{
|
27919
|
-
type: i0.Injectable,
|
27920
|
-
args: [{ providedIn: 'root' }]
|
27921
|
-
}], ctorParameters: function () {
|
27922
|
-
return [{ type: undefined, decorators: [{
|
27923
|
-
type: i0.Inject,
|
27924
|
-
args: [oktaAngular.OKTA_CONFIG]
|
27925
|
-
}] }];
|
27926
|
-
} });
|
27927
|
-
|
27928
27963
|
var BizDocModule = /** @class */ (function () {
|
27929
27964
|
function BizDocModule() {
|
27930
27965
|
}
|
27931
|
-
BizDocModule.forChild = function (config) {
|
27932
|
-
var components = (config || {}).components;
|
27933
|
-
components && registerComponents(components);
|
27934
|
-
return {
|
27935
|
-
ngModule: BizDocModule,
|
27936
|
-
providers: []
|
27937
|
-
};
|
27938
|
-
};
|
27939
27966
|
BizDocModule.forRoot = function (config) {
|
27940
|
-
var formats = config.formats, routes = config.routes, components = config.components, okta = config.okta;
|
27967
|
+
var formats = config.formats, routes = config.routes, components = config.components, okta = config.okta, baseUrl = config.baseUrl;
|
27941
27968
|
registerComponents(components);
|
27942
27969
|
var providers = [
|
27943
27970
|
{ provide: PANES_DATA, useValue: PANES_CONFIG.concat(routes || []) },
|
27971
|
+
{
|
27972
|
+
provide: BIZDOC_CONFIG,
|
27973
|
+
useValue: config
|
27974
|
+
},
|
27944
27975
|
{
|
27945
27976
|
provide: i6.MAT_DATE_FORMATS, useValue: {
|
27946
27977
|
parse: {
|
@@ -27954,10 +27985,6 @@
|
|
27954
27985
|
}
|
27955
27986
|
}
|
27956
27987
|
},
|
27957
|
-
{
|
27958
|
-
provide: BIZDOC_CONFIG,
|
27959
|
-
useValue: config
|
27960
|
-
}
|
27961
27988
|
];
|
27962
27989
|
if (okta) {
|
27963
27990
|
providers.push({
|
@@ -27971,15 +27998,19 @@
|
|
27971
27998
|
}),
|
27972
27999
|
}
|
27973
28000
|
});
|
27974
|
-
providers.push({ provide: i1.HTTP_INTERCEPTORS, useClass: OktaHttpInterceptor, multi: true });
|
27975
28001
|
providers.push({
|
27976
28002
|
provide: AuthenticationImpl, useClass: OktaAuthentication
|
27977
28003
|
});
|
27978
28004
|
}
|
27979
|
-
else
|
28005
|
+
else {
|
27980
28006
|
providers.push({
|
27981
28007
|
provide: AuthenticationImpl, useClass: FormAuthentication
|
27982
28008
|
});
|
28009
|
+
}
|
28010
|
+
baseUrl &&
|
28011
|
+
providers.push({
|
28012
|
+
provide: 'BASE_URL', useValue: baseUrl
|
28013
|
+
});
|
27983
28014
|
return {
|
27984
28015
|
ngModule: BizDocModule,
|
27985
28016
|
providers: providers
|
@@ -28003,7 +28034,7 @@
|
|
28003
28034
|
MobileModule,
|
28004
28035
|
DesktopModule,
|
28005
28036
|
SystemModule.forChild(),
|
28006
|
-
SharedModule.forChild()
|
28037
|
+
SharedModule.forChild({ routing: isMobile() ? 'ng' : 'pane' })
|
28007
28038
|
], SharedModule,
|
28008
28039
|
MaterialModule] });
|
28009
28040
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BizDocModule, decorators: [{
|
@@ -28022,7 +28053,7 @@
|
|
28022
28053
|
MobileModule,
|
28023
28054
|
DesktopModule,
|
28024
28055
|
SystemModule.forChild(),
|
28025
|
-
SharedModule.forChild()
|
28056
|
+
SharedModule.forChild({ routing: isMobile() ? 'ng' : 'pane' })
|
28026
28057
|
],
|
28027
28058
|
exports: [
|
28028
28059
|
SharedModule,
|
@@ -28031,6 +28062,42 @@
|
|
28031
28062
|
}]
|
28032
28063
|
}] });
|
28033
28064
|
|
28065
|
+
var OktaHttpInterceptor = /** @class */ (function () {
|
28066
|
+
function OktaHttpInterceptor(_okta) {
|
28067
|
+
this._okta = _okta;
|
28068
|
+
}
|
28069
|
+
OktaHttpInterceptor.prototype._isAuthenticated = function () {
|
28070
|
+
return rxjs.from(this._okta.oktaAuth.isAuthenticated());
|
28071
|
+
};
|
28072
|
+
OktaHttpInterceptor.prototype.intercept = function (req, next) {
|
28073
|
+
var _this = this;
|
28074
|
+
return this._isAuthenticated()
|
28075
|
+
.pipe(rxjs.switchMap(function (isAuthenticated) {
|
28076
|
+
if (!isAuthenticated)
|
28077
|
+
return next.handle(req);
|
28078
|
+
var accessToken = _this._okta.oktaAuth.getAccessToken();
|
28079
|
+
req = req.clone({
|
28080
|
+
setHeaders: {
|
28081
|
+
Authorization: "Bearer " + accessToken
|
28082
|
+
}
|
28083
|
+
});
|
28084
|
+
return next.handle(req);
|
28085
|
+
}));
|
28086
|
+
};
|
28087
|
+
return OktaHttpInterceptor;
|
28088
|
+
}());
|
28089
|
+
OktaHttpInterceptor.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaHttpInterceptor, deps: [{ token: oktaAngular.OKTA_CONFIG }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
28090
|
+
OktaHttpInterceptor.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaHttpInterceptor, providedIn: 'root' });
|
28091
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: OktaHttpInterceptor, decorators: [{
|
28092
|
+
type: i0.Injectable,
|
28093
|
+
args: [{ providedIn: 'root' }]
|
28094
|
+
}], ctorParameters: function () {
|
28095
|
+
return [{ type: undefined, decorators: [{
|
28096
|
+
type: i0.Inject,
|
28097
|
+
args: [oktaAngular.OKTA_CONFIG]
|
28098
|
+
}] }];
|
28099
|
+
} });
|
28100
|
+
|
28034
28101
|
/**
|
28035
28102
|
* Generated bundle index. Do not edit.
|
28036
28103
|
*/
|
@@ -28045,6 +28112,7 @@
|
|
28045
28112
|
exports.ArraySortPipe = ArraySortPipe;
|
28046
28113
|
exports.AttachmentInfo = AttachmentInfo;
|
28047
28114
|
exports.AttachmentPreview = AttachmentPreview;
|
28115
|
+
exports.AuthenticationImpl = AuthenticationImpl;
|
28048
28116
|
exports.AvatarComponent = AvatarComponent;
|
28049
28117
|
exports.BIZDOC_CONFIG = BIZDOC_CONFIG;
|
28050
28118
|
exports.BizDoc = BizDoc;
|
@@ -28089,6 +28157,7 @@
|
|
28089
28157
|
exports.FadeSlideInOut = FadeSlideInOut;
|
28090
28158
|
exports.FilterPipe = FilterPipe;
|
28091
28159
|
exports.FlowViewComponent = FlowViewComponent;
|
28160
|
+
exports.FormAuthentication = FormAuthentication;
|
28092
28161
|
exports.FormPipe = FormPipe;
|
28093
28162
|
exports.FormRef = FormRef;
|
28094
28163
|
exports.GuideService = GuideService;
|
@@ -28105,6 +28174,7 @@
|
|
28105
28174
|
exports.NavigationStart = NavigationStart;
|
28106
28175
|
exports.NgxComponentOutlet = NgxComponentOutlet;
|
28107
28176
|
exports.NotificationsTableComponent = NotificationsTableComponent;
|
28177
|
+
exports.OktaAuthentication = OktaAuthentication;
|
28108
28178
|
exports.OktaHttpInterceptor = OktaHttpInterceptor;
|
28109
28179
|
exports.POPUP_DATA = POPUP_DATA;
|
28110
28180
|
exports.PaneRef = PaneRef;
|