@softheon/armature 19.6.0 → 19.8.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.
@@ -19,3 +19,4 @@ export * from './sof-callout/sof-callout.component';
19
19
  export * from './sof-context/sof-context.component';
20
20
  export * from './sof-bottom-sheet/sof-bottom-sheet.component';
21
21
  export * from './sof-chip/sof-chip.component';
22
+ export * from './sof-segmented-control/sof-segmented-control.component';
@@ -16,31 +16,32 @@ import * as i14 from "./sof-input-stepper/sof-input-stepper.component";
16
16
  import * as i15 from "./sof-handle/sof-handle.component";
17
17
  import * as i16 from "./confirm-address/sof-confirm-address/compare-address-pipe/compare-address.pipe";
18
18
  import * as i17 from "./sof-context/sof-context.component";
19
- import * as i18 from "@angular/router";
20
- import * as i19 from "@angular/common";
21
- import * as i20 from "@ngbracket/ngx-layout";
22
- import * as i21 from "@angular/forms";
23
- import * as i22 from "@ngx-translate/core";
24
- import * as i23 from "@angular/material/select";
25
- import * as i24 from "@angular/material/core";
26
- import * as i25 from "@angular/material/checkbox";
27
- import * as i26 from "@angular/material/icon";
28
- import * as i27 from "@angular/material/dialog";
29
- import * as i28 from "@angular/material/button";
30
- import * as i29 from "@angular/material/form-field";
31
- import * as i30 from "@angular/material/toolbar";
32
- import * as i31 from "@angular/material/tooltip";
33
- import * as i32 from "@angular/material/button-toggle";
34
- import * as i33 from "@angular/material/card";
35
- import * as i34 from "@angular/material/radio";
36
- import * as i35 from "@angular/material/paginator";
37
- import * as i36 from "@angular/material/menu";
38
- import * as i37 from "@angular/material/input";
39
- import * as i38 from "@angular/material/list";
40
- import * as i39 from "@angular/cdk/drag-drop";
19
+ import * as i18 from "./sof-segmented-control/sof-segmented-control.component";
20
+ import * as i19 from "@angular/router";
21
+ import * as i20 from "@angular/common";
22
+ import * as i21 from "@ngbracket/ngx-layout";
23
+ import * as i22 from "@angular/forms";
24
+ import * as i23 from "@ngx-translate/core";
25
+ import * as i24 from "@angular/material/select";
26
+ import * as i25 from "@angular/material/core";
27
+ import * as i26 from "@angular/material/checkbox";
28
+ import * as i27 from "@angular/material/icon";
29
+ import * as i28 from "@angular/material/dialog";
30
+ import * as i29 from "@angular/material/button";
31
+ import * as i30 from "@angular/material/form-field";
32
+ import * as i31 from "@angular/material/toolbar";
33
+ import * as i32 from "@angular/material/tooltip";
34
+ import * as i33 from "@angular/material/button-toggle";
35
+ import * as i34 from "@angular/material/card";
36
+ import * as i35 from "@angular/material/radio";
37
+ import * as i36 from "@angular/material/paginator";
38
+ import * as i37 from "@angular/material/menu";
39
+ import * as i38 from "@angular/material/input";
40
+ import * as i39 from "@angular/material/list";
41
+ import * as i40 from "@angular/cdk/drag-drop";
41
42
  /** The BaseComponentModule Module */
42
43
  export declare class BaseComponentModule {
43
44
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentModule, never>;
44
- 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.SofUtilityButtonComponent, typeof i10.SofImageCheckboxComponent, typeof i11.SofSimpleAlertComponent, typeof i12.SofConfirmAddressComponent, typeof i13.SofConfirmAddressCountyChangeComponent, typeof i14.SofInputStepperComponent, typeof i15.SofHandleComponent, typeof i16.SofCompareAddressPipe, typeof i17.SofContextComponent], [typeof i18.RouterModule, typeof i19.CommonModule, typeof i20.FlexLayoutModule, typeof i21.FormsModule, typeof i21.ReactiveFormsModule, typeof i22.TranslateModule, typeof i23.MatSelectModule, typeof i24.MatOptionModule, typeof i25.MatCheckboxModule, typeof i26.MatIconModule, typeof i27.MatDialogModule, typeof i28.MatButtonModule, typeof i29.MatFormFieldModule, typeof i30.MatToolbarModule, typeof i31.MatTooltipModule, typeof i32.MatButtonToggleModule, typeof i33.MatCardModule, typeof i34.MatRadioModule, typeof i35.MatPaginator, typeof i36.MatMenu, typeof i36.MatMenuModule, typeof i37.MatInputModule, typeof i28.MatIconButton, typeof i38.MatListModule, typeof i39.CdkDropList, typeof i39.CdkDrag, typeof i39.CdkDragPlaceholder, typeof i39.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.SofUtilityButtonComponent, typeof i10.SofImageCheckboxComponent, typeof i11.SofSimpleAlertComponent, typeof i12.SofConfirmAddressComponent, typeof i13.SofConfirmAddressCountyChangeComponent, typeof i14.SofInputStepperComponent, typeof i15.SofHandleComponent, typeof i16.SofCompareAddressPipe, typeof i17.SofContextComponent]>;
45
+ 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.SofUtilityButtonComponent, typeof i10.SofImageCheckboxComponent, typeof i11.SofSimpleAlertComponent, typeof i12.SofConfirmAddressComponent, typeof i13.SofConfirmAddressCountyChangeComponent, typeof i14.SofInputStepperComponent, typeof i15.SofHandleComponent, typeof i16.SofCompareAddressPipe, typeof i17.SofContextComponent, typeof i18.SofSegmentedControlComponent], [typeof i19.RouterModule, typeof i20.CommonModule, typeof i21.FlexLayoutModule, typeof i22.FormsModule, typeof i22.ReactiveFormsModule, typeof i23.TranslateModule, typeof i24.MatSelectModule, typeof i25.MatOptionModule, typeof i26.MatCheckboxModule, typeof i27.MatIconModule, typeof i28.MatDialogModule, typeof i29.MatButtonModule, typeof i30.MatFormFieldModule, typeof i31.MatToolbarModule, typeof i32.MatTooltipModule, typeof i33.MatButtonToggleModule, typeof i34.MatCardModule, typeof i35.MatRadioModule, typeof i36.MatPaginator, typeof i37.MatMenu, typeof i37.MatMenuModule, typeof i38.MatInputModule, typeof i29.MatIconButton, typeof i39.MatListModule, typeof i40.CdkDropList, typeof i40.CdkDrag, typeof i40.CdkDragPlaceholder, typeof i40.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.SofUtilityButtonComponent, typeof i10.SofImageCheckboxComponent, typeof i11.SofSimpleAlertComponent, typeof i12.SofConfirmAddressComponent, typeof i13.SofConfirmAddressCountyChangeComponent, typeof i14.SofInputStepperComponent, typeof i15.SofHandleComponent, typeof i16.SofCompareAddressPipe, typeof i17.SofContextComponent, typeof i18.SofSegmentedControlComponent]>;
45
46
  static ɵinj: i0.ɵɵInjectorDeclaration<BaseComponentModule>;
46
47
  }
@@ -0,0 +1,42 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * The Softheon segmented controls component
5
+ */
6
+ export declare class SofSegmentedControlComponent {
7
+ /** The input options for the segmented control */
8
+ segmentedControlData: SegmentedControlData[];
9
+ /** The id for the segmented control */
10
+ segmentControlId: string;
11
+ /** The index of the current selected option in the segmented control */
12
+ selectedIndex: number;
13
+ /**
14
+ * Whether to have a large or small text for the segmented control options
15
+ * @default large
16
+ */
17
+ size: 'small' | 'large';
18
+ /** Event that emits the index of the next selected option */
19
+ optionSelected: EventEmitter<number>;
20
+ /**
21
+ * Sets index to new selected option
22
+ * @param index Index of new selected option
23
+ */
24
+ protected emitOptionSelected(index: number): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<SofSegmentedControlComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofSegmentedControlComponent, "sof-segmented-control", never, { "segmentedControlData": { "alias": "segmentedControlData"; "required": true; }; "segmentControlId": { "alias": "segmentControlId"; "required": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, false, never>;
27
+ }
28
+ /**
29
+ * @description
30
+ * @property text Text for the segmented control option
31
+ * @property textParams Parameters for translate pipe
32
+ * @property ariaLabel Aria label required for accessibility
33
+ * @property iconClass The class for the leading icon
34
+ */
35
+ export interface SegmentedControlData {
36
+ text: string;
37
+ textParams?: {
38
+ [key: string]: string;
39
+ };
40
+ ariaLabel?: string;
41
+ iconClass?: string;
42
+ }
@@ -8,6 +8,9 @@ export declare class SofUtilityButtonComponent {
8
8
  buttonDisabled: boolean;
9
9
  buttonIconClass: string;
10
10
  menuDropDown: Array<ButtonData>;
11
+ /** Action Menu Title */
12
+ menuTitle: string;
13
+ xPosition: 'before' | 'after';
11
14
  /**
12
15
  * @deprecated Individual Button Click
13
16
  * @note This will only work for a function w/o any params and not directly invoked,
@@ -23,7 +26,7 @@ export declare class SofUtilityButtonComponent {
23
26
  agInit(params: any & SofUtilityButtonComponent): void;
24
27
  emitButtonClicked(): void;
25
28
  static ɵfac: i0.ɵɵFactoryDeclaration<SofUtilityButtonComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<SofUtilityButtonComponent, "sof-utility-button", never, { "buttonId": { "alias": "buttonId"; "required": false; }; "buttonAriaLabel": { "alias": "buttonAriaLabel"; "required": false; }; "buttonTheme": { "alias": "buttonTheme"; "required": false; }; "buttonEmphasis": { "alias": "buttonEmphasis"; "required": false; }; "buttonDisabled": { "alias": "buttonDisabled"; "required": false; }; "buttonIconClass": { "alias": "buttonIconClass"; "required": false; }; "menuDropDown": { "alias": "menuDropDown"; "required": false; }; "buttonClick": { "alias": "buttonClick"; "required": false; }; }, { "buttonClicked": "buttonClicked"; }, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofUtilityButtonComponent, "sof-utility-button", never, { "buttonId": { "alias": "buttonId"; "required": false; }; "buttonAriaLabel": { "alias": "buttonAriaLabel"; "required": false; }; "buttonTheme": { "alias": "buttonTheme"; "required": false; }; "buttonEmphasis": { "alias": "buttonEmphasis"; "required": false; }; "buttonDisabled": { "alias": "buttonDisabled"; "required": false; }; "buttonIconClass": { "alias": "buttonIconClass"; "required": false; }; "menuDropDown": { "alias": "menuDropDown"; "required": false; }; "menuTitle": { "alias": "menuTitle"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "buttonClick": { "alias": "buttonClick"; "required": false; }; }, { "buttonClicked": "buttonClicked"; }, never, never, false, never>;
27
30
  }
28
31
  export interface ButtonData {
29
32
  name: string;
@@ -32,4 +35,9 @@ export interface ButtonData {
32
35
  action: Function;
33
36
  ariaLabel?: string;
34
37
  isDelete?: boolean;
38
+ badgeLabel?: string;
39
+ nestedMenu?: ButtonData[];
40
+ xPosition?: 'before' | 'after';
41
+ displayBadgeLabel?: boolean;
42
+ menuLabel?: string;
35
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "19.6.0",
3
+ "version": "19.8.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/softheon-armature-ag-grid-components.mjs"
3
- }