@dereekb/dbx-web 10.1.30 → 11.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/calendar/esm2022/lib/calendar.base.component.mjs +27 -30
- package/calendar/esm2022/lib/calendar.component.mjs +21 -24
- package/calendar/esm2022/lib/calendar.module.mjs +9 -9
- package/calendar/esm2022/lib/calendar.store.mjs +89 -89
- package/calendar/fesm2022/dereekb-dbx-web-calendar.mjs +137 -141
- package/calendar/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
- package/calendar/lib/calendar.base.component.d.ts +0 -1
- package/calendar/lib/calendar.component.d.ts +1 -2
- package/calendar/package.json +1 -1
- package/esm2022/calendar/lib/calendar.base.component.mjs +27 -30
- package/esm2022/calendar/lib/calendar.component.mjs +21 -24
- package/esm2022/calendar/lib/calendar.module.mjs +9 -9
- package/esm2022/calendar/lib/calendar.store.mjs +89 -89
- package/esm2022/lib/action/action.confirm.directive.mjs +8 -15
- package/esm2022/lib/action/action.module.mjs +4 -4
- package/esm2022/lib/action/key.trigger.directive.mjs +7 -11
- package/esm2022/lib/action/snackbar/action.snackbar.component.mjs +40 -48
- package/esm2022/lib/action/snackbar/action.snackbar.directive.mjs +10 -14
- package/esm2022/lib/action/snackbar/action.snackbar.module.mjs +4 -4
- package/esm2022/lib/action/snackbar/action.snackbar.service.mjs +14 -21
- package/esm2022/lib/action/transition/action.transition.module.mjs +4 -4
- package/esm2022/lib/action/transition/transition.safety.dialog.component.mjs +11 -14
- package/esm2022/lib/action/transition/transition.safety.directive.mjs +15 -20
- package/esm2022/lib/button/button.component.mjs +10 -9
- package/esm2022/lib/button/button.module.mjs +4 -4
- package/esm2022/lib/button/button.spacer.component.mjs +3 -3
- package/esm2022/lib/button/icon/icon.button.component.mjs +4 -4
- package/esm2022/lib/button/icon/icon.button.module.mjs +6 -6
- package/esm2022/lib/button/progress/bar.button.component.mjs +4 -7
- package/esm2022/lib/button/progress/base.progress.button.directive.mjs +45 -53
- package/esm2022/lib/button/progress/button.progress.module.mjs +4 -4
- package/esm2022/lib/button/progress/spinner.button.component.mjs +15 -17
- package/esm2022/lib/dbx-web.module.mjs +4 -4
- package/esm2022/lib/error/default.error.widget.component.mjs +4 -4
- package/esm2022/lib/error/error.action.directive.mjs +7 -14
- package/esm2022/lib/error/error.component.mjs +57 -62
- package/esm2022/lib/error/error.details.component.mjs +5 -4
- package/esm2022/lib/error/error.loading.directive.mjs +6 -12
- package/esm2022/lib/error/error.module.mjs +5 -5
- package/esm2022/lib/error/error.popover.component.mjs +4 -4
- package/esm2022/lib/error/error.snackbar.action.directive.mjs +8 -12
- package/esm2022/lib/error/error.snackbar.component.mjs +16 -22
- package/esm2022/lib/error/error.snackbar.service.mjs +12 -15
- package/esm2022/lib/error/error.view.component.mjs +12 -7
- package/esm2022/lib/error/error.widget.component.mjs +33 -36
- package/esm2022/lib/error/error.widget.directive.mjs +6 -11
- package/esm2022/lib/error/error.widget.service.mjs +4 -4
- package/esm2022/lib/extension/download/text/download.text.component.mjs +79 -82
- package/esm2022/lib/extension/download/text/download.text.module.mjs +6 -6
- package/esm2022/lib/extension/model/model.module.mjs +11 -11
- package/esm2022/lib/extension/model/model.state.service.mjs +6 -9
- package/esm2022/lib/extension/model/model.tracker.service.mjs +11 -13
- package/esm2022/lib/extension/model/model.tracker.view.storage.mjs +13 -13
- package/esm2022/lib/extension/model/model.types.service.mjs +34 -36
- package/esm2022/lib/extension/model/state/effects/tracker.effects.mjs +13 -17
- package/esm2022/lib/extension/structure/structure.body.directive.mjs +4 -4
- package/esm2022/lib/extension/structure/structure.module.mjs +6 -6
- package/esm2022/lib/extension/structure/structure.structure.directive.mjs +8 -10
- package/esm2022/lib/extension/widget/widget.component.mjs +22 -25
- package/esm2022/lib/extension/widget/widget.directive.mjs +6 -11
- package/esm2022/lib/extension/widget/widget.list.component.mjs +17 -20
- package/esm2022/lib/extension/widget/widget.module.mjs +6 -6
- package/esm2022/lib/extension/widget/widget.service.mjs +4 -6
- package/esm2022/lib/interaction/dialog/abstract.dialog.directive.mjs +8 -21
- package/esm2022/lib/interaction/dialog/dialog.action.directive.mjs +11 -10
- package/esm2022/lib/interaction/dialog/dialog.content.close.component.mjs +6 -8
- package/esm2022/lib/interaction/dialog/dialog.content.component.mjs +4 -6
- package/esm2022/lib/interaction/dialog/dialog.content.footer.component.mjs +7 -9
- package/esm2022/lib/interaction/dialog/dialog.module.mjs +4 -4
- package/esm2022/lib/interaction/filter/filter.module.mjs +6 -6
- package/esm2022/lib/interaction/filter/filter.partial.list.component.mjs +4 -4
- package/esm2022/lib/interaction/filter/filter.partial.menu.component.mjs +6 -9
- package/esm2022/lib/interaction/filter/filter.partial.mjs +24 -27
- package/esm2022/lib/interaction/filter/filter.popover.button.component.mjs +7 -8
- package/esm2022/lib/interaction/filter/filter.popover.button.directive.mjs +7 -10
- package/esm2022/lib/interaction/filter/filter.popover.component.mjs +52 -57
- package/esm2022/lib/interaction/filter/filter.preset.directive.mjs +90 -0
- package/esm2022/lib/interaction/filter/filter.preset.list.component.mjs +6 -6
- package/esm2022/lib/interaction/filter/filter.preset.menu.component.mjs +8 -11
- package/esm2022/lib/interaction/filter/filter.wrapper.component.mjs +15 -15
- package/esm2022/lib/interaction/interaction.module.mjs +4 -4
- package/esm2022/lib/interaction/popover/abstract.popover.directive.mjs +6 -9
- package/esm2022/lib/interaction/popover/abstract.popover.ref.directive.mjs +8 -10
- package/esm2022/lib/interaction/popover/popover.action.directive.mjs +11 -10
- package/esm2022/lib/interaction/popover/popover.close.component.mjs +9 -12
- package/esm2022/lib/interaction/popover/popover.component.mjs +27 -27
- package/esm2022/lib/interaction/popover/popover.content.component.mjs +8 -10
- package/esm2022/lib/interaction/popover/popover.content.module.mjs +4 -4
- package/esm2022/lib/interaction/popover/popover.controls.directive.mjs +9 -11
- package/esm2022/lib/interaction/popover/popover.coordinator.component.mjs +14 -17
- package/esm2022/lib/interaction/popover/popover.coordinator.service.mjs +5 -7
- package/esm2022/lib/interaction/popover/popover.header.component.mjs +15 -15
- package/esm2022/lib/interaction/popover/popover.module.mjs +4 -4
- package/esm2022/lib/interaction/popover/popover.scroll.content.component.mjs +7 -10
- package/esm2022/lib/interaction/popover/popover.service.mjs +8 -11
- package/esm2022/lib/interaction/popup/abstract.popup.directive.mjs +6 -9
- package/esm2022/lib/interaction/popup/popup.component.mjs +25 -24
- package/esm2022/lib/interaction/popup/popup.content.component.mjs +9 -12
- package/esm2022/lib/interaction/popup/popup.controls.buttons.component.mjs +17 -20
- package/esm2022/lib/interaction/popup/popup.controls.component.mjs +5 -4
- package/esm2022/lib/interaction/popup/popup.coordinator.component.mjs +13 -17
- package/esm2022/lib/interaction/popup/popup.coordinator.service.mjs +5 -7
- package/esm2022/lib/interaction/popup/popup.module.mjs +4 -4
- package/esm2022/lib/interaction/popup/popup.position.strategy.mjs +3 -2
- package/esm2022/lib/interaction/popup/popup.service.mjs +8 -11
- package/esm2022/lib/interaction/prompt/prompt.box.component.mjs +5 -7
- package/esm2022/lib/interaction/prompt/prompt.button.confirm.directive.mjs +12 -20
- package/esm2022/lib/interaction/prompt/prompt.component.mjs +6 -4
- package/esm2022/lib/interaction/prompt/prompt.confirm.component.mjs +6 -8
- package/esm2022/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/prompt/prompt.confirm.directive.mjs +12 -15
- package/esm2022/lib/interaction/prompt/prompt.module.mjs +4 -4
- package/esm2022/lib/interaction/prompt/prompt.page.component.mjs +4 -4
- package/esm2022/lib/keypress/keydown.listener.directive.mjs +6 -7
- package/esm2022/lib/keypress/keypress.module.mjs +4 -4
- package/esm2022/lib/layout/bar/bar.directive.mjs +4 -3
- package/esm2022/lib/layout/bar/bar.header.component.mjs +7 -4
- package/esm2022/lib/layout/bar/bar.layout.module.mjs +4 -4
- package/esm2022/lib/layout/bar/pagebar.component.mjs +4 -3
- package/esm2022/lib/layout/block/block.layout.module.mjs +4 -4
- package/esm2022/lib/layout/block/two.block.component.mjs +9 -10
- package/esm2022/lib/layout/card/card.box.component.mjs +6 -4
- package/esm2022/lib/layout/card/card.box.container.component.mjs +4 -4
- package/esm2022/lib/layout/card/card.box.layout.module.mjs +4 -4
- package/esm2022/lib/layout/column/column.layout.module.mjs +4 -4
- package/esm2022/lib/layout/column/one/one.column.component.mjs +10 -14
- package/esm2022/lib/layout/column/one/one.column.module.mjs +4 -4
- package/esm2022/lib/layout/column/two/two.column.back.directive.mjs +7 -11
- package/esm2022/lib/layout/column/two/two.column.component.mjs +17 -21
- package/esm2022/lib/layout/column/two/two.column.context.directive.mjs +7 -10
- package/esm2022/lib/layout/column/two/two.column.full.left.directive.mjs +7 -10
- package/esm2022/lib/layout/column/two/two.column.head.component.mjs +6 -4
- package/esm2022/lib/layout/column/two/two.column.module.mjs +4 -4
- package/esm2022/lib/layout/column/two/two.column.right.component.mjs +15 -19
- package/esm2022/lib/layout/column/two/two.column.sref.directive.mjs +6 -9
- package/esm2022/lib/layout/column/two/two.column.sref.showright.directive.mjs +10 -15
- package/esm2022/lib/layout/column/two/two.column.store.mjs +81 -81
- package/esm2022/lib/layout/compact/compact.directive.mjs +7 -10
- package/esm2022/lib/layout/compact/compact.layout.module.mjs +4 -4
- package/esm2022/lib/layout/compact/compact.store.mjs +6 -6
- package/esm2022/lib/layout/content/content.border.directive.mjs +4 -6
- package/esm2022/lib/layout/content/content.box.directive.mjs +5 -7
- package/esm2022/lib/layout/content/content.container.directive.mjs +6 -8
- package/esm2022/lib/layout/content/content.directive.mjs +3 -3
- package/esm2022/lib/layout/content/content.elevate.directive.mjs +4 -6
- package/esm2022/lib/layout/content/content.layout.module.mjs +5 -5
- package/esm2022/lib/layout/content/content.page.directive.mjs +3 -3
- package/esm2022/lib/layout/content/content.pit.directive.mjs +4 -3
- package/esm2022/lib/layout/flag/flag.component.mjs +5 -7
- package/esm2022/lib/layout/flag/flag.layout.module.mjs +4 -4
- package/esm2022/lib/layout/flag/flag.prompt.component.mjs +6 -7
- package/esm2022/lib/layout/flex/flex.group.directive.mjs +14 -15
- package/esm2022/lib/layout/flex/flex.layout.module.mjs +4 -4
- package/esm2022/lib/layout/flex/flex.size.directive.mjs +4 -6
- package/esm2022/lib/layout/item/item.icon.component.mjs +6 -4
- package/esm2022/lib/layout/item/item.layout.module.mjs +4 -4
- package/esm2022/lib/layout/layout.module.mjs +4 -4
- package/esm2022/lib/layout/list/list.component.mjs +102 -103
- package/esm2022/lib/layout/list/list.content.empty.component.mjs +4 -4
- package/esm2022/lib/layout/list/list.directive.mjs +14 -15
- package/esm2022/lib/layout/list/list.grid.view.component.mjs +27 -39
- package/esm2022/lib/layout/list/list.grid.view.directive.mjs +3 -3
- package/esm2022/lib/layout/list/list.layout.module.mjs +5 -5
- package/esm2022/lib/layout/list/list.view.directive.mjs +11 -12
- package/esm2022/lib/layout/list/list.view.meta.icon.component.mjs +9 -19
- package/esm2022/lib/layout/list/list.view.selection.directive.mjs +4 -7
- package/esm2022/lib/layout/list/list.view.value.component.mjs +36 -43
- package/esm2022/lib/layout/list/list.view.value.directive.mjs +11 -17
- package/esm2022/lib/layout/list/list.view.value.group.title.directive.mjs +57 -59
- package/esm2022/lib/layout/list/list.view.value.item.directive.mjs +6 -11
- package/esm2022/lib/layout/list/list.view.value.modifier.directive.mjs +15 -19
- package/esm2022/lib/layout/list/list.view.value.modifier.ripple.directive.mjs +14 -17
- package/esm2022/lib/layout/list/list.view.value.modifier.selection.directive.mjs +13 -16
- package/esm2022/lib/layout/list/list.view.value.selection.component.mjs +20 -29
- package/esm2022/lib/layout/list/list.wrapper.mjs +3 -1
- package/esm2022/lib/layout/section/section.component.mjs +5 -8
- package/esm2022/lib/layout/section/section.header.component.mjs +12 -7
- package/esm2022/lib/layout/section/section.intro.component.mjs +7 -8
- package/esm2022/lib/layout/section/section.layout.module.mjs +4 -4
- package/esm2022/lib/layout/section/section.page.component.mjs +6 -9
- package/esm2022/lib/layout/section/subsection.component.mjs +4 -4
- package/esm2022/lib/layout/step/step.component.mjs +7 -3
- package/esm2022/lib/layout/step/step.layout.module.mjs +4 -4
- package/esm2022/lib/layout/style/spacer.directive.mjs +3 -3
- package/esm2022/lib/layout/style/style.body.directive.mjs +14 -15
- package/esm2022/lib/layout/style/style.color.directive.mjs +4 -6
- package/esm2022/lib/layout/style/style.directive.mjs +15 -13
- package/esm2022/lib/layout/style/style.layout.module.mjs +4 -4
- package/esm2022/lib/layout/style/style.service.mjs +18 -26
- package/esm2022/lib/layout/style/style.set.directive.mjs +15 -16
- package/esm2022/lib/layout/text/address.component.mjs +5 -4
- package/esm2022/lib/layout/text/compat/form.description.component.mjs +19 -0
- package/esm2022/lib/layout/text/compat/hint.component.mjs +19 -0
- package/esm2022/lib/layout/text/compat/index.mjs +10 -0
- package/esm2022/lib/layout/text/compat/label.component.mjs +19 -0
- package/esm2022/lib/layout/text/compat/note.component.mjs +19 -0
- package/esm2022/lib/layout/text/compat/notice.component.mjs +19 -0
- package/esm2022/lib/layout/text/compat/ok.component.mjs +19 -0
- package/esm2022/lib/layout/text/compat/success.component.mjs +19 -0
- package/esm2022/lib/layout/text/compat/text.compat.module.mjs +32 -0
- package/esm2022/lib/layout/text/compat/warn.component.mjs +19 -0
- package/esm2022/lib/layout/text/detail.block.component.mjs +6 -4
- package/esm2022/lib/layout/text/detail.block.header.component.mjs +6 -4
- package/esm2022/lib/layout/text/icon.spacer.component.mjs +3 -3
- package/esm2022/lib/layout/text/index.mjs +2 -9
- package/esm2022/lib/layout/text/label.block.component.mjs +7 -7
- package/esm2022/lib/layout/text/linkify.component.mjs +20 -23
- package/esm2022/lib/layout/text/text.chip.directive.mjs +5 -3
- package/esm2022/lib/layout/text/text.chips.component.mjs +6 -4
- package/esm2022/lib/layout/text/text.module.mjs +5 -13
- package/esm2022/lib/loading/basic-loading.component.mjs +33 -33
- package/esm2022/lib/loading/loading-progress.component.mjs +11 -10
- package/esm2022/lib/loading/loading.action.directive.mjs +8 -14
- package/esm2022/lib/loading/loading.component.mjs +33 -27
- package/esm2022/lib/loading/loading.module.mjs +4 -4
- package/esm2022/lib/router/layout/anchor/anchor.component.mjs +14 -17
- package/esm2022/lib/router/layout/anchor/anchor.content.component.mjs +14 -19
- package/esm2022/lib/router/layout/anchor/anchor.icon.component.mjs +5 -4
- package/esm2022/lib/router/layout/anchor/anchor.link.component.mjs +5 -4
- package/esm2022/lib/router/layout/anchor/anchor.module.mjs +4 -4
- package/esm2022/lib/router/layout/anchor/anchor.segue.directive.mjs +13 -16
- package/esm2022/lib/router/layout/anchorlist/anchorlist.component.mjs +8 -10
- package/esm2022/lib/router/layout/anchorlist/anchorlist.module.mjs +4 -4
- package/esm2022/lib/router/layout/layout.module.mjs +4 -4
- package/esm2022/lib/router/layout/list/list.module.mjs +4 -4
- package/esm2022/lib/router/layout/list/router.list.directive.mjs +16 -19
- package/esm2022/lib/router/layout/navbar/navbar.component.mjs +65 -70
- package/esm2022/lib/router/layout/navbar/navbar.module.mjs +6 -6
- package/esm2022/lib/router/layout/sidenav/sidenav.button.component.mjs +13 -16
- package/esm2022/lib/router/layout/sidenav/sidenav.component.mjs +54 -57
- package/esm2022/lib/router/layout/sidenav/sidenav.ifdisplaymode.directive.mjs +10 -14
- package/esm2022/lib/router/layout/sidenav/sidenav.module.mjs +4 -4
- package/esm2022/lib/router/layout/sidenav/sidenav.page.component.mjs +13 -14
- package/esm2022/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +5 -4
- package/esm2022/lib/router/provider/ngrouter/anchor.component.mjs +3 -3
- package/esm2022/lib/router/provider/ngrouter/angular.router.module.mjs +4 -4
- package/esm2022/lib/router/provider/uirouter/anchor.component.mjs +5 -8
- package/esm2022/lib/router/provider/uirouter/uirouter.router.module.mjs +4 -4
- package/esm2022/lib/screen/screen.module.mjs +4 -4
- package/esm2022/lib/screen/screen.service.mjs +19 -12
- package/esm2022/mapbox/lib/mapbox.change.service.mjs +15 -18
- package/esm2022/mapbox/lib/mapbox.injection.component.mjs +10 -14
- package/esm2022/mapbox/lib/mapbox.injection.store.mjs +8 -8
- package/esm2022/mapbox/lib/mapbox.injection.store.provide.mjs +8 -13
- package/esm2022/mapbox/lib/mapbox.layout.component.mjs +47 -46
- package/esm2022/mapbox/lib/mapbox.layout.drawer.component.mjs +9 -12
- package/esm2022/mapbox/lib/mapbox.layout.resize.sync.directive.mjs +17 -23
- package/esm2022/mapbox/lib/mapbox.marker.component.mjs +13 -17
- package/esm2022/mapbox/lib/mapbox.markers.component.mjs +14 -16
- package/esm2022/mapbox/lib/mapbox.menu.component.mjs +14 -21
- package/esm2022/mapbox/lib/mapbox.module.mjs +6 -6
- package/esm2022/mapbox/lib/mapbox.service.mjs +10 -10
- package/esm2022/mapbox/lib/mapbox.store.map.directive.mjs +9 -22
- package/esm2022/mapbox/lib/mapbox.store.mjs +395 -399
- package/esm2022/mapbox/lib/mapbox.store.provide.mjs +8 -13
- package/esm2022/table/lib/date/date.table.column.header.component.mjs +8 -8
- package/esm2022/table/lib/date/daterange.table.cell.input.component.mjs +37 -43
- package/esm2022/table/lib/date/table.date.module.mjs +6 -6
- package/esm2022/table/lib/table.cell.action.component.mjs +10 -13
- package/esm2022/table/lib/table.cell.input.component.mjs +10 -13
- package/esm2022/table/lib/table.cell.summaryend.component.mjs +10 -13
- package/esm2022/table/lib/table.cell.summarystart.component.mjs +10 -13
- package/esm2022/table/lib/table.column.directive.mjs +8 -11
- package/esm2022/table/lib/table.column.footer.component.mjs +13 -16
- package/esm2022/table/lib/table.column.header.component.mjs +13 -16
- package/esm2022/table/lib/table.component.mjs +35 -38
- package/esm2022/table/lib/table.directive.mjs +6 -9
- package/esm2022/table/lib/table.item.action.component.mjs +13 -16
- package/esm2022/table/lib/table.item.cell.component.mjs +7 -10
- package/esm2022/table/lib/table.item.directive.mjs +8 -11
- package/esm2022/table/lib/table.item.header.component.mjs +5 -8
- package/esm2022/table/lib/table.module.mjs +6 -6
- package/esm2022/table/lib/table.store.mjs +36 -36
- package/fesm2022/dereekb-dbx-web-calendar.mjs +137 -141
- package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +552 -594
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-table.mjs +197 -232
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +2243 -2460
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/action/action.confirm.directive.d.ts +1 -3
- package/lib/action/key.trigger.directive.d.ts +1 -2
- package/lib/action/snackbar/action.snackbar.component.d.ts +4 -5
- package/lib/action/snackbar/action.snackbar.directive.d.ts +2 -3
- package/lib/action/snackbar/action.snackbar.service.d.ts +1 -2
- package/lib/action/transition/transition.safety.directive.d.ts +1 -2
- package/lib/button/progress/base.progress.button.directive.d.ts +7 -8
- package/lib/error/error.action.directive.d.ts +2 -3
- package/lib/error/error.component.d.ts +2 -3
- package/lib/error/error.loading.directive.d.ts +1 -2
- package/lib/error/error.snackbar.action.directive.d.ts +1 -2
- package/lib/error/error.snackbar.component.d.ts +2 -3
- package/lib/error/error.snackbar.service.d.ts +0 -1
- package/lib/error/error.widget.component.d.ts +0 -1
- package/lib/error/error.widget.directive.d.ts +0 -1
- package/lib/extension/download/text/download.text.component.d.ts +3 -6
- package/lib/extension/model/model.module.d.ts +3 -3
- package/lib/extension/model/model.state.service.d.ts +1 -3
- package/lib/extension/model/model.tracker.service.d.ts +1 -3
- package/lib/extension/model/model.tracker.view.storage.d.ts +5 -3
- package/lib/extension/model/model.types.service.d.ts +2 -3
- package/lib/extension/model/state/effects/tracker.effects.d.ts +0 -3
- package/lib/extension/structure/structure.structure.directive.d.ts +1 -2
- package/lib/extension/widget/widget.component.d.ts +0 -1
- package/lib/extension/widget/widget.directive.d.ts +0 -1
- package/lib/interaction/dialog/abstract.dialog.directive.d.ts +3 -5
- package/lib/interaction/dialog/dialog.action.directive.d.ts +3 -3
- package/lib/interaction/filter/filter.partial.d.ts +1 -2
- package/lib/interaction/filter/filter.popover.button.directive.d.ts +0 -2
- package/lib/interaction/filter/filter.popover.component.d.ts +0 -2
- package/lib/interaction/filter/{filter.preset.d.ts → filter.preset.directive.d.ts} +5 -6
- package/lib/interaction/filter/filter.preset.list.component.d.ts +2 -2
- package/lib/interaction/filter/filter.preset.menu.component.d.ts +2 -2
- package/lib/interaction/filter/filter.wrapper.component.d.ts +3 -3
- package/lib/interaction/popover/abstract.popover.directive.d.ts +0 -1
- package/lib/interaction/popover/popover.action.directive.d.ts +3 -3
- package/lib/interaction/popover/popover.close.component.d.ts +1 -2
- package/lib/interaction/popover/popover.component.d.ts +6 -7
- package/lib/interaction/popover/popover.controls.directive.d.ts +3 -2
- package/lib/interaction/popover/popover.coordinator.component.d.ts +3 -5
- package/lib/interaction/popover/popover.header.component.d.ts +5 -3
- package/lib/interaction/popover/popover.scroll.content.component.d.ts +0 -1
- package/lib/interaction/popover/popover.service.d.ts +0 -2
- package/lib/interaction/popup/abstract.popup.directive.d.ts +0 -1
- package/lib/interaction/popup/popup.component.d.ts +3 -5
- package/lib/interaction/popup/popup.content.component.d.ts +1 -3
- package/lib/interaction/popup/popup.controls.buttons.component.d.ts +1 -3
- package/lib/interaction/popup/popup.coordinator.component.d.ts +2 -5
- package/lib/interaction/popup/popup.service.d.ts +0 -2
- package/lib/interaction/prompt/prompt.button.confirm.directive.d.ts +3 -4
- package/lib/interaction/prompt/prompt.confirm.component.d.ts +2 -2
- package/lib/interaction/prompt/prompt.confirm.directive.d.ts +1 -3
- package/lib/layout/column/one/one.column.component.d.ts +1 -1
- package/lib/layout/column/two/two.column.back.directive.d.ts +0 -1
- package/lib/layout/column/two/two.column.component.d.ts +4 -4
- package/lib/layout/column/two/two.column.context.directive.d.ts +0 -1
- package/lib/layout/column/two/two.column.full.left.directive.d.ts +0 -2
- package/lib/layout/column/two/two.column.right.component.d.ts +1 -2
- package/lib/layout/column/two/two.column.sref.directive.d.ts +0 -2
- package/lib/layout/column/two/two.column.sref.showright.directive.d.ts +1 -3
- package/lib/layout/compact/compact.directive.d.ts +1 -2
- package/lib/layout/flex/flex.group.directive.d.ts +2 -3
- package/lib/layout/list/list.component.d.ts +3 -4
- package/lib/layout/list/list.directive.d.ts +4 -5
- package/lib/layout/list/list.grid.view.component.d.ts +3 -5
- package/lib/layout/list/list.view.directive.d.ts +1 -1
- package/lib/layout/list/list.view.meta.icon.component.d.ts +3 -2
- package/lib/layout/list/list.view.selection.directive.d.ts +1 -1
- package/lib/layout/list/list.view.value.component.d.ts +4 -5
- package/lib/layout/list/list.view.value.directive.d.ts +3 -4
- package/lib/layout/list/list.view.value.group.title.directive.d.ts +7 -3
- package/lib/layout/list/list.view.value.item.directive.d.ts +0 -1
- package/lib/layout/list/list.view.value.modifier.directive.d.ts +0 -1
- package/lib/layout/list/list.view.value.selection.component.d.ts +3 -4
- package/lib/layout/section/section.intro.component.d.ts +1 -1
- package/lib/layout/style/style.body.directive.d.ts +4 -4
- package/lib/layout/style/style.directive.d.ts +4 -5
- package/lib/layout/style/style.service.d.ts +1 -2
- package/lib/layout/style/style.set.directive.d.ts +3 -3
- package/lib/layout/text/compat/index.d.ts +9 -0
- package/lib/layout/text/compat/text.compat.module.d.ts +21 -0
- package/lib/layout/text/index.d.ts +1 -8
- package/lib/layout/text/linkify.component.d.ts +0 -2
- package/lib/layout/text/text.module.d.ts +9 -17
- package/lib/loading/loading.action.directive.d.ts +3 -4
- package/lib/loading/loading.component.d.ts +0 -1
- package/lib/router/layout/anchor/anchor.component.d.ts +0 -2
- package/lib/router/layout/anchor/anchor.content.component.d.ts +3 -4
- package/lib/router/layout/anchor/anchor.segue.directive.d.ts +0 -1
- package/lib/router/layout/navbar/navbar.component.d.ts +2 -4
- package/lib/router/layout/sidenav/sidenav.button.component.d.ts +0 -1
- package/lib/router/layout/sidenav/sidenav.component.d.ts +2 -4
- package/lib/router/layout/sidenav/sidenav.ifdisplaymode.directive.d.ts +2 -3
- package/lib/router/layout/sidenav/sidenav.page.component.d.ts +0 -1
- package/lib/screen/screen.service.d.ts +1 -2
- package/mapbox/esm2022/lib/mapbox.change.service.mjs +15 -18
- package/mapbox/esm2022/lib/mapbox.injection.component.mjs +10 -14
- package/mapbox/esm2022/lib/mapbox.injection.store.mjs +8 -8
- package/mapbox/esm2022/lib/mapbox.injection.store.provide.mjs +8 -13
- package/mapbox/esm2022/lib/mapbox.layout.component.mjs +47 -46
- package/mapbox/esm2022/lib/mapbox.layout.drawer.component.mjs +9 -12
- package/mapbox/esm2022/lib/mapbox.layout.resize.sync.directive.mjs +17 -23
- package/mapbox/esm2022/lib/mapbox.marker.component.mjs +13 -17
- package/mapbox/esm2022/lib/mapbox.markers.component.mjs +14 -16
- package/mapbox/esm2022/lib/mapbox.menu.component.mjs +14 -21
- package/mapbox/esm2022/lib/mapbox.module.mjs +6 -6
- package/mapbox/esm2022/lib/mapbox.service.mjs +10 -10
- package/mapbox/esm2022/lib/mapbox.store.map.directive.mjs +9 -22
- package/mapbox/esm2022/lib/mapbox.store.mjs +395 -399
- package/mapbox/esm2022/lib/mapbox.store.provide.mjs +8 -13
- package/mapbox/fesm2022/dereekb-dbx-web-mapbox.mjs +552 -594
- package/mapbox/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/lib/mapbox.change.service.d.ts +0 -1
- package/mapbox/lib/mapbox.injection.component.d.ts +0 -3
- package/mapbox/lib/mapbox.injection.store.provide.d.ts +1 -2
- package/mapbox/lib/mapbox.layout.component.d.ts +10 -11
- package/mapbox/lib/mapbox.layout.drawer.component.d.ts +0 -1
- package/mapbox/lib/mapbox.layout.resize.sync.directive.d.ts +3 -4
- package/mapbox/lib/mapbox.marker.component.d.ts +2 -4
- package/mapbox/lib/mapbox.menu.component.d.ts +4 -5
- package/mapbox/lib/mapbox.service.d.ts +1 -2
- package/mapbox/lib/mapbox.store.d.ts +1 -2
- package/mapbox/lib/mapbox.store.map.directive.d.ts +2 -3
- package/mapbox/lib/mapbox.store.provide.d.ts +1 -2
- package/mapbox/package.json +1 -1
- package/package.json +1 -1
- package/table/esm2022/lib/date/date.table.column.header.component.mjs +8 -8
- package/table/esm2022/lib/date/daterange.table.cell.input.component.mjs +37 -43
- package/table/esm2022/lib/date/table.date.module.mjs +6 -6
- package/table/esm2022/lib/table.cell.action.component.mjs +10 -13
- package/table/esm2022/lib/table.cell.input.component.mjs +10 -13
- package/table/esm2022/lib/table.cell.summaryend.component.mjs +10 -13
- package/table/esm2022/lib/table.cell.summarystart.component.mjs +10 -13
- package/table/esm2022/lib/table.column.directive.mjs +8 -11
- package/table/esm2022/lib/table.column.footer.component.mjs +13 -16
- package/table/esm2022/lib/table.column.header.component.mjs +13 -16
- package/table/esm2022/lib/table.component.mjs +35 -38
- package/table/esm2022/lib/table.directive.mjs +6 -9
- package/table/esm2022/lib/table.item.action.component.mjs +13 -16
- package/table/esm2022/lib/table.item.cell.component.mjs +7 -10
- package/table/esm2022/lib/table.item.directive.mjs +8 -11
- package/table/esm2022/lib/table.item.header.component.mjs +5 -8
- package/table/esm2022/lib/table.module.mjs +6 -6
- package/table/esm2022/lib/table.store.mjs +36 -36
- package/table/fesm2022/dereekb-dbx-web-table.mjs +197 -232
- package/table/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/table/lib/date/daterange.table.cell.input.component.d.ts +3 -6
- package/table/lib/table.cell.action.component.d.ts +1 -2
- package/table/lib/table.cell.input.component.d.ts +1 -2
- package/table/lib/table.cell.summaryend.component.d.ts +1 -2
- package/table/lib/table.cell.summarystart.component.d.ts +1 -2
- package/table/lib/table.column.directive.d.ts +1 -2
- package/table/lib/table.component.d.ts +0 -1
- package/table/lib/table.directive.d.ts +0 -1
- package/table/lib/table.item.directive.d.ts +0 -1
- package/table/package.json +1 -1
- package/esm2022/lib/interaction/filter/filter.preset.mjs +0 -94
- package/esm2022/lib/layout/text/form.description.component.mjs +0 -19
- package/esm2022/lib/layout/text/hint.component.mjs +0 -19
- package/esm2022/lib/layout/text/label.component.mjs +0 -19
- package/esm2022/lib/layout/text/note.component.mjs +0 -19
- package/esm2022/lib/layout/text/notice.component.mjs +0 -19
- package/esm2022/lib/layout/text/ok.component.mjs +0 -19
- package/esm2022/lib/layout/text/success.component.mjs +0 -19
- package/esm2022/lib/layout/text/warn.component.mjs +0 -19
- /package/lib/layout/text/{form.description.component.d.ts → compat/form.description.component.d.ts} +0 -0
- /package/lib/layout/text/{hint.component.d.ts → compat/hint.component.d.ts} +0 -0
- /package/lib/layout/text/{label.component.d.ts → compat/label.component.d.ts} +0 -0
- /package/lib/layout/text/{note.component.d.ts → compat/note.component.d.ts} +0 -0
- /package/lib/layout/text/{notice.component.d.ts → compat/notice.component.d.ts} +0 -0
- /package/lib/layout/text/{ok.component.d.ts → compat/ok.component.d.ts} +0 -0
- /package/lib/layout/text/{success.component.d.ts → compat/success.component.d.ts} +0 -0
- /package/lib/layout/text/{warn.component.d.ts → compat/warn.component.d.ts} +0 -0
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, Injectable, NgModule, Directive, Input } from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Injectable, inject, NgModule, Directive, Input } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { isSameDateDay } from '@dereekb/date';
|
|
6
6
|
import { filterMaybe, beginLoading, valueFromLoadingState, SubscriptionObject, loadingStateContext } from '@dereekb/rxjs';
|
|
7
7
|
import { ComponentStore } from '@ngrx/component-store';
|
|
8
8
|
import { switchMap, first, tap, map, distinctUntilChanged, shareReplay, combineLatest, of, BehaviorSubject, startWith, filter, throttleTime } from 'rxjs';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i2$1 from '@angular/material/datepicker';
|
|
10
10
|
import { DateRange, MAT_DATE_RANGE_SELECTION_STRATEGY, MatDatepickerModule } from '@angular/material/datepicker';
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
11
|
+
import { DateAdapter } from '@angular/material/core';
|
|
12
|
+
import * as i1 from '@angular/forms';
|
|
13
13
|
import { FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
14
14
|
import { format, addDays } from 'date-fns';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i3 from '@angular/material/button';
|
|
16
16
|
import { MatButtonModule } from '@angular/material/button';
|
|
17
17
|
import { MatIconModule } from '@angular/material/icon';
|
|
18
|
-
import * as
|
|
18
|
+
import * as i2$2 from '@dereekb/dbx-web';
|
|
19
19
|
import { DbxLoadingModule } from '@dereekb/dbx-web';
|
|
20
|
-
import * as
|
|
20
|
+
import * as i3$1 from '@angular/material/table';
|
|
21
21
|
import { MatTableModule } from '@angular/material/table';
|
|
22
22
|
import * as i1$1 from '@dereekb/dbx-core';
|
|
23
23
|
import { DbxInjectionComponentModule } from '@dereekb/dbx-core';
|
|
24
|
-
import * as
|
|
24
|
+
import * as i4 from 'ngx-infinite-scroll';
|
|
25
25
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* A table header component used for rendering date values on the header.
|
|
29
29
|
*/
|
|
30
30
|
class DbxTableDateHeaderComponent {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
31
|
+
left = 'E';
|
|
32
|
+
right = 'MMM d';
|
|
33
|
+
_date;
|
|
34
|
+
constructor() { }
|
|
35
35
|
get date() {
|
|
36
36
|
return this._date;
|
|
37
37
|
}
|
|
38
38
|
set date(date) {
|
|
39
39
|
this._date = date;
|
|
40
40
|
}
|
|
41
|
-
static
|
|
42
|
-
static
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableDateHeaderComponent, selector: "ng-component", ngImport: i0, template: `
|
|
43
43
|
<div *ngIf="date" class="dbx-table-date-column-header">
|
|
44
44
|
<span class="dbx-table-date-column-header-left">{{ date | date: left }}</span>
|
|
45
45
|
<span>{{ date | date: right }}</span>
|
|
46
46
|
</div>
|
|
47
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
47
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
48
48
|
}
|
|
49
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateHeaderComponent, decorators: [{
|
|
50
50
|
type: Component,
|
|
@@ -77,52 +77,50 @@ class DbxTableStore extends ComponentStore {
|
|
|
77
77
|
dataDelegate: null,
|
|
78
78
|
viewDelegate: null
|
|
79
79
|
});
|
|
80
|
-
// MARK: Effects
|
|
81
|
-
this.loadMore = this.effect((input) => {
|
|
82
|
-
return input.pipe(switchMap(() => this.data$.pipe(first(), tap((x) => {
|
|
83
|
-
if (x.loadMore) {
|
|
84
|
-
x.loadMore();
|
|
85
|
-
}
|
|
86
|
-
}))));
|
|
87
|
-
});
|
|
88
|
-
// MARK: Accessors
|
|
89
|
-
this.input$ = this.state$.pipe(map((x) => x.input), distinctUntilChanged(), shareReplay(1));
|
|
90
|
-
this.dataDelegate$ = this.state$.pipe(map((x) => x.dataDelegate), distinctUntilChanged(), shareReplay(1));
|
|
91
|
-
this.currentViewDelegate$ = this.state$.pipe(map((x) => x.viewDelegate), distinctUntilChanged(), shareReplay(1));
|
|
92
|
-
this.viewDelegate$ = this.currentViewDelegate$.pipe(filterMaybe());
|
|
93
|
-
this.dataState$ = combineLatest([this.input$, this.dataDelegate$]).pipe(switchMap(([input, dataDelegate]) => {
|
|
94
|
-
let obs;
|
|
95
|
-
if (input && dataDelegate) {
|
|
96
|
-
obs = dataDelegate.loadData(input);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
obs = of(beginLoading());
|
|
100
|
-
}
|
|
101
|
-
return obs;
|
|
102
|
-
}), shareReplay(1));
|
|
103
|
-
this.data$ = this.dataState$.pipe(
|
|
104
|
-
//
|
|
105
|
-
valueFromLoadingState(), distinctUntilChanged(), shareReplay(1));
|
|
106
|
-
this.columns$ = this.data$.pipe(map((x) => x.columns), shareReplay(1));
|
|
107
|
-
this.itemsState$ = this.data$.pipe(switchMap((x) => x.items$), shareReplay(1));
|
|
108
|
-
this.items$ = this.itemsState$.pipe(valueFromLoadingState(), shareReplay(1));
|
|
109
|
-
// MARK: State Changes
|
|
110
|
-
this.setInput = this.updater((state, input) => ({ ...state, input }));
|
|
111
|
-
this.setDataDelegate = this.updater((state, dataDelegate) => ({ ...state, dataDelegate }));
|
|
112
|
-
this.setViewDelegate = this.updater((state, viewDelegate) => ({ ...state, viewDelegate }));
|
|
113
80
|
}
|
|
114
|
-
|
|
115
|
-
|
|
81
|
+
// MARK: Effects
|
|
82
|
+
loadMore = this.effect((input) => {
|
|
83
|
+
return input.pipe(switchMap(() => this.data$.pipe(first(), tap((x) => {
|
|
84
|
+
if (x.loadMore) {
|
|
85
|
+
x.loadMore();
|
|
86
|
+
}
|
|
87
|
+
}))));
|
|
88
|
+
});
|
|
89
|
+
// MARK: Accessors
|
|
90
|
+
input$ = this.state$.pipe(map((x) => x.input), distinctUntilChanged(), shareReplay(1));
|
|
91
|
+
dataDelegate$ = this.state$.pipe(map((x) => x.dataDelegate), distinctUntilChanged(), shareReplay(1));
|
|
92
|
+
currentViewDelegate$ = this.state$.pipe(map((x) => x.viewDelegate), distinctUntilChanged(), shareReplay(1));
|
|
93
|
+
viewDelegate$ = this.currentViewDelegate$.pipe(filterMaybe());
|
|
94
|
+
dataState$ = combineLatest([this.input$, this.dataDelegate$]).pipe(switchMap(([input, dataDelegate]) => {
|
|
95
|
+
let obs;
|
|
96
|
+
if (input && dataDelegate) {
|
|
97
|
+
obs = dataDelegate.loadData(input);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
obs = of(beginLoading());
|
|
101
|
+
}
|
|
102
|
+
return obs;
|
|
103
|
+
}), shareReplay(1));
|
|
104
|
+
data$ = this.dataState$.pipe(
|
|
105
|
+
//
|
|
106
|
+
valueFromLoadingState(), distinctUntilChanged(), shareReplay(1));
|
|
107
|
+
columns$ = this.data$.pipe(map((x) => x.columns), shareReplay(1));
|
|
108
|
+
itemsState$ = this.data$.pipe(switchMap((x) => x.items$), shareReplay(1));
|
|
109
|
+
items$ = this.itemsState$.pipe(valueFromLoadingState(), shareReplay(1));
|
|
110
|
+
// MARK: State Changes
|
|
111
|
+
setInput = this.updater((state, input) => ({ ...state, input }));
|
|
112
|
+
setDataDelegate = this.updater((state, dataDelegate) => ({ ...state, dataDelegate }));
|
|
113
|
+
setViewDelegate = this.updater((state, viewDelegate) => ({ ...state, viewDelegate }));
|
|
114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
115
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableStore });
|
|
116
116
|
}
|
|
117
117
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableStore, decorators: [{
|
|
118
118
|
type: Injectable
|
|
119
119
|
}], ctorParameters: function () { return []; } });
|
|
120
120
|
|
|
121
121
|
class DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
this.dbxTableDateRangeDayDistanceInputCellInputComponent = dbxTableDateRangeDayDistanceInputCellInputComponent;
|
|
125
|
-
}
|
|
122
|
+
_dateAdapter = inject((DateAdapter));
|
|
123
|
+
dbxTableDateRangeDayDistanceInputCellInputComponent = inject(DbxTableDateRangeDayDistanceInputCellInputComponent);
|
|
126
124
|
selectionFinished(date) {
|
|
127
125
|
return this._createFiveDayRange(date);
|
|
128
126
|
}
|
|
@@ -137,42 +135,40 @@ class DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy {
|
|
|
137
135
|
}
|
|
138
136
|
return new DateRange(null, null);
|
|
139
137
|
}
|
|
140
|
-
static
|
|
141
|
-
static
|
|
138
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
139
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy });
|
|
142
140
|
}
|
|
143
141
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy, decorators: [{
|
|
144
142
|
type: Injectable
|
|
145
|
-
}]
|
|
143
|
+
}] });
|
|
146
144
|
const DEFAULT_DBX_TABLE_DATE_RANGE_DAY_DISTIANCE_INPUT_CELL_COMPONENT_CONFIG = { daysDistance: 6 };
|
|
147
145
|
const DEFAULT_DBX_TABLE_DATE_RANGE_DAY_BUTTON_FORMAT = 'MMM dd';
|
|
148
146
|
/**
|
|
149
147
|
* Cell input for a DateRangeDayDistanceInput value.
|
|
150
148
|
*/
|
|
151
149
|
class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}), distinctUntilChanged(), shareReplay(1));
|
|
175
|
-
}
|
|
150
|
+
tableStore = inject((DbxTableStore));
|
|
151
|
+
_syncSub = new SubscriptionObject();
|
|
152
|
+
_valueSub = new SubscriptionObject();
|
|
153
|
+
_pickerOpened = new BehaviorSubject(false);
|
|
154
|
+
_config = new BehaviorSubject(DEFAULT_DBX_TABLE_DATE_RANGE_DAY_DISTIANCE_INPUT_CELL_COMPONENT_CONFIG);
|
|
155
|
+
range = new FormGroup({
|
|
156
|
+
start: new FormControl(null),
|
|
157
|
+
end: new FormControl(null)
|
|
158
|
+
});
|
|
159
|
+
pickerOpened$ = this._pickerOpened.asObservable();
|
|
160
|
+
minDate$ = this._config.pipe(map((x) => x.minDate));
|
|
161
|
+
maxDate$ = this._config.pipe(map((x) => x.maxDate));
|
|
162
|
+
buttonFormat$ = this._config.pipe(map((x) => x.buttonFormat ?? DEFAULT_DBX_TABLE_DATE_RANGE_DAY_BUTTON_FORMAT));
|
|
163
|
+
rangeValue$ = this.range.valueChanges.pipe(startWith(this.range.value));
|
|
164
|
+
dateRangeString$ = combineLatest([this.buttonFormat$, this.rangeValue$]).pipe(map(([buttonFormat, { start, end }]) => {
|
|
165
|
+
if (start && end) {
|
|
166
|
+
return `${format(start, buttonFormat)} - ${format(end, buttonFormat)}`;
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
return `Select Date`;
|
|
170
|
+
}
|
|
171
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
176
172
|
ngOnInit() {
|
|
177
173
|
this._syncSub.subscription = this.tableStore.input$.subscribe((x) => {
|
|
178
174
|
const start = x?.date ?? null;
|
|
@@ -220,8 +216,8 @@ class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
|
220
216
|
pickerClosed() {
|
|
221
217
|
this._pickerOpened.next(false);
|
|
222
218
|
}
|
|
223
|
-
static
|
|
224
|
-
static
|
|
219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
220
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableDateRangeDayDistanceInputCellInputComponent, selector: "ng-component", providers: [
|
|
225
221
|
{
|
|
226
222
|
provide: MAT_DATE_RANGE_SELECTION_STRATEGY,
|
|
227
223
|
useClass: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy
|
|
@@ -235,7 +231,7 @@ class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
|
235
231
|
<button mat-stroked-button color="primary" (click)="picker.open()">{{ dateRangeString$ | async }}</button>
|
|
236
232
|
<mat-date-range-picker #picker (opened)="pickerOpened()" (closed)="pickerClosed()"></mat-date-range-picker>
|
|
237
233
|
</div>
|
|
238
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
234
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2$1.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i2$1.MatStartDate, selector: "input[matStartDate]", inputs: ["errorStateMatcher"], outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i2$1.MatEndDate, selector: "input[matEndDate]", inputs: ["errorStateMatcher"], outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i2$1.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
239
235
|
}
|
|
240
236
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputComponent, decorators: [{
|
|
241
237
|
type: Component,
|
|
@@ -258,7 +254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
258
254
|
],
|
|
259
255
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
260
256
|
}]
|
|
261
|
-
}]
|
|
257
|
+
}] });
|
|
262
258
|
function dbxTableDateRangeDayDistanceInputCellInput(componentConfig) {
|
|
263
259
|
const config = {
|
|
264
260
|
componentClass: DbxTableDateRangeDayDistanceInputCellInputComponent,
|
|
@@ -275,8 +271,8 @@ const declarations = [
|
|
|
275
271
|
DbxTableDateRangeDayDistanceInputCellInputComponent
|
|
276
272
|
];
|
|
277
273
|
class DbxTableDateModule {
|
|
278
|
-
static
|
|
279
|
-
static
|
|
274
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
275
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateModule, declarations: [
|
|
280
276
|
//
|
|
281
277
|
DbxTableDateHeaderComponent,
|
|
282
278
|
DbxTableDateRangeDayDistanceInputCellInputComponent], imports: [
|
|
@@ -292,8 +288,8 @@ class DbxTableDateModule {
|
|
|
292
288
|
MatTableModule], exports: [
|
|
293
289
|
//
|
|
294
290
|
DbxTableDateHeaderComponent,
|
|
295
|
-
DbxTableDateRangeDayDistanceInputCellInputComponent] });
|
|
296
|
-
static
|
|
291
|
+
DbxTableDateRangeDayDistanceInputCellInputComponent] });
|
|
292
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateModule, imports: [
|
|
297
293
|
//
|
|
298
294
|
CommonModule,
|
|
299
295
|
DbxLoadingModule,
|
|
@@ -303,7 +299,7 @@ class DbxTableDateModule {
|
|
|
303
299
|
MatIconModule,
|
|
304
300
|
MatDatepickerModule,
|
|
305
301
|
MatButtonModule,
|
|
306
|
-
MatTableModule] });
|
|
302
|
+
MatTableModule] });
|
|
307
303
|
}
|
|
308
304
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDateModule, decorators: [{
|
|
309
305
|
type: NgModule,
|
|
@@ -326,14 +322,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
326
322
|
}] });
|
|
327
323
|
|
|
328
324
|
class DbxTableActionCellComponent {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableActionCellComponent, deps: [{ token: DbxTableStore }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
334
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableActionCellComponent, selector: "dbx-table-action-cell", ngImport: i0, template: `
|
|
325
|
+
tableStore = inject(DbxTableStore);
|
|
326
|
+
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.summaryRowEnd), distinctUntilChanged());
|
|
327
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableActionCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
328
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableActionCellComponent, selector: "dbx-table-action-cell", ngImport: i0, template: `
|
|
335
329
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
336
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
330
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
337
331
|
}
|
|
338
332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableActionCellComponent, decorators: [{
|
|
339
333
|
type: Component,
|
|
@@ -344,20 +338,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
344
338
|
`,
|
|
345
339
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
346
340
|
}]
|
|
347
|
-
}]
|
|
341
|
+
}] });
|
|
348
342
|
|
|
349
343
|
/**
|
|
350
344
|
* A table header component used for injecting the input picker view.
|
|
351
345
|
*/
|
|
352
346
|
class DbxTableInputCellComponent {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableInputCellComponent, deps: [{ token: DbxTableStore }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
358
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableInputCellComponent, selector: "dbx-table-input-cell", ngImport: i0, template: `
|
|
347
|
+
tableStore = inject(DbxTableStore);
|
|
348
|
+
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.inputHeader), distinctUntilChanged());
|
|
349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableInputCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
350
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableInputCellComponent, selector: "dbx-table-input-cell", ngImport: i0, template: `
|
|
359
351
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
360
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
352
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
361
353
|
}
|
|
362
354
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableInputCellComponent, decorators: [{
|
|
363
355
|
type: Component,
|
|
@@ -368,17 +360,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
368
360
|
`,
|
|
369
361
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
370
362
|
}]
|
|
371
|
-
}]
|
|
363
|
+
}] });
|
|
372
364
|
|
|
373
365
|
class DbxTableSummaryEndCellComponent {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableSummaryEndCellComponent, deps: [{ token: DbxTableStore }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
379
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableSummaryEndCellComponent, selector: "dbx-table-summary-end-cell", ngImport: i0, template: `
|
|
366
|
+
tableStore = inject(DbxTableStore);
|
|
367
|
+
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.summaryRowEnd), distinctUntilChanged());
|
|
368
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableSummaryEndCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
369
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableSummaryEndCellComponent, selector: "dbx-table-summary-end-cell", ngImport: i0, template: `
|
|
380
370
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
381
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
371
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
382
372
|
}
|
|
383
373
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableSummaryEndCellComponent, decorators: [{
|
|
384
374
|
type: Component,
|
|
@@ -389,20 +379,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
389
379
|
`,
|
|
390
380
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
391
381
|
}]
|
|
392
|
-
}]
|
|
382
|
+
}] });
|
|
393
383
|
|
|
394
384
|
/**
|
|
395
385
|
* A table header component used for injecting the input picker view.
|
|
396
386
|
*/
|
|
397
387
|
class DbxTableSummaryStartCellComponent {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableSummaryStartCellComponent, deps: [{ token: DbxTableStore }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
403
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableSummaryStartCellComponent, selector: "dbx-table-summary-start-cell", ngImport: i0, template: `
|
|
388
|
+
tableStore = inject(DbxTableStore);
|
|
389
|
+
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.summaryRowHeader), distinctUntilChanged());
|
|
390
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableSummaryStartCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
391
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableSummaryStartCellComponent, selector: "dbx-table-summary-start-cell", ngImport: i0, template: `
|
|
404
392
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
405
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
393
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
406
394
|
}
|
|
407
395
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableSummaryStartCellComponent, decorators: [{
|
|
408
396
|
type: Component,
|
|
@@ -413,49 +401,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
413
401
|
`,
|
|
414
402
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
415
403
|
}]
|
|
416
|
-
}]
|
|
404
|
+
}] });
|
|
417
405
|
|
|
418
406
|
/**
|
|
419
407
|
* Abstract directive that has a column input.
|
|
420
408
|
*/
|
|
421
409
|
class AbstractDbxTableColumnDirective {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
this.column$ = this._column.pipe(filterMaybe(), distinctUntilChanged());
|
|
426
|
-
}
|
|
410
|
+
tableStore = inject((DbxTableStore));
|
|
411
|
+
_column = new BehaviorSubject(undefined);
|
|
412
|
+
column$ = this._column.pipe(filterMaybe(), distinctUntilChanged());
|
|
427
413
|
set column(column) {
|
|
428
414
|
this._column.next(column);
|
|
429
415
|
}
|
|
430
416
|
ngOnDestroy() {
|
|
431
417
|
this._column.complete();
|
|
432
418
|
}
|
|
433
|
-
static
|
|
434
|
-
static
|
|
419
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractDbxTableColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
420
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractDbxTableColumnDirective, inputs: { column: "column" }, ngImport: i0 });
|
|
435
421
|
}
|
|
436
422
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractDbxTableColumnDirective, decorators: [{
|
|
437
423
|
type: Directive
|
|
438
|
-
}],
|
|
424
|
+
}], propDecorators: { column: [{
|
|
439
425
|
type: Input
|
|
440
426
|
}] } });
|
|
441
427
|
|
|
442
428
|
class DbxTableColumnHeaderComponent extends AbstractDbxTableColumnDirective {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}
|
|
455
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableColumnHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
456
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableColumnHeaderComponent, selector: "dbx-table-column-header", usesInheritance: true, ngImport: i0, template: `
|
|
429
|
+
config$ = this.tableStore.viewDelegate$.pipe(switchMap((viewDelegate) => {
|
|
430
|
+
const columnHeader = viewDelegate.columnHeader;
|
|
431
|
+
if (columnHeader) {
|
|
432
|
+
return this.column$.pipe(map((x) => columnHeader(x)));
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
return of(undefined);
|
|
436
|
+
}
|
|
437
|
+
}), distinctUntilChanged());
|
|
438
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableColumnHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
439
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableColumnHeaderComponent, selector: "dbx-table-column-header", usesInheritance: true, ngImport: i0, template: `
|
|
457
440
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
458
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
441
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
459
442
|
}
|
|
460
443
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableColumnHeaderComponent, decorators: [{
|
|
461
444
|
type: Component,
|
|
@@ -469,22 +452,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
469
452
|
}] });
|
|
470
453
|
|
|
471
454
|
class DbxTableColumnFooterComponent extends AbstractDbxTableColumnDirective {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableColumnFooterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
485
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableColumnFooterComponent, selector: "dbx-table-column-footer", usesInheritance: true, ngImport: i0, template: `
|
|
455
|
+
config$ = this.tableStore.viewDelegate$.pipe(switchMap((viewDelegate) => {
|
|
456
|
+
const columnFooter = viewDelegate.columnFooter;
|
|
457
|
+
if (columnFooter) {
|
|
458
|
+
return this.column$.pipe(map((x) => columnFooter(x)));
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
return of(undefined);
|
|
462
|
+
}
|
|
463
|
+
}), distinctUntilChanged());
|
|
464
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableColumnFooterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
465
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableColumnFooterComponent, selector: "dbx-table-column-footer", usesInheritance: true, ngImport: i0, template: `
|
|
486
466
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
487
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
467
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
488
468
|
}
|
|
489
469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableColumnFooterComponent, decorators: [{
|
|
490
470
|
type: Component,
|
|
@@ -501,33 +481,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
501
481
|
* Abstract directive that has an element input.
|
|
502
482
|
*/
|
|
503
483
|
class AbstractDbxTableElementDirective {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
this.element$ = this._element.pipe(filterMaybe(), distinctUntilChanged());
|
|
508
|
-
}
|
|
484
|
+
tableStore = inject((DbxTableStore));
|
|
485
|
+
_element = new BehaviorSubject(undefined);
|
|
486
|
+
element$ = this._element.pipe(filterMaybe(), distinctUntilChanged());
|
|
509
487
|
set element(element) {
|
|
510
488
|
this._element.next(element);
|
|
511
489
|
}
|
|
512
490
|
ngOnDestroy() {
|
|
513
491
|
this._element.complete();
|
|
514
492
|
}
|
|
515
|
-
static
|
|
516
|
-
static
|
|
493
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractDbxTableElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
494
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AbstractDbxTableElementDirective, inputs: { element: "element" }, ngImport: i0 });
|
|
517
495
|
}
|
|
518
496
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractDbxTableElementDirective, decorators: [{
|
|
519
497
|
type: Directive
|
|
520
|
-
}],
|
|
498
|
+
}], propDecorators: { element: [{
|
|
521
499
|
type: Input
|
|
522
500
|
}] } });
|
|
523
501
|
|
|
524
502
|
class DbxTableItemCellComponent extends AbstractDbxTableElementDirective {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
this.column$ = this._column.pipe(filterMaybe(), distinctUntilChanged());
|
|
529
|
-
this.config$ = this.tableStore.viewDelegate$.pipe(switchMap((viewDelegate) => combineLatest([this.column$, this.element$]).pipe(map(([column, element]) => viewDelegate.itemCell(column, element)))), distinctUntilChanged());
|
|
530
|
-
}
|
|
503
|
+
_column = new BehaviorSubject(undefined);
|
|
504
|
+
column$ = this._column.pipe(filterMaybe(), distinctUntilChanged());
|
|
505
|
+
config$ = this.tableStore.viewDelegate$.pipe(switchMap((viewDelegate) => combineLatest([this.column$, this.element$]).pipe(map(([column, element]) => viewDelegate.itemCell(column, element)))), distinctUntilChanged());
|
|
531
506
|
set column(column) {
|
|
532
507
|
this._column.next(column);
|
|
533
508
|
}
|
|
@@ -535,10 +510,10 @@ class DbxTableItemCellComponent extends AbstractDbxTableElementDirective {
|
|
|
535
510
|
super.ngOnDestroy();
|
|
536
511
|
this._column.complete();
|
|
537
512
|
}
|
|
538
|
-
static
|
|
539
|
-
static
|
|
513
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableItemCellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
514
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableItemCellComponent, selector: "dbx-table-item-cell", inputs: { column: "column" }, usesInheritance: true, ngImport: i0, template: `
|
|
540
515
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
541
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
516
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
542
517
|
}
|
|
543
518
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableItemCellComponent, decorators: [{
|
|
544
519
|
type: Component,
|
|
@@ -554,14 +529,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
554
529
|
}] } });
|
|
555
530
|
|
|
556
531
|
class DbxTableItemHeaderComponent extends AbstractDbxTableElementDirective {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableItemHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
562
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableItemHeaderComponent, selector: "dbx-table-item-header", usesInheritance: true, ngImport: i0, template: `
|
|
532
|
+
config$ = this.tableStore.viewDelegate$.pipe(switchMap((viewDelegate) => this.element$.pipe(map((x) => viewDelegate.itemHeader(x)))), distinctUntilChanged());
|
|
533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableItemHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
534
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableItemHeaderComponent, selector: "dbx-table-item-header", usesInheritance: true, ngImport: i0, template: `
|
|
563
535
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
564
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
536
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
565
537
|
}
|
|
566
538
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableItemHeaderComponent, decorators: [{
|
|
567
539
|
type: Component,
|
|
@@ -575,22 +547,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
575
547
|
}] });
|
|
576
548
|
|
|
577
549
|
class DbxTableItemActionComponent extends AbstractDbxTableElementDirective {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableItemActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
591
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableItemActionComponent, selector: "dbx-table-item-action", usesInheritance: true, ngImport: i0, template: `
|
|
550
|
+
config$ = this.tableStore.viewDelegate$.pipe(switchMap((viewDelegate) => {
|
|
551
|
+
const itemAction = viewDelegate.itemAction;
|
|
552
|
+
if (itemAction) {
|
|
553
|
+
return this.element$.pipe(map((x) => itemAction(x)));
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
return of(undefined);
|
|
557
|
+
}
|
|
558
|
+
}), distinctUntilChanged());
|
|
559
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableItemActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
560
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableItemActionComponent, selector: "dbx-table-item-action", usesInheritance: true, ngImport: i0, template: `
|
|
592
561
|
<dbx-injection [config]="config$ | async"></dbx-injection>
|
|
593
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
562
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
594
563
|
}
|
|
595
564
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableItemActionComponent, decorators: [{
|
|
596
565
|
type: Component,
|
|
@@ -609,46 +578,42 @@ const DBX_TABLE_ACTIONS_COLUMN_NAME = '_actions';
|
|
|
609
578
|
* A table with fixed content
|
|
610
579
|
*/
|
|
611
580
|
class DbxTableViewComponent {
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
this.
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
this.dataLoadingContext = loadingStateContext({ obs: this.tableStore.itemsState$ });
|
|
630
|
-
}
|
|
581
|
+
tableStore = inject((DbxTableStore));
|
|
582
|
+
DEFAULT_TRACK_BY_FUNCTION = (index) => {
|
|
583
|
+
return index;
|
|
584
|
+
};
|
|
585
|
+
scrollDistance = 0.5;
|
|
586
|
+
throttleScroll = 50;
|
|
587
|
+
itemsColumnName = DBX_TABLE_ITEMS_COLUMN_NAME;
|
|
588
|
+
actionsColumnName = DBX_TABLE_ACTIONS_COLUMN_NAME;
|
|
589
|
+
innerColumns$ = this.tableStore.columns$;
|
|
590
|
+
innerColumnNames$ = this.innerColumns$.pipe(map((x) => x.map((y) => y.columnName)), shareReplay(1));
|
|
591
|
+
elements$ = this.tableStore.items$;
|
|
592
|
+
displayedColumns$ = this.innerColumnNames$.pipe(map((columnNames) => {
|
|
593
|
+
return [this.itemsColumnName, ...columnNames, this.actionsColumnName];
|
|
594
|
+
}), shareReplay(1));
|
|
595
|
+
trackByFunction$ = this.tableStore.viewDelegate$.pipe(map((x) => x.trackBy ?? this.DEFAULT_TRACK_BY_FUNCTION), shareReplay(1));
|
|
596
|
+
context = loadingStateContext({ obs: this.tableStore.dataState$ });
|
|
597
|
+
dataLoadingContext = loadingStateContext({ obs: this.tableStore.itemsState$ });
|
|
631
598
|
ngOnDestroy() {
|
|
632
599
|
this.context.destroy();
|
|
633
600
|
}
|
|
634
601
|
onScrollDown() {
|
|
635
602
|
this.tableStore.loadMore();
|
|
636
603
|
}
|
|
637
|
-
static
|
|
638
|
-
static
|
|
604
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
605
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableViewComponent, selector: "dbx-table-view", ngImport: i0, template: "<dbx-loading [context]=\"context\">\n <dbx-loading class=\"dbx-table-view-loading\" [linear]=\"true\" [context]=\"dataLoadingContext\"></dbx-loading>\n <section class=\"dbx-table-view\" infinite-scroll [infiniteScrollDistance]=\"scrollDistance\" [infiniteScrollThrottle]=\"throttleScroll\" [scrollWindow]=\"false\" (scrolled)=\"onScrollDown()\">\n <table class=\"dbx-table-view-table\" mat-table [dataSource]=\"elements$\" [trackBy]=\"(trackByFunction$ | async) || DEFAULT_TRACK_BY_FUNCTION\">\n <!-- Header/Item column -->\n <ng-container [matColumnDef]=\"itemsColumnName\" [sticky]=\"true\">\n <th mat-header-cell *matHeaderCellDef>\n <dbx-table-input-cell></dbx-table-input-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-header [element]=\"element\"></dbx-table-item-header>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-start-cell></dbx-table-summary-start-cell>\n </td>\n </ng-container>\n\n <!-- Column Definitions -->\n <ng-container [matColumnDef]=\"column.columnName\" [sticky]=\"false\" *ngFor=\"let column of innerColumns$ | async\">\n <th mat-header-cell *matHeaderCellDef>\n <dbx-table-column-header [column]=\"column\"></dbx-table-column-header>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-cell [element]=\"element\" [column]=\"column\"></dbx-table-item-cell>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-column-footer [column]=\"column\"></dbx-table-column-footer>\n </td>\n </ng-container>\n\n <!-- Tail/Action column -->\n <ng-container [matColumnDef]=\"actionsColumnName\" [stickyEnd]=\"true\">\n <th mat-header-cell *matHeaderCellDef>\n <dbx-table-action-cell></dbx-table-action-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-action [element]=\"element\"></dbx-table-item-action>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-end-cell></dbx-table-summary-end-cell>\n </td>\n </ng-container>\n\n <!-- Table View -->\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns$ | async; sticky: true\"></tr>\n\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns$ | async\"></tr>\n\n <tr mat-footer-row *matFooterRowDef=\"displayedColumns$ | async; sticky: true\"></tr>\n </table>\n </section>\n</dbx-loading>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$2.DbxLoadingComponent, selector: "dbx-loading", inputs: ["show", "text", "mode", "color", "diameter", "linear", "padding", "context", "loading", "error"] }, { kind: "component", type: i3$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i3$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$1.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i3$1.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i3$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i3$1.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i3$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$1.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "directive", type: i4.InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "component", type: DbxTableColumnHeaderComponent, selector: "dbx-table-column-header" }, { kind: "component", type: DbxTableColumnFooterComponent, selector: "dbx-table-column-footer" }, { kind: "component", type: DbxTableInputCellComponent, selector: "dbx-table-input-cell" }, { kind: "component", type: DbxTableActionCellComponent, selector: "dbx-table-action-cell" }, { kind: "component", type: DbxTableItemCellComponent, selector: "dbx-table-item-cell", inputs: ["column"] }, { kind: "component", type: DbxTableItemHeaderComponent, selector: "dbx-table-item-header" }, { kind: "component", type: DbxTableItemActionComponent, selector: "dbx-table-item-action" }, { kind: "component", type: DbxTableSummaryStartCellComponent, selector: "dbx-table-summary-start-cell" }, { kind: "component", type: DbxTableSummaryEndCellComponent, selector: "dbx-table-summary-end-cell" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
639
606
|
}
|
|
640
607
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableViewComponent, decorators: [{
|
|
641
608
|
type: Component,
|
|
642
609
|
args: [{ selector: 'dbx-table-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<dbx-loading [context]=\"context\">\n <dbx-loading class=\"dbx-table-view-loading\" [linear]=\"true\" [context]=\"dataLoadingContext\"></dbx-loading>\n <section class=\"dbx-table-view\" infinite-scroll [infiniteScrollDistance]=\"scrollDistance\" [infiniteScrollThrottle]=\"throttleScroll\" [scrollWindow]=\"false\" (scrolled)=\"onScrollDown()\">\n <table class=\"dbx-table-view-table\" mat-table [dataSource]=\"elements$\" [trackBy]=\"(trackByFunction$ | async) || DEFAULT_TRACK_BY_FUNCTION\">\n <!-- Header/Item column -->\n <ng-container [matColumnDef]=\"itemsColumnName\" [sticky]=\"true\">\n <th mat-header-cell *matHeaderCellDef>\n <dbx-table-input-cell></dbx-table-input-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-header [element]=\"element\"></dbx-table-item-header>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-start-cell></dbx-table-summary-start-cell>\n </td>\n </ng-container>\n\n <!-- Column Definitions -->\n <ng-container [matColumnDef]=\"column.columnName\" [sticky]=\"false\" *ngFor=\"let column of innerColumns$ | async\">\n <th mat-header-cell *matHeaderCellDef>\n <dbx-table-column-header [column]=\"column\"></dbx-table-column-header>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-cell [element]=\"element\" [column]=\"column\"></dbx-table-item-cell>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-column-footer [column]=\"column\"></dbx-table-column-footer>\n </td>\n </ng-container>\n\n <!-- Tail/Action column -->\n <ng-container [matColumnDef]=\"actionsColumnName\" [stickyEnd]=\"true\">\n <th mat-header-cell *matHeaderCellDef>\n <dbx-table-action-cell></dbx-table-action-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-action [element]=\"element\"></dbx-table-item-action>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-end-cell></dbx-table-summary-end-cell>\n </td>\n </ng-container>\n\n <!-- Table View -->\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns$ | async; sticky: true\"></tr>\n\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns$ | async\"></tr>\n\n <tr mat-footer-row *matFooterRowDef=\"displayedColumns$ | async; sticky: true\"></tr>\n </table>\n </section>\n</dbx-loading>\n" }]
|
|
643
|
-
}]
|
|
610
|
+
}] });
|
|
644
611
|
|
|
645
612
|
/**
|
|
646
613
|
* Directive for providing and configuring a DbxTableStore
|
|
647
614
|
*/
|
|
648
615
|
class DbxTableDirective {
|
|
649
|
-
|
|
650
|
-
this.tableStore = tableStore;
|
|
651
|
-
}
|
|
616
|
+
tableStore = inject((DbxTableStore));
|
|
652
617
|
set dbxTableInput(input) {
|
|
653
618
|
this.tableStore.setInput(input);
|
|
654
619
|
}
|
|
@@ -658,8 +623,8 @@ class DbxTableDirective {
|
|
|
658
623
|
set dbxTableDataDelegate(dbxTableDataDelegate) {
|
|
659
624
|
this.tableStore.setDataDelegate(dbxTableDataDelegate);
|
|
660
625
|
}
|
|
661
|
-
static
|
|
662
|
-
static
|
|
626
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
627
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DbxTableDirective, selector: "[dbxTable]", inputs: { dbxTableInput: "dbxTableInput", dbxTableViewDelegate: "dbxTableViewDelegate", dbxTableDataDelegate: "dbxTableDataDelegate" }, providers: [DbxTableStore], ngImport: i0 });
|
|
663
628
|
}
|
|
664
629
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableDirective, decorators: [{
|
|
665
630
|
type: Directive,
|
|
@@ -667,7 +632,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
667
632
|
selector: '[dbxTable]',
|
|
668
633
|
providers: [DbxTableStore]
|
|
669
634
|
}]
|
|
670
|
-
}],
|
|
635
|
+
}], propDecorators: { dbxTableInput: [{
|
|
671
636
|
type: Input
|
|
672
637
|
}], dbxTableViewDelegate: [{
|
|
673
638
|
type: Input
|
|
@@ -689,8 +654,8 @@ const internalDeclarations = [
|
|
|
689
654
|
DbxTableSummaryEndCellComponent
|
|
690
655
|
];
|
|
691
656
|
class DbxTableModule {
|
|
692
|
-
static
|
|
693
|
-
static
|
|
657
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
658
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxTableModule, declarations: [DbxTableDirective, DbxTableViewComponent,
|
|
694
659
|
//
|
|
695
660
|
DbxTableColumnHeaderComponent,
|
|
696
661
|
DbxTableColumnFooterComponent,
|
|
@@ -706,14 +671,14 @@ class DbxTableModule {
|
|
|
706
671
|
DbxLoadingModule,
|
|
707
672
|
DbxInjectionComponentModule,
|
|
708
673
|
MatTableModule,
|
|
709
|
-
InfiniteScrollModule], exports: [DbxTableDirective, DbxTableViewComponent] });
|
|
710
|
-
static
|
|
674
|
+
InfiniteScrollModule], exports: [DbxTableDirective, DbxTableViewComponent] });
|
|
675
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableModule, imports: [
|
|
711
676
|
//
|
|
712
677
|
CommonModule,
|
|
713
678
|
DbxLoadingModule,
|
|
714
679
|
DbxInjectionComponentModule,
|
|
715
680
|
MatTableModule,
|
|
716
|
-
InfiniteScrollModule] });
|
|
681
|
+
InfiniteScrollModule] });
|
|
717
682
|
}
|
|
718
683
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableModule, decorators: [{
|
|
719
684
|
type: NgModule,
|