@dereekb/dbx-web 2.1.0 → 4.0.1
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/action/action.confirm.directive.mjs +3 -3
- package/esm2020/lib/action/action.module.mjs +16 -7
- package/esm2020/lib/action/action.progress.component.mjs +20 -0
- package/esm2020/lib/action/index.mjs +2 -1
- package/esm2020/lib/action/key.trigger.directive.mjs +3 -3
- package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +5 -5
- package/esm2020/lib/action/snackbar/action.snackbar.directive.mjs +3 -3
- package/esm2020/lib/action/snackbar/action.snackbar.generator.mjs +5 -5
- package/esm2020/lib/action/snackbar/action.snackbar.module.mjs +4 -4
- package/esm2020/lib/action/snackbar/action.snackbar.service.mjs +3 -3
- package/esm2020/lib/action/transition/action.transition.module.mjs +4 -4
- package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +4 -4
- package/esm2020/lib/action/transition/transition.safety.directive.mjs +3 -3
- package/esm2020/lib/button/button.component.mjs +31 -12
- package/esm2020/lib/button/button.module.mjs +12 -12
- package/esm2020/lib/button/button.spacer.component.mjs +3 -3
- package/esm2020/lib/button/index.mjs +2 -1
- package/esm2020/lib/button/progress/bar.button.component.mjs +16 -0
- package/esm2020/lib/button/progress/base.progress.button.directive.mjs +104 -0
- package/esm2020/lib/button/progress/button.progress.config.mjs +3 -0
- package/esm2020/lib/button/progress/button.progress.module.mjs +61 -0
- package/esm2020/lib/button/progress/index.mjs +5 -0
- package/esm2020/lib/button/progress/spinner.button.component.mjs +40 -0
- package/esm2020/lib/dbx-web.module.mjs +10 -17
- package/esm2020/lib/error/error.action.directive.mjs +3 -3
- package/esm2020/lib/error/error.component.mjs +5 -5
- package/esm2020/lib/error/error.loading.directive.mjs +3 -3
- package/esm2020/lib/error/error.module.mjs +4 -4
- package/esm2020/lib/interaction/dialog/abstract.dialog.directive.mjs +6 -6
- package/esm2020/lib/interaction/dialog/dialog.action.directive.mjs +3 -3
- package/esm2020/lib/interaction/dialog/dialog.content.component.mjs +4 -4
- package/esm2020/lib/interaction/dialog/dialog.module.mjs +4 -4
- package/esm2020/lib/interaction/filter/filter.module.mjs +9 -9
- package/esm2020/lib/interaction/filter/filter.popover.button.component.mjs +3 -3
- package/esm2020/lib/interaction/filter/filter.popover.button.directive.mjs +3 -3
- package/esm2020/lib/interaction/filter/filter.popover.component.mjs +5 -5
- package/esm2020/lib/interaction/filter/filter.wrapper.component.mjs +3 -3
- package/esm2020/lib/interaction/interaction.module.mjs +4 -4
- package/esm2020/lib/interaction/popover/abstract.popover.directive.mjs +3 -3
- package/esm2020/lib/interaction/popover/abstract.popover.ref.directive.mjs +6 -6
- package/esm2020/lib/interaction/popover/popover.action.directive.mjs +3 -3
- package/esm2020/lib/interaction/popover/popover.component.mjs +9 -9
- package/esm2020/lib/interaction/popover/popover.content.component.mjs +3 -3
- package/esm2020/lib/interaction/popover/popover.controls.directive.mjs +3 -3
- package/esm2020/lib/interaction/popover/popover.coordinator.component.mjs +3 -3
- package/esm2020/lib/interaction/popover/popover.coordinator.service.mjs +11 -5
- package/esm2020/lib/interaction/popover/popover.header.component.mjs +3 -3
- package/esm2020/lib/interaction/popover/popover.module.mjs +13 -22
- package/esm2020/lib/interaction/popover/popover.scroll.content.component.mjs +3 -3
- package/esm2020/lib/interaction/popover/popover.service.mjs +3 -3
- package/esm2020/lib/interaction/popup/abstract.popup.directive.mjs +3 -3
- package/esm2020/lib/interaction/popup/popup.component.mjs +9 -9
- package/esm2020/lib/interaction/popup/popup.content.component.mjs +3 -3
- package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +4 -4
- package/esm2020/lib/interaction/popup/popup.controls.component.mjs +3 -3
- package/esm2020/lib/interaction/popup/popup.coordinator.component.mjs +3 -3
- package/esm2020/lib/interaction/popup/popup.coordinator.service.mjs +11 -5
- package/esm2020/lib/interaction/popup/popup.module.mjs +13 -22
- package/esm2020/lib/interaction/popup/popup.service.mjs +3 -3
- package/esm2020/lib/interaction/prompt/prompt.box.component.mjs +3 -3
- package/esm2020/lib/interaction/prompt/prompt.button.confirm.directive.mjs +3 -3
- package/esm2020/lib/interaction/prompt/prompt.component.mjs +3 -3
- package/esm2020/lib/interaction/prompt/prompt.confirm.component.mjs +3 -3
- package/esm2020/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +8 -8
- package/esm2020/lib/interaction/prompt/prompt.confirm.directive.mjs +6 -6
- package/esm2020/lib/interaction/prompt/prompt.module.mjs +9 -9
- package/esm2020/lib/interaction/prompt/prompt.page.component.mjs +3 -3
- package/esm2020/lib/keypress/keydown.listener.directive.mjs +3 -3
- package/esm2020/lib/keypress/keypress.module.mjs +4 -4
- package/esm2020/lib/layout/bar/bar.directive.mjs +3 -3
- package/esm2020/lib/layout/bar/bar.header.component.mjs +3 -3
- package/esm2020/lib/layout/bar/bar.layout.module.mjs +4 -4
- package/esm2020/lib/layout/bar/pagebar.component.mjs +3 -3
- package/esm2020/lib/layout/block/block.layout.module.mjs +9 -9
- package/esm2020/lib/layout/block/two.block.component.mjs +22 -10
- package/esm2020/lib/layout/card/card.box.component.mjs +3 -3
- package/esm2020/lib/layout/card/card.box.container.component.mjs +3 -3
- package/esm2020/lib/layout/card/card.box.layout.module.mjs +4 -4
- package/esm2020/lib/layout/column/column.layout.module.mjs +4 -4
- package/esm2020/lib/layout/column/one/one.column.component.mjs +9 -9
- package/esm2020/lib/layout/column/one/one.column.module.mjs +4 -4
- package/esm2020/lib/layout/column/two/index.mjs +2 -1
- package/esm2020/lib/layout/column/two/two.column.back.directive.mjs +8 -8
- package/esm2020/lib/layout/column/two/two.column.component.mjs +51 -14
- package/esm2020/lib/layout/column/two/two.column.context.directive.mjs +36 -0
- package/esm2020/lib/layout/column/two/two.column.full.left.directive.mjs +8 -8
- package/esm2020/lib/layout/column/two/two.column.head.component.mjs +8 -8
- package/esm2020/lib/layout/column/two/two.column.module.mjs +43 -38
- package/esm2020/lib/layout/column/two/two.column.right.component.mjs +11 -6
- package/esm2020/lib/layout/column/two/two.column.sref.directive.mjs +12 -17
- package/esm2020/lib/layout/column/two/two.column.store.mjs +8 -7
- package/esm2020/lib/layout/compact/compact.directive.mjs +3 -3
- package/esm2020/lib/layout/compact/compact.layout.module.mjs +4 -4
- package/esm2020/lib/layout/compact/compact.store.mjs +3 -3
- package/esm2020/lib/layout/content/content.border.directive.mjs +3 -3
- package/esm2020/lib/layout/content/content.box.directive.mjs +9 -5
- package/esm2020/lib/layout/content/content.container.directive.mjs +4 -4
- package/esm2020/lib/layout/content/content.directive.mjs +3 -3
- package/esm2020/lib/layout/content/content.elevate.directive.mjs +3 -3
- package/esm2020/lib/layout/content/content.layout.module.mjs +4 -4
- package/esm2020/lib/layout/content/content.page.directive.mjs +3 -3
- package/esm2020/lib/layout/flag/flag.component.mjs +3 -3
- package/esm2020/lib/layout/flag/flag.layout.module.mjs +4 -4
- package/esm2020/lib/layout/flag/flag.prompt.component.mjs +3 -3
- package/esm2020/lib/layout/flex/flex.group.directive.mjs +8 -4
- package/esm2020/lib/layout/flex/flex.layout.module.mjs +4 -4
- package/esm2020/lib/layout/flex/flex.size.directive.mjs +3 -3
- package/esm2020/lib/layout/item/item.icon.component.mjs +3 -3
- package/esm2020/lib/layout/item/item.layout.module.mjs +4 -4
- package/esm2020/lib/layout/layout.module.mjs +4 -4
- package/esm2020/lib/layout/list/index.mjs +5 -1
- package/esm2020/lib/layout/list/list.component.mjs +22 -9
- package/esm2020/lib/layout/list/list.content.empty.component.mjs +3 -3
- package/esm2020/lib/layout/list/list.directive.mjs +12 -10
- package/esm2020/lib/layout/list/list.layout.module.mjs +32 -18
- package/esm2020/lib/layout/list/list.view.directive.mjs +11 -4
- package/esm2020/lib/layout/list/list.view.mjs +1 -1
- package/esm2020/lib/layout/list/list.view.selection.directive.mjs +8 -7
- package/esm2020/lib/layout/list/list.view.value.component.mjs +57 -28
- package/esm2020/lib/layout/list/list.view.value.directive.mjs +18 -10
- package/esm2020/lib/layout/list/list.view.value.item.directive.mjs +7 -7
- package/esm2020/lib/layout/list/list.view.value.mjs +36 -24
- package/esm2020/lib/layout/list/list.view.value.modifier.directive.mjs +81 -0
- package/esm2020/lib/layout/list/list.view.value.modifier.mjs +15 -0
- package/esm2020/lib/layout/list/list.view.value.modifier.ripple.directive.mjs +45 -0
- package/esm2020/lib/layout/list/list.view.value.selection.component.mjs +57 -43
- package/esm2020/lib/layout/list/list.wrapper.mjs +13 -0
- package/esm2020/lib/layout/section/section.component.mjs +3 -3
- package/esm2020/lib/layout/section/section.header.component.mjs +3 -3
- package/esm2020/lib/layout/section/section.intro.component.mjs +3 -3
- package/esm2020/lib/layout/section/section.layout.module.mjs +9 -9
- package/esm2020/lib/layout/section/section.page.component.mjs +3 -3
- package/esm2020/lib/layout/section/subsection.component.mjs +3 -3
- package/esm2020/lib/layout/step/step.component.mjs +3 -3
- package/esm2020/lib/layout/step/step.layout.module.mjs +4 -4
- package/esm2020/lib/layout/style/spacer.directive.mjs +3 -3
- package/esm2020/lib/layout/style/style.body.directive.mjs +3 -3
- package/esm2020/lib/layout/style/style.directive.mjs +3 -3
- package/esm2020/lib/layout/style/style.layout.module.mjs +4 -4
- package/esm2020/lib/layout/style/style.service.mjs +6 -4
- package/esm2020/lib/layout/style/style.set.directive.mjs +5 -4
- package/esm2020/lib/layout/text/hint.component.mjs +3 -3
- package/esm2020/lib/layout/text/icon.spacer.component.mjs +3 -3
- package/esm2020/lib/layout/text/label.component.mjs +3 -3
- package/esm2020/lib/layout/text/linkify.component.mjs +3 -3
- package/esm2020/lib/layout/text/note.component.mjs +3 -3
- package/esm2020/lib/layout/text/notice.component.mjs +3 -3
- package/esm2020/lib/layout/text/ok.component.mjs +3 -3
- package/esm2020/lib/layout/text/success.component.mjs +3 -3
- package/esm2020/lib/layout/text/text.chips.component.mjs +3 -3
- package/esm2020/lib/layout/text/text.module.mjs +4 -4
- package/esm2020/lib/layout/text/warn.component.mjs +3 -3
- package/esm2020/lib/loading/basic-loading.component.mjs +3 -3
- package/esm2020/lib/loading/loading-progress.component.mjs +4 -4
- package/esm2020/lib/loading/loading.action.directive.mjs +3 -3
- package/esm2020/lib/loading/loading.component.mjs +3 -3
- package/esm2020/lib/loading/loading.module.mjs +4 -4
- package/esm2020/lib/router/layout/anchor/anchor.component.mjs +9 -5
- package/esm2020/lib/router/layout/anchor/anchor.content.component.mjs +3 -3
- package/esm2020/lib/router/layout/anchor/anchor.icon.component.mjs +3 -3
- package/esm2020/lib/router/layout/anchor/anchor.link.component.mjs +3 -3
- package/esm2020/lib/router/layout/anchor/anchor.module.mjs +10 -10
- package/esm2020/lib/router/layout/anchor/anchor.segue.directive.mjs +4 -4
- package/esm2020/lib/router/layout/anchorlist/anchorlist.component.mjs +5 -5
- package/esm2020/lib/router/layout/anchorlist/anchorlist.module.mjs +10 -10
- package/esm2020/lib/router/layout/index.mjs +2 -1
- package/esm2020/lib/router/layout/layout.module.mjs +23 -19
- package/esm2020/lib/router/layout/list/index.mjs +3 -0
- package/esm2020/lib/router/layout/list/list.module.mjs +21 -0
- package/esm2020/lib/router/layout/list/router.list.directive.mjs +42 -0
- package/esm2020/lib/router/layout/navbar/navbar.component.mjs +4 -4
- package/esm2020/lib/router/layout/navbar/navbar.module.mjs +10 -10
- package/esm2020/lib/router/layout/sidenav/sidenav.button.component.mjs +3 -3
- package/esm2020/lib/router/layout/sidenav/sidenav.component.mjs +3 -3
- package/esm2020/lib/router/layout/sidenav/sidenav.module.mjs +14 -14
- package/esm2020/lib/router/layout/sidenav/sidenav.page.component.mjs +7 -4
- package/esm2020/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +4 -4
- package/esm2020/lib/router/provider/ngrouter/anchor.component.mjs +5 -5
- package/esm2020/lib/router/provider/ngrouter/angular.router.module.mjs +9 -9
- package/esm2020/lib/router/provider/router.provider.config.mjs +1 -1
- package/esm2020/lib/router/provider/uirouter/anchor.component.mjs +5 -5
- package/esm2020/lib/router/provider/uirouter/uirouter.router.module.mjs +9 -9
- package/esm2020/lib/screen/screen.module.mjs +4 -4
- package/esm2020/lib/screen/screen.service.mjs +5 -4
- package/fesm2015/dereekb-dbx-web.mjs +1581 -972
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +1578 -970
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/action/action.module.d.ts +10 -8
- package/lib/action/action.progress.component.d.ts +5 -0
- package/lib/action/index.d.ts +1 -0
- package/lib/action/snackbar/action.snackbar.generator.d.ts +5 -5
- package/lib/button/_button.scss +21 -0
- package/lib/button/button.component.d.ts +7 -3
- package/lib/button/button.module.d.ts +2 -2
- package/lib/button/index.d.ts +1 -0
- package/lib/button/progress/bar.button.component.d.ts +6 -0
- package/lib/button/progress/bar.button.component.scss +23 -0
- package/lib/button/progress/base.progress.button.directive.d.ts +37 -0
- package/lib/button/progress/button.progress.config.d.ts +51 -0
- package/lib/button/progress/button.progress.module.d.ts +17 -0
- package/lib/button/progress/index.d.ts +4 -0
- package/lib/button/progress/spinner.button.component.d.ts +9 -0
- package/lib/button/progress/spinner.button.component.scss +44 -0
- package/lib/dbx-web.module.d.ts +1 -3
- package/lib/interaction/dialog/_dialog.scss +18 -2
- package/lib/interaction/dialog/abstract.dialog.directive.d.ts +1 -1
- package/lib/interaction/filter/filter.module.d.ts +1 -1
- package/lib/interaction/filter/filter.popover.component.d.ts +2 -2
- package/lib/interaction/popover/popover.component.d.ts +3 -3
- package/lib/interaction/popover/popover.coordinator.service.d.ts +3 -1
- package/lib/interaction/popover/popover.module.d.ts +1 -3
- package/lib/interaction/popup/popup.component.d.ts +3 -3
- package/lib/interaction/popup/popup.coordinator.service.d.ts +3 -1
- package/lib/interaction/popup/popup.module.d.ts +1 -3
- package/lib/interaction/prompt/prompt.confirm.dialog.component.d.ts +3 -3
- package/lib/interaction/prompt/prompt.module.d.ts +1 -1
- package/lib/layout/block/_block.scss +11 -8
- package/lib/layout/block/block.layout.module.d.ts +1 -1
- package/lib/layout/block/two.block.component.d.ts +5 -1
- package/lib/layout/column/_column.scss +119 -3
- package/lib/layout/column/two/index.d.ts +1 -0
- package/lib/layout/column/two/two.column.back.directive.d.ts +4 -4
- package/lib/layout/column/two/two.column.component.d.ts +23 -7
- package/lib/layout/column/two/two.column.context.directive.d.ts +18 -0
- package/lib/layout/column/two/two.column.full.left.directive.d.ts +4 -4
- package/lib/layout/column/two/two.column.head.component.d.ts +3 -3
- package/lib/layout/column/two/two.column.module.d.ts +7 -6
- package/lib/layout/column/two/two.column.right.component.d.ts +6 -4
- package/lib/layout/column/two/two.column.sref.directive.d.ts +6 -7
- package/lib/layout/column/two/two.column.store.d.ts +4 -3
- package/lib/layout/content/_content.scss +25 -3
- package/lib/layout/content/content.box.directive.d.ts +2 -1
- package/lib/layout/content/content.container.directive.d.ts +2 -2
- package/lib/layout/flex/_flex.scss +4 -0
- package/lib/layout/flex/flex.group.directive.d.ts +1 -0
- package/lib/layout/list/index.d.ts +4 -0
- package/lib/layout/list/list.component.d.ts +14 -5
- package/lib/layout/list/list.directive.d.ts +9 -7
- package/lib/layout/list/list.layout.module.d.ts +10 -8
- package/lib/layout/list/list.view.d.ts +11 -1
- package/lib/layout/list/list.view.directive.d.ts +4 -1
- package/lib/layout/list/list.view.selection.directive.d.ts +4 -3
- package/lib/layout/list/list.view.value.component.d.ts +18 -3
- package/lib/layout/list/list.view.value.d.ts +27 -11
- package/lib/layout/list/list.view.value.directive.d.ts +9 -6
- package/lib/layout/list/list.view.value.item.directive.d.ts +4 -4
- package/lib/layout/list/list.view.value.modifier.d.ts +12 -0
- package/lib/layout/list/list.view.value.modifier.directive.d.ts +37 -0
- package/lib/layout/list/list.view.value.modifier.ripple.directive.d.ts +17 -0
- package/lib/layout/list/list.view.value.selection.component.d.ts +10 -11
- package/lib/layout/list/list.wrapper.d.ts +11 -0
- package/lib/layout/section/section.layout.module.d.ts +1 -1
- package/lib/layout/style/_style.scss +12 -1
- package/lib/layout/text/_text.scss +9 -0
- package/lib/router/layout/anchor/_anchor.scss +5 -0
- package/lib/router/layout/anchor/anchor.component.d.ts +5 -4
- package/lib/router/layout/anchor/anchor.module.d.ts +4 -4
- package/lib/router/layout/anchor/anchor.segue.directive.d.ts +2 -2
- package/lib/router/layout/anchorlist/_anchorlist.scss +7 -0
- package/lib/router/layout/anchorlist/anchorlist.module.d.ts +4 -4
- package/lib/router/layout/index.d.ts +1 -0
- package/lib/router/layout/layout.module.d.ts +4 -3
- package/lib/router/layout/list/index.d.ts +2 -0
- package/lib/router/layout/list/list.module.d.ts +7 -0
- package/lib/router/layout/list/router.list.directive.d.ts +17 -0
- package/lib/router/layout/navbar/navbar.component.d.ts +4 -4
- package/lib/router/layout/navbar/navbar.module.d.ts +4 -4
- package/lib/router/layout/sidenav/sidenav.module.d.ts +4 -4
- package/lib/router/layout/sidenav/sidenav.page.component.d.ts +4 -2
- package/lib/router/provider/ngrouter/angular.router.module.d.ts +1 -1
- package/lib/router/provider/router.provider.config.d.ts +2 -2
- package/lib/router/provider/uirouter/uirouter.router.module.d.ts +1 -1
- package/lib/screen/screen.service.d.ts +2 -2
- package/lib/style/_config.scss +7 -1
- package/lib/style/_root-variables.scss +2 -0
- package/lib/style/_variables.scss +4 -0
- package/package.json +5 -23
- package/lib/layout/column/two.scss +0 -114
|
@@ -9,8 +9,12 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* The height is calculated from 100%.
|
|
10
10
|
*/
|
|
11
11
|
export declare class DbxTwoBlocksComponent {
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the top bar should be fixed in place instead of scrolling with the bottom when content is too tall.
|
|
14
|
+
*/
|
|
15
|
+
fixedTop: boolean;
|
|
12
16
|
twoElement: ElementRef;
|
|
13
17
|
onResized(event: ResizedEvent): void;
|
|
14
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoBlocksComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTwoBlocksComponent, "dbx-two-block", never, {}, {}, never, ["[top]", "*"]>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTwoBlocksComponent, "dbx-two-block", never, { "fixedTop": "fixedTop"; }, {}, never, ["[top]", "*"]>;
|
|
16
20
|
}
|
|
@@ -1,12 +1,128 @@
|
|
|
1
1
|
@use '../../style/theming';
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
|
-
|
|
4
|
+
$two-column-left-width-var: theming.$two-column-left-width-var;
|
|
5
|
+
$two-column-left-width: theming.$two-column-left-width;
|
|
6
|
+
$two-column-navbar-height: theming.$content-navbar-height;
|
|
7
|
+
$two-columns-right-padding-size: 6px;
|
|
5
8
|
|
|
6
9
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
10
|
+
@mixin core() {
|
|
11
|
+
|
|
12
|
+
.dbx-two-column {
|
|
13
|
+
height: 100%;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
overflow-x: hidden;
|
|
18
|
+
|
|
19
|
+
.dbx-content-container {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.left-column {
|
|
24
|
+
@include theming.elevation(1);
|
|
25
|
+
|
|
26
|
+
width: $two-column-left-width;
|
|
27
|
+
flex: 0 0 auto;
|
|
28
|
+
|
|
29
|
+
overflow: auto;
|
|
30
|
+
// background: red;
|
|
31
|
+
|
|
32
|
+
.two-column-reverse-sizing & {
|
|
33
|
+
width: calc(100% - #{$two-column-left-width});
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.full-left & {
|
|
38
|
+
width: 100% !important;
|
|
39
|
+
|
|
40
|
+
.right-shown & {
|
|
41
|
+
width: $two-column-left-width;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
.right-column {
|
|
48
|
+
flex: 1 1 auto;
|
|
49
|
+
max-width: calc(100% - #{$two-column-left-width});
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
|
|
52
|
+
.two-column-reverse-sizing & {
|
|
53
|
+
max-width: $two-column-left-width;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.dbx-two-column-head {
|
|
59
|
+
padding: 0 6px;
|
|
60
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.14);
|
|
61
|
+
height: $two-column-navbar-height;
|
|
62
|
+
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
overflow-y: hidden;
|
|
66
|
+
|
|
67
|
+
&.block {
|
|
68
|
+
display: block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.full {
|
|
72
|
+
padding: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
8
75
|
|
|
9
|
-
|
|
76
|
+
.dbx-two-column-right {
|
|
77
|
+
height: 100%;
|
|
78
|
+
|
|
79
|
+
.dbx-two-column-right-content {
|
|
80
|
+
height: calc(100% - #{$two-column-navbar-height});
|
|
81
|
+
overflow-x: hidden;
|
|
82
|
+
overflow-y: auto;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.back-button {
|
|
86
|
+
margin-right: $two-columns-right-padding-size;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.right-spacer {
|
|
90
|
+
padding-right: 5vw;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.side-spacer {
|
|
94
|
+
padding-left: $two-columns-right-padding-size;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@mixin color($theme-config) {
|
|
102
|
+
|
|
103
|
+
.dbx-two-column {
|
|
104
|
+
@include theming.if-small-screen($theme-config) {
|
|
105
|
+
.left-column {
|
|
106
|
+
width: 100% !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.right-column {
|
|
110
|
+
max-width: 100% !important;
|
|
111
|
+
width: 100% !important;
|
|
112
|
+
padding-left: 0 !important;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.dbx-two-column.right-shown {
|
|
118
|
+
@include theming.if-small-screen($theme-config) {
|
|
119
|
+
.left-column {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
}
|
|
10
126
|
|
|
11
127
|
@mixin typography($typography-config) {}
|
|
12
128
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './two.column.back.directive';
|
|
2
2
|
export * from './two.column.component';
|
|
3
|
+
export * from './two.column.context.directive';
|
|
3
4
|
export * from './two.column.full.left.directive';
|
|
4
5
|
export * from './two.column.head.component';
|
|
5
6
|
export * from './two.column.module';
|
|
@@ -3,14 +3,14 @@ import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
|
3
3
|
import { TwoColumnsContextStore } from './two.column.store';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
|
-
* Used with an
|
|
6
|
+
* Used with an DbxTwoColumnComponent to help respond to a "back" function.
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class DbxTwoColumnBackDirective extends AbstractSubscriptionDirective implements OnInit {
|
|
9
9
|
readonly twoColumnsContextStore: TwoColumnsContextStore;
|
|
10
10
|
back: EventEmitter<any>;
|
|
11
11
|
constructor(twoColumnsContextStore: TwoColumnsContextStore);
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
backClicked(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoColumnBackDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxTwoColumnBackDirective, "[dbxTwoColumnBack]", never, {}, { "back": "dbxTwoColumnBack"; }, never>;
|
|
16
16
|
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
1
4
|
import { Observable } from 'rxjs';
|
|
2
5
|
import { TwoColumnsContextStore } from './two.column.store';
|
|
3
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
export interface DbxTwoColumnViewState {
|
|
8
|
+
showRight: boolean;
|
|
9
|
+
showFullLeft: boolean;
|
|
10
|
+
reverseSizing: boolean;
|
|
11
|
+
inSectionPage: boolean;
|
|
12
|
+
}
|
|
4
13
|
/**
|
|
5
14
|
* Responsive component meant to split a left and right column.
|
|
6
15
|
*
|
|
@@ -8,14 +17,21 @@ import * as i0 from "@angular/core";
|
|
|
8
17
|
*
|
|
9
18
|
* Requires a TwoColumnsContextStore to be provided.
|
|
10
19
|
*/
|
|
11
|
-
export declare class
|
|
20
|
+
export declare class DbxTwoColumnComponent extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
|
|
12
21
|
readonly twoColumnsContextStore: TwoColumnsContextStore;
|
|
22
|
+
readonly cdRef: ChangeDetectorRef;
|
|
23
|
+
private _view;
|
|
24
|
+
private _reverseSizing;
|
|
25
|
+
private _inSectionPage;
|
|
13
26
|
readonly showRight$: Observable<boolean>;
|
|
14
|
-
readonly hideRight$: Observable<boolean>;
|
|
15
27
|
readonly showFullLeft$: Observable<boolean>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
readonly hideRight$: Observable<boolean>;
|
|
29
|
+
constructor(twoColumnsContextStore: TwoColumnsContextStore, cdRef: ChangeDetectorRef);
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
get v(): DbxTwoColumnViewState;
|
|
33
|
+
set reverseSizing(reverseSizing: boolean);
|
|
34
|
+
set inSectionPage(inSectionPage: boolean);
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoColumnComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTwoColumnComponent, "dbx-two-column", ["columns"], { "reverseSizing": "reverseSizing"; "inSectionPage": "inSectionPage"; }, {}, never, ["[left]", "[right]"]>;
|
|
21
37
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { TwoColumnsContextStore } from './two.column.store';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Provides a dbxTwoColumnContextStore
|
|
8
|
+
*/
|
|
9
|
+
export declare class DbxTwoColumnContextDirective implements OnInit, OnDestroy {
|
|
10
|
+
readonly twoColumnsContextStore: TwoColumnsContextStore;
|
|
11
|
+
private _showRight;
|
|
12
|
+
constructor(twoColumnsContextStore: TwoColumnsContextStore);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
set showRight(showRight: Maybe<boolean>);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoColumnContextDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxTwoColumnContextDirective, "[dbxTwoColumnContext]", never, { "showRight": "showRight"; }, {}, never>;
|
|
18
|
+
}
|
|
@@ -3,9 +3,9 @@ import { OnDestroy } from '@angular/core';
|
|
|
3
3
|
import { TwoColumnsContextStore } from './two.column.store';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
|
-
* Used with a
|
|
6
|
+
* Used with a DbxTwoColumnComponent to set the full left to true.
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class DbxTwoColumnFullLeftDirective implements OnInit, OnDestroy {
|
|
9
9
|
private readonly _twoColumnsContextStore;
|
|
10
10
|
private _fullLeft;
|
|
11
11
|
get fullLeft(): boolean;
|
|
@@ -13,6 +13,6 @@ export declare class DbxTwoColumnsFullLeftDirective implements OnInit, OnDestroy
|
|
|
13
13
|
constructor(_twoColumnsContextStore: TwoColumnsContextStore);
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
ngOnDestroy(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoColumnFullLeftDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxTwoColumnFullLeftDirective, "[dbxTwoColumnFullLeft]", never, { "fullLeft": "dbxTwoColumnFullLeft"; }, {}, never>;
|
|
18
18
|
}
|
|
@@ -2,9 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
/**
|
|
3
3
|
* Two Columns related component that sits at the top of the content bodies and wraps content.
|
|
4
4
|
*/
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class DbxTwoColumnColumnHeadComponent {
|
|
6
6
|
block?: boolean;
|
|
7
7
|
full?: boolean;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoColumnColumnHeadComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTwoColumnColumnHeadComponent, "dbx-two-column-head", never, { "block": "block"; "full": "full"; }, {}, never, ["*"]>;
|
|
10
10
|
}
|
|
@@ -5,13 +5,14 @@ import * as i3 from "./two.column.head.component";
|
|
|
5
5
|
import * as i4 from "./two.column.sref.directive";
|
|
6
6
|
import * as i5 from "./two.column.back.directive";
|
|
7
7
|
import * as i6 from "./two.column.full.left.directive";
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
8
|
+
import * as i7 from "./two.column.context.directive";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/material/icon";
|
|
11
|
+
import * as i10 from "@angular/material/button";
|
|
12
|
+
import * as i11 from "../../../router/layout/anchor/anchor.module";
|
|
13
|
+
import * as i12 from "../../content/content.layout.module";
|
|
13
14
|
export declare class DbxTwoColumnLayoutModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoColumnLayoutModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxTwoColumnLayoutModule, [typeof i1.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxTwoColumnLayoutModule, [typeof i1.DbxTwoColumnComponent, typeof i2.DbxTwoColumnRightComponent, typeof i3.DbxTwoColumnColumnHeadComponent, typeof i4.DbxTwoColumnSrefDirective, typeof i5.DbxTwoColumnBackDirective, typeof i6.DbxTwoColumnFullLeftDirective, typeof i7.DbxTwoColumnContextDirective], [typeof i8.CommonModule, typeof i9.MatIconModule, typeof i10.MatButtonModule, typeof i11.DbxRouterAnchorModule, typeof i12.DbxContentLayoutModule], [typeof i1.DbxTwoColumnComponent, typeof i2.DbxTwoColumnRightComponent, typeof i3.DbxTwoColumnColumnHeadComponent, typeof i4.DbxTwoColumnSrefDirective, typeof i5.DbxTwoColumnBackDirective, typeof i6.DbxTwoColumnFullLeftDirective, typeof i7.DbxTwoColumnContextDirective]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxTwoColumnLayoutModule>;
|
|
17
18
|
}
|
|
@@ -6,11 +6,13 @@ import { Maybe } from '@dereekb/util';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Optional responsive component that wraps content on the right side and shows a navigation bar.
|
|
9
|
+
*
|
|
10
|
+
* When rendered it will trigger the context to show left.
|
|
9
11
|
*/
|
|
10
|
-
export declare class
|
|
12
|
+
export declare class DbxTwoColumnRightComponent implements AfterViewInit, OnDestroy {
|
|
11
13
|
private readonly twoColumnsContextStore;
|
|
12
|
-
private _showBack;
|
|
13
14
|
header?: string;
|
|
15
|
+
private _showBack;
|
|
14
16
|
readonly ref$: Observable<Maybe<ClickableAnchor>>;
|
|
15
17
|
readonly showBack$: Observable<boolean>;
|
|
16
18
|
constructor(twoColumnsContextStore: TwoColumnsContextStore);
|
|
@@ -19,6 +21,6 @@ export declare class DbxTwoColumnsRightComponent implements AfterViewInit, OnDes
|
|
|
19
21
|
get showBack(): boolean;
|
|
20
22
|
set showBack(showBack: boolean);
|
|
21
23
|
backClicked(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoColumnRightComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTwoColumnRightComponent, "dbx-two-column-right", never, { "header": "header"; "showBack": "showBack"; }, {}, never, ["[nav]", "*"]>;
|
|
24
26
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SegueRefOrSegueRefRouterLink } from '@dereekb/dbx-core';
|
|
2
2
|
import { TwoColumnsContextStore } from './two.column.store';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
|
-
* Used with a
|
|
5
|
+
* Used with a DbxTwoColumnComponent to set the backRef of the TwoColumnsContextStore.
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class DbxTwoColumnSrefDirective {
|
|
8
8
|
private readonly _twoColumnsContextStore;
|
|
9
9
|
constructor(_twoColumnsContextStore: TwoColumnsContextStore);
|
|
10
|
-
set
|
|
11
|
-
|
|
12
|
-
static
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxTwoColumnsSrefDirective, "[dbxTwoColumnsSref]", never, { "refString": "dbxTwoColumnsSref"; "ref": "ref"; }, {}, never>;
|
|
10
|
+
set ref(ref: SegueRefOrSegueRefRouterLink);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTwoColumnSrefDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxTwoColumnSrefDirective, "[dbxTwoColumnSref]", never, { "ref": "dbxTwoColumnSref"; }, {}, never>;
|
|
14
13
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, Provider } from '@angular/core';
|
|
2
2
|
import { ComponentStore } from '@ngrx/component-store';
|
|
3
3
|
import { SegueRef } from '@dereekb/dbx-core';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export interface TwoColumnsState {
|
|
6
7
|
showRight: boolean;
|
|
@@ -47,11 +48,11 @@ export declare class TwoColumnsContextStore extends ComponentStore<TwoColumnsSta
|
|
|
47
48
|
/**
|
|
48
49
|
* Changes the state to show right or not.
|
|
49
50
|
*/
|
|
50
|
-
readonly setShowRight: (observableOrValue: boolean | import("rxjs").Observable<boolean
|
|
51
|
+
readonly setShowRight: (() => void) | ((observableOrValue: Maybe<boolean> | import("rxjs").Observable<Maybe<boolean>>) => import("rxjs").Subscription);
|
|
51
52
|
/**
|
|
52
|
-
* Sets the full left.
|
|
53
|
+
* Sets the full left. If undefined is passed, no change occurs.
|
|
53
54
|
*/
|
|
54
|
-
readonly setFullLeft: (observableOrValue: boolean | import("rxjs").Observable<boolean
|
|
55
|
+
readonly setFullLeft: (() => void) | ((observableOrValue: Maybe<boolean> | import("rxjs").Observable<Maybe<boolean>>) => import("rxjs").Subscription);
|
|
55
56
|
/**
|
|
56
57
|
* Sets the new back ref.
|
|
57
58
|
*/
|
|
@@ -32,6 +32,10 @@ $content-container-padding-small-screen: theming.$padding-2;
|
|
|
32
32
|
padding: $box-padding;
|
|
33
33
|
margin-bottom: $box-bottom-margin;
|
|
34
34
|
max-width: $box-max-width;
|
|
35
|
+
|
|
36
|
+
&.dbx-content-box-wide {
|
|
37
|
+
max-width: unset;
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
.dbx-app-page {
|
|
@@ -40,16 +44,22 @@ $content-container-padding-small-screen: theming.$padding-2;
|
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
.dbx-content,
|
|
43
|
-
.dbx-content-page {
|
|
47
|
+
.dbx-content-page {
|
|
48
|
+
//dbx-content page always has page height
|
|
44
49
|
@include theming.page-height();
|
|
45
50
|
}
|
|
46
51
|
|
|
47
|
-
.dbx-content .dbx-content,
|
|
52
|
+
.dbx-content .dbx-content,
|
|
53
|
+
// if a child of another dbx-content, give it content height instead of page height.
|
|
48
54
|
.dbx-content-page .dbx-content,
|
|
49
55
|
.dbx-content-without-content-navbar {
|
|
50
56
|
@include theming.content-height();
|
|
51
57
|
}
|
|
52
58
|
|
|
59
|
+
.dbx-content.dbx-content-auto-height {
|
|
60
|
+
height: 100% !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
.dbx-content-scroll-lock {
|
|
54
64
|
height: 100%;
|
|
55
65
|
overflow: hidden;
|
|
@@ -124,7 +134,19 @@ $content-container-padding-small-screen: theming.$padding-2;
|
|
|
124
134
|
.dbx-content-container {
|
|
125
135
|
|
|
126
136
|
@include theming.if-small-screen($theme-config) {
|
|
127
|
-
|
|
137
|
+
|
|
138
|
+
// reduce all paddings down.
|
|
139
|
+
&,
|
|
140
|
+
&.container-padding-min,
|
|
141
|
+
&.container-padding-small {
|
|
142
|
+
padding: 0 $content-container-padding-small-screen;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// no padding does not gain padding.
|
|
146
|
+
&.container-padding-none {
|
|
147
|
+
padding: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
128
150
|
}
|
|
129
151
|
|
|
130
152
|
}
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class DbxContentBoxDirective {
|
|
6
6
|
elevated: boolean;
|
|
7
|
+
wide: boolean;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentBoxDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentBoxDirective, "dbx-content-box, [dbx-content-box]", never, { "elevated": "elevated"; }, {}, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentBoxDirective, "dbx-content-box, [dbx-content-box]", never, { "elevated": "elevated"; "wide": "wide"; }, {}, never>;
|
|
9
10
|
}
|
|
@@ -5,8 +5,8 @@ export declare type DbxContentContainerWidth = 'small' | 'medium' | 'wide' | 'fu
|
|
|
5
5
|
* Component that limits the max-width of the content.
|
|
6
6
|
*/
|
|
7
7
|
export declare class DbxContentContainerDirective {
|
|
8
|
-
grow:
|
|
9
|
-
padding:
|
|
8
|
+
grow: DbxContentContainerWidth;
|
|
9
|
+
padding: DbxContentContainerPadding;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentContainerDirective, never>;
|
|
11
11
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentContainerDirective, "dbx-content-container,[dbx-content-container],.dbx-content-container", never, { "grow": "grow"; "padding": "padding"; }, {}, never>;
|
|
12
12
|
}
|
|
@@ -18,6 +18,7 @@ export declare class DbxFlexGroupDirective extends AbstractSubscriptionDirective
|
|
|
18
18
|
get small(): boolean;
|
|
19
19
|
constructor(_dbxScreenMediaService: DbxScreenMediaService, cdRef: ChangeDetectorRef);
|
|
20
20
|
ngOnInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
21
22
|
set breakpoint(breakpoint: Maybe<ScreenMediaWidthType>);
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFlexGroupDirective, never>;
|
|
23
24
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFlexGroupDirective, "[dbxFlexGroup]", never, { "content": "content"; "relative": "relative"; "breakpoint": "breakpoint"; }, {}, never>;
|
|
@@ -7,6 +7,10 @@ export * from './list.view.selection.directive';
|
|
|
7
7
|
export * from './list.view.value.component';
|
|
8
8
|
export * from './list.view.value.directive';
|
|
9
9
|
export * from './list.view.value.item.directive';
|
|
10
|
+
export * from './list.view.value.modifier';
|
|
11
|
+
export * from './list.view.value.modifier.directive';
|
|
12
|
+
export * from './list.view.value.modifier.ripple.directive';
|
|
10
13
|
export * from './list.view.value.selection.component';
|
|
11
14
|
export * from './list.view.value';
|
|
12
15
|
export * from './list.view';
|
|
16
|
+
export * from './list.wrapper';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { EventEmitter, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
4
4
|
import { ListLoadingStateContextInstance, ListLoadingState } from '@dereekb/rxjs';
|
|
5
5
|
import { Maybe, Milliseconds } from '@dereekb/util';
|
|
6
|
-
import { DbxListView, ListSelectionState } from './list.view';
|
|
6
|
+
import { DbxListSelectionMode, DbxListView, ListSelectionState } from './list.view';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Direction the scroll was triggered moving.
|
|
@@ -18,7 +18,7 @@ export declare type DbxListLoadMoreHandler = () => Observable<void> | void;
|
|
|
18
18
|
/**
|
|
19
19
|
* DbxListComponent configuration.
|
|
20
20
|
*/
|
|
21
|
-
export interface DbxListConfig<T = any, V extends DbxListView<T> = DbxListView<T>> extends
|
|
21
|
+
export interface DbxListConfig<T = any, V extends DbxListView<T> = DbxListView<T>> extends DbxInjectionComponentConfig<V> {
|
|
22
22
|
/**
|
|
23
23
|
* Whether or not to hide the list content when it is an empty list.
|
|
24
24
|
*/
|
|
@@ -47,6 +47,10 @@ export interface DbxListConfig<T = any, V extends DbxListView<T> = DbxListView<T
|
|
|
47
47
|
* (Optional) handler function to load more items.
|
|
48
48
|
*/
|
|
49
49
|
loadMore?: DbxListLoadMoreHandler;
|
|
50
|
+
/**
|
|
51
|
+
* Default selection list value. If not defined, will default to 'view'.
|
|
52
|
+
*/
|
|
53
|
+
defaultSelectionMode?: Maybe<DbxListSelectionMode>;
|
|
50
54
|
}
|
|
51
55
|
/**
|
|
52
56
|
* Used to display a potentially infinitely scrollable list of content.
|
|
@@ -64,23 +68,26 @@ export declare class DbxListComponent<T = any, V extends DbxListView<T> = DbxLis
|
|
|
64
68
|
contentScrolled: EventEmitter<number>;
|
|
65
69
|
private _content;
|
|
66
70
|
private _disabled;
|
|
71
|
+
private _selectionMode;
|
|
67
72
|
private _loadMoreTrigger;
|
|
68
73
|
private _scrollTrigger;
|
|
69
74
|
private _config;
|
|
70
75
|
private _loadMoreSub;
|
|
71
76
|
private _onClickSub;
|
|
72
77
|
private _disabledSub;
|
|
78
|
+
private _selectionModeSub;
|
|
73
79
|
private _onSelectionChangeSub;
|
|
74
80
|
readonly context: ListLoadingStateContextInstance<T, S>;
|
|
75
81
|
readonly isEmpty$: Observable<boolean>;
|
|
76
82
|
readonly disabled$: Observable<boolean>;
|
|
83
|
+
readonly selectionMode$: Observable<Maybe<DbxListSelectionMode>>;
|
|
77
84
|
readonly hideOnEmpty$: Observable<boolean>;
|
|
78
85
|
readonly invertedList$: Observable<boolean>;
|
|
79
86
|
readonly throttleScroll$: Observable<number>;
|
|
80
87
|
readonly scrollDistance$: Observable<number>;
|
|
81
88
|
readonly scrollLoadMoreTrigger$: Observable<DbxListScrollDirectionTrigger>;
|
|
82
89
|
readonly loadMore$: Observable<void | DbxListScrollDirectionTrigger>;
|
|
83
|
-
readonly injectedComponentConfig$: Observable<Maybe<
|
|
90
|
+
readonly injectedComponentConfig$: Observable<Maybe<DbxInjectionComponentConfig<V>>>;
|
|
84
91
|
readonly hideContent$: Observable<boolean>;
|
|
85
92
|
constructor(cdRef: ChangeDetectorRef);
|
|
86
93
|
ngOnDestroy(): void;
|
|
@@ -89,6 +96,8 @@ export declare class DbxListComponent<T = any, V extends DbxListView<T> = DbxLis
|
|
|
89
96
|
set config(config: Maybe<DbxListConfig<T, V>>);
|
|
90
97
|
get disabled(): boolean;
|
|
91
98
|
set disabled(disabled: Maybe<boolean>);
|
|
99
|
+
get selectionMode(): Maybe<DbxListSelectionMode>;
|
|
100
|
+
set selectionMode(selectionMode: Maybe<DbxListSelectionMode>);
|
|
92
101
|
getScrollPositionRelativeToBottom(): number;
|
|
93
102
|
jumpToBottom(): void;
|
|
94
103
|
jumpToPositionRelativeToBottom(pos: number): void;
|
|
@@ -99,7 +108,7 @@ export declare class DbxListComponent<T = any, V extends DbxListView<T> = DbxLis
|
|
|
99
108
|
get __content(): DbxListInternalContentDirective;
|
|
100
109
|
set __content(content: DbxListInternalContentDirective);
|
|
101
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxListComponent<any, any, any>, never>;
|
|
102
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxListComponent<any, any, any>, "dbx-list", never, { "padded": "padded"; "state$": "state$"; "config": "config"; "disabled": "disabled"; }, { "contentScrolled": "contentScrolled"; }, never, ["[top]", "[bottom]", "[empty]"]>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxListComponent<any, any, any>, "dbx-list", never, { "padded": "padded"; "state$": "state$"; "config": "config"; "disabled": "disabled"; "selectionMode": "selectionMode"; }, { "contentScrolled": "contentScrolled"; }, never, ["[top]", "[bottom]", "[empty]"]>;
|
|
103
112
|
}
|
|
104
113
|
/**
|
|
105
114
|
* Used internally by DbxListComponent
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { ListLoadingState,
|
|
1
|
+
import { ListLoadingState, ObservableOrValue } from '@dereekb/rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { EventEmitter, OnInit, OnDestroy } from "@angular/core";
|
|
4
4
|
import { DbxListConfig } from "./list.component";
|
|
5
|
-
import { DbxListView, ListSelectionState } from "./list.view";
|
|
5
|
+
import { DbxListSelectionMode, DbxListView, ListSelectionState } from "./list.view";
|
|
6
6
|
import { Maybe } from '@dereekb/util';
|
|
7
|
+
import { DbxListViewWrapper } from './list.wrapper';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare const DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE = "\n<dbx-list [config]=\"config\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n</dbx-list>\n";
|
|
9
|
-
export declare const DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE = "\n<dbx-list [state$]=\"state$\" [config]=\"config$ | async\" [disabled]=\"disabled\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n</dbx-list>\n";
|
|
10
|
+
export declare const DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE = "\n<dbx-list [state$]=\"state$\" [config]=\"config$ | async\" [disabled]=\"disabled\" [selectionMode]=\"selectionMode\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n</dbx-list>\n";
|
|
10
11
|
export interface DbxListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> extends Omit<DbxListConfig<T, V>, 'onClick' | 'loadMore'> {
|
|
11
12
|
}
|
|
12
|
-
export declare abstract class AbstractDbxListWrapperDirective<T, V extends DbxListView<T> = DbxListView<T>, C extends DbxListWrapperConfig<T, V> = DbxListWrapperConfig<T, V>, S extends ListLoadingState<T> = ListLoadingState<T>> implements OnInit, OnDestroy {
|
|
13
|
-
readonly initConfig:
|
|
13
|
+
export declare abstract class AbstractDbxListWrapperDirective<T, V extends DbxListView<T> = DbxListView<T>, C extends DbxListWrapperConfig<T, V> = DbxListWrapperConfig<T, V>, S extends ListLoadingState<T> = ListLoadingState<T>> implements OnInit, OnDestroy, DbxListViewWrapper<T, S> {
|
|
14
|
+
readonly initConfig: ObservableOrValue<C>;
|
|
14
15
|
private readonly _init;
|
|
15
16
|
readonly config$: Observable<DbxListConfig<T, V>>;
|
|
16
17
|
disabled?: Maybe<boolean>;
|
|
18
|
+
selectionMode?: Maybe<DbxListSelectionMode>;
|
|
17
19
|
state$?: Maybe<Observable<S>>;
|
|
18
20
|
clickItem: EventEmitter<T>;
|
|
19
21
|
loadMore: EventEmitter<void>;
|
|
20
|
-
constructor(initConfig:
|
|
22
|
+
constructor(initConfig: ObservableOrValue<C>);
|
|
21
23
|
ngOnInit(): void;
|
|
22
24
|
ngOnDestroy(): void;
|
|
23
25
|
protected _buildListConfig(config: C): DbxListConfig<T, V>;
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never>;
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never, never, { "disabled": "disabled"; "state$": "state$"; }, { "clickItem": "clickItem"; "loadMore": "loadMore"; }, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never, never, { "disabled": "disabled"; "selectionMode": "selectionMode"; "state$": "state$"; }, { "clickItem": "clickItem"; "loadMore": "loadMore"; }, never>;
|
|
26
28
|
}
|
|
27
29
|
export interface DbxSelectionListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> extends Omit<DbxListWrapperConfig<T, V>, 'onSelectionChange'> {
|
|
28
30
|
}
|
|
@@ -3,15 +3,17 @@ import * as i1 from "./list.component";
|
|
|
3
3
|
import * as i2 from "./list.content.empty.component";
|
|
4
4
|
import * as i3 from "./list.view.value.component";
|
|
5
5
|
import * as i4 from "./list.view.value.selection.component";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@
|
|
6
|
+
import * as i5 from "./list.view.value.modifier.directive";
|
|
7
|
+
import * as i6 from "./list.view.value.modifier.ripple.directive";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "../../loading/loading.module";
|
|
10
|
+
import * as i9 from "../../router/layout/anchor/anchor.module";
|
|
11
|
+
import * as i10 from "ngx-infinite-scroll";
|
|
12
|
+
import * as i11 from "@dereekb/dbx-core";
|
|
13
|
+
import * as i12 from "@angular/material/list";
|
|
14
|
+
import * as i13 from "@angular/material/icon";
|
|
13
15
|
export declare class DbxListLayoutModule {
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxListLayoutModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i1.DbxListInternalContentDirective, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i4.DbxSelectionValueListViewComponent, typeof i4.DbxSelectionValueListItemViewComponent
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i1.DbxListInternalContentDirective, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListItemViewComponent, typeof i4.DbxSelectionValueListViewComponent, typeof i4.DbxSelectionValueListItemViewComponent, typeof i5.DbxValueListItemModifierDirective, typeof i6.DbxListItemDisableRippleModifierDirective], [typeof i7.CommonModule, typeof i8.DbxLoadingModule, typeof i9.DbxRouterAnchorModule, typeof i10.InfiniteScrollModule, typeof i11.DbxInjectionComponentModule, typeof i12.MatListModule, typeof i13.MatIconModule], [typeof i1.DbxListComponent, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListItemViewComponent, typeof i4.DbxSelectionValueListViewComponent, typeof i4.DbxSelectionValueListItemViewComponent, typeof i5.DbxValueListItemModifierDirective, typeof i6.DbxListItemDisableRippleModifierDirective]>;
|
|
16
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxListLayoutModule>;
|
|
17
19
|
}
|