@energycap/components 0.36.2-ECAP-18586-collection-icons.20230711-1002 → 0.36.2-ECAP-18558-new-menu-item-templates.20230711-1653

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.
@@ -89,6 +89,10 @@ export declare class ComboboxComponent extends FormControlBase implements OnInit
89
89
  * @memberof ComboboxComponent
90
90
  */
91
91
  customMenuTemplate?: TemplateRef<any>;
92
+ /**
93
+ * When true, the menu items will preserve the icon space when there is no icon
94
+ */
95
+ preserveIconSpace: boolean;
92
96
  /**
93
97
  * Position the menu as fixed, ideal when comboboxes are inside dialogs
94
98
  * Defaulting to true so all menus will be at least the width of the
@@ -375,6 +379,6 @@ export declare class ComboboxComponent extends FormControlBase implements OnInit
375
379
  */
376
380
  private findDefaultSelectionIndex;
377
381
  static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, never>;
378
- static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "ec-combobox", never, { "addNew": "addNew"; "maxlength": "maxlength"; "menuPosition": "menuPosition"; "minlength": "minlength"; "options": "options"; "templateType": "templateType"; "customMenuTemplate": "customMenuTemplate"; "popupFixed": "popupFixed"; "totalRecords": "totalRecords"; "upperCase": "upperCase"; "placeholder": "placeholder"; "loadOnOpenObservable": "loadOnOpenObservable"; "hideToggleButton": "hideToggleButton"; "alwaysOpen": "alwaysOpen"; "menuElementClasses": "menuElementClasses"; "textboxElementClasses": "textboxElementClasses"; "hideNoMatches": "hideNoMatches"; "noMatchesText": "noMatchesText"; }, { "addNewClick": "addNewClick"; "search": "search"; }, never, never, false, never>;
382
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "ec-combobox", never, { "addNew": "addNew"; "maxlength": "maxlength"; "menuPosition": "menuPosition"; "minlength": "minlength"; "options": "options"; "templateType": "templateType"; "customMenuTemplate": "customMenuTemplate"; "preserveIconSpace": "preserveIconSpace"; "popupFixed": "popupFixed"; "totalRecords": "totalRecords"; "upperCase": "upperCase"; "placeholder": "placeholder"; "loadOnOpenObservable": "loadOnOpenObservable"; "hideToggleButton": "hideToggleButton"; "alwaysOpen": "alwaysOpen"; "menuElementClasses": "menuElementClasses"; "textboxElementClasses": "textboxElementClasses"; "hideNoMatches": "hideNoMatches"; "noMatchesText": "noMatchesText"; }, { "addNewClick": "addNewClick"; "search": "search"; }, never, never, false, never>;
379
383
  }
380
384
  export {};
@@ -4,10 +4,11 @@ import { WindowService } from '../../core/window.service';
4
4
  import { LinkTarget } from '../../display/tags/tag';
5
5
  import { NavItem } from '../navigation/nav-item';
6
6
  import * as i0 from "@angular/core";
7
- export type MenuTemplateType = "label" | "iconAndLabel" | "checkAndLabel";
7
+ export type MenuTemplateType = "label" | "iconAndLabel" | "checkAndLabel" | "iconLabelCaption";
8
8
  export type MenuHostElementClasses = 'bg-transparent';
9
9
  export interface MenuItem<TValue = any, SItems = any> extends NavItem {
10
10
  label: string;
11
+ caption?: string;
11
12
  items?: MenuItem<SItems>[];
12
13
  checked?: boolean;
13
14
  display?: 'default' | 'heading' | 'divider';
@@ -143,6 +144,10 @@ export declare class MenuComponent implements AfterContentInit, OnDestroy {
143
144
  * A reference to the menu check and label template
144
145
  */
145
146
  private checkAndLabelTemplate;
147
+ /**
148
+ * A reference to the menu icon, label and caption template
149
+ */
150
+ private iconLabelCaptionTemplate;
146
151
  /**
147
152
  * Contains the function used to remove the even listener from the renderer
148
153
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.36.2-ECAP-18586-collection-icons.20230711-1002",
3
+ "version": "0.36.2-ECAP-18558-new-menu-item-templates.20230711-1653",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -1,7 +1,7 @@
1
1
  $overlay-padding-x: 4rem;
2
2
  $overlay-padding-y: 3rem;
3
3
 
4
- @mixin overlay($bg: var(--ec-background-color), $padding-x: $overlay-padding-x, $padding-y: $overlay-padding-y) {
4
+ @mixin overlay($bg: var(--ec-overlay-background-color, var(--ec-background-color)), $padding-x: $overlay-padding-x, $padding-y: $overlay-padding-y) {
5
5
  align-items: center;
6
6
  background-color: $bg;
7
7
  display: flex;