@getflip/swirl-components-angular 0.236.1 → 0.238.0

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.
@@ -1,6 +1,7 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
2
2
  import { Components } from '@getflip/swirl-components';
3
3
  import type { SwirlAppLayoutMobileView as ISwirlAppLayoutSwirlAppLayoutMobileView } from '@getflip/swirl-components';
4
+ import type { SwirlAppLayoutNavigationExpansionState as ISwirlAppLayoutSwirlAppLayoutNavigationExpansionState } from '@getflip/swirl-components';
4
5
  import type { SwirlAutocompleteValue as ISwirlAutocompleteSwirlAutocompleteValue } from '@getflip/swirl-components';
5
6
  import type { ComputePositionReturn as ISwirlPopoverComputePositionReturn } from '@getflip/swirl-components';
6
7
  import type { SwirlOSThemeChangeEventData as ISwirlThemeProviderSwirlOSThemeChangeEventData } from '@getflip/swirl-components';
@@ -88,12 +89,13 @@ export declare class SwirlAppLayout {
88
89
  protected el: HTMLElement;
89
90
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
90
91
  static ɵfac: i0.ɵɵFactoryDeclaration<SwirlAppLayout, never>;
91
- static ɵcmp: i0.ɵɵComponentDeclaration<SwirlAppLayout, "swirl-app-layout", never, { "appName": { "alias": "appName"; "required": false; }; "backToNavigationViewButtonLabel": { "alias": "backToNavigationViewButtonLabel"; "required": false; }; "ctaIcon": { "alias": "ctaIcon"; "required": false; }; "ctaLabel": { "alias": "ctaLabel"; "required": false; }; "hasNavigation": { "alias": "hasNavigation"; "required": false; }; "hideAppBar": { "alias": "hideAppBar"; "required": false; }; "navigationBackButtonLabel": { "alias": "navigationBackButtonLabel"; "required": false; }; "navigationLabel": { "alias": "navigationLabel"; "required": false; }; "showNavigationBackButton": { "alias": "showNavigationBackButton"; "required": false; }; "sidebarCloseButtonLabel": { "alias": "sidebarCloseButtonLabel"; "required": false; }; "sidebarHeading": { "alias": "sidebarHeading"; "required": false; }; "transitionStyle": { "alias": "transitionStyle"; "required": false; }; }, {}, never, ["*"], false, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwirlAppLayout, "swirl-app-layout", never, { "appName": { "alias": "appName"; "required": false; }; "backToNavigationViewButtonLabel": { "alias": "backToNavigationViewButtonLabel"; "required": false; }; "collapsibleNavigation": { "alias": "collapsibleNavigation"; "required": false; }; "ctaIcon": { "alias": "ctaIcon"; "required": false; }; "ctaLabel": { "alias": "ctaLabel"; "required": false; }; "hasNavigation": { "alias": "hasNavigation"; "required": false; }; "hideAppBar": { "alias": "hideAppBar"; "required": false; }; "navigationBackButtonLabel": { "alias": "navigationBackButtonLabel"; "required": false; }; "navigationExpansionStateStorageKey": { "alias": "navigationExpansionStateStorageKey"; "required": false; }; "navigationLabel": { "alias": "navigationLabel"; "required": false; }; "navigationOverlayLabel": { "alias": "navigationOverlayLabel"; "required": false; }; "navigationToggleLabel": { "alias": "navigationToggleLabel"; "required": false; }; "showNavigationBackButton": { "alias": "showNavigationBackButton"; "required": false; }; "sidebarCloseButtonLabel": { "alias": "sidebarCloseButtonLabel"; "required": false; }; "sidebarHeading": { "alias": "sidebarHeading"; "required": false; }; "transitionStyle": { "alias": "transitionStyle"; "required": false; }; }, {}, never, ["*"], false, never>;
92
93
  }
93
94
  export declare interface SwirlAppLayout extends Components.SwirlAppLayout {
94
95
  ctaClick: EventEmitter<CustomEvent<MouseEvent>>;
95
96
  mobileViewChange: EventEmitter<CustomEvent<ISwirlAppLayoutSwirlAppLayoutMobileView>>;
96
97
  navigationBackButtonClick: EventEmitter<CustomEvent<MouseEvent>>;
98
+ navigationExpansionStateChange: EventEmitter<CustomEvent<ISwirlAppLayoutSwirlAppLayoutNavigationExpansionState>>;
97
99
  sidebarToggle: EventEmitter<CustomEvent<boolean>>;
98
100
  }
99
101
  export declare class SwirlAutocomplete {
@@ -3276,7 +3278,7 @@ export declare class SwirlTreeViewItem {
3276
3278
  protected el: HTMLElement;
3277
3279
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
3278
3280
  static ɵfac: i0.ɵɵFactoryDeclaration<SwirlTreeViewItem, never>;
3279
- static ɵcmp: i0.ɵɵComponentDeclaration<SwirlTreeViewItem, "swirl-tree-view-item", never, { "active": { "alias": "active"; "required": false; }; "href": { "alias": "href"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
3281
+ static ɵcmp: i0.ɵɵComponentDeclaration<SwirlTreeViewItem, "swirl-tree-view-item", never, { "active": { "alias": "active"; "required": false; }; "href": { "alias": "href"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
3280
3282
  }
3281
3283
  export declare interface SwirlTreeViewItem extends Components.SwirlTreeViewItem {
3282
3284
  expandedChange: EventEmitter<CustomEvent<boolean>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getflip/swirl-components-angular",
3
- "version": "0.236.1",
3
+ "version": "0.238.0",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "build": "ng build"
@@ -14,7 +14,7 @@
14
14
  "@angular/platform-browser": "^16.2.12",
15
15
  "@angular/platform-browser-dynamic": "^16.2.12",
16
16
  "@angular/router": "^16.2.12",
17
- "@getflip/swirl-components": "^0.236.1",
17
+ "@getflip/swirl-components": "^0.238.0",
18
18
  "rxjs": "~7.5.0",
19
19
  "tslib": "^2.3.0",
20
20
  "zone.js": "~0.13.3"
@@ -201,27 +201,28 @@ export declare interface SwirlAppIcon extends Components.SwirlAppIcon {}
201
201
 
202
202
 
203
203
  @ProxyCmp({
204
- inputs: ['appName', 'backToNavigationViewButtonLabel', 'ctaIcon', 'ctaLabel', 'hasNavigation', 'hideAppBar', 'navigationBackButtonLabel', 'navigationLabel', 'showNavigationBackButton', 'sidebarCloseButtonLabel', 'sidebarHeading', 'transitionStyle'],
205
- methods: ['showSidebar', 'hideSidebar', 'toggleSidebar', 'changeMobileView']
204
+ inputs: ['appName', 'backToNavigationViewButtonLabel', 'collapsibleNavigation', 'ctaIcon', 'ctaLabel', 'hasNavigation', 'hideAppBar', 'navigationBackButtonLabel', 'navigationExpansionStateStorageKey', 'navigationLabel', 'navigationOverlayLabel', 'navigationToggleLabel', 'showNavigationBackButton', 'sidebarCloseButtonLabel', 'sidebarHeading', 'transitionStyle'],
205
+ methods: ['showSidebar', 'hideSidebar', 'toggleSidebar', 'getCollapsibleNavigationState', 'setCollapsibleNavigationState', 'changeMobileView']
206
206
  })
207
207
  @Component({
208
208
  selector: 'swirl-app-layout',
209
209
  changeDetection: ChangeDetectionStrategy.OnPush,
210
210
  template: '<ng-content></ng-content>',
211
211
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
212
- inputs: ['appName', 'backToNavigationViewButtonLabel', 'ctaIcon', 'ctaLabel', 'hasNavigation', 'hideAppBar', 'navigationBackButtonLabel', 'navigationLabel', 'showNavigationBackButton', 'sidebarCloseButtonLabel', 'sidebarHeading', 'transitionStyle'],
212
+ inputs: ['appName', 'backToNavigationViewButtonLabel', 'collapsibleNavigation', 'ctaIcon', 'ctaLabel', 'hasNavigation', 'hideAppBar', 'navigationBackButtonLabel', 'navigationExpansionStateStorageKey', 'navigationLabel', 'navigationOverlayLabel', 'navigationToggleLabel', 'showNavigationBackButton', 'sidebarCloseButtonLabel', 'sidebarHeading', 'transitionStyle'],
213
213
  })
214
214
  export class SwirlAppLayout {
215
215
  protected el: HTMLElement;
216
216
  constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
217
217
  c.detach();
218
218
  this.el = r.nativeElement;
219
- proxyOutputs(this, this.el, ['ctaClick', 'mobileViewChange', 'navigationBackButtonClick', 'sidebarToggle']);
219
+ proxyOutputs(this, this.el, ['ctaClick', 'mobileViewChange', 'navigationBackButtonClick', 'navigationExpansionStateChange', 'sidebarToggle']);
220
220
  }
221
221
  }
222
222
 
223
223
 
224
224
  import type { SwirlAppLayoutMobileView as ISwirlAppLayoutSwirlAppLayoutMobileView } from '@getflip/swirl-components';
225
+ import type { SwirlAppLayoutNavigationExpansionState as ISwirlAppLayoutSwirlAppLayoutNavigationExpansionState } from '@getflip/swirl-components';
225
226
 
226
227
  export declare interface SwirlAppLayout extends Components.SwirlAppLayout {
227
228
 
@@ -231,6 +232,8 @@ export declare interface SwirlAppLayout extends Components.SwirlAppLayout {
231
232
 
232
233
  navigationBackButtonClick: EventEmitter<CustomEvent<MouseEvent>>;
233
234
 
235
+ navigationExpansionStateChange: EventEmitter<CustomEvent<ISwirlAppLayoutSwirlAppLayoutNavigationExpansionState>>;
236
+
234
237
  sidebarToggle: EventEmitter<CustomEvent<boolean>>;
235
238
  }
236
239
 
@@ -8047,7 +8050,7 @@ export declare interface SwirlTreeView extends Components.SwirlTreeView {
8047
8050
 
8048
8051
 
8049
8052
  @ProxyCmp({
8050
- inputs: ['active', 'href', 'icon', 'itemId', 'label'],
8053
+ inputs: ['active', 'href', 'icon', 'iconColor', 'itemId', 'label'],
8051
8054
  methods: ['expand', 'collapse', 'select', 'unselect']
8052
8055
  })
8053
8056
  @Component({
@@ -8055,7 +8058,7 @@ export declare interface SwirlTreeView extends Components.SwirlTreeView {
8055
8058
  changeDetection: ChangeDetectionStrategy.OnPush,
8056
8059
  template: '<ng-content></ng-content>',
8057
8060
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
8058
- inputs: ['active', 'href', 'icon', 'itemId', 'label'],
8061
+ inputs: ['active', 'href', 'icon', 'iconColor', 'itemId', 'label'],
8059
8062
  })
8060
8063
  export class SwirlTreeViewItem {
8061
8064
  protected el: HTMLElement;