adb-shared 7.0.3 → 7.0.4

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.4",
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,25 @@ 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;
197
198
  close(): void;
198
199
  private getId;
199
200
  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>;
201
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AdbDropdownDirective, "[adbDropdown]", ["adbDropdown"], { "insideClickSignal": { "alias": "insideClick"; "required": false; "isSignal": true; }; }, { "adbDropdownSignal": "adbDropdown"; }, never, never, false, never>;
222
202
  }
223
203
 
224
204
  declare class AdbDropdownModule {
225
205
  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]>;
206
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDropdownModule, [typeof AdbDropdownDirective], [typeof i2.CommonModule, typeof AdbDirectivesModule], [typeof AdbDropdownDirective]>;
227
207
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbDropdownModule>;
228
208
  }
229
209
 
@@ -300,7 +280,7 @@ declare class AdbPagersModule {
300
280
  declare class ArtportalenNavModule {
301
281
  static forRoot(environment: any): ModuleWithProviders<ArtportalenNavModule>;
302
282
  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]>;
283
+ 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
284
  static ɵinj: i0.ɵɵInjectorDeclaration<ArtportalenNavModule>;
305
285
  }
306
286
 
@@ -460,20 +440,19 @@ declare class AdbDatePickerDirective implements ControlValueAccessor, Validator,
460
440
 
461
441
  declare class AdbDatePickerModule {
462
442
  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]>;
443
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDatePickerModule, [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective], [typeof i2.CommonModule, typeof AdbPipesModule, typeof AdbDirectivesModule, typeof i4.TranslateModule], [typeof AdbDatePickerComponent, typeof AdbDatePickerDirective]>;
464
444
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbDatePickerModule>;
465
445
  }
466
446
 
467
447
  declare class AdbModalService {
468
- private componentFactoryResolver;
448
+ private environmentInjector;
469
449
  private appRef;
470
- private injector;
471
450
  private closeSubject;
472
451
  close$: rxjs.Observable<boolean>;
473
452
  renderer: Renderer2;
474
453
  domElem: HTMLElement;
475
454
  backdrop: any;
476
- constructor(componentFactoryResolver: ComponentFactoryResolver, rendererFactory: RendererFactory2, appRef: ApplicationRef, injector: Injector);
455
+ constructor(environmentInjector: EnvironmentInjector, rendererFactory: RendererFactory2, appRef: ApplicationRef);
477
456
  hide(confirm: boolean): void;
478
457
  showConfirm(model: DialogModel): void;
479
458
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbModalService, never>;
@@ -501,22 +480,16 @@ interface DialogModel {
501
480
 
502
481
  declare class AdbModalModule {
503
482
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbModalModule, never>;
504
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof AdbConfirmModal], [typeof i2.CommonModule, typeof i4.TranslateModule, typeof AdbDirectivesModule], [typeof AdbConfirmModal]>;
483
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof AdbConfirmModal], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4.TranslateModule], [typeof AdbConfirmModal]>;
505
484
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbModalModule>;
506
485
  }
507
486
 
508
487
  declare class AdbToastService {
509
- private componentFactoryResolver;
510
- private rendererFactory;
488
+ private environmentInjector;
511
489
  private appRef;
512
- private injector;
513
- private toasts;
514
- private toastsSubject;
515
- $toasts: Observable<ToastMessage[]>;
516
- renderer: Renderer2;
517
- domElement: HTMLElement;
490
+ toastsSignal: i0.WritableSignal<ToastMessage[]>;
518
491
  container: any;
519
- constructor(componentFactoryResolver: ComponentFactoryResolver, rendererFactory: RendererFactory2, appRef: ApplicationRef, injector: Injector);
492
+ constructor(environmentInjector: EnvironmentInjector, appRef: ApplicationRef);
520
493
  add(toastMessage: ToastMessage, time?: number): void;
521
494
  remove(toast: ToastMessage): void;
522
495
  private addContainer;
@@ -529,7 +502,7 @@ interface ToastMessage {
529
502
  message: string;
530
503
  messageValue?: any;
531
504
  type?: ToastType;
532
- index?: number;
505
+ id?: number;
533
506
  delay?: any;
534
507
  }
535
508
  declare enum ToastType {
@@ -541,7 +514,6 @@ declare enum ToastType {
541
514
 
542
515
  declare class AdbToast {
543
516
  toastService: AdbToastService;
544
- toasts: ToastMessage[];
545
517
  toastType: typeof ToastType;
546
518
  constructor(toastService: AdbToastService);
547
519
  onRemoveToast(toast: ToastMessage): void;
@@ -551,22 +523,22 @@ declare class AdbToast {
551
523
 
552
524
  declare class AdbToastModule {
553
525
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbToastModule, never>;
554
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof AdbToast], [typeof i2.CommonModule, typeof i4.TranslateModule, typeof AdbDirectivesModule], [typeof AdbToast]>;
526
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof AdbToast], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4.TranslateModule], [typeof AdbToast]>;
555
527
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbToastModule>;
556
528
  }
557
529
 
558
530
  declare class AdbHelpButtonComponent implements OnInit {
559
531
  private elementRef;
560
532
  showHelp: boolean;
561
- buttonClass: string;
562
- label: string;
533
+ buttonClassSignal: i0.InputSignal<string>;
534
+ labelSignal: i0.InputSignal<string>;
563
535
  id: number;
564
536
  onClickDoc(event: MouseEvent): void;
565
537
  constructor(elementRef: ElementRef);
566
538
  ngOnInit(): void;
567
539
  onClose(): void;
568
540
  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>;
541
+ 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
542
  }
571
543
 
572
544
  declare class AdbButtonsModule {
@@ -634,23 +606,21 @@ declare class AdbRichEditorModule {
634
606
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbRichEditorModule>;
635
607
  }
636
608
 
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;
609
+ declare class FilterSectionComponent {
610
+ countSignal: i0.InputSignal<number>;
611
+ titleResourceSignal: i0.InputSignal<string>;
612
+ helpResourceSignal: i0.InputSignal<string>;
613
+ lazySignal: i0.InputSignal<boolean>;
614
+ expandedSignal: i0.ModelSignal<boolean>;
615
+ templateSignal: i0.Signal<TemplateRef<unknown>>;
616
+ id: string;
647
617
  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>;
618
+ 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
619
  }
650
620
 
651
621
  declare class AdbFilterSectionModule {
652
622
  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]>;
623
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof FilterSectionComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof AdbButtonsModule, typeof i4.TranslateModule], [typeof FilterSectionComponent, typeof AdbButtonsModule]>;
654
624
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbFilterSectionModule>;
655
625
  }
656
626
 
@@ -873,9 +843,9 @@ declare class AdbTaxonPickerComponent implements ControlValueAccessor {
873
843
  declare class AdbPickerModule {
874
844
  static forRoot(config?: AdbPickerConfig): ModuleWithProviders<AdbPickerModule>;
875
845
  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]>;
846
+ 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
847
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbPickerModule>;
878
848
  }
879
849
 
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 };
850
+ 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
851
  export type { AdbPickerConfig, AdbUserServiceConfig, DialogModel, PickerDay, PickerWeek, RichTextPart, ToastMessage };