@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
package/lib/app.component.d.ts
CHANGED
@@ -13,6 +13,7 @@ export declare class BizDocApp implements OnInit {
|
|
13
13
|
dir: Direction;
|
14
14
|
private _refresh;
|
15
15
|
constructor(_signIn: SignInInfo, _vc: ViewContainerRef, _cfr: ComponentFactoryResolver, _session: SessionService, _messaging: HubService);
|
16
|
+
private _connect;
|
16
17
|
private _initialize;
|
17
18
|
ngOnInit(): void;
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<BizDocApp, never>;
|
package/lib/bizdoc.module.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
-
import { BizDocConfig
|
2
|
+
import { BizDocConfig } from './core/configuration';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@angular/platform-browser";
|
5
5
|
import * as i2 from "@angular/platform-browser/animations";
|
@@ -11,7 +11,6 @@ import * as i7 from "./system.module";
|
|
11
11
|
import * as i8 from "./shared.module";
|
12
12
|
import * as i9 from "./material.module";
|
13
13
|
export declare class BizDocModule {
|
14
|
-
static forChild(config?: BizDocChildConfig): ModuleWithProviders<BizDocModule>;
|
15
14
|
static forRoot(config: BizDocConfig): ModuleWithProviders<BizDocModule>;
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BizDocModule, never>;
|
17
16
|
static ɵmod: i0.ɵɵNgModuleDeclaration<BizDocModule, never, [typeof i1.BrowserModule, typeof i2.BrowserAnimationsModule, typeof i3.RouterModule, typeof i4.MomentModule, typeof i5.MobileModule, typeof i6.DesktopModule, typeof i7.SystemModule, typeof i8.SharedModule], [typeof i8.SharedModule, typeof i9.MaterialModule]>;
|
@@ -1,35 +1,4 @@
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { SessionService } from './session.service';
|
4
|
-
import { OktaConfig } from '@okta/okta-angular';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare const DEFAULT_SCOPES: string[];
|
7
1
|
export declare abstract class AuthenticationImpl {
|
8
|
-
abstract
|
9
|
-
abstract
|
10
|
-
}
|
11
|
-
export declare class OktaAuthentication extends AuthenticationImpl {
|
12
|
-
private _okta;
|
13
|
-
signIn(username: string, password: string, rememberMe: boolean, impersonate: string): Observable<any>;
|
14
|
-
signOut(): Observable<void>;
|
15
|
-
constructor(_okta: OktaConfig);
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OktaAuthentication, never>;
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OktaAuthentication>;
|
18
|
-
}
|
19
|
-
export declare class FormAuthentication extends AuthenticationImpl {
|
20
|
-
private _http;
|
21
|
-
private _session;
|
22
|
-
signIn(username: string, password: string, rememberMe: boolean, impersonate: string): Observable<LoginResult>;
|
23
|
-
constructor(_http: HttpClient, _session: SessionService);
|
24
|
-
signOut(): Observable<any>;
|
25
|
-
forgot(email: string): Observable<any>;
|
26
|
-
get photo(): string;
|
27
|
-
get displayName(): string;
|
28
|
-
get username(): string;
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormAuthentication, never>;
|
30
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormAuthentication>;
|
31
|
-
}
|
32
|
-
export declare enum LoginResult {
|
33
|
-
OK = 0,
|
34
|
-
Failed = 1
|
2
|
+
abstract getAccessToken(): string;
|
3
|
+
abstract signOut?(): Promise<any>;
|
35
4
|
}
|
@@ -39,6 +39,7 @@ export interface BizDocChildConfig {
|
|
39
39
|
}
|
40
40
|
/** BizDoc app options */
|
41
41
|
export interface BizDocConfig {
|
42
|
+
baseUrl?: string;
|
42
43
|
currencyCode?: string;
|
43
44
|
/** available user interface languages */
|
44
45
|
languages?: string[];
|
@@ -97,3 +98,8 @@ export interface PasswordConfig {
|
|
97
98
|
export interface UsernameConfig {
|
98
99
|
pattern?: string;
|
99
100
|
}
|
101
|
+
export interface SharedConfig {
|
102
|
+
maps?: GoogleMapsSettings | boolean;
|
103
|
+
formats?: FormatsSettings;
|
104
|
+
routing?: 'ng' | 'pane';
|
105
|
+
}
|
@@ -2,15 +2,17 @@ import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/c
|
|
2
2
|
import { Observable } from 'rxjs';
|
3
3
|
import { HubService } from './hub.service';
|
4
4
|
import { SessionService } from './session.service';
|
5
|
+
import { AuthenticationImpl } from './authentication';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
export declare class AppHttpInterceptor implements HttpInterceptor {
|
7
8
|
private _session;
|
9
|
+
private _auth;
|
8
10
|
private _messaging;
|
9
11
|
private readonly _ongoing;
|
10
12
|
readonly active$: Observable<boolean>;
|
11
13
|
private _baseUrl;
|
12
14
|
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
13
|
-
constructor(baseUrl: string, _session: SessionService, _messaging: HubService);
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppHttpInterceptor, [{ optional: true; }, null, null]>;
|
15
|
+
constructor(baseUrl: string, _session: SessionService, _auth: AuthenticationImpl, _messaging: HubService);
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppHttpInterceptor, [{ optional: true; }, null, null, null]>;
|
15
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppHttpInterceptor>;
|
16
18
|
}
|
package/lib/core/models.d.ts
CHANGED
@@ -545,6 +545,7 @@ export interface CubeView {
|
|
545
545
|
title: string;
|
546
546
|
type: ViewType;
|
547
547
|
chartType?: ChartType;
|
548
|
+
indexChartType?: ChartType;
|
548
549
|
}
|
549
550
|
export declare type ViewType = 'Spreadsheet' | 'Chart' | 'Pivot' | 'Grid';
|
550
551
|
export declare type ChartType = 'Pie' |
|
@@ -19,7 +19,6 @@ export declare class SessionService {
|
|
19
19
|
readonly themeChange: Observable<Theme>;
|
20
20
|
private _profile;
|
21
21
|
private _lang;
|
22
|
-
private readonly _guide;
|
23
22
|
private _firebase;
|
24
23
|
constructor(_config: BizDocConfig, _http: HttpClient, _cookies: CookieService, _hub: HubService);
|
25
24
|
get mode(): SessionMode;
|
@@ -56,15 +55,10 @@ export declare class SessionService {
|
|
56
55
|
refresh(): Observable<any>;
|
57
56
|
unregisterDevice(type: string, token: string): Observable<any>;
|
58
57
|
registerDevice(type: string, token: string): Observable<any>;
|
59
|
-
|
60
|
-
private _connect;
|
61
|
-
mayImpersonate(search: string, credentials?: {
|
62
|
-
username?: string;
|
63
|
-
password?: string;
|
64
|
-
}): Observable<UserInfo[]>;
|
58
|
+
mayImpersonate(search: string): Observable<UserInfo[]>;
|
65
59
|
impersonate(userId: string): Observable<any>;
|
66
|
-
inboxTouch():
|
67
|
-
notificationsTouch():
|
60
|
+
inboxTouch(): Promise<WatermarkInfo>;
|
61
|
+
notificationsTouch(): Promise<WatermarkInfo>;
|
68
62
|
private _getBrowserLang;
|
69
63
|
/**
|
70
64
|
*
|
@@ -76,6 +70,9 @@ export declare class SessionService {
|
|
76
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<SessionService, never>;
|
77
71
|
static ɵprov: i0.ɵɵInjectableDeclaration<SessionService>;
|
78
72
|
}
|
73
|
+
interface WatermarkInfo {
|
74
|
+
time: Date;
|
75
|
+
}
|
79
76
|
export interface Theme {
|
80
77
|
name: string;
|
81
78
|
primery: string;
|
@@ -87,3 +84,4 @@ export declare enum SessionMode {
|
|
87
84
|
Credentials = 0,
|
88
85
|
Okta = 1
|
89
86
|
}
|
87
|
+
export {};
|
@@ -50,7 +50,7 @@ export declare class CubeInfo {
|
|
50
50
|
* @param axes
|
51
51
|
* @param options
|
52
52
|
*/
|
53
|
-
|
53
|
+
popup(axes: Array<string | number> | {
|
54
54
|
[axis: string]: (string | number);
|
55
55
|
}, element: HTMLElement | ElementRef, options?: CubeDataOptions): void;
|
56
56
|
/**
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { OnDestroy, ElementRef } from '@angular/core';
|
2
|
-
import { LegendSeriesModel, TooltipSettingsModel, AccumulationChart, AccumulationDataLabelSettingsModel, AnimationModel, IAccTooltipRenderEventArgs } from '@syncfusion/ej2-angular-charts';
|
2
|
+
import { LegendSeriesModel, TooltipSettingsModel, AccumulationChart, AccumulationDataLabelSettingsModel, AnimationModel, IAccTooltipRenderEventArgs, IPointEventArgs } from '@syncfusion/ej2-angular-charts';
|
3
3
|
import { CubeAnalysisBase, Point, Options } from './cube-analysis.base';
|
4
4
|
import { DatasourceService } from '../../core/datasource.service';
|
5
5
|
import { SessionService } from '../../core/session.service';
|
6
6
|
import { CubeService, Series } from '../../cube/cube.service';
|
7
7
|
import { WidgetRef } from "../widget-ref";
|
8
8
|
import { Dimentions } from '../../core/models';
|
9
|
+
import { CubeInfo } from '../../cube/info/cube-info.service';
|
9
10
|
import * as i0 from "@angular/core";
|
10
11
|
export declare class CubeAccumAnalysisWidget extends CubeAnalysisBase implements OnDestroy {
|
11
12
|
private _elementRef;
|
@@ -19,12 +20,13 @@ export declare class CubeAccumAnalysisWidget extends CubeAnalysisBase implements
|
|
19
20
|
readonly tooltip: TooltipSettingsModel;
|
20
21
|
readonly animation: AnimationModel;
|
21
22
|
readonly enableRtl: boolean;
|
22
|
-
constructor(ref: WidgetRef<Options>, session: SessionService, ds: DatasourceService, cube: CubeService, _elementRef: ElementRef);
|
23
|
+
constructor(ref: WidgetRef<Options>, info: CubeInfo, session: SessionService, ds: DatasourceService, cube: CubeService, _elementRef: ElementRef);
|
23
24
|
onLoad(data: Series[]): void;
|
24
25
|
onResize(dim: Dimentions): void;
|
25
26
|
onThemeChange(): void;
|
26
27
|
tooltipRender(e: IAccTooltipRenderEventArgs): void;
|
27
28
|
private _draw;
|
29
|
+
pointClick(evt: IPointEventArgs): void;
|
28
30
|
ngOnDestroy(): void;
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeAccumAnalysisWidget, never>;
|
30
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<CubeAccumAnalysisWidget, "bizdoc-accum-cube-analysis", never, {}, {}, never, never>;
|
@@ -2,13 +2,15 @@ import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
3
3
|
import { Internationalization } from '@syncfusion/ej2-base';
|
4
4
|
import { WidgetComponent } from '../../core/base';
|
5
|
-
import { ChartType, Cube } from '../../core/models';
|
5
|
+
import { AxesMap, ChartType, Cube } from '../../core/models';
|
6
6
|
import { SessionService } from '../../core/session.service';
|
7
7
|
import { DatasourceService } from '../../core/datasource.service';
|
8
|
-
import { CubeService, Series } from '../../cube/cube.service';
|
8
|
+
import { CubeService, Series, ScopeType } from '../../cube/cube.service';
|
9
9
|
import { WidgetRef } from "../widget-ref";
|
10
|
+
import { CubeInfo } from '../../cube/info/cube-info.service';
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
export declare abstract class CubeAnalysisBase implements WidgetComponent<Series[]>, OnDestroy {
|
13
|
+
private _info;
|
12
14
|
protected _session: SessionService;
|
13
15
|
private _ds;
|
14
16
|
protected _service: CubeService;
|
@@ -24,10 +26,15 @@ export declare abstract class CubeAnalysisBase implements WidgetComponent<Series
|
|
24
26
|
protected _data: Series[];
|
25
27
|
private _series;
|
26
28
|
private _xAxis;
|
29
|
+
protected get series(): string[];
|
30
|
+
protected get xAxis(): string[];
|
27
31
|
private readonly _axisTypeMap;
|
28
32
|
protected readonly _intl: Internationalization;
|
29
33
|
protected readonly _destroy: Subject<void>;
|
30
|
-
constructor(ref: WidgetRef<Options>, _session: SessionService, _ds: DatasourceService, _service: CubeService);
|
34
|
+
constructor(ref: WidgetRef<Options>, _info: CubeInfo, _session: SessionService, _ds: DatasourceService, _service: CubeService);
|
35
|
+
protected explore(axes: AxesMap, options?: {
|
36
|
+
index?: string;
|
37
|
+
}): void;
|
31
38
|
abstract onResize(dim: {
|
32
39
|
height: number;
|
33
40
|
width: number;
|
@@ -40,6 +47,7 @@ export declare abstract class CubeAnalysisBase implements WidgetComponent<Series
|
|
40
47
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CubeAnalysisBase, never, never, {}, {}, never>;
|
41
48
|
}
|
42
49
|
export interface Options {
|
50
|
+
scope?: ScopeType;
|
43
51
|
chartType?: ChartType;
|
44
52
|
indexChartType?: ChartType;
|
45
53
|
cube?: string;
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
2
2
|
import { SessionService } from '../../core/session.service';
|
3
|
-
import { Chart, AxisModel, MarkerOptionsModel, LegendSeriesModel, TooltipSettingsModel, ChartSeriesType, AnimationModel,
|
3
|
+
import { Chart, AxisModel, MarkerOptionsModel, LegendSeriesModel, TooltipSettingsModel, ChartSeriesType, AnimationModel, ITooltipRenderEventArgs, IPointEventArgs } from '@syncfusion/ej2-angular-charts';
|
4
4
|
import { CubeAnalysisBase } from './cube-analysis.base';
|
5
5
|
import { DatasourceService } from '../../core/datasource.service';
|
6
6
|
import { WidgetRef } from "../widget-ref";
|
7
7
|
import { TranslateService } from '../../core/translate.service';
|
8
8
|
import { CubeService, Series } from '../../cube/cube.service';
|
9
|
+
import { CubeInfo } from '../../cube/info/cube-info.service';
|
9
10
|
import * as i0 from "@angular/core";
|
10
11
|
export declare class CubeChartAnalysisWidget extends CubeAnalysisBase {
|
11
12
|
private _elementRef;
|
12
13
|
private _translate;
|
13
14
|
chart: Chart;
|
14
|
-
series: SeriesModel[];
|
15
15
|
readonly type: ChartSeriesType;
|
16
16
|
readonly indexType: ChartSeriesType;
|
17
17
|
readonly marker: MarkerOptionsModel;
|
@@ -20,8 +20,9 @@ export declare class CubeChartAnalysisWidget extends CubeAnalysisBase {
|
|
20
20
|
readonly tooltip: TooltipSettingsModel;
|
21
21
|
readonly legend: LegendSeriesModel;
|
22
22
|
readonly animation: AnimationModel;
|
23
|
-
constructor(ref: WidgetRef, session: SessionService, ds: DatasourceService, cube: CubeService, _elementRef: ElementRef, _translate: TranslateService);
|
23
|
+
constructor(ref: WidgetRef, session: SessionService, ds: DatasourceService, cube: CubeService, info: CubeInfo, _elementRef: ElementRef, _translate: TranslateService);
|
24
24
|
onLoad(data: Series[]): void;
|
25
|
+
pointClick(evt: IPointEventArgs): void;
|
25
26
|
onThemeChange(): void;
|
26
27
|
onResize(): void;
|
27
28
|
tooltipRender(e: ITooltipRenderEventArgs): void;
|
@@ -2,7 +2,7 @@ import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
3
3
|
import { TranslateService } from '../../core/translate.service';
|
4
4
|
import { FormControl } from '@angular/forms';
|
5
|
-
import { FormAuthentication } from
|
5
|
+
import { FormAuthentication } from "../form.authentication";
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class ForgotComponent {
|
8
8
|
private translate;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { AuthenticationImpl } from '../core/authentication';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class FormAuthentication extends AuthenticationImpl {
|
6
|
+
private _http;
|
7
|
+
private _accessToken;
|
8
|
+
getAccessToken(): string;
|
9
|
+
authenticate(username: string, password: string, options?: {
|
10
|
+
rememberMe?: boolean;
|
11
|
+
}): Observable<string>;
|
12
|
+
constructor(_http: HttpClient);
|
13
|
+
signOut(): Promise<Object>;
|
14
|
+
forgot(email: string): Observable<any>;
|
15
|
+
get photo(): string;
|
16
|
+
get displayName(): string;
|
17
|
+
get username(): string;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAuthentication, never>;
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormAuthentication>;
|
20
|
+
}
|
21
|
+
export declare enum LoginResult {
|
22
|
+
OK = 0,
|
23
|
+
Failed = 1
|
24
|
+
}
|
25
|
+
export interface LoginResultModel {
|
26
|
+
gender?: string;
|
27
|
+
photo?: string;
|
28
|
+
name: string;
|
29
|
+
tokenId: string;
|
30
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { OktaConfig } from '@okta/okta-angular';
|
2
|
+
import { AuthenticationImpl } from '../core/authentication';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare const DEFAULT_SCOPES: string[];
|
5
|
+
export declare class OktaAuthentication extends AuthenticationImpl {
|
6
|
+
private _okta;
|
7
|
+
getAccessToken(): string;
|
8
|
+
isAuthenticated(): Promise<boolean>;
|
9
|
+
signOut(): Promise<void>;
|
10
|
+
constructor(_okta: OktaConfig);
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OktaAuthentication, never>;
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OktaAuthentication>;
|
13
|
+
}
|
@@ -1,17 +1,16 @@
|
|
1
1
|
import { OverlayRef } from '@angular/cdk/overlay';
|
2
2
|
import { OnInit } from '@angular/core';
|
3
3
|
import { BizDocConfig } from '../core/configuration';
|
4
|
-
import { SessionService } from '../core/session.service';
|
5
4
|
import { TranslateService } from '../core/translate.service';
|
6
5
|
import { OktaConfig } from '@okta/okta-angular';
|
7
6
|
import * as i0 from "@angular/core";
|
7
|
+
/** */
|
8
8
|
export declare class OktaComponent implements OnInit {
|
9
|
-
private _session;
|
10
9
|
private _translate;
|
11
10
|
private _overlayRef;
|
12
11
|
private _config;
|
13
12
|
private _okta;
|
14
|
-
constructor(
|
13
|
+
constructor(_translate: TranslateService, _overlayRef: OverlayRef, _config: BizDocConfig, _okta: OktaConfig);
|
15
14
|
ngOnInit(): void;
|
16
15
|
ngAfterViewInit(): void;
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<OktaComponent, never>;
|
@@ -6,14 +6,14 @@ import { FormGroup, FormControl } from '@angular/forms';
|
|
6
6
|
import { Observable } from 'rxjs';
|
7
7
|
import { PromptService } from '../../core/prompt.service';
|
8
8
|
import { AutofillMonitor } from '@angular/cdk/text-field';
|
9
|
-
import { FormAuthentication } from
|
9
|
+
import { FormAuthentication } from "../form.authentication";
|
10
10
|
import * as i0 from "@angular/core";
|
11
11
|
export declare class CredetialsComponent implements OnInit, AfterViewInit, OnDestroy {
|
12
12
|
private _session;
|
13
13
|
private _auth;
|
14
14
|
private _sb;
|
15
15
|
private _autofill;
|
16
|
-
readonly success: EventEmitter<
|
16
|
+
readonly success: EventEmitter<string>;
|
17
17
|
logging: boolean;
|
18
18
|
readonly loggingChange: EventEmitter<boolean>;
|
19
19
|
mode: LoginMode;
|
package/lib/shared.module.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
+
import { SharedConfig } from './core/configuration';
|
2
3
|
import * as i0 from "@angular/core";
|
3
4
|
import * as i1 from "./compose/document-info.component";
|
4
5
|
import * as i2 from "./compose/cube/document-view.component";
|
@@ -163,7 +164,7 @@ import * as i160 from "@syncfusion/ej2-angular-kanban";
|
|
163
164
|
import * as i161 from "./diagram.module";
|
164
165
|
import * as i162 from "./material.module";
|
165
166
|
export declare class SharedModule {
|
166
|
-
static forChild(): ModuleWithProviders<SharedModule>;
|
167
|
+
static forChild(config?: SharedConfig): ModuleWithProviders<SharedModule>;
|
167
168
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
168
169
|
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.DocumentInfoComponent, typeof i2.DocumentViewsComponent, typeof i3.ViewItemComponent, typeof i4.OktaComponent, typeof i5.ActionPicker, typeof i6.HtmlSimplePipe, typeof i7.QuickCommentComponent, typeof i8.DurationFormatPipe, typeof i9.CombinationPicker, typeof i10.CombinationPickerBody, typeof i11.CombinationPool, typeof i12.MatIconAnimate, typeof i13.DateRangePipe, typeof i14.ColorPicker, typeof i15.JoinPipe, typeof i16.TimePicker, typeof i17.TypeValuePipe, typeof i18.TypeSelect, typeof i19.TypeAutocomplete, typeof i20.TranslatePipe, typeof i21.IdentityName, typeof i22.SanitizeHtmlPipe, typeof i23.AceInput, typeof i24.TimespanInput, typeof i25.AddressInput, typeof i26.StatePipe, typeof i27.ActionPipe, typeof i28.RolePipe, typeof i29.FormPipe, typeof i30.FilterPipe, typeof i30.ArraySortPipe, typeof i31.UserNamePipe, typeof i32.LayoutComponent, typeof i33.HtmlField, typeof i34.NumericField, typeof i35.AutocompleteField, typeof i36.CheckField, typeof i37.DateField, typeof i38.DateRangeField, typeof i39.ExpressionField, typeof i40.InputField, typeof i41.SelectField, typeof i42.SwitchField, typeof i43.TextareaField, typeof i44.TimespanField, typeof i45.ReturnActionComponent, typeof i46.AssignActionComponent, typeof i47.AvatarComponent, typeof i48.PeopleComponent, typeof i49.EditInputComponent, typeof i50.NgxComponentOutlet, typeof i51.BizDocApp, typeof i52.LottieAnimation, typeof i6.ContactsComponent, typeof i53.CubeInfoTableComponent, typeof i54.FilterTagsComponent, typeof i55.ExploreItemsComponent, typeof i56.CompareNameDirective, typeof i56.CompareGroupDirective, typeof i56.CompareContextDirective, typeof i57.GuideComponent, typeof i58.OutOfOfficeToast, typeof i59.NotificationsTableComponent, typeof i60.NotificationsFilterComponent, typeof i61.TaggingPipe, typeof i62.PrivilegeHiddenDirective, typeof i63.TaggingItemDirective, typeof i64.TaggingDirective, typeof i65.DocumentTaggingComponent, typeof i66.UserTaggingComponent, typeof i62.PrivilegeDisabledDirective, typeof i67.CubeGridDocumentsComponent, typeof i68.LongRunningTaskNotification, typeof i69.TaggedNotification, typeof i70.CommentedNotification, typeof i71.NudgeNotification, typeof i72.TextNotification, typeof i73.CubeAnomalyNotification, typeof i74.EscalatedNotification, typeof i75.LikedNotification, typeof i76.StateChangedNotification, typeof i77.UpcomingEventNotification, typeof i78.NoneComponent, typeof i79.ScheduleViewComponent, typeof i80.OptionsComponent, typeof i81.TraceViewComponent, typeof i82.ProgressButtonDirective, typeof i83.AttachmentsComponent, typeof i84.DocumentEventsComponent, typeof i85.TagsComponent, typeof i86.MapComponent, typeof i87.MaskComponent, typeof i88.SaveChangesDialog, typeof i89.FlowViewComponent, typeof i90.SubstitutionComponent, typeof i91.PopupComponent, typeof i92.AttachmentPreview, typeof i93.CommentsComponent, typeof i94.CommentComponent, typeof i95.EditCommentComponent, typeof i96.CommentLikesComponent, typeof i97.CommentEditsComponent, typeof i98.BrowseItemsComponent, typeof i99.BrowseFilterComponent, typeof i100.ExpandedItemComponent, typeof i101.ComposeFormComponent, typeof i102.CubeViewComponent, typeof i103.CubeAccumulationChartComponent, typeof i104.CubeChartComponent, typeof i105.CubePivotComponent, typeof i106.DrilldownItemComponent, typeof i107.CubeFilterComponent, typeof i108.CubeSpreadsheetComponent, typeof i109.CubeGridComponent, typeof i110.ReportViewerComponent, typeof i111.TableViewComponent, typeof i112.ReportArgumentsComponent, typeof i113.DashboardComponent, typeof i114.WidgetItemComponent, typeof i115.CubeWidgetFilterComponent, typeof i116.CubeAccumAnalysisWidget, typeof i117.CubeAnalysisWidget, typeof i118.CubeChartAnalysisWidget, typeof i119.ActionsWidget, typeof i120.RecentsWidget, typeof i121.AskDialog, typeof i122.AboutDialog, typeof i123.ActionDialog, typeof i124.LoginComponent, typeof i125.ForgotComponent, typeof i126.CredetialsComponent, typeof i127.ImpersonateDialog, typeof i128.ConversationComponent, typeof i129.CubeInfoComponent, typeof i130.VersionCompareComponent, typeof i131.ExploreDocumentComponent, typeof i132.TasksComponent, typeof i133.PendingResultsWidget, typeof i134.CompareDepartmentsWidget, typeof i135.CubeDocumentsComponent, typeof i136.CubeDocumentsWidget, typeof i137.PersonalScoreWidget, typeof i138.PersonalActivityWidget, typeof i139.PeersPerformanceWidget, typeof i140.UsagePivotComponent, typeof i141.UsageChartComponent, typeof i142.UsageReportArgs, typeof i143.EmojiHostComponent, typeof i144.TooltipDirective, typeof i144.TooltipComponent], [typeof i145.CommonModule, typeof i146.HttpClientModule, typeof i147.ReactiveFormsModule, typeof i148.FlexLayoutModule, typeof i149.RouterModule, typeof i150.MomentModule, typeof i151.PickerModule, typeof i152.SyncfusionScheduleModule, typeof i153.SyncfusionCircularGaugeModule, typeof i154.SyncfusionLinearGaugeModule, typeof i155.SyncfusionChartModule, typeof i156.SyncfusionGridModule, typeof i157.RichTextEditorModule, typeof i158.SyncfusionSpreadsheetModule, typeof i159.SyncfusionPivotModule, typeof i160.KanbanModule, typeof i161.SyncfusionDiagramModule, typeof i162.MaterialModule], [typeof i1.DocumentInfoComponent, typeof i2.DocumentViewsComponent, typeof i113.DashboardComponent, typeof i85.TagsComponent, typeof i7.QuickCommentComponent, typeof i162.MaterialModule, typeof i93.CommentsComponent, typeof i123.ActionDialog, typeof i99.BrowseFilterComponent, typeof i107.CubeFilterComponent, typeof i79.ScheduleViewComponent, typeof i110.ReportViewerComponent, typeof i114.WidgetItemComponent, typeof i102.CubeViewComponent, typeof i55.ExploreItemsComponent, typeof i101.ComposeFormComponent, typeof i98.BrowseItemsComponent, typeof i59.NotificationsTableComponent, typeof i5.ActionPicker, typeof i128.ConversationComponent, typeof i6.ContactsComponent, typeof i53.CubeInfoTableComponent, typeof i8.DurationFormatPipe, typeof i9.CombinationPicker, typeof i11.CombinationPool, typeof i16.TimePicker, typeof i144.TooltipDirective, typeof i13.DateRangePipe, typeof i50.NgxComponentOutlet, typeof i12.MatIconAnimate, typeof i23.AceInput, typeof i15.JoinPipe, typeof i17.TypeValuePipe, typeof i18.TypeSelect, typeof i19.TypeAutocomplete, typeof i26.StatePipe, typeof i27.ActionPipe, typeof i28.RolePipe, typeof i29.FormPipe, typeof i30.FilterPipe, typeof i30.ArraySortPipe, typeof i31.UserNamePipe, typeof i22.SanitizeHtmlPipe, typeof i20.TranslatePipe, typeof i21.IdentityName, typeof i25.AddressInput, typeof i47.AvatarComponent, typeof i112.ReportArgumentsComponent, typeof i51.BizDocApp, typeof i92.AttachmentPreview, typeof i62.PrivilegeHiddenDirective, typeof i62.PrivilegeDisabledDirective, typeof i56.CompareGroupDirective, typeof i56.CompareNameDirective, typeof i56.CompareContextDirective, typeof i81.TraceViewComponent, typeof i89.FlowViewComponent, typeof i46.AssignActionComponent, typeof i45.ReturnActionComponent, typeof i131.ExploreDocumentComponent, typeof i119.ActionsWidget, typeof i117.CubeAnalysisWidget, typeof i136.CubeDocumentsWidget, typeof i120.RecentsWidget, typeof i138.PersonalActivityWidget, typeof i134.CompareDepartmentsWidget, typeof i139.PeersPerformanceWidget, typeof i133.PendingResultsWidget, typeof i137.PersonalScoreWidget, typeof i115.CubeWidgetFilterComponent, typeof i135.CubeDocumentsComponent, typeof i67.CubeGridDocumentsComponent, typeof i132.TasksComponent, typeof i142.UsageReportArgs, typeof i141.UsageChartComponent, typeof i140.UsagePivotComponent, typeof i24.TimespanInput, typeof i130.VersionCompareComponent, typeof i52.LottieAnimation]>;
|
169
170
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bizdoc/core",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.7.0-next.1",
|
4
4
|
"author": "Moding Ltd.",
|
5
5
|
"homepage": "https://github.com/moding-il/bizdoc.core",
|
6
6
|
"license": "https://github.com/moding-il/bizdoc.core/blob/master/License.md",
|
@@ -11,14 +11,17 @@
|
|
11
11
|
"dependencies": {
|
12
12
|
"@ctrl/ngx-emoji-mart": "^6.0.1",
|
13
13
|
"@microsoft/signalr": "^5.0.10",
|
14
|
+
"@okta/okta-angular": "^4.0.0",
|
15
|
+
"@okta/okta-auth-js": "^5.5.0",
|
16
|
+
"@okta/okta-signin-widget": "^5.10.1",
|
14
17
|
"@syncfusion/ej2": "^19.2.62",
|
15
18
|
"@syncfusion/ej2-angular-charts": "^19.2.62",
|
16
19
|
"@syncfusion/ej2-angular-circulargauge": "^19.2.62",
|
17
|
-
"@syncfusion/ej2-angular-lineargauge": "^19.2.60",
|
18
20
|
"@syncfusion/ej2-angular-diagrams": "^19.2.62",
|
19
21
|
"@syncfusion/ej2-angular-grids": "^19.2.62",
|
20
22
|
"@syncfusion/ej2-angular-kanban": "^19.2.60",
|
21
23
|
"@syncfusion/ej2-angular-layouts": "^19.2.60",
|
24
|
+
"@syncfusion/ej2-angular-lineargauge": "^19.2.60",
|
22
25
|
"@syncfusion/ej2-angular-pivotview": "^19.2.60",
|
23
26
|
"@syncfusion/ej2-angular-richtexteditor": "^19.2.62",
|
24
27
|
"@syncfusion/ej2-angular-schedule": "^19.2.60",
|
@@ -32,13 +35,10 @@
|
|
32
35
|
"hammerjs": "~2",
|
33
36
|
"lottie-web": "^5.7.13",
|
34
37
|
"moment": "^2.29.1",
|
35
|
-
"@okta/okta-auth-js": "^5.5.0",
|
36
|
-
"@okta/okta-angular": "^4.0.0",
|
37
|
-
"@okta/okta-signin-widget": "^5.10.1",
|
38
38
|
"ngx-cookie-service": "^12.0.3",
|
39
39
|
"ngx-moment": "^5.0.0",
|
40
|
-
"semantic-ui-css": "^2.4.1",
|
41
40
|
"rxjs": "^7.3.0",
|
41
|
+
"semantic-ui-css": "^2.4.1",
|
42
42
|
"xlsx": "^0.17.2",
|
43
43
|
"zone.js": "^0.11.4",
|
44
44
|
"tslib": "^2.2.0"
|
package/public-api.d.ts
CHANGED
@@ -125,3 +125,6 @@ export { DocumentViewRef } from "./lib/compose/cube/document-view-ref";
|
|
125
125
|
export { RouterImpl } from './lib/core/router';
|
126
126
|
export { DocumentInfoComponent } from './lib/compose/document-info.component';
|
127
127
|
export { OktaHttpInterceptor } from "./lib/login/okta.interceptor";
|
128
|
+
export { AuthenticationImpl } from './lib/core/authentication';
|
129
|
+
export { OktaAuthentication } from "./lib/login/okta.authentication";
|
130
|
+
export { FormAuthentication } from "./lib/login/form.authentication";
|
@@ -464,6 +464,28 @@
|
|
464
464
|
},
|
465
465
|
"pattern": "^[A-Za-z][\\w]*$"
|
466
466
|
},
|
467
|
+
"chart-type": {
|
468
|
+
"type": "string",
|
469
|
+
"default": "Column",
|
470
|
+
"enum": [
|
471
|
+
"Pie",
|
472
|
+
"Bar",
|
473
|
+
"StackingBar",
|
474
|
+
"Line",
|
475
|
+
"StepLine",
|
476
|
+
"Column",
|
477
|
+
"StackingColumn",
|
478
|
+
"Area",
|
479
|
+
"Spline",
|
480
|
+
"SplineArea",
|
481
|
+
"StackingArea",
|
482
|
+
"Doughnut",
|
483
|
+
"HalfDoughnut",
|
484
|
+
"Polar",
|
485
|
+
"Radar",
|
486
|
+
"StepArea"
|
487
|
+
]
|
488
|
+
},
|
467
489
|
"axis_value": {
|
468
490
|
"description": "Axis value.",
|
469
491
|
"type": "object",
|
@@ -992,25 +1014,10 @@
|
|
992
1014
|
]
|
993
1015
|
},
|
994
1016
|
"ChartType": {
|
995
|
-
"
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
"Bar",
|
1000
|
-
"StackingBar",
|
1001
|
-
"Line",
|
1002
|
-
"StepLine",
|
1003
|
-
"Column",
|
1004
|
-
"StackingColumn",
|
1005
|
-
"Area",
|
1006
|
-
"Spline",
|
1007
|
-
"SplineArea",
|
1008
|
-
"Doughnut",
|
1009
|
-
"HalfDoughnut",
|
1010
|
-
"Polar",
|
1011
|
-
"Radar",
|
1012
|
-
"StepArea"
|
1013
|
-
]
|
1017
|
+
"$ref": "#/definitions/chart-type"
|
1018
|
+
},
|
1019
|
+
"IndexChartType": {
|
1020
|
+
"$ref": "#/definitions/chart-type"
|
1014
1021
|
},
|
1015
1022
|
"Series": {
|
1016
1023
|
"$ref": "#/definitions/axis"
|