@bravobit/bb-foundation 0.15.5 → 0.16.2

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 (388) hide show
  1. package/auth/lib/auth.interceptor.d.ts +1 -1
  2. package/auth/lib/auth.service.d.ts +1 -1
  3. package/auth/package.json +5 -5
  4. package/collections/package.json +5 -5
  5. package/controls/bravobit-bb-foundation-controls.d.ts +5 -0
  6. package/controls/lib/checkbox/checkbox/checkbox.component.d.ts +47 -0
  7. package/controls/lib/checkbox/checkbox-group/checkbox-group.component.d.ts +18 -0
  8. package/controls/lib/checkbox/checkbox.module.d.ts +9 -0
  9. package/controls/lib/controls.module.d.ts +7 -0
  10. package/controls/package.json +10 -0
  11. package/controls/public_api.d.ts +4 -0
  12. package/dashboard/package.json +5 -5
  13. package/dialog/package.json +5 -5
  14. package/elements/package.json +5 -5
  15. package/{esm2015/auth/bravobit-bb-foundation-auth.js → esm2020/auth/bravobit-bb-foundation-auth.mjs} +0 -0
  16. package/esm2020/auth/lib/auth.interceptor.mjs +94 -0
  17. package/{esm2015/auth/lib/auth.module.js → esm2020/auth/lib/auth.module.mjs} +5 -5
  18. package/esm2020/auth/lib/auth.service.mjs +276 -0
  19. package/esm2020/auth/lib/auth.session.mjs +131 -0
  20. package/{esm2015/auth/lib/directives/authenticated.directive.js → esm2020/auth/lib/directives/authenticated.directive.mjs} +5 -6
  21. package/esm2020/auth/lib/directives/permission.directive.mjs +80 -0
  22. package/esm2020/auth/lib/directives/role.directive.mjs +37 -0
  23. package/esm2020/auth/lib/guards/anonymous.guard.mjs +34 -0
  24. package/esm2020/auth/lib/guards/authenticated.guard.mjs +35 -0
  25. package/{esm2015/auth/lib/helpers/jwt.helper.js → esm2020/auth/lib/helpers/jwt.helper.mjs} +3 -3
  26. package/{esm2015/auth/lib/helpers/mapper.helper.js → esm2020/auth/lib/helpers/mapper.helper.mjs} +4 -4
  27. package/{esm2015/auth/lib/interfaces/config.interface.js → esm2020/auth/lib/interfaces/config.interface.mjs} +0 -0
  28. package/{esm2015/auth/lib/interfaces/mapper.interface.js → esm2020/auth/lib/interfaces/mapper.interface.mjs} +0 -0
  29. package/{esm2015/auth/lib/interfaces/provider.interface.js → esm2020/auth/lib/interfaces/provider.interface.mjs} +0 -0
  30. package/{esm2015/auth/lib/interfaces/token.interface.js → esm2020/auth/lib/interfaces/token.interface.mjs} +0 -0
  31. package/esm2020/auth/lib/permissions.service.mjs +56 -0
  32. package/esm2020/auth/lib/providers/email.provider.mjs +25 -0
  33. package/esm2020/auth/lib/providers/verify.provider.mjs +19 -0
  34. package/{esm2015/auth/lib/tokens/use-authorization.token.js → esm2020/auth/lib/tokens/use-authorization.token.mjs} +0 -0
  35. package/{esm2015/auth/public_api.js → esm2020/auth/public_api.mjs} +0 -0
  36. package/{esm2015/bravobit-bb-foundation.js → esm2020/bravobit-bb-foundation.mjs} +0 -0
  37. package/{esm2015/collections/bravobit-bb-foundation-collections.js → esm2020/collections/bravobit-bb-foundation-collections.mjs} +0 -0
  38. package/esm2020/collections/lib/collection.mjs +98 -0
  39. package/{esm2015/collections/lib/collections.module.js → esm2020/collections/lib/collections.module.mjs} +5 -5
  40. package/esm2020/collections/lib/components/collections-pager/collections-pager.component.mjs +123 -0
  41. package/esm2020/collections/lib/components/collections-viewer/collections-viewer.component.mjs +31 -0
  42. package/{esm2015/collections/lib/components/collections.directive.js → esm2020/collections/lib/components/collections.directive.mjs} +13 -13
  43. package/{esm2015/collections/lib/interfaces/collection.interface.js → esm2020/collections/lib/interfaces/collection.interface.mjs} +0 -0
  44. package/esm2020/collections/lib/providers/api-collection.provider.mjs +71 -0
  45. package/esm2020/collections/lib/providers/collection.provider.mjs +13 -0
  46. package/{esm2015/collections/lib/providers/local-collection.provider.js → esm2020/collections/lib/providers/local-collection.provider.mjs} +0 -0
  47. package/{esm2015/collections/public_api.js → esm2020/collections/public_api.mjs} +0 -0
  48. package/esm2020/controls/bravobit-bb-foundation-controls.mjs +5 -0
  49. package/esm2020/controls/lib/checkbox/checkbox/checkbox.component.mjs +153 -0
  50. package/esm2020/controls/lib/checkbox/checkbox-group/checkbox-group.component.mjs +48 -0
  51. package/esm2020/controls/lib/checkbox/checkbox.module.mjs +19 -0
  52. package/esm2020/controls/lib/controls.module.mjs +16 -0
  53. package/esm2020/controls/public_api.mjs +5 -0
  54. package/{esm2015/dashboard/bravobit-bb-foundation-dashboard.js → esm2020/dashboard/bravobit-bb-foundation-dashboard.mjs} +0 -0
  55. package/esm2020/dashboard/lib/dashboard/dashboard.component.mjs +56 -0
  56. package/esm2020/dashboard/lib/dashboard-header/dashboard-header.component.mjs +30 -0
  57. package/esm2020/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +31 -0
  58. package/esm2020/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +29 -0
  59. package/esm2020/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +75 -0
  60. package/esm2020/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +99 -0
  61. package/esm2020/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +62 -0
  62. package/{esm2015/dashboard/lib/dashboard.module.js → esm2020/dashboard/lib/dashboard.module.mjs} +5 -5
  63. package/{esm2015/dashboard/public_api.js → esm2020/dashboard/public_api.mjs} +0 -0
  64. package/{esm2015/dialog/bravobit-bb-foundation-dialog.js → esm2020/dialog/bravobit-bb-foundation-dialog.mjs} +0 -0
  65. package/esm2020/dialog/lib/dialog-actions/dialog-actions.component.mjs +12 -0
  66. package/esm2020/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +37 -0
  67. package/{esm2015/dialog/lib/dialog-container/dialog-container.component.js → esm2020/dialog/lib/dialog-container/dialog-container.component.mjs} +6 -15
  68. package/esm2020/dialog/lib/dialog-header/dialog-header.component.mjs +25 -0
  69. package/esm2020/dialog/lib/dialog-link/dialog-link.component.mjs +11 -0
  70. package/esm2020/dialog/lib/dialog-modal/dialog-modal.component.mjs +46 -0
  71. package/esm2020/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +134 -0
  72. package/{esm2015/dialog/lib/dialog.injector.js → esm2020/dialog/lib/dialog.injector.mjs} +0 -0
  73. package/{esm2015/dialog/lib/dialog.insertion.js → esm2020/dialog/lib/dialog.insertion.mjs} +4 -4
  74. package/{esm2015/dialog/lib/dialog.interfaces.js → esm2020/dialog/lib/dialog.interfaces.mjs} +0 -0
  75. package/{esm2015/dialog/lib/dialog.module.js → esm2020/dialog/lib/dialog.module.mjs} +5 -9
  76. package/{esm2015/dialog/lib/dialog.ref.js → esm2020/dialog/lib/dialog.ref.mjs} +0 -0
  77. package/{esm2015/dialog/lib/dialog.service.js → esm2020/dialog/lib/dialog.service.mjs} +5 -5
  78. package/{esm2015/dialog/public_api.js → esm2020/dialog/public_api.mjs} +0 -0
  79. package/{esm2015/elements/bravobit-bb-foundation-elements.js → esm2020/elements/bravobit-bb-foundation-elements.mjs} +0 -0
  80. package/esm2020/elements/lib/avatar/avatar.component.mjs +142 -0
  81. package/esm2020/elements/lib/button/button.component.mjs +61 -0
  82. package/esm2020/elements/lib/checkbox/checkbox.component.mjs +73 -0
  83. package/esm2020/elements/lib/date-picker/date-picker.component.mjs +304 -0
  84. package/{esm2015/elements/lib/directives/addon.directive.js → esm2020/elements/lib/directives/addon.directive.mjs} +7 -7
  85. package/esm2020/elements/lib/directives/autosize.directive.mjs +72 -0
  86. package/{esm2015/elements/lib/directives/focus-trap.directive.js → esm2020/elements/lib/directives/focus-trap.directive.mjs} +4 -4
  87. package/{esm2015/elements/lib/directives/focus.directive.js → esm2020/elements/lib/directives/focus.directive.mjs} +4 -4
  88. package/esm2020/elements/lib/directives/form-submit.directive.mjs +50 -0
  89. package/esm2020/elements/lib/directives/input.directive.mjs +136 -0
  90. package/{esm2015/elements/lib/directives/template.directive.js → esm2020/elements/lib/directives/template.directive.mjs} +4 -4
  91. package/esm2020/elements/lib/dropdown/dropdown.component.mjs +100 -0
  92. package/{esm2015/elements/lib/elements.interfaces.js → esm2020/elements/lib/elements.interfaces.mjs} +0 -0
  93. package/{esm2015/elements/lib/elements.module.js → esm2020/elements/lib/elements.module.mjs} +5 -5
  94. package/esm2020/elements/lib/file-picker/file-picker.component.mjs +236 -0
  95. package/esm2020/elements/lib/form-control/form-control.component.mjs +49 -0
  96. package/esm2020/elements/lib/form-error/form-error.component.mjs +108 -0
  97. package/esm2020/elements/lib/form-group/form-group.component.mjs +18 -0
  98. package/esm2020/elements/lib/icon/icon.component.mjs +102 -0
  99. package/esm2020/elements/lib/image-picker/image-picker.component.mjs +106 -0
  100. package/esm2020/elements/lib/pipes/file-image.pipe.mjs +42 -0
  101. package/{esm2015/elements/lib/pipes/file-size.pipe.js → esm2020/elements/lib/pipes/file-size.pipe.mjs} +4 -4
  102. package/esm2020/elements/lib/pipes/relative-time.pipe.mjs +94 -0
  103. package/esm2020/elements/lib/spinner/spinner.component.mjs +25 -0
  104. package/esm2020/elements/lib/tag/tag.component.mjs +18 -0
  105. package/{esm2015/elements/public_api.js → esm2020/elements/public_api.mjs} +0 -0
  106. package/{esm2015/http/bravobit-bb-foundation-http.js → esm2020/http/bravobit-bb-foundation-http.mjs} +0 -0
  107. package/esm2020/http/lib/classes/http.config.mjs +29 -0
  108. package/esm2020/http/lib/classes/http.error.mjs +20 -0
  109. package/{esm2015/http/lib/http.interfaces.js → esm2020/http/lib/http.interfaces.mjs} +0 -0
  110. package/{esm2015/http/lib/http.module.js → esm2020/http/lib/http.module.mjs} +5 -5
  111. package/esm2020/http/lib/interceptors/base-url.interceptor.mjs +50 -0
  112. package/esm2020/http/lib/interceptors/error.interceptor.mjs +32 -0
  113. package/{esm2015/http/public_api.js → esm2020/http/public_api.mjs} +0 -0
  114. package/{esm2015/lib/core/miscellaneous/regex.js → esm2020/lib/core/miscellaneous/regex.mjs} +0 -0
  115. package/esm2020/lib/core/miscellaneous/validator.mjs +85 -0
  116. package/esm2020/lib/core/mixins/can-disable.mjs +16 -0
  117. package/{esm2015/lib/core/mixins/can-hide-errors.js → esm2020/lib/core/mixins/can-hide-errors.mjs} +2 -2
  118. package/esm2020/lib/core/mixins/can-load.mjs +16 -0
  119. package/{esm2015/lib/core/mixins/constructor.js → esm2020/lib/core/mixins/constructor.mjs} +0 -0
  120. package/esm2020/lib/core/mixins/has-error.mjs +16 -0
  121. package/esm2020/lib/core/mixins/is-focused.mjs +16 -0
  122. package/esm2020/lib/core/mixins/is-grouped.mjs +16 -0
  123. package/esm2020/lib/core/mixins/is-readonly.mjs +16 -0
  124. package/esm2020/lib/core/mixins/is-required.mjs +16 -0
  125. package/esm2020/lib/core/services/clipboard.service.mjs +70 -0
  126. package/esm2020/lib/core/services/exif.service.mjs +163 -0
  127. package/esm2020/lib/core/services/file-loader.service.mjs +87 -0
  128. package/esm2020/lib/core/services/image-converter.service.mjs +123 -0
  129. package/{esm2015/lib/core/services/languages.service.js → esm2020/lib/core/services/languages.service.mjs} +4 -4
  130. package/{esm2015/lib/core/services/network.service.js → esm2020/lib/core/services/network.service.mjs} +5 -6
  131. package/esm2020/lib/core/services/patch.service.mjs +63 -0
  132. package/{esm2015/lib/core/services/platform.service.js → esm2020/lib/core/services/platform.service.mjs} +5 -5
  133. package/{esm2015/lib/core/tokens/accept-language.token.js → esm2020/lib/core/tokens/accept-language.token.mjs} +0 -0
  134. package/{esm2015/lib/core/tokens/base-url.token.js → esm2020/lib/core/tokens/base-url.token.mjs} +0 -0
  135. package/{esm2015/lib/core/tokens/cookie.token.js → esm2020/lib/core/tokens/cookie.token.mjs} +0 -0
  136. package/{esm2015/lib/core/tokens/location.token.js → esm2020/lib/core/tokens/location.token.mjs} +0 -0
  137. package/{esm2015/lib/core/tokens/navigator.token.js → esm2020/lib/core/tokens/navigator.token.mjs} +0 -0
  138. package/{esm2015/lib/core/tokens/window.token.js → esm2020/lib/core/tokens/window.token.mjs} +0 -0
  139. package/{esm2015/localize/bravobit-bb-foundation-localize.js → esm2020/localize/bravobit-bb-foundation-localize.mjs} +0 -0
  140. package/{esm2015/localize/lib/functions/date.function.js → esm2020/localize/lib/functions/date.function.mjs} +0 -0
  141. package/{esm2015/localize/lib/functions/lowercase.function.js → esm2020/localize/lib/functions/lowercase.function.mjs} +0 -0
  142. package/{esm2015/localize/lib/functions/uppercase.function.js → esm2020/localize/lib/functions/uppercase.function.mjs} +0 -0
  143. package/{esm2015/localize/lib/handlers/missing.handler.js → esm2020/localize/lib/handlers/missing.handler.mjs} +0 -0
  144. package/{esm2015/localize/lib/interfaces/config.interfaces.js → esm2020/localize/lib/interfaces/config.interfaces.mjs} +0 -0
  145. package/{esm2015/localize/lib/interfaces/dictionary.interfaces.js → esm2020/localize/lib/interfaces/dictionary.interfaces.mjs} +0 -0
  146. package/{esm2015/localize/lib/interfaces/functions.interfaces.js → esm2020/localize/lib/interfaces/functions.interfaces.mjs} +0 -0
  147. package/{esm2015/localize/lib/interfaces/handlers.interfaces.js → esm2020/localize/lib/interfaces/handlers.interfaces.mjs} +0 -0
  148. package/{esm2015/localize/lib/interfaces/options.interfaces.js → esm2020/localize/lib/interfaces/options.interfaces.mjs} +0 -0
  149. package/{esm2015/localize/lib/localizations/dutch.localization.js → esm2020/localize/lib/localizations/dutch.localization.mjs} +0 -0
  150. package/{esm2015/localize/lib/localizations/english.localization.js → esm2020/localize/lib/localizations/english.localization.mjs} +0 -0
  151. package/esm2020/localize/lib/localize.dictionary.mjs +135 -0
  152. package/{esm2015/localize/lib/localize.module.js → esm2020/localize/lib/localize.module.mjs} +5 -5
  153. package/{esm2015/localize/lib/localize.pipe.js → esm2020/localize/lib/localize.pipe.mjs} +5 -5
  154. package/esm2020/localize/lib/localize.service.mjs +277 -0
  155. package/esm2020/localize/lib/views/localize-string/localize-string.component.mjs +88 -0
  156. package/{esm2015/localize/lib/views/localize-template-or-string.directive.js → esm2020/localize/lib/views/localize-template-or-string.directive.mjs} +4 -4
  157. package/{esm2015/localize/lib/views/localize-template.directive.js → esm2020/localize/lib/views/localize-template.directive.mjs} +4 -4
  158. package/{esm2015/localize/public_api.js → esm2020/localize/public_api.mjs} +0 -0
  159. package/{esm2015/notifications/bravobit-bb-foundation-notifications.js → esm2020/notifications/bravobit-bb-foundation-notifications.mjs} +0 -0
  160. package/esm2020/notifications/lib/notifications-item/notifications-item.component.mjs +100 -0
  161. package/esm2020/notifications/lib/notifications-list/notifications-list.component.mjs +47 -0
  162. package/{esm2015/notifications/lib/notifications.animations.js → esm2020/notifications/lib/notifications.animations.mjs} +0 -0
  163. package/{esm2015/notifications/lib/notifications.injector.js → esm2020/notifications/lib/notifications.injector.mjs} +0 -0
  164. package/{esm2015/notifications/lib/notifications.interfaces.js → esm2020/notifications/lib/notifications.interfaces.mjs} +0 -0
  165. package/{esm2015/notifications/lib/notifications.module.js → esm2020/notifications/lib/notifications.module.mjs} +6 -7
  166. package/{esm2015/notifications/lib/notifications.service.js → esm2020/notifications/lib/notifications.service.mjs} +5 -5
  167. package/{esm2015/notifications/public_api.js → esm2020/notifications/public_api.mjs} +0 -0
  168. package/{esm2015/public_api.js → esm2020/public_api.mjs} +1 -2
  169. package/{esm2015/recaptcha/bravobit-bb-foundation-recaptcha.js → esm2020/recaptcha/bravobit-bb-foundation-recaptcha.mjs} +0 -0
  170. package/esm2020/recaptcha/lib/recaptcha/recaptcha.component.mjs +185 -0
  171. package/esm2020/recaptcha/lib/recaptcha-loader.service.mjs +90 -0
  172. package/{esm2015/recaptcha/lib/recaptcha.interface.js → esm2020/recaptcha/lib/recaptcha.interface.mjs} +0 -0
  173. package/{esm2015/recaptcha/lib/recaptcha.module.js → esm2020/recaptcha/lib/recaptcha.module.mjs} +5 -5
  174. package/{esm2015/recaptcha/public_api.js → esm2020/recaptcha/public_api.mjs} +0 -0
  175. package/{esm2015/rxjs/bravobit-bb-foundation-rxjs.js → esm2020/rxjs/bravobit-bb-foundation-rxjs.mjs} +0 -0
  176. package/esm2020/rxjs/lib/operators/combine-latest-map.operator.mjs +10 -0
  177. package/{esm2015/rxjs/lib/operators/filter-nil.operator.js → esm2020/rxjs/lib/operators/filter-nil.operator.mjs} +0 -0
  178. package/{esm2015/rxjs/public_api.js → esm2020/rxjs/public_api.mjs} +0 -0
  179. package/{esm2015/storage/bravobit-bb-foundation-storage.js → esm2020/storage/bravobit-bb-foundation-storage.mjs} +0 -0
  180. package/{esm2015/storage/lib/interfaces/attributes.interface.js → esm2020/storage/lib/interfaces/attributes.interface.mjs} +0 -0
  181. package/{esm2015/storage/lib/interfaces/memory.interface.js → esm2020/storage/lib/interfaces/memory.interface.mjs} +0 -0
  182. package/{esm2015/storage/lib/interfaces/strategy.interface.js → esm2020/storage/lib/interfaces/strategy.interface.mjs} +0 -0
  183. package/esm2020/storage/lib/storage.service.mjs +109 -0
  184. package/esm2020/storage/lib/strategies/cookie-storage.strategy.mjs +142 -0
  185. package/{esm2015/storage/lib/strategies/memory-storage.strategy.js → esm2020/storage/lib/strategies/memory-storage.strategy.mjs} +2 -2
  186. package/esm2020/storage/lib/strategies/polyfill-storage.strategy.mjs +102 -0
  187. package/{esm2015/storage/public_api.js → esm2020/storage/public_api.mjs} +0 -0
  188. package/{esm2015/table/bravobit-bb-foundation-table.js → esm2020/table/bravobit-bb-foundation-table.mjs} +0 -0
  189. package/esm2020/table/lib/components/table/table.component.mjs +191 -0
  190. package/esm2020/table/lib/components/table-cell/table-cell.component.mjs +11 -0
  191. package/esm2020/table/lib/components/table-header-cell/table-header-cell.component.mjs +131 -0
  192. package/esm2020/table/lib/components/table-pager/table-pager.component.mjs +136 -0
  193. package/esm2020/table/lib/data/datasource.data.mjs +32 -0
  194. package/esm2020/table/lib/data/generic.data.mjs +72 -0
  195. package/{esm2015/table/lib/interfaces/datasource.interface.js → esm2020/table/lib/interfaces/datasource.interface.mjs} +0 -0
  196. package/{esm2015/table/lib/interfaces/table.interfaces.js → esm2020/table/lib/interfaces/table.interfaces.mjs} +0 -0
  197. package/{esm2015/table/lib/table.module.js → esm2020/table/lib/table.module.mjs} +5 -5
  198. package/{esm2015/table/public_api.js → esm2020/table/public_api.mjs} +0 -0
  199. package/fesm2015/{bravobit-bb-foundation-auth.js → bravobit-bb-foundation-auth.mjs} +79 -68
  200. package/fesm2015/bravobit-bb-foundation-auth.mjs.map +1 -0
  201. package/fesm2015/{bravobit-bb-foundation-collections.js → bravobit-bb-foundation-collections.mjs} +36 -47
  202. package/fesm2015/bravobit-bb-foundation-collections.mjs.map +1 -0
  203. package/fesm2015/bravobit-bb-foundation-controls.mjs +235 -0
  204. package/fesm2015/bravobit-bb-foundation-controls.mjs.map +1 -0
  205. package/fesm2015/bravobit-bb-foundation-dashboard.mjs +416 -0
  206. package/fesm2015/bravobit-bb-foundation-dashboard.mjs.map +1 -0
  207. package/fesm2015/{bravobit-bb-foundation-dialog.js → bravobit-bb-foundation-dialog.mjs} +45 -106
  208. package/fesm2015/bravobit-bb-foundation-dialog.mjs.map +1 -0
  209. package/fesm2015/{bravobit-bb-foundation-elements.js → bravobit-bb-foundation-elements.mjs} +195 -303
  210. package/fesm2015/bravobit-bb-foundation-elements.mjs.map +1 -0
  211. package/fesm2015/{bravobit-bb-foundation-http.js → bravobit-bb-foundation-http.mjs} +18 -16
  212. package/fesm2015/bravobit-bb-foundation-http.mjs.map +1 -0
  213. package/fesm2015/{bravobit-bb-foundation-localize.js → bravobit-bb-foundation-localize.mjs} +63 -69
  214. package/fesm2015/bravobit-bb-foundation-localize.mjs.map +1 -0
  215. package/fesm2015/bravobit-bb-foundation-notifications.mjs +377 -0
  216. package/fesm2015/bravobit-bb-foundation-notifications.mjs.map +1 -0
  217. package/fesm2015/{bravobit-bb-foundation-recaptcha.js → bravobit-bb-foundation-recaptcha.mjs} +40 -47
  218. package/fesm2015/bravobit-bb-foundation-recaptcha.mjs.map +1 -0
  219. package/fesm2015/{bravobit-bb-foundation-rxjs.js → bravobit-bb-foundation-rxjs.mjs} +1 -1
  220. package/fesm2015/bravobit-bb-foundation-rxjs.mjs.map +1 -0
  221. package/fesm2015/{bravobit-bb-foundation-storage.js → bravobit-bb-foundation-storage.mjs} +12 -10
  222. package/fesm2015/bravobit-bb-foundation-storage.mjs.map +1 -0
  223. package/fesm2015/bravobit-bb-foundation-table.mjs +603 -0
  224. package/fesm2015/bravobit-bb-foundation-table.mjs.map +1 -0
  225. package/fesm2015/{bravobit-bb-foundation.js → bravobit-bb-foundation.mjs} +76 -69
  226. package/fesm2015/bravobit-bb-foundation.mjs.map +1 -0
  227. package/fesm2020/bravobit-bb-foundation-auth.mjs +928 -0
  228. package/fesm2020/bravobit-bb-foundation-auth.mjs.map +1 -0
  229. package/fesm2020/bravobit-bb-foundation-collections.mjs +437 -0
  230. package/fesm2020/bravobit-bb-foundation-collections.mjs.map +1 -0
  231. package/fesm2020/bravobit-bb-foundation-controls.mjs +233 -0
  232. package/fesm2020/bravobit-bb-foundation-controls.mjs.map +1 -0
  233. package/fesm2020/bravobit-bb-foundation-dashboard.mjs +404 -0
  234. package/fesm2020/bravobit-bb-foundation-dashboard.mjs.map +1 -0
  235. package/fesm2020/bravobit-bb-foundation-dialog.mjs +584 -0
  236. package/fesm2020/bravobit-bb-foundation-dialog.mjs.map +1 -0
  237. package/fesm2020/bravobit-bb-foundation-elements.mjs +1994 -0
  238. package/fesm2020/bravobit-bb-foundation-elements.mjs.map +1 -0
  239. package/fesm2020/bravobit-bb-foundation-http.mjs +168 -0
  240. package/fesm2020/bravobit-bb-foundation-http.mjs.map +1 -0
  241. package/fesm2020/bravobit-bb-foundation-localize.mjs +832 -0
  242. package/fesm2020/bravobit-bb-foundation-localize.mjs.map +1 -0
  243. package/fesm2020/bravobit-bb-foundation-notifications.mjs +375 -0
  244. package/fesm2020/bravobit-bb-foundation-notifications.mjs.map +1 -0
  245. package/fesm2020/bravobit-bb-foundation-recaptcha.mjs +300 -0
  246. package/fesm2020/bravobit-bb-foundation-recaptcha.mjs.map +1 -0
  247. package/fesm2020/bravobit-bb-foundation-rxjs.mjs +21 -0
  248. package/fesm2020/bravobit-bb-foundation-rxjs.mjs.map +1 -0
  249. package/fesm2020/bravobit-bb-foundation-storage.mjs +413 -0
  250. package/fesm2020/bravobit-bb-foundation-storage.mjs.map +1 -0
  251. package/fesm2020/bravobit-bb-foundation-table.mjs +592 -0
  252. package/fesm2020/bravobit-bb-foundation-table.mjs.map +1 -0
  253. package/fesm2020/bravobit-bb-foundation.mjs +892 -0
  254. package/fesm2020/bravobit-bb-foundation.mjs.map +1 -0
  255. package/http/package.json +5 -5
  256. package/localize/package.json +5 -5
  257. package/notifications/package.json +5 -5
  258. package/package.json +126 -8
  259. package/public_api.d.ts +0 -1
  260. package/recaptcha/package.json +5 -5
  261. package/rxjs/package.json +5 -5
  262. package/storage/package.json +5 -5
  263. package/table/lib/components/table/table.component.d.ts +3 -0
  264. package/table/package.json +5 -5
  265. package/bundles/bravobit-bb-foundation-auth.umd.js +0 -1483
  266. package/bundles/bravobit-bb-foundation-auth.umd.js.map +0 -1
  267. package/bundles/bravobit-bb-foundation-collections.umd.js +0 -868
  268. package/bundles/bravobit-bb-foundation-collections.umd.js.map +0 -1
  269. package/bundles/bravobit-bb-foundation-dashboard.umd.js +0 -876
  270. package/bundles/bravobit-bb-foundation-dashboard.umd.js.map +0 -1
  271. package/bundles/bravobit-bb-foundation-dialog.umd.js +0 -716
  272. package/bundles/bravobit-bb-foundation-dialog.umd.js.map +0 -1
  273. package/bundles/bravobit-bb-foundation-elements.umd.js +0 -2768
  274. package/bundles/bravobit-bb-foundation-elements.umd.js.map +0 -1
  275. package/bundles/bravobit-bb-foundation-http.umd.js +0 -535
  276. package/bundles/bravobit-bb-foundation-http.umd.js.map +0 -1
  277. package/bundles/bravobit-bb-foundation-localize.umd.js +0 -1292
  278. package/bundles/bravobit-bb-foundation-localize.umd.js.map +0 -1
  279. package/bundles/bravobit-bb-foundation-notifications.umd.js +0 -794
  280. package/bundles/bravobit-bb-foundation-notifications.umd.js.map +0 -1
  281. package/bundles/bravobit-bb-foundation-recaptcha.umd.js +0 -683
  282. package/bundles/bravobit-bb-foundation-recaptcha.umd.js.map +0 -1
  283. package/bundles/bravobit-bb-foundation-rxjs.umd.js +0 -29
  284. package/bundles/bravobit-bb-foundation-rxjs.umd.js.map +0 -1
  285. package/bundles/bravobit-bb-foundation-storage.umd.js +0 -799
  286. package/bundles/bravobit-bb-foundation-storage.umd.js.map +0 -1
  287. package/bundles/bravobit-bb-foundation-table.umd.js +0 -1070
  288. package/bundles/bravobit-bb-foundation-table.umd.js.map +0 -1
  289. package/bundles/bravobit-bb-foundation.umd.js +0 -1440
  290. package/bundles/bravobit-bb-foundation.umd.js.map +0 -1
  291. package/esm2015/auth/lib/auth.interceptor.js +0 -95
  292. package/esm2015/auth/lib/auth.service.js +0 -299
  293. package/esm2015/auth/lib/auth.session.js +0 -136
  294. package/esm2015/auth/lib/directives/permission.directive.js +0 -81
  295. package/esm2015/auth/lib/directives/role.directive.js +0 -38
  296. package/esm2015/auth/lib/guards/anonymous.guard.js +0 -35
  297. package/esm2015/auth/lib/guards/authenticated.guard.js +0 -36
  298. package/esm2015/auth/lib/permissions.service.js +0 -58
  299. package/esm2015/auth/lib/providers/email.provider.js +0 -26
  300. package/esm2015/auth/lib/providers/verify.provider.js +0 -20
  301. package/esm2015/collections/lib/collection.js +0 -104
  302. package/esm2015/collections/lib/components/collections-pager/collections-pager.component.js +0 -136
  303. package/esm2015/collections/lib/components/collections-viewer/collections-viewer.component.js +0 -39
  304. package/esm2015/collections/lib/providers/api-collection.provider.js +0 -69
  305. package/esm2015/collections/lib/providers/collection.provider.js +0 -14
  306. package/esm2015/dashboard/lib/dashboard/dashboard.component.js +0 -64
  307. package/esm2015/dashboard/lib/dashboard-header/dashboard-header.component.js +0 -41
  308. package/esm2015/dashboard/lib/dashboard-menu/dashboard-menu.component.js +0 -39
  309. package/esm2015/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.js +0 -38
  310. package/esm2015/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.js +0 -83
  311. package/esm2015/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.js +0 -110
  312. package/esm2015/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.js +0 -71
  313. package/esm2015/dialog/lib/dialog-actions/dialog-actions.component.js +0 -20
  314. package/esm2015/dialog/lib/dialog-confirm/dialog-confirm.component.js +0 -45
  315. package/esm2015/dialog/lib/dialog-header/dialog-header.component.js +0 -33
  316. package/esm2015/dialog/lib/dialog-link/dialog-link.component.js +0 -19
  317. package/esm2015/dialog/lib/dialog-modal/dialog-modal.component.js +0 -54
  318. package/esm2015/dialog/lib/dialog-overlay/dialog-overlay.component.js +0 -143
  319. package/esm2015/elements/lib/avatar/avatar.component.js +0 -151
  320. package/esm2015/elements/lib/button/button.component.js +0 -79
  321. package/esm2015/elements/lib/checkbox/checkbox.component.js +0 -83
  322. package/esm2015/elements/lib/date-picker/date-picker.component.js +0 -322
  323. package/esm2015/elements/lib/directives/autosize.directive.js +0 -74
  324. package/esm2015/elements/lib/directives/form-submit.directive.js +0 -53
  325. package/esm2015/elements/lib/directives/input.directive.js +0 -139
  326. package/esm2015/elements/lib/dropdown/dropdown.component.js +0 -111
  327. package/esm2015/elements/lib/file-picker/file-picker.component.js +0 -247
  328. package/esm2015/elements/lib/form-control/form-control.component.js +0 -58
  329. package/esm2015/elements/lib/form-error/form-error.component.js +0 -116
  330. package/esm2015/elements/lib/form-group/form-group.component.js +0 -27
  331. package/esm2015/elements/lib/icon/icon.component.js +0 -110
  332. package/esm2015/elements/lib/image-picker/image-picker.component.js +0 -119
  333. package/esm2015/elements/lib/pipes/file-image.pipe.js +0 -45
  334. package/esm2015/elements/lib/pipes/relative-time.pipe.js +0 -96
  335. package/esm2015/elements/lib/spinner/spinner.component.js +0 -34
  336. package/esm2015/elements/lib/tag/tag.component.js +0 -26
  337. package/esm2015/http/lib/classes/http.config.js +0 -31
  338. package/esm2015/http/lib/classes/http.error.js +0 -21
  339. package/esm2015/http/lib/interceptors/base-url.interceptor.js +0 -52
  340. package/esm2015/http/lib/interceptors/error.interceptor.js +0 -33
  341. package/esm2015/lib/core/coercions/boolean-coercion.js +0 -4
  342. package/esm2015/lib/core/miscellaneous/validator.js +0 -86
  343. package/esm2015/lib/core/mixins/can-disable.js +0 -16
  344. package/esm2015/lib/core/mixins/can-load.js +0 -16
  345. package/esm2015/lib/core/mixins/has-error.js +0 -16
  346. package/esm2015/lib/core/mixins/is-focused.js +0 -16
  347. package/esm2015/lib/core/mixins/is-grouped.js +0 -16
  348. package/esm2015/lib/core/mixins/is-readonly.js +0 -16
  349. package/esm2015/lib/core/mixins/is-required.js +0 -16
  350. package/esm2015/lib/core/services/clipboard.service.js +0 -72
  351. package/esm2015/lib/core/services/exif.service.js +0 -168
  352. package/esm2015/lib/core/services/file-loader.service.js +0 -90
  353. package/esm2015/lib/core/services/image-converter.service.js +0 -130
  354. package/esm2015/lib/core/services/patch.service.js +0 -65
  355. package/esm2015/localize/lib/localize.dictionary.js +0 -137
  356. package/esm2015/localize/lib/localize.service.js +0 -282
  357. package/esm2015/localize/lib/views/localize-string/localize-string.component.js +0 -99
  358. package/esm2015/notifications/lib/notifications-item/notifications-item.component.js +0 -108
  359. package/esm2015/notifications/lib/notifications-list/notifications-list.component.js +0 -56
  360. package/esm2015/recaptcha/lib/recaptcha/recaptcha.component.js +0 -199
  361. package/esm2015/recaptcha/lib/recaptcha-loader.service.js +0 -93
  362. package/esm2015/rxjs/lib/operators/combine-latest-map.operator.js +0 -7
  363. package/esm2015/storage/lib/storage.service.js +0 -111
  364. package/esm2015/storage/lib/strategies/cookie-storage.strategy.js +0 -143
  365. package/esm2015/storage/lib/strategies/polyfill-storage.strategy.js +0 -102
  366. package/esm2015/table/lib/components/table/table.component.js +0 -196
  367. package/esm2015/table/lib/components/table-cell/table-cell.component.js +0 -19
  368. package/esm2015/table/lib/components/table-header-cell/table-header-cell.component.js +0 -141
  369. package/esm2015/table/lib/components/table-pager/table-pager.component.js +0 -146
  370. package/esm2015/table/lib/data/datasource.data.js +0 -32
  371. package/esm2015/table/lib/data/generic.data.js +0 -73
  372. package/fesm2015/bravobit-bb-foundation-auth.js.map +0 -1
  373. package/fesm2015/bravobit-bb-foundation-collections.js.map +0 -1
  374. package/fesm2015/bravobit-bb-foundation-dashboard.js +0 -468
  375. package/fesm2015/bravobit-bb-foundation-dashboard.js.map +0 -1
  376. package/fesm2015/bravobit-bb-foundation-dialog.js.map +0 -1
  377. package/fesm2015/bravobit-bb-foundation-elements.js.map +0 -1
  378. package/fesm2015/bravobit-bb-foundation-http.js.map +0 -1
  379. package/fesm2015/bravobit-bb-foundation-localize.js.map +0 -1
  380. package/fesm2015/bravobit-bb-foundation-notifications.js +0 -393
  381. package/fesm2015/bravobit-bb-foundation-notifications.js.map +0 -1
  382. package/fesm2015/bravobit-bb-foundation-recaptcha.js.map +0 -1
  383. package/fesm2015/bravobit-bb-foundation-rxjs.js.map +0 -1
  384. package/fesm2015/bravobit-bb-foundation-storage.js.map +0 -1
  385. package/fesm2015/bravobit-bb-foundation-table.js +0 -626
  386. package/fesm2015/bravobit-bb-foundation-table.js.map +0 -1
  387. package/fesm2015/bravobit-bb-foundation.js.map +0 -1
  388. package/lib/core/coercions/boolean-coercion.d.ts +0 -1
@@ -1,683 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('@bravobit/bb-foundation'), require('@angular/forms')) :
3
- typeof define === 'function' && define.amd ? define('@bravobit/bb-foundation/recaptcha', ['exports', '@angular/core', '@angular/common', 'rxjs', '@bravobit/bb-foundation', '@angular/forms'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravobit = global.bravobit || {}, global.bravobit["bb-foundation"] = global.bravobit["bb-foundation"] || {}, global.bravobit["bb-foundation"].recaptcha = {}), global.ng.core, global.ng.common, global.rxjs, global.bravobit["bb-foundation"], global.ng.forms));
5
- })(this, (function (exports, i0, common, rxjs, i1, forms) { '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 i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
-
28
- var RECAPTCHA_CONFIG = new i0.InjectionToken('bb-recaptcha-config');
29
-
30
- var RecaptchaLoader = /** @class */ (function () {
31
- function RecaptchaLoader(_platform, _renderFactory, _document, _localeId, _config) {
32
- var _this = this;
33
- this._platform = _platform;
34
- this._renderFactory = _renderFactory;
35
- this._document = _document;
36
- this._localeId = _localeId;
37
- this._config = _config;
38
- // Ready state.
39
- this.ready$ = null;
40
- // Data.
41
- this._windowLoadFn = 'bbRecaptchaLoad';
42
- this._renderer = null;
43
- // Create a renderer.
44
- this._renderer = this._renderFactory.createRenderer(null, null);
45
- // Set the ready subject if not exists.
46
- if (this.ready$) {
47
- return;
48
- }
49
- this.ready$ = new rxjs.BehaviorSubject(null);
50
- // Create the script.
51
- this.createScript(function (captcha) { return _this.ready$.next(captcha); });
52
- }
53
- RecaptchaLoader.prototype.createScript = function (callback) {
54
- var _a;
55
- // Validate we are on a browser.
56
- if (!this._platform.isBrowser) {
57
- return;
58
- }
59
- // Create the script.
60
- var script = this._renderer.createElement('script');
61
- // Set properties on the script.
62
- this._renderer.setProperty(script, 'src', this.getUrl());
63
- this._renderer.setProperty(script, 'async', true);
64
- this._renderer.setProperty(script, 'defer', true);
65
- // Set the nonce.
66
- if (this._config.nonce) {
67
- this._renderer.setAttribute(script, 'nonce', this._config.nonce);
68
- }
69
- // Set the loading function.
70
- if (this._platform.isBrowser) {
71
- window[this._windowLoadFn] = function () { return callback(grecaptcha); };
72
- }
73
- // Append the script tag.
74
- this._renderer.appendChild((_a = this._document) === null || _a === void 0 ? void 0 : _a.body, script);
75
- };
76
- RecaptchaLoader.prototype.getUrl = function () {
77
- var _a, _b;
78
- var baseUrl = (_b = (_a = this._config) === null || _a === void 0 ? void 0 : _a.baseUrl) !== null && _b !== void 0 ? _b : 'https://www.google.com/recaptcha/api.js';
79
- return [baseUrl, this.getQueryParams()]
80
- .filter(function (item) { return !!item; })
81
- .join('?');
82
- };
83
- RecaptchaLoader.prototype.getQueryParams = function () {
84
- var _a, _b;
85
- var params = {
86
- render: 'explicit',
87
- onload: (_a = this._windowLoadFn) !== null && _a !== void 0 ? _a : null,
88
- hl: (_b = this._localeId) !== null && _b !== void 0 ? _b : null
89
- };
90
- return Object.keys(params)
91
- .map(function (key) { return ({ key: key, value: params[key] }); })
92
- .filter(function (item) { return !!item.value; })
93
- .map(function (item) { return (item === null || item === void 0 ? void 0 : item.key) + "=" + (item === null || item === void 0 ? void 0 : item.value); })
94
- .join('&');
95
- };
96
- return RecaptchaLoader;
97
- }());
98
- RecaptchaLoader.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaLoader, deps: [{ token: i1__namespace.Platform }, { token: i0__namespace.RendererFactory2 }, { token: common.DOCUMENT, optional: true }, { token: i0.LOCALE_ID, optional: true }, { token: RECAPTCHA_CONFIG, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
99
- RecaptchaLoader.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaLoader });
100
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaLoader, decorators: [{
101
- type: i0.Injectable
102
- }], ctorParameters: function () {
103
- return [{ type: i1__namespace.Platform }, { type: i0__namespace.RendererFactory2 }, { type: undefined, decorators: [{
104
- type: i0.Optional
105
- }, {
106
- type: i0.Inject,
107
- args: [common.DOCUMENT]
108
- }] }, { type: undefined, decorators: [{
109
- type: i0.Optional
110
- }, {
111
- type: i0.Inject,
112
- args: [i0.LOCALE_ID]
113
- }] }, { type: undefined, decorators: [{
114
- type: i0.Optional
115
- }, {
116
- type: i0.Inject,
117
- args: [RECAPTCHA_CONFIG]
118
- }] }];
119
- } });
120
-
121
- /*! *****************************************************************************
122
- Copyright (c) Microsoft Corporation.
123
-
124
- Permission to use, copy, modify, and/or distribute this software for any
125
- purpose with or without fee is hereby granted.
126
-
127
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
128
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
129
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
130
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
131
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
132
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
133
- PERFORMANCE OF THIS SOFTWARE.
134
- ***************************************************************************** */
135
- /* global Reflect, Promise */
136
- var extendStatics = function (d, b) {
137
- extendStatics = Object.setPrototypeOf ||
138
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
139
- function (d, b) { for (var p in b)
140
- if (Object.prototype.hasOwnProperty.call(b, p))
141
- d[p] = b[p]; };
142
- return extendStatics(d, b);
143
- };
144
- function __extends(d, b) {
145
- if (typeof b !== "function" && b !== null)
146
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
147
- extendStatics(d, b);
148
- function __() { this.constructor = d; }
149
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
150
- }
151
- var __assign = function () {
152
- __assign = Object.assign || function __assign(t) {
153
- for (var s, i = 1, n = arguments.length; i < n; i++) {
154
- s = arguments[i];
155
- for (var p in s)
156
- if (Object.prototype.hasOwnProperty.call(s, p))
157
- t[p] = s[p];
158
- }
159
- return t;
160
- };
161
- return __assign.apply(this, arguments);
162
- };
163
- function __rest(s, e) {
164
- var t = {};
165
- for (var p in s)
166
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
167
- t[p] = s[p];
168
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
169
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
170
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
171
- t[p[i]] = s[p[i]];
172
- }
173
- return t;
174
- }
175
- function __decorate(decorators, target, key, desc) {
176
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
177
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
178
- r = Reflect.decorate(decorators, target, key, desc);
179
- else
180
- for (var i = decorators.length - 1; i >= 0; i--)
181
- if (d = decorators[i])
182
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
183
- return c > 3 && r && Object.defineProperty(target, key, r), r;
184
- }
185
- function __param(paramIndex, decorator) {
186
- return function (target, key) { decorator(target, key, paramIndex); };
187
- }
188
- function __metadata(metadataKey, metadataValue) {
189
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
190
- return Reflect.metadata(metadataKey, metadataValue);
191
- }
192
- function __awaiter(thisArg, _arguments, P, generator) {
193
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
194
- return new (P || (P = Promise))(function (resolve, reject) {
195
- function fulfilled(value) { try {
196
- step(generator.next(value));
197
- }
198
- catch (e) {
199
- reject(e);
200
- } }
201
- function rejected(value) { try {
202
- step(generator["throw"](value));
203
- }
204
- catch (e) {
205
- reject(e);
206
- } }
207
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
208
- step((generator = generator.apply(thisArg, _arguments || [])).next());
209
- });
210
- }
211
- function __generator(thisArg, body) {
212
- var _ = { label: 0, sent: function () { if (t[0] & 1)
213
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
214
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
215
- function verb(n) { return function (v) { return step([n, v]); }; }
216
- function step(op) {
217
- if (f)
218
- throw new TypeError("Generator is already executing.");
219
- while (_)
220
- try {
221
- 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)
222
- return t;
223
- if (y = 0, t)
224
- op = [op[0] & 2, t.value];
225
- switch (op[0]) {
226
- case 0:
227
- case 1:
228
- t = op;
229
- break;
230
- case 4:
231
- _.label++;
232
- return { value: op[1], done: false };
233
- case 5:
234
- _.label++;
235
- y = op[1];
236
- op = [0];
237
- continue;
238
- case 7:
239
- op = _.ops.pop();
240
- _.trys.pop();
241
- continue;
242
- default:
243
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
244
- _ = 0;
245
- continue;
246
- }
247
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
248
- _.label = op[1];
249
- break;
250
- }
251
- if (op[0] === 6 && _.label < t[1]) {
252
- _.label = t[1];
253
- t = op;
254
- break;
255
- }
256
- if (t && _.label < t[2]) {
257
- _.label = t[2];
258
- _.ops.push(op);
259
- break;
260
- }
261
- if (t[2])
262
- _.ops.pop();
263
- _.trys.pop();
264
- continue;
265
- }
266
- op = body.call(thisArg, _);
267
- }
268
- catch (e) {
269
- op = [6, e];
270
- y = 0;
271
- }
272
- finally {
273
- f = t = 0;
274
- }
275
- if (op[0] & 5)
276
- throw op[1];
277
- return { value: op[0] ? op[1] : void 0, done: true };
278
- }
279
- }
280
- var __createBinding = Object.create ? (function (o, m, k, k2) {
281
- if (k2 === undefined)
282
- k2 = k;
283
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
284
- }) : (function (o, m, k, k2) {
285
- if (k2 === undefined)
286
- k2 = k;
287
- o[k2] = m[k];
288
- });
289
- function __exportStar(m, o) {
290
- for (var p in m)
291
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
292
- __createBinding(o, m, p);
293
- }
294
- function __values(o) {
295
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
296
- if (m)
297
- return m.call(o);
298
- if (o && typeof o.length === "number")
299
- return {
300
- next: function () {
301
- if (o && i >= o.length)
302
- o = void 0;
303
- return { value: o && o[i++], done: !o };
304
- }
305
- };
306
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
307
- }
308
- function __read(o, n) {
309
- var m = typeof Symbol === "function" && o[Symbol.iterator];
310
- if (!m)
311
- return o;
312
- var i = m.call(o), r, ar = [], e;
313
- try {
314
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
315
- ar.push(r.value);
316
- }
317
- catch (error) {
318
- e = { error: error };
319
- }
320
- finally {
321
- try {
322
- if (r && !r.done && (m = i["return"]))
323
- m.call(i);
324
- }
325
- finally {
326
- if (e)
327
- throw e.error;
328
- }
329
- }
330
- return ar;
331
- }
332
- /** @deprecated */
333
- function __spread() {
334
- for (var ar = [], i = 0; i < arguments.length; i++)
335
- ar = ar.concat(__read(arguments[i]));
336
- return ar;
337
- }
338
- /** @deprecated */
339
- function __spreadArrays() {
340
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
341
- s += arguments[i].length;
342
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
343
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
344
- r[k] = a[j];
345
- return r;
346
- }
347
- function __spreadArray(to, from, pack) {
348
- if (pack || arguments.length === 2)
349
- for (var i = 0, l = from.length, ar; i < l; i++) {
350
- if (ar || !(i in from)) {
351
- if (!ar)
352
- ar = Array.prototype.slice.call(from, 0, i);
353
- ar[i] = from[i];
354
- }
355
- }
356
- return to.concat(ar || Array.prototype.slice.call(from));
357
- }
358
- function __await(v) {
359
- return this instanceof __await ? (this.v = v, this) : new __await(v);
360
- }
361
- function __asyncGenerator(thisArg, _arguments, generator) {
362
- if (!Symbol.asyncIterator)
363
- throw new TypeError("Symbol.asyncIterator is not defined.");
364
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
365
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
366
- function verb(n) { if (g[n])
367
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
368
- function resume(n, v) { try {
369
- step(g[n](v));
370
- }
371
- catch (e) {
372
- settle(q[0][3], e);
373
- } }
374
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
375
- function fulfill(value) { resume("next", value); }
376
- function reject(value) { resume("throw", value); }
377
- function settle(f, v) { if (f(v), q.shift(), q.length)
378
- resume(q[0][0], q[0][1]); }
379
- }
380
- function __asyncDelegator(o) {
381
- var i, p;
382
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
383
- 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; }
384
- }
385
- function __asyncValues(o) {
386
- if (!Symbol.asyncIterator)
387
- throw new TypeError("Symbol.asyncIterator is not defined.");
388
- var m = o[Symbol.asyncIterator], i;
389
- 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);
390
- 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); }); }; }
391
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
392
- }
393
- function __makeTemplateObject(cooked, raw) {
394
- if (Object.defineProperty) {
395
- Object.defineProperty(cooked, "raw", { value: raw });
396
- }
397
- else {
398
- cooked.raw = raw;
399
- }
400
- return cooked;
401
- }
402
- ;
403
- var __setModuleDefault = Object.create ? (function (o, v) {
404
- Object.defineProperty(o, "default", { enumerable: true, value: v });
405
- }) : function (o, v) {
406
- o["default"] = v;
407
- };
408
- function __importStar(mod) {
409
- if (mod && mod.__esModule)
410
- return mod;
411
- var result = {};
412
- if (mod != null)
413
- for (var k in mod)
414
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
415
- __createBinding(result, mod, k);
416
- __setModuleDefault(result, mod);
417
- return result;
418
- }
419
- function __importDefault(mod) {
420
- return (mod && mod.__esModule) ? mod : { default: mod };
421
- }
422
- function __classPrivateFieldGet(receiver, state, kind, f) {
423
- if (kind === "a" && !f)
424
- throw new TypeError("Private accessor was defined without a getter");
425
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
426
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
427
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
428
- }
429
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
430
- if (kind === "m")
431
- throw new TypeError("Private method is not writable");
432
- if (kind === "a" && !f)
433
- throw new TypeError("Private accessor was defined without a setter");
434
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
435
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
436
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
437
- }
438
-
439
- var nextUniqueId = 0;
440
- var BbRecaptchaBase = /** @class */ (function () {
441
- function BbRecaptchaBase() {
442
- }
443
- return BbRecaptchaBase;
444
- }());
445
- var BbRecaptchaMixinBase = i1.mixinGrouped(BbRecaptchaBase);
446
- var RecaptchaComponent = /** @class */ (function (_super) {
447
- __extends(RecaptchaComponent, _super);
448
- function RecaptchaComponent(_zone, _elementRef, _loader, _config) {
449
- var _this = _super.call(this) || this;
450
- _this._zone = _zone;
451
- _this._elementRef = _elementRef;
452
- _this._loader = _loader;
453
- _this._config = _config;
454
- // Host bindings.
455
- _this.id = "bb-recaptcha-" + nextUniqueId++;
456
- // Inputs.
457
- _this.siteKey = null;
458
- _this.tabIndex = null;
459
- _this.type = null;
460
- _this.size = null;
461
- _this.theme = null;
462
- _this.badge = null;
463
- _this.errorMode = 'default';
464
- // Outputs.
465
- _this.resolved = new i0.EventEmitter();
466
- _this.error = new i0.EventEmitter();
467
- // Data.
468
- _this._widgetId = null;
469
- _this._grecaptcha = null;
470
- _this._executeRequested = false;
471
- // Form methods.
472
- _this._onChange = null;
473
- _this._onTouched = null;
474
- // Subscriptions.
475
- _this._subscriptions = new rxjs.Subscription();
476
- _this.initializeProperties();
477
- return _this;
478
- }
479
- RecaptchaComponent.prototype.ngAfterViewInit = function () {
480
- var _this = this;
481
- var subscription = this._loader.ready$.subscribe(function (grecaptcha) {
482
- if (grecaptcha == null || !(grecaptcha.render instanceof Function)) {
483
- return;
484
- }
485
- _this._grecaptcha = grecaptcha;
486
- _this.renderCaptchaElement();
487
- });
488
- this._subscriptions.add(subscription);
489
- };
490
- RecaptchaComponent.prototype.ngOnDestroy = function () {
491
- var _a;
492
- // Reset the captcha.
493
- this.resetCaptchaElement();
494
- // Unsubscribe of ready data.
495
- (_a = this._subscriptions) === null || _a === void 0 ? void 0 : _a.unsubscribe();
496
- };
497
- RecaptchaComponent.prototype.execute = function () {
498
- // Check if the captcha is invisible.
499
- if (this.size !== 'invisible') {
500
- return;
501
- }
502
- // Check if the widget exists else return.
503
- if (this._widgetId == null) {
504
- this._executeRequested = true;
505
- return;
506
- }
507
- // Execute the captcha.
508
- this._grecaptcha.execute(this._widgetId);
509
- };
510
- RecaptchaComponent.prototype.reset = function () {
511
- if (this._widgetId == null) {
512
- return;
513
- }
514
- if (this._grecaptcha.getResponse(this._widgetId)) {
515
- this.resolved.emit(null);
516
- }
517
- this.resetCaptchaElement();
518
- };
519
- RecaptchaComponent.prototype.writeValue = function (value) {
520
- if (value) {
521
- return;
522
- }
523
- this.reset();
524
- };
525
- RecaptchaComponent.prototype.registerOnChange = function (fn) {
526
- this._onChange = fn;
527
- };
528
- RecaptchaComponent.prototype.registerOnTouched = function (fn) {
529
- this._onTouched = fn;
530
- };
531
- RecaptchaComponent.prototype.onResolve = function (event) {
532
- var _a, _b;
533
- // Emit the value.
534
- this.resolved.emit(event);
535
- // Call the form functions.
536
- (_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, event);
537
- (_b = this._onTouched) === null || _b === void 0 ? void 0 : _b.call(this);
538
- };
539
- RecaptchaComponent.prototype.renderCaptchaElement = function () {
540
- var _this = this;
541
- var parameters = {
542
- badge: this.badge,
543
- sitekey: this.siteKey,
544
- size: this.size,
545
- tabindex: this.tabIndex,
546
- theme: this.theme,
547
- type: this.type,
548
- 'callback': function (response) { return _this._zone.run(function () { return _this.onResolve(response); }); },
549
- 'expired-callback': function () { return _this._zone.run(function () { return _this.onResolve(null); }); }
550
- };
551
- if (this.errorMode === 'handled') {
552
- parameters['error-callback'] = function () {
553
- var args = [];
554
- for (var _i = 0; _i < arguments.length; _i++) {
555
- args[_i] = arguments[_i];
556
- }
557
- return _this._zone.run(function () { return _this.error.emit(args); });
558
- };
559
- }
560
- this._widgetId = this._grecaptcha.render(this._elementRef.nativeElement, parameters);
561
- if (this._executeRequested) {
562
- this._executeRequested = false;
563
- this.execute();
564
- }
565
- };
566
- RecaptchaComponent.prototype.resetCaptchaElement = function () {
567
- var _this = this;
568
- if (this._widgetId == null) {
569
- return;
570
- }
571
- this._zone.runOutsideAngular(function () { return _this._grecaptcha.reset(_this._widgetId); });
572
- };
573
- RecaptchaComponent.prototype.initializeProperties = function () {
574
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
575
- this.siteKey = (_a = this.siteKey) !== null && _a !== void 0 ? _a : (_b = this._config) === null || _b === void 0 ? void 0 : _b.siteKey;
576
- this.theme = (_c = this.theme) !== null && _c !== void 0 ? _c : (_d = this._config) === null || _d === void 0 ? void 0 : _d.theme;
577
- this.size = (_e = this.size) !== null && _e !== void 0 ? _e : (_f = this._config) === null || _f === void 0 ? void 0 : _f.size;
578
- this.type = (_g = this.type) !== null && _g !== void 0 ? _g : (_h = this._config) === null || _h === void 0 ? void 0 : _h.type;
579
- this.badge = (_j = this.badge) !== null && _j !== void 0 ? _j : (_k = this._config) === null || _k === void 0 ? void 0 : _k.badge;
580
- };
581
- return RecaptchaComponent;
582
- }(BbRecaptchaMixinBase));
583
- RecaptchaComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaComponent, deps: [{ token: i0__namespace.NgZone }, { token: i0__namespace.ElementRef }, { token: RecaptchaLoader }, { token: RECAPTCHA_CONFIG, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
584
- RecaptchaComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: RecaptchaComponent, selector: "bb-recaptcha", inputs: { grouped: "grouped", id: "id", siteKey: "siteKey", tabIndex: "tabIndex", type: "type", size: "size", theme: "theme", badge: "badge", errorMode: "errorMode" }, outputs: { resolved: "resolved", error: "error" }, host: { properties: { "class.grouped": "grouped", "attr.id": "this.id" }, classAttribute: "bb-recaptcha" }, providers: [
585
- {
586
- provide: forms.NG_VALUE_ACCESSOR,
587
- useExisting: i0.forwardRef(function () { return RecaptchaComponent; }),
588
- multi: true
589
- }
590
- ], exportAs: ["bbRecaptcha"], usesInheritance: true, ngImport: i0__namespace, template: "", styles: [".bb-recaptcha{display:block}.bb-recaptcha.grouped{margin-bottom:20px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
591
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaComponent, decorators: [{
592
- type: i0.Component,
593
- args: [{
594
- selector: 'bb-recaptcha',
595
- templateUrl: './recaptcha.component.html',
596
- styleUrls: ['./recaptcha.component.scss'],
597
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
598
- encapsulation: i0.ViewEncapsulation.None,
599
- exportAs: 'bbRecaptcha',
600
- providers: [
601
- {
602
- provide: forms.NG_VALUE_ACCESSOR,
603
- useExisting: i0.forwardRef(function () { return RecaptchaComponent; }),
604
- multi: true
605
- }
606
- ],
607
- host: {
608
- 'class': 'bb-recaptcha',
609
- '[class.grouped]': 'grouped'
610
- },
611
- inputs: ['grouped'],
612
- preserveWhitespaces: false
613
- }]
614
- }], ctorParameters: function () {
615
- return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ElementRef }, { type: RecaptchaLoader }, { type: undefined, decorators: [{
616
- type: i0.Optional
617
- }, {
618
- type: i0.Inject,
619
- args: [RECAPTCHA_CONFIG]
620
- }] }];
621
- }, propDecorators: { id: [{
622
- type: i0.HostBinding,
623
- args: ['attr.id']
624
- }, {
625
- type: i0.Input
626
- }], siteKey: [{
627
- type: i0.Input
628
- }], tabIndex: [{
629
- type: i0.Input
630
- }], type: [{
631
- type: i0.Input
632
- }], size: [{
633
- type: i0.Input
634
- }], theme: [{
635
- type: i0.Input
636
- }], badge: [{
637
- type: i0.Input
638
- }], errorMode: [{
639
- type: i0.Input
640
- }], resolved: [{
641
- type: i0.Output
642
- }], error: [{
643
- type: i0.Output
644
- }] } });
645
-
646
- var RecaptchaModule = /** @class */ (function () {
647
- function RecaptchaModule() {
648
- }
649
- RecaptchaModule.forRoot = function (config) {
650
- return {
651
- ngModule: RecaptchaModule,
652
- providers: [
653
- { provide: RECAPTCHA_CONFIG, useValue: config },
654
- RecaptchaLoader
655
- ]
656
- };
657
- };
658
- return RecaptchaModule;
659
- }());
660
- RecaptchaModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
661
- RecaptchaModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaModule, declarations: [RecaptchaComponent], exports: [RecaptchaComponent] });
662
- RecaptchaModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaModule });
663
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RecaptchaModule, decorators: [{
664
- type: i0.NgModule,
665
- args: [{
666
- declarations: [RecaptchaComponent],
667
- exports: [RecaptchaComponent]
668
- }]
669
- }] });
670
-
671
- /**
672
- * Generated bundle index. Do not edit.
673
- */
674
-
675
- exports.RECAPTCHA_CONFIG = RECAPTCHA_CONFIG;
676
- exports.RecaptchaComponent = RecaptchaComponent;
677
- exports.RecaptchaLoader = RecaptchaLoader;
678
- exports.RecaptchaModule = RecaptchaModule;
679
-
680
- Object.defineProperty(exports, '__esModule', { value: true });
681
-
682
- }));
683
- //# sourceMappingURL=bravobit-bb-foundation-recaptcha.umd.js.map