@ieeesa-npm/presentation 0.30.1 → 0.30.2

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.
@@ -3,7 +3,6 @@ import { Subject } from 'rxjs';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
4
  import { Breadcrumb } from '../../models/breadcrumb.model';
5
5
  import { BreadcrumbService } from '../../services/breadcrumb.service';
6
- import { MenuItem } from '../../models/menu-items.model';
7
6
  import * as i0 from "@angular/core";
8
7
  /**
9
8
  * Reusable breadcrumb component for displaying and navigating through a hierarchy of pages.
@@ -31,8 +30,6 @@ export declare class BreadcrumbComponent implements OnDestroy {
31
30
  breadcrumbInitialRouteLabel: any;
32
31
  breadcrumbs: Breadcrumb[];
33
32
  destroy$: Subject<boolean>;
34
- static readonly ROUTE_DATA_BREADCRUMB = "breadcrumb";
35
- menuItems: MenuItem[];
36
33
  constructor(activatedRoute: ActivatedRoute, router: Router, breadcrumbService: BreadcrumbService);
37
34
  /**
38
35
  * Sets up the subscription to router events to update breadcrumbs.
@@ -40,7 +37,6 @@ export declare class BreadcrumbComponent implements OnDestroy {
40
37
  */
41
38
  setRouteData(): void;
42
39
  /**
43
- *
44
40
  * Recursively gets the breadcrumb items for the given route.
45
41
  * @param {ActivatedRoute} route - The activated route.
46
42
  * @param {string} [url=''] - The current URL.
@@ -48,7 +44,14 @@ export declare class BreadcrumbComponent implements OnDestroy {
48
44
  * @return {Breadcrumb[]} - The array of breadcrumb items.
49
45
  * @memberof BreadcrumbComponent
50
46
  */
51
- createBreadcrumbs(route: ActivatedRoute, url?: string, breadcrumbs?: Breadcrumb[]): any;
47
+ getBreadcrumbs(route: ActivatedRoute, url?: string, breadcrumbs?: Breadcrumb[]): Breadcrumb[];
48
+ /**
49
+ * Navigates to the specified breadcrumb item.
50
+ * @param {Breadcrumb} breadcrumb -The breadcrumb item to navigate to.
51
+ * @param {number} index -The index of the breadcrumb item.
52
+ * @memberof BreadcrumbComponent
53
+ */
54
+ navigate(breadcrumb: Breadcrumb, index: number): void;
52
55
  /**
53
56
  * Takes the index and the current item as arguments and needs to return the unique identifier for this item.
54
57
  * @param {number} index
@@ -91,7 +91,7 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit, A
91
91
  formTimeSelected: EventEmitter<SelectedTime>;
92
92
  supportTextLinkClick: EventEmitter<LinkEventEmitType>;
93
93
  formSlideToggleChange: EventEmitter<SlideToggleOption>;
94
- formFileUpload: EventEmitter<File | FileList>;
94
+ formFileUpload: EventEmitter<FileList | File>;
95
95
  dropdownOpenedChange: EventEmitter<SelectOpenedState>;
96
96
  formColorPickerChange: EventEmitter<string>;
97
97
  formRadioOptionSelected: EventEmitter<RadioOption>;
@@ -401,7 +401,7 @@ export declare class FileUploadComponent implements OnInit {
401
401
  private _fileDownloadAndDeleteConfig;
402
402
  set fileDownloadAndDeleteConfig(value: FileDownloadAndDeleteConfig);
403
403
  get fileDownloadAndDeleteConfig(): FileDownloadAndDeleteConfig;
404
- uploadSelectedFiles: EventEmitter<File | FileList>;
404
+ uploadSelectedFiles: EventEmitter<FileList | File>;
405
405
  downloadSelectedFile: EventEmitter<File | DownloadAttachment>;
406
406
  apiBaseUrl: string;
407
407
  selectedFileNamesCount: number;
@@ -82,7 +82,7 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
82
82
  formSlideToggleChange: EventEmitter<SlideToggleOption>;
83
83
  dropdownOpenedChange: EventEmitter<SelectOpenedState>;
84
84
  formColorPickerChange: EventEmitter<string>;
85
- formFileUpload: EventEmitter<File | FileList>;
85
+ formFileUpload: EventEmitter<FileList | File>;
86
86
  formRadioOptionSelected: EventEmitter<RadioOption>;
87
87
  ctaButtonClick: EventEmitter<IconButton>;
88
88
  formMultiSelectAutoCompleteSearch: EventEmitter<string>;
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  export declare class FileUploadDirective {
9
9
  allowedFileTypes: string[];
10
10
  isMultiFileUpload: boolean;
11
- fileDropped: EventEmitter<File | FileList>;
11
+ fileDropped: EventEmitter<FileList | File>;
12
12
  /**
13
13
  * Binds the 'multiple' attribute based on the value of allowMultiple property.
14
14
  * @readonly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.30.1",
3
+ "version": "0.30.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
package/public-api.d.ts CHANGED
@@ -69,7 +69,6 @@ export * from './lib/models/icon-button.model';
69
69
  export * from './lib/models/legend.model';
70
70
  export * from './lib/models/link-type.model';
71
71
  export * from './lib/models/list-item.model';
72
- export * from './lib/models/menu-items.model';
73
72
  export * from './lib/models/menu.model';
74
73
  export * from './lib/models/navigation-menu.model';
75
74
  export * from './lib/models/radio-option.model';
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1pdGVtcy5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXNlbnRhdGlvbi9zcmMvbGliL21vZGVscy9tZW51LWl0ZW1zLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIE1lbnVJdGVtIHtcclxuICBba2V5OiBzdHJpbmddOiBhbnk7XHJcbn1cclxuIl19
@@ -1,3 +0,0 @@
1
- export interface MenuItem {
2
- [key: string]: any;
3
- }