@dereekb/dbx-web 9.25.16 → 10.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/_index.scss +2 -1
- package/calendar/esm2022/lib/calendar.base.component.mjs +57 -0
- package/{esm2020/calendar → calendar/esm2022}/lib/calendar.component.mjs +5 -5
- package/calendar/{esm2020 → esm2022}/lib/calendar.module.mjs +38 -38
- package/calendar/{esm2020 → esm2022}/lib/calendar.store.mjs +4 -4
- package/calendar/{fesm2020 → fesm2022}/dereekb-dbx-web-calendar.mjs +49 -49
- package/calendar/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -0
- package/calendar/lib/calendar.base.component.d.ts +2 -2
- package/calendar/lib/calendar.component.d.ts +1 -1
- package/calendar/lib/calendar.module.d.ts +1 -1
- package/calendar/package.json +10 -25
- package/esm2022/calendar/lib/calendar.base.component.mjs +57 -0
- package/{calendar/esm2020 → esm2022/calendar}/lib/calendar.component.mjs +5 -5
- package/{esm2020 → esm2022}/calendar/lib/calendar.module.mjs +38 -38
- package/{esm2020 → esm2022}/calendar/lib/calendar.store.mjs +4 -4
- package/{esm2020 → esm2022}/lib/action/action.confirm.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/action/action.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/action/key.trigger.directive.mjs +4 -4
- package/esm2022/lib/action/snackbar/action.snackbar.component.mjs +96 -0
- package/esm2022/lib/action/snackbar/action.snackbar.directive.mjs +64 -0
- package/{esm2020 → esm2022}/lib/action/snackbar/action.snackbar.module.mjs +5 -5
- package/esm2022/lib/action/snackbar/action.snackbar.service.mjs +82 -0
- package/{esm2020 → esm2022}/lib/action/transition/action.transition.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/action/transition/transition.safety.dialog.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/action/transition/transition.safety.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/button/button.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/button/button.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/button/button.spacer.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/button/icon/icon.button.component.mjs +7 -7
- package/{esm2020 → esm2022}/lib/button/icon/icon.button.module.mjs +13 -13
- package/esm2022/lib/button/progress/bar.button.component.mjs +23 -0
- package/esm2022/lib/button/progress/base.progress.button.directive.mjs +115 -0
- package/{esm2020 → esm2022}/lib/button/progress/button.progress.config.mjs +1 -1
- package/{esm2020 → esm2022}/lib/button/progress/button.progress.module.mjs +5 -5
- package/esm2022/lib/button/progress/spinner.button.component.mjs +59 -0
- package/{esm2020 → esm2022}/lib/dbx-web.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/error/default.error.widget.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/error/error.action.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/error/error.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/error/error.details.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/error/error.loading.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/error/error.module.mjs +21 -21
- package/{esm2020 → esm2022}/lib/error/error.popover.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/error/error.widget.component.mjs +6 -6
- package/esm2022/lib/error/error.widget.directive.mjs +23 -0
- package/{esm2020 → esm2022}/lib/error/error.widget.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/extension/model/model.module.mjs +15 -15
- package/{esm2020 → esm2022}/lib/extension/model/model.state.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/extension/model/model.tracker.service.mjs +4 -4
- package/esm2022/lib/extension/model/model.tracker.view.storage.mjs +69 -0
- package/esm2022/lib/extension/model/model.types.service.mjs +67 -0
- package/{esm2020 → esm2022}/lib/extension/model/state/effects/tracker.effects.mjs +4 -4
- package/esm2022/lib/extension/structure/structure.body.directive.mjs +28 -0
- package/{esm2020 → esm2022}/lib/extension/structure/structure.module.mjs +9 -9
- package/esm2022/lib/extension/structure/structure.structure.directive.mjs +23 -0
- package/{esm2020 → esm2022}/lib/extension/widget/widget.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/extension/widget/widget.directive.mjs +4 -4
- package/esm2022/lib/extension/widget/widget.list.component.mjs +67 -0
- package/{esm2020 → esm2022}/lib/extension/widget/widget.module.mjs +13 -13
- package/{esm2020 → esm2022}/lib/extension/widget/widget.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/dialog/abstract.dialog.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/dialog/dialog.action.directive.mjs +7 -7
- package/esm2022/lib/interaction/dialog/dialog.content.close.component.mjs +41 -0
- package/{esm2020 → esm2022}/lib/interaction/dialog/dialog.content.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/dialog/dialog.content.footer.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/dialog/dialog.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.module.mjs +28 -28
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.partial.list.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.partial.menu.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.partial.mjs +10 -10
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.popover.button.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.popover.button.directive.mjs +4 -4
- package/esm2022/lib/interaction/filter/filter.popover.component.mjs +125 -0
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.preset.list.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.preset.menu.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.preset.mjs +10 -10
- package/{esm2020 → esm2022}/lib/interaction/filter/filter.wrapper.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/interaction/interaction.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/interaction/popover/abstract.popover.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/popover/abstract.popover.ref.directive.mjs +7 -7
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.action.directive.mjs +7 -7
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.close.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.component.mjs +14 -14
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.content.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.content.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.controls.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.coordinator.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.coordinator.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.header.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.module.mjs +5 -5
- package/esm2022/lib/interaction/popover/popover.scroll.content.component.mjs +51 -0
- package/{esm2020 → esm2022}/lib/interaction/popover/popover.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/popup/abstract.popup.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/popup/popup.component.mjs +14 -14
- package/{esm2020 → esm2022}/lib/interaction/popup/popup.content.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/popup/popup.controls.buttons.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/popup/popup.controls.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/popup/popup.coordinator.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/popup/popup.coordinator.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/popup/popup.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/interaction/popup/popup.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.box.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.button.confirm.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.confirm.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.confirm.directive.mjs +7 -7
- package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.page.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/keypress/keydown.listener.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/keypress/keypress.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/bar/bar.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/bar/bar.header.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/bar/bar.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/bar/pagebar.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/block/block.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/block/two.block.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/card/card.box.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/card/card.box.container.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/card/card.box.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/column/column.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/column/one/one.column.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/column/one/one.column.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.back.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.context.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.full.left.directive.mjs +8 -8
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.head.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.right.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.sref.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.sref.showright.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/column/two/two.column.store.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/compact/compact.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/compact/compact.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/compact/compact.store.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/content/content.border.directive.mjs +4 -4
- package/esm2022/lib/layout/content/content.box.directive.mjs +29 -0
- package/esm2022/lib/layout/content/content.container.directive.mjs +31 -0
- package/{esm2020 → esm2022}/lib/layout/content/content.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/content/content.elevate.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/content/content.layout.module.mjs +21 -21
- package/{esm2020 → esm2022}/lib/layout/content/content.page.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/content/content.pit.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/flag/flag.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/flag/flag.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/flag/flag.prompt.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/flex/flex.group.directive.mjs +7 -7
- package/{esm2020 → esm2022}/lib/layout/flex/flex.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/flex/flex.size.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/item/item.icon.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/item/item.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/layout.module.mjs +5 -5
- package/esm2022/lib/layout/list/list.component.mjs +253 -0
- package/{esm2020 → esm2022}/lib/layout/list/list.content.empty.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/list/list.directive.mjs +7 -7
- package/{esm2020 → esm2022}/lib/layout/list/list.grid.view.component.mjs +15 -15
- package/{esm2020 → esm2022}/lib/layout/list/list.grid.view.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/list/list.layout.module.mjs +33 -33
- package/{esm2020 → esm2022}/lib/layout/list/list.view.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/list/list.view.selection.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/list/list.view.value.component.mjs +13 -13
- package/{esm2020 → esm2022}/lib/layout/list/list.view.value.directive.mjs +4 -4
- package/esm2022/lib/layout/list/list.view.value.item.directive.mjs +20 -0
- package/{esm2020 → esm2022}/lib/layout/list/list.view.value.modifier.directive.mjs +7 -7
- package/{esm2020 → esm2022}/lib/layout/list/list.view.value.modifier.ripple.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/list/list.view.value.modifier.selection.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/list/list.view.value.selection.component.mjs +13 -13
- package/{esm2020 → esm2022}/lib/layout/section/section.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/section/section.header.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/section/section.intro.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/section/section.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/section/section.page.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/section/subsection.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/step/step.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/step/step.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/style/spacer.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/style/style.body.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/style/style.color.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/style/style.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/style/style.layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/style/style.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/style/style.set.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/text/address.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/detail.block.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/detail.block.header.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/form.description.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/hint.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/icon.spacer.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/layout/text/label.block.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/label.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/linkify.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/note.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/notice.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/ok.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/success.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/layout/text/text.chip.directive.mjs +4 -4
- package/esm2022/lib/layout/text/text.chips.component.mjs +36 -0
- package/{esm2020 → esm2022}/lib/layout/text/text.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/layout/text/warn.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/loading/basic-loading.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/loading/loading-progress.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/loading/loading.action.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/loading/loading.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/loading/loading.module.mjs +5 -5
- package/esm2022/lib/router/layout/anchor/anchor.component.mjs +66 -0
- package/esm2022/lib/router/layout/anchor/anchor.content.component.mjs +49 -0
- package/{esm2020 → esm2022}/lib/router/layout/anchor/anchor.icon.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/router/layout/anchor/anchor.link.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/router/layout/anchor/anchor.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/router/layout/anchor/anchor.segue.directive.mjs +4 -4
- package/esm2022/lib/router/layout/anchorlist/anchorlist.component.mjs +37 -0
- package/{esm2020 → esm2022}/lib/router/layout/anchorlist/anchorlist.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/router/layout/layout.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/router/layout/list/list.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/router/layout/list/router.list.directive.mjs +4 -4
- package/esm2022/lib/router/layout/navbar/navbar.component.mjs +134 -0
- package/esm2022/lib/router/layout/navbar/navbar.module.mjs +53 -0
- package/{esm2020 → esm2022}/lib/router/layout/sidenav/sidenav.button.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/router/layout/sidenav/sidenav.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/router/layout/sidenav/sidenav.ifdisplaymode.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/router/layout/sidenav/sidenav.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/router/layout/sidenav/sidenav.page.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/router/provider/ngrouter/anchor.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/router/provider/ngrouter/angular.router.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/router/provider/uirouter/anchor.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/router/provider/uirouter/uirouter.router.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/screen/screen.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/screen/screen.service.mjs +4 -4
- package/esm2022/mapbox/lib/index.mjs +21 -0
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.change.service.mjs +4 -4
- package/{esm2020 → esm2022}/mapbox/lib/mapbox.injection.component.mjs +6 -6
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.injection.store.mjs +4 -4
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.injection.store.provide.mjs +7 -7
- package/esm2022/mapbox/lib/mapbox.layout.component.mjs +184 -0
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.layout.drawer.component.mjs +4 -4
- package/{esm2020 → esm2022}/mapbox/lib/mapbox.layout.resize.sync.directive.mjs +4 -4
- package/esm2022/mapbox/lib/mapbox.marker.component.mjs +139 -0
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.markers.component.mjs +6 -6
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.menu.component.mjs +7 -7
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.module.mjs +45 -45
- package/{esm2020 → esm2022}/mapbox/lib/mapbox.service.mjs +4 -4
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.store.map.directive.mjs +4 -4
- package/{esm2020 → esm2022}/mapbox/lib/mapbox.store.mjs +5 -5
- package/{mapbox/esm2020 → esm2022/mapbox}/lib/mapbox.store.provide.mjs +7 -7
- package/esm2022/mapbox/lib/mapbox.util.mjs +15 -0
- package/{esm2020 → esm2022}/table/lib/date/date.table.column.header.component.mjs +6 -6
- package/esm2022/table/lib/date/daterange.table.cell.input.component.mjs +167 -0
- package/{table/esm2020 → esm2022/table}/lib/date/table.date.module.mjs +31 -31
- package/{table/esm2020 → esm2022/table}/lib/table.cell.action.component.mjs +6 -6
- package/{esm2020 → esm2022}/table/lib/table.cell.input.component.mjs +6 -6
- package/{esm2020 → esm2022}/table/lib/table.cell.summaryend.component.mjs +6 -6
- package/{esm2020 → esm2022}/table/lib/table.cell.summarystart.component.mjs +6 -6
- package/{table/esm2020 → esm2022/table}/lib/table.column.directive.mjs +4 -4
- package/{esm2020 → esm2022}/table/lib/table.column.footer.component.mjs +6 -6
- package/{esm2020 → esm2022}/table/lib/table.column.header.component.mjs +6 -6
- package/{table/esm2020 → esm2022/table}/lib/table.component.mjs +4 -4
- package/{table/esm2020 → esm2022/table}/lib/table.directive.mjs +4 -4
- package/{table/esm2020 → esm2022/table}/lib/table.item.action.component.mjs +6 -6
- package/{table/esm2020 → esm2022/table}/lib/table.item.cell.component.mjs +6 -6
- package/{esm2020 → esm2022}/table/lib/table.item.directive.mjs +4 -4
- package/{table/esm2020 → esm2022/table}/lib/table.item.header.component.mjs +6 -6
- package/{esm2020 → esm2022}/table/lib/table.module.mjs +27 -27
- package/{table/esm2020 → esm2022/table}/lib/table.store.mjs +4 -4
- package/{fesm2020 → fesm2022}/dereekb-dbx-web-calendar.mjs +49 -49
- package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -0
- package/{mapbox/fesm2020 → fesm2022}/dereekb-dbx-web-mapbox.mjs +109 -141
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/dereekb-dbx-web-table.mjs +138 -137
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/dereekb-dbx-web.mjs +1208 -1175
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -0
- package/lib/action/_action.scss +2 -2
- package/lib/action/action.confirm.directive.d.ts +1 -1
- package/lib/action/key.trigger.directive.d.ts +1 -1
- package/lib/action/snackbar/_snackbar.scss +3 -2
- package/lib/action/snackbar/action.snackbar.component.d.ts +1 -1
- package/lib/action/snackbar/action.snackbar.d.ts +2 -2
- package/lib/action/snackbar/action.snackbar.directive.d.ts +1 -1
- package/lib/action/snackbar/action.snackbar.generator.d.ts +2 -2
- package/lib/action/transition/transition.safety.dialog.component.d.ts +1 -1
- package/lib/action/transition/transition.safety.directive.d.ts +2 -2
- package/lib/button/_button.scss +22 -27
- package/lib/button/button.component.d.ts +1 -1
- package/lib/button/button.spacer.component.d.ts +1 -1
- package/lib/button/icon/icon.button.component.d.ts +1 -1
- package/lib/button/progress/bar.button.component.d.ts +2 -1
- package/lib/button/progress/bar.button.component.scss +20 -12
- package/lib/button/progress/base.progress.button.directive.d.ts +3 -2
- package/lib/button/progress/button.progress.config.d.ts +1 -5
- package/lib/button/progress/shared.button.component.scss +17 -0
- package/lib/button/progress/spinner.button.component.d.ts +2 -1
- package/lib/button/progress/spinner.button.component.scss +21 -1
- package/lib/error/_error.scss +3 -2
- package/lib/error/default.error.widget.component.d.ts +1 -1
- package/lib/error/error.action.directive.d.ts +1 -1
- package/lib/error/error.component.d.ts +1 -1
- package/lib/error/error.details.component.d.ts +1 -1
- package/lib/error/error.loading.directive.d.ts +1 -1
- package/lib/error/error.popover.component.d.ts +1 -1
- package/lib/error/error.widget.component.d.ts +1 -1
- package/lib/error/error.widget.directive.d.ts +1 -1
- package/lib/extension/_extension.scss +15 -10
- package/lib/extension/calendar/_calendar.scss +3 -2
- package/lib/extension/model/model.tracker.d.ts +1 -1
- package/lib/extension/model/model.tracker.view.storage.d.ts +0 -4
- package/lib/extension/model/model.types.d.ts +2 -2
- package/lib/extension/model/state/reducers/index.d.ts +1 -1
- package/lib/extension/model/state/state.d.ts +1 -1
- package/lib/extension/structure/structure.body.directive.d.ts +1 -1
- package/lib/extension/structure/structure.structure.directive.d.ts +1 -1
- package/lib/extension/table/_table.scss +3 -2
- package/lib/extension/widget/widget.component.d.ts +1 -1
- package/lib/extension/widget/widget.d.ts +3 -3
- package/lib/extension/widget/widget.directive.d.ts +1 -1
- package/lib/extension/widget/widget.list.component.d.ts +4 -4
- package/lib/interaction/_interaction.scss +7 -7
- package/lib/interaction/dialog/_dialog.scss +26 -9
- package/lib/interaction/dialog/abstract.dialog.directive.d.ts +1 -1
- package/lib/interaction/dialog/dialog.action.directive.d.ts +2 -2
- package/lib/interaction/dialog/dialog.content.close.component.d.ts +2 -1
- package/lib/interaction/dialog/dialog.content.component.d.ts +2 -2
- package/lib/interaction/dialog/dialog.content.d.ts +1 -1
- package/lib/interaction/dialog/dialog.content.footer.component.d.ts +1 -1
- package/lib/interaction/filter/_filter.scss +3 -2
- package/lib/interaction/filter/filter.module.d.ts +1 -1
- package/lib/interaction/filter/filter.partial.d.ts +1 -1
- package/lib/interaction/filter/filter.partial.list.component.d.ts +1 -1
- package/lib/interaction/filter/filter.partial.menu.component.d.ts +2 -2
- package/lib/interaction/filter/filter.popover.button.component.d.ts +1 -1
- package/lib/interaction/filter/filter.popover.button.directive.d.ts +4 -4
- package/lib/interaction/filter/filter.popover.component.d.ts +1 -1
- package/lib/interaction/filter/filter.preset.d.ts +3 -3
- package/lib/interaction/filter/filter.preset.list.component.d.ts +1 -1
- package/lib/interaction/filter/filter.preset.menu.component.d.ts +2 -2
- package/lib/interaction/filter/filter.wrapper.component.d.ts +1 -1
- package/lib/interaction/popover/_popover.scss +3 -2
- package/lib/interaction/popover/abstract.popover.directive.d.ts +1 -1
- package/lib/interaction/popover/abstract.popover.ref.directive.d.ts +2 -2
- package/lib/interaction/popover/popover.action.directive.d.ts +2 -2
- package/lib/interaction/popover/popover.close.component.d.ts +1 -1
- package/lib/interaction/popover/popover.component.d.ts +1 -1
- package/lib/interaction/popover/popover.content.component.d.ts +1 -1
- package/lib/interaction/popover/popover.controls.directive.d.ts +1 -1
- package/lib/interaction/popover/popover.coordinator.component.d.ts +1 -1
- package/lib/interaction/popover/popover.d.ts +1 -1
- package/lib/interaction/popover/popover.header.component.d.ts +1 -1
- package/lib/interaction/popover/popover.scroll.content.component.d.ts +1 -1
- package/lib/interaction/popover/popover.service.d.ts +1 -1
- package/lib/interaction/popup/_popup.scss +7 -2
- package/lib/interaction/popup/abstract.popup.directive.d.ts +1 -1
- package/lib/interaction/popup/popup.component.d.ts +1 -1
- package/lib/interaction/popup/popup.content.component.d.ts +1 -1
- package/lib/interaction/popup/popup.controls.buttons.component.d.ts +1 -1
- package/lib/interaction/popup/popup.controls.component.d.ts +1 -1
- package/lib/interaction/popup/popup.coordinator.component.d.ts +1 -1
- package/lib/interaction/popup/popup.d.ts +1 -1
- package/lib/interaction/popup/popup.position.strategy.d.ts +1 -1
- package/lib/interaction/prompt/_prompt.scss +3 -2
- package/lib/interaction/prompt/prompt.box.component.d.ts +1 -1
- package/lib/interaction/prompt/prompt.button.confirm.directive.d.ts +1 -1
- package/lib/interaction/prompt/prompt.component.d.ts +1 -1
- package/lib/interaction/prompt/prompt.confirm.component.d.ts +1 -1
- package/lib/interaction/prompt/prompt.confirm.dialog.component.d.ts +1 -1
- package/lib/interaction/prompt/prompt.confirm.directive.d.ts +2 -2
- package/lib/interaction/prompt/prompt.page.component.d.ts +1 -1
- package/lib/interaction/style/_style.scss +3 -2
- package/lib/keypress/keydown.listener.directive.d.ts +1 -1
- package/lib/layout/_layout.scss +14 -14
- package/lib/layout/bar/_bar.scss +5 -2
- package/lib/layout/bar/bar.d.ts +1 -1
- package/lib/layout/bar/bar.directive.d.ts +1 -1
- package/lib/layout/bar/bar.header.component.d.ts +1 -1
- package/lib/layout/bar/pagebar.component.d.ts +1 -1
- package/lib/layout/block/_block.scss +3 -2
- package/lib/layout/block/two.block.component.d.ts +1 -1
- package/lib/layout/card/_card.scss +3 -2
- package/lib/layout/card/card.box.component.d.ts +1 -1
- package/lib/layout/card/card.box.container.component.d.ts +1 -1
- package/lib/layout/column/_column.scss +4 -3
- package/lib/layout/column/one/one.column.component.d.ts +1 -1
- package/lib/layout/column/two/two.column.back.directive.d.ts +1 -1
- package/lib/layout/column/two/two.column.component.d.ts +1 -1
- package/lib/layout/column/two/two.column.context.directive.d.ts +1 -1
- package/lib/layout/column/two/two.column.full.left.directive.d.ts +1 -1
- package/lib/layout/column/two/two.column.head.component.d.ts +1 -1
- package/lib/layout/column/two/two.column.right.component.d.ts +1 -1
- package/lib/layout/column/two/two.column.sref.directive.d.ts +1 -1
- package/lib/layout/column/two/two.column.sref.showright.directive.d.ts +1 -1
- package/lib/layout/compact/compact.d.ts +1 -1
- package/lib/layout/compact/compact.directive.d.ts +1 -1
- package/lib/layout/content/_content.scss +3 -2
- package/lib/layout/content/content.border.directive.d.ts +1 -1
- package/lib/layout/content/content.box.directive.d.ts +1 -5
- package/lib/layout/content/content.container.directive.d.ts +3 -3
- package/lib/layout/content/content.directive.d.ts +1 -1
- package/lib/layout/content/content.elevate.directive.d.ts +1 -1
- package/lib/layout/content/content.page.directive.d.ts +1 -1
- package/lib/layout/content/content.pit.directive.d.ts +1 -1
- package/lib/layout/flag/_flag.scss +3 -2
- package/lib/layout/flag/flag.component.d.ts +1 -1
- package/lib/layout/flag/flag.prompt.component.d.ts +1 -1
- package/lib/layout/flex/_flex.scss +3 -2
- package/lib/layout/flex/flex.d.ts +1 -1
- package/lib/layout/flex/flex.group.directive.d.ts +1 -1
- package/lib/layout/flex/flex.size.directive.d.ts +1 -1
- package/lib/layout/item/_item.scss +3 -2
- package/lib/layout/item/item.icon.component.d.ts +1 -1
- package/lib/layout/list/_list.scss +22 -13
- package/lib/layout/list/list.component.d.ts +4 -4
- package/lib/layout/list/list.content.empty.component.d.ts +1 -1
- package/lib/layout/list/list.directive.d.ts +4 -4
- package/lib/layout/list/list.grid.view.component.d.ts +3 -3
- package/lib/layout/list/list.grid.view.directive.d.ts +1 -1
- package/lib/layout/list/list.layout.module.d.ts +1 -1
- package/lib/layout/list/list.view.d.ts +1 -1
- package/lib/layout/list/list.view.directive.d.ts +1 -1
- package/lib/layout/list/list.view.selection.directive.d.ts +1 -1
- package/lib/layout/list/list.view.value.component.d.ts +2 -2
- package/lib/layout/list/list.view.value.d.ts +3 -3
- package/lib/layout/list/list.view.value.directive.d.ts +1 -1
- package/lib/layout/list/list.view.value.item.directive.d.ts +1 -1
- package/lib/layout/list/list.view.value.modifier.d.ts +1 -1
- package/lib/layout/list/list.view.value.modifier.directive.d.ts +2 -2
- package/lib/layout/list/list.view.value.modifier.ripple.directive.d.ts +2 -6
- package/lib/layout/list/list.view.value.modifier.selection.directive.d.ts +1 -1
- package/lib/layout/list/list.view.value.selection.component.d.ts +2 -2
- package/lib/layout/section/_section.scss +3 -2
- package/lib/layout/section/section.component.d.ts +1 -1
- package/lib/layout/section/section.d.ts +1 -1
- package/lib/layout/section/section.header.component.d.ts +1 -1
- package/lib/layout/section/section.intro.component.d.ts +1 -1
- package/lib/layout/section/section.page.component.d.ts +2 -2
- package/lib/layout/section/subsection.component.d.ts +1 -1
- package/lib/layout/step/_step.scss +3 -2
- package/lib/layout/step/step.component.d.ts +1 -1
- package/lib/layout/style/_style.scss +3 -2
- package/lib/layout/style/spacer.directive.d.ts +1 -1
- package/lib/layout/style/style.body.directive.d.ts +1 -1
- package/lib/layout/style/style.color.directive.d.ts +1 -1
- package/lib/layout/style/style.d.ts +1 -1
- package/lib/layout/style/style.directive.d.ts +1 -1
- package/lib/layout/style/style.set.directive.d.ts +1 -1
- package/lib/layout/text/_text.scss +10 -2
- package/lib/layout/text/address.component.d.ts +1 -1
- package/lib/layout/text/detail.block.component.d.ts +1 -1
- package/lib/layout/text/detail.block.header.component.d.ts +1 -1
- package/lib/layout/text/form.description.component.d.ts +1 -1
- package/lib/layout/text/hint.component.d.ts +1 -1
- package/lib/layout/text/icon.spacer.component.d.ts +1 -1
- package/lib/layout/text/label.block.component.d.ts +1 -1
- package/lib/layout/text/label.component.d.ts +1 -1
- package/lib/layout/text/linkify.component.d.ts +1 -1
- package/lib/layout/text/note.component.d.ts +1 -1
- package/lib/layout/text/notice.component.d.ts +1 -1
- package/lib/layout/text/ok.component.d.ts +1 -1
- package/lib/layout/text/success.component.d.ts +1 -1
- package/lib/layout/text/text.chip.directive.d.ts +1 -1
- package/lib/layout/text/text.chips.component.d.ts +4 -2
- package/lib/layout/text/warn.component.d.ts +1 -1
- package/lib/loading/_loading.scss +3 -2
- package/lib/loading/basic-loading.component.d.ts +1 -1
- package/lib/loading/loading-progress.component.d.ts +1 -1
- package/lib/loading/loading.action.directive.d.ts +1 -1
- package/lib/loading/loading.component.d.ts +1 -1
- package/lib/router/_router.scss +5 -5
- package/lib/router/layout/anchor/_anchor.scss +3 -2
- package/lib/router/layout/anchor/anchor.component.d.ts +1 -1
- package/lib/router/layout/anchor/anchor.content.component.d.ts +1 -1
- package/lib/router/layout/anchor/anchor.icon.component.d.ts +1 -1
- package/lib/router/layout/anchor/anchor.link.component.d.ts +1 -1
- package/lib/router/layout/anchor/anchor.segue.directive.d.ts +2 -2
- package/lib/router/layout/anchorlist/_anchorlist.scss +42 -27
- package/lib/router/layout/anchorlist/anchorlist.component.d.ts +1 -1
- package/lib/router/layout/list/router.list.directive.d.ts +2 -2
- package/lib/router/layout/navbar/_navbar.scss +3 -2
- package/lib/router/layout/navbar/navbar.component.d.ts +6 -5
- package/lib/router/layout/navbar/navbar.module.d.ts +3 -2
- package/lib/router/layout/sidenav/_sidenav.scss +28 -25
- package/lib/router/layout/sidenav/sidenav.button.component.d.ts +1 -1
- package/lib/router/layout/sidenav/sidenav.component.d.ts +1 -1
- package/lib/router/layout/sidenav/sidenav.ifdisplaymode.directive.d.ts +1 -1
- package/lib/router/layout/sidenav/sidenav.page.component.d.ts +1 -1
- package/lib/router/layout/sidenav/sidenav.pagebar.component.d.ts +1 -1
- package/lib/router/provider/ngrouter/anchor.component.d.ts +1 -1
- package/lib/router/provider/uirouter/anchor.component.d.ts +1 -1
- package/lib/screen/screen.d.ts +2 -2
- package/lib/style/_all-typography.scss +9 -2
- package/lib/style/_core.scss +1 -2
- package/lib/style/_theming.scss +1 -1
- package/mapbox/esm2022/lib/index.mjs +21 -0
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.change.service.mjs +4 -4
- package/mapbox/{esm2020 → esm2022}/lib/mapbox.injection.component.mjs +6 -6
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.injection.store.mjs +4 -4
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.injection.store.provide.mjs +7 -7
- package/mapbox/esm2022/lib/mapbox.layout.component.mjs +184 -0
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.layout.drawer.component.mjs +4 -4
- package/mapbox/{esm2020 → esm2022}/lib/mapbox.layout.resize.sync.directive.mjs +4 -4
- package/mapbox/esm2022/lib/mapbox.marker.component.mjs +139 -0
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.markers.component.mjs +6 -6
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.menu.component.mjs +7 -7
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.module.mjs +45 -45
- package/mapbox/{esm2020 → esm2022}/lib/mapbox.service.mjs +4 -4
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.store.map.directive.mjs +4 -4
- package/mapbox/{esm2020 → esm2022}/lib/mapbox.store.mjs +5 -5
- package/{esm2020/mapbox → mapbox/esm2022}/lib/mapbox.store.provide.mjs +7 -7
- package/mapbox/esm2022/lib/mapbox.util.mjs +15 -0
- package/{fesm2020 → mapbox/fesm2022}/dereekb-dbx-web-mapbox.mjs +109 -141
- package/mapbox/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -0
- package/mapbox/lib/index.d.ts +0 -1
- package/mapbox/lib/mapbox.d.ts +7 -7
- package/mapbox/lib/mapbox.injection.component.d.ts +1 -1
- package/mapbox/lib/mapbox.injection.store.d.ts +1 -1
- package/mapbox/lib/mapbox.injection.store.provide.d.ts +1 -1
- package/mapbox/lib/mapbox.layout.component.d.ts +3 -7
- package/mapbox/lib/mapbox.layout.drawer.component.d.ts +2 -2
- package/mapbox/lib/mapbox.layout.resize.sync.directive.d.ts +1 -1
- package/mapbox/lib/mapbox.marker.component.d.ts +2 -2
- package/mapbox/lib/mapbox.marker.d.ts +4 -4
- package/mapbox/lib/mapbox.markers.component.d.ts +1 -1
- package/mapbox/lib/mapbox.menu.component.d.ts +1 -1
- package/mapbox/lib/mapbox.rxjs.d.ts +1 -1
- package/mapbox/lib/mapbox.store.d.ts +5 -5
- package/mapbox/lib/mapbox.store.map.directive.d.ts +1 -1
- package/mapbox/lib/mapbox.store.provide.d.ts +1 -1
- package/mapbox/lib/mapbox.util.d.ts +1 -1
- package/mapbox/package.json +10 -25
- package/package.json +37 -40
- package/table/{esm2020 → esm2022}/lib/date/date.table.column.header.component.mjs +6 -6
- package/table/esm2022/lib/date/daterange.table.cell.input.component.mjs +167 -0
- package/{esm2020/table → table/esm2022}/lib/date/table.date.module.mjs +31 -31
- package/{esm2020/table → table/esm2022}/lib/table.cell.action.component.mjs +6 -6
- package/table/{esm2020 → esm2022}/lib/table.cell.input.component.mjs +6 -6
- package/table/{esm2020 → esm2022}/lib/table.cell.summaryend.component.mjs +6 -6
- package/table/{esm2020 → esm2022}/lib/table.cell.summarystart.component.mjs +6 -6
- package/{esm2020/table → table/esm2022}/lib/table.column.directive.mjs +4 -4
- package/table/{esm2020 → esm2022}/lib/table.column.footer.component.mjs +6 -6
- package/table/{esm2020 → esm2022}/lib/table.column.header.component.mjs +6 -6
- package/{esm2020/table → table/esm2022}/lib/table.component.mjs +4 -4
- package/{esm2020/table → table/esm2022}/lib/table.directive.mjs +4 -4
- package/{esm2020/table → table/esm2022}/lib/table.item.action.component.mjs +6 -6
- package/{esm2020/table → table/esm2022}/lib/table.item.cell.component.mjs +6 -6
- package/table/{esm2020 → esm2022}/lib/table.item.directive.mjs +4 -4
- package/{esm2020/table → table/esm2022}/lib/table.item.header.component.mjs +6 -6
- package/table/{esm2020 → esm2022}/lib/table.module.mjs +27 -27
- package/{esm2020/table → table/esm2022}/lib/table.store.mjs +4 -4
- package/table/{fesm2020 → fesm2022}/dereekb-dbx-web-table.mjs +138 -137
- package/table/fesm2022/dereekb-dbx-web-table.mjs.map +1 -0
- package/table/lib/date/date.table.column.header.component.d.ts +1 -1
- package/table/lib/date/daterange.table.cell.input.component.d.ts +5 -1
- package/table/lib/table.cell.action.component.d.ts +2 -2
- package/table/lib/table.cell.input.component.d.ts +2 -2
- package/table/lib/table.cell.summaryend.component.d.ts +2 -2
- package/table/lib/table.cell.summarystart.component.d.ts +2 -2
- package/table/lib/table.column.directive.d.ts +1 -1
- package/table/lib/table.column.footer.component.d.ts +2 -2
- package/table/lib/table.column.header.component.d.ts +2 -2
- package/table/lib/table.component.d.ts +1 -1
- package/table/lib/table.directive.d.ts +1 -1
- package/table/lib/table.item.action.component.d.ts +2 -2
- package/table/lib/table.item.cell.component.d.ts +2 -2
- package/table/lib/table.item.directive.d.ts +1 -1
- package/table/lib/table.item.header.component.d.ts +2 -2
- package/table/package.json +10 -24
- package/calendar/esm2020/lib/calendar.base.component.mjs +0 -57
- package/calendar/fesm2015/dereekb-dbx-web-calendar.mjs +0 -391
- package/calendar/fesm2015/dereekb-dbx-web-calendar.mjs.map +0 -1
- package/calendar/fesm2020/dereekb-dbx-web-calendar.mjs.map +0 -1
- package/esm2020/calendar/lib/calendar.base.component.mjs +0 -57
- package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +0 -96
- package/esm2020/lib/action/snackbar/action.snackbar.directive.mjs +0 -64
- package/esm2020/lib/action/snackbar/action.snackbar.service.mjs +0 -82
- package/esm2020/lib/button/progress/bar.button.component.mjs +0 -16
- package/esm2020/lib/button/progress/base.progress.button.directive.mjs +0 -97
- package/esm2020/lib/button/progress/spinner.button.component.mjs +0 -43
- package/esm2020/lib/error/error.widget.directive.mjs +0 -23
- package/esm2020/lib/extension/model/model.tracker.view.storage.mjs +0 -76
- package/esm2020/lib/extension/model/model.types.service.mjs +0 -67
- package/esm2020/lib/extension/structure/structure.body.directive.mjs +0 -28
- package/esm2020/lib/extension/structure/structure.structure.directive.mjs +0 -23
- package/esm2020/lib/extension/widget/widget.list.component.mjs +0 -66
- package/esm2020/lib/interaction/dialog/dialog.content.close.component.mjs +0 -37
- package/esm2020/lib/interaction/filter/filter.popover.component.mjs +0 -125
- package/esm2020/lib/interaction/popover/popover.scroll.content.component.mjs +0 -51
- package/esm2020/lib/layout/content/content.box.directive.mjs +0 -36
- package/esm2020/lib/layout/content/content.container.directive.mjs +0 -31
- package/esm2020/lib/layout/list/list.component.mjs +0 -253
- package/esm2020/lib/layout/list/list.view.value.item.directive.mjs +0 -20
- package/esm2020/lib/layout/text/text.chips.component.mjs +0 -34
- package/esm2020/lib/router/layout/anchor/anchor.component.mjs +0 -66
- package/esm2020/lib/router/layout/anchor/anchor.content.component.mjs +0 -49
- package/esm2020/lib/router/layout/anchorlist/anchorlist.component.mjs +0 -38
- package/esm2020/lib/router/layout/navbar/navbar.component.mjs +0 -133
- package/esm2020/lib/router/layout/navbar/navbar.module.mjs +0 -49
- package/esm2020/mapbox/lib/index.mjs +0 -22
- package/esm2020/mapbox/lib/mapbox.cdref.service.mjs +0 -30
- package/esm2020/mapbox/lib/mapbox.layout.component.mjs +0 -189
- package/esm2020/mapbox/lib/mapbox.marker.component.mjs +0 -139
- package/esm2020/mapbox/lib/mapbox.util.mjs +0 -15
- package/esm2020/table/lib/date/daterange.table.cell.input.component.mjs +0 -166
- package/fesm2015/dereekb-dbx-web-calendar.mjs +0 -391
- package/fesm2015/dereekb-dbx-web-calendar.mjs.map +0 -1
- package/fesm2015/dereekb-dbx-web-mapbox.mjs +0 -1551
- package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +0 -1
- package/fesm2015/dereekb-dbx-web-table.mjs +0 -745
- package/fesm2015/dereekb-dbx-web-table.mjs.map +0 -1
- package/fesm2015/dereekb-dbx-web.mjs +0 -9117
- package/fesm2015/dereekb-dbx-web.mjs.map +0 -1
- package/fesm2020/dereekb-dbx-web-calendar.mjs.map +0 -1
- package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +0 -1
- package/fesm2020/dereekb-dbx-web-table.mjs.map +0 -1
- package/fesm2020/dereekb-dbx-web.mjs.map +0 -1
- package/mapbox/esm2020/lib/index.mjs +0 -22
- package/mapbox/esm2020/lib/mapbox.cdref.service.mjs +0 -30
- package/mapbox/esm2020/lib/mapbox.layout.component.mjs +0 -189
- package/mapbox/esm2020/lib/mapbox.marker.component.mjs +0 -139
- package/mapbox/esm2020/lib/mapbox.util.mjs +0 -15
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +0 -1551
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +0 -1
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +0 -1
- package/mapbox/lib/mapbox.cdref.service.d.ts +0 -15
- package/table/esm2020/lib/date/daterange.table.cell.input.component.mjs +0 -166
- package/table/fesm2015/dereekb-dbx-web-table.mjs +0 -745
- package/table/fesm2015/dereekb-dbx-web-table.mjs.map +0 -1
- package/table/fesm2020/dereekb-dbx-web-table.mjs.map +0 -1
- /package/calendar/{esm2020 → esm2022}/dereekb-dbx-web-calendar.mjs +0 -0
- /package/calendar/{esm2020 → esm2022}/index.mjs +0 -0
- /package/calendar/{esm2020 → esm2022}/lib/calendar.mjs +0 -0
- /package/calendar/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/dereekb-dbx-web-calendar.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/lib/calendar.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dereekb-dbx-web.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/action/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/action/snackbar/action.snackbar.default.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/action/snackbar/action.snackbar.generator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/action/snackbar/action.snackbar.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/action/snackbar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/action/transition/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/button/icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/button/progress/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/error/error.api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/error/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/error/state.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/model.tracker.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/model.types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/state/actions/actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/state/actions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/state/actions/model.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/state/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/state/reducers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/state/reducers/model.module.config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/model/state/state.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/structure/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/widget/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/extension/widget/widget.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/dialog/dialog.content.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/dialog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/filter/filter.menu.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/filter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/popover/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/popover/popover.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/popover/popover.position.strategy.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/popup/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/popup/popup.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/popup/popup.position.strategy.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/prompt/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/prompt/prompt.confirm.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/keypress/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/bar/bar.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/bar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/block/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/card/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/column/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/column/one/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/column/two/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/compact/compact.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/compact/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/content/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/flag/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/flex/flex.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/flex/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/item/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/list/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/list/list.track.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/list/list.view.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/list/list.view.value.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/list/list.view.value.modifier.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/list/list.wrapper.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/section/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/section/section.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/step/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/style/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/style/style.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/layout/text/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/loading/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/layout/anchor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/layout/anchorlist/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/layout/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/layout/list/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/layout/navbar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/layout/sidenav/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/layout/sidenav/sidenav.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/provider/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/provider/ngrouter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/provider/router.provider.config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/router/provider/uirouter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/screen/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/screen/screen.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/util/cdk.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/util/index.mjs +0 -0
- /package/{esm2020 → esm2022}/mapbox/dereekb-dbx-web-mapbox.mjs +0 -0
- /package/{esm2020 → esm2022}/mapbox/index.mjs +0 -0
- /package/{esm2020 → esm2022}/mapbox/lib/mapbox.marker.mjs +0 -0
- /package/{esm2020 → esm2022}/mapbox/lib/mapbox.mjs +0 -0
- /package/{esm2020 → esm2022}/mapbox/lib/mapbox.rxjs.mjs +0 -0
- /package/{esm2020 → esm2022}/mapbox/lib/options.mjs +0 -0
- /package/{esm2020 → esm2022}/table/dereekb-dbx-web-table.mjs +0 -0
- /package/{esm2020 → esm2022}/table/index.mjs +0 -0
- /package/{esm2020 → esm2022}/table/lib/date/index.mjs +0 -0
- /package/{esm2020 → esm2022}/table/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/table/lib/table.mjs +0 -0
- /package/mapbox/{esm2020 → esm2022}/dereekb-dbx-web-mapbox.mjs +0 -0
- /package/mapbox/{esm2020 → esm2022}/index.mjs +0 -0
- /package/mapbox/{esm2020 → esm2022}/lib/mapbox.marker.mjs +0 -0
- /package/mapbox/{esm2020 → esm2022}/lib/mapbox.mjs +0 -0
- /package/mapbox/{esm2020 → esm2022}/lib/mapbox.rxjs.mjs +0 -0
- /package/mapbox/{esm2020 → esm2022}/lib/options.mjs +0 -0
- /package/table/{esm2020 → esm2022}/dereekb-dbx-web-table.mjs +0 -0
- /package/table/{esm2020 → esm2022}/index.mjs +0 -0
- /package/table/{esm2020 → esm2022}/lib/date/index.mjs +0 -0
- /package/table/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/table/{esm2020 → esm2022}/lib/table.mjs +0 -0
|
@@ -1,1551 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Host, Optional, Inject, Component, ChangeDetectionStrategy, SkipSelf, Directive, Injector, EventEmitter, ElementRef, Output, ViewChild, Input, NgModule } from '@angular/core';
|
|
3
|
-
import * as i2 from '@dereekb/dbx-core';
|
|
4
|
-
import { safeMarkForCheck, safeDetectChanges, AbstractSubscriptionDirective, DbxInjectionComponentModule } from '@dereekb/dbx-core';
|
|
5
|
-
import { asObservable, cleanup, filterMaybe, onTrueToFalse, SubscriptionObject, distinctUntilMapHasDifferentKeys } from '@dereekb/rxjs';
|
|
6
|
-
import { distinctUntilChanged, switchMap, map, combineLatestWith, shareReplay, NEVER, defaultIfEmpty, tap, EMPTY, of, combineLatest, filter, first, startWith, throttleTime, interval, Subject, merge, BehaviorSubject } from 'rxjs';
|
|
7
|
-
import { LAT_LONG_10M_PRECISION, latLngPointFunction, roundNumberToStepFunction, latLngBoundFunction, latLngBoundFromInput, filterUndefinedValues, isSameLatLngPoint, isSameVector, isSameLatLngBound, isDefaultLatLngPoint, swMostLatLngPoint, neMostLatLngPoint, diffLatLngBoundPoints, latLngBoundWrapsMap, isWithinLatLngBoundFunction, overlapsLatLngBoundFunction, latLngBoundCenterPoint, addLatLngPoints, vectorMinimumSizeResizeFunction, latLngPoint, DestroyFunctionObject, getValueFromGetter } from '@dereekb/util';
|
|
8
|
-
import { ComponentStore } from '@ngrx/component-store';
|
|
9
|
-
import * as MapboxGl from 'mapbox-gl';
|
|
10
|
-
import { bounds } from '@mapbox/geo-viewport';
|
|
11
|
-
import * as i2$1 from '@angular/common';
|
|
12
|
-
import { CommonModule } from '@angular/common';
|
|
13
|
-
import * as i1 from 'ngx-mapbox-gl';
|
|
14
|
-
import { NgxMapboxGLModule } from 'ngx-mapbox-gl';
|
|
15
|
-
import * as i3 from '@angular/material/sidenav';
|
|
16
|
-
import { MatDrawerContainer, MatSidenavModule } from '@angular/material/sidenav';
|
|
17
|
-
import * as i4 from '@dereekb/dbx-web';
|
|
18
|
-
import { disableRightClickInCdkBackdrop, DbxStyleLayoutModule, DbxRouterAnchorModule } from '@dereekb/dbx-web';
|
|
19
|
-
import * as i5 from '@angular/material/button';
|
|
20
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
21
|
-
import * as i6 from '@angular/material/icon';
|
|
22
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
23
|
-
import * as i7 from 'angular-resize-event';
|
|
24
|
-
import { AngularResizeEventModule } from 'angular-resize-event';
|
|
25
|
-
import * as i2$2 from '@angular/material/menu';
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Provided in the parent component that allows children to import the parent's cdRef for use.
|
|
29
|
-
*
|
|
30
|
-
* @Deprecated consider using DbxMapboxChangeService instead.
|
|
31
|
-
*/
|
|
32
|
-
class DbxMapboxChangeDetectorRefService {
|
|
33
|
-
constructor(cdRef) {
|
|
34
|
-
this.cdRef = cdRef;
|
|
35
|
-
}
|
|
36
|
-
markForCheck() {
|
|
37
|
-
safeMarkForCheck(this.cdRef);
|
|
38
|
-
}
|
|
39
|
-
detectChanges() {
|
|
40
|
-
safeDetectChanges(this.cdRef);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
DbxMapboxChangeDetectorRefService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxChangeDetectorRefService, deps: [{ token: i0.ChangeDetectorRef, host: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
-
DbxMapboxChangeDetectorRefService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxChangeDetectorRefService, providedIn: null });
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxChangeDetectorRefService, decorators: [{
|
|
46
|
-
type: Injectable,
|
|
47
|
-
args: [{
|
|
48
|
-
providedIn: null
|
|
49
|
-
}]
|
|
50
|
-
}], ctorParameters: function () {
|
|
51
|
-
return [{ type: i0.ChangeDetectorRef, decorators: [{
|
|
52
|
-
type: Host
|
|
53
|
-
}] }];
|
|
54
|
-
} });
|
|
55
|
-
|
|
56
|
-
class DbxMapboxConfig {
|
|
57
|
-
}
|
|
58
|
-
const DEFAULT_MAPBOX_STYLE = 'mapbox://styles/mapbox/streets-v11';
|
|
59
|
-
const DEFAULT_MAPBOX_CENTER = [30.2690138665, -97.7408297965];
|
|
60
|
-
const DEFAULT_MAPBOX_ZOOM = 8;
|
|
61
|
-
const DEFAULT_MAPBOX_MAP_STORE_TIMER_REFRESH_PERIOD = 200;
|
|
62
|
-
class DbxMapboxService {
|
|
63
|
-
constructor(config) {
|
|
64
|
-
this._config = config !== null && config !== void 0 ? config : {};
|
|
65
|
-
}
|
|
66
|
-
get defaultStyle() {
|
|
67
|
-
var _a;
|
|
68
|
-
return (_a = this._config.defaultStyle) !== null && _a !== void 0 ? _a : DEFAULT_MAPBOX_STYLE;
|
|
69
|
-
}
|
|
70
|
-
get defaultZoom() {
|
|
71
|
-
var _a;
|
|
72
|
-
return (_a = this._config.defaultZoom) !== null && _a !== void 0 ? _a : DEFAULT_MAPBOX_ZOOM;
|
|
73
|
-
}
|
|
74
|
-
get defaultCenter() {
|
|
75
|
-
var _a;
|
|
76
|
-
return (_a = this._config.defaultCenter) !== null && _a !== void 0 ? _a : DEFAULT_MAPBOX_CENTER;
|
|
77
|
-
}
|
|
78
|
-
get mapboxMapStoreTimerRefreshPeriod() {
|
|
79
|
-
var _a;
|
|
80
|
-
return (_a = this._config.defaultStoreRefreshPeriod) !== null && _a !== void 0 ? _a : DEFAULT_MAPBOX_MAP_STORE_TIMER_REFRESH_PERIOD;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
DbxMapboxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxService, deps: [{ token: DbxMapboxConfig, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
84
|
-
DbxMapboxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxService, providedIn: 'root' });
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxService, decorators: [{
|
|
86
|
-
type: Injectable,
|
|
87
|
-
args: [{
|
|
88
|
-
providedIn: 'root'
|
|
89
|
-
}]
|
|
90
|
-
}], ctorParameters: function () {
|
|
91
|
-
return [{ type: DbxMapboxConfig, decorators: [{
|
|
92
|
-
type: Optional
|
|
93
|
-
}] }];
|
|
94
|
-
} });
|
|
95
|
-
|
|
96
|
-
function mapboxViewportBoundFunction(config) {
|
|
97
|
-
const { mapCanvasSize, tileSize = 512 } = config;
|
|
98
|
-
const dimensions = [mapCanvasSize.x, mapCanvasSize.y];
|
|
99
|
-
return ({ center, zoom }) => {
|
|
100
|
-
const boundingBox = bounds([center.lng, center.lat], zoom, dimensions, tileSize);
|
|
101
|
-
const [swLng, swLat, neLng, neLat] = boundingBox;
|
|
102
|
-
const result = {
|
|
103
|
-
sw: { lat: swLat, lng: swLng },
|
|
104
|
-
ne: { lat: neLat, lng: neLng }
|
|
105
|
-
};
|
|
106
|
-
return result;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Filters the input objects based on their center and zoom values.
|
|
112
|
-
*
|
|
113
|
-
* This function caches the bounds computations for each of the input values.
|
|
114
|
-
*
|
|
115
|
-
* @param config
|
|
116
|
-
* @returns
|
|
117
|
-
*/
|
|
118
|
-
function filterByMapboxViewportBound(config) {
|
|
119
|
-
const { boundDecisionObs: inputBoundDecisionObs, boundFunctionObs: inputBoundFunctionObs, defaultZoom: inputDefaultZoom = 17, readValue, zoomRounding, precision = LAT_LONG_10M_PRECISION } = config;
|
|
120
|
-
const _latLngPoint = latLngPointFunction({ wrap: false, validate: false, precision });
|
|
121
|
-
const _roundZoom = roundNumberToStepFunction(zoomRounding || { step: 0.5, round: 'floor' });
|
|
122
|
-
const boundDecisionObs = asObservable(inputBoundDecisionObs);
|
|
123
|
-
const boundFunctionObs = asObservable(inputBoundFunctionObs);
|
|
124
|
-
return (input) => {
|
|
125
|
-
return boundFunctionObs.pipe(distinctUntilChanged(), switchMap((viewportBoundFunction) => {
|
|
126
|
-
const cache = new Map();
|
|
127
|
-
return input.pipe(map((values) => {
|
|
128
|
-
return values.map((value) => {
|
|
129
|
-
const item = readValue(value);
|
|
130
|
-
const centerLatLng = _latLngPoint(item.center);
|
|
131
|
-
const zoomStep = _roundZoom(item.zoom || inputDefaultZoom);
|
|
132
|
-
const cacheKey = `${zoomStep}_${centerLatLng.lat}_${centerLatLng.lng}`;
|
|
133
|
-
const cachedValue = cache.get(cacheKey);
|
|
134
|
-
let bound;
|
|
135
|
-
if (!cachedValue) {
|
|
136
|
-
bound = viewportBoundFunction({ center: centerLatLng, zoom: zoomStep });
|
|
137
|
-
cache.set(cacheKey, bound);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
bound = cachedValue;
|
|
141
|
-
}
|
|
142
|
-
return {
|
|
143
|
-
value,
|
|
144
|
-
bound
|
|
145
|
-
};
|
|
146
|
-
});
|
|
147
|
-
}), combineLatestWith(boundDecisionObs), map(([items, boundFunction]) => {
|
|
148
|
-
const valuesInBounds = [];
|
|
149
|
-
items.forEach((item) => {
|
|
150
|
-
if (boundFunction(item.bound)) {
|
|
151
|
-
valuesInBounds.push(item.value);
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
return valuesInBounds;
|
|
155
|
-
}));
|
|
156
|
-
}), shareReplay(1));
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Store used for retrieving information.
|
|
162
|
-
*/
|
|
163
|
-
class DbxMapboxMapStore extends ComponentStore {
|
|
164
|
-
constructor(dbxMapboxService) {
|
|
165
|
-
super({
|
|
166
|
-
lifecycleState: 'init',
|
|
167
|
-
moveState: 'init',
|
|
168
|
-
zoomState: 'init',
|
|
169
|
-
rotateState: 'init',
|
|
170
|
-
retainContent: true,
|
|
171
|
-
useVirtualBound: true,
|
|
172
|
-
boundRefreshSettings: {
|
|
173
|
-
throttle: 300,
|
|
174
|
-
refreshType: 'always'
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
this.dbxMapboxService = dbxMapboxService;
|
|
178
|
-
this.safeLatLngPoint = latLngPointFunction({ wrap: true });
|
|
179
|
-
this.latLngPoint = latLngPointFunction({ wrap: false, validate: false });
|
|
180
|
-
this.latLngBound = latLngBoundFunction({ pointFunction: this.latLngPoint });
|
|
181
|
-
// MARK: Effects
|
|
182
|
-
this.setMapService = this.effect((input) => {
|
|
183
|
-
return input.pipe(switchMap((service) => {
|
|
184
|
-
this._setMapService(service);
|
|
185
|
-
if (!service) {
|
|
186
|
-
return NEVER;
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return service.mapLoaded$.pipe(defaultIfEmpty(undefined), map(() => {
|
|
190
|
-
this._setLifecycleState('idle');
|
|
191
|
-
this._setMoveState('idle');
|
|
192
|
-
this._setZoomState('idle');
|
|
193
|
-
this._setRotateState('idle');
|
|
194
|
-
const map = service.mapInstance;
|
|
195
|
-
const listenerPairs = [];
|
|
196
|
-
function addListener(type, listener) {
|
|
197
|
-
map.on(type, listener);
|
|
198
|
-
listenerPairs.push({ type, listener });
|
|
199
|
-
}
|
|
200
|
-
addListener('idle', () => this._setLifecycleState('idle'));
|
|
201
|
-
addListener('render', () => this._setLifecycleState('render'));
|
|
202
|
-
addListener('error', (x) => {
|
|
203
|
-
this._setError(x.error);
|
|
204
|
-
});
|
|
205
|
-
addListener('movestart', () => this._setMoveState('moving'));
|
|
206
|
-
addListener('moveend', () => this._setMoveState('idle'));
|
|
207
|
-
addListener('zoomstart', () => this._setZoomState('zooming'));
|
|
208
|
-
addListener('zoomend', () => this._setZoomState('idle'));
|
|
209
|
-
addListener('rotatestart', () => this._setRotateState('rotating'));
|
|
210
|
-
addListener('rotateend', () => this._setRotateState('idle'));
|
|
211
|
-
addListener('click', (x) => this._setClickEvent(x));
|
|
212
|
-
addListener('dblclick', (x) => this._setDoubleClickEvent(x));
|
|
213
|
-
addListener('contextmenu', (x) => this._setRightClickEvent(x));
|
|
214
|
-
const refreshForResize = () => {
|
|
215
|
-
const { clientWidth: x, clientHeight: y } = map.getCanvas();
|
|
216
|
-
this._setMapCanvasSize({ x, y });
|
|
217
|
-
};
|
|
218
|
-
addListener('resize', refreshForResize);
|
|
219
|
-
refreshForResize();
|
|
220
|
-
const subs = [];
|
|
221
|
-
return {
|
|
222
|
-
service,
|
|
223
|
-
listenerPairs,
|
|
224
|
-
subs
|
|
225
|
-
};
|
|
226
|
-
}));
|
|
227
|
-
}
|
|
228
|
-
}), cleanup(({ service, listenerPairs, subs }) => {
|
|
229
|
-
const map = service.mapInstance;
|
|
230
|
-
if (map) {
|
|
231
|
-
listenerPairs.forEach((x) => {
|
|
232
|
-
map.off(x.type, x.listener);
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
subs.forEach((sub) => sub.unsubscribe());
|
|
236
|
-
}));
|
|
237
|
-
});
|
|
238
|
-
this.setStyle = this.effect((input) => {
|
|
239
|
-
return input.pipe(switchMap((style) => {
|
|
240
|
-
return this.mapInstance$.pipe(tap((map) => {
|
|
241
|
-
if (typeof style === 'string') {
|
|
242
|
-
map.setStyle(style);
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
map.setStyle(style.style, style.options);
|
|
246
|
-
}
|
|
247
|
-
}));
|
|
248
|
-
}));
|
|
249
|
-
});
|
|
250
|
-
this.setCenter = this.effect((input) => {
|
|
251
|
-
return input.pipe(switchMap((center) => {
|
|
252
|
-
const centerPoint = this.safeLatLngPoint(center);
|
|
253
|
-
return this.mapInstance$.pipe(tap((map) => map.setCenter(centerPoint)));
|
|
254
|
-
}));
|
|
255
|
-
});
|
|
256
|
-
this.setZoom = this.effect((input) => {
|
|
257
|
-
return input.pipe(switchMap((zoom) => {
|
|
258
|
-
return this.mapInstance$.pipe(tap((map) => map.setZoom(zoom)));
|
|
259
|
-
}));
|
|
260
|
-
});
|
|
261
|
-
this.setZoomRange = this.effect((input) => {
|
|
262
|
-
return input.pipe(switchMap((zoomRange) => {
|
|
263
|
-
return this.mapInstance$.pipe(tap((map) => {
|
|
264
|
-
map.setMinZoom(zoomRange.min || null);
|
|
265
|
-
map.setMaxZoom(zoomRange.max || null);
|
|
266
|
-
}));
|
|
267
|
-
}));
|
|
268
|
-
});
|
|
269
|
-
this.setMinZoom = this.effect((input) => {
|
|
270
|
-
return input.pipe(switchMap((zoom) => {
|
|
271
|
-
return this.mapInstance$.pipe(tap((map) => map.setMinZoom(zoom)));
|
|
272
|
-
}));
|
|
273
|
-
});
|
|
274
|
-
this.setMaxZoom = this.effect((input) => {
|
|
275
|
-
return input.pipe(switchMap((zoom) => {
|
|
276
|
-
return this.mapInstance$.pipe(tap((map) => map.setMaxZoom(zoom)));
|
|
277
|
-
}));
|
|
278
|
-
});
|
|
279
|
-
this.setKeyboardDisabled = this.effect((input) => {
|
|
280
|
-
return input.pipe(switchMap((disabled) => {
|
|
281
|
-
return this.mapInstance$.pipe(tap((map) => {
|
|
282
|
-
if (disabled === false) {
|
|
283
|
-
map.keyboard.enable();
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
map.keyboard.disable();
|
|
287
|
-
}
|
|
288
|
-
}));
|
|
289
|
-
}));
|
|
290
|
-
});
|
|
291
|
-
this.setDragRotateDisabled = this.effect((input) => {
|
|
292
|
-
return input.pipe(switchMap((disabled) => {
|
|
293
|
-
return this.mapInstance$.pipe(tap((map) => {
|
|
294
|
-
if (disabled === false) {
|
|
295
|
-
map.dragRotate.enable();
|
|
296
|
-
}
|
|
297
|
-
else {
|
|
298
|
-
map.dragRotate.disable();
|
|
299
|
-
}
|
|
300
|
-
}));
|
|
301
|
-
}));
|
|
302
|
-
});
|
|
303
|
-
this.setDragPanDisabled = this.effect((input) => {
|
|
304
|
-
return input.pipe(switchMap((disabled) => {
|
|
305
|
-
return this.mapInstance$.pipe(tap((map) => {
|
|
306
|
-
if (disabled === false) {
|
|
307
|
-
map.dragPan.enable();
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
map.dragPan.disable();
|
|
311
|
-
}
|
|
312
|
-
}));
|
|
313
|
-
}));
|
|
314
|
-
});
|
|
315
|
-
this.setZoomDisabled = this.effect((input) => {
|
|
316
|
-
return input.pipe(switchMap((disabled) => {
|
|
317
|
-
return this.mapInstance$.pipe(tap((map) => {
|
|
318
|
-
if (disabled === false) {
|
|
319
|
-
map.scrollZoom.enable();
|
|
320
|
-
map.doubleClickZoom.enable();
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
map.scrollZoom.disable();
|
|
324
|
-
map.doubleClickZoom.disable();
|
|
325
|
-
}
|
|
326
|
-
}));
|
|
327
|
-
}));
|
|
328
|
-
});
|
|
329
|
-
this.setPitch = this.effect((input) => {
|
|
330
|
-
return input.pipe(switchMap((pitch) => {
|
|
331
|
-
return this.mapInstance$.pipe(tap((map) => map.setPitch(pitch)));
|
|
332
|
-
}));
|
|
333
|
-
});
|
|
334
|
-
this.setMinPitch = this.effect((input) => {
|
|
335
|
-
return input.pipe(switchMap((pitch) => {
|
|
336
|
-
return this.mapInstance$.pipe(tap((map) => map.setMinPitch(pitch)));
|
|
337
|
-
}));
|
|
338
|
-
});
|
|
339
|
-
this.setMaxPitch = this.effect((input) => {
|
|
340
|
-
return input.pipe(switchMap((pitch) => {
|
|
341
|
-
return this.mapInstance$.pipe(tap((map) => map.setMaxPitch(pitch)));
|
|
342
|
-
}));
|
|
343
|
-
});
|
|
344
|
-
this.setBearing = this.effect((input) => {
|
|
345
|
-
return input.pipe(switchMap((bearing) => {
|
|
346
|
-
return this.mapInstance$.pipe(tap((map) => map.setBearing(bearing)));
|
|
347
|
-
}));
|
|
348
|
-
});
|
|
349
|
-
this.rotateTo = this.effect((input) => {
|
|
350
|
-
return input.pipe(switchMap((rotateInput) => {
|
|
351
|
-
const rotate = typeof rotateInput === 'number' ? { bearing: rotateInput } : rotateInput;
|
|
352
|
-
return this.mapInstance$.pipe(tap((map) => map.rotateTo(rotate.bearing, rotate.options, rotate === null || rotate === void 0 ? void 0 : rotate.eventData)));
|
|
353
|
-
}));
|
|
354
|
-
});
|
|
355
|
-
this.resetNorth = this.effect((input) => {
|
|
356
|
-
return input.pipe(switchMap((reset) => {
|
|
357
|
-
return this.mapInstance$.pipe(tap((map) => map.resetNorth(reset === null || reset === void 0 ? void 0 : reset.options, reset === null || reset === void 0 ? void 0 : reset.eventData)));
|
|
358
|
-
}));
|
|
359
|
-
});
|
|
360
|
-
this.resetNorthPitch = this.effect((input) => {
|
|
361
|
-
return input.pipe(switchMap((reset) => {
|
|
362
|
-
return this.mapInstance$.pipe(tap((map) => map.resetNorthPitch(reset === null || reset === void 0 ? void 0 : reset.options, reset === null || reset === void 0 ? void 0 : reset.eventData)));
|
|
363
|
-
}));
|
|
364
|
-
});
|
|
365
|
-
this.snapToNorth = this.effect((input) => {
|
|
366
|
-
return input.pipe(switchMap((snap) => {
|
|
367
|
-
return this.mapInstance$.pipe(tap((map) => map.snapToNorth(snap === null || snap === void 0 ? void 0 : snap.options, snap === null || snap === void 0 ? void 0 : snap.eventData)));
|
|
368
|
-
}));
|
|
369
|
-
});
|
|
370
|
-
this.fitPositions = this.effect((input) => {
|
|
371
|
-
return input.pipe(switchMap((x) => {
|
|
372
|
-
const boundFromInput = latLngBoundFromInput(x.positions);
|
|
373
|
-
if (boundFromInput) {
|
|
374
|
-
const bound = this.latLngBound(boundFromInput);
|
|
375
|
-
return this.mapInstance$.pipe(tap((map) => map.fitBounds(new MapboxGl.LngLatBounds(bound.sw, bound.ne), x.options, x.eventData)));
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
return EMPTY;
|
|
379
|
-
}
|
|
380
|
-
}));
|
|
381
|
-
});
|
|
382
|
-
this.fitBounds = this.effect((input) => {
|
|
383
|
-
return input.pipe(switchMap((x) => {
|
|
384
|
-
const bound = this.latLngBound(x.bounds);
|
|
385
|
-
return this.mapInstance$.pipe(tap((map) => map.fitBounds(new MapboxGl.LngLatBounds(bound.sw, bound.ne), x.options, x.eventData)));
|
|
386
|
-
}));
|
|
387
|
-
});
|
|
388
|
-
this.jumpTo = this.effect((input) => {
|
|
389
|
-
return input.pipe(switchMap((x) => {
|
|
390
|
-
var _a, _b;
|
|
391
|
-
const inputCenter = (_a = x.center) !== null && _a !== void 0 ? _a : (_b = x.to) === null || _b === void 0 ? void 0 : _b.center;
|
|
392
|
-
const center = inputCenter ? this.safeLatLngPoint(inputCenter) : undefined;
|
|
393
|
-
return this.mapInstance$.pipe(tap((map) => map.jumpTo(filterUndefinedValues(Object.assign(Object.assign({}, x.to), { center })), x.eventData)));
|
|
394
|
-
}));
|
|
395
|
-
});
|
|
396
|
-
this.easeTo = this.effect((input) => {
|
|
397
|
-
return input.pipe(switchMap((x) => {
|
|
398
|
-
var _a, _b;
|
|
399
|
-
const inputCenter = (_a = x.center) !== null && _a !== void 0 ? _a : (_b = x.to) === null || _b === void 0 ? void 0 : _b.center;
|
|
400
|
-
const center = inputCenter ? this.safeLatLngPoint(inputCenter) : undefined;
|
|
401
|
-
return this.mapInstance$.pipe(tap((map) => map.easeTo(filterUndefinedValues(Object.assign(Object.assign({}, x.to), { center })), x.eventData)));
|
|
402
|
-
}));
|
|
403
|
-
});
|
|
404
|
-
this.flyTo = this.effect((input) => {
|
|
405
|
-
return input.pipe(switchMap((x) => {
|
|
406
|
-
var _a, _b;
|
|
407
|
-
const inputCenter = (_a = x.center) !== null && _a !== void 0 ? _a : (_b = x.to) === null || _b === void 0 ? void 0 : _b.center;
|
|
408
|
-
const center = inputCenter ? this.safeLatLngPoint(inputCenter) : undefined;
|
|
409
|
-
return this.mapInstance$.pipe(tap((map) => map.flyTo(filterUndefinedValues(Object.assign(Object.assign({}, x.to), { center })), x.eventData)));
|
|
410
|
-
}));
|
|
411
|
-
});
|
|
412
|
-
this.resetPitchAndBearing = this.effect((input) => {
|
|
413
|
-
return input.pipe(switchMap(() => {
|
|
414
|
-
return this.mapInstance$.pipe(tap((map) => {
|
|
415
|
-
map.setPitch(0);
|
|
416
|
-
map.setBearing(0);
|
|
417
|
-
}));
|
|
418
|
-
}));
|
|
419
|
-
});
|
|
420
|
-
this.currentMapService$ = this.state$.pipe(map((x) => x.mapService), distinctUntilChanged(), shareReplay(1));
|
|
421
|
-
this.mapService$ = this.currentMapService$.pipe(filterMaybe());
|
|
422
|
-
this.currentMapInstance$ = this.currentMapService$.pipe(switchMap((currentMapService) => {
|
|
423
|
-
if (currentMapService) {
|
|
424
|
-
return currentMapService.mapLoaded$.pipe(defaultIfEmpty(undefined), map(() => currentMapService.mapInstance));
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
return of(undefined);
|
|
428
|
-
}
|
|
429
|
-
}), distinctUntilChanged(), shareReplay(1));
|
|
430
|
-
this.mapInstance$ = this.currentMapInstance$.pipe(filterMaybe());
|
|
431
|
-
this.boundRefreshSettings$ = this.state$.pipe(map((x) => x.boundRefreshSettings), shareReplay(1));
|
|
432
|
-
this.moveState$ = this.state$.pipe(map((x) => x.moveState), distinctUntilChanged(), shareReplay(1));
|
|
433
|
-
this.lifecycleState$ = this.state$.pipe(map((x) => x.lifecycleState), distinctUntilChanged(), shareReplay(1));
|
|
434
|
-
this.zoomState$ = this.state$.pipe(map((x) => x.zoomState), distinctUntilChanged(), shareReplay(1));
|
|
435
|
-
this.rotateState$ = this.state$.pipe(map((x) => x.rotateState), distinctUntilChanged(), shareReplay(1));
|
|
436
|
-
this.isInitialized$ = this.currentMapInstance$.pipe(switchMap((x) => {
|
|
437
|
-
if (!x) {
|
|
438
|
-
return of(false);
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
return combineLatest([this.moveState$.pipe(map((x) => x === 'idle')), this.lifecycleState$.pipe(map((x) => x === 'idle'))]).pipe(filter(([m, l]) => m && l), first(), map(() => true));
|
|
442
|
-
}
|
|
443
|
-
}), shareReplay(1));
|
|
444
|
-
this.whenInitialized$ = this.isInitialized$.pipe(filter((x) => true), shareReplay(1));
|
|
445
|
-
this.isRendering$ = this.whenInitialized$.pipe(switchMap(() => this.lifecycleState$.pipe(map((x) => x === 'render'), distinctUntilChanged(), shareReplay(1))));
|
|
446
|
-
this.isMoving$ = this.whenInitialized$.pipe(switchMap(() => this.moveState$.pipe(map((x) => x === 'moving'), distinctUntilChanged(), shareReplay(1))));
|
|
447
|
-
this.isZooming$ = this.whenInitialized$.pipe(switchMap(() => this.zoomState$.pipe(map((x) => x === 'zooming'), distinctUntilChanged(), shareReplay(1))));
|
|
448
|
-
this.isRotating$ = this.whenInitialized$.pipe(switchMap(() => this.rotateState$.pipe(map((x) => x === 'rotating'), distinctUntilChanged(), shareReplay(1))));
|
|
449
|
-
this._movingTimer = this.movingTimer();
|
|
450
|
-
this._renderingTimer = this.lifecycleRenderTimer();
|
|
451
|
-
this.centerNow$ = this.whenInitialized$.pipe(switchMap(() => this.mapInstance$.pipe(switchMap((x) => this._movingTimer.pipe(map(() => this.latLngPoint(x.getCenter())))), shareReplay(1))), shareReplay(1));
|
|
452
|
-
this.center$ = this.whenInitialized$.pipe(switchMap(() => {
|
|
453
|
-
return this.isMoving$.pipe(onTrueToFalse(), startWith(undefined), switchMap(() => this.centerNow$.pipe(first())), distinctUntilChanged(isSameLatLngPoint), shareReplay(1));
|
|
454
|
-
}), shareReplay(1));
|
|
455
|
-
this.minimumVirtualViewportSize$ = this.state$.pipe(map((x) => x.minimumVirtualViewportSize), distinctUntilChanged(isSameVector), shareReplay(1));
|
|
456
|
-
this.currentMapCanvasSize$ = this.state$.pipe(map((x) => x.mapCanvasSize), distinctUntilChanged(isSameVector), shareReplay(1));
|
|
457
|
-
/**
|
|
458
|
-
* The map canvas size with consideration to the virtual viewport size.
|
|
459
|
-
*/
|
|
460
|
-
this.mapCanvasSize$ = this.currentMapCanvasSize$.pipe(filterMaybe());
|
|
461
|
-
/**
|
|
462
|
-
* The map canvas size with consideration to the virtual viewport size.
|
|
463
|
-
*/
|
|
464
|
-
this.virtualMapCanvasSize$ = this.minimumVirtualViewportSize$.pipe(switchMap((minimumVirtualViewportSize) => {
|
|
465
|
-
if (minimumVirtualViewportSize) {
|
|
466
|
-
return this.minimumMapCanvasSize(minimumVirtualViewportSize);
|
|
467
|
-
}
|
|
468
|
-
else {
|
|
469
|
-
return this.mapCanvasSize$;
|
|
470
|
-
}
|
|
471
|
-
}), distinctUntilChanged(isSameVector), shareReplay(1));
|
|
472
|
-
this.rawViewportBoundFunction$ = this.mapCanvasSize$.pipe(map((mapCanvasSize) => mapboxViewportBoundFunction({ mapCanvasSize })), shareReplay(1));
|
|
473
|
-
this.viewportBoundFunction$ = this.minimumVirtualViewportSize$.pipe(switchMap((minimumVirtualViewportSize) => {
|
|
474
|
-
if (minimumVirtualViewportSize) {
|
|
475
|
-
return this.viewportBoundFunctionWithMinimumSize(minimumVirtualViewportSize);
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
478
|
-
return this.rawViewportBoundFunction$;
|
|
479
|
-
}
|
|
480
|
-
}), shareReplay(1));
|
|
481
|
-
this.virtualBound$ = this.viewportBoundFunction$.pipe(switchMap((fn) => {
|
|
482
|
-
return this.boundRefreshSettings$.pipe(switchMap((settings) => {
|
|
483
|
-
const { throttle: throttleMs, refreshType } = settings;
|
|
484
|
-
let obs;
|
|
485
|
-
switch (refreshType) {
|
|
486
|
-
case 'always':
|
|
487
|
-
obs = combineLatest([this.centerNow$, this.zoomNow$]);
|
|
488
|
-
break;
|
|
489
|
-
case 'when_not_rendering':
|
|
490
|
-
case 'only_after_render_finishes':
|
|
491
|
-
obs = this.bound$.pipe(switchMap(() => combineLatest([this.centerNow$, this.zoomNow$]))); // refresh whenever the bound refreshes
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
return obs.pipe(throttleTime(throttleMs, undefined, { leading: true, trailing: true }), map(([center, zoom]) => fn({
|
|
495
|
-
center,
|
|
496
|
-
zoom
|
|
497
|
-
})));
|
|
498
|
-
}));
|
|
499
|
-
}), distinctUntilChanged(isSameLatLngBound), shareReplay(1));
|
|
500
|
-
this.margin$ = this.state$.pipe(map((x) => x.margin), distinctUntilChanged((a, b) => a != null && b != null && a.fullWidth === b.fullWidth && a.leftMargin === b.leftMargin && a.rightMargin === b.rightMargin), shareReplay(1));
|
|
501
|
-
this.reverseMargin$ = this.margin$.pipe(map((x) => {
|
|
502
|
-
if (x) {
|
|
503
|
-
return { leftMargin: -x.leftMargin, rightMargin: -x.rightMargin, fullWidth: x.fullWidth };
|
|
504
|
-
}
|
|
505
|
-
else {
|
|
506
|
-
return x;
|
|
507
|
-
}
|
|
508
|
-
}));
|
|
509
|
-
this.centerGivenMargin$ = this.whenInitialized$.pipe(switchMap(() => {
|
|
510
|
-
return this.reverseMargin$.pipe(switchMap((x) => {
|
|
511
|
-
if (x) {
|
|
512
|
-
return this.center$.pipe(switchMap((_) => this.calculateNextCenterOffsetWithScreenMarginChange(x)));
|
|
513
|
-
}
|
|
514
|
-
else {
|
|
515
|
-
return this.isMoving$.pipe(filter((x) => !x), switchMap(() => this.center$));
|
|
516
|
-
}
|
|
517
|
-
}));
|
|
518
|
-
}), shareReplay(1));
|
|
519
|
-
this.rawBoundNow$ = this.whenInitialized$.pipe(switchMap(() => this.mapInstance$.pipe(switchMap((x) => this._renderingTimer.pipe(map(() => {
|
|
520
|
-
const bound = x.getBounds();
|
|
521
|
-
const boundSw = bound.getSouthWest();
|
|
522
|
-
const boundNe = bound.getNorthEast();
|
|
523
|
-
const sw = isDefaultLatLngPoint(boundSw) ? swMostLatLngPoint() : { lat: boundSw.lat, lng: boundSw.lng };
|
|
524
|
-
const ne = isDefaultLatLngPoint(boundNe) ? neMostLatLngPoint() : { lat: boundNe.lat, lng: boundNe.lng };
|
|
525
|
-
return this.latLngBound(sw, ne);
|
|
526
|
-
}))))), distinctUntilChanged(isSameLatLngBound), shareReplay(1));
|
|
527
|
-
this.rawBound$ = this.whenInitialized$.pipe(switchMap(() => {
|
|
528
|
-
return this.boundRefreshSettings$.pipe(switchMap((settings) => {
|
|
529
|
-
const { throttle: throttleMs, refreshType } = settings;
|
|
530
|
-
let obs;
|
|
531
|
-
switch (refreshType) {
|
|
532
|
-
case 'always':
|
|
533
|
-
obs = this.rawBoundNow$;
|
|
534
|
-
break;
|
|
535
|
-
case 'when_not_rendering':
|
|
536
|
-
obs = this.isRendering$.pipe(switchMap((x) => (x ? EMPTY : this.rawBoundNow$)));
|
|
537
|
-
break;
|
|
538
|
-
case 'only_after_render_finishes':
|
|
539
|
-
obs = this.isRendering$.pipe(onTrueToFalse(), switchMap((x) => this.rawBoundNow$.pipe(first())));
|
|
540
|
-
break;
|
|
541
|
-
}
|
|
542
|
-
return obs.pipe(throttleTime(throttleMs, undefined, { leading: true, trailing: true }));
|
|
543
|
-
}));
|
|
544
|
-
}), distinctUntilChanged(isSameLatLngBound), shareReplay(1));
|
|
545
|
-
this.useVirtualBound$ = this.state$.pipe(map((x) => x.useVirtualBound), distinctUntilChanged(), shareReplay(1));
|
|
546
|
-
this.bound$ = this.useVirtualBound$.pipe(switchMap((useVirtualBound) => {
|
|
547
|
-
if (useVirtualBound) {
|
|
548
|
-
return this.virtualBound$;
|
|
549
|
-
}
|
|
550
|
-
else {
|
|
551
|
-
return this.rawBound$;
|
|
552
|
-
}
|
|
553
|
-
}), shareReplay(1));
|
|
554
|
-
this.boundSizing$ = this.bound$.pipe(map((x) => diffLatLngBoundPoints(x)), shareReplay(1));
|
|
555
|
-
this.boundWrapsAroundWorld$ = this.bound$.pipe(map((x) => latLngBoundWrapsMap(x)), distinctUntilChanged(), shareReplay(1));
|
|
556
|
-
this.isWithinBoundFunction$ = this.bound$.pipe(map((x) => isWithinLatLngBoundFunction(x)), shareReplay(1));
|
|
557
|
-
this.overlapsBoundFunction$ = this.virtualBound$.pipe(map((x) => overlapsLatLngBoundFunction(x)), shareReplay(1));
|
|
558
|
-
this.zoomNow$ = this.whenInitialized$.pipe(switchMap(() => this.mapInstance$.pipe(switchMap((x) => this._renderingTimer.pipe(map(() => x.getZoom()))), shareReplay(1))));
|
|
559
|
-
this.zoom$ = this.whenInitialized$.pipe(switchMap(() => {
|
|
560
|
-
return this.isZooming$.pipe(onTrueToFalse(), startWith(undefined), switchMap(() => this.zoomNow$.pipe(first())), distinctUntilChanged(), shareReplay(1));
|
|
561
|
-
}));
|
|
562
|
-
this.pitchNow$ = this.whenInitialized$.pipe(switchMap(() => this.mapInstance$.pipe(switchMap((x) => this._movingTimer.pipe(map(() => x.getPitch()))), shareReplay(1))));
|
|
563
|
-
this.pitch$ = this.whenInitialized$.pipe(switchMap(() => {
|
|
564
|
-
return this.isRotating$.pipe(onTrueToFalse(), startWith(undefined), switchMap(() => this.pitchNow$.pipe(first())), distinctUntilChanged(), shareReplay(1));
|
|
565
|
-
}));
|
|
566
|
-
this.bearingNow$ = this.whenInitialized$.pipe(switchMap(() => this.mapInstance$.pipe(switchMap((x) => this._movingTimer.pipe(map(() => x.getBearing()))), shareReplay(1))));
|
|
567
|
-
this.bearing$ = this.whenInitialized$.pipe(switchMap(() => {
|
|
568
|
-
return this.isRotating$.pipe(onTrueToFalse(), startWith(undefined), switchMap(() => this.bearingNow$.pipe(first())), distinctUntilChanged(), shareReplay(1));
|
|
569
|
-
}));
|
|
570
|
-
this.content$ = this.state$.pipe(map((x) => x.content), distinctUntilChanged(), shareReplay(1));
|
|
571
|
-
this.hasContent$ = this.content$.pipe(map(Boolean));
|
|
572
|
-
this.clickEvent$ = this.state$.pipe(map((x) => x.clickEvent), distinctUntilChanged(), shareReplay(1));
|
|
573
|
-
this.doubleClickEvent$ = this.state$.pipe(map((x) => x.doubleClickEvent), distinctUntilChanged(), shareReplay(1));
|
|
574
|
-
this.rightClickEvent$ = this.state$.pipe(map((x) => x.rightClickEvent), distinctUntilChanged(), shareReplay(1));
|
|
575
|
-
// MARK: State Changes
|
|
576
|
-
this.setMargin = this.updater((state, margin) => (Object.assign(Object.assign({}, state), { margin: margin && (margin.rightMargin !== 0 || margin.leftMargin !== 0) ? margin : undefined })));
|
|
577
|
-
this.setMinimumVirtualViewportSize = this.updater((state, minimumVirtualViewportSize) => (Object.assign(Object.assign({}, state), { minimumVirtualViewportSize })));
|
|
578
|
-
this.setUseVirtualBound = this.updater((state, useVirtualBound) => (Object.assign(Object.assign({}, state), { useVirtualBound })));
|
|
579
|
-
this.setBoundRefreshSettings = this.updater((state, boundRefreshSettings) => (Object.assign(Object.assign({}, state), { boundRefreshSettings: Object.assign(Object.assign({}, state.boundRefreshSettings), boundRefreshSettings) })));
|
|
580
|
-
this._setMapService = this.updater((state, mapService) => ({ mapService, moveState: 'init', lifecycleState: 'init', zoomState: 'init', rotateState: 'init', retainContent: state.retainContent, content: state.retainContent ? state.content : undefined, useVirtualBound: state.useVirtualBound, boundRefreshSettings: state.boundRefreshSettings }));
|
|
581
|
-
this._setLifecycleState = this.updater((state, lifecycleState) => (Object.assign(Object.assign({}, state), { lifecycleState })));
|
|
582
|
-
this._setMoveState = this.updater((state, moveState) => (Object.assign(Object.assign({}, state), { moveState })));
|
|
583
|
-
this._setZoomState = this.updater((state, zoomState) => (Object.assign(Object.assign({}, state), { zoomState })));
|
|
584
|
-
this._setRotateState = this.updater((state, rotateState) => (Object.assign(Object.assign({}, state), { rotateState })));
|
|
585
|
-
this._setMapCanvasSize = this.updater((state, mapCanvasSize) => (Object.assign(Object.assign({}, state), { mapCanvasSize })));
|
|
586
|
-
this._setClickEvent = this.updater((state, clickEvent) => (Object.assign(Object.assign({}, state), { clickEvent })));
|
|
587
|
-
this._setDoubleClickEvent = this.updater((state, doubleClickEvent) => (Object.assign(Object.assign({}, state), { doubleClickEvent })));
|
|
588
|
-
this._setRightClickEvent = this.updater((state, rightClickEvent) => (Object.assign(Object.assign({}, state), { rightClickEvent })));
|
|
589
|
-
this._setError = this.updater((state, error) => (Object.assign(Object.assign({}, state), { error })));
|
|
590
|
-
this.clearContent = this.updater((state) => (Object.assign(Object.assign({}, state), { content: undefined })));
|
|
591
|
-
this.setContent = this.updater((state, content) => (Object.assign(Object.assign({}, state), { content })));
|
|
592
|
-
}
|
|
593
|
-
// MARK: Accessors
|
|
594
|
-
get timerRefreshPeriod() {
|
|
595
|
-
return this.dbxMapboxService.mapboxMapStoreTimerRefreshPeriod;
|
|
596
|
-
}
|
|
597
|
-
movingTimer(period = this.timerRefreshPeriod) {
|
|
598
|
-
return this.moveState$.pipe(switchMap((x) => {
|
|
599
|
-
if (x === 'moving') {
|
|
600
|
-
return interval(period);
|
|
601
|
-
}
|
|
602
|
-
else {
|
|
603
|
-
return of(0);
|
|
604
|
-
}
|
|
605
|
-
}), shareReplay(1));
|
|
606
|
-
}
|
|
607
|
-
lifecycleRenderTimer(period = this.timerRefreshPeriod) {
|
|
608
|
-
return this.lifecycleState$.pipe(switchMap((x) => {
|
|
609
|
-
if (x === 'render') {
|
|
610
|
-
return interval(period);
|
|
611
|
-
}
|
|
612
|
-
else {
|
|
613
|
-
return of(0);
|
|
614
|
-
}
|
|
615
|
-
}), shareReplay(1));
|
|
616
|
-
}
|
|
617
|
-
atNextIdle() {
|
|
618
|
-
return this.moveState$.pipe(map((x) => x === 'idle'), first());
|
|
619
|
-
}
|
|
620
|
-
calculateNextCenterWithOffset(inputOffset) {
|
|
621
|
-
const offset = this.latLngPoint(inputOffset);
|
|
622
|
-
return this.atNextIdle().pipe(switchMap(() => this.center$.pipe(first(), map((center) => {
|
|
623
|
-
const newCenter = {
|
|
624
|
-
lat: offset.lat + center.lat,
|
|
625
|
-
lng: offset.lng + center.lng
|
|
626
|
-
};
|
|
627
|
-
return newCenter;
|
|
628
|
-
}))));
|
|
629
|
-
}
|
|
630
|
-
calculateNextCenterOffsetWithScreenMarginChange(sizing) {
|
|
631
|
-
// TODO: Consider calculating this using the viewport() function from @mapbox/geo-viewport
|
|
632
|
-
return this.atNextIdle().pipe(switchMap(() => this.bound$.pipe(first(), map((bounds) => {
|
|
633
|
-
const diff = diffLatLngBoundPoints(bounds, true);
|
|
634
|
-
const center = latLngBoundCenterPoint(bounds);
|
|
635
|
-
const offsetWidth = sizing.leftMargin + sizing.rightMargin; // 300 + 0
|
|
636
|
-
const newWidth = sizing.fullWidth - offsetWidth; // 1000 - 300 - 0
|
|
637
|
-
const newWidthRatio = newWidth / sizing.fullWidth; // 700 / 1000
|
|
638
|
-
const newCenterLongitudeWidth = diff.lng * newWidthRatio; // 70% offset
|
|
639
|
-
const effectiveOffset = {
|
|
640
|
-
lat: 0,
|
|
641
|
-
lng: newCenterLongitudeWidth / 2
|
|
642
|
-
};
|
|
643
|
-
const newCenter = addLatLngPoints(bounds.sw, effectiveOffset);
|
|
644
|
-
newCenter.lat = center.lat; // retain center position
|
|
645
|
-
// console.log({ sizing, bounds, effectiveOffset, newWidth, offsetWidth, diff, center, newCenter });
|
|
646
|
-
return newCenter;
|
|
647
|
-
}))));
|
|
648
|
-
}
|
|
649
|
-
filterByViewportBound(input) {
|
|
650
|
-
const config = typeof input === 'function' ? { readValue: input } : input;
|
|
651
|
-
return filterByMapboxViewportBound(Object.assign(Object.assign({}, config), { boundFunctionObs: this.viewportBoundFunction$, boundDecisionObs: this.overlapsBoundFunction$ }));
|
|
652
|
-
}
|
|
653
|
-
minimumMapCanvasSize(minVector) {
|
|
654
|
-
const resizeFn = vectorMinimumSizeResizeFunction(minVector);
|
|
655
|
-
return this.mapCanvasSize$.pipe(map((x) => resizeFn(x)), distinctUntilChanged(isSameVector), shareReplay(1));
|
|
656
|
-
}
|
|
657
|
-
/**
|
|
658
|
-
* Creates a MapboxViewportBoundFunction observable that returns the minimum viewport size.
|
|
659
|
-
*
|
|
660
|
-
* @param minVector
|
|
661
|
-
* @returns
|
|
662
|
-
*/
|
|
663
|
-
viewportBoundFunctionWithMinimumSize(minVector) {
|
|
664
|
-
const resizeFn = vectorMinimumSizeResizeFunction(minVector);
|
|
665
|
-
return this.mapCanvasSize$.pipe(map((x) => resizeFn(x)), distinctUntilChanged(isSameVector), map((mapCanvasSize) => mapboxViewportBoundFunction({ mapCanvasSize })), shareReplay(1));
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
DbxMapboxMapStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapStore, deps: [{ token: DbxMapboxService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
669
|
-
DbxMapboxMapStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapStore });
|
|
670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapStore, decorators: [{
|
|
671
|
-
type: Injectable
|
|
672
|
-
}], ctorParameters: function () {
|
|
673
|
-
return [{ type: DbxMapboxService, decorators: [{
|
|
674
|
-
type: Inject,
|
|
675
|
-
args: [DbxMapboxService]
|
|
676
|
-
}] }];
|
|
677
|
-
} });
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Provided in the parent component that allows children to emit events related to their lifecycles.
|
|
681
|
-
*/
|
|
682
|
-
class DbxMapboxChangeService {
|
|
683
|
-
constructor(dbxMapboxMapStore) {
|
|
684
|
-
this.dbxMapboxMapStore = dbxMapboxMapStore;
|
|
685
|
-
this._markerDestroyed = new Subject();
|
|
686
|
-
this._applyChanges = new Subject();
|
|
687
|
-
this.markerDestroyed$ = this._markerDestroyed;
|
|
688
|
-
this.applyChanges$ = merge(this._applyChanges, this.markerDestroyed$).pipe(throttleTime(100, undefined, { leading: false, trailing: true }));
|
|
689
|
-
this._applyChangesSub = new SubscriptionObject(this.dbxMapboxMapStore.mapService$
|
|
690
|
-
.pipe(switchMap((mapService) => this.applyChanges$.pipe(tap(() => {
|
|
691
|
-
mapService.applyChanges();
|
|
692
|
-
}))))
|
|
693
|
-
.subscribe());
|
|
694
|
-
}
|
|
695
|
-
applyChanges() {
|
|
696
|
-
this._applyChanges.next();
|
|
697
|
-
}
|
|
698
|
-
emitMarkerDestroyed() {
|
|
699
|
-
this._markerDestroyed.next();
|
|
700
|
-
}
|
|
701
|
-
ngOnDestroy() {
|
|
702
|
-
this._markerDestroyed.complete();
|
|
703
|
-
this._applyChanges.complete();
|
|
704
|
-
this._applyChangesSub.destroy();
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
DbxMapboxChangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxChangeService, deps: [{ token: DbxMapboxMapStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
708
|
-
DbxMapboxChangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxChangeService, providedIn: null });
|
|
709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxChangeService, decorators: [{
|
|
710
|
-
type: Injectable,
|
|
711
|
-
args: [{
|
|
712
|
-
providedIn: null
|
|
713
|
-
}]
|
|
714
|
-
}], ctorParameters: function () { return [{ type: DbxMapboxMapStore }]; } });
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* Store used for storing injectable content into the map.
|
|
718
|
-
*/
|
|
719
|
-
class DbxMapboxInjectionStore extends ComponentStore {
|
|
720
|
-
constructor() {
|
|
721
|
-
super({
|
|
722
|
-
map: new Map()
|
|
723
|
-
});
|
|
724
|
-
this.map$ = this.state$.pipe(map((x) => x.map), distinctUntilMapHasDifferentKeys(), shareReplay(1));
|
|
725
|
-
this.allInjectionConfigs$ = this.map$.pipe(map((x) => Array.from(x.values())), shareReplay(1));
|
|
726
|
-
// MARK: State Changes
|
|
727
|
-
this.addInjectionConfig = this.updater(updateDbxMapboxMapInjectionStoreStateWithInjectionConfig);
|
|
728
|
-
this.removeInjectionConfigWithKey = this.updater(updateDbxMapboxMapInjectionStoreStateWithRemovedKey);
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
DbxMapboxInjectionStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
732
|
-
DbxMapboxInjectionStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionStore });
|
|
733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionStore, decorators: [{
|
|
734
|
-
type: Injectable
|
|
735
|
-
}], ctorParameters: function () { return []; } });
|
|
736
|
-
function updateDbxMapboxMapInjectionStoreStateWithInjectionConfig(state, config) {
|
|
737
|
-
const map = new Map(state.map).set(config.key, config);
|
|
738
|
-
return Object.assign(Object.assign({}, state), { map });
|
|
739
|
-
}
|
|
740
|
-
function updateDbxMapboxMapInjectionStoreStateWithRemovedKey(state, key) {
|
|
741
|
-
// only create a new state if the key is going to get removed
|
|
742
|
-
if (state.map.has(key)) {
|
|
743
|
-
const map = new Map(state.map);
|
|
744
|
-
map.delete(key);
|
|
745
|
-
state = Object.assign(Object.assign({}, state), { map });
|
|
746
|
-
}
|
|
747
|
-
return state;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* Injects the components configured in the DbxMapboxInjectionStore into the view.
|
|
752
|
-
*/
|
|
753
|
-
class DbxMapboxInjectionComponent {
|
|
754
|
-
constructor(dbxMapboxMapKeyInjectionStore, injector) {
|
|
755
|
-
this.dbxMapboxMapKeyInjectionStore = dbxMapboxMapKeyInjectionStore;
|
|
756
|
-
this.injector = injector;
|
|
757
|
-
this.entries$ = this.dbxMapboxMapKeyInjectionStore.allInjectionConfigs$.pipe(shareReplay(1));
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
DbxMapboxInjectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionComponent, deps: [{ token: DbxMapboxInjectionStore }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
761
|
-
DbxMapboxInjectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxInjectionComponent, selector: "dbx-mapbox-injection", ngImport: i0, template: `
|
|
762
|
-
<dbx-injection-array [entries]="entries$ | async"></dbx-injection-array>
|
|
763
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i2.DbxInjectionArrayComponent, selector: "dbx-injection-array", inputs: ["entries"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionComponent, decorators: [{
|
|
765
|
-
type: Component,
|
|
766
|
-
args: [{
|
|
767
|
-
selector: 'dbx-mapbox-injection',
|
|
768
|
-
template: `
|
|
769
|
-
<dbx-injection-array [entries]="entries$ | async"></dbx-injection-array>
|
|
770
|
-
`,
|
|
771
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
772
|
-
}]
|
|
773
|
-
}], ctorParameters: function () { return [{ type: DbxMapboxInjectionStore }, { type: i0.Injector }]; } });
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* Token used by provideMapboxInjectionStoreIfDoesNotExist() to prevent injecting a parent DbxMapboxInjectionStore into the child view.
|
|
777
|
-
*/
|
|
778
|
-
class DbxMapboxInjectionStoreProviderBlock {
|
|
779
|
-
constructor(dbxMapboxInjectionStore) {
|
|
780
|
-
this.dbxMapboxInjectionStore = dbxMapboxInjectionStore;
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
DbxMapboxInjectionStoreProviderBlock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock, deps: [{ token: DbxMapboxInjectionStore, skipSelf: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
784
|
-
DbxMapboxInjectionStoreProviderBlock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock });
|
|
785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionStoreProviderBlock, decorators: [{
|
|
786
|
-
type: Injectable
|
|
787
|
-
}], ctorParameters: function () {
|
|
788
|
-
return [{ type: DbxMapboxInjectionStore, decorators: [{
|
|
789
|
-
type: SkipSelf
|
|
790
|
-
}] }];
|
|
791
|
-
} });
|
|
792
|
-
class DbxMapboxInjectionStoreInjectionBlockDirective {
|
|
793
|
-
}
|
|
794
|
-
DbxMapboxInjectionStoreInjectionBlockDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionStoreInjectionBlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
795
|
-
DbxMapboxInjectionStoreInjectionBlockDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxInjectionStoreInjectionBlockDirective, selector: "[dbxMapboxInjectionStoreParentBlocker]", providers: [DbxMapboxInjectionStoreProviderBlock], ngImport: i0 });
|
|
796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxInjectionStoreInjectionBlockDirective, decorators: [{
|
|
797
|
-
type: Directive,
|
|
798
|
-
args: [{
|
|
799
|
-
selector: '[dbxMapboxInjectionStoreParentBlocker]',
|
|
800
|
-
providers: [DbxMapboxInjectionStoreProviderBlock]
|
|
801
|
-
}]
|
|
802
|
-
}] });
|
|
803
|
-
/**
|
|
804
|
-
* Creates a Provider that initializes a new DbxMapboxInjectionStore if a parent does not exist.
|
|
805
|
-
*
|
|
806
|
-
* If a DbxMapboxInjectionStoreInjectionBlock is available in the context, and references the same dbxMapboxInjectionStore that is attempting to be injected, a new DbxMapboxInjectionStore is created.
|
|
807
|
-
*
|
|
808
|
-
* @returns
|
|
809
|
-
*/
|
|
810
|
-
function provideMapboxInjectionStoreIfParentIsUnavailable() {
|
|
811
|
-
return {
|
|
812
|
-
provide: DbxMapboxInjectionStore,
|
|
813
|
-
useFactory: (parentInjector, dbxMapboxInjectionStoreInjectionBlock, dbxMapboxInjectionStore) => {
|
|
814
|
-
if (!dbxMapboxInjectionStore || (dbxMapboxInjectionStore && dbxMapboxInjectionStoreInjectionBlock != null && dbxMapboxInjectionStoreInjectionBlock.dbxMapboxInjectionStore === dbxMapboxInjectionStore)) {
|
|
815
|
-
// create a new dbxMapboxInjectionStore to use
|
|
816
|
-
const injector = Injector.create({ providers: [{ provide: DbxMapboxInjectionStore }], parent: parentInjector });
|
|
817
|
-
dbxMapboxInjectionStore = injector.get(DbxMapboxInjectionStore);
|
|
818
|
-
}
|
|
819
|
-
return dbxMapboxInjectionStore;
|
|
820
|
-
},
|
|
821
|
-
deps: [Injector, [new Optional(), DbxMapboxInjectionStoreProviderBlock], [new Optional(), new SkipSelf(), DbxMapboxInjectionStore]]
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* Directive that configures a MapComponent with content from DbxMapboxService. Connects a host MapService to a parent DbxMapboxMapStore if available.
|
|
827
|
-
*/
|
|
828
|
-
class DbxMapboxMapDirective {
|
|
829
|
-
constructor(
|
|
830
|
-
//
|
|
831
|
-
mapService, mapboxMap, dbxMapboxService, dbxMapboxMapStore) {
|
|
832
|
-
this.mapService = mapService;
|
|
833
|
-
this.mapboxMap = mapboxMap;
|
|
834
|
-
this.dbxMapboxService = dbxMapboxService;
|
|
835
|
-
this.dbxMapboxMapStore = dbxMapboxMapStore;
|
|
836
|
-
}
|
|
837
|
-
ngOnInit() {
|
|
838
|
-
// style must be provided first before the map will load.
|
|
839
|
-
this.mapboxMap.style = this.dbxMapboxService.defaultStyle;
|
|
840
|
-
this.mapboxMap.zoom = [this.dbxMapboxService.defaultZoom];
|
|
841
|
-
this.mapboxMap.center = latLngPoint(this.dbxMapboxService.defaultCenter);
|
|
842
|
-
if (this.dbxMapboxMapStore) {
|
|
843
|
-
this.dbxMapboxMapStore.setMapService(this.mapService);
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
DbxMapboxMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapDirective, deps: [{ token: i1.MapService, host: true }, { token: i1.MapComponent, host: true }, { token: DbxMapboxService }, { token: DbxMapboxMapStore, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
848
|
-
DbxMapboxMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxMapDirective, selector: "[dbxMapboxMap]", ngImport: i0 });
|
|
849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapDirective, decorators: [{
|
|
850
|
-
type: Directive,
|
|
851
|
-
args: [{
|
|
852
|
-
selector: '[dbxMapboxMap]'
|
|
853
|
-
}]
|
|
854
|
-
}], ctorParameters: function () {
|
|
855
|
-
return [{ type: i1.MapService, decorators: [{
|
|
856
|
-
type: Host
|
|
857
|
-
}] }, { type: i1.MapComponent, decorators: [{
|
|
858
|
-
type: Host
|
|
859
|
-
}] }, { type: DbxMapboxService }, { type: DbxMapboxMapStore, decorators: [{
|
|
860
|
-
type: Optional
|
|
861
|
-
}] }];
|
|
862
|
-
} });
|
|
863
|
-
|
|
864
|
-
/**
|
|
865
|
-
* Content drawer that connects with DbxMapboxMapStore to show the content.
|
|
866
|
-
*/
|
|
867
|
-
class DbxMapboxLayoutDrawerComponent {
|
|
868
|
-
constructor(dbxMapboxMapStore) {
|
|
869
|
-
this.dbxMapboxMapStore = dbxMapboxMapStore;
|
|
870
|
-
this.config$ = this.dbxMapboxMapStore.content$;
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
DbxMapboxLayoutDrawerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxLayoutDrawerComponent, deps: [{ token: DbxMapboxMapStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
874
|
-
DbxMapboxLayoutDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxLayoutDrawerComponent, selector: "dbx-mapbox-layout-drawer", host: { classAttribute: "dbx-mapbox-layout-drawer" }, ngImport: i0, template: "<div>\n <dbx-injection [config]=\"config$ | async\"></dbx-injection>\n</div>\n", dependencies: [{ kind: "component", type: i2.DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }] });
|
|
875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxLayoutDrawerComponent, decorators: [{
|
|
876
|
-
type: Component,
|
|
877
|
-
args: [{ selector: 'dbx-mapbox-layout-drawer', host: {
|
|
878
|
-
class: 'dbx-mapbox-layout-drawer'
|
|
879
|
-
}, template: "<div>\n <dbx-injection [config]=\"config$ | async\"></dbx-injection>\n</div>\n" }]
|
|
880
|
-
}], ctorParameters: function () { return [{ type: DbxMapboxMapStore }]; } });
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* Responsive component meant to split a left and right column.
|
|
884
|
-
*
|
|
885
|
-
* The left column is smaller than the right column, which contains the primary content.
|
|
886
|
-
*
|
|
887
|
-
* Requires a TwoColumnsContextStore to be provided.
|
|
888
|
-
*/
|
|
889
|
-
class DbxMapboxLayoutComponent extends SubscriptionObject {
|
|
890
|
-
constructor(dbxMapboxMapStore) {
|
|
891
|
-
super();
|
|
892
|
-
this.dbxMapboxMapStore = dbxMapboxMapStore;
|
|
893
|
-
this.openedChange = new EventEmitter();
|
|
894
|
-
this._resized = new Subject();
|
|
895
|
-
this._updateMargins = new Subject();
|
|
896
|
-
this._forceHasContent = new BehaviorSubject(false);
|
|
897
|
-
this._mode = new BehaviorSubject('side');
|
|
898
|
-
this._side = new BehaviorSubject('right');
|
|
899
|
-
this._isOpen = new BehaviorSubject(true);
|
|
900
|
-
this._color = new BehaviorSubject('background');
|
|
901
|
-
this._toggleSub = new SubscriptionObject();
|
|
902
|
-
this.resized$ = this._resized.asObservable();
|
|
903
|
-
this.side$ = this._side.pipe(distinctUntilChanged(), shareReplay(1));
|
|
904
|
-
this.mode$ = this._mode.pipe(distinctUntilChanged(), shareReplay(1));
|
|
905
|
-
this.hasContent$ = combineLatest([this._forceHasContent, this.dbxMapboxMapStore.hasContent$]).pipe(map(([hasContent, forceHasContent]) => hasContent || forceHasContent), distinctUntilChanged(), shareReplay(1));
|
|
906
|
-
this.isOpen$ = this._isOpen.asObservable();
|
|
907
|
-
this.isOpenAndHasContent$ = combineLatest([this.hasContent$, this._isOpen]).pipe(map(([hasContent, open]) => hasContent && open), distinctUntilChanged(), shareReplay(1));
|
|
908
|
-
this.position$ = this.side$.pipe(map((x) => (x === 'right' ? 'end' : 'start')), distinctUntilChanged(), shareReplay(1));
|
|
909
|
-
this.drawerClasses$ = combineLatest([this.side$, this.dbxMapboxMapStore.hasContent$, this.isOpenAndHasContent$]).pipe(
|
|
910
|
-
//
|
|
911
|
-
map(([side, hasContent, open]) => (hasContent ? 'has-drawer-content' : 'no-drawer-content') + ` ${side}-drawer ` + (open ? 'open-drawer' : '')), distinctUntilChanged(), shareReplay(1));
|
|
912
|
-
this.drawerButtonColor$ = this._color.pipe(distinctUntilChanged(), shareReplay(1));
|
|
913
|
-
this.buttonIcon$ = combineLatest([this.side$, this.isOpenAndHasContent$]).pipe(map(([side, opened]) => {
|
|
914
|
-
let icons = ['chevron_right', 'chevron_left'];
|
|
915
|
-
if (side === 'left') {
|
|
916
|
-
icons = icons.reverse();
|
|
917
|
-
}
|
|
918
|
-
return opened ? icons[0] : icons[1];
|
|
919
|
-
}));
|
|
920
|
-
// MARK: Compat
|
|
921
|
-
/**
|
|
922
|
-
* @deprecated use isOpenAndHasContent$ instead.
|
|
923
|
-
*/
|
|
924
|
-
this.opened$ = this.isOpenAndHasContent$;
|
|
925
|
-
}
|
|
926
|
-
ngOnInit() {
|
|
927
|
-
this.subscription = this.side$.pipe(switchMap(() => this._resized.pipe(throttleTime(100, undefined, { leading: true, trailing: true }), map(() => 'r'), startWith('s')))).subscribe((reason) => {
|
|
928
|
-
this.dbxMapboxMapStore.mapInstance$.subscribe((x) => {
|
|
929
|
-
x.resize();
|
|
930
|
-
// side changed
|
|
931
|
-
if (reason === 's') {
|
|
932
|
-
setTimeout(() => {
|
|
933
|
-
this._updateMargins.next();
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
});
|
|
937
|
-
});
|
|
938
|
-
let init = false;
|
|
939
|
-
this._toggleSub.subscription = this.mode$
|
|
940
|
-
.pipe(switchMap((mode) => {
|
|
941
|
-
let obs;
|
|
942
|
-
if (mode === 'push') {
|
|
943
|
-
obs = combineLatest([this.isOpenAndHasContent$.pipe(distinctUntilChanged()), this._updateMargins]).pipe(tap(([opened]) => {
|
|
944
|
-
let { right } = this.drawerContainer._contentMargins;
|
|
945
|
-
this.drawerContainer.updateContentMargins();
|
|
946
|
-
setTimeout(() => {
|
|
947
|
-
const flip = opened ? 1 : -1;
|
|
948
|
-
if (opened) {
|
|
949
|
-
right = this.drawerContainer._contentMargins.right;
|
|
950
|
-
}
|
|
951
|
-
right = (right || 0) * flip;
|
|
952
|
-
const element = this.content.nativeElement;
|
|
953
|
-
const width = element.clientWidth;
|
|
954
|
-
const margin = {
|
|
955
|
-
leftMargin: 0,
|
|
956
|
-
rightMargin: right,
|
|
957
|
-
fullWidth: width
|
|
958
|
-
};
|
|
959
|
-
const easeTo = this.dbxMapboxMapStore.calculateNextCenterOffsetWithScreenMarginChange(margin).pipe(first(), map((center) => ({ to: { center, duration: 3200, essential: false } })));
|
|
960
|
-
this.dbxMapboxMapStore.setMargin(opened ? margin : undefined);
|
|
961
|
-
if (!init) {
|
|
962
|
-
this.dbxMapboxMapStore.easeTo(easeTo);
|
|
963
|
-
}
|
|
964
|
-
else {
|
|
965
|
-
init = true;
|
|
966
|
-
}
|
|
967
|
-
});
|
|
968
|
-
}));
|
|
969
|
-
}
|
|
970
|
-
else {
|
|
971
|
-
obs = combineLatest([this.isOpenAndHasContent$.pipe(distinctUntilChanged()), this._updateMargins]).pipe(switchMap((_) => this.dbxMapboxMapStore.mapInstance$), tap((x) => {
|
|
972
|
-
this.drawerContainer.updateContentMargins();
|
|
973
|
-
x.triggerRepaint();
|
|
974
|
-
}));
|
|
975
|
-
}
|
|
976
|
-
return obs;
|
|
977
|
-
}))
|
|
978
|
-
.subscribe();
|
|
979
|
-
}
|
|
980
|
-
ngOnDestroy() {
|
|
981
|
-
this.openedChange.complete();
|
|
982
|
-
this._resized.complete();
|
|
983
|
-
this._updateMargins.complete();
|
|
984
|
-
this._side.complete();
|
|
985
|
-
this._isOpen.complete();
|
|
986
|
-
this._color.complete();
|
|
987
|
-
this._toggleSub.destroy();
|
|
988
|
-
this._forceHasContent.complete();
|
|
989
|
-
}
|
|
990
|
-
toggleDrawer(open) {
|
|
991
|
-
if (open == null) {
|
|
992
|
-
open = !this._isOpen.value;
|
|
993
|
-
}
|
|
994
|
-
this._isOpen.next(open);
|
|
995
|
-
}
|
|
996
|
-
set side(side) {
|
|
997
|
-
if (side != null) {
|
|
998
|
-
this._side.next(side);
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
set mode(mode) {
|
|
1002
|
-
if (mode != null) {
|
|
1003
|
-
this._mode.next(mode);
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
set opened(opened) {
|
|
1007
|
-
if (opened != null) {
|
|
1008
|
-
this._isOpen.next(opened);
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
set hasContent(hasContent) {
|
|
1012
|
-
if (hasContent != null) {
|
|
1013
|
-
this._forceHasContent.next(hasContent);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
set drawerButtonColor(color) {
|
|
1017
|
-
this._color.next(color);
|
|
1018
|
-
}
|
|
1019
|
-
onResized(event) {
|
|
1020
|
-
this._resized.next(event);
|
|
1021
|
-
}
|
|
1022
|
-
onOpened(opened) {
|
|
1023
|
-
this.openedChange.next(opened);
|
|
1024
|
-
if (this._isOpen.value !== opened) {
|
|
1025
|
-
this.openedChange.next(opened);
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
DbxMapboxLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxLayoutComponent, deps: [{ token: DbxMapboxMapStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
1030
|
-
DbxMapboxLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxLayoutComponent, selector: "dbx-mapbox-layout", inputs: { side: "side", mode: "mode", opened: "opened", hasContent: "hasContent", drawerButtonColor: "drawerButtonColor" }, outputs: { openedChange: "openedChange" }, viewQueries: [{ propertyName: "containerElement", first: true, predicate: MatDrawerContainer, descendants: true, read: ElementRef }, { propertyName: "drawerContainer", first: true, predicate: MatDrawerContainer, descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<mat-drawer-container #containerElement class=\"dbx-mapbox-layout-container\" [ngClass]=\"(drawerClasses$ | async) || ''\" [hasBackdrop]=\"false\">\n <mat-drawer class=\"dbx-mapbox-layout-drawer\" #drawer (openedChange)=\"onOpened($event)\" [opened]=\"isOpenAndHasContent$ | async\" [mode]=\"(mode$ | async) || 'side'\" [position]=\"(position$ | async) || 'end'\">\n <div class=\"dbx-mapbox-layout-drawer-content\" [ngClass]=\"(drawerClasses$ | async) || ''\">\n <ng-content select=\"[drawer]\"></ng-content>\n <dbx-mapbox-layout-drawer></dbx-mapbox-layout-drawer>\n </div>\n </mat-drawer>\n <mat-drawer-content #content class=\"dbx-mapbox-layout-content\" (resized)=\"onResized($event)\">\n <button mat-icon-button (click)=\"toggleDrawer()\" class=\"dbx-mapbox-layout-drawer-button\" [dbxColor]=\"drawerButtonColor$ | async\">\n <mat-icon>{{ buttonIcon$ | async }}</mat-icon>\n </button>\n <ng-content></ng-content>\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".dbx-mapbox-layout-container{height:100%;max-width:100%}.dbx-mapbox-layout-container .mat-drawer-container{height:100%}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer{max-width:calc(100% - var(--dbx-mapbox-min-width-var, 33px))}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer-content{height:100%;width:100%;overflow:hidden}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{position:absolute;z-index:2;top:40%;border:none;display:flex;overflow:hidden}.left-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{left:0;border-radius:0 20px 20px 0}.right-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{right:0;border-radius:20px 0 0 20px}.has-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.has-drawer-content.open-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.no-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:0px}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button mat-icon{padding-left:8px}\n"], dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: i3.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: i3.MatDrawerContent, selector: "mat-drawer-content" }, { kind: "directive", type: i4.DbxColorDirective, selector: "[dbxColor]", inputs: ["dbxColor"] }, { kind: "component", type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.ResizedDirective, selector: "[resized]", outputs: ["resized"] }, { kind: "component", type: DbxMapboxLayoutDrawerComponent, selector: "dbx-mapbox-layout-drawer" }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }] });
|
|
1031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxLayoutComponent, decorators: [{
|
|
1032
|
-
type: Component,
|
|
1033
|
-
args: [{ selector: 'dbx-mapbox-layout', template: "<mat-drawer-container #containerElement class=\"dbx-mapbox-layout-container\" [ngClass]=\"(drawerClasses$ | async) || ''\" [hasBackdrop]=\"false\">\n <mat-drawer class=\"dbx-mapbox-layout-drawer\" #drawer (openedChange)=\"onOpened($event)\" [opened]=\"isOpenAndHasContent$ | async\" [mode]=\"(mode$ | async) || 'side'\" [position]=\"(position$ | async) || 'end'\">\n <div class=\"dbx-mapbox-layout-drawer-content\" [ngClass]=\"(drawerClasses$ | async) || ''\">\n <ng-content select=\"[drawer]\"></ng-content>\n <dbx-mapbox-layout-drawer></dbx-mapbox-layout-drawer>\n </div>\n </mat-drawer>\n <mat-drawer-content #content class=\"dbx-mapbox-layout-content\" (resized)=\"onResized($event)\">\n <button mat-icon-button (click)=\"toggleDrawer()\" class=\"dbx-mapbox-layout-drawer-button\" [dbxColor]=\"drawerButtonColor$ | async\">\n <mat-icon>{{ buttonIcon$ | async }}</mat-icon>\n </button>\n <ng-content></ng-content>\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".dbx-mapbox-layout-container{height:100%;max-width:100%}.dbx-mapbox-layout-container .mat-drawer-container{height:100%}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer{max-width:calc(100% - var(--dbx-mapbox-min-width-var, 33px))}.dbx-mapbox-layout-container .dbx-mapbox-layout-drawer-content{height:100%;width:100%;overflow:hidden}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{position:absolute;z-index:2;top:40%;border:none;display:flex;overflow:hidden}.left-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{left:0;border-radius:0 20px 20px 0}.right-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{right:0;border-radius:20px 0 0 20px}.has-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.has-drawer-content.open-drawer .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:35px}.no-drawer-content .dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button{width:0px}.dbx-mapbox-layout-content>.dbx-mapbox-layout-drawer-button mat-icon{padding-left:8px}\n"] }]
|
|
1034
|
-
}], ctorParameters: function () { return [{ type: DbxMapboxMapStore }]; }, propDecorators: { openedChange: [{
|
|
1035
|
-
type: Output
|
|
1036
|
-
}], containerElement: [{
|
|
1037
|
-
type: ViewChild,
|
|
1038
|
-
args: [MatDrawerContainer, { read: ElementRef }]
|
|
1039
|
-
}], drawerContainer: [{
|
|
1040
|
-
type: ViewChild,
|
|
1041
|
-
args: [MatDrawerContainer]
|
|
1042
|
-
}], content: [{
|
|
1043
|
-
type: ViewChild,
|
|
1044
|
-
args: ['content', { read: ElementRef, static: true }]
|
|
1045
|
-
}], side: [{
|
|
1046
|
-
type: Input
|
|
1047
|
-
}], mode: [{
|
|
1048
|
-
type: Input
|
|
1049
|
-
}], opened: [{
|
|
1050
|
-
type: Input
|
|
1051
|
-
}], hasContent: [{
|
|
1052
|
-
type: Input
|
|
1053
|
-
}], drawerButtonColor: [{
|
|
1054
|
-
type: Input
|
|
1055
|
-
}] } });
|
|
1056
|
-
|
|
1057
|
-
/**
|
|
1058
|
-
* Directive that connects a host MatMenuTrigger to a DbxMapboxMapStore and listens for right-clicks on the map.
|
|
1059
|
-
*
|
|
1060
|
-
* The map dissapears if the mouse scrolls anywhere else on the map.
|
|
1061
|
-
*/
|
|
1062
|
-
class DbxMapboxMenuComponent extends AbstractSubscriptionDirective {
|
|
1063
|
-
constructor(dbxMapboxMapStore, matMenuTrigger, ngZone, cdRef) {
|
|
1064
|
-
super();
|
|
1065
|
-
this.dbxMapboxMapStore = dbxMapboxMapStore;
|
|
1066
|
-
this.matMenuTrigger = matMenuTrigger;
|
|
1067
|
-
this.ngZone = ngZone;
|
|
1068
|
-
this.cdRef = cdRef;
|
|
1069
|
-
this._pos = { x: `0`, y: `0` };
|
|
1070
|
-
this._active = new BehaviorSubject(true);
|
|
1071
|
-
this._menuCloseSub = new SubscriptionObject();
|
|
1072
|
-
this._preventRightClick = new DestroyFunctionObject();
|
|
1073
|
-
}
|
|
1074
|
-
get pos() {
|
|
1075
|
-
return this._pos;
|
|
1076
|
-
}
|
|
1077
|
-
set active(active) {
|
|
1078
|
-
this._active.next(active !== null && active !== void 0 ? active : true);
|
|
1079
|
-
}
|
|
1080
|
-
ngOnInit() {
|
|
1081
|
-
this.sub = this._active
|
|
1082
|
-
.pipe(switchMap((active) => {
|
|
1083
|
-
if (active) {
|
|
1084
|
-
return this.dbxMapboxMapStore.rightClickEvent$;
|
|
1085
|
-
}
|
|
1086
|
-
else {
|
|
1087
|
-
return of();
|
|
1088
|
-
}
|
|
1089
|
-
}), filter(Boolean))
|
|
1090
|
-
.subscribe((event) => {
|
|
1091
|
-
const menu = this.matMenuTrigger.menu;
|
|
1092
|
-
const buttonEvent = event.originalEvent;
|
|
1093
|
-
if (menu && buttonEvent) {
|
|
1094
|
-
buttonEvent.preventDefault();
|
|
1095
|
-
// update position of this component for menu to open at
|
|
1096
|
-
this._pos = {
|
|
1097
|
-
x: `${buttonEvent.x}px`,
|
|
1098
|
-
y: `${buttonEvent.y}px`
|
|
1099
|
-
};
|
|
1100
|
-
safeMarkForCheck(this.cdRef);
|
|
1101
|
-
// open menu
|
|
1102
|
-
this.ngZone.run(() => this.matMenuTrigger.openMenu());
|
|
1103
|
-
// prevent right clicks in the cdkOverlay while the menu is open
|
|
1104
|
-
this._preventRightClick.destroy = disableRightClickInCdkBackdrop(undefined, () => {
|
|
1105
|
-
this.ngZone.run(() => this.matMenuTrigger.closeMenu());
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
});
|
|
1109
|
-
this._menuCloseSub.subscription = this.matMenuTrigger.menuClosed.subscribe(() => {
|
|
1110
|
-
// destroy prevention when the menu is closed.
|
|
1111
|
-
this._preventRightClick.destroy();
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
ngOnDestroy() {
|
|
1115
|
-
super.ngOnDestroy();
|
|
1116
|
-
this._active.complete();
|
|
1117
|
-
this._preventRightClick.destroy();
|
|
1118
|
-
this._menuCloseSub.destroy();
|
|
1119
|
-
if (this.matMenuTrigger) {
|
|
1120
|
-
this.matMenuTrigger.closeMenu();
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
DbxMapboxMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMenuComponent, deps: [{ token: DbxMapboxMapStore }, { token: i2$2.MatMenuTrigger, host: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1125
|
-
DbxMapboxMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxMenuComponent, selector: "dbx-mapbox-menu", inputs: { active: "active" }, host: { properties: { "style.top": "pos.y", "style.left": "pos.x" }, styleAttribute: "visibility: hidden; position: fixed" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMenuComponent, decorators: [{
|
|
1127
|
-
type: Component,
|
|
1128
|
-
args: [{
|
|
1129
|
-
selector: 'dbx-mapbox-menu',
|
|
1130
|
-
template: '',
|
|
1131
|
-
host: {
|
|
1132
|
-
style: 'visibility: hidden; position: fixed',
|
|
1133
|
-
'[style.top]': 'pos.y',
|
|
1134
|
-
'[style.left]': 'pos.x'
|
|
1135
|
-
},
|
|
1136
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1137
|
-
}]
|
|
1138
|
-
}], ctorParameters: function () {
|
|
1139
|
-
return [{ type: DbxMapboxMapStore }, { type: i2$2.MatMenuTrigger, decorators: [{
|
|
1140
|
-
type: Host
|
|
1141
|
-
}] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }];
|
|
1142
|
-
}, propDecorators: { active: [{
|
|
1143
|
-
type: Input
|
|
1144
|
-
}] } });
|
|
1145
|
-
|
|
1146
|
-
/**
|
|
1147
|
-
* Token used by provideMapboxStoreIfDoesNotExist() to prevent injecting a parent DbxMapboxMapStore into the child view.
|
|
1148
|
-
*/
|
|
1149
|
-
class DbxMapboxMapStoreProviderBlock {
|
|
1150
|
-
constructor(dbxMapboxMapStore) {
|
|
1151
|
-
this.dbxMapboxMapStore = dbxMapboxMapStore;
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
DbxMapboxMapStoreProviderBlock.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapStoreProviderBlock, deps: [{ token: DbxMapboxMapStore, skipSelf: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1155
|
-
DbxMapboxMapStoreProviderBlock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapStoreProviderBlock });
|
|
1156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapStoreProviderBlock, decorators: [{
|
|
1157
|
-
type: Injectable
|
|
1158
|
-
}], ctorParameters: function () {
|
|
1159
|
-
return [{ type: DbxMapboxMapStore, decorators: [{
|
|
1160
|
-
type: SkipSelf
|
|
1161
|
-
}] }];
|
|
1162
|
-
} });
|
|
1163
|
-
class DbxMapboxMapStoreInjectionBlockDirective {
|
|
1164
|
-
}
|
|
1165
|
-
DbxMapboxMapStoreInjectionBlockDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapStoreInjectionBlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1166
|
-
DbxMapboxMapStoreInjectionBlockDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxMapStoreInjectionBlockDirective, selector: "[dbxMapboxStoreParentBlocker]", providers: [DbxMapboxMapStoreProviderBlock], ngImport: i0 });
|
|
1167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMapStoreInjectionBlockDirective, decorators: [{
|
|
1168
|
-
type: Directive,
|
|
1169
|
-
args: [{
|
|
1170
|
-
selector: '[dbxMapboxStoreParentBlocker]',
|
|
1171
|
-
providers: [DbxMapboxMapStoreProviderBlock]
|
|
1172
|
-
}]
|
|
1173
|
-
}] });
|
|
1174
|
-
/**
|
|
1175
|
-
* Creates a Provider that initializes a new DbxMapboxMapStore if a parent does not exist.
|
|
1176
|
-
*
|
|
1177
|
-
* If a DbxMapboxMapStoreInjectionBlock is available in the context, and references the same dbxMapboxMapStore that is attempting to be injected, a new DbxMapboxMapStore is created.
|
|
1178
|
-
*
|
|
1179
|
-
* @returns
|
|
1180
|
-
*/
|
|
1181
|
-
function provideMapboxStoreIfParentIsUnavailable() {
|
|
1182
|
-
return {
|
|
1183
|
-
provide: DbxMapboxMapStore,
|
|
1184
|
-
useFactory: (parentInjector, dbxMapboxMapStoreInjectionBlock, dbxMapboxMapStore) => {
|
|
1185
|
-
if (!dbxMapboxMapStore || (dbxMapboxMapStore && dbxMapboxMapStoreInjectionBlock != null && dbxMapboxMapStoreInjectionBlock.dbxMapboxMapStore === dbxMapboxMapStore)) {
|
|
1186
|
-
// create a new dbxMapboxMapStore to use
|
|
1187
|
-
const injector = Injector.create({ providers: [{ provide: DbxMapboxMapStore }], parent: parentInjector });
|
|
1188
|
-
dbxMapboxMapStore = injector.get(DbxMapboxMapStore);
|
|
1189
|
-
}
|
|
1190
|
-
return dbxMapboxMapStore;
|
|
1191
|
-
},
|
|
1192
|
-
deps: [Injector, [new Optional(), DbxMapboxMapStoreProviderBlock], [new Optional(), new SkipSelf(), DbxMapboxMapStore]]
|
|
1193
|
-
};
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
class DbxMapboxMarkerComponent {
|
|
1197
|
-
constructor(_dbxMapboxChangeService) {
|
|
1198
|
-
this._dbxMapboxChangeService = _dbxMapboxChangeService;
|
|
1199
|
-
}
|
|
1200
|
-
get marker() {
|
|
1201
|
-
return this._marker;
|
|
1202
|
-
}
|
|
1203
|
-
set marker(marker) {
|
|
1204
|
-
this._marker = marker;
|
|
1205
|
-
}
|
|
1206
|
-
get latLng() {
|
|
1207
|
-
var _a;
|
|
1208
|
-
const input = (_a = this._marker) === null || _a === void 0 ? void 0 : _a.latLng;
|
|
1209
|
-
return input ? DbxMapboxMarkerComponent._latLngPoint(input) : undefined;
|
|
1210
|
-
}
|
|
1211
|
-
get anchor() {
|
|
1212
|
-
var _a;
|
|
1213
|
-
return (_a = this._marker) === null || _a === void 0 ? void 0 : _a.anchor;
|
|
1214
|
-
}
|
|
1215
|
-
get label() {
|
|
1216
|
-
var _a;
|
|
1217
|
-
return (_a = this._marker) === null || _a === void 0 ? void 0 : _a.label;
|
|
1218
|
-
}
|
|
1219
|
-
get icon() {
|
|
1220
|
-
var _a;
|
|
1221
|
-
return (_a = this._marker) === null || _a === void 0 ? void 0 : _a.icon;
|
|
1222
|
-
}
|
|
1223
|
-
get style() {
|
|
1224
|
-
var _a, _b, _c;
|
|
1225
|
-
let width = 0;
|
|
1226
|
-
let height = 0;
|
|
1227
|
-
const size = ((_a = this._marker) === null || _a === void 0 ? void 0 : _a.size) || 'medium';
|
|
1228
|
-
switch (this.presentation) {
|
|
1229
|
-
case 'normal':
|
|
1230
|
-
if (typeof size === 'number') {
|
|
1231
|
-
width = size;
|
|
1232
|
-
}
|
|
1233
|
-
else {
|
|
1234
|
-
switch (size) {
|
|
1235
|
-
case 'small':
|
|
1236
|
-
width = 18;
|
|
1237
|
-
break;
|
|
1238
|
-
case 'medium':
|
|
1239
|
-
width = 24;
|
|
1240
|
-
break;
|
|
1241
|
-
case 'large':
|
|
1242
|
-
width = 32;
|
|
1243
|
-
break;
|
|
1244
|
-
case 'tall':
|
|
1245
|
-
width = 24;
|
|
1246
|
-
height = 32;
|
|
1247
|
-
break;
|
|
1248
|
-
}
|
|
1249
|
-
break;
|
|
1250
|
-
}
|
|
1251
|
-
break;
|
|
1252
|
-
}
|
|
1253
|
-
if (!height) {
|
|
1254
|
-
height = width;
|
|
1255
|
-
}
|
|
1256
|
-
const imageInput = (_b = this._marker) === null || _b === void 0 ? void 0 : _b.image;
|
|
1257
|
-
const image = imageInput ? (typeof imageInput === 'string' ? imageInput : getValueFromGetter(imageInput, width)) : undefined;
|
|
1258
|
-
const style = Object.assign(Object.assign({}, (_c = this._marker) === null || _c === void 0 ? void 0 : _c.style), { 'background-image': image });
|
|
1259
|
-
if (width && height) {
|
|
1260
|
-
style.width = width + 'px';
|
|
1261
|
-
style.height = height + 'px';
|
|
1262
|
-
style['font-size'] = width + 'px';
|
|
1263
|
-
}
|
|
1264
|
-
return style;
|
|
1265
|
-
}
|
|
1266
|
-
get presentation() {
|
|
1267
|
-
var _a, _b;
|
|
1268
|
-
return (_b = (_a = this._marker) === null || _a === void 0 ? void 0 : _a.presentation) !== null && _b !== void 0 ? _b : 'normal';
|
|
1269
|
-
}
|
|
1270
|
-
get presentationClasses() {
|
|
1271
|
-
var _a;
|
|
1272
|
-
const presentation = this.presentation;
|
|
1273
|
-
const markerClasses = (_a = this._marker) === null || _a === void 0 ? void 0 : _a.markerClasses;
|
|
1274
|
-
let cssClasses = '';
|
|
1275
|
-
switch (presentation) {
|
|
1276
|
-
case 'chip':
|
|
1277
|
-
case 'chip-small':
|
|
1278
|
-
cssClasses = 'dbx-mapbox-marker-chip dbx-chip mat-standard-chip dbx-bg';
|
|
1279
|
-
if (presentation === 'chip-small') {
|
|
1280
|
-
cssClasses += ' dbx-chip-small';
|
|
1281
|
-
}
|
|
1282
|
-
break;
|
|
1283
|
-
}
|
|
1284
|
-
if (!this.icon) {
|
|
1285
|
-
cssClasses += ' dbx-mapbox-marker-no-icon';
|
|
1286
|
-
}
|
|
1287
|
-
if (markerClasses) {
|
|
1288
|
-
cssClasses += ` ${markerClasses}`;
|
|
1289
|
-
}
|
|
1290
|
-
return cssClasses;
|
|
1291
|
-
}
|
|
1292
|
-
ngOnDestroy() {
|
|
1293
|
-
var _a;
|
|
1294
|
-
(_a = this._dbxMapboxChangeService) === null || _a === void 0 ? void 0 : _a.emitMarkerDestroyed();
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
DbxMapboxMarkerComponent._latLngPoint = latLngPointFunction({ wrap: true });
|
|
1298
|
-
DbxMapboxMarkerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMarkerComponent, deps: [{ token: DbxMapboxChangeService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1299
|
-
DbxMapboxMarkerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxMarkerComponent, selector: "dbx-mapbox-marker", inputs: { marker: "marker" }, ngImport: i0, template: `
|
|
1300
|
-
<mgl-marker *ngIf="marker" [lngLat]="latLng">
|
|
1301
|
-
<dbx-anchor [anchor]="anchor">
|
|
1302
|
-
<div class="dbx-mapbox-marker" [ngClass]="presentationClasses">
|
|
1303
|
-
<div class="dbx-mapbox-marker-icon-content" [ngStyle]="style">
|
|
1304
|
-
<mat-icon *ngIf="icon">{{ icon }}</mat-icon>
|
|
1305
|
-
</div>
|
|
1306
|
-
<div class="dbx-mapbox-marker-label dbx-outlined-text" *ngIf="label">{{ label }}</div>
|
|
1307
|
-
</div>
|
|
1308
|
-
</dbx-anchor>
|
|
1309
|
-
</mgl-marker>
|
|
1310
|
-
`, isInline: true, styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip{flex-direction:row;font-size:1em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-icon-content{width:18px;height:18px;font-size:18px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-label{padding-left:3px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-icon-content{padding:0!important;width:16px;height:16px;font-size:16px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content{display:none}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content .dbx-mapbox-marker-label{padding-left:0}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-label{padding-left:4px}\n"], dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "component", type: i1.MarkerComponent, selector: "mgl-marker", inputs: ["offset", "anchor", "clickTolerance", "feature", "lngLat", "draggable", "popupShown", "className", "pitchAlignment", "rotationAlignment"], outputs: ["markerDragStart", "markerDragEnd", "markerDrag", "dragStart", "dragEnd", "drag"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMarkerComponent, decorators: [{
|
|
1312
|
-
type: Component,
|
|
1313
|
-
args: [{ selector: 'dbx-mapbox-marker', template: `
|
|
1314
|
-
<mgl-marker *ngIf="marker" [lngLat]="latLng">
|
|
1315
|
-
<dbx-anchor [anchor]="anchor">
|
|
1316
|
-
<div class="dbx-mapbox-marker" [ngClass]="presentationClasses">
|
|
1317
|
-
<div class="dbx-mapbox-marker-icon-content" [ngStyle]="style">
|
|
1318
|
-
<mat-icon *ngIf="icon">{{ icon }}</mat-icon>
|
|
1319
|
-
</div>
|
|
1320
|
-
<div class="dbx-mapbox-marker-label dbx-outlined-text" *ngIf="label">{{ label }}</div>
|
|
1321
|
-
</div>
|
|
1322
|
-
</dbx-anchor>
|
|
1323
|
-
</mgl-marker>
|
|
1324
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".dbx-mapbox-marker{display:flex;align-items:center;flex-direction:column}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content{display:flex;align-items:center;justify-content:center}.dbx-mapbox-marker .dbx-mapbox-marker-icon-content mat-icon{width:100%;height:100%;font-size:inherit}.dbx-mapbox-marker .dbx-mapbox-marker-label{font-size:.9em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip{flex-direction:row;font-size:1em}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-icon-content{width:18px;height:18px;font-size:18px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-label{padding-left:3px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-chip-small .dbx-mapbox-marker-icon-content{padding:0!important;width:16px;height:16px;font-size:16px}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content{display:none}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip.dbx-mapbox-marker-no-icon>.dbx-mapbox-marker-icon-content .dbx-mapbox-marker-label{padding-left:0}.dbx-mapbox-marker.dbx-mapbox-marker-chip.dbx-chip .dbx-mapbox-marker-label{padding-left:4px}\n"] }]
|
|
1325
|
-
}], ctorParameters: function () {
|
|
1326
|
-
return [{ type: DbxMapboxChangeService, decorators: [{
|
|
1327
|
-
type: Optional
|
|
1328
|
-
}] }];
|
|
1329
|
-
}, propDecorators: { marker: [{
|
|
1330
|
-
type: Input
|
|
1331
|
-
}] } });
|
|
1332
|
-
|
|
1333
|
-
/**
|
|
1334
|
-
* Component used to render a set of DbxMapboxMarker values from the input data and marker factory.
|
|
1335
|
-
*/
|
|
1336
|
-
class DbxMapboxMarkersComponent {
|
|
1337
|
-
constructor() {
|
|
1338
|
-
this._data = new BehaviorSubject(undefined);
|
|
1339
|
-
this._markerFactory = new BehaviorSubject(undefined);
|
|
1340
|
-
this.markers$ = combineLatest([this._data.pipe(distinctUntilChanged()), this._markerFactory.pipe(distinctUntilChanged())]).pipe(map(([data, markerFactory]) => {
|
|
1341
|
-
if ((data === null || data === void 0 ? void 0 : data.length) && markerFactory) {
|
|
1342
|
-
return data.map(markerFactory);
|
|
1343
|
-
}
|
|
1344
|
-
else {
|
|
1345
|
-
return [];
|
|
1346
|
-
}
|
|
1347
|
-
}), shareReplay(1));
|
|
1348
|
-
}
|
|
1349
|
-
trackMarkerById(index, marker) {
|
|
1350
|
-
return marker.id;
|
|
1351
|
-
}
|
|
1352
|
-
get data() {
|
|
1353
|
-
return this._data.value;
|
|
1354
|
-
}
|
|
1355
|
-
set data(data) {
|
|
1356
|
-
this._data.next(data || []);
|
|
1357
|
-
}
|
|
1358
|
-
get markerFactory() {
|
|
1359
|
-
return this._markerFactory.value;
|
|
1360
|
-
}
|
|
1361
|
-
set markerFactory(markerFactory) {
|
|
1362
|
-
this._markerFactory.next(markerFactory);
|
|
1363
|
-
}
|
|
1364
|
-
ngOnDestroy() {
|
|
1365
|
-
this._data.complete();
|
|
1366
|
-
this._markerFactory.complete();
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
DbxMapboxMarkersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMarkersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1370
|
-
DbxMapboxMarkersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxMarkersComponent, selector: "dbx-mapbox-markers", inputs: { data: "data", markerFactory: "markerFactory" }, ngImport: i0, template: `
|
|
1371
|
-
<dbx-mapbox-marker *ngFor="let marker of markers$ | async; trackBy: trackMarkerById" [marker]="marker"></dbx-mapbox-marker>
|
|
1372
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: DbxMapboxMarkerComponent, selector: "dbx-mapbox-marker", inputs: ["marker"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxMarkersComponent, decorators: [{
|
|
1374
|
-
type: Component,
|
|
1375
|
-
args: [{
|
|
1376
|
-
selector: 'dbx-mapbox-markers',
|
|
1377
|
-
template: `
|
|
1378
|
-
<dbx-mapbox-marker *ngFor="let marker of markers$ | async; trackBy: trackMarkerById" [marker]="marker"></dbx-mapbox-marker>
|
|
1379
|
-
`,
|
|
1380
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1381
|
-
}]
|
|
1382
|
-
}], propDecorators: { data: [{
|
|
1383
|
-
type: Input
|
|
1384
|
-
}], markerFactory: [{
|
|
1385
|
-
type: Input
|
|
1386
|
-
}] } });
|
|
1387
|
-
|
|
1388
|
-
/**
|
|
1389
|
-
* Directive that synchronizes a map's virtual size with the size of the element.
|
|
1390
|
-
*/
|
|
1391
|
-
class DbxMapboxLayoutVirtualResizeSyncComponent extends SubscriptionObject {
|
|
1392
|
-
constructor(dbxMapboxLayoutComponent) {
|
|
1393
|
-
super();
|
|
1394
|
-
this.dbxMapboxLayoutComponent = dbxMapboxLayoutComponent;
|
|
1395
|
-
this.resizedVector$ = this.dbxMapboxLayoutComponent.resized$.pipe(map(() => {
|
|
1396
|
-
const element = this.dbxMapboxLayoutComponent.containerElement.nativeElement;
|
|
1397
|
-
const { clientWidth, clientHeight } = element;
|
|
1398
|
-
return {
|
|
1399
|
-
x: clientWidth,
|
|
1400
|
-
y: clientHeight
|
|
1401
|
-
};
|
|
1402
|
-
}), distinctUntilChanged(isSameVector), shareReplay(1));
|
|
1403
|
-
}
|
|
1404
|
-
ngOnInit() {
|
|
1405
|
-
this.dbxMapboxLayoutComponent.dbxMapboxMapStore.setMinimumVirtualViewportSize(this.resizedVector$);
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
DbxMapboxLayoutVirtualResizeSyncComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxLayoutVirtualResizeSyncComponent, deps: [{ token: DbxMapboxLayoutComponent, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1409
|
-
DbxMapboxLayoutVirtualResizeSyncComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DbxMapboxLayoutVirtualResizeSyncComponent, selector: "[dbxMapboxLayoutVirtualResizeSync]", usesInheritance: true, ngImport: i0 });
|
|
1410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxLayoutVirtualResizeSyncComponent, decorators: [{
|
|
1411
|
-
type: Directive,
|
|
1412
|
-
args: [{
|
|
1413
|
-
selector: '[dbxMapboxLayoutVirtualResizeSync]'
|
|
1414
|
-
}]
|
|
1415
|
-
}], ctorParameters: function () {
|
|
1416
|
-
return [{ type: DbxMapboxLayoutComponent, decorators: [{
|
|
1417
|
-
type: Host
|
|
1418
|
-
}] }];
|
|
1419
|
-
} });
|
|
1420
|
-
|
|
1421
|
-
const declarations = [
|
|
1422
|
-
//
|
|
1423
|
-
DbxMapboxLayoutVirtualResizeSyncComponent,
|
|
1424
|
-
DbxMapboxMapDirective,
|
|
1425
|
-
DbxMapboxLayoutComponent,
|
|
1426
|
-
DbxMapboxLayoutDrawerComponent,
|
|
1427
|
-
DbxMapboxInjectionComponent,
|
|
1428
|
-
DbxMapboxMenuComponent,
|
|
1429
|
-
DbxMapboxMarkerComponent,
|
|
1430
|
-
DbxMapboxMarkersComponent,
|
|
1431
|
-
DbxMapboxMapStoreInjectionBlockDirective
|
|
1432
|
-
];
|
|
1433
|
-
class DbxMapboxModule {
|
|
1434
|
-
static forRoot(config) {
|
|
1435
|
-
return {
|
|
1436
|
-
ngModule: DbxMapboxModule,
|
|
1437
|
-
providers: [
|
|
1438
|
-
{
|
|
1439
|
-
provide: DbxMapboxConfig,
|
|
1440
|
-
useValue: config
|
|
1441
|
-
}
|
|
1442
|
-
]
|
|
1443
|
-
};
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
DbxMapboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1447
|
-
DbxMapboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxModule, declarations: [
|
|
1448
|
-
//
|
|
1449
|
-
DbxMapboxLayoutVirtualResizeSyncComponent,
|
|
1450
|
-
DbxMapboxMapDirective,
|
|
1451
|
-
DbxMapboxLayoutComponent,
|
|
1452
|
-
DbxMapboxLayoutDrawerComponent,
|
|
1453
|
-
DbxMapboxInjectionComponent,
|
|
1454
|
-
DbxMapboxMenuComponent,
|
|
1455
|
-
DbxMapboxMarkerComponent,
|
|
1456
|
-
DbxMapboxMarkersComponent,
|
|
1457
|
-
DbxMapboxMapStoreInjectionBlockDirective
|
|
1458
|
-
], imports: [
|
|
1459
|
-
//
|
|
1460
|
-
CommonModule,
|
|
1461
|
-
MatSidenavModule,
|
|
1462
|
-
DbxStyleLayoutModule,
|
|
1463
|
-
DbxInjectionComponentModule,
|
|
1464
|
-
MatButtonModule,
|
|
1465
|
-
MatIconModule,
|
|
1466
|
-
AngularResizeEventModule,
|
|
1467
|
-
DbxRouterAnchorModule,
|
|
1468
|
-
NgxMapboxGLModule
|
|
1469
|
-
], exports: [
|
|
1470
|
-
//
|
|
1471
|
-
DbxMapboxLayoutVirtualResizeSyncComponent,
|
|
1472
|
-
DbxMapboxMapDirective,
|
|
1473
|
-
DbxMapboxLayoutComponent,
|
|
1474
|
-
DbxMapboxLayoutDrawerComponent,
|
|
1475
|
-
DbxMapboxInjectionComponent,
|
|
1476
|
-
DbxMapboxMenuComponent,
|
|
1477
|
-
DbxMapboxMarkerComponent,
|
|
1478
|
-
DbxMapboxMarkersComponent,
|
|
1479
|
-
DbxMapboxMapStoreInjectionBlockDirective
|
|
1480
|
-
] });
|
|
1481
|
-
DbxMapboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxModule, imports: [
|
|
1482
|
-
//
|
|
1483
|
-
CommonModule,
|
|
1484
|
-
MatSidenavModule,
|
|
1485
|
-
DbxStyleLayoutModule,
|
|
1486
|
-
DbxInjectionComponentModule,
|
|
1487
|
-
MatButtonModule,
|
|
1488
|
-
MatIconModule,
|
|
1489
|
-
AngularResizeEventModule,
|
|
1490
|
-
DbxRouterAnchorModule,
|
|
1491
|
-
NgxMapboxGLModule
|
|
1492
|
-
] });
|
|
1493
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxMapboxModule, decorators: [{
|
|
1494
|
-
type: NgModule,
|
|
1495
|
-
args: [{
|
|
1496
|
-
imports: [
|
|
1497
|
-
//
|
|
1498
|
-
CommonModule,
|
|
1499
|
-
MatSidenavModule,
|
|
1500
|
-
DbxStyleLayoutModule,
|
|
1501
|
-
DbxInjectionComponentModule,
|
|
1502
|
-
MatButtonModule,
|
|
1503
|
-
MatIconModule,
|
|
1504
|
-
AngularResizeEventModule,
|
|
1505
|
-
DbxRouterAnchorModule,
|
|
1506
|
-
NgxMapboxGLModule
|
|
1507
|
-
],
|
|
1508
|
-
declarations,
|
|
1509
|
-
exports: declarations
|
|
1510
|
-
}]
|
|
1511
|
-
}] });
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* Creates the styling for rendering a dot.
|
|
1515
|
-
*
|
|
1516
|
-
* @param background
|
|
1517
|
-
* @param color
|
|
1518
|
-
* @returns
|
|
1519
|
-
*/
|
|
1520
|
-
function dbxMapboxColoredDotStyle(background, color) {
|
|
1521
|
-
return {
|
|
1522
|
-
background,
|
|
1523
|
-
padding: '2px',
|
|
1524
|
-
color: (color !== null && color !== void 0 ? color : background) ? 'white' : undefined,
|
|
1525
|
-
'border-radius': '50%'
|
|
1526
|
-
};
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
const KNOWN_MAPBOX_STYLES = [
|
|
1530
|
-
//
|
|
1531
|
-
'mapbox://styles/mapbox/streets-v11',
|
|
1532
|
-
'mapbox://styles/mapbox/outdoors-v11',
|
|
1533
|
-
'mapbox://styles/mapbox/light-v10',
|
|
1534
|
-
'mapbox://styles/mapbox/dark-v10',
|
|
1535
|
-
'mapbox://styles/mapbox/satellite-v9',
|
|
1536
|
-
'mapbox://styles/mapbox/satellite-streets-v11',
|
|
1537
|
-
'mapbox://styles/mapbox/navigation-day-v1',
|
|
1538
|
-
'mapbox://styles/mapbox/navigation-night-v1'
|
|
1539
|
-
];
|
|
1540
|
-
const MAPBOX_MIN_ZOOM_LEVEL = 0;
|
|
1541
|
-
const MAPBOX_MAX_ZOOM_LEVEL = 22;
|
|
1542
|
-
function mapboxZoomLevel(input) {
|
|
1543
|
-
return Math.min(Math.max(input, MAPBOX_MIN_ZOOM_LEVEL), MAPBOX_MAX_ZOOM_LEVEL);
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
/**
|
|
1547
|
-
* Generated bundle index. Do not edit.
|
|
1548
|
-
*/
|
|
1549
|
-
|
|
1550
|
-
export { DEFAULT_MAPBOX_CENTER, DEFAULT_MAPBOX_MAP_STORE_TIMER_REFRESH_PERIOD, DEFAULT_MAPBOX_STYLE, DEFAULT_MAPBOX_ZOOM, DbxMapboxChangeDetectorRefService, DbxMapboxChangeService, DbxMapboxConfig, DbxMapboxInjectionComponent, DbxMapboxInjectionStore, DbxMapboxInjectionStoreInjectionBlockDirective, DbxMapboxInjectionStoreProviderBlock, DbxMapboxLayoutComponent, DbxMapboxLayoutDrawerComponent, DbxMapboxLayoutVirtualResizeSyncComponent, DbxMapboxMapDirective, DbxMapboxMapStore, DbxMapboxMapStoreInjectionBlockDirective, DbxMapboxMapStoreProviderBlock, DbxMapboxMarkerComponent, DbxMapboxMarkersComponent, DbxMapboxMenuComponent, DbxMapboxModule, DbxMapboxService, KNOWN_MAPBOX_STYLES, MAPBOX_MAX_ZOOM_LEVEL, MAPBOX_MIN_ZOOM_LEVEL, dbxMapboxColoredDotStyle, filterByMapboxViewportBound, mapboxViewportBoundFunction, mapboxZoomLevel, provideMapboxInjectionStoreIfParentIsUnavailable, provideMapboxStoreIfParentIsUnavailable, updateDbxMapboxMapInjectionStoreStateWithInjectionConfig, updateDbxMapboxMapInjectionStoreStateWithRemovedKey };
|
|
1551
|
-
//# sourceMappingURL=dereekb-dbx-web-mapbox.mjs.map
|