@dereekb/dbx-web 9.24.12 → 9.24.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.
@@ -5,7 +5,7 @@ import { BehaviorSubject, map, combineLatest, distinctUntilChanged, shareReplay,
5
5
  import * as i1$1 from '@angular/material/snack-bar';
6
6
  import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
7
7
  import * as i1$2 from '@dereekb/dbx-core';
8
- import { AbstractSubscriptionDirective, safeMarkForCheck, AbstractDbxButtonDirective, provideDbxButton, DbxCoreButtonModule, AbstractTransitionWatcherDirective, AbstractDbxActionValueOnTriggerDirective, safeDetectChanges, DbxInjectionComponentModule, AbstractDbxActionHandlerDirective, provideActionStoreSource, isClickableFilterPreset, AbstractDbxAnchorDirective, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, AbstractIfDirective, DbxCoreFilterModule, asSegueRef, isSegueRefActive, DBX_INJECTION_COMPONENT_DATA, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxCoreActionModule, isIdleActionState, canTriggerAction, onDbxAppAuth, SimpleStorageAccessorFactory } from '@dereekb/dbx-core';
8
+ import { AbstractSubscriptionDirective, safeMarkForCheck, AbstractDbxButtonDirective, provideDbxButton, DbxCoreButtonModule, AbstractTransitionWatcherDirective, AbstractDbxActionValueOnTriggerDirective, safeDetectChanges, DbxInjectionComponentModule, AbstractDbxActionHandlerDirective, provideActionStoreSource, isClickableFilterPreset, AbstractDbxAnchorDirective, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, AbstractIfDirective, DbxCoreFilterModule, asSegueRef, isSegueRefActive, DBX_INJECTION_COMPONENT_DATA, checkNgContentWrapperHasContent, tapSafeMarkForCheck, anchorTypeForAnchor, AnchorType, DbxCoreActionModule, isIdleActionState, canTriggerAction, onDbxAppAuth, SimpleStorageAccessorFactory } from '@dereekb/dbx-core';
9
9
  import ms from 'ms';
10
10
  import * as i1 from '@angular/common';
11
11
  import { CommonModule } from '@angular/common';
@@ -3512,23 +3512,26 @@ class DbxContentContainerDirective {
3512
3512
  constructor() {
3513
3513
  this.grow = 'wide';
3514
3514
  this.padding = 'normal';
3515
+ this.topPadding = 'none';
3515
3516
  }
3516
3517
  }
3517
3518
  DbxContentContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxContentContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3518
- DbxContentContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DbxContentContainerDirective, selector: "dbx-content-container,[dbxContentContainer],.dbx-content-container", inputs: { grow: "grow", padding: "padding" }, host: { properties: { "class": "\"container-\" + grow + \" container-padding-\" + padding" }, classAttribute: "d-block dbx-content-container" }, ngImport: i0 });
3519
+ DbxContentContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DbxContentContainerDirective, selector: "dbx-content-container,[dbxContentContainer],.dbx-content-container", inputs: { grow: "grow", padding: "padding", topPadding: "topPadding" }, host: { properties: { "class": "\"container-\" + grow + \" container-padding-\" + padding + \" container-top-padding-\" + topPadding" }, classAttribute: "d-block dbx-content-container" }, ngImport: i0 });
3519
3520
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxContentContainerDirective, decorators: [{
3520
3521
  type: Directive,
3521
3522
  args: [{
3522
3523
  selector: 'dbx-content-container,[dbxContentContainer],.dbx-content-container',
3523
3524
  host: {
3524
3525
  class: 'd-block dbx-content-container',
3525
- '[class]': `"container-" + grow + " container-padding-" + padding`
3526
+ '[class]': `"container-" + grow + " container-padding-" + padding + " container-top-padding-" + topPadding`
3526
3527
  }
3527
3528
  }]
3528
3529
  }], propDecorators: { grow: [{
3529
3530
  type: Input
3530
3531
  }], padding: [{
3531
3532
  type: Input
3533
+ }], topPadding: [{
3534
+ type: Input
3532
3535
  }] } });
3533
3536
 
3534
3537
  /**
@@ -4314,7 +4317,7 @@ class DbxTwoColumnComponent extends AbstractSubscriptionDirective {
4314
4317
  }
4315
4318
  }
4316
4319
  DbxTwoColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxTwoColumnComponent, deps: [{ token: TwoColumnsContextStore }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4317
- DbxTwoColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxTwoColumnComponent, selector: "dbx-two-column", inputs: { reverseSizing: "reverseSizing", inSectionPage: "inSectionPage" }, host: { properties: { "class": "{ 'right-shown': v.showRight, 'full-left': v.showFullLeft,'hide-left-column': v.hideLeftColumn, 'two-column-reverse-sizing': v.reverseSizing, 'dbx-section-page-two': v.inSectionPage }" }, classAttribute: "dbx-two-column" }, exportAs: ["columns"], usesInheritance: true, ngImport: i0, template: "<dbx-content-container grow=\"full\" padding=\"none\" class=\"dbx-content dbx-content-auto-height left-column\">\n <div *ngIf=\"!v.hideLeftColumn && v.reverseSizing\" (resized)=\"onResized($event)\"></div>\n <ng-content select=\"[left]\"></ng-content>\n</dbx-content-container>\n<dbx-content-container grow=\"full\" padding=\"none\" class=\"dbx-content dbx-content-auto-height right-column\" *ngIf=\"v.showRight\">\n <div *ngIf=\"v.hideLeftColumn || !v.reverseSizing\" (resized)=\"onResized($event)\"></div>\n <ng-content select=\"[right]\"></ng-content>\n</dbx-content-container>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: DbxContentContainerDirective, selector: "dbx-content-container,[dbxContentContainer],.dbx-content-container", inputs: ["grow", "padding"] }, { kind: "directive", type: i1$6.ResizedDirective, selector: "[resized]", outputs: ["resized"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4320
+ DbxTwoColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxTwoColumnComponent, selector: "dbx-two-column", inputs: { reverseSizing: "reverseSizing", inSectionPage: "inSectionPage" }, host: { properties: { "class": "{ 'right-shown': v.showRight, 'full-left': v.showFullLeft,'hide-left-column': v.hideLeftColumn, 'two-column-reverse-sizing': v.reverseSizing, 'dbx-section-page-two': v.inSectionPage }" }, classAttribute: "dbx-two-column" }, exportAs: ["columns"], usesInheritance: true, ngImport: i0, template: "<dbx-content-container grow=\"full\" padding=\"none\" class=\"dbx-content dbx-content-auto-height left-column\">\n <div *ngIf=\"!v.hideLeftColumn && v.reverseSizing\" (resized)=\"onResized($event)\"></div>\n <ng-content select=\"[left]\"></ng-content>\n</dbx-content-container>\n<dbx-content-container grow=\"full\" padding=\"none\" class=\"dbx-content dbx-content-auto-height right-column\" *ngIf=\"v.showRight\">\n <div *ngIf=\"v.hideLeftColumn || !v.reverseSizing\" (resized)=\"onResized($event)\"></div>\n <ng-content select=\"[right]\"></ng-content>\n</dbx-content-container>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: DbxContentContainerDirective, selector: "dbx-content-container,[dbxContentContainer],.dbx-content-container", inputs: ["grow", "padding", "topPadding"] }, { kind: "directive", type: i1$6.ResizedDirective, selector: "[resized]", outputs: ["resized"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4318
4321
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxTwoColumnComponent, decorators: [{
4319
4322
  type: Component,
4320
4323
  args: [{ selector: 'dbx-two-column', exportAs: 'columns', host: {
@@ -5333,7 +5336,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5333
5336
  * Loading View component that provides content sections for loading, error, and an error action.
5334
5337
  */
5335
5338
  class DbxLoadingComponent {
5336
- constructor() {
5339
+ constructor(cdRef) {
5340
+ this.cdRef = cdRef;
5337
5341
  this._context = new BehaviorSubject(undefined);
5338
5342
  this._inputLoading = new BehaviorSubject(true);
5339
5343
  this._inputError = new BehaviorSubject(undefined);
@@ -5347,7 +5351,7 @@ class DbxLoadingComponent {
5347
5351
  error: inputError
5348
5352
  };
5349
5353
  }
5350
- }), distinctUntilChanged((a, b) => a.loading === b.loading && a.error === b.error), shareReplay(1));
5354
+ }), distinctUntilChanged((a, b) => a.loading === b.loading && a.error === b.error), tapSafeMarkForCheck(this.cdRef), shareReplay(1));
5351
5355
  this.loading$ = this.state$.pipe(map((x) => x.loading), distinctUntilChanged(), shareReplay(1));
5352
5356
  this.error$ = this.state$.pipe(map((x) => x.error), distinctUntilChanged(), shareReplay(1));
5353
5357
  this.mode = 'indeterminate';
@@ -5377,7 +5381,7 @@ class DbxLoadingComponent {
5377
5381
  this._inputError.next(error);
5378
5382
  }
5379
5383
  }
5380
- DbxLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5384
+ DbxLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxLoadingComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5381
5385
  DbxLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxLoadingComponent, selector: "dbx-loading", inputs: { show: "show", text: "text", mode: "mode", color: "color", diameter: "diameter", linear: "linear", padding: "padding", context: "context", loading: "loading", error: "error" }, ngImport: i0, template: `
5382
5386
  <dbx-basic-loading [show]="show" [color]="color" [text]="text" [mode]="mode" [linear]="linear" [diameter]="diameter" [error]="error$ | async" [loading]="loading$ | async">
5383
5387
  <ng-content loading select="[loading]"></ng-content>
@@ -5386,7 +5390,7 @@ DbxLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
5386
5390
  <ng-content error select="[error]"></ng-content>
5387
5391
  <ng-content errorAction select="[errorAction]"></ng-content>
5388
5392
  </dbx-basic-loading>
5389
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
5393
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5390
5394
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxLoadingComponent, decorators: [{
5391
5395
  type: Component,
5392
5396
  args: [{
@@ -5399,9 +5403,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
5399
5403
  <ng-content error select="[error]"></ng-content>
5400
5404
  <ng-content errorAction select="[errorAction]"></ng-content>
5401
5405
  </dbx-basic-loading>
5402
- `
5406
+ `,
5407
+ changeDetection: ChangeDetectionStrategy.OnPush
5403
5408
  }]
5404
- }], propDecorators: { show: [{
5409
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { show: [{
5405
5410
  type: Input
5406
5411
  }], text: [{
5407
5412
  type: Input
@@ -8084,7 +8089,7 @@ DbxPromptPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
8084
8089
  <ng-content></ng-content>
8085
8090
  </div>
8086
8091
  </dbx-content-container>
8087
- `, isInline: true, dependencies: [{ kind: "directive", type: DbxContentContainerDirective, selector: "dbx-content-container,[dbxContentContainer],.dbx-content-container", inputs: ["grow", "padding"] }] });
8092
+ `, isInline: true, dependencies: [{ kind: "directive", type: DbxContentContainerDirective, selector: "dbx-content-container,[dbxContentContainer],.dbx-content-container", inputs: ["grow", "padding", "topPadding"] }] });
8088
8093
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxPromptPageComponent, decorators: [{
8089
8094
  type: Component,
8090
8095
  args: [{