@dereekb/dbx-web 10.2.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/calendar/esm2022/lib/calendar.base.component.mjs +27 -30
  2. package/calendar/esm2022/lib/calendar.component.mjs +21 -24
  3. package/calendar/esm2022/lib/calendar.module.mjs +9 -9
  4. package/calendar/esm2022/lib/calendar.store.mjs +89 -89
  5. package/calendar/fesm2022/dereekb-dbx-web-calendar.mjs +137 -141
  6. package/calendar/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
  7. package/calendar/lib/calendar.base.component.d.ts +0 -1
  8. package/calendar/lib/calendar.component.d.ts +1 -2
  9. package/calendar/package.json +1 -1
  10. package/esm2022/calendar/lib/calendar.base.component.mjs +27 -30
  11. package/esm2022/calendar/lib/calendar.component.mjs +21 -24
  12. package/esm2022/calendar/lib/calendar.module.mjs +9 -9
  13. package/esm2022/calendar/lib/calendar.store.mjs +89 -89
  14. package/esm2022/lib/action/action.confirm.directive.mjs +8 -15
  15. package/esm2022/lib/action/action.module.mjs +4 -4
  16. package/esm2022/lib/action/key.trigger.directive.mjs +7 -11
  17. package/esm2022/lib/action/snackbar/action.snackbar.component.mjs +40 -48
  18. package/esm2022/lib/action/snackbar/action.snackbar.directive.mjs +10 -14
  19. package/esm2022/lib/action/snackbar/action.snackbar.module.mjs +4 -4
  20. package/esm2022/lib/action/snackbar/action.snackbar.service.mjs +14 -21
  21. package/esm2022/lib/action/transition/action.transition.module.mjs +4 -4
  22. package/esm2022/lib/action/transition/transition.safety.dialog.component.mjs +11 -14
  23. package/esm2022/lib/action/transition/transition.safety.directive.mjs +15 -20
  24. package/esm2022/lib/button/button.component.mjs +10 -9
  25. package/esm2022/lib/button/button.module.mjs +4 -4
  26. package/esm2022/lib/button/button.spacer.component.mjs +3 -3
  27. package/esm2022/lib/button/icon/icon.button.component.mjs +4 -4
  28. package/esm2022/lib/button/icon/icon.button.module.mjs +6 -6
  29. package/esm2022/lib/button/progress/bar.button.component.mjs +4 -7
  30. package/esm2022/lib/button/progress/base.progress.button.directive.mjs +45 -53
  31. package/esm2022/lib/button/progress/button.progress.module.mjs +4 -4
  32. package/esm2022/lib/button/progress/spinner.button.component.mjs +15 -17
  33. package/esm2022/lib/dbx-web.module.mjs +4 -4
  34. package/esm2022/lib/error/default.error.widget.component.mjs +4 -4
  35. package/esm2022/lib/error/error.action.directive.mjs +7 -14
  36. package/esm2022/lib/error/error.component.mjs +57 -62
  37. package/esm2022/lib/error/error.details.component.mjs +5 -4
  38. package/esm2022/lib/error/error.loading.directive.mjs +6 -12
  39. package/esm2022/lib/error/error.module.mjs +5 -5
  40. package/esm2022/lib/error/error.popover.component.mjs +4 -4
  41. package/esm2022/lib/error/error.snackbar.action.directive.mjs +8 -12
  42. package/esm2022/lib/error/error.snackbar.component.mjs +16 -22
  43. package/esm2022/lib/error/error.snackbar.service.mjs +12 -15
  44. package/esm2022/lib/error/error.view.component.mjs +12 -7
  45. package/esm2022/lib/error/error.widget.component.mjs +33 -36
  46. package/esm2022/lib/error/error.widget.directive.mjs +6 -11
  47. package/esm2022/lib/error/error.widget.service.mjs +4 -4
  48. package/esm2022/lib/extension/download/text/download.text.component.mjs +79 -82
  49. package/esm2022/lib/extension/download/text/download.text.module.mjs +6 -6
  50. package/esm2022/lib/extension/model/model.module.mjs +11 -11
  51. package/esm2022/lib/extension/model/model.state.service.mjs +6 -9
  52. package/esm2022/lib/extension/model/model.tracker.service.mjs +11 -13
  53. package/esm2022/lib/extension/model/model.tracker.view.storage.mjs +13 -13
  54. package/esm2022/lib/extension/model/model.types.service.mjs +34 -36
  55. package/esm2022/lib/extension/model/state/effects/tracker.effects.mjs +13 -17
  56. package/esm2022/lib/extension/structure/structure.body.directive.mjs +4 -4
  57. package/esm2022/lib/extension/structure/structure.module.mjs +6 -6
  58. package/esm2022/lib/extension/structure/structure.structure.directive.mjs +8 -10
  59. package/esm2022/lib/extension/widget/widget.component.mjs +22 -25
  60. package/esm2022/lib/extension/widget/widget.directive.mjs +6 -11
  61. package/esm2022/lib/extension/widget/widget.list.component.mjs +17 -20
  62. package/esm2022/lib/extension/widget/widget.module.mjs +6 -6
  63. package/esm2022/lib/extension/widget/widget.service.mjs +4 -6
  64. package/esm2022/lib/interaction/dialog/abstract.dialog.directive.mjs +8 -21
  65. package/esm2022/lib/interaction/dialog/dialog.action.directive.mjs +11 -10
  66. package/esm2022/lib/interaction/dialog/dialog.content.close.component.mjs +6 -8
  67. package/esm2022/lib/interaction/dialog/dialog.content.component.mjs +4 -6
  68. package/esm2022/lib/interaction/dialog/dialog.content.footer.component.mjs +7 -9
  69. package/esm2022/lib/interaction/dialog/dialog.module.mjs +4 -4
  70. package/esm2022/lib/interaction/filter/filter.module.mjs +6 -6
  71. package/esm2022/lib/interaction/filter/filter.partial.list.component.mjs +4 -4
  72. package/esm2022/lib/interaction/filter/filter.partial.menu.component.mjs +6 -9
  73. package/esm2022/lib/interaction/filter/filter.partial.mjs +24 -27
  74. package/esm2022/lib/interaction/filter/filter.popover.button.component.mjs +7 -8
  75. package/esm2022/lib/interaction/filter/filter.popover.button.directive.mjs +7 -10
  76. package/esm2022/lib/interaction/filter/filter.popover.component.mjs +52 -57
  77. package/esm2022/lib/interaction/filter/filter.preset.directive.mjs +90 -0
  78. package/esm2022/lib/interaction/filter/filter.preset.list.component.mjs +6 -6
  79. package/esm2022/lib/interaction/filter/filter.preset.menu.component.mjs +8 -11
  80. package/esm2022/lib/interaction/filter/filter.wrapper.component.mjs +15 -15
  81. package/esm2022/lib/interaction/interaction.module.mjs +4 -4
  82. package/esm2022/lib/interaction/popover/abstract.popover.directive.mjs +6 -9
  83. package/esm2022/lib/interaction/popover/abstract.popover.ref.directive.mjs +8 -10
  84. package/esm2022/lib/interaction/popover/popover.action.directive.mjs +11 -10
  85. package/esm2022/lib/interaction/popover/popover.close.component.mjs +9 -12
  86. package/esm2022/lib/interaction/popover/popover.component.mjs +27 -27
  87. package/esm2022/lib/interaction/popover/popover.content.component.mjs +8 -10
  88. package/esm2022/lib/interaction/popover/popover.content.module.mjs +4 -4
  89. package/esm2022/lib/interaction/popover/popover.controls.directive.mjs +9 -11
  90. package/esm2022/lib/interaction/popover/popover.coordinator.component.mjs +14 -17
  91. package/esm2022/lib/interaction/popover/popover.coordinator.service.mjs +5 -7
  92. package/esm2022/lib/interaction/popover/popover.header.component.mjs +15 -15
  93. package/esm2022/lib/interaction/popover/popover.module.mjs +4 -4
  94. package/esm2022/lib/interaction/popover/popover.scroll.content.component.mjs +7 -10
  95. package/esm2022/lib/interaction/popover/popover.service.mjs +8 -11
  96. package/esm2022/lib/interaction/popup/abstract.popup.directive.mjs +6 -9
  97. package/esm2022/lib/interaction/popup/popup.component.mjs +25 -24
  98. package/esm2022/lib/interaction/popup/popup.content.component.mjs +9 -12
  99. package/esm2022/lib/interaction/popup/popup.controls.buttons.component.mjs +17 -20
  100. package/esm2022/lib/interaction/popup/popup.controls.component.mjs +5 -4
  101. package/esm2022/lib/interaction/popup/popup.coordinator.component.mjs +13 -17
  102. package/esm2022/lib/interaction/popup/popup.coordinator.service.mjs +5 -7
  103. package/esm2022/lib/interaction/popup/popup.module.mjs +4 -4
  104. package/esm2022/lib/interaction/popup/popup.position.strategy.mjs +3 -2
  105. package/esm2022/lib/interaction/popup/popup.service.mjs +8 -11
  106. package/esm2022/lib/interaction/prompt/prompt.box.component.mjs +5 -7
  107. package/esm2022/lib/interaction/prompt/prompt.button.confirm.directive.mjs +12 -20
  108. package/esm2022/lib/interaction/prompt/prompt.component.mjs +6 -4
  109. package/esm2022/lib/interaction/prompt/prompt.confirm.component.mjs +6 -8
  110. package/esm2022/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +4 -4
  111. package/esm2022/lib/interaction/prompt/prompt.confirm.directive.mjs +12 -15
  112. package/esm2022/lib/interaction/prompt/prompt.module.mjs +4 -4
  113. package/esm2022/lib/interaction/prompt/prompt.page.component.mjs +4 -4
  114. package/esm2022/lib/keypress/keydown.listener.directive.mjs +6 -7
  115. package/esm2022/lib/keypress/keypress.module.mjs +4 -4
  116. package/esm2022/lib/layout/bar/bar.directive.mjs +4 -3
  117. package/esm2022/lib/layout/bar/bar.header.component.mjs +7 -4
  118. package/esm2022/lib/layout/bar/bar.layout.module.mjs +4 -4
  119. package/esm2022/lib/layout/bar/pagebar.component.mjs +4 -3
  120. package/esm2022/lib/layout/block/block.layout.module.mjs +4 -4
  121. package/esm2022/lib/layout/block/two.block.component.mjs +9 -10
  122. package/esm2022/lib/layout/card/card.box.component.mjs +6 -4
  123. package/esm2022/lib/layout/card/card.box.container.component.mjs +4 -4
  124. package/esm2022/lib/layout/card/card.box.layout.module.mjs +4 -4
  125. package/esm2022/lib/layout/column/column.layout.module.mjs +4 -4
  126. package/esm2022/lib/layout/column/one/one.column.component.mjs +10 -14
  127. package/esm2022/lib/layout/column/one/one.column.module.mjs +4 -4
  128. package/esm2022/lib/layout/column/two/two.column.back.directive.mjs +7 -11
  129. package/esm2022/lib/layout/column/two/two.column.component.mjs +17 -21
  130. package/esm2022/lib/layout/column/two/two.column.context.directive.mjs +7 -10
  131. package/esm2022/lib/layout/column/two/two.column.full.left.directive.mjs +7 -10
  132. package/esm2022/lib/layout/column/two/two.column.head.component.mjs +6 -4
  133. package/esm2022/lib/layout/column/two/two.column.module.mjs +4 -4
  134. package/esm2022/lib/layout/column/two/two.column.right.component.mjs +15 -19
  135. package/esm2022/lib/layout/column/two/two.column.sref.directive.mjs +6 -9
  136. package/esm2022/lib/layout/column/two/two.column.sref.showright.directive.mjs +10 -15
  137. package/esm2022/lib/layout/column/two/two.column.store.mjs +81 -81
  138. package/esm2022/lib/layout/compact/compact.directive.mjs +7 -10
  139. package/esm2022/lib/layout/compact/compact.layout.module.mjs +4 -4
  140. package/esm2022/lib/layout/compact/compact.store.mjs +6 -6
  141. package/esm2022/lib/layout/content/content.border.directive.mjs +4 -6
  142. package/esm2022/lib/layout/content/content.box.directive.mjs +5 -7
  143. package/esm2022/lib/layout/content/content.container.directive.mjs +6 -8
  144. package/esm2022/lib/layout/content/content.directive.mjs +3 -3
  145. package/esm2022/lib/layout/content/content.elevate.directive.mjs +4 -6
  146. package/esm2022/lib/layout/content/content.layout.module.mjs +5 -5
  147. package/esm2022/lib/layout/content/content.page.directive.mjs +3 -3
  148. package/esm2022/lib/layout/content/content.pit.directive.mjs +4 -3
  149. package/esm2022/lib/layout/flag/flag.component.mjs +5 -7
  150. package/esm2022/lib/layout/flag/flag.layout.module.mjs +4 -4
  151. package/esm2022/lib/layout/flag/flag.prompt.component.mjs +6 -7
  152. package/esm2022/lib/layout/flex/flex.group.directive.mjs +14 -15
  153. package/esm2022/lib/layout/flex/flex.layout.module.mjs +4 -4
  154. package/esm2022/lib/layout/flex/flex.size.directive.mjs +4 -6
  155. package/esm2022/lib/layout/item/item.icon.component.mjs +6 -4
  156. package/esm2022/lib/layout/item/item.layout.module.mjs +4 -4
  157. package/esm2022/lib/layout/layout.module.mjs +4 -4
  158. package/esm2022/lib/layout/list/list.component.mjs +102 -103
  159. package/esm2022/lib/layout/list/list.content.empty.component.mjs +4 -4
  160. package/esm2022/lib/layout/list/list.directive.mjs +14 -15
  161. package/esm2022/lib/layout/list/list.grid.view.component.mjs +27 -39
  162. package/esm2022/lib/layout/list/list.grid.view.directive.mjs +3 -3
  163. package/esm2022/lib/layout/list/list.layout.module.mjs +5 -5
  164. package/esm2022/lib/layout/list/list.view.directive.mjs +11 -12
  165. package/esm2022/lib/layout/list/list.view.meta.icon.component.mjs +9 -19
  166. package/esm2022/lib/layout/list/list.view.selection.directive.mjs +4 -7
  167. package/esm2022/lib/layout/list/list.view.value.component.mjs +36 -43
  168. package/esm2022/lib/layout/list/list.view.value.directive.mjs +11 -17
  169. package/esm2022/lib/layout/list/list.view.value.group.title.directive.mjs +57 -59
  170. package/esm2022/lib/layout/list/list.view.value.item.directive.mjs +6 -11
  171. package/esm2022/lib/layout/list/list.view.value.modifier.directive.mjs +15 -19
  172. package/esm2022/lib/layout/list/list.view.value.modifier.ripple.directive.mjs +14 -17
  173. package/esm2022/lib/layout/list/list.view.value.modifier.selection.directive.mjs +13 -16
  174. package/esm2022/lib/layout/list/list.view.value.selection.component.mjs +20 -29
  175. package/esm2022/lib/layout/list/list.wrapper.mjs +3 -1
  176. package/esm2022/lib/layout/section/section.component.mjs +5 -8
  177. package/esm2022/lib/layout/section/section.header.component.mjs +12 -7
  178. package/esm2022/lib/layout/section/section.intro.component.mjs +7 -8
  179. package/esm2022/lib/layout/section/section.layout.module.mjs +4 -4
  180. package/esm2022/lib/layout/section/section.page.component.mjs +6 -9
  181. package/esm2022/lib/layout/section/subsection.component.mjs +4 -4
  182. package/esm2022/lib/layout/step/step.component.mjs +7 -3
  183. package/esm2022/lib/layout/step/step.layout.module.mjs +4 -4
  184. package/esm2022/lib/layout/style/spacer.directive.mjs +3 -3
  185. package/esm2022/lib/layout/style/style.body.directive.mjs +14 -15
  186. package/esm2022/lib/layout/style/style.color.directive.mjs +4 -6
  187. package/esm2022/lib/layout/style/style.directive.mjs +15 -13
  188. package/esm2022/lib/layout/style/style.layout.module.mjs +4 -4
  189. package/esm2022/lib/layout/style/style.service.mjs +18 -26
  190. package/esm2022/lib/layout/style/style.set.directive.mjs +15 -16
  191. package/esm2022/lib/layout/text/address.component.mjs +5 -4
  192. package/esm2022/lib/layout/text/compat/form.description.component.mjs +19 -0
  193. package/esm2022/lib/layout/text/compat/hint.component.mjs +19 -0
  194. package/esm2022/lib/layout/text/compat/index.mjs +10 -0
  195. package/esm2022/lib/layout/text/compat/label.component.mjs +19 -0
  196. package/esm2022/lib/layout/text/compat/note.component.mjs +19 -0
  197. package/esm2022/lib/layout/text/compat/notice.component.mjs +19 -0
  198. package/esm2022/lib/layout/text/compat/ok.component.mjs +19 -0
  199. package/esm2022/lib/layout/text/compat/success.component.mjs +19 -0
  200. package/esm2022/lib/layout/text/compat/text.compat.module.mjs +32 -0
  201. package/esm2022/lib/layout/text/compat/warn.component.mjs +19 -0
  202. package/esm2022/lib/layout/text/detail.block.component.mjs +6 -4
  203. package/esm2022/lib/layout/text/detail.block.header.component.mjs +6 -4
  204. package/esm2022/lib/layout/text/icon.spacer.component.mjs +3 -3
  205. package/esm2022/lib/layout/text/index.mjs +2 -9
  206. package/esm2022/lib/layout/text/label.block.component.mjs +7 -7
  207. package/esm2022/lib/layout/text/linkify.component.mjs +20 -23
  208. package/esm2022/lib/layout/text/text.chip.directive.mjs +5 -3
  209. package/esm2022/lib/layout/text/text.chips.component.mjs +6 -4
  210. package/esm2022/lib/layout/text/text.module.mjs +5 -13
  211. package/esm2022/lib/loading/basic-loading.component.mjs +33 -33
  212. package/esm2022/lib/loading/loading-progress.component.mjs +11 -10
  213. package/esm2022/lib/loading/loading.action.directive.mjs +8 -14
  214. package/esm2022/lib/loading/loading.component.mjs +33 -27
  215. package/esm2022/lib/loading/loading.module.mjs +4 -4
  216. package/esm2022/lib/router/layout/anchor/anchor.component.mjs +14 -17
  217. package/esm2022/lib/router/layout/anchor/anchor.content.component.mjs +14 -19
  218. package/esm2022/lib/router/layout/anchor/anchor.icon.component.mjs +5 -4
  219. package/esm2022/lib/router/layout/anchor/anchor.link.component.mjs +5 -4
  220. package/esm2022/lib/router/layout/anchor/anchor.module.mjs +4 -4
  221. package/esm2022/lib/router/layout/anchor/anchor.segue.directive.mjs +13 -16
  222. package/esm2022/lib/router/layout/anchorlist/anchorlist.component.mjs +8 -10
  223. package/esm2022/lib/router/layout/anchorlist/anchorlist.module.mjs +4 -4
  224. package/esm2022/lib/router/layout/layout.module.mjs +4 -4
  225. package/esm2022/lib/router/layout/list/list.module.mjs +4 -4
  226. package/esm2022/lib/router/layout/list/router.list.directive.mjs +16 -19
  227. package/esm2022/lib/router/layout/navbar/navbar.component.mjs +65 -70
  228. package/esm2022/lib/router/layout/navbar/navbar.module.mjs +6 -6
  229. package/esm2022/lib/router/layout/sidenav/sidenav.button.component.mjs +13 -16
  230. package/esm2022/lib/router/layout/sidenav/sidenav.component.mjs +54 -57
  231. package/esm2022/lib/router/layout/sidenav/sidenav.ifdisplaymode.directive.mjs +10 -14
  232. package/esm2022/lib/router/layout/sidenav/sidenav.module.mjs +4 -4
  233. package/esm2022/lib/router/layout/sidenav/sidenav.page.component.mjs +13 -14
  234. package/esm2022/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +5 -4
  235. package/esm2022/lib/router/provider/ngrouter/anchor.component.mjs +3 -3
  236. package/esm2022/lib/router/provider/ngrouter/angular.router.module.mjs +4 -4
  237. package/esm2022/lib/router/provider/uirouter/anchor.component.mjs +5 -8
  238. package/esm2022/lib/router/provider/uirouter/uirouter.router.module.mjs +4 -4
  239. package/esm2022/lib/screen/screen.module.mjs +4 -4
  240. package/esm2022/lib/screen/screen.service.mjs +19 -12
  241. package/esm2022/mapbox/lib/mapbox.change.service.mjs +15 -18
  242. package/esm2022/mapbox/lib/mapbox.injection.component.mjs +10 -14
  243. package/esm2022/mapbox/lib/mapbox.injection.store.mjs +8 -8
  244. package/esm2022/mapbox/lib/mapbox.injection.store.provide.mjs +8 -13
  245. package/esm2022/mapbox/lib/mapbox.layout.component.mjs +47 -46
  246. package/esm2022/mapbox/lib/mapbox.layout.drawer.component.mjs +9 -12
  247. package/esm2022/mapbox/lib/mapbox.layout.resize.sync.directive.mjs +17 -23
  248. package/esm2022/mapbox/lib/mapbox.marker.component.mjs +13 -17
  249. package/esm2022/mapbox/lib/mapbox.markers.component.mjs +14 -16
  250. package/esm2022/mapbox/lib/mapbox.menu.component.mjs +14 -21
  251. package/esm2022/mapbox/lib/mapbox.module.mjs +6 -6
  252. package/esm2022/mapbox/lib/mapbox.service.mjs +10 -10
  253. package/esm2022/mapbox/lib/mapbox.store.map.directive.mjs +9 -22
  254. package/esm2022/mapbox/lib/mapbox.store.mjs +395 -399
  255. package/esm2022/mapbox/lib/mapbox.store.provide.mjs +8 -13
  256. package/esm2022/table/lib/date/date.table.column.header.component.mjs +8 -8
  257. package/esm2022/table/lib/date/daterange.table.cell.input.component.mjs +37 -43
  258. package/esm2022/table/lib/date/table.date.module.mjs +6 -6
  259. package/esm2022/table/lib/table.cell.action.component.mjs +10 -13
  260. package/esm2022/table/lib/table.cell.input.component.mjs +10 -13
  261. package/esm2022/table/lib/table.cell.summaryend.component.mjs +10 -13
  262. package/esm2022/table/lib/table.cell.summarystart.component.mjs +10 -13
  263. package/esm2022/table/lib/table.column.directive.mjs +8 -11
  264. package/esm2022/table/lib/table.column.footer.component.mjs +13 -16
  265. package/esm2022/table/lib/table.column.header.component.mjs +13 -16
  266. package/esm2022/table/lib/table.component.mjs +35 -38
  267. package/esm2022/table/lib/table.directive.mjs +6 -9
  268. package/esm2022/table/lib/table.item.action.component.mjs +13 -16
  269. package/esm2022/table/lib/table.item.cell.component.mjs +7 -10
  270. package/esm2022/table/lib/table.item.directive.mjs +8 -11
  271. package/esm2022/table/lib/table.item.header.component.mjs +5 -8
  272. package/esm2022/table/lib/table.module.mjs +6 -6
  273. package/esm2022/table/lib/table.store.mjs +36 -36
  274. package/fesm2022/dereekb-dbx-web-calendar.mjs +137 -141
  275. package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
  276. package/fesm2022/dereekb-dbx-web-mapbox.mjs +552 -594
  277. package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
  278. package/fesm2022/dereekb-dbx-web-table.mjs +197 -232
  279. package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
  280. package/fesm2022/dereekb-dbx-web.mjs +2243 -2460
  281. package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
  282. package/lib/action/action.confirm.directive.d.ts +1 -3
  283. package/lib/action/key.trigger.directive.d.ts +1 -2
  284. package/lib/action/snackbar/action.snackbar.component.d.ts +4 -5
  285. package/lib/action/snackbar/action.snackbar.directive.d.ts +2 -3
  286. package/lib/action/snackbar/action.snackbar.service.d.ts +1 -2
  287. package/lib/action/transition/transition.safety.directive.d.ts +1 -2
  288. package/lib/button/progress/base.progress.button.directive.d.ts +7 -8
  289. package/lib/error/error.action.directive.d.ts +2 -3
  290. package/lib/error/error.component.d.ts +2 -3
  291. package/lib/error/error.loading.directive.d.ts +1 -2
  292. package/lib/error/error.snackbar.action.directive.d.ts +1 -2
  293. package/lib/error/error.snackbar.component.d.ts +2 -3
  294. package/lib/error/error.snackbar.service.d.ts +0 -1
  295. package/lib/error/error.widget.component.d.ts +0 -1
  296. package/lib/error/error.widget.directive.d.ts +0 -1
  297. package/lib/extension/download/text/download.text.component.d.ts +3 -6
  298. package/lib/extension/model/model.module.d.ts +3 -3
  299. package/lib/extension/model/model.state.service.d.ts +1 -3
  300. package/lib/extension/model/model.tracker.service.d.ts +1 -3
  301. package/lib/extension/model/model.tracker.view.storage.d.ts +5 -3
  302. package/lib/extension/model/model.types.service.d.ts +2 -3
  303. package/lib/extension/model/state/effects/tracker.effects.d.ts +0 -3
  304. package/lib/extension/structure/structure.structure.directive.d.ts +1 -2
  305. package/lib/extension/widget/widget.component.d.ts +0 -1
  306. package/lib/extension/widget/widget.directive.d.ts +0 -1
  307. package/lib/interaction/dialog/abstract.dialog.directive.d.ts +3 -5
  308. package/lib/interaction/dialog/dialog.action.directive.d.ts +3 -3
  309. package/lib/interaction/filter/filter.partial.d.ts +1 -2
  310. package/lib/interaction/filter/filter.popover.button.directive.d.ts +0 -2
  311. package/lib/interaction/filter/filter.popover.component.d.ts +0 -2
  312. package/lib/interaction/filter/{filter.preset.d.ts → filter.preset.directive.d.ts} +5 -6
  313. package/lib/interaction/filter/filter.preset.list.component.d.ts +2 -2
  314. package/lib/interaction/filter/filter.preset.menu.component.d.ts +2 -2
  315. package/lib/interaction/filter/filter.wrapper.component.d.ts +3 -3
  316. package/lib/interaction/popover/abstract.popover.directive.d.ts +0 -1
  317. package/lib/interaction/popover/popover.action.directive.d.ts +3 -3
  318. package/lib/interaction/popover/popover.close.component.d.ts +1 -2
  319. package/lib/interaction/popover/popover.component.d.ts +6 -7
  320. package/lib/interaction/popover/popover.controls.directive.d.ts +3 -2
  321. package/lib/interaction/popover/popover.coordinator.component.d.ts +3 -5
  322. package/lib/interaction/popover/popover.header.component.d.ts +5 -3
  323. package/lib/interaction/popover/popover.scroll.content.component.d.ts +0 -1
  324. package/lib/interaction/popover/popover.service.d.ts +0 -2
  325. package/lib/interaction/popup/abstract.popup.directive.d.ts +0 -1
  326. package/lib/interaction/popup/popup.component.d.ts +3 -5
  327. package/lib/interaction/popup/popup.content.component.d.ts +1 -3
  328. package/lib/interaction/popup/popup.controls.buttons.component.d.ts +1 -3
  329. package/lib/interaction/popup/popup.coordinator.component.d.ts +2 -5
  330. package/lib/interaction/popup/popup.service.d.ts +0 -2
  331. package/lib/interaction/prompt/prompt.button.confirm.directive.d.ts +3 -4
  332. package/lib/interaction/prompt/prompt.confirm.component.d.ts +2 -2
  333. package/lib/interaction/prompt/prompt.confirm.directive.d.ts +1 -3
  334. package/lib/layout/column/one/one.column.component.d.ts +1 -1
  335. package/lib/layout/column/two/two.column.back.directive.d.ts +0 -1
  336. package/lib/layout/column/two/two.column.component.d.ts +4 -4
  337. package/lib/layout/column/two/two.column.context.directive.d.ts +0 -1
  338. package/lib/layout/column/two/two.column.full.left.directive.d.ts +0 -2
  339. package/lib/layout/column/two/two.column.right.component.d.ts +1 -2
  340. package/lib/layout/column/two/two.column.sref.directive.d.ts +0 -2
  341. package/lib/layout/column/two/two.column.sref.showright.directive.d.ts +1 -3
  342. package/lib/layout/compact/compact.directive.d.ts +1 -2
  343. package/lib/layout/flex/flex.group.directive.d.ts +2 -3
  344. package/lib/layout/list/list.component.d.ts +3 -4
  345. package/lib/layout/list/list.directive.d.ts +4 -5
  346. package/lib/layout/list/list.grid.view.component.d.ts +3 -5
  347. package/lib/layout/list/list.view.directive.d.ts +1 -1
  348. package/lib/layout/list/list.view.meta.icon.component.d.ts +3 -2
  349. package/lib/layout/list/list.view.selection.directive.d.ts +1 -1
  350. package/lib/layout/list/list.view.value.component.d.ts +4 -5
  351. package/lib/layout/list/list.view.value.directive.d.ts +3 -4
  352. package/lib/layout/list/list.view.value.group.title.directive.d.ts +7 -3
  353. package/lib/layout/list/list.view.value.item.directive.d.ts +0 -1
  354. package/lib/layout/list/list.view.value.modifier.directive.d.ts +0 -1
  355. package/lib/layout/list/list.view.value.selection.component.d.ts +3 -4
  356. package/lib/layout/section/section.intro.component.d.ts +1 -1
  357. package/lib/layout/style/style.body.directive.d.ts +4 -4
  358. package/lib/layout/style/style.directive.d.ts +4 -5
  359. package/lib/layout/style/style.service.d.ts +1 -2
  360. package/lib/layout/style/style.set.directive.d.ts +3 -3
  361. package/lib/layout/text/compat/index.d.ts +9 -0
  362. package/lib/layout/text/compat/text.compat.module.d.ts +21 -0
  363. package/lib/layout/text/index.d.ts +1 -8
  364. package/lib/layout/text/linkify.component.d.ts +0 -2
  365. package/lib/layout/text/text.module.d.ts +9 -17
  366. package/lib/loading/loading.action.directive.d.ts +3 -4
  367. package/lib/loading/loading.component.d.ts +0 -1
  368. package/lib/router/layout/anchor/anchor.component.d.ts +0 -2
  369. package/lib/router/layout/anchor/anchor.content.component.d.ts +3 -4
  370. package/lib/router/layout/anchor/anchor.segue.directive.d.ts +0 -1
  371. package/lib/router/layout/navbar/navbar.component.d.ts +2 -4
  372. package/lib/router/layout/sidenav/sidenav.button.component.d.ts +0 -1
  373. package/lib/router/layout/sidenav/sidenav.component.d.ts +2 -4
  374. package/lib/router/layout/sidenav/sidenav.ifdisplaymode.directive.d.ts +2 -3
  375. package/lib/router/layout/sidenav/sidenav.page.component.d.ts +0 -1
  376. package/lib/screen/screen.service.d.ts +1 -2
  377. package/mapbox/esm2022/lib/mapbox.change.service.mjs +15 -18
  378. package/mapbox/esm2022/lib/mapbox.injection.component.mjs +10 -14
  379. package/mapbox/esm2022/lib/mapbox.injection.store.mjs +8 -8
  380. package/mapbox/esm2022/lib/mapbox.injection.store.provide.mjs +8 -13
  381. package/mapbox/esm2022/lib/mapbox.layout.component.mjs +47 -46
  382. package/mapbox/esm2022/lib/mapbox.layout.drawer.component.mjs +9 -12
  383. package/mapbox/esm2022/lib/mapbox.layout.resize.sync.directive.mjs +17 -23
  384. package/mapbox/esm2022/lib/mapbox.marker.component.mjs +13 -17
  385. package/mapbox/esm2022/lib/mapbox.markers.component.mjs +14 -16
  386. package/mapbox/esm2022/lib/mapbox.menu.component.mjs +14 -21
  387. package/mapbox/esm2022/lib/mapbox.module.mjs +6 -6
  388. package/mapbox/esm2022/lib/mapbox.service.mjs +10 -10
  389. package/mapbox/esm2022/lib/mapbox.store.map.directive.mjs +9 -22
  390. package/mapbox/esm2022/lib/mapbox.store.mjs +395 -399
  391. package/mapbox/esm2022/lib/mapbox.store.provide.mjs +8 -13
  392. package/mapbox/fesm2022/dereekb-dbx-web-mapbox.mjs +552 -594
  393. package/mapbox/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
  394. package/mapbox/lib/mapbox.change.service.d.ts +0 -1
  395. package/mapbox/lib/mapbox.injection.component.d.ts +0 -3
  396. package/mapbox/lib/mapbox.injection.store.provide.d.ts +1 -2
  397. package/mapbox/lib/mapbox.layout.component.d.ts +10 -11
  398. package/mapbox/lib/mapbox.layout.drawer.component.d.ts +0 -1
  399. package/mapbox/lib/mapbox.layout.resize.sync.directive.d.ts +3 -4
  400. package/mapbox/lib/mapbox.marker.component.d.ts +2 -4
  401. package/mapbox/lib/mapbox.menu.component.d.ts +4 -5
  402. package/mapbox/lib/mapbox.service.d.ts +1 -2
  403. package/mapbox/lib/mapbox.store.d.ts +1 -2
  404. package/mapbox/lib/mapbox.store.map.directive.d.ts +2 -3
  405. package/mapbox/lib/mapbox.store.provide.d.ts +1 -2
  406. package/mapbox/package.json +1 -1
  407. package/package.json +1 -1
  408. package/table/esm2022/lib/date/date.table.column.header.component.mjs +8 -8
  409. package/table/esm2022/lib/date/daterange.table.cell.input.component.mjs +37 -43
  410. package/table/esm2022/lib/date/table.date.module.mjs +6 -6
  411. package/table/esm2022/lib/table.cell.action.component.mjs +10 -13
  412. package/table/esm2022/lib/table.cell.input.component.mjs +10 -13
  413. package/table/esm2022/lib/table.cell.summaryend.component.mjs +10 -13
  414. package/table/esm2022/lib/table.cell.summarystart.component.mjs +10 -13
  415. package/table/esm2022/lib/table.column.directive.mjs +8 -11
  416. package/table/esm2022/lib/table.column.footer.component.mjs +13 -16
  417. package/table/esm2022/lib/table.column.header.component.mjs +13 -16
  418. package/table/esm2022/lib/table.component.mjs +35 -38
  419. package/table/esm2022/lib/table.directive.mjs +6 -9
  420. package/table/esm2022/lib/table.item.action.component.mjs +13 -16
  421. package/table/esm2022/lib/table.item.cell.component.mjs +7 -10
  422. package/table/esm2022/lib/table.item.directive.mjs +8 -11
  423. package/table/esm2022/lib/table.item.header.component.mjs +5 -8
  424. package/table/esm2022/lib/table.module.mjs +6 -6
  425. package/table/esm2022/lib/table.store.mjs +36 -36
  426. package/table/fesm2022/dereekb-dbx-web-table.mjs +197 -232
  427. package/table/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
  428. package/table/lib/date/daterange.table.cell.input.component.d.ts +3 -6
  429. package/table/lib/table.cell.action.component.d.ts +1 -2
  430. package/table/lib/table.cell.input.component.d.ts +1 -2
  431. package/table/lib/table.cell.summaryend.component.d.ts +1 -2
  432. package/table/lib/table.cell.summarystart.component.d.ts +1 -2
  433. package/table/lib/table.column.directive.d.ts +1 -2
  434. package/table/lib/table.component.d.ts +0 -1
  435. package/table/lib/table.directive.d.ts +0 -1
  436. package/table/lib/table.item.directive.d.ts +0 -1
  437. package/table/package.json +1 -1
  438. package/esm2022/lib/interaction/filter/filter.preset.mjs +0 -94
  439. package/esm2022/lib/layout/text/form.description.component.mjs +0 -19
  440. package/esm2022/lib/layout/text/hint.component.mjs +0 -19
  441. package/esm2022/lib/layout/text/label.component.mjs +0 -19
  442. package/esm2022/lib/layout/text/note.component.mjs +0 -19
  443. package/esm2022/lib/layout/text/notice.component.mjs +0 -19
  444. package/esm2022/lib/layout/text/ok.component.mjs +0 -19
  445. package/esm2022/lib/layout/text/success.component.mjs +0 -19
  446. package/esm2022/lib/layout/text/warn.component.mjs +0 -19
  447. /package/lib/layout/text/{form.description.component.d.ts → compat/form.description.component.d.ts} +0 -0
  448. /package/lib/layout/text/{hint.component.d.ts → compat/hint.component.d.ts} +0 -0
  449. /package/lib/layout/text/{label.component.d.ts → compat/label.component.d.ts} +0 -0
  450. /package/lib/layout/text/{note.component.d.ts → compat/note.component.d.ts} +0 -0
  451. /package/lib/layout/text/{notice.component.d.ts → compat/notice.component.d.ts} +0 -0
  452. /package/lib/layout/text/{ok.component.d.ts → compat/ok.component.d.ts} +0 -0
  453. /package/lib/layout/text/{success.component.d.ts → compat/success.component.d.ts} +0 -0
  454. /package/lib/layout/text/{warn.component.d.ts → compat/warn.component.d.ts} +0 -0
@@ -1,24 +1,24 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component, EventEmitter, Output, NgModule } from '@angular/core';
2
+ import { Injectable, inject, Component, EventEmitter, Output, NgModule } from '@angular/core';
3
3
  import { startOfDay, endOfDay, startOfWeek, endOfWeek, startOfMonth, endOfMonth, differenceInDays, isAfter, isBefore, addDays, isSameDay, isSameMonth } from 'date-fns';
4
4
  import { isDateInDateRange, isSameDateRange, isSameDateDay, isFullDateRange, clampDateToDateRange, formatToTimeAndDurationString, sortDateRangeStartAscendingCompareFunction } from '@dereekb/date';
5
5
  import { invertDecision, reduceBooleansWithAndFn } from '@dereekb/util';
6
6
  import { ComponentStore } from '@ngrx/component-store';
7
7
  import { distinctUntilChanged, switchMap, first, tap, map, shareReplay, combineLatest, withLatestFrom } from 'rxjs';
8
- import * as i2 from '@angular/common';
8
+ import * as i1 from '@angular/common';
9
9
  import { CommonModule } from '@angular/common';
10
- import * as i3$1 from '@angular/material/button-toggle';
10
+ import * as i2$1 from '@angular/material/button-toggle';
11
11
  import { MatButtonToggleModule } from '@angular/material/button-toggle';
12
- import * as i4$1 from 'angular-calendar';
12
+ import * as i3$1 from 'angular-calendar';
13
13
  import { CalendarModule, CalendarDayModule, CalendarWeekModule, DateAdapter } from 'angular-calendar';
14
- import * as i7 from '@ngbracket/ngx-layout/extended';
15
- import * as i3 from '@angular/material/icon';
14
+ import * as i6 from '@ngbracket/ngx-layout/extended';
15
+ import * as i2 from '@angular/material/icon';
16
16
  import { MatIconModule } from '@angular/material/icon';
17
- import * as i4 from '@angular/material/button';
17
+ import * as i3 from '@angular/material/button';
18
18
  import { MatButtonModule } from '@angular/material/button';
19
- import * as i5 from '@dereekb/dbx-web';
19
+ import * as i4 from '@dereekb/dbx-web';
20
20
  import { DbxButtonModule, DbxPopoverInteractionModule } from '@dereekb/dbx-web';
21
- import * as i6 from '@ngbracket/ngx-layout/flex';
21
+ import * as i5 from '@ngbracket/ngx-layout/flex';
22
22
  import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
23
23
  import { FlexLayoutModule } from '@ngbracket/ngx-layout';
24
24
 
@@ -73,96 +73,96 @@ class DbxCalendarStore extends ComponentStore {
73
73
  dateTappedTwice: false,
74
74
  events: []
75
75
  });
76
- // MARK: Effects
77
- this.tapFirstPage = this.effect((input) => {
78
- return input.pipe(switchMap(() => this.minNavigationDate$.pipe(first(), tap((x) => {
79
- if (x) {
80
- this.tapDay(x);
81
- }
82
- }))));
83
- });
84
- this.tapNext = this.effect((input) => {
85
- return input.pipe(switchMap(() => this.visibleDateRange$.pipe(first(), tap(({ end, isMaxDateVisible }) => {
86
- if (!isMaxDateVisible) {
87
- this.tapDay(addDays(end, 1));
88
- }
89
- }))));
90
- });
91
- this.tapPrevious = this.effect((input) => {
92
- return input.pipe(switchMap(() => this.visibleDateRange$.pipe(first(), tap(({ start, isMinDateVisible }) => {
93
- if (!isMinDateVisible) {
94
- this.tapDay(addDays(start, -1));
95
- }
96
- }))));
97
- });
98
- this.tapLastPage = this.effect((input) => {
99
- return input.pipe(switchMap(() => this.maxNavigationDate$.pipe(first(), tap((x) => {
100
- if (x) {
101
- this.tapDay(x);
102
- }
103
- }))));
104
- });
105
- // MARK: Accessors
106
- this.showTodayButton$ = this.state$.pipe(map((x) => x.showTodayButton), distinctUntilChanged(), shareReplay(1));
107
- this.date$ = this.state$.pipe(map((x) => x.date));
108
- this.dateTappedTwice$ = this.state$.pipe(map((x) => x.dateTappedTwice));
109
- this.events$ = this.state$.pipe(map((x) => x.events));
110
- // TODO: Filter to be events that will only be displayed based on the current calendar.
111
- this.visibleEvents$ = this.state$.pipe(map((x) => x.events), shareReplay(1));
112
- this.eventsForDateState$ = this.state$.pipe(distinctUntilDateOrTypeOrEventsChanged, map((state) => ({
113
- date: state.date,
114
- events: state.events.filter((x) => isSameDay(x.start, state.date) || (x.end && isBefore(x.start, state.date) && isAfter(x.end, state.date))),
115
- dateTappedTwice: state.dateTappedTwice
116
- })), shareReplay(1));
117
- this.eventsForDate$ = this.eventsForDateState$.pipe(map((state) => state.events));
118
- this.visibleDateRange$ = this.state$.pipe(
119
- // If the date or type changes, check again.
120
- distinctUntilChanged((a, b) => a?.date === b?.date && a?.type === b?.type), map(visibleDateRangeForCalendarState), distinctUntilChanged((a, b) => {
121
- if (a.type === b.type) {
122
- return isSameDay(a.start, b.start);
76
+ }
77
+ // MARK: Effects
78
+ tapFirstPage = this.effect((input) => {
79
+ return input.pipe(switchMap(() => this.minNavigationDate$.pipe(first(), tap((x) => {
80
+ if (x) {
81
+ this.tapDay(x);
123
82
  }
124
- else {
125
- return false; // Type changed, date range changed.
83
+ }))));
84
+ });
85
+ tapNext = this.effect((input) => {
86
+ return input.pipe(switchMap(() => this.visibleDateRange$.pipe(first(), tap(({ end, isMaxDateVisible }) => {
87
+ if (!isMaxDateVisible) {
88
+ this.tapDay(addDays(end, 1));
126
89
  }
127
- }), shareReplay(1));
128
- this.isLookingAtToday$ = this.visibleDateRange$.pipe(map((x) => isDateInDateRange(new Date(), x)), distinctUntilChanged(), shareReplay(1));
129
- this.isLookingAtMinimumDate$ = this.visibleDateRange$.pipe(map((x) => x.isMinDateVisible), distinctUntilChanged(), shareReplay(1));
130
- this.isLookingAtMaximumDate$ = this.visibleDateRange$.pipe(map((x) => x.isMaxDateVisible), distinctUntilChanged(), shareReplay(1));
131
- this.hasMultiplePages$ = combineLatest([this.isLookingAtMinimumDate$, this.isLookingAtMaximumDate$]).pipe(map(invertDecision(reduceBooleansWithAndFn(true))), distinctUntilChanged(), shareReplay(1));
132
- this.displayType$ = this.state$.pipe(map((x) => x.type), distinctUntilChanged((a, b) => a === b), shareReplay(1));
133
- this.navigationRangeLimit$ = this.state$.pipe(map((x) => x.navigationRangeLimit), distinctUntilChanged(isSameDateRange), shareReplay(1));
134
- this.minNavigationDate$ = this.navigationRangeLimit$.pipe(map((x) => x?.start), distinctUntilChanged(isSameDateDay), shareReplay(1));
135
- this.maxNavigationDate$ = this.navigationRangeLimit$.pipe(map((x) => x?.end), distinctUntilChanged(isSameDateDay), shareReplay(1));
136
- this.isTodayInNavigationRangeLimit$ = this.navigationRangeLimit$.pipe(map((x) => isDateInDateRange(new Date(), x ?? {})), distinctUntilChanged(), shareReplay(1));
137
- this.canJumpToToday$ = combineLatest([this.isLookingAtToday$, this.isTodayInNavigationRangeLimit$]).pipe(map(([isLookingAtToday, isTodayInNavigationRangeLimit]) => !isLookingAtToday && isTodayInNavigationRangeLimit), distinctUntilChanged(), shareReplay(1));
138
- this.canShowPageButtons$ = this.state$.pipe(map((x) => x.showPageButtons && x.navigationRangeLimit && isFullDateRange(x.navigationRangeLimit)), distinctUntilChanged(), shareReplay(1));
139
- this.showPageButtons$ = combineLatest([this.canShowPageButtons$, this.isLookingAtMinimumDate$, this.isLookingAtMaximumDate$]).pipe(map(([canShowPageButtons, isLookingAtMinimumDate, isLookingAtMaximumDate]) => {
140
- return canShowPageButtons && !(isLookingAtMinimumDate && isLookingAtMaximumDate);
141
- }), distinctUntilChanged(), shareReplay(1));
142
- // MARK: State Changes
143
- /**
144
- * Tap a day.
145
- *
146
- * - If the same day is presented, dateTappedTwice is flipped.
147
- */
148
- this.tapDay = this.updater((state, date) => updateCalendarStateWithTappedDate(state, date));
149
- /**
150
- * Set all events on the calendar.
151
- */
152
- this.setEvents = this.updater((state, events) => ({ ...state, events }));
153
- /**
154
- * Set all events on the calendar.
155
- */
156
- this.setDisplayType = this.updater((state, type) => ({ ...state, type }));
157
- /**
158
- * Sets the navigation limit.
159
- */
160
- this.setNavigationRangeLimit = this.updater((state, navigationRangeLimit) => updateCalendarStateWithNavigationRangeLimit(state, navigationRangeLimit));
161
- this.setShowTodayButton = this.updater((state, showTodayButton) => ({ ...state, showTodayButton: showTodayButton != null ? showTodayButton : true }));
162
- this.setShowPageButtons = this.updater((state, showPageButtons) => ({ ...state, showPageButtons: showPageButtons != null ? showPageButtons : false }));
163
- }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
165
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarStore }); }
90
+ }))));
91
+ });
92
+ tapPrevious = this.effect((input) => {
93
+ return input.pipe(switchMap(() => this.visibleDateRange$.pipe(first(), tap(({ start, isMinDateVisible }) => {
94
+ if (!isMinDateVisible) {
95
+ this.tapDay(addDays(start, -1));
96
+ }
97
+ }))));
98
+ });
99
+ tapLastPage = this.effect((input) => {
100
+ return input.pipe(switchMap(() => this.maxNavigationDate$.pipe(first(), tap((x) => {
101
+ if (x) {
102
+ this.tapDay(x);
103
+ }
104
+ }))));
105
+ });
106
+ // MARK: Accessors
107
+ showTodayButton$ = this.state$.pipe(map((x) => x.showTodayButton), distinctUntilChanged(), shareReplay(1));
108
+ date$ = this.state$.pipe(map((x) => x.date));
109
+ dateTappedTwice$ = this.state$.pipe(map((x) => x.dateTappedTwice));
110
+ events$ = this.state$.pipe(map((x) => x.events));
111
+ // TODO: Filter to be events that will only be displayed based on the current calendar.
112
+ visibleEvents$ = this.state$.pipe(map((x) => x.events), shareReplay(1));
113
+ eventsForDateState$ = this.state$.pipe(distinctUntilDateOrTypeOrEventsChanged, map((state) => ({
114
+ date: state.date,
115
+ events: state.events.filter((x) => isSameDay(x.start, state.date) || (x.end && isBefore(x.start, state.date) && isAfter(x.end, state.date))),
116
+ dateTappedTwice: state.dateTappedTwice
117
+ })), shareReplay(1));
118
+ eventsForDate$ = this.eventsForDateState$.pipe(map((state) => state.events));
119
+ visibleDateRange$ = this.state$.pipe(
120
+ // If the date or type changes, check again.
121
+ distinctUntilChanged((a, b) => a?.date === b?.date && a?.type === b?.type), map(visibleDateRangeForCalendarState), distinctUntilChanged((a, b) => {
122
+ if (a.type === b.type) {
123
+ return isSameDay(a.start, b.start);
124
+ }
125
+ else {
126
+ return false; // Type changed, date range changed.
127
+ }
128
+ }), shareReplay(1));
129
+ isLookingAtToday$ = this.visibleDateRange$.pipe(map((x) => isDateInDateRange(new Date(), x)), distinctUntilChanged(), shareReplay(1));
130
+ isLookingAtMinimumDate$ = this.visibleDateRange$.pipe(map((x) => x.isMinDateVisible), distinctUntilChanged(), shareReplay(1));
131
+ isLookingAtMaximumDate$ = this.visibleDateRange$.pipe(map((x) => x.isMaxDateVisible), distinctUntilChanged(), shareReplay(1));
132
+ hasMultiplePages$ = combineLatest([this.isLookingAtMinimumDate$, this.isLookingAtMaximumDate$]).pipe(map(invertDecision(reduceBooleansWithAndFn(true))), distinctUntilChanged(), shareReplay(1));
133
+ displayType$ = this.state$.pipe(map((x) => x.type), distinctUntilChanged((a, b) => a === b), shareReplay(1));
134
+ navigationRangeLimit$ = this.state$.pipe(map((x) => x.navigationRangeLimit), distinctUntilChanged(isSameDateRange), shareReplay(1));
135
+ minNavigationDate$ = this.navigationRangeLimit$.pipe(map((x) => x?.start), distinctUntilChanged(isSameDateDay), shareReplay(1));
136
+ maxNavigationDate$ = this.navigationRangeLimit$.pipe(map((x) => x?.end), distinctUntilChanged(isSameDateDay), shareReplay(1));
137
+ isTodayInNavigationRangeLimit$ = this.navigationRangeLimit$.pipe(map((x) => isDateInDateRange(new Date(), x ?? {})), distinctUntilChanged(), shareReplay(1));
138
+ canJumpToToday$ = combineLatest([this.isLookingAtToday$, this.isTodayInNavigationRangeLimit$]).pipe(map(([isLookingAtToday, isTodayInNavigationRangeLimit]) => !isLookingAtToday && isTodayInNavigationRangeLimit), distinctUntilChanged(), shareReplay(1));
139
+ canShowPageButtons$ = this.state$.pipe(map((x) => x.showPageButtons && x.navigationRangeLimit && isFullDateRange(x.navigationRangeLimit)), distinctUntilChanged(), shareReplay(1));
140
+ showPageButtons$ = combineLatest([this.canShowPageButtons$, this.isLookingAtMinimumDate$, this.isLookingAtMaximumDate$]).pipe(map(([canShowPageButtons, isLookingAtMinimumDate, isLookingAtMaximumDate]) => {
141
+ return canShowPageButtons && !(isLookingAtMinimumDate && isLookingAtMaximumDate);
142
+ }), distinctUntilChanged(), shareReplay(1));
143
+ // MARK: State Changes
144
+ /**
145
+ * Tap a day.
146
+ *
147
+ * - If the same day is presented, dateTappedTwice is flipped.
148
+ */
149
+ tapDay = this.updater((state, date) => updateCalendarStateWithTappedDate(state, date));
150
+ /**
151
+ * Set all events on the calendar.
152
+ */
153
+ setEvents = this.updater((state, events) => ({ ...state, events }));
154
+ /**
155
+ * Set all events on the calendar.
156
+ */
157
+ setDisplayType = this.updater((state, type) => ({ ...state, type }));
158
+ /**
159
+ * Sets the navigation limit.
160
+ */
161
+ setNavigationRangeLimit = this.updater((state, navigationRangeLimit) => updateCalendarStateWithNavigationRangeLimit(state, navigationRangeLimit));
162
+ setShowTodayButton = this.updater((state, showTodayButton) => ({ ...state, showTodayButton: showTodayButton != null ? showTodayButton : true }));
163
+ setShowPageButtons = this.updater((state, showPageButtons) => ({ ...state, showPageButtons: showPageButtons != null ? showPageButtons : false }));
164
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
165
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarStore });
166
166
  }
167
167
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarStore, decorators: [{
168
168
  type: Injectable
@@ -219,23 +219,21 @@ function prepareAndSortCalendarEvents(events) {
219
219
  }
220
220
 
221
221
  class DbxCalendarBaseComponent {
222
- constructor(calendarStore) {
223
- this.calendarStore = calendarStore;
224
- this.viewDate$ = this.calendarStore.date$;
225
- this.showTodayButton$ = this.calendarStore.showTodayButton$;
226
- this.canJumpToToday$ = this.calendarStore.canJumpToToday$;
227
- this.isLookingAtMinimumDate$ = this.calendarStore.isLookingAtMinimumDate$;
228
- this.isLookingAtMaximumDate$ = this.calendarStore.isLookingAtMaximumDate$;
229
- this.hasMultiplePages$ = this.calendarStore.hasMultiplePages$;
230
- this.showPageButtons$ = this.calendarStore.showPageButtons$;
231
- this.activeDayIsOpen$ = this.calendarStore.eventsForDateState$.pipe(withLatestFrom(this.calendarStore.date$), map(([x, date]) => {
232
- if (x.events.length && isSameMonth(x.date, date)) {
233
- return !x.dateTappedTwice;
234
- }
235
- return false;
236
- }));
237
- this.displayType$ = this.calendarStore.displayType$;
238
- }
222
+ calendarStore = inject((DbxCalendarStore));
223
+ viewDate$ = this.calendarStore.date$;
224
+ showTodayButton$ = this.calendarStore.showTodayButton$;
225
+ canJumpToToday$ = this.calendarStore.canJumpToToday$;
226
+ isLookingAtMinimumDate$ = this.calendarStore.isLookingAtMinimumDate$;
227
+ isLookingAtMaximumDate$ = this.calendarStore.isLookingAtMaximumDate$;
228
+ hasMultiplePages$ = this.calendarStore.hasMultiplePages$;
229
+ showPageButtons$ = this.calendarStore.showPageButtons$;
230
+ activeDayIsOpen$ = this.calendarStore.eventsForDateState$.pipe(withLatestFrom(this.calendarStore.date$), map(([x, date]) => {
231
+ if (x.events.length && isSameMonth(x.date, date)) {
232
+ return !x.dateTappedTwice;
233
+ }
234
+ return false;
235
+ }));
236
+ displayType$ = this.calendarStore.displayType$;
239
237
  todayClicked() {
240
238
  this.calendarStore.tapDay(new Date());
241
239
  }
@@ -254,28 +252,26 @@ class DbxCalendarBaseComponent {
254
252
  typeToggleChanged(event) {
255
253
  this.calendarStore.setDisplayType(event.value);
256
254
  }
257
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarBaseComponent, deps: [{ token: DbxCalendarStore }], target: i0.ɵɵFactoryTarget.Component }); }
258
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxCalendarBaseComponent, selector: "dbx-calendar-base", ngImport: i0, template: "<div class=\"dbx-calendar\">\n <h3 class=\"dbx-calendar-title\">{{ (viewDate$ | async)! | calendarDate: (displayType$ | async) + 'ViewTitle':'en' }}</h3>\n <div class=\"dbx-calendar-header\">\n <div class=\"dbx-calendar-controls\" fxLayout=\"row\" fxLayout.xs=\"column\" ngClass.xs=\"dbx-calendar-controls-compact\">\n <span class=\"dbx-calendar-controls-left dbx-flex-bar\" fxFlex=\"nogrow\">\n <button *ngIf=\"showTodayButton$ | async\" mat-stroked-button [disabled]=\"!(canJumpToToday$ | async)\" (click)=\"todayClicked()\">Today</button>\n <dbx-button-spacer></dbx-button-spacer>\n <div class=\"d-iblock\" *ngIf=\"hasMultiplePages$ | async\">\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" aria-label=\"first page button\" (click)=\"firstPageButtonClicked()\">\n <mat-icon>first_page</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" [attr.aria-label]=\"'Previous ' + (displayType$ | async) + ' button'\" (click)=\"previousButtonClicked()\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" [attr.aria-label]=\"'Next' + (displayType$ | async)! + ' button'\" (click)=\"nextButtonClicked()\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" aria-label=\"last page button\" (click)=\"lastPageButtonClicked()\">\n <mat-icon>last_page</mat-icon>\n </button>\n </div>\n </span>\n <span class=\"spacer\"></span>\n <span class=\"dbx-calendar-controls-right\" fxFlex=\"nogrow\">\n <ng-content select=\"[controls]\"></ng-content>\n </span>\n </div>\n </div>\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i5.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "directive", type: i6.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i6.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i7.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i4$1.ɵCalendarDatePipe, name: "calendarDate" }] }); }
255
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
256
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxCalendarBaseComponent, selector: "dbx-calendar-base", ngImport: i0, template: "<div class=\"dbx-calendar\">\n <h3 class=\"dbx-calendar-title\">{{ (viewDate$ | async)! | calendarDate: (displayType$ | async) + 'ViewTitle':'en' }}</h3>\n <div class=\"dbx-calendar-header\">\n <div class=\"dbx-calendar-controls\" fxLayout=\"row\" fxLayout.xs=\"column\" ngClass.xs=\"dbx-calendar-controls-compact\">\n <span class=\"dbx-calendar-controls-left dbx-flex-bar\" fxFlex=\"nogrow\">\n <button *ngIf=\"showTodayButton$ | async\" mat-stroked-button [disabled]=\"!(canJumpToToday$ | async)\" (click)=\"todayClicked()\">Today</button>\n <dbx-button-spacer></dbx-button-spacer>\n <div class=\"d-iblock\" *ngIf=\"hasMultiplePages$ | async\">\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" aria-label=\"first page button\" (click)=\"firstPageButtonClicked()\">\n <mat-icon>first_page</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" [attr.aria-label]=\"'Previous ' + (displayType$ | async) + ' button'\" (click)=\"previousButtonClicked()\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" [attr.aria-label]=\"'Next' + (displayType$ | async)! + ' button'\" (click)=\"nextButtonClicked()\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" aria-label=\"last page button\" (click)=\"lastPageButtonClicked()\">\n <mat-icon>last_page</mat-icon>\n </button>\n </div>\n </span>\n <span class=\"spacer\"></span>\n <span class=\"dbx-calendar-controls-right\" fxFlex=\"nogrow\">\n <ng-content select=\"[controls]\"></ng-content>\n </span>\n </div>\n </div>\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.ɵCalendarDatePipe, name: "calendarDate" }] });
259
257
  }
260
258
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarBaseComponent, decorators: [{
261
259
  type: Component,
262
260
  args: [{ selector: 'dbx-calendar-base', template: "<div class=\"dbx-calendar\">\n <h3 class=\"dbx-calendar-title\">{{ (viewDate$ | async)! | calendarDate: (displayType$ | async) + 'ViewTitle':'en' }}</h3>\n <div class=\"dbx-calendar-header\">\n <div class=\"dbx-calendar-controls\" fxLayout=\"row\" fxLayout.xs=\"column\" ngClass.xs=\"dbx-calendar-controls-compact\">\n <span class=\"dbx-calendar-controls-left dbx-flex-bar\" fxFlex=\"nogrow\">\n <button *ngIf=\"showTodayButton$ | async\" mat-stroked-button [disabled]=\"!(canJumpToToday$ | async)\" (click)=\"todayClicked()\">Today</button>\n <dbx-button-spacer></dbx-button-spacer>\n <div class=\"d-iblock\" *ngIf=\"hasMultiplePages$ | async\">\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" aria-label=\"first page button\" (click)=\"firstPageButtonClicked()\">\n <mat-icon>first_page</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMinimumDate$ | async\" [attr.aria-label]=\"'Previous ' + (displayType$ | async) + ' button'\" (click)=\"previousButtonClicked()\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" [attr.aria-label]=\"'Next' + (displayType$ | async)! + ' button'\" (click)=\"nextButtonClicked()\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n <button *ngIf=\"showPageButtons$ | async\" mat-icon-button [disabled]=\"isLookingAtMaximumDate$ | async\" aria-label=\"last page button\" (click)=\"lastPageButtonClicked()\">\n <mat-icon>last_page</mat-icon>\n </button>\n </div>\n </span>\n <span class=\"spacer\"></span>\n <span class=\"dbx-calendar-controls-right\" fxFlex=\"nogrow\">\n <ng-content select=\"[controls]\"></ng-content>\n </span>\n </div>\n </div>\n <ng-content></ng-content>\n</div>\n" }]
263
- }], ctorParameters: function () { return [{ type: DbxCalendarStore }]; } });
261
+ }] });
264
262
 
265
263
  class DbxCalendarComponent {
266
- constructor(calendarStore) {
267
- this.calendarStore = calendarStore;
268
- this.clickEvent = new EventEmitter();
269
- this.viewDate$ = this.calendarStore.date$;
270
- this.events$ = this.calendarStore.visibleEvents$.pipe(map(prepareAndSortCalendarEvents), shareReplay(1));
271
- this.activeDayIsOpen$ = this.calendarStore.eventsForDateState$.pipe(withLatestFrom(this.calendarStore.date$), map(([x, date]) => {
272
- if (x.events.length && isSameMonth(x.date, date)) {
273
- return !x.dateTappedTwice;
274
- }
275
- return false;
276
- }), distinctUntilChanged(), shareReplay(1));
277
- this.displayType$ = this.calendarStore.displayType$;
278
- }
264
+ calendarStore = inject((DbxCalendarStore));
265
+ clickEvent = new EventEmitter();
266
+ viewDate$ = this.calendarStore.date$;
267
+ events$ = this.calendarStore.visibleEvents$.pipe(map(prepareAndSortCalendarEvents), shareReplay(1));
268
+ activeDayIsOpen$ = this.calendarStore.eventsForDateState$.pipe(withLatestFrom(this.calendarStore.date$), map(([x, date]) => {
269
+ if (x.events.length && isSameMonth(x.date, date)) {
270
+ return !x.dateTappedTwice;
271
+ }
272
+ return false;
273
+ }), distinctUntilChanged(), shareReplay(1));
274
+ displayType$ = this.calendarStore.displayType$;
279
275
  ngOnDestroy() {
280
276
  this.clickEvent.complete();
281
277
  }
@@ -297,13 +293,13 @@ class DbxCalendarComponent {
297
293
  typeToggleChanged(event) {
298
294
  this.calendarStore.setDisplayType(event.value);
299
295
  }
300
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarComponent, deps: [{ token: DbxCalendarStore }], target: i0.ɵɵFactoryTarget.Component }); }
301
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxCalendarComponent, selector: "dbx-calendar", outputs: { clickEvent: "clickEvent" }, ngImport: i0, template: "<dbx-calendar-base>\n <ng-container controls>\n <mat-button-toggle-group name=\"calendarDisplayStyle\" [value]=\"(displayType$ | async)!\" (change)=\"typeToggleChanged($event)\" aria-label=\"Display Style\">\n <mat-button-toggle value=\"month\">Month</mat-button-toggle>\n <mat-button-toggle value=\"week\">Week</mat-button-toggle>\n <mat-button-toggle value=\"day\">Day</mat-button-toggle>\n </mat-button-toggle-group>\n </ng-container>\n <div class=\"dbx-calendar-content\" [ngClass]=\"'dbx-calendar-content-' + (displayType$ | async)!\" [ngSwitch]=\"displayType$ | async\">\n <mwl-calendar-month-view *ngSwitchCase=\"'month'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" [activeDayIsOpen]=\"(activeDayIsOpen$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-month-view>\n <mwl-calendar-week-view *ngSwitchCase=\"'week'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-week-view>\n <mwl-calendar-day-view *ngSwitchCase=\"'day'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-day-view>\n </div>\n</dbx-calendar-base>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3$1.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i3$1.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "component", type: i4$1.CalendarMonthViewComponent, selector: "mwl-calendar-month-view", inputs: ["viewDate", "events", "excludeDays", "activeDayIsOpen", "activeDay", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "cellTemplate", "openDayEventsTemplate", "eventTitleTemplate", "eventActionsTemplate", "weekendDays"], outputs: ["beforeViewRender", "dayClicked", "eventClicked", "columnHeaderClicked", "eventTimesChanged"] }, { kind: "component", type: i4$1.CalendarWeekViewComponent, selector: "mwl-calendar-week-view", inputs: ["viewDate", "events", "excludeDays", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "eventTemplate", "eventTitleTemplate", "eventActionsTemplate", "precision", "weekendDays", "snapDraggedEvents", "hourSegments", "hourDuration", "hourSegmentHeight", "minimumEventHeight", "dayStartHour", "dayStartMinute", "dayEndHour", "dayEndMinute", "hourSegmentTemplate", "eventSnapSize", "allDayEventsLabelTemplate", "daysInWeek", "currentTimeMarkerTemplate", "validateEventTimesChanged", "resizeCursors"], outputs: ["dayHeaderClicked", "eventClicked", "eventTimesChanged", "beforeViewRender", "hourSegmentClicked"] }, { kind: "component", type: i4$1.CalendarDayViewComponent, selector: "mwl-calendar-day-view", inputs: ["viewDate", "events", "hourSegments", "hourSegmentHeight", "hourDuration", "minimumEventHeight", "dayStartHour", "dayStartMinute", "dayEndHour", "dayEndMinute", "refresh", "locale", "eventSnapSize", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "hourSegmentTemplate", "eventTemplate", "eventTitleTemplate", "eventActionsTemplate", "snapDraggedEvents", "allDayEventsLabelTemplate", "currentTimeMarkerTemplate", "validateEventTimesChanged", "resizeCursors"], outputs: ["eventClicked", "hourSegmentClicked", "eventTimesChanged", "beforeViewRender"] }, { kind: "directive", type: i7.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: DbxCalendarBaseComponent, selector: "dbx-calendar-base" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
296
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
297
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DbxCalendarComponent, selector: "dbx-calendar", outputs: { clickEvent: "clickEvent" }, ngImport: i0, template: "<dbx-calendar-base>\n <ng-container controls>\n <mat-button-toggle-group name=\"calendarDisplayStyle\" [value]=\"(displayType$ | async)!\" (change)=\"typeToggleChanged($event)\" aria-label=\"Display Style\">\n <mat-button-toggle value=\"month\">Month</mat-button-toggle>\n <mat-button-toggle value=\"week\">Week</mat-button-toggle>\n <mat-button-toggle value=\"day\">Day</mat-button-toggle>\n </mat-button-toggle-group>\n </ng-container>\n <div class=\"dbx-calendar-content\" [ngClass]=\"'dbx-calendar-content-' + (displayType$ | async)!\" [ngSwitch]=\"displayType$ | async\">\n <mwl-calendar-month-view *ngSwitchCase=\"'month'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" [activeDayIsOpen]=\"(activeDayIsOpen$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-month-view>\n <mwl-calendar-week-view *ngSwitchCase=\"'week'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-week-view>\n <mwl-calendar-day-view *ngSwitchCase=\"'day'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-day-view>\n </div>\n</dbx-calendar-base>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2$1.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i2$1.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "component", type: i3$1.CalendarMonthViewComponent, selector: "mwl-calendar-month-view", inputs: ["viewDate", "events", "excludeDays", "activeDayIsOpen", "activeDay", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "cellTemplate", "openDayEventsTemplate", "eventTitleTemplate", "eventActionsTemplate", "weekendDays"], outputs: ["beforeViewRender", "dayClicked", "eventClicked", "columnHeaderClicked", "eventTimesChanged"] }, { kind: "component", type: i3$1.CalendarWeekViewComponent, selector: "mwl-calendar-week-view", inputs: ["viewDate", "events", "excludeDays", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "eventTemplate", "eventTitleTemplate", "eventActionsTemplate", "precision", "weekendDays", "snapDraggedEvents", "hourSegments", "hourDuration", "hourSegmentHeight", "minimumEventHeight", "dayStartHour", "dayStartMinute", "dayEndHour", "dayEndMinute", "hourSegmentTemplate", "eventSnapSize", "allDayEventsLabelTemplate", "daysInWeek", "currentTimeMarkerTemplate", "validateEventTimesChanged", "resizeCursors"], outputs: ["dayHeaderClicked", "eventClicked", "eventTimesChanged", "beforeViewRender", "hourSegmentClicked"] }, { kind: "component", type: i3$1.CalendarDayViewComponent, selector: "mwl-calendar-day-view", inputs: ["viewDate", "events", "hourSegments", "hourSegmentHeight", "hourDuration", "minimumEventHeight", "dayStartHour", "dayStartMinute", "dayEndHour", "dayEndMinute", "refresh", "locale", "eventSnapSize", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "hourSegmentTemplate", "eventTemplate", "eventTitleTemplate", "eventActionsTemplate", "snapDraggedEvents", "allDayEventsLabelTemplate", "currentTimeMarkerTemplate", "validateEventTimesChanged", "resizeCursors"], outputs: ["eventClicked", "hourSegmentClicked", "eventTimesChanged", "beforeViewRender"] }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: DbxCalendarBaseComponent, selector: "dbx-calendar-base" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
302
298
  }
303
299
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarComponent, decorators: [{
304
300
  type: Component,
305
301
  args: [{ selector: 'dbx-calendar', template: "<dbx-calendar-base>\n <ng-container controls>\n <mat-button-toggle-group name=\"calendarDisplayStyle\" [value]=\"(displayType$ | async)!\" (change)=\"typeToggleChanged($event)\" aria-label=\"Display Style\">\n <mat-button-toggle value=\"month\">Month</mat-button-toggle>\n <mat-button-toggle value=\"week\">Week</mat-button-toggle>\n <mat-button-toggle value=\"day\">Day</mat-button-toggle>\n </mat-button-toggle-group>\n </ng-container>\n <div class=\"dbx-calendar-content\" [ngClass]=\"'dbx-calendar-content-' + (displayType$ | async)!\" [ngSwitch]=\"displayType$ | async\">\n <mwl-calendar-month-view *ngSwitchCase=\"'month'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" [activeDayIsOpen]=\"(activeDayIsOpen$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-month-view>\n <mwl-calendar-week-view *ngSwitchCase=\"'week'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-week-view>\n <mwl-calendar-day-view *ngSwitchCase=\"'day'\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (eventClicked)=\"eventClicked('Clicked', $event.event)\"></mwl-calendar-day-view>\n </div>\n</dbx-calendar-base>\n" }]
306
- }], ctorParameters: function () { return [{ type: DbxCalendarStore }]; }, propDecorators: { clickEvent: [{
302
+ }], propDecorators: { clickEvent: [{
307
303
  type: Output
308
304
  }] } });
309
305
 
@@ -313,8 +309,8 @@ const declarations = [
313
309
  DbxCalendarComponent
314
310
  ];
315
311
  class DbxCalendarModule {
316
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
317
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, declarations: [
312
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
313
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, declarations: [
318
314
  //
319
315
  DbxCalendarBaseComponent,
320
316
  DbxCalendarComponent], imports: [
@@ -331,8 +327,8 @@ class DbxCalendarModule {
331
327
  CalendarWeekModule], exports: [
332
328
  //
333
329
  DbxCalendarBaseComponent,
334
- DbxCalendarComponent] }); }
335
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, imports: [
330
+ DbxCalendarComponent] });
331
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, imports: [
336
332
  //
337
333
  CommonModule,
338
334
  MatIconModule,
@@ -343,7 +339,7 @@ class DbxCalendarModule {
343
339
  CalendarModule,
344
340
  CalendarDayModule,
345
341
  FlexLayoutModule,
346
- CalendarWeekModule] }); }
342
+ CalendarWeekModule] });
347
343
  }
348
344
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarModule, decorators: [{
349
345
  type: NgModule,
@@ -369,9 +365,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
369
365
  * Provides default configuration for the DbxCalendarModule
370
366
  */
371
367
  class DbxCalendarRootModule {
372
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
373
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, imports: [i4$1.CalendarModule], exports: [DbxCalendarModule] }); }
374
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, imports: [CalendarModule.forRoot({ provide: DateAdapter, useFactory: adapterFactory }), DbxCalendarModule] }); }
368
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
369
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, imports: [i3$1.CalendarModule], exports: [DbxCalendarModule] });
370
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, imports: [CalendarModule.forRoot({ provide: DateAdapter, useFactory: adapterFactory }), DbxCalendarModule] });
375
371
  }
376
372
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DbxCalendarRootModule, decorators: [{
377
373
  type: NgModule,