@ieeesa-npm/presentation 0.31.1 → 0.31.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.
@@ -1,29 +1,21 @@
1
- import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { Overlay, OverlayPositionBuilder } from '@angular/cdk/overlay';
3
- import { Subject } from 'rxjs';
1
+ import { EventEmitter } from '@angular/core';
4
2
  import { ExportFormat, ExportFormatOption } from '../../models/export-format-popover.model';
5
3
  import * as i0 from "@angular/core";
6
4
  /**
7
- * ExportFormatPopoverComponent renders a CDK Overlay popover anchored below
8
- * a trigger element, presenting format selection cards (CSV / Excel).
9
- * The popover supports keyboard navigation (Tab between options, Enter to select,
10
- * Escape to close) and emits the selected format or a close event.
5
+ * ExportFormatPopoverComponent renders a popover presenting format selection
6
+ * cards (CSV / Excel). Positioned via CSS absolute below the trigger element.
11
7
  *
12
8
  * @export
13
9
  * @class ExportFormatPopoverComponent
14
- * @implements {OnInit}
15
- * @implements {OnChanges}
16
- * @implements {OnDestroy}
17
10
  */
18
- export declare class ExportFormatPopoverComponent implements OnInit, OnChanges, OnDestroy {
19
- private overlay;
20
- private overlayPositionBuilder;
21
- private viewContainerRef;
11
+ export declare class ExportFormatPopoverComponent {
22
12
  /** Array of format options to display in the popover */
23
13
  formatOptions: ExportFormatOption[];
24
- /** The element the popover attaches to (anchor point) */
25
- origin: ElementRef;
26
- /** Controls overlay visibility */
14
+ /**
15
+ * @deprecated No longer used for positioning; kept for backwards compatibility.
16
+ */
17
+ origin?: unknown;
18
+ /** Controls visibility */
27
19
  isOpen: boolean;
28
20
  /** Title text displayed at the top of the popover */
29
21
  popoverTitle: string;
@@ -33,59 +25,21 @@ export declare class ExportFormatPopoverComponent implements OnInit, OnChanges,
33
25
  selectedFormat: ExportFormat | null;
34
26
  /** Emits when user selects a format */
35
27
  formatSelected: EventEmitter<ExportFormat>;
36
- /** Emits when popover closes without selection */
28
+ /** Emits when the popover should be closed (backdrop click or after selection). */
37
29
  closed: EventEmitter<void>;
38
- popoverTemplate: TemplateRef<unknown>;
39
- private overlayRef;
40
- private portal;
41
- destroy$: Subject<boolean>;
42
- constructor(overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder, viewContainerRef: ViewContainerRef);
43
- /**
44
- * Lifecycle hook — initial setup.
45
- * @memberof ExportFormatPopoverComponent
46
- */
47
- ngOnInit(): void;
48
- /**
49
- * Responds to input changes — opens or closes the overlay when `isOpen` changes.
50
- * @param {SimpleChanges} changes
51
- * @memberof ExportFormatPopoverComponent
52
- */
53
- ngOnChanges(changes: SimpleChanges): void;
54
- /**
55
- * Creates and opens the CDK overlay positioned below the origin element.
56
- * @memberof ExportFormatPopoverComponent
57
- */
58
- private openOverlay;
59
- /**
60
- * Detaches and disposes the overlay.
61
- * @memberof ExportFormatPopoverComponent
62
- */
63
- private closeOverlay;
64
- /**
65
- * Closes the popover and emits the `closed` event.
66
- * @memberof ExportFormatPopoverComponent
67
- */
68
- private close;
69
30
  /**
70
31
  * Handles format option selection via click or Enter key.
71
- * Emits the selected format and closes the overlay.
72
- * @param {ExportFormat} format - The selected export format value
73
- * @memberof ExportFormatPopoverComponent
32
+ * @param {ExportFormat} format
74
33
  */
75
34
  onFormatSelect(format: ExportFormat): void;
76
35
  /**
77
- * TrackBy function for *ngFor on format options.
78
- * @param {number} index
79
- * @param {ExportFormatOption} option
80
- * @return {string}
81
- * @memberof ExportFormatPopoverComponent
36
+ * Closes the popover via backdrop click.
82
37
  */
83
- trackByFormat(index: number, option: ExportFormatOption): string;
38
+ onBackdropClick(): void;
84
39
  /**
85
- * Cleans up overlay and subscriptions on component destroy.
86
- * @memberof ExportFormatPopoverComponent
40
+ * TrackBy function for *ngFor on format options.
87
41
  */
88
- ngOnDestroy(): void;
42
+ trackByFormat(index: number, option: ExportFormatOption): string;
89
43
  static ɵfac: i0.ɵɵFactoryDeclaration<ExportFormatPopoverComponent, never>;
90
44
  static ɵcmp: i0.ɵɵComponentDeclaration<ExportFormatPopoverComponent, "ieeesa-export-format-popover", never, { "formatOptions": { "alias": "formatOptions"; "required": false; }; "origin": { "alias": "origin"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "popoverTitle": { "alias": "popoverTitle"; "required": false; }; "formatSubtitles": { "alias": "formatSubtitles"; "required": false; }; }, { "formatSelected": "formatSelected"; "closed": "closed"; }, never, never, true, never>;
91
45
  }
@@ -34,6 +34,7 @@ export declare class TabsComponent implements OnInit, OnDestroy {
34
34
  actionType: any;
35
35
  routePaths: EventsAndMeetingRouteConfig;
36
36
  apiBaseURL: string;
37
+ apiDomainURL: string;
37
38
  userPermissions: UserPermission[];
38
39
  customProperties: CustomProperties[];
39
40
  constructor(dialog: MatDialog);
@@ -81,5 +82,5 @@ export declare class TabsComponent implements OnInit, OnDestroy {
81
82
  */
82
83
  ngOnDestroy(): void;
83
84
  static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "ieeesa-tabs", never, { "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "isFormChanged": { "alias": "isFormChanged"; "required": false; }; "confirmationModalConfig": { "alias": "confirmationModalConfig"; "required": false; }; "isViewOnly": { "alias": "isViewOnly"; "required": false; }; "isMemberOfGroup": { "alias": "isMemberOfGroup"; "required": false; }; "eventId": { "alias": "eventId"; "required": false; }; "meetingId": { "alias": "meetingId"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; "routePaths": { "alias": "routePaths"; "required": false; }; "apiBaseURL": { "alias": "apiBaseURL"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, never, true, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "ieeesa-tabs", never, { "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "isFormChanged": { "alias": "isFormChanged"; "required": false; }; "confirmationModalConfig": { "alias": "confirmationModalConfig"; "required": false; }; "isViewOnly": { "alias": "isViewOnly"; "required": false; }; "isMemberOfGroup": { "alias": "isMemberOfGroup"; "required": false; }; "eventId": { "alias": "eventId"; "required": false; }; "meetingId": { "alias": "meetingId"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; "routePaths": { "alias": "routePaths"; "required": false; }; "apiBaseURL": { "alias": "apiBaseURL"; "required": false; }; "apiDomainURL": { "alias": "apiDomainURL"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, never, true, never>;
85
86
  }
@@ -3,6 +3,7 @@ export declare enum CustomProperties {
3
3
  MEETING_ID = "meetingId",
4
4
  ROUTE_PATHS = "routePaths",
5
5
  API_BASE_URL = "apiBaseURL",
6
+ API_DOMAIN_URL = "apiDomainURL",
6
7
  USER_PERMISSIONS = "userPermissions",
7
8
  ACTION_TYPE = "actionType",
8
9
  IS_VIEW_ONLY = "isViewOnly",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.31.1",
3
+ "version": "0.31.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",