@dereekb/dbx-web 1.2.0 → 3.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 (325) hide show
  1. package/README.md +1 -1
  2. package/_index.scss +5 -2
  3. package/esm2020/lib/action/action.confirm.directive.mjs +7 -7
  4. package/esm2020/lib/action/action.module.mjs +16 -12
  5. package/esm2020/lib/action/action.progress.component.mjs +20 -0
  6. package/esm2020/lib/action/index.mjs +3 -2
  7. package/esm2020/lib/action/key.trigger.directive.mjs +6 -6
  8. package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +95 -0
  9. package/esm2020/lib/action/snackbar/action.snackbar.default.mjs +107 -0
  10. package/esm2020/lib/action/snackbar/action.snackbar.directive.mjs +62 -0
  11. package/esm2020/lib/action/snackbar/action.snackbar.generator.mjs +44 -0
  12. package/esm2020/lib/action/snackbar/action.snackbar.mjs +2 -0
  13. package/esm2020/lib/action/snackbar/action.snackbar.module.mjs +51 -0
  14. package/esm2020/lib/action/snackbar/action.snackbar.service.mjs +82 -0
  15. package/esm2020/lib/action/snackbar/index.mjs +8 -0
  16. package/esm2020/lib/action/transition/action.transition.module.mjs +4 -4
  17. package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +8 -7
  18. package/esm2020/lib/action/transition/transition.safety.directive.mjs +6 -6
  19. package/esm2020/lib/button/button.component.mjs +31 -13
  20. package/esm2020/lib/button/button.module.mjs +20 -16
  21. package/esm2020/lib/button/button.spacer.component.mjs +12 -10
  22. package/esm2020/lib/button/index.mjs +2 -1
  23. package/esm2020/lib/button/progress/bar.button.component.mjs +16 -0
  24. package/esm2020/lib/button/progress/base.progress.button.directive.mjs +104 -0
  25. package/esm2020/lib/button/progress/button.progress.config.mjs +3 -0
  26. package/esm2020/lib/button/progress/button.progress.module.mjs +61 -0
  27. package/esm2020/lib/button/progress/index.mjs +5 -0
  28. package/esm2020/lib/button/progress/spinner.button.component.mjs +40 -0
  29. package/esm2020/lib/dbx-web.module.mjs +10 -17
  30. package/esm2020/lib/error/error.action.directive.mjs +6 -6
  31. package/esm2020/lib/error/error.component.mjs +5 -5
  32. package/esm2020/lib/error/error.loading.directive.mjs +3 -3
  33. package/esm2020/lib/error/error.module.mjs +4 -4
  34. package/esm2020/lib/interaction/dialog/abstract.dialog.directive.mjs +9 -6
  35. package/esm2020/lib/interaction/dialog/dialog.action.directive.mjs +41 -0
  36. package/esm2020/lib/interaction/dialog/dialog.content.component.mjs +4 -4
  37. package/esm2020/lib/interaction/dialog/dialog.module.mjs +12 -7
  38. package/esm2020/lib/interaction/dialog/index.mjs +2 -1
  39. package/esm2020/lib/interaction/filter/filter.module.mjs +9 -9
  40. package/esm2020/lib/interaction/filter/filter.popover.button.component.mjs +3 -3
  41. package/esm2020/lib/interaction/filter/filter.popover.button.directive.mjs +3 -3
  42. package/esm2020/lib/interaction/filter/filter.popover.component.mjs +5 -5
  43. package/esm2020/lib/interaction/filter/filter.wrapper.component.mjs +3 -3
  44. package/esm2020/lib/interaction/interaction.module.mjs +4 -4
  45. package/esm2020/lib/interaction/popover/abstract.popover.directive.mjs +3 -3
  46. package/esm2020/lib/interaction/popover/abstract.popover.ref.directive.mjs +6 -6
  47. package/esm2020/lib/interaction/popover/index.mjs +1 -2
  48. package/esm2020/lib/interaction/popover/popover.action.directive.mjs +19 -57
  49. package/esm2020/lib/interaction/popover/popover.component.mjs +9 -9
  50. package/esm2020/lib/interaction/popover/popover.content.component.mjs +3 -3
  51. package/esm2020/lib/interaction/popover/popover.controls.directive.mjs +3 -3
  52. package/esm2020/lib/interaction/popover/popover.coordinator.component.mjs +3 -3
  53. package/esm2020/lib/interaction/popover/popover.coordinator.service.mjs +11 -5
  54. package/esm2020/lib/interaction/popover/popover.header.component.mjs +3 -3
  55. package/esm2020/lib/interaction/popover/popover.module.mjs +17 -31
  56. package/esm2020/lib/interaction/popover/popover.scroll.content.component.mjs +3 -3
  57. package/esm2020/lib/interaction/popover/popover.service.mjs +3 -3
  58. package/esm2020/lib/interaction/popup/abstract.popup.directive.mjs +3 -3
  59. package/esm2020/lib/interaction/popup/popup.component.mjs +9 -9
  60. package/esm2020/lib/interaction/popup/popup.content.component.mjs +3 -3
  61. package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +6 -6
  62. package/esm2020/lib/interaction/popup/popup.controls.component.mjs +3 -3
  63. package/esm2020/lib/interaction/popup/popup.coordinator.component.mjs +3 -3
  64. package/esm2020/lib/interaction/popup/popup.coordinator.service.mjs +11 -5
  65. package/esm2020/lib/interaction/popup/popup.module.mjs +13 -22
  66. package/esm2020/lib/interaction/popup/popup.service.mjs +3 -3
  67. package/esm2020/lib/interaction/prompt/prompt.box.component.mjs +3 -3
  68. package/esm2020/lib/interaction/prompt/prompt.button.confirm.directive.mjs +3 -3
  69. package/esm2020/lib/interaction/prompt/prompt.component.mjs +3 -3
  70. package/esm2020/lib/interaction/prompt/prompt.confirm.component.mjs +3 -3
  71. package/esm2020/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +8 -8
  72. package/esm2020/lib/interaction/prompt/prompt.confirm.directive.mjs +6 -6
  73. package/esm2020/lib/interaction/prompt/prompt.module.mjs +9 -9
  74. package/esm2020/lib/interaction/prompt/prompt.page.component.mjs +3 -3
  75. package/esm2020/lib/keypress/keydown.listener.directive.mjs +3 -3
  76. package/esm2020/lib/keypress/keypress.module.mjs +4 -4
  77. package/esm2020/lib/layout/bar/bar.directive.mjs +3 -3
  78. package/esm2020/lib/layout/bar/bar.header.component.mjs +3 -3
  79. package/esm2020/lib/layout/bar/bar.layout.module.mjs +4 -4
  80. package/esm2020/lib/layout/bar/pagebar.component.mjs +3 -3
  81. package/esm2020/lib/layout/block/block.layout.module.mjs +9 -9
  82. package/esm2020/lib/layout/block/two.block.component.mjs +22 -10
  83. package/esm2020/lib/layout/card/card.box.component.mjs +3 -3
  84. package/esm2020/lib/layout/card/card.box.container.component.mjs +3 -3
  85. package/esm2020/lib/layout/card/card.box.layout.module.mjs +4 -4
  86. package/esm2020/lib/layout/column/column.layout.module.mjs +4 -4
  87. package/esm2020/lib/layout/column/one/one.column.component.mjs +9 -9
  88. package/esm2020/lib/layout/column/one/one.column.module.mjs +4 -4
  89. package/esm2020/lib/layout/column/two/index.mjs +2 -1
  90. package/esm2020/lib/layout/column/two/two.column.back.directive.mjs +8 -8
  91. package/esm2020/lib/layout/column/two/two.column.component.mjs +51 -14
  92. package/esm2020/lib/layout/column/two/two.column.context.directive.mjs +36 -0
  93. package/esm2020/lib/layout/column/two/two.column.full.left.directive.mjs +8 -8
  94. package/esm2020/lib/layout/column/two/two.column.head.component.mjs +8 -8
  95. package/esm2020/lib/layout/column/two/two.column.module.mjs +43 -38
  96. package/esm2020/lib/layout/column/two/two.column.right.component.mjs +11 -6
  97. package/esm2020/lib/layout/column/two/two.column.sref.directive.mjs +12 -17
  98. package/esm2020/lib/layout/column/two/two.column.store.mjs +8 -7
  99. package/esm2020/lib/layout/compact/compact.directive.mjs +3 -3
  100. package/esm2020/lib/layout/compact/compact.layout.module.mjs +4 -4
  101. package/esm2020/lib/layout/compact/compact.store.mjs +3 -3
  102. package/esm2020/lib/layout/content/content.border.directive.mjs +3 -3
  103. package/esm2020/lib/layout/content/content.box.directive.mjs +9 -5
  104. package/esm2020/lib/layout/content/content.container.directive.mjs +4 -4
  105. package/esm2020/lib/layout/content/content.directive.mjs +3 -3
  106. package/esm2020/lib/layout/content/content.elevate.directive.mjs +3 -3
  107. package/esm2020/lib/layout/content/content.layout.module.mjs +4 -4
  108. package/esm2020/lib/layout/content/content.page.directive.mjs +3 -3
  109. package/esm2020/lib/layout/flag/flag.component.mjs +3 -3
  110. package/esm2020/lib/layout/flag/flag.layout.module.mjs +4 -4
  111. package/esm2020/lib/layout/flag/flag.prompt.component.mjs +3 -3
  112. package/esm2020/lib/layout/flex/flex.group.directive.mjs +8 -4
  113. package/esm2020/lib/layout/flex/flex.layout.module.mjs +4 -4
  114. package/esm2020/lib/layout/flex/flex.size.directive.mjs +3 -3
  115. package/esm2020/lib/layout/item/item.icon.component.mjs +3 -3
  116. package/esm2020/lib/layout/item/item.layout.module.mjs +4 -4
  117. package/esm2020/lib/layout/layout.module.mjs +4 -4
  118. package/esm2020/lib/layout/list/index.mjs +5 -1
  119. package/esm2020/lib/layout/list/list.component.mjs +22 -9
  120. package/esm2020/lib/layout/list/list.content.empty.component.mjs +3 -3
  121. package/esm2020/lib/layout/list/list.directive.mjs +12 -10
  122. package/esm2020/lib/layout/list/list.layout.module.mjs +32 -18
  123. package/esm2020/lib/layout/list/list.view.directive.mjs +11 -4
  124. package/esm2020/lib/layout/list/list.view.mjs +1 -1
  125. package/esm2020/lib/layout/list/list.view.selection.directive.mjs +8 -7
  126. package/esm2020/lib/layout/list/list.view.value.component.mjs +57 -28
  127. package/esm2020/lib/layout/list/list.view.value.directive.mjs +18 -10
  128. package/esm2020/lib/layout/list/list.view.value.item.directive.mjs +7 -7
  129. package/esm2020/lib/layout/list/list.view.value.mjs +36 -24
  130. package/esm2020/lib/layout/list/list.view.value.modifier.directive.mjs +81 -0
  131. package/esm2020/lib/layout/list/list.view.value.modifier.mjs +15 -0
  132. package/esm2020/lib/layout/list/list.view.value.modifier.ripple.directive.mjs +45 -0
  133. package/esm2020/lib/layout/list/list.view.value.selection.component.mjs +57 -43
  134. package/esm2020/lib/layout/list/list.wrapper.mjs +13 -0
  135. package/esm2020/lib/layout/section/section.component.mjs +3 -3
  136. package/esm2020/lib/layout/section/section.header.component.mjs +9 -6
  137. package/esm2020/lib/layout/section/section.intro.component.mjs +3 -3
  138. package/esm2020/lib/layout/section/section.layout.module.mjs +9 -9
  139. package/esm2020/lib/layout/section/section.page.component.mjs +3 -3
  140. package/esm2020/lib/layout/section/subsection.component.mjs +3 -3
  141. package/esm2020/lib/layout/step/step.component.mjs +3 -3
  142. package/esm2020/lib/layout/step/step.layout.module.mjs +4 -4
  143. package/esm2020/lib/layout/style/spacer.directive.mjs +3 -3
  144. package/esm2020/lib/layout/style/style.body.directive.mjs +3 -3
  145. package/esm2020/lib/layout/style/style.directive.mjs +3 -3
  146. package/esm2020/lib/layout/style/style.layout.module.mjs +4 -4
  147. package/esm2020/lib/layout/style/style.service.mjs +6 -4
  148. package/esm2020/lib/layout/style/style.set.directive.mjs +5 -4
  149. package/esm2020/lib/layout/text/hint.component.mjs +3 -3
  150. package/esm2020/lib/layout/text/icon.spacer.component.mjs +19 -0
  151. package/esm2020/lib/layout/text/index.mjs +2 -1
  152. package/esm2020/lib/layout/text/label.component.mjs +3 -3
  153. package/esm2020/lib/layout/text/linkify.component.mjs +3 -3
  154. package/esm2020/lib/layout/text/note.component.mjs +3 -3
  155. package/esm2020/lib/layout/text/notice.component.mjs +3 -3
  156. package/esm2020/lib/layout/text/ok.component.mjs +3 -3
  157. package/esm2020/lib/layout/text/success.component.mjs +3 -3
  158. package/esm2020/lib/layout/text/text.chips.component.mjs +3 -3
  159. package/esm2020/lib/layout/text/text.module.mjs +14 -9
  160. package/esm2020/lib/layout/text/warn.component.mjs +3 -3
  161. package/esm2020/lib/loading/basic-loading.component.mjs +3 -3
  162. package/esm2020/lib/loading/index.mjs +2 -1
  163. package/esm2020/lib/loading/loading-progress.component.mjs +4 -4
  164. package/esm2020/lib/loading/loading.action.directive.mjs +37 -0
  165. package/esm2020/lib/loading/loading.component.mjs +3 -3
  166. package/esm2020/lib/loading/loading.module.mjs +14 -9
  167. package/esm2020/lib/router/layout/anchor/anchor.component.mjs +9 -5
  168. package/esm2020/lib/router/layout/anchor/anchor.content.component.mjs +43 -0
  169. package/esm2020/lib/router/layout/anchor/anchor.icon.component.mjs +3 -3
  170. package/esm2020/lib/router/layout/anchor/anchor.link.component.mjs +3 -3
  171. package/esm2020/lib/router/layout/anchor/anchor.module.mjs +19 -14
  172. package/esm2020/lib/router/layout/anchor/anchor.segue.directive.mjs +4 -4
  173. package/esm2020/lib/router/layout/anchor/index.mjs +2 -1
  174. package/esm2020/lib/router/layout/anchorlist/anchorlist.component.mjs +5 -5
  175. package/esm2020/lib/router/layout/anchorlist/anchorlist.module.mjs +10 -10
  176. package/esm2020/lib/router/layout/index.mjs +2 -1
  177. package/esm2020/lib/router/layout/layout.module.mjs +23 -19
  178. package/esm2020/lib/router/layout/list/index.mjs +3 -0
  179. package/esm2020/lib/router/layout/list/list.module.mjs +21 -0
  180. package/esm2020/lib/router/layout/list/router.list.directive.mjs +42 -0
  181. package/esm2020/lib/router/layout/navbar/navbar.component.mjs +4 -4
  182. package/esm2020/lib/router/layout/navbar/navbar.module.mjs +10 -10
  183. package/esm2020/lib/router/layout/sidenav/sidenav.button.component.mjs +3 -3
  184. package/esm2020/lib/router/layout/sidenav/sidenav.component.mjs +3 -3
  185. package/esm2020/lib/router/layout/sidenav/sidenav.module.mjs +14 -14
  186. package/esm2020/lib/router/layout/sidenav/sidenav.page.component.mjs +7 -4
  187. package/esm2020/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +5 -5
  188. package/esm2020/lib/router/provider/ngrouter/anchor.component.mjs +5 -5
  189. package/esm2020/lib/router/provider/ngrouter/angular.router.module.mjs +9 -9
  190. package/esm2020/lib/router/provider/router.provider.config.mjs +1 -1
  191. package/esm2020/lib/router/provider/uirouter/anchor.component.mjs +5 -5
  192. package/esm2020/lib/router/provider/uirouter/uirouter.router.module.mjs +9 -9
  193. package/esm2020/lib/screen/screen.module.mjs +4 -4
  194. package/esm2020/lib/screen/screen.service.mjs +5 -4
  195. package/fesm2015/dereekb-dbx-web.mjs +2265 -1270
  196. package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
  197. package/fesm2020/dereekb-dbx-web.mjs +2262 -1268
  198. package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
  199. package/lib/action/_action.scss +8 -35
  200. package/lib/action/action.confirm.directive.d.ts +13 -4
  201. package/lib/action/action.module.d.ts +8 -7
  202. package/lib/action/action.progress.component.d.ts +5 -0
  203. package/lib/action/index.d.ts +2 -1
  204. package/lib/action/key.trigger.directive.d.ts +3 -3
  205. package/lib/action/snackbar/_snackbar.scss +33 -0
  206. package/lib/action/snackbar/action.snackbar.component.d.ts +36 -0
  207. package/lib/action/snackbar/action.snackbar.d.ts +52 -0
  208. package/lib/action/snackbar/action.snackbar.default.d.ts +2 -0
  209. package/lib/action/snackbar/action.snackbar.directive.d.ts +25 -0
  210. package/lib/action/snackbar/action.snackbar.generator.d.ts +32 -0
  211. package/lib/action/snackbar/action.snackbar.module.d.ts +14 -0
  212. package/lib/action/snackbar/action.snackbar.service.d.ts +39 -0
  213. package/lib/action/snackbar/index.d.ts +7 -0
  214. package/lib/action/transition/transition.safety.directive.d.ts +3 -3
  215. package/lib/button/_button.scss +21 -0
  216. package/lib/button/button.component.d.ts +7 -3
  217. package/lib/button/button.module.d.ts +3 -2
  218. package/lib/button/button.spacer.component.d.ts +4 -4
  219. package/lib/button/index.d.ts +1 -0
  220. package/lib/button/progress/bar.button.component.d.ts +6 -0
  221. package/lib/button/progress/bar.button.component.scss +23 -0
  222. package/lib/button/progress/base.progress.button.directive.d.ts +37 -0
  223. package/lib/button/progress/button.progress.config.d.ts +51 -0
  224. package/lib/button/progress/button.progress.module.d.ts +17 -0
  225. package/lib/button/progress/index.d.ts +4 -0
  226. package/lib/button/progress/spinner.button.component.d.ts +9 -0
  227. package/lib/button/progress/spinner.button.component.scss +44 -0
  228. package/lib/dbx-web.module.d.ts +1 -3
  229. package/lib/error/error.action.directive.d.ts +3 -3
  230. package/lib/interaction/dialog/_dialog.scss +18 -2
  231. package/lib/interaction/dialog/abstract.dialog.directive.d.ts +2 -1
  232. package/lib/interaction/dialog/dialog.action.directive.d.ts +21 -0
  233. package/lib/interaction/dialog/dialog.module.d.ts +4 -3
  234. package/lib/interaction/dialog/index.d.ts +1 -0
  235. package/lib/interaction/filter/filter.module.d.ts +1 -1
  236. package/lib/interaction/filter/filter.popover.component.d.ts +2 -2
  237. package/lib/interaction/popover/index.d.ts +0 -1
  238. package/lib/interaction/popover/popover.action.directive.d.ts +15 -24
  239. package/lib/interaction/popover/popover.component.d.ts +3 -3
  240. package/lib/interaction/popover/popover.coordinator.service.d.ts +3 -1
  241. package/lib/interaction/popover/popover.module.d.ts +20 -23
  242. package/lib/interaction/popup/popup.component.d.ts +3 -3
  243. package/lib/interaction/popup/popup.coordinator.service.d.ts +3 -1
  244. package/lib/interaction/popup/popup.module.d.ts +1 -3
  245. package/lib/interaction/prompt/prompt.confirm.dialog.component.d.ts +3 -3
  246. package/lib/interaction/prompt/prompt.module.d.ts +1 -1
  247. package/lib/layout/block/_block.scss +11 -8
  248. package/lib/layout/block/block.layout.module.d.ts +1 -1
  249. package/lib/layout/block/two.block.component.d.ts +5 -1
  250. package/lib/layout/column/_column.scss +119 -3
  251. package/lib/layout/column/two/index.d.ts +1 -0
  252. package/lib/layout/column/two/two.column.back.directive.d.ts +4 -4
  253. package/lib/layout/column/two/two.column.component.d.ts +23 -7
  254. package/lib/layout/column/two/two.column.context.directive.d.ts +18 -0
  255. package/lib/layout/column/two/two.column.full.left.directive.d.ts +4 -4
  256. package/lib/layout/column/two/two.column.head.component.d.ts +3 -3
  257. package/lib/layout/column/two/two.column.module.d.ts +7 -6
  258. package/lib/layout/column/two/two.column.right.component.d.ts +6 -4
  259. package/lib/layout/column/two/two.column.sref.directive.d.ts +6 -7
  260. package/lib/layout/column/two/two.column.store.d.ts +4 -3
  261. package/lib/layout/content/_content.scss +38 -3
  262. package/lib/layout/content/content.box.directive.d.ts +2 -1
  263. package/lib/layout/content/content.container.directive.d.ts +2 -2
  264. package/lib/layout/flex/_flex.scss +4 -0
  265. package/lib/layout/flex/flex.group.directive.d.ts +1 -0
  266. package/lib/layout/list/index.d.ts +4 -0
  267. package/lib/layout/list/list.component.d.ts +14 -5
  268. package/lib/layout/list/list.directive.d.ts +9 -7
  269. package/lib/layout/list/list.layout.module.d.ts +10 -8
  270. package/lib/layout/list/list.view.d.ts +11 -1
  271. package/lib/layout/list/list.view.directive.d.ts +4 -1
  272. package/lib/layout/list/list.view.selection.directive.d.ts +4 -3
  273. package/lib/layout/list/list.view.value.component.d.ts +18 -3
  274. package/lib/layout/list/list.view.value.d.ts +27 -11
  275. package/lib/layout/list/list.view.value.directive.d.ts +9 -6
  276. package/lib/layout/list/list.view.value.item.directive.d.ts +4 -4
  277. package/lib/layout/list/list.view.value.modifier.d.ts +12 -0
  278. package/lib/layout/list/list.view.value.modifier.directive.d.ts +37 -0
  279. package/lib/layout/list/list.view.value.modifier.ripple.directive.d.ts +17 -0
  280. package/lib/layout/list/list.view.value.selection.component.d.ts +10 -11
  281. package/lib/layout/list/list.wrapper.d.ts +11 -0
  282. package/lib/layout/section/section.header.component.d.ts +1 -0
  283. package/lib/layout/section/section.layout.module.d.ts +1 -1
  284. package/lib/layout/style/_style.scss +12 -1
  285. package/lib/layout/text/_text.scss +9 -0
  286. package/lib/layout/text/icon.spacer.component.d.ts +8 -0
  287. package/lib/layout/text/index.d.ts +1 -0
  288. package/lib/layout/text/text.module.d.ts +6 -5
  289. package/lib/loading/index.d.ts +1 -0
  290. package/lib/loading/loading.action.directive.d.ts +19 -0
  291. package/lib/loading/loading.module.d.ts +6 -5
  292. package/lib/router/layout/anchor/_anchor.scss +10 -0
  293. package/lib/router/layout/anchor/anchor.component.d.ts +5 -4
  294. package/lib/router/layout/anchor/anchor.content.component.d.ts +22 -0
  295. package/lib/router/layout/anchor/anchor.module.d.ts +9 -8
  296. package/lib/router/layout/anchor/anchor.segue.directive.d.ts +2 -2
  297. package/lib/router/layout/anchor/index.d.ts +1 -0
  298. package/lib/router/layout/anchorlist/_anchorlist.scss +7 -0
  299. package/lib/router/layout/anchorlist/anchorlist.module.d.ts +4 -4
  300. package/lib/router/layout/index.d.ts +1 -0
  301. package/lib/router/layout/layout.module.d.ts +4 -3
  302. package/lib/router/layout/list/index.d.ts +2 -0
  303. package/lib/router/layout/list/list.module.d.ts +7 -0
  304. package/lib/router/layout/list/router.list.directive.d.ts +17 -0
  305. package/lib/router/layout/navbar/navbar.component.d.ts +4 -4
  306. package/lib/router/layout/navbar/navbar.module.d.ts +4 -4
  307. package/lib/router/layout/sidenav/sidenav.module.d.ts +4 -4
  308. package/lib/router/layout/sidenav/sidenav.page.component.d.ts +4 -2
  309. package/lib/router/provider/ngrouter/angular.router.module.d.ts +1 -1
  310. package/lib/router/provider/router.provider.config.d.ts +2 -2
  311. package/lib/router/provider/uirouter/uirouter.router.module.d.ts +1 -1
  312. package/lib/screen/screen.service.d.ts +2 -2
  313. package/lib/style/_all-core.scss +2 -0
  314. package/lib/style/_all-theme.scss +2 -0
  315. package/lib/style/_all-typography.scss +2 -0
  316. package/lib/style/_config.scss +7 -1
  317. package/lib/style/_function.scss +4 -0
  318. package/lib/style/_root-variables.scss +2 -0
  319. package/lib/style/_variables.scss +4 -0
  320. package/package.json +25 -44
  321. package/esm2020/lib/action/action.snackbar.component.mjs +0 -104
  322. package/esm2020/lib/interaction/popover/popover.action.button.directive.mjs +0 -29
  323. package/lib/action/action.snackbar.component.d.ts +0 -22
  324. package/lib/interaction/popover/popover.action.button.directive.d.ts +0 -14
  325. package/lib/layout/column/two.scss +0 -114
@@ -1,40 +1,13 @@
1
- @use '../style/theming';
1
+ @use './snackbar/snackbar';
2
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-action') {
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
- }
3
+ @mixin all-action-core() {
4
+ @include snackbar.core();
26
5
  }
27
6
 
28
- // TODO:
29
- .dbx-action-snackbar {
30
- display: flex;
31
- align-items: center;
32
-
33
- &.dbx-action-snackbar-success {
34
- // background: $success-color;
35
- }
7
+ @mixin all-action-typography($typography-config) {
8
+ @include snackbar.typography($typography-config);
9
+ }
36
10
 
37
- &.dbx-action-snackbar-error {
38
- // background: red;
39
- }
11
+ @mixin all-action-theme($theme-config) {
12
+ @include snackbar.theme($theme-config);
40
13
  }
@@ -2,8 +2,17 @@ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatDialog } from '@angular/material/dialog';
3
3
  import { AbstractPromptConfirmDirective } from '../interaction/prompt/prompt.confirm.directive';
4
4
  import { DbxPromptConfirmConfig } from '../interaction/prompt/prompt.confirm.component';
5
- import { ActionContextStoreSourceInstance } from '@dereekb/dbx-core';
5
+ import { DbxActionContextStoreSourceInstance } from '@dereekb/dbx-core';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * DbxActionConfirmDirective configuration.
9
+ */
10
+ export interface DbxActionConfirmConfig<T> extends DbxPromptConfirmConfig {
11
+ /**
12
+ * Optionally set the readyValue passed to the instance.
13
+ */
14
+ readyValue?: T;
15
+ }
7
16
  /**
8
17
  * Directive that when triggered shows a dialog to accept or reject.
9
18
  *
@@ -11,10 +20,10 @@ import * as i0 from "@angular/core";
11
20
  * For button usage, use an appPromptConfirmButton directive.
12
21
  */
13
22
  export declare class DbxActionConfirmDirective<T, O> extends AbstractPromptConfirmDirective implements OnInit, OnDestroy {
14
- readonly source: ActionContextStoreSourceInstance<T, O>;
15
- config?: DbxPromptConfirmConfig;
23
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
24
+ config?: DbxActionConfirmConfig<T>;
16
25
  private _sourceSubscription;
17
- constructor(source: ActionContextStoreSourceInstance<T, O>, dialog: MatDialog);
26
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>, dialog: MatDialog);
18
27
  ngOnInit(): void;
19
28
  ngOnDestroy(): void;
20
29
  protected _handleDialogResult(result: boolean): boolean;
@@ -1,16 +1,17 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./key.trigger.directive";
3
- import * as i2 from "./action.snackbar.component";
4
- import * as i3 from "./action.confirm.directive";
3
+ import * as i2 from "./action.confirm.directive";
4
+ import * as i3 from "./action.progress.component";
5
5
  import * as i4 from "@angular/common";
6
6
  import * as i5 from "@dereekb/dbx-core";
7
7
  import * as i6 from "../button/button.module";
8
- import * as i7 from "@angular/material/snack-bar";
9
- import * as i8 from "@angular/material/dialog";
10
- import * as i9 from "@angular/material/button";
11
- import * as i10 from "../interaction/prompt/prompt.module";
8
+ import * as i7 from "../loading/loading.module";
9
+ import * as i8 from "@angular/material/snack-bar";
10
+ import * as i9 from "@angular/material/dialog";
11
+ import * as i10 from "@angular/material/button";
12
+ import * as i11 from "../interaction/prompt/prompt.module";
12
13
  export declare class DbxActionModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxActionModule, [typeof i1.DbxActionKeyTriggerDirective, typeof i2.DbxActionSnackbarComponent, typeof i3.DbxActionConfirmDirective], [typeof i4.CommonModule, typeof i5.DbxCoreActionModule, typeof i6.DbxButtonModule, typeof i7.MatSnackBarModule, typeof i8.MatDialogModule, typeof i9.MatButtonModule, typeof i10.DbxPromptModule], [typeof i5.DbxCoreActionModule, typeof i1.DbxActionKeyTriggerDirective, typeof i2.DbxActionSnackbarComponent, typeof i3.DbxActionConfirmDirective]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxActionModule, [typeof i1.DbxActionKeyTriggerDirective, typeof i2.DbxActionConfirmDirective, typeof i3.DbxActionProgressComponent], [typeof i4.CommonModule, typeof i5.DbxCoreActionModule, typeof i6.DbxButtonModule, typeof i7.DbxLoadingModule, typeof i8.MatSnackBarModule, typeof i9.MatDialogModule, typeof i10.MatButtonModule, typeof i11.DbxPromptModule], [typeof i5.DbxCoreActionModule, typeof i1.DbxActionKeyTriggerDirective, typeof i2.DbxActionConfirmDirective, typeof i3.DbxActionProgressComponent]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxActionModule>;
16
17
  }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DbxActionProgressComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionProgressComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxActionProgressComponent, "dbx-action-progress", never, {}, {}, never, never>;
5
+ }
@@ -1,5 +1,6 @@
1
+ export * from './snackbar';
1
2
  export * from './transition';
2
3
  export * from './action.confirm.directive';
3
4
  export * from './action.module';
4
- export * from './action.snackbar.component';
5
5
  export * from './key.trigger.directive';
6
+ export * from './action.progress.component';
@@ -1,5 +1,5 @@
1
1
  import { Maybe } from '@dereekb/util';
2
- import { ActionContextStoreSourceInstance } from '@dereekb/dbx-core';
2
+ import { DbxActionContextStoreSourceInstance } from '@dereekb/dbx-core';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Directive that triggers the action on a specific key up event.
@@ -7,9 +7,9 @@ import * as i0 from "@angular/core";
7
7
  * Events/Keys to respond to should be lowercase.
8
8
  */
9
9
  export declare class DbxActionKeyTriggerDirective<T = any, O = any> {
10
- readonly source: ActionContextStoreSourceInstance<T, O>;
10
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
11
11
  inputKey: Maybe<string>;
12
- constructor(source: ActionContextStoreSourceInstance<T, O>);
12
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>);
13
13
  get key(): string;
14
14
  onKeyupHandler(event: KeyboardEvent): void;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionKeyTriggerDirective<any, any>, [{ host: true; }]>;
@@ -0,0 +1,33 @@
1
+ @use '../../style/theming';
2
+
3
+ // MARK: Variables
4
+
5
+
6
+ // MARK: Mixin
7
+ @mixin core() {
8
+
9
+ .dbx-action-snackbar {
10
+ display: flex;
11
+ align-items: center;
12
+ }
13
+
14
+ }
15
+
16
+ @mixin color($theme-config) {}
17
+
18
+ @mixin typography($typography-config) {}
19
+
20
+ @mixin theme($theme-config) {
21
+ @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-action-snackbar') {
22
+ $color: theming.get-color-config($theme-config);
23
+ $typography: theming.get-typography-config($theme-config);
24
+
25
+ @if $color !=null {
26
+ @include color($theme-config);
27
+ }
28
+
29
+ @if $typography !=null {
30
+ @include typography($typography);
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,36 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { LoadingStateType } from '@dereekb/rxjs';
3
+ import { Observable } from 'rxjs';
4
+ import { OnDestroy, AfterViewInit } from '@angular/core';
5
+ import { MatSnackBarRef } from '@angular/material/snack-bar';
6
+ import { Maybe } from '@dereekb/util';
7
+ import { DbxActionSnackbarDisplayConfig, DbxActionSnackbarActionConfig } from './action.snackbar';
8
+ import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * Component for a snackbar that contains an action.
12
+ */
13
+ export declare class DbxActionSnackbarComponent extends AbstractSubscriptionDirective implements OnInit, AfterViewInit, OnDestroy {
14
+ readonly snackbar: MatSnackBarRef<DbxActionSnackbarComponent>;
15
+ readonly data: DbxActionSnackbarDisplayConfig;
16
+ private _durationTimeout;
17
+ private _actionRef;
18
+ readonly value$: Observable<number>;
19
+ readonly sourceInstance$: Observable<import("@dereekb/dbx-core").DbxActionContextStoreSourceInstance<any, any>>;
20
+ readonly complete$: Observable<boolean>;
21
+ readonly loadingStateType$: Observable<LoadingStateType>;
22
+ readonly snackbarStatusClass$: Observable<string>;
23
+ readonly button: Maybe<string>;
24
+ get action(): DbxActionSnackbarActionConfig | undefined;
25
+ get hasAction(): boolean;
26
+ get message(): Maybe<string>;
27
+ get actionConfig(): Maybe<DbxActionSnackbarActionConfig>;
28
+ constructor(snackbar: MatSnackBarRef<DbxActionSnackbarComponent>, data: DbxActionSnackbarDisplayConfig);
29
+ ngOnInit(): void;
30
+ ngOnDestroy(): void;
31
+ ngAfterViewInit(): void;
32
+ dismissAfterActionCompletes: () => void;
33
+ dismiss: () => void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSnackbarComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxActionSnackbarComponent, "ng-component", never, {}, {}, never, never>;
36
+ }
@@ -0,0 +1,52 @@
1
+ import { MatSnackBarConfig } from "@angular/material/snack-bar";
2
+ import { DbxActionContextSourceReference } from "@dereekb/dbx-core";
3
+ import { LoadingState, LoadingStateType } from "@dereekb/rxjs";
4
+ import { Maybe } from "@dereekb/util";
5
+ export declare type DbxActionSnackbarType = string;
6
+ export declare type DbxActionSnackbarKnownType = 'none' | 'create' | 'save' | 'delete' | 'merge' | 'send' | 'cancel' | 'restore' | 'refresh' | 'read' | 'unread';
7
+ /**
8
+ * ActionSnackbar event. Depending on the type, a value or error is also available.
9
+ */
10
+ export interface DbxActionSnackbarEvent<O = any> extends Omit<LoadingState<O>, 'loading'> {
11
+ type: LoadingStateType;
12
+ }
13
+ /**
14
+ * Configuration for the actual snackbar popup.
15
+ */
16
+ export interface DbxActionSnackbarDisplayConfig {
17
+ /**
18
+ * Text to be shown on the close button. If action is defined, this is ignored and the action text is used.
19
+ */
20
+ button?: string;
21
+ /**
22
+ * Message to show in the snackbar.
23
+ */
24
+ message?: Maybe<string>;
25
+ /**
26
+ * Additional action that can occur.
27
+ */
28
+ action?: DbxActionSnackbarActionConfig;
29
+ /**
30
+ * MatSnackBar configuration
31
+ */
32
+ snackbar?: MatSnackBarConfig;
33
+ }
34
+ /**
35
+ * Used for configuring an action on the snackbar component.
36
+ */
37
+ export interface DbxActionSnackbarActionConfig {
38
+ /**
39
+ * Action label to display on the button.
40
+ */
41
+ button: string;
42
+ /**
43
+ * Action reference to use.
44
+ *
45
+ * The referred to action is used for triggering and lifecycle.
46
+ */
47
+ reference: DbxActionContextSourceReference;
48
+ /**
49
+ * Duration to show the action.
50
+ */
51
+ duration?: number;
52
+ }
@@ -0,0 +1,2 @@
1
+ import { DbxActionSnackbarEventMakeConfig } from './action.snackbar.service';
2
+ export declare const DBX_ACTION_SNACKBAR_DEFAULTS: DbxActionSnackbarEventMakeConfig;
@@ -0,0 +1,25 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AbstractSubscriptionDirective, DbxActionContextStoreSourceInstance } from '@dereekb/dbx-core';
3
+ import { Maybe } from '@dereekb/util';
4
+ import { DbxActionSnackbarDisplayConfig, DbxActionSnackbarEvent, DbxActionSnackbarType } from './action.snackbar';
5
+ import { DbxActionSnackbarService } from './action.snackbar.service';
6
+ import { DbxActionSnackbarDisplayConfigGeneratorFunction, DbxActionSnackbarGeneratorUndoInput } from './action.snackbar.generator';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Action directive that displays a snackbar when the action context hits a certain state.
10
+ */
11
+ export declare class DbxActionSnackbarDirective<T = any, O = any> extends AbstractSubscriptionDirective implements OnInit {
12
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
13
+ readonly dbxActionSnackbarService: DbxActionSnackbarService;
14
+ private _snackbarFunction?;
15
+ get snackbarFunction(): Maybe<DbxActionSnackbarDisplayConfigGeneratorFunction<O>>;
16
+ set snackbarFunction(snackbarFunction: Maybe<'' | DbxActionSnackbarDisplayConfigGeneratorFunction<O>>);
17
+ dbxActionSnackbarDefault?: Maybe<DbxActionSnackbarType>;
18
+ dbxActionSnackbarUndo?: DbxActionSnackbarGeneratorUndoInput;
19
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>, dbxActionSnackbarService: DbxActionSnackbarService);
20
+ ngOnInit(): void;
21
+ protected buildConfigurationForEvent(event: DbxActionSnackbarEvent): Maybe<DbxActionSnackbarDisplayConfig>;
22
+ protected showSnackbarForConfiguration(config: DbxActionSnackbarDisplayConfig, event: DbxActionSnackbarEvent): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSnackbarDirective<any, any>, [{ host: true; }, null]>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionSnackbarDirective<any, any>, "[dbxActionSnackbar]", never, { "snackbarFunction": "dbxActionSnackbar"; "dbxActionSnackbarDefault": "dbxActionSnackbarDefault"; "dbxActionSnackbarUndo": "dbxActionSnackbarUndo"; }, {}, never>;
25
+ }
@@ -0,0 +1,32 @@
1
+ import { DbxActionContextSourceReference } from "@dereekb/dbx-core";
2
+ import { Milliseconds, Maybe, GetterOrValue, Getter } from "@dereekb/util";
3
+ import { DbxActionSnackbarDisplayConfig, DbxActionSnackbarEvent } from "./action.snackbar";
4
+ export interface DbxActionSnackbarGeneratorInput<O = any> {
5
+ event: DbxActionSnackbarEvent<O>;
6
+ undo?: Maybe<DbxActionSnackbarGeneratorUndoInput>;
7
+ }
8
+ export declare type DbxActionSnackbarGeneratorUndoInput = DbxActionSnackbarGeneratorUndoInputConfig | Getter<DbxActionContextSourceReference>;
9
+ export interface DbxActionSnackbarGeneratorUndoInputConfig {
10
+ duration?: Milliseconds;
11
+ getUndoAction: Getter<DbxActionContextSourceReference>;
12
+ }
13
+ export declare type DbxActionSnackbarDisplayConfigGeneratorFunction<O = any> = (input: DbxActionSnackbarGeneratorInput<O>) => Maybe<DbxActionSnackbarDisplayConfig>;
14
+ export interface DbxMakeActionSnackbarGeneratorConfiguration {
15
+ idle?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
16
+ loading?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
17
+ success?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
18
+ error?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
19
+ }
20
+ export interface DbxMakeActionSnackbarGeneratorEventConfiguration extends Omit<DbxActionSnackbarDisplayConfig, 'action'> {
21
+ /**
22
+ * Sets the undo action text. If undefined, will default to 'undo'
23
+ */
24
+ undoButtonText?: string;
25
+ }
26
+ /**
27
+ * Creates a DbxActionSnackbarDisplayConfigGeneratorFunction from the input config.
28
+ *
29
+ * @param config
30
+ * @returns
31
+ */
32
+ export declare function makeDbxActionSnackbarDisplayConfigGeneratorFunction<O = any>(config: DbxMakeActionSnackbarGeneratorConfiguration): DbxActionSnackbarDisplayConfigGeneratorFunction<O>;
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./action.snackbar.component";
3
+ import * as i2 from "./action.snackbar.directive";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "../../layout/style/style.layout.module";
6
+ import * as i5 from "@dereekb/dbx-core";
7
+ import * as i6 from "../../interaction/prompt/prompt.module";
8
+ import * as i7 from "../../button/button.module";
9
+ import * as i8 from "../../error/error.module";
10
+ export declare class DbxActionSnackbarModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSnackbarModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxActionSnackbarModule, [typeof i1.DbxActionSnackbarComponent, typeof i2.DbxActionSnackbarDirective], [typeof i3.CommonModule, typeof i4.DbxStyleLayoutModule, typeof i5.DbxCoreActionModule, typeof i6.DbxPromptModule, typeof i7.DbxButtonModule, typeof i8.DbxReadableErrorModule], [typeof i1.DbxActionSnackbarComponent, typeof i2.DbxActionSnackbarDirective]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxActionSnackbarModule>;
14
+ }
@@ -0,0 +1,39 @@
1
+ import { DbxActionSnackbarComponent } from './action.snackbar.component';
2
+ import { InjectionToken, Type } from "@angular/core";
3
+ import { MatSnackBar, MatSnackBarConfig, MatSnackBarRef } from "@angular/material/snack-bar";
4
+ import { Milliseconds, Maybe } from "@dereekb/util";
5
+ import { DbxActionSnackbarDisplayConfig, DbxActionSnackbarType } from "./action.snackbar";
6
+ import { DbxActionSnackbarGeneratorInput, DbxMakeActionSnackbarGeneratorConfiguration } from "./action.snackbar.generator";
7
+ import * as i0 from "@angular/core";
8
+ export declare const DBX_ACTION_SNACKBAR_SERVICE_CONFIG: InjectionToken<unknown>;
9
+ export declare const DEFAULT_SNACKBAR_DIRECTIVE_DURATION: number;
10
+ export interface DbxActionSnackbarEventMakeConfig {
11
+ [key: string]: DbxMakeActionSnackbarGeneratorConfiguration;
12
+ }
13
+ export interface DbxActionSnackbarServiceConfig<C = any> {
14
+ readonly componentClass: Type<C>;
15
+ readonly snackbar?: Pick<MatSnackBarConfig, 'horizontalPosition' | 'verticalPosition'>;
16
+ readonly defaultDuration?: Milliseconds;
17
+ readonly defaultUndoDuration?: Milliseconds;
18
+ readonly eventTypeConfigs: DbxActionSnackbarEventMakeConfig;
19
+ }
20
+ /**
21
+ * Used for managing/configuring the snackbar default values and pushing snackbar events.
22
+ */
23
+ export declare class DbxActionSnackbarService<C = DbxActionSnackbarComponent> {
24
+ readonly matSnackBar: MatSnackBar;
25
+ readonly config: DbxActionSnackbarServiceConfig<C>;
26
+ get componentClass(): Type<C>;
27
+ get eventTypeConfigs(): DbxActionSnackbarEventMakeConfig;
28
+ constructor(matSnackBar: MatSnackBar, inputConfig: Partial<DbxActionSnackbarServiceConfig<C>>);
29
+ /**
30
+ * Opens a new snackbar given the input configuration.
31
+ *
32
+ * @param config
33
+ * @returns
34
+ */
35
+ openSnackbar(config: DbxActionSnackbarDisplayConfig): MatSnackBarRef<C>;
36
+ generateDisplayConfig(type: Maybe<DbxActionSnackbarType>, input: DbxActionSnackbarGeneratorInput): Maybe<DbxActionSnackbarDisplayConfig>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSnackbarService<any>, [null, { optional: true; }]>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxActionSnackbarService<any>>;
39
+ }
@@ -0,0 +1,7 @@
1
+ export * from './action.snackbar.component';
2
+ export * from './action.snackbar.default';
3
+ export * from './action.snackbar.directive';
4
+ export * from './action.snackbar.generator';
5
+ export * from './action.snackbar.module';
6
+ export * from './action.snackbar.service';
7
+ export * from './action.snackbar';
@@ -2,7 +2,7 @@ import { OnInit, OnDestroy, ViewContainerRef } from '@angular/core';
2
2
  import { MatDialog } from '@angular/material/dialog';
3
3
  import { HookResult, Transition, TransitionService } from '@uirouter/core';
4
4
  import { Observable } from 'rxjs';
5
- import { ActionContextStoreSourceInstance } from '@dereekb/dbx-core';
5
+ import { DbxActionContextStoreSourceInstance } from '@dereekb/dbx-core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * How to handle transitions.
@@ -21,14 +21,14 @@ export declare type DbxActionTransitionSafetyType = 'none' | 'dialog' | 'auto';
21
21
  * NOTE: This dialog only works for uirouter.
22
22
  */
23
23
  export declare class DbxActionTransitionSafetyDirective<T, O> implements OnInit, OnDestroy {
24
- readonly source: ActionContextStoreSourceInstance<T, O>;
24
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
25
25
  protected readonly transitionService: TransitionService;
26
26
  protected readonly viewContainerRef: ViewContainerRef;
27
27
  protected readonly dialog: MatDialog;
28
28
  inputSafetyType?: DbxActionTransitionSafetyType;
29
29
  private _dialogRef?;
30
30
  private stopWatchingTransition?;
31
- constructor(source: ActionContextStoreSourceInstance<T, O>, transitionService: TransitionService, viewContainerRef: ViewContainerRef, dialog: MatDialog);
31
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>, transitionService: TransitionService, viewContainerRef: ViewContainerRef, dialog: MatDialog);
32
32
  get safetyType(): DbxActionTransitionSafetyType;
33
33
  private get _destroyed();
34
34
  ngOnInit(): void;
@@ -6,10 +6,31 @@ $button-spacer-width: 6px;
6
6
  // MARK: Mixin
7
7
  @mixin core() {
8
8
 
9
+ .dbx-wide-button {
10
+ .dbx-button {
11
+ min-width: 120px;
12
+ max-width: 100%;
13
+ }
14
+ }
15
+
16
+ .dbx-grow-button {
17
+ width: 100%;
18
+
19
+ .dbx-button {
20
+ width: 100%;
21
+ }
22
+ }
23
+
9
24
  .dbx-button-spacer {
10
25
  padding-right: $button-spacer-width;
11
26
  }
12
27
 
28
+ .dbx-spinner-custom.mat-progress-spinner.mat-accent circle,
29
+ .dbx-spinner-custom.mat-spinner.mat-accent circle {
30
+ // mat-spinners marked with dbx-spinner-custom should allow the stroke to be inherited.
31
+ stroke: unset !important;
32
+ }
33
+
13
34
  }
14
35
 
15
36
  @mixin color($theme-config) {}
@@ -1,6 +1,7 @@
1
1
  import { ThemePalette } from '@angular/material/core';
2
2
  import { AbstractDbxButtonDirective } from '@dereekb/dbx-core';
3
- import { MatProgressButtonOptions } from 'mat-progress-buttons';
3
+ import { Maybe } from '@dereekb/util';
4
+ import { DbxProgressButtonOptions } from './progress/button.progress.config';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare enum DbxButtonDisplayType {
6
7
  RAISED = 0,
@@ -19,7 +20,10 @@ export declare class DbxButtonComponent extends AbstractDbxButtonDirective {
19
20
  get flat(): boolean;
20
21
  set flat(flat: boolean);
21
22
  color: ThemePalette;
22
- get btnOptions(): MatProgressButtonOptions;
23
+ customButtonColor: Maybe<string>;
24
+ customTextColor: Maybe<string>;
25
+ customSpinnerColor: Maybe<string>;
26
+ get btnOptions(): DbxProgressButtonOptions;
23
27
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxButtonComponent, "dbx-button", never, { "type": "type"; "raised": "raised"; "stroked": "stroked"; "flat": "flat"; "color": "color"; }, {}, never, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxButtonComponent, "dbx-button", never, { "type": "type"; "raised": "raised"; "stroked": "stroked"; "flat": "flat"; "color": "color"; "customButtonColor": "customButtonColor"; "customTextColor": "customTextColor"; "customSpinnerColor": "customSpinnerColor"; }, {}, never, ["*"]>;
25
29
  }
@@ -2,9 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./button.component";
3
3
  import * as i2 from "./button.spacer.component";
4
4
  import * as i3 from "@angular/common";
5
- import * as i4 from "mat-progress-buttons";
5
+ import * as i4 from "./progress/button.progress.module";
6
+ import * as i5 from "@dereekb/dbx-core";
6
7
  export declare class DbxButtonModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxButtonModule, [typeof i1.DbxButtonComponent, typeof i2.DbxButtonSpacerComponent], [typeof i3.CommonModule, typeof i4.MatProgressButtonsModule], [typeof i4.MatProgressButtonsModule, typeof i1.DbxButtonComponent, typeof i2.DbxButtonSpacerComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxButtonModule, [typeof i1.DbxButtonComponent, typeof i2.DbxButtonSpacerDirective], [typeof i3.CommonModule, typeof i4.DbxProgressButtonsModule], [typeof i5.DbxCoreButtonModule, typeof i4.DbxProgressButtonsModule, typeof i1.DbxButtonComponent, typeof i2.DbxButtonSpacerDirective]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxButtonModule>;
10
11
  }
@@ -1,8 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  /**
3
- * Button spacer component.
3
+ * Button spacer directive.
4
4
  */
5
- export declare class DbxButtonSpacerComponent {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonSpacerComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxButtonSpacerComponent, "dbx-button-spacer", never, {}, {}, never, never>;
5
+ export declare class DbxButtonSpacerDirective {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonSpacerDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSpacerDirective, "dbx-button-spacer,dbxButtonSpacer", never, {}, {}, never>;
8
8
  }
@@ -1,3 +1,4 @@
1
+ export * from './progress';
1
2
  export * from './button.component';
2
3
  export * from './button.spacer.component';
3
4
  export * from './button.module';
@@ -0,0 +1,6 @@
1
+ import { AbstractProgressButtonDirective } from './base.progress.button.directive';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DbxBarButtonComponent extends AbstractProgressButtonDirective {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxBarButtonComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxBarButtonComponent, "dbx-bar-button", never, {}, {}, never, ["*"]>;
6
+ }
@@ -0,0 +1,23 @@
1
+ :host {
2
+ button {
3
+ &.working {
4
+ cursor: not-allowed;
5
+ }
6
+ &.fullWidth {
7
+ width: 100%;
8
+ }
9
+ .bar {
10
+ position:absolute;
11
+ top: 0;
12
+ left: 0;
13
+ }
14
+ mat-icon {
15
+ padding-right: 5px;
16
+ &.is-mat-icon {
17
+ font-size: 18px;
18
+ position: relative;
19
+ top: 3px;
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,37 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
3
+ import { Maybe } from '@dereekb/util';
4
+ import { Observable } from 'rxjs';
5
+ import { EventEmitter } from '@angular/core';
6
+ import { DbxProgressButtonGlobalConfig, DbxProgressButtonOptions } from './button.progress.config';
7
+ import * as i0 from "@angular/core";
8
+ export declare abstract class AbstractProgressButtonDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
9
+ private globalConfig;
10
+ readonly cdRef: ChangeDetectorRef;
11
+ private _computedOptions;
12
+ private _working;
13
+ private _disabled;
14
+ private _buttonId;
15
+ private _options;
16
+ readonly globalOptions$: Observable<Maybe<DbxProgressButtonOptions>>;
17
+ readonly options$: Observable<DbxProgressButtonOptions>;
18
+ readonly btnClick: EventEmitter<MouseEvent>;
19
+ constructor(globalConfig: DbxProgressButtonGlobalConfig, cdRef: ChangeDetectorRef);
20
+ ngOnInit(): void;
21
+ ngOnDestroy(): void;
22
+ handleClick(event: MouseEvent): void;
23
+ get options(): DbxProgressButtonOptions;
24
+ get customSpinnerStyle(): {
25
+ stroke: string;
26
+ } | undefined;
27
+ set options(options: DbxProgressButtonOptions);
28
+ set buttonId(buttonId: string);
29
+ /**
30
+ * @deprecated
31
+ */
32
+ set active(active: boolean);
33
+ set working(working: boolean);
34
+ set disabled(disabled: boolean);
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractProgressButtonDirective, [{ optional: true; }, null]>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractProgressButtonDirective, never, never, { "options": "options"; "buttonId": "buttonId"; "active": "active"; "working": "working"; "disabled": "disabled"; }, { "btnClick": "btnClick"; }, never>;
37
+ }
@@ -0,0 +1,51 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { ThemePalette } from '@angular/material/core';
3
+ import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
4
+ import { Maybe } from '@dereekb/util';
5
+ export interface DbxProgressButtonOptions {
6
+ /**
7
+ * @deprecated alias for working
8
+ */
9
+ active?: boolean;
10
+ working?: boolean;
11
+ text?: string;
12
+ spinnerText?: string;
13
+ buttonColor?: ThemePalette;
14
+ spinnerColor?: ThemePalette;
15
+ barColor?: ThemePalette;
16
+ raised?: boolean;
17
+ stroked?: boolean;
18
+ flat?: boolean;
19
+ fab?: boolean;
20
+ spinnerSize?: number;
21
+ spinnerRatio?: number;
22
+ mode?: ProgressSpinnerMode;
23
+ value?: number;
24
+ fullWidth?: boolean;
25
+ disabled?: boolean;
26
+ icon?: DbxProgressButtonIcon;
27
+ type?: string;
28
+ customStyle?: {
29
+ [key: string]: any;
30
+ };
31
+ customClass?: string;
32
+ /**
33
+ * Custom spinner color. Overrides the normal spinner color if provided.
34
+ */
35
+ customSpinnerColor?: Maybe<string>;
36
+ buttonIcon?: DbxProgressButtonIcon;
37
+ id?: string;
38
+ }
39
+ export interface DbxProgressButtonIcon {
40
+ color?: ThemePalette;
41
+ fontIcon?: string;
42
+ fontSet?: string;
43
+ inline?: boolean;
44
+ svgIcon?: string;
45
+ customClass?: string;
46
+ }
47
+ export interface DbxProgressButtonTargetedConfig extends DbxProgressButtonOptions {
48
+ id?: string;
49
+ }
50
+ export declare type DbxProgressButtonGlobalConfig = DbxProgressButtonTargetedConfig[];
51
+ export declare const DBX_MAT_PROGRESS_BUTTON_GLOBAL_CONFIG: InjectionToken<DbxProgressButtonGlobalConfig>;