@dereekb/dbx-web 2.0.0 → 4.0.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/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 +9 -6
- package/esm2020/lib/interaction/dialog/dialog.action.directive.mjs +41 -0
- package/esm2020/lib/interaction/dialog/dialog.content.component.mjs +4 -4
- package/esm2020/lib/interaction/dialog/dialog.module.mjs +12 -7
- package/esm2020/lib/interaction/dialog/index.mjs +2 -1
- 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/index.mjs +1 -2
- package/esm2020/lib/interaction/popover/popover.action.directive.mjs +18 -56
- 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 +17 -31
- 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 +31 -9
- 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 +1718 -1110
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +1712 -1105
- 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 +2 -1
- package/lib/interaction/dialog/dialog.action.directive.d.ts +21 -0
- package/lib/interaction/dialog/dialog.module.d.ts +4 -3
- package/lib/interaction/dialog/index.d.ts +1 -0
- 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/index.d.ts +0 -1
- package/lib/interaction/popover/popover.action.directive.d.ts +14 -23
- 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 +20 -23
- 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 +10 -0
- package/lib/router/layout/anchor/anchor.component.d.ts +5 -4
- package/lib/router/layout/anchor/anchor.content.component.d.ts +14 -3
- 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 +25 -45
- package/esm2020/lib/interaction/popover/popover.action.button.directive.mjs +0 -29
- package/lib/interaction/popover/popover.action.button.directive.d.ts +0 -14
- package/lib/layout/column/two.scss +0 -114
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./key.trigger.directive";
|
|
3
3
|
import * as i2 from "./action.confirm.directive";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "
|
|
4
|
+
import * as i3 from "./action.progress.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@dereekb/dbx-core";
|
|
7
|
+
import * as i6 from "../button/button.module";
|
|
8
|
+
import * as i7 from "../loading/loading.module";
|
|
9
|
+
import * as i8 from "@angular/material/snack-bar";
|
|
10
|
+
import * as i9 from "@angular/material/dialog";
|
|
11
|
+
import * as i10 from "@angular/material/button";
|
|
12
|
+
import * as i11 from "../interaction/prompt/prompt.module";
|
|
11
13
|
export declare class DbxActionModule {
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxActionModule, [typeof i1.DbxActionKeyTriggerDirective, typeof i2.DbxActionConfirmDirective], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxActionModule, [typeof i1.DbxActionKeyTriggerDirective, typeof i2.DbxActionConfirmDirective, typeof i3.DbxActionProgressComponent], [typeof i4.CommonModule, typeof i5.DbxCoreActionModule, typeof i6.DbxButtonModule, typeof i7.DbxLoadingModule, typeof i8.MatSnackBarModule, typeof i9.MatDialogModule, typeof i10.MatButtonModule, typeof i11.DbxPromptModule], [typeof i5.DbxCoreActionModule, typeof i1.DbxActionKeyTriggerDirective, typeof i2.DbxActionConfirmDirective, typeof i3.DbxActionProgressComponent]>;
|
|
14
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxActionModule>;
|
|
15
17
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DbxActionProgressComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionProgressComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxActionProgressComponent, "dbx-action-progress", never, {}, {}, never, never>;
|
|
5
|
+
}
|
package/lib/action/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DbxActionContextSourceReference } from "@dereekb/dbx-core";
|
|
2
|
-
import { Milliseconds, Maybe,
|
|
2
|
+
import { Milliseconds, Maybe, GetterOrValue, Getter } from "@dereekb/util";
|
|
3
3
|
import { DbxActionSnackbarDisplayConfig, DbxActionSnackbarEvent } from "./action.snackbar";
|
|
4
4
|
export interface DbxActionSnackbarGeneratorInput<O = any> {
|
|
5
5
|
event: DbxActionSnackbarEvent<O>;
|
|
@@ -12,10 +12,10 @@ export interface DbxActionSnackbarGeneratorUndoInputConfig {
|
|
|
12
12
|
}
|
|
13
13
|
export declare type DbxActionSnackbarDisplayConfigGeneratorFunction<O = any> = (input: DbxActionSnackbarGeneratorInput<O>) => Maybe<DbxActionSnackbarDisplayConfig>;
|
|
14
14
|
export interface DbxMakeActionSnackbarGeneratorConfiguration {
|
|
15
|
-
idle?:
|
|
16
|
-
loading?:
|
|
17
|
-
success?:
|
|
18
|
-
error?:
|
|
15
|
+
idle?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
|
|
16
|
+
loading?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
|
|
17
|
+
success?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
|
|
18
|
+
error?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
|
|
19
19
|
}
|
|
20
20
|
export interface DbxMakeActionSnackbarGeneratorEventConfiguration extends Omit<DbxActionSnackbarDisplayConfig, 'action'> {
|
|
21
21
|
/**
|
package/lib/button/_button.scss
CHANGED
|
@@ -6,10 +6,31 @@ $button-spacer-width: 6px;
|
|
|
6
6
|
// MARK: Mixin
|
|
7
7
|
@mixin core() {
|
|
8
8
|
|
|
9
|
+
.dbx-wide-button {
|
|
10
|
+
.dbx-button {
|
|
11
|
+
min-width: 120px;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dbx-grow-button {
|
|
17
|
+
width: 100%;
|
|
18
|
+
|
|
19
|
+
.dbx-button {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
9
24
|
.dbx-button-spacer {
|
|
10
25
|
padding-right: $button-spacer-width;
|
|
11
26
|
}
|
|
12
27
|
|
|
28
|
+
.dbx-spinner-custom.mat-progress-spinner.mat-accent circle,
|
|
29
|
+
.dbx-spinner-custom.mat-spinner.mat-accent circle {
|
|
30
|
+
// mat-spinners marked with dbx-spinner-custom should allow the stroke to be inherited.
|
|
31
|
+
stroke: unset !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
13
34
|
}
|
|
14
35
|
|
|
15
36
|
@mixin color($theme-config) {}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ThemePalette } from '@angular/material/core';
|
|
2
2
|
import { AbstractDbxButtonDirective } from '@dereekb/dbx-core';
|
|
3
|
-
import {
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { DbxProgressButtonOptions } from './progress/button.progress.config';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare enum DbxButtonDisplayType {
|
|
6
7
|
RAISED = 0,
|
|
@@ -19,7 +20,10 @@ export declare class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
|
19
20
|
get flat(): boolean;
|
|
20
21
|
set flat(flat: boolean);
|
|
21
22
|
color: ThemePalette;
|
|
22
|
-
|
|
23
|
+
customButtonColor: Maybe<string>;
|
|
24
|
+
customTextColor: Maybe<string>;
|
|
25
|
+
customSpinnerColor: Maybe<string>;
|
|
26
|
+
get btnOptions(): DbxProgressButtonOptions;
|
|
23
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxButtonComponent, "dbx-button", never, { "type": "type"; "raised": "raised"; "stroked": "stroked"; "flat": "flat"; "color": "color"; }, {}, never,
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxButtonComponent, "dbx-button", never, { "type": "type"; "raised": "raised"; "stroked": "stroked"; "flat": "flat"; "color": "color"; "customButtonColor": "customButtonColor"; "customTextColor": "customTextColor"; "customSpinnerColor": "customSpinnerColor"; }, {}, never, ["*"]>;
|
|
25
29
|
}
|
|
@@ -2,10 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./button.component";
|
|
3
3
|
import * as i2 from "./button.spacer.component";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "
|
|
5
|
+
import * as i4 from "./progress/button.progress.module";
|
|
6
6
|
import * as i5 from "@dereekb/dbx-core";
|
|
7
7
|
export declare class DbxButtonModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxButtonModule, [typeof i1.DbxButtonComponent, typeof i2.DbxButtonSpacerDirective], [typeof i3.CommonModule, typeof i4.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxButtonModule, [typeof i1.DbxButtonComponent, typeof i2.DbxButtonSpacerDirective], [typeof i3.CommonModule, typeof i4.DbxProgressButtonsModule], [typeof i5.DbxCoreButtonModule, typeof i4.DbxProgressButtonsModule, typeof i1.DbxButtonComponent, typeof i2.DbxButtonSpacerDirective]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxButtonModule>;
|
|
11
11
|
}
|
package/lib/button/index.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AbstractProgressButtonDirective } from './base.progress.button.directive';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DbxBarButtonComponent extends AbstractProgressButtonDirective {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxBarButtonComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxBarButtonComponent, "dbx-bar-button", never, {}, {}, never, ["*"]>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
button {
|
|
3
|
+
&.working {
|
|
4
|
+
cursor: not-allowed;
|
|
5
|
+
}
|
|
6
|
+
&.fullWidth {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
.bar {
|
|
10
|
+
position:absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
}
|
|
14
|
+
mat-icon {
|
|
15
|
+
padding-right: 5px;
|
|
16
|
+
&.is-mat-icon {
|
|
17
|
+
font-size: 18px;
|
|
18
|
+
position: relative;
|
|
19
|
+
top: 3px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { DbxProgressButtonGlobalConfig, DbxProgressButtonOptions } from './button.progress.config';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare abstract class AbstractProgressButtonDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
|
|
9
|
+
private globalConfig;
|
|
10
|
+
readonly cdRef: ChangeDetectorRef;
|
|
11
|
+
private _computedOptions;
|
|
12
|
+
private _working;
|
|
13
|
+
private _disabled;
|
|
14
|
+
private _buttonId;
|
|
15
|
+
private _options;
|
|
16
|
+
readonly globalOptions$: Observable<Maybe<DbxProgressButtonOptions>>;
|
|
17
|
+
readonly options$: Observable<DbxProgressButtonOptions>;
|
|
18
|
+
readonly btnClick: EventEmitter<MouseEvent>;
|
|
19
|
+
constructor(globalConfig: DbxProgressButtonGlobalConfig, cdRef: ChangeDetectorRef);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
handleClick(event: MouseEvent): void;
|
|
23
|
+
get options(): DbxProgressButtonOptions;
|
|
24
|
+
get customSpinnerStyle(): {
|
|
25
|
+
stroke: string;
|
|
26
|
+
} | undefined;
|
|
27
|
+
set options(options: DbxProgressButtonOptions);
|
|
28
|
+
set buttonId(buttonId: string);
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
32
|
+
set active(active: boolean);
|
|
33
|
+
set working(working: boolean);
|
|
34
|
+
set disabled(disabled: boolean);
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractProgressButtonDirective, [{ optional: true; }, null]>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractProgressButtonDirective, never, never, { "options": "options"; "buttonId": "buttonId"; "active": "active"; "working": "working"; "disabled": "disabled"; }, { "btnClick": "btnClick"; }, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ThemePalette } from '@angular/material/core';
|
|
3
|
+
import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
5
|
+
export interface DbxProgressButtonOptions {
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated alias for working
|
|
8
|
+
*/
|
|
9
|
+
active?: boolean;
|
|
10
|
+
working?: boolean;
|
|
11
|
+
text?: string;
|
|
12
|
+
spinnerText?: string;
|
|
13
|
+
buttonColor?: ThemePalette;
|
|
14
|
+
spinnerColor?: ThemePalette;
|
|
15
|
+
barColor?: ThemePalette;
|
|
16
|
+
raised?: boolean;
|
|
17
|
+
stroked?: boolean;
|
|
18
|
+
flat?: boolean;
|
|
19
|
+
fab?: boolean;
|
|
20
|
+
spinnerSize?: number;
|
|
21
|
+
spinnerRatio?: number;
|
|
22
|
+
mode?: ProgressSpinnerMode;
|
|
23
|
+
value?: number;
|
|
24
|
+
fullWidth?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
icon?: DbxProgressButtonIcon;
|
|
27
|
+
type?: string;
|
|
28
|
+
customStyle?: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
};
|
|
31
|
+
customClass?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Custom spinner color. Overrides the normal spinner color if provided.
|
|
34
|
+
*/
|
|
35
|
+
customSpinnerColor?: Maybe<string>;
|
|
36
|
+
buttonIcon?: DbxProgressButtonIcon;
|
|
37
|
+
id?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface DbxProgressButtonIcon {
|
|
40
|
+
color?: ThemePalette;
|
|
41
|
+
fontIcon?: string;
|
|
42
|
+
fontSet?: string;
|
|
43
|
+
inline?: boolean;
|
|
44
|
+
svgIcon?: string;
|
|
45
|
+
customClass?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface DbxProgressButtonTargetedConfig extends DbxProgressButtonOptions {
|
|
48
|
+
id?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare type DbxProgressButtonGlobalConfig = DbxProgressButtonTargetedConfig[];
|
|
51
|
+
export declare const DBX_MAT_PROGRESS_BUTTON_GLOBAL_CONFIG: InjectionToken<DbxProgressButtonGlobalConfig>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { DbxProgressButtonGlobalConfig } from './button.progress.config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./spinner.button.component";
|
|
5
|
+
import * as i2 from "./bar.button.component";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/material/button";
|
|
8
|
+
import * as i5 from "@angular/material/progress-bar";
|
|
9
|
+
import * as i6 from "@angular/material/progress-spinner";
|
|
10
|
+
import * as i7 from "@angular/material/core";
|
|
11
|
+
import * as i8 from "@angular/material/icon";
|
|
12
|
+
export declare class DbxProgressButtonsModule {
|
|
13
|
+
static forRoot(config?: DbxProgressButtonGlobalConfig): ModuleWithProviders<DbxProgressButtonsModule>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxProgressButtonsModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxProgressButtonsModule, [typeof i1.DbxSpinnerButtonComponent, typeof i2.DbxBarButtonComponent], [typeof i3.CommonModule, typeof i4.MatButtonModule, typeof i5.MatProgressBarModule, typeof i6.MatProgressSpinnerModule, typeof i7.MatRippleModule, typeof i8.MatIconModule], [typeof i1.DbxSpinnerButtonComponent, typeof i2.DbxBarButtonComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxProgressButtonsModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { AbstractProgressButtonDirective } from './base.progress.button.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DbxSpinnerButtonComponent extends AbstractProgressButtonDirective {
|
|
5
|
+
readonly buttonRef: ElementRef<HTMLElement>;
|
|
6
|
+
calcSpinnerSize(): number;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxSpinnerButtonComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSpinnerButtonComponent, "dbx-spinner-button", never, {}, {}, never, ["*"]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
button {
|
|
3
|
+
outline: none;
|
|
4
|
+
&.working {
|
|
5
|
+
cursor: not-allowed;
|
|
6
|
+
}
|
|
7
|
+
& ::ng-deep .mat-button-wrapper {
|
|
8
|
+
display:flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
}
|
|
12
|
+
&.fullWidth {
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
.spinner {
|
|
16
|
+
position: absolute;
|
|
17
|
+
// top: 25%;
|
|
18
|
+
opacity:0;
|
|
19
|
+
transition: opacity .3s ease-in-out;
|
|
20
|
+
&.working {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.button-text {
|
|
25
|
+
opacity: 1;
|
|
26
|
+
transition: opacity .3s ease-in-out;
|
|
27
|
+
&.working {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
mat-icon.mat-button-icon {
|
|
32
|
+
padding-right: 5px;
|
|
33
|
+
transition: opacity .3s ease-in-out;
|
|
34
|
+
&.is-mat-icon {
|
|
35
|
+
font-size: 18px;
|
|
36
|
+
position: relative;
|
|
37
|
+
top: 3px;
|
|
38
|
+
}
|
|
39
|
+
&.working {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
package/lib/dbx-web.module.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./button/button.module";
|
|
3
3
|
import * as i2 from "./action/action.module";
|
|
4
4
|
import * as i3 from "./loading/loading.module";
|
|
5
|
-
import * as i4 from "mat-progress-buttons";
|
|
6
5
|
export declare class DbxWebModule {
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxWebModule, never>;
|
|
8
7
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxWebModule, never, never, [typeof i1.DbxButtonModule, typeof i2.DbxActionModule, typeof i3.DbxLoadingModule]>;
|
|
@@ -12,10 +11,9 @@ export declare class DbxWebModule {
|
|
|
12
11
|
* Should only be imported once in the root app.
|
|
13
12
|
*
|
|
14
13
|
* Pre-configures the following modules:
|
|
15
|
-
* - MatProgressButtonsModule
|
|
16
14
|
*/
|
|
17
15
|
export declare class DbxWebRootModule {
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxWebRootModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxWebRootModule, never,
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxWebRootModule, never, never, never>;
|
|
20
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxWebRootModule>;
|
|
21
19
|
}
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
@use '../../style/theming';
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
|
-
|
|
4
|
+
$dialog-width: 400px;
|
|
5
|
+
$max-dialog-width: 90vw;
|
|
5
6
|
|
|
6
7
|
// MARK: Mixin
|
|
7
|
-
@mixin core() {
|
|
8
|
+
@mixin core() {
|
|
9
|
+
|
|
10
|
+
.dbx-dialog-content {
|
|
11
|
+
|
|
12
|
+
&.normal-dialog-content {
|
|
13
|
+
width: $dialog-width;
|
|
14
|
+
min-width: $dialog-width;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.wide-dialog-content {
|
|
18
|
+
width: $max-dialog-width;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
8
24
|
|
|
9
25
|
@mixin color($theme-config) {}
|
|
10
26
|
|
|
@@ -8,8 +8,9 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export declare abstract class AbstractDialogDirective<R = any, D = any, T = any> extends AbstractTransitionWatcherDirective {
|
|
9
9
|
readonly data: D;
|
|
10
10
|
readonly dialogRef: MatDialogRef<T, R>;
|
|
11
|
-
constructor(data: D, dialogRef: MatDialogRef<T, R>,
|
|
11
|
+
constructor(data: D, dialogRef: MatDialogRef<T, R>, dbxRouterTransitionService: DbxRouterTransitionService, ngZone: NgZone);
|
|
12
12
|
protected updateForSuccessfulTransition(): void;
|
|
13
|
+
returnValue(value?: R): void;
|
|
13
14
|
close(value?: R): void;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDialogDirective<any, any, any>, [{ optional: true; }, null, null, null]>;
|
|
15
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDialogDirective<any, any, any>, never, never, {}, {}, never>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
|
+
import { DbxActionContextStoreSourceInstance, AbstractDbxActionValueOnTriggerDirective } from '@dereekb/dbx-core';
|
|
4
|
+
import { IsModifiedFunction } from '@dereekb/rxjs';
|
|
5
|
+
import { Maybe } from '@dereekb/util';
|
|
6
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare type DbxActionDialogFunction<T = any> = () => MatDialogRef<any, Maybe<T>>;
|
|
9
|
+
/**
|
|
10
|
+
* Action directive that is used to trigger/display a dialog, then watches that dialog for a value.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DbxActionDialogDirective<T = any> extends AbstractDbxActionValueOnTriggerDirective<T> implements OnInit, OnDestroy {
|
|
13
|
+
readonly elementRef: ElementRef;
|
|
14
|
+
fn?: DbxActionDialogFunction<T>;
|
|
15
|
+
set dbxActionDialogModified(isModifiedFunction: Maybe<IsModifiedFunction>);
|
|
16
|
+
constructor(elementRef: ElementRef, source: DbxActionContextStoreSourceInstance<T, any>);
|
|
17
|
+
protected _getDataFromDialog(): Observable<Maybe<T>>;
|
|
18
|
+
protected _makeDialogRef(): MatDialogRef<any, Maybe<T>>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDialogDirective<any>, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDialogDirective<any>, "[dbxActionDialog]", ["dbxActionDialog"], { "fn": "dbxActionDialog"; "dbxActionDialogModified": "dbxActionDialogModified"; }, {}, never>;
|
|
21
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./dialog.content.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
3
|
+
import * as i2 from "./dialog.action.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "../../layout/style/style.layout.module";
|
|
5
6
|
/**
|
|
6
7
|
* Module for block components.
|
|
7
8
|
*/
|
|
8
9
|
export declare class DbxDialogInteractionModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDialogInteractionModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxDialogInteractionModule, [typeof i1.DbxDialogContentDirective], [typeof
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxDialogInteractionModule, [typeof i1.DbxDialogContentDirective, typeof i2.DbxActionDialogDirective], [typeof i3.CommonModule, typeof i4.DbxStyleLayoutModule], [typeof i1.DbxDialogContentDirective, typeof i2.DbxActionDialogDirective]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxDialogInteractionModule>;
|
|
12
13
|
}
|
|
@@ -10,6 +10,6 @@ import * as i8 from "@angular/material/icon";
|
|
|
10
10
|
import * as i9 from "@angular/material/button";
|
|
11
11
|
export declare class DbxFilterInteractionModule {
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterInteractionModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFilterInteractionModule, [typeof i1.DbxFilterPopoverComponent, typeof i2.DbxFilterPopoverButtonComponent, typeof i3.DbxFilterWrapperComponent], [typeof i4.CommonModule, typeof i5.DbxPopoverInteractionModule, typeof i6.DbxCoreFilterModule, typeof i6.
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFilterInteractionModule, [typeof i1.DbxFilterPopoverComponent, typeof i2.DbxFilterPopoverButtonComponent, typeof i3.DbxFilterWrapperComponent], [typeof i4.CommonModule, typeof i5.DbxPopoverInteractionModule, typeof i6.DbxCoreFilterModule, typeof i6.DbxInjectionComponentModule, typeof i7.FlexLayoutModule, typeof i8.MatIconModule, typeof i9.MatButtonModule], [typeof i6.DbxCoreFilterModule, typeof i2.DbxFilterPopoverButtonComponent, typeof i3.DbxFilterWrapperComponent]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFilterInteractionModule>;
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
2
2
|
import { ElementRef, Type, OnInit } from '@angular/core';
|
|
3
3
|
import { NgPopoverRef } from 'ng-overlay-container';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
@@ -40,7 +40,7 @@ export declare class DbxFilterPopoverComponent<F> extends AbstractPopoverDirecti
|
|
|
40
40
|
readonly showSwitchButtons: boolean;
|
|
41
41
|
private _showPreset;
|
|
42
42
|
readonly showPreset$: Observable<boolean>;
|
|
43
|
-
readonly config$: Observable<
|
|
43
|
+
readonly config$: Observable<DbxInjectionComponentConfig>;
|
|
44
44
|
static openPopover<F>(popupService: DbxPopoverService, { origin, initialFilterObs: inputSource, connector, customFilterComponentClass, presetFilterComponentClass }: DbxFilterPopoverComponentParams<F>, popoverKey?: DbxPopoverKey): NgPopoverRef;
|
|
45
45
|
constructor(popover: DbxPopoverComponent);
|
|
46
46
|
get config(): DbxFilterComponentParams<F>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './abstract.popover.directive';
|
|
2
2
|
export * from './abstract.popover.ref.directive';
|
|
3
|
-
export * from './popover.action.button.directive';
|
|
4
3
|
export * from './popover.action.directive';
|
|
5
4
|
export * from './popover.component';
|
|
6
5
|
export * from './popover.content.component';
|
|
@@ -1,33 +1,24 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { OnInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { NgPopoverRef } from 'ng-overlay-container';
|
|
4
|
+
import { DbxActionContextStoreSourceInstance, AbstractDbxActionValueOnTriggerDirective } from '@dereekb/dbx-core';
|
|
5
|
+
import { IsModifiedFunction } from '@dereekb/rxjs';
|
|
6
|
+
import { Maybe } from '@dereekb/util';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export interface
|
|
8
|
+
export interface DbxActionPopoverFunctionParams {
|
|
8
9
|
origin: ElementRef;
|
|
9
10
|
}
|
|
10
|
-
export declare type
|
|
11
|
-
export declare type DbxPopoverActionModifiedFn<T = any> = (value: T) => Observable<boolean>;
|
|
11
|
+
export declare type DbxActionPopoverFunction<T = any> = (params: DbxActionPopoverFunctionParams) => NgPopoverRef<any, Maybe<T>>;
|
|
12
12
|
/**
|
|
13
|
-
* Action directive that is used to trigger/display a popover,
|
|
14
|
-
* then watches that popover for a value.
|
|
15
|
-
*
|
|
16
|
-
* The value is passed to the isModified function (ifProvided), and if that returns true it will
|
|
13
|
+
* Action directive that is used to trigger/display a popover, then watches that popover for a value.
|
|
17
14
|
*/
|
|
18
|
-
export declare class
|
|
15
|
+
export declare class DbxActionPopoverDirective<T = any> extends AbstractDbxActionValueOnTriggerDirective<T> implements OnInit, OnDestroy {
|
|
19
16
|
readonly elementRef: ElementRef;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
appPopoverActionModified?: DbxPopoverActionModifiedFn<T>;
|
|
23
|
-
private _popoverValue;
|
|
24
|
-
private _triggeredSub;
|
|
25
|
-
private _isModifiedSub;
|
|
17
|
+
fn?: DbxActionPopoverFunction<T>;
|
|
18
|
+
set dbxActionPopoverModified(isModifiedFunction: Maybe<IsModifiedFunction>);
|
|
26
19
|
constructor(elementRef: ElementRef, source: DbxActionContextStoreSourceInstance<T, any>);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPopoverActionDirective<any>, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxPopoverActionDirective<any>, "[dbxPopoverAction]", ["popoverAction"], { "fn": "dbxPopoverAction"; "appPopoverActionModified": "appPopoverActionModified"; }, {}, never>;
|
|
20
|
+
protected _getDataFromPopover(): Observable<Maybe<T>>;
|
|
21
|
+
protected _makePopoverRef(): NgPopoverRef<any, Maybe<T>>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionPopoverDirective<any>, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionPopoverDirective<any>, "[dbxActionPopover]", ["dbxActionPopover"], { "fn": "dbxActionPopover"; "dbxActionPopoverModified": "dbxActionPopoverModified"; }, {}, never>;
|
|
33
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgZone, Type, OnInit, OnDestroy, ElementRef } from '@angular/core';
|
|
2
2
|
import { NgOverlayContainerConfiguration, NgPopoverRef } from 'ng-overlay-container';
|
|
3
|
-
import { AbstractTransitionWatcherDirective, DbxRouterTransitionService,
|
|
3
|
+
import { AbstractTransitionWatcherDirective, DbxRouterTransitionService, DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
4
4
|
import { LockSet } from '@dereekb/rxjs';
|
|
5
5
|
import { CompactContextStore } from '../../layout';
|
|
6
6
|
import { Maybe } from '@dereekb/util';
|
|
@@ -50,14 +50,14 @@ export declare class DbxPopoverComponent<O = any, I = any, T = any> extends Abst
|
|
|
50
50
|
private popoverRef;
|
|
51
51
|
private compactContextState;
|
|
52
52
|
readonly lockSet: LockSet;
|
|
53
|
-
readonly contentConfig:
|
|
53
|
+
readonly contentConfig: DbxInjectionComponentConfig;
|
|
54
54
|
private _startedClosing;
|
|
55
55
|
private readonly _closing;
|
|
56
56
|
private _triggerCloseKeys;
|
|
57
57
|
readonly isClosing$: import("rxjs").Observable<boolean>;
|
|
58
58
|
readonly closing$: import("rxjs").Observable<boolean>;
|
|
59
59
|
getClosingValueFn?: (value?: I) => Promise<O>;
|
|
60
|
-
constructor(popoverRef: NgPopoverRef<FullDbxPopoverComponentConfig<O, I, T>, O>, compactContextState: CompactContextStore,
|
|
60
|
+
constructor(popoverRef: NgPopoverRef<FullDbxPopoverComponentConfig<O, I, T>, O>, compactContextState: CompactContextStore, dbxRouterTransitionService: DbxRouterTransitionService, ngZone: NgZone);
|
|
61
61
|
get config(): FullDbxPopoverComponentConfig<O, I, T>;
|
|
62
62
|
get key(): DbxPopoverKey;
|
|
63
63
|
get data(): Maybe<I>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DbxPopoverKey, DbxPopoverController } from './popover';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* Used for coordinating popovers and closing/replacing existing ones when a new popover of the same name appears.
|
|
5
6
|
*/
|
|
6
|
-
export declare class DbxPopoverCoordinatorService {
|
|
7
|
+
export declare class DbxPopoverCoordinatorService implements OnDestroy {
|
|
7
8
|
private _popovers;
|
|
8
9
|
readonly popovers$: import("rxjs").Observable<Map<string, DbxPopoverController<any, any>>>;
|
|
10
|
+
ngOnDestroy(): void;
|
|
9
11
|
get popovers(): Map<DbxPopoverKey, DbxPopoverController>;
|
|
10
12
|
addPopover(popover: DbxPopoverController): void;
|
|
11
13
|
removePopover(key: DbxPopoverKey, popover?: DbxPopoverController): void;
|