adb-shared 7.0.11 → 7.0.13

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": "7.0.11",
3
+ "version": "7.0.13",
4
4
  "author": "ADB",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">= 20.x",
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, EventEmitter, ElementRef, AfterViewInit, Renderer2, ModuleWithProviders, PipeTransform, ComponentRef, ViewContainerRef, EnvironmentInjector, RendererFactory2, ApplicationRef, TemplateRef, InjectionToken } from '@angular/core';
3
- import * as i4 from '@ngx-translate/core';
2
+ import { OnInit, OnDestroy, EventEmitter, ElementRef, AfterViewInit, Renderer2, ModuleWithProviders, PipeTransform, InjectionToken, ComponentRef, ViewContainerRef, EnvironmentInjector, RendererFactory2, ApplicationRef, TemplateRef } from '@angular/core';
3
+ import * as i4$1 from '@ngx-translate/core';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
5
  import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
6
6
  import * as i5 from '@angular/router';
7
7
  import { Router, ActivatedRoute } from '@angular/router';
8
8
  import * as i2 from '@angular/common';
9
- import * as i4$1 from '@angular/forms';
9
+ import * as i4 from '@angular/forms';
10
10
  import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
11
11
  import * as rxjs from 'rxjs';
12
12
  import { Observable } from 'rxjs';
@@ -330,6 +330,102 @@ declare class AdbPipesModule {
330
330
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbPipesModule>;
331
331
  }
332
332
 
333
+ interface AdbAlertConfig {
334
+ apiUrl: string;
335
+ clientId: string;
336
+ }
337
+ declare const ADB_ALERT_CONFIG: InjectionToken<AdbAlertConfig>;
338
+
339
+ interface Notification {
340
+ id: number;
341
+ severity: number;
342
+ message: string;
343
+ startDate: Date;
344
+ endDate: Date;
345
+ affectedSystems: string[];
346
+ sticky: boolean;
347
+ }
348
+
349
+ declare class AdbAlertComponent implements OnInit {
350
+ private http;
351
+ private config;
352
+ alerts: Notification[];
353
+ constructor(http: HttpClient, config: AdbAlertConfig);
354
+ ngOnInit(): void;
355
+ loadAlerts(): void;
356
+ dismiss(alert: Notification): void;
357
+ private setItem;
358
+ private getItem;
359
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbAlertComponent, never>;
360
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdbAlertComponent, "adb-alert", never, {}, {}, never, never, false, never>;
361
+ }
362
+
363
+ interface RichModuleConfig {
364
+ taxonUrl: string;
365
+ }
366
+
367
+ declare class AdbRichEditorComponent implements ControlValueAccessor, OnDestroy {
368
+ private el;
369
+ text: string;
370
+ hasTaxon: boolean;
371
+ hasReference: boolean;
372
+ rows: number;
373
+ label: string;
374
+ id: string;
375
+ constructor(el: ElementRef);
376
+ private getTextarea;
377
+ onDoubleClick(): void;
378
+ onItalicClick(): void;
379
+ onBoldClick(): void;
380
+ private applyFormatting;
381
+ private findWrappingMarker;
382
+ onTaxonClick(): void;
383
+ onReferenceClick(): void;
384
+ private replaceMarked;
385
+ onChange: (value: string) => void;
386
+ onTouched: () => void;
387
+ writeValue(value: string): void;
388
+ registerOnChange(fn: (value: string) => void): void;
389
+ registerOnTouched(fn: () => void): void;
390
+ setDisabledState?(isDisabled: boolean): void;
391
+ onTextChange(): void;
392
+ private updateValue;
393
+ private getId;
394
+ ngOnDestroy(): void;
395
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorComponent, never>;
396
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdbRichEditorComponent, "adb-rich-editor", never, { "hasTaxon": { "alias": "hasTaxon"; "required": false; }; "hasReference": { "alias": "hasReference"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
397
+ }
398
+
399
+ interface RichTextPart {
400
+ type: 'text' | 'italic' | 'bold' | 'taxon' | 'reference';
401
+ content: string;
402
+ id?: string;
403
+ }
404
+ declare class RichTextComponent {
405
+ text: string;
406
+ parts: RichTextPart[];
407
+ taxonUrl: string;
408
+ constructor(config: RichModuleConfig);
409
+ ngOnChanges(): void;
410
+ private parseCustomMarkdown;
411
+ static ɵfac: i0.ɵɵFactoryDeclaration<RichTextComponent, never>;
412
+ static ɵcmp: i0.ɵɵComponentDeclaration<RichTextComponent, "adb-rich-text", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
413
+ }
414
+
415
+ declare class AdbRichEditorModule {
416
+ static forRoot(config: RichModuleConfig): ModuleWithProviders<AdbRichEditorModule>;
417
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorModule, never>;
418
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbRichEditorModule, [typeof AdbRichEditorComponent, typeof RichTextComponent], [typeof i2.CommonModule, typeof i4.FormsModule, typeof i4$1.TranslatePipe], [typeof AdbRichEditorComponent, typeof RichTextComponent]>;
419
+ static ɵinj: i0.ɵɵInjectorDeclaration<AdbRichEditorModule>;
420
+ }
421
+
422
+ declare class AdbAlertModule {
423
+ static forRoot(config: AdbAlertConfig): ModuleWithProviders<AdbAlertModule>;
424
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbAlertModule, never>;
425
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbAlertModule, [typeof AdbAlertComponent], [typeof i2.CommonModule, typeof i4$1.TranslatePipe, typeof AdbRichEditorModule], [typeof AdbAlertComponent]>;
426
+ static ɵinj: i0.ɵɵInjectorDeclaration<AdbAlertModule>;
427
+ }
428
+
333
429
  declare class AdbDatePickerComponent implements OnInit, OnDestroy {
334
430
  elementRef: ElementRef;
335
431
  private translate;
@@ -443,7 +539,7 @@ declare class AdbDatePickerDirective implements ControlValueAccessor, Validator,
443
539
 
444
540
  declare class AdbDatePickerModule {
445
541
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbDatePickerModule, never>;
446
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDatePickerModule, [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective], [typeof i2.CommonModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i4.TranslatePipe], [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective]>;
542
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDatePickerModule, [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective], [typeof i2.CommonModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i4$1.TranslatePipe], [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective]>;
447
543
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbDatePickerModule>;
448
544
  }
449
545
 
@@ -483,7 +579,7 @@ interface DialogModel {
483
579
 
484
580
  declare class AdbModalModule {
485
581
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbModalModule, never>;
486
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof AdbConfirmModal], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4.TranslatePipe], [typeof AdbConfirmModal]>;
582
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof AdbConfirmModal], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4$1.TranslatePipe], [typeof AdbConfirmModal]>;
487
583
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbModalModule>;
488
584
  }
489
585
 
@@ -526,7 +622,7 @@ declare class AdbToast {
526
622
 
527
623
  declare class AdbToastModule {
528
624
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbToastModule, never>;
529
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof AdbToast], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4.TranslatePipe], [typeof AdbToast]>;
625
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof AdbToast], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4$1.TranslatePipe], [typeof AdbToast]>;
530
626
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbToastModule>;
531
627
  }
532
628
 
@@ -550,65 +646,6 @@ declare class AdbButtonsModule {
550
646
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbButtonsModule>;
551
647
  }
552
648
 
553
- interface RichModuleConfig {
554
- taxonUrl: string;
555
- }
556
-
557
- declare class AdbRichEditorComponent implements ControlValueAccessor, OnDestroy {
558
- private el;
559
- text: string;
560
- hasTaxon: boolean;
561
- hasReference: boolean;
562
- rows: number;
563
- label: string;
564
- id: string;
565
- constructor(el: ElementRef);
566
- private getTextarea;
567
- onDoubleClick(): void;
568
- onItalicClick(): void;
569
- onBoldClick(): void;
570
- private applyFormatting;
571
- private findWrappingMarker;
572
- onTaxonClick(): void;
573
- onReferenceClick(): void;
574
- private replaceMarked;
575
- onChange: (value: string) => void;
576
- onTouched: () => void;
577
- writeValue(value: string): void;
578
- registerOnChange(fn: (value: string) => void): void;
579
- registerOnTouched(fn: () => void): void;
580
- setDisabledState?(isDisabled: boolean): void;
581
- onTextChange(): void;
582
- private updateValue;
583
- private getId;
584
- ngOnDestroy(): void;
585
- static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorComponent, never>;
586
- static ɵcmp: i0.ɵɵComponentDeclaration<AdbRichEditorComponent, "adb-rich-editor", never, { "hasTaxon": { "alias": "hasTaxon"; "required": false; }; "hasReference": { "alias": "hasReference"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
587
- }
588
-
589
- interface RichTextPart {
590
- type: 'text' | 'italic' | 'bold' | 'taxon' | 'reference';
591
- content: string;
592
- id?: string;
593
- }
594
- declare class RichTextComponent {
595
- text: string;
596
- parts: RichTextPart[];
597
- taxonUrl: string;
598
- constructor(config: RichModuleConfig);
599
- ngOnChanges(): void;
600
- private parseCustomMarkdown;
601
- static ɵfac: i0.ɵɵFactoryDeclaration<RichTextComponent, never>;
602
- static ɵcmp: i0.ɵɵComponentDeclaration<RichTextComponent, "adb-rich-text", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
603
- }
604
-
605
- declare class AdbRichEditorModule {
606
- static forRoot(config: RichModuleConfig): ModuleWithProviders<AdbRichEditorModule>;
607
- static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorModule, never>;
608
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbRichEditorModule, [typeof AdbRichEditorComponent, typeof RichTextComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof i4.TranslatePipe], [typeof AdbRichEditorComponent, typeof RichTextComponent]>;
609
- static ɵinj: i0.ɵɵInjectorDeclaration<AdbRichEditorModule>;
610
- }
611
-
612
649
  declare class FilterSectionComponent {
613
650
  countSignal: i0.InputSignal<number>;
614
651
  titleResourceSignal: i0.InputSignal<string>;
@@ -623,7 +660,7 @@ declare class FilterSectionComponent {
623
660
 
624
661
  declare class AdbFilterSectionModule {
625
662
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbFilterSectionModule, never>;
626
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof FilterSectionComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof AdbButtonsModule, typeof i4.TranslatePipe, typeof AdbRichEditorModule], [typeof FilterSectionComponent, typeof AdbButtonsModule]>;
663
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof FilterSectionComponent], [typeof i2.CommonModule, typeof i4.FormsModule, typeof AdbButtonsModule, typeof i4$1.TranslatePipe, typeof AdbRichEditorModule], [typeof FilterSectionComponent, typeof AdbButtonsModule]>;
627
664
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbFilterSectionModule>;
628
665
  }
629
666
 
@@ -694,7 +731,7 @@ declare class AuthCallbackComponent implements OnInit {
694
731
  declare class AdbUserModule {
695
732
  static forRoot(config?: AdbUserServiceConfig): ModuleWithProviders<AdbUserModule>;
696
733
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbUserModule, never>;
697
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbUserModule, [typeof AuthCallbackComponent], [typeof i2.CommonModule, typeof i5.RouterModule, typeof i4.TranslatePipe], [typeof AuthCallbackComponent]>;
734
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbUserModule, [typeof AuthCallbackComponent], [typeof i2.CommonModule, typeof i5.RouterModule, typeof i4$1.TranslatePipe], [typeof AuthCallbackComponent]>;
698
735
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbUserModule>;
699
736
  }
700
737
 
@@ -846,9 +883,9 @@ declare class AdbTaxonPickerComponent implements ControlValueAccessor {
846
883
  declare class AdbPickerModule {
847
884
  static forRoot(config?: AdbPickerConfig): ModuleWithProviders<AdbPickerModule>;
848
885
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbPickerModule, never>;
849
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i4.TranslatePipe], [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent]>;
886
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4.FormsModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i4$1.TranslatePipe], [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent]>;
850
887
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbPickerModule>;
851
888
  }
852
889
 
853
- export { ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, 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 };
854
- export type { AdbPickerConfig, AdbUserServiceConfig, DialogModel, PickerDay, PickerWeek, RichTextPart, ToastMessage };
890
+ export { ADB_ALERT_CONFIG, ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAlertComponent, AdbAlertModule, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, 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 };
891
+ export type { AdbAlertConfig, AdbPickerConfig, AdbUserServiceConfig, DialogModel, Notification, PickerDay, PickerWeek, RichTextPart, ToastMessage };