adb-shared 7.0.3 → 7.0.5

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,11 +1,11 @@
1
1
  {
2
2
  "name": "adb-shared",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "author": "ADB",
5
5
  "peerDependencies": {
6
- "@angular/common": ">= 19.x",
7
- "@angular/core": ">= 19.x ",
8
- "@angular/router": ">= 19.x ",
6
+ "@angular/common": ">= 20.x",
7
+ "@angular/core": ">= 20.x ",
8
+ "@angular/router": ">= 20.x ",
9
9
  "@ngx-translate/core": ">= 17.x",
10
10
  "@ngx-translate/http-loader": ">= 17.x",
11
11
  "date-fns": ">= 2.x.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
  }
@@ -224,7 +224,7 @@ interface ListItem {
224
224
  declare class AdbMapModule {
225
225
  static forRoot(config?: AdbMapConfig): ModuleWithProviders<AdbMapModule>;
226
226
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbMapModule, never>;
227
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbMapModule, [typeof AdbObsMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters, typeof TreeviewComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.RouterModule, typeof i6.ReactiveFormsModule, typeof i8.AdbDatePickerModule, typeof i9.TranslateModule, typeof i8.AdbPipesModule, typeof i8.AdbFilterSectionModule, typeof i8.AdbPickerModule], [typeof AdbObsMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters]>;
227
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbMapModule, [typeof AdbObsMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters, typeof TreeviewComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.RouterModule, typeof i6.ReactiveFormsModule, typeof i8.AdbDatePickerModule, typeof i8.AdbPipesModule, typeof i8.AdbFilterSectionModule, typeof i8.AdbPickerModule, typeof i9.TranslatePipe], [typeof AdbObsMapComponent, typeof PolygonDrawerInput, typeof AdbMapFilters]>;
228
228
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbMapModule>;
229
229
  }
230
230
 
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, EventEmitter, ElementRef, AfterViewInit, Renderer2, ModuleWithProviders, PipeTransform, ComponentRef, ViewContainerRef, ComponentFactoryResolver, RendererFactory2, ApplicationRef, Injector, TemplateRef, InjectionToken } from '@angular/core';
2
+ import { OnInit, OnDestroy, EventEmitter, ElementRef, AfterViewInit, Renderer2, ModuleWithProviders, PipeTransform, ComponentRef, ViewContainerRef, EnvironmentInjector, RendererFactory2, ApplicationRef, TemplateRef, InjectionToken } from '@angular/core';
3
3
  import * as i4 from '@ngx-translate/core';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
5
  import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
@@ -185,45 +185,26 @@ declare class AdbDropdownDirective {
185
185
  private elementRef;
186
186
  private adbDropdownService;
187
187
  constructor(elementRef: ElementRef, adbDropdownService: AdbDropdownService);
188
- adbDropdown: EventEmitter<any>;
189
- insideClick: boolean;
188
+ adbDropdownSignal: i0.OutputEmitterRef<void>;
189
+ insideClickSignal: i0.InputSignal<boolean>;
190
190
  id: string;
191
191
  dataToggle: string;
192
192
  haspPopup: boolean;
193
193
  expanded: boolean;
194
194
  dropId: string;
195
195
  onClick(): void;
196
+ private setMenuPosition;
196
197
  onCheckOutSideClick(target: any): void;
198
+ onResize(): void;
197
199
  close(): void;
198
200
  private getId;
199
201
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbDropdownDirective, never>;
200
- static ɵdir: i0.ɵɵDirectiveDeclaration<AdbDropdownDirective, "[adbDropdown]", ["adbDropdown"], { "insideClick": { "alias": "insideClick"; "required": false; }; }, { "adbDropdown": "adbDropdown"; }, never, never, false, never>;
201
- }
202
-
203
- declare class AdbDropdown2Directive {
204
- private elementRef;
205
- private adbDropdownService;
206
- constructor(elementRef: ElementRef, adbDropdownService: AdbDropdownService);
207
- adbDropdown: EventEmitter<any>;
208
- insideClick: boolean;
209
- id: string;
210
- dataToggle: string;
211
- haspPopup: boolean;
212
- expanded: boolean;
213
- dropId: string;
214
- onClick(): void;
215
- onCheckOutSideClick(target: any): void;
216
- onWindowScroll(): void;
217
- private setMenuPosition;
218
- close(): void;
219
- private getId;
220
- static ɵfac: i0.ɵɵFactoryDeclaration<AdbDropdown2Directive, never>;
221
- static ɵdir: i0.ɵɵDirectiveDeclaration<AdbDropdown2Directive, "[adbDropdown2]", ["adbDropdown"], { "insideClick": { "alias": "insideClick"; "required": false; }; }, { "adbDropdown": "adbDropdown"; }, never, never, false, never>;
202
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AdbDropdownDirective, "[adbDropdown]", ["adbDropdown"], { "insideClickSignal": { "alias": "insideClick"; "required": false; "isSignal": true; }; }, { "adbDropdownSignal": "adbDropdown"; }, never, never, false, never>;
222
203
  }
223
204
 
224
205
  declare class AdbDropdownModule {
225
206
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbDropdownModule, never>;
226
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDropdownModule, [typeof AdbDropdownDirective, typeof AdbDropdown2Directive], [typeof i2.CommonModule, typeof i4.TranslateModule, typeof AdbDirectivesModule], [typeof AdbDropdownDirective, typeof AdbDropdown2Directive]>;
207
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDropdownModule, [typeof AdbDropdownDirective], [typeof i2.CommonModule, typeof AdbDirectivesModule], [typeof AdbDropdownDirective]>;
227
208
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbDropdownModule>;
228
209
  }
229
210
 
@@ -300,7 +281,7 @@ declare class AdbPagersModule {
300
281
  declare class ArtportalenNavModule {
301
282
  static forRoot(environment: any): ModuleWithProviders<ArtportalenNavModule>;
302
283
  static ɵfac: i0.ɵɵFactoryDeclaration<ArtportalenNavModule, never>;
303
- static ɵmod: i0.ɵɵNgModuleDeclaration<ArtportalenNavModule, [typeof ArtportalenNavComponent, typeof ArtportalenFooterComponent], [typeof i2.CommonModule, typeof i5.RouterModule, typeof i4.TranslateModule, typeof AdbDirectivesModule, typeof AdbDropdownModule, typeof AdbPagersModule], [typeof ArtportalenNavComponent, typeof ArtportalenFooterComponent]>;
284
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ArtportalenNavModule, [typeof ArtportalenNavComponent, typeof ArtportalenFooterComponent], [typeof i2.CommonModule, typeof i5.RouterModule, typeof AdbDirectivesModule, typeof AdbDropdownModule, typeof AdbPagersModule], [typeof ArtportalenNavComponent, typeof ArtportalenFooterComponent]>;
304
285
  static ɵinj: i0.ɵɵInjectorDeclaration<ArtportalenNavModule>;
305
286
  }
306
287
 
@@ -460,20 +441,19 @@ declare class AdbDatePickerDirective implements ControlValueAccessor, Validator,
460
441
 
461
442
  declare class AdbDatePickerModule {
462
443
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbDatePickerModule, never>;
463
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDatePickerModule, [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective], [typeof i2.CommonModule, typeof i4.TranslateModule, typeof AdbPipesModule, typeof AdbDirectivesModule], [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective]>;
444
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDatePickerModule, [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective], [typeof i2.CommonModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i4.TranslateModule], [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective]>;
464
445
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbDatePickerModule>;
465
446
  }
466
447
 
467
448
  declare class AdbModalService {
468
- private componentFactoryResolver;
449
+ private environmentInjector;
469
450
  private appRef;
470
- private injector;
471
451
  private closeSubject;
472
452
  close$: rxjs.Observable<boolean>;
473
453
  renderer: Renderer2;
474
454
  domElem: HTMLElement;
475
455
  backdrop: any;
476
- constructor(componentFactoryResolver: ComponentFactoryResolver, rendererFactory: RendererFactory2, appRef: ApplicationRef, injector: Injector);
456
+ constructor(environmentInjector: EnvironmentInjector, rendererFactory: RendererFactory2, appRef: ApplicationRef);
477
457
  hide(confirm: boolean): void;
478
458
  showConfirm(model: DialogModel): void;
479
459
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbModalService, never>;
@@ -501,22 +481,16 @@ interface DialogModel {
501
481
 
502
482
  declare class AdbModalModule {
503
483
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbModalModule, never>;
504
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof AdbConfirmModal], [typeof i2.CommonModule, typeof i4.TranslateModule, typeof AdbDirectivesModule], [typeof AdbConfirmModal]>;
484
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof AdbConfirmModal], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4.TranslateModule], [typeof AdbConfirmModal]>;
505
485
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbModalModule>;
506
486
  }
507
487
 
508
488
  declare class AdbToastService {
509
- private componentFactoryResolver;
510
- private rendererFactory;
489
+ private environmentInjector;
511
490
  private appRef;
512
- private injector;
513
- private toasts;
514
- private toastsSubject;
515
- $toasts: Observable<ToastMessage[]>;
516
- renderer: Renderer2;
517
- domElement: HTMLElement;
491
+ toastsSignal: i0.WritableSignal<ToastMessage[]>;
518
492
  container: any;
519
- constructor(componentFactoryResolver: ComponentFactoryResolver, rendererFactory: RendererFactory2, appRef: ApplicationRef, injector: Injector);
493
+ constructor(environmentInjector: EnvironmentInjector, appRef: ApplicationRef);
520
494
  add(toastMessage: ToastMessage, time?: number): void;
521
495
  remove(toast: ToastMessage): void;
522
496
  private addContainer;
@@ -529,7 +503,7 @@ interface ToastMessage {
529
503
  message: string;
530
504
  messageValue?: any;
531
505
  type?: ToastType;
532
- index?: number;
506
+ id?: number;
533
507
  delay?: any;
534
508
  }
535
509
  declare enum ToastType {
@@ -541,7 +515,6 @@ declare enum ToastType {
541
515
 
542
516
  declare class AdbToast {
543
517
  toastService: AdbToastService;
544
- toasts: ToastMessage[];
545
518
  toastType: typeof ToastType;
546
519
  constructor(toastService: AdbToastService);
547
520
  onRemoveToast(toast: ToastMessage): void;
@@ -551,22 +524,22 @@ declare class AdbToast {
551
524
 
552
525
  declare class AdbToastModule {
553
526
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbToastModule, never>;
554
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof AdbToast], [typeof i2.CommonModule, typeof i4.TranslateModule, typeof AdbDirectivesModule], [typeof AdbToast]>;
527
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof AdbToast], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4.TranslateModule], [typeof AdbToast]>;
555
528
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbToastModule>;
556
529
  }
557
530
 
558
531
  declare class AdbHelpButtonComponent implements OnInit {
559
532
  private elementRef;
560
533
  showHelp: boolean;
561
- buttonClass: string;
562
- label: string;
534
+ buttonClassSignal: i0.InputSignal<string>;
535
+ labelSignal: i0.InputSignal<string>;
563
536
  id: number;
564
537
  onClickDoc(event: MouseEvent): void;
565
538
  constructor(elementRef: ElementRef);
566
539
  ngOnInit(): void;
567
540
  onClose(): void;
568
541
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbHelpButtonComponent, never>;
569
- static ɵcmp: i0.ɵɵComponentDeclaration<AdbHelpButtonComponent, "adb-help-button", never, { "buttonClass": { "alias": "buttonClass"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], false, never>;
542
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdbHelpButtonComponent, "adb-help-button", never, { "buttonClassSignal": { "alias": "buttonClass"; "required": false; "isSignal": true; }; "labelSignal": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
570
543
  }
571
544
 
572
545
  declare class AdbButtonsModule {
@@ -634,23 +607,21 @@ declare class AdbRichEditorModule {
634
607
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbRichEditorModule>;
635
608
  }
636
609
 
637
- declare class FilterSectionComponent implements OnInit, OnDestroy {
638
- titleResource: string;
639
- helpResource: any;
640
- count: number;
641
- expanded: any;
642
- lazy: boolean;
643
- id: number;
644
- template?: TemplateRef<unknown>;
645
- ngOnInit(): void;
646
- ngOnDestroy(): void;
610
+ declare class FilterSectionComponent {
611
+ countSignal: i0.InputSignal<number>;
612
+ titleResourceSignal: i0.InputSignal<string>;
613
+ helpResourceSignal: i0.InputSignal<string>;
614
+ lazySignal: i0.InputSignal<boolean>;
615
+ expandedSignal: i0.ModelSignal<boolean>;
616
+ templateSignal: i0.Signal<TemplateRef<unknown>>;
617
+ id: string;
647
618
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterSectionComponent, never>;
648
- static ɵcmp: i0.ɵɵComponentDeclaration<FilterSectionComponent, "adb-filter-section", never, { "titleResource": { "alias": "titleResource"; "required": false; }; "helpResource": { "alias": "helpResource"; "required": false; }; "count": { "alias": "count"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; }, {}, ["template"], ["*"], false, never>;
619
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterSectionComponent, "adb-filter-section", never, { "countSignal": { "alias": "count"; "required": false; "isSignal": true; }; "titleResourceSignal": { "alias": "titleResource"; "required": false; "isSignal": true; }; "helpResourceSignal": { "alias": "helpResource"; "required": false; "isSignal": true; }; "lazySignal": { "alias": "lazy"; "required": false; "isSignal": true; }; "expandedSignal": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expandedSignal": "expandedChange"; }, ["templateSignal"], ["*"], false, never>;
649
620
  }
650
621
 
651
622
  declare class AdbFilterSectionModule {
652
623
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbFilterSectionModule, never>;
653
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof FilterSectionComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof i4.TranslateModule, typeof AdbButtonsModule], [typeof FilterSectionComponent, typeof AdbButtonsModule]>;
624
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof FilterSectionComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof AdbButtonsModule, typeof i4.TranslateModule], [typeof FilterSectionComponent, typeof AdbButtonsModule]>;
654
625
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbFilterSectionModule>;
655
626
  }
656
627
 
@@ -873,9 +844,9 @@ declare class AdbTaxonPickerComponent implements ControlValueAccessor {
873
844
  declare class AdbPickerModule {
874
845
  static forRoot(config?: AdbPickerConfig): ModuleWithProviders<AdbPickerModule>;
875
846
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbPickerModule, never>;
876
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof i4.TranslateModule, typeof AdbPipesModule, typeof AdbDirectivesModule], [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent]>;
847
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i4.TranslateModule], [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent]>;
877
848
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbPickerModule>;
878
849
  }
879
850
 
880
- 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 };
851
+ 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 };
881
852
  export type { AdbPickerConfig, AdbUserServiceConfig, DialogModel, PickerDay, PickerWeek, RichTextPart, ToastMessage };