@bizdoc/core 1.14.0-next.6 → 1.14.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/themes/brown.min.css +17 -17
- package/assets/themes/dark.min.css +1 -78
- package/assets/themes/deep-purple-light-blue.min.css +20 -20
- package/assets/themes/deep-purple-teal.min.css +20 -20
- package/assets/themes/default.min.css +20 -20
- package/assets/themes/green.min.css +17 -17
- package/assets/themes/indigo.min.css +17 -17
- package/esm2020/lib/bizdoc.module.mjs +3 -1
- package/esm2020/lib/core/configuration.mjs +2 -1
- package/esm2020/lib/core/session.service.mjs +17 -6
- package/esm2020/lib/core/slots/pane-ref.mjs +4 -1
- package/esm2020/lib/core/slots/slots.component.mjs +56 -27
- package/esm2020/lib/cube/view.pane.component.mjs +5 -1
- package/esm2020/lib/dashboard/score/personal-score.widget.mjs +15 -11
- package/esm2020/lib/routes.desktop.mjs +2 -2
- package/esm2020/lib/shared.module.mjs +4 -2
- package/esm2020/lib/views/view-item.component.mjs +7 -11
- package/fesm2015/bizdoc-core.mjs +98 -51
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +101 -49
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/core/configuration.d.ts +2 -1
- package/lib/core/session.service.d.ts +3 -1
- package/lib/core/slots/pane-ref.d.ts +3 -0
- package/lib/core/slots/slots.component.d.ts +15 -4
- package/lib/views/view-item.component.d.ts +2 -4
- package/package.json +14 -14
@@ -1,15 +1,13 @@
|
|
1
|
-
import { Component, HostListener, Injector, Input
|
1
|
+
import { Component, HostListener, Injector, Input } from "@angular/core";
|
2
2
|
import { takeUntil } from "rxjs";
|
3
3
|
import { Subject } from "rxjs";
|
4
4
|
import { debounceTime } from "rxjs/operators";
|
5
5
|
import { DocumentViewRef } from "./document-view-ref";
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
import * as i1 from "
|
8
|
-
import * as i2 from "
|
9
|
-
import * as i3 from "../core/component-factory-resolver";
|
7
|
+
import * as i1 from "@angular/common/http";
|
8
|
+
import * as i2 from "../core/component-factory-resolver";
|
10
9
|
export class ViewItemComponent {
|
11
|
-
constructor(
|
12
|
-
this._pane = _pane;
|
10
|
+
constructor(_http, _vc, _injector, _cf) {
|
13
11
|
this._http = _http;
|
14
12
|
this._vc = _vc;
|
15
13
|
this._injector = _injector;
|
@@ -48,7 +46,7 @@ export class ViewItemComponent {
|
|
48
46
|
this._destroy.complete();
|
49
47
|
}
|
50
48
|
}
|
51
|
-
ViewItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ViewItemComponent, deps: [{ token: i1.
|
49
|
+
ViewItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ViewItemComponent, deps: [{ token: i1.HttpClient }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i2.BizDocComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
52
50
|
ViewItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: ViewItemComponent, selector: "bizdoc-document-view-item", inputs: { model: "model", view: "view" }, host: { listeners: { "window:resize": "resize()" } }, ngImport: i0, template: '', isInline: true });
|
53
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ViewItemComponent, decorators: [{
|
54
52
|
type: Component,
|
@@ -57,9 +55,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
57
55
|
template: '',
|
58
56
|
//host: { class: 'bz-view' }
|
59
57
|
}]
|
60
|
-
}], ctorParameters: function () { return [{ type: i1.
|
61
|
-
type: Optional
|
62
|
-
}] }, { type: i2.HttpClient }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i3.BizDocComponentFactoryResolver }]; }, propDecorators: { model: [{
|
58
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i2.BizDocComponentFactoryResolver }]; }, propDecorators: { model: [{
|
63
59
|
type: Input
|
64
60
|
}], view: [{
|
65
61
|
type: Input
|
@@ -67,4 +63,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
67
63
|
type: HostListener,
|
68
64
|
args: ['window:resize']
|
69
65
|
}] } });
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvdmlld3Mvdmlldy1pdGVtLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWlCLFNBQVMsRUFBRSxZQUFZLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFBaUQsTUFBTSxlQUFlLENBQUM7QUFFdkksT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNqQyxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQy9CLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUs5QyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7Ozs7QUFPdEQsTUFBTSxPQUFPLGlCQUFpQjtJQVc1QixZQUNVLEtBQWlCLEVBQ2pCLEdBQXFCLEVBQ3JCLFNBQW1CLEVBQ25CLEdBQW1DO1FBSG5DLFVBQUssR0FBTCxLQUFLLENBQVk7UUFDakIsUUFBRyxHQUFILEdBQUcsQ0FBa0I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V0Qm91bmRpbmdDbGllbnRSZWN0KCk7XHJcbiAgICB9XHJcbiAgICByZXR1cm4gZGltO1xyXG4gIH1cclxuICBASG9zdExpc3RlbmVyKCd3aW5kb3c6cmVzaXplJylcclxuICByZXNpemUoKSB7XHJcbiAgICB0aGlzLl9yZXNpemluZy5uZXh0KCk7XHJcbiAgfVxyXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xyXG4gICAgdGhpcy5fdmlld1JlZi5fZGVzdHJveSgpO1xyXG4gICAgdGhpcy5fZGVzdHJveS5uZXh0KCk7XHJcbiAgICB0aGlzLl9kZXN0cm95LmNvbXBsZXRlKCk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
package/fesm2015/bizdoc-core.mjs
CHANGED
@@ -26,7 +26,7 @@ import * as i1$3 from '@angular/material/slide-toggle';
|
|
26
26
|
import { MatSlideToggle, MatSlideToggleModule } from '@angular/material/slide-toggle';
|
27
27
|
import * as i2$1 from '@angular/cdk/a11y';
|
28
28
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
29
|
-
import { L10n, setCulture, loadCldr, setCurrencyCode, Internationalization, enableRtl } from '@syncfusion/ej2-base';
|
29
|
+
import { L10n, setCulture, loadCldr, setCurrencyCode, Internationalization, enableRtl, registerLicense } from '@syncfusion/ej2-base';
|
30
30
|
import 'dayjs/locale/he';
|
31
31
|
import 'dayjs/locale/de';
|
32
32
|
import 'dayjs/locale/ru';
|
@@ -842,6 +842,7 @@ var OpenPolicy;
|
|
842
842
|
OpenPolicy[OpenPolicy["Dialog"] = 112] = "Dialog";
|
843
843
|
OpenPolicy[OpenPolicy["Dismissable"] = 128] = "Dismissable";
|
844
844
|
OpenPolicy[OpenPolicy["Toggle"] = 256] = "Toggle";
|
845
|
+
OpenPolicy[OpenPolicy["Stretch"] = 256] = "Stretch";
|
845
846
|
})(OpenPolicy || (OpenPolicy = {}));
|
846
847
|
const DEFAULT_POLICY = OpenPolicy.Pane;
|
847
848
|
|
@@ -1013,6 +1014,9 @@ const THEMES = [
|
|
1013
1014
|
{ name: 'brown', primary: 'brown', color: '#795548', accent: 'grey' }
|
1014
1015
|
];
|
1015
1016
|
const SUPPORTED_LANGUAGES = ['en', 'he', 'de', 'ar', 'ru'], RTL_LANGUALGES = ['he', 'ar'];
|
1017
|
+
function SessionProviderFactory(provider) {
|
1018
|
+
return () => provider.prepare();
|
1019
|
+
}
|
1016
1020
|
class SessionService {
|
1017
1021
|
constructor(_config, _http, _cookies, _hub) {
|
1018
1022
|
this._config = _config;
|
@@ -1026,7 +1030,12 @@ class SessionService {
|
|
1026
1030
|
this.themeChange = this._themeChange.asObservable();
|
1027
1031
|
this._firebase = new FirebaseService(this._config ? this._config.firebase : null, this);
|
1028
1032
|
('serviceWorker' in navigator) && this._loadSw();
|
1029
|
-
|
1033
|
+
}
|
1034
|
+
prepare() {
|
1035
|
+
const promisses = [];
|
1036
|
+
if (this._config.maps)
|
1037
|
+
promisses.push(this._googleMaps());
|
1038
|
+
return Promise.all(promisses);
|
1030
1039
|
}
|
1031
1040
|
get profile() { return this._profile; }
|
1032
1041
|
get gender() { return this.profile.byId ? this._profile.byGender : this._profile.gender; }
|
@@ -1221,11 +1230,14 @@ class SessionService {
|
|
1221
1230
|
}, null);
|
1222
1231
|
});
|
1223
1232
|
}
|
1224
|
-
|
1233
|
+
_googleMaps() {
|
1225
1234
|
const apiKey = this._config.maps.apiKey;
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1235
|
+
return new Promise((resolve, reject) => {
|
1236
|
+
const script = document.createElement('script');
|
1237
|
+
script.src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&libraries=places&language=${this.language}`;
|
1238
|
+
script.addEventListener('load', resolve, {});
|
1239
|
+
document.head.append(script);
|
1240
|
+
});
|
1229
1241
|
}
|
1230
1242
|
}
|
1231
1243
|
SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SessionService, deps: [{ token: BIZDOC_CONFIG }, { token: i1.HttpClient }, { token: i2.CookieService }, { token: HubService }], target: i0.ɵɵFactoryTarget.Injectable });
|
@@ -6281,6 +6293,9 @@ class PaneRef {
|
|
6281
6293
|
;
|
6282
6294
|
get parent() { return this._options.parent; }
|
6283
6295
|
;
|
6296
|
+
get stretch() { return this._options.stretch; }
|
6297
|
+
;
|
6298
|
+
set stretch(val) { this._options.stretch = val; }
|
6284
6299
|
get dialog() { return this._options.dialog; }
|
6285
6300
|
;
|
6286
6301
|
get dismissable() { return this._options.dismissable; }
|
@@ -11441,6 +11456,10 @@ class CubeViewPaneComponent extends ViewBase {
|
|
11441
11456
|
this._pane.group = this.cube.title;
|
11442
11457
|
this._pane.title = this.view.title;
|
11443
11458
|
this._pane.icon = this.view.icon || this.cube.icon;
|
11459
|
+
if (this.view.type === 'Spreadsheet' ||
|
11460
|
+
this.view.type === 'Grid' ||
|
11461
|
+
(this.view.type === 'Pivot' && !this.view.chartType))
|
11462
|
+
this._pane.stretch = true;
|
11444
11463
|
});
|
11445
11464
|
this._pane.queryParamsChange.subscribe(p => this.originalAxes = p);
|
11446
11465
|
this._pane.resize.subscribe(() => this.viewPane.resize());
|
@@ -17406,8 +17425,7 @@ class DocumentViewRef {
|
|
17406
17425
|
}
|
17407
17426
|
|
17408
17427
|
class ViewItemComponent {
|
17409
|
-
constructor(
|
17410
|
-
this._pane = _pane;
|
17428
|
+
constructor(_http, _vc, _injector, _cf) {
|
17411
17429
|
this._http = _http;
|
17412
17430
|
this._vc = _vc;
|
17413
17431
|
this._injector = _injector;
|
@@ -17446,7 +17464,7 @@ class ViewItemComponent {
|
|
17446
17464
|
this._destroy.complete();
|
17447
17465
|
}
|
17448
17466
|
}
|
17449
|
-
ViewItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ViewItemComponent, deps: [{ token:
|
17467
|
+
ViewItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ViewItemComponent, deps: [{ token: i1.HttpClient }, { token: i0.ViewContainerRef }, { token: i0.Injector }, { token: BizDocComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
17450
17468
|
ViewItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: ViewItemComponent, selector: "bizdoc-document-view-item", inputs: { model: "model", view: "view" }, host: { listeners: { "window:resize": "resize()" } }, ngImport: i0, template: '', isInline: true });
|
17451
17469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: ViewItemComponent, decorators: [{
|
17452
17470
|
type: Component,
|
@@ -17455,11 +17473,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
17455
17473
|
template: '',
|
17456
17474
|
//host: { class: 'bz-view' }
|
17457
17475
|
}]
|
17458
|
-
}], ctorParameters: function () {
|
17459
|
-
return [{ type: PaneRef, decorators: [{
|
17460
|
-
type: Optional
|
17461
|
-
}] }, { type: i1.HttpClient }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: BizDocComponentFactoryResolver }];
|
17462
|
-
}, propDecorators: { model: [{
|
17476
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: BizDocComponentFactoryResolver }]; }, propDecorators: { model: [{
|
17463
17477
|
type: Input
|
17464
17478
|
}], view: [{
|
17465
17479
|
type: Input
|
@@ -18611,6 +18625,7 @@ class SlotsComponent {
|
|
18611
18625
|
this.panes = [];
|
18612
18626
|
this.tabs = [];
|
18613
18627
|
this._selectedTabIndex = -1;
|
18628
|
+
this.dialog = false;
|
18614
18629
|
this.selectedIndex = -1;
|
18615
18630
|
this.dragging = false;
|
18616
18631
|
this.ripple = {
|
@@ -18640,6 +18655,7 @@ class SlotsComponent {
|
|
18640
18655
|
}
|
18641
18656
|
set selectedTabIndex(value) {
|
18642
18657
|
this._selectedTabIndex = value;
|
18658
|
+
this.dialog = this._selectedTabIndex > -1 && this.tabs.at(this._selectedTabIndex).dialog;
|
18643
18659
|
this._setTabAnimation();
|
18644
18660
|
}
|
18645
18661
|
_setTabAnimation() {
|
@@ -18722,7 +18738,7 @@ class SlotsComponent {
|
|
18722
18738
|
this.group = tab.group;
|
18723
18739
|
this.selectedTabIndex = i;
|
18724
18740
|
this._cd.detectChanges();
|
18725
|
-
this.
|
18741
|
+
this._sync();
|
18726
18742
|
return;
|
18727
18743
|
}
|
18728
18744
|
}
|
@@ -18730,7 +18746,7 @@ class SlotsComponent {
|
|
18730
18746
|
yield this._navParams(path, tab, params, queryParams, state);
|
18731
18747
|
this.group = tab.group;
|
18732
18748
|
this.selectedTabIndex = i;
|
18733
|
-
this.
|
18749
|
+
this._sync();
|
18734
18750
|
return;
|
18735
18751
|
}
|
18736
18752
|
i++;
|
@@ -18752,13 +18768,13 @@ class SlotsComponent {
|
|
18752
18768
|
else {
|
18753
18769
|
this._navQueryParams(pane, queryParams, state);
|
18754
18770
|
this.scrollTo(i);
|
18755
|
-
this.
|
18771
|
+
this._sync();
|
18756
18772
|
return;
|
18757
18773
|
}
|
18758
18774
|
}
|
18759
18775
|
else if (pane.route === route) {
|
18760
18776
|
yield this._navParams(path, pane, params, queryParams, state);
|
18761
|
-
this.
|
18777
|
+
this._sync();
|
18762
18778
|
return;
|
18763
18779
|
}
|
18764
18780
|
i++;
|
@@ -18799,13 +18815,13 @@ class SlotsComponent {
|
|
18799
18815
|
pane._fullscreen$.next(this.panes.length === 1);
|
18800
18816
|
}
|
18801
18817
|
route &&
|
18802
|
-
this.
|
18818
|
+
this._sync();
|
18803
18819
|
}
|
18804
18820
|
else {
|
18805
18821
|
const pane = (policy & OpenPolicy.Tab) == OpenPolicy.Tab ?
|
18806
18822
|
this.tabs[this.selectedTabIndex] : this.panes[this.selectedIndex];
|
18807
18823
|
this._navQueryParams(pane, queryParams, state);
|
18808
|
-
this.
|
18824
|
+
this._sync();
|
18809
18825
|
if ((policy & OpenPolicy.Tab) != OpenPolicy.Tab)
|
18810
18826
|
this.select(this.selectedIndex);
|
18811
18827
|
}
|
@@ -19073,7 +19089,7 @@ class SlotsComponent {
|
|
19073
19089
|
});
|
19074
19090
|
}
|
19075
19091
|
/** */
|
19076
|
-
|
19092
|
+
_sync() {
|
19077
19093
|
this._navigating = true;
|
19078
19094
|
this._history('push');
|
19079
19095
|
setTimeout(() => this._navigating = false, 200);
|
@@ -19086,7 +19102,7 @@ class SlotsComponent {
|
|
19086
19102
|
let path = this.panes.filter(p => p.route).map(s => s.fullPath).join(PATH_CHAR);
|
19087
19103
|
if (this.tabs.length)
|
19088
19104
|
path += PANE_CHAR + this.tabs.filter(p => p.route).map(s => s.fullPath).join(PATH_CHAR);
|
19089
|
-
|
19105
|
+
const state = {
|
19090
19106
|
bizdoc: true,
|
19091
19107
|
step: history.state && history.state.bizdoc ? history.state.step + 1 : 1,
|
19092
19108
|
selectedTabIndex: this.selectedTabIndex,
|
@@ -19096,13 +19112,17 @@ class SlotsComponent {
|
|
19096
19112
|
group: this.group,
|
19097
19113
|
swapTab: this.swapTab,
|
19098
19114
|
prevGroup: this.prevGroup
|
19099
|
-
}
|
19115
|
+
};
|
19116
|
+
if (mode === 'push')
|
19117
|
+
history.pushState(state, '', '/' + path);
|
19118
|
+
else
|
19119
|
+
history.replaceState(state, '');
|
19100
19120
|
}
|
19101
19121
|
drop(evt) {
|
19102
19122
|
const pane = this.panes[evt.previousIndex];
|
19103
19123
|
this.panes.splice(evt.previousIndex, 1);
|
19104
19124
|
this.panes.splice(evt.currentIndex, 0, pane);
|
19105
|
-
this.
|
19125
|
+
this._sync();
|
19106
19126
|
}
|
19107
19127
|
togglePinned(pane) {
|
19108
19128
|
pane.pinned = !pane.pinned;
|
@@ -19241,8 +19261,8 @@ class SlotsComponent {
|
|
19241
19261
|
return pane;
|
19242
19262
|
}
|
19243
19263
|
_insertPane(component, options, position) {
|
19244
|
-
|
19245
|
-
const pane = this._constract(component, 'pane', options);
|
19264
|
+
const stretch = (options.policy & OpenPolicy.Stretch) == OpenPolicy.Stretch;
|
19265
|
+
const pane = this._constract(component, 'pane', Object.assign({ stretch }, options));
|
19246
19266
|
if (position === undefined)
|
19247
19267
|
position = this.panes.length;
|
19248
19268
|
this.panes.push(pane);
|
@@ -19272,12 +19292,16 @@ class SlotsComponent {
|
|
19272
19292
|
pane._comm$.subscribe(e => this._action(e, pane));
|
19273
19293
|
return pane;
|
19274
19294
|
}
|
19295
|
+
/**
|
19296
|
+
*
|
19297
|
+
* @param component
|
19298
|
+
* @param options
|
19299
|
+
*/
|
19275
19300
|
_insertTab(component, options) {
|
19276
19301
|
const { policy } = options, dialog = (policy & OpenPolicy.Dialog) == OpenPolicy.Dialog, dismissable = (policy & OpenPolicy.Dismissable) == OpenPolicy.Dismissable;
|
19277
19302
|
const tab = this._constract(component, 'tab', Object.assign(Object.assign({}, options), { dialog,
|
19278
19303
|
dismissable }));
|
19279
19304
|
this.tabs.push(tab);
|
19280
|
-
this.dialog = dialog;
|
19281
19305
|
this._router._events$.next(new NavigationStart(tab));
|
19282
19306
|
this._cd.detectChanges();
|
19283
19307
|
if (tab.group && this.group !== tab.group && options.swap !== false) {
|
@@ -19322,6 +19346,11 @@ class SlotsComponent {
|
|
19322
19346
|
this._back(this.swapTab);
|
19323
19347
|
this.swapTab = null;
|
19324
19348
|
}
|
19349
|
+
/**
|
19350
|
+
*
|
19351
|
+
* @param e
|
19352
|
+
* @param pane
|
19353
|
+
*/
|
19325
19354
|
_action(e, pane) {
|
19326
19355
|
switch (e) {
|
19327
19356
|
case 'focus':
|
@@ -19369,19 +19398,30 @@ class SlotsComponent {
|
|
19369
19398
|
this.tabs.splice(0, this.tabs.length);
|
19370
19399
|
this.selectedTabIndex = -1;
|
19371
19400
|
this.swapTab = null;
|
19372
|
-
this.
|
19373
|
-
this._replaceUrl();
|
19401
|
+
this._sync();
|
19374
19402
|
this._router._events$.next(new CollapseNavigation());
|
19375
19403
|
}
|
19404
|
+
onResize() {
|
19405
|
+
if (this.panes.length && !this.panes[this.panes.length - 1].stretch) {
|
19406
|
+
const el = this._panesContainerRef.element.nativeElement, child = el.lastElementChild;
|
19407
|
+
child.style.minWidth =
|
19408
|
+
(el.parentElement.parentElement.clientWidth - child.offsetLeft - 2) + 'px';
|
19409
|
+
}
|
19410
|
+
}
|
19376
19411
|
_resize() {
|
19412
|
+
//this.tabs.concat(this.panes).forEach(t => t._resize$.next({
|
19413
|
+
//} as any));
|
19377
19414
|
window.dispatchEvent(new Event('resize'));
|
19378
19415
|
}
|
19416
|
+
dismiss() {
|
19417
|
+
this.closeTab(this.selectedTabIndex);
|
19418
|
+
}
|
19379
19419
|
closeTab(position) {
|
19380
19420
|
const tab = this.tabs[position];
|
19381
19421
|
this.tabs.splice(position, 1);
|
19382
19422
|
this._destroyPane(tab);
|
19383
19423
|
this.selectedTabIndex = this.tabs.length ? position > 0 ? position - 1 : 0 : -1;
|
19384
|
-
this.
|
19424
|
+
this._sync();
|
19385
19425
|
}
|
19386
19426
|
expandPane() {
|
19387
19427
|
const pane = this.panes[this.selectedIndex];
|
@@ -19396,7 +19436,7 @@ class SlotsComponent {
|
|
19396
19436
|
i++;
|
19397
19437
|
} while (i < this.panes.length);
|
19398
19438
|
this.selectedIndex = 0;
|
19399
|
-
this.
|
19439
|
+
this._sync();
|
19400
19440
|
pane._fullscreen$.next(true);
|
19401
19441
|
}
|
19402
19442
|
_getHistoryStep() {
|
@@ -19412,7 +19452,7 @@ class SlotsComponent {
|
|
19412
19452
|
tab._mode$.next('pane');
|
19413
19453
|
tab._fullscreen$.next(true);
|
19414
19454
|
this.selectedTabIndex = this.tabs.length ? 0 : -1;
|
19415
|
-
this.
|
19455
|
+
this._sync();
|
19416
19456
|
}
|
19417
19457
|
select(position) {
|
19418
19458
|
if (this.selectedIndex === position)
|
@@ -19436,7 +19476,7 @@ class SlotsComponent {
|
|
19436
19476
|
this._discardPane(pane);
|
19437
19477
|
if (position >= this.selectedIndex)
|
19438
19478
|
this.select(-1);
|
19439
|
-
this.
|
19479
|
+
this._sync();
|
19440
19480
|
});
|
19441
19481
|
}
|
19442
19482
|
/**
|
@@ -19533,7 +19573,7 @@ class SlotsComponent {
|
|
19533
19573
|
const el = this._children.item(index);
|
19534
19574
|
el.focus();
|
19535
19575
|
}
|
19536
|
-
|
19576
|
+
onPaneResize(pane, event) {
|
19537
19577
|
const el = event.srcElement.previousElementSibling;
|
19538
19578
|
const // remember mouse down info
|
19539
19579
|
width = el.clientWidth, d = this._rtl ? -1 : 1;
|
@@ -19573,9 +19613,6 @@ class SlotsComponent {
|
|
19573
19613
|
const delta = Math.max((e.clientX - event.clientX) * d, -width);
|
19574
19614
|
el.style.width = el.style.minWidth = (width + delta) + 'px';
|
19575
19615
|
localStorage.setItem('tabs', el.style.width);
|
19576
|
-
// this.tabs[this.selectedTabIndex]._resize$.next({
|
19577
|
-
// height: el.clientHeight, width: width + delta
|
19578
|
-
// });
|
19579
19616
|
}
|
19580
19617
|
}
|
19581
19618
|
_destroyPane(pane) {
|
@@ -19588,7 +19625,7 @@ class SlotsComponent {
|
|
19588
19625
|
}
|
19589
19626
|
}
|
19590
19627
|
SlotsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SlotsComponent, deps: [{ token: PANES_DATA }, { token: SessionService }, { token: i0.ChangeDetectorRef }, { token: PanesRouter }, { token: WindowTitleService }, { token: GuideService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
19591
|
-
SlotsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SlotsComponent, selector: "bizdoc-panes", host: { listeners: { "document:keydown.escape": "collapse()" } }, viewQueries: [{ propertyName: "_panesContainerRef", first: true, predicate: ["
|
19628
|
+
SlotsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.1", type: SlotsComponent, selector: "bizdoc-panes", host: { listeners: { "document:keydown.escape": "collapse()", "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "_panesContainerRef", first: true, predicate: ["panning"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "_tabsElement", first: true, predicate: ["tabing"], descendants: true }, { propertyName: "_scrollable", first: true, predicate: CdkScrollable, descendants: true, static: true }], ngImport: i0, template: "<div class=\"panes\">\r\n <div class=\"scroll-arrow\" (click)=\"scrollBy(-400)\" matRipple [matRippleUnbounded]=\"true\" [matRippleCentered]=\"true\" [matRippleColor]=\"accent\"\r\n *ngIf=\"prev\">\r\n <i class=\"material-icons mat-icon-rtl-mirror\">\r\n arrow_back_ios\r\n </i>\r\n </div>\r\n <div class=\"panes-title\" [@title]=\"titleAnimation\">\r\n <h1>\r\n <button mat-icon-button (click)=\"back()\" *ngIf=\"swap\" [bizdocTooltip]=\"'Back'|translate\"><mat-icon class=\"mat-icon-rtl-mirror\">arrow_circle_left</mat-icon></button>\r\n <ng-container *ngFor=\"let p of panes; let first = first\">\r\n <span class=\"breadcrumbs\" *ngIf=\"!first\">\\</span>\r\n {{p.title}}\r\n </ng-container>\r\n <button mat-icon-button (click)=\"guide(panes[0].guide)\" *ngIf=\"panes[0]?.guide\" [bizdocTooltip]=\"'Help'|translate\"><mat-icon>help</mat-icon></button>\r\n </h1>\r\n <span class=\"divider\">\r\n </span>\r\n <bizdoc-quicktools></bizdoc-quicktools>\r\n </div>\r\n <div #panning class=\"panes-container\"\r\n cdkScrollable\r\n @panes\r\n (scroll)=\"navigationArrows($event)\">\r\n <ng-container *ngFor=\"let p of panes; let i = index\">\r\n <div (mouseenter)=\"selectedIndex !== i && !dragging && select(i)\"\r\n (click)=\"select(i)\"\r\n [class.active]=\"selectedIndex === i\" class=\"pane-content\" @pane>\r\n <ngx-component-outlet [type]=\"p.component\" [injector]=\"p.injector\" (create)=\"p._instance = $event\"></ngx-component-outlet>\r\n </div>\r\n <div class=\"pane-separator\" *ngIf=\"i < panes.length - 1\" (mousedown)=\"onPaneResize(p, $event)\"> </div>\r\n </ng-container>\r\n </div>\r\n <div class=\"backdrop\" *ngIf=\"dialog\" (click)=\"dismiss()\"></div>\r\n <div class=\"scroll-arrow forward\"\r\n *ngIf=\"next\">\r\n <i class=\"material-icons mat-icon-rtl-mirror\" matRipple [matRippleUnbounded]=\"true\" [matRippleCentered]=\"true\" [matRippleRadius]=\"30\" [matRippleColor]=\"accent\"\r\n (click)=\"scrollBy(400)\">\r\n arrow_forward_ios\r\n </i>\r\n </div>\r\n</div>\r\n<ng-container *ngIf=\"tabs.length\">\r\n <div class=\"tabs-separator\" (mousedown)=\"onTabResize($event)\"> </div>\r\n <div class=\"mat-elevation-z18 tabs\" [@tabs]=\"tabsAnimation\" (@tabs.done)=\"done()\" #tabing>\r\n <div class=\"row tabs-title\">\r\n <button mat-icon-button (click)=\"tabBack()\" *ngIf=\"swapTab\" [bizdocTooltip]=\"prevGroup || ('Back'|translate)\"><mat-icon class=\"mat-icon-rtl-mirror\">arrow_back</mat-icon></button>\r\n <h2>{{group}}</h2>\r\n <button mat-icon-button (click)=\"expandTab()\" [bizdocTooltip]=\"'Expand'| translate\"><mat-icon inline=\"true\" class=\"mat-icon-rtl-mirror\">open_in_full</mat-icon></button>\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"collapse()\" bizdocTooltip=\"Esc\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n <nav mat-tab-nav-bar color=\"accent\" [disablePagination]=\"true\">\r\n <a mat-tab-link *ngFor=\"let p of tabs; let i = index\" class=\"mat-tab-link\"\r\n (click)=\"selectedTabIndex = i\"\r\n [active]=\"selectedTabIndex === i\">\r\n <mat-icon [matBadge]=\"p.badge\" [matBadgeHidden]=\"!p.badge\" matBadgeSize=\"small\" matBadgeColor=\"accent\">{{p.icon}}</mat-icon> \r\n {{p.title}}\r\n <mat-icon *ngIf=\"p.dismissable\" (click)=\"closeTab(i)\" class=\"tool\">close</mat-icon>\r\n <!--inline=\"true\"-->\r\n </a>\r\n </nav>\r\n <div *ngFor=\"let t of tabs; let i = index\" [style.display]=\"selectedTabIndex === i ? '': 'none'\" class=\"tab\" [@tab]=\"selectedTabIndex\">\r\n <ngx-component-outlet [type]=\"t.component\" [injector]=\"t.injector\" (create)=\"t._instance = $event\"></ngx-component-outlet>\r\n </div>\r\n </div>\r\n</ng-container>\r\n", styles: [":host{display:flex;flex-direction:row;flex-grow:1;overflow-x:hidden}.panes{flex-grow:1;position:relative;overflow-x:hidden;display:inline-flex;flex-direction:column;flex-basis:100%}.panes .panes-title{display:flex;flex-direction:row;align-items:center;min-width:max-content}.panes .panes-title h1{font-size:xx-large;margin:12px;font-weight:100}.panes .panes-title h1 button{vertical-align:middle}.panes .panes-title h1 .breadcrumbs{font-size:smaller}.panes .scroll-arrow{position:absolute;cursor:pointer;top:50%;z-index:1000}.panes .scroll-arrow i{font-size:50px;opacity:.2}.panes .scroll-arrow i:hover{opacity:.9}.panes .scroll-arrow:last-child{right:0}.panes .panes-container{overflow-x:auto;height:100%;display:flex;flex-direction:row}.panes .panes-container .pane-content{display:block;border-right:1px solid #00000014;height:inherit;border-left-width:1px;border-left-style:double;border-left-color:transparent;flex-grow:1;min-width:420px;overflow-y:auto}.panes .panes-container .pane-content .pane{flex-grow:1}.panes .panes-container .pane-separator{width:8px}.pane-separator,.tabs-separator{cursor:ew-resize;background-repeat:no-repeat;background-position:center;display:table;height:100%;-webkit-user-select:none;user-select:none}.tabs-separator{width:12px}::ng-deep [dir=rtl] .scroll-arrow:last-child{right:unset;left:0}.tabs{display:flex;flex-direction:column;z-index:1;-webkit-flex-grow:0;flex-shrink:1;flex-basis:0}.tabs .tabs-title{align-items:center}.tabs .tabs-title h2{font-size:x-large;margin:9px;font-weight:100}.tabs .tabs-title:hover{opacity:1}.tabs .mat-tab-link .tool{opacity:0}.tabs .mat-tab-link:hover .tool{opacity:1}.tabs .tab{flex-grow:1;overflow-y:auto;overflow-x:hidden;display:flex}\n"], components: [{ type: i7$1.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.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: QuickToolsComponent, selector: "bizdoc-quicktools" }, { type: i8$3.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["color"], exportAs: ["matTabNavBar", "matTabNav"] }], directives: [{ type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i12$2.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { type: NgxComponentOutlet, selector: "ngx-component-outlet", inputs: ["type", "injector", "ngxComponentOutletContent"], outputs: ["create"] }, { type: i8$3.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matTabLink"] }, { type: i13.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }], pipes: { "translate": TranslatePipe }, animations: [panesAnimation,
|
19592
19629
|
panesTitleAnimation,
|
19593
19630
|
paneAnimation,
|
19594
19631
|
paramAnimation,
|
@@ -19605,7 +19642,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
19605
19642
|
queryAnimation,
|
19606
19643
|
tabsAnimation,
|
19607
19644
|
tabAnimation
|
19608
|
-
], template: "<div class=\"panes\">\r\n <div class=\"
|
19645
|
+
], template: "<div class=\"panes\">\r\n <div class=\"scroll-arrow\" (click)=\"scrollBy(-400)\" matRipple [matRippleUnbounded]=\"true\" [matRippleCentered]=\"true\" [matRippleColor]=\"accent\"\r\n *ngIf=\"prev\">\r\n <i class=\"material-icons mat-icon-rtl-mirror\">\r\n arrow_back_ios\r\n </i>\r\n </div>\r\n <div class=\"panes-title\" [@title]=\"titleAnimation\">\r\n <h1>\r\n <button mat-icon-button (click)=\"back()\" *ngIf=\"swap\" [bizdocTooltip]=\"'Back'|translate\"><mat-icon class=\"mat-icon-rtl-mirror\">arrow_circle_left</mat-icon></button>\r\n <ng-container *ngFor=\"let p of panes; let first = first\">\r\n <span class=\"breadcrumbs\" *ngIf=\"!first\">\\</span>\r\n {{p.title}}\r\n </ng-container>\r\n <button mat-icon-button (click)=\"guide(panes[0].guide)\" *ngIf=\"panes[0]?.guide\" [bizdocTooltip]=\"'Help'|translate\"><mat-icon>help</mat-icon></button>\r\n </h1>\r\n <span class=\"divider\">\r\n </span>\r\n <bizdoc-quicktools></bizdoc-quicktools>\r\n </div>\r\n <div #panning class=\"panes-container\"\r\n cdkScrollable\r\n @panes\r\n (scroll)=\"navigationArrows($event)\">\r\n <ng-container *ngFor=\"let p of panes; let i = index\">\r\n <div (mouseenter)=\"selectedIndex !== i && !dragging && select(i)\"\r\n (click)=\"select(i)\"\r\n [class.active]=\"selectedIndex === i\" class=\"pane-content\" @pane>\r\n <ngx-component-outlet [type]=\"p.component\" [injector]=\"p.injector\" (create)=\"p._instance = $event\"></ngx-component-outlet>\r\n </div>\r\n <div class=\"pane-separator\" *ngIf=\"i < panes.length - 1\" (mousedown)=\"onPaneResize(p, $event)\"> </div>\r\n </ng-container>\r\n </div>\r\n <div class=\"backdrop\" *ngIf=\"dialog\" (click)=\"dismiss()\"></div>\r\n <div class=\"scroll-arrow forward\"\r\n *ngIf=\"next\">\r\n <i class=\"material-icons mat-icon-rtl-mirror\" matRipple [matRippleUnbounded]=\"true\" [matRippleCentered]=\"true\" [matRippleRadius]=\"30\" [matRippleColor]=\"accent\"\r\n (click)=\"scrollBy(400)\">\r\n arrow_forward_ios\r\n </i>\r\n </div>\r\n</div>\r\n<ng-container *ngIf=\"tabs.length\">\r\n <div class=\"tabs-separator\" (mousedown)=\"onTabResize($event)\"> </div>\r\n <div class=\"mat-elevation-z18 tabs\" [@tabs]=\"tabsAnimation\" (@tabs.done)=\"done()\" #tabing>\r\n <div class=\"row tabs-title\">\r\n <button mat-icon-button (click)=\"tabBack()\" *ngIf=\"swapTab\" [bizdocTooltip]=\"prevGroup || ('Back'|translate)\"><mat-icon class=\"mat-icon-rtl-mirror\">arrow_back</mat-icon></button>\r\n <h2>{{group}}</h2>\r\n <button mat-icon-button (click)=\"expandTab()\" [bizdocTooltip]=\"'Expand'| translate\"><mat-icon inline=\"true\" class=\"mat-icon-rtl-mirror\">open_in_full</mat-icon></button>\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"collapse()\" bizdocTooltip=\"Esc\"><mat-icon>close</mat-icon></button>\r\n </div>\r\n <nav mat-tab-nav-bar color=\"accent\" [disablePagination]=\"true\">\r\n <a mat-tab-link *ngFor=\"let p of tabs; let i = index\" class=\"mat-tab-link\"\r\n (click)=\"selectedTabIndex = i\"\r\n [active]=\"selectedTabIndex === i\">\r\n <mat-icon [matBadge]=\"p.badge\" [matBadgeHidden]=\"!p.badge\" matBadgeSize=\"small\" matBadgeColor=\"accent\">{{p.icon}}</mat-icon> \r\n {{p.title}}\r\n <mat-icon *ngIf=\"p.dismissable\" (click)=\"closeTab(i)\" class=\"tool\">close</mat-icon>\r\n <!--inline=\"true\"-->\r\n </a>\r\n </nav>\r\n <div *ngFor=\"let t of tabs; let i = index\" [style.display]=\"selectedTabIndex === i ? '': 'none'\" class=\"tab\" [@tab]=\"selectedTabIndex\">\r\n <ngx-component-outlet [type]=\"t.component\" [injector]=\"t.injector\" (create)=\"t._instance = $event\"></ngx-component-outlet>\r\n </div>\r\n </div>\r\n</ng-container>\r\n", styles: [":host{display:flex;flex-direction:row;flex-grow:1;overflow-x:hidden}.panes{flex-grow:1;position:relative;overflow-x:hidden;display:inline-flex;flex-direction:column;flex-basis:100%}.panes .panes-title{display:flex;flex-direction:row;align-items:center;min-width:max-content}.panes .panes-title h1{font-size:xx-large;margin:12px;font-weight:100}.panes .panes-title h1 button{vertical-align:middle}.panes .panes-title h1 .breadcrumbs{font-size:smaller}.panes .scroll-arrow{position:absolute;cursor:pointer;top:50%;z-index:1000}.panes .scroll-arrow i{font-size:50px;opacity:.2}.panes .scroll-arrow i:hover{opacity:.9}.panes .scroll-arrow:last-child{right:0}.panes .panes-container{overflow-x:auto;height:100%;display:flex;flex-direction:row}.panes .panes-container .pane-content{display:block;border-right:1px solid #00000014;height:inherit;border-left-width:1px;border-left-style:double;border-left-color:transparent;flex-grow:1;min-width:420px;overflow-y:auto}.panes .panes-container .pane-content .pane{flex-grow:1}.panes .panes-container .pane-separator{width:8px}.pane-separator,.tabs-separator{cursor:ew-resize;background-repeat:no-repeat;background-position:center;display:table;height:100%;-webkit-user-select:none;user-select:none}.tabs-separator{width:12px}::ng-deep [dir=rtl] .scroll-arrow:last-child{right:unset;left:0}.tabs{display:flex;flex-direction:column;z-index:1;-webkit-flex-grow:0;flex-shrink:1;flex-basis:0}.tabs .tabs-title{align-items:center}.tabs .tabs-title h2{font-size:x-large;margin:9px;font-weight:100}.tabs .tabs-title:hover{opacity:1}.tabs .mat-tab-link .tool{opacity:0}.tabs .mat-tab-link:hover .tool{opacity:1}.tabs .tab{flex-grow:1;overflow-y:auto;overflow-x:hidden;display:flex}\n"] }]
|
19609
19646
|
}], ctorParameters: function () {
|
19610
19647
|
return [{ type: undefined, decorators: [{
|
19611
19648
|
type: Inject,
|
@@ -19613,7 +19650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
19613
19650
|
}] }, { type: SessionService }, { type: i0.ChangeDetectorRef }, { type: PanesRouter }, { type: WindowTitleService }, { type: GuideService }, { type: i0.Injector }];
|
19614
19651
|
}, propDecorators: { _panesContainerRef: [{
|
19615
19652
|
type: ViewChild,
|
19616
|
-
args: ['
|
19653
|
+
args: ['panning', { read: ViewContainerRef, static: true }]
|
19617
19654
|
}], _tabsElement: [{
|
19618
19655
|
type: ViewChild,
|
19619
19656
|
args: ['tabing']
|
@@ -19623,6 +19660,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
19623
19660
|
}], collapse: [{
|
19624
19661
|
type: HostListener,
|
19625
19662
|
args: ['document:keydown.escape']
|
19663
|
+
}], onResize: [{
|
19664
|
+
type: HostListener,
|
19665
|
+
args: ['window:resize']
|
19626
19666
|
}] } });
|
19627
19667
|
const PANE_PARAMS_REGEX = /(:[\w\-]+)/g;
|
19628
19668
|
function prepareRoutes(routes, treePath) {
|
@@ -20184,7 +20224,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
20184
20224
|
const PANES_CONFIG = [{
|
20185
20225
|
path: 'dashboard',
|
20186
20226
|
component: DashboardPaneComponent,
|
20187
|
-
policy: OpenPolicy.Clear,
|
20227
|
+
policy: OpenPolicy.Clear | OpenPolicy.Stretch,
|
20188
20228
|
},
|
20189
20229
|
{ component: BrokenPage, path: 'broken' },
|
20190
20230
|
{
|
@@ -22911,7 +22951,10 @@ let PersonalScoreWidget = class PersonalScoreWidget {
|
|
22911
22951
|
width: 0, position: 'Outside'
|
22912
22952
|
};
|
22913
22953
|
this.legendSettings = {
|
22914
|
-
visible: true, position: 'Top', shape: 'Diamond', alignment: 'Center',
|
22954
|
+
visible: true, position: 'Top', shape: 'Diamond', alignment: 'Center',
|
22955
|
+
padding: 0, margin: { top: 0 },
|
22956
|
+
location: { y: 0 },
|
22957
|
+
textStyle: {
|
22915
22958
|
fontFamily: FONT_FAMILY
|
22916
22959
|
}
|
22917
22960
|
};
|
@@ -23020,6 +23063,15 @@ let PersonalScoreWidget = class PersonalScoreWidget {
|
|
23020
23063
|
}
|
23021
23064
|
_draw() {
|
23022
23065
|
this.gauge && this.gauge.destroy();
|
23066
|
+
const axes = [{
|
23067
|
+
radius: '90%', maximum: this.max,
|
23068
|
+
startAngle: 270,
|
23069
|
+
endAngle: 90,
|
23070
|
+
majorTicks: this.majorTicks, direction: this.direction,
|
23071
|
+
labelStyle: this.labelStyle, lineStyle: this.lineStyle, minorTicks: this.minorTicks,
|
23072
|
+
ranges: this.ranges,
|
23073
|
+
pointers: this.pointers
|
23074
|
+
}];
|
23023
23075
|
this.gauge = new CircularGauge({
|
23024
23076
|
tooltip: this.tooltip,
|
23025
23077
|
centerY: '50%',
|
@@ -23033,15 +23085,7 @@ let PersonalScoreWidget = class PersonalScoreWidget {
|
|
23033
23085
|
legendSettings: this.legendSettings,
|
23034
23086
|
tooltipRender: this.tooltipRender.bind(this),
|
23035
23087
|
enableRtl: this._session.inverse,
|
23036
|
-
axes
|
23037
|
-
radius: '90%', maximum: this.max,
|
23038
|
-
startAngle: 270,
|
23039
|
-
endAngle: 90,
|
23040
|
-
majorTicks: this.majorTicks, direction: this.direction,
|
23041
|
-
labelStyle: this.labelStyle, lineStyle: this.lineStyle, minorTicks: this.minorTicks,
|
23042
|
-
ranges: this.ranges,
|
23043
|
-
pointers: this.pointers
|
23044
|
-
}]
|
23088
|
+
axes
|
23045
23089
|
}, this._elementRef.nativeElement);
|
23046
23090
|
}
|
23047
23091
|
_refresh() {
|
@@ -27520,6 +27564,7 @@ SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
27520
27564
|
//{ provide: LOCALE_ID, useClass: SessionService.getLocale() },
|
27521
27565
|
{ provide: HTTP_INTERCEPTORS, useClass: AppHttpInterceptor, multi: true },
|
27522
27566
|
{ provide: APP_INITIALIZER, useFactory: TranslateProviderFactory, deps: [TranslateService], multi: true },
|
27567
|
+
{ provide: APP_INITIALIZER, useFactory: SessionProviderFactory, deps: [SessionService], multi: true },
|
27523
27568
|
], imports: [[
|
27524
27569
|
DayJsModule,
|
27525
27570
|
CommonModule,
|
@@ -27638,6 +27683,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
27638
27683
|
//{ provide: LOCALE_ID, useClass: SessionService.getLocale() },
|
27639
27684
|
{ provide: HTTP_INTERCEPTORS, useClass: AppHttpInterceptor, multi: true },
|
27640
27685
|
{ provide: APP_INITIALIZER, useFactory: TranslateProviderFactory, deps: [TranslateService], multi: true },
|
27686
|
+
{ provide: APP_INITIALIZER, useFactory: SessionProviderFactory, deps: [SessionService], multi: true },
|
27641
27687
|
],
|
27642
27688
|
exports: [FileInput, FilterTagsComponent,
|
27643
27689
|
DateFormatPipe, CalendarPipe, DifferencePipe, DurationPipe, TimeAgoPipe,
|
@@ -30161,6 +30207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
30161
30207
|
}]
|
30162
30208
|
}] });
|
30163
30209
|
|
30210
|
+
registerLicense('ORg4AjUWIQA/Gnt2VVhhQlFaclhJXGFWfVJpTGpQdk5xdV9DaVZUTWY/P1ZhSXxRdkFjXX5ecnBUQ2lfVUI=');
|
30164
30211
|
class BizDocModule {
|
30165
30212
|
static forChild(config) {
|
30166
30213
|
const { components } = config;
|