@softheon/armature 19.0.2 → 19.1.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.
- package/ag-grid-components/src/sof-table/sof-table.component.d.ts +4 -4
- package/assets/styles/_utility.scss +4 -0
- package/assets/styles/_variables.scss +1 -2
- package/assets/styles/material-override/_button.scss +0 -30
- package/assets/styles/material-override/_menu.scss +7 -0
- package/assets/styles/material-override/_slider.scss +7 -7
- package/fesm2022/softheon-armature-ag-grid-components.mjs.map +1 -1
- package/fesm2022/softheon-armature.mjs +108 -67
- package/fesm2022/softheon-armature.mjs.map +1 -1
- package/lib/base-components/sof-button-toggle-group/sof-button-toggle-group.component.d.ts +3 -2
- package/lib/base-components/sof-context/sof-context.component.d.ts +4 -2
- package/lib/base-components/sof-input-stepper/sof-input-stepper.component.d.ts +3 -3
- package/lib/feedback-tool/components/feedback-tool/feedback-tool.component.d.ts +1 -1
- package/lib/header/components/sof-header/sof-header.component.d.ts +17 -6
- package/lib/mfe/models/entity-dto.d.ts +1 -1
- package/lib/navigation/components/b2b-nav/b2b-nav.component.d.ts +1 -1
- package/lib/navigation/components/sof-navigation-panel/sof-nav-panel.component.d.ts +1 -1
- package/lib/navigation/components/sof-tabs-navigation/sof-tabs.component.d.ts +1 -1
- package/lib/sof-pipe/pipes/sof-date/sof-date.pipe.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { TooltipPosition } from '@angular/material/tooltip';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/** The sof button toggle group component */
|
|
5
6
|
export declare class SofButtonToggleGroupComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
@@ -30,7 +31,7 @@ export declare class SofButtonToggleGroupComponent implements OnInit, OnDestroy,
|
|
|
30
31
|
/** The toggle value */
|
|
31
32
|
value: any;
|
|
32
33
|
/** The form control name */
|
|
33
|
-
controlName: string
|
|
34
|
+
controlName: string;
|
|
34
35
|
/** If the form control was touched or not */
|
|
35
36
|
private touched;
|
|
36
37
|
/** The OnChange form control method */
|
|
@@ -96,6 +97,6 @@ export type ButtonToggleData = {
|
|
|
96
97
|
};
|
|
97
98
|
export interface ButtonToggleTooltipData {
|
|
98
99
|
text?: string;
|
|
99
|
-
position?:
|
|
100
|
+
position?: TooltipPosition;
|
|
100
101
|
}
|
|
101
102
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* The Context component for ag grid
|
|
@@ -8,6 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
8
9
|
*/
|
|
9
10
|
export declare class SofContextComponent {
|
|
10
11
|
private cdRef;
|
|
12
|
+
/** Context menu */
|
|
13
|
+
contextMenu: MatMenuTrigger;
|
|
11
14
|
/** List of menu items */
|
|
12
15
|
menuItems: ContextMenuItem[];
|
|
13
16
|
/** Menu position (x, y) */
|
|
@@ -17,8 +20,6 @@ export declare class SofContextComponent {
|
|
|
17
20
|
};
|
|
18
21
|
/** Selected row data */
|
|
19
22
|
selectedRowData: any;
|
|
20
|
-
/** Whether the menu is visible */
|
|
21
|
-
isMenuVisible: boolean;
|
|
22
23
|
/** Tooltip text */
|
|
23
24
|
tooltipText: string;
|
|
24
25
|
/** Whether tooltip is visible */
|
|
@@ -77,4 +78,5 @@ export interface ContextMenuItem {
|
|
|
77
78
|
disabled?: boolean;
|
|
78
79
|
description?: string;
|
|
79
80
|
hidden?: boolean;
|
|
81
|
+
subMenuItems?: ContextMenuItem[];
|
|
80
82
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Custom Input Stepper Component
|
|
@@ -29,9 +29,9 @@ export declare class SofInputStepperComponent implements OnInit, OnDestroy, Cont
|
|
|
29
29
|
/** If the input is disabled or not */
|
|
30
30
|
isDisabled: boolean;
|
|
31
31
|
/** The control name */
|
|
32
|
-
controlName: string
|
|
32
|
+
controlName: string;
|
|
33
33
|
/** The derived form control */
|
|
34
|
-
get derivedFormControl():
|
|
34
|
+
get derivedFormControl(): FormControl;
|
|
35
35
|
/** The OnChange form control method */
|
|
36
36
|
private onChange;
|
|
37
37
|
/** The OnTouched form control method */
|
|
@@ -10,7 +10,7 @@ export declare class FeedbackToolComponent implements OnInit {
|
|
|
10
10
|
/** The application using this component *required */
|
|
11
11
|
private application;
|
|
12
12
|
/** Language key for the user experience, default is 'purchasingPlan' */
|
|
13
|
-
|
|
13
|
+
experience: string;
|
|
14
14
|
/** The event to close/destroy this component */
|
|
15
15
|
close: EventEmitter<any>;
|
|
16
16
|
/** The event with the feedback object for submit */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, Signal } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, Signal, WritableSignal } from '@angular/core';
|
|
2
2
|
import { BreakpointState } from '@angular/cdk/layout';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*
|
|
11
11
|
* @todo update to be used with applications without a side navigation panel (shopping apps, ect.)
|
|
12
12
|
*
|
|
13
|
-
* @todo `language settings` - awaiting design ( its own component, modal )
|
|
13
|
+
* @todo `language settings` - awaiting design ( its own component, modal ), currently only 'en' / 'es' toggle supported
|
|
14
14
|
* @see [Figma/language-switcher]({@link https://www.figma.com/design/W5HVNCcN9HafDRvc5N7Z28/%5BWIP%5D-Softheon-Unified-Design-System-v1.0?node-id=14089-118249&t=qMyPFk9iMfbU6iRS-0})
|
|
15
15
|
*
|
|
16
16
|
* @note * THERE ARE NO CONFIGS! for this component, `please remove any header based configs from appsettings when using this component.`
|
|
@@ -43,8 +43,14 @@ export declare class SofHeaderComponent implements OnInit {
|
|
|
43
43
|
private translateService;
|
|
44
44
|
/** Current language to display */
|
|
45
45
|
currentLangLabel: string;
|
|
46
|
-
/** Copy button data */
|
|
47
|
-
|
|
46
|
+
/** Copy npn button data */
|
|
47
|
+
copyNpnButton: CopyButton;
|
|
48
|
+
/** Copy share link button data */
|
|
49
|
+
copyShareLinkButton: CopyButton;
|
|
50
|
+
/** To hide the copy share link button on input focus */
|
|
51
|
+
hideCopyShareLinkButton: WritableSignal<boolean>;
|
|
52
|
+
/** Display share link with 'http://' or 'https://' removed */
|
|
53
|
+
shareLinkDisplayText: string;
|
|
48
54
|
/** Utility for checking the matching state of media queries.*/
|
|
49
55
|
private breakpointObserver;
|
|
50
56
|
/** Has the small screen breakpoint been hit */
|
|
@@ -53,10 +59,14 @@ export declare class SofHeaderComponent implements OnInit {
|
|
|
53
59
|
private cdr;
|
|
54
60
|
/** Initialize component & set lang from local store */
|
|
55
61
|
ngOnInit(): void;
|
|
56
|
-
/** Prevent menu from closing on click */
|
|
57
|
-
preventCloseOnClick(e: Event): void;
|
|
58
62
|
/** Copies npn number to clipboard */
|
|
59
63
|
copyNpnNumber(): void;
|
|
64
|
+
/** Copies share link to clipboard */
|
|
65
|
+
copyShareLink(): void;
|
|
66
|
+
/** On share link input focus, select the url & hide copy button */
|
|
67
|
+
onFocusShareLink(inputElement: HTMLInputElement): void;
|
|
68
|
+
/** On share link input blur */
|
|
69
|
+
onBlurShareLink(): void;
|
|
60
70
|
/**
|
|
61
71
|
* Applies the language to the translate service
|
|
62
72
|
* Sets local storage for preferred language
|
|
@@ -76,6 +86,7 @@ export interface HeaderUserMenuData {
|
|
|
76
86
|
email?: string;
|
|
77
87
|
/** Only for Broker portal */
|
|
78
88
|
npn?: string;
|
|
89
|
+
shareLink?: string;
|
|
79
90
|
}
|
|
80
91
|
/** Copy button data interface */
|
|
81
92
|
interface CopyButton {
|
|
@@ -21,7 +21,7 @@ export declare class B2bNavComponent implements OnInit {
|
|
|
21
21
|
* Should scroll to top on `NavigationEnd` event?
|
|
22
22
|
* @default true
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
scrollToTopOnNavigationEndEvent: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Is the nav panel open
|
|
27
27
|
* @note this is needed to pass panel opened state to the SofHeaderPortalComponent
|
|
@@ -30,7 +30,7 @@ export declare class SofNavPanelComponent implements OnInit {
|
|
|
30
30
|
* Should scroll to top on `NavigationEnd` event?
|
|
31
31
|
* @default true
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
scrollToTopOnNavigationEndEvent: boolean;
|
|
34
34
|
/** The brand logo config */
|
|
35
35
|
brandLogo?: NavPanelLogo;
|
|
36
36
|
/**
|
|
@@ -7,7 +7,7 @@ export declare class SofTabsComponent {
|
|
|
7
7
|
/** The nav links for the mat tabs *required */
|
|
8
8
|
navLinks: Array<TabNavLink>;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SofTabsComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SofTabsComponent, "sof-tabs", never, { "navLinks": { "alias": "navLinks"; "required": true; }; }, {}, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SofTabsComponent, "sof-tabs", never, { "navLinks": { "alias": "navLinks"; "required": true; }; }, {}, never, ["[sof-ar-tabs-right]"], false, never>;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* The navigation links for tabs interface
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DatePipe } from '@angular/common';
|
|
2
2
|
import { PipeTransform } from '@angular/core';
|
|
3
|
-
import
|
|
3
|
+
import moment from 'moment';
|
|
4
4
|
import { SofDatePipeFormat } from '../../models/sof-date-pipe-format';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/** Date Pipe */
|