adb-shared 6.3.1 → 6.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adb-shared",
3
- "version": "6.3.1",
3
+ "version": "6.3.3",
4
4
  "author": "ADB",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">= 19.x",
@@ -29,5 +29,6 @@
29
29
  "types": "./types/adb-shared-map.d.ts",
30
30
  "default": "./fesm2022/adb-shared-map.mjs"
31
31
  }
32
- }
32
+ },
33
+ "type": "module"
33
34
  }
@@ -613,9 +613,10 @@ declare class AdbRichEditorComponent implements ControlValueAccessor, OnDestroy
613
613
  }
614
614
 
615
615
  interface RichTextPart {
616
- type: 'text' | 'italic' | 'bold' | 'taxon' | 'term' | 'reference';
616
+ type: 'text' | 'italic' | 'bold' | 'taxon' | 'term' | 'reference' | 'link';
617
617
  content: string;
618
618
  id?: string;
619
+ url?: string;
619
620
  }
620
621
  declare class RichTextComponent {
621
622
  text: string;
@@ -624,7 +625,7 @@ declare class RichTextComponent {
624
625
  constructor(config: RichModuleConfig);
625
626
  ngOnChanges(): void;
626
627
  private parseCustomMarkdown;
627
- static ɵfac: i0.ɵɵFactoryDeclaration<RichTextComponent, never>;
628
+ static ɵfac: i0.ɵɵFactoryDeclaration<RichTextComponent, [{ optional: true; }]>;
628
629
  static ɵcmp: i0.ɵɵComponentDeclaration<RichTextComponent, "adb-rich-text", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
629
630
  }
630
631
 
@@ -655,6 +656,43 @@ declare class AdbFilterSectionModule {
655
656
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbFilterSectionModule>;
656
657
  }
657
658
 
659
+ interface AdbAlertConfig {
660
+ apiUrl: string;
661
+ clientId: string;
662
+ }
663
+ declare const ADB_ALERT_CONFIG: InjectionToken<AdbAlertConfig>;
664
+
665
+ interface Notification {
666
+ id: number;
667
+ severity: number;
668
+ message: string;
669
+ startDate: Date;
670
+ endDate: Date;
671
+ affectedSystems: string[];
672
+ sticky: boolean;
673
+ }
674
+
675
+ declare class AdbAlertComponent implements OnInit {
676
+ private http;
677
+ private config;
678
+ alerts: Notification[];
679
+ constructor(http: HttpClient, config: AdbAlertConfig);
680
+ ngOnInit(): void;
681
+ loadAlerts(): void;
682
+ dismiss(alert: Notification): void;
683
+ private setItem;
684
+ private getItem;
685
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbAlertComponent, never>;
686
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdbAlertComponent, "adb-alert", never, {}, {}, never, never, false, never>;
687
+ }
688
+
689
+ declare class AdbAlertModule {
690
+ static forRoot(config: AdbAlertConfig): ModuleWithProviders<AdbAlertModule>;
691
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbAlertModule, never>;
692
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbAlertModule, [typeof AdbAlertComponent], [typeof i2.CommonModule, typeof i4.TranslateModule, typeof AdbRichEditorModule], [typeof AdbAlertComponent]>;
693
+ static ɵinj: i0.ɵɵInjectorDeclaration<AdbAlertModule>;
694
+ }
695
+
658
696
  interface AdbUserServiceConfig {
659
697
  redirectUrl: string;
660
698
  clientId: string;
@@ -878,5 +916,5 @@ declare class AdbPickerModule {
878
916
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbPickerModule>;
879
917
  }
880
918
 
881
- export { ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, AdbDropdown2Directive, AdbDropdownDirective, AdbDropdownModule, AdbFilterSectionModule, AdbHelpButtonComponent, AdbModalModule, AdbModalService, AdbPagersModule, AdbPickerConfigService, AdbPickerModule, AdbPipesModule, AdbRichEditorComponent, AdbRichEditorModule, AdbTaxonPickerComponent, AdbToast, AdbToastModule, AdbToastService, AdbUserInterceptor, AdbUserModule, AdbUserService, ArtportalenFooterComponent, ArtportalenNavComponent, ArtportalenNavModule, AuthCallbackComponent, ClickOutsideDirective, DEFAULT_ADB_USER_SERVICE_CONFIG, EmptyValuePipe, EnvironmentService, FileUploadDirective, FilterSectionComponent, FocusDirective, GenericPickerComponent, HighlightHtmlPipe, HighlightPipe, ImageLoaderDirective, InfiniteScrollComponent, LocaleDatePipe, NumberSpacingPipe, PagerComponent, PagerInlineComponent, RedListBadgeClassDirective, RichTextComponent, RiskClassDirective, RouterLinkActiveFragmentDirective, ToastType, UserModuleConstants };
882
- export type { AdbPickerConfig, AdbUserServiceConfig, DialogModel, PickerDay, PickerWeek, RichTextPart, ToastMessage };
919
+ export { ADB_ALERT_CONFIG, ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAlertComponent, AdbAlertModule, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, AdbDropdown2Directive, AdbDropdownDirective, AdbDropdownModule, AdbFilterSectionModule, AdbHelpButtonComponent, AdbModalModule, AdbModalService, AdbPagersModule, AdbPickerConfigService, AdbPickerModule, AdbPipesModule, AdbRichEditorComponent, AdbRichEditorModule, AdbTaxonPickerComponent, AdbToast, AdbToastModule, AdbToastService, AdbUserInterceptor, AdbUserModule, AdbUserService, ArtportalenFooterComponent, ArtportalenNavComponent, ArtportalenNavModule, AuthCallbackComponent, ClickOutsideDirective, DEFAULT_ADB_USER_SERVICE_CONFIG, EmptyValuePipe, EnvironmentService, FileUploadDirective, FilterSectionComponent, FocusDirective, GenericPickerComponent, HighlightHtmlPipe, HighlightPipe, ImageLoaderDirective, InfiniteScrollComponent, LocaleDatePipe, NumberSpacingPipe, PagerComponent, PagerInlineComponent, RedListBadgeClassDirective, RichTextComponent, RiskClassDirective, RouterLinkActiveFragmentDirective, ToastType, UserModuleConstants };
920
+ export type { AdbAlertConfig, AdbPickerConfig, AdbUserServiceConfig, DialogModel, PickerDay, PickerWeek, RichTextPart, ToastMessage };