@transcommerce/cwm-shared 1.1.87 → 1.1.90
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/fesm2022/transcommerce-cwm-shared.mjs +1462 -444
- package/fesm2022/transcommerce-cwm-shared.mjs.map +1 -1
- package/lib/components/external-navigation/external-navigation.component.d.ts +1 -1
- package/lib/components/navigate-to-route/navigate-to-route.component.d.ts +1 -1
- package/lib/components/page-not-found/page-not-found.component.d.ts +1 -1
- package/lib/cwm-shared-standalone.d.ts +19 -0
- package/lib/helpers/async-utils.d.ts +31 -3
- package/lib/helpers/jwt.d.ts +35 -0
- package/lib/helpers/time-span.d.ts +344 -0
- package/lib/helpers/utilities.d.ts +301 -0
- package/lib/models/slide.d.ts +43 -0
- package/lib/models/style/color-style.d.ts +2 -2
- package/lib/models/style/coordinates-style.d.ts +21 -2
- package/lib/models/style/font-style.d.ts +39 -2
- package/lib/models/style/hex-color.d.ts +8 -0
- package/lib/models/style/image-style.d.ts +57 -3
- package/lib/models/style/justifications.d.ts +8 -0
- package/lib/models/style/named-colors.d.ts +8 -0
- package/lib/models/style/ng-style-attribute.d.ts +14 -0
- package/lib/models/style/on-style.d.ts +2 -2
- package/lib/models/style/rgba-color-style.d.ts +42 -2
- package/lib/models/style/size-style.d.ts +20 -3
- package/lib/models/style/text-style.d.ts +65 -2
- package/lib/modules/cwm-shared.module.d.ts +25 -10
- package/lib/pipes/safe-html.pipe.d.ts +1 -1
- package/lib/services/local-storage.service.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +10 -10
- package/lib/helpers/db-keys.d.ts +0 -18
- package/lib/helpers/time-span-overflow-error.d.ts +0 -2
- package/lib/models/style/ng-style-item.d.ts +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HexColor } from './hex-color';
|
|
2
2
|
import { NamedColors } from './named-colors';
|
|
3
3
|
import { OnStyle } from './on-style';
|
|
4
|
-
import {
|
|
4
|
+
import { ngStyleAttribute } from './ng-style-attribute';
|
|
5
5
|
export declare class RgbaColorStyle implements OnStyle {
|
|
6
|
-
ngOnStyle(ngStyle:
|
|
6
|
+
ngOnStyle(ngStyle: ngStyleAttribute): ngStyleAttribute;
|
|
7
7
|
r: number;
|
|
8
8
|
g: number;
|
|
9
9
|
b: number;
|
|
@@ -14,3 +14,43 @@ export declare class RgbaColorStyle implements OnStyle {
|
|
|
14
14
|
toCssString(): string;
|
|
15
15
|
toNamedColor(): string | null;
|
|
16
16
|
}
|
|
17
|
+
export declare const DEFAULT_RGBA_COLOR_STYLE: RgbaColorStyle;
|
|
18
|
+
export declare const RGBA_COLOR_STYLE_SCHEMA: {
|
|
19
|
+
type: string;
|
|
20
|
+
title: string;
|
|
21
|
+
properties: {
|
|
22
|
+
r: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
minimum: number;
|
|
27
|
+
maximum: number;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
g: {
|
|
31
|
+
type: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
minimum: number;
|
|
35
|
+
maximum: number;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
b: {
|
|
39
|
+
type: string;
|
|
40
|
+
title: string;
|
|
41
|
+
description: string;
|
|
42
|
+
minimum: number;
|
|
43
|
+
maximum: number;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
a: {
|
|
47
|
+
type: string;
|
|
48
|
+
title: string;
|
|
49
|
+
description: string;
|
|
50
|
+
minimum: number;
|
|
51
|
+
maximum: number;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
required: string[];
|
|
56
|
+
};
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { OnStyle } from './on-style';
|
|
2
|
-
import {
|
|
2
|
+
import { ngStyleAttribute } from './ng-style-attribute';
|
|
3
3
|
export declare class SizeStyle implements OnStyle {
|
|
4
|
-
ngOnStyle(ngStyle:
|
|
4
|
+
ngOnStyle(ngStyle: ngStyleAttribute): ngStyleAttribute;
|
|
5
5
|
width: number | string | any | undefined;
|
|
6
6
|
height: number | string | any | undefined;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const DEFAULT_SIZE_STYLE: SizeStyle;
|
|
9
|
+
export declare const SIZE_STYLE_SCHEMA: {
|
|
10
|
+
type: string;
|
|
11
|
+
title: string;
|
|
12
|
+
properties: {
|
|
13
|
+
width: {
|
|
14
|
+
type: string[];
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
height: {
|
|
19
|
+
type: string[];
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
required: string[];
|
|
25
|
+
};
|
|
@@ -2,7 +2,7 @@ import { ColorStyle } from './color-style';
|
|
|
2
2
|
import { FontStyle } from './font-style';
|
|
3
3
|
import { ImageStyle } from './image-style';
|
|
4
4
|
import { OnStyle } from './on-style';
|
|
5
|
-
import {
|
|
5
|
+
import { ngStyleAttribute } from './ng-style-attribute';
|
|
6
6
|
export declare class TextStyle implements OnStyle {
|
|
7
7
|
font: FontStyle | undefined;
|
|
8
8
|
textColor: ColorStyle | undefined;
|
|
@@ -10,6 +10,69 @@ export declare class TextStyle implements OnStyle {
|
|
|
10
10
|
watermark: string | undefined;
|
|
11
11
|
image: ImageStyle | undefined;
|
|
12
12
|
value: string;
|
|
13
|
-
ngOnStyle(ngStyle:
|
|
13
|
+
ngOnStyle(ngStyle: ngStyleAttribute): ngStyleAttribute;
|
|
14
14
|
}
|
|
15
15
|
export declare const DEFAULT_TEXT_STYLE: TextStyle;
|
|
16
|
+
export declare const TEXT_STYLE_SCHEMA: {
|
|
17
|
+
type: string;
|
|
18
|
+
title: string;
|
|
19
|
+
properties: {
|
|
20
|
+
value: {
|
|
21
|
+
type: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
font: {
|
|
26
|
+
type: string;
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
properties: {
|
|
30
|
+
family: {
|
|
31
|
+
type: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
type: string[];
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
weight: {
|
|
41
|
+
type: string[];
|
|
42
|
+
title: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
style: {
|
|
46
|
+
type: string;
|
|
47
|
+
title: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
decoration: {
|
|
51
|
+
type: string;
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
textColor: {
|
|
58
|
+
type: string;
|
|
59
|
+
title: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
backgroundColor: {
|
|
63
|
+
type: string;
|
|
64
|
+
title: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
watermark: {
|
|
68
|
+
type: string;
|
|
69
|
+
title: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
image: {
|
|
73
|
+
type: string;
|
|
74
|
+
title: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/router";
|
|
4
|
+
import * as i3 from "@azure/msal-angular";
|
|
5
|
+
import * as i4 from "@angular/platform-browser";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "../components/external-navigation/external-navigation.component";
|
|
8
|
+
import * as i7 from "../components/navigate-to-route/navigate-to-route.component";
|
|
9
|
+
import * as i8 from "../components/page-not-found/page-not-found.component";
|
|
10
|
+
import * as i9 from "../pipes/safe-html.pipe";
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use standalone components directly instead
|
|
13
|
+
*
|
|
14
|
+
* This module is maintained for backwards compatibility only.
|
|
15
|
+
* New applications should import standalone components directly:
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* import { PageNotFoundComponent, SafeHtmlPipe } from '@transcommerce/cwm-shared';
|
|
19
|
+
*
|
|
20
|
+
* @Component({
|
|
21
|
+
* selector: 'app-root',
|
|
22
|
+
* standalone: true,
|
|
23
|
+
* imports: [PageNotFoundComponent, SafeHtmlPipe]
|
|
24
|
+
* })
|
|
25
|
+
*/
|
|
11
26
|
export declare class CwmSharedModule {
|
|
12
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CwmSharedModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CwmSharedModule, [typeof i1.
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CwmSharedModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.MsalModule, typeof i4.BrowserModule, typeof i5.FormsModule, typeof i6.ExternalNavigationComponent, typeof i7.NavigateToRouteComponent, typeof i8.PageNotFoundComponent, typeof i9.SafeHtmlPipe], [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.MsalModule, typeof i6.ExternalNavigationComponent, typeof i7.NavigateToRouteComponent, typeof i8.PageNotFoundComponent, typeof i9.SafeHtmlPipe]>;
|
|
14
29
|
static ɵinj: i0.ɵɵInjectorDeclaration<CwmSharedModule>;
|
|
15
30
|
}
|
|
@@ -6,5 +6,5 @@ export declare class SafeHtmlPipe implements PipeTransform {
|
|
|
6
6
|
constructor(sanitizer: DomSanitizer);
|
|
7
7
|
transform(value: string): SafeHtml;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml",
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", true>;
|
|
10
10
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class LocalStorageService {
|
|
4
|
+
static readonly USER_DATA = "user_data";
|
|
5
|
+
static readonly SYNC_KEYS = "sync_keys";
|
|
4
6
|
private static syncListenerInitialized;
|
|
5
7
|
private syncKeys;
|
|
6
8
|
private initEvent;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
export { ExternalNavigationComponent } from './lib/components/external-navigation/external-navigation.component';
|
|
2
|
+
export { NavigateToRouteComponent } from './lib/components/navigate-to-route/navigate-to-route.component';
|
|
3
|
+
export { PageNotFoundComponent } from './lib/components/page-not-found/page-not-found.component';
|
|
4
|
+
export { msalInstanceFactory } from './lib/factories/msal.instance.factory';
|
|
5
|
+
export { msalGuardConfigFactory } from './lib/factories/msal.guard.config.factory';
|
|
6
|
+
export { msalInterceptorConfigFactory } from './lib/factories/msal-interceptor-config.factory';
|
|
7
7
|
export * from './lib/helpers/async-utils';
|
|
8
|
-
export * from './lib/helpers/db-keys';
|
|
9
8
|
export * from './lib/helpers/jwt';
|
|
10
9
|
export * from './lib/helpers/stack';
|
|
11
10
|
export * from './lib/helpers/time-span';
|
|
12
|
-
export * from './lib/helpers/time-span-overflow-error';
|
|
13
11
|
export * from './lib/helpers/utilities';
|
|
14
12
|
export * from './lib/models/config/api-config';
|
|
15
13
|
export * from './lib/models/config/auth-config';
|
|
@@ -23,7 +21,8 @@ export * from './lib/models/style/font-style';
|
|
|
23
21
|
export * from './lib/models/style/hex-color';
|
|
24
22
|
export * from './lib/models/style/image-style';
|
|
25
23
|
export * from './lib/models/style/justifications';
|
|
26
|
-
export * from './lib/models/style/
|
|
24
|
+
export * from './lib/models/style/named-colors';
|
|
25
|
+
export * from './lib/models/style/ng-style-attribute';
|
|
27
26
|
export * from './lib/models/style/on-style';
|
|
28
27
|
export * from './lib/models/style/rgba-color-style';
|
|
29
28
|
export * from './lib/models/style/size-style';
|
|
@@ -43,10 +42,11 @@ export * from './lib/models/slide';
|
|
|
43
42
|
export * from './lib/models/subscription';
|
|
44
43
|
export * from './lib/models/user-types';
|
|
45
44
|
export * from './lib/models/weight-tier-information';
|
|
45
|
+
export * from './lib/cwm-shared-standalone';
|
|
46
46
|
export * from './lib/modules/cwm-shared.module';
|
|
47
47
|
export * from '@angular/common';
|
|
48
48
|
export * from '@azure/msal-angular';
|
|
49
|
-
export
|
|
49
|
+
export { SafeHtmlPipe } from './lib/pipes/safe-html.pipe';
|
|
50
50
|
export * from './lib/services/mocks/mock-inventory-api-response';
|
|
51
51
|
export * from './lib/services/mocks/mock-config';
|
|
52
52
|
export * from './lib/services/mocks/mock-profile';
|
package/lib/helpers/db-keys.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DbKeys {
|
|
3
|
-
static readonly CURRENT_USER = "current_user";
|
|
4
|
-
static readonly USER_PERMISSIONS = "user_permissions";
|
|
5
|
-
static readonly USER_DATA = "user_data";
|
|
6
|
-
static readonly SYNC_KEYS = "sync_keys";
|
|
7
|
-
static readonly AUTH_PROVIDER = "auth_provider";
|
|
8
|
-
static readonly REMEMBER_ME = "remember_me";
|
|
9
|
-
static readonly LANGUAGE = "language";
|
|
10
|
-
static readonly HOME_URL = "home_url";
|
|
11
|
-
static readonly THEME_ID = "themeId";
|
|
12
|
-
static readonly SHOW_DASHBOARD_STATISTICS = "show_dashboard_statistics";
|
|
13
|
-
static readonly SHOW_DASHBOARD_NOTIFICATIONS = "show_dashboard_notifications";
|
|
14
|
-
static readonly SHOW_DASHBOARD_TODO = "show_dashboard_todo";
|
|
15
|
-
static readonly SHOW_DASHBOARD_BANNER = "show_dashboard_banner";
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbKeys, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DbKeys>;
|
|
18
|
-
}
|