@dereekb/dbx-web 0.0.1 → 1.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 (470) hide show
  1. package/README.md +4 -5
  2. package/_index.scss +27 -0
  3. package/esm2020/index.mjs +1 -2
  4. package/esm2020/lib/action/action.confirm.directive.mjs +5 -5
  5. package/esm2020/lib/action/action.module.mjs +35 -35
  6. package/esm2020/lib/action/action.snackbar.component.mjs +10 -11
  7. package/esm2020/lib/action/key.trigger.directive.mjs +5 -5
  8. package/esm2020/lib/action/transition/action.transition.module.mjs +29 -29
  9. package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +18 -18
  10. package/esm2020/lib/action/transition/transition.safety.directive.mjs +20 -38
  11. package/esm2020/lib/button/button.component.mjs +19 -19
  12. package/esm2020/lib/button/button.module.mjs +21 -27
  13. package/esm2020/lib/button/button.spacer.component.mjs +6 -7
  14. package/esm2020/lib/dbx-web.module.mjs +28 -30
  15. package/esm2020/lib/error/error.action.directive.mjs +7 -7
  16. package/esm2020/lib/error/error.component.mjs +5 -5
  17. package/esm2020/lib/error/error.loading.directive.mjs +7 -7
  18. package/esm2020/lib/error/error.module.mjs +19 -19
  19. package/esm2020/lib/index.mjs +3 -2
  20. package/esm2020/lib/interaction/dialog/abstract.dialog.directive.mjs +18 -9
  21. package/esm2020/lib/interaction/dialog/dialog.content.component.mjs +25 -0
  22. package/esm2020/lib/interaction/dialog/dialog.module.mjs +33 -0
  23. package/esm2020/lib/interaction/dialog/index.mjs +3 -1
  24. package/esm2020/lib/interaction/filter/filter.module.mjs +62 -0
  25. package/esm2020/lib/interaction/filter/filter.popover.button.component.mjs +32 -0
  26. package/esm2020/lib/interaction/filter/filter.popover.button.directive.mjs +38 -0
  27. package/esm2020/lib/interaction/filter/filter.popover.component.mjs +90 -0
  28. package/esm2020/lib/interaction/filter/filter.wrapper.component.mjs +33 -0
  29. package/esm2020/lib/interaction/filter/index.mjs +6 -0
  30. package/esm2020/lib/interaction/index.mjs +3 -1
  31. package/esm2020/lib/interaction/interaction.module.mjs +33 -0
  32. package/esm2020/lib/interaction/popover/abstract.popover.directive.mjs +6 -6
  33. package/esm2020/lib/interaction/popover/index.mjs +3 -2
  34. package/esm2020/lib/interaction/popover/popover.action.button.directive.mjs +10 -10
  35. package/esm2020/lib/interaction/popover/popover.action.directive.mjs +5 -5
  36. package/esm2020/lib/interaction/popover/popover.component.mjs +24 -35
  37. package/esm2020/lib/interaction/popover/popover.content.component.mjs +13 -21
  38. package/esm2020/lib/interaction/popover/popover.controls.directive.mjs +28 -0
  39. package/esm2020/lib/interaction/popover/popover.coordinator.component.mjs +8 -8
  40. package/esm2020/lib/interaction/popover/popover.coordinator.service.mjs +5 -5
  41. package/esm2020/lib/interaction/popover/popover.header.component.mjs +10 -11
  42. package/esm2020/lib/interaction/popover/popover.mjs +2 -2
  43. package/esm2020/lib/interaction/popover/popover.module.mjs +71 -63
  44. package/esm2020/lib/interaction/popover/popover.scroll.content.component.mjs +12 -18
  45. package/esm2020/lib/interaction/popover/popover.service.mjs +7 -7
  46. package/esm2020/lib/interaction/popup/abstract.popup.directive.mjs +4 -4
  47. package/esm2020/lib/interaction/popup/index.mjs +2 -1
  48. package/esm2020/lib/interaction/popup/popup.component.mjs +27 -42
  49. package/esm2020/lib/interaction/popup/popup.content.component.mjs +13 -15
  50. package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +13 -15
  51. package/esm2020/lib/interaction/popup/popup.controls.component.mjs +9 -11
  52. package/esm2020/lib/interaction/popup/popup.coordinator.component.mjs +9 -10
  53. package/esm2020/lib/interaction/popup/popup.coordinator.service.mjs +5 -5
  54. package/esm2020/lib/interaction/popup/popup.mjs +8 -8
  55. package/esm2020/lib/interaction/popup/popup.module.mjs +54 -46
  56. package/esm2020/lib/interaction/popup/popup.position.strategy.mjs +8 -12
  57. package/esm2020/lib/interaction/popup/popup.service.mjs +9 -8
  58. package/esm2020/lib/interaction/prompt/prompt.box.component.mjs +10 -22
  59. package/esm2020/lib/interaction/prompt/prompt.button.confirm.directive.mjs +9 -9
  60. package/esm2020/lib/interaction/prompt/prompt.component.mjs +24 -9
  61. package/esm2020/lib/interaction/prompt/prompt.confirm.component.mjs +11 -11
  62. package/esm2020/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +40 -15
  63. package/esm2020/lib/interaction/prompt/prompt.confirm.directive.mjs +11 -21
  64. package/esm2020/lib/interaction/prompt/prompt.confirm.mjs +6 -5
  65. package/esm2020/lib/interaction/prompt/prompt.module.mjs +61 -52
  66. package/esm2020/lib/interaction/prompt/prompt.page.component.mjs +20 -22
  67. package/esm2020/lib/keypress/keydown.listener.directive.mjs +5 -5
  68. package/esm2020/lib/keypress/keypress.module.mjs +9 -9
  69. package/esm2020/lib/layout/bar/bar.directive.mjs +24 -0
  70. package/esm2020/lib/layout/bar/bar.header.component.mjs +39 -0
  71. package/esm2020/lib/layout/bar/bar.layout.module.mjs +47 -0
  72. package/esm2020/lib/layout/bar/bar.mjs +2 -0
  73. package/esm2020/lib/layout/bar/index.mjs +5 -0
  74. package/esm2020/lib/layout/bar/pagebar.component.mjs +15 -0
  75. package/esm2020/lib/layout/block/block.layout.module.mjs +14 -14
  76. package/esm2020/lib/layout/block/two.block.component.mjs +5 -5
  77. package/esm2020/lib/layout/card/card.box.component.mjs +5 -5
  78. package/esm2020/lib/layout/card/card.box.container.component.mjs +5 -5
  79. package/esm2020/lib/layout/card/card.box.layout.module.mjs +15 -15
  80. package/esm2020/lib/layout/column/column.layout.module.mjs +12 -12
  81. package/esm2020/lib/layout/column/one/one.column.component.mjs +6 -6
  82. package/esm2020/lib/layout/column/one/one.column.module.mjs +13 -13
  83. package/esm2020/lib/layout/column/two/two.column.back.directive.mjs +6 -6
  84. package/esm2020/lib/layout/column/two/two.column.component.mjs +5 -5
  85. package/esm2020/lib/layout/column/two/two.column.full.left.directive.mjs +6 -6
  86. package/esm2020/lib/layout/column/two/two.column.head.component.mjs +5 -5
  87. package/esm2020/lib/layout/column/two/two.column.module.mjs +42 -42
  88. package/esm2020/lib/layout/column/two/two.column.right.component.mjs +6 -6
  89. package/esm2020/lib/layout/column/two/two.column.sref.directive.mjs +6 -6
  90. package/esm2020/lib/layout/compact/compact.directive.mjs +5 -5
  91. package/esm2020/lib/layout/compact/compact.layout.module.mjs +9 -9
  92. package/esm2020/lib/layout/content/content.border.directive.mjs +19 -0
  93. package/esm2020/lib/layout/content/content.box.directive.mjs +25 -0
  94. package/esm2020/lib/layout/content/content.container.directive.mjs +28 -0
  95. package/esm2020/lib/layout/content/content.directive.mjs +19 -0
  96. package/esm2020/lib/layout/content/content.elevate.directive.mjs +19 -0
  97. package/esm2020/lib/layout/content/content.layout.module.mjs +34 -24
  98. package/esm2020/lib/layout/content/content.page.directive.mjs +19 -0
  99. package/esm2020/lib/layout/content/index.mjs +7 -5
  100. package/esm2020/lib/layout/flag/flag.component.mjs +5 -5
  101. package/esm2020/lib/layout/flag/flag.layout.module.mjs +15 -15
  102. package/esm2020/lib/layout/flag/flag.prompt.component.mjs +6 -6
  103. package/esm2020/lib/layout/flex/flex.group.directive.mjs +53 -0
  104. package/esm2020/lib/layout/flex/flex.layout.module.mjs +31 -0
  105. package/esm2020/lib/layout/flex/flex.mjs +2 -0
  106. package/esm2020/lib/layout/flex/flex.size.directive.mjs +25 -0
  107. package/esm2020/lib/layout/flex/index.mjs +5 -0
  108. package/esm2020/lib/layout/index.mjs +5 -2
  109. package/esm2020/lib/layout/item/item.icon.component.mjs +5 -5
  110. package/esm2020/lib/layout/item/item.layout.module.mjs +10 -10
  111. package/esm2020/lib/layout/layout.module.mjs +60 -48
  112. package/esm2020/lib/layout/list/index.mjs +12 -2
  113. package/esm2020/lib/layout/list/list.component.mjs +232 -0
  114. package/esm2020/lib/layout/list/list.content.empty.component.mjs +26 -0
  115. package/esm2020/lib/layout/list/list.directive.mjs +78 -0
  116. package/esm2020/lib/layout/list/list.layout.module.mjs +56 -11
  117. package/esm2020/lib/layout/list/list.view.directive.mjs +50 -0
  118. package/esm2020/lib/layout/list/list.view.mjs +13 -0
  119. package/esm2020/lib/layout/list/list.view.selection.directive.mjs +32 -0
  120. package/esm2020/lib/layout/list/list.view.value.component.mjs +61 -0
  121. package/esm2020/lib/layout/list/list.view.value.directive.mjs +35 -0
  122. package/esm2020/lib/layout/list/list.view.value.item.directive.mjs +20 -0
  123. package/esm2020/lib/layout/list/list.view.value.mjs +30 -0
  124. package/esm2020/lib/layout/list/list.view.value.selection.component.mjs +88 -0
  125. package/esm2020/lib/layout/section/index.mjs +3 -4
  126. package/esm2020/lib/layout/section/section.component.mjs +21 -32
  127. package/esm2020/lib/layout/section/section.header.component.mjs +79 -0
  128. package/esm2020/lib/layout/section/section.intro.component.mjs +7 -8
  129. package/esm2020/lib/layout/section/section.layout.module.mjs +34 -44
  130. package/esm2020/lib/layout/section/section.mjs +2 -0
  131. package/esm2020/lib/layout/section/section.page.component.mjs +17 -30
  132. package/esm2020/lib/layout/section/subsection.component.mjs +16 -14
  133. package/esm2020/lib/layout/step/step.component.mjs +5 -5
  134. package/esm2020/lib/layout/step/step.layout.module.mjs +10 -10
  135. package/esm2020/lib/layout/style/index.mjs +7 -0
  136. package/esm2020/lib/layout/style/spacer.directive.mjs +16 -0
  137. package/esm2020/lib/layout/style/style.body.directive.mjs +35 -0
  138. package/esm2020/lib/layout/style/style.directive.mjs +32 -0
  139. package/esm2020/lib/layout/style/style.layout.module.mjs +41 -0
  140. package/esm2020/lib/layout/style/style.service.mjs +76 -0
  141. package/esm2020/lib/layout/style/style.set.directive.mjs +69 -0
  142. package/esm2020/lib/layout/text/hint.component.mjs +17 -0
  143. package/esm2020/lib/layout/text/index.mjs +11 -0
  144. package/esm2020/lib/layout/text/label.component.mjs +17 -0
  145. package/esm2020/lib/layout/text/linkify.component.mjs +47 -0
  146. package/esm2020/lib/layout/text/note.component.mjs +17 -0
  147. package/esm2020/lib/layout/text/notice.component.mjs +17 -0
  148. package/esm2020/lib/layout/text/ok.component.mjs +17 -0
  149. package/esm2020/lib/layout/text/success.component.mjs +17 -0
  150. package/esm2020/lib/layout/text/text.chips.component.mjs +31 -0
  151. package/esm2020/lib/layout/text/text.module.mjs +78 -0
  152. package/esm2020/lib/layout/text/warn.component.mjs +17 -0
  153. package/esm2020/lib/loading/basic-loading.component.mjs +6 -6
  154. package/esm2020/lib/loading/loading-progress.component.mjs +5 -5
  155. package/esm2020/lib/loading/loading.component.mjs +6 -6
  156. package/esm2020/lib/loading/loading.module.mjs +27 -27
  157. package/esm2020/lib/router/index.mjs +2 -2
  158. package/esm2020/lib/router/layout/anchor/anchor.component.mjs +50 -0
  159. package/esm2020/lib/router/layout/anchor/anchor.icon.component.mjs +30 -0
  160. package/esm2020/lib/router/layout/anchor/anchor.link.component.mjs +49 -0
  161. package/esm2020/lib/router/layout/anchor/anchor.module.mjs +48 -0
  162. package/esm2020/lib/router/layout/anchor/anchor.segue.directive.mjs +29 -0
  163. package/esm2020/lib/router/layout/anchor/index.mjs +6 -0
  164. package/esm2020/lib/router/layout/anchorlist/anchorlist.component.mjs +34 -0
  165. package/esm2020/lib/router/layout/anchorlist/anchorlist.module.mjs +50 -0
  166. package/esm2020/lib/router/layout/anchorlist/index.mjs +3 -0
  167. package/esm2020/lib/router/layout/index.mjs +6 -0
  168. package/esm2020/lib/router/layout/layout.module.mjs +29 -0
  169. package/esm2020/lib/router/layout/navbar/index.mjs +3 -0
  170. package/esm2020/lib/router/layout/navbar/navbar.component.mjs +75 -0
  171. package/esm2020/lib/router/layout/navbar/navbar.module.mjs +46 -0
  172. package/esm2020/lib/router/layout/sidenav/index.mjs +9 -0
  173. package/esm2020/lib/router/layout/sidenav/sidenav.button.component.mjs +39 -0
  174. package/esm2020/lib/router/layout/sidenav/sidenav.component.mjs +133 -0
  175. package/esm2020/lib/router/layout/sidenav/sidenav.module.mjs +89 -0
  176. package/esm2020/lib/router/layout/sidenav/sidenav.page.component.mjs +59 -0
  177. package/esm2020/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +39 -0
  178. package/esm2020/lib/router/provider/ngrouter/anchor.component.mjs +7 -7
  179. package/esm2020/lib/router/provider/ngrouter/angular.router.module.mjs +17 -17
  180. package/esm2020/lib/router/provider/router.provider.config.mjs +2 -2
  181. package/esm2020/lib/router/provider/uirouter/anchor.component.mjs +7 -7
  182. package/esm2020/lib/router/provider/uirouter/uirouter.router.module.mjs +17 -17
  183. package/esm2020/lib/screen/index.mjs +4 -0
  184. package/esm2020/lib/screen/screen.mjs +22 -0
  185. package/esm2020/lib/screen/screen.module.mjs +24 -0
  186. package/esm2020/lib/screen/screen.service.mjs +94 -0
  187. package/fesm2015/dereekb-dbx-web.mjs +5513 -3687
  188. package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
  189. package/fesm2020/dereekb-dbx-web.mjs +5491 -3666
  190. package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
  191. package/index.d.ts +0 -1
  192. package/lib/action/_action.scss +40 -0
  193. package/lib/action/action.confirm.directive.d.ts +5 -5
  194. package/lib/action/action.module.d.ts +4 -4
  195. package/lib/action/action.snackbar.component.d.ts +7 -7
  196. package/lib/action/key.trigger.directive.d.ts +3 -3
  197. package/lib/action/transition/action.transition.module.d.ts +5 -5
  198. package/lib/action/transition/transition.safety.dialog.component.d.ts +7 -7
  199. package/lib/action/transition/transition.safety.directive.d.ts +14 -23
  200. package/lib/button/_button.scss +32 -0
  201. package/lib/button/button.component.d.ts +6 -6
  202. package/lib/button/button.module.d.ts +6 -8
  203. package/lib/button/button.spacer.component.d.ts +3 -3
  204. package/lib/dbx-web.module.d.ts +15 -10
  205. package/lib/error/_error.scss +26 -0
  206. package/lib/error/error.action.directive.d.ts +6 -6
  207. package/lib/error/error.component.d.ts +3 -3
  208. package/lib/error/error.loading.directive.d.ts +6 -6
  209. package/lib/error/error.module.d.ts +4 -4
  210. package/lib/index.d.ts +2 -1
  211. package/lib/interaction/_interaction.scss +33 -0
  212. package/lib/interaction/dialog/_dialog.scss +26 -0
  213. package/lib/interaction/dialog/abstract.dialog.directive.d.ts +7 -5
  214. package/lib/interaction/dialog/dialog.content.component.d.ts +10 -0
  215. package/lib/interaction/dialog/dialog.module.d.ts +12 -0
  216. package/lib/interaction/dialog/index.d.ts +2 -0
  217. package/lib/interaction/filter/_filter.scss +25 -0
  218. package/lib/interaction/filter/filter.module.d.ts +15 -0
  219. package/lib/interaction/filter/filter.popover.button.component.d.ts +9 -0
  220. package/lib/interaction/filter/filter.popover.button.directive.d.ts +17 -0
  221. package/lib/interaction/filter/filter.popover.component.d.ts +53 -0
  222. package/lib/interaction/filter/filter.wrapper.component.d.ts +14 -0
  223. package/lib/interaction/filter/index.d.ts +5 -0
  224. package/lib/interaction/index.d.ts +2 -0
  225. package/lib/interaction/interaction.module.d.ts +11 -0
  226. package/lib/interaction/popover/_popover.scss +110 -0
  227. package/lib/interaction/popover/abstract.popover.directive.d.ts +6 -6
  228. package/lib/interaction/popover/index.d.ts +2 -1
  229. package/lib/interaction/popover/popover.action.button.directive.d.ts +8 -8
  230. package/lib/interaction/popover/popover.action.directive.d.ts +8 -8
  231. package/lib/interaction/popover/popover.component.d.ts +15 -17
  232. package/lib/interaction/popover/popover.content.component.d.ts +3 -4
  233. package/lib/interaction/popover/popover.controls.directive.d.ts +10 -0
  234. package/lib/interaction/popover/popover.coordinator.component.d.ts +6 -6
  235. package/lib/interaction/popover/popover.coordinator.service.d.ts +8 -8
  236. package/lib/interaction/popover/popover.d.ts +3 -3
  237. package/lib/interaction/popover/popover.header.component.d.ts +5 -5
  238. package/lib/interaction/popover/popover.module.d.ts +11 -9
  239. package/lib/interaction/popover/popover.scroll.content.component.d.ts +6 -6
  240. package/lib/interaction/popover/popover.service.d.ts +6 -6
  241. package/lib/interaction/popup/_popup.scss +82 -0
  242. package/lib/interaction/popup/abstract.popup.directive.d.ts +4 -4
  243. package/lib/interaction/popup/index.d.ts +1 -0
  244. package/lib/interaction/popup/popup.component.d.ts +15 -18
  245. package/lib/interaction/popup/popup.content.component.d.ts +5 -5
  246. package/lib/interaction/popup/popup.controls.buttons.component.d.ts +5 -5
  247. package/lib/interaction/popup/popup.controls.component.d.ts +3 -3
  248. package/lib/interaction/popup/popup.coordinator.component.d.ts +6 -6
  249. package/lib/interaction/popup/popup.coordinator.service.d.ts +8 -8
  250. package/lib/interaction/popup/popup.d.ts +5 -5
  251. package/lib/interaction/popup/popup.module.d.ts +9 -7
  252. package/lib/interaction/popup/popup.position.strategy.d.ts +1 -5
  253. package/lib/interaction/popup/popup.service.d.ts +6 -6
  254. package/lib/interaction/prompt/_prompt.scss +46 -0
  255. package/lib/interaction/prompt/prompt.box.component.d.ts +3 -5
  256. package/lib/interaction/prompt/prompt.button.confirm.directive.d.ts +8 -8
  257. package/lib/interaction/prompt/prompt.component.d.ts +3 -4
  258. package/lib/interaction/prompt/prompt.confirm.component.d.ts +8 -8
  259. package/lib/interaction/prompt/prompt.confirm.d.ts +2 -2
  260. package/lib/interaction/prompt/prompt.confirm.dialog.component.d.ts +17 -6
  261. package/lib/interaction/prompt/prompt.confirm.directive.d.ts +11 -14
  262. package/lib/interaction/prompt/prompt.module.d.ts +9 -7
  263. package/lib/interaction/prompt/prompt.page.component.d.ts +3 -3
  264. package/lib/interaction/style/_style.scss +47 -0
  265. package/lib/keypress/keydown.listener.directive.d.ts +3 -3
  266. package/lib/keypress/keypress.module.d.ts +4 -4
  267. package/lib/layout/_layout.scss +61 -0
  268. package/lib/layout/bar/_bar.scss +81 -0
  269. package/lib/layout/bar/bar.d.ts +1 -0
  270. package/lib/layout/bar/bar.directive.d.ts +11 -0
  271. package/lib/layout/bar/bar.header.component.d.ts +13 -0
  272. package/lib/layout/bar/bar.layout.module.d.ts +15 -0
  273. package/lib/layout/bar/index.d.ts +4 -0
  274. package/lib/layout/bar/pagebar.component.d.ts +8 -0
  275. package/lib/layout/block/_block.scss +39 -0
  276. package/lib/layout/block/block.layout.module.d.ts +5 -5
  277. package/lib/layout/block/two.block.component.d.ts +3 -3
  278. package/lib/layout/card/_card.scss +26 -0
  279. package/lib/layout/card/card.box.component.d.ts +3 -3
  280. package/lib/layout/card/card.box.container.component.d.ts +3 -3
  281. package/lib/layout/card/card.box.layout.module.d.ts +4 -4
  282. package/lib/layout/column/_column.scss +26 -0
  283. package/lib/layout/column/column.layout.module.d.ts +4 -4
  284. package/lib/layout/column/one/one.column.component.d.ts +3 -3
  285. package/lib/layout/column/one/one.column.module.d.ts +4 -4
  286. package/lib/layout/column/two/two.column.back.directive.d.ts +4 -4
  287. package/lib/layout/column/two/two.column.component.d.ts +3 -3
  288. package/lib/layout/column/two/two.column.full.left.directive.d.ts +4 -4
  289. package/lib/layout/column/two/two.column.head.component.d.ts +3 -3
  290. package/lib/layout/column/two/two.column.module.d.ts +5 -5
  291. package/lib/layout/column/two/two.column.right.component.d.ts +3 -3
  292. package/lib/layout/column/two/two.column.sref.directive.d.ts +4 -4
  293. package/lib/layout/column/two.scss +114 -0
  294. package/lib/layout/compact/compact.directive.d.ts +3 -3
  295. package/lib/layout/compact/compact.layout.module.d.ts +4 -4
  296. package/lib/layout/content/_content.scss +136 -0
  297. package/lib/layout/content/content.border.directive.d.ts +8 -0
  298. package/lib/layout/content/content.box.directive.d.ts +9 -0
  299. package/lib/layout/content/content.container.directive.d.ts +12 -0
  300. package/lib/layout/content/content.directive.d.ts +8 -0
  301. package/lib/layout/content/content.elevate.directive.d.ts +8 -0
  302. package/lib/layout/content/content.layout.module.d.ts +11 -9
  303. package/lib/layout/content/content.page.directive.d.ts +8 -0
  304. package/lib/layout/content/index.d.ts +6 -4
  305. package/lib/layout/flag/_flag.scss +26 -0
  306. package/lib/layout/flag/flag.component.d.ts +3 -3
  307. package/lib/layout/flag/flag.layout.module.d.ts +4 -4
  308. package/lib/layout/flag/flag.prompt.component.d.ts +3 -3
  309. package/lib/layout/flex/_flex.scss +76 -0
  310. package/lib/layout/flex/flex.d.ts +4 -0
  311. package/lib/layout/flex/flex.group.directive.d.ts +24 -0
  312. package/lib/layout/flex/flex.layout.module.d.ts +9 -0
  313. package/lib/layout/flex/flex.size.directive.d.ts +10 -0
  314. package/lib/layout/flex/index.d.ts +4 -0
  315. package/lib/layout/index.d.ts +4 -1
  316. package/lib/layout/item/_item.scss +26 -0
  317. package/lib/layout/item/item.icon.component.d.ts +3 -3
  318. package/lib/layout/item/item.layout.module.d.ts +4 -4
  319. package/lib/layout/layout.module.d.ts +17 -14
  320. package/lib/layout/list/_list.scss +72 -0
  321. package/lib/layout/list/index.d.ts +11 -1
  322. package/lib/layout/list/list.component.d.ts +115 -0
  323. package/lib/layout/list/list.content.empty.component.d.ts +8 -0
  324. package/lib/layout/list/list.directive.d.ts +35 -0
  325. package/lib/layout/list/list.layout.module.d.ts +15 -6
  326. package/lib/layout/list/list.view.d.ts +45 -0
  327. package/lib/layout/list/list.view.directive.d.ts +26 -0
  328. package/lib/layout/list/list.view.selection.directive.d.ts +15 -0
  329. package/lib/layout/list/list.view.value.component.d.ts +15 -0
  330. package/lib/layout/list/list.view.value.d.ts +21 -0
  331. package/lib/layout/list/list.view.value.directive.d.ts +21 -0
  332. package/lib/layout/list/list.view.value.item.directive.d.ts +9 -0
  333. package/lib/layout/list/list.view.value.selection.component.d.ts +32 -0
  334. package/lib/layout/section/_section.scss +116 -0
  335. package/lib/layout/section/index.d.ts +2 -3
  336. package/lib/layout/section/section.component.d.ts +5 -7
  337. package/lib/layout/section/section.d.ts +1 -0
  338. package/lib/layout/section/section.header.component.d.ts +14 -0
  339. package/lib/layout/section/section.intro.component.d.ts +4 -4
  340. package/lib/layout/section/section.layout.module.d.ts +14 -16
  341. package/lib/layout/section/section.page.component.d.ts +4 -5
  342. package/lib/layout/section/subsection.component.d.ts +5 -5
  343. package/lib/layout/step/_step.scss +59 -0
  344. package/lib/layout/step/step.component.d.ts +3 -3
  345. package/lib/layout/step/step.layout.module.d.ts +4 -4
  346. package/lib/layout/style/_style.scss +101 -0
  347. package/lib/layout/style/index.d.ts +6 -0
  348. package/lib/layout/style/spacer.directive.d.ts +5 -0
  349. package/lib/layout/style/style.body.directive.d.ts +16 -0
  350. package/lib/layout/style/style.directive.d.ts +15 -0
  351. package/lib/layout/style/style.layout.module.d.ts +11 -0
  352. package/lib/layout/style/style.service.d.ts +37 -0
  353. package/lib/layout/style/style.set.directive.d.ts +31 -0
  354. package/lib/layout/text/_text.scss +97 -0
  355. package/lib/layout/text/hint.component.d.ts +5 -0
  356. package/lib/{text → layout/text}/index.d.ts +0 -2
  357. package/lib/layout/text/label.component.d.ts +5 -0
  358. package/lib/{text → layout/text}/linkify.component.d.ts +3 -3
  359. package/lib/layout/text/note.component.d.ts +5 -0
  360. package/lib/layout/text/notice.component.d.ts +5 -0
  361. package/lib/layout/text/ok.component.d.ts +5 -0
  362. package/lib/layout/text/success.component.d.ts +5 -0
  363. package/lib/layout/text/text.chips.component.d.ts +13 -0
  364. package/lib/layout/text/text.module.d.ts +19 -0
  365. package/lib/layout/text/warn.component.d.ts +5 -0
  366. package/lib/loading/basic-loading.component.d.ts +4 -4
  367. package/lib/loading/loading-progress.component.d.ts +3 -3
  368. package/lib/loading/loading.component.d.ts +5 -5
  369. package/lib/loading/loading.module.d.ts +5 -5
  370. package/lib/router/_router.scss +25 -0
  371. package/lib/router/index.d.ts +1 -1
  372. package/lib/router/layout/anchor/_anchor.scss +37 -0
  373. package/lib/router/{anchor → layout/anchor}/anchor.component.d.ts +7 -8
  374. package/lib/router/layout/anchor/anchor.icon.component.d.ts +11 -0
  375. package/lib/router/layout/anchor/anchor.link.component.d.ts +13 -0
  376. package/lib/router/layout/anchor/anchor.module.d.ts +13 -0
  377. package/lib/router/layout/anchor/anchor.segue.directive.d.ts +19 -0
  378. package/lib/router/{anchor → layout/anchor}/index.d.ts +1 -0
  379. package/lib/router/layout/anchorlist/_anchorlist.scss +95 -0
  380. package/lib/router/layout/anchorlist/anchorlist.component.d.ts +15 -0
  381. package/lib/router/layout/anchorlist/anchorlist.module.d.ts +14 -0
  382. package/lib/router/layout/anchorlist/index.d.ts +2 -0
  383. package/lib/router/layout/index.d.ts +5 -0
  384. package/lib/router/layout/layout.module.d.ts +10 -0
  385. package/lib/router/layout/navbar/_navbar.scss +27 -0
  386. package/lib/router/layout/navbar/index.d.ts +2 -0
  387. package/lib/router/layout/navbar/navbar.component.d.ts +37 -0
  388. package/lib/router/layout/navbar/navbar.module.d.ts +13 -0
  389. package/lib/router/layout/sidenav/_sidenav.scss +189 -0
  390. package/lib/router/layout/sidenav/index.d.ts +5 -0
  391. package/lib/router/layout/sidenav/sidenav.button.component.d.ts +14 -0
  392. package/lib/router/layout/sidenav/sidenav.component.d.ts +42 -0
  393. package/lib/router/layout/sidenav/sidenav.module.d.ts +23 -0
  394. package/lib/router/layout/sidenav/sidenav.page.component.d.ts +20 -0
  395. package/lib/router/layout/sidenav/sidenav.pagebar.component.d.ts +9 -0
  396. package/lib/router/provider/ngrouter/anchor.component.d.ts +4 -4
  397. package/lib/router/provider/ngrouter/angular.router.module.d.ts +5 -5
  398. package/lib/router/provider/router.provider.config.d.ts +3 -3
  399. package/lib/router/provider/uirouter/anchor.component.d.ts +4 -4
  400. package/lib/router/provider/uirouter/uirouter.router.module.d.ts +5 -5
  401. package/lib/screen/index.d.ts +3 -0
  402. package/lib/screen/screen.d.ts +36 -0
  403. package/lib/screen/screen.module.d.ts +9 -0
  404. package/lib/screen/screen.service.d.ts +60 -0
  405. package/lib/style/_all-core.scss +14 -0
  406. package/lib/style/_all-theme.scss +15 -0
  407. package/lib/style/_all-typography.scss +15 -0
  408. package/lib/style/_config.scss +122 -0
  409. package/lib/style/_core.scss +17 -0
  410. package/lib/style/_mixin.scss +99 -0
  411. package/lib/style/_root-variables.scss +35 -0
  412. package/lib/style/_theming.scss +19 -0
  413. package/lib/style/_variables.scss +45 -0
  414. package/package.json +35 -34
  415. package/esm2020/lib/interaction/popover/popover.controls.component.mjs +0 -35
  416. package/esm2020/lib/layout/content/content.bordered.component.mjs +0 -26
  417. package/esm2020/lib/layout/content/content.component.mjs +0 -32
  418. package/esm2020/lib/layout/content/content.container.component.mjs +0 -66
  419. package/esm2020/lib/layout/content/content.container.fullwidth.component.mjs +0 -26
  420. package/esm2020/lib/layout/dialog/dialog.content.component.mjs +0 -37
  421. package/esm2020/lib/layout/dialog/dialog.layout.module.mjs +0 -29
  422. package/esm2020/lib/layout/dialog/index.mjs +0 -3
  423. package/esm2020/lib/layout/list/list.empty.component.mjs +0 -26
  424. package/esm2020/lib/layout/section/section.box.anchor.component.mjs +0 -39
  425. package/esm2020/lib/layout/section/section.box.component.mjs +0 -32
  426. package/esm2020/lib/layout/section/section.elevated.component.mjs +0 -26
  427. package/esm2020/lib/router/anchor/anchor.component.mjs +0 -50
  428. package/esm2020/lib/router/anchor/anchor.icon.component.mjs +0 -30
  429. package/esm2020/lib/router/anchor/anchor.module.mjs +0 -43
  430. package/esm2020/lib/router/anchor/anchor.segue.directive.mjs +0 -32
  431. package/esm2020/lib/router/anchor/index.mjs +0 -5
  432. package/esm2020/lib/text/hint.component.mjs +0 -15
  433. package/esm2020/lib/text/index.mjs +0 -13
  434. package/esm2020/lib/text/label.bar.component.mjs +0 -32
  435. package/esm2020/lib/text/label.component.mjs +0 -18
  436. package/esm2020/lib/text/link.component.mjs +0 -36
  437. package/esm2020/lib/text/linkify.component.mjs +0 -48
  438. package/esm2020/lib/text/note.component.mjs +0 -15
  439. package/esm2020/lib/text/notice.component.mjs +0 -15
  440. package/esm2020/lib/text/ok.component.mjs +0 -15
  441. package/esm2020/lib/text/success.component.mjs +0 -15
  442. package/esm2020/lib/text/text.chips.component.mjs +0 -32
  443. package/esm2020/lib/text/text.module.mjs +0 -92
  444. package/esm2020/lib/text/warn.component.mjs +0 -15
  445. package/lib/interaction/popover/popover.controls.component.d.ts +0 -10
  446. package/lib/layout/content/content.bordered.component.d.ts +0 -8
  447. package/lib/layout/content/content.component.d.ts +0 -9
  448. package/lib/layout/content/content.container.component.d.ts +0 -34
  449. package/lib/layout/content/content.container.fullwidth.component.d.ts +0 -8
  450. package/lib/layout/dialog/dialog.content.component.d.ts +0 -13
  451. package/lib/layout/dialog/dialog.layout.module.d.ts +0 -11
  452. package/lib/layout/dialog/index.d.ts +0 -2
  453. package/lib/layout/list/list.empty.component.d.ts +0 -8
  454. package/lib/layout/section/section.box.anchor.component.d.ts +0 -11
  455. package/lib/layout/section/section.box.component.d.ts +0 -9
  456. package/lib/layout/section/section.elevated.component.d.ts +0 -8
  457. package/lib/router/anchor/anchor.icon.component.d.ts +0 -11
  458. package/lib/router/anchor/anchor.module.d.ts +0 -12
  459. package/lib/router/anchor/anchor.segue.directive.d.ts +0 -20
  460. package/lib/text/hint.component.d.ts +0 -5
  461. package/lib/text/label.bar.component.d.ts +0 -10
  462. package/lib/text/label.component.d.ts +0 -8
  463. package/lib/text/link.component.d.ts +0 -9
  464. package/lib/text/note.component.d.ts +0 -5
  465. package/lib/text/notice.component.d.ts +0 -5
  466. package/lib/text/ok.component.d.ts +0 -5
  467. package/lib/text/success.component.d.ts +0 -5
  468. package/lib/text/text.chips.component.d.ts +0 -13
  469. package/lib/text/text.module.d.ts +0 -22
  470. package/lib/text/warn.component.d.ts +0 -5
@@ -1,12 +1,15 @@
1
+ export * from './bar';
1
2
  export * from './block';
2
3
  export * from './card';
3
4
  export * from './column';
4
5
  export * from './compact';
5
6
  export * from './content';
6
- export * from './dialog';
7
7
  export * from './flag';
8
+ export * from './flex';
8
9
  export * from './item';
9
10
  export * from './list';
10
11
  export * from './section';
11
12
  export * from './step';
13
+ export * from './style';
14
+ export * from './text';
12
15
  export * from './layout.module';
@@ -0,0 +1,26 @@
1
+ @use '../../style/theming';
2
+
3
+ // MARK: Variables
4
+
5
+
6
+ // MARK: Mixin
7
+ @mixin core() {}
8
+
9
+ @mixin color($theme-config) {}
10
+
11
+ @mixin typography($typography-config) {}
12
+
13
+ @mixin theme($theme-config) {
14
+ @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-item') {
15
+ $color: theming.get-color-config($theme-config);
16
+ $typography: theming.get-typography-config($theme-config);
17
+
18
+ @if $color !=null {
19
+ @include color($theme-config);
20
+ }
21
+
22
+ @if $typography !=null {
23
+ @include typography($typography);
24
+ }
25
+ }
26
+ }
@@ -2,9 +2,9 @@ import * as i0 from "@angular/core";
2
2
  /**
3
3
  * Section piece that puts an icon on the left, and arbitrary content on the right with a header.
4
4
  */
5
- export declare class DbNgxIconItemComponent {
5
+ export declare class DbxIconItemComponent {
6
6
  icon?: string;
7
7
  header?: string;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxIconItemComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxIconItemComponent, "dbx-icon-item", never, { "icon": "icon"; "header": "header"; }, {}, never, ["*"]>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxIconItemComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxIconItemComponent, "dbx-icon-item", never, { "icon": "icon"; "header": "header"; }, {}, never, ["*"]>;
10
10
  }
@@ -2,8 +2,8 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./item.icon.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/material/icon";
5
- export declare class DbNgxItemLayoutModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxItemLayoutModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxItemLayoutModule, [typeof i1.DbNgxIconItemComponent], [typeof i2.CommonModule, typeof i3.MatIconModule], [typeof i1.DbNgxIconItemComponent]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxItemLayoutModule>;
5
+ export declare class DbxItemLayoutModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxItemLayoutModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxItemLayoutModule, [typeof i1.DbxIconItemComponent], [typeof i2.CommonModule, typeof i3.MatIconModule], [typeof i1.DbxIconItemComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxItemLayoutModule>;
9
9
  }
@@ -1,17 +1,20 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./block/block.layout.module";
3
- import * as i2 from "./card/card.box.layout.module";
4
- import * as i3 from "./column/column.layout.module";
5
- import * as i4 from "./compact/compact.layout.module";
6
- import * as i5 from "./content/content.layout.module";
7
- import * as i6 from "./dialog/dialog.layout.module";
2
+ import * as i1 from "./bar/bar.layout.module";
3
+ import * as i2 from "./block/block.layout.module";
4
+ import * as i3 from "./card/card.box.layout.module";
5
+ import * as i4 from "./column/column.layout.module";
6
+ import * as i5 from "./compact/compact.layout.module";
7
+ import * as i6 from "./content/content.layout.module";
8
8
  import * as i7 from "./flag/flag.layout.module";
9
- import * as i8 from "./item/item.layout.module";
10
- import * as i9 from "./list/list.layout.module";
11
- import * as i10 from "./section/section.layout.module";
12
- import * as i11 from "./step/step.layout.module";
13
- export declare class DbNgxLayoutModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxLayoutModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxLayoutModule, never, never, [typeof i1.DbNgxBlockLayoutModule, typeof i2.DbNgxCardBoxLayoutModule, typeof i3.DbNgxColumnLayoutModule, typeof i4.DbNgxCompactLayoutModule, typeof i5.DbNgxContentLayoutModule, typeof i6.DbNgxDialogLayoutModule, typeof i7.DbNgxFlagLayoutModule, typeof i8.DbNgxItemLayoutModule, typeof i9.DbNgxListLayoutModule, typeof i10.DbNgxSectionLayoutModule, typeof i11.DbNgxStepLayoutModule]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxLayoutModule>;
9
+ import * as i8 from "./flex/flex.layout.module";
10
+ import * as i9 from "./item/item.layout.module";
11
+ import * as i10 from "./list/list.layout.module";
12
+ import * as i11 from "./section/section.layout.module";
13
+ import * as i12 from "./step/step.layout.module";
14
+ import * as i13 from "./style/style.layout.module";
15
+ import * as i14 from "./text/text.module";
16
+ export declare class DbxLayoutModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxLayoutModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxLayoutModule, never, never, [typeof i1.DbxBarLayoutModule, typeof i2.DbxBlockLayoutModule, typeof i3.DbxCardBoxLayoutModule, typeof i4.DbxColumnLayoutModule, typeof i5.DbxCompactLayoutModule, typeof i6.DbxContentLayoutModule, typeof i7.DbxFlagLayoutModule, typeof i8.DbxFlexLayoutModule, typeof i9.DbxItemLayoutModule, typeof i10.DbxListLayoutModule, typeof i11.DbxSectionLayoutModule, typeof i12.DbxStepLayoutModule, typeof i13.DbxStyleLayoutModule, typeof i14.DbxTextModule]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxLayoutModule>;
17
20
  }
@@ -0,0 +1,72 @@
1
+ @use '../../style/theming';
2
+
3
+ // MARK: Variables
4
+
5
+
6
+ // MARK: Mixin
7
+ @mixin core() {
8
+
9
+ .dbx-list {
10
+ overflow: hidden;
11
+ height: 100%;
12
+ }
13
+
14
+ .dbx-list-content {
15
+ max-height: 100%;
16
+ overflow: auto;
17
+ box-sizing: border-box;
18
+
19
+ &.dbx-list-padded {
20
+ padding-bottom: 8px;
21
+ }
22
+
23
+ .mat-list-base {
24
+ padding-top: 0;
25
+ }
26
+
27
+ &.dbx-list-content-hidden {
28
+ display: none;
29
+ }
30
+
31
+ }
32
+
33
+ .dbx-list-content-box {
34
+ padding: 4px;
35
+ }
36
+
37
+ .dbx-list-view {
38
+
39
+ .mat-list-base .dbx-list-view-item.mat-list-item {
40
+ height: unset;
41
+
42
+ &.mat-list-item-with-avatar {
43
+ min-height: 56px;
44
+
45
+ .mat-list-item-content {
46
+ min-height: 56px;
47
+ }
48
+ }
49
+
50
+ }
51
+ }
52
+
53
+ }
54
+
55
+ @mixin color($theme-config) {}
56
+
57
+ @mixin typography($typography-config) {}
58
+
59
+ @mixin theme($theme-config) {
60
+ @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-list') {
61
+ $color: theming.get-color-config($theme-config);
62
+ $typography: theming.get-typography-config($theme-config);
63
+
64
+ @if $color !=null {
65
+ @include color($theme-config);
66
+ }
67
+
68
+ @if $typography !=null {
69
+ @include typography($typography);
70
+ }
71
+ }
72
+ }
@@ -1,2 +1,12 @@
1
- export * from './list.empty.component';
1
+ export * from './list.content.empty.component';
2
+ export * from './list.component';
3
+ export * from './list.directive';
2
4
  export * from './list.layout.module';
5
+ export * from './list.view.directive';
6
+ export * from './list.view.selection.directive';
7
+ export * from './list.view.value.component';
8
+ export * from './list.view.value.directive';
9
+ export * from './list.view.value.item.directive';
10
+ export * from './list.view.value.selection.component';
11
+ export * from './list.view.value';
12
+ export * from './list.view';
@@ -0,0 +1,115 @@
1
+ import { Observable } from 'rxjs';
2
+ import { EventEmitter, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core';
3
+ import { DbxInjectedComponentConfig } from '@dereekb/dbx-core';
4
+ import { ListLoadingStateContextInstance, ListLoadingState } from '@dereekb/rxjs';
5
+ import { Maybe, Milliseconds } from '@dereekb/util';
6
+ import { DbxListView, ListSelectionState } from './list.view';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Direction the scroll was triggered moving.
10
+ */
11
+ export declare type DbxListScrollDirectionTrigger = 'up' | 'down';
12
+ /**
13
+ * Used to trigger the loading of additional items.
14
+ *
15
+ * If an observable is returned it is used to throttle the loading of more items until it returns.
16
+ */
17
+ export declare type DbxListLoadMoreHandler = () => Observable<void> | void;
18
+ /**
19
+ * DbxListComponent configuration.
20
+ */
21
+ export interface DbxListConfig<T = any, V extends DbxListView<T> = DbxListView<T>> extends DbxInjectedComponentConfig<V> {
22
+ /**
23
+ * Whether or not to hide the list content when it is an empty list.
24
+ */
25
+ hideOnEmpty?: boolean;
26
+ /**
27
+ * Whether or not this list should scroll upward from the bottom, like a message list.
28
+ */
29
+ invertedList?: boolean;
30
+ /**
31
+ * Distance to scroll.
32
+ */
33
+ scrollDistance?: number;
34
+ /**
35
+ * Number of ms to throttle scrolling events.
36
+ */
37
+ throttle?: Milliseconds;
38
+ /**
39
+ * (Optional) onClick handler
40
+ */
41
+ onClick?: (value: T) => void;
42
+ /**
43
+ * (Optional) onSelection handler
44
+ */
45
+ onSelectionChange?: (selection: ListSelectionState<T>) => void;
46
+ /**
47
+ * (Optional) handler function to load more items.
48
+ */
49
+ loadMore?: DbxListLoadMoreHandler;
50
+ }
51
+ /**
52
+ * Used to display a potentially infinitely scrollable list of content.
53
+ *
54
+ * This component is generally wrapped by another component that provides this one configuration.
55
+ */
56
+ export declare class DbxListComponent<T = any, V extends DbxListView<T> = DbxListView<T>, S extends ListLoadingState<T> = ListLoadingState<T>> implements OnDestroy {
57
+ readonly cdRef: ChangeDetectorRef;
58
+ readonly DEFAULT_SCROLL_DISTANCE = 1.5;
59
+ readonly DEFAULT_THROTTLE_SCROLL = 50;
60
+ /**
61
+ * Whether or not to add bottom padding to the list content.
62
+ */
63
+ padded: boolean;
64
+ contentScrolled: EventEmitter<number>;
65
+ private _content;
66
+ private _disabled;
67
+ private _loadMoreTrigger;
68
+ private _scrollTrigger;
69
+ private _config;
70
+ private _loadMoreSub;
71
+ private _onClickSub;
72
+ private _disabledSub;
73
+ private _onSelectionChangeSub;
74
+ readonly context: ListLoadingStateContextInstance<T, S>;
75
+ readonly isEmpty$: Observable<boolean>;
76
+ readonly disabled$: Observable<boolean>;
77
+ readonly hideOnEmpty$: Observable<boolean>;
78
+ readonly invertedList$: Observable<boolean>;
79
+ readonly throttleScroll$: Observable<number>;
80
+ readonly scrollDistance$: Observable<number>;
81
+ readonly scrollLoadMoreTrigger$: Observable<DbxListScrollDirectionTrigger>;
82
+ readonly loadMore$: Observable<void | DbxListScrollDirectionTrigger>;
83
+ readonly injectedComponentConfig$: Observable<Maybe<DbxInjectedComponentConfig<V>>>;
84
+ readonly hideContent$: Observable<boolean>;
85
+ constructor(cdRef: ChangeDetectorRef);
86
+ ngOnDestroy(): void;
87
+ get state$(): Observable<S>;
88
+ set state$(state$: Maybe<Observable<S>>);
89
+ set config(config: Maybe<DbxListConfig<T, V>>);
90
+ get disabled(): boolean;
91
+ set disabled(disabled: Maybe<boolean>);
92
+ getScrollPositionRelativeToBottom(): number;
93
+ jumpToBottom(): void;
94
+ jumpToPositionRelativeToBottom(pos: number): void;
95
+ onScrollDown(): void;
96
+ onScrollUp(): void;
97
+ loadMore(): void;
98
+ get nativeElement(): any;
99
+ get __content(): DbxListInternalContentDirective;
100
+ set __content(content: DbxListInternalContentDirective);
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxListComponent<any, any, any>, never>;
102
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxListComponent<any, any, any>, "dbx-list", never, { "padded": "padded"; "state$": "state$"; "config": "config"; "disabled": "disabled"; }, { "contentScrolled": "contentScrolled"; }, never, ["[top]", "[bottom]", "[empty]"]>;
103
+ }
104
+ /**
105
+ * Used internally by DbxListComponent
106
+ */
107
+ export declare class DbxListInternalContentDirective {
108
+ private readonly parent;
109
+ readonly elementRef: ElementRef;
110
+ hide: Maybe<Boolean>;
111
+ constructor(parent: DbxListComponent, elementRef: ElementRef);
112
+ onScrollEvent($event: any): void;
113
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxListInternalContentDirective, never>;
114
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxListInternalContentDirective, "[dbx-list-internal-content]", never, { "hide": "hide"; }, {}, never>;
115
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Component that is centered for use within an empty list.
4
+ */
5
+ export declare class DbxListEmptyContentComponent {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxListEmptyContentComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxListEmptyContentComponent, "dbx-list-empty-content", never, {}, {}, never, ["*"]>;
8
+ }
@@ -0,0 +1,35 @@
1
+ import { ListLoadingState, ObservableGetter } from '@dereekb/rxjs';
2
+ import { Observable } from 'rxjs';
3
+ import { EventEmitter, OnInit, OnDestroy } from "@angular/core";
4
+ import { DbxListConfig } from "./list.component";
5
+ import { DbxListView, ListSelectionState } from "./list.view";
6
+ import { Maybe } from '@dereekb/util';
7
+ import * as i0 from "@angular/core";
8
+ export declare const DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE = "\n<dbx-list [config]=\"config\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n</dbx-list>\n";
9
+ export declare const DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE = "\n<dbx-list [state$]=\"state$\" [config]=\"config$ | async\" [disabled]=\"disabled\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n</dbx-list>\n";
10
+ export interface DbxListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> extends Omit<DbxListConfig<T, V>, 'onClick' | 'loadMore'> {
11
+ }
12
+ export declare abstract class AbstractDbxListWrapperDirective<T, V extends DbxListView<T> = DbxListView<T>, C extends DbxListWrapperConfig<T, V> = DbxListWrapperConfig<T, V>, S extends ListLoadingState<T> = ListLoadingState<T>> implements OnInit, OnDestroy {
13
+ readonly initConfig: ObservableGetter<C>;
14
+ private readonly _init;
15
+ readonly config$: Observable<DbxListConfig<T, V>>;
16
+ disabled?: Maybe<boolean>;
17
+ state$?: Maybe<Observable<S>>;
18
+ clickItem: EventEmitter<T>;
19
+ loadMore: EventEmitter<void>;
20
+ constructor(initConfig: ObservableGetter<C>);
21
+ ngOnInit(): void;
22
+ ngOnDestroy(): void;
23
+ protected _buildListConfig(config: C): DbxListConfig<T, V>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxListWrapperDirective<any, any, any, any>, never, never, { "disabled": "disabled"; "state$": "state$"; }, { "clickItem": "clickItem"; "loadMore": "loadMore"; }, never>;
26
+ }
27
+ export interface DbxSelectionListWrapperConfig<T, V extends DbxListView<T> = DbxListView<T>> extends Omit<DbxListWrapperConfig<T, V>, 'onSelectionChange'> {
28
+ }
29
+ export declare abstract class AbstractDbxSelectionListWrapperDirective<T, V extends DbxListView<T> = DbxListView<T>, C extends DbxSelectionListWrapperConfig<T, V> = DbxSelectionListWrapperConfig<T, V>, S extends ListLoadingState<T> = ListLoadingState<T>> extends AbstractDbxListWrapperDirective<T, V, C, S> {
30
+ selectionChange: EventEmitter<ListSelectionState<T>>;
31
+ ngOnDestroy(): void;
32
+ protected _buildListConfig(config: C): DbxListConfig<T, V>;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxSelectionListWrapperDirective<any, any, any, any>, never>;
34
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxSelectionListWrapperDirective<any, any, any, any>, never, never, {}, { "selectionChange": "selectionChange"; }, never>;
35
+ }
@@ -1,8 +1,17 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./list.empty.component";
3
- import * as i2 from "@angular/common";
4
- export declare class DbNgxListLayoutModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxListLayoutModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxListLayoutModule, [typeof i1.DbNgxListEmptyContentComponent], [typeof i2.CommonModule], [typeof i1.DbNgxListEmptyContentComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxListLayoutModule>;
2
+ import * as i1 from "./list.component";
3
+ import * as i2 from "./list.content.empty.component";
4
+ import * as i3 from "./list.view.value.component";
5
+ import * as i4 from "./list.view.value.selection.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "../../loading/loading.module";
8
+ import * as i7 from "../../router/layout/anchor/anchor.module";
9
+ import * as i8 from "ngx-infinite-scroll";
10
+ import * as i9 from "@dereekb/dbx-core";
11
+ import * as i10 from "@angular/material/list";
12
+ import * as i11 from "@angular/material/icon";
13
+ export declare class DbxListLayoutModule {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxListLayoutModule, never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i1.DbxListInternalContentDirective, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i4.DbxSelectionValueListViewComponent, typeof i4.DbxSelectionValueListItemViewComponent], [typeof i5.CommonModule, typeof i6.DbxLoadingModule, typeof i7.DbxAnchorModule, typeof i8.InfiniteScrollModule, typeof i9.DbxInjectedComponentModule, typeof i10.MatListModule, typeof i11.MatIconModule], [typeof i1.DbxListComponent, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i4.DbxSelectionValueListViewComponent, typeof i4.DbxSelectionValueListItemViewComponent]>;
16
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxListLayoutModule>;
8
17
  }
@@ -0,0 +1,45 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ListLoadingState, ListLoadingStateContext } from "@dereekb/rxjs";
3
+ import { EventEmitter, Provider, Type } from "@angular/core";
4
+ export interface ListSelectionStateItem<T> {
5
+ disabled?: boolean;
6
+ selected?: boolean;
7
+ value: T;
8
+ }
9
+ export interface ListSelectionState<T> {
10
+ items: ListSelectionStateItem<T>[];
11
+ }
12
+ /**
13
+ * Interface for a view that renders the items of a DbxList.
14
+ */
15
+ export declare abstract class DbxListView<T, S extends ListLoadingState<T> = ListLoadingState<T>> {
16
+ /**
17
+ * Current disabled state.
18
+ */
19
+ abstract readonly disabled$: Observable<boolean>;
20
+ /**
21
+ * Values of the list view.
22
+ */
23
+ abstract readonly values$: Observable<T[]>;
24
+ /**
25
+ * (Optional) clicked event emitter.
26
+ *
27
+ * If available, the DbxList will subscribe to it automatically.
28
+ */
29
+ abstract clickValue?: EventEmitter<T>;
30
+ /**
31
+ * (Optional) selection changed event emitter.
32
+ *
33
+ * If available, the DbxList will subscribe to it automatically.
34
+ */
35
+ abstract selectionChange?: EventEmitter<ListSelectionState<T>>;
36
+ /**
37
+ * Sets the models input loading state context for the view to render from.
38
+ */
39
+ abstract setListContext(state: ListLoadingStateContext<T, S>): void;
40
+ /**
41
+ * Sets the disabled state of the list view.
42
+ */
43
+ abstract setDisabled(disabled: boolean): void;
44
+ }
45
+ export declare function ProvideDbxListView<V extends DbxListView<any>>(sourceType: Type<V>): Provider[];
@@ -0,0 +1,26 @@
1
+ import { ListLoadingStateContext } from '@dereekb/rxjs';
2
+ import { Observable } from 'rxjs';
3
+ import { EventEmitter, OnDestroy } from '@angular/core';
4
+ import { DbxListView } from './list.view';
5
+ import { Maybe } from '@dereekb/util';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Abstract DbxListView implementation.
9
+ */
10
+ export declare abstract class AbstractDbxListViewDirective<T> implements DbxListView<T>, OnDestroy {
11
+ private readonly _disabled;
12
+ private readonly _values$;
13
+ readonly values$: Observable<T[]>;
14
+ readonly disabled$: Observable<boolean>;
15
+ clickValue: EventEmitter<T>;
16
+ constructor();
17
+ set valueArray(values: Maybe<T[]>);
18
+ set values(values: Maybe<Observable<T[]>>);
19
+ ngOnDestroy(): void;
20
+ onClickValue(value: T): void;
21
+ setListContext(state: ListLoadingStateContext<T>): void;
22
+ setValues(valuesObs: Maybe<Observable<T[]>>): void;
23
+ setDisabled(disabled: boolean): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxListViewDirective<any>, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxListViewDirective<any>, never, never, { "valueArray": "valueArray"; "values": "values"; }, { "clickValue": "clickValue"; }, never>;
26
+ }
@@ -0,0 +1,15 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { MatSelectionListChange } from '@angular/material/list';
3
+ import { ListSelectionState } from './list.view';
4
+ import { AbstractDbxListViewDirective } from './list.view.directive';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Abstract list view that has a pre-built-in selection change event for an Angular Material MatSelectionListChange.
8
+ */
9
+ export declare abstract class AbstractSelectionValueListViewDirective<T> extends AbstractDbxListViewDirective<T> {
10
+ selectionChange: EventEmitter<ListSelectionState<T>>;
11
+ selectionChanged(selection: ListSelectionState<T>): void;
12
+ matSelectionChanged(selection: MatSelectionListChange): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelectionValueListViewDirective<any>, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelectionValueListViewDirective<any>, never, never, {}, { "selectionChange": "selectionChange"; }, never>;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { DbxValueListItem, AbstractDbxValueListViewConfig } from './list.view.value';
2
+ import { AbstractDbxValueListViewDirective } from './list.view.value.directive';
3
+ import * as i0 from "@angular/core";
4
+ export interface DbxValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any> extends AbstractDbxValueListViewConfig<T, I, V> {
5
+ emitAllClicks?: boolean;
6
+ }
7
+ /**
8
+ * Abstract list view that has a pre-built-in selection change event for an Angular Material MatSelectionListChange.
9
+ */
10
+ export declare class DbxValueListViewComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any, C extends DbxValueListViewConfig<T, I, V> = DbxValueListViewConfig<T, I, V>> extends AbstractDbxValueListViewDirective<T, I, V, C> {
11
+ readonly emitAllClicks$: import("rxjs").Observable<boolean | undefined>;
12
+ onClickItem(item: DbxValueListItem<T>): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxValueListViewComponent<any, any, any, any>, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxValueListViewComponent<any, any, any, any>, "dbx-list-view", never, {}, {}, never, never>;
15
+ }
@@ -0,0 +1,21 @@
1
+ import { ClickableAnchor } from '@dereekb/dbx-core';
2
+ import { InjectionToken } from "@angular/core";
3
+ import { DbxInjectedComponentConfig } from "@dereekb/dbx-core";
4
+ import { Observable } from "rxjs";
5
+ export declare const DBX_VALUE_LIST_VIEW_ITEM: InjectionToken<any>;
6
+ export interface DbxValueListItem<T> {
7
+ value: T;
8
+ icon?: string;
9
+ disabled?: boolean;
10
+ selected?: boolean;
11
+ anchor?: ClickableAnchor;
12
+ }
13
+ export interface AbstractDbxValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any> extends DbxInjectedComponentConfig<V> {
14
+ mapValuesToItemValues?(values: T[]): Observable<I[]>;
15
+ }
16
+ export declare const DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES: <T, I extends DbxValueListItem<T>>(values: T[]) => Observable<I[]>;
17
+ export interface DbxValueListItemConfig<T> extends DbxValueListItem<T> {
18
+ config: DbxInjectedComponentConfig;
19
+ }
20
+ export declare function mapValuesToValuesListItemConfigObs<T>(listViewConfig: AbstractDbxValueListViewConfig<T>, values: T[]): Observable<DbxValueListItemConfig<T>[]>;
21
+ export declare function mapItemValuesToValueListItemConfig<T>(listViewConfig: AbstractDbxValueListViewConfig<T>, itemValues: DbxValueListItem<T>[]): DbxValueListItemConfig<T>[];
@@ -0,0 +1,21 @@
1
+ import { OnDestroy } from "@angular/core";
2
+ import { Maybe } from "@dereekb/util";
3
+ import { Observable } from "rxjs";
4
+ import { DbxListView } from "./list.view";
5
+ import { AbstractDbxValueListViewConfig, DbxValueListItem, DbxValueListItemConfig } from "./list.view.value";
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Abstract list directive that takes in items and a AbstractDbxValueItemListViewConfig configuration.
9
+ */
10
+ export declare abstract class AbstractDbxValueListViewDirective<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any, C extends AbstractDbxValueListViewConfig<T, I, V> = AbstractDbxValueListViewConfig<T, I, V>> implements OnDestroy {
11
+ readonly dbxListView: DbxListView<T>;
12
+ private _config;
13
+ readonly config$: Observable<C>;
14
+ readonly items$: Observable<DbxValueListItemConfig<T>[]>;
15
+ constructor(dbxListView: DbxListView<T>);
16
+ ngOnDestroy(): void;
17
+ set config(config: Maybe<C>);
18
+ onClickValue(value: T): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxValueListViewDirective<any, any, any, any>, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxValueListViewDirective<any, any, any, any>, never, never, { "config": "config"; }, {}, never>;
21
+ }
@@ -0,0 +1,9 @@
1
+ import { DbxValueListItem } from "./list.view.value";
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class AbstractDbxSelectionValueListViewItemComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>> {
4
+ readonly item: I;
5
+ get value(): T;
6
+ constructor(item: I);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxSelectionValueListViewItemComponent<any, any>, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxSelectionValueListViewItemComponent<any, any>, never, never, {}, {}, never>;
9
+ }
@@ -0,0 +1,32 @@
1
+ import { MatSelectionListChange } from '@angular/material/list';
2
+ import { DbxListView } from './list.view';
3
+ import { DbxValueListItem, AbstractDbxValueListViewConfig, DbxValueListItemConfig } from './list.view.value';
4
+ import { AbstractDbxValueListViewDirective } from './list.view.value.directive';
5
+ import { Maybe } from '@dereekb/util';
6
+ import * as i0 from "@angular/core";
7
+ export interface DbxSelectionValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any> extends AbstractDbxValueListViewConfig<T, I, V> {
8
+ multiple?: boolean;
9
+ }
10
+ /**
11
+ * Abstract list view that has a pre-built-in selection change event for an Angular Material MatSelectionListChange.
12
+ */
13
+ export declare class DbxSelectionValueListViewComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = any> extends AbstractDbxValueListViewDirective<T, I, V, DbxSelectionValueListViewConfig<T, I, V>> {
14
+ readonly multiple$: import("rxjs").Observable<boolean>;
15
+ constructor(dbxListView: DbxListView<T>);
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxSelectionValueListViewComponent<any, any, any>, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxSelectionValueListViewComponent<any, any, any>, "dbx-selection-list-view", never, {}, {}, never, never>;
18
+ }
19
+ /**
20
+ * Content view for a DbxSelectionValueListView. It can be used directly in cases where the items are already configured, or want to be configured in a non-standard fashion.
21
+ */
22
+ export declare class DbxSelectionValueListItemViewComponent<T> {
23
+ readonly dbxListView: DbxListView<T>;
24
+ multiple?: Maybe<boolean>;
25
+ items?: Maybe<DbxValueListItemConfig<T>[]>;
26
+ readonly disabled$: import("rxjs").Observable<boolean>;
27
+ constructor(dbxListView: DbxListView<T>);
28
+ onClickValue(value: T): void;
29
+ matSelectionChanged(selection: MatSelectionListChange): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxSelectionValueListItemViewComponent<any>, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxSelectionValueListItemViewComponent<any>, "dbx-selection-list-view-content", never, { "multiple": "multiple"; "items": "items"; }, {}, never, never>;
32
+ }