@energycap/components 0.36.1-ECAP-18558-new-menu-item-templates.20230707-1413 → 0.36.1

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,10 +89,6 @@ 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;
96
92
  /**
97
93
  * Position the menu as fixed, ideal when comboboxes are inside dialogs
98
94
  * Defaulting to true so all menus will be at least the width of the
@@ -379,6 +375,6 @@ export declare class ComboboxComponent extends FormControlBase implements OnInit
379
375
  */
380
376
  private findDefaultSelectionIndex;
381
377
  static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, 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>;
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>;
383
379
  }
384
380
  export {};
@@ -4,11 +4,10 @@ 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" | "iconLabelCaption";
7
+ export type MenuTemplateType = "label" | "iconAndLabel" | "checkAndLabel";
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;
12
11
  items?: MenuItem<SItems>[];
13
12
  checked?: boolean;
14
13
  display?: 'default' | 'heading' | 'divider';
@@ -144,10 +143,6 @@ export declare class MenuComponent implements AfterContentInit, OnDestroy {
144
143
  * A reference to the menu check and label template
145
144
  */
146
145
  private checkAndLabelTemplate;
147
- /**
148
- * A reference to the menu icon, label and caption template
149
- */
150
- private iconLabelCaptionTemplate;
151
146
  /**
152
147
  * Contains the function used to remove the even listener from the renderer
153
148
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.36.1-ECAP-18558-new-menu-item-templates.20230707-1413",
3
+ "version": "0.36.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -30,7 +30,8 @@ a {
30
30
 
31
31
  &[target="_blank"] {
32
32
  &::after {
33
- @extend .fas;
33
+ font: var(--fa-font-solid);
34
+ @extend .fa-solid;
34
35
  content: fa-content('\\' + get-icon-unicode($icons, 'icon-external-link'));
35
36
  margin-left: .125rem;
36
37
  opacity: .5;
@@ -7,7 +7,7 @@ $icon-color-base: rgba(26, 26, 35, .66);
7
7
 
8
8
  $required-icon: str-replace(url('#{$icon-url-prefix}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#{$yellow-4}" d="M31.32 21.69l-.09.18-2.48 4.35c-.36.54-.77.62-1.25.27-.12 0-.2 0-.2-.09L19.53 22v9.37a1.26 1.26 0 0 1-.72.67h-5.26c-.59 0-.83-.3-.83-.89 0-.12.15-.21.15-.27V22l-8 4.71h-.12c-.42.66-.8.21-1.16-.27L1 21.82a.82.82 0 0 1 .35-1.26l.18-.1L9 16 .87 11.47v-.09c0-.36-.39-.74-.09-1.16l2.75-4.35v-.09c0-.42.82-.54 1.29-.36l8 4.62V.89c0-.59.18-.89.77-.89h5c.65 0 .91.3.91.89V10l7.94-4.53c.48-.29.72-.21 1.08.27l2.32 4.35v.09c.66.48.45.89-.08 1.25L23 16l7.91 4.53v.09c-.04.18.53.54.41 1.07z"/></svg>'), '#', '%23');
9
9
 
10
- $invalid-icon: str-replace(url('#{$icon-url-prefix}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#{$icon-color-base}" d="M20.21 20.21h-8.42L10.95 0h10.1l-.84 20.21zm-8.42 3.37h8.42V32h-8.42z"/></svg>'), '#', '%23');
10
+ $invalid-icon: str-replace(url('#{$icon-url-prefix}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#{$icon-color-base}" d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-13.3 0-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>'), '#', '%23');
11
11
 
12
12
  @function pending-icon($color: '#0084a9') {
13
13
  @return str-replace(url('#{$icon-url-prefix}<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 50 50"><path fill="#{$color}" d="M43.935 25.145c0-10.318-8.364-18.683-18.683-18.683-10.318 0-18.683 8.365-18.683 18.683h4.068c0-8.071 6.543-14.615 14.615-14.615s14.615 6.543 14.615 14.615h4.068z"><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.8s" repeatCount="indefinite"/></path></svg>'), '#', '%23');
@@ -3,7 +3,7 @@
3
3
  @import 'control-base';
4
4
 
5
5
  $form-control-icon-size: 1rem;
6
- $form-control-icon-position: .25rem center;
6
+ $form-control-icon-position: .5rem center;
7
7
  $form-control-label-size: var(--ec-font-size-label);
8
8
  $form-control-label-color: var(--ec-color-secondary-dark);
9
9
  $form-control-height: $control-height;
@@ -57,7 +57,7 @@ $checkbox-indicator-size: $form-control-icon-size;
57
57
  $width: $form-control-icon-size,
58
58
  $height: $form-control-icon-size,
59
59
  $position: $form-control-icon-position,
60
- $indent: $form-control-icon-size,
60
+ $indent: $form-control-icon-size + .25rem,
61
61
  ) {
62
62
  $size: $width, $height;
63
63
  @include icon-bg-image($icon, $position, $size);
@@ -68,7 +68,7 @@ $checkbox-indicator-size: $form-control-icon-size;
68
68
  $icon-position: $form-control-icon-position;
69
69
 
70
70
  @if $selector == textarea {
71
- $icon-position: .25rem .5rem;
71
+ $icon-position: .5rem .5rem;
72
72
  }
73
73
 
74
74
  /// Required
@@ -1,7 +1,7 @@
1
1
  $overlay-padding-x: 4rem;
2
2
  $overlay-padding-y: 3rem;
3
3
 
4
- @mixin overlay($bg: var(--ec-overlay-background-color, var(--ec-background-color)), $padding-x: $overlay-padding-x, $padding-y: $overlay-padding-y) {
4
+ @mixin overlay($bg: 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;