@softheon/armature 19.4.3 → 19.6.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.
@@ -10,7 +10,7 @@ export declare class SofCalloutComponent {
10
10
  /** The callout id */
11
11
  id: string;
12
12
  /** The callout type */
13
- type: 'info' | 'warning' | 'error' | 'success' | 'neutral';
13
+ type: 'info' | 'warning' | 'error' | 'success' | 'neutral' | 'help';
14
14
  /**
15
15
  * The callout text
16
16
  * @note Can be a translation key
@@ -44,6 +44,10 @@ export declare class SofCalloutComponent {
44
44
  * @default true
45
45
  */
46
46
  canDismiss: boolean;
47
+ /** Action button config */
48
+ actionButtonConfig?: CalloutActionButtonConfig;
49
+ /** Emit event when action button is clicked */
50
+ actionButtonClicked?: EventEmitter<void>;
47
51
  /**
48
52
  * Output when close is clicked
49
53
  * @optional
@@ -56,6 +60,16 @@ export declare class SofCalloutComponent {
56
60
  private host;
57
61
  /** Close the callout */
58
62
  dismissCallout(): void;
63
+ /** Emit event when action button is clicked */
64
+ actionButtonClick(): void;
59
65
  static ɵfac: i0.ɵɵFactoryDeclaration<SofCalloutComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<SofCalloutComponent, "sof-callout", never, { "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": true; }; "text": { "alias": "text"; "required": true; }; "extendedText": { "alias": "extendedText"; "required": false; }; "textSize": { "alias": "textSize"; "required": false; }; "iconOverrideClass": { "alias": "iconOverrideClass"; "required": false; }; "canDismiss": { "alias": "canDismiss"; "required": false; }; }, { "dismissEvent": "dismissEvent"; }, never, ["[callout-custom-content]"], true, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<SofCalloutComponent, "sof-callout", never, { "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": true; }; "text": { "alias": "text"; "required": true; }; "extendedText": { "alias": "extendedText"; "required": false; }; "textSize": { "alias": "textSize"; "required": false; }; "iconOverrideClass": { "alias": "iconOverrideClass"; "required": false; }; "canDismiss": { "alias": "canDismiss"; "required": false; }; "actionButtonConfig": { "alias": "actionButtonConfig"; "required": false; }; }, { "actionButtonClicked": "actionButtonClicked"; "dismissEvent": "dismissEvent"; }, never, ["[callout-custom-content]"], true, never>;
67
+ }
68
+ export interface CalloutActionButtonConfig {
69
+ id?: string;
70
+ label: string;
71
+ theme: 'primary' | 'neutral' | 'destroy';
72
+ emphasis: 'solid' | 'secondary' | 'floating' | 'contained';
73
+ ariaLabel?: string;
74
+ iconClass?: string;
61
75
  }
@@ -21,7 +21,7 @@ export declare class SofChipComponent implements OnChanges {
21
21
  * @optional
22
22
  * @default 'neutral'
23
23
  */
24
- theme?: "neutral" | "info";
24
+ theme?: "neutral" | "info" | "primary";
25
25
  /**
26
26
  * Icon class for the chip
27
27
  * @optional if omitted no icon will be shown
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class SofUtilityButtonComponent {
3
4
  buttonId: string;
@@ -6,20 +7,29 @@ export declare class SofUtilityButtonComponent {
6
7
  buttonEmphasis: 'solid' | 'secondary' | 'floating' | 'contained';
7
8
  buttonDisabled: boolean;
8
9
  buttonIconClass: string;
9
- menuDropDown: ButtonData[];
10
- /** Individual Button Click */
10
+ menuDropDown: Array<ButtonData>;
11
+ /**
12
+ * @deprecated Individual Button Click
13
+ * @note This will only work for a function w/o any params and not directly invoked,
14
+ * Use the (buttonClicked) output event instead
15
+ */
11
16
  buttonClick: Function;
17
+ /** Output event when button clicked */
18
+ buttonClicked: EventEmitter<void>;
12
19
  /**
13
20
  * Any logic related to ag grid cell renderer data can be added here
14
21
  * @note All `@Inputs` should be accepted through `params`
15
22
  */
16
23
  agInit(params: any & SofUtilityButtonComponent): void;
24
+ emitButtonClicked(): void;
17
25
  static ɵfac: i0.ɵɵFactoryDeclaration<SofUtilityButtonComponent, never>;
18
- 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; }; }, {}, never, never, false, 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>;
19
27
  }
20
28
  export interface ButtonData {
21
29
  name: string;
22
30
  icon: string;
23
31
  isDisabled: boolean;
24
32
  action: Function;
33
+ ariaLabel?: string;
34
+ isDelete?: boolean;
25
35
  }
@@ -14,12 +14,16 @@ export declare class SofTabsComponent {
14
14
  * @property path: string, The URL to navigate to
15
15
  * @property label: string, The text to display on the tab
16
16
  * @property disabled (optional): boolean, Is the tab disabled
17
+ * @property labelParams (optional): Object, The label translation param
17
18
  * @property queryParams (optional): Object, The queryParams to add to the path
18
19
  * */
19
20
  export interface TabNavLink {
20
21
  path: string;
21
22
  label: string;
22
23
  disabled?: boolean;
24
+ labelParams?: {
25
+ [key: string]: string;
26
+ };
23
27
  queryParams?: {
24
28
  [key: string]: string | string[];
25
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softheon/armature",
3
- "version": "19.4.3",
3
+ "version": "19.6.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },