@ieeesa-npm/presentation 0.30.2 → 0.30.3

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.
Files changed (53) hide show
  1. package/esm2022/lib/components/accordion/accordion.component.mjs +3 -3
  2. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +3 -3
  3. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +40 -99
  4. package/esm2022/lib/components/card/card.component.mjs +3 -3
  5. package/esm2022/lib/components/checkbox/checkbox.component.mjs +3 -3
  6. package/esm2022/lib/components/chips/chips.component.mjs +3 -3
  7. package/esm2022/lib/components/color-picker/color-picker.component.mjs +2 -2
  8. package/esm2022/lib/components/data-table/data-table.component.mjs +3 -3
  9. package/esm2022/lib/components/date-picker/date-picker.component.mjs +3 -3
  10. package/esm2022/lib/components/date-picker-header/date-picker-header.component.mjs +3 -3
  11. package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +3 -3
  12. package/esm2022/lib/components/file-download/file-download.component.mjs +3 -3
  13. package/esm2022/lib/components/file-upload/file-upload.component.mjs +3 -3
  14. package/esm2022/lib/components/filter/filter.component.mjs +3 -3
  15. package/esm2022/lib/components/footer/footer.component.mjs +3 -3
  16. package/esm2022/lib/components/form-error/form-error.component.mjs +3 -3
  17. package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -3
  18. package/esm2022/lib/components/header/header.component.mjs +3 -3
  19. package/esm2022/lib/components/icon-button/icon-button.component.mjs +3 -3
  20. package/esm2022/lib/components/image-preview/image-preview.component.mjs +3 -3
  21. package/esm2022/lib/components/inactive-tenant/inactive-tenant.component.mjs +3 -3
  22. package/esm2022/lib/components/input/input.component.mjs +3 -3
  23. package/esm2022/lib/components/list/list.component.mjs +3 -3
  24. package/esm2022/lib/components/loader/loader.component.mjs +3 -3
  25. package/esm2022/lib/components/menu/menu.component.mjs +3 -3
  26. package/esm2022/lib/components/modal/modal.component.mjs +3 -3
  27. package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +3 -3
  28. package/esm2022/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.mjs +3 -3
  29. package/esm2022/lib/components/navigation-menu/navigation-menu.component.mjs +3 -3
  30. package/esm2022/lib/components/notification/notification.component.mjs +3 -3
  31. package/esm2022/lib/components/radio/radio.component.mjs +3 -3
  32. package/esm2022/lib/components/rich-text-editor/rich-text-editor.component.mjs +3 -3
  33. package/esm2022/lib/components/search/search.component.mjs +3 -3
  34. package/esm2022/lib/components/select/select.component.mjs +3 -3
  35. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +3 -3
  36. package/esm2022/lib/components/tabs/tabs.component.mjs +3 -3
  37. package/esm2022/lib/components/text-area/text-area.component.mjs +3 -3
  38. package/esm2022/lib/components/tile/tile.component.mjs +3 -3
  39. package/esm2022/lib/components/time-picker/time-picker.component.mjs +3 -3
  40. package/esm2022/lib/components/toggle-button/toggle-button.component.mjs +3 -3
  41. package/esm2022/lib/components/welcome/welcome.component.mjs +3 -3
  42. package/esm2022/public-api.mjs +1 -2
  43. package/fesm2022/ieeesa-npm-presentation.mjs +118 -205
  44. package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
  45. package/lib/components/breadcrumb/breadcrumb.component.d.ts +4 -12
  46. package/lib/components/dynamic-form/dynamic-form.component.d.ts +1 -1
  47. package/lib/components/file-upload/file-upload.component.d.ts +1 -1
  48. package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +1 -1
  49. package/lib/directives/file-upload/file-upload.directive.d.ts +1 -1
  50. package/package.json +1 -1
  51. package/public-api.d.ts +0 -1
  52. package/esm2022/lib/services/breadcrumb.service.mjs +0 -32
  53. package/lib/services/breadcrumb.service.d.ts +0 -18
@@ -2,7 +2,6 @@ import { OnDestroy } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
4
  import { Breadcrumb } from '../../models/breadcrumb.model';
5
- import { BreadcrumbService } from '../../services/breadcrumb.service';
6
5
  import * as i0 from "@angular/core";
7
6
  /**
8
7
  * Reusable breadcrumb component for displaying and navigating through a hierarchy of pages.
@@ -11,9 +10,7 @@ import * as i0 from "@angular/core";
11
10
  export declare class BreadcrumbComponent implements OnDestroy {
12
11
  activatedRoute: ActivatedRoute;
13
12
  private router;
14
- breadcrumbService: BreadcrumbService;
15
13
  breadcrumbTexts: any;
16
- rootParentCount: number;
17
14
  /**
18
15
  * Initial route for the breadcrumb component.
19
16
  * @type {string}
@@ -30,13 +27,15 @@ export declare class BreadcrumbComponent implements OnDestroy {
30
27
  breadcrumbInitialRouteLabel: any;
31
28
  breadcrumbs: Breadcrumb[];
32
29
  destroy$: Subject<boolean>;
33
- constructor(activatedRoute: ActivatedRoute, router: Router, breadcrumbService: BreadcrumbService);
30
+ static readonly ROUTE_DATA_BREADCRUMB = "breadcrumb";
31
+ constructor(activatedRoute: ActivatedRoute, router: Router);
34
32
  /**
35
33
  * Sets up the subscription to router events to update breadcrumbs.
36
34
  * @memberof BreadcrumbComponent
37
35
  */
38
36
  setRouteData(): void;
39
37
  /**
38
+ *
40
39
  * Recursively gets the breadcrumb items for the given route.
41
40
  * @param {ActivatedRoute} route - The activated route.
42
41
  * @param {string} [url=''] - The current URL.
@@ -44,14 +43,7 @@ export declare class BreadcrumbComponent implements OnDestroy {
44
43
  * @return {Breadcrumb[]} - The array of breadcrumb items.
45
44
  * @memberof BreadcrumbComponent
46
45
  */
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;
46
+ createBreadcrumbs(route: ActivatedRoute, url?: string, breadcrumbs?: Breadcrumb[]): any;
55
47
  /**
56
48
  * Takes the index and the current item as arguments and needs to return the unique identifier for this item.
57
49
  * @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<FileList | File>;
94
+ formFileUpload: EventEmitter<File | FileList>;
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<FileList | File>;
404
+ uploadSelectedFiles: EventEmitter<File | FileList>;
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<FileList | File>;
85
+ formFileUpload: EventEmitter<File | FileList>;
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<FileList | File>;
11
+ fileDropped: EventEmitter<File | FileList>;
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.2",
3
+ "version": "0.30.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
package/public-api.d.ts CHANGED
@@ -104,5 +104,4 @@ export * from './lib/models/table-column-menu-info.model';
104
104
  export * from './lib/services/datepicker.service';
105
105
  export * from './lib/services/form-utility.service';
106
106
  export * from './lib/services/file-upload.service';
107
- export * from './lib/services/breadcrumb.service';
108
107
  export * from './lib/presentation.module';
@@ -1,32 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class BreadcrumbService {
4
- constructor() {
5
- this.isPreviousExtrasPresent = true;
6
- }
7
- /**
8
- * Sets the status of whether previous extras are present.
9
- * @param {boolean} flag -Boolean flag indicating if previous extras are present.
10
- * @memberof BreadcrumbService
11
- */
12
- setPreviousExtras(flag) {
13
- this.isPreviousExtrasPresent = flag;
14
- }
15
- /**
16
- * Retrieves the status of whether previous extras are present.
17
- * @return {boolean} -Boolean indicating if previous extras are present.
18
- * @memberof BreadcrumbService
19
- */
20
- getPreviousExtras() {
21
- return this.isPreviousExtrasPresent;
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbService, providedIn: 'root' }); }
25
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbService, decorators: [{
27
- type: Injectable,
28
- args: [{
29
- providedIn: 'root',
30
- }]
31
- }] });
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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hbSB7Ym9vbGVhbn0gZmxhZyAtQm9vbGVhbiBmbGFnIGluZGljYXRpbmcgaWYgcHJldmlvdXMgZXh0cmFzIGFyZSBwcmVzZW50LlxyXG4gICAqIEBtZW1iZXJvZiBCcmVhZGNydW1iU2VydmljZVxyXG4gICAqL1xyXG4gIHNldFByZXZpb3VzRXh0cmFzKGZsYWc6IGJvb2xlYW4pOiB2b2lkIHtcclxuICAgIHRoaXMuaXNQcmV2aW91c0V4dHJhc1ByZXNlbnQgPSBmbGFnO1xyXG4gIH1cclxuXHJcbiAgLyoqXHJcbiAgICogUmV0cmlldmVzIHRoZSBzdGF0dXMgb2Ygd2hldGhlciBwcmV2aW91cyBleHRyYXMgYXJlIHByZXNlbnQuXHJcbiAgICogQHJldHVybiB7Ym9vbGVhbn0gLUJvb2xlYW4gaW5kaWNhdGluZyBpZiBwcmV2aW91cyBleHRyYXMgYXJlIHByZXNlbnQuXHJcbiAgICogQG1lbWJlcm9mIEJyZWFkY3J1bWJTZXJ2aWNlXHJcbiAgICovXHJcbiAgZ2V0UHJldmlvdXNFeHRyYXMoKTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdGhpcy5pc1ByZXZpb3VzRXh0cmFzUHJlc2VudDtcclxuICB9XHJcbn1cclxuIl19
@@ -1,18 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BreadcrumbService {
3
- isPreviousExtrasPresent: boolean;
4
- /**
5
- * Sets the status of whether previous extras are present.
6
- * @param {boolean} flag -Boolean flag indicating if previous extras are present.
7
- * @memberof BreadcrumbService
8
- */
9
- setPreviousExtras(flag: boolean): void;
10
- /**
11
- * Retrieves the status of whether previous extras are present.
12
- * @return {boolean} -Boolean indicating if previous extras are present.
13
- * @memberof BreadcrumbService
14
- */
15
- getPreviousExtras(): boolean;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
18
- }