@softheon/armature 17.9.0 → 17.10.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.
Files changed (27) hide show
  1. package/assets/styles/_variables.scss +7 -0
  2. package/assets/styles/arm-theme.scss +53 -43
  3. package/esm2022/lib/base-components/base-component-api.mjs +2 -1
  4. package/esm2022/lib/base-components/base-component.module.mjs +8 -4
  5. package/esm2022/lib/base-components/sof-alert/sof-alert.component.mjs +3 -3
  6. package/esm2022/lib/base-components/sof-badge/sof-badge.component.mjs +77 -15
  7. package/esm2022/lib/base-components/sof-banner/sof-banner.component.mjs +2 -2
  8. package/esm2022/lib/base-components/sof-button-toggle-group/sof-button-toggle-group.component.mjs +2 -2
  9. package/esm2022/lib/base-components/sof-confirm-address/sof-confirm-address.component.mjs +2 -2
  10. package/esm2022/lib/base-components/sof-handle/sof-handle.component.mjs +2 -2
  11. package/esm2022/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.mjs +2 -2
  12. package/esm2022/lib/base-components/sof-input-stepper/sof-input-stepper.component.mjs +2 -2
  13. package/esm2022/lib/base-components/sof-progress-bar/sof-progress-bar.component.mjs +2 -2
  14. package/esm2022/lib/base-components/sof-simple-alert/sof-simple-alert.component.mjs +2 -2
  15. package/esm2022/lib/base-components/sof-star-rating/sof-star-rating.component.mjs +2 -2
  16. package/esm2022/lib/base-components/sof-sub-navigation/sof-sub-navigation.component.mjs +60 -0
  17. package/esm2022/lib/base-components/sof-tabs/sof-tabs.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/navigation/components/navigation/navigation.component.mjs +2 -2
  21. package/fesm2022/softheon-armature.mjs +166 -47
  22. package/fesm2022/softheon-armature.mjs.map +1 -1
  23. package/lib/base-components/base-component-api.d.ts +1 -0
  24. package/lib/base-components/base-component.module.d.ts +23 -22
  25. package/lib/base-components/sof-badge/sof-badge.component.d.ts +28 -8
  26. package/lib/base-components/sof-sub-navigation/sof-sub-navigation.component.d.ts +49 -0
  27. package/package.json +1 -1
@@ -14,3 +14,4 @@ export * from './sof-radio-card/sof-radio-card.component';
14
14
  export * from './sof-input-stepper/sof-input-stepper.component';
15
15
  export * from './sof-tabs/sof-tabs.component';
16
16
  export * from './sof-handle/sof-handle.component';
17
+ export * from './sof-sub-navigation/sof-sub-navigation.component';
@@ -13,30 +13,31 @@ import * as i11 from "./sof-confirm-address/sof-confirm-address.component";
13
13
  import * as i12 from "./sof-input-stepper/sof-input-stepper.component";
14
14
  import * as i13 from "./sof-tabs/sof-tabs.component";
15
15
  import * as i14 from "./sof-handle/sof-handle.component";
16
- import * as i15 from "@angular/router";
17
- import * as i16 from "@angular/common";
18
- import * as i17 from "@ngbracket/ngx-layout";
19
- import * as i18 from "@angular/forms";
20
- import * as i19 from "@ngx-translate/core";
21
- import * as i20 from "@angular/material/select";
22
- import * as i21 from "@angular/material/core";
23
- import * as i22 from "@angular/material/checkbox";
24
- import * as i23 from "@angular/material/icon";
25
- import * as i24 from "@angular/material/dialog";
26
- import * as i25 from "@angular/material/button";
27
- import * as i26 from "@angular/material/form-field";
28
- import * as i27 from "@angular/material/toolbar";
29
- import * as i28 from "@angular/material/tooltip";
30
- import * as i29 from "@angular/material/button-toggle";
31
- import * as i30 from "@angular/material/card";
32
- import * as i31 from "@angular/material/radio";
33
- import * as i32 from "@angular/material/input";
34
- import * as i33 from "@angular/material/tabs";
35
- import * as i34 from "@angular/material/list";
36
- import * as i35 from "@angular/cdk/drag-drop";
16
+ import * as i15 from "./sof-sub-navigation/sof-sub-navigation.component";
17
+ import * as i16 from "@angular/router";
18
+ import * as i17 from "@angular/common";
19
+ import * as i18 from "@ngbracket/ngx-layout";
20
+ import * as i19 from "@angular/forms";
21
+ import * as i20 from "@ngx-translate/core";
22
+ import * as i21 from "@angular/material/select";
23
+ import * as i22 from "@angular/material/core";
24
+ import * as i23 from "@angular/material/checkbox";
25
+ import * as i24 from "@angular/material/icon";
26
+ import * as i25 from "@angular/material/dialog";
27
+ import * as i26 from "@angular/material/button";
28
+ import * as i27 from "@angular/material/form-field";
29
+ import * as i28 from "@angular/material/toolbar";
30
+ import * as i29 from "@angular/material/tooltip";
31
+ import * as i30 from "@angular/material/button-toggle";
32
+ import * as i31 from "@angular/material/card";
33
+ import * as i32 from "@angular/material/radio";
34
+ import * as i33 from "@angular/material/input";
35
+ import * as i34 from "@angular/material/tabs";
36
+ import * as i35 from "@angular/material/list";
37
+ import * as i36 from "@angular/cdk/drag-drop";
37
38
  /** The BaseComponentModule Module */
38
39
  export declare class BaseComponentModule {
39
40
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentModule, never>;
40
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentModule, [typeof i1.SofProgressBarComponent, typeof i2.SofRadioCardComponent, typeof i3.SofBannerComponent, typeof i4.SofAlertComponent, typeof i5.SofModalComponent, typeof i6.SofButtonToggleGroupComponent, typeof i7.SofStarRatingComponent, typeof i8.SofBadgeComponent, typeof i9.SofImageCheckboxComponent, typeof i10.SofSimpleAlertComponent, typeof i11.SofConfirmAddressComponent, typeof i12.SofInputStepperComponent, typeof i13.SofTabsComponent, typeof i14.SofHandleComponent], [typeof i15.RouterModule, typeof i16.CommonModule, typeof i17.FlexLayoutModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.TranslateModule, typeof i20.MatSelectModule, typeof i21.MatOptionModule, typeof i22.MatCheckboxModule, typeof i23.MatIconModule, typeof i24.MatDialogModule, typeof i25.MatButtonModule, typeof i26.MatFormFieldModule, typeof i27.MatToolbarModule, typeof i28.MatTooltipModule, typeof i29.MatButtonToggleModule, typeof i30.MatCardModule, typeof i31.MatRadioModule, typeof i32.MatInputModule, typeof i25.MatIconButton, typeof i33.MatTabsModule, typeof i34.MatListModule, typeof i35.CdkDropList, typeof i35.CdkDrag, typeof i35.CdkDragPlaceholder, typeof i35.CdkDragHandle], [typeof i1.SofProgressBarComponent, typeof i2.SofRadioCardComponent, typeof i3.SofBannerComponent, typeof i4.SofAlertComponent, typeof i5.SofModalComponent, typeof i6.SofButtonToggleGroupComponent, typeof i7.SofStarRatingComponent, typeof i8.SofBadgeComponent, typeof i9.SofImageCheckboxComponent, typeof i10.SofSimpleAlertComponent, typeof i11.SofConfirmAddressComponent, typeof i12.SofInputStepperComponent, typeof i13.SofTabsComponent, typeof i14.SofHandleComponent]>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentModule, [typeof i1.SofProgressBarComponent, typeof i2.SofRadioCardComponent, typeof i3.SofBannerComponent, typeof i4.SofAlertComponent, typeof i5.SofModalComponent, typeof i6.SofButtonToggleGroupComponent, typeof i7.SofStarRatingComponent, typeof i8.SofBadgeComponent, typeof i9.SofImageCheckboxComponent, typeof i10.SofSimpleAlertComponent, typeof i11.SofConfirmAddressComponent, typeof i12.SofInputStepperComponent, typeof i13.SofTabsComponent, typeof i14.SofHandleComponent, typeof i15.SofSubNavigationComponent], [typeof i16.RouterModule, typeof i17.CommonModule, typeof i18.FlexLayoutModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.TranslateModule, typeof i21.MatSelectModule, typeof i22.MatOptionModule, typeof i23.MatCheckboxModule, typeof i24.MatIconModule, typeof i25.MatDialogModule, typeof i26.MatButtonModule, typeof i27.MatFormFieldModule, typeof i28.MatToolbarModule, typeof i29.MatTooltipModule, typeof i30.MatButtonToggleModule, typeof i31.MatCardModule, typeof i32.MatRadioModule, typeof i33.MatInputModule, typeof i26.MatIconButton, typeof i34.MatTabsModule, typeof i35.MatListModule, typeof i36.CdkDropList, typeof i36.CdkDrag, typeof i36.CdkDragPlaceholder, typeof i36.CdkDragHandle], [typeof i1.SofProgressBarComponent, typeof i2.SofRadioCardComponent, typeof i3.SofBannerComponent, typeof i4.SofAlertComponent, typeof i5.SofModalComponent, typeof i6.SofButtonToggleGroupComponent, typeof i7.SofStarRatingComponent, typeof i8.SofBadgeComponent, typeof i9.SofImageCheckboxComponent, typeof i10.SofSimpleAlertComponent, typeof i11.SofConfirmAddressComponent, typeof i12.SofInputStepperComponent, typeof i13.SofTabsComponent, typeof i14.SofHandleComponent, typeof i15.SofSubNavigationComponent]>;
41
42
  static ɵinj: i0.ɵɵInjectorDeclaration<BaseComponentModule>;
42
43
  }
@@ -1,30 +1,50 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class SofBadgeComponent {
3
- /** Whether to show background color not */
4
- noIcon: boolean;
5
- /** Whether to show background color not */
6
- noOutline: boolean;
3
+ /** Whether to show bold background color not */
4
+ bold: boolean;
7
5
  /** The language text or a key that will be shown in this component */
8
6
  badgeText: string;
9
7
  /**
10
8
  * The alert color
11
- * Possible Values: 'info, 'success', 'warn', 'error', 'theme'
9
+ * Possible Values: 'default', 'info, 'success', 'warn', 'error', 'theme'
12
10
  */
13
11
  badgeColor: string;
12
+ /** Whether or not to use default icons */
13
+ useIcon: boolean;
14
14
  /** The icon class- this should be a font awesome class */
15
15
  iconClass: string;
16
- /**Whether to show colored label */
17
- coloredLabel: boolean;
18
16
  /** The badge aria label */
19
17
  badgeAria: string;
20
18
  /** The icon aria label */
21
19
  iconAria: string;
20
+ /** Whether or not the component has been init */
21
+ initialized: boolean;
22
22
  /**
23
23
  * The constructor
24
24
  */
25
25
  constructor();
26
26
  /** On component init */
27
27
  ngOnInit(): void;
28
+ /**
29
+ * On component changes
30
+ * This method is used to help show the toggle in the Armature documentation
31
+ * TODO: Implement using signals
32
+ */
33
+ ngOnChanges(changes: any): void;
34
+ /** Sets the icon based on badge type */
35
+ private setIcon;
28
36
  static ɵfac: i0.ɵɵFactoryDeclaration<SofBadgeComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<SofBadgeComponent, "sof-badge", never, { "noIcon": { "alias": "noIcon"; "required": false; }; "noOutline": { "alias": "noOutline"; "required": false; }; "badgeText": { "alias": "badgeText"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "coloredLabel": { "alias": "coloredLabel"; "required": false; }; "badgeAria": { "alias": "badgeAria"; "required": false; }; "iconAria": { "alias": "iconAria"; "required": false; }; }, {}, never, never, false, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofBadgeComponent, "sof-badge", never, { "bold": { "alias": "bold"; "required": false; }; "badgeText": { "alias": "badgeText"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "badgeAria": { "alias": "badgeAria"; "required": false; }; "iconAria": { "alias": "iconAria"; "required": false; }; }, {}, never, never, false, never>;
38
+ }
39
+ export declare enum STATUS {
40
+ INFO = "info",
41
+ SUCCESS = "success",
42
+ WARNING = "warn",
43
+ ERROR = "error"
44
+ }
45
+ export declare enum LINE_OF_COVERAGE {
46
+ MEDICAL = "medical",
47
+ DENTAL = "dental",
48
+ VISION = "vision",
49
+ MEDICARE = "medicare"
30
50
  }
@@ -0,0 +1,49 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * The Softheon Sub Navigation component
5
+ */
6
+ export declare class SofSubNavigationComponent {
7
+ /** The nav links for the sub navigation. *required */
8
+ subNavigationData: Array<SubNavigationData>;
9
+ /** Whether to use route navigation indicator */
10
+ useRouteNavigation: boolean;
11
+ /** Emit the current active index */
12
+ activeIndex: EventEmitter<number>;
13
+ /** The current active option index */
14
+ currentActiveOptionIndex: number;
15
+ /** The constructor */
16
+ constructor();
17
+ /** On component init */
18
+ ngOnInit(): void;
19
+ /**
20
+ * Handle navigation link click event
21
+ * @param index the nav link index in the subNavigationData config array
22
+ * @param disabled whether the clicked navigation is disabled
23
+ */
24
+ handleNavLinkClick(index: number, disabled: boolean): void;
25
+ /**
26
+ * Handle selection option click event
27
+ * @param value the nav link label value
28
+ */
29
+ handleOptionClick(value: string): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<SofSubNavigationComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofSubNavigationComponent, "sof-sub-navigation", never, { "subNavigationData": { "alias": "subNavigationData"; "required": true; }; "useRouteNavigation": { "alias": "useRouteNavigation"; "required": false; }; }, { "activeIndex": "activeIndex"; }, never, ["*"], false, never>;
32
+ }
33
+ /**
34
+ * The navigation data for sub navigation interface
35
+ * @property label: string, The text to display on the link
36
+ * @property path (optional): string, The URL to navigate to
37
+ * @property disabled (optional): boolean, Is the nav link disabled
38
+ * @property queryParams (optional): Object, The queryParams to add to the path
39
+ * @property icon (optional): string, The icon class tag to define the icon
40
+ * */
41
+ export interface SubNavigationData {
42
+ label: string;
43
+ path?: string;
44
+ disabled?: boolean;
45
+ queryParams?: {
46
+ [key: string]: string | string[];
47
+ };
48
+ icon?: string;
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "17.9.0",
3
+ "version": "17.10.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },