@dereekb/dbx-web 0.0.1

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 (324) hide show
  1. package/README.md +7 -0
  2. package/dereekb-dbx-web.d.ts +5 -0
  3. package/esm2020/dereekb-dbx-web.mjs +5 -0
  4. package/esm2020/index.mjs +3 -0
  5. package/esm2020/lib/action/action.confirm.directive.mjs +52 -0
  6. package/esm2020/lib/action/action.module.mjs +63 -0
  7. package/esm2020/lib/action/action.snackbar.component.mjs +105 -0
  8. package/esm2020/lib/action/index.mjs +6 -0
  9. package/esm2020/lib/action/key.trigger.directive.mjs +40 -0
  10. package/esm2020/lib/action/transition/action.transition.module.mjs +50 -0
  11. package/esm2020/lib/action/transition/index.mjs +4 -0
  12. package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +61 -0
  13. package/esm2020/lib/action/transition/transition.safety.directive.mjs +156 -0
  14. package/esm2020/lib/button/button.component.mjs +92 -0
  15. package/esm2020/lib/button/button.module.mjs +43 -0
  16. package/esm2020/lib/button/button.spacer.component.mjs +18 -0
  17. package/esm2020/lib/button/index.mjs +4 -0
  18. package/esm2020/lib/dbx-web.module.mjs +50 -0
  19. package/esm2020/lib/error/error.action.directive.mjs +32 -0
  20. package/esm2020/lib/error/error.api.mjs +47 -0
  21. package/esm2020/lib/error/error.component.mjs +27 -0
  22. package/esm2020/lib/error/error.loading.directive.mjs +42 -0
  23. package/esm2020/lib/error/error.module.mjs +36 -0
  24. package/esm2020/lib/error/index.mjs +7 -0
  25. package/esm2020/lib/error/state.mjs +17 -0
  26. package/esm2020/lib/index.mjs +10 -0
  27. package/esm2020/lib/interaction/dialog/abstract.dialog.directive.mjs +27 -0
  28. package/esm2020/lib/interaction/dialog/index.mjs +2 -0
  29. package/esm2020/lib/interaction/index.mjs +5 -0
  30. package/esm2020/lib/interaction/popover/abstract.popover.directive.mjs +24 -0
  31. package/esm2020/lib/interaction/popover/abstract.popover.ref.directive.mjs +63 -0
  32. package/esm2020/lib/interaction/popover/index.mjs +15 -0
  33. package/esm2020/lib/interaction/popover/popover.action.button.directive.mjs +29 -0
  34. package/esm2020/lib/interaction/popover/popover.action.directive.mjs +83 -0
  35. package/esm2020/lib/interaction/popover/popover.component.mjs +143 -0
  36. package/esm2020/lib/interaction/popover/popover.content.component.mjs +55 -0
  37. package/esm2020/lib/interaction/popover/popover.controls.component.mjs +35 -0
  38. package/esm2020/lib/interaction/popover/popover.coordinator.component.mjs +44 -0
  39. package/esm2020/lib/interaction/popover/popover.coordinator.service.mjs +40 -0
  40. package/esm2020/lib/interaction/popover/popover.header.component.mjs +52 -0
  41. package/esm2020/lib/interaction/popover/popover.mjs +3 -0
  42. package/esm2020/lib/interaction/popover/popover.module.mjs +108 -0
  43. package/esm2020/lib/interaction/popover/popover.position.strategy.mjs +61 -0
  44. package/esm2020/lib/interaction/popover/popover.scroll.content.component.mjs +53 -0
  45. package/esm2020/lib/interaction/popover/popover.service.mjs +45 -0
  46. package/esm2020/lib/interaction/popup/abstract.popup.directive.mjs +21 -0
  47. package/esm2020/lib/interaction/popup/index.mjs +11 -0
  48. package/esm2020/lib/interaction/popup/popup.component.mjs +138 -0
  49. package/esm2020/lib/interaction/popup/popup.content.component.mjs +40 -0
  50. package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +72 -0
  51. package/esm2020/lib/interaction/popup/popup.controls.component.mjs +33 -0
  52. package/esm2020/lib/interaction/popup/popup.coordinator.component.mjs +44 -0
  53. package/esm2020/lib/interaction/popup/popup.coordinator.service.mjs +40 -0
  54. package/esm2020/lib/interaction/popup/popup.mjs +9 -0
  55. package/esm2020/lib/interaction/popup/popup.module.mjs +81 -0
  56. package/esm2020/lib/interaction/popup/popup.position.strategy.mjs +45 -0
  57. package/esm2020/lib/interaction/popup/popup.service.mjs +42 -0
  58. package/esm2020/lib/interaction/prompt/index.mjs +10 -0
  59. package/esm2020/lib/interaction/prompt/prompt.box.component.mjs +35 -0
  60. package/esm2020/lib/interaction/prompt/prompt.button.confirm.directive.mjs +35 -0
  61. package/esm2020/lib/interaction/prompt/prompt.component.mjs +21 -0
  62. package/esm2020/lib/interaction/prompt/prompt.confirm.component.mjs +51 -0
  63. package/esm2020/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +27 -0
  64. package/esm2020/lib/interaction/prompt/prompt.confirm.directive.mjs +69 -0
  65. package/esm2020/lib/interaction/prompt/prompt.confirm.mjs +9 -0
  66. package/esm2020/lib/interaction/prompt/prompt.module.mjs +77 -0
  67. package/esm2020/lib/interaction/prompt/prompt.page.component.mjs +32 -0
  68. package/esm2020/lib/keypress/index.mjs +3 -0
  69. package/esm2020/lib/keypress/keydown.listener.directive.mjs +45 -0
  70. package/esm2020/lib/keypress/keypress.module.mjs +26 -0
  71. package/esm2020/lib/layout/block/block.layout.module.mjs +37 -0
  72. package/esm2020/lib/layout/block/index.mjs +3 -0
  73. package/esm2020/lib/layout/block/two.block.component.mjs +55 -0
  74. package/esm2020/lib/layout/card/card.box.component.mjs +49 -0
  75. package/esm2020/lib/layout/card/card.box.container.component.mjs +25 -0
  76. package/esm2020/lib/layout/card/card.box.layout.module.mjs +35 -0
  77. package/esm2020/lib/layout/card/index.mjs +4 -0
  78. package/esm2020/lib/layout/column/column.layout.module.mjs +21 -0
  79. package/esm2020/lib/layout/column/index.mjs +4 -0
  80. package/esm2020/lib/layout/column/one/index.mjs +3 -0
  81. package/esm2020/lib/layout/column/one/one.column.component.mjs +46 -0
  82. package/esm2020/lib/layout/column/one/one.column.module.mjs +30 -0
  83. package/esm2020/lib/layout/column/two/index.mjs +9 -0
  84. package/esm2020/lib/layout/column/two/two.column.back.directive.mjs +33 -0
  85. package/esm2020/lib/layout/column/two/two.column.component.mjs +36 -0
  86. package/esm2020/lib/layout/column/two/two.column.full.left.directive.mjs +40 -0
  87. package/esm2020/lib/layout/column/two/two.column.head.component.mjs +30 -0
  88. package/esm2020/lib/layout/column/two/two.column.module.mjs +67 -0
  89. package/esm2020/lib/layout/column/two/two.column.right.component.mjs +55 -0
  90. package/esm2020/lib/layout/column/two/two.column.sref.directive.mjs +34 -0
  91. package/esm2020/lib/layout/column/two/two.column.store.mjs +80 -0
  92. package/esm2020/lib/layout/compact/compact.directive.mjs +30 -0
  93. package/esm2020/lib/layout/compact/compact.layout.module.mjs +29 -0
  94. package/esm2020/lib/layout/compact/compact.mjs +27 -0
  95. package/esm2020/lib/layout/compact/compact.store.mjs +19 -0
  96. package/esm2020/lib/layout/compact/index.mjs +5 -0
  97. package/esm2020/lib/layout/content/content.bordered.component.mjs +26 -0
  98. package/esm2020/lib/layout/content/content.component.mjs +32 -0
  99. package/esm2020/lib/layout/content/content.container.component.mjs +66 -0
  100. package/esm2020/lib/layout/content/content.container.fullwidth.component.mjs +26 -0
  101. package/esm2020/lib/layout/content/content.layout.module.mjs +44 -0
  102. package/esm2020/lib/layout/content/index.mjs +6 -0
  103. package/esm2020/lib/layout/dialog/dialog.content.component.mjs +37 -0
  104. package/esm2020/lib/layout/dialog/dialog.layout.module.mjs +29 -0
  105. package/esm2020/lib/layout/dialog/index.mjs +3 -0
  106. package/esm2020/lib/layout/flag/flag.component.mjs +36 -0
  107. package/esm2020/lib/layout/flag/flag.layout.module.mjs +38 -0
  108. package/esm2020/lib/layout/flag/flag.prompt.component.mjs +38 -0
  109. package/esm2020/lib/layout/flag/index.mjs +4 -0
  110. package/esm2020/lib/layout/index.mjs +13 -0
  111. package/esm2020/lib/layout/item/index.mjs +3 -0
  112. package/esm2020/lib/layout/item/item.icon.component.mjs +47 -0
  113. package/esm2020/lib/layout/item/item.layout.module.mjs +30 -0
  114. package/esm2020/lib/layout/layout.module.mjs +57 -0
  115. package/esm2020/lib/layout/list/index.mjs +3 -0
  116. package/esm2020/lib/layout/list/list.empty.component.mjs +26 -0
  117. package/esm2020/lib/layout/list/list.layout.module.mjs +26 -0
  118. package/esm2020/lib/layout/section/index.mjs +9 -0
  119. package/esm2020/lib/layout/section/section.box.anchor.component.mjs +39 -0
  120. package/esm2020/lib/layout/section/section.box.component.mjs +32 -0
  121. package/esm2020/lib/layout/section/section.component.mjs +54 -0
  122. package/esm2020/lib/layout/section/section.elevated.component.mjs +26 -0
  123. package/esm2020/lib/layout/section/section.intro.component.mjs +67 -0
  124. package/esm2020/lib/layout/section/section.layout.module.mjs +75 -0
  125. package/esm2020/lib/layout/section/section.page.component.mjs +46 -0
  126. package/esm2020/lib/layout/section/subsection.component.mjs +35 -0
  127. package/esm2020/lib/layout/step/index.mjs +3 -0
  128. package/esm2020/lib/layout/step/step.component.mjs +21 -0
  129. package/esm2020/lib/layout/step/step.layout.module.mjs +30 -0
  130. package/esm2020/lib/loading/basic-loading.component.mjs +116 -0
  131. package/esm2020/lib/loading/index.mjs +5 -0
  132. package/esm2020/lib/loading/loading-progress.component.mjs +69 -0
  133. package/esm2020/lib/loading/loading.component.mjs +95 -0
  134. package/esm2020/lib/loading/loading.module.mjs +53 -0
  135. package/esm2020/lib/router/anchor/anchor.component.mjs +50 -0
  136. package/esm2020/lib/router/anchor/anchor.icon.component.mjs +30 -0
  137. package/esm2020/lib/router/anchor/anchor.module.mjs +43 -0
  138. package/esm2020/lib/router/anchor/anchor.segue.directive.mjs +32 -0
  139. package/esm2020/lib/router/anchor/index.mjs +5 -0
  140. package/esm2020/lib/router/index.mjs +3 -0
  141. package/esm2020/lib/router/provider/index.mjs +4 -0
  142. package/esm2020/lib/router/provider/ngrouter/anchor.component.mjs +18 -0
  143. package/esm2020/lib/router/provider/ngrouter/angular.router.module.mjs +46 -0
  144. package/esm2020/lib/router/provider/ngrouter/index.mjs +3 -0
  145. package/esm2020/lib/router/provider/router.provider.config.mjs +3 -0
  146. package/esm2020/lib/router/provider/uirouter/anchor.component.mjs +18 -0
  147. package/esm2020/lib/router/provider/uirouter/index.mjs +3 -0
  148. package/esm2020/lib/router/provider/uirouter/uirouter.router.module.mjs +46 -0
  149. package/esm2020/lib/text/hint.component.mjs +15 -0
  150. package/esm2020/lib/text/index.mjs +13 -0
  151. package/esm2020/lib/text/label.bar.component.mjs +32 -0
  152. package/esm2020/lib/text/label.component.mjs +18 -0
  153. package/esm2020/lib/text/link.component.mjs +36 -0
  154. package/esm2020/lib/text/linkify.component.mjs +48 -0
  155. package/esm2020/lib/text/note.component.mjs +15 -0
  156. package/esm2020/lib/text/notice.component.mjs +15 -0
  157. package/esm2020/lib/text/ok.component.mjs +15 -0
  158. package/esm2020/lib/text/success.component.mjs +15 -0
  159. package/esm2020/lib/text/text.chips.component.mjs +32 -0
  160. package/esm2020/lib/text/text.module.mjs +92 -0
  161. package/esm2020/lib/text/warn.component.mjs +15 -0
  162. package/fesm2015/dereekb-dbx-web.mjs +4914 -0
  163. package/fesm2015/dereekb-dbx-web.mjs.map +1 -0
  164. package/fesm2020/dereekb-dbx-web.mjs +4885 -0
  165. package/fesm2020/dereekb-dbx-web.mjs.map +1 -0
  166. package/index.d.ts +2 -0
  167. package/lib/action/action.confirm.directive.d.ts +23 -0
  168. package/lib/action/action.module.d.ts +16 -0
  169. package/lib/action/action.snackbar.component.d.ts +22 -0
  170. package/lib/action/index.d.ts +5 -0
  171. package/lib/action/key.trigger.directive.d.ts +17 -0
  172. package/lib/action/transition/action.transition.module.d.ts +18 -0
  173. package/lib/action/transition/index.d.ts +3 -0
  174. package/lib/action/transition/transition.safety.dialog.component.d.ts +19 -0
  175. package/lib/action/transition/transition.safety.directive.d.ts +52 -0
  176. package/lib/button/button.component.d.ts +25 -0
  177. package/lib/button/button.module.d.ts +12 -0
  178. package/lib/button/button.spacer.component.d.ts +8 -0
  179. package/lib/button/index.d.ts +3 -0
  180. package/lib/dbx-web.module.d.ts +16 -0
  181. package/lib/error/error.action.directive.d.ts +15 -0
  182. package/lib/error/error.api.d.ts +13 -0
  183. package/lib/error/error.component.d.ts +14 -0
  184. package/lib/error/error.loading.directive.d.ts +19 -0
  185. package/lib/error/error.module.d.ts +10 -0
  186. package/lib/error/index.d.ts +6 -0
  187. package/lib/error/state.d.ts +15 -0
  188. package/lib/index.d.ts +9 -0
  189. package/lib/interaction/dialog/abstract.dialog.directive.d.ts +14 -0
  190. package/lib/interaction/dialog/index.d.ts +1 -0
  191. package/lib/interaction/index.d.ts +4 -0
  192. package/lib/interaction/popover/abstract.popover.directive.d.ts +13 -0
  193. package/lib/interaction/popover/abstract.popover.ref.directive.d.ts +30 -0
  194. package/lib/interaction/popover/index.d.ts +14 -0
  195. package/lib/interaction/popover/popover.action.button.directive.d.ts +14 -0
  196. package/lib/interaction/popover/popover.action.directive.d.ts +33 -0
  197. package/lib/interaction/popover/popover.component.d.ts +75 -0
  198. package/lib/interaction/popover/popover.content.component.d.ts +17 -0
  199. package/lib/interaction/popover/popover.controls.component.d.ts +10 -0
  200. package/lib/interaction/popover/popover.coordinator.component.d.ts +18 -0
  201. package/lib/interaction/popover/popover.coordinator.service.d.ts +14 -0
  202. package/lib/interaction/popover/popover.d.ts +16 -0
  203. package/lib/interaction/popover/popover.header.component.d.ts +12 -0
  204. package/lib/interaction/popover/popover.module.d.ts +26 -0
  205. package/lib/interaction/popover/popover.position.strategy.d.ts +11 -0
  206. package/lib/interaction/popover/popover.scroll.content.component.d.ts +14 -0
  207. package/lib/interaction/popover/popover.service.d.ts +22 -0
  208. package/lib/interaction/popup/abstract.popup.directive.d.ts +12 -0
  209. package/lib/interaction/popup/index.d.ts +10 -0
  210. package/lib/interaction/popup/popup.component.d.ts +60 -0
  211. package/lib/interaction/popup/popup.content.component.d.ts +12 -0
  212. package/lib/interaction/popup/popup.controls.buttons.component.d.ts +18 -0
  213. package/lib/interaction/popup/popup.controls.component.d.ts +9 -0
  214. package/lib/interaction/popup/popup.coordinator.component.d.ts +18 -0
  215. package/lib/interaction/popup/popup.coordinator.service.d.ts +15 -0
  216. package/lib/interaction/popup/popup.d.ts +25 -0
  217. package/lib/interaction/popup/popup.module.d.ts +20 -0
  218. package/lib/interaction/popup/popup.position.strategy.d.ts +18 -0
  219. package/lib/interaction/popup/popup.service.d.ts +20 -0
  220. package/lib/interaction/prompt/index.d.ts +9 -0
  221. package/lib/interaction/prompt/prompt.box.component.d.ts +8 -0
  222. package/lib/interaction/prompt/prompt.button.confirm.directive.d.ts +17 -0
  223. package/lib/interaction/prompt/prompt.component.d.ts +12 -0
  224. package/lib/interaction/prompt/prompt.confirm.component.d.ts +34 -0
  225. package/lib/interaction/prompt/prompt.confirm.d.ts +7 -0
  226. package/lib/interaction/prompt/prompt.confirm.dialog.component.d.ts +12 -0
  227. package/lib/interaction/prompt/prompt.confirm.directive.d.ts +31 -0
  228. package/lib/interaction/prompt/prompt.module.d.ts +20 -0
  229. package/lib/interaction/prompt/prompt.page.component.d.ts +5 -0
  230. package/lib/keypress/index.d.ts +2 -0
  231. package/lib/keypress/keydown.listener.directive.d.ts +12 -0
  232. package/lib/keypress/keypress.module.d.ts +8 -0
  233. package/lib/layout/block/block.layout.module.d.ts +13 -0
  234. package/lib/layout/block/index.d.ts +2 -0
  235. package/lib/layout/block/two.block.component.d.ts +16 -0
  236. package/lib/layout/card/card.box.component.d.ts +10 -0
  237. package/lib/layout/card/card.box.container.component.d.ts +8 -0
  238. package/lib/layout/card/card.box.layout.module.d.ts +10 -0
  239. package/lib/layout/card/index.d.ts +3 -0
  240. package/lib/layout/column/column.layout.module.d.ts +8 -0
  241. package/lib/layout/column/index.d.ts +3 -0
  242. package/lib/layout/column/one/index.d.ts +2 -0
  243. package/lib/layout/column/one/one.column.component.d.ts +12 -0
  244. package/lib/layout/column/one/one.column.module.d.ts +9 -0
  245. package/lib/layout/column/two/index.d.ts +8 -0
  246. package/lib/layout/column/two/two.column.back.directive.d.ts +16 -0
  247. package/lib/layout/column/two/two.column.component.d.ts +21 -0
  248. package/lib/layout/column/two/two.column.full.left.directive.d.ts +18 -0
  249. package/lib/layout/column/two/two.column.head.component.d.ts +10 -0
  250. package/lib/layout/column/two/two.column.module.d.ts +17 -0
  251. package/lib/layout/column/two/two.column.right.component.d.ts +24 -0
  252. package/lib/layout/column/two/two.column.sref.directive.d.ts +14 -0
  253. package/lib/layout/column/two/two.column.store.d.ts +67 -0
  254. package/lib/layout/compact/compact.d.ts +16 -0
  255. package/lib/layout/compact/compact.directive.d.ts +14 -0
  256. package/lib/layout/compact/compact.layout.module.d.ts +11 -0
  257. package/lib/layout/compact/compact.store.d.ts +13 -0
  258. package/lib/layout/compact/index.d.ts +4 -0
  259. package/lib/layout/content/content.bordered.component.d.ts +8 -0
  260. package/lib/layout/content/content.component.d.ts +9 -0
  261. package/lib/layout/content/content.container.component.d.ts +34 -0
  262. package/lib/layout/content/content.container.fullwidth.component.d.ts +8 -0
  263. package/lib/layout/content/content.layout.module.d.ts +14 -0
  264. package/lib/layout/content/index.d.ts +5 -0
  265. package/lib/layout/dialog/dialog.content.component.d.ts +13 -0
  266. package/lib/layout/dialog/dialog.layout.module.d.ts +11 -0
  267. package/lib/layout/dialog/index.d.ts +2 -0
  268. package/lib/layout/flag/flag.component.d.ts +10 -0
  269. package/lib/layout/flag/flag.layout.module.d.ts +13 -0
  270. package/lib/layout/flag/flag.prompt.component.d.ts +11 -0
  271. package/lib/layout/flag/index.d.ts +3 -0
  272. package/lib/layout/index.d.ts +12 -0
  273. package/lib/layout/item/index.d.ts +2 -0
  274. package/lib/layout/item/item.icon.component.d.ts +10 -0
  275. package/lib/layout/item/item.layout.module.d.ts +9 -0
  276. package/lib/layout/layout.module.d.ts +17 -0
  277. package/lib/layout/list/index.d.ts +2 -0
  278. package/lib/layout/list/list.empty.component.d.ts +8 -0
  279. package/lib/layout/list/list.layout.module.d.ts +8 -0
  280. package/lib/layout/section/index.d.ts +8 -0
  281. package/lib/layout/section/section.box.anchor.component.d.ts +11 -0
  282. package/lib/layout/section/section.box.component.d.ts +9 -0
  283. package/lib/layout/section/section.component.d.ts +12 -0
  284. package/lib/layout/section/section.elevated.component.d.ts +8 -0
  285. package/lib/layout/section/section.intro.component.d.ts +16 -0
  286. package/lib/layout/section/section.layout.module.d.ts +21 -0
  287. package/lib/layout/section/section.page.component.d.ts +10 -0
  288. package/lib/layout/section/subsection.component.d.ts +9 -0
  289. package/lib/layout/step/index.d.ts +2 -0
  290. package/lib/layout/step/step.component.d.ts +9 -0
  291. package/lib/layout/step/step.layout.module.d.ts +9 -0
  292. package/lib/loading/basic-loading.component.d.ts +46 -0
  293. package/lib/loading/index.d.ts +4 -0
  294. package/lib/loading/loading-progress.component.d.ts +24 -0
  295. package/lib/loading/loading.component.d.ts +37 -0
  296. package/lib/loading/loading.module.d.ts +13 -0
  297. package/lib/router/anchor/anchor.component.d.ts +24 -0
  298. package/lib/router/anchor/anchor.icon.component.d.ts +11 -0
  299. package/lib/router/anchor/anchor.module.d.ts +12 -0
  300. package/lib/router/anchor/anchor.segue.directive.d.ts +20 -0
  301. package/lib/router/anchor/index.d.ts +4 -0
  302. package/lib/router/index.d.ts +2 -0
  303. package/lib/router/provider/index.d.ts +3 -0
  304. package/lib/router/provider/ngrouter/anchor.component.d.ts +9 -0
  305. package/lib/router/provider/ngrouter/angular.router.module.d.ts +12 -0
  306. package/lib/router/provider/ngrouter/index.d.ts +2 -0
  307. package/lib/router/provider/router.provider.config.d.ts +7 -0
  308. package/lib/router/provider/uirouter/anchor.component.d.ts +9 -0
  309. package/lib/router/provider/uirouter/index.d.ts +2 -0
  310. package/lib/router/provider/uirouter/uirouter.router.module.d.ts +12 -0
  311. package/lib/text/hint.component.d.ts +5 -0
  312. package/lib/text/index.d.ts +12 -0
  313. package/lib/text/label.bar.component.d.ts +10 -0
  314. package/lib/text/label.component.d.ts +8 -0
  315. package/lib/text/link.component.d.ts +9 -0
  316. package/lib/text/linkify.component.d.ts +18 -0
  317. package/lib/text/note.component.d.ts +5 -0
  318. package/lib/text/notice.component.d.ts +5 -0
  319. package/lib/text/ok.component.d.ts +5 -0
  320. package/lib/text/success.component.d.ts +5 -0
  321. package/lib/text/text.chips.component.d.ts +13 -0
  322. package/lib/text/text.module.d.ts +22 -0
  323. package/lib/text/warn.component.d.ts +5 -0
  324. package/package.json +59 -0
@@ -0,0 +1,23 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { AbstractPromptConfirmDirective } from '../interaction/prompt/prompt.confirm.directive';
4
+ import { DbNgxPromptConfirmConfig } from '../interaction/prompt/prompt.confirm.component';
5
+ import { ActionContextStoreSourceInstance } from '@dereekb/dbx-core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Directive that when triggered shows a dialog to accept or reject.
9
+ *
10
+ * This only works to pass a ready value or reject through, not to work with a button.
11
+ * For button usage, use an appPromptConfirmButton directive.
12
+ */
13
+ export declare class DbNgxActionConfirmDirective<T, O> extends AbstractPromptConfirmDirective implements OnInit, OnDestroy {
14
+ readonly source: ActionContextStoreSourceInstance<T, O>;
15
+ config?: DbNgxPromptConfirmConfig;
16
+ private _sourceSubscription;
17
+ constructor(source: ActionContextStoreSourceInstance<T, O>, dialog: MatDialog);
18
+ ngOnInit(): void;
19
+ ngOnDestroy(): void;
20
+ protected _handleDialogResult(result: boolean): boolean;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxActionConfirmDirective<any, any>, [{ host: true; }, null]>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbNgxActionConfirmDirective<any, any>, "[dbxActionConfirm]", never, { "config": "dbxActionConfirm"; }, {}, never>;
23
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./key.trigger.directive";
3
+ import * as i2 from "./action.snackbar.component";
4
+ import * as i3 from "./action.confirm.directive";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@dereekb/dbx-core";
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";
12
+ export declare class DbNgxActionModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxActionModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxActionModule, [typeof i1.DbNgxActionKeyTriggerDirective, typeof i2.DbNgxActionSnackbarComponent, typeof i3.DbNgxActionConfirmDirective], [typeof i4.CommonModule, typeof i5.DbNgxCoreActionModule, typeof i6.DbNgxButtonModule, typeof i7.MatSnackBarModule, typeof i8.MatDialogModule, typeof i9.MatButtonModule, typeof i10.DbNgxPromptModule], [typeof i5.DbNgxCoreActionModule, typeof i1.DbNgxActionKeyTriggerDirective, typeof i2.DbNgxActionSnackbarComponent, typeof i3.DbNgxActionConfirmDirective]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxActionModule>;
16
+ }
@@ -0,0 +1,22 @@
1
+ import { Observable } from 'rxjs';
2
+ import { MatSnackBarRef } from '@angular/material/snack-bar';
3
+ import { Maybe } from '@dereekb/util';
4
+ import { ActionContextStoreSourceInstance, DbNgxActionSnackbarComponentConfig } from '@dereekb/dbx-core';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Component for a snackbar that contains an action.
8
+ */
9
+ export declare class DbNgxActionSnackbarComponent {
10
+ readonly snackbar: MatSnackBarRef<DbNgxActionSnackbarComponent>;
11
+ readonly data: DbNgxActionSnackbarComponentConfig;
12
+ constructor(snackbar: MatSnackBarRef<DbNgxActionSnackbarComponent>, data: DbNgxActionSnackbarComponentConfig);
13
+ readonly complete$: Observable<boolean>;
14
+ readonly snackbarStatusClass$: Observable<string>;
15
+ get message(): Maybe<string>;
16
+ get action(): string;
17
+ get actionSourceInstance(): ActionContextStoreSourceInstance;
18
+ dismissEarly: () => void;
19
+ dismiss: () => void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxActionSnackbarComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxActionSnackbarComponent, "ng-component", never, {}, {}, never, never>;
22
+ }
@@ -0,0 +1,5 @@
1
+ export * from './transition';
2
+ export * from './action.confirm.directive';
3
+ export * from './action.module';
4
+ export * from './action.snackbar.component';
5
+ export * from './key.trigger.directive';
@@ -0,0 +1,17 @@
1
+ import { Maybe } from '@dereekb/util';
2
+ import { ActionContextStoreSourceInstance } from '@dereekb/dbx-core';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Directive that triggers the action on a specific key up event.
6
+ *
7
+ * Events/Keys to respond to should be lowercase.
8
+ */
9
+ export declare class DbNgxActionKeyTriggerDirective<T = any, O = any> {
10
+ readonly source: ActionContextStoreSourceInstance<T, O>;
11
+ inputKey: Maybe<string>;
12
+ constructor(source: ActionContextStoreSourceInstance<T, O>);
13
+ get key(): string;
14
+ onKeyupHandler(event: KeyboardEvent): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxActionKeyTriggerDirective<any, any>, [{ host: true; }]>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbNgxActionKeyTriggerDirective<any, any>, "[dbxActionKeyTrigger]", never, { "inputKey": "dbxActionKeyTrigger"; }, {}, never>;
17
+ }
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./transition.safety.directive";
3
+ import * as i2 from "./transition.safety.dialog.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@dereekb/dbx-core";
6
+ import * as i5 from "../../interaction/prompt/prompt.module";
7
+ import * as i6 from "../../button/button.module";
8
+ import * as i7 from "../../error/error.module";
9
+ /**
10
+ * Provides the DbNgxActionUIRouterTransitionSafetyDirective.
11
+ *
12
+ * NOTE: Only works with UIRouter
13
+ */
14
+ export declare class DbNgxActionUIRouterTransitionModule {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxActionUIRouterTransitionModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxActionUIRouterTransitionModule, [typeof i1.DbNgxActionTransitionSafetyDirective, typeof i2.DbNgxActionUIRouterTransitionSafetyDialogComponent], [typeof i3.CommonModule, typeof i4.DbNgxCoreActionModule, typeof i5.DbNgxPromptModule, typeof i6.DbNgxButtonModule, typeof i7.DbNgxReadableErrorModule], [typeof i1.DbNgxActionTransitionSafetyDirective]>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxActionUIRouterTransitionModule>;
18
+ }
@@ -0,0 +1,3 @@
1
+ export * from './action.transition.module';
2
+ export * from './transition.safety.dialog.component';
3
+ export * from './transition.safety.directive';
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { DbNgxPromptConfirmConfig, AbstractDialogDirective } from '../../interaction';
3
+ import * as i0 from "@angular/core";
4
+ export declare enum DbNgxActionTransitionSafetyDialogResult {
5
+ SUCCESS = 0,
6
+ STAY = 1,
7
+ DISCARD = 2,
8
+ NONE = 3
9
+ }
10
+ /**
11
+ * Dialog that is shown/triggered as part of the DbNgxActionTransitionSafety
12
+ */
13
+ export declare class DbNgxActionUIRouterTransitionSafetyDialogComponent extends AbstractDialogDirective implements OnInit {
14
+ config: DbNgxPromptConfirmConfig;
15
+ confirm(): void;
16
+ cancel(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxActionUIRouterTransitionSafetyDialogComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxActionUIRouterTransitionSafetyDialogComponent, "ng-component", never, {}, {}, never, never>;
19
+ }
@@ -0,0 +1,52 @@
1
+ import { OnInit, OnDestroy, ViewContainerRef } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { HookResult, Transition, TransitionService } from '@uirouter/core';
4
+ import { Observable } from 'rxjs';
5
+ import { ActionContextStoreSourceInstance } from '@dereekb/dbx-core';
6
+ import * as i0 from "@angular/core";
7
+ export declare enum DbNgxActionTransitionSafetyType {
8
+ /**
9
+ * Nothing occurs.
10
+ */
11
+ NONE = "none",
12
+ /**
13
+ * Always show a dialog and act based on the result.
14
+ */
15
+ DIALOG = "dialog",
16
+ /**
17
+ * Try to auto-trigger if in a triggerable state.
18
+ *
19
+ * If it is modified but in a non-triggerable state show a dialog.
20
+ *
21
+ * Should be used in conjuction with the auto-saver.
22
+ */
23
+ AUTO_TRIGGER = "auto"
24
+ }
25
+ /**
26
+ * Context used for preventing a transition from occuring if the action is not complete or is in a modified state.
27
+ *
28
+ * This can be configured to auto-trigger and wait, or show a dialog and wait for the user's feedback before doing anything.
29
+ *
30
+ * NOTE: This dialog only works for uirouter.
31
+ */
32
+ export declare class DbNgxActionTransitionSafetyDirective<T, O> implements OnInit, OnDestroy {
33
+ readonly source: ActionContextStoreSourceInstance<T, O>;
34
+ protected readonly transitionService: TransitionService;
35
+ protected readonly viewContainerRef: ViewContainerRef;
36
+ protected readonly dialog: MatDialog;
37
+ inputSafetyType?: DbNgxActionTransitionSafetyType;
38
+ private _dialogRef?;
39
+ private stopWatchingTransition?;
40
+ constructor(source: ActionContextStoreSourceInstance<T, O>, transitionService: TransitionService, viewContainerRef: ViewContainerRef, dialog: MatDialog);
41
+ get safetyType(): DbNgxActionTransitionSafetyType;
42
+ private get _destroyed();
43
+ ngOnInit(): void;
44
+ ngOnDestroy(): void;
45
+ protected _handleOnBeforeTransition(transition: Transition): HookResult;
46
+ protected _handleIsModifiedState(transition: Transition): Observable<HookResult>;
47
+ private _autoTrigger;
48
+ private _showDialog;
49
+ private _closeDialog;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxActionTransitionSafetyDirective<any, any>, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbNgxActionTransitionSafetyDirective<any, any>, "[dbxActionTransitionSafety]", never, { "inputSafetyType": "dbxActionTransitionSafety"; }, {}, never>;
52
+ }
@@ -0,0 +1,25 @@
1
+ import { ThemePalette } from '@angular/material/core';
2
+ import { AbstractDbNgxButtonDirective } from '@dereekb/dbx-core';
3
+ import { MatProgressButtonOptions } from 'mat-progress-buttons';
4
+ import * as i0 from "@angular/core";
5
+ export declare enum DbNgxButtonDisplayType {
6
+ RAISED = 0,
7
+ STROKED = 1,
8
+ FLAT = 2
9
+ }
10
+ /**
11
+ * Complex button that supports loading states.
12
+ */
13
+ export declare class DbNgxButtonComponent extends AbstractDbNgxButtonDirective {
14
+ type?: DbNgxButtonDisplayType;
15
+ get raised(): boolean;
16
+ set raised(raised: boolean);
17
+ get stroked(): boolean;
18
+ set stroked(stroked: boolean);
19
+ get flat(): boolean;
20
+ set flat(flat: boolean);
21
+ color: ThemePalette;
22
+ get btnOptions(): MatProgressButtonOptions;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxButtonComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxButtonComponent, "dbx-button", never, { "type": "type"; "raised": "raised"; "stroked": "stroked"; "flat": "flat"; "color": "color"; }, {}, never, never>;
25
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./button.component";
3
+ import * as i2 from "./button.spacer.component";
4
+ import * as i3 from "@angular/platform-browser";
5
+ import * as i4 from "@angular/material/icon";
6
+ import * as i5 from "@angular/material/button";
7
+ import * as i6 from "mat-progress-buttons";
8
+ export declare class DbNgxButtonModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxButtonModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxButtonModule, [typeof i1.DbNgxButtonComponent, typeof i2.DbNgxButtonSpacerComponent], [typeof i3.BrowserModule, typeof i4.MatIconModule, typeof i5.MatButtonModule, typeof i6.MatProgressButtonsModule], [typeof i1.DbNgxButtonComponent, typeof i2.DbNgxButtonSpacerComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxButtonModule>;
12
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Button spacer component.
4
+ */
5
+ export declare class DbNgxButtonSpacerComponent {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxButtonSpacerComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxButtonSpacerComponent, "dbx-button-spacer", never, {}, {}, never, never>;
8
+ }
@@ -0,0 +1,3 @@
1
+ export * from './button.component';
2
+ export * from './button.spacer.component';
3
+ export * from './button.module';
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./button/button.module";
3
+ import * as i2 from "./action/action.module";
4
+ import * as i3 from "./loading/loading.module";
5
+ import * as i4 from "@angular/platform-browser";
6
+ import * as i5 from "mat-progress-buttons";
7
+ export declare class DbNgxWebModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxWebModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxWebModule, never, never, [typeof i1.DbNgxButtonModule, typeof i2.DbNgxActionModule, typeof i3.DbNgxLoadingModule]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxWebModule>;
11
+ }
12
+ export declare class DbNgxSharedWebModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxSharedWebModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxSharedWebModule, never, [typeof i4.BrowserModule, typeof DbNgxWebModule, typeof i5.MatProgressButtonsModule], [typeof DbNgxWebModule]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxSharedWebModule>;
16
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActionContextStoreSourceInstance, AbstractSubscriptionDirective } from '@dereekb/dbx-core';
3
+ import { DbNgxReadableErrorComponent } from './error.component';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Context used for linking an ReadableErrorComponent to an ActionContext.
7
+ */
8
+ export declare class DbNgxActionErrorDirective extends AbstractSubscriptionDirective implements OnInit {
9
+ readonly error: DbNgxReadableErrorComponent;
10
+ readonly source: ActionContextStoreSourceInstance;
11
+ constructor(error: DbNgxReadableErrorComponent, source: ActionContextStoreSourceInstance);
12
+ ngOnInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxActionErrorDirective, [{ host: true; }, null]>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbNgxActionErrorDirective, "[dbxActionError]", never, {}, {}, never>;
15
+ }
@@ -0,0 +1,13 @@
1
+ import { HttpErrorResponse } from '@angular/common/http';
2
+ import { ServerError, ServerErrorResponse } from '@dereekb/util';
3
+ /**
4
+ * Converts the error response to a POJO.
5
+ */
6
+ export declare function convertToPOJOServerErrorResponse(httpError: HttpErrorResponse | any): ServerError;
7
+ /**
8
+ * Converts an HTTP Error Response to a ServerErrorResponse type.
9
+ *
10
+ * @param error
11
+ * @returns
12
+ */
13
+ export declare function convertToServerErrorResponse(error: HttpErrorResponse | any): ServerErrorResponse | undefined;
@@ -0,0 +1,14 @@
1
+ import { Maybe } from '@dereekb/util';
2
+ import { ErrorInput, ReadableError } from '@dereekb/util';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Basic error component.
6
+ */
7
+ export declare class DbNgxReadableErrorComponent {
8
+ private _error?;
9
+ get error(): Maybe<ReadableError>;
10
+ set error(error: Maybe<ErrorInput | ReadableError>);
11
+ get message(): Maybe<string>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxReadableErrorComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxReadableErrorComponent, "dbx-error", never, { "error": "error"; }, {}, never, never>;
14
+ }
@@ -0,0 +1,19 @@
1
+ import { LoadingContext } from '@dereekb/rxjs';
2
+ import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
3
+ import { DbNgxReadableErrorComponent } from './error.component';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Context used for linking an ReadableErrorComponent to a LoadingContext.
7
+ *
8
+ * The error from the context is given to the app error when available.
9
+ */
10
+ export declare class DbNgxLoadingErrorDirective extends AbstractSubscriptionDirective {
11
+ readonly error: DbNgxReadableErrorComponent;
12
+ constructor(error: DbNgxReadableErrorComponent);
13
+ /**
14
+ * Sets a LoadingContext that is watched for the loading state.
15
+ */
16
+ set context(context: LoadingContext);
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxLoadingErrorDirective, [{ host: true; }]>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbNgxLoadingErrorDirective, "[dbxLoadingError]", never, { "context": "dbxLoadingError"; }, {}, never>;
19
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./error.component";
3
+ import * as i2 from "./error.loading.directive";
4
+ import * as i3 from "./error.action.directive";
5
+ import * as i4 from "@angular/common";
6
+ export declare class DbNgxReadableErrorModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxReadableErrorModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbNgxReadableErrorModule, [typeof i1.DbNgxReadableErrorComponent, typeof i2.DbNgxLoadingErrorDirective, typeof i3.DbNgxActionErrorDirective], [typeof i4.CommonModule], [typeof i1.DbNgxReadableErrorComponent, typeof i2.DbNgxLoadingErrorDirective, typeof i3.DbNgxActionErrorDirective]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbNgxReadableErrorModule>;
10
+ }
@@ -0,0 +1,6 @@
1
+ export * from './error.action.directive';
2
+ export * from './error.api';
3
+ export * from './error.component';
4
+ export * from './error.loading.directive';
5
+ export * from './error.module';
6
+ export * from './state';
@@ -0,0 +1,15 @@
1
+ import { HttpErrorResponse } from '@angular/common/http';
2
+ import { OperatorFunction } from 'rxjs';
3
+ import { ActionCreator, TypedAction } from '@ngrx/store/src/models';
4
+ import { ServerError } from '@dereekb/util';
5
+ export interface ServerErrorParams {
6
+ error: ServerError;
7
+ }
8
+ /**
9
+ * Converts the error response to ServerErrorParams.
10
+ */
11
+ export declare function convertServerErrorParams(httpError: HttpErrorResponse | any): ServerErrorParams;
12
+ /**
13
+ * Catches error server params and feeds them to an action that takes ServerErrorParams as a prop.
14
+ */
15
+ export declare function catchErrorServerParams<E extends ServerErrorParams, T extends string>(action: ActionCreator<T, (props: E) => E & TypedAction<T>>, mapError?: (error: ServerErrorParams) => E): OperatorFunction<HttpErrorResponse | any, E & TypedAction<T>>;
package/lib/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ export * from './action';
2
+ export * from './button';
3
+ export * from './error';
4
+ export * from './interaction';
5
+ export * from './keypress';
6
+ export * from './loading';
7
+ export * from './layout';
8
+ export * from './router';
9
+ export * from './text';
@@ -0,0 +1,14 @@
1
+ import { NgZone } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { AbstractTransitionWatcherDirective, DbNgxRouterTransitionService } from '@dereekb/dbx-core';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Abstract dialog component that closes when a transition is successful.
7
+ */
8
+ export declare abstract class AbstractDialogDirective<T = any, R = any> extends AbstractTransitionWatcherDirective {
9
+ readonly dialogRef: MatDialogRef<T, R>;
10
+ constructor(dialogRef: MatDialogRef<T, R>, dbNgxRouterTransitionService: DbNgxRouterTransitionService, ngZone: NgZone);
11
+ protected updateForSuccessfulTransition(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDialogDirective<any, any>, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDialogDirective<any, any>, never, never, {}, {}, never>;
14
+ }
@@ -0,0 +1 @@
1
+ export * from './abstract.dialog.directive';
@@ -0,0 +1,4 @@
1
+ export * from './dialog';
2
+ export * from './popover';
3
+ export * from './popup';
4
+ export * from './prompt';
@@ -0,0 +1,13 @@
1
+ import { DbNgxPopoverComponent } from './popover.component';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Abstract popover directive.
5
+ */
6
+ export declare abstract class AbstractPopoverDirective<I = any, O = any, T = any> {
7
+ readonly popover: DbNgxPopoverComponent<I, O, T>;
8
+ constructor(popover: DbNgxPopoverComponent<I, O, T>);
9
+ closePopover(): void;
10
+ returnAndClosePopover(value: O): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractPopoverDirective<any, any, any>, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractPopoverDirective<any, any, any>, never, never, {}, {}, never>;
13
+ }
@@ -0,0 +1,30 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
3
+ import { EventEmitter } from '@angular/core';
4
+ import { NgPopoverCloseEvent, NgPopoverRef } from 'ng-overlay-container';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Abstract class for showing and handling a popover ref.
8
+ */
9
+ export declare abstract class AbstractPopoverRefDirective<T = any, R = any> extends AbstractSubscriptionDirective {
10
+ private _popoverRef?;
11
+ showPopover(): void;
12
+ private _showPopoverRef;
13
+ protected abstract _makePopoverRef(): NgPopoverRef<T, R>;
14
+ protected _afterOpened(popoverRef: NgPopoverRef<T, R>): void;
15
+ protected _afterClosed(value: NgPopoverCloseEvent<R>): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractPopoverRefDirective<any, any>, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractPopoverRefDirective<any, any>, never, never, {}, {}, never>;
18
+ }
19
+ /**
20
+ * {@link AbstractPopoverRefDirective} extension that includes open/closed events.
21
+ */
22
+ export declare abstract class AbstractPopoverRefWithEventsDirective<T = any, R = any> extends AbstractPopoverRefDirective<T, R> implements OnDestroy {
23
+ readonly popoverOpened: EventEmitter<NgPopoverRef<T, R>>;
24
+ readonly popoverClosed: EventEmitter<NgPopoverCloseEvent<R>>;
25
+ ngOnDestroy(): void;
26
+ protected _afterOpened(popoverRef: NgPopoverRef<T, R>): void;
27
+ protected _afterClosed(event: NgPopoverCloseEvent<R>): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractPopoverRefWithEventsDirective<any, any>, never>;
29
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractPopoverRefWithEventsDirective<any, any>, never, never, {}, { "popoverOpened": "popoverOpened"; "popoverClosed": "popoverClosed"; }, never>;
30
+ }
@@ -0,0 +1,14 @@
1
+ export * from './abstract.popover.directive';
2
+ export * from './abstract.popover.ref.directive';
3
+ export * from './popover.action.button.directive';
4
+ export * from './popover.action.directive';
5
+ export * from './popover.component';
6
+ export * from './popover.content.component';
7
+ export * from './popover.controls.component';
8
+ export * from './popover.coordinator.component';
9
+ export * from './popover.coordinator.service';
10
+ export * from './popover.header.component';
11
+ export * from './popover.module';
12
+ export * from './popover.position.strategy';
13
+ export * from './popover.scroll.content.component';
14
+ export * from './popover.service';
@@ -0,0 +1,14 @@
1
+ import { NgZone } from '@angular/core';
2
+ import { DbNgxButtonDirective, DbNgxActionButtonDirective, ActionContextStoreSourceInstance } from '@dereekb/dbx-core';
3
+ import { DbNgxPopoverActionDirective } from './popover.action.directive';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Action directive that is used to link an DbNgxButton to an DbNgxPopoverActionDirective.
7
+ */
8
+ export declare class DbNgxPopoverActionButtonDirective extends DbNgxActionButtonDirective {
9
+ readonly appPopoverActionDirective: DbNgxPopoverActionDirective;
10
+ constructor(button: DbNgxButtonDirective, source: ActionContextStoreSourceInstance, ngZone: NgZone, appPopoverActionDirective: DbNgxPopoverActionDirective);
11
+ protected _buttonClicked(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxPopoverActionButtonDirective, [{ host: true; }, null, null, null]>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbNgxPopoverActionButtonDirective, "[dbxPopoverActionButton]", never, {}, {}, never>;
14
+ }
@@ -0,0 +1,33 @@
1
+ import { Observable } from 'rxjs';
2
+ import { OnInit, OnDestroy, ElementRef } from '@angular/core';
3
+ import { NgPopoverCloseEvent, NgPopoverRef } from 'ng-overlay-container';
4
+ import { AbstractPopoverRefWithEventsDirective } from './abstract.popover.ref.directive';
5
+ import { ActionContextStoreSourceInstance } from '@dereekb/dbx-core';
6
+ import * as i0 from "@angular/core";
7
+ export interface DbNgxPopoverActionFnParam {
8
+ origin: ElementRef;
9
+ }
10
+ export declare type DbNgxPopoverActionFn<T = object> = (params: DbNgxPopoverActionFnParam) => NgPopoverRef<any, T>;
11
+ export declare type DbNgxPopoverActionModifiedFn<T = any> = (value: T) => Observable<boolean>;
12
+ /**
13
+ * Action directive that is used to trigger/display a popover,
14
+ * then watches that popover for a value.
15
+ *
16
+ * The value is passed to the isModified function (ifProvided), and if that returns true it will
17
+ */
18
+ export declare class DbNgxPopoverActionDirective<T = object> extends AbstractPopoverRefWithEventsDirective<any, T> implements OnInit, OnDestroy {
19
+ readonly elementRef: ElementRef;
20
+ readonly source: ActionContextStoreSourceInstance<T, any>;
21
+ fn?: DbNgxPopoverActionFn<T>;
22
+ appPopoverActionModified?: DbNgxPopoverActionModifiedFn<T>;
23
+ private _popoverValue;
24
+ private _triggeredSub;
25
+ private _isModifiedSub;
26
+ constructor(elementRef: ElementRef, source: ActionContextStoreSourceInstance<T, any>);
27
+ ngOnInit(): void;
28
+ ngOnDestroy(): void;
29
+ protected _makePopoverRef(): NgPopoverRef<any, T>;
30
+ protected _afterClosed(event: NgPopoverCloseEvent<T>): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxPopoverActionDirective<any>, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbNgxPopoverActionDirective<any>, "[dbxPopoverAction]", ["popoverAction"], { "fn": "dbxPopoverAction"; "appPopoverActionModified": "appPopoverActionModified"; }, {}, never>;
33
+ }
@@ -0,0 +1,75 @@
1
+ import { ComponentFactoryResolver, NgZone, Type, OnInit, OnDestroy, ElementRef } from '@angular/core';
2
+ import { NgOverlayContainerConfiguration, NgPopoverRef } from 'ng-overlay-container';
3
+ import { AbstractTransitionWatcherDirective, DbNgxRouterTransitionService } from '@dereekb/dbx-core';
4
+ import { LockSet } from '@dereekb/rxjs';
5
+ import { CompactContextStore } from '../../layout';
6
+ import { Maybe } from '@dereekb/util';
7
+ import { DbNgxPopoverController, DbNgxPopoverKey } from './popover';
8
+ import * as i0 from "@angular/core";
9
+ export declare abstract class DbNgxPopoverComponentController<I, O> extends DbNgxPopoverController<I, O> {
10
+ getClosingValueFn?: (value?: I) => Promise<O>;
11
+ }
12
+ export interface DbNgxPopoverComponentConfig<I, O, T> {
13
+ /**
14
+ * Key used for uniquely identifying a limited instance.
15
+ *
16
+ * Only one popover should exist at a time given a certain key.
17
+ */
18
+ key: DbNgxPopoverKey;
19
+ /**
20
+ * Origin element to position on.
21
+ */
22
+ origin: ElementRef;
23
+ /**
24
+ * Whether or not to close if a transition occurs.
25
+ */
26
+ closeOnTransition?: boolean;
27
+ /**
28
+ * Whether or not to dismiss when the escape button is pressed.
29
+ *
30
+ * False by default.
31
+ */
32
+ closeOnEscape?: boolean;
33
+ /**
34
+ * Component to inject into the popover.
35
+ */
36
+ componentClass: Type<T>;
37
+ /**
38
+ * Data available to the popover.
39
+ */
40
+ data?: Maybe<I>;
41
+ init?: (component: T, controller: DbNgxPopoverController<I, O>) => void;
42
+ }
43
+ export interface FullDbNgxPopoverComponentConfig<I, O, T> extends DbNgxPopoverComponentConfig<I, O, T> {
44
+ configuration: NgOverlayContainerConfiguration;
45
+ }
46
+ /**
47
+ * Popover component.
48
+ */
49
+ export declare class DbNgxPopoverComponent<I = any, O = any, T = any> extends AbstractTransitionWatcherDirective implements DbNgxPopoverController<I, O>, OnInit, OnDestroy {
50
+ private popoverRef;
51
+ private compactContextState;
52
+ private resolver;
53
+ readonly lockSet: LockSet;
54
+ private _content;
55
+ private _componentRef?;
56
+ private _startedClosing;
57
+ private readonly _closing;
58
+ private _triggerCloseKeys;
59
+ readonly isClosing$: import("rxjs").Observable<boolean>;
60
+ readonly closing$: import("rxjs").Observable<boolean>;
61
+ getClosingValueFn?: (value?: I) => Promise<O>;
62
+ constructor(popoverRef: NgPopoverRef<FullDbNgxPopoverComponentConfig<I, O, T>, O>, compactContextState: CompactContextStore, resolver: ComponentFactoryResolver, dbNgxRouterTransitionService: DbNgxRouterTransitionService, ngZone: NgZone);
63
+ get config(): FullDbNgxPopoverComponentConfig<I, O, T>;
64
+ get key(): DbNgxPopoverKey;
65
+ get data(): Maybe<I>;
66
+ get triggerCloseKeys(): string[];
67
+ ngOnInit(): void;
68
+ ngOnDestroy(): void;
69
+ protected updateForSuccessfulTransition(): void;
70
+ close(): void;
71
+ return(value?: O): void;
72
+ handleKeydown(key: KeyboardEvent): void;
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxPopoverComponent<any, any, any>, never>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxPopoverComponent<any, any, any>, "ng-component", never, {}, {}, never, never>;
75
+ }
@@ -0,0 +1,17 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { ResizedEvent } from 'angular-resize-event';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Popover content wrapper component.
6
+ */
7
+ export declare class DbNgxPopoverContentComponent implements OnDestroy {
8
+ private readonly _height;
9
+ readonly height$: import("rxjs").Observable<string>;
10
+ scrollable: boolean;
11
+ hasControls: boolean;
12
+ hasHeader: boolean;
13
+ onResized(event: ResizedEvent): void;
14
+ ngOnDestroy(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxPopoverContentComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxPopoverContentComponent, "dbx-popover-content", never, { "scrollable": "scrollable"; "hasControls": "hasControls"; "hasHeader": "hasHeader"; }, {}, never, ["[controls]", "*"]>;
17
+ }
@@ -0,0 +1,10 @@
1
+ import { DbNgxPopoverContentComponent } from './popover.content.component';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Popover Controls
5
+ */
6
+ export declare class DbNgxPopoverControlsComponent {
7
+ constructor(appPopoverContentComponent: DbNgxPopoverContentComponent);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbNgxPopoverControlsComponent, [{ optional: true; }]>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbNgxPopoverControlsComponent, "dbx-popover-controls", never, {}, {}, never, ["*"]>;
10
+ }