@bravura/ui 1.21.6 → 2.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 (276) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -0
  3. package/alert/alert-container.component.d.ts +1 -1
  4. package/alert/alert-message.component.d.ts +1 -1
  5. package/alert/{bravura-ui-alert.d.ts → index.d.ts} +0 -0
  6. package/behavior/await.directive.d.ts +1 -1
  7. package/behavior/{bravura-ui-behavior.d.ts → index.d.ts} +0 -0
  8. package/behavior/sizing-monitor.directive.d.ts +1 -1
  9. package/behavior/sizing.directive.d.ts +1 -1
  10. package/common/{bravura-ui-common.d.ts → index.d.ts} +0 -0
  11. package/currency-input/currency-input.directive.d.ts +1 -1
  12. package/currency-input/{bravura-ui-currency-input.d.ts → index.d.ts} +0 -0
  13. package/decimal-input/decimal-input.directive.d.ts +1 -1
  14. package/decimal-input/{bravura-ui-decimal-input.d.ts → index.d.ts} +0 -0
  15. package/discrete-input/discrete-input.component.d.ts +6 -5
  16. package/discrete-input/{bravura-ui-discrete-input.d.ts → index.d.ts} +0 -0
  17. package/esm2020/alert/alert-container.component.mjs +201 -0
  18. package/esm2020/alert/alert-message.component.mjs +92 -0
  19. package/esm2020/alert/alert.module.mjs +22 -0
  20. package/{esm2015/alert/bravura-ui-alert.js → esm2020/alert/bravura-ui-alert.mjs} +0 -0
  21. package/{esm2015/alert/public-api.js → esm2020/alert/public-api.mjs} +0 -0
  22. package/{esm2015/behavior/await.directive.js → esm2020/behavior/await.directive.mjs} +4 -4
  23. package/esm2020/behavior/behavior.module.mjs +25 -0
  24. package/{esm2015/behavior/bravura-ui-behavior.js → esm2020/behavior/bravura-ui-behavior.mjs} +0 -0
  25. package/{esm2015/behavior/public-api.js → esm2020/behavior/public-api.mjs} +0 -0
  26. package/{esm2015/behavior/sizing-monitor.directive.js → esm2020/behavior/sizing-monitor.directive.mjs} +4 -4
  27. package/{esm2015/behavior/sizing.directive.js → esm2020/behavior/sizing.directive.mjs} +4 -4
  28. package/{esm2015/bravura-ui.js → esm2020/bravura-ui.mjs} +0 -0
  29. package/{esm2015/common/bravura-ui-common.js → esm2020/common/bravura-ui-common.mjs} +0 -0
  30. package/{esm2015/common/common-utils.js → esm2020/common/common-utils.mjs} +0 -0
  31. package/esm2020/common/common.module.mjs +52 -0
  32. package/{esm2015/common/public-api.js → esm2020/common/public-api.mjs} +0 -0
  33. package/{esm2015/currency-input/bravura-ui-currency-input.js → esm2020/currency-input/bravura-ui-currency-input.mjs} +0 -0
  34. package/esm2020/currency-input/currency-input.directive.mjs +279 -0
  35. package/esm2020/currency-input/currency-input.module.mjs +19 -0
  36. package/{esm2015/currency-input/public-api.js → esm2020/currency-input/public-api.mjs} +0 -0
  37. package/{esm2015/decimal-input/bravura-ui-decimal-input.js → esm2020/decimal-input/bravura-ui-decimal-input.mjs} +0 -0
  38. package/esm2020/decimal-input/decimal-input.directive.mjs +125 -0
  39. package/esm2020/decimal-input/decimal-input.module.mjs +19 -0
  40. package/{esm2015/decimal-input/public-api.js → esm2020/decimal-input/public-api.mjs} +0 -0
  41. package/{esm2015/discrete-input/bravura-ui-discrete-input.js → esm2020/discrete-input/bravura-ui-discrete-input.mjs} +0 -0
  42. package/esm2020/discrete-input/discrete-input.component.mjs +326 -0
  43. package/esm2020/discrete-input/discrete-input.module.mjs +21 -0
  44. package/{esm2015/discrete-input/public-api.js → esm2020/discrete-input/public-api.mjs} +0 -0
  45. package/{esm2015/file-upload/bravura-ui-file-upload.js → esm2020/file-upload/bravura-ui-file-upload.mjs} +0 -0
  46. package/esm2020/file-upload/file-upload.component.mjs +356 -0
  47. package/{esm2015/file-upload/file-upload.module.js → esm2020/file-upload/file-upload.module.mjs} +11 -13
  48. package/{esm2015/file-upload/file-upload.service.js → esm2020/file-upload/file-upload.service.mjs} +4 -4
  49. package/{esm2015/file-upload/public-api.js → esm2020/file-upload/public-api.mjs} +0 -0
  50. package/{esm2015/form-field/bravura-ui-form-field.js → esm2020/form-field/bravura-ui-form-field.mjs} +0 -0
  51. package/esm2020/form-field/form-field.component.mjs +96 -0
  52. package/esm2020/form-field/form-field.module.mjs +20 -0
  53. package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
  54. package/{esm2015/icon-font/bravura-ui-icon-font.js → esm2020/icon-font/bravura-ui-icon-font.mjs} +0 -0
  55. package/esm2020/icon-font/icon-font.module.mjs +22 -0
  56. package/{esm2015/icon-font/icon.directive.js → esm2020/icon-font/icon.directive.mjs} +4 -4
  57. package/{esm2015/icon-font/public-api.js → esm2020/icon-font/public-api.mjs} +0 -0
  58. package/{esm2015/icon-font/utilities.js → esm2020/icon-font/utilities.mjs} +0 -0
  59. package/{esm2015/phone-number/bravura-ui-phone-number.js → esm2020/phone-number/bravura-ui-phone-number.mjs} +0 -0
  60. package/esm2020/phone-number/phone-number.directive.mjs +187 -0
  61. package/esm2020/phone-number/phone-number.module.mjs +24 -0
  62. package/{esm2015/phone-number/phone-number.pipe.js → esm2020/phone-number/phone-number.pipe.mjs} +4 -4
  63. package/{esm2015/phone-number/phone-number.validator.js → esm2020/phone-number/phone-number.validator.mjs} +4 -4
  64. package/{esm2015/phone-number/public-api.js → esm2020/phone-number/public-api.mjs} +0 -0
  65. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  66. package/{esm2015/radio-panel/bravura-ui-radio-panel.js → esm2020/radio-panel/bravura-ui-radio-panel.mjs} +0 -0
  67. package/{esm2015/radio-panel/public-api.js → esm2020/radio-panel/public-api.mjs} +0 -0
  68. package/esm2020/radio-panel/radio-panel-item.component.mjs +97 -0
  69. package/esm2020/radio-panel/radio-panel.component.mjs +89 -0
  70. package/esm2020/radio-panel/radio-panel.module.mjs +25 -0
  71. package/{esm2015/selection-panel/bravura-ui-selection-panel.js → esm2020/selection-panel/bravura-ui-selection-panel.mjs} +0 -0
  72. package/{esm2015/selection-panel/public-api.js → esm2020/selection-panel/public-api.mjs} +0 -0
  73. package/esm2020/selection-panel/selection-panel-item.component.mjs +166 -0
  74. package/esm2020/selection-panel/selection-panel.directive.mjs +119 -0
  75. package/esm2020/selection-panel/selection-panel.module.mjs +23 -0
  76. package/{esm2015/skeletons/bravura-ui-skeletons.js → esm2020/skeletons/bravura-ui-skeletons.mjs} +0 -0
  77. package/{esm2015/skeletons/public-api.js → esm2020/skeletons/public-api.mjs} +0 -0
  78. package/esm2020/skeletons/skeleton-loader-presets.directive.mjs +83 -0
  79. package/{esm2015/skeletons/skeleton-loader.component.js → esm2020/skeletons/skeleton-loader.component.mjs} +4 -4
  80. package/esm2020/skeletons/skeletons.module.mjs +35 -0
  81. package/{esm2015/stepper/bravura-ui-stepper.js → esm2020/stepper/bravura-ui-stepper.mjs} +0 -0
  82. package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
  83. package/esm2020/stepper/stepper-animation.mjs +23 -0
  84. package/esm2020/stepper/stepper.component.mjs +166 -0
  85. package/{esm2015/stepper/stepper.module.js → esm2020/stepper/stepper.module.mjs} +13 -15
  86. package/{esm2015/tooltip/bravura-ui-tooltip.js → esm2020/tooltip/bravura-ui-tooltip.mjs} +0 -0
  87. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  88. package/esm2020/tooltip/tooltip.component.mjs +51 -0
  89. package/{esm2015/tooltip/tooltip.directive.js → esm2020/tooltip/tooltip.directive.mjs} +4 -4
  90. package/esm2020/tooltip/tooltip.module.mjs +25 -0
  91. package/fesm2015/bravura-ui-alert.mjs +324 -0
  92. package/fesm2015/bravura-ui-alert.mjs.map +1 -0
  93. package/fesm2015/bravura-ui-behavior.mjs +407 -0
  94. package/fesm2015/bravura-ui-behavior.mjs.map +1 -0
  95. package/fesm2015/bravura-ui-common.mjs +74 -0
  96. package/fesm2015/bravura-ui-common.mjs.map +1 -0
  97. package/fesm2015/bravura-ui-currency-input.mjs +303 -0
  98. package/fesm2015/bravura-ui-currency-input.mjs.map +1 -0
  99. package/fesm2015/bravura-ui-decimal-input.mjs +148 -0
  100. package/fesm2015/bravura-ui-decimal-input.mjs.map +1 -0
  101. package/fesm2015/bravura-ui-discrete-input.mjs +354 -0
  102. package/fesm2015/bravura-ui-discrete-input.mjs.map +1 -0
  103. package/fesm2015/bravura-ui-file-upload.mjs +434 -0
  104. package/fesm2015/bravura-ui-file-upload.mjs.map +1 -0
  105. package/fesm2015/{bravura-ui-form-field.js → bravura-ui-form-field.mjs} +12 -23
  106. package/fesm2015/bravura-ui-form-field.mjs.map +1 -0
  107. package/fesm2015/{bravura-ui-icon-font.js → bravura-ui-icon-font.mjs} +8 -8
  108. package/fesm2015/bravura-ui-icon-font.mjs.map +1 -0
  109. package/fesm2015/{bravura-ui-phone-number.js → bravura-ui-phone-number.mjs} +34 -30
  110. package/fesm2015/bravura-ui-phone-number.mjs.map +1 -0
  111. package/fesm2015/bravura-ui-radio-panel.mjs +212 -0
  112. package/fesm2015/bravura-ui-radio-panel.mjs.map +1 -0
  113. package/fesm2015/{bravura-ui-selection-panel.js → bravura-ui-selection-panel.mjs} +24 -28
  114. package/fesm2015/bravura-ui-selection-panel.mjs.map +1 -0
  115. package/fesm2015/bravura-ui-skeletons.mjs +195 -0
  116. package/fesm2015/bravura-ui-skeletons.mjs.map +1 -0
  117. package/fesm2015/bravura-ui-stepper.mjs +243 -0
  118. package/fesm2015/bravura-ui-stepper.mjs.map +1 -0
  119. package/fesm2015/bravura-ui-tooltip.mjs +195 -0
  120. package/fesm2015/bravura-ui-tooltip.mjs.map +1 -0
  121. package/fesm2015/{bravura-ui.js → bravura-ui.mjs} +1 -1
  122. package/fesm2015/bravura-ui.mjs.map +1 -0
  123. package/fesm2020/bravura-ui-alert.mjs +312 -0
  124. package/fesm2020/bravura-ui-alert.mjs.map +1 -0
  125. package/{fesm2015/bravura-ui-behavior.js → fesm2020/bravura-ui-behavior.mjs} +14 -14
  126. package/fesm2020/bravura-ui-behavior.mjs.map +1 -0
  127. package/{fesm2015/bravura-ui-common.js → fesm2020/bravura-ui-common.mjs} +7 -7
  128. package/fesm2020/bravura-ui-common.mjs.map +1 -0
  129. package/{fesm2015/bravura-ui-currency-input.js → fesm2020/bravura-ui-currency-input.mjs} +10 -11
  130. package/fesm2020/bravura-ui-currency-input.mjs.map +1 -0
  131. package/{fesm2015/bravura-ui-decimal-input.js → fesm2020/bravura-ui-decimal-input.mjs} +9 -8
  132. package/fesm2020/bravura-ui-decimal-input.mjs.map +1 -0
  133. package/{fesm2015/bravura-ui-discrete-input.js → fesm2020/bravura-ui-discrete-input.mjs} +18 -26
  134. package/fesm2020/bravura-ui-discrete-input.mjs.map +1 -0
  135. package/fesm2020/bravura-ui-file-upload.mjs +430 -0
  136. package/fesm2020/bravura-ui-file-upload.mjs.map +1 -0
  137. package/fesm2020/bravura-ui-form-field.mjs +119 -0
  138. package/fesm2020/bravura-ui-form-field.mjs.map +1 -0
  139. package/fesm2020/bravura-ui-icon-font.mjs +178 -0
  140. package/fesm2020/bravura-ui-icon-font.mjs.map +1 -0
  141. package/fesm2020/bravura-ui-phone-number.mjs +317 -0
  142. package/fesm2020/bravura-ui-phone-number.mjs.map +1 -0
  143. package/fesm2020/bravura-ui-radio-panel.mjs +209 -0
  144. package/fesm2020/bravura-ui-radio-panel.mjs.map +1 -0
  145. package/fesm2020/bravura-ui-selection-panel.mjs +306 -0
  146. package/fesm2020/bravura-ui-selection-panel.mjs.map +1 -0
  147. package/{fesm2015/bravura-ui-skeletons.js → fesm2020/bravura-ui-skeletons.mjs} +13 -13
  148. package/fesm2020/bravura-ui-skeletons.mjs.map +1 -0
  149. package/{fesm2015/bravura-ui-stepper.js → fesm2020/bravura-ui-stepper.mjs} +27 -44
  150. package/fesm2020/bravura-ui-stepper.mjs.map +1 -0
  151. package/{fesm2015/bravura-ui-tooltip.js → fesm2020/bravura-ui-tooltip.mjs} +13 -22
  152. package/fesm2020/bravura-ui-tooltip.mjs.map +1 -0
  153. package/fesm2020/bravura-ui.mjs +8 -0
  154. package/fesm2020/bravura-ui.mjs.map +1 -0
  155. package/file-upload/file-upload.component.d.ts +1 -1
  156. package/file-upload/{bravura-ui-file-upload.d.ts → index.d.ts} +0 -0
  157. package/form-field/form-field.component.d.ts +1 -1
  158. package/form-field/{bravura-ui-form-field.d.ts → index.d.ts} +0 -0
  159. package/icon-font/icon.directive.d.ts +1 -1
  160. package/icon-font/{bravura-ui-icon-font.d.ts → index.d.ts} +0 -0
  161. package/{bravura-ui.d.ts → index.d.ts} +0 -0
  162. package/package.json +149 -14
  163. package/phone-number/{bravura-ui-phone-number.d.ts → index.d.ts} +0 -0
  164. package/phone-number/phone-number.directive.d.ts +1 -1
  165. package/phone-number/phone-number.pipe.d.ts +1 -1
  166. package/phone-number/phone-number.validator.d.ts +1 -1
  167. package/radio-panel/{bravura-ui-radio-panel.d.ts → index.d.ts} +0 -0
  168. package/radio-panel/radio-panel-item.component.d.ts +1 -1
  169. package/radio-panel/radio-panel.component.d.ts +1 -1
  170. package/selection-panel/{bravura-ui-selection-panel.d.ts → index.d.ts} +0 -0
  171. package/selection-panel/selection-panel-item.component.d.ts +1 -1
  172. package/selection-panel/selection-panel.directive.d.ts +1 -1
  173. package/skeletons/{bravura-ui-skeletons.d.ts → index.d.ts} +0 -0
  174. package/skeletons/skeleton-loader-presets.directive.d.ts +1 -1
  175. package/skeletons/skeleton-loader.component.d.ts +1 -1
  176. package/stepper/{bravura-ui-stepper.d.ts → index.d.ts} +0 -0
  177. package/stepper/stepper.component.d.ts +1 -1
  178. package/theme/_ui-theme.scss +1 -1
  179. package/tooltip/{bravura-ui-tooltip.d.ts → index.d.ts} +0 -0
  180. package/tooltip/tooltip.component.d.ts +1 -1
  181. package/tooltip/tooltip.directive.d.ts +1 -1
  182. package/alert/package.json +0 -10
  183. package/behavior/package.json +0 -10
  184. package/bundles/bravura-ui-alert.umd.js +0 -745
  185. package/bundles/bravura-ui-alert.umd.js.map +0 -1
  186. package/bundles/bravura-ui-behavior.umd.js +0 -788
  187. package/bundles/bravura-ui-behavior.umd.js.map +0 -1
  188. package/bundles/bravura-ui-common.umd.js +0 -103
  189. package/bundles/bravura-ui-common.umd.js.map +0 -1
  190. package/bundles/bravura-ui-currency-input.umd.js +0 -335
  191. package/bundles/bravura-ui-currency-input.umd.js.map +0 -1
  192. package/bundles/bravura-ui-decimal-input.umd.js +0 -176
  193. package/bundles/bravura-ui-decimal-input.umd.js.map +0 -1
  194. package/bundles/bravura-ui-discrete-input.umd.js +0 -747
  195. package/bundles/bravura-ui-discrete-input.umd.js.map +0 -1
  196. package/bundles/bravura-ui-file-upload.umd.js +0 -845
  197. package/bundles/bravura-ui-file-upload.umd.js.map +0 -1
  198. package/bundles/bravura-ui-form-field.umd.js +0 -494
  199. package/bundles/bravura-ui-form-field.umd.js.map +0 -1
  200. package/bundles/bravura-ui-icon-font.umd.js +0 -539
  201. package/bundles/bravura-ui-icon-font.umd.js.map +0 -1
  202. package/bundles/bravura-ui-phone-number.umd.js +0 -690
  203. package/bundles/bravura-ui-phone-number.umd.js.map +0 -1
  204. package/bundles/bravura-ui-radio-panel.umd.js +0 -595
  205. package/bundles/bravura-ui-radio-panel.umd.js.map +0 -1
  206. package/bundles/bravura-ui-selection-panel.umd.js +0 -699
  207. package/bundles/bravura-ui-selection-panel.umd.js.map +0 -1
  208. package/bundles/bravura-ui-skeletons.umd.js +0 -525
  209. package/bundles/bravura-ui-skeletons.umd.js.map +0 -1
  210. package/bundles/bravura-ui-stepper.umd.js +0 -613
  211. package/bundles/bravura-ui-stepper.umd.js.map +0 -1
  212. package/bundles/bravura-ui-tooltip.umd.js +0 -586
  213. package/bundles/bravura-ui-tooltip.umd.js.map +0 -1
  214. package/bundles/bravura-ui.umd.js +0 -18
  215. package/bundles/bravura-ui.umd.js.map +0 -1
  216. package/common/package.json +0 -10
  217. package/currency-input/package.json +0 -10
  218. package/decimal-input/package.json +0 -10
  219. package/discrete-input/package.json +0 -10
  220. package/esm2015/alert/alert-container.component.js +0 -220
  221. package/esm2015/alert/alert-message.component.js +0 -98
  222. package/esm2015/alert/alert.module.js +0 -22
  223. package/esm2015/behavior/behavior.module.js +0 -25
  224. package/esm2015/common/common.module.js +0 -52
  225. package/esm2015/currency-input/currency-input.directive.js +0 -280
  226. package/esm2015/currency-input/currency-input.module.js +0 -19
  227. package/esm2015/decimal-input/decimal-input.directive.js +0 -124
  228. package/esm2015/decimal-input/decimal-input.module.js +0 -19
  229. package/esm2015/discrete-input/discrete-input.component.js +0 -334
  230. package/esm2015/discrete-input/discrete-input.module.js +0 -21
  231. package/esm2015/file-upload/file-upload.component.js +0 -367
  232. package/esm2015/form-field/form-field.component.js +0 -107
  233. package/esm2015/form-field/form-field.module.js +0 -20
  234. package/esm2015/icon-font/icon-font.module.js +0 -22
  235. package/esm2015/phone-number/phone-number.directive.js +0 -192
  236. package/esm2015/phone-number/phone-number.module.js +0 -24
  237. package/esm2015/radio-panel/radio-panel-item.component.js +0 -109
  238. package/esm2015/radio-panel/radio-panel.component.js +0 -98
  239. package/esm2015/radio-panel/radio-panel.module.js +0 -25
  240. package/esm2015/selection-panel/selection-panel-item.component.js +0 -174
  241. package/esm2015/selection-panel/selection-panel.directive.js +0 -120
  242. package/esm2015/selection-panel/selection-panel.module.js +0 -23
  243. package/esm2015/skeletons/skeleton-loader-presets.directive.js +0 -83
  244. package/esm2015/skeletons/skeletons.module.js +0 -35
  245. package/esm2015/stepper/stepper-animation.js +0 -23
  246. package/esm2015/stepper/stepper.component.js +0 -181
  247. package/esm2015/tooltip/tooltip.component.js +0 -59
  248. package/esm2015/tooltip/tooltip.module.js +0 -26
  249. package/fesm2015/bravura-ui-alert.js +0 -337
  250. package/fesm2015/bravura-ui-alert.js.map +0 -1
  251. package/fesm2015/bravura-ui-behavior.js.map +0 -1
  252. package/fesm2015/bravura-ui-common.js.map +0 -1
  253. package/fesm2015/bravura-ui-currency-input.js.map +0 -1
  254. package/fesm2015/bravura-ui-decimal-input.js.map +0 -1
  255. package/fesm2015/bravura-ui-discrete-input.js.map +0 -1
  256. package/fesm2015/bravura-ui-file-upload.js +0 -443
  257. package/fesm2015/bravura-ui-file-upload.js.map +0 -1
  258. package/fesm2015/bravura-ui-form-field.js.map +0 -1
  259. package/fesm2015/bravura-ui-icon-font.js.map +0 -1
  260. package/fesm2015/bravura-ui-phone-number.js.map +0 -1
  261. package/fesm2015/bravura-ui-radio-panel.js +0 -230
  262. package/fesm2015/bravura-ui-radio-panel.js.map +0 -1
  263. package/fesm2015/bravura-ui-selection-panel.js.map +0 -1
  264. package/fesm2015/bravura-ui-skeletons.js.map +0 -1
  265. package/fesm2015/bravura-ui-stepper.js.map +0 -1
  266. package/fesm2015/bravura-ui-tooltip.js.map +0 -1
  267. package/fesm2015/bravura-ui.js.map +0 -1
  268. package/file-upload/package.json +0 -10
  269. package/form-field/package.json +0 -10
  270. package/icon-font/package.json +0 -10
  271. package/phone-number/package.json +0 -10
  272. package/radio-panel/package.json +0 -10
  273. package/selection-panel/package.json +0 -10
  274. package/skeletons/package.json +0 -10
  275. package/stepper/package.json +0 -10
  276. package/tooltip/package.json +0 -10
@@ -1,745 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/material/button'), require('@bravura/ui/icon-font'), require('@angular/animations'), require('@bravura/ui/common'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/scrolling'), require('@angular/cdk/coercion'), require('@angular/material/icon')) :
3
- typeof define === 'function' && define.amd ? define('@bravura/ui/alert', ['exports', '@angular/common', '@angular/core', '@angular/material/button', '@bravura/ui/icon-font', '@angular/animations', '@bravura/ui/common', 'rxjs', 'rxjs/operators', '@angular/cdk/scrolling', '@angular/cdk/coercion', '@angular/material/icon'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravura = global.bravura || {}, global.bravura.ui = global.bravura.ui || {}, global.bravura.ui.alert = {}), global.ng.common, global.ng.core, global.ng.material.button, global.bravura.ui["icon-font"], global.ng.animations, global.bravura.ui.common, global.rxjs, global.rxjs.operators, global.ng.cdk.scrolling, global.ng.cdk.coercion, global.ng.material.icon));
5
- })(this, (function (exports, i3$1, i0, i2, i3, animations, common, rxjs, operators, i1$1, coercion, i1) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
26
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
31
-
32
- /******************************************************************************
33
- Copyright (c) Microsoft Corporation.
34
-
35
- Permission to use, copy, modify, and/or distribute this software for any
36
- purpose with or without fee is hereby granted.
37
-
38
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
- PERFORMANCE OF THIS SOFTWARE.
45
- ***************************************************************************** */
46
- /* global Reflect, Promise */
47
- var extendStatics = function (d, b) {
48
- extendStatics = Object.setPrototypeOf ||
49
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
- function (d, b) { for (var p in b)
51
- if (Object.prototype.hasOwnProperty.call(b, p))
52
- d[p] = b[p]; };
53
- return extendStatics(d, b);
54
- };
55
- function __extends(d, b) {
56
- if (typeof b !== "function" && b !== null)
57
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
- extendStatics(d, b);
59
- function __() { this.constructor = d; }
60
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
- }
62
- var __assign = function () {
63
- __assign = Object.assign || function __assign(t) {
64
- for (var s, i = 1, n = arguments.length; i < n; i++) {
65
- s = arguments[i];
66
- for (var p in s)
67
- if (Object.prototype.hasOwnProperty.call(s, p))
68
- t[p] = s[p];
69
- }
70
- return t;
71
- };
72
- return __assign.apply(this, arguments);
73
- };
74
- function __rest(s, e) {
75
- var t = {};
76
- for (var p in s)
77
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
- t[p] = s[p];
79
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
- t[p[i]] = s[p[i]];
83
- }
84
- return t;
85
- }
86
- function __decorate(decorators, target, key, desc) {
87
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
- r = Reflect.decorate(decorators, target, key, desc);
90
- else
91
- for (var i = decorators.length - 1; i >= 0; i--)
92
- if (d = decorators[i])
93
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
- return c > 3 && r && Object.defineProperty(target, key, r), r;
95
- }
96
- function __param(paramIndex, decorator) {
97
- return function (target, key) { decorator(target, key, paramIndex); };
98
- }
99
- function __metadata(metadataKey, metadataValue) {
100
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
101
- return Reflect.metadata(metadataKey, metadataValue);
102
- }
103
- function __awaiter(thisArg, _arguments, P, generator) {
104
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
105
- return new (P || (P = Promise))(function (resolve, reject) {
106
- function fulfilled(value) { try {
107
- step(generator.next(value));
108
- }
109
- catch (e) {
110
- reject(e);
111
- } }
112
- function rejected(value) { try {
113
- step(generator["throw"](value));
114
- }
115
- catch (e) {
116
- reject(e);
117
- } }
118
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
119
- step((generator = generator.apply(thisArg, _arguments || [])).next());
120
- });
121
- }
122
- function __generator(thisArg, body) {
123
- var _ = { label: 0, sent: function () { if (t[0] & 1)
124
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
125
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
126
- function verb(n) { return function (v) { return step([n, v]); }; }
127
- function step(op) {
128
- if (f)
129
- throw new TypeError("Generator is already executing.");
130
- while (_)
131
- try {
132
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
133
- return t;
134
- if (y = 0, t)
135
- op = [op[0] & 2, t.value];
136
- switch (op[0]) {
137
- case 0:
138
- case 1:
139
- t = op;
140
- break;
141
- case 4:
142
- _.label++;
143
- return { value: op[1], done: false };
144
- case 5:
145
- _.label++;
146
- y = op[1];
147
- op = [0];
148
- continue;
149
- case 7:
150
- op = _.ops.pop();
151
- _.trys.pop();
152
- continue;
153
- default:
154
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
155
- _ = 0;
156
- continue;
157
- }
158
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
159
- _.label = op[1];
160
- break;
161
- }
162
- if (op[0] === 6 && _.label < t[1]) {
163
- _.label = t[1];
164
- t = op;
165
- break;
166
- }
167
- if (t && _.label < t[2]) {
168
- _.label = t[2];
169
- _.ops.push(op);
170
- break;
171
- }
172
- if (t[2])
173
- _.ops.pop();
174
- _.trys.pop();
175
- continue;
176
- }
177
- op = body.call(thisArg, _);
178
- }
179
- catch (e) {
180
- op = [6, e];
181
- y = 0;
182
- }
183
- finally {
184
- f = t = 0;
185
- }
186
- if (op[0] & 5)
187
- throw op[1];
188
- return { value: op[0] ? op[1] : void 0, done: true };
189
- }
190
- }
191
- var __createBinding = Object.create ? (function (o, m, k, k2) {
192
- if (k2 === undefined)
193
- k2 = k;
194
- var desc = Object.getOwnPropertyDescriptor(m, k);
195
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
196
- desc = { enumerable: true, get: function () { return m[k]; } };
197
- }
198
- Object.defineProperty(o, k2, desc);
199
- }) : (function (o, m, k, k2) {
200
- if (k2 === undefined)
201
- k2 = k;
202
- o[k2] = m[k];
203
- });
204
- function __exportStar(m, o) {
205
- for (var p in m)
206
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
207
- __createBinding(o, m, p);
208
- }
209
- function __values(o) {
210
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
211
- if (m)
212
- return m.call(o);
213
- if (o && typeof o.length === "number")
214
- return {
215
- next: function () {
216
- if (o && i >= o.length)
217
- o = void 0;
218
- return { value: o && o[i++], done: !o };
219
- }
220
- };
221
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
222
- }
223
- function __read(o, n) {
224
- var m = typeof Symbol === "function" && o[Symbol.iterator];
225
- if (!m)
226
- return o;
227
- var i = m.call(o), r, ar = [], e;
228
- try {
229
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
230
- ar.push(r.value);
231
- }
232
- catch (error) {
233
- e = { error: error };
234
- }
235
- finally {
236
- try {
237
- if (r && !r.done && (m = i["return"]))
238
- m.call(i);
239
- }
240
- finally {
241
- if (e)
242
- throw e.error;
243
- }
244
- }
245
- return ar;
246
- }
247
- /** @deprecated */
248
- function __spread() {
249
- for (var ar = [], i = 0; i < arguments.length; i++)
250
- ar = ar.concat(__read(arguments[i]));
251
- return ar;
252
- }
253
- /** @deprecated */
254
- function __spreadArrays() {
255
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
256
- s += arguments[i].length;
257
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
258
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
259
- r[k] = a[j];
260
- return r;
261
- }
262
- function __spreadArray(to, from, pack) {
263
- if (pack || arguments.length === 2)
264
- for (var i = 0, l = from.length, ar; i < l; i++) {
265
- if (ar || !(i in from)) {
266
- if (!ar)
267
- ar = Array.prototype.slice.call(from, 0, i);
268
- ar[i] = from[i];
269
- }
270
- }
271
- return to.concat(ar || Array.prototype.slice.call(from));
272
- }
273
- function __await(v) {
274
- return this instanceof __await ? (this.v = v, this) : new __await(v);
275
- }
276
- function __asyncGenerator(thisArg, _arguments, generator) {
277
- if (!Symbol.asyncIterator)
278
- throw new TypeError("Symbol.asyncIterator is not defined.");
279
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
280
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
281
- function verb(n) { if (g[n])
282
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
283
- function resume(n, v) { try {
284
- step(g[n](v));
285
- }
286
- catch (e) {
287
- settle(q[0][3], e);
288
- } }
289
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
290
- function fulfill(value) { resume("next", value); }
291
- function reject(value) { resume("throw", value); }
292
- function settle(f, v) { if (f(v), q.shift(), q.length)
293
- resume(q[0][0], q[0][1]); }
294
- }
295
- function __asyncDelegator(o) {
296
- var i, p;
297
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
298
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
299
- }
300
- function __asyncValues(o) {
301
- if (!Symbol.asyncIterator)
302
- throw new TypeError("Symbol.asyncIterator is not defined.");
303
- var m = o[Symbol.asyncIterator], i;
304
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
305
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
306
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
307
- }
308
- function __makeTemplateObject(cooked, raw) {
309
- if (Object.defineProperty) {
310
- Object.defineProperty(cooked, "raw", { value: raw });
311
- }
312
- else {
313
- cooked.raw = raw;
314
- }
315
- return cooked;
316
- }
317
- ;
318
- var __setModuleDefault = Object.create ? (function (o, v) {
319
- Object.defineProperty(o, "default", { enumerable: true, value: v });
320
- }) : function (o, v) {
321
- o["default"] = v;
322
- };
323
- function __importStar(mod) {
324
- if (mod && mod.__esModule)
325
- return mod;
326
- var result = {};
327
- if (mod != null)
328
- for (var k in mod)
329
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
330
- __createBinding(result, mod, k);
331
- __setModuleDefault(result, mod);
332
- return result;
333
- }
334
- function __importDefault(mod) {
335
- return (mod && mod.__esModule) ? mod : { default: mod };
336
- }
337
- function __classPrivateFieldGet(receiver, state, kind, f) {
338
- if (kind === "a" && !f)
339
- throw new TypeError("Private accessor was defined without a getter");
340
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
341
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
342
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
343
- }
344
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
345
- if (kind === "m")
346
- throw new TypeError("Private method is not writable");
347
- if (kind === "a" && !f)
348
- throw new TypeError("Private accessor was defined without a setter");
349
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
350
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
351
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
352
- }
353
- function __classPrivateFieldIn(state, receiver) {
354
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
355
- throw new TypeError("Cannot use 'in' operator on non-object");
356
- return typeof state === "function" ? receiver === state : state.has(receiver);
357
- }
358
-
359
- /** @ignore */
360
- var ICONS = {
361
- success: 'check_circle',
362
- info: 'info',
363
- warn: 'report_problem',
364
- error: 'cancel'
365
- };
366
- /**
367
- * An alert style message usually appears in a global notification area.
368
- *
369
- * The base color of the message is determined by the `type` of the message and a list of predefined
370
- * CSS custom properties.
371
- *
372
- * ```scss
373
- * --bui-color-success: #519602;
374
- * --bui-color-info: #0dcaf0;
375
- * --bui-color-warning: #ffc107;
376
- * --bui-color-error: #dc3545;
377
- * ```
378
- *
379
- *
380
- */
381
- var AlertMessageComponent = /** @class */ (function () {
382
- function AlertMessageComponent() {
383
- /** The type of the message, used to derive the icon and base color. */
384
- this.type = 'error';
385
- /** The message to be displayed, HTML supported. */
386
- this.message = '';
387
- /** To be emitted when the user choose to dismiss the message. The event object is the ID of the element. */
388
- this.dismissed = new i0.EventEmitter();
389
- /** To be emitted when the component finishes initialisation. The event object is the ID of the element. */
390
- this.initialised = new i0.EventEmitter();
391
- /** @ignore */
392
- this._id = "bui-alert-" + common.generateID();
393
- this._dismissible = false;
394
- this._blink = false;
395
- }
396
- Object.defineProperty(AlertMessageComponent.prototype, "dismissible", {
397
- /** Whether to display the button to fire the `dismissed` event. */
398
- get: function () {
399
- return this._dismissible;
400
- },
401
- set: function (value) {
402
- this._dismissible = coercion.coerceBooleanProperty(value);
403
- },
404
- enumerable: false,
405
- configurable: true
406
- });
407
- AlertMessageComponent.prototype.ngOnInit = function () {
408
- this.initialised.emit(this._id);
409
- };
410
- Object.defineProperty(AlertMessageComponent.prototype, "iconName", {
411
- /** @ignore */
412
- get: function () {
413
- return ICONS[this.type];
414
- },
415
- enumerable: false,
416
- configurable: true
417
- });
418
- /** @ignore */
419
- AlertMessageComponent.prototype._dismiss = function () {
420
- this.dismissed.emit(this._id);
421
- };
422
- return AlertMessageComponent;
423
- }());
424
- AlertMessageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AlertMessageComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
425
- AlertMessageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AlertMessageComponent, selector: "bui-alert", inputs: { type: "type", message: "message", dismissible: "dismissible", _id: ["id", "_id"] }, outputs: { dismissed: "dismissed", initialised: "initialised" }, host: { attributes: { "role": "alert" }, properties: { "class": "'bui-alert bui-host bui-alert-' + (type === 'warn' ? 'warning' : type) + (dismissible ? ' bui-alert-dismissible' : '')", "id": "this._id" } }, ngImport: i0__namespace, template: "<div class=\"bui-alert-backdrop\"></div>\n<div class=\"bui-alert-frame\"></div>\n\n<div class=\"bui-alert-wrapper\">\n\t<div class=\"bui-alert-icon-area\">\n\t\t<mat-icon [buiIcon]=\"iconName\" variant=\"outlined\"></mat-icon>\n\t</div>\n\t<div class=\"bui-alert-content\"><div [innerHTML]=\"message\"></div></div>\n</div>\n\n<div class=\"bui-alert-button-area\" *ngIf=\"dismissible\">\n\t<div class=\"bui-alert-button-backdrop\"></div>\n\t<button mat-icon-button class=\"bui-alert-button\" (click)=\"_dismiss()\"><mat-icon>cancel</mat-icon></button>\n</div>\n", styles: [":host(:not([hidden])){display:block;padding:12px 14px 12px 19px;position:relative;border-radius:5px}:host-context([dir=rtl]) :host(:not([hidden])){padding:12px 19px 12px 14px}:host(:not([hidden])),:host(:not([hidden])) *{box-sizing:border-box}.bui-alert-backdrop,.bui-alert-frame{position:absolute;top:0;right:0;bottom:0;left:0}.bui-alert-backdrop{opacity:.1}:host(.bui-alert-dismissible) .bui-alert-backdrop{clip-path:polygon(0 0,calc(100% - 25px) 0,calc(100% - 18.75px) 18.75px,100% 25px,100% 100%,0 100%)}:host-context([dir=rtl]) :host(.bui-alert-dismissible) .bui-alert-backdrop{clip-path:polygon(0 25px,0 100%,100% 100%,100% 0,25px 0,18.75px 18.75px)}.bui-alert-frame{border-radius:5px;border-width:1px 1px 1px 5px;border-style:solid}:host-context([dir=rtl]) .bui-alert-frame{border-width:1px 5px 1px 1px}:host(.bui-alert-dismissible) .bui-alert-frame{clip-path:polygon(0 0,calc(100% - 25px) 0,calc(100% - 25px) 25px,100% 25px,100% 100%,0 100%)}:host-context([dir=rtl]) :host(.bui-alert-dismissible) .bui-alert-frame{clip-path:polygon(0 25px,0 100%,100% 100%,100% 0,25px 0)}.bui-alert-button-area{position:absolute;right:-15px;top:-15px;width:40px;height:40px;border-radius:20px;display:flex;align-items:center;justify-content:center}:host-context([dir=rtl]) .bui-alert-button-area{right:unset;left:-15px}.bui-alert-button-backdrop{position:absolute;border-radius:20px;width:100%;height:100%;clip-path:polygon(0 15px,25px 15px,25px 100%,0% 100%)}:host-context([dir=rtl]) .bui-alert-button-backdrop{clip-path:polygon(15px 15px,15px 100%,100% 100%,100% 15px)}.bui-alert-wrapper{display:flex;align-items:stretch}.bui-alert-icon-area{flex-shrink:0;display:flex;justify-content:center;align-items:center;border-radius:5px;width:30px;height:30px;margin-right:14px;color:var(--bui-bg-card)}:host-context([dir=rtl]) .bui-alert-icon-area{margin-right:unset;margin-left:14px}.bui-alert-content{display:flex;align-items:center;z-index:1}:host(.bui-alert-dismissible) .bui-alert-content{clip-path:polygon(0 0,calc(100% - 11px) 0,100% 13px,100% 100%,0 100%)}:host-context([dir=rtl]) :host(.bui-alert-dismissible) .bui-alert-content{clip-path:polygon(0 13px,0 100%,100% 100%,100% 0,11px 0)}:host(.bui-alert-success) .bui-alert-frame{border-color:var(--bui-color-success)}:host(.bui-alert-success) .bui-alert-backdrop,:host(.bui-alert-success) .bui-alert-icon-area{background-color:var(--bui-color-success)}:host(.bui-alert-success) .bui-alert-button-backdrop{border:1px var(--bui-color-success) solid}:host(.bui-alert-success) .bui-alert-button{color:var(--bui-color-success)}:host(.bui-alert-info) .bui-alert-frame{border-color:var(--bui-color-info)}:host(.bui-alert-info) .bui-alert-backdrop,:host(.bui-alert-info) .bui-alert-icon-area{background-color:var(--bui-color-info)}:host(.bui-alert-info) .bui-alert-button-backdrop{border:1px var(--bui-color-info) solid}:host(.bui-alert-info) .bui-alert-button{color:var(--bui-color-info)}:host(.bui-alert-warning) .bui-alert-frame{border-color:var(--bui-color-warning)}:host(.bui-alert-warning) .bui-alert-backdrop,:host(.bui-alert-warning) .bui-alert-icon-area{background-color:var(--bui-color-warning)}:host(.bui-alert-warning) .bui-alert-button-backdrop{border:1px var(--bui-color-warning) solid}:host(.bui-alert-warning) .bui-alert-button{color:var(--bui-color-warning)}:host(.bui-alert-error) .bui-alert-frame{border-color:var(--bui-color-error)}:host(.bui-alert-error) .bui-alert-backdrop,:host(.bui-alert-error) .bui-alert-icon-area{background-color:var(--bui-color-error)}:host(.bui-alert-error) .bui-alert-button-backdrop{border:1px var(--bui-color-error) solid}:host(.bui-alert-error) .bui-alert-button{color:var(--bui-color-error)}\n"], components: [{ type: i1__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3__namespace.IconDirective, selector: "[buiIcon]", inputs: ["buiIcon", "size", "variant"] }, { type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
426
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AlertMessageComponent, decorators: [{
427
- type: i0.Component,
428
- args: [{
429
- selector: 'bui-alert',
430
- templateUrl: './alert-message.component.html',
431
- styleUrls: ['./alert-message.component.scss'],
432
- host: {
433
- '[class]': "'bui-alert bui-host bui-alert-' + (type === 'warn' ? 'warning' : type) + (dismissible ? ' bui-alert-dismissible' : '')",
434
- role: 'alert'
435
- },
436
- changeDetection: i0.ChangeDetectionStrategy.OnPush
437
- }]
438
- }], ctorParameters: function () { return []; }, propDecorators: { type: [{
439
- type: i0.Input
440
- }], message: [{
441
- type: i0.Input
442
- }], dismissible: [{
443
- type: i0.Input
444
- }], dismissed: [{
445
- type: i0.Output
446
- }], initialised: [{
447
- type: i0.Output
448
- }],
449
- /** @ignore */
450
- _id: [{
451
- type: i0.Input,
452
- args: ['id']
453
- }, {
454
- type: i0.HostBinding,
455
- args: ['id']
456
- }] } });
457
-
458
- /**@internal */
459
- var InternalAlertOject = /** @class */ (function () {
460
- function InternalAlertOject(type, message) {
461
- this.type = type;
462
- this.message = message;
463
- this.deleted = false;
464
- this.id = "bui-alert-cont-alert-" + common.generateID();
465
- }
466
- return InternalAlertOject;
467
- }());
468
- /**
469
- * Use this component in a designated area of a page for displaying notification messages
470
- *
471
- */
472
- var AlertContainerComponent = /** @class */ (function () {
473
- function AlertContainerComponent(zone, cdRef, _elementRef, scroll) {
474
- this.zone = zone;
475
- this.cdRef = cdRef;
476
- this._elementRef = _elementRef;
477
- this.scroll = scroll;
478
- /** The maximum number of messages displayed in the container area. */
479
- this.max = 5;
480
- /**
481
- * This property determines the behavior for displaying the notifications when the container is outside the viewport.
482
- *
483
- * `scroll`: The component will try to scroll to reveal the new notifications.
484
- * `float`: The component will float the alert panel to the center of the screen for a couple of seconds and move it back to the original position.
485
- */
486
- this.outsideViewportBehavior = 'float';
487
- /**
488
- * The number of milliseconds for which the alert container will be floated when new notification arrives.
489
- *
490
- * This will only take effect when `outsideViewportBehavior` is set to `float` and the container is outside the viewport.
491
- */
492
- this.floatDuration = 2000;
493
- /**@internal */
494
- this._alerts = [];
495
- /**@internal */
496
- this._floated = false;
497
- /**@internal */
498
- this._floatPanelHidden = true;
499
- /** @ignore Emits whenever the animation is started. */
500
- this._animationStarted = new rxjs.Subject();
501
- /** @ignore Emits whenever the animation is done. */
502
- this._animationEnded = new rxjs.Subject();
503
- this._destroyed$ = new rxjs.Subject();
504
- }
505
- AlertContainerComponent.prototype.ngOnInit = function () {
506
- var _this = this;
507
- var checkScroll = function () {
508
- if (common.isElementInViewport(_this._elementRef.nativeElement)) {
509
- _this._endFloating();
510
- }
511
- };
512
- this.scroll
513
- .ancestorScrolled(this._elementRef.nativeElement)
514
- .pipe(operators.takeUntil(this._destroyed$))
515
- .subscribe(checkScroll);
516
- checkScroll();
517
- };
518
- AlertContainerComponent.prototype.ngOnDestroy = function () {
519
- var _b;
520
- this._destroyed$.next();
521
- this._destroyed$.complete();
522
- (_b = this._endFloatingSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
523
- };
524
- Object.defineProperty(AlertContainerComponent.prototype, "_remaining", {
525
- /**@internal */
526
- get: function () {
527
- return this._alerts.filter(function (a) { return !a.deleted; });
528
- },
529
- enumerable: false,
530
- configurable: true
531
- });
532
- Object.defineProperty(AlertContainerComponent.prototype, "_width", {
533
- /**@internal */
534
- get: function () {
535
- return this._elementRef.nativeElement.clientWidth;
536
- },
537
- enumerable: false,
538
- configurable: true
539
- });
540
- /** Add a message to the notification area */
541
- AlertContainerComponent.prototype.notify = function (type, message) {
542
- var _b;
543
- return __awaiter(this, void 0, void 0, function () {
544
- var duplicate, remaining, a;
545
- var _this = this;
546
- return __generator(this, function (_c) {
547
- switch (_c.label) {
548
- case 0:
549
- (_b = this._endFloatingSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
550
- duplicate = this._remaining.find(function (_a) { return message === _a.message; });
551
- if (duplicate) {
552
- this._dismiss(duplicate);
553
- }
554
- remaining = this._remaining;
555
- if (remaining.length >= this.max) {
556
- this._dismiss(remaining[0]);
557
- }
558
- a = new InternalAlertOject(type, message);
559
- return [4 /*yield*/, this._checkViewport()];
560
- case 1:
561
- _c.sent();
562
- this.zone.run(function () {
563
- _this._alerts.push(a);
564
- _this.cdRef.markForCheck();
565
- });
566
- return [2 /*return*/];
567
- }
568
- });
569
- });
570
- };
571
- /**@ignore */
572
- AlertContainerComponent.prototype._checkViewport = function () {
573
- return __awaiter(this, void 0, void 0, function () {
574
- var d;
575
- return __generator(this, function (_c) {
576
- switch (_c.label) {
577
- case 0:
578
- if (!!common.isElementInViewport(this._elementRef.nativeElement)) return [3 /*break*/, 3];
579
- if (!(this.outsideViewportBehavior === 'float')) return [3 /*break*/, 2];
580
- d = this._floated ? 0 : 100;
581
- this._floated = true;
582
- this._floatPanelHidden = false;
583
- this._endFloating(this.floatDuration);
584
- this.cdRef.markForCheck();
585
- return [4 /*yield*/, rxjs.timer(d).toPromise()];
586
- case 1:
587
- _c.sent();
588
- return [3 /*break*/, 3];
589
- case 2:
590
- this._elementRef.nativeElement.scrollIntoView({ block: 'start', behavior: 'smooth' });
591
- _c.label = 3;
592
- case 3: return [2 /*return*/];
593
- }
594
- });
595
- });
596
- };
597
- /**@ignore */
598
- AlertContainerComponent.prototype._dismiss = function (a) {
599
- return __awaiter(this, void 0, void 0, function () {
600
- var id;
601
- var _this = this;
602
- return __generator(this, function (_c) {
603
- switch (_c.label) {
604
- case 0:
605
- id = a.id;
606
- a.deleted = true;
607
- this.cdRef.markForCheck();
608
- return [4 /*yield*/, this._animationEnded.pipe(operators.take(1)).toPromise()];
609
- case 1:
610
- _c.sent();
611
- this.zone.run(function () {
612
- _this._alerts = _this._alerts.filter(function (_a) { return _a.id !== id; });
613
- _this.cdRef.markForCheck();
614
- });
615
- return [2 /*return*/];
616
- }
617
- });
618
- });
619
- };
620
- /** Remove all messages currently displayed. */
621
- AlertContainerComponent.prototype.clear = function () {
622
- return __awaiter(this, void 0, void 0, function () {
623
- var _this = this;
624
- return __generator(this, function (_c) {
625
- switch (_c.label) {
626
- case 0: return [4 /*yield*/, Promise.all(this._remaining.map(function (a) { return _this._dismiss(a); }))];
627
- case 1:
628
- _c.sent();
629
- this._endFloating();
630
- return [2 /*return*/];
631
- }
632
- });
633
- });
634
- };
635
- AlertContainerComponent.prototype._endFloating = function (_delay) {
636
- var _this = this;
637
- if (_delay === void 0) { _delay = 0; }
638
- var _b;
639
- if (!this._floated) {
640
- return;
641
- }
642
- (_b = this._endFloatingSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
643
- this._endFloatingSub = rxjs.timer(_delay)
644
- .pipe(operators.tap(function () {
645
- _this._floated = false;
646
- _this.zone.run(function () { return _this.cdRef.markForCheck(); });
647
- }), operators.delay(400))
648
- .subscribe(function () {
649
- _this._floatPanelHidden = true;
650
- _this.zone.run(function () { return _this.cdRef.markForCheck(); });
651
- });
652
- };
653
- return AlertContainerComponent;
654
- }());
655
- AlertContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AlertContainerComponent, deps: [{ token: i0__namespace.NgZone }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }, { token: i1__namespace$1.ScrollDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
656
- AlertContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AlertContainerComponent, selector: "bui-alert-container", inputs: { max: "max", outsideViewportBehavior: "outsideViewportBehavior", floatDuration: "floatDuration" }, host: { properties: { "class": "'bui-alert-container bui-host bui-alert-container-' + (_remaining.length ? 'not-empty': 'empty')" } }, ngImport: i0__namespace, template: "<div\n\tclass=\"bui-alert-fixed-panel\"\n\t[style.opacity]=\"_floatPanelHidden ? 1 : 0\"\n\t[class.bui-alert-fixed-panel-blink]=\"outsideViewportBehavior === 'scroll'\"\n>\n\t<bui-alert\n\t\t*ngFor=\"let a of _alerts\"\n\t\t[id]=\"a.id\"\n\t\t[type]=\"a.type\"\n\t\t[message]=\"a.message\"\n\t\tdismissible\n\t\t[@alertTransition]=\"a.deleted ? 'hidden' : 'visible'\"\n\t\t(@alertTransition.start)=\"_animationStarted.next($event)\"\n\t\t(@alertTransition.done)=\"_animationEnded.next($event)\"\n\t\t(dismissed)=\"_dismiss(a)\"\n\t></bui-alert>\n</div>\n\n<div class=\"bui-alert-float-panel-frame\" [hidden]=\"_floatPanelHidden\" [class.bui-alert-float-panel-shaded]=\"_floated\">\n\t<div class=\"bui-alert-float-panel\" [style.max-width]=\"_width + 'px'\" [@floatTransition]=\"'visible'\" *ngIf=\"_floated\">\n\t\t<bui-alert\n\t\t\t*ngFor=\"let a of _alerts\"\n\t\t\t[id]=\"a.id\"\n\t\t\t[type]=\"a.type\"\n\t\t\t[message]=\"a.message\"\n\t\t\t[@alertTransition]=\"a.deleted ? 'hidden' : 'visible'\"\n\t\t></bui-alert>\n\t</div>\n</div>\n", styles: [".bui-alert:not(:first-of-type){margin-top:.5rem}:host(:not([hidden])){display:block}.bui-alert-fixed-panel{transition:opacity .2s ease-in}.bui-alert-fixed-panel.bui-alert-fixed-panel-blink .bui-alert:last-of-type{animation:blink 1s ease-in forwards}.bui-alert-float-panel-frame{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;justify-content:center;align-items:center;flex-direction:column;transition:background-color .4s cubic-bezier(.25,0,.55,.2)}.bui-alert-float-panel-frame:not([hidden]){display:flex}.bui-alert-float-panel-frame.bui-alert-float-panel-shaded{background-color:#00000080}.bui-alert-float-panel-frame .bui-alert{background-color:var(--bui-bg-card)}@keyframes blink{60%{opacity:1}70%{opacity:0}80%{opacity:1}90%{opacity:0}}\n"], components: [{ type: AlertMessageComponent, selector: "bui-alert", inputs: ["type", "message", "dismissible", "id"], outputs: ["dismissed", "initialised"] }], directives: [{ type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
657
- animations.trigger('floatTransition', [
658
- animations.transition(':enter', [animations.style({ opacity: '0', transform: 'translateY(-10vh)' }), animations.animate('.3s ease-in')]),
659
- animations.transition(':leave', [animations.animate('.4s ease-out', animations.style({ transform: 'translateY(-10vh)', opacity: '0' }))])
660
- ]),
661
- animations.trigger('alertTransition', [
662
- animations.state('visible', animations.style({})),
663
- animations.state('hidden', animations.style({
664
- height: 0,
665
- overflow: 'hidden',
666
- transform: 'scaleY(0)',
667
- opacity: 0,
668
- 'margin-top': '-1rem'
669
- })),
670
- animations.transition('void => visible', [
671
- animations.style({ transform: 'translateY(100%)', height: 0, opacity: '0' }),
672
- animations.animate('250ms cubic-bezier(0.42, 0.0, 0.58, 1.0)')
673
- ]),
674
- animations.transition('visible => hidden', [animations.animate('250ms cubic-bezier(0.25, 0, 0.3, 1.0)')])
675
- ])
676
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
677
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AlertContainerComponent, decorators: [{
678
- type: i0.Component,
679
- args: [{
680
- selector: 'bui-alert-container',
681
- templateUrl: './alert-container.component.html',
682
- styleUrls: ['./alert-container.component.scss'],
683
- host: {
684
- '[class]': "'bui-alert-container bui-host bui-alert-container-' + (_remaining.length ? 'not-empty': 'empty')"
685
- },
686
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
687
- animations: [
688
- animations.trigger('floatTransition', [
689
- animations.transition(':enter', [animations.style({ opacity: '0', transform: 'translateY(-10vh)' }), animations.animate('.3s ease-in')]),
690
- animations.transition(':leave', [animations.animate('.4s ease-out', animations.style({ transform: 'translateY(-10vh)', opacity: '0' }))])
691
- ]),
692
- animations.trigger('alertTransition', [
693
- animations.state('visible', animations.style({})),
694
- animations.state('hidden', animations.style({
695
- height: 0,
696
- overflow: 'hidden',
697
- transform: 'scaleY(0)',
698
- opacity: 0,
699
- 'margin-top': '-1rem'
700
- })),
701
- animations.transition('void => visible', [
702
- animations.style({ transform: 'translateY(100%)', height: 0, opacity: '0' }),
703
- animations.animate('250ms cubic-bezier(0.42, 0.0, 0.58, 1.0)')
704
- ]),
705
- animations.transition('visible => hidden', [animations.animate('250ms cubic-bezier(0.25, 0, 0.3, 1.0)')])
706
- ])
707
- ]
708
- }]
709
- }], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }, { type: i1__namespace$1.ScrollDispatcher }]; }, propDecorators: { max: [{
710
- type: i0.Input
711
- }], outsideViewportBehavior: [{
712
- type: i0.Input
713
- }], floatDuration: [{
714
- type: i0.Input
715
- }] } });
716
-
717
- var AlertModule = /** @class */ (function () {
718
- function AlertModule() {
719
- }
720
- return AlertModule;
721
- }());
722
- AlertModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AlertModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
723
- AlertModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AlertModule, declarations: [AlertMessageComponent, AlertContainerComponent], imports: [i3$1.CommonModule, i3.IconFontModule, i2.MatButtonModule], exports: [AlertMessageComponent, AlertContainerComponent] });
724
- AlertModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AlertModule, imports: [[i3$1.CommonModule, i3.IconFontModule, i2.MatButtonModule]] });
725
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AlertModule, decorators: [{
726
- type: i0.NgModule,
727
- args: [{
728
- declarations: [AlertMessageComponent, AlertContainerComponent],
729
- imports: [i3$1.CommonModule, i3.IconFontModule, i2.MatButtonModule],
730
- exports: [AlertMessageComponent, AlertContainerComponent]
731
- }]
732
- }] });
733
-
734
- /**
735
- * Generated bundle index. Do not edit.
736
- */
737
-
738
- exports.AlertContainerComponent = AlertContainerComponent;
739
- exports.AlertMessageComponent = AlertMessageComponent;
740
- exports.AlertModule = AlertModule;
741
-
742
- Object.defineProperty(exports, '__esModule', { value: true });
743
-
744
- }));
745
- //# sourceMappingURL=bravura-ui-alert.umd.js.map