@fleetbase/ember-ui 0.3.15 → 0.3.16

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.
@@ -19,7 +19,7 @@
19
19
  <div class="{{@item.class}}">
20
20
  {{#if line.component}}
21
21
  {{component
22
- line.component
22
+ (lazy-engine-component line.component)
23
23
  item=line
24
24
  text=line.text
25
25
  label=(or line.label line.text)
@@ -108,5 +108,5 @@
108
108
  {{/if}}
109
109
 
110
110
  {{#if this.isComponent}}
111
- {{component @item.component @item}}
111
+ {{component (lazy-engine-component @item.component) @item}}
112
112
  {{/if}}
@@ -3,6 +3,7 @@ import { inject as service } from '@ember/service';
3
3
  import { computed, action } from '@ember/object';
4
4
  import { isBlank } from '@ember/utils';
5
5
  import { bool } from '@ember/object/computed';
6
+ import { ExtensionComponent } from '@fleetbase/ember-core/contracts';
6
7
  import isMenuItemActive from '../../../../utils/is-menu-item-active';
7
8
  import isEmptyObject from '../../../../utils/is-empty-object';
8
9
 
@@ -20,6 +21,8 @@ export default class LayoutHeaderDropdownItemComponent extends Component {
20
21
  }
21
22
 
22
23
  @computed('args.item.{component,onClick}') get isComponent() {
24
+ if (this.args.item.component instanceof ExtensionComponent) return true;
25
+
23
26
  return this.args.item && typeof this.args.item.component === 'string' && typeof this.args.item.onClick !== 'function';
24
27
  }
25
28
 
@@ -17,7 +17,7 @@
17
17
  >
18
18
  <div class="w-6">
19
19
  {{#if menuItem.iconComponent}}
20
- {{component menuItem.iconComponent options=menuItem.iconComponentOptions}}
20
+ {{component (lazy-engine-component menuItem.iconComponent) options=menuItem.iconComponentOptions}}
21
21
  {{else}}
22
22
  <FaIcon @icon={{menuItem.icon}} @prefix={{menuItem.iconPrefix}} @size="sm" />
23
23
  {{/if}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetbase/ember-ui",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.",
5
5
  "keywords": [
6
6
  "fleetbase-ui",