@softheon/armature 15.1.1 → 15.7.0

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.
Files changed (85) hide show
  1. package/assets/styles/sof-styles.scss +1002 -25
  2. package/esm2020/lib/alert-banner/alert-banner.module.mjs +4 -4
  3. package/esm2020/lib/alert-banner/components/alert-banner/alert-banner.component.mjs +3 -3
  4. package/esm2020/lib/alert-banner/services/alert-banner.service.mjs +3 -3
  5. package/esm2020/lib/armature.module.mjs +4 -4
  6. package/esm2020/lib/base-components/base-component-api.mjs +3 -1
  7. package/esm2020/lib/base-components/base-component.module.mjs +21 -10
  8. package/esm2020/lib/base-components/sof-alert/sof-alert.component.mjs +3 -3
  9. package/esm2020/lib/base-components/sof-banner/sof-banner.component.mjs +3 -3
  10. package/esm2020/lib/base-components/sof-button-toggle-group/sof-button-toggle-group.component.mjs +3 -3
  11. package/esm2020/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.mjs +59 -0
  12. package/esm2020/lib/base-components/sof-modal/sof-modal.component.mjs +3 -3
  13. package/esm2020/lib/base-components/sof-progress-bar/sof-progress-bar.component.mjs +3 -3
  14. package/esm2020/lib/base-components/sof-star-rating/sof-star-rating.component.mjs +40 -0
  15. package/esm2020/lib/component-save-print/components/component-save-print/component-save-print.component.mjs +3 -3
  16. package/esm2020/lib/component-save-print/services/component-save-print.service.mjs +3 -3
  17. package/esm2020/lib/component-save-print/sof-ar-component-save-print.module.mjs +4 -4
  18. package/esm2020/lib/core/client-generated/api/session.service.mjs +3 -3
  19. package/esm2020/lib/core/components/app-template/app-template.component.mjs +3 -3
  20. package/esm2020/lib/core/initializer/initializer.service.mjs +38 -9
  21. package/esm2020/lib/core/interceptors/armature-auth-token-append.interceptor.mjs +3 -3
  22. package/esm2020/lib/core/models/oidc-auth-settings.mjs +1 -1
  23. package/esm2020/lib/core/services/authorization.service.mjs +3 -3
  24. package/esm2020/lib/core/services/banner.service.mjs +3 -3
  25. package/esm2020/lib/core/services/base-config.service.mjs +3 -3
  26. package/esm2020/lib/core/services/default-config.service.mjs +3 -3
  27. package/esm2020/lib/core/services/session.service.mjs +3 -3
  28. package/esm2020/lib/core/services/user-entity.service.mjs +3 -3
  29. package/esm2020/lib/distributed-cache/client-generated/api/cache.service.mjs +3 -3
  30. package/esm2020/lib/distributed-cache/distributed-cache.module.mjs +4 -4
  31. package/esm2020/lib/distributed-cache/services/server-cache.service.mjs +3 -3
  32. package/esm2020/lib/error/components/error-common/error-common.component.mjs +3 -3
  33. package/esm2020/lib/error/error.module.mjs +4 -4
  34. package/esm2020/lib/faq/components/faq/faq.component.mjs +3 -3
  35. package/esm2020/lib/faq/faq.module.mjs +4 -4
  36. package/esm2020/lib/footer/components/footer/footer.component.mjs +3 -3
  37. package/esm2020/lib/footer/components/site-map/site-map.component.mjs +3 -3
  38. package/esm2020/lib/footer/footer.module.mjs +4 -4
  39. package/esm2020/lib/forms/components/sof-address/sof-address.component.mjs +3 -3
  40. package/esm2020/lib/forms/directives/alphanumeric/alphanumeric.directive.mjs +3 -3
  41. package/esm2020/lib/forms/directives/input-trim/input-trim.directive.mjs +3 -3
  42. package/esm2020/lib/forms/directives/letters-only/letters-only.directive.mjs +3 -3
  43. package/esm2020/lib/forms/directives/numbers-only/numbers-only.directive.mjs +3 -3
  44. package/esm2020/lib/forms/forms.module.mjs +4 -4
  45. package/esm2020/lib/forms/pipes/phone-format.pipe.mjs +3 -3
  46. package/esm2020/lib/forms/services/alert.service.mjs +3 -3
  47. package/esm2020/lib/header/components/header/header.component.mjs +4 -4
  48. package/esm2020/lib/header/components/mobile-header-menu/mobile-header-menu.component.mjs +3 -3
  49. package/esm2020/lib/header/header.module.mjs +4 -4
  50. package/esm2020/lib/navigation/components/navigation/navigation.component.mjs +8 -7
  51. package/esm2020/lib/navigation/navigation.module.mjs +4 -4
  52. package/esm2020/lib/oauth/oauth.module.mjs +4 -4
  53. package/esm2020/lib/oauth/services/hybrid-saml-oauth.service.mjs +3 -3
  54. package/esm2020/lib/rbac/directives/rbac-action.directive.mjs +3 -3
  55. package/esm2020/lib/rbac/rbac.module.mjs +4 -4
  56. package/esm2020/lib/rbac/services/ar-role-nav.service.mjs +3 -3
  57. package/esm2020/lib/rbac/services/oauth2-role.service.mjs +3 -3
  58. package/esm2020/lib/resize-panels/components/resize-panels/resize-panels.component.mjs +3 -3
  59. package/esm2020/lib/resize-panels/resize-panels.module.mjs +4 -4
  60. package/esm2020/lib/rum/rum.module.mjs +4 -4
  61. package/esm2020/lib/rum/services/rum.service.mjs +3 -3
  62. package/esm2020/lib/rum/services/shared-error.service.mjs +3 -3
  63. package/esm2020/lib/rum/services/softheon-error-handler.service.mjs +3 -3
  64. package/esm2020/lib/saml/components/redirect-saml/redirect-saml.component.mjs +3 -3
  65. package/esm2020/lib/saml/saml.module.mjs +4 -4
  66. package/esm2020/lib/saml/services/entry/sso-gateway-entry.service.mjs +3 -3
  67. package/esm2020/lib/saml/services/send-off/saml.service.mjs +3 -3
  68. package/esm2020/lib/sof-pipe/pipes/sof-blank/sof-blank.pipe.mjs +3 -3
  69. package/esm2020/lib/sof-pipe/pipes/sof-date/sof-date.pipe.mjs +3 -3
  70. package/esm2020/lib/sof-pipe/pipes/sof-ssn/sof-ssn.pipe.mjs +3 -3
  71. package/esm2020/lib/sof-pipe/sof-pipe.module.mjs +4 -4
  72. package/esm2020/lib/theming/directives/css-override.directive.mjs +3 -3
  73. package/esm2020/lib/theming/services/theme.service.mjs +3 -3
  74. package/esm2020/lib/theming/theme.module.mjs +4 -4
  75. package/fesm2015/softheon-armature.mjs +403 -278
  76. package/fesm2015/softheon-armature.mjs.map +1 -1
  77. package/fesm2020/softheon-armature.mjs +393 -269
  78. package/fesm2020/softheon-armature.mjs.map +1 -1
  79. package/lib/base-components/base-component-api.d.ts +2 -0
  80. package/lib/base-components/base-component.module.d.ts +19 -16
  81. package/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.d.ts +28 -0
  82. package/lib/base-components/sof-star-rating/sof-star-rating.component.d.ts +25 -0
  83. package/lib/core/initializer/initializer.service.d.ts +11 -2
  84. package/lib/core/models/oidc-auth-settings.d.ts +2 -0
  85. package/package.json +1 -1
@@ -5,3 +5,5 @@ export * from './sof-banner/sof-banner.component';
5
5
  export * from './sof-alert/sof-alert.component';
6
6
  export * from './sof-modal/sof-modal.component';
7
7
  export * from './sof-button-toggle-group/sof-button-toggle-group.component';
8
+ export * from './sof-star-rating/sof-star-rating.component';
9
+ export * from './sof-image-checkbox/sof-image-checkbox.component';
@@ -4,24 +4,27 @@ import * as i2 from "./sof-banner/sof-banner.component";
4
4
  import * as i3 from "./sof-alert/sof-alert.component";
5
5
  import * as i4 from "./sof-modal/sof-modal.component";
6
6
  import * as i5 from "./sof-button-toggle-group/sof-button-toggle-group.component";
7
- import * as i6 from "@angular/router";
8
- import * as i7 from "@angular/common";
9
- import * as i8 from "@angular/flex-layout";
10
- import * as i9 from "@angular/forms";
11
- import * as i10 from "@ngx-translate/core";
12
- import * as i11 from "@angular/material/select";
13
- import * as i12 from "@angular/material/core";
14
- import * as i13 from "@angular/material/checkbox";
15
- import * as i14 from "@angular/material/icon";
16
- import * as i15 from "@angular/material/dialog";
17
- import * as i16 from "@angular/material/button";
18
- import * as i17 from "@angular/material/form-field";
19
- import * as i18 from "@angular/material/toolbar";
20
- import * as i19 from "@angular/material/tooltip";
21
- import * as i20 from "@angular/material/button-toggle";
7
+ import * as i6 from "./sof-star-rating/sof-star-rating.component";
8
+ import * as i7 from "./sof-image-checkbox/sof-image-checkbox.component";
9
+ import * as i8 from "@angular/router";
10
+ import * as i9 from "@angular/common";
11
+ import * as i10 from "@angular/flex-layout";
12
+ import * as i11 from "@angular/forms";
13
+ import * as i12 from "@ngx-translate/core";
14
+ import * as i13 from "@angular/material/select";
15
+ import * as i14 from "@angular/material/core";
16
+ import * as i15 from "@angular/material/checkbox";
17
+ import * as i16 from "@angular/material/icon";
18
+ import * as i17 from "@angular/material/dialog";
19
+ import * as i18 from "@angular/material/button";
20
+ import * as i19 from "@angular/material/form-field";
21
+ import * as i20 from "@angular/material/toolbar";
22
+ import * as i21 from "@angular/material/tooltip";
23
+ import * as i22 from "@angular/material/button-toggle";
24
+ import * as i23 from "@angular/material/card";
22
25
  /** The BaseComponentModule Module */
23
26
  export declare class BaseComponentModule {
24
27
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentModule, [typeof i1.SofProgressBarComponent, typeof i2.SofBannerComponent, typeof i3.SofAlertComponent, typeof i4.SofModalComponent, typeof i5.SofButtonToggleGroupComponent], [typeof i6.RouterModule, typeof i7.CommonModule, typeof i8.FlexLayoutModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.TranslateModule, typeof i11.MatSelectModule, typeof i12.MatOptionModule, typeof i13.MatCheckboxModule, typeof i14.MatIconModule, typeof i15.MatDialogModule, typeof i16.MatButtonModule, typeof i17.MatFormFieldModule, typeof i18.MatToolbarModule, typeof i19.MatTooltipModule, typeof i20.MatButtonToggleModule], [typeof i1.SofProgressBarComponent, typeof i2.SofBannerComponent, typeof i3.SofAlertComponent, typeof i4.SofModalComponent, typeof i5.SofButtonToggleGroupComponent]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentModule, [typeof i1.SofProgressBarComponent, typeof i2.SofBannerComponent, typeof i3.SofAlertComponent, typeof i4.SofModalComponent, typeof i5.SofButtonToggleGroupComponent, typeof i6.SofStarRatingComponent, typeof i7.SofImageCheckboxComponent], [typeof i8.RouterModule, typeof i9.CommonModule, typeof i10.FlexLayoutModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.TranslateModule, typeof i13.MatSelectModule, typeof i14.MatOptionModule, typeof i15.MatCheckboxModule, typeof i16.MatIconModule, typeof i17.MatDialogModule, typeof i18.MatButtonModule, typeof i19.MatFormFieldModule, typeof i20.MatToolbarModule, typeof i21.MatTooltipModule, typeof i22.MatButtonToggleModule, typeof i23.MatCardModule], [typeof i1.SofProgressBarComponent, typeof i2.SofBannerComponent, typeof i3.SofAlertComponent, typeof i4.SofModalComponent, typeof i5.SofButtonToggleGroupComponent, typeof i6.SofStarRatingComponent, typeof i7.SofImageCheckboxComponent]>;
26
29
  static ɵinj: i0.ɵɵInjectorDeclaration<BaseComponentModule>;
27
30
  }
@@ -0,0 +1,28 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SofImageCheckboxComponent implements OnInit {
4
+ /** The language text or a key that will be shown in this component */
5
+ imageTitle: string;
6
+ /** If Checkbox is checked */
7
+ isChecked: boolean;
8
+ /** The image url of image */
9
+ imageUrl: string;
10
+ /** Height of image */
11
+ imageHeight: string;
12
+ /** Width of image */
13
+ imageWidth: string;
14
+ /** Height of container */
15
+ containerHeight: string;
16
+ /** Width of container */
17
+ containerWidth: string;
18
+ /** Color theme */
19
+ matColor: string;
20
+ /** Whether the image checkbox is disabled or not */
21
+ isDisabled: boolean;
22
+ /** The constructor */
23
+ constructor();
24
+ /** Component on init lifecycle method */
25
+ ngOnInit(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<SofImageCheckboxComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofImageCheckboxComponent, "sof-image-checkbox", never, { "imageTitle": "imageTitle"; "imageUrl": "imageUrl"; "imageHeight": "imageHeight"; "imageWidth": "imageWidth"; "containerHeight": "containerHeight"; "containerWidth": "containerWidth"; "matColor": "matColor"; "isDisabled": "disabled"; }, {}, never, never, false, never>;
28
+ }
@@ -0,0 +1,25 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /** The progress bar page component */
4
+ export declare class SofStarRatingComponent implements OnInit {
5
+ /** The number of stars */
6
+ rating: number;
7
+ /** The max number of stars */
8
+ maxStars: number;
9
+ /**
10
+ * The constructor
11
+ */
12
+ constructor();
13
+ /**
14
+ * On component init
15
+ */
16
+ ngOnInit(): void;
17
+ /** Get full stars */
18
+ get fullStars(): number[];
19
+ /** Get half stars */
20
+ get hasHalfStar(): boolean;
21
+ /** Get empty stars */
22
+ get emptyStars(): number[];
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<SofStarRatingComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofStarRatingComponent, "sof-star-rating", never, { "rating": "rating"; "maxStars": "maxStars"; }, {}, never, never, false, never>;
25
+ }
@@ -5,6 +5,8 @@ import { Observable } from 'rxjs';
5
5
  import { ThemeService } from '../../theming/services/theme.service';
6
6
  import { BaseConfigService } from '../services/base-config.service';
7
7
  import { CustomAuthConfigService } from '../services/custom-auth-config.service';
8
+ import { Router } from '@angular/router';
9
+ import { Location } from '@angular/common';
8
10
  import * as i0 from "@angular/core";
9
11
  /**
10
12
  * The startup service is used to call methods that should be run when initially loading the application
@@ -15,6 +17,8 @@ export declare class Initializer {
15
17
  private readonly themeService;
16
18
  private readonly configService;
17
19
  private readonly oAuthService;
20
+ private readonly router;
21
+ private readonly location;
18
22
  private readonly customAuthConfigService;
19
23
  /** The configuration behavior subject */
20
24
  private readonly isInitializedBs;
@@ -26,11 +30,14 @@ export declare class Initializer {
26
30
  * Constructs the startup service. Include any services that should be used during startup
27
31
  * @param http The HTTP Client
28
32
  * @param translateService The translate service
33
+ * @param themeService The theme service
29
34
  * @param configService The configuration service
30
35
  * @param oAuthService The oidc authorization service
36
+ * @param router The router
37
+ * @param location The location
31
38
  * @param customAuthConfigService The service that will configure the auth config
32
39
  */
33
- constructor(http: HttpClient, translateService: TranslateService, themeService: ThemeService, configService: BaseConfigService, oAuthService: OAuthService, customAuthConfigService: CustomAuthConfigService);
40
+ constructor(http: HttpClient, translateService: TranslateService, themeService: ThemeService, configService: BaseConfigService, oAuthService: OAuthService, router: Router, location: Location, customAuthConfigService: CustomAuthConfigService);
34
41
  /**
35
42
  * Loads all data that is needed upon initial loading of the website
36
43
  */
@@ -51,6 +58,8 @@ export declare class Initializer {
51
58
  * @returns The merge of the two configs provided
52
59
  */
53
60
  private mergeCustomizer;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<Initializer, [null, null, null, null, null, { optional: true; }]>;
61
+ /** Validates the existing token against the configurations */
62
+ private validateExistingTokenAgainstConfigs;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<Initializer, [null, null, null, null, null, null, null, { optional: true; }]>;
55
64
  static ɵprov: i0.ɵɵInjectableDeclaration<Initializer>;
56
65
  }
@@ -6,4 +6,6 @@ export interface OidcAuthSettings extends AuthConfig {
6
6
  returnRoute?: string;
7
7
  authSetOnStartup?: boolean;
8
8
  requireLoginOnStartup?: boolean;
9
+ disableStartupTokenValidation?: boolean;
10
+ preserveRoute: boolean;
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "15.1.1",
3
+ "version": "15.7.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },