@dereekb/dbx-web 10.2.0 → 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
|
@@ -30,8 +30,8 @@ const internalDeclarations = [
|
|
|
30
30
|
DbxTableSummaryEndCellComponent
|
|
31
31
|
];
|
|
32
32
|
export class DbxTableModule {
|
|
33
|
-
static
|
|
34
|
-
static
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxTableModule, declarations: [DbxTableDirective, DbxTableViewComponent,
|
|
35
35
|
//
|
|
36
36
|
DbxTableColumnHeaderComponent,
|
|
37
37
|
DbxTableColumnFooterComponent,
|
|
@@ -47,14 +47,14 @@ export class DbxTableModule {
|
|
|
47
47
|
DbxLoadingModule,
|
|
48
48
|
DbxInjectionComponentModule,
|
|
49
49
|
MatTableModule,
|
|
50
|
-
InfiniteScrollModule], exports: [DbxTableDirective, DbxTableViewComponent] });
|
|
51
|
-
static
|
|
50
|
+
InfiniteScrollModule], exports: [DbxTableDirective, DbxTableViewComponent] });
|
|
51
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableModule, imports: [
|
|
52
52
|
//
|
|
53
53
|
CommonModule,
|
|
54
54
|
DbxLoadingModule,
|
|
55
55
|
DbxInjectionComponentModule,
|
|
56
56
|
MatTableModule,
|
|
57
|
-
InfiniteScrollModule] });
|
|
57
|
+
InfiniteScrollModule] });
|
|
58
58
|
}
|
|
59
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableModule, decorators: [{
|
|
60
60
|
type: NgModule,
|
|
@@ -71,4 +71,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
71
71
|
exports
|
|
72
72
|
}]
|
|
73
73
|
}] });
|
|
74
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZGJ4LXdlYi90YWJsZS9zcmMvbGliL3RhYmxlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNwRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDekQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQU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ableStore extends ComponentStore {
|
|
|
10
10
|
dataDelegate: null,
|
|
11
11
|
viewDelegate: null
|
|
12
12
|
});
|
|
13
|
-
// MARK: Effects
|
|
14
|
-
this.loadMore = this.effect((input) => {
|
|
15
|
-
return input.pipe(switchMap(() => this.data$.pipe(first(), tap((x) => {
|
|
16
|
-
if (x.loadMore) {
|
|
17
|
-
x.loadMore();
|
|
18
|
-
}
|
|
19
|
-
}))));
|
|
20
|
-
});
|
|
21
|
-
// MARK: Accessors
|
|
22
|
-
this.input$ = this.state$.pipe(map((x) => x.input), distinctUntilChanged(), shareReplay(1));
|
|
23
|
-
this.dataDelegate$ = this.state$.pipe(map((x) => x.dataDelegate), distinctUntilChanged(), shareReplay(1));
|
|
24
|
-
this.currentViewDelegate$ = this.state$.pipe(map((x) => x.viewDelegate), distinctUntilChanged(), shareReplay(1));
|
|
25
|
-
this.viewDelegate$ = this.currentViewDelegate$.pipe(filterMaybe());
|
|
26
|
-
this.dataState$ = combineLatest([this.input$, this.dataDelegate$]).pipe(switchMap(([input, dataDelegate]) => {
|
|
27
|
-
let obs;
|
|
28
|
-
if (input && dataDelegate) {
|
|
29
|
-
obs = dataDelegate.loadData(input);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
obs = of(beginLoading());
|
|
33
|
-
}
|
|
34
|
-
return obs;
|
|
35
|
-
}), shareReplay(1));
|
|
36
|
-
this.data$ = this.dataState$.pipe(
|
|
37
|
-
//
|
|
38
|
-
valueFromLoadingState(), distinctUntilChanged(), shareReplay(1));
|
|
39
|
-
this.columns$ = this.data$.pipe(map((x) => x.columns), shareReplay(1));
|
|
40
|
-
this.itemsState$ = this.data$.pipe(switchMap((x) => x.items$), shareReplay(1));
|
|
41
|
-
this.items$ = this.itemsState$.pipe(valueFromLoadingState(), shareReplay(1));
|
|
42
|
-
// MARK: State Changes
|
|
43
|
-
this.setInput = this.updater((state, input) => ({ ...state, input }));
|
|
44
|
-
this.setDataDelegate = this.updater((state, dataDelegate) => ({ ...state, dataDelegate }));
|
|
45
|
-
this.setViewDelegate = this.updater((state, viewDelegate) => ({ ...state, viewDelegate }));
|
|
46
13
|
}
|
|
47
|
-
|
|
48
|
-
|
|
14
|
+
// MARK: Effects
|
|
15
|
+
loadMore = this.effect((input) => {
|
|
16
|
+
return input.pipe(switchMap(() => this.data$.pipe(first(), tap((x) => {
|
|
17
|
+
if (x.loadMore) {
|
|
18
|
+
x.loadMore();
|
|
19
|
+
}
|
|
20
|
+
}))));
|
|
21
|
+
});
|
|
22
|
+
// MARK: Accessors
|
|
23
|
+
input$ = this.state$.pipe(map((x) => x.input), distinctUntilChanged(), shareReplay(1));
|
|
24
|
+
dataDelegate$ = this.state$.pipe(map((x) => x.dataDelegate), distinctUntilChanged(), shareReplay(1));
|
|
25
|
+
currentViewDelegate$ = this.state$.pipe(map((x) => x.viewDelegate), distinctUntilChanged(), shareReplay(1));
|
|
26
|
+
viewDelegate$ = this.currentViewDelegate$.pipe(filterMaybe());
|
|
27
|
+
dataState$ = combineLatest([this.input$, this.dataDelegate$]).pipe(switchMap(([input, dataDelegate]) => {
|
|
28
|
+
let obs;
|
|
29
|
+
if (input && dataDelegate) {
|
|
30
|
+
obs = dataDelegate.loadData(input);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
obs = of(beginLoading());
|
|
34
|
+
}
|
|
35
|
+
return obs;
|
|
36
|
+
}), shareReplay(1));
|
|
37
|
+
data$ = this.dataState$.pipe(
|
|
38
|
+
//
|
|
39
|
+
valueFromLoadingState(), distinctUntilChanged(), shareReplay(1));
|
|
40
|
+
columns$ = this.data$.pipe(map((x) => x.columns), shareReplay(1));
|
|
41
|
+
itemsState$ = this.data$.pipe(switchMap((x) => x.items$), shareReplay(1));
|
|
42
|
+
items$ = this.itemsState$.pipe(valueFromLoadingState(), shareReplay(1));
|
|
43
|
+
// MARK: State Changes
|
|
44
|
+
setInput = this.updater((state, input) => ({ ...state, input }));
|
|
45
|
+
setDataDelegate = this.updater((state, dataDelegate) => ({ ...state, dataDelegate }));
|
|
46
|
+
setViewDelegate = this.updater((state, viewDelegate) => ({ ...state, viewDelegate }));
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
48
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableStore });
|
|
49
49
|
}
|
|
50
50
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxTableStore, decorators: [{
|
|
51
51
|
type: Injectable
|
|
52
52
|
}], ctorParameters: function () { return []; } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuc3RvcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtd2ViL3RhYmxlL3NyYy9saWIvdGFibGUuc3RvcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBc0MscUJBQXFCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFckgsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ3ZELE9BQU8sRUFBYyxvQkFBb0IsRUFBRSxLQUFLLEVBQUUsR0FBRyxFQUFFLFdBQVcsRUFBRSxTQUFTLEVBQUUsR0FBRyxFQUFFLGFBQWEsRUFBRSxFQUFFLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBbUJwSCxNQUFNLE9BQU8sYUFBcUQsU0FBUSxjQUEyQztJ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YXRlIH0pKTtcbiAgcmVhZG9ubHkgc2V0Vmlld0RlbGVnYXRlID0gdGhpcy51cGRhdGVyKChzdGF0ZSwgdmlld0RlbGVnYXRlOiBNYXliZTxEYnhUYWJsZVZpZXdEZWxlZ2F0ZTxJLCBDLCBUPj4pID0+ICh7IC4uLnN0YXRlLCB2aWV3RGVsZWdhdGUgfSkpO1xufVxuIl19
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, EventEmitter, Output, NgModule } from '@angular/core';
|
|
2
|
+
import { Injectable, inject, Component, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
3
|
import { startOfDay, endOfDay, startOfWeek, endOfWeek, startOfMonth, endOfMonth, differenceInDays, isAfter, isBefore, addDays, isSameDay, isSameMonth } from 'date-fns';
|
|
4
4
|
import { isDateInDateRange, isSameDateRange, isSameDateDay, isFullDateRange, clampDateToDateRange, formatToTimeAndDurationString, sortDateRangeStartAscendingCompareFunction } from '@dereekb/date';
|
|
5
5
|
import { invertDecision, reduceBooleansWithAndFn } from '@dereekb/util';
|
|
6
6
|
import { ComponentStore } from '@ngrx/component-store';
|
|
7
7
|
import { distinctUntilChanged, switchMap, first, tap, map, shareReplay, combineLatest, withLatestFrom } from 'rxjs';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i1 from '@angular/common';
|
|
9
9
|
import { CommonModule } from '@angular/common';
|
|
10
|
-
import * as
|
|
10
|
+
import * as i2$1 from '@angular/material/button-toggle';
|
|
11
11
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
12
|
-
import * as
|
|
12
|
+
import * as i3$1 from 'angular-calendar';
|
|
13
13
|
import { CalendarModule, CalendarDayModule, CalendarWeekModule, DateAdapter } from 'angular-calendar';
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
14
|
+
import * as i6 from '@ngbracket/ngx-layout/extended';
|
|
15
|
+
import * as i2 from '@angular/material/icon';
|
|
16
16
|
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i3 from '@angular/material/button';
|
|
18
18
|
import { MatButtonModule } from '@angular/material/button';
|
|
19
|
-
import * as
|
|
19
|
+
import * as i4 from '@dereekb/dbx-web';
|
|
20
20
|
import { DbxButtonModule, DbxPopoverInteractionModule } from '@dereekb/dbx-web';
|
|
21
|
-
import * as
|
|
21
|
+
import * as i5 from '@ngbracket/ngx-layout/flex';
|
|
22
22
|
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
|
|
23
23
|
import { FlexLayoutModule } from '@ngbracket/ngx-layout';
|
|
24
24
|
|
|
@@ -73,96 +73,96 @@ class DbxCalendarStore extends ComponentStore {
|
|
|
73
73
|
dateTappedTwice: false,
|
|
74
74
|
events: []
|
|
75
75
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}))));
|
|
83
|
-
});
|
|
84
|
-
this.tapNext = this.effect((input) => {
|
|
85
|
-
return input.pipe(switchMap(() => this.visibleDateRange$.pipe(first(), tap(({ end, isMaxDateVisible }) => {
|
|
86
|
-
if (!isMaxDateVisible) {
|
|
87
|
-
this.tapDay(addDays(end, 1));
|
|
88
|
-
}
|
|
89
|
-
}))));
|
|
90
|
-
});
|
|
91
|
-
this.tapPrevious = this.effect((input) => {
|
|
92
|
-
return input.pipe(switchMap(() => this.visibleDateRange$.pipe(first(), tap(({ start, isMinDateVisible }) => {
|
|
93
|
-
if (!isMinDateVisible) {
|
|
94
|
-
this.tapDay(addDays(start, -1));
|
|
95
|
-
}
|
|
96
|
-
}))));
|
|
97
|
-
});
|
|
98
|
-
this.tapLastPage = this.effect((input) => {
|
|
99
|
-
return input.pipe(switchMap(() => this.maxNavigationDate$.pipe(first(), tap((x) => {
|
|
100
|
-
if (x) {
|
|
101
|
-
this.tapDay(x);
|
|
102
|
-
}
|
|
103
|
-
}))));
|
|
104
|
-
});
|
|
105
|
-
// MARK: Accessors
|
|
106
|
-
this.showTodayButton$ = this.state$.pipe(map((x) => x.showTodayButton), distinctUntilChanged(), shareReplay(1));
|
|
107
|
-
this.date$ = this.state$.pipe(map((x) => x.date));
|
|
108
|
-
this.dateTappedTwice$ = this.state$.pipe(map((x) => x.dateTappedTwice));
|
|
109
|
-
this.events$ = this.state$.pipe(map((x) => x.events));
|
|
110
|
-
// TODO: Filter to be events that will only be displayed based on the current calendar.
|
|
111
|
-
this.visibleEvents$ = this.state$.pipe(map((x) => x.events), shareReplay(1));
|
|
112
|
-
this.eventsForDateState$ = this.state$.pipe(distinctUntilDateOrTypeOrEventsChanged, map((state) => ({
|
|
113
|
-
date: state.date,
|
|
114
|
-
events: state.events.filter((x) => isSameDay(x.start, state.date) || (x.end && isBefore(x.start, state.date) && isAfter(x.end, state.date))),
|
|
115
|
-
dateTappedTwice: state.dateTappedTwice
|
|
116
|
-
})), shareReplay(1));
|
|
117
|
-
this.eventsForDate$ = this.eventsForDateState$.pipe(map((state) => state.events));
|
|
118
|
-
this.visibleDateRange$ = this.state$.pipe(
|
|
119
|
-
// If the date or type changes, check again.
|
|
120
|
-
distinctUntilChanged((a, b) => a?.date === b?.date && a?.type === b?.type), map(visibleDateRangeForCalendarState), distinctUntilChanged((a, b) => {
|
|
121
|
-
if (a.type === b.type) {
|
|
122
|
-
return isSameDay(a.start, b.start);
|
|
76
|
+
}
|
|
77
|
+
// MARK: Effects
|
|
78
|
+
tapFirstPage = this.effect((input) => {
|
|
79
|
+
return input.pipe(switchMap(() => this.minNavigationDate$.pipe(first(), tap((x) => {
|
|
80
|
+
if (x) {
|
|
81
|
+
this.tapDay(x);
|
|
123
82
|
}
|
|
124
|
-
|
|
125
|
-
|
|
83
|
+
}))));
|
|
84
|
+
});
|
|
85
|
+
tapNext = this.effect((input) => {
|
|
86
|
+
return input.pipe(switchMap(() => this.visibleDateRange$.pipe(first(), tap(({ end, isMaxDateVisible }) => {
|
|
87
|
+
if (!isMaxDateVisible) {
|
|
88
|
+
this.tapDay(addDays(end, 1));
|
|
126
89
|
}
|
|
127
|
-
})
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
})
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
90
|
+
}))));
|
|
91
|
+
});
|
|
92
|
+
tapPrevious = this.effect((input) => {
|
|
93
|
+
return input.pipe(switchMap(() => this.visibleDateRange$.pipe(first(), tap(({ start, isMinDateVisible }) => {
|
|
94
|
+
if (!isMinDateVisible) {
|
|
95
|
+
this.tapDay(addDays(start, -1));
|
|
96
|
+
}
|
|
97
|
+
}))));
|
|
98
|
+
});
|
|
99
|
+
tapLastPage = this.effect((input) => {
|
|
100
|
+
return input.pipe(switchMap(() => this.maxNavigationDate$.pipe(first(), tap((x) => {
|
|
101
|
+
if (x) {
|
|
102
|
+
this.tapDay(x);
|
|
103
|
+
}
|
|
104
|
+
}))));
|
|
105
|
+
});
|
|
106
|
+
// MARK: Accessors
|
|
107
|
+
showTodayButton$ = this.state$.pipe(map((x) => x.showTodayButton), distinctUntilChanged(), shareReplay(1));
|
|
108
|
+
date$ = this.state$.pipe(map((x) => x.date));
|
|
109
|
+
dateTappedTwice$ = this.state$.pipe(map((x) => x.dateTappedTwice));
|
|
110
|
+
events$ = this.state$.pipe(map((x) => x.events));
|
|
111
|
+
// TODO: Filter to be events that will only be displayed based on the current calendar.
|
|
112
|
+
visibleEvents$ = this.state$.pipe(map((x) => x.events), shareReplay(1));
|
|
113
|
+
eventsForDateState$ = this.state$.pipe(distinctUntilDateOrTypeOrEventsChanged, map((state) => ({
|
|
114
|
+
date: state.date,
|
|
115
|
+
events: state.events.filter((x) => isSameDay(x.start, state.date) || (x.end && isBefore(x.start, state.date) && isAfter(x.end, state.date))),
|
|
116
|
+
dateTappedTwice: state.dateTappedTwice
|
|
117
|
+
})), shareReplay(1));
|
|
118
|
+
eventsForDate$ = this.eventsForDateState$.pipe(map((state) => state.events));
|
|
119
|
+
visibleDateRange$ = this.state$.pipe(
|
|
120
|
+
// If the date or type changes, check again.
|
|
121
|
+
distinctUntilChanged((a, b) => a?.date === b?.date && a?.type === b?.type), map(visibleDateRangeForCalendarState), distinctUntilChanged((a, b) => {
|
|
122
|
+
if (a.type === b.type) {
|
|
123
|
+
return isSameDay(a.start, b.start);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
return false; // Type changed, date range changed.
|
|
127
|
+
}
|
|
128
|
+
}), shareReplay(1));
|
|
129
|
+
isLookingAtToday$ = this.visibleDateRange$.pipe(map((x) => isDateInDateRange(new Date(), x)), distinctUntilChanged(), shareReplay(1));
|
|
130
|
+
isLookingAtMinimumDate$ = this.visibleDateRange$.pipe(map((x) => x.isMinDateVisible), distinctUntilChanged(), shareReplay(1));
|
|
131
|
+
isLookingAtMaximumDate$ = this.visibleDateRange$.pipe(map((x) => x.isMaxDateVisible), distinctUntilChanged(), shareReplay(1));
|
|
132
|
+
hasMultiplePages$ = combineLatest([this.isLookingAtMinimumDate$, this.isLookingAtMaximumDate$]).pipe(map(invertDecision(reduceBooleansWithAndFn(true))), distinctUntilChanged(), shareReplay(1));
|
|
133
|
+
displayType$ = this.state$.pipe(map((x) => x.type), distinctUntilChanged((a, b) => a === b), shareReplay(1));
|
|
134
|
+
navigationRangeLimit$ = this.state$.pipe(map((x) => x.navigationRangeLimit), distinctUntilChanged(isSameDateRange), shareReplay(1));
|
|
135
|
+
minNavigationDate$ = this.navigationRangeLimit$.pipe(map((x) => x?.start), distinctUntilChanged(isSameDateDay), shareReplay(1));
|
|
136
|
+
maxNavigationDate$ = this.navigationRangeLimit$.pipe(map((x) => x?.end), distinctUntilChanged(isSameDateDay), shareReplay(1));
|
|
137
|
+
isTodayInNavigationRangeLimit$ = this.navigationRangeLimit$.pipe(map((x) => isDateInDateRange(new Date(), x ?? {})), distinctUntilChanged(), shareReplay(1));
|
|
138
|
+
canJumpToToday$ = combineLatest([this.isLookingAtToday$, this.isTodayInNavigationRangeLimit$]).pipe(map(([isLookingAtToday, isTodayInNavigationRangeLimit]) => !isLookingAtToday && isTodayInNavigationRangeLimit), distinctUntilChanged(), shareReplay(1));
|
|
139
|
+
canShowPageButtons$ = this.state$.pipe(map((x) => x.showPageButtons && x.navigationRangeLimit && isFullDateRange(x.navigationRangeLimit)), distinctUntilChanged(), shareReplay(1));
|
|
140
|
+
showPageButtons$ = combineLatest([this.canShowPageButtons$, this.isLookingAtMinimumDate$, this.isLookingAtMaximumDate$]).pipe(map(([canShowPageButtons, isLookingAtMinimumDate, isLookingAtMaximumDate]) => {
|
|
141
|
+
return canShowPageButtons && !(isLookingAtMinimumDate && isLookingAtMaximumDate);
|
|
142
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
143
|
+
// MARK: State Changes
|
|
144
|
+
/**
|
|
145
|
+
* Tap a day.
|
|
146
|
+
*
|
|
147
|
+
* - If the same day is presented, dateTappedTwice is flipped.
|
|
148
|
+
*/
|
|
149
|
+
tapDay = this.updater((state, date) => updateCalendarStateWithTappedDate(state, date));
|
|
150
|
+
/**
|
|
151
|
+
* Set all events on the calendar.
|
|
152
|
+
*/
|
|
153
|
+
setEvents = this.updater((state, events) => ({ ...state, events }));
|
|
154
|
+
/**
|
|
155
|
+
* Set all events on the calendar.
|
|
156
|
+
*/
|
|
157
|
+
setDisplayType = this.updater((state, type) => ({ ...state, type }));
|
|
158
|
+
/**
|
|
159
|
+
* Sets the navigation limit.
|
|
160
|
+
*/
|
|
161
|
+
setNavigationRangeLimit = this.updater((state, navigationRangeLimit) => updateCalendarStateWithNavigationRangeLimit(state, navigationRangeLimit));
|
|
162
|
+
setShowTodayButton = this.updater((state, showTodayButton) => ({ ...state, showTodayButton: showTodayButton != null ? showTodayButton : true }));
|
|
163
|
+
setShowPageButtons = this.updater((state, showPageButtons) => ({ ...state, showPageButtons: showPageButtons != null ? showPageButtons : false }));
|
|
164
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
165
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarStore });
|
|
166
166
|
}
|
|
167
167
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarStore, decorators: [{
|
|
168
168
|
type: Injectable
|
|
@@ -219,23 +219,21 @@ function prepareAndSortCalendarEvents(events) {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
class DbxCalendarBaseComponent {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
this.displayType$ = this.calendarStore.displayType$;
|
|
238
|
-
}
|
|
222
|
+
calendarStore = inject((DbxCalendarStore));
|
|
223
|
+
viewDate$ = this.calendarStore.date$;
|
|
224
|
+
showTodayButton$ = this.calendarStore.showTodayButton$;
|
|
225
|
+
canJumpToToday$ = this.calendarStore.canJumpToToday$;
|
|
226
|
+
isLookingAtMinimumDate$ = this.calendarStore.isLookingAtMinimumDate$;
|
|
227
|
+
isLookingAtMaximumDate$ = this.calendarStore.isLookingAtMaximumDate$;
|
|
228
|
+
hasMultiplePages$ = this.calendarStore.hasMultiplePages$;
|
|
229
|
+
showPageButtons$ = this.calendarStore.showPageButtons$;
|
|
230
|
+
activeDayIsOpen$ = this.calendarStore.eventsForDateState$.pipe(withLatestFrom(this.calendarStore.date$), map(([x, date]) => {
|
|
231
|
+
if (x.events.length && isSameMonth(x.date, date)) {
|
|
232
|
+
return !x.dateTappedTwice;
|
|
233
|
+
}
|
|
234
|
+
return false;
|
|
235
|
+
}));
|
|
236
|
+
displayType$ = this.calendarStore.displayType$;
|
|
239
237
|
todayClicked() {
|
|
240
238
|
this.calendarStore.tapDay(new Date());
|
|
241
239
|
}
|
|
@@ -254,28 +252,26 @@ class DbxCalendarBaseComponent {
|
|
|
254
252
|
typeToggleChanged(event) {
|
|
255
253
|
this.calendarStore.setDisplayType(event.value);
|
|
256
254
|
}
|
|
257
|
-
static
|
|
258
|
-
static
|
|
255
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
256
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxCalendarBaseComponent, selector: "dbx-calendar-base", ngImport: i0, template: "<div class=\"dbx-calendar\">\n <h3 class=\"dbx-calendar-title\">{{ (viewDate$ | async)! | calendarDate: (displayType$ | async) + 'ViewTitle':'en' }}</h3>\n <div class=\"dbx-calendar-header\">\n <div class=\"dbx-calendar-controls\" fxLayout=\"row\" fxLayout.xs=\"column\" ngClass.xs=\"dbx-calendar-controls-compact\">\n <span class=\"dbx-calendar-controls-left dbx-flex-bar\" fxFlex=\"nogrow\">\n <button *ngIf=\"showTodayButton$ | async\" mat-stroked-button [disabled]=\"!(canJumpToToday$ | async)\" (click)=\"todayClicked()\">Today</button>\n <dbx-button-spacer></dbx-button-spacer>\n <div class=\"d-iblock\" *ngIf=\"hasMultiplePages$ | async\">\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" aria-label=\"first page button\" (click)=\"firstPageButtonClicked()\">\n <mat-icon>first_page</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" [attr.aria-label]=\"'Previous ' + (displayType$ | async) + ' button'\" (click)=\"previousButtonClicked()\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" [attr.aria-label]=\"'Next' + (displayType$ | async)! + ' button'\" (click)=\"nextButtonClicked()\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" aria-label=\"last page button\" (click)=\"lastPageButtonClicked()\">\n <mat-icon>last_page</mat-icon>\n </button>\n </div>\n </span>\n <span class=\"spacer\"></span>\n <span class=\"dbx-calendar-controls-right\" fxFlex=\"nogrow\">\n <ng-content select=\"[controls]\"></ng-content>\n </span>\n </div>\n </div>\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.ɵCalendarDatePipe, name: "calendarDate" }] });
|
|
259
257
|
}
|
|
260
258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarBaseComponent, decorators: [{
|
|
261
259
|
type: Component,
|
|
262
260
|
args: [{ selector: 'dbx-calendar-base', template: "<div class=\"dbx-calendar\">\n <h3 class=\"dbx-calendar-title\">{{ (viewDate$ | async)! | calendarDate: (displayType$ | async) + 'ViewTitle':'en' }}</h3>\n <div class=\"dbx-calendar-header\">\n <div class=\"dbx-calendar-controls\" fxLayout=\"row\" fxLayout.xs=\"column\" ngClass.xs=\"dbx-calendar-controls-compact\">\n <span class=\"dbx-calendar-controls-left dbx-flex-bar\" fxFlex=\"nogrow\">\n <button *ngIf=\"showTodayButton$ | async\" mat-stroked-button [disabled]=\"!(canJumpToToday$ | async)\" (click)=\"todayClicked()\">Today</button>\n <dbx-button-spacer></dbx-button-spacer>\n <div class=\"d-iblock\" *ngIf=\"hasMultiplePages$ | async\">\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" aria-label=\"first page button\" (click)=\"firstPageButtonClicked()\">\n <mat-icon>first_page</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" [attr.aria-label]=\"'Previous ' + (displayType$ | async) + ' button'\" (click)=\"previousButtonClicked()\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" [attr.aria-label]=\"'Next' + (displayType$ | async)! + ' button'\" (click)=\"nextButtonClicked()\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" aria-label=\"last page button\" (click)=\"lastPageButtonClicked()\">\n <mat-icon>last_page</mat-icon>\n </button>\n </div>\n </span>\n <span class=\"spacer\"></span>\n <span class=\"dbx-calendar-controls-right\" fxFlex=\"nogrow\">\n <ng-content select=\"[controls]\"></ng-content>\n </span>\n </div>\n </div>\n <ng-content></ng-content>\n</div>\n" }]
|
|
263
|
-
}]
|
|
261
|
+
}] });
|
|
264
262
|
|
|
265
263
|
class DbxCalendarComponent {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
this.displayType$ = this.calendarStore.displayType$;
|
|
278
|
-
}
|
|
264
|
+
calendarStore = inject((DbxCalendarStore));
|
|
265
|
+
clickEvent = new EventEmitter();
|
|
266
|
+
viewDate$ = this.calendarStore.date$;
|
|
267
|
+
events$ = this.calendarStore.visibleEvents$.pipe(map(prepareAndSortCalendarEvents), shareReplay(1));
|
|
268
|
+
activeDayIsOpen$ = this.calendarStore.eventsForDateState$.pipe(withLatestFrom(this.calendarStore.date$), map(([x, date]) => {
|
|
269
|
+
if (x.events.length && isSameMonth(x.date, date)) {
|
|
270
|
+
return !x.dateTappedTwice;
|
|
271
|
+
}
|
|
272
|
+
return false;
|
|
273
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
274
|
+
displayType$ = this.calendarStore.displayType$;
|
|
279
275
|
ngOnDestroy() {
|
|
280
276
|
this.clickEvent.complete();
|
|
281
277
|
}
|
|
@@ -297,13 +293,13 @@ class DbxCalendarComponent {
|
|
|
297
293
|
typeToggleChanged(event) {
|
|
298
294
|
this.calendarStore.setDisplayType(event.value);
|
|
299
295
|
}
|
|
300
|
-
static
|
|
301
|
-
static
|
|
296
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
297
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxCalendarComponent, selector: "dbx-calendar", outputs: { clickEvent: "clickEvent" }, ngImport: i0, template: "<dbx-calendar-base>\n <ng-container controls>\n <mat-button-toggle-group name=\"calendarDisplayStyle\" [value]=\"(displayType$ | async)!\" (change)=\"typeToggleChanged($event)\" aria-label=\"Display Style\">\n <mat-button-toggle value=\"month\">Month</mat-button-toggle>\n <mat-button-toggle value=\"week\">Week</mat-button-toggle>\n <mat-button-toggle value=\"day\">Day</mat-button-toggle>\n </mat-button-toggle-group>\n </ng-container>\n <div class=\"dbx-calendar-content\" [ngClass]=\"'dbx-calendar-content-' + (displayType$ | async)!\" [ngSwitch]=\"displayType$ | async\">\n <mwl-calendar-month-view *ngSwitchCase=\"'month'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" [activeDayIsOpen]=\"(activeDayIsOpen$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-month-view>\n <mwl-calendar-week-view *ngSwitchCase=\"'week'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-week-view>\n <mwl-calendar-day-view *ngSwitchCase=\"'day'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-day-view>\n </div>\n</dbx-calendar-base>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2$1.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i2$1.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "component", type: i3$1.CalendarMonthViewComponent, selector: "mwl-calendar-month-view", inputs: ["viewDate", "events", "excludeDays", "activeDayIsOpen", "activeDay", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "cellTemplate", "openDayEventsTemplate", "eventTitleTemplate", "eventActionsTemplate", "weekendDays"], outputs: ["beforeViewRender", "dayClicked", "eventClicked", "columnHeaderClicked", "eventTimesChanged"] }, { kind: "component", type: i3$1.CalendarWeekViewComponent, selector: "mwl-calendar-week-view", inputs: ["viewDate", "events", "excludeDays", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "eventTemplate", "eventTitleTemplate", "eventActionsTemplate", "precision", "weekendDays", "snapDraggedEvents", "hourSegments", "hourDuration", "hourSegmentHeight", "minimumEventHeight", "dayStartHour", "dayStartMinute", "dayEndHour", "dayEndMinute", "hourSegmentTemplate", "eventSnapSize", "allDayEventsLabelTemplate", "daysInWeek", "currentTimeMarkerTemplate", "validateEventTimesChanged", "resizeCursors"], outputs: ["dayHeaderClicked", "eventClicked", "eventTimesChanged", "beforeViewRender", "hourSegmentClicked"] }, { kind: "component", type: i3$1.CalendarDayViewComponent, selector: "mwl-calendar-day-view", inputs: ["viewDate", "events", "hourSegments", "hourSegmentHeight", "hourDuration", "minimumEventHeight", "dayStartHour", "dayStartMinute", "dayEndHour", "dayEndMinute", "refresh", "locale", "eventSnapSize", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "hourSegmentTemplate", "eventTemplate", "eventTitleTemplate", "eventActionsTemplate", "snapDraggedEvents", "allDayEventsLabelTemplate", "currentTimeMarkerTemplate", "validateEventTimesChanged", "resizeCursors"], outputs: ["eventClicked", "hourSegmentClicked", "eventTimesChanged", "beforeViewRender"] }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: DbxCalendarBaseComponent, selector: "dbx-calendar-base" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
302
298
|
}
|
|
303
299
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarComponent, decorators: [{
|
|
304
300
|
type: Component,
|
|
305
301
|
args: [{ selector: 'dbx-calendar', template: "<dbx-calendar-base>\n <ng-container controls>\n <mat-button-toggle-group name=\"calendarDisplayStyle\" [value]=\"(displayType$ | async)!\" (change)=\"typeToggleChanged($event)\" aria-label=\"Display Style\">\n <mat-button-toggle value=\"month\">Month</mat-button-toggle>\n <mat-button-toggle value=\"week\">Week</mat-button-toggle>\n <mat-button-toggle value=\"day\">Day</mat-button-toggle>\n </mat-button-toggle-group>\n </ng-container>\n <div class=\"dbx-calendar-content\" [ngClass]=\"'dbx-calendar-content-' + (displayType$ | async)!\" [ngSwitch]=\"displayType$ | async\">\n <mwl-calendar-month-view *ngSwitchCase=\"'month'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" [activeDayIsOpen]=\"(activeDayIsOpen$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-month-view>\n <mwl-calendar-week-view *ngSwitchCase=\"'week'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-week-view>\n <mwl-calendar-day-view *ngSwitchCase=\"'day'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-day-view>\n </div>\n</dbx-calendar-base>\n" }]
|
|
306
|
-
}],
|
|
302
|
+
}], propDecorators: { clickEvent: [{
|
|
307
303
|
type: Output
|
|
308
304
|
}] } });
|
|
309
305
|
|
|
@@ -313,8 +309,8 @@ const declarations = [
|
|
|
313
309
|
DbxCalendarComponent
|
|
314
310
|
];
|
|
315
311
|
class DbxCalendarModule {
|
|
316
|
-
static
|
|
317
|
-
static
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
313
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, declarations: [
|
|
318
314
|
//
|
|
319
315
|
DbxCalendarBaseComponent,
|
|
320
316
|
DbxCalendarComponent], imports: [
|
|
@@ -331,8 +327,8 @@ class DbxCalendarModule {
|
|
|
331
327
|
CalendarWeekModule], exports: [
|
|
332
328
|
//
|
|
333
329
|
DbxCalendarBaseComponent,
|
|
334
|
-
DbxCalendarComponent] });
|
|
335
|
-
static
|
|
330
|
+
DbxCalendarComponent] });
|
|
331
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, imports: [
|
|
336
332
|
//
|
|
337
333
|
CommonModule,
|
|
338
334
|
MatIconModule,
|
|
@@ -343,7 +339,7 @@ class DbxCalendarModule {
|
|
|
343
339
|
CalendarModule,
|
|
344
340
|
CalendarDayModule,
|
|
345
341
|
FlexLayoutModule,
|
|
346
|
-
CalendarWeekModule] });
|
|
342
|
+
CalendarWeekModule] });
|
|
347
343
|
}
|
|
348
344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, decorators: [{
|
|
349
345
|
type: NgModule,
|
|
@@ -369,9 +365,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
369
365
|
* Provides default configuration for the DbxCalendarModule
|
|
370
366
|
*/
|
|
371
367
|
class DbxCalendarRootModule {
|
|
372
|
-
static
|
|
373
|
-
static
|
|
374
|
-
static
|
|
368
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
369
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, imports: [i3$1.CalendarModule], exports: [DbxCalendarModule] });
|
|
370
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, imports: [CalendarModule.forRoot({ provide: DateAdapter, useFactory: adapterFactory }), DbxCalendarModule] });
|
|
375
371
|
}
|
|
376
372
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, decorators: [{
|
|
377
373
|
type: NgModule,
|