@byuhbll/components 7.5.0 → 7.5.2
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/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { AfterViewInit, ElementRef, EventEmitter, PipeTransform, OnInit, OnDestr
|
|
|
5
5
|
import * as _angular_forms from '@angular/forms';
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import { JwtPayload } from 'jwt-decode';
|
|
8
|
+
import { TooltipPosition, MatTooltip } from '@angular/material/tooltip';
|
|
8
9
|
|
|
9
10
|
interface LibraryHours {
|
|
10
11
|
date: string;
|
|
@@ -529,6 +530,7 @@ interface StatusButtonInputs {
|
|
|
529
530
|
hideLeftIcon?: boolean;
|
|
530
531
|
hideRightIcon?: boolean;
|
|
531
532
|
clearVariant?: boolean;
|
|
533
|
+
badge?: boolean;
|
|
532
534
|
}
|
|
533
535
|
/**
|
|
534
536
|
* A button that indicates status with color and icon.
|
|
@@ -536,6 +538,7 @@ interface StatusButtonInputs {
|
|
|
536
538
|
* Each status has a default left icon, but a custom left icon can be provided.
|
|
537
539
|
* A right icon can also be provided, defaulting to 'chevron_right'.
|
|
538
540
|
* The left and right icons can be hidden with the `hideLeftIcon` and `hideRightIcon` boolean inputs.
|
|
541
|
+
* Set the badge input to true for a simple visual indicator that shouldn't act like a button.
|
|
539
542
|
* A label input is required.
|
|
540
543
|
*/
|
|
541
544
|
declare class StatusButtonComponent {
|
|
@@ -545,6 +548,7 @@ declare class StatusButtonComponent {
|
|
|
545
548
|
private _hideLeftIcon;
|
|
546
549
|
private _hideRightIcon;
|
|
547
550
|
private _clearVariant;
|
|
551
|
+
private _badge;
|
|
548
552
|
label: string;
|
|
549
553
|
set status(value: 'success' | 'info' | 'warning' | 'error' | 'disabled');
|
|
550
554
|
get status(): "success" | "info" | "warning" | "error" | "disabled";
|
|
@@ -558,13 +562,18 @@ declare class StatusButtonComponent {
|
|
|
558
562
|
get hideRightIcon(): boolean;
|
|
559
563
|
set clearVariant(value: boolean);
|
|
560
564
|
get clearVariant(): boolean;
|
|
565
|
+
set badge(value: boolean);
|
|
566
|
+
get badge(): boolean;
|
|
561
567
|
/** helper for default left icons */
|
|
562
568
|
private getDefaultLeftIcon;
|
|
569
|
+
/** DRY logic for element class list */
|
|
570
|
+
getClassList(): string[];
|
|
563
571
|
static ɵfac: i0.ɵɵFactoryDeclaration<StatusButtonComponent, never>;
|
|
564
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StatusButtonComponent, "lib-status-button", never, { "label": { "alias": "label"; "required": true; }; "status": { "alias": "status"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "hideLeftIcon": { "alias": "hideLeftIcon"; "required": false; }; "hideRightIcon": { "alias": "hideRightIcon"; "required": false; }; "clearVariant": { "alias": "clearVariant"; "required": false; }; }, {}, never, never, true, never>;
|
|
572
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusButtonComponent, "lib-status-button", never, { "label": { "alias": "label"; "required": true; }; "status": { "alias": "status"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "hideLeftIcon": { "alias": "hideLeftIcon"; "required": false; }; "hideRightIcon": { "alias": "hideRightIcon"; "required": false; }; "clearVariant": { "alias": "clearVariant"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; }, {}, never, never, true, never>;
|
|
565
573
|
static ngAcceptInputType_hideLeftIcon: unknown;
|
|
566
574
|
static ngAcceptInputType_hideRightIcon: unknown;
|
|
567
575
|
static ngAcceptInputType_clearVariant: unknown;
|
|
576
|
+
static ngAcceptInputType_badge: unknown;
|
|
568
577
|
}
|
|
569
578
|
|
|
570
579
|
type SnackbarPurpose = 'default' | 'info' | 'success' | 'error' | 'warning';
|
|
@@ -1587,5 +1596,26 @@ declare class DropdownComponent implements ControlValueAccessor, OnInit, OnChang
|
|
|
1587
1596
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "lib-dropdown", never, { "label": { "alias": "label"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "labelType": { "alias": "labelType"; "required": false; }; "showHelpIcon": { "alias": "showHelpIcon"; "required": false; }; "subtext": { "alias": "subtext"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "state": { "alias": "state"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; }, { "valueChange": "valueChange"; "selectedValuesChange": "selectedValuesChange"; "helpIconClick": "helpIconClick"; }, never, never, true, never>;
|
|
1588
1597
|
}
|
|
1589
1598
|
|
|
1590
|
-
|
|
1599
|
+
declare class CopyTooltipComponent {
|
|
1600
|
+
position: TooltipPosition;
|
|
1601
|
+
copyText?: string;
|
|
1602
|
+
tooltip: MatTooltip;
|
|
1603
|
+
clipboardCopyMessage: string;
|
|
1604
|
+
copyToClipboard: (text?: string) => Promise<void>;
|
|
1605
|
+
handleMouseLeave: () => void;
|
|
1606
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyTooltipComponent, never>;
|
|
1607
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyTooltipComponent, "lib-copy-tooltip", never, { "position": { "alias": "position"; "required": false; }; "copyText": { "alias": "copyText"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
declare class ExpandCollapseComponent {
|
|
1611
|
+
private contentRef;
|
|
1612
|
+
private _isExpanded;
|
|
1613
|
+
set isExpanded(isExpanded: boolean);
|
|
1614
|
+
get isExpanded(): boolean;
|
|
1615
|
+
protected heightOfContent: number;
|
|
1616
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandCollapseComponent, never>;
|
|
1617
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandCollapseComponent, "lib-expand-collapse", never, { "isExpanded": { "alias": "isExpanded"; "required": true; }; }, {}, never, ["*"], true, never>;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
export { ADVANCED_SEARCH_FIELD_MAP, ADVANCED_SEARCH_OPTIONS, ADVANCED_SEARCH_QUALIFIER_MAP, ButtonComponent, ButtonGroupComponent, ButtonGroupItemComponent, CheckboxComponent, CopyTooltipComponent, DropdownComponent, ExpandCollapseComponent, FieldComponent, HbllFooterComponent, HbllHeaderComponent, HbllItemTypeIconPipe, HeaderWithImpersonationComponent, ImpersonateModalComponent, ImpersonateUserPipe, ImpersonationBannerComponent, LIBRARY_HOURS_API_URL, LabelComponent, LinkComponent, PostTabComponent, PreTabComponent, RadioButtonComponent, SnackbarComponent, SnackbarService, SsSearchBarComponent, StatusButtonComponent, TabBarComponent, TabItemComponent, defaultOidcBaseUri, defaultOidcDefaultIdp, getUserStatusFromRoles, isAdvancedSearchExternalFieldOption, isAdvancedSearchFieldOption, isAdvancedSearchLocalFieldOption, isSearchScope };
|
|
1591
1621
|
export type { AdvancedSearchBooleanOption, AdvancedSearchExternalFieldOption, AdvancedSearchFieldOption, AdvancedSearchLanguageOption, AdvancedSearchLocalFieldOption, AdvancedSearchQualifier, AdvancedSearchQualifierOption, AdvancedSearchQueryRow, AdvancedSearchResultsPerPageOption, ButtonInputs, ButtonType, CheckboxInputs, DropdownInputs, DropdownOption, DropdownState, FieldInputs, FieldState, FieldStatus, ImpersonateSearchResult, InputType, LabelInputs, LabelPosition, LabelType, LinkIconPosition, LinkInputs, LinkState, LinkType, PostTabInputs, PostTabType, PreTabInputs, PreTabType, RadioButtonChange, SearchConfig, SearchScope, SnackbarInputs, SnackbarPurpose, Status, StatusButtonInputs };
|