@ieeesa-npm/presentation 0.30.7 → 0.31.1

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 (91) hide show
  1. package/esm2022/lib/assets/constants.json +2 -1
  2. package/esm2022/lib/components/accordion/accordion.component.mjs +2 -2
  3. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +1 -1
  4. package/esm2022/lib/components/card/card.component.mjs +3 -3
  5. package/esm2022/lib/components/checkbox/checkbox.component.mjs +1 -1
  6. package/esm2022/lib/components/chips/chips.component.mjs +2 -2
  7. package/esm2022/lib/components/data-table/data-table.component.mjs +4 -3
  8. package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +2 -2
  9. package/esm2022/lib/components/export-format-popover/export-format-popover.component.mjs +206 -0
  10. package/esm2022/lib/components/export-success-dialog/export-success-dialog.component.mjs +39 -0
  11. package/esm2022/lib/components/file-download/file-download.component.mjs +21 -12
  12. package/esm2022/lib/components/file-upload/file-upload.component.mjs +2 -2
  13. package/esm2022/lib/components/filter/filter.component.mjs +2 -2
  14. package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -2
  15. package/esm2022/lib/components/header/header.component.mjs +15 -10
  16. package/esm2022/lib/components/icon-button/icon-button.component.mjs +1 -1
  17. package/esm2022/lib/components/list/list.component.mjs +3 -2
  18. package/esm2022/lib/components/menu/menu.component.mjs +1 -1
  19. package/esm2022/lib/components/modal/modal.component.mjs +8 -6
  20. package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +2 -2
  21. package/esm2022/lib/components/modal-info/modal-info.component.mjs +41 -0
  22. package/esm2022/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.mjs +1 -1
  23. package/esm2022/lib/components/notification/notification.component.mjs +3 -2
  24. package/esm2022/lib/components/policy-confirmation-dialog/policy-confirmation-dialog.component.mjs +58 -0
  25. package/esm2022/lib/components/select/select.component.mjs +1 -1
  26. package/esm2022/lib/components/tabs/tabs.component.mjs +1 -1
  27. package/esm2022/lib/components/tile/tile.component.mjs +2 -2
  28. package/esm2022/lib/directives/dynamic-form-field/dynamic-form-field.directive.mjs +1 -1
  29. package/esm2022/lib/directives/set-background/set-background.directive.mjs +4 -3
  30. package/esm2022/lib/models/card-button.model.mjs +1 -1
  31. package/esm2022/lib/models/export-format-popover.model.mjs +10 -0
  32. package/esm2022/lib/models/export-success-dialog.model.mjs +2 -0
  33. package/esm2022/lib/models/field-config.model.mjs +1 -1
  34. package/esm2022/lib/models/filters-options.model.mjs +1 -1
  35. package/esm2022/lib/models/list-item.model.mjs +1 -1
  36. package/esm2022/lib/models/policy-confirmation-dialog.model.mjs +2 -0
  37. package/esm2022/lib/pipes/safe.pipe.mjs +44 -0
  38. package/esm2022/lib/services/break-point-observer.service.mjs +36 -0
  39. package/esm2022/lib/services/file-upload.service.mjs +2 -2
  40. package/esm2022/public-api.mjs +12 -6
  41. package/fesm2022/ieeesa-npm-presentation.mjs +489 -79
  42. package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
  43. package/lib/components/accordion/accordion.component.d.ts +1 -1
  44. package/lib/components/autocomplete/autocomplete.component.d.ts +1 -1
  45. package/lib/components/card/card.component.d.ts +2 -2
  46. package/lib/components/checkbox/checkbox.component.d.ts +1 -2
  47. package/lib/components/chips/chips.component.d.ts +4 -9
  48. package/lib/components/data-table/data-table.component.d.ts +2 -3
  49. package/lib/components/dynamic-form/dynamic-form.component.d.ts +1 -3
  50. package/lib/components/export-format-popover/export-format-popover.component.d.ts +91 -0
  51. package/lib/components/export-success-dialog/export-success-dialog.component.d.ts +24 -0
  52. package/lib/components/file-download/file-download.component.d.ts +5 -4
  53. package/lib/components/file-upload/file-upload.component.d.ts +11 -12
  54. package/lib/components/filter/filter.component.d.ts +2 -4
  55. package/lib/components/header/header.component.d.ts +6 -6
  56. package/lib/components/icon-button/icon-button.component.d.ts +1 -1
  57. package/lib/components/list/list.component.d.ts +1 -1
  58. package/lib/components/menu/menu.component.d.ts +1 -1
  59. package/lib/components/modal/modal.component.d.ts +1 -1
  60. package/lib/components/modal-confirmation/modal-confirmation.component.d.ts +1 -2
  61. package/lib/components/modal-info/modal-info.component.d.ts +23 -0
  62. package/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.d.ts +1 -1
  63. package/lib/components/policy-confirmation-dialog/policy-confirmation-dialog.component.d.ts +36 -0
  64. package/lib/components/select/select.component.d.ts +1 -1
  65. package/lib/components/tabs/tabs.component.d.ts +1 -2
  66. package/lib/components/tile/tile.component.d.ts +1 -1
  67. package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +2 -2
  68. package/lib/directives/set-background/set-background.directive.d.ts +1 -1
  69. package/lib/models/card-button.model.d.ts +1 -1
  70. package/lib/models/export-format-popover.model.d.ts +15 -0
  71. package/lib/models/export-success-dialog.model.d.ts +8 -0
  72. package/lib/models/field-config.model.d.ts +1 -3
  73. package/lib/models/filters-options.model.d.ts +1 -1
  74. package/lib/models/list-item.model.d.ts +1 -1
  75. package/lib/models/policy-confirmation-dialog.model.d.ts +9 -0
  76. package/lib/pipes/safe.pipe.d.ts +16 -0
  77. package/lib/services/break-point-observer.service.d.ts +21 -0
  78. package/lib/services/file-upload.service.d.ts +1 -0
  79. package/package.json +1 -1
  80. package/public-api.d.ts +10 -5
  81. package/src/lib/assets/constants.json +2 -1
  82. package/esm2022/lib/models/align-type.model.mjs +0 -11
  83. package/esm2022/lib/models/checkbox-option.model.mjs +0 -2
  84. package/esm2022/lib/models/confirmation-modal-data.model.mjs +0 -2
  85. package/esm2022/lib/models/icon-button.model.mjs +0 -2
  86. package/esm2022/lib/models/select-option.model.mjs +0 -2
  87. package/lib/models/align-type.model.d.ts +0 -8
  88. package/lib/models/checkbox-option.model.d.ts +0 -8
  89. package/lib/models/confirmation-modal-data.model.d.ts +0 -11
  90. package/lib/models/icon-button.model.d.ts +0 -8
  91. package/lib/models/select-option.model.d.ts +0 -5
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Data passed to the PolicyConfirmationDialogComponent via MAT_DIALOG_DATA
3
+ */
4
+ export interface PolicyConfirmationDialogData {
5
+ title: string;
6
+ bodyText: string;
7
+ cancelLabel: string;
8
+ confirmLabel: string;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * SafePipe is using DomSanitizer service which helps to prevent attackers from injecting malicious client-side scripts into web pages, which is often referred to as Cross-site Scripting or XSS.
6
+ * @export
7
+ * @class SafePipe
8
+ * @implements {PipeTransform}
9
+ */
10
+ export declare class SafePipe implements PipeTransform {
11
+ protected sanitizer: DomSanitizer;
12
+ constructor(sanitizer: DomSanitizer);
13
+ transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
15
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
16
+ }
@@ -0,0 +1,21 @@
1
+ import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * BreakpointObserver utility service helps us to get the mobile view based on the configured breakpoint.
6
+ * @export
7
+ * @class BreakpointObserverService
8
+ */
9
+ export declare class BreakpointObserverService {
10
+ private breakpointObserver;
11
+ constants: any;
12
+ constructor(breakpointObserver: BreakpointObserver);
13
+ /**
14
+ * Based on break point max-width it returns the Observable of BreakpointState
15
+ * @return {Observable<BreakpointState>}
16
+ * @memberof BreakpointObserverService
17
+ */
18
+ getBreakpoint(): Observable<BreakpointState>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointObserverService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<BreakpointObserverService>;
21
+ }
@@ -314,6 +314,7 @@ export declare class FileUploadService implements OnDestroy {
314
314
  };
315
315
  };
316
316
  };
317
+ breakPointMaxWidth: string;
317
318
  };
318
319
  apiBaseUrl: string;
319
320
  fileByteArray: Uint8Array | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.30.7",
3
+ "version": "0.31.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
package/public-api.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './lib/components/list/list.component';
14
14
  export * from './lib/components/menu/menu.component';
15
15
  export * from './lib/components/modal/modal.component';
16
16
  export * from './lib/components/modal-confirmation/modal-confirmation.component';
17
+ export * from './lib/components/modal-info/modal-info.component';
17
18
  export * from './lib/components/navigation-menu/navigation-menu.component';
18
19
  export * from './lib/components/notification/notification.component';
19
20
  export * from './lib/components/radio/radio.component';
@@ -40,6 +41,9 @@ export * from './lib/components/inactive-tenant/inactive-tenant.component';
40
41
  export * from './lib/components/image-preview/image-preview.component';
41
42
  export * from './lib/components/rich-text-editor/rich-text-editor.component';
42
43
  export * from './lib/components/multi-select-autocomplete/multi-select-autocomplete.component';
44
+ export * from './lib/components/export-format-popover/export-format-popover.component';
45
+ export * from './lib/components/policy-confirmation-dialog/policy-confirmation-dialog.component';
46
+ export * from './lib/components/export-success-dialog/export-success-dialog.component';
43
47
  export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
44
48
  export * from './lib/directives/set-background/set-background.directive';
45
49
  export * from './lib/directives/text-truncated/text-truncated.directive';
@@ -47,13 +51,10 @@ export * from './lib/directives/file-upload/file-upload.directive';
47
51
  export * from './lib/directives/observe-dom-change/observe-dom-change.directive';
48
52
  export * from './lib/models/accordion-info.model';
49
53
  export * from './lib/models/align-browsed-files.model';
50
- export * from './lib/models/align-type.model';
51
54
  export * from './lib/models/allowed-file-types.model';
52
55
  export * from './lib/models/app-config-info.model';
53
56
  export * from './lib/models/autocomplete-option.model';
54
57
  export * from './lib/models/calendar.model';
55
- export * from './lib/models/checkbox-option.model';
56
- export * from './lib/models/confirmation-modal-data.model';
57
58
  export * from './lib/models/custom-properties.model';
58
59
  export * from './lib/models/date-picker.model';
59
60
  export * from './lib/models/download-file.model';
@@ -65,7 +66,6 @@ export * from './lib/models/form-field.model';
65
66
  export * from './lib/models/form-grid.model';
66
67
  export * from './lib/models/form.model';
67
68
  export * from './lib/models/header-config.model';
68
- 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';
@@ -74,7 +74,6 @@ export * from './lib/models/navigation-menu.model';
74
74
  export * from './lib/models/radio-option.model';
75
75
  export * from './lib/models/search.model';
76
76
  export * from './lib/models/select-opened-state.model';
77
- export * from './lib/models/select-option.model';
78
77
  export * from './lib/models/selected-date.model';
79
78
  export * from './lib/models/selected-time.model';
80
79
  export * from './lib/models/tab.model';
@@ -101,7 +100,13 @@ export * from './lib/models/file-upload-presigned-url-res.model';
101
100
  export * from './lib/models/file-upload-response.model';
102
101
  export * from './lib/models/inactive-tenant.model';
103
102
  export * from './lib/models/table-column-menu-info.model';
103
+ export * from './lib/models/export-format-popover.model';
104
+ export * from './lib/models/policy-confirmation-dialog.model';
105
+ export * from './lib/models/export-success-dialog.model';
104
106
  export * from './lib/services/datepicker.service';
105
107
  export * from './lib/services/form-utility.service';
106
108
  export * from './lib/services/file-upload.service';
109
+ export * from './lib/services/break-point-observer.service';
110
+ export * from './lib/pipes/safe.pipe';
107
111
  export * from './lib/presentation.module';
112
+ export { SelectOption, CheckboxOption, IconButton, AlignType, ConfirmationModalData, MessagePart, InfoModalData } from '@ieeesa-npm/models';
@@ -634,5 +634,6 @@
634
634
  "6028": "Agenda item attachment id does not exist."
635
635
  }
636
636
  }
637
- }
637
+ },
638
+ "breakPointMaxWidth": "767px"
638
639
  }
@@ -1,11 +0,0 @@
1
- /* eslint-disable no-unused-vars */
2
- export var AlignType;
3
- (function (AlignType) {
4
- AlignType["LEFT"] = "Left";
5
- AlignType["MIDDLE"] = "Middle";
6
- AlignType["RIGHT"] = "Right";
7
- AlignType["BOTTOM"] = "Bottom";
8
- AlignType["VERTICAL"] = "Vertical";
9
- AlignType["HORIZONTAL"] = "Horizontal";
10
- })(AlignType || (AlignType = {}));
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxpZ24tdHlwZS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXNlbnRhdGlvbi9zcmMvbGliL21vZGVscy9hbGlnbi10eXBlLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG1DQUFtQztBQUNuQyxNQUFNLENBQU4sSUFBWSxTQU9YO0FBUEQsV0FBWSxTQUFTO0lBQ25CLDBCQUFhLENBQUE7SUFDYiw4QkFBaUIsQ0FBQTtJQUNqQiw0QkFBZSxDQUFBO0lBQ2YsOEJBQWlCLENBQUE7SUFDakIsa0NBQXFCLENBQUE7SUFDckIsc0NBQXlCLENBQUE7QUFDM0IsQ0FBQyxFQVBXLFNBQVMsS0FBVCxTQUFTLFFBT3BCIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tdW51c2VkLXZhcnMgKi9cclxuZXhwb3J0IGVudW0gQWxpZ25UeXBlIHtcclxuICBMRUZUID0gJ0xlZnQnLFxyXG4gIE1JRERMRSA9ICdNaWRkbGUnLFxyXG4gIFJJR0hUID0gJ1JpZ2h0JyxcclxuICBCT1RUT00gPSAnQm90dG9tJyxcclxuICBWRVJUSUNBTCA9ICdWZXJ0aWNhbCcsXHJcbiAgSE9SSVpPTlRBTCA9ICdIb3Jpem9udGFsJyxcclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtb3B0aW9uLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJlc2VudGF0aW9uL3NyYy9saWIvbW9kZWxzL2NoZWNrYm94LW9wdGlvbi5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSWNvbkJ1dHRvbiB9IGZyb20gJy4uL21vZGVscy9pY29uLWJ1dHRvbi5tb2RlbCc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIENoZWNrYm94T3B0aW9uIHtcclxuICBpZDogbnVtYmVyIHwgc3RyaW5nO1xyXG4gIG5hbWU/OiBzdHJpbmc7XHJcbiAgY2hlY2tlZDogYm9vbGVhbjtcclxuICBkaXNhYmxlZDogYm9vbGVhbjtcclxuICBjdGFCdXR0b24/OiBJY29uQnV0dG9uW107XHJcbn1cclxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybWF0aW9uLW1vZGFsLWRhdGEubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcmVzZW50YXRpb24vc3JjL2xpYi9tb2RlbHMvY29uZmlybWF0aW9uLW1vZGFsLWRhdGEubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgTWVzc2FnZVBhcnQge1xyXG4gIHRleHQ6IHN0cmluZztcclxuICBib2xkPzogYm9vbGVhbjtcclxufVxyXG5cclxuZXhwb3J0IGludGVyZmFjZSBDb25maXJtYXRpb25Nb2RhbERhdGEge1xyXG4gIGxlZnRCdXR0b25MYWJlbDogc3RyaW5nO1xyXG4gIHJpZ2h0QnV0dG9uTGFiZWw6IHN0cmluZztcclxuICBwcm9tcHRNZXNzYWdlOiBzdHJpbmc7XHJcbiAgbWVzc2FnZVBhcnRzPzogTWVzc2FnZVBhcnRbXTtcclxuICBhY3Rpb25CdXR0b25BbGlnbjogc3RyaW5nO1xyXG59XHJcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi1idXR0b24ubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcmVzZW50YXRpb24vc3JjL2xpYi9tb2RlbHMvaWNvbi1idXR0b24ubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSWNvbkJ1dHRvbiB7XHJcbiAgaWQ6IG51bWJlcjtcclxuICBpY29uVVJMOiBzdHJpbmc7XHJcbiAgbGFiZWw/OiBzdHJpbmc7XHJcbiAgYXJpYUxhYmVsOiBzdHJpbmc7XHJcbiAgdG9vbFRpcDogc3RyaW5nO1xyXG4gIGRpc2FibGVkPzogYm9vbGVhbjtcclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LW9wdGlvbi5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXNlbnRhdGlvbi9zcmMvbGliL21vZGVscy9zZWxlY3Qtb3B0aW9uLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFNlbGVjdE9wdGlvbiB7XHJcbiAgaWQ6IG51bWJlciB8IHN0cmluZztcclxuICBuYW1lOiBzdHJpbmc7XHJcbiAgb3B0aW9uX2dyb3Vwcz86IFNlbGVjdE9wdGlvbltdO1xyXG59XHJcbiJdfQ==
@@ -1,8 +0,0 @@
1
- export declare enum AlignType {
2
- LEFT = "Left",
3
- MIDDLE = "Middle",
4
- RIGHT = "Right",
5
- BOTTOM = "Bottom",
6
- VERTICAL = "Vertical",
7
- HORIZONTAL = "Horizontal"
8
- }
@@ -1,8 +0,0 @@
1
- import { IconButton } from '../models/icon-button.model';
2
- export interface CheckboxOption {
3
- id: number | string;
4
- name?: string;
5
- checked: boolean;
6
- disabled: boolean;
7
- ctaButton?: IconButton[];
8
- }
@@ -1,11 +0,0 @@
1
- export interface MessagePart {
2
- text: string;
3
- bold?: boolean;
4
- }
5
- export interface ConfirmationModalData {
6
- leftButtonLabel: string;
7
- rightButtonLabel: string;
8
- promptMessage: string;
9
- messageParts?: MessagePart[];
10
- actionButtonAlign: string;
11
- }
@@ -1,8 +0,0 @@
1
- export interface IconButton {
2
- id: number;
3
- iconURL: string;
4
- label?: string;
5
- ariaLabel: string;
6
- toolTip: string;
7
- disabled?: boolean;
8
- }
@@ -1,5 +0,0 @@
1
- export interface SelectOption {
2
- id: number | string;
3
- name: string;
4
- option_groups?: SelectOption[];
5
- }