@bravobit/bb-foundation 0.55.5 → 0.56.0

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/dialog/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, OnInit, OnDestroy, EventEmitter, Type, TemplateRef, EnvironmentProviders, ViewContainerRef, ComponentRef, ModuleWithProviders } from '@angular/core';
4
+ import { InjectionToken, OnInit, OnDestroy, EventEmitter, TemplateRef, Type, EnvironmentProviders, ViewContainerRef, ComponentRef, ModuleWithProviders } from '@angular/core';
5
5
 
6
6
  declare class BbDialogRef<T = any> {
7
7
  private readonly _afterClosed$;
@@ -83,15 +83,16 @@ declare class BbDialogActions {
83
83
 
84
84
  declare class BbConfirm {
85
85
  private _dialog;
86
- bbConfirmTitle: string;
87
- bbConfirmDescription: string;
86
+ bbConfirmTitle: string | TemplateRef<any>;
87
+ bbConfirmDescription: string | TemplateRef<any>;
88
88
  bbConfirmIconName: string | null;
89
89
  bbConfirmButtonText: string | null;
90
+ bbConfirmWidth: string | null;
90
91
  bbCancelButtonText: string | null;
91
92
  confirm: EventEmitter<MouseEvent>;
92
93
  onClick(event: MouseEvent): Promise<void>;
93
94
  static ɵfac: i0.ɵɵFactoryDeclaration<BbConfirm, never>;
94
- static ɵdir: i0.ɵɵDirectiveDeclaration<BbConfirm, "[bbConfirm]", never, { "bbConfirmTitle": { "alias": "bbConfirmTitle"; "required": false; }; "bbConfirmDescription": { "alias": "bbConfirmDescription"; "required": false; }; "bbConfirmIconName": { "alias": "bbConfirmIconName"; "required": false; }; "bbConfirmButtonText": { "alias": "bbConfirmButtonText"; "required": false; }; "bbCancelButtonText": { "alias": "bbCancelButtonText"; "required": false; }; }, { "confirm": "bbConfirm"; }, never, never, true, never>;
95
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BbConfirm, "[bbConfirm]", never, { "bbConfirmTitle": { "alias": "bbConfirmTitle"; "required": false; }; "bbConfirmDescription": { "alias": "bbConfirmDescription"; "required": false; }; "bbConfirmIconName": { "alias": "bbConfirmIconName"; "required": false; }; "bbConfirmButtonText": { "alias": "bbConfirmButtonText"; "required": false; }; "bbConfirmWidth": { "alias": "bbConfirmWidth"; "required": false; }; "bbCancelButtonText": { "alias": "bbCancelButtonText"; "required": false; }; }, { "confirm": "bbConfirm"; }, never, never, true, never>;
95
96
  }
96
97
 
97
98
  declare class Dialog {
@@ -433,6 +433,19 @@ declare class BbAvatar {
433
433
  static ɵcmp: i0.ɵɵComponentDeclaration<BbAvatar, "bb-avatar", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
434
434
  }
435
435
 
436
+ interface BbMultiFileControlItem {
437
+ id: number;
438
+ label: string;
439
+ url: string;
440
+ description?: string;
441
+ }
442
+ type BbMultiFileControlOpenEvent = {
443
+ type: 'item';
444
+ item: BbMultiFileControlItem;
445
+ } | {
446
+ type: 'file';
447
+ file: File;
448
+ };
436
449
  declare class BbMultiFileControl implements ControlValueAccessor {
437
450
  private readonly _files;
438
451
  private readonly _changeDetectorRef;
@@ -447,22 +460,16 @@ declare class BbMultiFileControl implements ControlValueAccessor {
447
460
  required: boolean;
448
461
  disabled: boolean;
449
462
  hideErrors: boolean;
450
- items: {
451
- id: number;
452
- label: string;
453
- url: string;
454
- }[];
455
- delete: EventEmitter<{
456
- id: number;
457
- label: string;
458
- url: string;
459
- }>;
463
+ items: BbMultiFileControlItem[];
464
+ delete: EventEmitter<BbMultiFileControlItem>;
465
+ open: EventEmitter<BbMultiFileControlOpenEvent>;
460
466
  value: File[];
461
467
  error: boolean;
462
468
  onTouchedCallback: () => void;
463
469
  onChangeCallback: (_: File[] | null) => void;
464
470
  get showList(): boolean;
465
- downloadFile(file: File): void;
471
+ openItem(event: Event, item: BbMultiFileControlItem): void;
472
+ downloadFile(event: Event, file: File): void;
466
473
  openFileDialog(): void;
467
474
  onFileChange(event: Event): void;
468
475
  deleteFile(index: number): void;
@@ -494,7 +501,7 @@ declare class BbMultiFileControl implements ControlValueAccessor {
494
501
  };
495
502
  addFiles(files: File[]): void;
496
503
  static ɵfac: i0.ɵɵFactoryDeclaration<BbMultiFileControl, never>;
497
- static ɵcmp: i0.ɵɵComponentDeclaration<BbMultiFileControl, "bb-multi-file-control", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "maxTotalFileSize": { "alias": "maxTotalFileSize"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideErrors": { "alias": "hideErrors"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "delete": "delete"; }, never, never, true, never>;
504
+ static ɵcmp: i0.ɵɵComponentDeclaration<BbMultiFileControl, "bb-multi-file-control", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "maxTotalFileSize": { "alias": "maxTotalFileSize"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideErrors": { "alias": "hideErrors"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "delete": "delete"; "open": "open"; }, never, never, true, never>;
498
505
  static ngAcceptInputType_maxFileSize: unknown;
499
506
  static ngAcceptInputType_maxTotalFileSize: unknown;
500
507
  static ngAcceptInputType_grouped: unknown;
@@ -826,4 +833,4 @@ declare class ElementsModule {
826
833
  }
827
834
 
828
835
  export { BbAnchor, BbAvatar, BbButton, BbCheckbox, BbCheckboxGroup, BbColorPicker, BbColorSlider, BbDate, BbDatePicker, BbExtraErrorControls, BbFileDataUrl, BbFileDrop, BbFileImage, BbFilePicker, BbFileSize, BbFormControl, BbFormError, BbFormGroup, BbFormSubmit, BbFormSubmitter, BbIcon, BbImageControl, BbImagePicker, BbImageUpload, BbInput, BbMultiFileControl, BbPincodeControl, BbRadioButton, BbRadioGroup, BbRelativeTime, BbSpinner, ColorPickerDirective, ELEMENTS_CONFIG, ELEMENTS_ERRORS, ELEMENTS_ICONS, ElementsModule, avatarColorAlgorithm, injectAcceptString, injectMaxFileSize, injectMaxTotalFileSize, provideElementsConfig };
829
- export type { ElementsAvatarColorAlgorithm, ElementsConfig, ElementsDisplayUnit, ElementsError, ElementsIcon, ElementsIconFont, ElementsIconImage, ElementsIconUnknown, ElementsIconUrl };
836
+ export type { BbMultiFileControlItem, BbMultiFileControlOpenEvent, ElementsAvatarColorAlgorithm, ElementsConfig, ElementsDisplayUnit, ElementsError, ElementsIcon, ElementsIconFont, ElementsIconImage, ElementsIconUnknown, ElementsIconUrl };
@@ -534,10 +534,10 @@ class Auth {
534
534
  .filter(item => !!item)
535
535
  .join('/');
536
536
  }
537
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: Auth, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
538
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: Auth, providedIn: 'root' });
537
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: Auth, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
538
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: Auth, providedIn: 'root' });
539
539
  }
540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: Auth, decorators: [{
540
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: Auth, decorators: [{
541
541
  type: Injectable,
542
542
  args: [{
543
543
  providedIn: 'root'
@@ -600,10 +600,10 @@ class BbAuthenticated {
600
600
  }
601
601
  }
602
602
  static ngAcceptInputType_bbAuthenticatedElse;
603
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: BbAuthenticated, deps: [], target: i0.ɵɵFactoryTarget.Directive });
604
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: BbAuthenticated, isStandalone: true, selector: "ng-template[bbAuthenticated]", inputs: { bbAuthenticatedElse: "bbAuthenticatedElse" }, ngImport: i0 });
603
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: BbAuthenticated, deps: [], target: i0.ɵɵFactoryTarget.Directive });
604
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.4", type: BbAuthenticated, isStandalone: true, selector: "ng-template[bbAuthenticated]", inputs: { bbAuthenticatedElse: "bbAuthenticatedElse" }, ngImport: i0 });
605
605
  }
606
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: BbAuthenticated, decorators: [{
606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: BbAuthenticated, decorators: [{
607
607
  type: Directive,
608
608
  args: [{
609
609
  selector: 'ng-template[bbAuthenticated]'
@@ -668,10 +668,10 @@ class BbAnonymous {
668
668
  }
669
669
  }
670
670
  static ngAcceptInputType_bbAnonymousElse;
671
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: BbAnonymous, deps: [], target: i0.ɵɵFactoryTarget.Directive });
672
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.1", type: BbAnonymous, isStandalone: true, selector: "ng-template[bbAnonymous]", inputs: { bbAnonymousElse: "bbAnonymousElse" }, ngImport: i0 });
671
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: BbAnonymous, deps: [], target: i0.ɵɵFactoryTarget.Directive });
672
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.4", type: BbAnonymous, isStandalone: true, selector: "ng-template[bbAnonymous]", inputs: { bbAnonymousElse: "bbAnonymousElse" }, ngImport: i0 });
673
673
  }
674
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: BbAnonymous, decorators: [{
674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: BbAnonymous, decorators: [{
675
675
  type: Directive,
676
676
  args: [{
677
677
  selector: 'ng-template[bbAnonymous]'
@@ -756,10 +756,10 @@ class Acting {
756
756
  const active$ = this._userId$.pipe(map(item => !!item), distinctUntilChanged());
757
757
  return combineLatestMap({ active: active$, user: this._auth.user });
758
758
  }
759
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: Acting, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
760
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: Acting, providedIn: 'root' });
759
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: Acting, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
760
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: Acting, providedIn: 'root' });
761
761
  }
762
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: Acting, decorators: [{
762
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: Acting, decorators: [{
763
763
  type: Injectable,
764
764
  args: [{
765
765
  providedIn: 'root'
@@ -781,10 +781,10 @@ class ActingInterceptor {
781
781
  });
782
782
  return next.handle(modified);
783
783
  }
784
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ActingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
785
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ActingInterceptor });
784
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ActingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
785
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ActingInterceptor });
786
786
  }
787
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ActingInterceptor, decorators: [{
787
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ActingInterceptor, decorators: [{
788
788
  type: Injectable
789
789
  }] });
790
790
 
@@ -867,10 +867,10 @@ class AuthInterceptor {
867
867
  // Return the default access token.
868
868
  return this._auth.session.accessToken;
869
869
  }
870
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
871
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuthInterceptor });
870
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
871
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AuthInterceptor });
872
872
  }
873
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuthInterceptor, decorators: [{
873
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AuthInterceptor, decorators: [{
874
874
  type: Injectable
875
875
  }] });
876
876
 
@@ -895,11 +895,11 @@ class AuthModule {
895
895
  ]
896
896
  };
897
897
  }
898
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
899
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: AuthModule, imports: [BbAuthenticated], exports: [BbAuthenticated] });
900
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuthModule });
898
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
899
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: AuthModule, imports: [BbAuthenticated], exports: [BbAuthenticated] });
900
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AuthModule });
901
901
  }
902
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: AuthModule, decorators: [{
902
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AuthModule, decorators: [{
903
903
  type: NgModule,
904
904
  args: [{
905
905
  imports: [BbAuthenticated],