@dereekb/dbx-web 8.7.0 → 8.7.3
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/esm2020/lib/layout/column/two/two.column.context.directive.mjs +2 -2
- package/esm2020/lib/layout/column/two/two.column.sref.directive.mjs +2 -2
- package/esm2020/lib/layout/column/two/two.column.store.mjs +1 -1
- package/esm2020/lib/layout/section/section.component.mjs +1 -1
- package/esm2020/lib/layout/section/section.header.component.mjs +23 -7
- package/esm2020/lib/layout/section/section.page.component.mjs +17 -7
- package/esm2020/lib/layout/section/subsection.component.mjs +1 -1
- package/esm2020/lib/router/layout/sidenav/sidenav.page.component.mjs +5 -5
- package/fesm2015/dereekb-dbx-web.mjs +45 -19
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +45 -19
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/layout/column/two/two.column.context.directive.d.ts +1 -1
- package/lib/layout/column/two/two.column.sref.directive.d.ts +2 -1
- package/lib/layout/column/two/two.column.store.d.ts +3 -3
- package/lib/layout/section/_section.scss +76 -13
- package/lib/layout/section/section.header.component.d.ts +3 -1
- package/lib/layout/section/section.page.component.d.ts +6 -1
- package/lib/style/_mixin.scss +25 -2
- package/package.json +3 -3
|
@@ -1992,8 +1992,8 @@ class DbxSidenavPageComponent {
|
|
|
1992
1992
|
}
|
|
1993
1993
|
DbxSidenavPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxSidenavPageComponent, deps: [{ token: DbxSidenavComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
1994
1994
|
DbxSidenavPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxSidenavPageComponent, selector: "dbx-sidenav-page", inputs: { color: "color", mobileOnly: "mobileOnly" }, ngImport: i0, template: `
|
|
1995
|
-
<div>
|
|
1996
|
-
<dbx-sidenav-pagebar [color]="color"
|
|
1995
|
+
<div [ngClass]="(hidePagebar$ | async) ? 'dbx-pagebar-hide' : ''">
|
|
1996
|
+
<dbx-sidenav-pagebar [color]="color">
|
|
1997
1997
|
<ng-content left select="[navLeft]"></ng-content>
|
|
1998
1998
|
<ng-content select="[navRight]"></ng-content>
|
|
1999
1999
|
</dbx-sidenav-pagebar>
|
|
@@ -2007,8 +2007,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2007
2007
|
args: [{
|
|
2008
2008
|
selector: 'dbx-sidenav-page',
|
|
2009
2009
|
template: `
|
|
2010
|
-
<div>
|
|
2011
|
-
<dbx-sidenav-pagebar [color]="color"
|
|
2010
|
+
<div [ngClass]="(hidePagebar$ | async) ? 'dbx-pagebar-hide' : ''">
|
|
2011
|
+
<dbx-sidenav-pagebar [color]="color">
|
|
2012
2012
|
<ng-content left select="[navLeft]"></ng-content>
|
|
2013
2013
|
<ng-content select="[navRight]"></ng-content>
|
|
2014
2014
|
</dbx-sidenav-pagebar>
|
|
@@ -2630,7 +2630,7 @@ class DbxTwoColumnContextDirective {
|
|
|
2630
2630
|
this._showRight.complete();
|
|
2631
2631
|
}
|
|
2632
2632
|
set showRight(showRight) {
|
|
2633
|
-
this._showRight.next(showRight);
|
|
2633
|
+
this._showRight.next(Boolean(showRight));
|
|
2634
2634
|
}
|
|
2635
2635
|
}
|
|
2636
2636
|
DbxTwoColumnContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxTwoColumnContextDirective, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -2716,7 +2716,7 @@ class DbxTwoColumnSrefDirective {
|
|
|
2716
2716
|
this._twoColumnsContextStore = _twoColumnsContextStore;
|
|
2717
2717
|
}
|
|
2718
2718
|
set ref(ref) {
|
|
2719
|
-
const segueRef = asSegueRef(ref);
|
|
2719
|
+
const segueRef = ref ? asSegueRef(ref) : undefined;
|
|
2720
2720
|
this._twoColumnsContextStore.setBackRef(segueRef);
|
|
2721
2721
|
}
|
|
2722
2722
|
}
|
|
@@ -4559,12 +4559,15 @@ function provideDbxListViewWrapper(sourceType) {
|
|
|
4559
4559
|
* Component used to style a section's header.
|
|
4560
4560
|
*/
|
|
4561
4561
|
class DbxSectionHeaderComponent {
|
|
4562
|
+
constructor() {
|
|
4563
|
+
this.onlyHeader = false;
|
|
4564
|
+
}
|
|
4562
4565
|
get showTitle() {
|
|
4563
4566
|
return Boolean(this.header || this.icon);
|
|
4564
4567
|
}
|
|
4565
4568
|
}
|
|
4566
4569
|
DbxSectionHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxSectionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4567
|
-
DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxSectionHeaderComponent, selector: "dbx-section-header,.dbx-section-header", inputs: { h: "h", header: "header", icon: "icon", hint: "hint" }, ngImport: i0, template: `
|
|
4570
|
+
DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxSectionHeaderComponent, selector: "dbx-section-header,.dbx-section-header", inputs: { h: "h", header: "header", onlyHeader: "onlyHeader", icon: "icon", hint: "hint", hintInline: "hintInline" }, host: { properties: { "class.dbx-section-header-full-title": "onlyHeader" } }, ngImport: i0, template: `
|
|
4568
4571
|
<div class="dbx-section-header-content">
|
|
4569
4572
|
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
4570
4573
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
@@ -4586,10 +4589,13 @@ DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4586
4589
|
<span class="spacer"></span>
|
|
4587
4590
|
<ng-content></ng-content>
|
|
4588
4591
|
</div>
|
|
4589
|
-
<p *ngIf="hint" class="dbx-section-hint dbx-hint">{{ hint }}</p>
|
|
4592
|
+
<p *ngIf="hint && !hintInline" class="dbx-section-hint dbx-hint">{{ hint }}</p>
|
|
4590
4593
|
<ng-template #headerContentTitleTemplate>
|
|
4591
4594
|
<mat-icon *ngIf="icon">{{ icon }}</mat-icon>
|
|
4592
|
-
<span class="title-text">
|
|
4595
|
+
<span class="title-text">
|
|
4596
|
+
{{ header }}
|
|
4597
|
+
<span *ngIf="hint && hintInline" class="dbx-section-hint-inline dbx-hint">{{ hint }}</span>
|
|
4598
|
+
</span>
|
|
4593
4599
|
</ng-template>
|
|
4594
4600
|
`, isInline: true, components: [{ type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4595
4601
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxSectionHeaderComponent, decorators: [{
|
|
@@ -4618,21 +4624,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4618
4624
|
<span class="spacer"></span>
|
|
4619
4625
|
<ng-content></ng-content>
|
|
4620
4626
|
</div>
|
|
4621
|
-
<p *ngIf="hint" class="dbx-section-hint dbx-hint">{{ hint }}</p>
|
|
4627
|
+
<p *ngIf="hint && !hintInline" class="dbx-section-hint dbx-hint">{{ hint }}</p>
|
|
4622
4628
|
<ng-template #headerContentTitleTemplate>
|
|
4623
4629
|
<mat-icon *ngIf="icon">{{ icon }}</mat-icon>
|
|
4624
|
-
<span class="title-text">
|
|
4630
|
+
<span class="title-text">
|
|
4631
|
+
{{ header }}
|
|
4632
|
+
<span *ngIf="hint && hintInline" class="dbx-section-hint-inline dbx-hint">{{ hint }}</span>
|
|
4633
|
+
</span>
|
|
4625
4634
|
</ng-template>
|
|
4626
|
-
|
|
4635
|
+
`,
|
|
4636
|
+
host: {
|
|
4637
|
+
'[class.dbx-section-header-full-title]': 'onlyHeader'
|
|
4638
|
+
}
|
|
4627
4639
|
}]
|
|
4628
4640
|
}], propDecorators: { h: [{
|
|
4629
4641
|
type: Input
|
|
4630
4642
|
}], header: [{
|
|
4631
4643
|
type: Input
|
|
4644
|
+
}], onlyHeader: [{
|
|
4645
|
+
type: Input
|
|
4632
4646
|
}], icon: [{
|
|
4633
4647
|
type: Input
|
|
4634
4648
|
}], hint: [{
|
|
4635
4649
|
type: Input
|
|
4650
|
+
}], hintInline: [{
|
|
4651
|
+
type: Input
|
|
4636
4652
|
}] } });
|
|
4637
4653
|
|
|
4638
4654
|
/**
|
|
@@ -4652,7 +4668,7 @@ DbxSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
4652
4668
|
<div class="dbx-section-content">
|
|
4653
4669
|
<ng-content></ng-content>
|
|
4654
4670
|
</div>
|
|
4655
|
-
`, isInline: true, components: [{ type: DbxSectionHeaderComponent, selector: "dbx-section-header,.dbx-section-header", inputs: ["h", "header", "icon", "hint"] }] });
|
|
4671
|
+
`, isInline: true, components: [{ type: DbxSectionHeaderComponent, selector: "dbx-section-header,.dbx-section-header", inputs: ["h", "header", "onlyHeader", "icon", "hint", "hintInline"] }] });
|
|
4656
4672
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxSectionComponent, decorators: [{
|
|
4657
4673
|
type: Component,
|
|
4658
4674
|
args: [{
|
|
@@ -4750,7 +4766,7 @@ DbxSubSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
4750
4766
|
<ng-content></ng-content>
|
|
4751
4767
|
</div>
|
|
4752
4768
|
</div>
|
|
4753
|
-
`, isInline: true, components: [{ type: DbxSectionHeaderComponent, selector: "dbx-section-header,.dbx-section-header", inputs: ["h", "header", "icon", "hint"] }] });
|
|
4769
|
+
`, isInline: true, components: [{ type: DbxSectionHeaderComponent, selector: "dbx-section-header,.dbx-section-header", inputs: ["h", "header", "onlyHeader", "icon", "hint", "hintInline"] }] });
|
|
4754
4770
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxSubSectionComponent, decorators: [{
|
|
4755
4771
|
type: Component,
|
|
4756
4772
|
args: [{
|
|
@@ -4770,32 +4786,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4770
4786
|
|
|
4771
4787
|
/**
|
|
4772
4788
|
* Component used to style a page that is made up of app sections.
|
|
4789
|
+
*
|
|
4790
|
+
* Should be used on pages that need a section page heading.
|
|
4791
|
+
*
|
|
4792
|
+
* Can be nested within eachother, retaining the proper fixed height.
|
|
4773
4793
|
*/
|
|
4774
4794
|
class DbxSectionPageComponent extends DbxSectionHeaderComponent {
|
|
4795
|
+
constructor() {
|
|
4796
|
+
super(...arguments);
|
|
4797
|
+
this.hintInline = true;
|
|
4798
|
+
}
|
|
4775
4799
|
}
|
|
4776
4800
|
DbxSectionPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxSectionPageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4777
|
-
DbxSectionPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxSectionPageComponent, selector: "dbx-section-page", usesInheritance: true, ngImport: i0, template: `
|
|
4801
|
+
DbxSectionPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxSectionPageComponent, selector: "dbx-section-page", inputs: { hintInline: "hintInline" }, usesInheritance: true, ngImport: i0, template: `
|
|
4778
4802
|
<div class="dbx-content-page dbx-section-page">
|
|
4779
|
-
<div class="dbx-section-header" [h]="h ?? 2" [header]="header" [icon]="icon" [hint]="hint">
|
|
4803
|
+
<div class="dbx-section-header" [h]="h ?? 2" [header]="header" [onlyHeader]="onlyHeader" [icon]="icon" [hint]="hint" [hintInline]="true">
|
|
4780
4804
|
<ng-content select="[sectionHeader]"></ng-content>
|
|
4781
4805
|
</div>
|
|
4782
4806
|
<ng-content></ng-content>
|
|
4783
4807
|
</div>
|
|
4784
|
-
`, isInline: true, components: [{ type: DbxSectionHeaderComponent, selector: "dbx-section-header,.dbx-section-header", inputs: ["h", "header", "icon", "hint"] }] });
|
|
4808
|
+
`, isInline: true, components: [{ type: DbxSectionHeaderComponent, selector: "dbx-section-header,.dbx-section-header", inputs: ["h", "header", "onlyHeader", "icon", "hint", "hintInline"] }] });
|
|
4785
4809
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxSectionPageComponent, decorators: [{
|
|
4786
4810
|
type: Component,
|
|
4787
4811
|
args: [{
|
|
4788
4812
|
selector: 'dbx-section-page',
|
|
4789
4813
|
template: `
|
|
4790
4814
|
<div class="dbx-content-page dbx-section-page">
|
|
4791
|
-
<div class="dbx-section-header" [h]="h ?? 2" [header]="header" [icon]="icon" [hint]="hint">
|
|
4815
|
+
<div class="dbx-section-header" [h]="h ?? 2" [header]="header" [onlyHeader]="onlyHeader" [icon]="icon" [hint]="hint" [hintInline]="true">
|
|
4792
4816
|
<ng-content select="[sectionHeader]"></ng-content>
|
|
4793
4817
|
</div>
|
|
4794
4818
|
<ng-content></ng-content>
|
|
4795
4819
|
</div>
|
|
4796
4820
|
`
|
|
4797
4821
|
}]
|
|
4798
|
-
}]
|
|
4822
|
+
}], propDecorators: { hintInline: [{
|
|
4823
|
+
type: Input
|
|
4824
|
+
}] } });
|
|
4799
4825
|
|
|
4800
4826
|
/**
|
|
4801
4827
|
* Module for container-type components.
|