@softheon/armature 17.24.4 → 17.25.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 (44) hide show
  1. package/ag-grid-components/package.json +3 -0
  2. package/assets/styles/_arm-theme.scss +686 -553
  3. package/esm2022/ag-grid-components/src/sof-table/sof-table.component.mjs +3 -3
  4. package/esm2022/lib/base-components/confirm-address/sof-confirm-address/sof-confirm-address.component.mjs +2 -2
  5. package/esm2022/lib/base-components/confirm-address/sof-confirm-address-county-change/sof-confirm-address-county-change.component.mjs +2 -2
  6. package/esm2022/lib/base-components/sof-alert/sof-alert.component.mjs +3 -3
  7. package/esm2022/lib/base-components/sof-badge/sof-badge.component.mjs +2 -2
  8. package/esm2022/lib/base-components/sof-banner/sof-banner.component.mjs +2 -2
  9. package/esm2022/lib/base-components/sof-button-toggle-group/sof-button-toggle-group.component.mjs +2 -2
  10. package/esm2022/lib/base-components/sof-callout/sof-callout.component.mjs +3 -3
  11. package/esm2022/lib/base-components/sof-handle/sof-handle.component.mjs +2 -2
  12. package/esm2022/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.mjs +2 -2
  13. package/esm2022/lib/base-components/sof-input-stepper/sof-input-stepper.component.mjs +2 -2
  14. package/esm2022/lib/base-components/sof-progress-bar/sof-progress-bar.component.mjs +2 -2
  15. package/esm2022/lib/base-components/sof-simple-alert/sof-simple-alert.component.mjs +2 -2
  16. package/esm2022/lib/base-components/sof-star-rating/sof-star-rating.component.mjs +2 -2
  17. package/esm2022/lib/base-components/sof-utility-button/sof-utility-button.component.mjs +2 -2
  18. package/esm2022/lib/feedback-tool/components/feedback-tool/feedback-tool.component.mjs +2 -2
  19. package/esm2022/lib/header/components/header/header.component.mjs +2 -2
  20. package/esm2022/lib/header/components/sof-header/sof-header.component.mjs +3 -3
  21. package/esm2022/lib/navigation/components/navigation/navigation.component.mjs +2 -2
  22. package/esm2022/lib/navigation/components/sof-breadcrumbs/sof-breadcrumbs-hierarchy/sof-breadcrumbs-hierarchy.component.mjs +3 -3
  23. package/esm2022/lib/navigation/components/sof-breadcrumbs/sof-breadcrumbs-history/sof-breadcrumbs-history.component.mjs +3 -3
  24. package/esm2022/lib/navigation/components/sof-navigation-panel/sof-nav-panel.component.mjs +3 -3
  25. package/esm2022/lib/navigation/components/sof-sub-navigation/sof-sub-navigation.component.mjs +2 -2
  26. package/esm2022/lib/navigation/components/sof-tabs-navigation/sof-tabs.component.mjs +2 -2
  27. package/esm2022/lib/oauth/models/generated/accountManagementAssertionModel.mjs +1 -1
  28. package/esm2022/lib/oauth/models/generated/applicationType.mjs +33 -0
  29. package/esm2022/lib/oauth/models/generated/policy.mjs +1 -1
  30. package/esm2022/lib/theming/models/brandPalette.mjs +4 -0
  31. package/esm2022/lib/theming/services/theme2.service.mjs +119 -0
  32. package/esm2022/lib/theming/theme-api.mjs +3 -1
  33. package/esm2022/lib/theming/theme.module.mjs +6 -3
  34. package/fesm2022/softheon-armature-ag-grid-components.mjs +2 -2
  35. package/fesm2022/softheon-armature-ag-grid-components.mjs.map +1 -1
  36. package/fesm2022/softheon-armature.mjs +170 -49
  37. package/fesm2022/softheon-armature.mjs.map +1 -1
  38. package/lib/oauth/models/generated/accountManagementAssertionModel.d.ts +9 -0
  39. package/lib/oauth/models/generated/applicationType.d.ts +31 -0
  40. package/lib/oauth/models/generated/policy.d.ts +9 -0
  41. package/lib/theming/models/brandPalette.d.ts +52 -0
  42. package/lib/theming/services/theme2.service.d.ts +55 -0
  43. package/lib/theming/theme-api.d.ts +2 -0
  44. package/package.json +14 -2
@@ -9,6 +9,7 @@
9
9
  * https://github.com/swagger-api/swagger-codegen.git
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ApplicationType } from './applicationType';
12
13
  import { Policy } from './policy';
13
14
  /**
14
15
  * The account management assertion model
@@ -46,4 +47,12 @@ export interface AccountManagementAssertionModel {
46
47
  * Gets or sets the broker identifier type
47
48
  */
48
49
  brokerIdType?: string;
50
+ /**
51
+ * Gets or sets application type
52
+ */
53
+ applicationType?: ApplicationType;
54
+ /**
55
+ * Gets or sets plan name source (repo)
56
+ */
57
+ planDataSource?: string;
49
58
  }
@@ -0,0 +1,31 @@
1
+ /** The application type enum */
2
+ export declare enum ApplicationType {
3
+ /**
4
+ * The on exchange QHP application type
5
+ */
6
+ OnExQhp = "OnExQhp",
7
+ /**
8
+ * The on exchange QHP application type
9
+ */
10
+ SmallGroup = "SmallGroup",
11
+ /**
12
+ * The off exchange QHP application type
13
+ */
14
+ OffExQhp = "OffExQhp",
15
+ /**
16
+ * The medicare application type
17
+ */
18
+ Medicare = "Medicare",
19
+ /**
20
+ * The vision application type
21
+ */
22
+ Vision = "Vision",
23
+ /**
24
+ * The dental application type
25
+ */
26
+ Dental = "Dental",
27
+ /**
28
+ * The undefined application type
29
+ */
30
+ Undefined = "Undefined"
31
+ }
@@ -9,6 +9,7 @@
9
9
  * https://github.com/swagger-api/swagger-codegen.git
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ApplicationType } from './applicationType';
12
13
  import { CoverageDetail } from './coverageDetail';
13
14
  import { Finance } from './finance';
14
15
  import { Person } from './person';
@@ -48,4 +49,12 @@ export interface Policy {
48
49
  * Gets or sets the members.
49
50
  */
50
51
  members?: Array<Person>;
52
+ /**
53
+ * Gets or sets application type
54
+ */
55
+ applicationType?: ApplicationType;
56
+ /**
57
+ * Gets or sets plan name source (repo)
58
+ */
59
+ planDataSource?: string;
51
60
  }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * The brand theme palette
3
+ */
4
+ export interface BrandPalette {
5
+ primaryColor?: BrandPaletteValues;
6
+ }
7
+ /**
8
+ * The brand theme palette value keys
9
+ * @note all color values should be in 6-digit hex format (#1A2B3C)
10
+ */
11
+ export interface BrandPaletteValues {
12
+ /**
13
+ * The 50 palette color
14
+ */
15
+ fifty: string;
16
+ /**
17
+ * The 100 palette color
18
+ */
19
+ oneHundred: string;
20
+ /**
21
+ * The 200 palette color
22
+ */
23
+ twoHundred: string;
24
+ /**
25
+ * The 300 palette color
26
+ */
27
+ threeHundred: string;
28
+ /**
29
+ * The 400 palette color
30
+ */
31
+ fourHundred: string;
32
+ /**
33
+ * The 500 palette color
34
+ */
35
+ fiveHundred: string;
36
+ /**
37
+ * The 600 palette color
38
+ */
39
+ sixHundred: string;
40
+ /**
41
+ * The 700 palette color
42
+ */
43
+ sevenHundred: string;
44
+ /**
45
+ * The 800 palette color
46
+ */
47
+ eightHundred: string;
48
+ /**
49
+ * The 900 palette color
50
+ */
51
+ nineHundred: string;
52
+ }
@@ -0,0 +1,55 @@
1
+ import { BrandPalette } from '../models/brandPalette';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * The Theme2 Service
5
+ * @description Intended to simplify the required theme config needed for a clients 'theme.json' in switchboard.
6
+ * - This service takes the primary brand palette (50 - 900) only
7
+ * - Maps all the alpha channel values (A50 - A900) based on design specs
8
+ * - Maps all the WCAG compliant readable text contrast (50 - 900, A50 - A900)
9
+ * @see [Figma/branding]({@link https://www.figma.com/design/W5HVNCcN9HafDRvc5N7Z28/Softheon-Unified-Design-System?node-id=6376-65941&p=f&t=y8uO8TtErSbfXTOu-0})
10
+ * @example
11
+ * ```json
12
+ "primaryColor": {
13
+ "fifty": "#EFE8F3",
14
+ "oneHundred": "#D8C5E0",
15
+ "twoHundred": "#BE9FCC",
16
+ "threeHundred": "#A479B7",
17
+ "fourHundred": "#915CA7",
18
+ "fiveHundred": "#7D3F98",
19
+ "sixHundred": "#753990",
20
+ "sevenHundred": "#6A3185",
21
+ "eightHundred": "#60297B",
22
+ "nineHundred": "#4D1B6A"
23
+ }
24
+ * ```
25
+ @note Using this service requires 'tinycolor2' to be installed
26
+ @see [NPM/tinycolor2]({@link https://www.npmjs.com/package/tinycolor2})
27
+ */
28
+ export declare class ThemeService2 {
29
+ private readonly document;
30
+ /** Alpha channels % to add to primary-500 rgb */
31
+ private readonly rgbAlphaChannelsMap;
32
+ /** Palette keys map */
33
+ private readonly colorKeysMap;
34
+ /**
35
+ * Initializes the palette
36
+ * @param brandConfig The brand palette configuration
37
+ */
38
+ initBrandPalette(brandConfig: BrandPalette): void;
39
+ /**
40
+ * Updates the color CSS variable
41
+ * @param part The color key to update
42
+ * @param value The value to set
43
+ */
44
+ private updateColorVariable;
45
+ /**
46
+ * Updates the contrast (readable text) color CSS variable
47
+ * @param part The color key to update
48
+ * @param value The value to set
49
+ * @note Value set will be WCAG compliant for 'AA', 'small-text'
50
+ * @note If both white & black are valid, will favor white for text color
51
+ */
52
+ private updateContrastVariable;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService2, never>;
54
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService2>;
55
+ }
@@ -1,5 +1,7 @@
1
1
  /** Public API Surface of Theming */
2
2
  export * from './theme.module';
3
3
  export * from './services/theme.service';
4
+ export * from './services/theme2.service';
4
5
  export * from './directives/css-override.directive';
5
6
  export { CssOverride, Attribute } from './models/css-override';
7
+ export * from './models/brandPalette';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "17.24.4",
3
+ "version": "17.25.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },
@@ -23,7 +23,19 @@
23
23
  "rxjs": "~7.8.0",
24
24
  "moment": "^2.29.4",
25
25
  "ag-grid-community": "^31.2.1",
26
- "ag-grid-angular": "^31.2.1"
26
+ "ag-grid-angular": "^31.2.1",
27
+ "tinycolor2": "^1.6.0"
28
+ },
29
+ "peerDependenciesMeta": {
30
+ "ag-grid-community": {
31
+ "optional": true
32
+ },
33
+ "ag-grid-angular": {
34
+ "optional": true
35
+ },
36
+ "tinycolor2": {
37
+ "optional": true
38
+ }
27
39
  },
28
40
  "module": "fesm2022/softheon-armature.mjs",
29
41
  "typings": "index.d.ts",