Skip to content

Commit

Permalink
Navbar: add missing notificationCount definition (#2427)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwinsor authored Apr 12, 2024
1 parent bd30463 commit 6421e83
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -625,15 +625,15 @@ export declare interface ModusModal extends Components.ModusModal {


@ProxyCmp({
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'notificationCount', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
methods: ['hideMainMenu']
})
@Component({
selector: 'modus-navbar',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'notificationCount', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
})
export class ModusNavbar {
protected el: HTMLElement;
Expand Down Expand Up @@ -1533,14 +1533,14 @@ export declare interface ModusTimePicker extends Components.ModusTimePicker {


@ProxyCmp({
inputs: ['ariaLabel', 'dismissible', 'showIcon', 'type']
inputs: ['ariaLabel', 'dismissible', 'role', 'showIcon', 'type']
})
@Component({
selector: 'modus-toast',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['ariaLabel', 'dismissible', 'showIcon', 'type'],
inputs: ['ariaLabel', 'dismissible', 'role', 'showIcon', 'type'],
})
export class ModusToast {
protected el: HTMLElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,15 +625,15 @@ export declare interface ModusModal extends Components.ModusModal {


@ProxyCmp({
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'notificationCount', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
methods: ['hideMainMenu']
})
@Component({
selector: 'modus-navbar',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'notificationCount', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
})
export class ModusNavbar {
protected el: HTMLElement;
Expand Down Expand Up @@ -1533,14 +1533,14 @@ export declare interface ModusTimePicker extends Components.ModusTimePicker {


@ProxyCmp({
inputs: ['ariaLabel', 'dismissible', 'showIcon', 'type']
inputs: ['ariaLabel', 'dismissible', 'role', 'showIcon', 'type']
})
@Component({
selector: 'modus-toast',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['ariaLabel', 'dismissible', 'showIcon', 'type'],
inputs: ['ariaLabel', 'dismissible', 'role', 'showIcon', 'type'],
})
export class ModusToast {
protected el: HTMLElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,15 +625,15 @@ export declare interface ModusModal extends Components.ModusModal {


@ProxyCmp({
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'notificationCount', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
methods: ['hideMainMenu']
})
@Component({
selector: 'modus-navbar',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'notificationCount', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
})
export class ModusNavbar {
protected el: HTMLElement;
Expand Down Expand Up @@ -1533,14 +1533,14 @@ export declare interface ModusTimePicker extends Components.ModusTimePicker {


@ProxyCmp({
inputs: ['ariaLabel', 'dismissible', 'showIcon', 'type']
inputs: ['ariaLabel', 'dismissible', 'role', 'showIcon', 'type']
})
@Component({
selector: 'modus-toast',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['ariaLabel', 'dismissible', 'showIcon', 'type'],
inputs: ['ariaLabel', 'dismissible', 'role', 'showIcon', 'type'],
})
export class ModusToast {
protected el: HTMLElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,15 +625,15 @@ export declare interface ModusModal extends Components.ModusModal {


@ProxyCmp({
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'notificationCount', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
methods: ['hideMainMenu']
})
@Component({
selector: 'modus-navbar',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
inputs: ['apps', 'buttons', 'enableSearchOverlay', 'helpTooltip', 'helpUrl', 'logoOptions', 'notificationCount', 'profileMenuOptions', 'reverse', 'searchTooltip', 'showAppsMenu', 'showHelp', 'showMainMenu', 'showNotifications', 'showPendoPlaceholder', 'showProfile', 'showSearch', 'showShadow', 'variant'],
})
export class ModusNavbar {
protected el: HTMLElement;
Expand Down Expand Up @@ -1533,14 +1533,14 @@ export declare interface ModusTimePicker extends Components.ModusTimePicker {


@ProxyCmp({
inputs: ['ariaLabel', 'dismissible', 'showIcon', 'type']
inputs: ['ariaLabel', 'dismissible', 'role', 'showIcon', 'type']
})
@Component({
selector: 'modus-toast',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['ariaLabel', 'dismissible', 'showIcon', 'type'],
inputs: ['ariaLabel', 'dismissible', 'role', 'showIcon', 'type'],
})
export class ModusToast {
protected el: HTMLElement;
Expand Down
8 changes: 8 additions & 0 deletions stencil-workspace/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,10 @@ export namespace Components {
* (optional) Set the primary logo to display when the screen size is greater than 576 pixels, and the secondary logo to display when the screen size is less than or equal to 576 pixels.
*/
"logoOptions": ModusNavbarLogoOptions;
/**
* (optional) Whether to show badge on top of notification
*/
"notificationCount": number;
/**
* (required) Profile menu options.
*/
Expand Down Expand Up @@ -3365,6 +3369,10 @@ declare namespace LocalJSX {
* (optional) Set the primary logo to display when the screen size is greater than 576 pixels, and the secondary logo to display when the screen size is less than or equal to 576 pixels.
*/
"logoOptions"?: ModusNavbarLogoOptions;
/**
* (optional) Whether to show badge on top of notification
*/
"notificationCount"?: number;
/**
* An event that fires when an apps menu app opens.
*/
Expand Down

0 comments on commit 6421e83

Please sign in to comment.