adb-shared 7.0.12 → 7.0.14
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/fesm2022/adb-shared.mjs +914 -843
- package/fesm2022/adb-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/types/adb-shared.d.ts +108 -70
package/package.json
CHANGED
package/types/adb-shared.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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,103 @@ 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' | 'link';
|
|
401
|
+
content: string;
|
|
402
|
+
id?: string;
|
|
403
|
+
url?: string;
|
|
404
|
+
}
|
|
405
|
+
declare class RichTextComponent {
|
|
406
|
+
text: string;
|
|
407
|
+
parts: RichTextPart[];
|
|
408
|
+
taxonUrl: string;
|
|
409
|
+
constructor(config: RichModuleConfig);
|
|
410
|
+
ngOnChanges(): void;
|
|
411
|
+
private parseCustomMarkdown;
|
|
412
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextComponent, never>;
|
|
413
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RichTextComponent, "adb-rich-text", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare class AdbRichEditorModule {
|
|
417
|
+
static forRoot(config: RichModuleConfig): ModuleWithProviders<AdbRichEditorModule>;
|
|
418
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorModule, never>;
|
|
419
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbRichEditorModule, [typeof AdbRichEditorComponent, typeof RichTextComponent], [typeof i2.CommonModule, typeof i4.FormsModule, typeof i4$1.TranslatePipe], [typeof AdbRichEditorComponent, typeof RichTextComponent]>;
|
|
420
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbRichEditorModule>;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare class AdbAlertModule {
|
|
424
|
+
static forRoot(config: AdbAlertConfig): ModuleWithProviders<AdbAlertModule>;
|
|
425
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdbAlertModule, never>;
|
|
426
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbAlertModule, [typeof AdbAlertComponent], [typeof i2.CommonModule, typeof i4$1.TranslatePipe, typeof AdbRichEditorModule], [typeof AdbAlertComponent]>;
|
|
427
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AdbAlertModule>;
|
|
428
|
+
}
|
|
429
|
+
|
|
333
430
|
declare class AdbDatePickerComponent implements OnInit, OnDestroy {
|
|
334
431
|
elementRef: ElementRef;
|
|
335
432
|
private translate;
|
|
@@ -443,7 +540,7 @@ declare class AdbDatePickerDirective implements ControlValueAccessor, Validator,
|
|
|
443
540
|
|
|
444
541
|
declare class AdbDatePickerModule {
|
|
445
542
|
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]>;
|
|
543
|
+
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
544
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbDatePickerModule>;
|
|
448
545
|
}
|
|
449
546
|
|
|
@@ -483,7 +580,7 @@ interface DialogModel {
|
|
|
483
580
|
|
|
484
581
|
declare class AdbModalModule {
|
|
485
582
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbModalModule, never>;
|
|
486
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof AdbConfirmModal], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4.TranslatePipe], [typeof AdbConfirmModal]>;
|
|
583
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbModalModule, [typeof AdbConfirmModal], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4$1.TranslatePipe], [typeof AdbConfirmModal]>;
|
|
487
584
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbModalModule>;
|
|
488
585
|
}
|
|
489
586
|
|
|
@@ -526,7 +623,7 @@ declare class AdbToast {
|
|
|
526
623
|
|
|
527
624
|
declare class AdbToastModule {
|
|
528
625
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbToastModule, never>;
|
|
529
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof AdbToast], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4.TranslatePipe], [typeof AdbToast]>;
|
|
626
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbToastModule, [typeof AdbToast], [typeof i2.CommonModule, typeof AdbDirectivesModule, typeof i4$1.TranslatePipe], [typeof AdbToast]>;
|
|
530
627
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbToastModule>;
|
|
531
628
|
}
|
|
532
629
|
|
|
@@ -550,65 +647,6 @@ declare class AdbButtonsModule {
|
|
|
550
647
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbButtonsModule>;
|
|
551
648
|
}
|
|
552
649
|
|
|
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
650
|
declare class FilterSectionComponent {
|
|
613
651
|
countSignal: i0.InputSignal<number>;
|
|
614
652
|
titleResourceSignal: i0.InputSignal<string>;
|
|
@@ -623,7 +661,7 @@ declare class FilterSectionComponent {
|
|
|
623
661
|
|
|
624
662
|
declare class AdbFilterSectionModule {
|
|
625
663
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbFilterSectionModule, never>;
|
|
626
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbFilterSectionModule, [typeof FilterSectionComponent], [typeof i2.CommonModule, typeof i4
|
|
664
|
+
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
665
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbFilterSectionModule>;
|
|
628
666
|
}
|
|
629
667
|
|
|
@@ -694,7 +732,7 @@ declare class AuthCallbackComponent implements OnInit {
|
|
|
694
732
|
declare class AdbUserModule {
|
|
695
733
|
static forRoot(config?: AdbUserServiceConfig): ModuleWithProviders<AdbUserModule>;
|
|
696
734
|
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]>;
|
|
735
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbUserModule, [typeof AuthCallbackComponent], [typeof i2.CommonModule, typeof i5.RouterModule, typeof i4$1.TranslatePipe], [typeof AuthCallbackComponent]>;
|
|
698
736
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbUserModule>;
|
|
699
737
|
}
|
|
700
738
|
|
|
@@ -846,9 +884,9 @@ declare class AdbTaxonPickerComponent implements ControlValueAccessor {
|
|
|
846
884
|
declare class AdbPickerModule {
|
|
847
885
|
static forRoot(config?: AdbPickerConfig): ModuleWithProviders<AdbPickerModule>;
|
|
848
886
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdbPickerModule, never>;
|
|
849
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPickerModule, [typeof GenericPickerComponent, typeof AdbAreaPickerComponent, typeof AdbTaxonPickerComponent], [typeof i2.CommonModule, typeof i4
|
|
887
|
+
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
888
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdbPickerModule>;
|
|
851
889
|
}
|
|
852
890
|
|
|
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 };
|
|
891
|
+
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 };
|
|
892
|
+
export type { AdbAlertConfig, AdbPickerConfig, AdbUserServiceConfig, DialogModel, Notification, PickerDay, PickerWeek, RichTextPart, ToastMessage };
|